SupperpixelSEEDSIterate Method |
http://www.emgu.com
Calculates the superpixel segmentation on a given image with the initialized parameters in the SuperpixelSEEDS object.
Namespace:
Emgu.CV.XImgproc
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.0.3408 (4.1.0.3408)
Syntaxpublic void Iterate(
IInputArray img,
int numIterations = 4
)
Public Sub Iterate (
img As IInputArray,
Optional numIterations As Integer = 4
)
public:
void Iterate(
IInputArray^ img,
int numIterations = 4
)
member Iterate :
img : IInputArray *
?numIterations : int
(* Defaults:
let _numIterations = defaultArg numIterations 4
*)
-> unit
Parameters
- img
- Type: Emgu.CVIInputArray
Input image. Supported formats: CV_8U, CV_16U, CV_32F. Image size & number of channels must match with the initialized image size & channels with the function createSuperpixelSEEDS(). It should be in HSV or Lab color space. Lab is a bit better, but also slower. - numIterations (Optional)
- Type: SystemInt32
Number of pixel level iterations. Higher number improves the result.
RemarksThis function can be called again for other images without the need of initializing the algorithm with createSuperpixelSEEDS(). This save the computational cost of allocating memory for all the structures of the algorithm.
See Also