Device and method for measuring distance

The device uses a tunable laser and spectral analysis to accurately measure distances by leveraging oxygen absorption, addressing challenges with low reflectance objects and internal wavelength references, achieving robust and precise distance measurement.

WO2024218433A1PCT designated stage expired Publication Date: 2024-10-24TEKNOLOGIAN TUTKIMUSKESKUS VTT OY
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/FI2024/050170
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-18
Filing Date
2024-04-12
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Current distance measurement technologies face challenges in accurately determining distances, especially in environments with objects having low reflectance, as they often require internal wavelength references and struggle with signal-to-noise ratio and calibration stability.

Method used

A device and method utilizing a tunable laser to emit narrowband light at adjustable wavelengths coinciding with oxygen absorption lines, capturing images at different wavelengths, and analyzing spectral profiles to calculate distances based on oxygen attenuation, which stabilizes wavelength and provides accurate distance measurements even with low reflectance objects.

Benefits of technology

Enables fast and high-resolution distance measurements with sufficient signal-to-noise ratio and accuracy for objects with low reflectance, eliminating the need for internal wavelength references and improving measurement stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FI2024050170_24102024_PF_FP_ABST
    Figure FI2024050170_24102024_PF_FP_ABST
Patent Text Reader

Abstract

A measuring device (500) comprises: - a light source (LS1) to illuminate an object (OBJ1) with illuminating light (B1), wherein the illuminating light (B1) has an adjustable wavelength (λc),5 - an imaging unit (CAM1) to capture images (IMG1k) of the illuminated object (OBJ1) at different wavelengths (λc), - a control unit (CNT1) to determine a distance (LP1) of the object (OBJ1) from pixel values (Ei,j,k) of the images (IMG1k) captured at different wavelengths (λc), wherein pixel values (Ei,j,k) corresponding to a given object point (Pi,j) in the10 captured images (IMG1k) constitute a spectral profile (PRFi,j), wherein spectral profiles (PRFi,j) of several object points (Pi,j) constitute a data cube (CUBE1), wherein each spectral profile (PRFi,j) specifies pixel values (Ei,j,k) as a function of control parameter values (k, Sc),15 wherein the control unit (CNT1) is arranged to determine a representative spectral profile (RPRF) from the data cube (CUBE1) based on analysis of the spectral profiles (PRFi,j) of the data cube (CUBE1), wherein the control unit (CNT1) is arranged to determine distance values (LP1, LP2) from the spectral profiles (PRFi,j) by using calibration parameters (SC,PEAK, ΔSFWHM) determined from the representative spectral profile (RPRF).
Need to check novelty before this filing date? Find Prior Art

Description

[0001]DEVICE AND METHOD FOR MEASURING DISTANCE FIELD The present invention relates to measuring distances. BACKGROUND It is known that the distance to an object may be measured e.g. by measuring the time-of-flight of a reflected light pulse traveling from the object to a distance sensor. The distance sensor may provide distance information e.g. for vehicle navigation. SUMMARY An object is to provide a device for measuring distances. An object is to provide a method for measuring distances. According to an aspect, there is provided a measuring device (500), comprising: - a light source (LS1) to illuminate an object (OBJ1) with illuminating light (B1), wherein the illuminating light (B1) has an adjustable wavelength ( ^C), - an imaging unit (CAM1) to capture images (IMG1k) of the illuminated object (OBJ1) at different wavelengths ( ^C), - a control unit (CNT1) to determine a distance (LP1) of the object (OBJ1) from pixel values (Ei,j,k) of the images (IMG1k) captured at different wavelengths ( ^C), wherein pixel values (Ei,j,k) corresponding to a given object point (Pi,j) in the captured images (IMG1k) constitute a spectral profile (PRFi,j), wherein spectral profiles (PRFi,j) of several object points (Pi,j) constitute a data cube (CUBE1), wherein each spectral profile (PRFi,j) specifies pixel values (Ei,j,k) as a function of control parameter values (k, SC), wherein the control unit (CNT1) is arranged to determine a representative spectral profile (RPRF) from the data cube (CUBE1) based on analysis of the spectral profiles (PRFi,j) of the data cube (CUBE1), wherein the control unit (CNT1) is arranged to determine distance values (LP1, LP2) from the spectral profiles (PRFi,j) by using calibration parameters (SC,PEAK, ^SFWHM) determined from the representative spectral profile (RPRF). According to an aspect, there is provided a measuring device of claim 1. According to an aspect, there is provided a measurement method of claim 6. Further embodiments are defined in the other claims. The scope of protection sought for various embodiments of the invention is set out by the independent claims. The embodiments, if any, described in this specification that do not fall under the scope of the independent claims are to be interpreted as examples useful for understanding various embodiments of the invention. The operation of the measuring device is based on absorption of reflected light in oxygen. An object may reflect light when illuminated with narrowband light. The wavelength of the illuminating and reflected light may be selected to coincide with an absorption line of oxygen. Attenuation of light by oxygen depends on the distance which the illuminating light and the reflected light travel through atmospheric oxygen. The concentration of oxygen in ambient atmosphere is typically constant and known with a high degree of accuracy. The distance to the reflecting object may be calculated from the measured attenuation of the reflected light. The measuring device comprises an illuminating unit to illuminate one or more objects, and the measuring device comprises an imaging unit to capture images of the one or more objects. The measuring device may be an imaging device. The measuring device may also be called e.g. as a depth camera. The measuring device may provide distance information of multiple points at a fast rate and with a high spatial resolution. The measuring device may provide distance information e.g. for controlling an industrial robot or for vehicle navigation. The illuminating unit provides illuminating light at different wavelengths. The illuminating unit may comprise a tunable laser device, which emits illuminating narrowband light at a single adjustable wavelength. The wavelength tuning range of the laser device may be selected such that the tuning range covers e.g. at least 95% of the integrated area of an absorption profile of a single absorption line of molecular oxygen at atmospheric conditions. The measuring device may use atmospheric oxygen as the wavelength reference, so that there is no need to use an internal wavelength reference for stabilizing the operation of the tunable laser device. The tunable laser device may emit light sequentially at different wavelengths for capturing a stack of images with reflected light. The imaging unit may comprise imaging optics and an image sensor. The imaging unit captures a stack of images at the different wavelengths. Each image may be captured at a different wavelength. The measuring device may be arranged to measure the distances by using a method, which comprises varying the wavelength of the illuminating light, capturing a stack of images, determining spectral profiles from the stack, and stabilizing the wavelength by using the measured spectral profiles of oxygen. The method may also be called e.g. as a sweep method. The wavelength may be stabilized by using light reflected from one or more object points, which have sufficient reflectance. The method may allow accurate stabilization of the wavelength also in a situation where one or more other object points have low reflectance. The method may allow measuring the distance to said one or more other object points also in a situation where one or more other object points have low reflectance. The method may provide sufficient signal-to-noise ratio e.g. in a situation where one or more object points have low reflectance. The method may provide sufficient measuring accuracy e.g. in a situation where one or more object points have low reflectance. The method may comprise capturing a stack of images with the imaging unit. Each image may be captured by using a different wavelength of illuminating light. For each captured image, the laser wavelength may be changed. The stack of images may also be called as an image data cube. The captured images may together form the image data cube. The image data cube may be a three- dimensional matrix, which comprises elements in two spatial dimensions and in one spectral dimension. Thus, said data cube may be called also as a spectral data cube. Elements in the spectral dimension may cover an absorption profile of oxygen. Each profile may represent the intensity of light impinging on a different detector pixel of the image sensor, as a function of the control signal value. Each spectral profile may cover at least a first wavelength and a second wavelength. The first wavelength may be selected such that the reflected light is not absorbed by molecular oxygen. The second wavelength may be selected such that the reflected light is absorbed by molecular oxygen. In particular, the second wavelength may coincide with the peak wavelength of the spectral absorbance of molecular oxygen. The second wavelength may be e.g. in the range of 759 nm to 770 nm, or in the range of 686 nm to 693 nm. A stronger absorption line of molecular oxygen may be selected e.g. from the range of 760 nm to 762 nm, or from the range of 763 nm to 765 nm. A weaker absorption line of molecular oxygen may be selected e.g. from the range of 686 nm to 693 nm. The strong absorption line may be suitable e.g. for measuring shorter distances, so as to provide sufficient absorbance at the center wavelength of the absorption line. The weaker absorption line may be suitable e.g. for measuring longer distances, in order to avoid saturation of the absorption at the center wavelength of the absorption line. The captured stack of images may comprise a first image and a second image. The first image may be captured by illuminating an object with laser light, which has the first wavelength. The second image may be captured by illuminating the object with laser light, which has the second wavelength. The ratio between the two channels will change depending on how far the light reflected from. The ratio between the value of an image pixel of the second image and the value of an image pixel of the first image may depend on the distance between the object and the imaging unit, in a situation where the image pixel of the first image and the image pixel of the second image correspond to the same point of the object. Thus, the distance to the object may be calculated from the ratio of the image pixel values. The ratio of the image pixel values may be determined for each detector pixel of the image sensor. The wavelength of the tunable laser device may be controlled by using a control signal. The wavelength of the illuminating light may be adjusted e.g. by changing the operating current of a laser device. The operating current may be formed according to a control signal. The wavelengths of the light emitted from the laser device may drift due to temperature fluctuations and due to operating time. The measured spectral profiles may be analyzed in order to establish an accurate relationship between the emitted wavelengths and the control signal values. The method may comprise using the absorption line of oxygen for stabilizing the wavelengths of the illuminating light emitted from the laser device. The images captured at different wavelengths form the image data cube. The image data cube comprises elements in two spatial dimensions and in one spectral dimension. Elements in the spectral dimension cover an absorption profile of oxygen. The image data cube comprises a plurality of spectral profiles for different object points located in the field of view of the measuring device. Each profile represents the intensity of light impinging on a different detector pixel of the image sensor, as a function of the control signal value. The method may comprise determining a representative profile from the profiles of the image data cube. The representative profile may be determined to be e.g. a profile which represents the highest attenuation and / or a profile which has best signal-to-noise ratio. The representative profile may also be determined by averaging several profiles. The representative profile may also be determined by fitting a model to one or more profiles of the image data cube. The method may comprise determining calibration parameters from the representative profile. The calibration parameters may comprise e.g. linewidth and center position, which may be expressed in terms of the control signal. The linewidth and the center position may be equal for all image points of the image data cube. The same calibration parameters may also be used for all image points of the image data cube. This may speed up the measurement method, as the calibration parameters need to be determined only once. The calibration parameters may remain substantially constant when the measuring device is used in the same operating conditions (i.e. in the same ambient temperature and pressure). Thus, the same calibration parameters may also be used for image points of a next image data cube. The same calibration parameters may also be used for image points of a previously captured image data cube. The distance to an object point may be calculated from the height of the absorption profile of an image point, which corresponds to said object point. The distance may be calculated from the height by using the calibration parameters. BRIEF DESCRIPTION OF THE DRAWINGS In the following examples, several variations will be described in more detail with reference to the appended drawings, in which Fig.1 shows absorption spectrum of oxygen, Fig.2 shows spectral transmittance of oxygen for two different distances, Fig.3a shows, by way of example, a measuring device for measuring distance, Fig.3b shows, by way of example, forming images of object points, Fig.3c shows, by way of example, an optical path from the illuminating unit of the measuring device to an object point, and from the object point to the imaging unit of the measuring device, Fig.3d shows, by way of example, functional units of the measuring device, Fig.3e shows, by way of example, functional units of the measuring device, Fig.4a shows, by way of example, a captured image of an environment, Fig.4b shows, by way of example, an image sensor, Fig.5 shows, by way of example, a stack of captured images, where each image is captured at a different wavelength, Fig.6a shows, by way of example, a measured spectral profile of a first image point, Fig.6b shows, by way of example, a noisy measured spectral profile, Fig.7a shows, by way of example, a measured spectral profile of a first image point, Fig.7b shows, by way of example, a measured spectral profile of a second image point, Fig.8 shows, by way of example, a position, a width and a height of a normalized spectral profile, Fig.9a shows, by way of example, a spectral data cube formed of a stack of captured images, Fig.9b shows, by way of example, forming distance values from the profiles of the spectral data cube, and Fig.10 shows, by way of example, method steps for measuring distances to objects. DETAILED DESCRIPTION Referring to Fig. 1, the rotational-vibrational absorption spectrum of molecular oxygen O2has a plurality of spectral lines in the wavelength range from 759 nm to 770 nm. The illuminating unit of the measuring device may comprise a laser device to emit narrowband illuminating light. One or more spectral lines of oxygen may be within the spectral tuning range of the laser device. The laser device may be selected such that the spectral tuning range of the laser device covers e.g. at least 95% of the integrated area of a single absorption line SPECLIN1. The spectral tuning range may substantially cover the whole absorption line SPECLIN1 of oxygen. The wavelength tuning range of the laser device may be selected such that the tuning range covers the whole absorption profile of molecular oxygen at atmospheric conditions. The atmospheric conditions may mean temperature 25 ^C and pressure 101.3 kPa. The concentration of molecular oxygen O2in dry ambient air is typically 20.9%. The spectral absorbance A( ^,LP) of oxygen may depend on the wavelength ^ and on the distance LPbetween an object and the measuring device. In case of reflected light, the length of the absorption path may be approximately equal to two times the distance LP. The spectral absorbance may reach a maximum height at the peak wavelength ^C,PEAK. The absorption line SPECLIN1 may be selected e.g. from the range of 760 nm to 762 nm. A weaker absorption line of oxygen may be used for optimizing the operation of the device for measuring longer distances. A stronger absorption line of oxygen may be used for optimizing the operation of the device for measuring shorter distances. In an embodiment, the device may be arranged to use a stronger absorption line and a weaker absorption line, e.g. in order to enable distance measurements in a wider range of distances. Fig. 2 shows spectral transmittances T( ^,LP), corresponding to the spectral absorbances shown in Fig.1. The spectral transmittance T( ^,LP) may have a height ^TPEAKat the center wavelength ^C,PEAKof the selected spectral line. The height ^TPEAKmay also be called e.g. as the maximum absorption or as the peak absorption. The absorbance A is proportional to the distance between a reflecting object and the measuring device. The spectral transmittance T depends on the spectral absorbance A via the Beer Lambert law. Figs. 3a and 3b show the distance measuring device 500. The device 500 comprises an illuminating unit LS1 to illuminate one or more objects OBJ1, OBJ2 with narrowband illuminating light B1, and an imaging unit CAM1 to capture images IMG1 of the one or more objects OBJ1. The illuminating unit LS1 is arranged to illuminate the one or more objects OBJ1, OBJ2 at different wavelengths, and the imaging unit is arranged to capture a stack of images IMG1 at the different wavelengths. The imaging unit CAM1 may comprise an image sensor SEN1 and imaging optics LNS1. The imaging unit CAM1 may receive reflected light B2 from the objects OBJ1, OBJ2. The imaging optics LNS1 may form an optical image of the objects OBJ1, OBJ2. The image sensor SEN1 may convert the optical image into a digital image IMG1. The device 500 may comprise a control unit CNT1 to control operation of the illuminating unit LS1 and the imaging unit CAM1. The control unit CNT1 may provide a control signal SCfor controlling the wavelength ^Cof light emitted by the illuminating unit LS1. The wavelength ^Cof the illuminating light B1 provided from the illuminating unit LS1 may be controlled by using a control signal SC. The illuminating unit LS1 may comprise a tunable laser device LAS1, which may be controlled by using the control signal SC. The wavelength ^Cof the illuminating light B1 emitted from the laser device LAS1 may be controlled by using a control signal SC. The control unit CNT1 may comprise e.g. a field programmable gate array and / or a microprocessor to perform data processing. The illuminating unit LS1 may comprise a laser device LAS1 to emit light. The laser device may be e.g. a DFB laser, an external cavity laser, or an OPO laser. DFB means distributed feedback. OPO means optical parametric oscillator. The laser device may also be arranged to emit illuminating light by second harmonic generation. The image sensor may be e.g. a silicon-based sensor. The image sensor may be e.g. a CMOS sensor or a CCD sensor. In an embodiment, the measuring device 500 may be implemented without any moving parts. The control unit CNT1 may receive sensor data SSEN1from the imaging unit CAM1. The sensor data SSEN1may comprise pixel values Ei,jof an image IMG1 captured by the image sensor SEN1. The control unit CNT1 may comprise one or more data processors to analyze and process image data. Detector pixel values obtained from a detector pixel of the image sensor may be proportional to the intensity of light B2 impinging on said detector pixel. The pixel values may also be called as intensity values. The spectral width of the illuminating light B1 and the reflected light B2 may be narrow with respect to the spectral width of the oxygen absorption line SPECLIN1. Consequently, intensity values measured by the image sensor SEN1 may be proportional to the spectral transmittance values of oxygen. LP1may denote a distance between the distance measuring device 500 and a first point P1 of a first object OBJ1. LP2may denote a distance between the distance measuring device 500 and a second point P2 of a second object OBJ2. In an embodiment, the points P1, P2 may also be points of the same object (e.g. OBJ1). P3 denotes a third point, which is located in air. The point P3 is not located on an object. The objects OBJ1, OBJ2 may be located in an environment ENV1. SX, SY, and SZ denote orthogonal directions. The image sensor SEN1 may be e.g. in a plane defined by the directions SX and SY. The illuminating light B1 and the reflected light B2 may propagate in air AIR1, which contains molecular oxygen. Referring to Fig.3c, the illuminating light B1 may need to travel a distance LB1,P1when it propagates from the illuminating unit LS1 to an object point P1. The illuminating light B1 may be absorbed by the molecular oxygen, and also the reflected light B2 may be absorbed by the molecular oxygen. The illuminating light may travel a distance LB1,P1between the illuminating unit LS1 and the object point P1. The reflected light may travel the distance LP1. The total length LPATH,P1of the absorption path PATH1 from the illuminating unit LS1 to the object point P1, and back from the object point P1 to the imaging unit CAM1 may be equal to the sum LB1,P1+ LP1of the distances LB1,P1and LP1. A distance between the illuminating unit LS1 and the imaging unit CAM1 may be small when compared with the distance LP1. The total length LPATH,P1of the absorption path PATH1 may be substantially equal to two times the distance LP1. Referring to Fig.3d, the measuring device 500 may capture a plurality of images IMG1 at different wavelengths ^Cby varying the control signal SC. The images IMG1 captured at the different wavelengths ^Cmay together constitute a spectral data cube CUBE1. The measuring device 500 may comprise a memory MEM2 for storing the data cube CUBE1. The data cube CUBE1 may comprise a plurality of spectral profiles PRF, wherein each spectral profile PRF of the data cube CUBE1 may be measured by using a different detector pixel Di,jof the image sensor SEN1. Each spectral profile PRF of the data cube CUBE1 may be associated with a different image point in a captured image IMG1. The data cube CUBE1 may comprise spectral profiles PRF for the different object points P1, P2, which appear in the captured images IMG1. The measuring device 500 may comprise a memory MEM1 for storing calibration parameters kCAL, SC,PEAK, ^SFWHM. The calibration parameter SC,PEAKmay specify the center of a spectral profile. The calibration parameter SC,PEAKmay specify the width of the spectral profile. The calibration parameter kCALmay specify a relation between an area of a spectral profile and the distance L to an object point. The measuring device 500 may be arranged to calculate distance values L from the measured profiles PRF by using the calibration parameters kCAL, SC,PEAK, ^SFWHM. The measuring device 500 may be arranged to determine a representative spectral profile RPRF from the profiles PRF of the data cube CUBE1, e.g. by selecting a profile which has the best signal-to-noise ratio. The measuring device 500 may be arranged to determine e.g. the calibration parameters SC,PEAKand ^SFWHMfrom the representative spectral profile RPRF. The measuring device 500 may comprise a memory MEM3 for storing the distance values L, which have been calculated from the profiles of the data cube CUBE1, by using the calibration parameters kCAL, SC,PEAK, ^SFWHM. The calculated distance values L may be stored e.g. as an array LDATA1. Each distance value (Li,j) of the array LDATA1 may be associated with a different detector pixel Di,jof the image sensor SEN1. The measuring device 500 may comprise a memory MEM4 for storing machine readable program code PROG1. The control unit CNT1 may comprise one or more data processors for executing the program code PROG1. The measuring device 500 may be arranged e.g. to capture images of the data cube, to determine a representative profile from profiles of the data cube, determine calibration parameters from the representative profile, and to calculate distance values from the profiles of the data cube by executing the program code PROG1. The measuring device 500 may comprise a communication unit RXTX for receiving and / or transmitting data and / or commands. The communication unit RXTX1 may communicate e.g. by wireless communication, e.g. via a mobile communications network or local area network. The communication unit RXTX1 may also communicate e.g. via an electrical or optical cable. The measuring device 500 may be arranged send calculated distance values e.g. to a control system of a vehicle via the communication unit RXTX1. The measuring device 500 may be arranged send calculated distance values e.g. to a control system of an industrial robot via the communication unit RXTX1. The measuring device 500 may comprise a user interface UIF1 for receiving commands from a user and / or for providing information to a user. The user interface UIF1 may comprise e.g. a display for displaying calculated distance information to a user. The wavelength ^Cof the illuminating light B1 may be adjusted e.g. by changing the operating current CURLAS1of a laser device. The operating current may be formed according to a control signal SC. Alternatively, the illuminating unit LS1 may be arranged to vary the operating current CURLAS1of the laser device LAS1, wherein the control signal SCmay be formed by monitoring the varying operating current CURLAS1such that the control signal SCis indicative of the varying operating current CURLAS1of the laser device LAS1 (Fig.3e). Alternatively, or in addition, the wavelength ^Cof the illuminating light B1 may also be adjusted e.g. by changing an operating temperature TEMPLAS1of the tunable laser device LAS1. The operating temperature TEMPLAS1of the laser device LAS1 may be adjusted according to the control signal SC. Alternatively, or in addition, the wavelength ^Cof the illuminating light B1 may also be adjusted e.g. by changing strain in a material of the laser device LAS1. The illuminating unit LS1 may comprise e.g. a piezoelectric actuator, which generates a force for changing strain in a material of the laser device LAS1. The wavelength ^Cof the illuminating light B1 may be adjusted e.g. by changing the voltage VOLTLAS1of a driving signal, which is coupled to the piezoelectric actuator. The voltage VOLTLAS1of the driving signal of the actuator may be adjusted according to the control signal SC. In an embodiment, the illuminating unit LS1 may further comprise an auxiliary detector for measuring the intensity of the illuminating light B1. For example, a small portion of the illuminating light B1 may be coupled to the auxiliary detector by using a beamsplitter. For example, a small portion of the illuminating light B1 may be coupled to the auxiliary detector through a semi-transparent rear mirror of the laser light source LAS1. The signal of the auxiliary detector may be used e.g. as feedback for compensating fluctuations of the intensity of the illuminating light B1. An effect of fluctuations of the intensity of the illuminating light B1 may be compensated or eliminated for each intensity value, which is measured by using the image sensor SEN1. In an embodiment, the signal of said auxiliary detector may also be used e.g. as a feedback for stabilizing the intensity of the illuminating light B1 emitted from the laser light source LAS1. The illuminating unit LS1 may optionally comprise diffuser to increase the divergence of the illuminating light beam B1. The illuminating unit LS1 may optionally comprise a splitter to form a plurality of illuminating beams from a single input light beam obtained from the laser device. The splitter may comprise e.g. a holographic element, an array of micro lenses and / or an array of prisms. The splitter may provide improved accuracy for the distance measurement, e.g. due to improved signal-to-noise ratio. The splitter may provide improved accuracy for the distance measurement, e.g. due to reduced speckle. The imaging unit CAM1 may optionally comprise an optical filter to reject ambient light (e.g. sunlight). The optical filter may be e.g. an optical bandpass filter. The optical filter may allow propagation of the reflected light B2 to the image sensor SEN1, and the optical filter may substantially prevent propagation of ambient light to the image sensor SEN1.The optical filter may have a higher transmittance for the reflected light B2, and the optical filter may have a lower transmittance for the ambient light. Fig. 3e shows an embodiment where the illuminating unit LS1 varies the operating current of the laser device LAS1 e.g. according to a signal of an internal function generator of the illuminating unit LS1, and wherein the illuminating unit LS1 may provide the control signal SCto the control unit CNT1 such that the control signal SCis indicative of the varying operating current of the laser device LAS1. Otherwise, the device of Fig.3e may have the same features as the device shown in Fig.3d. Fig.4a shows an image IMG1kcaptured by the imaging unit CAM1. The image IMG1kmay be captured when the objects OBJ1, OBJ2 are illuminated at a wavelength ^C,k. The symbol k denotes an index of a captured image IMG1. The index k has integer values. The image IMG1kmay comprise a sub-image OBJ1' of the first object OBJ1. The image IMG1kmay comprise a sub-image OBJ2' of the second object OBJ2. The image IMG1kmay comprise sub-images P1', P2' of the object points P1, P2. The image IMG1kmay comprise a sub-image P3' of the point P3. The IMG1kmay comprise information about spatial distribution of intensity of reflected light B2 in a situation where the objects are illuminated with a wavelength ^C,k. Fig. 4b shows an image sensor SEN1. The optics LNS1 may form an optical image of the environment ENV1 on the image sensor SEN1, and the image sensor SEN1 may convert the optical image into the digital image IMG1k. The image sensor SEN1 may comprise a two-dimensional array of detector pixels D1,1, D1,2, Di,j, Dimax,1, D1,jmax, Dimax,jmaxarranged in imax rows and in jmax columns. The symbols i and j denote indices, which have integer values. The index i may indicate e.g. the vertical position of a detector pixel Di,j., and the index j may indicate e.g. horizontal position of the detector pixel Di,jon the image sensor SEN1. Each detector pixel Di,jmay provide a pixel value Ei,j, which represents the intensity IB2of reflected light B2 impinging on said detector pixel Di,j. The symbol Ei,j,kmay denote a pixel value Ei,jobtained from the detector pixel Di,jwhen the objects are illuminated with the wavelength ^C,k. Referring to Fig.5, the wavelength ^Cof the illuminating light B2 may be changed, and the imaging unit CAM1 may capture a stack CUBE1 of images IMG11, IMG12, IMG1k, IMG1Nat different wavelengths ^C,1, ^C,2, ^C,k^C,N. The stack CUBE1 of images IMG11, IMG12, IMG1k, IMG1Nmay be called e.g. as an image data cube. Each image indicated by an image frame index k may represent a different wavelength ^C. The data cube CUBE1 may have two spatial dimensions and one spectral dimension. Pixel values Ei,j,kobtained from a given detector pixel Di,jmay together constitute a spectral profile PRFi,j. The spectral profile PRFi,jor a single intensity value of said spectral profile PRFi,jmay also be indicated e.g. by using a symbol IB2(i,j,k). The symbol IB2(xP1,yP1,k) may denote a spectral profile PRF measured by using a detector pixel D at position coordinates (xP1,yP1) of the object point P1, as the function of the index k. The sub-image P1' of the object point P1 may be formed on a detector pixel D located at a position specified by coordinates (xP1,yP1), and pixel values Ei,j,kobtained from said detector pixel D may together constitute a spectral profile PRFP1. The spectral profile PRFP1or a single value of said spectral profile PRFP1may also be indicated e.g. by using the symbol IB2(xP1,yP1,k). Referring to Fig. 6a, the wavelength ^Cof the illuminating light B1 may be changed, and each image IMG1kmay be captured by using a different wavelength ^C.Each captured image IMG1kmay be specified by an image frame index k, with a different measurement time t, with a different control parameter value SC, and with a different wavelength ^C. Reflected light B2P1received from the object point P1 may impinge on a detector pixel D located at the position (xP1,yP1). The detector pixel D may provide pixel values, which represent the intensity of the reflected light B2P1received from the object point P1. The pixel values of the object point P1 may together constitute a spectral profile PRFP1, which specifies measured intensity values IB2of the point P1 as a function of the image frame index k. Each intensity value IB2of the profile PRFP1may be measured at a different time t. ms denotes milliseconds. The wavelength ^Cof the illuminating light B1 may be changed so that each image IMG1 may be captured by using a different wavelength ^Cof the illuminating light B1. Consequently, the spectral profile PRFP1may also represent measured intensity values IB2of the point P1 as a function of the wavelength ^C. The wavelength ^Cof the illuminating light B1 may be changed by changing the control signal value SCof a laser device of the illuminating unit LS1. The control signal value SCmay be e.g. equal to the image frame index k or equal to the operating current of the laser device. Each intensity value IB2of the profile PRFP1may be associated with a different control signal value SC. The device 500 may provide a spectral profile PRFP1, which specifies measured intensity values IB2of the point P1 as a function of the control signal values SC. The images may be captured by changing the control signal values SCin a stepped manner. Each consecutive control signal value SCmay correspond to a different spectral position ^C. Spectral separation between consecutive control signal values SCmay be constant, or the spectral separation between consecutive control signal values SCmay be changed as a function of the control signal value SC. The relationship ^C(SC) between the control signal values SCand the spectral positions ^Cmay be nonlinear. The spectral separation between consecutive control signal values SCmay be changed as a function of the control signal value SC, e.g. in order to optimize operation in a situation, where the relationship ^C(SC) between the control signal values SCand the spectral positions ^Cis nonlinear. Pixel values (Ei,j,k) corresponding to a given object point (Pi,j) in the captured images (IMG1k) may together constitute a spectral profile (PRFi,j). Spectral profiles (PRFi,j) of several object points (Pi,j) may together constitute a data cube (CUBE1). Each spectral profile (PRFi,j) may specify pixel values (Ei,j,k) as a function of control parameter values (k, SC). The symbol IB2(xP1,yP1,SC) may denote a spectral profile PRF measured by using a detector pixel D at position coordinates (xP1,yP1) of the object point P1, as the function of the control signal SC. Fig.6b shows, by way of example, a measured profile PRFP3for an object point P3. The intensity of light B2 reflected from one or more points (P3) of the environment ENV1 may be very low. For example, it may be that one or more detector pixels of the image sensor only receive light scattered by atmospheric aerosols, without receiving light from any objects. For example, the distance to a point of an object may be so long that that the intensity of light reflected from said object is very low. The signal level of said point may be low. It may be difficult or impossible measure the shape of the spectral profile of said point. The signal-to- noise ratio of said point may be low. It may be difficult or impossible measure the shape of the spectral profile of said point. The symbol IB2(xP3,yP3,SC) may denote a spectral profile PRF measured by using a detector pixel D at position coordinates (xP3,yP3) of the object point P3. Fig.7a shows a measured profile PRFP1for a first object point P1, which is at a first distance LP1from the measuring device 500. The symbol IREF(SC) denotes a reference intensity of light reflected from the first object point P1 as the function of the control parameter SCin a hypothetical reference situation where the absorbing effect of oxygen is eliminated. For example, the intensity of illuminating light B1 may have a linear relationship with the operating current of the laser device, the wavelength ^Cof the illuminating light B1 may have a linear relationship with the operating current of the laser device, and also the control signal SCmay have a linear relationship with the operating current of the laser device. The spectral reflectivity of the object point P1 may be substantially constant over the wavelength range of the illuminating light B1. Consequently, the reference intensity IREF(SC) may be a substantially linear function of the control signal SC. The calibration parameters may further comprise one or more laser tuning parameters, which specify a relationship between the control signal values and the intensity of the illuminating light. The control signal values may have a linear relationship with the operating current of the laser device, and the laser device may exhibit substantially linear relationship between the intensity of the emitted illuminating light and the operating current. The one or more laser tuning parameters may be used e.g. to approximate the change of emitted intensity as a function of the operating current of the laser device. In an embodiment, the reference intensity IREF(SC) may be interpolated from values of the edge regions of one or more measured spectral profiles PRF. The illuminating unit LS1 may optionally comprise a monitoring detector for monitoring the intensity of the illuminating light B1. In an embodiment, the reference intensity IREF(SC) may be determined from the signal of the monitoring detector. Fig.7b shows a measured profile PRFP2for a second object point P2, which is at a second different distance LP2from the measuring device 500. Referring to Fig. 8, a representative spectral profile RPRF may be determined from the data cube (CUBE1) based on analysis of the spectral profiles (PRFi,j) of the data cube (CUBE1). The representative spectral profile RPRF may be determined from the data cube (CUBE1) e.g. based on signal-to-noise ratios, based on heights of the profiles (PRFi,j) and / or based on integrated areas of the profiles (PRFi,j). The representative spectral profile RPRF may be e.g. a profile, which has the best signal-to-noise ratio of the profiles (PRFi,j) of the data cube (CUBE1). The representative spectral profile RPRF may be e.g. a profile, which has the greatest height of the profiles (PRFi,j) of the data cube (CUBE1). The representative spectral profile RPRF may be e.g. a profile, which has the greatest integrated area of the profiles (PRFi,j) of the data cube (CUBE1). The representative spectral profile RPRF may be optionally normalized by using the reference spectral intensity IREF(SC). The normalized representative spectral profile RPRF may be calculated from the representative spectral profile (PRFi,j) by dividing each value of said representative profile PRFi,jby the corresponding value of the reference spectral intensity IREF(SC). The normalized representative spectral profile RPRF may be determined from the spectral profiles PRFi,jof the image data cube CUBE1. In an embodiment, each profile PRFi,jof the data cube CUBE1 may be normalized by dividing each measured value of said profile PRFi,jby the corresponding value of the reference spectral intensity IREF(SC). The device 500 may be arranged to determine distance values (LP1, LP2) from the spectral profiles (PRFi,j) by using calibration parameters (SC,PEAK, ^SFWHM), which are determined from the representative spectral profile RPRF. Said calibration parameters may include e.g. the width ^SFWHMof the representative profile RPRF and the center position SC,PEAKof the representative profile RPRF. The parameter ^SFWHMdenotes the full width at half maximum of the representative profile RPRF. The parameter SC,PEAKmay specify the center of the spectral line profile in terms of the control signal SC. The parameter ^SFWHMmay specify the spectral width of the representative profile RPRF in terms of the control signal SC. T(xP1,yP1,SC) denotes spectral transmittance measured by a detector pixel D at position coordinates (xP1,yP1), which correspond to the position of the object point P1. ^TPEAKdenotes the maximum height of the profile PRF or RPRF. The height ^TPEAKof a profile of an object point may depend on the distance between the object point and the measuring device 500. The distance between the object point and the measuring device 500 may be calculated from the height ^TPEAKof the profile of the object point or from the integrated area of said profile by using the calibration parameters (SC,PEAK, ^SFWHM). A small error in the wavelength of the illuminating light may cause a large error in the measured distance. As an example, 1% noise in the ratio of the image pixel values may correspond e.g. to 0.25 m error in the distance. Determining the calibration parameters (SC,PEAK, ^SFWHM) from the representative spectral profile RPRF may reduce or minimize an error caused by the signal noise. The center position (SC,PEAK) may be used to lock the wavelengths emitted from the laser device. An offset of the operating current of the laser device may be increased or decreased depending on the drift of the wavelengths ^Cemitted from the laser device. The representative profile RPRF may be determined from the collected image data cube CUBE1 without using any internal wavelength reference. An offset of the operating current of the laser device may be changed based on the center position (SC,PEAK) determined from the representative profile RPRF. The formation of the optical signals is discussed below in terms of wavelength ^, and also in terms of the control signal SC. The spectral absorbance A may be given e.g. by the following equations: ^^(^)= ^^^^(^)∙ ^^^^ ^^ ^^∙ ^^^^1(1a) LP1denotes the distance between the object point P1 and the measuring device, kCALdenotes a calibration constant. The calibration constant may be determined e.g. by an experimental calibration measurement, where the distance to an object point is known. To the first approximation, the total length of the absorption path from the illuminating unit to the object point P1, and back from the object point P1 to the imaging unit may be substantially equal to two times the distance LP1. Said factor of two may be included e.g. in the calibration constant kCALin the equations (1a) and (1b). wNis the normalized profile function of the spectral line, where the spectral variable is the wavelength ^C. wCis the normalized profile function of the spectral line, where the spectral variable is the control parameter SC. The normalized profile functions wN( ^C) and wC(SC) may be normalized such that the definite integral of the normalized profile function over the spectral integration range is equal to one: The first limit ^MINof the spectral integration range may be e.g. the shortest wavelength of the data cube. The second limit ^MAXof the spectral integration range may be e.g. the longest wavelength of the data cube. The shortest wavelength ^MINmay be e.g. ^1, and the longest wavelength may be e.g. ^N. The symbol N may denote the number of the images of the data cube. SC,MINdenotes the control signal value SC, which corresponds to the first limit ^MIN. SC,MAXdenotes the control signal value SC, which corresponds to the second limit ^MAX. The line profile of the absorption line SPECLIN1 may be mainly pressure- broadened, and the normalized profile function wNmay be approximated by the Lorentz profile: ^C,PEAK is the center wavelength of the spectral absorption line, ^ ^FWHM is the spectral width of the spectral line in terms of wavelength. FWHM means full width at half maximum. SC,PEAK is the center of the spectral absorption line, in terms of control signal SC. SC,FWHM is the spectral width of the spectral line in terms of the control signal SC. The center SC,PEAK and the width SC,FWHM may be determined from the representative spectral profile RPRF. The spectral transmittance T may be defined e.g. as follows: where IB2( ^) or IB2(SC) denotes the intensity of light, which is received from the object point P1 to a detector pixel corresponding to said object point P1, in a situation where the received light is absorbed by the gas between the object point P1 and the measuring device. IREF( ^) or IREF(SC) denotes the intensity of light, which would be received from said object point P1 to said detector pixel, in a reference situation where the received light is not absorbed by the gas between the object point P1 and the measuring device. The spectral transmittance T may be calculated from the spectral absorbance by using the Beer Lamber equation, e.g. as follows: ^^(^)= ^^− ^^( ^)(5a) The Beer Lambert equation may be expressed in the following form by using equation (1a) or (1b): The calibration parameter kCAL may be determined e.g. by a calibration measurement, where the distance L between the measuring device 500 and a calibration object point is known. The calibration parameter kCAL may be solved from the equation (6b) by using the known calibration distance L and the measured value of the transmittance T and the calculated value of wN(SC) of the profile function. Once the calibration parameters kCAL, SC,PEAK,SC,FWHMhave been determined, the distance LP1may be solved from the above equation (6b) e.g. as follows: The spectral transmittance T(SC) may be determined from one or more measured intensity values IB2(SC) of the spectral profile PRF of the object point P1. The operator ln denotes the natural logarithm. The transmittance T at the center of the absorption line is related to the height ^TPEAKof the normalized spectral profile e.g. as follows: ^^൫ ^^^^, ^^ ^^ ^^ ^^൯ = 1 − ^ ^^^^ ^^ ^^ ^^(8) The distance LP1may also be solved from the following equation: Thus, the distance to the object point P1 may be determined from the height ^TPEAK of the spectral profile PRF of the object point P1. For small values of ^TPEAK, equation (9) may also be approximated as follows: The spectral transmittance may also be integrated over the spectral integration range: The definite integral of spectral transmittance T over the spectral integration range from SC,MINto SC,MAXmay be calculated from the measured intensity values IB2of the spectral profile PRF of the object point P1. The definite integral of spectral transmittance T(SC) may also be expressed as a ratio ^DET / ^REF, as follows: ^B2denotes the definite integral of spectral intensity IB2(SC) over the spectral integration range from SC,MINto SC,MAX. ^REFdenotes the definite integral of the reference spectral intensity IREF(SC) over the same spectral integration range SC,MINto SC,MAX. The distance LP1may be solved e.g. from the equation (11). For small values of the product wC^kCAL^LP1, the exponential function may be approximated e.g. as follows: Based on the equations (2a), (2b) and (10), the equation (8) may also be simplified into the following approximative form: The distance LP1may be solved from the approximative equation (14) e.g. as follows:^^ ^^1 The quantity (1- ^B2 / ^REF) may be called as the integrated area of the profile PRF. The sub-image P1' of the object point P1 may be formed on a detector pixel D. Pixel values E obtained from said detector pixel D may together constitute a spectral profile PRF. The distance to the object point P1 may be determined from the integrated area (1- ^B2 / ^REF) of said spectral profile PRF. Referring to Fig.9a, the wavelength ^Cof the illuminating light B2 may be varied, and the imaging unit CAM1 may capture a stack CUBE1 of images IMG11, IMG12, IMG1k, IMG1Nat different wavelengths ^C,1, ^C,2, ^C,k^C,N. The stack CUBE1 of images IMG11, IMG12, IMG1k, IMG1Nmay be called e.g. as an image data cube. Each image indicated by an image frame index k may represent a different wavelength ^C. The image frame index k may indicate the index of a spectral layer of the data cube CUBE1. Each image IMG11, IMG12, IMG1k, IMG1Nmay be a different spectral layer of the data cube CUBE1. The data cube CUBE1 may have two spatial dimensions and one spectral dimension. Pixel values Ei,j,kobtained from a given detector pixel Di,jmay together constitute a spectral profile PRFi,j. The spectral profile PRFi,jor a single pixel value of said spectral profile PRFi,jmay also be indicated e.g. by using a symbol IB2(i,j,k). A spectral layer k of the data cube CUBE1 may comprise e.g. pixel values E1,1,k, E1,2,k, Ei,jmax,k, Eimax,1,k, Ei,j,k, Eimax,Ejmax,k. A representative spectral profile RPRF may be determined from the data cube (CUBE1) based on analysis of the spectral profiles (PRFi,j) of the data cube (CUBE1). The calibration parameters SC,PEAKand ^SFWHMmay be determined from the representative spectral profile RPRF. The calibration parameter SC,PEAKmay specify the center of a spectral profile. The calibration parameter SC,PEAKmay specify the spectral width of the spectral profile. The calibration parameters SC,PEAKand ^SFWHMdetermined from the representative spectral profile RPRF may be used for calculating distance values L from several different profiles PRF of the data cube CUBE1. The profile PRFi,jof a given spatial point (i,j) of the image data cube CUBE1 may comprise detector signals Ei,j,kobtained from a given detector pixel Di,jof the image sensor SEN1. To the first approximation, the detector signals Ei,j,kobtained from the given detector pixel Di,jof the image sensor SEN1 may correspond to the same object point (P1), which is at the same distance (LP1) from the measuring device 500. The collected three-dimensional image data cube CUBE1 may contain spectral profiles PRFi,jfor several spatially different image points P1, P2. The concentration of oxygen, temperature and pressure may be assumed to be constant, and the distance to the one or more objects OBJ1, OBJ2 appearing in the captured images IMG1kmay be calculated from the measured profiles PRFi,jby using the calibration parameters (SC,PEAK, ^SFWHM). The method may also comprise capturing an auxiliary image without using the illuminating light in order to measure a background signal level. Information about the background signal level may be used e.g. for compensating or eliminating an effect of ambient light. An auxiliary image for background compensation, without using the illuminating light, may be captured e.g. before capturing the images IMG1kof the data cube CUBE1, after capturing the images IMG1kof the data cube CUBE1, and / or as an intermediate step between capturing the images IMG1kof the data cube CUBE1. Referring to Fig. 9b, the measuring device 500 may be arranged to calculate distance values Li,jfrom the measured profiles PRFi,jby using the calibration parameters kCAL, SC,PEAK, ^SFWHM. The calculated distance values L may be stored e.g. as an array LDATA1. The array LDATA1 may comprise e.g. distance values L1,1, L1,2, L1,jmax, Li,j, Limax,1, Limax,jmax. The calculated distance values L may be arranged e.g. as a two- dimensional array, which has imax rows and jmax columns. Each distance value (Li,j) of the array LDATA1 may be associated with a different detector pixel Di,jof the image sensor SEN1. The distance L1,1may be calculated from the profile PRF1,1, which is measured by the pixel D1,1. The distance L1,2may be calculated from the profile PRF1,2, which is measured by the pixel D1,2. The distance L1,jmaxmay be calculated from the profile PRF1,jmax, which is measured by the pixel D1,jmax. The distance Li,jmay be calculated from the profile PRFi,j, which is measured by the pixel Di,j. The distance Limax,jmay be calculated from the profile PRFimax,j, which is measured by the pixel Dimax,j. The distance Limax,jmaxmay be calculated from the profile PRFimax,jmax, which is measured by the pixel Dimax,jmax. Fig. 9b shows an example where the calculated distances L are substantially equal to a first value LP1for object points, which are located on a surface of a first object OBJ1, and where the calculated distances L are substantially equal to a second value LP2for object points, which are located on a surface of a second object OBJ1. In this example the object point P1 is located on the first object OBJ1, and the second object point P2 is located on the second object OBJ2. The signal level of some profiles of the data cube may sometimes be so low that it is difficult or impossible to calculate meaningful distance values from said profiles. For example, the distance between the measuring device and an object point P3 may be so large, and the signal level from said point P3 may be so low that it is difficult or impossible to calculate a meaningful distance value from said profile. The signal level of a profile associated with an image point P3' may be so low that it is difficult or impossible to calculate a meaningful distance value from said profile. Fig. 10 shows method steps for determining calibration parameters, and for determining distance values from the spectral profiles PRF. One or more objects OBJ1, OBJ2 of the environment ENV1 may be illuminated with the illuminating light B1 (step 1010). An images IMG1 of the illuminated objects OBJ1, OBJ2 may be captured at a wavelength ^C(step 1020). The completeness of the data cube CUBE1 may be checked (step 1030). The wavelength ^Cof the illuminating light B1 may be changed (step 1040). Further images IMG1 may be captured at the different wavelengths ^C( step 1020) until the data cube CUBE1 is complete. A representative profile RPRF may be determined from the data cube CUBE1 (step 1050). Calibration parameters (SC,PEAK, ^SFWHM) may be determined from the representative profile RPRF (step 1060). One or more distance values LP1, LP2may be calculated from the profiles PRF of a data cube CUBE1 (step 1070). The calibration parameters (SC,PEAK, ^SFWHM) may be stored e.g. in a memory of the measuring device 500. Calibration parameters (SC,PEAK, ^SFWHM) determined from a first data cube CUBE1 may be used for calculating distances from said first data cube CUBE1. In an embodiment, the measuring device 500 may measure the pixel values of a second data cube after the pixel values of a first data cube have been measured. Calibration parameters (SC,PEAK, ^SFWHM) determined from the first data cube CUBE1 may be used for calculating distances from the second data cube. In an embodiment, the measuring device 500 may measure the pixel values of a third data cube before the pixel values of a first data cube have been measured. The third data cube may be stored in a memory of the measuring device 500, and the third data cube may be later retrieved from the memory of the measuring device 500. Calibration parameters (SC,PEAK, ^SFWHM) determined from the first data cube CUBE1 may be used for calculating distances from the third data cube CUBE1. The images of the image data cube may be captured so fast that the detector signals obtained from the given detector pixel of the image sensor may correspond to the same object point, which is at the same distance from the measuring device 500. The measuring device may be installed e.g. in a vehicle. For example, the measuring device may be used for measuring a distance to a second vehicle or to stationary object in order to avoid a collision. The measuring device may be arranged to provide distance information e.g. for controlling an industrial robot. The distance sensor may measure the position of an object, and the movements of the robot may be controlled based on the detected position of the object. In an embodiment, an existing imaging system may often be modified to operate as the distance measuring device 500. For example, an existing imaging system may be modified by adding the illuminating unit LS1 and the control unit CNT1, wherein an existing digital camera may be adapted to operate as the imaging unit CAM1 of the distance measuring device 500. Various aspects are illustrated by the following examples: Example 1. A measuring device (500), comprising: - a light source (LS1) to illuminate an object (OBJ1) with illuminating light (B1), wherein the illuminating light (B1) has an adjustable wavelength ( ^C), - an imaging unit (CAM1) to capture images (IMG1k) of the illuminated object (OBJ1) at different wavelengths ( ^C), - a control unit (CNT1) to determine a distance (LP1) of the object (OBJ1) from pixel values (Ei,j,k) of the images (IMG1k) captured at different wavelengths ( ^C), wherein pixel values (Ei,j,k) corresponding to a given object point (Pi,j) in the captured images (IMG1k) constitute a spectral profile (PRFi,j), wherein spectral profiles (PRFi,j) of several object points (Pi,j) constitute a data cube (CUBE1), wherein each spectral profile (PRFi,j) specifies pixel values (Ei,j,k) as a function of control parameter values (k, SC), wherein the control unit (CNT1) is arranged to determine a representative spectral profile (RPRF) from the data cube (CUBE1) based on analysis of the spectral profiles (PRFi,j) of the data cube (CUBE1), wherein the control unit (CNT1) is arranged to determine distance values (LP1, LP2) from the spectral profiles (PRFi,j) by using calibration parameters (SC,PEAK, ^SFWHM) determined from the representative spectral profile (RPRF). Example 2. The device (500) of example 1, wherein the control unit (CNT1) is arranged to determine the representative spectral profile (RPRF) from the data cube (CUBE1) based on signal-to-noise ratios. Example 3. The device (500) of example 1 or 2, wherein the control unit (CNT1) is arranged to determine the representative spectral profile (RPRF) from the data cube (CUBE1) based on heights ( ^TPEAK) of the profiles (PRFi,j). Example 4. The device (500) according to any of the examples 1 to 3, wherein the control unit (CNT1) is arranged to determine the representative spectral profile (RPRF) from the data cube (CUBE1) based on integrated areas (1- ^B2 / ^REF) of the profiles (PRFi,j). Example 5. The device (500) according to any of the examples 1 to 4, wherein the device (500) is arranged to capture images (IMG1k) at wavelengths ( ^C), which are within an absorption line (SPECLIN1) of an ambient substance. Example 6. The device (500) according to any of the examples 1 to 5, wherein the device (500) is arranged to capture images (IMG1k) at wavelengths ( ^C), which are within an absorption line (SPECLIN1) of molecular oxygen (O2). Example 7. The device (500) according to any of the examples 1 to 6, wherein the light source (LS1) comprises a laser device (LAS1), wherein the device (500) is arranged to adjust the wavelength ( ^C) of the illuminating light (B1) by varying an operating current (CURLAS1) of the laser device (LAS1). Example 8. The device (500) of example 7, wherein the control unit (CNT1) is arranged to adjust the operating current (CURLAS1) of the laser device as a function of the control parameter values (SC), or wherein the control unit (CNT1) is arranged to determine the control parameter values (SC) as a function of the operating current (CURLAS1) of the laser device. Example 9. A method for measuring distances (LP1, LP2), comprising: - illuminating an object (OBJ1) with illuminating light (B1), which has an adjustable wavelength ( ^C), - capturing images (IMG1k) of the illuminated object (OBJ1) at different wavelengths ( ^C), wherein pixel values (Ei,j,k) corresponding to a given object point (Pi,j) in the captured images (IMG1k) constitute a spectral profile (PRFi,j), wherein spectral profiles (PRFi,j) of several object points (Pi,j) constitute a data cube (CUBE1), wherein each spectral profile (PRFi,j) specifies pixel values (Ei,j,k) as a function of control parameter values (k, SC), wherein the method further comprises: - determining a representative spectral profile (RPRF) from the data cube (CUBE1) based on analysis of the spectral profiles (PRFi,j) of the data cube (CUBE1), and - determining distance values (LP1, LP2) from the spectral profiles (PRFi,j) by using calibration parameters (SC,PEAK, ^SFWHM) determined from the representative spectral profile (RPRF). For the person skilled in the art, it will be clear that modifications and variations of the devices and methods according to the present invention are perceivable. The figures are schematic. The particular embodiments described above with reference to the accompanying drawings are illustrative only and not meant to limit the scope of the invention, which is defined by the appended claims.

Claims

CLAIMS 1. A measuring device (500) for measuring distances (LP1, LP2), comprising: - a light source (LS1) to illuminate an object (OBJ1) with illuminating light (B1), wherein the illuminating light (B1) has an adjustable wavelength ( ^C), - an imaging unit (CAM1) to capture images (IMG1k) of the illuminated object (OBJ1) at different wavelengths ( ^C) of the illuminating light (B1), - a control unit (CNT1) to determine a distance (LP1) of the object (OBJ1) from pixel values (Ei,j,k) of the images (IMG1k) captured at different wavelengths ( ^C), wherein pixel values (Ei,j,k) corresponding to a given object point (Pi,j) in the captured images (IMG1k) constitute a spectral profile (PRFi,j), wherein spectral profiles (PRFi,j) of several object points (Pi,j) constitute a data cube (CUBE1), wherein each spectral profile (PRFi,j) specifies pixel values (Ei,j,k) as a function of control parameter values (k, SC), wherein the control unit (CNT1) is arranged to determine a representative spectral profile (RPRF) from the data cube (CUBE1) based on analysis of the spectral profiles (PRFi,j) of the data cube (CUBE1), wherein the control unit (CNT1) is arranged to determine calibration parameters (SC,PEAK, ^SFWHM) from the representative spectral profile (RPRF), wherein the control unit (CNT1) is arranged to determine distance values (LP1, LP2) from the spectral profiles (PRFi,j) by using said calibration parameters (SC,PEAK, ^SFWHM).

2. The device (500) of claim 1, wherein the control unit (CNT1) is arranged to determine the representative spectral profile (RPRF) from the data cube (CUBE1) based on signal-to-noise ratios.

3. The device (500) of claim 1 or 2, wherein the control unit (CNT1) is arranged to determine the representative spectral profile (RPRF) from the data cube (CUBE1) based on heights ( ^TPEAK) of the profiles (PRFi,j).

4. The device (500) according to any of the claims 1 to 3, wherein the control unit (CNT1) is arranged to determine the representative spectral profile (RPRF) from the data cube (CUBE1) based on integrated areas (1- ^B2 / ^REF) of the profiles (PRFi,j).

5. The device (500) according to any of the claims 1 to 4, wherein the device (500) is arranged to capture images (IMG1k) at wavelengths ( ^C), which are within an absorption line (SPECLIN1) of an ambient substance.

6. The device (500) according to any of the claims 1 to 5, wherein the device (500) is arranged to capture images (IMG1k) at wavelengths ( ^C), which are within an absorption line (SPECLIN1) of molecular oxygen (O2).

7. The device (500) according to any of the claims 1 to 6, wherein the light source (LS1) comprises a laser device (LAS1), wherein the device (500) is arranged to adjust the wavelength ( ^C) of the illuminating light (B1) by varying an operating current (CURLAS1) of the laser device (LAS1).

8. The device (500) of claim 7, wherein the control unit (CNT1) is arranged to adjust the operating current (CURLAS1) of the laser device as a function of the control parameter values (SC), or wherein the control unit (CNT1) is arranged to determine the control parameter values (SC) as a function of the operating current (CURLAS1) of the laser device.

9. A method for measuring distances (LP1, LP2), comprising: - illuminating an object (OBJ1) with illuminating light (B1), which has an adjustable wavelength ( ^C), - capturing images (IMG1k) of the illuminated object (OBJ1) at different wavelengths ( ^C) of the illuminating light (B1), wherein pixel values (Ei,j,k) corresponding to a given object point (Pi,j) in the captured images (IMG1k) constitute a spectral profile (PRFi,j), wherein spectral profiles (PRFi,j) of several object points (Pi,j) constitute a data cube (CUBE1), wherein each spectral profile (PRFi,j) specifies pixel values (Ei,j,k) as a function of control parameter values (k, SC), wherein the method further comprises:- determining a representative spectral profile (RPRF) from the data cube (CUBE1) based on analysis of the spectral profiles (PRFi,j) of the data cube (CUBE1), - determining calibration parameters (SC,PEAK, ^SFWHM) from the representative spectral profile (RPRF), and - determining distance values (LP1, LP2) from the spectral profiles (PRFi,j) by using said calibration parameters (SC,PEAK, ^SFWHM).

10. The method of claim 9, wherein a calibration parameter (SC,PEAK) determined from the representative spectral profile (RPRF) specifies the center (SC,PEAK) of the representative spectral profile (RPRF) in terms of the control parameter (SC).

Citation Information

Patent Citations

  • Method and Device for Generating Multispectral or Hyperspectral Light, for Hyperspectral Imaging and / or for Distance Measurement and / or 2D or 3D Profile Measurement of an Object by Means of Spectrometry

    US20170059408A1

  • Method for Radiation Calibration of Airborne Hyperspectral Imaging LiDAR System

    US20220146651A1

  • Calibration method and apparatus for active pixel hyperspectral sensors and cameras

    WO2018085841A1