71 CropOp(
int width=0,
int height=0,
int i0=0,
int j0=0) :
ImageOp (__FUNCTION__,
"Crop image.") {
72 parameters.link(
"width", this->width = width);
73 parameters.link(
"height",this->height = height);
74 parameters.link(
"i", this->i0 = i0);
75 parameters.link(
"j", this->j0 = j0);
79 parameters.
copyStruct(op.getParameters(), op, *
this);
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition: Log.h:310
void copyStruct(const ReferenceMap &m, const T &src, T &dst, extLinkPolicy policy=RESERVE)
Experimental. Copies references and values of a structure to another.
Definition: ReferenceMap.h:399
Image with static geometry.
Definition: ImageChannel.h:60
virtual void traverseChannel(const Channel &src, Channel &dst) const
Apply to single channel.
Definition: CropOp.cpp:51
virtual void getDstConf(const ImageConf &src, ImageConf &dst) const
Given source image, determine respective dest image configuration.
Definition: CropOp.cpp:38
Struct for image (excluding data)
Definition: ImageConf.h:333
Base class for image processing functions.
Definition: ImageOp.h:49
ImageOp(const std::string &name=__FUNCTION__, const std::string &description="")
Definition: ImageOp.h:156
void traverseChannelsSeparately(const ImageTray< const Channel > &src, ImageTray< Channel > &dst) const
Process each (src,dst) channel pair independently. Raise error if their counts differ.
Definition: ImageOp.cpp:340
Container applicable for Channels and Images, with alpha support.
Definition: ImageTray.h:267
Definition: DataSelector.cpp:1277