pub struct StereoFeatureConfig {
pub min_disparity_px: f64,
pub max_row_residual_px: f64,
pub min_depth_m: f64,
pub max_depth_m: f64,
pub depth_gate: StereoDepthGate,
pub ratio: Option<f64>,
}Expand description
Configuration for triangulate_stereo_features. Defaults are tuned for
rectified KITTI imagery.
Fields§
§min_disparity_px: f64Minimum acceptable disparity (u_l − u_r) in pixels. Sub-threshold
matches indicate either a far-field point (numerically unstable) or
a wrong correspondence (e.g., a sky pixel). Set on the same scale
as the descriptor matcher’s expected sub-pixel accuracy.
max_row_residual_px: f64Maximum allowed |v_l − v_r| row residual in pixels. A non-zero
row residual on rectified imagery means the match is wrong (or the
rectification is imperfect); reject so triangulation does not blend
in a Y-direction error.
min_depth_m: f64Fixed-policy minimum Z (depth) accepted in the left camera’s frame,
and the adaptive-policy fallback before enough candidates establish a
scene scale. Points nearer than this disappear behind / below the
camera within one frame on a moving vehicle; on room-scale datasets the
adaptive gate can lower the effective value without changing this A/B
baseline.
max_depth_m: f64Maximum Z (depth) accepted in the left camera’s frame. KITTI sky
pixels triangulate to Z ≫ 100 m because their disparity is at the
matcher’s noise floor — those points are useless for downstream
pose estimation and inflate landmark counts.
depth_gate: StereoDepthGateLower-depth gate policy. Set to StereoDepthGate::Fixed to reproduce
the historical min_depth_m behavior exactly.
ratio: Option<f64>Lowe’s ratio threshold for the row-restricted L↔R descriptor search.
Some(0.85) keeps matches whose best-distance / second-best-distance
in the same row band is strictly below the threshold. None
disables the ratio check (every left keypoint with a band candidate
is matched).
Trait Implementations§
Source§impl Clone for StereoFeatureConfig
impl Clone for StereoFeatureConfig
Source§fn clone(&self) -> StereoFeatureConfig
fn clone(&self) -> StereoFeatureConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StereoFeatureConfig
Source§impl Debug for StereoFeatureConfig
impl Debug for StereoFeatureConfig
Source§impl Default for StereoFeatureConfig
impl Default for StereoFeatureConfig
Source§fn default() -> StereoFeatureConfig
fn default() -> StereoFeatureConfig
Source§impl PartialEq for StereoFeatureConfig
impl PartialEq for StereoFeatureConfig
impl StructuralPartialEq for StereoFeatureConfig
Auto Trait Implementations§
impl Forget for StereoFeatureConfig
impl Freeze for StereoFeatureConfig
impl Move for StereoFeatureConfig
impl RefUnwindSafe for StereoFeatureConfig
impl Send for StereoFeatureConfig
impl Sync for StereoFeatureConfig
impl Unpin for StereoFeatureConfig
impl UnsafeUnpin for StereoFeatureConfig
impl UnwindSafe for StereoFeatureConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.