diff --git a/Data/Baseline/OTB/Images/apTvHySpectralAngleClassification_sam.tif b/Data/Baseline/OTB/Images/apTvHySpectralAngleClassification_sam.tif new file mode 100644 index 0000000000000000000000000000000000000000..5b40c8cb58ca17168eb0b64bd9b258172603014f --- /dev/null +++ b/Data/Baseline/OTB/Images/apTvHySpectralAngleClassification_sam.tif @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41ba89a71a9bb2af17ba1bc66f0e1197fb843b59a207a7eae6bffb44f2578dc1 +size 400 diff --git a/Data/Baseline/OTB/Images/apTvHySpectralAngleClassification_sid.tif b/Data/Baseline/OTB/Images/apTvHySpectralAngleClassification_sid.tif new file mode 100644 index 0000000000000000000000000000000000000000..6e4a1386201eff63effa649d782c66ce280c8f18 --- /dev/null +++ b/Data/Baseline/OTB/Images/apTvHySpectralAngleClassification_sid.tif @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e86975e7d76ce475074fef8fd6d276fd8bb3c5bc091b296402cbf146154dfb7f +size 684 diff --git a/Data/Baseline/OTB/Images/apTvHySpectralAngleClassification_sid_measure.tif b/Data/Baseline/OTB/Images/apTvHySpectralAngleClassification_sid_measure.tif new file mode 100644 index 0000000000000000000000000000000000000000..68c604fc5baf6e60fbd81d6bc57ca8b24d68e4ca --- /dev/null +++ b/Data/Baseline/OTB/Images/apTvHySpectralAngleClassification_sid_measure.tif @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c6285dfdf032e26076dfbde20b23d99931a49ca392a72b7e0671792d3dfa691 +size 6332 diff --git a/Modules/Applications/AppHyperspectral/test/CMakeLists.txt b/Modules/Applications/AppHyperspectral/test/CMakeLists.txt index 9d7a04bf7e2451f4075256ec446f6c3ccedfe36f..1e225b3463ef018b79e5f24158659c28bbc40c46 100644 --- a/Modules/Applications/AppHyperspectral/test/CMakeLists.txt +++ b/Modules/Applications/AppHyperspectral/test/CMakeLists.txt @@ -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 +)