
13
7. THE STANDARD CAMERA FUNCTIONALITY
The ‘Standard’ Camera is a set of FPGAs designed to support most of the typical uses of the camera. It is a
good starting point for modifications. This design is copyrighted IP from FastVision and forms the reference
design, which is available from FastVision for use only with the FastCamera13.
8. PIXEL GAIN AND OFFSET
The offset and gain of each pixel can be calibrated by setting the pixel gain and offset arrays in the DDR
memory of the camera. It is a good idea to do this as the large number of converters, need to be calibrated
for best results. Note: only the pixels in the selected ROI are processed (see serial commands 0x02 and
0x03).
The offset table is set by taking several images with no light input, averaging them and uploading them to
the offset (or dark field) table. These values are subtracted from the sensor pixel values (clipped so less
than zero values are zero), before applying the gain table values. The gain table values are obtained by
taking a defocused image of a uniform object, with enough light to get to 75% of saturation at most on the
brightest point in the image. Using the resulting image gain values are computed (in the simplest case the
pixel values and the ratio with 75% of full scale (191 (8 bit) or 768 (10 bits)) determines the gain.)
Note:
It is assumed that you are trying for a uniformly lit field of view (i.e. a Flat Field). It is important that
you have as nearly as is practical, a uniform field of light, as large or small gain values can introduce
significant artifacts in your images.
The gain table contains 8 bit values, which are formatted unsigned 1.7 format, that is one binary digit
followed by 7 fractional digits. This makes the range of gains 1.992 down to 0.00390625.
The equation for the pixel gain and offset is:
CP[i,j] = Saturate((2*Gain[i,j]/256)* Clip (P[i,j] – Offset[i,j]))
CP = Corrected Pixel
P = Raw sensor Pixel
Clip = 0 if P[i,j]-Offset[i,j] is negative, otherwise its P[i,j]-Offset[i,j].
Saturate = FullScale if its input is greater than or equal to FullScale, other wise it is it’s input alue.
FullScale = 255 for 8 bit pixels 1023 for 10 bit pixels.
9. MEMORY OPTION
The camera has 120 MB (or more) memory, which can be used to store images, and do averaging. Each
mode of operation is explained in the following sections. If the memory option is enabled, then sensor data
goes to memory instead of down stream.
9.1. FIFO memory mode
In this mode memory is used as a first in first out memory (FIFO). The memory fills with images, until it
is full, and then stops filling. At any time the user may request an image from the FIFO with CC2, or via
a serial command. This will make room for a new image, which will be filled as soon as one is collected.
This mode is typically used by systems that can accept images in bursts, but can not accept a
continuous stream of images. For example your system might take 8 images very fast and then read
them out at a slower rate (via a single camera link for example), your average frame rate is slow, but
your peak rate is high. If the host activates CC2 (or sends the serial command), it can cause the next
image to be read out when it comes in (pre-trigger the readout).
Содержание FastCamera13
Страница 1: ...FASTCAMERA SERIES FASTCAMERA13 USER S MANUAL FVM 50013...
Страница 32: ...32...