Imaging pixel processing method for spectral recovery
By employing weighted averaging and brightness compensation methods in spectral imaging technology, the problems of low spatial resolution and large errors in spectral images have been solved, achieving higher spectral recovery accuracy and resolution.
Patent Information
- Application Number
- CN202211255006.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-13
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-10-13
AI Technical Summary
Existing spectral imaging techniques often lead to a decrease in the spatial resolution of spectral images when recovering spectral pixels from multiple imaging pixels, and may introduce erroneous values when the spectral characteristics of the scene are different.
By referencing the response signal values of multiple imaging pixels adjacent to the current imaging pixel coordinates and performing a weighted average based on their distances to the current imaging pixel coordinates, the spectral restoration process is optimized using illusory interpolation and brightness compensation methods.
This improves the spatial resolution of spectral images and reduces errors, ensuring the accuracy of spectral reconstruction.
Smart Images

Figure CN117928729B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of spectral chip technology, and more specifically, to an imaging pixel processing method for spectral restoration. Background Technology
[0002] Spectral imaging technology is a technique that organically combines spectral detection and imaging. It can image an object under different spectra, simultaneously obtaining the geometric shape information and spectral characteristics of the object being detected. Spectral imaging technology has become an important tool for Earth observation and deep space exploration, and is widely used in fields such as agricultural and forestry production, mineral resource exploration, cultural relic detection, marine remote sensing, environmental monitoring, disaster prevention and mitigation, and military reconnaissance.
[0003] Specifically, in spectral imaging technology, the calculation method for a single spectral pixel is as follows:
[0004]
[0005] Where O is the spectral image tensor to be recovered, and O(i,j) is the spectral vector of the imaging pixel (i,j) in the spectral image tensor; This is the original signal value matrix near the imaging pixel (i,j) used for spectral reconstruction, such as the response signal value matrix of an image sensor to input light; f i,j It is used to The model is reconstructed into a spectrum O(i,j).
[0006] generally, For example: That is, all pixels within a square range of p pixels above, below, left, and right of the imaging pixel (i,j); where B represents the entire signal value matrix that needs to be used for spectral imaging reconstruction, which is usually the entire photosensitive element, such as the set of response signal values of an image sensor. It is a symbol whose length is usually (2p+1). 2 A vector, for example, can be represented by b. i,j,k Representing vectors The value of the k-th element.
[0007] Although the above While the choice of spectral density has its merits, for spectral imaging scenarios requiring multiple imaging pixels to reconstruct a single spectral pixel, this approach may lead to a reduction in the spatial resolution of the spectral image. Furthermore, within the range B(ip:i+p,jp:j+p), if objects with different spectral characteristics exist simultaneously, it could cause subsequent spectral reconstruction algorithms to fail, introducing erroneous values into the reconstructed spectral image.
[0008] Therefore, it is desirable to provide an improved imaging pixel processing scheme for spectral restoration based on multiple imaging pixels to recover spectral pixels. Summary of the Invention
[0009] To address the aforementioned technical problems, this application is proposed. Embodiments of this application provide an imaging pixel processing method for spectral restoration, which, by referencing the response signal values of multiple imaging pixels adjacent to the current imaging pixel coordinates used for spectral restoration and taking a weighted average based on the distance between these values and the current imaging pixel coordinates used for spectral restoration, can result in a restored spectral image with smaller errors and higher spatial resolution.
[0010] According to one aspect of this application, an imaging pixel processing method for spectral restoration is provided, comprising: determining the side length of the spatial period of a filter structure of a spectral imaging device and the number of neighboring pixels; determining illusory relative coordinates based on the side length of the spatial period of the filter structure, the number of neighboring pixels, and the position index of the response signal vector corresponding to the current imaging pixel coordinates for spectral restoration; determining a list of illusory auxiliary bits based on the side length of the spatial period of the filter structure, the illusory relative coordinates, and the current imaging pixel coordinates for spectral restoration; obtaining illusory interpolation based on the response signal value of the image sensor corresponding to the illusory auxiliary bit coordinates belonging to the illusory auxiliary bit list, and the Minkowski distance between the illusory auxiliary bit coordinates and the current imaging pixel coordinates for spectral restoration; and obtaining the processed response signal vector corresponding to the current imaging pixel coordinates for spectral restoration based on the illusory interpolation value and the position index.
[0011] In the above-described imaging pixel processing method for spectral restoration, the side length of the spatial period of the filter structure is l, the number of neighboring pixels is p, the coordinates of the imaging pixel used for spectral restoration are (i,j), and the position index of the response signal vector is k. Then, the illusory relative coordinates are:
[0012]
[0013] In the above-described imaging pixel processing method for spectral restoration, the virtual auxiliary bit list is as follows:
[0014]
[0015] In the above-described imaging pixel processing method for spectral restoration, obtaining the virtual position interpolation based on the response signal value of the image sensor corresponding to the virtual auxiliary bit coordinates belonging to the virtual auxiliary bit list, and the Minkowski distance between the virtual auxiliary bit coordinates and the current imaging pixel coordinates used for spectral restoration includes: for each virtual auxiliary bit coordinate (x, y) belonging to the virtual auxiliary bit list, obtaining the response signal value B of the image sensor corresponding to the virtual auxiliary bit coordinate (x, y). x,y Calculate the Minkowski distance between the virtual auxiliary position coordinates (x, y) and the current imaging pixel coordinates (i, j) used for spectral reconstruction. For all virtual auxiliary bit coordinates belonging to the virtual auxiliary bit list, calculate the response signal value B. x,y The product of the product and the Minkowski distance M((x,y),(i,j)) is summed to obtain a first summation value; the sum of the Minkowski distances M((x,y),(i,j)) corresponding to all virtual auxiliary bit coordinates belonging to the virtual auxiliary bit list is calculated to obtain a second summation value; and the first summation value is divided by the second summation value to obtain the virtual bit interpolation, expressed as:
[0016]
[0017] The above-described imaging pixel processing method for spectral restoration further includes: determining the virtual position transformation coordinates based on the virtual position relative coordinates and the current imaging pixel coordinates used for spectral restoration.
[0018] In the above-described imaging pixel processing method for spectral restoration, the pseudo-relative coordinates are (Δx) k ,Δy k If the current imaging pixel coordinates used for spectral restoration are (i,j), then the virtual position transformation coordinates are:
[0019] v(i,j,k)=(i+Δx k ,j+Δy k ).
[0020] In the above-described imaging pixel processing method for spectral restoration, after determining the virtual position transformation coordinates, the method further includes: calculating the dot product of the local brightness value and the second transmission spectrum vector corresponding to the current imaging pixel coordinates for spectral restoration and the virtual position transformation coordinates, the response signal value corresponding to the current imaging pixel coordinates for spectral restoration, a predetermined constant value, and the product of the Minkowski distance between the current imaging pixel coordinates for spectral restoration and the virtual position transformation coordinates.
[0021] In the above-described imaging pixel processing method for spectral restoration, the first transmission spectrum vector corresponding to the current imaging pixel coordinates (i,j) for spectral restoration is A.i,j The first transmission spectrum vector corresponding to the virtual position transformation coordinate v(i,j,k) is A. v(i,j,k) The response signal value B corresponding to the current imaging pixel coordinates (i,j) used for spectral reconstruction i,j The predetermined constant value is c1, and the Minkowski distance between the current imaging pixel coordinates (i,j) used for spectral restoration and the imaginary transformation coordinates v(i,j,k) is... The local luminance value is then expressed as:
[0022]
[0023] In the above-described imaging pixel processing method for spectral restoration, obtaining the processed response signal vector corresponding to the current imaging pixel coordinates for spectral restoration based on the virtual position difference value and the position number includes: adding the virtual position difference value to the local brightness value and arranging it according to the position number to obtain the processed response signal vector corresponding to the current imaging pixel coordinates for spectral restoration.
[0024] The above-described imaging pixel processing method for spectral restoration further includes: determining a set of real auxiliary bits based on the current imaging pixel coordinates for spectral restoration and the side length of the spatial period of the filter structure.
[0025] In the above-described imaging pixel processing method for spectral restoration, the current imaging pixel coordinates for spectral restoration are (i,j), and the side length of the spatial period of the filter structure is l. Then, the set of real auxiliary bits is:
[0026] L R (i,j)={
[0027] (il,jl),(il,j),(il,j+l),(i,jl),
[0028] (i,j+l),(i+l,jl),(il,j),(il,j+l)
[0029] }
[0030] The above-described imaging pixel processing method for spectral restoration further includes: calculating the inner product of a third transmission spectrum vector corresponding to each real auxiliary bit coordinate belonging to the real auxiliary bit set and a fourth transmission spectrum vector corresponding to the virtual auxiliary bit transformation coordinates corresponding to each virtual auxiliary bit coordinate belonging to the virtual auxiliary bit set; calculating the product of the response signal value of the image sensor corresponding to each real auxiliary bit coordinate belonging to the real auxiliary bit set and the inner product of the vectors, multiplying it by the Minkowski distance between the real auxiliary bit coordinate and the virtual auxiliary bit coordinate, and summing the product over all real auxiliary bit coordinates belonging to the real auxiliary bit set and all virtual auxiliary bit coordinates belonging to the virtual auxiliary bit set, and multiplying it by a predetermined constant value as the numerator; and calculating the summation of the Minkowski distances between all real auxiliary bit coordinates belonging to the real auxiliary bit set and all virtual auxiliary bit coordinates belonging to the virtual auxiliary bit set as the denominator to obtain a brightness compensation value.
[0031] In the above-described imaging pixel processing method for spectral restoration, the coordinates of each real auxiliary bit belonging to the set of real auxiliary bits are (m, n), and the third transmission spectrum vector A corresponding to the coordinates of the real auxiliary bits is... m,n The virtual auxiliary bit coordinate (x, y) belonging to the virtual auxiliary bit set corresponds to the virtual auxiliary bit transformation coordinate v(x, y, k), and the fourth transmission spectrum vector A corresponding to the virtual auxiliary bit transformation coordinate is... v(x,y,k) Its inner product is (A m,n ·A v(x,y,k) ); whereby the virtual auxiliary position coordinate (x,y) corresponding to the virtual auxiliary position transformation coordinate v(x,y,k) is expressed as:
[0032] v(x,y,k)=(x+Δx k ,y+Δy k );
[0033] The response signal value of the image sensor corresponding to each real auxiliary bit coordinate belonging to the set of real auxiliary bits is B. m,n The Minkowski distance between the real auxiliary position coordinates and the virtual auxiliary position coordinates is M((m,n),(x,y)), and the brightness compensation value is expressed as:
[0034]
[0035] In the above-mentioned imaging pixel processing method for spectral restoration, the step of obtaining the processed response signal vector corresponding to the current imaging pixel coordinates for spectral restoration based on the virtual position difference value and the position number includes: adding the virtual position difference value to the local brightness value and then subtracting the brightness compensation value, and arranging the processed response signal vectors corresponding to the current imaging pixel coordinates for spectral restoration according to the position number.
[0036] In the above imaging pixel processing method for spectral restoration, c2 represents the norm of the Minkowski distance, and c2 = 2.
[0037] The imaging pixel processing method for spectral restoration provided in the embodiments of this application can achieve a weighted average by referencing the response signal values of multiple imaging pixels adjacent to the current imaging pixel coordinates used for spectral restoration and taking the average based on the distance between them and the current imaging pixel coordinates used for spectral restoration. This can result in a restored spectral image with smaller errors and higher spatial resolution. Attached Figure Description
[0038] Various other advantages and benefits of this application will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiments below. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. Furthermore, the same reference numerals denote the same parts throughout the drawings.
[0039] Figure 1 The illustration shows a schematic configuration diagram of a spectral imaging device according to an embodiment of this application;
[0040] Figure 2 The illustration shows a flowchart of an imaging pixel processing method for spectral restoration according to an embodiment of this application;
[0041] Figure 3 The illustration shows a schematic diagram of the imaging pixel layout according to an embodiment of this application. Detailed Implementation
[0042] Hereinafter, exemplary embodiments according to this application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments of this application. It should be understood that this application is not limited to the exemplary embodiments described herein.
[0043] Application Overview
[0044] The spectral restoration method according to the embodiments of this application is applied to a spectral imaging device. Figure 1 The illustration shows a schematic configuration diagram of a spectral imaging device according to an embodiment of this application. Figure 1As shown, in the spectral imaging device according to the embodiments of this application, the optical system is optional, and it may be an optical system such as a lens assembly or a homogenizing assembly. The filter structure is a broadband filter structure in the frequency domain or wavelength domain. The pass spectra of different wavelengths of the filter structure are not completely the same at different locations. The filter structure can be a metasurface, photonic crystal, nanopillar, multilayer film, dye, quantum dot, MEMS (microelectromechanical systems), FP etalon, cavity layer, waveguide layer, diffraction element, or other structures or materials with filtering properties. For example, in the embodiments of this application, the filter structure can be the light modulation layer in Chinese Patent CN201921223201.2.
[0045] The image sensor (i.e., photodetector array) can be a CMOS image sensor (CIS), CCD, array photodetector, etc. Additionally, optional data processing units can be MCUs, CPUs, GPUs, FPGAs, NPUs, ASICs, etc., which can export the data generated by the image sensor for external processing.
[0046] For example, after the image sensor measures the light intensity information, it is transmitted to the data processing unit for reconstruction calculation. This process is described in detail below:
[0047] Let x(λ) denote the intensity signals of the incident light at different wavelengths λ, and let T(λ) denote the transmission spectrum curve of the filter structure. The filter (filter structure) has m sets of structural units, and the transmission spectrum of each set of structural units is different. Overall, the filter structure can be denoted as T. i (λ)(i=1,2,3,…,m). Each group of structural units has a corresponding physical pixel below it, which detects the light intensity bi modulated by the filtered light structure. In a specific embodiment of this application, one physical pixel corresponds to one group of structural units, but it is not limited to this. In other embodiments, multiple physical pixels may be grouped together to correspond to one group of structural units. Therefore, in the spectral imaging device according to the embodiments of this application, one group of structural units constitutes one "imaging pixel", and multiple groups of structural units constitute one "spectral pixel". Furthermore, the present invention can use at least one spectral pixel to reconstruct an image. It should be noted that the effective transmission spectrum (the transmission spectrum used for spectral reconstruction is called the effective transmission spectrum) T of the filter structure. i(λ) The number of structural units may not be the same as the number of structural units. The transmission spectrum of the filter structure is set, tested or calculated manually according to certain rules based on the needs of identification or recovery (for example, the transmission spectrum obtained by each structural unit through testing is the effective transmission spectrum). Therefore, the number of effective transmission spectra of the filter structure may be less than the number of structural units, or even more than the number of structural units. In this modified embodiment, a certain transmission spectrum curve is not necessarily determined by a group of structural units.
[0048] The relationship between the spectral distribution of incident light and the measurements from the image sensor can be expressed by the following formula:
[0049] b i =∫x(λ)*T i (λ)*R(λ)dλ
[0050] After discretization, we get:
[0051] b i =Σ(x(λ)*T i (λ)*R(λ))
[0052] Where R(λ) is the response of the image sensor, denoted as:
[0053] A i (λ)=T i (λ)*R(λ),
[0054] The above equation can then be extended into matrix form:
[0055]
[0056] Among them, b i (i = 1, 2, 3, ..., m) represents the response of the image sensor after the light under test passes through the filter structure. These correspond to the light intensity measurements of the image sensor for each of the m structural units. When one physical pixel corresponds to one structural unit, it can be understood as the light intensity measurements corresponding to m "physical pixels," which is a vector of length m. A represents the system's response to light of different wavelengths, determined by the transmittance of the filter structure and the quantum efficiency of the image sensor. A is a matrix, where each row vector corresponds to a set of structural units responding to incident light of different wavelengths. Here, the incident light is sampled discretely and uniformly, with a total of n sampling points. The number of columns in A is the same as the number of sampling points for the incident light. Here, x(λ) represents the light intensity of the incident light at different wavelengths λ, which is the incident light spectrum to be measured.
[0057] In some embodiments, unlike the above embodiments, the filter structure can be directly formed on the upper surface of the image sensor, such as quantum dots, nanowires, etc. It directly forms the filter structure or material (nanowires, quantum dots, etc.) in the photosensitive area of the sensor. Taking the filter structure as an example, it can be understood that when the raw materials of the image sensor are processed to form the image sensor, a filter structure is formed on the upper surface of the raw materials. The transmission spectrum and the response of the image sensor are integrated, that is, it can be understood that the response of the detector and the transmission spectrum are the same curve. In this case, the relationship between the spectral distribution of the incident light and the light intensity measurement value of the image sensor can be expressed by the following formula:
[0058] b i =Σ(x(λ)*R i (λ))
[0059] That is, in this embodiment, the transmission spectrum A i (λ)=R i (λ)
[0060] Furthermore, it can also be a combination of the two embodiments described above, that is, at least one filter structure for modulating incident light is provided on the image sensor with the filter structure. It can be understood that the image sensor (i.e., photodetector array) in the first embodiment, which can be a CMOS image sensor (CIS), CCD, array photodetector, etc., can be replaced with an image sensor with an integrated filter structure in the second embodiment.
[0061] At this point, the relationship between the spectral distribution of the incident light and the light intensity measurement value of the image sensor can be expressed by the following formula:
[0062] b i =∫x(λ)*T i (λ)*R i (λ)dλ
[0063] After discretization, we get:
[0064] b i =Σ(x(λ)*T i (λ)*R i (λ))
[0065] That is, in this embodiment, A i (λ)=T i (λ)*R i (λ)
[0066] Exemplary methods
[0067] If we consider multi-channel spectral imaging, the imaging principle of each spectral pixel in a spectral imaging device can be expressed by the following equation:
[0068] AO = B
[0069] Here, O represents the spectral image tensor to be recovered, typically composed of three orders: w, h, and c. w is the image width in pixels; h is the image height in pixels; and c is the number of spectral image channels output by the spectral imaging device (e.g., c = 3 for RGB images). A is the pre-calibrated transmission spectrum tensor of the spectral imaging device, composed of three orders: w, h, and l. Dimension l is the calibration resolution, i.e., the number of spectral data channels for the target spectral band given by the calibration device. This tensor A characterizes the transmission capability of the structure on the image sensor for monochromatic light of different wavelengths. A(i,j,o) represents the value of the number in the i-th row, j-th column, and o-th layer of tensor A, i.e., the transmittance of pixel (i,j) for the o-th monochromatic light, and A(:,:,o) represents the total transmittance of the entire image sensor for the o-th monochromatic light alone. In addition, B is the response signal value matrix given by the image sensor of the spectral imaging device, which consists of two orders, w and h. For example, the response signal value is the light intensity value output by the image sensor.
[0070] As mentioned above, for a single pixel:
[0071]
[0072] Where O is the spectral image tensor to be recovered, and O(i,j) is the spectral vector of pixel (i,j) in the spectral image tensor; It is the raw response signal value matrix near the imaging pixel (i,j) used for spectral reconstruction, such as the response signal value matrix of an image sensor to input light; f i,j It is used to The model is reconstructed into a spectrum O(i,j).
[0073] To address the problems of low spatial resolution and erroneous values in existing spectral reconstruction methods, this application aims to provide a solution that avoids these issues. The method for determining the value of g and the corresponding spectral recovery method, i.e., seeking g i,j , so that: This allows the usual reconstruction function f to be reconstructed. i,j It can accept the spatial complexity of spectral images, making the entire process: O(i,j)=f i,j (g i,j (B,i,j) has smaller errors and higher spatial resolution.
[0074] In other words, the technical solution of this application involves a more precise determination of b. i,j,k Method g i,j,k :
[0075] b i,j,k =g i,j,k (B,i,j)
[0076] Make the b i,j,k The response should ideally reflect the full spectral information at pixel (i,j), rather than spatially segmented spectral information within a range such as (ip:i+p,jp:j+p).
[0077] Figure 2 The illustration shows a schematic flowchart of an imaging pixel processing method for spectral restoration according to an embodiment of this application.
[0078] like Figure 2 As shown, the imaging pixel processing method for spectral restoration according to an embodiment of this application includes the following steps.
[0079] S110, determine the side length of the spatial period of the filter structure of the spectral imaging device and the number of neighboring pixels. As described above, in the spectral imaging device, the spatial period of the filter structure is a square with a side length of l = 2p + 1 imaging pixels. Therefore, the side length of the spatial period of the filter structure is l, and the number of neighboring pixels is p.
[0080] S120, the illusory relative coordinates are determined based on the side length of the spatial period of the filter structure, the number of neighboring pixels, and the position index of the response signal vector corresponding to the current imaging pixel coordinates used for spectral reconstruction. As described above, for the imaging pixel coordinates (i,j) used for spectral reconstruction, there is a corresponding response signal value matrix. In this embodiment of the application, the response signal value matrix is... Expanded into a response signal vector, the vector value at each position of the response signal vector has a position index k, that is, it has tensor coordinates (i,j,k).
[0081] Specifically, the virtual relative coordinates are:
[0082]
[0083] S130, a list of virtual auxiliary bits is determined based on the side length of the spatial period of the filter structure, the relative coordinates of the virtual bits, and the current imaging pixel coordinates used for spectral restoration. That is, the side length of the spatial period of the filter structure is l, and the relative coordinates of the virtual bits are (Δx...). k ,Δy k If the current imaging pixel coordinates used for spectral restoration are (i,j), then the list of virtual auxiliary bits is:
[0084]
[0085] S140, virtual position interpolation is obtained based on the response signal value of the image sensor corresponding to the virtual auxiliary bit coordinates belonging to the virtual auxiliary bit list, and the Minkowski distance between the virtual auxiliary bit coordinates and the imaging pixel coordinates currently used for spectral restoration.
[0086] Specifically, for each virtual auxiliary bit coordinate (x, y) belonging to the virtual auxiliary bit list, the response signal value B of the image sensor corresponding to that coordinate is obtained. x,y And calculate the Mink distance between the virtual auxiliary position coordinates (x,y) and the current imaging pixel coordinates (i,j) used for spectral restoration, for example, denoted as M((x,y),(i,j)).
[0087] Then, for all virtual auxiliary bit coordinates belonging to the virtual auxiliary bit list, the response signal value B is calculated. x,y The product of the product with the Minkowski distance M((x,y),(i,j)) is summed to obtain a first summation value. Then, the sum of the Minkowski distances M((x,y),(i,j)) corresponding to all virtual auxiliary bit coordinates belonging to the virtual auxiliary bit list is calculated to obtain a second summation value. Finally, the first summation value is divided by the second summation value to obtain the virtual bit interpolation.
[0088] It can be represented as:
[0089]
[0090] Here, c2 represents the norm of the Minkowski distance. For example, in the embodiments of this application, the norm of the Minkowski distance can be equal to 2, that is, the Minkowski distance is the Euclidean distance.
[0091] S150, based on the virtual position difference value and according to the position number, obtain the processed response signal vector corresponding to the imaging pixel coordinates currently used for spectral restoration. That is, calculate the vector value β at the k-th position of the response signal value vector corresponding to the imaging pixel coordinates currently used for spectral restoration. i,j,k Then the vector value β can be... i,j,k Arrange the processed response signal value vectors according to the position number k to obtain the corresponding imaging pixel coordinates used for spectral restoration, thereby optimizing the response signal value vectors corresponding to the imaging pixel coordinates used for spectral restoration.
[0092] The principle of the imaging pixel processing method for spectral restoration according to embodiments of this application will be briefly explained below.
[0093] Figure 3 The illustration shows a schematic diagram of the imaging pixel layout according to an embodiment of this application. Figure 3As shown, each labeled square represents an imaging pixel covered by a filter structure. In this example, the imaging chip consists of 25 filter structures in a 5x5 grid, which are arranged in a spatial loop.
[0094] Suppose the goal is to calculate the spectrum of pixel 25 (point O), which is highlighted in the center of the image. First, we need to obtain the response signals of structures 1 through 25 within a 5x5 area surrounding point O; let's call this region region A. Clearly, the 25 structures within region A are spatially different, and therefore will be greatly affected by the complex scene during imaging (e.g., when the boundary between two colors passes directly through region A, the spectral calculation at point O will be significantly impacted). Therefore, we need to estimate the signal values of all structures 1 through 25 within region A at point O. For example, let's take the process of estimating the signal value of pixel 14 at point O as an example, i.e., k = 14 as described above.
[0095] To estimate the value of structure 14 at point O, the most important thing is to refer to the signal values of the four pixels containing structure 14 closest to point O. Figure 3 The four darkest pixels (number 14) closest to point O are used as the reference points. The values of these four pixels are taken and weighted according to their distance from point O. This yields the illusory interpolation value of structure number 14 at point O.
[0096] Furthermore, in this embodiment, using only dummy interpolation leads to a decrease in the spatial resolution of the image (because multiple pixel values are averaged). Therefore, to improve resolution, information at point O can be used to further improve the prediction accuracy of the target structure. Specifically, the dot product between the structure at point O and the target structure is calculated and normalized (i.e., their similarity is obtained). Then, based on the similarity, an estimated deviation value is added to the dummy interpolation. In this way, the signal at point O is applied to the prediction of all structures in region A, which can improve spatial resolution. This is the local brightness value explained below.
[0097] Specifically, when calculating the local luminance value, the virtual position transformation coordinates are first determined based on the virtual position relative coordinates and the current imaging pixel coordinates used for spectral restoration. That is, the virtual position relative coordinates are (Δx... k ,Δy k If the current imaging pixel coordinates used for spectral restoration are (i,j), then the virtual position transformation coordinates are:
[0098] v(i,j,k)=(i+Δx k ,j+Δy k )
[0099] Then, the local brightness value is calculated as the inner product of the first transmission spectrum vector corresponding to the imaging pixel coordinates currently used for spectral restoration and the second transmission spectrum vector corresponding to the virtual transformation coordinates, the response signal value corresponding to the imaging pixel coordinates currently used for spectral restoration, a predetermined constant value, and the Minkowski distance between the imaging pixel coordinates currently used for spectral restoration and the virtual transformation coordinates.
[0100] That is, the first transmission spectrum vector corresponding to the current imaging pixel coordinates (i,j) used for spectral restoration is A. i,j The first transmission spectrum vector corresponding to the virtual position transformation coordinate v(i,j,k) is A. v(i,j,k) Calculate its inner product, and then multiply it by the response signal value B corresponding to the current imaging pixel coordinates (i,j) used for spectral restoration. i,j Multiply by a predetermined constant value c1, and then multiply by the Minkowski distance between the current imaging pixel coordinates (i,j) used for spectral restoration and the imaginary transformation coordinates v(i,j,k), for example, expressed as...
[0101] Therefore, the local luminance value is expressed as:
[0102]
[0103] Thus, the virtual difference β i,j,k Add the aforementioned local luminance value α i,j,k This calculates the vector value at the k-th position of the response signal value vector corresponding to the current imaging pixel coordinates used for spectral reconstruction, for example, denoted as h. i,j,k Thus, the response signal value vector corresponding to the imaging pixel coordinates currently used for spectral restoration is obtained.
[0104] However, since the local luminance value is an additional quantity, it should only be effective in complex textures to improve spatial resolution. In monochrome, it must be canceled out, otherwise it will lead to overall color difference in the image. Therefore, by utilizing all structural pixels around point O that are identical to point O (i.e., the 8 pixels at the edge of region B, called compensation pixels), a linear parameter is introduced to make the sum of the compensation pixel signals ideally equal to the local luminance value. After distance weighting, subtracting the luminance compensation value can largely eliminate the influence of color difference.
[0105] Specifically, when calculating the brightness compensation value, the set of real auxiliary bits is first determined based on the current imaging pixel coordinates used for spectral restoration and the side length of the spatial period of the filter structure. That is, if the current imaging pixel coordinates used for spectral restoration are (i,j), and the side length of the spatial period of the filter structure is l, then the set of real auxiliary bits is:
[0106] L R(i,j)={
[0107] (il,jl),(il,j),(il,j+l),(i,jl),
[0108] (i,j+l),(i+l,jl),(il,j),(il,j+l)
[0109] }
[0110] Then, the brightness compensation value is calculated. Specifically, the inner product of the third transmission spectrum vector corresponding to each real auxiliary bit coordinate belonging to the real auxiliary bit set and the fourth transmission spectrum vector corresponding to the virtual auxiliary bit transformation coordinate corresponding to each virtual auxiliary bit coordinate belonging to the virtual auxiliary bit set is calculated. That is, the third transmission spectrum vector A corresponding to each real auxiliary bit coordinate belonging to the real auxiliary bit set, for example, denoted as (m,n), is calculated. m,n And calculate the virtual auxiliary bit transformation coordinates corresponding to the coordinates (x, y) of each virtual auxiliary bit belonging to the set of virtual auxiliary bits, for example, denoted as the fourth transmission spectrum vector A corresponding to v(x, y, k). v(x,y,k) Then calculate their inner product, for example, denoted as (A m,n ·A v(x,y,k) ).
[0111] Here, the virtual auxiliary bit transformation coordinates v(x,y,k) corresponding to the virtual auxiliary bit coordinates (x,y) are calculated in the same way as the virtual pseudo-transformation coordinates v(i,j,k), that is:
[0112] v(x,y,k)=(x+Δx k ,y+Δy k )
[0113] Then, the product of the image sensor response signal value corresponding to each real auxiliary bit coordinate belonging to the real auxiliary bit set and the vector inner product is calculated, and then multiplied by the Minkowski distance between the real auxiliary bit coordinate and the virtual auxiliary bit coordinate. The above product is then summed over all real auxiliary bit coordinates belonging to the real auxiliary bit set and all virtual auxiliary bit coordinates belonging to the virtual auxiliary bit set, and then multiplied by a predetermined constant value as the numerator. The denominator is the sum of the Minkowski distances between all real auxiliary bit coordinates belonging to the real auxiliary bit set and all virtual auxiliary bit coordinates belonging to the virtual auxiliary bit set, thereby obtaining the brightness compensation value.
[0114] That is, the response signal value of the image sensor corresponding to each real auxiliary bit coordinate belonging to the set of real auxiliary bits is B. m,n If the Minkowski distance between the real auxiliary position coordinates and the virtual auxiliary position coordinates is M((m,n),(x,y)), then the brightness compensation value is expressed as:
[0115]
[0116] Finally, the virtual difference β i,j,k Add the aforementioned local luminance value α i,j,k Subtract the brightness compensation value γ i,j,k This calculates the vector value g at the k-th position of the response signal value vector corresponding to the current imaging pixel coordinates used for spectral restoration. i,j,k Thus, the response signal value vector corresponding to the imaging pixel coordinates currently used for spectral restoration is obtained.
[0117] Then, regardless of the above or All can be based on To recover the spectral image.
[0118] The basic principles of this application have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this application are merely examples and not limitations, and should not be considered as essential features of each embodiment of this application. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the application to the necessity of employing the aforementioned specific details for implementation.
[0119] The block diagrams of devices, apparatuses, devices, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0120] It should also be noted that in the apparatus, equipment, and methods of this application, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions of this application.
[0121] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of this application. Therefore, this application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0122] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this application to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. An imaging pixel processing method for spectral restoration, characterized in that, include: Determine the side length of the spatial period of the filter structure of the spectral imaging device and the number of neighboring pixels; The virtual relative coordinates are determined based on the side length of the spatial period of the filter structure, the number of neighboring pixels, and the position index of the response signal vector corresponding to the current imaging pixel coordinates used for spectral restoration. The list of virtual auxiliary bits is determined based on the side length of the spatial period of the filter structure, the relative coordinates of the virtual bits, and the current imaging pixel coordinates used for spectral restoration. Virtual position interpolation is obtained based on the response signal value of the image sensor corresponding to the virtual auxiliary bit coordinates belonging to the virtual auxiliary bit list and the Minkowski distance between the virtual auxiliary bit coordinates and the imaging pixel coordinates currently used for spectral restoration. as well as Based on the illusory interpolation, the processed response signal vector corresponding to the current imaging pixel coordinates used for spectral restoration is obtained according to the position number; The method further includes: determining virtual position transformation coordinates based on the virtual position relative coordinates and the current imaging pixel coordinates used for spectral restoration; wherein, the virtual position relative coordinates are... The current imaging pixel coordinates used for spectral restoration are Then the virtual position transformation coordinates are: ; The process of determining the virtual position transformation coordinates further includes: The local brightness value is calculated as the inner product of the first transmission spectrum vector corresponding to the imaging pixel coordinates currently used for spectral restoration and the second transmission spectrum vector corresponding to the virtual transformation coordinates, the response signal value corresponding to the imaging pixel coordinates currently used for spectral restoration, a predetermined constant value, and the product of the Minkowski distance between the imaging pixel coordinates currently used for spectral restoration and the virtual transformation coordinates. The process of obtaining the processed response signal vector corresponding to the current imaging pixel coordinates used for spectral restoration based on the illusory interpolation and according to the position number includes: The virtual interpolation is added to the local luminance value, and the processed response signal vector corresponding to the current imaging pixel coordinates used for spectral restoration is obtained by arranging the values according to the position number.
2. The imaging pixel processing method for spectral restoration as described in claim 1, wherein, The side length of the spatial period of the filter structure is The number of neighboring pixels is The coordinates of the imaging pixel coordinates used for spectral reconstruction are: The position number of the response signal vector is Then the relative coordinates of the virtual position are: 。 3. The imaging pixel processing method for spectral restoration as described in claim 2, wherein, The list of virtual auxiliary bits is as follows: in, Represents the coordinates of the virtual auxiliary position.
4. The imaging pixel processing method for spectral restoration as described in claim 3, wherein, The virtual position interpolation is obtained based on the response signal value of the image sensor corresponding to the virtual auxiliary bit coordinates belonging to the virtual auxiliary bit list and the Minkowski distance between the virtual auxiliary bit coordinates and the imaging pixel coordinates currently used for spectral restoration, including: For each virtual auxiliary bit coordinate belonging to the virtual auxiliary bit list Obtain the virtual auxiliary position coordinates The corresponding response signal value of the image sensor ; Calculate the virtual auxiliary position coordinates Compared with the current imaging pixel coordinates used for spectral restoration Minkowski distance between ; For all virtual auxiliary bit coordinates belonging to the virtual auxiliary bit list, calculate the response signal value. With the Mink distance Multiply the products and sum them to obtain the first summation value; Calculate the Minkowski distance corresponding to the coordinates of all virtual auxiliary bits belonging to the virtual auxiliary bit list. The sum of these two values is used to obtain the second summation value; and Dividing the first sum by the second sum yields the illusory interpolation value, expressed as: ; Where c2 represents the norm of the Minkowski distance.
5. The imaging pixel processing method for spectral restoration as described in claim 4, wherein, The current imaging pixel coordinates used for spectral restoration The corresponding first transmission spectrum vector is The virtual position transformation coordinates The corresponding second transmission spectrum vector is The current imaging pixel coordinates used for spectral restoration Corresponding response signal value The predetermined constant value is The current imaging pixel coordinates used for spectral restoration With the virtual position transformation coordinates The Minkowski distance between them is The local luminance value is then expressed as: 。 6. The imaging pixel processing method for spectral restoration as described in claim 5, further comprising: The set of real auxiliary bits is determined based on the current imaging pixel coordinates used for spectral restoration and the side length of the spatial period of the filter structure.
7. The imaging pixel processing method for spectral restoration as described in claim 6, wherein, The current imaging pixel coordinates used for spectral restoration are: The side length of the spatial period of the filter structure is Then the set of real auxiliary bits is: 。 8. The imaging pixel processing method for spectral restoration as described in claim 7, further comprising: Calculate the inner product of the third transmission spectrum vector corresponding to the coordinates of each real auxiliary bit belonging to the set of real auxiliary bits and the fourth transmission spectrum vector corresponding to the transformed coordinates of each virtual auxiliary bit belonging to the set of virtual auxiliary bits; Calculate the product of the response signal value of the image sensor corresponding to each real auxiliary bit coordinate belonging to the real auxiliary bit set and the inner product, then multiply it by the Mink distance between the real auxiliary bit coordinate and the virtual auxiliary bit coordinate, and sum the above product over all real auxiliary bit coordinates belonging to the real auxiliary bit set and all virtual auxiliary bit coordinates belonging to the virtual auxiliary bit set, and then multiply it by a predetermined constant value as the numerator. as well as The sum of the Minkowski distances between all real auxiliary bit coordinates belonging to the real auxiliary bit set and all virtual auxiliary bit coordinates belonging to the virtual auxiliary bit set is used as the denominator to obtain the brightness compensation value.
9. The imaging pixel processing method for spectral restoration as described in claim 8, wherein, The coordinates of each real auxiliary bit belonging to the set of real auxiliary bits are: The third transmission spectrum vector corresponding to the real auxiliary position coordinates The coordinates of each virtual auxiliary bit belonging to the set of virtual auxiliary bits The corresponding virtual auxiliary bit transformation coordinates are The fourth transmission spectrum vector corresponding to the virtual auxiliary position transformation coordinates Its inner product is ; Wherein, the virtual auxiliary position coordinates Corresponding virtual auxiliary bit transformation coordinates Represented as: The response signal value of the image sensor corresponding to each real auxiliary bit coordinate belonging to the set of real auxiliary bits is The Minkowski distance between the real auxiliary position coordinates and the virtual auxiliary position coordinates is: The brightness compensation value is expressed as: Where c2 represents the norm of the Minkowski distance.
10. The imaging pixel processing method for spectral restoration as described in claim 9, wherein, in, Based on the illusory interpolation, the processed response signal vector corresponding to the current imaging pixel coordinates used for spectral restoration, obtained according to the position number, includes: The virtual interpolation is added to the local luminance value and then the luminance compensation value is subtracted. The processed response signal vector corresponding to the current imaging pixel coordinates used for spectral restoration is obtained by arranging the virtual interpolation value according to the position number.
Citation Information
Patent Citations
Optical modulation micro-nano structure and micro-integrated spectrometer
CN210376122U
Interpolation method with interpolation space variable in fourier domain optical coherence tomography
CN101358879A
Spectral imaging recovery method and device
CN115096441A
