31 #ifndef IMAGE_MODIFIER_H_
32 #define IMAGE_MODIFIER_H_
35 #include "drain/util/BeanLike.h"
37 #include "drain/image/Image.h"
39 #include "drain/image/ImageTray.h"
104 mout.
warn(
"(Channel &): not implemented" );
115 mout.
debug(
"(Channel &, Channel &alpha): not implemented" );
122 void help(std::ostream & ostr = std::cout)
const {
137 ImageMod(
const std::string &name = __FUNCTION__,
const std::string &description=
"") :
139 BeanLike(name.substr(0, name.find(
"Op", name.size()-2)), description) , physicalScale(true) {
Something which has a name, a description and possibly some parameters of varying type.
Definition: BeanLike.h:60
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition: Log.h:308
Logger & warn(const TT &... args)
Possible error, but execution can continue.
Definition: Log.h:426
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
Image with static geometry.
Definition: ImageFrame.h:67
Class for operations that modify an existing image instead of producing a new image.
Definition: ImageMod.h:52
ImageMod(const std::string &name=__FUNCTION__, const std::string &description="")
Definition: ImageMod.h:137
virtual int srcAlpha() const
Tell if alpha channel(s) is required in input.
Definition: ImageMod.h:66
virtual void traverseChannels(ImageTray< Channel > &dst) const
Run this modifier for a set of channels.
Definition: ImageMod.cpp:135
virtual void traverseChannel(Channel &dst, Channel &dstAlpha) const
Run this modifier for an image frame.
Definition: ImageMod.h:113
virtual void processChannelsSeparately(ImageTray< Channel > &dst) const
Run this modifier by calling traverseChannel(Channel &) for each image.
Definition: ImageMod.cpp:142
virtual void process(Image &dst) const
Run this modifier for an image.
Definition: ImageMod.cpp:48
virtual void traverseChannel(Channel &dst) const
Run this modifier for an image frame.
Definition: ImageMod.h:102
virtual void initializeAlpha(const Image &srcAlpha, Image &dstAlpha) const
Modifies the geometry and the type of dst such that traverseChannel(Channel &) can be called.
Definition: ImageMod.h:169
virtual void initialize(Image &dst) const
Modifies the geometry and the type of dst such that traverseChannel(Channel &) can be called.
Definition: ImageMod.h:162
Container applicable for Channels and Images, with alpha support.
Definition: ImageTray.h:267
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
Definition: DataSelector.cpp:1277