• Tidak ada hasil yang ditemukan

Directory UMM :Data Elmu:jurnal:S:Sensor Review:Vol20.Issue1.2000:

N/A
N/A
Protected

Academic year: 2017

Membagikan "Directory UMM :Data Elmu:jurnal:S:Sensor Review:Vol20.Issue1.2000:"

Copied!
6
0
0

Teks penuh

(1)

Camera-based colour

inspection

J.H. Nobbs and

C. Connolly

Rapid developments in computer and computer-related hardware in the last five years have facilitated a completely new, image-based approach to colour inspection. The availability of analogue video cameras, digital cameras and colour scanners to acquire images and the ease with which powerful personal computers handle full-colour images is allowing a very casual approach to colour imaging. However, the same equipment when used with care, can provide colour images with digitised RGB values that may be used for colour measurement (Connollyet al., 1995, 1996). The purpose of this paper is to describe some of the principles and

procedures necessary for camera based colorimetry.

Camera-based colour sensing systems have advantages over conventional colorimeters and spectrophotometers, which have a fixed size observation port and require the sample, in the form of a flat surface, to be placed in contact with the port. A camera provides a non-contact colour sensing system and, by an appropriate choice of lens, for example zoom, wide angle or close-up, can capture the image of a large scene or allow a small object to be magnified.

Colorimetric principles

In the majority of television and computer monitor displays, the image is recreated by stimulating the emission of red, green and blue light from three different phosphors deposited on the inside of the glass screen. The red, green and blue phosphor dots are sufficiently close together that, from a distance, the eye additively mixes the light and perceives it as one colour. The principles of this visual process were established over a hundred years ago by the independent work of three scientists, Young, Helmholtz and Maxwell. The concepts they developed are The authors

J.H. Nobbsis Senior Lecturer in the Department of Colour Chemistry, at the University of Leeds, Leeds LS2 9JT, UK. E-mail: j.h.nobbs@leeds.ac.uk

C. Connollyis Consultant at Stalactite Technologies Ltd, 64 Stocks Way, Shepley, Huddersfield, West Yorkshire HD8 8DN, UK. E-mail: CCbrigante@aol.com

Keywords

Colour, Measurement, Printing, Food, Cameras, Paints

Abstract

Camera-based colour measurement systems have application where it is difficult to apply a contact instrument, or where the contact instrument, because of its fixed lighting geometry, does not provide the necessary data. The paper describes the principles, procedures and precautions necessary for camera based colorimetry. Equations are presented to convert digitised R G and B values, which are system specific, into CIE X Y Z colour values, an international standard method of colour specification. It is reported that colours spaced equally in RGB values appear to have visual colour difference steps varying in size by as much as 30:1 through the different regions. The poorest colour resolution occurs for RGB values that represent dark or strongly coloured shades. At least ten bits per channel digitisation of RGB values is required to achieve a colour resolution similar to the human visual system for dark, intense shades.

Electronic access

The research register for this journal is available at http://www.mcbup.com/research_registers/aa.asp

The current issue and full text archive of this journal is available at

http://www.emerald-library.com

The basis of the work reported here was carried out with the help of research bursaries from the University of Huddersfield (C. Connolly, T.W.W. Leung). The University has filed a patent on the control of video cameras.

The more advanced developments, some of which are described in this paper, were funded by the Department of Trade and Industry through the SMART and the SPUR award schemes.

Sensor Review

Volume 20 . Number 1 . 2000 . pp. 14±19

(2)

known as the trichromatic theory of colour vision (McDonald, 1997; Hunt, 1991). Colour video cameras and scanners have three sensors; the spectral response curve of each sensor is designed to produce signals that are appropriate for the colour properties of the light emitted by the phosphors on the screen.

The target colour properties of the phosphors for television screens used in the UK, the so-called PAL system, are specified by the European Broadcasting Union (EBU) standard. A separate system was developed in the USA, the NTSC system and the

associated Federal Communications Commission (FCC) standard. The

specifications are shown in Table I (Benson, 1992).

Figure 1 shows the ideal camera spectral response curves for the EBU/PAL system over the visible part of the electromagnetic spectrum. The area under each of the response curves is normalised so that the red (R), green (G) and blue (B) signals are equal when the sensors are receiving a particular form of white light known as standard daylight (CIE, D65).

The negative lobes that appear in each curve reflect the fact that only part of the gamut of colours that can be distinguished by

the human visual system can be reproduced by mixing light from three coloured sources. The negative lobes of the response curves cannot be directly implemented and Figure 2 shows a typical set of practical response curves. The negative lobes of the ideal set are sometimes simulated by a technique called matrixing. For example, a little of the response from the red and blue sensors is subtracted from that of the green sensor to form a good approximation to the ideal G response. This generally produces a higher fidelity of reproduction, but it can lead to one or more of the matrixed RGB values being negative when very pure, highly saturated colours are in the image.

The single chip and three chip CCD

sensors

The majority of analogue video cameras contain either one or three image sensors each in the form of a CCD array of light sensitive cells. The intensity of the light falling on a cell determines the amount of charge present in the circuit. The charge in each cell, E(R) E(G) and E(B), is converted to a digital value, and the sensor then outputs these values in time sequence from the grid of cells. CCD arrays for camera applications come in one-third, a half and two-third inch sizes. The larger the chip, the better the spatial

resolution, but the larger and more expensive are both the camera and its lens. In the CCD array camera sensor, the image data are spatially digitised; however, to maintain compatibility with the other parts of the display chain, the spatial digitisation is destroyed and the output is in the form of analogue video signals.

Table IThe chromaticity co-ordinates of the phosphors defined by the EBU and the FCC standards together with the associated R=G=B white points

EBU FCC

Phosphor x y z x y z

Red 0.640 0.330 0.030 0.670 0.330 0.000

Green 0.290 0.600 0.110 0.210 0.710 0.080

Blue 0.150 0.060 0.790 0.140 0.080 0.780

White 0.313 0.329 0.358 0.310 0.316 0.374

(3)

The lowest cost colour cameras contain a single CCD chip. The CCD cells are covered by strips of red, green or blue filters as shown in Figure 3, so the R, G and B signals come from slightly different positions within the image. Spatially coincident R, G and B signals for high-resolution applications can be obtained by using a three-chip camera. In the three-chip camera, there are three identical CCD arrays; one array is covered by a red filter, one by green and the other by blue, as shown in Figure 3. This adds considerably to the cost of the camera but provides more accurate colour reproduction coupled with higher spatial resolution.

Gamma-adjusted values

The phosphors in a display produce light with intensity that is proportional to the voltage signal raised to a power of approximately 2.0. The power constant is known as the gamma factor. In order for the colour reproduction of the whole system to be correct, the signal applied to the display is proportional to the sensor RGB signal raised to the power (1/ gamma), approximately a square root. The adjustment to the signal is usually made at the camera, avoiding the need for power law amplifiers to be incorporated into every television and computer monitor. It follows that the standard form of the image data

obtained from an analogue video camera, a scanner or a digital still camera is the gamma-adjusted values R, G and B. Some CCD cameras allow the gamma correction facility to be turned off.

Signal processing

The output signals available from a modern analogue video camera are often available in two forms, individual R, G and B signals and as composite video, both of which are usually in a gamma-adjusted form.

Composite video

When colour television was first introduced, it was necessary for the broadcast signals to drive all the existing monochrome receivers as well as the new colour televisions just coming on to the market. For these reasons the gamma adjusted signals are encoded into a luminance channel and two chrominance channels and then combined together to form the composite video signal. The frequency bandwidth assigned to the luminance is several times greater than that assigned to the chrominance signals, so that composite video encoding deliberately throws away spatially detailed colour information. This makes composite video the least preferred source of imaging data for colorimetric purposes. When a composite video signal is all that is available, it is very important to remember that the R, G and B signals are gamma-adjusted before being transformed into the composite signal.

Framegrabbers

Framegrabbers are devices that extract a digital representation of the image carried by an analogue video signal. They are a

necessary interface between an analogue video camera and a computer. The framegrabber is designed to:

(1) sample the signal at regular time intervals and thus divide the horizontal TV line into discrete pixels;

(2) digitise the magnitude of the analogue signal, thus producing values, usually to a resolution of eight bits per channel, which the computer can handle.

In order to minimise the subsequent degradation of the image data, the sampling rate of the framegrabber must be matched to the density of CCD cells.

(4)

Digital output cameras

Digital output cameras are better suited to image processing applications than analogue video cameras connected to a framegrabber. Digital cameras can be connected to computers via a SCSI interface, inputting the digital values straight into RAM. This avoids the need for a framegrabber, and cuts out the entire video signal processing which can introduce compression errors and electronic noise. Digital cameras often have much higher signal to noise ratios than analogue cameras and often output values to ten, 12 or even 16-bit resolution in each of the R, G and B channels.

Temporal and spatial variation in pixel values

A given pixel will change its value randomly about a mean value in repeat image captures. In addition, the RGB values of neighbouring pixels that represent adjacent areas of the same uniformly coloured object may differ markedly from each other. These two effects arise from the same cause, the random noise within the system. This comes from the signal to noise ratio of the camera, noise introduced by the connection cables and by the analogue to digital converter (ADC) in the

framegrabber. Whenever it is necessary to establish the RGB value of a uniform region within the image, an average should be taken over as many pixels as possible, whilst avoiding any apparent variations caused by non-uniformity of illumination.

Conversion of RGB values

For colour inspection purposes, an equation of the following type is needed to convert digitised gamma-adjusted data into linear R%, G%and B%values. maximum possible values of the digitised signals. For example, a resolution of eight bits per channel would have maximum values of 255 (28± 1). If the video signals have not been gamma-adjusted then is set to one in

equation (1).

The R%G%B%values specify the colour of the image but, as described above, they are defined relative to the EBU standard. The CIE XYZ system is an international standard method of colour specification and has the advantage of being a device independent method of colour representation. The CIE XYZ system is also based on the additive mixing of coloured lights, defined in such a way that the all the colours in the gamut are represented by positive amounts of the light sources. There is no trio of physically realisable light sources that have this property and X Y and Z are known as the Imaginary Primaries. The X, Y and Z values can be thought of amounts of light from a red, a green and a blue light source respectively, but the imaginary sources provide light with a more intense colour sensation than any real source.

The values of R%G%and B%from an EBU/ PAL sensor can be converted to X Y and Z by means of the following linear equations obtained from the data in Table I.

Xˆ0:4303R%‡0:3416G%‡

Note that when the RGB signals are all full scale (100 percent), the values of X Y and Z are 95.03, 100.00 and 108.91 respectively. This is the CIE XYZ specification of the EBU reference white (CIE D65 daylight, 108 Observer colour matching functions).

In the CIE XYZ system, the Y tristimulus value is proportional to the luminance of the colour sensation. The combined effect of hue and saturation is known as the chromaticity. The chromaticity of two colours is the same if the ratios of the amounts of X, Y and Z that match them are the same. These ratios are termed chromaticity co-ordinates and are represented by the lower case lettersx,y and z, wherex = X/(X+Y+Z),y= Y/(X+Y+Z) andz= 1-x-y. Only two of the chromaticity co-ordinates are needed to specify the chromaticity of a colour; the value of the third can be calculated from the other two.

(5)

and saturation of a colour. The diagram has the property that the co-ordinates of all colours created by mixtures of light from two sources lie on the line joining the two points representing those sources. This is utilised in Figure 4 to represent the restricted gamut limitation of a camera-based colour sensing system.

Full colour gamut

The outer, horseshoe shaped, area in Figure 4 encloses the region within which all real, visible colours lie. It is made from the spectrum locus, the line formed by thex,y values of monochromatic light at each wavelength in the spectrum, and the line joining the two ends of the locus, the purple line. The spectrum locus marks the positions of the most pure, saturated colours that the eye can see and the neutral point (white, grey, black surfaces) is coincident with the light source co-ordinates (D65).

Camera system gamut

The triangle formed by the co-ordinates of the EBU/PAL colour phosphors (Table I), is also shown in Figure 4. The area enclosed is the region that contains all the colours that can be generated by positive values of R G and B.

The camera/display gamut covers less than half of the chromaticities that the eye can see. However, this is not a severe drawback as the colours of nearly all the common materials are

within the camera gamut. The gamut restriction only needs to be borne in mind when considering the use of a camera system to monitor special effect colours or highly saturated coloured materials.

Colour resolution

At first sight, it would seem that the 16.8 million colours available from 8-bit resolution of each of the R, G and B channels would provide a higher resolution of colour than the human eye. Especially when it is compared to the estimate that the visual system can resolve about five million different colours. However, as every colour scientist knows, both RGB and XYZ space are visually non-uniform. Colours spaced equally in RGB values appear to have visual colour difference steps varying in size by as much as 30:1 through the different regions. The colours are packed so closely in the areas of RGB colour space that represents light, pale shades that they are visually indistinguishable, whilst in the areas representing dark, strongly coloured shades, they are very widely spaced to the human eye.

An estimate of the colour resolution can be made by considering the spacing between shades in CIE L* a* b* units. This space is approximately visually uniform and scaled so that 1 unit represents a just perceptible colour difference. The L*a*b* values are obtained from transformation of the X Y and Z values. The poorest resolution for 8-bit digitisation of the R, G and B signals is ten CIE L* a* b* units, which is surprisingly serious (Ikedaet al., 1992). Table II gives values for a range of ADC resolutions and camera signal to noise ratios.

Camera controls

The automatic adjustment features built into the modern video camera do not necessarily

Figure 4CIE chromaticity chart showing the colour gamut of the EBU/PAL phosphors

Table IILowest colour resolution for various framegrabbers and camera noise ratings

Resolution/(bits)

Signal to noise ratio/(dB)

Lowest colour resolution /(CIE L*a*b* units)

8 48 10

9 54 5

10 60 2.5

11 66 1.3

(6)

lead to accurate colour sensing. It is necessary to understand a little about the purpose of each camera feature, so that the user can choose to use or disable it as appropriate.

Automatic iris

The purpose of this is to respond to changing lighting conditions. However, the iris usually responds to the average intensity from the whole field of view. This can result in small areas of bright colour being ``colour clipped'', where one or more of the RGB channels has reached saturation. A related effect is ``blooming'', where CCD cells near to the saturated areas are also affected. To avoid clipping and blooming, the camera should be used with manual iris adjustment, set by experiment to avoid saturation in all regions of the captured image.

Automatic white balance

This aims to compensate for changes in the illuminant colour. The relative gains of the red and blue channels of the camera are automatically adjusted in line with a signal obtained by integrating the red and blue responses over the whole field of view. Unfortunately, this means that if the same object is viewed, first against a blue background, and second against a red background, the signals from the object areas will change. For accurate colour

reproduction, the automatic white balance should not be used.

Filter

A related control to white balance is the choice of an appropriate lens filter to compensate for illumination that is not D65 daylight. The user should ensure that the same filter is always used, and that it is the one best suited to the lighting conditions used.

Temperature effects

The temperature of the camera influences the ``dark current'' from the sensor cells. If it is required to make accurate measurements of dark or saturated colours, then the dark RGB values must be measured at regular intervals and subtracted from the test image RGB values. The dark current can be measured by covering the lens with the lens cap.

The list above indicates the factors that must be considered for the most accurate and precise colour measurement. If you are using a camera and a framegrabber card equipped with a serial data link, then the camera controls can often be set by the software in the computer. This makes it much easier to ensure repeatability of settings and thus precision of colour measurement.

Conclusions

A thorough analysis of colour camera characteristics has been carried out, and techniques have been developed which enable colour video cameras to be used as

colorimetric sensors. It is necessary to control the camera, to achieve stable and repeatable measurements. It is also necessary to convert the camera RGB values to a standard method of colour specification such as the CIE X Y Z system. A second conversion to a visually uniform colour space, such as CIE L*a*b*, is required so that meaningful colour quality decisions can be made based on the camera measurements.

A range of colour-inspection applications is thus opened up where it is difficult to apply a contact instrument, for example moving webs, curved surfaces and foodstuffs.

References

Benson, K.B. (1992),Television Engineering Handbook, McGraw-Hill.

Connolly, C., Leung, T.W.W. and Nobbs, J. (1995), ``Colour measurement by video camera'',Journal of the Society of Dyers and Colourists, Vol. 111, pp. 373-5. Connolly, C., Leung, T.W.W. and Nobbs, J. (1996), ``The

use of video cameras for remote colour

measurement'',Journal of the Society of Dyers and Colourists, Vol. 112, pp. 40-3.

Hunt, R.W.G. (1991),Measuring Colour, Ellis Horwood, 2nd edition.

Ikeda, H., Dai, W. and Higaki, Y. (1992), ``A study of colorimetric errors caused by quantizating color information'',IEEE Trans. Instrum. Meas., Vol. 41, pp. 845-9.

McDonald, R. (1997),Colour Physics for Industry, Ed., 2nd ed., Society of Dyers and Colourists, Bradford.

Further reading

Referensi

Dokumen terkait

Diberitahukan bahwa setelah diadakan penelitian oleh Panitia menurut ketentuan-ketentuan yang berlaku, Panitia Pengadaan Barang dan Jasa di lingkungan Dinas Pekerjaan Umum Daerah

Penguasaan materi, struktur, konsep dan pola pikir keilmuan yang mendukung mata pelajaran yang diampu 14D. Mengembangkan keprofesionalan melalui tindakan

3 2006 Anggota Pelatihan Ketrampilan Mennyusun Rencana Pembelajaran IPS Berbasis Kompetensi (KTSP) untuk Guru-Guru SMP

Hasil penelitian frekuensi pemberian konsultasi gizi dengan kepatuhan diit di RSUD Tugurejo Semarang dapat dilihat pada tabel 9 secara deskriptif menunjukkan bahwa dari 34

Salah satu bentuk pembelajaran kontekstual yang dilakukan dalam mata kuliah taksonomi vertebrata adalah melakukan penelitian proyek yang membahas kaitan antara

[r]

Tujuan: untukmengetahuiapakahekstraketanoldanetilasetatdaridaunceremai dapatdiformulasikandalamsediaankrim,mengetahuikemampuanekstraketanol

Dengan ini diber itahukan bahw a setelah diadakan penelitian oleh Pokja Pembangunan Sumur Bor Pr oduksi di Ger eja Or a Et Labor a RSS Oesapa Kota Kupang, melalui