pub trait LineMod_DetectorTrait: LineMod_DetectorTraitConst {
    // Required method
    fn as_raw_mut_LineMod_Detector(&mut self) -> *mut c_void;

    // Provided methods
    fn add_template(
        &mut self,
        sources: &Vector<Mat>,
        class_id: &str,
        object_mask: &Mat,
        bounding_box: &mut Rect
    ) -> Result<i32> { ... }
    fn add_synthetic_template(
        &mut self,
        templates: &Vector<LineMod_Template>,
        class_id: &str
    ) -> Result<i32> { ... }
    fn read(&mut self, fn_: &FileNode) -> Result<()> { ... }
    fn read_class(
        &mut self,
        fn_: &FileNode,
        class_id_override: &str
    ) -> Result<String> { ... }
    fn read_classes(
        &mut self,
        class_ids: &Vector<String>,
        format: &str
    ) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::rgbd::LineMod_Detector

Required Methods§

Provided Methods§

source

fn add_template( &mut self, sources: &Vector<Mat>, class_id: &str, object_mask: &Mat, bounding_box: &mut Rect ) -> Result<i32>

\brief Add new object template.

\param sources Source images, one for each modality. \param class_id Object class ID. \param object_mask Mask separating object from background. \param[out] bounding_box Optionally return bounding box of the extracted features.

\return Template ID, or -1 if failed to extract a valid template.

C++ default parameters
  • bounding_box: NULL
source

fn add_synthetic_template( &mut self, templates: &Vector<LineMod_Template>, class_id: &str ) -> Result<i32>

\brief Add a new object template computed by external means.

source

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

source

fn read_class( &mut self, fn_: &FileNode, class_id_override: &str ) -> Result<String>

C++ default parameters
  • class_id_override: “”
source

fn read_classes( &mut self, class_ids: &Vector<String>, format: &str ) -> Result<()>

C++ default parameters
  • format: “templates_%s.yml.gz”

Implementors§