pub struct MatchConfig {
pub metric: Metric,
pub rotation: RotationMode,
pub parallel: bool,
pub max_image_levels: usize,
pub beam_width: usize,
pub per_angle_topk: usize,
pub nms_radius: usize,
pub roi_radius: usize,
pub angle_half_range_steps: usize,
pub min_var_i: f32,
pub min_score: f32,
}Expand description
Configuration for the coarse-to-fine matcher pipeline.
Fields§
§metric: MetricMatching metric to use.
rotation: RotationModeWhether rotation search is enabled.
parallel: boolEnables parallel search when the rayon feature is available.
When the feature is disabled, this flag is ignored and execution stays sequential.
max_image_levels: usizeMaximum pyramid levels to build for the image.
beam_width: usizeBeam width kept per level after merge and NMS.
per_angle_topk: usizeTop-M peaks per angle at the coarsest level.
Ignored when rotation is disabled.
nms_radius: usizeSpatial NMS radius in pixels for the current level.
roi_radius: usizeRefinement ROI radius in pixels for the current level.
angle_half_range_steps: usizeAngle neighborhood half-range in multiples of the grid step.
Ignored when rotation is disabled.
min_var_i: f32Minimum variance for image patches.
Ignored for SSD.
min_score: f32Minimum score threshold (discard below this value).
Implementations§
Source§impl MatchConfig
impl MatchConfig
Sourcepub fn validate(&self) -> CorrMatchResult<()>
pub fn validate(&self) -> CorrMatchResult<()>
Validates the configuration, returning an error if any parameter is invalid.
Trait Implementations§
Source§impl Clone for MatchConfig
impl Clone for MatchConfig
Source§fn clone(&self) -> MatchConfig
fn clone(&self) -> MatchConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more