Commit 4c19358f63593a75d9eef4370eed717f658ba70d

Authored by Josh Klontz
1 parent 7f975bbf

removed lffs format

Showing 1 changed file with 0 additions and 52 deletions
openbr/plugins/format/lffs.cpp deleted
1   -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2   - * Copyright 2012 The MITRE Corporation *
3   - * *
4   - * Licensed under the Apache License, Version 2.0 (the "License"); *
5   - * you may not use this file except in compliance with the License. *
6   - * You may obtain a copy of the License at *
7   - * *
8   - * http://www.apache.org/licenses/LICENSE-2.0 *
9   - * *
10   - * Unless required by applicable law or agreed to in writing, software *
11   - * distributed under the License is distributed on an "AS IS" BASIS, *
12   - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13   - * See the License for the specific language governing permissions and *
14   - * limitations under the License. *
15   - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
16   -
17   -#include <openbr/plugins/openbr_internal.h>
18   -#include <openbr/core/qtutils.h>
19   -
20   -using namespace cv;
21   -
22   -namespace br
23   -{
24   -
25   -/*!
26   - * \ingroup formats
27   - * \brief Reads a NIST LFFS file.
28   - * \author Josh Klontz \cite jklontz
29   - */
30   -class lffsFormat : public Format
31   -{
32   - Q_OBJECT
33   -
34   - Template read() const
35   - {
36   - QByteArray byteArray;
37   - QtUtils::readFile(file.name, byteArray);
38   - return Mat(1, byteArray.size(), CV_8UC1, byteArray.data()).clone();
39   - }
40   -
41   - void write(const Template &t) const
42   - {
43   - QByteArray byteArray((const char*)t.m().data, t.m().total()*t.m().elemSize());
44   - QtUtils::writeFile(file.name, byteArray);
45   - }
46   -};
47   -
48   -BR_REGISTER(Format, lffsFormat)
49   -
50   -} // namespace br
51   -
52   -#include "format/lffs.moc"