space
¶
Classes:
| Name | Description |
|---|---|
FloatArray |
|
SpaceProtocol |
|
ShapeScaleSpace |
Space defined by its shape and voxel size. |
ExtentScaleSpace |
Space defined by its physical extent and voxel size. |
ShapeExtentSpace |
Space defined by its shape and physical extent. |
DownscaledSpace |
Space with voxels |
UpscaledSpace |
Space with voxels |
Attributes:
| Name | Type | Description |
|---|---|---|
ArrayType |
|
|
ConcreteSpace |
|
|
Space |
|
ConcreteSpace
module-attribute
¶
ConcreteSpace = (
ExtentScaleSpace | ShapeExtentSpace | ShapeScaleSpace
)
FloatArray
¶
SpaceProtocol
¶
ShapeScaleSpace
¶
Space defined by its shape and voxel size.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shape
|
tuple[int, ...]
|
Number of voxels along each axis (Z, Y, X). |
required |
scale
|
tuple[float, ...]
|
Voxel size along each axis, in µm. A single number applies to all axes. Defaults to 1. |
()
|
axes
|
tuple[Axis, ...]
|
Axis names, by default the last |
(<Axis.Z>, <Axis.Y>, <Axis.X>)
|
Methods:
| Name | Description |
|---|---|
extent |
|
ExtentScaleSpace
¶
Space defined by its physical extent and voxel size.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
extent
|
tuple[float, ...]
|
Size of the space along each axis, in µm. |
required |
scale
|
tuple[float, ...]
|
Voxel size along each axis, in µm. A single number applies to all axes. |
required |
axes
|
tuple[Axis, ...]
|
Axis names, by default the last |
(<Axis.Z>, <Axis.Y>, <Axis.X>)
|
Attributes:
| Name | Type | Description |
|---|---|---|
shape |
tuple[int, ...]
|
|
ShapeExtentSpace
¶
Space defined by its shape and physical extent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shape
|
tuple[int, ...]
|
Number of voxels along each axis (Z, Y, X). |
required |
extent
|
tuple[float, ...]
|
Size of the space along each axis, in µm. |
required |
axes
|
tuple[Axis, ...]
|
Axis names, by default the last |
(<Axis.Z>, <Axis.Y>, <Axis.X>)
|
Attributes:
| Name | Type | Description |
|---|---|---|
scale |
tuple[float, ...]
|
|
DownscaledSpace
¶
Space with voxels downscale times larger than the other space.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
downscale
|
tuple[int, ...] | int
|
Integer factor, for all axes or per axis. |
required |
reference
|
ExtentScaleSpace | ShapeExtentSpace | ShapeScaleSpace | None
|
The space this one is relative to. Set automatically by |
None
|
Methods:
| Name | Description |
|---|---|
rescale |
|
Attributes:
| Name | Type | Description |
|---|---|---|
shape |
tuple[int, ...]
|
|
scale |
tuple[float, ...]
|
|
UpscaledSpace
¶
Space with voxels upscale times smaller than the other space.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
upscale
|
tuple[float, ...] | int
|
Factor, for all axes or per axis. |
required |
reference
|
ExtentScaleSpace | ShapeExtentSpace | ShapeScaleSpace | None
|
The space this one is relative to. Set automatically by |
None
|
Attributes:
| Name | Type | Description |
|---|---|---|
shape |
tuple[int, ...]
|
|
scale |
tuple[float, ...]
|
|