TuttleOFX  1
tuttle::plugin::quality::DiffProcess< View > Class Template Reference

Diff process. More...

#include <DiffProcess.hpp>

Inheritance diagram for tuttle::plugin::quality::DiffProcess< View >:
Collaboration diagram for tuttle::plugin::quality::DiffProcess< View >:

Public Member Functions

 DiffProcess (DiffPlugin &instance)
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 SView >
boost::gil::pixel
< boost::gil::bits32f,
boost::gil::layout< typename
boost::gil::color_space_type
< SView >::type > > 
mse (const SView &v1, const SView &v2, const SView &dst, bool outputIsPsnr=false)
template<class SView >
boost::gil::pixel
< boost::gil::bits32f,
boost::gil::layout< typename
boost::gil::color_space_type
< SView >::type > > 
psnr (const SView &v1, const SView &v2, const SView &dst)

Protected Attributes

DiffPlugin_plugin
 Rendering plugin.
DiffProcessParams _params
 Rendering parameters.
View _srcViewA
 Source view A.
View _srcViewB
 Source view B.
boost::scoped_ptr< OFX::Image_srcA
boost::scoped_ptr< OFX::Image_srcB
OfxRectI _srcPixelRodA
OfxRectI _srcPixelRodB

Private Types

typedef boost::gil::pixel
< boost::gil::bits32f,
boost::gil::layout< typename
boost::gil::color_space_type
< View >::type > > 
PixelF

Detailed Description

template<class View>
class tuttle::plugin::quality::DiffProcess< View >

Diff process.

Definition at line 19 of file DiffProcess.hpp.


Member Typedef Documentation

template<class View >
typedef boost::gil::pixel<boost::gil::bits32f, boost::gil::layout<typename boost::gil::color_space_type<View>::type> > tuttle::plugin::quality::DiffProcess< View >::PixelF [private]

Definition at line 21 of file DiffProcess.hpp.


Constructor & Destructor Documentation

template<class View >
tuttle::plugin::quality::DiffProcess< View >::DiffProcess ( DiffPlugin instance)

Definition at line 14 of file DiffProcess.tcc.

References tuttle::plugin::ImageProcessor::setNoMultiThreading().

Here is the call graph for this function:


Member Function Documentation

template<class View >
template<class SView >
boost::gil::pixel< boost::gil::bits32f, boost::gil::layout< typename boost::gil::color_space_type< SView >::type > > tuttle::plugin::quality::DiffProcess< View >::mse ( const SView &  v1,
const SView &  v2,
const SView &  dst,
bool  outputIsPsnr = false 
)

Definition at line 158 of file DiffProcess.tcc.

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

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

Parameters:
[in]procWindowRoWProcessing window in RoW

Implements tuttle::plugin::ImageProcessor.

Definition at line 86 of file DiffProcess.tcc.

References boost::gil::color_convert(), tuttle::plugin::quality::eMeasureFunctionMSE, tuttle::plugin::quality::eMeasureFunctionPSNR, tuttle::plugin::quality::eMeasureFunctionSSIM, terry::subimage_view(), OfxRectI::x1, OfxRectI::x2, OfxRectI::y1, and OfxRectI::y2.

Here is the call graph for this function:

template<class View >
template<class SView >
boost::gil::pixel< boost::gil::bits32f, boost::gil::layout< typename boost::gil::color_space_type< SView >::type > > tuttle::plugin::quality::DiffProcess< View >::psnr ( const SView &  v1,
const SView &  v2,
const SView &  dst 
)

Definition at line 134 of file DiffProcess.tcc.

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

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

Definition at line 22 of file DiffProcess.tcc.

References OFX::getImageEffectHostDescription(), OFX::RenderArguments::renderScale, and OFX::RenderArguments::time.

Here is the call graph for this function:


Field Documentation

template<class View >
DiffProcessParams tuttle::plugin::quality::DiffProcess< View >::_params [protected]

Rendering parameters.

Definition at line 25 of file DiffProcess.hpp.

template<class View >
DiffPlugin& tuttle::plugin::quality::DiffProcess< View >::_plugin [protected]

Rendering plugin.

Definition at line 24 of file DiffProcess.hpp.

template<class View >
boost::scoped_ptr<OFX::Image> tuttle::plugin::quality::DiffProcess< View >::_srcA [protected]

Definition at line 28 of file DiffProcess.hpp.

template<class View >
boost::scoped_ptr<OFX::Image> tuttle::plugin::quality::DiffProcess< View >::_srcB [protected]

Definition at line 29 of file DiffProcess.hpp.

template<class View >
OfxRectI tuttle::plugin::quality::DiffProcess< View >::_srcPixelRodA [protected]

Definition at line 30 of file DiffProcess.hpp.

template<class View >
OfxRectI tuttle::plugin::quality::DiffProcess< View >::_srcPixelRodB [protected]

Definition at line 31 of file DiffProcess.hpp.

template<class View >
View tuttle::plugin::quality::DiffProcess< View >::_srcViewA [protected]

Source view A.

Definition at line 26 of file DiffProcess.hpp.

template<class View >
View tuttle::plugin::quality::DiffProcess< View >::_srcViewB [protected]

Source view B.

Definition at line 27 of file DiffProcess.hpp.


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