Commit 897b65bdad7a09dbcf43f621bd50897fb5b4a9a0
1 parent
928c9b1d
remove subdivide
Showing
1 changed file
with
0 additions
and
49 deletions
openbr/plugins/imgproc/subdivide.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 | -using namespace cv; | |
| 20 | - | |
| 21 | -namespace br | |
| 22 | -{ | |
| 23 | - | |
| 24 | -/*! | |
| 25 | - * \ingroup transforms | |
| 26 | - * \brief Divide the matrix into 4 smaller matricies of equal size. | |
| 27 | - * \author Josh Klontz \cite jklontz | |
| 28 | - */ | |
| 29 | -class SubdivideTransform : public UntrainableTransform | |
| 30 | -{ | |
| 31 | - Q_OBJECT | |
| 32 | - | |
| 33 | - void project(const Template &src, Template &dst) const | |
| 34 | - { | |
| 35 | - const Mat &m = src; | |
| 36 | - const int subrows = m.rows/2; | |
| 37 | - const int subcolumns = m.cols/2; | |
| 38 | - dst.append(Mat(m,Rect(0, 0, subcolumns, subrows)).clone()); | |
| 39 | - dst.append(Mat(m,Rect(subcolumns, 0, subcolumns, subrows)).clone()); | |
| 40 | - dst.append(Mat(m,Rect(0, subrows, subcolumns, subrows)).clone()); | |
| 41 | - dst.append(Mat(m,Rect(subcolumns, subrows, subcolumns, subrows)).clone()); | |
| 42 | - } | |
| 43 | -}; | |
| 44 | - | |
| 45 | -BR_REGISTER(Transform, SubdivideTransform) | |
| 46 | - | |
| 47 | -} // namespace br | |
| 48 | - | |
| 49 | -#include "imgproc/subdivide.moc" |