CN102393965B - A method for color correction of colorimeter by using tetrahedron interpolation method - Google Patents
A method for color correction of colorimeter by using tetrahedron interpolation method Download PDFInfo
- Publication number
- CN102393965B CN102393965B CN201110156725.6A CN201110156725A CN102393965B CN 102393965 B CN102393965 B CN 102393965B CN 201110156725 A CN201110156725 A CN 201110156725A CN 102393965 B CN102393965 B CN 102393965B
- Authority
- CN
- China
- Prior art keywords
- tetrahedron
- point
- centerdot
- color
- interpolation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000012937 correction Methods 0.000 title claims abstract description 10
- 238000003384 imaging method Methods 0.000 claims abstract description 3
- 238000013507 mapping Methods 0.000 claims abstract description 3
- 238000004364 calculation method Methods 0.000 claims description 11
- 238000012417 linear regression Methods 0.000 claims description 6
- 239000011159 matrix material Substances 0.000 claims description 4
- 239000003086 colorant Substances 0.000 claims description 3
- 238000005286 illumination Methods 0.000 claims description 3
- 238000002310 reflectometry Methods 0.000 claims 1
- 238000004458 analytical method Methods 0.000 abstract description 6
- 238000005259 measurement Methods 0.000 abstract description 4
- 238000000691 measurement method Methods 0.000 abstract 1
- 238000007639 printing Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 238000004043 dyeing Methods 0.000 description 2
- 239000004033 plastic Substances 0.000 description 2
- 229920003023 plastic Polymers 0.000 description 2
- 238000005507 spraying Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Images
Landscapes
- Spectrometry And Color Measurement (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域 technical field
一种利用四面体插值法实现测色色差计颜色校正的方法A method for color correction of colorimeter by using tetrahedron interpolation method
背景技术 Background technique
塑胶、喷涂、设计、印刷、服装、印染等行业需要对颜色进行尽可能精准的测量,以满足高品质精准选色、配色和定色的需求。Industries such as plastics, spraying, design, printing, clothing, and printing and dyeing need to measure colors as accurately as possible to meet the needs of high-quality and accurate color selection, color matching and color fixing.
社会上现有的色差计虽然可以基本上满足上述行业对颜色进行基本测定的要求,但是,现有技术对色差计本身颜色测定校正的方法不够精准,速度也比较慢,导致色差计本身存有基准误差,不能满足相关行业用其进行高品质精准选色、配色和定色的需求。Although the existing color difference meters in the society can basically meet the requirements of the above-mentioned industries for basic color measurement, the existing technology is not accurate enough to measure and correct the color of the color difference meter itself, and the speed is relatively slow, resulting in the color difference meter itself. The benchmark error cannot meet the needs of related industries for high-quality and accurate color selection, color matching and color fixing.
发明内容 Contents of the invention
本发明的目的是在普通四面体插值算法的基础上,设计一种新的四面体插值算法,并利用该算法对基于RGB三色分析的测色色差计进行颜色校正,有效提高对色差计颜色校正的精度与计算速度,以满足塑胶、喷涂、设计、印刷、服装、印染等行业高品质精准选色、配色和定色的需求。The purpose of the present invention is to design a new tetrahedron interpolation algorithm on the basis of the common tetrahedron interpolation algorithm, and use this algorithm to carry out color correction to the color measuring color difference meter based on the RGB three-color analysis, effectively improve the accuracy of the color difference meter. Calibration accuracy and calculation speed to meet the needs of high-quality and accurate color selection, color matching and color fixing in industries such as plastics, spraying, design, printing, clothing, and printing and dyeing.
在基于RGB三色分析的测色色差计中,为了实现颜色交流,必须把仪器条件下测得的颜色值,映射到一种与设备无关的颜色空间内,这一过程称之为颜色校正。In the color difference meter based on RGB three-color analysis, in order to realize color communication, the color values measured under the instrument conditions must be mapped to a device-independent color space. This process is called color correction.
为了解决基于RGB三色分析的测色色差计中的颜色校正不够精准和计算速度慢的问题,本发明的方法是:利用三维Delaunay算法对仪器测得的基色空间进行四面体剖分,根据输入点与所在四面体的位置关系,实现插值计算,进行快速、精准的颜色校正。In order to solve the problem of inaccurate color correction and slow calculation speed in the color difference meter based on RGB three-color analysis, the method of the present invention is: use the three-dimensional Delaunay algorithm to tetrahedralize the primary color space measured by the instrument, according to the input The position relationship between the point and the tetrahedron where it is located realizes the interpolation calculation and performs fast and accurate color correction.
本发明的具体计算过程如下:首先通过传统的插值算法测得所需数量的基色点,然后,利用三维Delaunay三角剖分算法,对基色集进行四面体剖分,利用剖分得到的四面体集合,建立查找表;查找表的结构如下:The concrete calculation process of the present invention is as follows: at first measure the basic color point of required quantity by traditional interpolation algorithm, then, utilize three-dimensional Delaunay triangulation algorithm, carry out tetrahedral subsection to basic color set, utilize the tetrahedron set that subdivision obtains , to establish a lookup table; the structure of the lookup table is as follows:
其中,给定四面体T及其顶点p0 p1 p2 p3后,利用如下方程组求解得到其外接球球心O,Among them, given the tetrahedron T and its vertices p 0 p 1 p 2 p 3 , use the following equations to solve to obtain its circumscribed sphere center O,
这里假定m1是p0p1线段的中点,m2是p2p3线段的中点,m3是p3p0线段的中点,点q是平面上任意一点,即:It is assumed here that m 1 is the midpoint of the line segment p 0 p 1 , m 2 is the midpoint of the line segment p 2 p 3 , m 3 is the midpoint of the line segment p 3 p 0 , and point q is any point on the plane, namely:
展开即可得到其代数表达式为:Expand to get its algebraic expression:
其矩阵表达形式为:Its matrix expression is:
从而可求出四面体T的外接球球心表达式为:Thus, the expression of the center of the circumscribed sphere of the tetrahedron T can be obtained as:
生成查找表后,假定输入点为P,工作流程如下:After generating the lookup table, assuming that the input point is P, the workflow is as follows:
利用输入点p与每个四面体的外接球球心O的距离d和四面体外接球的半径r的关系,判断输入点p是否落入四面体的外接球内,即p落入其外接球的所有四面体构成集合A;具体判断方法如下:Use the relationship between the distance d between the input point p and the center O of the circumscribed sphere of each tetrahedron and the radius r of the circumscribed sphere of the tetrahedron to determine whether the input point p falls into the circumscribed sphere of the tetrahedron, that is, p falls into its circumscribed sphere All tetrahedrons of constitute a set A; the specific judgment method is as follows:
得到A后,可以利用点p与A中每一个四面体的体积关系,进一步判断输入点p位于A中的哪个四面体内,只有当点p落入顶点为p0,p1,p2,p3的四面体T内时,点p与p0,p1,p2构成的四面体T1,与p0,p1,p3构成的四面体T2,与p0,p2,p3构成的四面体T3,与p1,p2,p3构成的四面体T4,才满足以下关系:After obtaining A, you can use the volume relationship between the point p and each tetrahedron in A to further judge which tetrahedron the input point p is located in A, only when the point p falls into the vertices p 0 , p 1 , p 2 , p When inside the tetrahedron T of 3 , the tetrahedron T 1 formed by the point p and p 0 , p 1 , p 2 , the tetrahedron T 2 formed by the point p 0 , p 1 , p 3 , and the tetrahedron T 2 formed by the point p 0 , p 2 , p The tetrahedron T 3 formed by 3 and the tetrahedron T 4 formed by p 1 , p 2 , and p 3 satisfy the following relationship:
V(T1)+V(T2)+V(T3)+V(T4)=V(T)V(T 1 )+V(T 2 )+V(T 3 )+V(T 4 )=V(T)
其中,四面体体积的计算可以通过下述得到,当四面体T的四个顶点为p0(x0,y0,z0),p1(x1,y1,z1),p2(x2,y2,z2),p3(x3,y3,z3)时,该四面体的体积V(T)的计算公式为:Among them, the calculation of tetrahedron volume can be obtained as follows, when the four vertices of tetrahedron T are p 0 (x 0 , y 0 , z 0 ), p 1 (x 1 , y 1 , z 1 ), p 2 (x 2 , y 2 , z 2 ), p 3 (x 3 , y 3 , z 3 ), the formula for calculating the volume V(T) of the tetrahedron is:
所以判断点p是否属于某个四面体T时,可以用如下公式判断:Therefore, when judging whether a point p belongs to a certain tetrahedron T, the following formula can be used to judge:
记录点p所在的所有体于集合B中,如果B为空,那么p点超出能够校正的范围,不在该算法的考虑范围之内;如果B中有两个四面体,则选择任意一个,利用线性回归法插值计算得到目标RGB值;如果B中有多于两个的四面体,说明p点是某个四面体的顶点,也就是说属于插值点集中的点,那么无需插值,可直接输出目标RGB值;Record all volumes where point p is located in set B. If B is empty, point p is beyond the range that can be corrected and is not considered by the algorithm; if there are two tetrahedrons in B, choose any one and use The target RGB value is obtained by linear regression interpolation calculation; if there are more than two tetrahedrons in B, it means that point p is the vertex of a certain tetrahedron, that is to say, it belongs to the point in the interpolation point set, so it can be directly output without interpolation Target RGB value;
可通过以下方式得到线性回归方程:The linear regression equation can be obtained by:
假设成像系统的映射呈线性关系,则输出的标准颜色值为pn=(Rn,Gn,Bn)T可以表示为:Assuming that the mapping of the imaging system is linear, the output standard color value p n = (R n , G n , B n ) T can be expressed as:
pn-p=Λnσp n -p = Λ n σ
其中,p0为零点坐标,Λ为包含了光照因子和传感器相应因子的3×n维矩阵,σ为物体表面反射率基函数的权重系数;Among them, p 0 is the coordinate of the zero point, Λ is a 3×n-dimensional matrix including the illumination factor and the corresponding factor of the sensor, and σ is the weight coefficient of the reflectance basis function of the object surface;
同样在非标准光照条件下得到的颜色值pa=(Ra,Ga,Ba)T满足:Similarly, the color value p a = (R a , G a , B a ) T obtained under non-standard lighting conditions satisfies:
pa-p=Λaσp a -p = Λ a σ
联立上面两式即可得到Combine the above two formulas to get
令 则上式变为make Then the above formula becomes
为了计算和B,至少需要知道4个非共面的样本点的标准值及非标准值,通过线性回归分析,采用最小二乘法求解各个分量的相应系数;这四个点的取四面体插值过程中,查找得到的四面体四个顶点。to calculate and B, at least need to know the standard value and non-standard value of 4 non-coplanar sample points, through linear regression analysis, use the least square method to solve the corresponding coefficients of each component; in the tetrahedral interpolation process of these four points, Find the four vertices of the resulting tetrahedron.
Delaunay算法又称Delaunay三角剖分快速点定位算法,是一种广泛应用的算法,主要应用于四面体定位计算方面。国内有的翻译成“德劳奈”,有的译成“德劳耐”,尚无标准统一译法。The Delaunay algorithm, also known as the Delaunay triangulation fast point positioning algorithm, is a widely used algorithm, mainly used in tetrahedron positioning calculations. Some of them are translated into "Delaunay" in China, and some are translated into "Delaunay". There is no standard and unified translation method.
本发明提出的颜色校正方法基于已有均匀或非均匀基色库,在此基础上对输入颜色空间进行非均匀划分并建立查找表。对于新的输入点,利用体积关系判断其所在的四面体,然后根据输入点与所在四面体顶点的位置关系,选择利用插值计算公式,得到输出值,从而实现仪器颜色空间到标准颜色空间的转换。与普通基于三色分析的测色方法相比较,本发明具有简单、快捷、准确的特点。The color correction method proposed by the invention is based on the existing uniform or non-uniform primary color library, and on this basis, the input color space is non-uniformly divided and a look-up table is established. For a new input point, use the volume relationship to judge the tetrahedron it is in, and then according to the positional relationship between the input point and the vertex of the tetrahedron, choose to use the interpolation calculation formula to get the output value, so as to realize the conversion from the instrument color space to the standard color space . Compared with the common color measuring method based on three-color analysis, the present invention has the characteristics of simplicity, quickness and accuracy.
附图说明 Description of drawings
附图是本发明的计算流程方框示意图,也是说明书摘要用图。图中各标号分别是:(1)基色测量,(2)利用三维算法对基色空间进行剖分,(3)建立查找表,(4)输入颜色值测量,(5)利用体积关系判断输入点所在四面体,(6)输入点位于四面体顶点,(7)线性判归法,(8)出校正后颜色值。Accompanying drawing is the block schematic diagram of calculation flow of the present invention, also is the figure with description abstract. The labels in the figure are: (1) base color measurement, (2) use three-dimensional algorithm to divide the base color space, (3) establish a lookup table, (4) input color value measurement, (5) use the volume relationship to judge the input point Where the tetrahedron is located, (6) the input point is located at the vertex of the tetrahedron, (7) the linear regression method, (8) the corrected color value is output.
具体实施方式 Detailed ways
现结合附图给一实例对本发明做进一步说明。Now give an example in conjunction with accompanying drawing and further illustrate the present invention.
实施例:Example:
以R分量为例,Taking the R component as an example,
Rn=b1+a11Ra+a12Ga+a13Ba R n =b 1 +a 11 R a +a 12 G a +a 13 B a
假设已知4个顶点的输入输出值,则有:Assuming that the input and output values of 4 vertices are known, there are:
令make
可以计算得出can be calculated
Z=(XTX)-1XTYZ=(X T X) -1 X T Y
用同样的方法可以得到G和B的分量相应系数,从而最终确定A和B。从而得到输入点p到输出点pn的计算公式:In the same way, the corresponding coefficients of G and B components can be obtained, so as to finally determine A and B. Thus, the calculation formula from the input point p to the output point p n is obtained:
pn=AP+Bp n =AP+B
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110156725.6A CN102393965B (en) | 2011-06-01 | 2011-06-01 | A method for color correction of colorimeter by using tetrahedron interpolation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110156725.6A CN102393965B (en) | 2011-06-01 | 2011-06-01 | A method for color correction of colorimeter by using tetrahedron interpolation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102393965A CN102393965A (en) | 2012-03-28 |
CN102393965B true CN102393965B (en) | 2014-01-29 |
Family
ID=45861275
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110156725.6A Expired - Fee Related CN102393965B (en) | 2011-06-01 | 2011-06-01 | A method for color correction of colorimeter by using tetrahedron interpolation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102393965B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799657B (en) * | 2012-07-05 | 2015-04-08 | 上海富瀚微电子股份有限公司 | System and method for realizing real-time data point mapping processing based on three-dimensional checking |
CN104658013B (en) * | 2014-10-30 | 2017-10-20 | 华侨大学 | It is a kind of that the method that the radius of a ball carries out color gray processing is inscribed using simple form |
CN104899441B (en) * | 2015-06-05 | 2018-02-27 | 河海大学 | A kind of numerical method suitable for the calculating magnetic field VRMS uniformitys |
CN113297650B (en) * | 2021-07-28 | 2021-10-08 | 广东世纪达建设集团有限公司 | BIM technology-based unit type glass curtain wall construction method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5581376A (en) * | 1994-08-29 | 1996-12-03 | Xerox Corporation | System for correcting color images using tetrahedral interpolation over a hexagonal lattice |
CN101395900A (en) * | 2006-03-01 | 2009-03-25 | 爱克发印艺公司 | Method and apparatus for printer characterization |
CN101750147A (en) * | 2008-12-11 | 2010-06-23 | 张辉 | Method and device for measuring color spectrum data of object to be measured |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003244450A (en) * | 2002-02-13 | 2003-08-29 | Konica Corp | Color shift measuring method, color shift measuring instrument, color shift correcting method and color shift correcting apparatus |
JP3823858B2 (en) * | 2002-03-20 | 2006-09-20 | セイコーエプソン株式会社 | Correction method of color image data using correction table |
JP5142890B2 (en) * | 2008-08-27 | 2013-02-13 | キヤノン株式会社 | Image processing method and image processing apparatus |
-
2011
- 2011-06-01 CN CN201110156725.6A patent/CN102393965B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5581376A (en) * | 1994-08-29 | 1996-12-03 | Xerox Corporation | System for correcting color images using tetrahedral interpolation over a hexagonal lattice |
CN101395900A (en) * | 2006-03-01 | 2009-03-25 | 爱克发印艺公司 | Method and apparatus for printer characterization |
CN101750147A (en) * | 2008-12-11 | 2010-06-23 | 张辉 | Method and device for measuring color spectrum data of object to be measured |
Non-Patent Citations (5)
Title |
---|
Applications of Tetrahedral Interpolation in Color Conversion Model;Du Bin et al;《2008 International Conference on Computer Science and Software Engineering》;20081214;全文 * |
Du Bin et al.Applications of Tetrahedral Interpolation in Color Conversion Model.《2008 International Conference on Computer Science and Software Engineering》.2008,全文. |
JP特开2003-244450A 2003.08.29 |
丁二锐 等.非均匀三维查找表的快速查找技术.《计算机科学》.2007,第34卷(第2期),全文. |
非均匀三维查找表的快速查找技术;丁二锐 等;《计算机科学》;20071231;第34卷(第2期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN102393965A (en) | 2012-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102393965B (en) | A method for color correction of colorimeter by using tetrahedron interpolation method | |
CN101424520B (en) | Method for detecting partial contour outline of object curved surface | |
US9347874B2 (en) | Calculating the spectral characteristics of the color resulting from overlaying colorants | |
CN105466365B (en) | The method for obtaining radar corner reflector RCS precision | |
CN110514391A (en) | A Method for Uncertainty Evaluation of Three-dimensional Flow Field Measurement by Five-hole Pressure Probe | |
CN104991085B (en) | The threshold wind velocity field calibration instrument and threshold wind velocity acquisition methods of air velocity transducer | |
CN114459573A (en) | Novel calibration model and calibration method of ultrasonic gas meter and ultrasonic gas meter | |
CN104458597A (en) | Camera-based method, device and system for detecting product color based on | |
CN110470223B (en) | A three-dimensional space coordinate measurement method based on 1D displacement sensor | |
CN103217238A (en) | High-precision display method of pressure-sensitive coating measuring result | |
CN105300522A (en) | Chromaticity quantitative calculation method capable of reducing influence of color measurement uncertainty | |
CN105068032B (en) | A kind of calibration method of photovoltaic combiner box current acquisition channel temperature coefficient of deviation | |
CN113340438B (en) | A non-contact temperature field distance error calibration method for aero-engine hot end components | |
CN102435156B (en) | Large cylindrical workpiece dimension and geometric error measurement method | |
CN106644081B (en) | A kind of multispectral image scaling method | |
CN100443856C (en) | A non-destructive measurement system and method for planar blade area | |
CN102269581B (en) | Machining precision evaluation method of architectural component | |
CN110161484A (en) | Compensated distance look-up table method for building up and device, compensated distance method and device | |
CN102706511A (en) | Device for transferring pressure quantity value through internet in real-time environment | |
CN203350247U (en) | Multipoint soil moisture sensor | |
CN101581579A (en) | Method for comparing two-dimensional curve color gradations | |
CN104062013A (en) | Color calculation method for light-beam-based hologram paper printed matter | |
CN113447131A (en) | Infrared thermal imaging field temperature measurement calibration device and method | |
CN105806483A (en) | Non-linear formula correction method for leather dyeing and color matching | |
CN105229434B (en) | Aligining and validating color measurement instruments |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140129 Termination date: 20150601 |
|
EXPY | Termination of patent right or utility model |