WO2022194040A1 - Spectral chip-based image sensing method and apparatus, spectral recovery method and apparatus, and electronic device - Google Patents

Spectral chip-based image sensing method and apparatus, spectral recovery method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022194040A1
WO2022194040A1 PCT/CN2022/080327 CN2022080327W WO2022194040A1 WO 2022194040 A1 WO2022194040 A1 WO 2022194040A1 CN 2022080327 W CN2022080327 W CN 2022080327W WO 2022194040 A1 WO2022194040 A1 WO 2022194040A1
Authority
WO
WIPO (PCT)
Prior art keywords
spectrum
image
spectral
chip
pixels
Prior art date
Application number
PCT/CN2022/080327
Other languages
French (fr)
Chinese (zh)
Inventor
张鸿
王宇
黄志雷
Original Assignee
上海与光彩芯科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202110281439.6A external-priority patent/CN115086581B/en
Priority claimed from CN202110351061.2A external-priority patent/CN115147287B/en
Application filed by 上海与光彩芯科技有限公司 filed Critical 上海与光彩芯科技有限公司
Publication of WO2022194040A1 publication Critical patent/WO2022194040A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/40Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled

Definitions

  • the present application relates to the technical field of spectrum chips, and more particularly, to an image sensing method, an image sensing device, a spectrum recovery method, a spectrum recovery device and an electronic device based on a spectrum chip.
  • the Bayer filter uses the spectral response of the RGB three-color filter to simulate the stimulus response of the human eye, and restores the overall color effect of the photo through mosaic interpolation. There may be errors in many links in the whole process, resulting in errors in color reproduction.
  • white balance low-cost white balance adjustment can be performed based on the acquired RGB information.
  • many terminals are equipped with dedicated color temperature sensors to measure the ambient color temperature to achieve a better white balance effect, thereby increasing the cost of the overall solution and increasing the complexity of the system. degree.
  • the spectrum chip uses a broad-spectrum filter or filter structure to filter light, and then restores the spectrum through different data processing methods after the sensor signal is collected.
  • the current spectral imaging technology based on spectral chips is mainly based on a spectrometer plus a mechanical scanning structure.
  • the precision control of the mechanical scanning and the trade-off between the scanning step size required by this solution will increase the cost and reduce the resolution of the time dimension. reduce.
  • the spectrometer realized by the use of filters and photodetection arrays can directly realize spectral imaging through the array of spectrometers because of its natural two-dimensional photosensitive structure.
  • multiple light modulation units form a spectral pixel, which has the function of spectral measurement. Since a spectral pixel occupies multiple physical pixels (pixels), the spatial resolution of the image is reduced, and corresponding methods need to be used. Improve spatial resolution while maintaining spectral resolution.
  • the light path changes at the edge of the imaged object, and the signal-to-noise ratio is low. This results in poor spectral recovery at the edge.
  • Embodiments of the present application provide, on the one hand, an image sensing method based on a spectrum chip, an image sensing device, and an electronic device, which can determine the response function of the physical pixel corresponding to the image parameter to be sensed, This image parameter is calculated from the light intensity readings of the physical pixels to improve image sensing.
  • the embodiments of the present application provide a spectrum chip-based spectrum recovery method, spectrum recovery device, and electronic device, which can flexibly adjust the number and spatial distribution of physical pixel points corresponding to each spectrum pixel. Perform spectral restoration to enhance the spectral restoration effect.
  • an image sensing method based on a spectrum chip comprising: determining a first image parameter to be sensed; determining an image of the spectrum chip based on the first image parameter to be sensed a first plurality of physical pixels of a sensor; determining a response function of the first plurality of physical pixels and measuring a light intensity reading for each of the first plurality of physical pixels; and, based on the The light intensity reading and the response function calculate the first image parameter to be sensed.
  • determining a first group of multiple physical pixels of the spectrum chip for image sensing based on the first image parameter to be sensed includes: At least one of spatial resolution, image signal-to-noise ratio, and spectral accuracy determines the first plurality of physical pixels.
  • the first group of multiple physical pixels is at least one of 2 ⁇ 2, 3 ⁇ 3, 5 ⁇ 5, and 10 ⁇ 10 physical pixel square arrays on the image sensor.
  • the first group of multiple physical pixels is at least one of 2 ⁇ 2, 3 ⁇ 3, 5 ⁇ 5, and 10 ⁇ 10 physical pixel square arrays on the image sensor.
  • the first group of multiple physical pixels are multiple physical pixels of a predetermined shape on the image sensor.
  • determining the first group of multiple physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor includes: responding to ambient light The intensity is a first intensity, determining a first number of physical pixel squares; and, in response to the intensity of the ambient light being a second intensity less than the first intensity, determining a second number of physical pixel squares, the second The number is greater than the first number.
  • determining the first plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor includes: responding to the image a first area of a first brightness or a first signal-to-noise ratio in the image acquired by the sensor, determining a first number of physical pixel squares; and, in response to a second area of the image acquired by the image sensor that is less than the first brightness
  • the brightness or the second region of the second signal-to-noise ratio smaller than the first signal-to-noise ratio determines a second number of physical pixel squares, the second number being greater than the first number.
  • determining the first plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor includes: responding to the image a first spatial resolution and/or a first spectral accuracy of the sensor, determining a first number of physical pixel squares; and, in response to a second spatial resolution of the image sensor less than the first spatial resolution and/or greater than The second spectral precision of the first spectral precision determines a second number of physical pixel squares, the second number being greater than the first number.
  • At least one of the first plurality of physical pixels is used to restore an image.
  • the method further includes: determining a second image parameter to be sensed; determining a second group of multiple image sensors of the spectrum chip based on the second image parameter to be sensed a physical pixel; determining a response function for the second plurality of physical pixels and determining a light intensity reading for each of the second plurality of physical pixels; and, based on the light intensity reading and the response The function calculates the second image parameter to be sensed.
  • determining the light intensity reading of each physical pixel in the second group of physical pixels includes: based on the second group of physical pixels and the first group of physical pixels The correspondence between the plurality of physical pixels is obtained, and the light intensity readings of the physical pixels corresponding to the first group of the plurality of physical pixels in the second group of the plurality of physical pixels are obtained.
  • the first image parameter is color data
  • the second image parameter is color temperature data
  • the first group of multiple physical pixels is a first number of physical pixel square matrices
  • the second group of multiple physical pixels is a second number of physical pixel square arrays
  • the second number is greater than the first number
  • determining the response function of the second group of multiple physical pixels includes: determining, based on the color temperature data to be sensed, a first image sensor of the image sensor of the color temperature data to be sensed an area and a second area; and, determining response functions of a plurality of physical pixels of the first area and the second area, respectively, to obtain response functions of the second plurality of physical pixels.
  • the spectrum chip is a spectrum chip for receiving light in a wavelength band of 350 to 1000 nanometers of a computing spectrum device.
  • an image sensing device based on a spectrum chip
  • a parameter determination unit for determining a first image parameter to be sensed
  • a pixel determination unit for The first image parameter sensed to determine a first group of multiple physical pixels of the image sensor of the spectrum chip
  • a data acquisition unit for determining the response function of the first group of multiple physical pixels and measuring the first group of multiple physical pixels a light intensity reading of each of the physical pixels
  • a parameter calculation unit for calculating the first image parameter to be sensed based on the light intensity reading and the response function.
  • a spectrum recovery method for a spectrum chip comprising: determining a predetermined pixel point on the spectrum chip based on a predetermined condition; Spectral recovery.
  • determining the predetermined pixel points on the spectrum chip includes: determining the predetermined pixel on the spectrum chip based on at least one of luminance distribution and spectral resolution requirements and spatial resolution requirements point.
  • determining the predetermined pixel point on the spectrum chip based on at least one of brightness distribution and spectral resolution requirements and spatial resolution requirements includes: acquiring an output of an image sensor of the spectrum chip. image data; performing edge detection on the image data; and determining predetermined pixel points on the spectrum chip based on the edge detection result of the image data.
  • performing edge detection on the image data includes: equalizing the image data; denoising the equalized image data; Image data for edge detection.
  • performing noise reduction on the equalized image data includes: selecting a filter of a predetermined size according to the image resolution and/or the characteristics of the filter structure corresponding to the image sensor, The equalized image data is filtered.
  • performing edge detection on the denoised image data includes: using an edge detection operator to detect an edge region in the denoised image data; The region is expanded.
  • determining the predetermined pixel point on the spectrum chip based on the edge detection result of the image data includes: based on the edge detection result of the image data, determining that the spectrum chip has A predetermined pixel point with a light intensity consistency higher than a predetermined threshold, the predetermined pixel point is a predetermined number of pixel points that are adjacent and connected based on the pixel center point.
  • determining the predetermined pixel point on the spectrum chip based on the edge detection result of the image data includes: based on the edge detection result of the image data, determining that the spectrum chip has Groups of predetermined pixel points with different numbers.
  • the plurality of groups of predetermined pixel points with different numbers include 2 ⁇ 2, 3 ⁇ 3, 5 ⁇ 5, and 10 ⁇ 10 physical pixel arrays.
  • the predetermined pixel point is a plurality of physical pixels of a predetermined shape on the image sensor.
  • determining the predetermined pixel points on the spectrum chip based on the luminance distribution and at least one of a spectral resolution requirement and a spatial resolution requirement includes: in response to the spectral resolution requirement being greater than the third A predetermined threshold, determining the predetermined number of pixels greater than a first predetermined number; and/or, in response to the spatial resolution requirement being greater than a second predetermined threshold, determining the predetermined number of pixels less than a second predetermined number.
  • using the predetermined pixel points on the spectrum chip to perform spectrum recovery includes: using the predetermined pixel points on the spectrum chip to perform spectrum recovery with a dynamically adjusted recovery step size .
  • using the predetermined pixel points on the spectrum chip to perform spectrum recovery includes: dynamically adjusting the wavelength sampling interval used for the spectrum recovery based on the application of the spectrum to be recovered .
  • determining the predetermined pixel points on the spectrum chip based on the edge detection result of the image data includes: determining the number of predetermined pixel points on the spectrum chip based on a wavelength sampling interval.
  • the spectrum chip is a spectrum chip used for a calculation spectrometer to receive light in a wavelength band of 350 to 1000 nanometers.
  • a spectrum recovery device for a spectrum chip, comprising: a pixel determination unit for determining a predetermined pixel point on the spectrum chip based on a predetermined condition; and a spectrum recovery unit for using Spectral recovery is performed on the predetermined pixel points on the spectrum chip.
  • an electronic device comprising: a processor; and a memory, in which computer program instructions are stored, the computer program instructions cause the processor to run when the processor runs
  • the processor executes the spectral chip-based image sensing method and the spectral chip-based spectral recovery method as described above.
  • a computer-readable storage medium is provided, and computer program instructions are stored thereon, and when the computer program instructions are executed by a computing device, the computer program instructions are operable to execute the above
  • the image sensing method based on the spectrum chip and the spectrum recovery method based on the spectrum chip are described.
  • the spectral chip-based image sensing method, image sensing device and electronic device provided by the present application can utilize the broad-spectrum filter structure of the spectrum chip to determine the physical properties corresponding to the image parameters to be sensed according to the broad-spectrum filter structure.
  • the response function of the pixel is calculated, and the image parameter is calculated based on the light intensity reading of the physical pixel, thereby improving the signal-to-noise ratio, color and white balance of image sensing.
  • the spectral chip-based image sensing method, image sensing device, and electronic equipment provided by the present application can utilize the reconfigurable properties of the spectral chip to detect the signal-to-noise ratio, color, and white balance of image sensing in different situations.
  • the effect is optimized in a targeted manner, thereby improving the image sensing effect.
  • the spectral chip-based spectral recovery method, spectral recovery device and electronic device provided by the present application can flexibly adjust the number and spatial distribution of physical pixel points corresponding to each spectral pixel according to the image data output by the image sensor, thereby Reduce the recovery error introduced by spatial light intensity inhomogeneity.
  • the spectral chip-based spectral recovery method, spectral recovery device and electronic device provided in this application can improve the spatial resolution of spectral imaging by adjusting the number and spatial distribution of physical pixel points corresponding to each spectral pixel.
  • the spectral chip-based spectral recovery method, spectral recovery device and electronic device improve the edge signal-to-noise ratio of spectral images by performing edge detection on image data, and can be advantageously applied to spectral image-based edge detection and substance detection. identify.
  • FIG. 1 illustrates an exemplary configuration diagram of a spectrum chip according to an embodiment of the present application
  • FIG. 2 illustrates a flowchart of an image sensing method based on a spectrum chip according to an embodiment of the present application
  • FIG. 3 illustrates a schematic diagram of determining the number of different physical pixels in a spectral chip-based image sensing method according to an embodiment of the present application
  • FIG. 4 illustrates a schematic diagram of the simultaneous use of a spectral chip-based image sensing method for color reproduction and color temperature measurement according to an embodiment of the present application
  • FIG. 5 illustrates a flowchart of the specific example of the spectroscopic chip-based image sensing method according to an embodiment of the present application
  • FIG. 6 illustrates a flowchart of a spectrum recovery method based on a spectrum chip according to an embodiment of the present application
  • FIG. 7 illustrates an example of pixel points selected for spectrum restoration in a spectrum chip-based spectrum restoration method according to an embodiment of the present application
  • FIG. 8 illustrates an example of a reconfigurable manner in a spectral chip-based spectral recovery method according to an embodiment of the present application
  • FIG. 9 illustrates a schematic diagram of image changes before and after image equalization in the spectral chip-based spectral restoration method according to an embodiment of the present application
  • FIG. 10 illustrates a schematic diagram of an image after noise reduction in a spectral chip-based spectral restoration method according to an embodiment of the present application
  • FIG. 11 illustrates an edge detection result obtained by using the Canny edge detection algorithm in the spectrum chip-based spectrum recovery method according to an embodiment of the present application
  • FIG. 12 illustrates an example of using edge information to select pixel points for spectrum restoration in a spectrum chip-based spectrum restoration method according to an embodiment of the present application
  • Figures 13A to 13C illustrate examples of pixel points of different shapes selected using edge information to restore the spectrum in the example shown in Figure 12;
  • FIG. 14 illustrates an example of spectral recovery using a step size of 3 in a spectral chip-based spectral recovery method according to an embodiment of the present application
  • FIG. 16 illustrates a block diagram of a spectral chip-based image sensing device according to an embodiment of the present application
  • FIG. 17 illustrates a block diagram of a spectral chip-based spectral recovery apparatus according to an embodiment of the present application
  • FIG. 18 illustrates a block diagram of an electronic device according to an embodiment of the present application.
  • FIG. 1 illustrates an exemplary configuration diagram of a spectrum chip according to an embodiment of the present application.
  • the spectroscopic chip according to the embodiment of the present application is generally a spectroscopic chip applied to a computing spectrometer device.
  • the computational spectroscopy device may be a spectrometer or a spectral imaging device.
  • the most significant difference between a computational spectrometer and a traditional spectrometer is the difference in light filtering.
  • the filters used for wavelength selection are bandpass filters. The higher the spectral resolution, the narrower the passband and the more filters must be used, which increases the size and complexity of the overall system.
  • the spectral response curve is narrowed, the luminous flux decreases, resulting in a lower signal-to-noise ratio.
  • each filter generally adopts a broad-spectrum filter, which makes the raw data detected by the computational spectrometer system quite different from the original spectrum.
  • the original spectrum can be recovered computationally. Since broadband filters pass more light, i.e. light loses less energy, than narrowband filters, these types of computational spectrometers can detect spectra from darker scenes.
  • the spectral curve of the filter can be appropriately designed to recover the sparse spectrum with high probability, and the number of filters is much smaller than the desired number of spectral channels (recovering higher-dimensional vectors from lower-dimensional vectors) , which is undoubtedly very conducive to miniaturization.
  • a regularization algorithm (a denoised lower dimensional vector is obtained from a higher dimensional vector) can be used to reduce noise, which increases the signal-to-noise ratio and makes the overall system more efficient higher robustness.
  • the optical system is optional, which may be an optical system such as a lens component, a uniform light component, and the like.
  • the filter structure is a broadband filter structure in the frequency domain or the wavelength domain. The pass spectra of different wavelengths of the filter structures are not exactly the same everywhere. Filter structures can be metasurfaces, photonic crystals, nanopillars, multilayer films, dyes, quantum dots, MEMS (Micro-Electro-Mechanical Systems), FP etalon (FP etalon), cavity layer (hole layer), waveguide layer (waveguide). layer), diffractive elements and other structures or materials with filtering properties.
  • the filter structure may be the light modulation layer in Chinese patent CN201921223201.2,
  • the image sensor ie, the photodetector array
  • the image sensor can be a CMOS image sensor (CIS), a CCD, an array photodetector, etc.
  • its material can be a silicon detector, or a detector of InGaAs or other materials.
  • the optional data processing unit may be a processing unit such as MCU, CPU, GPU, FPGA, NPU, ASIC, etc., which can export the data generated by the image sensor to the outside for processing.
  • the computational spectroscopy apparatus may also use a modulation unit or the like to form a filter structure, and in this case, each point of the photodetector array has different spectral responses. Further, directly adopting quantum dots, nanowires and other solutions can be realized.
  • the compressed sensing method can be used, and by selecting an appropriate measurement base and dictionary, high-precision spectral data can be calculated only with light intensity data measured by a small number of pixels of the image sensor. The process is described in detail as follows:
  • the intensity signal of the incident light at different wavelengths ⁇ is denoted as f( ⁇ ), and the transmission spectrum curve of the filter structure is denoted as T( ⁇ ).
  • T i the transmission spectrum curve of the filter structure
  • T i the transmission spectrum curve of the filter structure
  • one or more physical pixels corresponding to a group of structural units are referred to as "spectral pixels”. Further, the present invention can use at least one spectral pixel to restore the image.
  • I i ⁇ (f( ⁇ )*T i ( ⁇ )*R( ⁇ ))
  • R( ⁇ ) is the response of the detector, denoted as:
  • S is the light response of the system to different wavelengths, which is determined by two factors, the transmittance of the filter structure and the quantum efficiency of the photodetector response.
  • S is a matrix, and each row vector corresponds to the response of a broadband filter unit to incident light of different wavelengths.
  • the incident light is sampled discretely and uniformly, with a total of n sampling points.
  • the number of columns of S is the same as the number of sampling points of the incident light.
  • f( ⁇ ) is the light intensity of the incident light at different wavelengths ⁇ , that is, the incident light spectrum to be measured.
  • the response function S of the system is known, and through the light intensity reading I of the detector, the spectrum f( ⁇ ) of the input light can be obtained by inverse algorithm. Including: least squares, pseudo-inverse, equalization, least two norm, artificial neural network, etc. Therefore, to restore the relatively simple first image parameters to be sensed, such as the image color (ie, the three values of RGB), a specific matrix multiplication method can be used for restoration.
  • a specific matrix multiplication method can be used for restoration.
  • algorithms such as artificial neural network can be used.
  • this kind of method cooperates with the compressed sensing processing method, it can still obtain higher spectral accuracy in some cases when m is significantly smaller than n.
  • the system response S acts on the light intensity parameter in a matrix form.
  • the system response may act on the light intensity parameter by other functions.
  • This application mainly takes the response matrix as an example to describe the image sensing method.
  • the above takes one physical pixel corresponding to a group of structural units as an example to describe how to use m groups of physical pixels (that is, pixels on the image sensor) and their corresponding m groups of structural units (the same structure on the modulation layer is defined as a structural unit) ) to recover a spectral information, also known as "spectral pixel".
  • a spectral information also known as "spectral pixel”.
  • a plurality of physical pixels may also correspond to a group of structural units.
  • a physical pixel refers to the smallest photosensitive unit on an image sensor (detector array).
  • Structural unit refers to the fact that the spectrum chip needs to use a filter structure on the image sensor to filter light.
  • the smallest unit of the filter structure can be called a structural unit, and one structural unit can cover one or more physical pixels.
  • one structural unit corresponds to one physical pixel.
  • FIG. 2 illustrates a flowchart of an image sensing method based on a spectrum chip according to an embodiment of the present application.
  • the image sensing method based on a spectrum chip includes the following steps:
  • Step S110 determining the first image parameter to be sensed.
  • the first image parameter to be sensed refers to the sensed physical quantity to be measured.
  • the first image parameter may be color data, such as RGB color information or finer spectral (color temperature) information, or even multi-spectral or hyperspectral information.
  • S120 Determine a first group of multiple physical pixels of the image sensor of the spectrum chip based on the first image parameter to be sensed. As described above, based on the first image parameter to be sensed, a first group of multiple physical pixels of the image sensor of the spectrum chip is determined, that is, m physical pixels as described above. Preferably, the first group of multiple physical pixels of the image sensor of the spectrum chip may also be determined by the first image parameter to be sensed and the spatial resolution or signal-to-noise requirement.
  • the process of determining the first plurality of physical pixels may be performed based on various considerations, which will be described in further detail below.
  • n takes the value of 3
  • m can also take the value of 3, that is, to determine a group of three physical pixels
  • the RGB value of the color pixel can be quickly obtained by means of pseudo-inverse or equalization.
  • Step S130 determining the response function of the first group of multiple physical pixels and measuring the light intensity reading of each physical pixel in the first group of multiple physical pixels.
  • the light intensity readings I 1 , I 2 and I 3 obtained in the step S130 can be used to assist the system in the step S120 to automatically adjust to meet the corresponding signal-to-noise ratio or spatial resolution
  • a threshold can be set, and the judgment can be made based on the relationship between the light intensity reading and the threshold. For example, if the average of the light intensity readings is greater than the threshold, it can be understood that the light intensity is strong. For example, the light intensity reading is greater than The number of thresholds exceeds 75%, which is interpreted as a strong light intensity.
  • the order of determining the response function and measuring the light intensity reading in step S130 can be set arbitrarily, for example, the first The light intensity readings of each of the plurality of physical pixels are grouped, and the response function of the first group of the plurality of physical pixels is determined. Alternatively, both can be performed simultaneously. That is, in this embodiment of the present application, after the first group of multiple physical pixels of the image sensor of the spectrum chip is determined based on the first image parameter to be sensed, the first group may be acquired in any order. Light intensity readings and response functions for multiple physical pixels.
  • Step S140 calculating the first image parameter to be sensed based on the light intensity reading and the response function. For example, the RGB color data of three physical pixels used for color reproduction as described above.
  • the image sensing method based on the spectrum chip according to the embodiment of the present application can utilize the broad-spectrum filter structure of the spectrum chip, that is, the light-passing efficiency of the broad-spectrum filter structure of the spectrum chip is significantly better than that of the existing image
  • the filter array of the sensor such as the Bayer filter array, is comparable to the filter array structure of the existing image sensor in terms of color reproduction and spatial resolution. Therefore, the image sensing method based on the spectral chip according to the embodiment of the present application has significant advantages in image sensing in a dark light environment.
  • the reconfigurable characteristics refer to dynamically adjusting a group of multiple physical pixels according to requirements, That is, it can be dynamically adjusted according to different environmental conditions, and can be dynamically adjusted in different areas in the same photo to obtain the best image effect.
  • a physical pixel corresponds to a unit structure
  • how many physical pixels are selected as a set of data to restore a spectral pixel it can also be implemented as how many unit structures are selected as A set of data is restored for one spectral pixel, that is, the value of m, which affects the spatial resolution of the sensor, the image signal-to-noise ratio, and the spectral accuracy.
  • the value of m can be dynamically adjusted according to the environmental conditions in different situations, so as to obtain the optimal image effect.
  • FIG. 3 illustrates a schematic diagram of determining the number of different physical pixels in a spectral chip-based image sensing method according to an embodiment of the present application.
  • a 10 ⁇ 10 square matrix of physical pixels is shown, wherein the transmission spectra of the filter structures corresponding to each physical pixel are different (this can make the correlation lower).
  • the above-mentioned reconfigurable characteristics are shown in that, in the actual use process, the number of physical pixels in the scale of 2 ⁇ 2, 3 ⁇ 3, 5 ⁇ 5, 10 ⁇ 10, etc. can be used as needed (that is, the value of m ) are processed as a set of data to generate a spectral pixel.
  • the present invention takes the one-to-one relationship between physical pixels and structural units as an example.
  • multiple physical pixels correspond to a group of structural units.
  • the structural unit can be reconstructed, that is, the multiple physical pixels are determined by the structural unit.
  • 2 ⁇ 2 can be understood as four structural units forming a group of multiple physical pixels.
  • more physical pixels can be used as a set of data for processing.
  • physical pixels greater than or equal to 8 ⁇ 8 are used as a spectral pixel, thereby improving the image signal-to-noise ratio.
  • fewer pixels can be used as a set of data for processing, such as less than or equal to 3 ⁇ 3 physical pixels to form a spectral pixel, preferably 2 ⁇ 2 physical pixels. one spectral pixel, thereby increasing the spatial resolution.
  • an area can be selected for dynamic adjustment in the same image, the value of m in the darker area in the image is set high, and the value of m in the brighter part in the image is set low, so as to achieve the maximum value of m. Excellent effect. That is, there may be spectral pixels of different sizes in an image.
  • a reconfigurable method is used in a 10 ⁇ 10 pixel square matrix, and different numbers of physical pixels (2 ⁇ 2, 3 ⁇ 3, 5 ⁇ 5) are selected as a group of multiple physical pixels to restore the spectrum. pixel.
  • RGB data when 2 ⁇ 2 pixels are selected, based on the light intensity data of 2 ⁇ 2 pixels, combined with the response function, the RGB color data of 25 color (spectrum) pixels can be obtained within the square matrix range, thus Perform color recovery.
  • 5 ⁇ 5 pixels are selected, based on the light intensity data of 5 ⁇ 5 pixels, combined with the response function, the RGB color data of 4 color (spectrum) pixels can be obtained within the range of the square matrix.
  • the first image sensor is determined according to at least one of the spatial resolution of the image sensor, the image signal-to-noise ratio and the spectral accuracy.
  • the group of multiple physical pixels can be automatically adjusted by the system itself based on default settings or actual needs, or manually adjusted by the user according to their own needs.
  • determining a first group of a plurality of physical pixels of the spectrum chip for image sensing based on the first image parameter to be sensed includes: : determining the first plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor.
  • the first group of multiple physical pixels may be 2 ⁇ 2, 3 ⁇ 3, 5 ⁇ 5, 10 ⁇ 10 physical pixel square arrays on the image sensor At least one of them may also be a rectangular square matrix or a combination of irregular non-square matrices. That is, the first plurality of physical pixels may be a plurality of physical pixels of a predetermined shape on the image sensor.
  • determining the first group of the plurality of physical pixels according to at least one of the spatial resolution, the image signal-to-noise ratio and the spectral accuracy of the image sensor includes: responding to an environment The intensity of the light is a first intensity, determining a first number of physical pixel squares; and, in response to the intensity of the ambient light being a second intensity less than the first intensity, determining a second number of physical pixel squares, the The second number is greater than the first number.
  • determining the first group of the plurality of physical pixels according to at least one of the spatial resolution, the image signal-to-noise ratio and the spectral accuracy of the image sensor includes: responding to the determining the first number of physical pixel squares in the first area of the first brightness or the first signal-to-noise ratio in the image acquired by the image sensor; The second brightness or the second area of the second signal-to-noise ratio smaller than the first signal-to-noise ratio determines a second number of physical pixel squares, the second number being greater than the first number.
  • the image sensing method based on a spectral chip according to the embodiment of the present application is used for color restoration as an example.
  • the image sensing method based on a spectral chip according to the embodiment of the present application can also be used to obtain other image sensing parameters.
  • the image sensing method based on the spectral chip according to the embodiment of the present application can be used to measure the ambient color temperature to perform precise white balance processing on the image.
  • the first set of multiple physical properties is determined according to at least one of the spatial resolution of the image sensor, the image signal-to-noise ratio and the spectral accuracy.
  • the pixels include: determining a first number of physical pixel squares in response to a first spatial resolution and/or a first spectral accuracy of the image sensor; and, in response to a first spatial resolution of the image sensor less than the first spatial resolution With a spatial resolution and/or a second spectral precision greater than the first spectral precision, a second number of physical pixel squares is determined, the second number being greater than the first number.
  • FIG. 4 illustrates a schematic diagram of a spectral chip-based image sensing method for simultaneous color reproduction and color temperature measurement according to an embodiment of the present application.
  • FIG. 4 illustrates a schematic diagram of a spectral chip-based image sensing method for simultaneous color reproduction and color temperature measurement according to an embodiment of the present application.
  • the RGB color data can also be equivalently replaced with other color data, such as XYZ, RGB-like color data, and the like.
  • n (x-0.3320)/(y-0.1858)
  • 2 ⁇ 2 and 10 ⁇ 10 pixel groups can be used to restore spectral pixels on the same image sensor, while meeting the needs of color imaging and color temperature sensing.
  • the image parameters to be sensed obtained at the same time are not limited to color data and color temperature data, and may also be other types of images. parameter.
  • the method further includes: determining a second image parameter to be sensed; determining an image of the spectrum chip based on the second image parameter to be sensed a second plurality of physical pixels of a sensor; determining a response function for the second plurality of physical pixels and determining a light intensity reading for each of the second plurality of physical pixels; and, based on the The light intensity reading and the response function calculate the second image parameter to be sensed.
  • determining the light intensity reading of each physical pixel in the second group of multiple physical pixels includes: based on the second group of multiple physical pixels and the first The correspondence between a group of multiple physical pixels, and the light intensity readings of the physical pixels corresponding to the first group of multiple physical pixels in the second group of multiple physical pixels are acquired.
  • the first image parameter is color data
  • the second image parameter is color temperature data
  • the first group of multiple physical pixels is a first number of physical pixel squares
  • the second group of multiple physical pixels is a second number of physical pixel squares array, the second number is greater than the first number.
  • the color temperature of the image can be measured in different regions, so as to know the color temperature of the environment more accurately, and provide more processing methods. Preconditions.
  • the same sensor due to the use of the same sensor to achieve high spatial resolution color reproduction and accurate color temperature measurement, a better image white balance effect can be obtained.
  • determining the response function of the second group of multiple physical pixels includes: determining color temperature data to be sensed based on the color temperature data to be sensed the first area and the second area of the image sensor; and, determining the response functions of the plurality of physical pixels of the first area and the second area, respectively, to obtain the response of the second plurality of physical pixels function.
  • the image sensing method based on the spectrum chip can utilize the broad-spectrum filter structure of the spectrum chip, and determine the response function of the physical pixel corresponding to the image parameter to be sensed according to the broad-spectrum filter structure, The image parameter is calculated based on the light intensity reading of the physical pixel, thereby improving the signal-to-noise ratio, color and white balance of image sensing.
  • the image sensing method based on the spectrum chip according to the embodiment of the present application can utilize the reconfigurable characteristics of the spectrum chip to perform targeted optimization on the signal-to-noise ratio, color and white balance of image sensing according to different situations, thereby Improved image sensing effect.
  • the spectral chip-based image sensing method according to the embodiment of the present application is based on the reuse of pixel data, and can be used for color reproduction and color temperature measurement at the same time.
  • the specific example of the spectral chip-based image sensing method includes: step S210 , determining color data and color temperature data to be sensed; S220 , based on the color to be sensed
  • the data and the color temperature data respectively determine a first group of multiple physical pixels and a second group of multiple physical pixels of the image sensor of the spectrum chip; S230, determine the first response function of the first group of multiple physical pixels and the a first light intensity reading for each of the first plurality of physical pixels and determining a second response function for the second plurality of physical pixels and each of the second plurality of physical pixels a second light intensity reading of a physical pixel; and, S240, calculate the color data to be sensed based on the first light intensity reading and the first response function, and calculate the color data to be sensed based on the second light intensity reading and the first response function
  • the second response function calculates the color temperature data to be sensed.
  • determining the first light intensity reading of each physical pixel in the first group of multiple physical pixels includes: based on the first group of multiple physical pixels and the The corresponding relationship of the second group of multiple physical pixels is obtained by acquiring the light intensity readings of the physical pixels corresponding to the first group of multiple physical pixels in the second group of multiple physical pixels. That is, as mentioned above, because the light intensity data of all 10 ⁇ 10 physical pixels needs to be measured when sensing the color temperature data, the 2 ⁇ 10 light intensity data to be used can be directly selected from the light intensity data of the 10 ⁇ 10 physical pixels. 2 physical pixels of light intensity data.
  • the first group of multiple physical pixels is a first number of physical pixel square arrays, such as the above-mentioned 2 ⁇ 2 physical pixel square matrix
  • the The second group of multiple physical pixels is a second number of physical pixel square matrices, such as the 10 ⁇ 10 physical pixel square matrix as described above.
  • the first group of multiple physical pixels may also be a 3 ⁇ 3 or 5 ⁇ 5 square matrix of physical pixels.
  • the first group of physical pixels may also be rectangular or irregular-shaped physical pixels on the image sensor.
  • the first group of multiple physical pixels may also be determined according to at least one of the spatial resolution of the image sensor, the image signal-to-noise ratio and the spectral accuracy and/or the second plurality of physical pixels.
  • determining the first plurality of physical pixels and/or the second plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio, and spectral accuracy of the image sensor comprises: in response to The intensity of the ambient light is a first intensity, and a first number of physical pixel square matrices are determined; and, in response to the ambient light intensity being a second intensity less than the first intensity, a second number of physical pixel square matrices are determined, so The second number is greater than the first number.
  • determining the first plurality of physical pixels and/or the second plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor comprises: in response to the determining the first number of physical pixel squares in the first area of the first brightness or the first signal-to-noise ratio in the image acquired by the image sensor; The second brightness or the second area of the second signal-to-noise ratio smaller than the first signal-to-noise ratio determines a second number of physical pixel squares, the second number being greater than the first number.
  • determining the first plurality of physical pixels and/or the second plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor comprises: in response to the a first spatial resolution and/or a first spectral accuracy of the image sensor, determining a first number of physical pixel arrays; and, in response to a second spatial resolution of the image sensor that is less than the first spatial resolution and/or or a second spectral precision greater than the first spectral precision, a second number of physical pixel squares is determined, the second number being greater than the first number.
  • determining the second response function of the second group of multiple physical pixels includes: determining the color temperature data to be sensed based on the color temperature data to be sensed. a first region and a second region of the image sensor; and determining response functions of a plurality of physical pixels of the first region and the second region, respectively, to obtain response functions of the second plurality of physical pixels .
  • this specific example can improve the color and white balance effect of image sensing by calculating color data and color temperature data at the same time.
  • the reconfigurable characteristics of the spectrum chip can be used, the effects of color and white balance of image sensing can be optimized according to different situations, which can improve the effect of image sensing.
  • FIG. 6 illustrates a flowchart of a spectrum recovery method based on a spectrum chip according to an embodiment of the present application.
  • the spectrum recovery method based on a spectrum chip includes the following steps:
  • Step S310 determining a predetermined pixel point on the spectrum chip based on a predetermined condition.
  • the predetermined pixel points are used to restore the spectrum, so they should correspond to the above-mentioned structural units, but in the case of one-to-one correspondence between physical pixels and structural units, it is also possible Corresponds to physical pixels as described above.
  • the spectral pixel refers to that the data detected under several structural units can be used to recover a set of spectral data, and these structural units used to recover the spectral pixel, or the physical properties covered (corresponding) thereof. Dynamic adjustment of pixels (preset pixels) is called reconfigurable.
  • reconfigurable refers to dynamically adjusting the preset pixels of each point according to specific requirements or predetermined conditions.
  • the above-mentioned specific and requirements or predetermined conditions may include: requirements for spectral resolution, requirements for brightness uniformity derived for improving the accuracy of spectral restoration, and requirements for total brightness thresholds of spectral pixels.
  • determining the predetermined pixel points on the spectral chip includes: determining based on at least one of brightness distribution and spectral resolution requirements and spatial resolution requirements. predetermined pixel points on the spectrum chip.
  • the spectral resolution requirement refers to the spectral accuracy that is to be obtained based on the requirement, such as 10 nm accuracy, or 1 nm accuracy.
  • the number of predetermined pixel points included in each spectral pixel can be adjusted according to this precision requirement.
  • this requirement and the spatial resolution requirement will affect each other, so it can also be extended to the spatial resolution requirement, that is, reducing the spectral resolution is equivalent to increasing the spatial resolution, and vice versa.
  • determining the predetermined pixel point on the spectral chip based on at least one of the luminance distribution and spectral resolution requirements and spatial resolution requirements includes: responding to: The spectral resolution requirement is greater than a first predetermined threshold, determining that the predetermined number of pixels is greater than a first predetermined number; and/or, in response to the spatial resolution requirement being greater than a second predetermined threshold, determining that the number of pixels is less than a second predetermined number. the predetermined pixel point.
  • the requirement of brightness uniformity means that for each spectral pixel, when the brightness uniformity of the included pixels is relatively good, the spectral recovery effect is better; in order to achieve this requirement, edge detection can be performed according to the image information first, and then select the A physical pixel group with better luminance uniformity is used to restore a spectral pixel, which will be described in further detail below with reference to specific embodiments 1 and 2.
  • the total brightness threshold requirement of spectral pixels means that when the brightness of the scene is low, the spectral pixels can be restored by increasing the number of predetermined pixel points to improve the spectral accuracy of the corresponding spectral pixels.
  • Step S320 using the predetermined pixel points on the spectrum chip to perform spectrum recovery.
  • spectral recovery is performed using a spectral recovery algorithm, such as a compressed sensing algorithm.
  • the compressed sensing algorithm relies on a dictionary used to project features.
  • a dictionary learning algorithm can be used to train a suitable dictionary for spectral recovery using known spectra of materials commonly found in nature.
  • high-precision spectral data can be calculated with only a small amount of light intensity data measured by image sensors.
  • the predetermined pixel point can be reconstructed based on the luminance distribution, that is, the light intensity distribution.
  • the brightness of each pixel in the image is first determined, and then the predetermined pixel point is determined based on the brightness of the pixel.
  • one physical pixel may correspond to a group of structural units, but it may also be that a group of multiple physical pixels corresponds to a group of structural units. Therefore, unlike physical pixels, in the spectral chip-based spectral recovery method according to the embodiment of the present application, a group of structural units corresponding to one or more groups is recovered to recover a set of spectral information, and the units are called "" Spectral Pixels". Further, the solution of the embodiment of the present application can use at least one spectral pixel to restore the image.
  • the predetermined pixel points as described above refer to physical pixels of the image sensor corresponding to a group of structural units.
  • the value of the number of structural units affects the spatial resolution, image signal-to-noise ratio and spectral accuracy of the sensor.
  • the value of the number of structural units in a reconfigurable manner, can be dynamically adjusted according to environmental conditions in different situations, so as to obtain an optimal image effect.
  • the number of physical pixels in the scale of 2 ⁇ 2, 3 ⁇ 3, 5 ⁇ 5, 10 ⁇ 10 can be used as a set of data for processing as required to generate a spectral pixel.
  • the embodiments of the present application take the one-to-one relationship between physical pixels and structural units as an example.
  • multiple physical pixels may correspond to a group of structural units, and when multiple physical pixels correspond to a group of structural units , can be understood as the reconfiguration of the structural unit, that is, the multiple physical pixels are determined by the structural unit, for example, 2 ⁇ 2 can be understood as a group of the multiple physical pixels constituting a spectral pixel with four structural units.
  • FIG. 7 illustrates an example of pixel points selected for recovering a spectrum in a spectrum chip-based spectrum restoration method according to an embodiment of the present application.
  • FIG. 7 shows that a 5 ⁇ 5 square matrix with a total of 25 pixels is used for spectral recovery.
  • a specific number can be selected, for example, 10 ⁇ 10 total 100 pixels or 15 ⁇ 15 total 225 pixels can be selected for spectral restoration.
  • FIG. 8 illustrates an example of a reconfigurable manner in a spectral chip-based spectral recovery method according to an embodiment of the present application.
  • the outermost area can be understood as using 10 ⁇ 10 pixels as a spectral pixel for restoration
  • the middle area can be understood as 5 ⁇ 5 pixels for restoration
  • the innermost area is 3 ⁇ 3 Pixel points are restored, that is, in the embodiment of the present application, the pixel points corresponding to the spectral pixels are dynamically selected according to different application requirements.
  • determining the predetermined pixel points on the spectrum chip based on the luminance distribution includes: dynamically adjusting the light intensity changes of the local image acquired by the image sensor based on the brightness distribution.
  • the brightness distribution of the pixel points on the spectrum chip can also be determined more precisely by performing edge detection on the image data output by the image sensor. That is, in order to determine the predetermined pixel points on the spectrum chip based on the brightness distribution, the image data output by the image sensor of the spectrum chip is first acquired, and then edge detection is performed on the image data, and the edge detection based on the image data is performed. As a result, predetermined pixel points on the spectrum chip are determined.
  • determining the predetermined pixel point on the spectral chip based on at least one of luminance distribution and spectral resolution requirements and spatial resolution requirements includes: acquiring the image data output by the image sensor of the spectrum chip; edge detection is performed on the image data; and predetermined pixel points on the spectrum chip are determined based on the edge detection result of the image data.
  • the image data output by the image sensor of the spectrum chip is acquired. That is, as described above, the image sensor of the spectrum chip obtains the differential response to the modulated spectrum after receiving the modulated spectrum, and uses the signal processing circuit layer to process the differential response into image data.
  • edge detection is performed on the image data.
  • the image data may be preprocessed first.
  • the preprocessing of the image data includes image equalization and image noise reduction. Since a filter structure is added to the photodetector array, the image data output by the photodetector array will contain noise caused by the filter structure, and it will be darker on the whole. The image is pre-equalized and denoised.
  • the equalization algorithm can be global histogram equalization or local adaptive histogram equalization. Because the filter structure makes the image darker as a whole, global histogram equalization can generally be used to equalize the image.
  • FIG. 9 illustrates a schematic diagram of image changes before and after image equalization in the spectral chip-based spectral restoration method according to an embodiment of the present application. As shown in Figure 9, the overall brightness of the image after equalization processing increases, the contrast increases, and the details are highlighted.
  • FIG. 10 illustrates a schematic diagram of an image after noise reduction in the spectral chip-based spectral restoration method according to an embodiment of the present application. As shown in FIG.
  • filter noise reduction it is the result obtained by performing Gaussian filtering with a 9 ⁇ 9 filter kernel and performing median filtering with a 5 ⁇ 5 filter kernel.
  • filter noise reduction is to blur the noise brought by the filter structure to the image and reduce its influence on edge detection.
  • performing edge detection on the image data includes: performing equalization on the image data; performing noise reduction on the equalized image data; and, Edge detection is performed on the denoised image data.
  • performing noise reduction on the equalized image data includes: selecting a predetermined filter according to the image resolution and/or the characteristics of the filter structure corresponding to the image sensor.
  • a filter kernel of size filters the equalized image data.
  • edge detection is performed.
  • the edge detection operator can be Sobel, Laplacian, Scharr, Canny, etc., and is used to detect the edge area in the image.
  • an appropriate expansion operation may be performed on the edge to expand the area occupied by the edge.
  • FIG. 11 illustrates an edge detection result obtained by using the Canny edge detection algorithm in the spectrum chip-based spectrum recovery method according to an embodiment of the present application.
  • performing edge detection on the denoised image data includes: using an edge detection operator to detect edge regions in the denoised image data ; and, performing an expansion operation on the edge region.
  • the accuracy of spectral recovery is affected by the number of selected pixels and the consistency of light intensity. Influence, too many pixels will reduce the uniformity of light intensity, too few will cause the amount of data required for recovery to be too undetermined.
  • the detected edges and their neighborhoods are areas with large image gradients, that is, areas with poor light intensity consistency, which should be avoided when selecting points for spectral recovery.
  • Connected means that the selected points form a connected area in the image, and its connectivity can be four-neighborhood connectivity or eight-neighborhood connectivity, and the selected points need to avoid edge areas.
  • Nearest means that the selected point has the smallest average distance from the center point, and the distance can be Euclidean distance.
  • Specific number refers to selecting a specified number of points for spectral recovery, such as 25, 100, etc. The number of selected points will affect the accuracy and frequency resolution of spectral recovery. In order to achieve higher computational efficiency, when selecting points, the greedy algorithm and the breadth-first search algorithm can be used to quickly select the required number of points. The ultimate purpose of point selection is to ensure the consistency of the light intensity of the pixels used to restore the spectrum.
  • determining the predetermined pixel point on the spectrum chip based on the edge detection result of the image data includes: based on the edge detection result of the image data, determining The predetermined pixel points on the spectrum chip having a light intensity consistency higher than a predetermined threshold value are a predetermined number of adjacent and connected pixel points based on the pixel center point.
  • determining the predetermined pixel point on the spectrum chip based on the edge detection result of the image data includes: based on the edge detection result of the image data, determining There are multiple groups of predetermined pixel points with different numbers on the spectrum chip.
  • the plurality of groups of predetermined pixel points with different numbers include 3 ⁇ 3, 5 ⁇ 5, and 10 ⁇ 10 physical pixel arrays.
  • Example 2 by preprocessing the image data of the spectrum chip, the edge of the photodetector-level sensitivity in the image data of the spectrum chip is determined, and the edge portion is dynamically adjusted for the recovery filter set.
  • the edge detection operator is used to detect the edge of the image, avoid areas with large pixel gradients in the image, and ensure the consistency of the pixel light intensity used to restore the spectrum.
  • selecting pixels for spectral restoration avoid the edge areas in the image, and select the nearest, connected, and specific number of pixels for spectral restoration.
  • the significance of the spectral restoration reconfigurable algorithm is that the position of the pixel points used to restore the spectrum can be dynamically selected. Spectrum is not distorted. FIG.
  • FIG. 12 illustrates an example of using edge information to select pixel points for spectrum restoration in the spectrum chip-based spectrum restoration method according to an embodiment of the present application.
  • FIGS. 13A to 13C illustrate examples of pixel points of different shapes selected using edge information for restoring the spectrum in the example shown in FIG. 12 .
  • the predetermined pixel point is a plurality of physical pixels of a predetermined shape on the image sensor.
  • Example 3 in the spectrum recovery method based on the spectrum chip according to the embodiment of the present application, the purpose of the spectrum recovery algorithm is to obtain a spectrum image.
  • the reconfigurability of the spectral recovery algorithm also lies in the fact that the step size when recovering the spectrum can be dynamically adjusted. For example, if a 3 ⁇ 3 pixel square matrix is used for spectral restoration, and the step size during restoration is also 3, the 9 ⁇ 9 pixel data can finally be restored to obtain a spectral image with a spatial resolution of 3 ⁇ 3.
  • FIG. 14 illustrates an example of spectral recovery using a step size of 3 in the spectral chip-based spectral recovery method according to an embodiment of the present application.
  • the step size when restoring the spectrum can be dynamically adjusted, for example, adjusted to 1.
  • the step size is 1 for offset, and then 3 ⁇ 3 pixels are used for spectral restoration.
  • the 9 ⁇ 9 pixel data can be restored to obtain a spatial resolution of 7 ⁇ 7. spectral image.
  • the spatial resolution of the restored spectral image can be dynamically adjusted.
  • FIG. 15 illustrates an example of spectral recovery using a step size of 1 in the spectral chip-based spectral recovery method according to an embodiment of the present application.
  • performing spectrum recovery using the predetermined pixel points on the spectrum chip includes: using the predetermined pixel points on the spectrum chip to dynamically adjust recovery step size for spectral recovery.
  • the reconfiguration is also reflected in the restored spectrum, and the wavelength sampling interval can be dynamically adjusted for different application scenarios.
  • the wavelength sampling interval can be larger, such as 5 nm as the sampling interval, and there are a total of 61 wavelength sampling points from 450 to 750 nm, and spectral reconstruction can be performed with fewer units, such as 10 units.
  • the wavelength sampling interval can be small, for example, 0.5 nm is the sampling interval, and there are 301 wavelength sampling points from 450 nm to 750 nm, and more units can be used for spectral reconstruction, such as 50.
  • the wavelength sampling interval can be dynamically adjusted according to the application scenario to achieve a balance between the spatial resolution and the spectral resolution at the same time.
  • the number in the vector Y is adjusted, and if the spectral resolution requirement is higher, the number in the Y is also larger.
  • performing spectrum recovery using the predetermined pixel points on the spectrum chip includes: dynamically adjusting the spectrum for the spectrum to be recovered based on the application of the spectrum to be recovered.
  • determining the predetermined pixel points on the spectrum chip based on the edge detection result of the image data includes: determining the number of predetermined pixel points on the spectrum chip based on the wavelength sampling interval.
  • the determination of the number of predetermined pixels may be affected by two factors.
  • One is the uniformity of brightness.
  • the spectral recovery It is more accurate, otherwise the error is relatively large, which needs to be satisfied first.
  • the edge detection mentioned above is also for this purpose. It is also related to the brightness that needs to reach the threshold.
  • the number of points to achieve the threshold; the second is the spectral resolution, which is determined by demand.
  • the spectrum recovery method based on the spectrum chip can perform effective identification and dynamic adjustment according to the information of the image imaged by the image sensor of the spectrum chip by not fixing the structure selected for the recovery spectrum.
  • the spectral chip-based spectral restoration method can flexibly adjust the number and spatial distribution of physical pixels corresponding to each spectral pixel according to the image data output by the image sensor, thereby reducing spatial light intensity unevenness Recovery error introduced by sex.
  • the spectral chip-based spectral recovery method can improve the spatial resolution of spectral imaging by adjusting the number and spatial distribution of physical pixels corresponding to each spectral pixel, and improve the effect to filter-based The theoretical limit of chip and photodetection array schemes.
  • the spectral chip-based spectral restoration method improves the edge signal-to-noise ratio of the spectral image by performing edge detection on the image data, and can be advantageously applied to edge detection and substance identification based on the spectral image.
  • the reconfiguration of predetermined pixel points can be performed with spectral resolution or spatial resolution requirements.
  • one physical pixel may correspond to a group of structural units, but it may also be that a group of multiple physical pixels corresponds to a group of structural units. Therefore, unlike physical pixels, in the spectral chip-based spectral recovery method according to the embodiment of the present application, a group of structural units corresponding to one or more groups is recovered to recover a set of spectral information, and the units are called "" Spectral Pixels". Further, the solution of the embodiment of the present application can use at least one spectral pixel to restore the image.
  • the predetermined pixel points as described above refer to physical pixels of the image sensor corresponding to a group of structural units.
  • the value of the number of structural units affects the spatial resolution, image signal-to-noise ratio and spectral accuracy of the sensor.
  • the value of the number of structural units in a reconfigurable manner, can be dynamically adjusted according to environmental conditions in different situations, so as to obtain an optimal image effect.
  • the number of physical pixels of 2 ⁇ 2, 3 ⁇ 3, 5 ⁇ 5, 10 ⁇ 10 and other scales can be used as a set of data for processing according to the spectral resolution or spatial resolution to generate a spectrum pixel.
  • the embodiments of the present application take the one-to-one relationship between physical pixels and structural units as an example.
  • multiple physical pixels may correspond to a group of structural units, and when multiple physical pixels correspond to a group of structural units , can be understood as the reconfiguration of the structural unit, that is, the multiple physical pixels are determined by the structural unit, for example, 2 ⁇ 2 can be understood as a group of the multiple physical pixels constituting a spectral pixel with four structural units.
  • FIG. 8 illustrates an example of pixel points selected for spectrum restoration in the spectrum chip-based spectrum restoration method according to an embodiment of the present application. As shown in FIG. 8 , it shows that a 5 ⁇ 5 square matrix with a total of 25 pixels is used for spectral recovery. In addition, using the reconfigurable spectral recovery algorithm, a specific number can be selected. For example, according to the spectral resolution requirements, 10 ⁇ 10 total 100 pixels can be selected for multispectral imaging, or 15 ⁇ 15 total 225 pixels can be used for multispectral imaging. Perform hyperspectral imaging.
  • the reconfiguration of the spectral pixels may be performed only based on the spectral resolution or spatial resolution requirements irrespective of the brightness.
  • FIG. 16 illustrates a block diagram of an image sensing device based on a spectrum chip according to an embodiment of the present application, according to an embodiment of the present application.
  • an image sensing device 400 based on a spectrum chip includes: a parameter determination unit 410 for determining a first image parameter to be sensed; a pixel determination unit 420 for The first image parameter to be sensed determines a first group of multiple physical pixels of the image sensor of the spectrum chip; the data acquisition unit 430 is configured to determine the first response function of the first group of multiple physical pixels and measure all the physical pixels. the light intensity reading of each physical pixel in the first group of multiple physical pixels; and, a parameter calculation unit 440, configured to calculate the first image parameter to be sensed based on the light intensity reading and the response function .
  • the matrix determining unit 420 is configured to: determine the image sensor according to at least one of the spatial resolution, the image signal-to-noise ratio and the spectral accuracy of the image sensor. The first group of multiple physical pixels is described.
  • the first plurality of physical pixels are 2 ⁇ 2, 3 ⁇ 3, 5 ⁇ 5, 10 ⁇ 10 physical pixels on the image sensor At least one of the pixel squares.
  • the first group of multiple physical pixels are multiple physical pixels of a predetermined shape on the image sensor.
  • the matrix determining unit 420 determines the first The grouping of the plurality of physical pixels includes: determining a first number of physical pixel square arrays in response to the intensity of the ambient light being a first intensity; and determining a first number of physical pixels in response to the intensity of the ambient light being a second intensity less than the first intensity A square matrix of physical pixels of two numbers, the second number is greater than the first number.
  • the matrix determining unit 420 determines the first The grouping of the plurality of physical pixels includes: determining a first number of physical pixel squares in response to a first region of a first brightness or a first signal-to-noise ratio in an image acquired by the image sensor; and, in response to the image sensor In the acquired image, in a second region with a second brightness smaller than the first brightness or a second signal-to-noise ratio smaller than the first signal-to-noise ratio, determine a second number of physical pixel square matrices, the second number being greater than the first number .
  • the matrix determining unit 420 determines the first The grouping of the plurality of physical pixels includes: determining a first number of physical pixel squares in response to a first spatial resolution and/or a first spectral accuracy of the image sensor; and, in response to the image sensor being smaller than the first spatial resolution A second spatial resolution of the resolution and/or a second spectral accuracy greater than the first spectral accuracy determines a second number of physical pixel squares, the second number being greater than the first number.
  • At least one first group of multiple physical pixels is used to restore an image.
  • the parameter determining unit 410 is further configured to determine the second image parameter to be sensed; the pixel determining unit 420 is further configured to determine the second image parameter to be sensed based on the The sensed second image parameter determines a second group of multiple physical pixels of the image sensor of the spectrum chip; the data acquisition unit 430 is further configured to determine a second response function of the second group of multiple physical pixels and determine The light intensity reading of each physical pixel in the second group of multiple physical pixels; and, the parameter calculation unit 440 is further configured to calculate the to-be-sensed first based on the light intensity reading and the response function.
  • the light intensity measurement unit 430 is configured to: based on the correspondence between the second group of physical pixels and the first group of physical pixels relationship, and obtain the light intensity readings of the physical pixels corresponding to the first group of the plurality of physical pixels in the second group of the plurality of physical pixels.
  • the first image parameter is color data
  • the second image parameter is color temperature data
  • the first group of multiple physical pixels is a square matrix of physical pixels of a first number
  • the second group of multiple physical pixels is a second number of physical pixels The physical pixel square matrix of , the second number is greater than the first number.
  • the matrix determining unit 420 is configured to: determine the first image sensor of the image sensor of the color temperature data to be sensed based on the color temperature data to be sensed an area and a second area; and, determining response functions of a plurality of physical pixels of the first area and the second area, respectively, to obtain response functions of the second plurality of physical pixels.
  • the spectral chip is a spectral chip used for computing a spectral device that receives light in a wavelength band of 350 to 1000 nanometers.
  • FIG. 17 illustrates a block diagram of a spectral chip-based spectral recovery apparatus according to an embodiment of the present application.
  • the spectrum recovery device 500 based on a spectrum chip includes: a pixel determination unit 510, configured to determine a predetermined pixel point on the spectrum chip based on a predetermined condition; and, a spectrum recovery unit 520, for spectrum recovery using the predetermined pixel points on the spectrum chip.
  • the pixel determination unit 510 is configured to: determine the pixel on the spectral chip based on at least one of luminance distribution and spectral resolution requirements and spatial resolution requirements. predetermined pixels.
  • the pixel determination unit 510 determines predetermined pixel points on the spectral chip based on luminance distribution and at least one of spectral resolution requirements and spatial resolution requirements The method includes: acquiring image data output by an image sensor of the spectrum chip; performing edge detection on the image data; and determining predetermined pixel points on the spectrum chip based on the edge detection result of the image data.
  • the pixel determination unit 510 performs edge detection on the image data includes: equalizing the image data; denoising; and, performing edge detection on the denoised image data.
  • the pixel determination unit 510 performs noise reduction on the equalized image data including: according to the image resolution and/or the filter corresponding to the image sensor According to the characteristics of the optical structure, a filter kernel of a predetermined size is selected to filter the equalized image data.
  • the pixel determination unit 510 performs edge detection on the denoised image data including: detecting the denoised image by using an edge detection operator an edge region in the data; and, performing a dilation operation on the edge region.
  • the pixel determination unit 510 determining a predetermined pixel point on the spectral chip based on the edge detection result of the image data includes: based on the image data Based on the edge detection result, a predetermined pixel point on the spectrum chip with light intensity consistency higher than a predetermined threshold is determined, and the predetermined pixel point is a predetermined number of adjacent and connected pixel points based on the pixel center point.
  • the pixel determination unit 510 determining a predetermined pixel point on the spectral chip based on the edge detection result of the image data includes: based on the image data Based on the edge detection result, multiple groups of predetermined pixel points with different numbers on the spectrum chip are determined.
  • the plurality of groups of predetermined pixel points with different numbers include 2 ⁇ 2, 3 ⁇ 3, 5 ⁇ 5, and 10 ⁇ 10 physical pixel arrays.
  • the predetermined pixel points are a plurality of physical pixels of a predetermined shape on the image sensor.
  • the pixel determination unit 510 determines predetermined pixel points on the spectral chip based on luminance distribution and at least one of spectral resolution requirements and spatial resolution requirements comprising: in response to the spectral resolution requirement being greater than a first predetermined threshold, determining that the predetermined number of pixel points is greater than a first predetermined number; and/or, in response to the spatial resolution requirement being greater than a second predetermined threshold, determining that the number is smaller than the first predetermined number of pixels. Two predetermined number of said predetermined pixel points.
  • the spectrum restoration unit 520 is configured to perform spectrum restoration with a dynamically adjusted restoration step size using the predetermined pixel points on the spectrum chip.
  • the spectrum restoration unit 520 is configured to: dynamically adjust the wavelength sampling interval used for the spectrum restoration based on the application of the spectrum to be restored.
  • the pixel determination unit 510 is configured to: determine the number of predetermined pixel points on the spectrum chip based on a wavelength sampling interval.
  • the spectrum chip is a spectrum chip used for calculating a spectrometer that receives light in a wavelength band of 350 to 1000 nanometers
  • the spectral chip-based image sensing apparatus 400 and the spectral recovery apparatus 500 may be implemented in various terminal devices, such as spectrometers, or set in a server in the cloud.
  • the spectral chip-based image sensing apparatus 400 and the spectral recovery apparatus 500 according to the embodiments of the present application may be integrated into the terminal device as a software module and/or a hardware module.
  • the spectrum chip-based image sensing device 400 and the spectrum recovery device 500 may be a software module in the operating system of the terminal device, or may be an application program developed for the terminal device;
  • the image sensing device 400 and the spectrum recovery device 500 of the spectrum chip can also be one of many hardware modules of the terminal device.
  • the spectrum chip-based image sensing apparatus 400 and the spectrum restoration apparatus 500 and the terminal device may also be separate devices, and the spectrum chip-based image sensing apparatus 400 and the spectrum restoration apparatus 500 may be connected to the terminal device through a wired and/or wireless network, and transmit interaction information according to an agreed data format.
  • FIG. 18 illustrates a block diagram of an electronic device according to an embodiment of the present application.
  • the electronic device 10 includes one or more processors 11 and a memory 12 .
  • Processor 11 may be a central processing unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in electronic device 10 to perform desired functions.
  • CPU central processing unit
  • Processor 11 may control other components in electronic device 10 to perform desired functions.
  • Memory 12 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory.
  • the volatile memory may include, for example, random access memory (RAM) and/or cache memory, or the like.
  • the non-volatile memory may include, for example, read only memory (ROM), hard disk, flash memory, and the like.
  • One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may execute the program instructions to implement the spectral chip-based image sensing of the various embodiments of the present application described above Methods and spectral recovery methods and/or other desired functions.
  • Various contents such as light intensity data, corresponding parameters and the like may also be stored in the computer-readable storage medium.
  • the electronic device 10 may also include an input device 13 and an output device 14 interconnected by a bus system and/or other form of connection mechanism (not shown).
  • the input device 13 may be, for example, a keyboard, a mouse, or the like.
  • the output device 14 can output various information, such as image sensing parameters and spectral restoration results, to the outside.
  • the output devices 14 may include, for example, displays, speakers, printers, and communication networks and their connected remote output devices, among others.
  • the electronic device 10 may also include any other suitable components according to the specific application.
  • embodiments of the present application may also be computer program products comprising computer program instructions that, when executed by a processor, cause the processor to perform the "exemplary methods" described above in this specification
  • the computer program product can write program codes for performing the operations of the embodiments of the present application in any combination of one or more programming languages, including object-oriented programming languages, such as Java, C++, etc. , also includes conventional procedural programming languages, such as "C" language or similar programming languages.
  • the program code may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on.
  • embodiments of the present application may also be computer-readable storage media having computer program instructions stored thereon, the computer program instructions, when executed by a processor, cause the processor to perform the above-mentioned "Example Method" section of this specification Steps in a spectral chip-based image sensing method and a spectral recovery method according to various embodiments of the present application described in .
  • the computer-readable storage medium may employ any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may include, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses or devices, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • each component or each step can be decomposed and/or recombined. These disaggregations and/or recombinations should be considered as equivalents of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The present application relates to a spectral chip-based image sensing method and apparatus, a spectral recovery method and apparatus, and an electronic device. The spectral chip-based image sensing method comprises: determining a first image parameter to be sensed; determining a first group of multiple physical pixels of an image sensor of a spectral chip on the basis of said first image parameter; determining a response function of the first group of multiple physical pixels and measuring a light intensity reading of each physical pixel in the first group of multiple physical pixels; and calculating said first image parameter on the basis of the light intensity readings and the response function. In this way, the response function of the physical pixels corresponding to the image parameter to be sensed is determined, such that the image parameter can be calculated on the basis of the light intensity readings of the physical pixels, thereby improving an image sensing effect.

Description

基于光谱芯片的图像传感方法、光谱恢复方法、装置和电子设备Spectral chip-based image sensing method, spectral recovery method, device and electronic device 技术领域technical field
本申请涉及光谱芯片技术领域,更为具体地说,涉及一种基于光谱芯片的图像传感方法、图像传感装置、光谱恢复方法、光谱恢复装置和电子设备。The present application relates to the technical field of spectrum chips, and more particularly, to an image sensing method, an image sensing device, a spectrum recovery method, a spectrum recovery device and an electronic device based on a spectrum chip.
背景技术Background technique
在图像传感领域中,目前对于图像信噪比、色彩效果、白平衡等方面的需求逐渐提高。具体地,在图像信噪比方面,随着像素点越来越小,单个像素的进光量减少;此外,当前的图像传感器普遍采用拜尔滤光片阵列实现彩色效果,而拜尔滤光片阵列又使得进光量又进一步大幅减少,进而影响图像的信噪比。在一些特定应用场景,如暗光环境下,该问题较为凸显。为此,近年来诞生了新的滤光片排列方案,如RYYB、RGBW等。这些方案虽然一定程度上提升了进光量,但其原理与拜尔滤光片阵列相似,其提升效果非常有限。In the field of image sensing, the demand for image signal-to-noise ratio, color effect, white balance, etc. is gradually increasing. Specifically, in terms of image signal-to-noise ratio, as the pixel becomes smaller and smaller, the amount of light entering a single pixel decreases; in addition, current image sensors generally use Bayer filter arrays to achieve color effects, while Bayer filters The array further reduces the amount of incoming light, which in turn affects the signal-to-noise ratio of the image. In some specific application scenarios, such as dark light environment, this problem is more prominent. To this end, new filter arrangement schemes, such as RYYB, RGBW, etc., have been born in recent years. Although these solutions increase the amount of light entering to a certain extent, their principles are similar to that of Bayer filter arrays, and their improvement effect is very limited.
并且,在计算过程中,比如在色彩效果方面,拜尔滤光片采用RGB三色滤光片的频谱响应去模拟人眼的刺激响应,并通过马赛克插值方式还原照片的整体色彩效果。整个过程中多个环节可能存在误差,从而造成色彩还原的误差。在白平衡方面,成本较低的白平衡调整可通过所获取的RGB信息为基础进行。随着应用端对于白平衡要求的提高,不少终端配备了专用的色温传感器,对环境色温进行测量,以完成较好的白平衡效果,从而提高了整体方案的成本,也增加了系统的复杂程度。Moreover, in the calculation process, for example, in terms of color effects, the Bayer filter uses the spectral response of the RGB three-color filter to simulate the stimulus response of the human eye, and restores the overall color effect of the photo through mosaic interpolation. There may be errors in many links in the whole process, resulting in errors in color reproduction. In terms of white balance, low-cost white balance adjustment can be performed based on the acquired RGB information. With the improvement of white balance requirements on the application side, many terminals are equipped with dedicated color temperature sensors to measure the ambient color temperature to achieve a better white balance effect, thereby increasing the cost of the overall solution and increasing the complexity of the system. degree.
近年来,随着微纳技术、量子技术、材料科学以及半导体工艺的发展,诞生了新的改善图像传感的研究方向。比如,光谱芯片采用宽谱滤光片或滤光结构进行滤光,再经过传感器信号采集后通过不同的数据处理方式来还原频谱。In recent years, with the development of micro-nano technology, quantum technology, material science and semiconductor technology, new research directions for improving image sensing have been born. For example, the spectrum chip uses a broad-spectrum filter or filter structure to filter light, and then restores the spectrum through different data processing methods after the sensor signal is collected.
目前的基于光谱芯片的光谱成像技术主要是基于光谱仪加上机械扫描结构实现的,该方案需要的机械扫描的精度控制以及扫描步长之间的权衡会带来成本的上升和时间维度分辨率的降低。除此之外,利用滤光片和光探测 阵列实现的光谱仪因为其天然的二维感光结构优势,可以通过光谱仪的阵列化直接实现光谱成像,该方案在成本、时间分辨率、集成度上有不可替代的优势。The current spectral imaging technology based on spectral chips is mainly based on a spectrometer plus a mechanical scanning structure. The precision control of the mechanical scanning and the trade-off between the scanning step size required by this solution will increase the cost and reduce the resolution of the time dimension. reduce. In addition, the spectrometer realized by the use of filters and photodetection arrays can directly realize spectral imaging through the array of spectrometers because of its natural two-dimensional photosensitive structure. Alternative advantages.
然而,基于滤光片和光探测阵列光谱仪阵列化实现的光谱成像具有几方面的问题。However, spectral imaging based on the arraying of optical filters and light detection array spectrometers has several problems.
首先,对于光强分布的均匀性有一定的要求。该方案进行光谱恢复的同时需要光谱像素内的光强分布尽量均匀,但在实际应用中,很难避免空间上光强有较大变化,需要通过相应的方法进行规避。First, there are certain requirements for the uniformity of the light intensity distribution. While performing spectral recovery in this scheme, the light intensity distribution in the spectral pixels needs to be as uniform as possible. However, in practical applications, it is difficult to avoid large changes in light intensity in space, which need to be avoided by corresponding methods.
其次,对于光谱成像应用,多个光调制单元构成一个光谱像素,具有光谱测量功能,由于一个光谱像素要占据多个物理像素(像素点),导致了图像空间分辨率降低,需要通过相应的方法在保证频谱分辨率的同时提高空间分辨率。Secondly, for spectral imaging applications, multiple light modulation units form a spectral pixel, which has the function of spectral measurement. Since a spectral pixel occupies multiple physical pixels (pixels), the spatial resolution of the image is reduced, and corresponding methods need to be used. Improve spatial resolution while maintaining spectral resolution.
第三,对于光谱成像应用,成像物体边缘处光经变化,信噪比低。导致了在边缘处光谱恢复的效果差。Third, for spectral imaging applications, the light path changes at the edge of the imaged object, and the signal-to-noise ratio is low. This results in poor spectral recovery at the edge.
第四,对于不同的应用场景,光谱分辨率和空间分辨率的需求不同,用固定的波长采样间隔无法满足要求。Fourth, for different application scenarios, the requirements for spectral resolution and spatial resolution are different, and a fixed wavelength sampling interval cannot meet the requirements.
因此,期望提供改进的基于光谱芯片的图像传感方案和光谱恢复方案Therefore, it is desirable to provide improved spectral chip-based image sensing schemes and spectral recovery schemes
发明内容SUMMARY OF THE INVENTION
为了解决上述技术问题,提出了本申请。本申请的实施例一方面提供了一种基于光谱芯片的图像传感方法、图像传感装置和电子设备,其能够通过确定待传感的图像参数所对应的物理像素的响应函数,来基于该物理像素的光强读数计算该图像参数,从而提升图像传感效果。In order to solve the above technical problems, the present application is made. Embodiments of the present application provide, on the one hand, an image sensing method based on a spectrum chip, an image sensing device, and an electronic device, which can determine the response function of the physical pixel corresponding to the image parameter to be sensed, This image parameter is calculated from the light intensity readings of the physical pixels to improve image sensing.
另一方面,本申请的实施例提供了一种基于光谱芯片的光谱恢复方法、光谱恢复装置和电子设备,其能够通过灵活调整每个光谱像素所对应的物理像素点的个数和空间分布来进行光谱恢复,从而提升光谱恢复效果。On the other hand, the embodiments of the present application provide a spectrum chip-based spectrum recovery method, spectrum recovery device, and electronic device, which can flexibly adjust the number and spatial distribution of physical pixel points corresponding to each spectrum pixel. Perform spectral restoration to enhance the spectral restoration effect.
根据本申请的一方面,提供了一种基于光谱芯片的图像传感方法,包括:确定待传感的第一图像参数;基于所述待传感的第一图像参数确定所述光谱芯片的图像传感器的第一组多个物理像素;确定所述第一组多个物理像素的响应函数并测量所述第一组多个物理像素中的每个物理像素的光强读数;以及,基于所述光强读数和所述响应函数计算所述待传感的第一图像参数。According to an aspect of the present application, an image sensing method based on a spectrum chip is provided, comprising: determining a first image parameter to be sensed; determining an image of the spectrum chip based on the first image parameter to be sensed a first plurality of physical pixels of a sensor; determining a response function of the first plurality of physical pixels and measuring a light intensity reading for each of the first plurality of physical pixels; and, based on the The light intensity reading and the response function calculate the first image parameter to be sensed.
在上述基于光谱芯片的图像传感方法中,基于所述待传感的第一图像参数确定用于图像传感的所述光谱芯片的第一组多个物理像素包括:根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素。In the above image sensing method based on a spectrum chip, determining a first group of multiple physical pixels of the spectrum chip for image sensing based on the first image parameter to be sensed includes: At least one of spatial resolution, image signal-to-noise ratio, and spectral accuracy determines the first plurality of physical pixels.
在上述基于光谱芯片的图像传感方法中,所述第一组多个物理像素为所述图像传感器上的2×2、3×3、5×5、10×10物理像素方阵中的至少一个。In the above-mentioned image sensing method based on a spectrum chip, the first group of multiple physical pixels is at least one of 2×2, 3×3, 5×5, and 10×10 physical pixel square arrays on the image sensor. One.
在上述基于光谱芯片的图像传感方法中,所述第一组多个物理像素为所述图像传感器上的预定形状的多个物理像素。In the above-mentioned image sensing method based on a spectrum chip, the first group of multiple physical pixels are multiple physical pixels of a predetermined shape on the image sensor.
在上述基于光谱芯片的图像传感方法中,根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:响应于环境光的强度为第一强度,确定第一数目的物理像素方阵;以及,响应于环境光的强度为小于所述第一强度的第二强度,确定第二数目的物理像素方阵,所述第二数目大于所述第一数目。In the above image sensing method based on a spectral chip, determining the first group of multiple physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor includes: responding to ambient light The intensity is a first intensity, determining a first number of physical pixel squares; and, in response to the intensity of the ambient light being a second intensity less than the first intensity, determining a second number of physical pixel squares, the second The number is greater than the first number.
在上述基于光谱芯片的图像传感方法中,根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:响应于所述图像传感器获取的图像中的第一亮度或者第一信噪比的第一区域,确定第一数目的物理像素方阵;以及,响应于所述图像传感器获取的图像中的小于第一亮度的第二亮度或者小于第一信噪比的第二信噪比的第二区域,确定第二数目的物理像素方阵,所述第二数目大于第一数目。In the above-mentioned image sensing method based on a spectral chip, determining the first plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor includes: responding to the image a first area of a first brightness or a first signal-to-noise ratio in the image acquired by the sensor, determining a first number of physical pixel squares; and, in response to a second area of the image acquired by the image sensor that is less than the first brightness The brightness or the second region of the second signal-to-noise ratio smaller than the first signal-to-noise ratio determines a second number of physical pixel squares, the second number being greater than the first number.
在上述基于光谱芯片的图像传感方法中,根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:响应于所述图像传感器的第一空间分辨率和/或第一光谱精度,确定第一数目的物理像素方阵;以及,响应于所述图像传感器的小于第一空间分辨率的第二空间分辨率和/或大于第一光谱精度的第二光谱精度,确定第二数目的物理像素方阵,所述第二数目大于第一数目。In the above-mentioned image sensing method based on a spectral chip, determining the first plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor includes: responding to the image a first spatial resolution and/or a first spectral accuracy of the sensor, determining a first number of physical pixel squares; and, in response to a second spatial resolution of the image sensor less than the first spatial resolution and/or greater than The second spectral precision of the first spectral precision determines a second number of physical pixel squares, the second number being greater than the first number.
在上述基于光谱芯片的图像传感方法中,至少一所述第一组多个物理像素用以还原图像。In the above-mentioned image sensing method based on a spectrum chip, at least one of the first plurality of physical pixels is used to restore an image.
在上述基于光谱芯片的图像传感方法中,进一步包括:确定待传感的第二图像参数;基于所述待传感的第二图像参数确定所述光谱芯片的图像传感器的第二组多个物理像素;确定所述第二组多个物理像素的响应函数并确定所述第二组多个物理像素中的每个物理像素的光强读数;以及,基于所述光 强读数和所述响应函数计算所述待传感的第二图像参数。In the above image sensing method based on a spectrum chip, the method further includes: determining a second image parameter to be sensed; determining a second group of multiple image sensors of the spectrum chip based on the second image parameter to be sensed a physical pixel; determining a response function for the second plurality of physical pixels and determining a light intensity reading for each of the second plurality of physical pixels; and, based on the light intensity reading and the response The function calculates the second image parameter to be sensed.
在上述基于光谱芯片的图像传感方法中,确定所述第二组多个物理像素中的每个物理像素的光强读数包括:基于所述第二组多个物理像素与所述第一组多个物理像素的对应关系,获取所述第二组多个物理像素中与所述第一组多个物理像素对应的物理像素的光强读数。In the above-mentioned spectral chip-based image sensing method, determining the light intensity reading of each physical pixel in the second group of physical pixels includes: based on the second group of physical pixels and the first group of physical pixels The correspondence between the plurality of physical pixels is obtained, and the light intensity readings of the physical pixels corresponding to the first group of the plurality of physical pixels in the second group of the plurality of physical pixels are obtained.
在上述基于光谱芯片的图像传感方法中,所述第一图像参数为色彩数据,所述第二图像参数为色温数据。In the above-mentioned image sensing method based on a spectral chip, the first image parameter is color data, and the second image parameter is color temperature data.
在上述基于光谱芯片的图像传感方法中,所述第一组多个物理像素为第一数目的物理像素方阵,所述第二组多个物理像素为第二数目的物理像素方阵,所述第二数目大于所述第一数目。In the above-mentioned image sensing method based on a spectrum chip, the first group of multiple physical pixels is a first number of physical pixel square matrices, the second group of multiple physical pixels is a second number of physical pixel square arrays, The second number is greater than the first number.
在上述基于光谱芯片的图像传感方法中,确定所述第二组多个物理像素的响应函数包括:基于所述待传感的色温数据确定待传感色温数据的所述图像传感器的第一区域和第二区域;以及,分别确定所述第一区域和所述第二区域的多个物理像素的响应函数以获得所述第二组多个物理像素的响应函数。In the above-mentioned spectral chip-based image sensing method, determining the response function of the second group of multiple physical pixels includes: determining, based on the color temperature data to be sensed, a first image sensor of the image sensor of the color temperature data to be sensed an area and a second area; and, determining response functions of a plurality of physical pixels of the first area and the second area, respectively, to obtain response functions of the second plurality of physical pixels.
在上述基于光谱芯片的图像传感方法中,所述光谱芯片是用于计算光谱装置的接收350到1000纳米范围波段的光的光谱芯片。In the above-mentioned image sensing method based on a spectrum chip, the spectrum chip is a spectrum chip for receiving light in a wavelength band of 350 to 1000 nanometers of a computing spectrum device.
根据本申请的另一方面,提供了一种基于光谱芯片的图像传感装置,包括:参数确定单元,用于确定待传感的第一图像参数;像素确定单元,用于基于所述待传感的第一图像参数确定所述光谱芯片的图像传感器的第一组多个物理像素;数据获取单元,用于确定所述第一组多个物理像素的响应函数并测量所述第一组多个物理像素中的每个物理像素的光强读数;以及,参数计算单元,用于基于所述光强读数和所述响应函数计算所述待传感的第一图像参数。According to another aspect of the present application, an image sensing device based on a spectrum chip is provided, comprising: a parameter determination unit for determining a first image parameter to be sensed; a pixel determination unit for The first image parameter sensed to determine a first group of multiple physical pixels of the image sensor of the spectrum chip; a data acquisition unit for determining the response function of the first group of multiple physical pixels and measuring the first group of multiple physical pixels a light intensity reading of each of the physical pixels; and a parameter calculation unit for calculating the first image parameter to be sensed based on the light intensity reading and the response function.
根据本申请的再一方面,提供了一种光谱芯片的光谱恢复方法,包括:基于预定条件确定所述光谱芯片上的预定像素点;以及,使用所述光谱芯片上的所述预定像素点进行光谱恢复。According to yet another aspect of the present application, a spectrum recovery method for a spectrum chip is provided, comprising: determining a predetermined pixel point on the spectrum chip based on a predetermined condition; Spectral recovery.
在上述基于光谱芯片的光谱恢复方法中,基于确定所述光谱芯片上的预定像素点包括:基于亮度分布以及光谱分辨率需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点。In the above spectrum chip-based spectrum recovery method, determining the predetermined pixel points on the spectrum chip includes: determining the predetermined pixel on the spectrum chip based on at least one of luminance distribution and spectral resolution requirements and spatial resolution requirements point.
在上述基于光谱芯片的光谱恢复方法中,基于亮度分布以及光谱分辨率 需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点包括:获取所述光谱芯片的图像传感器输出的图像数据;对所述图像数据进行边缘检测;以及,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点。In the above spectrum chip-based spectrum recovery method, determining the predetermined pixel point on the spectrum chip based on at least one of brightness distribution and spectral resolution requirements and spatial resolution requirements includes: acquiring an output of an image sensor of the spectrum chip. image data; performing edge detection on the image data; and determining predetermined pixel points on the spectrum chip based on the edge detection result of the image data.
在上述基于光谱芯片的光谱恢复方法中,对所述图像数据进行边缘检测包括:对所述图像数据进行均衡;对均衡后的所述图像数据进行降噪;以及,对降噪后的所述图像数据进行边缘检测。In the above spectrum chip-based spectral restoration method, performing edge detection on the image data includes: equalizing the image data; denoising the equalized image data; Image data for edge detection.
在上述基于光谱芯片的光谱恢复方法中,对均衡后的所述图像数据进行降噪包括:根据图像分辨率和/或所述图像传感器对应的滤光结构的特性,选择预定大小的滤波核对所述均衡后的图像数据进行滤波。In the above spectrum chip-based spectrum restoration method, performing noise reduction on the equalized image data includes: selecting a filter of a predetermined size according to the image resolution and/or the characteristics of the filter structure corresponding to the image sensor, The equalized image data is filtered.
在上述基于光谱芯片的光谱恢复方法中,对降噪后的所述图像数据进行边缘检测包括:使用边缘检测算子检测所述降噪后的图像数据中的边缘区域;以及,对所述边缘区域进行膨胀操作。In the above spectrum chip-based spectral restoration method, performing edge detection on the denoised image data includes: using an edge detection operator to detect an edge region in the denoised image data; The region is expanded.
在上述基于光谱芯片的光谱恢复方法中,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点包括:基于所述图像数据的边缘检测结果,确定所述光谱芯片上的具有高于预定阈值的光强一致性的预定像素点,所述预定像素点是基于像素中心点的邻近且连通的预定数目的像素点。In the above spectrum chip-based spectrum recovery method, determining the predetermined pixel point on the spectrum chip based on the edge detection result of the image data includes: based on the edge detection result of the image data, determining that the spectrum chip has A predetermined pixel point with a light intensity consistency higher than a predetermined threshold, the predetermined pixel point is a predetermined number of pixel points that are adjacent and connected based on the pixel center point.
在上述基于光谱芯片的光谱恢复方法中,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点包括:基于所述图像数据的边缘检测结果,确定所述光谱芯片上的具有不同数目的多组预定像素点。In the above spectrum chip-based spectrum recovery method, determining the predetermined pixel point on the spectrum chip based on the edge detection result of the image data includes: based on the edge detection result of the image data, determining that the spectrum chip has Groups of predetermined pixel points with different numbers.
在上述基于光谱芯片的光谱恢复方法中,所述具有不同数目的多组预定像素点包括2×2、3×3、5×5、10×10的物理像素阵列。In the above spectrum chip-based spectrum restoration method, the plurality of groups of predetermined pixel points with different numbers include 2×2, 3×3, 5×5, and 10×10 physical pixel arrays.
在上述基于光谱芯片的光谱恢复方法中,所述预定像素点为所述图像传感器上的预定形状的多个物理像素。In the above spectrum chip-based spectrum recovery method, the predetermined pixel point is a plurality of physical pixels of a predetermined shape on the image sensor.
在上述基于光谱芯片的光谱恢复方法中,基于亮度分布以及光谱分辨率需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点包括:响应于所述光谱分辨率需求大于第一预定阈值,确定大于第一预定数目的所述预定像素点;和/或,响应于所述空间分辨率需求大于第二预定阈值,确定小于第二预定数目的所述预定像素点。In the above spectrum chip-based spectrum recovery method, determining the predetermined pixel points on the spectrum chip based on the luminance distribution and at least one of a spectral resolution requirement and a spatial resolution requirement includes: in response to the spectral resolution requirement being greater than the third A predetermined threshold, determining the predetermined number of pixels greater than a first predetermined number; and/or, in response to the spatial resolution requirement being greater than a second predetermined threshold, determining the predetermined number of pixels less than a second predetermined number.
在上述基于光谱芯片的光谱恢复方法中,使用所述光谱芯片上的所述预定像素点进行光谱恢复包括:使用所述光谱芯片上的所述预定像素点以动态 调整的恢复步长进行光谱恢复。In the above spectrum chip-based spectrum recovery method, using the predetermined pixel points on the spectrum chip to perform spectrum recovery includes: using the predetermined pixel points on the spectrum chip to perform spectrum recovery with a dynamically adjusted recovery step size .
在上述基于光谱芯片的光谱恢复方法中,使用所述光谱芯片上的所述预定像素点进行光谱恢复包括:基于待恢复出的光谱的应用情况,动态调整用于所述光谱恢复的波长采样间隔。In the above spectrum chip-based spectrum recovery method, using the predetermined pixel points on the spectrum chip to perform spectrum recovery includes: dynamically adjusting the wavelength sampling interval used for the spectrum recovery based on the application of the spectrum to be recovered .
在上述基于光谱芯片的光谱恢复方法中,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点包括:基于波长采样间隔确定所述光谱芯片上的预定像素点的数目。In the above spectrum chip-based spectrum restoration method, determining the predetermined pixel points on the spectrum chip based on the edge detection result of the image data includes: determining the number of predetermined pixel points on the spectrum chip based on a wavelength sampling interval.
在上述基于光谱芯片的光谱恢复方法中,所述光谱芯片是用于计算光谱仪的接收350到1000纳米范围波段的光的光谱芯片。In the above-mentioned spectrum recovery method based on a spectrum chip, the spectrum chip is a spectrum chip used for a calculation spectrometer to receive light in a wavelength band of 350 to 1000 nanometers.
根据本申请的又一方面,提供了一种光谱芯片的光谱恢复装置,包括:像素确定单元,用于基于预定条件确定所述光谱芯片上的预定像素点;以及,光谱恢复单元,用于使用所述光谱芯片上的所述预定像素点进行光谱恢复。According to yet another aspect of the present application, there is provided a spectrum recovery device for a spectrum chip, comprising: a pixel determination unit for determining a predetermined pixel point on the spectrum chip based on a predetermined condition; and a spectrum recovery unit for using Spectral recovery is performed on the predetermined pixel points on the spectrum chip.
根据本申请的再一方面,提供了一种电子设备,包括:处理器;以及,存储器,在所述存储器中存储有计算机程序指令,所述计算机程序指令在所述处理器运行时使得所述处理器执行如上所述的基于光谱芯片的图像传感方法和基于光谱芯片的光谱恢复方法。According to yet another aspect of the present application, there is provided an electronic device, comprising: a processor; and a memory, in which computer program instructions are stored, the computer program instructions cause the processor to run when the processor runs The processor executes the spectral chip-based image sensing method and the spectral chip-based spectral recovery method as described above.
根据本申请的又一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序指令,当所述计算机程序指令被计算装置执行时,可操作来执行如上所述的基于光谱芯片的图像传感方法和基于光谱芯片的光谱恢复方法。According to yet another aspect of the present application, a computer-readable storage medium is provided, and computer program instructions are stored thereon, and when the computer program instructions are executed by a computing device, the computer program instructions are operable to execute the above The image sensing method based on the spectrum chip and the spectrum recovery method based on the spectrum chip are described.
本申请提供的基于光谱芯片的图像传感方法、图像传感装置和电子设备,能够利用光谱芯片的宽谱滤光结构,根据该宽谱滤光结构确定待传感的图像参数所对应的物理像素的响应函数,并基于该物理像素的光强读数计算该图像参数,从而提升了图像传感的信噪比、色彩与白平衡等效果。The spectral chip-based image sensing method, image sensing device and electronic device provided by the present application can utilize the broad-spectrum filter structure of the spectrum chip to determine the physical properties corresponding to the image parameters to be sensed according to the broad-spectrum filter structure. The response function of the pixel is calculated, and the image parameter is calculated based on the light intensity reading of the physical pixel, thereby improving the signal-to-noise ratio, color and white balance of image sensing.
并且,本申请提供的基于光谱芯片的图像传感方法、图像传感装置和电子设备,能够利用光谱芯片的可重构特性,针对不同情况对图像传感的信噪比、色彩与白平衡等效果进行针对性优化,从而提升了图像传感效果。In addition, the spectral chip-based image sensing method, image sensing device, and electronic equipment provided by the present application can utilize the reconfigurable properties of the spectral chip to detect the signal-to-noise ratio, color, and white balance of image sensing in different situations. The effect is optimized in a targeted manner, thereby improving the image sensing effect.
此外,本申请提供的基于光谱芯片的光谱恢复方法、光谱恢复装置和电子设备,能够根据图像传感器输出的图像数据来灵活调整每个光谱像素所对应的物理像素点的个数和空间分布,从而减少空间光强不均匀性引入的恢复误差。In addition, the spectral chip-based spectral recovery method, spectral recovery device and electronic device provided by the present application can flexibly adjust the number and spatial distribution of physical pixel points corresponding to each spectral pixel according to the image data output by the image sensor, thereby Reduce the recovery error introduced by spatial light intensity inhomogeneity.
另外,本申请提供的基于光谱芯片的光谱恢复方法、光谱恢复装置和电子设备通过调整每个光谱像素所对应的物理像素点的个数和空间分布,可以提升光谱成像的空间分辨率。In addition, the spectral chip-based spectral recovery method, spectral recovery device and electronic device provided in this application can improve the spatial resolution of spectral imaging by adjusting the number and spatial distribution of physical pixel points corresponding to each spectral pixel.
并且,本申请提供的基于光谱芯片的光谱恢复方法、光谱恢复装置和电子设备通过对图像数据进行边缘检测来提高光谱图像的边缘信噪比,可以有利地应用于基于光谱图像的边缘检测和物质识别。In addition, the spectral chip-based spectral recovery method, spectral recovery device and electronic device provided by the present application improve the edge signal-to-noise ratio of spectral images by performing edge detection on image data, and can be advantageously applied to spectral image-based edge detection and substance detection. identify.
附图说明Description of drawings
通过阅读下文优选的具体实施方式中的详细描述,本申请各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。说明书附图仅用于示出优选实施方式的目的,而并不认为是对本申请的限制。显而易见地,下面描述的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。而且在整个附图中,用相同的附图标记表示相同的部件。Various other advantages and benefits of the present application will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The accompanying drawings are for the purpose of illustrating the preferred embodiments only, and are not to be considered as limitations of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort. Also, the same components are denoted by the same reference numerals throughout the drawings.
图1图示了根据本申请实施例的光谱芯片的示例性配置图;FIG. 1 illustrates an exemplary configuration diagram of a spectrum chip according to an embodiment of the present application;
图2图示了根据本申请实施例的基于光谱芯片的图像传感方法的流程图;FIG. 2 illustrates a flowchart of an image sensing method based on a spectrum chip according to an embodiment of the present application;
图3图示了根据本申请实施例的基于光谱芯片的图像传感方法中确定不同物理像素数目的示意图;FIG. 3 illustrates a schematic diagram of determining the number of different physical pixels in a spectral chip-based image sensing method according to an embodiment of the present application;
图4图示了根据本申请实施例的基于光谱芯片的图像传感方法同时用于彩色还原和色温测量的示意图;4 illustrates a schematic diagram of the simultaneous use of a spectral chip-based image sensing method for color reproduction and color temperature measurement according to an embodiment of the present application;
图5图示了根据本申请实施例的基于光谱芯片的图像传感方法的该具体示例的流程图;5 illustrates a flowchart of the specific example of the spectroscopic chip-based image sensing method according to an embodiment of the present application;
图6图示了根据本申请实施例的基于光谱芯片的光谱恢复方法的流程图;FIG. 6 illustrates a flowchart of a spectrum recovery method based on a spectrum chip according to an embodiment of the present application;
图7图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中选择用于恢复光谱的像素点的示例;FIG. 7 illustrates an example of pixel points selected for spectrum restoration in a spectrum chip-based spectrum restoration method according to an embodiment of the present application;
图8图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中的可重构的方式的示例;8 illustrates an example of a reconfigurable manner in a spectral chip-based spectral recovery method according to an embodiment of the present application;
图9图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中的图像均衡前后图像的变化示意图;9 illustrates a schematic diagram of image changes before and after image equalization in the spectral chip-based spectral restoration method according to an embodiment of the present application;
图10图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中的降噪处理后的图像的示意图;10 illustrates a schematic diagram of an image after noise reduction in a spectral chip-based spectral restoration method according to an embodiment of the present application;
图11图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中的使用Canny边缘检测算法得到的边缘检测结果;11 illustrates an edge detection result obtained by using the Canny edge detection algorithm in the spectrum chip-based spectrum recovery method according to an embodiment of the present application;
图12图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中利用边缘信息选择用于恢复光谱的像素点的示例;12 illustrates an example of using edge information to select pixel points for spectrum restoration in a spectrum chip-based spectrum restoration method according to an embodiment of the present application;
图13A到图13C图示了在如图12所示的示例中利用边缘信息选择的用于恢复光谱的不同形状的像素点的示例;Figures 13A to 13C illustrate examples of pixel points of different shapes selected using edge information to restore the spectrum in the example shown in Figure 12;
图14图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中使用步长为3进行光谱恢复的示例;14 illustrates an example of spectral recovery using a step size of 3 in a spectral chip-based spectral recovery method according to an embodiment of the present application;
图15图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中使用步长为1进行光谱恢复的示例;15 illustrates an example of spectral recovery using a step size of 1 in a spectral chip-based spectral recovery method according to an embodiment of the present application;
图16图示了根据本申请实施例的基于光谱芯片的图像传感装置的框图;16 illustrates a block diagram of a spectral chip-based image sensing device according to an embodiment of the present application;
图17图示了根据本申请实施例的基于光谱芯片的光谱恢复装置的框图;17 illustrates a block diagram of a spectral chip-based spectral recovery apparatus according to an embodiment of the present application;
图18图示了根据本申请实施例的电子设备的框图。18 illustrates a block diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面,将参考附图详细地描述根据本申请的示例实施例。显然,所描述的实施例仅仅是本申请的一部分实施例,而不是本申请的全部实施例,应理解,本申请不受这里描述的示例实施例的限制。Hereinafter, exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited by the example embodiments described herein.
示例性光谱芯片Exemplary Spectroscopy Chip
图1图示了根据本申请实施例的光谱芯片的示例性配置图。FIG. 1 illustrates an exemplary configuration diagram of a spectrum chip according to an embodiment of the present application.
根据本申请实施例的光谱芯片一般是应用于计算光谱装置的光谱芯片。所述计算光谱装置可以是光谱仪也可以是光谱成像装置,以光谱仪为例,计算光谱仪与传统光谱仪之间最显著的区别在于滤光的不同。在传统的光谱仪中,用于进行波长选择的滤光片为带通滤光片。光谱分辨率越高,就必须使用通带越窄和越多的滤光片,这增加了整个系统的体积和复杂度。同时,当光谱响应曲线变窄时,光通量下降,导致信噪比降低。The spectroscopic chip according to the embodiment of the present application is generally a spectroscopic chip applied to a computing spectrometer device. The computational spectroscopy device may be a spectrometer or a spectral imaging device. Taking a spectrometer as an example, the most significant difference between a computational spectrometer and a traditional spectrometer is the difference in light filtering. In conventional spectrometers, the filters used for wavelength selection are bandpass filters. The higher the spectral resolution, the narrower the passband and the more filters must be used, which increases the size and complexity of the overall system. At the same time, when the spectral response curve is narrowed, the luminous flux decreases, resulting in a lower signal-to-noise ratio.
而对于特定计算光谱仪,每个滤光片一般采用宽谱滤光片,这使得计算光谱仪系统探测到的原始数据与原始光谱差异较大。然而,通过应用计算重建算法,原始光谱可以通过计算恢复。由于宽带滤光片比窄带滤光片有更多的光通过,即光损失的能量较少,因此,这类计算光谱仪可以从较暗的场景 中检测光谱。此外,根据压缩感知理论,可以适当地设计滤光片的光谱曲线来高概率地恢复稀疏光谱,且滤光片的数量远小于期望的光谱通道数(从较低维向量恢复较高维向量),这无疑是非常有利于小型化的。另一方面,通过使用更多数量的滤光片,可以使用正则化算法(由更高维向量获得降噪后的较低维向量)来降低噪声,这增加了信噪比并使得整个系统有更高的鲁棒性。For a specific computational spectrometer, each filter generally adopts a broad-spectrum filter, which makes the raw data detected by the computational spectrometer system quite different from the original spectrum. However, by applying a computational reconstruction algorithm, the original spectrum can be recovered computationally. Since broadband filters pass more light, i.e. light loses less energy, than narrowband filters, these types of computational spectrometers can detect spectra from darker scenes. In addition, according to the compressed sensing theory, the spectral curve of the filter can be appropriately designed to recover the sparse spectrum with high probability, and the number of filters is much smaller than the desired number of spectral channels (recovering higher-dimensional vectors from lower-dimensional vectors) , which is undoubtedly very conducive to miniaturization. On the other hand, by using a larger number of filters, a regularization algorithm (a denoised lower dimensional vector is obtained from a higher dimensional vector) can be used to reduce noise, which increases the signal-to-noise ratio and makes the overall system more efficient higher robustness.
相对来讲,传统的光谱仪在设计的时候需要根据需要的波长去设计滤波器,使得特定波长的光可以透过(一般其设计为增强特定波长的入射光投射,而非特定波长波段的入射光无法投射,通过改变纳米盘等结构周期和直径可以控制共振条件,改变可增强投射的入射光中心波长,从而实现滤光特性)。也就是,传统的光谱仪在设计过程中需要重点控制光调制结构的尺寸和位置精度,同时需要想办法提高其特定波长的透过率。而对于计算光谱仪,需要的是可以接收较大范围的波段(例如,350nm至1000nm,甚至还可以接受900nm至2500nm)的光。Relatively speaking, traditional spectrometers need to design filters according to the required wavelengths when designing, so that light of specific wavelengths can pass through (generally, it is designed to enhance the projection of incident light of specific wavelengths, rather than incident light of specific wavelength bands). It is impossible to project, and the resonance conditions can be controlled by changing the structural period and diameter of nanodisks, etc., and the central wavelength of incident light that can enhance the projection can be changed, so as to achieve filter characteristics). That is, the traditional spectrometer needs to focus on controlling the size and positional accuracy of the light modulation structure in the design process, and at the same time, it is necessary to find a way to improve its transmittance of specific wavelengths. For computational spectrometers, what is needed is a wide range of wavelengths (eg, 350nm to 1000nm, and even 900nm to 2500nm).
如图1所示,在根据本申请实施例的光谱芯片中,光学系统为可选的,其可能是透镜组件、匀光组件等光学系统。滤光结构为频域或者波长域上的宽带滤光结构。各处滤光结构不同波长的通光谱不完全相同。滤光结构可以是超表面、光子晶体、纳米柱、多层膜、染料、量子点、MEMS(微机电系统)、FP etalon(FP标准具)、cavity layer(空穴层)、waveguide layer(波导层)、衍射元件等具有滤光特性的结构或者材料。例如,在本申请实施例中,所述滤光结构可以是中国专利CN201921223201.2中的光调制层,As shown in FIG. 1 , in the spectrum chip according to the embodiment of the present application, the optical system is optional, which may be an optical system such as a lens component, a uniform light component, and the like. The filter structure is a broadband filter structure in the frequency domain or the wavelength domain. The pass spectra of different wavelengths of the filter structures are not exactly the same everywhere. Filter structures can be metasurfaces, photonic crystals, nanopillars, multilayer films, dyes, quantum dots, MEMS (Micro-Electro-Mechanical Systems), FP etalon (FP etalon), cavity layer (hole layer), waveguide layer (waveguide). layer), diffractive elements and other structures or materials with filtering properties. For example, in the embodiment of the present application, the filter structure may be the light modulation layer in Chinese patent CN201921223201.2,
继续参考图1,图像传感器(即光探测器阵列)可以是CMOS图像传感器(CIS)、CCD、阵列光探测器等,其材料可以是硅探测器,也可以是InGaAs或其它材料的探测器。另外,可选的数据处理单元可以是MCU、CPU、GPU、FPGA、NPU、ASIC等处理单元,其可以将图像传感器生成的数据导出到外部进行处理。Continuing to refer to FIG. 1 , the image sensor (ie, the photodetector array) can be a CMOS image sensor (CIS), a CCD, an array photodetector, etc., and its material can be a silicon detector, or a detector of InGaAs or other materials. In addition, the optional data processing unit may be a processing unit such as MCU, CPU, GPU, FPGA, NPU, ASIC, etc., which can export the data generated by the image sensor to the outside for processing.
此外,根据本申请实施例的计算光谱装置也可以用调制单元等构成滤光结构,此时光探测器阵列各点具有不同的光谱响应。进一步,直接采取量子点、纳米线等方案均可实现。In addition, the computational spectroscopy apparatus according to the embodiment of the present application may also use a modulation unit or the like to form a filter structure, and in this case, each point of the photodetector array has different spectral responses. Further, directly adopting quantum dots, nanowires and other solutions can be realized.
在本申请实施例中,图像传感器测得光强信息后,传入数据处理单元进行恢复计算。具体地,在一些情况下,可以利用压缩感知的方法,通过选择 合适的测量基和字典,可以仅用少量的图像传感器的像素测得的光强数据来计算得到高精度的光谱数据。该过程具体描述如下:In the embodiment of the present application, after the light intensity information is measured by the image sensor, it is transmitted to the data processing unit for recovery calculation. Specifically, in some cases, the compressed sensing method can be used, and by selecting an appropriate measurement base and dictionary, high-precision spectral data can be calculated only with light intensity data measured by a small number of pixels of the image sensor. The process is described in detail as follows:
将入射光在不同波长λ下的强度信号记为f(λ),滤光结构的透射谱曲线记为T(λ),滤光片上具有m组的滤光结构,每一组透射谱互不相同,又称“结构单元”,整体可记为T i(λ)(i=1,2,3,…,m)。每一组滤光结构下方都有相应的物理像素,探测经过滤光结构调制的光强I i。在本申请的特定实施例中,以一个物理像素对应一组结构单元为例进行说明,但是不限定于此,在其它实施例中,也可以是多个物理像素为一组对应于一组结构单元。因此,不同于物理像素,在根据本申请实施例的计算光谱装置中,将对应于一组结构单元的一个或多个物理像素称为“光谱像素”。进一步,本发明可以用至少一个光谱像素去还原图像。 The intensity signal of the incident light at different wavelengths λ is denoted as f(λ), and the transmission spectrum curve of the filter structure is denoted as T(λ). There are m groups of filter structures on the filter, and each group of transmission spectra is mutually Different, also known as "structural unit", the whole can be recorded as T i (λ) (i=1,2,3,...,m). There are corresponding physical pixels under each group of filter structures to detect the light intensity I i modulated by the filter structures. In a specific embodiment of the present application, a physical pixel corresponding to a group of structural units is taken as an example for description, but it is not limited to this. In other embodiments, a group of multiple physical pixels can also correspond to a group of structures unit. Therefore, unlike physical pixels, in the computational spectroscopy apparatus according to the embodiment of the present application, one or more physical pixels corresponding to a group of structural units are referred to as "spectral pixels". Further, the present invention can use at least one spectral pixel to restore the image.
入射光的频谱分布和光探测器阵列的测量值之间的关系可以由下式表示:The relationship between the spectral distribution of the incident light and the measurements of the photodetector array can be expressed by:
I i=Σ(f(λ)*T i(λ)*R(λ)) I i =Σ(f(λ)*T i (λ)*R(λ))
其中R(λ)为探测器的响应,记为:where R(λ) is the response of the detector, denoted as:
S i(λ)=T i(λ)*R(λ) S i (λ)=T i (λ)*R(λ)
则上式可以扩展为矩阵形式:Then the above formula can be extended to matrix form:
Figure PCTCN2022080327-appb-000001
Figure PCTCN2022080327-appb-000001
其中,I i(i=1,2,3,…,m)是待测光透过宽带滤波器单元后光探测器的响应,分别对应m个光探测器单元的光强测量值,又称m个“物理像素”,其是一个长度为m的向量。S是系统对于不同波长的光响应,由滤波结构透射率和光探测器响应的量子效率两个因素决定。S是矩阵,每一个行向量对应一个宽带滤波器单元对不同波长入射光的响应,这里,对入射光进行离散、均匀的采样,共有n个采样点。S的列数与入射光的采样点数相同。这里,f(λ)即是入射光在不同波长λ的光强,也就是待测量的入射光光谱。 Among them, I i (i=1,2,3,...,m) is the response of the photodetector after the light to be measured passes through the broadband filter unit, corresponding to the light intensity measurement values of m photodetector units respectively, also known as m "physical pixels", which are a vector of length m. S is the light response of the system to different wavelengths, which is determined by two factors, the transmittance of the filter structure and the quantum efficiency of the photodetector response. S is a matrix, and each row vector corresponds to the response of a broadband filter unit to incident light of different wavelengths. Here, the incident light is sampled discretely and uniformly, with a total of n sampling points. The number of columns of S is the same as the number of sampling points of the incident light. Here, f(λ) is the light intensity of the incident light at different wavelengths λ, that is, the incident light spectrum to be measured.
在实际应用中,系统的响应函数S已知,通过探测器的光强读数I,利用算法反推可以得到输入光的频谱f(λ),其过程可以视具体情况采用不同的 数据处理方式,包括:最小二乘、伪逆、均衡、最小二范数、人工神经网络等。因此,对于恢复比较简单的待传感的第一图像参数,比如图像颜色(即RGB三个值)的需求,可以简单地使用特定矩阵乘的方式进行恢复。对于频谱精度要求较高的需求,即上面过程中n的取值较大时,可以采用人工神经网络等算法。可选地,这类方法如果配合压缩感知的处理方法,可以在m显著小于n的情况下仍然在一些情况下获得较高的频谱精度。In practical applications, the response function S of the system is known, and through the light intensity reading I of the detector, the spectrum f(λ) of the input light can be obtained by inverse algorithm. Including: least squares, pseudo-inverse, equalization, least two norm, artificial neural network, etc. Therefore, to restore the relatively simple first image parameters to be sensed, such as the image color (ie, the three values of RGB), a specific matrix multiplication method can be used for restoration. For the requirement of high spectral accuracy, that is, when the value of n in the above process is large, algorithms such as artificial neural network can be used. Optionally, if this kind of method cooperates with the compressed sensing processing method, it can still obtain higher spectral accuracy in some cases when m is significantly smaller than n.
需要注意的是,由上述描述可以推断,当图像传感的第一或第二图像参数为入射光光强f(λ)时,系统响应S以矩阵形式与光强参数相作用。当第一或第二图像参数为其它物理量时,系统响应可以通过其它函数的方式与光强参数作用。本申请主要以响应矩阵为例,对所述图像传感方法进行阐述。It should be noted that it can be inferred from the above description that when the first or second image parameter of image sensing is the incident light intensity f(λ), the system response S acts on the light intensity parameter in a matrix form. When the first or second image parameter is other physical quantities, the system response may act on the light intensity parameter by other functions. This application mainly takes the response matrix as an example to describe the image sensing method.
以上以一个物理像素对应一组结构单元为例,讲述了如何利用m组物理像素(也就是图像传感器上的像素点),以及其对应的m组结构单元(调制层上相同结构界定为结构单元)恢复出一个光谱信息,又称为“光谱像素”。例如,在本申请实施例中,通过恢复出像素的色彩信息,并进行阵列化实现,就可以获得完整的图像信息,从而实现图像传感。值得注意的是,如上所述,在本申请实施例中,也可以是多个物理像素对应一组结构单元。The above takes one physical pixel corresponding to a group of structural units as an example to describe how to use m groups of physical pixels (that is, pixels on the image sensor) and their corresponding m groups of structural units (the same structure on the modulation layer is defined as a structural unit) ) to recover a spectral information, also known as "spectral pixel". For example, in the embodiment of the present application, by recovering the color information of the pixels and implementing them in an array, complete image information can be obtained, thereby realizing image sensing. It should be noted that, as described above, in the embodiment of the present application, a plurality of physical pixels may also correspond to a group of structural units.
也就是,在光谱芯片的领域中,通常会区分物理像素、结构单元和光谱像素。这里,物理像素指的是图像传感器(探测器阵列)上最小的感光单元。结构单元指的是由于光谱芯片需要在图像传感器上采用滤光结构进行滤光,滤光结构的最小单元可以被称为结构单元,一个结构单元下可以覆盖一个或多个物理像素。在本申请实施例的后续描述中,以一个结构单元对应于一个物理像素为例。That is, in the field of spectral chips, a distinction is usually made between physical pixels, structural units, and spectral pixels. Here, a physical pixel refers to the smallest photosensitive unit on an image sensor (detector array). Structural unit refers to the fact that the spectrum chip needs to use a filter structure on the image sensor to filter light. The smallest unit of the filter structure can be called a structural unit, and one structural unit can cover one or more physical pixels. In the subsequent description of the embodiments of the present application, it is taken as an example that one structural unit corresponds to one physical pixel.
示例性图像传感方法Exemplary Image Sensing Method
图2图示了根据本申请实施例的基于光谱芯片的图像传感方法的流程图。FIG. 2 illustrates a flowchart of an image sensing method based on a spectrum chip according to an embodiment of the present application.
如图2所示,根据本申请实施例的基于光谱芯片的图像传感方法包括如下步骤:As shown in FIG. 2 , the image sensing method based on a spectrum chip according to an embodiment of the present application includes the following steps:
步骤S110,确定待传感的第一图像参数。例如,在本申请实施例中,所述待传感的第一图像参数指的是所传感的待测物理量。所述第一图像参数可以是,色彩数据,如RGB色彩信息或者是更精细的光谱(色温)信息,乃至多光谱或高光谱信息等。Step S110, determining the first image parameter to be sensed. For example, in the embodiment of the present application, the first image parameter to be sensed refers to the sensed physical quantity to be measured. The first image parameter may be color data, such as RGB color information or finer spectral (color temperature) information, or even multi-spectral or hyperspectral information.
S120,基于所述待传感的第一图像参数确定所述光谱芯片的图像传感器的第一组多个物理像素。如上所述,基于所述待传感的第一图像参数,确定所述光谱芯片的图像传感器的第一组多个物理像素,即如上所述的m个物理像素。优选地,也可以是通过所述待传感的第一图像参数及空间分辨率或信噪需求去确定所述光谱芯片的图像传感器的第一组多个物理像素。这里,所述第一组多个物理像素的确定过程可以基于多种考虑因素进行,这将在下面进一步详细说明。S120: Determine a first group of multiple physical pixels of the image sensor of the spectrum chip based on the first image parameter to be sensed. As described above, based on the first image parameter to be sensed, a first group of multiple physical pixels of the image sensor of the spectrum chip is determined, that is, m physical pixels as described above. Preferably, the first group of multiple physical pixels of the image sensor of the spectrum chip may also be determined by the first image parameter to be sensed and the spatial resolution or signal-to-noise requirement. Here, the process of determining the first plurality of physical pixels may be performed based on various considerations, which will be described in further detail below.
例如,对于RGB色彩还原,即要恢复RGB色彩数据,上述过程中n取值为3,m也可以取值为3,即确定一组三个物理像素,则上述矩阵可简化为:For example, for RGB color restoration, that is, to restore RGB color data, in the above process, n takes the value of 3, and m can also take the value of 3, that is, to determine a group of three physical pixels, the above matrix can be simplified as:
Figure PCTCN2022080327-appb-000002
Figure PCTCN2022080327-appb-000002
因此,通过测量光强数据I 1,I 2,I 3,并且在已知S矩阵各参数情况下,通过伪逆或均衡等方式就可以快速得到该色彩像素点的RGB值。 Therefore, by measuring the light intensity data I 1 , I 2 , and I 3 , and knowing the parameters of the S matrix, the RGB value of the color pixel can be quickly obtained by means of pseudo-inverse or equalization.
步骤S130,确定所述第一组多个物理像素的响应函数并测量所述第一组多个物理像素中的每个物理像素的光强读数。例如,如上所述的第一组三个物理像素的响应函数S和其中的每个物理像素的光强读数I 1,I 2和I 3。值得一提的是,在所述步骤S130中获得所述光强读数I 1,I 2和I 3,可以用以辅助所述步骤S120中系统自动调整以满足相应的信噪比或空间分辨率的优化要求,举例说明,可以设置一阈值,通过所述光强读数与阈值的关系进行判断,例如所述光强读数的平均数大于阈值则可以理解为光强较强,例如光强读数大于阈值的数量超过75%,理解为光强较强。 Step S130, determining the response function of the first group of multiple physical pixels and measuring the light intensity reading of each physical pixel in the first group of multiple physical pixels. For example, the response function S of the first set of three physical pixels as described above and the light intensity readings I 1 , I 2 and I 3 for each physical pixel therein. It is worth mentioning that the light intensity readings I 1 , I 2 and I 3 obtained in the step S130 can be used to assist the system in the step S120 to automatically adjust to meet the corresponding signal-to-noise ratio or spatial resolution For example, a threshold can be set, and the judgment can be made based on the relationship between the light intensity reading and the threshold. For example, if the average of the light intensity readings is greater than the threshold, it can be understood that the light intensity is strong. For example, the light intensity reading is greater than The number of thresholds exceeds 75%, which is interpreted as a strong light intensity.
并且,本领域技术人员可以理解,在根据本申请实施例的基于光谱芯片的图像传感方法中,步骤S130中确定响应函数和测量光强读数的顺序可以任意设置,例如,也可以测量第一组多个物理像素中的每个物理像素的光强读数,再确定所述第一组多个物理像素的响应函数。另外,这两者也可以同时进行。也就是,在本申请实施例中,在基于所述待传感的第一图像参数确定所述光谱芯片的图像传感器的第一组多个物理像素之后,可以以任意顺序获取所述第一组多个物理像素的光强读数和响应函数。In addition, those skilled in the art can understand that in the image sensing method based on the spectrum chip according to the embodiment of the present application, the order of determining the response function and measuring the light intensity reading in step S130 can be set arbitrarily, for example, the first The light intensity readings of each of the plurality of physical pixels are grouped, and the response function of the first group of the plurality of physical pixels is determined. Alternatively, both can be performed simultaneously. That is, in this embodiment of the present application, after the first group of multiple physical pixels of the image sensor of the spectrum chip is determined based on the first image parameter to be sensed, the first group may be acquired in any order. Light intensity readings and response functions for multiple physical pixels.
步骤S140,基于所述光强读数和所述响应函数计算所述待传感的第一图像参数。例如,如上所述的用于进行色彩还原的三个物理像素的RGB色彩 数据。Step S140, calculating the first image parameter to be sensed based on the light intensity reading and the response function. For example, the RGB color data of three physical pixels used for color reproduction as described above.
因此,根据本申请实施例的基于光谱芯片的图像传感方法能够利用光谱芯片的宽谱滤光结构,也就是,光谱芯片的宽谱滤光结构在通光效率要显著优于现有的图像传感器的滤光片阵列,比如拜耳滤光片阵列,而在色彩还原以及空间分辨率上,则与现有的图像传感器的滤光片阵列结构相当。因此,根据本申请实施例的基于光谱芯片的图像传感方法在暗光环境下的图像传感中具有显著优势。Therefore, the image sensing method based on the spectrum chip according to the embodiment of the present application can utilize the broad-spectrum filter structure of the spectrum chip, that is, the light-passing efficiency of the broad-spectrum filter structure of the spectrum chip is significantly better than that of the existing image The filter array of the sensor, such as the Bayer filter array, is comparable to the filter array structure of the existing image sensor in terms of color reproduction and spatial resolution. Therefore, the image sensing method based on the spectral chip according to the embodiment of the present application has significant advantages in image sensing in a dark light environment.
另外,在根据本申请实施例的基于光谱芯片的图像传感方法中,由于光谱芯片的系统具有可重构特性,可重构特性指的是根据需求对一组多个物理像素进行动态调整,即可以针对不同环境情况进行动态调整,以及在同一照片中不同区域进行动态调整,以获取最优的图像效果。In addition, in the image sensing method based on the spectrum chip according to the embodiment of the present application, since the system of the spectrum chip has reconfigurable characteristics, the reconfigurable characteristics refer to dynamically adjusting a group of multiple physical pixels according to requirements, That is, it can be dynamically adjusted according to different environmental conditions, and can be dynamically adjusted in different areas in the same photo to obtain the best image effect.
也就是,在一个物理像素点对应一个单元结构的基础下,选取多少个物理像素点作为一组数据来进行一个光谱像素的恢复,在其它实施例中,也可以实施为选取多少个单元结构作为一组数据进行一个光谱像素的恢复,即m的取值大小,影响了传感器的空间分辨率、图像信噪比以及光谱精度。采用可重构的方式可以在不同情况下根据环境情况对m的取值进行动态调整,以获取最优图像效果。That is, on the basis that a physical pixel corresponds to a unit structure, how many physical pixels are selected as a set of data to restore a spectral pixel, in other embodiments, it can also be implemented as how many unit structures are selected as A set of data is restored for one spectral pixel, that is, the value of m, which affects the spatial resolution of the sensor, the image signal-to-noise ratio, and the spectral accuracy. In a reconfigurable way, the value of m can be dynamically adjusted according to the environmental conditions in different situations, so as to obtain the optimal image effect.
图3图示了根据本申请实施例的基于光谱芯片的图像传感方法中确定不同物理像素数目的示意图。如图3所示,示出了一个10×10的物理像素方阵,其中每个物理像素所对应的滤光结构的透射谱均不相同(这可以使得相关度较低)。具体地,如上所述的可重构特性表现为,在实际使用过程中,可以根据需要采用2×2,3×3,5×5,10×10等规模的物理像素数量(即m取值)作为一组数据进行处理,生成一个光谱像素。值得一提的是,本发明以物理像素与结构单元一对一的关系为例,实际中也可以是多个物理像素对应一组结构单元,当多个物理像素对应一组结构单元时,可以理解为是对结构单元的可重构,即所述多个物理像素是由结构单元确定,例如2×2可理解为4个结构单元构成一组多个物理像素。FIG. 3 illustrates a schematic diagram of determining the number of different physical pixels in a spectral chip-based image sensing method according to an embodiment of the present application. As shown in FIG. 3 , a 10×10 square matrix of physical pixels is shown, wherein the transmission spectra of the filter structures corresponding to each physical pixel are different (this can make the correlation lower). Specifically, the above-mentioned reconfigurable characteristics are shown in that, in the actual use process, the number of physical pixels in the scale of 2×2, 3×3, 5×5, 10×10, etc. can be used as needed (that is, the value of m ) are processed as a set of data to generate a spectral pixel. It is worth mentioning that the present invention takes the one-to-one relationship between physical pixels and structural units as an example. In practice, it can also be that multiple physical pixels correspond to a group of structural units. When multiple physical pixels correspond to a group of structural units, you can It is understood that the structural unit can be reconstructed, that is, the multiple physical pixels are determined by the structural unit. For example, 2×2 can be understood as four structural units forming a group of multiple physical pixels.
具体而言,在环境较暗时,可以采用更多物理像素作为一组数据进行处理,举例大于等于8×8的物理像素点作为一个光谱像素,从而提升图像信噪比。Specifically, when the environment is dark, more physical pixels can be used as a set of data for processing. For example, physical pixels greater than or equal to 8×8 are used as a spectral pixel, thereby improving the image signal-to-noise ratio.
而在环境光强较强时,则可以采用更少的像素点作为一组数据进行处理, 比如小于等于3×3个物理像素点构成一个光谱像素,优选地为2×2个物理像素点构成一个光谱像素,从而提升空间分辨率。When the ambient light intensity is strong, fewer pixels can be used as a set of data for processing, such as less than or equal to 3×3 physical pixels to form a spectral pixel, preferably 2×2 physical pixels. one spectral pixel, thereby increasing the spatial resolution.
进一步,在其它实施例中,可以在同一幅图像中选择区域进行动态调节,将图像中较暗区域的m取值设高,将图像中较亮的部分的m取值设低,以达到最优效果。也就是,在一个图像中可能存在不同规格的光谱像素。Further, in other embodiments, an area can be selected for dynamic adjustment in the same image, the value of m in the darker area in the image is set high, and the value of m in the brighter part in the image is set low, so as to achieve the maximum value of m. Excellent effect. That is, there may be spectral pixels of different sizes in an image.
以图3为例,在10×10像素方阵中采用可重构方式,分别选取不同数量的物理像素(2×2,3×3,5×5)作为一组多个物理像素来恢复光谱像素。同样以RGB数据为例,当选取2×2像素时,基于2×2像素的光强数据,结合响应函数,可以在该方阵范围内获得25个色彩(光谱)像素的RGB色彩数据,从而进行色彩恢复。而当选取5×5像素时,基于5×5像素的光强数据,结合响应函数,可以在该方阵范围内获得4个色彩(光谱)像素的RGB色彩数据。两者相比较,选取2×2像素作为一组多个物理像素时可获得更高的空间分辨率,而选取5×5像素作为一组多个物理像素时可获得更高的信噪比效果。可以在不同情况下依照需求进行动态选择。Taking Figure 3 as an example, a reconfigurable method is used in a 10×10 pixel square matrix, and different numbers of physical pixels (2×2, 3×3, 5×5) are selected as a group of multiple physical pixels to restore the spectrum. pixel. Also taking RGB data as an example, when 2×2 pixels are selected, based on the light intensity data of 2×2 pixels, combined with the response function, the RGB color data of 25 color (spectrum) pixels can be obtained within the square matrix range, thus Perform color recovery. When 5×5 pixels are selected, based on the light intensity data of 5×5 pixels, combined with the response function, the RGB color data of 4 color (spectrum) pixels can be obtained within the range of the square matrix. Comparing the two, a higher spatial resolution can be obtained when 2×2 pixels are selected as a group of multiple physical pixels, and a higher signal-to-noise ratio can be obtained when 5×5 pixels are selected as a group of multiple physical pixels. . Dynamic selection can be made according to needs in different situations.
并且,值得注意的是,在根据本申请实施例的基于光谱芯片的图像传感方法中,据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素既可以由系统本身基于默认设置或者实际需求来自动调整,也可以由用户来根据自身需求手动调整。And, it is worth noting that, in the image sensing method based on the spectral chip according to the embodiment of the present application, the first image sensor is determined according to at least one of the spatial resolution of the image sensor, the image signal-to-noise ratio and the spectral accuracy. The group of multiple physical pixels can be automatically adjusted by the system itself based on default settings or actual needs, or manually adjusted by the user according to their own needs.
因此,在根据本申请实施例的基于光谱芯片的图像传感方法中,基于所述待传感的第一图像参数确定用于图像传感的所述光谱芯片的第一组多个物理像素包括:根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素。Therefore, in the image sensing method based on a spectrum chip according to an embodiment of the present application, determining a first group of a plurality of physical pixels of the spectrum chip for image sensing based on the first image parameter to be sensed includes: : determining the first plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor.
并且,在上述基于光谱芯片的图像传感方法中,所述第一组多个物理像素可以为所述图像传感器上的2×2、3×3、5×5、10×10物理像素方阵中的至少一个,也可以为长方形的方阵或者不规则的非方阵组合。也就是,所述第一组多个物理像素可以为所述图像传感器上的预定形状的多个物理像素。In addition, in the above-mentioned image sensing method based on a spectrum chip, the first group of multiple physical pixels may be 2×2, 3×3, 5×5, 10×10 physical pixel square arrays on the image sensor At least one of them may also be a rectangular square matrix or a combination of irregular non-square matrices. That is, the first plurality of physical pixels may be a plurality of physical pixels of a predetermined shape on the image sensor.
此外,在上述基于光谱芯片的图像传感方法中,根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:响应于环境光的强度为第一强度,确定第一数目的物理像素方阵;以及,响应于环境光的强度为小于所述第一强度的第二强度,确定第二数目 的物理像素方阵,所述第二数目大于所述第一数目。In addition, in the above-mentioned image sensing method based on a spectral chip, determining the first group of the plurality of physical pixels according to at least one of the spatial resolution, the image signal-to-noise ratio and the spectral accuracy of the image sensor includes: responding to an environment The intensity of the light is a first intensity, determining a first number of physical pixel squares; and, in response to the intensity of the ambient light being a second intensity less than the first intensity, determining a second number of physical pixel squares, the The second number is greater than the first number.
另外,在上述基于光谱芯片的图像传感方法中,根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:响应于所述图像传感器获取的图像中的第一亮度或者第一信噪比的第一区域,确定第一数目的物理像素方阵;以及,响应于所述图像传感器获取的图像中的小于第一亮度的第二亮度或者小于第一信噪比的第二信噪比的第二区域,确定第二数目的物理像素方阵,所述第二数目大于第一数目。In addition, in the above-mentioned image sensing method based on a spectral chip, determining the first group of the plurality of physical pixels according to at least one of the spatial resolution, the image signal-to-noise ratio and the spectral accuracy of the image sensor includes: responding to the determining the first number of physical pixel squares in the first area of the first brightness or the first signal-to-noise ratio in the image acquired by the image sensor; The second brightness or the second area of the second signal-to-noise ratio smaller than the first signal-to-noise ratio determines a second number of physical pixel squares, the second number being greater than the first number.
以上以根据本申请实施例的基于光谱芯片的图像传感方法用于色彩恢复为例,另外,根据本申请实施例的基于光谱芯片的图像传感方法也可以用于获得其它图像传感参数,例如,根据本申请实施例的基于光谱芯片的图像传感方法可以用于环境色温测量以对图像进行精准白平衡处理。In the above, the image sensing method based on a spectral chip according to the embodiment of the present application is used for color restoration as an example. In addition, the image sensing method based on a spectral chip according to the embodiment of the present application can also be used to obtain other image sensing parameters. For example, the image sensing method based on the spectral chip according to the embodiment of the present application can be used to measure the ambient color temperature to perform precise white balance processing on the image.
本领域技术人员可以理解,彩色还原与色温测量的需求,在上述几个方面差别很大。具体地,彩色还原对于频谱精度要求较低,对空间分辨率要求较高,而色温测量则正好相反,对于空间分辨率要求低,频谱精度要求较高。因此,对于基于非可重构的结构和方法的图像传感方案,两种需求需要设计不同的结构进行满足。而利用本申请实施例的可重构的结构与处理机制,则可以在同一个传感器上实现两个功能,并保证各自需求的效果。Those skilled in the art can understand that the requirements for color reproduction and color temperature measurement are very different in the above-mentioned aspects. Specifically, color reproduction has lower requirements for spectral accuracy and higher spatial resolution, while color temperature measurement is just the opposite, with lower requirements for spatial resolution and higher spectral accuracy. Therefore, for image sensing solutions based on non-reconfigurable structures and methods, two requirements need to be met by designing different structures. However, by using the reconfigurable structure and processing mechanism of the embodiment of the present application, two functions can be implemented on the same sensor, and the effects of respective requirements can be guaranteed.
也就是,在根据本申请实施例的基于光谱芯片的图像传感方法中,根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:响应于所述图像传感器的第一空间分辨率和/或第一光谱精度,确定第一数目的物理像素方阵;以及,响应于所述图像传感器的小于第一空间分辨率的第二空间分辨率和/或大于第一光谱精度的第二光谱精度,确定第二数目的物理像素方阵,所述第二数目大于第一数目。That is, in the spectral chip-based image sensing method according to the embodiment of the present application, the first set of multiple physical properties is determined according to at least one of the spatial resolution of the image sensor, the image signal-to-noise ratio and the spectral accuracy. The pixels include: determining a first number of physical pixel squares in response to a first spatial resolution and/or a first spectral accuracy of the image sensor; and, in response to a first spatial resolution of the image sensor less than the first spatial resolution With a spatial resolution and/or a second spectral precision greater than the first spectral precision, a second number of physical pixel squares is determined, the second number being greater than the first number.
图4图示了根据本申请实施例的基于光谱芯片的图像传感方法同时用于彩色还原和色温测量的示意图。如图4所示,在10×10个物理像素的结构上,采用每2×2个物理像素作为一个恢复RGB色彩的数据组,即总共恢复出5×5=25个像素点的RGB色彩像素。当然,本领域技术人员可以理解,所述RGB色彩数据也可以等效地替换为其它色彩数据,比如XYZ、类RGB色彩数据等。同时,将10×10的所有像素数据作为一组数据进行频谱恢复,得出较为精细的图像频谱信息,进而计算出图像的色温信息并进行白平衡处理。这里,本领域技术人员可以理解,在使用10×10的所有像素的光强数 据时,可以直接使用在进行彩色还原的过程中使用的各个像素的光强数据。FIG. 4 illustrates a schematic diagram of a spectral chip-based image sensing method for simultaneous color reproduction and color temperature measurement according to an embodiment of the present application. As shown in Figure 4, in the structure of 10 × 10 physical pixels, every 2 × 2 physical pixels are used as a data group for restoring RGB color, that is, a total of 5 × 5=25 pixels of RGB color pixels are restored. . Of course, those skilled in the art can understand that the RGB color data can also be equivalently replaced with other color data, such as XYZ, RGB-like color data, and the like. At the same time, all pixel data of 10 × 10 are used as a set of data for spectrum recovery, and relatively fine image spectrum information is obtained, and then the color temperature information of the image is calculated and white balance processing is performed. Here, those skilled in the art can understand that when the light intensity data of all pixels of 10×10 are used, the light intensity data of each pixel used in the process of color restoration can be directly used.
从频谱计算相对色温过程可简述为:The process of calculating the relative color temperature from the spectrum can be briefly described as:
首先利用CIE三刺激参数与图像频谱计算出图像色位值x,y:First, use the CIE tristimulus parameters and the image spectrum to calculate the image color value x, y:
Figure PCTCN2022080327-appb-000003
Figure PCTCN2022080327-appb-000003
Figure PCTCN2022080327-appb-000004
Figure PCTCN2022080327-appb-000004
Figure PCTCN2022080327-appb-000005
Figure PCTCN2022080327-appb-000005
其中
Figure PCTCN2022080327-appb-000006
为CIE三刺激值对应的频谱响应参数。由此可计算出色位值:
in
Figure PCTCN2022080327-appb-000006
is the spectral response parameter corresponding to the CIE tristimulus value. From this, the color level value can be calculated:
Figure PCTCN2022080327-appb-000007
Figure PCTCN2022080327-appb-000007
Figure PCTCN2022080327-appb-000008
Figure PCTCN2022080327-appb-000008
再通过色度图表查得色温,或通过近似公式计算得到相对色温CCT:Then check the color temperature through the chromaticity chart, or calculate the relative color temperature CCT through the approximate formula:
n=(x-0.3320)/(y-0.1858),n=(x-0.3320)/(y-0.1858),
CCT=-437*n^3+3601*n^2-6831*n+5517。CCT=-437*n^3+3601*n^2-6831*n+5517.
这样,可以在同一图像传感器上分别采用2×2与10×10的像素组恢复光谱像素,同时满足彩色成像与色温传感的需求。当然,本领域技术人员可以理解,在根据本申请实施例的基于光谱芯片的图像传感方法中,同时获得的待传感的图像参数不限于色彩数据和色温数据,也可以是其它类型的图像参数。In this way, 2 × 2 and 10 × 10 pixel groups can be used to restore spectral pixels on the same image sensor, while meeting the needs of color imaging and color temperature sensing. Of course, those skilled in the art can understand that in the image sensing method based on a spectrum chip according to the embodiment of the present application, the image parameters to be sensed obtained at the same time are not limited to color data and color temperature data, and may also be other types of images. parameter.
因此,在根据本申请实施例的基于光谱芯片的图像传感方法中,进一步包括:确定待传感的第二图像参数;基于所述待传感的第二图像参数确定所述光谱芯片的图像传感器的第二组多个物理像素;确定所述第二组多个物理像素的响应函数并确定所述第二组多个物理像素中的每个物理像素的光强读数;以及,基于所述光强读数和所述响应函数计算所述待传感的第二图像参数。Therefore, in the image sensing method based on a spectrum chip according to an embodiment of the present application, the method further includes: determining a second image parameter to be sensed; determining an image of the spectrum chip based on the second image parameter to be sensed a second plurality of physical pixels of a sensor; determining a response function for the second plurality of physical pixels and determining a light intensity reading for each of the second plurality of physical pixels; and, based on the The light intensity reading and the response function calculate the second image parameter to be sensed.
并且,在上述基于光谱芯片的图像传感方法中,确定所述第二组多个物理像素中的每个物理像素的光强读数包括:基于所述第二组多个物理像素与所述第一组多个物理像素的对应关系,获取所述第二组多个物理像素中与所述第一组多个物理像素对应的物理像素的光强读数。Moreover, in the above-mentioned image sensing method based on a spectrum chip, determining the light intensity reading of each physical pixel in the second group of multiple physical pixels includes: based on the second group of multiple physical pixels and the first The correspondence between a group of multiple physical pixels, and the light intensity readings of the physical pixels corresponding to the first group of multiple physical pixels in the second group of multiple physical pixels are acquired.
并且,在上述基于光谱芯片的图像传感方法中,所述第一图像参数为色 彩数据,所述第二图像参数为色温数据。Furthermore, in the above-mentioned image sensing method based on a spectral chip, the first image parameter is color data, and the second image parameter is color temperature data.
并且,在上述基于光谱芯片的图像传感方法中,所述第一组多个物理像素为第一数目的物理像素方阵,所述第二组多个物理像素为第二数目的物理像素方阵,所述第二数目大于所述第一数目。Moreover, in the above-mentioned image sensing method based on a spectrum chip, the first group of multiple physical pixels is a first number of physical pixel squares, and the second group of multiple physical pixels is a second number of physical pixel squares array, the second number is greater than the first number.
进一步地,在根据本申请实施例的基于光谱芯片的图像传感方法中,在同一次成像中,可以在不同区域测量图像色温,从而更加精确地获知环境的色温情况,为更多处理方式提供前提条件。另外,由于使用同一传感器实现了高空间分辨率的彩色还原与色温的精准测量,可以获取较好的图像白平衡效果。Further, in the image sensing method based on the spectrum chip according to the embodiment of the present application, in the same imaging, the color temperature of the image can be measured in different regions, so as to know the color temperature of the environment more accurately, and provide more processing methods. Preconditions. In addition, due to the use of the same sensor to achieve high spatial resolution color reproduction and accurate color temperature measurement, a better image white balance effect can be obtained.
也就是,在根据本申请实施例的基于光谱芯片的图像传感方法中,确定所述第二组多个物理像素的响应函数包括:基于所述待传感的色温数据确定待传感色温数据的所述图像传感器的第一区域和第二区域;以及,分别确定所述第一区域和所述第二区域的多个物理像素的响应函数以获得所述第二组多个物理像素的响应函数。That is, in the spectral chip-based image sensing method according to the embodiment of the present application, determining the response function of the second group of multiple physical pixels includes: determining color temperature data to be sensed based on the color temperature data to be sensed the first area and the second area of the image sensor; and, determining the response functions of the plurality of physical pixels of the first area and the second area, respectively, to obtain the response of the second plurality of physical pixels function.
因此,根据本申请实施例的基于光谱芯片的图像传感方法能够利用光谱芯片的宽谱滤光结构,根据该宽谱滤光结构确定待传感的图像参数所对应的物理像素的响应函数,并基于该物理像素的光强读数计算该图像参数,从而提升了图像传感的信噪比、色彩与白平衡等效果。Therefore, the image sensing method based on the spectrum chip according to the embodiment of the present application can utilize the broad-spectrum filter structure of the spectrum chip, and determine the response function of the physical pixel corresponding to the image parameter to be sensed according to the broad-spectrum filter structure, The image parameter is calculated based on the light intensity reading of the physical pixel, thereby improving the signal-to-noise ratio, color and white balance of image sensing.
并且,根据本申请实施例的基于光谱芯片的图像传感方法能够利用光谱芯片的可重构特性,针对不同情况对图像传感的信噪比、色彩与白平衡等效果进行针对性优化,从而提升了图像传感效果。In addition, the image sensing method based on the spectrum chip according to the embodiment of the present application can utilize the reconfigurable characteristics of the spectrum chip to perform targeted optimization on the signal-to-noise ratio, color and white balance of image sensing according to different situations, thereby Improved image sensing effect.
第一应用示例First application example
如上所述,根据本申请实施例的基于光谱芯片的图像传感方法基于像素数据的重复使用,可以同时用于彩色还原和色温测量,下面的图5图示了根据本申请实施例的基于光谱芯片的图像传感方法的该具体示例的流程图。As described above, the spectral chip-based image sensing method according to the embodiment of the present application is based on the reuse of pixel data, and can be used for color reproduction and color temperature measurement at the same time. A flowchart of this specific example of an image sensing method of a chip.
如图5所示,根据本申请实施例的基于光谱芯片的图像传感方法的该具体示例包括:步骤S210,确定待传感的色彩数据和色温数据;S220,基于所述待传感的色彩数据和色温数据分别确定所述光谱芯片的图像传感器的第一组多个物理像素和第二组多个物理像素;S230,确定所述第一组多个物理像素的第一响应函数和所述第一组多个物理像素中的每个物理像素的第 一光强读数,并确定所述第二组多个物理像素的第二响应函数和所述第二组多个物理像素中的每个物理像素的第二光强读数;以及,S240,基于所述第一光强读数和所述第一响应函数计算所述待传感的色彩数据,并基于所述第二光强读数和所述第二响应函数计算所述待传感的色温数据。As shown in FIG. 5 , the specific example of the spectral chip-based image sensing method according to the embodiment of the present application includes: step S210 , determining color data and color temperature data to be sensed; S220 , based on the color to be sensed The data and the color temperature data respectively determine a first group of multiple physical pixels and a second group of multiple physical pixels of the image sensor of the spectrum chip; S230, determine the first response function of the first group of multiple physical pixels and the a first light intensity reading for each of the first plurality of physical pixels and determining a second response function for the second plurality of physical pixels and each of the second plurality of physical pixels a second light intensity reading of a physical pixel; and, S240, calculate the color data to be sensed based on the first light intensity reading and the first response function, and calculate the color data to be sensed based on the second light intensity reading and the first response function The second response function calculates the color temperature data to be sensed.
在上述基于光谱芯片的图像传感方法的具体示例中,确定所述第一组多个物理像素中的每个物理像素的第一光强读数包括:基于所述第一组多个物理像素与所述第二组多个物理像素的对应关系,获取所述第二组多个物理像素中与所述第一组多个物理像素对应的物理像素的光强读数。也就是,如上所述,因为在传感色温数据时,需要测量全部10×10的物理像素的光强数据,因此可以直接从这10×10的物理像素的光强数据选择要使用的2×2的物理像素的光强数据.In the specific example of the image sensing method based on the spectrum chip, determining the first light intensity reading of each physical pixel in the first group of multiple physical pixels includes: based on the first group of multiple physical pixels and the The corresponding relationship of the second group of multiple physical pixels is obtained by acquiring the light intensity readings of the physical pixels corresponding to the first group of multiple physical pixels in the second group of multiple physical pixels. That is, as mentioned above, because the light intensity data of all 10×10 physical pixels needs to be measured when sensing the color temperature data, the 2×10 light intensity data to be used can be directly selected from the light intensity data of the 10×10 physical pixels. 2 physical pixels of light intensity data.
在上述基于光谱芯片的图像传感方法的具体示例中,所述第一组多个物理像素为第一数目的物理像素方阵,例如如上所述的2×2的物理像素方阵,所述第二组多个物理像素为第二数目的物理像素方阵,例如如上所述的10×10的物理像素方阵。当然,本领域技术人员可以理解,所述第一组多个物理像素也可以是3×3、5×5的物理像素方阵。In the specific example of the image sensing method based on the spectrum chip, the first group of multiple physical pixels is a first number of physical pixel square arrays, such as the above-mentioned 2×2 physical pixel square matrix, the The second group of multiple physical pixels is a second number of physical pixel square matrices, such as the 10×10 physical pixel square matrix as described above. Of course, those skilled in the art can understand that the first group of multiple physical pixels may also be a 3×3 or 5×5 square matrix of physical pixels.
并且,与如上所述的相同,所述第一组多个物理像素也可以为所述图像传感器上的长方形或者不规则形状的多个物理像素。Also, as described above, the first group of physical pixels may also be rectangular or irregular-shaped physical pixels on the image sensor.
另外,在上述基于光谱芯片的图像传感方法的具体示例中,同样可以根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素和/或所述第二组多个物理像素。In addition, in the specific example of the image sensing method based on the spectrum chip, the first group of multiple physical pixels may also be determined according to at least one of the spatial resolution of the image sensor, the image signal-to-noise ratio and the spectral accuracy and/or the second plurality of physical pixels.
也就是,根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素和/或所述第二组多个物理像素包括:响应于环境光的强度为第一强度,确定第一数目的物理像素方阵;以及,响应于环境光的强度为小于所述第一强度的第二强度,确定第二数目的物理像素方阵,所述第二数目大于所述第一数目。That is, determining the first plurality of physical pixels and/or the second plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio, and spectral accuracy of the image sensor comprises: in response to The intensity of the ambient light is a first intensity, and a first number of physical pixel square matrices are determined; and, in response to the ambient light intensity being a second intensity less than the first intensity, a second number of physical pixel square matrices are determined, so The second number is greater than the first number.
或者,根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素和/或所述第二组多个物理像素包括:响应于所述图像传感器获取的图像中的第一亮度或者第一信噪比的第一区域,确定第一数目的物理像素方阵;以及,响应于所述图像传感器获取的图像中的小于第一亮度的第二亮度或者小于第一信噪比的第二信噪比的第二 区域,确定第二数目的物理像素方阵,所述第二数目大于第一数目。Alternatively, determining the first plurality of physical pixels and/or the second plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor comprises: in response to the determining the first number of physical pixel squares in the first area of the first brightness or the first signal-to-noise ratio in the image acquired by the image sensor; The second brightness or the second area of the second signal-to-noise ratio smaller than the first signal-to-noise ratio determines a second number of physical pixel squares, the second number being greater than the first number.
或者,根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素和/或所述第二组多个物理像素包括:响应于所述图像传感器的第一空间分辨率和/或第一光谱精度,确定第一数目的物理像素方阵;以及,响应于所述图像传感器的小于第一空间分辨率的第二空间分辨率和/或大于第一光谱精度的第二光谱精度,确定第二数目的物理像素方阵,所述第二数目大于第一数目。Alternatively, determining the first plurality of physical pixels and/or the second plurality of physical pixels according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor comprises: in response to the a first spatial resolution and/or a first spectral accuracy of the image sensor, determining a first number of physical pixel arrays; and, in response to a second spatial resolution of the image sensor that is less than the first spatial resolution and/or or a second spectral precision greater than the first spectral precision, a second number of physical pixel squares is determined, the second number being greater than the first number.
并且,在上述基于光谱芯片的图像传感方法的具体示例中,确定所述第二组多个物理像素的第二响应函数包括:基于所述待传感的色温数据确定待传感色温数据的所述图像传感器的第一区域和第二区域;以及,分别确定所述第一区域和所述第二区域的多个物理像素的响应函数以获得所述第二组多个物理像素的响应函数。Moreover, in the specific example of the image sensing method based on the spectral chip, determining the second response function of the second group of multiple physical pixels includes: determining the color temperature data to be sensed based on the color temperature data to be sensed. a first region and a second region of the image sensor; and determining response functions of a plurality of physical pixels of the first region and the second region, respectively, to obtain response functions of the second plurality of physical pixels .
这样,该具体示例通过同时计算色彩数据和色温数据,可以提升图像传感的色彩与白平衡效果。并且,由于能够利用光谱芯片的可重构特性,针对不同情况对图像传感的色彩与白平衡等效果进行针对性优化,可以提升图像传感效果。In this way, this specific example can improve the color and white balance effect of image sensing by calculating color data and color temperature data at the same time. In addition, because the reconfigurable characteristics of the spectrum chip can be used, the effects of color and white balance of image sensing can be optimized according to different situations, which can improve the effect of image sensing.
示例性光谱恢复方法Exemplary spectral recovery method
图6图示了根据本申请实施例的基于光谱芯片的光谱恢复方法的流程图。FIG. 6 illustrates a flowchart of a spectrum recovery method based on a spectrum chip according to an embodiment of the present application.
如图6所示,根据本申请实施例的基于光谱芯片的光谱恢复方法包括如下步骤:As shown in FIG. 6 , the spectrum recovery method based on a spectrum chip according to an embodiment of the present application includes the following steps:
步骤S310,基于预定条件确定所述光谱芯片上的预定像素点。如上所述,在所述光谱芯片中,所述预定像素点用于恢复光谱,因此其应当对应于如上所述的结构单元,但是,在物理像素与结构单元一一对应的情况下,也可以对应于如上所述的物理像素。Step S310, determining a predetermined pixel point on the spectrum chip based on a predetermined condition. As described above, in the spectrum chip, the predetermined pixel points are used to restore the spectrum, so they should correspond to the above-mentioned structural units, but in the case of one-to-one correspondence between physical pixels and structural units, it is also possible Corresponds to physical pixels as described above.
此外,如上所述,光谱像素指的是若干个结构单元下探测到的数据可以用来恢复出一组光谱数据,并且,用来恢复光谱像素的这些结构单元,或者其覆盖(对应)的物理像素(预设像素)的动态调整被称为可重构。In addition, as mentioned above, the spectral pixel refers to that the data detected under several structural units can be used to recover a set of spectral data, and these structural units used to recover the spectral pixel, or the physical properties covered (corresponding) thereof. Dynamic adjustment of pixels (preset pixels) is called reconfigurable.
在本申请实施例中,可重构指的是根据具体需求或者预定条件来对各个点的预设像素进行动态调整。在本申请实施例中,上述具体及需求或者预定条件可以包括:光谱分辨率的需求、为了提升光谱恢复准确性而引申出的亮 度均一性要求、以及光谱像素总亮度阈值的需求。In this embodiment of the present application, reconfigurable refers to dynamically adjusting the preset pixels of each point according to specific requirements or predetermined conditions. In the embodiment of the present application, the above-mentioned specific and requirements or predetermined conditions may include: requirements for spectral resolution, requirements for brightness uniformity derived for improving the accuracy of spectral restoration, and requirements for total brightness thresholds of spectral pixels.
也就是,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,基于确定所述光谱芯片上的预定像素点包括:基于亮度分布以及光谱分辨率需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点。That is, in the spectral recovery method based on a spectral chip according to an embodiment of the present application, determining the predetermined pixel points on the spectral chip includes: determining based on at least one of brightness distribution and spectral resolution requirements and spatial resolution requirements. predetermined pixel points on the spectrum chip.
具体地,光谱分辨率需求和空间分辨率需求之间可能存在相互关联性,也就是,光谱分辨率越高,对应的空间分辨率越低。在本申请实施例中,光谱分辨率需求是指从需求出发想要获得的光谱精度,比如10nm精度,或者1nm精度。根据这个精度需求可以调整每个光谱像素所包含的预定像素点的数目。另外,如上所述,这个需求与空间分辨率需求会相互影响,因此也可以引申为空间分辨率需求,即降低光谱分辨率等效于提升空间分辨率,反之亦然。Specifically, there may be a correlation between spectral resolution requirements and spatial resolution requirements, that is, the higher the spectral resolution, the lower the corresponding spatial resolution. In this embodiment of the present application, the spectral resolution requirement refers to the spectral accuracy that is to be obtained based on the requirement, such as 10 nm accuracy, or 1 nm accuracy. The number of predetermined pixel points included in each spectral pixel can be adjusted according to this precision requirement. In addition, as mentioned above, this requirement and the spatial resolution requirement will affect each other, so it can also be extended to the spatial resolution requirement, that is, reducing the spectral resolution is equivalent to increasing the spatial resolution, and vice versa.
也就是,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,基于亮度分布以及光谱分辨率需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点包括:响应于所述光谱分辨率需求大于第一预定阈值,确定大于第一预定数目的所述预定像素点;和/或,响应于所述空间分辨率需求大于第二预定阈值,确定小于第二预定数目的所述预定像素点。That is, in the spectral chip-based spectral recovery method according to the embodiment of the present application, determining the predetermined pixel point on the spectral chip based on at least one of the luminance distribution and spectral resolution requirements and spatial resolution requirements includes: responding to: The spectral resolution requirement is greater than a first predetermined threshold, determining that the predetermined number of pixels is greater than a first predetermined number; and/or, in response to the spatial resolution requirement being greater than a second predetermined threshold, determining that the number of pixels is less than a second predetermined number. the predetermined pixel point.
亮度均一性需求指的是对于每一个光谱像素,所包含的像素点当中亮度均一性比较好时,光谱恢复效果较好;为了达到这个需求,可以先根据图像信息进行边缘检测,再选取联通的亮度均一性较好的物理像素组去恢复一个光谱像素,这将在下面参考具体的实施例一和实施例二进行进一步的详细描述。The requirement of brightness uniformity means that for each spectral pixel, when the brightness uniformity of the included pixels is relatively good, the spectral recovery effect is better; in order to achieve this requirement, edge detection can be performed according to the image information first, and then select the A physical pixel group with better luminance uniformity is used to restore a spectral pixel, which will be described in further detail below with reference to specific embodiments 1 and 2.
光谱像素总亮度阈值需求指的是当场景亮度较低时,可以通过增加预定像素点的数量来恢复光谱像素,以提升对应光谱像素的光谱准确性。The total brightness threshold requirement of spectral pixels means that when the brightness of the scene is low, the spectral pixels can be restored by increasing the number of predetermined pixel points to improve the spectral accuracy of the corresponding spectral pixels.
步骤S320,使用所述光谱芯片上的所述预定像素点进行光谱恢复。Step S320, using the predetermined pixel points on the spectrum chip to perform spectrum recovery.
也就是,在选择出一定数量的预定像素点后,接下来,使用光谱恢复算法进行光谱恢复,例如可以是压缩感知算法。这里,压缩感知算法依赖用于投影特征的字典。可以使用已知的自然界中常见材料的光谱,使用字典学习算法来训练出合适的字典用于光谱恢复。使用压缩感知算法,通过选择合适的测量基和字典,可以仅用少量的图像传感器测得的光强数据来计算得到高精度的光谱数据。That is, after a certain number of predetermined pixel points are selected, next, spectral recovery is performed using a spectral recovery algorithm, such as a compressed sensing algorithm. Here, the compressed sensing algorithm relies on a dictionary used to project features. A dictionary learning algorithm can be used to train a suitable dictionary for spectral recovery using known spectra of materials commonly found in nature. Using compressed sensing algorithm, by selecting appropriate measurement bases and dictionaries, high-precision spectral data can be calculated with only a small amount of light intensity data measured by image sensors.
以下,将详细说明根据本申请实施例的基于光谱芯片的光谱恢复方法的 各个具体示例。Hereinafter, specific examples of the spectrum recovery method based on the spectrum chip according to the embodiments of the present application will be described in detail.
示例一Example 1
如上所述,可以基于亮度分布,也就是光强分布来进行预定像素点的可重构。并且,在进行基于亮度分布的可重构时,首先确定图像中的各个像素的亮度,然后基于像素的亮度确定预定像素点。As described above, the predetermined pixel point can be reconstructed based on the luminance distribution, that is, the light intensity distribution. In addition, when the reconfiguration based on the brightness distribution is performed, the brightness of each pixel in the image is first determined, and then the predetermined pixel point is determined based on the brightness of the pixel.
如上所述,在本申请实施例中,可以是一个物理像素对应一组结构单元,但是也可以是多个物理像素为一组对应于一组结构单元。因此,不同于物理像素,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,将对应于一组或多组的结构单元以恢复出一组光谱信息,并将所述单元称为“光谱像素”。进一步,本申请实施例的方案可以用至少一个光谱像素去还原图像。这里,如上所述的预定像素点指的是图像传感器的对应于一组结构单元的物理像素。As described above, in this embodiment of the present application, one physical pixel may correspond to a group of structural units, but it may also be that a group of multiple physical pixels corresponds to a group of structural units. Therefore, unlike physical pixels, in the spectral chip-based spectral recovery method according to the embodiment of the present application, a group of structural units corresponding to one or more groups is recovered to recover a set of spectral information, and the units are called "" Spectral Pixels". Further, the solution of the embodiment of the present application can use at least one spectral pixel to restore the image. Here, the predetermined pixel points as described above refer to physical pixels of the image sensor corresponding to a group of structural units.
此外,在本申请实施例中,在一个物理像素点对应一组结构单元的基础上,可以是选取多少个物理像素点作为一组数据来进行一个光谱像素的恢复,在其它实施例中,也可以实施为选取多少个结构单元作为一组数据进行一个光谱像素的恢复,即结构单元的数目的取值大小影响了传感器的空间分辨率、图像信噪比以及光谱精度。在本申请实施例中,采用可重构的方式可以在不同情况下根据环境情况对结构单元的数目的取值进行动态调整,以获取最优图像效果。In addition, in the embodiment of the present application, on the basis that one physical pixel corresponds to a group of structural units, how many physical pixels may be selected as a group of data to restore a spectral pixel. In other embodiments, also It can be implemented as how many structural units are selected as a set of data to restore one spectral pixel, that is, the value of the number of structural units affects the spatial resolution, image signal-to-noise ratio and spectral accuracy of the sensor. In the embodiment of the present application, in a reconfigurable manner, the value of the number of structural units can be dynamically adjusted according to environmental conditions in different situations, so as to obtain an optimal image effect.
例如,在实际使用过程中,可以根据需要采用2×2,3×3,5×5,10×10等规模的物理像素数量作为一组数据进行处理,生成一个光谱像素。值得一提的是,本申请实施例以物理像素与结构单元一对一的关系为例,实际中也可以是多个物理像素对应一组结构单元,当多个物理像素对应一组结构单元时,可以理解为是对结构单元的可重构,即所述多个物理像素是由结构单元确定,例如2×2可理解为4个结构单元构成光谱像素的一组所述多个物理像素。For example, in the actual use process, the number of physical pixels in the scale of 2 × 2, 3 × 3, 5 × 5, 10 × 10 can be used as a set of data for processing as required to generate a spectral pixel. It is worth mentioning that the embodiments of the present application take the one-to-one relationship between physical pixels and structural units as an example. In practice, multiple physical pixels may correspond to a group of structural units, and when multiple physical pixels correspond to a group of structural units , can be understood as the reconfiguration of the structural unit, that is, the multiple physical pixels are determined by the structural unit, for example, 2×2 can be understood as a group of the multiple physical pixels constituting a spectral pixel with four structural units.
图7图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中选择用于恢复光谱的像素点的示例。如图7所示,其示出了使用5×5的方阵,共25个像素点来进行光谱恢复。并且,利用可重构的光谱恢复算法,可选择特定的数量,例如可以选择10×10共100个像素点或15×15共225个像素点 来进行光谱恢复。依据图像局部的光强变化情况来动态调整用于恢复光谱的像素方阵的大小,即光强较小的情况下,可以提高所述像素方阵的大小,以获得更高的光谱恢复精度,反之也可选地降低其大小。并且使用压缩感知算法,在像素点空间光强一致性得到满足的前提下,通过动态选择用于恢复光谱的像素点的多少,并选择合适的字典进行压缩感知恢复,还能够达到动态调整光谱频率分辨率的目的。例如,图8图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中的可重构的方式的示例。如图8所示,最外层区域可以理解为利用10×10个像素点作为一个光谱像素进行恢复,中间区域可以理解为5×5个像素点进行恢复,而最内层区域为3×3个像素点进行恢复,即,在本申请实施例中,根据应用需求不同对于光谱像素对应的像素点进行动态选择。FIG. 7 illustrates an example of pixel points selected for recovering a spectrum in a spectrum chip-based spectrum restoration method according to an embodiment of the present application. As shown in FIG. 7 , it shows that a 5×5 square matrix with a total of 25 pixels is used for spectral recovery. And, using the reconfigurable spectral restoration algorithm, a specific number can be selected, for example, 10×10 total 100 pixels or 15×15 total 225 pixels can be selected for spectral restoration. Dynamically adjust the size of the pixel matrix used to restore the spectrum according to the local light intensity change of the image, that is, when the light intensity is small, the size of the pixel matrix can be increased to obtain higher spectral restoration accuracy, Conversely also optionally reduce its size. And using the compressed sensing algorithm, on the premise that the spatial light intensity consistency of the pixel points is satisfied, by dynamically selecting the number of pixels used to restore the spectrum, and selecting an appropriate dictionary for compressed sensing restoration, it is also possible to dynamically adjust the spectral frequency. purpose of resolution. For example, FIG. 8 illustrates an example of a reconfigurable manner in a spectral chip-based spectral recovery method according to an embodiment of the present application. As shown in Figure 8, the outermost area can be understood as using 10×10 pixels as a spectral pixel for restoration, the middle area can be understood as 5×5 pixels for restoration, and the innermost area is 3×3 Pixel points are restored, that is, in the embodiment of the present application, the pixel points corresponding to the spectral pixels are dynamically selected according to different application requirements.
因此,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,基于亮度分布确定所述光谱芯片上的预定像素点包括:基于图像传感器所获取的图像局部的光强变化情况来动态调整所述预定像素点构成的像素方阵的大小。Therefore, in the spectrum recovery method based on the spectrum chip according to the embodiment of the present application, determining the predetermined pixel points on the spectrum chip based on the luminance distribution includes: dynamically adjusting the light intensity changes of the local image acquired by the image sensor based on the brightness distribution. The size of the pixel square matrix formed by the predetermined pixel points.
示例二Example 2
在示例二中,还可以通过对图像传感器输出的图像数据进行边缘检测,来更加精细地确定光谱芯片上的像素点的亮度分布。也就是,为了基于亮度分布来确定所述光谱芯片上的预定像素点,首先获取光谱芯片的图像传感器输出的图像数据,然后对所述图像数据进行边缘检测,并基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点。In Example 2, the brightness distribution of the pixel points on the spectrum chip can also be determined more precisely by performing edge detection on the image data output by the image sensor. That is, in order to determine the predetermined pixel points on the spectrum chip based on the brightness distribution, the image data output by the image sensor of the spectrum chip is first acquired, and then edge detection is performed on the image data, and the edge detection based on the image data is performed. As a result, predetermined pixel points on the spectrum chip are determined.
因此,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,基于亮度分布以及光谱分辨率需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点包括:获取所述光谱芯片的图像传感器输出的图像数据;对所述图像数据进行边缘检测;以及,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点。Therefore, in the spectral chip-based spectral restoration method according to the embodiment of the present application, determining the predetermined pixel point on the spectral chip based on at least one of luminance distribution and spectral resolution requirements and spatial resolution requirements includes: acquiring the image data output by the image sensor of the spectrum chip; edge detection is performed on the image data; and predetermined pixel points on the spectrum chip are determined based on the edge detection result of the image data.
下面,将具体说明以上各个步骤。Hereinafter, each of the above steps will be described in detail.
首先,获取所述光谱芯片的图像传感器输出的图像数据。也就是,如上所述,获取所述光谱芯片的图像传感器接收所述调制后的光谱后对所述调制后的光谱的差分响应,并利用信号处理电路层将所述差分响应处理为图像数据。First, the image data output by the image sensor of the spectrum chip is acquired. That is, as described above, the image sensor of the spectrum chip obtains the differential response to the modulated spectrum after receiving the modulated spectrum, and uses the signal processing circuit layer to process the differential response into image data.
之后,对所述图像数据进行边缘检测。这里,可选地,在进行边缘检测之前,可以首先对所述图像数据进行预处理。After that, edge detection is performed on the image data. Here, optionally, before performing edge detection, the image data may be preprocessed first.
具体地,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,对所述图像数据进行预处理包括图像均衡和图像降噪。由于在光探测器阵列上添加了滤光结构,光探测器阵列输出的图像数据会含有滤光结构带来的噪声,并且整体上较暗,因此在进行进一步的图形处理前,可选地对图像进行先行均衡和降噪。Specifically, in the spectral chip-based spectral restoration method according to the embodiment of the present application, the preprocessing of the image data includes image equalization and image noise reduction. Since a filter structure is added to the photodetector array, the image data output by the photodetector array will contain noise caused by the filter structure, and it will be darker on the whole. The image is pre-equalized and denoised.
均衡算法可以是全局直方图均衡或者局部自适应直方图均衡,因为滤光结构使得图像整体上偏暗,因此一般可以直接采用全局直方图均衡对图像进行均衡处理。图9图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中的图像均衡前后图像的变化示意图。如图9所示,均衡处理后图像的亮度整体增加,对比度增加,细节得到了突出。The equalization algorithm can be global histogram equalization or local adaptive histogram equalization. Because the filter structure makes the image darker as a whole, global histogram equalization can generally be used to equalize the image. FIG. 9 illustrates a schematic diagram of image changes before and after image equalization in the spectral chip-based spectral restoration method according to an embodiment of the present application. As shown in Figure 9, the overall brightness of the image after equalization processing increases, the contrast increases, and the details are highlighted.
并且,在图像均衡之后,采用特定的滤波算法对图像进行降噪。例如,对均衡后的图像进行高斯滤波,依据图像分辨率和传感器上光滤波结构的特性,可以选择适当大小的滤波核来进行滤波,如5×5、9×9、11×11等。考虑到滤波结构本身的特性如周期性等,还可以对图像进行中值滤波。同样,滤波核的大小可以依据实际情况进行选择。图10图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中的降噪处理后的图像的示意图。如图10所示,其为使用9×9的滤波核进行高斯滤波且使用5×5的滤波核进行中值滤波后得到的结果。这里,滤波降噪的目的在于模糊化滤光结构对图像带来的噪声,降低其对边缘检测带来的影响。And, after image equalization, a specific filtering algorithm is used to denoise the image. For example, Gaussian filtering is performed on the equalized image. According to the image resolution and the characteristics of the light filtering structure on the sensor, a filter kernel of an appropriate size can be selected for filtering, such as 5×5, 9×9, 11×11, etc. Taking into account the characteristics of the filtering structure itself, such as periodicity, median filtering can also be performed on the image. Likewise, the size of the filter kernel can be selected according to the actual situation. FIG. 10 illustrates a schematic diagram of an image after noise reduction in the spectral chip-based spectral restoration method according to an embodiment of the present application. As shown in FIG. 10 , it is the result obtained by performing Gaussian filtering with a 9×9 filter kernel and performing median filtering with a 5×5 filter kernel. Here, the purpose of filter noise reduction is to blur the noise brought by the filter structure to the image and reduce its influence on edge detection.
因此,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,对所述图像数据进行边缘检测包括:对所述图像数据进行均衡;对均衡后的所述图像数据进行降噪;以及,对降噪后的所述图像数据进行边缘检测。Therefore, in the spectral chip-based spectral restoration method according to the embodiment of the present application, performing edge detection on the image data includes: performing equalization on the image data; performing noise reduction on the equalized image data; and, Edge detection is performed on the denoised image data.
并且,在如上所述的基于光谱芯片的光谱恢复方法中,对均衡后的所述图像数据进行降噪包括:根据图像分辨率和/或所述图像传感器对应的滤光结构的特性,选择预定大小的滤波核对所述均衡后的图像数据进行滤波。In addition, in the above-mentioned spectral chip-based spectral restoration method, performing noise reduction on the equalized image data includes: selecting a predetermined filter according to the image resolution and/or the characteristics of the filter structure corresponding to the image sensor. A filter kernel of size filters the equalized image data.
对图像进行预处理后,再进行边缘检测,边缘检测算子可以为Sobel、Laplacian、Scharr、Canny等,用于检测图像中的边缘区域。可选的,在边缘检测之后,可以对边缘进行适当的膨胀操作,以扩大边缘所占的区域。图 11图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中的使用Canny边缘检测算法得到的边缘检测结果。After the image is preprocessed, edge detection is performed. The edge detection operator can be Sobel, Laplacian, Scharr, Canny, etc., and is used to detect the edge area in the image. Optionally, after edge detection, an appropriate expansion operation may be performed on the edge to expand the area occupied by the edge. FIG. 11 illustrates an edge detection result obtained by using the Canny edge detection algorithm in the spectrum chip-based spectrum recovery method according to an embodiment of the present application.
因此,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,对降噪后的所述图像数据进行边缘检测包括:使用边缘检测算子检测所述降噪后的图像数据中的边缘区域;以及,对所述边缘区域进行膨胀操作。Therefore, in the spectral chip-based spectral restoration method according to the embodiment of the present application, performing edge detection on the denoised image data includes: using an edge detection operator to detect edge regions in the denoised image data ; and, performing an expansion operation on the edge region.
如上所述,在进行光谱恢复时,由于光谱恢复算法要求所选像素点(测量值)的光强具有一定的一致性,光谱恢复的精度受所选像素点的个数和光强一致性的影响,像素点数太多会导致光强均匀性降低,太少会导致恢复所需数据量过于欠定。而检测出的边缘及其邻域,即为图像梯度较大的区域,即光强一致性较差的区域,在选点进行光谱恢复时应该予以避开。选点时,例如可以采用以下步骤:首先,选择用于恢复光谱区域的中心点,再以中心点为基础,可选择“连通的”、“最邻近”、“特定数量”中的一种或组合的点来计算光谱。其中“连通的”指所选点在图像中构成一个连通的区域,其连通性可以为四邻域连通或八邻域连通,并且,所选点需避开边缘区域。“最邻近”指所选点离中心点的平均距离最小,距离可以为欧氏距离。“特定数量”指选择指定数量的点来进行光谱恢复,如25个、100个等,所选点的数量会影响光谱恢复的精度与频率分辨率。为达到较高的计算效率,在选点时,可以采用贪心算法和广度优先搜索算法来快速选定所需数量的点。选点的最终目的是保证用于恢复光谱的像素点的光强一致性。As mentioned above, when performing spectral recovery, since the spectral recovery algorithm requires the light intensity of the selected pixels (measured values) to have a certain consistency, the accuracy of spectral recovery is affected by the number of selected pixels and the consistency of light intensity. Influence, too many pixels will reduce the uniformity of light intensity, too few will cause the amount of data required for recovery to be too undetermined. The detected edges and their neighborhoods are areas with large image gradients, that is, areas with poor light intensity consistency, which should be avoided when selecting points for spectral recovery. When selecting points, for example, the following steps can be taken: first, select the center point for restoring the spectral region, and then, based on the center point, one of "connected", "nearest neighbor", "specific number" or Combine the points to calculate the spectrum. “Connected” means that the selected points form a connected area in the image, and its connectivity can be four-neighborhood connectivity or eight-neighborhood connectivity, and the selected points need to avoid edge areas. "Nearest" means that the selected point has the smallest average distance from the center point, and the distance can be Euclidean distance. "Specific number" refers to selecting a specified number of points for spectral recovery, such as 25, 100, etc. The number of selected points will affect the accuracy and frequency resolution of spectral recovery. In order to achieve higher computational efficiency, when selecting points, the greedy algorithm and the breadth-first search algorithm can be used to quickly select the required number of points. The ultimate purpose of point selection is to ensure the consistency of the light intensity of the pixels used to restore the spectrum.
因此,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点包括:基于所述图像数据的边缘检测结果,确定所述光谱芯片上的具有高于预定阈值的光强一致性的预定像素点,所述预定像素点是基于像素中心点的邻近且连通的预定数目的像素点。Therefore, in the spectrum recovery method based on the spectrum chip according to the embodiment of the present application, determining the predetermined pixel point on the spectrum chip based on the edge detection result of the image data includes: based on the edge detection result of the image data, determining The predetermined pixel points on the spectrum chip having a light intensity consistency higher than a predetermined threshold value are a predetermined number of adjacent and connected pixel points based on the pixel center point.
并且,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点包括:基于所述图像数据的边缘检测结果,确定所述光谱芯片上的具有不同数目的多组预定像素点。In addition, in the spectrum recovery method based on the spectrum chip according to the embodiment of the present application, determining the predetermined pixel point on the spectrum chip based on the edge detection result of the image data includes: based on the edge detection result of the image data, determining There are multiple groups of predetermined pixel points with different numbers on the spectrum chip.
在上述光谱芯片的光谱恢复方法中,所述具有不同数目的多组预定像素点包括3×3、5×5、10×10的物理像素阵列。In the spectrum recovery method of the spectrum chip, the plurality of groups of predetermined pixel points with different numbers include 3×3, 5×5, and 10×10 physical pixel arrays.
另外,在示例二中,通过对光谱芯片的图像数据的预处理,判断光谱芯 片的图像数据中的光探测器级灵敏度边缘,对边缘部分进行恢复滤光片组动态调整。利用边缘检测算子对图像进行边缘检测,避开图像中像素梯度比较大的区域,保证用于恢复光谱的像素光强一致性。在选择像素点进行光谱恢复时,避开图像中的边缘区域,选择最邻近的、连通的、特定个数的像素点进行光谱恢复。这里,光谱恢复可重构算法的意义在于,用于恢复光谱的像素点的位置可以动态选择,其最终目的是保证所选像素点的光强一致性,提高光谱恢复的精度,保证在边缘处光谱不失真。图12图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中利用边缘信息选择用于恢复光谱的像素点的示例。图13A到图13C图示了在如图12所示的示例中利用边缘信息选择的用于恢复光谱的不同形状的像素点的示例。In addition, in Example 2, by preprocessing the image data of the spectrum chip, the edge of the photodetector-level sensitivity in the image data of the spectrum chip is determined, and the edge portion is dynamically adjusted for the recovery filter set. The edge detection operator is used to detect the edge of the image, avoid areas with large pixel gradients in the image, and ensure the consistency of the pixel light intensity used to restore the spectrum. When selecting pixels for spectral restoration, avoid the edge areas in the image, and select the nearest, connected, and specific number of pixels for spectral restoration. Here, the significance of the spectral restoration reconfigurable algorithm is that the position of the pixel points used to restore the spectrum can be dynamically selected. Spectrum is not distorted. FIG. 12 illustrates an example of using edge information to select pixel points for spectrum restoration in the spectrum chip-based spectrum restoration method according to an embodiment of the present application. FIGS. 13A to 13C illustrate examples of pixel points of different shapes selected using edge information for restoring the spectrum in the example shown in FIG. 12 .
因此,根据本申请实施例的基于光谱芯片的光谱恢复方法中,所述预定像素点为所述图像传感器上的预定形状的多个物理像素。Therefore, in the spectrum recovery method based on a spectrum chip according to an embodiment of the present application, the predetermined pixel point is a plurality of physical pixels of a predetermined shape on the image sensor.
当然,本领域技术人员可以理解,以上示例一和示例二之间的关系是并列的,并且其也可以组合使用。Of course, those skilled in the art can understand that the relationship between the above example 1 and example 2 is juxtaposed, and they can also be used in combination.
示例三Example three
在示例三中,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,对于光谱恢复算法,其目的是要得到光谱图像。光谱恢复算法的可重构性还在于,恢复光谱时的步长可以动态调整。例如,若使用3×3的像素方阵进行光谱恢复,恢复时的步长也为3,则9×9的像素数据最终可以恢复得到空间分辨率为3×3的光谱图像。图14图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中使用步长为3进行光谱恢复的示例。In Example 3, in the spectrum recovery method based on the spectrum chip according to the embodiment of the present application, the purpose of the spectrum recovery algorithm is to obtain a spectrum image. The reconfigurability of the spectral recovery algorithm also lies in the fact that the step size when recovering the spectrum can be dynamically adjusted. For example, if a 3×3 pixel square matrix is used for spectral restoration, and the step size during restoration is also 3, the 9×9 pixel data can finally be restored to obtain a spectral image with a spatial resolution of 3×3. FIG. 14 illustrates an example of spectral recovery using a step size of 3 in the spectral chip-based spectral recovery method according to an embodiment of the present application.
为了提高光谱图像的空间分辨率,可以动态调整恢复光谱时的步长,例如调整为1。此时若使用3×3的像素方阵进行光谱恢复,步长为1进行偏移后再按3×3像素再进行光谱恢复,9×9的像素数据可以恢复得到空间分辨率为7×7的光谱图像。使用光谱恢复算法步长可重构的特性,可以动态调整恢复得到光谱图像的空间分辨率,通过提高图像局部的空间分辨率也可以实现光谱图像局部放大的效果。图15图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中使用步长为1进行光谱恢复的示例。In order to improve the spatial resolution of the spectral image, the step size when restoring the spectrum can be dynamically adjusted, for example, adjusted to 1. At this time, if a 3×3 pixel square matrix is used for spectral restoration, the step size is 1 for offset, and then 3×3 pixels are used for spectral restoration. The 9×9 pixel data can be restored to obtain a spatial resolution of 7×7. spectral image. Using the feature that the step size of the spectral restoration algorithm can be reconstructed, the spatial resolution of the restored spectral image can be dynamically adjusted. By improving the local spatial resolution of the image, the effect of local amplification of the spectral image can also be achieved. FIG. 15 illustrates an example of spectral recovery using a step size of 1 in the spectral chip-based spectral recovery method according to an embodiment of the present application.
因此,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,使用所述光谱芯片上的所述预定像素点进行光谱恢复包括:使用所述光谱芯片上的 所述预定像素点以动态调整的恢复步长进行光谱恢复。Therefore, in the spectrum recovery method based on a spectrum chip according to an embodiment of the present application, performing spectrum recovery using the predetermined pixel points on the spectrum chip includes: using the predetermined pixel points on the spectrum chip to dynamically adjust recovery step size for spectral recovery.
示例四Example four
在实施例四中,对于光谱重建算法,可重构还体现在对恢复出来的光谱,针对于不同的应用场景,波长采样间隔可动态调整。对于光谱分辨率要求比较低的场景,波长采样间隔可以较大,如5nm为采样间隔,450~750nm共有61个波长采样点,可以用较少的单元进行光谱重建,如10个单元。对于光谱分辨率要求比较高的场景,波长采样间隔可以较小,如0.5nm为采样间隔,450nm~750nm共有301个波长采样点,可以用较多的单元进行光谱重建,如50个。因此,可以根据应用场景,动态调整波长采样间隔,达到同时空间分辨率和频谱分辨率的均衡。具体的可以理解为根据应用场景,调整向量Y中的个数,光谱分辨率需求较高则Y中的个数也要多。In the fourth embodiment, for the spectrum reconstruction algorithm, the reconfiguration is also reflected in the restored spectrum, and the wavelength sampling interval can be dynamically adjusted for different application scenarios. For scenarios with low spectral resolution requirements, the wavelength sampling interval can be larger, such as 5 nm as the sampling interval, and there are a total of 61 wavelength sampling points from 450 to 750 nm, and spectral reconstruction can be performed with fewer units, such as 10 units. For scenarios with high spectral resolution requirements, the wavelength sampling interval can be small, for example, 0.5 nm is the sampling interval, and there are 301 wavelength sampling points from 450 nm to 750 nm, and more units can be used for spectral reconstruction, such as 50. Therefore, the wavelength sampling interval can be dynamically adjusted according to the application scenario to achieve a balance between the spatial resolution and the spectral resolution at the same time. Specifically, it can be understood that according to the application scenario, the number in the vector Y is adjusted, and if the spectral resolution requirement is higher, the number in the Y is also larger.
因此,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,使用所述光谱芯片上的所述预定像素点进行光谱恢复包括:基于待恢复出的光谱的应用情况,动态调整用于所述光谱恢复的波长采样间隔。Therefore, in the spectrum recovery method based on the spectrum chip according to the embodiment of the present application, performing spectrum recovery using the predetermined pixel points on the spectrum chip includes: dynamically adjusting the spectrum for the spectrum to be recovered based on the application of the spectrum to be recovered. The wavelength sampling interval for the spectral recovery described above.
并且,在上述光谱芯片的光谱恢复方法中,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点包括:基于波长采样间隔确定所述光谱芯片上的预定像素点的数目。In addition, in the spectrum recovery method of the spectrum chip, determining the predetermined pixel points on the spectrum chip based on the edge detection result of the image data includes: determining the number of predetermined pixel points on the spectrum chip based on the wavelength sampling interval.
也就是,与如上所述的类似,这里预定像素点的数目的确定可能受两个因素影响,一是亮度的均一性,通常来说,预定像素点的亮度均一性比较好的时候,光谱恢复才比较准确,否则误差比较大,这是首先需要满足的,以上所述的边缘检测也是为了这个目的,与之相关的还有亮度需要达到阈值,亮度普遍较低的时候,可以调高预定像素点的数目来达到阈值;二是光谱分辨率,这是需求确定的,通常来说,预定像素点数目越多,光谱分辨率越高,空间分辨率也就越低,因此可以通过调整数目来调整光谱分辨率(以及空间分辨率)。That is, similar to the above, the determination of the number of predetermined pixels may be affected by two factors. One is the uniformity of brightness. Generally speaking, when the brightness uniformity of predetermined pixels is relatively good, the spectral recovery It is more accurate, otherwise the error is relatively large, which needs to be satisfied first. The edge detection mentioned above is also for this purpose. It is also related to the brightness that needs to reach the threshold. When the brightness is generally low, you can increase the predetermined pixel. The number of points to achieve the threshold; the second is the spectral resolution, which is determined by demand. Generally speaking, the more predetermined pixel points are, the higher the spectral resolution and the lower the spatial resolution, so it can be adjusted by adjusting the number. Adjust spectral resolution (as well as spatial resolution).
综上所述,根据本申请实施例的基于光谱芯片的光谱恢复方法通过不固定恢复光谱所选用的结构,可以根据光谱芯片的图像传感器成像的图像的信息来进行有效识别和动态调整。To sum up, the spectrum recovery method based on the spectrum chip according to the embodiment of the present application can perform effective identification and dynamic adjustment according to the information of the image imaged by the image sensor of the spectrum chip by not fixing the structure selected for the recovery spectrum.
这样,根据本申请实施例的基于光谱芯片的光谱恢复方法能够根据图像传感器输出的图像数据来灵活调整每个光谱像素所对应的物理像素点的个 数和空间分布,从而减少空间光强不均匀性引入的恢复误差。In this way, the spectral chip-based spectral restoration method according to the embodiment of the present application can flexibly adjust the number and spatial distribution of physical pixels corresponding to each spectral pixel according to the image data output by the image sensor, thereby reducing spatial light intensity unevenness Recovery error introduced by sex.
另外,根据本申请实施例的基于光谱芯片的光谱恢复方法通过调整每个光谱像素所对应的物理像素点的个数和空间分布,可以提升光谱成像的空间分辨率,将效果提升至基于滤光片和光探测阵列方案的理论极限。In addition, the spectral chip-based spectral recovery method according to the embodiment of the present application can improve the spatial resolution of spectral imaging by adjusting the number and spatial distribution of physical pixels corresponding to each spectral pixel, and improve the effect to filter-based The theoretical limit of chip and photodetection array schemes.
并且,根据本申请实施例的基于光谱芯片的光谱恢复方法通过对图像数据进行边缘检测来提高光谱图像的边缘信噪比,可以有利地应用于基于光谱图像的边缘检测和物质识别。Furthermore, the spectral chip-based spectral restoration method according to the embodiment of the present application improves the edge signal-to-noise ratio of the spectral image by performing edge detection on the image data, and can be advantageously applied to edge detection and substance identification based on the spectral image.
示例五Example five
如上所述,可以光谱分辨率或空间分辨率需求来进行预定像素点的可重构。As mentioned above, the reconfiguration of predetermined pixel points can be performed with spectral resolution or spatial resolution requirements.
如上所述,在本申请实施例中,可以是一个物理像素对应一组结构单元,但是也可以是多个物理像素为一组对应于一组结构单元。因此,不同于物理像素,在根据本申请实施例的基于光谱芯片的光谱恢复方法中,将对应于一组或多组的结构单元以恢复出一组光谱信息,并将所述单元称为“光谱像素”。进一步,本申请实施例的方案可以用至少一个光谱像素去还原图像。这里,如上所述的预定像素点指的是图像传感器的对应于一组结构单元的物理像素。As described above, in this embodiment of the present application, one physical pixel may correspond to a group of structural units, but it may also be that a group of multiple physical pixels corresponds to a group of structural units. Therefore, unlike physical pixels, in the spectral chip-based spectral recovery method according to the embodiment of the present application, a group of structural units corresponding to one or more groups is recovered to recover a set of spectral information, and the units are called "" Spectral Pixels". Further, the solution of the embodiment of the present application can use at least one spectral pixel to restore the image. Here, the predetermined pixel points as described above refer to physical pixels of the image sensor corresponding to a group of structural units.
此外,在本申请实施例中,在一个物理像素点对应一组结构单元的基础上,可以是选取多少个物理像素点作为一组数据来进行一个光谱像素的恢复,在其它实施例中,也可以实施为选取多少个结构单元作为一组数据进行一个光谱像素的恢复,即结构单元的数目的取值大小影响了传感器的空间分辨率、图像信噪比以及光谱精度。在本申请实施例中,采用可重构的方式可以在不同情况下根据环境情况对结构单元的数目的取值进行动态调整,以获取最优图像效果。In addition, in the embodiment of the present application, on the basis that one physical pixel corresponds to a group of structural units, how many physical pixels may be selected as a group of data to restore a spectral pixel. In other embodiments, also It can be implemented as how many structural units are selected as a set of data to restore one spectral pixel, that is, the value of the number of structural units affects the spatial resolution, image signal-to-noise ratio and spectral accuracy of the sensor. In the embodiment of the present application, in a reconfigurable manner, the value of the number of structural units can be dynamically adjusted according to environmental conditions in different situations, so as to obtain an optimal image effect.
例如,在实际使用过程中,可以根据光谱分辨率或空间分辨率需要采用2×2,3×3,5×5,10×10等规模的物理像素数量作为一组数据进行处理,生成一个光谱像素。值得一提的是,本申请实施例以物理像素与结构单元一对一的关系为例,实际中也可以是多个物理像素对应一组结构单元,当多个物理像素对应一组结构单元时,可以理解为是对结构单元的可重构,即所述 多个物理像素是由结构单元确定,例如2×2可理解为4个结构单元构成光谱像素的一组所述多个物理像素。For example, in actual use, the number of physical pixels of 2×2, 3×3, 5×5, 10×10 and other scales can be used as a set of data for processing according to the spectral resolution or spatial resolution to generate a spectrum pixel. It is worth mentioning that the embodiments of the present application take the one-to-one relationship between physical pixels and structural units as an example. In practice, multiple physical pixels may correspond to a group of structural units, and when multiple physical pixels correspond to a group of structural units , can be understood as the reconfiguration of the structural unit, that is, the multiple physical pixels are determined by the structural unit, for example, 2×2 can be understood as a group of the multiple physical pixels constituting a spectral pixel with four structural units.
图8图示了根据本申请实施例的基于光谱芯片的光谱恢复方法中选择用于恢复光谱的像素点的示例。如图8所示,其示出了使用5×5的方阵,共25个像素点来进行光谱恢复。并且,利用可重构的光谱恢复算法,可选择特定的数量,例如可以根据光谱分辨率需求,选择10×10共100个像素点进行多光谱成像,或采用15×15共225个像素点来进行高光谱成像。FIG. 8 illustrates an example of pixel points selected for spectrum restoration in the spectrum chip-based spectrum restoration method according to an embodiment of the present application. As shown in FIG. 8 , it shows that a 5×5 square matrix with a total of 25 pixels is used for spectral recovery. In addition, using the reconfigurable spectral recovery algorithm, a specific number can be selected. For example, according to the spectral resolution requirements, 10×10 total 100 pixels can be selected for multispectral imaging, or 15×15 total 225 pixels can be used for multispectral imaging. Perform hyperspectral imaging.
也就是,在本申请实施例中,可以与亮度无关地,仅基于光谱分辨率或空间分辨率需求进行光谱像素的可重构。That is, in the embodiment of the present application, the reconfiguration of the spectral pixels may be performed only based on the spectral resolution or spatial resolution requirements irrespective of the brightness.
示例性装置Exemplary device
图16图示了根据本申请实施例的根据本申请实施例的基于光谱芯片的图像传感装置的框图。16 illustrates a block diagram of an image sensing device based on a spectrum chip according to an embodiment of the present application, according to an embodiment of the present application.
如图16所示,根据本申请实施例的基于光谱芯片的图像传感装置400包括:参数确定单元410,用于确定待传感的第一图像参数;像素确定单元420,用于基于所述待传感的第一图像参数确定所述光谱芯片的图像传感器的第一组多个物理像素;数据获取单元430,用于确定所述第一组多个物理像素的第一响应函数并测量所述第一组多个物理像素中的每个物理像素的光强读数;以及,参数计算单元440,用于基于所述光强读数和所述响应函数计算所述待传感的第一图像参数。As shown in FIG. 16 , an image sensing device 400 based on a spectrum chip according to an embodiment of the present application includes: a parameter determination unit 410 for determining a first image parameter to be sensed; a pixel determination unit 420 for The first image parameter to be sensed determines a first group of multiple physical pixels of the image sensor of the spectrum chip; the data acquisition unit 430 is configured to determine the first response function of the first group of multiple physical pixels and measure all the physical pixels. the light intensity reading of each physical pixel in the first group of multiple physical pixels; and, a parameter calculation unit 440, configured to calculate the first image parameter to be sensed based on the light intensity reading and the response function .
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述矩阵确定单元420用于:根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素。In an example, in the above-mentioned spectral chip-based image sensing device 400, the matrix determining unit 420 is configured to: determine the image sensor according to at least one of the spatial resolution, the image signal-to-noise ratio and the spectral accuracy of the image sensor. The first group of multiple physical pixels is described.
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述第一组多个物理像素为所述图像传感器上的2×2、3×3、5×5、10×10物理像素方阵中的至少一个。In one example, in the above-mentioned image sensing device 400 based on a spectrum chip, the first plurality of physical pixels are 2×2, 3×3, 5×5, 10×10 physical pixels on the image sensor At least one of the pixel squares.
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述第一组多个物理像素为所述图像传感器上的预定形状的多个物理像素。In one example, in the above-mentioned spectral chip-based image sensing device 400, the first group of multiple physical pixels are multiple physical pixels of a predetermined shape on the image sensor.
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述矩阵确定单元420根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:响应于环境光的强度为第一 强度,确定第一数目的物理像素方阵;以及,响应于环境光的强度为小于所述第一强度的第二强度,确定第二数目的物理像素方阵,所述第二数目大于所述第一数目。In one example, in the above-mentioned spectral chip-based image sensing device 400, the matrix determining unit 420 determines the first The grouping of the plurality of physical pixels includes: determining a first number of physical pixel square arrays in response to the intensity of the ambient light being a first intensity; and determining a first number of physical pixels in response to the intensity of the ambient light being a second intensity less than the first intensity A square matrix of physical pixels of two numbers, the second number is greater than the first number.
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述矩阵确定单元420根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:响应于所述图像传感器获取的图像中的第一亮度或者第一信噪比的第一区域,确定第一数目的物理像素方阵;以及,响应于所述图像传感器获取的图像中的小于第一亮度的第二亮度或者小于第一信噪比的第二信噪比的第二区域,确定第二数目的物理像素方阵,所述第二数目大于第一数目。In one example, in the above-mentioned spectral chip-based image sensing device 400, the matrix determining unit 420 determines the first The grouping of the plurality of physical pixels includes: determining a first number of physical pixel squares in response to a first region of a first brightness or a first signal-to-noise ratio in an image acquired by the image sensor; and, in response to the image sensor In the acquired image, in a second region with a second brightness smaller than the first brightness or a second signal-to-noise ratio smaller than the first signal-to-noise ratio, determine a second number of physical pixel square matrices, the second number being greater than the first number .
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述矩阵确定单元420根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:响应于所述图像传感器的第一空间分辨率和/或第一光谱精度,确定第一数目的物理像素方阵;以及,响应于所述图像传感器的小于第一空间分辨率的第二空间分辨率和/或大于第一光谱精度的第二光谱精度,确定第二数目的物理像素方阵,所述第二数目大于第一数目。In one example, in the above-mentioned spectral chip-based image sensing device 400, the matrix determining unit 420 determines the first The grouping of the plurality of physical pixels includes: determining a first number of physical pixel squares in response to a first spatial resolution and/or a first spectral accuracy of the image sensor; and, in response to the image sensor being smaller than the first spatial resolution A second spatial resolution of the resolution and/or a second spectral accuracy greater than the first spectral accuracy determines a second number of physical pixel squares, the second number being greater than the first number.
在一个示例中,在上述基于光谱芯片的图像传感装置400中,至少一第一组多个物理像素用以还原图像。In one example, in the above-mentioned image sensing device 400 based on a spectral chip, at least one first group of multiple physical pixels is used to restore an image.
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述参数确定单元410进一步用于确定待传感的第二图像参数;所述像素确定单元420进一步用于基于所述待传感的第二图像参数确定所述光谱芯片的图像传感器的第二组多个物理像素;所述数据获取单元430进一步用于确定所述第二组多个物理像素的第二响应函数并确定所述第二组多个物理像素中的每个物理像素的光强读数;以及,所述参数计算单元440进一步用于基于所述光强读数和所述响应函数计算所述待传感的第二图像参数。In an example, in the above-mentioned spectral chip-based image sensing device 400, the parameter determining unit 410 is further configured to determine the second image parameter to be sensed; the pixel determining unit 420 is further configured to determine the second image parameter to be sensed based on the The sensed second image parameter determines a second group of multiple physical pixels of the image sensor of the spectrum chip; the data acquisition unit 430 is further configured to determine a second response function of the second group of multiple physical pixels and determine The light intensity reading of each physical pixel in the second group of multiple physical pixels; and, the parameter calculation unit 440 is further configured to calculate the to-be-sensed first based on the light intensity reading and the response function. Two image parameters.
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述光强测量单元430用于:基于所述第二组多个物理像素与所述第一组多个物理像素的对应关系,获取所述第二组多个物理像素中与所述第一组多个物理像素对应的物理像素的光强读数。In one example, in the above-mentioned spectral chip-based image sensing device 400, the light intensity measurement unit 430 is configured to: based on the correspondence between the second group of physical pixels and the first group of physical pixels relationship, and obtain the light intensity readings of the physical pixels corresponding to the first group of the plurality of physical pixels in the second group of the plurality of physical pixels.
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述第一 图像参数为色彩数据,所述第二图像参数为色温数据。In one example, in the above-mentioned spectral chip-based image sensing device 400, the first image parameter is color data, and the second image parameter is color temperature data.
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述第一组多个物理像素为第一数目的物理像素方阵,所述第二组多个物理像素为第二数目的物理像素方阵,所述第二数目大于所述第一数目。In one example, in the above-mentioned image sensing device 400 based on a spectral chip, the first group of multiple physical pixels is a square matrix of physical pixels of a first number, and the second group of multiple physical pixels is a second number of physical pixels The physical pixel square matrix of , the second number is greater than the first number.
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述矩阵确定单元420用于:基于所述待传感的色温数据确定待传感色温数据的所述图像传感器的第一区域和第二区域;以及,分别确定所述第一区域和所述第二区域的多个物理像素的响应函数以获得所述第二组多个物理像素的响应函数。In an example, in the above-mentioned image sensing device 400 based on a spectrum chip, the matrix determining unit 420 is configured to: determine the first image sensor of the image sensor of the color temperature data to be sensed based on the color temperature data to be sensed an area and a second area; and, determining response functions of a plurality of physical pixels of the first area and the second area, respectively, to obtain response functions of the second plurality of physical pixels.
在一个示例中,在上述基于光谱芯片的图像传感装置400中,所述光谱芯片是用于计算光谱装置的接收350到1000纳米范围波段的光的光谱芯片。In one example, in the above-mentioned spectral chip-based image sensing device 400 , the spectral chip is a spectral chip used for computing a spectral device that receives light in a wavelength band of 350 to 1000 nanometers.
这里,本领域技术人员可以理解,上述基于光谱芯片的图像传感装置400中的各个单元和模块的具体功能和操作已经在上面参考图1到图5描述的基于光谱芯片的图像传感方法中详细介绍,并因此,将省略其重复描述。Here, those skilled in the art can understand that the specific functions and operations of each unit and module in the above-mentioned spectral chip-based image sensing device 400 have been described in the spectral chip-based image sensing method described above with reference to FIGS. 1 to 5 . It is introduced in detail, and thus, its repeated description will be omitted.
图17图示了根据本申请实施例的基于光谱芯片的光谱恢复装置的框图。FIG. 17 illustrates a block diagram of a spectral chip-based spectral recovery apparatus according to an embodiment of the present application.
如图17所示,根据本申请实施例的基于光谱芯片的光谱恢复装置500包括:像素确定单元510,用于基于预定条件确定所述光谱芯片上的预定像素点;以及,光谱恢复单元520,用于使用所述光谱芯片上的所述预定像素点进行光谱恢复。As shown in FIG. 17 , the spectrum recovery device 500 based on a spectrum chip according to an embodiment of the present application includes: a pixel determination unit 510, configured to determine a predetermined pixel point on the spectrum chip based on a predetermined condition; and, a spectrum recovery unit 520, for spectrum recovery using the predetermined pixel points on the spectrum chip.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述像素确定单元510用于:基于亮度分布以及光谱分辨率需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点。In an example, in the above-mentioned spectral chip-based spectral restoration device 500, the pixel determination unit 510 is configured to: determine the pixel on the spectral chip based on at least one of luminance distribution and spectral resolution requirements and spatial resolution requirements. predetermined pixels.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述像素确定单元510基于亮度分布以及光谱分辨率需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点包括:获取所述光谱芯片的图像传感器输出的图像数据;对所述图像数据进行边缘检测;以及,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点。In an example, in the above-mentioned spectral chip-based spectral restoration apparatus 500, the pixel determination unit 510 determines predetermined pixel points on the spectral chip based on luminance distribution and at least one of spectral resolution requirements and spatial resolution requirements The method includes: acquiring image data output by an image sensor of the spectrum chip; performing edge detection on the image data; and determining predetermined pixel points on the spectrum chip based on the edge detection result of the image data.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述像素确定单元510对所述图像数据进行边缘检测包括:对所述图像数据进行均衡;对均衡后的所述图像数据进行降噪;以及,对降噪后的所述图像数据进行边缘检测。In an example, in the above-mentioned spectral chip-based spectral restoration apparatus 500, the pixel determination unit 510 performs edge detection on the image data includes: equalizing the image data; denoising; and, performing edge detection on the denoised image data.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述像素确定单元510对均衡后的所述图像数据进行降噪包括:根据图像分辨率和/或所述图像传感器对应的滤光结构的特性,选择预定大小的滤波核对所述均衡后的图像数据进行滤波。In an example, in the above-mentioned spectral chip-based spectral restoration apparatus 500, the pixel determination unit 510 performs noise reduction on the equalized image data including: according to the image resolution and/or the filter corresponding to the image sensor According to the characteristics of the optical structure, a filter kernel of a predetermined size is selected to filter the equalized image data.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述像素确定单元510对降噪后的所述图像数据进行边缘检测包括:使用边缘检测算子检测所述降噪后的图像数据中的边缘区域;以及,对所述边缘区域进行膨胀操作。In an example, in the above-mentioned spectral chip-based spectral restoration apparatus 500, the pixel determination unit 510 performs edge detection on the denoised image data including: detecting the denoised image by using an edge detection operator an edge region in the data; and, performing a dilation operation on the edge region.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述像素确定单元510基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点包括:基于所述图像数据的边缘检测结果,确定所述光谱芯片上的具有高于预定阈值的光强一致性的预定像素点,所述预定像素点是基于像素中心点的邻近且连通的预定数目的像素点。In an example, in the above-mentioned spectral chip-based spectral restoration apparatus 500, the pixel determination unit 510 determining a predetermined pixel point on the spectral chip based on the edge detection result of the image data includes: based on the image data Based on the edge detection result, a predetermined pixel point on the spectrum chip with light intensity consistency higher than a predetermined threshold is determined, and the predetermined pixel point is a predetermined number of adjacent and connected pixel points based on the pixel center point.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述像素确定单元510基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点包括:基于所述图像数据的边缘检测结果,确定所述光谱芯片上的具有不同数目的多组预定像素点。In an example, in the above-mentioned spectral chip-based spectral restoration apparatus 500, the pixel determination unit 510 determining a predetermined pixel point on the spectral chip based on the edge detection result of the image data includes: based on the image data Based on the edge detection result, multiple groups of predetermined pixel points with different numbers on the spectrum chip are determined.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述具有不同数目的多组预定像素点包括2×2、3×3、5×5、10×10的物理像素阵列。In one example, in the above-mentioned spectral chip-based spectral restoration device 500, the plurality of groups of predetermined pixel points with different numbers include 2×2, 3×3, 5×5, and 10×10 physical pixel arrays.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述预定像素点为所述图像传感器上的预定形状的多个物理像素。In one example, in the above-mentioned spectral chip-based spectral restoration apparatus 500, the predetermined pixel points are a plurality of physical pixels of a predetermined shape on the image sensor.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述像素确定单元510基于亮度分布以及光谱分辨率需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点包括:响应于所述光谱分辨率需求大于第一预定阈值,确定大于第一预定数目的所述预定像素点;和/或,响应于所述空间分辨率需求大于第二预定阈值,确定小于第二预定数目的所述预定像素点。In an example, in the above-mentioned spectral chip-based spectral restoration apparatus 500, the pixel determination unit 510 determines predetermined pixel points on the spectral chip based on luminance distribution and at least one of spectral resolution requirements and spatial resolution requirements comprising: in response to the spectral resolution requirement being greater than a first predetermined threshold, determining that the predetermined number of pixel points is greater than a first predetermined number; and/or, in response to the spatial resolution requirement being greater than a second predetermined threshold, determining that the number is smaller than the first predetermined number of pixels. Two predetermined number of said predetermined pixel points.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述光谱恢复单元520用于:使用所述光谱芯片上的所述预定像素点以动态调整的恢复步长进行光谱恢复。In an example, in the above spectrum chip-based spectrum restoration apparatus 500, the spectrum restoration unit 520 is configured to perform spectrum restoration with a dynamically adjusted restoration step size using the predetermined pixel points on the spectrum chip.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述光谱恢复单元520用于:基于待恢复出的光谱的应用情况,动态调整用于所述光谱恢复的波长采样间隔。In an example, in the above-mentioned spectrum chip-based spectrum restoration apparatus 500, the spectrum restoration unit 520 is configured to: dynamically adjust the wavelength sampling interval used for the spectrum restoration based on the application of the spectrum to be restored.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述像素确定单元510用于:基于波长采样间隔确定所述光谱芯片上的预定像素点的数目。In an example, in the above-mentioned spectrum chip-based spectrum recovery apparatus 500, the pixel determination unit 510 is configured to: determine the number of predetermined pixel points on the spectrum chip based on a wavelength sampling interval.
在一个示例中,在上述基于光谱芯片的光谱恢复装置500中,所述光谱芯片是用于计算光谱仪的接收350到1000纳米范围波段的光的光谱芯片In an example, in the above-mentioned spectrum chip-based spectrum recovery apparatus 500, the spectrum chip is a spectrum chip used for calculating a spectrometer that receives light in a wavelength band of 350 to 1000 nanometers
这里,本领域技术人员可以理解,上述基于光谱芯片的光谱恢复装置500中的各个单元和模块的具体功能和操作已经在上面参考图6到图15描述的基于光谱芯片的光谱恢复方法中详细介绍,并因此,将省略其重复描述。Here, those skilled in the art can understand that the specific functions and operations of each unit and module in the above-mentioned spectral chip-based spectral recovery apparatus 500 have been described in detail in the spectral chip-based spectral recovery method described above with reference to FIGS. 6 to 15 . , and therefore, a repeated description thereof will be omitted.
如上所述,根据本申请实施例的基于光谱芯片的图像传感装置400和光谱恢复装置500可以实现在各种终端设备中,例如光谱仪,或者设置在云端的服务器中。在一个示例中,根据本申请实施例的基于光谱芯片的图像传感装置400和光谱恢复装置500可以作为一个软件模块和/或硬件模块而集成到所述终端设备中。例如,该基于光谱芯片的图像传感装置400和光谱恢复装置500可以是该终端设备的操作系统中的一个软件模块,或者可以是针对于该终端设备所开发的一个应用程序;当然,该基于光谱芯片的图像传感装置400和光谱恢复装置500同样可以是该终端设备的众多硬件模块之一。As described above, the spectral chip-based image sensing apparatus 400 and the spectral recovery apparatus 500 according to the embodiments of the present application may be implemented in various terminal devices, such as spectrometers, or set in a server in the cloud. In one example, the spectral chip-based image sensing apparatus 400 and the spectral recovery apparatus 500 according to the embodiments of the present application may be integrated into the terminal device as a software module and/or a hardware module. For example, the spectrum chip-based image sensing device 400 and the spectrum recovery device 500 may be a software module in the operating system of the terminal device, or may be an application program developed for the terminal device; The image sensing device 400 and the spectrum recovery device 500 of the spectrum chip can also be one of many hardware modules of the terminal device.
替换地,在另一示例中,该基于光谱芯片的图像传感装置400和光谱恢复装置500与该终端设备也可以是分立的设备,并且该基于光谱芯片的图像传感装置400和光谱恢复装置500可以通过有线和/或无线网络连接到该终端设备,并且按照约定的数据格式来传输交互信息。Alternatively, in another example, the spectrum chip-based image sensing apparatus 400 and the spectrum restoration apparatus 500 and the terminal device may also be separate devices, and the spectrum chip-based image sensing apparatus 400 and the spectrum restoration apparatus 500 may be connected to the terminal device through a wired and/or wireless network, and transmit interaction information according to an agreed data format.
示例性电子设备Exemplary Electronics
下面,参考图18来描述根据本申请实施例的电子设备。Hereinafter, an electronic device according to an embodiment of the present application will be described with reference to FIG. 18 .
图18图示了根据本申请实施例的电子设备的框图。18 illustrates a block diagram of an electronic device according to an embodiment of the present application.
如图18所示,电子设备10包括一个或多个处理器11和存储器12。As shown in FIG. 18 , the electronic device 10 includes one or more processors 11 and a memory 12 .
处理器11可以是中央处理单元(CPU)或者具有数据处理能力和/或指令执行能力的其他形式的处理单元,并且可以控制电子设备10中的其他组件以执行期望的功能。 Processor 11 may be a central processing unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in electronic device 10 to perform desired functions.
存储器12可以包括一个或多个计算机程序产品,所述计算机程序产品可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。在所述计算机可读存储介质上可以存储一个或多个计算机程序指令,处理器11可以运行所述程序指令,以实现上文所述的本申请的各个实施例的基于光谱芯片的图像传感方法和光谱恢复方法以及/或者其他期望的功能。在所述计算机可读存储介质中还可以存储诸如光强数据、相应参数等各种内容。 Memory 12 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and/or cache memory, or the like. The non-volatile memory may include, for example, read only memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may execute the program instructions to implement the spectral chip-based image sensing of the various embodiments of the present application described above Methods and spectral recovery methods and/or other desired functions. Various contents such as light intensity data, corresponding parameters and the like may also be stored in the computer-readable storage medium.
在一个示例中,电子设备10还可以包括:输入装置13和输出装置14,这些组件通过总线系统和/或其他形式的连接机构(未示出)互连。In one example, the electronic device 10 may also include an input device 13 and an output device 14 interconnected by a bus system and/or other form of connection mechanism (not shown).
例如,该输入装置13可以是例如键盘、鼠标等等。For example, the input device 13 may be, for example, a keyboard, a mouse, or the like.
该输出装置14可以向外部输出各种信息,例如图像传感参数和光谱恢复结果等。该输出设备14可以包括例如显示器、扬声器、打印机、以及通信网络及其所连接的远程输出设备等等。The output device 14 can output various information, such as image sensing parameters and spectral restoration results, to the outside. The output devices 14 may include, for example, displays, speakers, printers, and communication networks and their connected remote output devices, among others.
当然,为了简化,图18中仅示出了该电子设备10中与本申请有关的组件中的一些,省略了诸如总线、输入/输出接口等等的组件。除此之外,根据具体应用情况,电子设备10还可以包括任何其他适当的组件。Of course, for simplicity, only some of the components in the electronic device 10 related to the present application are shown in FIG. 18 , and components such as buses, input/output interfaces and the like are omitted. Besides, the electronic device 10 may also include any other suitable components according to the specific application.
示例性计算机程序产品和计算机可读存储介质Exemplary computer program product and computer readable storage medium
除了上述方法和设备以外,本申请的实施例还可以是计算机程序产品,其包括计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本申请各种实施例的基于光谱芯片的图像传感方法和光谱恢复方法中的步骤。In addition to the methods and apparatuses described above, embodiments of the present application may also be computer program products comprising computer program instructions that, when executed by a processor, cause the processor to perform the "exemplary methods" described above in this specification The steps in the spectral chip-based image sensing method and the spectral recovery method according to various embodiments of the present application described in the section.
所述计算机程序产品可以以一种或多种程序设计语言的任意组合来编写用于执行本申请实施例操作的程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、C++等,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。The computer program product can write program codes for performing the operations of the embodiments of the present application in any combination of one or more programming languages, including object-oriented programming languages, such as Java, C++, etc. , also includes conventional procedural programming languages, such as "C" language or similar programming languages. The program code may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on.
此外,本申请的实施例还可以是计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本申请各种实施例的基于光谱芯片的图像传感方法和光谱恢复方法中的步骤。In addition, embodiments of the present application may also be computer-readable storage media having computer program instructions stored thereon, the computer program instructions, when executed by a processor, cause the processor to perform the above-mentioned "Example Method" section of this specification Steps in a spectral chip-based image sensing method and a spectral recovery method according to various embodiments of the present application described in .
所述计算机可读存储介质可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以包括但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The computer-readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses or devices, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
以上结合具体实施例描述了本申请的基本原理,但是,需要指出的是,在本申请中提及的优点、优势、效果等仅是示例而非限制,不能认为这些优点、优势、效果等是本申请的各个实施例必须具备的。另外,上述公开的具体细节仅是为了示例的作用和便于理解的作用,而非限制,上述细节并不限制本申请为必须采用上述具体的细节来实现。The basic principles of the present application have been described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, advantages, effects, etc. mentioned in the present application are only examples rather than limitations, and these advantages, advantages, effects, etc., are not considered to be Required for each embodiment of this application. In addition, the specific details disclosed above are only for the purpose of example and easy understanding, rather than limiting, and the above-mentioned details do not limit the application to be implemented by using the above-mentioned specific details.
本申请中涉及的器件、装置、设备、系统的方框图仅作为例示性的例子并且不意图要求或暗示必须按照方框图示出的方式进行连接、布置、配置。如本领域技术人员将认识到的,可以按任意方式连接、布置、配置这些器件、装置、设备、系统。诸如“包括”、“包含”、“具有”等等的词语是开放性词汇,指“包括但不限于”,且可与其互换使用。这里所使用的词汇“或”和“和”指词汇“和/或”,且可与其互换使用,除非上下文明确指示不是如此。这里所使用的词汇“诸如”指词组“诸如但不限于”,且可与其互换使用。The block diagrams of devices, apparatus, apparatuses, and systems referred to in this application are merely illustrative examples and are not intended to require or imply that the connections, arrangements, or configurations must be in the manner shown in the block diagrams. As those skilled in the art will appreciate, these means, apparatuses, apparatuses, systems may be connected, arranged, configured in any manner. Words such as "including", "including", "having" and the like are open-ended words meaning "including but not limited to" and are used interchangeably therewith. As used herein, the words "or" and "and" refer to and are used interchangeably with the word "and/or" unless the context clearly dictates otherwise. As used herein, the word "such as" refers to and is used interchangeably with the phrase "such as but not limited to".
还需要指出的是,在本申请的装置、设备和方法中,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本申请的等效方案。It should also be pointed out that in the apparatus, equipment and method of the present application, each component or each step can be decomposed and/or recombined. These disaggregations and/or recombinations should be considered as equivalents of the present application.
提供所公开的方面的以上描述以使本领域的任何技术人员能够做出或者使用本申请。对这些方面的各种修改对于本领域技术人员而言是非常显而易见的,并且在此定义的一般原理可以应用于其他方面而不脱离本申请的范 围。因此,本申请不意图被限制到在此示出的方面,而是按照与在此公开的原理和新颖的特征一致的最宽范围。The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Therefore, this application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
为了例示和描述的目的已经给出了以上描述。此外,此描述不意图将本申请的实施例限制到在此公开的形式。尽管以上已经讨论了多个示例方面和实施例,但是本领域技术人员将认识到其某些变型、修改、改变、添加和子组合。The foregoing description has been presented for the purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the application to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims (33)

  1. 一种基于光谱芯片的图像传感方法,其特征在于,包括:An image sensing method based on a spectrum chip, comprising:
    确定待传感的第一图像参数;determining the first image parameter to be sensed;
    基于所述待传感的第一图像参数确定所述光谱芯片的图像传感器的第一组多个物理像素;determining a first plurality of physical pixels of the image sensor of the spectrum chip based on the first image parameter to be sensed;
    确定所述第一组多个物理像素的响应函数并测量所述第一组多个物理像素中的每个物理像素的光强读数;以及determining a response function of the first plurality of physical pixels and measuring light intensity readings for each of the first plurality of physical pixels; and
    基于所述光强读数和所述响应函数计算所述待传感的第一图像参数。The first image parameter to be sensed is calculated based on the light intensity reading and the response function.
  2. 如权利要求1所述的基于光谱芯片的图像传感方法,其特征在于,基于所述待传感的第一图像参数确定用于图像传感的所述光谱芯片的第一组多个物理像素包括:The image sensing method based on a spectrum chip according to claim 1, wherein a first group of a plurality of physical pixels of the spectrum chip used for image sensing is determined based on the first image parameter to be sensed include:
    根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素。The first plurality of physical pixels is determined based on at least one of a spatial resolution of the image sensor, an image signal-to-noise ratio, and spectral accuracy.
  3. 如权利要求2所述的基于光谱芯片的图像传感方法,其特征在于,所述第一组多个物理像素为所述图像传感器上的2×2、3×3、5×5、10×10物理像素方阵中的至少一个。The image sensing method based on a spectrum chip according to claim 2, wherein the first group of multiple physical pixels is 2×2, 3×3, 5×5, 10× on the image sensor At least one of the 10 physical pixel squares.
  4. 如权利要求2所述的基于光谱芯片的图像传感方法,其特征在于,所述第一组多个物理像素为所述图像传感器上的预定形状的多个物理像素。The image sensing method based on a spectrum chip according to claim 2, wherein the first group of multiple physical pixels are multiple physical pixels of a predetermined shape on the image sensor.
  5. 如权利要求2所述的基于光谱芯片的图像传感方法,其特征在于,根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:The image sensing method based on a spectrum chip according to claim 2, wherein the first set of multiple physical properties is determined according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor. Pixels include:
    响应于环境光的强度为第一强度,确定第一数目的物理像素方阵;以及determining a first number of physical pixel squares in response to the intensity of the ambient light being the first intensity; and
    响应于环境光的强度为小于所述第一强度的第二强度,确定第二数目的物理像素方阵,所述第二数目大于所述第一数目。In response to the intensity of the ambient light being a second intensity less than the first intensity, a second number of physical pixel squares is determined, the second number being greater than the first number.
  6. 如权利要求2所述的基于光谱芯片的图像传感方法,其特征在于,根 据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:The image sensing method based on a spectrum chip according to claim 2, wherein the first set of multiple physical properties is determined according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor. Pixels include:
    响应于所述图像传感器获取的图像中的第一亮度或者第一信噪比的第一区域,确定第一数目的物理像素方阵;以及determining a first number of physical pixel squares in response to a first brightness or a first region of a first signal-to-noise ratio in an image acquired by the image sensor; and
    响应于所述图像传感器获取的图像中的小于第一亮度的第二亮度或者小于第一信噪比的第二信噪比的第二区域,确定第二数目的物理像素方阵,所述第二数目大于第一数目。In response to a second area of a second brightness smaller than the first brightness or a second signal-to-noise ratio less than the first signal-to-noise ratio in the image acquired by the image sensor, determining a second number of physical pixel square matrices, the first The second number is greater than the first number.
  7. 如权利要求2所述的基于光谱芯片的图像传感方法,其特征在于,根据所述图像传感器的空间分辨率,图像信噪比和光谱精度中的至少一个确定所述第一组多个物理像素包括:The image sensing method based on a spectrum chip according to claim 2, wherein the first set of multiple physical properties is determined according to at least one of spatial resolution, image signal-to-noise ratio and spectral accuracy of the image sensor. Pixels include:
    响应于所述图像传感器的第一空间分辨率和/或第一光谱精度,确定第一数目的物理像素方阵;以及determining a first number of physical pixel squares in response to a first spatial resolution and/or a first spectral accuracy of the image sensor; and
    响应于所述图像传感器的小于第一空间分辨率的第二空间分辨率和/或大于第一光谱精度的第二光谱精度,确定第二数目的物理像素方阵,所述第二数目大于第一数目。In response to a second spatial resolution of the image sensor that is less than the first spatial resolution and/or a second spectral accuracy greater than the first spectral accuracy, determining a second number of physical pixel squares, the second number being greater than the first a number.
  8. 如权利要求1所述的基于光谱芯片的图像传感方法,其特征在于,至少一所述第一组多个物理像素用以还原图像。The image sensing method based on a spectrum chip according to claim 1, wherein at least one of the first group of multiple physical pixels is used to restore an image.
  9. 如权利要求1所述的基于光谱芯片的图像传感方法,其特征在于,进一步包括:The image sensing method based on a spectrum chip according to claim 1, further comprising:
    确定待传感的第二图像参数;determining the second image parameter to be sensed;
    基于所述待传感的第二图像参数确定所述光谱芯片的图像传感器的第二组多个物理像素;determining a second plurality of physical pixels of the image sensor of the spectrum chip based on the second image parameter to be sensed;
    确定所述第二组多个物理像素的响应函数并确定所述第二组多个物理像素中的每个物理像素的光强读数;以及determining a response function for the second plurality of physical pixels and determining a light intensity reading for each physical pixel in the second plurality of physical pixels; and
    基于所述光强读数和所述响应函数计算所述待传感的第二图像参数。The second image parameter to be sensed is calculated based on the light intensity reading and the response function.
  10. 如权利要求9所述的基于光谱芯片的图像传感方法,其特征在于,确定所述第二组多个物理像素中的每个物理像素的光强读数包括:The spectral chip-based image sensing method according to claim 9, wherein determining the light intensity reading of each physical pixel in the second group of multiple physical pixels comprises:
    基于所述第二组多个物理像素与所述第一组多个物理像素的对应关系,获取所述第二组多个物理像素中与所述第一组多个物理像素对应的物理像素的光强读数。Based on the correspondence between the plurality of physical pixels in the second group and the plurality of physical pixels in the first group, acquiring the physical pixels of the plurality of physical pixels in the second group corresponding to the physical pixels in the first group Light intensity reading.
  11. 如权利要求10所述的基于光谱芯片的图像传感方法,其特征在于,所述第一图像参数为色彩数据,所述第二图像参数为色温数据。The image sensing method based on a spectrum chip according to claim 10, wherein the first image parameter is color data, and the second image parameter is color temperature data.
  12. 如权利要求11所述的基于光谱芯片的图像传感方法,其特征在于,所述第一组多个物理像素为第一数目的物理像素方阵,所述第二组多个物理像素为第二数目的物理像素方阵,所述第二数目大于所述第一数目。The image sensing method based on a spectrum chip according to claim 11, wherein the first group of physical pixels is a square matrix of physical pixels of a first number, and the second group of physical pixels is a first number of physical pixels. A square matrix of physical pixels of two numbers, the second number is greater than the first number.
  13. 如权利要求11所述的基于光谱芯片的图像传感方法,其特征在于,确定所述第二组多个物理像素的响应函数包括:The image sensing method based on a spectrum chip according to claim 11, wherein determining the response function of the second group of multiple physical pixels comprises:
    基于所述待传感的色温数据确定待传感色温数据的所述图像传感器的第一区域和第二区域;以及determining, based on the color temperature data to be sensed, a first area and a second area of the image sensor for which color temperature data to be sensed; and
    分别确定所述第一区域和所述第二区域的多个物理像素的响应函数以获得所述第二组多个物理像素的响应函数。The response functions of the plurality of physical pixels of the first region and the second region are determined respectively to obtain the response functions of the second plurality of physical pixels.
  14. 如权利要求1到13中任意一项所述的基于光谱芯片的图像传感方法,其特征在于,所述光谱芯片是用于计算光谱装置的接收350到1000纳米范围波段的光的光谱芯片。The image sensing method based on a spectrum chip according to any one of claims 1 to 13, wherein the spectrum chip is a spectrum chip for receiving light in a wavelength band of 350 to 1000 nanometers of a computing spectrum device.
  15. 一种基于光谱芯片的图像传感装置,其特征在于,包括:An image sensing device based on a spectrum chip, characterized in that it includes:
    参数确定单元,用于确定待传感的第一图像参数;a parameter determination unit, configured to determine the first image parameter to be sensed;
    像素确定单元,用于基于所述待传感的第一图像参数确定所述光谱芯片的图像传感器的第一组多个物理像素;a pixel determination unit, configured to determine a first group of multiple physical pixels of the image sensor of the spectrum chip based on the first image parameter to be sensed;
    数据获取单元,用于确定所述第一组多个物理像素的响应函数并测量所述第一组多个物理像素中的每个物理像素的光强读数;以及a data acquisition unit for determining a response function of the first plurality of physical pixels and measuring light intensity readings for each of the first plurality of physical pixels; and
    参数计算单元,用于基于所述光强读数和所述响应函数计算所述待传感的第一图像参数。A parameter calculation unit, configured to calculate the first image parameter to be sensed based on the light intensity reading and the response function.
  16. 一种基于光谱芯片的光谱恢复方法,其特征在于,包括:A spectral recovery method based on a spectral chip, comprising:
    基于预定条件确定所述光谱芯片上的预定像素点;以及determining predetermined pixel points on the spectrum chip based on predetermined conditions; and
    使用所述光谱芯片上的所述预定像素点进行光谱恢复。Spectral recovery is performed using the predetermined pixel points on the spectrum chip.
  17. 如权利要求16所述的基于光谱芯片的光谱恢复方法,其特征在于,基于确定所述光谱芯片上的预定像素点包括:The spectrum recovery method based on a spectrum chip according to claim 16, wherein determining the predetermined pixel points on the spectrum chip comprises:
    基于亮度分布以及光谱分辨率需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点。The predetermined pixel points on the spectral chip are determined based on the luminance distribution and at least one of spectral resolution requirements and spatial resolution requirements.
  18. 如权利要求17所述的基于光谱芯片的光谱恢复方法,其特征在于,基于亮度分布以及光谱分辨率需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点包括:The spectrum recovery method based on a spectrum chip according to claim 17, wherein determining the predetermined pixel points on the spectrum chip based on at least one of luminance distribution and spectral resolution requirements and spatial resolution requirements comprises:
    获取所述光谱芯片的图像传感器输出的图像数据;acquiring image data output by an image sensor of the spectrum chip;
    对所述图像数据进行边缘检测;以及performing edge detection on the image data; and
    基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点。A predetermined pixel point on the spectrum chip is determined based on the edge detection result of the image data.
  19. 如权利要求18所述的基于光谱芯片的光谱恢复方法,其特征在于,对所述图像数据进行边缘检测包括:The spectrum recovery method based on a spectrum chip according to claim 18, wherein performing edge detection on the image data comprises:
    对所述图像数据进行均衡;equalizing the image data;
    对均衡后的所述图像数据进行降噪;以及denoising the equalized image data; and
    对降噪后的所述图像数据进行边缘检测。Edge detection is performed on the denoised image data.
  20. 如权利要求19所述的基于光谱芯片的光谱恢复方法,其特征在于,对均衡后的所述图像数据进行降噪包括:The spectrum recovery method based on a spectrum chip according to claim 19, wherein performing noise reduction on the equalized image data comprises:
    根据图像分辨率和/或所述图像传感器对应的滤光结构的特性,选择预定大小的滤波核对所述均衡后的图像数据进行滤波。According to the image resolution and/or the characteristics of the filter structure corresponding to the image sensor, a filter kernel of a predetermined size is selected to filter the equalized image data.
  21. 如权利要求19所述的基于光谱芯片的光谱恢复方法,其特征在于,对降噪后的所述图像数据进行边缘检测包括:The spectrum recovery method based on a spectrum chip according to claim 19, wherein performing edge detection on the denoised image data comprises:
    使用边缘检测算子检测所述降噪后的图像数据中的边缘区域;以及detecting edge regions in the denoised image data using an edge detection operator; and
    对所述边缘区域进行膨胀操作。A dilation operation is performed on the edge region.
  22. 如权利要求18所述的基于光谱芯片的光谱恢复方法,其特征在于,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点包括:The spectrum recovery method based on a spectrum chip according to claim 18, wherein determining the predetermined pixel point on the spectrum chip based on the edge detection result of the image data comprises:
    基于所述图像数据的边缘检测结果,确定所述光谱芯片上的具有高于预定阈值的光强一致性的预定像素点,所述预定像素点是基于像素中心点的邻近且连通的预定数目的像素点。Based on the edge detection result of the image data, a predetermined pixel point on the spectrum chip having a light intensity consistency higher than a predetermined threshold is determined, and the predetermined pixel point is based on a predetermined number of adjacent and connected pixel center points. pixel.
  23. 如权利要求22所述的基于光谱芯片的光谱恢复方法,其特征在于,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点包括:The spectrum recovery method based on a spectrum chip according to claim 22, wherein determining the predetermined pixel point on the spectrum chip based on the edge detection result of the image data comprises:
    基于所述图像数据的边缘检测结果,确定所述光谱芯片上的具有不同数目的多组预定像素点。Based on the edge detection result of the image data, a plurality of groups of predetermined pixel points with different numbers are determined on the spectrum chip.
  24. 如权利要求17或23所述的基于光谱芯片的光谱恢复方法,其特征在于,所述具有不同数目的多组预定像素点包括2×2,3×3、5×5、10×10的物理像素阵列。The spectrum recovery method based on a spectrum chip according to claim 17 or 23, wherein the plurality of groups of predetermined pixel points with different numbers include 2×2, 3×3, 5×5, 10×10 physical pixel array.
  25. 如权利要求22所述的基于光谱芯片的光谱恢复方法,其特征在于,所述预定像素点为所述图像传感器上的预定形状的多个物理像素。The spectrum recovery method based on a spectrum chip according to claim 22, wherein the predetermined pixel point is a plurality of physical pixels of a predetermined shape on the image sensor.
  26. 如权利要求17所述的基于光谱芯片的光谱恢复方法,其特征在于,基于亮度分布以及光谱分辨率需求、空间分辨率需求中的至少一个确定所述光谱芯片上的预定像素点包括:The spectrum recovery method based on a spectrum chip according to claim 17, wherein determining the predetermined pixel points on the spectrum chip based on at least one of luminance distribution and spectral resolution requirements and spatial resolution requirements comprises:
    响应于所述光谱分辨率需求大于第一预定阈值,确定大于第一预定数目的所述预定像素点;和/或in response to the spectral resolution requirement being greater than a first predetermined threshold, determining that the predetermined number of pixels is greater than a first predetermined number; and/or
    响应于所述空间分辨率需求大于第二预定阈值,确定小于第二预定数目的所述预定像素点。In response to the spatial resolution requirement being greater than a second predetermined threshold, determining that the predetermined number of pixels is less than a second predetermined number.
  27. 如权利要求16所述的基于光谱芯片的光谱恢复方法,其特征在于,使用所述光谱芯片上的所述预定像素点进行光谱恢复包括:The spectrum recovery method based on a spectrum chip according to claim 16, wherein the performing spectrum recovery using the predetermined pixel points on the spectrum chip comprises:
    使用所述光谱芯片上的所述预定像素点以动态调整的恢复步长进行光谱恢复。Spectral recovery is performed with a dynamically adjusted recovery step size using the predetermined pixel points on the spectroscopic chip.
  28. 如权利要求16所述的基于光谱芯片的光谱恢复方法,其特征在于,使用所述光谱芯片上的所述预定像素点进行光谱恢复包括:The spectrum recovery method based on a spectrum chip according to claim 16, wherein the performing spectrum recovery using the predetermined pixel points on the spectrum chip comprises:
    基于待恢复出的光谱的应用情况,动态调整用于所述光谱恢复的波长采样间隔。Based on the application of the spectrum to be recovered, the wavelength sampling interval used for the spectrum recovery is dynamically adjusted.
  29. 如权利要求28所述的基于光谱芯片的光谱恢复方法,其特征在于,基于所述图像数据的边缘检测结果确定所述光谱芯片上的预定像素点包括:The spectrum recovery method based on a spectrum chip according to claim 28, wherein determining the predetermined pixel point on the spectrum chip based on the edge detection result of the image data comprises:
    基于波长采样间隔确定所述光谱芯片上的预定像素点的数目。The number of predetermined pixel points on the spectrum chip is determined based on the wavelength sampling interval.
  30. 如权利要求16到29中任意一项所述的基于光谱芯片的光谱恢复方法,其特征在于,所述光谱芯片是用于计算光谱仪的接收350到1000纳米范围波段的光的光谱芯片。The spectrum recovery method based on a spectrum chip according to any one of claims 16 to 29, wherein the spectrum chip is a spectrum chip used for calculating a spectrometer that receives light in a wavelength band of 350 to 1000 nanometers.
  31. 一种基于光谱芯片的光谱恢复装置,其特征在于,包括:A spectrum recovery device based on a spectrum chip, characterized in that it comprises:
    像素确定单元,用于基于预定条件确定所述光谱芯片上的预定像素点;以及a pixel determination unit, configured to determine a predetermined pixel point on the spectrum chip based on a predetermined condition; and
    光谱恢复单元,用于使用所述光谱芯片上的所述预定像素点进行光谱恢复。A spectral recovery unit, configured to perform spectral recovery using the predetermined pixel points on the spectral chip.
  32. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    处理器;以及processor; and
    存储器,在所述存储器中存储有计算机程序指令,所述计算机程序指令在所述处理器运行时使得所述处理器执行如权利要求1-14中任意一项所述的基于光谱芯片的图像传感方法或者如权利要求16-30中任意一项所述的基于光谱芯片的光谱恢复方法。A memory in which computer program instructions are stored, the computer program instructions causing the processor to perform the spectroscopic chip-based image transmission according to any one of claims 1-14 when the processor is run. The sensor method or the spectrum recovery method based on a spectrum chip according to any one of claims 16-30.
  33. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序指令,当所述计算机程序指令被计算装置执行时,可操作来执行如权利要求1-14中任意一项所述的基于光谱芯片的图像传感方法或者如权利要求16-30中任意一项所述的基于光谱芯片的光谱恢复方法。A computer-readable storage medium, characterized in that the computer-readable storage medium has computer program instructions stored thereon, and when the computer program instructions are executed by a computing device, it is operable to execute any one of claims 1-14. The image sensing method based on a spectrum chip or the spectrum recovery method based on a spectrum chip according to any one of claims 16-30.
PCT/CN2022/080327 2021-03-16 2022-03-11 Spectral chip-based image sensing method and apparatus, spectral recovery method and apparatus, and electronic device WO2022194040A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110281439.6A CN115086581B (en) 2021-03-16 2021-03-16 Image sensing method and device based on spectrum chip
CN202110281439.6 2021-03-16
CN202110351061.2 2021-03-31
CN202110351061.2A CN115147287B (en) 2021-03-31 2021-03-31 Spectrum recovery method and device of spectrum chip and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022194040A1 true WO2022194040A1 (en) 2022-09-22

Family

ID=83321575

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/080327 WO2022194040A1 (en) 2021-03-16 2022-03-11 Spectral chip-based image sensing method and apparatus, spectral recovery method and apparatus, and electronic device

Country Status (1)

Country Link
WO (1) WO2022194040A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100288910A1 (en) * 2009-05-14 2010-11-18 Raytheon Company Adaptive spatial-spectral processing (assp)
FR3008230A1 (en) * 2013-07-03 2015-01-09 E2V Semiconductors MATRIX COLOR IMAGE SENSOR, WITHOUT COLOR FILTERS
CN104390703A (en) * 2012-10-11 2015-03-04 Vtt科技研究中心 Method for determining calibration parameters for a spectrometer
US20170299435A1 (en) * 2012-05-21 2017-10-19 Digimarc Corporation Sensor-synchronized spectrally-structured-light imaging
CN109416282A (en) * 2016-07-15 2019-03-01 柯尼卡美能达株式会社 Colorimeter
US20190079004A1 (en) * 2017-09-08 2019-03-14 Arizona Board Of Regents On Behalf Of The University Of Arizona Systems and methods for optical spectrometer calibration
CN111024229A (en) * 2019-11-28 2020-04-17 天津津航技术物理研究所 Single-chip integrated spectral imaging micro-system spectral data correction method
CN112018139A (en) * 2020-08-14 2020-12-01 清华大学 Method for generating micro-nano structure array in spectrum chip

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100288910A1 (en) * 2009-05-14 2010-11-18 Raytheon Company Adaptive spatial-spectral processing (assp)
US20170299435A1 (en) * 2012-05-21 2017-10-19 Digimarc Corporation Sensor-synchronized spectrally-structured-light imaging
CN104390703A (en) * 2012-10-11 2015-03-04 Vtt科技研究中心 Method for determining calibration parameters for a spectrometer
FR3008230A1 (en) * 2013-07-03 2015-01-09 E2V Semiconductors MATRIX COLOR IMAGE SENSOR, WITHOUT COLOR FILTERS
CN109416282A (en) * 2016-07-15 2019-03-01 柯尼卡美能达株式会社 Colorimeter
US20190079004A1 (en) * 2017-09-08 2019-03-14 Arizona Board Of Regents On Behalf Of The University Of Arizona Systems and methods for optical spectrometer calibration
CN111024229A (en) * 2019-11-28 2020-04-17 天津津航技术物理研究所 Single-chip integrated spectral imaging micro-system spectral data correction method
CN112018139A (en) * 2020-08-14 2020-12-01 清华大学 Method for generating micro-nano structure array in spectrum chip

Similar Documents

Publication Publication Date Title
KR102269229B1 (en) Lensless Hyperspectral Imaging Method and Apparatus Therefore
JP2014515587A (en) Learning image processing pipelines for digital imaging devices
US10641658B1 (en) Method and system for hyperspectral light field imaging
US9589320B2 (en) Image-pickup unit, image-pickup apparatus, and image processing system
TWI579540B (en) Multi-point spectral system
CN111024229B (en) Single-chip integrated spectral imaging micro-system spectral data correction method
Finlayson Colour and illumination in computer vision
CN214951801U (en) Spectrum analyzer
Vetrekar et al. Low-cost multi-spectral face imaging for robust face recognition
US20230232117A1 (en) Processing circuit analyzing image data and generating final image data
Monno et al. N-to-sRGB mapping for single-sensor multispectral imaging
US10750135B2 (en) Hardware-friendly model-based filtering system for image restoration
CN115479668A (en) Spectrum analysis device and spectrum video recording method
WO2022194040A1 (en) Spectral chip-based image sensing method and apparatus, spectral recovery method and apparatus, and electronic device
WO2023125329A1 (en) Living-body fingerprint identification system and living-body identification method thereof
CN115147287B (en) Spectrum recovery method and device of spectrum chip and electronic equipment
Khan et al. Color characterization methods for a multispectral camera
CN115086581B (en) Image sensing method and device based on spectrum chip
JP2018529297A (en) Color filter sensor
CN115791628A (en) Spectrum recovery method, spectrum recovery device and electronic equipment
KR102362278B1 (en) Spectral apparatus incorporating tunable spectral filter with multiple resonances, and method for acquiring spectral information thereof
JP6398860B2 (en) Color correction apparatus, color correction method, and color correction program
WO2020082392A1 (en) Image sensor and imaging method
WO2022262640A1 (en) Spectral analysis apparatus and spectral video recording method
Llanos et al. Simultaneous demosaicing and chromatic aberration correction through spectral reconstruction

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22770395

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22770395

Country of ref document: EP

Kind code of ref document: A1