TuttleOFX  1
tuttle::plugin::normalize::NormalizeProcess< View > Class Template Reference

Normalize process. More...

#include <NormalizeProcess.hpp>

Inheritance diagram for tuttle::plugin::normalize::NormalizeProcess< View >:
Collaboration diagram for tuttle::plugin::normalize::NormalizeProcess< View >:

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

Detailed Description

template<class View>
class tuttle::plugin::normalize::NormalizeProcess< View >

Normalize process.

Definition at line 18 of file NormalizeProcess.hpp.


Member Typedef Documentation

template<class View >
typedef boost::gil::channel_type<View>::type tuttle::plugin::normalize::NormalizeProcess< View >::Channel

Definition at line 22 of file NormalizeProcess.hpp.

template<class View >
typedef boost::gil::channel_type<View>::type tuttle::plugin::normalize::NormalizeProcess< View >::d_channel_t

Definition at line 25 of file NormalizeProcess.hpp.

template<class View >
typedef View::value_type tuttle::plugin::normalize::NormalizeProcess< View >::Pixel

Reimplemented from tuttle::plugin::ImageGilProcessor< View >.

Definition at line 21 of file NormalizeProcess.hpp.

template<class View >
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.

template<class View >
typedef float tuttle::plugin::normalize::NormalizeProcess< View >::Scalar

Definition at line 30 of file NormalizeProcess.hpp.


Constructor & Destructor Documentation

Definition at line 23 of file NormalizeProcess.tcc.


Member Function Documentation

template<class View >
void tuttle::plugin::normalize::NormalizeProcess< View >::multiThreadProcessImages ( const OfxRectI procWindowRoW) [virtual]

Function called by rendering thread each time a process must be done.

Parameters:
[in]procWindowRoWProcessing 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.

Here is the call graph for this function:

template<>
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.

Here is the call graph for this function:

template<>
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.

Here is the call graph for this function:

template<>
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.

Here is the call graph for this function:

template<>
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.

Here is the call graph for this function:

template<>
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.

Here is the call graph for this function:

template<>
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.

Here is the call graph for this function:

template<class View >
template<class WorkView , typename LocalChannel , typename P >
void tuttle::plugin::normalize::NormalizeProcess< View >::processChannel ( View &  src,
View &  dst,
bool  process,
P &  ratio,
P &  sMin,
P &  dMin 
) [protected]
template<class View >
template<class WorkView , typename LocalChannel , typename Pixel32f >
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().

Here is the call graph for this function:

template<class View >
void tuttle::plugin::normalize::NormalizeProcess< View >::setup ( const OFX::RenderArguments args) [virtual]

Field Documentation

template<class View >
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.

parameters

Definition at line 33 of file NormalizeProcess.hpp.

template<class View >
NormalizePlugin& tuttle::plugin::normalize::NormalizeProcess< View >::_plugin [protected]

Rendering plugin.

Definition at line 32 of file NormalizeProcess.hpp.

template<class View >
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.

template<class View >
boost::gil::rgba32f_pixel_t tuttle::plugin::normalize::NormalizeProcess< View >::_sMin [protected]

Processing datas.

min value in source image

Definition at line 37 of file NormalizeProcess.hpp.


The documentation for this class was generated from the following files: