31 #ifndef QUALITYOVERRIDEOP_H_
32 #define QUALITYOVERRIDEOP_H_
36 #include "QualityOp.h"
74 typedef float quality_t;
82 "Compares two images, preserving pixels having higher alpha value. Src alpha is pre-multiplied with advantage."){
83 parameters.link(
"advantage", this->advantage = advantage,
"0.8..1.2");
84 parameters.link(
"decay", this->decay = decay,
"0...1");
106 Logger mout(getImgLog(), __FILE__, __FUNCTION__);
107 mout.
error(
"Inapplicable for single channels, needs alpha channels" );
113 Logger mout(getImgLog(), __FILE__, __FUNCTION__);
114 mout.
note(
"fwd as trays" );
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition: Log.h:308
Logger & error(const TT &... args)
Echoes.
Definition: Log.h:412
Logger & note(const TT &... args)
For top-level information.
Definition: Log.h:485
Image with static geometry.
Definition: ImageChannel.h:60
void traverseAsChannelTrays(const ImageFrame &src, ImageFrame &dst) const
Redirect to processing as trays. This is the opposite of processChannels...() functions.
Definition: ImageOp.h:210
Container applicable for Channels and Images, with alpha support.
Definition: ImageTray.h:267
Definition: QualityOp.h:44
Overwrites pixels of destination image in locations where destination weight is lower.
Definition: QualityOverrideOp.h:70
virtual void traverseChannel(const Channel &src, const Channel &srcWeight, Channel &dst, Channel &dstWeight) const
fwd as trays
Definition: QualityOverrideOp.h:112
virtual void traverseChannel(const Channel &src, Channel &dst) const
Apply to single channel.
Definition: QualityOverrideOp.h:105
QualityOverrideOp(quality_t advantage=1.0, quality_t decay=1.0)
Definition: QualityOverrideOp.h:81
Definition: DataSelector.cpp:1277