#[repr(C)]pub struct EdgeDrawing_Params {Show 13 fields
pub p_fmode: bool,
pub edge_detection_operator: i32,
pub gradient_threshold_value: i32,
pub anchor_threshold_value: i32,
pub scan_interval: i32,
pub min_path_length: i32,
pub sigma: f32,
pub sum_flag: bool,
pub nfa_validation: bool,
pub min_line_length: i32,
pub max_distance_between_two_lines: f64,
pub line_fit_error_threshold: f64,
pub max_error_threshold: f64,
}
Fields§
§p_fmode: bool
Parameter Free mode will be activated when this value is set as true. Default value is false.
edge_detection_operator: i32
indicates the operator used for gradient calculation.
one of the flags cv::ximgproc::EdgeDrawing::GradientOperator. Default value is PREWITT
gradient_threshold_value: i32
threshold value of gradiential difference between pixels. Used to create gradient image. Default value is 20
anchor_threshold_value: i32
threshold value used to select anchor points. Default value is 0
scan_interval: i32
Default value is 1
min_path_length: i32
minimun connected pixels length processed to create an edge segment.
in gradient image, minimum connected pixels length processed to create an edge segment. pixels having upper value than GradientThresholdValue will be processed. Default value is 10
sigma: f32
sigma value for internal GaussianBlur() function. Default value is 1.0
sum_flag: bool
§nfa_validation: bool
Default value is true. indicates if NFA (Number of False Alarms) algorithm will be used for line and ellipse validation.
min_line_length: i32
minimun line length to detect.
max_distance_between_two_lines: f64
Default value is 6.0
line_fit_error_threshold: f64
Default value is 1.0
max_error_threshold: f64
Default value is 1.3
Implementations§
Source§impl EdgeDrawing_Params
impl EdgeDrawing_Params
pub fn write(self, fs: &mut impl FileStorageTrait) -> Result<()>
pub fn default() -> Result<EdgeDrawing_Params>
pub fn read(self, fn_: &impl FileNodeTraitConst) -> Result<()>
Trait Implementations§
Source§impl Clone for EdgeDrawing_Params
impl Clone for EdgeDrawing_Params
Source§fn clone(&self) -> EdgeDrawing_Params
fn clone(&self) -> EdgeDrawing_Params
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more