#[non_exhaustive]pub struct ChessConfig {Show 13 fields
pub detector_mode: DetectorMode,
pub descriptor_mode: DescriptorMode,
pub threshold_mode: ThresholdMode,
pub threshold_value: f32,
pub nms_radius: u32,
pub min_cluster_size: u32,
pub refiner: RefinerConfig,
pub pyramid_levels: u8,
pub pyramid_min_size: usize,
pub refinement_radius: u32,
pub merge_radius: f32,
pub upscale: UpscaleConfig,
pub radon_detector: RadonDetectorParams,
}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.detector_mode: DetectorMode§descriptor_mode: DescriptorMode§threshold_mode: ThresholdMode§threshold_value: f32§nms_radius: u32§min_cluster_size: u32§refiner: RefinerConfig§pyramid_levels: u8§pyramid_min_size: usize§refinement_radius: u32§merge_radius: f32§upscale: UpscaleConfigOptional pre-pipeline integer upscaling. Disabled by default.
radon_detector: RadonDetectorParamsParameters for the whole-image Radon detector. Only consulted
when detector_mode is
DetectorMode::Radon; otherwise left at its default.
Implementations§
Source§impl ChessConfig
impl ChessConfig
Sourcepub fn single_scale() -> Self
pub fn single_scale() -> Self
Single-scale preset (one pyramid level). Recommended for images where the cell size comfortably exceeds the ChESS ring support (~12 px diameter) and no multiscale coverage is needed.
Sourcepub fn multiscale() -> Self
pub fn multiscale() -> Self
Three-level coarse-to-fine pyramid preset. Recommended for images
≥ 1 MP or whenever cell sizes vary significantly across the frame.
The pyramid stops at pyramid_min_size = 128 pixels on the short edge.
Sourcepub fn radon() -> Self
pub fn radon() -> Self
Preset for the whole-image Radon detector. Single-scale by
construction (pyramidal Radon is deferred — the SAT-based
detector is already fast enough at base resolution for typical
calibration frames). Uses the Gaussian peak-fit inherited from
RadonDetectorParams; corners are subpixel-refined by the
detector’s own peak-fit, so refiner is effectively a
pass-through.
Sourcepub fn to_chess_params(&self) -> ChessParams
pub fn to_chess_params(&self) -> ChessParams
Translate this config into the low-level ChessParams consumed by
chess-corners-core. This is called internally by the detection
pipeline; callers that need direct access to core primitives can use
the returned value with chess_corners_core::detect functions.
Sourcepub fn to_coarse_to_fine_params(&self) -> CoarseToFineParams
pub fn to_coarse_to_fine_params(&self) -> CoarseToFineParams
Translate this config into the CoarseToFineParams that drive the
multiscale pipeline. Pyramid levels, minimum pyramid size, refinement
radius, and merge radius are all copied from this struct.
Trait Implementations§
Source§impl Clone for ChessConfig
impl Clone for ChessConfig
Source§fn clone(&self) -> ChessConfig
fn clone(&self) -> ChessConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChessConfig
impl Debug for ChessConfig
Source§impl Default for ChessConfig
impl Default for ChessConfig
Source§impl<'de> Deserialize<'de> for ChessConfigwhere
ChessConfig: Default,
impl<'de> Deserialize<'de> for ChessConfigwhere
ChessConfig: 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>,
Source§impl PartialEq for ChessConfig
impl PartialEq for ChessConfig
Source§impl Serialize for ChessConfig
impl Serialize for ChessConfig
impl StructuralPartialEq for ChessConfig
Auto Trait Implementations§
impl Freeze for ChessConfig
impl RefUnwindSafe for ChessConfig
impl Send for ChessConfig
impl Sync for ChessConfig
impl Unpin for ChessConfig
impl UnsafeUnpin for ChessConfig
impl UnwindSafe for ChessConfig
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> 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().