Returns Average Precision for the selected state (class) state.
- Parameters
-
predictions | The most probable configuration, returned by the CDecode::decode() function |
potentials | The potential values for each node of the graph, returned by the CInfer::getPotentials() function |
gt | The groundtruth values for each node of the graph. May be converted from a groundtruth image as follows: vec_byte_t gt(gtImg.data, gtImg.data + gtImg.cols * gtImg.rows);
|
state | The state (class) for which the Average Precision is calculated |
- Returns
- The Average Precision value
Definition at line 6 of file AveragePrecision.cpp.