ComputeConfusionMatrix
Mantis Issue 697, reported by sdinot, assigned to cpeyrega, created: 2013-04-16
I've been testing the development version of the TrainSVMImagesClassifier application and found the additions made to the confusion matrix computation are essential.
The ComputeConfusionMatrix application should be tweaked the same way. Confusion matrix is useful in contexts different from SVM classification, and as such having a standalone application as informative as the SVM confusion matrix is necessary.
1371564118 - cpeyregaBoth ComputeConfusionMatrix and TrainImagesClassifier OTB applications can be used to compute and generate confusion matrix files with detailed headers with reference and produced labels (in *.CSV format) respectively since the following OTB revisions:
Revision OTB 15863: http://hg.orfeo-toolbox.org/OTB/rev/fdcc58458cde Revision OTB 15865: http://hg.orfeo-toolbox.org/OTB/rev/afd63e49d60f
Moreover, both of them display some measurements computed over the corresponding confusion matrix (ex: precision, recall, kappa,...)
NB: ConputeConfusionMatrix and TrainImagesClassifier do not manipulate the same kind of data:
-With ComputeConfusionMatrix it is possible to generate the confusion matrix from one single pair image + training raster/vector data.
-With TrainImagesClassifier it is possible to generate the global confusion matrix from multiple pairs image + training vector data.
Thus, the current Mantis issue is directly closed.