From 800affe84f8205d6ea7f88da00f90ac54a002b7f Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 31 Aug 2021 18:04:17 -0600 Subject: [PATCH] remove namelandmarks --- openbr/plugins/metadata/namelandmarks.cpp | 67 ------------------------------------------------------------------- 1 file changed, 0 insertions(+), 67 deletions(-) delete mode 100644 openbr/plugins/metadata/namelandmarks.cpp diff --git a/openbr/plugins/metadata/namelandmarks.cpp b/openbr/plugins/metadata/namelandmarks.cpp deleted file mode 100644 index 3e2e324..0000000 --- a/openbr/plugins/metadata/namelandmarks.cpp +++ /dev/null @@ -1,67 +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 - -namespace br -{ - -/*! - * \ingroup transforms - * \brief Name a point/rect - * \author Scott Klum \cite sklum - */ -class NameLandmarksTransform : public UntrainableMetadataTransform -{ - Q_OBJECT - Q_PROPERTY(bool point READ get_point WRITE set_point RESET reset_point STORED false) - BR_PROPERTY(bool, point, true) - Q_PROPERTY(QList indices READ get_indices WRITE set_indices RESET reset_indices STORED false) - Q_PROPERTY(QStringList names READ get_names WRITE set_names RESET reset_names STORED false) - BR_PROPERTY(QList, indices, QList()) - BR_PROPERTY(QStringList, names, QStringList()) - - void projectMetadata(const File &src, File &dst) const - { - const bool makeList = indices.size() != names.size(); - - dst = src; - - if (point) { - QList points = src.points(); - - if (makeList) - dst.setList(names.first(),points); - else - for (int i=0; i rects = src.rects(); - - for (int i=0; i