[go: up one dir, main page]

JP4900039B2 - Color adjustment apparatus and program - Google Patents

Color adjustment apparatus and program Download PDF

Info

Publication number
JP4900039B2
JP4900039B2 JP2007137887A JP2007137887A JP4900039B2 JP 4900039 B2 JP4900039 B2 JP 4900039B2 JP 2007137887 A JP2007137887 A JP 2007137887A JP 2007137887 A JP2007137887 A JP 2007137887A JP 4900039 B2 JP4900039 B2 JP 4900039B2
Authority
JP
Japan
Prior art keywords
color
partial
image
color point
color space
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
JP2007137887A
Other languages
Japanese (ja)
Other versions
JP2008294731A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2007137887A priority Critical patent/JP4900039B2/en
Publication of JP2008294731A publication Critical patent/JP2008294731A/en
Application granted granted Critical
Publication of JP4900039B2 publication Critical patent/JP4900039B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

本発明は、色調整装置、色調整方法およびプログラムに関する。   The present invention relates to a color adjustment device, a color adjustment method, and a program.

カラー画像を調整する機能として、色調整機能がある。色調整機能には、カラー画像全体のカラーバランスや明度等を補正する全域色調整と、調整対象となる特定の領域や特定の色を補正する部分的色調整とがある。このうち、後者の部分的色調整の典型的なものとしては、特定の対象の色を、その対象の色のイメージとして多くの人が記憶している色(以下、「記憶色」という)に近づける調整がある。
例えば特許文献1には、画像全体の明暗バランスの調整とは独立して、画像の細部の階調の立ち方を調整する階調変換技術が記載されている。
There is a color adjustment function as a function for adjusting a color image. The color adjustment function includes global color adjustment that corrects the color balance, brightness, and the like of the entire color image, and partial color adjustment that corrects a specific region to be adjusted and a specific color. Of these, a typical example of the latter partial color adjustment is a color that is stored by many people as an image of the target color (hereinafter referred to as “memory color”). There is an adjustment to bring it closer.
For example, Patent Document 1 describes a gradation conversion technique that adjusts the appearance of gradation in the details of an image independently of the adjustment of the light / dark balance of the entire image.

特開2006−114006号公報JP 2006-114006 A

ここで一般に、部分的色調整では、例えばあるカラー画像において適した設定が、それ以外の他の画像では、例えばその画像の調整領域以外の領域の色に影響を与えるために、その画像にとって適した設定とはならない場合がある。
本発明は、カラー画像にそれぞれ適した部分的色調整を行うことを目的とする。
Here, in general, for partial color adjustment, for example, a setting suitable for a certain color image is suitable for the other image, for example, because it affects the color of an area other than the adjustment area of the image. The setting may not be correct.
An object of the present invention is to perform partial color adjustment suitable for each color image.

請求項1に係る発明は、カラー画像における調整対象となる色点を含む所定領域内の色点を、所定のパラメータに基づいて調整目標となる色点を含む所定領域内の色点に向けて移動処理する移動処理部と、前記移動処理部にて前記色点が移動された前記カラー画像と、当該色点が移動される前の元の当該カラー画像とを比較し、当該カラー画像上の1または複数の画素単位での前記色点の移動量を算出する移動量算出部とを備え、前記移動処理部は、前記移動量算出部にて算出された前記1または複数の画素単位での前記色点の移動量に関する前記カラー画像全域または一部領域に亘る積分値に基づき、前記パラメータを変更することを特徴とする色調整装置である。 According to the first aspect of the present invention, the color point in the predetermined area including the color point to be adjusted in the color image is directed to the color point in the predetermined area including the color point to be adjusted based on the predetermined parameter. A movement processing unit that performs a movement process, the color image in which the color point is moved by the movement processing unit, and the original color image before the color point is moved are compared, and the color image A movement amount calculation unit that calculates a movement amount of the color point in one or a plurality of pixel units, and the movement processing unit includes the one or more pixel units calculated in the movement amount calculation unit. The color adjustment device is characterized in that the parameter is changed based on an integral value over the entire color image or a partial region with respect to the movement amount of the color point .

請求項2に係る発明は、請求項1に係る色調整装置にて、前記移動処理部は、前記パラメータが所定の色空間にて前記色点の移動処理を行う領域である部分色空間の大きさを設定することを特徴とする。
請求項3に係る発明は、請求項2に係る色調整装置にて、前記移動処理部は、前記パラメータにて設定される前記部分色空間内での前記色点の移動量に関し、前記調整対象となる色点から前記調整目標となる色点への当該移動量を最大とし、当該部分色空間の外郭に近づくほど当該色点の移動量を0に近づけることを特徴とする。
According to a second aspect of the present invention, in the color adjustment apparatus according to the first aspect, the movement processing unit is a size of a partial color space in which the parameter is an area where the color point is moved in a predetermined color space. It is characterized by setting.
According to a third aspect of the present invention, in the color adjustment apparatus according to the second aspect, the movement processing unit relates to the movement amount of the color point in the partial color space set by the parameter, and the adjustment target. The amount of movement from the color point to the color point to be adjusted is maximized, and the amount of movement of the color point approaches 0 as it approaches the outline of the partial color space.

請求項4に係る発明は、前記移動処理部は、前記カラー画像上での前記画素の位置に応じて重み付けされた前記積分値に基づき、前記パラメータを変更することを特徴とする請求項1記載の色調整装置である。
請求項5に係る発明は、前記移動処理部は、前記積分値が所定値に近づくように前記パラメータを変更することを特徴とする請求項4記載の色調整装置である。
請求項6に係る発明は、前記移動処理部および前記移動量算出部は、それぞれ複数回の前記移動処理と前記移動量の算出とを繰り返すことを特徴とする請求項1記載の色調整装置である。
The invention according to claim 4 is characterized in that the movement processing unit changes the parameter based on the integral value weighted according to the position of the pixel on the color image. The color adjustment device.
The invention according to claim 5 is the color adjustment apparatus according to claim 4 , wherein the movement processing unit changes the parameter so that the integral value approaches a predetermined value.
The invention according to claim 6 is the color adjustment apparatus according to claim 1 , wherein the movement processing unit and the movement amount calculation unit respectively repeat the movement processing and the calculation of the movement amount a plurality of times. is there.

請求項7に係る発明は、前記移動処理部および前記移動量算出部は、前記カラー画像を縮小処理し、縮小処理された当該カラー画像に対する前記複数回の前記移動処理と前記移動量の算出とを繰り返すことを特徴とする請求項6記載の色調整装置である。 According to a seventh aspect of the invention, the movement processing unit and the movement amount calculation unit reduce the color image, perform the plurality of movement processes on the reduced color image, and calculate the movement amount. 7. The color adjusting apparatus according to claim 6, wherein the color adjusting device is repeated.

請求項に係る発明は、コンピュータに、カラー画像における調整対象となる色点を含む所定領域内の色点を、所定のパラメータに基づいて調整目標となる色点を含む所定領域内の色点に向けて移動させる機能と、前記色点が移動された前記カラー画像と、当該色点が移動される前の元の当該カラー画像とを比較し、当該カラー画像上の1または複数の画素単位での前記色点の移動量を算出する機能と、算出された前記1または複数の画素単位での前記色点の移動量に関する前記カラー画像全域または一部領域に亘る積分値に基づき、前記パラメータを変更する機能とを実現させることを特徴とするプログラムである。 According to an eighth aspect of the present invention, a color point in a predetermined area including a color point to be adjusted in a color image is stored in a computer, and a color point in a predetermined area including a color point that is an adjustment target based on a predetermined parameter. Comparing the color image in which the color point is moved with the original color image before the color point is moved, and one or a plurality of pixel units on the color image And the parameter based on an integrated value over the entire color image or a partial area with respect to the calculated movement amount of the color point in one or a plurality of pixel units. The program is characterized by realizing a function of changing the.

請求項に係る発明は、前記調整対象となる色点を含む所定領域内の色点を前記調整目標となる色点を含む所定領域内の色点に向けて移動させるに際して、所定の色空間にて当該色点の移動を行う領域である部分色空間の大きさを設定する前記パラメータを用いることを特徴とする請求項8記載のプログラムである。 In the invention according to claim 9 , when the color point in the predetermined area including the color point to be adjusted is moved toward the color point in the predetermined area including the color point to be adjusted, a predetermined color space is used. 9. The program according to claim 8, wherein the parameter for setting a size of a partial color space which is an area where the color point is moved is used.

なお、このプログラムは、例えば、ハードディスクやDVD−ROM等の予約領域に格納されたプログラムを、RAMにロードして実行される場合がある。また、予めROMに格納された状態にて、CPUで実行される形態がある。さらに、EEPROM等の書き換え可能なROMを備えている場合には、装置がアッセンブリされた後に、プログラムだけが提供されてROMにインストールされる場合がある。このプログラムの提供に際しては、インターネット等のネットワークを介して装置にプログラムが伝送され、装置の有するROMにインストールされる形態も考えられる。   This program may be executed by loading a program stored in a reserved area such as a hard disk or a DVD-ROM into the RAM, for example. In addition, there is a form that is executed by the CPU in a state stored in the ROM in advance. Further, when a rewritable ROM such as an EEPROM is provided, only a program may be provided and installed in the ROM after the apparatus is assembled. In providing this program, it is also conceivable that the program is transmitted to the apparatus via a network such as the Internet and installed in the ROM of the apparatus.

本発明の請求項1によれば、本発明を採用しない場合に比べて、カラー画像にそれぞれ適した部分的色調整を行うことができる。
本発明の請求項2によれば、本発明を採用しない場合に比べて、カラー画像上における色の調整目標とする領域以外の領域において、色調整を行うことによる影響を低減することができる。
本発明の請求項3によれば、本発明を採用しない場合に比べて、色の調整目標とする領域の境界での色の連続性を維持し、カラー画像上で色が不自然に変化することを抑制できる。
According to the first aspect of the present invention, partial color adjustment suitable for each color image can be performed as compared with the case where the present invention is not adopted.
According to the second aspect of the present invention, compared to the case where the present invention is not adopted, it is possible to reduce the influence of color adjustment in a region other than the color adjustment target region on the color image.
According to the third aspect of the present invention, compared to the case where the present invention is not adopted, the color continuity is maintained at the boundary of the region targeted for color adjustment, and the color changes unnaturally on the color image. This can be suppressed.

本発明の請求項によれば、カラー画像上における色の調整目標とする領域以外の領域において、色調整を行うことによる影響を把握できる。
本発明の請求項によれば、カラー画像上における色の調整目標とする領域以外の領域において、色調整を行うことによる影響をカラー画像上での位置に応じて把握できる。
本発明の請求項によれば、本発明を採用しない場合に比べて、カラー画像上における色の調整目標とする領域以外の領域において、色調整を行うことによる影響を低減することができる。
According to the first aspect of the present invention, it is possible to grasp the influence of performing color adjustment in a region other than the color adjustment target region on the color image.
According to the fourth aspect of the present invention, it is possible to grasp the influence of performing the color adjustment in the region other than the color adjustment target region on the color image according to the position on the color image.
According to the fifth aspect of the present invention, compared to the case where the present invention is not adopted, it is possible to reduce the influence of performing color adjustment in a region other than the color adjustment target region on the color image.

本発明の請求項によれば、本発明を採用しない場合に比べて、カラー画像上における色の調整目標とする領域以外の領域において、色調整を行うことによる影響を高い精度で低減することができる。
本発明の請求項によれば、本発明を採用しない場合に比べて、色調整を行う際の調整処理時間を短縮できる。
According to the sixth aspect of the present invention, compared with the case where the present invention is not adopted, the influence of performing the color adjustment in the area other than the color adjustment target area on the color image can be reduced with high accuracy. Can do.
According to the seventh aspect of the present invention, it is possible to shorten the adjustment processing time when performing color adjustment, compared to the case where the present invention is not adopted.

本発明の請求項によれば、本発明を採用しない場合に比べて、カラー画像にそれぞれ適した部分的色調整を行うことができる。
本発明の請求項によれば、本発明を採用しない場合に比べて、カラー画像上における色の調整目標とする領域以外の領域において、色調整を行うことによる影響を低減することができる。
本発明の請求項によれば、カラー画像上における色の調整目標とする領域以外の領域において、色調整を行うことによる影響を把握できる。
According to the eighth aspect of the present invention, partial color adjustment suitable for each color image can be performed as compared with the case where the present invention is not adopted.
According to the ninth aspect of the present invention, as compared with the case where the present invention is not adopted, it is possible to reduce the influence of performing color adjustment in a region other than the color adjustment target region on the color image.
According to the eighth aspect of the present invention, it is possible to grasp the effect of performing color adjustment in a region other than the color adjustment target region on the color image.

以下、添付図面を参照して、本発明の実施の形態について詳細に説明する。
[実施の形態1]
図1は、本実施の形態が適用される色調整装置を備えた画像処理装置1の全体構成を示すブロック図である。図1に示す画像処理装置1は、画像データ入力部10、部分的色調整を行う色調整装置20、画像データ出力部30を備えている。また、本実施の形態の色調整装置20は、色空間変換部21、代表色算出部22、目標色算出部23、部分色空間設定部24、色調整部25、色差解析部26、色空間変換部27を備えている。
なお、色調整装置20では、図示しないCPUが色空間変換部21、代表色算出部22、目標色算出部23、部分色空間設定部24、色調整部25、色差解析部26、色空間変換部27の各機能を実現するプログラムを主記憶部(不図示)から色調整装置20内のRAM等に読み込んで各種処理を行う。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.
[Embodiment 1]
FIG. 1 is a block diagram illustrating an overall configuration of an image processing apparatus 1 including a color adjustment apparatus to which the exemplary embodiment is applied. The image processing apparatus 1 illustrated in FIG. 1 includes an image data input unit 10, a color adjustment device 20 that performs partial color adjustment, and an image data output unit 30. In addition, the color adjustment apparatus 20 according to the present embodiment includes a color space conversion unit 21, a representative color calculation unit 22, a target color calculation unit 23, a partial color space setting unit 24, a color adjustment unit 25, a color difference analysis unit 26, and a color space. A conversion unit 27 is provided.
In the color adjustment apparatus 20, a CPU (not shown) performs a color space conversion unit 21, a representative color calculation unit 22, a target color calculation unit 23, a partial color space setting unit 24, a color adjustment unit 25, a color difference analysis unit 26, and a color space conversion. A program for realizing each function of the unit 27 is read from a main storage unit (not shown) into a RAM or the like in the color adjustment apparatus 20 and various processes are performed.

画像データ入力部10は、例えば液晶ディスプレイ等の表示装置やスキャナ等の画像読取装置等からデバイスに依存する色空間(デバイス依存色空間)である例えばsRGB色空間の色信号で表された画像データを取得する。そして、取得した画像データを色調整装置20に送る。   The image data input unit 10 is, for example, image data represented by color signals in an sRGB color space, which is a device-dependent color space (device-dependent color space) from a display device such as a liquid crystal display or an image reading device such as a scanner. To get. Then, the acquired image data is sent to the color adjustment device 20.

色調整装置20では、色空間変換部21が画像データ入力部10からの画像データを取得する。そして、色空間変換部21は、取得した画像データについて、sRGB色空間の色信号をデバイスに依存しない色空間(デバイス非依存色空間)である例えばYCbCr色空間の色信号に変換する。変換されたYCbCr色空間の色信号は、代表色算出部22、色調整部25、および色差解析部26に送られる。
代表色算出部22は、画像データから調整対象となる色点(代表色)を抽出する処理を行う。例えば画像データが人物を被写体とする人物写真画像に基づくものである場合には、人物の肌色を調整対象の代表色として抽出する。
調整対象の代表色を抽出する処理としては、例えば特開2006−155595号公報に記載された方法を用いることができる。すなわち、カラー画像の画素の色を表す複数の色成分の中で、異なる色成分同士の比を表す値を色成分比として求める。そして、色成分比を軸とした空間である色成分比空間を構成し、色成分比空間を用いて対象となる領域の画素を抽出する。この方法等によれば、代表色を自動的に抽出できる。また、色調整ソフトウェアを用いて、代表色をユーザが手動で抽出してもよい。なお、調整対象の代表色を抽出する方法は、如何なる方法も用いることができ、上記の方法に限定されない。
そして代表色算出部22は、抽出した代表色の色座標に関する情報を部分色空間設定部24に送る。
In the color adjustment device 20, the color space conversion unit 21 acquires image data from the image data input unit 10. Then, the color space conversion unit 21 converts the color signal of the sRGB color space into the color signal of the YCbCr color space, which is a device-independent color space (device-independent color space), for the acquired image data. The converted color signal of the YCbCr color space is sent to the representative color calculation unit 22, the color adjustment unit 25, and the color difference analysis unit 26.
The representative color calculation unit 22 performs a process of extracting a color point (representative color) to be adjusted from the image data. For example, when the image data is based on a person photo image having a person as a subject, the person's skin color is extracted as a representative color to be adjusted.
As a process for extracting the representative color to be adjusted, for example, a method described in Japanese Patent Application Laid-Open No. 2006-155595 can be used. That is, a value representing a ratio between different color components among a plurality of color components representing the colors of the pixels of the color image is obtained as the color component ratio. Then, a color component ratio space that is a space with the color component ratio as an axis is formed, and pixels in a target region are extracted using the color component ratio space. According to this method or the like, the representative color can be automatically extracted. The representative color may be manually extracted by the user using color adjustment software. Note that any method can be used as a method for extracting the representative color to be adjusted, and the method is not limited to the above method.
Then, the representative color calculation unit 22 sends information regarding the color coordinates of the extracted representative color to the partial color space setting unit 24.

目標色算出部23は、調整の目標となる色点(目標色)を決定する処理を行う。
目標色を決定する処理としては、例えば特開2004−254303号公報に記載された方法を用いることができる。すなわち、カラー画像の中で、特定領域の代表となる色を表す代表色と、特定領域で目標とする色を表す目標色とから、その代表色と目標色との色空間上での距離である色調整距離を算出する。そして、その色調整距離を用いて代表色と目標色との間で色調整後の特定領域の色を表す最適目標色を算出する。また、色調整ソフトウェアを用いて、目標色をユーザが手動で設定してもよい。なお、目標色を決定する方法は、如何なる方法も用いることができ、上記の方法に限定されない。
そして目標色算出部23は、決定した目標色の色座標に関する情報を部分色空間設定部24に送る。
The target color calculation unit 23 performs processing for determining a color point (target color) to be an adjustment target.
As a process for determining the target color, for example, a method described in JP-A-2004-254303 can be used. That is, in the color image, the distance between the representative color representing the color that represents the specific area and the target color representing the target color in the specific area in the color space. A certain color adjustment distance is calculated. Then, using the color adjustment distance, the optimum target color representing the color of the specific area after color adjustment is calculated between the representative color and the target color. The target color may be manually set by the user using color adjustment software. Note that any method for determining the target color can be used, and the method is not limited to the above method.
Then, the target color calculation unit 23 sends information regarding the color coordinates of the determined target color to the partial color space setting unit 24.

部分色空間設定部24は、YCbCr色空間内において色調整を行う領域である部分色空間を設定する処理と、この部分色空間の大きさを調整する処理とを行う。具体的には、代表色算出部22にて抽出された代表色の色座標と、目標色算出部23にて決定された目標色の色座標とを包含するような部分色空間をYCbCr色空間に設定する。その後、色差解析部26にて算出された影響度E(後段参照)に基づき、設定された部分色空間の大きさを必要に応じて調整する。
まず本実施の形態の部分色空間設定部24において部分色空間を設定する際に使用する方法について説明し、後段で部分色空間の大きさの調整について述べる。
The partial color space setting unit 24 performs a process of setting a partial color space that is an area for color adjustment in the YCbCr color space and a process of adjusting the size of the partial color space. Specifically, a partial color space including the color coordinates of the representative color extracted by the representative color calculation unit 22 and the color coordinate of the target color determined by the target color calculation unit 23 is a YCbCr color space. Set to. Thereafter, the set size of the partial color space is adjusted as necessary based on the degree of influence E (see later stage) calculated by the color difference analysis unit 26.
First, a method used when setting a partial color space in the partial color space setting unit 24 of the present embodiment will be described, and adjustment of the size of the partial color space will be described later.

部分色空間設定部24では、例えば特開2004−112694号公報に記載された以下のような方法を用いて、YCbCr色空間に部分色空間を設定する。
図2は、YCbCr色空間に設定する部分色空間の一例を説明する図である。図2に示したように、部分色空間設定部24は、まず、代表色算出部22にて抽出された代表色の色座標P1を中心とする半径r1の球状の閉領域Q1と、目標色算出部23にて決定された目標色の色座標P2を中心とする半径r2の球状の閉領域Q2とを設定する。ここでの半径r1および半径r2は、部分色空間設定部24にて最初に部分色空間を設定する際に用いられる第1のパラメータ値として予め設定されている。なお、図2の例では、r1=r2=rとしているが、r1≠r2と設定してもよい。
さらに、色座標P1と色座標P2とを結ぶ直線と平行で、かつ、球状の閉領域Q1と閉領域Q2とに外接する円筒Q3(円筒Q3の長さは線分P1P2の長さに等しい)を設定する。
そして、円筒Q3の外表面と閉領域Q1および閉領域Q2の外表面とをそれぞれ外郭として、この外郭で囲まれるカプセル状の空間(図2中実線で示した領域の内部)を部分色空間CAP_1として設定する。
The partial color space setting unit 24 sets the partial color space in the YCbCr color space using, for example, the following method described in Japanese Patent Application Laid-Open No. 2004-112694.
FIG. 2 is a diagram illustrating an example of a partial color space set in the YCbCr color space. As shown in FIG. 2, the partial color space setting unit 24 first sets a spherical closed region Q1 having a radius r1 centered on the color coordinate P1 of the representative color extracted by the representative color calculation unit 22, and the target color. A spherical closed region Q2 having a radius r2 around the color coordinate P2 of the target color determined by the calculation unit 23 is set. The radius r1 and the radius r2 here are set in advance as first parameter values used when the partial color space setting unit 24 first sets the partial color space. In the example of FIG. 2, r1 = r2 = r is set, but r1 ≠ r2 may be set.
Further, a cylinder Q3 that is parallel to a straight line connecting the color coordinates P1 and the color coordinates P2 and circumscribes the spherical closed region Q1 and the closed region Q2 (the length of the cylinder Q3 is equal to the length of the line segment P1P2). Set.
Then, with the outer surface of the cylinder Q3 and the outer surfaces of the closed region Q1 and the closed region Q2 as outer shells, a capsule-shaped space surrounded by the outer shell (inside the region indicated by the solid line in FIG. 2) is a partial color space CAP_1. Set as.

また、部分色空間設定部24では、例えば特開2006−135628号公報に記載された方法を用いて、YCbCr色空間に部分色空間を設定してもよい。この方法では、人間の目における明度(Y)の変化と色度(CbCr)の変化とに対する敏感度が異なることに対応するため、色調整部25での色調整時に、色座標の明度(Y)成分の調整と色度(CbCr)成分の調整とで使用する変換関数が異なるものにより設定される。例えば、明度(Y)成分については、所定の階調関数(階調カーブ)が用いられ、色度(CbCr)成分については特開2004−112694号公報に記載の方法(後段の図4参照)が用いられる。この場合には、図3(YCbCr色空間に設定する部分色空間の他の例を説明する図)に示したように、図2の部分色空間CAP_1をCbCr平面に平行な面で切断した断面形状の上面H2と下面H1とを有する略円筒状体を外郭として、この略円筒状体の外郭で囲まれる空間(図3中実線で示した領域の内部)を部分色空間CAP_2として設定する。以下では、部分色空間CAP_1,CAP_2を単に「部分色空間CAP」とも称する。
そして、部分色空間設定部24では、設定した部分色空間CAPに関する情報を色調整部25に送る。
なお、部分色空間CAPを設定する方法は、如何なる方法も用いることができ、上記の方法に限定されない。
Further, the partial color space setting unit 24 may set a partial color space in the YCbCr color space using, for example, a method described in JP-A-2006-135628. In this method, since the sensitivity to changes in brightness (Y) and chromaticity (CbCr) in the human eye is different, the brightness of color coordinates (Y ) Component adjustment and chromaticity (CbCr) component adjustment are set by different conversion functions. For example, for a lightness (Y) component, a predetermined gradation function (gradation curve) is used, and for a chromaticity (CbCr) component, a method described in Japanese Patent Application Laid-Open No. 2004-112694 (see FIG. 4 at a later stage). Is used. In this case, as shown in FIG. 3 (a diagram illustrating another example of the partial color space set in the YCbCr color space), a cross section obtained by cutting the partial color space CAP_1 in FIG. 2 along a plane parallel to the CbCr plane. A substantially cylindrical body having an upper surface H2 and a lower surface H1 having a shape is set as an outline, and a space surrounded by the outline of the substantially cylindrical body (inside an area indicated by a solid line in FIG. 3) is set as a partial color space CAP_2. Hereinafter, the partial color spaces CAP_1 and CAP_2 are also simply referred to as “partial color space CAP”.
Then, the partial color space setting unit 24 sends information regarding the set partial color space CAP to the color adjustment unit 25.
Note that any method can be used as the method of setting the partial color space CAP, and the method is not limited to the above method.

色調整部25は、部分色空間設定部24にて設定された部分色空間CAP内において、色空間変換部21から取得した色信号を調整する処理を行う。具体的には、色空間変換部21から色信号を取得して、取得した色信号の中の部分色空間設定部24において設定された部分色空間CAP内の色信号(色座標)に関する移動処理、すなわち色座標の調整処理を行う。このように、部分色空間設定部24と色調整部25とにより、部分色空間CAP内において色点の移動処理を行う移動処理部が構成される。
図4は、一例として、図2に示した部分色空間CAP_1を用いる場合の色座標の移動処理を説明する図である。まず、部分色空間設定部24から取得した部分色空間CAPに関する情報に基づき、色空間変換部21から取得した色信号の中から部分色空間CAP内の色信号を抽出する。そして、色空間変換部21から取得した色座標を部分色空間CAP内において目標色である色座標P2の方向に一定の規則で移動させる移動処理を行う。ここで、色座標を色座標P2の方向に一定の規則で移動させる際に使用するベクトルを「移動ベクトル」と呼ぶ。特に、部分色空間CAP内の代表色の色座標P1を始点として、目標色の色座標P2を終点とする移動ベクトルを基準ベクトルとする。図4に示したように、代表色の色座標P1に関しては、基準ベクトルを移動ベクトルとして使用して目標色の色座標P2に移動させる。
The color adjustment unit 25 performs a process of adjusting the color signal acquired from the color space conversion unit 21 in the partial color space CAP set by the partial color space setting unit 24. Specifically, the color signal is acquired from the color space conversion unit 21, and the movement process related to the color signal (color coordinate) in the partial color space CAP set in the partial color space setting unit 24 in the acquired color signal. That is, color coordinate adjustment processing is performed. As described above, the partial color space setting unit 24 and the color adjustment unit 25 constitute a movement processing unit that performs a color point movement process in the partial color space CAP.
FIG. 4 is a diagram for explaining color coordinate movement processing when the partial color space CAP_1 shown in FIG. 2 is used as an example. First, based on the information about the partial color space CAP acquired from the partial color space setting unit 24, the color signal in the partial color space CAP is extracted from the color signals acquired from the color space conversion unit 21. Then, a movement process is performed in which the color coordinates acquired from the color space conversion unit 21 are moved according to a certain rule in the direction of the color coordinates P2 which is the target color in the partial color space CAP. Here, a vector used when moving the color coordinate in the direction of the color coordinate P2 according to a certain rule is referred to as a “movement vector”. In particular, a movement vector starting from the color coordinate P1 of the representative color in the partial color space CAP and ending at the color coordinate P2 of the target color is set as a reference vector. As shown in FIG. 4, regarding the color coordinate P1 of the representative color, the reference vector is moved to the color coordinate P2 of the target color using the reference vector as a movement vector.

また、この場合に、色座標を色座標P2の方向に移動させる際に使用する規則として、部分色空間CAP内の代表色である色座標P1よりも部分色空間CAPの外郭に近い領域に位置する色座標については、外郭に近いほど、移動量が小さな移動ベクトルを使用するという規則を用いる。そして、部分色空間CAPの外郭では、色座標は殆ど移動しないか、より好ましくは全く移動しない(移動量は“0”)ように移動ベクトルを設定する。
また、階調逆転や色の逆転が発生することを抑えるために、基準ベクトルと平行な同一の移動ベクトル上に位置する色座標点については、色座標の移動前と移動後とで移動ベクトル上での並びの順序を変えないように変換するという規則を同時に用いる。
In this case, as a rule used when moving the color coordinate in the direction of the color coordinate P2, the rule is used in a region closer to the outline of the partial color space CAP than the color coordinate P1, which is a representative color in the partial color space CAP. For the color coordinates to be used, a rule is used in which a movement vector having a smaller movement amount is used as it is closer to the outline. Then, in the outline of the partial color space CAP, the movement vector is set so that the color coordinate hardly moves or more preferably does not move at all (the movement amount is “0”).
In order to suppress the occurrence of tone reversal and color reversal, for color coordinate points located on the same movement vector parallel to the reference vector, the movement vector is moved before and after the color coordinates are moved. At the same time, the rule of conversion is used so as not to change the order of the arrangement.

次に、図5は、他の例として、図3に示した部分色空間CAP_2を用いる場合の色座標の移動処理を説明する図である。ここでの色座標の移動処理では、色度(CbCr)成分については、図4と同様の規則の移動ベクトル成分を用いる。一方、明度(Y)成分については、所定の階調関数(階調カーブ)に従う移動ベクトル成分を用いる。したがって、図5に示したように、色度(CbCr)平面では図4に示したものと同様の規則に従い、明度(Y)成分方向には所定の階調関数に従う移動ベクトルにより、色座標の移動処理が行われる。   Next, FIG. 5 is a diagram for explaining color coordinate movement processing when the partial color space CAP_2 shown in FIG. 3 is used as another example. In the movement processing of the color coordinates here, the movement vector component having the same rule as in FIG. 4 is used for the chromaticity (CbCr) component. On the other hand, for the lightness (Y) component, a movement vector component according to a predetermined gradation function (gradation curve) is used. Therefore, as shown in FIG. 5, the chromaticity (CbCr) plane follows the same rules as those shown in FIG. A move process is performed.

続いて、色差解析部26は、移動量算出部の一例であって、色調整部25にて調整処理された色信号と色空間変換部21から取得した原画像の色信号との色差を解析する処理を行う。具体的には、色調整部25にて調整処理された色信号と原画像の色信号との差分(色差:色空間での色点の移動量)を原画像上の1の画素毎に算出する。そして、算出した画素毎の色差をその画素での画素値とする色差画素値データを生成し、色差画素値データの積分値を算出する。さらに、色差画素値データの積分値に基づいて影響度Eを求め、部分色空間設定部24にて上記した部分色空間CAPの大きさの調整を行う際の判断要素とする。ここでの影響度Eは、部分色空間設定部24にて所定の大きさの部分色空間CAPを設定したことによる調整領域以外の領域への影響の大きさを示す尺度である。この影響度Eの大きさにより、色調整部25にて行われた調整処理が原画像に与えた影響が把握される。
なお、ここでは色差を原画像上の1の画素毎に算出したが、複数の画素を一単位として色差を算出してもよい。その際には、一単位となる複数の画素における例えば色差の平均をその複数の画素での色差をして算出する方法を用いることができる。
Subsequently, the color difference analysis unit 26 is an example of a movement amount calculation unit, and analyzes the color difference between the color signal adjusted by the color adjustment unit 25 and the color signal of the original image acquired from the color space conversion unit 21. Perform the process. Specifically, the difference (color difference: movement amount of the color point in the color space) between the color signal adjusted by the color adjustment unit 25 and the color signal of the original image is calculated for each pixel on the original image. To do. And the color difference pixel value data which makes the calculated color difference for every pixel the pixel value in the pixel are produced | generated, and the integral value of color difference pixel value data is calculated. Further, the influence degree E is obtained based on the integrated value of the color difference pixel value data, and is used as a determination element when the partial color space setting unit 24 adjusts the size of the partial color space CAP. The influence degree E here is a scale indicating the magnitude of the influence on the area other than the adjustment area due to the setting of the partial color space CAP having a predetermined size by the partial color space setting unit 24. The influence of the adjustment process performed by the color adjustment unit 25 on the original image is grasped based on the magnitude of the influence degree E.
Although the color difference is calculated for each pixel on the original image here, the color difference may be calculated using a plurality of pixels as a unit. In that case, for example, a method of calculating an average of the color differences in a plurality of pixels as one unit by calculating a color difference in the plurality of pixels can be used.

図6は、色調整部25にて行われた調整処理が原画像に与えた影響を説明する図である。図6では、一例として、人物を被写体として撮影された人物写真画像において肌色を調整する場合を示し、(a)は原画像であり、(b)は算出された色差画素値データが存在する領域(図中斜線部)を調整後の画像に重ねた図である。
図6に示した例では、被写体である人物の肌色が表現されている領域Aを調整領域として、部分色空間設定部24にて部分色空間CAPを設定している。そのため、領域Aでの人物の肌色は、目標とする色点(目標色)に調整される。ところが、部分色空間CAP内に存在する色は一様に色変換されるため、YCbCr色空間において人物の肌色に近い色の領域である図6(b)に示した領域B,C,Dの色も変換される。その結果として、領域B,C,Dに上記した色差画素値データが発生することとなる。
FIG. 6 is a diagram for explaining the influence of the adjustment process performed by the color adjustment unit 25 on the original image. FIG. 6 shows, as an example, a case where the skin color is adjusted in a human photograph image taken with a person as a subject, where (a) is an original image, and (b) is an area where calculated color-difference pixel value data exists. It is the figure which piled up (the hatched part in a figure) on the image after adjustment.
In the example illustrated in FIG. 6, the partial color space CAP is set by the partial color space setting unit 24 using the area A in which the skin color of the person who is the subject is expressed as the adjustment area. Therefore, the skin color of the person in the region A is adjusted to the target color point (target color). However, since the colors existing in the partial color space CAP are uniformly color-converted, the regions B, C, and D shown in FIG. 6B, which are color regions close to the human skin color in the YCbCr color space. The color is also converted. As a result, the color difference pixel value data described above is generated in the regions B, C, and D.

そこで、色差解析部26では、部分色空間設定部24にて部分色空間CAPを設定したことによる調整領域以外の領域への影響を測るために、色差画素値データが発生した領域(領域Aおよび領域B,C,D)での色差画素値データの積分値を算出する。そして、色差画素値データの積分値に基づいて影響度Eを求め、部分色空間設定部24にて設定する部分色空間CAPの大きさを調整する際の判断要素とする。
具体的には、算出された影響度Eは部分色空間設定部24に送られ、部分色空間設定部24は、送られた影響度Eが例えば所定値よりも大きい場合には、部分色空間設定部24にて設定された部分色空間の大きさを再度調整する。
なお、色差画素値データを積分するに際しては、カラー画像の一部領域である色差画素値データが発生した領域(領域Aおよび領域B,C,D)に限定して行う方法や、カラー画像の全領域に亘って行う方法を用いることができる。
Therefore, in the color difference analysis unit 26, in order to measure the influence on the region other than the adjustment region due to the setting of the partial color space CAP by the partial color space setting unit 24, the region (region A and the region where the color difference pixel value data is generated) is measured. An integral value of the color difference pixel value data in the regions B, C, and D) is calculated. Then, the degree of influence E is obtained based on the integral value of the color difference pixel value data, and is used as a determination factor when adjusting the size of the partial color space CAP set by the partial color space setting unit 24.
Specifically, the calculated degree of influence E is sent to the partial color space setting unit 24, and the partial color space setting unit 24, when the sent degree of influence E is larger than, for example, a predetermined value, The size of the partial color space set by the setting unit 24 is adjusted again.
It should be noted that when integrating the color difference pixel value data, a method of limiting the color difference pixel value data, which is a partial area of the color image (region A and regions B, C, D), A method performed over the entire region can be used.

色差画素値データの積分値Dは、図6に示した領域Aおよび領域B,C,Dにおける(i,j)番目の画素の色差画素値をpijとすれば、次の式(1)で表すことができる。式(1)から算出された積分値Dを影響度Eとして、そのまま部分色空間設定部24に出力してもよい。
なお、以下では、画像の縦方向の座標をi、画像の横方向の座標をjとしている。また、以下の記載において、式(1)から式(3)は、[数1]から[数3]に対応するものとする。
Integrated value D of the color difference pixel value data areas A and B shown in FIG. 6, C, if (i, j) th color difference pixel value of the pixel with p ij in D, the following equation (1) Can be expressed as The integral value D calculated from the equation (1) may be output as the influence degree E to the partial color space setting unit 24 as it is.
In the following, the vertical coordinate of the image is i, and the horizontal coordinate of the image is j. In the following description, equations (1) to (3) correspond to [Equation 1] to [Equation 3].

Figure 0004900039
Figure 0004900039

また、図7(画像の縦方向の積分を説明する図)に示したような領域Aおよび領域B,C,Dでの画像の縦方向の積分を行い、縦方向の積分値に対して、画像上での横方向の広がりに応じた重み付けを行って影響度Eを算出してもよい。
すなわち、画像の横方向のj番目の色差画素値データに関する縦方向の積分値dを次式(2)で算出する。
Further, the vertical integration of the image in the region A and the regions B, C, and D as shown in FIG. 7 (a diagram for explaining the integration in the vertical direction of the image) is performed. The degree of influence E may be calculated by weighting according to the spread in the horizontal direction on the image.
That is, to calculate the vertical integral value d j about horizontal j-th chrominance pixel value data of an image in the following equation (2).

Figure 0004900039
Figure 0004900039

例えば、被写体が人物である人物写真画像の場合を想定する。この場合には、人物が概ね画像の中央部に位置するという前提があるので、画像の横方向の両端部に近い領域の積分値dの影響度Eが大きくなるように影響度Eを算出する。例えば、画像上における横方向(j)の広がりに対して、図8(加重wの特性を示した図)に示したような特性を有する加重wを用意する。そして、式(2)で算出された縦方向(i)の積分値dに対して、加重wによる重み付けを行う。すなわち、影響度Eを次式(3)で算出する。それにより、調整領域である領域A以外において色が変動した領域(領域B,C,D)について、画像の横方向(j)の広がりを影響度Eに反映させている。 For example, a case is assumed where the subject is a person photo image. In this case, there is a premise that the person is generally located in the center of the image, calculate the degree of influence E as impact E of the integrated value d j of a region close to the opposite ends of the transverse direction of the image is increased To do. For example, a weight w j having characteristics as shown in FIG. 8 (a diagram showing characteristics of the weight w j) is prepared for the spread in the horizontal direction (j) on the image. Then, weighting by the weight w j is performed on the integrated value d j in the vertical direction (i) calculated by the expression (2). That is, the influence degree E is calculated by the following equation (3). As a result, the spread in the horizontal direction (j) of the image is reflected in the influence degree E for the regions (regions B, C, and D) where the color fluctuates other than the region A that is the adjustment region.

Figure 0004900039
Figure 0004900039

なお、式(2)、式(3)では、縦方向(i)の積分値dを算出したが、横方向(j)の積分値dを算出することで、色が変動した領域(領域B,C,D)について、影響度Eに画像の縦方向(i)の広がりを反映させてもよい。この場合には、式(2)、式(3)においてiとjとを入れ替えることで、同様に求めることができる。このように、本実施の形態では、積分の方向はいずれの方向であってもよい。 In equation (2), Equation (3) has been calculated integral value d j in the vertical direction (i), by calculating the integral value d i in the lateral direction (j), the color is varied region ( For the regions B, C, and D), the influence E may reflect the spread in the vertical direction (i) of the image. In this case, it can be similarly obtained by replacing i and j in the equations (2) and (3). Thus, in this embodiment, the direction of integration may be any direction.

色差解析部26は、算出された影響度Eを部分色空間設定部24に送る。部分色空間設定部24は、送られた影響度Eに基づいて、例えば図2に示した部分色空間CAP_1を設定する第1のパラメータ値である半径r1および半径r2(r1=r2=r)を変更するか否かを判定する。
すなわち、図2の部分色空間CAP_1の大きさは、部分色空間CAP_1を設定する第1のパラメータ値により定まり、第1のパラメータ値である半径rを大きくすれば、部分色空間CAP_1を大きくできる。また、半径rを小さくすれば、部分色空間CAP_1を小さくできる。そこで、部分色空間設定部24では、影響度Eに関する判定を行い、例えば影響度Eが所定値よりも大きい場合には、半径rを小さくして、部分色空間CAP_1の大きさを小さくするように部分色空間CAP_1を再設定する。また、例えば影響度Eが小さい場合には、半径rを大きくして、部分色空間CAP_1の大きさを大きくするように部分色空間CAP_1を再設定する。
The color difference analysis unit 26 sends the calculated degree of influence E to the partial color space setting unit 24. The partial color space setting unit 24, for example, a radius r1 and a radius r2 (r1 = r2 = r) which are first parameter values for setting the partial color space CAP_1 illustrated in FIG. It is determined whether or not to change.
That is, the size of the partial color space CAP_1 in FIG. 2 is determined by the first parameter value that sets the partial color space CAP_1. If the radius r, which is the first parameter value, is increased, the partial color space CAP_1 can be increased. . If the radius r is reduced, the partial color space CAP_1 can be reduced. Therefore, the partial color space setting unit 24 makes a determination regarding the degree of influence E. For example, when the degree of influence E is larger than a predetermined value, the radius r is decreased to reduce the size of the partial color space CAP_1. The partial color space CAP_1 is reset. For example, when the influence E is small, the radius r is increased, and the partial color space CAP_1 is reset so as to increase the size of the partial color space CAP_1.

図9は、部分色空間CAPの大きさと影響度Eとの一般的な関係を示した図である。図9に示したように、部分色空間CAPを大きく設定すれば、調整領域以外の他の領域への影響も大きくなり、影響度Eは増大する。そこで、第1のパラメータ値を変更するか否かの判定は、影響度Eに所定の基準値を設け、影響度Eが基準値よりも大きいか小さいかで行うことができる。ここでの影響度Eの基準値としては、例えばこの基準値を超えると画質に重大な影響を与える可能性があるレベルとして設定してもよい。そして、最初のパラメータ値(第1のパラメータ値)により設定された部分色空間CAP_1を用いた場合に算出される影響度Eが、影響度Eに設けられた基準値よりも大きければ、第1のパラメータ値よりも小さな大きさの部分色空間CAPを設定するパラメータ値(第2のパラメータ値)に変更する。
具体的には、第1のパラメータ値としての半径r1および半径r2(r1=r2=r)を、第2のパラメータ値としての半径r1´および半径r2´(r1´=r2´<r)に変更する。その際に、第1のパラメータ値である半径r1および半径r2がr1≠r2に設定されている場合には、それぞれ第2のパラメータ値としての半径r1´(r1´<r1)および半径r2´(r2´<r2)に変更する。
FIG. 9 is a diagram showing a general relationship between the size of the partial color space CAP and the degree of influence E. In FIG. As shown in FIG. 9, if the partial color space CAP is set to be large, the influence on other areas other than the adjustment area also becomes large, and the influence degree E increases. Therefore, whether or not to change the first parameter value can be determined by setting a predetermined reference value for the degree of influence E and determining whether the degree of influence E is larger or smaller than the reference value. The reference value of the degree of influence E here may be set, for example, as a level that may seriously affect the image quality when the reference value is exceeded. If the degree of influence E calculated using the partial color space CAP_1 set by the first parameter value (first parameter value) is larger than the reference value provided for the degree of influence E, the first The parameter value is changed to a parameter value (second parameter value) for setting the partial color space CAP having a size smaller than this parameter value.
Specifically, the radius r1 and the radius r2 (r1 = r2 = r) as the first parameter values are changed to the radius r1 ′ and the radius r2 ′ (r1 ′ = r2 ′ <r) as the second parameter values. change. At this time, when the radius r1 and the radius r2 as the first parameter values are set to r1 ≠ r2, the radius r1 ′ (r1 ′ <r1) and the radius r2 ′ as the second parameter values, respectively. Change to (r2 ′ <r2).

その反対に、影響度Eが、例えば影響度Eの基準値よりも小さければ、第1のパラメータ値よりも小さな大きさの部分色空間CAP_1を設定するパラメータ値(第2のパラメータ値)に変更してもよい。
具体的には、第1のパラメータ値としての半径r1および半径r2(r1=r2=r)を、第2のパラメータ値としての半径r1´および半径r2´(r1´=r2´>r)に変更する。その際に、第1のパラメータ値である半径r1および半径r2がr1≠r2に設定されている場合には、それぞれ第2のパラメータ値としての半径r1´(r1´>r1)および半径r2´(r2´>r2)に変更する。
この場合に、影響度Eが基準値よりも小さければ、第1のパラメータ値を変更せず、第1のパラメータ値により設定された部分色空間CAPをそのまま使用するように構成してもよい。
なお、図3に示した部分色空間CAP_2を用いた場合にも、上記と同様に、部分色空間CAP_2の大きさの調整処理が行われる。
On the other hand, if the degree of influence E is smaller than the reference value of the degree of influence E, for example, the parameter value is changed to a parameter value (second parameter value) for setting the partial color space CAP_1 having a size smaller than the first parameter value. May be.
Specifically, the radius r1 and the radius r2 (r1 = r2 = r) as the first parameter values are changed to the radius r1 ′ and the radius r2 ′ (r1 ′ = r2 ′> r) as the second parameter values. change. At this time, when the radius r1 and the radius r2 that are the first parameter values are set to r1 ≠ r2, the radius r1 ′ (r1 ′> r1) and the radius r2 ′ as the second parameter values, respectively. Change to (r2 ′> r2).
In this case, if the degree of influence E is smaller than the reference value, the first color parameter value may not be changed and the partial color space CAP set by the first parameter value may be used as it is.
Even when the partial color space CAP_2 shown in FIG. 3 is used, the adjustment processing of the size of the partial color space CAP_2 is performed in the same manner as described above.

部分色空間設定部24は、影響度Eに関する判定の結果、部分色空間CAPを再設定した場合に、再設定された部分色空間CAPに関する情報を色調整部25に送る。
色調整部25は、部分色空間設定部24にて再設定された部分色空間CAP内において、色空間変換部21から取得した色信号を再度調整する。具体的には、色空間変換部21から色信号を取得して、取得した色信号の中の部分色空間設定部24において再設定された部分色空間CAP内の色信号(色座標)の調整処理を行う。
そして、色調整部25にて再度の調整処理された色信号を最終調整画像の色信号として、色空間変換部27に送る。
色空間変換部27は、YCbCr色空間からsRGB色空間の色信号に変換する。そして、変換されたsRGB色空間の色信号を画像データ出力部30に送る。
When the partial color space CAP is reset as a result of the determination regarding the degree of influence E, the partial color space setting unit 24 sends information about the reset partial color space CAP to the color adjustment unit 25.
The color adjustment unit 25 adjusts the color signal acquired from the color space conversion unit 21 again in the partial color space CAP reset by the partial color space setting unit 24. Specifically, the color signal is acquired from the color space conversion unit 21, and the color signal (color coordinate) in the partial color space CAP reset by the partial color space setting unit 24 in the acquired color signal is adjusted. Process.
Then, the color signal subjected to the adjustment process again by the color adjustment unit 25 is sent to the color space conversion unit 27 as the color signal of the final adjustment image.
The color space conversion unit 27 converts the YCbCr color space into a color signal in the sRGB color space. Then, the converted color signal of the sRGB color space is sent to the image data output unit 30.

また、色調整部25は、再設定された部分色空間CAP内において再度の調整処理された色信号を色差解析部26に送り、影響度Eを再度算出してもよい。そして、色差解析部26にて算出された影響度Eを再度部分色空間設定部24に送る。部分色空間設定部24は、送られた影響度Eに基づいて、再設定された部分色空間CAPを設定する第2のパラメータ値である半径r1´および半径r2´を変更するか否かを判定する。その後は、上記と同様の処理を行う。そして、最終調整画像を定め、定めた最終調整画像の色信号として、色空間変換部27に送ることとなる。   Further, the color adjustment unit 25 may send the color signal subjected to the adjustment process again in the reset partial color space CAP to the color difference analysis unit 26 and calculate the influence degree E again. Then, the influence degree E calculated by the color difference analysis unit 26 is sent to the partial color space setting unit 24 again. The partial color space setting unit 24 determines whether to change the radius r1 ′ and the radius r2 ′, which are the second parameter values for setting the reset partial color space CAP, based on the sent influence degree E. judge. Thereafter, the same processing as described above is performed. Then, a final adjustment image is determined and sent to the color space conversion unit 27 as a color signal of the determined final adjustment image.

ここで、図10は、部分色空間設定部24、色調整部25、および色差解析部26において行われる色信号の変換に関する処理の一例を示したフローチャートである。図10に示したように、部分色空間設定部24は、最初に部分色空間CAPを設定する際に用いられる第1のパラメータ値を用いて部分色空間CAPを設定する(S101)。そして、色調整部25は、部分色空間設定部24にて設定された部分色空間CAP内において、色空間変換部21から取得した色信号を調整(色点の移動処理)する(S102)。色差解析部26は、色調整部25にて調整処理された色信号と色空間変換部21から取得した原画像の色信号との色差である色差画素値データが発生した領域での色差画素値データの積分値に基づいて、影響度Eを算出する(S103)。算出された影響度Eは、部分色空間設定部24に送られる。   Here, FIG. 10 is a flowchart illustrating an example of processing relating to color signal conversion performed in the partial color space setting unit 24, the color adjustment unit 25, and the color difference analysis unit 26. As shown in FIG. 10, the partial color space setting unit 24 sets the partial color space CAP using the first parameter value used when the partial color space CAP is first set (S101). Then, the color adjustment unit 25 adjusts the color signal acquired from the color space conversion unit 21 within the partial color space CAP set by the partial color space setting unit 24 (color point movement processing) (S102). The color difference analysis unit 26 is a color difference pixel value in an area where color difference pixel value data that is a color difference between the color signal adjusted by the color adjustment unit 25 and the color signal of the original image acquired from the color space conversion unit 21 is generated. The influence degree E is calculated based on the integrated value of the data (S103). The calculated degree of influence E is sent to the partial color space setting unit 24.

部分色空間設定部24は、送られた影響度Eが基準値よりも大きければ(S104)、第1のパラメータ値よりも小さな大きさの部分色空間CAPを設定するパラメータ値(第2のパラメータ値)に変更する。そして、変更されたパラメータ値(第2のパラメータ値)を用いて、部分色空間CAPを再設定する(S105)。
そして、ステップ102に戻り、色調整部25は、部分色空間設定部24にて再設定された部分色空間CAP内において、色空間変換部21から取得した色信号を再度調整する。そして、必要に応じてステップ103〜ステップ105の処理を繰り返し、最終的に影響度Eが基準値以下となった時点で(S104)、色調整部25にて調整された色信号を最終調整画像の色信号として色空間変換部27に送る(S106)。
If the sent influence degree E is larger than the reference value (S104), the partial color space setting unit 24 sets a parameter value (second parameter) for setting the partial color space CAP having a size smaller than the first parameter value. Value). Then, the partial color space CAP is reset using the changed parameter value (second parameter value) (S105).
Then, returning to step 102, the color adjustment unit 25 adjusts the color signal acquired from the color space conversion unit 21 again in the partial color space CAP reset by the partial color space setting unit 24. Then, if necessary, the processes of Step 103 to Step 105 are repeated. When the influence degree E finally becomes equal to or less than the reference value (S104), the color signal adjusted by the color adjusting unit 25 is used as the final adjusted image. The color signal is sent to the color space conversion unit 27 (S106).

なお、図10での処理では、部分色空間CAPを少しずつ変更しながら、色信号の調整処理を複数回繰り返すことで、色信号の調整精度が高まる。しかし、処理時間が比較的長くなることから、原画像を縮小させた画像を用いて、上記したステップ102〜ステップ105の処理を行ってもよい。そして、原画像の縮小率が画像情報の損失が生じない程度であれば、画像情報の連続性は失われないので、ステップ106の最終調整画像を出力する段階で原画像サイズに戻し、色空間変換部27に出力してもよい。   In the process of FIG. 10, the color signal adjustment accuracy is increased by repeating the color signal adjustment process a plurality of times while changing the partial color space CAP little by little. However, since the processing time becomes relatively long, the processing in steps 102 to 105 described above may be performed using an image obtained by reducing the original image. If the reduction rate of the original image is such that no loss of image information occurs, the continuity of the image information is not lost. Therefore, when the final adjusted image in step 106 is output, the original image size is returned to the color space. You may output to the conversion part 27. FIG.

図11は、図10に示した処理により人物を被写体として撮影された人物写真画像において肌色を調整する場合を示した図である。図10(a)は、原画像である。図10(b)は、最初の第1のパラメータ値により設定された部分色空間CAP内で色信号が調整された場合において、色差画素値データが存在する領域(図中斜線部)を調整後の画像に重ねた図である。図10(c)は、ステップ102〜ステップ105の処理を繰り返して、最終的に影響度Eが基準値以下となった部分色空間CAP内において色信号が調整された場合において、色差画素値データが存在する領域(図中斜線部)を再調整後の画像に重ねた図である。
図11に示したように、本実施の形態の色調整装置20では、部分色空間CAPを設定するパラメータ値を調整して部分色空間CAPの大きさを再設定することで、調整領域以外の領域への影響が低減される(図10(c)参照)。
FIG. 11 is a diagram illustrating a case where the skin color is adjusted in a person photograph image taken with a person as a subject by the processing illustrated in FIG. 10. FIG. 10A shows an original image. FIG. 10B shows an area after the adjustment of a region (hatched portion in the figure) where color difference pixel value data exists when the color signal is adjusted within the partial color space CAP set by the first first parameter value. FIG. FIG. 10C shows the color difference pixel value data when the color signal is adjusted in the partial color space CAP in which the influence E is finally equal to or less than the reference value by repeating the processing of step 102 to step 105. FIG. 6 is a diagram in which a region where there is (a hatched portion in the drawing) is superimposed on an image after readjustment.
As shown in FIG. 11, in the color adjustment apparatus 20 according to the present embodiment, the parameter value for setting the partial color space CAP is adjusted to reset the size of the partial color space CAP. The influence on the area is reduced (see FIG. 10C).

以上説明したように、本実施の形態の色調整装置20においては、代表色と目標色とを包含する部分色空間CAPの中でのみ色を移動しながら色調整を行う場合に、調整対象となる画像に適した部分色空間CAPの大きさを設定し、画像全体への影響を低減しながら、調整対象となる色点(代表色)から調整目標となる色点(目標色)への色調整を行うことが可能となる。   As described above, in the color adjustment apparatus 20 according to the present embodiment, when color adjustment is performed while moving only in the partial color space CAP including the representative color and the target color, The color from the color point to be adjusted (representative color) to the color point to be adjusted (target color) while setting the size of the partial color space CAP suitable for the image to be reduced and reducing the influence on the entire image Adjustments can be made.

本実施の形態が適用される色調整装置を備えた画像処理装置の全体構成を示すブロック図である。1 is a block diagram illustrating an overall configuration of an image processing apparatus including a color adjustment apparatus to which the exemplary embodiment is applied. YCbCr色空間に設定する部分色空間の一例を説明する図である。It is a figure explaining an example of the partial color space set to YCbCr color space. YCbCr色空間に設定する部分色空間の他の例を説明する図である。It is a figure explaining the other example of the partial color space set to YCbCr color space. 図2に示した部分色空間を用いる場合の色座標の調整処理を説明する図である。It is a figure explaining the adjustment process of the color coordinate in the case of using the partial color space shown in FIG. 図3に示した部分色空間を用いる場合の色座標の移動処理を説明する図である。It is a figure explaining the movement process of the color coordinate in the case of using the partial color space shown in FIG. 色調整部にて行われた調整処理が原画像に与えた影響を説明する図である。It is a figure explaining the influence which the adjustment process performed in the color adjustment part gave to the original image. 画像の縦方向の積分を説明する図である。It is a figure explaining the integration of the vertical direction of a picture. 加重wの特性を示した図である。Is a diagram showing characteristics of the weighting w j. 部分色空間の大きさと影響度との一般的な関係を示した図である。It is the figure which showed the general relationship between the magnitude | size of a partial color space, and an influence degree. 部分色空間設定部、色調整部、および色差解析部において行われる色信号の変換に関する処理の一例を示したフローチャートである。It is the flowchart which showed an example of the process regarding the conversion of the color signal performed in a partial color space setting part, a color adjustment part, and a color difference analysis part. 図10に示した処理により人物写真画像において肌色を調整する場合を示した図である。It is the figure which showed the case where skin color is adjusted in a person photograph image by the process shown in FIG.

符号の説明Explanation of symbols

1…画像処理装置、10…画像データ入力部、20…色調整装置、21,27…色空間変換部、22…代表色算出部、23…目標色算出部、24…部分色空間設定部、25…色調整部、26…色差解析部、30…画像データ出力部 DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus, 10 ... Image data input part, 20 ... Color adjustment apparatus, 21, 27 ... Color space conversion part, 22 ... Representative color calculation part, 23 ... Target color calculation part, 24 ... Partial color space setting part, 25 ... Color adjustment unit, 26 ... Color difference analysis unit, 30 ... Image data output unit

Claims (9)

カラー画像における調整対象となる色点を含む所定領域内の色点を、所定のパラメータに基づいて調整目標となる色点を含む所定領域内の色点に向けて移動処理する移動処理部と、
前記移動処理部にて前記色点が移動された前記カラー画像と、当該色点が移動される前の元の当該カラー画像とを比較し、当該カラー画像上の1または複数の画素単位での前記色点の移動量を算出する移動量算出部とを備え、
前記移動処理部は、前記移動量算出部にて算出された前記1または複数の画素単位での前記色点の移動量に関する前記カラー画像全域または一部領域に亘る積分値に基づき、前記パラメータを変更することを特徴とする色調整装置。
A movement processing unit configured to move a color point in a predetermined area including a color point to be adjusted in a color image toward a color point in the predetermined area including a color point to be adjusted based on a predetermined parameter;
The color image in which the color point has been moved by the movement processing unit is compared with the original color image before the color point is moved, and the color image is obtained in units of one or more pixels on the color image. A movement amount calculation unit for calculating the movement amount of the color point,
The movement processing unit is configured to calculate the parameter based on an integral value over the entire color image or a partial area related to the movement amount of the color point in the unit of one or a plurality of pixels calculated by the movement amount calculation unit. A color adjusting device characterized by changing.
前記移動処理部は、前記パラメータが所定の色空間にて前記色点の移動処理を行う領域である部分色空間の大きさを設定することを特徴とする請求項1記載の色調整装置。   The color adjustment apparatus according to claim 1, wherein the movement processing unit sets a size of a partial color space in which the parameter is an area where the color point is moved in a predetermined color space. 前記移動処理部は、前記パラメータにて設定される前記部分色空間内での前記色点の移動量に関し、前記調整対象となる色点から前記調整目標となる色点への当該移動量を最大とし、当該部分色空間の外郭に近づくほど当該色点の移動量を0に近づけることを特徴とする請求項2記載の色調整装置。   The movement processing unit is configured to maximize the movement amount from the color point to be adjusted to the color point to be adjusted with respect to the movement amount of the color point in the partial color space set by the parameter. 3. The color adjusting apparatus according to claim 2, wherein the amount of movement of the color point approaches 0 as it approaches the outline of the partial color space. 前記移動処理部は、前記カラー画像上での前記画素の位置に応じて重み付けされた前記積分値に基づき、前記パラメータを変更することを特徴とする請求項記載の色調整装置。 The movement processing unit, based on the integral values weighted according to the position of the pixel on the color image, the color adjustment device according to claim 1, wherein changing the parameter. 前記移動処理部は、前記積分値が所定値に近づくように前記パラメータを変更することを特徴とする請求項記載の色調整装置。 The color adjustment apparatus according to claim 4 , wherein the movement processing unit changes the parameter so that the integral value approaches a predetermined value. 前記移動処理部および前記移動量算出部は、それぞれ複数回の前記移動処理と前記移動量の算出とを繰り返すことを特徴とする請求項1記載の色調整装置。   The color adjustment apparatus according to claim 1, wherein the movement processing unit and the movement amount calculation unit each repeat the movement processing and the movement amount calculation a plurality of times. 前記移動処理部および前記移動量算出部は、前記カラー画像を縮小処理し、縮小処理された当該カラー画像に対する前記複数回の前記移動処理と前記移動量の算出とを繰り返すことを特徴とする請求項記載の色調整装置。 The movement processing unit and the movement amount calculation unit reduce the color image, and repeat the plurality of movement processes and the calculation of the movement amount for the reduced color image. Item 7. The color adjusting apparatus according to Item 6 . コンピュータに、
カラー画像における調整対象となる色点を含む所定領域内の色点を、所定のパラメータに基づいて調整目標となる色点を含む所定領域内の色点に向けて移動させる機能と、
前記色点が移動された前記カラー画像と、当該色点が移動される前の元の当該カラー画像とを比較し、当該カラー画像上の1または複数の画素単位での前記色点の移動量を算出する機能と、
算出された前記1または複数の画素単位での前記色点の移動量に関する前記カラー画像全域または一部領域に亘る積分値に基づき、前記パラメータを変更する機能と
を実現させることを特徴とするプログラム。
On the computer,
A function of moving a color point in a predetermined area including a color point to be adjusted in a color image toward a color point in a predetermined area including a color point to be adjusted based on a predetermined parameter;
The color image in which the color point has been moved is compared with the original color image before the color point is moved, and the amount of movement of the color point in units of one or more pixels on the color image A function for calculating
A program for realizing a function of changing the parameter based on an integral value over the entire color image or a partial area relating to the calculated movement amount of the color point in the unit of one or a plurality of pixels. .
前記調整対象となる色点を含む所定領域内の色点を前記調整目標となる色点を含む所定領域内の色点に向けて移動させるに際して、所定の色空間にて当該色点の移動を行う領域である部分色空間の大きさを設定する前記パラメータを用いることを特徴とする請求項記載のプログラム。 When moving a color point in a predetermined area including the color point to be adjusted toward a color point in the predetermined area including the color point to be adjusted, the color point is moved in a predetermined color space. 9. The program according to claim 8, wherein the parameter for setting a size of a partial color space which is an area to be used is used.
JP2007137887A 2007-05-24 2007-05-24 Color adjustment apparatus and program Expired - Fee Related JP4900039B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007137887A JP4900039B2 (en) 2007-05-24 2007-05-24 Color adjustment apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007137887A JP4900039B2 (en) 2007-05-24 2007-05-24 Color adjustment apparatus and program

Publications (2)

Publication Number Publication Date
JP2008294731A JP2008294731A (en) 2008-12-04
JP4900039B2 true JP4900039B2 (en) 2012-03-21

Family

ID=40169012

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007137887A Expired - Fee Related JP4900039B2 (en) 2007-05-24 2007-05-24 Color adjustment apparatus and program

Country Status (1)

Country Link
JP (1) JP4900039B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017130721A (en) * 2016-01-18 2017-07-27 富士ゼロックス株式会社 Image processing apparatus and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1117963A (en) * 1997-06-27 1999-01-22 Fuji Xerox Co Ltd Image processing unit
JP4112413B2 (en) * 2003-03-27 2008-07-02 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium on which image processing program is recorded
JP2006033196A (en) * 2004-07-13 2006-02-02 Sharp Corp Color correction apparatus, image forming apparatus, color correction method, color correction program, and computer-readable recording medium

Also Published As

Publication number Publication date
JP2008294731A (en) 2008-12-04

Similar Documents

Publication Publication Date Title
JP5205968B2 (en) Gradation correction method, gradation correction apparatus, gradation correction program, and image device
US8743272B2 (en) Image processing apparatus and method of controlling the apparatus and program thereof
US7454056B2 (en) Color correction device, color correction method, and color correction program
JP4831067B2 (en) Image processing apparatus, image processing method, image processing program product, and imaging apparatus
JP5158100B2 (en) Color image processing method, apparatus and program
US9846826B2 (en) Image processing to generate a tone curve for processing an image by associating a model parameter of the image with another model parameter of a reference image
JP2009290661A (en) Image processing apparatus, image processing method, image processing program and printer
JP2009033361A (en) Color adjustment unit, image-forming device, and program
WO2007007788A1 (en) Color correction method and device
US20160381254A1 (en) Color gamut mapping based on the mapping of cusp colors obtained through simplified cusp lines
JP4783830B2 (en) Image correction program, image correction method, and image correction apparatus
CN101184148B (en) Color processing apparatus and method
US20080193011A1 (en) Pixel Processor
JP4900039B2 (en) Color adjustment apparatus and program
US20100328343A1 (en) Image signal processing device and image signal processing program
CN103379253B (en) Color processing apparatus and method
JP7335283B2 (en) Information processing terminal, program, information processing system, and color correction method
JP2009253933A (en) Image processing apparatus and program
US20150207958A1 (en) Apparatus, method, and medium
WO2007007786A1 (en) Color correction method and color correction device
JP4635916B2 (en) Image data color correction
JP2016201102A (en) Image processing apparatus, image processing method, and program
JP2017130721A (en) Image processing apparatus and program
JP2004356796A (en) Image processing device
JP2023044689A (en) Image processing unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100423

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110914

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110920

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111109

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4900039

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

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees