MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Static Public Member Functions
mds::img::CPixelTraits< T > Class Template Reference

#include <mdsPixelTraits.h>

Inheritance diagram for mds::img::CPixelTraits< T >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { isFilterable = SIsFilterable<T>::RESULT }
 Simple pixel type checks. More...
enum  { isPointer = SIsPointer<T>::RESULT }
 Simple type checks. More...
enum  { isReference = SIsReference<T>::RESULT }
enum  { isMemberPointer = SIsMemberPointer<T>::RESULT }
enum  { isUnsignedInt = SIsUnsignedInt<T>::RESULT }
enum  { isSignedInt = SIsSignedInt<T>::RESULT }
enum  { isFloat = SIsFloat<T>::RESULT }
enum  { isConst = SIsConst<T>::RESULT }
enum  { isIntegral = isUnsignedInt || isSignedInt || SIsOtherInt<T>::RESULT }
enum  { isFundamental = isIntegral || isFloat || SIsOtherStd<T>::RESULT }
typedef SIsFilterable< T >
::tFilterResponse 
tFilterResponse
 Filter response type.
typedef SIsConst< T >::tNonConst tNonConst
 Non-const type if T is constant.
typedef SSelect< isFundamental||isPointer||isMemberPointer,
T, tReferred & >::RESULT 
tParameter
 Type used to pass type T as a function/method parameter.
typedef SIsPointer< T >::tPointee tPointee
 Pointee type if T is pointer.
typedef SIsReference< T >
::tReferred 
tReferred
 Referred type if T is reference.

Public Member Functions

template<>
tPixel8 getGray ()
template<>
tPixel16 getGray ()
template<>
tPixel32 getGray ()
template<>
tFloatPixel getGray ()
template<>
tDensityPixel getGray ()
template<>
tRGBPixel getGray ()
template<>
tComplexPixel getGray ()
template<>
mds::sys::tInt8 getMax ()
template<>
mds::sys::tUInt8 getMax ()
template<>
mds::sys::tInt16 getMax ()
template<>
mds::sys::tUInt16 getMax ()
template<>
mds::sys::tInt32 getMax ()
template<>
mds::sys::tUInt32 getMax ()
template<>
mds::img::tRGBPixel getMax ()
template<>
mds::img::tRGBPixel getMax ()
template<>
mds::sys::tInt8 getMin ()
template<>
mds::sys::tUInt8 getMin ()
template<>
mds::sys::tInt16 getMin ()
template<>
mds::sys::tUInt16 getMin ()
template<>
mds::sys::tInt32 getMin ()
template<>
mds::sys::tUInt32 getMin ()
template<>
mds::img::tRGBPixel getMin ()
template<>
mds::img::tRGBPixel getMin ()
template<>
tPixel8 getPixelMax ()
template<>
tPixel16 getPixelMax ()
template<>
tPixel32 getPixelMax ()
template<>
tFloatPixel getPixelMax ()
template<>
tDensityPixel getPixelMax ()
template<>
tRGBPixel getPixelMax ()
template<>
tComplexPixel getPixelMax ()
template<>
tPixel8 getPixelMin ()
template<>
tPixel16 getPixelMin ()
template<>
tPixel32 getPixelMin ()
template<>
tFloatPixel getPixelMin ()
template<>
tDensityPixel getPixelMin ()
template<>
tRGBPixel getPixelMin ()
template<>
tComplexPixel getPixelMin ()
template<>
const char * getPixelName ()
template<>
const char * getPixelName ()
template<>
const char * getPixelName ()
template<>
const char * getPixelName ()
template<>
const char * getPixelName ()
template<>
const char * getPixelName ()
template<>
const char * getPixelName ()
template<>
mds::sys::tInt8 getZero ()
template<>
mds::sys::tUInt8 getZero ()
template<>
mds::sys::tInt16 getZero ()
template<>
mds::sys::tUInt16 getZero ()
template<>
mds::sys::tInt32 getZero ()
template<>
mds::sys::tUInt32 getZero ()
template<>
mds::img::tRGBPixel getZero ()
template<>
mds::img::tRGBPixel getZero ()

Static Public Member Functions

static T getGray ()
 Returns value corresponding to the gray color.
static T getMax ()
 Maximal value of the type T.
static T getMin ()
 Minimal value of the type T.
static T getPixelMax ()
 Maximal pixel value.
static T getPixelMin ()
 Minimal pixel value.
static const char * getPixelName ()
 Returns pixel name.
static tSize getSize ()
 Returns size of the type T in bytes.
static T getZero ()
 Zero defined for the type T.

template<typename T>
class mds::img::CPixelTraits< T >


Member Typedef Documentation

template<typename T>
typedef SIsFilterable<T>::tFilterResponse mds::img::CPixelTraits< T >::tFilterResponse

Filter response type.

template<typename T>
typedef SIsConst<T>::tNonConst mds::CTypeTraits< T >::tNonConst [inherited]

Non-const type if T is constant.

template<typename T>
typedef SSelect<isFundamental || isPointer || isMemberPointer, T, tReferred&>::RESULT mds::CTypeTraits< T >::tParameter [inherited]

Type used to pass type T as a function/method parameter.

template<typename T>
typedef SIsPointer<T>::tPointee mds::CTypeTraits< T >::tPointee [inherited]

Pointee type if T is pointer.

template<typename T>
typedef SIsReference<T>::tReferred mds::CTypeTraits< T >::tReferred [inherited]

Referred type if T is reference.


Member Enumeration Documentation

template<typename T>
anonymous enum

Simple pixel type checks.

Enumerator:
isFilterable 
template<typename T>
anonymous enum [inherited]

Simple type checks.

Enumerator:
isPointer 
template<typename T>
anonymous enum [inherited]
Enumerator:
isReference 
template<typename T>
anonymous enum [inherited]
Enumerator:
isMemberPointer 
template<typename T>
anonymous enum [inherited]
Enumerator:
isUnsignedInt 
template<typename T>
anonymous enum [inherited]
Enumerator:
isSignedInt 
template<typename T>
anonymous enum [inherited]
Enumerator:
isFloat 
template<typename T>
anonymous enum [inherited]
Enumerator:
isConst 
template<typename T>
anonymous enum [inherited]
Enumerator:
isIntegral 
template<typename T>
anonymous enum [inherited]
Enumerator:
isFundamental 

Member Function Documentation

template<typename T>
static T mds::img::CPixelTraits< T >::getGray ( ) [static]

Returns value corresponding to the gray color.

template<>
mds::sys::tInt8 mds::CTypeTraits< mds::sys::tInt8 >::getMax ( ) [inherited]
template<>
mds::sys::tUInt8 mds::CTypeTraits< mds::sys::tUInt8 >::getMax ( ) [inherited]
template<>
mds::sys::tInt16 mds::CTypeTraits< mds::sys::tInt16 >::getMax ( ) [inherited]
template<>
mds::sys::tUInt16 mds::CTypeTraits< mds::sys::tUInt16 >::getMax ( ) [inherited]
template<>
mds::sys::tInt32 mds::CTypeTraits< mds::sys::tInt32 >::getMax ( ) [inherited]
template<>
mds::sys::tUInt32 mds::CTypeTraits< mds::sys::tUInt32 >::getMax ( ) [inherited]
template<typename T>
static T mds::CTypeTraits< T >::getMax ( ) [static, inherited]

Maximal value of the type T.

template<>
mds::sys::tInt8 mds::CTypeTraits< mds::sys::tInt8 >::getMin ( ) [inherited]
template<>
mds::sys::tUInt8 mds::CTypeTraits< mds::sys::tUInt8 >::getMin ( ) [inherited]
template<>
mds::sys::tInt16 mds::CTypeTraits< mds::sys::tInt16 >::getMin ( ) [inherited]
template<>
mds::sys::tUInt16 mds::CTypeTraits< mds::sys::tUInt16 >::getMin ( ) [inherited]
template<>
mds::sys::tInt32 mds::CTypeTraits< mds::sys::tInt32 >::getMin ( ) [inherited]
template<>
mds::sys::tUInt32 mds::CTypeTraits< mds::sys::tUInt32 >::getMin ( ) [inherited]
template<typename T>
static T mds::CTypeTraits< T >::getMin ( ) [static, inherited]

Minimal value of the type T.

template<typename T>
static T mds::img::CPixelTraits< T >::getPixelMax ( ) [static]

Maximal pixel value.

template<typename T>
static T mds::img::CPixelTraits< T >::getPixelMin ( ) [static]

Minimal pixel value.

template<>
const char * mds::img::CPixelTraits< tPixel8 >::getPixelName ( )
template<>
const char * mds::img::CPixelTraits< tPixel16 >::getPixelName ( )
template<typename T>
static const char* mds::img::CPixelTraits< T >::getPixelName ( ) [static]

Returns pixel name.

template<>
const char * mds::img::CPixelTraits< tPixel32 >::getPixelName ( )
template<>
const char * mds::img::CPixelTraits< tFloatPixel >::getPixelName ( )
template<>
const char * mds::img::CPixelTraits< tDensityPixel >::getPixelName ( )
template<>
const char * mds::img::CPixelTraits< tRGBPixel >::getPixelName ( )
template<>
const char * mds::img::CPixelTraits< tComplexPixel >::getPixelName ( )
template<typename T>
static tSize mds::CTypeTraits< T >::getSize ( ) [static, inherited]

Returns size of the type T in bytes.

template<>
mds::sys::tInt8 mds::CTypeTraits< mds::sys::tInt8 >::getZero ( ) [inherited]
template<>
mds::sys::tUInt8 mds::CTypeTraits< mds::sys::tUInt8 >::getZero ( ) [inherited]
template<>
mds::sys::tInt16 mds::CTypeTraits< mds::sys::tInt16 >::getZero ( ) [inherited]
template<>
mds::sys::tUInt16 mds::CTypeTraits< mds::sys::tUInt16 >::getZero ( ) [inherited]
template<>
mds::sys::tInt32 mds::CTypeTraits< mds::sys::tInt32 >::getZero ( ) [inherited]
template<>
mds::sys::tUInt32 mds::CTypeTraits< mds::sys::tUInt32 >::getZero ( ) [inherited]
template<typename T>
static T mds::CTypeTraits< T >::getZero ( ) [static, inherited]

Zero defined for the type T.


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