From 466a43fc32bc8d44ebc99d42b1a4ab166bf4c8f7 Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Fri, 31 Jul 2015 11:23:37 +0200
Subject: [PATCH] DOC: enhance documentation on confidence maps

---
 .../AppClassification/app/otbImageClassifier.cxx     | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/Modules/Applications/AppClassification/app/otbImageClassifier.cxx b/Modules/Applications/AppClassification/app/otbImageClassifier.cxx
index c12ed7df67..8cd4c5b030 100644
--- a/Modules/Applications/AppClassification/app/otbImageClassifier.cxx
+++ b/Modules/Applications/AppClassification/app/otbImageClassifier.cxx
@@ -96,7 +96,17 @@ private:
     SetParameterOutputImagePixelType( "out", ImagePixelType_uint8);
 
     AddParameter(ParameterType_OutputImage, "confmap",  "Confidence map");
-    SetParameterDescription( "confmap", "Confidence map of the produced classification. Meaning depends on the model.");
+    SetParameterDescription( "confmap", "Confidence map of the produced classification. The confidence index depends on the model : \n"
+      "  - LibSVM : difference between the two highest probabilities (needs a model with probability estimates, so that classes probabilities can be computed for each sample)\n"
+      "  - OpenCV\n"
+      "    * Boost : sum of votes\n"
+      "    * DecisionTree : (not supported)\n"
+      "    * GradientBoostedTree : (not supported)\n"
+      "    * KNearestNeighbors : number of neighbors with the same label\n"
+      "    * NeuralNetwork : difference between the two highest responses\n"
+      "    * NormalBayes : (not supported)\n"
+      "    * RandomForest : proportion of decision trees that classified the sample to the second class (only works for 2-class models)\n"
+      "    * SVM : distance to margin (only works for 2-class models)\n");
     SetParameterOutputImagePixelType( "confmap", ImagePixelType_double);
     MandatoryOff("confmap");
 
-- 
GitLab