MCC_CCheckerTrait

Trait MCC_CCheckerTrait 

Source
pub trait MCC_CCheckerTrait: MCC_CCheckerTraitConst {
Show 14 methods // Required method fn as_raw_mut_MCC_CChecker(&mut self) -> *mut c_void; // Provided methods fn set_target(&mut self, _target: MCC_TYPECHART) -> Result<()> { ... } fn set_box(&mut self, _box: Vector<Point2f>) -> Result<()> { ... } fn set_charts_rgb(&mut self, _charts_rgb: impl MatTrait) -> Result<()> { ... } fn set_charts_y_cb_cr( &mut self, _charts_y_cb_cr: impl MatTrait, ) -> Result<()> { ... } fn set_cost(&mut self, _cost: f32) -> Result<()> { ... } fn set_center(&mut self, _center: Point2f) -> Result<()> { ... } fn get_target(&mut self) -> Result<MCC_TYPECHART> { ... } fn get_box(&mut self) -> Result<Vector<Point2f>> { ... } fn get_color_charts(&mut self) -> Result<Vector<Point2f>> { ... } fn get_charts_rgb(&mut self) -> Result<Mat> { ... } fn get_charts_y_cb_cr(&mut self) -> Result<Mat> { ... } fn get_cost(&mut self) -> Result<f32> { ... } fn get_center(&mut self) -> Result<Point2f> { ... }
}
Expand description

Mutable methods for crate::mcc::MCC_CChecker

Required Methods§

Provided Methods§

Source

fn set_target(&mut self, _target: MCC_TYPECHART) -> Result<()>

Source

fn set_box(&mut self, _box: Vector<Point2f>) -> Result<()>

Source

fn set_charts_rgb(&mut self, _charts_rgb: impl MatTrait) -> Result<()>

Source

fn set_charts_y_cb_cr(&mut self, _charts_y_cb_cr: impl MatTrait) -> Result<()>

Source

fn set_cost(&mut self, _cost: f32) -> Result<()>

Source

fn set_center(&mut self, _center: Point2f) -> Result<()>

Source

fn get_target(&mut self) -> Result<MCC_TYPECHART>

Source

fn get_box(&mut self) -> Result<Vector<Point2f>>

Source

fn get_color_charts(&mut self) -> Result<Vector<Point2f>>

Computes and returns the coordinates of the central parts of the charts modules.

This method computes transformation matrix from the checkers’s coordinates (cv::mcc::CChecker::getBox()) and find by this the coordinates of the central parts of the charts modules. It is used in cv::mcc::CCheckerDraw::draw() and in ChartsRGB calculation.

Source

fn get_charts_rgb(&mut self) -> Result<Mat>

Source

fn get_charts_y_cb_cr(&mut self) -> Result<Mat>

Source

fn get_cost(&mut self) -> Result<f32>

Source

fn get_center(&mut self) -> Result<Point2f>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§