Skip to content

Deprecate applications DocName (keep only Name)

I am in favor of deprecating (and then removing) SetDocName. Any opinions on that?

It seems a bit redundant to me and I think it contributes to user confusion. In fact, out of the 106 OTB applications, only 40 have doc names different than the name (ignoring case and spaces).

BlockMatching                           Pixel-wise Block-Matching
CompareImages                           Images comparison
ComputeConfusionMatrix                  Confusion matrix Computation
ComputeImagesStatistics                 Compute Images second order statistics
ConcatenateImages                       Images Concatenation
Convert                                 Image Conversion
ConvertCartoToGeoPoint                  Cartographic to geographic coordinates conversion
ConvertSensorToGeoPoint                 Convert Sensor Point To Geographic Point
DSFuzzyModelEstimation                  Fuzzy Model estimation
DownloadSRTMTiles                       Download or list SRTM tiles related to a set of images
DynamicConvert                          Dynamic Conversion
EdgeExtraction                          Edge Feature Extraction
GeneratePlyFile                         Ply 3D files generation
GenerateRPCSensorModel                  Generate a RPC sensor model
HyperspectralUnmixing                   Hyperspectral data unmixing
ImageClassifier                         Image Classification
KMeansClassification                    Unsupervised KMeans image classification
KmzExport                               Image to KMZ Export
LSMSSegmentation                        Exact Large-Scale Mean-Shift segmentation, step 2
LSMSSmallRegionsMerging                 Exact Large-Scale Mean-Shift segmentation, step 3 (optional)
LSMSVectorization                       Exact Large-Scale Mean-Shift segmentation, step 4
LargeScaleMeanShift                     Large-Scale MeanShift
ManageNoData                            No Data management
MultiImageSamplingRate                  Multi-image sampling rate estimation
OSMDownloader                           Open Street Map layers import
OrthoRectification                      Ortho-rectification
ReadImageInfo                           Read image information
Rescale                                 Rescale Image
RigidTransformResample                  Image resampling with a rigid transform
SARCalibration                          SAR Radiometric calibration
SmallRegionsMerging                     Small Region Merging
StereoRectificationGridGenerator        Stereo-rectification deformation grid generator
Superimpose                             Superimpose sensor
TestApplication                         Test
TileFusion                              Image Tile Fusion
TrainImagesClassifier                   Train a classifier from multiple images
TrainRegression                         Train a regression model
VectorClassifier                        Vector Classification
VectorDataDSValidation                  Vector Data validation
VectorDataTransform                     Vector Data Transformation

For the 66 other applications app.GetName().lower() == app.GetDocName().lower().replace(" ", "") is True, so the doc name is completely redundant.