MT9V128
www.onsemi.com
18
Table 10. PAL
Line Numbers Field Description
1−22 1Blanking
23−310 1Active video
311−312 1Blanking
313−335 2Blanking
336−623 2Active video
624−625 2Blanking
Black Level Subtraction and Digital Gain
Image stream processing starts with black level
subtraction and multiplication of all pixel values by a
programmable digital gain. Both operations can be
independently set to separate values for each color channel
(R, Gr, Gb, B). Independent color channel digital gain can
be adjusted with registers. Independent color channel black
level adjust− ments can also be made. If the black level
subtraction produces a negative result for a particular pixel,
the value of this pixel is set to 0.
Positional Gain Adjustments (PGA)
Lenses tend to produce images whose brightness is
significantly attenuated near the edges. There are also other
factors causing fixed pattern signal gradients in images
captured by image sensors. The cumulative result of all these
factors is known as image shading. The MT9V128 has an
embedded shading correction module that can be
programmed to counter the shading effects on each
individual R, Gb, Gr, and B color signal.
The Correction Function
The correction functions can then be applied to each pixel
value to equalize the response across the image as follows:
Pcorrencted(row, col) +Psensor(row, col) ƒ(row, col) (eq. 1)
where P are the pixel values and f is the color dependent
correction functions for each color channel.
Color Interpolation
In the raw data stream fed by the sensor core to the IFP,
each pixel is represented by a 10−bit integer number, which
can be considered proportional to the pixel’s response to a
one−color light stimulus, red, green, or blue, depending on
the pixel’s position under the color filter array. Initial data
processing steps, up to and including the defect correction,
preserve the one−color−per−pixel nature of the data stream,
but after the defect correction it must be converted to a
three−colors−per−pixel stream appropriate for standard
color processing. The conversion is done by an
edge−sensitive color interpolation module. The module
pads the incomplete color information available for each
pixel with information extracted from an appropriate set of
neighboring pixels. The algorithm used to select this set and
extract the information seeks the best compromise between
preserving edges and filtering out high frequency noise in
flat field areas. The edge threshold can be set through
register settings.
Color Correction and Aperture Correction
To achieve good color fidelity of the IFP output,
interpolated RGB values of all pixels are subjected to color
correction. The IFP multiplies each vector of three pixel
colors by a 3 x 3 color correction matrix. The three
components of the resulting color vector are all sums of three
10−bit numbers. Since such sums can have up to 12
significant bits, the bit width of the image data stream is
widened to 12 bits per color (36 bits per pixel). The color
correction matrix can be either programmed by the user or
automatically selected by the auto white balance (AWB)
algorithm implemented in the IFP. Color correction should
ideally produce output colors that are corrected for the
spectral sensitivity and color crosstalk characteristics of the
image sensor. The optimal values of the color correction
matrix elements depend on those sensor characteristics and
on the spectrum of light incident on the sensor. The color
correction variables can be adjusted through register
settings.
To increase image sharpness, a programmable 2D
aperture correction (sharpening filter) is applied to
color−corrected image data. The gain and threshold for 2D
correction can be defined through register settings.