Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/ImageToolbox.cpp @ 1296:86400fa16091
fix build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 23 Feb 2020 15:25:49 +0100 |
parents | d8c42e5e5843 |
children | 30deba7bc8e2 |
comparison
equal
deleted
inserted
replaced
1293:f050391249f0 | 1296:86400fa16091 |
---|---|
97 double maxValue = 0) | 97 double maxValue = 0) |
98 { | 98 { |
99 ORTHANC_ASSERT(Format == img.GetFormat(), | 99 ORTHANC_ASSERT(Format == img.GetFormat(), |
100 "Internal error. Wrong template histogram type"); | 100 "Internal error. Wrong template histogram type"); |
101 | 101 |
102 const uint8_t* buffer = reinterpret_cast<const uint8_t*>( | |
103 img.GetConstBuffer()); | |
104 | |
105 const size_t pitch = img.GetPitch(); | |
106 const size_t bytesPerPix = img.GetBytesPerPixel(); | |
107 | |
108 const size_t height = img.GetHeight(); | 102 const size_t height = img.GetHeight(); |
109 const size_t width = img.GetHeight(); | 103 const size_t width = img.GetHeight(); |
110 | 104 |
111 if ((minValue == 0) && (maxValue == 0)) | 105 if ((minValue == 0) && (maxValue == 0)) |
112 { | 106 { |
150 static void Apply(const Orthanc::ImageAccessor& img, | 144 static void Apply(const Orthanc::ImageAccessor& img, |
151 PixelType& minValue, PixelType& maxValue) | 145 PixelType& minValue, PixelType& maxValue) |
152 { | 146 { |
153 ORTHANC_ASSERT(Format == img.GetFormat(), | 147 ORTHANC_ASSERT(Format == img.GetFormat(), |
154 "Internal error. Wrong template histogram type"); | 148 "Internal error. Wrong template histogram type"); |
155 | |
156 const uint8_t* buffer = reinterpret_cast<const uint8_t*>( | |
157 img.GetConstBuffer()); | |
158 | |
159 const size_t pitch = img.GetPitch(); | |
160 const size_t bytesPerPix = img.GetBytesPerPixel(); | |
161 | 149 |
162 const size_t height = img.GetHeight(); | 150 const size_t height = img.GetHeight(); |
163 const size_t width = img.GetHeight(); | 151 const size_t width = img.GetHeight(); |
164 | 152 |
165 if (height * width == 0) | 153 if (height * width == 0) |