background image

Piranha Color Camera User’s Manual 

 

43 

 

 

DALSA

 

 

03-032-10211-03

 

9/27/2007 

 

Analog Processing

Digital Processing

analog

 

video

analog

gain

analog

offset

FPN

coefficients

digital

offset

PRNU

coefficients

background

subtract

digital

 

system

gain

sag,ccg

sao

ccf

sdo

ccp,cpa

ssb

ssg

background

addition

digital

 

video

sab

background

addition

digital

 

video

eil

LUT

addition

 

V

output

 =[(V

input

 - FPN( pixel ) - digital offset) * PRNU(pixel) – Background Subtract] x 

System Gain + Background Addition  

where V

output

 

digital output pixel value 

 

V

input

 

digital input pixel value from the CCD 

 

PRNU( pixel) 

PRNU correction coefficient for this pixel 

 

FPN( pixel ) 

FPN correction coefficient for this pixel 

 

Background Subtract 

background subtract value  

 

System Gain 

digital gain value 

 

Background Addition 

background addition value 

The algorithm is performed in two steps. The fixed offset (FPN) is determined first by 
performing a calibration without any light. This calibration determines exactly how 
much offset to subtract per pixel in order to obtain flat (zero) output when the CCD is 
not exposed. 

The white light calibration is performed next to determine the multiplication factors 
required to bring each pixel to the required value (target) for flat, white output. Video 
output is set slightly above the brightest pixel (depending on offset subtracted). 

Flat Field Correction Restrictions 

It is important to do the FPN correction first. Results of the FPN correction are used in 
the PRNU procedure. We recommend that you repeat the correction when a 
temperature change greater than 10°C occurs or if you change the analog gain, 
integration time, line rate, or SRM. 

PRNU correction requires a clean, white reference. The quality of this reference is 
important for proper calibration. White paper is often not sufficient because the grain in 

the white paper will distort the correction. White plastic or white ceramic will lead to 
better balancing. 

For best results, ensure that: 

 

50 or 60 Hz ambient light flicker is sufficiently low so as not to affect camera 
performance and calibration results. 

 

The analog gain should be adjusted for the expected operating conditions. 

 

The ratio of the brightest to darkest pixel in a tap should be less than 3 to 1, where: 

 

 

 

 

 

Brightest Pixel (per tap)

Darkest Pixel (per tap)

3> 

Summary of Contents for PC-30-02K80-R

Page 1: ...Piranha Color Trilinear Camera PC 30 02K80 R PC 30 02K60 R PC 30 04K80 R PC 30 04K60 R Camera User s Manual 03 032 10211 03 27 Sep 07...

Page 2: ...ductor wafer processing Products and services include image sensor components electronic digital cameras vision processors image processing software and semiconductor wafer foundry services for use in...

Page 3: ...ls Camera Link 17 2 6 Camera Timing 18 Base Configuration 18 Base Configuration Timing 19 Medium Configuration 19 Using ASCII Commands 23 Command Format 23 3 1 First Power Up Camera Settings 24 3 2 Re...

Page 4: ...Correction Overview 42 Flat Field Correction Restrictions 43 FPN Measurement 44 3 16 Digital Gain and Background Subtract 49 3 17 Look Up Tables 51 3 18 Saving Loading and Restoring Settings 53 Savin...

Page 5: ...ific Solutions 78 6 3 Product Support 80 Appendix A ASCII Command Reference 81 ASCII Commands Reference 81 A5 Error Handling 88 Appendix B Blue Correction Command 91 Enabling blue correction 91 Append...

Page 6: ...Piranha Color Camera User s Manual 6 DALSA 03 032 10211 03 9 27 2007...

Page 7: ...NU correction White balancing algorithms Optional luminance output Spatial correction Anti blooming Configurable Base or Medium Camera Link RoHS and CE pending compliant Applications 100 print inspect...

Page 8: ...offset Range of 0 DN to 4095 DN All numbers referenced to 12 0 to 4095 DN bits unless otherwise specified Specifications are only valid when line rates greater than 1 0 kHz and input voltage is betwe...

Page 9: ...50 87 87 120 275 275 400 FPN corrected DN p p 2k60 Red Green 2k80 Blue 2k80 27 50 9 87 120 275 400 PRNU ECD pix to pix DN rms 350 350 PRNU ECE pix to pix DN rms 20 350 350 724 PRNU ECE DN p p 180 608...

Page 10: ...erature 25 C All numbers referenced to 12 bits unless otherwise specified Specifications are only valid when line rates greater than 2 5 kHz and input voltage is between 12 V and 15 V Table 2 4k Model...

Page 11: ...275 Blue 4k80 50 120 400 PRNU ECD DN p p 350 350 PRNU ECE DN rms pix to pix 20 350 350 725 PRNU DN p p 180 PRNU Corrected ECD ECE DN DN 608 608 608 608 854 NEE pJ cm2 SEE nJ cm2 Optical Interface Uni...

Page 12: ...n your camera model each line contains either 2048 or 4096 pixels As illustrated in the diagram below the blue line has 2 outputs taps and the red and green lines have 4 outputs Figure 1 Sensor Block...

Page 13: ...r Camera User s Manual 13 DALSA 03 032 10211 03 9 27 2007 1 3 Responsivity 0 10 20 30 40 50 60 400 500 600 700 800 900 1000 1100 Wavelength nm Responsivity V uj cm2 Blue Green Red 2K sensor spectral r...

Page 14: ...anha Color Camera User s Manual 14 DALSA 03 032 10211 03 9 27 2007 0 10 20 30 40 50 60 400 500 600 700 800 900 1000 1100 Wavelength nm Responsivity V uj cm2 Blue Green Red 4K sensor spectral responsiv...

Page 15: ...all cables and connectors prior to installation Do not use damaged cables or connectors or the camera may be damaged 6 Connect Camera Link and power cables 7 After connecting cables apply power to the...

Page 16: ...has occurred 2 Flashing Green Camera initialization or executing a long command e g flat field correction commands ccp or ccf During this state any other sent command is ignored 3 Solid Green Camera...

Page 17: ...ernal programmed integration exposure mode 2 EXSYNC Triggers Line Readout Line rate can be set internally using the serial interface The external control signal EXSYNC is optional and enabled through...

Page 18: ...p The main characteristics of the Base Configuration are Ports supported A B C Serializer bit width 28 Number of chips 1 Number of MDR26 connectors 1 Base Configuration One Channel Link Chip Camera Co...

Page 19: ...1 9 7 19 1 9 7 T0 R0 7 B8 11R8 11 B0 7 1010 12 1 Yes T1 G0 7 Y8 11G8 11 Y0 7 40 19 1 9 7 19 1 9 7 Figure 4 Base Configuration EXSYNC TBD R1 R2 R3 R4 R5 R6 R7 Rn 1 Rn Rn 2 Rn 3 Rn 4 G1 Gn 1 Gn Gn 2 Gn...

Page 20: ...r shield Inner Shield 26 26 inner shield Inner Shield Notes Exterior Overshield is connected to the shells of the connectors on both ends 3M part 14X26 SZLB XXX 0LC is a complete cable assembly includ...

Page 21: ...G2 G4 G6 G8 G10 G12 G14 G16 G18 G20 F BlueB B2 B4 B6 B8 B10 B12 B14 B16 B18 B20 Figure 5 Medium Configuration 8 Bits Color Pixel EXSYNC TBD Line and Data Valid Pixel Clock 40MHz R1 R3 R5 R7 R9 R11 R13...

Page 22: ...figuration Timing 1 CLM Camera Link Mode 2 Bits Number of bits per pixel 3 Taps Number of camera link taps per color 4 Luminance Indicates if a tap constructed from the RGB using the SCC command is ou...

Page 23: ...l 8 data bits 1 stop bit No parity No flow control 9 6kbps at power up Camera does not echo characters Command Format When entering commands remember that A carriage return CR ends each command The ca...

Page 24: ...he last saved settings and the baud rate used before reboot Previously saved pixel coefficients are also restored 3 3 Baud Rate Purpose Sets the speed in bps of the serial communication port Syntax sb...

Page 25: ...Parameter ranges displayed are the extreme ranges available Depending on the current camera operating conditions you may not be able to obtain these values If this occurs values are clipped and the ca...

Page 26: ...rrection iiii 0 4095 8192 8191 8192 8191 8192 8191 scd set ccd direction i 0 2 scl set colour m rgb r g b sdo set digital offset ti 0 0 0 4095 sem set exposure mode m 2 3 4 5 6 7 sfc set fpn coeff xi...

Page 27: ...CD shift direction 2 External direction control via Camera Link control CC3 CC3 1 forward CC3 0 reverse Notes To obtain the current value of the shift direction use the command gcp or get scd Related...

Page 28: ...get clm The bit patterns are defined by the DALSA Camera Link Roadmap and the Camera Link Standard Example clm 5 Setting the Camera s Pixel Rate Throughput Purpose In DALSA cameras the sot command wor...

Page 29: ...tep size is 0 000244 Values are saved with camera settings Values may be viewed with GCP or GET SCC Example White 100 0 25 x Red 0 15 x Green 0 8 x Blue Therefore C1 0 25 x 4096 1024 C2 0 15 x 4096 61...

Page 30: ...ts i 0 Factory set Settings can only be loaded from this set 1 4 User sets You can save or load settings with these sets Note The camera powers up with the last set saved using this command Related Co...

Page 31: ...d line rate generation Syntax sem i Syntax Elements i Exposure mode to use Factory setting is 2 Notes Refer to Table 6 Color Exposure Modes for a quick list of available modes or to the following sect...

Page 32: ...Piranha Color Camera User s Manual 32 DALSA 03 032 10211 03 9 27 2007 Exposure Modes in Detail...

Page 33: ...ency an error message is returned Line rate reduces depending on clm sut els and sah settings Values less than 5000 Hz will return the warning Warning 01 Outside of specification Related Commands sem...

Page 34: ...ts As a result the color images need to be stored delayed and recombined to properly reconstruct the color image This is referred to as spatial correction Blue Green Red Sensor Object As the object tr...

Page 35: ...e a step of 0 1 mm in the movement of the web i e the image on the sensor will move 10 m for each step of the encoder The image is line captured at each step of the encoder The moving object A from th...

Page 36: ...number of lines of delay between colors that are read out from the sensor Syntax ssa i Syntax Elements i Line delay between colors in a range from 0 6 Notes To read the current line delay use the com...

Page 37: ...the start value would be changed to 3 since the first averaged pixel consists of sensor pixels 3 and 4 Example sah 2 3 13 Processing Chain Overview and Description The following diagram shows a simpl...

Page 38: ...in responsivity of individual pixels i e given the same amount of light different pixels will charge up at different rates and the difference in light intensity across the image either because of the...

Page 39: ...d to combine three color streams e g White C0 C1 x Red C2 x Green C3 x Blue C0 is a DN whereas Coefficient C1 3 4 096 Modified by set color command SCL RGB White R G B Red Green or Blue All colors are...

Page 40: ...t may be selected by this command See scl for further information f Gain value in a range from 10 to 10dB Notes To return the current analog gain setting use the command gcp or get sag Example sag 0 5...

Page 41: ...is equal to the specified target Note See Alogrithm Two above for an illustration 4 This algorithm adjusts the analog gain so that the peak tap ROI pixels are adjusted to the specified target Peak Ta...

Page 42: ...SA configures the analog offset for the noise at the maximum specified gain and as a result you should not need to adjust the analog offset Syntax sao t i Syntax Elements t Tap selection Use 0 for all...

Page 43: ...t when the CCD is not exposed The white light calibration is performed next to determine the multiplication factors required to bring each pixel to the required value target for flat white output Vide...

Page 44: ...ory so they be reusable on reboot To do so issue the commands and 5 To verify output enable the FPN coefficients using the command You should see close to zero output gl gla sao cao 0 sag wfc wus epc...

Page 45: ...Sets a range of pixel FPN coefficients Syntax sfr x x i Syntax Elements x The first pixel number of the range x The last pixel number of the range i Coefficient value in a range from 0 2048 Notes Befo...

Page 46: ...icient Target AVG Pixel Value FPN value sdo i i i The calculation is performed for all sensor pixels but warnings are only applied to pixels in the region of interest This algorithm is useful for achi...

Page 47: ...y with the wfc command You can then adjust the digital offset sdo command to remove some of the FPN Ensure camera is operating at its expected analog gain integration time and temperature To save PRNU...

Page 48: ...resolution x2 End pixel to display in a range from x1 to n where n 2048 or 4096 depending on the resolution Notes This function returns all the current pixel coefficients in the order FPN PRNU FPN PRN...

Page 49: ...nge is 1 to 4 depending on color selected or 0 for all taps i Subtracted offset value in a range from 0 to 4095 Notes When subtracting a digital value from the digital video signal the output can no l...

Page 50: ...o signal using the ssb command the output can no longer reach its maximum Use this command to correct for this where ssg value max output value max output value ssb value Syntax ssg t i Syntax Element...

Page 51: ...near response to the amount of light by the sensor output node analog amplifier and analog to digital converter To correct any non linearity in this system of components a Look Up Table LUT has been i...

Page 52: ...ne rate average output is greater than 3 685 DN 12 bit In addition Use the wil command to write the LUT to non volatile memory Use the eil command to enable use of the LUT Use the scl command to selec...

Page 53: ...ich has been set equal to the factory settings You can restore the original factory settings at any time using the command lfs User Settings You can save or restore your user settings to non volatile...

Page 54: ...ROM Syntax wus Syntax Elements Example wus Notes Before issuing this command select the set you wish to write with the ssn command Set 1 4 are user sets The settings can be manually restored with usin...

Page 55: ...ytes LSB first x 1024 values x 4 green taps 2 bytes LSB first x 1024 values x 2 blue taps 32 bytes reserved 2 byte CRC 16 of previous bytes e g PC 30 02k80 would have 1024 words for red tap 1 1024 wor...

Page 56: ...e memory on power up LIL and LFS They are not loaded by LUS Related Commands wil Write FPN Coefficients Purpose Saves current values of FPN pixel coefficients that are in FPGA SDRAM to Flash memory or...

Page 57: ...9e 0x9b79 0x8b58 0xbb3b 0xab1a 0x6ca6 0x7c87 0x4ce4 0x5cc5 0x2c22 0x3c03 0x0c60 0x1c41 0xedae 0xfd8f 0xcdec 0xddcd 0xad2a 0xbd0b 0x8d68 0x9d49 0x7e97 0x6eb6 0x5ed5 0x4ef4 0x3e13 0x2e32 0x1e51 0x0e70 0...

Page 58: ...and LFS They are not loaded by LUS Related Commands wfc Write PRNU Coefficients Purpose Saves current values of PRNU pixel coefficients that are in FPGA SDRAM to Flash memory or a PC file Syntax wpc...

Page 59: ...memory to FPGA SDRAM Syntax lpc Syntax Elements Example lpc Notes Before issuing this command select the set you wish to load with the SSN command 0 Factory set 1 to 4 User sets 5 Selects transfer fro...

Page 60: ...xels above threshold 15 8 11 Pixels below threshold 7 0 12 Pixels below threshold 15 8 Monitor these values either above or below threshold and adjust camera digital gain and background subtract to ma...

Page 61: ...e output R single color output G single color output B single color output LVAL is not high during the end of line statistics Related Commands els sut Example slt 1024 Generating Test Pattern Purpose...

Page 62: ...ave been displayed it also displays the minimum maximum and mean value of the line sampled within the region of interest the region of interest command is explained in section Setting a Region of Inte...

Page 63: ...Commands css roi Example gla 10 20 Setting the Number of Lines to Sample Purpose Sets the number of lines to sample when using the gla command or when performing FPN and PRNU calibration Syntax css m...

Page 64: ...d PR Note Accuracy 271 ns Reliable up to 40 000 H Example gsf 1 Returning the LED Status Purpose Returns the status of the camera s LED Syntax gsl The camera returns one of the following values 2 gree...

Page 65: ...et Number Last FPN 3 Set Number Last PRNU 3 Color RGB Video Mode Normal video Region Of Interest 1 to 2048 End Of Line Sequence 1 Number Of Line Samples 1024 Upper Threshold White 4095 Red 4095 Green...

Page 66: ...6 4096 4096 4096 Blue 4096 4096 Background Add Red 0 0 0 0 Green 0 0 0 0 Blue 0 0 OK Returning Camera Settings with Get Commands You can also return individual camera settings by inserting a get in fr...

Page 67: ...model number get gcs Returns the camera s serial number get gcv Returns the camera s software version get gfc x Returns the FPN pixel coefficient for the pixel indicated Only available when a single c...

Page 68: ...xposure time 7 Internal programmable SYNC maximum exposure time get set Returns the current exposure time in s get sfc x Returns the FPN coefficient for the pixel number indicated x pixel number withi...

Page 69: ...gonal ramp 3 Vertical ramp 4 n a 5 n a 6 DC value 7 FPN demo 8 PRNU demo 9 All 4095 to get FPN 10 All 2048 to get PRNU 11 Power toggle 12 All 320 to FPN offset 13 All zeros 14 All ones get ugr t Retur...

Page 70: ...DEEP 4X PIXEL 1 M3x0 5 5 0 DEEP 2X 1 4 20 UNC 9 0 DEEP F MOUNT CONFIGURATION M72 MOUNT CONFIGURATION RECOMMENDEDAIR FLOW TOP AND BOTTOM IMAGE CENTER M3x0 5 X 5 0 DEEP 4X DETAILA 42 50 BLUE CHANNEL GR...

Page 71: ...a with excellent sensitivity Halogen light sources generally provide very little blue relative to infrared light IR Fiber optic light distribution systems generally transmit very little blue relative...

Page 72: ...Piranha Color Camera User s Manual 72 DALSA 03 032 10211 03 9 27 2007 lens surface to the second focal point The object distance OD is the distance from the first principal point to the object...

Page 73: ...the image height pixel size and h is the object height desired object resolution size By similar triangles the magnification is alternatively given by m f OD These equations can be combined to give th...

Page 74: ...Piranha Color Camera User s Manual 74 DALSA 03 032 10211 03 9 27 2007...

Page 75: ...Charge buildup will affect the camera s flat field correction calibration To avoid an erroneous calibration ensure that you perform flat field correction only after a charge buildup has dissipated ove...

Page 76: ...tion of these pixels changes with the angle of illumination 5 3 Cleaning the Sensor Window Use compressed air to blow off loose particles This step alone is usually sufficient to clean the sensor wind...

Page 77: ...er than 10m Use the scb command to select the correct cable parameter for the cable length Equipment Requirements Ensure that you are using compatible equipment Power Supply Voltages Check for the pre...

Page 78: ...ble line rate under the current operating conditions and that it is free from noise Horizontal Lines or Patterns in Image A faulty or irregular encoder signal may result in horizontal lines due to exp...

Page 79: ...Piranha Color Camera User s Manual 79 DALSA 03 032 10211 03 9 27 2007 Blow off any adhering fibers or particles using dry filtered compressed air...

Page 80: ...ed in your application and their frequency or state if applicable EXSYNC Camera Link Other _______ Voltage reported by the vv command and voltage range reported by the vvRange command gcp screen Pleas...

Page 81: ...is equal to the specified target value 3 This algorithm adjusts digital system gain so that the average pixel value in tap s ROI is equal to the specified target 4 This algorithm adjusts the analog g...

Page 82: ...d target value It then calculates the PRNU coefficients using the target value as shown below PRNU Coefficient Target AVG Pixel Value FPN value sdo i i i The calculation is performed for all sensor pi...

Page 83: ...log gcl Displays the last 50 commands and the camera s response to them get camera model gcm Displays the camera model number get camera parameters gcp Displays all of the camera parameters get camer...

Page 84: ...input LUT lil Load input LUT s from non volatile memory to current Modified by the ssn command load pixel coefficients lpc Load the previously saved PRNU coefficients from non volatile memory Modified...

Page 85: ...output streams Use SCL to select the color RGB for luminance to modify i1 Offset 0 to 4095 i2 Red multiplier 8192 to 8191 i3 Green multiplier 8192 to 8191 i4 Blue multiplier 8192 to 8191 Multipliers a...

Page 86: ...the end of line sequence i Threshold in a range from 0 4095 set mirroring mode smm i Set mirroring mode 0 Left to right 1 Right to left set output throughput sot m Sets the camera s total throughput...

Page 87: ...r than the upper threshold are counted and reported in the end of line sequence i Threshold 0 4095 set video mode svm i Switch between normal video mode and camera test patterns 0 Normal video 1 Horiz...

Page 88: ...ent operating range Use GCP or GET to see value used Warning 04 Related parameters adjusted Internal operating condition is adjusted to accommodate the entered command E g requesting exposure time lon...

Page 89: ...this mode E g Set sync frequency ssf when in external sync mode 3 sem Error 06 Timeout Command not completed in time E g CCF or CCP in SEM 3 when no external EXSYNC is present Error 07 Camera settings...

Page 90: ...Piranha Color Camera User s Manual 90 DALSA 03 032 10211 03 9 27 2007...

Page 91: ...ue Tap PC 30 02K80 516 517 519 520 1536 1537 1539 1540 PC 30 04K80 1025 1026 1028 1029 3067 3068 3070 3071 The interpolation equation is as follows and includes green pixel data Blue B1 B2 B3 B4 Green...

Page 92: ...Piranha Color Camera User s Manual 92 DALSA 03 032 10211 03 9 27 2007...

Page 93: ...ct s xx xx xxxxx xx xx xxxxx fulfill s the requirements of the standard s EMC This product complies with the requirements of the Low Voltage Directive 73 23 EEC and the EMC Directive 89 336 EEC and ca...

Page 94: ...Piranha Color Camera User s Manual 94 DALSA 03 032 10211 03 9 27 2007...

Page 95: ...rmation to the Generating a Test Pattern section page 60 Example test patterns added Set Binning Horizontal sbh command replaced with Set Averaging Horizontal sah command Horizontal average replaces h...

Page 96: ...Piranha Color Camera User s Manual 96 DALSA 03 032 10211 03 9 27 2007...

Page 97: ...ches 78 data bus 17 data rate 8 10 digital gain 50 52 offset 49 processing 38 direction externally controlled 27 28 DVAL 17 E electrical specifications 10 11 EMC Declaration of Conformity 93 enable bl...

Page 98: ...ut signals 17 P performance specifications 8 10 pixel statistics 62 power connectors 16 guidelines 16 PRNU coefficient 47 correction 47 product support 80 R rebooting 24 resolution 8 10 restoring fact...

Reviews: