35 #include "FunctorOp.h"
94 this->parameters.link(
"dstView", dstView =
"");
95 this->parameters.link(
"scale", this->
scale);
96 this->parameters.link(
"bias", this->
bias);
102 double operator()(
double s)
const {
120 this->functor.setScale(scale, bias);
142 Logger mout(getImgLog(), __FILE__, __FUNCTION__);
143 mout.
debug(
"start" );
150 Logger mout(getImgLog(), __FILE__, __FUNCTION__);
double scale
Relative scale, typically 1. Optional.
Definition: Functor.h:99
double bias
"Relative" bias, typically 0. Optional.
Definition: Functor.h:102
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition: Log.h:308
Logger & debug(const TT &... args)
Public, yet typically used "internally", when TIMING=true.
Definition: Log.h:676
Image with static geometry.
Definition: ImageChannel.h:60
void process(const ImageFrame &srcFrame, Image &dstImage) const
Main interface. Typically splits processing to each channel.
Definition: CopyOp.cpp:83
virtual void traverseChannel(const Channel &src, Channel &dst) const
Apply to single channel.
Definition: CopyOp.h:141
virtual void traverseChannel(const Channel &src, const Channel &srcAlpha, Channel &dst, Channel &dstAlpha) const
Apply to single channel with alpha.
Definition: CopyOp.h:149
virtual void getDstConf(const ImageConf &src, ImageConf &dst) const
Given source image, determine respective dest image configuration.
Definition: CopyOp.cpp:39
Struct for image (excluding data)
Definition: ImageConf.h:333
Image with static geometry.
Definition: ImageFrame.h:67
virtual int srcAlpha() const
Tell if alpha channel(s) is required in input.
Definition: ImageMod.h:66
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
Class for using simple function objects (like std::functor) for sequential pixel iteration.
Definition: FunctorOp.h:135
void traverseChannel(const Channel &src, Channel &dst) const
Process the image.
Definition: FunctorOp.h:225
Definition: DataSelector.cpp:1277
Definition: Functor.h:116