[][src]Trait opencv::rgbd::prelude::Linemod_Modality

pub trait Linemod_Modality {
    pub fn as_raw_Linemod_Modality(&self) -> *const c_void;
pub fn as_raw_mut_Linemod_Modality(&mut self) -> *mut c_void; pub fn process(
        &self,
        src: &Mat,
        mask: &Mat
    ) -> Result<Ptr<dyn Linemod_QuantizedPyramid>> { ... }
pub fn name(&self) -> Result<String> { ... }
pub fn read(&mut self, fn_: &FileNode) -> Result<()> { ... }
pub fn write(&self, fs: &mut FileStorage) -> Result<()> { ... } }

\brief Interface for modalities that plug into the LINE template matching representation.

\todo Max response, to allow optimization of summing (255/MAX) features as uint8

Required methods

Loading content...

Provided methods

pub fn process(
    &self,
    src: &Mat,
    mask: &Mat
) -> Result<Ptr<dyn Linemod_QuantizedPyramid>>
[src]

\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()

pub fn name(&self) -> Result<String>[src]

pub fn read(&mut self, fn_: &FileNode) -> Result<()>[src]

pub fn write(&self, fs: &mut FileStorage) -> Result<()>[src]

Loading content...

Implementations

impl<'_> dyn Linemod_Modality + '_[src]

pub fn create(modality_type: &str) -> Result<Ptr<dyn Linemod_Modality>>[src]

\brief Create modality by name.

The following modality types are supported:

  • "ColorGradient"
  • "DepthNormal"

pub fn create_1(fn_: &FileNode) -> Result<Ptr<dyn Linemod_Modality>>[src]

\brief Load a modality from file.

Implementors

Loading content...