diff --git a/Modules/Applications/AppClassification/app/otbTrainVectorClassifier.cxx b/Modules/Applications/AppClassification/app/otbTrainVectorClassifier.cxx index 3a7accaf5f0e1890a522c1a0c97de5a2d33e714c..ccfeeef07cee3fab6507b587122e6494d1e747c6 100644 --- a/Modules/Applications/AppClassification/app/otbTrainVectorClassifier.cxx +++ b/Modules/Applications/AppClassification/app/otbTrainVectorClassifier.cxx @@ -74,6 +74,15 @@ protected: SetOfficialDocLink(); Superclass::DoInit(); + + // Add a new parameter to compute confusion matrix / contingency table + this->AddParameter( ParameterType_OutputFilename, "io.confmatout", + "Output confusion matrix or contingency table" ); + this->SetParameterDescription( "io.confmatout", + "Output file containing the confusion matrix or contingency table (.csv format)." + "The contingency table is output when we unsupervised algorithms is used otherwise the confusion matrix is output." ); + this->MandatoryOff( "io.confmatout" ); + } void DoUpdateParameters() override diff --git a/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx b/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx index 879f9b8db50124026db448f98f28437ddd144640..caf144257e7fe2ad8f1792f545aae31748ccb8c0 100644 --- a/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx +++ b/Modules/Applications/AppClassification/include/otbTrainVectorBase.hxx @@ -86,14 +86,6 @@ TrainVectorBase<TInputValue, TOutputValue> "Only geometries with this field available will be taken into account." ); this->SetListViewSingleSelectionMode( "cfield", true ); - // Add a new parameter to compute confusion matrix / contingency table - this->AddParameter( ParameterType_OutputFilename, "io.confmatout", - "Output confusion matrix or contingency table" ); - this->SetParameterDescription( "io.confmatout", - "Output file containing the confusion matrix or contingency table (.csv format)." - "The contingency table is output when we unsupervised algorithms is used otherwise the confusion matrix is output." ); - this->MandatoryOff( "io.confmatout" ); - this->AddParameter(ParameterType_Bool, "v", "Verbose mode"); this->SetParameterDescription("v", "Verbose mode, display the contingency table result."); this->SetParameterInt("v", 1);