TuttleOFX
1
|
Sobel process. More...
#include <SobelProcess.hpp>
Public Types | |
typedef float | Scalar |
typedef SView::point_t | Point |
typedef DView::value_type | DPixel |
Public Member Functions | |
SobelProcess (SobelPlugin &effect) | |
void | setup (const OFX::RenderArguments &args) |
void | preProcess () |
called before any MP is done | |
void | multiThreadProcessImages (const OfxRectI &procWindowRoW) |
Function called by rendering thread each time a process must be done. | |
template<class ProcPixelGray > | |
void | computeYPass2 (DView &dst, const Point &proc_tl, boost::mpl::true_) |
template<class ProcPixelGray > | |
void | computeYPass2 (DView &dst, const Point &proc_tl, boost::mpl::false_) |
void | computeGradientDirection (DView &dst, boost::mpl::true_) |
void | computeGradientDirection (DView &dst, boost::mpl::false_) |
Protected Attributes | |
SobelPlugin & | _plugin |
Rendering plugin. | |
SobelProcessParams< Scalar > | _params |
user parameters | |
DPixel | _pixelZero |
Sobel process.
Definition at line 16 of file SobelProcess.hpp.
typedef DView::value_type tuttle::plugin::sobel::SobelProcess< SView, DView >::DPixel |
Definition at line 21 of file SobelProcess.hpp.
typedef SView::point_t tuttle::plugin::sobel::SobelProcess< SView, DView >::Point |
Definition at line 20 of file SobelProcess.hpp.
typedef float tuttle::plugin::sobel::SobelProcess< SView, DView >::Scalar |
Definition at line 19 of file SobelProcess.hpp.
tuttle::plugin::sobel::SobelProcess< SView, DView >::SobelProcess | ( | SobelPlugin & | effect | ) |
Definition at line 29 of file SobelProcess.tcc.
References tuttle::plugin::sobel::SobelProcess< SView, DView >::_pixelZero.
void tuttle::plugin::sobel::SobelProcess< SView, DView >::computeGradientDirection | ( | DView & | dst, |
boost::mpl::true_ | |||
) |
Definition at line 222 of file SobelProcess.tcc.
References tuttle::plugin::sobel::SobelProcess< SView, DView >::_params, tuttle::plugin::merge::fill_pixels(), tuttle::plugin::OfxProgress::getOfxProgress(), terry::max_value(), tuttle::plugin::OfxProgress::progressForward(), and terry::algorithm::transform_pixels_progress().
Referenced by tuttle::plugin::sobel::SobelProcess< SView, DView >::multiThreadProcessImages().
void tuttle::plugin::sobel::SobelProcess< SView, DView >::computeGradientDirection | ( | DView & | dst, |
boost::mpl::false_ | |||
) | [inline] |
Definition at line 63 of file SobelProcess.hpp.
void tuttle::plugin::sobel::SobelProcess< SView, DView >::computeYPass2 | ( | DView & | dst, |
const Point & | proc_tl, | ||
boost::mpl::true_ | |||
) | [inline] |
Definition at line 45 of file SobelProcess.hpp.
References tuttle::plugin::sobel::SobelProcess< SView, DView >::_params, and tuttle::plugin::ImageGilFilterProcessor< SView, DView >::_srcView.
void tuttle::plugin::sobel::SobelProcess< SView, DView >::computeYPass2 | ( | DView & | dst, |
const Point & | proc_tl, | ||
boost::mpl::false_ | |||
) | [inline] |
Definition at line 57 of file SobelProcess.hpp.
void tuttle::plugin::sobel::SobelProcess< SView, DView >::multiThreadProcessImages | ( | const OfxRectI & | procWindowRoW | ) | [virtual] |
Function called by rendering thread each time a process must be done.
[in] | procWindowRoW | Processing window |
Implements tuttle::plugin::ImageProcessor.
Definition at line 56 of file SobelProcess.tcc.
References tuttle::plugin::ImageGilProcessor< DView >::_dstView, tuttle::plugin::sobel::SobelProcess< SView, DView >::_params, tuttle::plugin::sobel::SobelProcess< SView, DView >::_pixelZero, tuttle::plugin::ImageGilFilterProcessor< SView, DView >::_srcView, tuttle::plugin::sobel::SobelProcess< SView, DView >::computeGradientDirection(), tuttle::plugin::sobel::eParamPass1, tuttle::plugin::sobel::eParamPass2, tuttle::plugin::sobel::eParamPassFull, tuttle::plugin::merge::fill_pixels(), tuttle::plugin::OfxProgress::getOfxProgress(), tuttle::plugin::OfxProgress::progressForward(), terry::subimage_view(), terry::algorithm::transform_pixels_progress(), tuttle::plugin::ImageProcessor::translateRoWToOutputClipCoordinates(), OfxRectI::x1, OfxRectI::x2, OfxRectI::y1, and OfxRectI::y2.
void tuttle::plugin::sobel::SobelProcess< SView, DView >::preProcess | ( | ) | [virtual] |
called before any MP is done
Reimplemented from tuttle::plugin::ImageProcessor.
Definition at line 46 of file SobelProcess.tcc.
References tuttle::plugin::ImageProcessor::_renderWindowSize, tuttle::plugin::OfxProgress::progressBegin(), and OfxPointI::x.
void tuttle::plugin::sobel::SobelProcess< SView, DView >::setup | ( | const OFX::RenderArguments & | args | ) | [virtual] |
Reimplemented from tuttle::plugin::ImageGilFilterProcessor< SView, DView >.
Definition at line 38 of file SobelProcess.tcc.
References tuttle::plugin::sobel::SobelProcess< SView, DView >::_params, tuttle::plugin::sobel::SobelProcess< SView, DView >::_plugin, tuttle::plugin::sobel::SobelPlugin::getProcessParams(), and OFX::RenderArguments::renderScale.
SobelProcessParams<Scalar> tuttle::plugin::sobel::SobelProcess< SView, DView >::_params [protected] |
user parameters
Definition at line 25 of file SobelProcess.hpp.
Referenced by tuttle::plugin::sobel::SobelProcess< SView, DView >::computeGradientDirection(), tuttle::plugin::sobel::SobelProcess< SView, DView >::computeYPass2(), tuttle::plugin::sobel::SobelProcess< SView, DView >::multiThreadProcessImages(), and tuttle::plugin::sobel::SobelProcess< SView, DView >::setup().
DPixel tuttle::plugin::sobel::SobelProcess< SView, DView >::_pixelZero [protected] |
Definition at line 27 of file SobelProcess.hpp.
Referenced by tuttle::plugin::sobel::SobelProcess< SView, DView >::multiThreadProcessImages(), and tuttle::plugin::sobel::SobelProcess< SView, DView >::SobelProcess().
SobelPlugin& tuttle::plugin::sobel::SobelProcess< SView, DView >::_plugin [protected] |
Rendering plugin.
Definition at line 24 of file SobelProcess.hpp.
Referenced by tuttle::plugin::sobel::SobelProcess< SView, DView >::setup().