diff --git a/Applications/Classification/otbImageSVMClassifier.cxx b/Applications/Classification/otbImageSVMClassifier.cxx index 05492ee2750e8460d08bb16ac54dbaf2d85dd5e2..afa5664278fa14df81e5e093b55211b37081af6a 100644 --- a/Applications/Classification/otbImageSVMClassifier.cxx +++ b/Applications/Classification/otbImageSVMClassifier.cxx @@ -103,7 +103,7 @@ private: // Doc example parameter settings SetDocExampleParameterValue("in", "QB_1_ortho.tif"); SetDocExampleParameterValue("imstat", "clImageStatisticsQB1.xml"); - SetDocExampleParameterValue("svn", "clsvmModelQB1.svm"); + SetDocExampleParameterValue("svm", "clsvmModelQB1.svm"); SetDocExampleParameterValue("out", "otbConcatenateImages.png uchar"); } diff --git a/Applications/Classification/otbKMeansClassification.cxx b/Applications/Classification/otbKMeansClassification.cxx index ff2cdbd91a1239bf28044ec7f219da59e22e8a69..b39c417b6295e622ea6916eabb6cd1e8cb793943 100644 --- a/Applications/Classification/otbKMeansClassification.cxx +++ b/Applications/Classification/otbKMeansClassification.cxx @@ -115,11 +115,7 @@ private: SetParameterDescription("sl","input image will be divided into sl lines."); SetDefaultParameterInt("sl", 1000); - SetDocCLExample("otbApplicationLauncherCommandLine KMeansClassification " - "--in ${OTB-Data}/Input/poupees_sub.png --vm ${OTB-Data}/Input/mask_KMeans.png " - "--ts 100 --tp 0.6 --nc 5 --cp 0.9 --sl 100 --out ClassificationFilterOuptut.tif"); - - // Doc example parameter settings + // Doc example parameter settings SetDocExampleParameterValue("in", "poupees_sub.png"); SetDocExampleParameterValue("vm", "mask_KMeans.png"); SetDocExampleParameterValue("ts", "100"); diff --git a/Applications/Classification/otbTrainSVMImagesClassifier.cxx b/Applications/Classification/otbTrainSVMImagesClassifier.cxx index d0d0108341cfb8906a0baec79107c3f6c6bcb26e..0c31a031040df5970b82c0ae2b574f48917a1366 100644 --- a/Applications/Classification/otbTrainSVMImagesClassifier.cxx +++ b/Applications/Classification/otbTrainSVMImagesClassifier.cxx @@ -212,7 +212,7 @@ private: SetDocExampleParameterValue("io.imstat", "clImageStatisticsQB1.xml"); SetDocExampleParameterValue("sample.mv", "100"); SetDocExampleParameterValue("sample.vtr", "0.5"); - SetDocExampleParameterValue("sample.opt", "true"); + SetDocExampleParameterValue("svm.opt", "true"); SetDocExampleParameterValue("io.out", "svmModelQB1_allOpt.svm"); } diff --git a/Applications/Projections/otbBundleToPerfectSensor.cxx b/Applications/Projections/otbBundleToPerfectSensor.cxx index b06150244e200ae208587f96a7f9ae47e1050640..37183725d829cd1b9183f985bc9102caaecda818 100644 --- a/Applications/Projections/otbBundleToPerfectSensor.cxx +++ b/Applications/Projections/otbBundleToPerfectSensor.cxx @@ -81,11 +81,7 @@ private: MandatoryOff("lms"); MandatoryOff("dem"); MandatoryOff("ram"); - - SetDocCLExample("otbApplicationLauncherCommandLine BundleToPerfectSensor ${OTB-BIN}/bin " - "--inp ${OTB-Data}/Examples/QB_Toulouse_Ortho_PAN.tif --inxs ${OTB-Data}/Examples/QB_Toulouse_Ortho_XS.tif " - "--out PanSharpenedImage.tif"); - + // Doc example parameter settings SetDocExampleParameterValue("inp", "QB_Toulouse_Ortho_PAN.tif"); SetDocExampleParameterValue("inxs", "QB_Toulouse_Ortho_XS.tif"); diff --git a/Applications/Projections/otbConvertCartoToGeoPoint.cxx b/Applications/Projections/otbConvertCartoToGeoPoint.cxx index 35a9b46a9be3f810cd44e341ba2b9c9bbc4d660d..da2bc86c54cfd4dafbb3bab149990ca9dcc4e6e0 100644 --- a/Applications/Projections/otbConvertCartoToGeoPoint.cxx +++ b/Applications/Projections/otbConvertCartoToGeoPoint.cxx @@ -148,8 +148,6 @@ private: SetParameterDescription("lat", "Point latitude coordinates."); SetParameterRole("lat", Role_Output); - SetDocCLExample("otbApplicationLauncherCommandLine ConvertCartoToGeoPoint ${OTB-BIN}/bin --carto.x 367074.625 --carto.y 4835740 --mapproj utm --mapproj.utm.hemisphere true --mapproj.utm.zone 31"); - // Doc example parameter settings SetDocExampleParameterValue("carto.x", "367074.625"); SetDocExampleParameterValue("carto.y", "4835740"); diff --git a/Applications/Projections/otbImageEnvelope.cxx b/Applications/Projections/otbImageEnvelope.cxx index b271df23c4fde957f09b9df603f661c762055142..919dd25b1088f8339dc7c762c060efe72faba58d 100644 --- a/Applications/Projections/otbImageEnvelope.cxx +++ b/Applications/Projections/otbImageEnvelope.cxx @@ -84,9 +84,6 @@ private: SetParameterDescription("proj", "Projection to be used to compute the envelope (default is WGS84)"); MandatoryOff("proj"); - SetDocCLExample("otbApplicationLauncherCommandLine ImageEnvelope ${OTB-BIN}/bin " - "--in ${OTB-Data}/Input/sensor_stereo_left.tif --out envelope.shp"); - // Doc example parameter settings SetDocExampleParameterValue("in", "sensor_stereo_left.tif"); SetDocExampleParameterValue("out", "ImageEnvelope.shp"); diff --git a/Applications/Projections/otbRigidTransformResample.cxx b/Applications/Projections/otbRigidTransformResample.cxx index b63d4e5b35a9f38d5e0bdf69a3b63c146586a6d2..0a062e324f38a48b745dedfd95f69b760e904cae 100644 --- a/Applications/Projections/otbRigidTransformResample.cxx +++ b/Applications/Projections/otbRigidTransformResample.cxx @@ -70,6 +70,12 @@ private: AddParameter(ParameterType_OutputImage, "out", "Output image"); AddParameter(ParameterType_Float, "tx", "The X translation (in physical units)"); AddParameter(ParameterType_Float, "ty", "The Y translation (in physical units)"); + + // Doc example parameter settings + SetDocExampleParameterValue("in", "poupees.tif"); + SetDocExampleParameterValue("out", "rigitTransformImage.tif"); + SetDocExampleParameterValue("tx", "5"); + SetDocExampleParameterValue("ty", "5"); } void DoUpdateParameters() @@ -101,12 +107,6 @@ private: // Output Image SetParameterOutputImage("out", m_Resampler->GetOutput()); - - // Doc example parameter settings - SetDocExampleParameterValue("in", "poupees.tif"); - SetDocExampleParameterValue("out", "rigitTransformImage.tif"); - SetDocExampleParameterValue("tx", "5"); - SetDocExampleParameterValue("ty", "5"); } ResampleFilterType::Pointer m_Resampler; diff --git a/Applications/Utils/otbConcatenateImages.cxx b/Applications/Utils/otbConcatenateImages.cxx index 90cd0019c616db6a8826be51d6922caf46787c30..41ba3217b3054f4c0e64b93e657b3e15c3d82885 100644 --- a/Applications/Utils/otbConcatenateImages.cxx +++ b/Applications/Utils/otbConcatenateImages.cxx @@ -89,9 +89,9 @@ private: AddParameter(ParameterType_RAM, "ram", "Available RAM"); SetDefaultParameterInt("ram", 256); MandatoryOff("ram"); - + // Doc example parameter settings - SetDocExampleParameterValue("in", "poupees_sub_c1.png poupees_sub_c2.png poupees_sub_c3.png"); + SetDocExampleParameterValue("il", "poupees_sub_c1.png poupees_sub_c2.png poupees_sub_c3.png"); SetDocExampleParameterValue("out", "otbConcatenateImages.png uchar"); } diff --git a/Code/ApplicationEngine/otbWrapperDocExampleStructure.h b/Code/ApplicationEngine/otbWrapperDocExampleStructure.h index 4909b52f0ed12fbe42af843027a8880599a1c5a2..2351ef417db9325e4c35f1e153462bef0a2566a1 100644 --- a/Code/ApplicationEngine/otbWrapperDocExampleStructure.h +++ b/Code/ApplicationEngine/otbWrapperDocExampleStructure.h @@ -86,7 +86,7 @@ public: } if( !found) - itkGenericExceptionMacro( "No parameter with key "<