18 #ifndef GDCMSTREAMIMAGEREADER_H
19 #define GDCMSTREAMIMAGEREADER_H
48 void SetFileName(
const char* inFileName);
49 void SetStream(std::istream& inStream);
51 std::vector<unsigned int> GetDimensionsValueForResolution(
unsigned int );
60 void DefinePixelExtent(uint16_t inXMin, uint16_t inXMax,
61 uint16_t inYMin, uint16_t inYMax, uint16_t inZMin = 0, uint16_t inZMax = 1);
67 uint32_t DefineProperBufferLength()
const;
76 bool Read(
char* inReadBuffer,
const std::size_t& inBufferLength);
83 bool CanReadImage()
const;
88 virtual bool ReadImageInformation();
93 File const & GetFile()
const;
102 std::streamoff mFileOffset;
104 std::streamoff mFileOffset1;
110 uint16_t mXMin, mYMin, mXMax, mYMax, mZMin, mZMax;
116 bool ReadImageSubregionRAW(
char* inReadBuffer,
const std::size_t& inBufferLength);
120 bool ReadImageSubregionJpegLS(
char* inReadBuffer,
const std::size_t& inBufferLength);
125 #endif //GDCMSTREAMIMAGEREADER_H