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§impl Clone for DetectorParameters
impl Clone 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 mean distance beetween two marker corners to be considered imilar, so that the smaller one is removed. Read more
source§fn set_corner_refinement_method(&mut self, val: CornerRefineMethod)
fn set_corner_refinement_method(&mut self, val: CornerRefineMethod)
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)
window size for the corner refinement process (in pixels) (default 5).
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_: &FileNode) -> Result<bool>
fn read_detector_parameters(&mut self, fn_: &FileNode) -> Result<bool>
Read a new set of DetectorParameters from FileNode (use FileStorage.root()).
source§fn write_detector_parameters(
&mut self,
fs: &mut FileStorage,
name: &str
) -> Result<bool>
fn write_detector_parameters( &mut self, fs: &mut FileStorage, name: &str ) -> 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 mean distance beetween two marker corners to be considered imilar, so that the smaller one is removed. Read more
source§fn corner_refinement_method(&self) -> CornerRefineMethod
fn corner_refinement_method(&self) -> CornerRefineMethod
default value CORNER_REFINE_NONE
source§fn corner_refinement_win_size(&self) -> i32
fn corner_refinement_win_size(&self) -> i32
window size for the corner refinement process (in pixels) (default 5).
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 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