Trait opencv::objdetect::DictionaryTrait

source ·
pub trait DictionaryTrait: DictionaryTraitConst {
    // Required method
    fn as_raw_mut_Dictionary(&mut self) -> *mut c_void;

    // Provided methods
    fn set_bytes_list(&mut self, val: Mat) { ... }
    fn set_marker_size(&mut self, val: i32) { ... }
    fn set_max_correction_bits(&mut self, val: i32) { ... }
    fn read_dictionary(&mut self, fn_: &impl FileNodeTraitConst) -> Result<bool> { ... }
    fn write_dictionary(
        &mut self,
        fs: &mut impl FileStorageTrait,
        name: &str
    ) -> Result<()> { ... }
    fn write_dictionary_def(
        &mut self,
        fs: &mut impl FileStorageTrait
    ) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::objdetect::Dictionary

Required Methods§

Provided Methods§

source

fn set_bytes_list(&mut self, val: Mat)

marker code information. See class description for more details

source

fn set_marker_size(&mut self, val: i32)

number of bits per dimension

source

fn set_max_correction_bits(&mut self, val: i32)

maximum number of bits that can be corrected

source

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

Read a new dictionary from FileNode.

Dictionary example in YAML format:

nmarkers: 35

markersize: 6

maxCorrectionBits: 5

marker_0: “101011111011111001001001101100000000”

marker_34: “011111010000111011111110110101100101”

source

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

Write a dictionary to FileStorage, format is the same as in readDictionary().

§C++ default parameters
  • name: String()
source

fn write_dictionary_def(&mut self, fs: &mut impl FileStorageTrait) -> Result<()>

Write a dictionary to FileStorage, format is the same as in readDictionary().

§Note

This alternative version of DictionaryTrait::write_dictionary function uses the following default values for its arguments:

  • name: String()

Object Safety§

This trait is not object safe.

Implementors§