Function puma::compute_orientationAF

Function Documentation

bool puma::compute_orientationAF(puma::Workspace *grayWS, puma::MatVec3<double> *q, puma::Cutoff cutoff, double solverTol, int solverMaxIt, bool print = true, int numThreads = 0)

Function to compute the orientation using the Artificial Flux method (i.e. find the direction of strongest flux using isotropic solver)

Parameters
  • grayWS – the input workspace to serve as a mask according to the cutoff

  • q – output flux computed

  • cutoff – the grayscale range to consider, according to the input ws

  • solverTol – solver (cg) tolerance

  • solverMaxIt – solver (cg) maximum iteration

  • print – whether to print progress, optional

  • numThreads – number of threads to use, optional

Returns

true if successful, false if it failing