2d/model.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_model_hh
#define mia_2d_model_hh
#include <mia/core/typedescr.hh>
#include <mia/core/regmodel.hh>
#include <mia/2d/image.hh>
NS_MIA_BEGIN
template <>
struct RegistrationTraits<2> {
typedef C2DImage Data;
typedef C2DFVectorfield Force;
typedef C2DFVectorfield Transformation;
};
typedef TRegModel<2> C2DRegModel;
typedef std::shared_ptr<C2DRegModel > P2DRegModel;
typedef TFactory<C2DRegModel> C2DRegModelPlugin;
template <> const char *const TPluginHandler<C2DRegModelPlugin>::m_help;
typedef THandlerSingleton< TFactoryPluginHandler<C2DRegModelPlugin>> C2DRegModelPluginHandler;
extern template class EXPORT_2D TRegModel<2>;
extern template class EXPORT_2D TPlugin<C2DImage, regmodel_type>;
extern template class EXPORT_2D TFactory<C2DRegModel>;
extern template class EXPORT_2D TFactoryPluginHandler<C2DRegModelPlugin>;
extern template class EXPORT_2D THandlerSingleton< TFactoryPluginHandler<C2DRegModelPlugin>>;
NS_MIA_END
#endif
image.hh
C2DRegModelPluginHandler
THandlerSingleton< TFactoryPluginHandler< C2DRegModelPlugin > > C2DRegModelPluginHandler
Definition 2d/model.hh:67
P2DRegModel
std::shared_ptr< C2DRegModel > P2DRegModel
Pointer type for the registration model.
Definition 2d/model.hh:52
TFactoryPluginHandler
the Base class for all plugn handlers that deal with factory plugins.
Definition factory.hh:95
TFactory
This is tha base of all plugins that create "things", like filters, cost functions time step operator...
Definition factory.hh:51
THandlerSingleton
the singleton that a plug-in handler really is
Definition handler.hh:159
TPlugin
The generic base for all plug-ins.
Definition plugin_base.hh:172
TRegModel
Base class for PDE model based registrations.
Definition regmodel.hh:56
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
C2DRegModelPlugin
TFactory< C2DRegModel > C2DRegModelPlugin
Plugin for the 2D registration model.
Definition 2d/model.hh:58
C2DRegModel
NS_MIA_BEGIN typedef TRegModel< 2 > C2DRegModel
the 2D time-marching registration model
Definition 2d/model.hh:49
regmodel.hh
typedescr.hh