Commit 50f7eba515f0ca4f098b925a56d143d4796caf1f

Authored by Josh Klontz
1 parent dc83113a

remove meanfill

openbr/plugins/imgproc/meanfill.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 Fill 0 pixels with the mean of non-0 pixels.  
27 - * \author Josh Klontz \cite jklontz  
28 - */  
29 -class MeanFillTransform : public UntrainableTransform  
30 -{  
31 - Q_OBJECT  
32 -  
33 - void project(const Template &src, Template &dst) const  
34 - {  
35 - dst = src.m().clone();  
36 - dst.m().setTo(mean(dst, dst.m()!=0), dst.m()==0);  
37 - }  
38 -};  
39 -  
40 -BR_REGISTER(Transform, MeanFillTransform)  
41 -  
42 -} // namespace br  
43 -  
44 -#include "imgproc/meanfill.moc"