![]() |
aimsdata
5.1.2
Neuroimaging data handling
|
Utility class related to buckets. More...
#include <aims/bucket/bucketutil.h>
Static Public Member Functions | |
template<typename T , typename U = T> | |
static carto::VolumeRef< U > | volumeFromBucket (const BucketMap< T > &bucket, int borderwidth=0, Point3d *pos=0) |
Bucket to volume conversion. More... | |
template<typename T , typename U = T> | |
static carto::VolumeRef< U > | volumeFromBucket (const BucketMap< T > &bucket, const Point3d &bbmin, const Point3d &bbmax, int borderwidth=0) |
Bucket to volume conversion. More... | |
Utility class related to buckets.
Definition at line 14 of file bucketutil.h.
|
static |
Bucket to volume conversion.
Compared to Converter<BucketMap, carto::Volume>, this function has options to handle bounding box, and allows to have borders.
Definition at line 46 of file bucketutil_d.h.
References carto::VolumeRef< class >::fill(), carto::VolumeRef< class >::fillBorder(), carto::VolumeRef< class >::header(), carto::PropertySet::setProperty(), aims::BucketMap< T >::sizeT(), aims::BucketMap< T >::sizeX(), aims::BucketMap< T >::sizeY(), and aims::BucketMap< T >::sizeZ().
|
static |
Bucket to volume conversion.
Compared to Converter<BucketMap, carto::Volume>, this function has options to handle min bounding box, and allows to have borders.
If pos is non null, it should point to an (allocated) Point3d where the bounding box min position will be copied.
If pos is null, the volume will start at coordinates (0, 0, 0), without an offset (thus the volume may be much lager than needed, or may not contain the whole bucket if it has negative coordinates). In such case, pos is not used (thus passing 0 is OK).
Definition at line 13 of file bucketutil_d.h.
References aims::BoundingBox::add(), aims::BoundingBox::maximum(), aims::BoundingBox::minimum(), aims::BucketMap< T >::sizeX(), aims::BucketMap< T >::sizeY(), and aims::BucketMap< T >::sizeZ().