ISIS Core Library 0.7.2 (api 3.0.0)
|
#include <ndimensional.hpp>
Public Member Functions | |
void | getCoordsFromLinIndex (const size_t index, size_t d[DIMS]) const |
Compute coordinates from linear index,. | |
size_t | getDimSize (size_t idx) const |
util::FixedVector< float, DIMS > | getFoV (const util::FixedVector< float, DIMS > &voxelSize, const util::FixedVector< float, DIMS > &voxelGap) const |
size_t | getLinearIndex (const util::FixedVector< size_t, DIMS > &d) const |
size_t | getLinearIndex (const size_t d[DIMS]) const |
Compute linear index from n-dimensional index,. | |
size_t | getRelevantDims () const |
get amount of relevant dimensions (last dim with size>1) e.g. | |
std::string | getSizeAsString (std::string delim="x") const |
generates a string representing the size | |
util::FixedVector< size_t, DIMS > | getSizeAsVector () const |
generates a FixedVector<DIMS> representing the size | |
size_t | getVolume () const |
Get the size of the object in elements of TYPE. | |
void | init (const util::FixedVector< size_t, DIMS > &d) |
void | init (const size_t d[DIMS]) |
Initializes the size-vector. | |
bool | isInRange (const size_t d[DIMS]) const |
Check if index fits into the dimensional size of the object. | |
NDimensional (const NDimensional &src) | |
Static Public Attributes | |
static const size_t | dims = DIMS |
Protected Member Functions | |
NDimensional () |
Base class for anything that has dimensional size
Definition at line 61 of file ndimensional.hpp.
isis::data::_internal::NDimensional< DIMS >::NDimensional | ( | ) | [inline, protected] |
Definition at line 65 of file ndimensional.hpp.
isis::data::_internal::NDimensional< DIMS >::NDimensional | ( | const NDimensional< DIMS > & | src | ) | [inline] |
Definition at line 81 of file ndimensional.hpp.
void isis::data::_internal::NDimensional< DIMS >::getCoordsFromLinIndex | ( | const size_t | index, |
size_t | d[DIMS] | ||
) | const [inline] |
Compute coordinates from linear index,.
d | array to put the computed coordinates in (d[0] will be most iterating element / lowest dimension) |
index | the linear index to compute the coordinates from |
Definition at line 100 of file ndimensional.hpp.
size_t isis::data::_internal::NDimensional< DIMS >::getDimSize | ( | size_t | idx | ) | const [inline] |
Definition at line 119 of file ndimensional.hpp.
util::FixedVector<float, DIMS> isis::data::_internal::NDimensional< DIMS >::getFoV | ( | const util::FixedVector< float, DIMS > & | voxelSize, |
const util::FixedVector< float, DIMS > & | voxelGap | ||
) | const [inline] |
Definition at line 149 of file ndimensional.hpp.
size_t isis::data::_internal::NDimensional< DIMS >::getLinearIndex | ( | const size_t | d[DIMS] | ) | const [inline] |
Compute linear index from n-dimensional index,.
d | array of indexes (d[0] is most iterating element / lowest dimension) |
Definition at line 88 of file ndimensional.hpp.
size_t isis::data::_internal::NDimensional< DIMS >::getLinearIndex | ( | const util::FixedVector< size_t, DIMS > & | d | ) | const [inline] |
Compute linear index from n-dimensional index,.
d | array of indexes (d[0] is most iterating element / lowest dimension) |
Definition at line 92 of file ndimensional.hpp.
size_t isis::data::_internal::NDimensional< DIMS >::getRelevantDims | ( | ) | const [inline] |
get amount of relevant dimensions (last dim with size>1) e.g.
on a slice (1x64x1x1) it will be 2
Definition at line 137 of file ndimensional.hpp.
std::string isis::data::_internal::NDimensional< DIMS >::getSizeAsString | ( | std::string | delim = "x" | ) | const [inline] |
generates a string representing the size
Definition at line 124 of file ndimensional.hpp.
util::FixedVector<size_t, DIMS> isis::data::_internal::NDimensional< DIMS >::getSizeAsVector | ( | ) | const [inline] |
generates a FixedVector<DIMS> representing the size
Definition at line 129 of file ndimensional.hpp.
size_t isis::data::_internal::NDimensional< DIMS >::getVolume | ( | ) | const [inline] |
Get the size of the object in elements of TYPE.
Definition at line 115 of file ndimensional.hpp.
void isis::data::_internal::NDimensional< DIMS >::init | ( | const util::FixedVector< size_t, DIMS > & | d | ) | [inline] |
Definition at line 77 of file ndimensional.hpp.
void isis::data::_internal::NDimensional< DIMS >::init | ( | const size_t | d[DIMS] | ) | [inline] |
Initializes the size-vector.
This must be done before anything else, or behaviour will be undefined.
d | array with sizes to use. (d[0] is most iterating element / lowest dimension) |
Definition at line 73 of file ndimensional.hpp.
bool isis::data::_internal::NDimensional< DIMS >::isInRange | ( | const size_t | d[DIMS] | ) | const [inline] |
Check if index fits into the dimensional size of the object.
d | index to be checked (d[0] is most iterating element / lowest dimension) |
Definition at line 108 of file ndimensional.hpp.
const size_t isis::data::_internal::NDimensional< DIMS >::dims = DIMS [static] |
Definition at line 67 of file ndimensional.hpp.