14 #ifndef GDCMIMAGECODEC_H
15 #define GDCMIMAGECODEC_H
40 void SetLossyFlag(
bool l);
41 bool GetLossyFlag()
const;
46 bool Decode(std::istream &is_, std::ostream &os);
50 unsigned int GetPlanarConfiguration()
const
52 return PlanarConfiguration;
54 void SetPlanarConfiguration(
unsigned int pc)
56 assert( pc == 0 || pc == 1 );
57 PlanarConfiguration = pc;
75 bool GetNeedByteSwap()
const
79 void SetNeedByteSwap(
bool b)
83 void SetNeedOverlayCleanup(
bool b)
85 NeedOverlayCleanup = b;
96 void SetDimensions(
const unsigned int *d)
100 Dimensions[2] = d[2];
103 void SetDimensions(
const std::vector<unsigned int> & d)
105 size_t theSize = d.size();
107 for (
size_t i = 0; i < 3; i++)
110 Dimensions[i] = d[i];
116 void SetNumberOfDimensions(
unsigned int dim);
117 unsigned int GetNumberOfDimensions()
const;
131 unsigned int Dimensions[3];
135 bool DoOverlayCleanup(std::istream &is_, std::ostream &os);
136 bool DoByteSwap(std::istream &is_, std::ostream &os);
137 bool DoYBR(std::istream &is_, std::ostream &os);
138 bool DoPlanarConfiguration(std::istream &is_, std::ostream &os);
139 bool DoSimpleCopy(std::istream &is_, std::ostream &os);
140 bool DoPaddedCompositePixelCode(std::istream &is_, std::ostream &os);
141 bool DoInvertMonochrome(std::istream &is_, std::ostream &os);
149 #endif //GDCMIMAGECODEC_H