JP4111248B2 - Color balance adjustment method and apparatus considering color reproduction of specific color - Google Patents

Color balance adjustment method and apparatus considering color reproduction of specific color Download PDF

Info

Publication number
JP4111248B2
JP4111248B2 JP2007219183A JP2007219183A JP4111248B2 JP 4111248 B2 JP4111248 B2 JP 4111248B2 JP 2007219183 A JP2007219183 A JP 2007219183A JP 2007219183 A JP2007219183 A JP 2007219183A JP 4111248 B2 JP4111248 B2 JP 4111248B2
Authority
JP
Japan
Prior art keywords
color
color balance
pixel
value
pixels
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.)
Active
Application number
JP2007219183A
Other languages
Japanese (ja)
Other versions
JP2007336596A (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 JP2007219183A priority Critical patent/JP4111248B2/en
Publication of JP2007336596A publication Critical patent/JP2007336596A/en
Application granted granted Critical
Publication of JP4111248B2 publication Critical patent/JP4111248B2/en
Anticipated expiration legal-status Critical
Active legal-status Critical Current

Links

Images

Description

この発明は、画像のカラーバランス調整技術に関する。   The present invention relates to an image color balance adjustment technique.

デジタルスチルカメラやビデオカメラなどの画像生成装置で撮影した画像に関しては、画像全体にカラーバランス調整と呼ばれる処理が行われる(例えば下記特許文献1)。   For an image captured by an image generation device such as a digital still camera or a video camera, a process called color balance adjustment is performed on the entire image (for example, Patent Document 1 below).

特開2001−320727号公報JP 2001-320727 A

カラーバランス調整を行うと、画像に生じている色カブリを低減して、元々白色であった撮像対象を正しく白色で再現できるようになる。   When the color balance adjustment is performed, the color fog generated in the image is reduced, and the image pickup target that was originally white can be accurately reproduced in white.

しかし、場合によっては、カラーバランス調整の結果、特定の撮像対象に望ましくないい色の変化が生じてしまうことがある。例えば、白に近い画素に青みがついている場合にカラーバランス調整を行うと、画像全体に対して青成分を抑えて赤成分を強調することになる。このとき、カラーバランス調整前の画像において肌色が望ましい色を有していた場合には、肌色がさらに赤みを帯びてしまい、望ましい色から却って逸脱してしまうという問題がある。このように、カラーバランス調整によって望ましい色から却って外れてしまうという問題は、肌色に限らず、緑や青のような他の有彩色に関しても生じる場合があり、一般に特定の有彩色に関して共通する問題であった。   However, in some cases, as a result of color balance adjustment, an undesirable color change may occur in a specific imaging target. For example, when color balance adjustment is performed when a pixel close to white is bluish, the blue component is suppressed and the red component is enhanced with respect to the entire image. At this time, if the skin color has a desired color in the image before the color balance adjustment, the skin color is further reddish, and there is a problem that it deviates from the desired color. As described above, the problem that the color balance adjustment causes the color to deviate from the desired color is not limited to the skin color, but may also occur for other chromatic colors such as green and blue. Generally, this problem is common to specific chromatic colors. Met.

本発明は、画像内の特定の有彩色近傍の色が、カラーバランス調整処理によって却って望ましい色から外れてしまう現象を緩和できる技術を提供することを目的とする。   An object of the present invention is to provide a technique that can alleviate a phenomenon that a color near a specific chromatic color in an image is deviated from a desired color by color balance adjustment processing.

本発明の一形態としての画像処理装置は、処理対象画像のカラーバランスを調整するための画像処理装置であって、前記処理対象画像に存在する全画素の中で、特定の有彩色の近傍の所定の第1の範囲の色を有する特定色画素の割合である特定色画素割合を算出する特定色画素割合算出部と、前記特定色画素の画素値の平均値を算出する特定色画素平均値算出部と、前記特定色画素割合と前記特定色画素の平均画素値とに基づいて、カラーバランス補正値を算出する第1の演算モードを有するカラーバランス補正値算出部と、前記カラーバランス補正値を用いて前記処理対象画像全体に対してカラーバランス調整を実行するカラーバランス調整実行部と、を備える。   An image processing apparatus according to an aspect of the present invention is an image processing apparatus for adjusting a color balance of a processing target image, and is located near a specific chromatic color among all the pixels present in the processing target image. A specific color pixel ratio calculation unit that calculates a specific color pixel ratio that is a ratio of specific color pixels having a predetermined first range of colors; and a specific color pixel average value that calculates an average value of pixel values of the specific color pixels A calculation unit; a color balance correction value calculation unit having a first calculation mode for calculating a color balance correction value based on the specific color pixel ratio and an average pixel value of the specific color pixel; and the color balance correction value And a color balance adjustment execution unit that executes color balance adjustment on the entire processing target image.

この画像処理装置によれば、特定色画素割合と特定色画素の平均画素値とに基づいてカラーバランス補正値が算出されるので、特定の有彩色に近い色を有する画素の色が、カラーバランス調整処理によって却って望ましい色から外れてしまう現象を緩和することができる。   According to this image processing apparatus, since the color balance correction value is calculated based on the specific color pixel ratio and the average pixel value of the specific color pixel, the color of the pixel having a color close to the specific chromatic color is the color balance. The phenomenon of deviating from a desired color by the adjustment process can be alleviated.

なお、前記第1の演算モードにおいて算出される前記カラーバランス補正値は、前記特定色に対して予め決定された特定色目標画素値と前記特定色画素の平均画素値との差分が大きいほど大きく、また、前記特定色画素割合が大きいほど大きくなる成分を含むことが好ましい。   The color balance correction value calculated in the first calculation mode increases as the difference between the specific color target pixel value predetermined for the specific color and the average pixel value of the specific color pixel increases. In addition, it is preferable that a component that increases as the ratio of the specific color pixel increases is included.

この構成によれば、特定の有彩色に近い色を有する画素の色をより適切な色に保つことができる。   According to this configuration, the color of a pixel having a color close to a specific chromatic color can be maintained at a more appropriate color.

上記画像処理置は、さらに、前記処理対象画像に存在する全画素の中で、低彩度かつ高輝度である所定の第2の範囲の色を有する複数の高輝度画素に関する画素値の平均値を算出する高輝度画素平均画素値算出部を備え、前記カラーバランス補正値算出部は、(i)前記複数の高輝度画素の色相値の平均値が前記特定色に近い所定の範囲に無い場合には、前記第1の演算モードで演算を実行し、(ii)前記複数の高輝度画素の色相値の平均値が前記特定色に近い所定の範囲にある場合には、前記特定色画素割合と前記特定色画素の平均画素値を利用せずに前記複数の高輝度画素に関する平均画素値を利用してカラーバランス補正値を算出する第2の演算モードで演算を実行するようにしてもよい。   The image processing apparatus further includes an average value of pixel values related to a plurality of high-luminance pixels having a predetermined second range of colors with low saturation and high luminance among all the pixels present in the processing target image. A high-brightness pixel average pixel value calculation unit that calculates the color balance correction value calculation unit (i) when the average value of hue values of the plurality of high-brightness pixels is not within a predetermined range close to the specific color (Ii) When the average value of hue values of the plurality of high-luminance pixels is in a predetermined range close to the specific color, the specific color pixel ratio is calculated. The calculation may be executed in a second calculation mode in which a color balance correction value is calculated using an average pixel value related to the plurality of high luminance pixels without using an average pixel value of the specific color pixel. .

この構成によれば、高輝度画素の色相値の平均値が特定色に近い所定の範囲にあるか否かに応じてカラーバランス補正値を適切な値に設定することができる。具体的には、第1の演算モードでは、特定の有彩色に近い色を有する画素を適切な色に維持することができ、第2の演算モードでは、処理対象画像全体に関して好ましいカラーバランスを実現することができる。   According to this configuration, the color balance correction value can be set to an appropriate value depending on whether or not the average value of the hue values of the high luminance pixels is in a predetermined range close to the specific color. Specifically, in the first calculation mode, a pixel having a color close to a specific chromatic color can be maintained as an appropriate color, and in the second calculation mode, a preferable color balance is realized for the entire processing target image. can do.

あるいは、上記画像処理置において、前記特定の有彩色は肌色であり、前記処理対象画像を表す画像データファイルは、前記処理対象画像の撮影シーンのタイプを表す撮影シーンタイプ情報を含んでおり、前記カラーバランス調整実行部は、(i)前記撮影シーンタイプ情報が人物を表す場合には、前記第1の演算モードで演算を実行し、(ii)前記撮影シーンタイプ情報が人物以外のシーンを表す場合には、前記特定色画素割合と前記特定色画素の平均画素値を利用せずに前記複数の高輝度画素に関する平均画素値を利用してカラーバランス補正値を算出する第2の演算モードで演算を実行するようにしてもよい。   Alternatively, in the image processing device, the specific chromatic color is a skin color, and the image data file representing the processing target image includes shooting scene type information indicating a shooting scene type of the processing target image, The color balance adjustment execution unit executes (i) calculation in the first calculation mode when the shooting scene type information represents a person, and (ii) the shooting scene type information represents a scene other than a person. In this case, in the second calculation mode in which the color balance correction value is calculated using the average pixel value regarding the plurality of high luminance pixels without using the specific color pixel ratio and the average pixel value of the specific color pixel. You may make it perform a calculation.

この構成によれば、撮影シーンタイプが人物を表す場合に、肌色に近い色を有する画素を適切な色に維持することができる。一方、撮影シーンタイプ情報が人物以外のシーンを表す場合には、処理対象画像全体に関して好ましいカラーバランスを実現することができる。   According to this configuration, when the shooting scene type represents a person, it is possible to maintain a pixel having a color close to the skin color in an appropriate color. On the other hand, when the shooting scene type information represents a scene other than a person, a preferable color balance can be realized for the entire processing target image.

本発明の他の形態としての画像処理装置は、処理対象画像のカラーバランスを調整するための画像処理装置であって、前記処理対象画像に存在する全画素の中で、特定の有彩色の近傍の所定の第1の範囲の色を有する特定色画素の画素値の平均値を算出する特定色画素平均値算出部と、前記特定色画素の平均画素値に基づいて、カラーバランス補正値を算出する第1の演算モードを有するカラーバランス補正値算出部と、前記カラーバランス補正値を用いて前記処理対象画像全体に対してカラーバランス調整を実行するカラーバランス調整実行部と、を備える。   An image processing apparatus according to another aspect of the present invention is an image processing apparatus for adjusting a color balance of a processing target image, and is in the vicinity of a specific chromatic color among all the pixels present in the processing target image. A specific color pixel average value calculating unit for calculating an average value of pixel values of specific color pixels having a color in a predetermined first range, and calculating a color balance correction value based on the average pixel value of the specific color pixels A color balance correction value calculation unit having a first calculation mode, and a color balance adjustment execution unit that performs color balance adjustment on the entire processing target image using the color balance correction value.

この画像処理装置によれば、特定色画素の平均画素値に基づいてカラーバランス補正値が算出されるので、特定の有彩色に近い色を有する画素の色が、カラーバランス調整処理によって却って望ましい色から外れてしまう現象を緩和することができる。   According to this image processing apparatus, since the color balance correction value is calculated based on the average pixel value of the specific color pixel, the color of the pixel having a color close to the specific chromatic color is desired by the color balance adjustment process. It is possible to alleviate the phenomenon of falling out of the range.

なお、前記第1の演算モードにおいて算出される前記カラーバランス補正値は、前記特定色に対して予め決定された特定色目標画素値と前記特定色画素の平均画素値との差分が大きいほど大きくなる成分を含むことが好ましい。   The color balance correction value calculated in the first calculation mode increases as the difference between the specific color target pixel value predetermined for the specific color and the average pixel value of the specific color pixel increases. It is preferable to contain the component which becomes.

この構成によれば、特定の有彩色に近い色を有する画素の色をより適切な色に保つことができる。   According to this configuration, the color of a pixel having a color close to a specific chromatic color can be maintained at a more appropriate color.

上記画像処理置は、さらに、前記処理対象画像に存在する全画素の中で、低彩度かつ高輝度である所定の第2の範囲の色を有する複数の高輝度画素に関する画素値の平均値を算出する高輝度画素平均画素値算出部を備え、前記カラーバランス補正値算出部は、(i)前記複数の高輝度画素の色相値の平均値が前記特定色に近い所定の範囲に無い場合には、前記第1の演算モードで演算を実行し、(ii)前記複数の高輝度画素の色相値の平均値が前記特定色に近い所定の範囲にある場合には、前記特定色画素の平均画素値を利用せずに前記複数の高輝度画素に関する平均画素値を利用してカラーバランス補正値を算出する第2の演算モードで演算を実行するようにしてもよい。   The image processing apparatus further includes an average value of pixel values related to a plurality of high-luminance pixels having a predetermined second range of colors with low saturation and high luminance among all the pixels present in the processing target image. A high-brightness pixel average pixel value calculation unit that calculates the color balance correction value calculation unit (i) when the average value of hue values of the plurality of high-brightness pixels is not within a predetermined range close to the specific color (Ii) When an average value of hue values of the plurality of high-luminance pixels is within a predetermined range close to the specific color, the calculation is performed in the first calculation mode. The calculation may be executed in the second calculation mode in which the color balance correction value is calculated using the average pixel value regarding the plurality of high-luminance pixels without using the average pixel value.

この構成によれば、高輝度画素の色相値の平均値が特定色に近い所定の範囲にあるか否かに応じてカラーバランス補正値を適切な値に設定することができる。具体的には、第1の演算モードでは、特定の有彩色に近い色を有する画素を適切な色に維持することができ、第2の演算モードでは、処理対象画像全体に関して好ましいカラーバランスを実現することができる。   According to this configuration, the color balance correction value can be set to an appropriate value depending on whether or not the average value of the hue values of the high luminance pixels is in a predetermined range close to the specific color. Specifically, in the first calculation mode, a pixel having a color close to a specific chromatic color can be maintained as an appropriate color, and in the second calculation mode, a preferable color balance is realized for the entire processing target image. can do.

あるいは、上記画像処理置において、前記特定の有彩色は肌色であり、前記処理対象画像を表す画像データファイルは、前記処理対象画像の撮影シーンのタイプを表す撮影シーンタイプ情報を含んでおり、前記カラーバランス調整実行部は、(i)前記撮影シーンタイプ情報が人物を表す場合には、前記第1の演算モードで演算を実行し、(ii)前記撮影シーンタイプ情報が人物以外のシーンを表す場合には、前記特定色画素の平均画素値を利用せずに前記複数の高輝度画素に関する平均画素値を利用してカラーバランス補正値を算出する第2の演算モードで演算を実行するようにしてもよい。   Alternatively, in the image processing device, the specific chromatic color is a skin color, and the image data file representing the processing target image includes shooting scene type information indicating a shooting scene type of the processing target image, The color balance adjustment execution unit executes (i) calculation in the first calculation mode when the shooting scene type information represents a person, and (ii) the shooting scene type information represents a scene other than a person. In such a case, the calculation is executed in the second calculation mode in which the color balance correction value is calculated using the average pixel value regarding the plurality of high luminance pixels without using the average pixel value of the specific color pixel. May be.

この構成によれば、撮影シーンタイプが人物を表す場合に、肌色に近い色を有する画素を適切な色に維持することができる。一方、撮影シーンタイプ情報が人物以外のシーンを表す場合には、処理対象画像全体に関して好ましいカラーバランスを実現することができる。   According to this configuration, when the shooting scene type represents a person, it is possible to maintain a pixel having a color close to the skin color in an appropriate color. On the other hand, when the shooting scene type information represents a scene other than a person, a preferable color balance can be realized for the entire processing target image.

なお、本発明は、種々の形態で実現することが可能であり、例えば、画像処理方法および画像処理装置、それらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体等の形態で実現することができる。   The present invention can be realized in various forms, for example, an image processing method and an image processing apparatus, a computer program for realizing the function of the method or apparatus, and a recording in which the computer program is recorded. It can be realized in the form of a medium or the like.

次に、本発明の実施の形態を以下の順序で説明する。
A.第1実施例:
B.第2実施例:
C.変形例
Next, embodiments of the present invention will be described in the following order.
A. First embodiment:
B. Second embodiment:
C. Modified example

A.第1実施例:
図1は、本発明の一実施例としての画像処理システムの構成を示す説明図である。このシステムは、画像生成装置としてのデジタルカメラ100と、画像処理装置としてのコンピュータ200と、画像出力装置としてのプリンタ300とを含んでいる。デジタルカメラ100で生成された画像データファイルMFは、コンピュータ200またはプリンタ300に転送されて出力される。なお、本明細書において、「出力」とはモニタ上の表示と印刷とを含んでいる。
A. First embodiment:
FIG. 1 is an explanatory diagram showing the configuration of an image processing system as an embodiment of the present invention. This system includes a digital camera 100 as an image generation apparatus, a computer 200 as an image processing apparatus, and a printer 300 as an image output apparatus. The image data file MF generated by the digital camera 100 is transferred to the computer 200 or the printer 300 and output. In this specification, “output” includes display on a monitor and printing.

図2は、画像データファイルMFの構成を示す説明図である。この画像データファイルMFは、撮影情報と、主画像データMMと、サムネイル画像データTMとを含んでいる。主画像データMMとサムネイル画像データTMは、通常は圧縮データ(例えばJPEG圧縮データ)の形式を有している。なお、サムネイル画像データTMは、画像データファイルMFに含まれていなくても良い。   FIG. 2 is an explanatory diagram showing the configuration of the image data file MF. The image data file MF includes shooting information, main image data MM, and thumbnail image data TM. The main image data MM and the thumbnail image data TM usually have a format of compressed data (for example, JPEG compressed data). The thumbnail image data TM may not be included in the image data file MF.

撮影情報は、デジタルカメラ100で画像データファイルMFを生成したときの種々の条件や設定値を含んでいる。図2では、撮影情報として「撮影シーンタイプ」が例示されている。撮影シーンタイプとしては、「人物」「風景」「夜景」などが設定可能である。   The shooting information includes various conditions and setting values when the digital camera 100 generates the image data file MF. In FIG. 2, “shooting scene type” is exemplified as shooting information. As the shooting scene type, “person”, “landscape”, “night view”, and the like can be set.

コンピュータ200(図1)には、画像データファイルMFに基づいて印刷データを生成するためのプリンタドライバ210がインストールされている。プリンタドライバ210は、カラーバランス調整部212と、色変換部214と、ハーフトーン処理部216と、出力処理部218とを備えている。プリンタドライバ210で生成された印刷データPDは、出力処理部218からプリンタ300に供給される。印刷データPDは、印刷解像度を有する主走査ライン上の各画素についてインクドットの記録状態を指定するドットデータと、副走査送り量を特定する副走査送り量データとを含んでいる。なお、プリンタドライバ210は、印刷用のドットデータを生成する機能を実現するためのコンピュータプログラムに相当する。また、カラーバランス調整部212は、カラーバランス調整を実行する機能を実現するためのコンピュータプログラムに相当する。   A printer driver 210 for generating print data based on the image data file MF is installed in the computer 200 (FIG. 1). The printer driver 210 includes a color balance adjustment unit 212, a color conversion unit 214, a halftone processing unit 216, and an output processing unit 218. The print data PD generated by the printer driver 210 is supplied from the output processing unit 218 to the printer 300. The print data PD includes dot data that specifies the ink dot recording state for each pixel on the main scan line having the print resolution, and sub-scan feed amount data that specifies the sub-scan feed amount. The printer driver 210 corresponds to a computer program for realizing a function of generating dot data for printing. The color balance adjustment unit 212 corresponds to a computer program for realizing a function of executing color balance adjustment.

プリンタドライバ210の機能を実現するためのプログラムは、コンピュータ読み取り可能な記録媒体に記録された形態で供給し得る。このような記録媒体としては、フレキシブルディスクやCD−ROM、光磁気ディスク、ICカード、ROMカートリッジ、パンチカード、バーコードなどの符号が印刷された印刷物等のコンピュータが読み取り可能な種々の媒体を利用できる。   A program for realizing the function of the printer driver 210 may be supplied in a form recorded on a computer-readable recording medium. As such a recording medium, various computer-readable media such as a flexible disk, a CD-ROM, a magneto-optical disk, an IC card, a ROM cartridge, a punch card, and a printed matter on which a code such as a barcode is printed are used. it can.

図3は、カラーバランス調整部212の構成を示すブロック図である。また、図4は、処理対象画像TMGの例と、種々のカラーバランス調整パラメータとを示す説明図である。カラーバランス調整部212は、以下の各部を備えている。   FIG. 3 is a block diagram illustrating a configuration of the color balance adjustment unit 212. FIG. 4 is an explanatory diagram showing an example of the processing target image TMG and various color balance adjustment parameters. The color balance adjustment unit 212 includes the following units.

(1)高輝度画素平均画素値算出部220:
この算出部220は、処理対象画像データDorg(図2の主画像データMM)に基づいて、高輝度画素に関する以下の平均画素値を算出する。
a.色成分平均値CB_ave(R),CB_ave(R),CB_ave(B);
b.平均輝度値CB_ave(Y);
c.平均色相値CB_ave(H)
(1) High-brightness pixel average pixel value calculation unit 220:
The calculation unit 220 calculates the following average pixel values related to high luminance pixels based on the processing target image data Dorg (main image data MM in FIG. 2).
a. Color component average values CB_ave (R), CB_ave (R), CB_ave (B);
b. Average luminance value CB_ave (Y);
c. Average hue value CB_ave (H)

「高輝度画素」とは、彩度値が低く、かつ、輝度値が高い所定の色範囲(高輝度範囲)に含まれる色を有する画素を意味している。図5は、高輝度範囲HLRの一例を示している。なお、各画素の輝度値Yと彩度値Sを算出する式としては種々のものを利用可能であり、例えば以下の式を利用することができる。   The “high luminance pixel” means a pixel having a color included in a predetermined color range (high luminance range) having a low saturation value and a high luminance value. FIG. 5 shows an example of the high luminance range HLR. Various formulas can be used for calculating the luminance value Y and the saturation value S of each pixel. For example, the following formulas can be used.

Y = 0.587×G + 0.114×B + 0.299×R …(1)
S = √(a*2 + b*2) …(2)
Y = 0.587 x G + 0.114 x B + 0.299 x R (1)
S = √ (a * 2 + b * 2 )… (2)

ここで、a*,b*は、La*b*表色系の座標値である。輝度値Yとしては、La*b*表色系の明度値Lを用いることも可能であり、他の色空間の輝度値または明度値を用いることも可能である。また、彩度値Sに関しても、HSL(Hue/Saturation/luminance)色空間やHSB(Hue/Saturation/Brightness)色空間などの他の色空間の彩度値を用いることが可能である。   Here, a * and b * are coordinate values of the La * b * color system. As the luminance value Y, the lightness value L of the La * b * color system can be used, and the luminance value or lightness value of another color space can also be used. As for the saturation value S, it is possible to use saturation values of other color spaces such as HSL (Hue / Saturation / luminance) color space and HSB (Hue / Saturation / Brightness) color space.

色成分平均値CB_ave(R),(G),(B)は、RGBのそれぞれの色成分に関する平均値である。また、平均輝度値CB_ave(Y)は輝度値Yの平均値であり、平均色相値CB_ave(H)は色相値Hの平均値である。色相値Hの値は、例えばLa*b*表色系のa*軸からの角度や、HSL色空間やHSB色空間の色相値Hを用いることが可能である。   The color component average values CB_ave (R), (G), and (B) are average values for the respective RGB color components. The average luminance value CB_ave (Y) is an average value of the luminance values Y, and the average hue value CB_ave (H) is an average value of the hue values H. As the hue value H, for example, the angle from the a * axis of the La * b * color system, or the hue value H of the HSL color space or HSB color space can be used.

(2)肌色画素割合算出部222:
この算出部222は、処理対象画像データDorgに基づいて、肌色画素割合SPratioを算出する。肌色画素割合SPratioは、以下の(3)式で与えられる。
(2) Skin color pixel ratio calculation unit 222:
The calculation unit 222 calculates the skin color pixel ratio SPratio based on the processing target image data Dorg. The skin color pixel ratio SPratio is given by the following equation (3).

SPratio=[肌色画素数]/[全画素数] …(3)   SPratio = [number of skin color pixels] / [total number of pixels] (3)

ある画素が肌色画素か否かは、その画素の色が、予め定められた肌色範囲内にあるか否かによって判断される。肌色範囲は、例えば、色相値Hの範囲と明度Lの範囲とに基づいて設定することができる。   Whether or not a certain pixel is a skin color pixel is determined based on whether or not the color of the pixel is within a predetermined skin color range. The skin color range can be set based on the range of the hue value H and the range of the lightness L, for example.

(3)肌色画素平均画素値算出部224:
この算出部224は、処理対象画像データDorgに基づいて、RGBのそれぞれの色成分に関する複数の肌色画素の平均画素値SC_ave(R),(G),(B)を算出する。
(3) Skin color pixel average pixel value calculation unit 224:
The calculation unit 224 calculates average pixel values SC_ave (R), (G), and (B) of a plurality of skin color pixels related to the respective RGB color components based on the processing target image data Dorg.

(4)カラーバランス補正値算出部226:
この算出部226は、上述した種々の値に基づいて、RGBのそれぞれの色成分に関するカラーバランス補正値ΔC(R),(G),(B)を算出する。本実施例においては、カラーバランス補正値ΔC(R),(G),(B)は、以下の(4a)〜(4c)式に従って算出される。
(4) Color balance correction value calculation unit 226:
The calculation unit 226 calculates color balance correction values ΔC (R), (G), and (B) for the respective RGB color components based on the various values described above. In this embodiment, the color balance correction values ΔC (R), (G), and (B) are calculated according to the following equations (4a) to (4c).

ΔC(R) = k1×{CB_ave(Y) - CB_ave(R)}
+ k2×{SC_target(R) - SC_ave(R)}×SPratio …(4a)
ΔC(G) = k1×{CB_ave(Y) - CB_ave(G)}
+ k2×{SC_target(G) - SC_ave(G)}×SPratio …(4b)
ΔC(B) = k1×{CB_ave(Y) - CB_ave(B)}
+ k2×{SC_target(B) - SC_ave(B)}×SPratio …(4c)
ΔC (R) = k1 × {CB_ave (Y)-CB_ave (R)}
+ k2 × {SC_target (R) −SC_ave (R)} × SPratio (4a)
ΔC (G) = k1 × {CB_ave (Y)-CB_ave (G)}
+ k2 × {SC_target (G) −SC_ave (G)} × SPratio (4b)
ΔC (B) = k1 × {CB_ave (Y)-CB_ave (B)}
+ k2 × {SC_target (B) −SC_ave (B)} × SPratio (4c)

ここで、k1,k2は所定の係数である。SC_target(R),(G),(B)は、各色成分に関する肌色の目標画素値であり、予め定めされた所定の値である。以下で説明するように、係数k1,k2の値は、例えば処理対象画像に応じて設定される。係数k1,k2の設定方法や、カラーバランス補正値ΔC(R),(G),(B)の意味については後述する。   Here, k1 and k2 are predetermined coefficients. SC_target (R), (G), and (B) are skin color target pixel values related to the respective color components, and are predetermined values. As will be described below, the values of the coefficients k1 and k2 are set according to the processing target image, for example. The setting method of the coefficients k1 and k2 and the meaning of the color balance correction values ΔC (R), (G), and (B) will be described later.

図6は、第1実施例におけるカラーバランス調整の処理手順を示すフローチャートである。ステップS1では、上述した種々のカラーバランス調整用パラメータCB_ave, SPratio, SC_ave(補正値ΔC(R),(G),(B)を除く)が算出される。ステップS2では、カラーバランス補正値算出部226が、高輝度画素の平均色相値CB_ave(H)が所定の肌色域(肌色の色相範囲)に含まれるか否かを判断する。平均色相値CB_ave(H)が肌色域に含まれていない場合には、カラーバランス補正値算出部226は、肌色目標値SC_target(R),(G),(B)を利用したカラーバランス補正値を算出する第1の演算モードで演算を実行する(ステップS3)。具体的には、上記(4a)〜(4c)式の2つの係数k1,k2を、例えばそれぞれ1.0に設定する。このとき、上記(4a)〜(4c)式は以下の(5a)〜(5c)式に書き換えられる。   FIG. 6 is a flowchart illustrating a processing procedure of color balance adjustment in the first embodiment. In step S1, the above-described various color balance adjustment parameters CB_ave, SPratio, and SC_ave (excluding correction values ΔC (R), (G), and (B)) are calculated. In step S2, the color balance correction value calculation unit 226 determines whether or not the average hue value CB_ave (H) of the high luminance pixels is included in a predetermined skin color gamut (skin color hue range). When the average hue value CB_ave (H) is not included in the skin color gamut, the color balance correction value calculation unit 226 uses the skin color target values SC_target (R), (G), and (B) to correct the color balance correction value. The calculation is executed in the first calculation mode for calculating (step S3). Specifically, the two coefficients k1 and k2 in the above equations (4a) to (4c) are set to 1.0, for example. At this time, the above equations (4a) to (4c) are rewritten into the following equations (5a) to (5c).

ΔC(R)= {CB_ave(Y) - CB_ave(R)}
+ {SC_target(R) - SC_ave(R)}×SPratio …(5a)
ΔC(G)= {CB_ave(Y) - CB_ave(G)}
+ {SC_target(G) - SC_ave(G)}×SPratio …(5b)
ΔC(B)= {CB_ave(Y) - CB_ave(B)}
+ {SC_target(B) - SC_ave(B)}×SPratio …(5c)
ΔC (R) = {CB_ave (Y)-CB_ave (R)}
+ {SC_target (R)-SC_ave (R)} x SPratio (5a)
ΔC (G) = {CB_ave (Y)-CB_ave (G)}
+ {SC_target (G)-SC_ave (G)} × SPratio (5b)
ΔC (B) = {CB_ave (Y)-CB_ave (B)}
+ {SC_target (B)-SC_ave (B)} x SPratio (5c)

(5a)〜(5c)式の右辺第1項は、高輝度画素の平均輝度値CB_ave(Y)と、高輝度画素の各色成分の平均画素値CB_ave(R),(G),(B)との差分である。これは、高輝度画素の色が無彩色からずれている場合に、画像全体の色を無彩色に近付ける作用を有している。(5a)〜(5c)式の右辺第2項は、肌色の目標画素値SC_target(R),(G),(B)と肌色画素の平均画素値SC_ave(R),(G),(B)との差分に、肌色画素割合SPratioを乗じたものである。この第2項は、肌色近傍の色を有する画素の平均的な色が肌色の目標値からずれている場合に、肌色の目標値に近付ける作用を有している。従って、(5a)〜(5c)式で与えら得る補正値ΔC(R),(G),(B)を用いて処理対象画像の全体にカラーバランス調整を行えば、肌色画素を肌色の目標色に近付けながら処理対象全体のカラーバランスを実現することができる。   The first term on the right side of the equations (5a) to (5c) includes the average luminance value CB_ave (Y) of the high luminance pixel and the average pixel value CB_ave (R), (G), (B) of each color component of the high luminance pixel. And the difference. This has the effect of bringing the color of the entire image closer to the achromatic color when the color of the high luminance pixel is shifted from the achromatic color. The second term on the right side of the equations (5a) to (5c) is the skin color target pixel values SC_target (R), (G), (B) and the skin pixel average pixel values SC_ave (R), (G), (B ) Multiplied by the skin color pixel ratio SPratio. This second term has the effect of bringing the target color value closer to the skin color target value when the average color of the pixels having the skin color vicinity deviates from the skin color target value. Therefore, if the color balance adjustment is performed on the entire image to be processed using the correction values ΔC (R), (G), and (B) that can be given by the equations (5a) to (5c), the skin color pixel is set to the skin color target. The color balance of the entire processing target can be realized while approaching the color.

一方、ステップS2において、平均色相値CB_ave(H)が肌色域に含まれていると判断された場合には、カラーバランス補正値算出部226は、肌色目標値SC_target(R),(G),(B)を利用しないカラーバランス補正値を算出する第2の演算モードで演算を実行する(ステップS4)。具体的には、上記(4a)〜(4c)式の第1の係数k1を予め定められたゼロでない正の数に設定し、第2の係数k2をゼロに設定する。例えば、係数k1を1.0に設定し、係数k2をゼロに設定すると、上記(4a)〜(4c)式は以下の(6a)〜(6c)式に書き換えられる。   On the other hand, when it is determined in step S2 that the average hue value CB_ave (H) is included in the skin color gamut, the color balance correction value calculation unit 226 determines the skin color target values SC_target (R), (G), The calculation is executed in the second calculation mode in which the color balance correction value that does not use (B) is calculated (step S4). Specifically, the first coefficient k1 of the above equations (4a) to (4c) is set to a predetermined positive non-zero number, and the second coefficient k2 is set to zero. For example, when the coefficient k1 is set to 1.0 and the coefficient k2 is set to zero, the above equations (4a) to (4c) are rewritten as the following equations (6a) to (6c).

ΔC(R)= {CB_ave(Y) - CB_ave(R)} …(6a)
ΔC(G)= {CB_ave(Y) - CB_ave(G)} …(6b)
ΔC(B)= {CB_ave(Y) - CB_ave(B)} …(6c)
ΔC (R) = {CB_ave (Y) −CB_ave (R)} (6a)
ΔC (G) = {CB_ave (Y) −CB_ave (G)} (6b)
ΔC (B) = {CB_ave (Y) −CB_ave (B)} (6c)

上述したように、この右辺の項は、高輝度画素の色が無彩色からずれている場合に、画像全体の色を無彩色に近付ける作用を有しているので、画像全体に対して適切なカラーバランスを実現することができる。なお、高輝度画素の平均色相値CB_ave(H)が肌色域に含まれていると判断された場合に(4a)〜(4c)式の右辺第2項の係数k2をゼロとしているのは、右辺第2項があるために、補正値が過度に大きな値となることを防止するためである。   As described above, the term on the right side has an effect of bringing the color of the entire image closer to the achromatic color when the color of the high-luminance pixel is shifted from the achromatic color. Color balance can be realized. When it is determined that the average hue value CB_ave (H) of the high luminance pixel is included in the skin color gamut, the coefficient k2 of the second term on the right side of the equations (4a) to (4c) is set to zero. This is to prevent the correction value from becoming an excessively large value due to the second term on the right side.

但し、高輝度画素の平均色相値CB_ave(H)が肌色域に含まれているか否かに拘わらず、(4a)〜(4c)式または(5a)〜(5c)式によってカラーバランス補正値ΔC(R),(G),(B)を算出するようにしてもよい。このとき、右辺第1項の係数k1はゼロに設定してもよい。   However, regardless of whether or not the average hue value CB_ave (H) of the high luminance pixel is included in the skin color gamut, the color balance correction value ΔC according to the equations (4a) to (4c) or (5a) to (5c). (R), (G), and (B) may be calculated. At this time, the coefficient k1 of the first term on the right side may be set to zero.

カラーバランス補正値ΔC(R),(G),(B)が算出されると、図6のステップS5において、カラーバランス調整実行部228がカラーバランス調整を実行し、調整済み画像データDcr(図3)を生成する。図7は、補正値ΔC(R),(G),(B)を用いて実行されるカラーバランス調整の内容を示すグラフである。カラーバランス調整は、処理対象画像データDorgのRGBの各色成分に関して階調補正(トーンカーブ補正)を実行する処理である。破線は無変換の特性を示している。上述した手順で算出された補正値ΔC(R),(G),(B)は、入力基準値Drefにおける出力値を無変換特性からシフトさせるずらし量に相当する。入力基準値Drefとしては、例えば、上述した高輝度画素の平均輝度値CB_ave(Y)の値を用いることができ、あるいは、所定の一定値(例えば192)を用いることもできる。図7の例では、RGBの各色成分に対して入力基準値Drefに対する補正値ΔC(R),ΔC(G),ΔC(B)を一つずつ指定することによって、各色成分のトーンカーブの形状が決定される。但し、これ以外の設定方法を採用してもよい。   When the color balance correction values ΔC (R), (G), and (B) are calculated, the color balance adjustment execution unit 228 executes the color balance adjustment in step S5 of FIG. 6, and the adjusted image data Dcr (FIG. 3) is generated. FIG. 7 is a graph showing the contents of color balance adjustment executed using the correction values ΔC (R), (G), and (B). The color balance adjustment is a process for executing gradation correction (tone curve correction) for each of the RGB color components of the processing target image data Dorg. The broken line indicates the non-conversion characteristic. The correction values ΔC (R), (G), and (B) calculated by the above-described procedure correspond to a shift amount for shifting the output value at the input reference value Dref from the non-conversion characteristics. As the input reference value Dref, for example, the above-described average luminance value CB_ave (Y) of the high luminance pixels can be used, or a predetermined constant value (for example, 192) can be used. In the example of FIG. 7, the tone curve shape of each color component is specified by specifying correction values ΔC (R), ΔC (G), ΔC (B) for the input reference value Dref one by one for each color component of RGB. Is determined. However, other setting methods may be adopted.

上述したように、第1実施例によれば、肌色目標値を利用して処理対象画像のカラーバランス補正値を決定するので、もともと望ましい肌色であった画素の色をカラーバランス調整によって過度に変えてしまう現象を緩和することができる。   As described above, according to the first embodiment, since the color balance correction value of the processing target image is determined using the skin color target value, the color of the pixel that was originally the desired skin color is excessively changed by the color balance adjustment. Can be mitigated.

B.第2実施例:
図8は、第2実施例におけるカラーバランス調整の処理手順を示すフローチャートである。図6に示した第2実施例の処理手順との違いは、ステップS2が2つのステップS11,S12に置き換えられている点だけであり、他の構成や動作は第1実施例と同じである。
B. Second embodiment:
FIG. 8 is a flowchart illustrating a processing procedure of color balance adjustment in the second embodiment. The only difference from the processing procedure of the second embodiment shown in FIG. 6 is that step S2 is replaced by two steps S11 and S12, and other configurations and operations are the same as those of the first embodiment. .

ステップS11では、カラーバランス補正値算出部226が、画像データファイルMF(図2)から撮影シーンタイプを取得する。ステップS12では、撮影シーンタイプが「人物」を表しているか否かを判断し、「人物」であればステップS3において肌色目標値を利用したカラーバランス補正値を算出する。一方、撮影シーンタイプが「人物」でなければ、ステップS4において肌色目標値を利用せずにカラーバランス補正値を算出する。   In step S11, the color balance correction value calculation unit 226 acquires the shooting scene type from the image data file MF (FIG. 2). In step S12, it is determined whether or not the shooting scene type represents “person”. If it is “person”, a color balance correction value using the skin color target value is calculated in step S3. On the other hand, if the shooting scene type is not “person”, the color balance correction value is calculated in step S4 without using the skin color target value.

撮影シーンタイプは、デジタルカメラ100で撮影するときに操作者によって設定されたものである。撮影シーンタイプが「人物」のものは、肌色を重視していると考えられるので、ステップS3において肌色目標値を利用したカラーバランス調整値を求めることが好ましい。なお、撮影シーンが人物のものであるか否かは、撮影シーンタイプ以外の情報から判定するようにしてもよい。すなわち、画像の撮影シーンのタイプを表す何らかの情報(これを「撮影シーンタイプ情報」と呼ぶ)から、撮影シーンが「人物」であるか否かを判定するようにしてもよい。   The shooting scene type is set by the operator when shooting with the digital camera 100. When the shooting scene type is “person”, it is considered that the skin color is regarded as important. Therefore, it is preferable to obtain the color balance adjustment value using the skin color target value in step S3. Note that whether or not the shooting scene is of a person may be determined from information other than the shooting scene type. That is, it may be determined whether or not the shooting scene is “person” from some information indicating the type of shooting scene of the image (this is called “shooting scene type information”).

C.変形例:
なお、この発明は上記の実施例や実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様において実施することが可能であり、例えば次のような変形も可能である。
C. Variation:
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:
上述した各種の式の代わりに、特定色画素割合と特定色画素の平均画素値とに基づいてカラーバランス補正値を算出する種々の形式を採用することが可能である。例えば、(4a)〜(4c)式の右辺第2項は、肌色の目標画素値SC_target(R),(G),(B)と肌色画素の平均画素値SC_ave(R),(G),(B)との差分に、肌色画素割合SPratioを乗じた形式を有していたが、この代わりに、これらの値を2乗した値や平方根などを含む形式を用いてもよい。但し、カラーバランス補正値は、(4a)〜(4c)式の右辺第2項のように、肌色の目標画素値SC_target(R),(G),(B)と肌色画素の平均画素値SC_ave(R),(G),(B)との差分が大きいほど大きく、また、肌色画素割合SPratioが大きいほど大きくなる成分を有していることが好ましい。
なお、上記各実施例ではカラーバランス補正値を求める際に特定色画素割合を利用していたが、特定色画素割合を利用せずにカラーバランス補正値を求めるようにしても良い。例えば、特定色画素の平均画素値に基づいてカラーバランス補正値を求めるようにしても良い。また、特定色画素の平均画素値と高輝度画素の平均画素値とに基づいてカラーバランス補正値を求めるようにしても良い。
C1. Modification 1:
Instead of the various formulas described above, various forms of calculating the color balance correction value based on the specific color pixel ratio and the average pixel value of the specific color pixel can be employed. For example, the second term on the right side of the equations (4a) to (4c) represents the skin color target pixel values SC_target (R), (G), (B) and the skin color pixel average pixel values SC_ave (R), (G), Although the difference from (B) was multiplied by the skin color pixel ratio SPratio, a format including a squared value or a square root of these values may be used instead. However, the color balance correction value is the skin color target pixel value SC_target (R), (G), (B) and the skin pixel average pixel value SC_ave, as in the second term on the right side of equations (4a) to (4c). It is preferable to have a component that increases as the difference from (R), (G), and (B) increases, and increases as the skin color pixel ratio SPratio increases.
In each of the above embodiments, the specific color pixel ratio is used when obtaining the color balance correction value. However, the color balance correction value may be obtained without using the specific color pixel ratio. For example, the color balance correction value may be obtained based on the average pixel value of the specific color pixel. Further, the color balance correction value may be obtained based on the average pixel value of the specific color pixel and the average pixel value of the high luminance pixel.

C2.変形例2:
上述した各実施例では、画質調整処理としてカラーバランス調整のみを行っていたが、これに加えて他の種類の画質調整処理を実行してもよい。例えば、記憶色処理や、鮮鋭度強調処理などを行ってもよい。なお、記憶色処理は、記憶色(特定の有彩色)の近傍の色を有する画素のみを対象として、それらの画素の色を目標色に近づける処理である。
C2. Modification 2:
In each of the above-described embodiments, only the color balance adjustment is performed as the image quality adjustment processing. However, in addition to this, other types of image quality adjustment processing may be executed. For example, memory color processing or sharpness enhancement processing may be performed. Note that the memory color process is a process that targets only pixels having colors in the vicinity of the memory color (specific chromatic color) and brings the colors of those pixels close to the target color.

産業上の利用可能性:
この発明は、画像のカラーバランス調整を行うコンピュータや、カメラ、画像表示装置などに適用可能である。
Industrial applicability:
The present invention can be applied to a computer, a camera, an image display device, and the like that perform image color balance adjustment.

本発明の一実施例としての画像処理システムの構成を示す説明図である。It is explanatory drawing which shows the structure of the image processing system as one Example of this invention. 画像データファイルMFの構成を示す説明図である。It is explanatory drawing which shows the structure of the image data file MF. カラーバランス調整部212の構成を示すブロック図である。3 is a block diagram illustrating a configuration of a color balance adjustment unit 212. FIG. 処理対象画像TMGと種々のカラーバランス調整パラメータとを示す説明図である。It is explanatory drawing which shows the process target image TMG and various color balance adjustment parameters. 高輝度範囲HLRの一例を示す説明図である。It is explanatory drawing which shows an example of the high-intensity range HLR. 第1実施例におけるカラーバランス調整の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the color balance adjustment in 1st Example. カラーバランス補正値ΔC(R),(G),(B)を用いて実行されるカラーバランス調整の内容を示すグラフである。It is a graph which shows the content of the color balance adjustment performed using color balance correction value (DELTA) C (R), (G), (B). 第2実施例におけるカラーバランス調整の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the color balance adjustment in 2nd Example.

符号の説明Explanation of symbols

100…デジタルカメラ
200…コンピュータ
210…プリンタドライバ
212…カラーバランス調整部
214…色変換部
216…ハーフトーン処理部
218…出力処理部
220…高輝度画素平均画素値算出部
222…肌色画素割合算出部
224…肌色画素平均画素値算出部
226…カラーバランス補正値算出部
228…カラーバランス調整実行部
300…プリンタ
DESCRIPTION OF SYMBOLS 100 ... Digital camera 200 ... Computer 210 ... Printer driver 212 ... Color balance adjustment part 214 ... Color conversion part 216 ... Halftone processing part 218 ... Output processing part 220 ... High-intensity pixel average pixel value calculation part 222 ... Skin color pixel ratio calculation part 224 ... Skin color pixel average pixel value calculation unit 226 ... Color balance correction value calculation unit 228 ... Color balance adjustment execution unit 300 ... Printer

Claims (5)

画像のカラーバランスを調整する画像処理装置であって、
前記画像の全画素の中で、肌色画素の画素値の平均値を算出する肌色画素平均値算出部と、
前記画像の全画素の中で、低彩度かつ高輝度である所定の範囲の色を有する複数の高輝度画素画素値の平均値を算出する高輝度画素平均画素算出部と、
前記カラーバランス調整に用いるカラーバランス補正値を算出するカラーバランス補正値算出部と、
前記算出したカラーバランス補正値を用いて前記画像に対して前記カラーバランス調整を実行するカラーバランス調整実行部と、
を備え、
前記画像を表すデータファイルは、前記画像の撮影シーンを表す撮影シーン情報を含んでおり、
前記カラーバランス調整実行部は、
(i)前記撮影シーン情報が人物を表す場合には、予め決定された肌色目標画素値と前記肌色画素の平均値と前記高輝度画素値の平均値とに基づいて算出されたカラーバランス補正値を用いて前記カラーバランス調整を実行し、
(ii)前記撮影シーン情報が人物以外のシーンを表す場合には、前記予め決定された肌色目標画素値と前記肌色画素の平均値とを利用せずに前記複数の高輝度画素平均画素値に基づいて算出されたカラーバランス補正値を用いて前記カラーバランス調整を実行する、
画像処理装置。
An image processing apparatus for adjusting the color balance of an image,
Among all the pixels of the image, a skin color pixel average value calculation unit that calculates an average value of pixel values of skin color pixels;
A high-brightness pixel average pixel calculation unit that calculates an average value of pixel values of a plurality of high-brightness pixels having a predetermined range of colors with low saturation and high luminance among all the pixels of the image;
A color balance correction value calculation unit for calculating a color balance correction values used for the color balance adjustment,
And color balance adjustment execution section for executing the color balance adjustment for the image using a color balance correction value the calculated,
With
The data file representing the image includes shooting scene information representing a shooting scene of the image,
The color balance adjustment execution unit
(I) When the shooting scene information represents a person, a color balance correction value calculated based on a predetermined skin color target pixel value, an average value of the skin color pixels, and an average value of the high luminance pixel values To perform the color balance adjustment using
(Ii) When the shooting scene information represents a scene other than a person, the average pixel value of the plurality of high-luminance pixels without using the predetermined skin color target pixel value and the average value of the skin color pixels The color balance adjustment is performed using the color balance correction value calculated based on
Image processing device.
請求項1記載の画像処理装置であって、
前記予め決定された肌色目標画素値と前記肌色画素の平均画素値との差分が大きいと前記撮影シーン情報が人物を表す場合のカラーバランス補正値は大き画像処理装置。
The image processing apparatus according to claim 1,
Color balance correction value is an image processing apparatus has a size when it represents the advance the photographic scene information and the difference is larger of the determined skin color target pixel value and the average pixel value of the skin color pixel is a person.
請求項1又は請求項2に記載の画像処理装置であって、
前記画像処理装置は、さらに、
前記画像の全画素に対する前記肌色画素の割合である肌色画素割合を算出する肌色画素割合算出部を備え、
前記カラーバランス調整部は、前記撮影シーン情報が人物を表す場合には、前記肌色画素割合と前記肌色画素の平均値と前記高輝度画素値の平均値とに基づいて算出されたカラーバランス補正値を用いて前記カラーバランス調整を実行する画像処理装置。
The image processing apparatus according to claim 1 or 2,
The image processing apparatus further includes:
A skin color pixel ratio calculating unit that calculates a skin color pixel ratio that is a ratio of the skin color pixels to all pixels of the image;
When the shooting scene information represents a person , the color balance adjustment unit calculates a color balance correction value calculated based on the skin color pixel ratio, the average value of the skin color pixels, and the average value of the high luminance pixel values. An image processing apparatus that performs the color balance adjustment using a computer.
請求項3記載の画像処理装置であって、
前記肌色画素割合が大きいと、前記カラーバランス補正値は大き画像処理装置。
The image processing apparatus according to claim 3,
When the skin color pixel ratio is large, the color balance correction value is an image processing apparatus has a size.
画像のカラーバランスを調整する画像処理方法であって、
(a)前記画像の全画素の中で、肌色画素の画素値の平均値を算出する工程と、
(b)前記画像の全画素の中で、低彩度かつ高輝度である所定の範囲の色を有する複数の高輝度画素画素値の平均値を算出する工程と、
(c)前記カラーバランス調整に用いるカラーバランス補正値を算出する工程と、
(d)前記算出したカラーバランス補正値を用いて前記画像に対して前記カラーバランス調整を実行する工程と、
を備え、
前記画像を表すデータファイルは、前記画像の撮影シーンを表す撮影シーン情報を含んでおり、
前記工程(d)は、
(i)前記撮影シーン情報が人物を表す場合には、予め決定された肌色目標画素値と前記肌色画素の平均値と前記高輝度画素値の平均値とに基づいて算出されたカラーバランス補正値を用いて前記カラーバランス調整を実行し、
(ii)前記撮影シーン情報が人物以外のシーンを表す場合には、前記予め決定された肌色目標画素値と前記肌色画素の平均値とを利用せずに前記複数の高輝度画素平均画素値に基づいて算出されたカラーバランス補正値を用いて前記カラーバランス調整を実行する工程を含む、
画像処理方法。
An image processing method for adjusting the color balance of an image,
(A) calculating the average value of the skin color pixels among all the pixels of the image;
(B) calculating an average value of pixel values of a plurality of high luminance pixels having a predetermined range of colors having low saturation and high luminance among all the pixels of the image;
(C) calculating a color balance correction values used for the color balance adjustment,
A step of executing the color balance adjustment for the image and (d) using the color balance correction value the calculated,
With
The data file representing the image includes shooting scene information representing a shooting scene of the image,
The step (d)
(I) When the shooting scene information represents a person, a color balance correction value calculated based on a predetermined skin color target pixel value, an average value of the skin color pixels, and an average value of the high luminance pixel values To perform the color balance adjustment using
(Ii) When the shooting scene information represents a scene other than a person, the average pixel value of the plurality of high-luminance pixels without using the predetermined skin color target pixel value and the average value of the skin color pixels Performing the color balance adjustment using a color balance correction value calculated based on
Image processing method.
JP2007219183A 2003-05-01 2007-08-27 Color balance adjustment method and apparatus considering color reproduction of specific color Active JP4111248B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007219183A JP4111248B2 (en) 2003-05-01 2007-08-27 Color balance adjustment method and apparatus considering color reproduction of specific color

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003126140 2003-05-01
JP2007219183A JP4111248B2 (en) 2003-05-01 2007-08-27 Color balance adjustment method and apparatus considering color reproduction of specific color

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2005505957A Division JP4033212B2 (en) 2003-05-01 2004-04-30 Color balance adjustment considering color reproduction of specific colors

Publications (2)

Publication Number Publication Date
JP2007336596A JP2007336596A (en) 2007-12-27
JP4111248B2 true JP4111248B2 (en) 2008-07-02

Family

ID=38935536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007219183A Active JP4111248B2 (en) 2003-05-01 2007-08-27 Color balance adjustment method and apparatus considering color reproduction of specific color

Country Status (1)

Country Link
JP (1) JP4111248B2 (en)

Also Published As

Publication number Publication date
JP2007336596A (en) 2007-12-27

Similar Documents

Publication Publication Date Title
JP4033212B2 (en) Color balance adjustment considering color reproduction of specific colors
US8045222B2 (en) Image processing method, image processing apparatus, computer program product, and recording medium for image processing
US7620259B2 (en) History adding device for generating history-added image file, electronic camera, and image processing program for processing history-added image file
JP4687673B2 (en) Monotone processing of color image
JP2000152018A (en) Method and device for picture processing and recording medium
US20200007717A1 (en) Image processing apparatus, image processing method, and non-transitory computer-readable storage medium
US7706628B2 (en) Image processing apparatus for image tone transformation based on input signals, image processing program, electronic camera, and image processing method for the same
US8068240B2 (en) Image processing using undeveloped image data
JP4001079B2 (en) Monotone processing of color image
JP4315176B2 (en) Printing apparatus, printing method, and printing program
WO2005027532A1 (en) Image processing device and image processing method
JP4111248B2 (en) Color balance adjustment method and apparatus considering color reproduction of specific color
JP2001358957A (en) Image processing method and image processing unit and recording medium
JP2004080737A (en) Imaging device, imaging method, computer program and computer readable recording medium
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
JP2000092337A (en) Image processing method, its device and recording medium
JP2007195015A (en) Color conversion apparatus, method, and program
JP4496817B2 (en) Image processing via network
JP4099366B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, and image processing method
JP4176656B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium recording the program
JP2008271131A (en) Method and device for image processing, and image forming apparatus
JP4101741B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2005094565A (en) Image processor and image forming apparatus
JP2004178428A (en) Image processing method
JP2005286548A (en) Color balance adjustment for suppressing effect of part representing chromatic color imaging object

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071225

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080116

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080222

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20080222

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: 20080318

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080331

R150 Certificate of patent or registration of utility model

Ref document number: 4111248

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110418

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110418

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120418

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130418

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130418

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140418

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250