aimsdata
5.1.2
Neuroimaging data handling
|
An alternate, ordered, representation for buckets (voxels lists). More...
#include <aims/bucket/bucketMap.h>
Public Types | |
typedef std::map< int, std::map< Point3d, T, BucketMapLess > > | BaseMap |
typedef std::map< Point3d, T, BucketMapLess > | Bucket |
typedef std::map< int, Bucket >::iterator | iterator |
typedef std::map< int, Bucket >::const_iterator | const_iterator |
Public Types inherited from carto::RCObject | |
typedef int | RefCounterType |
Public Member Functions | |
BucketMap () | |
BucketMap (const BucketMap< T > &other) | |
BucketMap (const AimsBucket< T > &) | |
build from AimsBucket More... | |
virtual | ~BucketMap () |
BucketMap< T > & | operator= (const AimsBucket< T > &) |
void | insert (const Point3d &pos, const T &item) |
Function redefined to omit time. More... | |
void | insert (const std::pair< const Point3d, T > &item) |
Function redefined to omit time, looks more like STL maps. More... | |
void | erase (const Point3d &pos) |
Function redefined to omit time. More... | |
void | merge (const BucketMap< T > &) |
float | sizeX () const |
returns the X resolution in mm More... | |
float | sizeY () const |
returns the Y resolution in mm More... | |
float | sizeZ () const |
returns the Z resolution in mm More... | |
float | sizeT () const |
returns the T resolution in s More... | |
std::vector< float > | getVoxelSize () const |
void | setSizeX (float sizex) |
sets the X resolution of the data in mm More... | |
void | setSizeY (float sizey) |
sets the Y resolution of the data in mm More... | |
void | setSizeZ (float sizez) |
sets the Z resolution of the data in mm More... | |
void | setSizeT (float sizet) |
sets the T resolution of the data in s More... | |
void | setSizeXYZT (float sizex, float sizey, float sizez, float sizet) |
sets X,Y,Z and T resolutions of the data More... | |
void | setSizeXYZT (const std::vector< float > &vsize) |
void | setVoxelSize (float sizex, float sizey, float sizez, float sizet) |
void | setVoxelSize (const std::vector< float > &vsize) |
const aims::PythonHeader & | header () const |
aims::PythonHeader & | header () |
void | setHeader (const aims::PythonHeader &hdr) |
Public Member Functions inherited from carto::RCObject | |
RCObject () | |
RCObject (const RCObject &) | |
RCObject & | operator= (const RCObject &) |
virtual | ~RCObject () |
Protected Attributes | |
aims::PythonHeader | _header |
An alternate, ordered, representation for buckets (voxels lists).
Compared to AimsBucket, this version stores points in an ordered map, sorted by (z,y,x) key.
Conversion operator makes it easy to transform an AimsBucket to a BucketMap and vice versa
Definition at line 96 of file bucketMap.h.
typedef std::map< int , std::map< Point3d, T, BucketMapLess > > aims::BucketMap< T >::BaseMap |
Definition at line 101 of file bucketMap.h.
typedef std::map< Point3d, T, BucketMapLess > aims::BucketMap< T >::Bucket |
Definition at line 102 of file bucketMap.h.
typedef std::map<int, Bucket >::const_iterator aims::BucketMap< T >::const_iterator |
Definition at line 104 of file bucketMap.h.
typedef std::map<int, Bucket >::iterator aims::BucketMap< T >::iterator |
Definition at line 103 of file bucketMap.h.
|
inline |
Definition at line 106 of file bucketMap.h.
|
inline |
Definition at line 108 of file bucketMap.h.
|
inline |
build from AimsBucket
Definition at line 350 of file bucketMap.h.
|
inlinevirtual |
Definition at line 113 of file bucketMap.h.
|
inline |
Function redefined to omit time.
Definition at line 208 of file bucketMap.h.
Referenced by aims::SparseVolume< BucketMap< Void > >::setValue().
|
inline |
Definition at line 224 of file bucketMap.h.
|
inline |
Definition at line 156 of file bucketMap.h.
|
inline |
Definition at line 155 of file bucketMap.h.
Referenced by carto::ConverterAllocator< aims::BucketMap< INP >, aims::BucketMap< OUTP > >::alloc(), aims::SparseVolume< BucketMap< T > >::alloc(), aims::SparseVolume< BucketMap< Void > >::alloc(), carto::RawConverter< aims::BucketMap< INP >, aims::BucketMap< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< INP >, rc_ptr< Volume< OUTP > > >::convert(), carto::RawConverter< aims::BucketMap< Void >, rc_ptr< Volume< OUTP > > >::convert(), aims::maskWithVolume(), AimsBucket< T >::operator=(), and aims::BckMapWriter< T >::write().
|
inline |
Function redefined to omit time.
Definition at line 194 of file bucketMap.h.
Referenced by aims::BucketMap< T >::merge().
|
inline |
Function redefined to omit time, looks more like STL maps.
Definition at line 201 of file bucketMap.h.
|
inline |
Definition at line 215 of file bucketMap.h.
References aims::BucketMap< T >::insert().
|
inline |
Definition at line 358 of file bucketMap.h.
References AimsBucket< T >::header().
|
inline |
|
inline |
sets the T resolution of the data in s
Definition at line 314 of file bucketMap.h.
References ASSERT.
|
inline |
sets the X resolution of the data in mm
Definition at line 275 of file bucketMap.h.
References ASSERT.
|
inline |
Definition at line 340 of file bucketMap.h.
|
inline |
sets X,Y,Z and T resolutions of the data
Definition at line 327 of file bucketMap.h.
Referenced by aims::SparseVolume< BucketMap< T > >::alloc(), aims::SparseVolume< BucketMap< Void > >::alloc(), carto::RawConverter< aims::BucketMap< INP >, aims::BucketMap< OUTP > >::convert(), and aims::maskWithVolume().
|
inline |
sets the Y resolution of the data in mm
Definition at line 288 of file bucketMap.h.
References ASSERT.
|
inline |
sets the Z resolution of the data in mm
Definition at line 301 of file bucketMap.h.
References ASSERT.
|
inline |
Definition at line 152 of file bucketMap.h.
|
inline |
Definition at line 149 of file bucketMap.h.
|
inline |
returns the T resolution in s
Definition at line 264 of file bucketMap.h.
Referenced by carto::ConverterAllocator< aims::BucketMap< INP >, rc_ptr< Volume< OUTP > > >::alloc(), aims::SparseVolume< BucketMap< T > >::alloc(), aims::SparseVolume< BucketMap< Void > >::alloc(), carto::RawConverter< aims::BucketMap< INP >, aims::BucketMap< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< INP >, rc_ptr< Volume< OUTP > > >::convert(), carto::RawConverter< aims::BucketMap< Void >, rc_ptr< Volume< OUTP > > >::convert(), aims::BucketUtil::volumeFromBucket(), and aims::BckMapWriter< T >::write().
|
inline |
returns the X resolution in mm
Definition at line 234 of file bucketMap.h.
Referenced by carto::ConverterAllocator< aims::BucketMap< INP >, rc_ptr< Volume< OUTP > > >::alloc(), aims::SparseVolume< BucketMap< T > >::alloc(), aims::SparseVolume< BucketMap< Void > >::alloc(), carto::RawConverter< aims::BucketMap< INP >, aims::BucketMap< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< INP >, rc_ptr< Volume< OUTP > > >::convert(), carto::RawConverter< aims::BucketMap< Void >, rc_ptr< Volume< OUTP > > >::convert(), aims::BucketUtil::volumeFromBucket(), and aims::BckMapWriter< T >::write().
|
inline |
returns the Y resolution in mm
Definition at line 244 of file bucketMap.h.
Referenced by carto::ConverterAllocator< aims::BucketMap< INP >, rc_ptr< Volume< OUTP > > >::alloc(), aims::SparseVolume< BucketMap< T > >::alloc(), aims::SparseVolume< BucketMap< Void > >::alloc(), carto::RawConverter< aims::BucketMap< INP >, aims::BucketMap< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< INP >, rc_ptr< Volume< OUTP > > >::convert(), carto::RawConverter< aims::BucketMap< Void >, rc_ptr< Volume< OUTP > > >::convert(), aims::BucketUtil::volumeFromBucket(), and aims::BckMapWriter< T >::write().
|
inline |
returns the Z resolution in mm
Definition at line 254 of file bucketMap.h.
Referenced by carto::ConverterAllocator< aims::BucketMap< INP >, rc_ptr< Volume< OUTP > > >::alloc(), aims::SparseVolume< BucketMap< T > >::alloc(), aims::SparseVolume< BucketMap< Void > >::alloc(), carto::RawConverter< aims::BucketMap< INP >, aims::BucketMap< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< INP >, rc_ptr< Volume< OUTP > > >::convert(), carto::RawConverter< aims::BucketMap< Void >, rc_ptr< Volume< OUTP > > >::convert(), aims::BucketUtil::volumeFromBucket(), and aims::BckMapWriter< T >::write().
|
protected |
Definition at line 160 of file bucketMap.h.