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