JP2001313839A - Image-processing method and unit, and recording medium - Google Patents
Image-processing method and unit, and recording mediumInfo
- Publication number
- JP2001313839A JP2001313839A JP2000130736A JP2000130736A JP2001313839A JP 2001313839 A JP2001313839 A JP 2001313839A JP 2000130736 A JP2000130736 A JP 2000130736A JP 2000130736 A JP2000130736 A JP 2000130736A JP 2001313839 A JP2001313839 A JP 2001313839A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- gradation
- color
- color correction
- processing
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims description 11
- 238000006243 chemical reaction Methods 0.000 claims abstract description 105
- 238000012545 processing Methods 0.000 claims abstract description 98
- 238000000034 method Methods 0.000 claims description 45
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 10
- 239000003086 colorant Substances 0.000 description 5
- 239000011159 matrix material Substances 0.000 description 3
- 230000014509 gene expression Effects 0.000 description 2
- 102100024522 Bladder cancer-associated protein Human genes 0.000 description 1
- 101150110835 Blcap gene Proteins 0.000 description 1
- 101000795655 Canis lupus familiaris Thymic stromal cotransporter homolog Proteins 0.000 description 1
- 101100493740 Oryza sativa subsp. japonica BC10 gene Proteins 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 235000012736 patent blue V Nutrition 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Record Information Processing For Printing (AREA)
- Color, Gradation (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明はデジタルカメラなど
により取得したデジタル画像データに対して階調変換処
理および色補正処理を施す画像処理方法および装置並び
に画像処理方法をコンピュータに実行させるためのプロ
グラムを記録したコンピュータ読取り可能な記録媒体に
関するものである。The present invention relates to an image processing method and apparatus for performing gradation conversion processing and color correction processing on digital image data obtained by a digital camera or the like, and a program for causing a computer to execute the image processing method. The present invention relates to a recorded computer-readable recording medium.
【0002】[0002]
【従来の技術】デジタルスチルカメラ(以下デジタルカ
メラとする)においては、撮影により取得した画像をデ
ジタル画像データとしてデジタルカメラ内部に設けられ
た内部メモリやICカードなどの記録媒体に記録し、記
録されたデジタル画像データに基づいて、プリンタやモ
ニタに撮影により取得した画像を表示することができ
る。このように、デジタルカメラにより取得した画像を
プリントする場合においては、ネガフイルムからプリン
トされた写真と同様の高品位な画質を有するものとする
ことが期待されている。2. Description of the Related Art In a digital still camera (hereinafter referred to as a digital camera), an image obtained by photographing is recorded as digital image data on a recording medium such as an internal memory or an IC card provided inside the digital camera, and is recorded. Based on the digital image data, an image obtained by photographing can be displayed on a printer or a monitor. As described above, when an image obtained by a digital camera is printed, it is expected to have the same high-quality image quality as a photograph printed from a negative film.
【0003】一方、印刷の分野においては、スキャナに
よりカラー原稿を読み取ることにより入力画像データを
得、この入力画像データに対して所望の画像処理を施し
て出力画像データを生成してプリンタにハードコピーと
して画像を出力するようにしたシステムが用いられてい
る(例えば特開平11−234523号)。このシステ
ムは、入力画像データをRGB色信号からCMYK網%
信号に変換するものである。まず、予め入力画像データ
に対してトーンカーブ(階調変換テーブル)およびカラ
ーコレクション部の色補正量等を設定し、設定されたト
ーンカーブおよびカラーコレクション部の色補正量等に
基づいて、入力画像データを出力画像データに変換する
ための3次元ルックアップテーブル(以下3DLUTと
する)を作成する。次いで、入力画像データであるRG
B色信号をこの3DLUTを補間することにより出力画
像データであるCMYK網%信号に変換する。印刷は、
この網%信号により各色のインクの量を制御することに
より行われる。In the field of printing, on the other hand, input image data is obtained by reading a color original with a scanner, and the input image data is subjected to desired image processing to generate output image data, which is hard-copyed to a printer. A system that outputs an image is used (for example, Japanese Patent Application Laid-Open No. H11-234523). This system converts input image data from RGB color signals to CMYK halftone
This is converted into a signal. First, a tone curve (gradation conversion table) and a color correction amount of the color correction unit are set in advance for the input image data, and the input image data is set based on the set tone curve and the color correction amount of the color correction unit. A three-dimensional lookup table (hereinafter referred to as 3DLUT) for converting data into output image data is created. Next, RG which is input image data
The B color signal is converted into a CMYK halftone% signal which is output image data by interpolating the 3DLUT. Printing is
The control is performed by controlling the amount of ink of each color by the dot% signal.
【0004】また、入力された画像データに対して階調
変換処理および色補正処理を施すための画像処理方法と
しては、例えば特開平10−210299号に記載され
た方法が知られている。この方法は、入力された画像デ
ータに基づいてコントラストを強調するための拡大係数
と彩度強調度、すなわち階調変換のパラメータおよび色
補正処理のパラメータを求める際に、仮の彩度強調度を
設定し、コントラストの拡大係数に応じて仮の彩度強調
度を変更し、変更した彩度強調度により色補正処理を行
うようにしたものである。As an image processing method for performing gradation conversion processing and color correction processing on input image data, for example, a method described in Japanese Patent Application Laid-Open No. H10-210299 is known. This method uses a provisional saturation enhancement degree when obtaining an enlargement coefficient and a saturation enhancement degree for enhancing contrast based on input image data, that is, a gradation conversion parameter and a color correction processing parameter. In this case, the provisional saturation enhancement is changed according to the contrast expansion coefficient, and the color correction process is performed based on the changed saturation enhancement.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、上記印
刷システムにおいて、階調変換処理のパラメータ(階調
変換テーブル)および色補正処理のパラメータ(色補正
量)は双方とも入力された画像データに基づいて設定さ
れているため、入力された画像データに対してこれらの
パラメータにより階調変換処理および色補正処理を施す
と、階調変換処理が色補正処理に、また色補正処理が階
調変換処理に影響を与えてしまうため、出力画像の階調
および色が本来得られるべきものとは異なるものとなっ
てしまう。However, in the above printing system, the parameters of the gradation conversion process (gradation conversion table) and the parameters of the color correction process (color correction amount) are both based on the input image data. Since the tone conversion process and the color correction process are performed on the input image data using these parameters, the tone conversion process becomes the color correction process, and the color correction process becomes the tone conversion process. Because of this, the gradation and color of the output image are different from those that should be originally obtained.
【0006】また、上記特開平10−210299号に
記載された方法は、階調変換処理のパラメータに応じて
仮の彩度強調度すなわち色補正処理のパラメータを変更
するようにしているが、仮の彩度強調度は入力された画
像データに基づいて設定されているため、階調変換処理
のパラメータを考慮しているものの、出力画像を適切な
階調および色を有するものとすることは困難であった。In the method described in Japanese Patent Application Laid-Open No. H10-210299, a temporary saturation enhancement degree, that is, a parameter of a color correction process is changed according to a parameter of a gradation conversion process. Is set based on the input image data, it is difficult to make the output image have the appropriate gradation and color, although the parameters of the gradation conversion processing are taken into account. Met.
【0007】本発明は上記事情に鑑みなされたものであ
り、画像データに対して階調変換処理および色補正処理
を行う際に、各処理が互いに影響を与え合うことなく所
望とする階調および色を有する処理済み画像を得ること
ができる画像処理方法および装置並びに画像処理方法を
コンピュータに実行させるためのプログラムを記録した
コンピュータ読取り可能な記録媒体を提供することを目
的とするものである。The present invention has been made in view of the above circumstances, and when performing gradation conversion processing and color correction processing on image data, each processing does not affect each other and desired gradation and It is an object of the present invention to provide an image processing method and apparatus capable of obtaining a processed image having a color, and a computer-readable recording medium storing a program for causing a computer to execute the image processing method.
【0008】[0008]
【課題を解決するための手段】本発明による画像処理方
法は、画像データに対して階調変換処理および色補正処
理を施して処理済み画像データを得る画像処理方法にお
いて、前記画像データに対して前記階調変換処理を施し
て階調変換済み画像データを得、該階調変換済み画像デ
ータに基づいて前記色補正処理を行う際の補正量を設定
し、該補正量に基づいて前記階調変換済み画像データに
対して前記色補正処理を施して前記処理済み画像データ
を得ることを特徴とするものである。According to the present invention, there is provided an image processing method for performing gradation conversion processing and color correction processing on image data to obtain processed image data. Performing the gradation conversion processing to obtain gradation-converted image data, setting a correction amount when performing the color correction processing based on the gradation-converted image data, and setting the gradation based on the correction amount. The color correction processing is performed on the converted image data to obtain the processed image data.
【0009】「色補正処理」とは階調変換済み画像デー
タにより表される画像の明度、色相、彩度を補正する処
理のことをいう。また、「色補正処理」は、階調変換済
み画像データにより表される画像の全体に施してもよ
く、肌色、空色などの特定の色に対してのみ施してもよ
い。"Color correction processing" refers to processing for correcting the brightness, hue, and saturation of an image represented by gradation-converted image data. The “color correction processing” may be performed on the entire image represented by the gradation-converted image data, or may be performed only on a specific color such as flesh color or sky blue.
【0010】ここで、本発明における階調変換処理およ
び色補正処理とは、画像データに対して直接階調変換処
理および色補正処理を施すもののみならず、画像データ
と処理済み画像データとの対応関係を表す3次元ルック
アップテーブルを作成し、この3次元ルックアップテー
ブルに基づいて画像データを変換することにより画像処
理を施すことをも含むものである。Here, the gradation conversion processing and the color correction processing in the present invention include not only the processing of directly performing the gradation conversion processing and the color correction processing on the image data, but also the processing of the image data and the processed image data. This includes creating a three-dimensional look-up table representing the correspondence and performing image processing by converting image data based on the three-dimensional look-up table.
【0011】本発明による画像処理装置は、画像データ
に対して階調変換処理および色補正処理を施して処理済
み画像データを得る画像処理装置において、前記画像デ
ータに対して前記階調変換処理を施して階調変換済み画
像データを得る階調変換処理手段と、該階調変換済み画
像データに基づいて前記色補正処理を行う際の補正量を
設定する補正量設定手段と、該補正量に基づいて前記階
調変換済み画像データに対して前記色補正処理を施して
前記処理済み画像データを得る色補正手段とを備えたこ
とを特徴とするものである。An image processing apparatus according to the present invention is an image processing apparatus for performing gradation conversion processing and color correction processing on image data to obtain processed image data, wherein the gradation conversion processing is performed on the image data. Tone correction processing means for obtaining a tone-converted image data by performing the color correction processing based on the tone-converted image data; and a correction amount setting means for setting a correction amount when the color correction processing is performed. Color correction means for performing the color correction processing on the gradation-converted image data based on the image data to obtain the processed image data.
【0012】なお、本発明による画像処理方法をコンピ
ュータに実行させるためのプログラムとして、コンピュ
ータ読取り可能な記録媒体に記録して提供してもよい。[0012] A computer-readable recording medium may be provided as a program for causing a computer to execute the image processing method according to the present invention.
【0013】[0013]
【発明の効果】本発明によれば、画像データに対して階
調変換処理を施すことにより得られた階調変換済み画像
データに基づいて色補正処理を行う際の補正量を設定す
るようにしたため、階調変換処理の結果を考慮して適切
な色が得られるような補正量を設定することができる。
したがって、この補正量に基づいて階調変換済み画像デ
ータに対して色補正処理を施すことにより、階調変換処
理および色補正処理が互いに影響を与え合うことなく、
適切な階調および色を有する画像を再現可能な処理済み
画像データを得ることができる。According to the present invention, a correction amount for performing a color correction process based on gradation-converted image data obtained by performing a gradation conversion process on image data is set. Therefore, it is possible to set a correction amount such that an appropriate color is obtained in consideration of the result of the gradation conversion process.
Therefore, by performing the color correction processing on the gradation-converted image data based on the correction amount, the gradation conversion processing and the color correction processing do not affect each other,
It is possible to obtain processed image data capable of reproducing an image having an appropriate gradation and color.
【0014】[0014]
【発明の実施の形態】以下図面を参照して本発明の実施
形態について説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0015】図1は本発明の実施形態による画像処理装
置を適用した画像出力装置の構成を示す概略ブロック図
である。図1に示すように、本実施形態による画像出力
装置1は、デジタルカメラにより被写体を撮影すること
により取得された画像データS0を記憶したメモリカー
ド2から色データR0,G0,B0からなる画像データ
S0を読み出す読出手段3と、画像データS0を縮小し
てインデックス画像を表すインデックス画像データS1
1を作成するインデックス画像作成手段4と、画像デー
タS0を解析して後述する階調変換テーブルT0を設定
するのに必要な階調の設定情報H0を生成する設定情報
生成手段5と、画像データS0をプリント出力する際に
画像データS0に対して階調変換処理および色補正処理
を施すための3DLUTを作成するとともに、インデッ
クス画像データS11に対して階調変換処理を施す3D
LUT作成手段6と、階調変換処理が施されたインデッ
クス画像データS11′をインデックス画像として表示
するモニタ7と、3DLUT作成手段6に種々の入力を
行う入力手段8と、濃度を変更するDCMYキー9と、
3DLUT作成手段6において作成された3DLUTを
用いて画像データS0を変換して変換画像データS12
を得る処理手段10と、画像データS0の画素数がプリ
ントの画素数よりも多い場合に画像データS0を縮小し
て縮小画像データS0′を得る縮小手段11と、画像デ
ータS0の画素数がプリントの画素数よりも少ない場合
に変換画像データS12を拡大して拡大画像データS1
2′を得る拡大手段12と、変換画像データS12また
は拡大画像データS12′に対してシャープネス処理を
施して処理済み画像データS13を得るシャープネス処
理手段13と、処理済み画像データS13をプリント出
力してプリントPを得るプリンタ14とを備える。FIG. 1 is a schematic block diagram showing a configuration of an image output device to which an image processing device according to an embodiment of the present invention is applied. As shown in FIG. 1, an image output device 1 according to the present embodiment includes image data composed of color data R0, G0, and B0 from a memory card 2 storing image data S0 obtained by photographing a subject with a digital camera. Reading means 3 for reading S0; index image data S1 representing an index image by reducing image data S0;
1, setting information generating means 5 for analyzing the image data S0 and generating gradation setting information H0 necessary for setting a gradation conversion table T0 described later; A 3D LUT for performing gradation conversion processing and color correction processing on image data S0 when print output of S0 is performed, and 3DUT performing gradation conversion processing on index image data S11.
LUT creation means 6, monitor 7 for displaying index image data S11 'subjected to gradation conversion processing as an index image, input means 8 for making various inputs to 3DLUT creation means 6, and DCMY key for changing density 9 and
Using the 3DLUT created by the 3DLUT creating means 6, the image data S0 is converted to convert image data S12.
, A reducing means 11 for reducing the image data S0 when the number of pixels of the image data S0 is larger than the number of pixels for printing to obtain reduced image data S0 ', The converted image data S12 is enlarged when the number of pixels is smaller than
Enlarging means 12 for obtaining 2 ', sharpness processing means 13 for applying sharpness processing to converted image data S12 or enlarged image data S12' to obtain processed image data S13, and printing and outputting processed image data S13 A printer 14 for obtaining a print P.
【0016】読出手段3は、メモリカード2から画像デ
ータS0を読み出すカードリーダ等からなる。また、メ
モリカード2から読み出した画像データは通常圧縮され
ているため、これを解凍して画像データS0とするもの
である。また、画像データS0には撮影を行ったデジタ
ルカメラの種別を表す情報(以下カメラ種情報とする)
がタグ情報として付与されているため、このカメラ種情
報も同時に読み出される。ここで、カメラ種情報をタグ
情報として記録する規格として例えばExifファイル
の非圧縮ファイルとして採用されている「Baseline TIF
F Rev.6.0RGB Full Color Image 」が挙げられる。The reading means 3 comprises a card reader for reading image data S0 from the memory card 2. Further, since the image data read from the memory card 2 is usually compressed, it is decompressed to obtain image data S0. The image data S0 includes information indicating the type of the digital camera that has taken the image (hereinafter referred to as camera type information).
Is provided as tag information, so that the camera type information is also read out at the same time. Here, as a standard for recording camera type information as tag information, for example, “Baseline TIF” which is adopted as an uncompressed file of an Exif file
F Rev.6.0RGB Full Color Image ".
【0017】インデックス画像作成手段4は、画像デー
タS0を間引くなどして縮小してインデックス画像デー
タS11を作成する。The index image creating means 4 creates the index image data S11 by reducing the image data S0 by thinning or the like.
【0018】設定情報生成手段5は以下のようにして設
定情報H0を生成する。通常デジタルカメラにおいて
は、画像データS0をモニタに再生することを前提とし
てオート露出制御処理(AE処理)およびオートホワイ
トバランス調整処理(AWB処理)が施されてなるもの
である。しかしながら、画像データS0をプリンタにお
いて再生する場合には、デジタルカメラにおいて行われ
たAE処理およびAWB処理(以下AE/AWB処理と
する)だけでは不十分であるため、プリントに適したA
E/AWB処理を行う必要がある。設定情報生成手段5
は、画像データS0を構成するRGB色信号毎に、プリ
ントに最適なAE/AWB処理を行うために必要な補正
量を推定し、この補正量を設定情報H0に含めるもので
ある。このため、例えば特開平11−220619号に
記載されたように、画像データS0を構成するRGB各
色信号毎に平均値を求め、この平均値がプリントに適し
た目標値となるように修正値を求め、この修正値を補正
量として設定情報H0に含めて出力する。なお、この補
正量は、露光量およびホワイトバランスの双方の補正を
行うものとなっている。The setting information generating means 5 generates the setting information H0 as follows. Usually, in a digital camera, an auto exposure control process (AE process) and an auto white balance adjustment process (AWB process) are performed on the assumption that the image data S0 is reproduced on a monitor. However, when the image data S0 is reproduced in the printer, the AE processing and the AWB processing (hereinafter, referred to as AE / AWB processing) performed in the digital camera are not enough.
It is necessary to perform E / AWB processing. Setting information generating means 5
Is for estimating a correction amount necessary for performing an AE / AWB process optimum for printing for each of the RGB color signals constituting the image data S0, and including this correction amount in the setting information H0. Therefore, for example, as described in JP-A-11-220609, an average value is obtained for each of the R, G, and B signals constituting the image data S0, and a correction value is set so that the average value becomes a target value suitable for printing. Then, this correction value is included in the setting information H0 as a correction amount and output. This correction amount is used to correct both the exposure amount and the white balance.
【0019】また、設定情報生成手段5においては、後
述するように3DLUT作成手段6において3DLUT
を作成する際に、階調のハイライトおよびシャドーを非
線形に修正するための修正量が求められ、この修正量も
設定情報H0に含められる。ここで、プリンタは濃度の
再現域が狭く、画像のハイライト部に飛びが、シャドー
部に潰れが生じやすい状態にある。このため、設定情報
生成手段5は、例えば特開平11−331596号に記
載された方法により、AE処理あるいはAWB処理によ
りプリントの濃度が上がるような場合には、ハイライト
側の階調を硬調化させるとともにシャドー側の階調を軟
調化させ、逆にプリントの濃度が下がるような場合に
は、ハイライト側の濃度を軟調化させるとともにシャド
ー側の階調を硬調化させるように修正量を求め、これを
設定情報H0に含める。In the setting information generating means 5, as will be described later, a 3DLUT
Is generated, a correction amount for nonlinearly correcting gradation highlights and shadows is obtained, and this correction amount is also included in the setting information H0. Here, the printer has a narrow reproduction range of density, jumps to a highlight portion of an image, and is in a state in which a shadow portion is easily collapsed. For this reason, the setting information generating means 5 may use the method described in, for example, JP-A-11-331596 to harden the gradation on the highlight side when the print density is increased by AE processing or AWB processing. When the print density is reduced, the tone on the shadow side is softened.On the other hand, if the print density decreases, the correction amount is calculated so that the density on the highlight side is softened and the tone on the shadow side is hardened. Are included in the setting information H0.
【0020】さらに設定情報生成手段5においては、画
像データS0のタグ情報が読み出され、タグ情報のカメ
ラ種情報が設定情報H0に含められる。なお、タグ情報
にストロボ情報が含まれている場合は、これも設定情報
H0に含められる。Further, in the setting information generating means 5, the tag information of the image data S0 is read, and the camera type information of the tag information is included in the setting information H0. If the tag information includes strobe information, this is also included in the setting information H0.
【0021】モニタ7にはインデックス画像データS1
1′により表されるインデックス画像が表示される。ま
た、後述する階調曲線の修正時には、インデックス画像
とともに階調曲線も表示される。なお、本実施形態にお
いては6枚のインデックス画像が同時に表示されるもの
とする。The monitor 7 displays the index image data S1
The index image represented by 1 'is displayed. Further, at the time of correcting a gradation curve described later, a gradation curve is displayed together with the index image. In this embodiment, six index images are displayed simultaneously.
【0022】入力手段8は、3DLUT作成手段6に対
して種々の入力をするキーボード、マウスなどからなる
ものである。ここで、入力手段8からは、3DLUT作
成時に基準となる階調(以下基準階調とする)の種類が
入力される。なお、基準階調とは、プリンタ14におい
てプリントを行う際に、適切な階調を有するプリントP
が得られるように画像データに対して階調変換処理を行
う階調を表すものである。ここで基準階調としては、例
えば標準的な階調、曇天用の階調、逆光用の階調、およ
び近接ストロボシーン用の階調が選択可能とされてお
り、入力手段8から選択された基準階調を入力すること
により、選択された基準階調を表す階調曲線が3DLU
T作成手段6において設定される。また、所望とする階
調が得られるように階調曲線を修正したい場合がある
が、その場合は階調曲線をモニタ7に表示して、入力手
段8を用いて階調曲線を修正することができる。The input means 8 comprises a keyboard, a mouse, etc. for making various inputs to the 3DLUT creating means 6. Here, from the input means 8, a type of a gradation (hereinafter referred to as a reference gradation) which is a reference when the 3DLUT is created is input. Note that the reference gradation refers to a print P having an appropriate gradation when printing is performed by the printer 14.
Represents the gradation at which the gradation conversion process is performed on the image data so as to obtain. Here, as the reference gradation, for example, a standard gradation, a gradation for cloudy weather, a gradation for backlight, and a gradation for a close strobe scene can be selected. By inputting the reference gradation, a gradation curve representing the selected reference gradation is set to 3DLU.
This is set in the T creating means 6. In some cases, it is necessary to modify the gradation curve so that a desired gradation can be obtained. In such a case, display the gradation curve on the monitor 7 and correct the gradation curve using the input means 8. Can be.
【0023】DCMYキー9は、画像全体の濃度Dおよ
びC(シアン)、M(マゼンタ)、Y(イエロー)の各
色の濃度を補正するための4つのキーからなり、キーを
押下した回数に応じて3DLUT作成手段6において画
像全体および各色の濃度が変更される。なお、入力手段
8から入力された階調曲線の修正およびDCMYキー9
から入力された濃度の変更は、リアルタイムでモニタ7
に表示されたインデックス画像に反映される。The DCMY key 9 comprises four keys for correcting the densities of the colors D, C (cyan), M (magenta), and Y (yellow) of the entire image. In the 3DLUT creating means 6, the density of the entire image and each color is changed. The correction of the gradation curve input from the input means 8 and the DCMY key 9
The change of the density input from the
Is reflected in the index image displayed in.
【0024】3DLUT作成手段6は以下のようにして
3DLUTを作成する。図2は3DLUT作成手段6の
構成を示す概略ブロック図である。なお、画像データS
0がRGB各色8ビットのデータである場合、全てのデ
ータを変換する3DLUTを作成しようとすると256
3のデータが必要となり、3DLUTの作成に長時間を
要するものとなる。したがって、本実施形態において
は、各色データR0,G0,B0のビット数を低減して
0,7,15,…247,255の各色33のデータか
らなる333の3DLUTを作成するものとする。The 3DLUT creating means 6 creates a 3DLUT as follows. FIG. 2 is a schematic block diagram showing the configuration of the 3DLUT creating means 6. The image data S
If 0 is 8-bit data for each color of RGB, 256-bit data is converted to create a 3DLUT for converting all data.
3 data is required, and it takes a long time to create a 3DLUT. Accordingly, in the present embodiment, it is assumed to create each color data R0, G0, 0,7,15 by reducing the B0 number of bits, ... 33 3 3DLUT comprising data for each color 33 of 247,255.
【0025】図2に示すように、3DLUT作成手段6
は、ITU−R BT.709(REC.709)に準
拠した画像データS0(ビット数が低減されたもの)か
ら、下記の式(1)〜(3)に基づいて真数の色データ
R0′,G0′,B0′を求め、これを対数変換して画
像データS1を得る対数変換手段21と、対数変換され
た画像データS1に対して階調を変換する処理を施して
画像データS2を得る階調変換手段22と、階調変換手
段22における階調変換に用いられる階調変換テーブル
T0を設定する階調設定手段23と、複数の階調曲線を
記憶したメモリ24と、画像データS2を逆対数変換し
て色データR3,G3,B3からなる画像データS3を
得る逆対数変換手段25と、画像データS3を構成する
色データR3,G3,B3を明度L*、彩度C*および色
相HAを表すデータL3,C3,H3に変換するLCH
変換手段26と、データL3,C3,H3に対して色を
補正する処理を施して色補正データL4,C4,H4を
得る色補正手段27と、色補正データL4,C4,H4
をモニタ用の色空間であるsRGB色空間に変換して色
データR4,G4,B4からなる色補正画像データS4
を得るsRGB変換手段28と、色補正画像データS4
をプリンタ用の色空間に変換してプリンタ用画像データ
S5を得るプリンタ変換手段29と、プリンタ用画像デ
ータS5と画像データS0とに基づいて3DLUTを作
成するLUT作成手段30とを備える。なお、色補正手
段27には複数の色補正メニューを記憶したメモリ31
と、データL3,C3,H3に基づいて画像データS3
により表される画像に含まれる特定色(本実施形態では
肌色とする)を補正するための補正量を設定する色補正
量設定手段32とが接続されている。As shown in FIG. 2, the 3DLUT creating means 6
Is ITU-R BT. 709 (REC. 709), the true color data R0 ', G0', and B0 'are calculated based on the following equations (1) to (3). Logarithmic conversion means 21 for obtaining the image data S1 by logarithmically converting the image data, and gradation conversion means 22 for performing a process of converting the grayscale of the logarithmically converted image data S1 to obtain image data S2; A gradation setting unit 23 for setting a gradation conversion table T0 used for gradation conversion in the gradation conversion unit 22, a memory 24 storing a plurality of gradation curves, and color data obtained by performing inverse logarithmic conversion of the image data S2. Antilogarithmic conversion means 25 for obtaining image data S3 composed of R3, G3, B3; and color data R3, G3, B3 constituting image data S3 are converted to data L3, C3 representing lightness L * , saturation C * and hue HA. , H3 Conversion to LCH
A conversion unit 26; a color correction unit 27 that performs color correction processing on the data L3, C3, and H3 to obtain color correction data L4, C4, and H4; and a color correction data L4, C4, and H4.
Is converted to an sRGB color space, which is a monitor color space, and color corrected image data S4 composed of color data R4, G4, and B4.
SRGB conversion means 28 for obtaining color correction image data S4
To a printer color space to obtain printer image data S5, and LUT creation means 30 for creating a 3DLUT based on the printer image data S5 and the image data S0. The color correction means 27 has a memory 31 storing a plurality of color correction menus.
And image data S3 based on the data L3, C3 and H3.
Is connected to a color correction amount setting unit 32 that sets a correction amount for correcting a specific color (skin color in the present embodiment) included in the image represented by.
【0026】 Pr=R0/255 Pg=G0/255 (1) Pb=B0/255 R0′=((Pr+0.099)/1.099)2.222 G0′=((Pg+0.099)/1.099)2.222 (Pr,Pg,Pb≧0.081) (2) B0′=((Pb+0.099)/1.099)2.222 R0′=Pr/4.5 G0′=Pg/4.5 (Pr,Pg,Pb<0.081) (3) B0′=Pb/4.5 メモリ24には、標準的な階調曲線、曇天用の階調曲
線、逆光用の階調曲線、および近接ストロボシーン用の
階調曲線からなる基準階調曲線、およびカメラ種別に応
じた複数の階調曲線が記憶されている。Pr = R0 / 255 Pg = G0 / 255 (1) Pb = B0 / 255 R0 ′ = ((Pr + 0.099) /1.099) 2.222 G0 ′ = ((Pg + 0.099) /1.099) 2.222 (Pr, (Pg, Pb ≧ 0.081) (2) B0 ′ = ((Pb + 0.099) /1.099) 2.222 R0 ′ = Pr / 4.5 G0 ′ = Pg / 4.5 (Pr, Pg, Pb <0.081) (3) B0 '= Pb / 4.5 The memory 24 has a reference gradation curve including a standard gradation curve, a gradation curve for cloudy weather, a gradation curve for backlight, and a gradation curve for a close-up strobe scene. In addition, a plurality of gradation curves corresponding to camera types are stored.
【0027】階調設定手段23においては下記のように
して画像データS1を階調変換するための階調変換テー
ブルT0が設定される。図3は階調変換テーブルT0の
設定を説明するための図であり、この階調変換テーブル
T0は、画像データS1を構成する色データR1,G
1,B1を、第1象限から第4象限にかけて階調変換し
て画像データS2を構成する色データR2,G2,B2
を得るものである。なお、階調設定手段23において
は、RGBの各色毎に階調変換テーブルT0が設定され
る。まず、階調設定手段23には設定情報H0が入力さ
れ、この設定情報H0のうちカメラ種情報に基づいて、
そのカメラ種情報に応じた階調曲線がメモリ24から読
み出される。一方、基準階調曲線としてデフォルトの標
準的な階調曲線がメモリ24から読み出されるが、入力
手段8から曇天用の階調曲線を読み出す旨が入力されて
いる場合は、曇天用の階調曲線が読み出され、逆光用の
階調曲線を読み出す旨が入力されている場合は、逆光用
の階調曲線が読み出され、近接ストロボ用の階調曲線を
読み出す旨が入力されている場合には、近接ストロボ用
の階調曲線が読み出される。In the gradation setting means 23, a gradation conversion table T0 for performing gradation conversion of the image data S1 is set as follows. FIG. 3 is a diagram for explaining the setting of the gradation conversion table T0. The gradation conversion table T0 includes color data R1 and G constituting the image data S1.
1, B1 from the first quadrant to the fourth quadrant, and performs gradation conversion to form color data R2, G2, B2 constituting image data S2.
Is what you get. In the gradation setting means 23, a gradation conversion table T0 is set for each of the RGB colors. First, the setting information H0 is input to the gradation setting means 23, and based on the camera type information in the setting information H0,
A gradation curve corresponding to the camera type information is read from the memory 24. On the other hand, a default standard gradation curve is read out from the memory 24 as a reference gradation curve. Is read, and if it is input that the backlight gradation curve is to be read, the backlight gradation curve is read, and if the reading of the proximity strobe gradation curve has been input. Reads out a gradation curve for a proximity strobe.
【0028】カメラ種別の階調曲線C1は図3に示すよ
うに第1象限に設定される。ここで、デジタルカメラに
おいては、デジタルカメラの製造メーカーや機種などの
カメラの種別に応じて、再生画像の画質が異なるもので
ある。したがって、この階調曲線C1は、カメラ種別に
拘わらず一定品質の画像を得るために、個々のカメラの
階調特性を吸収するようにカメラ種別に応じて作成され
てなるものである。なお、この階調曲線C1により色デ
ータR1,G1,B1を変換すると、カメラ内の階調特
性を補償した対数露光量を表すデータが得られることと
なる。The gradation curve C1 for each camera type is set in the first quadrant as shown in FIG. Here, in a digital camera, the image quality of a reproduced image differs depending on the type of camera, such as the manufacturer and model of the digital camera. Therefore, the gradation curve C1 is created according to the camera type so as to absorb the gradation characteristics of each camera in order to obtain an image of constant quality regardless of the camera type. When the color data R1, G1, and B1 are converted by the gradation curve C1, data representing a logarithmic exposure amount in which the gradation characteristics in the camera are compensated is obtained.
【0029】第2象限には露光量を補正する直線C2が
設定される。この露光量を補正する直線C2は基本的に
は原点を通る直線であるが、設定情報H0に含まれる露
光量およびホワイトバランスを補正するための補正量に
基づいてこの直線C2を矢印A方向に平行移動させるこ
とにより露光量が補正される。そしてこの直線C2によ
り、プリントに適したAE/AWB処理が施され、実被
写体の反射濃度を表すデータが得られることとなる。In the second quadrant, a straight line C2 for correcting the exposure amount is set. Although the straight line C2 for correcting the exposure amount is basically a straight line passing through the origin, the straight line C2 is moved in the direction of arrow A based on the exposure amount included in the setting information H0 and the correction amount for correcting the white balance. The amount of exposure is corrected by the parallel movement. Then, AE / AWB processing suitable for printing is performed on the straight line C2, and data representing the reflection density of the actual subject is obtained.
【0030】第3象限には、基準階調曲線が設定され
る。なお、ここでは標準の階調曲線C3が設定されたも
のとする。この標準の階調曲線C3はS字状の曲線とな
っており、中間部はγ=1.6に相当するものとなって
いる。ここで、本実施形態においては階調曲線C3によ
る変換をγ変換と称する。そしてこの階調曲線C3によ
りプリントに適した濃度データを得ることができる。In the third quadrant, a reference gradation curve is set. Here, it is assumed that a standard gradation curve C3 is set. The standard gradation curve C3 is an S-shaped curve, and the middle portion corresponds to γ = 1.6. Here, in the present embodiment, the conversion based on the gradation curve C3 is referred to as γ conversion. Then, density data suitable for printing can be obtained from the gradation curve C3.
【0031】第4象限には、画像のハイライト部および
シャドー部を非線形に補正する階調曲線C4が設定され
る。この階調曲線C4の補正量は、設定情報H0に含ま
れるハイライト部およびシャドー部の修正量に応じて定
められる。そしてこの階調曲線C4により画像データS
2を構成する色データR2,G2,B2を得ることがで
きる。In the fourth quadrant, a gradation curve C4 for nonlinearly correcting a highlight portion and a shadow portion of an image is set. The correction amount of the gradation curve C4 is determined according to the correction amount of the highlight portion and the shadow portion included in the setting information H0. Then, the image data S is obtained by the gradation curve C4.
2, color data R2, G2, and B2 can be obtained.
【0032】なお、この階調変換テーブルT0は入力手
段8および/またはDCMYキー9の入力に応じて変更
される。ここで、DCMYキー9の押下によって、モニ
タ7に表示されるインデックス画像のC,M,Yがシフ
トするが、ここではC,M,Yのシフト量をR,G,B
濃度のシフト量に変換して階調変換テーブルT0を変更
するものである。すなわち、DCMYキー9の押下の回
数に応じたR,G,B濃度のシフト量があらかじめ設定
されており、DCMYキー9の押下の回数に応じてR,
G,Bの濃度が変更される。具体的には、第2象限の直
線C2をDCMYキー9の押下回数に応じて矢印A方向
に平行移動させることにより、R,G,Bの濃度が変更
される。さらに、入力手段8からの入力によっては、第
1象限の階調曲線C1あるいは第3象限の階調曲線C3
のγの値が変更される。この場合、インデックス画像と
ともに各色毎の階調曲線C1,C3をモニタ7に表示
し、インデックス画像を観察しながらユーザが所望とす
る階調となるように入力手段8を用いて階調曲線C1,
C3を変更すればよい。そして、このように階調曲線C
1、直線C2および/または階調曲線C3を変更するこ
とにより、階調変換テーブルT0が変更される。The gradation conversion table T0 is changed according to the input of the input means 8 and / or the DCMY key 9. Here, when the DCMY key 9 is pressed, C, M, and Y of the index image displayed on the monitor 7 are shifted. Here, the shift amounts of C, M, and Y are set to R, G, and B.
This is to change the gradation conversion table T0 by converting to a density shift amount. That is, the shift amounts of the R, G, and B densities according to the number of times the DCMY key 9 is pressed are set in advance, and the R, G, and B density values are set according to the number of times the DCMY key 9 is pressed.
The concentrations of G and B are changed. Specifically, the density of R, G, and B is changed by moving the straight line C2 in the second quadrant in the direction of arrow A in accordance with the number of times the DCMY key 9 is pressed. Further, depending on the input from the input means 8, the gradation curve C1 in the first quadrant or the gradation curve C3 in the third quadrant may be used.
Is changed. In this case, the gradation curves C1 and C3 for each color are displayed on the monitor 7 together with the index image, and the input means 8 is used to observe the index image so that the gradation curves C1 and C3 can be obtained as desired by the user.
What is necessary is just to change C3. Then, as described above, the gradation curve C
1. The gradation conversion table T0 is changed by changing the straight line C2 and / or the gradation curve C3.
【0033】階調変換手段22は、階調設定手段23に
おいて設定された階調変換テーブルT0により画像デー
タS1を変換して画像データS2を得る。The gradation conversion means 22 converts the image data S1 according to the gradation conversion table T0 set by the gradation setting means 23 to obtain image data S2.
【0034】なお、対数変換手段21、階調変換手段2
2、および逆対数変換手段25ではRGB色空間にて全
ての処理が行われるものである。The logarithmic conversion means 21 and the gradation conversion means 2
2, and the antilogarithmic conversion unit 25 performs all the processes in the RGB color space.
【0035】LCH変換手段26は画像データS3をR
GB色空間からL*a*b*色空間に変換するとともに、
明度L*、彩度(クロマ値)C*および色相角HAを表す
データL3,C3,H3を得るものである。以下、この
変換について説明する。デジタルカメラにおいて取得さ
れる画像データS0は、ITU−R BT.709(R
EC.709)に準拠しているため、下記の式(4)に
基づいて画像データS3を構成する色データR3,G
3,B3がCIE1931三刺激値X,Y,Zに変換さ
れる。The LCH conversion means 26 converts the image data S3 into R
While converting from the GB color space to the L * a * b * color space,
Data L3, C3, and H3 representing lightness L * , chroma (chroma value) C *, and hue angle HA are obtained. Hereinafter, this conversion will be described. Image data S0 acquired by the digital camera is based on ITU-R BT. 709 (R
EC. 709), the color data R3, G constituting the image data S3 based on the following equation (4).
3, B3 are converted to CIE1931 tristimulus values X, Y, Z.
【0036】 X R3 Y =|A|・ G3 (4) Z B3 ここで、マトリクス|A|は、色データR3,G3,B
3を三刺激値X,Y,Zに変換するためのマトリクスで
あり、例えば以下のような値を用いることができる。X R3 Y = | A | · G3 (4) Z B3 Here, the matrix | A | is the color data R3, G3, B
3 is a matrix for converting 3 into tristimulus values X, Y, and Z. For example, the following values can be used.
【0037】 0.4124 0.3576 0.1805 |A| = 0.2126 0.7152 0.0722 (5) 0.0193 0.1192 1.0571 なお、マトリクス|A|に代えて、ルックアップテーブ
ルにより三刺激値X,Y,Zを求めるようにしてもよ
い。0.4124 0.3576 0.1805 | A | = 0.2126 0.7152 0.0722 (5) 0.0193 0.1192 1.0571 Instead of the matrix | A |, the tristimulus values X, Y, and Z may be obtained by a look-up table.
【0038】次に、三刺激値X,Y,Zから下記の式
(6)〜(8)によりCIE1976L*(=L3)、
クロマ値C*(=C3)および色相角HA(=H3)を
求める。Next, from the tristimulus values X, Y, and Z, CIE1976L * (= L3) by the following equations (6) to (8):
The chroma value C * (= C3) and the hue angle HA (= H3) are obtained.
【0039】 a*=500{f(X/Xn)−f(Y/Yn)} b*=200{f(Y/Yn)−f(Z/Zn)} (6) L*=116(Y/Yn)1/3−16(Y/Yn>0.008856のとき) L*=903.25(Y/Yn)(Y/Yn≦0.008856のとき) ここで、 X/Xn,Y/Yn,Z/Zn>0.008856のとき f(a/an)=(a/an)1/3(a=X,Y,Z) X/Xn,Y/Yn,Z/Zn≦0.008856のとき f(a/an)=7.787(a/an)+16/11
6 なお、Xn,Yn,Znは白色に対する三刺激値であ
り、CIE−D65(色温度が6500Kの光源)に対
応する三刺激値により代用することができる。A * = 500 {f (X / Xn) -f (Y / Yn)} b * = 200 {f (Y / Yn) -f (Z / Zn)} (6) L * = 116 (Y / Yn) 1/3 -16 (when Y / Yn> 0.008856) L * = 903.25 (Y / Yn) (when Y / Yn ≦ 0.008856) where X / Xn, Y / Yn, Z / When Zn> 0.008856 f (a / an) = (a / an) 1/3 (a = X, Y, Z) When X / Xn, Y / Yn, Z / Zn ≦ 0.008856 f (a / an) = 7.787 (a / an) +16/11
6 Xn, Yn, and Zn are tristimulus values for white, and can be substituted by tristimulus values corresponding to CIE-D65 (a light source with a color temperature of 6500K).
【0040】 C*=(a*2+b*2)1/2 (7) HA=tan-1(b*/a*) (8) 色補正手段27は、R、G、B、C、M、Y、YellowGr
een(YG)、BlueSky(BS)、ハイライト側の肌色S
K(HL)、中間濃度の肌色SK(MD)およびシャド
ー側の肌色SK(SD)の11色についての明度、彩度
および色相を補正する。具体的には、下記の式(9)〜
(11)に示すようにデータL3,C3,H3を補正し
て補正データL4,C4,H4を得る。C * = (a * 2 + b * 2 ) 1/2 (7) HA = tan −1 (b * / a * ) (8) The color correction means 27 includes R, G, B, C, M , Y, YellowGr
een (YG), BlueSky (BS), highlight color S
The lightness, saturation, and hue of 11 colors of K (HL), the skin color SK (MD) of the intermediate density, and the skin color SK (SD) on the shadow side are corrected. Specifically, the following expressions (9) to
As shown in (11), the data L3, C3, and H3 are corrected to obtain corrected data L4, C4, and H4.
【0041】[0041]
【数1】 但し、i:R、G、B、C、M、Y、SK、BS j:SK(HL)、SK(MD)、SK(SD) LPi、LPj:明度変更度 CPi、CPj:彩度変更度 HPi、HPj:色相変更度 Wi、Wj:強度関数 Δl:階調変更に伴う明度変更分 Δc:階調変更に伴う彩度変更分 Δh:階調変更に伴う色相変更分 明度変更度LPi,LPj、彩度変更度CPi,CPj
および色相変更度HPi,HPjは、メモリ31に記憶
された色補正メニューにより設定される。図4は色補正
メニューを示す図である。ここで、メモリ31には、全
てのデータL3,C3,H3に対して共通の色補正を行
うための基準色補正メニューと、カメラ種別に応じた色
補正を行うための機種色補正メニューとが記憶されてい
る。そして、色補正手段27に設定情報H0が入力され
ると、この設定情報H0に含まれるカメラ種情報に基づ
いて、そのカメラ種別に応じた機種色補正メニューがメ
モリ31から読み出される。一方、基準色補正メニュー
としてデフォルトの標準的な色補正メニューがメモリ3
1から読み出されるが、入力手段8から曇天用の色補正
メニューを読み出す旨が入力されている場合は、曇天用
の色補正メニューが読み出され、逆光用の色補正メニュ
ーを読み出す旨が入力されている場合は、逆光用の色補
正メニューが読み出され、近接ストロボ用の色補正メニ
ューを読み出す旨が入力されている場合には近接ストロ
ボ用の色補正メニューが読み出される。ここで、色補正
メニューには、明度、彩度および色相をどの程度修正す
べきかを表す数値が設定されており、色補正手段27は
基準色補正メニューおよび機種色補正メニューにおいて
設定された数値並びに後述するように色補正量設定手段
32において設定された補正量にしたがって、式(9)
〜(11)における明度変更度LPi,LPj、彩度変
更度CPi,CPjおよび色相変更度HPi,HPjを
設定する。なお、各色における変更度は、基準色補正メ
ニューと機種色補正メニューと色補正量設定手段32に
おいて設定された補正量の数値の和として得られる。(Equation 1) Here, i: R, G, B, C, M, Y, SK, BS j: SK (HL), SK (MD), SK (SD) LPi, LPj: Lightness change degree CPi, CPj: Saturation change degree HPi, HPj: Hue change degree Wi, Wj: Intensity function Δl: Lightness change due to gradation change Δc: Saturation change due to gradation change Δh: Hue change due to gradation change Lightness change degrees LPi, LPj , Saturation change degree CPi, CPj
The hue change degrees HPi and HPj are set by a color correction menu stored in the memory 31. FIG. 4 shows a color correction menu. Here, the memory 31 has a reference color correction menu for performing common color correction on all the data L3, C3, and H3, and a model color correction menu for performing color correction according to the camera type. It is remembered. When the setting information H0 is input to the color correction means 27, a model color correction menu corresponding to the camera type is read from the memory 31 based on the camera type information included in the setting information H0. On the other hand, a default standard color correction menu is stored in the memory 3 as a reference color correction menu.
However, if the input means 8 inputs that the color correction menu for cloudy weather is read, the color correction menu for cloudy weather is read, and the color correction menu for backlight is input. In this case, the backlight correction color correction menu is read, and when the instruction to read the close strobe color correction menu is input, the close strobe color correction menu is read. Here, in the color correction menu, numerical values indicating how much the lightness, saturation, and hue should be corrected are set, and the color correction unit 27 sets the numerical values set in the reference color correction menu and the model color correction menu, and According to the correction amount set by the color correction amount setting means 32 as described later, Expression (9)
The brightness change degrees LPi and LPj, the saturation change degrees CPi and CPj, and the hue change degrees HPi and HPj in (11) to (11) are set. The degree of change for each color is obtained as the sum of the reference color correction menu, the model color correction menu, and the numerical value of the correction amount set by the color correction amount setting means 32.
【0042】強度関数Wiは下記の式(12)により定
められる。The intensity function Wi is determined by the following equation (12).
【0043】 Wi=F(d) d=√((Li−L)2+(ai−a)2+(bi−b)2) (12) ここで、Li,ai,biはR、G、B、C、M、Y、
YG、BSのL*a*b*色空間における中心色であり、
R、G、B、C、M、Yについてはマクベスカラーチェ
ッカー(登録商標;米国コールモージェン社マクベス部
門(Macbeth A division kollmorgen)製)の各色の測
色値、YGおよびBSについては画像データS0により
表される画像の緑葉および空の部分の平均的な測色値と
する。また、dは、中心色Li,ai,biとLCH変
換手段26において得られるL*,a*,b*の値とのL*
a*b*色空間における距離であり、F(d)は、例えば
図5に示すように、距離dが所定値(ここでは30)ま
では一定の値を有し、所定値よりも距離dが大きくなる
と値が小さくなるような関数である。Wi = F (d) d = √ ((Li−L) 2 + (ai−a) 2 + (bi−b) 2 ) (12) where Li, ai, and bi are R, G, B, C, M, Y,
This is the center color in the L * a * b * color space of YG and BS,
R, G, B, C, M, and Y are colorimetric values of each color of Macbeth Color Checker (registered trademark; manufactured by Macbeth A division kollmorgen), and YG and BS are image data S0. Are the average colorimetric values of the green leaves and the sky portion of the image represented by Also, d is L * between the center colors Li, ai, bi and the values of L * , a * , b * obtained in the LCH conversion means 26 .
A distance in the a * b * color space, and F (d) has a constant value until the distance d reaches a predetermined value (here, 30) as shown in FIG. 5, for example. This is a function such that the value becomes smaller as becomes larger.
【0044】一方、強度関数Wjは肌色用の強度関数で
あり、画像データS0により表される画像のL*a*b*
色空間におけるハイライト側の肌色SK(HL)、中間
濃度の肌色SK(MD)およびシャドー側の肌色SK
(SD)の統計的な分布範囲を求め、その分布において
図6に示すように、周辺部の値が小さく中心部の値が大
きくなる(但し0≦Wj≦1)ように設定されている。On the other hand, the intensity function Wj is an intensity function for flesh color, and L * a * b * of the image represented by the image data S0 .
The skin color SK (HL) on the highlight side in the color space, the skin color SK (MD) of the intermediate density, and the skin color SK on the shadow side
The statistical distribution range of (SD) is obtained, and in the distribution, as shown in FIG. 6, the value of the peripheral portion is set to be small and the value of the central portion is set to be large (however, 0 ≦ Wj ≦ 1).
【0045】なお、図7に示すようにモニタ7に表示さ
れたインデックス画像の1つにおいて、上述したR、
G、B、C、M、Y、YG、BS、SK(HL)、SK
(MD)、SK(SD)以外の任意の色を指定し、指定
した色を中心色としてその色の変更度を設定して上記式
(9)から(11)にその色の変更を反映させてもよ
い。この場合、図7の点A,Bが指定されたとすると、
点A,Bを中心とした5×5の範囲の色が求められ、そ
の色について図8に示すように色補正メニューが設定さ
れ、上記式(9)から(11)により補正データL4,
C4,H4が求められる。In one of the index images displayed on the monitor 7 as shown in FIG.
G, B, C, M, Y, YG, BS, SK (HL), SK
An arbitrary color other than (MD) and SK (SD) is designated, the degree of change of the color is set with the designated color as the center color, and the change of the color is reflected in the above equations (9) to (11). You may. In this case, if points A and B in FIG. 7 are designated,
A color in a 5 × 5 range around the points A and B is obtained, and a color correction menu is set for the color as shown in FIG. 8, and the correction data L4 and
C4 and H4 are required.
【0046】Δl,Δc,Δhは、階調設定手段23の
第4象限で設定される非線形な階調変換に伴う肌色の明
度、彩度、色相の変化分であり、下記のようにして求め
られる。すなわち、階調変換前の色データR1,G1,
B1および階調変換後の色データR2,G2,B2に対
して、上記式(4)〜(8)の処理および逆対数変換手
段25における処理を施して、各画素毎に明度L*、ク
ロマ値C*および色相角HAの変化量ΔL*、ΔC*およ
びΔHAを算出する。そして、下記の式(13)〜(1
5)に示すように、変化量ΔL*、ΔC*およびΔHAと
図6に示す肌色用の強度関数Wjとを乗算することによ
り、Δl,Δc,Δhを求めることができる。.DELTA.l, .DELTA.c and .DELTA.h are changes in lightness, saturation and hue of flesh color due to the non-linear gradation conversion set in the fourth quadrant of the gradation setting means 23, and are obtained as follows. Can be That is, the color data R1, G1,
B1 and the color data R2, G2, and B2 after the gradation conversion are subjected to the processing of the above equations (4) to (8) and the processing in the antilogarithmic conversion means 25, and the brightness L * , the chroma The change amounts ΔL * , ΔC *, and ΔHA of the value C * and the hue angle HA are calculated. Then, the following equations (13) to (1)
As shown in 5), Δl, Δc, Δh can be obtained by multiplying the variation amounts ΔL * , ΔC *, and ΔHA by the skin color intensity function Wj shown in FIG.
【0047】 Δl=ΔL*×Wj (13) Δc=ΔC*×Wj (14) Δh=ΔHA×Wj (15) 色補正量設定手段32は以下のようにして明度、彩度お
よび色相の補正量を設定する。色補正量設定手段32に
は階調処理が施された画像データS3および画像データ
S3により表される画像の明度、彩度および色相を表す
データL3,C3,H3が入力され、まず画像データS
3により表される画像から例えば特許第2763221
号などに記載された方法により肌色領域を抽出する。な
お、この特許第2763221号の方法は、カラー画像
上に色相が同一または類似の色領域を求め、求めた色領
域の境界部位に内接する円または長円を想定し、面積の
大きな円または長円から順に色領域を分割し、分割され
た領域のうち少なくとも1つの領域を人物の顔の肌色領
域として抽出するものである。そして、抽出された肌色
領域に対応するデータL3,C3,H3の平均値すなわ
ち抽出された肌色領域の明度、彩度および色相の平均値
La,Ca,Haを求める。なお、肌色領域が複数抽出
された場合は、各領域について平均値La,Ca,Ha
が求められる。Δl = ΔL * × Wj (13) Δc = ΔC * × Wj (14) Δh = ΔHA × Wj (15) The color correction amount setting means 32 corrects the brightness, saturation and hue as follows. Set. The color correction amount setting means 32 receives image data S3 subjected to gradation processing and data L3, C3, and H3 representing lightness, saturation, and hue of an image represented by the image data S3.
3 from the image represented by, for example, Japanese Patent No. 2762221.
The skin color area is extracted by the method described in the reference number. In the method of Japanese Patent No. 2763221, a color area having the same or similar hue is obtained on a color image, a circle or an ellipse inscribed at a boundary portion of the obtained color area is assumed, and a circle or a long area having a large area is obtained. The color area is divided in order from a circle, and at least one of the divided areas is extracted as a skin color area of a person's face. Then, the average value of the data L3, C3, and H3 corresponding to the extracted flesh color region, that is, the average values La, Ca, and Ha of the brightness, saturation, and hue of the extracted flesh color region are obtained. When a plurality of skin color regions are extracted, the average values La, Ca, Ha for each region are extracted.
Is required.
【0048】ここで、色補正量設定手段32において
は、下記の式(16)に示すように、肌色領域の明るさ
に応じて3段階の好ましい肌色の明度、彩度および色相
が設定されている。Here, in the color correction amount setting means 32, as shown in the following equation (16), three preferred levels of skin color brightness, saturation and hue are set according to the brightness of the skin color area. I have.
【0049】 80<Laの場合、Lh,Ch,Hh 40<La≦80の場合、Lm,Cm,Hm (16) La≦40の場合、Ls,Cs,Hs 但し、Lh,Ch,Hhは明るい好ましい肌の明度、彩
度および色相、Lm,Cm,Hmは中間の明るさの好ま
しい肌の明度、彩度および色相、Ls,Cs,Hsは暗
い好ましい肌の明度、彩度および色相をそれぞれ表す。When 80 <La, Lh, Ch, Hh When 40 <La ≦ 80, Lm, Cm, Hm (16) When La ≦ 40, Ls, Cs, Hs where Lh, Ch, Hh are bright Preferred lightness, saturation and hue of the skin, Lm, Cm and Hm represent the lightness, saturation and hue of the preferred medium skin, and Ls, Cs and Hs represent the brightness, saturation and hue of the preferred dark skin, respectively. .
【0050】そして、抽出された肌色領域の明るさに応
じて、下記の式(17)〜(19)に示すように、その
肌色領域の平均値La,Ca,HaとLh,Ch,H
h、Lm,Cm,HmまたはLs,Cs,Hsとの差分
を求め、ロワードに補正するための係数β(0≦β≦
1)を乗算し、肌色領域の明るさに応じた明度、彩度お
よび色相の補正量ΔLh,ΔCh,ΔHh、ΔLm,Δ
Cm,ΔHm、ΔLs,ΔCs,ΔHsを求める。Then, according to the brightness of the extracted flesh-colored area, the average values La, Ca, Ha and Lh, Ch, H of the flesh-colored area are calculated as shown in the following equations (17) to (19).
h, Lm, Cm, Hm or a difference from Ls, Cs, Hs, and a coefficient β (0 ≦ β ≦
1), and the correction amounts ΔLh, ΔCh, ΔHh, ΔLm, Δ of the lightness, saturation, and hue according to the brightness of the skin color region
Cm, ΔHm, ΔLs, ΔCs, and ΔHs are obtained.
【0051】 ΔLh=β(Lh−La) ΔCh=β(Ch−Ca) (17) ΔHh=β(Hh−Ha) ΔLm=β(Lm−La) ΔCm=β(Cm−Ca) (18) ΔHm=β(Hm−Ha) ΔLs=β(Ls−La) ΔCs=β(Cs−Ca) (19) ΔHs=β(Hs−Ha) なお、平均値La,Ca,Haが明るい肌、中間の明る
さの肌、および暗い肌にどの程度の割合で属しているか
を表す所属度を求めるためのメンバーシップ関数(所属
度関数)を設定しておき、各肌色領域の平均値La,C
a,Haに基づいて、各肌色領域の明るい肌、中間の明
るさの肌、および暗い肌への所属度a,b,c(但しa
+b+c=1)を求め、この所属度a,b,cに基づい
て下記の式(20)から(22)に示すように、肌色領
域の明るさに応じた明度、彩度および色相の補正量ΔL
h,ΔCh,ΔHh、ΔLm,ΔCm,ΔHm、ΔL
s,ΔCs,ΔHsを求めるようにしてもよい。ΔLh = β (Lh−La) ΔCh = β (Ch−Ca) (17) ΔHh = β (Hh−Ha) ΔLm = β (Lm−La) ΔCm = β (Cm−Ca) (18) ΔHm = Β (Hm−Ha) ΔLs = β (Ls−La) ΔCs = β (Cs−Ca) (19) ΔHs = β (Hs−Ha) Note that the average values La, Ca, and Ha are bright skin, medium brightness. A membership function (affiliation function) for determining the degree of affiliation indicating how much the skin color and the dark skin belong to each other is set, and the average value La, C of each skin color area is set.
a, b, and c (where a, b, and c) belong to the bright skin, the medium-brightness skin, and the dark skin in each skin color area based on a and Ha.
+ B + c = 1), and based on the affiliations a, b, and c, as shown in the following equations (20) to (22), the correction amounts of the brightness, saturation, and hue corresponding to the brightness of the skin color area ΔL
h, ΔCh, ΔHh, ΔLm, ΔCm, ΔHm, ΔL
s, ΔCs, and ΔHs may be obtained.
【0052】ΔLh=aβ(Lh−La) ΔCh=aβ(Ch−Ca) (20) ΔHh=aβ(Hh−Ha) ΔLm=bβ(Lm−La) ΔCm=bβ(Cm−Ca) (21) ΔHm=bβ(Hm−Ha) ΔLs=cβ(Ls−La) ΔCs=cβ(Cs−Ca) (22) ΔHs=cβ(Hs−Ha) sRGB変換手段28は、補正データL4,C4,H4
について、上記式(7)、(8)を逆に解くことによ
り、補正後のa*,b*を求め、この補正後のa*,b*お
よびL*について、式(6)を逆に解くことにより補正
後の三刺激値X5,Y5,Z5を求める。そして、下記
の式(23)により三刺激値X5,Y5,Z5を色デー
タR4′,G4′,B4′に変換する。ΔLh = aβ (Lh−La) ΔCh = aβ (Ch−Ca) (20) ΔHh = aβ (Hh−Ha) ΔLm = bβ (Lm−La) ΔCm = bβ (Cm−Ca) (21) ΔHm = Bβ (Hm−Ha) ΔLs = cβ (Ls−La) ΔCs = cβ (Cs−Ca) (22) ΔHs = cβ (Hs−Ha) The sRGB conversion means 28 corrects the correction data L4, C4, H4.
By solving the above equations (7) and (8) in reverse, the corrected a * and b * are obtained. For the corrected a * , b * and L * , the equation (6) is reversed. By solving, the corrected tristimulus values X5, Y5, Z5 are obtained. Then, the tristimulus values X5, Y5, Z5 are converted into color data R4 ', G4', B4 'by the following equation (23).
【0053】 R4′ X5 G4′=|A|-1・Y5 (23) B4′ Z5 さらに、下記の式(24)により色データR4,G4,
B4を得、これをモニタ7表示用のsRGB色空間の色
補正画像データS4とする。R4 ′ X5 G4 ′ = | A | −1 · Y5 (23) B4 ′ Z5 Further, the color data R4, G4,
B4 is obtained and used as color correction image data S4 in the sRGB color space for display on the monitor 7.
【0054】 R4=255×((R4′+0.055)/1.055)2.4 G4=255×((G4′+0.055)/1.055)2.4 (0.03929≦R4′,G4′,B4′≦1) B4=255×((B4′+0.055)/1.055)2.4 R4=255×R4′/12.92 G4=255×G4′/12.92 (0≦R4′,G4′,B4′<0.03929) B4=255×B4′/12.92 (24) プリンタ変換手段29は、sRGB色空間の色補正画像
データS4をプリント用の色空間に変換する3DLUT
により色補正画像データS4を変換してプリンタ用画像
データS5を得る。R4 = 255 × ((R4 ′ + 0.055) /1.055) 2.4 G4 = 255 × ((G4 ′ + 0.055) /1.055) 2.4 (0.03929 ≦ R4 ′, G4 ′, B4 ′ ≦ 1) B4 = 255 × ((B4 ′ + 0.055) /1.055) 2.4 R4 = 255 × R4 ′ / 12.92 G4 = 255 × G4 ′ / 12.92 (0 ≦ R4 ′, G4 ′, B4 ′ <0.03929) B4 = 255 × B4 '/12.92 (24) The printer conversion unit 29 converts the color correction image data S4 in the sRGB color space into a color space for printing.
To convert the color correction image data S4 to obtain printer image data S5.
【0055】LUT作成手段30は、画像データS0を
構成する色データR0,G0,B0とプリント用画像デ
ータS5を構成する色データR5,G5,B5との対応
関係を各色毎に求め、これを333の3次元のルックア
ップテーブル(3DLUT)とする。The LUT creating means 30 obtains, for each color, the correspondence between the color data R0, G0, B0 constituting the image data S0 and the color data R5, G5, B5 constituting the printing image data S5. and 33 3 of the three-dimensional look-up table (3DLUT).
【0056】なお、3DLUT作成手段6にはインデッ
クス画像データS11が入力されて階調変換処理が施さ
れるが、インデックス画像データS11についてはビッ
ト数を低減することなく、階調変換手段22において階
調変換テーブルT0を用いた階調変換処理のみが施さ
れ、色補正手段27における色補正処理は施されること
なくsRGB色空間に変換されて、階調変換処理が施さ
れたインデックス画像データS11′として出力され
る。この際、インデックス画像データS11は3DLU
Tの作成には用いられないため、階調設定手段23にお
いてDCMYキー9の押下あるいは階調曲線の変更によ
る濃度シフトを反映させて逐次設定される階調変換テー
ブルT0により、階調変換手段22において逐次階調変
換がなされてインデックス画像データS11′として出
力される。これにより、階調が変更されたインデックス
画像をリアルタイムでモニタ7に表示することができ
る。The 3DLUT creating means 6 receives the index image data S11 and performs a gradation conversion process. The gradation conversion processing is performed on the index image data S11 by the gradation conversion means 22 without reducing the number of bits. Only the tone conversion process using the tone conversion table T0 is performed, the color image is converted into the sRGB color space without being subjected to the color correction process in the color correction unit 27, and the index image data S11 subjected to the tone conversion process. '. At this time, the index image data S11 is 3DLU
Since the tone conversion table T0 is not used to create the T, the tone setting means 23 uses the tone conversion table T0 which is sequentially set by reflecting the density shift due to the depression of the DCMY key 9 or the change of the tone curve. Are sequentially subjected to gradation conversion and output as index image data S11 '. Thereby, the index image whose gradation has been changed can be displayed on the monitor 7 in real time.
【0057】図1に戻り、3DLUT作成手段6におい
て作成された3DLUTは処理手段10に入力される。
そして画像データS0が3DLUTにより変換されて変
換画像データS12が得られる。この際、3DLUTは
333のデータにより作成されているため、変換画像デ
ータS12を構成する色データは、例えば特開平2−8
7192号に記載されたように、3DLUTを体積補間
あるいは面積補間することにより求められる。Returning to FIG. 1, the 3DLUT created by the 3DLUT creating means 6 is input to the processing means 10.
Then, the image data S0 is converted by the 3DLUT to obtain converted image data S12. At this time, since the 3DLUT is created by 33 third data, the color data constituting the converted image data S12,, for example, JP-A-2-8
As described in No. 7192, the 3DLUT is obtained by volume interpolation or area interpolation.
【0058】ところで、画像データS0を取得したデジ
タルカメラの画素数は種々のものがあり、プリントに必
要な画素数に満たないものあるいはプリントに必要な画
素数以上の画素数を有するものがある。このため、画像
データS0がプリントに必要な画素数以上の画素数を有
する場合、処理手段10の前段において縮小手段11に
より画像データS0を縮小して縮小画像データS0′を
得、縮小画像データS0′を3DLUTにより変換して
変換画像データS12を得る。一方、画像データS0が
プリントに必要な画素数に満たない場合、処理手段10
の後段において処理手段10において得られた変換画像
データS12を拡大手段12により拡大して拡大画像デ
ータS12′を得る。The number of pixels of the digital camera that has acquired the image data S0 is various, and some of them have a pixel number less than the number required for printing or a number larger than the number required for printing. For this reason, when the image data S0 has the number of pixels equal to or larger than the number of pixels necessary for printing, the reduction unit 11 reduces the image data S0 at the previous stage of the processing unit 10 to obtain reduced image data S0 ', and the reduced image data S0 Is converted by the 3DLUT to obtain converted image data S12. On the other hand, if the image data S0 is less than the number of pixels required for printing,
In the subsequent stage, the converted image data S12 obtained by the processing means 10 is enlarged by the enlargement means 12 to obtain enlarged image data S12 '.
【0059】シャープネス処理手段13は、例えば下記
の式(25)により、変換画像データS12または拡大
画像データS12′に対してシャープネス処理を施して
処理済み画像データS13を得る。なお、式(25)に
おいては変換画像データS12にシャープネス処理を施
している。The sharpness processing means 13 performs a sharpness process on the converted image data S12 or the enlarged image data S12 'according to, for example, the following equation (25) to obtain processed image data S13. In equation (25), the converted image data S12 is subjected to sharpness processing.
【0060】 S13=S12+γ(S12−S12us) (25) 但し、S12us:変換画像データS12のボケ画像デー
タ γ:強調度 なお、強調度γを縮小手段11による縮小率または拡大
手段12による拡大率に応じて変更してもよい。S13 = S12 + γ (S12−S12us) (25) where S12us: the blurred image data of the converted image data S12 γ: the emphasis degree The emphasis degree γ is set to the reduction ratio by the reduction unit 11 or the enlargement ratio by the enlargement unit 12. It may be changed accordingly.
【0061】次いで、本実施形態の動作について説明す
る。図9は本実施形態の動作を示すフローチャートであ
る。まず、デジタルカメラにより撮影を行うことにより
得られた画像データS0が記憶されたメモリカード2か
ら読出手段3において画像データS0が読み出される
(ステップS1)。インデックス画像作成手段4におい
ては、画像データS0のインデックス画像を表すインデ
ックス画像データS11が作成され(ステップS2)、
3DLUT作成手段6に入力される。一方、設定情報生
成手段5においては設定情報H0が生成され(ステップ
S3)、3DLUT作成手段6に入力される。Next, the operation of this embodiment will be described. FIG. 9 is a flowchart showing the operation of the present embodiment. First, the image data S0 is read by the reading means 3 from the memory card 2 in which the image data S0 obtained by photographing with the digital camera is stored (step S1). In the index image creating means 4, index image data S11 representing an index image of the image data S0 is created (step S2),
It is input to the 3DLUT creation means 6. On the other hand, the setting information generation means 5 generates the setting information H0 (step S3) and inputs it to the 3DLUT generation means 6.
【0062】3DLUT作成手段6の階調設定手段23
においては、設定情報H0に基づいて画像データS0を
変換するための階調変換テーブルT0が設定され(ステ
ップS4)、この階調変換テーブルT0に基づいて階調
変換手段22において、まず、インデックス画像データ
S11が階調変換されて(ステップS5)、色補正を行
うことなくモニタ7にインデックス画像が表示される
(ステップS6)。ユーザはこのインデックス画像を観
察し、必要があれば入力手段8あるいはDCMYキー9
からの入力により(ステップS7)、インデックス画像
の階調および/または濃度を修正する(ステップS
8)。そしてステップS4に戻り、修正された階調およ
び/または濃度に基づいて階調変換テーブルT0を新た
に設定し、新たに設定された階調変換テーブルT0によ
りインデックス画像データS11を階調変換してモニタ
7に表示するステップS4からステップS7の処理を繰
り返す。修正がない場合、あるいは修正が完了した場合
はステップS7が否定され、画像データS0に対して最
終的に設定された階調変換テーブルT0により階調変換
が施され(ステップS9)、さらに色補正が施される
(ステップS10)。さらに、sRGB色空間への変換
およびプリント用色空間への変換がなされて(ステップ
S11)、プリント用画像データS5が得られる。そし
て、LUT作成手段30において画像データS0とプリ
ント用画像データS5との対応関係がRGBの各色毎に
求められて3DLUTが作成され(ステップS12)、
処理を終了する。The gradation setting means 23 of the 3DLUT creating means 6
, A gradation conversion table T0 for converting the image data S0 is set based on the setting information H0 (step S4). The data S11 is subjected to gradation conversion (step S5), and an index image is displayed on the monitor 7 without performing color correction (step S6). The user observes the index image, and if necessary, inputs data 8 or DCMY key 9.
(Step S7), the gradation and / or density of the index image is corrected (step S7).
8). Then, returning to step S4, the tone conversion table T0 is newly set based on the corrected tone and / or density, and the index image data S11 is tone-converted by the newly set tone conversion table T0. The processing from step S4 to step S7 displayed on the monitor 7 is repeated. If there is no correction or the correction has been completed, step S7 is denied, and gradation conversion is performed on the image data S0 by the gradation conversion table T0 finally set (step S9), and color correction is further performed. Is performed (step S10). Further, conversion into the sRGB color space and conversion into the print color space are performed (step S11), and print image data S5 is obtained. Then, the LUT creation means 30 finds the correspondence between the image data S0 and the print image data S5 for each color of RGB, and creates a 3DLUT (step S12).
The process ends.
【0063】そして、メモリカード2から読み出された
画像データS0は、この3DLUTにより処理手段10
において変換され、必要であれば縮小手段11における
縮小処理、拡大手段12における拡大処理が施され、さ
らにシャープネス処理手段13においてシャープネス処
理が施され、プリンタ14においてプリントPとして出
力される。The image data S0 read from the memory card 2 is processed by the 3DLUT by the processing unit 10.
Are subjected to reduction processing by the reduction means 11 and enlargement processing by the enlargement means 12 if necessary, further subjected to sharpness processing by the sharpness processing means 13, and output as a print P by the printer 14.
【0064】このように、本実施形態においては、画像
データS0に対して階調変換処理を施した後の画像デー
タS3に基づいて色補正処理を行う際の補正量を設定す
るようにしたため、階調変換処理の結果を考慮して適切
な色が得られるような補正量を設定することができる。
したがって、この補正量に基づいて設定された3DLU
Tにより画像データS0に対して階調変換処理および色
補正処理を施せば、階調変換処理および色補正処理が互
いに影響を与え合うことなく、適切な階調および色を有
する画像を再現可能な処理済み画像データを得ることが
できる。As described above, in the present embodiment, the correction amount for performing the color correction process based on the image data S3 after the gradation conversion process is performed on the image data S0 is set. It is possible to set a correction amount such that an appropriate color is obtained in consideration of the result of the gradation conversion processing.
Therefore, the 3DLU set based on this correction amount
If the gradation conversion processing and the color correction processing are performed on the image data S0 by T, the image having the appropriate gradation and color can be reproduced without the gradation conversion processing and the color correction processing affecting each other. The processed image data can be obtained.
【0065】なお、上記実施形態においては、色補正量
設定手段32において肌色についての補正量を設定して
いるが、R、G、B、C、M、Y、YG、BSなどの他
の色についての補正量を設定してもよい。この場合、各
色を有する領域を画像データS3により表される画像か
ら抽出するとともに、その領域の平均値を求め、上記式
(17)から(19)に示すように、この平均値とあら
かじめ定められた好ましい色との差分に基づいて補正量
を求めればよい。また、画像全体についての補正量を設
定してもよい。この場合、画像全体の明度、彩度および
色相についての平均値を求め、この平均値とあらかじめ
定められた好ましい明度、彩度および色相との差分に基
づいて補正量を求めればよい。In the above-described embodiment, the correction amount for the skin color is set by the color correction amount setting means 32. However, other colors such as R, G, B, C, M, Y, YG, and BS are set. May be set. In this case, a region having each color is extracted from the image represented by the image data S3, and an average value of the region is determined. As shown in the above equations (17) to (19), this average value is determined in advance. The correction amount may be obtained based on the difference from the preferred color. Further, the correction amount for the entire image may be set. In this case, an average value of the brightness, saturation, and hue of the entire image may be obtained, and the correction amount may be obtained based on a difference between the average value and predetermined preferable brightness, saturation, and hue.
【0066】また、上記実施形態においては、本発明に
よる画像処理装置を3DLUTの作成に用いているが、
階調変換処理および色補正処理をリアルタイムで行うよ
うにしてもよい。また、本発明による画像処理装置を画
像出力装置に適用しているが、画像処理装置を単体で用
いてもよい。In the above embodiment, the image processing apparatus according to the present invention is used for creating a 3DLUT.
The gradation conversion processing and the color correction processing may be performed in real time. Although the image processing apparatus according to the present invention is applied to an image output apparatus, the image processing apparatus may be used alone.
【0067】さらに、上記実施形態においては、デジタ
ルカメラにより取得された画像データに対して階調変換
処理および色補正処理を施しているが、画像が記録され
た原稿やフイルムをスキャナにより読み取ることにより
得られた画像データに対しても、上記と同様に階調変換
処理および色補正処理を施すことができる。Further, in the above embodiment, the gradation conversion processing and the color correction processing are performed on the image data obtained by the digital camera, but the original or the film on which the image is recorded is read by the scanner. Gradation conversion processing and color correction processing can be performed on the obtained image data in the same manner as described above.
【図1】本発明の実施形態による画像処理装置を適用し
た画像出力装置の構成を示す概略ブロック図FIG. 1 is a schematic block diagram illustrating a configuration of an image output device to which an image processing device according to an embodiment of the present invention is applied.
【図2】3DLUT作成手段の構成を示す概略ブロック
図FIG. 2 is a schematic block diagram showing a configuration of a 3DLUT creating unit.
【図3】階調変換テーブルの設定を説明するための図FIG. 3 is a diagram for explaining setting of a gradation conversion table;
【図4】色補正メニューを示す図FIG. 4 is a diagram showing a color correction menu.
【図5】強度関数の例を示す図FIG. 5 is a diagram showing an example of an intensity function.
【図6】肌色用の強度関数の例を示す図FIG. 6 is a diagram showing an example of an intensity function for skin color.
【図7】モニタに表示されたインデックス画像の1つを
示す図FIG. 7 is a diagram showing one of the index images displayed on the monitor.
【図8】追加の色補正メニューを示す図FIG. 8 shows an additional color correction menu.
【図9】本実施形態の動作を示すフローチャートFIG. 9 is a flowchart showing the operation of the embodiment.
1 画像出力装置 2 メモリカード 3 読出手段 4 インデックス画像作成手段 5 設定情報生成手段 6 3DLUT作成手段 7 モニタ 8 入力手段 9 DCMYキー 10 処理手段 11 縮小手段 12 拡大手段 13 シャープネス処理手段 14 プリンタ 21 対数変換手段 22 階調変換手段 23 階調設定手段 24,31 メモリ 25 逆対数変換手段 26 LCH変換手段 27 色補正手段 28 sRGB変換手段 29 プリンタ変換手段 30 LUT生成手段 31 メモリ 32 色補正量設定手段 DESCRIPTION OF SYMBOLS 1 Image output device 2 Memory card 3 Reading means 4 Index image creating means 5 Setting information generating means 6 3DLUT creating means 7 Monitor 8 Input means 9 DCMY key 10 Processing means 11 Reduction means 12 Enlarging means 13 Sharpness processing means 14 Printer 21 Logarithmic conversion Means 22 Gradation conversion means 23 Gradation setting means 24, 31 Memory 25 Antilogarithmic conversion means 26 LCH conversion means 27 Color correction means 28 sRGB conversion means 29 Printer conversion means 30 LUT generation means 31 Memory 32 Color correction amount setting means
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 1/46 H04N 1/46 Z 5C079 9/79 9/79 H Fターム(参考) 2C087 AA15 AA16 BB10 BD31 BD35 BD36 2C262 AA24 AB11 AC08 BA02 BA09 BC01 BC10 BC13 EA02 FA14 FA20 5B057 CA01 CB01 CC03 CE11 CE17 5C055 AA05 AA06 BA06 BA08 EA05 EA06 FA22 GA00 HA17 HA37 5C077 LL19 MP08 PP15 PP32 PP33 PP35 PP37 PQ23 TT09 5C079 HB01 HB02 HB06 LA12 LB01 MA04 MA11 NA03 ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 7 Identification symbol FI theme coat ゛ (Reference) H04N 1/46 H04N 1/46 Z 5C079 9/79 9/79 HF term (Reference) 2C087 AA15 AA16 BB10 BD31 BD35 BD36 2C262 AA24 AB11 AC08 BA02 BA09 BC01 BC10 BC13 EA02 FA14 FA20 5B057 CA01 CB01 CC03 CE11 CE17 5C055 AA05 AA06 BA06 BA08 EA05 EA06 FA22 GA00 HA17 HA37 5C077 LL19 MP08 PP15 PP32 PP33 PP35 PP37 P01B03 H35 PP01
Claims (3)
び色補正処理を施して処理済み画像データを得る画像処
理方法において、 前記画像データに対して前記階調変換処理を施して階調
変換済み画像データを得、 該階調変換済み画像データに基づいて前記色補正処理を
行う際の補正量を設定し、 該補正量に基づいて前記階調変換済み画像データに対し
て前記色補正処理を施して前記処理済み画像データを得
ることを特徴とする画像処理方法。1. An image processing method for performing a gradation conversion process and a color correction process on image data to obtain processed image data, wherein the gradation conversion process is performed on the image data. Obtaining image data, setting a correction amount when performing the color correction process based on the gradation-converted image data, and performing the color correction process on the gradation-converted image data based on the correction amount. Image processing method to obtain the processed image data.
び色補正処理を施して処理済み画像データを得る画像処
理装置において、 前記画像データに対して前記階調変換処理を施して階調
変換済み画像データを得る階調変換処理手段と、 該階調変換済み画像データに基づいて前記色補正処理を
行う際の補正量を設定する補正量設定手段と、 該補正量に基づいて前記階調変換済み画像データに対し
て前記色補正処理を施して前記処理済み画像データを得
る色補正手段とを備えたことを特徴とする画像処理装
置。2. An image processing apparatus for performing gradation conversion processing and color correction processing on image data to obtain processed image data, wherein the image data is subjected to the gradation conversion processing and gradation conversion is performed. Gradation conversion processing means for obtaining image data; correction amount setting means for setting a correction amount when performing the color correction processing based on the gradation-converted image data; and gradation conversion based on the correction amount. An image processing apparatus comprising: a color correction unit that performs the color correction process on the processed image data to obtain the processed image data.
び色補正処理を施して処理済み画像データを得る画像処
理方法をコンピュータに実行させるためのプログラムを
記録したコンピュータ読取り可能な記録媒体において、 前記プログラムは、前記画像データに対して前記階調変
換処理を施して階調変換済み画像データを得る手順と、 該階調変換済み画像データに基づいて前記色補正処理を
行う際の補正量を設定する手順と、 該補正量に基づいて前記階調変換済み画像データに対し
て前記色補正処理を施して前記処理済み画像データを得
る手順とを有することを特徴とするコンピュータ読取り
可能な記録媒体。3. A computer-readable recording medium on which a program for causing a computer to execute an image processing method of performing a gradation conversion process and a color correction process on image data to obtain processed image data is recorded. A program for performing the gradation conversion processing on the image data to obtain gradation-converted image data; and setting a correction amount when performing the color correction processing based on the gradation-converted image data. Performing the color correction process on the gradation-converted image data based on the correction amount to obtain the processed image data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000130736A JP2001313839A (en) | 2000-04-28 | 2000-04-28 | Image-processing method and unit, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000130736A JP2001313839A (en) | 2000-04-28 | 2000-04-28 | Image-processing method and unit, and recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2001313839A true JP2001313839A (en) | 2001-11-09 |
Family
ID=18639766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000130736A Pending JP2001313839A (en) | 2000-04-28 | 2000-04-28 | Image-processing method and unit, and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2001313839A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7167275B2 (en) | 2000-10-06 | 2007-01-23 | Seiko Epson Corporation | Image processing apparatus, image processing method, program, and recording medium |
US8600154B2 (en) | 2007-07-31 | 2013-12-03 | Canon Kabushiki Kaisha | Image processing apparatus and image processing method |
JP7688875B1 (en) | 2023-12-11 | 2025-06-05 | フォージビジョン株式会社 | IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, IMAGE PROCESSING PROGRAM, IMAGE DISPLAY APPARATUS, AND IMAGING APPARATUS |
-
2000
- 2000-04-28 JP JP2000130736A patent/JP2001313839A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7167275B2 (en) | 2000-10-06 | 2007-01-23 | Seiko Epson Corporation | Image processing apparatus, image processing method, program, and recording medium |
US8600154B2 (en) | 2007-07-31 | 2013-12-03 | Canon Kabushiki Kaisha | Image processing apparatus and image processing method |
US8929681B2 (en) | 2007-07-31 | 2015-01-06 | Canon Kabushiki Kaisha | Image processing apparatus and image processing method |
JP7688875B1 (en) | 2023-12-11 | 2025-06-05 | フォージビジョン株式会社 | IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, IMAGE PROCESSING PROGRAM, IMAGE DISPLAY APPARATUS, AND IMAGING APPARATUS |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2002016818A (en) | Color correction method and device, and recording medium | |
US6608926B1 (en) | Image processing method, image processing apparatus and recording medium | |
JP2002016939A (en) | Method and apparatus for processing image as well as recording medium | |
US20090027732A1 (en) | Image processing apparatus, image processing method, and computer program | |
KR101248858B1 (en) | Image processing apparatus and image processing method | |
JP2001144989A (en) | Image processing apparatus, method, recording medium, and computer program | |
JPH11331596A (en) | Image processing method and its device | |
JP2005293555A (en) | Identification of skin area in image | |
JP2002016874A (en) | Method and apparatus for processing image as well as recording medium for recording program therefor | |
JP2001128022A (en) | Image processing apparatus, method, recording medium, and computer program | |
JPH04336870A (en) | Color picture recorder | |
US7034959B1 (en) | Method, apparatus and recording medium for image processing | |
JP2002033994A (en) | Device and method for processing image and recording medium | |
JP4321698B2 (en) | Image output method and apparatus, and recording medium | |
JP4007964B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2001313839A (en) | Image-processing method and unit, and recording medium | |
JP2001285638A (en) | Image processing method | |
JP2002118737A (en) | Image converter and image conversion method | |
JP2002094826A (en) | Image processing unit, image forming unit and method for processing image | |
JPH0946529A (en) | Image processing unit and method | |
JP2001312720A (en) | Method and device for processing image and recording medium | |
JP2002016875A (en) | Method and apparatus for setting gradation as well as recording medium | |
JP2000105820A (en) | Monoton conversion device, monoton conversion method, and medium recording monoton conversion program | |
JP2001352456A (en) | Image-processing method and image-processing unit, and image-forming device provided with them | |
JP3854706B2 (en) | Image processing apparatus, method, and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050912 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20061201 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070815 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080226 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080423 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080722 |