Commit 96b41ab6 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: Added tests for SpectralAngleClassification

parent 29208a86
Pipeline #4109 passed with stages
in 10 minutes and 14 seconds
......@@ -75,3 +75,34 @@ otb_test_application(NAME apTvHyLocalRxDetection
${BASELINE}/apTvHyLocalRxDetection.tif
${TEMP}/apTvHyLocalRxDetection.tif
)
#----------- SpectralAngleClassification TESTS ------------------------
otb_test_application(NAME apTvHySpectralAngleClassification_sam
APP SpectralAngleClassification
OPTIONS -in ${OTB_DATA_ROOT}/Input/Hyperspectral/synthetic/hsi_cube.tif
-ie ${INPUTDATA}/Hyperspectral/synthetic/endmembers.tif
-out ${TEMP}/apTvHySpectralAngleClassification_sam.tif
-mode sam
VALID --compare-image ${EPSILON_9}
${BASELINE}/apTvHySpectralAngleClassification_sam.tif
${TEMP}/apTvHySpectralAngleClassification_sam.tif
)
#----------- LocalRxDetection TESTS ------------------------
otb_test_application(NAME apTvHySpectralAngleClassification_sid
APP SpectralAngleClassification
OPTIONS -in ${OTB_DATA_ROOT}/Input/Hyperspectral/synthetic/hsi_cube.tif
-ie ${INPUTDATA}/Hyperspectral/synthetic/endmembers.tif
-out ${TEMP}/apTvHySpectralAngleClassification_sid.tif
-mode sid
-measure ${TEMP}/apTvHySpectralAngleClassification_sid_measure.tif
-threshold 0.1
-bv -1
VALID --compare-n-images ${EPSILON_9} 2
${BASELINE}/apTvHySpectralAngleClassification_sid.tif
${TEMP}/apTvHySpectralAngleClassification_sid.tif
${BASELINE}/apTvHySpectralAngleClassification_sid_measure.tif
${TEMP}/apTvHySpectralAngleClassification_sid_measure.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