TuttleOFX
1
|
Normalize process. More...
#include <NormalizeProcess.hpp>
Public Types | |
typedef View::value_type | Pixel |
typedef boost::gil::channel_type< View > ::type | Channel |
typedef boost::gil::channel_type< View > ::type | d_channel_t |
typedef boost::gil::pixel < boost::gil::bits32f, d_channel_t > | Ratio_pixel_t |
typedef float | Scalar |
Public Member Functions | |
NormalizeProcess (NormalizePlugin &effect) | |
void | setup (const OFX::RenderArguments &args) |
void | multiThreadProcessImages (const OfxRectI &procWindowRoW) |
Function called by rendering thread each time a process must be done. | |
template<class WorkView , typename LocalChannel , typename Pixel32f > | |
void | processChannel (View &src, View &dst, bool process, Pixel32f &ratio, Pixel32f &sMin, Pixel32f &dMin) |
template<> | |
void | multiThreadProcessImages (const OfxRectI &procWindowRoW) |
this is called by multiThreadFunction to actually process images, override in derived classes | |
template<> | |
void | multiThreadProcessImages (const OfxRectI &procWindowRoW) |
this is called by multiThreadFunction to actually process images, override in derived classes | |
template<> | |
void | multiThreadProcessImages (const OfxRectI &procWindowRoW) |
this is called by multiThreadFunction to actually process images, override in derived classes | |
template<> | |
void | multiThreadProcessImages (const OfxRectI &procWindowRoW) |
this is called by multiThreadFunction to actually process images, override in derived classes | |
template<> | |
void | multiThreadProcessImages (const OfxRectI &procWindowRoW) |
this is called by multiThreadFunction to actually process images, override in derived classes | |
template<> | |
void | multiThreadProcessImages (const OfxRectI &procWindowRoW) |
this is called by multiThreadFunction to actually process images, override in derived classes | |
Protected Member Functions | |
template<class WorkView , typename LocalChannel , typename P > | |
void | processChannel (View &src, View &dst, bool process, P &ratio, P &sMin, P &dMin) |
Protected Attributes | |
NormalizePlugin & | _plugin |
Rendering plugin. | |
NormalizeProcessParams< Scalar > | _params |
parameters | |
boost::gil::rgba32f_pixel_t | _sMin |
Processing datas. | |
boost::gil::rgba32f_pixel_t | _dMin |
min value in destination image | |
boost::gil::rgba32f_pixel_t | _ratio |
Normalize process.
Definition at line 18 of file NormalizeProcess.hpp.
typedef boost::gil::channel_type<View>::type tuttle::plugin::normalize::NormalizeProcess< View >::Channel |
Definition at line 22 of file NormalizeProcess.hpp.
typedef boost::gil::channel_type<View>::type tuttle::plugin::normalize::NormalizeProcess< View >::d_channel_t |
Definition at line 25 of file NormalizeProcess.hpp.
typedef View::value_type tuttle::plugin::normalize::NormalizeProcess< View >::Pixel |
Reimplemented from tuttle::plugin::ImageGilProcessor< View >.
Definition at line 21 of file NormalizeProcess.hpp.
typedef boost::gil::pixel<boost::gil::bits32f, d_channel_t> tuttle::plugin::normalize::NormalizeProcess< View >::Ratio_pixel_t |
Definition at line 28 of file NormalizeProcess.hpp.
typedef float tuttle::plugin::normalize::NormalizeProcess< View >::Scalar |
Definition at line 30 of file NormalizeProcess.hpp.
tuttle::plugin::normalize::NormalizeProcess< View >::NormalizeProcess | ( | NormalizePlugin & | effect | ) |
Definition at line 23 of file NormalizeProcess.tcc.
void tuttle::plugin::normalize::NormalizeProcess< View >::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 112 of file NormalizeProcess.tcc.
References terry::subimage_view(), terry::algorithm::transform_pixels_progress(), tuttle::translateRegion(), OfxRectI::x1, OfxRectI::x2, OfxRectI::y1, and OfxRectI::y2.
void tuttle::plugin::normalize::NormalizeProcess< boost::gil::rgb32f_view_t >::multiThreadProcessImages | ( | const OfxRectI & | windowRoW | ) | [virtual] |
this is called by multiThreadFunction to actually process images, override in derived classes
Implements tuttle::plugin::ImageProcessor.
Definition at line 160 of file NormalizeProcess.tcc.
References terry::subimage_view(), terry::algorithm::transform_pixels_progress(), tuttle::translateRegion(), OfxRectI::x1, OfxRectI::x2, OfxRectI::y1, and OfxRectI::y2.
void tuttle::plugin::normalize::NormalizeProcess< boost::gil::rgb16_view_t >::multiThreadProcessImages | ( | const OfxRectI & | windowRoW | ) | [virtual] |
this is called by multiThreadFunction to actually process images, override in derived classes
Implements tuttle::plugin::ImageProcessor.
Definition at line 218 of file NormalizeProcess.tcc.
References terry::subimage_view(), terry::algorithm::transform_pixels_progress(), tuttle::translateRegion(), OfxRectI::x1, OfxRectI::x2, OfxRectI::y1, and OfxRectI::y2.
void tuttle::plugin::normalize::NormalizeProcess< boost::gil::rgb8_view_t >::multiThreadProcessImages | ( | const OfxRectI & | windowRoW | ) | [virtual] |
this is called by multiThreadFunction to actually process images, override in derived classes
Implements tuttle::plugin::ImageProcessor.
Definition at line 277 of file NormalizeProcess.tcc.
References terry::subimage_view(), terry::algorithm::transform_pixels_progress(), tuttle::translateRegion(), OfxRectI::x1, OfxRectI::x2, OfxRectI::y1, and OfxRectI::y2.
void tuttle::plugin::normalize::NormalizeProcess< boost::gil::gray32f_view_t >::multiThreadProcessImages | ( | const OfxRectI & | windowRoW | ) | [virtual] |
this is called by multiThreadFunction to actually process images, override in derived classes
Implements tuttle::plugin::ImageProcessor.
Definition at line 335 of file NormalizeProcess.tcc.
References terry::subimage_view(), terry::algorithm::transform_pixels_progress(), tuttle::translateRegion(), OfxRectI::x1, OfxRectI::x2, OfxRectI::y1, and OfxRectI::y2.
void tuttle::plugin::normalize::NormalizeProcess< boost::gil::gray16_view_t >::multiThreadProcessImages | ( | const OfxRectI & | windowRoW | ) | [virtual] |
this is called by multiThreadFunction to actually process images, override in derived classes
Implements tuttle::plugin::ImageProcessor.
Definition at line 369 of file NormalizeProcess.tcc.
References terry::subimage_view(), terry::algorithm::transform_pixels_progress(), tuttle::translateRegion(), OfxRectI::x1, OfxRectI::x2, OfxRectI::y1, and OfxRectI::y2.
void tuttle::plugin::normalize::NormalizeProcess< boost::gil::gray8_view_t >::multiThreadProcessImages | ( | const OfxRectI & | windowRoW | ) | [virtual] |
this is called by multiThreadFunction to actually process images, override in derived classes
Implements tuttle::plugin::ImageProcessor.
Definition at line 404 of file NormalizeProcess.tcc.
References terry::subimage_view(), terry::algorithm::transform_pixels_progress(), tuttle::translateRegion(), OfxRectI::x1, OfxRectI::x2, OfxRectI::y1, and OfxRectI::y2.
void tuttle::plugin::normalize::NormalizeProcess< View >::processChannel | ( | View & | src, |
View & | dst, | ||
bool | process, | ||
P & | ratio, | ||
P & | sMin, | ||
P & | dMin | ||
) | [protected] |
void tuttle::plugin::normalize::NormalizeProcess< View >::processChannel | ( | View & | src, |
View & | dst, | ||
bool | process, | ||
Pixel32f & | ratio, | ||
Pixel32f & | sMin, | ||
Pixel32f & | dMin | ||
) |
Definition at line 79 of file NormalizeProcess.tcc.
References tuttle::plugin::merge::copy_pixels(), tuttle::host::graph::make(), and terry::algorithm::transform_pixels().
void tuttle::plugin::normalize::NormalizeProcess< View >::setup | ( | const OFX::RenderArguments & | args | ) | [virtual] |
Reimplemented from tuttle::plugin::ImageGilFilterProcessor< View >.
Definition at line 30 of file NormalizeProcess.tcc.
References tuttle::plugin::normalize::eParamModeAnalyse, tuttle::plugin::normalize::eParamModeCustom, terry::max_value(), and OFX::RenderArguments::renderScale.
boost::gil::rgba32f_pixel_t tuttle::plugin::normalize::NormalizeProcess< View >::_dMin [protected] |
min value in destination image
Definition at line 38 of file NormalizeProcess.hpp.
NormalizeProcessParams<Scalar> tuttle::plugin::normalize::NormalizeProcess< View >::_params [protected] |
parameters
Definition at line 33 of file NormalizeProcess.hpp.
NormalizePlugin& tuttle::plugin::normalize::NormalizeProcess< View >::_plugin [protected] |
Rendering plugin.
Definition at line 32 of file NormalizeProcess.hpp.
boost::gil::rgba32f_pixel_t tuttle::plugin::normalize::NormalizeProcess< View >::_ratio [protected] |
scale to go from source to dest
Definition at line 39 of file NormalizeProcess.hpp.
boost::gil::rgba32f_pixel_t tuttle::plugin::normalize::NormalizeProcess< View >::_sMin [protected] |