#[non_exhaustive]pub struct ChessConfig {
pub params: ChessParams,
pub multiscale: CoarseToFineParams,
}Expand description
Unified detector configuration combining response/detector params and multiscale/pyramid tuning.
ChessConfig::default keeps the detector in the single-scale regime.
Use ChessConfig::multiscale for the recommended coarse-to-fine starting
point on high-resolution, small-board, or textured projected patterns.
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.params: ChessParamsLow-level ChESS response/detector parameters (ring radius, thresholds, NMS radius, minimum cluster size, and subpixel refinement backend).
multiscale: CoarseToFineParamsCoarse-to-fine multiscale configuration (pyramid shape, ROI radius, merge radius).
Implementations§
Source§impl ChessConfig
impl ChessConfig
Sourcepub fn multiscale() -> Self
pub fn multiscale() -> Self
Recommended coarse-to-fine starting point.
This uses the canonical r=5 ChESS ring together with:
- 3 pyramid levels,
min_size = 128,- coarse ROI radius 3,
- merge radius 3.0.
Sourcepub fn single_scale() -> Self
pub fn single_scale() -> Self
Convenience helper for single-scale detection.
This is equivalent to ChessConfig::default but kept as an explicit
readability helper at call sites.
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§fn default() -> ChessConfig
fn default() -> 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,
§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<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
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().