#[non_exhaustive]pub struct RefinerConfig {
pub kind: RefinementMethod,
pub center_of_mass: CenterOfMassConfig,
pub forstner: ForstnerConfig,
pub saddle_point: SaddlePointConfig,
pub radon_peak: RadonPeakConfig,
}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.kind: RefinementMethod§center_of_mass: CenterOfMassConfig§forstner: ForstnerConfig§saddle_point: SaddlePointConfig§radon_peak: RadonPeakConfigImplementations§
Source§impl RefinerConfig
impl RefinerConfig
Sourcepub fn build(
kind: RefinementMethod,
center_of_mass: CenterOfMassConfig,
forstner: ForstnerConfig,
saddle_point: SaddlePointConfig,
radon_peak: RadonPeakConfig,
) -> Self
pub fn build( kind: RefinementMethod, center_of_mass: CenterOfMassConfig, forstner: ForstnerConfig, saddle_point: SaddlePointConfig, radon_peak: RadonPeakConfig, ) -> Self
Construct a RefinerConfig with all fields specified.
Sourcepub fn center_of_mass() -> Self
pub fn center_of_mass() -> Self
Preset that selects the center-of-mass (intensity centroid) refiner. Fast and stable; best when corners have clear ring support and moderate blur. This is the library default.
Sourcepub fn forstner() -> Self
pub fn forstner() -> Self
Preset that selects the Förstner corner refiner. Uses a structure-tensor moment approach; more accurate than center-of-mass on anisotropic corners.
Sourcepub fn saddle_point() -> Self
pub fn saddle_point() -> Self
Preset that selects the saddle-point refiner. Fits a local quadratic and locates the saddle; very accurate on clean, symmetric chessboard corners.
Sourcepub fn radon_peak() -> Self
pub fn radon_peak() -> Self
Preset that selects the Radon-peak refiner. Reconstructs the corner by projecting intensity along candidate axes; robust to heavy blur and low contrast.
Sourcepub fn to_refiner_kind(&self) -> RefinerKind
pub fn to_refiner_kind(&self) -> RefinerKind
Convert this config into the lower-level RefinerKind used by
chess-corners-core. Each variant carries its own tuning struct
taken from the corresponding field of this config.
Trait Implementations§
Source§impl Clone for RefinerConfig
impl Clone for RefinerConfig
Source§fn clone(&self) -> RefinerConfig
fn clone(&self) -> RefinerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RefinerConfig
impl Debug for RefinerConfig
Source§impl Default for RefinerConfig
impl Default for RefinerConfig
Source§fn default() -> RefinerConfig
fn default() -> RefinerConfig
Source§impl<'de> Deserialize<'de> for RefinerConfigwhere
RefinerConfig: Default,
impl<'de> Deserialize<'de> for RefinerConfigwhere
RefinerConfig: 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 RefinerConfig
impl PartialEq for RefinerConfig
Source§impl Serialize for RefinerConfig
impl Serialize for RefinerConfig
impl StructuralPartialEq for RefinerConfig
Auto Trait Implementations§
impl Freeze for RefinerConfig
impl RefUnwindSafe for RefinerConfig
impl Send for RefinerConfig
impl Sync for RefinerConfig
impl Unpin for RefinerConfig
impl UnsafeUnpin for RefinerConfig
impl UnwindSafe for RefinerConfig
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().