mantidimaging.core.data.images module

class mantidimaging.core.data.images.Images(data: ndarray, 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

NO_FILENAME_IMAGE_TITLE_STRING = 'Image: {}'
clear_proj180deg()[source]
copy(flip_axes=False) Images[source]
copy_roi(roi: SensibleROI)[source]
count() int[source]
counts() Counts | None[source]
static create_empty_images(shape, dtype, metadata)[source]
property data: ndarray
property dtype
property filenames: List[str] | None
property h_middle: float

Returns the horizontal middle (middle column) of the projections

has_proj180deg()[source]
property height
property id: UUID
index_as_images(index) Images[source]
property is_sinograms: bool
load_metadata(f: TextIO)[source]
property log_file
make_name_unique(existing_names: List[str])[source]
name: str
property num_images: int
property num_projections: int
property num_sinograms: int
property pixel_size
property proj180deg: Images | None
projection(projection_idx) ndarray[source]
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
record_operation(func_name: str, display_name, *args, **kwargs)[source]
save_metadata(f: TextIO, rescale_params: Dict[str, str | float] | None = None)[source]
set_projection_angles(angles: ProjectionAngles)[source]
sino(slice_idx) ndarray[source]
property sinograms
property v_middle: float

Returns the vertical middle (middle row) of the projections

property width