31 #ifndef CATENATOROP_H_
32 #define CATENATOROP_H_
52 CatenatorOp(
double scale=1.0,
double offset=0.0) :
ImageOp(__FUNCTION__,
"Catenates images"){
53 parameters.link(
"scale", this->scale = scale);
54 parameters.link(
"offset", this->offset = offset);
59 this->parameters.
copyStruct(op.parameters, op, *
this);
93 dst.setGeometry(src.getWidth(), src.getHeight()*src.
getChannelCount(), 1);
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
Operator for concatenating images vertically or as channels.
Definition: CatenatorOp.h:47
Definition: CatenatorOp.h:82
void process(const ImageFrame &src, Image &dst) const
Main interface. Typically splits processing to each channel.
Definition: CatenatorOp.cpp:47
void getDstConf(const ImageConf &src, ImageConf &dst) const
Modifies the geometry and type of dst.
Definition: CatenatorOp.h:91
const std::type_info & getType() const
Linear scaling.
Definition: ImageConf.h:110
void setType(const std::type_info &t)
Set storage type.
Definition: ImageConf.h:121
size_t getChannelCount() const
Set...
Definition: Geometry.h:257
Struct for image (excluding data)
Definition: ImageConf.h:333
Image with static geometry.
Definition: ImageFrame.h:67
Base class for image processing functions.
Definition: ImageOp.h:49
ImageOp(const std::string &name=__FUNCTION__, const std::string &description="")
Definition: ImageOp.h:156
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
Definition: CatenatorOp.h:111
void process(const ImageFrame &src, Image &dst) const
Main interface. Typically splits processing to each channel.
Definition: CatenatorOp.cpp:83
Definition: DataSelector.cpp:1277