pub trait Linemod_Modality: Linemod_ModalityConst {
    // Required method
    fn as_raw_mut_Linemod_Modality(&mut self) -> *mut c_void;

    // Provided method
    fn read(&mut self, fn_: &FileNode) -> 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§

Provided Methods§

source

fn read(&mut self, fn_: &FileNode) -> Result<()>

Implementations§

source§

impl dyn Linemod_Modality + '_

source

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

\brief Create modality by name.

The following modality types are supported:

  • “ColorGradient”
  • “DepthNormal”
source

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

\brief Load a modality from file.

Implementors§