Commit 0739a0c5045078933e51cfa2e6e624ee7e05a5c5

Authored by Scott Klum
1 parent cfb773db

Fixed some edge cases in eval landmarking

openbr/core/eval.cpp
... ... @@ -892,6 +892,8 @@ float EvalLandmarking(const QString &predictedGallery, const QString &truthGalle
892 892 // Or the ground truth seems to be for another object in the image
893 893 || (QtUtils::euclideanLength(predictedPoints[normalizationIndexA] - truthPoints[normalizationIndexA]) / normalizedLength >= 0.5)
894 894 || (QtUtils::euclideanLength(predictedPoints[normalizationIndexB] - truthPoints[normalizationIndexB]) / normalizedLength >= 0.5)
  895 + // Or the predicted image FTE'd
  896 + || predicted[i].file.fte || predicted[i].file.getBool("FTE")
895 897 ) {
896 898 predicted.removeAt(i);
897 899 predictedNames.removeAt(i);
... ...
share/openbr/plotting/plot_utils.R
... ... @@ -313,7 +313,7 @@ plotEERSamples <- function(imData=NULL, gmData=NULL) {
313 313  
314 314 plotLandmarkSamples <- function(displaySample=NULL, expData=NULL, extData=NULL) {
315 315 print(plotImage(displaySample[[1]], "Sample Landmarks", sprintf("Total Landmarks: %s", displaySample[[1]]$value)))
316   - column <- if(majorSize > 1) majorHeader else "File"
  316 + column <- if(majorSize > 1) majorHeader else minorHeader
317 317 if (nrow(EXT) != 0 && nrow(EXP)) {
318 318 for (j in 1:length(algs)) {
319 319 truthSample <- readImageData(EXT[EXT[,column] == algs[[j]],])
... ...