21 #ifndef mia_3d_filter_hh 22 #define mia_3d_filter_hh 24 #include <boost/any.hpp> 96 std::vector<P3DFilter> filters;
98 for (
typename std::vector<S>::const_iterator i = chain.begin();
99 i != chain.end(); ++i) {
100 cvdebug() <<
"Prepare filter " << *i << std::endl;
103 std::stringstream error;
104 error <<
"Filter " << *i <<
" not found";
105 throw std::invalid_argument(error.str());
107 filters.push_back(
filter);
the singleton that a plug-in handler really is
std::shared_ptr< C3DFilter > P3DFilter
The 3D filter shared pointer.
C3DImage::Pointer P3DImage
define a shortcut to the 3D image shared pointer.
THandlerSingleton< TFactoryPluginHandler< C3DImageCombinerPlugin > > C3DImageCombinerPluginHandler
Plugin handler for image combiner plugins.
#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.
P3DImage EXPORT_3D run_filter(const C3DImage &image, const char *filter)
convenience function: create and run a filter on an image
This is tha base of all plugins that create "things", like filters, cost functions time step operator...
TFactory< C3DImageCombiner > C3DImageCombinerPlugin
The generic base type of a 3D image.
Generic image filter plugin base.
TImageCombiner< C3DImage > C3DImageCombiner
Base class for plug-ins that combine two 3D images in certain ways.
create and use a chain of filters
P3DFilter produce_3dimage_filter(const char *descr)
std::vector< P3DFilter > create_filter_chain(const std::vector< S > &chain)
Convenience function to create a filter chain from a series of filter descriptions.
TDataFilter< C3DImage > C3DFilter
Base class for 3D image filters. Filters are implemented as plug-ins.
static const T & instance()
TFilterChain< C3DFilterPluginHandler > C3DImageFilterChain
3D filter chain to apply various filters in one run
Generic interface class to data filters.
std::shared_ptr< C3DImageCombiner > P3DImageCombiner
THandlerSingleton< TFactoryPluginHandler< C3DFilterPlugin > > C3DFilterPluginHandler
The 3D filter plugin handler.
P3DImage EXPORT_3D run_filter_chain(P3DImage image, const std::vector< const char *> &filters)
#define NS_MIA_END
conveniance define to end the mia namespace