1 #ifndef AIMS_BUCKET_BUCKETUTIL_D_H
2 #define AIMS_BUCKET_BUCKETUTIL_D_H
11 template <
typename T,
typename U>
22 float vx = bucket.
sizeX();
23 float vy = bucket.
sizeY();
24 float vz = bucket.
sizeZ();
26 int16_t( round( dmax[1] / vy ) ),
27 int16_t( round( dmax[2] / vz ) ) );
31 bmin =
Point3d( int16_t( round( dmin[0] / vx ) ),
32 int16_t( round( dmin[1] / vy ) ),
33 int16_t( round( dmin[2] / vz ) ) );
44 template <
typename T,
typename U>
54 std::vector<float> vs;
55 vs.push_back( bucket.
sizeX() );
56 vs.push_back( bucket.
sizeY() );
57 vs.push_back( bucket.
sizeZ() );
58 vs.push_back( bucket.
sizeT() );
64 conv.printToVolume( bucket, vol, -bbmin );
void add(const Point3df &pos)
An alternate, ordered, representation for buckets (voxels lists).
float sizeZ() const
returns the Z resolution in mm
float sizeT() const
returns the T resolution in s
float sizeY() const
returns the Y resolution in mm
float sizeX() const
returns the X resolution in mm
static carto::VolumeRef< U > volumeFromBucket(const BucketMap< T > &bucket, int borderwidth=0, Point3d *pos=0)
Bucket to volume conversion.
void setProperty(const std::string &, const T &)
void fillBorder(const T &value)
const PropertySet & header() const
void fill(const T &value)
The class for EcatSino data write operation.