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