Struct opencv::mcc::MCC_CCheckerDraw
source · pub struct MCC_CCheckerDraw { /* private fields */ }
Expand description
\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.
Implementations§
source§impl MCC_CCheckerDraw
impl MCC_CCheckerDraw
sourcepub fn create(
p_checker: Ptr<MCC_CChecker>,
color: Scalar,
thickness: i32
) -> Result<Ptr<MCC_CCheckerDraw>>
pub fn create( p_checker: Ptr<MCC_CChecker>, color: Scalar, thickness: i32 ) -> Result<Ptr<MCC_CCheckerDraw>>
\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
sourcepub fn create_def(p_checker: Ptr<MCC_CChecker>) -> Result<Ptr<MCC_CCheckerDraw>>
pub fn create_def(p_checker: Ptr<MCC_CChecker>) -> Result<Ptr<MCC_CCheckerDraw>>
\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
§Note
This alternative version of MCC_CCheckerDraw::create function uses the following default values for its arguments:
- color: CV_RGB(0,250,0)
- thickness: 2
Trait Implementations§
source§impl Boxed for MCC_CCheckerDraw
impl Boxed for MCC_CCheckerDraw
source§unsafe fn from_raw(
ptr: <MCC_CCheckerDraw as OpenCVFromExtern>::ExternReceive
) -> Self
unsafe fn from_raw( ptr: <MCC_CCheckerDraw as OpenCVFromExtern>::ExternReceive ) -> Self
source§fn into_raw(
self
) -> <MCC_CCheckerDraw as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self ) -> <MCC_CCheckerDraw as OpenCVTypeExternContainer>::ExternSendMut
source§fn as_raw(&self) -> <MCC_CCheckerDraw as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <MCC_CCheckerDraw as OpenCVTypeExternContainer>::ExternSend
source§fn as_raw_mut(
&mut self
) -> <MCC_CCheckerDraw as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self ) -> <MCC_CCheckerDraw as OpenCVTypeExternContainer>::ExternSendMut
source§impl Debug for MCC_CCheckerDraw
impl Debug for MCC_CCheckerDraw
source§impl Drop for MCC_CCheckerDraw
impl Drop for MCC_CCheckerDraw
source§impl MCC_CCheckerDrawTraitConst for MCC_CCheckerDraw
impl MCC_CCheckerDrawTraitConst for MCC_CCheckerDraw
fn as_raw_MCC_CCheckerDraw(&self) -> *const c_void
impl Send for MCC_CCheckerDraw
Auto Trait Implementations§
impl Freeze for MCC_CCheckerDraw
impl RefUnwindSafe for MCC_CCheckerDraw
impl !Sync for MCC_CCheckerDraw
impl Unpin for MCC_CCheckerDraw
impl UnwindSafe for MCC_CCheckerDraw
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res ) -> Res
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is of course unsafe as it breaks the Rust aliasing rules, but it might be useful for some performance
sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold
. Read more