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§
fn as_raw_mut_ArucoDetector(&mut self) -> *mut c_void
Provided Methods§
Sourcefn set_dictionary(
&mut self,
dictionary: &impl DictionaryTraitConst,
) -> Result<()>
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.
Sourcefn set_dictionaries(&mut self, dictionaries: &Vector<Dictionary>) -> Result<()>
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.
fn set_detector_parameters( &mut self, detector_parameters: &impl DetectorParametersTraitConst, ) -> Result<()>
fn set_refine_parameters( &mut self, refine_parameters: RefineParameters, ) -> Result<()>
Sourcefn write_1(&mut self, fs: &mut impl FileStorageTrait, name: &str) -> Result<()>
fn write_1(&mut self, fs: &mut impl FileStorageTrait, name: &str) -> Result<()>
simplified API for language bindings
Sourcefn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>
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.