Not Applicable
Not Applicable
Not Applicable
A portion of the material in this patent document is subject to copyright protection under the copyright laws of the United States and of other countries. The owner of the copyright rights has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the United States Patent and Trademark Office publicly available file or records, but otherwise reserves all copyright rights whatsoever. The copyright owner does not hereby waive any of its rights to have this patent document maintained in secrecy, including without limitation its rights pursuant to 37 C.F.R. § 1.14.
1. Field of the Invention
This invention pertains generally to color calibration in digital cameras, and more particularly to orthogonal non-negative matrix factorization.
2. Description of Related Art
Color calibration in a digital imaging device, such as a digital camera, involves determination of a linear adjustment matrix (AM) to match the XYZ/L*a*b* values calculated from a real camera to those of the human visual system. A typical calibration process is illustrated in
For higher-end cameras, the Macbeth ColorChecker with twenty-four patches is used for calibration because of its good representation of the entire color spectrum. For example, S. Quan, in “Evaluation And Optimal Design Of Spectral Sensitivities For Digital Color Imaging,” Ph.D. Dissertation, Chester F. Carlson Center for Imaging Science of the College of Science, Rochester Institute of Technology, April, 2002, incorporated herein by reference in its entirety, confirmed that the Macbeth ColorChecker has very similar principal components (PCs) compared to the Vrhel-Trussell color set. In addition, the reconstruction error from these sets of PCs is negligible.
Data reduction methods are known techniques for reducing the dimension of a data set, and use, for example, appropriate basis functions of lower dimension to represent the original data set. The most widely used data reduction methods include Principal Component Analysis (PCA) and Independent Component Analysis (ICA).
The basis functions obtained by PCA are orthogonal and correspond to the directions of maximal variance in a Gaussian space. In other words, PCA reduces the 2nd order statistics of the original set. Alternatively, ICA reduces higher order statistics of the data set and seeks basis functions that give rise to maximal statistical independence in non-Gaussian space.
A common feature of PCA and ICA basis functions is that they are composed of both positive and negative values. In many applications, negative components contradict physical realities. For example, an image with negative intensities cannot be reasonably interpreted and negative color reflectance does not have any physical meaning. Therefore, color filters in digital cameras, copiers, and scanners should have non-negative components. While PCA/ICA basis vectors can be used to create color patches, the challenge with this approach is to find a set of weights that will combine PCA/ICA basis vectors to generate an optimal set of color patches. With non-negativity constraints, the basis vectors themselves represent optimal colors.
A technique referred to as “non-negative matrix factorization”, or NMF, can be used for determining a small set of color patches. As the name implies, NMF tries to find basis functions and coefficients that are always non-negative. A non-negative NMF approach for determining a small set of color patches for calibration and color filter array design was previously described in F. Baqai, “Identifying Optimal Colors For Calibration And Color Filter Array Design,” U.S. patent application Ser. No. 11/395,120 filed on Mar. 31, 2006, incorporated herein by reference in its entirety. Note that only additive combinations are allowed in the factorization process. The problem can be formularized as: given a non-negative matrix V, find non-negative factors W and H to best approximate V, i.e.,
V
n×n
≈W
n×r
·H
r×m
where W≧0, H≧0, r<m, n. In the computation of the reflectance set, m, n-dimensional reflectance (e.g., the Macbeth ColorChecker) is combined into matrix V. Then after factorization, matrix H contains the non-negative weights and W contains the non-negative basis functions that can be considered directly as the set of reflectance with reduced dimension.
In other words, the objective of NMF is to find the best approximation of the original data matrix V by only additive contributions of non-negative basis vectors. For example, V can be the set of reflectance R, and W contains the non-negative basis vectors, and H contains the weights where H≧0.
There are several different cost functions and update rules described in the literature for NMF problem. The simplest one is derived based on the minimization of Kullback-Leibler divergence between V and W·H. The update rules are:
In NMF, the basis functions and coefficients are always non-negative; only additive combinations are allowed. Other than non-negativity, the basis functions obtained by NMF have the following properties as described by G. Buchsbaum and O. Bloch, “Color Categories Revealed By Non-Negative Matrix Factorization Of Munsell Color Spectra”, Vision Research, Vol. 42, pp. 559-563, 2002, incorporated herein by reference in its entirety:
1. Unless non-overlapping, basis functions are non-orthogonal.
2. Basis functions are local and have no zero crossing.
3. Basis functions correspond to physical or conceptual features in non-negative space.
4. Basis functions vary according to the number computed.
5. Implementation requires iterative optimization.
Additional background information relating to NMF can be found in D. D. Lee and H. S. Seung, “Learning The Parts Of Objects By Non-Negative Matrix Factorization,” Nature, vol. 401, pp. 788-791, October, 1999; D. D. Lee and H. S. Seung, “Algorithms For Non-Negative Matrix Factorization,” Advances in Neural and Information Processing Systems, vol. 13, pp. 556-562, 2001; and C. Ding, T. Li, W. Peng and H. Park, “Orthogonal Nonnegative Matrix Tri-Factorizations For Clustering,” Proceedings of International Conference on Knowledge Discovery and Data Mining, pp. 126-135, August, 2006, each of which is incorporated herein by reference in its entirety.
Accordingly, an aspect of the invention is a color chart for color calibration of imaging devices that comprises a set of spectral reflectance. In one embodiment, the reflectance set has similar 2nd order statistical characteristics as the Macbeth ColorChecker. In one embodiment, the reflectance set has similar auto-correlation matrix and major principal components as the Macbeth ColorChecker.
Another aspect of the invention is a method for determining optimal color target based on Orthogonal Non-negative Matrix Factorization (ONMF). In one embodiment, the statistical characteristics of the Macbeth ColorChecker are kept in the resultant ONMF color target.
Another aspect of the invention is a system and method that retains similar properties as that of the Macbeth ColorChecker with substantially fewer color patches.
Another aspect of the invention is a method for obtaining an optimal color chart. In one embodiment, non-negativity and smoothness constraints are incorporated to achieve physically realizable colors and orthogonality constraints are used to obtain similar statistical properties to that of any input set of reflectances including, but not limited to, the Macbeth ColorChecker.
Another aspect of the invention is an optimal color chart that provides nearly identical calibration performance to that of the Macbeth ColorChecker. In one embodiment, 7 colors provide nearly identical calibration performance to that of 24 colors in the Macbeth ColorChecker. In other embodiments, any number of colors greater than 5 and less than 24 are used in the reference color chart.
Another aspect of the invention is a process for estimating a minimal set of optimal reference colors, from a larger color set, that can be used for accurate reproduction of colors in any system such as photography both still and video, graphic arts, electronic publishing, hardcopy (printers) and softcopy (television, monitor, etc) systems.
Another aspect of the invention is a method for selecting any similar reference color set, according to any of the foregoing aspects, which is within manufacturer tolerances of the optimal color chart while maintaining reasonable color calibration accuracy.
Further aspects of the invention will be brought out in the following portions of the specification, wherein the detailed description is for the purpose of fully disclosing preferred embodiments of the invention without placing limitations thereon.
The invention will be more fully understood by reference to the following drawings which are for illustrative purposes only:
1. Introduction.
In the present invention we obtain a smaller set of color patches that has, for example, similar calibration performance as the Macbeth ColorChecker which is considered by the industry to be an “optimal” set of color patches. In one non-limiting embodiment, we add an orthogonality constraint to the weight matrix in the NMF algorithm to determine the smaller optimal set of color patches. Therefore, we refer to our new method for determining the smaller optimal set of color patches as “Orthogonal” NMF, or ONMF.
We have successfully demonstrated that, by using this smaller optimal color set, we can achieve the calibration accuracy of the Macbeth ColorChecker at a much lower computational cost. It will be appreciated, however, that the present invention is not only applicable to the Macbeth ColorChecker set of color patches but can be applied to any arbitrary reflectance set to obtain an optimal, spectrally equivalent, set of colors. Furthermore the derived ONMF optimal color set is robust to small variations in spectral magnitude and wavelength shift which accommodates the essential errors introduced in chart manufacturing. Therefore, any version of the ONMF optimal set with slight difference in either spectral magnitude or wavelength shift is considered to be within the scope of the present invention.
2. Orthogonal Non-Negative Matrix Factorization (ONMF)
In contrast to NMF, in ONMF we add an orthogonality constraint to the weight matrix in the NMF approach. We have verified that, by adding this constraint, second-order properties of the minimally optimal set of color patches are nearly identical to the second-order properties of the input color set.
(a) Application of Orthogonality and Smoothness Constraints
In one embodiment of the invention for DSC color calibration, our goal is to find an optimal set of color patches that has similar statistical characteristics as the Macbeth ColorChecker. We use the auto-correlation matrix (second order statistics) of a reflectance set as a measure of similarity.
To this end, we introduce a constraint into NMF so that the original data matrix V and the factorized matrix W have approximately the same auto-correlation relationship. By introducing an orthogonality constraining into the original NMF formulation, the auto-correlation matrix of W (rank r) equals the auto-correlation matrix of V (rank m) where r<m.
This corresponds to an orthogonality constraint on the weight matrix H in the original NMF formulation, i.e.,
if HHT=I, then
VV
T
≈WH(WH)T=WHHTWT=WIWT=WWT.
In this sense, the reduced set Wn×r has similar second-order properties as the original set Vn×m where r<m. In color calibration, this is equivalent to
RMacbethRMacbethT=KrMacbeth≈KrOptimal=ROptimalROptimalT
In order for the factorized matrix W to be considered directly as a set of color reflectance, its column vectors should be continuous and smooth in order to represent real colors. Therefore, we add an additional smoothness constraint into the NMF formulation. Additionally, in order to make sure that the scales of the original set V and the reduced set W are the same, we constrain the column summation of weight matrix H to equal 1 (see, for example, B. Bodvarsson, L. K. Hansen, C. Svarer, and G. Knudsen, “NMF On Positron Emission Tomography”, Proceedings of IEEE Conference on Acoustics, Speech, and Signal Processing, pp. I-309-I-312, April 2007, incorporated herein by reference in its entirety).
In summary, the ONMF problem is defined as follows:
V
n×m
≈W
n×r
·H
r×m
HHT=I
(b) Update Rules of ONMF
As in the NMF algorithm, the basis functions of ONMF are also calculated through iterative optimization. Multiplicative update rules are employed with additional operators to accommodate the orthogonality and smoothness constraints. The update rules of W and H are as follows:
where α and β are sufficiently small constants (e.g. α=β=1e−4 in our experiments). The square root operator in the Ha μ update rule ensures the row orthogonality of weight matrix H, while the two terms αWia and βHaμ contribute to the smoothness constraint; i.e., to eliminate sharp changes and breaking points in the basis reflectance vectors.
The DSC signal processing pipeline employed in our experiments is illustrated in
where n is the number of the discrete spectra data. The spectral reflectance of a given color set (Macbeth ColorChecker in our experiments) is denoted as R
where m is the number of color patches. The measured spectral reflectance of the Macbeth ColorChecker twenty-four patches are illustrated in
Raw RGB output of the camera was calculated as
Reference XYZ of HVS was calculated as
Least square error optimization was used to match SLR to ALR, and the adjustment matrix AML-S was determined as follows:
AML-S·SLR=ALR
AML-S=(ALR·SLRT)·(SLR·SLRT)−1=(ALT·R·RT·SL)·(SLT·R·RT·SL)−1
In this simplest case, given sensor spectral sensitivities and illuminant, the values of adjustment matrix AML-S only depend on the auto-correlation matrix of spectral reflectance set Kr=R·RT. This is exactly in accordance with the principle of ONMF that the factorized set W has approximately same auto-correlation matrix as the original set V. Therefore, we can readily apply ONMF to decide the optimal calibration set by taking the spectral reflectance set of Macbeth ColorChecker as matrix V. Then, the resultant matrix W contains the spectral reflectance of the optimal color set with less number of patches.
Since the calculated basis functions in W vary according to the specified number of patches, we applied ONMF multiple times with different number of color patches (i.e., different number of columns in W). The least-square calibration results were compared to those using the Macbeth ColorChecker as a calibration standard and the differences were measured by two error metrics: average absolute error of AML-S and mean-square-error of AML-S:
The error measurements for varying number of color patches from 3 to 15 in ONMF are illustrated in
When applying ONMF on the reflectance set of the Macbeth ColorChecker with r=7, the resultant optimal set Wn×r is composed of six color patches and one grey patch. The spectral reflectance of the generated optimal set and their corresponding calorimetric values are shown in
Note that one non-limiting aspect of the invention is a color set that has similar calorimetric data (within manufacturer tolerances) to the calorimetric values outlined in Table 2 through Table 6 for illuminant D65. The particular illuminant illustrated is only an example, however, and colorimetric data can be generated for other illuminants as well. Another non-limiting aspect of the invention is a color set whose spectral sensitivities (within manufacturer tolerances) correspond to the colorimetric values outlined in Table 2 through Table 6.
Note that ONMF according to the present invention preserves the second-order statistics of the original data set. This property is important in DSC color calibration since the adjustment matrix AM is only affected by the auto-correlation matrix of the target color set in a given calibration situation.
Finally, the calibration performance of the Macbeth ColorChecker and the ONMF optimal set was evaluated in DSC signal processing pipeline as shown in
Since the ONMF algorithm solves a factorization problem where the magnitude variations in the basis vector set W can be easily compensated by changing the scales of weight matrix H, the resultant ONMF optimal set is robust to small magnitude changes. Therefore, any similar reference color set within manufacturer tolerances is able to maintain reasonable color calibration accuracy and is considered a derivative of the claimed invention. Additionally, this feature of ONMF provides a convenient tool that the magnitude of any color patch in the optimal reflectance set can be changed manually to meet user-defined requirements without affecting calibration performance significantly.
It will be appreciated that the ONMF approach is able to generate a very good approximation of Macbeth ColorChecker in the sense of both statistical properties (such as auto-correlation matrix and principal components) and DSC color calibration performance. However, the optimal set calculated by ONMF reduces the number of required color patches significantly. Utilizing these optimal set of color patches, similar calibration performance can be achieved compared to the Macbeth ColorChecker. This implies increased throughput and faster manufacturing time. In addition to applications in color calibration, the ONMF approach can also be employed in a wide range of color imaging applications, including but not limited to illuminant estimation and chromatic adaptation.
Although the description above contains many details, these should not be construed as limiting the scope of the invention but as merely providing illustrations of some of the presently preferred embodiments of this invention. Therefore, it will be appreciated that the scope of the present invention fully encompasses other embodiments which may become obvious to those skilled in the art, and that the scope of the present invention is accordingly to be limited by nothing other than the appended claims, in which reference to an element in the singular is not intended to mean “one and only one” unless explicitly so stated, but rather “one or more.” All structural, chemical, and functional equivalents to the elements of the above-described preferred embodiment that are known to those of ordinary skill in the art are expressly incorporated herein by reference and are intended to be encompassed by the present claims. Moreover, it is not necessary for a device or method to address each and every problem sought to be solved by the present invention, for it to be encompassed by the present claims. Furthermore, no element, component, or method step in the present disclosure is intended to be dedicated to the public regardless of whether the element, component, or method step is explicitly recited in the claims. No claim element herein is to be construed under the provisions of 35 U.S.C. 112, sixth paragraph, unless the element is expressly recited using the phrase “means for.”