mantidimaging.core.data.imagestack module#
- class mantidimaging.core.data.imagestack.ImageStack(data: ndarray | SharedArray, filenames: list[str] | None = None, indices: list[int] | Indices | None = None, metadata: dict[str, Any] | None = None, sinograms: bool = False, name: str | None = None)[source]#
Bases:
object
- copy(flip_axes: bool = False) ImageStack [source]#
- copy_roi(roi: SensibleROI) ImageStack [source]#
- static create_empty_image_stack(shape: tuple[int, ...], dtype: npt.DTypeLike, metadata: dict[str, Any]) ImageStack [source]#
- property data: ndarray#
- property dtype: dtype#
- property log_file: InstrumentLog | None#
- property proj180deg: ImageStack | None#
- projection_angles(max_angle: float = 360.0) ProjectionAngles [source]#
Return projection angles, in priority order: - From a log - From the manually loaded file with a list of angles - Automatically generated with equidistant step
- Parameters:
max_angle – The maximum angle up to which the angles will be generated. Only used when the angles are generated, if they are provided via a log or a file the argument will be ignored.
- property projections: ndarray#
- real_projection_angles() ProjectionAngles | None [source]#
Return only the projection angles that are from a log file or have been manually loaded. :return: Real projection angles if they were found, None otherwise.
- set_projection_angles(angles: ProjectionAngles) None [source]#
- property shutter_count_file: ShutterCount | None#
- sino_as_image_stack(index: int) ImageStack [source]#
A single sinogram slice as an ImageStack in projection ordering
- property sinograms: ndarray#
- slice_as_image_stack(index: int) ImageStack [source]#
A slice, either projection or sinogram depending on current ordering