My Project
dimtrait.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#ifndef mia_internal_dimtrait_hh
22#define mia_internal_dimtrait_hh
23
25
27struct dimension_traits_placeholder {
28 typedef std::shared_ptr<dimension_traits_placeholder> Pointer;
29};
30
34template <int Dimensions>
35struct dimension_traits {
36 typedef dimension_traits_placeholder Transformation;
37 typedef dimension_traits_placeholder PTransformation;
38 typedef dimension_traits_placeholder Size;
39 typedef dimension_traits_placeholder Image;
40 typedef dimension_traits_placeholder PImage;
41 typedef dimension_traits_placeholder ImageSeries;
42 typedef dimension_traits_placeholder PTransformationFactory;
43 typedef dimension_traits_placeholder FullCostList;
44 typedef dimension_traits_placeholder PFullCost;
45 typedef dimension_traits_placeholder Filter;
46 typedef dimension_traits_placeholder FilterPluginHandler;
47 typedef dimension_traits_placeholder InterpolatorFactory;
48};
49
50template <int Dimensions>
51struct scale_factor_helpers {
52 typedef int DIntVector;
53
54 static DIntVector log2(const DIntVector& x);
55 static DIntVector shift(const DIntVector& x);
56};
57
61template <int Dimensions>
62struct watershed_traits {
63 typedef dimension_traits_placeholder PNeighbourhood;
64 typedef dimension_traits_placeholder Handler;
65 typedef dimension_traits_placeholder FileHandler;
66};
68
70
71#endif
generic base class for transformations
#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