pub trait DictionaryTrait: DictionaryTraitConst {
    fn as_raw_mut_Dictionary(&mut self) -> *mut c_void;

    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_: &FileNode) -> Result<bool> { ... }
    fn write_dictionary(&mut self, fs: &mut Ptr<FileStorage>) -> Result<()> { ... }
}

Required Methods

Provided Methods

Read a new dictionary from FileNode. Format:

nmarkers: 35

markersize: 6

maxCorrectionBits: 5

marker_0: “101011111011111001001001101100000000”

marker_34: “011111010000111011111110110101100101”

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

Implementors