Mercurial > hg > orthanc-webviewer
diff Plugin/DecodedImageAdapter.cpp @ 296:d179f3928342
removed "using namespace Orthanc"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 30 Jan 2021 12:26:50 +0100 |
parents | e376158e2dbb |
children | fb7d62e3235e |
line wrap: on
line diff
--- a/Plugin/DecodedImageAdapter.cpp Fri Jan 29 07:29:14 2021 +0100 +++ b/Plugin/DecodedImageAdapter.cpp Sat Jan 30 12:26:50 2021 +0100 @@ -187,8 +187,6 @@ const Json::Value& tags, OrthancImage& image) { - using namespace Orthanc; - float windowCenter, windowWidth; Orthanc::ImageAccessor accessor; @@ -197,9 +195,9 @@ switch (accessor.GetFormat()) { - case PixelFormat_Grayscale8: - case PixelFormat_Grayscale16: - case PixelFormat_SignedGrayscale16: + case Orthanc::PixelFormat_Grayscale8: + case Orthanc::PixelFormat_Grayscale16: + case Orthanc::PixelFormat_SignedGrayscale16: { int64_t a, b; Orthanc::ImageProcessing::GetMinMaxIntegerValue(a, b, accessor); @@ -221,8 +219,8 @@ break; } - case PixelFormat_RGB24: - case PixelFormat_RGB48: + case Orthanc::PixelFormat_RGB24: + case Orthanc::PixelFormat_RGB48: result["minPixelValue"] = 0; result["maxPixelValue"] = 255; result["color"] = true;