pub struct ScoreThreshold { /* private fields */ }Expand description
Corner score threshold of the f32 detector.
Scores are minimum eigenvalues of the mean 3x3 structure tensor of Scharr gradients normalized by 32, in (input unit / pixel)^2: (°C / px)^2 for a thermal image in °C. They scale with the square of the image contrast and do not depend on a constant offset.
A local maximum is kept when its score is positive and at least
max(absolute, relative * strongest), where strongest is the largest
local-maximum score in the whole image. The reference is global for grid
detection as well, not per cell. The relative part is disabled (zero)
unless set with with_relative.
Implementations§
Source§impl ScoreThreshold
impl ScoreThreshold
Sourcepub fn absolute(min_score: f32) -> Self
pub fn absolute(min_score: f32) -> Self
Keeps local maxima scoring at least min_score, in
(input unit / pixel)^2.
§Panics
Panics if min_score is negative, NaN or infinite.
Sourcepub fn with_relative(self, quality_level: f32) -> Self
pub fn with_relative(self, quality_level: f32) -> Self
Additionally requires at least quality_level times the strongest
local maximum’s score, as the 8-bit detector’s quality_level does.
§Panics
Panics unless 0 <= quality_level <= 1.
Sourcepub fn absolute_part(&self) -> f32
pub fn absolute_part(&self) -> f32
The absolute part, in (input unit / pixel)^2.
Sourcepub fn relative_part(&self) -> f32
pub fn relative_part(&self) -> f32
The relative part; zero when disabled.