Trait opencv::hub_prelude::Linemod_ModalityConst
source · pub trait Linemod_ModalityConst {
fn as_raw_Linemod_Modality(&self) -> *const c_void;
fn process(
&self,
src: &Mat,
mask: &Mat
) -> Result<Ptr<dyn Linemod_QuantizedPyramid>> { ... }
fn name(&self) -> Result<String> { ... }
fn write(&self, fs: &mut FileStorage) -> Result<()> { ... }
}
Expand description
\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
fn as_raw_Linemod_Modality(&self) -> *const c_void
Provided Methods
sourcefn process(
&self,
src: &Mat,
mask: &Mat
) -> Result<Ptr<dyn Linemod_QuantizedPyramid>>
fn process(
&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()