13 #ifndef IMAGE_FUNCTION_HPP
14 #define IMAGE_FUNCTION_HPP
27 virtual double get(
int i,
int j,
int k)
const
29 return fabs(
L->
get(i, j, k));
32 virtual void doc(std::ostream& out)
const
virtual double get(int i, int j, int k) const =0
Return the value of the sample at row i, column j, channel k.
virtual void doc(std::ostream &out) const
Produce a string documenting the function of this object.
Definition: image_function.hpp:32
image * L
Left child.
Definition: image.hpp:117
Base class for all image sources, filters, and operators.
Definition: image.hpp:20
Absolute value filter.
Definition: image_function.hpp:20
absolute(image *L)
Give the absolute value of image L.
Definition: image_function.hpp:25