Request for Changes-49: Improve classification on vectors

From OTBWiki
Jump to: navigation, search

[Request for Changes - 49] Improve classification on vectors

Status

Summary

This RFC provides an enhanced version of the TrainOGRLayerClassifier. The new application TrainVectorClassifier allows to train all classifiers from libSVM or OpenCV.

Rationale

This is the next step after the sampling extraction (see Request_for_Changes-46:_Sample_extractor). See also request for comments #20 : [1]

Implementation details

Classes and files

No change.

Applications

M       Modules/Applications/AppClassification/app/CMakeLists.txt
M       Modules/Applications/AppClassification/app/otbTrainOGRLayersClassifier.cxx
A       Modules/Applications/AppClassification/app/otbTrainVectorClassifier.cxx

The new application TrainVectorClassifier :

  • uses the same base class as TrainImagesClassifier
  • has a better handling of input field names
  • allows to select the layer in each OGR file
  • proposes a separate input for the validation dataset.
  • supports optional statistics file
  • computes confusion matrix


The application TrainOGRLayersClassifier has been flagged as DEPRECATED.

Tests

M       Modules/Applications/AppClassification/test/CMakeLists.txt

A new test has been added for TrainVectorClassifier.

Documentation

Additional notes