MI - Fimex
CDMBorderSmoothing_Linear.h
Go to the documentation of this file.
1 /* -*- c++ -*-
2  * Fimex, CDMBorderSmoothing_Linear.h
3  *
4  * (C) Copyright 2012, met.no
5  *
6  * Project Info: https://wiki.met.no/fimex/start
7  *
8  * This library is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21  * USA.
22  *
23  * Created on: Aug 28, 2012
24  * Author: Alexander Bürger
25  */
26 
27 #ifndef fimex_CDMBorderSmoothing_Linear_H
28 #define fimex_CDMBorderSmoothing_Linear_H 1
29 
30 #include "CDMBorderSmoothing.h"
31 
32 namespace MetNoFimex {
33 
42 public:
43  CDMBorderSmoothing_Linear(size_t transitionWidth, size_t borderWidth)
44  : transitionWidth_(transitionWidth), borderWidth_(borderWidth) { }
45  virtual double operator()(size_t curX, size_t curY, double valueI, double valueO);
46 
47 private:
48  size_t transitionWidth_, borderWidth_;
49 };
50 
51 // ------------------------------------------------------------------------
52 
54 public:
55  enum { DEFAULT_TRANSITIONWIDTH = 5, DEFAULT_BORDERWIDTH = 2 };
56 
57  CDMBorderSmoothing_LinearFactory(size_t transitionWidth = DEFAULT_TRANSITIONWIDTH, size_t borderWidth = DEFAULT_BORDERWIDTH);
58 
60 
61 private:
62  size_t transitionWidth_, borderWidth_;
63 };
64 
65 } // namespace MetNoFimex
66 
67 #endif /* fimex_CDMBorderSmoothing_Linear_H */
basic_string< char > string
Definition: CDMBorderSmoothing_Linear.h:53
CDMBorderSmoothing_Linear(size_t transitionWidth, size_t borderWidth)
Definition: CDMBorderSmoothing_Linear.h:43
A factory for creating smoothing function objects.
Definition: CDMBorderSmoothing.h:72
boost::shared_ptr< Smoothing > SmoothingPtr
Definition: CDMBorderSmoothing.h:69
Definition: C_CDMReader.h:35
Definition: CDMBorderSmoothing_Linear.h:41
Definition: CDMBorderSmoothing.h:56
virtual double operator()(size_t curX, size_t curY, double valueI, double valueO)