TuttleOFX  1
tuttle::plugin::nlmDenoiser::NLMDenoiserPlugin Class Reference

Class used to denoise with partial derivated equations. More...

#include <NLMDenoiserPlugin.hpp>

Inheritance diagram for tuttle::plugin::nlmDenoiser::NLMDenoiserPlugin:
Collaboration diagram for tuttle::plugin::nlmDenoiser::NLMDenoiserPlugin:

Public Member Functions

 NLMDenoiserPlugin (OfxImageEffectHandle handle)
void getFramesNeeded (const OFX::FramesNeededArguments &args, OFX::FramesNeededSetter &frames)
void getRegionsOfInterest (const OFX::RegionsOfInterestArguments &args, OFX::RegionOfInterestSetter &rois)
 the get region of interest action
void render (const OFX::RenderArguments &args)
 The overridden render function.

Data Fields

OFX::Clip_clipDst
 Destination image clip.
OFX::Clip_clipSrc
 Source image clip.
OFX::IntParam_paramDepth
OFX::IntParam_paramRegionRadius
OFX::IntParam_paramPatchRadius

Detailed Description

Class used to denoise with partial derivated equations.

Definition at line 15 of file NLMDenoiserPlugin.hpp.


Constructor & Destructor Documentation


Member Function Documentation

void tuttle::plugin::nlmDenoiser::NLMDenoiserPlugin::getFramesNeeded ( const OFX::FramesNeededArguments args,
OFX::FramesNeededSetter frames 
) [virtual]

Obtain a window of frames before and after the current frame. This is needed because our denoiser has a video option.

Reimplemented from OFX::ImageEffect.

Definition at line 41 of file NLMDenoiserPlugin.cpp.

References _clipSrc, _paramDepth, tuttle::plugin::nlmDenoiser::clamp(), OFX::Clip::getFrameRange(), OFX::IntParam::getValue(), OfxRangeD::max, OfxRangeD::min, OFX::FramesNeededSetter::setFramesNeeded(), and OFX::FramesNeededArguments::time.

Here is the call graph for this function:

void tuttle::plugin::nlmDenoiser::NLMDenoiserPlugin::getRegionsOfInterest ( const OFX::RegionsOfInterestArguments args,
OFX::RegionOfInterestSetter rois 
) [virtual]

the get region of interest action

the get RoI action

If the effect wants change its region of interest on any input clip from the default values (which is the same as the RoI in the arguments) it should do so by calling the OFX::RegionOfInterestSetter::setRegionOfInterest function on the rois argument.

Note, everything is in cannonical coordinates.

Reimplemented from OFX::ImageEffect.

Definition at line 61 of file NLMDenoiserPlugin.cpp.

References _clipSrc, _paramPatchRadius, _paramRegionRadius, OFX::Clip::getPixelAspectRatio(), OFX::IntParam::getValue(), OFX::RegionsOfInterestArguments::regionOfInterest, OFX::RegionOfInterestSetter::setRegionOfInterest(), OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.

Here is the call graph for this function:


Field Documentation

Destination image clip.

Definition at line 19 of file NLMDenoiserPlugin.hpp.

Referenced by NLMDenoiserPlugin(), and render().


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