#[non_exhaustive]pub enum ImageRefiner {
SaddlePoint(SaddlePointConfig),
}Expand description
The optional image-refinement stage
(DetectorConfig::refiner).
Each detector first places its corners with its own subpixel localizer on
its response map: ChESS with the center of mass
(ChessConfig::center_of_mass),
Radon with the peak fit (RadonConfig::peak_fit).
An image refiner reads only the input image around each corner, so every
variant works with both detectors. Where it starts and what happens when
it cannot refine a corner follow the detector:
- ChESS: the refiner replaces the center of mass. It starts from the integer response peak, and a corner it rejects is dropped.
- Radon: the refiner runs on top of the peak fit. It starts from the peak-fit position, and a corner it does not refine to convergence keeps its peak-fit position. No corner is dropped.
Under Uncertainty::Propagated a
corner’s position covariance comes from whichever localizer produced its
final position.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SaddlePoint(SaddlePointConfig)
Quadratic surface fit to the image patch at the saddle point, re-centred until it converges. Usually more accurate than the detector’s own localizer, most of all under lens blur and board rotation; on cells of about 4 px its fit window spans the neighbouring corners. Reports a position covariance on the corners it refines to convergence.
Implementations§
Source§impl ImageRefiner
impl ImageRefiner
Sourcepub fn saddle_point() -> Self
pub fn saddle_point() -> Self
Saddle-point refinement with default tuning.
Trait Implementations§
Source§impl Clone for ImageRefiner
impl Clone for ImageRefiner
impl Copy for ImageRefiner
Source§impl Debug for ImageRefiner
impl Debug for ImageRefiner
Source§impl<'de> Deserialize<'de> for ImageRefiner
impl<'de> Deserialize<'de> for ImageRefiner
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 JsonSchema for ImageRefiner
impl JsonSchema for ImageRefiner
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 ImageRefiner
impl PartialEq for ImageRefiner
Source§impl Serialize for ImageRefiner
impl Serialize for ImageRefiner
impl StructuralPartialEq for ImageRefiner
Auto Trait Implementations§
impl Freeze for ImageRefiner
impl RefUnwindSafe for ImageRefiner
impl Send for ImageRefiner
impl Sync for ImageRefiner
impl Unpin for ImageRefiner
impl UnsafeUnpin for ImageRefiner
impl UnwindSafe for ImageRefiner
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