TX1 3A(AE/AWB/AF) Statistics

I want to use my own 3A algorithm, So I need to get the 3A statistics data from TX1 ISP. I try to get the datasheet about this, and can found very simple description:
Image statistics gathering (per-channel)

  •  Two 256-bin image histograms  
    
  •  Up to 4,096 local region averages 
    
  •  AC flicker detection (50 Hz and 60 Hz) 
    
  •  Focus metric block 
    

about 3A statistics interface, where can i get more documents ? (or show me the code interface)

thks.

Hi lihaimin
Could you check the MMAPI Libargus API part.

Hi ShaneCCC
Thanks for your reply. And I had found the 3A statistics in the MM API:
1)AF statistics: BayerSharpnessMap.h
2)AE statistics: CaptureMetadata.h 's class IBayerHistogram
3)AWB statistics: BayerAverageMap.h
in my comprehend, the video divide into x*y block(bin) , and each block statistics the sharness for AF, histogram for AE, and average R/G/B for AWB。such like the description in the API:

  • The size and layout of the bins used to calculate the averages are determined by the Argus
  • implementation and are illustrated in the following diagram. The bin size and interval are
  • constant across the image, [i]and are positioned such that the generated averages cover the
  • majority of the full image[/i]. All dimensions are given in pixels.
  •           start.x                     interval.width
    
  •           _______                   _________________
    
  •          |       |                 |                 |
    
  •       _   ________________________________________________________
    
  •      |   |                                                        |
    
  • start.y | | |
  •      |_  |        _____             _____             _____       | _
    
  •          |       |     |           |     |           |     |      |  |
    
  •          |       | 0,0 |           | 1,0 |           | 2,0 |      |  |
    
  •          |       |_____|           |_____|           |_____|      |  |
    
  •          |                                                        |  | interval.height
    
  •          |                                                        |  |
    
  •          |                                                        |  |
    
  •          |        _____             _____             _____       | _|
    
  •          |       |     |           |     |           |     |      |
    
  •          |       | 0,1 |           | 1,1 |           | 2,1 |      |
    
  •          |       |_____|           |_____|           |_____|      |
    
  •          |                                                        |
    
  •          |                                                        |
    
  •          |                                                        |
    
  •          |        _____             _____             _____       | _
    
  •          |       |     |           |     |           |     |      |  |
    
  •          |       | 0,2 |           | 1,2 |           | 2,2 |      |  | size.height
    
  •          |       |_____|           |_____|           |_____|      | _|
    
  •          |                                                        |
    
  •          |                                                        |
    
  •          |________________________________________________________|
    
  •                                                      |_____|
    
  •                                                     size.width
    

And I have 2 questions to ask you:
1)About AF: I found that, it just provides 1 kind of the sharpness statistics for AF. But genenally, the other chip provides 2 kind statistics-----1 for High frequency filter , 1 for low frequecy filter. please help me to make sure if the TX-1 only provides 1 kind statistics?and if I can set the sharpness filter parameters ?

2)The bin size and interval are constant across the image, and are positioned such that the generated averages cover the majority of the full image----------may I set the bin size and interval ? if not, what is the bin size and interval when the input sensor is 3840*2160 raw data?

thks.

Hi lihaimin

Sorry, both of them are negative.

Hi ShangeCCC

qestion 2),

OK, user could not set the bin size and interval, and is auto setting.

And what is the bin size and interval when the input sensor is 3840*2160 raw data?

thsk.

Hi lihainmin

You can call these API to get the data.

virtual Size Argus::Ext::IBayerSharpnessMap::getBinInterval	(		)	const
pure virtual
Returns the bin intervals for both the x and y axis.

These intervals are defined as the number of pixels between the first pixel of a bin and that of the immediate next bin.

virtual Size Argus::Ext::IBayerSharpnessMap::getBinSize	(		)	const
pure virtual
Returns the size of each bin, in pixels.

Hi ShaneCC

Now I don’t get a 4k sensor board yet, and before the hardware design ,i need to evaluate the tx-1 capacity. Maybe I can do a test in the tx-1 demo board which is with an ov5693 sensor(2952*1944).

thank you.