changeset 3366:7a4d586caf2d

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 13 May 2019 16:04:45 +0200
parents 9345710bbf12
children b0b5852622e4
files UnitTestsSources/ImageProcessingTests.cpp
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/UnitTestsSources/ImageProcessingTests.cpp	Mon May 13 14:50:24 2019 +0200
+++ b/UnitTestsSources/ImageProcessingTests.cpp	Mon May 13 16:04:45 2019 +0200
@@ -38,6 +38,7 @@
 #include "../Core/Images/Image.h"
 #include "../Core/Images/ImageProcessing.h"
 #include "../Core/Images/ImageTraits.h"
+#include "../Core/OrthancException.h"
 
 #include <memory>
 
@@ -224,7 +225,7 @@
   ASSERT_FLOAT_EQ(255, TestFixture::ImageTraits::GetFloatPixel(image, 2, 4));
 }
 
-TYPED_TEST(TestIntegerImageTraits, FillPolygonLargerThandImage)
+TYPED_TEST(TestIntegerImageTraits, FillPolygonLargerThanImage)
 {
   ImageAccessor& image = this->GetImage();
 
@@ -237,10 +238,6 @@
   points.push_back(ImageProcessing::ImagePoint(0,image.GetHeight()));
 
   ASSERT_THROW(Orthanc::ImageProcessing::FillPolygon(image, points, 255), Orthanc::OrthancException);
-
-  // inside polygon (note: we don't test too close from the edges since the current algo is taking some margin from the edges and might be improved in that sense)
-  ASSERT_FLOAT_EQ(255, TestFixture::ImageTraits::GetFloatPixel(image, 0, 0));
-  ASSERT_FLOAT_EQ(255, TestFixture::ImageTraits::GetFloatPixel(image, image.GetWidth()-1, 0));
 }
 
 TYPED_TEST(TestIntegerImageTraits, FillPolygonFullImage)