[][src]Trait opencv::prelude::MCC_CCheckerDraw

pub trait MCC_CCheckerDraw {
    pub fn as_raw_MCC_CCheckerDraw(&self) -> *const c_void;
pub fn as_raw_mut_MCC_CCheckerDraw(&mut self) -> *mut c_void; pub fn draw(&mut self, img: &mut dyn ToInputOutputArray) -> Result<()> { ... } }

\brief checker draw

This class contains the functions for drawing a detected chart. This class expects a pointer to the checker which will be drawn by this object in the constructor and then later on whenever the draw function is called the checker will be drawn. Remember that it is not possible to change the checkers which will be draw by a given object, as it is decided in the constructor itself. If you want to draw some other object you can create a new CCheckerDraw instance.

The reason for this type of design is that in some videos we can assume that the checker is always in the same position, even if the image changes, so the drawing will always take place at the same position.

Required methods

Loading content...

Provided methods

pub fn draw(&mut self, img: &mut dyn ToInputOutputArray) -> Result<()>[src]

\brief Draws the checker to the given image. \param img image in color space BGR \return void

Loading content...

Implementations

impl<'_> dyn MCC_CCheckerDraw + '_[src]

pub fn create(
    p_checker: Ptr<dyn MCC_CChecker>,
    color: Scalar,
    thickness: i32
) -> Result<Ptr<dyn MCC_CCheckerDraw>>
[src]

\brief Create a new CCheckerDraw object. \param pChecker The checker which will be drawn by this object. \param color The color by with which the squares of the checker will be drawn \param thickness The thickness with which the sqaures will be drawn \return A pointer to the implementation of the CCheckerDraw

C++ default parameters

  • color: CV_RGB(0,250,0)
  • thickness: 2

Implementors

Loading content...