Specifications
Contents
xv
Examples
Example 3-1 Error Functions ............................................. 3-13
Example 3-2 Output for the Error Function Program
(IPL_ErrModeParent).......................................... 3-15
Example 3-3 Output for the Error Function Program
(IPL_ErrModeParent).......................................... 3-15
Example 3-4 A Simple Error Handler ................................. 3-17
Example 4-1 Creating and Deleting an Image Header ....... 4-11
Example 4-2 Allocating and Deallocating the Image Data.. 4-14
Example 4-3 Setting the Border Mode for an Image .......... 4-25
Example 4-4 Allocating an Image and Setting
Its Pixel Values ................................................... 4-32
Example 4-5 Copying Image Pixel Values ......................... 4-34
Example 4-6 Converting Images........................................ 4-37
Example 4-7 Using the Function iplGetPixel().................... 4-39
Example 4-8 Translating a DIB Image Into an IplImage..... 4-48
Example 4-9 Converting a DIB Image Into an IplImage ..... 4-51
Example 6-1 Computing the 2-dimensional Convolution.... 6-9
Example 6-2 Applying the Median Filter............................. 6-16
Example 7-1 Computing the FFT of an Image ................... 7-5
Example 7-2 Computing the DCT of an Image................... 7-10
Example 8-1 Code Used to Produce Erosion
in a Rectangular ROI ........................................... 8-4
Example 10-1 Conversion to a Bitonal Image .................... 10-4
Example 10-2 Using the Function iplContrastStretch()
to Enhance an Image......................................... 10-7
Example 10-3 Computing and Equalizing the Image
Histogram........................................................... 10-11
Example 11-1 Using Macro Definition to Resize
an Image............................................................ 11-9