JP2006202091A - Image processing method, apparatus, and program, and image pickup device - Google Patents

Image processing method, apparatus, and program, and image pickup device Download PDF

Info

Publication number
JP2006202091A
JP2006202091A JP2005013904A JP2005013904A JP2006202091A JP 2006202091 A JP2006202091 A JP 2006202091A JP 2005013904 A JP2005013904 A JP 2005013904A JP 2005013904 A JP2005013904 A JP 2005013904A JP 2006202091 A JP2006202091 A JP 2006202091A
Authority
JP
Japan
Prior art keywords
data
correction
color difference
information
image data
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
Application number
JP2005013904A
Other languages
Japanese (ja)
Inventor
Hiroaki Ito
宏明 伊東
Hiroaki Takano
博明 高野
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.)
Konica Minolta Photo Imaging Inc
Original Assignee
Konica Minolta Photo Imaging Inc
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 Konica Minolta Photo Imaging Inc filed Critical Konica Minolta Photo Imaging Inc
Priority to JP2005013904A priority Critical patent/JP2006202091A/en
Publication of JP2006202091A publication Critical patent/JP2006202091A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing method which generates viewing image reference data with appropriate hue rotation correction performed therein without excessively increasing a file capacity to be stored in an information recording medium concerning the image processing method for performing correction processing to correct a hue fluctuation relative to raw image data. <P>SOLUTION: Hue correction information is generated, based on luminance data Y, color difference data Cr, and color difference data Cb, which are obtained by converting the raw image data generated by picking up the image of a subject. Then the hue correction information and the raw image data are recorded in the information recording medium. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像処理方法、画像処理装置、画像処理プログラム及び撮像装置に関する。   The present invention relates to an image processing method, an image processing apparatus, an image processing program, and an imaging apparatus.

撮像装置で撮影されたデジタル画像データ(以下、画像データという)は、CD−R(Compact Disc Recordable)、フロッピー(登録商標)ディスク、メモリカードなどの情報記録媒体やインターネット経由で配信され、CRT(Cathode Ray Tube)、液晶、プラズマ等のディスプレイモニタや携帯電話の小型液晶モニタの表示デバイスに表示されたり、デジタルプリンタ、インクジェットプリンタ、サーマルプリンタ等の出力デバイスを用いてハードコピー画像としてプリントされるなど、その表示・プリント方法は多種多様化してきている。   Digital image data (hereinafter referred to as image data) captured by an imaging apparatus is distributed via an information recording medium such as a CD-R (Compact Disc Recordable), a floppy (registered trademark) disk, a memory card, or the Internet, or the CRT ( Cathode Ray Tube), displayed on a display device such as a liquid crystal display or a plasma display or a small liquid crystal monitor of a mobile phone, or printed as a hard copy image using an output device such as a digital printer, an inkjet printer, or a thermal printer. The display / printing methods have been diversified.

また、画像データを鑑賞用途で表示・出力する際には、鑑賞に使用するディスプレイモニタ上、或いはハードコピー上において所望の画質が得られるように階調調整、輝度調整、カラーバランス調整、鮮鋭性強調に代表される種々の画像処理を施し、鑑賞画像参照データを生成することが一般に行われている。   Also, when displaying and outputting image data for viewing purposes, gradation adjustment, brightness adjustment, color balance adjustment, and sharpness so that the desired image quality can be obtained on a display monitor or hard copy used for viewing. In general, various image processing typified by emphasis is performed to generate appreciation image reference data.

画像データに対して行われる画像処理方法の一例として、画像データをY−Cr−Cb空間上の輝度データ及び色差データに変換した後、色差マトリクス演算を行う際に色差比が輝度によらず一定となるように輝度に依存した係数を決定することにより、肌色のオーバー露光時又はアンダー露光時に発生した色相変動を補正することが提案されている(例えば、特許文献1参照)。これにより、CRTなどのディスプレイモニタに表示する画像については、色相変動の発生を一時的に抑制する効果が期待できる。   As an example of an image processing method performed on image data, after converting the image data into luminance data and color difference data in the Y-Cr-Cb space, the color difference ratio is constant regardless of the luminance when performing the color difference matrix calculation. It has been proposed to correct a hue variation that has occurred at the time of overexposure or underexposure of skin color by determining a coefficient depending on luminance so as to satisfy (for example, see Patent Document 1). As a result, for an image displayed on a display monitor such as a CRT, an effect of temporarily suppressing the occurrence of hue variation can be expected.

一方、操作部によりシーン参照生データの出力が指定されると、撮像により撮像装置の撮像装置特性に依存したシーン参照生データを生成し、該シーン参照生データに対して、標準化されたシーン参照画像データを生成する撮像装置特性補正処理を施す際の再現補助データを生成して、該シーン参照生データに添付し、さらにメディアに記録することが提案されている(例えば、特許文献2参照)。これにより、情報損失を伴うことなく撮像画像をメディアに記録し、外部の装置に提供することが可能となる。
特開2003−61109号公報 特開2004−96500号公報
On the other hand, when the output of the scene reference raw data is specified by the operation unit, the scene reference raw data depending on the imaging device characteristics of the imaging device is generated by imaging, and the standardized scene reference is performed on the scene reference raw data. It has been proposed to generate auxiliary reproduction data when performing imaging device characteristic correction processing for generating image data, attach it to the scene reference raw data, and further record it on a medium (for example, see Patent Document 2). . As a result, the captured image can be recorded on the media without any information loss and provided to an external device.
JP 2003-61109 A JP 2004-96500 A

特許文献1に記載の処理が行われた画像データに対してさらに画像処理を行う場合、色相変動を修正する補正方法はデジタルカメラ毎に大きく異なり、独自の絵作りを所望するユーザにとっては、デジタルカメラ毎に補正値を変更せねばならず、負荷が大きかった。特に、多様なデジタルカメラからのデータが持ち込まれる業務用途においては、全てのデジタルカメラの補正値を予め保持することは、非常に負荷が大きく、デジタルカメラ共通の事象である色相変動(色相回りともいう)を効率的かつ適切に抑制することができないでいた。   When further image processing is performed on the image data that has been subjected to the processing described in Patent Document 1, the correction method for correcting the hue variation is greatly different for each digital camera. The correction value had to be changed for each camera, and the load was large. In particular, in business applications where data from a variety of digital cameras are brought in, it is very heavy to hold correction values for all digital cameras in advance, and hue fluctuations (both hue hues) are common to all digital cameras. Could not be efficiently and appropriately suppressed.

さらに、デジタルカメラ内で鑑賞画像参照データ等の補正画像データの生成も併せて行う場合、当該補正画像データをシーン参照生データ等の生画像データから再現することができず、生画像データ及び補正画像データの両方を記録する場合、情報記録媒体保存時のデータの対応付けやディレクトリ階層管理が非常に煩雑なものとなっていた。   Furthermore, when the correction image data such as the viewing image reference data is also generated in the digital camera, the correction image data cannot be reproduced from the raw image data such as the scene reference raw data. When recording both image data, data association and directory hierarchy management when storing the information recording medium have become very complicated.

一方、特許文献2に記載の撮像装置において、全ての再現補助データを付加して情報記録媒体に記録するとなると、膨大な容量となり、シーン参照生データの容量をさらに大きなものとし、情報記録媒体の空き容量を逼迫し、また通信時の転送時間増加に繋がる。さらに、デジタルカメラ側処理の負荷が増大し、記録速度の低下、バッテリ寿命の低下にも繋がる。   On the other hand, in the imaging device described in Patent Document 2, when all the reproduction auxiliary data is added and recorded on the information recording medium, the capacity becomes enormous, and the capacity of the scene reference raw data is further increased. Free space is constrained and the transfer time during communication is increased. Furthermore, the processing load on the digital camera increases, leading to a decrease in recording speed and a decrease in battery life.

そこで本発明は、上記の課題に鑑みて、生画像データに対して色相変動を修正する補正処理(以下、色相回り補正ともいう)を行う画像処理方法において、情報記録媒体に記憶するファイル容量を過度に増大させることなく、撮像したデジタルカメラに依存することなく、適正な色相回り補正がなされた鑑賞画像参照データを生成することが可能であり、また撮像したデジタルカメラで行われた色相回り補正を再現した鑑賞画像参照データを生成できる画像処理方法を提供することを目的とする。   Therefore, in view of the above-described problems, the present invention provides an image processing method for performing correction processing (hereinafter, also referred to as hue rotation correction) for correcting hue variation on raw image data, and reducing the file capacity stored in the information recording medium. It is possible to generate appreciation image reference data that has undergone appropriate hue correction without being excessively increased, and without depending on the captured digital camera, and hue correction performed by the captured digital camera. An object of the present invention is to provide an image processing method capable of generating appreciation image reference data that reproduces.

本発明の目的は、下記構成により達成することができる。   The object of the present invention can be achieved by the following constitution.

請求項1に係る発明は、被写体を撮像することにより生成された生画像データを入力する生画像データ入力工程と、
前記生画像データをY−Cr−Cb空間上の輝度データY及び色差データCr並びに色差データCbに変換する色空間データ変換工程と、
前記輝度データY及び色差データCr並びに色差データCbに基づいて、色相補正情報を生成する補正情報生成工程と、
前記色相補正情報及び前記生画像データに基づいて補正画像データを生成する色相補正工程と、
前記色相補正情報及び前記生画像データを情報記録媒体に記録する情報記録工程とを含むことを特徴とする画像処理方法である。
The invention according to claim 1 is a raw image data input step of inputting raw image data generated by imaging a subject;
A color space data conversion step of converting the raw image data into luminance data Y and color difference data Cr and color difference data Cb in the Y-Cr-Cb space;
A correction information generating step for generating hue correction information based on the luminance data Y, the color difference data Cr, and the color difference data Cb;
A hue correction step of generating corrected image data based on the hue correction information and the raw image data;
And an information recording step of recording the hue correction information and the raw image data on an information recording medium.

請求項2に係る発明は、前記情報記録工程は、前記補正画像データを情報記録媒体に記録することを特徴とする請求項1に記載の画像処理方法である。   The invention according to claim 2 is the image processing method according to claim 1, wherein the information recording step records the corrected image data on an information recording medium.

請求項3に係る発明は、前記色相補正工程は、下記式(1)乃至式(4)の何れか1組の式を用いてマトリクス演算を行うことで色差データCr及び色差データCbをそれぞれ色差データCr’及び色差データCb’に補正するものであり、
前記色相補正情報は、下記式(1)乃至式(4)の何れか1組の式に用いられる補正係数Kを含むことを特徴とする請求項1又は2に記載の画像処理方法である。
(1) Cr’=Cr×A/K+Cb×B、
Cb’=Cr×C+Cb×D
(2) Cr’=(Cr×A+Cb×B)/K、
Cb’=Cr×C+Cb×D
(3) Cr’=Cr×A+Cb×B、
Cb’=Cr×C+Cb×D×K
(4) Cr’=Cr×A+Cb×B、
Cb’=(Cr×C+Cb×D)×K
但し、A、B、C及びDはマトリクス係数であり、Kは前記輝度データYの関数であり、かつCr’/Cb’で表される色差比が前記輝度データYの値によらず一定になるように決められる、0よりも大きい補正係数である。
In the invention according to claim 3, in the hue correction step, the color difference data Cr and the color difference data Cb are respectively converted into color differences by performing a matrix operation using any one of the following formulas (1) to (4). Correction to data Cr ′ and color difference data Cb ′;
3. The image processing method according to claim 1, wherein the hue correction information includes a correction coefficient K used in any one of the following formulas (1) to (4).
(1) Cr ′ = Cr × A / K + Cb × B,
Cb ′ = Cr × C + Cb × D
(2) Cr ′ = (Cr × A + Cb × B) / K,
Cb ′ = Cr × C + Cb × D
(3) Cr ′ = Cr × A + Cb × B,
Cb ′ = Cr × C + Cb × D × K
(4) Cr ′ = Cr × A + Cb × B,
Cb ′ = (Cr × C + Cb × D) × K
However, A, B, C and D are matrix coefficients, K is a function of the luminance data Y, and the color difference ratio represented by Cr ′ / Cb ′ is constant regardless of the value of the luminance data Y. The correction coefficient is determined to be greater than 0.

請求項4に係る発明は、前記補正係数Kは、下記式(5)によって算出されることを特徴とする請求項3に記載の画像処理方法である。
(5) K=(Cr/Cb)/(Cr/Cb)Y=Y0
但し、(Cr/Cb)Y=Y0は、肌色の被写体に対する露光量を変えることで得られる適正露光時の色差比である。
The invention according to claim 4 is the image processing method according to claim 3, wherein the correction coefficient K is calculated by the following equation (5).
(5) K = (Cr / Cb) / (Cr / Cb) Y = Y0
However, (Cr / Cb) Y = Y0 is the color difference ratio at the time of proper exposure obtained by changing the exposure amount for the skin-colored subject.

請求項5に係る発明は、前記情報記録工程は、前記色相補正情報と前記生画像データとを関連付けて情報記録媒体に記録することを特徴とする請求項1乃至4の何れか1項に記載の画像処理方法である。   According to a fifth aspect of the invention, in the information recording step, the hue correction information and the raw image data are associated and recorded on an information recording medium. This is an image processing method.

請求項6に係る発明は、一画像における補正領域を特定する補正領域特定工程と、
前記補正領域の位置を表す位置情報を生成する位置情報生成工程とを含み、
前記色空間データ変換工程、前記補正情報生成工程及び前記色相補正工程は、前記補正領域の生画像データを対象として実行するものであり、
前記情報記録工程は、前記色相補正情報と前記位置情報とを関連付けて情報記録媒体に記録することを特徴とする請求項1乃至5の何れか1項に記載の画像処理方法である。
The invention according to claim 6 is a correction area specifying step of specifying a correction area in one image;
Including a position information generation step of generating position information indicating the position of the correction region,
The color space data conversion step, the correction information generation step, and the hue correction step are performed on the raw image data in the correction region,
6. The image processing method according to claim 1, wherein the information recording step records the hue correction information and the position information in an information recording medium in association with each other.

請求項7に係る発明は、被写体を撮像することにより生成された生画像データを入力する生画像データ入力手段と、
前記生画像データをY−Cr−Cb空間上の輝度データY及び色差データCr並びに色差データCbに変換する色空間データ変換手段と、
前記輝度データY及び色差データCr並びに色差データCbに基づいて、色相補正情報を生成する補正情報生成手段と、
前記色相補正情報及び前記生画像データに基づいて補正画像データを生成する色相補正手段と、
前記色相補正情報及び前記生画像データを情報記録媒体に記録する情報記録手段とを有することを特徴とする画像処理装置である。
The invention according to claim 7 is a raw image data input means for inputting raw image data generated by imaging a subject;
Color space data conversion means for converting the raw image data into luminance data Y and color difference data Cr and color difference data Cb in the Y-Cr-Cb space;
Correction information generating means for generating hue correction information based on the luminance data Y, the color difference data Cr, and the color difference data Cb;
Hue correction means for generating corrected image data based on the hue correction information and the raw image data;
An image processing apparatus comprising: information recording means for recording the hue correction information and the raw image data on an information recording medium.

請求項8に係る発明は、前記情報記録手段は、前記補正画像データを情報記録媒体に記録することを特徴とする請求項7に記載の画像処理装置である。   The invention according to claim 8 is the image processing apparatus according to claim 7, wherein the information recording means records the corrected image data on an information recording medium.

請求項9に係る発明は、前記色相補正手段は、下記式(1)乃至式(4)の何れか1組の式を用いてマトリクス演算を行うことで前記色差データCr及び色差データCbをそれぞれ色差データCr’及び色差データCb’に補正するものであり、
前記色相補正情報は、下記式(1)乃至式(4)の何れか1組の式に用いられる補正係数Kを含むことを特徴とする請求項7又は8に記載の画像処理装置である。
(1) Cr’=Cr×A/K+Cb×B、
Cb’=Cr×C+Cb×D
(2) Cr’=(Cr×A+Cb×B)/K、
Cb’=Cr×C+Cb×D
(3) Cr’=Cr×A+Cb×B、
Cb’=Cr×C+Cb×D×K
(4) Cr’=Cr×A+Cb×B、
Cb’=(Cr×C+Cb×D)×K
但し、A、B、C及びDはマトリクス係数であり、Kは前記輝度データYの関数であり、かつCr’/Cb’で表される色差比が前記輝度データYの値によらず一定になるように決められる、0よりも大きい補正係数である。
In the invention according to claim 9, the hue correction means performs the matrix operation using any one of the following formulas (1) to (4), thereby obtaining the color difference data Cr and the color difference data Cb, respectively. The color difference data Cr ′ and the color difference data Cb ′ are corrected.
The image processing apparatus according to claim 7, wherein the hue correction information includes a correction coefficient K used in any one of the following formulas (1) to (4).
(1) Cr ′ = Cr × A / K + Cb × B,
Cb ′ = Cr × C + Cb × D
(2) Cr ′ = (Cr × A + Cb × B) / K,
Cb ′ = Cr × C + Cb × D
(3) Cr ′ = Cr × A + Cb × B,
Cb ′ = Cr × C + Cb × D × K
(4) Cr ′ = Cr × A + Cb × B,
Cb ′ = (Cr × C + Cb × D) × K
However, A, B, C and D are matrix coefficients, K is a function of the luminance data Y, and the color difference ratio represented by Cr ′ / Cb ′ is constant regardless of the value of the luminance data Y. The correction coefficient is determined to be greater than 0.

請求項10に係る発明は、前記補正係数Kは、下記式(5)によって算出されることを特徴とする請求項9に記載の画像処理装置である。
(5) K=(Cr/Cb)/(Cr/Cb)Y=Y0
但し、(Cr/Cb)Y=Y0は、肌色の被写体に対する露光量を変えることで得られる適正露光時の色差比である。
The invention according to claim 10 is the image processing apparatus according to claim 9, wherein the correction coefficient K is calculated by the following equation (5).
(5) K = (Cr / Cb) / (Cr / Cb) Y = Y0
However, (Cr / Cb) Y = Y0 is the color difference ratio at the time of proper exposure obtained by changing the exposure amount for the skin-colored subject.

請求項11に係る発明は、前記情報記録手段は、前記色相補正情報と前記生画像データとを関連付けて情報記録媒体に記録することを特徴とする請求項7乃至10の何れか1項に記載の画像処理装置である。   The invention according to claim 11 is characterized in that the information recording means records the hue correction information and the raw image data in an information recording medium in association with each other. This is an image processing apparatus.

請求項12に係る発明は、一画像における補正領域を特定する補正領域特定手段と、
前記補正領域の位置を表す位置情報を生成する位置情報生成手段とを有し、
前記色空間データ変換手段及び前記補正情報生成手段は、前記補正領域の生画像データを対象として処理を実行するものであり、
前記情報記録手段は、前記色相補正情報と前記位置情報とを関連付けて情報記録媒体に記録することを特徴とする請求項7乃至11の何れか1項に記載の画像処理装置である。
The invention according to claim 12 is a correction area specifying means for specifying a correction area in one image;
Position information generating means for generating position information indicating the position of the correction region;
The color space data conversion means and the correction information generation means execute processing on the raw image data of the correction area,
12. The image processing apparatus according to claim 7, wherein the information recording unit records the hue correction information and the position information in an information recording medium in association with each other.

請求項13に係る発明は、請求項1乃至6の何れか1項に記載の画像処理方法をコンピュータに実行させることを特徴とする画像処理プログラムである。   A thirteenth aspect of the present invention is an image processing program that causes a computer to execute the image processing method according to any one of the first to sixth aspects.

請求項14に係る発明は、請求項7乃至12の何れか1項に記載の各手段としてコンピュータを機能させることを特徴とする画像処理プログラムである。   An invention according to a fourteenth aspect is an image processing program that causes a computer to function as each means according to any one of the seventh to twelfth aspects.

請求項15に係る発明は、請求項7乃至12の何れか1項に記載の画像処理装置を備えたことを特徴とする撮像装置である。   According to a fifteenth aspect of the present invention, there is provided an imaging apparatus comprising the image processing apparatus according to any one of the seventh to twelfth aspects.

請求項1又は7に記載の発明によれば、再現補助データの中でも色相変動を修正する効果の高い色相補正情報と生画像データとを情報記録媒体に記録するので、情報記録媒体に記憶するファイル容量を過度に増大させることなく、また撮像したデジタルカメラに依存することなく、色相回り補正がなされた鑑賞画像参照データを生成することが可能であり、また撮像したデジタルカメラで行われた色相回り補正を再現した鑑賞画像参照データを容易に生成することが可能となる。   According to the first or seventh aspect of the present invention, since the hue correction information and the raw image data, which are highly effective in correcting the hue variation, are recorded in the information recording medium among the reproduction auxiliary data, the file stored in the information recording medium It is possible to generate appreciation image reference data that has been corrected for hue rotation without excessively increasing the capacity and without depending on the captured digital camera, and for the hue rotation performed by the captured digital camera. It is possible to easily generate appreciation image reference data that reproduces the correction.

請求項2又は8に記載の発明によれば、色相補正情報及び生画像データに基づいて生成された補正画像データを情報記録媒体に記録するので、表示デバイスや出力媒体上において、色相回り補正がなされた良好な画像を容易に鑑賞することが可能となる。   According to the second or eighth aspect of the invention, since the corrected image data generated based on the hue correction information and the raw image data is recorded on the information recording medium, the hue around correction is performed on the display device or the output medium. It is possible to easily appreciate a good image made.

請求項3、4、9又は10に記載の発明によれば、色相補正情報には、色相回り補正を行うデジタルカメラや画像処理装置で大きく異なる補正係数Kを含んでいるので、情報記録媒体に記録するファイル容量を過度に増大させることなく、また撮像したデジタルカメラに依存することなく、色相回り補正がなされた鑑賞画像参照データを容易に生成することが可能となる。   According to the third, fourth, ninth, or tenth aspect of the present invention, the hue correction information includes a correction coefficient K that varies greatly between the digital camera and the image processing apparatus that perform the hue rotation correction. It is possible to easily generate appreciation image reference data that has been corrected for hue rotation without excessively increasing the file capacity to be recorded and without depending on the captured digital camera.

請求項5又は11に記載の発明によれば、色相補正情報と生画像データとを関連付けて情報記録媒体に記録するので、色相回り補正を再現した鑑賞画像参照データを容易に生成することが可能となる。   According to the invention described in claim 5 or 11, since the hue correction information and the raw image data are associated and recorded on the information recording medium, it is possible to easily generate the appreciation image reference data reproducing the hue correction. It becomes.

請求項6又は12に記載の発明によれば、一画像において特定された補正領域の生画像データを対象として色相回り補正を実行し、該補正領域の位置を表す位置情報と色相補正情報とを関連付けて情報記録媒体に記録するので、情報記録媒体に記憶するファイル容量を過度に増大させることなく、色相回り補正を再現した鑑賞画像参照データを容易に生成することが可能となる。   According to the invention described in claim 6 or 12, hue correction is performed on the raw image data of the correction area specified in one image, and position information indicating the position of the correction area and hue correction information are obtained. Since the information is recorded in association with the information recording medium, it is possible to easily generate appreciation image reference data in which hue correction is reproduced without excessively increasing the capacity of the file stored in the information recording medium.

以下、本発明に係る各種データ及び色空間の詳細について、順次説明する。   Hereinafter, details of various data and color space according to the present invention will be sequentially described.

[生画像データ]
生画像データとは、該生画像データの輝度データ及び色差データに基づく色相補正を行う前の状態の画像データのことをいい、例えば、撮像装置特性に依存したシーン参照生データがこれに相当する。
[Raw image data]
The raw image data refers to image data in a state before performing hue correction based on the luminance data and color difference data of the raw image data, for example, scene reference raw data depending on imaging device characteristics corresponds to this. .

[シーン参照生データ]
「撮像装置特性に依存したシーン参照生データ」とは、被写体に忠実な情報を記録した撮像装置直接の生出力信号であり、例えばデジタルカメラの具備するA/D変換器によりデジタル化されたデータそのものや、該データに固定パターンノイズ・暗電流ノイズ等のノイズ補正を行ったデータを意味し、一般的にRAWデータと呼ばれるものやアドビシステム社が提唱している「Digital Negative(DNG)」準拠の画像フォーマットを有する画像データが代表的である。
[Scene reference raw data]
“Scene-referenced raw data depending on imaging device characteristics” is a raw output signal directly recorded on an imaging device in which information faithful to a subject is recorded. For example, data digitized by an A / D converter included in a digital camera This means data that has been corrected for noise such as fixed pattern noise and dark current noise, and is generally referred to as RAW data or “Digital Negative (DNG)” advocated by Adobe Systems. The image data having the image format is representative.

RAWデータは、例えば、特開平11−261933号公報に記載された、撮像した画像信号形態に相当するものであり、このような画像データは、専用のアプリケーションソフト(「現像ソフト」と称される)を用いて、表示・印刷用の鑑賞画像参照データに変換する(「電子現像」、又は単に「現像」と称される)ことができる。RAWデータは撮影時の全情報を保存しているため、補正画像データの作り直しが可能であり、CMYK等の他の表色系ファイルを直接作れば、ディスプレイモニタ(sRGB)との色域の相違に起因して不用意に色が変更されることもない。   The RAW data corresponds to a captured image signal form described in, for example, Japanese Patent Laid-Open No. 11-261933, and such image data is referred to as dedicated application software ("development software"). ) Can be converted into viewing image reference data for display / printing (referred to as “electronic development” or simply “development”). Since RAW data stores all information at the time of shooting, it is possible to recreate corrected image data. If another color system file such as CMYK is created directly, the color gamut difference from the display monitor (sRGB) Due to this, the color is not inadvertently changed.

シーン参照生データの情報量(例えば階調数)は前記A/D変換器の性能に準じ、鑑賞画像参照データで必要とされる情報量(例えば階調数)と同等以上であることが好ましい。例えば鑑賞画像参照データの階調数が1チャンネルあたり8bitである場合、シーン参照生データの階調数は12bit以上が好ましく、14bit以上がより好ましく、また16bit以上がさらに好ましい。   The information amount (for example, the number of gradations) of the scene reference raw data is preferably equal to or greater than the information amount (for example, the number of gradations) required for the viewing image reference data in accordance with the performance of the A / D converter. . For example, when the number of gradations of the viewing image reference data is 8 bits per channel, the number of gradations of the scene reference raw data is preferably 12 bits or more, more preferably 14 bits or more, and even more preferably 16 bits or more.

[補正画像データ]
補正画像データは、生画像データの輝度データ及び色差データに基づく色相補正が行われた画像データのことをいい、例えば標準化されたシーン参照画像データや鑑賞画像参照データがこれに相当する。
[Corrected image data]
The corrected image data refers to image data that has been subjected to hue correction based on the luminance data and color difference data of the raw image data. For example, standardized scene reference image data and appreciation image reference data correspond to this.

[シーン参照画像データ]
「標準化されたシーン参照画像データ」とは、少なくとも撮像素子自体の分光感度に基づく各色チャンネルの信号強度を標準色空間にマッピング済みの画像データである。またシーン参照画像データでは、階調変換・鮮鋭性強調・彩度強調のような画像鑑賞時の効果を向上するためにデータ内容を改変する画像処理が省略されている。標準化されたシーン参照画像データの代表例としては、「RIMM RGB」(Reference Input Medium Metric RGB)や「ERIMM RGB」(Extended Reference Input Medium Metric RGB)の標準色空間にマッピングされた画像データがある。なお、RIMM RGBやERIMM RGBの詳細についてはJournalof Imaging Science and Technology 45巻 418〜426頁(2001年)に記載されている。
[Scene reference image data]
“Standardized scene reference image data” is image data in which the signal intensity of each color channel based on at least the spectral sensitivity of the image sensor itself is mapped to the standard color space. In the scene reference image data, image processing for modifying the data contents is omitted in order to improve the effect at the time of image viewing such as gradation conversion, sharpness enhancement, and saturation enhancement. Typical examples of the standardized scene reference image data include image data mapped to a standard color space of “RIMM RGB” (Reference Input Medium Metric RGB) or “ERIMM RGB” (Extended Reference Input Medium Metric RGB). Details of RIMM RGB and ERIMM RGB are described in Journal of Imaging Science and Technology, Vol. 45, pages 418-426 (2001).

また、シーン参照画像データは、撮像装置の光電変換特性(ISO1452が定義するopto−electronic conversion function, 例えばコロナ社「ファインイメージングとディジタル写真」(社)日本写真学会出版委員会編449頁参照)の補正を行ったものであることが好ましい。標準化されたシーン参照画像データの情報量(例えば階調数)は前記A/D変換器の性能に準じ、鑑賞画像参照データで必要とされる情報量(例えば階調数)と同等以上であることが好ましい。例えば鑑賞画像参照データの階調数が1チャンネルあたり8bitである場合、シーン参照画像データの階調数は12bit以上が好ましく、14bit以上がより好ましく、また16bit以上がさらに好ましい。   In addition, the scene reference image data includes the photoelectric conversion characteristics of the imaging device (opt-electronic conversion function defined by ISO1452; for example, “Fine Imaging and Digital Photography” of Corona Co., Ltd., page 449 of the Japan Photographic Society Publishing Committee). It is preferable that correction has been performed. The information amount (for example, the number of gradations) of the standardized scene reference image data is equal to or more than the information amount (for example, the number of gradations) required for the viewing image reference data in accordance with the performance of the A / D converter. It is preferable. For example, when the number of gradations of the viewing image reference data is 8 bits per channel, the number of gradations of the scene reference image data is preferably 12 bits or more, more preferably 14 bits or more, and even more preferably 16 bits or more.

[鑑賞画像参照データ]
鑑賞画像参照データとは、CRT、液晶ディスプレイ、プラズマディスプレイ等の表示デバイスに用いたり、出力デバイスが、銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙等の出力媒体上のハードコピー画像生成に用いる画像データを意味する。鑑賞画像参照データは、CRT、液晶、プラズマディスプレイ等の表示デバイス、及び銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙等の出力媒体上において、最適な画像が得られるよう、生画像データの輝度データ及び色差データに基づく色相補正を含む最適化処理が施された画像データである。
[Appreciation image reference data]
The appreciation image reference data is an image used for a display device such as a CRT, a liquid crystal display, or a plasma display, or an image used by an output device for generating a hard copy image on an output medium such as a silver salt photographic paper, an inkjet paper, or a thermal printer paper. Means data. Appreciation image reference data is luminance data of raw image data so that an optimal image can be obtained on a display device such as a CRT, a liquid crystal display, a plasma display, and an output medium such as a silver halide photographic paper, an inkjet paper, and a thermal printer paper. And image data subjected to optimization processing including hue correction based on the color difference data.

[Y−Cr−Cb空間]
「Y−Cr−Cb空間」とは、ITU−R(国際電気通信連合無線通信部門)勧告BT.601で規定されている、輝度情報Y、青色(Blue)成分の色差Cb及び赤色(Red)成分の色差Crで表される標準化された色空間のことである。
[Y-Cr-Cb space]
"Y-Cr-Cb space" is ITU-R (International Telecommunication Union Radiocommunication Division) recommendation BT. This is a standardized color space defined by the luminance information Y, the color difference Cb of the blue (Blue) component, and the color difference Cr of the red (Red) component, defined in 601.

[色相補正情報]
「色相補正情報」とは、生画像データの輝度データ及び色差データに基づいて作成される情報であって、被写体のオーバー露光時又はアンダー露光時の色相変動を修正する補正、すなわち色相回り補正を行うための情報である。したがって、色相補正情報のみを活用して、生画像データに対する色相回り補正処理が実施可能である。
[Hue correction information]
“Hue correction information” is information created based on the luminance data and color difference data of raw image data, and correction for correcting hue fluctuation at the time of overexposure or underexposure of a subject, that is, correction around the hue. Information to do. Therefore, it is possible to perform the hue correction process on the raw image data using only the hue correction information.

色相補正情報は例えば、生画像データの色差データCr及び色差データCbをそれぞれ色差データCr’及び色差データCb’に変換するのに必要な情報、すなわち本発明の画像処理装置で固有に行われる色差データの変換処理で使用される演算式のマトリクス係数が記述される。   The hue correction information includes, for example, information necessary for converting the color difference data Cr and the color difference data Cb of the raw image data into the color difference data Cr ′ and the color difference data Cb ′, that is, the color difference inherently performed in the image processing apparatus of the present invention. A matrix coefficient of an arithmetic expression used in the data conversion process is described.

例えば、画像処理装置が適用された撮像装置の機種名だけが記述されている場合は、本発明に係る色相回り補正を再現する画像処理装置や画像記録装置が、撮像装置の機種名と前記マトリクス係数の対応表を保有していない可能性があるので、色相補正情報とは言えない。また例えば、本発明に係る色相回り補正を実施するのに十分な情報が直接記述されていなくても、該情報のインターネット上での所在個所を示すURLが記述されている場合は、本発明に係る色相回り補正を行うのに十分なデータとみなすことができる。これらの色相補正情報は、画像ファイル内のヘッダ部に書き込まれるタグ情報や、該タグ情報で関連付けがされたメタファイルとして情報記録媒体に記録されるのが好ましい。   For example, when only the model name of the imaging device to which the image processing device is applied is described, the image processing device or the image recording device that reproduces the hue correction according to the present invention includes the model name of the imaging device and the matrix. Since there is a possibility of not having a coefficient correspondence table, it cannot be said to be hue correction information. In addition, for example, even if the information sufficient for performing the hue correction according to the present invention is not directly described, a URL indicating the location of the information on the Internet is described. It can be regarded as data sufficient to perform such hue correction. The hue correction information is preferably recorded on the information recording medium as tag information written in a header portion in the image file or a metafile associated with the tag information.

以下、図面に基づき本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

本発明に係る画像処理装置が適用された撮像装置の機能的構成を図1を用いて説明する。図1は、本発明に係る撮像装置1の機能的構成を示すブロック図である。   A functional configuration of an imaging apparatus to which an image processing apparatus according to the present invention is applied will be described with reference to FIG. FIG. 1 is a block diagram showing a functional configuration of an imaging apparatus 1 according to the present invention.

撮像装置1は、レンズ2、絞り3、撮像素子4、アナログ処理回路5、一時記憶メモリ6、画像処理部7、ヘッダ情報処理部8、記憶デバイス9、撮像素子駆動回路10、制御部11、A/D変換器13、操作部14、表示部15、ストロボ駆動回路16、ストロボ17、焦点距離調整回路18、自動焦点駆動回路19、モータ20等を備えて構成されている。   The imaging device 1 includes a lens 2, an aperture 3, an imaging device 4, an analog processing circuit 5, a temporary storage memory 6, an image processing unit 7, a header information processing unit 8, a storage device 9, an imaging device drive circuit 10, a control unit 11, The A / D converter 13, the operation unit 14, the display unit 15, the strobe driving circuit 16, the strobe 17, the focal length adjustment circuit 18, the automatic focus driving circuit 19, the motor 20 and the like are configured.

撮像装置1の光学系は、レンズ2、絞り3、撮像素子4を備えて構成されている。   The optical system of the imaging apparatus 1 includes a lens 2, a diaphragm 3, and an imaging element 4.

レンズ2は、フォーカスの調節を行い、被写体の光画像を結像する。絞り3は、レンズ2を透過した光束の光量を調節する。撮像素子4は、レンズ2により受光面上に結像された被写体光を、撮像素子4内の各センサ毎に光の入射量に応じた量の電気的な信号(撮像信号)へ光電変換する。そして、撮像素子4は、撮像素子駆動回路10から出力されるタイミングパルスに制御されることにより、この撮像信号をアナログ処理回路5へ順次出力する。   The lens 2 adjusts the focus and forms an optical image of the subject. The diaphragm 3 adjusts the amount of light beam that has passed through the lens 2. The image sensor 4 photoelectrically converts subject light imaged on the light receiving surface by the lens 2 into an electrical signal (imaging signal) of an amount corresponding to the amount of incident light for each sensor in the image sensor 4. . The image sensor 4 is sequentially controlled by the timing pulse output from the image sensor drive circuit 10 to sequentially output the image signal to the analog processing circuit 5.

なお、撮像素子4は、2次元のCCD型イメージセンサ、C−MOS型イメージセンサ、CID型イメージセンサ等のいずれのデバイスでも良いが、以下の本実施の形態では原色系のフィルタが用いられたインターライン型のCCD型イメージセンサを例にとって説明する。   The image pickup device 4 may be any device such as a two-dimensional CCD image sensor, a C-MOS image sensor, or a CID image sensor, but a primary color filter is used in the following embodiment. An interline type CCD image sensor will be described as an example.

アナログ処理回路5は、撮像素子4から入力された撮像信号に対して、R、G、B信号の増幅やノイズの低減処理等を行う。このアナログ処理回路5における処理は、操作部14からの操作信号に応じ制御部11を介して、ON/OFFを切り替えられるようになっている。   The analog processing circuit 5 performs R, G, B signal amplification, noise reduction processing, and the like on the image signal input from the image sensor 4. The processing in the analog processing circuit 5 can be switched ON / OFF via the control unit 11 in accordance with an operation signal from the operation unit 14.

A/D変換器13は、アナログ処理回路5から入力された撮像信号を画像データに変換して出力する。   The A / D converter 13 converts the imaging signal input from the analog processing circuit 5 into image data and outputs the image data.

一時記憶メモリ6は、バッファメモリ等であり、A/D変換器13から出力された画像データを一時格納する。   The temporary storage memory 6 is a buffer memory or the like, and temporarily stores the image data output from the A / D converter 13.

画像処理部7は、表示部15での表示に用いる画像データの階調補正、分光感度のクロストーク補正、暗電流ノイズ抑制、鮮鋭化、ホワイトバランス調整、彩度調整等の画質向上処理の他、画像サイズの変更、トリミング、アスペクト変換、本発明に係る色相回り補正等の処理を行う。この画像処理部7における処理は、操作部14からの操作信号に応じ制御部11を介して画像処理内容を切り替えられるようになっている。   The image processing unit 7 performs image quality improvement processing such as tone correction of image data used for display on the display unit 15, crosstalk correction of spectral sensitivity, dark current noise suppression, sharpening, white balance adjustment, and saturation adjustment. Processing such as image size change, trimming, aspect conversion, and hue correction according to the present invention is performed. In the processing in the image processing unit 7, the image processing content can be switched via the control unit 11 in accordance with an operation signal from the operation unit 14.

ヘッダ情報処理部8は、一時記憶メモリ6に格納された画像データに対して、画像処理部7の図示しない色相補正情報手段により生成された色相補正情報又は色相補正情報との関連付け情報等をヘッダ情報として書き込み処理する。   The header information processing unit 8 headers the hue correction information generated by the hue correction information means (not shown) of the image processing unit 7 or the association information with the hue correction information with respect to the image data stored in the temporary storage memory 6. Write processing as information.

記憶デバイス9は、不揮発性の半導体メモリ等により構成されており、撮影された画像データを記録するメモリカード等の情報記録媒体と、撮像装置1の制御プログラムが記憶された読み出し可能なメモリとにより構成されている。   The storage device 9 is configured by a non-volatile semiconductor memory or the like, and includes an information recording medium such as a memory card that records captured image data, and a readable memory that stores a control program for the imaging apparatus 1. It is configured.

情報記録媒体は、例えばコンパクトフラッシュ(登録商標)、メモリースティック、スマートメディア、マルチメディアカード、ハードディスク、フロッピー(登録商標)ディスク、磁気情報記録媒体(MO)、或いはCD−Rなど何れであってもよい。また、情報記録媒体に書き込むユニットは、撮影装置と一体であっても、コードを介して有線状態で接続された書き込みユニット、通信やインターネットを介して無線状態で接続された独立、或いは遠隔地に設置されたユニットなどの何れの形態であってもよい。さらに、撮像装置と情報記録媒体への書き込みユニットが接続状態にあるとき、画像処理装置や画像記録装置が撮像装置から直接「撮像装置特性補正処理を施す際の再現補助データ」及び「必要なデータ」を読み出すことのできる機能を併せ持つ態様であってもよい。「メディアに記録する」ときのファイル形式は、撮像装置固有の形式ではなく、TIFF、JPEGなどの規格化された汎用のファイル形式で記録されるのが好ましい。   The information recording medium may be, for example, a compact flash (registered trademark), memory stick, smart media, multimedia card, hard disk, floppy (registered trademark) disk, magnetic information recording medium (MO), or CD-R. . In addition, the unit for writing to the information recording medium may be a writing unit connected in a wired state via a cord, an independent or remote place connected in a wireless state via communication or the Internet, even if it is integrated with the photographing apparatus. Any form such as an installed unit may be used. Further, when the imaging device and the information recording medium writing unit are in a connected state, the image processing device or the image recording device directly receives “reproduction auxiliary data when performing imaging device characteristic correction processing” and “required data” from the imaging device. It may be an aspect having a function of reading out “ The file format when “recording on the media” is preferably recorded in a standardized general-purpose file format such as TIFF or JPEG, not a format unique to the imaging apparatus.

撮像素子駆動回路10は、制御部11から出力される制御信号をもとにタイミングパルスを出力し、撮像素子4の駆動制御を行う。   The image sensor drive circuit 10 outputs a timing pulse based on the control signal output from the control unit 11 and controls the drive of the image sensor 4.

制御部11は、CPU(Central Processing Unit)等により構成され、記憶デバイス9に記憶されている撮像装置1の制御プログラムを読み出して、読み出したプログラムにしたがってって撮像装置1全体の制御を行う。具体的には、制御部11は、操作部14からの操作信号に応じて、レンズ2の焦点距離とフォーカス(ピント)を調節するモータ20の制御を行う自動焦点駆動回路19、焦点距離調整回路18、撮像素子駆動回路10、アナログ処理回路5、一時記憶メモリ6、画像処理部7、操作部14、表示部15及びストロボ駆動回路16の制御を行い、撮影を行う。   The control unit 11 is configured by a CPU (Central Processing Unit) or the like, reads a control program of the image pickup apparatus 1 stored in the storage device 9, and controls the entire image pickup apparatus 1 according to the read program. Specifically, the control unit 11 controls the motor 20 for adjusting the focal length and focus (focus) of the lens 2 in accordance with an operation signal from the operation unit 14, and a focal length adjustment circuit. 18, the image sensor driving circuit 10, the analog processing circuit 5, the temporary storage memory 6, the image processing unit 7, the operation unit 14, the display unit 15 and the strobe driving circuit 16 are controlled to perform photographing.

また、制御部11は、例えば画像を複数のブロックに分割し、各ブロックの代表輝度値に基づいて絞り3の開口径や撮像素子4による電荷蓄積時間を調整する、いわゆる自動露出制御を行う。   Further, the control unit 11 performs so-called automatic exposure control in which, for example, an image is divided into a plurality of blocks, and the aperture diameter of the diaphragm 3 and the charge accumulation time by the image sensor 4 are adjusted based on the representative luminance value of each block.

操作部14には、図示しないレリーズボタン、電源のON/OFFボタン、ズームボタン等の各種機能ボタン、カーソルキー等が設けられ、各ボタンやキーに対応する操作信号を入力信号として制御部11に出力する。本実施の形態において、操作部14は、シーン参照生データの出力を指定するための機能ボタンを備えている。   The operation unit 14 includes a release button (not shown), various function buttons such as a power ON / OFF button, a zoom button, and cursor keys. The operation signal corresponding to each button or key is input to the control unit 11 as an input signal. Output. In the present embodiment, the operation unit 14 includes a function button for designating output of scene reference raw data.

表示部15は、制御部11からの制御信号により、画像データに基づく画像を表示するとともに、撮像装置1の使用者が撮影に関する設定や条件を確認するための情報を表示する。   The display unit 15 displays an image based on the image data in accordance with a control signal from the control unit 11 and also displays information for the user of the imaging device 1 to confirm settings and conditions related to shooting.

ストロボ駆動回路16は、制御部11からの制御信号により、被写体輝度が低いときにストロボ17を駆動制御して発光させる。
ストロボ17は、電池電圧を所定の高電圧に昇圧させ、電荷としてコンデンサに蓄える。そして、ストロボ駆動回路16により駆動されることにより、コンデンサに蓄えられた電荷によりキセノン管を発光して、被写体に対して補助光を照射する。
The strobe drive circuit 16 drives and controls the strobe 17 to emit light when the subject brightness is low according to a control signal from the control unit 11.
The strobe 17 boosts the battery voltage to a predetermined high voltage and stores it as a charge in a capacitor. When driven by the strobe driving circuit 16, the xenon tube is caused to emit light by the electric charge stored in the capacitor, and the subject is irradiated with auxiliary light.

焦点距離調整回路18は、制御部11からの制御信号により、レンズ2を移動させて焦点距離を調整するためのモータ20の制御を行う。
自動焦点駆動回路19は、制御部11からの制御信号により、レンズ2を移動させてフォーカス(ピント)を調整するためのモータ20の制御を行う。
The focal length adjustment circuit 18 controls the motor 20 for adjusting the focal length by moving the lens 2 in accordance with a control signal from the control unit 11.
The automatic focus drive circuit 19 controls the motor 20 for adjusting the focus (focus) by moving the lens 2 in accordance with a control signal from the control unit 11.

なお、図1に示した撮像装置1において、一時記憶メモリ6、画像処理部7、制御部11及び記憶デバイス9は協働して本発明に係る画像処理装置として機能しているものである。すなわち、一時記憶メモリ6は一時記憶手段として機能し、制御部11は制御手段として機能し、記憶デバイス9は情報記録手段として機能するものである。   In the imaging apparatus 1 shown in FIG. 1, the temporary storage memory 6, the image processing unit 7, the control unit 11, and the storage device 9 cooperate to function as the image processing apparatus according to the present invention. That is, the temporary storage memory 6 functions as temporary storage means, the control unit 11 functions as control means, and the storage device 9 functions as information recording means.

図1に示した撮像装置1の画像処理部7の詳細について、図2を用いて説明する。図2は、図1の撮像装置1の画像処理部7の内部構成を示すブロック図である。   Details of the image processing unit 7 of the imaging apparatus 1 shown in FIG. 1 will be described with reference to FIG. FIG. 2 is a block diagram illustrating an internal configuration of the image processing unit 7 of the imaging device 1 of FIG.

画像処理部7は、入力部71及び出力部72を有し、色空間変換手段701、色相補正情報生成手段702、色相補正手段703、鑑賞画像参照データ生成手段704、補正領域特定手段705及び位置情報生成手段706としての機能も有する。   The image processing unit 7 includes an input unit 71 and an output unit 72, and includes a color space conversion unit 701, a hue correction information generation unit 702, a hue correction unit 703, an appreciation image reference data generation unit 704, a correction region specification unit 705, and a position. It also has a function as information generation means 706.

入力部71へは、一時記憶メモリ6から出力された画像データすなわち生画像データや、制御部11から出力された各種制御データが入力される。   Image data output from the temporary storage memory 6, that is, raw image data, and various control data output from the control unit 11 are input to the input unit 71.

出力部72は、画像処理部7の各手段で処理された画像データや各種制御データを、画像処理部7と接続している各部へと出力する。   The output unit 72 outputs the image data and various control data processed by each unit of the image processing unit 7 to each unit connected to the image processing unit 7.

色空間変換手段701は、色相回り補正情報を生成するために、入力部71に入力された生画像データをY−Cr−Cb空間上の輝度データY及び色差データCr並びに色差データCbに変換する。生画像データがRGBデータである場合、Y、Cr、Cbへの変換は、例えばITU−R(国際電気通信連合無線通信部門)勧告BT.601で規定された下記式により変換される。
Y = 0.299R+0.587G+0.114B
Cb=−0.172R−0.339G+0.511B
Cr= 0.511R−0.428G−0.083B
色相補正情報生成手段702は、色空間変換手段701で変換された輝度データY及び色差データCr並びに色差データCbに基づいて、色相回り補正を行うための情報である色相補正情報を生成する。
The color space conversion unit 701 converts the raw image data input to the input unit 71 into luminance data Y, color difference data Cr, and color difference data Cb in the Y-Cr-Cb space to generate hue correction information. . When the raw image data is RGB data, conversion to Y, Cr, Cb is performed according to, for example, ITU-R (International Telecommunication Union Radiocommunication Division) recommendation BT. Conversion is performed according to the following formula defined in 601.
Y = 0.299R + 0.587G + 0.114B
Cb = −0.172R−0.339G + 0.511B
Cr = 0.511R-0.428G-0.083B
The hue correction information generation unit 702 generates hue correction information that is information for performing a hue rotation correction based on the luminance data Y, the color difference data Cr, and the color difference data Cb converted by the color space conversion unit 701.

色相補正手段703は、色相補正情報生成手段702で生成された色相補正情報に基づいて、入力部71に入力された生画像データに対して色相変動を修正する補正処理すなわち色相回り補正処理を行い、出力部72又は鑑賞画像参照データ生成手段704へ補正画像データを出力する。   The hue correction unit 703 performs a correction process for correcting a hue variation on the raw image data input to the input unit 71 based on the hue correction information generated by the hue correction information generation unit 702, that is, a hue rotation correction process. The corrected image data is output to the output unit 72 or the appreciation image reference data generation means 704.

鑑賞画像参照データ生成手段704は、色相補正手段704で補正された画像データを、図1の操作部14から入力された記憶デバイス9、表示部15の種類に関する操作情報等に基づき、出力先において最適な画像を得るための最適化処理を施して鑑賞画像参照データとして出力部72へ出力する。最適化処理には、例えば、出力先の色域への圧縮、16bitから8bitへの階調圧縮、出力画素数の低減、出力デバイスや表示デバイスの出力特性(LUT)への対応処理等が含まれる。   The appreciation image reference data generation unit 704 outputs the image data corrected by the hue correction unit 704 at the output destination based on the operation information on the type of the storage device 9 and the display unit 15 input from the operation unit 14 in FIG. Optimization processing for obtaining an optimal image is performed, and the image is output to the output unit 72 as viewing image reference data. Optimization processing includes, for example, compression to the output destination color gamut, gradation compression from 16 bits to 8 bits, reduction of the number of output pixels, and processing to handle output characteristics (LUT) of output devices and display devices. It is.

補正領域特定手段704は、入力部71に入力された生画像データを解析して、当該生画像データのうち、色相回り補正処理を施すべき補正領域を特定する。補正領域の特定は一画像を所定数に区切った領域毎に行い、例えば当該領域の主たる画像が色相回りの発生しやすい肌色である場合は補正領域とする。また、補正領域特定手段704による自動領域選択に代えて、ユーザが表示部15に表示された画像を見ながら、操作部14を操作して補正領域を特定することもできる。この場合、操作部14が補正領域特定手段として機能するものである。   The correction area specifying unit 704 analyzes the raw image data input to the input unit 71, and specifies a correction area in the raw image data to be subjected to the hue around correction process. The correction area is specified for each area obtained by dividing one image into a predetermined number. For example, when the main image of the area is a skin color that tends to occur around the hue, the correction area is set. Further, instead of the automatic area selection by the correction area specifying unit 704, the user can specify the correction area by operating the operation unit 14 while viewing the image displayed on the display unit 15. In this case, the operation unit 14 functions as a correction area specifying unit.

位置情報生成手段705は、補正領域特定手段704で特定された領域の位置情報を生成する。位置情報は例えば、補正領域が円領域である場合には、円の中心座標とその直径で記述され、補正領域が矩形領域である場合には、矩形の中心座標と矩形領域の大きさで記述される。記述例を以下に示す。
円領域の場合:X座標値、Y座標値、直径
矩形領域の場合:X座標値、Y座標値、矩形領域の幅、矩形領域の高さ
次に、図3乃至図5を用いて本発明に係る画像処理装置が適用された撮像装置の動作の一例を説明する。
The position information generating unit 705 generates position information of the area specified by the correction area specifying unit 704. For example, when the correction area is a circular area, the position information is described by the center coordinates of the circle and its diameter. When the correction area is a rectangular area, the position information is described by the rectangular center coordinates and the size of the rectangular area. Is done. A description example is shown below.
In the case of a circular area: X coordinate value, Y coordinate value, in the case of a rectangular area: X coordinate value, Y coordinate value, width of rectangular area, height of rectangular area Next, the present invention will be described with reference to FIGS. An example of the operation of the imaging apparatus to which the image processing apparatus according to the invention is applied will be described.

図3は、図1及び図2に示した撮像装置1により実行される撮像処理の流れを示すフローチャートである。   FIG. 3 is a flowchart showing a flow of imaging processing executed by the imaging device 1 shown in FIGS. 1 and 2.

操作部14のレリーズボタンが押下されると、ステップS1では、制御部11は撮像装置1の各部を制御して被写体の撮像を行う。すなわち、撮像により撮像素子4から出力された撮像信号はA/D変換器13により画像データに変換され、生画像データが生成されて、一時記憶メモリ6に保持される。   When the release button of the operation unit 14 is pressed, in step S1, the control unit 11 controls each unit of the imaging device 1 to image the subject. That is, the image pickup signal output from the image pickup device 4 by image pickup is converted into image data by the A / D converter 13, and raw image data is generated and held in the temporary storage memory 6.

ステップS2では、画像処理部7により、生画像データに対する色相変動を修正する補正処理すなわち色相回り補正処理が行われる。ステップS2で色相回り補正処理が施された画像データは、シーン参照画像データとして取り扱われる。また、ステップS2において色相補正情報も併せて生成される。   In step S <b> 2, the image processing unit 7 performs a correction process for correcting a hue variation with respect to the raw image data, that is, a hue rotation correction process. The image data that has undergone the hue correction process in step S2 is handled as scene reference image data. In step S2, hue correction information is also generated.

ステップS3では、予め操作部14等により、出力先において最適な画像を得るための最適化処理を行うすなわち鑑賞画像参照データを作成する設定がされていたか否かが判断される。鑑賞画像参照データを作成する設定がされていた場合(ステップS3;YES)、ステップS4の処理が実行され、鑑賞画像参照データを作成しない場合(ステップS3;NO)、ステップS5の処理が実行される。   In step S3, it is determined in advance whether or not the operation unit 14 or the like has been set to perform optimization processing for obtaining an optimal image at the output destination, that is, to create appreciation image reference data. If it is set to create appreciation image reference data (step S3; YES), the process of step S4 is executed. If appreciation image reference data is not created (step S3; NO), the process of step S5 is executed. The

ステップS4では、鑑賞画像参照データ生成手段704により、ステップS2で色相回り補正がされた画像データに対して、出力先において最適な画像を得るための最適化処理がなされた鑑賞画像参照データが作成される。   In step S4, appreciation image reference data generating means 704 generates appreciation image reference data that has been subjected to optimization processing for obtaining an optimal image at the output destination for the image data that has been corrected for hue rotation in step S2. Is done.

ステップS5では、ステップS2で生成されたシーン参照画像データ、ステップS3で生成された鑑賞画像参照データ及びステップS1で生成された生画像データ等の画像データ並びにステップS2で生成された色相補正情報、後述する位置情報等の制御データが画像処理部7から出力され、記憶デバイス9により情報記録媒体90に記録され、処理が終了する。なお、画像データにはヘッダ情報処理部8によりヘッダ情報が付与される。また、情報記録媒体90への記録に代えて、図示しない通信媒体を介して他の情報処理装置の記録媒体へ記録するようにしてもよい。   In step S5, the scene reference image data generated in step S2, the appreciation image reference data generated in step S3, the image data such as the raw image data generated in step S1, and the hue correction information generated in step S2. Control data such as position information, which will be described later, is output from the image processing unit 7 and is recorded in the information recording medium 90 by the storage device 9, and the process ends. The header information is added to the image data by the header information processing unit 8. Further, instead of recording on the information recording medium 90, recording may be performed on a recording medium of another information processing apparatus via a communication medium (not shown).

図3のステップS5において、ヘッダ情報が付加され情報記録媒体90に記録される画像データは、例えば図4(a)に示すように、生画像データ910を含むファイル91として記録され、そのヘッダ領域911に、色相補正情報d1を含む撮像装置特性補正データd2が記録されている。また、他の例として図4(b)に示すように、ファイル92のヘッダ領域921には、生画像データ910と関連付けされたメタファイル93の識別情報d3が記述され、ヘッダ領域931に識別情報d3を有するメタファイル93に、色相補正情報d1を含む撮像装置特性補正データd2が記録される。   In step S5 of FIG. 3, the image data to which the header information is added and recorded on the information recording medium 90 is recorded as a file 91 including the raw image data 910, as shown in FIG. In 911, imaging device characteristic correction data d2 including hue correction information d1 is recorded. As another example, as shown in FIG. 4B, the identification information d3 of the metafile 93 associated with the raw image data 910 is described in the header area 921 of the file 92, and the identification information is displayed in the header area 931. Imaging device characteristic correction data d2 including hue correction information d1 is recorded in the metafile 93 having d3.

このように記録することで、情報記録媒体90を撮像装置1から取り出して、他の画像処理装置や画像記録装置等の外部装置に装着することにより、撮像装置で行われた処理に依存することなく、適正な色相回り補正処理がなされた出力を行うことが可能であり、また撮像装置で行われた色相回り補正処理を再現することも可能となる。   By recording in this way, the information recording medium 90 is taken out from the imaging device 1 and attached to an external device such as another image processing device or an image recording device, thereby depending on the processing performed by the imaging device. In addition, it is possible to perform output with appropriate hue correction processing performed, and to reproduce the hue correction processing performed by the imaging apparatus.

図3のステップS4で実行される色相回り補正処理の詳細について図5を用いて説明する。図5は、図3のステップS4で実行される色相回り補正処理の流れを示すフローチャートである。   Details of the hue correction processing executed in step S4 of FIG. 3 will be described with reference to FIG. FIG. 5 is a flowchart showing the hue correction process executed in step S4 of FIG.

ステップS11では、図3のステップS1で一時記憶メモリ6に保持された生画像データが、図2に示した画像処理部7の入力部71に入力される。   In step S11, the raw image data held in the temporary storage memory 6 in step S1 of FIG. 3 is input to the input unit 71 of the image processing unit 7 shown in FIG.

ステップS12では、生画像データに対して階調を補正するγ変換処理が施される。   In step S12, γ conversion processing for correcting gradation is performed on the raw image data.

ステップS13では、図2に示した色空間変換手段701により、入力部71に入力された生画像データが、内部処理用にY−Cr−Cb空間上の輝度データY及び色差データCr並びに色差データCbに変換される。なお、生画像データがRGBデータである場合、Y、Cr、Cbへの変換が行われるが、生画像データがYCrCbデータである場合には変換処理は行われずにステップS14の処理が実行される。   In step S13, the raw image data input to the input unit 71 by the color space conversion unit 701 shown in FIG. 2 is converted into luminance data Y, color difference data Cr, and color difference data in the Y-Cr-Cb space for internal processing. Converted to Cb. When the raw image data is RGB data, conversion to Y, Cr, and Cb is performed. However, when the raw image data is YCrCb data, the conversion process is not performed and the process of step S14 is performed. .

ステップS14では、予め操作部14等により、色相回り補正処理を行う領域すなわち補正領域を選択する設定がされていたか否かが判断される。補正領域を選択する設定がされていた場合(ステップS14;YES)、ステップS15の処理が実行され、補正領域を選択しない場合(ステップS14;NO)、ステップS17の処理が実行される。   In step S <b> 14, it is determined whether or not the setting for selecting the area around the hue correction process, that is, the correction area, has been made in advance by the operation unit 14 or the like. If the setting for selecting the correction area has been made (step S14; YES), the process of step S15 is executed. If the correction area is not selected (step S14; NO), the process of step S17 is executed.

ステップS15では、図2に示した補正領域特定手段705により、色相回り補正処理を行う領域が特定され、選択される。   In step S15, the correction area specifying unit 705 shown in FIG. 2 specifies and selects an area for performing the hue correction process.

ステップS16では、図2に示した位置情報生成手段706により、ステップS15で選択された補正領域の位置情報が生成される。   In step S16, the position information generating unit 706 shown in FIG. 2 generates position information of the correction area selected in step S15.

ステップS17では、色相回り補正のマトリクス演算で用いられる補正係数Kが算出される。補正係数Kは、ステップS13で変換された輝度データYの関数であり、かつステップS13で変換された色差データに基づき求められるCr/Cbで表される色差比が、輝度データYの値によらず一定になるように決められる0よりも大きい補正係数である。   In step S17, the correction coefficient K used in the matrix calculation for hue correction is calculated. The correction coefficient K is a function of the luminance data Y converted in step S13, and the color difference ratio represented by Cr / Cb determined based on the color difference data converted in step S13 depends on the value of the luminance data Y. The correction coefficient is greater than 0, which is determined to be constant.

補正係数Kは、具体的には下記式(5)により算出される。
(5) K=(Cr/Cb)/(Cr/Cb)Y=Y0
上記式(5)において、(Cr/Cb)Y=Y0は、撮像装置1で固有に定めることのできる既定値であり、例えば、肌色の被写体に対する露光量を変えることで得られる適正露光時の色差比である。すなわち、上記式(5)において、生画像データの色差データCr及び色差データCbが適正露光の範囲内にある限りは補正係数Kは1近辺であり、実質的に色相回り補正が行われない。一方、生画像データのうちある一つの色成分が飽和したとき、補正係数Kが1以外の値となり、色相回り補正が実効するようになるものである。なお、上記式(5)が導き出される過程は、特開2003−61109号公報に詳しく記載されている。
Specifically, the correction coefficient K is calculated by the following equation (5).
(5) K = (Cr / Cb) / (Cr / Cb) Y = Y0
In the above equation (5), (Cr / Cb) Y = Y0 is a predetermined value that can be uniquely determined by the imaging apparatus 1, for example, at the time of proper exposure obtained by changing the exposure amount for a skin-colored subject. Color difference ratio. That is, in the above equation (5), as long as the color difference data Cr and the color difference data Cb of the raw image data are within the appropriate exposure range, the correction coefficient K is near 1, and the hue rotation correction is not substantially performed. On the other hand, when one color component in the raw image data is saturated, the correction coefficient K becomes a value other than 1, and the hue circumference correction becomes effective. The process by which the above formula (5) is derived is described in detail in Japanese Patent Laid-Open No. 2003-61109.

(Cr/Cb)Y=Y0について、適正露光時の肌色といっても色差比の個人差は大きく、撮像装置1で唯一の規定値とするのは困難な場合がある。そこで、予め複数の(Cr/Cb)Y=Y0の値を記憶しておき、撮像時の環境によって最も好適と判断された(Cr/Cb)Y=Y0を選択し、当該選択された値で補正係数Kを求めるようにしてもよい。 Regarding (Cr / Cb) Y = Y0 , the individual difference of the color difference ratio is large even if it is the flesh color at the time of proper exposure, and it may be difficult to make the image apparatus 1 to be the only specified value. Therefore, in advance stores a plurality of values of (Cr / Cb) Y = Y0 advance, selected is determined that the most preferred by environment during imaging the (Cr / Cb) Y = Y0, in the selected value The correction coefficient K may be obtained.

ステップS18では、ステップS13で変換された輝度データY及び色差データCr並びに色差データCbに対して実行されるマトリクス演算式が決定される。マトリクス演算式の決定にあたっては、例えば肌色の画像であるか否か、輝度データYの値、色差データCr又は色差データCbの値等により最も好適な演算式が選択される。   In step S18, a matrix arithmetic expression to be executed on the luminance data Y, the color difference data Cr and the color difference data Cb converted in step S13 is determined. In determining the matrix calculation formula, the most preferable calculation formula is selected based on, for example, whether the image is a skin color, the value of the luminance data Y, the value of the color difference data Cr or the color difference data Cb, and the like.

ステップS19では、図2に示した色相補正情報生成手段702により、ステップS16で生成された位置情報、ステップS17で算出された補正係数K、ステップS18で決定されたマトリクス演算式の種類及び当該マトリクス演算式で使用されるマトリクス係数等に基づいて色相補正情報が生成される。   In step S19, the position information generated in step S16 by the hue correction information generation unit 702 shown in FIG. 2, the correction coefficient K calculated in step S17, the type of matrix calculation formula determined in step S18, and the matrix Hue correction information is generated based on matrix coefficients and the like used in the arithmetic expression.

ステップS20では、図2に示した色相補正手段703により、ステップS17で算出された補正係数K、ステップS18で決定されたマトリクス演算式に基づいて、ステップS13で変換された生画像データの色差データCr並びに色差データCbが、色差データCr’及び色差データCb’に補正される。   In step S20, the color difference data of the raw image data converted in step S13 based on the correction coefficient K calculated in step S17 and the matrix arithmetic expression determined in step S18 by the hue correction unit 703 shown in FIG. Cr and color difference data Cb are corrected to color difference data Cr ′ and color difference data Cb ′.

ステップS21では、輝度データY及びステップS20で補正された色差データCr’並びに色差データCb’が出力用の画像データ(例えばRGBデータ)に変換されたのち、図2に示した画像処理部7の出力部72に出力され、一時記憶メモリ6又は記憶デバイス9に格納されて処理を終了する。また、ステップS19で生成された色相補正情報も併せて出力される。   In step S21, the luminance data Y and the color difference data Cr ′ and color difference data Cb ′ corrected in step S20 are converted into output image data (for example, RGB data), and then the image processing unit 7 shown in FIG. The data is output to the output unit 72, stored in the temporary storage memory 6 or the storage device 9, and the process ends. Further, the hue correction information generated in step S19 is also output.

図5のステップS18で実行されるマトリクス演算式決定処理の詳細について図6を用いて説明する。図6は、図5のステップS18で実行されるマトリクス演算式決定処理の流れを示すフローチャートである。   Details of the matrix arithmetic expression determination process executed in step S18 of FIG. 5 will be described with reference to FIG. FIG. 6 is a flowchart showing the flow of the matrix arithmetic expression determination process executed in step S18 of FIG.

本実施の形態では、下記式(1)、(2)、(3)、(4)及び(6)の何れか1組の式を用いてマトリクス演算を行うことでステップS12で変換された色差データCr及び色差データCbをそれぞれ色差データCr’及び色差データCb’に補正するものである。マトリクス演算式の決定にあたっては、例えば肌色の画像であるか否か、輝度データYの値、色差データCr又は色差データCbの値等により最も好適な演算式が選択される。
(1) Cr’=Cr×A/K+Cb×B、
Cb’=Cr×C+Cb×D
(2) Cr’=(Cr×A+Cb×B)/K、
Cb’=Cr×C+Cb×D
(3) Cr’=Cr×A+Cb×B、
Cb’=Cr×C+Cb×D×K
(4) Cr’=Cr×A+Cb×B、
Cb’=(Cr×C+Cb×D)×K
(6) Cr’=Cr×A+Cb×B、
Cb’=Cr×C+Cb×D
上記式(1)、(2)、(3)、(4)及び(6)において、A、B、C及びDは既定のマトリクス係数であり、Kは図5のステップS17で算出された補正係数である。
In this embodiment, the color difference converted in step S12 by performing matrix calculation using any one of the following formulas (1), (2), (3), (4), and (6). Data Cr and color difference data Cb are corrected to color difference data Cr ′ and color difference data Cb ′, respectively. In determining the matrix calculation formula, the most preferable calculation formula is selected based on, for example, whether the image is a skin color, the value of the luminance data Y, the value of the color difference data Cr or the color difference data Cb, and the like.
(1) Cr ′ = Cr × A / K + Cb × B,
Cb ′ = Cr × C + Cb × D
(2) Cr ′ = (Cr × A + Cb × B) / K,
Cb ′ = Cr × C + Cb × D
(3) Cr ′ = Cr × A + Cb × B,
Cb ′ = Cr × C + Cb × D × K
(4) Cr ′ = Cr × A + Cb × B,
Cb ′ = (Cr × C + Cb × D) × K
(6) Cr ′ = Cr × A + Cb × B,
Cb ′ = Cr × C + Cb × D
In the above formulas (1), (2), (3), (4) and (6), A, B, C and D are predetermined matrix coefficients, and K is the correction calculated in step S17 in FIG. It is a coefficient.

ステップS101では、色差データCr及び色差データCbに基づいて、生画像データが肌色であるか否かが判断される。具体的には、Cr及びCbの閾値を予め定めておき、Cr及びCbが閾値内であれば肌色であると判断するようにできる。肌色であると判断された場合(ステップS101;YES)、ステップS102の処理が実行され、肌色でない場合(ステップS101;NO)、ステップS109の処理が実行される。   In step S101, based on the color difference data Cr and the color difference data Cb, it is determined whether the raw image data is a skin color. Specifically, threshold values for Cr and Cb can be determined in advance, and if Cr and Cb are within the threshold values, the skin color can be determined. If it is determined that the skin color is selected (step S101; YES), the process of step S102 is executed. If it is not the skin color (step S101; NO), the process of step S109 is executed.

ステップS102では、輝度データYが予め定められた閾値Y0より大きいか否かが判断される。輝度データYが閾値Y0より大きいと判断された場合(ステップS102;YES)、ステップS103の処理が実行され、閾値Y0より小さい場合(ステップS102;NO)、ステップS106の処理が実行される。   In step S102, it is determined whether the luminance data Y is greater than a predetermined threshold Y0. When it is determined that the luminance data Y is greater than the threshold Y0 (step S102; YES), the process of step S103 is executed, and when it is less than the threshold Y0 (step S102; NO), the process of step S106 is executed.

ステップS103では、色差データCbが予め定められた閾値Cb0より大きいか否かが判断される。色差データCbが閾値Cb0より大きいと判断された場合(ステップS103;YES)、ステップS104の処理が実行され、閾値Cb0より小さい場合(ステップS103;NO)、ステップS105の処理が実行される。   In step S103, it is determined whether or not the color difference data Cb is larger than a predetermined threshold Cb0. When it is determined that the color difference data Cb is larger than the threshold value Cb0 (step S103; YES), the process of step S104 is executed. When the color difference data Cb is smaller than the threshold value Cb0 (step S103; NO), the process of step S105 is executed.

ステップS104では、マトリクス演算式として式(4)が決定され、ステップS105では式(3)が決定される。   In step S104, equation (4) is determined as a matrix calculation equation, and equation (3) is determined in step S105.

ステップS106では、色差データCrが予め定められた閾値Cr0より大きいか否かが判断される。色差データCrが閾値Cr0より大きいと判断された場合(ステップS106;YES)、ステップS107の処理が実行され、閾値Cr0より小さい場合(ステップS106;NO)、ステップS108の処理が実行される。   In step S106, it is determined whether or not the color difference data Cr is greater than a predetermined threshold value Cr0. When it is determined that the color difference data Cr is larger than the threshold value Cr0 (step S106; YES), the process of step S107 is executed, and when it is smaller than the threshold value Cr0 (step S106; NO), the process of step S108 is executed.

ステップS107では、マトリクス演算式として式(2)が決定され、ステップS108では式(1)が決定され、ステップS109では式(6)が決定される。   In step S107, equation (2) is determined as a matrix operation equation, equation (1) is determined in step S108, and equation (6) is determined in step S109.

マトリクス演算式決定処理において、式(1)や式(2)はCrを高輝度域で大きくするものであり、色域外にはみ出す場合がある。そのために極めて高い輝度で肌が黄色になる現象(黄変)は改善されるが完全ではない。したがって、もとより黄変は小さいが輝度の高い場合に好適である。中でも式(2)は、Cb成分の色相変動をCrで補償するものであり、例えばタングステン光等の低色温度下で肌の色の濃い人物を撮影した画像を補正する場合に好適である。   In the matrix arithmetic expression determination process, the expressions (1) and (2) increase Cr in the high luminance region and sometimes protrude out of the color gamut. For this reason, the phenomenon of yellowing the skin with extremely high brightness is improved but not perfect. Therefore, it is suitable when the yellowing is small but the luminance is high. In particular, the expression (2) compensates for the hue variation of the Cb component with Cr, and is suitable for correcting an image of a person having a dark skin color under a low color temperature such as tungsten light.

また、式(3)や式(4)はCbを高輝度域で小さくするものであり、色域外にはみ出すことはなく、色相回りは完全に直せる。但し、高輝度域の黄色系統の彩度がやや落ちるので輝度の低い場合に好適である。中でも式(4)は、Cr成分の色相変動をCbで補償するものであり、例えば昼光等の高色温度下で肌の色の薄い人物を撮影した画像を補正する場合に好適である。   Further, the expressions (3) and (4) are for reducing Cb in the high luminance region, and do not protrude outside the color gamut, and the hue circumference can be completely corrected. However, since the saturation of the yellow system in the high luminance range is slightly lowered, it is suitable when the luminance is low. In particular, the equation (4) compensates for the hue variation of the Cr component with Cb, and is suitable for correcting an image obtained by photographing a person with light skin color under a high color temperature such as daylight.

さらに、式(1)又は式(2)の何れかと、式(3)又は式(4)の何れかを組み合わせて色差マトリクス演算を行ってもよい。2つの式を組み合わせずに何れか一方の係数のみを用いると、肌色以外の一般色に対して好ましくない影響がでる場合には、組み合わせた式を用いることが特に有効である。   Furthermore, the color difference matrix calculation may be performed by combining any one of the formula (1) or the formula (2) and any one of the formula (3) or the formula (4). When only one of the coefficients is used without combining the two expressions, it is particularly effective to use the combined expression when an unfavorable influence is exerted on general colors other than the skin color.

この場合には、Cr’に用いるK1とCb’に用いるK2は、K1×K2=Kとなる関係を保って分割するのであればどのように分割してもよい。もちろん、演算処理による負担を軽減するという意味では、何れか一方の係数のみを用いる方が好ましいので、色再現性の向上と演算処理の簡単化とのトレードオフになる。また、式(1)や式(2)は、係数Kでのわり算になっているが、Kの逆数を用いた掛け算でもよい。   In this case, K1 used for Cr ′ and K2 used for Cb ′ may be divided in any way as long as they are divided while maintaining the relationship of K1 × K2 = K. Of course, in order to reduce the burden of the arithmetic processing, it is preferable to use only one of the coefficients, which is a trade-off between improving the color reproducibility and simplifying the arithmetic processing. Moreover, although Formula (1) and Formula (2) are the division by the coefficient K, the multiplication using the reciprocal number of K may be sufficient.

なお、上記の式(1)から(4)までの演算として、例えば輝度YとK値との関係を示すルックアップテーブル(LUT)を用いて演算を行ってもよい。或いは、例えば式(1)の場合、輝度Yと色差Crの値から直接Cr’の値を読み出す2次元LUTを用いてもよい。ルックアップテーブルを用いることにより、信号処理時間の短縮、カメラの製造コストの低減が可能である。   As the calculations from the above formulas (1) to (4), for example, a calculation may be performed using a look-up table (LUT) indicating the relationship between the luminance Y and the K value. Alternatively, for example, in the case of Equation (1), a two-dimensional LUT that directly reads the value of Cr ′ from the value of luminance Y and color difference Cr may be used. By using the look-up table, it is possible to reduce the signal processing time and the manufacturing cost of the camera.

参考例として、撮像装置1で作成されたデータに基づいて、色相回り補正を再現する色相補正再現装置及びその動作を図7及び図8を用いて説明する。図7は、色相補正補正再現装置の一実施形態であるプリンタの機能的構成を示すブロック図である。   As a reference example, a hue correction reproduction device that reproduces hue rotation correction based on data created by the imaging apparatus 1 and its operation will be described with reference to FIGS. FIG. 7 is a block diagram illustrating a functional configuration of a printer which is an embodiment of the hue correction correction reproduction apparatus.

プリンタ30は、制御部31、画像処理部32、プリント部33、操作表示部34、記憶部35、メモリインタフェース36、通信部37等により構成され、各部はバス38により接続されている。   The printer 30 includes a control unit 31, an image processing unit 32, a printing unit 33, an operation display unit 34, a storage unit 35, a memory interface 36, a communication unit 37, and the like.

制御部31は、図示しないCPU(中央処理装置)、ワークメモリ等から構成され、記憶部35に記憶されているプログラムをワークメモリに読み出し、当該プログラムにしたがってってプリンタ30の各部を集中制御する。   The control unit 31 includes a CPU (central processing unit) (not shown), a work memory, and the like, reads a program stored in the storage unit 35 into the work memory, and centrally controls each unit of the printer 30 according to the program. .

画像処理部32は、通信部37で受信されたり、メモリインタフェース36で読み取られた画像データに対して、プリント部33がプリントするのに最適な画像処理を行う。   The image processing unit 32 performs image processing optimal for the printing unit 33 to print the image data received by the communication unit 37 or read by the memory interface 36.

プリント部33は、図示しない電子写真方式やインクジェット方式による画像記録機構、記録紙搬送機構等からなり、画像ファイルに含まれる画像データに基づく画像を記録紙上に顕像化する。   The printing unit 33 includes an image recording mechanism (not shown), an image recording mechanism using an inkjet method, a recording paper transport mechanism, and the like, and visualizes an image based on image data included in the image file on the recording paper.

操作表示部34は、例えば透明電極が格子状に配置された感圧式(抵抗膜圧式)のタッチパネルと各種操作ボタンとから構成され、読み出された画像データを表示し、ユーザに各種の案内表示や状態表示を行ったり、ユーザから各種の操作を受け付ける機能を有し、手指や専用のタッチペン等で押された力点のXY座標やボタン操作を検出し、操作信号として制御部31に出力する。   The operation display unit 34 includes, for example, a pressure-sensitive (resistive film pressure) touch panel in which transparent electrodes are arranged in a grid and various operation buttons, displays read image data, and displays various guidance displays to the user. It has a function of displaying the status and receiving various operations from the user, and detects the XY coordinates of the power point pressed by a finger or a dedicated touch pen and the button operation, and outputs them to the control unit 31 as an operation signal.

記憶部35は、EEPROM(Electrically Erasable Programmable Read−OnlyMemory)等の不揮発性の半導体メモリにより構成され、プリンタ30で実行可能な各種プログラムや機能に応じた設定内容などを記憶する。   The storage unit 35 is configured by a nonvolatile semiconductor memory such as an EEPROM (Electrically Erasable Programmable Read-Only Memory), and stores setting contents according to various programs and functions that can be executed by the printer 30.

メモリインタフェース36は、図示しないスロットに装着された情報情報記録媒体361からの画像データを含む各種データの読み出及び書き込みを行う。なお、情報情報記録媒体361は、撮像装置1やプリンタ30等に対して着脱可能なメモリであり、例えばフラッシュメモリ等の着脱自在のカード形状若しくはスティック形状の半導体メモリ等が適用され、画像データを含む各種データを記憶する。   The memory interface 36 reads and writes various data including image data from the information information recording medium 361 mounted in a slot (not shown). The information information recording medium 361 is a detachable memory with respect to the imaging device 1, the printer 30, and the like. For example, a removable card-shaped or stick-shaped semiconductor memory such as a flash memory is applied, and image data is stored. Store various data including it.

通信部37は、例えばUSB端子や無線LANカード等で構成された外部入手出力端子であり、図示しないコンピュータや撮像装置1等と有線又は無線の通信媒体Nを介して接続され、画像データを含む各種データの授受等の通信を行う。   The communication unit 37 is an externally-acquired output terminal configured by, for example, a USB terminal or a wireless LAN card, and is connected to a computer (not shown) or the imaging device 1 through a wired or wireless communication medium N and includes image data. Communication such as sending and receiving various data.

図7に示したプリンタ20の動作の一例について、図8を用いて説明する。図8は、図7のプリンタ20により実行されるプリント処理の流れを示すフローチャートである。なお、図8のフローチャートにおいて、プリンタ30の電源は投入された状態になっているものとし、プリンタ30に対してプリント実行命令が出されているものとする。また、プリント実行命令は、例えば、通信部37を介して図示しないコンピュータや撮像装置1等から送信されるか、図示しないスロットに情報情報記録媒体361が装着されたことを認識して制御部31で生成されるものである。   An example of the operation of the printer 20 shown in FIG. 7 will be described with reference to FIG. FIG. 8 is a flowchart showing the flow of print processing executed by the printer 20 of FIG. In the flowchart of FIG. 8, it is assumed that the printer 30 is powered on and a print execution command is issued to the printer 30. The print execution command is transmitted from, for example, a computer (not shown), the imaging apparatus 1 or the like via the communication unit 37, or the control unit 31 recognizes that the information information recording medium 361 is mounted in a slot (not shown). Is generated.

ステップS31では、通信部37又はメモリインタフェース36を介して、生画像データ及び色相補正情報が読み出される。   In step S31, the raw image data and the hue correction information are read out via the communication unit 37 or the memory interface 36.

ステップS32では画像処理部32により、ステップS31で読み出された生画像データ及び色相補正情報に基づき、操作表示部34に最適化された鑑賞画像参照データが生成され、操作表示部34にプレビュー画像として表示される。   In step S32, the image processing unit 32 generates appreciation image reference data optimized for the operation display unit 34 based on the raw image data and hue correction information read in step S31, and the preview image is displayed on the operation display unit 34. Is displayed.

ステップS33では画像処理部32により、ステップS32で表示されたプレビュー画像、すなわち撮像時と同じ色相回り補正が行われた画像のプリントを行うか否かが判断される。判断は、例えばプレビュー画像が表示されたときに、操作者に対して撮像時と同じ画像のプリントを行うか否かの選択を促す表示に対する操作表示部34への選択入力によって行われる。撮像時と同じ補正が行われた画像のプリントを行うと判断された場合は(ステップS33;YES)、ステップS34の処理が実行され、撮像時とは異なる補正が行われた画像のプリントを行うと判断された場合は(ステップS33;NO)ステップS35の処理が実行される。   In step S33, the image processing unit 32 determines whether or not to print the preview image displayed in step S32, that is, an image that has been subjected to the same hue correction as that during imaging. The determination is made, for example, by a selection input to the operation display unit 34 with respect to a display that prompts the operator to select whether or not to print the same image as at the time of imaging when a preview image is displayed. If it is determined to print an image that has been subjected to the same correction as that at the time of imaging (step S33; YES), the process of step S34 is executed, and an image that has been subjected to correction different from that at the time of imaging is printed. Is determined (step S33; NO), the process of step S35 is executed.

ステップS34では画像処理部32により、ステップS31で読み出された生画像データ及び補正情報に基づき、プリント部33でプリントされる画像に最適化された鑑賞画像参照データが生成される。   In step S34, the image processing unit 32 generates appreciation image reference data optimized for the image printed by the printing unit 33 based on the raw image data and the correction information read in step S31.

ステップS35では画像処理部32により、ステップS31で読み出された生画像データに対して、プリンタ30固有の補正処理又は操作者が意図した補正処理等が行われた後、当該補正された画像データに基づき、プリント部33で形成される画像に最適化された画像データが生成される。   In step S35, the image processing unit 32 performs a correction process unique to the printer 30 or a correction process intended by the operator on the raw image data read in step S31, and then the corrected image data. Based on the above, image data optimized for the image formed by the printing unit 33 is generated.

ステップS36では、ステップS34又はステップS35で生成された画像データに基づいて、プリント部33でプリントが実行される。   In step S36, the printing unit 33 performs printing based on the image data generated in step S34 or step S35.

以上により、本参考例においては、撮像したデジタルカメラに依存することなく適正な色相回り補正がなされた画像又は撮像したデジタルカメラで行われた色相回り補正を再現した画像の両方を作製することが可能である。   As described above, in this reference example, it is possible to produce both an image that has been subjected to appropriate hue correction without depending on the captured digital camera or an image that reproduces the hue correction performed by the captured digital camera. Is possible.

なお、本実施の形態において、画像処理装置としてデジタルカメラを例にとり説明したが、スキャナや証明写真用人物撮影装置等の画像読み取り装置に対しても適用可能である。   In the present embodiment, a digital camera has been described as an example of the image processing apparatus. However, the present invention can also be applied to an image reading apparatus such as a scanner or a photographer's photographer.

また、本発明の目的は前述した実施形態の機能を実現するソフトウェアのプログラムを記録した情報記録媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(CPU若しくはMPU)が情報記録媒体に格納されたプログラムを読み出し実行することによっても、達成されることは言うまでもない。   An object of the present invention is to supply an information recording medium recording a software program for realizing the functions of the above-described embodiments to a system or apparatus, and the computer (CPU or MPU) of the system or apparatus uses the information recording medium. Needless to say, this can also be achieved by reading and executing the stored program.

この場合、情報記録媒体から読み出されたプログラム自体が前述した実施形態の機能を実現することになり、そのプログラム及び該プログラムを記憶した情報記録媒体は本発明を構成することになる。   In this case, the program itself read from the information recording medium realizes the functions of the above-described embodiment, and the program and the information recording medium storing the program constitute the present invention.

プログラムを供給するための情報記録媒体としては、例えばフロッピー(登録商標)ディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROMなどを用いることができる。   As an information recording medium for supplying the program, for example, a floppy (registered trademark) disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like is used. Can do.

また、コンピュータが読み出したプログラムを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部又は全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, by executing the program read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) operating on the computer based on an instruction of the program is actual. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the processing and the processing is included.

さらに、情報記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部又は全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Furthermore, after the program read from the information recording medium is written to the memory provided in the function expansion board inserted into the computer or the function expansion unit connected to the computer, the function expansion board is based on the instructions of the program. Needless to say, the CPU of the function expansion unit or the like performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

その他、本発明に係る画像処理装置を構成する各構成の細部構成及び細部動作に関しても、本発明の趣旨を逸脱することのない範囲で適宜変更可能である。   In addition, the detailed configuration and detailed operation of each component constituting the image processing apparatus according to the present invention can be changed as appropriate without departing from the spirit of the present invention.

本発明に係る画像処理装置が適用された撮像装置の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the imaging device to which the image processing apparatus which concerns on this invention was applied. 図1の画像処理部の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the image process part of FIG. 本発明に係る撮像装置により実行される撮像処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the imaging process performed by the imaging device which concerns on this invention. 図4(a)は、本発明に係る色相補正情報の記録例を示す図であり、図4(b)は、本発明に係る色相補正情報の他の記録例を示す図である。FIG. 4A is a diagram showing a recording example of the hue correction information according to the present invention, and FIG. 4B is a diagram showing another recording example of the hue correction information according to the present invention. 図3のフローチャートで実行される色相回り補正処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the hue periphery correction | amendment process performed with the flowchart of FIG. 図5のフローチャートで実行されるマトリクス演算式決定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the matrix arithmetic expression determination process performed with the flowchart of FIG. 参考例に係る色相補正再現装置の一実施形態であるプリンタの機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the printer which is one Embodiment of the hue correction | amendment reproduction apparatus which concerns on a reference example. 図7のプリンタにより実行されるプリント処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the printing process performed by the printer of FIG.

符号の説明Explanation of symbols

1 撮像装置
2 レンズ
3 絞り
4 撮像素子
5 アナログ処理回路
6 一時記憶メモリ
7 画像処理部
71 入力部
72 出力部
701 色空間変換手段
702 色相補正情報生成手段
703 色相補正手段
704 鑑賞画像参照データ生成手段
705 補正領域特定手段
706 位置情報生成手段
8 ヘッダ情報処理部
9 記憶デバイス
91、92 ファイル
93 メタファイル
910 生画像データ
911、921、931 ヘッダ領域
11 制御部
13 A/D変換器
14 操作部
15 表示部
30 プリンタ
31 制御部
32 画像処理部
33 プリント部
34 操作表示部
35 記憶部
36 メモリインタフェース
37 通信部
d1 色相補正情報
d2 撮像装置特性補正データ
d3 識別情報
DESCRIPTION OF SYMBOLS 1 Imaging device 2 Lens 3 Aperture 4 Image sensor 5 Analog processing circuit 6 Temporary storage memory 7 Image processing part 71 Input part 72 Output part 701 Color space conversion means 702 Hue correction information generation means 703 Hue correction reference means 704 Appreciation image reference data generation means 705 Correction area specifying means 706 Position information generating means 8 Header information processing section 9 Storage device 91, 92 File 93 Metafile 910 Raw image data 911, 921, 931 Header area 11 Control section 13 A / D converter 14 Operation section 15 Display Unit 30 printer 31 control unit 32 image processing unit 33 print unit 34 operation display unit 35 storage unit 36 memory interface 37 communication unit d1 hue correction information d2 imaging device characteristic correction data d3 identification information

Claims (15)

被写体を撮像することにより生成された生画像データを入力する生画像データ入力工程と、
前記生画像データをY−Cr−Cb空間上の輝度データY及び色差データCr並びに色差データCbに変換する色空間データ変換工程と、
前記輝度データY及び色差データCr並びに色差データCbに基づいて、色相補正情報を生成する補正情報生成工程と、
前記色相補正情報及び前記生画像データに基づいて補正画像データを生成する色相補正工程と、
前記色相補正情報及び前記生画像データを情報記録媒体に記録する情報記録工程とを含むことを特徴とする画像処理方法。
A raw image data input step of inputting raw image data generated by imaging a subject;
A color space data conversion step of converting the raw image data into luminance data Y and color difference data Cr and color difference data Cb in the Y-Cr-Cb space;
A correction information generating step for generating hue correction information based on the luminance data Y, the color difference data Cr, and the color difference data Cb;
A hue correction step of generating corrected image data based on the hue correction information and the raw image data;
And an information recording step of recording the hue correction information and the raw image data on an information recording medium.
前記情報記録工程は、前記補正画像データを情報記録媒体に記録することを特徴とする請求項1に記載の画像処理方法。 The image processing method according to claim 1, wherein the information recording step records the corrected image data on an information recording medium. 前記色相補正工程は、下記式(1)乃至式(4)の何れか1組の式を用いてマトリクス演算を行うことで色差データCr及び色差データCbをそれぞれ色差データCr’及び色差データCb’に補正するものであり、
前記色相補正情報は、下記式(1)乃至式(4)の何れか1組の式に用いられる補正係数Kを含むことを特徴とする請求項1又は2に記載の画像処理方法。
(1) Cr’=Cr×A/K+Cb×B、
Cb’=Cr×C+Cb×D
(2) Cr’=(Cr×A+Cb×B)/K、
Cb’=Cr×C+Cb×D
(3) Cr’=Cr×A+Cb×B、
Cb’=Cr×C+Cb×D×K
(4) Cr’=Cr×A+Cb×B、
Cb’=(Cr×C+Cb×D)×K
但し、A、B、C及びDはマトリクス係数であり、Kは前記輝度データYの関数であり、かつCr’/Cb’で表される色差比が前記輝度データYの値によらず一定になるように決められる、0よりも大きい補正係数である。
In the hue correction step, the color difference data Cr and the color difference data Cb are converted into the color difference data Cr ′ and the color difference data Cb ′ by performing matrix calculation using any one of the following formulas (1) to (4), respectively. To correct
The image processing method according to claim 1, wherein the hue correction information includes a correction coefficient K used in any one of the following formulas (1) to (4).
(1) Cr ′ = Cr × A / K + Cb × B,
Cb ′ = Cr × C + Cb × D
(2) Cr ′ = (Cr × A + Cb × B) / K,
Cb ′ = Cr × C + Cb × D
(3) Cr ′ = Cr × A + Cb × B,
Cb ′ = Cr × C + Cb × D × K
(4) Cr ′ = Cr × A + Cb × B,
Cb ′ = (Cr × C + Cb × D) × K
However, A, B, C and D are matrix coefficients, K is a function of the luminance data Y, and the color difference ratio represented by Cr ′ / Cb ′ is constant regardless of the value of the luminance data Y. The correction coefficient is determined to be greater than 0.
前記補正係数Kは、下記式(5)によって算出されることを特徴とする請求項3に記載の画像処理方法。
(5) K=(Cr/Cb)/(Cr/Cb)Y=Y0
但し、(Cr/Cb)Y=Y0は、肌色の被写体に対する露光量を変えることで得られる適正露光時の色差比である。
The image processing method according to claim 3, wherein the correction coefficient K is calculated by the following equation (5).
(5) K = (Cr / Cb) / (Cr / Cb) Y = Y0
However, (Cr / Cb) Y = Y0 is the color difference ratio at the time of proper exposure obtained by changing the exposure amount for the skin-colored subject.
前記情報記録工程は、前記色相補正情報と前記生画像データとを関連付けて情報記録媒体に記録することを特徴とする請求項1乃至4の何れか1項に記載の画像処理方法。 5. The image processing method according to claim 1, wherein in the information recording step, the hue correction information and the raw image data are associated and recorded on an information recording medium. 一画像における補正領域を特定する補正領域特定工程と、
前記補正領域の位置を表す位置情報を生成する位置情報生成工程とを含み、
前記色空間データ変換工程、前記補正情報生成工程及び前記色相補正工程は、前記補正領域の生画像データを対象として実行するものであり、
前記情報記録工程は、前記色相補正情報と前記位置情報とを関連付けて情報記録媒体に記録することを特徴とする請求項1乃至5の何れか1項に記載の画像処理方法。
A correction area specifying step for specifying a correction area in one image;
Including a position information generation step of generating position information indicating the position of the correction region,
The color space data conversion step, the correction information generation step, and the hue correction step are performed on the raw image data in the correction region,
6. The image processing method according to claim 1, wherein the information recording step records the hue correction information and the position information in association with each other on an information recording medium.
被写体を撮像することにより生成された生画像データを入力する生画像データ入力手段と、
前記生画像データをY−Cr−Cb空間上の輝度データY及び色差データCr並びに色差データCbに変換する色空間データ変換手段と、
前記輝度データY及び色差データCr並びに色差データCbに基づいて、色相補正情報を生成する補正情報生成手段と、
前記色相補正情報及び前記生画像データに基づいて補正画像データを生成する色相補正手段と、
前記色相補正情報及び前記生画像データを情報記録媒体に記録する情報記録手段とを有することを特徴とする画像処理装置。
Raw image data input means for inputting raw image data generated by imaging a subject;
Color space data conversion means for converting the raw image data into luminance data Y and color difference data Cr and color difference data Cb in the Y-Cr-Cb space;
Correction information generating means for generating hue correction information based on the luminance data Y, the color difference data Cr, and the color difference data Cb;
Hue correction means for generating corrected image data based on the hue correction information and the raw image data;
An image processing apparatus comprising: information recording means for recording the hue correction information and the raw image data on an information recording medium.
前記情報記録手段は、前記補正画像データを情報記録媒体に記録することを特徴とする請求項7に記載の画像処理装置。 The image processing apparatus according to claim 7, wherein the information recording unit records the corrected image data on an information recording medium. 前記色相補正手段は、下記式(1)乃至式(4)の何れか1組の式を用いてマトリクス演算を行うことで前記色差データCr及び色差データCbをそれぞれ色差データCr’及び色差データCb’に補正するものであり、
前記色相補正情報は、下記式(1)乃至式(4)の何れか1組の式に用いられる補正係数Kを含むことを特徴とする請求項7又は8に記載の画像処理装置。
(1) Cr’=Cr×A/K+Cb×B、
Cb’=Cr×C+Cb×D
(2) Cr’=(Cr×A+Cb×B)/K、
Cb’=Cr×C+Cb×D
(3) Cr’=Cr×A+Cb×B、
Cb’=Cr×C+Cb×D×K
(4) Cr’=Cr×A+Cb×B、
Cb’=(Cr×C+Cb×D)×K
但し、A、B、C及びDはマトリクス係数であり、Kは前記輝度データYの関数であり、かつCr’/Cb’で表される色差比が前記輝度データYの値によらず一定になるように決められる、0よりも大きい補正係数である。
The hue correction unit performs matrix calculation using any one of the following formulas (1) to (4) to thereby convert the color difference data Cr and the color difference data Cb into the color difference data Cr ′ and the color difference data Cb, respectively. Is to correct
The image processing apparatus according to claim 7, wherein the hue correction information includes a correction coefficient K used in any one of the following formulas (1) to (4).
(1) Cr ′ = Cr × A / K + Cb × B,
Cb ′ = Cr × C + Cb × D
(2) Cr ′ = (Cr × A + Cb × B) / K,
Cb ′ = Cr × C + Cb × D
(3) Cr ′ = Cr × A + Cb × B,
Cb ′ = Cr × C + Cb × D × K
(4) Cr ′ = Cr × A + Cb × B,
Cb ′ = (Cr × C + Cb × D) × K
However, A, B, C and D are matrix coefficients, K is a function of the luminance data Y, and the color difference ratio represented by Cr ′ / Cb ′ is constant regardless of the value of the luminance data Y. The correction coefficient is determined to be greater than 0.
前記補正係数Kは、下記式(5)によって算出されることを特徴とする請求項9に記載の画像処理装置。
(5) K=(Cr/Cb)/(Cr/Cb)Y=Y0
但し、(Cr/Cb)Y=Y0は、肌色の被写体に対する露光量を変えることで得られる適正露光時の色差比である。
The image processing apparatus according to claim 9, wherein the correction coefficient K is calculated by the following equation (5).
(5) K = (Cr / Cb) / (Cr / Cb) Y = Y0
However, (Cr / Cb) Y = Y0 is the color difference ratio at the time of proper exposure obtained by changing the exposure amount for the skin-colored subject.
前記情報記録手段は、前記色相補正情報と前記生画像データとを関連付けて情報記録媒体に記録することを特徴とする請求項7乃至10の何れか1項に記載の画像処理装置。 The image processing apparatus according to any one of claims 7 to 10, wherein the information recording unit records the hue correction information and the raw image data in an information recording medium in association with each other. 一画像における補正領域を特定する補正領域特定手段と、
前記補正領域の位置を表す位置情報を生成する位置情報生成手段とを有し、
前記色空間データ変換手段及び前記補正情報生成手段は、前記補正領域の生画像データを対象として処理を実行するものであり、
前記情報記録手段は、前記色相補正情報と前記位置情報とを関連付けて情報記録媒体に記録することを特徴とする請求項7乃至11の何れか1項に記載の画像処理装置。
Correction area specifying means for specifying a correction area in one image;
Position information generating means for generating position information indicating the position of the correction region;
The color space data conversion means and the correction information generation means execute processing on the raw image data of the correction area,
The image processing apparatus according to claim 7, wherein the information recording unit records the hue correction information and the position information in an information recording medium in association with each other.
請求項1乃至6の何れか1項に記載の画像処理方法をコンピュータに実行させることを特徴とする画像処理プログラム。 An image processing program that causes a computer to execute the image processing method according to claim 1. 請求項7乃至12の何れか1項に記載の各手段としてコンピュータを機能させることを特徴とする画像処理プログラム。 An image processing program for causing a computer to function as each means according to any one of claims 7 to 12. 請求項7乃至12の何れか1項に記載の画像処理装置を備えたことを特徴とする撮像装置。 An imaging apparatus comprising the image processing apparatus according to claim 7.
JP2005013904A 2005-01-21 2005-01-21 Image processing method, apparatus, and program, and image pickup device Pending JP2006202091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005013904A JP2006202091A (en) 2005-01-21 2005-01-21 Image processing method, apparatus, and program, and image pickup device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005013904A JP2006202091A (en) 2005-01-21 2005-01-21 Image processing method, apparatus, and program, and image pickup device

Publications (1)

Publication Number Publication Date
JP2006202091A true JP2006202091A (en) 2006-08-03

Family

ID=36960026

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005013904A Pending JP2006202091A (en) 2005-01-21 2005-01-21 Image processing method, apparatus, and program, and image pickup device

Country Status (1)

Country Link
JP (1) JP2006202091A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622726A (en) * 2011-01-27 2012-08-01 常州芯奇微电子科技有限公司 Multiple-display-mode-supporting gray scale conversion image enhancement processing
US9113025B2 (en) 2013-03-15 2015-08-18 Samsung Electronics Co., Ltd. Image signal processor circuits and methods for correcting crosstalk artifacts

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622726A (en) * 2011-01-27 2012-08-01 常州芯奇微电子科技有限公司 Multiple-display-mode-supporting gray scale conversion image enhancement processing
US9113025B2 (en) 2013-03-15 2015-08-18 Samsung Electronics Co., Ltd. Image signal processor circuits and methods for correcting crosstalk artifacts

Similar Documents

Publication Publication Date Title
JP2004173010A (en) Image pickup device, image processor, image recorder, image processing method, program and recording medium
JP4131192B2 (en) Imaging apparatus, image processing apparatus, and image recording apparatus
JP4298253B2 (en) Image processing method and apparatus, and imaging apparatus
US8164648B2 (en) Image processing apparatus and image processing apparatus control method
JP2004096500A (en) Image pickup apparatus, image processing apparatus, and image recording apparatus
JP2004088345A (en) Image forming method, image processor, print preparation device, and storage medium
JP2006203566A (en) Imaging apparatus, image processing apparatus and image processing method
JP5305937B2 (en) Image processing apparatus, image processing method, and program
JP2004336521A (en) Image processing method, image processor, and image recording apparatus
JP2006202091A (en) Image processing method, apparatus, and program, and image pickup device
JP5031442B2 (en) Color processing method and apparatus
JP2007097032A (en) Image display apparatus, image display method and digital camera
JP2006203573A (en) Imaging apparatus, image processor, and image recording apparatus
JP2006203571A (en) Imaging apparatus, image processing apparatus, and image recording apparatus
JP4320225B2 (en) Image processing for image data
JP2004096508A (en) Image processing method, image processing apparatus, image recording apparatus, program, and recording medium
JP2004328530A (en) Imaging apparatus, image processing apparatus, and image recording apparatus
JP4292873B2 (en) Image processing method, image processing apparatus, and image recording apparatus
JP2004179883A (en) Image adjustment method, image input apparatus, digital still camera, image forming apparatus, and computer program
JP2005039313A (en) Image processing apparatus
JP2006203565A (en) Apparatus and method for processing image, and image recording apparatus
JP2006261881A (en) Image-forming apparatus and image-forming method
JP2005202749A (en) Image processing method, image processing apparatus, and image recording apparatus
JP2006203567A (en) Imaging apparatus, image processing apparatus, and image recording apparatus
JP2004178428A (en) Image processing method