|The function CalcRFOVAMap calculates the one-versus-all map1 of the classification results of a random forest classifier. The parameter ClassifiedImg contains the classification results as obtained from ApplyRFModel. On return the variable parameters OVAMap, MaxRFResponse and Purity contain the one-vs-all map, the maximum random forest response over all classes and the purity value2, respectively. These three arrays are automatically resized to the spatial size of the ClassifiedImg parameter. The Feedback parameter controls whether a visual feedback is provided during the classification.
The function returns the following error codes:
0 ... everything is OK
-1 ... at least one of the dimensions of ClassifiedImg is zero