15 #ifndef GDCMLOOKUPTABLE_H
16 #define GDCMLOOKUPTABLE_H
25 class LookupTableInternal;
42 void Print(std::ostream &)
const {}
45 void Allocate(
unsigned short bitsample = 8 );
48 void InitializeLUT(LookupTableType type,
unsigned short length,
49 unsigned short subscript,
unsigned short bitsize);
50 unsigned int GetLUTLength(LookupTableType type)
const;
51 virtual void SetLUT(LookupTableType type,
const unsigned char *array,
53 void GetLUT(LookupTableType type,
unsigned char *array,
unsigned int &length)
const;
54 void GetLUTDescriptor(LookupTableType type,
unsigned short &length,
55 unsigned short &subscript,
unsigned short &bitsize)
const;
58 void InitializeRedLUT(
unsigned short length,
unsigned short subscript,
59 unsigned short bitsize);
60 void SetRedLUT(
const unsigned char *
red,
unsigned int length);
61 void InitializeGreenLUT(
unsigned short length,
unsigned short subscript,
62 unsigned short bitsize);
63 void SetGreenLUT(
const unsigned char *
green,
unsigned int length);
64 void InitializeBlueLUT(
unsigned short length,
unsigned short subscript,
65 unsigned short bitsize);
66 void SetBlueLUT(
const unsigned char *
blue,
unsigned int length);
72 void Decode(std::istream &is, std::ostream &os)
const;
77 bool Decode(
char *outputbuffer,
size_t outlen,
const char *inputbuffer,
size_t inlen)
const;
85 bool GetBufferAsRGBA(
unsigned char *rgba)
const;
88 const unsigned char *GetPointer()
const;
91 bool WriteBufferAsRGBA(
const unsigned char *rgba);
97 bool Initialized()
const;
101 void Encode(std::istream &is, std::ostream &os);
106 bool IncompleteLUT:1;
111 #endif //GDCMLOOKUPTABLE_H
LookupTable class.
Definition: gdcmLookupTable.h:29
Definition: gdcmTerminal.h:40
unsigned short BitSample
Definition: gdcmLookupTable.h:105
Definition: gdcmTerminal.h:43
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
Definition: gdcmLookupTable.h:36
Object.
Definition: gdcmObject.h:36
Definition: gdcmLookupTable.h:34
LookupTableInternal * Internal
Definition: gdcmLookupTable.h:104
Definition: gdcmLookupTable.h:35
LookupTable(LookupTable const &lut)
Definition: gdcmLookupTable.h:79
void Print(std::ostream &) const
Definition: gdcmLookupTable.h:42
Definition: gdcmTerminal.h:41
Definition: gdcmASN1.h:20
unsigned short GetBitSample() const
return the bit sample
Definition: gdcmLookupTable.h:94