Struct opencv::objdetect::DetectorParameters
source · pub struct DetectorParameters { /* private fields */ }
Expand description
struct DetectorParameters is used by ArucoDetector
Implementations§
source§impl DetectorParameters
impl DetectorParameters
pub fn default() -> Result<DetectorParameters>
Trait Implementations§
source§impl Boxed for DetectorParameters
impl Boxed for DetectorParameters
source§unsafe fn from_raw(
ptr: <DetectorParameters as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <DetectorParameters as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(
self,
) -> <DetectorParameters as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self, ) -> <DetectorParameters as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(
&self,
) -> <DetectorParameters as OpenCVTypeExternContainer>::ExternSend
fn as_raw( &self, ) -> <DetectorParameters as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(
&mut self,
) -> <DetectorParameters as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <DetectorParameters as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl Clone for DetectorParameters
impl Clone for DetectorParameters
source§impl Debug for DetectorParameters
impl Debug for DetectorParameters
source§impl DetectorParametersTrait for DetectorParameters
impl DetectorParametersTrait for DetectorParameters
fn as_raw_mut_DetectorParameters(&mut self) -> *mut c_void
source§fn set_adaptive_thresh_win_size_min(&mut self, val: i32)
fn set_adaptive_thresh_win_size_min(&mut self, val: i32)
minimum window size for adaptive thresholding before finding contours (default 3).
source§fn set_adaptive_thresh_win_size_max(&mut self, val: i32)
fn set_adaptive_thresh_win_size_max(&mut self, val: i32)
maximum window size for adaptive thresholding before finding contours (default 23).
source§fn set_adaptive_thresh_win_size_step(&mut self, val: i32)
fn set_adaptive_thresh_win_size_step(&mut self, val: i32)
increments from adaptiveThreshWinSizeMin to adaptiveThreshWinSizeMax during the thresholding (default 10).
source§fn set_adaptive_thresh_constant(&mut self, val: f64)
fn set_adaptive_thresh_constant(&mut self, val: f64)
constant for adaptive thresholding before finding contours (default 7)
source§fn set_min_marker_perimeter_rate(&mut self, val: f64)
fn set_min_marker_perimeter_rate(&mut self, val: f64)
determine minimum perimeter for marker contour to be detected. Read more
source§fn set_max_marker_perimeter_rate(&mut self, val: f64)
fn set_max_marker_perimeter_rate(&mut self, val: f64)
determine maximum perimeter for marker contour to be detected. Read more
source§fn set_polygonal_approx_accuracy_rate(&mut self, val: f64)
fn set_polygonal_approx_accuracy_rate(&mut self, val: f64)
minimum accuracy during the polygonal approximation process to determine which contours are squares. (default 0.03)
source§fn set_min_corner_distance_rate(&mut self, val: f64)
fn set_min_corner_distance_rate(&mut self, val: f64)
minimum distance between corners for detected markers relative to its perimeter (default 0.05)
source§fn set_min_distance_to_border(&mut self, val: i32)
fn set_min_distance_to_border(&mut self, val: i32)
minimum distance of any corner to the image border for detected markers (in pixels) (default 3)
source§fn set_min_marker_distance_rate(&mut self, val: f64)
fn set_min_marker_distance_rate(&mut self, val: f64)
minimum average distance between the corners of the two markers to be grouped (default 0.125). Read more
source§fn set_min_group_distance(&mut self, val: f32)
fn set_min_group_distance(&mut self, val: f32)
minimum average distance between the corners of the two markers in group to add them to the list of candidates Read more
source§fn set_corner_refinement_method(&mut self, val: i32)
fn set_corner_refinement_method(&mut self, val: i32)
default value CORNER_REFINE_NONE
source§fn set_corner_refinement_win_size(&mut self, val: i32)
fn set_corner_refinement_win_size(&mut self, val: i32)
maximum window size for the corner refinement process (in pixels) (default 5). Read more
source§fn set_relative_corner_refinment_win_size(&mut self, val: f32)
fn set_relative_corner_refinment_win_size(&mut self, val: f32)
Dynamic window size for corner refinement relative to Aruco module size (default 0.3). Read more
source§fn set_corner_refinement_max_iterations(&mut self, val: i32)
fn set_corner_refinement_max_iterations(&mut self, val: i32)
maximum number of iterations for stop criteria of the corner refinement process (default 30).
source§fn set_corner_refinement_min_accuracy(&mut self, val: f64)
fn set_corner_refinement_min_accuracy(&mut self, val: f64)
minimum error for the stop cristeria of the corner refinement process (default: 0.1)
source§fn set_marker_border_bits(&mut self, val: i32)
fn set_marker_border_bits(&mut self, val: i32)
number of bits of the marker border, i.e. marker border width (default 1).
source§fn set_perspective_remove_pixel_per_cell(&mut self, val: i32)
fn set_perspective_remove_pixel_per_cell(&mut self, val: i32)
number of bits (per dimension) for each cell of the marker when removing the perspective (default 4).
source§fn set_perspective_remove_ignored_margin_per_cell(&mut self, val: f64)
fn set_perspective_remove_ignored_margin_per_cell(&mut self, val: f64)
width of the margin of pixels on each cell not considered for the determination of the cell bit. Read more
source§fn set_max_erroneous_bits_in_border_rate(&mut self, val: f64)
fn set_max_erroneous_bits_in_border_rate(&mut self, val: f64)
maximum number of accepted erroneous bits in the border (i.e. number of allowed white bits in the border). Read more
source§fn set_min_otsu_std_dev(&mut self, val: f64)
fn set_min_otsu_std_dev(&mut self, val: f64)
minimun standard deviation in pixels values during the decodification step to apply Otsu
thresholding (otherwise, all the bits are set to 0 or 1 depending on mean higher than 128 or not) (default 5.0)
source§fn set_error_correction_rate(&mut self, val: f64)
fn set_error_correction_rate(&mut self, val: f64)
error correction rate respect to the maximun error correction capability for each dictionary (default 0.6).
source§fn set_april_tag_quad_decimate(&mut self, val: f32)
fn set_april_tag_quad_decimate(&mut self, val: f32)
April :: User-configurable parameters. Read more
source§fn set_april_tag_quad_sigma(&mut self, val: f32)
fn set_april_tag_quad_sigma(&mut self, val: f32)
what Gaussian blur should be applied to the segmented image (used for quad detection?)
source§fn set_april_tag_min_cluster_pixels(&mut self, val: i32)
fn set_april_tag_min_cluster_pixels(&mut self, val: i32)
reject quads containing too few pixels (default 5).
source§fn set_april_tag_max_nmaxima(&mut self, val: i32)
fn set_april_tag_max_nmaxima(&mut self, val: i32)
how many corner candidates to consider when segmenting a group of pixels into a quad (default 10).
source§fn set_april_tag_critical_rad(&mut self, val: f32)
fn set_april_tag_critical_rad(&mut self, val: f32)
reject quads where pairs of edges have angles that are close to straight or close to 180 degrees. Read more
source§fn set_april_tag_max_line_fit_mse(&mut self, val: f32)
fn set_april_tag_max_line_fit_mse(&mut self, val: f32)
when fitting lines to the contours, what is the maximum mean squared error
source§fn set_april_tag_min_white_black_diff(&mut self, val: i32)
fn set_april_tag_min_white_black_diff(&mut self, val: i32)
add an extra check that the white model must be (overall) brighter than the black model. Read more
source§fn set_april_tag_deglitch(&mut self, val: i32)
fn set_april_tag_deglitch(&mut self, val: i32)
should the thresholded image be deglitched? Only useful for very noisy images (default 0).
source§fn set_detect_inverted_marker(&mut self, val: bool)
fn set_detect_inverted_marker(&mut self, val: bool)
to check if there is a white marker. Read more
source§fn set_use_aruco3_detection(&mut self, val: bool)
fn set_use_aruco3_detection(&mut self, val: bool)
enable the new and faster Aruco detection strategy. Read more
source§fn set_min_side_length_canonical_img(&mut self, val: i32)
fn set_min_side_length_canonical_img(&mut self, val: i32)
minimum side length of a marker in the canonical image. Latter is the binarized image in which contours are searched.
source§fn set_min_marker_length_ratio_original_img(&mut self, val: f32)
fn set_min_marker_length_ratio_original_img(&mut self, val: f32)
range [0,1], eq (2) from paper. The parameter tau_i has a direct influence on the processing speed.
source§fn read_detector_parameters(
&mut self,
fn_: &impl FileNodeTraitConst,
) -> Result<bool>
fn read_detector_parameters( &mut self, fn_: &impl FileNodeTraitConst, ) -> Result<bool>
Read a new set of DetectorParameters from FileNode (use FileStorage.root()).
source§fn write_detector_parameters(
&mut self,
fs: &mut impl FileStorageTrait,
name: &str,
) -> Result<bool>
fn write_detector_parameters( &mut self, fs: &mut impl FileStorageTrait, name: &str, ) -> Result<bool>
Write a set of DetectorParameters to FileStorage Read more
source§fn write_detector_parameters_def(
&mut self,
fs: &mut impl FileStorageTrait,
) -> Result<bool>
fn write_detector_parameters_def( &mut self, fs: &mut impl FileStorageTrait, ) -> Result<bool>
Write a set of DetectorParameters to FileStorage Read more
source§impl DetectorParametersTraitConst for DetectorParameters
impl DetectorParametersTraitConst for DetectorParameters
fn as_raw_DetectorParameters(&self) -> *const c_void
source§fn adaptive_thresh_win_size_min(&self) -> i32
fn adaptive_thresh_win_size_min(&self) -> i32
minimum window size for adaptive thresholding before finding contours (default 3).
source§fn adaptive_thresh_win_size_max(&self) -> i32
fn adaptive_thresh_win_size_max(&self) -> i32
maximum window size for adaptive thresholding before finding contours (default 23).
source§fn adaptive_thresh_win_size_step(&self) -> i32
fn adaptive_thresh_win_size_step(&self) -> i32
increments from adaptiveThreshWinSizeMin to adaptiveThreshWinSizeMax during the thresholding (default 10).
source§fn adaptive_thresh_constant(&self) -> f64
fn adaptive_thresh_constant(&self) -> f64
constant for adaptive thresholding before finding contours (default 7)
source§fn min_marker_perimeter_rate(&self) -> f64
fn min_marker_perimeter_rate(&self) -> f64
determine minimum perimeter for marker contour to be detected. Read more
source§fn max_marker_perimeter_rate(&self) -> f64
fn max_marker_perimeter_rate(&self) -> f64
determine maximum perimeter for marker contour to be detected. Read more
source§fn polygonal_approx_accuracy_rate(&self) -> f64
fn polygonal_approx_accuracy_rate(&self) -> f64
minimum accuracy during the polygonal approximation process to determine which contours are squares. (default 0.03)
source§fn min_corner_distance_rate(&self) -> f64
fn min_corner_distance_rate(&self) -> f64
minimum distance between corners for detected markers relative to its perimeter (default 0.05)
source§fn min_distance_to_border(&self) -> i32
fn min_distance_to_border(&self) -> i32
minimum distance of any corner to the image border for detected markers (in pixels) (default 3)
source§fn min_marker_distance_rate(&self) -> f64
fn min_marker_distance_rate(&self) -> f64
minimum average distance between the corners of the two markers to be grouped (default 0.125). Read more
source§fn min_group_distance(&self) -> f32
fn min_group_distance(&self) -> f32
minimum average distance between the corners of the two markers in group to add them to the list of candidates Read more
source§fn corner_refinement_method(&self) -> i32
fn corner_refinement_method(&self) -> i32
default value CORNER_REFINE_NONE
source§fn corner_refinement_win_size(&self) -> i32
fn corner_refinement_win_size(&self) -> i32
maximum window size for the corner refinement process (in pixels) (default 5). Read more
source§fn relative_corner_refinment_win_size(&self) -> f32
fn relative_corner_refinment_win_size(&self) -> f32
Dynamic window size for corner refinement relative to Aruco module size (default 0.3). Read more
source§fn corner_refinement_max_iterations(&self) -> i32
fn corner_refinement_max_iterations(&self) -> i32
maximum number of iterations for stop criteria of the corner refinement process (default 30).
source§fn corner_refinement_min_accuracy(&self) -> f64
fn corner_refinement_min_accuracy(&self) -> f64
minimum error for the stop cristeria of the corner refinement process (default: 0.1)
source§fn marker_border_bits(&self) -> i32
fn marker_border_bits(&self) -> i32
number of bits of the marker border, i.e. marker border width (default 1).
source§fn perspective_remove_pixel_per_cell(&self) -> i32
fn perspective_remove_pixel_per_cell(&self) -> i32
number of bits (per dimension) for each cell of the marker when removing the perspective (default 4).
source§fn perspective_remove_ignored_margin_per_cell(&self) -> f64
fn perspective_remove_ignored_margin_per_cell(&self) -> f64
width of the margin of pixels on each cell not considered for the determination of the cell bit. Read more
source§fn max_erroneous_bits_in_border_rate(&self) -> f64
fn max_erroneous_bits_in_border_rate(&self) -> f64
maximum number of accepted erroneous bits in the border (i.e. number of allowed white bits in the border). Read more
source§fn min_otsu_std_dev(&self) -> f64
fn min_otsu_std_dev(&self) -> f64
minimun standard deviation in pixels values during the decodification step to apply Otsu
thresholding (otherwise, all the bits are set to 0 or 1 depending on mean higher than 128 or not) (default 5.0)
source§fn error_correction_rate(&self) -> f64
fn error_correction_rate(&self) -> f64
error correction rate respect to the maximun error correction capability for each dictionary (default 0.6).
source§fn april_tag_quad_decimate(&self) -> f32
fn april_tag_quad_decimate(&self) -> f32
April :: User-configurable parameters. Read more
source§fn april_tag_quad_sigma(&self) -> f32
fn april_tag_quad_sigma(&self) -> f32
what Gaussian blur should be applied to the segmented image (used for quad detection?)
source§fn april_tag_min_cluster_pixels(&self) -> i32
fn april_tag_min_cluster_pixels(&self) -> i32
reject quads containing too few pixels (default 5).
source§fn april_tag_max_nmaxima(&self) -> i32
fn april_tag_max_nmaxima(&self) -> i32
how many corner candidates to consider when segmenting a group of pixels into a quad (default 10).
source§fn april_tag_critical_rad(&self) -> f32
fn april_tag_critical_rad(&self) -> f32
reject quads where pairs of edges have angles that are close to straight or close to 180 degrees. Read more
source§fn april_tag_max_line_fit_mse(&self) -> f32
fn april_tag_max_line_fit_mse(&self) -> f32
when fitting lines to the contours, what is the maximum mean squared error
source§fn april_tag_min_white_black_diff(&self) -> i32
fn april_tag_min_white_black_diff(&self) -> i32
add an extra check that the white model must be (overall) brighter than the black model. Read more
source§fn april_tag_deglitch(&self) -> i32
fn april_tag_deglitch(&self) -> i32
should the thresholded image be deglitched? Only useful for very noisy images (default 0).
source§fn detect_inverted_marker(&self) -> bool
fn detect_inverted_marker(&self) -> bool
to check if there is a white marker. Read more
source§fn use_aruco3_detection(&self) -> bool
fn use_aruco3_detection(&self) -> bool
enable the new and faster Aruco detection strategy. Read more
source§fn min_side_length_canonical_img(&self) -> i32
fn min_side_length_canonical_img(&self) -> i32
minimum side length of a marker in the canonical image. Latter is the binarized image in which contours are searched.
source§fn min_marker_length_ratio_original_img(&self) -> f32
fn min_marker_length_ratio_original_img(&self) -> f32
range [0,1], eq (2) from paper. The parameter tau_i has a direct influence on the processing speed.
source§impl Drop for DetectorParameters
impl Drop for DetectorParameters
impl Send for DetectorParameters
Auto Trait Implementations§
impl Freeze for DetectorParameters
impl RefUnwindSafe for DetectorParameters
impl !Sync for DetectorParameters
impl Unpin for DetectorParameters
impl UnwindSafe for 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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