Arithmetic and Logical Functions

Examples in this section illustrate the library functions that modify pixel values using simple arithmetic or logical operations. All these operations can be broken into the following categories:

Sometimes the first two categories are collectively called monadic operations because functions in both categories take one input image.

In the examples on the next pages, the output images will be displayed with the corresponding operation name and its performance estimate in cycles per pixel. (You'll see the performance only on systems with Pentium® or newer processors that support the time stamp counter. Please note that the performance is measured when the function runs for the first time and the image data might not be cached; therefore, performance in your real application may be better.)

In the cookroom subdirectory of this tutorial, you can find the GenerateRamp8uC3P function for generating an RGB image and the ipView function for displaying images.

* Legal Information © 1998-2000, Intel Corporation