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
targetPtPointThe target point
contourOutputArraycontour 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>)backwardboolFlag to indicate reverse order of retrived pixels (use "true" value to fetch points from the target to the source point)