Table of Contents

Method SetImage

Namespace
OpenCvSharp.XImgProc.Segmentation
Assembly
OpenCvSharp.dll

SetImage(InputArray, InputArray, InputArray, int)

Set a initial image

public virtual void SetImage(InputArray img, InputArray regions, InputArray sizes, int imageId = -1)

Parameters

img InputArray

The input image. Any number of channel can be provided

regions InputArray

A segementation of the image. The parameter must be the same size of img.

sizes InputArray

The sizes of different regions

imageId int

If not set to -1, try to cache pre-computations. If the same set og (img, regions, size) is used, the image_id need to be the same.