Commit 7cee4e874b8475c6ec711ce985524dd8b7ff8bc4

Authored by Josh Klontz
1 parent ba377839

removed schrodinger transform

openbr/plugins/core/schrodinger.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   -
19   -namespace br
20   -{
21   -
22   -/*!
23   - * \ingroup transforms
24   - * \brief Generates two Templates, one of which is passed through a Transform and the other
25   - * is not. No cats were harmed in the making of this Transform.
26   - * \author Scott Klum \cite sklum
27   - */
28   -class SchrodingerTransform : public MetaTransform
29   -{
30   - Q_OBJECT
31   - Q_PROPERTY(br::Transform* transform READ get_transform WRITE set_transform RESET reset_transform)
32   - BR_PROPERTY(br::Transform*, transform, NULL)
33   -
34   -public:
35   - void train(const TemplateList &data)
36   - {
37   - transform->train(data);
38   - }
39   -
40   - void project(const TemplateList &src, TemplateList &dst) const
41   - {
42   - foreach(const Template &t, src) {
43   - dst.append(t);
44   - Template u;
45   - transform->project(t,u);
46   - dst.append(u);
47   - }
48   - }
49   -
50   - void project(const Template &src, Template &dst) const {
51   - TemplateList temp;
52   - project(TemplateList() << src, temp);
53   - if (!temp.isEmpty()) dst = temp.first();
54   - }
55   -
56   -};
57   -BR_REGISTER(Transform, SchrodingerTransform)
58   -
59   -} // namespace br
60   -
61   -#include "core/schrodinger.moc"