Sample set expansion method and storage medium for improving spectral reflectance reconstruction accuracy

Through the extended sample set generation method, the adjustable spectral light source and the nearest neighbor algorithm are used to generate an extended sample set in the CIELAB color space, which solves the problem of limited accuracy of existing spectral reflectance reconstruction and achieves high-precision reconstruction of spectral reflectance.

CN113971434BInactive Publication Date: 2024-10-01CHINA UNIV OF GEOSCIENCES (WUHAN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110849043.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-27
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The accuracy of existing spectral reflectance reconstruction methods is limited by the limited number of samples, resulting in limited reflectance reconstruction accuracy in applications in fields such as textiles, printing, and medicine.

Method used

By presetting the spectral range of the adjustable spectrum light source, select the original sample and perform RGB camera response value conversion to determine whether it is within the CIELAB uniform color space, perform linear expansion and Euclidean distance calculations, and use the nearest neighbor algorithm to generate an expanded sample set , until the set error requirements are met, and an extended sample set is formed to improve the reconstruction accuracy.

Benefits of technology

The spectral reflectance reconstruction accuracy is significantly improved. The generated expanded sample set is used in the reconstruction method based on the radial basis function. The verification results show that the reconstruction accuracy is greatly improved compared with the original method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113971434B_ABST
    Figure CN113971434B_ABST
Patent Text Reader

Abstract

The present invention provides a sample set expansion method for spectral reflectance research. Firstly, the light source spectrum is adjusted to illuminate 140 standard CCSG color card samples, and the respective RGB camera responses are obtained, and then the data outside the known sample space are eliminated. Secondly, each extended sample that meets the given error is obtained in the CIELAB uniform color space based on the nearest neighbor algorithm, until all samples within the preset spectral range are generated to obtain the extended sample set. Finally, the extended sample set is used to reconstruct the spectral reflectance. The results show that compared with the results of the mainstream reflectance reconstruction strategy based on the original samples, the reconstruction accuracy of the former is greatly improved. When the number of extended samples is about 4600 and the IES standard test set is used, the root mean square error of the reconstruction result of the former decreases by 41.12%, the average brightness error decreases by 19.31%, and the average color difference decreases by 38.01%, which has great practical value in promoting the research related to spectral reflectance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of spectral image reconstruction, and in particular to a sample set expansion method and a storage medium for improving spectral reflectance reconstruction accuracy. Background Art

[0002] High-precision reflectivity is a prerequisite for spectral regulation and many other research fields that rely on object color information. The textile and printing industries often need to restore accurate image colors. In medicine, doctors need to locally enhance tissues to accurately distinguish pathological tissues. The prerequisite for these operations is to obtain reflectivity information on the target surface. Spectrometers can assist in measuring the reflectivity of an object's surface, but they require the construction of a large amount of hardware facilities, which are bulky, expensive, complex to operate, and have low practicality.

[0003] Reflectivity reconstruction can be achieved with a suitable light source and camera programming. Currently, there are two methods for obtaining spectral reflectivity from the camera response of the target: model-based and training-based. Model-based methods require characterization of the camera sensitivity function, which increases complexity and cost, so training-based methods are easier to implement. There are currently many training-based spectral reflectivity reconstruction methods. The accuracy of training-based reflectivity reconstruction depends largely on the number of valid samples in the training set. The limited number of existing samples has greatly limited the accuracy of spectral reflectivity reconstruction in various fields. Summary of the invention

[0004] A major problem solved by the present invention is the limited reconstruction accuracy of existing spectral reflectance reconstruction methods.

[0005] In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides a sample set expansion method applied to spectral reflectance research, which effectively improves the reflectance reconstruction accuracy.

[0006] The present invention is a sample set expansion method for improving the reconstruction accuracy of spectral reflectance, comprising:

[0007] Preset the spectral range of the adjustable spectrum light source and select the original sample to complete the initialization;

[0008] Select a spectral combination to illuminate one of the original samples, and obtain an RGB camera response value according to a camera response function;

[0009] Convert the RGB camera response value to the CIELAB uniform color space, and determine whether the original sample being illuminated is in a known sample space in the CIELAB uniform color space;

[0010] Linearly expand the data of the original sample in the known sample space to obtain a first generated sample;

[0011] Ensure that the dimensions of the matrix are consistent, calculate the Euclidean distance between the first generated sample and each spatial point of the known sample space, and save the calculation results;

[0012] The calculation results are sorted from small to large, and based on the nearest neighbor algorithm, a preset number of minimum values ​​are selected from the sorted calculation results as data for calculating the second generated sample;

[0013] Taking an average value of all the selected minimum values, and using the average value as the synthetic reflectivity of the second generated sample;

[0014] Determining whether the synthetic reflectivity meets the set requirements in terms of a given error, and if so, obtaining a second generated sample;

[0015] The process of generating the second generated samples is iteratively repeated until the spectral range illuminates all the original samples and an extended sample set consisting of the second generated samples is obtained.

[0016] Furthermore, the spectral range of the preset adjustable spectrum light source and the selection of original samples to complete initialization include:

[0017] The preset spectral range is 1:51:255 for R, G, and B;

[0018] Select the CCSG standard color card as the original sample to complete the initialization.

[0019] Further, determining whether the irradiated original sample is in a known sample space in the CIELAB uniform color space also includes:

[0020] If the irradiated original sample is not within the known sample space, the irradiated original sample is discarded, and a new spectrum combination is selected to irradiate another original sample;

[0021] Furthermore, the known sample space is a three-dimensional sample space composed of four standard data sets: Munsell, IES, MacBeth and Leeds100000.

[0022] Further, the calculating the Euclidean distance between the first generated sample and each spatial point of the known sample space includes:

[0023] The Euclidean distance is calculated in the CIELAB uniform color space, and the calculation formula is as follows:

[0024]

[0025] Wherein l1, a1, b1 are the coordinates of the known sample in the CIELAB space, and l2, a2, b2 are the coordinates of the generated sample in the known sample space.

[0026] Furthermore, the number of original samples is 140.

[0027] Furthermore, the setting requirements include setting a root mean square error and a color difference error.

[0028] Furthermore, the synthetic reflectivity satisfies the root mean square error and the chromatic aberration error in terms of a given error, that is, meets the set requirements.

[0029] Furthermore, after obtaining the extended sample set, the step further includes:

[0030] Based on the radial basis function reconstruction method, the extended sample set is applied to the spectral reflectance reconstruction to verify the reconstruction accuracy of the spectral reflectance.

[0031] According to another aspect of the present invention, a storage medium is further disclosed. The storage medium is a computer-readable storage medium, and the storage medium stores a sample set expansion method for improving the accuracy of spectral reflectance reconstruction as described in any one of claims 1-9.

[0032] The present invention firstly controls the light source spectrum to illuminate 140 standard CCSG color card samples, obtains the respective RGB camera responses, and then eliminates the data outside the known sample space; secondly, based on the nearest neighbor algorithm, each extended sample that meets the given error is obtained in the CIELAB uniform color space until all samples within the preset spectral range are generated to obtain the extended sample set; finally, the extended sample set is used to reconstruct the spectral reflectance. The results show that compared with the results of the mainstream reflectance reconstruction strategy based on the original samples, the spectral reconstruction accuracy of this method is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0034] Figure 1 It is a flow chart of a sample set expansion method for improving the reconstruction accuracy of spectral reflectance in an embodiment of the present invention;

[0035] Figure 2 is a spectrum distribution diagram of the adjustable spectrum light source used in the embodiment of the present invention;

[0036] Figure 3 is a response curve diagram of the camera used in the embodiment of the present invention on the three channels of RGB;

[0037] Figure 4is a point cloud distribution diagram of known sample data in the CIELAB color space in an embodiment of the present invention;

[0038] Figure 5 is a distribution diagram of 4607 samples expanded by the nearest neighbor algorithm and the original samples in the color space in an embodiment of the present invention;

[0039] Figure 6 is a schematic diagram of a reflectivity reconstruction method based on radial basis function in an embodiment of the present invention;

[0040] Figure 7 In the embodiment of the present invention, an extended sample set is used to reconstruct the reflectivity, and then reflectivity images of some test samples are used. DETAILED DESCRIPTION

[0041] Various exemplary embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention.

[0042] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0043] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0044] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0045] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

[0046] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0047] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0048] Embodiment 1, as Figure 1 As shown, this embodiment provides a sample set expansion method for improving the spectral reflectance reconstruction accuracy, which specifically includes the following steps:

[0049] Step 1: First, use a three-channel projector as an adjustable spectral light source. Each channel of this light source has 255 adjustable points, which is easy to control and has good color gamut coverage. It avoids the impact of spectral characteristic changes on expansion accuracy caused by using combined light sources on the market and is easier to achieve automatic control. Then, preset the spectral range and select the CCSG standard color card as the original sample to complete initialization.

[0050] For the tunable spectrum light source, the output of the NEC laser projector when the R, G, and B channels are all 255 can be used as the reference light source. The light source spectrum distribution of each channel between 0 and 255 can be obtained by linear interpolation and saved as the tunable light source.

[0051] Then, the spectral range is set according to the number of samples expected to be expanded. The preset spectral range will directly affect the number of samples in the expanded sample set. In theory, the larger the spectral range of the light source, the larger the number of sample sets that will be expanded. Figure 2 It is a spectral distribution of an adjustable light source, wherein noise is the dark noise of the projector light source, which should be subtracted during calculation. The spectral range set in this embodiment is 1:51:255 for R, G, and B.

[0052] In the selection of original samples, the CCSG standard color cards (140) of Xrite Company were selected to ensure the accuracy of the expansion process; the reflectivity was measured by a spectrometer and saved as the original sample data. At this point, the initialization step was completed.

[0053] Step 2: Select a spectrum to illuminate an original sample, obtain its RGB camera response value according to the camera response function, and then convert the RGB response value to the CIELAB uniform color space to determine whether it is in the known sample space. If not, discard the original sample and repeat step 2. If it exists in the known sample space, execute the next step.

[0054] In step 2, an original sample is taken from the 140 data in step 1, and a spectral combination is selected from the spectral range of 1:51:255 for R, G, and B set in step 1 to illuminate the original sample, and its RGB response value is obtained according to the camera response function. The camera response curve used in the present invention is as follows: Figure 3 As shown, there are three input parameters required to calculate the camera response, namely spectral data, sample reflectance data and camera response function.

[0055] Next, the obtained RGB response value is converted to the CIELAB uniform color space. The uniform color space used in the present invention is the CIELAB uniform color space specified by the International Commission on Illumination. Before converting the RGB value to CIELAB, it is necessary to convert it to CIEXYZ. This process requires obtaining a conversion matrix M. First, the human eye XYZ1931 is converted to XYZ value according to the spectral data, recorded as XYZM, and then the camera response value of the same XYZ1931 is obtained using the camera response function, recorded as RGBM, so that the conversion matrix M can be obtained as XYZM×pinv(RGBM), where pinv is the matrix pseudo-inverse calculation function. After obtaining the conversion matrix, the CIELAB value of the aforementioned RGB response value can be calculated.

[0056] Finally, determine whether the irradiated original sample is in the known sample space. If it is not in the known sample space, discard the original sample and select a new original sample to repeat step 2. Otherwise, execute step 3.

[0057] In addition, in this embodiment, the three-dimensional sample space used to determine whether the irradiated original sample is in the known sample space is composed of four standard data sets: Munsell, IES, MacBeth and Leeds100000. The distribution of the spatial point cloud is as follows: Figure 4 As shown, these datasets cover most of the uniform color space, ensuring the validity and authenticity of the selected extended samples.

[0058] Step 3: linearly expand the sample data in the known sample space in step 2, that is, expand the order of the sample matrix initially generated to be consistent with the sample data in the known sample space, in order to ensure the dimensional consistency in subsequent operations. Then calculate the Euclidean distance (Euclidean distance) between the initially generated sample and each data point in the known sample space, that is, the color difference, and save the calculation result before executing step 4;

[0059] In this embodiment, the Euclidean distance (color difference) is calculated in the CIELAB uniform color space, and its specific formula is as follows:

[0060]

[0061] Among them, l1, a1, b1 are the coordinates of the known samples in the known sample space in the CIELAB uniform color space, l2, a2, b2 are the coordinates of the generated samples in it, and each generated sample needs to calculate the distance between it and each of the 140 known samples and save the calculation results for use in subsequent steps.

[0062] Step 4: Sort the calculation results from small to large, and select K reflectance values ​​with the smallest color difference from the initial generated sample in the sample space based on the idea of ​​the nearest neighbor algorithm. Take the average value as the synthetic reflectance of the sample, and then determine whether it meets the set requirements in terms of the given error. If it does not meet the requirements, discard it and execute step 2. If it meets the requirements, an extended sample is obtained.

[0063] Specifically, in this embodiment, the calculation results (color difference) obtained in step three are first sorted from small to large, and then a parameter K is set to 20, and the first 20 results in the sorting result are taken out, and the weighting coefficients are determined according to these known samples with the smallest color difference with the samples to be screened, and a weighted diagonal matrix is ​​obtained, and then the reflectivities corresponding to these samples are multiplied by the weighting matrix and summed to obtain a composite reflectivity. If the corresponding error of calculating the composite emissivity meets the preset error, that is, the root mean square error and the color difference error are taken as the preset error conditions, an extended reflectivity sample is selected, and only when its composite reflectivity satisfies these two set error conditions at the same time, the corresponding generated sample can be saved as an extended sample.

[0064] Step 5: After completing a complete extended sample generation process, steps 2 to 4 are repeated in subsequent iterations until all original samples are irradiated over the entire spectral range, thereby obtaining an extended sample set consisting of multiple generated extended samples;

[0065] In this embodiment, since the spectral ranges of R, G, and B are all set to 1:51:255 and 140 original samples are used, a total of 4607 extended samples are generated;

[0066] Next, the original samples and the expanded samples in this embodiment are plotted in a spatial map, as shown in FIG. Figure 5 As shown, the hollow dots are the original sample data, and the solid dots are the extended sample data. From the comparison images, it can be seen that the generated samples are evenly distributed in the space and do not exceed the space of the original sample envelope. The samples are all valid.

[0067] Step six, apply the extended sample set to spectral reflectance reconstruction to verify its reconstruction accuracy. Compared with the results of the mainstream reflectance reconstruction strategy based on the original samples, the reconstruction accuracy is greatly improved after reconstructing the spectral reflectance using the extended sample set, which has great practical value for promoting research related to spectral reflectance.

[0068] Specifically, the reconstruction method in this embodiment uses the radial basis function method, which is a type of neural network. It is convenient for learning the mapping between the light source spectrum, spectral reflectance and camera-specific RGB values. It does not require that the training samples and the test samples must be similar, and is suitable for a large number of training samples.

[0069] The specific reflectivity reconstruction process is as follows: Figure 6 As shown, in actual operation, this embodiment adopts a three-layer radial basis neural network that is easy to implement. The input layer is a nine-element vector composed of the camera output RGB values ​​obtained under the spectrum of a three-channel light source (NEC laser projector), and the hidden layer is designed as a neuron with a Gaussian function. The output layer has neurons with linear functions, plus the weighted output of the hidden layer. The latter takes the weighted Euclidean distance between the input vectors as input. Initially, the hidden layer has no nodes, and the training is repeated until the number of nodes in the hidden layer increases to the set number.

[0070] In this embodiment, the 4607 extended spectral reflectance sample sets obtained in the above steps are input into the network to train the neural network. After the network is trained, different randomly selected test sets are used to test the reflectance reconstruction accuracy. Figure 7 The results of partial reflectivity reconstruction are shown. It can be seen that the reconstructed reflectivity curve fits the true value well, and good reconstruction effect is achieved in the entire wavelength range.

[0071] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

[0072] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

Claims

1. A sample set expansion method for improving the accuracy of spectral reflectance reconstruction, characterized in that: include: Preset the spectral range of the adjustable spectrum light source and select the original sample to complete the initialization; Select a spectral combination to illuminate one of the original samples, and obtain an RGB camera response value according to a camera response function; Convert the RGB camera response value to the CIELAB uniform color space, and determine whether the original sample being illuminated is in a known sample space in the CIELAB uniform color space; Linearly expand the data of the original sample in the known sample space to obtain a first generated sample; Ensure that the matrix dimensions are consistent, calculate the Euclidean distance between the first generated sample and each spatial point in the known sample space, and save the calculation results; The calculation results are sorted from small to large, and based on the nearest neighbor algorithm, a preset number of minimum values ​​are selected from the sorted calculation results as data for calculating the second generated sample; Taking an average value of all the selected minimum values, and using the average value as the synthetic reflectivity of the second generated sample; Determining whether the synthetic reflectivity meets the set requirements in terms of a given error, and if so, obtaining a second generated sample; The process of generating the second generated samples is iteratively repeated until the spectral range illuminates all the original samples and an extended sample set consisting of the second generated samples is obtained.

2. A sample set expansion method for improving spectral reflectance reconstruction accuracy as claimed in claim 1, characterized in that: The preset spectral range of the adjustable spectrum light source and the selection of original samples to complete initialization include: The preset spectral range is 1:51:255 for R, G, and B; Select the CCSG standard color card as the original sample to complete the initialization.

3. The sample set expansion method for improving spectral reflectance reconstruction accuracy according to claim 1, characterized in that: Determining whether the original sample being illuminated is in a known sample space in the CIELAB uniform color space also includes: If the irradiated original sample is not within the known sample space, the irradiated original sample is discarded, and a new spectrum combination is selected to irradiate another original sample.

4. The sample set expansion method for improving spectral reflectance reconstruction accuracy according to claim 1, characterized in that: The known sample space is a three-dimensional sample space composed of four standard data sets: Munsell, IES, MacBeth and Leeds100000.

5. The sample set expansion method for improving spectral reflectance reconstruction accuracy according to claim 1, characterized in that: The calculating of the Euclidean distance between the first generated sample and each spatial point of the known sample space comprises: The Euclidean distance is calculated in the CIELAB uniform color space, and the calculation formula is as follows: , in , , is the coordinate of the known sample in CIELAB space, , , The coordinates of the first generated sample in the known sample space are obtained.

6. The sample set expansion method for improving spectral reflectance reconstruction accuracy according to claim 1, characterized in that: The number of the original samples was 140.

7. The sample set expansion method for improving spectral reflectance reconstruction accuracy according to claim 1, characterized in that: The setting requirements include setting a root mean square error and a color difference error.

8. The sample set expansion method for improving spectral reflectance reconstruction accuracy according to claim 7, characterized in that: The synthetic reflectivity satisfies the root mean square error and the chromatic aberration error in terms of the given error, which means that the set requirements are met.

9. The sample set expansion method for improving spectral reflectance reconstruction accuracy according to claim 1, characterized in that: The step of obtaining the extended sample set further includes: Based on the radial basis function reconstruction method, the extended sample set is applied to the reconstruction of the spectral reflectance to verify the reconstruction accuracy of the spectral reflectance.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and the storage medium stores a sample set expansion method for improving spectral reflectance reconstruction accuracy as described in any one of claims 1 to 9.