Commit ddeb012c authored by Cyrille Valladeau's avatar Cyrille Valladeau

ENH: fix error shown by doc tests

parent b662f997
...@@ -103,7 +103,7 @@ private: ...@@ -103,7 +103,7 @@ private:
// Doc example parameter settings // Doc example parameter settings
SetDocExampleParameterValue("in", "QB_1_ortho.tif"); SetDocExampleParameterValue("in", "QB_1_ortho.tif");
SetDocExampleParameterValue("imstat", "clImageStatisticsQB1.xml"); SetDocExampleParameterValue("imstat", "clImageStatisticsQB1.xml");
SetDocExampleParameterValue("svn", "clsvmModelQB1.svm"); SetDocExampleParameterValue("svm", "clsvmModelQB1.svm");
SetDocExampleParameterValue("out", "otbConcatenateImages.png uchar"); SetDocExampleParameterValue("out", "otbConcatenateImages.png uchar");
} }
......
...@@ -115,11 +115,7 @@ private: ...@@ -115,11 +115,7 @@ private:
SetParameterDescription("sl","input image will be divided into sl lines."); SetParameterDescription("sl","input image will be divided into sl lines.");
SetDefaultParameterInt("sl", 1000); SetDefaultParameterInt("sl", 1000);
SetDocCLExample("otbApplicationLauncherCommandLine KMeansClassification " // Doc example parameter settings
"--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
SetDocExampleParameterValue("in", "poupees_sub.png"); SetDocExampleParameterValue("in", "poupees_sub.png");
SetDocExampleParameterValue("vm", "mask_KMeans.png"); SetDocExampleParameterValue("vm", "mask_KMeans.png");
SetDocExampleParameterValue("ts", "100"); SetDocExampleParameterValue("ts", "100");
......
...@@ -212,7 +212,7 @@ private: ...@@ -212,7 +212,7 @@ private:
SetDocExampleParameterValue("io.imstat", "clImageStatisticsQB1.xml"); SetDocExampleParameterValue("io.imstat", "clImageStatisticsQB1.xml");
SetDocExampleParameterValue("sample.mv", "100"); SetDocExampleParameterValue("sample.mv", "100");
SetDocExampleParameterValue("sample.vtr", "0.5"); SetDocExampleParameterValue("sample.vtr", "0.5");
SetDocExampleParameterValue("sample.opt", "true"); SetDocExampleParameterValue("svm.opt", "true");
SetDocExampleParameterValue("io.out", "svmModelQB1_allOpt.svm"); SetDocExampleParameterValue("io.out", "svmModelQB1_allOpt.svm");
} }
......
...@@ -81,11 +81,7 @@ private: ...@@ -81,11 +81,7 @@ private:
MandatoryOff("lms"); MandatoryOff("lms");
MandatoryOff("dem"); MandatoryOff("dem");
MandatoryOff("ram"); 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 // Doc example parameter settings
SetDocExampleParameterValue("inp", "QB_Toulouse_Ortho_PAN.tif"); SetDocExampleParameterValue("inp", "QB_Toulouse_Ortho_PAN.tif");
SetDocExampleParameterValue("inxs", "QB_Toulouse_Ortho_XS.tif"); SetDocExampleParameterValue("inxs", "QB_Toulouse_Ortho_XS.tif");
......
...@@ -148,8 +148,6 @@ private: ...@@ -148,8 +148,6 @@ private:
SetParameterDescription("lat", "Point latitude coordinates."); SetParameterDescription("lat", "Point latitude coordinates.");
SetParameterRole("lat", Role_Output); 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 // Doc example parameter settings
SetDocExampleParameterValue("carto.x", "367074.625"); SetDocExampleParameterValue("carto.x", "367074.625");
SetDocExampleParameterValue("carto.y", "4835740"); SetDocExampleParameterValue("carto.y", "4835740");
......
...@@ -84,9 +84,6 @@ private: ...@@ -84,9 +84,6 @@ private:
SetParameterDescription("proj", "Projection to be used to compute the envelope (default is WGS84)"); SetParameterDescription("proj", "Projection to be used to compute the envelope (default is WGS84)");
MandatoryOff("proj"); MandatoryOff("proj");
SetDocCLExample("otbApplicationLauncherCommandLine ImageEnvelope ${OTB-BIN}/bin "
"--in ${OTB-Data}/Input/sensor_stereo_left.tif --out envelope.shp");
// Doc example parameter settings // Doc example parameter settings
SetDocExampleParameterValue("in", "sensor_stereo_left.tif"); SetDocExampleParameterValue("in", "sensor_stereo_left.tif");
SetDocExampleParameterValue("out", "ImageEnvelope.shp"); SetDocExampleParameterValue("out", "ImageEnvelope.shp");
......
...@@ -70,6 +70,12 @@ private: ...@@ -70,6 +70,12 @@ private:
AddParameter(ParameterType_OutputImage, "out", "Output image"); AddParameter(ParameterType_OutputImage, "out", "Output image");
AddParameter(ParameterType_Float, "tx", "The X translation (in physical units)"); AddParameter(ParameterType_Float, "tx", "The X translation (in physical units)");
AddParameter(ParameterType_Float, "ty", "The Y 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() void DoUpdateParameters()
...@@ -101,12 +107,6 @@ private: ...@@ -101,12 +107,6 @@ private:
// Output Image // Output Image
SetParameterOutputImage("out", m_Resampler->GetOutput()); 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; ResampleFilterType::Pointer m_Resampler;
......
...@@ -89,9 +89,9 @@ private: ...@@ -89,9 +89,9 @@ private:
AddParameter(ParameterType_RAM, "ram", "Available RAM"); AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256); SetDefaultParameterInt("ram", 256);
MandatoryOff("ram"); MandatoryOff("ram");
// Doc example parameter settings // 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"); SetDocExampleParameterValue("out", "otbConcatenateImages.png uchar");
} }
......
...@@ -86,7 +86,7 @@ public: ...@@ -86,7 +86,7 @@ public:
} }
if( !found) if( !found)
itkGenericExceptionMacro( "No parameter with key "<<key<<" found." ); itkGenericExceptionMacro( "No parameter with key \""<<key<<"\" found." );
} }
/** Get the parameter list. */ /** Get the parameter list. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment