Commit d05be15477e97e1176d8ac20f08a4f4af9070bcc

Authored by Brendan Klare
1 parent 23de1e31

Removing junk that should not have been committed

Showing 1 changed file with 0 additions and 32 deletions
openbr/plugins/regions.cpp
@@ -56,38 +56,6 @@ class RectRegionsTransform : public UntrainableTransform @@ -56,38 +56,6 @@ class RectRegionsTransform : public UntrainableTransform
56 56
57 /*! 57 /*!
58 * \ingroup transforms 58 * \ingroup transforms
59 - * \brief Subdivide matrix into a fixed number of rectangular subregions.  
60 - * \author Brendan Klare \cite bklare  
61 - */  
62 -class FixedRegionsTransform : public UntrainableTransform  
63 -{  
64 - Q_OBJECT  
65 - Q_PROPERTY(int nHorizontal READ get_nHorizontal WRITE set_nHorizontal RESET reset_nHorizontal STORED false)  
66 - Q_PROPERTY(int nVertical READ get_nVertical WRITE set_nVertical RESET reset_nVertical STORED false)  
67 - Q_PROPERTY(float widthScaleStep READ get_widthScaleStep WRITE set_widthScaleStep RESET reset_widthScaleStep STORED false)  
68 - Q_PROPERTY(float heightScaleStep READ get_heightScaleStep WRITE set_heightScaleStep RESET reset_heightScaleStep STORED false)  
69 - BR_PROPERTY(int, nHorizontal, 5)  
70 - BR_PROPERTY(int, nVertical, 5)  
71 - BR_PROPERTY(float, widthScaleStep, .5)  
72 - BR_PROPERTY(float, heightScaleStep, .5)  
73 -  
74 - void project(const Template &src, Template &dst) const  
75 - {  
76 - const int widthStep = this->widthStep == -1 ? width : this->widthStep;  
77 - const int heightStep = this->heightStep == -1 ? height : this->heightStep;  
78 - const Mat &m = src;  
79 - const int xMax = m.cols - width;  
80 - const int yMax = m.rows - height;  
81 - for (int x=0; x <= xMax; x += widthStep)  
82 - for (int y=0; y <= yMax; y += heightStep)  
83 - dst += m(Rect(x, y, width, height));  
84 - }  
85 -};  
86 -  
87 -BR_REGISTER(Transform, RectRegionsTransform)  
88 -  
89 -/*!  
90 - * \ingroup transforms  
91 * \brief Turns each row into its own matrix. 59 * \brief Turns each row into its own matrix.
92 * \author Josh Klontz \cite jklontz 60 * \author Josh Klontz \cite jklontz
93 */ 61 */