Graphical user interface for color transformation table editing that avoids reversal artifacts
Granted 4 May 2004 · 1 office action
Assignee: Xerox
Law firm: Law firm · Log in to unlock
Attorney: Attorney · Log in to unlock
Inventors: Martin S. Maltz, Thyagarajan Balasubramanian, R. Victor Klassen · Examiner: Phuoc Tran · AU 2621 · TC 2600
Life of the application
12 dated eventsAbstract
A transformation function defines a relationship between a first color space and a second color space. The transformation function is edited by producing first and second outputs of an image in the first and second color spaces, respectively. The outputs are related in accordance with the transformation function. A portion of the first output, which corresponds to a portion of the second output including a color to be modified, is selected via a graphical user interface. A desired amount to modify the color is specified. A correction function is determined in accordance with the desired amount. The transformation table is edited in accordance with the monotonic correction function.
Description
6 parts›BACKGROUND OF THE INVENTION
The present invention relates to a system for editing transformation tables that are used to convert color values between different color spaces. It finds particular application in conjunction with converting color values between colorimetric and device dependent color spaces and will be described with particular reference thereto. It will be appreciated, however, that the invention is also amenable to other like applications.
Color signals or values produced by or for one device, such as a color scanner, often need to be output to or represented by another device, such as a printer or display, which may operate according to a different color space. In this case, the color signals must be transformed between the color spaces. The color signals are typically stored in a colorimetric color space (e.g., L*a*b* color space) and transformed into various device dependent color spaces (e.g., RGB, CMYK, etc). The transformation process between the various color spaces often includes interpolating values extracted from a transformation table, which represents the values of a multidimensional transformation function. Each entry in such a transformation table represents, for example, a CMYK value that should be used to print a color with a particular L*a*b*.
The characteristics of imaging devices, such as printers and displays, often change over time, so it is sometimes necessary to modify the transformation table to compensate for these changes. The transformation tables are also optimized for a generic image, so that it is sometimes necessary to change the transformation table to optimize the appearance of a particular image. For these, and many other reasons, it is sometimes necessary to modify the transformation table.
It is to be understood that if the transformation table is modified, the corresponding transformation function is modified accordingly. Furthermore, it is desirable to ensure that any modification made to the transformation table does not introduce irregularities (e.g., color reversals or non-monotonicities) into the corresponding function. Until now, it has not been possible to modify a color transformation table using a graphical user interface while preserving smooth, monotonic behavior in the corresponding transformation function.
The present invention provides a new and improved method and apparatus which overcomes the above-referenced problems and others.
›SUMMARY OF THE INVENTION
A method for editing a transformation function, which defines a relationship between a first color space and a second color space, receives an image in the first color space and produces first and second outputs of the image in the second and a third color space, respectively. The first output is related to the image in accordance with the transformation function. A portion of the second output that corresponds to a portion of the first output including a color to be modified is selected via a graphical user interface. A desired amount to modify the color is specified. A correction function is determined in accordance with the desired amount. The transformation table is edited in accordance with the correction function.
In accordance with one aspect of the invention, the correction function is determined as a monotonic function.
In accordance with another aspect of the invention, noise is spatially filtered and/or satellites are discarded from the portion of the first output.
In accordance with another aspect of the invention, the first and second outputs are produced on a video display device and an output device, respectively. Furthermore, the selecting step includes sweeping an indicator across the video display device via the graphical user interface.
In accordance with another aspect of the invention, the specifying step includes indicating the desired amount via the graphical user interface.
In accordance with another aspect of the invention, the determining step includes calculating a potential correction function and determining if the potential correction function is monotonic. If the potential correction function is non-monotonic, the potential correction function is scaled according to a weighting function to make the potential correction function monotonic and the potential correction function is assigned as the correction function.
In accordance with a more limited aspect of the invention, the step of determining if the potential correction function is monotonic includes determining ∂V 2i /∂V 1j =δ ij +α*D i *∂ƒ(U)/∂U j , where ƒ(U)=the weighting function, V 2 =V 1 +ƒ(U)*D is the correction function, U=α*(V 1 −V 0 ), V 1 =the color in the first color space, V 0 =a center of the region to be modified, D=the desired color shift in the center of this region, V 2 =the corrected color in the first color space, and α=a scaling factor.
In accordance with a more limited aspect of the invention, the editing step includes ensuring a sampling in the table is sufficient to preserve an adequately sampled representation of the weighting function.
In accordance with a more limited aspect of the invention, the ensuring step includes checking if a distance D′ between the current adjustment point V 0 and any previous adjustment points is greater than a predetermined threshold T 1 . If the distance D′ is greater than the threshold T 1 , a check is made to determine if the weighting function ƒ(U) at a table node nearest to V 0 is greater than a predetermined threshold T 2 . If the weighting function ƒ(U) at the table node nearest to V 0 is greater than the predetermined threshold T 2 , the table in a vicinity of V 0 is modified to ensure an adequate representation of the weighting function.
In accordance with a more limited aspect of the invention, the editing step includes changing the scaling factor α until ƒ(U) at the table node nearest to V 0 is less than T 2 .
In accordance with a more limited aspect of the invention, the editing step includes resampling the table nodes to have finer sampling in the vicinity of V 0 .
In accordance with another aspect of the invention, the second output is produced via a digital output device and a corrected second output is produced via the digital output device.
One advantage of the present invention is that it modifies color transformation tables while preserving smooth, monotonic behavior.
Another advantage of the present invention is that it uses an average color for a region.
Another advantage of the present invention is that it samples a transformation table to accurately capture modifications made in the transformation function so that the system response is modified in a smooth manner.
Another advantage of the present invention is that it may permanently modify an output device's profile.
Still further advantages of the present invention will become apparent to those of ordinary skill in the art upon reading and understanding the following detailed description of the preferred embodiments.
›BRIEF DESCRIPTION OF THE DRAWINGS
The invention may take form in various components and arrangements of components, and in various steps and arrangements of steps. The drawings are only for purposes of illustrating a preferred embodiment and are not to be construed as limiting the invention.
FIG. 1 illustrates a system for editing a transformation table according to the present invention,
FIG. 2 illustrates a correction unction according to the present invention;
FIG. 3 illustrates a flowchart for editing a transformation table according to the present invention; and
FIG. 4 illustrates a function showing the derivative of a weighting function along any vector passing through the origin.
›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS · 1 of 3
With reference to FIG. 1, a system 10 for editing a transformation table includes a processing device 12 , which communicates with a memory device 14 . In the preferred embodiment, the memory device 14 is included within the processing device 12 ; however, other embodiments, in which the memory device 14 is not included within the processing device 12 , are also contemplated. An input device 16 (e.g., a scanning device) and an output device 20 (e.g., a printing device) each communicates with the processing device 12 . It is to be understood that the scanning device is preferably a digital scanner that is capable of inputting a color image. Similarly, it is to be understood that the output device is preferably operated within a xerographic environment; alternatively, the output device is a digital printer that is capable of producing a color image. A graphical user interface 22 , which communicates with the processing device 12 , includes a display (output) device 24 (e.g., a video display device) and a pointing device 26 (e.g., a mouse). The pointing device 26 permits a user to select portions of an image displayed on the display device 24 .
FIG. 2 illustrates a correction function 30 used to modify the system response. If the transformation table to be modified transforms L*a*b* to CMYK, this correction function would transform uncorrected L*a*b* to corrected L*a*b*. The corrected L*a*b* would then be transformed using the L*a*b* to CMYK table to obtain corrected CMYK. Both transforms could then be combined into a single table that gives the same results using well known techniques.
In general, the modification would only be applied in a limited region of L*a*b* space. It is difficult to represent such multidimensional transforms on a two dimensional sheet of paper, so FIG. 2 just shows the relationship between uncorrected (L*in) and corrected (L*out) L* along a line parallel to the L* axis of L*a*b* space, and going through the center of the modified region of L*a*b* space. Portions (see, for example, portions 34 , 36 ) of the color space that are not to be corrected produce a corrected color that is substantially identical to the input color. This relationship is a function of a* and b* as well. For a*b* values far from the modified region, L*out would equal L*in for all L*. In this manner, an L*a*b* value is corrected in the desired fashion. It is to be noted that the correction curve is monotonic and, therefore, does not produce color reversals for color sweeps along the illustrated path in color space (a sweep of varying L* and constant a* and b* that goes through the center of the modified region of color space). A more complete analysis is required to make sure that there are no color reversals along all other sweeps. This analysis will be presented below.
With reference to FIGS. 1-3, a method 40 for editing a transformation function (transformation table), which defines a relationship between a first color space and a second color space by creating the correction function 30 , begins in a step A. An image 42 is scanned into the memory device 14 , via the scanning device 16 , in a step B. As discussed above, the input device 16 may operate in the first color space (e.g., the CMYK device dependent color space). Data representing the scanned image is converted, in a step C, from the first color space (e.g., the device dependent color space) into a second color space (e.g., a calorimetric color space such as L*a*b*). The colorimetric data is transformed, in a step D, into a third color space (e.g., the RGB device dependent color space), which is compatible with the video display device 24 . A first representation of the image 42 is produced, in a step E, on the video display device 24 . The colorimetric data is transformed, in a step F, into a fourth color space (e.g., CMYK), which is compatible with the output device 20 . Then, in a step G, a second representation of the image 42 is produced onto an output medium 44 via the output device 20 .
Although four color spaces are discussed above, it is to be understood that two (2) or more of the color spaces may be the same and are related in accordance with the transformation function. For example, both the input device 16 and the video display device 24 may operate in the RGB device dependent color space while the output device 20 operates in the CMYK color space.
A user examines the first and second representations of the image 42 in a step H. Then, in a step I, the user identifies, via the pointing device 26 , a portion of the first representation of the image 42 that corresponds to a portion of the second representation of the image 42 that includes colors to be modified. In the preferred embodiment, the user sweeps an indicator 46 (cursor), via the pointing device 26 , across the portion of the first representation of the image 42 including the colors to be modified. For example, the user may desire to make the green portion of the color space produced by the output device 20 greener and/or make the yellows less orange. Therefore, the user identifies a portion of the second representation that includes the color(s) to be modified and, using the pointing device 26 , selects the corresponding portion of the image in the first representation.
The identified portion of the image is filtered in a step J. More specifically, the colors are spatially filtered (e.g., low pass, median, etc.) to remove noise. Furthermore, satellites (e.g., small regions of a color different from the identified color) are removed. It is to be understood that the filtering is performed in accordance with well-known filtering techniques. Optionally, the filtered colors within the region are averaged to produce a single color to be modified. The color(s) to be modified is/are displayed in a step L.
The user specifies, in a step M, a desired amount to modify the filtered color(s). It is to be understood that the amount the filtered color is to be modified is preferably specified using the pointing device 26 . More specifically, a color space scale may be displayed on the video device 24 so that the user may “grab” the color to be modified using the pointing device 26 . Then, the user moves the color along the scale, via the pointing device 26 , until the desired resulting color is displayed. If the user desires to modify a plurality of colors (e.g., a green and the yellows within the second representation of the image), the user specifies the respective amounts to modify the colors sequentially. More specifically, the user first specifies the amount to modify the green color; then the user specifies the amount to modify the yellows.
›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS · 2 of 3
As will be discussed in more detail below, a monotonic correction function (see the correction function 30 in FIG. 2) is determined next. In a step N a weighting function is determined from the range chosen for a single region of color space (i.e. the range of greens selected, or the range of yellows). Although the user may only specify modifying a single color, it is typically desirable to modify a plurality of colors surrounding the selected color. For example, as shown in the correction function 30 , the color identified in the step I may be illustrated as a point 50 . In the preferred embodiment, colors in the range 32 of including the identified color 50 are also modified, but to a lesser extent. To produce this result, the weighting function is set equal to 1.0 at the center of the region to be modified, and goes smoothly to zero outside this region. The correction function is then determined by multiplying the color modification desired by the user (a vector in L*a*b* color space) by the weighting function and adding it to an identity correction function (L*out=L*in; a*out=a*in; b*out=b*in). A determination is made, in a step P, if the correction function is monotonic. If the correction function is monotonic, control passes to a step O. Otherwise, control passes to a step R for scaling the weighting function to make the correction function monotonic; then control returns to the step O.
In step O, the transformation table is edited in accordance with the monotonic correction function to produce a new transformation table. The steps N, P, O, and optionally R are then repeated for any other modifications specified by the user in step M until they all have been processed.
In one embodiment, the editing step O includes ensuring that the sampling in the table is sufficient for an accurate representation of the transformation. For example, a check may be performed to determine if a distance D′ between a current adjustment point V 0 (discussed below) and any previous adjustment point is greater than a predetermined threshold T 1 . If the distance D′ is greater than the predetermined threshold T 1 , a check is made to determine if the weighting function ƒ(U) (see below) at a table node nearest to V 0 is greater than a predetermined threshold T 2 . If the weighting function ƒ(U) is less than the predetermined threshold T 2 , the table is modified in a vicinity of V 0 to ensure an adequately accurate representation of the correction function. It is to be understood that the editing step may include changing a scaling factor α (see below) until ƒ(U) at the table node nearest to V 0 is greater than T 2 ; alternatively editing step may include resampling the table nodes to have finer sampling in the vicinity of V 0 .
A corrected representation of the image 42 is next produced, in the step Q, using the output device 20 , which reflects the desired amount of modifications to the color(s). The user determines, in a step S, if the corrected image is acceptable. If the corrected image is acceptable, control passes to a step T for stopping the process; otherwise, control returns to the step H.
In the preferred embodiment, a potential weighting function is defined as a single three-dimensional function (e.g., a Gaussian (or similar) function) with different spreads along the three (3) axes. A mean value is set at the centroid of the selected colors. The potential weighting function is defined as ƒ(U), where U=α*(V 1 −V 0 ), V 1 is a color in a suitable color space (e.g., L*a*b*), V 0 is the filtered color resulting after the step K and represents the center of the region to be modified, and α is a scaling factor. Initially, the scaling factor α is 1; however, the scaling factor α may be changed, if necessary, in the step R to prevent color reversals (non-monotonicities).
As discussed above, the color representing V 0 is displayed on the video display device 24 and the pointing device 26 is used to identify a desired color to be substituted for V 0 . New entries in the corrected transformation table are calculated according to the correction function:
V 2 =V 1 +ƒ( U )* D,
where:
V 1 =the original color;
V 2 =the modified color (i.e., the corrected color in the first color space); and
D=the difference between V 0 and the desired rendering (e.g., the desired color shift in the center of this region).
To explore whether V 2 is a monotonic function, a Jacobian is calculated, in the step P, as:
∂ V 2i /∂V 1j =δ ij +α*D i *∂ƒ( U )/∂ U j ,
where:
∂V 2i =the partial derivative of the i th dimension (e.g., L*, a* or b*) of the modified color V 2 ;
∂V 1j =the partial derivative of the j th dimension (e.g., L*, a* or b*) of the original color V 1 ;
D i =the difference between V 0 and the desired rendering in the i th dimension;
δ ij =a Kroniker delta which is 0 if i≠j and 1 if i=j; and
∂U j =the partial derivative of U in the j th dimension.
Since the weighting function is chosen to reach a maximum of 1.0 at its origin (U=0) and to fall off smoothly to 0 as a function of a distance from the origin at U=0, the derivative along any vector L that goes through the origin is represented by the function 60 shown in FIG. 4, where p represents a position along the vector L.
From FIG. 4 it can be seen that the cross derivatives (∂V 2i , ∂V 1j , where i≠j) always have both positive and negative regions and, therefore, are not used for distinguishing between monotonic and non-monotonic renderings. It is clear that if the diagonal derivatives (∂V 2i /∂V 1i ) are negative, the modified rendering is non-monotonic. This leads to a criterion for a for monotonic behavior:
α←( D 1 *min U [∂ƒ( U )/∂ U i ]) −1 when D i >0; and
α←( D i *max U [∂ƒ( U )/∂ U i ]) −1 when D i <0,
where the minimum value of the partial derivative is the most negative value, the maximum value of the partial derivative is the most positive value, and a must be small enough to satisfy the inequality for all three (3) dimensions. If the maximum value of α as determined above is <1, the rendering must be produced with the reduced value of α to avoid non-monotonic behavior.
›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS · 3 of 3
If the potential weighting function is determined to be non-monotonic, the scaling factor α is adjusted until a monotonic potential weighting function is achieved. Once a monotonic potential weighting function is achieved, the potential weighting function is assigned as the (final) weighting function.
In the preferred embodiment, multiple color adjustments are applied sequentially. In other words, two (2) strong displacements in opposite directions at nearby points in color space substantially cancel each other. It is deemed preferable to cancel such opposite displacements rather than producing the requested rendering table, which would probably be very non-monotonic and lead to objectionable contours.
Multiple color adjustments are preferably folded into the rendering table in the sequence in which the user performed the adjustments. If a large table is used with constant node sampling, at the i th adjustment step, the L*a*b* values at each of the table nodes is mapped through the correction function to get a corrected L*a*b* value. This corrected L*a*b* value is then mapped through the transformation (rendering) table (representing adjustments 1, . . . , i-1), to get a corrected output value, and the corrected output values are inserted at the same node locations. In the adaptive node sampling approach, the optimal sampling is first found for the composite correction using one of a plurality of methods described in more detail below. Then, the L*a*b* nodes are mapped through the entire sequence of i correction functions. The i th correction function may be evaluated in its original functional form, or may itself be stored in a temporary three-dimensional table and approximated by three-dimensional interpolation.
Also, the values in the rendering table must be kept within range (e.g., 0<L*<100). Since the most commonly modified colors will probably have moderate L* values, keeping L* within range is not typically a problem. However, if L* is out-of-range, soft clamping techniques, like those used in the soft ink limit algorithm, may be used. In this approach, the rate at which the output L* goes to 0 and 100 approaches 0 as the input L* approaches 0 and 100 respectively. This eliminates discontinuities in slope produced by hard clamping techniques.
Additionally, an important issue is the size and node sampling in the rendering table. Both these parameters are chosen such that the weighting function is approximated with adequate accuracy. In the preferred embodiment, the weighting function and/or the node sampling are adapted to obtain the accuracy desired, which may be accomplished in one of several ways. For example, a check may be performed to determine if the current adjustment point V 0 is close to any previous adjustment points in the color space. If the current adjustment point V 0 is close to any previous adjustment points, the current node sampling is assumed to be sufficient for the current adjustment; otherwise the weighting function ƒ(U) is evaluated at the table node nearest to V 0 . If the weighting function ƒ(U) evaluated at the table node nearest to V 0 is less than a threshold T, the adjustment is not adequately approximated by linear interpolation in the table. Therefore, the weighting parameter α is adjusted to increase the footprint of the weighting function ƒ(U) or the lookup table sampling is changed. Changing the lookup table sampling may be done by adding a node level passing through V 0 in each dimension, or by re-sampling the existing nodes according to a curvature estimate. Simple curvature estimates may be made by passing linear sweeps through the cascade of correction functions and computing partial 2 nd derivatives of the output sweeps.
An alternative approach for approximating the weighting function with sufficient accuracy is to use a table size large enough to adequately capture the vast majority of user adjustments (e.g., 32×32×32).
The modifications to the color table may be permanently stored in profile of the output device 20 or temporarily stored in memory device 14 to be used for a single image. Therefore, the modifications may serve either as a mechanism for improving a problem image or as a mechanism for improving the behavior of the output device 20 . For example, the user may notice that the output device 20 produces certain colors “wrong” (e.g., in a manner not preferred). In this case, the user need only find an example of a page that was mis-rendered. Then, by modifying the color conversion of the objectionable portion of the mis-rendered page, change the behavior of the output device 20 .
In an alternate embodiment, the weighting function is determined as the sum of Gaussian functions centered around each color that is part of the region to be modified. Then, the sum of the Gaussian functions is normalized so that the maximum value of the weighting function is 1.0.
The invention has been described with reference to the preferred embodiment. Obviously, modifications and alterations will occur to others upon reading and understanding the preceding detailed description. It is intended that the invention be construed as including all such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims as granted
25 claimsLog in to read the claims of this application.
Log in to unlockClassifications
9 codes- G06T1/00
- G06T5/20
- G06T5/00
- H04N1/46
- H04N1/60
- H04N1/409
- H04N1/62
Claim changes
SoonSee which claims were amended, added or cancelled during examination, with every added and removed word marked.
The published claims of this application are not paired with the granted ones in what we hold.
File wrapper
See the full prosecution history — every USPTO and applicant action on this file, in order.
Log in to unlockDocuments
Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.
Log in to unlockChain of title
See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.
Log in to unlock