2d/fullcost.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_fullcost_hh
#define mia_2d_fullcost_hh
#include <mia/2d/transform.hh>
#include <mia/2d/cost.hh>
#include <mia/core/export_handler.hh>
#include <mia/template/fullcost.hh>
NS_MIA_BEGIN
typedef TFullCost<C2DTransformation> C2DFullCost;
typedef C2DFullCost::Pointer P2DFullCost;
typedef TFullCostPlugin<C2DTransformation> C2DFullCostPlugin;
typedef THandlerSingleton<TFactoryPluginHandler<C2DFullCostPlugin>> C2DFullCostPluginHandler;
inline P2DFullCost produce_2dfullcost(const std::string& descr)
{
return C2DFullCostPluginHandler::instance().produce(descr);
}
FACTORY_TRAIT(C2DFullCostPluginHandler);
NS_MIA_END
#endif
cost.hh
C2DFullCostPluginHandler
THandlerSingleton< TFactoryPluginHandler< C2DFullCostPlugin > > C2DFullCostPluginHandler
plugin-handler for the full-cost plug-ins
Definition 2d/fullcost.hh:46
produce_2dfullcost
P2DFullCost produce_2dfullcost(const std::string &descr)
Definition 2d/fullcost.hh:54
P2DFullCost
C2DFullCost::Pointer P2DFullCost
Pointer type for the full-cost function types.
Definition 2d/fullcost.hh:40
C2DFullCostPlugin
TFullCostPlugin< C2DTransformation > C2DFullCostPlugin
Plug-in type for 2D full cost plug-ins.
Definition 2d/fullcost.hh:43
transform.hh
TFullCostPlugin
the base class for the TFullCost cost function plug-ins.
Definition template/fullcost.hh:139
TFullCost
Base class for a general cost function.
Definition template/fullcost.hh:44
THandlerSingleton
the singleton that a plug-in handler really is
Definition handler.hh:159
THandlerSingleton< TFactoryPluginHandler< C2DFullCostPlugin > >::instance
static const TFactoryPluginHandler< C2DFullCostPlugin > & instance()
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
export_handler.hh
C2DFullCost
NS_MIA_BEGIN typedef TFullCost< C2DTransformation > C2DFullCost
Base class for the full cost functions.
Definition 2d/fullcost.hh:37
FACTORY_TRAIT
#define FACTORY_TRAIT(F)
Definition factory_trait.hh:69
fullcost.hh