From 97d8b2798e13a65740495492a53b2fc809f6d8e1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr>
Date: Fri, 26 Apr 2019 17:59:19 +0200
Subject: [PATCH] DOC: code review

---
 .../AppClassification/app/otbKMeansClassification.cxx      | 7 ++++---
 .../AppClassification/include/otbTrainSharkKMeans.hxx      | 7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/Modules/Applications/AppClassification/app/otbKMeansClassification.cxx b/Modules/Applications/AppClassification/app/otbKMeansClassification.cxx
index a6c69baa5e..d1c7fcd52f 100644
--- a/Modules/Applications/AppClassification/app/otbKMeansClassification.cxx
+++ b/Modules/Applications/AppClassification/app/otbKMeansClassification.cxx
@@ -88,9 +88,10 @@ protected:
 
     AddParameter(ParameterType_InputFilename, "centroids.in", "input centroids text file");
     SetParameterDescription("centroids.in",
-                            "Input text file containing centroid posistions used to initialize the algorithm."
-                            " The file must contain one centroid per line, and each centroid value must be separated by a space. The number of"
-                            " centroids in this file must match the number of classes (nc parameter).");
+                            "Input text file containing centroid positions used to initialize the algorithm. "
+                            "Each centroid must be described by p parameters, p being the number of bands in "
+                            "the input image, and the number of centroids must be equal to the number of classes "
+                            "(one centroid per line with values separated by spaces).");
     MandatoryOff("centroids.in");
 
     ShareKMSamplingParameters();
diff --git a/Modules/Applications/AppClassification/include/otbTrainSharkKMeans.hxx b/Modules/Applications/AppClassification/include/otbTrainSharkKMeans.hxx
index 7abbbe7216..87ff3a948e 100644
--- a/Modules/Applications/AppClassification/include/otbTrainSharkKMeans.hxx
+++ b/Modules/Applications/AppClassification/include/otbTrainSharkKMeans.hxx
@@ -52,9 +52,10 @@ void LearningApplicationBase<TInputValue, TOutputValue>::InitSharkKMeansParams()
 
   // Input centroids
   AddParameter(ParameterType_InputFilename, "classifier.sharkkm.centroids.in", "User definied input centroids");
-  SetParameterDescription("classifier.sharkkm.centroids.in", "Input text file containing centroid posistions used to initialize the algorithm."
-    " The file must contain one centroid per line, and each centroid value must be separated by a space. The number of"
-    " centroids in this file must match the number of classes (classifier.sharkkm.k).");
+  SetParameterDescription("classifier.sharkkm.centroids.in", "Input text file containing centroid posistions used to initialize the algorithm. "
+                            "Each centroid must be described by p parameters, p being the number of features in "
+                            "the input vector data, and the number of centroids must be equal to the number of classes "
+                            "(one centroid per line with values separated by spaces).");
   MandatoryOff("classifier.sharkkm.centroids");
 
   // Centroid statistics
-- 
GitLab