Mercurial > hg > orthanc
comparison Core/ImageFormats/ImageProcessing.cpp @ 860:80c7e53a69b5 jpeg
bugfix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 07 Jun 2014 10:32:15 +0200 |
parents | 610a9a1ed855 |
children | 5a125d587810 |
comparison
equal
deleted
inserted
replaced
859:610a9a1ed855 | 860:80c7e53a69b5 |
---|---|
131 } | 131 } |
132 | 132 |
133 if (target.GetFormat() == PixelFormat_Grayscale8 && | 133 if (target.GetFormat() == PixelFormat_Grayscale8 && |
134 source.GetFormat() == PixelFormat_Grayscale16) | 134 source.GetFormat() == PixelFormat_Grayscale16) |
135 { | 135 { |
136 printf("ICI\n"); | |
137 ConvertInternal<uint8_t, uint16_t>(target, source); | 136 ConvertInternal<uint8_t, uint16_t>(target, source); |
138 return; | 137 return; |
139 } | 138 } |
140 | 139 |
141 if (target.GetFormat() == PixelFormat_SignedGrayscale16 && | 140 if (target.GetFormat() == PixelFormat_SignedGrayscale16 && |
146 } | 145 } |
147 | 146 |
148 if (target.GetFormat() == PixelFormat_Grayscale8 && | 147 if (target.GetFormat() == PixelFormat_Grayscale8 && |
149 source.GetFormat() == PixelFormat_SignedGrayscale16) | 148 source.GetFormat() == PixelFormat_SignedGrayscale16) |
150 { | 149 { |
151 printf("ICI2\n"); | |
152 ConvertInternal<uint8_t, int16_t>(target, source); | 150 ConvertInternal<uint8_t, int16_t>(target, source); |
153 return; | 151 return; |
154 } | 152 } |
155 | 153 |
156 if (target.GetFormat() == PixelFormat_Grayscale16 && | 154 if (target.GetFormat() == PixelFormat_Grayscale16 && |