#[non_exhaustive]pub enum Uncertainty {
Off,
Propagated {
noise: NoiseLevel,
},
}Expand description
Which position uncertainty each corner reports in
position_covariance.
Detector-independent: it applies to every localizer (the ChESS refiners and the Radon peak fit) the same way. Corner positions are the same under every variant.
In JSON: "off", {"propagated": {"noise": "estimate"}} or
{"propagated": {"noise": {"known": 1.2}}}.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Off
No position covariance (the default). Localizers skip the noise propagation and the systematic model, and the detector makes no noise estimate.
Propagated
Image noise propagated through the localizer to first order, plus
the localizer’s systematic-error model (from the corner’s offset to
the localizer’s fit window and the width of its edges). noise is
the image noise level that expresses the propagated part in px².
Every localizer reports a covariance. None is reported on upscaled
input (DetectorConfig::upscale):
interpolation correlates the noise of neighbouring pixels.
The systematic part includes a per-localizer floor measured on real calibration images (about 0.05 px per axis for the saddle-point fit and the Radon peak fit, 0.07 center of mass). On real, well-exposed images this floor is usually the largest part of the covariance, so the reported σ varies little from corner to corner there. Weighting a calibration by it has not been shown to beat uniform weighting on real data. Errors shared by all corners of an image (defocus, lens-model error) are outside it. The floor was fitted on one camera pair and is likely low for other optics. Within that pair the two cameras’ own floors differed by up to 2×.
Fields
noise: NoiseLevelThe image noise level.
Trait Implementations§
Source§impl Clone for Uncertainty
impl Clone for Uncertainty
impl Copy for Uncertainty
Source§impl Debug for Uncertainty
impl Debug for Uncertainty
Source§impl Default for Uncertainty
impl Default for Uncertainty
Source§impl<'de> Deserialize<'de> for Uncertainty
impl<'de> Deserialize<'de> for Uncertainty
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 Uncertainty
impl JsonSchema for Uncertainty
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 Uncertainty
impl PartialEq for Uncertainty
Source§impl Serialize for Uncertainty
impl Serialize for Uncertainty
impl StructuralPartialEq for Uncertainty
Auto Trait Implementations§
impl Freeze for Uncertainty
impl RefUnwindSafe for Uncertainty
impl Send for Uncertainty
impl Sync for Uncertainty
impl Unpin for Uncertainty
impl UnsafeUnpin for Uncertainty
impl UnwindSafe for Uncertainty
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