pub trait LineMod_ModalityTraitConst {
// Required method
fn as_raw_LineMod_Modality(&self) -> *const c_void;
// Provided methods
fn process(
&self,
src: &impl MatTraitConst,
mask: &impl MatTraitConst,
) -> Result<Ptr<LineMod_QuantizedPyramid>> { ... }
fn process_def(
&self,
src: &impl MatTraitConst,
) -> Result<Ptr<LineMod_QuantizedPyramid>> { ... }
fn name(&self) -> Result<String> { ... }
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()> { ... }
}
Expand description
Constant methods for crate::rgbd::LineMod_Modality
Required Methods§
fn as_raw_LineMod_Modality(&self) -> *const c_void
Provided Methods§
Sourcefn process(
&self,
src: &impl MatTraitConst,
mask: &impl MatTraitConst,
) -> Result<Ptr<LineMod_QuantizedPyramid>>
fn process( &self, src: &impl MatTraitConst, mask: &impl MatTraitConst, ) -> 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()
Sourcefn process_def(
&self,
src: &impl MatTraitConst,
) -> Result<Ptr<LineMod_QuantizedPyramid>>
fn process_def( &self, src: &impl MatTraitConst, ) -> 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()
fn name(&self) -> Result<String>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.