pub trait SegmentationModelTrait: ModelTrait + SegmentationModelTraitConst {
    // Required method
    fn as_raw_mut_SegmentationModel(&mut self) -> *mut c_void;
    // Provided method
    fn segment(
        &mut self,
        frame: &impl ToInputArray,
        mask: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
}Expand description
Mutable methods for crate::dnn::SegmentationModel
Required Methods§
fn as_raw_mut_SegmentationModel(&mut self) -> *mut c_void
Provided Methods§
Sourcefn segment(
    &mut self,
    frame: &impl ToInputArray,
    mask: &mut impl ToOutputArray,
) -> Result<()>
 
fn segment( &mut self, frame: &impl ToInputArray, mask: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input frame, create input blob, run net
§Parameters
- frame: The input image.
 - mask:[out] Allocated class prediction for each pixel
 
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.