2d/register.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_2d_register_hh
#define mia_2d_register_hh
#include <mia/2d/model.hh>
#include <mia/2d/timestep.hh>
#include <mia/2d/cost.hh>
#include <mia/2d/fatcost.hh>
#include <mia/2d/transformfactory.hh>
NS_MIA_BEGIN
class EXPORT_2D C2DMultiImageNonrigidRegister
{
public:
C2DMultiImageNonrigidRegister(size_t start_size, size_t max_iter,
C2DRegModel& model,
C2DRegTimeStep& time_step,
C2DTransformCreator& trans_factory,
float outer_epsilon);
P2DTransformation operator () (C2DImageFatCostList& cost, P2DInterpolatorFactory ipf);
private:
void reg_level(C2DImageFatCostList& cost, C2DGridTransformation& result, const C2DInterpolatorFactory& ipf);
void reg_level_regrid(C2DImageFatCostList& cost, C2DGridTransformation& result, const C2DInterpolatorFactory& ipf);
size_t m_start_size;
size_t m_max_iter;
C2DRegModel& m_model;
C2DRegTimeStep& m_time_step;
float m_outer_epsilon;
};
NS_MIA_END
#endif
cost.hh
P2DInterpolatorFactory
std::shared_ptr< C2DInterpolatorFactory > P2DInterpolatorFactory
Pointer type for the 2D interpolationfactory.
Definition 2d/interpolator.hh:255
model.hh
timestep.hh
transformfactory.hh
C2DInterpolatorFactory
The factory to create an interpolator from some input data.
Definition 2d/interpolator.hh:190
C2DMultiImageNonrigidRegister::C2DMultiImageNonrigidRegister
C2DMultiImageNonrigidRegister(size_t start_size, size_t max_iter, C2DRegModel &model, C2DRegTimeStep &time_step, C2DTransformCreator &trans_factory, float outer_epsilon)
C2DRegTimeStep
The time step class for time-marching registration algorithms.
Definition 2d/timestep.hh:43
EXPORT_2D
#define EXPORT_2D
Definition defines2d.hh:37
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
P2DTransformation
C2DTransformation::Pointer P2DTransformation
Pointer type for the 2D transformation.
Definition 2d/transform.hh:409
C2DTransformCreator
TTransformCreator< C2DTransformation > C2DTransformCreator
The base class for 2D transformation creators.
Definition 2d/transformfactory.hh:37
C2DRegModel
NS_MIA_BEGIN typedef TRegModel< 2 > C2DRegModel
the 2D time-marching registration model
Definition 2d/model.hh:49