This application is based on and claims priority under 35 USC §119 from Japanese Patent Application No. 2009-073592 filed Mar. 25, 2009.
1. Technical Field
The present invention relates to a color converter, a color conversion method and a computer readable medium storing a program.
2. Related Art
There is known a color converter in which a color conversion parameter is generated on the basis of a source profile and a destination profile every time a source profile is selected.
According to an aspect of the present invention, there is provided a color converter including: a color conversion parameter generation unit that generates a color conversion parameter based on a source profile and a destination profile, the source profile indicating a color reproduction characteristic of a device used for generating an input image, the destination profile indicating a color reproduction characteristic of a device used for generating an output image; a conversion unit that converts color data of the input image into color data of the output image by using the color conversion parameter generated by the color conversion parameter generation unit; and a memory that stores the color conversion parameter generated by the color conversion parameter generation unit so that the color conversion parameter is associated with identification information of the source profile.
Exemplary embodiment (s) of the present invention will be described in detail based on the following figures, wherein:
An exemplary embodiment of the present invention will be described below in detail with reference to the accompanying drawings.
As shown in
The CPU 11 loads various programs stored in the ROM 13 and the like into the RAM 12, and then executes the programs, thereby implementing functions to be described later with reference to
The RAM 12 is a memory that is used as a working memory or the like for the CPU 11.
The ROM 13 is a memory that stores, therein, the various programs executed by the CPU 11.
The HDD 14 is, for example, a magnetic disk device that stores, therein, image data captured by the image capturing unit 16 or image data used for forming an image in the image forming unit 17, or the like.
The operation panel 15 is, for example, a touch panel that displays various types of information and receives an operation input by a user.
The image capturing unit 16 captures an image recorded on a recording medium such as a paper. The image capturing unit 16 herein is, for example, a scanner. In addition, the scanner to be used may employ one of the following two systems: a CCD system in which reflected light of light emitted from an light source and directed at an original is reduced by use of a lens and is then received by a charge coupled device (CCD); and a CIS system in which reflected light of light beams sequentially emitted from LED light sources and directed at an original is received by a contact image sensor (CIS).
The image forming unit 17 forms an image on a recording medium such as a paper. The image forming unit 17 herein is, for example, a printer. Moreover, the printer to be used may employ one of the following two methods: an electrophotographic method in which an image is formed by transferring toner attached to a photoconductive drum onto a recording medium; and an ink jet method in which an image is formed by ejecting ink onto a recording medium.
The communication I/F controller 18 transmits and receives various types of information to and from other devices via a network.
Incidentally, the aforementioned image processing apparatus 10 receives, as an input image, an image captured by the image capturing unit 16 or an image received by the communication I/F controller 18. At this time, the input image includes a color profile embedded therein. In the color profile (hereinafter, referred to as a “source profile”), a color reproduction characteristic of a device used to generate the image is described.
Meanwhile, the image processing apparatus 10 forms an image by use of a color profile in which a color reproduction characteristic unique to the apparatus is described (hereinafter, referred to as a “destination profile”).
Accordingly, the image forming apparatus 10 converts color data of the input image on the basis of the source profile, and thereafter, converts the converted color data on the basis of the destination profile, thereby generating color data of an output image. At this time, a color conversion parameter obtained by combining the source profile and the destination profile is generated, and color conversion of an image is performed by use of the color conversion parameter. Thereby, an efficient color conversion may be achieved.
However, the source profile is dependent on conditions under which the input image is generated, so that the source profile may differ depending on the input image in some cases. For example, even when input images include RGB signals of the same values, the colors actually reproduced by the signals may be different in some cases.
If a color conversion parameter is to be generated in consideration of the aforementioned case every time a source profile is specified, the same color conversion parameter may be generated multiple times in some cases, which results in inefficient processing.
In this respect, in the present exemplary embodiment, a history of a generated color conversion parameter is recorded. In other words, in a case where a color conversion parameter is generated by use of a specified source profile, and color conversion is performed by use of the color conversion parameter, the color conversion parameter is stored so as to be associated with identification information (a basic characteristic, for example) of the specified source profile. In this manner, the same color conversion parameter is not repeatedly generated, and the color conversion parameter that has been already generated may be reused.
Note that, even in a case where no substantial change exists in a source profile, the color conversion parameter slightly changes due to a slight change in sampling or measurement of the color at the time of generating the color conversion parameter. Accordingly, when source profiles may be treated as substantially the same source profile, re-generation of the color conversion parameter is avoided. Thereby processing efficiency is improved.
Furthermore, depending on an application, a higher priority may be given to efficiency rather than some degree of a color difference in some cases. Thus, an acceptable range in accordance with an application is set, and if a difference between source profiles is within the acceptable range, the already generated color conversion parameter is reused to improve efficiency. In other words, in a case where a difference between a basic characteristic of a newly specified source profile and a basic characteristic of an existing one is within the set acceptable range, a new conversion parameter is not generated, and the color conversion parameter associated with the specified source profile is used.
Next, a description will be given in more details of a color converter that performs the aforementioned operations.
As shown in
The color data acquisition unit 21 acquires color data from an input image.
The tone correction unit 22 performs tone correction for each color signal included in the color data acquired by the color data acquisition unit 21. In the present exemplary embodiment, the tone correction unit 22 is provided as an example of a correction unit that corrects a tone characteristic of color data.
The color conversion unit 23 performs color conversion for the color data acquired by the color data acquisition unit 21, or color data after tone correction in a case where the tone correction is performed by the tone correction unit 22. In the present exemplary embodiment, the color conversion unit 23 is provided as an example of a conversion unit that converts color data.
The color data output unit 24 outputs, to the image forming unit 17 (refer to
The source profile acquisition unit 31 acquires a source profile from an input image.
The basic characteristic extraction unit 32 extracts a basic characteristic from the source profile acquired by the source profile acquisition unit 31. Note that, a detailed description of the basic characteristic will be given later. In the present exemplary embodiment, the basic characteristic extraction unit 32 is provided as an example of an extraction unit that extracts a basic characteristic from a source profile.
The color conversion parameter storage unit 33 stores the basic characteristic extracted by the basic characteristic extraction unit 32 and color conversion parameter generated by the later described color conversion parameter generation unit 39 so that the basic characteristic and the color conversion parameter are associated with each other. In the present exemplary embodiment, the color conversion parameter storage unit 33 is provided as an example of a memory that stores color conversion parameters therein.
The acceptable range setting unit 34 sets an acceptable range for a difference between the basic characteristic extracted by the basic characteristic extraction unit 32 (hereinafter, referred to as an “input basic characteristic”) and a basic characteristic stored in the color conversion parameter storage unit 33 (hereinafter, referred to as a “stored basic characteristic”). At this time, the acceptable range may be set in accordance with a request from a user. In addition, the acceptable range may be set for each of a color reproduction characteristic of each color signal included in the color data and a tone characteristic of each color signal. In the present exemplary embodiment, the input basic characteristic is used as an example of a first basic characteristic, and the stored basic characteristic is used as an example of a second basic characteristic. Moreover, the acceptable range is used as an example of a threshold, and the acceptable range setting unit 34 is provided as an example of a setting unit that sets a threshold.
The basic characteristic evaluation unit 35 evaluates whether a difference between the input basic characteristic and the stored basic characteristic is smaller than the acceptable range or not. At this time, the evaluation may be performed for each of the reproduction characteristic of each color signal included in color data and the tone characteristic of each color signal. In the present exemplary embodiment, the basic characteristic evaluation unit 35 is provided as an example of a determination unit that determines whether or not the conversion unit uses a stored color conversion parameter, or whether or not the correction unit corrects a tone characteristic of color data.
The tone correction parameter generation unit 36 generates a tone correction parameter used in tone correction performed by the tone correction unit 22.
The color conversion parameter manager 37 manages color conversion parameters stored in the color conversion parameter storage unit 33. Specifically, when the basic characteristic evaluation unit 35 determines that a color conversion parameter is reusable, the color conversion parameter manager 37 reads out color conversion parameter stored so as to be associated with the basic characteristic specified by the basic characteristic evaluation unit 35, and sets the color conversion parameter in the color conversion unit 23. In addition, when a color conversion parameter generated by the color conversion parameter generation unit 39 is to be stored in the color conversion parameter storage unit 33, the color conversion parameter manager 37 determines whether or not a new color conversion parameter is storable in the color conversion parameter storage unit 33, and if the new color conversion parameter is not storable, the color conversion parameter manager 37 determines a color conversion parameter as a deletion target. In the present exemplary embodiment, the color conversion parameter manager 37 is provided as an example of a controller that controls deletion of a specific color conversion parameter.
The destination profile acquisition unit 38 acquires a destination profile from information related to a device. Here, the information is stored in the HDD 14 (refer to
The color conversion parameter generation unit 39 generates a color conversion parameter on the basis of the source profile acquired by the source profile acquisition unit 31 and the destination profile acquired by the destination profile acquisition unit 38. Then, the color conversion parameter generation unit 39 sets the color conversion parameter in the color conversion unit 23, and also passes the color conversion parameter to the color conversion parameter manager 37 in order that the color conversion parameter may be stored in the color conversion parameter storage unit 33. In the present exemplary embodiment, the color conversion parameter generation unit 39 is provided as an example of a color conversion parameter generation unit that generates a color conversion parameter.
Here, a description will be specifically given of the basic characteristic extracted from the source profile by the basic characteristic extraction unit 32 and the acceptable range to be set for the basic characteristic by the acceptable range setting unit 34.
In addition,
Next, a description will be specifically given of evaluation performed by the basic characteristic evaluation unit 35.
Then, the basic characteristic evaluation unit 35 compares the differences and the acceptable ranges corresponding to each other, thereby evaluating the two basic characteristics. In
In this case, since only the differences of the tone characteristics are not smaller than the acceptable ranges, the color conversion parameter stored in the color conversion parameter storage unit 33 may be reused if the tone correction is performed by the tone correction unit 22.
Meanwhile,
Moreover,
Then, the basic characteristic evaluation unit 35 compares the differences and the acceptable ranges corresponding to each other, thereby evaluating the two basic characteristics. In
Here, as shown in
Firstly, a description will be given of a determination method based on an average color difference or the largest color difference of the tone data of a primary color. For example, when cyan (C) is set to be the primary color, the L*a*b* values of the stored basic characteristics, and the L*a*b* values of the input basic characteristics, are obtained for each of 3%, 7%, 10%, 15%, 20%, 25%, 30%, 40%, 50%, 60%, 70%, 80% and 90% of cyan (C), and the color differences between these L*a*b* values are obtained as well. Then, on the basis of the average value among all of the color differences or the largest value of these color differences, determination whether or not the tone characteristics are matched with each other is performed in this method.
Secondly, a description will be given of a determination method based on the color difference of 50% of tone data of the primary color. For example, when cyan (C) is set to be the primary color, the L*a*b* values of the stored basic characteristic, and the L*a*b* values of the input basic characteristic, are obtained for 50% of cyan (C) and the differences between these L*a*b* values are obtained as well. Then, on the basis of these color differences, determination whether or not the tone characteristics are matched with each other is performed in this method.
Thirdly, a description will be given of a determination method based on 50% TVI (Tone Value Increase). The example shown in
Note that, in this patent description, a TVI is defined as a tone characteristic represented by the amount of reduction in reflectivity, which occurs due to dot gain. In particular, 50% of TVI is used as the representative value. The reflectivity when the dot area ratio is equal to 50% is supposed to be the reflectivity that is just a middle value (50%) between the reflectivity when the dot area ratio is 0% and the reflectivity when the dot area ratio is 100%. However, in reality, the reflectivity becomes lower than the reflectivity of 50% due to influence of dot gain. The difference in these reflectivities is 50% TVI. The 50% TVIs are calculated by the following equations using values of tristimulus values instead of reflectivities.
A %=100%×(X0−Xt)/(X0−Xs)−50% (1)
A %=100%×(Y0−Yt)/(Y0−Ys)−50% (2)
A %=100%×(Z0−Zt)/(Z0−Zs)−50% (3)
Here, (1) is the equation for calculating 50% TVI for cyan, (2) is the equation for calculating 50% TVI for magenta and black and (3) is the equation for calculating 50% TVI for yellow. In addition, each of X, Y and Z indicates a tristimulus value, and shows the tristimulus value of the white of the paper when the suffix is 0, the tristimulus value of an image of the dot area ratio of 50% when the suffix is t, and the tristimulus value of a solid image when the suffix is s.
In the case shown in
Meanwhile,
Next, a description will be given of management of the color conversion parameters stored in the color conversion parameter storage unit 33.
Here, as shown in
Firstly, consider a case where the stored basic characteristic and the input basic characteristic are in the relationship as shown in
Next, consider a case where the stored basic characteristic and the input basic characteristic are in the relationship as shown in
Note that, in a case where the input basic characteristic is registered in the color conversion parameter storage unit 33, an acceptable range exists for this input basic characteristic as well. Then, there is a case where the acceptable range overlaps with the acceptable range of the stored basic characteristic as shown in
However, if the color conversion parameter storage unit 33 has no margin in the case shown in
Firstly, an example of calculating the non-closeness between two color conversion parameters is shown in
In
Next,
In
Next, a description will be given of operations of the color converter 20 in the present exemplary embodiment.
With reference to
Next, the basic characteristic extraction unit 32 extracts an input basic characteristic from the source profile passed by the source profile acquisition unit 31, and then passes this input basic characteristic to the basic characteristic evaluation unit 35 (step 202).
Then, the basic characteristic evaluation unit 35 reads out a first stored basic characteristic from the color conversion parameter storage unit 33 (step 203), and then evaluates the input basic characteristic received in step 202 and the stored basic characteristic read out herein (step 204).
Then, whether or not an evaluation result indicating that the input basic characteristic is matched with the stored basic characteristic is obtained is determined (step 205). Specifically, whether or not the difference between the input basic characteristic and the stored basic characteristic is within an acceptable range set by the acceptable range setting unit 34 is determined.
When the evaluation result indicating that the input basic characteristic is matched with the stored basic characteristic is obtained, that is, when the differences for all of the items are within the acceptable ranges, the operation moves to a processing in which a color conversion parameter stored in the color conversion parameter storage unit 33 is reused. Specifically, the basic characteristic evaluation unit 35 makes the tone correction unit 22 invalid (step 206). More specifically, the basic characteristic evaluation unit 35 instructs the tone correction parameter generation unit 36 to set a through parameter in the tone correction unit 22. Accordingly, the tone correction parameter generation unit 36 sets the through parameter in the tone correction unit 22.
In addition, the basic characteristic evaluation unit 35 passes the stored basic characteristic to the color conversion parameter manager 37, and the color conversion parameter manager 37 reads out a color conversion parameter associated with this stored basic characteristic and then sets the color conversion parameter in the color conversion unit 23 (step 210).
Lastly, the tone correction unit 22 and the color conversion unit 23 perform, respectively, by use of the set parameter, tone correction (through, in this case) and color conversion on the color data acquired from the inputted image by the color data acquisition unit 21 (step 211). Then, the color data after the color conversion is outputted to the image forming unit 17 by the color data output unit 24.
On the other hand, when the evaluation result indicating that the input basic characteristic is matched with the stored basic characteristic is not obtained, that is, when the differences for some of the items are not within the respective acceptable ranges, the basic characteristic evaluation unit 35 determines whether or not an evaluation result indicating that the input basic characteristic is matched with the stored basic characteristic except the tone characteristic is obtained (step 207).
When the evaluation result indicating that the input basic characteristic is matched with the stored basic characteristic except for the tone characteristic is obtained, that is, when the differences for all of the items except the tone characteristic are within the acceptable ranges, the operation moves to a processing in which a color conversion parameter stored in the color conversion parameter storage unit 33 is reused. However, in this case, tone correction is performed before color conversion in order to reuse the color conversion parameter. Specifically, the basic characteristic evaluation unit 35 firstly instructs the tone correction parameter generation unit 36 to generate a tone correction parameter. Accordingly, the tone correction parameter generation unit 36 generates the tone correction parameter (step 208). Then, the tone correction parameter generation unit 36 sets this tone correction parameter in the tone correction unit 22 (step 209).
In addition, the basic characteristic evaluation unit 35 passes the stored basic characteristic to the color conversion parameter manager 37, and the color conversion parameter manager 37 reads out a color conversion parameter associated with this stored basic characteristic and then sets the color conversion parameter in the color conversion unit 23 (step 210).
Lastly, the tone correction unit 22 and the color conversion unit 23 perform, respectively, by use of the set parameter, tone correction and color conversion on the color data acquired from the inputted image by the color data acquisition unit 21 (step 211). Accordingly, the color data after the color conversion is outputted to the image forming unit 17 by the color data output unit 24.
On the other hand, when the evaluation result indicating that the input basic characteristic is matched with the stored basic characteristic except the tone characteristic is not obtained, that is, differences for some of the items are not within the acceptable ranges even though the tone characteristic is excluded from the items to be evaluated, the operation moves to a processing shown in
Specifically, the basic characteristic evaluation unit 35 first determines whether or not the next stored basic characteristic is stored in the color conversion parameter storage unit 33 (step 221). Then, if the next stored basic characteristic is stored, the basic characteristic evaluation unit 35 reads out the next stored basic characteristic (step 222) and repeats the processing in step 204 and thereafter shown in
Specifically, the basic characteristic evaluation unit 35 firstly makes the tone correction unit 22 invalid (step 223). More specifically, the basic characteristic evaluation unit 35 instructs the tone correction parameter generation unit 36 to set a through parameter in the tone correction unit 22. Accordingly, the tone correction parameter generation unit 36 sets the through parameter in the tone correction unit 22.
Next, the basic characteristic evaluation unit 35 passes the input basic characteristic to the color conversion parameter manager 37 and also outputs an instruction to generate a new color conversion parameter to the color conversion parameter generation unit 39. By this instruction, the color conversion parameter generation unit 39 generates a new color conversion parameter on the basis of the source profile acquired by the source profile acquisition unit 31 and the destination profile acquired by the destination profile acquisition unit 38, and then sets the new color conversion parameter in the color conversion unit 23 (step 224).
Furthermore, in order to store this new color conversion parameter in the color conversion parameter storage unit 33, the basic characteristic evaluation unit 35 passes this new color conversion parameter to the color conversion parameter manager 37, and the color conversion parameter manager 37 performs a processing for storing this new color conversion parameter in the color conversion parameter storage unit 33.
Specifically, the color conversion parameter manager 37 determines whether or not the color conversion parameter storage unit 33 is in a full state (state where no space for storing the new conversion parameter is available) (step 225). If the color conversion parameter storage unit 33 is determined to be in the full state, the color conversion parameter manager 37 calculates the non-closeness scores between the inputted basic characteristic passed by the basic characteristic evaluation unit 35 in advance and each of the basic characteristics stored in the color conversion parameter storage unit 33 (step 226). Specifically, the non-closeness scores are calculated by use of the method described with reference to
Thereby, the color conversion parameter manager 37 determines whether or not the non-closeness score of the input basic characteristic is the lowest (step 227).
Then, if the non-closeness score of the input basic characteristic is the lowest, the hit ratio is unlikely to increase even when this input basic characteristic is stored after a color conversion parameter already stored in the color conversion parameter storage unit 33 is deleted. Thus, the processing ends without storing the new color conversion parameter in the color conversion parameter storage unit 33.
By contrast, if the non-closeness score of the input basic characteristic is not the lowest, then, among the color conversion parameters already stored in the color conversion parameter storage unit 33, a color conversion parameter associated with a basic characteristic having the lowest non-closeness score is deleted (step 228). Then, the input basic characteristic and the newly generated color conversion parameter are associated with each other and stored (step 229), and then, the processing ends.
In addition, when the color conversion parameter storage unit 33 is not in a full state in step 225, the input basic characteristic passed by the basic characteristic evaluation unit 35 in advance and the color conversion parameter newly generated by the color conversion parameter generation unit 39 are associated with each other and stored (step 229), and then, the processing ends.
The operations of the present exemplary embodiment end as described above.
Note that, the color converter 20 in the present exemplary embodiment does not necessarily include all the constituent elements described as included in the aforementioned color converter 20.
For example, a configuration in which no tone correction is performed when a color conversion parameter is reused is conceivable. In this case, a configuration obtained by excluding the tone correction unit 22 and the tone correction parameter generation unit 36 from the configuration of the color converter 20 described in
In addition, a configuration in which the determination whether or not to reuse a color conversion parameter on the basis of the evaluation result of the input basic characteristic and the stored basic characteristic is not performed is also conceivable. In this case, a configuration obtained by further excluding the basic characteristic extraction unit 32, the acceptable range setting unit 34 and the basic characteristic evaluation unit 35 from the configuration of the color converter 20 described in
Moreover, in the present exemplary embodiment, a color conversion parameter is cached so as to be associated with identification information (a basic characteristic extracted from the source profile, for example) of the source profile under the assumption that an image including a different source profile embedded therein is inputted. However, a color conversion parameter may be cached so as to be associated with identification information (a basic characteristic extracted from the destination profile, for example) of a destination profile under the assumption that an image is formed on the basis of a different destination profile.
Furthermore, although the color converter 20 is implemented within the image forming apparatus 10 in the present exemplary embodiment, the color converter 20 may be implemented in a computer such as a personal computer (PC).
Note that, the program for achieving the present exemplary embodiment may be provided by a communication unit as a matter of course. Also, it may be provided by use of a recording medium such as a CD-ROM storing the program.
The foregoing description of the exemplary embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in the art. The exemplary embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, thereby enabling others skilled in the art to understand the invention for various embodiments and with the various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2009-073592 | Mar 2009 | JP | national |