Trait opencv::dnn::SegmentationModelTrait

source ·
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§

Provided Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§