template/combiner.hh
Go to the documentation of this file.
1 /* -*- mia-c++ -*-
2  *
3  * This file is part of MIA - a toolbox for medical image analysis
4  * Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
5  *
6  * MIA is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with MIA; if not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 
22 #ifndef mia_template_combiner_hh
23 #define mia_template_combiner_hh
24 
25 #include <mia/core/filter.hh>
27 
29 
30 template <typename Image>
31 class EXPORT_HANDLER TImageCombiner : public TFilter< typename Image::Pointer > ,
32  public CProductBase {
33 public:
35  typedef Image plugin_data;
37  typedef combiner_type plugin_type;
38 
40 
48  result_type combine( const Image& a, const Image& b) const;
49 private:
50  virtual result_type do_combine( const Image& a, const Image& b) const = 0;
51 };
52 
53 
55 
56 #endif
Image plugin_data
data type for plug-in serachpath component
base class for all filer type functors.
Definition: core/filter.hh:70
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition: defines.hh:33
#define EXPORT_HANDLER
Definition: core/cost.hh:32
combiner_type plugin_type
plug-in type for plug-in serachpath component
R result_type
defines the return type of the filter function
Definition: core/filter.hh:72
TFilter< typename Image::Pointer >::result_type result_type
The base class for all plug-in created object.
Definition: product_base.hh:40
#define NS_MIA_END
conveniance define to end the mia namespace
Definition: defines.hh:36