1 #ifndef TIL_IMAGE_BASE_H 2 #define TIL_IMAGE_BASE_H 38 int size()
const {
return this->
dim()[0]*this->
dim()[1]*this->
dim()[2]; }
60 assert(all_greater_equal(vdim,
t_voxsize(0)));
68 assert(all_greater_equal(dim,0));
88 return all_greater_equal(p, 0) && all_less(p, m_dim);
108 template <
class TImage >
A trait class to assign iterators to image types.
bool contains(const numeric_array< int, 3 > &p) const
void set_dim(const numeric_array< int, 3 > &dim)
const numeric_array< t_voxsize, 3 > & vdim() const
get voxel size
Belongs to package Box Do not include directly, include til/Box.h instead.
General macros, definitions and functions.
Defines empty classes that serves as labels.
void set_vdim(const numeric_array< t_voxsize, 3 > &vdim)
Set the voxel coordinates.
const numeric_array< int, 3 > & dim() const
get image dimension
Collects common code accross all image classes.
int size() const
Get total number of elements in image.
float t_voxsize
type of voxel size