SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
The horizontal focus value (HFV) accumulator takes the output of the horizontal IIR filter and accumulates values for each paxel. The size and number of paxels is configurable by registers.
Table 9-195 lists the register fields that configure the size and number of paxels:
The following equations detail the calculation for:
n = 1 or 2 for IIR1 and IIR2, respectively.
For each paxel, these six values are available for each R, G, and B component.
for (k=0; k<PAXH) // Loop on paxel rows
{
rowpeak_n = 0;
for (l=0; l<PAXW; l++) // Loop on values within a row
{
aIIRout_n = ABS(IIRout_n);
if (aIIRout_n >= threshold_n)
{
hfval = aIIRout_n - threshold_n;
HFV_count_n++;
}
else hfval = 0;
if (hfval > rowpeak_n)
{
rowpeak_n = HFV_n;
}
HFV_n_sum += hfval;
HFV_sq_n_sum += (hfval* hfval + RNDADD) >> RNDSHIFT;
} // Finished looping on values in a row
HFV_n_peak += rowpeak_n;
HFV_sq_n_peak += (rowpeak_n * rowpeak_n + RNDADD) >> RNDSHIFT;
}