[−][src]Struct opencv::aruco::Dictionary
Dictionary/Set of markers. It contains the inner codification
bytesList contains the marker codewords where
- bytesList.rows is the dictionary size
- each marker is encoded using
nbytes = ceil(markerSize*markerSize/8.)
- each row contains all 4 rotations of the marker, so its length is
4*nbytes
bytesList.ptr(i)[k*nbytes + j]
is then the j-th byte of i-th marker, in its k-th rotation.
Implementations
impl Dictionary
[src]
pub fn as_raw_Dictionary(&self) -> *const c_void
[src]
pub fn as_raw_mut_Dictionary(&mut self) -> *mut c_void
[src]
impl Dictionary
[src]
pub fn new(
_bytes_list: &Mat,
_marker_size: i32,
_maxcorr: i32
) -> Result<Dictionary>
[src]
_bytes_list: &Mat,
_marker_size: i32,
_maxcorr: i32
) -> Result<Dictionary>
C++ default parameters
- _bytes_list: Mat()
- _marker_size: 0
- _maxcorr: 0
pub fn copy(_dictionary: &Ptr<Dictionary>) -> Result<Dictionary>
[src]
pub fn create(
n_markers: i32,
marker_size: i32,
random_seed: i32
) -> Result<Ptr<Dictionary>>
[src]
n_markers: i32,
marker_size: i32,
random_seed: i32
) -> Result<Ptr<Dictionary>>
pub fn create_from(
n_markers: i32,
marker_size: i32,
base_dictionary: &Ptr<Dictionary>,
random_seed: i32
) -> Result<Ptr<Dictionary>>
[src]
n_markers: i32,
marker_size: i32,
base_dictionary: &Ptr<Dictionary>,
random_seed: i32
) -> Result<Ptr<Dictionary>>
pub fn get(dict: i32) -> Result<Ptr<Dictionary>>
[src]
See also
getPredefinedDictionary
pub fn get_byte_list_from_bits(bits: &Mat) -> Result<Mat>
[src]
Transform matrix of bits to list of bytes in the 4 rotations
pub fn get_bits_from_byte_list(byte_list: &Mat, marker_size: i32) -> Result<Mat>
[src]
Transform list of bytes to matrix of bits
Trait Implementations
impl Boxed for Dictionary
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl DictionaryTrait for Dictionary
[src]
fn as_raw_Dictionary(&self) -> *const c_void
[src]
fn as_raw_mut_Dictionary(&mut self) -> *mut c_void
[src]
fn bytes_list(&mut self) -> Mat
[src]
fn set_bytes_list(&mut self, val: Mat)
[src]
fn marker_size(&self) -> i32
[src]
fn set_marker_size(&mut self, val: i32)
[src]
fn max_correction_bits(&self) -> i32
[src]
fn set_max_correction_bits(&mut self, val: i32)
[src]
fn identify(
&self,
only_bits: &Mat,
idx: &mut i32,
rotation: &mut i32,
max_correction_rate: f64
) -> Result<bool>
[src]
&self,
only_bits: &Mat,
idx: &mut i32,
rotation: &mut i32,
max_correction_rate: f64
) -> Result<bool>
fn get_distance_to_id(
&self,
bits: &dyn ToInputArray,
id: i32,
all_rotations: bool
) -> Result<i32>
[src]
&self,
bits: &dyn ToInputArray,
id: i32,
all_rotations: bool
) -> Result<i32>
fn draw_marker(
&self,
id: i32,
side_pixels: i32,
_img: &mut dyn ToOutputArray,
border_bits: i32
) -> Result<()>
[src]
&self,
id: i32,
side_pixels: i32,
_img: &mut dyn ToOutputArray,
border_bits: i32
) -> Result<()>
impl Drop for Dictionary
[src]
impl Send for Dictionary
[src]
Auto Trait Implementations
impl RefUnwindSafe for Dictionary
impl !Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,