|
open_iA 2024.7
|
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 (iAFlatIndexType index) const |
| iAVoxelIndexType | depth () const |
| iAVoxelIndexType | height () const |
| iAFlatIndexType | indexFromCoordinates (iAImageCoordinate coords) const |
| iAFlatIndexType | vertexCount () const |
| iAVoxelIndexType | width () const |
Static Public Member Functions | |
| static iAImageCoordinate | coordinatesFromIndex (iAFlatIndexType index, iAVoxelIndexType width, iAVoxelIndexType height, iAVoxelIndexType depth, iAImageCoordinate::iAIndexOrdering ordering) |
| static iAFlatIndexType | 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 | ( | iAFlatIndexType | index | ) | const |
|
static |
| iAVoxelIndexType iAImageCoordConverter::depth | ( | ) | const |
| iAVoxelIndexType iAImageCoordConverter::height | ( | ) | const |
| iAFlatIndexType iAImageCoordConverter::indexFromCoordinates | ( | iAImageCoordinate | coords | ) | const |
|
static |
| iAFlatIndexType iAImageCoordConverter::vertexCount | ( | ) | const |
| iAVoxelIndexType iAImageCoordConverter::width | ( | ) | const |