![]() |
open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Utility class for converting (2D/)3D indices to a flat (1D) index. More...
#include <iAImageCoordinate.h>
Public Member Functions | |
| iAImageCoordConverter (iAVoxelIndexType width, iAVoxelIndexType height, iAVoxelIndexType depth=1, iAImageCoordinate::iAIndexOrdering ordering=iAImageCoordinate::RowColDepMajor) | |
| iAImageCoordinate | coordinatesFromIndex (iAVoxelIndexType index) const |
| iAVoxelIndexType | depth () const |
| iAVoxelIndexType | height () const |
| iAVoxelIndexType | indexFromCoordinates (iAImageCoordinate coords) const |
| iAVoxelIndexType | vertexCount () const |
| iAVoxelIndexType | width () const |
Static Public Member Functions | |
| static iAImageCoordinate | coordinatesFromIndex (iAVoxelIndexType index, iAVoxelIndexType width, iAVoxelIndexType height, iAVoxelIndexType depth, iAImageCoordinate::iAIndexOrdering ordering) |
| static iAVoxelIndexType | indexFromCoordinates (iAImageCoordinate coords, iAVoxelIndexType width, iAVoxelIndexType height, iAVoxelIndexType depth, iAImageCoordinate::iAIndexOrdering ordering) |
Utility class for converting (2D/)3D indices to a flat (1D) index.
| iAImageCoordConverter::iAImageCoordConverter | ( | iAVoxelIndexType | width, |
| iAVoxelIndexType | height, | ||
| iAVoxelIndexType | depth = 1, |
||
| iAImageCoordinate::iAIndexOrdering | ordering = iAImageCoordinate::RowColDepMajor |
||
| ) |
| iAImageCoordinate iAImageCoordConverter::coordinatesFromIndex | ( | iAVoxelIndexType | index | ) | const |
|
static |
| iAVoxelIndexType iAImageCoordConverter::depth | ( | ) | const |
| iAVoxelIndexType iAImageCoordConverter::height | ( | ) | const |
| iAVoxelIndexType iAImageCoordConverter::indexFromCoordinates | ( | iAImageCoordinate | coords | ) | const |
|
static |
| iAVoxelIndexType iAImageCoordConverter::vertexCount | ( | ) | const |
| iAVoxelIndexType iAImageCoordConverter::width | ( | ) | const |