open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
iAImageCoordConverter Class Reference

Utility class for converting (2D/)3D indices to a flat (1D) index TODO: maybe merge with stuff from DynamicVolumeLines? 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)
 

Detailed Description

Utility class for converting (2D/)3D indices to a flat (1D) index TODO: maybe merge with stuff from DynamicVolumeLines?

Constructor & Destructor Documentation

◆ iAImageCoordConverter()

iAImageCoordConverter::iAImageCoordConverter ( iAVoxelIndexType  width,
iAVoxelIndexType  height,
iAVoxelIndexType  depth = 1,
iAImageCoordinate::iAIndexOrdering  ordering = iAImageCoordinate::RowColDepMajor 
)

Member Function Documentation

◆ coordinatesFromIndex() [1/2]

iAImageCoordinate iAImageCoordConverter::coordinatesFromIndex ( iAVoxelIndexType  index) const

◆ coordinatesFromIndex() [2/2]

iAImageCoordinate iAImageCoordConverter::coordinatesFromIndex ( iAVoxelIndexType  index,
iAVoxelIndexType  width,
iAVoxelIndexType  height,
iAVoxelIndexType  depth,
iAImageCoordinate::iAIndexOrdering  ordering 
)
static

◆ depth()

iAVoxelIndexType iAImageCoordConverter::depth ( ) const

◆ height()

iAVoxelIndexType iAImageCoordConverter::height ( ) const

◆ indexFromCoordinates() [1/2]

iAVoxelIndexType iAImageCoordConverter::indexFromCoordinates ( iAImageCoordinate  coords) const

◆ indexFromCoordinates() [2/2]

iAVoxelIndexType iAImageCoordConverter::indexFromCoordinates ( iAImageCoordinate  coords,
iAVoxelIndexType  width,
iAVoxelIndexType  height,
iAVoxelIndexType  depth,
iAImageCoordinate::iAIndexOrdering  ordering 
)
static

◆ vertexCount()

iAVoxelIndexType iAImageCoordConverter::vertexCount ( ) const

◆ width()

iAVoxelIndexType iAImageCoordConverter::width ( ) const

The documentation for this class was generated from the following files: