#[non_exhaustive]pub enum NoiseLevel {
Estimate,
Known(f32),
}Expand description
The image noise level that turns a propagated position covariance into
px² (see Uncertainty::Propagated).
In JSON: "estimate" or {"known": 1.2}.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Estimate
Estimate σ from each image with
estimate_noise_sigma_u8 (the
default), once per frame and only when a corner carries a
covariance. The estimate is not reliable on demosaiced or JPEG
images; use Known for those.
Known(f32)
A known standard deviation of the image’s pixel noise, in gray
levels (finite and >= 0), for example the standard deviation of
the difference of two frames of a static scene, divided by √2.
It is the total noise as it appears in the 8-bit image, rounding
included (rounding adds 1/12 gray level² to the sensor noise,
which matters only below about 1 gray level). The covariance never
uses a variance below that 1/12.
Trait Implementations§
Source§impl Clone for NoiseLevel
impl Clone for NoiseLevel
impl Copy for NoiseLevel
Source§impl Debug for NoiseLevel
impl Debug for NoiseLevel
Source§impl Default for NoiseLevel
impl Default for NoiseLevel
Source§impl<'de> Deserialize<'de> for NoiseLevel
impl<'de> Deserialize<'de> for NoiseLevel
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 NoiseLevel
impl JsonSchema for NoiseLevel
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 NoiseLevel
impl PartialEq for NoiseLevel
Source§impl Serialize for NoiseLevel
impl Serialize for NoiseLevel
impl StructuralPartialEq for NoiseLevel
Auto Trait Implementations§
impl Freeze for NoiseLevel
impl RefUnwindSafe for NoiseLevel
impl Send for NoiseLevel
impl Sync for NoiseLevel
impl Unpin for NoiseLevel
impl UnsafeUnpin for NoiseLevel
impl UnwindSafe for NoiseLevel
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