JP2000101860A - Image correction method, image correction device and recording medium - Google Patents

Image correction method, image correction device and recording medium

Info

Publication number
JP2000101860A
JP2000101860A JP10265331A JP26533198A JP2000101860A JP 2000101860 A JP2000101860 A JP 2000101860A JP 10265331 A JP10265331 A JP 10265331A JP 26533198 A JP26533198 A JP 26533198A JP 2000101860 A JP2000101860 A JP 2000101860A
Authority
JP
Japan
Prior art keywords
value
image
image data
correction
conversion
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
JP10265331A
Other languages
Japanese (ja)
Inventor
Takashi Noguchi
高史 野口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP10265331A priority Critical patent/JP2000101860A/en
Publication of JP2000101860A publication Critical patent/JP2000101860A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To conduct color correction and density correction without causing any deterioration in the image quality such as change in principal gradation, spotting of white portions in a highlight part and blackish white-background in the image. SOLUTION: After calculating a correction value (gain) for color correction and density correction, as shown in Figure (B), a transformation curve on the outside of a prescribed range (the range of about 0.5 to 1.0 in antilogarithm or of about -0.3 to 0 in logarithm in Figure (B)) is set with a gradient of unity on a log-log chart where the X axis is the logarithm of an input value and the Y axis is the logarithm of an output value, the set transformation curve is moved in parallel depending on the gain so that the gradient is unchanged, and the transformation curve within the prescribed range is decided so that a value corresponding to a brightest point in an input value is converted into a value corresponding to a brightest point in an output value, a middle part of the curve is changed smoothly and the curve connects to the transformation curve at the outside of the prescribed range. Then object reflectance data obtained from image data are converted according to image data conversion conditions specified by the above transformation curve.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は画像補正方法、画像
補正装置及び記録媒体に係り、特に、画像の色及び濃度
の少なくとも一方を補正する画像補正方法、該画像補正
方法を適用可能な画像補正装置、及び前記画像補正方法
をコンピュータで実行させるためのプログラムが記録さ
れた記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image correction method, an image correction apparatus, and a recording medium, and more particularly, to an image correction method for correcting at least one of the color and density of an image, and an image correction to which the image correction method can be applied. The present invention relates to an apparatus and a recording medium on which a program for causing a computer to execute the image correction method is recorded.

【0002】[0002]

【従来の技術】ビデオカメラによる撮像やデジタルスチ
ルカメラによる撮影によって得られた画像データに対し
ては、白バランス調整等の色補正や画像全体の濃度を適
正化する濃度補正を行う必要がある。画像の色補正及び
濃度補正は、一般に、複数チャンネル(例えばR、G、
B)毎に画像データをサンプリングし、サンプリングに
よって得られた各チャンネルのデータに基づいて、各チ
ャンネル毎に平均値を演算し、演算した平均値に基づい
て、例えば色補正については色度に関する平均値が中性
色(グレイ)になるように、濃度補正については輝度に
関する平均値が中間値(反射濃度であれば「0.7
5」、各画素の濃度を8ビットで表す画像データであれ
ば「118」等の数値が用いられる)になるように色補
正及び濃度補正の補正値を求め、該補正値に基づいて画
像データを変換している。
2. Description of the Related Art It is necessary to perform color correction such as white balance adjustment and density correction for optimizing the density of the entire image on image data obtained by imaging with a video camera or imaging with a digital still camera. Generally, color correction and density correction of an image are performed on a plurality of channels (for example, R, G,
B) The image data is sampled for each channel, an average value is calculated for each channel based on the data of each channel obtained by the sampling, and based on the calculated average value, for example, for color correction, the average for chromaticity is calculated. For the density correction, the average value for the luminance is set to an intermediate value (for the reflection density, “0.7
5), and a value such as “118” is used for image data representing the density of each pixel in 8 bits. Has been converted.

【0003】なお、色補正及び濃度補正に相当する画像
データの変換は、下記の変換式に従って行われることが
多い。
The conversion of image data corresponding to color correction and density correction is often performed according to the following conversion formula.

【0004】[0004]

【数1】 上記の(1)式及び(2)式において、(R,G,B)
は補正前の画像データ(画像の各画素のR、G、Bの値
を表す)、(R’,G’,B’)は補正後の画像デー
タ、(kr ,kg ,kb )は各チャンネルの変換係数
(色補正及び濃度補正の補正値に相当)を表す。(1)
式はゲインを、(2)式はオフセットを調整する変換式
であり、(1)式及び(2)式の何れか一方を用いる
か、或いは2つの式を組み合わせて用いる(アフィン変
換という)ことで、色補正及び濃度補正に相当する画像
データの変換を行うことができる。
(Equation 1) In the above equations (1) and (2), (R, G, B)
Image data before correction (R of each pixel of the image, representing the value of G, B), (R ' , G', B ') image data after correction, (k r, k g, k b) Represents a conversion coefficient of each channel (corresponding to correction values of color correction and density correction). (1)
The expression is a conversion expression for adjusting the gain, and the expression (2) is a conversion expression for adjusting the offset. Either one of the expressions (1) and (2) is used or a combination of the two expressions is used (referred to as affine transformation). Thus, conversion of image data corresponding to color correction and density correction can be performed.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、処理対
象の画像データが、1画素・1チャンネル当りのビット
数が少ない(例えば8ビット等)データ、すなわちダイ
ナミックレンジの小さい(狭い)画像データである場
合、(1)式や(2)式に従って色補正や濃度補正を行
うと、補正後の画像データが表す画像が、例えばハイラ
イト部が白くとんだり、画像中の本来は白として再現さ
れるべき領域(白地領域)が黒みを帯びる等のように、
好ましくない画質になるという問題がある。
However, when the image data to be processed is data with a small number of bits per pixel / channel (for example, 8 bits), that is, image data with a small (narrow) dynamic range. When the color correction and the density correction are performed according to the formulas (1) and (2), the image represented by the corrected image data should be reproduced as, for example, the highlight portion becomes white or the image is originally white. If the area (white area) is blackish,
There is a problem that the image quality becomes unfavorable.

【0006】これを解決するために、画像データ中の最
大値(8ビット画像データでは「255」)を最高値に
変換し、画像データ中の最小値(「0」)を最小値に変
換する条件を満足し、かつ所望の色補正や濃度補正が行
われるように中間値領域における変換特性を定めた変換
条件に従って画像データを変換することも提案されてい
るが、この方式では、画像の主要濃度域(主に中間濃度
域)の階調(以下、主階調という)が変化してしまうと
いう別の問題が生ずる。
In order to solve this problem, the maximum value ("255" in 8-bit image data) in the image data is converted into the maximum value, and the minimum value ("0") in the image data is converted into the minimum value. It has been proposed to convert image data according to a conversion condition that defines a conversion characteristic in an intermediate value region so as to satisfy the conditions and perform desired color correction and density correction. Another problem arises in that the gradation in the density range (mainly the intermediate density range) (hereinafter referred to as the main gradation) changes.

【0007】本発明は上記事実を考慮して成されたもの
で、画像の主階調が変化したり、画像中のハイライト部
が白くとんだり、画像中の白地が黒みを帯びる等の画質
低下が生ずることなく色補正や濃度補正を行うことがで
きる画像補正方法、画像補正装置及び記録媒体を得るこ
とが目的である。
The present invention has been made in consideration of the above facts, and has image quality such as a change in main gradation of an image, a highlight portion in an image being white, and a white background in an image being blackish. It is an object of the present invention to provide an image correction method, an image correction apparatus, and a recording medium that can perform color correction and density correction without lowering.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に請求項1記載の発明に係る画像補正方法は、補正対象
画像の色及び濃度の少なくとも一方を補正するための補
正量に基づいて、入力信号のうちの最も明るい点に相当
する値が出力信号のうちの最も明るい点に相当する値に
変換されると共に、入力信号値の対数値の変化に対する
出力信号値の対数値の変化の傾きが、最も明るい点に相
当する信号値近傍の所定領域を除いて略1になるように
変換条件を設定し、補正対象画像の各画素毎の光強度と
の関係が線形な物理量の値を表す画像データを、前記設
定した変換条件に従って変換する。
In order to achieve the above object, an image correction method according to the first aspect of the present invention is based on a correction amount for correcting at least one of a color and a density of an image to be corrected. The value corresponding to the brightest point in the input signal is converted to the value corresponding to the brightest point in the output signal, and the slope of the change in the logarithmic value of the output signal value with respect to the change in the logarithmic value of the input signal value. Is set to be approximately 1 except for a predetermined area near the signal value corresponding to the brightest point, and the relationship with the light intensity of each pixel of the correction target image represents a linear physical value. The image data is converted according to the set conversion conditions.

【0009】請求項1記載の発明では、補正対象画像の
色及び濃度の少なくとも一方を補正するための補正量に
基づいて、入力信号のうちの最も明るい点に相当する値
が出力信号のうちの最も明るい点に相当する値に変換さ
れると共に、入力信号値の対数値の変化に対する出力信
号値の対数値の変化の傾きが、最も明るい点に相当する
信号値近傍の所定領域を除いて略1になるように変換条
件を設定している。上記の変換条件は、具体的には、例
えば一方の座標軸に入力信号値の対数値をとり、他方の
座標軸に出力信号値の対数値をとった二次元の両対数チ
ャート(両対数プロット)上で、所定領域外の領域にお
ける変換曲線(直線)を傾きが略1になるように設定す
ると共に該変換曲線を傾きが変化しないように補正量に
応じた移動量だけ平行移動させ、所定領域内の変換曲線
を、所定領域外の変換曲線と滑らかに繋がり、かつ入力
信号のうちの最も明るい点に相当する値(例えば入力信
号が8ビットのデータであれば0又は255)が出力信
号のうちの最も明るい点に相当する値(例えば出力信号
が8ビットのデータであれば0又は255)に変換され
るように定めることで設定することができる。なお、補
正対象画像の色及び濃度の少なくとも一方を補正するた
めの補正量は、例えば画像データから演算によって求め
ることができる。
According to the first aspect of the present invention, a value corresponding to the brightest point in the input signal is determined based on the correction amount for correcting at least one of the color and the density of the image to be corrected. In addition to being converted to the value corresponding to the brightest point, the slope of the change in the logarithmic value of the output signal value with respect to the change in the logarithmic value of the input signal value is substantially the same except for a predetermined region near the signal value corresponding to the brightest point. The conversion condition is set to be 1. Specifically, the above conversion condition is, for example, a two-dimensional bilogarithmic chart (bilogarithmic plot) in which the logarithmic value of the input signal value is taken on one coordinate axis and the logarithmic value of the output signal value is taken on the other coordinate axis. Then, a conversion curve (straight line) in an area outside the predetermined area is set so that the inclination is substantially 1, and the conversion curve is translated by a movement amount corresponding to the correction amount so that the inclination does not change. Is smoothly connected to the conversion curve outside the predetermined area, and the value corresponding to the brightest point of the input signal (for example, 0 or 255 when the input signal is 8-bit data) is the output signal. (For example, if the output signal is 8-bit data, 0 or 255) can be set. Note that the correction amount for correcting at least one of the color and the density of the correction target image can be obtained, for example, by calculation from the image data.

【0010】一般に、人間の感覚的強度は刺激の物理的
強度の対数に比例するので、上記のように、入力信号値
の対数値の変化に対する出力信号値の対数値の変化の傾
きが所定領域を除いて略1になるように変換条件を設定
することにより、該変換条件による画像データの変換
(すなわち補正対象画像の色及び濃度の少なくとも一方
の補正)を行ったとしても、変換後の画像データが表す
画像の主階調が変化したと認識されることを防止するこ
とができる。また、入力信号のうちの最も明るい点に相
当する値が出力信号のうちの最も明るい点に相当する値
に変換されるように変換条件を設定するので、変換後の
画像データが表す画像中のハイライト部が白くとんだ
り、前記画像中の白地が黒みを帯びることも回避でき
る。
Generally, since the human sensory intensity is proportional to the logarithm of the physical intensity of the stimulus, as described above, the slope of the change in the logarithmic value of the output signal value with respect to the change in the logarithmic value of the input signal value is within a predetermined range. By setting the conversion condition so as to be approximately 1 except for the above, even if the conversion of the image data according to the conversion condition (that is, at least one of the color and the density of the correction target image) is performed, the converted image It is possible to prevent the main gradation of the image represented by the data from being recognized as having changed. Further, since the conversion condition is set so that the value corresponding to the brightest point of the input signal is converted to the value corresponding to the brightest point of the output signal, the conversion condition in the image represented by the image data after conversion is set. It is also possible to avoid that the highlight portion becomes white and the white background in the image becomes blackish.

【0011】そして請求項1の発明では、補正対象画像
の各画素毎の光強度との関係が線形な物理量(光強度そ
のものであってもよいし、光反射率等であってもよい)
の値を表す画像データを、上記のようにして設定した変
換条件に従って変換するので、画像の主階調が変化した
り、画像中のハイライト部が白くとんだり、画像中の白
地が黒みを帯びる等の画質低下が生ずることなく色補正
や濃度補正を行うことができる。
According to the first aspect of the present invention, the relationship between the light intensity of each pixel of the image to be corrected and the light intensity is a linear physical quantity (the light intensity itself may be the light intensity, the light reflectance may be the same).
Is converted according to the conversion conditions set as described above, so that the main gradation of the image changes, the highlight portion in the image becomes white, and the white background in the image becomes black. Color correction and density correction can be performed without causing image quality deterioration such as tinge.

【0012】なお、補正対象画像の各画素毎の物理量と
して、光強度との関係が非線形な物理量の値を表す画像
データが入力される場合にも、該画像データを、本発明
に係る画像データ(補正対象画像の各画素毎の光強度と
の関係が線形な物理量の値を表す画像データ)に変換
し、変換後の画像データを、本発明に係る変換条件に従
って変換することにより、画像中のハイライト部が白く
とんだり、画像中の白地が黒みを帯びる等の画質低下が
生ずることなく色補正や濃度補正を行うことができる。
When image data representing a value of a physical quantity having a non-linear relationship with light intensity is input as a physical quantity for each pixel of an image to be corrected, the image data is also used as an image data according to the present invention. (Image data representing a linear physical value in relation to the light intensity of each pixel of the correction target image), and converting the converted image data in accordance with the conversion conditions according to the present invention. The color correction and the density correction can be performed without lowering the image quality, such as that the highlight portion becomes white or the white background in the image becomes blackish.

【0013】ところで本願発明者は、本発明に係る変換
条件における所定領域(入力信号値の対数値の変化に対
する出力信号値の対数値の変化の傾きを略1としない領
域)を種々の大きさに変更して複数種の変換条件を各々
設定し、各変換条件を用いて画像データの変換を各々行
い、変換後の画像データが表す画像の画質を評価する実
験を行った。その結果、入力信号値を0から1の数値範
囲内に規格化したときに、最も明るい点に相当する信号
値から、入力信号値の対数値で略0.5以内(但し常用
対数値)の範囲に相当する領域を所定領域とすれば、視
覚的に好ましい画質となるとの知見を得た。
By the way, the inventor of the present application has made the predetermined area (the area where the slope of the change of the logarithmic value of the output signal value with respect to the change of the logarithmic value of the input signal value is not substantially 1) in the conversion condition according to the present invention various sizes. , A plurality of types of conversion conditions were set, image data was converted using each conversion condition, and an experiment was performed to evaluate the image quality of the image represented by the converted image data. As a result, when the input signal value is normalized within the numerical range of 0 to 1, the logarithmic value of the input signal value is within approximately 0.5 (however, a common logarithmic value) from the signal value corresponding to the brightest point. It has been found that if the area corresponding to the range is set as the predetermined area, visually favorable image quality is obtained.

【0014】このため、請求項2記載の発明は、請求項
1の発明において、所定領域は、入力信号値を0から1
の範囲内に規格化したときに、最も明るい点に相当する
信号値から、入力信号値の対数値で略0.5以内の範囲
に相当する領域であることを特徴としている。所定領域
の範囲を上記のように定めることにより、変換後の画像
データが表す画像の画質を、視覚的に好ましい画質にす
ることができる。
Therefore, according to a second aspect of the present invention, in the first aspect of the present invention, the predetermined area is set such that the input signal value is from 0 to 1
Are standardized within the range of from the signal value corresponding to the brightest point to the logarithmic value of the input signal value within a range of approximately 0.5 or less. By defining the range of the predetermined area as described above, the image quality of the image represented by the converted image data can be visually enhanced.

【0015】請求項3記載の発明に係る画像補正装置
は、補正対象画像の色及び濃度の少なくとも一方を補正
するための補正量に基づいて、入力信号のうちの最も明
るい点に相当する値が出力信号のうちの最も明るい点に
相当する値に変換されると共に、入力信号値の対数値の
変化に対する出力信号値の対数値の変化の傾きが、最も
明るい点に相当する信号値近傍の所定領域を除いて略1
になるように変換条件を設定する設定手段と、補正対象
画像の各画素毎の光強度との関係が線形な物理量の値を
表す画像データを、前記設定手段によって設定された変
換条件に従って変換する変換手段と、を含んで構成され
ている。
According to a third aspect of the present invention, a value corresponding to the brightest point in the input signal is determined based on a correction amount for correcting at least one of the color and the density of the image to be corrected. The output signal is converted to a value corresponding to the brightest point, and the slope of the change in the logarithmic value of the output signal value with respect to the change in the logarithmic value of the input signal value is a predetermined value near the signal value corresponding to the brightest point. Approx. 1 excluding area
Setting means for setting a conversion condition so that the image data representing a value of a physical quantity having a linear relationship with the light intensity of each pixel of the image to be corrected is converted in accordance with the conversion condition set by the setting means. And conversion means.

【0016】請求項3記載の発明では、設定手段によ
り、補正対象画像の色及び濃度の少なくとも一方を補正
するための補正量に基づいて、入力信号のうちの最も明
るい点に相当する値が出力信号のうちの最も明るい点に
相当する値に変換されると共に、入力信号値の対数値の
変化に対する出力信号値の対数値の変化の傾きが、最も
明るい点に相当する信号値近傍の所定領域を除いて略1
になるように変換条件が設定され、補正対象画像の各画
素毎の光強度との関係が線形な物理量の値を表す画像デ
ータが、前記設定手段によって設定された変換条件に従
って変換手段によって変換されるので、請求項1の発明
と同様に、画像の主階調が変化したり、画像中のハイラ
イト部が白くとんだり、画像中の白地が黒みを帯びる等
の画質低下が生ずることなく色補正や濃度補正を行うこ
とができる。
According to the third aspect of the present invention, the value corresponding to the brightest point in the input signal is output by the setting means based on the correction amount for correcting at least one of the color and the density of the image to be corrected. The signal is converted into a value corresponding to the brightest point of the signal, and the slope of the change in the logarithmic value of the output signal value with respect to the change in the logarithmic value of the input signal value is a predetermined area near the signal value corresponding to the brightest point. Approximately 1 except
The conversion condition is set so that the image data representing the value of the physical quantity having a linear relationship with the light intensity of each pixel of the correction target image is converted by the conversion unit according to the conversion condition set by the setting unit. Therefore, in the same manner as in the first aspect of the present invention, there is no change in image quality such as a change in the main gradation of the image, a highlight portion in the image becoming white, and a white background in the image becoming blackish. Correction and density correction can be performed.

【0017】請求項4記載の発明に係る記録媒体は、補
正対象画像の色及び濃度の少なくとも一方を補正するた
めの補正量に基づいて、入力信号のうちの最も明るい点
に相当する値が出力信号のうちの最も明るい点に相当す
る値に変換されると共に、入力信号値の対数値の変化に
対する出力信号値の対数値の変化の傾きが、最も明るい
点に相当する信号値近傍の所定領域を除いて略1になる
ように変換条件を設定する第1のステップ、補正対象画
像の各画素毎の光強度との関係が線形な物理量の値を表
す画像データを、前記設定した変換条件に従って変換す
る第2のステップを含む処理をコンピュータに実行させ
るためのプログラムが記録されている。
According to a fourth aspect of the present invention, a value corresponding to the brightest point in the input signal is output based on the correction amount for correcting at least one of the color and the density of the image to be corrected. The signal is converted into a value corresponding to the brightest point of the signal, and the slope of the change in the logarithmic value of the output signal value with respect to the change in the logarithmic value of the input signal value is a predetermined area near the signal value corresponding to the brightest point. A first step of setting a conversion condition so as to be approximately 1 except for the step of converting image data representing a value of a physical quantity having a linear relationship with the light intensity of each pixel of the correction target image according to the set conversion condition. A program for causing a computer to execute a process including the second step of conversion is recorded.

【0018】請求項4記載の発明に係る記録媒体には、
上記の第1のステップ及び第2のステップを含む処理、
すなわち請求項1の発明に係る画像補正方法に係る処理
をコンピュータに実行させるためのプログラムが記録さ
れているので、コンピュータが前記記録媒体に記録され
ているプログラムを読み出して実行することにより、請
求項1の発明と同様に、画像の主階調が変化したり、画
像中のハイライト部が白くとんだり、画像中の白地が黒
みを帯びる等の画質低下が生ずることなく色補正や濃度
補正を行うことができる。
The recording medium according to the fourth aspect of the present invention includes:
A process including the first step and the second step,
That is, since a program for causing a computer to execute the processing according to the image correction method according to the first aspect of the present invention is recorded, the computer reads out and executes the program recorded on the recording medium. In the same manner as in the first aspect of the present invention, color correction and density correction can be performed without causing image quality deterioration such as a change in the main gradation of the image, a highlight portion in the image becoming white, and a white background in the image becoming blackish. It can be carried out.

【0019】[0019]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態の一例を詳細に説明する。図1には、本実施形態
に係る画像処理システム10が示されている。画像処理
システム10は、写真フィルム(例えばネガフィルムや
リバーサルフィルム)等の写真感光材料(以下単に写真
フィルムと称する)に記録されているフィルム画像(被
写体を撮影後、現像処理されることで可視化されたネガ
画像又はポジ画像)を読み取って印画紙に記録すること
を高速で処理可能に構成されたデジタルラボシステム1
2に、画像データ交換機14及びインタフェース(I/
F)回路16を介して入力装置群18及び出力装置群2
0が接続されて構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings. FIG. 1 shows an image processing system 10 according to the present embodiment. The image processing system 10 is a film image recorded on a photographic material (hereinafter simply referred to as a photographic film) such as a photographic film (for example, a negative film or a reversal film). Digital lab system 1 configured to be able to process at a high speed reading and recording on a photographic paper
2, the image data exchange 14 and the interface (I /
F) The input device group 18 and the output device group 2 via the circuit 16
0 is connected.

【0020】入力装置群18は、画像データ交換機14
に画像データを入力する各種の入力装置で構成されてい
る。入力装置群18を構成する入力装置としては、例え
ばフロッピーディスク(FD)等の磁気ディスクやCD
−R等の光ディスク、光磁気ディスク(MO)、デジタ
ルスチルカメラ(DSC:以下、単に「デジタルカメ
ラ」と称する)に装填可能なPCカードやICカード
(以下、これらを「デジタルカメラカード」と総称す
る)等の各情報記憶媒体の何れかがセットされ、セット
された情報記憶媒体に記憶されている画像データを読み
出して入力する情報記憶媒体読出装置22(図2参照)
や、通信回線を介して接続された他の情報処理機器から
送信された画像データを受信して入力する通信制御装置
(図示省略)等を適用することができる。
The input device group 18 includes the image data exchange 14
, And various input devices for inputting image data. The input devices constituting the input device group 18 include, for example, a magnetic disk such as a floppy disk (FD) and a CD.
-R and other optical discs, magneto-optical discs (MO), digital still cameras (DSC: hereinafter simply referred to as "digital cameras"), and PC cards and IC cards (hereinafter collectively referred to as "digital camera cards") ) Is set, and the information storage medium reading device 22 (see FIG. 2) for reading and inputting image data stored in the set information storage medium.
Alternatively, a communication control device (not shown) that receives and inputs image data transmitted from another information processing device connected via a communication line can be applied.

【0021】また出力装置群20は、画像データ交換機
14から転送された出力用画像データに基づいて画像出
力処理を行う各種の出力装置で構成されている。出力装
置群20を構成する出力装置としては、例えば画像出力
処理として情報記憶媒体(例えばCD−R)への画像デ
ータの書き込みを行う情報記憶媒体書込装置(例とし
て、情報記憶媒体としてのCD−Rへの画像データの書
き込みを行うCD−R書込装置24を図2に示す)、画
像出力処理としてディスプレイ等の表示手段への画像の
表示を行う画像表示装置、画像出力処理として通信回線
を介して接続された他の情報処理機器への画像データの
送信を行う通信制御装置等を適用することができる。
The output device group 20 includes various output devices that perform image output processing based on the output image data transferred from the image data exchange 14. An output device constituting the output device group 20 is, for example, an information storage medium writing device (for example, a CD as an information storage medium) that writes image data to an information storage medium (for example, a CD-R) as an image output process. 2 shows a CD-R writer 24 for writing image data to R), an image display device for displaying an image on a display means such as a display as an image output process, and a communication line as an image output process. A communication control device or the like for transmitting image data to another information processing device connected via the communication device can be applied.

【0022】ところで、入力装置群18を構成する各入
力装置から入力される画像データのファイル構造は一定
ではなく、互いに異なっていることが多い。このためI
/F回路16は、入力装置から画像データが入力される
と、入力された画像データのファイル構造を判断し、所
定のファイル構造に変換して画像データ交換機14に入
力する。また出力装置は、外部から転送される画像デー
タのファイル構造を予め規定しているが、このファイル
構造も出力装置群20を構成する各出力装置毎に異なっ
ていることが多い。このためI/F回路16は、画像デ
ータ交換機14から出力装置へ画像データが転送される
場合には、転送される画像データのファイル構造を転送
先の出力装置に対応するファイル構造に変換する。
By the way, the file structure of the image data input from each of the input devices constituting the input device group 18 is not constant and is often different from each other. Therefore I
When image data is input from the input device, the / F circuit 16 determines the file structure of the input image data, converts the input image data into a predetermined file structure, and inputs the file structure to the image data exchange 14. The output device pre-defines the file structure of image data transferred from the outside, but this file structure is often different for each output device constituting the output device group 20. Therefore, when the image data is transferred from the image data exchange 14 to the output device, the I / F circuit 16 converts the file structure of the transferred image data into a file structure corresponding to the destination output device.

【0023】デジタルラボシステム12は、スキャナ3
0、画像処理装置32及びプリンタ34が直列に接続さ
れて構成されている。スキャナ30はエリアCCDセン
サ等の読取センサを備えており、該読取センサにより写
真フィルムに記録されているフィルム画像の読み取りを
行う。フィルム画像の読み取りによって得られた画像デ
ータは画像処理装置32へ出力され、プリンタ34によ
る画像出力処理(印画紙への画像の記録)に用いられる
が、プリンタ34以外の出力装置による画像出力処理に
用いることも指示された画像データについては画像交換
機14へも出力される。
The digital lab system 12 includes the scanner 3
0, an image processing device 32 and a printer 34 are connected in series. The scanner 30 has a reading sensor such as an area CCD sensor, and reads a film image recorded on a photographic film by the reading sensor. The image data obtained by reading the film image is output to the image processing device 32 and used for image output processing (recording of an image on photographic paper) by the printer 34, but is used for image output processing by an output device other than the printer 34. The image data instructed to be used is also output to the image exchange 14.

【0024】画像処理装置32は、入力された画像デー
タに対し、印画紙に適正な画質で画像を露光記録するた
めの画像処理として、画素密度変換、色変換、画像の超
低周波輝度成分の階調を圧縮するハイパートーン処理、
粒状を抑制しながらシャープネスを強調するハイパーシ
ャープネス処理、特殊画像処理(例えばLF(レンズ付
きフィルム)によって撮影記録されたフィルム画像に対
するLFのレンズの収差に起因する画質劣化の補正や赤
目の補正等)等の各種の画像処理を行う各種の画像処理
回路(図示省略)を備えている。画像処理装置32は各
画像処理回路で行われる画像処理の処理条件を演算す
る。各画像処理回路は、画像データに対し、演算された
処理条件に従って各種の画像処理を行い、画像処理後の
画像データは記録用画像データとしてプリンタ34へ出
力される。
The image processing device 32 performs pixel density conversion, color conversion, and super-low-frequency luminance component conversion on the input image data as image processing for exposing and recording an image on photographic paper with appropriate image quality. Hyper tone processing to compress gradation,
Hyper-sharpness processing for enhancing sharpness while suppressing graininess, special image processing (for example, correction of image quality deterioration or red-eye correction due to LF lens aberration for film images captured and recorded by LF (film with lens)) And various image processing circuits (not shown) for performing various image processing. The image processing device 32 calculates processing conditions for image processing performed by each image processing circuit. Each image processing circuit performs various types of image processing on the image data according to the calculated processing conditions, and the image data after the image processing is output to the printer 34 as recording image data.

【0025】プリンタ34は、R,G,Bのレーザ光源
と、該レーザ光源の作動を制御するレーザドライバを備
えており(図示省略)、レーザ光源から射出されるR,
G,Bのレーザ光を、入力された記録用画像データによ
って変調し、変調したレーザ光を印画紙上で走査させ
る。これにより、印画紙に画像が露光記録される。画像
が露光記録された印画紙は、図示しないプロセッサ部へ
送られて発色現像、漂白定着、水洗、乾燥の各処理が施
され、印画紙に露光記録された画像が可視化される。な
お、画像データ交換機14からプリンタ34に転送され
た画像データについても、上記と同様にレーザ光の変
調、すなわち印画紙への画像の露光記録に用いられる。
The printer 34 includes R, G, and B laser light sources and a laser driver (not shown) for controlling the operation of the laser light sources (not shown).
The G and B laser beams are modulated by the input image data for recording, and the modulated laser beams are scanned on photographic paper. Thus, the image is exposed and recorded on the photographic paper. The photographic paper on which the image has been exposed and recorded is sent to a processor unit (not shown) and subjected to color development, bleach-fixing, washing and drying, and the image recorded and exposed on the photographic paper is visualized. The image data transferred from the image data exchange 14 to the printer 34 is also used for modulating the laser beam, that is, for exposing and recording the image on photographic paper in the same manner as described above.

【0026】画像データ交換機14は、図1に示すよう
に、CPU78、ROM42、RAM44、入出力ポー
ト46A、46Bがバス48を介して互いに接続された
構成を含んだパーソナルコンピュータやワークステーシ
ョン等の情報処理装置と、大容量の情報記憶媒体(ハー
ドディスク)を内蔵しバス48に接続されたハードディ
スク装置50と、装填されたCD−ROM52からプロ
グラム等を読み出すCD−ROMドライバ54と、を備
えている。入出力ポート46Aにはデジタルラボシステ
ム12のスキャナ30及びプリンタ34が接続されてお
り、入出力ポート46BにはI/F回路16を介して入
力装置群18及び出力装置群20が接続されている。
As shown in FIG. 1, the image data exchange 14 has a CPU 78, a ROM 42, a RAM 44, and input / output ports 46A and 46B connected to each other via a bus 48. It includes a processing device, a hard disk device 50 containing a large-capacity information storage medium (hard disk) and connected to a bus 48, and a CD-ROM driver 54 for reading programs and the like from a loaded CD-ROM 52. The scanner 30 and the printer 34 of the digital lab system 12 are connected to the input / output port 46A, and the input device group 18 and the output device group 20 are connected to the input / output port 46B via the I / F circuit 16. .

【0027】画像データ交換機14は、スキャナ30や
入力装置群18の各入力装置から入力された画像データ
をハードディスク装置50の内蔵ハードディスクに一時
記憶させる。従って、ハードディスク装置50の内蔵ハ
ードディスクは、画像データ交換機14に入力された画
像データを蓄積記憶するスプール60(図2参照)とし
て機能する。また、画像データ交換機14は、入力され
た画像データに対し、スプール60に一時記憶する前に
画像データの属性等を表すプロパティ情報を付加した後
にスプール60に一時記憶させる。
The image data exchange 14 temporarily stores the image data input from the scanner 30 and the input devices of the input device group 18 in the internal hard disk of the hard disk device 50. Therefore, the built-in hard disk of the hard disk device 50 functions as a spool 60 (see FIG. 2) for storing image data input to the image data exchanger 14. Further, the image data exchanger 14 temporarily stores the input image data in the spool 60 after adding property information indicating an attribute or the like of the image data before temporarily storing the image data in the spool 60.

【0028】また、ハードディスク装置50の内蔵ハー
ドディスクには、画像データに対して各種の画像処理を
行うための各種の画像処理プログラムが記憶されてお
り、画像データ交換機14のCPU40は、必要に応じ
て所定のタイミング(スプール60に画像データを一時
記憶する前、及びスプール60に一時記憶した画像デー
タを読み出した後の少なくとも一方のタイミング)でこ
れらのプログラムを選択的に実行し、画像データに対し
て各種の画像処理を行う。このように、画像データ交換
機14は各種の画像処理を行う画像処理エンジン62
(図2参照)としての機能も備えている。
The built-in hard disk of the hard disk device 50 stores various image processing programs for performing various types of image processing on image data. These programs are selectively executed at a predetermined timing (at least one of timing before temporarily storing the image data in the spool 60 and after reading the image data temporarily stored in the spool 60), and Performs various image processing. As described above, the image data exchange 14 is an image processing engine 62 that performs various image processing.
(See FIG. 2).

【0029】本実施形態では、画像データに対する画像
処理として、図2にも示すように、画素密度(画素数)
の異なる画像データに変換する「画素密度変換」、異な
る色空間の画像データに変換する「色空間変換」、「デ
ータ圧縮(又は解凍)」、FlashPixと称する所定のフォ
ーマット(互いに異なる複数種の解像度(画素密度)の
画像データを含み、かつ各解像度の画像データが各々複
数個の小領域(タイルと称する)に分割されたフォーマ
ット)の画像データへの変換(又は逆変換)を行う「Fl
ashPixフォーマット化」、デジタルカメラによる撮像に
よって得られた画像データ用の画質向上処理である「D
SC set up 」、画像の鮮鋭度を向上させる「シャープ
ネス補正」、画像データの不正複製等を防止するために
所定の電子透かしデータを埋め込む「電子透かし」、複
数種の画像データを合成して単一の画像の画像データ
(例えば年賀状等を作成するための画像データ)を生成
する「Composite 」等の各種の画像処理が用意されてい
る。
In the present embodiment, as the image processing for the image data, as shown in FIG.
"Pixel density conversion" for converting image data into different color data, "color space conversion" for converting to image data in a different color space, "data compression (or decompression)", a predetermined format called FlashPix (a plurality of different resolutions different from each other) (Fl) that performs conversion (or inverse conversion) into image data that includes (pixel density) image data and that is obtained by dividing image data of each resolution into a plurality of small areas (called tiles).
ashPix Formatting ”,“ D ”which is image quality improvement processing for image data obtained by imaging with a digital camera.
"SC set up", "sharpness correction" to improve image sharpness, "digital watermark" for embedding predetermined digital watermark data to prevent unauthorized duplication of image data, etc. Various image processes such as "Composite" for generating image data of one image (for example, image data for creating a New Year's card, etc.) are prepared.

【0030】上記の各種画像処理のうち「DSC set u
p 」は、本発明に係る画像補正方法が適用された色補正
・濃度補正処理(詳細は後述)と、画像の色彩を鮮やか
にするための色変換処理と、から構成されている。色補
正・濃度補正処理を画像データ交換機14のCPU40
で実行させるための色補正・濃度補正プログラムは、そ
の他の画像処理をCPU40で実行させるためのプログ
ラムと共に、当初は、CD−ROM52に記憶されてい
る。CD−ROM52がCD−ROMドライバ54に装
填され、CD−ROM52から画像データ交換機14へ
のプログラムの移入(インストール)が指示されると、
CD−ROMドライバ54によってCD−ROM52か
ら色補正・濃度補正プログラムやその他のプログラムが
読み出され、ハードディスク装置50の内蔵ハードディ
スクに記憶される。
Among the above various image processing, "DSC set u
“p” includes a color correction / density correction process (to be described in detail later) to which the image correction method according to the present invention is applied, and a color conversion process for increasing the color of an image. CPU 40 of image data exchange 14 performs color correction and density correction processing
The color correction / density correction program to be executed by the CPU 40 is initially stored in the CD-ROM 52 together with the program for causing the CPU 40 to execute other image processing. When the CD-ROM 52 is loaded into the CD-ROM driver 54 and transfer (install) of a program from the CD-ROM 52 to the image data exchange 14 is instructed,
A color correction / density correction program and other programs are read from the CD-ROM 52 by the CD-ROM driver 54 and stored in the internal hard disk of the hard disk device 50.

【0031】そして、色補正・濃度補正処理を実行すべ
きタイミングが到来すると、ハードディスク装置50の
内蔵ハードディスクから色補正・濃度補正プログラムが
読み出されてRAM44に記憶され(画像データ交換機
14の電源投入時に各画像処理のプログラムを読み出し
てRAM44に記憶しておくようにしてもよい)、色補
正・濃度補正プログラムが画像データ交換機14のCP
U40によって実行される。これにより、画像データ交
換機14は本発明に係る画像補正装置として機能する。
なお、他の画像処理のプログラムについても上記と同様
にして読み出されて実行される。
Then, when it is time to execute the color correction / density correction processing, the color correction / density correction program is read from the internal hard disk of the hard disk device 50 and stored in the RAM 44 (when the power of the image data exchange 14 is turned on). At this time, the program for each image processing may be read and stored in the RAM 44).
Performed by U40. Thereby, the image data exchange 14 functions as an image correction device according to the present invention.
Note that other image processing programs are read and executed in the same manner as described above.

【0032】このように、色補正・濃度補正プログラム
やその他の画像処理のプログラムを記憶しているCD−
ROM52及びハードディスク装置50の内蔵ハードデ
ィスクは本発明の記録媒体に対応している。
As described above, the CD-ROM storing the color correction / density correction program and other image processing programs is stored.
The ROM 52 and the internal hard disk of the hard disk device 50 correspond to the recording medium of the present invention.

【0033】次に本実施形態の作用として、画像データ
交換機14に情報記憶媒体読出装置22(及びCD−R
書込装置24)が接続されている態様(図2参照)を例
に、情報記憶媒体読出装置22からデジタルラボシステ
ム12のプリンタ34への画像データの転送について説
明する。
Next, as an operation of the present embodiment, the information storage medium reading device 22 (and the CD-R
The transfer of image data from the information storage medium reading device 22 to the printer 34 of the digital lab system 12 will be described with an example in which the writing device 24) is connected (see FIG. 2).

【0034】画像処理システム10では、ユーザが所有
しているパーソナルコンピュータ等の情報処理装置で加
工された画像データを記憶したFDやMOが持ち込まれ
てプリントの作成が依頼されたり、デジタルカメラによ
る撮像によって得られた画像データを記憶したデジタル
カメラカードが持ち込まれてプリントの作成が依頼され
たり、或いはスキャナ30から画像データ交換機14、
CD−R書込装置24を経て転送された画像データが書
き込まれたCD−Rが持ち込まれてプリントの作成(焼
き増し)が依頼されることがある。
In the image processing system 10, an FD or MO storing image data processed by an information processing device such as a personal computer owned by the user is brought in and requested to make a print, or an image is taken by a digital camera. The digital camera card storing the image data obtained by the above is brought in and a print creation request is made, or the image data exchange 14,
There is a case where a CD-R on which image data transferred via the CD-R writing device 24 is written is brought in and a request for print creation (printing) is made.

【0035】この場合、ユーザから持ち込まれた情報記
憶媒体が対応する情報記憶媒体読出装置22(FDドラ
イブ、CDドライブ、MOドライブ、カードリーダ等の
何れか)にセットされ、情報記憶媒体がセットされた情
報記憶媒体読出装置22は、セットされた情報記憶媒体
から処理対象の画像データを読み出した後に、読み出し
た画像データを、処理対象の画像データの各種の属性を
表す属性情報、及び画像データの出力先がプリンタ34
であることを表す情報と共に画像データ交換機14へ転
送する。
In this case, the information storage medium brought in by the user is set in the corresponding information storage medium reading device 22 (any one of FD drive, CD drive, MO drive, card reader, etc.), and the information storage medium is set. The information storage medium reading device 22 reads out the image data to be processed from the set information storage medium, and then converts the read image data into attribute information representing various attributes of the image data to be processed, and the attribute information of the image data. Output destination is printer 34
Is transferred to the image data exchange 14 together with the information indicating that

【0036】情報記憶媒体読出装置22から転送された
画像データは、I/F回路16で所定のファイル構造に
変換された後に画像データ交換機14に入力される。画
像データ交換機14の画像処理エンジン62は、画像デ
ータの入力元が情報記憶媒体読出装置22であり、画像
データと共に入力された画像データの出力先を表す情報
から、入力された処理対象の画像データがプリンタ34
へ出力すべき画像データであることを認識すると、処理
対象の画像データがスプール60に記憶される前に、入
力元(情報記憶媒体読出装置22の種類)に依存する処
理対象の画像データの属性と出力先(プリンタ34)と
に応じた最適な画像処理を行う。
The image data transferred from the information storage medium reading device 22 is input to the image data exchange 14 after being converted into a predetermined file structure by the I / F circuit 16. The image processing engine 62 of the image data exchange 14 is configured such that the input source of the image data is the information storage medium reading device 22 and the information indicating the output destination of the image data input together with the image data is used to input the image data to be processed. Is the printer 34
When the image data to be output to the spool 60 is recognized, the attribute of the image data to be processed depends on the input source (the type of the information storage medium reading device 22) before the image data to be processed is stored in the spool 60. And optimal image processing according to the output destination (printer 34).

【0037】ここで、入力元の情報記憶媒体読出装置2
2がデジタルカメラカードからの画像データの読み出し
を行う装置(カードリーダ)である場合には、画像処理
エンジン92は、入力された画像データはデジタルカメ
ラによる撮像によって生成されてデジタルカメラカード
に記憶(この場合、データ圧縮されて記憶される)され
た画像データであると判断し、圧縮された画像データの
解凍、印画紙への画像の記録に適した解像度(画素密
度)の画像データへの変換、色補正・濃度補正処理を含
む「DSC set up 」、画像の鮮鋭度を向上させる「シ
ャープネス補正」等の画像処理を行う。
Here, the input source information storage medium reading device 2
If the device 2 is a device (card reader) that reads out image data from a digital camera card, the image processing engine 92 generates the input image data by imaging with a digital camera and stores the image data in the digital camera card ( In this case, it is determined that the image data is compressed (stored after being compressed), and the compressed image data is decompressed and converted into image data having a resolution (pixel density) suitable for recording the image on photographic paper. And image processing such as "DSC set up" including color correction / density correction processing and "sharpness correction" for improving image sharpness.

【0038】以下、処理対象の画像データが、デジタル
カメラカードから読み出された画像データ(各画素毎に
R,G,B各成分色(各チャンネル)の値が所定の変換
特性に従ってコード化された画像データ(R,G,B))
である場合に、画像処理エンジン62(画像データ交換
機14のCPU40)が色補正・濃度補正プログラムを
実行することによって実施される色補正・濃度補正処理
について、図3のフローチャートを参照して説明する。
Hereinafter, the image data to be processed is obtained by encoding the image data read from the digital camera card (the values of the R, G, and B component colors (each channel) for each pixel according to predetermined conversion characteristics). Image data (R, G, B))
, The color correction / density correction processing executed by the image processing engine 62 (the CPU 40 of the image data exchange 14) executing the color correction / density correction program will be described with reference to the flowchart of FIG. .

【0039】すなわち、ステップ100では画像データ
(R,G,B)をサンプリングし、次のステップ102
では、サンプリングによって得られた画像データ(R,
G,B)から色補正のための所定の画像特徴量を演算す
ると共に、濃度補正のための所定の画像特徴量を演算
し、演算した各画像特徴量に基づいて、色補正及び濃度
補正のための補正値(画像データに対するゲイン)を各
チャンネル毎に各々演算する。なお、色補正のためのサ
ンプリング及び画像特徴量の演算と、濃度補正のための
サンプリング及び画像特徴量の演算と、は以下のように
別々に行うことが好ましい。
That is, in step 100, the image data (R, G, B) is sampled, and in the next step 102
Then, the image data (R,
G, B), a predetermined image characteristic amount for color correction is calculated, a predetermined image characteristic amount for density correction is calculated, and color correction and density correction are performed based on the calculated image characteristic amounts. Correction value (gain for image data) is calculated for each channel. It is preferable that the sampling for color correction and the calculation of the image feature quantity and the sampling for density correction and the calculation of the image feature quantity be performed separately as follows.

【0040】例えば濃度補正のためのサンプリング及び
画像特徴量の演算については、画像データ(R,G,
B)から全画素のデータをサンプリングすると共に、M
0 個(例えば100個程度)の画素毎に、平均化サンプ
リング値を各チャンネルについて求める(M0 個の画素
のサンプリング値(デジタルコード値)を被写体反射率
に変換して平均値を演算してデジタルコード値に逆変換
する)ことを繰り返し、濃度補正のための画像特徴量と
して、M0 個の画素毎に求めた各チャンネル毎の平均化
サンプリング値から平均輝度値[v]を演算する。
For example, for the sampling for density correction and the calculation of the image feature amount, the image data (R, G,
B) sampling the data of all the pixels from
For each 0 (for example, about 100) pixels, an averaged sampling value is obtained for each channel. (A sampling value (digital code value) of M 0 pixels is converted into a subject reflectance to calculate an average value. (Inverse conversion to a digital code value) is repeated, and an average luminance value [v] is calculated from the averaged sampling value for each channel obtained for each of the M 0 pixels as an image feature amount for density correction.

【0041】また、例えば色補正のためのサンプリング
及び画像特徴量の演算については、画像データ(R,
G,B)からS0 個(例えば100個程度)の画素毎に
1個の画素の各チャンネルのデータをサンプリング(選
択)することを繰り返し、色補正のための画像特徴量と
して、各チャンネル毎の画像データサンプリング値(デ
ジタルコード値)の平均値[r][g][b]を演算す
る。そして、各チャンネル毎の画像データサンプリング
値の平均値[r][g][b]と、前述の平均輝度値
[v]とに基づいて、色補正及び濃度補正のための各チ
ャンネル毎の補正値(画像データに対するゲインαR
αG ,αB )を演算する。
Further, for example, for sampling for color correction and calculation of image feature amount, image data (R,
G, S 0 or from B) (e.g. the data of each channel of one pixel for each pixel of the approximately 100) repeatedly sampling (selection), as the image feature amount for color correction, for each channel The average values [r], [g], and [b] of the image data sampling values (digital code values) are calculated. Then, based on the average value [r] [g] [b] of the image data sampling value for each channel and the above-described average luminance value [v], correction for each channel for color correction and density correction is performed. Value (gain α R for image data,
α G , α B ) are calculated.

【0042】前述した平均化サンプリング値の演算で
は、1個の平均化サンプリング値の演算に用いられるM
0 個の画素に対応する原画像上の領域の面積が大きいの
で、原画像中の高輝度点や低輝度点の存在する箇所の輝
度の変化が平均化され、中間的な濃度を表す値が平均化
サンプリング値として設定される。このような平均化サ
ンプリング値から求めた平均輝度値[v]を用いて補正
値を演算することで、高精度な濃度補正が可能な補正値
を得ることができる。
In the above-described calculation of the averaged sampling value, M used for calculation of one averaged sampling value is used.
Since the area of the region on the original image corresponding to 0 pixels is large, the change in the luminance at the point where the high luminance point or the low luminance point exists in the original image is averaged, and the value representing the intermediate density becomes It is set as an averaged sampling value. By calculating a correction value using the average luminance value [v] obtained from such an averaged sampling value, it is possible to obtain a correction value that enables highly accurate density correction.

【0043】また、色補正のためのサンプリングによっ
て得られるデータは、サンプリングされた画素に対応す
る原画像上の領域の面積が微小であるので、原画像中の
面積が微小の高輝度点や低輝度点や、その他の原画像中
の中性色であるべき箇所のデータを高い割合で含んでい
る。従って、このようなサンプリング値の各チャンネル
毎の平均値[r][g][b]を用いて補正値を演算す
ることで、高精度な色補正が可能な補正値を得ることが
できる。
In the data obtained by sampling for color correction, since the area of the region on the original image corresponding to the sampled pixel is very small, a high brightness point or a low area where the area in the original image is very small is small. It contains a high percentage of data on luminance points and other locations that should be neutral colors in the original image. Therefore, by calculating a correction value using such an average value [r] [g] [b] of each sampling value for each channel, it is possible to obtain a correction value capable of performing highly accurate color correction.

【0044】次のステップ104では、ステップ102
で各チャンネル毎に演算した補正値(ゲインαR
αG ,αB )に基づいて、補正対象の画像データ(詳し
くは0〜1の範囲内の値をとる被写体反射率値を表す被
写体反射率データ(r,g,b))に対して色補正及び濃
度補正を行うための画像データ変換条件を各チャンネル
毎に設定する。画像データ変換条件は、具体的には、例
えば以下のようにして変換曲線を定めることで設定する
ことができる。
In the next step 104, step 102
The correction value (gain α R ,
Based on α G , α B ), color is applied to image data to be corrected (specifically, object reflectance data (r, g, b) representing an object reflectance value having a value within a range of 0 to 1). Image data conversion conditions for performing correction and density correction are set for each channel. Specifically, the image data conversion condition can be set by defining a conversion curve as described below, for example.

【0045】すなわち、例えば図4(B)に示すよう
に、横軸に変換前の入力画像データ値(入力信号値)の
対数値をとり、縦軸に変換後の出力画像データ値(出力
信号値)の対数値をとった二次元の両対数チャート(な
お図4(B)では、変換対象の被写体反射率データが表
す被写体反射率値(真数値)を各座標軸に沿って付して
いる)上で、所定領域(図4(B)では被写体反射率値
(真数値)で略0.5 〜1の範囲(被写体反射率値の対数
値で略-0.3〜0の範囲))外の領域(すなわち、図4
(B)では被写体反射率値(真数値)で略0.5 以下の範
囲(被写体反射率値の対数値で略-0.3以下の範囲))にお
ける変換曲線(直線)を傾きが1になるように設定する
(例えば入力画像データ値=出力画像データ値の直線
(図4(B)に示すゲイン=1.0 の直線を設定する)。
That is, as shown in FIG. 4B, the logarithm of the input image data value (input signal value) before conversion is plotted on the horizontal axis, and the output image data value (output signal value) after conversion is plotted on the vertical axis. 2), a two-dimensional logarithmic chart taking the logarithmic value of the subject value (note that in FIG. 4B, the subject reflectance value (exact numerical value) represented by the subject reflectance data to be converted is given along each coordinate axis. 4), a region outside a predetermined region (in FIG. 4B, a range of approximately 0.5 to 1 in a subject reflectance value (true numerical value) (a range of approximately −0.3 to 0 in a logarithmic value of the subject reflectance value)). That is, FIG.
In (B), a conversion curve (straight line) in a range of approximately 0.5 or less in object reflectance value (exact numerical value) (in a range of approximately -0.3 or less in logarithmic value of the object reflectance value) is set so that the slope becomes 1. (For example, a straight line of input image data value = output image data value (a straight line of gain = 1.0 shown in FIG. 4B is set).

【0046】次に、設定した変換曲線を、傾きが変化し
ないように、補正値(各チャンネル毎のゲインαR ,α
G ,αB )に応じて横軸と垂直な方向に沿って平行移動
させる。なお変換曲線の移動は、具体的には、ゲインα
の値が小さくなるに従って横軸と接近し、ゲインαの値
が大きくなるに従って横軸と離間するように移動させる
ことができる(図4(B)にはゲインが「1.3 」「1.0
」「0.7 」の各値のときの変換曲線を各々示す)。
Next, the set conversion curve is corrected with correction values (gains α R , α
G , α B ) in parallel along the direction perpendicular to the horizontal axis. The movement of the conversion curve is, specifically, the gain α
Can be moved so as to approach the horizontal axis as the value of becomes smaller, and move away from the horizontal axis as the value of the gain α becomes larger (in FIG. 4B, the gain becomes “1.3” or “1.0”).
Conversion curves at each value of "0.7" are shown.)

【0047】上記のようにして所定領域外の変換曲線を
定めると、次に、所定領域内の変換曲線を、入力画像デ
ータのうち最も明るい点に相当する値(図4(B)では
真数値で1.0 、対数値で0)が、出力画像データのうち
最も明るい点に相当する値(図4(B)では同様に真数
値で1.0 、対数値で0)に変換され、かつ中間部が滑ら
かに変化して所定領域外の変換曲線と滑らかに繋がるよ
うに定める。
After the conversion curve outside the predetermined area is determined as described above, the conversion curve inside the predetermined area is then converted to the value corresponding to the brightest point in the input image data (the true value in FIG. 4B). Is converted to a value corresponding to the brightest point in the output image data (in FIG. 4B, similarly, 1.0 is an exact value and 0 is a logarithmic value), and the middle part is smooth. To be smoothly connected to the conversion curve outside the predetermined area.

【0048】これにより、例として図4(B)にも示す
ように、入力画像データ値のうちの最も明るい点に相当
する値が出力画像データのうちの最も明るい点に相当す
る値に変換されると共に、入力画像データ値の対数値の
変化に対する出力画像データ値の対数値の変化の傾き
が、最も明るい点に相当する画像データ値近傍の所定領
域を除いて1とされ、入力画像データ値をゲインαの値
に応じて出力画像データ値に変換する変換曲線を得るこ
とができる。なお、図4(A)には、図4(B)に示し
た3本の変換曲線を、横軸に変換前の入力画像データ値
の真数値をとり、縦軸に変換後の出力画像データ値の真
数値をとった二次元の両真数チャート上でプロットした
ときの変換曲線を参考までに示している。
As a result, as shown in FIG. 4B, for example, the value corresponding to the brightest point in the input image data values is converted into the value corresponding to the brightest point in the output image data. In addition, the slope of the change in the logarithmic value of the output image data value with respect to the change in the logarithmic value of the input image data value is set to 1 except for a predetermined area near the image data value corresponding to the brightest point. Can be obtained in accordance with the value of the gain α. In FIG. 4A, the three conversion curves shown in FIG. 4B are plotted with the abscissa representing the true value of the input image data value before conversion, and the ordinate representing the output image data after conversion. For reference, a conversion curve when plotted on a two-dimensional antilogarithmic chart in which the exact numerical values are taken is shown.

【0049】そして、各チャンネル毎に上記の変換曲線
の設定を行い、例えば補正対象の画像データに対する変
換(色補正及び濃度補正)をルックアップテーブル(L
UT)によって行うのであれば、各チャンネル毎の変換
曲線に基づいてLUTに設定する変換データを各々定め
ることで画像データ変換条件を設定することができ、例
えば補正対象の画像データに対する変換を関数式に基づ
き演算によって行うのであれば、各チャンネル毎に変換
曲線を近似する関数式を各々生成することで画像データ
変換条件を設定することができる。
Then, the above-mentioned conversion curve is set for each channel. For example, conversion (color correction and density correction) for the image data to be corrected is performed using a look-up table (L).
UT), image data conversion conditions can be set by defining conversion data to be set in the LUT based on a conversion curve for each channel. For example, conversion to image data to be corrected is performed by a functional expression , Image data conversion conditions can be set by generating a function equation that approximates a conversion curve for each channel.

【0050】なお、上記のように画像データ変換条件を
設定することに代えて、ゲインα(補正値)が各値のと
きの画像データ変換条件を予め各々定めて記憶してお
き、ステップ102で求めたゲインα(補正値)に応じ
て、画像データの変換に使用する画像データ変換条件を
選択的に設定するようにしてもよい。また、上記で設定
した画像データ変換条件設定のアルゴリズムは単なる一
例であり、同様の変換条件が得られる任意のアルゴリズ
ムを採用可能であることは言うまでもない。
Instead of setting the image data conversion conditions as described above, the image data conversion conditions when the gain α (correction value) is each value are determined and stored in advance, and at step 102 The image data conversion condition used for the conversion of the image data may be selectively set according to the obtained gain α (correction value). Further, the algorithm for setting the image data conversion conditions set above is merely an example, and it goes without saying that any algorithm that can obtain the same conversion conditions can be adopted.

【0051】ところで、デジタルカメラによる撮影によ
ってデジタルカメラカードに記憶される画像データは、
一般に、国際無線通信諮問委員会709勧告に従い、被
写体反射率X(0〜1の値をとる)を、以下の(3)式
に示す関数F(X)により8ビットのデジタルコード値
(0〜255の値をとる)に割り付けられている(整数
化されてコード化されている)。
By the way, image data stored in a digital camera card by photographing with a digital camera is as follows.
In general, according to the recommendation of the International Radio Communication Advisory Committee 709, the object reflectance X (takes a value of 0 to 1) is calculated using an 8-bit digital code value (0 to 0) by a function F (X) shown in the following equation (3). 255 (takes a value of 255) (coded as an integer).

【0052】[0052]

【数2】 (3)式からも明らかなように、デジタルカメラからの
画像データの各画素毎のデジタルコード値と光強度との
関係は非線形であり、デジタルカメラからの画像データ
に対して直接色補正及び濃度補正を行ったとすると、該
補正に伴って画像の階調が変化する。
(Equation 2) As is apparent from equation (3), the relationship between the digital code value of each pixel of the image data from the digital camera and the light intensity is non-linear, and the color correction and density are directly applied to the image data from the digital camera. If the correction is performed, the gradation of the image changes with the correction.

【0053】このため、次のステップ106では色補正
及び濃度補正に先立ち、画像データ(R,G,B)を、
被写体反射率を表す被写体反射率データ(r,g,b)
へ変換する。この変換は、関数Fの逆変換(関数F-1
よる変換)を行うことで実現することができる(次式参
照)。
For this reason, in the next step 106, the image data (R, G, B) is
Subject reflectance data (r, g, b) representing subject reflectance
Convert to This conversion can be realized by performing an inverse conversion of the function F (conversion by the function F −1 ) (see the following equation).

【0054】 r←F-1(R), g←F-1(G), b←F-1(B) これにより、画像データ(R,G,B)の各画素の各チ
ャンネル毎の値(デジタルコード値)は、光強度との関
係が線形な被写体反射率値に各々変換される。被写体反
射率データ(r,g,b)は本発明に係る「補正対象画
像の各画素毎の光強度との関係が線形な物理量の値を表
す画像データ」に対応している。
R ← F −1 (R), g ← F −1 (G), b ← F −1 (B) Thus, the value of each pixel of the image data (R, G, B) for each channel The (digital code value) is converted into a subject reflectance value having a linear relationship with the light intensity. The subject reflectance data (r, g, b) corresponds to “image data representing a value of a physical quantity whose relationship with the light intensity of each pixel of the correction target image is linear” according to the present invention.

【0055】ステップ108では、先のステップ104
で各チャンネル毎に設定した画像データ変換条件に従っ
て、各チャンネル毎に被写体反射率データ(r,g,
b)を変換する。これにより、被写体反射率データ
(r,g,b)に対し、各チャンネル毎に、ステップ1
02で演算された補正値(ゲインαR ,αG ,αB )に
応じた色補正及び濃度補正が行われる。
In step 108, the previous step 104
According to the image data conversion conditions set for each channel, the subject reflectance data (r, g,
b) is converted. As a result, the object reflectance data (r, g, b) is set in step 1 for each channel.
Color correction and density correction corresponding to the correction values (gains α R , α G , α B ) calculated in 02 are performed.

【0056】画像データ変換条件は、前述のように、入
力画像データ値の対数値の変化に対する出力画像データ
値の対数値の変化の傾きが、所定領域を除いて1になる
ように設定しているので、変換後の画像データが表す画
像を、例えば記録材料への画像の記録等を行って観察し
たとしても、人間の感覚的強度が刺激の物理的強度の対
数に比例することからも明らかなように、変換後の画像
データが表す画像の主階調が変化したと視認されること
はない。
As described above, the image data conversion conditions are set so that the slope of the change in the logarithmic value of the output image data value with respect to the change in the logarithmic value of the input image data value is 1 except for a predetermined area. Therefore, even if the image represented by the converted image data is observed, for example, by recording the image on a recording material, it is clear from the fact that the human sensory intensity is proportional to the logarithm of the physical intensity of the stimulus. In this way, it is not visually recognized that the main gradation of the image represented by the converted image data has changed.

【0057】また、画像データ変換条件は、入力画像デ
ータのうちの最も明るい点に相当する値が出力画像デー
タのうちの最も明るい点に相当する値に変換されるよう
に設定しているので、変換後の画像データが表す画像中
のハイライト部が白くとんだり、前記画像中の白地が黒
みを帯びることもない。更に、本実施形態に係る画像デ
ータ変換条件は、被写体反射率値(真数値)で略0.5 〜
1の範囲(被写体反射率値の対数値で略-0.3〜0の範
囲))に相当する領域を所定領域としており、請求項2に
記載の所定領域の数値範囲内に含まれている。このた
め、後述する実験結果からも明らかなように、変換後の
画像データが表す画像を視覚的に好ましい画像とするこ
とができる。
The image data conversion condition is set so that the value corresponding to the brightest point in the input image data is converted into the value corresponding to the brightest point in the output image data. The highlighted portion in the image represented by the converted image data does not appear white or the white background in the image does not become black. Further, the image data conversion condition according to the present embodiment is that the subject reflectance value (exact value) is approximately 0.5 to
An area corresponding to a range of 1 (a range of approximately -0.3 to 0 as a logarithmic value of the object reflectance value) is a predetermined area, and is included in the numerical range of the predetermined area according to claim 2. For this reason, as apparent from the experimental results described later, the image represented by the converted image data can be made a visually preferable image.

【0058】そしてステップ110では、上記の色補正
及び濃度補正によって得られた被写体反射率データ
(r’,g’,b’)を画像データ(R’,G’,
B’)に変換する。この変換は(3)式として示した関
数Fを用いることで行うことができる(次式参照)。
In step 110, the object reflectance data (r ', g', b ') obtained by the above-described color correction and density correction are converted into image data (R', G ',
B ′). This conversion can be performed by using the function F shown as the equation (3) (see the following equation).

【0059】R’←F(r’), G’←F(g’),
B’←F(b’) これにより、画像データが表す画像の主階調が変化した
り、前記画像中のハイライト部が白くとんだり、前記画
像中の白地が黒みを帯びたりすることなく、色補正及び
濃度補正が施された画像データ(R’,G’,B’)を
得ることができる。上述した色補正・濃度補正処理にお
ける画像データに対する各種の変換を纏めると次のよう
になる。
R ′ ← F (r ′), G ′ ← F (g ′),
B ′ ← F (b ′) Accordingly, the main gradation of the image represented by the image data does not change, the highlight portion in the image does not appear white, and the white background in the image does not become blackish. , Image data (R ′, G ′, B ′) on which color correction and density correction have been performed. Various conversions for image data in the above-described color correction / density correction processing are summarized as follows.

【0060】[0060]

【数3】 なお、上記では被写体反射率データ(r,g,b)に対
して色補正及び濃度補正を行う場合を説明したが、これ
に限定されるものではなく、被写体反射率データ(r,
g,b)をXYZ表色系における三刺激値を表す三刺激
値データ(X,Y,Z)に変換し、三刺激値データ
(X,Y,Z)に対して先のステップ110と同様に色
補正及び濃度補正を行った後に、色補正及び濃度補正後
の三刺激値データ(X’,Y’,Z’)を被写体反射率
データ(r’,g’,b’)に変換し、画像データ
(R’,G’,B’)を得るようにしてもよい。被写体
反射率データ(r,g,b)から三刺激値データ(X,
Y,Z)への変換は(4)式に示すようなマトリクス演
算によって実現でき、色補正及び濃度補正を経た三刺激
値データ(X’,Y’,Z’)から被写体反射率データ
(r’,g’,b’)への変換は次の(5)式に示すよ
うなマトリクス演算によって実現できる。
(Equation 3) In the above, the case where the color correction and the density correction are performed on the subject reflectance data (r, g, b) has been described. However, the present invention is not limited to this, and the subject reflectance data (r, g, b) is not limited thereto.
g, b) is converted to tristimulus value data (X, Y, Z) representing tristimulus values in the XYZ color system, and the tristimulus value data (X, Y, Z) is converted in the same manner as in step 110 above. After performing color correction and density correction, the tristimulus value data (X ′, Y ′, Z ′) after color correction and density correction are converted into object reflectance data (r ′, g ′, b ′). , Image data (R ′, G ′, B ′). From the object reflectance data (r, g, b), tristimulus value data (X,
(Y, Z) can be realized by a matrix operation as shown in equation (4). The object reflectance data (r ′) is obtained from the tristimulus value data (X ′, Y ′, Z ′) that has undergone color correction and density correction. ', G', b ') can be realized by a matrix operation as shown in the following equation (5).

【0061】[0061]

【数4】 この場合の画像データに対する各種の変換を纏めると次
のようになる。
(Equation 4) Various conversions for the image data in this case are summarized as follows.

【0062】[0062]

【数5】 また、処理対象の画像データが、各画素毎に輝度Y、色
差Cr,Cb の各チャンネルの値が所定の変換特性に従っ
てコード化された画像データ(Y,Cr,Cb)である場合
には、画像データ(Y,Cr,Cb)から画像データ(R,
G,B)への変換を行えば、先に説明した色補正・濃度
補正処理と同様にして色補正及び濃度補正を行うことが
できる。この変換は、まず次の(6)式に示す関係式に
従って、各画素毎に、輝度データY、色差データCr,C
b からデータLuma,Chroma1,Chroma2を求める。
(Equation 5) If the image data to be processed is image data (Y, Cr, Cb) in which the values of each channel of luminance Y and color difference Cr, Cb are coded according to a predetermined conversion characteristic for each pixel, From image data (Y, Cr, Cb) to image data (R,
G, B), color correction and density correction can be performed in the same manner as the color correction / density correction processing described above. In this conversion, first, luminance data Y and color difference data Cr, C
Data Luma, Chroma1, Chroma2 are obtained from b.

【0063】 Y=(255/1.402)Luma Cr =111.40 Chroma1+156 Cb =135.64Chroma2 +137 …(6) そして、次の(7)式により、各画素毎に、データLum
a,Chroma1,Chroma2からデータR,G,Bを求める。こ
れにより、画像データ(R,G,B)を得ることができ
る。なお、この変換はアフィン変換の一種である。
Y = (255 / 1.402) Luma Cr = 111.40 Chroma1 + 156 Cb = 135.64 Chroma2 + 137 (6) Then, according to the following equation (7), the data Lum is calculated for each pixel.
Data R, G, and B are obtained from a, Chroma1, and Chroma2. Thus, image data (R, G, B) can be obtained. This transformation is a kind of affine transformation.

【0064】[0064]

【数6】 また補正済の画像データ(R’,G’,B’)から画像
データ(Y’,Cr',Cb')への変換は、まず次の
(8)式により、各画素毎に、データR’,G’,B’
からデータLuma,Chroma1,Chroma2を求める。
(Equation 6) Conversion of the corrected image data (R ′, G ′, B ′) into image data (Y ′, Cr ′, Cb ′) is performed by first using the data R ', G', B '
Data Luma, Chroma1, Chroma2 from

【0065】[0065]

【数7】 そして、データLuma,Chroma1,Chroma2から、先の(6)
式に従って、各画素毎に輝度データY’、色差データC
r', Cb'を求める。これにより、画像データが表す画像
の主階調が変化したり、前記画像中のハイライト部が白
くとんだり、前記画像中の白地が黒みを帯びたりするこ
となく、色補正及び濃度補正が施された画像データ
(Y’,Cr', Cb')を得ることができる。画像データ
(Y,Cr,Cb)が入力される場合の画像データに対する
各種の変換を纏めると次のようになる。
(Equation 7) Then, from the data Luma, Chroma1, Chroma2, the previous (6)
According to the formula, the luminance data Y ′ and the chrominance data C
Find r ', Cb'. Thereby, the color correction and the density correction are performed without changing the main gradation of the image represented by the image data, the highlight portion in the image becoming white, and the white background in the image becoming blackish. The obtained image data (Y ′, Cr ′, Cb ′) can be obtained. Various conversions for image data when image data (Y, Cr, Cb) are input are summarized as follows.

【0066】[0066]

【数8】 また、上記では画像データ(R,G,B)から被写体反
射率データ(r,g,b)への変換、及びその逆変換を
(3)式に基づいて行っていたが、これに限定されるも
のではなく、例えば下記の(9)式に基づいて行っても
よい。
(Equation 8) In the above description, the conversion from the image data (R, G, B) to the subject reflectance data (r, g, b) and the inverse conversion are performed based on the expression (3). However, the present invention is not limited to this. Instead, for example, it may be performed based on the following equation (9).

【0067】[0067]

【数9】 更に、上記では本発明に係る記録媒体として、CD−R
OM52及びハードディスク装置50の内蔵ハードディ
スクを例に説明したが、本発明はこれに限定されるもの
ではなく、例えばフロッピーディスク等の磁気ディス
ク、CD−R等の光ディスク、MO等の光磁気ディス
ク、メモリカード、ICカード等の各種の情報記憶媒体
を、本発明に係る記録媒体として適用可能であることは
言うまでもない。
(Equation 9) Further, in the above, the recording medium according to the present invention is a CD-R
The OM 52 and the built-in hard disk of the hard disk device 50 have been described as examples, but the present invention is not limited to this. For example, a magnetic disk such as a floppy disk, an optical disk such as a CD-R, a magneto-optical disk such as an MO, a memory It goes without saying that various information storage media such as cards and IC cards can be applied as the recording media according to the present invention.

【0068】また、上記では画像データ交換機14のC
PU40が色補正・濃度補正プログラムを実行すること
によって色補正・濃度補正処理を行うようにしていた
が、これに限定されるものではなく、色補正・濃度補正
処理を行う専用のハードウェア(画像処理回路)を設
け、該画像処理回路で色補正・濃度補正処理を行うよう
にしてもよい。
In the above description, C of the image data exchange 14
The PU 40 performs the color correction / density correction processing by executing the color correction / density correction program. However, the present invention is not limited to this. Processing circuit), and the image processing circuit may perform color correction and density correction processing.

【0069】また、上記では色補正値や濃度補正値を自
動的に演算する場合を説明したが、これに限定されるも
のではなく、例えばディスプレイ等の表示手段に画像を
表示している状態で、オペレータが表示画像を検定する
ことによって決定された色補正値や濃度補正値に基づい
て色補正や濃度補正を行うようにしてもよい。
In the above description, the case where the color correction value and the density correction value are automatically calculated has been described. However, the present invention is not limited to this. For example, when an image is displayed on display means such as a display. Alternatively, color correction and density correction may be performed based on the color correction value and the density correction value determined by the operator testing the display image.

【0070】また、上記ではデジタルカメラによる撮像
によって生成された画像データを処理対象としていた
が、これに限定されるものではなく、例えば写真フィル
ムに記録されているフィルム画像を読み取ることによっ
て得られた画像データ等に対する色補正や濃度補正に本
発明を適用可能である。また、上記では色補正及び濃度
補正を各々行っていたが、何れか一方のみを行ってもよ
いことは言うまでもない。
In the above description, the image data generated by the image pickup by the digital camera is processed. However, the present invention is not limited to this. For example, the image data obtained by reading a film image recorded on a photographic film can be obtained. The present invention is applicable to color correction and density correction for image data and the like. Further, in the above description, the color correction and the density correction are respectively performed, but it goes without saying that only one of them may be performed.

【0071】[0071]

【実施例】次に、本願発明者が実施した実験の結果につ
いて説明する。本願発明者は、本発明に係る所定領域の
適正な範囲(所定領域と所定領域外との適正な境界)を
確認するために、以下の実験を行った。
Next, the results of experiments conducted by the present inventors will be described. The inventor of the present application performed the following experiment in order to confirm an appropriate range of the predetermined region (an appropriate boundary between the predetermined region and the outside of the predetermined region) according to the present invention.

【0072】すなわち、所定の被写体をデジタルカメラ
(富士フイルム製のFinepix700(商品名))によって撮影
し、撮影によって得られた画像データ(R,G,B)
を、先に説明した関数F(X)の逆変換によって被写体
反射率データ(r,g,b)に変換した後に、変換関数
f(x)に従って変換することで濃度補正を行い、補正
後の被写体反射率データ(r’,g’,b’)を関数F
(X)によって画像データ(R’,G’,B’)に変換
し、画像データ(R’,G’,B’)を用いてプリンタ
(富士フイルム製のFrontier(商品名))によって印画紙
への画像の記録を行い、複数の評価者により記録画像を
評価することを、変換関数f(x)のパラメータの値を
変更しながら繰り返した。上記の実験における処理の流
れを纏めると次のようになる。
That is, a predetermined subject is photographed by a digital camera (Finepix 700 (trade name) manufactured by Fuji Film), and image data (R, G, B) obtained by the photographing is taken.
Is converted into subject reflectance data (r, g, b) by the inverse conversion of the function F (X) described above, and then is converted according to the conversion function f (x) to perform density correction. The object reflectance data (r ′, g ′, b ′) is converted to a function F
The image data is converted into image data (R ', G', B ') by (X), and the image data (R', G ', B') is used by a printer (Frontier (trade name) manufactured by FUJIFILM Corporation). The recording of the image on the media and the evaluation of the recorded image by a plurality of evaluators were repeated while changing the values of the parameters of the conversion function f (x). The process flow in the above experiment is summarized as follows.

【0073】[0073]

【数10】 変換関数f(x)は、所定領域の適正な範囲を確認する
ために、所定範囲と所定範囲外との境界がパラメータu
によって規定された関数であり、次式によって定義され
る。
(Equation 10) The conversion function f (x) is obtained by setting the boundary between the predetermined range and the outside of the predetermined range to the parameter u in order to check the appropriate range of the predetermined region.
And is defined by the following equation:

【0074】[0074]

【数11】 なお、kは先の実施形態で説明した画像データ変換条件
におけるゲインに相当するパラメータであり、本実験で
は次式で与えられる濃度補正係数を用いた(但し、Σ
Gは画像データ(R,G,B)から求めたG濃度の平均
値を表す)。
[Equation 11] Note that k is a parameter corresponding to the gain under the image data conversion conditions described in the above embodiment, and in this experiment, a density correction coefficient given by the following equation was used (where Σ
G represents the average value of the G density obtained from the image data (R, G, B).

【0075】k=118/ΣG またパラメータk=0.7 とし、パラメータuとして「0.
7 」「0.5 」「0.3 」の各値を設定したときの、両真数
チャート及び両対数チャート上での変換関数f(x)の
軌跡は図5(A)及び(B)のようになる。
K = 118 / ΣG Further, the parameter k is set to 0.7 and the parameter u is set to “0.
When the values of "7", "0.5" and "0.3" are set, the locus of the conversion function f (x) on the double antilogarithmic chart and the double logarithmic chart is as shown in FIGS. 5 (A) and 5 (B). .

【0076】上記の実験により、パラメータuの値を略
0.3 よりも小さくすると記録画像の画質の劣化が明瞭に
視認され、パラメータuの値(真数値)を略0.3 以上
(対数値で略-0.5程度)とすれば、記録画像が視覚的に
好ましい画質になることが確認された。これにより、本
願発明者は、所定領域を真数値で略0.3 〜1(対数値で
略-0.5〜0)の範囲に相当する領域(すなわち、入力画
像データ値を0から1の範囲内に規格化したときに、入
力画像データのうちの最も明るい点に相当する値から、
入力画像データ値の対数値で略0.5以内の範囲に相当
する領域)とし、該所定領域外についてのみ入力画像デ
ータ値の対数値の変化に対する出力画像データ値の変化
の傾きが略1(好ましくは1)となるように画像データ
変換条件を設定すれば、該変換条件に従って変換した画
像データが表す画像が好ましい画質になるとの知見を得
た。
According to the above experiment, the value of the parameter u was substantially
When the value is smaller than 0.3, the deterioration of the image quality of the recorded image is clearly recognized, and when the value (exact value) of the parameter u is approximately 0.3 or more (approximately -0.5 in logarithmic value), the image quality of the recorded image is visually preferable. It was confirmed that. As a result, the inventor of the present application standardized the predetermined area to an area corresponding to a range of approximately 0.3 to 1 (an approximately -0.5 to 0 as a logarithmic value) (that is, an input image data value within a range of 0 to 1). When the image data is converted to a value corresponding to the brightest point in the input image data,
An area corresponding to a range of approximately 0.5 or less in logarithmic value of the input image data value), and the slope of the change of the output image data value with respect to the change of the logarithmic value of the input image data value is approximately 1 only outside the predetermined area. It has been found that if the image data conversion condition is preferably set to 1), the image represented by the image data converted according to the conversion condition has a preferable image quality.

【0077】なお、上記では画像データに対して濃度補
正のみを行う実験について説明したが、色補正に関して
も、所定領域を上記のように規定して変換条件を設定す
ることにより、該変換条件に従って変換した画像データ
が表す画像が好ましい画質になることが、本願発明者に
よる実験によって確認された。
Although an experiment in which only density correction is performed on image data has been described above, with regard to color correction, by defining a predetermined area as described above and setting conversion conditions, the color conversion is performed in accordance with the conversion conditions. It was confirmed by an experiment by the present inventor that the image represented by the converted image data has a preferable image quality.

【0078】[0078]

【発明の効果】以上説明したように請求項1及び請求項
3記載の発明は、画像の色及び濃度の少なくとも一方を
補正するための補正量に基づいて、入力信号のうちの最
も明るい点に相当する値が出力信号のうちの最も明るい
点に相当する値に変換されると共に、入力信号値の対数
値の変化に対する出力信号値の対数値の変化の傾きが、
最も明るい点に相当する信号値近傍の所定領域を除いて
略1になるように変換条件を設定し、前記設定した変換
条件に従って画像データを変換するようにしたので、画
像の主階調が変化したり、画像中のハイライト部が白く
とんだり、画像中の白地が黒みを帯びる等の画質低下が
生ずることなく色補正や濃度補正を行うことができる、
という優れた効果を有する。
As described above, according to the first and third aspects of the present invention, the brightest point in the input signal is determined based on the correction amount for correcting at least one of the color and the density of the image. The corresponding value is converted to a value corresponding to the brightest point of the output signal, and the slope of the change in the logarithmic value of the output signal value with respect to the change in the logarithmic value of the input signal value is:
The conversion condition is set so as to be approximately 1 except for a predetermined area near the signal value corresponding to the brightest point, and the image data is converted according to the set conversion condition. Color correction and density correction can be performed without causing image quality deterioration such as highlighting in the image, a highlight portion becoming white, and a white background in the image becoming blackish.
It has an excellent effect.

【0079】請求項2記載の発明は、請求項1の発明に
おいて、入力信号値を0から1の範囲内に規格化したと
きに、最も明るい点に相当する信号値から、入力信号値
の対数値で略0.5以内の範囲に相当する領域を所定領
域としたので、上記効果に加え、変換後の画像データが
表す画像の画質を、視覚的に好ましい画質にすることが
できる、という効果を有する。
According to a second aspect of the present invention, in the first aspect of the present invention, when the input signal value is normalized within the range of 0 to 1, the input signal value pair is calculated from the signal value corresponding to the brightest point. Since the area corresponding to the range of approximately 0.5 or less in the numerical value is set as the predetermined area, in addition to the above-described effects, the image quality of the image represented by the converted image data can be visually enhanced. Having.

【0080】請求項4記載の発明は、画像の色及び濃度
の少なくとも一方を補正するための補正量に基づいて、
入力信号のうちの最も明るい点に相当する値が出力信号
のうちの最も明るい点に相当する値に変換されると共
に、入力信号値の対数値の変化に対する出力信号値の対
数値の変化の傾きが、最も明るい点に相当する信号値近
傍の所定領域を除いて略1になるように変換条件を設定
する第1のステップ、前記設定した変換条件に従って画
像データを変換する第2のステップを含む処理をコンピ
ュータに実行させるためのプログラムを記録媒体に記録
したので、画像の主階調が変化したり、画像中のハイラ
イト部が白くとんだり、画像中の白地が黒みを帯びる等
の画質低下が生ずることなく色補正や濃度補正を行うこ
とができる、という優れた効果を有する。
According to a fourth aspect of the present invention, based on a correction amount for correcting at least one of the color and the density of an image,
The value corresponding to the brightest point in the input signal is converted to the value corresponding to the brightest point in the output signal, and the slope of the change in the logarithmic value of the output signal value with respect to the change in the logarithmic value of the input signal value. Includes a first step of setting a conversion condition so as to be substantially 1 except for a predetermined area near a signal value corresponding to the brightest point, and a second step of converting image data according to the set conversion condition. Since the program for causing the computer to execute the processing is recorded on the recording medium, the image quality deteriorates, such as a change in the main gradation of the image, a highlight portion in the image becoming white, and a white background in the image becoming blackish. Color correction and density correction can be performed without the occurrence of the problem.

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

【図1】本実施形態に係る画像処理システムの概略構成
を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of an image processing system according to an embodiment.

【図2】図1の画像処理システムにおいて、入力装置と
して情報記憶媒体読出装置が、出力装置としてCD−R
書込装置が接続されている場合の画像データに対する処
理の流れを示す概念図である。
FIG. 2 is an image processing system of FIG. 1 in which an information storage medium reading device is used as an input device and a CD-R is used as an output device;
FIG. 4 is a conceptual diagram showing a flow of processing for image data when a writing device is connected.

【図3】画像データに対する色補正・濃度補正処理の内
容を示すフローチャートである。
FIG. 3 is a flowchart showing the contents of a color correction / density correction process for image data.

【図4】変換曲線の一例を、(A)は両真数チャート上
で、(B)は両対数チャート上で各々示す線図である。
FIGS. 4A and 4B are diagrams showing an example of a conversion curve on a double logarithmic chart, and FIG.

【図5】本願発明者による実験で用いられた変換関数f
(x)の、(A)は両真数チャート上での軌跡の一例、
(B)は両対数チャート上での軌跡の一例を各々示す線
図である。
FIG. 5 shows a conversion function f used in an experiment performed by the present inventors.
(X), (A) is an example of a locus on both antilog charts,
(B) is a diagram each showing an example of a locus on a log-log chart.

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

10 画像処理システム 14 画像データ交換機 22 情報記憶媒体読出装置 40 CPU 50 ハードディスク装置 52 CD−ROM 54 CD−ROMドライバ Reference Signs List 10 image processing system 14 image data exchange 22 information storage medium reading device 40 CPU 50 hard disk device 52 CD-ROM 54 CD-ROM driver

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 AA20 CA01 CA12 CA16 CA18 CB01 CB12 CB16 CB18 CC01 CE11 CE16 CH01 CH11 CH12 DA17 DB06 DC05 5C066 AA01 AA05 BA20 CA17 DD02 EA05 EA07 EA13 EB01 EC02 EC05 EE04 GA01 HA02 KD07 KE02 KE03 KE04 KE05 KE09 KE17 KF05 5C077 LL01 MP08 PP15 PP16 PP32 PP37 PP46 PP47 PP52 PP53 PQ08 PQ12 PQ18 PQ22 PQ23 RR18 RR21 TT02 TT09 5C079 HB01 HB05 LA12 LA13 LA17 LA23 LB00 MA01 MA04 MA11 NA18 PA03  ──────────────────────────────────────────────────続 き Continuing on the front page F term (reference) 5B057 AA20 CA01 CA12 CA16 CA18 CB01 CB12 CB16 CB18 CC01 CE11 CE16 CH01 CH11 CH12 DA17 DB06 DC05 5C066 AA01 AA05 BA20 CA17 DD02 EA05 EA07 EA13 EB01 EC02 EC05 EE07 GA04 KE05 KE09 KE17 KF05 5C077 LL01 MP08 PP15 PP16 PP32 PP37 PP46 PP47 PP52 PP53 PQ08 PQ12 PQ18 PQ22 PQ23 RR18 RR21 TT02 TT09 5C079 HB01 HB05 LA12 LA13 LA17 LA23 LB00 MA01 MA04 MA11 NA18 PA03

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 補正対象画像の色及び濃度の少なくとも
一方を補正するための補正量に基づいて、入力信号のう
ちの最も明るい点に相当する値が出力信号のうちの最も
明るい点に相当する値に変換されると共に、入力信号値
の対数値の変化に対する出力信号値の対数値の変化の傾
きが、最も明るい点に相当する信号値近傍の所定領域を
除いて略1になるように変換条件を設定し、 補正対象画像の各画素毎の光強度との関係が線形な物理
量の値を表す画像データを、前記設定した変換条件に従
って変換する画像補正方法。
1. A value corresponding to a brightest point of an input signal corresponds to a brightest point of an output signal based on a correction amount for correcting at least one of a color and a density of a correction target image. In addition to the conversion into a value, the slope of the change in the logarithmic value of the output signal value with respect to the change in the logarithmic value of the input signal value is substantially 1 except for a predetermined area near the signal value corresponding to the brightest point. An image correction method for setting conditions, and converting image data representing a physical quantity value having a linear relationship with the light intensity of each pixel of the correction target image in accordance with the set conversion conditions.
【請求項2】 前記所定領域は、入力信号値を0から1
の範囲内に規格化したときに、最も明るい点に相当する
信号値から、入力信号値の対数値で略0.5以内の範囲
に相当する領域であることを特徴とする請求項1記載の
画像補正方法。
2. The method according to claim 1, wherein the predetermined area includes an input signal value ranging from 0 to 1.
3. The area according to claim 1, wherein when normalized within the range, the signal value corresponds to a range within approximately 0.5 as a logarithmic value of the input signal value from the signal value corresponding to the brightest point. Image correction method.
【請求項3】 補正対象画像の色及び濃度の少なくとも
一方を補正するための補正量に基づいて、入力信号のう
ちの最も明るい点に相当する値が出力信号のうちの最も
明るい点に相当する値に変換されると共に、入力信号値
の対数値の変化に対する出力信号値の対数値の変化の傾
きが、最も明るい点に相当する信号値近傍の所定領域を
除いて略1になるように変換条件を設定する設定手段
と、 補正対象画像の各画素毎の光強度との関係が線形な物理
量の値を表す画像データを、前記設定手段によって設定
された変換条件に従って変換する変換手段と、 を含む画像補正装置。
3. A value corresponding to the brightest point in the input signal corresponds to the brightest point in the output signal based on a correction amount for correcting at least one of the color and the density of the correction target image. In addition to the conversion into a value, the slope of the change in the logarithmic value of the output signal value with respect to the change in the logarithmic value of the input signal value is substantially 1 except for a predetermined area near the signal value corresponding to the brightest point. Setting means for setting a condition, and conversion means for converting image data representing a value of a physical quantity whose linear relationship with the light intensity of each pixel of the correction target image is linear according to the conversion condition set by the setting means. Image correction device including.
【請求項4】 補正対象画像の色及び濃度の少なくとも
一方を補正するための補正量に基づいて、入力信号のう
ちの最も明るい点に相当する値が出力信号のうちの最も
明るい点に相当する値に変換されると共に、入力信号値
の対数値の変化に対する出力信号値の対数値の変化の傾
きが、最も明るい点に相当する信号値近傍の所定領域を
除いて略1になるように変換条件を設定する第1のステ
ップ、 補正対象画像の各画素毎の光強度との関係が線形な物理
量の値を表す画像データを、前記設定した変換条件に従
って変換する第2のステップを含む処理をコンピュータ
に実行させるためのプログラムが記録された記録媒体。
4. A value corresponding to a brightest point in an input signal corresponds to a brightest point in an output signal based on a correction amount for correcting at least one of a color and a density of a correction target image. In addition to the conversion into a value, the slope of the change in the logarithmic value of the output signal value with respect to the change in the logarithmic value of the input signal value is substantially 1 except for a predetermined area near the signal value corresponding to the brightest point. A first step of setting conditions, and a second step of converting image data representing a value of a physical quantity having a linear relationship with the light intensity of each pixel of the correction target image in accordance with the set conversion conditions. A recording medium on which a program to be executed by a computer is recorded.
JP10265331A 1998-09-18 1998-09-18 Image correction method, image correction device and recording medium Pending JP2000101860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10265331A JP2000101860A (en) 1998-09-18 1998-09-18 Image correction method, image correction device and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10265331A JP2000101860A (en) 1998-09-18 1998-09-18 Image correction method, image correction device and recording medium

Publications (1)

Publication Number Publication Date
JP2000101860A true JP2000101860A (en) 2000-04-07

Family

ID=17415713

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10265331A Pending JP2000101860A (en) 1998-09-18 1998-09-18 Image correction method, image correction device and recording medium

Country Status (1)

Country Link
JP (1) JP2000101860A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237517B (en) * 2007-01-29 2010-08-25 广达电脑股份有限公司 Image processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237517B (en) * 2007-01-29 2010-08-25 广达电脑股份有限公司 Image processing method and device

Similar Documents

Publication Publication Date Title
JP3556859B2 (en) Image correction method, image correction device, and recording medium
US7076119B2 (en) Method, apparatus, and program for image processing
JP3668014B2 (en) Image processing method and apparatus
JP3903083B2 (en) Image processing apparatus, method, and recording medium
JP4978378B2 (en) Image processing device
JP2002118767A (en) Processing method for extended color gamut digital image using image information parameter
US7333136B2 (en) Image processing apparatus for carrying out tone conversion processing and color correction processing using a three-dimensional look-up table
JP2005190435A (en) Image processing method, image processing apparatus and image recording apparatus
US6701007B1 (en) Image processing device, image processing method, and recording medium for correcting color balance of output images
JPWO2005112428A1 (en) Image processing method, image processing apparatus, image recording apparatus, and image processing program
JP2000050079A (en) Digital photograph finishing system containing digital picture processing of film exposure lacking gamma scene balance and picture visualization
JP3588418B2 (en) Image correction method, image correction device, and recording medium
JP2005192162A (en) Image processing method, image processing apparatus, and image recording apparatus
JP2002033934A (en) Apparatus and method for image processing
JPH1075374A (en) Image processing unit and its method
JP2000101860A (en) Image correction method, image correction device and recording medium
US20040042025A1 (en) Image processing method, image processing apparatus, image recording apparatus, program and recording medium
JP2006203571A (en) Imaging apparatus, image processing apparatus, and image recording apparatus
JP2007312125A (en) Image processor, image processing method, and image processing program
JP3817371B2 (en) Image processing method, apparatus, and recording medium
JP2002051225A (en) Device and method for processing image
JPH11308474A (en) Image processor
JP2000151989A (en) Picture data interpolation method, device therefor and medium recorded with picture data interpolation program
JP3740150B2 (en) How to create an index print
JP3579249B2 (en) Index print creation method and image processing system