5.4
Gain and Offset
There are three different gain settings on the camera:
Analog Gain
Analog gain on the image sensor. Available values: 1x, 1.5x, 2x, 3x, 4x, 6x and 8x.
Note that
Digital Offset
is applied after the
Analog Gain
.
Gain (Digital Fine Gain)
Digital fine gain accepts fractional values from 0.01 up to 15.99. It is
implemented as a multiplication operation. Colour camera models only: There is
additionally a gain for every RGB colour channel. The RGB channel gain is used to
calibrate the white balance in an image, which has to be set according to the current
lighting condition.
Digital Gain
Digital Gain is a coarse gain with the settings x1, x2, x4 and x8. It is implemented
as a binary shift of the image data where ’0’ is shifted to the LSB’s of the gray values. E.g.
for gain x2, the output value is shifted by 1 and bit 0 is set to ’0’.
The resulting gain is the product of the three gain values, which means that the image data is
multiplied in the camera by this factor.
Digital Fine Gain and Digital Gain may result in missing codes in the output im-
age data.
A user-defined value can be subtracted from the gray value in the digital offset block. If digital
gain is applied and if the brightness of the image is too big then the interesting part of the
output image might be saturated. By subtracting an offset from the input of the gain block it
is possible to avoid the saturation.
5.5
Grey Level Transformation (LUT)
Grey level transformation is remapping of the grey level values of an input image to new
values. The look-up table (LUT) is used to convert the greyscale value of each pixel in an image
into another grey value. It is typically used to implement a transfer curve for contrast
expansion. The camera performs a 12-to-8-bit mapping, so that 4096 input grey levels can be
mapped to 256 output grey levels. The use of the three available modes is explained in the
next sections. Two LUT and a Region-LUT feature are available in the Photonfocus 1280 camera
series (see Section 5.5.4).
The LUT is implemented as a 12-to-8 bit LUT to be compatible with other Pho-
tonfocus cameras. Bits 0 & 1 of the 12 bit LUT input data are set to random
values.
The output grey level resolution of the look-up table (independent of gain,
gamma or user-definded mode) is always 8 bit.
There are 2 predefined functions, which generate a look-up table and transfer it
to the camera. For other transfer functions the user can define his own LUT file.
Some commonly used transfer curves are shown in Fig. 5.16. Line a denotes a negative or
inverse transformation, line b enhances the image contrast between grey values x0 and x1.
Line c shows brightness thresholding and the result is an image with only black and white grey
levels. and line d applies a gamma correction (see also Section 5.5.2).
5.4 Gain and Offset
37
Summary of Contents for CameraLink MV1-D1280
Page 1: ...User Manual Photonfocus MV1 D1280 CameraLink Series CMOS Area Scan Camera MAN058 05 2013 V1 1...
Page 2: ......
Page 4: ...2...
Page 7: ...B Revision History 81 CONTENTS 5...
Page 8: ...CONTENTS 6...
Page 16: ...3 How to get started CameraLink Figure 3 4 PFRemote start window 14...
Page 24: ...4 Product Specification 22...
Page 72: ...8 Graphical User Interface GUI 70...
Page 74: ...9 Mechanical Considerations 72...
Page 76: ...10 Warranty 74...
Page 78: ...11 References 76...
Page 82: ...A Pinouts 80...