JP2005143008A - Image processor, image processing method and program - Google Patents
Image processor, image processing method and program Download PDFInfo
- Publication number
- JP2005143008A JP2005143008A JP2003379726A JP2003379726A JP2005143008A JP 2005143008 A JP2005143008 A JP 2005143008A JP 2003379726 A JP2003379726 A JP 2003379726A JP 2003379726 A JP2003379726 A JP 2003379726A JP 2005143008 A JP2005143008 A JP 2005143008A
- Authority
- JP
- Japan
- Prior art keywords
- dynamic range
- image
- pixel
- color image
- correction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000003672 processing method Methods 0.000 title claims description 9
- 238000007906 compression Methods 0.000 claims abstract description 89
- 230000006835 compression Effects 0.000 claims abstract description 88
- 238000004364 calculation method Methods 0.000 claims abstract description 18
- 238000000034 method Methods 0.000 claims description 14
- 230000007423 decrease Effects 0.000 claims description 7
- 238000010191 image analysis Methods 0.000 abstract description 13
- 229920006395 saturated elastomer Polymers 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 5
- 238000001914 filtration Methods 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Images
Abstract
Description
本発明は、カラー画像のダイナミックレンジを、カラー画像を出力する例えばプリンタ等の再生装置のダイナミックレンジに収まるように圧縮する画像処理装置および方法並びに画像処理方法をコンピュータに実行させるためのプログラムに関するものである。 The present invention relates to an image processing apparatus and method for compressing a dynamic range of a color image so that it falls within the dynamic range of a reproduction apparatus such as a printer that outputs the color image, and a program for causing a computer to execute the image processing method. It is.
従来より、デジタルカメラ等の撮像装置により被写体を撮影することにより取得された画像や、ネガフイルム、リバーサルフイルム等の写真フイルムや印刷物等に記録された画像を光電的に読み取ることにより得られた画像をプリンタ等の再生装置において再生することが行われている。このように画像を再生装置において再生する場合において、画像上の明部および/または暗部がつぶれてしまうことを防止するために、画像のダイナミックレンジが再生装置のダイナミックレンジ内に収まるように、画像のダイナミックレンジを圧縮することが行われている。 Conventionally, an image obtained by photoelectrically reading an image acquired by photographing a subject with an imaging device such as a digital camera, an image recorded on a photographic film such as a negative film or a reversal film, or a printed matter. Is reproduced on a reproducing apparatus such as a printer. In this way, when the image is reproduced on the reproduction device, in order to prevent the bright portion and / or the dark portion on the image from being crushed, the image is set so that the dynamic range of the image is within the dynamic range of the reproduction device. The dynamic range of compression has been done.
このようなダイナミックレンジ圧縮方法において、画像に対してローパスフィルタによるフィルタリング処理を施して、画像中の空間周波数が低い構造物のみを表すボケ画像を作成し、ボケ画像を用いてダイナミックレンジを圧縮することにより、画像に含まれる明部および暗部内の細かなテクスチャのコントラストを残しつつも、画像の明部および暗部の双方のつぶれを抑える方法が提案されている(特許文献1参照)。
しかしながら、上記特許文献1に記載された方法においては、画像の明度を表す情報に基づいてダイナミックレンジ圧縮率を設定しているため、設定されたダイナミックレンジ圧縮率により画像のダイナミックレンジを圧縮すると、画像に含まれる高彩度の色が飽和してつぶれてしまうという問題がある。
However, in the method described in
本発明は上記事情に鑑みなされたものであり、高彩度色が飽和しないように画像のダイナミックレンジを圧縮することを目的とする。 The present invention has been made in view of the above circumstances, and an object of the present invention is to compress the dynamic range of an image so that high-saturation colors are not saturated.
本発明による画像処理装置は、所定の濃度再現域および色再現域を有する再生手段において再生を行うべく、カラー画像の濃度域が前記再生手段の濃度再現域に収まるようにするために、前記カラー画像の各画素の画素値を修正する修正値を算出し、該修正値を前記カラー画像の各画素の画素値に加算することにより前記カラー画像のダイナミックレンジを圧縮してダイナミックレンジが圧縮された処理済み画像を得るダイナミックレンジ圧縮手段を備えた画像処理装置において、
前記カラー画像のダイナミックレンジに基づいて、前記再生手段の濃度再現域内に収まるように前記カラー画像のダイナミックレンジを圧縮するためのダイナミックレンジ圧縮率を設定する圧縮率設定手段と、
前記ダイナミックレンジ圧縮率に基づいて、前記カラー画像の各画素の画素値に応じた修正値を算出するための圧縮テーブルを生成する圧縮テーブル生成手段と、
前記カラー画像の各画素における彩度を算出する彩度算出手段と、
該彩度算出手段が算出した彩度が高いほど修正量が小さくなるように前記修正値を補正するための彩度補正係数を算出する彩度補正係数算出手段とを備え、
前記ダイナミックレンジ圧縮手段は、前記圧縮テーブルを参照して前記修正値を算出し、該修正値を前記彩度補正係数により補正して補正修正値を算出し、該補正修正値を前記各画素の画素値に加算することにより前記カラー画像のダイナミックレンジを圧縮して前記処理済み画像を得る手段であることを特徴とするものである。
The image processing apparatus according to the present invention is arranged so that the density area of a color image falls within the density reproduction area of the reproduction means so as to be reproduced by reproduction means having a predetermined density reproduction area and color reproduction area. A correction value for correcting the pixel value of each pixel of the image is calculated, and the dynamic range is compressed by adding the correction value to the pixel value of each pixel of the color image to compress the dynamic range of the color image. In an image processing apparatus provided with a dynamic range compression means for obtaining a processed image,
Based on the dynamic range of the color image, a compression rate setting unit that sets a dynamic range compression rate for compressing the dynamic range of the color image so as to be within a density reproduction range of the reproduction unit;
Compression table generating means for generating a compression table for calculating a correction value according to a pixel value of each pixel of the color image based on the dynamic range compression rate;
A saturation calculating means for calculating the saturation at each pixel of the color image;
Saturation correction coefficient calculation means for calculating a saturation correction coefficient for correcting the correction value so that the correction amount decreases as the saturation calculated by the saturation calculation means increases,
The dynamic range compression means calculates the correction value by referring to the compression table, calculates the correction correction value by correcting the correction value with the saturation correction coefficient, and calculates the correction correction value for each pixel. It is means for obtaining the processed image by compressing the dynamic range of the color image by adding to the pixel value.
また、本発明による画像処理装置においては、前記圧縮率設定手段を、前記カラー画像を表す画像データのヒストグラムを作成し、該ヒストグラムに基づいて該カラー画像のダイナミックレンジを算出し、該ダイナミックレンジに基づいて、前記画像データの所定の基準値を基準として、データ値の比較的高い部分、データ値の比較的低い部分および/または前記画像データの全体のそれぞれに応じたダイナミックレンジ圧縮率を設定する手段としてもよい。 In the image processing apparatus according to the present invention, the compression rate setting means creates a histogram of image data representing the color image, calculates a dynamic range of the color image based on the histogram, and adds the dynamic range to the dynamic range. Based on a predetermined reference value of the image data, a dynamic range compression ratio corresponding to each of a relatively high data value portion, a relatively low data value portion, and / or the entire image data is set. It may be a means.
本発明による画像処理方法は、所定の濃度再現域および色再現域を有する再生手段において再生を行うべく、カラー画像の濃度域が前記再生手段の濃度再現域に収まるようにするために、前記カラー画像の各画素の画素値を修正する修正値を算出し、該修正値を前記カラー画像の各画素の画素値に加算することにより前記カラー画像のダイナミックレンジを圧縮してダイナミックレンジが圧縮された処理済み画像を得る画像処理方法において、
前記カラー画像のダイナミックレンジに基づいて、前記再生手段の濃度再現域内に収まるように前記カラー画像のダイナミックレンジを圧縮するためのダイナミックレンジ圧縮率を設定し、
前記ダイナミックレンジ圧縮率に基づいて、前記カラー画像の各画素の画素値に応じた修正値を算出するための圧縮テーブルを生成し、
前記カラー画像の各画素における彩度を算出し、
該算出した彩度が高いほど修正量が小さくなるように前記修正値を補正するための彩度補正係数を算出し、
前記圧縮テーブルを参照して前記修正値を算出し、該修正値を前記彩度補正係数により補正して補正修正値を算出し、該補正修正値を前記各画素の画素値に加算することにより前記カラー画像のダイナミックレンジを圧縮して前記処理済み画像を得ることを特徴とするものである。
The image processing method according to the present invention is arranged so that the density area of a color image falls within the density reproduction area of the reproduction means so that reproduction is performed in the reproduction means having a predetermined density reproduction area and color reproduction area. A correction value for correcting the pixel value of each pixel of the image is calculated, and the dynamic range is compressed by adding the correction value to the pixel value of each pixel of the color image to compress the dynamic range of the color image. In an image processing method for obtaining a processed image,
Based on the dynamic range of the color image, set a dynamic range compression ratio for compressing the dynamic range of the color image so as to be within the density reproduction range of the reproduction means,
Based on the dynamic range compression rate, generate a compression table for calculating a correction value according to the pixel value of each pixel of the color image,
Calculating the saturation at each pixel of the color image;
Calculating a saturation correction coefficient for correcting the correction value so that the correction amount decreases as the calculated saturation increases,
By calculating the correction value with reference to the compression table, correcting the correction value with the saturation correction coefficient to calculate a correction correction value, and adding the correction correction value to the pixel value of each pixel The processed image is obtained by compressing the dynamic range of the color image.
なお、本発明による画像処理方法をコンピュータに実行させるためのプログラムとして提供してもよい。 The image processing method according to the present invention may be provided as a program for causing a computer to execute the image processing method.
本発明によれば、カラー画像のダイナミックレンジに基づいて、再生手段の濃度再現域内に収まるようにカラー画像のダイナミックレンジを圧縮するためのダイナミックレンジ圧縮率が設定され、ダイナミックレンジ圧縮率に基づいて、カラー画像の各画素の画素値に応じた修正値を算出するための圧縮テーブルが生成される。一方、カラー画像の各画素における彩度が算出され、彩度が高いほどダイナミックレンジ圧縮率が小さくなるように各画素の画素値を修正するための修正値を補正する彩度補正係数が算出される。そして、圧縮テーブルが参照されてカラー画像の各画素の画素値を修正するための修正値が算出され、算出された修正値が彩度補正係数により補正されて補正修正値が算出され、補正修正値が各画素の画素値に加算されることによりカラー画像のダイナミックレンジが圧縮されて処理済み画像が得られる。 According to the present invention, based on the dynamic range of the color image, the dynamic range compression rate for compressing the dynamic range of the color image is set so as to be within the density reproduction range of the reproducing unit, and based on the dynamic range compression rate A compression table for calculating a correction value corresponding to the pixel value of each pixel of the color image is generated. On the other hand, the saturation at each pixel of the color image is calculated, and the saturation correction coefficient for correcting the correction value for correcting the pixel value of each pixel is calculated so that the dynamic range compression rate decreases as the saturation increases. The Then, the correction value for correcting the pixel value of each pixel of the color image is calculated by referring to the compression table, the calculated correction value is corrected by the saturation correction coefficient, the correction correction value is calculated, and the correction correction By adding the value to the pixel value of each pixel, the dynamic range of the color image is compressed and a processed image is obtained.
このため、高彩度画素においては、同一の濃度を有するグレーのような低彩度画素よりもダイナミックレンジが圧縮される程度が小さくなり、その結果、カラー画像に含まれる高彩度画素が飽和する程度も小さくすることができる。したがって、本発明によれば、高彩度画素が多いカラー画像に対して、ダイナミックレンジを圧縮しつつも、高彩度画素の飽和を防止することができる。 For this reason, in a high saturation pixel, the degree to which the dynamic range is compressed is smaller than in a low saturation pixel such as gray having the same density, and as a result, the degree to which the high saturation pixel included in the color image is saturated is also small. can do. Therefore, according to the present invention, saturation of high saturation pixels can be prevented while compressing the dynamic range for a color image having many high saturation pixels.
また、カラー画像のヒストグラムを求め、このヒストグラムに基づいて、ある所定の基準値を基準として、画像データの全体、データ値の高い部分および/またはデータ値の低い部分のそれぞれに応じたダイナミックレンジ圧縮率を設定し、設定されたダイナミックレンジ圧縮率によりダイナミックレンジ圧縮処理を行うことにより、カラー画像中の明部あるいは暗部についてのみコントラストが弱められ、コントラストが広範囲に渡って弱い部分については、ダイナミックレンジ圧縮処理は施されないこととなる。このため、明部および暗部の画像がつぶれることがなくなり、かつ画像中の広範囲に渡ってコントラストが弱い部分についてはさらに弱められることがなくなり、これにより、ダイナミックレンジを圧縮することにより得られる処理済み画像の画質を向上させることができる。 Also, a color image histogram is obtained, and based on this histogram, dynamic range compression is performed according to each of the entire image data, a high data value portion, and / or a low data value portion based on a predetermined reference value. By setting the ratio and performing dynamic range compression processing with the set dynamic range compression ratio, the contrast is weakened only in the bright or dark part of the color image, and the dynamic range is applied to the part where the contrast is weak over a wide range. The compression process is not performed. For this reason, the bright and dark images will not be crushed, and the low-contrast parts of the image will not be further weakened, and this has been achieved by compressing the dynamic range. The image quality can be improved.
以下、図面を参照して本発明の実施形態について説明する。図1は本発明の実施形態による画像処理装置の構成を示す概略ブロック図である。図1に示すように、本実施形態による画像処理装置は、RGBの各色データからなるカラー画像を表す画像データS0の入力を受け付ける画像入力部1、画像データS0により表される画像(以下画像についても同様に参照符号S0を用いる)を解析して、ダイナミックレンジ圧縮率P0を設定する画像解析部2(圧縮率設定手段)、画像解析部2が設定したダイナミックレンジ圧縮率P0に基づいて、画像S0の各画素の画素値に応じた修正値を算出するための圧縮テーブルT0を生成する圧縮テーブル生成部3、画像S0の各画素における彩度Cを算出する彩度算出部4、彩度算出部4が算出した彩度Cが高いほど修正量が小さくなるように修正値を補正するための彩度補正係数f(C)を算出する彩度補正係数算出部5、圧縮テーブル生成部3が生成した圧縮テーブルT0を参照して画像S0の各画素の画素値を修正するための修正値を算出し、修正値を彩度補正係数f(C)により補正して補正修正値を算出し、補正修正値を画像S0の各画素の画素値に加算することにより、画像S0のダイナミックレンジを圧縮して処理済み画像データS1を得る圧縮処理部6、および処理済み画像データS1を再生するプリンタやモニタ等の画像出力部7(再生手段)を備える。なお、本実施形態においては、画像出力部7を処理済み画像データS1のプリントPを得るプリンタとする。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a schematic block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention. As shown in FIG. 1, the image processing apparatus according to the present embodiment has an
画像入力部1は、メディアに記録された画像データS0をメディアから読み出すメディアドライブや、ネットワーク経由で送信された画像データS0の入力を受け付ける各種インターフェースからなる。なお、画像データS0はデジタルカメラ等の撮像装置により取得されたものであってもよく、フイルムや原稿に記録された画像を光電的に読み出すことにより取得されたものであってもよい。
The
画像解析部2は、以下のようにして画像S0の圧縮率を設定する。まず、画像解析部2は、下記の式(1)により画像S0の各画素の濃度Yを算出する。なお、R0,G0,B0は、画像S0の各画素のRGBデータである。
Y=0.3125R0+0.3750G0+0.3125B0 (1)
次いで画像解析部2は濃度Yのヒストグラムを求める。図2は濃度YのヒストグラムHを示す図である。画像解析部2は、ヒストグラムHにおいて、シャドウ側からの累積相対度数が3%を示す濃度を画像データS0のシャドウ濃度Ysとして求める。
The image analysis unit 2 sets the compression rate of the image S0 as follows. First, the image analysis unit 2 calculates the density Y of each pixel of the image S0 by the following equation (1). R0, G0, and B0 are RGB data of each pixel of the image S0.
Y = 0.3125R0 + 0.3750G0 + 0.3125B0 (1)
Next, the image analysis unit 2 obtains a histogram of density Y. FIG. 2 is a diagram showing a histogram H of density Y. In the histogram H, the image analysis unit 2 obtains the density at which the cumulative relative frequency from the shadow side is 3% as the shadow density Ys of the image data S0.
一方、画像解析部2には画像出力部7が再生可能な最高濃度Dmaxの情報が入力されており、画像解析部2は、シャドウ濃度Ysと最高濃度Dmaxとを比較して、シャドウ濃度Ysの方が高いすなわちシャドウ濃度Ysが最高濃度Dmaxよりもより暗くなる場合には、あらかじめ設定されている基準濃度Y0を中心として、シャドウ濃度YsがDmax内に収まるようにするためのダイナミックレンジ圧縮率を算出する。具体的には、下記の式(2)に示すようにダイナミックレンジ圧縮率P0を算出する。
P0=(Ys−Y0)/(Dmax−Y0) (2)
ここで、基準濃度Y0の値としては、例えば画像S0に含まれる被写体が人物である場合、肌色と略同一の濃度である0.50〜0.70の間の値(ビット数に対する割合として)、好ましくは0.6に設定される。
On the other hand, information on the maximum density Dmax that can be reproduced by the
P0 = (Ys−Y0) / (Dmax−Y0) (2)
Here, as the value of the reference density Y0, for example, when the subject included in the image S0 is a person, a value between 0.50 and 0.70 that is substantially the same density as the skin color (as a ratio to the number of bits). , Preferably set to 0.6.
圧縮テーブル生成部3は、画像解析部2が設定したダイナミックレンジ圧縮率P0に基づいて、画像S0の各画素の画素値に応じた修正値を算出するための圧縮テーブルT0を生成する。図3は圧縮テーブルの例を示す図である。図3に示すように圧縮テーブルT0において、Y0は上述した基準濃度であり、直線部分の傾きは1/P0−1となっている。 The compression table generation unit 3 generates a compression table T0 for calculating a correction value according to the pixel value of each pixel of the image S0 based on the dynamic range compression rate P0 set by the image analysis unit 2. FIG. 3 is a diagram illustrating an example of a compression table. As shown in FIG. 3, in the compression table T0, Y0 is the reference density described above, and the slope of the straight line portion is 1 / P0-1.
なお、圧縮テーブルT0において、傾きが変化する部分(すなわち基準濃度Y0の点)が不連続であると、処理済み画像にアーチファクトが生じる場合があるため、傾きが連続するような関数を設定することにより、アーチファクトの発生を防止することができる。 In the compression table T0, if the portion where the inclination changes (that is, the point of the reference density Y0) is discontinuous, an artifact may occur in the processed image. Therefore, a function that makes the inclination continuous should be set. Thus, the occurrence of artifacts can be prevented.
彩度算出部4は、画像S0の各画素の彩度Cを下記の式(3)により算出する。なお、式(3)においてWは、各画素におけるRGB各データR0,G0,B0の平均値(R0+G0+B0)/3である。なお、彩度の算出方法は式(3)に示す方法に限定されるものではなく、公知の各種方法を用いることができる。
C=√((R0−W)2+(G0−W)2+(B0−W)2) (3)
彩度補正係数算出部5は、彩度Cの値に応じて圧縮テーブルT0を補正するための彩度補正係数f(C)を算出する。具体的には下記の式(4)により彩度補正係数f(C)を算出する。
f(C)=(Cmax−C)/Cmax (4)
但し、Cmaxは、あらかじめ画像データS0として入力を受け付けることが可能な全ての色データについて上記式(3)により算出した彩度Cの最大値である。
The
C = √ ((R0−W) 2 + (G0−W) 2 + (B0−W) 2 ) (3)
The saturation correction
f (C) = (Cmax−C) / Cmax (4)
However, Cmax is the maximum value of the saturation C calculated by the above equation (3) for all color data that can be received as image data S0 in advance.
式(4)から分かるように、彩度補正係数f(C)は0≦f(C)≦1の範囲となり、彩度が高いすなわち彩度Cの値が大きいほど彩度補正係数f(C)の値は小さくなる。 As can be seen from equation (4), the saturation correction coefficient f (C) is in the range of 0 ≦ f (C) ≦ 1, and the saturation correction coefficient f (C ) Value becomes smaller.
圧縮処理部6は、以下のようにして画像データS0のダイナミックレンジを圧縮する。圧縮処理部6は、まず上述した式(1)により画像S0の各画素の濃度Yを算出する。そして、画像S0に対して所定サイズのローパスフィルタによるフィルタリング処理を施して、ボケ濃度Y′からなるボケ画像を得る。ここで、ローパスフィルタのサイズが小さ過ぎると鮮鋭度が不自然に強調されたり、エッジ部分のオーバーシュートが目立つようになってしまう。一方、顔等の主要な被写体が小さいときにボケマスクの効果があまり現れなかったり、演算量が多くなって装置の規模が大きくなってしまうという欠点が生じる。このため、本実施形態においてはこのようなことが生じないようにローパスフィルタのサイズを設定する。
The
次いで、圧縮処理部6は、画像データS0に対してダイナミックレンジ圧縮処理を施す。具体的には、下記の式(5)〜(7)に示すように、各画素のボケ濃度Y′を圧縮テーブルT0により処理した値である修正値LutDR(Y′)を算出し、さらに算出した修正値LutDR(Y′)に彩度補正係数f(C)を乗算することにより修正値LutDR(Y′)を補正し、画像S0の各画素のRGB各色データR0,G0,B0に対して、彩度補正係数f(C)により補正された修正値LutDR(Y′)を加算することにより、処理済みのRGB各色データR1,G1,B1を得る。
R1=R0+f(C)×LutDR(Y′) (5)
G1=G0+f(C)×LutDR(Y′) (6)
B1=B0+f(C)×LutDR(Y′) (7)
そして圧縮処理部6は、処理済みのRGB各色データR1,G1,B1からなる処理済み画像データS1を画像出力部7に出力する。
Next, the
R1 = R0 + f (C) × LutDR (Y ′) (5)
G1 = G0 + f (C) × LutDR (Y ′) (6)
B1 = B0 + f (C) × LutDR (Y ′) (7)
Then, the
画像出力部7は、処理済み画像データS1をプリント出力して処理済み画像のプリントPを得る。
The
次いで、本実施形態において行われる処理について説明する。図4は本実施形態において行われる処理を示すフローチャートである。まず、画像入力部1が画像データS0の入力を受け付ける(ステップS1)。次いで、画像解析部2が、画像データS0を解析してダイナミックレンジ圧縮率P0を設定し(ステップS2)、圧縮テーブル生成部3が画像解析部2が設定したダイナミックレンジ圧縮率P0に基づいて圧縮テーブルT0を生成する(ステップS3)。
Next, processing performed in the present embodiment will be described. FIG. 4 is a flowchart showing processing performed in the present embodiment. First, the
一方、彩度算出部4が画像S0の各画素の彩度Cを算出し(ステップS4)、彩度補正係数算出部5が彩度補正係数f(C)を算出する(ステップS5)。続いて、圧縮処理部6が上記式(5)〜(7)に示す演算を行って画像S0のダイナミックレンジを圧縮して処理済み画像データS1を得(ステップS6)、画像出力部7が処理済み画像データS1をプリント出力し(ステップS7)、処理を終了する。
On the other hand, the
このように、本実施形態においては、彩度が高いほど修正量が小さくなるように修正値LutDR(Y′)を補正する彩度補正係数f(C)を算出し、圧縮テーブルT0を参照することにより算出された修正値LutDR(Y′)を彩度補正係数f(C)により補正し、補正された修正値f(C)×LutDR(Y′)を各画素の画素値に加算することにより処理済み画像データS1を算出するようにしたものである。このため、彩度Cが高い高彩度画素においては、同一の濃度を有するグレーのような低彩度画素よりもダイナミックレンジが圧縮される程度が小さくなり、その結果、画像S0に含まれる高彩度画素が飽和する程度も小さくすることができる。したがって、本実施形態によれば、高彩度画素が多い画像S0に対して、ダイナミックレンジを圧縮しつつも、高彩度画素の飽和を防止することができる。 As described above, in this embodiment, the saturation correction coefficient f (C) for correcting the correction value LutDR (Y ′) is calculated so that the correction amount decreases as the saturation increases, and the compression table T0 is referred to. The correction value LutDR (Y ′) calculated in this way is corrected by the saturation correction coefficient f (C), and the corrected correction value f (C) × LutDR (Y ′) is added to the pixel value of each pixel. Thus, the processed image data S1 is calculated. For this reason, in a high saturation pixel having a high saturation C, the degree to which the dynamic range is compressed is smaller than in a low saturation pixel such as gray having the same density, and as a result, the high saturation pixel included in the image S0 is reduced. The degree of saturation can also be reduced. Therefore, according to the present embodiment, it is possible to prevent saturation of high saturation pixels while compressing the dynamic range for the image S0 having many high saturation pixels.
なお、上記実施形態においては、圧縮テーブルT0を画像S0のシャドウ側のダイナミックレンジを圧縮するものとしているが、図5に示すように画像S0のハイライト側のダイナミックレンジを圧縮する圧縮テーブルT0や、図6に示すようにシャドウ側およびハイライト側の双方のダイナミックレンジを圧縮する圧縮テーブルT0を生成してもよい。 In the above embodiment, the compression table T0 compresses the dynamic range on the shadow side of the image S0. However, as shown in FIG. 5, the compression table T0 compresses the dynamic range on the highlight side of the image S0. As shown in FIG. 6, a compression table T0 for compressing the dynamic range on both the shadow side and the highlight side may be generated.
また、上記実施形態においては、圧縮処理部6において画像S0のボケ濃度Y′からなるボケ画像を求めて画像データS0のダイナミックレンジを圧縮しているが、ボケ濃度Y′に代えて、ローパスフィルタによりフィルタリング処理を施す前の濃度Yを用いて、下記の式(8)〜(10)に示すように、画像S0の各画素のRGB各色データR0,G0,B0に対して、各画素の濃度Yを圧縮テーブルT0により処理した値LutDR(Y)を加算することにより、処理済みのRGB各色データR1,G1,B1を得るようにしてもよい。これにより、ダイナミックレンジ圧縮処理を高速に行うことができる。
R1=R0+f(C)×LutDR(Y) (8)
G1=G0+f(C)×LutDR(Y) (9)
B1=B0+f(C)×LutDR(Y) (10)
In the above embodiment, the
R1 = R0 + f (C) × LutDR (Y) (8)
G1 = G0 + f (C) × LutDR (Y) (9)
B1 = B0 + f (C) × LutDR (Y) (10)
1 画像入力部
2 画像解析部
3 圧縮テーブル生成部
4 彩度算出部
5 彩度補正係数算出部
6 圧縮処理部
7 画像出力部
DESCRIPTION OF
Claims (4)
前記カラー画像のダイナミックレンジに基づいて、前記再生手段の濃度再現域内に収まるように前記カラー画像のダイナミックレンジを圧縮するためのダイナミックレンジ圧縮率を設定する圧縮率設定手段と、
前記ダイナミックレンジ圧縮率に基づいて、前記カラー画像の各画素の画素値に応じた修正値を算出するための圧縮テーブルを生成する圧縮テーブル生成手段と、
前記カラー画像の各画素における彩度を算出する彩度算出手段と、
該彩度算出手段が算出した彩度が高いほど修正量が小さくなるように前記修正値を補正するための彩度補正係数を算出する彩度補正係数算出手段とを備え、
前記ダイナミックレンジ圧縮手段は、前記圧縮テーブルを参照して前記修正値を算出し、該修正値を前記彩度補正係数により補正して補正修正値を算出し、該補正修正値を前記各画素の画素値に加算することにより前記カラー画像のダイナミックレンジを圧縮して前記処理済み画像を得る手段であることを特徴とする画像処理装置。 In order to reproduce in the reproduction means having a predetermined density reproduction area and color reproduction area, the pixel value of each pixel of the color image is set so that the density area of the color image falls within the density reproduction area of the reproduction means. Dynamic range compression that calculates a correction value to be corrected and adds the correction value to the pixel value of each pixel of the color image to compress the dynamic range of the color image to obtain a processed image in which the dynamic range is compressed In an image processing apparatus comprising means,
Based on the dynamic range of the color image, a compression rate setting unit that sets a dynamic range compression rate for compressing the dynamic range of the color image so as to be within a density reproduction range of the reproduction unit;
Compression table generating means for generating a compression table for calculating a correction value according to a pixel value of each pixel of the color image based on the dynamic range compression rate;
A saturation calculating means for calculating the saturation at each pixel of the color image;
Saturation correction coefficient calculation means for calculating a saturation correction coefficient for correcting the correction value so that the correction amount decreases as the saturation calculated by the saturation calculation means increases,
The dynamic range compression means calculates the correction value by referring to the compression table, calculates the correction correction value by correcting the correction value with the saturation correction coefficient, and calculates the correction correction value for each pixel. An image processing apparatus, characterized in that the processed image is obtained by compressing a dynamic range of the color image by adding to a pixel value.
前記カラー画像のダイナミックレンジに基づいて、前記再生手段の濃度再現域内に収まるように前記カラー画像のダイナミックレンジを圧縮するためのダイナミックレンジ圧縮率を設定し、
前記ダイナミックレンジ圧縮率に基づいて、前記カラー画像の各画素の画素値に応じた修正値を算出するための圧縮テーブルを生成し、
前記カラー画像の各画素における彩度を算出し、
該算出した彩度が高いほど修正量が小さくなるように前記修正値を補正するための彩度補正係数を算出し、
前記圧縮テーブルを参照して前記修正値を算出し、該修正値を前記彩度補正係数により補正して補正修正値を算出し、該補正修正値を前記各画素の画素値に加算することにより前記カラー画像のダイナミックレンジを圧縮して前記処理済み画像を得ることを特徴とする画像処理方法。 In order to reproduce in the reproduction means having a predetermined density reproduction area and color reproduction area, the pixel value of each pixel of the color image is set so that the density area of the color image falls within the density reproduction area of the reproduction means. An image processing method for calculating a correction value to be corrected and adding the correction value to a pixel value of each pixel of the color image to compress the dynamic range of the color image to obtain a processed image in which the dynamic range is compressed In
Based on the dynamic range of the color image, set a dynamic range compression ratio for compressing the dynamic range of the color image so as to be within the density reproduction range of the reproduction means,
Based on the dynamic range compression rate, generate a compression table for calculating a correction value according to the pixel value of each pixel of the color image,
Calculating the saturation at each pixel of the color image;
Calculating a saturation correction coefficient for correcting the correction value so that the correction amount decreases as the calculated saturation increases,
By calculating the correction value with reference to the compression table, correcting the correction value with the saturation correction coefficient to calculate a correction correction value, and adding the correction correction value to the pixel value of each pixel An image processing method, wherein the processed image is obtained by compressing a dynamic range of the color image.
前記カラー画像のダイナミックレンジに基づいて、前記再生手段の濃度再現域内に収まるように前記カラー画像のダイナミックレンジを圧縮するためのダイナミックレンジ圧縮率を設定する手順と、
前記ダイナミックレンジ圧縮率に基づいて、前記カラー画像の各画素の画素値に応じた修正値を算出するための圧縮テーブルを生成する手順と、
前記カラー画像の各画素における彩度を算出する手順と、
該算出した彩度が高いほど修正量が小さくなるように前記修正値を補正するための彩度補正係数を算出する手順と、
前記圧縮テーブルを参照して前記修正値を算出し、該修正値を前記彩度補正係数により補正して補正修正値を算出し、該補正修正値を前記各画素の画素値に加算することにより前記カラー画像のダイナミックレンジを圧縮して前記処理済み画像を得る手順とを有することを特徴とするプログラム。 In order to reproduce in the reproduction means having a predetermined density reproduction area and color reproduction area, the pixel value of each pixel of the color image is set so that the density area of the color image falls within the density reproduction area of the reproduction means. An image processing method for calculating a correction value to be corrected and adding the correction value to a pixel value of each pixel of the color image to compress the dynamic range of the color image to obtain a processed image in which the dynamic range is compressed In a program for causing a computer to execute
Based on the dynamic range of the color image, a procedure for setting a dynamic range compression ratio for compressing the dynamic range of the color image so as to be within the density reproduction range of the reproducing means;
A procedure for generating a compression table for calculating a correction value according to a pixel value of each pixel of the color image based on the dynamic range compression rate;
Calculating the saturation at each pixel of the color image;
A procedure for calculating a saturation correction coefficient for correcting the correction value such that the higher the calculated saturation, the smaller the correction amount;
By calculating the correction value with reference to the compression table, correcting the correction value with the saturation correction coefficient to calculate a correction correction value, and adding the correction correction value to the pixel value of each pixel And a procedure for obtaining the processed image by compressing the dynamic range of the color image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003379726A JP2005143008A (en) | 2003-11-10 | 2003-11-10 | Image processor, image processing method and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003379726A JP2005143008A (en) | 2003-11-10 | 2003-11-10 | Image processor, image processing method and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005143008A true JP2005143008A (en) | 2005-06-02 |
Family
ID=34689687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003379726A Withdrawn JP2005143008A (en) | 2003-11-10 | 2003-11-10 | Image processor, image processing method and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005143008A (en) |
-
2003
- 2003-11-10 JP JP2003379726A patent/JP2005143008A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3584389B2 (en) | Image processing method and image processing apparatus | |
JP2003123070A (en) | Method for image data processing and computer program | |
JPH02301295A (en) | Video printer device | |
JP2002044473A (en) | Image-processing method, image-processing device, and record medium with program for executing image- processing method stored thereon | |
JP4639037B2 (en) | Image processing method and apparatus | |
JP4217041B2 (en) | Filtering | |
JP2004159311A (en) | Image processing apparatus and image processing method | |
JP4739256B2 (en) | Image processing apparatus and method, and program | |
US7580158B2 (en) | Image processing apparatus, method and program | |
JP2004246644A (en) | Apparatus, method, and program for image processing | |
JP4208767B2 (en) | Image processing apparatus and image processing method | |
JP2010068361A (en) | Photographic image processing method, photographic image processing program, and photographic image processor | |
JP4261290B2 (en) | Image processing apparatus and method, and program | |
JPH11339035A (en) | Method for deciding image processing parameter and device therefor | |
JP2001292449A (en) | Image processing unit, image processing method, and recording medium | |
JP4303061B2 (en) | Image processing apparatus and method, and program | |
JP2005275581A (en) | Image processing method and device, and program | |
JP2005143008A (en) | Image processor, image processing method and program | |
US6678420B1 (en) | Method, apparatus and recording medium for image processing | |
JP2006094161A (en) | Apparatus, method and program for image processing | |
JP4087807B2 (en) | Image processing method, apparatus, and program | |
JP2006019847A (en) | Image processor, processing method and program | |
JP2005109871A (en) | Image processor, method and program | |
JP4091220B2 (en) | Image processing method and apparatus, and recording medium | |
JP2005107872A (en) | Image processing apparatus and method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20070206 |