Method PerformSegmentGpu
- Namespace
- OpenCvSharp.Hfs
- Assembly
- OpenCvSharp.dll
PerformSegmentGpu(InputArray, bool)
Do segmentation on the GPU. This method falls back to the CPU implementation when OpenCV was not built with CUDA support.
public virtual Mat PerformSegmentGpu(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.