Commit ddeb012c authored by Cyrille Valladeau's avatar Cyrille Valladeau

ENH: fix error shown by doc tests

parent b662f997
......@@ -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");
}
......
......@@ -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");
......
......@@ -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");
}
......
......@@ -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");
......
......@@ -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");
......
......@@ -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");
......
......@@ -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;
......
......@@ -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");
}
......
......@@ -86,7 +86,7 @@ public:
}
if( !found)
itkGenericExceptionMacro( "No parameter with key "<<key<<" found." );
itkGenericExceptionMacro( "No parameter with key \""<<key<<"\" found." );
}
/** 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