Commit f3b973b63014faa6a1393c15916b7c2d1638d165

Authored by Scott Klum
1 parent 0b08e843

Removed unused DownsampleMetadata transform that also duplicated some functionality

Showing 1 changed file with 0 additions and 35 deletions
openbr/plugins/independent.cpp
@@ -93,7 +93,6 @@ class DownsampleTrainingTransform : public Transform @@ -93,7 +93,6 @@ class DownsampleTrainingTransform : public Transform
93 BR_PROPERTY(QStringList, gallery, QStringList()) 93 BR_PROPERTY(QStringList, gallery, QStringList())
94 BR_PROPERTY(QStringList, subjects, QStringList()) 94 BR_PROPERTY(QStringList, subjects, QStringList())
95 95
96 -  
97 Transform *simplify(bool &newTForm) 96 Transform *simplify(bool &newTForm)
98 { 97 {
99 Transform *res = transform->simplify(newTForm); 98 Transform *res = transform->simplify(newTForm);
@@ -118,40 +117,6 @@ class DownsampleTrainingTransform : public Transform @@ -118,40 +117,6 @@ class DownsampleTrainingTransform : public Transform
118 }; 117 };
119 BR_REGISTER(Transform, DownsampleTrainingTransform) 118 BR_REGISTER(Transform, DownsampleTrainingTransform)
120 119
121 -class DownsampleMetadataTransform : public Transform  
122 -{  
123 - Q_OBJECT  
124 - Q_PROPERTY(br::Transform* transform READ get_transform WRITE set_transform RESET reset_transform STORED true)  
125 - Q_PROPERTY(QString inputVariable READ get_inputVariable WRITE set_inputVariable RESET reset_inputVariable STORED false)  
126 - BR_PROPERTY(br::Transform*, transform, NULL)  
127 - BR_PROPERTY(QString, inputVariable, "Label")  
128 -  
129 - Transform *simplify(bool &newTForm)  
130 - {  
131 - Transform *res = transform->simplify(newTForm);  
132 - return res;  
133 - }  
134 -  
135 - void project(const Template &src, Template &dst) const  
136 - {  
137 - transform->project(src,dst);  
138 - }  
139 -  
140 - void train(const TemplateList &data)  
141 - {  
142 - if (!transform || !transform->trainable)  
143 - return;  
144 -  
145 - TemplateList downsampled = data;  
146 - for (int i=downsampled.size()-1; i>=0; i--)  
147 - if (!downsampled[i].file.contains(inputVariable))  
148 - downsampled.removeAt(i);  
149 -  
150 - transform->train(downsampled);  
151 - }  
152 -};  
153 -BR_REGISTER(Transform, DownsampleMetadataTransform)  
154 -  
155 /*! 120 /*!
156 * \ingroup transforms 121 * \ingroup transforms
157 * \brief Clones the transform so that it can be applied independently. 122 * \brief Clones the transform so that it can be applied independently.