3d/vfregularizer.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_vectorfieldregularizer_hh
#define mia_3d_vectorfieldregularizer_hh
#include <mia/core/factory.hh>
#include <mia/3d/vectorfield.hh>
NS_MIA_BEGIN
class EXPORT_3D C3DFVectorfieldRegularizer : public CProductBase
{
public:
typedef C3DFVectorfieldRegularizer plugin_type;
typedef C3DFVectorfield plugin_data;
static const char *type_descr;
typedef std::shared_ptr< C3DFVectorfieldRegularizer > Pointer;
virtual ~C3DFVectorfieldRegularizer();
double run(C3DFVectorfield& velocity, C3DFVectorfield& force, const C3DFVectorfield& deform) const;
void set_size(const C3DBounds& size);
protected:
const C3DBounds& get_size() const;
private:
virtual double do_run(C3DFVectorfield& velocity, C3DFVectorfield& force, const C3DFVectorfield& deform) const = 0;
virtual void on_size_changed();
C3DBounds m_size;
};
typedef C3DFVectorfieldRegularizer::Pointer P3DVectorfieldRegularizer;
typedef TFactory<C3DFVectorfieldRegularizer> C3DFVectorfieldRegularizerPlugin;
typedef THandlerSingleton<TFactoryPluginHandler<C3DFVectorfieldRegularizerPlugin>> C3DFVectorfieldRegularizerPluginHandler;
template <> const char *const TPluginHandler<C3DFVectorfieldRegularizerPlugin>::m_help;
extern template class EXPORT_3D TFactory<C3DFVectorfieldRegularizer>;
extern template class EXPORT_3D TFactoryPluginHandler<C3DFVectorfieldRegularizerPlugin>;
extern template class EXPORT_3D THandlerSingleton<TFactoryPluginHandler<C3DFVectorfieldRegularizerPlugin>>;
FACTORY_TRAIT(C3DFVectorfieldRegularizerPluginHandler);
NS_MIA_END
#endif
C3DBounds
T3DVector< unsigned int > C3DBounds
A unsinged int 3D Vector (used for 3D field sizes).
Definition 3d/vector.hh:415
vectorfield.hh
C3DFVectorfieldRegularizerPluginHandler
THandlerSingleton< TFactoryPluginHandler< C3DFVectorfieldRegularizerPlugin > > C3DFVectorfieldRegularizerPluginHandler
Definition 3d/vfregularizer.hh:88
C3DFVectorfieldRegularizerPlugin
TFactory< C3DFVectorfieldRegularizer > C3DFVectorfieldRegularizerPlugin
Definition 3d/vfregularizer.hh:86
P3DVectorfieldRegularizer
C3DFVectorfieldRegularizer::Pointer P3DVectorfieldRegularizer
Definition 3d/vfregularizer.hh:84
C3DFVectorfieldRegularizer
Definition 3d/vfregularizer.hh:42
C3DFVectorfieldRegularizer::plugin_type
C3DFVectorfieldRegularizer plugin_type
Definition 3d/vfregularizer.hh:44
C3DFVectorfieldRegularizer::run
double run(C3DFVectorfield &velocity, C3DFVectorfield &force, const C3DFVectorfield &deform) const
C3DFVectorfieldRegularizer::get_size
const C3DBounds & get_size() const
C3DFVectorfieldRegularizer::plugin_data
C3DFVectorfield plugin_data
Definition 3d/vfregularizer.hh:45
C3DFVectorfieldRegularizer::Pointer
std::shared_ptr< C3DFVectorfieldRegularizer > Pointer
Definition 3d/vfregularizer.hh:49
C3DFVectorfieldRegularizer::type_descr
static const char * type_descr
Definition 3d/vfregularizer.hh:47
C3DFVectorfieldRegularizer::~C3DFVectorfieldRegularizer
virtual ~C3DFVectorfieldRegularizer()
C3DFVectorfieldRegularizer::set_size
void set_size(const C3DBounds &size)
C3DFVectorfield
a 3D field of floating point single accuracy 3D vectors
Definition 3d/vectorfield.hh:103
CProductBase
The base class for all plug-in created object.
Definition product_base.hh:41
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
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
factory.hh
FACTORY_TRAIT
#define FACTORY_TRAIT(F)
Definition factory_trait.hh:69