19 #ifndef GDCMSTREAMIMAGEREADER_H
20 #define GDCMSTREAMIMAGEREADER_H
54 void SetFileName(
const char* inFileName);
55 void SetStream(std::istream& inStream);
57 std::vector<unsigned int> GetDimensionsValueForResolution(
unsigned int );
67 void DefinePixelExtent(uint16_t inXMin, uint16_t inXMax,
68 uint16_t inYMin, uint16_t inYMax, uint16_t inZMin = 0, uint16_t inZMax = 1);
74 uint32_t DefineProperBufferLength()
const;
83 bool Read(
void* inReadBuffer,
const std::size_t& inBufferLength);
90 bool CanReadImage()
const;
96 virtual bool ReadImageInformation();
101 File const & GetFile()
const;
116 uint16_t mXMin, mYMin, mXMax, mYMax,
mZMin, mZMax;
123 virtual bool ReadImageSubregionRAW(
char* inReadBuffer,
const std::size_t& inBufferLength);
127 bool ReadImageSubregionJpegLS(
char* inReadBuffer,
const std::size_t& inBufferLength);
134 char* cast = (
char*)s;
135 setg(cast, cast, cast+n);
141 #endif //GDCMSTREAMIMAGEREADER_H