Function puma::compute_orientationRC(puma::Workspace *, puma::Cutoff, int, int, puma::MatVec3<double> *, bool, int)
Defined in File raycasting.h
Function Documentation
-
bool puma::compute_orientationRC(puma::Workspace *grayWS, puma::Cutoff voidRange, int initAccuracy, int degreeAccuracy, puma::MatVec3<double> *direction, bool print = true, int numThreads = 0)
Function to compute the orientation using Ray Casting (i.e. find longest direction for EVERY solid voxel) - with refinement
- Parameters
grayWS – the input workspace to serve as a mask according to the cutoff
voidRange – the grayscale range to consider, according to the input ws
initAccuracy – initial angular accuracy at which to shoot rays in every direction
degreeAccuracy – refined angular accuracy at which to shoot rays in every direction
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