My Project
2d/register.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_2d_register_hh
22 #define mia_2d_register_hh
23 
24 #include <mia/2d/model.hh>
25 #include <mia/2d/timestep.hh>
26 #include <mia/2d/cost.hh>
27 #include <mia/2d/fatcost.hh>
29 
31 
32 
42 {
43 public:
59  C2DMultiImageNonrigidRegister(size_t start_size, size_t max_iter,
60  C2DRegModel& model,
61  C2DRegTimeStep& time_step,
62  C2DTransformCreator& trans_factory,
63  float outer_epsilon);
64 
71  P2DTransformation operator () (C2DImageFatCostList& cost, P2DInterpolatorFactory ipf);
72 private:
73  void reg_level(C2DImageFatCostList& cost, C2DGridTransformation& result, const C2DInterpolatorFactory& ipf);
74  void reg_level_regrid(C2DImageFatCostList& cost, C2DGridTransformation& result, const C2DInterpolatorFactory& ipf);
75 
76  size_t m_start_size;
77  size_t m_max_iter;
78  C2DRegModel& m_model;
79  C2DRegTimeStep& m_time_step;
80  float m_outer_epsilon;
81 };
82 
83 
85 
86 #endif
87 
NS_MIA_BEGIN
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition: defines.hh:33
P2DTransformation
C2DTransformation::Pointer P2DTransformation
Pointer type for the 2D transformation.
Definition: 2d/transform.hh:409
TRegModel
Base class for PDE model based registrations.
Definition: regmodel.hh:55
C2DInterpolatorFactory
The factory to create an interpolator from some input data.
Definition: 2d/interpolator.hh:189
NS_MIA_END
#define NS_MIA_END
conveniance define to end the mia namespace
Definition: defines.hh:36
transformfactory.hh
model.hh
P2DInterpolatorFactory
std::shared_ptr< C2DInterpolatorFactory > P2DInterpolatorFactory
Pointer type for the 2D interpolationfactory.
Definition: 2d/interpolator.hh:255
C2DRegTimeStep
The time step class for time-marching registration algorithms.
Definition: 2d/timestep.hh:42
TTransformCreator
Definition: template/transformfactory.hh:44
cost.hh
EXPORT_2D
#define EXPORT_2D
Definition: defines2d.hh:37
C2DMultiImageNonrigidRegister
A 2D non-rigid registration class for time-marching PDE based registration.
Definition: 2d/register.hh:41
timestep.hh