Trait opencv::dnn::prelude::SegmentationModelTrait[][src]

pub trait SegmentationModelTrait: ModelTrait + SegmentationModelTraitConst {
    fn as_raw_mut_SegmentationModel(&mut self) -> *mut c_void;

    fn segment(
        &mut self,
        frame: &dyn ToInputArray,
        mask: &mut dyn ToOutputArray
    ) -> Result<()> { ... } }

Required methods

Provided methods

Given the @p input frame, create input blob, run net

Parameters
  • frame: The input image.
  • mask:[out] Allocated class prediction for each pixel

Implementors