Mercurial > hg > orthanc
diff OrthancServer/Internals/DicomImageDecoder.h @ 2281:e002430baa41
Fix issue #44 (Bad interpretation of photometric interpretation MONOCHROME1)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Jun 2017 16:14:52 +0200 |
parents | a3a65de1840f |
children | 96b3ec054b69 |
line wrap: on
line diff
--- a/OrthancServer/Internals/DicomImageDecoder.h Mon May 22 20:39:53 2017 +0200 +++ b/OrthancServer/Internals/DicomImageDecoder.h Fri Jun 09 16:14:52 2017 +0200 @@ -79,7 +79,8 @@ static bool PreviewDecodedImage(std::auto_ptr<ImageAccessor>& image); static void ApplyExtractionMode(std::auto_ptr<ImageAccessor>& image, - ImageExtractionMode mode); + ImageExtractionMode mode, + bool invert); public: static bool IsPsmctRle1(DcmDataset& dataset); @@ -92,11 +93,13 @@ static void ExtractPngImage(std::string& result, std::auto_ptr<ImageAccessor>& image, - ImageExtractionMode mode); + ImageExtractionMode mode, + bool invert); static void ExtractJpegImage(std::string& result, std::auto_ptr<ImageAccessor>& image, ImageExtractionMode mode, + bool invert, uint8_t quality); }; }