diff --git a/Modules/Applications/AppClassification/app/otbKMeansClassification.cxx b/Modules/Applications/AppClassification/app/otbKMeansClassification.cxx index a6c69baa5e836317d12c3cb2db8d58d2720626bc..d1c7fcd52f0e88e315536ec6afc7343f1ca9d5bd 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 7abbbe72163b6f437beaf29bab93e547ec1e8cac..87ff3a948edc75658b5223780aec8e60788e0afa 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