Mercurial > hg > orthanc
diff Core/Images/ImageAccessor.cpp @ 1993:e2a3ff770b48
introducing float32 images
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 14 May 2016 13:41:42 +0200 |
parents | 369897749653 |
children | a89ca69ec1d1 |
line wrap: on
line diff
--- a/Core/Images/ImageAccessor.cpp Mon May 09 17:56:32 2016 +0200 +++ b/Core/Images/ImageAccessor.cpp Sat May 14 13:41:42 2016 +0200 @@ -65,7 +65,7 @@ for (unsigned int x = 0; x < source.GetWidth(); x++, p++) { - s += boost::lexical_cast<std::string>(static_cast<int>(*p)) + " "; + s += boost::lexical_cast<std::string>(static_cast<double>(*p)) + " "; } target.AddChunk(s); @@ -221,6 +221,10 @@ ToMatlabStringInternal<int16_t>(buffer, *this); break; + case PixelFormat_Float32: + ToMatlabStringInternal<float>(buffer, *this); + break; + case PixelFormat_RGB24: RGB24ToMatlabString(buffer, *this); break;