pub struct SelfUndistortConfig {Show 13 fields
pub enable: bool,
pub lambda_range: [f64; 2],
pub max_evals: usize,
pub min_markers: usize,
pub improvement_threshold: f64,
pub min_abs_improvement: f64,
pub trim_fraction: f64,
pub min_lambda_abs: f64,
pub reject_range_edge: bool,
pub range_edge_margin_frac: f64,
pub validation_min_markers: usize,
pub validation_abs_improvement_px: f64,
pub validation_rel_improvement: f64,
}Expand description
Configuration for self-undistort estimation.
Fields§
§enable: boolEnable self-undistort refinement.
lambda_range: [f64; 2]Search range for lambda: [lambda_min, lambda_max].
max_evals: usizeMaximum function evaluations for the 1D optimizer.
min_markers: usizeMinimum number of markers with both inner+outer edge points required.
improvement_threshold: f64Relative improvement threshold: accept only if
(baseline - optimum) / baseline > improvement_threshold.
min_abs_improvement: f64Minimum absolute objective improvement required to apply the model.
This prevents applying when the objective is near numerical noise floor.
trim_fraction: f64Trim fraction for robust aggregation of per-marker objective values.
0.1 means drop 10% low and 10% high scores before averaging.
min_lambda_abs: f64Minimum |lambda| required for applying the model.
Very small lambda values are effectively identity and are treated as “no correction” even if relative improvement is non-zero.
reject_range_edge: boolReject solutions that land too close to lambda-range boundaries.
range_edge_margin_frac: f64Relative margin of the lambda range treated as unstable boundary area.
validation_min_markers: usizeMinimum decoded-ID correspondences needed for homography validation.
validation_abs_improvement_px: f64Minimum absolute homography self-error improvement (pixels) required.
validation_rel_improvement: f64Minimum relative homography self-error improvement required.
Trait Implementations§
Source§impl Clone for SelfUndistortConfig
impl Clone for SelfUndistortConfig
Source§fn clone(&self) -> SelfUndistortConfig
fn clone(&self) -> SelfUndistortConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SelfUndistortConfig
impl Debug for SelfUndistortConfig
Source§impl Default for SelfUndistortConfig
impl Default for SelfUndistortConfig
Source§impl<'de> Deserialize<'de> for SelfUndistortConfigwhere
SelfUndistortConfig: Default,
impl<'de> Deserialize<'de> for SelfUndistortConfigwhere
SelfUndistortConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for SelfUndistortConfig
impl RefUnwindSafe for SelfUndistortConfig
impl Send for SelfUndistortConfig
impl Sync for SelfUndistortConfig
impl Unpin for SelfUndistortConfig
impl UnsafeUnpin for SelfUndistortConfig
impl UnwindSafe for SelfUndistortConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().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.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.