My Project
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 {
34 public:
36  typedef Image plugin_data;
38  typedef combiner_type plugin_type;
39 
41 
49  result_type combine( const Image& a, const Image& b) const;
50 private:
51  virtual result_type do_combine( const Image& a, const Image& b) const = 0;
52 };
53 
54 
56 
57 #endif
NS_MIA_BEGIN
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition: defines.hh:33
import_handler.hh
TFilter::result_type
R result_type
defines the return type of the filter function
Definition: core/filter.hh:72
TImageCombiner::plugin_data
Image plugin_data
data type for plug-in serachpath component
Definition: template/combiner.hh:36
NS_MIA_END
#define NS_MIA_END
conveniance define to end the mia namespace
Definition: defines.hh:36
TFilter
base class for all filer type functors.
Definition: core/filter.hh:70
EXPORT_HANDLER
#define EXPORT_HANDLER
Definition: core/cost.hh:32
TImageCombiner
Definition: template/combiner.hh:31
CProductBase
The base class for all plug-in created object.
Definition: product_base.hh:40
filter.hh
TImageCombiner::result_type
TFilter< typename Image::Pointer >::result_type result_type
Definition: template/combiner.hh:40
TImageCombiner::plugin_type
combiner_type plugin_type
plug-in type for plug-in serachpath component
Definition: template/combiner.hh:38