#[non_exhaustive]pub enum OnRefinerReject {
Drop,
KeepCenterOfMass,
}Expand description
What a ChESS detection does with a corner the image refiner rejects (see
ChessConfig::on_refiner_reject).
The image refiner rejects a peak whose patch it cannot fit — not a clear saddle, a fit that leaves its window, a seed too close to the border. On a clean board those are rare; on a cluttered or blurred one they include real corners the center of mass localizes. The Radon detector always keeps such a corner at its peak-fit position.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Drop
Drop the corner: every reported corner was localized by the image refiner.
KeepCenterOfMass
Keep the corner at the ChESS center-of-mass position (with that
localizer’s position covariance). The corners the image refiner
accepts are unchanged, so a single-scale detection returns the Drop
output plus these corners. Under a pyramid the coarse seeds follow
the same rule, so a seed kept at the coarse level can also yield a
corner the image refiner localizes at the base level.
Trait Implementations§
Source§impl Clone for OnRefinerReject
impl Clone for OnRefinerReject
impl Copy for OnRefinerReject
Source§impl Debug for OnRefinerReject
impl Debug for OnRefinerReject
Source§impl Default for OnRefinerReject
impl Default for OnRefinerReject
Source§impl<'de> Deserialize<'de> for OnRefinerReject
impl<'de> Deserialize<'de> for OnRefinerReject
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>,
impl Eq for OnRefinerReject
Source§impl JsonSchema for OnRefinerReject
impl JsonSchema for OnRefinerReject
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for OnRefinerReject
impl PartialEq for OnRefinerReject
Source§impl Serialize for OnRefinerReject
impl Serialize for OnRefinerReject
impl StructuralPartialEq for OnRefinerReject
Auto Trait Implementations§
impl Freeze for OnRefinerReject
impl RefUnwindSafe for OnRefinerReject
impl Send for OnRefinerReject
impl Sync for OnRefinerReject
impl Unpin for OnRefinerReject
impl UnsafeUnpin for OnRefinerReject
impl UnwindSafe for OnRefinerReject
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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