发明名称 System and method for dynamically substituting colors in a graphic image
摘要 A system and method for dynamically substituting colors in graphic images. The color substitution method receives a color to be replaced within the graphic image (Cr) and a new color (Cn). The method also receives a hue variance % value, which indicates the degree of hue variance for which a color substitution is performed. The method then converts the color to be replaced (Cr) to hue, luminance and saturation components (Hr, Lr, Sr), and converts the new color (Cn) to hue, luminance and saturation components (Hn, Ln, Sn). The method also computes a luminance difference Ld=Ln-Lr. Then, for each color element, e.g., each pixel or color command, the method performs a color substitution operation to replace one or more current colors in the graphic image with the new color. The color substitution operation for each color element compares the hue component Hc of the current color (Cc) of a current pixel in the graphic image and determines if Hc matches Hr within the specified hue variance. The method maintains the current color of the current color element unchanged if Hc does not match Hr within the specified hue variance, since the color of the current color element is not sufficiently close to the color desired to be changed. If Hc matches Hr within the specified hue variance, then the method sets the value of Hc to the value of Hn and sets the value of Lc to Lc+Ld in response to determining that Hc matches Hr. After the values of Hc and Lc have been changed appropriately, the method converts the new Hc and Lc values and the Sc value, back to an rgb format to produce a new color for the current color element. This new color is then stored for the respective color element, thereby effecting a color substitution for the respective color element.
申请公布号 US6259428(B1) 申请公布日期 2001.07.10
申请号 US19980071318 申请日期 1998.05.01
申请人 NATIONAL INSTRUMENTS CORPORATION 发明人 RAMCHANDANI MAHESH A.;WASHINGTON JEFFREY D.
分类号 G06T11/00;G09G5/02;H04N1/62;(IPC1-7):G09G5/02 主分类号 G06T11/00
代理机构 代理人
主权项
地址