JP4635916B2 - Image data color correction - Google Patents

Image data color correction Download PDF

Info

Publication number
JP4635916B2
JP4635916B2 JP2006063613A JP2006063613A JP4635916B2 JP 4635916 B2 JP4635916 B2 JP 4635916B2 JP 2006063613 A JP2006063613 A JP 2006063613A JP 2006063613 A JP2006063613 A JP 2006063613A JP 4635916 B2 JP4635916 B2 JP 4635916B2
Authority
JP
Japan
Prior art keywords
color
data set
conversion data
image
range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006063613A
Other languages
Japanese (ja)
Other versions
JP2007243628A (en
Inventor
淳 星井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006063613A priority Critical patent/JP4635916B2/en
Publication of JP2007243628A publication Critical patent/JP2007243628A/en
Application granted granted Critical
Publication of JP4635916B2 publication Critical patent/JP4635916B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、画像データの色を補正する技術に関する。   The present invention relates to a technique for correcting the color of image data.

従来より、画像データに基づいて、その画像データの画像の色を補正する技術が知られている。たとえば、特許文献1においては、写真の中の人の顔が写っている領域を決定し、その人の顔の色が予め定められた目標色度値となるように、画像データの色の補正が行われる。   Conventionally, a technique for correcting the color of an image of the image data based on the image data is known. For example, in Patent Document 1, a region in which a person's face is shown in a photograph is determined, and color correction of image data is performed so that the color of the person's face becomes a predetermined target chromaticity value. Is done.

特開2000−182043号公報JP 2000-182043 A

しかし、特許文献1の技術においては、画像データの色の補正内容を決定するにあたって人の顔の色以外は考慮されないため、人の顔以外の領域について、補正後の色が不自然になってしまう場合があった。このような問題は、顔の色を対象とする場合以外にも、画像中の特定の部分の色を好ましい色に補正しようとする場合に、同様に生じる。   However, in the technique of Patent Document 1, since colors other than the human face are not considered in determining the color correction content of the image data, the corrected color becomes unnatural in the area other than the human face. There was a case. Such a problem similarly occurs when trying to correct a color of a specific part in an image to a preferable color, in addition to the case of face color.

本発明は、上記の問題を取り扱うためになされたものであり、画像データについて色の補正を行う際に、画像中のある部分と他の部分との両方について好適な補正を行うための技術を提供することを目的とする。   The present invention has been made in order to deal with the above-described problem, and a technique for performing suitable correction for both a certain part and another part in an image when color correction is performed on image data. The purpose is to provide.

上記の問題を取り扱うために、本発明の一態様においては、写真画像の画像データの色を補正する際に、以下のような処理を行う。すなわち、まず、画像データの色を変換するための第1の原変換用データセットと、画像データの色を変換するためのデータセットであって少なくとも一部の入力色と対応づけられた出力色として第1の原変換用データセットとは異なる出力色を有する第2の原変換用データセットと、に基づいて変換用データセットを生成する。その際、所定の色空間の一部である第1の色範囲に含まれる少なくとも一部の第1種の色については、第1の原変換用データセットの出力色と同じ出力色を有するように、変換用データセットを生成する。そして、色空間の他の一部である第2の色範囲に含まれる少なくとも一部の第2種の色については、色空間内において第1の色範囲内の1以上の所定の基準色に近い色ほど第1の原変換用データセットの出力色に近い出力色を有し、色空間内において上記の基準色から遠い色ほど第2の原変換用データセットの出力色に近い出力色を有するように、変換用データセットを生成する。その後、変換用データセットを参照して画像データの色を補正する。   In order to deal with the above problem, in one embodiment of the present invention, the following processing is performed when correcting the color of image data of a photographic image. That is, first, the first original conversion data set for converting the color of the image data, and the output color corresponding to at least a part of the input colors, the data set for converting the color of the image data As described above, a conversion data set is generated based on the second original conversion data set having an output color different from that of the first original conversion data set. At this time, at least some of the first type colors included in the first color range that is a part of the predetermined color space have the same output color as the output color of the first original conversion data set. Then, a conversion data set is generated. Then, for at least some second type colors included in the second color range that is another part of the color space, one or more predetermined reference colors in the first color range in the color space are used. A closer color has an output color closer to the output color of the first original conversion data set, and a color farther from the reference color in the color space has an output color closer to the output color of the second original conversion data set. A conversion data set is generated to have. Thereafter, the color of the image data is corrected with reference to the conversion data set.

このような態様においては、異なる特性を有する第1と第2の原変換用データセットに基づいて変換用データセットを生成し、その変換用データセットを参照して画像データの色を補正することができる。そして、第2の原変換用データセットの特性が部分的に反映されて補正が行われる色についても、画像が不自然とならないように色の補正を実行することができる。このため、画像データについて色の補正を行う際に、画像中のある部分と他の部分との両方について好適な補正を行うことができる。   In such an aspect, a conversion data set is generated based on the first and second original conversion data sets having different characteristics, and the color of the image data is corrected with reference to the conversion data set. Can do. The color correction can be executed so that the image is not unnatural even for the color that is corrected by partially reflecting the characteristics of the second original conversion data set. For this reason, when performing color correction on image data, it is possible to perform suitable correction for both a certain part and another part in the image.

なお、変換用データセットにおいては、第1の色範囲内に、第1の原変換用データセットの出力色とは異なる出力色を有する入力色が存在していてもよい。また、第2の色範囲内に、「色空間内において第1の色範囲内の1以上の所定の基準色に近い色ほど第1の原変換用データセットの出力色に近い出力色を有し、色空間内において上記の基準色から遠い色ほど第2の原変換用データセットの出力色に近い出力色を有する」という特性に当てはまらない入力色が存在していてもよい。   In the conversion data set, an input color having an output color different from the output color of the first original conversion data set may exist in the first color range. Also, within the second color range, “a color closer to one or more predetermined reference colors within the first color range in the color space has an output color closer to the output color of the first original conversion data set. In addition, there may be an input color that does not fall under the characteristic that the color farther from the reference color in the color space has an output color closer to the output color of the second original conversion data set.

なお、変換用データセットを生成するのに先立って、以下のように第1および第2の原変換用データセットを生成することが好ましい。すなわち、まず、写真画像の画像データを解析して、写真画像中の一部の領域であって人の顔が存在する第1の画像領域を決定する。そして、画像データの第1の画像領域に対応する部分に基づいて、第1の原変換用データセットを生成する。また、写真画像中の画像領域であって第1の画像領域とは異なる第2の画像領域に対応する画像データの部分に基づいて、第2の原変換用データセットを生成する。ここで、色空間の第1の色範囲は、第2の色範囲に含まれる色に比べて人の肌の色を表現する際により高い確率で使用される色を含むことが好ましい。   Prior to generating the conversion data set, it is preferable to generate the first and second original conversion data sets as follows. That is, first, image data of a photographic image is analyzed to determine a first image region that is a partial region in the photographic image and in which a human face exists. Then, a first original conversion data set is generated based on a portion corresponding to the first image region of the image data. In addition, a second original conversion data set is generated based on a portion of image data corresponding to a second image region that is an image region in the photographic image and is different from the first image region. Here, it is preferable that the first color range of the color space includes a color that is used with a higher probability when expressing the color of the human skin than the color included in the second color range.

このような態様においては、人の顔が存在する第1の画像領域に基づいて作成された第1の原変換用データセットと、第1の画像領域とは異なる第2の画像領域に基づいて作成された第2の原変換用データセットと、の両方の特性を有する第3の変換用データセットを使用して画像データの色の補正が行われる。このため、人が写っている写真画像の画像データについて色の補正を行う際に、人の顔とそれ以外の部分との両方について好適な補正を行うことができる。   In such an aspect, based on the first original conversion data set created based on the first image area where the human face exists and the second image area different from the first image area. The color correction of the image data is performed by using the generated second original conversion data set and the third conversion data set having both characteristics. For this reason, when color correction is performed on image data of a photographic image in which a person is photographed, it is possible to perform suitable correction for both the human face and other portions.

なお、第1の色範囲内の1以上の基準色は二つの基準色とすることができる。そして、第1の色範囲は、色空間においてそれら二つの基準色からの距離の和が、所定の第1の基準値Ls1以下の範囲であることが好ましい。そして、第2の色範囲は、色空間において距離の和が、第1の基準値Ls1以上の範囲であることが好ましい。このような態様とすれば、人の肌の色の表現に使用される可能性が高い第1の色範囲と、第1の色範囲に比べて人の肌の色の表現に使用される可能性が低い第2の色範囲と、を簡便な方法で区分することができる。   The one or more reference colors in the first color range can be two reference colors. The first color range is preferably a range in which the sum of the distances from the two reference colors in the color space is equal to or less than a predetermined first reference value Ls1. The second color range is preferably a range in which the sum of distances in the color space is not less than the first reference value Ls1. With such an aspect, the first color range that is likely to be used for the expression of human skin color and the expression of the human skin color as compared to the first color range may be used. The second color range having low property can be distinguished by a simple method.

第2種の色については、上記の所定の色空間において二つの基準色からの距離の和が小さい色ほど、その色空間において第1の原変換用データセットの出力色に近い出力色を有し、その色空間において上記の距離の和が大きい色ほど、その色空間において第2の原変換用データセットの出力色に近い出力色を有する変換用データセットを生成することが好ましい。このような態様とすれば、見る者が自然な印象を受けるような補正を行うことができる変換用データセットを簡便な方法で生成することができる。   For the second type of color, the smaller the sum of the distances from the two reference colors in the predetermined color space, the closer to the output color of the first original conversion data set in that color space. However, it is preferable to generate a conversion data set having an output color closer to the output color of the second original conversion data set in the color space for a color having a larger sum of the distances in the color space. With such an aspect, it is possible to generate a conversion data set that can be corrected so that the viewer receives a natural impression by a simple method.

また、第1および第2の原変換用データセットならびに変換用データセットは、入力色を表す入力値の組合せと対応づけられた、出力色を表す出力値の組合せを格納する3次元ルックアップテーブルであって、互いに等しい範囲の入力値を有する3次元ルックアップテーブルとすることができる。そのような態様において、変換用データセットを生成する際には、第1の原変換用データセットとしての第1のルックアップテーブルの出力値と、第2の原変換用データセットとしての第2のルックアップテーブルの出力値と、の重み付け平均を計算することによって、変換用データセットとしての第3のルックアップテーブルを生成することができる。   The first and second original conversion data sets and conversion data sets each store a combination of output values representing an output color and a combination of input values representing an input color. Thus, a three-dimensional lookup table having input values in the same range can be used. In such an aspect, when the conversion data set is generated, the output value of the first lookup table as the first original conversion data set and the second output as the second original conversion data set. By calculating a weighted average of the output values of the look-up tables, a third look-up table as a conversion data set can be generated.

このような態様とすれば、簡易な方法で、第1および第2の原変換用データセットの特性を反映させて、変換用データセットを生成することができる。なお、重み付け平均における第1のルックアップテーブルの出力値の重みは、上記の距離の和の増大に対して線形に減少する直線上にある値とすることができる。また、重み付け平均における第1のルックアップテーブルの出力値の重みは、上記の距離の和の増大に対して上に凸の形状で減少する曲線上にある値とすることもできる。   With such an aspect, it is possible to generate the conversion data set by reflecting the characteristics of the first and second original conversion data sets by a simple method. Note that the weight of the output value of the first lookup table in the weighted average can be a value on a straight line that linearly decreases with respect to the increase in the sum of the distances. Further, the weight of the output value of the first look-up table in the weighted average may be a value on a curve that decreases in an upward convex shape with respect to the increase in the sum of the distances.

なお、第3のルックアップテーブルを生成する際には、第1のルックアップテーブルの入力値の組合せと対応づけられた重みを格納する重みルックアップテーブルを参照しつつ、重み付け平均を計算することによって、第3のルックアップテーブルを生成することが好ましい。このような態様とすれば、画像データの色の補正を行う際の処理の負荷を少なくすることができる。   When generating the third lookup table, the weighted average is calculated while referring to the weight lookup table that stores the weights associated with the combinations of the input values of the first lookup table. To generate a third lookup table. With this aspect, it is possible to reduce the processing load when correcting the color of the image data.

また、第2の色範囲は、色空間において第1の色範囲を囲む色範囲であることが好ましい。このような態様とすれば、色の補正の結果、生成される画像データの画像がそれを見る者に自然に感じられるような変換用データセットを生成することができる。なお、「第2の色範囲が第1の色範囲を囲む」とは、「色空間において、第2の色範囲に含まれるある2点のある内分点が第1の色範囲に含まれる」という条件を満たすような、第1および第2の色範囲内の点が存在することをいう。   The second color range is preferably a color range surrounding the first color range in the color space. According to such an aspect, it is possible to generate a conversion data set so that an image of the generated image data can be naturally felt by a viewer as a result of color correction. Note that “the second color range surrounds the first color range” means “in the color space, an internal dividing point having two points included in the second color range is included in the first color range. The point in the first and second color ranges that satisfies the condition “is present”.

なお、以下のような変換用データセットを生成することも好ましい。すなわち、この変換用データセットは、さらに、色空間において第1および第2の色範囲以外の第3の色範囲に含まれる少なくとも一部の第3種の色については、第2の原変換用データセットと同じ出力色を有する変換用データセットである。このような態様とすれば、一部の色については、第2の原変換用データセットの特性を反映させて補正することができる。よって、画像データについて色の補正を行う際に、画像中のある部分と他の部分との両方について好適な補正を行うことができる。   It is also preferable to generate the following conversion data set. That is, the conversion data set further includes the second original conversion data for at least a part of the third type color included in the third color range other than the first and second color ranges in the color space. This is a conversion data set having the same output color as the data set. With such an aspect, some colors can be corrected by reflecting the characteristics of the second original conversion data set. Therefore, when performing color correction on image data, it is possible to perform suitable correction for both a certain part and another part in the image.

また、第1の色範囲内の1以上の基準色は二つの基準色とすることができる。そして、第1〜第3の色範囲は、以下のような色範囲とすることができる。すなわち、第1の色範囲は、色空間において二つの基準色からの距離の和が、所定の第1の基準値Ls1以下の範囲である。第2の色範囲は、色空間において距離の和が、第1の基準値Ls1以上で所定の第2の基準値Ls2(Ls2>Ls1)以下の範囲である。そして、第3の色範囲は、色空間において距離の和が、第1の基準値Ls2以上の範囲である。   Further, the one or more reference colors in the first color range can be two reference colors. And the 1st-3rd color range can be made into the following color ranges. That is, the first color range is a range in which the sum of the distances from the two reference colors in the color space is equal to or less than the predetermined first reference value Ls1. The second color range is a range in which the sum of distances in the color space is not less than the first reference value Ls1 and not more than a predetermined second reference value Ls2 (Ls2> Ls1). The third color range is a range in which the sum of distances in the color space is greater than or equal to the first reference value Ls2.

このような態様とすれば、人の肌の色の表現に使用される可能性が高い第1の色範囲と、第1の色範囲に比べて人の肌の色の表現に使用される可能性が低い第3の色範囲と、それらの中間の特性を有する第2の色範囲と、を簡便な方法で区分することができる。   With such an aspect, the first color range that is likely to be used for the expression of human skin color and the expression of the human skin color as compared to the first color range may be used. The third color range having low characteristics and the second color range having intermediate characteristics can be distinguished by a simple method.

なお、変換用データセットを生成する際には、第1の画像領域を決定できなかった場合に、画像データに基づいて変換用データセットを生成することが好ましい。このような態様とすれば、画像中において第1の画像領域を決定できた場合と、第1の画像領域を決定できなかった場合との両方について、好ましい色補正を行うことができる。   When generating the conversion data set, it is preferable to generate the conversion data set based on the image data when the first image region cannot be determined. According to such an aspect, preferable color correction can be performed both when the first image area can be determined in the image and when the first image area cannot be determined.

なお、本発明は、種々の形態で実現することが可能であり、例えば、画像処理方法および画像処理装置、印刷方法および印刷装置、印刷制御方法および印刷制御装置、それらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、そのコンピュータプログラムを含み搬送波内に具現化されたデータ信号、等の形態で実現することができる。   The present invention can be realized in various forms, for example, an image processing method and an image processing apparatus, a printing method and a printing apparatus, a printing control method and a printing control apparatus, and functions of those methods or apparatuses. The present invention can be realized in the form of a computer program for realizing, a recording medium recording the computer program, a data signal including the computer program and embodied in a carrier wave, and the like.

A.第1実施例:
A1.装置の全体構成:
図1は、第1の実施形態の印刷システムのソフトウェアの構成を示すブロック図である。コンピュータ90では、所定のオペレーティングシステムの下で、アプリケーションプログラム95が動作している。また、オペレーティングシステムには、ビデオドライバ91やプリンタドライバ96が組み込まれている。
A. First embodiment:
A1. Overall configuration of the device:
FIG. 1 is a block diagram illustrating a software configuration of the printing system according to the first embodiment. In the computer 90, an application program 95 operates under a predetermined operating system. In addition, a video driver 91 and a printer driver 96 are incorporated in the operating system.

アプリケーションプログラム95は、マウス130やキーボード120から入力されるユーザの指示に応じて、レッド(R),グリーン(G),ブルー(B)の3色の色成分からなる原画像データORGをCD−R140から読み込む。そして、ユーザの指示に応じて、原画像データORGに画像のレタッチなどの処理を行う。アプリケーションプログラム95は、処理を行った画像を、ビデオドライバ91を介してCRTディスプレイ21に画像を表示する。また、アプリケーションプログラム95は、ユーザからの印刷指示を受け取ると、プリンタドライバ96に印刷指示を出し、処理を行った画像を初期画像データPIDとしてプリンタドライバ96に出力する。初期画像データPIDは、各画素の色がsRGB表色系で表された画像データである。より具体的には、初期画像データPIDは、各画素について、レッド(R),グリーン(G),ブルー(B)の色成分の階調値(0〜255)を有する画像データである。   The application program 95 converts the original image data ORG composed of the three color components of red (R), green (G), and blue (B) into CD- in accordance with a user instruction input from the mouse 130 or the keyboard 120. Read from R140. Then, in response to a user instruction, processing such as image retouching is performed on the original image data ORG. The application program 95 displays the processed image on the CRT display 21 via the video driver 91. When the application program 95 receives a print instruction from the user, it issues a print instruction to the printer driver 96 and outputs the processed image to the printer driver 96 as initial image data PID. The initial image data PID is image data in which the color of each pixel is expressed in the sRGB color system. More specifically, the initial image data PID is image data having gradation values (0 to 255) of red (R), green (G), and blue (B) color components for each pixel.

プリンタドライバ96は、初期画像データPIDをアプリケーションプログラム95から受け取り、これをプリンタ22が処理可能な印刷画像データFNL(ここではシアン、マゼンダ、イエロー、ブラック、ライトシアン、ライトマゼンタの6色についての多値化された信号)に変換する。   The printer driver 96 receives the initial image data PID from the application program 95, and print image data FNL that can be processed by the printer 22 (here, multiple values for six colors of cyan, magenta, yellow, black, light cyan, and light magenta). Signal).

なお、「ライトシアン」は、シアンと色相が同じでシアンよりも明度が高いインク色である。また、「ライトマゼンタ」は、マゼンタと色相が同じでマゼンタよりも明度が高いインク色である。   Note that “light cyan” is an ink color having the same hue as cyan and a lightness higher than cyan. Further, “light magenta” is an ink color having the same hue as magenta and having a higher lightness than magenta.

図1に示した例では、プリンタドライバ96の内部には、色調調整モジュール103と、解像度変換モジュール97と、色変換モジュール98と、ハーフトーンモジュール99と、並べ替えモジュール100とが備えられている。   In the example shown in FIG. 1, the printer driver 96 includes a color tone adjustment module 103, a resolution conversion module 97, a color conversion module 98, a halftone module 99, and a rearrangement module 100. .

色調調整モジュール103は、アプリケーションプログラム95から受け取った初期画像データPIDを変換して色調を補正し、画像データPIDrを生成する。画像データPIDrは、各画素についてレッド(R),グリーン(G),ブルー(B)の色成分の階調値(0〜255)を有し、初期画像データPIDと同じ画素数を有する画像データである。   The color tone adjustment module 103 converts the initial image data PID received from the application program 95 to correct the color tone, and generates image data PIDr. The image data PIDr has gradation values (0 to 255) of red (R), green (G), and blue (B) color components for each pixel, and has the same number of pixels as the initial image data PID. It is.

なお、プリンタドライバ96における画像処理においては、ユーザが所定のタイミングで、マウス130やキーボード120を介して指示を入力することもできる。このように、CRT21の表示を通じてユーザに所定の指示を行わせ、マウス130やキーボード120を介して行われる入力を受け取る機能部を、UIモジュール(ユーザインターフェイスモジュール)105として図1に示す。   In the image processing in the printer driver 96, the user can input an instruction via the mouse 130 or the keyboard 120 at a predetermined timing. As shown in FIG. 1, a functional unit that allows a user to give a predetermined instruction through the display of the CRT 21 and receives an input performed through the mouse 130 or the keyboard 120 is shown as a UI module (user interface module) 105 in FIG.

解像度変換モジュール97は、画像データPIDrの解像度をプリンタ22で印刷を行う際の解像度に変換して画像データMID1を生成する。   The resolution conversion module 97 converts the resolution of the image data PIDr to the resolution used when printing by the printer 22 and generates the image data MID1.

色変換モジュール98は、3次元ルックアップテーブル104を参照しつつ、画像データMID1を画像データMID2に変換する。画像データMID2は、プリンタ22が使用するシアン(C)、マゼンダ(M)、イエロー(Y)、ブラック(K)、ライトシアン(LC)、ライトマゼンタ(LM)の濃度の階調値で各画素の色が表された画像データである。なお、3次元ルックアップテーブル104は、入力値としてレッド、グリーン、ブルーの階調値の組み合わせを有し、出力値としてシアン、マゼンダ、イエロー、ブラック、ライトシアン、ライトマゼンタの階調値の組み合わせを有するルックアップテーブルである。   The color conversion module 98 converts the image data MID1 into the image data MID2 while referring to the three-dimensional lookup table 104. The image data MID2 is a gradation value of each pixel with a density value of cyan (C), magenta (M), yellow (Y), black (K), light cyan (LC), and light magenta (LM) used by the printer 22. This is image data representing a color. The three-dimensional lookup table 104 has combinations of gradation values of red, green, and blue as input values, and combinations of gradation values of cyan, magenta, yellow, black, light cyan, and light magenta as output values. It is a lookup table having.

ハーフトーンモジュール99は、各画素の各色の濃度が各色の階調値で表された画像データMID2にハーフトーン処理を行うことによって、各色の濃度が各画素におけるドットの有無で表される画像データMID3(「印刷データ」または「ドットデータ」とも呼ぶ)に変換する。   The halftone module 99 performs halftone processing on the image data MID2 in which the density of each color of each pixel is represented by the gradation value of each color, whereby image data in which the density of each color is represented by the presence or absence of dots in each pixel. Conversion to MID3 (also referred to as “print data” or “dot data”).

こうして生成された画像データMID3は、並べ替えモジュール100によりプリンタ22に転送すべきデータ順に並べ替えられて、最終的な印刷画像データFNLとして出力される。   The image data MID3 generated in this way is rearranged in the order of data to be transferred to the printer 22 by the rearrangement module 100, and is output as final print image data FNL.

プリンタ22は、紙送りモータによって用紙Pを搬送する機構と、キャリッジモータによってキャリッジ31を用紙Pの搬送方向SSと垂直な方向MSに往復動させる機構と、キャリッジ31に搭載されインクの吐出およびドット形成を行う印刷ヘッド28と、各種の設定データを格納しているP−ROM42と、これらの紙送りモータ,キャリッジモータ,印刷ヘッド28、P−ROM42および操作パネル32を制御するCPU41とから構成されている。プリンタ22は、印刷画像データFNLを受け取って、印刷画像データFNLに応じてシアン(C)、マゼンダ(M)、イエロー(Y)、ブラック(K)、ライトシアン(LC)、ライトマゼンタ(LM)で印刷媒体上にドットを形成し、印刷を実行する。   The printer 22 includes a mechanism for transporting the paper P by a paper feed motor, a mechanism for reciprocating the carriage 31 in a direction MS perpendicular to the transport direction SS of the paper P by a carriage motor, and ink ejection and dots mounted on the carriage 31. The print head 28 for forming, a P-ROM 42 for storing various setting data, and a CPU 41 for controlling these paper feed motor, carriage motor, print head 28, P-ROM 42 and operation panel 32 are configured. ing. The printer 22 receives the print image data FNL, and in cyan (C), magenta (M), yellow (Y), black (K), light cyan (LC), and light magenta (LM) according to the print image data FNL. Dots are formed on the print medium and printing is performed.

なお、本明細書においては、「印刷装置」とは、狭義にはプリンタ22のみをさすが、広義にはコンピュータ90とプリンタ22とを含む印刷システム全体を表す。   In the present specification, the “printing apparatus” refers only to the printer 22 in a narrow sense, but represents the entire printing system including the computer 90 and the printer 22 in a broad sense.

A2.色調調整モジュールにおける処理:
図2は、色調調整モジュール103における色補正の処理を示すフローチャートである。図2のフローチャートの各処理は、色調調整モジュール103によって実行される。
A2. Processing in the color adjustment module:
FIG. 2 is a flowchart showing color correction processing in the color tone adjustment module 103. Each process of the flowchart of FIG. 2 is executed by the color tone adjustment module 103.

ステップS10では、色調調整モジュール103は、初期画像データPIDを解析し、顔領域A1を決定する。顔領域A1の決定は、たとえば、初期画像データPIDの画像の一部分について、順に、人間の目および口の基本的なパターンを表す基準パターンとマッチングさせることによって行われる。本実施例では、顔領域A1は目に対応する部分と口に対応する部分を含む長方形の領域として特定される。この長方形の領域A1は、マッチングされるパターンに対する比率があらかじめ定められている。その比率は、長方形の領域A1全体に対して人の顔であることを前提として色の補正が行われても画像が不自然とならないような大きさとなるような比率である。なお、初期画像データPIDを解析し顔領域A1を決定する色調調整モジュール103の機能部を、顔領域決定部103aとして図1に示す。   In step S10, the color tone adjustment module 103 analyzes the initial image data PID and determines the face area A1. The determination of the face area A1 is performed, for example, by matching a part of the image of the initial image data PID with a reference pattern representing a basic pattern of human eyes and mouth in order. In this embodiment, the face area A1 is specified as a rectangular area including a portion corresponding to the eyes and a portion corresponding to the mouth. The rectangular area A1 has a predetermined ratio to the pattern to be matched. The ratio is such that the image does not appear unnatural even if color correction is performed on the assumption that the entire rectangular area A1 is a human face. A functional unit of the color tone adjustment module 103 that analyzes the initial image data PID and determines the face area A1 is shown as a face area determination unit 103a in FIG.

図2のステップS20では、ステップS10において顔領域A1が特定できたか否かを判定する。顔領域A1が特定できなかった場合には、処理は、ステップS70に進む。顔領域A1が特定できた場合には、処理は、ステップS30に進む。   In step S20 of FIG. 2, it is determined whether or not the face area A1 has been identified in step S10. If the face area A1 cannot be specified, the process proceeds to step S70. If the face area A1 can be specified, the process proceeds to step S30.

図3は、初期画像データPIDの画像の領域A0中の顔領域A1と背景領域A2を示す図である。本実施例では、アプリケーションプログラム95から送られた初期画像データPIDは、デジタルスチルカメラによって生成された写真画像のデータである。初期画像データPIDの画像中には、被写体として、人物O1と、空O2と、海O3と、が含まれている。初期画像データPIDの写真画像においては、人物O1に対して背後から日の光が当たっている。このため、人物O1は、空O2および海O3に比べて暗く写っている。   FIG. 3 is a diagram showing the face area A1 and the background area A2 in the area A0 of the image of the initial image data PID. In this embodiment, the initial image data PID sent from the application program 95 is photographic image data generated by a digital still camera. The image of the initial image data PID includes a person O1, a sky O2, and a sea O3 as subjects. In the photo image of the initial image data PID, the person O1 is exposed to sunlight from behind. For this reason, the person O1 appears darker than the sky O2 and the sea O3.

図2のステップS30では、色調調整モジュール103は、初期画像データPIDのうち顔領域A1に対応するデータに基づいて、顔領域用の3次元ルックアップテーブル106aを生成する。たとえば、色調調整モジュール103は、以下のように顔領域用の3次元ルックアップテーブル106aを生成する。   In step S30 of FIG. 2, the color tone adjustment module 103 generates a three-dimensional lookup table 106a for the face area based on data corresponding to the face area A1 in the initial image data PID. For example, the color tone adjustment module 103 generates the three-dimensional lookup table 106a for the face area as follows.

色調調整モジュール103は、まず、顔領域A1の各画素のRGBの階調値に基づいて、顔領域A1の平均の色Cfaを計算する。そして、その平均の色Cfaに対応する3次元ルックアップテーブル106aの出力色を、理想的な顔の肌の色に決定する。具体的には、理想的な顔の肌の色を表す出力階調値の組合せを、平均色Cfaを表す入力階調値の組合せに対応づける。また、色調調整モジュール103は、平均の色Cfa以外の色についても、理想的な顔の肌の色に近づくように、各色に対応する3次元ルックアップテーブル106aの出力値を決定する。平均色Cfa以外の色については、その色が平均色Cfaに近い色ほど改変量が大きく、平均色Cfaから遠い色ほど改変量が小さくなるように、3次元ルックアップテーブル106aの出力値が定められる。なお、改変量は、第1実施例においては、RGB表色系における変換前後の色の距離で評価する。   The tone adjustment module 103 first calculates the average color Cfa of the face area A1 based on the RGB gradation values of each pixel of the face area A1. Then, the output color of the three-dimensional lookup table 106a corresponding to the average color Cfa is determined as an ideal facial skin color. Specifically, a combination of output gradation values representing an ideal facial skin color is associated with a combination of input gradation values representing the average color Cfa. Further, the color tone adjustment module 103 determines the output value of the three-dimensional lookup table 106a corresponding to each color so that colors other than the average color Cfa also approach the ideal facial skin color. For colors other than the average color Cfa, the output value of the three-dimensional lookup table 106a is determined so that the color is closer to the average color Cfa and the amount of modification is larger, and the color farther from the average color Cfa is smaller. It is done. In the first embodiment, the modification amount is evaluated by the color distance before and after conversion in the RGB color system.

このように顔領域用の3次元ルックアップテーブル106aを生成する色調調整モジュール103の機能部を、第1の3DLUT生成部(第1の3次元ルックアップテーブル生成部)103bとして図1に示す。   The functional unit of the color tone adjustment module 103 that generates the three-dimensional look-up table 106a for the face area in this manner is shown in FIG. 1 as a first 3DLUT generation unit (first three-dimensional lookup table generation unit) 103b.

なお、「色の改変量」、すなわち「色の違い」は、その色空間において異なる色を表す各点の各成分の差の2乗和の平方根で表される。たとえば、RGB色空間において、ある色C1が(Vr1,Vg1,Vb1)で表されるとする。そして、その色C1と(Vr2,Vg2,Vb2)で表される色C2との違いΔDcは、以下の式(1)で表される。なお、この色の違いΔDcを、以下では、RGB色空間における二つの色の「距離」とも表記する。   The “color modification amount”, that is, “color difference” is represented by the square root of the sum of squares of the difference between the components of each point representing different colors in the color space. For example, it is assumed that a certain color C1 is represented by (Vr1, Vg1, Vb1) in the RGB color space. The difference ΔDc between the color C1 and the color C2 represented by (Vr2, Vg2, Vb2) is represented by the following equation (1). Hereinafter, this color difference ΔDc is also referred to as a “distance” between two colors in the RGB color space.

Figure 0004635916
Figure 0004635916

図2のステップS40では、色調調整モジュール103は、初期画像データPIDの全領域A0のデータに基づいて、背景用の3次元ルックアップテーブル106bを生成する。たとえば、色調調整モジュール103は、以下のように背景用の3次元ルックアップテーブル106bを生成する。   In step S40 of FIG. 2, the color tone adjustment module 103 generates a background three-dimensional lookup table 106b based on the data of the entire area A0 of the initial image data PID. For example, the color tone adjustment module 103 generates the background three-dimensional lookup table 106b as follows.

色調調整モジュール103は、まず、画像の全領域A0の各画素のRGBの階調値に基づいて、全領域A0の平均の色Caaを計算する。そして、その平均の色Caaに対応する3次元ルックアップテーブル106bの出力色を、理想的な背景の色に決定する。具体的には、理想的な背景の色を表す出力階調値の組合せを、平均色Caaを表す入力階調値の組合せに対応づける。また、平均の色Caa以外の色についても、理想的な背景の色に近づくように、各色に対応する3次元ルックアップテーブル106bの出力値を決定する。平均色Caa以外の色については、その色が平均色Caaに近い色ほど改変量が大きく、平均色Caaから遠い色ほど改変量が小さくなるように、3次元ルックアップテーブル106bの出力値が定められる。このように背景用の3次元ルックアップテーブル106bを生成する色調調整モジュール103の機能部を、第2の3DLUT生成部(第2の3次元ルックアップテーブル生成部)103cとして示す。   The color tone adjustment module 103 first calculates the average color Caa of the entire area A0 based on the RGB gradation values of the pixels of the entire area A0 of the image. Then, the output color of the three-dimensional lookup table 106b corresponding to the average color Caa is determined as an ideal background color. Specifically, a combination of output gradation values representing an ideal background color is associated with a combination of input gradation values representing the average color Caa. For the colors other than the average color Caa, the output value of the three-dimensional lookup table 106b corresponding to each color is determined so as to approach the ideal background color. For the colors other than the average color Caa, the output value of the three-dimensional lookup table 106b is determined so that the color is closer to the average color Caa and the amount of modification is larger, and the color farther from the average color Caa is smaller. It is done. A functional unit of the color tone adjustment module 103 that generates the background three-dimensional lookup table 106b in this manner is shown as a second 3DLUT generation unit (second three-dimensional lookup table generation unit) 103c.

図2のステップS50では、色調調整モジュール103は、顔領域用の3次元ルックアップテーブル106aと、背景用の3次元ルックアップテーブル106bとに基づいて、色補正用ルックアップテーブル106cを生成する。すなわち、色調調整モジュール103は、顔領域用の3次元ルックアップテーブル106a中の対応するグリッドの出力値と、背景領域用の3次元ルックアップテーブル106b中の対応するグリッドの出力値と、に基づいて色補正用ルックアップテーブル106cの各グリッドの出力値を計算する。   In step S50 of FIG. 2, the color tone adjustment module 103 generates a color correction lookup table 106c based on the face area three-dimensional lookup table 106a and the background three-dimensional lookup table 106b. That is, the color tone adjustment module 103 is based on the output value of the corresponding grid in the three-dimensional lookup table 106a for the face area and the output value of the corresponding grid in the three-dimensional lookup table 106b for the background area. The output value of each grid of the color correction lookup table 106c is calculated.

なお、「グリッド」とは、3次元ルックアップテーブルの入力値の組合せ(たとえば、レッド、グリーン、ブルーの各階調値の組合せ)で特定される、色空間内の点である。3次元ルックアップテーブルにおいて、各グリッドは、出力階調値の組合せと対応づけられている。なお、レッド、グリーン、ブルーの各階調値が0〜255の値をとるとき、グリッドは、たとえば、そのうちのそれぞれ17個の階調値の組合せで決定される点である。そのような態様のルックアップテーブルは、17×17×17=4913個のグリッドを有する。   The “grid” is a point in the color space specified by a combination of input values (for example, a combination of red, green, and blue gradation values) in the three-dimensional lookup table. In the three-dimensional lookup table, each grid is associated with a combination of output tone values. In addition, when each gradation value of red, green, and blue takes a value of 0-255, a grid is a point determined by the combination of 17 gradation values of each, for example. Such a look-up table has 17 × 17 × 17 = 4913 grids.

また、以下で、「あるルックアップテーブル中のグリッドに対応する他のルックアップテーブル中のグリッド」という場合には、「あるルックアップテーブル中のグリッド」の入力階調値の組合せと等しい入力階調値の組合せを有する「他のルックアップテーブル中のグリッド」を意味する。   Further, in the following, when “grid in another lookup table corresponding to a grid in a certain lookup table” is referred to, an input floor equal to the combination of input gradation values of “grid in a certain lookup table” is used. Means a “grid in another lookup table” with a combination of key values.

色調調整モジュール103は、たとえば、色補正用ルックアップテーブル106cのあるグリッドにおけるレッドの階調値Vr3を計算する際には、顔領域用の3次元ルックアップテーブル106a中の対応するグリッドのレッドの階調値Vr1と、背景領域用の3次元ルックアップテーブル106b中の対応するグリッドのレッドの階調値Vr2と、について、以下の式(2)のように重み付け平均を計算する。なお、W1は、顔領域用の3次元ルックアップテーブル106aの重みである。W2は、背景領域用の3次元ルックアップテーブル106bの重みである。各ルックアップテーブルの重みW1,W2は、0以上1以下の値をとる。W1とW2とは、W1+W2=1の関係を有する。   For example, when calculating the red gradation value Vr3 in a certain grid of the color correction lookup table 106c, the color tone adjustment module 103 calculates the red of the corresponding grid in the three-dimensional lookup table 106a for the face area. For the gradation value Vr1 and the gradation value Vr2 of red of the corresponding grid in the three-dimensional lookup table 106b for the background region, a weighted average is calculated as in the following equation (2). W1 is the weight of the three-dimensional lookup table 106a for the face area. W2 is the weight of the three-dimensional lookup table 106b for the background area. The weights W1 and W2 of each lookup table take values of 0 or more and 1 or less. W1 and W2 have a relationship of W1 + W2 = 1.

Vr3=W1×Vr1+W2×Vr2 ・・・ (2)   Vr3 = W1 × Vr1 + W2 × Vr2 (2)

色補正用ルックアップテーブル106cのグリーンおよびブルーの出力階調値についても同様に、顔領域用の3次元ルックアップテーブル106aの階調値と、背景領域用の3次元ルックアップテーブル106bの階調値と、について以下の式(3)、(4)にしたがって重み付け平均を計算して決定する。   Similarly, with respect to the green and blue output gradation values of the color correction lookup table 106c, the gradation values of the three-dimensional lookup table 106a for the face area and the gradations of the three-dimensional lookup table 106b for the background area The weighted average is calculated and determined according to the following formulas (3) and (4).

Vg3=W1×Vg1+W2×Vg2 ・・・ (3)
Vb3=W1×Vb1+W2×Vb2 ・・・ (4)
Vg1:顔領域用の3次元ルックアップテーブル106aのグリーンの出力階調値
Vg2:背景領域用の3次元ルックアップテーブル106bのグリーンの出力階調値
Vg3:色補正用ルックアップテーブル106cのグリーンの出力階調値
Vb1:顔領域用の3次元ルックアップテーブル106aのブルーの出力階調値
Vb2:背景領域用の3次元ルックアップテーブル106bのブルーの出力階調値
Vb3:色補正用ルックアップテーブル106cのブルーの出力階調値
Vg3 = W1 × Vg1 + W2 × Vg2 (3)
Vb3 = W1 × Vb1 + W2 × Vb2 (4)
Vg1: Green output gradation value of the three-dimensional lookup table 106a for the face area Vg2: Green output gradation value of the three-dimensional lookup table 106b for the background area Vg3: Green of the green color of the color correction lookup table 106c Output gradation value Vb1: Blue output gradation value of the three-dimensional lookup table 106a for the face area Vb2: Blue output gradation value of the three-dimensional lookup table 106b for the background area Vb3: Lookup table for color correction 106c blue output tone value

図4は、顔領域用の3次元ルックアップテーブル106aと、背景用の3次元ルックアップテーブル106bとに基づいて、色補正用ルックアップテーブル106cを生成する方法を示す図である。色補正用ルックアップテーブル106cにおいて各入力色を表すグリッドは、3種類に分類される。   FIG. 4 is a diagram showing a method of generating the color correction lookup table 106c based on the three-dimensional lookup table 106a for the face area and the three-dimensional lookup table 106b for the background. In the color correction lookup table 106c, the grids representing the input colors are classified into three types.

第1種のグリッドは、第1の基準色を表す点Ps1rと第2の基準色を表す点Ps2rを焦点とする楕円の回転体(以下、このような3次元形状を「楕円殻」と表記する)Es1内に含まれるグリッドである。以下、楕円殻Es1内の領域を第1の色範囲Scfと表記する。第2種のグリッドは、同じく、点Ps1r,Ps2rを焦点とする楕円殻であって楕円殻Es1よりも大きい楕円殻Es2内であり、かつ、楕円殻Es1外の領域(以下、「第2の色範囲Scm」と表記する)に含まれるグリッドである。第3種のグリッドは、楕円殻Es2外の領域(以下、「第3の色範囲Scb」と表記する)に含まれるグリッドである。   The first type of grid is an ellipsoidal rotator (hereinafter referred to as an “elliptical shell”) that has a point Ps1r representing the first reference color and a point Ps2r representing the second reference color. It is a grid included in Es1. Hereinafter, the region in the elliptical shell Es1 is referred to as a first color range Scf. Similarly, the second type grid is an elliptical shell that is focused on the points Ps1r and Ps2r, is in the elliptical shell Es2 that is larger than the elliptical shell Es1, and is a region outside the elliptical shell Es1 (hereinafter referred to as “second”). This is a grid included in the “color range Scm”. The third type of grid is a grid included in an area outside the elliptical shell Es2 (hereinafter referred to as “third color range Scb”).

第1の基準色の点Ps1rは、レッド、グリーン、ブルーの階調値がそれぞれ220,180,200の点である。第2の基準色の点Ps2rは、レッド、グリーン、ブルーの階調値がそれぞれ200,160,180の点である。第1と第2の基準色は、人の肌を表す際に使用される色であり、いずれも理想的な肌色に近い色である。   The first reference color point Ps1r is a point where the gradation values of red, green, and blue are 220, 180, and 200, respectively. The second reference color point Ps2r is a point where the gradation values of red, green, and blue are 200, 160, and 180, respectively. The first and second reference colors are colors used when representing human skin, and both are colors close to the ideal skin color.

楕円殻Es1は、RGB色空間において、第1の基準色の点Ps1rと第2の基準色の点Ps2rからの距離の和がLs1である点の集合である。そして、楕円殻Es2は、RGB色空間において、点Ps1r,Ps2rからの距離の和がLs2(Ls2>Ls1)である点の集合である。Ls1は、たとえば、50とすることができる。Ls2は、たとえば、100とすることができる。なお、図4の右側に示した色補正用ルックアップテーブル106c内の楕円殻Es1,Es2は理解を容易にするために示したものである。そして、図4中の楕円殻Es1,Es2の大きさおよび位置は、実際の数値を反映するものではない。   The ellipsoidal shell Es1 is a set of points in which the sum of the distances from the first reference color point Ps1r and the second reference color point Ps2r is Ls1 in the RGB color space. The elliptic shell Es2 is a set of points whose sum of distances from the points Ps1r and Ps2r is Ls2 (Ls2> Ls1) in the RGB color space. Ls1 can be set to 50, for example. Ls2 can be set to 100, for example. The elliptical shells Es1 and Es2 in the color correction lookup table 106c shown on the right side of FIG. 4 are shown for easy understanding. And the magnitude | size and position of elliptical shell Es1, Es2 in FIG. 4 do not reflect an actual numerical value.

図5は、RGB色空間における点Ps1r,Ps2rからの距離L1,L2の和Lsと、顔領域用の3次元ルックアップテーブル106aの重みW1と、背景領域用の3次元ルックアップテーブル106bの重みW2と、の関係を示すグラフである。グラフの横軸は、点Ps1r,Ps2rからの距離の和Lsを表す。図5のグラフの横軸において、Ls≦Ls1の範囲は、第1の色範囲Scfに相当する。Ls1<Ls<Ls2の範囲は、第2の色範囲Scmに相当する。そして、Ls≧Ls2の範囲は、第3の色範囲Scbに相当する。   FIG. 5 shows the sum Ls of the distances L1 and L2 from the points Ps1r and Ps2r in the RGB color space, the weight W1 of the three-dimensional lookup table 106a for the face area, and the weight of the three-dimensional lookup table 106b for the background area. It is a graph which shows the relationship with W2. The horizontal axis of the graph represents the sum Ls of distances from the points Ps1r and Ps2r. On the horizontal axis of the graph of FIG. 5, the range of Ls ≦ Ls1 corresponds to the first color range Scf. The range of Ls1 <Ls <Ls2 corresponds to the second color range Scm. The range of Ls ≧ Ls2 corresponds to the third color range Scb.

図5においては、第1の色範囲Scfに相当するLs≦Ls1の範囲においては、顔領域用の3次元ルックアップテーブル106aの重みW1は1である。そして、背景領域用の3次元ルックアップテーブル106bの重みW2は0である。   In FIG. 5, in the range of Ls ≦ Ls1 corresponding to the first color range Scf, the weight W1 of the three-dimensional lookup table 106a for the face area is 1. The weight W2 of the three-dimensional lookup table 106b for the background area is 0.

すなわち、色調調整モジュール103は、色補正用ルックアップテーブル106cを生成する際には、第1の色範囲Scfに含まれるグリッドGfについては、出力値として、顔領域用の3次元ルックアップテーブル106a中の対応するグリッドの出力値と同じ出力値を決定する。   That is, when the color tone adjustment module 103 generates the color correction look-up table 106c, the output value of the grid Gf included in the first color range Scf is output as the face area three-dimensional look-up table 106a. Determine the same output value as the output value of the corresponding grid.

理想的な人の肌の色に近い第1の色範囲Scf内の色は、写真画像中において人の肌を表している可能性が高い。上記のような態様においては、人の肌の色に対応づけられる出力値が、顔領域用の3次元ルックアップテーブル106aと同じ出力値となるように、色補正用ルックアップテーブル106cを生成することができる。その結果、色補正用ルックアップテーブル106cを、人の肌の色を好適に補正することができるルックアップテーブルとすることができる。   There is a high possibility that the color in the first color range Scf close to the ideal human skin color represents the human skin in the photographic image. In the above-described aspect, the color correction lookup table 106c is generated so that the output value associated with the human skin color is the same as the output value of the face area three-dimensional lookup table 106a. be able to. As a result, the color correction lookup table 106c can be a lookup table that can suitably correct the color of human skin.

また、第3の色範囲Scbに相当するLs≧Ls2の範囲においては、顔領域用の3次元ルックアップテーブル106aの重みW1は0である。そして、背景領域用の3次元ルックアップテーブル106bの重みW2は1である。   In the range of Ls ≧ Ls2 corresponding to the third color range Scb, the weight W1 of the three-dimensional look-up table 106a for the face area is zero. The weight W2 of the three-dimensional lookup table 106b for the background area is 1.

すなわち、色調調整モジュール103は、第3の色範囲Scbに含まれるグリッドGbについては、出力値として、背景領域用の3次元ルックアップテーブル106b中の対応するグリッドの出力値と同じ出力値を決定する。   That is, the color tone adjustment module 103 determines the same output value as the output value of the corresponding grid in the background region three-dimensional lookup table 106b for the grid Gb included in the third color range Scb. To do.

人の肌の色とは大きく異なる第3の色範囲Scb内の色は、写真画像中において人の肌以外の服や背景を表す可能性が高い。上記のような態様においては、服や背景などの色に対応づけられる出力値が、背景領域用の3次元ルックアップテーブル106bと同じ出力値となるように、色補正用ルックアップテーブル106cを生成することができる。その結果、色補正用ルックアップテーブル106cを、服や背景の色を好適に補正することができるルックアップテーブルとすることができる。   The color in the third color range Scb that is significantly different from the color of human skin is highly likely to represent clothes and backgrounds other than human skin in the photographic image. In the above-described aspect, the color correction lookup table 106c is generated so that the output value associated with the color such as clothes and background becomes the same output value as the three-dimensional lookup table 106b for the background region. can do. As a result, the color correction lookup table 106c can be a lookup table that can suitably correct the color of clothes and background.

さらに、顔領域用の3次元ルックアップテーブル106aの重みW1は、第2の色範囲Scmに相当するLs1<Ls<Ls2の範囲において、基準色の点Ps1r,Ps2rからの距離の和Lsの増加に対して上に凸のカーブで単調減少する曲線上にある値である。そして、背景領域用の3次元ルックアップテーブル106bの重みW2は、第2の色範囲Scmに相当するLs1<Ls<Ls2の範囲において、Lsの増加に対して下に凸のカーブで単調増加する曲線上にある値である。なお、本明細書において、「曲線上にある値」とは、「曲線上の値」プラスマイナス5%の範囲に含まれる値であることをいう。色調調整モジュール103は、第2の色範囲Scmに含まれるグリッドGmについては、上記のような重みW1,W2に基づいて式(2)〜(4)を使用して重み付け平均を行うことで、出力値を決定する。   Further, the weight W1 of the three-dimensional look-up table 106a for the face area is an increase in the sum Ls of the distances from the reference color points Ps1r and Ps2r in the range of Ls1 <Ls <Ls2 corresponding to the second color range Scm. On the other hand, the value is on a curve that monotonously decreases with a convex curve upward. Then, the weight W2 of the three-dimensional lookup table 106b for the background region monotonously increases with a downward convex curve with respect to the increase of Ls in the range of Ls1 <Ls <Ls2 corresponding to the second color range Scm. The value on the curve. In the present specification, the “value on the curve” means a value included in the range of “value on the curve” plus or minus 5%. For the grid Gm included in the second color range Scm, the color tone adjustment module 103 performs weighted averaging using the equations (2) to (4) based on the weights W1 and W2 as described above. Determine the output value.

上記のような態様とすることで、色補正用ルックアップテーブル106cの生成において、第2の色範囲Scmに含まれるグリッドの出力値を以下のような値とすることができる。すなわち、第1の色範囲Scfに近いグリッドほど顔領域用の3次元ルックアップテーブル106aの出力値の色に近い色を表す出力値を有する。そして、第1の色範囲Scfから遠いグリッドほど背景用の3次元ルックアップテーブル106bの出力値の色に近い色を表す出力値を有する。第1の画像領域と第3の領域の間に位置する第2の色範囲Scmにおいてこのように出力値を定めることで、画像の色変換の結果が、見る者にとって自然であると感じられるような色補正用ルックアップテーブル106cを生成することができる。   By setting it as the above aspects, in the production | generation of the color correction lookup table 106c, the output value of the grid contained in the 2nd color range Scm can be made into the following values. That is, the grid that is closer to the first color range Scf has an output value that represents a color that is closer to the color of the output value of the face area three-dimensional lookup table 106a. A grid farther from the first color range Scf has an output value representing a color closer to the color of the output value of the background three-dimensional lookup table 106b. By determining the output value in this way in the second color range Scm located between the first image region and the third region, the color conversion result of the image can be felt natural for the viewer. A color correction lookup table 106c can be generated.

顔領域用の3次元ルックアップテーブル106aの重みWC1がLsに対して線形に減少し、背景用の3次元ルックアップテーブル106bの重みWC2がLsに対して線形に増大する比較例を、図5において破線で示す。第1実施例においては、図5に示すように、顔領域用の3次元ルックアップテーブル106aの重みW1は、二つの基準点Ps1r,Ps2rからの距離の和Lsの増大に対して、線形に減少するのではなく、上に凸のカーブに沿って減少する。その結果、第1実施例の色補正用ルックアップテーブル106cにおいては、第2の色範囲Scm中のグリッドであって第1の色範囲Scfに近いグリッドの出力値は、比較例の態様よりも顔領域用の3次元ルックアップテーブル106aの重みが大きくなる。   FIG. 5 shows a comparative example in which the weight WC1 of the face area three-dimensional lookup table 106a decreases linearly with respect to Ls and the weight WC2 of the background three-dimensional lookup table 106b increases linearly with respect to Ls. In FIG. In the first embodiment, as shown in FIG. 5, the weight W1 of the three-dimensional lookup table 106a for the face region is linear with respect to the increase of the sum Ls of the distances from the two reference points Ps1r and Ps2r. Instead of decreasing, it decreases along an upwardly convex curve. As a result, in the color correction lookup table 106c of the first embodiment, the output value of the grid in the second color range Scm and close to the first color range Scf is higher than that of the comparative example. The weight of the three-dimensional lookup table 106a for the face area is increased.

たとえば、第1の基準色の点Ps1rと第2の基準色の点Ps2rからの距離の和がLssであるグリッドについては、第1実施例の重みW1sは、比較例の重みWC1sよりも大きい。その結果、第1実施例の色補正用ルックアップテーブル106cにおいては、比較例に沿って生成されるルックアップテーブルよりも顔領域用の3次元ルックアップテーブル106aの出力値に近くなる。   For example, for a grid in which the sum of the distances from the first reference color point Ps1r and the second reference color point Ps2r is Lss, the weight W1s of the first embodiment is larger than the weight WC1s of the comparative example. As a result, the color correction look-up table 106c of the first embodiment is closer to the output value of the three-dimensional look-up table 106a for the face area than the look-up table generated along the comparative example.

写真を撮影する際の光源が色を有していた場合は、写真画像中において第2の画像領域に含まれる色を有する部分であっても、人の顔である可能性がある。第2の色範囲Scmに含まれる色で表された画像領域が、そのような色に偏りがある人の顔である可能性もある。一方、人は、同程度の大きさであれば、写真画像中の人の顔の色を背景の入りよりもより重視する。   When the light source used when taking a photograph has a color, even a portion having a color included in the second image region in the photographic image may be a human face. There is also a possibility that the image region represented by the color included in the second color range Scm is a human face having such a color bias. On the other hand, if a person has the same size, the person's face color in the photographic image is more important than the background.

第2の色範囲Scmにおいて重みW1を上記のように定めることで、第2の色範囲Scmにおいて人の顔である可能性が相対的に大きい色(グリッド)について、比較例に比べて顔領域用の3次元ルックアップテーブル106aの特性をより強く反映させることができる。その結果、画像変換の結果がよりユーザが好ましいと感じられるように、色補正用ルックアップテーブル106cを生成することができる。   By defining the weight W1 in the second color range Scm as described above, the face region is compared with the comparative example for colors (grids) that are relatively likely to be human faces in the second color range Scm. The characteristics of the three-dimensional lookup table 106a can be reflected more strongly. As a result, the color correction lookup table 106c can be generated so that the user feels that the result of the image conversion is more favorable.

なお、図5に示したような顔領域用の3次元ルックアップテーブル106aの重みW1、および背景領域用の3次元ルックアップテーブル106bの重みW2は、あらかじめ重みルックアップテーブル107(図1参照)に格納されている。重みルックアップテーブル107は、色補正用ルックアップテーブル106cが有すべき入力値のグリッドと同じ入力値のグリッドを有している。そして、重みルックアップテーブル107は、それらのグリッドと対応づけて図5に示した条件を満たす重みW1,W2を格納している。色調調整モジュール103は、図2のステップS50において3次元ルックアップテーブル106a,106bに基づいて色補正用ルックアップテーブル106cを生成する際に、この重みルックアップテーブル107を参照する(図4参照)。   The weight W1 of the three-dimensional lookup table 106a for the face area and the weight W2 of the three-dimensional lookup table 106b for the background area as shown in FIG. 5 are set in advance in the weight lookup table 107 (see FIG. 1). Stored in The weight lookup table 107 has the same grid of input values as the grid of input values that the color correction lookup table 106c should have. The weight lookup table 107 stores weights W1 and W2 that satisfy the conditions shown in FIG. 5 in association with these grids. The color tone adjustment module 103 refers to the weight lookup table 107 when generating the color correction lookup table 106c based on the three-dimensional lookup tables 106a and 106b in step S50 of FIG. 2 (see FIG. 4). .

以上のようにして色補正用ルックアップテーブル106cを生成する色調調整モジュール103の機能部を、色補正用LUT生成部(色補正用ルックアップテーブル生成部)103eとして図1に示す。   A functional unit of the color tone adjustment module 103 that generates the color correction lookup table 106c as described above is illustrated in FIG. 1 as a color correction LUT generation unit (color correction lookup table generation unit) 103e.

図2のステップS60では、色調調整モジュール103は、色補正用ルックアップテーブル106cを参照して初期画像データPIDを画像変換することによって、画像データPIDrを生成する(図1参照)。このような機能を奏する色調調整モジュール103を、色調補正部103fとして図1に示す。   In step S60 of FIG. 2, the color tone adjustment module 103 converts the initial image data PID with reference to the color correction lookup table 106c, thereby generating image data PIDr (see FIG. 1). A color tone adjustment module 103 having such a function is shown in FIG. 1 as a color tone correction unit 103f.

一方、ステップS10において、写真画像中に顔領域が特定できなかった場合には、処理は、ステップS70に進む。ステップS70では、色調調整モジュール103は、初期画像データPIDの全領域A0のデータに基づいて、色補正用ルックアップテーブル106cを生成する。色補正用ルックアップテーブル106cは、たとえば、ステップS40で背景領域用の3次元ルックアップテーブル106bを生成する際と同じ方法で生成することができる。このような機能は、第2の3次元ルックアップテーブル生成部103c(図1参照)が奏する。その後、ステップS60では、色調調整モジュール103は、色補正用ルックアップテーブル106cを参照して初期画像データPIDを画像変換して、画像データPIDrを生成する(図1参照)。   On the other hand, if the face area cannot be specified in the photographic image in step S10, the process proceeds to step S70. In step S70, the color tone adjustment module 103 generates the color correction lookup table 106c based on the data of the entire area A0 of the initial image data PID. The color correction lookup table 106c can be generated, for example, in the same manner as when the three-dimensional lookup table 106b for the background region is generated in step S40. Such a function is provided by the second three-dimensional lookup table generation unit 103c (see FIG. 1). After that, in step S60, the color tone adjustment module 103 converts the initial image data PID with reference to the color correction lookup table 106c, and generates image data PIDr (see FIG. 1).

写真画像中に顔領域が存在しない場合は、ステップS70のような処理で色補正用ルックアップテーブル106cを生成することによって、ステップS60において、画像全体の色の傾向を反映させた色の補正を行うことができる。   If the face area does not exist in the photographic image, the color correction lookup table 106c is generated by the process as in step S70, and in step S60, the color correction reflecting the color tendency of the entire image is performed. It can be carried out.

B.第2実施例:
第2実施例においては、図2のステップS50における顔領域用の3次元ルックアップテーブル106aと、背景用の3次元ルックアップテーブル106bとの出力値の重み付けの重みが第1実施例とは異なる。第2実施例の他の点は第1実施例と同じである。
B. Second embodiment:
In the second embodiment, the weights for weighting the output values of the face area three-dimensional lookup table 106a and the background three-dimensional lookup table 106b in step S50 of FIG. 2 are different from those of the first embodiment. . The other points of the second embodiment are the same as those of the first embodiment.

図6は、L***空間における第1から第3の領域ScfL,ScmL,ScbLを示す図である。第1の色範囲ScfLは、L***空間において、第1の基準色を表す点Ps1Lと第2の基準色を表す点Ps2Lを焦点とする楕円殻Es1L内の領域である。第2の色範囲ScmLは、同じく、点Ps1L,Ps2Lを焦点とする楕円殻であって楕円殻Es1Lよりも大きい楕円殻Es2L内であり、かつ、楕円殻Es1外の領域である。第3の色範囲ScbLは、楕円殻Es2L外の領域である。 FIG. 6 is a diagram showing the first to third regions ScfL, ScmL, ScbL in the L * a * b * space. The first color range ScfL is an area in the elliptical shell Es1L having a focus on the point Ps1L representing the first reference color and the point Ps2L representing the second reference color in the L * a * b * space. Similarly, the second color range ScmL is an elliptical shell that is focused on the points Ps1L and Ps2L, is in the elliptical shell Es2L that is larger than the elliptical shell Es1L, and is outside the elliptical shell Es1. The third color range ScbL is an area outside the elliptical shell Es2L.

第1の基準色の点Ps1Lは、L*,a*,b*の階調値がそれぞれ65,20,20の点である。第2の基準色の点Ps2Lは、L*,a*,b*の階調値がそれぞれ85,20,20の点である。第2実施例の第1と第2の基準色も、人の肌を表す際に使用される色であり、いずれも理想的な肌色に近い色である。 The first reference color point Ps1L is a point at which the gradation values of L * , a * , and b * are 65, 20, and 20, respectively. The second reference color point Ps2L is a point at which the gradation values of L * , a * , and b * are 85, 20, and 20, respectively. The first and second reference colors of the second embodiment are also colors used when representing human skin, and both are colors close to the ideal skin color.

なお、L***空間においては、L*の最大値は100である。このため、楕円殻Es1L内の領域であってもL*が100を超える部分については、第1の色範囲ScfLを構成しない。同様に、楕円殻Es2L内の領域であってもL*が100を超える部分については、第2の色範囲ScmLを構成しない。本明細書においては、このように、色空間において楕円などの3次元形状が所定の色の領域(色範囲)を完全に囲っておらず、その色の領域の一部がその色空間の最大範囲に達している場合も、その3次元形状がその色空間を「区切っている」と表記する。 In the L * a * b * space, the maximum value of L * is 100. For this reason, even in the region within the elliptical shell Es1L, the first color range ScfL is not configured for a portion where L * exceeds 100. Similarly, even in the region within the elliptical shell Es2L, the second color range ScmL is not configured for a portion where L * exceeds 100. In this specification, in this way, a three-dimensional shape such as an ellipse in the color space does not completely surround a predetermined color area (color range), and a part of the color area is the maximum of the color space. Even when the range is reached, the three-dimensional shape is described as “separating” the color space.

なお、図6において、参考までに、顔領域の判定に使用される色範囲Scxを示す。色範囲Scxは、14個pc1〜pc14の点で囲まれた7角柱内の領域である。ステップS10においては、画像中に目や口などの基準パターンと一致する模様が存在する場合にも、その模様が存在する領域の色がこの色範囲Scx内にない場合には、その模様を顔であるとは判定しない。楕円殻Es1L,Es2Lは、この色範囲Scxに基づいて定めることができる。たとえば、楕円殻Es1Lは、色範囲Scx内に含まれるように定めることができる。また、楕円殻Es2Lは、内部に色範囲Scxを含むように定めることができる。   In FIG. 6, for reference, the color range Scx used for the determination of the face area is shown. The color range Scx is a region in a heptagonal cylinder surrounded by 14 points pc1 to pc14. In step S10, even if there is a pattern in the image that matches the reference pattern such as the eyes and mouth, if the color of the area where the pattern exists is not within the color range Scx, the pattern is displayed as a face. It is not determined to be. The elliptic shells Es1L and Es2L can be determined based on the color range Scx. For example, the elliptical shell Es1L can be determined to be included in the color range Scx. The elliptical shell Es2L can be determined so as to include the color range Scx.

第2実施例においても、色補正用ルックアップテーブル106cにおいて各入力色を表すグリッドは、3種類に分類される。第1種のグリッドGfLは、そのグリッドが表す色をL***表色系で表現した場合に、L***の第1の色範囲ScfLに含まれるグリッドである。第2種のグリッドGmLは、そのグリッドが表す色をL***表色系で表現した場合に、L***の第2の色範囲ScmLに含まれるグリッドである。第3種のグリッドGbLは、そのグリッドが表す色をL***表色系で表現した場合に、L***の第3の色範囲ScbLに含まれるグリッドである。 Also in the second embodiment, the grid representing each input color in the color correction lookup table 106c is classified into three types. The first type of grid GfL is a grid included in the first color range ScfL of L * a * b * when the color represented by the grid is expressed in the L * a * b * color system. The second type grid GmL is a grid included in the second color range ScmL of L * a * b * when the color represented by the grid is expressed in the L * a * b * color system. The third type grid GbL is a grid included in the third color range ScbL of L * a * b * when the color represented by the grid is expressed in the L * a * b * color system.

図7は、L***色空間における点Ps1L,Ps2Lからの距離の和LsLと、顔領域用の3次元ルックアップテーブル106aの重みW1Lと、背景領域用の3次元ルックアップテーブル106bの重みW2Lと、の関係を示すグラフである。各ルックアップテーブルの重みW1L,W2Lは、0以上1以下の値をとる。W1LとW2+とは、W1+W2=1の関係を有する。 FIG. 7 shows the sum LsL of distances from the points Ps1L and Ps2L in the L * a * b * color space, the weight W1L of the three-dimensional lookup table 106a for the face area, and the three-dimensional lookup table 106b for the background area. It is a graph which shows the relationship with weight W2L of. The weights W1L and W2L of each lookup table take values of 0 or more and 1 or less. W1L and W2 + have a relationship of W1 + W2 = 1.

図7のグラフの横軸は、点Ps1L,Ps2Lからの距離の和LsLを表す。なお、第2実施例における二つの色CL1(L1*,a1*,b1*)とCL2(L2*,a2*,b2*)の「距離」、すなわち、色の違いは以下の式(5)で計算される。 The horizontal axis of the graph of FIG. 7 represents the sum LsL of the distances from the points Ps1L and Ps2L. It should be noted that the “distance” between the two colors CL1 (L1 * , a1 * , b1 * ) and CL2 (L2 * , a2 * , b2 * ) in the second embodiment, that is, the difference in color is expressed by the following equation (5). Calculated by

Figure 0004635916
Figure 0004635916

図7のグラフの横軸において、LsL≦Ls1Lの範囲は、第1の色範囲ScfLに相当する。Ls1L<LsL<Ls2lの範囲は、第2の色範囲ScmLに相当する。そして、LsL≧Ls2Lの範囲は、第3の色範囲ScbLに相当する。   In the horizontal axis of the graph of FIG. 7, the range of LsL ≦ Ls1L corresponds to the first color range ScfL. The range of Ls1L <LsL <Ls2l corresponds to the second color range ScmL. The range of LsL ≧ Ls2L corresponds to the third color range ScbL.

図7においては、第1の色範囲ScfLに相当するLsL≦Ls1Lの範囲においては、顔領域用の3次元ルックアップテーブル106aの重みW1Lは1である。そして、背景領域用の3次元ルックアップテーブル106bの重みW2Lは0である。また、第3の色範囲ScbLに相当するLsL≧Ls2Lの範囲においては、顔領域用の3次元ルックアップテーブル106aの重みW1Lは0である。そして、背景領域用の3次元ルックアップテーブル106bの重みW2Lは1である。   In FIG. 7, in the range of LsL ≦ Ls1L corresponding to the first color range ScfL, the weight W1L of the three-dimensional lookup table 106a for the face area is 1. The weight W2L of the background area three-dimensional lookup table 106b is zero. Further, in the range of LsL ≧ Ls2L corresponding to the third color range ScbL, the weight W1L of the three-dimensional lookup table 106a for the face area is zero. The weight W2L of the three-dimensional lookup table 106b for the background area is 1.

さらに、顔領域用の3次元ルックアップテーブル106aの重みW1Lは、第2の色範囲ScmLに相当するLs1L<LsL<Ls2Lの範囲において、基準色の点Ps1L,Ps2Lからの距離の和Lsの増加に対して線形に単調減少する直線上にある値である。そして、背景領域用の3次元ルックアップテーブル106bの重みW2Lは、第2の色範囲ScmLに相当するLs1L<LsL<Ls2Lの範囲において、LsLの増加に対して線形に単調増加する直線上にある値である。なお、本明細書において、「直線上にある値」とは、「直線上の値」プラスマイナス5%の範囲に含まれる値であることをいう。   Further, the weight W1L of the three-dimensional look-up table 106a for the face area is an increase in the sum Ls of the distances from the reference color points Ps1L and Ps2L in the range of Ls1L <LsL <Ls2L corresponding to the second color range ScmL. Is a value on a straight line that decreases monotonically linearly. The weight W2L of the three-dimensional lookup table 106b for the background region is on a straight line that monotonously increases linearly with respect to the increase of LsL in the range of Ls1L <LsL <Ls2L corresponding to the second color range ScmL. Value. In the present specification, “value on a straight line” means a value included in the range of “value on a straight line” plus or minus 5%.

図7に示したような顔領域用の3次元ルックアップテーブル106aの重みW1L、および背景領域用の3次元ルックアップテーブル106bの重みW2Lは、あらかじめ重みルックアップテーブル107(図1参照)に格納されている。重みルックアップテーブル107は、色補正用ルックアップテーブル106cが有すべきレッド、グリーン、ブルーの入力値のグリッドと同じ入力値のグリッドを有している。そして、重みルックアップテーブル107は、それらのグリッドと対応づけて図7に示した条件を満たす重みW1L,W2Lを格納している。ただし、重みW1L,W2Lは、図6および図7に示すように、L***空間における基準点Ps1L,Ps2Lからの距離に基づいて定められた値である。色調調整モジュール103は、図2のステップS50において色補正用ルックアップテーブル106cを生成する際に、この重みルックアップテーブル107を参照する。 The weight W1L of the three-dimensional lookup table 106a for the face area and the weight W2L of the three-dimensional lookup table 106b for the background area as shown in FIG. 7 are stored in the weight lookup table 107 (see FIG. 1) in advance. Has been. The weight lookup table 107 has the same input value grid as the red, green, and blue input value grids that the color correction lookup table 106c should have. The weight lookup table 107 stores weights W1L and W2L that satisfy the conditions shown in FIG. 7 in association with these grids. However, the weights W1L and W2L are values determined based on distances from the reference points Ps1L and Ps2L in the L * a * b * space, as shown in FIGS. The color tone adjustment module 103 refers to the weight lookup table 107 when generating the color correction lookup table 106c in step S50 of FIG.

上記のような態様としても、生成される色補正用ルックアップテーブル106cによる色補正は、人の肌の色を好適に補正することができ、同時に、服や背景の色を好適に補正することができる。さらに、第2実施例の方法で生成された色補正用ルックアップテーブル106cによる色補正は、色補正の結果の画像がユーザに自然である感じられる補正である。   Even in the above-described aspect, the color correction using the generated color correction lookup table 106c can appropriately correct the color of the human skin, and at the same time, appropriately correct the color of the clothes and the background. Can do. Furthermore, the color correction by the color correction lookup table 106c generated by the method of the second embodiment is a correction that makes the user feel the image as a result of the color correction natural.

C.変形例:
なお、この発明は上記の実施例や実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様において実施することが可能であり、例えば次のような変形も可能である。
C. Variations:
The present invention is not limited to the above-described examples and embodiments, and can be implemented in various modes without departing from the gist thereof. For example, the following modifications are possible.

C1.変形例1:
上記実施例では、3次元ルックアップテーブル106aは、顔領域A1の画像データに基づいて生成されていた(図2のステップS30参照)。しかし、画像データの色を補正するための変換用データセットとしての色補正用ルックアップテーブル106cの基礎となる第1の原変換用データセットは、画像中の他の領域に基づいて生成することもできる。たとえば、第1の原変換用データセットは、画像中で「青空」が写っていると推定できる領域に基づいて生成することもできる。また、第1の原変換用データセットは、画像中で「夕焼け空」が写っていると推定できる領域に基づいて生成することもできる。さらに、第1の原変換用データセットは、画像中で「木の緑」が写っていると推定できる領域に基づいて生成することもできる。
C1. Modification 1:
In the above embodiment, the three-dimensional lookup table 106a is generated based on the image data of the face area A1 (see step S30 in FIG. 2). However, the first original conversion data set that is the basis of the color correction lookup table 106c as a conversion data set for correcting the color of the image data is generated based on other regions in the image. You can also. For example, the first original conversion data set may be generated based on an area in which “blue sky” can be estimated in the image. The first original conversion data set can also be generated based on an area in which “sunset sky” can be estimated in the image. Further, the first original conversion data set can be generated based on an area in which “green of tree” can be estimated in the image.

そして、変換用データセットは、以下のような態様とすることもできる。すなわち、変換用データセットは、青空の表示に使用される色を含む第1の色範囲に含まれるグリッドについては、青空の画像領域のデータに基づいて生成された第1の原変換用データセットの出力色と同じ出力色を有する。そして、変換用データセットは、木の緑の表示に使用される色を含む第2の色範囲に含まれるグリッドについては、木の緑の画像領域のデータに基づいて生成された第2の原変換用データセットの出力色と同じ出力色を有する。   And the conversion data set can also be made into the following aspects. That is, the conversion data set is the first original conversion data set generated based on the data of the blue sky image region for the grid included in the first color range including the color used for the blue sky display. Have the same output color. The conversion data set includes a second original generated based on the data of the green image area of the tree for the grid included in the second color range including the color used for the green display of the tree. It has the same output color as the output color of the conversion data set.

さらに、第1および第2の色範囲以外の範囲である第3の範囲に含まれるグリッドについては、第1の色範囲に近いグリッドほど第1の原変換用データセットの出力色に近い出力色を有する。そして、第1および第2の色範囲以外の範囲である第4の範囲に含まれるグリッドについては、第2の色範囲に近いグリッドほど第2の原変換用データセットの出力色に近い出力色を有する。なお、変換用データセットは、第3の色範囲と第4の範囲とが少なくとも一部重複している態様とすることもでき、第3の色範囲と第4の範囲とが重複しない異なる範囲である態様とすることもできる。   Further, for the grid included in the third range which is a range other than the first and second color ranges, the output color closer to the output color of the first original conversion data set as the grid is closer to the first color range. Have As for the grid included in the fourth range which is a range other than the first and second color ranges, the output color closer to the output color of the second original conversion data set as the grid closer to the second color range. Have Note that the conversion data set may have a mode in which the third color range and the fourth range overlap at least partially, and different ranges in which the third color range and the fourth range do not overlap. It can also be set as the aspect which is.

以上のように、変換用データセットは、基礎となる変換用データセットの出力色と同じ出力色を有する色範囲Scfを複数有する態様とすることができる。そして、他の色範囲に含まれる色については、上記各色範囲Scfに近い色ほどその色範囲の変換用データセットの出力色に近い出力色を有する態様とすることができる。   As described above, the conversion data set can have a plurality of color ranges Scf having the same output color as the output color of the basic conversion data set. And about the color contained in another color range, it can be set as the aspect which has an output color near the output color of the data set for conversion of the color range, so that the color near each said color range Scf.

なお、上記実施例では、画像データの色を補正するための変換用データセットとしての色補正用ルックアップテーブル106cの基礎となる、第1および第2のの原変換用データセットとしての3次元ルックアップテーブル106a,106bは、画像データに基づいて生成されていた(図2のステップS30,S40参照)。しかし、第1および第2のの原変換用データセットは、あらかじめ用意されていてもよい。   In the above-described embodiment, the first and second original conversion data sets, which are the basis of the color correction lookup table 106c as the conversion data set for correcting the color of the image data, are three-dimensional. The lookup tables 106a and 106b were generated based on the image data (see steps S30 and S40 in FIG. 2). However, the first and second original conversion data sets may be prepared in advance.

C2.変形例2:
上記実施例では、変換用データセットを生成する際の出力色の決定方法が異なる色範囲は、楕円殻で仕切られた色範囲であった(図4および図6参照)。そして、楕円の焦点となる基準色を表す点Ps1r,Ps2rは、第1実施例においては、レッド、グリーン、ブルーの階調値がそれぞれ220,180,200の点と200,160,180の点であった。また、楕円の焦点となる基準色を表す点Ps1L,Ps2Lは、第2実施例においては、L*,a*,b*の階調値がそれぞれ65,20,20の点と、85,20,20の点であった。
C2. Modification 2:
In the above embodiment, the color range in which the output color determination method when generating the conversion data set is different is the color range partitioned by the elliptical shell (see FIGS. 4 and 6). In the first embodiment, the points Ps1r and Ps2r representing the reference colors to be the focal points of the ellipse are points with red, green, and blue gradation values of 220, 180, and 200 and points of 200, 160, and 180, respectively. Met. In addition, in the second embodiment, the points Ps1L and Ps2L representing the reference colors that are the focal points of the ellipse are the points where the gradation values of L * , a * , and b * are 65, 20, and 20, respectively, and 85, 20 , 20 points.

しかし、楕円の焦点となる基準色は、他の階調値を有する色とすることもできる。ただし、楕円の焦点となる二つの色は、人の肌の色を表現する際に使用することができる色であることが好ましい。そして、楕円の焦点となる二つの色は、見る者が、人の肌の色を表現する色として好ましく感じられるような色であることがより好ましく、見る者が、人の肌の色を表現する色として理想的であると感じられる色であることがさらに好ましい。   However, the reference color that becomes the focal point of the ellipse may be a color having another gradation value. However, the two colors that are the focal points of the ellipse are preferably colors that can be used when expressing the color of human skin. It is more preferable that the two colors that are the focal points of the ellipse are colors that the viewer can preferably feel as colors expressing the human skin color, and the viewer expresses the human skin color. It is more preferable that the color be felt as an ideal color.

また、第2実施例においては、第1の領域ScfLと第2の領域ScmLを区切る楕円殻Es1Lは、顔領域の判定に使用される色範囲Scx内に含まれるように定められていた(図6参照)。また、第2の領域ScmLと第3の領域ScbLを区切る楕円殻Es2Lは、内部に色範囲Scxを含むように定められていた。しかし、第1〜第3の領域ScfL,ScmL、ScbLは、他の境界で区分することもできる。たとえば、第1〜第3の領域ScfL,ScmL、ScbLは、いずれも顔領域の判定に使用される色範囲Scx内に含まれる大小二つの楕円殻で区切られていてもよい。また、第1〜第3の領域ScfL,ScmL、ScbLは、いずれも顔領域の判定に使用される色範囲Scxを内部に含む大小二つの楕円殻で区切られていてもよい。   In the second embodiment, the elliptical shell Es1L that divides the first region ScfL and the second region ScmL is determined to be included in the color range Scx used for the determination of the face region (FIG. 6). Further, the elliptical shell Es2L that divides the second region ScmL and the third region ScbL is determined so as to include the color range Scx. However, the first to third regions ScfL, ScmL, and ScbL can be divided at other boundaries. For example, the first to third regions ScfL, ScmL, and ScbL may all be separated by two large and small elliptical shells included in the color range Scx used for the determination of the face region. The first to third regions ScfL, ScmL, and ScbL may all be separated by two large and small elliptical shells that include a color range Scx used for the determination of the face region.

なお、互いに異なる画像領域に基づいて生成される原変換用データセットとそれぞれ同じ出力色を有するグリッドの色範囲Scf,Scbは、一方の色範囲Scbが他方の色範囲Scfを囲むような色範囲であることが好ましい。そして、互いに異なる画像領域に基づいて生成される二つの原変換用データセットに基づいて出力色が決定される色範囲Scmは、色範囲Scfと色範囲Scbの間に位置する色範囲であることが好ましい。   Note that the color ranges Scf and Scb of the grid having the same output color as the original conversion data set generated based on different image areas are such that one color range Scb surrounds the other color range Scf. It is preferable that The color range Scm whose output color is determined based on two original conversion data sets generated based on different image areas is a color range located between the color range Scf and the color range Scb. Is preferred.

また、上記第1および第2実施例においては、変換用データセットを生成する際の出力色の決定方法が異なる色範囲は、楕円殻で仕切られた色範囲であった(図4および図6参照)。しかし、変換用データセットを生成する際の出力色の決定方法が異なる色範囲は、他の形状で区切られる色範囲とすることもできる。   In the first and second embodiments, the color range in which the output color determining method is different when generating the conversion data set is a color range partitioned by an elliptical shell (FIGS. 4 and 6). reference). However, a color range that is different in the method of determining the output color when generating the conversion data set may be a color range that is partitioned by another shape.

変換用データセットを生成する際の出力色の決定方法が異なる色範囲は、たとえば、色空間において一つの基準色からの距離が一定値である球状の形状で区切られた色範囲とすることもできる。なお、変換用データセットを生成する際の出力色の決定方法が異なる色範囲は、たとえば、直方体などの多面体や他のより複雑な形状で仕切られる色範囲とすることもできる。   The color range in which the method of determining the output color when generating the conversion data set is different may be, for example, a color range partitioned by a spherical shape whose distance from one reference color is a constant value in the color space. it can. Note that the color range with different output color determination methods when generating the conversion data set may be a color range partitioned by a polyhedron such as a rectangular parallelepiped or other more complicated shapes.

変換用データセットを生成する際の出力色の決定方法が異なる色範囲が3以上ある態様においては、それらの色範囲は、たとえば、同一の中心点を有し互いに異なる半径を有する複数の球状の形状で区切られた色範囲とすることができる。また、変換用データセットを生成する際の出力色の決定方法が異なる3以上の色範囲は、たとえば、重心と向きを同じくし互いに相似な3次元形状で仕切られる色範囲とすることもできる。そのような態様においては、色空間における各点が有する重み付け平均の重みは、3次元形状の表面上の点のうち最も近い点からの距離に応じて定めることが好ましい。   In an aspect in which there are three or more color ranges with different output color determination methods when generating the conversion data set, the color ranges include, for example, a plurality of spherical shapes having the same central point and different radii. The color range can be divided by shape. Further, the three or more color ranges having different output color determination methods when generating the conversion data set may be, for example, color ranges that are partitioned by similar three-dimensional shapes having the same center of gravity and the same direction. In such an aspect, it is preferable that the weight of the weighted average of each point in the color space is determined according to the distance from the closest point among the points on the surface of the three-dimensional shape.

また、変換用データセットを生成する際の出力色の決定方法が異なる色範囲が3以上ある態様においては、各色範囲が、異なる形状で区切られている態様とすることもできる。たとえば、第1と第2の色範囲は、球状の形状で区切られており、第2の色範囲と第3の色範囲とは、楕円殻で区切られている態様とすることもできる。変換用データセットを生成する際の出力色の決定方法が異なる色範囲を区切る複数の形状としては、任意の形状を組み合わせて使用することができる。   Further, in an aspect in which there are three or more color ranges with different output color determination methods when generating the conversion data set, each color range may be divided into different shapes. For example, the first and second color ranges may be separated by a spherical shape, and the second color range and the third color range may be separated by an elliptic shell. Arbitrary shapes can be used in combination as the plurality of shapes that divide the color ranges with different output color determination methods when generating the conversion data set.

C3.変形例3:
上記実施例においては、変換用データセットを生成する際の出力色の決定方法が異なる色範囲は、3種類存在した(図4および6参照)。しかし、変換用データセットを生成する際の出力色の決定方法が異なる色範囲は、2種類とすることもでき、4種類以上とすることもできる。
C3. Modification 3:
In the above embodiment, there are three types of color ranges that differ in the method of determining the output color when generating the conversion data set (see FIGS. 4 and 6). However, the color ranges having different output color determination methods when generating the conversion data set can be two types or four or more types.

変換用データセットを生成する際の出力色の決定方法が異なる色範囲が2種類である態様においては、たとえば、第1実施例における第1の色範囲Scfを一方の色範囲とし、第1実施例における第1の色範囲Scf以外の色範囲を他方の色範囲とすることができる。このような態様においては、一方の色範囲に含まれるグリッドの出力値を計算する際に、3次元ルックアップテーブル106aの出力値が使用される。そして、他方の色範囲に含まれるグリッドの出力値を計算する際に、3次元ルックアップテーブル106a,106bの出力値の重み付け平均が使用される。   In an aspect in which there are two types of color ranges with different output color determination methods when generating the conversion data set, for example, the first color range Scf in the first embodiment is set as one color range and the first implementation is performed. The color range other than the first color range Scf in the example can be set as the other color range. In such an aspect, the output value of the three-dimensional lookup table 106a is used when calculating the output value of the grid included in one color range. Then, when calculating the output value of the grid included in the other color range, the weighted average of the output values of the three-dimensional lookup tables 106a and 106b is used.

C4.変形例4:
上記実施例では、顔領域A1は一つであった(図3参照)。しかし、顔領域は、画像中において複数個、特定することもできる。すなわち、顔領域は、パターンマッチングや画素の色に基づいて、1以上、特定されることができる。
C4. Modification 4:
In the above embodiment, there is one face area A1 (see FIG. 3). However, a plurality of face regions can be specified in the image. That is, one or more face regions can be specified based on pattern matching or pixel color.

なお、第1の3次元ルックアップテーブル106aを生成する際には、それらの複数の顔領域すべての画素の色データに基づいて生成する態様とすることができる。また、複数の顔領域のうち、大きい方から所定の数だけの顔領域に基づいて、第1の3次元ルックアップテーブル106aを生成する態様とすることもできる。さらに、複数の顔領域のうち、大きい順に順位付けしたときに、所定の割合よりも上位の順位に該当する顔領域のみに基づいて、第1の3次元ルックアップテーブル106aを生成する態様とすることもできる。そして、単独で、画像全体の領域A0に対して所定の割合を占める大きさの顔領域のみに基づいて、第1の3次元ルックアップテーブル106aを生成することとしてもよい。   Note that when the first three-dimensional lookup table 106a is generated, the first three-dimensional lookup table 106a can be generated based on the color data of the pixels in all of the plurality of face regions. In addition, the first three-dimensional lookup table 106a may be generated based on a predetermined number of face areas from the larger one among the plurality of face areas. Further, when the plurality of face areas are ranked in descending order, the first three-dimensional lookup table 106a is generated based only on face areas corresponding to a rank higher than a predetermined ratio. You can also. Then, the first three-dimensional lookup table 106a may be generated solely based on a face region having a size that occupies a predetermined ratio with respect to the region A0 of the entire image.

C5.変形例5:
上記実施例においては、顔領域用の3次元ルックアップテーブル106aの重みW1と、背景領域用の3次元ルックアップテーブル106bの重みW2とは、入力色に応じて一義的に決定される値であった。しかし、これらの重みW1,W2を、初期画像データPIDに基づいて計算する態様とすることもできる。
C5. Modification 5:
In the above embodiment, the weight W1 of the three-dimensional lookup table 106a for the face area and the weight W2 of the three-dimensional lookup table 106b for the background area are values that are uniquely determined according to the input color. there were. However, the weights W1 and W2 may be calculated based on the initial image data PID.

たとえば、重みW1,W2を決定するカーブ(図5および図7参照)を、写真画像の「シーン」ごとに用意し、写真画像の「シーン」に応じて選択的に使用する態様とすることもできる。写真画像の「シーン」とは、写真画像が写している対象物の種類を表すものであり、たとえば、「風景」、「標準」などの「シーン」を含む。写真画像の「シーン」は、たとえば、初期画像データPIDに基づいて以下のように決定することができる。   For example, a curve (see FIGS. 5 and 7) for determining the weights W1 and W2 may be prepared for each “scene” of a photographic image and used selectively according to the “scene” of the photographic image. it can. The “scene” of a photographic image represents the type of object in which the photographic image is photographed, and includes, for example, “scenes” such as “landscape” and “standard”. The “scene” of the photographic image can be determined as follows based on the initial image data PID, for example.

色調調整モジュール103は、画像の領域A0を複数の領域ブロックに分割し、各領域ブロックの平均の色を計算する。そして、平均の色が、基準となる「青」を含む所定の範囲の色に含まれる領域ブロックの数Nbと、平均の色が、基準となる「緑」を含む所定の範囲の色に該当する領域ブロックの数Bgとをカウントする。そして、Nbが所定のしきい値Thb以上であるか、または、Ngが所定のしきい値Thg以上である場合には、シーンを「風景」に決定する。一方、Nb<ThbかつNg<Thgである場合には、シーンを「標準」に決定する。   The color tone adjustment module 103 divides the area A0 of the image into a plurality of area blocks, and calculates the average color of each area block. The average color corresponds to the number Nb of area blocks included in a predetermined range of colors including “blue” as a reference, and the average color corresponds to a predetermined range of colors including “green” as a reference. The number Bg of area blocks to be counted is counted. If Nb is equal to or greater than a predetermined threshold value Thb or Ng is equal to or greater than a predetermined threshold value Thg, the scene is determined as “landscape”. On the other hand, if Nb <Thb and Ng <Thg, the scene is determined to be “standard”.

このように、「シーン」に応じて重みW1,W2のカーブ(図5および図7参照)を用意し、それらのカーブにしたがって入力色に応じて重みを決定する態様とすれば、写真画像が写している対象物の種類に応じて適切な色補正用ルックアップテーブル106cを生成することができる。なお、背景用3次元ルックアップテーブル106bを生成する際(図2のステップS40参照)に平均色Caaの目標となる色も、シーンに応じて決定されることが好ましい。   In this manner, if the curves (see FIGS. 5 and 7) of the weights W1 and W2 are prepared according to the “scene” and the weight is determined according to the input color according to these curves, An appropriate color correction lookup table 106c can be generated in accordance with the type of object being copied. Note that when the background three-dimensional lookup table 106b is generated (see step S40 in FIG. 2), the target color of the average color Caa is also preferably determined according to the scene.

C6.変形例6:
上記各実施例では、顔領域と背景に基づいてそれぞれ3次元ルックアップテーブル106a,106bが生成され、それらに基づいて、色補正用ルックアップテーブル106cが生成された。3次元ルックアップテーブル106a,106bは、画像データの色を変換するための原変換用データセットである。しかし、画像データの色を補正するためのデータセットは、他の態様とすることもできる。
C6. Modification 6:
In each of the above embodiments, the three-dimensional lookup tables 106a and 106b are generated based on the face area and the background, respectively, and the color correction lookup table 106c is generated based on them. The three-dimensional lookup tables 106a and 106b are original conversion data sets for converting the color of image data. However, the data set for correcting the color of the image data can be in other modes.

たとえば、画像データの色を補正するためのデータセットは、出力値を表す表色系が入力値を表す表色系とは異なるルックアップテーブルとすることもできる。また、画像データの色を補正するためのデータセットは、たとえば、各色成分(レッド、グリーン、ブルー)の3個のトーンカーブの形で保持することもできる。また、少なくとも一部の色について、色を表す階調値の組合せを他の色を表す階調値の組合せに変換することができる行列とすることもできる。さらに、色を補正するためのデータセットは、所定の表色系のパラメータの種類に対応づけられた関数であって、対応づけられたパラメータを入力値および出力値とする関数の各項の係数の組合せ形で保持されていてもよい。すなわち、画像データの色を補正するためのデータセットは、画像データの色の少なくとも一部を変えることができるデータの集合であればよい。   For example, the data set for correcting the color of the image data may be a look-up table in which the color system representing the output value is different from the color system representing the input value. In addition, a data set for correcting the color of the image data can be held in the form of three tone curves for each color component (red, green, blue), for example. Further, for at least some of the colors, a matrix that can convert a combination of gradation values representing colors into a combination of gradation values representing other colors may be used. Furthermore, the data set for correcting the color is a function associated with a predetermined color system parameter type, and the coefficient of each term of the function using the associated parameter as an input value and an output value. May be held in combination. That is, the data set for correcting the color of the image data may be a set of data that can change at least part of the color of the image data.

色を補正するためのデータセットがトーンカーブである態様においては、出力値であるパラメータを重み付け平均することで、色補正用のデータセットを生成することができる。色を補正するためのデータセットが行列である態様においては、行列の各要素を重み付け平均することで、色補正用のデータセットを生成することができる。   In an aspect in which the data set for correcting the color is a tone curve, a data set for color correction can be generated by weighted averaging of the parameters that are output values. In the aspect in which the data set for correcting color is a matrix, a data set for color correction can be generated by weighted averaging of each element of the matrix.

C7.変形例7:
上記第1実施例では、二つの色に関する「遠い」または「近い」という評価、すなわち二つの色の違いの評価は、変換用データセットとしての色補正用3次元ルックアップテーブル106cの入力色の表色系(RGB表色系)におけるそれら二つの色を表す二点間の距離で評価された。しかし、二つの色の距離の評価は、他の色空間における2色間の距離で評価することもできる。たとえば、第2実施例のように、第1〜第3の色範囲SCfL、ScmL,ScbLを定めている色空間であるL***空間における色の2点間の距離で評価してもよい。第1〜第3の色範囲SCfL、ScmL,ScbLは、色補正用データセットにおけるグリッドの出力値の計算方法が互いに異なる範囲である。なお、二つの色の違いの評価は、L***空間以外の他の均等色空間、たとえばL***空間における距離で行うこともできる。
C7. Modification 7:
In the first embodiment, the evaluation of “far” or “near” with respect to two colors, that is, the evaluation of the difference between the two colors, is performed using the input color of the color correction three-dimensional lookup table 106c as a conversion data set. Evaluation was based on the distance between two points representing these two colors in the color system (RGB color system). However, the evaluation of the distance between two colors can also be performed based on the distance between two colors in another color space. For example, as in the second embodiment, the evaluation is performed based on the distance between two colors in the L * a * b * space, which is a color space that defines the first to third color ranges SCfL, ScmL, and ScbL. Also good. The first to third color ranges SCfL, ScmL, ScbL are ranges in which the grid output value calculation methods in the color correction data set are different from each other. The evaluation of the difference between the two colors can also be performed by a distance in a uniform color space other than the L * a * b * space, for example, the L * u * v * space.

C8.変形例8:
上記実施例では、写真画像において、人物O1が逆光で撮影されていた。しかし、本発明は、たとえば、夜間に室内でフラッシュがたかれて、人物O1が背景に対して大幅に明るく撮影されてしまった画像についても、有効である。そのような写真画像に対しても、顔領域の大きさに基づいて、顔用のデータセットと背景用のデータセットとの出力階調値を重み付け平均して色補正用のデータセットを生成し、使用することで、見る者に好ましく感じられるような色調補正を行うことができる。
C8. Modification 8:
In the above embodiment, the person O1 is photographed in the backlight in the photographic image. However, the present invention is also effective for, for example, an image in which the person O1 is photographed significantly brighter than the background due to the flashing indoors at night. For such a photographic image, a color correction data set is generated by weighted average of the output tone values of the face data set and the background data set based on the size of the face area. By using it, it is possible to perform color tone correction that feels favorable to the viewer.

C9.変形例9:
上記各実施例では、印刷システムは、コンピュータ90、CRTディスプレイ21、マウス130やキーボード120、プリンタ22を含むシステムとして構成されていた。しかし、本発明の一態様としての印刷システムは、画像データが格納されたメモリカードを読み取るとができるカードリーダと、ユーザインターフェイス画面を表示することができるディスプレイと、ユーザの指示を入力するためのボタンと、第1実施例におけるプリンタドライバ96の各モジュールと、を備えた一体型プリンタとして構成することもできる。
C9. Modification 9:
In each of the above embodiments, the printing system is configured as a system including the computer 90, the CRT display 21, the mouse 130, the keyboard 120, and the printer 22. However, a printing system according to an aspect of the present invention includes a card reader that can read a memory card that stores image data, a display that can display a user interface screen, and a user instruction. It can also be configured as an integrated printer having buttons and the modules of the printer driver 96 in the first embodiment.

C10.変形例10:
上記実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部をハードウェアに置き換えるようにしてもよい。例えば、プリンタドライバ96(図1参照)の機能の一部をアプリケーションプログラム95やプリンタ22のCPU41が実行するようにすることもできる。
C10. Modification 10:
In the above embodiment, a part of the configuration realized by hardware may be replaced with software, and conversely, a part of the configuration realized by software may be replaced by hardware. For example, part of the functions of the printer driver 96 (see FIG. 1) can be executed by the application program 95 or the CPU 41 of the printer 22.

このような機能を実現するコンピュータプログラムは、フロッピディスクやCD−ROM等の、コンピュータ読み取り可能な記録媒体に記録された形態で提供される。ホストコンピュータは、その記録媒体からコンピュータプログラムを読み取って内部記憶装置または外部記憶装置に転送する。あるいは、通信経路を介してプログラム供給装置からホストコンピュータにコンピュータプログラムを供給するようにしてもよい。コンピュータプログラムの機能を実現する時には、内部記憶装置に格納されたコンピュータプログラムがホストコンピュータのマイクロプロセッサによって実行される。また、記録媒体に記録されたコンピュータプログラムをホストコンピュータが直接実行するようにしてもよい。   A computer program for realizing such a function is provided in a form recorded on a computer-readable recording medium such as a floppy disk or a CD-ROM. The host computer reads the computer program from the recording medium and transfers it to the internal storage device or the external storage device. Alternatively, the computer program may be supplied from the program supply device to the host computer via a communication path. When realizing the function of the computer program, the computer program stored in the internal storage device is executed by the microprocessor of the host computer. Further, the host computer may directly execute the computer program recorded on the recording medium.

この明細書において、コンピュータとは、ハードウェア装置とオペレーションシステムとを含む概念であり、オペレーションシステムの制御の下で動作するハードウェア装置を意味している。コンピュータプログラムは、このようなコンピュータに、上述の各部の機能を実現させる。なお、上述の機能の一部は、アプリケーションプログラムでなく、オペレーションシステムによって実現されていても良い。   In this specification, the computer is a concept including a hardware device and an operation system, and means a hardware device that operates under the control of the operation system. The computer program causes such a computer to realize the functions of the above-described units. Note that some of the functions described above may be realized by an operation system instead of an application program.

なお、この発明において、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスクやCD−ROMのような携帯型の記録媒体に限らず、各種のRAMやROM等のコンピュータ内の内部記憶装置や、ハードディスク等のコンピュータに固定されている外部記憶装置も含んでいる。   In the present invention, the “computer-readable recording medium” is not limited to a portable recording medium such as a flexible disk or a CD-ROM, but an internal storage device in a computer such as various RAMs and ROMs, An external storage device fixed to a computer such as a hard disk is also included.

第1の実施形態の印刷システムのソフトウェアの構成を示すブロック図。FIG. 2 is a block diagram illustrating a software configuration of the printing system according to the first embodiment. 色調調整モジュール103における色補正の処理を示すフローチャート。6 is a flowchart showing color correction processing in the color tone adjustment module 103; 初期画像データPIDの画像領域A0中の顔領域A1と背景領域A2を示す図。The figure which shows face area A1 and background area A2 in image area A0 of initial image data PID. 顔領域用の3次元ルックアップテーブル106aと、背景用の3次元ルックアップテーブル106bとに基づいて、色補正用ルックアップテーブル106cを生成する方法を示す図。The figure which shows the method of producing | generating the color correction lookup table 106c based on the three-dimensional lookup table 106a for face areas, and the three-dimensional lookup table 106b for backgrounds. RGB色空間における点Ps1r,Ps2rからの距離の和Lsと、顔領域用の3次元ルックアップテーブル106aの重みW1と、背景領域用の3次元ルックアップテーブル106bの重みW2と、の関係を示すグラフ。The relationship between the sum Ls of distances from the points Ps1r and Ps2r in the RGB color space, the weight W1 of the three-dimensional lookup table 106a for the face area, and the weight W2 of the three-dimensional lookup table 106b for the background area is shown. Graph. ***空間における第1から第3の領域ScfL,ScmL,ScbLを示す図。The figure which shows the 1st-3rd area | region ScfL, ScmL, ScbL in L * a * b * space. 第2実施例において、顔領域用の3次元ルックアップテーブル106aと、背景用の3次元ルックアップテーブル106bとに基づいて、色補正用ルックアップテーブル106cを生成する方法を示す図。FIG. 10 is a diagram illustrating a method of generating a color correction lookup table 106c based on a face area three-dimensional lookup table 106a and a background three-dimensional lookup table 106b in the second embodiment.

符号の説明Explanation of symbols

21…CRTディスプレイ
22…プリンタ
28…印刷ヘッド
31…キャリッジ
32…操作パネル
41…CPU
42…ROM
90…コンピュータ
91…ビデオドライバ
95…アプリケーションプログラム
96…プリンタドライバ
97…解像度変換モジュール
98…色変換モジュール
99…ハーフトーンモジュール
100…並べ替えモジュール
103…色調調整モジュール
103a…顔領域決定部
103b…第1の3次元ルックアップテーブル生成部
103c…第2の3次元ルックアップテーブル生成部
103e…色補正用ルックアップテーブル生成部
103f…色調補正部
106a…第1の3次元ルックアップテーブル
106b…第2の3次元ルックアップテーブル
106c…色補正用ルックアップテーブル
107…重みルックアップテーブル
120…キーボード
130…マウス
A0…画像の全領域
A1…顔領域
A2…背景領域
Es1…第1の色範囲Scfと第2の色範囲Scmとを区切る楕円殻
Es1L…第1の色範囲ScfLと第2の色範囲ScmLとを区切る楕円殻
Es2…第2の色範囲Scmと第3の色範囲Scbとを区切る楕円殻
Es2L…第2の色範囲ScmLと第3の色範囲ScbLとを区切る楕円殻
FNL…印刷画像データ
Gb…第3の色範囲Scbに含まれるグリッド
Gf…第1の色範囲Scfに含まれるグリッド
Gm…第2の色範囲Scmに含まれるグリッド
Ps1r…RGB空間において第1の基準色を表す点
Ps1L…L***空間において第1の基準色を表す点
Ps2r…RGB空間において第2の基準色を表す点
Ps2L…L***空間において第2の基準色を表す点
Ls…二つの基準色の点からの距離の和
MID1…解像度変換後の画像データ
MID2…色変換後の画像データ
MID3…ハーフトーン処理後の画像データ
MS…用紙Pの搬送方向SSと垂直な方向
O1…人物
O2…空
O3…海
ORG…原画像データ
P…印刷用紙
PID…RGB表色系で表された初期画像データ
PIDr…RGB表色系で表された色調補正後の画像データ
SS…印刷用紙の搬送方向
Scb,ScbL…第3の色範囲
Scf,ScfL…第1の色範囲
Scm,ScmL…第2の色範囲
ΔDc…色の違いを量で表したもの
21 ... CRT display 22 ... Printer 28 ... Print head 31 ... Carriage 32 ... Operation panel 41 ... CPU
42 ... ROM
DESCRIPTION OF SYMBOLS 90 ... Computer 91 ... Video driver 95 ... Application program 96 ... Printer driver 97 ... Resolution conversion module 98 ... Color conversion module 99 ... Halftone module 100 ... Rearrangement module 103 ... Color tone adjustment module 103a ... Face area determination part 103b ... 1st 3D lookup table generation unit 103c ... second 3D lookup table generation unit 103e ... color correction lookup table generation unit 103f ... tone correction unit 106a ... first three-dimensional lookup table 106b ... second Three-dimensional lookup table 106c ... Color correction lookup table 107 ... Weight lookup table 120 ... Keyboard 130 ... Mouse A0 ... All areas of image A1 ... Face area A2 ... Background area Es1 ... First color range An elliptic shell Es1L that divides Scf and the second color range Scm ... An elliptic shell that divides the first color range ScfL and the second color range ScmL Es2 ... a second color range Scm and a third color range Scb Ellipse shell to divide Es2L ... Ellipse shell to divide second color range ScmL and third color range ScbL FNL ... Print image data Gb ... Grid included in third color range Scb Gf ... Included in first color range Scf Grid Gm: Grid included in second color range Scm Ps1r: Point representing first reference color in RGB space Ps1L: Point representing first reference color in L * a * b * space Ps2r: In RGB space Ps2L point represents a second reference color ... L * a * b * after sum MID1 ... resolution conversion of the distance from the second point Ls ... two reference color points representing the reference color in the space of the image de MID2 ... Image data after color conversion MID3 ... Image data after halftone processing MS ... Direction perpendicular to transport direction SS of paper P O1 ... Person O2 ... Sky O3 ... Sea ORG ... Original image data P ... Printing paper PID ... Initial image data expressed in RGB color system PIDr: Image data after color tone correction expressed in RGB color system SS: Print paper transport direction Scb, ScbL: Third color range Scf, ScfL: First Color range Scm, ScmL ... Second color range ΔDc ... Color difference expressed in quantity

Claims (11)

写真画像の画像データの色を補正する画像処理装置であって、
画像データの色を変換するための第1の原変換用データセットと、画像データの色を変換するためのデータセットであって少なくとも一部の入力色と対応づけられた出力色として前記第1の原変換用データセットとは異なる出力色を有する第2の原変換用データセットと、に基づいて変換用データセットを生成する変換用データセット生成部であって、所定の色空間の一部である第1の色範囲に含まれる少なくとも一部の第1種の色については、前記第1の原変換用データセットの出力色と同じ出力色を有し、前記色空間の他の一部である第2の色範囲に含まれる少なくとも一部の第2種の色については、前記色空間内において前記第1の色範囲内の1以上の所定の基準色に近い色ほど前記第1の原変換用データセットの出力色に近い出力色を有し、前記色空間内において前記基準色から遠い色ほど前記第2の原変換用データセットの出力色に近い出力色を有する変換用データセットを生成する変換用データセット生成部と、
前記変換用データセットを参照して画像データの色を補正する色調補正部と、
写真画像の画像データを解析して、前記写真画像中の一部の領域であって人の顔が存在する第1の画像領域を決定する第1の画像領域決定部と、
前記画像データの前記第1の画像領域に対応する部分に基づいて、前記第1の原変換用データセットを生成する第1の原変換用データセット生成部と、
前記写真画像中の画像領域であって前記第1の画像領域とは異なる第2の画像領域に対応する前記画像データの部分に基づいて、前記第2の原変換用データセットを生成する第2の原変換用データセット生成部と、を含
前記第1の色範囲は、人の肌を表す色の範囲であり、
前記第1の原変換用データセットは、前記画像データのうち前記第1の画像領域に含まれる色を有する画素の平均の色を、人の肌の色を表すのに望ましい色に変換するように構成された原変換用データセットであり、
前記第2の原変換用データセットは、前記画像データのうち前記第2の画像領域に含まれる色を有する画素の平均の色を、背景の色を表すのに望ましい色に変換するように構成された原変換用データセットであり、
前記変換用データセット生成部は、さらに、前記色空間において前記第1および第2の色範囲以外の第3の色範囲に含まれる少なくとも一部の第3種の色については、前記第2の原変換用データセットと同じ出力色を有する前記変換用データセットを生成する、画像処理装置。
An image processing apparatus for correcting the color of image data of a photographic image,
A first original conversion data set for converting the color of the image data, and a data set for converting the color of the image data, the output color corresponding to at least a part of the input colors as the first A conversion data set generation unit for generating a conversion data set based on a second original conversion data set having an output color different from that of the original conversion data set, and a part of a predetermined color space And at least some of the first type colors included in the first color range have the same output color as the output color of the first original conversion data set, and the other part of the color space. As for at least a part of the second type colors included in the second color range, the first color is closer to one or more predetermined reference colors in the first color range in the color space. Output color close to the output color of the original conversion data set A, a conversion data set generation unit for generating a conversion data set having output color close to the output color of the second original conversion data set farther color from the reference color in the color space,
A color tone correction unit that corrects the color of the image data with reference to the conversion data set;
A first image region determination unit that analyzes image data of a photographic image and determines a first image region that is a partial region in the photographic image and in which a human face exists;
A first original conversion data set generation unit configured to generate the first original conversion data set based on a portion corresponding to the first image area of the image data;
A second original conversion data set is generated based on a portion of the image data corresponding to a second image region that is an image region in the photographic image and is different from the first image region. and the original conversion data set generation unit, the only free,
The first color range is a color range representing human skin,
The first original conversion data set converts an average color of pixels having a color included in the first image area in the image data into a color desirable for representing a human skin color. The original conversion data set configured in
The second original conversion data set is configured to convert an average color of pixels having a color included in the second image area in the image data into a color desirable for representing a background color. Is the original conversion data set,
The conversion data set generation unit further includes the second data for at least a part of the third color included in the third color range other than the first and second color ranges in the color space. An image processing apparatus that generates the conversion data set having the same output color as the original conversion data set .
請求項記載の画像処理装置であって、
前記1以上の基準色は二つの基準色であり、
前記第1の色範囲は、前記色空間において前記二つの基準色からの距離の和が、所定の第1の基準値Ls1以下の範囲であり、
前記第2の色範囲は、前記色空間において前記距離の和が、前記第1の基準値Ls1以上の範囲である、画像処理装置。
The image processing apparatus according to claim 1 ,
The one or more reference colors are two reference colors;
The first color range is a range in which a sum of distances from the two reference colors in the color space is equal to or less than a predetermined first reference value Ls1.
The image processing apparatus, wherein the second color range is a range in which the sum of the distances is not less than the first reference value Ls1 in the color space.
請求項2記載の画像処理装置であって、
前記変換用データセット生成部は、前記第2種の色については、前記色空間において前記二つの基準色からの距離の和が小さい色ほど、前記色空間において前記第1の原変換用データセットの出力色に近い出力色を有し、前記色空間において前記和が大きい色ほど、前記色空間において前記第2の原変換用データセットの出力色に近い出力色を有する前記変換用データセットを生成する、画像処理装置。
The image processing apparatus according to claim 2,
For the second type of color, the conversion data set generation unit generates the first original conversion data set in the color space as the color has a smaller sum of distances from the two reference colors in the color space. The conversion data set having an output color close to the output color of the second original conversion data set in the color space as the color having a larger sum in the color space and having a larger sum in the color space. An image processing apparatus to generate.
請求項3記載の画像処理装置であって、
前記第1および第2の原変換用データセットならびに変換用データセットは、前記入力色を表す入力値の組合せと対応づけられた、前記出力色を表す出力値の組合せを格納する3次元ルックアップテーブルであって、互いに等しい範囲の前記入力値を有する3次元ルックアップテーブルであり、
前記変換用データセット生成部は、前記第1の原変換用データセットとしての第1のルックアップテーブルの出力値と、前記第2の原変換用データセットとしての第2のルックアップテーブルの出力値と、の重み付け平均を計算することによって、前記変換用データセットとしての第3のルックアップテーブルを生成する、画像処理装置。
The image processing apparatus according to claim 3,
The first and second original conversion data sets and the conversion data sets store a combination of output values representing the output color associated with a combination of input values representing the input color. A three-dimensional lookup table having the same range of input values.
The conversion data set generation unit outputs an output value of a first lookup table as the first original conversion data set and an output of a second lookup table as the second original conversion data set. An image processing apparatus that generates a third look-up table as the conversion data set by calculating a weighted average of values.
請求項4記載の画像処理装置であって、
前記画像処理装置は、さらに、
前記第1のルックアップテーブルの前記入力値の組合せと対応づけられた重みを格納する重みルックアップテーブルを備え、
前記変換用データセット生成部は、前記重みルックアップテーブルを参照しつつ、前記重み付け平均を計算することによって、前記第3のルックアップテーブルを生成する、画像処理装置。
The image processing apparatus according to claim 4,
The image processing apparatus further includes:
A weight lookup table for storing a weight associated with the combination of the input values of the first lookup table;
The image processing device, wherein the conversion data set generation unit generates the third lookup table by calculating the weighted average while referring to the weight lookup table.
請求項1記載の画像処理装置であって、
前記第2の色範囲は、前記色空間において前記第1の色範囲を囲む色範囲である、画像処理装置。
The image processing apparatus according to claim 1,
The image processing apparatus, wherein the second color range is a color range surrounding the first color range in the color space.
請求項記載の画像処理装置であって、
前記1以上の基準色は二つの基準色であり、
前記第1の色範囲は、前記色空間において前記二つの基準色からの距離の和が、所定の第1の基準値Ls1以下の範囲であり、
前記第2の色範囲は、前記色空間において前記距離の和が、前記第1の基準値Ls1以上で所定の第2の基準値Ls2(Ls2>Ls1)以下の範囲であり、
前記第3の色範囲は、前記色空間において前記距離の和が、前記第1の基準値Ls2以上の範囲である、画像処理装置。
The image processing apparatus according to claim 1 ,
The one or more reference colors are two reference colors;
The first color range is a range in which a sum of distances from the two reference colors in the color space is equal to or less than a predetermined first reference value Ls1.
The second color range is a range in which the sum of the distances in the color space is not less than the first reference value Ls1 and not more than a predetermined second reference value Ls2 (Ls2> Ls1).
The third color range is an image processing apparatus in which the sum of the distances in the color space is a range that is equal to or greater than the first reference value Ls2.
請求項記載の画像処理装置であって、
前記変換用データセット生成部は、前記第1の画像領域決定部が前記第1の画像領域を決定できなかった場合に、前記画像データに基づいて前記変換用データセットを生成する、画像処理装置。
The image processing apparatus according to claim 1 ,
The conversion data set generation unit generates the conversion data set based on the image data when the first image region determination unit cannot determine the first image region. .
写真画像の画像データの色を補正して印刷を行う印刷装置であって、
画像データの色を変換するための第1の原変換用データセットと、画像データの色を変換するためのデータセットであって少なくとも一部の入力色と対応づけられた出力色として前記第1の原変換用データセットとは異なる出力色を有する第2の原変換用データセットと、に基づいて変換用データセットを生成する変換用データセット生成部であって、所定の色空間の一部である第1の色範囲に含まれる少なくとも一部の第1種の色については、前記第1の原変換用データセットの出力色と同じ出力色を有し、前記色空間の他の一部である第2の色範囲に含まれる少なくとも一部の第2種の色については、前記色空間内において前記第1の色範囲内の1以上の所定の基準色に近い色ほど前記第1の原変換用データセットの出力色に近い出力色を有し、前記色空間内において前記基準色から遠い色ほど前記第2の原変換用データセットの出力色に近い出力色を有する変換用データセットを生成する変換用データセット生成部と、
前記変換用データセットを参照して画像データの色を補正する色調補正部と、
写真画像の画像データを解析して、前記写真画像中の一部の領域であって人の顔が存在する第1の画像領域を決定する第1の画像領域決定部と、
前記画像データの前記第1の画像領域に対応する部分に基づいて、前記第1の原変換用データセットを生成する第1の原変換用データセット生成部と、
前記写真画像中の画像領域であって前記第1の画像領域とは異なる第2の画像領域に対応する前記画像データの部分に基づいて、前記第2の原変換用データセットを生成する第2の原変換用データセット生成部と、
前記補正後の前記画像データに基づいて印刷を実行する印刷部と、を含
前記第1の色範囲は、人の肌を表す色の範囲であり、
前記第1の原変換用データセットは、前記画像データのうち前記第1の画像領域に含まれる色を有する画素の平均の色を、人の肌の色を表すのに望ましい色に変換するように構成された原変換用データセットであり、
前記第2の原変換用データセットは、前記画像データのうち前記第2の画像領域に含まれる色を有する画素の平均の色を、背景の色を表すのに望ましい色に変換するように構成された原変換用データセットであり、
前記変換用データセット生成部は、さらに、前記色空間において前記第1および第2の色範囲以外の第3の色範囲に含まれる少なくとも一部の第3種の色については、前記第2の原変換用データセットと同じ出力色を有する前記変換用データセットを生成する、印刷装置。
A printing apparatus that performs printing by correcting the color of image data of a photographic image,
A first original conversion data set for converting the color image data, wherein in a data set for converting the color image data at least part of the input color and the association was output color No. A conversion data set generation unit that generates a conversion data set based on a second original conversion data set having an output color different from that of one original conversion data set, wherein the conversion data set generation unit has a predetermined color space. At least a part of the first type of color included in the first color range, which is a part, has the same output color as the output color of the first original conversion data set, and is another one in the color space. For at least a part of the second type of color included in the second color range that is a part, the first color is closer to one or more predetermined reference colors in the first color range in the color space. Output color close to the output color of the original conversion data set A, a conversion data set generation unit for generating a conversion data set having output color close to the output color of the second original conversion data set farther color from the reference color in the color space,
A color tone correction unit that corrects the color of the image data with reference to the conversion data set;
A first image region determination unit that analyzes image data of a photographic image and determines a first image region that is a partial region in the photographic image and in which a human face exists;
A first original conversion data set generation unit configured to generate the first original conversion data set based on a portion corresponding to the first image area of the image data;
A second original conversion data set is generated based on a portion of the image data corresponding to a second image region that is an image region in the photographic image and is different from the first image region. The original conversion data set generation unit,
See containing and a printing unit which executes printing based on the image data after the correction,
The first color range is a color range representing human skin,
The first original conversion data set converts an average color of pixels having a color included in the first image area in the image data into a color desirable for representing a human skin color. The original conversion data set configured in
The second original conversion data set is configured to convert an average color of pixels having a color included in the second image area in the image data into a color desirable for representing a background color. Is the original conversion data set,
The conversion data set generation unit further includes the second data for at least a part of the third color included in the third color range other than the first and second color ranges in the color space. A printing apparatus that generates the conversion data set having the same output color as the original conversion data set .
写真画像の画像データの色を補正する方法であって、
画像データの色を変換するための第1の原変換用データセットと、画像データの色を変換するためのデータセットであって少なくとも一部の入力色と対応づけて前記第1の原変換用データセットとは異なる出力色を有する第2の原変換用データセットと、に基づいて変換用データセットを生成する工程であって、所定の色空間の一部である第1の色範囲に含まれる少なくとも一部の第1種の色については、前記第1の原変換用データセットの出力色と同じ出力色を有し、前記色空間の他の一部である第2の色範囲に含まれる少なくとも一部の第2種の色については、前記色空間内において前記第1の色範囲内の1以上の所定の基準色に近い色ほど前記第1の原変換用データセットの出力色に近い出力色を有し、前記色空間内において前記基準色から遠い色ほど前記第2の原変換用データセットの出力色に近い出力色を有する変換用データセットを生成する工程と、
前記変換用データセットを参照して画像データの色を補正する工程と、を含さらに、
前記変換用データセットの生成に先だって、
写真画像の画像データを解析して、前記写真画像中の一部の領域であって人の顔が存在する第1の画像領域を決定する工程と、
前記画像データの前記第1の画像領域に対応する部分に基づいて、前記第1の原変換用データセットを生成する工程と、
前記写真画像中の画像領域であって前記第1の画像領域とは異なる第2の画像領域に対応する前記画像データの部分に基づいて、前記第2の原変換用データセットを生成する工程と、を含
前記第1の色範囲は、人の肌を表す色の範囲であり、
前記第1の原変換用データセットは、前記画像データのうち前記第1の画像領域に含まれる色を有する画素の平均の色を、人の肌の色を表すのに望ましい色に変換するように構成された原変換用データセットであり、
前記第2の原変換用データセットは、前記画像データのうち前記第2の画像領域に含まれる色を有する画素の平均の色を、背景の色を表すのに望ましい色に変換するように構成された原変換用データセットであり、
前記変換用データセットを生成する工程は、前記色空間において前記第1および第2の色範囲以外の第3の色範囲に含まれる少なくとも一部の第3種の色については、前記第2の原変換用データセットと同じ出力色を有する前記変換用データセットを生成する工程である、方法。
A method for correcting the color of image data of a photographic image,
A first original conversion data set for converting the color of the image data and a data set for converting the color of the image data, the first original conversion data corresponding to at least a part of the input colors Generating a conversion data set based on a second original conversion data set having an output color different from that of the data set, and included in a first color range that is a part of a predetermined color space At least a portion of the first type of color that has the same output color as the output color of the first original conversion data set and is included in the second color range that is another part of the color space. With respect to at least a part of the second type of colors, colors closer to one or more predetermined reference colors in the first color range in the color space are output colors of the first original conversion data set. Having a near output color and the reference in the color space Generating a conversion data set having output color close to the output color of the more distant colors second original conversion data set from,
The reference to the conversion data set viewed including the steps of correcting the color of the image data, a, a further,
Prior to the generation of the conversion data set,
Analyzing image data of a photographic image and determining a first image region that is a partial region in the photographic image and in which a human face exists;
Generating the first original conversion data set based on a portion corresponding to the first image region of the image data;
Generating the second original conversion data set based on a portion of the image data corresponding to a second image region that is an image region in the photographic image and different from the first image region; , only including,
The first color range is a color range representing human skin,
The first original conversion data set converts an average color of pixels having a color included in the first image area in the image data into a color desirable for representing a human skin color. The original conversion data set configured in
The second original conversion data set is configured to convert an average color of pixels having a color included in the second image area in the image data into a color desirable for representing a background color. Is the original conversion data set,
The step of generating the conversion data set includes at least a part of the third type color included in the third color range other than the first and second color ranges in the color space. A method comprising the step of generating the conversion data set having the same output color as the original conversion data set .
コンピュータに写真画像の画像データの色の補正を実行させるためのコンピュータプログラムであって、
画像データの色を変換するための第1の原変換用データセットと、画像データの色を変換するためのデータセットであって少なくとも一部の入力色と対応づけて前記第1の原変換用データセットとは異なる出力色を有する第2の原変換用データセットと、に基づいて変換用データセットを生成する機能であって、所定の色空間の一部である第1の色範囲に含まれる少なくとも一部の第1種の色については、前記第1の原変換用データセットの出力色と同じ出力色を有し、前記色空間の他の一部である第2の色範囲に含まれる少なくとも一部の第2種の色については、前記色空間内において前記第1の色範囲内の1以上の所定の基準色に近い色ほど前記第1の原変換用データセットの出力色に近い出力色を有し、前記色空間内において前記基準色から遠い色ほど前記第2の原変換用データセットの出力色に近い出力色を有する変換用データセットを生成する機能と、
前記変換用データセットを参照して画像データの色を補正する機能と、をコンピュータに実現させ、さらに、
前記変換用データセットの生成に先だって、写真画像の画像データを解析して、前記写真画像中の一部の領域であって人の顔が存在する第1の画像領域を決定する機能と、
前記変換用データセットの生成に先だって、前記画像データの前記第1の画像領域に対応する部分に基づいて、前記第1の原変換用データセットを生成する機能と、
前記変換用データセットの生成に先だって、前記写真画像中の画像領域であって前記第1の画像領域とは異なる第2の画像領域に対応する前記画像データの部分に基づいて、前記第2の原変換用データセットを生成する機能と、を含
前記第1の色範囲は、人の肌を表す色の範囲であり、
前記第1の原変換用データセットは、前記画像データのうち前記第1の画像領域に含まれる色を有する画素の平均の色を、人の肌の色を表すのに望ましい色に変換するように構成された原変換用データセットであり、
前記第2の原変換用データセットは、前記画像データのうち前記第2の画像領域に含まれる色を有する画素の平均の色を、背景の色を表すのに望ましい色に変換するように構成された原変換用データセットであり、
前記変換用データセットを生成する機能は、前記色空間において前記第1および第2の色範囲以外の第3の色範囲に含まれる少なくとも一部の第3種の色については、前記第2の原変換用データセットと同じ出力色を有する前記変換用データセットを生成する機能である、コンピュータプログラム。
A computer program for causing a computer to perform color correction of image data of a photographic image,
A first original conversion data set for converting the color of the image data and a data set for converting the color of the image data, the first original conversion data corresponding to at least a part of the input colors A function for generating a conversion data set based on a second original conversion data set having an output color different from that of the data set, and included in a first color range that is a part of a predetermined color space At least a portion of the first type of color that has the same output color as the output color of the first original conversion data set and is included in the second color range that is another part of the color space. With respect to at least a part of the second type of colors, colors closer to one or more predetermined reference colors in the first color range in the color space are output colors of the first original conversion data set. Having a near output color and the reference in the color space And generating the conversion data set having output color close to the output color of the more distant colors second original conversion data set from,
A function of correcting the color of the image data with reference to the conversion data set ; and
A function of analyzing image data of a photographic image prior to generation of the conversion data set and determining a first image region that is a partial region in the photographic image and in which a human face exists;
A function of generating the first original conversion data set based on a portion corresponding to the first image area of the image data prior to the generation of the conversion data set;
Prior to the generation of the conversion data set, based on the portion of the image data corresponding to a second image region that is an image region in the photographic image that is different from the first image region, the second a function of generating the original conversion data set, only including,
The first color range is a color range representing human skin,
The first original conversion data set converts an average color of pixels having a color included in the first image area in the image data into a color desirable for representing a human skin color. The original conversion data set configured in
The second original conversion data set is configured to convert an average color of pixels having a color included in the second image area in the image data into a color desirable for representing a background color. Is the original conversion data set,
The function of generating the conversion data set is characterized in that, for at least a part of the third type of color included in the third color range other than the first and second color ranges in the color space, A computer program having a function of generating the conversion data set having the same output color as the original conversion data set .
JP2006063613A 2006-03-09 2006-03-09 Image data color correction Expired - Fee Related JP4635916B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006063613A JP4635916B2 (en) 2006-03-09 2006-03-09 Image data color correction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006063613A JP4635916B2 (en) 2006-03-09 2006-03-09 Image data color correction

Publications (2)

Publication Number Publication Date
JP2007243628A JP2007243628A (en) 2007-09-20
JP4635916B2 true JP4635916B2 (en) 2011-02-23

Family

ID=38588706

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006063613A Expired - Fee Related JP4635916B2 (en) 2006-03-09 2006-03-09 Image data color correction

Country Status (1)

Country Link
JP (1) JP4635916B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101691814B1 (en) * 2014-04-17 2017-01-09 정익승 Color Verification Methods

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001111858A (en) * 1999-08-03 2001-04-20 Fuji Photo Film Co Ltd Color correction definition preparing method, color correction definition generator, and storage medium for color correction definition generation program
JP2001169135A (en) * 1999-09-30 2001-06-22 Seiko Epson Corp Method and device for color correction and recording medium with color correction control program recorded thereon
JP2002016818A (en) * 2000-04-28 2002-01-18 Fuji Photo Film Co Ltd Color correction method and device, and recording medium
JP2004172987A (en) * 2002-11-20 2004-06-17 Sony Corp Signal processor and signal processing method
JP2004192614A (en) * 2002-11-29 2004-07-08 Ricoh Co Ltd Image processing device, image processing method, program and recording medium
JP2004356930A (en) * 2003-05-29 2004-12-16 Matsushita Electric Ind Co Ltd Apparatus and method for adjusting color

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06162207A (en) * 1992-11-27 1994-06-10 Oki Electric Ind Co Ltd Color image display method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001111858A (en) * 1999-08-03 2001-04-20 Fuji Photo Film Co Ltd Color correction definition preparing method, color correction definition generator, and storage medium for color correction definition generation program
JP2001169135A (en) * 1999-09-30 2001-06-22 Seiko Epson Corp Method and device for color correction and recording medium with color correction control program recorded thereon
JP2002016818A (en) * 2000-04-28 2002-01-18 Fuji Photo Film Co Ltd Color correction method and device, and recording medium
JP2004172987A (en) * 2002-11-20 2004-06-17 Sony Corp Signal processor and signal processing method
JP2004192614A (en) * 2002-11-29 2004-07-08 Ricoh Co Ltd Image processing device, image processing method, program and recording medium
JP2004356930A (en) * 2003-05-29 2004-12-16 Matsushita Electric Ind Co Ltd Apparatus and method for adjusting color

Also Published As

Publication number Publication date
JP2007243628A (en) 2007-09-20

Similar Documents

Publication Publication Date Title
JP4345757B2 (en) Image data color correction
JP4424216B2 (en) Image processing apparatus, image processing method, and image processing program
US6608926B1 (en) Image processing method, image processing apparatus and recording medium
JP4924264B2 (en) Image processing apparatus, image processing method, and computer program
JP4877074B2 (en) Image processing apparatus, image processing method, and computer program
JP4788393B2 (en) Image processing apparatus, image processing method, and image processing program
US20050068587A1 (en) Monotone conversion process for color images
US7224833B2 (en) Method for fast color saturation control
CN103716506B (en) Image processing apparatus and image processing method
JP4539778B2 (en) Image data color correction
JP4635916B2 (en) Image data color correction
JP4635920B2 (en) Image data color correction
JP4112413B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium on which image processing program is recorded
US7817303B2 (en) Image processing and image forming with modification of a particular class of colors
JP4359730B2 (en) Monotone conversion apparatus, monotone conversion method, and medium recording monotone conversion program
JP2007194683A (en) Color adjustment method, color adjustment apparatus, and color adjustment program
JP2002094826A (en) Image processing unit, image forming unit and method for processing image
JP2005260404A (en) Image processor
JP2009031855A (en) Image processor, image processing method and computer program
JP6882720B2 (en) Image processing equipment and computer programs
JP2021197717A (en) Image processing device and computer program
JP5831003B2 (en) Method and apparatus for creating profile
JP2004112547A (en) Image processing apparatus, method therefor and recording medium
JP2011228763A (en) Image processing apparatus and program thereof
JP2001189861A (en) Image processing method and image processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100422

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100511

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100707

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20101026

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101108

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131203

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees