aimstil  5.0.5
til::ImageBase Class Reference

Collects common code accross all image classes. More...

#include <til/ImageBase.h>

Inheritance diagram for til::ImageBase:
Collaboration diagram for til::ImageBase:

Public Member Functions

const numeric_array< int, 3 > & dim () const
 get image dimension More...
 
int size () const
 Get total number of elements in image. More...
 
const numeric_array< t_voxsize, 3 > & vdim () const
 get voxel size More...
 
void set_vdim (const numeric_array< t_voxsize, 3 > &vdim)
 Set the voxel coordinates. More...
 

Protected Member Functions

void set_dim (const numeric_array< int, 3 > &dim)
 
bool contains (const numeric_array< int, 3 > &p) const
 

Detailed Description

Collects common code accross all image classes.

Namely, everything related to dimension, voxel size, space origin... Useless by itself

Definition at line 19 of file ImageBase.h.

Member Function Documentation

◆ contains()

bool til::ImageBase::contains ( const numeric_array< int, 3 > &  p) const
inlineprotected

◆ dim()

◆ set_dim()

void til::ImageBase::set_dim ( const numeric_array< int, 3 > &  dim)
inlineprotected

Definition at line 66 of file ImageBase.h.

References dim().

Referenced by til::ImageNC< T >::ImageNC(), til::ImageRLE< T >::init(), and til::ImageC< T >::init().

◆ set_vdim()

void til::ImageBase::set_vdim ( const numeric_array< t_voxsize, 3 > &  vdim)
inline

Set the voxel coordinates.

Definition at line 58 of file ImageBase.h.

References vdim().

Referenced by til::ImageNC< T >::ImageNC(), til::ImageRLE< T >::init(), and til::ImageC< T >::init().

◆ size()

int til::ImageBase::size ( ) const
inline

Get total number of elements in image.

Definition at line 38 of file ImageBase.h.

References dim().

Referenced by til::ConstLinearIterator< ImageC< T > >::init(), and til::ImageC< T >::reset().

◆ vdim()

const numeric_array<t_voxsize,3>& til::ImageBase::vdim ( ) const
inline

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