Skip to content
Snippets Groups Projects
Commit 3cf7661a authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Changing precision and input image to avoid precision loss.

parent 696c8a00
No related branches found
No related tags found
No related merge requests found
...@@ -469,11 +469,11 @@ otbUnaryFunctorNeighborhoodImageFilterNew ...@@ -469,11 +469,11 @@ otbUnaryFunctorNeighborhoodImageFilterNew
ADD_TEST(coTvUnaryFunctorNeighborhoodImageFilter ${COMMON_TESTS6} ADD_TEST(coTvUnaryFunctorNeighborhoodImageFilter ${COMMON_TESTS6}
--compare-image ${TOL} --compare-image ${TOL}
${BASELINE}/coTvUnaryFunctorNeighborhoodImageFilter.tif ${BASELINE}/coTvUnaryFunctorNeighborhoodImageFilter.png
${TEMP}/coTvUnaryFunctorNeighborhoodImageFilter.tif ${TEMP}/coTvUnaryFunctorNeighborhoodImageFilter.png
otbUnaryFunctorNeighborhoodImageFilter otbUnaryFunctorNeighborhoodImageFilter
${INPUTDATA}/poupees_sub.png ${INPUTDATA}/amst.png
${TEMP}/coTvUnaryFunctorNeighborhoodImageFilter.tif ${TEMP}/coTvUnaryFunctorNeighborhoodImageFilter.png
3 3
) )
......
...@@ -46,7 +46,7 @@ int otbUnaryFunctorNeighborhoodImageFilter(int argc, char * argv[]) ...@@ -46,7 +46,7 @@ int otbUnaryFunctorNeighborhoodImageFilter(int argc, char * argv[])
const char * inputFileName = argv[1]; const char * inputFileName = argv[1];
const char * outputFileName = argv[2]; const char * outputFileName = argv[2];
typedef double InputPixelType; typedef unsigned char InputPixelType;
const int Dimension = 2; const int Dimension = 2;
typedef otb::Image<InputPixelType,Dimension> ImageType; typedef otb::Image<InputPixelType,Dimension> ImageType;
typedef ImageType::PixelType PixelType; typedef ImageType::PixelType PixelType;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment