Commit e5f901014d2dd77eddc692a007a39d7f33a3b289

Authored by Josh Klontz
1 parent dc0d217e

remove heat

Showing 1 changed file with 0 additions and 57 deletions
openbr/plugins/output/heat.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   -namespace br
21   -{
22   -
23   -/*!
24   - * \ingroup outputs
25   - * \brief Matrix-like output for heat maps.
26   - * \author Scott Klum \cite sklum
27   - */
28   -class heatOutput : public MatrixOutput
29   -{
30   - Q_OBJECT
31   - Q_PROPERTY(int patches READ get_patches WRITE set_patches RESET reset_patches STORED false)
32   - BR_PROPERTY(int, patches, -1)
33   -
34   - ~heatOutput()
35   - {
36   - if (file.isNull() || targetFiles.isEmpty() || queryFiles.isEmpty()) return;
37   -
38   - QStringList lines;
39   - for (int i=0; i<data.rows; i++) {
40   - lines.append(toString(i,0));
41   - }
42   - QtUtils::writeFile(file, lines);
43   - }
44   -
45   - void initialize(const FileList &targetFiles, const FileList &queryFiles)
46   - {
47   - if (patches == -1) qFatal("Heat output requires the number of patches");
48   - Output::initialize(targetFiles, queryFiles);
49   - data.create(patches, 1, CV_32FC1);
50   - }
51   -};
52   -
53   -BR_REGISTER(Output, heatOutput)
54   -
55   -} // namespace br
56   -
57   -#include "output/heat.moc"