#[non_exhaustive]pub struct ChessParams {
pub use_radius10: bool,
pub descriptor_use_radius10: Option<bool>,
pub threshold_rel: f32,
pub threshold_abs: Option<f32>,
pub nms_radius: u32,
pub min_cluster_size: u32,
pub refiner: RefinerKind,
}Expand description
Tunable parameters for the ChESS response computation and corner detection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.use_radius10: boolUse the larger r=10 ring instead of the canonical r=5.
descriptor_use_radius10: Option<bool>Optional override for descriptor sampling ring (r=5 vs r=10). Falls back
to use_radius10 when None.
threshold_rel: f32Relative threshold as a fraction of max response (e.g. 0.2 = 20%).
threshold_abs: Option<f32>Absolute threshold override; if Some, this is used instead of threshold_rel.
nms_radius: u32Non-maximum suppression radius (in pixels).
min_cluster_size: u32Minimum count of positive-response neighbors in NMS window to accept a corner (rejects isolated noise).
refiner: RefinerKindSubpixel refinement backend and its configuration. Defaults to the legacy center-of-mass refiner on the response map.
Implementations§
Source§impl ChessParams
impl ChessParams
pub fn ring_radius(&self) -> u32
pub fn descriptor_ring_radius(&self) -> u32
pub fn ring(&self) -> RingOffsets
pub fn descriptor_ring(&self) -> RingOffsets
Trait Implementations§
Source§impl Clone for ChessParams
impl Clone for ChessParams
Source§fn clone(&self) -> ChessParams
fn clone(&self) -> ChessParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChessParams
impl Debug for ChessParams
Source§impl Default for ChessParams
impl Default for ChessParams
Source§fn default() -> ChessParams
fn default() -> ChessParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChessParams
impl RefUnwindSafe for ChessParams
impl Send for ChessParams
impl Sync for ChessParams
impl Unpin for ChessParams
impl UnsafeUnpin for ChessParams
impl UnwindSafe for ChessParams
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
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&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>
Converts
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>
Converts
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>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().