13 #ifndef IMAGE_PASTE_HPP
14 #define IMAGE_PASTE_HPP
30 :
image(L, R), row(row), column(column) { }
32 virtual double get(
int i,
int j,
int k)
const
37 return L->
get(i - row, j - column, k);
39 return R->
get(i, j, k);
52 virtual void doc(std::ostream& out)
const
54 out <<
"paste " << row <<
" " << column;
virtual double get(int i, int j, int k) const =0
Return the value of the sample at row i, column j, channel k.
image * L
Left child.
Definition: image.hpp:117
virtual int get_height() const
Return the height of this image.
Definition: image_paste.hpp:42
Base class for all image sources, filters, and operators.
Definition: image.hpp:20
virtual int get_height() const
Return the height of this image.
Definition: image.hpp:46
Overlay operator.
Definition: image_paste.hpp:20
virtual void doc(std::ostream &out) const
Produce a string documenting the function of this object.
Definition: image_paste.hpp:52
virtual int get_width() const
Return the height of this image.
Definition: image.hpp:56
virtual int get_width() const
Return the height of this image.
Definition: image_paste.hpp:47
image * R
Right child.
Definition: image.hpp:118
paste(int row, int column, image *L, image *R)
Paste image L over image R. Row and column give the position of the top-left corner of the pasted ima...
Definition: image_paste.hpp:29