[−][src]Trait opencv::rgbd::prelude::Linemod_Modality
\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
pub fn as_raw_Linemod_Modality(&self) -> *const c_void
[src]
pub fn as_raw_mut_Linemod_Modality(&mut self) -> *mut c_void
[src]
Provided methods
pub fn process(
&self,
src: &Mat,
mask: &Mat
) -> Result<Ptr<dyn Linemod_QuantizedPyramid>>
[src]
&self,
src: &Mat,
mask: &Mat
) -> Result<Ptr<dyn 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()
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]
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.