Pixels.h File Reference

#include "libBaseTypes.h"
#include "Promotion.h"
#include "Point.h"

Go to the source code of this file.

Classes

class  PixelInfoOf< T >

Defines

#define _PIXEL_MMMFunctions(_type, _min, _mid, _max, _range)
#define MaxValue(_type)   PixelInfoOf<_type>::max
#define MidValue(_type)   PixelInfoOf<_type>::mid
#define MinValue(_type)   PixelInfoOf<_type>::min
#define Range(_type)   PixelInfoOf<_type>::range

Typedefs

typedef short Pixel12BitGrey
typedef byte Pixel8BitGrey
typedef Real PixelRealGrey

Functions

 _PIXEL_MMMFunctions (Pixel12BitGrey, 0, 2047, 4095, 4096)
 _PIXEL_MMMFunctions (Pixel8BitGrey, 0, 127, 255, 256)
template<class T >
int AbsDiff (const T &t1, const T &t2)
 DEFINE_RANGEPROMOTION (Pixel12BitGrey, int)
void Deserialize (Stream &st, Pixel8BitGrey &t)
void Serialize (Stream &st, const Pixel8BitGrey &t)
template<class T >
int SignOfDiff (const T &t1, const T &t2)

Define Documentation

#define _PIXEL_MMMFunctions ( _type,
_min,
_mid,
_max,
_range   ) 
Value:
template<>                                                                                          \
    class PixelInfoOf<_type>                                                                \
    {                                                                                                               \
    public:                                                                                                 \
        static const _type min = _min;                                              \
        static const _type mid = _mid;                                              \
        static const _type max = _max;                                              \
        static const RangePromotionOf<_type>::type range = _range;  \
    };
#define MaxValue ( _type   )     PixelInfoOf<_type>::max
#define MidValue ( _type   )     PixelInfoOf<_type>::mid
#define MinValue ( _type   )     PixelInfoOf<_type>::min
#define Range ( _type   )     PixelInfoOf<_type>::range

Typedef Documentation

typedef short Pixel12BitGrey

Function Documentation

_PIXEL_MMMFunctions ( Pixel12BitGrey  ,
,
2047  ,
4095  ,
4096   
)
_PIXEL_MMMFunctions ( Pixel8BitGrey  ,
,
127  ,
255  ,
256   
)
template<class T >
int AbsDiff ( const T &  t1,
const T &  t2 
) [inline]
DEFINE_RANGEPROMOTION ( Pixel12BitGrey  ,
int   
)
void Deserialize ( Stream st,
Pixel8BitGrey t 
) [inline]

References StreamOf< T >::Read().

void Serialize ( Stream st,
const Pixel8BitGrey t 
) [inline]
template<class T >
int SignOfDiff ( const T &  t1,
const T &  t2 
) [inline]

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1