#[non_exhaustive]pub struct DetectionParams {
pub max_residual_px: f32,
pub topological: TopologicalParams,
pub validate: ValidateParams,
pub recovery: RecoverySchedule,
}Expand description
Detection parameters.
The single max_residual_px knob from the Phase-A shell sits alongside the
topological assembler’s sub-config, the shared post-detection validation
tuning, and the post-recovery schedule.
The sub-config types (TopologicalParams, ValidateParams,
RecoveryParams) include advanced-engine configs that do not implement
PartialEq, so neither does DetectionParams.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_residual_px: f32Residual threshold in image pixels for algorithms that fit a lattice.
topological: TopologicalParamsTopological grid-finder tuning.
validate: ValidateParamsPost-detection validation tuning.
recovery: RecoverySchedulePost-convergence recovery schedule. Defaults to
RecoverySchedule::Auto: the facade runs the geometry-only recovery
schedule for the synthesized-axis paths (Evidence::Positions /
Evidence::Oriented1) and skips it for native Evidence::Oriented2.
Callers that own a downstream recovery stage set this to
RecoverySchedule::Off.
Implementations§
Source§impl DetectionParams
impl DetectionParams
Sourcepub fn new(max_residual_px: f32) -> Self
pub fn new(max_residual_px: f32) -> Self
Construct detection parameters from just the residual threshold; the sub-configs take their defaults.
Sourcepub fn with_topological(self, topological: TopologicalParams) -> Self
pub fn with_topological(self, topological: TopologicalParams) -> Self
Builder-style override: replace the topological sub-config.
Sourcepub fn with_validate(self, validate: ValidateParams) -> Self
pub fn with_validate(self, validate: ValidateParams) -> Self
Builder-style override: replace the validate sub-config.
Sourcepub fn with_max_residual_px(self, max_residual_px: f32) -> Self
pub fn with_max_residual_px(self, max_residual_px: f32) -> Self
Builder-style override: replace the max residual threshold.
Sourcepub fn with_recovery(self, recovery: RecoverySchedule) -> Self
pub fn with_recovery(self, recovery: RecoverySchedule) -> Self
Builder-style override: set the post-convergence recovery schedule.
Trait Implementations§
Source§impl Clone for DetectionParams
impl Clone for DetectionParams
Source§fn clone(&self) -> DetectionParams
fn clone(&self) -> DetectionParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DetectionParams
impl Debug for DetectionParams
Auto Trait Implementations§
impl Freeze for DetectionParams
impl RefUnwindSafe for DetectionParams
impl Send for DetectionParams
impl Sync for DetectionParams
impl Unpin for DetectionParams
impl UnsafeUnpin for DetectionParams
impl UnwindSafe for DetectionParams
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
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.