Function puma::compute_orientationST
Defined in File structuretensor.h
Function Documentation
-
bool puma::compute_orientationST(Workspace *grayWS, double dogsigmaArr, double gausigmaArr, puma::Cutoff cutoff, puma::MatVec3<double> *direction, bool print = true, int numThreads = 0)
Function to compute the orientation using the Structure Tensor (i.e. find the direction of least gradient change)
- Parameters
grayWS – the input workspace to serve as a mask according to the cutoff (Note: the ST filter is applied on the whole image, the cutoffs are only applied when computing the Eigenvectors to put in the direction MatVec3)
dogsigmaArr – kernel size parameter for Gaussian derivatives (should be smaller than rho)
gausigmaArr – kernel size parameter for Gaussian filter (should be bigger than sigma)
cutoff – the grayscale range to consider, according to the input ws
direction – the output orientation field
print – whether to print progress, optional
numThreads – number of threads to use, optional
- Returns
true if successful, false if it failing