#[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
(integer >= 0). 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-duplicates on blurry images.
min_cluster_size: u32Minimum number of positive-response neighbours within the NMS
window that a candidate must have to be accepted (integer >= 0,
unitless count). Increase to suppress isolated noise peaks, at the
cost of possibly missing weak corners near image boundaries.
Trait Implementations§
Source§impl Clone for DetectionParams
impl Clone for DetectionParams
impl 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 JsonSchema for DetectionParams
impl JsonSchema for DetectionParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for DetectionParams
impl PartialEq for DetectionParams
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§
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
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>, which can then be
downcast into Box<dyn 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>, which 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> DowncastSend for T
impl<T> DowncastSend for T
§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> ⓘ
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