Trait opencv::hub_prelude::BoardTrait
source · [−]pub trait BoardTrait: BoardTraitConst {
fn as_raw_mut_Board(&mut self) -> *mut c_void;
fn set_obj_points(&mut self, val: Vector<Vector<Point3f>>) { ... }
fn dictionary(&mut self) -> Ptr<Dictionary> { ... }
fn set_dictionary(&mut self, val: Ptr<Dictionary>) { ... }
fn set_ids(&mut self, val: Vector<i32>) { ... }
fn set_right_bottom_border(&mut self, val: Point3f) { ... }
fn set_ids_1(&mut self, ids: &dyn ToInputArray) -> Result<()> { ... }
}
Required Methods
fn as_raw_mut_Board(&mut self) -> *mut c_void
Provided Methods
sourcefn set_obj_points(&mut self, val: Vector<Vector<Point3f>>)
fn set_obj_points(&mut self, val: Vector<Vector<Point3f>>)
array of object points of all the marker corners in the board each marker include its 4 corners in this order:
- objPoints[i][0] - left-top point of i-th marker
- objPoints[i][1] - right-top point of i-th marker
- objPoints[i][2] - right-bottom point of i-th marker
- objPoints[i][3] - left-bottom point of i-th marker
Markers are placed in a certain order - row by row, left to right in every row. For M markers, the size is Mx4.
sourcefn dictionary(&mut self) -> Ptr<Dictionary>
fn dictionary(&mut self) -> Ptr<Dictionary>
the dictionary of markers employed for this board
sourcefn set_dictionary(&mut self, val: Ptr<Dictionary>)
fn set_dictionary(&mut self, val: Ptr<Dictionary>)
the dictionary of markers employed for this board
sourcefn set_ids(&mut self, val: Vector<i32>)
fn set_ids(&mut self, val: Vector<i32>)
vector of the identifiers of the markers in the board (same size than objPoints) The identifiers refers to the board dictionary
sourcefn set_right_bottom_border(&mut self, val: Point3f)
fn set_right_bottom_border(&mut self, val: Point3f)
coordinate of the bottom right corner of the board, is set when calling the function create()
sourcefn set_ids_1(&mut self, ids: &dyn ToInputArray) -> Result<()>
fn set_ids_1(&mut self, ids: &dyn ToInputArray) -> Result<()>
Set ids vector
Parameters
- ids: vector of the identifiers of the markers in the board (should be the same size as objPoints)
Recommended way to set ids vector, which will fail if the size of ids does not match size of objPoints.