22 #ifndef mia_3d_vfregularizerkernel_hh 23 #define mia_3d_vfregularizerkernel_hh 55 typedef std::shared_ptr< C3DFVectorfieldRegularizerKernel >
Pointer;
59 float evaluate_pertuberation_row(
unsigned y,
unsigned z,
CBuffers& buffers)
const;
67 float residual_thresh);
69 float evaluate_row(
unsigned y,
unsigned z,
CBuffers& buffers);
71 float evaluate_row_sparse(
unsigned y,
unsigned z,
CBuffers& buffers);
73 unsigned get_boundary_padding()
const;
75 PBuffers get_buffers()
const;
77 void start_slice(
unsigned z,
CBuffers& buffers)
const;
79 bool has_pertuberation()
const;
86 float get_residual_thresh()
const;
88 virtual void post_set_data_fields();
90 virtual float do_evaluate_row(
unsigned y,
unsigned z,
CBuffers& buffers) = 0;
92 virtual float do_evaluate_row_sparse(
unsigned y,
unsigned z,
CBuffers& buffers) = 0;
94 virtual unsigned do_get_boundary_padding()
const = 0;
96 virtual PBuffers do_get_buffers()
const;
98 virtual void do_start_slice(
unsigned z,
CBuffers& buffers)
const;
100 virtual float do_evaluate_pertuberation_row(
unsigned y,
unsigned z,
CBuffers& buffers)
const;
107 float m_residual_thresh;
108 bool m_has_pertuberation;
114 return m_has_pertuberation;
138 return *m_update_flags;
150 return m_residual_thresh;
the singleton that a plug-in handler really is
T3DDatafield< unsigned char > & get_set_flags() const
THandlerSingleton< TFactoryPluginHandler< C3DFVectorfieldRegularizerKernelPlugin > > C3DFVectorfieldRegularizerKernelPluginHandler
float get_residual_thresh() const
static const char * type_descr
a 3D field of floating point single accuracy 3D vectors
std::shared_ptr< C3DFVectorfieldRegularizerKernel > Pointer
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
C3DFVectorfield & get_output_field() const
bool has_pertuberation() const
This is tha base of all plugins that create "things", like filters, cost functions time step operator...
const T3DDatafield< unsigned char > & get_update_flags() const
TFactory< C3DFVectorfieldRegularizerKernel > C3DFVectorfieldRegularizerKernelPlugin
const C3DFVectorfield & get_input_field() const
std::unique_ptr< CBuffers > PBuffers
The base class for all plug-in created object.
C3DFVectorfield plugin_data
the Base class for all plugn handlers that deal with factory plugins.
T3DDatafield< float > & get_residua() const
C3DFVectorfieldRegularizerKernel::Pointer P3DVectorfieldRegularizerKernel
C3DFVectorfieldRegularizerKernel plugin_type
The basic template of all plugin handlers.
#define NS_MIA_END
conveniance define to end the mia namespace