Allied Vision Technologies F-201B AVT Dolphin Manual Download Page 33

33 

Interpolation (BAYER demosaicing) 

 
In interpolation a red, green or blue value is determined for each pixel. Only two lines 
are used for this simple interpolation: 
 

 

R1

G1

R2

G2

G3 

B1 

G4 

B2 

P1

P2

P3

Input: 

Output: 

   

 

 Figure 30 Interpolation 

 

 

  

1

1

2

3

1

1

1

1

B

P

G

G

P

R

P

blue

green

red

=

+

=

=

        

1

2

2

4

1

2

2

2

B

P

G

G

P

R

P

blue

green

red

=

+

=

=

      

2

3

2

4

2

3

2

3

B

P

G

G

P

R

P

blue

green

red

=

+

=

=

 

 
Color cameras begin outputting the image in line two and finish in line Y (maximum 
image height minus two). This is a side-effect of BAYER demosaicing. The adjustable 
maximum image height is also two lines less than in the b/w variant. 
 

L

 

Please note that on the color camera a black border one pixel wide forms on the 
left and right image borders also as a consequence of BAYER demosaicing, because 
the image width displayed on the color camera is not scaled down. 

 

Color correction 

Color correction is calculated along with YUV conversion and mapped via a matrix like 
this. 
 

blue

Cbb

green

Cgb

red

Crb

blue

blue

Cbg

green

Cgg

red

Crg

green

blue

Cbr

green

Cgr

red

Crr

red

+

+

=

+

+

=

+

+

=

*

*

*

 

 
On the color camera color correction is also deactivated in Mono8 or Mono16 mode (raw 
image transport). 

 

7.7.1

 

RGB 

Æ

 YUV conversion 

The conversion from RGB to YUV is done using the following formula: 
 

128

082

.

0

420

.

0

498

.

0

128

498

.

0

33

.

0

169

.

0

11

.

0

59

.

0

3

.

0

+

=

+

+

=

+

+

=

B

G

R

V

B

G

R

U

B

G

R

Y

 

Summary of Contents for F-201B AVT Dolphin

Page 1: ...F 201B F 201C AVT Dolphin Allied Vision Technologies GmbH Taschenweg 2a D 07646 Stadtroda Germany Manual...

Page 2: ...posure time 24 7 Block diagrams of the camera 24 7 1 Description of the data path 24 7 2 White balance 25 7 2 1 Automatic white balance 25 7 3 Manually setting gain 26 7 4 Setting the offsets black va...

Page 3: ...e 56 9 1 7 Inquiry register for feature elements 56 9 1 8 Inquiry register for absolute value CSR offset address 57 9 1 9 Status and control register for feature 58 9 1 10 Feature control error status...

Page 4: ...rect the interference at his own expense You are cautioned that any changes or modifications not expressly approved in this manual could void your authority to operate this equipment The shielded inte...

Page 5: ...dified for trade use or transfer nor may they be used on web sites Trademarks Unless stated otherwise all trademarks appearing in this document of Allied Vision Technologies are brands protected by la...

Page 6: ...Mode parentheses and or blue Links Link Write register Read register Symbols L This symbol highlights important instructions that you should make sure to follow if you want to avoid malfunctions 1 Sa...

Page 7: ...eed of up to 12 75 fps It can be easily integrated into any existing system environment through a flexible and high performance API The API is available as an option The camera is available in both a...

Page 8: ...ibraries AVT offers different lenses from a variety of manufacturers The following table lists selected image formats depending on distance and the focal width of the lens Focal Width F 201 Distance 0...

Page 9: ...4095 x Timebase Timebase 1 2 5 20 50 100 200 500 1000 s External Trigger Shutter Trigger Mode_0 Advanced feature Image Transfer by command Internal Memory 15 frames Look Up Tables Up to 63 user progr...

Page 10: ...0 20 dB 0 035 dB step Shutter Speed 1 4095 x Timebase Timebase 1 2 5 20 50 100 200 500 1000 s External Trigger Shutter Trigger Mode_0 Advanced feature Image Transfer by command Internal Memory Up to...

Page 11: ...11 3 3 Spectral sensitivity Figure 1 Spectral sensitivity F 201B without cut filter and without optics Figure 2 Spectral sensitivity F 201C without cut filter and without optics...

Page 12: ...p The exact description for installation routines can be found in the FireView software manual The driver works in conjunction with the Viewer program This enables quick and easy access to all integra...

Page 13: ...13 Figure 4 Directcontrol 5 Camera dimensions Body size normal model 115 x 45 x 45 offset lens 140 x 62 x 45 Weight 225g Figure 5 normal body Figure 6 body with offset lens...

Page 14: ...s both jacks are located on the back of the camera The HiRose jack provides different control inputs and outputs The IEEE 1394 jack with lock in mechanism provides access to the IEEE 1394 bus and thus...

Page 15: ...r supply Figure 10 HiRose plug view of contacts 6 3 Status LEDs 6 3 1 On LED The power LED indicates that the camera is being supplied with sufficient voltage and is generally ready for operation Pin...

Page 16: ...tack start 2 blinks No FLASH object 1 blink No DCAM object 1 blink Register mapping 2 blinks VMode_ERROR_STATUS 1 blink FORMAT_7_ERROR_1 2 blinks FORMAT_7_ERROR_2 3 blinks The following sketch illustr...

Page 17: ...een implemented as shown on the diagram IO_INP_CTRL1Polarity is controlled via the IO_INP_CTRL1 3 register see section IO_INP_CTRL1 Figure 12 Diagram Flux voltage from LED type 1 2V at 20 mA Cycle del...

Page 18: ...ts Triggers All inputs configured as triggers are linked by AND If several inputs are being used as triggers a high signal must be present on all inputs in order to generate a trigger signal The polar...

Page 19: ...counter status can be read out When the counter reaches the comparator value that can also be set by register the output of the comparator is set an internal trigger signal is generated and image capt...

Page 20: ...y up to 1 05 seconds see Enabling delayed integration Fval Signal This feature signals readout from the sensor This signal Fval follows IntEna Busy Signal This indicator appears when the exposure is b...

Page 21: ...ket header Figure 19 Isochronous data block packet format Source IIDC v 1 3 specification Video data for each pixel is output in 8 bit format Each pixel has a range of 256 scales of gray The digital v...

Page 22: ...22 Figure 21 Y8 and Y16 format Source IIDC v 1 3 specification Figure 22 Data structure Source IIDC v 1 3 specification...

Page 23: ...ync is an internal signal It is used by the microcontroller to initiate a trigger This can either be a direct trigger or a release for ExSync if the camera is triggered externally 6 6 2 End of exposur...

Page 24: ...osure time The minimum adjustable exposure time set by register is 10 s the real minimum exposure time of an F 201B is then 10 s 29 s 39 s 7 Block diagrams of the camera 7 1 Description of the data pa...

Page 25: ...f 16x16 pixels from the center of the currently set frame For white balance incoming frames are input based on the current settings of all registers GAIN OFFSET SHUTTER etc The following ancillary con...

Page 26: ...e analog video signal F 201B 0dB 24 1dB F 201C 0dB 20 5dB The increment length is 0 0354 dB step The values to be entered lie within the following ranges F 201B 0 690 F 201C 0 560 FW O 85 18 L Setting...

Page 27: ...and to use the results while operating the camera in real time The values of functions are calculated within a specific range and the input value is used as an index in the table The AVT Dolphin can...

Page 28: ...8 kB writing must take place in several steps Set EnableMemWR to true Select AccessLutNo and confirm LUT number Write GPDATA_BUFFER in LUT databytes Set AddrOffset to 0 Repeat steps 5 to 7 until all d...

Page 29: ...y giving it the gray value of the brightest pixel All of these multipliers are saved in a Shading Reference Image The time required for this process depends on the number of frames to be calculated Co...

Page 30: ...ied at very short intervals because each query delays the generation of the shading image A good interval time is 500 ms The following pictures clarify the process of automatic generation of correctio...

Page 31: ...contained in the shading image After the lens has been focused again you see the previous image but now with a considerably more uniform gradient This is also made apparent in the line view Source ima...

Page 32: ...n bytes Repeat steps 5 and 6 until all data is written Set EnableMemWR back to 0 Limits query Read registers SHDG_INFO and GPDA TA_INFO Figure 29 Loading a shading image 7 7 Color interpolation and c...

Page 33: ...s also two lines less than in the b w variant L Please note that on the color camera a black border one pixel wide forms on the left and right image borders also as a consequence of BAYER demosaicing...

Page 34: ...e images have been recorded If MultiShot mode is activated and the images are not yet finished being captured it can be quit by resetting the flag The same can be achieved by setting the number of ima...

Page 35: ...ated into several smaller ones by varying the AOI A parameter set is stored in the camera for each image to be recorded This sequence of parameter sets is simply called a sequence The following regist...

Page 36: ...ce in MultiShot or ISOEnable mode Figure 31 Sequence mode During this process the camera gets the required parameters image by image from the corresponding FIFOs e g information for exposure time L Th...

Page 37: ...when setting the AutoRewind flag For this reason it is important to set the flag before the MultiShot or ISO_Enable commands L If the sequence is used with the deferred transport feature the number o...

Page 38: ...d in FIFO If you capture more images than the number in FiFoSize the oldest ones are overwritten L The extra SendImage flag is set to true to import the images from the camera The camera sends the num...

Page 39: ...MONO 8 x x 3 1024 x 768 YUV422 4 1024 x 768 RGB 5 1024 x 768 MONO 8 x x x 6 800 x 600 MONO 16 1 7 1024 x 768 MONO 16 0 1280 x 960 YUV422 x 1 1280 x 960 RGB 2 1280 x 960 MONO 8 x x x x 3 1600 x 1200 Y...

Page 40: ...68 YUV422 x x x 4 1024 x 768 RGB 5 1024 x 768 MONO 8 x x x 6 800 x 600 MONO 16 1 7 1024 x 768 MONO 16 0 1280 x 960 YUV422 x x x 1 1280 x 960 RGB 2 1280 x 960 MONO 8 x x x x 3 1600 x 1200 YUV422 x x x...

Page 41: ...he size of the image read out for most other video formats and modes is fixed by the IIDC specification thereby determining the highest possible frame rate in Format_7 the user can set the upper left...

Page 42: ...nt of data while retaining the original image area angle an increase in the frame rate an improvement in the separation of signal to noise Signal to noise ratio SNR and signal to noise separation spec...

Page 43: ...rd to the Bayer mosaic color filter Even lines and even rows and odd lines and odd rows are combined not neighboring ones thus always appropriate color pixels are combined 8 2 2 Horizontal binning In...

Page 44: ...you to calculate the required bandwidth and to ascertain the number of cameras that can be operated independently on a bus and in what mode Format Mode Resolution 60 fps 30 fps 15 fps 7 5 fps 3 75 fps...

Page 45: ...0q 5 8H 500p 250q 5 16H 250p 125q 1 7 1024 x 768 Y MONO 16 16 bit pixel 4 3 2H 1536p 768q 2 3 4H 768p 384q 3 8H 384p 192q 3 16H 192p 96q For mat Mode Resolution 60 fps 30 fps 15 fps 7 5 fps 3 75 fps 1...

Page 46: ...trigger frequency may not exceed the highest frame rate so preventing frames from being lost The frame rates in video modes 0 to 2 are specified and set by IIDC v 1 3 In video Format_7 this can be se...

Page 47: ...r the image s ByteDepth AoiHeight AoiWidth fps PACKET PER BYTE 125 _ _ If the value for BYTE_PER_PACKET is greater than 4096 the maximum data payload the sought after frame rate cannot be attained The...

Page 48: ...show a grey bar running diagonally One test image is static the other moves upwards by 1 pixel frame Figure 37 Gray bar test image Formula for calculating the gray value Gray value x y MOD256 8 bit mo...

Page 49: ...Figure 39 Bayer coded test image F 201C The color camera outputs Bayer coded raw data in Mono8 instead of as described in IIDC v 1 3 a real Y signal The first pixel of the image is always the red pix...

Page 50: ...principle all addresses in IEEE 1394 networks are 64 bits long The first 10 bits describe the Bus_Id the next 6 bits the Node_Id Of the subsequent 48 bits the first 16 are is always FFFFh leaving the...

Page 51: ...mode using the FireCtrl DLL from the FirePackage API and how the camera is switched into ISO_Enabled mode WriteQuad m_cmdRegBase CCR_FRAME RATE Frame Rate 29 WriteQuad m_cmdRegBase CCR_VMODE mode 29...

Page 52: ...03 00 0A 47 41Ch 0C 00 83 C0 420h 8D 00 00 05 Root Directory 424h D1 00 00 07 The entry with key 8D in the root directory 420h in this case provides the offset for the unique ID leaf node as follows 4...

Page 53: ...000h 3C0000h 4 FFFF F0F00000h The base address of the camera control register is thus FFFF F0F00000h The offset entered in the table always refers to the base address of F0F00000h L This means that if...

Page 54: ...from IIDC v 1 3 are implemented in the camera Differences and explanations can be found in the third column 9 1 1 Camera initialize register Offset Name Notes 000h INITIALIZE 9 1 2 Inquiry register f...

Page 55: ...INQ_1_3 Format_1 Mode_3 230h V_RATE_INQ_1_4 Format_1 Mode_4 234h V_RATE_INQ_1_5 Format_1 Mode_5 238h V_RATE_INQ_1_6 Format_1 Mode_6 23Ch V_RATE_INQ_1_7 Format_1 Mode_7 240h V_RATE_INQ_2_0 Format_2 Mod...

Page 56: ...e Set Unique Value is 7ACh and CompanyID is A47h 9 1 7 Inquiry register for feature elements If an invalid combination is chosen in the CUR_V_FRM_RATE CUR_V_MODE and CUR_V_FORMAT registers no image ca...

Page 57: ...address Offset Name Notes 700h ABS_CSR_HI_INQ_0 always 0 704h ABS_CSR_HI_INQ_1 always 0 708h ABS_CSR_HI_INQ_2 always 0 70Ch ABS_CSR_HI_INQ_3 always 0 710h ABS_CSR_HI_INQ_4 always 0 714h ABS_CSR_HI_IN...

Page 58: ...se 820h GAIN 824h IRIS always 0 828h FOCUS always 0 82Ch TEMPERATURE Target temperature is always 0 value corresponds to current temperature in C x 10 830h TRIGGER MODE Can be effected via Advanced Fe...

Page 59: ...on each access The Setting_1 bit is automatically cleared after each access L When ErrorFlag_1 or ErrorFlag_2 is set and Format_7 is configured no image capture is started L Contrary to IIDC v 1 3 CO...

Page 60: ...0004C ADV_INQ_4 0 31 9 2 2 MaxResolution This register indicates the highest resolution for the sensor and is read only The register normally outputs the MAX_IMAGE_SIZE_INQ Format_7 Mode_0 value Offse...

Page 61: ...3 10 s 8 500 s 4 20 s 9 1000 s The ABSOLUTE VALUE CSR register introduced in IIDC v 1 3 is not implemented 9 2 4 Extended shutter The exposure time for long term integration of up to 67 sec SW 0 84 an...

Page 62: ...1 Available 15 27 TestImage_ID 28 31 0 No test image active 1 Image 1 active 2 Image 2 active 9 2 6 Sequence control It is possible to make certain settings for a sequence of images beforehand by usin...

Page 63: ...feature read only 1 7 NumOfLuts 8 15 Max of Lookup tables MaxLutSize 16 31 Max Lookup Table size 9 2 8 Shading correction Due to technical circumstances the interaction of recorded objects with one an...

Page 64: ...ly 1 4 EnableMemWR 5 Enable write access EnableMemRD 6 Enable read access 7 AddrOffset 8 31 0xF1000258 SHDG_INFO Presence_Inq 0 Indicates presence of this feature read only 1 7 MaxImageSize 8 31 Max S...

Page 65: ...ntrolled by this register Offset Name Field Bit Description 0xF1000300 IO_INP_CTRL1 Presence_Inq 0 Indicates presence of this feature read only 1 6 Polarity 7 0 low active 1 high active 8 10 InputMode...

Page 66: ...Inq 0 Indicates presence of this feature read only 1 6 Polarity 7 0 low active 1 high active 8 10 Output mode 11 15 Mode 16 30 PinState 31 RD Current state of pin WR New state of pin 0xF1000324 IO_OUT...

Page 67: ...Figure 43 Delay time Offset Name Field Bit Description 0xF1000340 IO_INTENA_DELAY Presence_Inq 0 Indicates presence of this feature read only 1 5 ON_OFF 6 Enable Disable integration enable delay 7 11...

Page 68: ...ossible within a sequence 9 2 13 GPDATA_BUFFER GPDATA_BUFFER is a register that regulates the exchange of data between camera and host for programming the LUTs and the upload download of the shading i...

Page 69: ...69...

Page 70: ...70...

Page 71: ...F FastCapture 40 67 68 Flux voltage 17 Format_7 16 30 37 40 43 44 56 61 Frame rates 46 48 Frame Rates 9 10 Free Run 36 Fval Signal 20 G Gain 12 25 26 27 37 H HiRose jack 14 HiRose jack pin assignment...

Page 72: ...4 65 66 71 Shading Correction 9 Spectral sensitivity 11 Status LEDs 16 System components 7 T Temperature sensor 55 Test images 50 63 Time response 23 Timebase 9 10 24 62 63 Trigger 9 10 Triggers 16 18...

Reviews: