diff --git a/Modules/Applications/AppClassification/app/otbClassificationMapRegularization.cxx b/Modules/Applications/AppClassification/app/otbClassificationMapRegularization.cxx index 1ecd2c9dc33a3f2b2c31c445884462ccc2e192ef..4e000cd1846aead2530f52dd9107aefe09f37c75 100644 --- a/Modules/Applications/AppClassification/app/otbClassificationMapRegularization.cxx +++ b/Modules/Applications/AppClassification/app/otbClassificationMapRegularization.cxx @@ -78,7 +78,7 @@ private: AddParameter(ParameterType_OutputImage, "io.out", "Output regularized image"); SetParameterDescription( "io.out", "The output regularized labeled image."); - SetParameterOutputImagePixelType( "io.out", ImagePixelType_uint8); + SetDefaultOutputPixelType( "io.out", ImagePixelType_uint8); AddParameter(ParameterType_Group,"ip","Regularization parameters"); diff --git a/Modules/Applications/AppClassification/app/otbImageClassifier.cxx b/Modules/Applications/AppClassification/app/otbImageClassifier.cxx index 8cd4c5b030159f38a69b20e571dae27e149a5e2c..a47a006c2acd93642036f558be763c70ba57f119 100644 --- a/Modules/Applications/AppClassification/app/otbImageClassifier.cxx +++ b/Modules/Applications/AppClassification/app/otbImageClassifier.cxx @@ -93,7 +93,7 @@ private: AddParameter(ParameterType_OutputImage, "out", "Output Image"); SetParameterDescription( "out", "Output image containing class labels"); - SetParameterOutputImagePixelType( "out", ImagePixelType_uint8); + SetDefaultOutputPixelType( "out", ImagePixelType_uint8); AddParameter(ParameterType_OutputImage, "confmap", "Confidence map"); SetParameterDescription( "confmap", "Confidence map of the produced classification. The confidence index depends on the model : \n" @@ -107,7 +107,7 @@ private: " * 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); + SetDefaultOutputPixelType( "confmap", ImagePixelType_double); MandatoryOff("confmap"); AddRAMParameter();