Skip to content

Commit

Permalink
whitespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bhklein committed Nov 10, 2023
1 parent 0466d1d commit a834478
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions openbr/core/eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,15 +378,15 @@ float Evaluate(const Mat &simmat, const Mat &mask, const File &csv, const QStrin

// Write FRR@FAR Table (FF)
foreach (float FAR, QList<float>() << 1e-6 << 1e-5 << 1e-4 << 1e-3 << 1e-2 << 1e-1)
lines.append(qPrintable(QString("FF,%1,%2").arg(
QString::number(FAR, 'f'),
QString::number(1-getOperatingPoint(operatingPoints, "FAR", FAR).TAR, 'f', 6))));
lines.append(qPrintable(QString("FF,%1,%2").arg(
QString::number(FAR, 'f'),
QString::number(1-getOperatingPoint(operatingPoints, "FAR", FAR).TAR, 'f', 6))));

// Write FAR@TAR Table (FT)
foreach (float TAR, QList<float>() << 0.4 << 0.5 << 0.65 << 0.75 << 0.85 << 0.95)
lines.append(qPrintable(QString("FT,%1,%2").arg(
QString::number(TAR, 'f', 2),
QString::number(getOperatingPoint(operatingPoints, "TAR", TAR).FAR, 'f', 3))));
lines.append(qPrintable(QString("FT,%1,%2").arg(
QString::number(TAR, 'f', 2),
QString::number(getOperatingPoint(operatingPoints, "TAR", TAR).FAR, 'f', 3))));

// Write FAR@Score Table (SF) and TAR@Score table (ST)
foreach(const float score, QList<float>() << 0.05 << 0.1 << 0.15 << 0.2 << 0.25 << 0.3 << 0.35 << 0.4 << 0.45 << 0.5
Expand Down
4 changes: 2 additions & 2 deletions share/openbr/plotting/plot_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ plotLine <- function(lineData=NULL, options=NULL, flipY=FALSE, geometry="path")
}

plotSD <- function(sdData=NULL) {
if(nrow(sdData) == 0) return()
if (nrow(sdData) == 0) return()
p <- qplot(X, data=sdData, geom="histogram", fill=Y, alpha=I(1/2), xlab="Score", ylab="Frequency")
p <- p + scale_fill_manual("Ground Truth", values=c("blue", "red")) + theme_minimal() + scale_x_continuous(minor_breaks=NULL) + scale_y_continuous(minor_breaks=NULL) + theme(axis.text.y=element_blank(), axis.ticks=element_blank(), axis.text.x=element_text(angle=-90, hjust=0))
if (majorSize > 1) {
Expand Down Expand Up @@ -327,4 +327,4 @@ plotImage <- function(image, title=NULL, label=NULL) {
p <- p + theme(axis.line=element_blank(), axis.title.y=element_blank(), axis.text.x=element_blank(), axis.text.y=element_blank(), line=element_blank(), axis.ticks=element_blank(), panel.background=element_blank())
p <- p + labs(title=title) + xlab(label)
return(p)
}
}

0 comments on commit a834478

Please sign in to comment.