aimsdata  5.1.2
Neuroimaging data handling
aims::BucketUtil Class Reference

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...
 

Detailed Description

Utility class related to buckets.

Definition at line 14 of file bucketutil.h.

Member Function Documentation

◆ volumeFromBucket() [1/2]

template<typename T , typename U >
carto::VolumeRef< U > aims::BucketUtil::volumeFromBucket ( const BucketMap< T > &  bucket,
const Point3d bbmin,
const Point3d bbmax,
int  borderwidth = 0 
)
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().

◆ volumeFromBucket() [2/2]

template<typename T , typename U >
carto::VolumeRef< U > aims::BucketUtil::volumeFromBucket ( const BucketMap< T > &  bucket,
int  borderwidth = 0,
Point3d pos = 0 
)
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().


The documentation for this class was generated from the following files: