open_iA  2020.01
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
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. More...

#include <iAImageCoordinate.h>

Collaboration diagram for iAImageCoordConverter:

Public Member Functions

iAImageCoordinate coordinatesFromIndex (iAVoxelIndexType index) const
 
iAVoxelIndexType depth () const
 
iAVoxelIndexType height () const
 
 iAImageCoordConverter (iAVoxelIndexType width, iAVoxelIndexType height, iAVoxelIndexType depth=1, iAImageCoordinate::iAIndexOrdering ordering=iAImageCoordinate::RowColDepMajor)
 
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.

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: