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