Method Iterate
- Namespace
- OpenCvSharp.XImgProc
- Assembly
- OpenCvSharp.dll
Iterate(int)
Calculates the superpixel segmentation on a given image with the initialized parameters in the SuperpixelSLIC object.
This function can be called again without the need of initializing the algorithm with createSuperpixelSLIC(). This save the computational cost of allocating memory for all the structures of the algorithm.
The function computes the superpixels segmentation of an image with the parameters initialized with the function createSuperpixelSLIC(). The algorithms starts from a grid of superpixels and then refines the boundaries by proposing updates of edges boundaries.
public virtual void Iterate(int numIterations = 10)
Parameters
numIterationsintNumber of iterations. Higher number improves the result.