pub trait LineMod_ModalityTraitConst {
    // Required method
    fn as_raw_LineMod_Modality(&self) -> *const c_void;

    // Provided methods
    fn process(
        &self,
        src: &Mat,
        mask: &Mat
    ) -> Result<Ptr<LineMod_QuantizedPyramid>> { ... }
    fn process_def(&self, src: &Mat) -> Result<Ptr<LineMod_QuantizedPyramid>> { ... }
    fn name(&self) -> Result<String> { ... }
    fn write(&self, fs: &mut FileStorage) -> Result<()> { ... }
}
Expand description

Constant methods for crate::rgbd::LineMod_Modality

Required Methods§

Provided Methods§

source

fn process( &self, src: &Mat, mask: &Mat ) -> Result<Ptr<LineMod_QuantizedPyramid>>

\brief Form a quantized image pyramid from a source image.

\param[in] src The source image. Type depends on the modality. \param[in] mask Optional mask. If not empty, unmasked pixels are set to zero in quantized image and cannot be extracted as features.

C++ default parameters
  • mask: Mat()
source

fn process_def(&self, src: &Mat) -> Result<Ptr<LineMod_QuantizedPyramid>>

\brief Form a quantized image pyramid from a source image.

\param[in] src The source image. Type depends on the modality. \param[in] mask Optional mask. If not empty, unmasked pixels are set to zero in quantized image and cannot be extracted as features.

Note

This alternative version of LineMod_ModalityTraitConst::process function uses the following default values for its arguments:

  • mask: Mat()
source

fn name(&self) -> Result<String>

source

fn write(&self, fs: &mut FileStorage) -> Result<()>

Implementors§