Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/DicomFrameConverter.cpp @ 11:4b7e0244881f
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 26 Oct 2016 12:14:03 +0200 |
parents | 351ab0da0150 |
children | ff1e935768e7 |
comparison
equal
deleted
inserted
replaced
10:55407926aac3 | 11:4b7e0244881f |
---|---|
130 sourceFormat == Orthanc::PixelFormat_SignedGrayscale16); | 130 sourceFormat == Orthanc::PixelFormat_SignedGrayscale16); |
131 | 131 |
132 // This is the case of a grayscale frame. Convert it to Float32. | 132 // This is the case of a grayscale frame. Convert it to Float32. |
133 std::auto_ptr<Orthanc::Image> converted(new Orthanc::Image(Orthanc::PixelFormat_Float32, | 133 std::auto_ptr<Orthanc::Image> converted(new Orthanc::Image(Orthanc::PixelFormat_Float32, |
134 source->GetWidth(), | 134 source->GetWidth(), |
135 source->GetHeight())); | 135 source->GetHeight(), |
136 false)); | |
136 Orthanc::ImageProcessing::Convert(*converted, *source); | 137 Orthanc::ImageProcessing::Convert(*converted, *source); |
137 | 138 |
138 source.reset(NULL); // We don't need the source frame anymore | 139 source.reset(NULL); // We don't need the source frame anymore |
139 | 140 |
140 // Correct rescale slope/intercept if need be | 141 // Correct rescale slope/intercept if need be |