TuttleOFX
1
|
Class used to denoise with partial derivated equations. More...
#include <NLMDenoiserPlugin.hpp>
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 |
Class used to denoise with partial derivated equations.
Definition at line 15 of file NLMDenoiserPlugin.hpp.
tuttle::plugin::nlmDenoiser::NLMDenoiserPlugin::NLMDenoiserPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 25 of file NLMDenoiserPlugin.cpp.
References _clipDst, _clipSrc, _paramDepth, _paramPatchRadius, _paramRegionRadius, OFX::ImageEffect::fetchClip(), OFX::ParamSet::fetchIntParam(), kOfxImageEffectOutputClipName, kOfxImageEffectSimpleSourceClipName, tuttle::plugin::nlmDenoiser::kParamDepth(), tuttle::plugin::nlmDenoiser::kParamPatchRadius(), and tuttle::plugin::nlmDenoiser::kParamRegionRadius().
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.
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.
void tuttle::plugin::nlmDenoiser::NLMDenoiserPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 80 of file NLMDenoiserPlugin.cpp.
References _clipDst, OFX::eBitDepthCustom, OFX::eBitDepthFloat, OFX::eBitDepthNone, OFX::eBitDepthUByte, OFX::eBitDepthUShort, OFX::ePixelComponentAlpha, OFX::ePixelComponentCustom, OFX::ePixelComponentNone, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, OFX::Clip::getPixelComponents(), OFX::Clip::getPixelDepth(), OFX::mapBitDepthEnumToString(), OFX::mapPixelComponentEnumToString(), tuttle::plugin::ImageProcessor::setupAndProcess(), and TUTTLE_LOG_ERROR.
Destination image clip.
Definition at line 19 of file NLMDenoiserPlugin.hpp.
Referenced by NLMDenoiserPlugin(), and render().
Source image clip.
Definition at line 20 of file NLMDenoiserPlugin.hpp.
Referenced by getFramesNeeded(), getRegionsOfInterest(), and NLMDenoiserPlugin().
Definition at line 22 of file NLMDenoiserPlugin.hpp.
Referenced by getFramesNeeded(), and NLMDenoiserPlugin().
Definition at line 24 of file NLMDenoiserPlugin.hpp.
Referenced by getRegionsOfInterest(), and NLMDenoiserPlugin().
Definition at line 23 of file NLMDenoiserPlugin.hpp.
Referenced by getRegionsOfInterest(), and NLMDenoiserPlugin().