Type Definition opencv::types::PtrOfDictionary
source · [−]pub type PtrOfDictionary = Ptr<Dictionary>;
Implementations
sourceimpl PtrOfDictionary
impl PtrOfDictionary
pub fn as_raw_PtrOfDictionary(&self) -> *const c_void
pub fn as_raw_mut_PtrOfDictionary(&mut self) -> *mut c_void
Trait Implementations
sourceimpl DictionaryTrait for PtrOfDictionary
impl DictionaryTrait for PtrOfDictionary
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)
sourcefn read_dictionary(&mut self, fn_: &FileNode) -> Result<bool>
fn read_dictionary(&mut self, fn_: &FileNode) -> Result<bool>
Read a new dictionary from FileNode. Format: Read more
sourcefn write_dictionary(&mut self, fs: &mut Ptr<FileStorage>) -> Result<()>
fn write_dictionary(&mut self, fs: &mut Ptr<FileStorage>) -> Result<()>
Write a dictionary to FileStorage. Format is the same as in readDictionary().
sourceimpl DictionaryTraitConst for PtrOfDictionary
impl DictionaryTraitConst for PtrOfDictionary
fn as_raw_Dictionary(&self) -> *const c_void
fn bytes_list(&self) -> Mat
fn marker_size(&self) -> i32
fn max_correction_bits(&self) -> i32
sourcefn identify(
&self,
only_bits: &Mat,
idx: &mut i32,
rotation: &mut i32,
max_correction_rate: f64
) -> Result<bool>
fn identify(
&self,
only_bits: &Mat,
idx: &mut i32,
rotation: &mut i32,
max_correction_rate: f64
) -> Result<bool>
Given a matrix of bits. Returns whether if marker is identified or not. It returns by reference the correct id (if any) and the correct rotation Read more
sourcefn get_distance_to_id(
&self,
bits: &dyn ToInputArray,
id: i32,
all_rotations: bool
) -> Result<i32>
fn get_distance_to_id(
&self,
bits: &dyn ToInputArray,
id: i32,
all_rotations: bool
) -> Result<i32>
Returns the distance of the input bits to the specific id. If allRotations is true, the four posible bits rotation are considered Read more
sourcefn draw_marker(
&self,
id: i32,
side_pixels: i32,
_img: &mut dyn ToOutputArray,
border_bits: i32
) -> Result<()>
fn draw_marker(
&self,
id: i32,
side_pixels: i32,
_img: &mut dyn ToOutputArray,
border_bits: i32
) -> Result<()>
Draw a canonical marker image Read more