pub trait IntelligentScissorsMBTraitConst {
fn as_raw_IntelligentScissorsMB(&self) -> *const c_void;
fn get_contour(
&self,
target_pt: Point,
contour: &mut dyn ToOutputArray,
backward: bool
) -> Result<()> { ... }
}
Expand description
Intelligent Scissors image segmentation
This class is used to find the path (contour) between two points which can be used for image segmentation.
Usage example: usage_example_intelligent_scissors
Reference: “Intelligent Scissors for Image Composition” algorithm designed by Eric N. Mortensen and William A. Barrett, Brigham Young University Mortensen95intelligentscissors
Required Methods
fn as_raw_IntelligentScissorsMB(&self) -> *const c_void
Provided Methods
sourcefn get_contour(
&self,
target_pt: Point,
contour: &mut dyn ToOutputArray,
backward: bool
) -> Result<()>
fn get_contour(
&self,
target_pt: Point,
contour: &mut dyn ToOutputArray,
backward: bool
) -> Result<()>
Extracts optimal contour for the given target point on the image
Note: buildMap() must be called before this call
Parameters
- targetPt: The target point
- contour:[out] 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: Flag to indicate reverse order of retrived pixels (use “true” value to fetch points from the target to the source point)
C++ default parameters
- backward: false