aimsdata
5.0.5
Neuroimaging data handling
|
An alternate, ordered, representation for buckets (voxels lists). More...
#include <aims/bucket/bucket.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... | |
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... | |
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
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 322 of file bucketMap.h.
|
inlinevirtual |
Definition at line 113 of file bucketMap.h.
|
inline |
Function redefined to omit time.
Definition at line 201 of file bucketMap.h.
Referenced by carto::RawConverter< AimsData< INP >, aims::BucketMap< OUTP > >::convert(), carto::RawConverter< AimsData< INP >, aims::BucketMap< Void > >::convert(), and aims::SparseVolume< BucketMap< Void > >::setValue().
|
inline |
Definition at line 148 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(), aims::maskWithVolume(), AimsBucket< T >::operator=(), and aims::BckMapWriter< T >::write().
|
inline |
Definition at line 149 of file bucketMap.h.
|
inline |
Function redefined to omit time.
Definition at line 187 of file bucketMap.h.
Referenced by carto::RawConverter< AimsData< INP >, aims::BucketMap< OUTP > >::convert(), carto::RawConverter< AimsData< INP >, aims::BucketMap< Void > >::convert(), and aims::BucketMap< Void >::merge().
|
inline |
Function redefined to omit time, looks more like STL maps.
Definition at line 194 of file bucketMap.h.
|
inline |
Definition at line 208 of file bucketMap.h.
|
inline |
Definition at line 330 of file bucketMap.h.
|
inline |
|
inline |
sets the T resolution of the data in s
Definition at line 296 of file bucketMap.h.
|
inline |
sets the X resolution of the data in mm
Definition at line 257 of file bucketMap.h.
|
inline |
sets X,Y,Z and T resolutions of the data
Definition at line 309 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(), carto::RawConverter< AimsData< INP >, aims::BucketMap< OUTP > >::convert(), carto::RawConverter< AimsData< INP >, aims::BucketMap< Void > >::convert(), and aims::maskWithVolume().
|
inline |
sets the Y resolution of the data in mm
Definition at line 270 of file bucketMap.h.
|
inline |
sets the Z resolution of the data in mm
Definition at line 283 of file bucketMap.h.
|
inline |
returns the T resolution in s
Definition at line 246 of file bucketMap.h.
Referenced by carto::ConverterAllocator< aims::BucketMap< INP >, VolumeRef< 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 >, AimsData< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< INP >, VolumeRef< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< Void >, AimsData< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< Void >, VolumeRef< OUTP > >::convert(), and aims::BckMapWriter< T >::write().
|
inline |
returns the X resolution in mm
Definition at line 216 of file bucketMap.h.
Referenced by carto::ConverterAllocator< aims::BucketMap< INP >, VolumeRef< 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 >, AimsData< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< INP >, VolumeRef< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< Void >, AimsData< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< Void >, VolumeRef< OUTP > >::convert(), and aims::BckMapWriter< T >::write().
|
inline |
returns the Y resolution in mm
Definition at line 226 of file bucketMap.h.
Referenced by carto::ConverterAllocator< aims::BucketMap< INP >, VolumeRef< 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 >, AimsData< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< INP >, VolumeRef< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< Void >, AimsData< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< Void >, VolumeRef< OUTP > >::convert(), and aims::BckMapWriter< T >::write().
|
inline |
returns the Z resolution in mm
Definition at line 236 of file bucketMap.h.
Referenced by carto::ConverterAllocator< aims::BucketMap< INP >, VolumeRef< 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 >, AimsData< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< INP >, VolumeRef< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< Void >, AimsData< OUTP > >::convert(), carto::RawConverter< aims::BucketMap< Void >, VolumeRef< OUTP > >::convert(), and aims::BckMapWriter< T >::write().
|
protected |
Definition at line 153 of file bucketMap.h.