ArucoDetectorTrait

Trait ArucoDetectorTrait 

Source
pub trait ArucoDetectorTrait: AlgorithmTrait + ArucoDetectorTraitConst {
    // Required method
    fn as_raw_mut_ArucoDetector(&mut self) -> *mut c_void;

    // Provided methods
    fn set_dictionary(
        &mut self,
        dictionary: &impl DictionaryTraitConst,
    ) -> Result<()> { ... }
    fn set_dictionaries(
        &mut self,
        dictionaries: &Vector<Dictionary>,
    ) -> Result<()> { ... }
    fn set_detector_parameters(
        &mut self,
        detector_parameters: &impl DetectorParametersTraitConst,
    ) -> Result<()> { ... }
    fn set_refine_parameters(
        &mut self,
        refine_parameters: RefineParameters,
    ) -> Result<()> { ... }
    fn write_1(
        &mut self,
        fs: &mut impl FileStorageTrait,
        name: &str,
    ) -> Result<()> { ... }
    fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::objdetect::ArucoDetector

Required Methods§

Provided Methods§

Source

fn set_dictionary( &mut self, dictionary: &impl DictionaryTraitConst, ) -> Result<()>

Sets and replaces the first dictionary in internal list to be used for marker detection.

§Parameters
  • dictionary: The new dictionary that will replace the first dictionary in the internal list.
Source

fn set_dictionaries(&mut self, dictionaries: &Vector<Dictionary>) -> Result<()>

Sets the entire collection of dictionaries to be used for marker detection, replacing any existing dictionaries.

§Parameters
  • dictionaries: A std::vector containing the new set of dictionaries to be used.

Configures the ArucoDetector to use the provided vector of dictionaries for marker detection. This method replaces any dictionaries that were previously set.

Note: Setting an empty vector of dictionaries will throw an error.

Source

fn set_detector_parameters( &mut self, detector_parameters: &impl DetectorParametersTraitConst, ) -> Result<()>

Source

fn set_refine_parameters( &mut self, refine_parameters: RefineParameters, ) -> Result<()>

Source

fn write_1(&mut self, fs: &mut impl FileStorageTrait, name: &str) -> Result<()>

simplified API for language bindings

Source

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

Reads algorithm parameters from a file storage

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.

Implementors§