Struct opencv::mcc::MCC_DetectorParameters
source · pub struct MCC_DetectorParameters { /* private fields */ }
Expand description
Parameters for the detectMarker process:
- int adaptiveThreshWinSizeMin : minimum window size for adaptive thresholding before finding contours (default 23).
- int adaptiveThreshWinSizeMax : maximum window size for adaptive thresholding before finding contours (default 153).
- int adaptiveThreshWinSizeStep : increments from adaptiveThreshWinSizeMin to adaptiveThreshWinSizeMax during the thresholding (default 16).
- double adaptiveThreshConstant : constant for adaptive thresholding before finding contours (default 7)
- double minContoursAreaRate : determine minimum area for marker contour to be detected. This is defined as a rate respect to the area of the input image. Used only if neural network is used (default 0.003).
- double minContoursArea : determine minimum area for marker contour to be detected. This is defined as the actual area. Used only if neural network is not used (default 100).
- double confidenceThreshold : minimum confidence for a bounding box detected by neural network to classify as detection.(default 0.5) (0<=confidenceThreshold<=1)
- double minContourSolidity : minimum solidity of a contour for it be detected as a square in the chart. (default 0.9).
- double findCandidatesApproxPolyDPEpsMultiplier : multipler to be used in cv::ApproxPolyDP function (default 0.05)
- int borderWidth : width of the padding used to pass the inital neural network detection in the succeeding system.(default 0)
- float B0factor : distance between two neighbours squares of the same chart. Defined as the ratio between distance and large dimension of square (default 1.25)
- float maxError : maximum allowed error in the detection of a chart. default(0.1)
- int minContourPointsAllowed : minium points in a detected contour. default(4)
- int minContourLengthAllowed : minimum length of a countour. default(100)
- int minInterContourDistance : minimum distance between two contours. default(100)
- int minInterCheckerDistance : minimum distance between two checkers. default(10000)
- int minImageSize : minimum size of the smaller dimension of the image. default(1000)
- unsigned minGroupSize : minimum number of a squared of a chart that must be detected. default(4)
Implementations§
source§impl MCC_DetectorParameters
impl MCC_DetectorParameters
pub fn default() -> Result<MCC_DetectorParameters>
pub fn create() -> Result<Ptr<MCC_DetectorParameters>>
Trait Implementations§
source§impl Boxed for MCC_DetectorParameters
impl Boxed for MCC_DetectorParameters
source§unsafe fn from_raw(
ptr: <MCC_DetectorParameters as OpenCVFromExtern>::ExternReceive
) -> Self
unsafe fn from_raw( ptr: <MCC_DetectorParameters as OpenCVFromExtern>::ExternReceive ) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(
self
) -> <MCC_DetectorParameters as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self ) -> <MCC_DetectorParameters as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(
&self
) -> <MCC_DetectorParameters as OpenCVTypeExternContainer>::ExternSend
fn as_raw( &self ) -> <MCC_DetectorParameters as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(
&mut self
) -> <MCC_DetectorParameters as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self ) -> <MCC_DetectorParameters as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl Debug for MCC_DetectorParameters
impl Debug for MCC_DetectorParameters
source§impl Drop for MCC_DetectorParameters
impl Drop for MCC_DetectorParameters
source§impl MCC_DetectorParametersTrait for MCC_DetectorParameters
impl MCC_DetectorParametersTrait for MCC_DetectorParameters
fn as_raw_mut_MCC_DetectorParameters(&mut self) -> *mut c_void
fn set_adaptive_thresh_win_size_min(&mut self, val: i32)
fn set_adaptive_thresh_win_size_max(&mut self, val: i32)
fn set_adaptive_thresh_win_size_step(&mut self, val: i32)
fn set_adaptive_thresh_constant(&mut self, val: f64)
fn set_min_contours_area_rate(&mut self, val: f64)
fn set_min_contours_area(&mut self, val: f64)
fn set_confidence_threshold(&mut self, val: f64)
fn set_min_contour_solidity(&mut self, val: f64)
fn set_find_candidates_approx_poly_dp_eps_multiplier(&mut self, val: f64)
fn set_border_width(&mut self, val: i32)
fn set_b0factor(&mut self, val: f32)
fn set_max_error(&mut self, val: f32)
fn set_min_contour_points_allowed(&mut self, val: i32)
fn set_min_contour_length_allowed(&mut self, val: i32)
fn set_min_inter_contour_distance(&mut self, val: i32)
fn set_min_inter_checker_distance(&mut self, val: i32)
fn set_min_image_size(&mut self, val: i32)
fn set_min_group_size(&mut self, val: u32)
source§impl MCC_DetectorParametersTraitConst for MCC_DetectorParameters
impl MCC_DetectorParametersTraitConst for MCC_DetectorParameters
fn as_raw_MCC_DetectorParameters(&self) -> *const c_void
fn adaptive_thresh_win_size_min(&self) -> i32
fn adaptive_thresh_win_size_max(&self) -> i32
fn adaptive_thresh_win_size_step(&self) -> i32
fn adaptive_thresh_constant(&self) -> f64
fn min_contours_area_rate(&self) -> f64
fn min_contours_area(&self) -> f64
fn confidence_threshold(&self) -> f64
fn min_contour_solidity(&self) -> f64
fn find_candidates_approx_poly_dp_eps_multiplier(&self) -> f64
fn border_width(&self) -> i32
fn b0factor(&self) -> f32
fn max_error(&self) -> f32
fn min_contour_points_allowed(&self) -> i32
fn min_contour_length_allowed(&self) -> i32
fn min_inter_contour_distance(&self) -> i32
fn min_inter_checker_distance(&self) -> i32
fn min_image_size(&self) -> i32
fn min_group_size(&self) -> u32
impl Send for MCC_DetectorParameters
Auto Trait Implementations§
impl Freeze for MCC_DetectorParameters
impl RefUnwindSafe for MCC_DetectorParameters
impl !Sync for MCC_DetectorParameters
impl Unpin for MCC_DetectorParameters
impl UnwindSafe for MCC_DetectorParameters
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 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