Commit 883df604 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: use baseline of size 50x50 because size 100x100 causes overflow problems...

BUG: use baseline of size 50x50 because size 100x100 causes overflow problems (both in reading and writing)
parent 6aca6c3e
......@@ -1011,47 +1011,28 @@ foreach(INPUTFILE_PIXELTYPE ${INPUTFILE_PIXELTYPES_LIST})
# otbMultibandComplexToImageScalar${READING_PIXELTYPE}
# ${INPUTDATA}/multibandComplex${INPUTFILE_PIXELTYPE}_${NBBANDS}bands.tif) #hdr)
# Size: 100x100 is to large to store pixel values coded as short.
if( NOT ${INPUTFILE_PIXELTYPE} MATCHES "Short" )
# Use Size 50x50 because 100x100 is to large to store pixel values coded as short.
otb_add_test(NAME ioTvMultibandComplex${INPUTFILE_PIXELTYPE}${NBBANDS}BandsToVectorImageScalar${READING_PIXELTYPE}
COMMAND otbImageIOTestDriver
otbMultibandComplexToVectorImageScalar${READING_PIXELTYPE}
${INPUTDATA}/multibandComplex${INPUTFILE_PIXELTYPE}_${NBBANDS}bands.tif) #hdr)
else()
otb_add_test(NAME ioTvMultibandComplex${INPUTFILE_PIXELTYPE}${NBBANDS}BandsToVectorImageScalar${READING_PIXELTYPE}
COMMAND otbImageIOTestDriver
otbMultibandComplexToVectorImageScalar${READING_PIXELTYPE}
${INPUTDATA}/multibandComplex${INPUTFILE_PIXELTYPE}_${NBBANDS}bands_50x50.tif) #hdr)
endif()
otb_add_test(NAME ioTvMultibandComplex${INPUTFILE_PIXELTYPE}${NBBANDS}BandsToVectorImageScalar${READING_PIXELTYPE}
COMMAND otbImageIOTestDriver
otbMultibandComplexToVectorImageScalar${READING_PIXELTYPE}
${INPUTDATA}/multibandComplex${INPUTFILE_PIXELTYPE}_${NBBANDS}bands_50x50.tif) #hdr)
# Weird case : need specifications to write the test
# [missing impl]
# otb_add_test(NAME ioTvMultibandComplex${INPUTFILE_PIXELTYPE}${NBBANDS}BandsToImageComplex${READING_PIXELTYPE})
# Size: 100x100 is to large to store pixel values coded as short.
if( NOT ${INPUTFILE_PIXELTYPE} MATCHES "Short" )
otb_add_test(NAME ioTvMultibandComplex${INPUTFILE_PIXELTYPE}${NBBANDS}BandsToVectorImageComplex${READING_PIXELTYPE}
COMMAND otbImageIOTestDriver
otbMultibandComplexToVectorImageComplex${READING_PIXELTYPE}
${INPUTDATA}/multibandComplex${INPUTFILE_PIXELTYPE}_${NBBANDS}bands.tif) #hdr)
else()
# Use Size 50x50 because 100x100 is to large to store pixel values coded as short.
otb_add_test(NAME ioTvMultibandComplex${INPUTFILE_PIXELTYPE}${NBBANDS}BandsToVectorImageComplex${READING_PIXELTYPE}
COMMAND otbImageIOTestDriver
otbMultibandComplexToVectorImageComplex${READING_PIXELTYPE}
${INPUTDATA}/multibandComplex${INPUTFILE_PIXELTYPE}_${NBBANDS}bands_50x50.tif) #hdr)
endif()
otb_add_test(NAME ioTvMultibandComplex${INPUTFILE_PIXELTYPE}${NBBANDS}BandsToVectorImageComplex${READING_PIXELTYPE}
COMMAND otbImageIOTestDriver
otbMultibandComplexToVectorImageComplex${READING_PIXELTYPE}
${INPUTDATA}/multibandComplex${INPUTFILE_PIXELTYPE}_${NBBANDS}bands_50x50.tif) #hdr)
endforeach()
endforeach()
endforeach()
......@@ -1083,55 +1064,29 @@ foreach(DATA_PIXELTYPE ${DATA_PIXELTYPES_LIST})
)
foreach(NBBANDS ${NBBANDS_LIST})
if( NOT ${DATA_PIXELTYPE} MATCHES "Short" )
otb_add_test(NAME ioTvWriteVectorImageScalar${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multiband${DATA_PIXELTYPE}_${NBBANDS}bands.tif
${TEMP}/multibandOut${DATA_PIXELTYPE}_${NBBANDS}bands.tif
otbVectorImageFileWriterScalarTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandOut${DATA_PIXELTYPE}_${NBBANDS}bands.tif
100
${NBBANDS}
)
otb_add_test(NAME ioTvWriteVectorImageComplex${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multibandComplex${DATA_PIXELTYPE}_${NBBANDS}bands.tif
${TEMP}/multibandComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands.tif
otbVectorImageFileWriterComplexTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands.tif
100
${NBBANDS}
)
else()
otb_add_test(NAME ioTvWriteVectorImageScalar${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multiband${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
${TEMP}/multibandOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
otbVectorImageFileWriterScalarTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
50
${NBBANDS}
)
otb_add_test(NAME ioTvWriteVectorImageComplex${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multibandComplex${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
${TEMP}/multibandComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
otbVectorImageFileWriterComplexTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
50
${NBBANDS}
)
endif()
otb_add_test(NAME ioTvWriteVectorImageScalar${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multiband${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
${TEMP}/multibandOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
otbVectorImageFileWriterScalarTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
50
${NBBANDS}
)
otb_add_test(NAME ioTvWriteVectorImageComplex${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multibandComplex${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
${TEMP}/multibandComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
otbVectorImageFileWriterComplexTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
50
${NBBANDS}
)
endforeach()
############
......@@ -1157,55 +1112,28 @@ foreach(DATA_PIXELTYPE ${DATA_PIXELTYPES_LIST})
)
foreach(NBBANDS ${NBBANDS_LIST})
if( NOT ${DATA_PIXELTYPE} MATCHES "Short" )
otb_add_test(NAME ioTvStreamingWriteVectorImageScalar${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multiband${DATA_PIXELTYPE}_${NBBANDS}bands.tif
${TEMP}/multibandStrOut${DATA_PIXELTYPE}_${NBBANDS}bands.tif
otbVectorImageStreamingFileWriterScalarTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandStrOut${DATA_PIXELTYPE}_${NBBANDS}bands.tif
100
${NBBANDS}
)
otb_add_test(NAME ioTvStreamingWriteVectorImageComplex${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multibandComplex${DATA_PIXELTYPE}_${NBBANDS}bands.tif
${TEMP}/multibandStrComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands.tif
otbVectorImageStreamingFileWriterComplexTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandStrComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands.tif
100
${NBBANDS}
)
else()
otb_add_test(NAME ioTvStreamingWriteVectorImageScalar${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multiband${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
${TEMP}/multibandStrOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
otbVectorImageStreamingFileWriterScalarTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandStrOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
50
${NBBANDS}
)
otb_add_test(NAME ioTvStreamingWriteVectorImageComplex${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multibandComplex${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
${TEMP}/multibandStrComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
otbVectorImageStreamingFileWriterComplexTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandStrComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
50
${NBBANDS}
)
endif()
otb_add_test(NAME ioTvStreamingWriteVectorImageScalar${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multiband${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
${TEMP}/multibandStrOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
otbVectorImageStreamingFileWriterScalarTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandStrOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
50
${NBBANDS}
)
otb_add_test(NAME ioTvStreamingWriteVectorImageComplex${DATA_PIXELTYPE}${NBBANDS}Bands
COMMAND otbImageIOTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/multibandComplex${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
${TEMP}/multibandStrComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
otbVectorImageStreamingFileWriterComplexTestWithoutInput${DATA_PIXELTYPE}
${TEMP}/multibandStrComplexOut${DATA_PIXELTYPE}_${NBBANDS}bands_50x50.tif
50
${NBBANDS}
)
endforeach()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment