METHOD AND APPARATUS FOR QUALIFYING AN OBJECT

Abstract: Method and apparatus for qualifying an object comprising the steps of determining several characteristic values of the object, arranging the characteristic values in a sequence in a polar coordinate system having an origin, determining at least one quality point as centre of gravity on the basis of positions of the characteristic values in the polar coordinate system and qualifying the object according to position of said at least one quality point in the polar coordinate system, wherein in determining the at least one quality point the characteristic values are taken into account by weighting with their distances from the origin of the polar coordinate system.

Description: Method and apparatus for qualifying an object TECHNICAL FIELD The invention is a method and apparatus for qualifying an object. BACKGROUND ART By plotting alterations of a physical characteristic measurable on a material as a function of another physical characteristic a spectrum is obtained. A spectrum is obtained for example, when an optical characteristic (transmission or reflection) of a material is plotted as a function of the wavelength of the illuminating radiation. Spectra are useful information sources relating to qualities, e.g. composition, of a material examined. However, the relationship between data representing qualities of the examined material and a certain spectrum of the sample cannot be described today in most cases in the form of a mathematical equation or mathematical equations. Therefore, determining relationships in an empirical way is relied upon. For this, a large number of samples with known qualities are required and spectra of all samples must be measured. In present day measurement technology it is not rare that a single spectrum is represented by a thousand spectrum values. The processing of the spectrum means that operations are to be carried out with these one thousand data. To obtain and interprete useful information require in most cases the application of complicated methods of mathematical statistics. Even the majority of such spectrum recording and evaluating instruments and methods become suitable for determining qualities of samples of unknown composition from their spectra after a "learning" process of a large number of measurements (calibration) carried out on a series of samples of known qualities. Of methods of mathematical statistics applied for processing spectra, a relatively simple and widely applied method is the MLR (Multiple Linear Regression) method which has several variants. Good results can be achieved by the application of the MLR method, however, it has the disadvantage that only spectrum values associated with some discrete values of independent variable are used for determining the quality or qualities sought, although the other spectrum values also carry valuable information. Further, when the programme is run on a PC configuration, the calculation period may be rather long. In order to shorten the calculation period and the learning process (calibration) as well as to obtain more information from the spectrum, it was necessary to apply new methods of mathematical statistics. Such a solution is offered by the transformation of spectra into the Fourier domain and by taking into consideration only the first 20 to 50 members from the coefficients of the Fourier series. This represents a substantial reduction of data and omitting coefficients of higher sequence number only means that the noise is reduced. By means of the Fourier transformation it is possible to decrease the spectrum data by one order of magnitude in a way that in establishing such reduced data all original spectrum data play a role. A method different from those above, implementing a large-scale data reduction based on geometry, has also been suggested, in which spectrum values measured are not plotted in a usual rectangular coordinate system, but in a polar coordinate system, masses of equal extent are assigned to the spectrum points so obtained, and their centre of mass, that is the centre of gravity is determined(K.J. Kaffka, L.S. Gyarmati: Qualitative (Comparative) Analysis by Near Infrared Spectroscopy. Proceedings of the Third International Conference on Near Infrared Spectroscopy, June 25-29, 1990 Brussels, Belgium, pp. 135- 144). The polar coordinate system was called "quality plane", the centre of gravity was named "quality point" and the vector drawn from the origin of the coordinate system to the quality point was called "quality vector". According to this method, the quality, e.g. composition, of materials that can be characterised by their spectra can be described by this quality point or quality vector, respectively. In many cases, however, the examined object is not homogeneous, and the distribution of various components is not uniform in the object. At the same time, knowledge about planar (spatial) distribution of the components could be important e.g. from the aspect of quality. To this end, elaboration of such a special technique is required, which enables measurement of reflection spectra of objects in two dimensions. The size of the object could vary between wide limits. The inhomogeneous surface could be of one cm 2 or smaller size, e.g. when examining pharmaceuticals, cosmetics or foodstuff, it could be of some dm 2 size, e.g. when protein or fat distribution of a body part is to be determined for medical purposes, but it could also be of several thousand km 2 size, e.g. when grain crops of a country are to be predicted on the basis of aerial photographs taken at different wavelengths about the arable land. The solution is to project the surface of the object to be examined to a photosensitive matrix. According to the publication of S. K. Taylor and W. F. McClure: NIR Imaging Spectroscopy: Measuring the Distribution of Chemical Components, Proceedings of the 2nd International NIRS Conference, Tsukuba, Japan, 1989, pp. 393-404, a photosensitive camera including a charge coupled device (CCD) as an image detector was used to distinguish healthy and dead tissue parts of tree leaves, with 320*240 detector elements (pixels) which could distinguish 256 light intensity levels. On one wavelength this represents 76,800 eight-bit data. In order to obtain reliable physical-chemical information from the intensity data measured on the pixels, the measurement should be carried out on several hundred wavelengths. The large quantity of data resulting would exceed the data processing possibilities of a normal PC. Even in the method mentioned above, measurement was carried out on six wavelengths by changeable filters installed in a rotating disk. In the publication of P. Robert, D. Bertrand, M. F. Devaux and A. Sire: Identification of Chemical Constituents by Multivariate Near-Infrared Spectral Imaging, Analytical Chemistry, Vol. 64, No. 6, March 15, 1992, pp. 664-667, measurements carried out on grain by a NIR video camera with 512*512 pixels, on 21 wavelength values are described. The pixels could distinguish 256 light intensity stages. In order to reduce the noise eight pictures were averaged and in order to facilitate data processing signals of four neighbouring pixels were averaged. DISCLOSURE OF THE INVENTION It is an objective of the present invention to provide a further development of the qualification method based on the quality plane discussed above. It is a further objective of the invention to provide a method and an apparatus suitable for analysing two-dimensional pictures of objects, while making sure that very large quantity of spectral image data could be handled by normal data processing capacity of Pcs. Another objective of the invention is to provide a qualifying method which is less sensitive to noise. In the course of examining and practically testing the quality plane method, we have come to the following insights. We have found that in the polar coordinate system, in the case of equal masses assigned to the spectrum points, the effect of spectrum values closer to the origin is relatively high because they are crowded in the vicinity of the origin and so they play a substantial role in creating the centre of gravity. However, the absorption peaks characteristic of the composition of a product are generally located far from the origin of the polar coordinate system, while the absorption valleys hardly characterising the composition are located close to the origin. This means that irrelevant spectrum values are highlighted. We have recognised that for the qualification a more advantageous quality point can be determined if not masses of equal extent, but masses weighted with the distance from the origin are assigned to each spectrum point. The position of the centre of gravity, that is the quality point so defined is more influenced by characteristic spectrum values. Thus, on the one hand, the invention is a method for qualifying an object comprising the steps of determining several characteristic values of the object, arranging the characteristic values in a sequence in a polar coordinate system having an origin, determining at least one quality point as centre of gravity on the basis of positions of the characteristic values in the polar coordinate system and qualifying the object according to position of said at least one quality point in the polar coordinate system. According to the invention, in determining said at least one quality point, the characteristic values are taken into account by weighting with their distances from the origin of the polar coordinate system. By means of the method of the invention it can be achieved that high value features especially characterising the examined object, e.g. absorption peaks of a spectrum, play a bigger role in defining the quality point or quality points. Thus, the quality point or quality points according to the invention is/are better to characterise the object than the quality point obtained by the known method. According to the invention, weighting can be carried out in various ways. Advantageous application can be made of a linear or quadratical weighting, for example so that said at least one quality point is determined as centre of gravity of points being at the positions of the characteristic values and having a mass weighted linearly or quadratically with their distances from the origin of the polar coordinate system. Determination of the at least one quality point can be carried out in a way that in the plane of the polar coordinate system the centre of gravity of a curve of the characteristic values, or that of a curve obtained by connecting neighbouring characteristic value positions is taken into consideration, which corresponds to a linear weighting. The role of important characteristic values can be further increased if in the plane of the polar coordinate system the centre of gravity of an area confined by the curve of the characteristic value and a straight line connecting starting and end points of the curve is considered as the quality point, which corresponds to a quadratic weighting. The method according to the invention enables several types of object qualification, which are described in the following specification and in the set of claims. The method according to the invention is not only suitable for qualifying objects but also for determining some of their qualities. To this end, according to the invention, lines associated with predetermined values of one or more qualities are determined in the plane of the polar coordinate system and values of said one or more qualities of the object are determined on the basis of the position of the quality point in relation to these lines. The value of a quality of the object may also be determined from coordinate values of the quality point by a linear equation, wherein constants of the linear equation can be obtained by regression calculation. The method according to the invention can be applied to any characteristics of any examined object under the condition that the values of the characteristics should be suitable for being expressed in numbers. The characteristics could be, for example, values of a spectrum. It is possible, however, that the characteristics are quantities of different dimensions. In a practical application of the method according to the invention, the characteristic values must always be arranged into a sequence in an identical way and the one or more quality points are to be determined in the polar coordinate system on the basis of the characteristic values arranged in a sequence in the predetermined way. Another aspect of the present invention relates to a method for qualifying an object in two dimensions comprising the steps of determining several characteristic values of the object as a function of a parameter for each image point of a two-dimensional picture of the object and qualifying the object on the basis of the characteristic values determined for the image points. According to the invention the method is characterised by arranging the characteristic values for each image point in a sequence in a polar coordinate system having an origin, determining at least one quality point as centre of gravity on the basis of positions of the characteristic values in the polar coordinate system for each image point, and qualifying the object according to position of said at least one quality point determined for each image point in the polar coordinate system. The method according to the invention enables different types of qualification of a two-dimensional object. Advantageously, the method can be carried out in a way that a single quality point is determined for each image point, and the qualification of the object is performed on the basis of an average quality point determined by averaging the coordinates of the quality points for all image points. This may be carried out by taking into account the positions of the quality points in relation to the average quality point. For example, a statistical parameter of distances between the quality points and the average quality point may be determined, or it can be examined whether the distances of quality points are within a predetermined distance from the average quality point. By means of such homogeneity investigations, the uniform quality of a product can be controlled in industrial applications. The invention is also suitable for determining a quality of the object in two dimensions. On the basis of the at least one quality point, values of an object quality intended to be examined can be preferably determined for all image points. On this basis, a picture of a two-dimensional distribution of the quality can be generated, or it can be examined whether the values of the quality are within a predetermined range of values. It is also possible to determine an average value of the quality and, on the basis of the values of the quality determined for the image points, the object is qualified according to whether the values of the quality are within a predetermined range in relation to the average value. The object's quality to be examined may be determined for each image point in a way that lines associated with predetermined values of the quality are determined in the plane of the polar coordinate system, and the value of the quality is determined on the basis of the position of the at least one quality point in relation to these lines. The value of the quality of the object for each image point may also be determined from the coordinate values of the at least one quality point by a linear equation, where constants of the linear equation may be obtained by regression calculation. The method according to the invention can be applied well in the case when the characteristic of the examined object is the intensity of a radiation as a function of wavelength. In this case the intensity values are arranged in a sequence according to the wavelength values, i.e. the value range of the wavelength is made to correspond to the angular range of the polar coordinate system, thereby defining one or more quality points in the polar coordinate system. In some cases it could be advantageous if the value range of the wavelength is made to correspond to two or more angular ranges, and a quality point is determined for each angular range, and the qualification of the object for each image point or the determination of a quality of the object is carried out on the basis of the two or more quality points. On the other hand, the invention is an apparatus for qualifying an object comprising a device for determining several characteristic values of the object and a data processing unit for arranging the characteristic values determined in a sequence in a polar coordinate system having an origin, said data processing unit comprising means for determining at least one quality point as centre of gravity on the basis of positions of the characteristic values in the polar coordinate system, wherein according to the invention, said quality point determining means in the data processing unit determine said at least one quality point so that the characteristic values are taken into account by weighting with their distances from the origin of the polar coordinate system. In a preferred embodiment of the apparatus said quality point determining means determine said at least one quality point by weighting the characteristic values linearly or quadratically with their distances from the origin of the polar coordinate system. A further preferred embodiment of the apparatus according to the invention is characterised by the fact that said quality point determining means comprise means which, after the determination of each characteristic value, calculate components x, and yι of coordinates xrj and yrj of a quality point Q, add these components to sums ∑x, and ∑y, of these components calculated previously, and determine the coordinates of the quality point as values proportional to the sums obtained after the determination of the last characteristic value. By this solution the apparatus continuously generates appropriate values of the coordinates after the determination of each characteristic value, therefore, earlier values are not to be stored and at the end of the process the values of the coordinates are available immediately. In this way, even in the case of a large number of characteristic values, e.g. more than one thousand values, the end result can be obtained quickly with a relatively low calculating capacity. Another aspect of the invention relates to an apparatus for qualifying an object in two dimensions comprising a device for determining characteristic values of the object as function of a parameter for image points of a two- dimensional picture of the object and a data processing unit for qualifying the object on the basis of the characteristic values determined for each image point. According to the invention, the data processing unit comprises means for arranging the characteristic values for each image point in a sequence in a polar coordinate system having an origin and for determining at least one quality point as centre of gravity on the basis of positions of the characteristic values in the polar coordinate system, and means for qualifying the object according to the position of said at least one quality point determined for each image point in the polar coordinate system. Preferred embodiments are described in the set of claims. BRIEF DESCRIPTION OF DRAWINGS The invention will hereinafter be described on the basis of drawings by demonstrating exemplary embodiments, where Fig. 1 is a reflection spectrum of an object recorded in the NIR range, Fig. 2 is the spectrum as per Fig. 1 plotted in a polar coordinate system, Fig. 3 demonstrates one embodiment of the qualification method according to the invention, based on the spectrum in Fig. 2, Fig. 4 demonstrates another embodiment of the qualification method according to the invention, based on the spectrum in Fig. 2, Fig. 5 is demonstrates a further embodiment of the qualification method according to the invention, based on the spectrum in Fig. 2, Fig. 6 is a flow diagram of an algorithm that can be applied in the method according to the invention depicted in Fig. 3, Fig. 7 is a flow diagram of an algorithm that can be applied in the method of the invention depicted in Figs. 4 and 5, Fig. 8 is a schematic block diagram of an embodiment of the apparatus according to the invention, Fig. 9 is a schematic view illustrating a spectrum recording of the examined object based on interaction in the apparatus as per Fig. 8, Fig. 10 is a schematic view illustrating a spectrum recording of the examined object based on transmittance in the apparatus as per Fig. 8, Fig. 11 is a schematic view illustrating a spectrum recording of the examined object based on transflectance in the apparatus as per Fig. 8, Fig. 12 is a schematic diagram depicting spectrum recording in two dimensions, Fig. 13 is a flow diagram of an algorithm that can be applied in the method of the invention as depicted in Fig. 3, Fig. 14 is a flow diagram of an algorithm that can be applied in the method of the invention as depicted in Figs. 4 and 5, Fig. 15 is a schematic block diagram of an embodiment of the apparatus according to the invention, Fig. 16 is a schematic diagram illustrating the determination of qualities of an examined object on the basis of the quality point according to the invention, Fig. 17 is a two-dimensional distribution image of a quality of an examined object, generated by the method according to the invention, and Fig. 18 is a two-dimensional distribution image of another quality of the examined object as per Fig. 17, generated by the method according to the invention. MODES FOR CARRYING OUT THE INVENTION In the drawings, identical elements or elements of identical function are shown with the same reference signs. Fig. 1 shows a reflection NIR spectrum of an examined object, in this case goose liver, in the wavelength range of 1320 to 1800 nm, in a rectangular coordinate system. Spectrum values of V Q , V -...V ....V are associated with wavelength values of λo, λ 1 ,...λ j ,...λ 12 , where i = 0, 1,...k, and so the number of the spectrum values is (k+1) = 13. Fig. 2 shows the spectrum of Fig. 1 in a polar coordinate system, where spectrum values of V fl , V 1f- ..V are plotted as a function of angle α. In the polar coordinate system an angular range of 0 to 360° corresponds to the wavelength range of 1320 to 1800 nm, and so the wavelength spacing of S = 40 nm represents an angular increment of α = 30°. The plane of the polar coordinate system is called quality plane and in this plane a quality point Q is characterised by coordinates x and y . A vector directed from the origin of the polar coordinate system to the quality point Q is called quality vector. Quality point Q characterises the quality (composition) of the examined object, e.g. a material sample. For each object there is a corresponding quality point Q in the quality plane. However, the inverse of this statement is not true, because several objects of different qualities may result in the same quality point Q. Although the probability is extremely low that two different spectra have their quality points at the same point, this may happen in principle. In such a case, two quality planes may be used, for example by making an angular range of 2 * 360° correspond to the measured wavelength range. Then, the probability is practically zero that the quality points Q1 and Q2 determined from spectrum values measured in two different wavelength ranges for two objects of different qualities are at the same point. The determination of the coordinates x Q and y o of the quality point Q according to Fig. 2 is depicted in Figs. 3, 4 and 5 on the basis of methods according to the invention. In all the three cases, the coordinates x Q and y Q of the quality point Q are determined from sums of linear series. According to Fig. 3, for the spectrum plotted in the polar coordinate system, the method to be applied according to the invention is the following: masses of an extent weighted linearly with the spectrum values are assigned to the points corresponding to the obtained spectrum values, then their centre of gravity are determined, and the centre of gravity is considered as the quality point Q. The coordinates x Q and y 0 of the quality point Q may be determined from the measured spectrum values on the basis of sums of the following linear series: 1 k x 0 = - — τ∑ | , where x, = V, 2 cosiα (1) + 1 - N_nO Vo = ■ where y« = v ' 2 sjniot w and where V is the spectrum value measured on the i-th wavelength value, k+1 is the number of the spectrum values, α [°] = 360/k. If the wavelength range is ( λ m«x - λ i n ) . tne wavelength spacing used for recording the spectrum is s = (λ nMUl - λ m ι n ) /k . If masses of an extent weighted quadratically with the spectrum values are assigned to the points corresponding to the spectrum values, V, 2 is replaced by V, 3 in the equations (1) and (2). Fig. 4 depicts another way of implementing the method according to the invention. In this case the centre of gravity of straight lines having a mass and connecting points corresponding to the spectrum values is considered to be the quality point Q. In this way, it can be achieved that absorption peaks characterising the composition play a more significant role in determining the quality point Q. This practically means that the spectrum values are considered in a way weighted linearly with their distance from the origin. The coordinates x Q and y 0 of the quality point Q can be determined from sums of the following linear series: = - ∑ x, , where 1-1 x, = [V,cosiα - V (M) cos(i - 1)α] + [V, siniα - V (M) sin(i - 1)α] 2 * V,cosiα + V^ ΛCOSØ - 1)α (3) 1 " = j- ∑ y, , where l»1 2 cosiα - V (M) cos(i - 1 )α] + [V,siniα - V (μi) sin(i - 1 )α] * V,siniα + V^sinfl - 1) (4) * 2 and where the symbols correspond to those applied in the equations (1) and (2). Fig. 5 depicts another way of implementing the method according to the invention. In this case the centre of gravity of a surface having a certain mass and an area confined by straight lines connecting the points corresponding to the spectrum values, that is the centre of gravity of the surface cut along the spectrum, is considered to be the quality point Q. This practically means that spectrum values are taken into account in a way weighted quadratically with their distance from the origin. The coordinates x Q and y Q of the quality point Q can be determined from sums of the following linear series: 1 k x 0 = τ-∑X| . where II V,V (μi) sinα V,cosiα + V^.^cos^ - 1)α (5) 1 k = τ Σ Vι • wπβre V|V<ι-D s ' nα and where the symbols correspond to those applied in the equations (1) and (2). It is to be noted that the methods according to Figs. 3, 4 and 5 result in quality points Q of different positions, as it can be seen from the equations (1 )- (2), (3)-(4) and (5)-(6). In a particular qualification, of course, only one type of method is advised for use. In Fig. 6 the flow diagram shows a preferred calculation algorithm for generating the coordinate values x Q and y Q according to the equations (1) and (2). After step 29 (START), in step 30 an adjustment of index i and values of coordinates x Q and y Q to an initial zero takes place. In step 31 it is to be decided whether the value of i is lower than or equal to k, where k+1 is the number of the spectrum values. If the answer is yes (Y), measurement or determination of the spectrum value V, associated with index i takes place in step 32, then in step 33 value x associated with the i-th spectrum value is calculated and this is added to the value of x already determined, and in step 34 value y ( associated with the i- th spectrum value is calculated and this is added to the value of y ( already determined. Next, in step 35 the value of i is incremented, and then the programme returns to step 31 and the cycle is repeated for the next spectrum value. If in step 31 the answer is no (N), that is i is greater than k, then all the spectrum values have been measured and considered, and so in step 36 the coordinate values x = ∑x, /(k+1) and y o = ∑y ( /(k+1) are calculated, and these values are stored or displayed, respectively, by a data processing unit. In Fig. 7 the flow diagram shows a preferred calculation algorithm for generating the coordinate values x Q and y Q according to the equations (3) and (4), and (5) and (6), respectively. After step 29 (START), in step 30 an adjustment of index i and the values of coordinates x g and y to an initial zero takes place. In step 31 it is to be decided whether the value of i is lower than or equal to k, where k+1 is the number of the spectrum values. If the answer is yes (Y), in step 32 measurement or determination of the spectrum value V, associated with index i takes place, then it is examined in step 37 whether the value of i is zero. If i = 0, that is the very first spectrum value has been determined, no calculation takes place, but in step 35 the value of i is incremented. If i ≠ 0, then in step 33 value x ( associated with the i-th spectrum value is calculated and this is added to the value of x ( already determined, and in step 34 value of y associated with the i-th spectrum value is calculated and this is added to the value of y already determined. Then in step 35 the value of i is incremented, and then the programme returns to step 31 and the cycle is repeated for the next spectrum value. If in step 31 the answer is no (N), i.e. i is greater than k, then all the spectrum values have been measured and considered, and so in step 36 the coordinate values x fl = ∑x ( /k and y = ∑y f /k are calculated, and these values are stored or displayed, respectively, by a data processing unit. ln the case when the method according to the invention is applied on the basis of such characteristics of the examined object that are already available and stored in the data processing unit, the step 32 is omitted in the flow diagrams depicted in Figs. 6 and 7. In Fig. 8 the apparatus according to the invention is demonstrated by an example of a composition measurement instrument operating in the NIR wavelength range of electromagnetic radiation. The NIR wavelength range is especially suitable for determining rapidly and in a non-destructive way the concentration of components in a material and the composition of materials from the spectrum values, because in this range most organic materials have absorption bands, that is the spectrum has a rich information content. In addition, materials are the most transparent in this range, and so in the case of transmission or reflection measurements, as a result of larger sample thickness and deeper penetration, difficulties stemming from inhomogeneity can be eliminated. The apparatus shown in Fig. 8 contains neither rotating nor moving elements, and would not require sampling and thus has a long lifetime. Radiation is ensured by a LED array 1 emitting cold light, the LEDs of which receive in turn actuating current pulses from a LED drive unit 2. The LED drive unit 2 is controlled through an I/O unit 3 by means of a microprocessor-based data processing unit 23 as described later. In the data processing unit 23, there is a CPU 4 to which a RAM 21, a ROM 22 and via I/O unit 19 a display 20 (monitor or LCD display) are connected through a bus 18. The I/O unit 3 and an A/D converter 17 are also connected to the bus 18. The spectral distribution and bandwidth of the radiation of the LEDs generally do not provide sufficient monochromatic radiation, and so an appropriately narrow bandwidth is provided by a transmission optical grating 5 and a slit 6. The monochromatic radiation of appropriately narrow bandwidth may also be ensured in a way different from that shown, e.g. by a reflection optical grating or by a monochromator of another type, e.g. by an opto-acoustic filter to be tuned by an electric control signal. A collimator lens 7 in front of the optical grating 5 and an imaging lens 8 after it perform the functions of collimation (paralleling) and imaging. The monochromatic radiation beam exiting from the slit 6 is paralleled by a lens 9, which parallel beam is divided into two by a beam splitter 10, preferably by a transparent glass plate positioned at an angle of 45°. The one smaller part reaches a reference detector 11, while the other larger part serves for illuminating the examined object 13, e.g. a material sample, through fibre optics 12. The radiation reflected by the object 13 or transmitting through it is guided by another fibre optics 14 to a measuring detector 15. Signal l R of the reference detector 11 and signal I of the measuring detector 15 are connected to inputs of a twin logarithmic amplifier 16, which provides at its output a signal proportional to the logarithm of the quotient I/IR of the signals. The output signal of the twin logarithmic amplifier 16 is supplied through the A/D converter 17 to the CPU 4 for processing, which latter displays the result, e.g. the quality vector characterising the examined object 13, on the display 20. All this is performed in the following way. After switch-on, at the command of the CPU 4 e.g. LED No. 0 in the LED array 1 consisting of thirteen LEDs receives a current pulse and its radiation reaches lens 7, which parallels the beam and supplies it to the optical grating 5, which emits a monochromatic radiation of wavelength λ Q by means of the lens 8 through the slit 6. This monochromatic radiation partly reaches the reference detector 11 and partly through fibre optics 12 and 14 the object 13, and reflected by or transmitting through it, it reaches the measuring detector 15. The geometric arrangement between the object 13 and the fibre optics 12 and 14 may be different depending on what type of measurement is involved: reflectance shown in Fig. 8, interactance shown in Fig. 9, transmittance shown in Fig. 10 or, in the case of transparent liquids, for example by means of a reflecting surface 24 located behind a metering vessel (cuvette), transflectance shown in Fig. 11. The logarithm of signals I and l R and the difference of the logarithms are generated by the twin logarithmic amplifier 16. Thus, according to equation log l- log l R = log(l/ I β ^ o (7) the logarithm of the quotient of the signals I and l R appears at the output of the twin logarithmic amplifier 16. In this way, the error resulting from alterations in the intensity of LED radiation may be eliminated. This signal is digitised by the A/D converter 17 and in the CPU 4 it is divided by a value of log(l / l R )*.,,*,-- !, λo stored in the ROM 22 and obtained at the same wavelength λo from a standard material (usually ceramic). The spectrum value V Q so determined is associated with the wavelength λo. By generating the quotient of the signals appearing at the output of the twin logarithmic amplifier 16 and stemming from the object 13 and from the standard material, any error resulting from alterations in time of the reference detector 11 and the measuring detector 15 may be eliminated. Since the characteristics of the reference detector 11 and the measuring detector 15 change slowly, it is sufficient to re-measure and store the spectrum values of the standard material at longer intervals, e.g. in every month. After that the CPU 4, e.g. according to the flow diagram shown in Fig. 6, calculates values of the first members of the series according to the formulae specified for x. and y ( relating to λo. This was the first cycle. In the next cycle, at the command of the CPU 4, LED No. 1 receives a pulse and as a result, in the way described above, a monochromatic radiation of wavelength λ 1 appears at the slit 6, which radiation proceeds across the two channels in the way described above. By dividing the value of log(l / l R ) βhj . ct. Aι appearing at the output of the twin logarithmic amplifier 16 by a value of log(l / i R Jr t . nd .,-, , ^ measured on the standard material, spectrum value V associated with wavelength λ is determined. The CPU 4 calculates values of the second members of the series according to the formulae specified for x. and y ( relating to λ 1t which are added to the values calculated in the previous cycle. The process continues like this until the last LED No. 12 in this example is actuated, until the last members of series x and y relating to λ 12 and then the complete sums of the series are calculated, along with the coordinate values x and y 0 of the quality point Q, and until these are displayed by the display 20. Of course at the display 20 quality point Q of a reference product may also be displayed simultaneously, and in fact data of a distance D ---,„,. to be described below may also be indicated. In the example above, there were thirteen spectrum values, but it may also be several hundred or several thousand, the method is the same but it is repeated several times. Fig. 12 illustrates spectrum recording of an object taken in two dimensions at several wavelength values. The two-dimensional picture of the object, the image field are divided into image points, and each image point may be characterised by image point coordinates a and b. The value of image point coordinate a ranges from 1 to n, and the value of image point coordinate b ranges from 1 to m, that is the image field consists of n lines, m columns and n*m image points. As a result of the two-dimensional spectrum recording, at each λj wavelength value, n*m spectrum values V,(a, b) will be obtained, where i = 0, 1...k. Thus, a complete spectrum will be associated with each image point. In the example shown in Fig. 12, wavelength value λo, λ 1t ...λ 12 are associated with spectrum values V Q , V ....V^ at image point a = n, b = m. In a real case, the number of image points may be higher than 100,000 and the number of wavelength values applied could exceed 1000. Therefore, the number of spectrum values could be higher than 100 million, and each spectrum value represents a data of at least 8 bits. According to the invention, each image point of the image field is characterised by a quality point determined on the basis of the spectrum, and the position of the quality point is specified by two coordinates. Various possibilities for determining the quality point are described in relation to Figs. 1 to 5. In Fig. 13 the flow diagram shows a preferred calculation algorithm for generating the coordinate values x Q and y Q for each image point, according to the equations (1) and (2). For the coordinates of the image points, the symbols of Fig. 12 are used. After step 38 (START), in step 39 an adjustment of index i and values of coordinates x Q and y 0 for all image points to an initial zero takes place. In step 40 it is to be decided whether the value of i is lower than or equal to k, where k+1 is the number of the spectrum values. If the answer is yes (Y), in step 41 the adjustment of wavelength value λ, associated with index i takes place, and then the spectrum values are measured and determined, respectively, for each image point. For this, in step 42 the image point coordinates a and b are set to an initial value 1, and in step 43 the measurement and determination, respectively, of spectrum value V.(a, b) associated with the specified image point take place, then in step 44 value x.(a, b) associated with this spectrum value is calculated, and this is added to the value of x.(a, b) already determined, and in step 45 the value y.(a, b) associated with the spectrum value is calculated and added to the value of y.(a, b) already determined. Next, in step 46 image point coordinate a is incremented and it is examined in step 47 whether the value of a is lower than or equal to n, where n is the number of the lines of the image field. If yes (Y), the programme returns to step 43 and the cycle is repeated for the next image points. If no (N), then all the image points in the first column of the image field have been measured and taken into consideration, so the programme changes to the next column. For this, the image point coordinate b is incremented in step 48 and the image point coordinate a is again set to the value 1. Then in step 49 it is examined whether the value of b is lower than or equal to m, where m is the number of the columns in the image field. If yes (Y), the programme returns to step 43 and the cycle is repeated for the image points of the next column. If no (N), all the image points of all columns in the image field have been measured and taken into consideration, so in step 50 the value of i is incremented and then the programme returns to step 40 and the complete cycle is repeated for the next wavelength value. If in step 40 the response is no (N), that is i is greater than k, all the spectrum values have been measured and taken into consideration for all the image points, and so in step 51 the coordinate values x Q (a, b) = ∑X|(a, b)/(k+1) and y 0 (a, b) = ∑yι(a, b)/(k+1) are calculated for all image points, and these values are stored or displayed, respectively, by the data processing unit. In Fig. 14 the flow diagram shows a preferred calculation algorithms for generating coordinate values x Q and y Q for each image point, according to the equations (3) and (4), and (5) and (6), respectively. The flow diagram shown in Fig. 14 is similar to that depicted in Fig. 13, therefore, only the differing parts will be described. After step 43 it is examined in step 52, whether the value of i is zero. If i = 0, that is the spectrum value associated with the very first wavelength value λo has been determined, no calculation is carried out in steps 44 and 45, but the programme continues in step 46 with the incrementing of value a. The other deviation from the algorithm shown in Fig. 13 is that in step 51 the coordinate values are calculated according to the equations x o (a, b) = ∑x,(a, b)/k and y Q (a, b) = ∑y,(a, b)/k. In the case when the method according to the invention is applied on the basis of such characteristics of the examined object that are already available and stored in the data processing unit, the steps 41 and 43 in the flow diagrams according to Figs. 13 and 14 are omitted. Fig. 15 shows an apparatus according to the invention by way of example of a two-dimensional composition measurement instrument functioning in the NIR wavelength range of electromagnetic radiation. The apparatus contains neither rotating nor moving elements, and does not require sampling and thus has a long lifetime. Radiation is ensured by a LED array 1 emitting cold light, the LEDs of which receive in turn actuating current pulses from a LED drive unit 2. The LED drive unit 2 is controlled through an I/O unit 3 by means of a microprocessor-based data processing unit 23 as described later. In the data processing unit 23, there is a CPU 4 to which a RAM 21, a ROM 22 and via I/O unit 19 a display 20 (monitor or LCD display) are connected through a bus 18. The I/O unit 3, a multiplexer 28 and an A/D converter 17 are also connected to the bus 18. The spectral distribution and bandwidth of the radiation of the LEDs generally do not provide sufficient monochromatic radiation, and so an appropriately narrow bandwidth is provided by a transmission optical grating 5 and a slit 6. The monochromatic radiation of appropriately narrow bandwidth may also be ensured in any per se known way different from that shown. A collimator lens 7 in front of the optical grating 5 and an imaging lens 8 after it perform the functions of collimation (paralleling) and imaging. The monochromatic radiation beam exiting from the slit 6 is directed to a two- dimensional surface of the examined object 13 by a lens 9, which beam is divided into two by a beam splitter 10, preferably by a transparent glass plate positioned at an angle of 45°. The one smaller part reaches a reference detector 11, while the other larger part serves for illuminating the examined object 13, e.g. a material sample. The two-dimensional picture of the object 13 illuminated uniformly is imaged by a lens 25 to the surface of a photosensitive matrix 27 in a video camera 26. The photosensitive matrix 27, e.g. a CCD sensor, forms a photosensitive matrix of m columns and n lines, and each pixel of this matrix senses the intensity of the radiation reflected by one image point of the surface of the object 13, which intensity is characteristic of the material quality of that surface element of the object 13. The signals from the pixels are forwarded one by one in time by the multiplexer 28 to a twin logarithmic amplifier 16. The multiplexer 28 could be integrated in a single chip with the photosensitive matrix 27 of the CCD type. Signal l R of the reference detector 11 and signal I of the pixels of the photosensitive matrix 27 are connected to inputs of the twin logarithmic amplifier 16, which provides at its output a signal proportional to the logarithm of the quotient l/l R of the signals. The output signal of the twin logarithmic amplifier 16 is supplied through the A/D converter 17 to the CPU 4 for processing, which latter displays the result, e.g. a two-dimensional distribution of a characteristic of the examined object 13, on the display 20. All this is performed in the following way. After switch-on, at the command of the CPU 4 e.g. LED No. 0 in the LED array 1 consisting of 13 LEDs receives a current pulse and its radiation reaches lens 7, which parallels the beam and supplies it to the optical grating 5, which emits a monochromatic radiation of wavelength λ by means of the lens 8 through the slit 6. This monochromatic radiation partly reaches the reference detector 11 and partly the object 13 as described above. Reflected by the object 13, the radiation reaches the photosensitive matrix 27, the pixels of which are regularly scanned by the multiplexer 28 at the command of the CPU 4. The logarithm of signals I and l R and the difference of logarithms are generated by the twin logarithmic amplifier 16. Thus, the logarithm of the quotient of the signals appears at the output of the twin logarithmic amplifier 16. In this way, the error resulting from alterations in the intensity of LED radiation may be eliminated. This signal is digitised by the A/D converter 17 and divided by in the CPU 4 by a log(l / l R ). t«nd .„. , ;. e value stored in the ROM 22 and obtained at the same wavelength λo from a standard material (usually ceramic). The spectrum values V (a, b) so obtained are associated with the wavelength λo. The CPU 4, e.g. according to the flow diagram shown in Fig. 13, after determining the spectrum value V (a, b) corresponding to each image point, calculates values of the first members of the series of the formulae specified for x ( and y, relating to λo. This was the first cycle and the following cycles relating to λ 1t λ 2 ,... are carried out likewise. The process continues like this until the last LED No. 12 in this example is actuated, until the last members of x, and y ( series relating to λ 12 and then the complete sums of the series are calculated, along with the coordinate values x (a, b) and y (a, b) of the quality point Q(a, b), and until corresponding data or diagrams are displayed by the display 20. In the example above, there were thirteen spectrum values, but it may also be several hundred or several thousand, the method is the same but it is repeated several times. The apparatus according to the invention may also be implemented in a way that the image of the object 13 is sensed through a changeable filter, which filter may be located in front of or may be integrated with the video camera 26. In this case, the object 13 is to be illuminated by a wide-band light beam including the required sensing wavelength values, or such wavelength values shall be used for the detection which correspond to the light illuminating the object 13. Fig. 16 shows by way of example a quality plane, in which level lines associated with different values of two qualities of an object are plotted. For example component A could be starch and component B protein in qualifying a food industry object. From coordinates x Q and y Q of the quality point Q(a, b) associated with a specific image point, the concentration of starch and protein in the image point can be determined. Figs. 17 and 18 depict diagrams that show two-dimensional distributions of quality values determined for each image point by means of the method illustrated in Fig. 16. Fig. 17 shows the distribution of component B, e.g. protein, and Fig. 18 depicts the distribution of component A, e.g. starch, in the case of a chicken leg put on a plate with potato garnish. In the course of testing the method according to the invention in the practice we have come to the following insights. For production plant experts the method according to the present invention resulting in a substantial reduction of data can be easily applied because of its straightforward nature and simple interpretation. This is because in production processes in many cases it is not required to know exactly all the composition data (concentration values) characterizing a product, it is enough to know whether the product deviates from the quality of a reference product (a sample declared to be satisfactory) by an extent exceeding a predetermined rate or not. In such a case the extent of deviation may be described by a "distance" between the quality point of the reference product and that of the examined product. The distance may be defined as Dp„ r = ( X 0r.f - X 0 ~t) 2 + (y0τ.f " Youi )' ( 8 ) where x^ and yo^ are coordinates of the quality point Q^ of the reference product, and Xo^^ and yo t ., t are those of the quality point Q of the examined product. Consequently, around the quality point Q^ of the reference product a circle can be defined so that if the quality point Q is within the circle, the examined product may be accepted and if quality point Q is outside this circle, it is to be rejected. The method may be used either for classification or sorting. Concerning the extent of deviations between spectra, distances have been defined in the prior art. Such distances are for example the Euclidean distance and the Mahalanobis distance. These distances specify the deviations well but say nothing about the reason of the difference and so two examined products being at an identical distance from a reference sample could differ very much from each other. On the contrary, in the quality plane according to the present invention conclusions can be drawn about the reason of deviation from the position of the quality point of the examined product. If for example, the quality point of examined goose liver deviates from the quality point of the reference goose liver in the same direction where the fat's absorption peak points in the polar coordinate system, this indicates that the fat content of the examined goose liver is higher than that of the reference goose liver. To this end, the wavelength range corresponding to 360° must be selected in a way that the directions of the absorption peaks of the two most important components make an angle of approximately 90° or 270° to each other in the polar coordinate system. It is great advantage of the method according to the invention that it is not sensitive to the noise in the spectrum. The plus and minus deviations of high frequency noises offset one another in determining the position of the quality point Q, consequently it is not necessary to "smooth" the spectra. The method is neither sensitive to changes in particle size of the examined object nor to those in thickness in a transmission measurement. These changes affect the spectrum plotted in the polar coordinate system as if it were magnified or reduced in size, while the centre of gravity remains in place. The method does not require any learning process or calibration, and for qualifying a product it is only necessary to be aware of the reference product's spectrum. The method may be carried out extremely rapidly because by calculating the values of the members of the series serving for calculating the coordinates of the quality point Q for each wavelength, and by adding these values to the previous values, only the sums are carried forward and the values of the previous members in the series can be forgotten, and so by measuring the values associated with the last wavelength, only the last values are to be added for obtaining the result. The method according to the invention, which is principally qualitative, may be further developed to make it quantitative. This is possible in two ways. According to one method, in an empirical way, lines of levels concerning a specified quality of the object, e.g. equi-concentration lines relating to the concentration of a component, are to be determined in the quality plane. In determining the lines associated with different values of the specified quality, it is advisable to select the angular range corresponding to the value range in a way that it corresponds to a value range in which the relevant quality has specific effects. In consideration of this point, it could be advisable to apply several quality planes and accordingly several quality points for a quantitative determination of several qualities of the object. According to another method, a specified quality, e.g. concentration K of a component, may be calculated in a predetermined concentration range with the following formula: K = A + Bx o + cy, 0 i (9) where x Q and y Q are the coordinates of the quality point Q, and coefficients A, B and C may be determined by regression calculation. The method according to the invention may be applied to any type of spectrum (optical, mechanical, electrical etc.) and to any of its transformed versions, or to any set of characteristics of an object which characteristics can be expressed in numbers and arranged in a sequence in a polar coordinate system.

Claims: CLAIMS 1. A method for qualifying an object comprising the steps of determining several characteristic values of the object, arranging the characteristic values in a sequence in a polar coordinate system having an origin, determining at least one quality point as centre of gravity on the basis of positions of the characteristic values in the polar coordinate system and qualifying the object according to position of said at least one quality point in the polar coordinate system, c h a r a c t e r i s e d in that in determining said at least one quality point the characteristic values are taken into account by weighting with their distances from the origin of the polar coordinate system. 2. The method as claimed in claim 1, characterised in that said at least one quality point is determined as centre of gravity of points being at the positions of the characteristic values and having a mass weighted linearly or quadratically with their distances from the origin of the polar coordinate system. 3. The method as claimed in claim 1, characterised in that said at least one quality point is determined as centre of gravity of a curve of the characteristic values or that of a curve obtained by connecting neighbouring characteristic value positions in the polar coordinate system. 4. The method as claimed in claim 1, characterised in that said at least one quality point is determined as centre of gravity of an area confined by a curve of the characteristic values and a straight line connecting starting and end points of said curve, or centre of gravity of a polygon area obtained by connecting neighbouring characteristic value positions in the polar coordinate system. 5. The method as claimed in any of claims 1 to 4, characterised in that the object is qualified according to whether the quality point or any of the quality points falls into a predetermined domain defined in the polar coordinate system. 6. The method as claimed in any of claims 1 to 4, characterised in that the object is qualified according to whether the quality point or any of the quality points falls into any of two or more predetermined domains defined in the polar coordinate system. 7. The method as claimed in any of claims 1 to 4, characterised in that the object is qualified according to a distance between the quality point or any of the quality points and a reference quality point corresponding to a reference object. 8. The method as claimed in any of claims 1 to 4, characterised by establishing lines associated with predetermined values of at least one quality of the object in the polar coordinate system, and determining value or values of the at least one quality according to the position of the quality point or any of the quality points in relation to these lines. 9. The method as claimed in any of claims 1 to 4, characterised by determining value or values of at least one quality of the object from coordinate values of the quality point or any of the quality points according to a linear equation, wherein constants of the equation are obtained by regression calculation. 10. The method as claimed in any of claims 1 to 4, characterised by determining said several characteristic values of the object as a function of a parameter, and arranging the characteristic values in a sequence according to corresponding values of the parameter. 11. The method as claimed in claim 10, characterised in that said arranging the characteristic values in a sequence is carried out so that a whole value range of the parameter corresponds to an angular range of 360°, and particular value ranges of the parameter carrying specific information about qualities of the object make an angle of approximately 90° or 270° to each other in the polar coordinate system. 12. The method as claimed in claim 10, characterised in that said arranging the characteristic values in a sequence is carried out so that a whole value range of the parameter corresponds to two or more angular ranges in the polar coordinate system, a quality point is determined for each angular range, and the qualification of the object is carried out according to the two or more quality points. 13. A method for qualifying an object in two dimensions comprising the steps of determining several characteristic values of the object as a function of a parameter for each image point of a two-dimensional picture of the object and qualifying the object on the basis of the characteristic values determined for the image points, c h a r a c t e r i s e d by arranging the characteristic values for each image point in a sequence in a polar coordinate system having an origin, determining at least one quality point as centre of gravity on the basis of positions of the characteristic values in the polar coordinate system for each image point, and qualifying the object according to position of said at least one quality point determined for each image point in the polar coordinate system. 14. The method as claimed in claim 13, characterised in that a single quality point is determined for each image point and by averaging coordinates of the quality points obtained for the image points an average quality point is determined for the qualification of the object. 15. The method as claimed in claim 14, characterised by determining a statistical parameter of distances between the quality points of the image points and the average quality point and qualifying the object according to this statistical parameter. 16. The method as claimed in claim 14, characterised by qualifying the object according to whether the quality points are within a predetermined distance from the average quality point. 17. The method as claimed in claim 13, characterised in that, on the basis of said at least one quality point obtained for each image point, a value of a quality of the object is determined for each image point, and the object is qualified according to whether these values for the image points are within a predetermined value range. 18. The method as claimed in claim 13, characterised in that, on the basis of said at least one quality point obtained for each image point, a value of a quality of the object is determined for each image point, then an average value is determined for all image points, and the object is qualified according to whether these values for the image points are within a predetermined range in relation to the average value. 19. The method as claimed in claim 13, characterised in that, on the basis of said at least one quality point obtained for each image point, a value of a quality of the object is determined for each image point, and a two- dimensional distribution of the quality is generated. 20. The method as claimed in any of claims 17 to 19, characterised in that said values of the quality of the object are determined by establishing lines associated with predetermined values of the quality in the polar coordinate system and determining the position of the quality point or any of the quality points in relation to these lines. 21. The method as claimed in any of claims 17 to 19, characterised in that said values of the quality of the object are determined from the coordinate values of the quality point or any of the quality points by a linear equation, wherein constants of the equation are obtained by regression calculation. 22. The method as claimed in claim 13, characterised in that in determining said at least one quality point the characteristic values are taken into account by weighting with their distances from the origin of the polar coordinate system. 23. The method as claimed in claim 22, characterised in that said at least one quality point is determined as centre of gravity of points being at the positions of the characteristic values and having a mass weighted linearly or quadratically with their distances from the origin of the polar coordinate system. 24. An apparatus for qualifying an object comprising a device for determining several characteristic values of the object and a data processing unit for arranging the characteristic values determined in a sequence in a polar coordinate system having an origin, said data processing unit comprising means for determining at least one quality point as centre of gravity on the basis of positions of the characteristic values in the polar coordinate system, c h a r a c t e r i s e d in that said quality point determining means in the data processing unit (23) determine said at least one quality point so that the characteristic values are taken into account by weighting with their distances from the origin of the polar coordinate system. 25. The apparatus as claimed in claim 24, characterised in that said quality point determining means determine said at least one quality point by weighting the characteristic values linearly or quadratically with their distances from the origin of the polar coordinate system. 26. The apparatus as claimed in claim 24, characterised in that said quality point determining means comprise means which, after the determination of each characteristic value, calculate components x, and y, of coordinates x 0 and y 0 of a quality point Q, add these components to sums ∑x, and ∑y, of these components calculated previously, and determine the coordinates of the quality point as values proportional to the sums obtained after the determination of the last characteristic value. 27. The apparatus as claimed in claim 26, characterised in that said quality point determining means comprise further means for calculating the component x, and y ( of coordinates x 0 and y 0 of a quality point Q on the basis of equations weighting the characteristic value linearly or quadratically with its distance from the origin of the polar coordinate system. 28. An apparatus for qualifying an object in two dimensions comprising a device for determining characteristic values of the object as function of a parameter for image points of a two-dimensional picture of the object and a data processing unit for qualifying the object on the basis of the characteristic values determined for each image point, c h a r a c t e r i s e d in that the data processing unit (23) comprises means for arranging the characteristic values for each image point in a sequence in a polar coordinate system having an origin and for determining at least one quality point as centre of gravity on the basis of positions of the characteristic values in the polar coordinate system, and means for qualifying the object according to the position of said at least one quality point determined for each image point in the polar coordinate system. 29. The apparatus as claimed in claim 28, characterised in that said quality point determining means determine said at least one quality point by weighting the characteristic values with their distances from the origin of the polar coordinate system. 30. The apparatus as claimed in claim 29, characterised in that said quality point determining means determine said at least one quality point by weighting the characteristic values linearly or quadratically with their distances from the origin of the polar coordinate system. 31. The apparatus as claimed in claim 28, characterised in that said quality point determining means comprise means which, after the determination of each characteristic value, calculate components x,(a, b) and y,(a, b) of coordinates Xo(a, b) and y 0 (a, b) of the quality point Q(a, b) for each image point, add these components to sums ∑x,(a, b) and ∑y^a, b) of these components calculated previously, and determine the coordinates of the quality point as values proportional to the sums obtained after the determination of the last characteristic value. 32. The apparatus as claimed in claim 31, characterised in that said quality point determining means comprise further means for calculating the component x,(a, b) and y,(a, b) of coordinates x 0 (a, b) and y 0 (a, b) of a quality point Q(a, b) on the basis of equations weighting the characteristic value linearly or quadratically with its distance from the origin of the polar coordinate system.

Inventors: DOMJAN GYULA, GOEDOELLE LASZLO, GYARMATI LASZLO, JAKO JANOS, KAFFKA KAROLY, VALYI-NAGY ISTVAN, DOMJAN, GYULA, GOEDOELLE, LASZLO, GYARMATI, LASZLO, JAKO, JANOS, KAFFKA, KAROLY, VALYI-NAGY, ISTVAN
Applicants: DOMJAN GYULA, GOEDOELLE LASZLO, GYARMATI LASZLO, JAKO JANOS, KAFFKA KAROLY, VALYI NAGY ISTVAN, DOMJAN, GYULA, GOEDOELLE, LASZLO, GYARMATI, LASZLO, JAKO, JANOS, KAFFKA, KAROLY, VALYI-NAGY, ISTVAN
Application year: 1996
Main classification: G01N21
IPC codes: G01N21