aimstil  5.0.5
til::ImageNC< T > Class Template Reference

Image class storing data slice-by-slice. More...

#include <til/ConstImageNCLinearIterator.h>

Inheritance diagram for til::ImageNC< T >:
Collaboration diagram for til::ImageNC< T >:

Public Types

typedef ImageNC< T > Self
 
typedef T value_type
 

Public Member Functions

 ImageNC ()
 
 ImageNC (int x, int y, int z, t_voxsize vx, t_voxsize vy, t_voxsize vz)
 
 ImageNC (const numeric_array< int, 3 > &dim, const numeric_array< t_voxsize, 3 > &vDim)
 
 ImageNC (T *data, int x, int y, int z, t_voxsize vx, t_voxsize vy, t_voxsize vz)
 
 ImageNC (T **data, int x, int y, int z, t_voxsize vx, t_voxsize vy, t_voxsize vz)
 
 ImageNC (const std::vector< T *> &slices, int x, int y, t_voxsize vx, t_voxsize vy, t_voxsize vz)
 
 ImageNC (const ImageParameter &param)
 
 ImageNC (const ImageNC< T > *)
 
 ~ImageNC ()
 Destructor. More...
 
void init ()
 
void init (int x, int y, int z, t_voxsize vx, t_voxsize vy, t_voxsize vz)
 
void init (T *data, int x, int y, int z, t_voxsize vx, t_voxsize vy, t_voxsize vz)
 
void init (T **data, int x, int y, int z, t_voxsize vx, t_voxsize vy, t_voxsize vz)
 
void init (const numeric_array< int, 3 > &dim, const numeric_array< t_voxsize, 3 > &vDim)
 
void init (const std::vector< T *> &slices, int x, int y, t_voxsize vx, t_voxsize vy, t_voxsize vz)
 
void init (const ImageNC< T > *)
 
void init (const ImageParameter &param)
 
void setValue (const T &value, int i, int j, int k)
 
void setValue (const T &value, const numeric_array< int, 3 > &p)
 
INLINE T & operator() (int i, int j, int k)
 
T & operator() (const numeric_array< int, 3 > &v)
 
INLINE const T getValue (int i, int j, int k) const
 
const T getValue (const numeric_array< int, 3 > &v) const
 
INLINE const T getUnsafeValue (int i, int j, int k) const
 
const T getUnsafeValue (const numeric_array< int, 3 > &v) const
 
bool isAllocated () const
 
void reset ()
 
void copy (const Self &im)
 
bool operator!= (const Self &im) const
 Check whether images point on the same buffer. More...
 
bool operator== (const Self &im) const
 Check whether images point on the same buffer. More...
 
- Public Member Functions inherited from til::ImageBase
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...
 

Friends

class ConstVolumetricIterator< Self >
 
class ConstLinearIterator< Self >
 

Additional Inherited Members

- Protected Member Functions inherited from til::ImageBase
void set_dim (const numeric_array< int, 3 > &dim)
 
bool contains (const numeric_array< int, 3 > &p) const
 

Detailed Description

template<typename T>
class til::ImageNC< T >

Image class storing data slice-by-slice.

Definition at line 15 of file ConstImageNCLinearIterator.h.

Member Typedef Documentation

◆ Self

template<typename T>
typedef ImageNC<T> til::ImageNC< T >::Self

Definition at line 41 of file ImageNC.h.

◆ value_type

template<typename T>
typedef T til::ImageNC< T >::value_type

Definition at line 42 of file ImageNC.h.

Constructor & Destructor Documentation

◆ ImageNC() [1/8]

template<typename T >
til::ImageNC< T >::ImageNC ( )

Definition at line 332 of file ImageNC.h.

References til::ImageNC< T >::init().

◆ ImageNC() [2/8]

template<typename T >
til::ImageNC< T >::ImageNC ( int  x,
int  y,
int  z,
t_voxsize  vx,
t_voxsize  vy,
t_voxsize  vz 
)

Definition at line 348 of file ImageNC.h.

References til::ImageNC< T >::init().

◆ ImageNC() [3/8]

template<typename T >
til::ImageNC< T >::ImageNC ( const numeric_array< int, 3 > &  dim,
const numeric_array< t_voxsize, 3 > &  vDim 
)

Definition at line 366 of file ImageNC.h.

References til::ImageNC< T >::init().

◆ ImageNC() [4/8]

template<typename T >
til::ImageNC< T >::ImageNC ( T *  data,
int  x,
int  y,
int  z,
t_voxsize  vx,
t_voxsize  vy,
t_voxsize  vz 
)

◆ ImageNC() [5/8]

template<typename T >
til::ImageNC< T >::ImageNC ( T **  data,
int  x,
int  y,
int  z,
t_voxsize  vx,
t_voxsize  vy,
t_voxsize  vz 
)

Definition at line 418 of file ImageNC.h.

References til::ImageNC< T >::init().

◆ ImageNC() [6/8]

template<typename T >
til::ImageNC< T >::ImageNC ( const std::vector< T *> &  slices,
int  x,
int  y,
t_voxsize  vx,
t_voxsize  vy,
t_voxsize  vz 
)

Definition at line 431 of file ImageNC.h.

References til::ImageNC< T >::init().

◆ ImageNC() [7/8]

template<typename T >
til::ImageNC< T >::ImageNC ( const ImageParameter param)

Definition at line 381 of file ImageNC.h.

References til::ImageNC< T >::init().

◆ ImageNC() [8/8]

template<typename T >
til::ImageNC< T >::ImageNC ( const ImageNC< T > *  pIm)

Definition at line 444 of file ImageNC.h.

References til::ImageNC< T >::init().

◆ ~ImageNC()

template<typename T >
til::ImageNC< T >::~ImageNC ( )

Destructor.

Definition at line 465 of file ImageNC.h.

Member Function Documentation

◆ copy()

template<typename T>
void til::ImageNC< T >::copy ( const Self im)
inline

Definition at line 131 of file ImageNC.h.

References til::ImageBase::dim(), and til::ImageBase::vdim().

◆ getUnsafeValue() [1/2]

template<typename T >
INLINE const T til::ImageNC< T >::getUnsafeValue ( int  i,
int  j,
int  k 
) const

Definition at line 513 of file ImageNC.h.

Referenced by til::ImageNC< T >::getValue().

◆ getUnsafeValue() [2/2]

template<typename T>
const T til::ImageNC< T >::getUnsafeValue ( const numeric_array< int, 3 > &  v) const
inline

Definition at line 120 of file ImageNC.h.

References EXPAND_VECTOR, and til::ImageNC< T >::getUnsafeValue().

Referenced by til::ImageNC< T >::getUnsafeValue().

◆ getValue() [1/2]

template<typename T >
INLINE const T til::ImageNC< T >::getValue ( int  i,
int  j,
int  k 
) const

◆ getValue() [2/2]

template<typename T>
const T til::ImageNC< T >::getValue ( const numeric_array< int, 3 > &  v) const
inline

◆ init() [1/8]

template<typename T >
void til::ImageNC< T >::init ( )

Definition at line 340 of file ImageNC.h.

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

◆ init() [2/8]

template<typename T >
void til::ImageNC< T >::init ( int  x,
int  y,
int  z,
t_voxsize  vx,
t_voxsize  vy,
t_voxsize  vz 
)

Definition at line 356 of file ImageNC.h.

References til::ImageNC< T >::reset().

◆ init() [3/8]

template<typename T >
void til::ImageNC< T >::init ( T *  data,
int  x,
int  y,
int  z,
t_voxsize  vx,
t_voxsize  vy,
t_voxsize  vz 
)

Definition at line 410 of file ImageNC.h.

References til::simple2DoublePointer().

◆ init() [4/8]

template<typename T >
void til::ImageNC< T >::init ( T **  data,
int  x,
int  y,
int  z,
t_voxsize  vx,
t_voxsize  vy,
t_voxsize  vz 
)

Definition at line 424 of file ImageNC.h.

◆ init() [5/8]

template<typename T >
void til::ImageNC< T >::init ( const numeric_array< int, 3 > &  dim,
const numeric_array< t_voxsize, 3 > &  vDim 
)

Definition at line 374 of file ImageNC.h.

References EXPAND_VECTOR, and til::ImageNC< T >::init().

◆ init() [6/8]

template<typename T >
void til::ImageNC< T >::init ( const std::vector< T *> &  slices,
int  x,
int  y,
t_voxsize  vx,
t_voxsize  vy,
t_voxsize  vz 
)

Definition at line 437 of file ImageNC.h.

◆ init() [7/8]

template<typename T >
void til::ImageNC< T >::init ( const ImageNC< T > *  pIm)

Definition at line 450 of file ImageNC.h.

References til::ImageNC< T >::init(), and til::param().

◆ init() [8/8]

template<typename T >
void til::ImageNC< T >::init ( const ImageParameter param)

◆ isAllocated()

template<typename T>
bool til::ImageNC< T >::isAllocated ( ) const
inline

Definition at line 126 of file ImageNC.h.

References til::ImageNC< T >::reset().

◆ operator!=()

template<typename T>
bool til::ImageNC< T >::operator!= ( const Self im) const
inline

Check whether images point on the same buffer.

Definition at line 156 of file ImageNC.h.

◆ operator()() [1/2]

template<typename T >
INLINE T & til::ImageNC< T >::operator() ( int  i,
int  j,
int  k 
)

Definition at line 483 of file ImageNC.h.

Referenced by til::ImageNC< T >::setValue().

◆ operator()() [2/2]

template<typename T>
T& til::ImageNC< T >::operator() ( const numeric_array< int, 3 > &  v)
inline

◆ operator==()

template<typename T>
bool til::ImageNC< T >::operator== ( const Self im) const
inline

Check whether images point on the same buffer.

Definition at line 161 of file ImageNC.h.

◆ reset()

template<typename T >
void til::ImageNC< T >::reset ( )

Definition at line 472 of file ImageNC.h.

References til::ImageBase::dim().

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

◆ setValue() [1/2]

template<typename T>
void til::ImageNC< T >::setValue ( const T &  value,
int  i,
int  j,
int  k 
)
inline

Definition at line 96 of file ImageNC.h.

◆ setValue() [2/2]

template<typename T>
void til::ImageNC< T >::setValue ( const T &  value,
const numeric_array< int, 3 > &  p 
)
inline

Definition at line 100 of file ImageNC.h.

References INLINE, and til::ImageNC< T >::operator()().

Friends And Related Function Documentation

◆ ConstLinearIterator< Self >

template<typename T>
friend class ConstLinearIterator< Self >
friend

Definition at line 170 of file ImageNC.h.

◆ ConstVolumetricIterator< Self >

template<typename T>
friend class ConstVolumetricIterator< Self >
friend

Definition at line 169 of file ImageNC.h.


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