21 #ifndef mia_core_spacial_kernel_hh
22 #define mia_core_spacial_kernel_hh
83 std::vector<double>
apply(
const std::vector<double>& data)
const;
87 virtual size_t do_size()
const = 0;
89 virtual std::vector<double> do_apply(
const std::vector<double>& data)
const = 0;
159 virtual size_t do_size()
const;
171 template<>
const char *
const
base class for 1D filter kernels
C1DFilterKernel(unsigned fsize)
std::vector< double > apply(const std::vector< double > &data) const
void apply_inplace(std::vector< double > &data) const
spacial_kernel_data plugin_data
define the plugin search path, data part
size_t size() const
returns the width of the kernel
kernel_plugin_type plugin_type
define the plugin search path, type part
virtual ~C1DFilterKernel()
int get_fsize() const
returns the filter width definition parameter
Base class for folding kernal types.
iterator begin()
returns an iterator at the begin of the kernel
vec_mask::iterator iterator
kernel iterator
C1DFoldingKernel(int fsize)
std::vector< double > vec_mask
Data type of the kernel coefficient vector.
iterator dbegin()
returns an iterator at the begin if the derivative of the kernel
vec_mask::const_iterator const_iterator
iterator over the kernel
double operator[](int i) const
standard access operator, ro version
double & operator[](int i)
standard access operator, rw version
const_iterator begin() const
returns a constant iterator at the begin of the filter kernel
iterator dend()
returns an iterator at the end if the derivative of the kernel
iterator end()
returns an iterator at the end of the kernel
const_iterator dbegin() const
returns a constant iterator at the begin of the derivative of the filter kernel
const_iterator end() const
returns a constant iterator at the end of the filter kernel
const_iterator dend() const
returns a constant iterator at the end of the derivative of the filter kernel
The base class for all plug-in created object.
This is tha base of all plugins that create "things", like filters, cost functions time step operator...
the singleton that a plug-in handler really is
static const T & instance()
The basic template of all plugin handlers.
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
#define NS_MIA_END
conveniance define to end the mia namespace
P1DSpacialKernel produce_spacial_kernel(const std::string &descr)
TFactory< C1DFoldingKernel > C1DSpacialKernelPlugin
base class for filters kernels working in the spacial domain
std::shared_ptr< C1DFoldingKernel > P1DSpacialKernel
THandlerSingleton< TFactoryPluginHandler< C1DSpacialKernelPlugin > > C1DSpacialKernelPluginHandler
plugin handler for spaciel filter kernels
static const char * type_descr
static const char * data_descr