TuttleOFX  1
ThinningProcess.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_PLUGIN_THINNING_PROCESS_HPP_
00002 #define _TUTTLE_PLUGIN_THINNING_PROCESS_HPP_
00003 
00004 #include <tuttle/plugin/ImageGilFilterProcessor.hpp>
00005 #include <boost/scoped_ptr.hpp>
00006 
00007 namespace tuttle {
00008 namespace plugin {
00009 namespace thinning {
00010 
00011 /**
00012  * @brief Thinning process
00013  *
00014  */
00015 template<class View>
00016 class ThinningProcess : public ImageGilFilterProcessor<View>
00017 {
00018 public:
00019         typedef typename View::value_type Pixel;
00020         typedef typename boost::gil::channel_type<View>::type Channel;
00021         typedef float Scalar;
00022 protected :
00023     ThinningPlugin&    _plugin;            ///< Rendering plugin
00024         ThinningProcessParams<Scalar> _params; ///< parameters
00025 
00026 public:
00027     ThinningProcess( ThinningPlugin& effect );
00028 
00029         void setup( const OFX::RenderArguments& args );
00030 
00031     void multiThreadProcessImages( const OfxRectI& procWindowRoW );
00032 };
00033 
00034 }
00035 }
00036 }
00037 
00038 #include "ThinningProcess.tcc"
00039 
00040 #endif