31 #ifndef TRANSPOSEOP2_H_
32 #define TRANSPOSEOP2_H_
74 const size_t & width = src.getWidth();
75 const size_t & height = src.getHeight();
76 const size_t & iChannels = src.getImageChannelCount();
77 const size_t & aChannels = src.getAlphaChannelCount();
88 dst.setGeometry(height, width, iChannels, aChannels);
98 mout.
debug(
"dst:" , dst );
112 for (
size_t j = 0; j < src.getHeight(); ++j) {
113 for (
size_t i = 0; i < src.getWidth(); ++i) {
114 dst.
put(j, i, src.
get<
double>(i,j));
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
Policies for coordinate underflows and overflows.
Definition: CoordinatePolicy.h:106
Struct for image (excluding data)
Definition: ImageConf.h:333
void setCoordinatePolicy(const T &policy)
Does not set any CoordinateHandler object.
Definition: ImageConf.h:368
void put(size_t i, T x)
Sets the intensity in location i to x. See \address.
Definition: ImageFrame.h:192
T get(size_t i) const
Gets the intensity at location i. See address().
Definition: ImageFrame.h:254
Base class for image processing functions.
Definition: ImageOp.h:49
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
Transpose operator. Swaps the intensities over the diagonal exis.
Definition: TransposeOp.h:54
virtual void getDstConf(const ImageConf &src, ImageConf &dst) const
Given source image, determine respective dest image configuration.
Definition: TransposeOp.h:67
void traverseChannel(const Channel &src, Channel &dst) const
Apply to single channel.
Definition: TransposeOp.h:110
TransposeOp()
Default constructor.
Definition: TransposeOp.h:62
Definition: DataSelector.cpp:1277