#[non_exhaustive]pub enum DetectionStrategy {
Chess(ChessConfig),
Radon(RadonConfig),
}Expand description
Top-level detector dispatch. Selects between the ChESS kernel pipeline and the Radon whole-image detector. The chosen variant carries all detector-specific tuning; settings that don’t apply to the active detector are simply unreachable, so the type system enforces correctness instead of silently ignoring fields.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Chess(ChessConfig)
ChESS kernel detection with optional coarse-to-fine multiscale.
Radon(RadonConfig)
Whole-image Radon (Duda-Frese) detection.
Trait Implementations§
Source§impl Clone for DetectionStrategy
impl Clone for DetectionStrategy
Source§fn clone(&self) -> DetectionStrategy
fn clone(&self) -> DetectionStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DetectionStrategy
Source§impl Debug for DetectionStrategy
impl Debug for DetectionStrategy
Source§impl Default for DetectionStrategy
impl Default for DetectionStrategy
Source§impl<'de> Deserialize<'de> for DetectionStrategy
impl<'de> Deserialize<'de> for DetectionStrategy
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DetectionStrategy
impl PartialEq for DetectionStrategy
Source§impl Serialize for DetectionStrategy
impl Serialize for DetectionStrategy
impl StructuralPartialEq for DetectionStrategy
Auto Trait Implementations§
impl Freeze for DetectionStrategy
impl RefUnwindSafe for DetectionStrategy
impl Send for DetectionStrategy
impl Sync for DetectionStrategy
impl Unpin for DetectionStrategy
impl UnsafeUnpin for DetectionStrategy
impl UnwindSafe for DetectionStrategy
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
Mutably borrows from an owned value. Read more