Method PerformSegmentCpu
- Namespace
- OpenCvSharp.Hfs
- Assembly
- OpenCvSharp.dll
PerformSegmentCpu(InputArray, bool)
Do segmentation with the CPU. This method is only implemented for reference; it is highly not recommended to use it.
public virtual Mat PerformSegmentCpu(InputArray src, bool ifDraw = true)
Parameters
srcInputArraythe input image.
ifDrawboolif true, the returned Mat is a segmented picture where the color of each region is the average color of all pixels in that region, and its data type is the same as the input image. If false, the content of the returned Mat is a matrix of indices describing the region each pixel belongs to, and its data type is CV_16U.