Struct opencv::imgproc::IntelligentScissorsMB
source · pub struct IntelligentScissorsMB { /* private fields */ }
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
Implementations§
source§impl IntelligentScissorsMB
impl IntelligentScissorsMB
pub fn default() -> Result<IntelligentScissorsMB>
Trait Implementations§
source§impl Boxed for IntelligentScissorsMB
impl Boxed for IntelligentScissorsMB
source§impl Clone for IntelligentScissorsMB
impl Clone for IntelligentScissorsMB
source§impl Debug for IntelligentScissorsMB
impl Debug for IntelligentScissorsMB
source§impl Drop for IntelligentScissorsMB
impl Drop for IntelligentScissorsMB
source§impl IntelligentScissorsMBTrait for IntelligentScissorsMB
impl IntelligentScissorsMBTrait for IntelligentScissorsMB
fn as_raw_mut_IntelligentScissorsMB(&mut self) -> *mut c_void
source§fn set_weights(
&mut self,
weight_non_edge: f32,
weight_gradient_direction: f32,
weight_gradient_magnitude: f32
) -> Result<IntelligentScissorsMB>
fn set_weights( &mut self, weight_non_edge: f32, weight_gradient_direction: f32, weight_gradient_magnitude: f32 ) -> Result<IntelligentScissorsMB>
Specify weights of feature functions Read more
source§fn set_gradient_magnitude_max_limit(
&mut self,
gradient_magnitude_threshold_max: f32
) -> Result<IntelligentScissorsMB>
fn set_gradient_magnitude_max_limit( &mut self, gradient_magnitude_threshold_max: f32 ) -> Result<IntelligentScissorsMB>
Specify gradient magnitude max value threshold Read more
source§fn set_edge_feature_zero_crossing_parameters(
&mut self,
gradient_magnitude_min_value: f32
) -> Result<IntelligentScissorsMB>
fn set_edge_feature_zero_crossing_parameters( &mut self, gradient_magnitude_min_value: f32 ) -> Result<IntelligentScissorsMB>
Switch to “Laplacian Zero-Crossing” edge feature extractor and specify its parameters Read more
source§fn set_edge_feature_canny_parameters(
&mut self,
threshold1: f64,
threshold2: f64,
aperture_size: i32,
l2gradient: bool
) -> Result<IntelligentScissorsMB>
fn set_edge_feature_canny_parameters( &mut self, threshold1: f64, threshold2: f64, aperture_size: i32, l2gradient: bool ) -> Result<IntelligentScissorsMB>
Switch edge feature extractor to use Canny edge detector Read more
source§fn apply_image(
&mut self,
image: &impl ToInputArray
) -> Result<IntelligentScissorsMB>
fn apply_image( &mut self, image: &impl ToInputArray ) -> Result<IntelligentScissorsMB>
Specify input image and extract image features Read more
source§fn apply_image_features(
&mut self,
non_edge: &impl ToInputArray,
gradient_direction: &impl ToInputArray,
gradient_magnitude: &impl ToInputArray,
image: &impl ToInputArray
) -> Result<IntelligentScissorsMB>
fn apply_image_features( &mut self, non_edge: &impl ToInputArray, gradient_direction: &impl ToInputArray, gradient_magnitude: &impl ToInputArray, image: &impl ToInputArray ) -> Result<IntelligentScissorsMB>
Specify custom features of input image Read more
source§impl IntelligentScissorsMBTraitConst for IntelligentScissorsMB
impl IntelligentScissorsMBTraitConst for IntelligentScissorsMB
fn as_raw_IntelligentScissorsMB(&self) -> *const c_void
source§fn get_contour(
&self,
target_pt: Point,
contour: &mut impl ToOutputArray,
backward: bool
) -> Result<()>
fn get_contour( &self, target_pt: Point, contour: &mut impl ToOutputArray, backward: bool ) -> Result<()>
Extracts optimal contour for the given target point on the image Read more
impl Send for IntelligentScissorsMB
Auto Trait Implementations§
impl RefUnwindSafe for IntelligentScissorsMB
impl !Sync for IntelligentScissorsMB
impl Unpin for IntelligentScissorsMB
impl UnwindSafe for IntelligentScissorsMB
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more