Commit 57e8423a authored by Otmane Lahlou's avatar Otmane Lahlou

ENH: rename Filename to InputFilename and use OutputFilename where needed

parent d29f407a
......@@ -150,7 +150,7 @@ private:
SetParameterFloat("wgt", 0.5);
AddParameter(ParameterType_Filename,"initmod","initialization model");
AddParameter(ParameterType_InputFilename,"initmod","initialization model");
SetParameterDescription("initmod","Initialization model (xml file) to be used. If the xml initialization model is set, the descriptor list is not used (specified using the option -desclist)");
......@@ -168,7 +168,7 @@ private:
SetParameterDescription("optobs","Activate the optimizer observer");
AddParameter(ParameterType_Filename,"out","Output filename");
AddParameter(ParameterType_OutputFilename,"out","Output filename");
SetParameterDescription("out","Output model file name (xml file) contains the optimal model to perform informations fusion.");
// Doc example parameter settings
......@@ -75,7 +75,7 @@ private:
AddParameter(ParameterType_InputVectorData, "in", "Input Vector Data");
SetParameterDescription("in", "Input vector data to validate");
AddParameter(ParameterType_Filename, "descmod", "Descriptors model filename");
AddParameter(ParameterType_InputFilename, "descmod", "Descriptors model filename");
SetParameterDescription("descmod", "Fuzzy descriptors model (xml file)");
AddParameter(ParameterType_StringList, "belsup", "Belief Support");
......@@ -57,7 +57,7 @@ private:
AddParameter(ParameterType_InputImageList, "il", "Input images");
SetParameterDescription( "il", "List of input images filenames." );
AddParameter(ParameterType_Filename, "out", "Output XML file");
AddParameter(ParameterType_OutputFilename, "out", "Output XML file");
SetParameterDescription( "out", "XML filename where the statistics are saved for future reuse." );
......@@ -78,10 +78,10 @@ private:
SetParameterDescription( "mask", "The mask allows to restrict classification of the input image to the area where mask pixel values are greater than 0.");
AddParameter(ParameterType_Filename, "svm", "SVM Model file");
AddParameter(ParameterType_InputFilename, "svm", "SVM Model file");
SetParameterDescription("svm", "A SVM model file (*.svm extension, produced by TrainSVMImagesClassifier application).");
AddParameter(ParameterType_Filename, "imstat", "Statistics file");
AddParameter(ParameterType_InputFilename, "imstat", "Statistics file");
SetParameterDescription("imstat", "A XML file containing mean and standard deviation to center and reduce samples before classification (produced by ComputeImagesStatistics application).");
......@@ -207,7 +207,7 @@ private:
SetParameterDescription("ct", "Convergence threshold for class centroid (L2 distance, by default 0.01).");
SetDefaultParameterFloat("ct", 0.0001);
AddParameter(ParameterType_Filename, "outmeans", "Centroid filename");
AddParameter(ParameterType_OutputFilename, "outmeans", "Centroid filename");
SetParameterDescription("outmeans", "Output text file containing centroid positions");
......@@ -148,10 +148,10 @@ private:
SetParameterDescription("", "A list of input images.");
AddParameter(ParameterType_InputVectorDataList, "io.vd", "Vector Data List");
SetParameterDescription("io.vd", "A list of vector data to select the training samples.");
AddParameter(ParameterType_Filename, "io.imstat", "XML image statistics file");
AddParameter(ParameterType_InputFilename, "io.imstat", "XML image statistics file");
SetParameterDescription("io.imstat", "Filename of an XML file containing mean and standard deviation of input images.");
AddParameter(ParameterType_Filename, "io.out", "Output SVM model");
AddParameter(ParameterType_OutputFilename, "io.out", "Output SVM model");
SetParameterDescription("io.out", "Output file containing the SVM model estimated");
// Elevation
......@@ -179,7 +179,7 @@ private:
"Ratio between training and validation samples (0.0 = all training, 1.0 = all validation) default = 0.5.");
SetParameterFloat("sample.vtr", 0.5);
AddParameter(ParameterType_Filename, "sample.vfn", "Name of the discrimination field");
AddParameter(ParameterType_InputFilename, "sample.vfn", "Name of the discrimination field");
SetParameterDescription("sample.vfn", "Name of the field used to discriminate class in the vector data files.");
SetParameterString("sample.vfn", "Class");
......@@ -135,17 +135,17 @@ private:
SetParameterDescription("il", "Input image list filename.");
AddParameter(ParameterType_InputVectorDataList, "vd", "Vector Data List");
SetParameterDescription("vd", "List of vector data to select validation samples.");
AddParameter(ParameterType_Filename, "imstat", "XML image statistics file");
AddParameter(ParameterType_InputFilename, "imstat", "XML image statistics file");
SetParameterDescription("imstat", "Filename of an XML file containing mean and standard deviation of input images.");
// Elevation
ElevationParametersHandler::AddElevationParameters(this, "elev");
AddParameter(ParameterType_Filename, "out", "Output filename");
AddParameter(ParameterType_OutputFilename, "out", "Output filename");
SetParameterDescription("out", "Output file, which contains the performances of the SVM model.");
AddParameter(ParameterType_Filename, "svm", "SVM validation filename");
AddParameter(ParameterType_InputFilename, "svm", "SVM validation filename");
"Input SVM model to validate (given by TrainSVMImagesClassification for instance).");
......@@ -108,7 +108,7 @@ private:
AddParameter(ParameterType_Filename, "rsr", "Relative Spectral Response File");
AddParameter(ParameterType_InputFilename, "rsr", "Relative Spectral Response File");
std::ostringstream oss;
oss << "Sensor relative spectral response file"<<std::endl;
oss << "By default the application gets these informations in the metadata";
......@@ -146,7 +146,7 @@ private:
AddParameter(ParameterType_Filename, "atmo.aeronet", "Aeronet File");
AddParameter(ParameterType_InputFilename, "atmo.aeronet", "Aeronet File");
SetParameterDescription("atmo.aeronet","Aeronet file containing atmospheric parameters");
......@@ -59,7 +59,8 @@ private:
AddParameter(ParameterType_Float, "float", "Float");
AddParameter(ParameterType_String, "string", "String");
AddParameter(ParameterType_Filename, "filename", "File name");
AddParameter(ParameterType_InputFilename, "filename", "File name");
AddParameter(ParameterType_OutputFilename, "outfilename", "Output Filename");
AddParameter(ParameterType_Directory, "directory", "Directory name");
......@@ -446,7 +446,7 @@ private:
// Custom LUT
AddChoice("method.custom","Color mapping with custom labeled look-up table");
SetParameterDescription("method.custom","Apply a user-defined look-up table to a labeled image. Look-up table is loaded from a text file.");
AddParameter(ParameterType_Filename, "method.custom.lut", "Look-up table file");
AddParameter(ParameterType_InputFilename, "method.custom.lut", "Look-up table file");
SetParameterDescription("method.custom.lut", "An ASCII file containing the look-up table\n"
"with one color per line\n"
"(for instance the line '1 255 0 0' means that all pixels with label 1 will be replaced by RGB color 255 0 0)\n"
......@@ -59,7 +59,7 @@ private:
AddParameter(ParameterType_InputImage, "in", "Input geo-referenced DEM");
SetParameterDescription("in", "Input geo-referenced DEM to convert to general raster format.");
AddParameter(ParameterType_Filename, "out", "Prefix of the output files");
AddParameter(ParameterType_OutputFilename, "out", "Prefix of the output files");
std::ostringstream oss;
oss << "will be used to get the prefix (name withtout extensions) of the files to write. ";
oss << "Three files - prefix.geom, prefix.omd and prefix.ras - will be generated.";
......@@ -60,7 +60,7 @@ private:
AddParameter(ParameterType_InputImage, "in", "Input image");
SetParameterDescription("in", "Input image");
AddParameter(ParameterType_Filename, "out", "Output .kmz product");
AddParameter(ParameterType_OutputFilename, "out", "Output .kmz product");
SetParameterDescription("out", "Output Kmz product directory (with .kmz extension)");
AddParameter(ParameterType_Int, "tilesize", "Tile Size");
......@@ -76,7 +76,7 @@ private:
AddParameter(ParameterType_InputImage, "in", "Input Image");
AddParameter(ParameterType_Filename, "out", "Output Image");
AddParameter(ParameterType_OutputFilename, "out", "Output Image");
SetParameterDescription("out","will be used to get the prefix and the extension of the images to write");
......@@ -64,7 +64,7 @@ private:
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in","Input multiband image filename.");
AddParameter(ParameterType_Filename, "out", "Output Image");
AddParameter(ParameterType_OutputFilename, "out", "Output Image");
"Output filename that will be used to get the prefix and the extension of the output images to write");
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