An interpolation method for color correction generates correction signals Y, M and C from input signals R, G and B through interpolation. In this interpolation method, a triangular prism is selected from plural unit triangular prisms in RGB space, based on x, y and z coordinates of the input signals, a gradient factor and an intercept factor of the selected prism are read out from a memory, and correction data corresponding to the input signals is calculated through interpolation using the gradient and intercept factors from the memory, so that the correction signals are generated based on the calculated correction data.
|
10. An apparatus for converting three-dimensional color separated input signals into three-dimensional color correction signals, comprising:
a converting means for converting information obtained by said an image scanner into said input signals; a memory means for storing a plurality of triangular prisms into which XYZ space is divided; a selection means for selecting a triangular prism, based on x, y and z coordinates of said input signals from said plurality of triangular prisms stored in said memory means; first interpolation means for generating first interpolated values within said triangular prism selected by said selection means; second interpolation means for generating second interpolated values within a triangular section of said triangular prism selected by said selection means; and calculating means for calculating said correction signals in accordance with said first and second interpolated values.
0. 21. An apparatus for converting three-dimensional color separated input signals into signals of another color space, comprising:
a converting means for converting information obtained by an image scanner into said input signals; a memory means for storing a plurality of triangular prisms into which the another color space is divided; a selection means for selecting a triangular prism, based on x, v and z coordinates of said input signals from said plurality of triangular prisms stored in said memory means; first interpolation means for generating first interpolated values within said triangular prism selected by said selection means; second interpolation means for generating second interpolated values within a triangular section of said triangular prism selected by said selection means; and an output for outputting said signals of the another color space in accordance with said first and second interpolated values.
0. 22. An apparatus configured to convert three-dimensional color separated input signals into signals of another color space, comprising:
a converter configured to convert an analog input signal to a corresponding digital input signal; a memory part configured to store a plurality of triangular prisms into which the another color space is divided; a selection part configured to select a triangular prism that corresponds with a three-dimensional coordinate of the another color space provided by the digital input signal; a first interpolation part configured to calculate a first interpolated value within said triangular prism selected by said selection part; a second interpolation part configured to calculate a second interpolated value within a triangular section of said triangular prism selected by said selection device; and an output configured to output said signals of the another color space in accordance with the first and second interpolated values.
1. An interpolation method for converting three-dimensional color separated input signals into three-dimensional color correction signals for use in an image data processing apparatus, comprising the steps of:
inputting three-dimensional color separated input signals produced within said image data processing apparatus from an original image to be reproduced; selecting a triangular prism, based on x, y and z coordinates of said input signals, from a plurality of unit triangular prisms into which XYZ color space is divided; reading out lattice point data of the selected triangular prism from a memory in which predetermined correction data is stored, which data corresponds to six lattice points of each of said plurality of unit triangular prisms; calculating correction data, corresponding to the input signals, through interpolation of values of said six lattice point data read out from said memory; and generating said correction signals based on said calculated correction data.
0. 11. An interpolation method for converting three-dimensional color separated input signals into signals of another color space for use in an image data processing apparatus, comprising the steps of:
inputting from an original image to be reproduced three-dimensional color separated input signals produced within said image data processing apparatus; selecting a triangular prism, based on x, v and z coordinates of said input signals, from a plurality of unit triangular prisms into which the another color space is divided; reading out lattice point data of the selected triangular prism from a memory in which predetermined correction data are stored, which data correspond to six lattice points of each of said plurality of unit triangular prisms; calculating correction data, corresponding to the input signals, through interpolation of values of said six lattice point data read out from said memory; and generating said signals of another color space based on said calculated correction data.
0. 18. A color correction method for generating signals of a target color space from three-dimensional color separated input signals through interpolation for use in an image data processing apparatus, comprising the steps of:
inputting three-dimensional color separated input signals produced within said image data processing apparatus; calculating a set of correction factors by applying a least square method based on a plurality of color pattern data which is printed with predetermined color quantities, and based on density data obtained by color decomposition of said plurality of color pattern data, said density data corresponding to a local area of the target color space in which a color difference between an original image and a reproduced image is appreciable; determining the signals of the target color space corresponding to six lattice points which are located in said local area of the target color space, by using said calculated set of correction factors; and setting said signals of the target color space to said six lattice points located in said local area of the target color space.
7. A color correction method for generating three-dimensional color correction signals Y, M and C from three-dimensional color separated input signals R, G and B through interpolation for use in an image data processing apparatus, comprising the steps of:
inputting three-dimensional color separated input signals produced within said image data processing apparatus from an original image to be reproduced; calculating a set of correction factors by applying a least square method based on a plurality of color pattern data which is printed with predetermined ink quantities, and based on density data obtained by color decomposition of said plurality of color pattern data, said density data corresponding to a local area of RGB space in which a color difference between the original image and the reproduced image is appreciable; determining correction signals Y, M and C, corresponding to six lattice points which are located in said local area of RGB space, by using said calculated set of correction factors; and setting said correction signals Y, M and C, to said six lattice points located in said local area of RGB space.
6. A color correction method for generating three-dimensional color correction signals Y, M and C from three-dimensional color separated input signals R, G and B through interpolation for use in an image data processing apparatus, comprising the steps of:
inputting three-dimensional color separated input signals produced within said image data processing apparatus from an original image to be reproduced; calculating a set of correction factors by applying a least square method based on a plurality of color pattern data which is printed with predetermined ink quantities, and based on density data obtained by color decomposition of said plurality of color pattern data; determining correction signals Y, M and C, corresponding to six lattice points in RGB space, by using said calculated set of correction factors; setting said correction signals Y, M and C, to a lattice point in RGB space when said lattice point is located in an area of RGB space in which the density data is lower than a predetermined level; and setting said correction signals Y, M and C, to a lattice point in RGB space when said lattice point is not located in an area of RGB space in which the density data is lower than a predetermined level.
0. 17. A color correction method for generating signals of a target color space from three-dimensional color separated input signals through interpolation for use in an image data processing apparatus, comprising the steps of:
inputting from an original image to be reproduced three-dimensional color separated input signals produced within said image data processing apparatus; calculating a set of correction factors by applying a least square method based on a plurality of color pattern data which is printed with predetermined color quantities, and based on density data obtained by color decomposition of said plurality of color pattern data; determining the signals of the target color space, corresponding to six lattice points in the target color space, by using said calculated set of correction factors; setting said signals of the target color space to a lattice point in the target color space when said lattice point is located in an area of the target color space in which the density data is lower than a predetermined level; and setting said signals of the target color space to a lattice point in the target color space when said lattice point is not located in an area of the target color space in which the density data is lower than a predetermined level.
2. The interpolation method as claimed in
3. The interpolation method as claimed in
4. The interpolation method as claimed in
5. The interpolation method as claimed in
8. The color correction method as claimed in
9. The color correction method as claimed in
0. 12. The interpolation method as claimed in
0. 13. The interpolation method as claimed in
0. 14. The interpolation method as claimed in
0. 15. The interpolation method as claimed in
0. 16. The interpolation method of
0. 19. The color correction method as claimed in
0. 20. The color correction method as claimed in
0. 23. The apparatus of
0. 24. The apparatus of
a first input configured to receive a first value, P
e####
a second input configured to receive a second value, P2, output from said selection device, said second value being a predetermined value with respect to at least one of six vertex points of a ridge of the selected triangular prism; a third input configured to receive a lower bit value, dz, of the digital input signal; and means for calculating an interpolated output value, Pa, from said first value, said second value, and said lower bit value according to the relationship Pa=P 25. The apparatus of
26. The apparatus of
said selection part comprises, a first output configured to output a first gradient factor, ai, corresponding to a difference between a first and a second value, each of the values being predetermined with respect to two vertex points of one ridge of the selected unit triangular prism, a second output configured to output an intercept factor, bi, that corresponds with the second value, and a third output configured to output a lower bit value, dz, of the three dimensional coordinate provided by the digital input signal; and said first interpolation part comprises, an input configured to receive said gradient value, said intercept value and said lower bit value, and means for calculating an interpolated output value, Pa, from said gradient value, said intercept value, and said lower bit value according to the relationship Pa=ai·dz+bi. 27. The apparatus of
a multiplier configured to calculate a produce ai·dz, and an adder configured to add bi to the product ai·dz.
28. The apparatus of
an input configured to receive from said first interpolating part a first input, Pa, representing a first interpolated value, a second input, Pb, representing a second interpolated value, and a third input, Pc, representing a third interpolated value; a first subtractor configured to calculate a first difference value (Pb-Pa); a second subtractor configured to calculate a second difference value (Pc-Pb); a first multiplier configured to multiply a first lower bit value, dx, by a first multiplier input; a second multiplier configured to multiply a second lower bit value, dy, by a second multiplier input; a multiplexer controlled by the first lower bit value, dx and the second lower bit value, dy, said multiplexer configured to provide the first difference value (Pb-Pa) to the first multiplier input and configured to provide the second difference value (Pc-Pb) to the second multiplier input when dx>dy, and configured to provide the second difference value (Pc-Pb) to the first multiplier input and configured to provide the first difference (Pb-Pa) value to the second multiplier input when dx<dy, such that the first multiplier outputs a second product value (Pc-Pb)dx and the second multiplier outputs (Pc-Pb)dy when dx>dy, and the first multiplier outputs a third product value (Pc-Pa)dx and the second multiplier outputs a fourth product value (Pb-Pa)dy when dx<dy; and an adder configured to add the first, second, third and fourth product values and the first input Pa are input to the adder and outputting a sum value P, where P=(Pb-Pa)dx+(Pc-Pb)dy+Pa when dx>dy, and P=(Pc-Pb)dx+(Pb-Pa)dy+Pa when dx<dy.
29. The apparatus of
30. The apparatus of
31. An apparatus configured to generate signals of a target color space from three-dimensional color separated input signals through interpolation for use in an image data processing apparatus, comprising:
an interpolation part including, a random access memory, a first signal part, a second signal part, and a third signal part; a memory device, connected to said interpolation part, configured to store predetermined output data corresponding to a lattice point in a triangular prism; and a CPU, connected to said interpolation part and said memory device, configured to control a computer color correction computer implemented process comprising the steps of, inputting to the first, the second, and the third signal parts respective three-dimensional color separated input signals produced within an image data processing apparatus from an original image to be reproduced, selecting a triangular prism, based on three dimensional coordinates of said input signals, from a plurality of unit triangular prisms into which the target color space is divided, reading out lattice point data for the selected triangular prism from the memory device, which data corresponds to six lattice points of each of said plurality of unit triangular prisms, calculating correction data, corresponding to the input signals, through interpolation of values of said six lattice point data read out from said memory, and generating the signals of a target color space based on said calculated correction data. 32. The color correction apparatus of
33. A color correction method for generating signals of a target color space from three-dimensional color separated input signals through interpolation for use in an image data processing apparatus, comprising the steps of:
inputting from an original image to be reproduced three-dimensional color separated input signals produced within said image data processing apparatus selecting a triangular prism based on x, v and z coordinates of said input signals, from a plurality of unit triangular prisms into which the target color space is divided; reading out correction factors for the selected triangular prism from a memory in which predetermined correction factors are stored; and determining the signals of the target color space, corresponding to the three-dimensional color separated input signals, through interpolation by using said correction factors provided for the selected triangular prism.
34. A color correction method for generating signals of a target color space from three-dimensional color separated input signals through interpolation for use in an image data processing apparatus, comprising the steps of:
inputting from an original image to be reproduced three-dimensional color separated input signals produced within said image data processing apparatus; selecting a triangular prism, based on x, v and z coordinates of said input signals, from a plurality of unit triangular prisms into which the target color space is divided; and determining the signals of the target color space, corresponding to the three-dimensional color separated input signals, through at least one of the steps of, interpolating by using correction factors for the selected triangular prism, said correction factors read from a memory in which predetermined correction factors are stored, and generating said signals of the target color space based on a set of calculated correction data, said generating step comprising, reading out lattice point data from the selected triangular prism from a memory in which predetermined correction data are stored, which data corresponds to six lattice points of each of said plurality of unit triangular prisms, and calculating said set of calculated correction data, corresponding to the input signals, through interpolation of values of said six lattice point data read out from said memory. |
The present invention generally relates to an interpolation method and a color correction method using interpolation, and more particularly to an interpolation method and a color correction method using interpolation in which yellow, magenta and cyan signals are generated from red, green and blue input signals. The methods are applicable to color copiers and color facsimile machines.
A linear masking techniques is known as a conventional color correction method. In this linear masking method, yellow, magenta and cyan ink quantity signals Y, M and C are obtained from red, green and blue input concentration signals R, G and B, and a relationship between the ink quantity signals and the input signals is represented by the following formula.
In the formula (1), a10 through a33 are correction coefficients whose values can be determined through a beast square method on measurement data obtained by scanning several color pattern data.
Although this linear masking technique is useful and application of the linear masking allows small-size color correction hardware to be designed, it is difficult to achieve accurate color correction when the linear masking technique is applied, because the ink quantity signals are very roughly defined in formula (1). In order to achieve accurate color correction, it is necessary to use a non-linear masking technique in which 2nd-order terms such as R2, R G, or G B are additionally incorporated in formula (1). In another case, higher-order terms are further incorporated for achieving very accurate color correction, and reproducing color images closely resembling the originals. When the non-linear masking technique is used, a relationship between the ink quantity signals Y, M and C and the input signals R, G and B is represented as follows.
In formula (2), a multiplication sign "x" is omitted, a10 through a39 are correction coefficients whose values are predetermined through a least square method based on measurement data obtained by scanning a number of color patterns, and "R * 2", for example, denotes the square of R.
Other conventional interpolation methods are applied to the color correction method in which color correction is carried out using interpolation so as to generate yellow, magenta and cyan ink quantity signals Y M and C from the input data of red, green and blue concentration signals R, G and B. In a first method of the conventional interpolation methods, RGB space is divided into plural unit cubes, color correction data is predetermined with respect to eight lattice points of each of the unit cubes, and color correction values corresponding to input RGB signals at intermediate points between two of the lattice points, are obtained through 8-point linear interpolation which is done using the predetermined correction data. When the linear interpolation is performed, it is required to calculate eight products and sums with the data. This first method has a problem in that it requires a long processing time for color correction and relatively complicated hardware. Also, in the case of the first method there is a problem in that on boundaries between adjacent unit cubes there exists a discontinuity in interpolation values calculated by the linear interpolation procedure.
A second interpolation method was proposed in order to eliminate the above described problems of the first method. For example, Japanese Patent Publication No. 58-16180 discloses such an interpolation method. In this second method, RGB space is divided into plural unit cubes and each of the unit cubes is further divided into plural small tetrahedrons. Color correction data is predetermined with respect to four vertex points of each of the tetrahedrons, and it is stored in a memory. A unit cube is selected from among the plural unit cubes based on the higher bits of data of input RGB signals (the higher bits denote, e.g., the most significant four bits of 8-bit data), and one tetrahedron is selected from the plural tetrahedrons included in the selected unit cube, based on the lower bits of data of the input RGB signals (the lower bits denote, hereinafter, e.g., the least significant four bits of 8-bit data). Color correction values corresponding to the input RGB signals are obtained, using the stored correction data, through linear interpolation with respect to the vertex points of the selected tetrahedron. Although the second method can be carried out by using a calculation formula which is simpler than that of the first method using 8-point interpolation, there is a problem in that hardware to which the second method is applied must have a relatively great size because of a relatively large number of multipliers required for calculating the color correction values.
Also, in order to eliminate the above described problems of the first method, a third interpolation technique was proposed. For example, Japanese Laid-Open Patent Application No. 2-206973 and "Color Correction of Color Hardcopy by Interpolation using 4-neighborhood Points" by K. Kanamori and H. Kotera, from a transaction of Institute of Picture Electronics Engineers of Japan (Gazou Denshi Gakkai-Shi), vol.10, no.5, 1989, p.319-328, disclose this third interpolation method. In this third method, RGB space is divided into plural unit cubes, each of the unit cubes is further divided into five small tetrahedrons, and color correction factors, which are predetermined with respect to four vertex points of each of the tetrahedrons, are stored in a memory. Based on the higher bits of data of input RGB signals, a unit cube is selected from the plural unit cubes, and one tetrahedron is selected from the plural tetrahedrons included in the selected unit cube based on the lower bits of data of the input RGB signals. Color correction values corresponding to the input RGB signals are obtained through multiplication/addition calculations done, using the stored color correction factors, with respect to the selected tetrahedron and the data of the input RGB signals. Although hardware for carrying out the third method uses only three multipliers and three adders, and the required hardware is of simple construction, there is a problem in that all the bits of data of input RGB signals are input to the multipliers, and the multipliers must have relatively great size.
In the above conventional interpolation methods, Y, M and C correction values, corresponding to lattice points on each tetrahedron, are determined by calculating, through a least square method, correction factors included in a non-linear function such as that represented by formula (2). The YMC correction values corresponding to the lattice points can be determined appropriately only if the number of small tetrahedrons into which RGB space is divided is great enough. Thus, only if such a condition is satisfied, the interpolation can be done within unit regions, so as to achieve very accurate color correction results. If the number of small tetrahedrons is not great enough, it is difficult to achieve accurate color correction through the above interpolation techniques. Also, in the cases of the above techniques, the YMC correction values corresponding to the lattice points of the tetrahedrons are determined regardless of whether or not the number of such tetrahedrons is large enough.
For determining the correction coefficients through the least square method, the above described methods use reference ink quantity signals measured by scanning color patterns which are printed with predetermined ink quantities, and concentration data obtained by decomposing the scanned data of the color patterns. The concentration data from the scanned color data is gathered densely in a diagonally extending central area of RGB space, which contains a diagonal line (R=G=B), and which concentration data does not exist uniformly in RGB space. The concentration data exists sparsely in peripheral areas of RGB space, which areas are located in RGB space at corners and peripheral portions distant from the diagonal line.
When approximate Y, M and C ink quantity signals are obtained by the non-linear function being applied to the whole of RGB space using the concentration data from the color patterns, there is a problem in that an excessively large amount of data is generated and in that divergence may occur with respect to lattice points, in the peripheral areas of RGB space, where the concentration data exists sparsely. Generally, a region in which concentration data generated from printed data exists is narrower than that in which concentration data generated from photographic data exists.
When the above conventional methods are used, color reproduction error and/or concentration difference can be reduced uniformly in the whole of RGB space. Such concentration difference, however, is not always lower than a prescribed level in local areas such as achromatic color areas or highlighted areas where a difference between original color and reproduced color is especially appreciable. Thus, there is a problem in that the conventional methods do not necessarily provide high-quality reproduced images.
Accordingly, it is a general object of the present invention to provide an improved interpolation and color correction method in which the above described problems of the conventional methods are eliminated.
Another and more specific object of the present invention is to provide an interpolation method which realizes a color correction hardware of simple structure, and carries out accurate color correction using a memory of small storage capacity.
Still another object of the present invention is to provide an interpolation method of the space-division type in which lattice point is appropriately predetermined corresponding to lattice points in RGB space.
A further object of the present invention is to provide a color correction method which improves the quality of a reproduced image corresponding to a peripheral area of RGB space.
A further object of the present invention is to provide a color correction method which improves the quality of a reproduced image corresponding to a local area of RGB space in which a color difference between the original image and the reproduced image is appreciable.
The above mentioned objects of the present invention can be achieved by an interpolation method for converting input color signals into correction signals, which comprises the steps of selecting a triangular prism based x, y and z coordinates of the input signals from plural unit triangular prisms into which XYZ space is divided, reading out lattice point data of the selected triangular prism from a memory in which predetermined correction data is stored, the correction data corresponding to lattice points of each of the plural unit triangular prisms, and calculating correction data corresponding to the input signals through interpolation of values of the lattice point data read out from the memory so that the correction signals are generated based on the calculated correction data. According to the present invention, it is possible to realize color correction hardware of simple construction and carry out accurate color correction using a memory of small storage capacity.
The above mentioned objects of the present invention can also be achieved by a color correction method for generating color correction signals Y, M and C from input signals R, G and B through interpolation, which comprises the steps of calculating a set of correction factors included in a linear function and a set of correction factors included in a non-linear function through a least square method based on plural color pattern data which is printed with predetermined ink quantities, and based on density data obtained by color decomposition of the plural color pattern data, determining correction signals Y, M and C, corresponding to lattice points in RGB space by using either the linear of the non-linear function including the calculated set of correction factors, setting the correction signals Y, M and C, determined by using the linear function, to a lattice point in RGB space when the lattice point is located in an area of RGB space in which the density data is lower than a predetermined level, and setting the correction signals Y, M and C, determined by using the non-linear function, to a lattice point in RGB space when the lattice point is not located in an area of RGB space in which the density data is lower than a predetermined level. According to the present invention, it is possible to attain high quality of reproduced image corresponding to a local area of RGB space in which a color difference between the original image and the reproduced image is appreciable.
Other objects and further features of the present invention will be apparent from the following detailed description when read in conjunction with the accompanying drawings.
A description will now be given of a method of dividing XYZ space into plural unit triangular prisms according to the present invention, with reference to
In the above formula, ml is the length of the segment P1-Pa and m2 is the length of the segment Pa-P2. The values of Pb and Pc are obtained through linear interpolation based on a corresponding segment ratio in a similar manner.
The above interpolation is done based on the ratio in area of the small triangles to the triangle ABC, and the calculation of the interpolation based on a ratio such as that of the triangle areas shown in
Next, a description will be given of a construction of a color correction apparatus to which the present invention is applied, with reference to FIG.3. The color correction apparatus shown in
A second interpolation part 300 includes two subtracters 301, 302, a multiplexer 303, two multipliers 304, 305 and an adder 306, and performs interpolation calculations of a triangle section of the selected prism which section is selected based on output data from the first interpolation part 200. Data "Pb-Pa" supplied by the subtracter 301 and data "Pc-Pb" supplied by the subtracter 302 are the input to the multiplexer 303, and the multiplexer 302 outputs signals indicative of correction factors a and b to the multipliers 304 and 305, respectively.
Generally, XYZ space is divided into plural unit cubes (23n cubes), and x, y and z coordinates of XYZ space are divided into plural unit segments (2n unit segments ). Input signals X, Y and Z each having "f" bits are represented by
In the above representation of the input signals X, Y and Z, it is assumed that x, y and z denote data at higher bits of the signals X, Y and Z, the number of higher bits indicated by "n", and dx, dy and dz denote data at lower bits of the signals X, Y and Z, the number of lower bits indicated by "f-n". A unit cube is selected from the plural unit cubes based on the data (x, y, z) at higher bits of the signals X, Y and Z, and relative positions in the selected cube are obtained based on the data (dx, dy and dz) at lower bits of the signals X, Y and Z. For example, the higher bits of the signals denote the most signification four bits and the lower bits of the signals denote the least significant four bits.
Next, a detailed description will be given of a selection method for selecting type-1 triangular prisms, with reference to
In addition, a detailed description will be given of a selection method for selecting type-2 triangular prisms, with reference to
The capacity of the memories required when the type-2 method is applied is smaller than the capacity of the memories required when the type 1 method is applied, if the number of lattice points is the same for the two methods. Application of the type-2 method is advantageous for a color copier in which high-speed processing is needed. In the following description, will be described a case in which the type-1 method is applied. A case in which the type-2 method is applied is essentially the same as the type-1 method case, but only the values of the coefficients a, b, c, when the interpolation is done on a triangle section by applying the type-1 method, differ from those values of the coefficients obtained by applying the type-2 method.
Before interpolation is done in a triangle section of a selected triangular prism, it is necessary to decide what data is predetermined with respect to each unit triangular prism stored in the selection/memory 100. There are two methods which are usable for this purpose. One of the two methods is to predetermine the respective output values with respect to six vertex points of each unit triangular prism and store them beforehand in the selection/memory part 100. In such a case, when it is assumed that two output values Pl and P2 are predetermined with respect to two vertex points of a ridge of a selected unit triangular prism, output data Pa corresponding to the data dz at the lower bits of input signal Z is obtained, as follows.
The above is shown in FIG.12. The other output data pb and Pc, Corresponding to the data dx and dy at the lower bits of the input signals X and Y, are obtained in a similar manner.
When it is assumed that two output values P1 and P2 ar predetermined with respect to two vertex points of one ridge of a selected unit triangular prism, this second method is to predetermine a gradient factor "ai" (which corresponds to (P2-P1)) and an intercept factor "bi" (which corresponds to P2), and store these factors beforehand in the selection/memory part 100. This second method has an advantageous feature that no subtracter is needed for calculating the data corresponding to (P2-P1). Thus, this second method is used by the interpolation method of the invention.
As shown in
The second interpolation part 300, as shown in
Similarly, if dx<dy, the output data P lies within a triangle section 2 of the unit triangular prism "ACD" and the output data P is obtained through linear interpolation in the triangle section 2 as follows
As shown in
The above linear interpolation calculated by the second interpolation part 300 can be represented by a formula: P=adx+bdy+c. The coefficients, a, b and c in the above case differ from those when the linear interpolation is calculated with respect to type-2 unit triangular prisms.
Next, a description will be given of a lo color correction apparatus in a second embodiment of the present invention, with reference to FIG.15. In
In this second embodiment, a case is considered in which simultaneous access is given to the data in the ROM 131 corresponding to adjacent lattice points of a triangular prism. When color correction is performed, an overlaying part of the lattice point data (equivalent to storage capacity of 512 bytes) in the ROM 131 is loaded into the RAM 133 by the interpolation part 132. According to this second embodiment, it is possible to store the lattice point data having a very small storage capacity in the ROM 131, thus allowing a read-only memory having a small storage capacity to be used.
Next, a description will be given of a color correction apparatus in a fourth embodiment of the present invention. In the above mentioned embodiments, lattice point data Pi (i=1 to 6) corresponding to lattice points of a triangular prism are predetermined. However, in this fourth embodiment, a setting method to predetermine output data corresponding to lattice points of a triangular prism is used for interpolation, and this setting method can be used appropriately with space division type interpolation. The conventional setting method described above is selected and used so as to achieve accurate interpolation results within unit regions, but such results are realized only when the number of tetrahedrons into which XYZ space is divided is large enough. If XYZ space is divided into a very small number of tetrahedrons, the conventional setting method does not achieve accurate interpolation results. Also, the conventional method has a problem in that the YMC correction values corresponding to the lattice points of the tetrahedrons are predetermined regardless of whether or not the number of such tetrahedrons is large enough.
The setting method according to the present invention is used suitably in a space-division type interpolation as mentioned above. This setting method can produce accurate interpolation results even when XYZ space is divided into a small number of triangular prisms. A detailed description of this setting method will now follow. It is to be noted that the present invention is not limited to this embodiment, but applicable to 8-point or 4-point interpolation.
In a known digital color copier, a gamma conversion is performed of color pattern data which is previously classified in 16 stages as input data, and a half tone process of such a conversion data is performed so as to generate output signals Y, M and C with 256 halftone data. A hardcopy is produced by the output signals Y, M and C with 256 halftone data. This hardcopy is scanned by a scanner, and density data (R, G, B) is measured from the scanned data for each hardcopy. A relationship between the output signals (Yp, Mp, Cp) and the density data (Rp, Gp, Bp) is thus obtained (p: color patch number). A set of coefficients of a linear function is obtained by applying the least square method to small unit regions. Such coefficients are used in the linear function, and output data corresponding to lattice points in the unit regions is calculated and predetermined by using the linear function including the coefficients.
More specifically, X, Y and Z axes are divided respectively into L segments, M segments and N segments so that XYZ space is divided into plural rectangular parallelopipeds. Each of them is further divided into two halves so that two unit triangular prisms are formed. Assuming that values of input coordinates x, y and z range from 0 to 255, the lengths of three ridges of each unit triangular prism along X, Y and Z axes are respectively represented by dx=256/L, dy=256/M, dz=256/N. In this embodiment, lattice point values Pi,j,k (i=0 to L, j=0 to M, k=0 to N, P=Y, M or C) corresponding to lattice points of a unit triangular prism are predetermined. The x, y and z coordinates of the lattice point data Pi,j,k are represented as follows.
Suppose the following equations:
A function D(1) ijk is defined in such a way that D(1) ijk is equal to 1 when a point at x, y, z coordinates is located within a unit triangular prism including a point (i dx, j dy, k dz) as the starting point, and D(1) ijk is equal to ) when the point at x, y, z coordinates is located outside the unit triangular prism 1. Thus, the area in which D(1) ijk=1 is satisfied is represented by
The area represented by the above formula (11) is included in either the triangular prism ABC shown in
The area of XYZ space represented by the formula (12) is included in either the triangular prism ACD shown in
Hence, the output P is obtained through linear interpolation which is done in a triangle section based on the output data Pa, Pb and Pc which are calculated by the formula (13), as follows.
The above formula (14) can be rewritten as follows.
A similar calculation with respect to another unit triangular prism that satisfied D(2) ijk=1 (dy ijk≧dx ijk) can also be made, and the output P is represented using D(1) ijk and D(2) ijk, as follows.
The above formula is a linear function expressed in a linear form of the lattice point data Pi,j,k, as indicated in the formula (16), and the least square method is suitably applicable to this linear function. This means that the coefficients of the linear function ar determined through the least square method by using the results of the color pattern data, and the lattice point values are calculated by using the linear function including the coefficients thus determined.
Generally speaking, in the above relationship between the output signals (Yp, Mp, Cp) and the density data (Rp, Gp, Bp), some density data do not exist continuously in RGB space and there are unit areas of RGB space in which no corresponding data exists. In such areas of RGB space, no solution of the output P can be obtained. To avoid this problem, it is necessary to insert supplementary data in such areas of RGB space. According to the present invention, supplementary data obtained from a non-linear function is inserted in corresponding unit areas in which little output data exists, and supplementary data obtained from a linear function is inserted in corresponding unit areas in which no output data exists.
Next, a description will be given of a fifth embodiment of the present invention. The color correction method in this fifth embodiment is directed to improvement of the quality of reproduced images whose coordinates lie in peripheral areas of RGB space.
A color correction circuit 164 in the color copier shown in
A UCR circuit 165 in the color copier shown in
In the formulas (17), a is a given coefficient which is equal to, for example, 0.5. The UCR circuit 165 allows the reproduced image to have a clearly reproduced black ink area especially in a high-concentration area, such a clear black area whose density is determined by the black ink quantity signal cannot be reproduced by combining three Y, M, C ink quantity signals. Thus, it is possible to make visual appearance of dark areas in a reproduced image very clear, and efficiently reduce the total quantity of ink used.
A dither circuit 166 is a circuit that binarizes the Y1, M1, C1 and K1 ink quantity signals, supplied by the UCR circuit 165, through application of a structural dither method. This dither circuit 166 generates such binary ink quantity signals Y2, M2, C2 and K2, and supplies each bit indicated by the signals to a color printer 167 one by one, so that a color image is reproduced by a on/off control of each ink dot for each color.
A detailed description will be given of a setting method to preset output data corresponding to eight lattice points of a triangular prism, which is used for the interpolation method in this fifth embodiment of the invention. In the color copier shown in
Y: 0, 15, 31,..., 239, 255
M: 0, 15, 31,..., 239, 255
C: 0, 15, 31,..., 239, 255
By scanning each of the color pattern data by means of the input sensor 161, the color correction circuit 164 receives each of the scanned color pattern data via the A/D converter 162 and the log converter 163, and generates Y, M, C ink quantity signals of the color pattern data, so that R, G, B density data is measured from Y, M, C color signals for each of the color pattern data. Thus, a relationship between the output signals (Y, M, C) and the 4913 density data (R, G, B) is obtained. By using such a relationship, the correction factors a10 through a33 of the linear function represented by the above formula (1), and the correction factors a10 through a39 of the non-linear function represented by the above formula (2) are determined through the least square method.
The color correction circuit 164 judges whether or not the number of color pattern data which is located in a neighborhood area adjacent to a lattice point in RGB space is greater than a predetermined number.
In this fifth embodiment, if the number of color pattern data included in the neighborhood area containing the lattice point is not greater than the predetermined number, the Y, M and C color correction data corresponding to the lattice point is determined by using the linear function (1) including the correction factors a10 through a33. If the number of color pattern data included in the neighborhood area is greater than the predetermined number, the Y, M, C color correction data corresponding to the lattice point is determined by using the non-linear function (2) including the correction factors a10 through a39. Thus, in this fifth embodiment, it is possible to improve the quality of reproduced image whose coordinates lie in peripheral areas of RGB space.
Next, a description will be given of a sixth embodiment of the present invention. The color correction method in this embodiment is directed to improvement of the quality of reproduced images whose coordinates lie in local areas of RGB space in which a difference in color between original image and reproduced image is very appreciable. Such local areas include an achromatic color area and a highlighted area. Similar to the fifth embodiment, a relationship between the output signals (Y, M, C) and the 4913 density data (R, G, B) is obtained. By using the relationship, the correction factors a10 through a33 of the non-linear function, represented by the formula (2), are determined through the least square method. Also, among such sets of the (R, G, B) and (Y, M, C) data, only achromatic color data in which Δ (R, G, B)=max (R-G, G-B, B-R) is smaller than a predetermined level is used, and the correction factors of the non-linear function represented by the formula (2) are determined through the least square method. The correction factors thus determined are called b10 through b39.
In this sixth embodiment, the Y, M, C color correction data corresponding to lattice points lying on a diagonal line (R=G=B) in RGB space is predetermined by using the non-linear function (the formula (2)) containing the correction factors b10 through b39. For the remaining lattice points other than the above lattice points, the Y, M, C color correction data is predetermined by using the non-linear function (the formula (2)) containing the correction factors a10 through a39. Thus, it is possible to improve the quality of the reproduced image whose coordinates lie adjacent to an achromatic color area of RGB space.
In the sixth embodiment, there is another setting method which is usable for the interpolation. By using the relationship between the output signals (Y, M, C) and the 4913 density data (R, G, B), the correction factors a10 through a39 of the non-linear function, represented by the formula (2), are determined through the least square method. Also, among such set of the (R, G, B) and (Y, M, C) data, only highlighted area data in which the conditions: R<threshold Tr, G<threshold Tg, and B<threshold Tb are satisfied is used, and the correction factors of the non-linear function represented by the formula (2) are determined through the least square method. The correction factors thus determined are called c10 through c39. In the sixth embodiment, the Y, M and C color correction data corresponding to lattice points satisfying the above conditions (R<threshold Tr, G<threshold Tg, and B<threshold Tb) is predetermined by using the non-linear function (the formula (2)) containing the correction factors c10 through c39. For the remaining lattice points, other than the above lattice points, the Y, M and C color correction data is predetermined by using the non-linear function (the formula (2)) containing the correction factors a10 through a39. Thus, it is possible to improve the quality of reproduced images whose coordinates lie in highlighted areas of RGB space.
Further, the present invention is not limited to the above described embodiments, and variations and modifications may be made without departing from the scope of the present invention.
Patent | Priority | Assignee | Title |
10115011, | Mar 18 2016 | Ricoh Company, Ltd. | Document type recognition apparatus, image forming apparatus, document type recognition method, and computer program product |
10390029, | Sep 20 2013 | VID SCALE, Inc. | Systems and methods for providing 3D look-up table coding for color gamut scalability |
11109044, | Jan 02 2014 | InterDigital Madison Patent Holdings, SAS | Color space conversion |
6668077, | Aug 04 1999 | FUJIFILM Corporation | Color correcting relation extracting method and color correction method |
6859228, | Oct 18 1999 | Sharp Kabushiki Kaisha | Least squares method for color misregistration detection and correction in image data |
7403310, | Nov 16 2001 | Ricoh Company, LTD | Image processing apparatus and method |
7466453, | Sep 21 2001 | Ricoh Company Ltd. | Image processing apparatus |
7554574, | Jun 27 2003 | Ricoh Company, Ltd. | Abnormal state occurrence predicting method, state deciding apparatus, and image forming system |
7912324, | Apr 28 2005 | Ricoh Company, LTD | Orderly structured document code transferring method using character and non-character mask blocks |
9955174, | Sep 20 2013 | VID SCALE, INC | Systems and methods for providing 3D look-up table coding for color gamut scalability |
Patent | Priority | Assignee | Title |
4275413, | Mar 30 1978 | DAINIPPON SCREEN SEIZO KABUSHIKI KAISHA, 1-1 TENJIN-KITAMACHI, TERANOUCHI-AGARU 4-CHOME, HORIKAWA-DORI, KAMIGYO-KU, KYOTO-SHI,JAPAN A CORP OF JAPAN | Linear interpolator for color correction |
4959711, | Dec 25 1986 | Konica Corporation | Method and apparatus for correcting the color of a printed image |
4992861, | Oct 18 1988 | Eastman Kodak Company | Color image reproduction apparatus having a digitally operated look-up table constructed by means of a least squares algorithm |
5436739, | Dec 03 1991 | Ricoh Company, LTD | Color correction system for transforming color image from one color space to another |
JP2206973, | |||
JP546750, | |||
JP5816180, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Date | Maintenance Fee Events |
Oct 14 2005 | M1553: Payment of Maintenance Fee, 12th Year, Large Entity. |
Date | Maintenance Schedule |
Dec 24 2005 | 4 years fee payment window open |
Jun 24 2006 | 6 months grace period start (w surcharge) |
Dec 24 2006 | patent expiry (for year 4) |
Dec 24 2008 | 2 years to revive unintentionally abandoned end. (for year 4) |
Dec 24 2009 | 8 years fee payment window open |
Jun 24 2010 | 6 months grace period start (w surcharge) |
Dec 24 2010 | patent expiry (for year 8) |
Dec 24 2012 | 2 years to revive unintentionally abandoned end. (for year 8) |
Dec 24 2013 | 12 years fee payment window open |
Jun 24 2014 | 6 months grace period start (w surcharge) |
Dec 24 2014 | patent expiry (for year 12) |
Dec 24 2016 | 2 years to revive unintentionally abandoned end. (for year 12) |