SpatioTemporalTraits

SpatioTemporalTraits.is_spatialMethod
is_spatial(x::StaticSymbol) -> StaticBool

Returns static(true) if x refers to a spatial dimension. By default, any dimension that is not one of the following is considered spatial:

  • time, Time
  • channels, Channels
  • observations, Observations, obs
source
SpatioTemporalTraits.pixel_spacingMethod
pixel_spacing(x)

Return a tuple representing the separation between adjacent pixels along each axis of the image. Derived from the step size of each element of spatial_indices.

source
SpatioTemporalTraits.spatial_directionsMethod
spatial_directions(img) -> (axis1, axis2, ...)

Return a tuple-of-tuples, each axis[i] representing the displacement vector between adjacent pixels along spatial axis i of the image array, relative to some external coordinate system ("physical coordinates").

By default this is computed from pixel_spacing, but you can set this manually using ImageMeta.

source
SpatioTemporalTraits.timesMethod
times(x)

Returns a collection of times associated with x. If x has a specific dimension associated with time, this returns the keys along that dimension.

source