pub enum DimensionOrder {
CXY,
CYX,
XCY,
XYC,
YCX,
YXC,
}Expand description
Specify the dimension order of an image array.
For example, if dimension_order is “XYC”, then the data array must be in (X, Y, C) order, and the shape would be [img_w, img_h, num_channels]. For 2D images, the parent can simply specify dimension_order = “CXY” with num_channels of 1, as the contiguous data array will be the same regardless of whether the order is CXY vs XY. For 4D and 5D images with T and Z dimensions, the parent layer is expected to slice the data into 3D XY(C) slices for the specified z_index and t_index before passing onward. Similarly, if the original data array contains more channels than being visualized, the parent layer is responsible to slice them and provide them in the order that corresponds with the provided channel_settings c_index values.
Variants§
Implementations§
Source§impl DimensionOrder
impl DimensionOrder
Trait Implementations§
Source§impl Clone for DimensionOrder
impl Clone for DimensionOrder
Source§fn clone(&self) -> DimensionOrder
fn clone(&self) -> DimensionOrder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DimensionOrder
impl Debug for DimensionOrder
Source§impl<'de> Deserialize<'de> for DimensionOrder
impl<'de> Deserialize<'de> for DimensionOrder
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DimensionOrder, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DimensionOrder, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DimensionOrder
impl PartialEq for DimensionOrder
Source§impl Serialize for DimensionOrder
impl Serialize for DimensionOrder
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for DimensionOrder
Auto Trait Implementations§
impl Freeze for DimensionOrder
impl RefUnwindSafe for DimensionOrder
impl Send for DimensionOrder
impl Sync for DimensionOrder
impl Unpin for DimensionOrder
impl UnsafeUnpin for DimensionOrder
impl UnwindSafe for DimensionOrder
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>,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.