21 #ifndef mia_3d_filter_hh
22 #define mia_3d_filter_hh
24 #include <boost/any.hpp>
93 class EXPORT_3D C3DFilterPluginHandlerTestPath {
95 C3DFilterPluginHandlerTestPath();
97 C1DSpacialKernelPluginHandlerTestPath spk_path;
120 template <
typename S>
123 std::vector<P3DFilter> filters;
125 for (
typename std::vector<S>::const_iterator i = chain.begin();
126 i != chain.end(); ++i) {
127 cvdebug() <<
"Prepare filter " << *i << std::endl;
130 std::stringstream error;
131 error <<
"Filter " << *i <<
" not found";
132 throw std::invalid_argument(error.str());
134 filters.push_back(
filter);
the singleton that a plug-in handler really is
std::shared_ptr< C3DFilter > P3DFilter
The 3D filter shared pointer.
combiner_type plugin_type
C3DImage::Pointer P3DImage
define a shortcut to the 3D image shared pointer.
THandlerSingleton< TFactoryPluginHandler< C3DImageCombinerPlugin > > C3DImageCombinerPluginHandler
P2DImage EXPORT_2D run_filter(const C2DImage &image, const char *filter)
base class for all filer type functors.
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
static F::result_type filter(const F &f, const B &b)
TDataFilterPlugin< C3DImage > C3DFilterPlugin
The 3D filter plugin type.
This is tha base of all plugins that create "things", like filters, cost functions time step operator...
TFactory< C3DImageCombiner > C3DImageCombinerPlugin
Base class for plug-ins that combine two 3D images in certain ways.
The generic base type of a 3D image.
Generic image filter plugin base.
PCombinerResult result_type
defines the return type of the filter function
vstream & cvdebug()
Short for debug output in non-debug build output send to this will be ignored.
P2DImage EXPORT_2D run_filter_chain(P2DImage image, size_t nfilters, const char *filters[]) __attribute__((deprecated))
create and use a chain of filters
P3DFilter produce_3dimage_filter(const char *descr)
std::shared_ptr< C3DImageCombiner > P3DImageCombiner
std::vector< P3DFilter > create_filter_chain(const std::vector< S > &chain)
*/
TDataFilter< C3DImage > C3DFilter
Base class for 3D image filters. Filters are implemented as plug-ins.
The base class for all plug-in created object.
static const T & instance()
TFilterChain< C3DFilterPluginHandler > C3DImageFilterChain
3D filter chain to apply various filters in one run
Generic interface class to data filters.
THandlerSingleton< TFactoryPluginHandler< C3DFilterPlugin > > C3DFilterPluginHandler
The 3D filter plugin handler.
#define NS_MIA_END
conveniance define to end the mia namespace