pub struct PhysicalSize {
pub x: Option<f64>,
pub y: Option<f64>,
pub z: Option<f64>,
pub unit: String,
}Expand description
Physical pixel size in micrometres (the OME default unit). Every present value is > 0.
Fields§
§x: Option<f64>Pixel width in µm (the distance between neighbouring columns).
y: Option<f64>Pixel height in µm (the distance between neighbouring rows).
z: Option<f64>Spacing between Z planes (focal slices) in µm.
unit: StringAlways µm in this schema version.
Implementations§
Source§impl PhysicalSize
impl PhysicalSize
Sourcepub fn micrometres(x: Option<f64>, y: Option<f64>, z: Option<f64>) -> Self
pub fn micrometres(x: Option<f64>, y: Option<f64>, z: Option<f64>) -> Self
Sizes in µm. A size that is not a positive finite number (files store 0 for an axis
that was never calibrated, e.g. Y of a line scan or Z of a single plane) is dropped:
missing information is omitted, never encoded as 0 (book/src/guides/metadata.md).
Trait Implementations§
Source§impl Clone for PhysicalSize
impl Clone for PhysicalSize
Source§impl Debug for PhysicalSize
impl Debug for PhysicalSize
Source§impl Default for PhysicalSize
impl Default for PhysicalSize
Source§impl<'de> Deserialize<'de> for PhysicalSize
impl<'de> Deserialize<'de> for PhysicalSize
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for PhysicalSize
impl JsonSchema for PhysicalSize
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PhysicalSize
impl PartialEq for PhysicalSize
Source§impl Serialize for PhysicalSize
impl Serialize for PhysicalSize
impl StructuralPartialEq for PhysicalSize
Auto Trait Implementations§
impl Freeze for PhysicalSize
impl RefUnwindSafe for PhysicalSize
impl Send for PhysicalSize
impl Sync for PhysicalSize
impl Unpin for PhysicalSize
impl UnsafeUnpin for PhysicalSize
impl UnwindSafe for PhysicalSize
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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