Configuration of the camera
STINGRAY Technical Manual
V4.4.2
313
Reading or writing shading image from/into the camera
Accessing the shading image inside the camera is done through the
GPDATA_BUFFER. Because the size of the GPDATA_BUFFER is smaller than a
whole shading image the data must be written in multiple steps.
To read or write a shading image:
1.
Query the limits and ranges by reading SHDG_INFO and GPDATA_INFO.
2.
Set
EnableMemWR
or
EnableMemRD
to true (1).
3.
Set
AddrOffset
to 0.
4.
Write n shading data bytes to GPDATA_BUFFER (n might be lower than
the size of the GPDATA_BUFFER; AddrOffset is automatically adjusted
inside the camera).
5.
Repeat step 4 until all data is written into the camera.
6.
Set
EnableMemWR
and
EnableMemRD
to false.
Automatic generation of a shading image
Shading image data may also be generated by the camera. To use this feature
make sure all settings affecting an image are set properly. The camera uses
the current active resolution to generate the shading image.
To generate a shading image:
1.
Set
GrabCount
to the number of the images to be averaged before the
correction factors are calculated.
2.
Set
BuildImage
to true.
0xF1000254
SHDG_MEM_CTRL
Presence_Inq
[0]
Indicates presence of this
feature (read only)
---
[1..4]
Reserved
EnableMemWR
[5]
Enable write access
EnableMemRD
[6]
Enable read access
---
[7]
Reserved
AddrOffset
[8..31]
In bytes
0xF1000258
SHDG_INFO
Presence_Inq
[0]
Indicates presence of this
feature (read only)
---
[1..3]
Reserved
MaxMemChannel
[4..7]
Maximum number of available
memory channels to store
shading images
MaxImageSize
[8..31]
Maximum shading image size
(in bytes)
Register
Name
Field
Bit
Description
Table 139: Advanced register:
Shading