beautypg.com

Loading a shading image out of the camera, Chapter, Description of the data path – ALLIED Vision Technologies Stingray F-504 User Manual

Page 137

background image

Description of the data path

STINGRAY Technical Manual V4.4.4

135

dient is related to the fact that the source image is lower than 50% on
the right hand side.

The histogram shows a peak with very few different gray values.

Loading a shading image out of the camera

GPDATA_BUFFER is used to load a shading image out of the camera. Because
the size of a shading image is larger than GPDATA_BUFFER, input must be
handled in several steps:

Figure 61: Uploading shading image to host

Query limits from

register:

SHDG_INFO and

GPDATA_INFO

Set EnableMemRD

to true (1)

Set AddrOffset to 0

Read n databytes

of

GPDATA_BUFFER

Increase

AddrOffset by n

bytes

Check

EnableMemRD for

no change

Repeat steps until

all data is read

Set EnableMemRD

to false (0)