Table of Contents

Method GetContour

Namespace
OpenCvSharp.Segmentation
Assembly
OpenCvSharp.dll

GetContour(Point, OutputArray, bool)

Extracts optimal contour for the given target point on the image Note: buildMap() must be called before this call

public void GetContour(Point targetPt, OutputArray contour, bool backward = false)

Parameters

targetPt Point

The target point

contour OutputArray

contour The list of pixels which contains optimal path between the source and the target points of the image. Type is CV_32SC2 (compatible with std::vector<Point>)

backward bool

Flag to indicate reverse order of retrived pixels (use "true" value to fetch points from the target to the source point)