pub struct CharucoDetector { /* private fields */ }
Implementations§
Source§impl CharucoDetector
impl CharucoDetector
Sourcepub fn new(
board: &impl CharucoBoardTraitConst,
charuco_params: &impl CharucoParametersTraitConst,
detector_params: &impl DetectorParametersTraitConst,
refine_params: RefineParameters,
) -> Result<CharucoDetector>
pub fn new( board: &impl CharucoBoardTraitConst, charuco_params: &impl CharucoParametersTraitConst, detector_params: &impl DetectorParametersTraitConst, refine_params: RefineParameters, ) -> Result<CharucoDetector>
Basic CharucoDetector constructor
§Parameters
- board: ChAruco board
- charucoParams: charuco detection parameters
- detectorParams: marker detection parameters
- refineParams: marker refine detection parameters
§C++ default parameters
- charuco_params: CharucoParameters()
- detector_params: DetectorParameters()
- refine_params: RefineParameters()
Sourcepub fn new_def(board: &impl CharucoBoardTraitConst) -> Result<CharucoDetector>
pub fn new_def(board: &impl CharucoBoardTraitConst) -> Result<CharucoDetector>
Basic CharucoDetector constructor
§Parameters
- board: ChAruco board
- charucoParams: charuco detection parameters
- detectorParams: marker detection parameters
- refineParams: marker refine detection parameters
§Note
This alternative version of [new] function uses the following default values for its arguments:
- charuco_params: CharucoParameters()
- detector_params: DetectorParameters()
- refine_params: RefineParameters()
Trait Implementations§
Source§impl AlgorithmTrait for CharucoDetector
impl AlgorithmTrait for CharucoDetector
Source§impl AlgorithmTraitConst for CharucoDetector
impl AlgorithmTraitConst for CharucoDetector
fn as_raw_Algorithm(&self) -> *const c_void
Source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
Source§fn write_1(&self, fs: &mut impl FileStorageTrait, name: &str) -> Result<()>
fn write_1(&self, fs: &mut impl FileStorageTrait, name: &str) -> Result<()>
Stores algorithm parameters in a file storage Read more
Source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
@deprecated Read more
Source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
👎Deprecated:
§Note
Deprecated: ## Note
This alternative version of AlgorithmTraitConst::write_with_name function uses the following default values for its arguments: Read more
Source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
Source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
Source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
Source§impl Boxed for CharucoDetector
impl Boxed for CharucoDetector
Source§unsafe fn from_raw(
ptr: <CharucoDetector as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <CharucoDetector as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(
self,
) -> <CharucoDetector as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self, ) -> <CharucoDetector as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <CharucoDetector as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <CharucoDetector as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <CharucoDetector as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <CharucoDetector as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl CharucoDetectorTrait for CharucoDetector
impl CharucoDetectorTrait for CharucoDetector
fn as_raw_mut_CharucoDetector(&mut self) -> *mut c_void
fn set_board(&mut self, board: &impl CharucoBoardTraitConst) -> Result<()>
fn set_charuco_parameters( &mut self, charuco_parameters: &mut impl CharucoParametersTrait, ) -> Result<()>
fn set_detector_parameters( &mut self, detector_parameters: &impl DetectorParametersTraitConst, ) -> Result<()>
fn set_refine_parameters( &mut self, refine_parameters: RefineParameters, ) -> Result<()>
Source§impl CharucoDetectorTraitConst for CharucoDetector
impl CharucoDetectorTraitConst for CharucoDetector
fn as_raw_CharucoDetector(&self) -> *const c_void
fn get_board(&self) -> Result<CharucoBoard>
fn get_charuco_parameters(&self) -> Result<CharucoParameters>
fn get_detector_parameters(&self) -> Result<DetectorParameters>
fn get_refine_parameters(&self) -> Result<RefineParameters>
Source§fn detect_board(
&self,
image: &impl ToInputArray,
charuco_corners: &mut impl ToOutputArray,
charuco_ids: &mut impl ToOutputArray,
marker_corners: &mut impl ToInputOutputArray,
marker_ids: &mut impl ToInputOutputArray,
) -> Result<()>
fn detect_board( &self, image: &impl ToInputArray, charuco_corners: &mut impl ToOutputArray, charuco_ids: &mut impl ToOutputArray, marker_corners: &mut impl ToInputOutputArray, marker_ids: &mut impl ToInputOutputArray, ) -> Result<()>
detect aruco markers and interpolate position of ChArUco board corners Read more
Source§fn detect_board_def(
&self,
image: &impl ToInputArray,
charuco_corners: &mut impl ToOutputArray,
charuco_ids: &mut impl ToOutputArray,
) -> Result<()>
fn detect_board_def( &self, image: &impl ToInputArray, charuco_corners: &mut impl ToOutputArray, charuco_ids: &mut impl ToOutputArray, ) -> Result<()>
detect aruco markers and interpolate position of ChArUco board corners Read more
Source§fn detect_diamonds(
&self,
image: &impl ToInputArray,
diamond_corners: &mut impl ToOutputArray,
diamond_ids: &mut impl ToOutputArray,
marker_corners: &mut impl ToInputOutputArray,
marker_ids: &mut impl ToInputOutputArray,
) -> Result<()>
fn detect_diamonds( &self, image: &impl ToInputArray, diamond_corners: &mut impl ToOutputArray, diamond_ids: &mut impl ToOutputArray, marker_corners: &mut impl ToInputOutputArray, marker_ids: &mut impl ToInputOutputArray, ) -> Result<()>
Detect ChArUco Diamond markers Read more
Source§fn detect_diamonds_def(
&self,
image: &impl ToInputArray,
diamond_corners: &mut impl ToOutputArray,
diamond_ids: &mut impl ToOutputArray,
) -> Result<()>
fn detect_diamonds_def( &self, image: &impl ToInputArray, diamond_corners: &mut impl ToOutputArray, diamond_ids: &mut impl ToOutputArray, ) -> Result<()>
Detect ChArUco Diamond markers Read more
Source§impl Debug for CharucoDetector
impl Debug for CharucoDetector
Source§impl Drop for CharucoDetector
impl Drop for CharucoDetector
Source§impl From<CharucoDetector> for Algorithm
impl From<CharucoDetector> for Algorithm
Source§fn from(s: CharucoDetector) -> Self
fn from(s: CharucoDetector) -> Self
Converts to this type from the input type.
impl Send for CharucoDetector
Auto Trait Implementations§
impl Freeze for CharucoDetector
impl RefUnwindSafe for CharucoDetector
impl !Sync for CharucoDetector
impl Unpin for CharucoDetector
impl UnwindSafe for CharucoDetector
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
Mutably borrows from an owned value. Read more
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
Helper function to call OpenCV functions that allow in-place modification of a
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 unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold
. Read more