diff --git a/Testing/Code/Common/CMakeLists.txt b/Testing/Code/Common/CMakeLists.txt
index 74104c57a544a9cce33e03e12aba60ce8e3c5e4a..af3dcae59dc9a74cc80c73827d6958e2d11817da 100644
--- a/Testing/Code/Common/CMakeLists.txt
+++ b/Testing/Code/Common/CMakeLists.txt
@@ -469,11 +469,11 @@ otbUnaryFunctorNeighborhoodImageFilterNew
 
 ADD_TEST(coTvUnaryFunctorNeighborhoodImageFilter ${COMMON_TESTS6}
 --compare-image ${TOL}
-		${BASELINE}/coTvUnaryFunctorNeighborhoodImageFilter.tif
-		${TEMP}/coTvUnaryFunctorNeighborhoodImageFilter.tif
+		${BASELINE}/coTvUnaryFunctorNeighborhoodImageFilter.png
+		${TEMP}/coTvUnaryFunctorNeighborhoodImageFilter.png
     otbUnaryFunctorNeighborhoodImageFilter
-        ${INPUTDATA}/poupees_sub.png
-	${TEMP}/coTvUnaryFunctorNeighborhoodImageFilter.tif
+        ${INPUTDATA}/amst.png
+	${TEMP}/coTvUnaryFunctorNeighborhoodImageFilter.png
 	3
 )
 
diff --git a/Testing/Code/Common/otbUnaryFunctorNeighborhoodImageFilter.cxx b/Testing/Code/Common/otbUnaryFunctorNeighborhoodImageFilter.cxx
index 0004555d567e48e92efae5a102f289dc2e030b4a..66dc7fea650211b2e045ffa4fe09971af32bef5e 100644
--- a/Testing/Code/Common/otbUnaryFunctorNeighborhoodImageFilter.cxx
+++ b/Testing/Code/Common/otbUnaryFunctorNeighborhoodImageFilter.cxx
@@ -46,7 +46,7 @@ int otbUnaryFunctorNeighborhoodImageFilter(int argc, char * argv[])
   const char * inputFileName  = argv[1];
   const char * outputFileName = argv[2];
   
-  typedef double InputPixelType;
+  typedef unsigned char InputPixelType;
   const int Dimension = 2;
   typedef otb::Image<InputPixelType,Dimension> ImageType;
   typedef ImageType::PixelType PixelType;