![]() |
CARTA Backend
The backend component of CARTA
|
Represents the dimensions of an image or data cube. More...
#include <Image.h>
Public Member Functions | |
DimsInfo () | |
Default constructor initialising all dimensions to 1. | |
DimsInfo (const AxesInfo &axes, const casacore::IPosition &shape) | |
Constructor that initialises dimensions based on given axes and shape. | |
Static Public Member Functions | |
static size_t | FromAxis (int axis, const casacore::IPosition &shape) |
Retrieves the size of a given axis from the shape. | |
Public Attributes | |
size_t | width |
Width of the data (corresponding to the X-axis). | |
size_t | height |
Height of the data (corresponding to the Y-axis). | |
size_t | depth |
Depth of the data (corresponding to the Z-axis). | |
size_t | num_channels |
Number of spectral channels. | |
size_t | num_stokes |
Number of Stokes parameters. | |
Represents the dimensions of an image or data cube.
This struct stores information about the width, height, depth, number of spectral channels, and number of Stokes parameters based on the given axes and shape.
|
inline |
Default constructor initialising all dimensions to 1.
|
inline |
Constructor that initialises dimensions based on given axes and shape.
axes | The AxesInfo struct containing axis indices. |
shape | The image dimensions. |
|
inlinestatic |
Retrieves the size of a given axis from the shape.
axis | The axis index. |
shape | The shape of the data. |
size_t DimsInfo::depth |
Depth of the data (corresponding to the Z-axis).
size_t DimsInfo::height |
Height of the data (corresponding to the Y-axis).
size_t DimsInfo::num_channels |
Number of spectral channels.
size_t DimsInfo::num_stokes |
Number of Stokes parameters.
size_t DimsInfo::width |
Width of the data (corresponding to the X-axis).