From 4e621b83b58cb2228c8b234c5183d21186422290 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 31 Aug 2021 14:40:53 -0600 Subject: [PATCH] removed raw format --- openbr/plugins/format/raw.cpp | 60 ------------------------------------------------------------ 1 file changed, 0 insertions(+), 60 deletions(-) delete mode 100644 openbr/plugins/format/raw.cpp diff --git a/openbr/plugins/format/raw.cpp b/openbr/plugins/format/raw.cpp deleted file mode 100644 index bf9c089..0000000 --- a/openbr/plugins/format/raw.cpp +++ /dev/null @@ -1,60 +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 - -using namespace cv; - -namespace br -{ - -/*! - * \ingroup formats - * \brief RAW format - * - * \author Scott Klum \cite sklum - */ -class rawFormat : public Format -{ - Q_OBJECT - - Template read() const - { - QByteArray data; - QtUtils::readFile(file, data); - - // The raw file format has no header information, so one must specify resolution - QSize size = QSize(file.get("width"),file.get("height")); - Template t(file); - QList matrices; - const int bytes = size.width()*size.height(); - for (int i=0; i