[go: up one dir, main page]

JP2001292332A - Color correction method, color correction device, and recording medium recording color correction control program - Google Patents

Color correction method, color correction device, and recording medium recording color correction control program

Info

Publication number
JP2001292332A
JP2001292332A JP2000108350A JP2000108350A JP2001292332A JP 2001292332 A JP2001292332 A JP 2001292332A JP 2000108350 A JP2000108350 A JP 2000108350A JP 2000108350 A JP2000108350 A JP 2000108350A JP 2001292332 A JP2001292332 A JP 2001292332A
Authority
JP
Japan
Prior art keywords
color
color correction
component
value
conversion table
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.)
Withdrawn
Application number
JP2000108350A
Other languages
Japanese (ja)
Inventor
Naoki Kuwata
直樹 鍬田
Yoshihiro Nakami
至宏 中見
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2000108350A priority Critical patent/JP2001292332A/en
Publication of JP2001292332A publication Critical patent/JP2001292332A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【課題】 本発明は、自動的に適切な色修正が可能な色
修正方法、色修正装置および色修正制御プログラムを記
録した記録媒体を提供することを課題とする。 【解決手段】 本発明による色修正装置は、カラー画像
を複数の要素色成分によって表す色画像データを色変換
テーブルに基づき色修正する。まず、彩度計算回路20
aによって、前記色画像データの各要素色成分毎の値が
計算され、グレイヒストグラム作成回路20bおよび平
均値計算回路20cによって、前記各要素色成分毎の値
に基づき、各要素色成分毎の所定の基準値との差を解消
するような色補正量が計算される。そして、LUT作成
・組込回路20dによって、前記色補正量に基づいて各
要素色成分毎に前記色変換テーブルが生成され、当該生
成された色変換テーブルが前記色修正装置に組み込まれ
る。
(57) [Problem] It is an object of the present invention to provide a color correction method, a color correction device, and a recording medium in which a color correction control program is recorded, which can automatically and appropriately correct a color. A color correction device according to the present invention corrects color of color image data representing a color image by a plurality of component color components based on a color conversion table. First, the saturation calculation circuit 20
a, a value for each component color component of the color image data is calculated, and a predetermined value for each component color component is calculated by the gray histogram creation circuit 20b and the average value calculation circuit 20c based on the value for each component color component. Is calculated so as to eliminate the difference from the reference value. Then, the LUT creation / incorporation circuit 20d generates the color conversion table for each element color component based on the color correction amount, and incorporates the generated color conversion table into the color correction device.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル写真画像
のような実写画像データに対して最適な色修正を実行す
るための色変換テーブルを作成して入出力装置に組み込
むことによる色修正方法、当該色変換テーブルが組み込
まれた色修正装置および色変換テーブルを作成して入出
力装置に組み込むための制御プログラムを記録した記録
媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color correction method for creating a color conversion table for executing optimal color correction on real image data such as a digital photographic image and incorporating the same into an input / output device. The present invention relates to a color correction device incorporating the color conversion table and a recording medium recording a control program for creating the color conversion table and incorporating the color conversion table into an input / output device.

【0002】[0002]

【従来の技術】コンピュータなどを用いて高品質の画像
データを取り扱う画像処理装置として、CCD等の撮像
工程により光を電気信号に変換し、その電気信号をデジ
タルデータに変換してフラッシュメモリ等の記録媒体に
記録するデジタルカメラが知られている。デジタルカメ
ラを用いると、パーソナルコンピュータ等を用いて画像
データの保存や様々な加工を個人で手軽に行えるほか、
プリンタに画像データを出力することによりフィルムの
現像をすることなく写真を印刷することができる。プリ
ンタの印刷品質の向上により、銀塩写真とほとんど区別
がつかないほど品質の高い写真も印刷できるようになっ
てきている。
2. Description of the Related Art As an image processing apparatus for handling high-quality image data using a computer or the like, light is converted into an electric signal by an image pickup process such as a CCD, and the electric signal is converted into digital data to convert the light into a digital data. 2. Description of the Related Art Digital cameras that record data on a recording medium are known. With a digital camera, image data can be stored and various processes can be easily performed by an individual using a personal computer or the like.
By outputting image data to a printer, a photograph can be printed without developing the film. 2. Description of the Related Art Improvements in the printing quality of printers have made it possible to print high-quality photographs that are almost indistinguishable from silver halide photographs.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、特開平
11−120325公報に記載されているように、従来
の入力装置におけるオブジェクトサンプリング手法によ
れば、画像のエッジ画素のみをサンプリング対象として
色修正処理しており、柄模様の高彩度色の服を着た人物
などが被写体の場合、正確な色修正を行えない可能性が
ある。このような従来のデジタルカメラなどの入力装置
から得られる画像は、光源特性やカメラのオートホワイ
トバランス特性などの影響により、いわゆる色かぶりが
生じているものが多い。特に、赤系統の服などの場合、
色修正装置によって赤かぶりが強いと判定され、当該色
修正装置は、シアン方向に色修正を行い、肌色などを適
切に色修正することができない。従来の色修正装置の場
合、かかる色かぶりをソフトウエアによって適切に色修
正することは非常に困難であった。
However, as described in Japanese Patent Application Laid-Open No. H11-120325, according to the object sampling method in the conventional input device, only the edge pixels of the image are subjected to the color correction processing. In the case where the subject is a person dressed in a high-saturated color pattern, there is a possibility that accurate color correction cannot be performed. Images obtained from such an input device such as a conventional digital camera often have a so-called color cast due to the influence of a light source characteristic and an automatic white balance characteristic of the camera. Especially in the case of red-colored clothes,
The color correction device determines that the red cast is strong, and the color correction device corrects the color in the cyan direction and cannot appropriately correct the skin color and the like. In the case of the conventional color correction device, it is very difficult to appropriately correct such a color cast by software.

【0004】本発明は、上記問題点を解決するためにな
されたもので、自動的に適切な色修正が可能な色修正方
法、色修正装置および色修正制御プログラムを記録した
記録媒体を提供することを課題とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and provides a color correction method, a color correction device, and a recording medium on which a color correction control program is recorded which can automatically and appropriately correct a color. That is the task.

【0005】[0005]

【課題を解決するための手段】上記課題に鑑み、請求項
1に記載の発明は、カラー画像を複数の要素色成分によ
って表す色画像データを色変換テーブルに基づき色修正
する色修正装置における色修正方法であって、前記色画
像データの各要素色成分毎の値を計算する要素色成分値
計算工程と、当該要素色成分値計算工程によって計算さ
れた各要素色成分毎の値に基づき、各要素色成分毎の所
定の基準値との差を解消するような色補正量を計算する
色補正量計算工程と、当該色補正量計算工程によって計
算された色補正量に基づいて、各要素色成分毎に前記色
変換テーブルを生成する色変換テーブル生成工程と、当
該色変換テーブル生成工程によって生成された色変換テ
ーブルを前記色修正装置に組み込む色変換テーブル組込
工程と、を備えて構成される。
SUMMARY OF THE INVENTION In view of the above problems, the invention according to claim 1 is a color correction apparatus for correcting a color image data representing a color image by a plurality of component color components based on a color conversion table. A correction method, comprising: an element color component value calculation step of calculating a value for each element color component of the color image data; and a value for each element color component calculated by the element color component value calculation step. A color correction amount calculating step of calculating a color correction amount that eliminates a difference from a predetermined reference value for each element color component; and a color correction amount calculated by the color correction amount calculating step. A color conversion table generating step of generating the color conversion table for each color component; and a color conversion table incorporating step of incorporating the color conversion table generated by the color conversion table generating step into the color correction device. It is made.

【0006】以上のように構成された、カラー画像を複
数の要素色成分によって表す色画像データを色変換テー
ブルに基づき色修正する色修正装置における色修正方法
によれば、まず、要素色成分値計算工程によって、前記
色画像データの各要素色成分毎の値が計算され、色補正
量計算工程によって、当該要素色成分値計算工程によっ
て計算された各要素色成分毎の値に基づき、各要素色成
分毎の所定の基準値との差を解消するような色補正量が
計算される。そして、色変換テーブル生成工程によっ
て、当該色補正量計算工程によって計算された色補正量
に基づいて、各要素色成分毎に前記色変換テーブルが生
成され、色変換テーブル組込工程によって、当該色変換
テーブル生成工程によって生成された色変換テーブルが
前記色修正装置に組み込まれる。
[0006] According to the color correction method in the color correction apparatus configured as described above, which corrects color image data representing a color image by a plurality of component color components based on a color conversion table, first, the component color component values are set. The calculation step calculates a value for each element color component of the color image data, and the color correction amount calculation step calculates a value for each element color component based on the value for each element color component calculated in the element color component value calculation step. A color correction amount that eliminates a difference from a predetermined reference value for each color component is calculated. Then, in the color conversion table generation step, the color conversion table is generated for each element color component based on the color correction amount calculated in the color correction amount calculation step, and the color conversion table is incorporated in the color conversion table. The color conversion table generated by the conversion table generation step is incorporated in the color correction device.

【0007】また、請求項2に記載の発明は、請求項1
に記載の色修正方法であって、前記要素色成分値計算工
程が、グレー領域に近い要素色成分を有する画素につい
て、色画像データの各要素色成分毎の値を計算するよう
に構成される。
[0007] The invention described in claim 2 is the first invention.
Wherein the element color component value calculation step is configured to calculate a value for each element color component of the color image data for a pixel having an element color component close to a gray area. .

【0008】さらに、請求項3に記載の発明は、請求項
2に記載の色修正方法であって、前記要素色成分値計算
工程において、所定の画素の要素色成分の最小値に対す
る、当該要素色成分の最大値の比が第1閾値よりも小さ
い場合に、グレー領域に近い要素色成分を有する画素と
判定するように構成される。
Further, according to a third aspect of the present invention, in the color correction method according to the second aspect, in the element color component value calculation step, the element color component value with respect to a minimum value of an element color component of a predetermined pixel is determined. When the ratio of the maximum values of the color components is smaller than the first threshold value, the pixel is determined to be a pixel having an element color component close to the gray area.

【0009】また、請求項4に記載の発明は、請求項2
または3に記載の色修正方法であって、前記要素色成分
値計算工程が、第2閾値よりも大きな輝度を有する画素
を要素色成分の計算対象とするように構成される。
The invention described in claim 4 is the same as the invention described in claim 2.
Alternatively, in the color correction method described in 3, the element color component value calculation step is configured such that a pixel having a luminance larger than a second threshold is set as an element color component calculation target.

【0010】さらに、請求項5に記載の発明は、請求項
2乃至4のいづれか一項に記載の色修正工程であって、
前記色補正量計算工程が、要素色成分値計算工程によっ
て計算された各要素色成分毎の値に基づき、前記色画像
データの各要素色成分毎に平均値を計算して、当該平均
値と所定の基準値との差を解消するような色補正量を求
めるように構成される。
Further, according to a fifth aspect of the present invention, there is provided a color correcting step according to any one of the second to fourth aspects,
The color correction amount calculation step calculates an average value for each element color component of the color image data based on the value for each element color component calculated in the element color component value calculation step, and calculates the average value and It is configured to obtain a color correction amount that eliminates a difference from a predetermined reference value.

【0011】また、請求項6に記載の発明は、請求項2
に記載の色修正方法であって、前記要素色成分値計算工
程が、2以上の輝度領域に分割して前記色画像データの
各要素色成分毎の値を計算し、色補正量計算工程が、分
割された各輝度領域毎に、各要素色成分毎の所定の基準
値との差を解消するような色補正量を計算するように構
成される。
[0011] The invention described in claim 6 is the invention according to claim 2.
Wherein the element color component value calculating step calculates a value for each element color component of the color image data by dividing the color image data into two or more luminance areas, and the color correction amount calculating step includes: It is configured to calculate a color correction amount that eliminates a difference from a predetermined reference value for each element color component for each of the divided luminance regions.

【0012】さらに、請求項7に記載の発明は、請求項
6に記載の色修正方法であって、前記要素色成分計算工
程が、所定の画素の要素色成分の最小値に対する、当該
要素色成分の最大値の比が所定の閾値よりも小さい場合
に、グレー領域に近い要素色成分を有する画素と判定す
るように構成される。
Further, according to a seventh aspect of the present invention, in the color correction method according to the sixth aspect, the element color component calculation step includes the step of calculating the element color component with respect to a minimum value of the element color component of a predetermined pixel. When the ratio of the maximum values of the components is smaller than a predetermined threshold, the pixel is determined to have a component color component close to the gray area.

【0013】また、請求項8に記載の発明は、請求項6
または7に記載の色修正工程であって、前記色補正量計
算工程が、要素色成分値計算工程によって計算された各
要素色成分毎の値に基づき、前記分割された輝度領域毎
に前記色画像データの各要素色成分毎の平均値を計算し
て、当該平均値と所定の基準値との差を解消するような
色補正量を求めるように構成される。
The invention described in claim 8 is the same as the claim 6.
Or the color correction step according to 7, wherein the color correction amount calculation step is based on the value for each element color component calculated in the element color component value calculation step and for each of the divided luminance areas, An average value for each element color component of the image data is calculated, and a color correction amount that eliminates a difference between the average value and a predetermined reference value is obtained.

【0014】上記課題に鑑み、請求項9に記載の発明
は、カラー画像を複数の要素色成分によって表す色画像
データを色変換テーブルに基づき色修正する色修正装置
であって、前記色画像データの各要素色成分毎の値を計
算する要素色成分値計算手段と、当該要素色成分値計算
手段によって計算された各要素色成分毎の値に基づき、
各要素色成分毎の所定の基準値との差を解消するような
色補正量を計算する色補正量計算手段と、当該色補正量
計算手段によって計算された色補正量に基づいて、各要
素色成分毎に前記色変換テーブルを生成する色変換テー
ブル生成手段と、当該色変換テーブル生成手段によって
生成された色変換テーブルを前記色修正装置に組み込む
色変換テーブル組込手段と、を備えて構成される。
[0014] In view of the above problem, an invention according to claim 9 is a color correction apparatus for correcting a color image data representing a color image by a plurality of component color components based on a color conversion table, Element color component value calculating means for calculating a value for each element color component, and a value for each element color component calculated by the element color component value calculating means.
A color correction amount calculating unit that calculates a color correction amount that eliminates a difference from a predetermined reference value for each element color component; and a color correction amount calculated by the color correction amount calculating unit. A color conversion table generating unit that generates the color conversion table for each color component; and a color conversion table incorporation unit that incorporates the color conversion table generated by the color conversion table generating unit into the color correction device. Is done.

【0015】以上のように構成された、カラー画像を複
数の要素色成分によって表す色画像データを色変換テー
ブルに基づき色修正する色修正装置によれば、まず、要
素色成分値計算手段によって、前記色画像データの各要
素色成分毎の値が計算され、色補正量計算手段によっ
て、当該要素色成分値計算手段によって計算された各要
素色成分毎の値に基づき、各要素色成分毎の所定の基準
値との差を解消するような色補正量が計算される。そし
て、色変換テーブル生成手段によって、当該色補正量計
算手段によって計算された色補正量に基づいて、各要素
色成分毎に前記色変換テーブルが生成され、色変換テー
ブル組込手段によって、当該色変換テーブル生成手段に
よって生成された色変換テーブルが前記色修正装置に組
み込まれる。
According to the color correction apparatus configured as described above, which corrects color image data representing a color image by a plurality of element color components based on a color conversion table, first, the element color component value calculation means uses: A value for each element color component of the color image data is calculated, and a color correction amount calculation unit calculates a value for each element color component based on the value for each element color component calculated by the element color component value calculation unit. A color correction amount that eliminates a difference from a predetermined reference value is calculated. Then, based on the color correction amount calculated by the color correction amount calculating means, the color conversion table is generated for each of the component color components by the color conversion table generating means, and the color conversion table is incorporated by the color conversion table incorporating means. The color conversion table generated by the conversion table generating means is incorporated in the color correction device.

【0016】上記課題に鑑み、請求項10に記載の発明
は、カラー画像を複数の要素色成分によって表す色画像
データを色変換テーブルに基づき色修正する色修正装置
における色修正処理をコンピュータに実行させるための
プログラムを記録したコンピュータによって読取可能な
記録媒体であって、前記色画像データの各要素色成分毎
の値を計算する要素色成分値計算処理と、当該要素色成
分値計算処理によって計算された各要素色成分毎の値に
基づき、各要素色成分毎の所定の基準値との差を解消す
るような色補正量を計算する色補正量計算処理と、当該
色補正量計算処理によって計算された色補正量に基づい
て、各要素色成分毎に前記色変換テーブルを生成する色
変換テーブル生成処理と、当該色変換テーブル生成処理
によって生成された色変換テーブルを前記色修正装置に
組み込む色変換テーブル組込処理と、をコンピュータに
実行させるためのプログラムを記録してコンピュータに
よって読取可能に構成される。
In view of the above-mentioned problem, the invention according to claim 10 executes, on a computer, a color correction process in a color correction apparatus that corrects color image data representing a color image by a plurality of component color components based on a color conversion table. A computer-readable recording medium having recorded thereon a program for causing the computer to execute a program for calculating a value for each element color component of the color image data, and calculating the element color component value by the element color component value calculation processing. A color correction amount calculation process of calculating a color correction amount that eliminates a difference from a predetermined reference value of each element color component based on the calculated value of each element color component, and a color correction amount calculation process. A color conversion table generation process for generating the color conversion table for each element color component based on the calculated color correction amount, and a color conversion table generation process Recorded readable constituted by a computer program for executing a color conversion table embedded process incorporating a color conversion table in the color correction device, to the computer.

【0017】以上のように構成された、コンピュータに
よって読取可能な記録媒体には、カラー画像を複数の要
素色成分によって表す色画像データを色変換テーブルに
基づき色修正する色修正装置における色修正処理をコン
ピュータに実行させるためのプログラムが記録されてい
る。そして、当該プログラムの実行により、まず、要素
色成分値計算処理によって、前記色画像データの各要素
色成分毎の値が計算され、色補正量計算処理によって、
当該要素色成分値計算処理によって計算された各要素色
成分毎の値に基づき、各要素色成分毎の所定の基準値と
の差を解消するような色補正量が計算される。そして、
色変換テーブル生成処理によって、当該色補正量計算処
理によって計算された色補正量に基づいて、各要素色成
分毎に前記色変換テーブルが生成され、色変換テーブル
組込処理によって、当該色変換テーブル生成処理によっ
て生成された色変換テーブルが前記色修正装置に組み込
まれる。
On the recording medium readable by the computer constructed as described above, a color correction process in a color correction apparatus for correcting color image data representing a color image by a plurality of component color components based on a color conversion table. In a computer. Then, by executing the program, first, a value for each element color component of the color image data is calculated by element color component value calculation processing, and the color correction amount calculation processing
Based on the values for each element color component calculated by the element color component value calculation processing, a color correction amount that eliminates a difference from a predetermined reference value for each element color component is calculated. And
The color conversion table generation processing generates the color conversion table for each element color component based on the color correction amount calculated by the color correction amount calculation processing, and the color conversion table The color conversion table generated by the generation process is incorporated in the color correction device.

【0018】[0018]

【発明の実施の形態】以下、図面を参照して本発明の好
適な実施の形態を説明する。
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.

【0019】第1実施形態 図1は本発明の第1実施形態にかかる、実写画像データ
に対して最適な色修正を実行するための色変換テーブル
が組み込まれるデジタルカメラ100の構造を説明する
ためのブロック図である。当該デジタルカメラ100
は、制御部111、集光レンズ112、撮像工程として
のCCD(Charge Coupled Device)113、A/D変換器1
14、画像データを一時的に記憶するとともに、前記色
変換テーブルを格納するためのRAM(Random Access Mem
ory)115、画像データを記録するフラッシュメモリ
116、画像を表示する液晶表示装置(LCD)117、
液晶表示装置に表示される画像のためのデータが格納さ
れるVRAM(Video RAM)118、フラッシュメモリ11
6の内容を外部機器に出力するためのインターフェイス
119などを備えて構成される。前記デジタルカメラ1
00は、さらに、最適な色修正を実行するための色変換
テーブルを作成するとともに、当該色変換テーブルを用
いて最適な色修正を行うLUT作成・色修正制御回路2
0と、当該LUT作成・色修正制御回路による色修正を
行うか否かを選択する色修正選択回路120と、を備え
ている。当該色修正選択回路120によって、LUT作
成・色修正制御回路20による色修正が選択された場合
には後に詳述するLUT作成・色修正制御回路20によ
る色修正が行われ、LUT作成・色修正制御回路20に
よる色修正が選択されない場合には、A/D変換器11
4の出力信号が直接RAM115に供給される。
First Embodiment FIG. 1 is a diagram for explaining the structure of a digital camera 100 according to a first embodiment of the present invention, in which a color conversion table for executing optimal color correction on real image data is incorporated. It is a block diagram of. The digital camera 100
Is a control unit 111, a condenser lens 112, a CCD (Charge Coupled Device) 113 as an imaging process, and an A / D converter 1.
14. RAM (Random Access Memory) for temporarily storing image data and storing the color conversion table.
ory) 115, a flash memory 116 for recording image data, a liquid crystal display (LCD) 117 for displaying images,
VRAM (Video RAM) 118 for storing data for images displayed on the liquid crystal display device, flash memory 11
6 is provided with an interface 119 for outputting the content of No. 6 to an external device. The digital camera 1
Reference numeral 00 denotes an LUT creation / color correction control circuit 2 for creating a color conversion table for executing optimal color correction and performing optimal color correction using the color conversion table.
0 and a color correction selection circuit 120 for selecting whether or not to perform color correction by the LUT creation / color correction control circuit. When the color correction selection circuit 120 selects the color correction by the LUT generation / color correction control circuit 20, the color correction is performed by the LUT generation / color correction control circuit 20, which will be described in detail later, and the LUT generation / color correction is performed. If the color correction by the control circuit 20 is not selected, the A / D converter 11
4 is supplied directly to the RAM 115.

【0020】制御部111はCPUと、デジタルカメラ
100の画像処理制御用プログラムなどが記録されたR
OMと、入出力工程とを備え、デジタルカメラ100に
設けられる他の装置の制御を行う。1つの制御部111
で全ての制御を行う代わりに、複数の制御部を設けても
よい。集光レンズ112には集光レンズ112に入力さ
れる光量を調節するための絞り121が設けられてい
る。
The control unit 111 includes a CPU and an image processing control program for the digital camera 100.
The digital camera 100 includes an OM and an input / output step, and controls other devices provided in the digital camera 100. One control unit 111
Instead of performing all the controls, a plurality of control units may be provided. The condenser lens 112 is provided with an aperture 121 for adjusting the amount of light input to the condenser lens 112.

【0021】RAM115としてはセルフリフレッシュ
機能をもつDRAM(Dynamic RAM)が用いられる。フラッ
シュメモリ116は通電しなくても記録内容を保持する
ことのできる書換え可能な記録媒体であり、デジタルカ
メラ100に内蔵されるか、あるいは着脱自在にデジタ
ルカメラ100に取り付けられている。フラッシュメモ
リ116として例えばPCMCIA規格に準拠したメモリカー
ド、またはPCMCIAカードアダプタに取付け可能なメモリ
カードを用いることにより、PCMCIAカード用スロットを
有するパーソナルコンピュータでフラッシュメモリ11
6の内容を直接読み書きすることができる。
As the RAM 115, a DRAM (Dynamic RAM) having a self-refresh function is used. The flash memory 116 is a rewritable recording medium capable of holding recorded contents without power supply, and is built in the digital camera 100 or is detachably attached to the digital camera 100. For example, by using a memory card conforming to the PCMCIA standard or a memory card attachable to a PCMCIA card adapter as the flash memory 116, a personal computer having a PCMCIA card slot can
6 can be read and written directly.

【0022】本発明による、色変換テーブルを作成して
デジタルカメラに組み込むための制御プログラムは、通
常、コンピュータが読取可能な形態でフロッピー(登録
商標)ディスク、CD−ROMなどの記録媒体に記録さ
れて流通する。当該プログラムは、メディア読取装置に
よって読み取られて制御部111内のROMに書き込ま
れる。そして、LUT作成・色修正制御回路20が所望
のプログラムを適宜ROMから読み出して所望の処理を
実行するように構成されている。
A control program for creating a color conversion table and incorporating it into a digital camera according to the present invention is usually recorded in a computer-readable form on a recording medium such as a floppy (registered trademark) disk or CD-ROM. And circulate. The program is read by the media reading device and written in the ROM in the control unit 111. The LUT creation / color correction control circuit 20 is configured to read a desired program from the ROM as appropriate and execute a desired process.

【0023】図2に、本発明の第1実施形態によるLU
T作成・色修正制御回路20の機能ブロック図を示す。
FIG. 2 shows an LU according to the first embodiment of the present invention.
FIG. 2 shows a functional block diagram of a T creation / color correction control circuit 20.

【0024】図2に示すように、LUT作成・色修正制
御回路20は、入力された実写画像データ(写真などの
ドットマトリックス状の画素として表される実写画像デ
ータ)を動作モードに応じて、彩度計算回路20aおよ
びY値計算回路20g、または色修正回路20eに供給
するためのデータ入力切換回路20fと;彩度計算回路
20aと、グレイヒストグラム作成回路20bと、平均
値計算回路20cと、LUT作成・組込回路20dと、
色修正回路20eと、Y値計算回路20gと、を備えて
構成される。各構成部分のデータ処理の詳細に関しては
後述する。
As shown in FIG. 2, the LUT creation / color correction control circuit 20 converts the input real image data (real image data represented as pixels in a dot matrix such as a photograph) according to an operation mode. A data input switching circuit 20f for supplying to the saturation calculation circuit 20a and the Y value calculation circuit 20g or the color correction circuit 20e; a saturation calculation circuit 20a, a gray histogram creation circuit 20b, and an average value calculation circuit 20c; LUT creation / embedding circuit 20d,
It comprises a color correction circuit 20e and a Y value calculation circuit 20g. Details of the data processing of each component will be described later.

【0025】第2実施形態 図3は、本発明の第2実施形態にかかる、実写画像デー
タに対して最適な色修正を実行するための色変換テーブ
ルが組み込まれる色修正システムの具体的ハードウエア
構成例を示す概略ブロック図である。当該第2実施形態
では、一例として、当該色変換テーブルが各入出力装置
のドライバに組み込まれた場合について説明する。
Second Embodiment FIG. 3 is a specific hardware diagram of a color correction system according to a second embodiment of the present invention, in which a color conversion table for executing optimal color correction on real image data is incorporated. FIG. 3 is a schematic block diagram illustrating a configuration example. In the second embodiment, as an example, a case where the color conversion table is incorporated in a driver of each input / output device will be described.

【0026】図4は、本発明の第2実施形態にかかる、
LUT(色変換テーブル)作成・色修正制御部を適用し
た色修正システムのブロック図である。図4において、
画像入力装置10は、写真などのドットマトリックス状
の画素として表した実写画像データ(元画像データ)を
LUT作成・色修正制御部20に出力する。当該LUT
作成・色修正制御部20は、入力された実写画像データ
に対して所望の色修正を施した後、色修正された画像デ
ータ(色修正後画像データ)を画像出力装置30に出力
する。当該画像出力装置30は、色修正された画像をド
ットマトリックス状の画素で出力する。
FIG. 4 shows a second embodiment of the present invention.
FIG. 2 is a block diagram of a color correction system to which an LUT (color conversion table) creation / color correction control unit is applied. In FIG.
The image input device 10 outputs actual image data (original image data) represented as pixels in a dot matrix form such as a photograph to the LUT creation / color correction control unit 20. The LUT
The creation / color correction control unit 20 performs desired color correction on the input real image data, and then outputs the color-corrected image data (color-corrected image data) to the image output device 30. The image output device 30 outputs the color-corrected image using dot matrix pixels.

【0027】図2と同様に、図4のLUT作成・色修正
制御部20は、データ入力切換部20fと、彩度計算部
20aと、グレイヒストグラム作成部20bと、平均値
計算部20cと、LUT作成・組込部20dと、色修正
部20eと、Y値計算部20gと、を備えて構成され
る。各構成部分のデータ処理の詳細に関しては後述す
る。
As in FIG. 2, the LUT creation / color correction control unit 20 in FIG. 4 includes a data input switching unit 20f, a saturation calculation unit 20a, a gray histogram creation unit 20b, an average value calculation unit 20c, An LUT creation / incorporation unit 20d, a color correction unit 20e, and a Y value calculation unit 20g are provided. Details of the data processing of each component will be described later.

【0028】画像入力装置10の具体例は、図3におけ
るデジタルスチルカメラ12またはビデオカメラ14な
どが該当する。また、LUT作成・色修正制御部20の
具体例は、コンピュータ21、ハードディスク22、キ
ーボード23、CD−ROMドライブ24、フロッピー
ディスクドライブ25、及びモデム26などを備えて構
成されるコンピュータシステムが該当する。そして、画
像出力装置30の具体例は、プリンタ31、ディスプレ
イ32などが該当する。なお、モデム26は公衆電話回
線に接続され、外部のネットワークに同公衆通信回線を
介して接続され、ソフトウエアやデータをダウンロード
することができる。
A specific example of the image input device 10 corresponds to the digital still camera 12 or the video camera 14 in FIG. A specific example of the LUT creation / color correction control unit 20 corresponds to a computer system including a computer 21, a hard disk 22, a keyboard 23, a CD-ROM drive 24, a floppy disk drive 25, and a modem 26. . A specific example of the image output device 30 corresponds to the printer 31, the display 32, and the like. The modem 26 is connected to a public telephone line and connected to an external network via the public communication line, and can download software and data.

【0029】本発明による色変換テーブルを作成して色
修正システムに組み込むための制御プログラムは、通
常、コンピュータ21が読取可能な形態でフロッピーデ
ィスク、CD−ROMなどの記録媒体に記録されて流通
する。当該プログラムは、メディア読取装置(CD−R
OMドライブ24、フロッピーディスクドライブ25な
ど)によって読み取られてハードディスク22にインス
トールされる。そして、CPUが所望のプログラムを適
宜ハードディスク22から読み出して所望の処理を実行
するように構成されている。
A control program for creating a color conversion table according to the present invention and incorporating it into a color correction system is usually recorded on a recording medium such as a floppy disk or CD-ROM in a form readable by the computer 21 and distributed. . The program is a media reader (CD-R
OM drive 24, floppy disk drive 25, etc.) and installed on hard disk 22. Then, the CPU is configured to appropriately read out a desired program from the hard disk 22 and execute a desired process.

【0030】当該実施の形態においては、画像入力装置
10としてのスキャナ11やデジタルスチルカメラ12
が画像データとしてRGB(緑、青、赤)の階調データ
を出力するとともに、画像出力装置30としてのプリン
タ31は、階調データとしてのCMY(シアン、マゼン
タ、イエロー)またはこれに黒を加えたCMYKの二値
データを入力として必要とする。また、ディスプレイ3
2は、RGBの階調データを入力として必要とする。一
方、コンピュータ21内では、オペレーティングシステ
ム21a、プリンタ31及びディスプレイ32に対応す
るプリンタドライバ21b及びディスプレイドライバ2
1cを備えている。また、色修正処理用アプリケーショ
ン21dは、オペレーティングシステム21aにて処理
の実行を制御され、必要に応じて色変換テーブルが組み
込まれたプリンタドライバ21bやディスプレイドライ
バ21cと連帯して所定の色修正処理を実行する。した
がって、LUT作成・色修正制御部20としての当該コ
ンピュータ21の具体的役割は、RGBの階調データを
入力して最適な色修正を施したRGBの階調データを作
成して、ディスプレイドライバ21cを介してディスプ
レイ32に表示させるとともに、プリンタドライバ21
bを介してCMY(またはCMYK)の二値データに変
換してプリンタ31に印刷させる。
In the embodiment, a scanner 11 or a digital still camera 12 as an image input device 10 is used.
Outputs RGB (green, blue, red) gradation data as image data, and the printer 31 as the image output device 30 outputs CMY (cyan, magenta, yellow) as gradation data or adds black to the CMY (cyan, magenta, yellow). CMYK binary data is required as input. Display 3
2 requires RGB tone data as input. On the other hand, in the computer 21, the printer driver 21b and the display driver 2 corresponding to the operating system 21a, the printer 31 and the display 32
1c. The color correction processing application 21d is controlled by the operating system 21a to execute processing, and performs a predetermined color correction processing in conjunction with a printer driver 21b or a display driver 21c in which a color conversion table is incorporated as necessary. Execute. Therefore, the specific role of the computer 21 as the LUT creation / color correction control unit 20 is to input RGB tone data, create RGB tone data with optimal color correction, and create a display driver 21c. Is displayed on the display 32 through the printer driver 21.
The data is converted into binary data of CMY (or CMYK) via b and printed by the printer 31.

【0031】このように、当該実施の形態においては、
画像の入出力装置の間にコンピュータシステムを組み込
み、当該コンピュータにインストールされた各入出力装
置のドライバ内に作成された色変換テーブルを組込んで
色修正を行うようにしているが、必ずしも当該コンピュ
ータシステムを必要とするわけではなく、画像データに
対して所望の色修正を行うシステムであれば良い。例え
ば、図5に示すように、スキャナ11a内に所望の色修
正を施すLUT作成・色修正制御部20を組み込み、変
換された画像データを用いてディスプレイ32aに表示
させたり、プリンタ31aに印字させるようなシステム
であっても良い。また、図6に示すように、コンピュー
タシステムを介することなく、画像データを入力して印
刷するプリンタ31bにおいては、プリンタ31bの制
御部に所望の色修正を施すLUT作成・色修正制御部2
0を組み込み、スキャナ11b、デジタルスチルカメラ
12b、またはモデム26b等を介して入力される画像
データから自動的に所望の色修正を行うように構成する
こともできる。
As described above, in this embodiment,
A computer system is incorporated between image input / output devices, and color correction is performed by incorporating a color conversion table created in a driver of each input / output device installed in the computer. A system is not required, and any system that performs desired color correction on image data may be used. For example, as shown in FIG. 5, an LUT creation / color correction control unit 20 for performing desired color correction is incorporated in the scanner 11a, and the converted image data is used to display on the display 32a or print on the printer 31a. Such a system may be used. As shown in FIG. 6, in a printer 31b that inputs and prints image data without using a computer system, an LUT creation / color correction control unit 2 that performs desired color correction on a control unit of the printer 31b.
0 may be incorporated to automatically perform desired color correction from image data input via the scanner 11b, the digital still camera 12b, the modem 26b, or the like.

【0032】以下、第1実施形態または第2実施形態に
おける色変換テーブル(LUT)作成および色修正処理
の制御プログラムについて説明する。
Hereinafter, a control program for creating a color conversion table (LUT) and performing color correction processing in the first embodiment or the second embodiment will be described.

【0033】第1実施例 以下、図7を参照して、第1実施例にかかる、図1およ
び図2のLUT作成・色修正制御回路20または図3の
コンピュータ21によって構成されるLUT作成・色修
正制御部20が実行する色変換テーブル(LUT)作成
および色修正処理の制御プログラムについて説明する。
当該第1実施例では、色かぶり補正の一例として、所定
画像のグレー領域に近い画素のみをデータ解析対象とす
ることによって高精度な色修正を行うものである。
First Embodiment Referring now to FIG. 7, an LUT creation / color correction control circuit 20 shown in FIGS. 1 and 2 or a computer 21 shown in FIG. A control program for color conversion table (LUT) creation and color correction processing executed by the color correction control unit 20 will be described.
In the first embodiment, as an example of color cast correction, high-precision color correction is performed by targeting only pixels close to a gray area of a predetermined image as data analysis targets.

【0034】LUT作成・色修正制御回路(または部)
20の動作モードには、LUT作成モードと色修正モー
ドとがある。LUT作成モードでは、データ入力切換回
路(または部)20fは、入力される画像データを彩度
計算回路(または部)20aおよびY値計算回路(また
は部)20gに供給する。そして、グレイヒストグラム
作成回路(または部)20bおよび平均値計算回路(ま
たは部)20cにおける画像データの処理を経て、LU
T作成・組込回路(または部)20dにおいて所望の色
変換テーブルが作成された後、当該色変換テーブルが、
実際に入力画像データの色修正を行う色修正回路(また
は部)20eに組み込まれる。一方、色修正モードにお
いては、データ入力切換回路(または部)20fは、入
力される画像データを色修正回路(または部)20eに
供給する。色修正回路(または部)20eは、LUT作
成・組込回路(または部)20dによって作成されて組
み込まれた色変換テーブルを用いて所望の色修正を行
う。
LUT creation / color correction control circuit (or unit)
The 20 operation modes include an LUT creation mode and a color correction mode. In the LUT creation mode, the data input switching circuit (or unit) 20f supplies the input image data to the saturation calculation circuit (or unit) 20a and the Y value calculation circuit (or unit) 20g. Then, after processing the image data in the gray histogram creation circuit (or unit) 20b and the average value calculation circuit (or unit) 20c, the LU
After a desired color conversion table is created in the T creating / embedding circuit (or unit) 20d, the color conversion table is
It is incorporated in a color correction circuit (or unit) 20e that actually corrects the color of the input image data. On the other hand, in the color correction mode, the data input switching circuit (or unit) 20f supplies the input image data to the color correction circuit (or unit) 20e. The color correction circuit (or unit) 20e performs a desired color correction using a color conversion table created and incorporated by the LUT creation / incorporation circuit (or unit) 20d.

【0035】1)LUT作成モードにおける処理 まず、本発明によるLUT作成・色修正制御回路(また
は部)20の彩度計算回路(または部)20aは、デー
タ入力切換回路(または部)20fから供給される画像
データの各画素のRGB値から彩度Satを求める(ステ
ップ40)。Satは、 Sat=256×(I−i)/(I+i) によって求められる。ここで、Iは、 I=max{R,G,B} で定義され、各画素のRGB値の中の最大値である。ま
た、iは、 i=min{R,G,B} で定義され、各画素のRGB値の中の最小値である。
1) Processing in LUT creation mode First, the saturation calculation circuit (or section) 20a of the LUT creation / color correction control circuit (or section) 20 according to the present invention is supplied from the data input switching circuit (or section) 20f. The saturation Sat is obtained from the RGB values of each pixel of the image data to be processed (step 40). Sat is obtained by Sat = 256 × (I−i) / (I + i). Here, I is defined by I = max {R, G, B}, and is the maximum value among the RGB values of each pixel. I is defined as i = min {R, G, B}, and is the minimum value among the RGB values of each pixel.

【0036】そして、Y値計算回路(または部)20g
は、データ入力切換回路(または部)20fから供給さ
れる画像データの各画素のRGB値から基準値Yを求め
る(ステップ41)。基準値Yは Y=(R+G+B)/3 で計算される値である。このように基準値Yを定義した
のは、理想のグレイ画像がR=G=Bとなるため、各色
を当分に加算した値を基準にしていることを意味する。
Then, the Y value calculation circuit (or unit) 20g
Calculates the reference value Y from the RGB values of each pixel of the image data supplied from the data input switching circuit (or unit) 20f (step 41). The reference value Y is a value calculated by Y = (R + G + B) / 3. The definition of the reference value Y in this way means that the ideal gray image satisfies R = G = B, so that the reference value is based on a value obtained by adding the respective colors for the time being.

【0037】次に、本発明によるLUT作成・色修正制
御回路(または部)20のグレイヒストグラム作成回路
(または部)20bは、SatがthSよりも小さく、且つY
が128よりも大きいか否かを判断する(ステップ4
2)。ここで、thSは、所定の画素がグレイ付近の画素
であるか否かを判定するための閾値であり、SatがthSよ
りも小さい場合には所定の画素がグレイ付近の画素であ
ると判定して、データ解析の対象とする。また、ステッ
プ42においてY>128としているのは、グレイ成分
に敏感な明度の高い領域のみを対象として基準値Yの平
均値を計算するためである。そして、SatがthSよりも小
さ小さく、且つYが128よりも大きい場合(ステップ
42、Yes)、各画素のRGB値およびY値をヒスト
グラムに加算する(ステップ44)。
Next, in the gray histogram creation circuit (or unit) 20b of the LUT creation / color correction control circuit (or unit) 20 according to the present invention, Sat is smaller than thS and Y
Is greater than or equal to 128 (step 4).
2). Here, thS is a threshold value for determining whether or not the predetermined pixel is a pixel near gray, and when Sat is smaller than thS, it is determined that the predetermined pixel is a pixel near gray. Data analysis. The reason why Y> 128 is set in step 42 is to calculate the average value of the reference value Y only for an area having a high lightness that is sensitive to the gray component. If Sat is smaller than thS and Y is larger than 128 (Yes in step 42), the RGB value and the Y value of each pixel are added to the histogram (step 44).

【0038】全ての画素について上記ステップ40、4
1、42および44の処理が終了するまで上記ステップ
40、41、42および44の処理が繰り返される。全
ての画素について上記ステップ40、41、42および
44の処理が終了すると(ステップ46、Yes)、グ
レイヒストグラムが完成して、グレイヒストグラム作成
回路(または部)20bによる処理を終了する。なお、
加算を行うにあたっては、図8に示すようにして対象画
素を移動させながら全画素について集計していくことに
する。次に、グレイヒストグラム作成回路(または部)
20bによる処理が終了すると、平均値計算回路(また
は部)20cは、作成されたグレイヒストグラムからR
GBの値の平均値およびY値の平均値を求め(ステップ
50)、当該画像のRGB分布の特徴を知ることができ
る。例えばRの平均値
The above steps 40 and 4 are performed for all the pixels.
The processes of steps 40, 41, 42 and 44 are repeated until the processes of 1, 42 and 44 are completed. When the processing of steps 40, 41, 42 and 44 is completed for all the pixels (step 46, Yes), the gray histogram is completed, and the processing by the gray histogram creation circuit (or unit) 20b ends. In addition,
In performing the addition, totaling is performed on all pixels while moving the target pixel as shown in FIG. Next, the gray histogram creation circuit (or section)
When the processing by 20b is completed, the average value calculation circuit (or unit) 20c calculates R
The average value of the GB values and the average value of the Y values are obtained (step 50), and the characteristics of the RGB distribution of the image can be known. For example, the average value of R

【0039】[0039]

【数1】 は、その頻度をjRgとすると、(Equation 1) Is given by j Rg

【0040】[0040]

【数2】 で求められる。同様に、(Equation 2) Is required. Similarly,

【0041】[0041]

【数3】 (Equation 3)

【数4】 なども求めることができる。さらに、基準値の平均(Equation 4) And so on. In addition, the average of the reference values

【0042】[0042]

【数5】 も求めることができる。(Equation 5) Can also be requested.

【0043】平均値計算回路(または部)20cによる
処理が終了すると、LUT作成・組込回路(または部)
20dが、ステップ50で求められたRGB平均値と、
基準値Yの平均値との差分に基づき補正LUT(ルック
アップテーブル)を作成する(ステップ52)。例え
ば、赤(Red)の差分は、
When the processing by the average value calculation circuit (or unit) 20c is completed, the LUT creation / embedding circuit (or unit)
20d is the RGB average value obtained in step 50;
A correction LUT (lookup table) is created based on the difference between the reference value Y and the average value (step 52). For example, the difference for Red is

【0044】[0044]

【数6】 によって求められる。図10に示すように、補正LUT
のトーンカーブは、当該差分値だけ制御点をシフトさせ
て、階調「0」、階調「255」およびシフトした制御
点の3点を通るスプライン曲線で滑らかに補間すること
によって作成される。同様に、緑および青の差分ΔGg
およびΔBgも求められる。
(Equation 6) Required by As shown in FIG.
Is created by shifting the control point by the difference value and smoothly interpolating with a spline curve passing through the three points of the gradation “0”, the gradation “255”, and the shifted control point. Similarly, the difference ΔGg between green and blue
And ΔBg are also determined.

【0045】以上のようにして、LUT作成・組込回路
(または部)20dによる補正LUT(ルックアップテ
ーブル)の作成(ステップ52)が終了すると、LUT
作成・組込回路(または部)20dは、当該作成された
補正LUTを色修正回路(または部)20eに組み込み
(ステップ53)、LUT作成モードにおける処理を終
了する。
As described above, when the creation of the correction LUT (look-up table) by the LUT creation / embedding circuit (or unit) 20d (step 52) is completed, the LUT
The creation / incorporation circuit (or unit) 20d incorporates the created correction LUT into the color correction circuit (or unit) 20e (step 53), and ends the processing in the LUT creation mode.

【0046】2)色修正モードにおける処理 色修正モードにおいては、データ入力切換回路(または
部)20fから供給される画像データに対して、色修正
回路(または部)20eによる処理(図9のステップ5
4および56)が行われる。すなわち、色修正回路(ま
たは部)20eは、LUT作成・組込回路(または部)
20dによって作成されて組み込まれた補正LUTに基
づき補正後(色修正後)のRGB値を求める(ステップ
54)。全ての画素についてステップ54が終了すると
(ステップ56、Yes)、色画像データに対する色修
正モードにおける処理が終了する。
2) Processing in the Color Correction Mode In the color correction mode, the image data supplied from the data input switching circuit (or unit) 20f is processed by the color correction circuit (or unit) 20e (step in FIG. 9). 5
4 and 56) are performed. That is, the color correction circuit (or unit) 20e is an LUT creation / incorporation circuit (or unit).
An RGB value after correction (after color correction) is obtained based on the correction LUT created and incorporated by 20d (step 54). When step 54 is completed for all the pixels (step 56, Yes), the processing in the color correction mode for the color image data is completed.

【0047】次に、図7の処理を具体的な例に適用して
説明する。
Next, the processing of FIG. 7 will be described by applying it to a specific example.

【0048】図7のステップ40〜46における処理の
後、作成されたグレイヒストグラムの一例を図11に示
す。当該具体例においては、ステップ42でグレイ付近
の画素であると判定するためのSatの閾値thSは、 thS=32 としている。ThSの値は、補正対象の色かぶりの程度か
ら逆算して求められる。換言すると、thS=32以上の
彩度を有する画素は色かぶりの影響が少なく、ほぼ本来
の色と判定される。図11に示すグレーヒストグラムの
場合、緑のヒストグラム(Gg)が右に寄っており、G
かぶりが検出されている。
FIG. 11 shows an example of the gray histogram created after the processing in steps 40 to 46 of FIG. In the specific example, the threshold value thS of Sat for determining a pixel in the vicinity of gray in step 42 is thS = 32. The value of ThS is obtained by back calculation from the degree of color cast to be corrected. In other words, a pixel having a saturation of thS = 32 or more is less affected by color cast and is determined to be substantially the original color. In the case of the gray histogram shown in FIG. 11, the green histogram (Gg) is shifted to the right and G
Fog is detected.

【0049】そして、ステップ42において、Sat<3
2且つY>128の領域のみを対象としてヒストグラム
を作成して、各平均値を計算すると、
Then, in step 42, Sat <3
When a histogram is created only for the area of 2 and Y> 128, and each average value is calculated,

【0050】[0050]

【数7】 となる。(Equation 7) Becomes

【0051】図10に示す補正LUTのトーンカーブ
は、制御ポイントを3/4トーン(階調「192」)と
すると、階調「0」、階調「255」および制御ポイン
トの3点を通るスプライン曲線で滑らかに補間すること
で得られる。
The tone curve of the correction LUT shown in FIG. 10 passes through three points of gray scale "0", gray scale "255", and the control point when the control point is 3/4 tone (gray scale "192"). It is obtained by smooth interpolation with a spline curve.

【0052】また、トーンカーブ制御量は、それぞれThe tone curve control amounts are respectively

【0053】[0053]

【数8】 となる。補正RGBトーンカーブ(LUT)は、図12
に示すようになる。当該RGB補正トーンカーブによ
り、緑色が弱められ、元画像における緑色かぶりが出力
画像においては低減される。このように、当該第1実施
例によれば、明度の高いグレー領域に近い要素色成分を
有する画素について集計が行われ、当該集計された画素
に基づいて計算される色補正量にしたがって色画像デー
タを色修正するためのLUTを色修正回路(または部)
20eに組込み色修正を行っているので、高彩度色の背
景や服など不要な画像部分の影響を低減させることがで
き、高精度で適切な色修正を自動的に行うことができ
る。
(Equation 8) Becomes The corrected RGB tone curve (LUT) is shown in FIG.
It becomes as shown in. By the RGB correction tone curve, green is weakened, and green cast in the original image is reduced in the output image. As described above, according to the first embodiment, aggregation is performed on pixels having element color components close to the gray region having high brightness, and the color image is calculated according to the color correction amount calculated based on the aggregated pixels. Color correction circuit (or unit) for LUT for color correction of data
Since the built-in color correction is performed on the image 20e, it is possible to reduce the influence of unnecessary image portions such as a background of high chroma colors and clothes, and to automatically perform appropriate color correction with high accuracy.

【0054】第2実施例 以下、図13を参照して、第2実施例にかかる、図1お
よび図2のLUT作成・色修正制御回路20または図3
のコンピュータ21によって構成されるLUT作成・色
修正制御部20が実行する色変換テーブル(LUT)作
成および色修正処理の制御プログラムについて説明す
る。当該第2実施例では、色かぶり補正の第2の例とし
て、分割された各輝度領域毎に補正量を決定して補正R
GBトーンカーブを生成して更に緻密な色修正を行うも
のである。当該実施の形態では、輝度領域を階調によっ
て、シャドウ領域(shadow:0〜64階調)、ミッドトー
ン領域(mid:64〜128階調)、ハイライト領域(highli
ght:128〜255階調)の3つの輝度領域に分割して平均
値を求める。
Second Embodiment Referring now to FIG. 13, the LUT creation / color correction control circuit 20 of FIG. 1 and FIG. 2 or FIG.
A control program for color conversion table (LUT) creation and color correction processing executed by the LUT creation / color correction control unit 20 constituted by the computer 21 will be described. In the second embodiment, as a second example of the color cast correction, the correction amount is determined for each of the divided luminance areas and the correction R is determined.
A more detailed color correction is performed by generating a GB tone curve. In the present embodiment, the brightness area is represented by a gray level, and a shadow area (shadow: 0 to 64 gray levels), a midtone area (mid: 64 to 128 gray levels), and a highlight area (highli
ght: 128 to 255 gradations) and divides into three luminance areas to obtain an average value.

【0055】第1実施例と同様に、LUT作成・色修正
制御回路(または部)20の動作モードには、LUT作
成モードと色修正モードとがある。LUT作成モードで
は、データ入力切換回路(または部)20fは、入力さ
れる画像データを彩度計算回路(または部)20aおよ
びY値計算回路(または部)20gに供給する。そし
て、グレイヒストグラム作成回路(または部)20bお
よび平均値計算回路(または部)20cにおける画像デ
ータの処理を経て、LUT作成・組込回路(または部)
20dにおいて所望の色変換テーブルが作成された後、
当該色変換テーブルが、実際に入力画像データの色修正
を行う色修正回路(または部)20eに組み込まれる。
一方、色修正モードにおいては、データ入力切換回路
(または部)20fは、入力される画像データを色修正
回路(または部)20eに供給する。色修正回路(また
は部)20eは、LUT作成・組込回路(または部)2
0dによって作成されて組み込まれた色変換テーブルを
用いて所望の色修正を行う。
As in the first embodiment, the operation modes of the LUT creation / color correction control circuit (or unit) 20 include an LUT creation mode and a color correction mode. In the LUT creation mode, the data input switching circuit (or unit) 20f supplies the input image data to the saturation calculation circuit (or unit) 20a and the Y value calculation circuit (or unit) 20g. Then, through the processing of the image data in the gray histogram creation circuit (or section) 20b and the average value calculation circuit (or section) 20c, the LUT creation / embedding circuit (or section)
After a desired color conversion table is created in 20d,
The color conversion table is incorporated in a color correction circuit (or unit) 20e that actually corrects the color of the input image data.
On the other hand, in the color correction mode, the data input switching circuit (or unit) 20f supplies the input image data to the color correction circuit (or unit) 20e. The color correction circuit (or unit) 20e is an LUT creation / embedding circuit (or unit) 2
A desired color correction is performed using the color conversion table created and incorporated according to Od.

【0056】1)LUT作成モードにおける処理 まず、本発明によるLUT作成・色修正制御回路(また
は部)20の彩度計算回路(または部)20aは、デー
タ入力切換回路(または部)20fから供給される画像
データの各画素のRGB値から彩度Satを求める(ステ
ップ60)。Satは、 Sat=256×(I−i)/(I+i) によって求められる。ここで、Iは、 I=max{R,G,B} で定義され、各画素のRGB値の中の最大値である。ま
た、iは、 i=min{R,G,B} で定義され、各画素のRGB値の中の最小値である。
1) Processing in LUT Creation Mode First, the saturation calculation circuit (or section) 20a of the LUT creation / color correction control circuit (or section) 20 according to the present invention is supplied from the data input switching circuit (or section) 20f. The saturation Sat is obtained from the RGB values of each pixel of the image data to be processed (step 60). Sat is obtained by Sat = 256 × (I−i) / (I + i). Here, I is defined by I = max {R, G, B}, and is the maximum value among the RGB values of each pixel. I is defined as i = min {R, G, B}, and is the minimum value among the RGB values of each pixel.

【0057】そして、Y値計算回路(または部)20g
は、データ入力切換回路(または部)20fから供給さ
れる画像データの各画素のRGB値から基準値Yを求め
る(ステップ61)。基準値Yは Y=(R+G+B)/3 で計算される値である。このように基準値Yを定義した
のは、理想のグレイ画像がR=G=Bとなるため、各色
を当分に加算した値を基準にしていることを意味する。
Then, the Y value calculation circuit (or unit) 20g
Calculates the reference value Y from the RGB values of each pixel of the image data supplied from the data input switching circuit (or unit) 20f (step 61). The reference value Y is a value calculated by Y = (R + G + B) / 3. The definition of the reference value Y in this way means that the ideal gray image satisfies R = G = B, so that the reference value is based on a value obtained by adding the respective colors for the time being.

【0058】次に、本発明によるLUT作成・色修正制
御回路(または部)20のグレイヒストグラム作成回路
(または部)20bは、SatがthSよりも小さいか否かを
判断する(ステップ62)。ここで、thSは、所定の画
素がグレイ付近の画素であるか否かを判定するための閾
値であり、SatがthSよりも小さい場合には所定の画素が
グレイ付近の画素であると判定して、データ解析の対象
とする。そして、SatがthSよりも小さい場合(ステップ
62、Yes)、各画素のRGB値およびY値をヒスト
グラムに加算する(ステップ64)。グレイヒストグラ
ム作成回路(または部)20bでは、Sat<thSを満たす
画素に対して、分割された3つの輝度領域毎にR、G、
Bのヒストグラムを9個(=3×3)およびYのヒスト
グラムを1個の計10個のヒストグラムを作成する。
Next, the gray histogram creation circuit (or unit) 20b of the LUT creation / color correction control circuit (or unit) 20 according to the present invention determines whether or not Sat is smaller than thS (step 62). Here, thS is a threshold value for determining whether or not the predetermined pixel is a pixel near gray, and when Sat is smaller than thS, it is determined that the predetermined pixel is a pixel near gray. Data analysis. If Sat is smaller than thS (step 62, Yes), the RGB value and the Y value of each pixel are added to the histogram (step 64). In the gray histogram creation circuit (or unit) 20b, for pixels satisfying Sat <thS, R, G,
Nine (3 × 3) histograms of B and one histogram of Y are created, for a total of ten histograms.

【0059】全ての画素について上記ステップ60、6
1、62および64の処理が終了するまで上記ステップ
60、61、62および64の処理が繰り返される。全
ての画素について上記ステップ60、61、62および
64の処理が終了すると(ステップ66、Yes)、グ
レイヒストグラムが完成して(ステップ68)、グレイ
ヒストグラム作成回路(または部)20bによる処理を
終了する。なお、加算を行うにあたっては、第1実施例
と同様図8に示すようにして対象画素を移動させながら
全画素について集計していくことにする。
Steps 60 and 6 for all pixels
The processes of steps 60, 61, 62 and 64 are repeated until the processes of 1, 62 and 64 are completed. When the processing of steps 60, 61, 62 and 64 is completed for all pixels (step 66, Yes), the gray histogram is completed (step 68), and the processing by the gray histogram creation circuit (or unit) 20b is completed. . In addition, when performing the addition, as in the first embodiment, as shown in FIG. 8, all the pixels are counted while moving the target pixel.

【0060】次に、グレイヒストグラム作成回路(また
は部)20bによる処理が終了すると、平均値計算回路
(または部)20cは、作成されたグレイヒストグラム
からRGBの値の平均値を分割された各輝度領域毎に求
め(ステップ70)、当該画像のRGB分布の特徴を分
割された各輝度領域毎に知ることができる。当該実施の
形態では、R、G、Bのそれぞれに関して、輝度領域を
階調によって、シャドウ領域(shadow:0〜64階調)、
ミッドトーン領域(mid:64〜128階調)、ハイライト領
域(highlight:128〜255階調)の3つの輝度領域に分
割して平均値を求める。例えばRのシャドウ領域の平均
Next, when the processing by the gray histogram creation circuit (or unit) 20b is completed, the average value calculation circuit (or unit) 20c outputs the luminance values obtained by dividing the average value of RGB values from the created gray histogram. It is obtained for each area (step 70), and the characteristics of the RGB distribution of the image can be known for each of the divided luminance areas. In the present embodiment, for each of R, G, and B, the brightness region is represented by a gradation, and a shadow region (shadow: 0 to 64 gradations)
An average value is obtained by dividing the image into three luminance areas of a midtone area (mid: 64 to 128 gradations) and a highlight area (highlight: 128 to 255 gradations). For example, the average value of the shadow area of R

【0061】[0061]

【数9】 、ミッドトーン領域の平均値(Equation 9) , Average value in the midtone area

【0062】[0062]

【数10】 、およびハイライト領域の平均値(Equation 10) , And the average value of the highlight area

【0063】[0063]

【数11】 は、その頻度をjRgとすると、[Equation 11] Is given by j Rg

【0064】[0064]

【数12】 で求められる。同様に、G、Bについても各輝度領域毎
に求めることができる。さらに、各輝度領域毎に基準値
の平均
(Equation 12) Is required. Similarly, G and B can be obtained for each luminance area. Furthermore, the average of the reference values for each luminance area

【0065】[0065]

【数13】 (シャドウ領域)、(Equation 13) (Shadow area),

【0066】[0066]

【数14】 (ミッドトーン領域)、[Equation 14] (Midtone area),

【0067】[0067]

【数15】 (ハイライト領域)も求めることができる。(Equation 15) (Highlight area) can also be obtained.

【0068】平均値計算回路(または部)20cによる
処理が終了すると、LUT作成回路(または部)20d
が、ステップ70で求められたRGB平均値と、基準値
Yの平均値との差分に基づき補正LUT(ルックアップ
テーブル)を作成する(ステップ72)。例えば、赤
(Red)の差分は、
When the processing by the average value calculation circuit (or unit) 20c is completed, the LUT creation circuit (or unit) 20d
Creates a correction LUT (lookup table) based on the difference between the RGB average value obtained in step 70 and the average value of the reference value Y (step 72). For example, the difference for Red is

【0069】[0069]

【数16】 (シャドウ領域)(Equation 16) (Shadow area)

【0070】[0070]

【数17】 (ミッドトーン領域)[Equation 17] (Midtone area)

【0071】[0071]

【数18】 (ハイライト領域)によって求められる。図14に示す
ように、補正LUTのトーンカーブは、当該差分値だけ
3つの制御点をシフトさせて、階調「0」、階調「25
5」およびシフトした3つの制御点の計5点を通るスプ
ライン曲線で滑らかに補間することによって作成され
る。同様に、緑
(Equation 18) (Highlight area). As shown in FIG. 14, the tone curve of the correction LUT is obtained by shifting three control points by the difference value to obtain a gradation “0” and a gradation “25”.
5 "and a spline curve that passes through a total of five shifted three control points. Similarly, green

【0072】[0072]

【数19】 (シャドウ領域)[Equation 19] (Shadow area)

【0073】[0073]

【数20】 (ミッドトーン領域)(Equation 20) (Midtone area)

【0074】[0074]

【数21】 (ハイライト領域)および青の差分(Equation 21) (Highlighted area) and blue difference

【0075】[0075]

【数22】 (シャドウ領域)(Equation 22) (Shadow area)

【0076】[0076]

【数23】 (ミッドトーン領域)(Equation 23) (Midtone area)

【0077】[0077]

【数24】 (ハイライト領域)も求められる。(Equation 24) (Highlight area) is also required.

【0078】以上のようにして、LUT作成・組込回路
(または部)20dによる補正LUT(ルックアップテ
ーブル)の作成(ステップ72)が終了すると、LUT
作成・組込回路(または部)20dは、当該作成された
補正LUTを色修正回路(または部)20eに組み込み
(ステップ73)、LUT作成モードにおける処理を終
了する。
As described above, when the creation of the correction LUT (look-up table) by the LUT creation / embedding circuit (or unit) 20d (step 72) is completed, the LUT
The creation / incorporation circuit (or unit) 20d incorporates the created correction LUT into the color correction circuit (or unit) 20e (step 73), and ends the processing in the LUT creation mode.

【0079】2)色修正モードにおける処理 色修正モードにおける処理は、第1実施例と同様であ
る。すなわち、色修正モードにおいては、データ入力切
換回路(または部)20fから供給される画像データに
対して、色修正回路(または部)20eによる処理(図
9のステップ54および56)が行われる。すなわち、
色修正回路(または部)20eは、LUT作成・組込回
路(または部)20dによって作成されて組み込まれた
補正LUTに基づき補正後(色修正後)のRGB値を求
める(ステップ54)。全ての画素についてステップ5
4が終了すると(ステップ56、Yes)、色画像デー
タに対する色修正モードにおける処理が終了する。
2) Processing in Color Correction Mode Processing in the color correction mode is the same as in the first embodiment. That is, in the color correction mode, the processing (steps 54 and 56 in FIG. 9) by the color correction circuit (or unit) 20e is performed on the image data supplied from the data input switching circuit (or unit) 20f. That is,
The color correction circuit (or unit) 20e obtains corrected (color corrected) RGB values based on the correction LUT created and incorporated by the LUT creation / incorporation circuit (or unit) 20d (step 54). Step 5 for all pixels
When Step 4 is completed (Step 56, Yes), the processing in the color correction mode for the color image data ends.

【0080】次に、図13の処理を具体的な例に適用し
て説明する。
Next, the processing of FIG. 13 will be described by applying it to a specific example.

【0081】当該具体例においては、図15に示すグレ
ースケールチャート(元画像データ)が画像入力装置1
0からLUT作成・色修正制御回路(または部)20に
供給されたものとする。さらに、当該具体例において
は、ステップ62でグレイ付近の画素であると判定する
ためのSatの閾値thSは、 thS=32 としている。thSの値は、補正対象の色かぶりの程度か
ら逆算して求められる。換言すると、thS=32以上の
彩度を有する画素は色かぶりの影響が少なく、ほぼ本来
の色と判定される。図15に示すグレースケールチャー
トが元画像データの場合、各輝度領域における各平均値
は、
In this specific example, the gray scale chart (original image data) shown in FIG.
It is assumed that the data is supplied from 0 to the LUT creation / color correction control circuit (or unit) 20. Furthermore, in the specific example, the threshold value thS of Sat for determining that the pixel is a pixel near gray in step 62 is set to thS = 32. The value of thS is obtained by back calculation from the degree of color fog to be corrected. In other words, a pixel having a saturation of thS = 32 or more is less affected by color cast and is determined to be substantially the original color. When the grayscale chart shown in FIG. 15 is the original image data, each average value in each luminance area is

【0082】[0082]

【数25】 となる。(Equation 25) Becomes

【0083】図14に示す補正LUTのトーンカーブ
は、制御ポイントを32階調、96階調、192階調と
すると、階調「0」、階調「255」および3つの制御
ポイントの5点を通るスプライン曲線で滑らかに補間す
ることで得られる。
The tone curve of the correction LUT shown in FIG. 14 has five control points of gradation "0", gradation "255", and three control points, where the control points are 32 gradations, 96 gradations, and 192 gradations. By smoothly interpolating with a spline curve passing through.

【0084】また、トーンカーブ制御量は、それぞれThe tone curve control amounts are respectively

【0085】[0085]

【数26】 となる。図16に、トーンカーブ出力補正量を示す。当
該トーンカーブ出力補正量に基づき、補正RGBトーン
カーブ(LUT)が生成される。このように、分割され
た各輝度領域毎に補正量を決定して補正RGBトーンカ
ーブを生成したLUTを色修正回路(または部)20e
に組込み色修正を行っているので、さらに緻密なカラー
バランス補正を行なうことができる。
(Equation 26) Becomes FIG. 16 shows the tone curve output correction amount. A corrected RGB tone curve (LUT) is generated based on the tone curve output correction amount. As described above, the LUT that determines the correction amount for each of the divided luminance areas and generates the corrected RGB tone curve is converted to the color correction circuit (or unit) 20e.
Since the built-in color correction is performed, more precise color balance correction can be performed.

【0086】[0086]

【発明の効果】本発明によれば、画像データの各要素色
成分毎の所定の基準値との差を解消するような色補正量
に基づいて、各要素色成分毎に前記色変換テーブルが生
成され、当該生成された色変換テーブルが前記色修正装
置に組み込まれるので、自動的に適切な色修正が可能と
なる。
According to the present invention, the color conversion table for each element color component is determined based on the amount of color correction that eliminates the difference from a predetermined reference value for each element color component of the image data. Since the generated color conversion table is incorporated in the color correction device, appropriate color correction can be automatically performed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1実施形態にかかる、実写画像デー
タに対して最適な色修正を実行するための色変換テーブ
ルが組み込まれたデジタルカメラ100の構造を説明す
るためのブロック図である。
FIG. 1 is a block diagram for explaining a structure of a digital camera 100 according to a first embodiment of the present invention, in which a color conversion table for executing optimal color correction on real image data is incorporated. .

【図2】本発明の第1実施形態にかかる、LUT作成・
色修正制御回路20の機能ブロック図である。
FIG. 2 is a diagram showing an example of LUT creation and operation according to the first embodiment of the present invention.
FIG. 3 is a functional block diagram of a color correction control circuit 20.

【図3】本発明の第2実施形態にかかる、実写画像デー
タに対して最適な色修正を実行するための色変換テーブ
ルが組み込まれる色修正システムの具体的ハードウエア
構成例を示す概略ブロック図である。
FIG. 3 is a schematic block diagram showing a specific hardware configuration example of a color correction system according to a second embodiment of the present invention, in which a color conversion table for executing optimal color correction on real image data is incorporated. It is.

【図4】本発明の第2実施形態にかかる、LUT作成・
色修正制御部20のブロック図である。
FIG. 4 is a diagram showing an example of LUT creation and operation according to a second embodiment of the present invention.
FIG. 3 is a block diagram of a color correction control unit 20.

【図5】本発明の第2実施形態によるLUT作成・色修
正制御部の他の適用例を示す概略ブロック図である。
FIG. 5 is a schematic block diagram showing another application example of the LUT creation / color correction control unit according to the second embodiment of the present invention.

【図6】本発明の第2実施形態によるLUT作成・色修
正制御部のさらに他の適用例を示す概略ブロック図であ
る。
FIG. 6 is a schematic block diagram showing still another application example of the LUT creation / color correction control unit according to the second embodiment of the present invention.

【図7】本発明の第1実施例によるLUT作成・色修正
制御回路(または部)のLUT作成モードにおける処理
を説明するためのフローチャートである。
FIG. 7 is a flowchart for explaining processing in an LUT creation mode of the LUT creation / color correction control circuit (or unit) according to the first embodiment of the present invention.

【図8】処理対象画素を移動させていく状態を示す図で
ある。
FIG. 8 is a diagram illustrating a state in which a processing target pixel is moved.

【図9】本発明の第1実施例によるLUT作成・色修正
制御回路(または部)の色修正モードにおける処理を説
明するためのフローチャートである。
FIG. 9 is a flowchart for explaining processing in a color correction mode of the LUT creation / color correction control circuit (or unit) according to the first embodiment of the present invention.

【図10】本発明の第1実施例による補正LUTのトー
ンカーブを示す図である。
FIG. 10 is a diagram showing a tone curve of a correction LUT according to the first embodiment of the present invention.

【図11】本発明の第1実施例によるRGBおよび基準
値Yに関して作成されたグレイヒストグラムの一例であ
る。
FIG. 11 is an example of a gray histogram created for RGB and a reference value Y according to the first embodiment of the present invention.

【図12】本発明の第1実施例による補正LUTの一例
を示すグラフ図である。
FIG. 12 is a graph showing an example of a correction LUT according to the first embodiment of the present invention.

【図13】本発明の第2実施例によるLUT作成・色修
正制御回路(または部)のLUT作成モードにおける処
理を説明するためのフローチャートである。
FIG. 13 is a flowchart illustrating a process in an LUT creation mode of an LUT creation / color correction control circuit (or unit) according to a second embodiment of the present invention.

【図14】本発明の第2実施例による補正LUTのトー
ンカーブを示す図である。
FIG. 14 is a diagram showing a tone curve of a correction LUT according to a second embodiment of the present invention.

【図15】本発明の第2実施例による画像入力装置10
から色修正装置20に供給されるグレースケールチャー
ト(元画像データ)の一例である。
FIG. 15 shows an image input device 10 according to a second embodiment of the present invention.
3 is an example of a grayscale chart (original image data) supplied to the color correction device 20 from FIG.

【図16】本発明の第2実施例によるトーンカーブ出力
補正量の一例を示すグラフ図である。
FIG. 16 is a graph showing an example of a tone curve output correction amount according to the second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

10 画像入力装置 11 スキャナ 12 デジタルスチルカメラ 14 ビデオカメラ 20 LUT作成・色修正制御回路(部) 20a 彩度計算回路(部) 20b グレイヒストグラム作成回路(部) 20c 平均値計算回路(部) 20d LUT作成・組込み回路(部) 20e 色修正回路(部) 20f データ入力切換回路(部) 20g Y値計算回路(部) 21 コンピュータ 23 キーボード 24 CD−ROMドライブ 25 フロッピーディスクドライブ 26 モデム 30 画像出力装置 31 プリンタ 32 ディスプレイ 100 デジタルカメラ 111 制御部 112 集光レンズ 113 CCD 114 A/D変換器 115 RAM 116 フラッシュメモリ 117 LCD 118 VRAM 119 インターフェイス 120 色修正選択回路 Reference Signs List 10 Image input device 11 Scanner 12 Digital still camera 14 Video camera 20 LUT creation / color correction control circuit (part) 20a Saturation calculation circuit (part) 20b Gray histogram creation circuit (part) 20c Average value calculation circuit (part) 20d LUT Creation / embedding circuit (part) 20e Color correction circuit (part) 20f Data input switching circuit (part) 20g Y value calculation circuit (part) 21 Computer 23 Keyboard 24 CD-ROM drive 25 Floppy disk drive 26 Modem 30 Image output device 31 Printer 32 Display 100 Digital camera 111 Control unit 112 Condenser lens 113 CCD 114 A / D converter 115 RAM 116 Flash memory 117 LCD 118 VRAM 119 Interface 120 Color correction selection circuit

フロントページの続き Fターム(参考) 5B057 AA11 CA01 CA08 CB01 CB07 CE16 5C066 AA01 EA05 GA01 GB03 HA03 JA03 KE09 KE17 KE19 KM02 5C077 MP01 MP08 PP15 PP32 PP33 PP35 PP37 PP46 PQ18 PQ19 PQ23 5C079 HB01 LA02 LB01 MA04 MA11 NA03 NA18 Continued on the front page F term (reference) 5B057 AA11 CA01 CA08 CB01 CB07 CE16 5C066 AA01 EA05 GA01 GB03 HA03 JA03 KE09 KE17 KE19 KM02 5C077 MP01 MP08 PP15 PP32 PP33 PP35 PP37 PP46 PQ18 PQ19 PQ23 5C079 HB01 MA02 NA02 MA02

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 カラー画像を複数の要素色成分によって
表す色画像データを色変換テーブルに基づき色修正する
色修正装置における色修正方法であって、 前記色画像データの各要素色成分毎の値を計算する要素
色成分値計算工程と、 当該要素色成分値計算工程によって計算された各要素色
成分毎の値に基づき、各要素色成分毎の所定の基準値と
の差を解消するような色補正量を計算する色補正量計算
工程と、 当該色補正量計算工程によって計算された色補正量に基
づいて、各要素色成分毎に前記色変換テーブルを生成す
る色変換テーブル生成工程と、 当該色変換テーブル生成工程によって生成された色変換
テーブルを前記色修正装置に組み込む色変換テーブル組
込工程と、 を備えている色修正方法。
1. A color correction method for a color correction apparatus for correcting a color image data representing a color image by a plurality of component color components based on a color conversion table, wherein a value for each component color component of the color image data is provided. And calculating, based on the values for each element color component calculated in the element color component value calculation step, a difference between a predetermined reference value for each element color component. A color correction amount calculating step of calculating a color correction amount, and a color conversion table generating step of generating the color conversion table for each element color component based on the color correction amount calculated by the color correction amount calculating step. A color conversion table incorporation step of incorporating the color conversion table generated in the color conversion table generation step into the color correction device.
【請求項2】 請求項1に記載の色修正方法であって、
前記要素色成分値計算工程が、グレー領域に近い要素色
成分を有する画素について、色画像データの各要素色成
分毎の値を計算する色修正方法。
2. The color correction method according to claim 1, wherein:
A color correction method, wherein the element color component value calculation step calculates a value for each element color component of color image data for a pixel having an element color component close to a gray area.
【請求項3】 請求項2に記載の色修正方法であって、
前記要素色成分値計算工程において、所定の画素の要素
色成分の最小値に対する、当該要素色成分の最大値の比
が第1閾値よりも小さい場合に、グレー領域に近い要素
色成分を有する画素と判定する色修正方法。
3. The color correction method according to claim 2, wherein
In the element color component value calculation step, when the ratio of the maximum value of the element color component to the minimum value of the element color component of the predetermined pixel is smaller than the first threshold value, the pixel having the element color component close to the gray area Color correction method to determine.
【請求項4】 請求項2または3に記載の色修正方法で
あって、前記要素色成分値計算工程が、第2閾値よりも
大きな輝度を有する画素を要素色成分の計算対象とする
色修正方法。
4. The color correction method according to claim 2, wherein said element color component value calculation step includes setting a pixel having a luminance larger than a second threshold as a target of calculation of an element color component. Method.
【請求項5】 請求項2乃至4のいづれか一項に記載の
色修正工程であって、前記色補正量計算工程が、要素色
成分値計算工程によって計算された各要素色成分毎の値
に基づき、前記色画像データの各要素色成分毎に平均値
を計算して、当該平均値と所定の基準値との差を解消す
るような色補正量を求める色修正方法。
5. The color correction step according to claim 2, wherein the color correction amount calculation step includes calculating a value for each element color component calculated by the element color component value calculation step. A color correction method for calculating an average value for each element color component of the color image data and obtaining a color correction amount that eliminates a difference between the average value and a predetermined reference value.
【請求項6】 請求項2に記載の色修正方法であって、
前記要素色成分値計算工程が、2以上の輝度領域に分割
して前記色画像データの各要素色成分毎の値を計算し、
色補正量計算工程が、分割された各輝度領域毎に、各要
素色成分毎の所定の基準値との差を解消するような色補
正量を計算する色修正方法。
6. The color correction method according to claim 2, wherein
The element color component value calculation step calculates a value for each element color component of the color image data by dividing into two or more luminance areas,
A color correction method in which a color correction amount calculating step calculates a color correction amount for each of the divided luminance regions so as to eliminate a difference from a predetermined reference value for each element color component.
【請求項7】 請求項6に記載の色修正方法であって、
前記要素色成分計算工程が、所定の画素の要素色成分の
最小値に対する、当該要素色成分の最大値の比が所定の
閾値よりも小さい場合に、グレー領域に近い要素色成分
を有する画素と判定する色修正方法。
7. The color correction method according to claim 6, wherein:
The element color component calculation step, when the ratio of the maximum value of the element color component to the minimum value of the element color component of a predetermined pixel is smaller than a predetermined threshold, a pixel having an element color component close to the gray region Judgment color correction method.
【請求項8】 請求項6または7に記載の色修正工程で
あって、前記色補正量計算工程が、要素色成分値計算工
程によって計算された各要素色成分毎の値に基づき、前
記分割された輝度領域毎に前記色画像データの各要素色
成分毎の平均値を計算して、当該平均値と所定の基準値
との差を解消するような色補正量を求める色修正方法。
8. The color correction step according to claim 6, wherein the color correction amount calculation step is based on the value for each element color component calculated in the element color component value calculation step. A color correction method for calculating an average value for each of the component color components of the color image data for each of the obtained luminance areas, and obtaining a color correction amount that eliminates a difference between the average value and a predetermined reference value.
【請求項9】 カラー画像を複数の要素色成分によって
表す色画像データを色変換テーブルに基づき色修正する
色修正装置であって、 前記色画像データの各要素色成分毎の値を計算する要素
色成分値計算手段と、 当該要素色成分値計算手段によって計算された各要素色
成分毎の値に基づき、各要素色成分毎の所定の基準値と
の差を解消するような色補正量を計算する色補正量計算
手段と、 当該色補正量計算手段によって計算された色補正量に基
づいて、各要素色成分毎に前記色変換テーブルを生成す
る色変換テーブル生成手段と、 当該色変換テーブル生成手段によって生成された色変換
テーブルを前記色修正装置に組み込む色変換テーブル組
込手段と、 を備えている色修正装置。
9. A color correction device for correcting a color image data representing a color image by a plurality of component color components based on a color conversion table, wherein a component for calculating a value for each component color component of the color image data is provided. A color correction value for eliminating a difference between a predetermined reference value for each element color component based on the value for each element color component calculated by the color component value calculation means; A color correction amount calculating means for calculating; a color conversion table generating means for generating the color conversion table for each element color component based on the color correction amount calculated by the color correction amount calculating means; A color conversion table incorporating means for incorporating the color conversion table generated by the generation means into the color correction apparatus.
【請求項10】 カラー画像を複数の要素色成分によっ
て表す色画像データを色変換テーブルに基づき色修正す
る色修正装置における色修正処理をコンピュータに実行
させるためのプログラムを記録したコンピュータによっ
て読取可能な記録媒体であって、 前記色画像データの各要素色成分毎の値を計算する要素
色成分値計算処理と、 当該要素色成分値計算処理によって計算された各要素色
成分毎の値に基づき、各要素色成分毎の所定の基準値と
の差を解消するような色補正量を計算する色補正量計算
処理と、 当該色補正量計算処理によって計算された色補正量に基
づいて、各要素色成分毎に前記色変換テーブルを生成す
る色変換テーブル生成処理と、 当該色変換テーブル生成処理によって生成された色変換
テーブルを前記色修正装置に組み込む色変換テーブル組
込処理と、 をコンピュータに実行させるためのプログラムを記録し
たコンピュータによって読取可能な記録媒体。
10. A computer readable recording medium storing a program for causing a computer to execute a color correction process in a color correction device for correcting a color image data representing a color image by a plurality of component color components based on a color conversion table. A recording medium, based on an element color component value calculation process for calculating a value for each element color component of the color image data, and a value for each element color component calculated by the element color component value calculation process, A color correction amount calculation process for calculating a color correction amount that eliminates a difference from a predetermined reference value for each element color component; and a color correction amount calculated by the color correction amount calculation process. A color conversion table generating process for generating the color conversion table for each color component, and assembling the color conversion table generated by the color conversion table generating process into the color correction device. Recording medium readable by the recording a computer program for executing a color conversion table embedded process, to the computer that writes.
JP2000108350A 2000-04-10 2000-04-10 Color correction method, color correction device, and recording medium recording color correction control program Withdrawn JP2001292332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000108350A JP2001292332A (en) 2000-04-10 2000-04-10 Color correction method, color correction device, and recording medium recording color correction control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000108350A JP2001292332A (en) 2000-04-10 2000-04-10 Color correction method, color correction device, and recording medium recording color correction control program

Publications (1)

Publication Number Publication Date
JP2001292332A true JP2001292332A (en) 2001-10-19

Family

ID=18621207

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000108350A Withdrawn JP2001292332A (en) 2000-04-10 2000-04-10 Color correction method, color correction device, and recording medium recording color correction control program

Country Status (1)

Country Link
JP (1) JP2001292332A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1351489A2 (en) * 2002-03-20 2003-10-08 Eastman Kodak Company Digital color image processing method
EP1351488A2 (en) * 2002-03-20 2003-10-08 Eastman Kodak Company Digital color image processing method for improved tone scale reproduction
US7251360B2 (en) * 2003-02-14 2007-07-31 Canon Kabushiki Kaisha Look-up table generation method, computer program, and imaging apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1351489A2 (en) * 2002-03-20 2003-10-08 Eastman Kodak Company Digital color image processing method
EP1351488A2 (en) * 2002-03-20 2003-10-08 Eastman Kodak Company Digital color image processing method for improved tone scale reproduction
EP1351488A3 (en) * 2002-03-20 2004-10-27 Eastman Kodak Company Digital color image processing method for improved tone scale reproduction
EP1351489A3 (en) * 2002-03-20 2004-10-27 Eastman Kodak Company Digital color image processing method
US7085007B2 (en) * 2002-03-20 2006-08-01 Eastman Kodak Company Digital color image processing method
US7085008B2 (en) * 2002-03-20 2006-08-01 Eastman Kodak Company Digital color image processing method for improved tone scale reproduction
US7251360B2 (en) * 2003-02-14 2007-07-31 Canon Kabushiki Kaisha Look-up table generation method, computer program, and imaging apparatus

Similar Documents

Publication Publication Date Title
JP4725057B2 (en) Generation of image quality adjustment information and image quality adjustment using image quality adjustment information
US6608926B1 (en) Image processing method, image processing apparatus and recording medium
US7375848B2 (en) Output image adjustment method, apparatus and computer program product for graphics files
JP3668014B2 (en) Image processing method and apparatus
EP1450551A1 (en) Image data output image adjustment
US20010035989A1 (en) Method, apparatus and recording medium for color correction
JP2001169135A (en) Color correction device, color correction method, and recording medium recording color correction control program
US20020008762A1 (en) Method, apparatus and recording medium for image processing
JP2000152018A (en) Method and device for picture processing and recording medium
JP2004341901A (en) Judgment of backlit human image
JP2003283853A (en) Image processing apparatus and method
US7034959B1 (en) Method, apparatus and recording medium for image processing
JP4581999B2 (en) Image processing apparatus and image processing method
JPH1141622A (en) Image processor
JP2001358957A (en) Image processing method and image processing unit and recording medium
JP2001189863A (en) Image processing method and image processing device
JP2000092337A (en) Image processing method, its device and recording medium
JP2001292332A (en) Color correction method, color correction device, and recording medium recording color correction control program
JP4232854B2 (en) Output image adjustment for image files
JP3817371B2 (en) Image processing method, apparatus, and recording medium
JP2000105820A (en) Monoton conversion device, monoton conversion method, and medium recording monoton conversion program
JP3999157B2 (en) Output image adjustment for image files
JP2005064647A (en) Image processing for image data
JP4402041B2 (en) Image processing method and apparatus, and storage medium
JP6882720B2 (en) Image processing equipment and computer programs

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070703