hi_isp_af_squ_mode

Description

Defines the square mode, which determines whether the zoned statistics are squared.

Definition

typedef enum {
    HI_ISP_AF_STA_SUM_NORM     = 0,
    HI_ISP_AF_STA_SUM_SQUARE,
    HI_ISP_AF_STA_SUM_BUTT
} hi_isp_af_squ_mode;

Members

Member

Description

HI_ISP_AF_STA_SUM_NORM

  • When peak_mode is HI_ISP_AF_STA_NORM, the sum of the filter output value of each pixel in zones is the zoned statistics.
  • When peak_mode is HI_ISP_AF_STA_PEAK, the sum of maximum values of filter output values of each pixel in each line in zones is the IIR zoned statistics.

HI_ISP_AF_STA_SUM_SQUARE

  • When peak_mode is HI_ISP_AF_STA_NORM, the sum of squares of the filter output value of each pixel in zones is the zoned statistics.
  • When peak_mode is HI_ISP_AF_STA_PEAK, the sum of squares of maximum values of filter output values of each pixel in each line in zones is the zoned statistics.

Restrictions

In square mode, the filter outputs are normalized, squared, and then collected for statistics. In the following figure, input indicates the output pixel value after filtering, and output indicates the output value after processing in square mode. Compared with the normal mode, the FV curve is steeper near the focus in square mode. In addition, noise signals with small amplitudes are suppressed, and flat regions on the FV curve are flatter. You need to set square mode as required.

Figure 1 Square mode