Commit 6c6b133f authored by Luc Hermitte's avatar Luc Hermitte

TST: Add tests for ClampROI & Synthetize

parent b4851483
......@@ -120,6 +120,18 @@ otb_test_application(NAME apTvUtExtractROIExtentFitVect
${OTBAPP_BASELINE}/apTvUtExtractROI.tif
${TEMP}/apTvUtExtractROIExtentFitVect.tif)
#----------- Clamp ROI tests ----------------
otb_test_application(NAME apTvUtClampROI
APP ClampROI
OPTIONS -in ${INPUTDATA}/ClampROIInput100x100.tiff
-out ${TEMP}/apTvUtClampROI.tif
-threshold.x 10
-threshold.y.start 12
-threshold.y.end 25
VALID --compare-image ${NOTOL}
${OTBAPP_BASELINE}/ClampROIBaseline100x100.tiff
${TEMP}/apTvUtClampROI.tif)
#----------- Rescale TESTS ----------------
otb_test_application(NAME apTvUtRescaleTest
APP Rescale
......@@ -252,6 +264,16 @@ otb_test_application(NAME apTvUtConcatenateImages_1Image
${TEMP}/apTvUtConcatenateImages_1Image.tif)
#----------- Synthetize TESTS ----------------
otb_test_application(NAME apTvUtSynthetize
APP Synthetize
OPTIONS -il ${INPUTDATA}/s1a_33NWB_vv_DES_007_20200108t044150_100x100.tif
${INPUTDATA}/s1a_33NWB_vv_DES_007_20200108t044215_100x100.tif
-out ${TEMP}/apTvUtSynthetize.tif
VALID --compare-image ${NOTOL}
${OTBAPP_BASELINE}/s1a_33NWB_vv_DES_007_20200108txxxxxx_100x100.tif
${TEMP}/apTvUtSynthetize.tif)
#----------- MultiResolutionPyramid TESTS ----------------
#----------- PixelValue TESTS ----------------
......@@ -443,8 +465,8 @@ otb_test_application(NAME apTvUtSplitImage
#----------- Mosaic TESTS ----------------
otb_test_application(NAME MosaicTestLargeFeathering
APP Mosaic
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestLargeFeathering.tif uint8
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestLargeFeathering.tif uint8
-comp.feather large
VALID --compare-image ${EPSILON_8}
${BASELINE}/apTvMosaicTestLargeFeathering.tif
......@@ -453,9 +475,9 @@ otb_test_application(NAME MosaicTestLargeFeathering
otb_test_application(NAME MosaicTestSlimFeathering
APP Mosaic
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestSlimFeathering.tif uint8
-comp.feather slim
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestSlimFeathering.tif uint8
-comp.feather slim
-comp.feather.slim.length 100
VALID --compare-image ${EPSILON_8}
${BASELINE}/apTvMosaicTestSlimFeathering.tif
......@@ -464,9 +486,9 @@ otb_test_application(NAME MosaicTestSlimFeathering
otb_test_application(NAME MosaicTestSimpleWithHarmoBandRmse
APP Mosaic
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestSimpleWithHarmoBandRmse.tif uint8
-harmo.method band
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestSimpleWithHarmoBandRmse.tif uint8
-harmo.method band
-harmo.cost rmse
VALID --compare-image ${EPSILON_8}
${BASELINE}/apTvMosaicTestSimpleWithHarmoBandRmse.tif
......@@ -474,9 +496,9 @@ otb_test_application(NAME MosaicTestSimpleWithHarmoBandRmse
otb_test_application(NAME MosaicTestSimpleWithHarmoRgbRmse
APP Mosaic
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestSimpleWithHarmoRgbRmse.tif uint8
-harmo.method rgb
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestSimpleWithHarmoRgbRmse.tif uint8
-harmo.method rgb
-harmo.cost rmse
VALID --compare-image ${EPSILON_8}
${BASELINE}/apTvMosaicTestSimpleWithHarmoRgbRmse.tif
......@@ -484,18 +506,18 @@ otb_test_application(NAME MosaicTestSimpleWithHarmoRgbRmse
otb_test_application(NAME MosaicTestSimpleWithCutline
APP Mosaic
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestSimpleWithCutline.tif uint8
-vdcut ${INPUTDATA}/SP67_FR_subset_1_cutline.shp ${INPUTDATA}/SP67_FR_subset_2_cutline.shp
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestSimpleWithCutline.tif uint8
-vdcut ${INPUTDATA}/SP67_FR_subset_1_cutline.shp ${INPUTDATA}/SP67_FR_subset_2_cutline.shp
VALID --compare-image ${EPSILON_8}
${BASELINE}/apTvMosaicTestSimpleWithCutline.tif
${TEMP}/apTvMosaicTestSimpleWithCutline.tif)
otb_test_application(NAME MosaicTestSimpleWithVdstats
APP Mosaic
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestSimpleWithVdstats.tif uint8
-vdstats ${INPUTDATA}/SP67_FR_subset_1_cutline.shp ${INPUTDATA}/SP67_FR_subset_2_cutline.shp
OPTIONS -il ${INPUTDATA}/SP67_FR_subset_1.tif ${INPUTDATA}/SP67_FR_subset_2.tif
-out ${TEMP}/apTvMosaicTestSimpleWithVdstats.tif uint8
-vdstats ${INPUTDATA}/SP67_FR_subset_1_cutline.shp ${INPUTDATA}/SP67_FR_subset_2_cutline.shp
VALID --compare-image ${EPSILON_8}
${BASELINE}/apTvMosaicTestSimpleWithVdstats.tif
${TEMP}/apTvMosaicTestSimpleWithVdstats.tif)
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