Disclosure of Invention
The invention provides a spectrum preprocessing method for calculating a color tristimulus value, and aims to solve the problems that a traditional spectrum preprocessing method is not suitable for processing spectrum response data which have no obvious characteristic peak value, have relatively gentle curve change trend and are used for calculating the color tristimulus value.
In order to achieve the above object, an embodiment of the present invention provides a color measurement platform for color tristimulus value calculation, including:
a reflectance measurement mount;
a sample to be measured, wherein the sample to be measured is placed at the top of the reflection measurement bracket;
the first collimating mirror is arranged right above the sample to be detected;
the second collimating lens is obliquely arranged above the side of the sample to be detected, and the included angle between the second collimating lens and the first collimating lens is 45 degrees;
the optical fiber light source is connected with the second collimating mirror through an incident optical fiber;
the first end of the fiber spectrometer is connected with the first collimating mirror through an emergent optical fiber;
a computer electrically connected to the second end of the fiber optic spectrometer.
The embodiment of the invention also provides a spectrum preprocessing method for calculating the color tristimulus values, which comprises the following steps:
step 1, placing a reference standard on a reflection measurement support, adopting a fiber optic spectrometer to collect spectral response data of the reference standard, replacing the reference standard with a sample to be measured, adopting the fiber optic spectrometer to collect spectral response data of the sample to be measured, placing a visible light cut-off baffle plate between the reflection measurement support and the fiber optic spectrometer, and adopting the fiber optic spectrometer to collect spectral response data of dark noise to obtain reference standard spectral response data, spectral response data of the sample to be measured and spectral response data of the dark noise;
step 2, respectively calculating the standard deviation of reference standard spectral response data, the standard deviation of the spectral response data of the sample to be detected and the standard deviation of the spectral response data of dark noise at each wavelength sampling point, respectively setting an abnormal value rejection criterion and a method according to the standard deviation of the reference standard spectral response data, the standard deviation of the spectral response data of the sample to be detected and the standard deviation of the spectral response data of the dark noise in the color tristimulus value calculation wavelength interval, and rejecting the abnormal value of the standard deviation of the reference standard spectral response data, the standard deviation of the spectral response data of the sample to be detected and the abnormal value of the standard deviation of the spectral response data of the dark noise corresponding to the reference standard spectral response data, the spectral response data of the sample to be detected and the spectral response data of the dark noise;
step 3, respectively calculating the average value of the reference standard spectral response data after the abnormal values are removed, the average value of the spectral response data of the sample to be detected after the abnormal values are removed and the average value of the spectral response data of the dark noise after the abnormal values are removed;
step 4, calculating a first derivative of the average value of the reference standard spectral response data after the abnormal values are removed, and removing two wavelength points lambda corresponding to the maximum value of the first derivative in the wavelength interval of the color tristimulus values k And λ k-1 Obtaining the average value of the rejected reference standard spectral response data;
step 5, calculating a first derivative of the average value of the spectral response data of the sample to be detected after the abnormal value is eliminated, and eliminating two wavelength points lambda corresponding to the maximum value of the first derivative in the wavelength interval of the color tristimulus value calculation k And λ k-1 Obtaining the average value of the spectral response data of the rejected samples to be detected;
step 6, calculating a first derivative of the average value of the spectral response data of the dark noise after the elimination of the abnormal value, and eliminating two wavelength points lambda corresponding to the maximum value of the first derivative in the wavelength interval of the color tristimulus value calculation k And λ k-1 Obtaining the average value of the spectral response data of the rejected dark noise;
step 7, denoising the average value of the rejected reference standard spectral response data, the average value of the rejected sample to be detected spectral response data and the average value of the rejected dark noise spectral response data by adopting a spectral smoothing method to obtain the average value of the denoised reference standard spectral response data, the average value of the denoised sample to be detected spectral response data and the average value of the denoised dark noise spectral response data;
step 8, in a visible light range, calculating a wavelength interval by using a color tristimulus value as an interpolation interval, and converting the average value of the denoised reference standard spectral response data, the average value of the denoised sample spectral response data and the average value of the denoised dark noise spectral response data by adopting an interpolation algorithm to obtain the average value of the converted reference standard spectral response data, the average value of the converted sample spectral response data and the average value of the converted dark noise spectral response data;
step 9, calculating the spectral reflectivity of the sample to be measured according to the average value of the converted reference standard spectral response data, the average value of the converted sample to be measured spectral response data and the average value of the converted dark noise spectral response data;
and step 10, calculating the color tristimulus value of the sample to be detected according to the calculated spectral reflectivity of the sample to be detected.
Wherein, the step 1 specifically comprises:
respectively collecting spectral response data of the reference standard, the sample to be detected and dark noise by using an optical fiber spectrometer, wherein the collection times are not less than 6 times to obtain reference standard spectral response data V r (lambda) spectral response data V of the sample to be measured s (λ) and spectral response data V of dark noise d (lambda), the integration time of the fiber spectrometer is the integration time when the reference standard spectral response data reaches the maximum, and the spectral sampling wavelength interval is less than one tenth of the wavelength interval of the color tristimulus value calculation.
Wherein, the step 2 specifically comprises:
calculating the standard deviation s of the reference standard spectral response data at each wavelength sampling point r (λ), as follows:
wherein s is
r (λ) represents the standard deviation of the reference standard spectral response dataN denotes the number of measurements, i denotes the ith measurement, λ denotes the wavelength, V
r-i (λ) represents the reference standard spectral response data for the ith measurement,
means representing reference standard spectral response data;
searching for standard deviation s of reference standard spectral response data within the color tristimulus value calculation wavelength interval r (lambda) maximum wavelength point lambda max_r And eliminating abnormal wavelength point lambda max_r Reference standard spectral response data of (a);
calculating the standard deviation s of the spectral response data of the sample to be measured at each wavelength sampling point s (λ), shown below:
wherein s is
s (lambda) represents the standard deviation of the spectral response data of the sample to be measured, n represents the number of measurements, i represents the ith measurement, lambda represents the wavelength, V
s-i (lambda) represents the spectral response data of the sample to be measured of the ith measurement,
the average value of the spectral response data of the sample to be measured is represented;
searching standard deviation s of spectral response data of a sample to be detected in the wavelength interval of color tristimulus value calculation s (lambda) maximum wavelength point lambda max_s And eliminating abnormal wavelength point lambda max_s Spectral response data of the sample to be detected;
calculating the standard deviation s of the spectral response data of the dark noise at each wavelength sampling point d (λ), shown below:
wherein s is
d (λ) spectral response data representing dark noiseStandard deviation, n denotes the number of measurements, i denotes the i-th measurement, λ denotes the wavelength, V
d-i (lambda) represents the spectral response data of the dark noise measured at the ith time,
an average of spectral response data representing dark noise;
finding the standard deviation s of the spectral response data of dark noise within the color tristimulus value calculation wavelength interval d (lambda) maximum wavelength point lambda max_d And eliminating abnormal wavelength points lambda max_d The spectral response data of the dark noise.
Wherein, the step 3 specifically comprises:
respectively calculating the average value of the reference standard spectral response data after eliminating the abnormal values
The average value of the spectral response data of the sample to be tested after the elimination of the abnormal value>
And an average value of the spectral response data of dark noise after elimination of outliers>
Wherein the step 4, the step 5 and the step 6 specifically include:
calculating the average value of the reference standard spectral response data after eliminating abnormal values
First derivative d of
r (λ), as follows:
wherein, d
r (λ
j ) First derivative representing mean of reference standard spectral response data after outlier rejectionThe number of the first and second groups is,
denotes λ
j Wavelength point is referenced to the mean value of the standard spectral response data, <' > or>
Denotes λ
j-1 The wavelength points are referenced to the mean of the standard spectral response data, λ denotes wavelength, λ
j Denotes the jth wavelength point, λ
j-1 Represents the j-1 wavelength point;
within the wavelength interval of color tristimulus values, the average value of the reference standard spectral response data after the abnormal values are removed
First derivative d of
r Two wavelength points λ corresponding to the maximum value in (λ)
k And λ
k-1 The spectral response data is rejected to obtain the average value of the rejected reference standard spectral response data>
Calculating the average value of the spectral response data of the sample to be detected after eliminating the abnormal value
First derivative d of
s (λ), as follows: />
Wherein d is
s (λ
j ) The first derivative of the average value of the spectral response data of the sample to be detected after the abnormal value is eliminated is shown,
denotes λ
j The average value of the spectral response data of the sample to be tested after the abnormal value is eliminated from the wavelength point, and then the value is judged>
Denotes λ
j-1 The average value of the spectral response data of the sample to be measured after the abnormal value of the wavelength point is removed, wherein lambda represents the wavelength, and lambda represents the wavelength
j Denotes the jth wavelength point, λ
j-1 Represents the j-1 wavelength point;
within the wavelength interval of the color tristimulus values, the average value of the spectral response data of the sample to be measured after the abnormal values are removed
First derivative d of
s Two wavelength points λ corresponding to the maximum value in (λ)
k And λ
k-1 The spectral response data are eliminated to obtain the average value of the spectral response data of the eliminated sample to be detected>
Calculating the average value of the spectral response data of the dark noise after eliminating the abnormal value
First derivative d of
d (λ), shown below:
wherein d is
d (λ
j ) The first derivative of the average of the spectral response data representing dark noise after outliers are removed,
denotes λ
j Average value of the spectral response data of the dark noise with the wavelength points rejected for an abnormal value, and/or>
Denotes λ
j-1 Average value of spectral response data of dark noise with abnormal values removed from wavelength points, wherein lambda represents wavelength and lambda represents noise
j Represents the jth wavelengthPoint, λ
j-1 Represents the j-1 wavelength point;
within the wavelength interval of color tristimulus value calculation, the average value of the spectral response data of the dark noise after the abnormal value is removed
First derivative of (d)
d Two wavelength points λ corresponding to the maximum value in (λ)
k And λ
k-1 The spectral response data is eliminated to obtain the average value of the spectral response data of the eliminated dark noise>
Wherein, the step 7 specifically comprises:
averaging the rejected reference standard spectral response data by adopting a spectral smoothing method
The average value of the spectral response data of the rejected samples to be tested is ≥ er>
And the average of the rejected dark noise spectral response data ≥>
De-noising to obtain the average value of the de-noised reference standard spectral response data>
Average value of denoised spectral response data of a sample to be tested->
And the average of the spectral response data of the denoised dark noise ≥>
Wherein, the step 8 specifically comprises:
in the visible light range, the wavelength interval is calculated by using the color tristimulus values as an interpolation interval, and the average value of the denoised reference standard spectral response data is calculated by adopting an interpolation algorithm
Average value of denoised spectral response data of sample to be detected
And the average of the spectral response data of the denoised dark noise ≥>
Performing a conversion resulting in an average value of the converted reference standard spectral response data for the same wavelength range and the same wavelength interval->
The mean value of the converted spectral response data of the sample to be examined->
And the average value of the converted dark noise's spectral response data->
Wherein, the step 9 specifically comprises:
based on the obtained average value of the converted reference standard spectral response data
The mean value of the converted spectral response data of the sample to be examined->
And the average value of the converted dark noise's spectral response data->
ComputingSpectral reflectivity rho of sample to be measured
s (λ), shown below:
wherein ρ
s (lambda) represents the spectral reflectance, rho, of the sample to be measured
r (λ) denotes the spectral reflectance of the reference standard, λ denotes the wavelength,
represents the mean value of the converted reference standard spectral response data, based on the measured value of the reference standard spectral response data>
Represents the mean value of the converted spectral response data of the sample to be examined, is determined>
An average of the spectral response data representing the converted dark noise.
Wherein, the step 10 specifically includes:
according to the obtained spectral reflectivity rho of the sample to be measured s (lambda), calculating the color tristimulus value of the sample to be measured as follows:
where ρ is
s (lambda) represents the spectral reflectance of the sample to be measured, S (lambda) represents the CIE specified relative spectral power distribution of the standard illuminant,
for the standard chromaticity observer data specified by CIE, Δ λ represents the wavelength interval, k represents the normalization coefficient, and λ represents the wavelength.
The scheme of the invention has the following beneficial effects:
the color measurement platform for calculating the color tristimulus values and the spectrum preprocessing method can eliminate the spectrum abnormal peak value and the high-frequency random noise, can eliminate the spectrum abnormal peak value, are suitable for preprocessing the spectrum data without obvious characteristic peak values and with relatively gentle curve change trends, and can improve the accuracy and the repeatability of the optical fiber spectrometer for measuring the color.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The invention provides a color measurement platform for color tristimulus value calculation and a spectrum preprocessing method, aiming at the problems that the existing spectrum preprocessing method is not suitable for processing spectrum response data which has no obvious characteristic peak value, has relatively gentle curve variation trend and is used for color tristimulus value calculation.
As shown in fig. 1 to 6, an embodiment of the present invention provides a color measurement platform for color tristimulus value calculation, including: a reflection measurement mount 1; a sample 2 to be measured, wherein the sample 2 to be measured is placed at the top of the reflection measurement bracket 1; the first collimating mirror 3 is arranged right above the sample 2 to be detected; the second collimating lens 4 is obliquely arranged above the side of the sample 2 to be detected, and an included angle between the second collimating lens 4 and the first collimating lens 3 is 45 degrees; the optical fiber light source is connected with the second collimating mirror 4 through an incident optical fiber 8; the first end of the fiber spectrometer 6 is connected with the first collimating mirror 3 through an emergent optical fiber 9; a computer 7, wherein the computer 7 is electrically connected with the second end of the fiber spectrometer 6.
According to the color measurement platform and the spectrum preprocessing method for calculating the color tristimulus value, the optical fiber light source 5 adopts an optical fiber halogen lamp, and the color measurement platform for calculating the color tristimulus value is built by adopting a 45-degree/0-degree reflection measurement support 1, a visible light station optical fiber spectrometer 6 and the computer 7 with spectrum acquisition and analysis software.
Embodiments of the present invention also provide a spectrum preprocessing method for color tristimulus value calculation, including: step 1, placing a reference standard on a reflection measurement support 1, adopting an optical fiber spectrometer 6 to collect spectral response data of the reference standard, replacing the reference standard with a sample 2 to be measured, adopting the optical fiber spectrometer 6 to collect spectral response data of the sample 2 to be measured, placing a visible light cut-off baffle between the reflection measurement support 1 and the optical fiber spectrometer 6, adopting the optical fiber spectrometer 6 to collect spectral response data of dark noise, and obtaining the spectral response data of the reference standard, the spectral response data of the sample 2 to be measured and the spectral response data of the dark noise; step 2, respectively calculating the standard deviation of the reference standard spectral response data, the standard deviation of the spectral response data of the sample 2 to be detected and the standard deviation of the spectral response data of the dark noise at each wavelength sampling point, respectively setting an abnormal value rejection criterion and method according to the standard deviation of the reference standard spectral response data, the standard deviation of the spectral response data of the sample 2 to be detected and the standard deviation of the spectral response data of the dark noise in the color tristimulus value calculation wavelength interval, and rejecting the standard deviation of the reference standard spectral response data and the spectral response number of the sample 2 to be detectedAccording to the standard deviation and the abnormal value of the standard deviation of the spectral response data of the dark noise, corresponding to the reference standard spectral response data, the spectral response data of the sample 2 to be detected and the spectral response data of the dark noise; step 3, respectively calculating the average value of the reference standard spectral response data after the abnormal values are removed, the average value of the spectral response data of the sample 2 to be detected after the abnormal values are removed and the average value of the spectral response data of the dark noise after the abnormal values are removed; step 4, calculating a first derivative of the average value of the reference standard spectral response data after the abnormal values are removed, and removing two wavelength points lambda corresponding to the maximum value of the first derivative in the wavelength interval of the color tristimulus values k And λ k-1 Obtaining the average value of the rejected reference standard spectral response data; step 5, calculating a first derivative of the average value of the spectral response data of the sample 2 to be detected after the abnormal value is removed, and removing two wavelength points lambda corresponding to the maximum value of the first derivative in the wavelength interval of the color tristimulus value calculation k And λ k-1 Obtaining the average value of the spectral response data of the rejected sample 2 to be detected; step 6, calculating a first derivative of the average value of the spectral response data of the dark noise after the abnormal value is removed, and removing two wavelength points lambda corresponding to the maximum value of the first derivative in the wavelength interval of the color tristimulus value calculation k And λ k-1 Obtaining the average value of the spectral response data of the rejected dark noise; step 7, denoising the average value of the rejected reference standard spectral response data, the average value of the rejected sample 2 to be detected spectral response data and the average value of the rejected dark noise spectral response data by adopting a spectral smoothing method to obtain the average value of the denoised reference standard spectral response data, the average value of the denoised sample 2 to be detected spectral response data and the average value of the denoised dark noise spectral response data; and 8, in a visible light range, calculating a wavelength interval by using the color tristimulus values as an interpolation interval, and converting the average value of the denoised reference standard spectral response data, the average value of the denoised spectral response data of the sample 2 to be detected and the average value of the denoised spectral response data of the dark noise by adopting an interpolation algorithm to obtainThe average value of the converted reference standard spectral response data, the average value of the converted spectral response data of the sample 2 to be detected and the average value of the converted spectral response data of the dark noise; step 9, calculating the spectral reflectivity of the sample 2 to be measured according to the average value of the converted reference standard spectral response data, the average value of the converted spectral response data of the sample 2 to be measured and the average value of the converted spectral response data of the dark noise; and step 10, calculating the color tristimulus value of the sample 2 to be detected according to the calculated spectral reflectivity of the sample 2 to be detected.
Wherein, the step 1 specifically comprises: respectively collecting spectral response data of the reference standard, the sample 2 to be detected and dark noise by using a fiber spectrometer 6, wherein the collection times are not less than 6 times to obtain reference standard spectral response data V r (lambda) spectral response data V of sample 2 to be measured s (λ) and spectral response data V of dark noise d (λ), the integration time of the fiber spectrometer 6 is the integration time for which the reference standard spectral response data reaches the maximum, and the spectral sampling wavelength interval is less than one tenth of the color tristimulus value calculation wavelength interval.
The color measurement platform and the spectrum preprocessing method for calculating the color tristimulus value according to the above embodiments of the present invention determine the measurement parameters: the sampling wavelength range of the optical fiber spectrometer 6 is 380nm-780nm, the sampling wavelength interval is 0.5nm, and the sampling frequency is 6 times; the reference standard adopts a BCRA standard white ceramic plate, the sample 2 to be measured adopts a BCRA standard red ceramic plate, the reference standard is placed on the reflection measurement support 1, the fiber spectrometer 6 is adopted to measure spectral response data of the reference standard, the integration time of the reference standard spectral response value reaching the maximum is determined to be 155 milliseconds, and 155 milliseconds are set as the integration time of the fiber spectrometer 6. Placing a reference standard on the reflection measurement bracket 1, measuring the reference standard for 6 times by taking 155 milliseconds as the integration time of the fiber spectrometer 6, and obtaining reference standard spectral response data V r (λ) as shown in FIG. 3. Placing the sample 2 to be measured on the reflection measurement bracket 1, measuring for 6 times by taking 155 milliseconds as 6 integration time of the fiber spectrometer, and obtaining spectral response data V of the sample 2 to be measured s (λ),As shown in fig. 3. A visible light cut-off baffle plate is arranged between the reflection measurement bracket 1 and the optical fiber spectrometer 6, the integration time of the optical fiber spectrometer 6 is 155 milliseconds, the measurement is carried out for 6 times, and dark noise spectral response data V are obtained d (λ) as shown in FIG. 3.
Wherein, the step 2 specifically comprises: calculating the standard deviation s of the reference standard spectral response data at each wavelength sampling point r (λ), as follows:
wherein s is
r (λ) represents the standard deviation of the reference standard spectral response data, n represents the number of measurements, i represents the ith measurement, λ represents the wavelength, V
r-i (λ) represents the reference standard spectral response data for the ith measurement,
means representing reference standard spectral response data;
searching for standard deviation s of reference standard spectral response data within the color tristimulus value calculation wavelength interval r (lambda) maximum wavelength point lambda max_r And eliminating abnormal wavelength point lambda max_r Reference standard spectral response data of (a);
calculating the standard deviation s of the spectral response data of the sample 2 to be measured at each wavelength sampling point s (λ), as follows:
wherein s is
s (lambda) represents the standard deviation of the spectral response data of the
sample 2 to be measured, n represents the number of measurements, i represents the ith measurement, lambda represents the wavelength, V
s-i (lambda) represents the spectral response data of the
sample 2 to be measured of the ith measurement,
data representing the spectral response of
sample 2 to be testedAverage value of (d);
searching the standard deviation s of the spectral response data of the sample 2 to be detected in the wavelength interval of the color tristimulus value calculation s (lambda) maximum wavelength point lambda max_s And eliminating abnormal wavelength point lambda max_s The spectral response data of the sample 2 to be tested;
calculating the standard deviation s of the spectral response data of the dark noise at each wavelength sampling point d (λ), as follows:
wherein s is
d (λ) represents the standard deviation of the spectral response data of dark noise, n represents the number of measurements, i represents the ith measurement, λ represents the wavelength, V
d-i (lambda) represents the spectral response data of the dark noise measured at the ith time,
an average of spectral response data representing dark noise;
finding the standard deviation s of the spectral response data of dark noise within the color tristimulus value calculation wavelength interval d (lambda) maximum wavelength point lambda max_d And eliminating abnormal wavelength point lambda max_d The spectral response data of the dark noise.
The color measurement platform and the spectrum preprocessing method for calculating the color tristimulus value in the embodiment of the invention calculate the standard deviation s of the reference standard spectrum response data r (λ), as shown in FIG. 4; and sorting the standard deviations of all wavelength points from large to small in the wavelength interval of the color tristimulus values, and removing the sample spectral response data of the first five wavelength points.
TABLE Standard deviation of reference Standard spectral response data between 1600nm and 610nm
For example, table 1 shows color tristimulusCalculating the standard deviation of the wavelength interval between 600nm and 610nm in a descending order, judging that the spectral response values of the wavelength points 607nm,607.5nm,609nm,609.5nm and 605nm are abnormal according to the abnormal value rejection criterion and the abnormal value rejection method, rejecting the spectral response values of the five wavelength points, and rejecting the abnormal data of other wavelength points by adopting the same method; calculating the standard deviation s of the spectral response data of the sample 2 to be measured s (lambda), sorting the standard deviation of each wavelength point from large to small in the wavelength interval of the color tristimulus values, and eliminating abnormal values in the spectral response data of the sample 2 to be detected of the first five wavelength points; calculating the standard deviation s of the spectral response data of dark noise d (lambda), sorting the standard deviation of each wavelength point from large to small in the wavelength interval of the color tristimulus values, and eliminating abnormal values in the spectral response data of the dark noise of the first five wavelength points.
Wherein, the
step 3 specifically comprises: respectively calculating the average value of the reference standard spectral response data after eliminating the abnormal values
The average value of the spectral response data of the
sample 2 to be tested after elimination of the abnormal value>
And the mean value of the spectral response data of the dark noise after rejecting outliers->
Wherein the
step 4, the
step 5 and the
step 6 specifically include: calculating the average value of the reference standard spectral response data after eliminating the abnormal value
First derivative d of
r (λ), as follows:
wherein, d
r (λ
j ) A first derivative representing the average of the reference standard spectral response data after the outliers are removed,
denotes λ
j Wavelength point is referenced to the mean value of the standard spectral response data, <' > or>
Denotes λ
j-1 The wavelength points are referenced to the mean of the standard spectral response data, λ denotes wavelength, λ
j Denotes the jth wavelength point, λ
j-1 Represents the j-1 wavelength point;
within the wavelength interval of the color tristimulus values, the average value of the reference standard spectral response data after the abnormal values are eliminated
First derivative d of
r Two wavelength points λ corresponding to the maximum value in (λ)
k And λ
k-1 The spectral response data is rejected to obtain the average value of the rejected reference standard spectral response data>
Calculating the average value of the spectral response data of the
sample 2 to be detected after eliminating the abnormal value
First derivative of (d)
s (λ), as follows:
wherein, d
s (λ
j ) The first derivative of the average value of the spectral response data of the sample to be detected after eliminating the abnormal value is shown,
denotes λ
j The average value of the spectral response data of the sample to be tested after the abnormal value is eliminated from the wavelength point, and then the value is judged>
Denotes λ
j-1 The average value of the spectral response data of the sample to be measured after the abnormal value of the wavelength point is removed, wherein lambda represents the wavelength, and lambda represents the wavelength
j Denotes the jth wavelength point, λ
j-1 Represents the j-1 wavelength point;
in the wavelength interval of the color tristimulus values, the average value of the spectral response data of the
sample 2 to be measured after the abnormal values are eliminated
First derivative d of
s Two wavelength points λ corresponding to the maximum value in (λ)
k And λ
k-1 The spectral response data are eliminated to obtain the average value of the spectral response data of the eliminated
sample 2 to be detected>
Calculating the average value of the spectral response data of the dark noise after eliminating the abnormal value
First derivative of (d)
d (λ), as follows:
wherein d is
d (λ
j ) The first derivative of the average of the spectral response data representing dark noise after outliers are removed,
denotes λ
j Average value of spectral response data of dark noise with abnormal values removed from wavelength points, based on the average value>
Denotes λ
j-1 Average value of spectral response data of dark noise with abnormal values removed from wavelength points, wherein lambda represents wavelength and lambda represents noise
j Denotes the jth wavelength point, λ
j-1 Represents the j-1 wavelength point;
within the wavelength interval of color tristimulus value calculation, the average value of the spectral response data of the dark noise after the abnormal value is removed
First derivative d of
d Two wavelength points λ corresponding to the maximum value in (λ)
k And λ
k-1 The spectral response data is eliminated to obtain the average value of the spectral response data of the eliminated dark noise>
The color measurement platform and the spectrum preprocessing method for calculating the tristimulus color values in the embodiments of the invention calculate the average value of the reference standard spectrum response data after removing the abnormal values
And calculating the average value of the reference standard spectral response data after eliminating the abnormal value according to the formula (6)>
First derivative d of
r (λ), as shown in FIG. 5; in the wavelength interval of the color tristimulus values, the average value of the reference standard spectral response data after the abnormal values are eliminated is judged to be greater than or equal to>
Two wavelength points lambda corresponding to the maximum value of the first derivative value of
k And λ
k-1 The spectral response data is rejected to obtain the average value of the rejected reference standard spectral response data>
TABLE 2 first derivative of reference standard spectral response data between 600nm and 610nm
As shown in Table 2, the average value of the reference standard spectral response data after eliminating abnormal values is sorted from large to small with the wavelength of 600nm to 610nm
The first derivative of the wavelength point 602.5nm is the largest, so that the spectral response data of 602.5nm and 602nm corresponding to the maximum value of the first derivative is removed, and the data of other wavelength points are removed by the same method to remove the abnormality; calculating the average value of the spectral response data of the sample 2 to be detected after rejecting the abnormal value>
And calculating the average value of the spectral response data of the sample 2 to be detected after eliminating the abnormal value according to the formula (4)>
First derivative d of
s (λ), as shown in FIG. 5; in the wavelength interval of the color tristimulus values, the average value of the spectral response data of the sample to be detected 2 after the abnormal value is eliminated is judged>
Two wavelength points lambda corresponding to the maximum value of the first derivative value of
k And λ
k-1 The spectral response data are eliminated to obtain the average value of the spectral response data of the eliminated sample 2 to be detected>
Calculating an average value of spectral response data of dark noise after elimination of outliers>
And calculating the average value of the spectral response data of the dark noise after eliminating the abnormal value according to the formula (4)>
First derivative of (d)
d (λ), as shown in FIG. 5; in the wavelength interval of the color tristimulus value calculation, the average value of the spectral response data of the dark noise after the abnormal value is eliminated is combined>
Two wavelength points lambda corresponding to the maximum value of the first derivative value of
k And λ
k-1 The spectral response data are eliminated to obtain the average value of the spectral response data of the eliminated sample 2 to be detected>
Wherein, the
step 7 specifically comprises: averaging the rejected reference standard spectral response data by adopting a spectral smoothing method
The average value of the spectral response data of the rejected
sample 2 to be tested>
And the average of the rejected dark noise spectral response data ≥>
De-noising to obtain the average value of the de-noised reference standard spectral response data>
Average value of denoised spectral response data of the
sample 2 to be detected>
And spectrum of denoised dark noiseMean value of the response data->
Wherein, the
step 8 specifically comprises: in the visible light range, the wavelength interval is calculated by using the color tristimulus values as an interpolation interval, and the average value of the denoised reference standard spectral response data is calculated by adopting an interpolation algorithm
Average value of denoised spectral response data of the
sample 2 to be detected>
And the average of the spectral response data of the denoised dark noise ≥>
Converting to obtain the average value of the converted reference standard spectral response data in the same wavelength range and the same wavelength interval
The mean value of the converted spectral response data of the
sample 2 to be tested->
And an average value of the spectral response data of the converted dark noise>
In the color measurement platform and the spectrum preprocessing method for calculating the tristimulus color values according to the embodiments of the present invention, the average value of the denoised reference standard spectrum response data is calculated by using an interpolation algorithm
Average value of denoised spectral response data of the
sample 2 to be detected>
And the average of the spectral response data of the denoised dark noise ≥>
Converted mean value of the converted reference standard spectral response data in the wavelength range 380nm to 780nm with a wavelength interval of 5nm>
The mean value of the converted spectral response data of the
sample 2 to be tested->
And an average value of the spectral response data of the converted dark noise>
As shown in fig. 6.
Wherein, the
step 9 specifically comprises: based on the obtained average value of the converted reference standard spectral response data
The mean value of the converted spectral response data of the
sample 2 to be tested->
And the average value of the converted dark noise's spectral response data->
Calculating the spectral reflectivity rho of the sample to be measured
s (λ), shown below:
where ρ is
s (lambda) represents the spectral reflectance, rho, of the sample to be measured
r (λ) denotes the spectral reflectance of the reference standard, λ denotes the wavelength,
represents the mean value of the converted reference standard spectral response data, based on the measured value of the reference standard spectral response data>
Represents the mean value of the converted spectral response data of the sample to be examined, is determined>
An average of the spectral response data representing the converted dark noise.
Wherein, the step 10 specifically includes: according to the obtained spectral reflectivity rho of the sample to be measured s (lambda), calculating the color tristimulus value of the sample to be measured as follows:
wherein ρ
s (lambda) represents the spectral reflectance of the sample to be measured, S (lambda) represents the CIE specified relative spectral power distribution of the standard illuminant,
for the standard chromaticity observer data specified by CIE, Δ λ represents the wavelength interval, k represents the normalization coefficient, and λ represents the wavelength.
The color measurement platform and the spectrum preprocessing method for calculating the color tristimulus value, which are provided by the embodiment of the invention, repeat the steps 2 to 10, repeat the measurement on the reference standard, the sample 2 to be measured and the dark noise for four times, and calculate the X value, the Y value and the Z value of the color tristimulus value;
TABLE 3 calculation of X, Y and Z value comparisons of spectral response data before and after pretreatment
As can be seen from table 3, the standard deviation of the X value, the Y value, and the Z value calculated by the preprocessed spectral response data is significantly lower than the standard deviation of the X value, the Y value, and the Z value calculated by the original spectral response data before preprocessing, which indicates that the color measurement platform and the spectral preprocessing method for calculating the color tristimulus value can effectively eliminate the noise influence in the measurement process, and improve the measurement accuracy and repeatability.
According to the color measurement platform and the spectrum preprocessing method for calculating the color tristimulus value, the color measurement platform for calculating the color tristimulus value is set up by adopting the optical fiber light source 5, the reflection measurement bracket 1, the optical fiber spectrometer 6 and the computer 7 with spectrum acquisition and analysis software according to the color measurement geometrical conditions specified by CIE; determining the measurement parameters: the frequency of acquiring the spectral response data by the optical fiber spectrometer 6 is not less than 6, the optical fiber spectrometer 6 is adopted to measure reference standard spectral response data, the integration time of the reference standard spectral response data reaching the maximum is determined to be 155 milliseconds, 155 milliseconds are set as the integration time of the optical fiber spectrometer 6, the integration time of the optical fiber spectrometer 6 is the integration time of the reference standard spectral response data reaching the maximum, the spectral sampling wavelength range is 380nm-780nm, the spectral sampling wavelength interval is 0.5nm, and the spectral sampling wavelength interval is less than one tenth of the color tristimulus value calculation wavelength interval. And respectively measuring the reference standard, the sample 2 to be measured and the spectral response data of dark noise by adopting the color measuring platform for calculating the color tristimulus values. Determining standard deviation of spectral response data based on a single wavelength point and a criterion and a method for eliminating abnormal values of the spectral response data, calculating the standard deviation of the spectral response data measured for multiple times at each wavelength point, searching the abnormal wavelength points of the spectral response data according to the abnormal value criterion and the method, and eliminating the abnormal wavelength points. And calculating the average value of the reference standard after the abnormal value is eliminated, the sample 2 to be detected and the spectral response data of the dark noise. Calculating a reference standard, a first derivative of the average value of the spectral response data of the sample 2 to be detected and the dark noise, eliminating the reference standard, the average value of the spectral response data corresponding to the maximum value in the first derivative of the average value of the spectral response data of the sample 2 to be detected and the dark noise, denoising the eliminated reference standard and the average value of the spectral response data of the sample 2 to be detected and the dark noise by adopting a spectral smoothing method, converting the denoised reference standard and the average value of the spectral response data of the sample 2 to be detected and the dark noise into the converted reference standard with the same wavelength range and the same wavelength interval and the average value of the spectral response data of the sample 2 to be detected and the dark noise by adopting an interpolation algorithm, calculating the spectral reflectivity of the sample 2 to be detected according to the converted reference standard and the average value of the spectral response data of the sample 2 to be detected and the dark noise, and calculating the color tristimulus value of the sample 2 to be detected according to the spectral reflectivity of the sample 2 to be detected.
The color measurement platform and the spectrum preprocessing method for calculating the color tristimulus values in the embodiment of the invention improve the accuracy and the repeatability of the color measurement of the fiber spectrometer 6, can eliminate the spectrum abnormal peak value and the high-frequency random noise, and are suitable for preprocessing the spectrum data which has no obvious characteristic peak value and has a relatively gentle curve change trend.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.