diff UnitTestsSources/ImageProcessingTests.cpp @ 3651:46cb00e4adbb

DicomMap::DumpMainDicomTags() and DicomMap::ParseMainDicomTags()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Feb 2020 13:22:02 +0100
parents 94f4a18a79cc
children 5f64c866108a
line wrap: on
line diff
--- a/UnitTestsSources/ImageProcessingTests.cpp	Wed Feb 05 11:52:10 2020 +0100
+++ b/UnitTestsSources/ImageProcessingTests.cpp	Wed Feb 05 13:22:02 2020 +0100
@@ -896,7 +896,7 @@
 TEST(ImageProcessing, ApplyWindowingGrayScale8ToGrayScale16)
 {
   {
-    Image image(PixelFormat_Grayscale8, 6, 1, false);
+    Image image(PixelFormat_Grayscale8, 5, 1, false);
     SetGrayscale8Pixel(image, 0, 0, 0);
     SetGrayscale8Pixel(image, 1, 0, 2);
     SetGrayscale8Pixel(image, 2, 0, 5);
@@ -904,7 +904,7 @@
     SetGrayscale8Pixel(image, 4, 0, 255);
 
     {
-      Image target(PixelFormat_Grayscale16, 6, 1, false);
+      Image target(PixelFormat_Grayscale16, 5, 1, false);
       ImageProcessing::ApplyWindowing(target, image, 5.0f, 10.0f, 1.0f, 0.0f, false);
 
       ASSERT_TRUE(TestGrayscale16Pixel(target, 0, 0, 0));
@@ -919,7 +919,7 @@
 TEST(ImageProcessing, ApplyWindowingGrayScale16ToGrayScale16)
 {
   {
-    Image image(PixelFormat_Grayscale16, 6, 1, false);
+    Image image(PixelFormat_Grayscale16, 5, 1, false);
     SetGrayscale16Pixel(image, 0, 0, 0);
     SetGrayscale16Pixel(image, 1, 0, 2);
     SetGrayscale16Pixel(image, 2, 0, 5);
@@ -927,7 +927,7 @@
     SetGrayscale16Pixel(image, 4, 0, 255);
 
     {
-      Image target(PixelFormat_Grayscale16, 6, 1, false);
+      Image target(PixelFormat_Grayscale16, 5, 1, false);
       ImageProcessing::ApplyWindowing(target, image, 5.0f, 10.0f, 1.0f, 0.0f, false);
 
       ASSERT_TRUE(TestGrayscale16Pixel(target, 0, 0, 0));