* Finally, GetIterationOutput() will return the number of algorithm iterations
* for each pixel.
*
* The class template parameter TKernel allows one to choose how pixels in the
* spatial and spectral neighborhood of a given pixel participate in the
* smoothed result. By default, a uniform kernel is used (KernelUniform), giving
* an equal weight to all neighbor pixels. KernelGaussian can also be used,
* although the computation time is significantly higher. The TKernel class
* should define operator(), taking a squared norm as parameter and returning a
* real value between 0 and 1. It should also define GetRadius(), converting the
* spatial bandwidth parameter to the spatial radius defining how many pixels
* are in the processing window local to a pixel.
*
* MeanShifVector squared norm is compared with Threshold (set using Get/Set accessor) to define pixel convergence (1e-3 by default).
* MaxIterationNumber defines maximum iteration number for each pixel convergence (set using Get/Set accessor). Set to 4 by default.
* ModeSearchOptimization is a boolean value, to choose between optimized and non optimized algorithm. If set to true (by default), assign mode value to each pixel on a path covered in convergence steps.
...
...
@@ -360,9 +370,9 @@ private:
/** Maximum number of iterations **/
unsignedintm_MaxIterationNumber;
/** KernelType to be defined **/
KernelTypem_SpatialKernel;
KernelTypem_RangeKernel;
/** Kernel object, implementing operator() which returns a weight between 0 and 1
* depending on the squared norm given in parameter **/
KernelTypem_Kernel;
/** Number of components per pixel in the input image */