A Design Method, System, Device and Storage Medium for a Filter

By optimizing the filter design, the channel imbalance problem of colorimeter when using CIE 1931 standard A light source is solved, the dynamic range of measurement is expanded, and a more reasonable channel stimulation value distribution is achieved.

CN120178506BActive Publication Date: 2025-08-01SUZHOU SEICHI INTELLIGENT EQUIPMENT TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510655299.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-21
Publication Date
2025-08-01
Estimated Expiration
2045-05-21

AI Technical Summary

Technical Problem

When using the CIE 1931 standard A light source, the X and Y channels photodetectors are prone to saturation, while the Z channel measurement space is not fully utilized, resulting in limited measurement dynamic range.

Method used

Design a filter, by minimizing the objective function, setting the spectral transmittance, stimulus amplitude and spectral matching error constraints, combined with physical constraints, optimize the filter design to improve channel imbalance and expand the measurement dynamic range.

Benefits of technology

It effectively alleviates the saturation problem of X and Y channels, makes full use of the measurement space of Z channels, and improves the measurement dynamic range of the colorimeter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120178506B_ABST
    Figure CN120178506B_ABST
Patent Text Reader

Abstract

The present application discloses a design method, system, device and storage medium of a filter for optimizing the measurement dynamic range of a colorimeter. The design method of the filter in the present application includes: aiming at minimizing the result of an objective function, setting the objective function according to the spectral transmittance of a target filter, where the target filter is an additional target filter different from the X filter, Y filter and Z filter of the CIE 1931 standard; setting a stimulus value amplitude constraint condition based on the original X-channel stimulus value, original Y-channel stimulus value and original Z-channel stimulus value; setting a spectral matching error constraint condition according to the spectral transmittance of the target filter, the spectral transmittance of the X filter, the spectral transmittance of the Y filter and the spectral transmittance of the Z filter; obtaining a physical constraint condition; solving the objective function according to the stimulus value amplitude constraint condition, spectral matching error constraint condition and physical constraint condition to obtain a solution result, and the solution result is used to design the target filter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of chromaticity measurement, and particularly to a design method, system, device and storage medium for a filter. Background Art

[0002] In the field of chromaticity measurement, the CIE 1931 XYZ color space is a key standard, which provides a reference basis for color quantization and reproduction. A common chromaticity meter uses a condenser lens to first input the optical signal to be measured into the system and converge it on the optical beam splitting module; then, through the optical beam splitting module, the optical signal is equally divided into 3 beams and projected onto the X, Y, and Z filters that meet the CIE 1931 standard respectively; after the 3 beams of light pass through the target filters respectively, 3 identical photodetectors are used for acquisition to obtain the color tristimulus values that meet the CIE 1931 XYZ color space, thereby realizing chromaticity measurement.

[0003] In the domestic and foreign chromaticity measurement fields, the standard A light source (Standard illuminant A) specified by the CIE (International Commission on Illumination) is commonly used as the detection light source for the brightness measurement range of the chromaticity meter. However, the spectral distribution of this light source is uneven. When using 3 beams of light from the same light source to pass through the above-mentioned X, Y, and Z filters, the stimulus values of the corresponding X channel and Y channel are on the high side, while the stimulus value of the Z channel is on the low side. As the brightness of the same light source continuously increases, the photodetectors of the X channel and Y channel reach the saturation threshold first, while the photodetector of the Z channel still has extra measurement space, thus limiting the measurement dynamic range of the chromaticity meter. Summary of the Invention

[0004] To solve the above technical problems, this application provides a design method, system, device and storage medium for a filter, which is used to optimize the measurement dynamic range of the chromaticity meter.

[0005] The technical solutions provided in this application are described below:

[0006] The first aspect of this application provides a design method for a filter, including:

[0007] Taking the result of minimizing the objective function as the goal, set the objective function according to the spectral transmittance of the target filter, where the target filter is an additional target filter different from the X filter, Y filter, and Z filter of the CIE 1931 standard;

[0008] Set the stimulus value amplitude constraint conditions based on the original X channel stimulus value, original Y channel stimulus value, and original Z channel stimulus value;

[0009] Set the spectral matching error constraint conditions according to the spectral transmittance of the target filter, the spectral transmittance of the X filter, the spectral transmittance of the Y filter, and the spectral transmittance of the Z filter;

[0010] Obtain the physical constraint conditions;

[0011] Solve the objective function according to the stimulus value amplitude constraint conditions, the spectral matching error constraint conditions, and the physical constraint conditions to obtain a solution result, and the solution result is used to design the target filter.

[0012] Optionally, the objective function includes:

[0013] ;

[0014] Among them, with the goal of minimizing the objective function J, T add (λ) is the spectral transmittance of the target filter, α is a weight coefficient, and 0.1 ≤ α ≤ 0.5.

[0015] Optionally, the stimulus value amplitude constraint conditions include:

[0016] X new ≤k X X0;

[0017] Y new ≤k Y Y0;

[0018] Z new ≥k Z Z0;

[0019] Among them, X new is the X-channel stimulus value obtained by superimposing the target filter and the X filter, X0 is the original X-channel stimulus value, Y new is the Y-channel stimulus value obtained by superimposing the target filter and the Y filter, Y0 is the original Y-channel stimulus value, Z new is the Z-channel stimulus value obtained by superimposing the target filter and the Z filter, Z0 is the original Z-channel stimulus value, 0.5 ≤ k X ≤0.8, 0.5 ≤ k Y ≤0.8, 0.9 ≤ k Z ≤0.98.

[0020] Optionally, before setting the stimulus value amplitude constraint conditions based on the original X-channel stimulus value, the original Y-channel stimulus value, and the original Z-channel stimulus value, it further includes:

[0021] Obtain the first calculation formula, and the first calculation formula is:

[0022] ;

[0023] Obtain the second calculation formula, and the second calculation formula is:

[0024] ;

[0025] Obtain the third calculation formula, and the third calculation formula is:

[0026] ;

[0027] wherein, X0 is the original X-channel stimulus value, x(λ) is the spectral transmittance of the X filter, Y0 is the original Y-channel stimulus value, y(λ) is the spectral transmittance of the Y filter, Z0 is the original Z-channel stimulus value, z(λ) is the spectral transmittance of the Z filter, and S A (λ) is the spectral transmittance of the standard A light source;

[0028] Calculate the original X-channel stimulus value according to the first calculation formula, calculate the original Y-channel stimulus value according to the second calculation formula, and calculate the original Z-channel stimulus value according to the third calculation formula.

[0029] Optionally, before setting the stimulus value amplitude constraint condition based on the original X-channel stimulus value, original Y-channel stimulus value, and original Z-channel stimulus value, it further includes:

[0030] Obtain the fourth calculation formula, and the fourth calculation formula is:

[0031] ;

[0032] Obtain the fifth calculation formula, and the fifth calculation formula is:

[0033] ;

[0034] Obtain the sixth calculation formula, and the sixth calculation formula is:

[0035] ;

[0036] wherein, X new is the X-channel stimulus value obtained by superimposing the target filter and the X filter, x(λ) is the spectral transmittance of the X filter, Y new is the Y-channel stimulus value obtained by superimposing the target filter and the Y filter, y(λ) is the spectral transmittance of the Y filter, Z new is the Z-channel stimulus value obtained by superimposing the target filter and the Z filter, z(λ) is the spectral transmittance of the Z filter, T add (λ) is the spectral transmittance of the target filter, and S A(λ) is the spectral transmittance of the standard A light source;

[0037] Calculate the X-channel stimulus value of the superposition of the target filter and the X filter according to the fourth calculation formula, calculate the Y-channel stimulus value of the superposition of the target filter and the Y filter according to the fifth calculation formula, and calculate the Z-channel stimulus value of the superposition of the target filter and the Z filter according to the sixth calculation formula.

[0038] Optionally, the spectral matching error constraint condition includes:

[0039] ;

[0040] where E th is the error threshold, and 0.005 ≤ E th ≤ 0.05, T add (λ) is the spectral transmittance of the target filter, is the maximum value normalization result of T add (λ).

[0041] Optionally, before solving the objective function according to the stimulus value amplitude constraint condition, the spectral matching error constraint condition and the physical constraint condition, it further includes:

[0042] Assign weights to the stimulus value amplitude constraint condition and the spectral matching error constraint condition respectively according to the preset weight rule.

[0043] The second aspect of the present application provides a filter design system, including:

[0044] An objective function unit, which is used to set an objective function according to the spectral transmittance of the target filter with the result of minimizing the objective function as the goal, and the target filter is an additional target filter different from the X filter, Y filter and Z filter of the CIE 1931 standard;

[0045] A first constraint condition unit, which is used to set a stimulus value amplitude constraint condition based on the original X-channel stimulus value, the original Y-channel stimulus value and the original Z-channel stimulus value;

[0046] A second constraint condition unit, which is used to set a spectral matching error constraint condition according to the spectral transmittance of the target filter, the spectral transmittance of the X filter, the spectral transmittance of the Y filter and the spectral transmittance of the Z filter;

[0047] A third constraint condition unit, which is used to obtain a physical constraint condition;

[0048] A solution unit, configured to solve the objective function according to the amplitude constraint condition of the stimulus value, the spectral matching error constraint condition, and the physical constraint condition, so as to obtain a solution result, where the solution result is used to design the target filter.

[0049] The third aspect of the present application provides a filter design device, where the design device includes:

[0050] A processor, a memory, an input / output unit, and a bus;

[0051] The processor is connected to the memory, the input / output unit, and the bus;

[0052] The memory stores a program, and the processor calls the program to execute the filter design method in the first aspect and any optional one of the first aspect.

[0053] The fourth aspect of the present application provides a computer-readable storage medium, where a program is stored on the computer-readable storage medium, and when the program is executed on a computer, it executes the filter design method in the first aspect and any optional one of the first aspect.

[0054] From the above technical solutions, it can be seen that the present application has the following advantages:

[0055] The present application provides a design method for a filter. First, aiming at minimizing the result of an objective function, an objective function is set according to the spectral transmittance of a target filter, where the target filter is an additional target filter different from the X filter, Y filter, and Z filter of the CIE 1931 standard; a stimulus value amplitude constraint condition is set based on the original X-channel stimulus value, original Y-channel stimulus value, and original Z-channel stimulus value; a spectral matching error constraint condition is set according to the spectral transmittance of the target filter, the spectral transmittance of the X filter, the spectral transmittance of the Y filter, and the spectral transmittance of the Z filter; a physical constraint condition is obtained; the objective function is solved according to the stimulus value amplitude constraint condition, spectral matching error constraint condition, and physical constraint condition to obtain a solution result, and the solution result is used to design the target filter. The design method of the present application aims to design an additional target filter for a colorimeter that is different from the existing X filter, Y filter, and Z filter. In order to make a targeted adjustment to the uneven spectral distribution of the light source, the objective function is first set with the goal of minimizing the result of the objective function. And during the process of designing the target filter, setting the stimulus value amplitude constraint condition based on the original channel stimulus values can ensure that the X- and Y-channel stimulus values decrease, avoiding their excessive values from causing the photodetector to saturate, and at the same time preventing the Z-channel stimulus value from decreasing significantly, making the stimulus values of each channel more reasonable and improving the measurement dynamic range; then, a spectral matching error constraint condition is set according to the 4 spectral transmittances of the target filter and the X filter, Y filter, and Z filter, and finally, the objective function is solved in combination with the physical constraint condition, and the obtained solution result is used to design the target filter, thereby improving the channel imbalance phenomenon caused by the light source problem, alleviating the saturation problems of the X-channel and Y-channel in the prior art, and being able to make full use of the measurement space of the Z-channel, effectively expanding the measurement dynamic range of the colorimeter. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0057] Figure 1 Schematic flowchart of an embodiment of the design method for the filter provided by the present application;

[0058] Figure 2 Schematic flowchart of another embodiment of the design method for the filter provided by the present application;

[0059] Figure 3 Schematic flowchart of another embodiment of the design method for the filter provided by the present application;

[0060] Figure 4Schematic structural diagram of an embodiment of the filter design system provided by this application;

[0061] Figure 5 Schematic structural diagram of an embodiment of the filter design device provided by this application. Detailed implementation manners

[0062] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of this application. However, those skilled in the art should clearly understand that this application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of this application.

[0063] It should be understood that when used in the specification of this application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

[0064] It should also be understood that the term "and / or" as used in the specification of this application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0065] As used in the specification of this application, the term "if" can be interpreted as "when", "once", "in response to determining", or "in response to detecting" depending on the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once determined", "in response to determining", "once [the described condition or event] is detected", or "in response to detecting [the described condition or event]" depending on the context.

[0066] In addition, in the description of the specification of this application, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0067] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that specific features, structures or characteristics described in connection with that embodiment are included in one or more embodiments of this application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments" etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0068] The technical solutions in this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only some of the embodiments of this application, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts shall fall within the scope of protection of this application.

[0069] The method of this application can be applied to a server, a device, a terminal or other devices with logical processing capabilities. In this regard, this application does not make any limitations. For the convenience of description, the execution entity is taken as an example of a terminal for description below.

[0070] Please refer to Figure 1 , Figure 1 which is an embodiment of the design method of the optical filter provided by this application. The design method includes:

[0071] 101. Aiming at minimizing the result of the objective function, set the objective function according to the spectral transmittance of the target optical filter, where the target optical filter is an additional target optical filter different from the X optical filter, Y optical filter and Z optical filter of the CIE 1931 standard;

[0072] In this embodiment, considering the actual physical conditions, such as the feasibility of the target filter manufacturing process, cost, and other factors, the characteristics that the spectral transmittance curve should possess are determined. An ideal spectral transmittance curve should be smooth and continuous without mutation points because mutation points are difficult to achieve in actual manufacturing and will increase costs and process difficulties. At the same time, the change rate of the transmittance should not be too high, otherwise it will also cause great difficulties in manufacturing. Based on the actual physical property requirements of the spectral transmittance of the above-mentioned target filter, the spectral transmittance of a target filter is defined as a variable, and an objective function is constructed. The objective function consists of two parts. The first part is a penalty term for the second-order differential of the transmittance curve. By penalizing the second-order differential, the smoothness of the transmittance curve can be ensured, and discontinuous situations such as sharp bends can be avoided. The second part is a penalty term for the first-order differential. By setting a weight coefficient (the specific value of this weight coefficient is set according to actual process requirements), the first-order differential is penalized to control the change rate of the transmittance so that the change of the transmittance will not be too drastic. In this way, the process of setting the objective function according to the spectral transmittance of the additional target filter is completed. The goal is to find the optimal spectral transmittance curve by minimizing this objective function.

[0073] Specifically, the objective function includes:

[0074] ;

[0075] Among them, with the goal of minimizing the objective function J, T add (λ) is the variable defined to represent the spectral transmittance of the target filter, α is the weight coefficient, and 0.1 ≤ α ≤ 0.5. And is a penalty term for the second-order differential of the transmittance curve, used to ensure the smoothness of the transmittance curve; is a penalty term for the first-order differential, used to control the change rate of the transmittance.

[0076] 102. Set the stimulus value amplitude constraint conditions based on the original X-channel stimulus value, the original Y-channel stimulus value, and the original Z-channel stimulus value;

[0077] In this embodiment, first, the original stimulus values corresponding to each channel are obtained after a standard A light source passes through an X filter, a Y filter, and a Z filter of the CIE 1931 standard without adding the target filter, that is, the original X-channel stimulus value, the original Y-channel stimulus value, and the original Z-channel stimulus value. To achieve selective attenuation, that is, to reduce the stimulus values of the X channel and the Y channel while ensuring that the stimulus value of the Z channel does not decrease significantly, a stimulus value amplitude constraint condition is set. Specifically, coefficients corresponding to the 3 channels are introduced, and a mathematical relationship is established between the 3 coefficients and the original stimulus values to form a constraint condition. The constraint condition set in this way can ensure that after adding the additional target filter, the stimulus values of the X channel and the Y channel can decrease as expected, while the stimulus value of the Z channel remains at a reasonable level and does not decrease significantly.

[0078] Specifically, the stimulus value amplitude constraint condition includes: X new ≤k X X0, Y new ≤k Y Y0 and Z new ≥k Z Z0, where X new is the X-channel stimulus value after the target filter and the X filter are superimposed (i.e., light first passes through the target filter and then through the X filter), X0 is the original X-channel stimulus value, Y new is the Y-channel stimulus value after the target filter and the Y filter are superimposed (i.e., light first passes through the target filter and then through the Y filter), Y0 is the original Y-channel stimulus value, Z new is the Z-channel stimulus value after the target filter and the Z filter are superimposed (i.e., light first passes through the target filter and then through the Z filter), Z0 is the original Z-channel stimulus value, 0.5 ≤ k X ≤ 0.8, 0.5 ≤ k Y ≤ 0.8, 0.9 ≤ k Z ≤ 0.98. Respectively, the product of k X and X0, the product of k Y and Y0 are used as the maximum thresholds of X new , Y new , and the product of k Z and Z0 is used as the minimum threshold of Z new , thereby restricting the stimulus value amplitudes of the 3 new channels formed after adding the target filter.

[0079] 103. Set a spectral matching error constraint condition according to the spectral transmittance of the target filter, the spectral transmittance of the X filter, the spectral transmittance of the Y filter, and the spectral transmittance of the Z filter;

[0080] In this embodiment, the spectral transmittances of the X filter, Y filter, and Z filter of the CIE 1931 standard are obtained and combined with the variables characterizing the spectral transmittance of the target filter defined in step 101. To ensure that after adding the target filter, the transmittances of the three channels still meet the requirements of the CIE CMF (Color Matching Function) and avoid an increase in color measurement errors caused by the addition of the additional target filter, a spectral matching error constraint condition should be set. Among them, an error threshold (the value range of this error threshold is set according to actual process requirements) is also introduced, and the relevant data is normalized (for example, the maximum value of the spectral transmittance of the target filter is normalized). A mathematical relationship is established through these parameters and the processed spectral transmittance data to form the spectral matching error constraint condition. This can ensure the accuracy of color measurement while meeting other conditions.

[0081] Specifically, the spectral matching error constraint condition includes:

[0082] ;

[0083] Among them, E th is the error threshold, and 0.005 ≤ E th ≤ 0.05, T add (λ) is the spectral transmittance of the target filter, is the normalized result of the maximum value of T add (λ), x(λ) is the spectral transmittance of the X filter, y(λ) is the spectral transmittance of the Y filter, and z(λ) is the spectral transmittance of the Z filter.

[0084] 104. Obtain the physical constraint condition;

[0085] In this embodiment, since the spectral transmittance is physically limited and its value must be between 0 and 1. Because a transmittance of 0 means that the light is completely blocked, and a transmittance of 1 means that the light is completely transmitted, exceeding this range does not conform to the objective physical reality. Therefore, the value of the spectral transmittance between 0 and 1 is obtained as the physical constraint condition and used in the subsequent solution process of the objective function to ensure that the designed target filter is physically feasible. Specifically, the physical constraint condition includes: 0 ≤ T add (λ) ≤ 1, where 380 ≤ λ ≤ 780.

[0086] 105. Solve the objective function according to the stimulus value amplitude constraint condition, spectral matching error constraint condition, and physical constraint condition to obtain the solution result, and the solution result is used to design the target filter.

[0087] In this embodiment, the stimulus value amplitude constraint condition, spectral matching error constraint condition, and physical constraint condition set in the previous steps are integrated to form a complete set of constraint conditions. And a common optimization algorithm with constraint conditions, such as the sequential quadratic programming (SQP) algorithm, is used to solve the objective function under these constraint conditions. Before solving the objective function, weights can also be added to different constraint conditions as needed. For example, a weight coefficient ω is assigned to the stimulus value amplitude constraint condition corresponding to the channel where the target filter is superimposed with the X filter. x A weight coefficient ω is assigned to the stimulus value amplitude constraint condition corresponding to the channel where the target filter is superimposed with the Y filter. y A weight coefficient ω is assigned to the stimulus value amplitude constraint condition corresponding to the channel where the target filter is superimposed with the Z filter. z And a weight coefficient ω is assigned to the matching error constraint condition. k And ω x 、ω y and ω z can all have a value range of 0.5 - 0.9, and the value range of ω k is 0.2 - 0.6, so as to adjust the importance of each constraint condition in the solving process. The result obtained through solving, that is, the optimized spectral transmittance curve, is used to design the target filter, guiding the specific manufacturing and parameter setting of the target filter to achieve the purpose of improving the measurement performance of the colorimeter as expected.

[0088] It should be noted that the target filter designed according to the design method in steps 101 - 105 will be applied to the colorimeter. Specifically, in addition to the target filter, the colorimeter also includes a condenser lens, a light splitting module, an X filter, a Y filter, a Z filter, an X-channel photodetector, a Y-channel photodetector, and a Z-channel photodetector. The condenser lens is set at one end inside the colorimeter; the X filter, Y filter, and Z filter are arranged in parallel to form a three-channel filter module; the X-channel photodetector, Y-channel photodetector, and Z-channel photodetector are arranged in parallel to form a three-channel detection module; the position of the X filter corresponds to that of the X-channel photodetector, the position of the Y filter corresponds to that of the Y-channel photodetector, and the position of the Z filter corresponds to that of the Z-channel photodetector; the light splitting module, the target filter, the three-channel filter module, and the three-channel detection module are sequentially arranged inside the colorimeter and on the side of the outlet of the condenser lens. The condenser lens is used to concentrate and collect the light signal to be measured and output it, and the light splitting module is used to split the light output by the condenser lens into 3 optical paths. The 3 optical paths first pass through the target filter, then pass through the X filter, Y filter, and Z filter respectively, and finally the 3 beams of light are received and measured by the X-channel photodetector, Y-channel photodetector, and Z-channel photodetector respectively.

[0089] The design method of the filter of the present invention first aims at minimizing the result of the objective function, sets the objective function according to the spectral transmittance of the target filter, and the target filter is an additional target filter different from the X filter, Y filter and Z filter of the CIE 1931 standard; sets the stimulus value amplitude constraint conditions based on the original X-channel stimulus value, original Y-channel stimulus value and original Z-channel stimulus value; sets the spectral matching error constraint conditions according to the spectral transmittance of the target filter, the spectral transmittance of the X filter, the spectral transmittance of the Y filter and the spectral transmittance of the Z filter; obtains the physical constraint conditions; solves the objective function according to the stimulus value amplitude constraint conditions, spectral matching error constraint conditions and physical constraint conditions, and obtains the solution result, which is used to design the target filter. The design method of the present application aims to design an additional target filter for the colorimeter that is different from the existing X filter, Y filter and Z filter. In order to make a targeted adjustment to the uneven spectral distribution of the light source, the objective function is first set with the result of minimizing the objective function as the goal. And in the process of designing the target filter, setting the stimulus value amplitude constraint conditions based on the original channel stimulus values can ensure that the stimulus values of the X and Y channels decrease, avoid their excessive values causing saturation of the photodetector, and at the same time prevent the stimulus value of the Z channel from decreasing significantly, making the stimulus values of each channel more reasonable and improving the measurement dynamic range; then, according to the spectral transmittances of the target filter and the X filter, Y filter and Z filter, the spectral matching error constraint conditions are set. Finally, the objective function is solved in combination with the physical constraint conditions, and the obtained solution result is used to design the target filter, thereby improving the channel imbalance phenomenon caused by the light source problem, alleviating the saturation problems of the X channel and Y channel in the prior art, and making full use of the measurement space of the Z channel to effectively expand the measurement dynamic range of the colorimeter.

[0090] Referring to Figure 2 , according to some embodiments of the present invention, before setting the stimulus value amplitude constraint conditions based on the original X-channel stimulus value, original Y-channel stimulus value and original Z-channel stimulus value in step 102, the original X-channel stimulus value, original Y-channel stimulus value and original Z-channel stimulus value should also be obtained, which may specifically include, but are not limited to the following:

[0091] 201. Obtain the first calculation formula, and calculate the original X-channel stimulus value according to the first calculation formula;

[0092] In this embodiment, the first calculation formula includes: , where X0 is the original X-channel stimulus value, and x(λ) is the spectral transmittance of the X filter. It should be noted that S A (λ) is the spectral transmittance of the standard A light source. When calculating, the spectral transmittance S of the standard A light source at each wavelength λ A(λ) is multiplied by the spectral transmittance x(λ) of the X filter at the corresponding wavelength, and then the products at all wavelengths are accumulated. The resulting value is the original X-channel stimulus value X0. This process takes into account the spectral characteristics of the standard A light source and the light transmission ability of the X filter for lights of different wavelengths, and obtains the total light stimulus received by the X channel through integral operation.

[0093] 202. Obtain the second calculation formula, and calculate the original Y-channel stimulus value according to the second calculation formula;

[0094] In this embodiment, the second calculation formula includes: , where Y0 is the original Y-channel stimulus value, and y(λ) is the spectral transmittance of the Y filter. It should be noted that S A (λ) is the spectral transmittance of the standard A light source. During calculation, the spectral transmittance S A (λ) of the standard A light source at each wavelength λ is multiplied by the spectral transmittance y(λ) of the Y filter at the corresponding wavelength, and then the products at all wavelengths are accumulated. The resulting value is the original Y-channel stimulus value Y0. This process takes into account the spectral characteristics of the standard A light source and the light transmission ability of the Y filter for lights of different wavelengths, and obtains the total light stimulus received by the Y channel through integral operation.

[0095] 203. Obtain the third calculation formula, and calculate the original Z-channel stimulus value according to the third calculation formula.

[0096] In this embodiment, the third calculation formula includes: , where Z0 is the original Z-channel stimulus value, and z(λ) is the spectral transmittance of the Z filter. It should be noted that S A (λ) is the spectral transmittance of the standard A light source. During calculation, the spectral transmittance S A (λ) of the standard A light source at each wavelength λ is multiplied by the spectral transmittance z(λ) of the Z filter at the corresponding wavelength, and then the products at all wavelengths are accumulated. The resulting value is the original Z-channel stimulus value Z0. This process takes into account the spectral characteristics of the standard A light source and the light transmission ability of the Z filter for lights of different wavelengths, and obtains the total light stimulus received by the Z channel through integral operation.

[0097] Referring to Figure 3 , according to some embodiments of the present invention, before setting the stimulus value amplitude constraint condition based on the original X-channel stimulus value, the original Y-channel stimulus value, and the original Z-channel stimulus value in step 102, it is also necessary to obtain the X-channel stimulus value X new of the target filter and the X filter superimposed (i.e., light first passes through the target filter and then through the X filter), and the Y-channel stimulus value Y new, and the Z-channel stimulation value Z when the target filter and the Z filter are superimposed (i.e., light first passes through the target filter and then through the Z filter) new , specifically, it may include, but is not limited to, the following:

[0098] 301. Obtain the fourth calculation formula, and calculate the X-channel stimulation value of the superposition of the target filter and the X filter according to the fourth calculation formula;

[0099] In this embodiment, the fourth calculation formula includes: , where X new is the X-channel stimulation value of the superposition of the target filter and the X filter, and x(λ) is the spectral transmittance of the X filter. It should be noted that T add (λ) is a variable defined to represent the spectral transmittance of the target filter, and S A (λ) is the spectral transmittance of the standard A light source. During the calculation, multiply the spectral transmittance S A (λ) of the standard A light source at each wavelength λ, the spectral transmittance T add (λ) of the target filter to be designed, and the spectral transmittance x(λ) of the standard A light source only at the corresponding wavelength of the X filter, and then accumulate the products at all wavelengths. The result obtained is the X-channel stimulation value X after the superposition of the target filter and the X filter new . This process takes into account the spectral characteristics of the standard A light source, as well as the light transmission capabilities of the target filter and the X filter for light of different wavelengths. By performing an accumulation operation, the total amount of light stimulation received by the new X channel is obtained, thereby quantifying the degree of light stimulation received by the X channel in this superposition case.

[0100] 302. Obtain the fifth calculation formula, and calculate the Y-channel stimulation value of the superposition of the target filter and the Y filter according to the fifth calculation formula;

[0101] In this embodiment, the fifth calculation formula includes: , where Y new is the Y-channel stimulation value of the superposition of the target filter and the Y filter, and y(λ) is the spectral transmittance of the Y filter. It should be noted that T add (λ) is a variable defined to represent the spectral transmittance of the target filter, and S A (λ) is the spectral transmittance of the standard A light source. During the calculation, multiply the spectral transmittance S A (λ) of the standard A light source at each wavelength λ, the spectral transmittance T add (λ) of the target filter to be designed, and the spectral transmittance y(λ) of the standard A light source only at the corresponding wavelength of the Y filter, and then accumulate the products at all wavelengths. The result obtained is the Y-channel stimulation value Y after the superposition of the target filter and the Y filter newThis process takes into account the spectral characteristics of the standard A light source, as well as the light transmission capabilities of the target filter and the Y filter for lights of different wavelengths. By performing an accumulation operation, the total amount of light stimuli received by the new Y channel is obtained, thereby quantifying the degree of light stimuli received by the Y channel in this superimposed situation.

[0102] 303. Obtain the sixth calculation formula, and calculate the Z-channel stimulus value of the superposition of the target filter and the Z filter according to the sixth calculation formula.

[0103] In this embodiment, the sixth calculation formula includes: , where Z new is the Z-channel stimulus value of the superposition of the target filter and the Z filter, and z(λ) is the spectral transmittance of the Z filter. It should be noted that T add (λ) is a variable defined to represent the spectral transmittance of the target filter, and S A (λ) is the spectral transmittance of the standard A light source. During the calculation, multiply the spectral transmittance S A (λ) of the standard A light source at each wavelength λ, the spectral transmittance T add (λ) of the target filter to be designed, and the spectral transmittance z(λ) of the standard A light source only at the corresponding wavelength of the Z filter, and then accumulate the products at all wavelengths. The result obtained is the Z-channel stimulus value Z new of the superposition of the target filter and the Z filter. This process takes into account the spectral characteristics of the standard A light source, as well as the light transmission capabilities of the target filter and the Z filter for lights of different wavelengths. By performing an accumulation operation, the total amount of light stimuli received by the new Z channel is obtained, thereby quantifying the degree of light stimuli received by the Z channel in this superimposed situation.

[0104] The above embodiments illustrate the design method of the filter provided by the present application. Next, the design system, device, and storage medium of the filter provided by the present application will be described:

[0105] Please refer to Figure 4 , an embodiment of the design system of the filter provided by the present application is provided. The design system includes:

[0106] A target function unit 401, which is used to set a target function based on the spectral transmittance of the target filter with the goal of minimizing the result of the target function. The target filter is an additional target filter different from the X filter, Y filter, and Z filter of the CIE 1931 standard;

[0107] A first constraint condition unit 402, which is used to set a stimulus value amplitude constraint condition based on the original X-channel stimulus value, original Y-channel stimulus value, and original Z-channel stimulus value;

[0108] The second constraint condition unit 403 is configured to set a spectral matching error constraint condition according to the spectral transmittance of the target filter, the spectral transmittance of the X filter, the spectral transmittance of the Y filter, and the spectral transmittance of the Z filter;

[0109] The third constraint condition unit 404 is configured to obtain a physical constraint condition;

[0110] The solving unit 405 is configured to solve an objective function according to the stimulus value amplitude constraint condition, the spectral matching error constraint condition, and the physical constraint condition to obtain a solving result, and the solving result is used to design the target filter.

[0111] Optionally, the objective function includes:

[0112] ;

[0113] Among them, with the goal of minimizing the objective function J, T add (λ) is the spectral transmittance of the target filter, α is a weight coefficient, and 0.1 ≤ α ≤ 0.5.

[0114] Optionally, the stimulus value amplitude constraint condition includes:

[0115] X new ≤k X X0;

[0116] Y new ≤k Y Y0;

[0117] Z new ≥k Z Z0;

[0118] Among them, X new is the X-channel stimulus value obtained by superimposing the target filter and the X filter, X0 is the original X-channel stimulus value, Y new is the Y-channel stimulus value obtained by superimposing the target filter and the Y filter, Y0 is the original Y-channel stimulus value, Z new is the Z-channel stimulus value obtained by superimposing the target filter and the Z filter, Z0 is the original Z-channel stimulus value, 0.5 ≤ k X ≤0.8, 0.5 ≤ k Y ≤0.8, 0.9 ≤ k Z ≤0.98.

[0119] Optionally, before the first constraint condition unit 402, it further includes:

[0120] The first calculation unit 406 is configured to obtain a first calculation formula, and the first calculation formula is:

[0121] ;

[0122] The second calculation unit 407 is configured to obtain a second calculation formula, and the second calculation formula is:

[0123] ;

[0124] The third calculation unit 408 is configured to obtain a third calculation formula, and the third calculation formula is:

[0125] ;

[0126] where X0 is the original X-channel stimulus value, x(λ) is the spectral transmittance of the X filter, Y0 is the original Y-channel stimulus value, y(λ) is the spectral transmittance of the Y filter, Z0 is the original Z-channel stimulus value, z(λ) is the spectral transmittance of the Z filter, and S A (λ) is the spectral transmittance of the standard A light source;

[0127] The original channel stimulus value unit 409 is configured to calculate the original X-channel stimulus value according to the first calculation formula, calculate the original Y-channel stimulus value according to the second calculation formula, and calculate the original Z-channel stimulus value according to the third calculation formula.

[0128] Optionally, before the first constraint condition unit 402, it further includes:

[0129] The fourth calculation unit 410 is configured to obtain a fourth calculation formula, and the fourth calculation formula is:

[0130] ;

[0131] The fifth calculation unit 411 is configured to obtain a fifth calculation formula, and the fifth calculation formula is:

[0132] ;

[0133] The sixth calculation unit 412 is configured to obtain a sixth calculation formula, and the sixth calculation formula is:

[0134] ;

[0135] where X new is the X-channel stimulus value of the superposition of the target filter and the X filter, x(λ) is the spectral transmittance of the X filter, Y new is the Y-channel stimulus value of the superposition of the target filter and the Y filter, y(λ) is the spectral transmittance of the Y filter, Z new is the Z-channel stimulus value of the superposition of the target filter and the Z filter, z(λ) is the spectral transmittance of the Z filter, T add (λ) is the spectral transmittance of the target filter, and S A (λ) is the spectral transmittance of the standard A light source;

[0136] A new channel stimulation value unit 413 is added, which is used to calculate the X-channel stimulation value of the superimposition of the target filter and the X filter according to the fourth calculation formula, calculate the Y-channel stimulation value of the superimposition of the target filter and the Y filter according to the fifth calculation formula, and calculate the Z-channel stimulation value of the superimposition of the target filter and the Z filter according to the sixth calculation formula.

[0137] Optionally, the spectral matching error constraint condition includes:

[0138] ;

[0139] wherein, E th is the error threshold, and 0.005 ≤ E th ≤ 0.05, T add (λ) is the spectral transmittance of the target filter, is the maximum value normalization result of T add (λ), x(λ) is the spectral transmittance of the X filter, y(λ) is the spectral transmittance of the Y filter, and z(λ) is the spectral transmittance of the Z filter.

[0140] Optionally, before the solving unit 405, it further includes:

[0141] A weight unit 414 is used to assign weights to the stimulation value amplitude constraint condition and the spectral matching error constraint condition respectively according to the preset weight rule.

[0142] The present application also provides a filter design device. Please refer to Figure 5 , and the filter design device includes:

[0143] A processor 501, a memory 502, an input / output unit 503, and a bus 504;

[0144] The processor 501 is connected to the memory 502, the input / output unit 503, and the bus 504;

[0145] The memory 502 stores a program, and the processor 501 calls the program to execute the filter design method as shown in Figure 1 , Figure 2 or Figure 3 the embodiments.

[0146] The present application also relates to a computer-readable storage medium. A program is stored on the computer-readable storage medium. When the program runs on a computer, the computer is enabled to execute the filter design method as shown in Figure 1 , Figure 2 or Figure 3 the embodiments.

[0147] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0148] In several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0149] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0150] In addition, in each embodiment of the present application, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0151] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, read-only memory), random access memories (RAM, random access memory), magnetic disks, or optical discs that can store program codes.

Claims

1. A design method of a filter, characterized in that, The design method includes: Aiming at minimizing the result of the objective function, setting the objective function according to the spectral transmittance of the target filter, where the target filter is an additional target filter applied to a colorimeter and different from the X filter, Y filter, and Z filter of the CIE 1931 standard; Set the stimulus value amplitude constraint conditions based on the original X-channel stimulus value, the original Y-channel stimulus value, and the original Z-channel stimulus value. The stimulus value amplitude constraint conditions include: X new ≤k X X0; Y new ≤k Y Y0; Z new ≥k Z Z0; where X new is the X-channel stimulus value of the superposition of the target filter and the X filter, X0 is the original X-channel stimulus value, Y new is the Y-channel stimulus value of the superposition of the target filter and the Y filter, Y0 is the original Y-channel stimulus value, Z new is the Z-channel stimulus value of the superposition of the target filter and the Z filter, Z0 is the original Z-channel stimulus value, 0.5 ≤ k X ≤ 0.8, 0.5 ≤ k Y ≤ 0.8, 0.9 ≤ k Z ≤ 0.98; Setting spectral matching error constraint conditions according to the spectral transmittance of the target filter, the spectral transmittance of the X filter, the spectral transmittance of the Y filter, and the spectral transmittance of the Z filter; Obtain physical constraint conditions, where the physical constraint conditions include: 0 ≤ T add (λ) ≤ 1, where 380 ≤ λ ≤ 780, and T add (λ) is the spectral transmittance of the target filter; Solving the objective function according to the stimulus value amplitude constraint conditions, the spectral matching error constraint conditions, and the physical constraint conditions to obtain a solution result, where the solution result is used to design the target filter.

2. According to the design method described in claim 1, characterized in that, The objective function includes: ; Among them, with the goal of minimizing the objective function J, T add (λ) is the spectral transmittance of the target filter, α is the weight coefficient, and 0.1 ≤ α ≤ 0.

5.

3. The design method according to claim 1, wherein, Before setting the stimulus value amplitude constraint conditions based on the original X-channel stimulus value, original Y-channel stimulus value, and original Z-channel stimulus value, it further includes: Obtaining a first calculation formula, where the first calculation formula is: ; Obtaining a second calculation formula, where the second calculation formula is: ; Obtaining a third calculation formula, where the third calculation formula is: ; Wherein, X0 is the original X-channel stimulus value, x(λ) is the spectral transmittance of the X filter, Y0 is the original Y-channel stimulus value, y(λ) is the spectral transmittance of the Y filter, Z0 is the original Z-channel stimulus value, z(λ) is the spectral transmittance of the Z filter, and SA(λ) is the spectral transmittance of the standard A light source; Calculating the original X-channel stimulus value according to the first calculation formula, calculating the original Y-channel stimulus value according to the second calculation formula, and calculating the original Z-channel stimulus value according to the third calculation formula.

4. The design method according to claim 1, wherein Before setting the stimulus value amplitude constraint conditions based on the original X-channel stimulus value, original Y-channel stimulus value, and original Z-channel stimulus value, it further includes: Obtaining a fourth calculation formula, where the fourth calculation formula is: ; Obtaining a fifth calculation formula, where the fifth calculation formula is: ; Obtaining a sixth calculation formula, where the sixth calculation formula is: ; Among them, X new is the X-channel stimulation value of the superposition of the target filter and the X filter, x(λ) is the spectral transmittance of the X filter, Y new is the Y-channel stimulation value of the superposition of the target filter and the Y filter, y(λ) is the spectral transmittance of the Y filter, Z new is the Z-channel stimulation value of the superposition of the target filter and the Z filter, z(λ) is the spectral transmittance of the Z filter, T add (λ) is the spectral transmittance of the target filter, S A (λ) is the spectral transmittance of the standard A light source; Calculating the X-channel stimulus value of the superposition of the target filter and the X filter according to the fourth calculation formula, calculating the Y-channel stimulus value of the superposition of the target filter and the Y filter according to the fifth calculation formula, and calculating the Z-channel stimulus value of the superposition of the target filter and the Z filter according to the sixth calculation formula.

5. The design method according to claim 1, characterized in that, The spectral matching error constraint conditions include: ; where E th is the error threshold, and 0.005 ≤ E th ≤ 0.05, T add (λ) is the spectral transmittance of the target filter, is the maximum normalization result of T add (λ), x(λ) is the spectral transmittance of the X filter, y(λ) is the spectral transmittance of the Y filter, and z(λ) is the spectral transmittance of the Z filter.

6. The design method according to any one of claims 1-5, characterized in that, Before solving the objective function according to the stimulus value amplitude constraint conditions, the spectral matching error constraint conditions, and the physical constraint conditions, it further includes: Allocating weights to the stimulus value amplitude constraint conditions and the spectral matching error constraint conditions respectively according to a preset weight rule.

7. A design system for a filter, characterized in that, The design system includes: An objective function unit, which aims at minimizing the result of the objective function and sets the objective function according to the spectral transmittance of the target filter, where the target filter is an additional target filter different from the X filter, Y filter, and Z filter of the CIE 1931 standard; The first constraint condition unit is used to set a stimulus value amplitude constraint condition based on the original X-channel stimulus value, the original Y-channel stimulus value, and the original Z-channel stimulus value. The stimulus value amplitude constraint condition includes: X new ≤k X X0; Y new ≤k Y Y0; Z new ≥k Z Z0; where X new is the X-channel stimulus value of the superposition of the target filter and the X filter, X0 is the original X-channel stimulus value, Y new is the Y-channel stimulus value of the superposition of the target filter and the Y filter, Y0 is the original Y-channel stimulus value, Z new is the Z-channel stimulus value of the superposition of the target filter and the Z filter, Z0 is the original Z-channel stimulus value, 0.5 ≤ k X ≤ 0.8, 0.5 ≤ k Y ≤ 0.8, 0.9 ≤ k Z ≤ 0.98; A second constraint condition unit for setting a spectral matching error constraint condition according to the spectral transmittance of the target filter, the spectral transmittance of the X filter, the spectral transmittance of the Y filter, and the spectral transmittance of the Z filter; The third constraint condition unit is used to obtain physical constraint conditions, and the physical constraint conditions include: 0 ≤ T add (λ) ≤ 1, where 380 ≤ λ ≤ 780, and T add (λ) is the spectral transmittance of the target filter; A solving unit for solving the objective function according to the stimulus value amplitude constraint condition, the spectral matching error constraint condition, and the physical constraint condition to obtain a solving result, where the solving result is used to design the target filter.

8. A design device for a filter, characterized in that, The design device includes: A processor, a memory, an input / output unit, and a bus; The processor is connected to the memory, the input / output unit, and the bus; The memory stores a program, and the processor calls the program to execute the filter design method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, A program is stored on the computer-readable storage medium, and when the program is executed on a computer, it executes the filter design method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Industrial camera correction method and system

    CN108347600A

  • Optical path compensation method applied to chromaticity camera and related device

    CN118363169A