Table of Contents

Method Iterate

Namespace
OpenCvSharp.XImgProc
Assembly
OpenCvSharp.dll

Iterate(int)

Calculates the superpixel segmentation on a given image with the initialized parameters in the SuperpixelLSC object.

This function can be called again without the need of initializing the algorithm with createSuperpixelLSC(). 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 createSuperpixelLSC(). 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

numIterations int

Number of iterations. Higher number improves the result.