This application claims priority under 35 U.S.C. §119(a) to Application No. 08154135.1, filed in Europe on Apr. 7, 2008, the entirety of which is expressly incorporated herein by reference.
1. Field of the Invention
The present invention relates to a color management method, wherein a Graphics Processing Unit (GPU) is used for converting colors from a source device color space to an output device color space in accordance with predetermined color profiles of the source and output devices.
The present invention further relates to a color management module and a program product embodied on a computer readable medium for implementing the method and to a printer using the method.
2. Description of Background Art
When a color image is scanned with a scanner and is then printed with a color printer, it can not be taken for granted that the colors on the printed copy will be identical with those of the original. The reason is that color processing devices such as scanners, printers and the like, operate in device dependent color spaces. The main purpose of color management is to transform one color space into another, given an input profile or source profile of the source device (e.g. scanner), an output profile of the output device (e.g. the printer) and possibly a rendering intent. The current standard for color management is set by the International Color Consortium (ICC) which has defined a format for the color profiles. For example, a color profile for a scanner may specify how the colors on an original, as defined in a standard color space such as LAB, for example, are related to the RGB colors output by the scanner. Similarly, a color profile of a printer may specify how the LAB colors that shall be visible on the printed copy are related to the CMYK color values to be input into the printer in order to achieve the desired output. In general, such a color profile is represented by two conversion tables, one mapping, for example, RGB onto LAB, and another one mapping LAB onto RGB (with suitable gamut mapping). When the scanner and the printer are combined to form a digital copier, the color managing module will perform a transformation that corresponds to concatenating the color profile of the scanner with the color profile of the printer.
Whereas color management has conventionally been the task of a CPU in a printer or other color processing device, U.S. Patent Application Publication No. 2007/0035752 A1 discloses a color management module in which at least a part of the color management operations are performed in a Graphics Processing Unit (GPU). Such a GPU is a processor with a massively parallel architecture that is typically employed in graphics cards in PCs. According to the color management method proposed in this document, the input color profile is at first linearized, if it is not linear already, and then a linear transformation, i.e. a matrix multiplication, is carried out, and, in general, a non-linear function is applied to the result in order to map the colors onto the output device color space.
It is an object of the present invention to provide a color management method that permits carrying out color conversion with improved efficiency and/or fidelity.
In order to achieve this object, the method according to the present invention is comprises the steps of: storing, in the GPU, an at least three-dimensional conversion texture that specifies a color conversion table; loading input color data into the GPU; sampling the conversion texture at a position specified by the input color data, thereby identifying output color data; and outputting the output color data.
In principle, the method according to the present invention is a table look-up method with interpolation, utilizing a conversion table that assigns a set (vector) of output color values in the output color space to every set of input color values in the source device color space. However, since existing GPUs support three-dimensional (3D) textures, the table look-up process can be performed in an extremely efficient way, when the conversion table is represented by such a 3D texture.
A texture in a GPU is comparable to an array in a conventional multi-purpose computer, with the main difference being that the texture can be addressed via floating point indices. Originally, GPUs and textures have mainly been used for rendering graphics art or a video for computer games and the like. In that case, the color value of a specific pixel to be rendered was determined by sampling a corresponding area in a texture that represents a two or three dimensional volume in which the virtual object exists to which the pixel belongs. However, according to the present invention, the textures do not represent a volume in a physical space but a volume in a color space, so that sampling the conversion texture at a position specified by the input color data is equivalent to looking-up, with interpolation, a value in a conversion table.
Since the GPU is specifically designed for efficiently carrying out tasks like sampling from textures, the present invention permits a highly efficient color management, regardless of whether the color profiles involved are linear or non-linear.
A color management module, a program product for color management and a printer using the method according to the present invention are specified in respective independent claims. More specific optional features of the present invention are indicated in the dependent claims.
In a preferred embodiment, a linear interpolation algorithm is used in sampling the conversion texture. Existing GPUs are well suited for that purpose.
When the source device has a three dimensional color space such as RGB, the conversion table can be stored in a 3D conversion texture. If the color space of the source device has four dimensions, such as CMYK, the conversion table can be represented by a (large) 3D texture that is divided into a plurality of cubes stacked one upon the other, and the fourth coordinate is represented by the number or index of the cube. For example, each cube may represent a CMY space for a specific value of K. Then, sampling the texture at the position of a specific CMYK color is performed by sampling the points CMY in the cubes for the two values of K that are closest to the K value of the input color. This results in two output colors, one for each of the two values of K, and the final output color is obtained by interpolation with respect to K.
Textures may also be used for storing the input color data and/or output color data in the GPU. Preferably, 1D or 2D textures are used for that purpose.
The color conversion may be performed in a single step, i.e. by means of a single conversion texture that integrates the color profiles of both, the source device and the output device. In a modified embodiment, however, the color conversion may be separated into a plurality of steps, using two or more conversion textures which may be obtained, for example, by converting the ICC profiles into textures.
Further scope of applicability of the present invention will become apparent from the detailed description given hereinafter. However, it should be understood that the detailed description and specific examples, while indicating preferred embodiments of the invention, are given by way of illustration only, since various changes and modifications within the spirit and scope of the invention will become apparent to those skilled in the art from this detailed description.
The present invention will become more fully understood from the detailed description given hereinbelow and the accompanying drawings which are given by way of illustration only, and thus are not limitative of the present invention, and wherein:
The present invention will now be described with reference to the accompanying drawings, wherein the same reference numerals have been used to identify the same or similar elements throughout the several views.
The properties of the source device 10 can be characterized by a color profile (e.g. a standard ICC profile) as is schematically illustrated in
Similarly,
As is shown in
When the output device 14 is a printer, for example, and the source device 10 is again a scanner, then the color profiles 18 and 24 are ideally defined in such a way that the colors printed with the printer (by combining the colors CMYK) will be identical with the colors on the original that have been scanned with the scanner. More generally, the color profile 28 of the output device indicates the CMYK values to be supplied to the output device in order to obtain, as output, the desired color in the standard LAB space.
A memory 40 stores input files 42 that have been created with the scanner 34 or have been received via the network. Each input file 42 may be in a specific format, e.g. PostScript or the like, and may include a color list 44 listing the colors that occur in the image, so that a color value can be assigned to each element (e.g. pixel) of the image. The colors in the color list 44 will be given in the color space 16 of the respective source device.
When an input file is to be printed with the print engine 38, this file will be converted under the control of a CPU 46 into a print file 48 that will be stored in a memory 50 and will then be fed to the print engine 38. This conversion includes color management, so that the color lists 44 of the print files 48 now contain converted colors which are defined in the color space 26 of the print engine 38. For that purpose, the system includes a color management module which, in this example, is not mainly implemented in the CPU 46 but is formed by a Graphics Processing Unit (GPU) 52 that communicates with the CPU 46.
Both the CPU and the GPU have access to a memory 60 that is used by the GPU for storing 1D, 2D and 3D textures. As has only symbolically been shown in
As is shown in
In order to perform color management for a specific input file 42, the input color data included in the color list 44 will be loaded into the input texture 64. A three-dimensional conversion table representing the conversion function 32 (
When another input file 42 is to be processed, which originates from a different source device having a different color profile, then, of course, the conversion table in the link texture 66 has to be modified. A new conversion table will be calculated (e.g. in the CPU 46) and will then be loaded into the link texture 66. Similarly, different color profiles may be provided for the print engine 38. These color profiles may, for example, depend on the type of recording medium that is to be printed on, and on the halftone screens that are used for color printing. In a specific embodiment, there may, for example, be six different output profiles corresponding to three different halftone screens for coated and uncoated paper, respectively.
The process of sampling a value from the link texture 66 will now be explained in conjunction with
The same sampling procedure can be applied to any three dimensional color space such as LAB, XYZ, and the like, and the entries at the nodes 70 may not only be CMYK values but could also be co-ordinates of another three-, four-, or higher-dimensional color spaces such as LAB, XYZ or again RGB.
Some special considerations are necessary for cases where the color space of the source device 10 is a four-dimensional space such as CMYK. Then, in analogy to what has been explained in conjunction with
When an output color value is sampled in the “virtual 4D texture” at a certain point having the CMYK co-ordinates (c, m, y, k), the co-ordinate k determines which of the 17 cubes are evaluated. If k is between i and i+1, then, the cubes 74 and 76 shown in
In the examples that have been described above, it was assumed that the GPU stores only a single link texture 66 at a time, this link texture containing a conversion table that may correspond to the concatenated conversion function 32 in
Optionally, a third conversion texture 84 may be intervening between the textures 80 and 82. This conversion texture 84 would map the standard color space (e.g. LAB) back onto itself and may represent transformations that may freely be selected by the user in order to optimize the result. Since these transformations are performed in the standard color space, they will largely be device-independent.
Finally it is noted that a GPU nowadays most of the time is embodied as a separate integrated circuit or chip, separate from a CPU and other circuitry. However, it is also envisaged that a GPU will be integrated with a CPU and possibly other circuitry on a single substrate and so forming a single chip. Besides that, a GPU may also be embodied in a PLA (Programmable Logic Array) or in a ASIC (Application Specific Integrated Circuit). The notion of GPU as used in this description encompasses, but is not limited to, the embodiments given above.
The invention being thus described, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be obvious to one skilled in the art are intended to be included within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
08154135 | Apr 2008 | EP | regional |
Number | Name | Date | Kind |
---|---|---|---|
6137594 | Decker et al. | Oct 2000 | A |
6281984 | Decker et al. | Aug 2001 | B1 |
6970271 | Estrada et al. | Nov 2005 | B1 |
7072052 | Tanahashi et al. | Jul 2006 | B1 |
7149348 | Borg | Dec 2006 | B1 |
7511714 | Amann et al. | Mar 2009 | B1 |
7616212 | Inazumi | Nov 2009 | B2 |
8035654 | Borg | Oct 2011 | B1 |
8081821 | Schaem | Dec 2011 | B1 |
8218940 | Sultenfuss et al. | Jul 2012 | B2 |
20030234793 | Stokes et al. | Dec 2003 | A1 |
20050140694 | Subramanian et al. | Jun 2005 | A1 |
20060023234 | Kondo et al. | Feb 2006 | A1 |
20060041609 | Pellar | Feb 2006 | A1 |
20070014446 | Sumanaweera et al. | Jan 2007 | A1 |
20070018980 | Berteig et al. | Jan 2007 | A1 |
20070035752 | Evans et al. | Feb 2007 | A1 |
20070058185 | Kawai | Mar 2007 | A1 |
20070058224 | Kawamoto et al. | Mar 2007 | A1 |
20070086050 | Matsuda | Apr 2007 | A1 |
20070091213 | Jaspers | Apr 2007 | A1 |
20070098256 | Kulkarni et al. | May 2007 | A1 |
20070183644 | Matsumoto | Aug 2007 | A1 |
20080088858 | Marcu et al. | Apr 2008 | A1 |
20080089580 | Marcu | Apr 2008 | A1 |
20080122860 | Amann et al. | May 2008 | A1 |
20080284877 | Jaspers | Nov 2008 | A1 |
20080304738 | Beilloin | Dec 2008 | A1 |
20090002379 | Baeza et al. | Jan 2009 | A1 |
20090027415 | Dispoto et al. | Jan 2009 | A1 |
20090067509 | Poon | Mar 2009 | A1 |
20090080041 | Fan et al. | Mar 2009 | A1 |
20090080533 | Folta et al. | Mar 2009 | A1 |
20090174722 | Liang et al. | Jul 2009 | A1 |
20090252233 | Ji et al. | Oct 2009 | A1 |
20100026700 | Michail et al. | Feb 2010 | A1 |
20100214301 | Li et al. | Aug 2010 | A1 |
20110013833 | Hoof et al. | Jan 2011 | A1 |
20110149307 | Tin | Jun 2011 | A1 |
20110149327 | Furuya | Jun 2011 | A1 |
20110169844 | Diard et al. | Jul 2011 | A1 |
20110298819 | Evans et al. | Dec 2011 | A1 |
20120237120 | Kulkarni et al. | Sep 2012 | A1 |
20120287149 | Zimmer | Nov 2012 | A1 |
Number | Date | Country | |
---|---|---|---|
20090251748 A1 | Oct 2009 | US |