From 8b0994d53d51f60b39deae1237ab80e475c7e494 Mon Sep 17 00:00:00 2001
From: Ludovic Hussonnois <ludovic.hussonnois@c-s.fr>
Date: Tue, 11 Apr 2017 16:52:11 +0100
Subject: [PATCH] TEST: Update ComputeConfusionMatrix nodatalabel for cmake
 Tests.

---
 .../AppClassification/test/CMakeLists.txt             | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/Modules/Applications/AppClassification/test/CMakeLists.txt b/Modules/Applications/AppClassification/test/CMakeLists.txt
index 0d296b5fbb..1736cb25a4 100644
--- a/Modules/Applications/AppClassification/test/CMakeLists.txt
+++ b/Modules/Applications/AppClassification/test/CMakeLists.txt
@@ -405,7 +405,8 @@ otb_test_application(NAME apTvComputeConfusionMatrixExtraReferenceLabelsR
   OPTIONS -in ${INPUTDATA}/Classification/QB_1_ortho_C7.tif
   -ref raster
   -ref.raster.in ${INPUTDATA}/Classification/clLabeledImageQB456_1_NoData_255.tif
-  -nodatalabel 255
+  -refnodatalabel 255
+  -prodnodatalabel 255
   -out ${TEMP}/apTvComputeConfusionMatrixExtraRefLabelsROut.csv
   VALID   --compare-ascii ${NOTOL}
   ${OTBAPP_BASELINE_FILES}/apTvComputeConfusionMatrixExtraRefLabelsROut.csv
@@ -416,7 +417,8 @@ otb_test_application(NAME apTvComputeConfusionMatrixR
   OPTIONS -in ${OTBAPP_BASELINE}/clLabeledImageQB123_1.tif
   -ref raster
   -ref.raster.in ${INPUTDATA}/Classification/clLabeledImageQB456_1_NoData_255.tif
-  -nodatalabel 255
+  -refnodatalabel 255
+  -prodnodatalabel 255
   -out ${TEMP}/apTvComputeConfusionMatrixTconfusionROut.csv
   VALID   --compare-ascii ${NOTOL}
   ${OTBAPP_BASELINE_FILES}/apTvComputeConfusionMatrixTconfusionROut.csv
@@ -427,7 +429,8 @@ otb_test_application(NAME apTvComputeConfusionMatrixExtraProducedLabelsR
   OPTIONS -in ${INPUTDATA}/Classification/clLabeledImageQB456_1_NoData_255.tif
   -ref raster
   -ref.raster.in ${INPUTDATA}/Classification/QB_1_ortho_C8.tif
-  -nodatalabel 255
+  -refnodatalabel 255
+  -prodnodatalabel 255
   -out ${TEMP}/apTvComputeConfusionMatrixExtraProdLabelsROut.csv
   VALID   --compare-ascii ${NOTOL}
   ${OTBAPP_BASELINE_FILES}/apTvComputeConfusionMatrixExtraProdLabelsROut.csv
@@ -440,6 +443,8 @@ otb_test_application(NAME apTvComputeContingencyTableExtraProducedLabelsR
   OPTIONS -in ${INPUTDATA}/Classification/clLabeledImageQB456_1_NoData_255.tif
   -ref raster
   -ref.raster.in ${INPUTDATA}/Classification/QB_1_ortho_C8.tif
+  -refnodatalabel 255
+  -prodnodatalabel 255
   -format contingencytable
   -out ${TEMP}/apTvComputeContingencyTableExtraProdLabelsROut.csv
   VALID   --compare-ascii ${NOTOL}
-- 
GitLab