Commit 5e8623f0 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

TEST: Adding PALSAR reader test (to illustrate bug # 54)

parent 3d2297ed
......@@ -7,7 +7,7 @@ SET(BASELINE_FILES ${OTB_DATA_ROOT}/Baseline/OTB/Files)
SET(INPUTDATA ${OTB_DATA_ROOT}/Input)
#Remote sensing images (large images )
IF(OTB_DATA_USE_LARGEINPUT)
SET(IMAGEDATA ${OTB_DATA_LARGEINPUT_ROOT} )
SET(LARGEDATA ${OTB_DATA_LARGEINPUT_ROOT} )
ENDIF(OTB_DATA_USE_LARGEINPUT)
SET(TEMP ${OTBTesting_BINARY_DIR}/Temporary)
......@@ -42,21 +42,21 @@ SET(IO_TESTS14 ${CXX_TEST_PATH}/otbIOTests14)
SET(IO_TESTS15 ${CXX_TEST_PATH}/otbIOTests15)
SET(IO_TESTS16 ${CXX_TEST_PATH}/otbIOTests16)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ COMMON_TESTS3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IF(OTB_DATA_USE_LARGEINPUT)
# --- RADARSAT (GDAL) ---
ADD_TEST(ioTvMultiMonoChannelROI_RADARSAT2ENVI ${COMMON_TESTS3}
ADD_TEST(ioTvMultiMonoChannelROI_RADARSAT2ENVI ${COMMON_TESTS3}
otbMultiToMonoChannelExtractROI
-ushort ${IMAGEDATA}/RADARSAT1/SCENE01/
-ushort ${LARGEDATA}/RADARSAT1/SCENE01/
-ushort ${TEMP}/ioMultiMonoChannelROI_RADARSAT2ENVI_2559_3591_337_280.hdr
-startX 2559 -startY 3591 -sizeX 337 -sizeY 280 )
# --- RADARSAT (GDAL) Nom r�pertoire ---
ADD_TEST(ioTvMultiMonoChannelROI_RADARSAT_ENVI2ENVI ${COMMON_TESTS3}
ADD_TEST(ioTvMultiMonoChannelROI_RADARSAT_ENVI2ENVI ${COMMON_TESTS3}
# THOMAS (provisoire) : Images OK mais erreur au DIFF ITK !!!
# --compare-image ${TOL} ${BASELINE}/ioMultiMonoChannelROI_RADARSAT2ENVI_2559_3591_337_280.hdr
# ${TEMP}/ioMultiMonoChannelROI_RADARSAT_ENVI2ENVI_2559_3591_337_280_2.hdr
......@@ -67,7 +67,7 @@ ADD_TEST(ioTvMultiMonoChannelROI_RADARSAT_ENVI2ENVI ${COMMON_TESTS3}
ENDIF(OTB_DATA_USE_LARGEINPUT)
# --- ENVI (GDAL) ---
ADD_TEST(ioTvMultiMonoChannelROI_ENVI2PNG ${COMMON_TESTS3}
ADD_TEST(ioTvMultiMonoChannelROI_ENVI2PNG ${COMMON_TESTS3}
--compare-image ${TOL} ${BASELINE}/ioMultiMonoChannelROI_ENVI2PNG_poupees_1canal_302_2_134_330.png
${TEMP}/ioMultiMonoChannelROI_ENVI2PNG_poupees_1canal_302_2_134_330.png
otbMultiToMonoChannelExtractROI
......@@ -77,26 +77,33 @@ ADD_TEST(ioTvMultiMonoChannelROI_ENVI2PNG ${COMMON_TESTS3}
-channel 1)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbIOTests1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IF(OTB_DATA_USE_LARGEINPUT)
# --- SAR_ERS2_SLCI (GDAL) ---
ADD_TEST(ioTvImageFileReaderERS ${IO_TESTS1}
# --compare-image ${TOL} ${BASELINE}/ioImageFileReaderERS_SLCI.png
# ${TEMP}/ioImageFileReaderERS_SLCI.png
ADD_TEST(ioTvImageFileReaderERS ${IO_TESTS1}
--compare-image ${TOL} ${BASELINE}/ioImageFileReaderERS_SLCI.tif
${TEMP}/ioImageFileReaderERS_SLCI.tif
otbImageFileReaderERS
${IMAGEDATA}/SAR_ERS2_SLCI_SCENE1/
${TEMP}/ioImageFileReaderERS_SLCI.png)
${LARGEDATA}/SAR_ERS2_SLCI_SCENE1/
${TEMP}/ioImageFileReaderERS_SLCI.tif)
ADD_TEST(ioTvImageFileReaderRADARSAT ${IO_TESTS1}
ADD_TEST(ioTvImageFileReaderRADARSAT ${IO_TESTS1}
--compare-image ${TOL} ${BASELINE}/ioImageFileReaderRADARSAT.png
${TEMP}/ioImageFileReaderRADARSAT.png
otbImageFileReaderERS
${IMAGEDATA}/RADARSAT1/SCENE01/
${LARGEDATA}/RADARSAT1/SCENE01/
${TEMP}/ioImageFileReaderRADARSAT.png)
ADD_TEST(ioTvImageFileReaderPALSAR ${IO_TESTS1}
--compare-image ${TOL} ${BASELINE}/ioImageFileReaderPALSAR_l1.1.tif
${TEMP}/ioImageFileReaderPALSAR_l1.1.tif
otbImageFileReaderERS
${LARGEDATA}/PALSAR/200801280007/l1data/VOL-ALPSRP037120700-H1.1__A
${TEMP}/ioImageFileReaderPALSAR_l1.1.tif)
ENDIF(OTB_DATA_USE_LARGEINPUT)
# ------- TEST IO COMMON ------------------------------
......@@ -111,50 +118,50 @@ ADD_TEST(ioTuLUMImageIOCanRead ${IO_TESTS1} otbLUMImageIOTestCanRead
ADD_TEST(ioTuLUMImageIOCanWrite ${IO_TESTS1} otbLUMImageIOTestCanWrite
${TEMP}/poupees.lum)
ADD_TEST(ioTvImageFileReaderHDR2LUM ${IO_TESTS1}
ADD_TEST(ioTvImageFileReaderHDR2LUM ${IO_TESTS1}
--compare-image ${TOL} ${INPUTDATA}/poupees_1canal.c1.hdr
${TEMP}/ioImageFileReaderHDR2LUM.lum
otbImageFileReaderTest
${INPUTDATA}/poupees_1canal.c1.hdr
${INPUTDATA}/poupees_1canal.c1.hdr
${TEMP}/ioImageFileReaderHDR2LUM.lum )
ADD_TEST(ioTvImageFileReaderPNG2LUM ${IO_TESTS1}
ADD_TEST(ioTvImageFileReaderPNG2LUM ${IO_TESTS1}
--compare-image ${TOL} ${INPUTDATA}/cthead1.png
${TEMP}/ioImageFileReaderPNG2LUM.lum
otbImageFileReaderTest
${INPUTDATA}/cthead1.png
${INPUTDATA}/cthead1.png
${TEMP}/ioImageFileReaderPNG2LUM.lum )
ADD_TEST(ioTvImageFileReaderLUM2LUM ${IO_TESTS1}
ADD_TEST(ioTvImageFileReaderLUM2LUM ${IO_TESTS1}
--compare-image ${TOL} ${TEMP}/ioImageFileReaderPNG2LUM.lum
${TEMP}/ioImageFileReaderLUM2LUM.lum
otbImageFileReaderTest
${TEMP}/ioImageFileReaderPNG2LUM.lum
${TEMP}/ioImageFileReaderPNG2LUM.lum
${TEMP}/ioImageFileReaderLUM2LUM.lum )
ADD_TEST(ioTvImageFileWriterLUM2HDR ${IO_TESTS1}
ADD_TEST(ioTvImageFileWriterLUM2HDR ${IO_TESTS1}
--compare-image ${TOL} ${INPUTDATA}/cthead1.png
${TEMP}/ioImageFileReaderLUM2HDR.hdr
otbImageFileReaderTest
${TEMP}/ioImageFileReaderLUM2LUM.lum
${TEMP}/ioImageFileReaderLUM2LUM.lum
${TEMP}/ioImageFileReaderLUM2HDR.hdr )
# --- Image I2
ADD_TEST(ioTvImageFileReaderShortLUM2HDR ${IO_TESTS1}
ADD_TEST(ioTvImageFileReaderShortLUM2HDR ${IO_TESTS1}
--compare-image ${TOL} ${INPUTDATA}/poupees_I2.lum
${TEMP}/ioImageFileReaderI2_LUM2HDR.hdr
otbShortImageIOTest
${INPUTDATA}/poupees_I2.lum
${TEMP}/ioImageFileReaderI2_LUM2HDR.hdr )
ADD_TEST(ioTvImageFileReaderShortHDR2LUM ${IO_TESTS1}
ADD_TEST(ioTvImageFileReaderShortHDR2LUM ${IO_TESTS1}
--compare-image ${TOL} ${INPUTDATA}/poupees_I2.lum
${TEMP}/ioImageFileReaderI2_HDR2LUM.lum
otbShortImageIOTest
${TEMP}/ioImageFileReaderI2_LUM2HDR.hdr
${TEMP}/ioImageFileReaderI2_HDR2LUM.lum )
ADD_TEST(ioTvImageFileReaderShortLUM2LUM ${IO_TESTS1}
ADD_TEST(ioTvImageFileReaderShortLUM2LUM ${IO_TESTS1}
--compare-image ${TOL} ${INPUTDATA}/poupees_I2.lum
${TEMP}/ioImageFileReaderI2_LUM2LUM.lum
otbShortImageIOTest
......@@ -168,47 +175,47 @@ ADD_TEST(ioTuMWImageIOCanReadIMG ${IO_TESTS1} otbMWImageIOTestCanRead
ADD_TEST(ioTuMWImageIOCanReadMW ${IO_TESTS1} otbMWImageIOTestCanRead
${BASELINE}/QB_Toulouse_Ortho_PAN.mw)
ADD_TEST(ioTvImageFileReaderMW2TIFIMG ${IO_TESTS1}
ADD_TEST(ioTvImageFileReaderMW2TIFIMG ${IO_TESTS1}
--compare-image ${TOL} ${BASELINE}/QB_Toulouse_Ortho_PAN.img
${TEMP}/ioImageFileReaderMW2TIF.tif
otbImageFileReaderTestFloat
${INPUTDATA}/QB_Toulouse_Ortho_PAN.tif
${TEMP}/ioImageFileReaderMW2TIF.tif )
${TEMP}/ioImageFileReaderMW2TIF.tif )
ADD_TEST(ioTvImageFileReaderMW2TIFMW ${IO_TESTS1}
ADD_TEST(ioTvImageFileReaderMW2TIFMW ${IO_TESTS1}
--compare-image ${TOL} ${BASELINE}/QB_Toulouse_Ortho_PAN.mw
${TEMP}/ioImageFileReaderMW2TIF.tif
otbImageFileReaderTestFloat
${INPUTDATA}/QB_Toulouse_Ortho_PAN.tif
${TEMP}/ioImageFileReaderMW2TIF.tif )
${TEMP}/ioImageFileReaderMW2TIF.tif )
# CanWrite()
ADD_TEST(ioTuMWImageIOCanWrite ${IO_TESTS1} otbMWImageIOTestCanWrite
${TEMP}/QB_Toulouse_Ortho_PAN.mw)
ADD_TEST(ioTvImageFileReaderTIF2MW ${IO_TESTS1}
ADD_TEST(ioTvImageFileReaderTIF2MW ${IO_TESTS1}
--compare-image ${TOL} ${INPUTDATA}/QB_Toulouse_Ortho_PAN.tif
${TEMP}/ioImageFileReaderTIF2MW.mw
otbImageFileReaderTestFloat
${BASELINE}/QB_Toulouse_Ortho_PAN.mw
${TEMP}/ioImageFileReaderTIF2MW.mw )
${TEMP}/ioImageFileReaderTIF2MW.mw )
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbIOTests2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# --- Image I4
ADD_TEST(ioTvImageFileReaderIntLUM2HDR ${IO_TESTS2}
ADD_TEST(ioTvImageFileReaderIntLUM2HDR ${IO_TESTS2}
--compare-image ${TOL} ${INPUTDATA}/poupees_I4.lum
${TEMP}/ioImageFileReaderI4_LUM2HDR.hdr
otbIntImageIOTest
${INPUTDATA}/poupees_I4.lum
${TEMP}/ioImageFileReaderI4_LUM2HDR.hdr )
ADD_TEST(ioTvImageFileReaderIntHDR2LUM ${IO_TESTS2}
ADD_TEST(ioTvImageFileReaderIntHDR2LUM ${IO_TESTS2}
--compare-image ${TOL} ${INPUTDATA}/poupees_I4.lum
${TEMP}/ioImageFileReaderI4_HDR2LUM.lum
otbIntImageIOTest
......@@ -216,13 +223,13 @@ ADD_TEST(ioTvImageFileReaderIntHDR2LUM ${IO_TESTS2}
${TEMP}/ioImageFileReaderI4_HDR2LUM.lum )
# --- Image FLOAT
ADD_TEST(ioTvImageFileReaderFloatLUM2HDR ${IO_TESTS2}
ADD_TEST(ioTvImageFileReaderFloatLUM2HDR ${IO_TESTS2}
--compare-image ${TOL} ${INPUTDATA}/poupees_R4.lum
${TEMP}/ioImageFileReaderR4_LUM2HDR.hdr
otbFloatImageIOTest
${INPUTDATA}/poupees_R4.lum
${TEMP}/ioImageFileReaderR4_LUM2HDR.hdr )
ADD_TEST(ioTvImageFileReaderFloatHDR2LUM ${IO_TESTS2}
ADD_TEST(ioTvImageFileReaderFloatHDR2LUM ${IO_TESTS2}
--compare-image ${TOL} ${INPUTDATA}/poupees_R4.lum
${TEMP}/ioImageFileReaderR4_HDR2LUM.lum
otbFloatImageIOTest
......@@ -230,13 +237,13 @@ ADD_TEST(ioTvImageFileReaderFloatHDR2LUM ${IO_TESTS2}
${TEMP}/ioImageFileReaderR4_HDR2LUM.lum )
# --- Image DOUBLE
ADD_TEST(ioTvImageFileReaderDoubleLUM2HDR ${IO_TESTS2}
ADD_TEST(ioTvImageFileReaderDoubleLUM2HDR ${IO_TESTS2}
--compare-image ${TOL} ${INPUTDATA}/poupees_R8.lum
${TEMP}/ioImageFileReaderR8_LUM2HDR.hdr
otbDoubleImageIOTest
${INPUTDATA}/poupees_R8.lum
${TEMP}/ioImageFileReaderR8_LUM2HDR.hdr )
ADD_TEST(ioTvImageFileReaderDoubleHDR2LUM ${IO_TESTS2}
ADD_TEST(ioTvImageFileReaderDoubleHDR2LUM ${IO_TESTS2}
--compare-image ${TOL} ${INPUTDATA}/poupees_R8.lum
${TEMP}/ioImageFileReaderR8_HDR2LUM.lum
otbDoubleImageIOTest
......@@ -246,16 +253,16 @@ ADD_TEST(ioTvImageFileReaderDoubleHDR2LUM ${IO_TESTS2}
ADD_TEST(ioTvImageFileReaderFloatPNG2LUM ${IO_TESTS2}
ADD_TEST(ioTvImageFileReaderFloatPNG2LUM ${IO_TESTS2}
--compare-image ${TOL} ${INPUTDATA}/cthead1.png
${TEMP}/ioImageFileReaderFloatPNG2LUM.lum
otbFloatImageIOTest
${INPUTDATA}/cthead1.png
${INPUTDATA}/cthead1.png
${TEMP}/ioImageFileReaderFloatPNG2LUM.lum )
# --- STREAMING : LUM ---
ADD_TEST(ioTvStreamingImageFilterLUM2PNG ${IO_TESTS2}
ADD_TEST(ioTvStreamingImageFilterLUM2PNG ${IO_TESTS2}
--compare-image ${TOL} ${TEMP}/ioImageFileReaderPNG2LUM.lum
${TEMP}/ioStreamingImageFilterTestLUM.png
otbStreamingImageFilterTest
......@@ -264,7 +271,7 @@ ADD_TEST(ioTvStreamingImageFilterLUM2PNG ${IO_TESTS2}
)
# --- LUM STREAMING IMAGE FILE WRITER ---
ADD_TEST(ioTvStreamingIFWriterLUMWithoutStreaming ${IO_TESTS2}
ADD_TEST(ioTvStreamingIFWriterLUMWithoutStreaming ${IO_TESTS2}
--compare-image ${TOL} ${TEMP}/ioImageFileReaderPNG2LUM.lum
${TEMP}/ioStreamingImageFileWriterLUM2LUMWithoutStreaming.lum
otbStreamingImageFileWriterTest
......@@ -273,7 +280,7 @@ ADD_TEST(ioTvStreamingIFWriterLUMWithoutStreaming ${IO_TESTS2}
0 # Streaming
)
# --- LUM STREAMING IMAGE FILE WRITER ---
ADD_TEST(ioTvStreamingIFWriterLUMWithStreaming ${IO_TESTS2}
ADD_TEST(ioTvStreamingIFWriterLUMWithStreaming ${IO_TESTS2}
--compare-image ${TOL} ${TEMP}/ioImageFileReaderPNG2LUM.lum
${TEMP}/ioStreamingImageFileWriterLUM2LUMWithStreaming_10.lum
otbStreamingImageFileWriterTest
......@@ -284,16 +291,16 @@ ADD_TEST(ioTvStreamingIFWriterLUMWithStreaming ${IO_TESTS2}
)
# --- STREAMING Pipeline Example ---
ADD_TEST(ioTvStreamingPipeline_TIF2PNG ${IO_TESTS2}
ADD_TEST(ioTvStreamingPipeline_TIF2PNG ${IO_TESTS2}
otbPipeline
${INPUTDATA}/cthead1.png #ROI_IKO_PAN_LesHalles.tif
${TEMP}/ioPipeline.png
)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbIOTests3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ------- otb::BSQImageIO ------------------------------
# CanRead()
......@@ -304,50 +311,50 @@ ADD_TEST(ioTuBSQImageIOCanRead ${IO_TESTS3} otbBSQImageIOTestCanRead
ADD_TEST(ioTuBSQImageIOCanWrite ${IO_TESTS3} otbBSQImageIOTestCanWrite
${TEMP}/poupees.hd)
ADD_TEST(ioTvImageFileReaderPNG2BSQ ${IO_TESTS3}
ADD_TEST(ioTvImageFileReaderPNG2BSQ ${IO_TESTS3}
--compare-image ${TOL} ${INPUTDATA}/cthead1.png
${TEMP}/ioImageFileReaderPNG2BSQ.hd
otbImageFileReaderTest
${INPUTDATA}/cthead1.png
${INPUTDATA}/cthead1.png
${TEMP}/ioImageFileReaderPNG2BSQ.hd )
ADD_TEST(ioTvImageFileReaderPNG2ENVI ${IO_TESTS3}
ADD_TEST(ioTvImageFileReaderPNG2ENVI ${IO_TESTS3}
--compare-image ${TOL} ${TEMP}/ioImageFileReaderPNG2BSQ.hd
${TEMP}/ioImageFileReaderPNG2ENVI.hdr
otbImageFileReaderTest
${INPUTDATA}/cthead1.png
${INPUTDATA}/cthead1.png
${TEMP}/ioImageFileReaderPNG2ENVI.hdr )
ADD_TEST(ioTvImageFileReaderBSQ2PNG ${IO_TESTS3}
ADD_TEST(ioTvImageFileReaderBSQ2PNG ${IO_TESTS3}
--compare-image ${TOL} ${INPUTDATA}/poupees_1canal.hd
${TEMP}/ioImageFileReaderBSQ2PNG.png
otbImageFileReaderTest
${INPUTDATA}/poupees_1canal.hd
${INPUTDATA}/poupees_1canal.hd
${TEMP}/ioImageFileReaderBSQ2PNG.png )
ADD_TEST(ioTvImageFileReaderRGB_PNG2BSQ ${IO_TESTS3}
ADD_TEST(ioTvImageFileReaderRGB_PNG2BSQ ${IO_TESTS3}
--compare-image ${TOL} ${INPUTDATA}/sbuv.png
${TEMP}/ioImageFileReaderRGB_PNG2BSQ.hd
otbImageFileReaderRGBTest
${INPUTDATA}/sbuv.png
${INPUTDATA}/sbuv.png
${TEMP}/ioImageFileReaderRGB_PNG2BSQ.hd )
ADD_TEST(ioTvImageFileReaderRGB_PNG2ENVI ${IO_TESTS3}
ADD_TEST(ioTvImageFileReaderRGB_PNG2ENVI ${IO_TESTS3}
--compare-image ${TOL} ${INPUTDATA}/sbuv.png
${TEMP}/ioImageFileReaderRGB_PNG2ENVI.hdr
otbImageFileReaderRGBTest
${INPUTDATA}/sbuv.png
${INPUTDATA}/sbuv.png
${TEMP}/ioImageFileReaderRGB_PNG2ENVI.hdr )
# --- Image I2
ADD_TEST(ioTvImageFileReaderShortRGB_BSQ2HDR ${IO_TESTS3}
ADD_TEST(ioTvImageFileReaderShortRGB_BSQ2HDR ${IO_TESTS3}
--compare-image ${TOL} ${INPUTDATA}/poupees_I2.hd
${TEMP}/ioImageFileReaderI2_BSQ2HDR.hdr
otbShortRGBImageIOTest
${INPUTDATA}/poupees_I2.hd
${TEMP}/ioImageFileReaderI2_BSQ2HDR.hdr )
ADD_TEST(ioTvImageFileReaderShortHDR2BSQ ${IO_TESTS3}
ADD_TEST(ioTvImageFileReaderShortHDR2BSQ ${IO_TESTS3}
--compare-image ${TOL} ${INPUTDATA}/poupees_I2.hd
${TEMP}/ioImageFileReaderI2_HDR2BSQ.hd
otbShortRGBImageIOTest
......@@ -355,32 +362,32 @@ ADD_TEST(ioTvImageFileReaderShortHDR2BSQ ${IO_TESTS3}
${TEMP}/ioImageFileReaderI2_HDR2BSQ.hd )
# --- Image I4
ADD_TEST(ioTvImageFileReaderIntBSQ2HDR ${IO_TESTS3}
ADD_TEST(ioTvImageFileReaderIntBSQ2HDR ${IO_TESTS3}
--compare-image ${TOL} ${INPUTDATA}/poupees_I4.hd
${TEMP}/ioImageFileReaderI4_BSQ2HDR.hdr
otbIntImageIOTest
${INPUTDATA}/poupees_I4.hd
${TEMP}/ioImageFileReaderI4_BSQ2HDR.hdr )
ADD_TEST(ioTvImageFileReaderIntHDR2BSQ ${IO_TESTS3}
ADD_TEST(ioTvImageFileReaderIntHDR2BSQ ${IO_TESTS3}
--compare-image ${TOL} ${INPUTDATA}/poupees_I4.hd
${TEMP}/ioImageFileReaderI4_HDR2BSQ.hd
otbIntImageIOTest
${TEMP}/ioImageFileReaderI4_BSQ2HDR.hdr
${TEMP}/ioImageFileReaderI4_HDR2BSQ.hd )
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbIOTests4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# --- Image FLOAT
ADD_TEST(ioTvImageFileReaderFloatBSQ2HDR ${IO_TESTS4}
ADD_TEST(ioTvImageFileReaderFloatBSQ2HDR ${IO_TESTS4}
--compare-image ${TOL} ${INPUTDATA}/poupees_R4.hd
${TEMP}/ioImageFileReaderR4_BSQ2HDR.hdr
otbFloatImageIOTest
${INPUTDATA}/poupees_R4.hd
${TEMP}/ioImageFileReaderR4_BSQ2HDR.hdr )
ADD_TEST(ioTvImageFileReaderFloatHDR2BSQ ${IO_TESTS4}
ADD_TEST(ioTvImageFileReaderFloatHDR2BSQ ${IO_TESTS4}
--compare-image ${TOL} ${INPUTDATA}/poupees_R4.hd
${TEMP}/ioImageFileReaderR4_HDR2BSQ.hd
otbFloatImageIOTest
......@@ -388,13 +395,13 @@ ADD_TEST(ioTvImageFileReaderFloatHDR2BSQ ${IO_TESTS4}
${TEMP}/ioImageFileReaderR4_HDR2BSQ.hd )
# --- Image DOUBLE
ADD_TEST(ioTvImageFileReaderDoubleBSQ2HDR ${IO_TESTS4}
ADD_TEST(ioTvImageFileReaderDoubleBSQ2HDR ${IO_TESTS4}
--compare-image ${TOL} ${INPUTDATA}/poupees_R8.hd
${TEMP}/ioImageFileReaderR8_BSQ2HDR.hdr
otbDoubleImageIOTest
${INPUTDATA}/poupees_R8.hd
${TEMP}/ioImageFileReaderR8_BSQ2HDR.hdr )
ADD_TEST(ioTvImageFileReaderDoubleHDR2BSQ ${IO_TESTS4}
ADD_TEST(ioTvImageFileReaderDoubleHDR2BSQ ${IO_TESTS4}
--compare-image ${TOL} ${INPUTDATA}/poupees_R8.hd
${TEMP}/ioImageFileReaderR8_HDR2BSQ.hd
otbDoubleImageIOTest
......@@ -403,7 +410,7 @@ ADD_TEST(ioTvImageFileReaderDoubleHDR2BSQ ${IO_TESTS4}
# --- STREAMING FILTER : BSQ ---
ADD_TEST(ioTvStreamingImageFilterBSQ2PNG ${IO_TESTS4}
ADD_TEST(ioTvStreamingImageFilterBSQ2PNG ${IO_TESTS4}
--compare-image ${TOL} ${TEMP}/ioImageFileReaderPNG2BSQ.hd
${TEMP}/ioStreamingImageFilterTestBSQ.png
otbStreamingImageFilterTest
......@@ -412,7 +419,7 @@ ADD_TEST(ioTvStreamingImageFilterBSQ2PNG ${IO_TESTS4}
)
# --- BSQ STREAMING IMAGE FILE WRITER ---
ADD_TEST(ioTvStreamingIFWriterBSQWithoutStreaming ${IO_TESTS4}
ADD_TEST(ioTvStreamingIFWriterBSQWithoutStreaming ${IO_TESTS4}
--compare-image ${TOL} ${TEMP}/ioImageFileReaderPNG2BSQ.hd
${TEMP}/ioStreamingImageFileWriterBSQ2BSQWithoutStreaming.hd
otbStreamingImageFileWriterTest
......@@ -421,7 +428,7 @@ ADD_TEST(ioTvStreamingIFWriterBSQWithoutStreaming ${IO_TESTS4}
0 # Streaming
)
# --- BSQ STREAMING IMAGE FILE WRITER ---
ADD_TEST(ioTvStreamingIFWriterBSQWithStreaming ${IO_TESTS4}
ADD_TEST(ioTvStreamingIFWriterBSQWithStreaming ${IO_TESTS4}
--compare-image ${TOL} ${TEMP}/ioImageFileReaderPNG2BSQ.hd
${TEMP}/ioStreamingImageFileWriterBSQ2BSQWithStreaming_10.hd
otbStreamingImageFileWriterTest
......@@ -431,57 +438,57 @@ ADD_TEST(ioTvStreamingIFWriterBSQWithStreaming ${IO_TESTS4}
10
)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbIOTests5 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ------- otb::GDALImageIO ------------------------------
# READER
ADD_TEST(ioTuGDALImageIOCanRead_ENVI ${IO_TESTS5} otbGDALImageIOTestCanRead
ADD_TEST(ioTuGDALImageIOCanRead_ENVI ${IO_TESTS5} otbGDALImageIOTestCanRead
# Filename identification is now set in the ImageFileReader class (Fiche 212)
# ${INPUTDATA}/poupees_1canal.c1.hdr )
${INPUTDATA}/poupees_1canal.c1 )
IF(OTB_DATA_USE_LARGEINPUT)
ADD_TEST(ioTuGDALImageIOCanRead_RADARSAT ${IO_TESTS5} otbGDALImageIOTestCanRead
ADD_TEST(ioTuGDALImageIOCanRead_RADARSAT ${IO_TESTS5} otbGDALImageIOTestCanRead
# Filename identification is now set in the ImageFileReader class (Fiche 212)
# ${IMAGEDATA}/RADARSAT1/SCENE01/ )
${IMAGEDATA}/RADARSAT1/SCENE01/DAT_01.001 )
ADD_TEST(ioTuGDALImageIOCanRead_SAR_ERS2 ${IO_TESTS5} otbGDALImageIOTestCanRead
# ${LARGEDATA}/RADARSAT1/SCENE01/ )
${LARGEDATA}/RADARSAT1/SCENE01/DAT_01.001 )
ADD_TEST(ioTuGDALImageIOCanRead_SAR_ERS2 ${IO_TESTS5} otbGDALImageIOTestCanRead
# Filename identification is now set in the ImageFileReader class (Fiche 212)
# ${IMAGEDATA}/SAR_ERS2_SLCI_SCENE1/ )
${IMAGEDATA}/SAR_ERS2_SLCI_SCENE1/DAT_01.001 )
# ${LARGEDATA}/SAR_ERS2_SLCI_SCENE1/ )
${LARGEDATA}/SAR_ERS2_SLCI_SCENE1/DAT_01.001 )
ADD_TEST(ioTuGDALImageIOCanRead_QUICK_PAN ${IO_TESTS5} otbGDALImageIOTestCanRead
${LARGEDATA}/TOULOUSE/QuickBird/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF )
ADD_TEST(ioTuGDALImageIOCanRead_QUICK_XS ${IO_TESTS5} otbGDALImageIOTestCanRead
${LARGEDATA}/TOULOUSE/QuickBird/000000128955_01_P001_MUL/02APR01105228-M1BS-000000128955_01_P001.TIF )
ADD_TEST(ioTuGDALImageIOCanRead_QUICK_PAN ${IO_TESTS5} otbGDALImageIOTestCanRead
${IMAGEDATA}/TOULOUSE/QuickBird/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF )
ADD_TEST(ioTuGDALImageIOCanRead_IKONOS_PAN ${IO_TESTS5} otbGDALImageIOTestCanRead
${LARGEDATA}/PARIS/Ikonos/po_79039_pan_0000000.tif)
ADD_TEST(ioTuGDALImageIOCanRead_QUICK_XS ${IO_TESTS5} otbGDALImageIOTestCanRead
${IMAGEDATA}/TOULOUSE/QuickBird/000000128955_01_P001_MUL/02APR01105228-M1BS-000000128955_01_P001.TIF )
ADD_TEST(ioTuGDALImageIOCanRead_IKONOS_GRN ${IO_TESTS5} otbGDALImageIOTestCanRead
${LARGEDATA}/PARIS/Ikonos/po_79039_grn_0000000.tif)
ADD_TEST(ioTuGDALImageIOCanRead_IKONOS_PAN ${IO_TESTS5} otbGDALImageIOTestCanRead
${IMAGEDATA}/PARIS/Ikonos/po_79039_pan_0000000.tif)
ADD_TEST(ioTuGDALImageIOCanRead_IKONOS_BLU ${IO_TESTS5} otbGDALImageIOTestCanRead
${LARGEDATA}/PARIS/Ikonos/po_79039_blu_0000000.tif)
ADD_TEST(ioTuGDALImageIOCanRead_IKONOS_GRN ${IO_TESTS5} otbGDALImageIOTestCanRead
${IMAGEDATA}/PARIS/Ikonos/po_79039_grn_0000000.tif)
ADD_TEST(ioTuGDALImageIOCanRead_IKONOS_RED ${IO_TESTS5} otbGDALImageIOTestCanRead
${LARGEDATA}/PARIS/Ikonos/po_79039_red_0000000.tif)
ADD_TEST(ioTuGDALImageIOCanRead_IKONOS_BLU ${IO_TESTS5} otbGDALImageIOTestCanRead
${IMAGEDATA}/PARIS/Ikonos/po_79039_blu_0000000.tif)
ADD_TEST(ioTuGDALImageIOCanRead_IKONOS_RED ${IO_TESTS5} otbGDALImageIOTestCanRead
${IMAGEDATA}/PARIS/Ikonos/po_79039_red_0000000.tif)
ADD_TEST(ioTuGDALImageIOCanRead_IKONOS_NIR ${IO_TESTS5} otbGDALImageIOTestCanRead
${IMAGEDATA}/PARIS/Ikonos/po_79039_nir_0000000.tif)
ADD_TEST(ioTuGDALImageIOCanRead_IKONOS_NIR ${IO_TESTS5} otbGDALImageIOTestCanRead
${LARGEDATA}/PARIS/Ikonos/po_79039_nir_0000000.tif)
ADD_TEST(ioTuGDALImageIOCanRead_SPOT4 ${IO_TESTS5} otbGDALImageIOTestCanRead
# Filename identification is now set in the ImageFileReader class (Fiche 212)
# ${IMAGEDATA}/SPOT4_SCENE01/ )
${IMAGEDATA}/SPOT4_SCENE01/IMAG_01.DAT )
# ${LARGEDATA}/SPOT4_SCENE01/ )
${LARGEDATA}/SPOT4_SCENE01/IMAG_01.DAT )
ENDIF(OTB_DATA_USE_LARGEINPUT)
......@@ -493,9 +500,9 @@ ADD_TEST(ioTuGDALImageIOCanRead_SPOT5TIF ${IO_TESTS5} otbGDALImageIOTestCanRead
ADD_TEST(ioTuGDALImageIOCanRead_HFA ${IO_TESTS5} otbGDALImageIOTestCanRead
${INPUTDATA}/HFAGeoreferenced.img)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbIOTests6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# WRITER
ADD_TEST(ioTuGDALImageIOCanWrite_TIFF ${IO_TESTS6} otbGDALImageIOTestCanWrite
......@@ -509,35 +516,35 @@ ADD_TEST(ioTuGDALImageIOCanWrite_HFA ${IO_TESTS6} otbGDALImageIOTestCanWrite
IF(OTB_DATA_USE_LARGEINPUT)
ADD_TEST(ioTuONERAImageIOCanRead ${IO_TESTS6} otbONERAImageIOTestCanRead
${IMAGEDATA}/ONERA/spa3_0215_rad.ent)
${LARGEDATA}/ONERA/spa3_0215_rad.ent)
ADD_TEST(ioTvONERAImageFileReader ${IO_TESTS6}
ADD_TEST(ioTvONERAImageFileReader ${IO_TESTS6}
--compare-image ${TOL} ${BASELINE}/ioImageFileReaderONERA.hdr
${TEMP}/ioImageFileReaderONERA.hdr
otbImageFileReaderONERATest
${IMAGEDATA}/ONERA/spa3_0215_rad.ent
${LARGEDATA}/ONERA/spa3_0215_rad.ent
${TEMP}/ioImageFileReaderONERA.hdr )
ADD_TEST(ioTvONERAImageFileReaderComplex ${IO_TESTS6}
--compare-n-images ${TOL} 2
ADD_TEST(ioTvONERAImageFileReaderComplex ${IO_TESTS6}
--compare-n-images ${TOL} 2
${BASELINE}/ioImageFileReaderONERAComplexReal.hdr
${TEMP}/ioImageFileReaderONERAComplexReal.hdr
${BASELINE}/ioImageFileReaderONERAComplexImag.hdr
${TEMP}/ioImageFileReaderONERAComplexImag.hdr
otbImageFileReaderONERAComplex
${IMAGEDATA}/ONERA/spa3_0215_rad.ent
${LARGEDATA}/ONERA/spa3_0215_rad.ent
${TEMP}/ioImageFileReaderONERAComplexReal.hdr
${TEMP}/ioImageFileReaderONERAComplexImag.hdr )
ADD_TEST(ioTvONERAImageFileWriterComplex ${IO_TESTS6}
ADD_TEST(ioTvONERAImageFileWriterComplex ${IO_TESTS6}
--compare-image ${TOL} ${BASELINE}/ioImageFileReaderONERAComplexWrite.ent
${TEMP}/ioImageFileReaderONERAComplexWrite.ent
otbImageFileWriterONERAComplex
${IMAGEDATA}/ONERA/spa3_0215_rad.ent
${LARGEDATA}/ONERA/spa3_0215_rad.ent
${TEMP}/ioImageFileReaderONERAComplexWrite.ent )
ADD_TEST(ioTvONERAImageStreamWriter ${IO_TESTS6}
ADD_TEST(ioTvONERAImageStreamWriter ${IO_TESTS6}
--compare-image ${TOL} ${TEMP}/ioImageFileReaderONERAComplexWrite.ent
${TEMP}/ioImageFileReaderONERAStreamWrite.ent
otbImageFileWriterStreamingONERAComplex
......@@ -554,7 +561,7 @@ ADD_TEST(ioTuMSTARImageIOCanRead1 ${IO_TESTS6} otbMSTARImageIOTestCanRead
ADD_TEST(ioTuMSTARImageIOCanRead2 ${IO_TESTS6} otbMSTARImageIOTestCanRead
${INPUTDATA}/MSTAR/HB20010.000)
ADD_TEST(ioTvImageFileReaderMSTAR ${IO_TESTS6}
ADD_TEST(ioTvImageFileReaderMSTAR ${IO_TESTS6}
--compare-image ${TOL} ${BASELINE}/ioImageFileReaderMSTAR_rescal_chanel1.png
${TEMP}/ioImageFileReaderMSTAR_rescal_chanel1.png
otbImageFileReaderMSTAR
......@@ -562,114 +569,114 @@ ADD_TEST(ioTvImageFileReaderMSTAR ${IO_TESTS6}
${TEMP}/ioImageFileReaderMSTAR_rescal_chanel1.png )
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbIOTests7 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ------- otb::ImageFileReader pour CAI ------------------------------
# Niveau de Gris
ADD_TEST(ioTvImageFileReaderPNG2PNG ${IO_TESTS7}
ADD_TEST(ioTvImageFileReaderPNG2PNG ${IO_TESTS7}
--compare-image ${TOL} ${BASELINE}/ioImageFileReaderPNG2PNG_cthead1.png
${TEMP}/ioImageFileReaderPNG2PNG_cthead1.png
otbImageFileReaderTest
${INPUTDATA}/cthead1.png
${TEMP}/ioImageFileReaderPNG2PNG_cthead1.png )
# RGB
ADD_TEST(ioTvImageFileReaderRGB_PNG2PNG ${IO_TESTS7}
ADD_TEST(ioTvImageFileReaderRGB_PNG2PNG ${IO_TESTS7}
--compare-image ${TOL} ${BASELINE}/ioImageFileReaderRGB_PNG2PNG_sbuv.png
${TEMP}/ioImageFileReaderRGB_PNG2PNG_sbuv.png
otbImageFileReaderRGBTest
${INPUTDATA}/sbuv.png
${INPUTDATA}/sbuv.png
${TEMP}/ioImageFileReaderRGB_PNG2PNG_sbuv.png )
ADD_TEST(ioTvImageFileReaderRGB_PNG2TIFF ${IO_TESTS7}
ADD_TEST(ioTvImageFileReaderRGB_PNG2TIFF ${IO_TESTS7}
--compare-image ${TOL} ${BASELINE}/ioImageFileReaderRGB_PNG2TIFF_sbuv.tiff
${TEMP}/ioImageFileReaderRGB_PNG2TIFF_sbuv.tiff
otbImageFileReaderRGBTest
${INPUTDATA}/sbuv.png
${INPUTDATA}/sbuv.png
${TEMP}/ioImageFileReaderRGB_PNG2TIFF_sbuv.tiff )
ADD_TEST(ioTvImageFileReaderRGB_BSQ2PNG ${IO_TESTS7}
ADD_TEST(ioTvImageFileReaderRGB_BSQ2PNG ${IO_TESTS7}
--compare-image ${TOL} ${INPUTDATA}/poupees.hdr
${TEMP}/ioImageFileReaderRGB_BSQ2PNG_poupees.png