#[non_exhaustive]pub struct DetectionParams {
pub nms_radius: u32,
pub min_cluster_size: u32,
}Expand description
Shared non-maximum-suppression and peak-clustering thresholds.
These two knobs have identical meaning for the ChESS and Radon
detectors, so they live once at the DetectorConfig level rather
than being duplicated inside each strategy config. Both are expressed
in the detector’s working-resolution pixels (for Radon, that is after
image_upsample). Tune them through
DetectorConfig::with_detection.
The defaults match the ChESS presets; the Radon presets raise
nms_radius to 4 to suit the wider Radon response peak.
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.nms_radius: u32Non-maximum-suppression half-radius in working-resolution pixels.
Only the highest-response pixel within this radius is kept.
Reduce when corners are packed closer than 2·nms_radius pixels;
increase to suppress near-duplicate detections on blurry images.
min_cluster_size: u32Minimum number of positive-response neighbours within the NMS window that a candidate must have to be accepted. Increase to require a stronger local cluster of response, suppressing isolated noise peaks at the cost of potentially missing weak corners near image boundaries.
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 moreimpl Copy for DetectionParams
Source§impl Debug for DetectionParams
impl Debug for DetectionParams
Source§impl Default for DetectionParams
impl Default for DetectionParams
Source§impl<'de> Deserialize<'de> for DetectionParamswhere
DetectionParams: Default,
impl<'de> Deserialize<'de> for DetectionParamswhere
DetectionParams: 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>,
impl Eq for DetectionParams
Source§impl PartialEq for DetectionParams
impl PartialEq for DetectionParams
Source§fn eq(&self, other: &DetectionParams) -> bool
fn eq(&self, other: &DetectionParams) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DetectionParams
impl Serialize for DetectionParams
impl StructuralPartialEq 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§
impl<T> Any for Twhere
T: Any,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
impl<T> CloneAny for T
impl<T> CloneAnySend for T
impl<T> CloneAnySendSync for T
impl<T> CloneAnySync for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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().