Imaging system and method
By using non-uniform spectral intensity illumination and edge image processing, the system improves hyperspectral image restoration accuracy and clarity, addressing the limitations of uniform spectral intensity in existing systems.
Patent Information
- Application Number
- PCT/JP2024/009554
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2024-03-12
- Publication Date
- 2024-10-03
AI Technical Summary
Existing hyperspectral imaging systems face challenges in restoring high-quality images from compressed data, particularly due to unclear color boundaries and decreased restoration accuracy when using illumination with uniform spectral intensity.
The system employs an illumination device that emits light with non-uniform spectral intensity across different wavelength bands, and a processing device that generates and displays edge images to optimize the spectrum for clearer boundaries, thereby improving image restoration accuracy.
This approach enhances the clarity of color boundaries in compressed images and improves the accuracy of hyperspectral image restoration by adjusting the illumination spectrum based on edge detection, leading to higher quality restored images.
Smart Images

Figure JP2024009554_03102024_PF_FP_ABST
Abstract
Description
Imaging system and method
[0001] FIELD The present disclosure relates to imaging systems and methods.
[0002] By utilizing spectral information from multiple narrow wavelength bands (hereinafter simply referred to as "bands"), for example, several dozen bands, it becomes possible to grasp the detailed physical properties of an object, which was not possible with conventional RGB images that have color information in three bands (red, green, and blue). A camera that captures images in such multiple wavelength bands is called a "hyperspectral camera." Hyperspectral cameras are used in a variety of fields, including food inspection, biological testing, pharmaceutical development, and mineral component analysis.
[0003] Patent Literature 1 discloses an example of a hyperspectral imaging device that uses compressed sensing. Compressed sensing is a technology that reconstructs more data than observed data by assuming that the data distribution of an observed object is sparse in a certain space (e.g., frequency space). The imaging device disclosed in Patent Literature 1 includes an encoding element, which is an array of multiple optical filters with different spectral transmittances, on an optical path connecting the object and the image sensor. The imaging device can generate images corresponding to each of multiple wavelength bands in a single imaging session by performing a reconstruction operation based on a compressed image acquired by imaging using the encoding element.
[0004] U.S. Pat. No. 9,599,511
[0005] The present disclosure provides a system and method capable of improving the quality of images in each wavelength band reconstructed from a compressed image acquired by an imaging device that utilizes compressed sensing.
[0006] An imaging system according to one aspect of the present disclosure includes an illumination device that emits illumination light to be irradiated onto an object, an imaging device that receives light reflected from the object due to the illumination light and generates a compressed image in which image information of multiple wavelength bands included in a target wavelength range is compressed into a single piece of image information, and a processing device that generates, based on the compressed image, multiple restored images, each corresponding to a different one of the multiple wavelength bands. The multiple wavelength bands include a first wavelength band and a second wavelength band. The intensity of light in the first wavelength band included in the illumination light is different from the intensity of light in the second wavelength band included in the illumination light.
[0007] A method according to another aspect of the present disclosure is executed by a computer and includes: causing an illumination device to emit illumination light to be irradiated onto an object; and causing an imaging device to receive light reflected from the object caused by the illumination light and generate a compressed image in which image information of multiple wavelength bands included in a target wavelength range is compressed into a single piece of image information, and generating the compressed image. The multiple wavelength bands include a first wavelength band and a second wavelength band. The intensity of light in the first wavelength band included in the illumination light is different from the intensity of light in the second wavelength band included in the illumination light.
[0008] A method according to yet another aspect of the present disclosure is executed by a computer and includes acquiring first data regarding the spectral reflectance characteristics of an object, acquiring second data regarding the spectrum of illumination light irradiated onto the object, acquiring third data regarding the spectral sensitivity characteristics of each pixel of an imaging device that images the object, and generating, based on the first data, the second data, and the third data, an estimated image that is estimated to be generated when the imaging device images the object irradiated with the illumination light.
[0009] A general or specific aspect of the present disclosure may be realized as a system, an apparatus, a method, an integrated circuit, a computer program, or a computer-readable recording medium, or as any combination of a system, an apparatus, a method, an integrated circuit, a computer program, and a recording medium. A computer-readable recording medium includes, for example, a non-volatile recording medium such as a CD-ROM (Compact Disc-Read Only Memory). An apparatus may be composed of one or more devices. When an apparatus is composed of two or more devices, the two or more devices may be located in a single device or may be located separately in two or more separate devices. In this specification and claims, the term "apparatus" may refer not only to a single device but also to a system consisting of multiple devices.
[0010] According to the technology of the present disclosure, it is possible to improve the quality of the image of each wavelength band restored from a compressed image in which spectral information has been compressed.
[0011] FIG. 1A is a diagram schematically illustrating an example configuration of an imaging system. FIG. 1B is a diagram schematically illustrating another example configuration of an imaging system. FIG. 1C is a diagram schematically illustrating yet another example configuration of an imaging system. FIG. 1D is a diagram schematically illustrating yet another example configuration of an imaging system. FIG. 2A is a diagram schematically illustrating an example of a filter array. FIG. 2B is a diagram illustrating an example of the spatial distribution of light transmittance of each of multiple wavelength bands included in a target wavelength range. FIG. 2C is a diagram illustrating an example of the spectral transmittance of a region A1 included in the filter array shown in FIG. 2A. FIG. 2D is a diagram illustrating an example of the spectral transmittance of a region A2 included in the filter array shown in FIG. 2A. FIG. 3 is a diagram for explaining an example of the relationship between a target wavelength range and multiple wavelength bands included therein. FIG. 4A is a diagram for explaining the characteristics of the spectral transmittance in a certain region of a filter array. FIG. 4B is a diagram illustrating the result of averaging the spectral transmittance shown in FIG. 4A for each wavelength band. FIG. 5A is a diagram illustrating an example of the data structure of a hyperspectral image. FIG. 5B is a diagram illustrating another example of the data structure of a hyperspectral image. FIG. 5C is a diagram showing yet another example of the data structure of a hyperspectral image. FIG. 6A is a diagram showing a color sample including a plurality of stripes extending vertically and horizontally. FIG. 6B is a diagram showing an example of a compressed image obtained when the color sample shown in FIG. 6A is captured by an imaging device. FIG. 7A is a graph showing an example of non-uniform spectral intensity of illumination light. FIG. 7B is a graph showing an example of non-uniform spectral intensity of illumination light. FIG. 7C is a graph showing an example of non-uniform spectral intensity of illumination light. FIG. 7D is a graph showing an example of non-uniform spectral intensity of illumination light. FIG. 8 is a block diagram showing an example of the configuration of an imaging system. FIG. 9 is a diagram showing example of mask data. FIG. 10 is a block diagram showing another example of the configuration of an imaging system. FIG. 11 is a flowchart showing an example of the operation of a processing device. FIG. 12 is a diagram showing an example of a method for generating an edge image. FIG. 13 is a diagram showing another example of a method for generating an edge image. FIG. 14 is a diagram showing yet another example of a method for generating an edge image. FIG. 15 is a diagram showing an example of superimposed display of a compressed image and an edge image. FIG. 16 is a diagram showing an example of side-by-side display of a compressed image and an edge image.FIG. 17 is a diagram showing yet another example of displaying a compressed image and an edge image. FIG. 18 is a diagram showing yet another example of displaying a compressed image and an edge image. FIG. 19 is a diagram showing yet another example of displaying a compressed image and an edge image. FIG. 20 is a block diagram showing another example of the configuration of an imaging system. FIG. 21 is a flowchart showing another example of the operation of a processing device. FIG. 22 is a flowchart showing yet another example of the operation of a processing device. FIG. 23 is a block diagram showing yet another example of the configuration of an imaging system. FIG. 24 is a flowchart showing yet another example of the operation of a processing device. FIG. 25 is a block diagram showing an example of the configuration of a system that determines an optimal spectrum of illumination light according to an assumed object. FIG. 26 is a diagram showing an example of the spectral reflectance of an object. FIG. 27 is a flowchart showing an example of processing executed by a processing circuit in the system shown in FIG. 25.
[0012] In this disclosure, all or part of a circuit, unit, device, component, or part, or all or part of a functional block in a block diagram, may be implemented by one or more electronic circuits, including, for example, a semiconductor device, a semiconductor integrated circuit (IC), or an LSI (large scale integration). The LSI or IC may be integrated on a single chip or may be configured by combining multiple chips. For example, functional blocks other than memory elements may be integrated on a single chip. While the terms LSI and IC are used here, the term may be changed depending on the degree of integration, and may be referred to as a system LSI, a VLSI (very large scale integration), or an ULSI (ultra large scale integration). Field programmable gate arrays (FPGAs), which are programmed after the LSI is manufactured, or reconfigurable logic devices (RLDs), which can reconfigure connections within the LSI or set up circuit partitions within the LSI, can also be used for the same purpose.
[0013] Furthermore, all or part of the functions or operations of a circuit, unit, device, component, or section can be implemented by software processing. In this case, the software is recorded on one or more non-transitory recording media such as ROMs, optical disks, hard disk drives, etc., and when the software is executed by a processor, the functions specified in the software are executed by the processor and peripheral devices. A system or device may include one or more non-transitory recording media on which the software is recorded, a processor, and necessary hardware devices, such as interfaces.
[0014] In this specification, a collection of data or signals representing an image, that is, data or signals representing the pixel values of each of a plurality of pixels in an image, may be simply referred to as an "image."
[0015] In this disclosure, "light" refers to electromagnetic waves including not only visible light (wavelengths of about 400 nm to about 700 nm), but also ultraviolet light (wavelengths of about 10 nm to about 400 nm) and infrared light (wavelengths of about 700 nm to about 1 mm).
[0016] Exemplary embodiments of the present disclosure will be described in more detail below. Note that the embodiments described below are all comprehensive or specific examples. The numerical values, shapes, components, component placement and connection configurations, steps, and step order shown in the following embodiments are merely examples and are not intended to limit the present disclosure. Furthermore, among the components in the following embodiments, components that are not recited in the independent claims that represent the highest concepts are described as optional components. Furthermore, each figure is a schematic diagram and is not necessarily an exact illustration. Furthermore, in each figure, the same or similar components are designated by the same reference numerals. Duplicate descriptions may be omitted or simplified.
[0017] 1. Imaging System FIG. 1A is a diagram schematically illustrating an example configuration of an imaging system 1000 according to an exemplary embodiment of the present disclosure. The imaging system 1000 illustrated in FIG. 1A includes an imaging device 100, a processing device 200, and an illumination device 300. The imaging device 100 has a configuration similar to that of the imaging device disclosed in Patent Document 1. The imaging device 100 includes an optical system 140, a filter array 110, and an image sensor 160. The optical system 140 and the filter array 110 are disposed on the optical path of light incident from an object 70, which is a subject. The filter array 110 in the example of FIG. 1A is disposed between the optical system 140 and the image sensor 160.
[0018] FIG. 1A illustrates an apple as an example of the object 70. The object 70 is not limited to an apple and may be any object. The object 70 is illuminated by illumination light from the illumination device 300 and is imaged by the imaging device 100. The image sensor 160 generates data for a compressed image 10 in which image information of a plurality of wavelength bands included in a preset target wavelength range is compressed as two-dimensional monochrome image information. The processing device 200 generates data representing a plurality of images that correspond one-to-one to the plurality of wavelength bands included in the target wavelength range, based on the data for the compressed image 10 generated by the image sensor 160. Here, the number of wavelength bands included in the target wavelength range is set to N (N is an integer equal to or greater than 4). In the following description, the N images generated based on the compressed image 10 are referred to as a restored image 20W. 1 , 20W 2 , ..., 20W N These may be collectively referred to as "hyperspectral images 20" or simply "spectral images."
[0019] The filter array 110 in this embodiment is an optical element in which a plurality of light-transmitting filters are arranged in rows and columns. The plurality of filters include a plurality of types of filters with different spectral transmittances. The spectral transmittance indicates the wavelength dependency of the transmittance and is also called a transmission spectrum. The filter array 110 modulates the intensity of incident light for each wavelength and outputs the modulated light. This process performed by the filter array 110 is called "encoding." The filter array 110 may also be called a "encoding element" or a "encoding mask."
[0020] 1A, the filter array 110 is disposed near or directly above the image sensor 160. Here, "near" means close enough that a light image from the optical system 140 is formed on the surface of the filter array 110 with a certain degree of clarity. "Directly above" means that the two are so close that there is almost no gap between them. The filter array 110 and the image sensor 160 may be integrated.
[0021] 1A, optical system 140 includes at least one lens. Although optical system 140 is shown as a single lens in FIG. 1A, optical system 140 may be a combination of multiple lenses. Optical system 140 forms an image on the imaging surface of image sensor 160 through filter array 110.
[0022] The filter array 110 may be disposed away from the image sensor 160. FIGS. 1B to 1D are diagrams showing configuration examples of the imaging device 100 in which the filter array 110 is disposed away from the image sensor 160. In the example of FIG. 1B, the filter array 110 is disposed between the optical system 140 and the image sensor 160 and at a position away from the image sensor 160. In the example of FIG. 1C, the filter array 110 is disposed between the object 70 and the optical system 140. In the example of FIG. 1D, the imaging device 100 includes two optical systems 140A and 140B, with the filter array 110 disposed between them. As in these examples, an optical system including one or more lenses may be disposed between the filter array 110 and the image sensor 160.
[0023] The image sensor 160 is a monochrome photodetection device having a plurality of photodetection elements (also referred to herein as "pixels") arranged two-dimensionally. The image sensor 160 may be, for example, a charge-coupled device (CCD), a complementary metal oxide semiconductor (CMOS), or an infrared array sensor. The photodetection elements include, for example, photodiodes. The image sensor 160 does not necessarily have to be a monochrome sensor. For example, a color sensor may be used. A color sensor may include, for example, a plurality of red (R) filters that transmit red light, a plurality of green (G) filters that transmit green light, and a plurality of blue (B) filters that transmit blue light. A color sensor may further include a plurality of IR filters that transmit infrared light. Alternatively, a color sensor may include a plurality of transparent filters that transmit all red, green, and blue light. Using a color sensor can increase the amount of information related to wavelengths, thereby improving the accuracy of reconstructing the hyperspectral image 20. The wavelength range to be acquired may be determined arbitrarily, and is not limited to the visible wavelength range, but may be ultraviolet, near infrared, mid infrared, or far infrared wavelength range.
[0024] The processing device 200 may be a computer including one or more processors and one or more storage media such as a memory. The processing device 200 generates a plurality of restored images 20W based on the compressed image 10 acquired by the image sensor 160. 1 , 20W 2 ,...20W N Generate data.
[0025] 2A is a diagram schematically illustrating an example of a filter array 110. The filter array 110 has a plurality of regions arranged two-dimensionally. In this specification, these regions may be referred to as "cells." An optical filter having an individually set spectral transmittance is disposed in each region. The spectral transmittance is expressed by a function T(λ), where λ is the wavelength of incident light. The spectral transmittance T(λ) can take a value between 0 and 1.
[0026] 2A , the filter array 110 has 48 rectangular regions arranged in 6 rows and 8 columns. This is merely an example, and in actual applications, more regions may be provided. The number of regions may be approximately the same as the number of pixels in the image sensor 160, for example. The number of filters included in the filter array 110 is determined depending on the application and may range from several tens to several tens of millions, for example.
[0027] FIG. 2B shows the wavelength band W included in the target wavelength range. 1 , W 2 , ..., W N 2B is a diagram showing an example of the spatial distribution of light transmittance of each of the wavelength bands. In the example shown in FIG. 2B, the difference in shading of each region represents the difference in transmittance. The lighter the region, the higher the transmittance, and the darker the region, the lower the transmittance. As shown in FIG. 2B, the spatial distribution of light transmittance differs depending on the wavelength band.
[0028] 2C and 2D are diagrams showing examples of the spectral transmittance of region A1 and region A2 included in the filter array 110 shown in FIG. 2A . The spectral transmittance of region A1 and the spectral transmittance of region A2 are different from each other. In this way, the spectral transmittance of the filter array 110 varies depending on the region. However, it is not necessary for all regions to have different spectral transmittances. In the filter array 110, the spectral transmittances of at least some of the multiple regions are different from each other. The filter array 110 includes two or more filters with different spectral transmittances. In some examples, the number of spectral transmittance patterns of the multiple regions included in the filter array 110 may be equal to or greater than the number N of wavelength bands included in the target wavelength range. The filter array 110 may be designed so that the spectral transmittances of more than half of the regions are different.
[0029] FIG. 3 shows the target wavelength range W and the wavelength bands W included therein. 1 , W 2 , ..., W N1 is a diagram for explaining the relationship between the wavelengths of visible light and ultraviolet light. The target wavelength range W can be set to various ranges depending on the application. The target wavelength range W can be, for example, the visible light wavelength range of about 400 nm to about 700 nm, the near-infrared wavelength range of about 700 nm to about 2500 nm, or the near-ultraviolet wavelength range of about 10 nm to about 400 nm. Alternatively, the target wavelength range W may be a wavelength range such as mid-infrared or far-infrared. In this manner, the wavelength range used is not limited to the visible light range. In this specification, the term "light" refers to radiation in general, including not only visible light but also infrared and ultraviolet light.
[0030] In the example shown in FIG. 3, N is an arbitrary integer equal to or greater than 4, and the wavelength ranges obtained by dividing the target wavelength range W into N equal parts are called wavelength bands W 1 , W 2 , ..., W N However, the present invention is not limited to this example. The plurality of wavelength bands included in the target wavelength range W may be set arbitrarily. For example, the bandwidth may be made uneven depending on the wavelength band. The method for determining the plurality of wavelength bands may be arbitrary.
[0031] 4A is a diagram illustrating the characteristics of the spectral transmittance in a certain region of the filter array 110. In the example shown in FIG. 4A, the spectral transmittance has multiple maximum values P1 to P5 and multiple minimum values for wavelengths within the target wavelength band W. In the example shown in FIG. 4A, the optical transmittance within the target wavelength band W is normalized so that the maximum value is 1 and the minimum value is 0. In the example shown in FIG. 4A, the wavelength band W 2 , and the wavelength band W N-1 In this way, the spectral transmittance of each region is expressed as a wavelength band W 1 , W 2 , ..., W N In the example of Fig. 4A, the maximum values P1, P3, P4, and P5 are 0.5 or more.
[0032] As such, the light transmittance of each region varies depending on the wavelength. Therefore, the filter array 110 transmits a large amount of components in a certain wavelength range among the incident light, while not transmitting components in other wavelength ranges as much. For example, the transmittance of light in k wavelength bands among the N wavelength bands may be greater than 0.5, while the transmittance of light in the remaining N-k wavelength bands may be less than 0.5, where k is an integer satisfying 2≦k<N. If the incident light is white light that contains all visible light wavelength components equally, the filter array 110 modulates the incident light into light having multiple discrete intensity peaks with respect to wavelength for each region, and outputs this multi-wavelength light in a superimposed form.
[0033] FIG. 4B shows an example of the spectral transmittance shown in FIG. 4A in a wavelength band W 1 , W 2 , ..., W N This figure shows the results of averaging the spectral transmittance for each wavelength band. The averaged transmittance is obtained by integrating the spectral transmittance T(λ) for each wavelength band and dividing by the bandwidth of that wavelength band. In this specification, the transmittance value averaged for each wavelength band in this way is referred to as the transmittance for that wavelength band. In this example, the transmittance is remarkably high in the three wavelength ranges that have maximum values P1, P3, and P5. In particular, the transmittance exceeds 0.8 in the two wavelength ranges that have maximum values P3 and P5.
[0034] In the examples shown in Figures 2A to 2D, a grayscale transmittance distribution is assumed in which the transmittance of each region can take any value between 0 and 1. However, a grayscale transmittance distribution is not necessarily required. For example, a binary scale transmittance distribution may be employed in which the transmittance of each region can take a value of either approximately 0 or approximately 1. In a binary scale transmittance distribution, each region transmits most of the light in at least two wavelength ranges out of multiple wavelength ranges included in the target wavelength range, and does not transmit most of the light in the remaining wavelength ranges. Here, "most" refers to approximately 80% or more.
[0035] A portion of all cells, for example half of the cells, may be replaced with a transparent region. Such a transparent region is located within a wavelength band W included in the wavelength range W of interest.1 , W 2 , ..., W N The filter array 110 transmits light of each wavelength at a similarly high transmittance, for example, 80% or more. In such a configuration, the transparent regions may be arranged, for example, in a checkerboard pattern. That is, in two arrangement directions of the regions in the filter array 110, regions whose light transmittance varies depending on the wavelength and transparent regions may be arranged alternately.
[0036] Such data indicating the spatial distribution of the spectral transmittance of the filter array 110 is acquired in advance based on design data or actual measurement calibration, and is stored in a storage medium provided in the processing device 200. This data is used in the calculation processing described below.
[0037] The filter array 110 can be constructed using, for example, a multilayer film, an organic material, a diffraction grating structure, or a microstructure containing a metal. When a multilayer film is used, for example, a dielectric multilayer film or a multilayer film containing a metal layer can be used. In this case, at least one of the thickness, material, and stacking order of each multilayer film is formed differently for each cell. This allows different spectral characteristics to be achieved for each cell. By using a multilayer film, sharp rises and falls in the spectral transmittance can be achieved. A configuration using an organic material can be achieved by containing different pigments or dyes in each cell or by stacking different materials. A configuration using a diffraction grating structure can be achieved by providing a diffraction structure with a different diffraction pitch or depth for each cell. When a microstructure containing a metal is used, it can be fabricated using spectral separation due to the plasmon effect.
[0038] Next, an example of signal processing by the processing device 200 will be described. The processing device 200 reconstructs a multi-wavelength hyperspectral image 20 based on the compressed image 10 output from the image sensor 160 and the spatial distribution characteristics of the transmittance for each wavelength of the filter array 110. Here, "multi-wavelength" means a wavelength range greater than the three wavelength ranges of RGB captured by a typical color camera, for example. The number of wavelength ranges can be, for example, between 4 and 100. This number of wavelength ranges is referred to as the "number of bands." Depending on the application, the number of bands may exceed 100.
[0039] 5A is a diagram showing an example of the data structure of the hyperspectral image 20. In the example of FIG. 5A, the hyperspectral image 20 is made up of N images 20W 1 , 20W 2 , ..., 20W N The data of the hyperspectral image 20 having such a structure is called a "hyperspectral data cube." For k=1, 2, ..., N, the kth image 20W k is the kth wavelength band λ k Here, the central wavelength λ of the k-th wavelength band corresponds to k is used as a reference symbol to represent the kth wavelength band. 1 , 20W 2 , ..., 20W N The number of pixels in the horizontal direction is m and the number of pixels in the vertical direction is n. k The pixel value of the pixel in the i-th row and j-th column in ij Then, the hyperspectral image 20 can be expressed by the following N n×m matrices:
[0040] The hyperspectral image 20 is not limited to a three-dimensional data structure as shown in Fig. 5A, and may have a two-dimensional data structure as shown in Fig. 5B or a one-dimensional data structure as shown in Fig. 5C. In the example of Fig. 5B, image information for N wavelength bands is arranged horizontally, and pixel values of n x m pixels in the image of each wavelength band are arranged vertically. In the example of Fig. 5C, pixel values of all pixels in the images of all wavelength bands are arranged in a single row. In this way, the data structure of the hyperspectral image 20 is arbitrary.
[0041] The data of the hyperspectral image 20 generated by the processing device 200 is represented as f. The data f is data f of N bands. 1 , f 2 , ..., f N Data f 1 , f 2 , ..., f N Each of the data f has n×m pixel values. Therefore, the data f has n×m×N elements. On the other hand, the data g of the compressed image 10 obtained by encoding and multiplexing by the filter array 110 has n×m elements. The data g can be expressed by the following equation (1).
[0042] The data f in equation (1) represents the data of the hyperspectral image expressed as a one-dimensional vector, as shown in FIG. 5C. 1 , f 2 , ..., f N Each of these has n×m elements. Therefore, the vector on the right side is a one-dimensional vector with n×m×N rows and one column. The compressed image data g is calculated as a one-dimensional vector with n×m rows and one column. The matrix H is calculated by dividing each component f of the vector f by 1 , f 2 , ..., f N is encoded and intensity-modulated with different encoding information for each wavelength band, and then added together. Therefore, H is a matrix with n × m rows and n × m × N columns. Equation (1) can also be expressed as follows: g = (pg 11 ...pg 1m ...pg n1 ...pgnm ) T = H(f 1 ...f N ) T Here, pg ij represents the pixel value at the i-th row and j-th column of the compressed image 10.
[0043] Data representing the matrix H may be generated before the reconstruction operation and stored in a storage device such as the memory of the processing unit 200 .
[0044] Given vector g and matrix H, it seems possible to calculate data f by solving the inverse problem of equation (1). However, because the number of elements n×m×N of the desired data f is greater than the number of elements n×m of the acquired data g, this problem is ill-posed and cannot be solved as is. Therefore, the processing device 200 utilizes the image redundancy contained in data f to find a solution using a compressed sensing technique. Specifically, the desired data f is estimated by solving the following equation (2).
[0045] Here, f' represents the estimated data for f. The first term in the parentheses in the above equation represents the amount of deviation between the estimation result Hf and the acquired data g, the so-called residual term. Here, the sum of squares is used as the residual term, but the absolute value, the square root of the sum of squares, or the like may also be used as the residual term. The second term in the parentheses is a regularization term or a stabilization term. Equation (2) means that f that minimizes the sum of the first and second terms is found. The function in the parentheses in Equation (2) is called the evaluation function. The processing device 200 can converge the solution through recursive iterative calculations and calculate the f that minimizes the evaluation function as the final solution f'.
[0046] The first term in the parentheses in Equation (2) represents an operation to calculate the sum of squares of the difference between the acquired data g and Hf, which is obtained by transforming f in the estimation process using the matrix H. The second term, Φ(f), is a constraint for regularizing f and is a function that reflects the sparsity information of the estimation data. This function has the effect of smoothing or stabilizing the estimation data. The regularization term can be expressed, for example, by the discrete cosine transform (DCT), wavelet transform, Fourier transform, or total variation (TV) of f. For example, using total variation can obtain stable estimation data that suppresses the influence of noise in the observation data g. The sparsity of the object 70 in the space of each regularization term varies depending on the texture of the object 70. A regularization term that makes the texture of the object 70 sparser in the space of the regularization term may be selected. Alternatively, multiple regularization terms may be included in the operation. τ is a weighting coefficient. The larger the weighting coefficient τ, the greater the amount of redundant data reduction and the higher the compression rate. The smaller the weighting factor τ, the weaker the convergence to a solution. The weighting factor τ is set to an appropriate value that allows f to converge to a certain extent but does not result in over-compression.
[0047] In the configurations of FIGS. 1B and 1C , the image encoded by the filter array 110 may be acquired in a blurred state on the imaging plane of the image sensor 160. In this case, the hyperspectral image 20 can be reconstructed by storing this blur information in advance and reflecting the blur information in the aforementioned matrix H. Here, the blur information is represented by a point spread function (PSF). The PSF is a function that defines the degree of spread of a point image to surrounding pixels. For example, if a point image corresponding to a pixel on an image spreads due to blurring to a k×k pixel region around the pixel, the PSF can be defined as a group of coefficients, i.e., a matrix, that indicates the influence on the pixel values of each pixel within that region. By reflecting the influence of blurring of the encoding pattern due to the PSF in the matrix H, a hyperspectral image 20 with reduced blur can be reconstructed. The filter array 110 may be positioned at any position, but a position that does not cause the encoding pattern of the filter array 110 to be lost due to excessive diffusion can be selected.
[0048] Through the above processing, a hyperspectral image 20 can be restored from the compressed image 10 acquired by the image sensor 160. Details of the method for restoring the hyperspectral image 20 are disclosed in Patent Document 1, the entire disclosure of which is incorporated herein by reference.
[0049] In the above example, the processing device 200 restores the hyperspectral image 20 based on the data of the compressed image 10 output from the image sensor 160. Instead of the processing device 200, a processing device in the imaging device 100 may perform the process of restoring the hyperspectral image 20. Alternatively, an external computer such as a cloud server that communicates with the imaging device 100 via a network may perform the process of restoring the hyperspectral image 20 based on the data of the compressed image 10 acquired from the imaging device 100.
[0050] Next, a description will be given of other configuration examples of the imaging device 100. Compressed images and hyperspectral images may be generated by imaging using a filter array 110 including a plurality of optical filters, i.e., a method different from imaging using a coded mask.
[0051] For example, the imaging device 100 may be configured such that the light-receiving characteristics of the image sensor 160 are changed for each pixel by processing the image sensor 160. Similar to the above example, a compressed image can be generated by capturing an image using the processed image sensor 160. That is, a compressed image may be generated by an imaging device configured such that the filter array 110 is built into the image sensor 160. In this case, the encoded information corresponds to the light-receiving characteristics of the image sensor 160.
[0052] Alternatively, an optical element such as a metalens may be incorporated into at least a portion of the optical system 140, thereby varying the optical characteristics of the optical system 140 spatially and wavelength-wise, thereby compressing the spectral information. A compressed image can also be generated using an imaging device including such a configuration. In this case, the encoded information corresponds to the optical characteristics of the optical element, such as a metalens. In this manner, the intensity of incident light may be modulated for each wavelength using an imaging device 100 with a configuration other than that using a filter array 110, thereby generating the compressed image 10 and hyperspectral image 20.
[0053] In other words, the present disclosure also includes a configuration for generating a restored image including a greater number of signals (e.g., the number of pixels) than the number of signals included in the compressed image 10, based on coded information corresponding to the photoresponse characteristics of the image capture device 100 including a plurality of light-receiving regions having different photoresponse characteristics, and the compressed image 10 generated by the image capture device 100. As described above, the photoresponse characteristics may correspond to the light-receiving characteristics of an image sensor, or may correspond to the optical characteristics of an optical element.
[0054] [2. Imaging Using Non-Uniform Illumination] In the imaging system described above that restores a hyperspectral image based on a compressed image, imaging is performed using illumination light with uniform spectral intensity. This is because if the intensity of the illumination light varies significantly depending on the wavelength, the intensity of light incident on each pixel of the image sensor will differ significantly between wavelengths, resulting in reduced restoration accuracy. For example, if there is a large difference in the intensity of the illumination light between multiple wavelength bands included in the target wavelength range, the magnitude of the element of data f in equation (1) above will differ significantly between bands, resulting in a strong influence of noise and reduced restoration accuracy. For this reason, the illumination device 300 shown in Figures 1A to 1D is configured to emit illumination light with uniform spectral intensity.
[0055] However, the inventors have found that when imaging is performed using illumination light with a uniform spectral intensity, the edges of color boundaries in the resulting compressed image may become unclear, depending on the object, resulting in reduced restoration accuracy. This problem will be described with reference to Figures 6A and 6B.
[0056] Fig. 6A is a diagram showing a color sample 70A including multiple stripes extending vertically and horizontally. Fig. 6B is a diagram showing an example of a compressed image 10A obtained when the color sample 70A shown in Fig. 6A is captured using the above-described imaging device 100. Fig. 6B shows the compressed image 10A on the left and a partially enlarged view of it on the right. The compressed image 10A shown in Fig. 6B was obtained by capturing the image under conditions in which the illumination device 300 emits illumination light with a uniform spectral intensity.
[0057] The color sample 70A shown in Figure 6A includes six stripes of different colors extending vertically and six stripes of different colors extending horizontally. The colors of the vertically extending stripes are, from left to right, yellow (Y), blue (B), magenta (M), green (G), cyan (C), and red (R). The colors of the horizontally extending stripes are, from top to bottom, red (R), cyan (C), green (G), magenta (M), blue (B), and yellow (Y). Each horizontally extending stripe of a different color is connected to a vertically extending stripe of the same color and is located behind each vertically extending stripe of a different color.
[0058] When the color sample 70A shown in Fig. 6A is illuminated with illumination light having a uniform spectrum and imaged, a compressed image 10A as shown in Fig. 6B is obtained. An enlarged view of the area enclosed by the dotted line frame in Fig. 6B is shown on the right side of Fig. 6B. In this compressed image 10A, the difference in brightness between the green (G) area and the magenta (M) area is small, making the boundary between these areas unclear. On the other hand, the boundary between the green (G) area and the blue (B) area is clear.
[0059] In this way, the boundary between two regions that should have different colors may be unclear in the compressed image 10A. In such cases, the accuracy of restoring a hyperspectral image based on the compressed image 10A may decrease. For example, a problem may arise in which the color boundary in the restored image becomes blurred.
[0060] The present inventors have encountered this new problem and have investigated the configuration of an imaging system to solve this problem. They have found that the above problem can be solved by performing imaging using an illumination device 300 that emits illumination light with non-uniform spectral intensity.
[0061] That is, the illumination device 300 in this embodiment is configured to emit illumination light with non-uniform spectral intensity. Here, "non-uniform spectral intensity" refers to the fact that the light intensities of at least two wavelength bands among a plurality of wavelength bands included in the target wavelength range are different. That is, when the plurality of wavelength bands included in the target wavelength range include a first wavelength band and a second wavelength band, the light intensity of the first wavelength band included in the illumination light is different from the light intensity of the second wavelength band included in the illumination light. Here, the light intensity of the i-th wavelength band (i is an integer greater than or equal to 1) may be the average value of the light intensity in the i-th wavelength band with respect to wavelength. "The light intensities of two wavelength bands are different" means that the difference in their light intensities is greater than 20% of the light intensity of the wavelength band with the higher intensity. The light intensities of the first wavelength band and the second wavelength band may differ by 30% or more, or may differ by 40% or more.
[0062] The target wavelength range may be a wavelength range that is the target of image restoration or a wavelength range of light that is the target of detection by the image sensor. For example, if 30 bands of images, each having a bandwidth of 10 nm and ranging from 400 nm to 410 nm, 410 nm to 420 nm, ..., and 690 nm to 700 nm, are restored from a compressed image, the target wavelength range may be 400 nm to 700 nm. Alternatively, if the filter array 110 or other filters (e.g., bandpass filters) included in the imaging device 100 remove light with wavelengths shorter than 500 nm and light with wavelengths longer than 800 nm, and the light detected by the image sensor 160 is 500 nm to 800 nm, the target wavelength range may be 500 nm to 800 nm.
[0063] By using illumination light with non-uniform spectral intensity, it is possible to prevent color boundaries that should originally exist in a compressed image from becoming unclear, and to prevent a decrease in restoration accuracy.
[0064] 7A to 7D are graphs showing examples of non-uniform spectral intensity of illumination light. FIG. 7A shows an example of the spectral intensity of illumination light whose intensity monotonically increases with increasing wavelength in a target wavelength range W. FIG. 7B shows an example of the spectral intensity of illumination light whose intensity monotonically decreases with increasing wavelength. FIG. 7C shows an example of the spectral intensity of illumination light whose intensity decreases with increasing wavelength except for some wavelength ranges. FIG. 7D shows an example of the spectral intensity of illumination light whose intensity fluctuates greatly with increasing wavelength. As shown in these figures, the spectral intensity of illumination light emitted from the illumination device 300 can vary. The spectral intensity of illumination light is appropriately determined depending on the reflection characteristics of the target object.
[0065] 8 is a block diagram showing a more detailed configuration example of the imaging system 1000 according to this embodiment. The imaging system shown in FIG. 8 includes an imaging device 100, a processing device 200, a lighting control circuit 350, a lighting device 300, a display device 400, and an input user interface (UI) 500.
[0066] The imaging device 100 includes an image sensor 160 and a sensor control circuit 150 that controls the image sensor 160. Although not shown in FIG. 8 , the imaging device 100 also includes a filter array 110 and at least one optical system 140, as shown in FIGS. 1A to 1D . The filter array 110 and the optical system 140 may be arranged in any of the arrangements shown in FIGS. 1A to 1D . The filter array 110 is an example of an optical element including multiple regions with different transmission spectra. The image sensor 160 receives light whose intensity has been modulated by the filter array 110 according to wavelength for each region, and acquires a monochrome image, i.e., a compressed image, based on the light. Information on multiple wavelength bands included in the target wavelength range is superimposed on the value of each pixel of the compressed image.
[0067] The processing device 200 includes a reconstruction calculation circuit 250 and a memory 210 such as a RAM and a ROM. The reconstruction calculation circuit 250 is an integrated circuit including one or more processors such as a CPU or a GPU. The reconstruction calculation circuit 250 performs a reconstruction calculation based on the compressed image output from the image sensor 160. This reconstruction calculation corresponds to the calculation shown in the above-mentioned equation (2).
[0068] In the example shown in FIG. 8 , image capture and restoration processing are performed according to instructions input from the input UI 500. The restoration calculation circuit 250 performs restoration calculation for all wavelength bands included in the target wavelength range or for a portion of wavelength bands specified via the input UI. The memory 210 stores a computer program executed by a processor included in the restoration calculation circuit 250, various data referenced by the restoration calculation circuit 250, and various data generated by the restoration calculation circuit 250. The memory 210 stores mask data reflecting the spatial distribution of the spectral transmittance of the filter array 110 in the imaging device 100. The mask data is data including information representing the matrix in equations (1) and (2) above or information for deriving the matrix (hereinafter also referred to as “mask matrix information”). The mask matrix information may be information in a matrix format or a format similar to a matrix having multiple elements corresponding to the spatial distribution of the transmittance of the filter array 110 for each of multiple component bands included in the target wavelength range. The mask data is created in advance and stored in the memory 210.
[0069] The illumination device 300 is a device that emits illumination light to be irradiated onto an object. The illumination device 300 includes one or more light sources. The illumination device 300 may include an optical filter that modulates the intensity of the light emitted from the light source according to wavelength. The illumination device 300 may be configured to emit illumination light having non-uniform spectral intensity that emphasizes edges of the object in a compressed image. The illumination device 300 may also include a configuration that changes the spectrum of the illumination light. For example, the illumination device 300 may include multiple types of light sources with different emission spectra. Alternatively, the illumination device 300 may include multiple optical filters with different transmission spectra and a mechanical mechanism that inserts one optical filter selected from the optical filters into the optical path of the illumination light.
[0070] The lighting control circuit 350 is a circuit that controls the operation of the lighting device 300. The lighting control circuit 350 causes the lighting device 300 to emit illumination light in synchronization with image capture by the image sensor 160. When a command to capture an image is input from the input UI 500, the lighting control circuit 350 causes the lighting device 300 to emit illumination light. In the example of Fig. 8, the lighting control circuit 350 is a circuit independent of the processing device 200, but may also be included in the processing device 200.
[0071] The display device 400 includes an image processing circuit 420 and a display 430. The image processing circuit 420 performs necessary processing on the image restored by the restoration calculation circuit 250 and then displays the image on the display 430. The display 430 may be any display, such as a liquid crystal display or an organic LED.
[0072] The input UI 500 includes hardware and software that allows the user to instruct imaging and set various conditions, such as imaging conditions and restoration conditions. The input UI 500 may include input devices such as a keyboard and a mouse. The input UI 500 may be implemented by a device capable of both input and output, such as a touchscreen. In this case, the touchscreen may also function as the display 430. The imaging conditions may include conditions such as resolution, gain, and exposure time. The restoration conditions may include conditions such as specifying multiple wavelength bands to be restored and the number of calculations. The input imaging conditions are sent to the control circuit 150 of the imaging device 100. The control circuit 150 causes the image sensor 160 to capture images in accordance with the imaging conditions. As a result, the image sensor 160 generates a compressed image. The input restoration conditions are also sent to the restoration calculation circuit 250. The restoration calculation circuit 250 acquires mask data from the memory 210 in accordance with the set restoration conditions and performs restoration processing based on the mask data and the compressed image. As a result, the reconstruction calculation circuit 250 generates a spectral image (i.e., a reconstructed image) for the specified wavelength bands.
[0073] The generated spectral images are sent to the image processing circuitry 420. The image processing circuitry 320 displays restored images for each of the multiple wavelength bands on the display 330. The image processing circuitry 420 may display the spectral images on the display 430 after performing processing such as determining the layout on the screen, linking with band information, or coloring according to wavelength.
[0074] FIG. 9 is a diagram showing an example of mask data stored in memory 210. The mask data in this example includes mask image information for deriving the spatial distribution of transmittance for each of multiple component bands included in the target wavelength range. The mask data in this example includes mask images for each of multiple component bands divided every 1 nm. Each component band is identified by a lower limit wavelength and an upper limit wavelength. Each mask image shown in FIG. 9 is acquired by capturing an image of a background having the color of the corresponding component band using image sensor 120 through filter array 110. Such mask image data is recorded in advance for each component band. Note that the width of each component band is not limited to 1 nm and can be set to any value. Each element of matrix H is determined based on the pixel values corresponding to each of the multiple pixels included in each mask image shown in FIG. 9. Each pixel value may be normalized using the maximum number of bits set for that pixel value and used as each element of matrix H.
[0075] 10 is a block diagram showing another example of the configuration of the imaging system 1000. The processing device 200 in this example further includes an edge detection circuit 270. The edge detection circuit 270 generates an edge image in which the edges of the compressed image are emphasized, based on the compressed image output from the image sensor 160. The processing device 200 causes the display device 400 to display the generated edge image.
[0076] FIG. 11 is a flowchart illustrating an example of the operation of the processing device 200 according to this embodiment. In this example, the processing device 200 first acquires a compressed image of an object illuminated with non-uniform light from the illumination device 300 from the imaging device 100 (step S110). Next, the processing device 200 detects edges in the compressed image (step S120). Edge detection can be performed using an edge detection algorithm that applies a filter, such as a Sobel filter, a Laplacian filter, or a Canny filter, to the compressed image. Alternatively, edge detection from the compressed image can be performed using a pre-trained model through machine learning, such as deep learning. Based on the edge detection results, the processing device 200 generates an edge image in which the edges in the compressed image are enhanced (step S130). The processing device 200 then displays the compressed image and the edge image on the display 430 (step S140).
[0077] FIG. 12 illustrates an example of a method for generating an edge image. In this example, the processing device 200 generates the edge image based on mask data reflecting the spatial distribution of the transmission spectrum of the filter array 110 and the compressed image. Specifically, the processing device 200 generates the edge image based on an image converted from the compressed image based on the average pixel value of each pixel in the mask image for each band included in the mask data. Part (a) of FIG. 12 schematically illustrates multiple mask images. For simplicity, a 4×4 pixel region in the mask image is illustrated. Part (b) of FIG. 12 illustrates an example of the average pixel value for each pixel in the multiple mask images. The average pixel value of each pixel corresponds to the average transmittance of the region of the filter array 110 corresponding to that pixel (i.e., the average transmittance for each band). Part (c) of FIG. 12 schematically illustrates a compressed image output from the imaging device 100. Part (d) of FIG. 12 schematically illustrates an image obtained by multiplying the pixel value of each pixel in the compressed image by the reciprocal of the average pixel value (i.e., the average transmittance) of the corresponding pixel in the mask image. The processing device 200 may detect edges from an image obtained by weighting the compressed image by the reciprocal of the average pixel value of each pixel in the mask image, and generate an edge image as shown in part (e) of Figure 12. This method can reduce the influence of differences in the transmission spectrum of the filter array 110 depending on the region. This allows for more accurate detection of the edges of the object than a method of directly detecting edges from the compressed image.
[0078] FIG. 13 is a diagram illustrating another example of a method for generating an edge image. In this example, the processing device 200 generates an edge image from a spectral image restored based on a compressed image and a mask image. As shown in parts (c) and (d) of FIG. 13 , the processing device 200 selects one of the restored spectral images and generates an edge image based on that image. For example, the processing device 200 may detect edges from restored images of all bands included in the spectral image and select one restored image in which the most edges are detected. Alternatively, the processing device 200 may select a restored image corresponding to the central band of the spectral image that is estimated to have the highest restoration accuracy.
[0079] 14 is a diagram showing yet another example of a method for generating an edge image. In this example, the processing device 200 generates a single image by weighting and adding the pixel values of each pixel in the restored images of all bands included in the restored spectral image, as shown in parts (c) and (d) of FIG. 14 , and then generates an edge image from the image. The weighting and addition may be performed by simply averaging the pixel values of each pixel (i.e., with a constant weight), or by weighting according to the relative luminosity of humans, for example by increasing the weight of the band corresponding to green.
[0080] In this way, the processing device 200 may generate an edge image based on the mask data that reflects the spatial distribution of the transmission spectrum of the filter array 110 and one or more restored images included in the plurality of restored images, thereby enabling more accurate detection of the edge of the object.
[0081] Next, an example of displaying the compressed image and the edge image in step S140 will be described. As exemplified below, the processing device 200 may be configured to display the compressed image and the edge image on the display device 400. This allows the user to determine whether the edges in the compressed image are clear, and if the edges are unclear, the user can adjust the lighting device 300 to change the spectrum of the illumination light so that the edges become clearer. Such adjustment of the lighting device 300 may be performed manually or automatically by the processing device 200.
[0082] FIG. 15 is a diagram showing an example of a superimposed display of a compressed image and an edge image. As shown in FIG. 16 , the processing device 200 may be configured to generate a superimposed image 40 by superimposing a compressed image and an edge image, and output the superimposed image 40 to a display device 400. For example, the superimposed image 40 may be generated by superimposing a colored edge image on the compressed image. The edge image superimposed on the compressed image may be an image in which pixels in the edge region are represented in a color that can be distinguished from pixels in regions other than the edge, such as black, white, red, or blue. Pixels near the edge region may also be similarly colored. For example, the width of the edge may be enlarged and displayed by performing image processing such as closing processing or opening processing on the pixels in the edge region.
[0083] FIG. 16 is a diagram illustrating an example in which a compressed image 10 and an edge image 30 are displayed on the same screen. As illustrated in FIG. 16 , the processing device 200 may display the compressed image 10 and the edge image 30 side by side on the display device 400. In the example of FIG. 16 , the compressed image 10 and the edge image 30 are displayed adjacent to each other, but they may also be displayed at separate positions on the screen. The timing at which the compressed image 10 and the edge image 30 start displaying may be simultaneous or different. In this manner, the processing device 200 may be configured to display the compressed image 10 and the edge image 30 on the same screen. Similar to the example of FIG. 15 , the edge image 30 is an image in which pixels in the edge region and pixels in other regions are color-coded. The edge image 30 may be an image in which pixels in the edge region are represented in a color that can be distinguished from pixels in regions other than the edge, such as black, white, red, or blue.
[0084] FIG. 17 illustrates yet another example of displaying compressed images and edge images. In this example, multiple images are captured using illumination light of different spectra. The processing device 200 displays multiple compressed images 10A and 10B acquired through multiple captures and multiple edge images 30A and 30B generated based on the multiple compressed images 10A and 10B side by side on the display device 400. Note that the edge images 30A and 30B shown in FIG. 17 also display shading reflecting the luminance values of each pixel in the compressed images 10A and 10B along with solid lines indicating edges, but this shading does not have to be displayed. The processing device 200 may display the compressed images 10A and 10B and the edge images 30A and 30B at separate positions on the same screen. The display start timings of the compressed images 10A and 10B and the edge images 30A and 30B may be simultaneous or different.
[0085] In the example of FIG. 17 , the illumination device 300 is configured to emit first illumination light and second illumination light having a different spectral shape from the first illumination light. Here, "spectral shape" refers to the shape of a spectrum (i.e., a wavelength distribution of light intensity) in which the intensity of each wavelength band is normalized by the intensity of a reference wavelength band. In contrast, the intensity of each wavelength band in an unnormalized spectrum is referred to as "spectral intensity." The spectral shape is considered to be the same between a spectrum and a spectrum in which the intensity of each wavelength band in the spectrum is multiplied by a constant. The imaging device 100 is configured to generate a first compressed image 10A by receiving light reflected from an object due to the first illumination light and to generate a second compressed image 10B by receiving light reflected from the object due to the second illumination light. The processing device 200 is configured to generate a first edge image 30A based on the first compressed image 10A and to generate a second edge image 30B based on the second compressed image 10B.
[0086] FIG. 18 is a diagram illustrating yet another example of displaying compressed images and edge images. In this example, the processing device 200 displays, side by side, on the display device 400, multiple compressed images 10A and 10B acquired by multiple imaging operations using illumination light of different spectra, and difference images 31A and 31B showing the differences between multiple edge images generated based on the multiple compressed images 10A and 10B. The processing device 200 can generate the difference images 31A and 31B by deriving, for each pixel, the difference between the pixel value of a pixel included in the edge image 30A shown in FIG. 17 and the pixel value of a pixel included in the edge image 30B that corresponds one-to-one with each pixel included in the edge image 30A. In the example of FIG. 18, in the difference images 31A and 31B, edges are displayed with thin lines, and edge regions with differences are displayed with thick or dotted lines. The difference image may also be an image in which edge regions with differences and edge regions without differences are color-coded. For example, pixels in edge regions with differences may be displayed in a color different from pixels in regions without differences, such as black, white, red, or blue. Pixels near the edge region where there is a difference may also be colored in the same way. For example, the width of the edge may be enlarged and displayed by performing image processing such as expansion or contraction on the pixels in the edge region where there is a difference. Note that the processing device 200 may display the compressed images 10A and 10B and the difference images 31A and 31B at separate positions on the same screen. The display start timing of the compressed images 10A and 10B and the difference images 31A and 31B may be simultaneous or different.
[0087] FIG. 19 illustrates yet another example of displaying compressed images and edge images. In this example, the processing device 200 sequentially switches between displaying, on the display device 400, multiple compressed images 10A and 10B acquired by capturing images multiple times using illumination light of different spectra, multiple edge images 30A and 30B generated based on the compressed images, and difference images 31A and 31B showing the differences between the edge images. The example illustrated in FIG. 19 is not limiting. The processing device 200 may sequentially switch between displaying two or more images selected from compressed images, superimposed images, edge images, and difference images. Furthermore, two or more sets of compressed images, superimposed images, edge images, and difference images may be displayed on the same screen (e.g., simultaneously), and the sets of images displayed on the same screen may be switched. For example, the display may switch between a set of a compressed image and an edge image, a set of a compressed image and a superimposed image, a set of a compressed image, a superimposed image, and a difference image, or a set of a compressed image and a difference image. Such a display may make it easier for a user to determine whether edges in the compressed images are clear.
[0088] In each example of Figures 15 to 19, the processing device 200 may also display on the display device 400 one or more restored images contained in the hyperspectral image (i.e., multiple restored images) restored based on the compressed image.
[0089] Next, an example in which the processing device 200 automatically adjusts the spectrum of the illumination light from the illumination device 300 will be described.
[0090] FIG. 20 is a block diagram illustrating an example configuration of an imaging system 1000 in which a processing device 200 automatically adjusts the spectrum of illumination light from an illumination device 300 based on a compressed image. The imaging system 1000 illustrated in FIG. 20 includes an edge determination circuit 272 in addition to the components illustrated in FIG. 10 . The edge determination circuit 272 determines whether or not the spectrum of illumination light needs to be changed based on the edge image generated by the edge detection circuit 270. For example, the edge determination circuit 272 determines whether or not the spectrum of illumination light needs to be changed based on the amount of edges contained in the edge image. If the edge determination circuit 272 determines that the spectrum of illumination light needs to be changed, it sends a command to the illumination control circuit 350 to change the spectrum of illumination light. In response to the command, the illumination control circuit 350 can change the spectrum of illumination light by switching the light source in the illumination device 300 or switching the optical filter that modulates the light emitted from the light source. Note that the functions of the edge detection circuit 270 and the edge determination circuit 272 may be realized by a single processing circuit.
[0091] The edge determination circuit 272 determines whether the edge image satisfies a predetermined condition, and if the condition is not satisfied, instructs the illumination control circuit 350 to change the spectrum of the illumination light. The condition may be, for example, that the maximum length of uninterrupted, continuous edges detected from the compressed image is equal to or greater than a certain value. Alternatively, the condition may be that the similarity to a reference edge image generated from a reference image of the object prepared in advance is equal to or greater than a certain value. The reference image may be an image of an object of the same type as the object being inspected, or CAD data of the object.
[0092] The similarity between an edge image and a reference edge image can be calculated, for example, by the following method. First, the luminance of the edge image is E(u, v), and the luminance of the reference edge image is R(u, v). Here, (u, v) represent the coordinates of a pixel, and the luminance of a pixel that corresponds to an edge is set to 1, and the luminance of a pixel that does not correspond to an edge is set to 0. The similarity S can be calculated by the following formula.
[0093] The similarity S takes a value of 1 if there is a perfect match and a value of 0 if there is a perfect difference.
[0094] FIG. 21 is a flowchart illustrating an example of the operation of the processing device 200. In this example, the processing device 200 first acquires a compressed image of an object illuminated by light from the illumination device 300 from the imaging device 100 (step S210). Next, the processing device 200 detects edges in the compressed image (step S220). The edge detection method is as described above. Based on the edge detection results, the processing device 200 generates an edge image in which the edges in the compressed image are emphasized (step S230). Next, the processing device 200 determines whether the edge image satisfies a predetermined condition (step S240). If the condition is satisfied, the processing device 200 restores a hyperspectral (HS) image based on the compressed image (step S250). If the condition is not satisfied, the processing device 200 outputs a control signal to the illumination control circuit 350 to instruct a change in the spectrum of the illumination light (step S260). After step S260, the process returns to step S210. The operations of steps S210, S220, S230, S240, and S260 are repeated until a predetermined condition is met in step S240.
[0095] The predetermined condition in step S240 may be, for example, that the maximum length of continuous uninterrupted edges in the edge image is equal to or greater than a certain value, as described above, or that the similarity to a reference edge image generated from a reference image of the object prepared in advance is equal to or greater than a certain value.
[0096] The change in the spectrum of the illumination light in step S260 can be achieved, for example, by any of the following methods (1) to (4): (1) Switching between multiple light sources prepared in advance and emitting different light spectra (using one light source); (2) Changing the output power of each of multiple light sources prepared in advance and emitting different light spectra (using a combination of multiple light sources); (3) Changing the optical filter inserted in the optical path of the light emitted from the light source; (4) Using both switching the light source and changing the optical filter.
[0097] When the above method (3) or (4) is adopted, the imaging system 1000 includes an actuator that inserts a specific optical filter into the optical path, and the illumination control circuit 350 can change the spectrum of the illumination light by driving the actuator in response to a control signal from the processing device 200.
[0098] 21 , the processing device 200 determines, based on the compressed image acquired by the image sensor 160, whether or not to switch the illumination device 300 from a mode in which the illumination device 300 emits illumination light having a certain spectrum to a mode in which the illumination device 300 emits illumination light having a different spectrum. For example, the processing device 200 determines whether or not to switch the illumination light emission mode based on the amount of edges contained in the compressed image. Alternatively, the processing device 200 may acquire a reference image in which the edges of the object are enhanced, generated by a method other than imaging using the imaging device 100, and determine whether or not to switch the illumination light emission mode based on a comparison between the reference image and an edge image generated based on the compressed image. Such an operation makes it possible to acquire a compressed image with clear edges, thereby improving the accuracy of restoring a hyperspectral image based on a compressed image.
[0099] FIG. 22 is a flowchart showing another example of the operation of the processing device 200. Steps S210, S220, S230, and S260 in this example are the same as the corresponding steps shown in FIG. 21 . In the example of FIG. 22 , after step S230, the processing device 200 determines whether all patterns of illumination light have been applied (step S340). If the determination is Yes, the processing device 200 proceeds to step S350. If the determination is No, the processing device 200 proceeds to step S260. That is, the operations of steps S210, S220, S230, S340, and S260 are repeated until it is determined in step S340 that all patterns of illumination light have been applied. The number of illumination light patterns is two or more, and in some examples, may be ten or more, and in other examples, may be twenty or more. When imaging using all patterns of illumination light is complete, the processing device 200 selects the illumination light with the most edge information from the edge images generated for each illumination light (step S350). The processing device 200 restores a hyperspectral image from the compressed image acquired using the selected illumination light (step S360).
[0100] The selection of illumination light in step S350 can be performed by any of the following methods (a) to (d): (a) selecting illumination light corresponding to an edge image having the largest number of pixels detected as edges; (b) selecting illumination light corresponding to an edge image including an edge whose length is the largest when the pixels detected as edges are connected; or (c) selecting illumination light corresponding to an edge image having the greatest similarity to an edge image generated based on a reference image of the object prepared in advance.
[0101] 22 , the processing device 200 determines, based on a plurality of compressed images generated by sequentially capturing images using a plurality of illumination lights with different spectra, which of the plurality of compressed images is to be used to generate a hyperspectral image, i.e., a plurality of restored images. For example, the processing device 200 determines, based on a comparison of the amount of edges contained in a plurality of edge images generated from the plurality of compressed images, which of the plurality of compressed images is to be used to generate a plurality of restored images. By such processing, a plurality of restored images are generated based on compressed images with clear edges, thereby improving the restoration accuracy.
[0102] In the above embodiment, the processing device 200 generates multiple restored images based on compressed images acquired by imaging using illumination light with a non-uniform spectrum in the target wavelength range. However, the processing device 200 may also generate multiple restored images using illumination light with a uniform spectrum. In this case, imaging using illumination light with a non-uniform spectrum may be performed to determine optimal restoration parameters. In such a configuration, the illumination device 300 may be configured to emit first and second illumination lights with different spectral shapes, as well as third illumination light with a constant light intensity in the target wavelength range. Here, "constant light intensity" does not mean strictly constant, but rather means that the light intensity in the target wavelength range is within a range of ±20% or less of the average value in the target wavelength range. Hereinafter, illumination light with a constant light intensity may be referred to as "illumination light with a substantially uniform spectrum." The imaging device 100 may be configured to generate a first compressed image by imaging using first illumination light, a second compressed image by imaging using second illumination light, and a third compressed image by imaging using third illumination light. The processing device 200 may be configured to generate a plurality of decompressed images based on the first compressed image, the second compressed image, and the third compressed image.
[0103] FIG. 23 is a block diagram showing an example configuration of an imaging system 1000 that generates a restored image using illumination light with a uniform spectrum. In this example, the processing device 200 includes an edge image synthesis circuit 274 instead of the edge determination circuit 272 shown in FIG. 20. The edge image synthesis circuit 274 generates a single synthesized edge image from multiple edge images based on multiple compressed images captured using illumination light with multiple types of non-uniform spectra. The edge image synthesis circuit 274 may be configured to generate the synthesized edge image, for example, by performing an OR operation between the multiple edge images. Such a synthesized edge image includes all edges detected in at least one edge image. Alternatively, the edge image synthesis circuit 274 may generate the synthesized edge image by synthesizing, as edge pixels, pixels detected as edges in a threshold number or more of the multiple edge images.
[0104] In the example of FIG. 23 , the illumination device 300 is configured to emit illumination light with a substantially uniform spectrum in the target wavelength range. The restoration calculation circuit 250 may be configured to generate multiple restored images based on a compressed image acquired by capturing an object illuminated with illumination light with a substantially uniform spectrum and a composite edge image. For example, the restoration calculation circuit 250 may determine restoration parameters for generating multiple restored images based on the composite edge image, and generate multiple restored images based on the restoration parameters and the compressed image. The restoration parameter may be, for example, the weighting coefficient τ in the second term in parentheses on the right side of the aforementioned equation (2), i.e., the regularization term. The regularization term may be, for example, total variation (TV). The restoration calculation circuit 250 can improve the restoration accuracy of the hyperspectral image by performing a restoration calculation, for example, by making the weighting coefficient τ for pixels corresponding to edges in the composite edge image smaller than the values for other pixels.
[0105] There are various types of edges in objects, and the spectrum of illumination light suitable for detecting each edge varies. For example, if light blue and yellow areas of an object meet, it is difficult to detect the edge when illuminating it with white or green illumination light, but it becomes easier to detect the edge when illuminating it with red or blue illumination light. Conversely, if white and green areas meet, it is easy to detect the edge when illuminating it with white or green illumination light, but it becomes difficult to detect the edge when illuminating it with red or blue illumination light.
[0106] Therefore, in this embodiment, by sequentially emitting multiple types of illumination light with different spectra, the edges of each are detected, and the multiple edge images are integrated, making it easier to detect edges throughout the image. Furthermore, since illumination light with a uniform spectrum is advantageous for image restoration, the processing device 200 improves restoration accuracy by switching between illumination light for edge detection and illumination light for image restoration.
[0107] When spectral image restoration is performed using a calculation that minimizes a regularization term, such as total variation, which indicates image smoothness, as in this embodiment, restoration accuracy decreases in edge regions where the wavelength characteristics of the object differ. This is because an attempt is made to approximate the spectra of two adjacent regions in order to reduce the regularization term. Therefore, in this embodiment, the processing device 200 determines the edges in advance and reduces the weighting coefficient τ in the edge regions. This prevents the spectra of the two adjacent regions from becoming too similar, thereby improving restoration accuracy.
[0108] FIG. 24 is a flowchart illustrating an example of the operation of the processing device 200 in this embodiment. The operations of steps S210, S220, S230, and S260 in this example are the same as the operations of the corresponding steps shown in FIGS. 21 and 22 . In this embodiment, after step S230, the processing device 200 determines whether a predetermined number of edge images have been generated (step S440). The predetermined number may be set to, for example, two or more, equal to or less than the number of spectral types that the illumination device 300 can emit. If the determination is Yes, the processing proceeds to step S450. If the determination is No, the processing proceeds to step S260. The processing of steps S210, S220, S230, S440, and S260 is repeated until a Yes determination is made in step S440. Once the predetermined number of edge images have been generated, the processing device 200 generates a composite edge image by combining the generated edge images using the method described above (step S450). Next, the processing device 200 acquires a compressed image of the object illuminated with light having a substantially uniform spectrum in the target wavelength range. The processing device 200 generates a hyperspectral image (i.e., a plurality of restored images) based on the compressed image of the object illuminated with light having a substantially uniform spectrum and the synthesized edge image (step S470). As described above, the hyperspectral image can be generated by, for example, setting the weighting coefficient τ of the total variation for pixels corresponding to edges in the synthesized edge image to a smaller value than for other pixels.
[0109] Through the above processing, edge regions can be detected with high accuracy from multiple compressed images acquired by imaging using illumination light with multiple non-uniform spectra, and the detection results can be used to generate a high-quality hyperspectral image.
[0110] In each of the above-described embodiments, the process of detecting edges based on one or more compressed images and the process of generating multiple restored images are performed by a single processing device 200. This configuration is not limiting, and the processing device for detecting edges and the processing device for generating restored images may be separated. For example, the imaging system 1000 may include a processing device for detecting edges but not a processing device for generating restored images. In this case, the process of generating restored images may be performed by an external device, such as a cloud server, connected to the imaging system 1000 via a network. The imaging system 1000 may include a communication device that communicates with such an external device.
[0111] The present disclosure also includes a system that generates a compressed image and an edge image through simulation based on data prepared in advance, without actually preparing an illumination device 300 and an object, and determines the optimal illumination light spectrum for an assumed object. An example of such a system will be described below.
[0112] 25 is a block diagram showing an example of the configuration of a system 2000 that determines an optimal illumination light spectrum for an assumed object. The system 2000 includes a processing device 200, a display device 400, and an input UI 500. The processing device 200 includes a memory 210 and a processing circuit 280.
[0113] The input UI 500 is an interface for inputting first data relating to the spectral reflectance characteristics of an assumed object. The first data is, for example, data having spectral reflectance values for each region or pixel of the object. The first data may be CAD data having spectral reflectance values for each region of the object.
[0114] The memory 210 stores second data relating to the spectrum of illumination light irradiated onto the object and third data relating to the spectral sensitivity characteristics of each pixel of the imaging device 100 that images the object. The second data may be, for example, data indicating the spectra of multiple illumination lights that can be emitted by the aforementioned illumination device 300. The third data may be, for example, mask data that reflects the spatial distribution of the spectral transmittance of the aforementioned filter array 110. The second data and the third data may be input from the input UI 500.
[0115] The processing circuitry 280 acquires the first data, the second data, and the third data, and generates, based on the acquired data, an estimated image that is estimated to be generated when the imaging device 100 captures an image of an object illuminated with illumination light. This estimated image corresponds to a virtual compressed image. The processing circuitry 280 generates an edge image based on the estimated image using the above-described method, and causes the display device 400 to display the edge image.
[0116] Here, the position coordinates of a pixel in the estimated image corresponding to a position on the surface of the object are (x, y) and the wavelength is λ. The first data, second data, and third data may each be data (e.g., a table) indicating a function dependent on the position coordinates (x, y) and the wavelength λ. The first data indicates the spectral reflectance ρ(x, y, λ) of the object, the second data indicates the intensity I(x, y, λ) of the illumination light, and the third data indicates the spectral sensitivity s(x, y, λ) of the imaging device 100. The third data corresponds to the mask data described above. ρ, I, and s are all normalized to the range of 0 to 1. The luminance value L(x, y) at the coordinates (x, y) of the estimated image can be calculated by multiplying Σρ(x, y, λ)I(x, y, λ)s(x, y, λ) by the maximum pixel value (e.g., 255 or 1023). Alternatively, Σρ(x,y,λ)I(x,y,λ)s(x,y,λ) may be used as the luminance value L(x,y) without multiplying by the maximum pixel value. Here, Σ represents the sum (ideally, the integral) for wavelength λ. By performing this calculation, the processing circuitry 280 can calculate the luminance value L of each pixel of the estimated image, i.e., the virtual compressed image.
[0117] FIG. 26 is a diagram showing an example of the spectral reflectance of an object 70. FIG. 26 illustrates the spectral reflectance at two locations on the surface of the object 70. As shown in this figure, the spectral reflectance may vary depending on the position on the object 70. Therefore, the first data indicating the spatial distribution of the spectral reflectance may be data having a reflectance value for each pixel, the number of which corresponds to the number of wavelengths. Alternatively, the first data may be data having a reflectance value for each voxel in the CAD data, the number of which corresponds to the number of wavelengths.
[0118] FIG. 27 is a flowchart illustrating an example of processing executed by the processing circuitry 280. In this example, the processing circuitry 280 first acquires spectral reflectance data (first data) of the object, spectral data (second data) of the illumination light, and mask data (third data) from the input UI 500 or the memory 210 (step S510). Next, the processing circuitry 280 generates an estimated image using the above-described method based on the spectral reflectance data of the object, the spectral data of the illumination light, and the mask data (step S520). The processing circuitry 280 detects edges from the estimated image (step S530). The edge detection process is similar to the process of step S120 shown in FIG. 11. The processing circuitry 280 generates an estimated edge image based on the results of the edge detection (step S540). The process of generating the estimated edge image is similar to the process of step S130 shown in FIG. 11. The processing circuitry 280 displays the estimated edge image on the display 430 (step S550).
[0119] Through the above operations, the user can determine whether the spectrum of the illumination light is suitable for generating a spectral image of the object based on the displayed estimated edge image. If the spectrum of the illumination light is not suitable, the user may operate the input UI 500 to select another spectrum of the illumination light and cause the processing circuit 280 to perform the operations shown in FIG. 27 again. By repeating such operations, the optimal spectrum of the illumination light can be determined.
[0120] The processing circuitry 280 may change the spectral data of the illumination light until the estimated edge image satisfies a predetermined condition. That is, the generation of an estimated image and the generation of an estimated edge image may be repeated by changing the spectral data of the illumination light. The predetermined condition is the same as the condition in step S240 shown in FIG. 21 . In this case, the spectral data of multiple types of illumination light is stored in advance in the memory 210.
[0121] Furthermore, similar to the example shown in FIG. 22, the processing circuit 280 may generate multiple estimated images based on the spectral data of multiple illumination lights, and determine the illumination light that most emphasizes edges as the optimal illumination light based on a comparison of the multiple estimated images.
[0122] Instead of or in addition to the edge image, the processing device 200 may display information indicating optimal illumination light on the display 430. By displaying such information, the user can select optimal illumination light.
[0123] [Note] The present disclosure is not limited to the above-described embodiments. As long as they do not deviate from the spirit of the present disclosure, the scope of the present disclosure also includes various modifications that a person skilled in the art may have made to each embodiment, modifications that a person skilled in the art may have made to each modification, configurations constructed by combining components in different embodiments, configurations constructed by combining components in different modifications, and configurations constructed by combining components in any embodiment and components in any modification.
[0124] The above description of the embodiments discloses the following techniques.
[0125] (Technology 1) An imaging system comprising: an illumination device that emits illumination light to be irradiated onto an object; an imaging device that receives reflected light from the object caused by the illumination light, and generates a compressed image in which image information of multiple wavelength bands included in a target wavelength range is compressed into a single piece of image information; and a processing device that generates, based on the compressed image, multiple restored images, each corresponding to a different one of the multiple wavelength bands, wherein the multiple wavelength bands include a first wavelength band and a second wavelength band, and the intensity of light in the first wavelength band included in the illumination light is different from the intensity of light in the second wavelength band included in the illumination light.
[0126] (Technology 2) The imaging system according to Technology 1, wherein the intensity of the illumination light monotonically increases or decreases as the wavelength increases in the target wavelength range.
[0127] (Technology 3) The imaging system according to Technology 1 or 2, wherein the processing device further generates an edge image in which edges of the compressed image are enhanced based on the compressed image.
[0128] (Technology 4) The imaging system according to Technology 3, wherein the processing device causes a display device to display the edge image and the compressed image.
[0129] (Technology 5) The imaging system according to Technology 3 or 4, wherein the imaging device includes an optical element including a plurality of regions having different transmission spectra, and an image sensor that receives light that has passed through the optical element and generates the compressed image, and the processing device generates the edge image based on mask data that reflects a spatial distribution of the transmission spectrum of the optical element and the compressed image.
[0130] (Technology 6) The imaging system according to Technology 3 or 4, wherein the imaging device includes an optical element including a plurality of regions having different transmission spectra, and an image sensor that receives light that has passed through the optical element and generates the compressed image, and the processing device generates the edge image based on mask data that reflects a spatial distribution of the transmission spectrum of the optical element and one or more restored images included in the plurality of restored images.
[0131] (Technology 7) The imaging system according to Technology 3 or 4, wherein the processing device generates and outputs a superimposed image by superimposing the compressed image and the edge image.
[0132] (Technology 8) The imaging system according to Technology 3 or 4, wherein the illumination device is configured to emit the illumination light as first illumination light, and further emit second illumination light having a spectral shape different from that of the first illumination light; the imaging device is configured to generate the compressed image as a first compressed image, and further receive reflected light from the object caused by the second illumination light and generate a second compressed image in which image information of the plurality of wavelength bands is compressed as a single piece of image information; and the processing device generates the edge image as a first edge image, and further generates a second edge image based on the second compressed image, and generates and outputs a difference image indicating a difference between the first edge image and the second edge image.
[0133] (Technology 9) The imaging system according to Technology 1 or 2, wherein the illumination device is configured to emit the illumination light as first illumination light, and further emit second illumination light having a spectral shape different from that of the first illumination light; the imaging device is configured to generate the compressed image as a first compressed image, and further receive reflected light from the object caused by the second illumination light, and generate a second compressed image in which image information of the plurality of wavelength bands is compressed as a single piece of image information; and the processing device determines, based on the first compressed image, whether or not it is necessary to switch from a mode in which the illumination device emits the first illumination light to a mode in which the illumination device emits the second illumination light.
[0134] (Technology 10) The imaging system according to Technology 9, wherein the processing device generates a first edge image based on the first compressed image, in which edges of the first compressed image are emphasized, and determines, based on an amount of edges included in the first edge image, whether or not the lighting device needs to switch from a mode in which it emits the first illumination light to a mode in which it emits the second illumination light.
[0135] (Technology 11) The imaging system described in Technology 10, wherein the processing device acquires a reference image in which the edges of the object are emphasized, which is generated by a method different from imaging using the imaging device, and determines whether or not it is necessary to switch from a mode in which the illumination device emits the first illumination light to a mode in which the illumination device emits the second illumination light based on a comparison between the first edge image and the reference image.
[0136] (Technology 12) The imaging system according to Technology 1 or 2, wherein the illumination device is configured to emit the illumination light as first illumination light, and further emit second illumination light having a spectral shape different from that of the first illumination light; the imaging device is configured to generate the compressed image as a first compressed image, and further receive reflected light from the object caused by the second illumination light, and generate a second compressed image in which image information of the plurality of wavelength bands is compressed as a single piece of image information; and the processing device determines, based on the first compressed image and the second compressed image, whether the first compressed image or the second compressed image is used to generate the plurality of restored images.
[0137] (Technology 13) The imaging system described in Technology 12, wherein the processing device generates a first edge image based on the first compressed image, in which edges of the first compressed image are enhanced; generates a second edge image based on the second compressed image, in which edges of the second compressed image are enhanced; and determines whether the first compressed image or the second compressed image is used to generate the plurality of restored images based on a comparison between an amount of edges included in the first edge image and an amount of edges included in the second edge image.
[0138] (Technology 14) The imaging system according to Technology 1 or 2, wherein the illumination device is configured to emit the illumination light as first illumination light, and further emit second illumination light having a different spectral shape from the first illumination light, and third illumination light having a constant light intensity in the target wavelength range; the imaging device is configured to generate the compressed image as a first compressed image, and further receive light reflected from the object due to the second illumination light to generate a second compressed image in which image information of the plurality of wavelength bands is compressed as a single piece of image information, and receive light reflected from the object due to the third illumination light to generate a third compressed image in which image information of the plurality of wavelength bands is compressed as a single piece of image information; and the processing device generates the plurality of restored images based on the first compressed image, the second compressed image, and the third compressed image.
[0139] (Technology 15) The imaging system described in Technology 14, wherein the processing device generates a first edge image based on the first compressed image, in which edges of the first compressed image are enhanced; generates a second edge image based on the second compressed image, in which edges of the second compressed image are enhanced; determines restoration parameters for generating the plurality of restored images based on the first edge image and the second edge image; and generates the plurality of restored images based on the restoration parameters and the third compressed image.
[0140] (Technology 16) A method executed by a computer, comprising: emitting illumination light to be irradiated onto an object from an illumination device; and receiving light reflected from the object caused by the illumination light, and causing an imaging device to generate a compressed image in which image information of multiple wavelength bands included in a target wavelength range is compressed into a single piece of image information, and generating the compressed image, wherein the multiple wavelength bands include a first wavelength band and a second wavelength band, and the intensity of light in the first wavelength band included in the illumination light is different from the intensity of light in the second wavelength band included in the illumination light.
[0141] (Technique 17) The method according to technique 16, further comprising generating a plurality of restored images based on the compressed image, each of the restored images corresponding to a different one of the plurality of wavelength bands.
[0142] (Technology 18) A method executed by a computer, comprising: acquiring first data regarding the spectral reflectance characteristics of an object; acquiring second data regarding the spectrum of illumination light irradiated onto the object; acquiring third data regarding the spectral sensitivity characteristics of each pixel of an imaging device that images the object; and generating, based on the first data, the second data, and the third data, an estimated image that is estimated to be generated when the imaging device images the object irradiated with the illumination light.
[0143] (Technology 19) The method according to Technology 18, further comprising generating and outputting an edge image in which the edges of the estimated image are enhanced.
[0144] (Technique 20) The method according to technique 18, further comprising determining, based on the estimated image, whether the spectrum of the illumination light is suitable for generating a spectral image of the object.
[0145] The technology disclosed herein is useful, for example, in cameras and measuring devices that capture multi-wavelength or high-resolution images. The technology disclosed herein can also be applied to, for example, biomedical, cosmetic, and other sensing applications, food foreign matter and pesticide residue inspection systems, remote sensing systems, and vehicle-mounted sensing systems.
[0146] 10 Compressed image 20 Hyperspectral image 20W 1 , 20W 2 , ..., 20W NReconstructed image 30 Edge image 40 Superimposed image 70 Object 100 Imaging device 110 Filter array 140, 140A, 140B Optical system 160 Image sensor 200 Processing device 210 Memory 220 Sensor control circuit 250 Reconstruction calculation circuit 270 Edge detection circuit 280 Processing circuit 300 Illumination device 350 Illumination control circuit 400 Output device 420 Image processing circuit 430 Display 500 Input UI 1000 Imaging system
Claims
1. An imaging system comprising: an illumination device that emits illumination light to be irradiated onto an object; an imaging device that receives light reflected from the object caused by the illumination light, and generates a compressed image in which image information of multiple wavelength bands included in a target wavelength range is compressed into a single piece of image information; and a processing device that generates a plurality of restored images, each corresponding to a different one of the multiple wavelength bands, based on the compressed image, wherein the multiple wavelength bands include a first wavelength band and a second wavelength band, and the intensity of the light of the first wavelength band included in the illumination light is different from the intensity of the light of the second wavelength band included in the illumination light.
2. The imaging system of claim 1, wherein the intensity of the illumination light increases or decreases monotonically with increasing wavelength in the target wavelength range.
3. The imaging system according to claim 1 or 2, wherein the processing device further generates an edge image in which edges of the compressed image are enhanced based on the compressed image.
4. The imaging system according to claim 3, wherein the processing device causes a display device to display the edge image and the compressed image.
5. The imaging system of claim 3, wherein the imaging device comprises an optical element including a plurality of regions having mutually different transmission spectra, and an image sensor that receives light that has passed through the optical element and generates the compressed image, and the processing device generates the edge image based on mask data that reflects the spatial distribution of the transmission spectrum of the optical element and the compressed image.
6. The imaging system of claim 3, wherein the imaging device comprises an optical element including a plurality of regions having mutually different transmission spectra, and an image sensor that receives light that has passed through the optical element and generates the compressed image, and the processing device generates the edge image based on mask data reflecting the spatial distribution of the transmission spectrum of the optical element and one or more restored images included in the plurality of restored images.
7. The imaging system according to claim 3, wherein the processing device generates and outputs a superimposed image by superimposing the compressed image and the edge image.
8. The imaging system of claim 3, wherein the illumination device is configured to emit the illumination light as a first illumination light, and further emit a second illumination light having a spectral shape different from that of the first illumination light; the imaging device is configured to generate the compressed image as a first compressed image, and further receive reflected light from the object caused by the second illumination light and generate a second compressed image in which image information of the multiple wavelength bands is compressed as a single piece of image information; and the processing device generates the edge image as a first edge image, and further generates a second edge image based on the second compressed image, and generates and outputs a difference image showing the difference between the first edge image and the second edge image.
9. The imaging system according to claim 1 or 2, wherein the illumination device is configured to emit the illumination light as a first illumination light, and further emit a second illumination light having a different spectral shape from the first illumination light; the imaging device is configured to generate the compressed image as a first compressed image, and further to receive reflected light from the object caused by the second illumination light and generate a second compressed image in which image information of the multiple wavelength bands is compressed as a single piece of image information; and the processing device determines, based on the first compressed image, whether or not it is necessary to switch from a mode in which the illumination device emits the first illumination light to a mode in which the illumination device emits the second illumination light.
10. The imaging system of claim 9, wherein the processing device generates a first edge image in which edges of the first compressed image are emphasized based on the first compressed image, and determines, based on an amount of edges contained in the first edge image, whether or not it is necessary to switch from a mode in which the lighting device emits the first illumination light to a mode in which the lighting device emits the second illumination light.
11. The imaging system of claim 10, wherein the processing device acquires a reference image in which the edges of the object are enhanced, the reference image being generated by a method other than imaging using the imaging device, and determines whether or not it is necessary to switch from a mode in which the illumination device emits the first illumination light to a mode in which the illumination device emits the second illumination light based on a comparison between the first edge image and the reference image.
12. The imaging system of claim 1 or 2, wherein the illumination device is configured to emit the illumination light as a first illumination light, and further emit a second illumination light having a different spectral shape from the first illumination light; the imaging device is configured to generate the compressed image as a first compressed image, and further to receive reflected light from the object caused by the second illumination light and generate a second compressed image in which image information of the multiple wavelength bands is compressed as a single piece of image information; and the processing device determines, based on the first compressed image and the second compressed image, whether the multiple restored images are to be generated based on the first compressed image or the second compressed image.
13. The imaging system of claim 12, wherein the processing device: generates a first edge image based on the first compressed image, in which edges of the first compressed image are enhanced; generates a second edge image based on the second compressed image, in which edges of the second compressed image are enhanced; and determines whether the first compressed image or the second compressed image is to be used to generate the multiple restored images based on a comparison between an amount of edges contained in the first edge image and an amount of edges contained in the second edge image.
14. The imaging system of claim 1 or 2, wherein the illumination device is configured to emit the illumination light as a first illumination light, and further emit a second illumination light having a different spectral shape from the first illumination light, and a third illumination light having a constant light intensity in the target wavelength range; the imaging device is configured to generate the compressed image as a first compressed image, and further configured to receive reflected light from the object caused by the second illumination light and generate a second compressed image in which image information of the multiple wavelength bands is compressed as a single piece of image information, and to receive reflected light from the object caused by the third illumination light and generate a third compressed image in which image information of the multiple wavelength bands is compressed as a single piece of image information; and the processing device generates the multiple restored images based on the first compressed image, the second compressed image, and the third compressed image.
15. The imaging system of claim 14, wherein the processing device: generates a first edge image based on the first compressed image, in which edges of the first compressed image are enhanced; generates a second edge image based on the second compressed image, in which edges of the second compressed image are enhanced; determines restoration parameters for generating the multiple restored images based on the first edge image and the second edge image; and generates the multiple restored images based on the restoration parameters and the third compressed image.
16. A method executed by a computer, comprising: emitting illumination light to be irradiated onto an object from an illumination device; receiving light reflected from the object caused by the illumination light, and causing an imaging device to generate a compressed image in which image information of multiple wavelength bands included in a target wavelength range is compressed into a single piece of image information, and generating the compressed image; wherein the multiple wavelength bands include a first wavelength band and a second wavelength band, and the intensity of the light in the first wavelength band included in the illumination light is different from the intensity of the light in the second wavelength band included in the illumination light.
17. The method of claim 16, further comprising generating a plurality of decompressed images based on the compressed image, each image corresponding to a different one of the plurality of wavelength bands.
18. A method executed by a computer, comprising: acquiring first data relating to the spectral reflectance characteristics of an object; acquiring second data relating to the spectrum of illumination light irradiated on the object; acquiring third data relating to the spectral sensitivity characteristics of each pixel of an imaging device that images the object; and generating, based on the first data, the second data, and the third data, an estimated image that is estimated to be generated when the imaging device images the object irradiated with the illumination light.
19. The method of claim 18, further comprising generating and outputting an edge image in which edges of the estimated image are enhanced.
20. The method of claim 18, further comprising determining whether the spectrum of the illumination light is suitable for generating a spectral image of the object based on the estimated image.
Citation Information
Patent Citations
Imaging apparatus
JP2016130727A
Depth image sensor with always-depleted photodiodes
US20220201187A1
Object recognition method, vehicle control method, information display method, and object recognition device
WO2020080045A1
Signal processing method, signal processing device, and imaging system
WO2021246192A1
Processing device, system, method, and computer program
WO2022075094A1
