Specifications
Image Filtering
6-7
6
nCols, nRows
Numbers of columns and rows in the convolution
kernel. Set by the function.
anchorX, anchorY
Pointers to the [x, y] coordinates of the anchor
cell in the kernel. (See iplCreateConvKernel
above.) Set by the function.
values
A pointer to an array of values to be used for the
kernel matrix. The values are read in row-major
form starting with the top left corner. There will
be exactly
nRows
*
nCols
entries in this array.
For example, the array [1, 2, 3, 4, 5, 6, 7, 8, 9]
would represent the kernel matrix
123
456
789
nShiftR
A pointer to the number of bits to shift (to the
right) the resulting output pixel of each
convolution. Set by the function.
Discussion
Functions iplGetConvKernel() and iplGetConvKernelFP() are used to
read the convolution kernel attributes. The
iplGetConvKernelChar()
function serves primarily for compatibility with previous releases. It gives
you 1-byte
char rather than integer values of the convolution kernel; you’ll
probably need this function only if you create kernels using
iplCreateConvKernelChar().