Spectrum correction method and device
Through intensity correction and normalization processing of the standard light source and detector, a correction matrix is generated, which solves the problem of spectral distortion caused by inconsistent grating diffraction efficiency in spectral collection, and improves the reliability and accuracy of spectral data.
Patent Information
- Application Number
- CN202410965432.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-18
AI Technical Summary
During the spectrum collection process, due to the inconsistency between grating diffraction efficiency and detector response, spectral distortion and step problems occur, making it difficult to obtain real spectral data.
By obtaining the intensity values of the standard light source at multiple wavelengths and the pixel intensity group of the detector, the intensity group of the central pixel is determined for intensity correction, and a correction matrix is obtained through normalization processing, which is used to correct the spectrum to be collected. Eliminate the influence of grating diffraction angle.
It effectively avoids the problem of spectral distortion, improves the reliability of the corrected spectrum, ensures the accuracy and consistency of data during wide-band acquisition, and eliminates the step phenomenon.
Smart Images

Figure CN118500545B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical imaging technology, and in particular to a spectrum correction method and device. Background Art
[0002] When collecting spectra, a spectrometer is used for splitting, and a linear / area array detector, such as an electron-multiplying charge-coupled device (EMCCD), is used for collecting spectra. Due to the size of the detector and the requirements for the resolution of the collected spectrum, in most cases the spectrum range collected at a time is small, and it is impossible to collect all the spectrum ranges of interest at once. The spectrometer needs to rotate the grating, take multiple spectra, and then connect the spectra or use other methods to finally obtain the spectral band range that needs to be scanned. Because the diffraction efficiency of the grating is different when the grating rotates to different angles, the efficiency of the grating itself for light of different wavelengths is also different, the same pixel of the detector responds differently to light of different wavelengths, and different pixels of the detector respond differently to light of the same wavelength; therefore, if the collected spectrum is not corrected, there will be steps at the connection position, which will cause the spectrum to be distorted, and the real spectrum data cannot be obtained.
[0003] When calibrating the spectrum collected by a charge-coupled device (CCD), since any central wavelength can be set for spectrum collection within the detection range, it is difficult to calibrate the spectra corresponding to all central wavelengths. If the spectrum is not calibrated, there is a risk of spectral distortion. Summary of the invention
[0004] In view of at least one problem in the prior art, the present application proposes a spectrum correction method and device, which can avoid the problem of spectrum distortion and improve the reliability of the corrected spectrum.
[0005] In order to solve the above technical problems, this application provides the following technical solutions:
[0006] In a first aspect, the present application provides a spectrum correction method, comprising:
[0007] Acquire first intensity values of a standard light source at multiple wavelengths and intensity groups corresponding to multiple pixel points of the detector, each intensity group including: second intensity values at each of the wavelengths;
[0008] Determine an intensity group of a central pixel point from the intensity groups of each of the pixel points, apply the first intensity value at each of the wavelengths, perform intensity correction on the intensity group of the central pixel point, and obtain a corrected intensity group corresponding to the central pixel point;
[0009] Applying each of the intensity groups to perform normalization processing to obtain a normalized array, and obtaining a correction matrix according to the corrected intensity groups and the normalized array;
[0010] The spectrum to be corrected collected by the detector is obtained, and the correction of the spectrum to be corrected is completed according to the correction matrix.
[0011] In one embodiment, applying the first intensity value at each wavelength to perform intensity correction on the intensity group of the central pixel point to obtain a corrected intensity group corresponding to the central pixel point includes:
[0012] Dividing the second intensity value of the central pixel by the first intensity value having the same wavelength as that corresponding to the second intensity value, to obtain a corrected intensity value corresponding to the second intensity value;
[0013] The corrected intensity values corresponding to the second intensity values are combined into a corrected intensity group corresponding to the central pixel.
[0014] In one embodiment, applying each of the intensity groups to perform normalization processing to obtain a normalized array includes:
[0015] The second intensity values corresponding to the same wavelength in each of the intensity groups are combined into an intensity group corresponding to the wavelength;
[0016] Determine the intensity value of the central pixel point in the intensity group corresponding to each wavelength as 1, perform normalization processing on the intensity group corresponding to the wavelength, and obtain a normalized intensity group corresponding to the wavelength;
[0017] The normalized intensity groups corresponding to the wavelengths are combined into the normalized array.
[0018] In one embodiment, obtaining a correction matrix according to the corrected intensity group and the normalized array includes:
[0019] The normalized array and the intensity values corresponding to the same wavelength in the corrected intensity group are divided to obtain a correction matrix.
[0020] In one embodiment, the multiple wavelengths are equally spaced wavelengths within a preset grating scanning range.
[0021] In one embodiment, completing the correction of the spectrum to be corrected according to the correction matrix includes:
[0022] The wavelength and the third intensity value of the spectrum to be corrected corresponding to each of the pixel points are obtained, and according to the wavelength of the spectrum to be corrected corresponding to each pixel point, the correction coefficient of the spectrum to be corrected corresponding to the pixel point is obtained from the correction matrix, and the third intensity value corresponding to the same pixel point of the spectrum to be corrected is divided by the correction coefficient to complete the correction of the spectrum to be corrected.
[0023] In a second aspect, the present application provides a spectrum correction device, comprising:
[0024] An acquisition module, used to acquire first intensity values of a standard light source at multiple wavelengths and intensity groups corresponding to multiple pixel points of the detector, each intensity group including: second intensity values at each of the wavelengths;
[0025] A determination module, configured to determine an intensity group of a central pixel point from the intensity groups of each of the pixel points, and to perform intensity correction on the intensity group of the central pixel point by applying the first intensity value at each of the wavelengths to obtain a corrected intensity group corresponding to the central pixel point;
[0026] A normalization module, used for applying each of the intensity groups to perform normalization processing to obtain a normalized array, and obtaining a correction matrix according to the corrected intensity groups and the normalized array;
[0027] The correction module is used to obtain the spectrum to be corrected collected by the detector, and complete the correction of the spectrum to be corrected according to the correction matrix.
[0028] In one embodiment, the determining module includes:
[0029] A first correction unit, configured to divide the second intensity value of the central pixel by a first intensity value having the same wavelength as that corresponding to the second intensity value, to obtain a corrected intensity value corresponding to the second intensity value;
[0030] The combining unit is used to combine the corrected intensity values corresponding to the respective second intensity values into a corrected intensity group corresponding to the central pixel point.
[0031] In one embodiment, the normalization module includes:
[0032] A second combining unit is used to combine the second intensity values with the same wavelength corresponding to each of the intensity groups into an intensity group corresponding to the wavelength;
[0033] A normalization unit, used to determine the intensity value of the central pixel in the intensity group corresponding to each wavelength as 1, and perform normalization processing on the intensity group corresponding to the wavelength to obtain a normalized intensity group corresponding to the wavelength;
[0034] The third combining unit is used to combine the normalized intensity groups corresponding to the wavelengths into the normalized array.
[0035] In one embodiment, the normalization module comprises:
[0036] The determination unit is used to divide the intensity values of the same wavelength corresponding to the normalized array and the corrected intensity group to obtain a correction matrix.
[0037] In one embodiment, the multiple wavelengths are equally spaced wavelengths within a preset grating scanning range.
[0038] In one embodiment, the correction module includes:
[0039] The second correction unit is used to obtain the wavelength and the third intensity value of the spectrum to be corrected corresponding to each of the pixel points, obtain the correction coefficient of the spectrum to be corrected corresponding to the pixel point from the correction matrix according to the wavelength of the spectrum to be corrected corresponding to each pixel point, divide the third intensity value of the spectrum to be corrected corresponding to the same pixel point by the correction coefficient, and complete the correction of the spectrum to be corrected.
[0040] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the spectral correction method is implemented when the processor executes the program.
[0041] In a fourth aspect, the present application provides a computer-readable storage medium having computer instructions stored thereon, wherein the instructions implement the spectral correction method when executed by a processor.
[0042] It can be seen from the above technical solution that the present application provides a spectrum correction method and device. Among them, the method includes: obtaining the first intensity value of the standard light source at multiple wavelengths and the intensity groups corresponding to each of the multiple pixel points of the detector, each intensity group includes: the second intensity value at each of the wavelengths; from the intensity groups of each of the pixel points, determine the intensity group of the central pixel point, apply the first intensity value at each of the wavelengths, perform intensity correction on the intensity group of the central pixel point, and obtain the corrected intensity group corresponding to the central pixel point; apply each of the intensity groups to perform normalization processing to obtain a normalized array, and obtain a correction matrix based on the corrected intensity group and the normalized array; obtain the spectrum to be corrected collected by the detector, and complete the correction matrix according to the correction matrix. The correction of the spectrum to be corrected can avoid the problem of spectrum distortion and improve the reliability of the corrected spectrum; specifically, the relative intensity and absolute intensity of the spectrum collected by the CCD can be corrected, and as long as it is within its applicable scope, the selection of the central wavelength is not limited; when collecting a wide range of spectra, since the intensity influence brought by the grating diffraction angle has been eliminated, no steps will appear when connecting the spectra to cause spectrum distortion; a limited correction curve can be used to obtain a correction matrix, and the correction coefficients of any central wavelength, any pixel on the CCD, and any wavelength can be obtained; finally, the correction of the CCD collection is completed to obtain a true spectrum image and data; after the correction is completed, there will be no steps for the connected spectrum of a wide spectrum band. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 is a first flow chart of the spectrum correction method in an embodiment of the present application;
[0045] Figure 2 is a second flow chart of the spectrum correction method in an embodiment of the present application;
[0046] Figure 3 is a third flow chart of the spectrum correction method in the embodiment of the present application;
[0047] Figure 4 is a fourth flow chart of the spectrum correction method in the embodiment of the present application;
[0048] Figure 5 is a schematic structural diagram of a spectrum correction device in an embodiment of the present application;
[0049] Figure 6 It is a schematic block diagram of the system structure of the electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0051] At present, due to the limitation of grating diffraction and the size of the detection itself, when testing a wide spectral band, such as 400~800nm, when higher resolution is required, the single acquisition range of the detector may be 100nm, so multiple tests are required, such as the first test of 400~500nm, the first test of 480~580nm, etc. After the test is completed, the spectrum lines of multiple tests need to be spliced. Since the diffraction efficiency of the grating is different at different angles, the intensity of 380~400nm at 400~500nm is different from that at 480~580nm. At this time, forced splicing will cause spectral line distortion, severe steps may appear, and the intensity changes greatly. Therefore, the spectrum needs to be corrected.
[0052] In the prior art, each wavelength in the spectral band range that needs to be scanned will move with the rotation of the grating and be detected by each pixel of the detector, and then the superposition value of the current wavelength in each pixel is used as the signal value of the current wavelength. Because in this technical solution, each wavelength in the spectral band range needs to move with the rotation of the grating and be detected by each pixel of the detector, the spectrometer needs to stop moving when the detector is collecting data, otherwise it will affect the accuracy of the collected data. The number of start and stop movements of the spectrometer during the collection process of each wavelength is the same as the number of pixels / columns of the detector, and the spacing of each movement must make the current wavelength move one / column of pixels on the detector, which will greatly increase the collection time; and it requires high-precision rotation of the grating, as well as high-speed coordination between the grating rotation and the CCD data collection, which places heavy demands on hardware and software. High requirements are placed on all parts of the device; since the grating dispersion corresponding to different wavelengths is different, the current grating movement distance corresponds to the current wavelength moving one / column pixel on the detector, but corresponding to other wavelengths detected by the detector, the distance moved on the detector is no longer one / column pixel. Therefore, for each rotation of the grating, only the current wavelength can be used as the signal value of the current wavelength through the superposition value of its values at each pixel. If other wavelength values scanned in the current cycle can also be used in adjacent cycles, then corresponding data processing is required before it can be used. This technical solution cannot calibrate any pixel on the CCD at any central wavelength.
[0053] In the embodiment of the present application, the correction coefficient of any point can be obtained by combining a limited feature test with a corresponding algorithm to complete the intensity correction of the spectrum acquisition. The so-called algorithm includes linear interpolation, cubic sample interpolation and other methods that can interpolate data.
[0054] The embodiment of the present application can be applied to collecting spectra using CCD, but is not limited to CCD collection. Both linear array and area array cameras are applicable to this solution.
[0055] The embodiments of the present application are applicable to wide-range spectral acquisition, but are not limited to wide-range spectral acquisition.
[0056] The embodiment of the present application is applicable to a spectrometer system for grating acquisition, but is not limited to a spectrometer system for grating acquisition.
[0057] The details are described through the following embodiments.
[0058] In order to avoid the problem of spectrum distortion and improve the reliability of the corrected spectrum, this embodiment provides a spectrum correction method in which the execution subject is a spectrum correction device, and the spectrum correction device includes but is not limited to a server, such as Figure 1 As shown, the method specifically includes the following contents:
[0059] Step 100: obtaining first intensity values of a standard light source at multiple wavelengths and intensity groups corresponding to multiple pixel points of a detector, each intensity group including: second intensity values at each of the wavelengths.
[0060] Specifically, the standard light source can be a bromine tungsten lamp or a deuterium lamp. The first intensity value at any wavelength can represent the intensity value of the standard light source at the wavelength. The first intensity value can be calibrated by a metrology technical organization, and the corresponding intensity value can be obtained from the metrology technical organization according to the specific value of the wavelength; the intensity values at each wavelength in each intensity group can be determined as the second intensity value. The first intensity value and the second intensity value in this embodiment can both be relative intensities or absolute intensities. The detector can be a charge coupled element. The intensity group of each pixel point includes: the second intensity value of each wavelength falling at the pixel point.
[0061] Specifically, the multiple wavelengths can be wavelengths with equal intervals within a preset grating scanning range. The preset grating scanning range and interval can be set according to actual conditions, and the present application does not limit this. Since each of the wavelengths can be set based on actual conditions, the present solution can realize the correction of the spectrum to be corrected at any central wavelength. Assuming that the preset grating scanning range is [λ min ,λ max ], the interval is △λ, the number of pixels of the detector is n, then the multiple wavelengths can be λ in sequence min , min + △λ , min + 2△λ ... max , the first intensity values at multiple wavelengths can be respectively , No. j The intensity groups of each pixel include: The following array A You can include separate intensity groups for each pixel:
[0062]
[0063] Among them, n represents the number of pixels, and λ in the first column min , min+△λ , min+2△λ ... max All represent wavelength, Indicates that the wavelength of the third pixel is λ min The second intensity value at the time; the second row to the last row of the nth column are the intensity groups of the nth pixel point, and M, O and Λ can all represent ellipsis.
[0064] Step 200: Determine the intensity group of the central pixel point from the intensity groups of each of the pixel points, apply the first intensity value at each of the wavelengths, perform intensity correction on the intensity group of the central pixel point, and obtain a corrected intensity group corresponding to the central pixel point.
[0065] Specifically, the intensity group of the central pixel point can be determined from the intensity groups of each pixel point according to the preset central pixel point position; the preset central pixel point position can be pre-set according to actual needs. Preferably, assuming that the number of pixels of the detector is n, the position of the central pixel point can be determined to be n / 2, and the n / 2th intensity group can be determined as the intensity group of the central pixel point. The intensity group of the central pixel point may include: the intensity values of each wavelength falling on the central pixel point.
[0066] Step 300: performing normalization processing on each of the intensity groups to obtain a normalized array, and obtaining a correction matrix according to the corrected intensity groups and the normalized array.
[0067] Step 400: Acquire the spectrum to be corrected collected by the detector, and complete the correction of the spectrum to be corrected according to the correction matrix.
[0068] To improve the reliability of intensity correction, e.g. Figure 2 As shown, in one embodiment, the step 200 of applying the first intensity value at each wavelength to perform intensity correction on the intensity group of the central pixel point to obtain the corrected intensity group corresponding to the central pixel point includes:
[0069] Step 201: Divide the second intensity value of the central pixel by the first intensity value having the same wavelength as that corresponding to the second intensity value to obtain a corrected intensity value corresponding to the second intensity value.
[0070] Step 202: The corrected intensity values corresponding to the respective second intensity values are combined into a corrected intensity group corresponding to the central pixel point.
[0071] Specifically, the corrected intensity group corresponding to the central pixel can be obtained according to the following formula:
[0072]
[0073] Among them, the corrected intensity groups include: ; The wavelength The corrected intensity value corresponding to the center pixel point, is the wavelength λ min+△λ The corrected intensity value corresponding to the center pixel point, is the wavelength λmax The corrected intensity value corresponding to the central pixel point; The wavelength at the center pixel is λ min The second intensity value corresponding to The wavelength at the center pixel is λ min+△λ The second intensity value corresponding to The wavelength at the center pixel is λ max The second intensity value corresponding to ; At wavelength λ min The first intensity value corresponding to At wavelength λ min+△λ The first intensity value corresponding to At wavelength λ max The first intensity value corresponding to .
[0074] In order to improve the reliability of intensity normalization processing, such as Figure 3 As shown, in one embodiment, the step 300 of applying each of the intensity groups to perform normalization processing to obtain a normalized array includes:
[0075] Step 301: The second intensity values corresponding to the same wavelength in each of the intensity groups are combined into an intensity group corresponding to the wavelength.
[0076] The following array A The intensity groups corresponding to the respective wavelengths may include:
[0077]
[0078] Among them, the array A Except for the first row, the second to nth second intensity values in each row can form an intensity group corresponding to the wavelength in the row. max The corresponding intensity groups include: , , … , which means λ max The intensity corresponding to the first pixel is , the intensity corresponding to the second pixel is , the intensity corresponding to the third pixel is , ..., the intensity corresponding to the nth pixel is .
[0079] Step 302: Determine the intensity value of the central pixel in the intensity group corresponding to each wavelength as 1, and perform normalization processing on the intensity group corresponding to the wavelength to obtain a normalized intensity group corresponding to the wavelength.
[0080] Step 303: The normalized intensity groups corresponding to the wavelengths are combined into the normalized array.
[0081] Specifically, the normalized array B Can be:
[0082]
[0083] in, The second intensity value The corresponding intensity value after normalization, wavelength λ max The corresponding normalized intensity groups include: , , … , which means λ max The normalized intensity corresponding to the first pixel is ,λ max The normalized intensity corresponding to the second pixel is ,λ max The normalized intensity corresponding to the third pixel is , ..., λ max The normalized intensity corresponding to the nth pixel is .
[0084] In order to improve the reliability of the correction matrix and thus improve the accuracy of spectral correction, in one embodiment, the step 300 of obtaining the correction matrix according to the corrected intensity group and the normalized array includes:
[0085] Step 311: Divide the intensity values of the same wavelength corresponding to the normalized array and the corrected intensity group to obtain a correction matrix.
[0086] Specifically, the correction matrix η It can be as follows:
[0087]
[0088] in, It can be expressed that the wavelength of the nth pixel is λ m The correction factor is .
[0089] In order to improve the reliability of the correction of the spectrum to be corrected, in one embodiment, Figure 4 As shown, the step 400 of completing the correction of the spectrum to be corrected according to the correction matrix includes:
[0090] Step 401: Acquire the wavelength and the third intensity value of the spectrum to be corrected corresponding to each pixel point, and obtain the correction coefficient of the spectrum to be corrected corresponding to the pixel point from the correction matrix according to the wavelength of the spectrum to be corrected corresponding to each pixel point.
[0091] Step 402: Divide the third intensity value corresponding to the same pixel point of the spectrum to be corrected by the correction coefficient to complete the correction of the spectrum to be corrected.
[0092] Specifically, the pixel points corresponding to each wavelength of the spectrum to be corrected and the third intensity values corresponding to each pixel point can be obtained, and the correction coefficients of each wavelength of the spectrum to be corrected corresponding to each pixel point can be obtained from the correction matrix. The third intensity value and the correction coefficient corresponding to the same pixel point can be divided to complete the correction of the spectrum to be corrected. The third intensity value of the spectrum to be corrected corresponding to any pixel point can represent the intensity value of the wavelength of the spectrum to be corrected falling on the pixel point, and the target correction coefficient group can represent the correction coefficient group of each wavelength corresponding to each pixel point in the correction matrix. For example: the central wavelength of the spectrum to be corrected is k, and a set of data is obtained. , where λ kn is the wavelength value corresponding to the nth pixel point of the spectrum to be corrected on the CCD, a n is the intensity value corresponding to the nth pixel point of the spectrum to be corrected on the CCD; the correction matrix η The corresponding wavelength is λ kn , the correction coefficient of the nth pixel is determined as d n , for example, assuming that the correction matrix ,So ; Similarly, we can get the correction matrix η The correction coefficient when the central wavelength is k is obtained , the intensity value is corrected to obtain the corrected data array, and the correction of the spectrum to be measured is completed. The corrected data array is: .
[0093] In order to further illustrate this solution, this application provides an application example of a spectral correction method, which is specifically described as follows:
[0094] Step 1: Place a standard light source (bromine tungsten lamp or deuterium lamp calibrated by metrology technical institutions, which can be selected according to calibration needs) at the sample, and use the standard light source to simulate the luminescence of the sample. The intensity value corresponding to the standard light source at wavelength λ is P λ .
[0095] Among them, the number of pixels of CCD is n; when the central wavelength is set to λ iWhen the wavelength corresponding to the nth pixel is λ in . Set the center wavelength to λ i When i That is, it falls on the center pixel, and the position of the pixel is recorded as n / 2.
[0096] Step 2: Within the scanning range of the current grating (set to λ min ~λ max ), by rotating the grating to scan, then each wavelength (λ i ) will fall on each pixel from 1 to n, and collect a spectral data at equal intervals (△λ) A i , a is the intensity corresponding to the point.
[0097]
[0098] in, Indicates wavelength λ i The intensity value of the nth pixel.
[0099] Step 3: Summarize all A i Get array A .
[0100]
[0101] Step 4: Select the column of data a corresponding to the central pixel (the first row value is n / 2) from A, and get a spectrum data as DATA 0.
[0102]
[0103] Step 5: Combine the intensity value of the standard light source at wavelength λ to get P λ , perform intensity correction on the spectral data DATA0 to obtain the correction data DATA . ( The standard light source has a wavelength of λ min The intensity value at the position is the calibration data of the metrology technical organization and can be obtained in advance according to actual needs).
[0104]
[0105] Step 6: Based on data A, for any wavelength λ, the value collected when it falls on the central pixel is normalized to 1 to obtain the array B .
[0106]
[0107] Step 7: Array BPerform intensity correction and wait until the final correction matrix η .
[0108]
[0109] The correction matrix obtained in this application example is the correction relationship between the wavelength and the pixel points within the scanning range. In specific implementation, the correction matrix can also be obtained using the correction relationship between the tested center wavelength and the pixel points to achieve the purpose of this application example.
[0110] Step 8: After collecting any spectrum, any wavelength falling on any pixel of the CCD can pass the correction matrix η Find (the matrix can be expanded by three sample differences) its corresponding correction coefficient.
[0111] For example: Set the central wavelength to k and get a set of data , where λ kn is the wavelength value corresponding to the nth pixel point of the spectrum to be corrected on the CCD, a n is the intensity value corresponding to the nth pixel point of the spectrum to be corrected on the CCD; the correction matrix η The corresponding wavelength is λ kn , the correction coefficient of the nth pixel is determined as d n , and so on, we can get the correction matrix η Get the correction coefficient when the central wavelength is k , correct the data, and the corrected data array is: .
[0112] From the software level, in order to avoid the problem of spectral distortion and improve the reliability of the corrected spectrum, the present application provides an embodiment of a spectral correction device for implementing all or part of the contents of the spectral correction method, see Figure 5 , the spectrum correction device specifically includes the following contents:
[0113] The acquisition module 01 is used to acquire first intensity values of a standard light source at multiple wavelengths and intensity groups corresponding to multiple pixel points of the detector, each intensity group including: second intensity values at each of the wavelengths;
[0114] A determination module 02 is used to determine the intensity group of the central pixel point from the intensity groups of each of the pixel points, and to perform intensity correction on the intensity group of the central pixel point by applying the first intensity value at each of the wavelengths to obtain a corrected intensity group corresponding to the central pixel point;
[0115] A normalization module 03 is used to apply each of the intensity groups to perform normalization processing to obtain a normalized array, and obtain a correction matrix according to the corrected intensity groups and the normalized array;
[0116] The correction module 04 is used to obtain the spectrum to be corrected collected by the detector, and complete the correction of the spectrum to be corrected according to the correction matrix.
[0117] In one embodiment, the determining module includes:
[0118] A first correction unit, configured to divide the second intensity value of the central pixel by a first intensity value having the same wavelength as that corresponding to the second intensity value, to obtain a corrected intensity value corresponding to the second intensity value;
[0119] The combining unit is used to combine the corrected intensity values corresponding to the respective second intensity values into a corrected intensity group corresponding to the central pixel point.
[0120] In one embodiment, the normalization module includes:
[0121] A second combining unit is used to combine the second intensity values with the same wavelength corresponding to each of the intensity groups into an intensity group corresponding to the wavelength;
[0122] A normalization unit, used to determine the intensity value of the central pixel in the intensity group corresponding to each wavelength as 1, and perform normalization processing on the intensity group corresponding to the wavelength to obtain a normalized intensity group corresponding to the wavelength;
[0123] The third combining unit is used to combine the normalized intensity groups corresponding to the wavelengths into the normalized array.
[0124] In one embodiment, the normalization module comprises:
[0125] The determination unit is used to divide the intensity values of the same wavelength corresponding to the normalized array and the corrected intensity group to obtain a correction matrix.
[0126] In one embodiment, the multiple wavelengths are equally spaced wavelengths within a preset grating scanning range.
[0127] In one embodiment, the correction module includes:
[0128] The second correction unit is used to obtain the wavelength and the third intensity value of the spectrum to be corrected corresponding to each of the pixel points, obtain the correction coefficient of the spectrum to be corrected corresponding to the pixel point from the correction matrix according to the wavelength of the spectrum to be corrected corresponding to each pixel point, divide the third intensity value of the spectrum to be corrected corresponding to the same pixel point by the correction coefficient, and complete the correction of the spectrum to be corrected.
[0129] The embodiment of the spectrum correction device provided in this specification can be specifically used to execute the processing flow of the embodiment of the above-mentioned spectrum correction method. Its functions are not described in detail here, and reference can be made to the detailed description of the embodiment of the above-mentioned spectrum correction method.
[0130] Figure 6 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application, such as Figure 6 As shown, the electronic device includes: a memory 601, a processor 602, and a computer program stored in the memory 601 and executable on the processor 602. When the processor 602 executes the computer program, the following method is implemented:
[0131] Acquire first intensity values of a standard light source at multiple wavelengths and intensity groups corresponding to multiple pixel points of the detector, each intensity group including: second intensity values at each of the wavelengths;
[0132] Determine an intensity group of a central pixel point from the intensity groups of each of the pixel points, apply the first intensity value at each of the wavelengths, perform intensity correction on the intensity group of the central pixel point, and obtain a corrected intensity group corresponding to the central pixel point;
[0133] Applying each of the intensity groups to perform normalization processing to obtain a normalized array, and obtaining a correction matrix according to the corrected intensity groups and the normalized array;
[0134] The spectrum to be corrected collected by the detector is obtained, and the correction of the spectrum to be corrected is completed according to the correction matrix.
[0135] This embodiment discloses a computer program product, the computer program product including a computer program, and when the computer program is executed by a processor, the following method is implemented:
[0136] Acquire first intensity values of a standard light source at multiple wavelengths and intensity groups corresponding to multiple pixel points of the detector, each intensity group including: second intensity values at each of the wavelengths;
[0137] Determine an intensity group of a central pixel point from the intensity groups of each of the pixel points, apply the first intensity value at each of the wavelengths, perform intensity correction on the intensity group of the central pixel point, and obtain a corrected intensity group corresponding to the central pixel point;
[0138] Applying each of the intensity groups to perform normalization processing to obtain a normalized array, and obtaining a correction matrix according to the corrected intensity groups and the normalized array;
[0139] The spectrum to be corrected collected by the detector is obtained, and the correction of the spectrum to be corrected is completed according to the correction matrix.
[0140] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following method is implemented:
[0141] Acquire first intensity values of a standard light source at multiple wavelengths and intensity groups corresponding to multiple pixel points of the detector, each intensity group including: second intensity values at each of the wavelengths;
[0142] Determine an intensity group of a central pixel point from the intensity groups of each of the pixel points, apply the first intensity value at each of the wavelengths, perform intensity correction on the intensity group of the central pixel point, and obtain a corrected intensity group corresponding to the central pixel point;
[0143] Applying each of the intensity groups to perform normalization processing to obtain a normalized array, and obtaining a correction matrix according to the corrected intensity groups and the normalized array;
[0144] The spectrum to be corrected collected by the detector is obtained, and the correction of the spectrum to be corrected is completed according to the correction matrix.
[0145] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0146] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0149] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0150] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present application. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A spectrum correction method, characterized in that: include: Acquire first intensity values of a standard light source at multiple wavelengths and intensity groups corresponding to multiple pixel points of the detector, each intensity group including: second intensity values at each of the wavelengths; Determine an intensity group of a central pixel point from the intensity groups of each of the pixel points, apply the first intensity value at each of the wavelengths, perform intensity correction on the intensity group of the central pixel point, and obtain a corrected intensity group corresponding to the central pixel point; Applying each of the intensity groups to perform normalization processing to obtain a normalized array, and obtaining a correction matrix according to the corrected intensity groups and the normalized array; Acquiring the spectrum to be corrected collected by the detector, and completing the correction of the spectrum to be corrected according to the correction matrix; The applying the first intensity value at each of the wavelengths to perform intensity correction on the intensity group of the central pixel point to obtain a corrected intensity group corresponding to the central pixel point includes: Dividing the second intensity value of the central pixel by the first intensity value having the same wavelength as that corresponding to the second intensity value, to obtain a corrected intensity value corresponding to the second intensity value; The corrected intensity values corresponding to the respective second intensity values are combined into a corrected intensity group corresponding to the central pixel point; The step of completing the correction of the spectrum to be corrected according to the correction matrix comprises: The wavelength and the third intensity value of the spectrum to be corrected corresponding to each of the pixel points are obtained, and according to the wavelength of the spectrum to be corrected corresponding to each pixel point, the correction coefficient of the spectrum to be corrected corresponding to the pixel point is obtained from the correction matrix, and the third intensity value corresponding to the spectrum to be corrected at the same pixel point is divided by the correction coefficient to complete the correction of the spectrum to be corrected, where the spectrum to be corrected is a spectrum to be corrected at any central wavelength.
2. The spectrum correction method according to claim 1, characterized in that: The applying each of the intensity groups to perform normalization processing to obtain a normalized array includes: The second intensity values corresponding to the same wavelength in each of the intensity groups are combined into an intensity group corresponding to the wavelength; Determine the intensity value of the central pixel in the intensity group corresponding to each wavelength as 1, perform normalization processing on the intensity group corresponding to the wavelength, and obtain a normalized intensity group corresponding to the wavelength; The normalized intensity groups corresponding to the wavelengths are combined into the normalized array.
3. The spectrum correction method according to claim 1, characterized in that: The step of obtaining a correction matrix according to the corrected intensity group and the normalized array comprises: The normalized array and the intensity values corresponding to the same wavelength in the corrected intensity group are divided to obtain a correction matrix.
4. The spectrum correction method according to claim 1, characterized in that: The multiple wavelengths are equally spaced wavelengths within a preset grating scanning range.
5. A spectrum correction device, characterized in that: include: An acquisition module, used to acquire first intensity values of a standard light source at multiple wavelengths and intensity groups corresponding to multiple pixel points of the detector, each intensity group including: second intensity values at each of the wavelengths; A determination module, configured to determine an intensity group of a central pixel point from the intensity groups of each of the pixel points, and to perform intensity correction on the intensity group of the central pixel point by applying the first intensity value at each of the wavelengths to obtain a corrected intensity group corresponding to the central pixel point; A normalization module, used for applying each of the intensity groups to perform normalization processing to obtain a normalized array, and obtaining a correction matrix according to the corrected intensity groups and the normalized array; A correction module, used for acquiring the spectrum to be corrected collected by the detector, and completing the correction of the spectrum to be corrected according to the correction matrix; The determining module comprises: A first correction unit, configured to divide the second intensity value of the central pixel by a first intensity value having the same wavelength as that corresponding to the second intensity value, to obtain a corrected intensity value corresponding to the second intensity value; A combining unit, used for combining the corrected intensity values corresponding to the respective second intensity values into a corrected intensity group corresponding to the central pixel point; The correction module comprises: The second correction unit is used to obtain the wavelength and the third intensity value of the spectrum to be corrected corresponding to each of the pixel points, obtain the correction coefficient of the spectrum to be corrected corresponding to the pixel point from the correction matrix according to the wavelength of the spectrum to be corrected corresponding to each pixel point, divide the third intensity value of the spectrum to be corrected corresponding to the same pixel point and the correction coefficient to complete the correction of the spectrum to be corrected, and the spectrum to be corrected is a spectrum to be corrected at any central wavelength.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the spectrum correction method according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instructions are executed by a processor, the spectrum correction method described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Echelle spectrometer dynamic calibration method for laser-induced breakdown spectrum acquisition
CN107037012A
Spectrum correction method, correction device and spectrum acquisition device
CN113237549A
Method for correcting stray light of hyperspectral radiance instrument and measuring device
CN114739507A
Method for correcting LIBS spectrum volatility through plasma image-spectrum fusion and application
CN115728289A
Display light field radiation measurement method
CN116884326A
