Trait opencv::prelude::LineMod_DetectorTrait
source · 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§
fn as_raw_mut_LineMod_Detector(&mut self) -> *mut c_void
Provided Methods§
sourcefn add_template(
&mut self,
sources: &Vector<Mat>,
class_id: &str,
object_mask: &Mat,
bounding_box: &mut Rect
) -> Result<i32>
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
sourcefn add_synthetic_template(
&mut self,
templates: &Vector<LineMod_Template>,
class_id: &str
) -> Result<i32>
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.
fn read(&mut self, fn_: &FileNode) -> Result<()>
sourcefn read_class(
&mut self,
fn_: &FileNode,
class_id_override: &str
) -> Result<String>
fn read_class( &mut self, fn_: &FileNode, class_id_override: &str ) -> Result<String>
C++ default parameters
- class_id_override: “”
sourcefn read_classes(
&mut self,
class_ids: &Vector<String>,
format: &str
) -> Result<()>
fn read_classes( &mut self, class_ids: &Vector<String>, format: &str ) -> Result<()>
C++ default parameters
- format: “templates_%s.yml.gz”