Creating a Test Gray-scale Image

The library provides a special function, iplCreateImageJaehne(), for creating test gray-scale images in which the pixel values change as a sine function with a variable period. This image data is very convenient for testing the filter functions. (Such a test image is described in the book Digital Image Processing by B.Jaehne.)

You can run the example either from the applet or from the command line:
>create -t1 -w256 -h100
(-w and -h specify the image width and height).

The source:

IplImage* gray = iplCreateImageJaehne( IPL_DEPTH_8U, 200, 150 );
ipView( gray, " Jaehne 8u", is_modal );
iplDeallocate( gray, IPL_IMAGE_ALL );

* Legal Information © 1998-2000, Intel Corporation