OPTIMIZATION OF GRAY COMPONENT REPLACEMENT

Information

  • Patent Application
  • 20100157372
  • Publication Number
    20100157372
  • Date Filed
    December 23, 2008
    15 years ago
  • Date Published
    June 24, 2010
    14 years ago
Abstract
Methods and systems herein provide for color conversion. Such color conversion includes a method of optimizing gray component replacement in a color image that includes receiving a color image from an input imaging device (e.g., a digital camera, scanner, etc), determining a color gamut of an output imaging device, such as a printer, and generating a CIELab to CMY numerical model to convert the color image to a color space within the color gamut of the output imaging device. The method also includes generating a CMYK to CIELab numerical conversion model, removing a portion of CMY color values generated from the CIELab to CMY numerical conversion model, and replacing the removed portion of the CMY color values with black color values. The method also includes optimizing CMYK color values via a multidimensional optimization using the CMYK to CIELab numerical model.
Description
BACKGROUND OF THE INVENTION

1. Field of the Invention


The invention relates to the field of printing systems, and in particular, to methods and systems for color conversions with toner/ink limitations.


2. Statement of the Problem


One concern in color printing regards the costs associated with toner/ink. While a certain amount of toner or ink is necessary for maintaining relatively high quality printing, toner and ink typically account for a substantial portion of the printing expenses. Traditionally, toner/ink has been conserved via a gray component replacement (GCR) process that includes under color removal (UCR) and under color addition (UCA) during color conversion. More specifically, GCR was the result of UCR followed by UCA.


In C, M, Y, K (cyan, magenta, yellow, and black) color printing, UCR is the process of eliminating certain amounts of cyan, magenta, and yellow that add to the dark neutral color, such as black. These colors are replaced with the less expensive black toner during the color separation process. However, black toner alone is not sufficiently dark and thus tends to produce relatively dull looking images (e.g., dark, less saturated, and hue shifted). UCA improves the relatively dull results of UCR by adding small portions of cyan, magenta, and yellow. However, the UCA process is empirical and fairly labor intensive due to the lack of a high fidelity model describing the nonlinear behavior of each toner. For example, UCA is commonly achieved by continually adding cyan, magenta, and/or yellow and printing until an esthetically pleasing image is produced.


As is evident, the GCR correction scheme based on the UCR and UCA is substantially error prone. Furthermore, the prior GCR is relatively incapable of dynamically adjusting to variations in print media that are known to cause variations in color conversions. Accordingly, there exists a need for a dynamic GCR that produces crisp bold images.


SUMMARY OF THE SOLUTION

Embodiments of the invention solve the above and other related problems with methods and associated systems by optimizing gray components in a color image. In one embodiment, a method of optimizing gray component replacement in a color image includes receiving a color image from an input imaging device, determining a color gamut of an output imaging device, generating a CIELab to CMY reverse numerical model to convert the color image to a color space within the color gamut of the output imaging device, and generating a CMYK to CIELab forward numerical conversion model. The method also includes removing a portion of CMY color values from the CMY values that are generated from the CIELab to CMY numerical conversion model, replacing the removed portion of the CMY color values with black color values, and optimizing the CMYK color values via a multidimensional optimization using the CMYK to CIELab numerical model. For example, optimizing the CMYK color values may entail computing the CMYK color values via an optimization algorithm, such as Newton's method using the CMYK to CIELab numerical model. The CIELab to CMY numerical conversion model and the CMYK to CIELab numerical model may each be generated according to a radial basis function.


In another embodiment, a system for optimizing gray component replacement in a color image includes a modeling module that is operable to receive a color image from an input imaging device, determine a color gamut of an output imaging device, generate a CIELab to CMY numerical model to convert the color image to a color space within the color gamut of the output imaging device, and generate a CMYK to CIELab numerical conversion model. The system also includes an optimization module that is operable to remove a portion of CMY color values generated from the CIELab to CMY numerical conversion model, replace the removed portion of the CMY color values with black color values, and optimize CMYK color values via a multidimensional optimization using the CMYK to CIELab numerical model.


In another embodiment, a printing system includes a printer operable to print to a tangible medium and a printer controller operable to process a print job including a color image from a host system and transfer the processed print job to the printer. The printer controller includes a modeling module that is operable to determine a color gamut of the printer, generate a CIELab to CMY numerical model to convert the color image to a color space within the color gamut of the printer, and generate a CMYK to CIELab numerical conversion model. The printer controller also includes an optimization module that is operable to remove a portion of CMY color values generated from the CIELab to CMY numerical conversion model, replace the removed portion of the CMY color values with black color values, and optimize CMYK color values via a multidimensional optimization using the CMYK to CIELab numerical model prior to printing via the printer. The optimization module is further operable to prepare the print job for printing via the printer.


The invention may include other exemplary embodiments described below.





DESCRIPTION OF THE DRAWINGS

The same reference number represents the same element or the same type of element on all drawings.



FIG. 1 is a block diagram of a gray component replacement system in one exemplary embodiment of the invention.



FIG. 2 illustrates a printing system employing the gray component replacement system in one exemplary embodiment of the invention.



FIG. 3 illustrates the non uniformity of CIELab chroma.



FIG. 4 is a graphical illustration of the Minimax Characterization Theorem (MCT).



FIG. 5 is a graph of exemplary toner/ink values used in color conversion in one exemplary embodiment of the invention.



FIG. 6 is a flowchart illustrating a method of performing gray component replacement in one exemplary embodiment of the invention.





DETAILED DESCRIPTION OF THE INVENTION


FIGS. 1-6 and the following description depict specific exemplary embodiments of the present invention to teach those skilled in the art how to make and use the invention. For the purpose of this teaching, some conventional aspects of the invention have been simplified or omitted. Those skilled in the art will appreciate variations from these embodiments that fall within the scope of the present invention. Those skilled in the art will appreciate that the features described below can be combined in various ways to form multiple variations of the present invention. As a result, the invention is not limited to the specific embodiments described below, but only by the claims and their equivalents.



FIG. 1 is a block diagram of a system 100 for replacing gray components in a color image in one exemplary embodiment of the invention. The GCR optimization system 100 includes a modeling module 101 that determines a color gamut of an imaging device and generates a numerical model that is used to convert color values of received image data from an input imaging device (e.g., a digital camera, scanner, or the like) to a color space within the color gamut of the output imaging device 103. For example, the modeling module 101 may receive information pertaining to the color capabilities of a printer (e.g., the imaging device 103) and, from there, may determine the printer's color gamut. The modeling module 101 may then compute a CIELab to CMY numerical model (a reverse model) to convert the color image to a color space within the color gamut of the printer. The CIELab to CMY numerical model that is generated by the modeling module 101 may be computed using a Radial Basis Function (RBF), the details of which are further described below. The modeling module 101 may also generate an RBF based numerical model for converting color values from an in-gamut CMYK color space to a CIELab color space (a forward model).


Once the numerical models are computed, the optimization module 104 may remove a portion of CMY color values from the CMY values that are generated by the CIELab to CMY reverse numerical model. For example, the optimization module 104 may identify certain color values within the CIELab to CMY numerical model that are subject to replacement by black color values within the color gamut of the imaging device 103 to optimize the CMYK color values using a multidimensional optimization method. In this regard, the optimization module 104 may remove a portion of CMY color values generated from the CIELab to CMY reverse model and replace those color values with black color values. The optimization module 104 may then apply an optimization algorithm, such as Newton's method, using the CMYK to CIELab to optimize the CMYK values in the CIELab to CMY conversion until the image meets some requisite level of clarity. Such an optimization is described in greater detail below.


The optimization algorithm reduces the errors in a CMY to CMYK conversion, potentially to zero errors. From a printing perspective, the optimization algorithm also generally reduces the amount of toner required. While it is important to reduce the costs associated with toner/ink, it is also important that the presentation on the printable medium be aesthetically pleasing. The modeling module 101 and the optimization module 104, in using the RBFs, provide a system for reducing the amount of toner used in printing while providing aesthetically pleasing images by reducing the number of color conversion errors performed in gray component replacement.


The GCR optimization system 100 may be implemented in a variety of ways. For example, the GCR optimization system 100 may be implemented as software instructions that are operable within a variety of devices, such as the printer controller of a large-scale printing system. Alternatively, the GCR optimization system 100 may be implemented as software instructions that direct any general-purpose processor to convert color values in image data to virtually any color space. Thus, the GCR optimization system 100 is merely intended to illustrate the general implementation of GCR optimization described herein.



FIG. 2 illustrates a printing system 200 employing the GCR optimization system 100 of FIG. 1 in one exemplary embodiment of the invention. The printing system 200 receives print jobs from one or more host systems 201 that are communicatively coupled to the printing system 200. Thus, when a host system user wishes to print on the two-sided medium 213, the host system user may generate a print job that directs the rasterizer 208 to do so. The printing system 200 includes a printer controller 202 that receives the print job and rasterizes the print job via the rasterizer 208. Rasterization generally regards the conversion of an image described in a vector graphics format into a raster image of pixels such as a bitmap for output to a video display or printer. Examples of a two-sided medium 213 include paper, transparent film, and any other type of material capable of being imprinted.


Prior to rasterization, the system 100 receives the image data of the print job and converts the color values therein for printing on the two-sided medium 213 while reducing toner and the costs associated therewith. In doing so, the GCR optimization system 100 determines a color gamut of the printer and generates a CIELab to CMY numerical model to convert the color image to a color space within the color gamut of the output imaging device. The GCR optimization system 100 also generates a CMYK to CIELab numerical conversion model. The system 100 removes a portion of CMY color values from the CMY values that are generated from the CIELab to CMY numerical conversion model and replaces those values with black color values. The GCR optimization system 100 then optimizes CMYK color values via a multidimensional optimization using the CMYK to CIELab numerical model prior to printing via the printer. Once the image meets a requisite level of quality, the GCR optimization system 100 prepares the image data for printing via the printer.


Those skilled in the art should readily recognize that the printer controller 201 may be implemented in software, hardware, firmware, or a combination thereof to perform the various functions associated with the printer controller 202 including the novel aspects of gray component replacement optimization as described herein. However, the invention is not intended to be limited to merely gray component replacement optimization with a printing system. Rather, the GCR optimization system 100 may be used to optimize gray component replacement of image data prior to the presentation of the image data with virtually any output device (e.g., a printer, a computer monitor, etc.).


Before discussing the numerical models for CIELab to CMYK and CMYK to CIELab color conversions in detail, a discussion of color spaces is now presented to guide the reader through an understanding of color conversions. Perceptual color spaces, such as CIEXYZ and CIELab, are visualized as three dimensional color spaces, where every color that humans can see is uniquely located. The location of any color in the space is determined by its color coordinates. In the CIEXYZ color space, the components are X, Y, and Z, where Y is luminance, X and Z do not correlate to color appearances. In the CIELab color space: the components are L*, a*, and b*, where L* is lightness of the color (e.g., L*=0 yields black and L*=100 indicates white), a* is the value between red and green (e.g., negative values indicate green and positive values indicate red), and b* is the value between yellow and blue (e.g., negative values indicate blue and positive values indicate yellow). The CIELab color space can also be described using cylindrical coordinates in the L*C*h color space where C*ab is the chroma coordinate, and h is the hue coordinate. Below are the mathematical expressions to convert a and b* into C*ab and h:










C
ab
*

=



a

*
2


+

b

*
2








(

Eq
.




1

)






h
=

tan


(


b
*


a
*


)






(

Eq
.




2

)







The relationship between CIEXYZ and CIELab may be described using the following equations:











L
*

=


116


f


(

Y

Y
n


)



-
16


,




(

Eq
.




3

)








a
*

=

500


(


f


(

X

X
n


)


-

f


(

Y

Y
n


)



)



,




(

Eq
.




4

)








b
*

=

200


(


f


(

Y

Y
n


)


-

f


(

Z

Z
n


)



)



,




(

Eq
.




5

)







where Xn, Yn, Zn are the tristimulus values of a reference white and generally referred to as the white point, described as










f


(
x
)


=

{




x

1
3





x
>
0.008856








7.787

x

+

16
116


,




x


0.008856
.










(

Eq
.




6

)







The color difference in either CIEXYZ or CIELab is generally calculated using the Euclidean distance. Though the CIEXYZ and CIELab color spaces are perceptual color spaces, they are not perceptually uniform color spaces as the Euclidean distance in the space does not correspond to perceptual distance. For example, the colors that have the same Euclidean distance with respect to an anchor color are on a circle. However, these circles are transformed to ellipsoids when the human perceptual distances are measured. The major axis of the ellipsoid represents the higher tolerance of the color difference and the minor axis of the ellipsoid represents the lower tolerance for the color difference. The CIELab color space is a perceptually more uniform color space than the CIEXYZ color space. Thus, the CIELab color space is the color space used most often for color-difference evaluations.


In the CIELab color space, the magnitude of the perceptual color difference generally depends upon the color location and the changing direction in chroma and hue. CIELab increasingly overstates the magnitudes of perceived chroma differences. For example, the human visual system (HVS) is sensitive to the change of chroma in the neutral color area. The HVS is insensitive to the change of the chroma in a highly saturated color area. FIG. 3 illustrates such change with the ellipsoid size increases 301.


The CIELab color space is also non-uniform regarding hue angle in that the thresholds of visual tolerances are a function of hue angle. If the non-uniformity of the CIELab color space in chroma and hue is examined from another perspective, CIELab colors have different characteristics at different locations. The change of these characteristics is generally continuous. Color difference models correlate the perceptual distance with the Euclidean distance in the CILElab color space based on vast amounts of color difference experimental data.


There are several CIE perceptual-based color difference models. For example, CIEDE2000 calculates the perceptual difference by weighted lightness difference, chroma difference, hue difference, and the interaction between the chroma and the hue difference. However, the CIEDE2000 was developed for small color differences and does not perform well for large color differences. The empirical weighted color differences of lightness, chroma, and hue are often used for CIEDE2000, with higher weighting factors for hue and lightness differences and lower weighting factor for chroma differences. The color difference calculated using the Euclidean distance in CIELab is called deltae, (also referred as ΔE, or dEab.) dE00 represents the color difference calculated using CIEDE2000.


The color management described herein provides for more consistent and predictable colors throughout all parts of the color reproduction chain.


In general, there are two types of color management systems among color devices: additive systems such as a computer monitor and subtractive systems such as a printer. In additive systems, colors are transmitted lights. Red, green and blue lights are referred as the additive primary colors. When used in various degrees of intensity and variation, they create all other colors of light. When superimposed equally, they create gray. Primary colors of subtractive systems like printers may be cyan, magenta, yellow, and black that are used together to effectively create a multitude of other colors based on the subtractive color theory.


The color conversions for an additive system are normally between the RGB color space and CIEXYZ color space. These conversions are relatively straightforward since the gamma corrected RGB primaries are linearly related to XYZ values in the CIEXYZ space for most devices. An example of such conversion is the conversion for the RGB colors described as follows:











(



X




Y




Z



)

=


(



0.4124


0.3576


0.1805




0.2126


0.7152


0.0722




0.0193


0.1192


0.9505



)



(




g


(

R
srgb

)







g


(

G
srgb

)







g


(

B
srgb

)





)



,




where




(

Eq
.




7

)







g


(
k
)


=

{









(


K
+
α


1
+
α


)

γ

,




K
>
0.4045







K
12.92

,




otherwise
,









γ

=
2.2

,


and





α

=

0.055
.








(

Eq
.




8

)







As is known, color printers may be toner-based or ink-based. Most of the printers are only able to produce a limited numbers of gray levels (e.g., a binary printer produces two levels (i.e., 0 and 1) 2-bit printers produce levels of 0 1, 2, and 3). In order to produce continuous tone imagery that contains an infinite range of colors or grays, a reprographic technique called halftoning is applied to create the illusion of continuous tone images through the use of dot arrangements and dots of varying size. The combination of the printer halftone design and the specific toner/ink selection determine the number of colors that a printer is physically able to produce which is called its gamut. The gamut is measured in the CIELab color space.


Printer color conversions depend the toner/ink selections and the halftone design. The conversions are generally performed between a device-dependent color space (CMYK) and a device-independent color space (CIELab). Often the format of the color conversion is an equally spaced lookup table, the values of which are either 1-byte or 2-byte integers.


In generating a printer color conversion, CMYK color patches whose values span the CMYK color spaces are printed. Each component value of CMYK is normally a 1-byte integer. The printed patches are measured using a spectral photometer which measures the spectral reflectance of each patch under a standard illuminant. The software in the spectral photometer calculates the tristimulus values and converts these values to CIELab values. The CIELab values are floating point numbers. Followed by the implementation of a data modeling algorithm and a gamut mapping algorithm, the color conversions LUTs are generated using this set of data. The CMYK and the CIELab values are normalized to the range of 0 to 1 for these calculations. Both CMYK to CIELab and CIELab to CMYK conversions may be generated for a color printer. The CMYK to CIELab color conversion is used when an image generated in this CMYK color space is to display on a monitor or to print on a different color printer. In other words, this conversion is used when the printer CMYK color space is used as a source color space. The CIELab to CMYK color conversion is used when the CIELab color space is the source color space.


For many color printers, the relationship between CMYK color space and the CIELab color space is highly nonlinear due to the interactions of cyan, magenta, yellow, and black planes in the printer subtractive system, thereby requiring complex functions. Another complication to the printer color conversion is due to the halftone design. Most halftone techniques are capable of creating color gray levels continuously. However, an abrupt change of two adjacent levels is a weakness in many halftone designs. Thus, the color conversion between CMYK and CIELab may be continuous but not differentiable.


The CMYK to CIELab color conversion is neither injective nor subjective. For example, every color in the CMYK color space may be mapped to a color in the CIELab color space. However, different CMYK values may also be mapped to the same CIELab value. So the CMYK to CIELab color conversion is not injective. The range of CIELab color space is much larger than the range of CMYK color space. That is, for many CIELab values, there are no CMYK values such that f(C, M, Y, K)→(L, a, b). Thus the CMYK to CIELab color conversion is not subjective.


Additionally, the CIELab to CMYK conversion is from R3 to R4. Thus, only one degree of freedom in this conversion exists and one CIELab value may be mapped to several CMYK values. On the other hand, because of the smaller gamut of the color printer, not every CIELab value can be mapped to a CMYK value. Since no function exists for the CIELab to CMYK color conversion, the conversion is achieved by converting the CIELab values to CMY values first and a special rule is created for adding the black toner to each CMY value.


The CIELab to CMY color conversion within a printer gamut is both injective and subjective. That is, virtually every CIELab value inside the printer color gamut can be mapped to a unique color in the CMY color space. So the CIELab to CMY color conversion is injective within color gamut. Additionally, for CMY values, there exists a CIELab value such that g(L, a, b)→(C, M, Y) where the CIELab to CMY color conversion is subjective. Out-of gamut CIELab values generally cannot be mapped to a CMY value. Therefore, no functions exist for the CIELab to CMY conversion outside the printer gamut and color conversion between the CMYK and CIELab color spaces is achieved by approximation.


Understanding the sources of error is important for the design of an approximation model. In addition, it is important to understand how these errors interfere with human perceptions for the design of the printer color conversion model. There are four significant sources of error in the color conversion process. These errors are normally measured with the Euclidean distance in the CIELab color space, ΔE, and include:

    • 1. measurement errors from the instrument, which are normally smaller than 1 ΔE;
    • 2. errors due to the machine reliability and repeatability, which for a well-calibrated printer are generally smaller than 2 units of ΔE;
    • 3. errors due to paper roughness and non-uniform paper fibers and fillers, which are typically smaller than 1 unit of ΔE; and
    • 4. errors from the model of the color conversion, which average around 3-4 units of ΔE with a maximum error between about 10 to 20 units of ΔE.


Because human perceptual tolerance varies from location to location in the CIELab color space, care is taken in the approximation algorithms in different color areas. For colors in neutral areas, the visual color difference tolerance is low (around 1 ΔE). The interpolation errors in these regions are generally small. If the accumulated errors from the first three categories are added to the modeling data, the effect of the outliers in the modeling set should be minimized. For the medium colors, with the increase of the chroma values in these areas, the perceptual tolerance increases. Though the outliers still exist, they play a much less important role in the color conversion. It is appropriate to design an approximation model to minimize the least squares error. For colors in the highly saturated color regions, interpolation errors are relatively high. The approximation algorithm is used to minimize the maximum error in the interpolation.


In general, color conversion approximation algorithms aim at minimizing least square errors. Due to the sources of error described above, emphasis is placed on the Lp error criteria, in particular the L1 and L error for a robust neutral area color conversion and the reduction of maximum error in the saturated color regions. One approximation model includes the natural neighbor interpolation method, which is based on the Voronoi region. A Voronoi region Vi is a set of points for which a center ci is the nearest center vector, as follows:






V
i
={xεR
n
i=arg minjεI∥x−cj∥},  (Eq. 9)


where I is the set of center indices. This interpolation method is a local region-based weighting method generally provides better underlying printer characteristics.


Global interpolation methods may also include the inverse distance weighting method and the RBF method. For the inverse distance weighting method, data points are used to interpolate a value by assuming that interpolated values are affected more by nearby points and less by more distant points. The assumption is not accurate for colors in many regions. Thus, this method has yielded relatively poor color conversion results. RBF data fitting equipped with an Lp error-criterion, on the other hand, improves color conversion. The embodiments described herein also take into account perceptual color difference tolerance. As mentioned, perceptual color difference tolerances generally vary over different CIELab color regions. Taking this into account, the RBF data fitting technique has the advantage of minimizing color differences in different areas with respect to human perceptions or yield results.


Although black toner/ink is one of the primaries in a color printer, the black toner/ink actually serves as a “secondary” toner in color printing. Because the mix of cyan, magenta, and yellow toner/ink produces a “muddy brown” instead of black, black toner/ink is added in to make a more rich black and thereby make other colors richer and darker. Black toner/ink also typically costs less than cyan, magenta, and yellow toner/ink making the embodiments herein more advantageous from a cost perspective.


Printer CIELab to CMYK color conversion maps from R3 to R4. Additionally, CIELab is mapped to the CMY color space using an interpolation technique, then black toner/ink denoted by K, is added. The amount of cyan, magenta, yellow toner/ink may be adjusted by applying the under color removal (UCR) and the under color addition (UCA) corrections. The typical way of applying UCR is to remove equal amounts of yellow, magenta, and cyan and replace them with the same amount of black. Gray component replacement (GCR) is the result of UCR followed by UCA. However, colors resulting from UCR are generally dark, less saturated, and hue shifted. UCA may be applied to improve the weakness of UCR. Small portions of the three colors of cyan, magenta, and yellow may be added back to these areas. The UCA process is empirical and relatively processor intensive due to the mapping from a lower dimensional space to a higher dimensional space (e.g., R3 to R4) and the lack of a high fidelity model describing the nonlinear behavior of each toner. UCA is normally achieved by printing many patches and choosing the best results. In practice, the UCR and UCA correction schemes introduce errors in the color conversion process.


Because the CIELab to CMYK conversion is a map from R3 to R4, a set of CMYK values corresponding to the same CIELab value may be established. In this regard, g denotes a mapping from the CIELab values to the CMYK values such that





∃{(C,M,Y,K)(i),i=1,2, . . . k},s.t.,g−1(C,M,Y,K)(i)=(L,a,b),  (Eq. 10)


where, i=1; 2; . . . ; k. These level sets of CMYK values may be found through an optimization process if approximation models are developed for the CMYK to CIELab conversion and the CIELab to CMY conversion.


As mentioned, gamut mismatch is problematic in color reproduction systems since each device has a different gamut. In general input devices such as digital cameras, scanners, etc., generate more colors than the output devices such as color printers. When the input color space is larger than the gamut of the output color device, gamut mapping algorithms are applied. The gamut mapping process transforms a point in the source gamut to a realizable color inside the gamut of the output device (e.g., a destination gamut). The form of this transformation can impact the quality of the reproduced images, especially print images. For high-end digital printers, the gamut is relatively small. The maximum error of color conversions normally derives from mapping an outside-gamut color to an inside-gamut color mapping.


In the gamut mapping process, a device color gamut boundary may be initially identified. The calculated boundaries are normally connected lines. Previous gamut mapping algorithms mapped out-of-gamut points directly to the destination gamut. The most typical gamut mappings include clipping and scaling algorithms. Clipping algorithms clip out-of-gamut points to the destination gamut boundary. Scaling algorithms, on the other hand, scale the input color gamut to output color gamut such that some out-of-gamut points are mapped inside the destination gamut while others are mapped to the boundary of the destination gamut. The mapping directions may include a choice of lines along which the mapping is applied (e.g., a line changing in chroma at constant lightness and hue) that are often decided based on visual experiments. The mapping directions may also be along the lines of constant perceptual attribute predictors (e.g., constant lightness and hue, constant saturation and hue), along the lines towards a single center-of-gravity (e.g., the center is the compression towards L*=50 on lightness axis), along the lines towards variable center-of-gravity (e.g., the cusp is the compression towards lightness of cusp on lightness axis), or along the lines towards the nearest color in the reproduction gamut (e.g. as is the case with minimum ΔE clipping).


The large variability in past color gamut mapping suggests that no universal gamut mapping algorithm works for every device and image. Ideal gamut mapping generally depends on image content, preservation of perceived hue throughout color space, and the extent of the gamut mismatch in various regions of color space. Relationships among color data developed by a numerical model have not previously been considered in the gamut mapping process. The underlying relationship among color data may more accurately retain or rationally transform after gamut mapping. Such is achieved herein using a numerical model with guidance from the perceptual model.


The numerical model quantitatively compares the color difference between the original color and the printed color. The original colors are the CIELab colors. These colors are converted with the printer color conversion to the CMYK colors. The CMYK colors are sent to the printer to print and then measured by spectral photometers. The numerical method tests the approximation errors inside color gamut and gamut mapping results out-side the color gamut. The mean error and the maximum error may be calculated using either dEab or dE00 for the color conversion inside the printer gamut. The maximum conversion error is often weighted more than the mean error in the evaluation because the color difference is more objectionable than the average color difference.


The perceptual model, on the other hand, correlates human perceptions with physical stimuli. A set of test images including pictorial images, vector graphics, and text samples are printed from the printer. The colors in the images include highlight colors, low-light colors, saturated colors, and out-of-gamut colors. Observers look at these images and make perceptual judgments based on the selected psychophysics method, such as the paired comparison method. On such experiments, observers are asked to compare an image pair converted by different color conversion methods. The original photos are normally presented as the reference. Typical questions are “Which one do you like better?”, “Which one is more similar to the original image?”, etc. The data is analyzed and converted to perceptual values using Thurstone's law of comparative judgment.


To assist the reader in the development of the numerical model, this disclosure broken into certain sections. Specifically, the sections are entitled “FITTING NON-LINEAR SCATTERED DATA”, “OVERDETERMINED LINEAR SYSTEMS IN THE L SENSE”, “COLOR CONVERSION USING THE LI NORM APPROXIMATION”, “ONE DIMENSIONAL COLOR MANIFOLDS IN THE CMYK COLOR SPACE”, “COLOR CONVERSION WITH INK LIMITATIONS”, and “GAMUT MAPPING”. The section entitled “FITTING NON-LINEAR SCATTERED DATA” provides the reader with a detailed description of solving printer color conversion problems using RBFs and data fitting techniques adapted to the L and the LI error criteria. The section entitled “OVERDETERMINED LINEAR SYSTEMS IN THE L, SENSE” presents the reader with the Barrodale and Phillips dual algorithm (the “BP” algorithm) and the Bartels, Conn, and Li primal algorithm (the “BC” algorithm) for converting relatively large sparse problems to linear programming problems. The section entitled “COLOR CONVERSION USING THE LI NORM APPROXIMATION” illustrates a general LI approximation for overdetermined linear systems, the BR algorithm for solving the primal problem, and the LI approximation as it is used in color conversion. The section entitled “ONE DIMENSIONAL COLOR MANIFOLDS IN THE CMYK COLOR SPACE” introduces the reader to an optimized GCR algorithm with relatively high quality toner/ink selection. The section entitled “COLOR CONVERSION WITH INK LIMITATIONS” discusses toner/ink limitations implemented as a constraint in the linear programming problem formulations. The section entitled “GAMUT MAPPING” introduces the reader to the concept of numerical gamut mapping based on the RBFs discussed above and enhanced by the perceptual gamut mapping.


Fitting Non-Linear Scattered Data

Problems with the interpolation techniques are overcome through the use of RBFs that include data fitting techniques adapted to L and L1 error criteria. Additionally, a perceptual color model is used to guide the implementation of the RBFs. For example, in order to solve nonlinear approximation problem using RBFs, a clustering algorithm is employed using the combination of the Linde-Buzo-Gray (LBG) algorithm and the covariance matrix-based algorithm. RBFs may then be selected and parameters thereof may be optimized. Approximation algorithms are generated for the Lp norm (emphasis on the L, L2, and L1 norm) for the neutral, intermediate, and saturated color areas. A K-fold cross validation then refines the model parameters and an optimized overlapping area between two different models is determined.


Theoretically, a color printer is capable of producing at least 4 bytes of colors (1 byte each of cyan, magenta, yellow, and black). A subset of these CMYK colors and their associated CIELab values may be used to generate a color conversion model. Because of the underlying complicated characteristics of a color printer, a large CMYK data set and the associated CIELab values (often above 2000 data points) are selected to generate the color conversion model. The data selection depends in part on the halftone design which occasionally yields a nonlinear response. The data selection also depends on the perceptual color difference tolerance as the perceptual color difference tolerances vary over different CIELab color regions. Therefore, different color conversion models should be generated for different regions based on the perceptual color difference tolerance. The continuity and smoothness of these color conversion models are important to the overall quality of the color conversion. RBFs provide the flexibility of applying to both the interpolation and approximation data fitting problems. RBFs are useful to interpolate scattered data as the associated system of linear equations is invertible under relatively mild conditions on the locations of the data points.


Generally, RBFs are useful for approximating an unknown function from the data in the form











f


(
x
)


=

Ax
+

a
0

+




i
=
1

N




w
i



φ


(



x
-

c
i




)






,




(

Eq
.




11

)







where f(x) is assumed to be continuous and differentiable over a compact domain of xεRn and f(x)εR. The term Ax represents the linear component of the mapping and the offset a0 allows for the mean of the data to be non-zero. The nonlinear portion of the map is represented by the superposition of the nonlinear function φ weighted by vectors wi.


The RBF has several important features. For example, the weight parameters may be determined using linear models, the RBFs may be either local or global and the locations of the basis functions may be adapted using different clustering routines. For color conversion, the Voronoi region, for example, may provide relatively good clustering because it can incorporate the color difference model to characterize each cluster with its unique characteristics. Also, RBFs generally do not require data to lie on any sort of regular grid and the function f(x) is continuous and differentiable.


Traditionally, the weights wi were determined by minimizing the mean-square error. However, due to the unique error characteristics in color conversion, the algorithms for solving the RBFs' weights using Lp norm emphasizes L norm, L2 norm, and L1 norm. Accordingly, the approach describes herein includes choosing a training/testing data set for color conversion, clustering the color data, determining the centers optimizing the number of centers, and optimizing RBFs and parameter selections. Then, the Lp norm selections (specifically, the L, L2, and L1 norms) may be optimized and the RBFs combined with linear programming for the L norm and L1 norm approximation employing the duality theorem. Thereafter, the perceptual color model may be employed to improve the qualitative result.


The color conversion model is built based on the availability of a data set of input-output pairs, such as CMYK vs. CIELab. There are many ways to select a set of training data. For example, the CMYK colors in regular grids may be selected or the CMYK colors based on the halftone curves may be selected. In any case, the CMYK data is printed on a color printer and measured in the CIELab color space. For the CMYK to CIELab conversion, these CIELab values are random within the printer gamut and can be expressed for f: R4→R3 in the following form:





{x(i)=(C,M,Y,K)(i)εR4,i=1,2, . . . , m}  (Eq. 12)





{y(i)=(L,a,b)(i)εR3,i=1,2, . . . , m},  (Eq. 13)


where m is the number of color pairs in the data set. For the CIELab to CMYK conversion, g: R4R3





{x(i)=(L,a,b)(i)εR3,i=1,2, . . . , m}  (Eq. 14)





{y(i)=(C,M,Y,K)(i)εR4,i=1,2, . . . , m}.  (Eq. 15)


The printer color conversions described herein include both CMYK to CIELab and the CIELab to CMYK color conversions. The CIELab to CMYK conversion is achieved by converting the CIELab values to the CMY values first and then adding black to each CMY value via the GCR process. Therefore, the CMYK set should have enough CMY and K values. Generally, the grid points of cyan, magenta, yellow, and black components are used to represent the curve change of each component created by the halftone process. This means that the grids point may not be equally spaced.


Data clustering is used to identify the locations where basis functions should be placed in the model. In general, RBF algorithms focus on placing functions such that the mean square error is minimized. Due to the uniqueness of perceptual color characteristics, the location of the basis function should be placed in the local regions which have similar properties in terms of human visual tolerances. As mentioned, the CMYK values are device-specific values and do not directly relate to human perception. In the construction of the mapping g: R4R3 and f: R4R3, clustering is performed on the CIELab data so the characteristics of the color data can be described by each cluster. The visual tolerances of color data may be determined using a color difference model. The most recent color difference model CIEDE2000 is used as the distance metric for each color relative to the center color because the distances are designed to be small.


The clustering algorithm also combines the Voronoi-based clustering algorithm with a subset selection algorithm. Because the CIELab data are random, a random center selection algorithm may be used as the first step for clustering/center selections. The clustering algorithms are then used to identify the clusters and to refine the center of each cluster. There are several efficient clustering algorithms available that may be used including “k-means,” LBG, and topology-preserving mappings. The algorithm generally proceeds by selecting an initial number Nc of centers randomly from the m data points in the training set and, for each center, computing the Voronoi set (i.e., all points in the data closest in the perceptual color space to this center relative to other centers). Then, the centers as the mean of the points in the Voronoi set are updated. This is repeated until the CIELab values of these centers no longer change. The clustering algorithm described above can be effectively combined with a subset selection algorithm, such as the orthogonal least squares (OCS) algorithm or the covariance matrix algorithm of commonly owned and co pending U.S. Patent Application Publication No. 2007/009796, the entire contents of which are incorporated by reference, to eliminate unnecessary clusters.


The OLS algorithm identifies which of the N centers are most useful in the RBF model and indicates which centers may be deleted from the model and at what expense to accuracy expressed in color difference. The computation of the weight parameters in Eq. 11 is an over-determined least squares problem. Thus, a solution is sought to the set of inconsistent equations,





y=Φw,  (Eq 16)


where each column of the matrix (is associated with a single center and f does not actually reside in the column space of Φ. In general, a quality function is associated with a center. In this case, the value of a column øi of Φ is measured to solve the least squares. One measure is the cosine of the angle between f and each column of Φ, such as










v
i

=



(



f
T



φ

(
i
)






f






φ

(
i
)






)

2

.





(

Eq
.




17

)







In other words, the center is the one for which vi is largest (i.e., where the angle is smallest). This solution is indexed by i* meaning øi* is the solution to optimization. Once the column and hence the RBF center of Φ has been determined, the next best center can be computed by projecting the remaining columns along øi*. This approach may be iterated to obtain a reduced subset of centers that has acceptable modeling accuracy. This algorithm may therefore proceeds as follows:


Let k=1, 2, . . . , Nc


Step 1: k=1










i
1

=

arg







max


(



f
T



φ

(
i
)






f






φ

(
i
)






)


2






(

Eq
.




18

)







q

(
1
)


=

φ

(

i
1

)






(

Eq
.




19

)







Step k=1














α
jk

(
i
)


=



q
j
T



φ
i




q
j
T



q
j




,




1

j
<
k







(

Eq
.




20

)







q
k

(
i
)


=


φ
i

-




j
=
i


k
-
1





α
jk

(
i
)




q
j








(

Eq
.




21

)







i
k

=

arg







max


(



f
T



q
k

(
i
)






f






q

(
i
)






)


2






(

Eq
.




22

)







where ik≦i≦Nc, i≠i1, . . . i≠ik−1, and










q
k

=


q
k

i
k


=


φ

i
k


-




j
=
1


k
-
1





α
jk




q
k

.









(

Eq
.




23

)







The algorithm ends at the Mth step when











1
-




j
=
1

M



(


(



f
T



q
j





f






q
j





)

2

)



<
ρ

,


where





0

<
ρ
<
1





(

Eq
.




24

)







A cluster can also be described by its mean vector and variance-covariance matrix. The mean vector is the center of the cluster and the variance-covariance matrix consists of the variances of the color data points along the main diagonal and the covariance between each pair of color components in the other matrix positions. For example, if a cluster is in the CMYK color space, the covariance of this cluster provides a measure of the strength of the correlation between any two color components. Let the center CMYK value of a cluster be x=( C, M, Y, K) (i.e., x1= C, x2= M, x3= Y, x4= K) and let mc denote the number of data points in a cluster. The formula for computing each element COVjj′ in a 4×4 CMYK covariance matrix for a cluster is:











COV

jj



=




i
=
j

mc




[


(


x
j
i

-


x
_

j


)



(


x

j


i

-


x
_


j




)


]

/

(


m
c

-
1

)




,




(

Eq
.




25

)







where j; j′=1, . . . , 4. When the rank of the covariance matrix is less than the number of the input color components, the correlations are not all independent of each other. Also, the number of the data points in the cluster is less than the number of color components.


A Gaussian function which can be expressed as the function of the covariance matrix is not selected if a non-full rank cluster exists. Thus, the clustering algorithm proceeds by calculating the covariance matrix of each cluster and, if the rank of the covariance matrix of a cluster is less than the number of input color components, the center of this cluster is deleted and the data points in the cluster are moved to nearby clusters. Thereafter, the center of each cluster is updated and the LBG algorithm is updated to refine each cluster. This is repeated until every cluster has a full rank covariance matrix.


The radial basis functions themselves are generally selected so that they satisfy an invertibility condition on the square interpolation problem for the weights. These functions have expansions, such as those given by Eq. 11, that represent continuous functions over compact domains. The location of these functions is stipulated by the vector centers {ck} generally scattered over the domain in a manner that reflects the distribution of the data. Both theoretical investigation and practical results suggest that the choice of the nonlinearity ø(·) is not critical to the performance of the RBF. However, for the color conversions from CMYK to CIELab, and CIELab to CMYK, the multiquadric function





φ(x)=√{square root over (r2+x2)}  (Eq. 26)


is generally more accurate. Other functions that may be used include the Gaussian










φ


(
x
)


=

exp


(


-

x
2



r
2


)






(

Eq
.




27

)







and the inverse multiquadratic function










φ


(
x
)


=


1



r
2

+

x
2




.





(

Eq
.




28

)







Regardless of the function used, the radius r in Gaussian, multiquadratic, and inverse multiquadratic is optimized. Generally, the multidimensional Newton's method is an efficient optimization method for 2-norm least square settings. In this case, the objective function aims at minimizing the mean error. For example, using the color conversion from CMYK to CIELab:R4→R3,











f
L



(


x
i

,

r
L


)


=



A
L



x
i


+

a

L





0


+




j
=
1

n




w
Lj




φ
L



(





x
i

-

c
j




,

r
L


)









(

Eq
.




29

)








f
a



(


x
i

,

r
a


)


=



A
a



x
i


+

a

a





0


+




j
=
1

n




w
aj




φ
a



(





x
i

-

c
j




,

r
a


)









(

Eq
.




30

)








f
b



(


x
i

,

r
b


)


=



A
L



x
i


+

a

b





0


+




j
=
1

n




w
bj




φ
b



(





x
i

-

c
j




,

r
b


)









(

Eq
.




31

)







The problem formulation is thus:










E


(


r
L

,

r
a

,

r
b


)


=




i
=
1

m



[









f
L



(


x
i

,

r
L


)


-

y
1
i


)

2

+











f
a



(


x
i

,

r
a


)


-

y
2
i


)

2

+










f
b



(


x
i

,

r
b


)


-

y
3
i


)

2




]






(

Eq
.




32

)







E
min

=

E


(


r
L

,

r
a

,

r
b


)






(

Eq
.




33

)







Then for each iteration, let










g

(
k
)


=

(






E

/

r
L









E

/

r
a









E

/

r
b





)





(

Eq
.




34

)







F


(
k
)


=


(








2


E




2



r
L








2


E





r
L






r
a









2


E





r
L






r
b














2


E





r
a






r
L









2


E




2



r
a








2


E





r
a






r
b














2


E





r
b






r
L









2


E





r
b






r
a









2


E




2



r
b







)

.





(

Eq
.




35

)







Accordingly,





r
k+1
=r
(k)
−F(r(k))(−1)g(k).  (Eq. 36)


For every r(k+1), the weighting factor wj's are updated and the new function E(r) is obtained. The iteration stops when E(r) does not improve.


The algorithms for RBF data fitting may depend on the selection of norms. For color conversions, the norm may be selected considering the visual tolerance of the colors in the CIELab color space and the source of errors in the color conversion process. For example, different norms should be selected for differential color regions, such as


L1 norm:












x


1

=




i
=
1

m





x
i








(

Eq
.




37

)







L2 norm:












x


2

=





i
=
1

m



x
i
2







(

Eq
.




38

)







L norm:












x




=


max

1

x

m







x
i



.






(

Eq
.




39

)







The relationship of errors via L1norm, L2 norm, and L may be stated as:


For all e in C[a; b] the inequalities,





e∥1≦(b−a)1/2∥e∥2≦(b−a)∥e∥  (Eq. 40)


hold.


This theorem indicates that it small errors are found via L norm, then the errors via L1 norm and L2 norm are also small. Thus, [a, b]=[0, 1], and the CIELab color space may be heuristically chosen in three regions:


1. Neutral region: 0≦Cab*≦7;


2. Medium color region: 7<Cab*≦30; and


3. Saturated color region: Cab*>30,


where Cab* is the chroma of colors in CIELab color space.


For the neutral color region, the visual color difference tolerance is relatively small. Error from the measurements and machine can affect the accuracy of color conversion. The L1 norm is chosen since it is least sensitive to the outliers. For the medium color range, the color difference tolerance is larger and the errors from the measurements and machine play less of a role affecting the quality of the color conversions. However, control of the color conversion error should be less than a magnitude of 2 so the color difference is less visible. The L2 norm is chosen to minimize the average error. For the saturated color regions, the errors are generally small compared to the color conversion error of gamut mapping and it is unlikely for the HVS to detect any errors with magnitude less than 2. To minimize the maximum error of the color conversion, the L norm is generally chosen. As mentioned, the continuity and smoothness are important to the quality of the color conversion. When adjacent clusters or two adjacent regions have different mapping functions, data in the adjacent clusters may be included in the current cluster. Overlapping ranges specified as δ's for each region are optimized. The δ values are the distances calculated in the CIELab color space. The data regions partitioned for the L1, L2, and L approximation are:


1. L1 approximation: 0≦Cab*<7+δn. Intended range: 0≦Cab*≦7;


2. L2 approximation: 7−δml<Cab*<30+δmu. Intended range: 7≦Cab*≦30;


3. L approximation: Cab*>30−δs. Intended range: Cab*≧30,


where δn is the extended region for the L1 norm, δml and δmu are the upper and lower extended regions for the L2 norm, and δs is the extended region for the L norm. For the CMYK to CIELab conversion, the domain space is the undivided CMYK color space. For the Cielab to CMY conversion, the domain space is the CIELab color space divided into three regions based on the selected set of training data described above. Although shown and described with a particular range, the invention is not intended to be so limited. For example, the approximation may be varied as desired to change the granularity of the approximation.


Validation techniques, such as “cross validation” and “bootstraps”, may be used for model accuracy estimation and model selection. Among the cross validation techniques, the “K-fold cross” validation and the “leave-one-out” cross validation may be used. Using the cross validation technique, the absolute accuracy and the bias of variances should be balanced.


In general, several thousand data points are selected for building a color conversion model. A relatively large K number may be chosen to ensure the model accuracy. Different from other cross validation applications, the evaluation of color conversion models involves both numerical analysis and psychophysics analysis. For the numerical analysis, the test data set is collected spanning the input color space. For the perceptual analysis, a number of images may be selected in a visual experiment.


L1, L2, and L approximations may be used to select the K value to the color conversion. For the L2 approximation, the mean error may be used as the measure for the model selection. And, for the L1 and L approximations, the L1 error and maximum error may be calculated instead, respectively. In any case, the variance as a function of the K value may be obtained to decide the K value. The cross validation technique is described using CMYK to CIELab conversion as an example. First, the modeling set is divided into K-fold partition data sets. For each of K experiments, K−1 folds are used for training with the remaining one for testing. Then, K-fold cross validation is applied to determine the best K value and model. The mean error decreases with the increase of the K value for K<10 and it stays roughly at the same level for K>15. On the other hand, the variance of the mean error stays relatively flat for K<15 and increases with the increase of the K value. Although the maximum error decreases and the mean error stays relatively flat for K>15, the K value for the least squares approximation for the color conversion is generally 15 due to the increase of the variance.


The CMYK to CIELab conversion may be performed using the RBF data fitting algorithm in the L2 norm. In this regard, data may be clustered using the combination of the LBG algorithm and the covariance matrix algorithm. Generally, there are two optimization stages. Initially, a relatively good starting function and radius for the R4→R3 optimization is sought. Then, models of R4→R for the CMYK to L*, a*, b* conversions are sought.


In the next modeling stage, fL, fa, and fb are set to multiquadratic with initial rL, ra, and rb. The multidimensional Newton's method is then applied to optimize these parameters. For the CIELab to CMY conversion, both data range (δml and δmu) for the least squares approximation and the color conversion model are optimized by letting δml0, δmu=0, and k=0, such that sk={(L,a,b)jk|7≦Cabjk*≦30}, and initiating the clustering algorithm to find the clusters. Then, R3→R is optimized for the CIELab to C, M, and Y conversions, respectively. The multidimensional Newton's method of R3→R3 is performed for the CIELab to CMY conversion and the mean error and maximum error are recorded.


Afterwards, let δml=2.5, δmu=2.5, and k=0, such that sk={(L,a,b)jk|7−2.5k≦Cabjk*≦30+2.5k, k=1, 2, . . . ,} repeat the optimization process stopping when all data points are included in sk. The least square errors are obtained by calculating the differences between the original values and the estimated values. The optimized models indicate the Gaussian function for the cyan component, the inverse multiquadratic for the magenta component, and the multiquadratic function for the yellow component, thereby providing inside gamut color conversions from CIELab to CMY, g0, and CMY to CIELab, f0.


Overdetermined Linear Systems in the L Sense

In saturated color areas, the perceptual color difference tolerance is generally higher than the magnitude of machine and instrument errors. Data outliers do not play a significant role in the color conversion. The maximum error is weighted in the color conversion quality assessments. Thus, it is desirable to reduce the maximum approximation error by solving the problem via the L approximation, also referred as the Chebyshev norm. From norm inequalities if L norm is controlled, then the L1 and L2 error is generally small.


Many algorithms have been developed for this type of application function approximation using the L norm that are locally equivalent to the exchange algorithm. However, there is limited research on scattered data fitting techniques using the L norm especially for the large sparse problems. Large sparse problems are often converted to linear programming problems using the linearized sub-problem as the basis. Among these algorithms, the Barrodale and Phillips dual algorithm (the “BP” algorithm) and the Bartels, Conn, and Li primal algorithm (the “BC” algorithm) are suitable algorithms for solving overdetermined linear systems Rn→R in the Chebyshev norm.


The BP and BC algorithms may be suitable in view of the similarity of the formulations with the RBF approach. As the BP and BC algorithms are generally used in Rn→R, the extension of the BP dual algorithm may be extended to R3→R3 for color conversion from CIELab to CMY. In this regard, the Chebyshev norm may be described by letting





Ax=b,  (Eq. 41)


where A=[a1, a2, . . . , an]εRm×m, m>n≧2, and bT=[β1, β2, . . . , βn]εRm. Then, the vector xεRn is determined such that













Ax
-
b





=


max

1

i

m








a
i
T


x

-

β
i









(

Eq
.




42

)







is minimized. L is then defined as a linear space spanned by the functions {φi}






L=<φ
1(z), φ2(z), . . . , φn(z)>,  (Eq. 43)


where each φi is continuous on [a,b], j=1, . . . , n. A function φεL may then be expressed as











φ


(
z
)


=





j
=
1

n




α
j




φ
j



(
z
)





L


,




(

Eq
.




44

)







where zε[a,b]. The RBF is a relatively good example of such a space. Given m>n≧2, data points {(zi; yi); i=1; 2; . . . ; m}, α=(α1, . . . , αn) is determined to minimize










e


(


α
1

,





,

α
n


)


=





y
i

-




j
=
1

n




α
j




φ
j



(

z
i

)













(

Eq
.




45

)











=


max

1

i

m








y
i

-




j
-
1

n




α
j




φ
j



(

z
i

)







.







(

Eq
.




46

)







Then,








x
=

α
=

{


a
1

,

α
2

,





,

α
n


}






(

Eq
.




47

)






A
=

(





φ
1



(

z
1

)






φ
2



(

z
1

)









φ
n



(

z
1

)
















































φ
1



(

z
m

)






φ
2



(

z
m

)









φ
n



(

z
m

)





)





(

Eq
.




48

)





and










b
=



(


y
1







y
2













y
m


)

T

.





(

Eq
.




49

)







Next, the L approximation may be converted to a standard form of the linear programming. First, however, the primal form of the problem is established by letting ξ denote the maximum error. For example,










ξ
=


max

1

i

m





e
i



(


α
1

,

α
2

,





,

α
n


)




,




(

Eq
.




50

)







where e is defined in Eq. 41.


The primal problem may then be formulated by minimizing ξ subject to









=


ξ
+




j
-
1

n




α
j




φ
j



(

z
i

)








y
i






and






(

Eq
.




51

)







=


ξ
-




j
-
1

n




α
j




φ
j



(

z
i

)







-

y
i




,




(

Eq
.




52

)







for every i where





ξ≧0  (Eq. 53)





and





α12, . . . , αn are unrestricted.  (Eq. 54)


The standard form of the corresponding dual linear program may be transformed from the above primal linear program via









max





i
=
1

m




(



σ
_

i

-


τ
_

i


)



y
i







(

Eq
.




55

)







subject to













i
=
1

m




(



σ
_

i

-


τ
_

i


)


φ






j
i



=
0




(

Eq
.




56

)










i
=
1

m



(



σ
_

i

+


τ
_

i


)



1




(

Eq
.




57

)





and











σ
i

,


τ
i


0

,

i
=
1

,
2
,







m

,




(

Eq
.




58

)







where φjij(zi)


To understand the BP dual algorithm, an understanding of the exchange algorithm and related theorems which almost all Chebyshev approximation algorithms are based is helpful. In this regard, A may be defined as a linear subspace of C [a,b],fεC [a, b], and L is any closed subset of [a, b], pεA, such that






e*(x)=f(x)−p*(x)  (Eq. 59)





and






L
M
={xεL|e*(x) obtains extreme values}.  (Eq. 60)


p* provides for a minimax solution to be approximation from A to f, if ∀pεA, such that






e*(x)p(x)=[f(x)−p*(x)]p(x)>0,∀xεLM  (Eq. 61)


(e.g., e*(x) and p(x) are of same signs at all extreme points).


In this regard, the “Haar” condition defines a class of functions upon which the Exchange Algorithm can be applied. For example, A may be defined as an (n+1) dimensional linear subspace of C[a, b]. A satisfies the Haar condition if ∀pεA, the number of roots of the equation





{p(x)=0;a≦x≦b}  (Eq. 62)


is less than the dimension of A.


A derived condition states that if {ξi:i=1; 2, . . . , k}⊂[a, b], k≦n then ∃pεA, such that p changes signs at ξi: i=1; 2, . . . , k and p has no other roots. The RBFs in the form of Eq. 11 meet the Harr condition because of the linear part in the equation. Then, let A be an (n+1)-dimensional linear subspace of C[a, b] that satisfies the Haar condition and let f be any function in C[a, b]. Then p* is the minimax approximation from A to f, if there exists (n+2) points {ξ1*; i=0; 1; . . . ; n+1}, such that the conditions


1. a≦ξ0*<ξ1*< . . . <ξn+1*≦b,


2. |f(ξi*)−p*(ξi*)|=∥f−p*∥,i=0, 1, . . . , n+1 and


3. f(ξi+1*)−p*(ξi+1*)=−[f(ξi*)−p*(ξi*)],i=0, . . . , n, alternative signs]] are obtained.


Then, let A be a finite-dimension subspace of C[a, b] that satisfies the Haar condition and let {xi: i=1; 2; . . . ; m} be a set of distinct points from [a, b], where m is not less than the dimension of A. For any f in C[a, b], let the one-point exchange algorithm be applied to calculate the element of A that minimizes expression











max


i
-
1

,
2
,







m








f


(

x
i

)


-

p


(

x
i

)






,

p

A





(

Eq
.




63

)







Then, the required approximation to f is obtained in a finite number of iterations.


In color conversion may compose a set of discrete data points. Thus, the Exchange Algorithm may be based on the Minimax Characterization Theorem (MCT) as shown in FIG. 4. For each iteration k, the MCT adjusts a reference {ξi*i=0; 1; . . . ; n+1} and a trial approximation pk is determined. On a discrete set, f may be known on a set of points {xi; i=1; 2; : : : ; m}. To determine a trial approximation pk in each iteration, let






h=f0)−pk0)  (Eq. 64)





and solve






fi)−pi)=(−1)ih,i=+0, 1, 2, . . . , n+1  (Eq. 65)


The iteration stops when pk satisfies the conditions in the MCT.


For solving the dual problem, the BP dual algorithm is reviewed. The BP dual algorithm is based on the standard form of the simplex method composed of three stages and introduces artificial variables αj in Eq. 55 and a slack variable ξ in Eq. 56. The above dual problem thereby becomes









max





i
=
1

m




(



σ
_

i

-


τ
_

i


)



y
i







(

Eq
.




66

)







subject to















i
=
1

m




(



σ
_

i

-


τ
_

i


)



φ

j
i




+


α
_

i


=
0

,

j
=
1

,
2
,





,
n




(

Eq
.




67

)











i
=
1

m



(



σ
_

i

-


τ
_

i


)


+

ξ
_


=
1




(

Eq
.




68

)






ξ
,


α
_

i

,


-


τ
_

i



0

,

j
=
1

,
2
,





,

m
.





(

Eq
.




69

)







Denoting the column vectors formed by the coefficients of σi, αi, τi, and ξ by si, ti, aj, and w, then







si+t

i=2w  (Eq. 70)


Then, let b denote the right-hand side of Eq. 52 such that






b=w=(0 0 . . . 0 1)T=en+1T.  (Eq. 71)


The first two stages of the BP dual algorithm include determining an efficient starting point for the third stage, which is equivalent to the exchange algorithm for the linear minimax approximation. In doing so, the BP dual algorithm uses the table below:





























Then, Φ is denoted as an m×n matrix:









Φ
=


(




φ

1
,
1





φ

2
,
1








φ

n
,
1







φ

1
,
2





φ

2
,
2








φ

n
,
2















































φ

1
,
m





φ

2
,
m








φ

n
,
m





)






and





(

Eq
.




72

)







the rank of Φ is denoted as k.


In the first stage, the first k simplex iterations are performed. The algorithm finds the maximum residual at each iteration and reduce it to zero. The nonbasic variables that can enter the basis to become basic variables are σj's, and basic variables that can leave the basis to become nonbasic variables are restricted to αis. Basic variable ξ remains zero in the basis. At the end of stage 1, there are k residues at zero. σt that enters the basis corresponds to that with the largest absolute reduced cost (e.g., choosing the largest residual in the primal problem). The pivot may be selected from this column as the largest absolute value corresponding to an αj in the basis. At the tth iteration, with the corresponding σt entering the basis, there are t zero residuals. For example,











y
t

-




j
=
1

n




α
j




φ
j



(

z
t

)





=

ξ
=
0.





(

Eq
.




73

)







In the second stage, the (k+1)th simplex iteration is performed and the variable ξ is forced to leave the basis. This means the error ξ in the primal problem is increased above zero. At the end of the second stage, the k+1 residuals of magnitude equal to resulting value of ξ. The (k+1)th pivotal column may be chosen also corresponding to the largest absolute marginal cost (e.g., equivalent to choosing the largest residual in the primal problem). The σj's and τj's are exchanged if the marginal cost is negative. If there are positive values in the first n elements in the pivotal column, these values are changed to negative by adding twice of the corresponding rows to the (n+1)th pivotal row and changing the sign of those original rows.


The third stage is equivalent to the exchange algorithm for a linear minimax approximation. The pivotal column may be chosen corresponding to the most negative marginal cost or a ratio selection rule. The iteration continues until all marginal cost is nonnegative. Every iteration may increase the value of ξ until ξ=e*, where e* is the minimum value in Eq. 45.


Alternatively, the BC algorithm may be used to determine the starting point for color conversion. In doing so, the primal formulation in Eq. 45 is rewritten by letting










c
0

=


(

1





0





0





0











0

)


n
+
1

T





(

Eq
.




74

)







c
i

=


(



1





-

a
i





)


n
+
1






(

Eq
.




75

)







c

m
+
i


=


(



1





+

a
i





)


n
+
1






(

Eq
.




76

)







δ
i

=

-

y
i






(

Eq
.




77

)








δ

m
+
i


=

y
i


,

i
=
1

,
2
,





,
m
,
and




(

Eq
.




78

)






v
=


(



ξ




α



)


n
+
1






(

Eq
.




79

)







The above primal problem is then converted to an unconstrained optimization problem via a piecewise linear penalty function. For example, let μ>0 be a fixed parameter and define










p


(

vi
,
μ

)


=


μ






c
0
T


v

-




j
=
1


2





m




min


(

0
,



c
j
T


v

-

δ
j



)








(

Eq
.




80

)







For any arbitrary vεRn+1, Eq. 80 can be expanded into










p


(

v
,
μ

)


=


μ






c
0
T


v

-




j


I
0





min


(

0
,



c
j
T


v

-

δ
j



)








(

Eq
.




81

)






-




j


I
+





min


(

0
,



c
j
T


v

-

δ
j



)







(

Eq
.




82

)







-




j


I
-





min


(

0
,



c
j
T


v

-

δ
j



)




,




(

Eq
.




83

)







where


I0=I0(v)={j|cjTv=δj}={j1,j2, . . . , jk},


I+=I+(v)={j|cjTv>δj}, and


I=I(v)={j|cjTv<δj}.


For any dεn+1 and any λ≧0 sufficiently small,










p


(


v
+

λ





d


,
μ

)


=


p


(

v
+
μ

)


+

λ


[





μ






c
0
T


d

-




j


I
-









c
j
T


d


-









j


I
0








min


(

0
,


c
j
T


d


)






]







(

Eq
.




84

)













=


p


(

v
+
μ

)


+

λ






h
T


d

+

λ





j


I
0









σ
j
-



c
j
T


d





,




where








h
=


μ






c
0


-




j


I
-








c
j




,




and








σ
j
-

=



σ
j
-



(
d
)


=

{





0




if






c
j
T


d


0





1





if






c
j
T


d

<
0

,









j




I
0

.










(

Eq
.




85

)







Then, define the matrix





N=[cj1,cj2, . . . , cjk]  (Eq. 86)





and let






P=I−N(NTN)−1NT.  (Eq. 87)


The matrix P is the orthogonal projector onto the null space of NT. To define search direction d such that p(v+λd, μ)<p(v,μ),





d=−Ph  (Eq. 88)


is established. When Ph≠0, apply d defined in Eq. 88 to Eq. 85 such that














c
j
T


d

=


-

c
j
T



Ph







=


-

c
j
T



PPh







=


-


(

Pc
j

)

T



Ph







=
0







(

Eq
.




89

)







Since P is the orthogonal projector onto the null space of NT. The Eq. 84 becomes:






p(v+λd,μ)=p(v,μ)+λhTd  (Eq. 90)





hTd<0, and  (Eq. 91)






p(v+λd,μ)<p(v,μ).  (Eq. 92)


Thus, d serves as a descent direction for the function p.


When Ph=0, assuming columns of N are linearly independent, then









h
=




i
=
1

k




η
i




c
ji

.







(

Eq
.




93

)







and Eq. 84 becomes










p


(


v
+

λ





d


,
μ

)


=


p


(

v
,
μ

)


+

λ





i
=
1

k




[


η
i

+

σ
ji
-


]



c
j
T



d
.









(

Eq
.




94

)







In the sub case of a: ηi*<0, for some i*εI0, d is chosen such that





cjTd=0, jεI0, j≠i*  (Eq. 95)





ciT*d=1  (Eq. 96)


This implies that σj=0<0, jεI0. Because





hTd=ηi*ci*Td=η<0,  (Eq. 97)





then






p(v+λd,μ)<p(v,μ).  (Eq. 98)


In the sub case of b: ηi*<0 for all i*εI0, if no constraints are violated, it is the optimal. Otherwise, reduce μ and start another iteration. For example,


{choose step size λ}











Λ

(
1
)




=
def



{



λ
|
λ

=



δ
j

-


c
j
T


v




c
j
T


d



,

λ
>
0

,

j



I
+



I
-




}


,




(

Eq
.




99

)






λ
=

min






Λ

(
1
)







(

Eq
.




100

)







and update v=v+λd.


As an example, the L norm approximation may be applied to color conversions from CMYK to CIELab and CIELab to CMY. The formulation of this color conversion in the primal form is described in the following using the CIELab to CMY color conversion by minimizing





ξ=ξcmy  (Eq. 101)


subject to











ξ
c

+




j
=
1


n
+
4





α
cj




F
cj



(

z
i

)







c
i





(

Eq
.




102

)








ξ
c

-




j
=
1


n
+
4





α
cj




F
cj



(

z
i

)







-

c
i






(

Eq
.




103

)








ξ
m

+




j
=
1


n
+
4





α
mj




F
mj



(

z
i

)







m
i





(

Eq
.




104

)








ξ
m

-




j
=
1


n
+
4





α
mj




F
mj



(

z
i

)







-

m
i






(

Eq
.




105

)








ξ
y

+




j
=
1


n
+
4





α
yj




F
yj



(

z
i

)







y
i





(

Eq
.




106

)









ξ
y

-




j
=
1


n
+
4





α
yj




F
yj



(

z
i

)







-

y
i



,




(

Eq
.




107

)







where


ξ≧0,


α1, α2, . . . αn+4 are unrestricted,


zi={L, a, b}i, i=1, . . . , m,


Fji=[1, zi, φ1(zi), φ2(zi), . . . , φn(Zi)]4+n,

φjij(zi),


φj is one of the RBFs, n is the number of clusters, and m is the number of color data points.


The problem may then be rewritten by minimizing c0Tv subject to













c
j
T


v



δ
j


,

j
=
1

,
2
,







6





m







where







c
0

=


(

1





0











1





0











1





0











0

)



3





n

+
15

T








v
=


(






ξ
c







α
cl













α
cn







ξ
m







α
ml













α
mn







ξ
y







α
yl



















α
yn





)



3





n

+
15

T









c
i

=


(

1




-


α
ci












0












0


2





n

+
8




)



3





n

+
15

T









c

m
+
i


=


(

1






α
ci












0












0


2





n

+
8



)



3





n

+
15

T













c


2





m

+
i


=


(


0












0

n
+
4













1











-


α
mi






0












0

n
+
4




)



3





n

+
15

T













c


3





m

+
i


=


(

0












0

n
+
4













1






α
mi






0












0

n
+
4



)



3





n

+
15

T









c


4





m

+
i


=


(


0












0


2





n

+
8







1





-

α
yi


)



3





n

+
15

T









c


5





m

+
i


=


(

0












0


2





n

+
8







1






α
yi


)



3





n

+
15

T









δ
i

=

-

C
i










δ

m
+
i


=

C
i









δ


2





m

+
i


=

-

M
i










δ


3





m

+
i


=

M
i









δ


4





m

+
i


=

-

Y
i











δ


5





m

+
i


=

Y
i


,
and








i
=
1

,





,

m
.






(

Eq
.




108

)







The primal problem may then be divided into steps using the modified BC algorithm. For example, the primal problem with constraints may be converted to an unconstrained problem via a piecewise linear penalty function by letting μ>0 be a fixed parameter. Next,










p


(

v
,
μ

)


=


μ






c
0
T


v

-




j
=
1


6





m





min


(

0
,



c
j
T


v

-

δ
j



)







is






defined
.








(

Eq
.




109

)







For any arbitrary vεn+12,











p


(

v
,
μ

)


=


μ






c
0
T


v

-




j


I
0





min


(

0
,



c
j
T


v

-

δ
j



)



-




j


I
+





min


(

0
,



c
j
T


v

-

δ
j



)



-




j


I
-





min


(

0
,



c
j
T


v

-

δ
j



)





,




(

Eq
.




110

)







where


I0=I0(v)={j|cjTv=δj}={j1,j2, . . . , jk},


I+=I+(v)={j|cjTv>δj}, and


I=I−(v)={j|cjTv<δj}.


Then, the sets I0, I+, and I are determined and the search direction and step size are updated.


As an example of color conversion in dual for CIELab to CMY,











Maximize





i
=
1

m




(



σ
_

ci

-


τ
_

ci


)



c
i




+


(



σ
_

mi

-


τ
_

mi


)



m
i


+


(



σ
_

yi

-


τ
_

yi


)



y
i











(

Eq
.




111

)







subject to













i
=
1

m




(



σ
_

ci

+


τ
_

ci


)



F

C
ji

T



=
0




(

Eq
.




112

)










i
=
1

m



(



σ
_

ci

-


τ
_

ci


)



1




(

Eq
.




113

)










i
=
1

m




(



σ
_

Mi

+


τ
_

Mi


)



F

M
ji

T



=
0




(

Eq
.




114

)










i
=
1

m



(



σ
_

Mi

-


τ
_

Mi


)



1




(

Eq
.




115

)










i
=
1

m




(



σ
_

Yi

-


τ
_

Yi


)



F

Y
ji

T



=
0




(

Eq
.




116

)










i
=
1

m



(



σ
_

Yi

+


τ
_

Yi


)



1




(

Eq
.




117

)





and













σ
_

i

,



τ
_

i


0

,

i
=
1

,
2
,





,
m
,









(

Eq
.




118

)







where


zi={L, a, b}i, i=1, 2, . . . , m


Fji=[1, zi, φ1(zi), φ2(zi), . . . , φn(zi)]n+4

φjij(zi),


φj is one of the RBFs, n is the number of clusters, and m is the number of color data points.


The CIELab to CMY conversion may then be represented by the initial simplex table:





















Basis
sC1
. . .
sCm
sM1
. . .
sMm
sY1
. . .
sYm







αC1
FC1,1T
. . .
FC1,mT
0
. . .
0
0
. . .
0


.

.


.


.


.

.


.


.


.

.


.


.


αCn
FCn,1T
. . .
FCn,mT
0
. . .
0
0
. . .
0


αM1
0
. . .
0
FM1,1T
. . .
FM1,mT
0
. . .
0


.

.


.


.


.

.


.


.


.

.


.


.


αMn
0
. . .
0
FMn,1T
. . .
FMn,mT
0
. . .
0


αY1
0
. . .
0
0
. . .
0
FY1,1
. . .
FY1,m


.

.


.


.


.

.


.


.


.

.


.


.


αYn
0
. . .
0
0
. . .
0
FYn,1T
. . .
FYn,mT


wC
1
. . .
1
0
. . .
0
0
. . .
0


wM
0
. . .
0
1
. . .
1
0
. . .
0


wY
0
. . .
0
0
. . .
0
1
. . .
1


Marginal
−C1
. . .
−Cm
−M1
. . .
−Mm
−Y1
. . .
−Ym


Cost










and the rank of the matrix Fn×m, k is thereby determined.


Thereafter, the first step BP simplex algorithm may be performed via k simplex iterations for each of FCn×m for the cyan component, FMn×m for the magenta component, and FYn×m for the yellow component. The vectors sC are allowed to enter the basis and the vectors αC can leave the basis for FCn×m. The vectors sM are allowed to enter the basis and the vectors αM can leave the basis for FMn×m. The vectors sY are allowed to enter the basis and the vectors αY can leave the basis for Yn×m.


The second step of the BP simplex algorithm may be performed by forcing ξC, ξM, and ξY to leave the basis. The corresponding vectors entering the basis are sC, sM, and sY respectively. If the corresponding marginal cost of sC, sM, or sY is positive, then si is changed to ti using






t
i=2w3n+4−si,


where


wC=(0 0 . . . 0 1 0 0 0)T=e3n+1T,


wM=(0 0 . . . 0 0 1 0 0)T=e3n+2T, and


wY=(0 0 . . . 0 0 0 1 0)T=e3n+3T.


If si is the pivotal column, r is the row vector of pivotal row. For any jth row vector rj containing sij>0, where j≠3n+1 for FCn×m, j≠3n+2 for FMn×m, and j≠3n+3 for FYn×m, change r to r+2rj and change rj to −rj. The third step of the BP simplex iterations may then be performed until all the marginal costs are non-negative.


Color Conversion Using the L1 Norm Approximation

Color conversion in neutral color areas plays an important role in color reproduction quality. The human visual system (HVS) is sensitive to color changes in neutral color areas. Additionally, the color conversion errors due to machine stability, paper uniformity, and instrument accuracy are more profound relative to the human color difference tolerances. Thus, there are more chances for the existences of outliers using color conversion. A color conversion should minimize the negative impact of outliers. The L1 norm approximation may assist in the region due to the robustness to outliers.


Among all the L1 algorithms, the Barrodale and Roberts' primal algorithm (BR algorithm) is relatively robust. Similar to the problem setup for the L, the overdetermined linear system of the general L1 approximation problem may be stated as follows:





Ax=b,  (Eq. 119)


where


A=[a1, a2, . . . , anm×n, (m>n≧2) and


bT=[β1, β2, . . . , βm.


The L1 norm approximation is used to determine vector xεn such that













Ax
-
b



1

=




i
=
1

m






j
=
1

n







a
j
T



x
i


-

β
i










(

Eq
.




120

)







is minimized. In this regard, L is a linear space spanned by function φi






L=<φ
1(z),φ2(z), . . . , φn(z)>,  (Eq. 121)


where each φi is continuous on [a,b], i=1, . . . , n. The function φ may be expressed as











φ


(
z
)


=





i
=
1

n




α
i




φ
i



(
z
)





L


,




(

Eq
.




122

)







where zε[a,b]⊂.


Given m>n≧2, data points (zi, yi), α=(α1, . . . αn) is determined to minimize










e


(


α
1













α
n


)


=





y
i

-




j
=
1

n




α
j




φ
j



(

z
i

)







1





(

Eq
.




123

)











=




j
=
1

m






y
j

-




j
=
1

n




α
j




φ
j



(

z
i

)













(

Eq
.




124

)







The equation then becomes:










x
=
a







A
=

(





φ
1



(

z
1

)






φ
2



(

z
1

)









φ
n



(

z
1

)
















































φ
1



(

z
m

)






φ
2



(

z
m

)









φ
n



(

z
m

)





)








b
=


(


y
1



y
2













y
m


)

T






(

Eq
.




125

)







In the RBF form, the function becomes











φ


(
z
)


=


α
0

+




p
=
1

k




α
p



z


(
p
)




-




j
=

n
+
k



n
+
k





α
j



φ


(



z
-

c
j




)






,




(

Eq
.




126

)







where x=(α0, α1, . . . , αk, αk+1, . . . , αn+k) and






A
=


(



1



z


(
1
)






z

1








(
2
)









z
1



(
k
)






φ
1



(

z
1

)






φ
2



(

z
1

)









φ
n



(

z
1

)













































































































































1




z
m



(
1
)






z
m



(
2
)









z
m



(
k
)






φ
1



(

z
m

)






φ
2



(

z
m

)









φ
n



(

z
m

)





)

.





The L1 and L norms in C[a, b] and in Rn are not strictly convex. Accordingly, A is a linear subspace of either the L1 or the L normed linear space, as the uniqueness of best approximations from A to f depends on properties of A and f. p* in A may be the better L1 approximation function to f. A sign function is thus defined as:










s
*

(
x
)


=

{





-
1

,





f


(
x
)


<

p
*

(
x
)








0
,





f


(
x
)


=

p
*

(
x
)








1
,





f


(
x
)


>

p
*

(
x
)











(

Eq
.




127

)







A sufficient condition for the function p* is the L1 approximation from A to f which may be defined by letting A be a linear subspace of C[a, b], f be any function in C[a, b], and p* be any element of A, such that the set






L={x:f(x)=p*(x),a≦x≦b}  (Eq. 128)


is either empty or is composed of a finite number of intervals and discrete points. Then p* provides an L1 norm approximation form A to f, if the inequality





|∫abs*(x)p(x)dx}|≦∫L|p(x)|dx  (4.7) (Eq. 129)


is satisfied for all p in A, where s* is the function of Eq. 127.


For discrete L1 approximation, let the function values {f(xt); t=1, 2, . . . m} and the fixed positive weights be {wt; t=1, 2, . . . , m}. A is a linear space of functions that may be defined on the point set {xt; t=1, 2, . . . , m}, and p* is any element of A. Then, ε contains the points of {xt; t=1, 2, . . . , m} that satisfy the condition






p*(xt)=f(xt)  (Eq. 130)


and s* is the sign function










s
*

(
x
)


=

{





-
1

,





f


(

x
t

)


<

p
*

(

x
t

)








0
,





f


(

x
t

)


=

p
*

(

x
t

)








1
,





f


(

x
t

)


>

p
*

(

x
t

)











(

Eq
.




131

)







t=1, 2, . . . , m. p* becomes the function in A that minimizes the expression













t
=
1

m




w
t






f


(

x
t

)


-

p


(

x
t

)







,

p

A





(

Eq
.




132

)







if the inequality















t
=
1

m




w
t




s
*



(

x
t

)




p


(

x
t

)












x
t


L

m




w
t





p


(

x
t

)










(

Eq
.




133

)







holds for all p in A.


In order to improve the discrete L1 approximation p*, the inequality in Eq. 133 is tested to be satisfied for every element p in A. An optimal function p* can be obtained by searching for suitable interpolation points in L. For example, let the function values {f(xt); t=1, 2, . . . , m} and the fixed positive weights be {wt; t=1, 2, . . . , m}. Then, A is a linear subspace of Rm, where the component of each vector p in A have the values {p(xt); t=1, 2, . . . , m}. An element p* in A minimizes Eq. 132, and the property that the zero vector is the element p in A that satisfies the conditions {p(xt)=0; xt*L}, where the set L is defined in Eq. 128


With this is mind, the discrete L1 approximation calculation becomes a linear programming problem. For example with φ={φi; i=0, 1, . . . , n} as a basis of the space A of approximation, the Eq. 133 becomes












t
=
1

m




w
t






y
t

-




i
=
0

n




λ
i




φ
i



(

x
t

)












(

Eq
.




134

)







where yt is the output value corresponding to each xt. Define the bounds {ut≧0} and {vt≧0} may be defined such that










-

v
t





y
t

-




i
=
0

n




λ
i




φ
i



(

x
t

)







u

t










(

Eq
.




135

)







for {t=1, 2, . . . , m}. Then the linear programming problem is









Minimize





t
=
1

m




w
t



(


u
t

+

v
t


)







(

Eq
.




136

)







subject to












-

v
t





y
t

-




i
=
0

n




λ
i




φ
i



(

x
t

)







u
t


,

t
=
1

,
2
,







m








ut

0







vt

0





(

Eq
.




137

)







for t=1, 2, . . . m.


The algorithm may be described as:












f
i

-




j
=
1

n




α
j



φ

j
,
i





=


u
i

-

v
i



,




(

Eq
.




138

)







where {ui, vi:i=1, 2, . . . , m} are nonnegative variables. The nonnegative variables {bj, cj:j=1, 2, . . . , n} and the weights aj=bj−cj may then be defined. The primal problem becomes









Minimizing





i
=
1

m



(


u
i

+

v
i


)






(

Eq
.




139

)







subject to











f
i

=





j
=
1

n




(


b
j

-

c
j


)



φ

j
,
i




+

u
i

-

v
i



,

i
=
1

,
2
,





,
m




(

Eq
.




140

)








and





bj,cj,ui,vi≧0.  (Eq. 141)


The algorithm may be implemented in two stages: For example, for the first n iterations, the pivotal columns are restricted to bj and cj. The vector entering the basis is the one with the largest nonnegative marginal cost,







(


e
.
g
.

,




i
=
1

m



φ

j
,
i




)

.




The vector leaving the basis is chosen among vi and ui for the one causing the maximum reduction in the objective function. Next, the nonbasic ui or vi are interchanged with the basic ui or vi. Neither bj or cj is allowed to leave the basis. The criteria for selecting vectors leaving and entering the basis are the same as that in the first stage. Otherwise, the basic vectors bj or cj are interchanged with the corresponding nonbasic vectors cj or bj. On making this algorithm efficient, the vector chosen to leave the basis is the one that causes the maximum reduction in the objective function.


On the Multidimensional Neutral Color Conversion Problem, the BR algorithm may be applied to the neutral color conversion by letting zi={(L, a, b)i i=1, 2, . . . , m}. As an example, the color conversion from CIELab to CMY is formulated:










Minimizing





ξ

=





i
=
1

m



u
ci


+

v
ci

+

u
mi

+

v
mi

+

u
yi

+

v
yi






(

Eq
.




142

)







subject to














j
=
1


n
+
4





(


a
cj

-

b
cj


)




F
cj



(

z
i

)




+

u
ci

+

v
ci


=

C
i





(

Eq
.




143

)











j
=
1


n
+
4





(


a
mj

-

b
mj


)




F
mj



(

z
i

)




+

u
mi

+

v
mi


=

M
i





(

Eq
.




144

)











j
=
1


n
+
4





(


a
yj

-

b
yj


)




F
yj



(

z
i

)




+

u
yi

+

v
yi


=

Y
i





(

Eq
.




145

)







where


acj, bcj, amj, bmj, ayj, byj, ui, vi≧0 and


Fji=[1, z(i), φ1(zi), φ2(zi), . . . , φn(zi)]n+4

for the C, M, and Y components respectively.


When performing the two-stage BR algorithm, the vectors relating to C, M, and Y are generally be exchanged with the vectors of C, M, and Y respectively. This yields an exemplary condensed initial simplex table for CIELab to CMY conversion as shown below.




























One Dimensional Color Manifolds in the CMYK Color Space

One of the more difficult and challenging tasks in color printing is reducing the cost of printing while maintaining quality. Traditionally, the printer color conversion from CMY (or CIELab) to CMYK has been achieved (UCR) and (UCA). As discussed, UCR is the process of removing an equal amount of cyan, magenta, and yellow, and adding the same amount of black. More explicitly, the color components are defined as:





CMY={C,M,Y}, CMYK={C,M,Y,K}, and Lab={L,a,b}.


The smallest value of the C, M, Y components is formed as K=min{C, M, Y}


and K is used to convert a CMY value to a CMYK value as follows:






C′=C−K, M′=M−K, and Y′=Y−K.


Because of the nonlinearity of toners/inks, this UCR model is in accurate, and introduces unacceptable color conversion errors. Colors resulting from the UCR process are generally dull, muddy, and hue shifted. To mitigate this problem, the UCR process is followed by the UCA correction which consists of adding a relatively small amount of cyan, magenta, and yellow back to the C′, M′, Y′ values respectively to make colors richer and less hue shifted. However, this method is empirical and labor intensive and the conversion error is still quite large.


A solution to this color toner/ink reduction problem consists of approximating a nonlinear continuous and differentiable functions mapping from CIELab to CMY and CMYK to CIELab. To optimize CMY to CMYK conversion, it is assumed that accurate continuous functions describing CMYK to CIELab conversion and CIELab to CMY conversion are as follows:






g(L,a,b)→(C,M,Y and f(C,M,Y)→(L,a,b).


For a CIELab value within the printer gamut, Lab0=(L0, a0, b0), g(L0, a0, b0)=(C0,M0,Y0). If C0>0 & M0>0 & Y0>0, a (C0′, M0′, Y0′, K0′) value may be determined such that









f


(


C
0


,

M
0


,

Y
0


,

K
0



)




X






(


L
0

,

a
0

,

b
0


)



Y

.





Then, the CMYK value xn=(Cn′,Mn′,Yn′,Kn′) may be approximated iteratively such that, for n large enough,





f(xn)−yn∥≦ε  (Eq. 146)


for some prescribed tolerance ε. Newton's method may be used if an initial point is close to the minimizer algorithm. To determine an initial point for Newton's method a value x0 is determine such that





err=∥f(x0)−y0∥≦tol,  (Eq. 147)


where tol is an initial acceptable tolerance.


One of the problems in traditional GCR algorithms is that the CIELab value having equal amounts of cyan, magenta, and yellow toner/ink is often not equal to the CIELab value of that same amount of black toner/ink. In other words, the CIELab value of K generally corresponds to unequal amounts of C, M, Y. If the equal amount of C, M, Y, K values are used as the initial point to Newton's algorithm, the above inequality may not be satisfied. A better initial point may be obtained by removing unequal amounts of cyan, magenta, and yellow from the CMY value respectively, and adding the K value. The maximum error using this process may be improved from the typical UCR error value of 14.42 to 10.50.


On this region, for any K, the associated CIELab value is computed using






f(0,0,0,K)→(LK,aK,bK)  (Eq. 148)


Then, the CMY value corresponding to this K is determined using






g(LK,aK,bK)→(CK,MK,YK)  (Eq. 149)


to establish an equivalence





K(CK,MK,YK).  (Eq. 150)


This repeated for a sequence of K values span the range of (0, 1). For any given (C,M,Y) value, there exists a maximum Kp value whose corresponding (CKp,MKp,YKp) satisfies





C=CKp or M=MKp or Y=YKp  (Eq. 151)


A sequence of K values is determined such that





K={Ki≦Kp, i=1,2, . . . , p}.  (Eq. 152)


The corresponding (CKi,MKi,YKi)'s can also be removed from the (C, M, Y) value. Then, the CMY value (C, M, Y) is converted to a sequence of CMYK values such that





CMYK′={(CKi,MKi,YKi), i=1,2, . . . , p},  (Eq. 153)


where CK=C−CKi, MKi=M−MKi, and YKi=Y−YKi, which yields an optimizing GCR algorithm.


Given an initial CMY, the optimized GCR algorithm may determine an associated (C′, M′, Y′, K′) such that the quality





∥f(C′,M′,Y′,K′)−f(C,M,Y,0)∥  (Eq. 154)


is relatively small. With an initial point close enough to the minimizer, the multidimensional Newton's method may be used to determine the optimal value of (C′,M′,Y′,K′). For example, let










f
=

(




f
L






f
a






f
b




)


,

x
=

(



C




M




Y




K



)


,

y
=

(



L




a




b



)


,

y
=

(




L
0






a
0






b
0




)


,




(

Eq
.




155

)







where y0 is the corresponding CIELab value of the original CMY color (e.g., the desired CIELab value for the optimizer of the (C′,M′,Y′, K′)). f(x) then represents the mapping from CMYK to CIELab and expresses as a RBF. For example,












f
j



(
x
)


=



A
j


x

+

a

j





0


+




i
=
1

N




w
ji




φ
j



(



x
-

c
i




)






,




(

Eq
.




156

)







where j=1, 2, 3 correspond to {fL,fa,fb}. Then, f(x+h)≈f(x)+f′(x) h, where f′(x) is in the form of Jacobian matrix









J
=



f




(
x
)


=


(







f
L


/


C








f
L


/


M








f
L


/


Y








f
L


/


K










f
a


/


C








f
a


/


M








f
a


/


Y








f
a


/


K










f
b


/


C








f
b


/


M








f
b


/


Y








f
b


/


K





)

.






(

Eq
.




157

)







For each iteration k, xk+1=xk−J(xk)−1(f(yk)−f(y0)). This iteration stops when ∥(f(xn)−y0)∥≦10−12.


The dimension of the Jacobian matrix is generally 3×4. In order to change it to an invertible Jacobian matrix. The black value of the (C,M,Y,K) color remains unchanged. The Jacobian matrix in Equation 149 is then changed to









J
=



f




(
x
)


=

(







f
L


/


C








f
L


/


M








f
L


/


Y










f
a


/


C








f
a


/


M








f
a


/


Y










f
b


/


C








f
b


/


M








f
b


/


Y





)






(

Eq
.




158

)







Solving the Equation 149 using SVD obtains










x

k
+
1


=


(




C

k
+
1







M

k
+
1







Y

k
+
1






K



)

.





(

Eq
.




159

)







At each iteration, check if the C, M, Y values in the converted (C, M, Y, K) analyzer to determine whether they are in the range of [0, 1], (e.g., if xk+1i≧1 or xk+1i≦0. where i=1, 2, 3 correspond to C, M and Y component respectively). If the value of the ith component is out of the range,










x

k
+
1

i

=

{




1
,


x


(
i
)



1







0
,


x


(
i
)



0.










(

Eq
.




160

)







The ith component remains unchanged for the rest of the iterations. The column that corresponds to this component from the Jacobian matrix J is then removed, and the constraint on the black component is relaxed by adding the partial derivatives with respect to black in the matrix J. For example, if x(2)≧1, the magenta component is removed. The Jacobian matrix Jk+1 becomes











J

k
+
1


=

(







f
L


/


C








f
L


/


M








f
L


/


Y










f
a


/


C








f
a


/


M








f
a


/


Y










f
b


/


C








f
b


/


M








f
b


/


Y





)







and




(

Eq
.




161

)







x

k
+
1


=


(




C

k
+
1






1.0





Y

k
+
1







K

k
+
1





)

.





(

Eq
.




162

)







Generally, any given CMY value of (C>0 & M>0 & Y>0) converges to a CMYK value with the CIELab value difference practically zero.


As described above, each black level K, (e.g., CMYK=(0, 0, 0, K) can be mapped to a CMY value of (Ck,Mk,Yk). For any CMY value (C>0 & M>0 & y>0), there exists a set of values {Ki, i=1, 2, . . . , p} in which a corresponding {Cki,Mki,Yki, i=1, 2, . . . , p} may be removed from C, M, and Y, (e.g., C≧Cki>M≧Mki & Y≧Yki, i=1, 2, . . . , p). Generally, for one CMY value, there exists a set of CMYK values {C−Cki, M−Mki, Y−Yki,Ki, i=1, 2, . . . , p} that can be used for the initial points to the multidimensional Newton's optimization algorithm. Thereafter, the set of values f−1(L0, a0, b0) may be determined as a one-dimensional manifold based on the pre-image theorem.


For example, X→Y be a smooth map between manifolds. Thus, a point is a regular value off if for all x:xεf−1(y) and the map df:TxX→TyY is subjective. Here, TxX and TyY are the tangent spaces of X and Y at the points x and y. Again, with f:X→Y being a smooth map, yεY may be a regular value of f. Accordingly, x:xεf−1(y) is a submanifold of X with dim f−1(y)=dimX−dimY.


For color conversion, A={set of elements of CMYK} and B={set of elements of CIELab}. A functions f=(fL, fa, fb) that maps A to B is in the form of RBFs described in Eq. 156 and f is continuous and differentiable. For a CIELab value yεB, if the Jacobian matrix described in Eq. 157 at y is full rank, (e.g., rank is equal to 3), then y is a regular point of f. Generally, there exists a manifold S=f(y), SA with the dimension of one.


These one-dimensional manifolds based on the pre-image theorem are then determined. For example, for any CIELab value y that is inside the printer gamut, obtain the CMY value using g(y)→(C, M, Y). Then, determine whether min(C, M, Y)=0. If so y is not a regular point since its Jacobian matrix will be rank deficient. Otherwise, if min(C, M, Y)>0, the initializing algorithm is performed to obtain the sequence of the CMYK value CMYK′ described in Eq. 155.


The Jacobian matrix is monitored at each starting point to decide if y is a regular point. If y is a regular point, the optimized GCR algorithm is performed to obtain optimized value for each starting point, (e.g., obtain the 1-dimensional manifold SA, and S=f−1(y)). When there exists a level set of CMYK values S=f−1(y) that correspond to the same CIELab value, yεB, the optimal solution for the toner/ink selection can be obtained for a given objective function.


The objective function can be toner/ink cost based. That is, the objective function is to minimize the cost of printing or toner/ink coverage. For example, min(C+M+Y+K) is the minimum amount of C+M+Y+K obtained from the level set. The data in FIG. 5 for the original CMY value {0.7, 1, 1} results in the total amount of toner/ink being 270%. The minimum total amount of toners/inks in the CMYK level set is 84.2% corresponding the CMYK value of {0.066186, 0.031126, 0, 0.74461} resulting in a total toner savings of 185.8%. Because values in a CMYK level set correspond to the same CIELab value, the toner savings is achieved with little or no quality degradation.


Color Conversion with Ink Limitations

Another challenging task in color printing relates to the limitation of the amount of toner/ink coverage on a page to avoid excessive bleed-through. This task is particularly important for inkjet printing. When there exists a limit for the maximum amount of toner/ink coverage allowed per spot color printing, color conversion in highly saturated color regions or dark neutral color regions are generally affected. The color conversion affected by this limit includes the CIELab to CMY color conversion. The L1 norm approximation may provide a suitable solution for solving the neutral color conversion problem and the L approximation may be suitable for color conversion in saturated color regions. For both approaches, RBFs with linear programming may be employed. The existence of a toner/ink limitation may be added as a constraint in the linear programming problem formulations. For example, the color conversion with the toner/ink limitation problem may now be formulated via both L1 and L approximation algorithms. The L1 algorithm may be a modified BR primal algorithm with an added constraint while the L algorithm may be developed based on the BP dual algorithm to extend the three-stage algorithm to a four-stage algorithm.


To analyze ink limitation problem using the L1 approximation, g(z) is used to represent the mapping from CIELab to CMY in the form of an RBF as:












g
k



(

z
j

)


=



A
k



z
j


+

α

k





0


+




i
=
1

n




α
ki




φ
k



(




z
j

-

c
i




)






,




(

Eq
.




163

)







where k=1, 2, 3 corresponding to {gC, gM, gY}. Then, zj={L, a, b}j, where i=1, 2, . . . , n and j=1, 2, . . . , m. The dimension of Ak is 1×3 corresponding to the dimension of the domain. The dimension of a0 is 1. Therefore, there are n+4 coefficients in such that Eq. 163 may be written as:











g
k



(

z
j

)


=




(


z
j

,
1
,


φ
k



(




z
j

-

c
1




)


,


φ
k



(




z
j

-

c
2




)


,





,


φ
k



(




z
j

-

c
i




)



)





F
k



(

z
j

)







(




A
k
T






a

k





0







a

k





1







α

k





2












α
kn




)




w
k




n

+
4





(

Eq
.




164

)











=




i
=
1


n
+
4





w
ki





F
ki



(

z
i

)


.








(

Eq
.




165

)







The L1 error for each data point of component of C, M and Y using nonnegative variables are defined as












g
k



(

z
i

)


-




i
=
1


n
+
4





w
ki




F
ki



(

z
i

)





=


u
kj

-

v
kj






(

Eq
.




166

)







and the coefficients for each component using nonnegative variables are defined as wki=bki−cki, where ukj, vkj, bki, cki≧0. The primal linear programming problem in the L1 sense may be illustrated by the constraint of the toner/ink limit applying to the color data with a toner/ink summation exceeding the total amount of toner or ink (e.g., C+M+Y+K>L, where L is the total amount of toner or ink). In this regard,










Minimize





ξ

=





j
=
1

m



u

1





j



+

v

1





j


+

u

2





j


+

v

2





j


+

u

3





j


+

v

3





j







(

Eq
.




167

)







subject to



















i
=
1


n
+
4





(


a

1





j


-

b

1





j



)




F

1





j




(

z
j

)




+

u

1





j


+

v

1





j



=

C
j






(

Eq
.




168

)
















i
=
1


n
+
4





(


a

2





j


-

b

2





j



)




F

2





j




(

z
j

)




+

u

2





j


+

v

2





j



=

M
j






(

Eq
.




169

)
















i
=
1


n
+
4





(


a

3





j


-

b

3





j



)




F

3





j




(

z
j

)




+

u

3





j


+

v

3





j



=

Y
j






(

Eq
.




170

)












i
=
1


n
+
4





(


a

1





j


-

b

1





j



)




F

1





j




(

z
jl

)




+




i
=
1


n
+
4





(


a

2





j


-

b

2





j



)




F

2





j




(

z
jl

)




+




i
=
1


n
+
4





(


a

3





j


-

b

3





j



)




F

3





j




(

z
jl

)






L

,




(

Eq
.




171

)







where J={j1|Cjl+Mjl+Yjl>L}{i=1, 2, . . . , m}, ukj, vkj, bki, cki≧0, k=1, 2, 3, i=1, 2, . . . , n, and j=1, 2, . . . m,


With this in mind, a condensed initial simplex table for the CIELab to CMY conversion with the toner/ink limitation L is established in the table below where p denotes the number of color data points that exceed the toner/ink limit. The slack variables si's are then added in Eq. 171.





























The slack variables si's are then added in Eq. 171.


The modified BR's algorithm may then be described in two stages. In the first stage, there are three sets of n iterations for the C, M, and Y components respectively. In each of the n iterations, the pivotal columns are restricted to bi and ci. The vector entering the basis is the one with the largest nonnegative marginal cost. The vector leaving the basis is chosen from vj and uj for the one causing the maximum reduction in the objective function. The interchange of vectors leaving and entering the basis are these performed within the same color component.


In the next stage, the nonbasic uj or vj are interchanged with the basic uj, vj, or sjl. Neither bi or ci is allowed to leave the basis. The criteria for selecting vectors leaving and entering the basis are the same as that in the first stage. The interchange of vectors vj and uj leaving and entering the basis may be performed within the same color component. However, wjl can be interchanged with the vj and uj vector for any color component. Once the vector sjl leaves the basis, it is generally not allowed to enter back onto the basis. The iteration stops when all the marginal costs are non-positive. Thereafter, basic vectors bi or ci may be interchanged with the corresponding nonbasic vectors cj or bj.


As discussed above, the BP dual algorithm may be a relatively good algorithm for color conversion using L approximation. For the color conversion with the toner/ink limitation, a constraint may be added in the problem formulation of the BP dual algorithm using the L approximation.


In this regard, the L errors may be defined for component of C, M and Y:










ξ
c

=


max

1

j

m











i
=
1


n
+
4





w
ci




F
ci



(

z
j

)




-

C
j











(

Eq
.




172

)







ξ
m

=


max

1

j

m











i
=
1


n
+
4





w
mi




F
mi



(

z
j

)




-

M
j











(

Eq
.




173

)







ξ
y

=


max

1

j

m











i
=
1


n
+
4





w
yi




F
yi



(

z
j

)




-

Y
j











(

Eq
.




174

)







Then, the problem may be formulated in the primal form by minimizing; ξ=ξcmy, subject to











ξ

c






+




i
=
1


n
+
4





α
ci




F
ci



(

z
j

)







C
j





(

Eq
.




175

)








ξ

c






-




i
=
1


n
+
4





α
ci




F
ci



(

z
j

)







-

C
j






(

Eq
.




176

)








ξ

m






+




i
=
1


n
+
4





α
mi




F
mi



(

z
j

)







M
j





(

Eq
.




177

)








ξ

m






-




i
=
1


n
+
4





α
mi




F
mi



(

z
j

)







-

M
j






(

Eq
.




178

)








ξ

y






+




i
=
1


n
+
4





α
yi




F
yi



(

z
j

)







Y
j





(

Eq
.




179

)








ξ

y






-




i
=
1


n
+
4





α
yi




F
yi



(

z
j

)







-

Y
j






(

Eq
.




180

)













-




i
=
1


n
+
4




(



α
ci




F
ci



(

z
jl

)



+


α
mi




F
mi



(

z
jl

)



+


α
yi




F
yi



(

z
j

)




)





-
L


,





(

Eq
.




181

)







where ξc, ξm, ξy≧0, α1, α2, . . . αn+4 unrestricted, zj={L, a, b}j, j=1, 2, . . . , m, J={jl|Cjl+Mjl+Yjl>L}{j=1, 2, . . . , m}, and Fj=[1, zj, φ1(zj), φ2(zj), . . . , φn(zj)]n+4,


Transformed from the primal formulation, the dual formulation is performed by maximizing














i
=
1

m



[






(



σ
_

ci

-


τ
_

ci


)



C
i


+


(



σ
_

mi

-


τ
_

mi


)



M
i


+







(



σ
_

yi

-


τ
_

yi


)



Y
i





]


-

L






i
k

=
1





p





ρ
_


i
k





,




(

Eq
.




182

)







subject to












j
=
1

m



[




(



σ
_

cj

-


τ
_

cj


)



F

c
ij

T


-




jl
=
1

p





ρ
_

j



F

c

ij
l


T




=
0






(

Eq
.




183

)









j
=
1

m



[


(



σ
_

cj

+


τ
_

cj


)


1






(

Eq
.




184

)









j
=
1

m



[




(



σ
_

mj

-


τ
_

mj


)



F

m
ij

T


-




jl
=
1

p





ρ
_

j



F

m

ij
l


T




=
0






(

Eq
.




185

)









j
=
1

m



[


(



σ
_

mj

+


τ
_

mj


)


1






(

Eq
.




186

)









j
=
1

m



[





(



σ
_

yj

-


τ
_

yj


)



F

y
ij

T


-




jl
=
1

p





ρ
_

j



F

y

ij
l


T




=
0

,






(

Eq
.




187

)









j
=
1

m



[



(



σ
_

yj

+


τ
_

yj


)


1

,






(

Eq
.




188

)





and












σ
_

j

,


τ
_

j

,



ρ
_

j


0

,

j
=
1

,
2
,





,
m
,




(

Eq
.




189

)







where zj={L, a, b}j, j=1, 2, . . . , m, J={jl|Cjl+Mjl+Yjl>L}⊂{1, 2, . . . , m}, Fj=[1, zj, φ1(zj), φ2(zj), . . . , φn(zj)]n+4, Fjl=[1, zjl, φjl(zjl), φj2(zjl), . . . , φn(zjl)]n+4, φiji(zj), and p denotes the number of color data points that exceed the toner/ink limit.


A modified BP L approximation algorithm may be used for solving the color conversion from CIELab to CMY with a toner/ink limitation L based on the condensed initial simplex table below.
























Basis
sC1
. . .
sCm
sM1
. . .
sMm
sY1
. . .
sYm
sCMYj1
. . .
sCMYjp







αC1
FC1,1T
. . .
FC1,mT
0
. . .
0
0
. . .
0
FC1,j1T
. . .
FC1,jpT


.

.


.


.


.


.

.


.


.


.


.

.


.


.


.


αCn
FCn,1T
. . .
FCn,mT
0
. . .
0
0
. . .
0
FCn,j1T
. . .
FCn,jpT


αM1
0
. . .
0
FM1,1T
. . .
FM1,mT
0
. . .
0
FM1,j1T
. . .
FM1,jpT


.

.


.


.


.


.

.


.


.


.


.

.


.


.


.


αMn
0
. . .
0
FMn,1T
. . .
FMn,mT
0
. . .
0
FMn,j1T
. . .
FMn,jpT


αY1
0
. . .
0
0
. . .
0
FY1,1T
. . .
FY1,mT
FY1,j1T
. . .
FY1,jpT


.

.


.


.


.


.

.


.


.


.


.

.


.


.


.


αYn
0
. . .
0
0
. . .
0
FYn,1T
. . .
FYn,mT
FYn,j1T
. . .
FYn,jpT


wC
1
. . .
1
0
. . .
0
0
. . .
0
0
. . .
0


wM
0
. . .
0
1
. . .
1
0
. . .
0
0
. . .
0


wY
0
. . .
0
0
. . .
0
1
. . .
1
0
. . .
0


Marginal
−C1
. . .
−Cm
−M1
. . .
−Mm
−Y1
. . .
−Ym
L
. . .
L


Cost









In the first stage of the BP algorithm, the first n simplex iterations are performed. For example, the αc vectors may be moved out of the basis. The vector entering the basis is selected from sc to correspond to that with the largest absolute reduced cost. The αm vectors may be moved out of the basis. The vector entering the basis is selected from sm to correspond to that with the largest absolute reduced cost. The αy vectors may be moved out of the basis. The vector entering the basis is selected from sy to correspond to that with the largest absolute reduced cost.


In the second stage of the BP algorithm, ξc is forced out of the basis. The vector entering the basis is selected from the remaining nonbasic vectors sc and αc is not allowed back onto the basis. ξm is forced out of the basis. The vector entering the basis is selected from the remaining nonbasic vector sm and αm is not allowed to move back onto the basis. ξy is forced out of the basis. The vector entering the basis is selected from the remaining nonbasic vector sy and αy is not allowed to move back onto the basis.


In the third stage of the BP algorithm, the pivotal column is chosen corresponding to the most negative marginal cost. The pivotal row may then be chosen by the ratio selection rule. The interchange of nonbasic vectors si and basic vectors sj may be performed within the same color component. The iteration continues until all marginal costs corresponding to the nonbasic vectors sc, sm, and sy, are nonnegative. The vector scmy is not allowed to enter the basis.


A fourth stage is added to perform simplex iteration interchanging nonbasic vectors including all the remaining vectors sc, sm, sy, and scmy and the basic vectors in the basis. Nonbasic vectors sc, sm, and sy interchange with basic vectors of sc, sm, and sy respectively. The nonbasic vectors sc, sm, and sy interchange with any basic vectors of sc, sm, and sy ending when the marginal costs are nonnegative. The function φ thus satisfies the Haar condition as described in above.


Gamut Mapping

The inventive embodiments of out-of-gamut conversion that include CIELab to CMYK gamut conversion may be described as follows. First, the thresholds for color difference in hue angle Th and color difference in lightness TL based on the perceptual color difference tolerance are defined. Next, the output device gamut boundary gmt( ) specified in the CIELab color space is defined. This boundary may be expanded into a few layers with a small increment each time (e.g., {gmti, i=1, 2, . . . , N}). In each layer, the CIELab values are {(L, a, b)ij, j=1, 2, . . . , mi}. The corresponding color in CIELch is {(L,c,h)ij, j=1, 2, . . . , mi}, where mi is the number of the CIELab colors in the layer i. Then the CMY value is obtained using






g
0((L,a,b)lj)→(C,M,Y)lj,  (Eq. 190)


where g0 is the mapping function from CIELab to CMY based on the inside gamut colors. The CIELab data in the first expanded layer is (L, a, b)1={(L, a, b)lj, j=1, 2, . . . , m1}. The number of color data points in gmt1 is (C, M, Y)1={(C,M,Y)lj, j==1, 2, . . . , m1}, m1. If any C, M, and Y component value in (C, M, Y)1 is smaller than 0 or greater than 1, then the value is changed to 0 or 1 respectively. The (C, M, Y)1 may then be changed to (C, M, Y)′1. (L, a, b)′1 is obtained using






f
0(C1j′,M1j′,Y1j′0)→(L1j′,a1j′,b1j′)  (Eq 191)


where f0 is the mapping function from CMYK to CIELab based on the inside gamut colors. Then (L, a, b)′1 to (L, C, h)′1 is converted and the lightness difference ({dL1j, j=1, 2, . . . , m1} and the hue difference ({dh1j, j=1, 2, . . . , m1} are calculated for each data point between (L, C, h)1 and (L, C, h)′1. If dh1j>Th or dL1j>TL, (L, C, h)′1 is converted to (L, C, h)″1 by making the following changes in L′1j and h′1j:









L
=

{






L

1





j


+

T
L


,


L

1





j



>

L

1





j











L

1





j


-

T
L


,


L

1





j



<

L

1





j












(

Eq
.




192

)






h
=

{






h

1





j


+

T
h


,


h

1





j



>

h

1





j











h

1





j


-

T
h


,


h

1





j



<


h

1





j


.











(

Eq
.




193

)







The steps may be repeated until the (C, M, Y)1 values are found to meet the criteria of Th and TL. Then all out-of-gamut CIELab values (L, a, b), may be mapped in gmt1 with (C, M, Y)1. Models of g1 and f1 are then generated using the data points in gmt1:






g
1((L,a,b)1)→(C,M,Y) and  (Eq. 194)






f
1((C,M,Y)1)→(L,a,b).  (Eq. 195)


Each of the above steps may then be repeated and the CIELab data interpolated in {gmti, i=2, 3, . . . , N} to find {(C,M,Y)ij, j=1, 2, . . . , mi}. The iteration stops when the last color layer reaches optimized color ranges (e.g., as described in U.S. Pat. No. 6,719,392, the entire contents of which are incorporated by reference)


When the RBF models fi and gi are generated based on the data points in the gamut layer gmti, the data used in generating these models may contain two parts. The first part includes the data that fits the model g(i−1) and the data of f(i−1) that is generated based on the gamut layer i−1. The second part includes the data not fitting g(i−1) and f(i−1). This second part has C, M, or Y values either below 0 or above 1 using f(i−1) and is clipped to either 0 and 1 and refined with the thresholds Th and TL.


In doing so, the models generated for each gamut layer are continuous and smooth. To summarize, the gamut mapping direction is obtained by creating the numerical model guided by a perceptual color difference model. The advantages of this technique are that more levels are obtained from this gamut mapping algorithm. Moreover, out-of-gamut colors in a close neighborhood vary continuously. The direction of the gamut mapping is not fixed, rather it varies smoothly to provide aesthetically pleasing color mappings.



FIG. 6 is a flowchart illustrating a method 600 of performing GCR optimization in one exemplary embodiment of the invention. In this embodiment, the method 600 initiates with the modeling module 101 receiving image data that includes color values in the process element 601. Concomitantly, the modeling module 101 may determine the color gamut of an output imaging device 103 in the process element 602. For example, the modeling module 101 may determine the color gamut of a printer so that the image data may be converted thereto and printed on the tangible medium 213. To begin the conversion, the modeling module 101 may generate a CIELab to CMY reverse numerical model to convert color values of the image data to a color space within the color gamut of the output imaging device in the process element 603. The modeling module 101 may also generate a CMYK to CIELab forward numerical model to convert the device color space to a perceptual color space in the process element 604. The forward and reverse conversion models may be generated according to radial basis functions, as described above.


The optimization module 104 may then identify certain color values within the reverse numerical model that are subject to replacement. For example, the optimization module 104 may remove a portion of CMY color values generated from the CIELab to CMY reverse model in the process element 605 and replace the removed portion of CMY color values with black color values in the process element 606. Thereafter, the optimization module 104 may optimize CMYK color values via a multidimensional optimization with the CMYK to CIELab forward model in the process element 607. For example, the optimization module 104 may optimize the CMYK color values by performing Newton's method using the CMYK to CIELab forward model.


Thereafter, a determination may be made as to whether the converted image is of an acceptable quality in the process element 608. If so, the converted image may be sent to a printer or other output imaging device for display in the process element 610. Otherwise, the optimization module 104 may continue optimizing the CMYK color values in the process element 607 until the image meets the requisite level of quality.


Although specific embodiments are described herein, the scope of the invention is not limited to those specific embodiments. The scope of the invention is defined by the following claims and any equivalents thereof. For example, the GCR optimization techniques described herein may be implemented for virtually any presentation color space where desired. In the context of printing, the invention is not intended to be limited to any particular type of printer. For example, the GCR optimization described herein may be employed in either ink or toner based printers. Moreover, the GCR optimization may be employed in printers ranging in size from small household printers to large commercial printers. In one embodiment, the GCR optimization may be implemented as software instructions operable direct a processor to optimize gray component replacement in image data as needed.

Claims
  • 1. A method of optimizing gray component replacement in a color image, the method: comprising: receiving a color image from an input imaging device;determining a color gamut of an output imaging device;generating a CIELab to CMY numerical model to convert the color image to a color space within the color gamut of the output imaging device;generating a CMYK to CIELab numerical conversion model;removing a portion of CMY color values generated from the CIELab to CMY numerical conversion model;replacing the removed portion of the CMY color values with black color values; andoptimizing CMYK color values via a multidimensional optimization using the CMYK to CIELab numerical model.
  • 2. The method of claim 1, wherein optimizing the CMYK color values comprises computing the black color values via an optimization algorithm.
  • 3. The method of claim 2, wherein the optimization algorithm comprises Newton's method.
  • 4. The method of claim 1, wherein generating the CIELab to CMY numerical conversion model comprises computing the CIELab to CMY numerical conversion model according to a radial basis function.
  • 5. The method of claim 1, wherein generating the CMYK to CIELab numerical model comprises computing the CMYK to CIELab numerical model according to a radial basis function.
  • 6. A system for optimizing gray component replacement in a color image, the system comprising: a modeling module operable to receive a color image from an input imaging device, determine a color gamut of an output imaging device, generate a CIELab to CMY numerical model to convert the color image to a color space within the color gamut of the output imaging device, and generate a CMYK to CIELab numerical conversion model; andan optimization module operable to remove a portion of CMY color values generated from the CIELab to CMY numerical conversion model, replace the removed portion of the CMY color values with black color values, and optimize CMYK color values via a multidimensional optimization using the CMYK to CIELab numerical model.
  • 7. The system of claim 6, wherein the optimization module is further operable to optimize the CMYK color values via an optimization algorithm of Newton's method using the CMYK to CIELab numerical model.
  • 8. The system of claim 6, wherein the modeling module is operable to generate the CIELab to CMY numerical conversion model according to a radial basis function.
  • 9. The system of claim 6, wherein the modeling module is operable to generate the CMYK to CIELab numerical model according to a radial basis function.
  • 10. A printing system, comprising: a printer operable to print to a tangible medium; anda printer controller operable to process a print job including a color image from a host system and transfer the processed print job to the printer, wherein the printer controller comprises:a modeling module operable to determine a color gamut of the printer, generate a CIELab to CMY numerical model to convert the color image to a color space within the color gamut of the printer, and generate a CMYK to CIELab numerical conversion model; andan optimization module operable to remove a portion of CMY color values generated from the CIELab to CMY numerical conversion model, replace the removed portion of the CMY color values with black color values, and optimize CMYK color values via a multidimensional optimization using the CMYK to CIELab numerical model prior to printing via the printer, wherein the optimization module is further operable to prepare the print job for printing via the printer.