multireg.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_3d_multireg_hh
22 #define mia_3d_multireg_hh
23 
24 #include <mia/3d/model.hh>
25 #include <mia/3d/timestep.hh>
26 #include <mia/3d/deformer.hh>
27 #include <mia/3d/fatcost.hh>
28 #include <mia/3d/transform.hh>
29 
31 
36 typedef std::shared_ptr<C3DFVectorfield > P3DFVectorfield;
37 
47 public:
59  C3DMultiImageRegister(size_t start_size, size_t max_iter,
60  C3DRegModel& model, C3DRegTimeStep& time_step,
61  float outer_epsilon);
62 
69  P3DTransformation operator () (C3DImageFatCostList& cost, P3DInterpolatorFactory ipf);
70 private:
71  void reg_level(C3DImageFatCostList& cost, C3DGridTransformation& result, const C3DInterpolatorFactory& ipf);
72  void reg_level_regrid(C3DImageFatCostList& cost, C3DGridTransformation& result, const C3DInterpolatorFactory& ipf);
73 
74  size_t m_start_size;
75  size_t m_max_iter;
76  C3DRegModel& m_model;
77  C3DRegTimeStep& m_time_step;
78  float m_outer_epsilon;
79 };
80 
81 
83 
84 #endif
The time-step part of time-marching registration algorithms.
Definition: 3d/timestep.hh:38
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition: defines.hh:33
#define EXPORT_3D
Definition: defines3d.hh:44
std::shared_ptr< C3DInterpolatorFactory > P3DInterpolatorFactory
Pointer type of the 3D interpolation factory.
std::shared_ptr< C3DFVectorfield > P3DFVectorfield
pointer type for a 3D vector field
Definition: multireg.hh:36
A factory to create interpolators of a given type by providing input data.
A 3D non-rigid image registration class.
Definition: multireg.hh:46
std::shared_ptr< C3DTransformation > P3DTransformation
pointer type for a 3D transformation
Definition: 3d/transform.hh:37
#define NS_MIA_END
conveniance define to end the mia namespace
Definition: defines.hh:36