1. Field of the Invention
The present invention relates to a color conversion apparatus and color conversion method, which replace color conversion defined by a complex arithmetic equation or a multi-step operation with table interpolation to speed up operation.
2. Description of the Related Art
Conventionally, color conversion defined by a profile is composed of a multi-step operation as shown in
Conventionally, in destination color conversion, a color conversion table is generated by using the whole PCS color space (CIEXYZ or L*a*b*) as a definition area. In this case, a table including an area out of an input color gamut is generated, causing a problem that a memory for a color conversion table is wasted.
The object of an aspect of the present invention is to provide a color conversion apparatus and color conversion method, which decrease a waste of a memory for a color conversion table.
According to an aspect of the present invention, there is provided a color conversion apparatus comprising a color conversion table generating means for generating a color conversion table for converting a color signal of a device independent color space to a color signal of a second color space, based on characteristic information of a first color space and characteristic information of a second color space, and generating definition area information of the color conversion table; and a color conversion means for converting a color signal of the device independent color space to a color signal of the second color space, by referring to the color table and the definition area information of the color conversion table generated by the color conversion table generating means.
According to another aspect of the present invention, there is provided a color conversion method comprising generating a color conversion table for converting a color signal of a device independent color space to a color signal of a second color space, based on characteristic information of a first color space and characteristic information of a second color space, and generating definition area information of the color conversion table; and converting a color signal of the device independent color space to a color signal of the second color space, by referring to the generated color conversion table and definition area information of the color conversion table.
Additional objects and advantages of an aspect of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objects and advantages of an aspect of the invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out hereinafter.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate preferred embodiments of the invention, and together with the general description given above and the detailed description of the embodiments given below, serve to explain the principles of an aspect of the invention.
An embodiment of the invention will be explained hereinafter with reference to the accompanying drawings.
The operation of the CMM shown in
First, a color profile is given as information necessary for color conversion. As a color profile, a source device profile is necessary as information of a color space of a color conversion source, and a destination device profile is necessary as information of a color conversion destination. In this example, a color profile of the sRGB color space corresponds to a source device profile 5, and a color profile of the CMYK color space of the printer P corresponds to a destination device profile 6.
In the CMM of the invention, the contents of a color profile defining a complex or multi-step operation is synthesized as one color conversion table and replaced by the table for speedup of the operation. The color conversion itself can be realized simply by interpolation by referring to the synthesized color conversion table.
The source color conversion table generator/storage 1 synthesizes and holds the contents of the source device profile 5 as one source color conversion table, and supplies it to the source color converter 2.
The source color converter 2 converts an input color signal (a color signal of a source color space) to the color coordinates of a profile connection space (PCS), which is the coordinate value of a color space uniquely defining a device-independent color, concretely indicating a CIEXYZ color space or L*a*b* color space) by interpolation by referring to the source color conversion table. In this example, the sRGB color signal is converted to the PSC color coordinate value.
The destination color conversion table generator/storage 3 synthesizes and holds the contents of a destination device profile 6 as one destination color conversion table, and supplies it to the destination color converter 4.
The destination color converter 4 converts the PCS color coordinate value to an output color signal (a color signal of a destination color space). In this example, the PCS color coordinate value is converted to the CMYK color signal of the printer P. Color conversion for one input is completed in this way.
The destination color conversion table generator/storage 3 is a characteristic component of the present invention.
In the CMM of the invention, when destination color conversion is tabulated, the destination color conversion table generator/storage 3 refers to a source profile, obtain a table definition area, and generates a table for that definition area. In this time, the table definition area calculator 31 converts the source color of the color coordinates of all peaks of a source color space, and defines a minimum rectangular solid (corresponding to the thick square frame in
The destination color conversion table grid address generator 32 divides the obtained definition area equally in all of three directions (number of predetermined table grids per axis: 1) (refer to
When the PCS color space is an L*a*b*color space, an origin point in an a*b*plane (L*axis in L*a*b* space) or an achromatic color value in the PCS color space does not usually coincide with the position of a table grid point, as shown in
To solve the problem, as in a second embodiment of the invention, the table definition area calculator 31 adjusts the definition area in the state as shown in
A concrete adjustment procedure will be explained hereinafter. In the following example, the upper and lower limit values of the destination color conversion table definition area are adjusted for one axis (hereinafter called a noticed axis) in the PCS color space, so that an achromatic color value coincides with a nearby grid point.
In the following example, the “number of grid points” indicates the number of grid points in the noticed axis direction, and the “achromatic color value” indicates the achromatic color value on the noticed axis. The “unadjusted position” indicates the position in the grid point space corresponding to an achromatic color value. The minimum value of the value indicating the position in the grid point space is 0, and the maximum value is (number of grid points—1). When the unadjusted position is not an integer, it indicates that the position is located between grid points. When the unadjusted position is an integer, it indicates that the position coincides a grid point. The “adjusted position” indicates the number of a coinciding grid point after the achromatic value is adjusted to coincide with a nearby grid point.
The “upper limit” and “lower limit” indicate the upper limit and lower limit values of a definition area before adjustment. The “adjusted lower limit” and “adjusted upper limit” indicate the upper limit and lower limit values of a definition area after adjustment. ROUND (x, 0) indicates rounding off all digits to the right of the decimal point of x. ROUNDDOWN (x, 0) indicates rounding down all digits to the right of the decimal point of x. ROUNDUP (x, 0) indicates rounding up all digits to the right of the decimal point of x. ABS (x) indicates an absolute value of x.
First, calculate an adjusted position of a achromatic color value by using the following procedure.
Next, calculate the upper and lower limits of a definition area by using the following procedure, and complete the adjustment.
As explained hereinbefore, according to the embodiments of the invention, all table grid points are allocated within a source color gamut as shown in
According to the second embodiment, when the PCS color space is L*a*b*color space, the grid point of the color conversion table is put on the L*axis, and when an achromatic color is input as an object of color conversion, only a grid point on the L*axis (i.e., an achromatic color) contributes to actual color conversion. Therefore, the color conversion result is not influenced by a surrounding chromatic color (not colored), and output as an achromatic color.
Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.