multireg.hh
Go to the documentation of this file.
/* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
* Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
*
* MIA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MIA; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef mia_3d_multireg_hh
#define mia_3d_multireg_hh
#include <mia/3d/model.hh>
#include <mia/3d/timestep.hh>
#include <mia/3d/deformer.hh>
#include <mia/3d/fatcost.hh>
#include <mia/3d/transform.hh>
NS_MIA_BEGIN
typedef std::shared_ptr<C3DFVectorfield > P3DFVectorfield;
class EXPORT_3D C3DMultiImageRegister
{
public:
C3DMultiImageRegister(size_t start_size, size_t max_iter,
C3DRegModel& model, C3DRegTimeStep& time_step,
float outer_epsilon);
P3DTransformation operator () (C3DImageFatCostList& cost, P3DInterpolatorFactory ipf);
private:
void reg_level(C3DImageFatCostList& cost, C3DGridTransformation& result, const C3DInterpolatorFactory& ipf);
void reg_level_regrid(C3DImageFatCostList& cost, C3DGridTransformation& result, const C3DInterpolatorFactory& ipf);
size_t m_start_size;
size_t m_max_iter;
C3DRegModel& m_model;
C3DRegTimeStep& m_time_step;
float m_outer_epsilon;
};
NS_MIA_END
#endif
deformer.hh
P3DInterpolatorFactory
std::shared_ptr< C3DInterpolatorFactory > P3DInterpolatorFactory
Pointer type of the 3D interpolation factory.
Definition 3d/interpolator.hh:250
model.hh
timestep.hh
transform.hh
C3DInterpolatorFactory
A factory to create interpolators of a given type by providing input data.
Definition 3d/interpolator.hh:175
C3DMultiImageRegister::C3DMultiImageRegister
C3DMultiImageRegister(size_t start_size, size_t max_iter, C3DRegModel &model, C3DRegTimeStep &time_step, float outer_epsilon)
C3DRegTimeStep
The time-step part of time-marching registration algorithms.
Definition 3d/timestep.hh:39
EXPORT_3D
#define EXPORT_3D
Definition defines3d.hh:45
NS_MIA_BEGIN
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition defines.hh:33
NS_MIA_END
#define NS_MIA_END
conveniance define to end the mia namespace
Definition defines.hh:36
P3DFVectorfield
NS_MIA_BEGIN typedef std::shared_ptr< C3DFVectorfield > P3DFVectorfield
pointer type for a 3D vector field
Definition multireg.hh:36
P3DTransformation
std::shared_ptr< C3DTransformation > P3DTransformation
pointer type for a 3D transformation
Definition 3d/transform.hh:43