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

Image class using run-length encoded data. More...

#include <til/ConstImageCPTLinearIterator.h>

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

Public Types

typedef T value_type
 
typedef ImageRLE< T > Self
 

Public Member Functions

 ImageRLE ()
 
 ImageRLE (int x, int y, int z, t_voxsize vx, t_voxsize vy, t_voxsize vz)
 
 ImageRLE (const numeric_array< int, 3 > &dim, const numeric_array< t_voxsize, 3 > &vDim)
 
 ImageRLE (const ImageRLE< T > *)
 
 ImageRLE (const ImageParameter &param)
 
void init ()
 
void init (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 ImageRLE< T > *)
 
void init (const ImageParameter &param)
 
INLINEoperator() (int i, int j, int k)
 
operator() (const numeric_array< int, 3 > &v)
 
INLINE const T getValue (int i, int j, int k) const
 Get the value at point (i,j,k) for read-only purpose. More...
 
const T getValue (const numeric_array< int, 3 > &v) const
 
INLINE void setValue (T value, int i, int j, int k)
 
void setValue (T value, const numeric_array< int, 3 > &v)
 
INLINE void setUnsafeValue (T value, int i, int j, int k)
 
getUnsafeValue (int i, int j, int k) const
 Get the value at point (i,j,k) for fast read-only purpose. More...
 
getUnsafeValue (const numeric_array< int, 3 > &v) const
 
bool isAllocated () const
 Check whether data has been allocated or not. More...
 
void reset ()
 Set all values to zero. More...
 
void debugLine (const Line &line) const
 
void debug () const
 for debugging purposes More...
 
void copy (const Self &im)
 
- 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 ConstLinearIterator< ImageRLE< T > >
 
class LinearIterator< ImageRLE< T > >
 

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::ImageRLE< T >

Image class using run-length encoded data.

Definition at line 18 of file ConstImageCPTLinearIterator.h.

Member Typedef Documentation

◆ Self

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

Definition at line 47 of file ImageCPT.h.

◆ value_type

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

Definition at line 46 of file ImageCPT.h.

Constructor & Destructor Documentation

◆ ImageRLE() [1/5]

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

Definition at line 315 of file ImageCPT.h.

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

◆ ImageRLE() [2/5]

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

Definition at line 341 of file ImageCPT.h.

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

◆ ImageRLE() [3/5]

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

Definition at line 359 of file ImageCPT.h.

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

◆ ImageRLE() [4/5]

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

Definition at line 378 of file ImageCPT.h.

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

◆ ImageRLE() [5/5]

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

Definition at line 398 of file ImageCPT.h.

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

Member Function Documentation

◆ copy()

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

Definition at line 134 of file ImageCPT.h.

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

◆ debug()

template<typename T>
void til::ImageRLE< T >::debug ( ) const
inline

for debugging purposes

Definition at line 126 of file ImageCPT.h.

References til::ImageRLE< T >::debugLine().

◆ debugLine()

template<typename T>
void til::ImageRLE< T >::debugLine ( const Line &  line) const
inline

Definition at line 115 of file ImageCPT.h.

Referenced by til::ImageRLE< T >::debug().

◆ getUnsafeValue() [1/2]

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

Get the value at point (i,j,k) for fast read-only purpose.

Definition at line 449 of file ImageCPT.h.

Referenced by til::ImageRLE< T >::getValue(), and til::ImageRLE< T >::setValue().

◆ getUnsafeValue() [2/2]

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

Definition at line 107 of file ImageCPT.h.

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

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

◆ getValue() [1/2]

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

Get the value at point (i,j,k) for read-only purpose.

Definition at line 435 of file ImageCPT.h.

References til::ImageBase::contains(), and til::ImageRLE< T >::getUnsafeValue().

Referenced by til::ImageRLE< T >::operator()().

◆ getValue() [2/2]

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

◆ init() [1/5]

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

Definition at line 321 of file ImageCPT.h.

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

◆ init() [2/5]

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

Definition at line 347 of file ImageCPT.h.

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

◆ init() [3/5]

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

◆ init() [4/5]

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

Definition at line 391 of file ImageCPT.h.

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

◆ init() [5/5]

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

◆ isAllocated()

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

Check whether data has been allocated or not.

Definition at line 110 of file ImageCPT.h.

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

◆ operator()() [1/2]

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

Definition at line 421 of file ImageCPT.h.

References til::ImageRLE< T >::getValue().

◆ operator()() [2/2]

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

◆ reset()

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

Set all values to zero.

Definition at line 405 of file ImageCPT.h.

References til::ImageBase::dim().

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

◆ setUnsafeValue()

template<typename T>
INLINE void til::ImageRLE< T >::setUnsafeValue ( value,
int  i,
int  j,
int  k 
)

Definition at line 671 of file ImageCPT.h.

References til::ImageBase::dim().

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

◆ setValue() [1/2]

template<typename T>
INLINE void til::ImageRLE< T >::setValue ( value,
int  i,
int  j,
int  k 
)

◆ setValue() [2/2]

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

Friends And Related Function Documentation

◆ ConstLinearIterator< ImageRLE< T > >

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

Definition at line 161 of file ImageCPT.h.

◆ LinearIterator< ImageRLE< T > >

template<typename T>
friend class LinearIterator< ImageRLE< T > >
friend

Definition at line 162 of file ImageCPT.h.


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