Datasheet

Table Of Contents
PDF: 09005aef8202ec2e/Source: 09005aef8202ebf7 Micron Technology, Inc., reserves the right to change products or specifications without notice.
MT9D111__7_REV5.fm - Rev. B 2/06 EN
172 ©2004 Micron Technology, Inc. All rights reserved.
MT9D111 - 1/3.2-Inch 2-Megapixel SOC Digital Image Sensor
General Purpose I/O
Micron Confidential and Proprietary
Figure 45 shows an example of position weight histogram created by AF driver to select
best lens position. This histogram corresponds to the situation depicted in Figure 43 and
Figure 44. After scanning 10 lens positions numbered 0 through 9, the AF driver deter-
mined that Y-normalized sharpness scores from the upper 8 of 16 AF windows (W11
through W24) peak at lens position 0, while the scores from the lower 8 windows (W31
through W44) at lens position 5. For each of the 2 positions, the AF driver summed pre-
programmed weights of the AF windows being clearly in focus at that position, thus
obtaining 2 position weights. These weights would have been equal if not for very weak
dependence of sharpness scores from windows W31, W32, and W33 on lens position.
Finding peak-to-trough variability of these scores lower than pre-programmed thresh-
old, the AF driver concluded that for W31, W32, and W33 no lens position was clearly
optimal, and therefore the weights of these windows should not be added to the weight
of position 5. This gave position 0 a higher weight and decided its selection as the best
position. Note: Unequal weighting of the AF windows, increasing the importance to the
4 central ones.
Evaluation of Image Sharpness
Information on image sharpness that the AF algorithm uses to find best focus position is
provided by focus measurement engine (FME), a programmable edge-filtering module
in Image Flow Processor (IFP). The FME convolves 2 pre-programmed 1-dimensional
digital filters with luminance (Y) data that it receives row by row from the color interpo-
lation module. For each interpolated frame, the convolution of the AF filters with Y pro-
duces up to 32 local sharpness scores reflecting the density and sharpness of vertical
edges in up to 16 user-selected areas of the frame. The FME outputs these sharpness
scores once every frame to IFP registers R[77:84]:2.and R[87:94]:2 (where "[:]" denotes a
range of register numbers and ":2" means page 2). In addition, the FME calculates and
writes to IFP registers R[67:74]:2 up to 16 local averages of Y that can be used to normal-
ize the sharpness scores and thus make them nearly independent of scene brightness.
Since each sharpness score and Y average has only 8 register bits allocated for it, care
should be taken in programming the AF filters to ensure that the sharpness scores they
produce never exceed 255. Otherwise, the content of registers R[77:84]:2.and R[87:94]:2
may not match actual sharpness scores computed by the FME.
The exact method of computing the sharpness scores is as follows. Sixteen equal size
rectangular windows forming a 4 x 4 grid are superimposed on each color-interpolated
frame. The size of these AF windows and the position of the upper left corner of the grid
are programmable (via IFP registers [R64:66]:2). The grid does not have to be entirely
inside the frame. For example, it is perfectly legal to cover most of the frame with a 3x3
portion of the grid and place the remaining 7 AF windows almost entirely outside of it, as
shown in Figure 46. Whenever a portion of an AF window is inside the frame, the FME
calculates 2 sharpness scores and average Y for this portion. However, it can write these
results to registers only if the bottom boundary of the window is partly or fully inside the
frame. Placing this boundary entirely outside the frame makes the window inactive, in
the sense that the FME stops outputting new sharpness scores and Y averages for it.
Although no AF window having some part of the bottom boundary inside the frame can
be deactivated in the same sense, any AF window can be made irrelevant in the AF algo-
rithm by giving it a weight of zero.
Each frame is read out from the sensor core and processed by the IFP row by row. Every
rectangular block of pixels in the frame can be considered as a separate, smaller frame,
also read out and processed row by row. Thinking this way about the AF windows, refer
to a portion of a frame row belonging to any AF window as a window row. As the color
interpolation module processes each window row and makes Y values of its successive
pixels available to the FME, the FME convolves those values with the 2 AF filters. The AF