diff --git a/openbr/plugins/output/melt.cpp b/openbr/plugins/output/melt.cpp deleted file mode 100644 index dba4bb4..0000000 --- a/openbr/plugins/output/melt.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Copyright 2012 The MITRE Corporation * - * * - * Licensed under the Apache License, Version 2.0 (the "License"); * - * you may not use this file except in compliance with the License. * - * You may obtain a copy of the License at * - * * - * http://www.apache.org/licenses/LICENSE-2.0 * - * * - * Unless required by applicable law or agreed to in writing, software * - * distributed under the License is distributed on an "AS IS" BASIS, * - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * - * See the License for the specific language governing permissions and * - * limitations under the License. * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#include -#include - -namespace br -{ - -/*! - * \ingroup outputs - * \brief One score per row. - * \author Josh Klontz \cite jklontz - */ -class meltOutput : public MatrixOutput -{ - Q_OBJECT - - ~meltOutput() - { - if (file.isNull() || targetFiles.isEmpty() || queryFiles.isEmpty()) return; - const bool genuineOnly = file.contains("Genuine") && !file.contains("Impostor"); - const bool impostorOnly = file.contains("Impostor") && !file.contains("Genuine"); - - QMap args = file.localMetadata(); - args.remove("Genuine"); - args.remove("Impostor"); - - QString keys; foreach (const QString &key, args.keys()) keys += "," + key; - QString values; foreach (const QVariant &value, args.values()) values += "," + value.toString(); - - QStringList lines; - if (file.baseName() != "terminal") lines.append(QString("Query,Target,Mask,Similarity%1").arg(keys)); - - QList queryLabels = File::get(queryFiles, "Label"); - QList targetLabels = File::get(targetFiles, "Label"); - - for (int i=0; i(i,j)), - values)); - } - } - - QtUtils::writeFile(file, lines); - } -}; - -BR_REGISTER(Output, meltOutput) - -} // namespace br - -#include "output/melt.moc"