JP4303061B2 - Image processing apparatus and method, and program - Google Patents

Image processing apparatus and method, and program Download PDF

Info

Publication number
JP4303061B2
JP4303061B2 JP2003304383A JP2003304383A JP4303061B2 JP 4303061 B2 JP4303061 B2 JP 4303061B2 JP 2003304383 A JP2003304383 A JP 2003304383A JP 2003304383 A JP2003304383 A JP 2003304383A JP 4303061 B2 JP4303061 B2 JP 4303061B2
Authority
JP
Japan
Prior art keywords
image
correction amount
density
dynamic range
compression table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003304383A
Other languages
Japanese (ja)
Other versions
JP2005079624A (en
Inventor
裕介 杉本
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 Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2003304383A priority Critical patent/JP4303061B2/en
Priority to US10/927,037 priority patent/US7580158B2/en
Publication of JP2005079624A publication Critical patent/JP2005079624A/en
Application granted granted Critical
Publication of JP4303061B2 publication Critical patent/JP4303061B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Description

本発明は、画像のダイナミックレンジを、画像を出力する例えばプリンタ等の出力デバイスのダイナミックレンジに収まるように圧縮する画像処理装置および方法並びに画像処理方法をコンピュータに実行させるためのプログラムに関するものである。   The present invention relates to an image processing apparatus and method for compressing a dynamic range of an image so as to be within the dynamic range of an output device such as a printer that outputs an image, and a program for causing a computer to execute the image processing method. .

従来より、デジタルカメラ等の撮像装置により被写体を撮影することにより取得された画像や、ネガフイルム、リバーサルフイルム等の写真フイルムや印刷物等に記録された画像を光電的に読み取ることにより得られた画像をプリンタ等の再生装置において再生することが行われている。このように画像を再生装置において再生する場合において、画像上の明部および/または暗部がつぶれてしまうことを防止するために、画像のダイナミックレンジが再生装置のダイナミックレンジ内に収まるように、画像のダイナミックレンジを圧縮することが行われている。   Conventionally, an image obtained by photoelectrically reading an image obtained 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参照)。   In such a dynamic range compression method, a filtering process using a low-pass filter is performed on an image to create a blurred image representing only a structure having a low spatial frequency in the image, and the dynamic range is compressed using the blurred image. Thus, there has been proposed a method for suppressing the collapse of both the bright and dark portions of the image while keeping the fine texture contrast in the bright and dark portions included in the image (see Patent Document 1).

また、ボケ画像を用いてダイナミックレンジを圧縮する際に、フィルタのラインメモリを節約するためにIIRフィルタを用いるようにした方法(特許文献2参照)、および処理済み画像のエッジに現れるアーチファクトを抑制するために、周波数帯域が異なる複数のボケ画像を生成し、生成した複数のボケ画像の積算信号を用いてダイナミックレンジを圧縮する手法(特許文献3参照)が提案されている。
特開平9−130609号公報 特開平9−182093号公報 特開平10−75364号公報
Also, when compressing the dynamic range using a blurred image, a method using an IIR filter to save the filter line memory (see Patent Document 2), and suppressing artifacts appearing at the edge of the processed image In order to achieve this, a method has been proposed in which a plurality of blurred images having different frequency bands are generated, and a dynamic range is compressed using an integrated signal of the generated plurality of blurred images (see Patent Document 3).
JP-A-9-130609 Japanese Patent Laid-Open No. 9-182093 JP-A-10-75364

しかしながら、上記特許文献2,3に記載された方法においては、フィルタのラインメモリを節約できたり、処理済み画像の画質を向上させることができるものの、ダイナミックレンジを圧縮するための演算量が多く、処理に長時間を要するものとなっている。   However, in the methods described in Patent Documents 2 and 3, although the line memory of the filter can be saved and the image quality of the processed image can be improved, the amount of calculation for compressing the dynamic range is large, Processing takes a long time.

本発明は上記事情に鑑みなされたものであり、画像のダイナミックレンジを圧縮する際の処理時間を短縮することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to shorten the processing time when compressing the dynamic range of an image.

本発明による画像処理装置は、画像を表す画像データに基づいて、該画像のダイナミックレンジを圧縮するための補正量を算出する補正量算出手段と、該補正量により前記画像データを補正して前記画像のダイナミックレンジを圧縮する処理を含む画像処理を前記画像に施すことにより、ダイナミックレンジが圧縮された処理済み画像を得る処理手段とを備えた画像処理装置において、
前記画像処理による画像の変化量が所定のしきい値よりも大きいか否かを判定する判定手段をさらに備え、
前記補正量算出手段は、前記判定が肯定された場合、前記画像のボケ画像を生成して該ボケ画像から前記補正量を算出し、前記判定が否定された場合、前記画像から前記補正量を算出する手段であることを特徴とするものである。
An image processing apparatus according to the present invention includes: a correction amount calculation unit that calculates a correction amount for compressing the dynamic range of the image based on image data representing the image; and the image data is corrected by the correction amount to correct the image data. In an image processing apparatus comprising: a processing unit that obtains a processed image with a compressed dynamic range by performing image processing including processing for compressing a dynamic range of an image on the image;
A determination means for determining whether or not an image change amount due to the image processing is larger than a predetermined threshold;
The correction amount calculating means generates a blurred image of the image when the determination is affirmed, calculates the correction amount from the blurred image, and when the determination is negative, calculates the correction amount from the image. It is a means for calculating.

なお、本発明による画像処理装置においては、前記判定手段を、前記ダイナミックレンジを圧縮する際の圧縮率の大きさ、該補正量を算出する際に用いられる圧縮テーブルの傾きの大きさ、および前記画像処理がAE処理を含む場合における濃度補正量の大きさを前記画像の変化量として、前記判定を行う手段としてもよい。   In the image processing apparatus according to the present invention, the determination means may determine the size of the compression ratio used when compressing the dynamic range, the size of the inclination of the compression table used when calculating the correction amount, and the Means for performing the determination may be set by using the magnitude of the density correction amount when the image processing includes AE processing as the amount of change in the image.

本発明による画像処理方法は、画像を表す画像データに基づいて、該画像のダイナミックレンジを圧縮するための補正量を算出し、該補正量により前記画像データを補正して前記画像のダイナミックレンジを圧縮する処理を含む画像処理を前記画像に施すことにより、ダイナミックレンジが圧縮された処理済み画像を得る画像処理方法において、
前記画像処理による画像の変化量が所定のしきい値よりも大きいか否かを判定し、
前記判定が肯定された場合、前記画像のボケ画像を生成して該ボケ画像から前記補正量を算出し、前記判定が否定された場合、前記画像から前記補正量を算出することを特徴とするものである。
The image processing method according to the present invention calculates a correction amount for compressing the dynamic range of the image based on the image data representing the image, and corrects the image data by the correction amount to reduce the dynamic range of the image. In an image processing method for obtaining a processed image having a compressed dynamic range by performing image processing including compression processing on the image,
Determining whether or not the amount of change in the image by the image processing is greater than a predetermined threshold;
When the determination is affirmative, a blurred image of the image is generated and the correction amount is calculated from the blurred image. When the determination is negative, the correction amount is calculated from the image. Is.

なお、本発明による画像処理方法をコンピュータに実行させるためのプログラムとして提供してもよい。   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.

本発明によれば、ダイナミックレンジ圧縮処理を含む画像処理による画像の変化量が所定のしきい値よりも大きいか否かが判定される。そして、この判定が肯定されると、ダイナミックレンジ圧縮処理により画像に含まれる細かなテクスチャのつぶれが大きくなるため、上記特許文献1に記載されたように画像のボケ画像が生成されてボケ画像からダイナミックレンジの補正量が算出される。一方、上記判定が否定されると、画像処理による画像の変化量は小さく、画像に含まれる細かなテクスチャのつぶれも小さいため、ボケ画像ではなく画像からダイナミックレンジの補正量が算出される。このため、画像処理による画像の変化量が小さい場合には、ボケ画像を用いて補正量を算出する場合と比較して演算量を低減することができ、これによりダイナミックレンジ圧縮処理を含む画像処理を画像に施す際の処理時間を短縮することができる。   According to the present invention, it is determined whether or not an image change amount due to image processing including dynamic range compression processing is greater than a predetermined threshold value. If this determination is affirmed, since the fine texture collapse included in the image is increased by the dynamic range compression processing, a blurred image of the image is generated as described in Patent Document 1, and the blurred image is generated from the blurred image. A dynamic range correction amount is calculated. On the other hand, if the determination is negative, the amount of change in the image due to image processing is small, and the fine textures included in the image are small, so the dynamic range correction amount is calculated from the image instead of the blurred image. For this reason, when the amount of image change due to image processing is small, the amount of calculation can be reduced compared to the case where the correction amount is calculated using a blurred image, thereby enabling image processing including dynamic range compression processing. The processing time when applying to the image can be shortened.

また、画像のダイナミックレンジを圧縮する際の圧縮率、ダイナミックレンジを圧縮するための補正量を算出する際に用いられる圧縮テーブルの傾きの大きさ、および画像処理がAE処理を含む場合における明るさ補正量の大きさのいずれかを画像の変化量とすることにより、画像の変化量が所定のしきい値よりも大きいか否かの判定を簡易に行うことができる。   Also, the compression rate when compressing the dynamic range of the image, the magnitude of the inclination of the compression table used when calculating the correction amount for compressing the dynamic range, and the brightness when the image processing includes AE processing By determining one of the correction amounts as the image change amount, it is possible to easily determine whether or not the image change amount is larger than a predetermined threshold value.

以下、図面を参照して本発明の実施形態について説明する。図1は本発明の実施形態による画像処理装置の構成を示す概略ブロック図である。図1に示すように、本実施形態による画像処理装置は、RGBの各色データからなるカラー画像を表す画像データS0の入力を受け付ける画像入力部1、画像データS0に対してダイナミックレンジ圧縮処理を含む画像処理を施して処理済み画像データS3を得る画像処理部2および処理済み画像データS3を再生するプリンタやモニタ等の画像出力部3とを備える。なお、本実施形態においては、画像出力部3を処理済み画像データS3のプリント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 includes an image input unit 1 that receives input of image data S0 representing a color image composed of RGB color data, and includes dynamic range compression processing for the image data S0. An image processing unit 2 that performs image processing to obtain processed image data S3 and an image output unit 3 such as a printer or a monitor that reproduces the processed image data S3 are provided. In the present embodiment, the image output unit 3 is a printer that obtains the print P of the processed image data S3.

画像入力部1は、メディアに記録された画像データS0をメディアから読み出すメディアドライブや、ネットワーク経由で送信された画像データS0の入力を受け付ける各種インターフェースからなる。なお、画像データS0はデジタルカメラ等の撮像装置により取得されたものであってもよく、フイルムや原稿に記録された画像を光電的に読み出すことにより取得されたものであってもよい。また、本実施形態においては8ビットの画像データS0が入力されるものとする。   The image input unit 1 includes a media drive that reads image data S0 recorded on the medium from the medium, and various interfaces that receive input of the image data S0 transmitted via the network. The image data S0 may be acquired by an imaging device such as a digital camera, or may be acquired by photoelectrically reading an image recorded on a film or a document. In the present embodiment, it is assumed that 8-bit image data S0 is input.

画像処理部2は、画像データS0のビット数を8ビットから10または12ビットに変換してビット変換された画像データS1を得るビット変換部21、画像データS1に対してAE処理を施してAE処理が施された画像データS2を得るAE処理部22、画像データS2により表される画像(以下画像についても同様に参照符号S2を用いる)を解析して、ダイナミックレンジを圧縮する圧縮テーブルT0の傾きを求めるための係数を算出する画像解析部23、画像解析部23が算出した係数に基づいて、画像S0のダイナミックレンジを圧縮する圧縮テーブルT0を生成する圧縮テーブル生成部24、圧縮テーブル生成部24が生成した圧縮テーブルT0によりダイナミックレンジの補正量C0を算出する補正量算出部25、および補正量C0により画像S2のダイナミックレンジを圧縮して処理済み画像データS3を得る圧縮処理部26を備える。   The image processing unit 2 converts the number of bits of the image data S0 from 8 bits to 10 or 12 bits to obtain bit-converted image data S1, and performs AE processing on the image data S1 to perform AE processing. The AE processing unit 22 that obtains the processed image data S2, the analysis of the image represented by the image data S2 (hereinafter, the reference symbol S2 is also used for the image), and the compression table T0 for compressing the dynamic range An image analysis unit 23 that calculates a coefficient for obtaining an inclination, a compression table generation unit 24 that generates a compression table T0 that compresses the dynamic range of the image S0 based on the coefficient calculated by the image analysis unit 23, and a compression table generation unit Correction amount calculation unit 25 for calculating dynamic range correction amount C0 based on compression table T0 generated by 24, and correction C0 comprises a compression unit 26 for obtaining processed image data S3 by compressing the dynamic range of the image S2 by.

ビット変換部21は、画像データS0のビット数を、8ビットよりも大きい10または12ビットに変換してビット数が変換された画像データS1を得る。   The bit conversion unit 21 converts the number of bits of the image data S0 to 10 or 12 bits larger than 8 bits to obtain the image data S1 in which the number of bits is converted.

AE処理部22は、画像データS1により表される画像(以下画像についても参照符号S1を用いる)から肌色の領域を顔領域として検出し、顔領域があらかじめ定められた適切な明るさとなるように、画像S1の全画素に所定値を加減算することにより、AE処理が施された画像データS2を得る。これにより、例えば画像S1の各画素から所定値を減算する場合には、図2に示すように、画像S1の濃度の全体が低減されることとなる。なお、AE処理の方法はこれに限定されるものではなく、公知の各種方法を適用することができる。   The AE processing unit 22 detects a skin color area as a face area from an image represented by the image data S1 (hereinafter also using the reference sign S1), so that the face area has a predetermined appropriate brightness. The image data S2 subjected to the AE process is obtained by adding / subtracting a predetermined value to / from all the pixels of the image S1. Thereby, for example, when a predetermined value is subtracted from each pixel of the image S1, the entire density of the image S1 is reduced as shown in FIG. Note that the AE treatment method is not limited to this, and various known methods can be applied.

画像解析部23は、以下のようにして画像S2の圧縮率を設定する。まず、画像解析部23は、下記の式(1)により画像S2の各画素の濃度Yを算出する。なお、R0,G0,B0は、画像S2の各画素のRGBデータである。
Y=0.3125R0+0.3750G0+0.3125B0 (1)
次いで画像解析部23は濃度Yのヒストグラムを求める。図3は濃度YのヒストグラムHを示す図である。画像解析部23は、ヒストグラムHにおいて、ハイライト側およびシャドウ側からの累積相対度数が3%を示す濃度をそれぞれ画像データS2のハイライト濃度Yhおよびシャドウ濃度Ysとして求める。
The image analysis unit 23 sets the compression rate of the image S2 as follows. First, the image analysis unit 23 calculates the density Y of each pixel of the image S2 by the following equation (1). R0, G0, and B0 are RGB data of each pixel of the image S2.
Y = 0.3125R0 + 0.3750G0 + 0.3125B0 (1)
Next, the image analysis unit 23 obtains a histogram of density Y. FIG. 3 is a diagram showing a histogram H of density Y. In the histogram H, the image analysis unit 23 obtains the density at which the cumulative relative frequency from the highlight side and the shadow side is 3% as the highlight density Yh and the shadow density Ys of the image data S2, respectively.

一方、画像解析部23には画像出力部3が再生可能な最低濃度Dminおよび最高濃度Dmaxの情報が入力されており、画像解析部23は、ハイライト濃度Yhと最低濃度Dminとを比較して、ハイライト濃度Yhの方が最低濃度Dminよりも低い場合には、あらかじめ設定されている基準濃度Y0を中心として、ハイライト濃度Yhが最低濃度Dmin内に収まるようにするための圧縮テーブルT0の傾きを求める係数Phを算出する。一方、画像解析部23は、シャドウ濃度Ysと最高濃度Dmaxとを比較して、シャドウ濃度Ysの方が最高濃度Dmaxよりも高い場合には、あらかじめ設定されている基準濃度Y0を中心として、シャドウ濃度Ysが最高濃度Dmax内に収まるようにするための圧縮テーブルT0の傾きを求める係数Psを算出する。具体的には、下記の式(2)および(3)に示すように係数Ph,Psを算出する。   On the other hand, information on the minimum density Dmin and the maximum density Dmax that can be reproduced by the image output unit 3 is input to the image analysis unit 23, and the image analysis unit 23 compares the highlight density Yh with the minimum density Dmin. When the highlight density Yh is lower than the minimum density Dmin, the compression table T0 for keeping the highlight density Yh within the minimum density Dmin around the preset reference density Y0 is used. A coefficient Ph for obtaining the inclination is calculated. On the other hand, the image analysis unit 23 compares the shadow density Ys and the maximum density Dmax. If the shadow density Ys is higher than the maximum density Dmax, the image analysis unit 23 uses the preset reference density Y0 as the center to perform the shadowing. A coefficient Ps for calculating the slope of the compression table T0 for keeping the density Ys within the maximum density Dmax is calculated. Specifically, the coefficients Ph and Ps are calculated as shown in the following equations (2) and (3).

Ph=(Dmin−Y0)/(Yh−Y0) (2)
Ps=(Dmax−Y0)/(Ys−Y0) (3)
ここで、基準濃度Y0の値としては、例えば画像S0に含まれる被写体が人物である場合、肌色と略同一の濃度である0.50〜0.70の間の値(ビット数に対する割合として)、好ましくは0.6に設定される。
Ph = (Dmin−Y0) / (Yh−Y0) (2)
Ps = (Dmax−Y0) / (Ys−Y0) (3)
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.

なお、ハイライト濃度Yhが最低濃度Dmin内に収まる場合には係数Phは算出されず、シャドウ濃度Ysが最高濃度Dmax内に収まる場合には係数Psは算出されない。   Note that the coefficient Ph is not calculated when the highlight density Yh falls within the minimum density Dmin, and the coefficient Ps is not calculated when the shadow density Ys falls within the maximum density Dmax.

圧縮テーブル生成部24は、画像解析部23が設定した係数Ph,Psに基づいて圧縮テーブルT0を生成する。図4は圧縮テーブルの例を示す図である。図4に示すように圧縮テーブルT0において、Y0は上述した基準濃度であり、直線部分の傾きはハイライト側(すなわち基準濃度Y0よりも左側)ではPh−1、シャドウ側(すなわち基準濃度Y0よりも右側)ではPs−1となっている。   The compression table generation unit 24 generates a compression table T0 based on the coefficients Ph and Ps set by the image analysis unit 23. FIG. 4 is a diagram illustrating an example of a compression table. As shown in FIG. 4, in the compression table T0, Y0 is the above-described reference density, and the slope of the straight line portion is Ph-1 on the highlight side (that is, the left side of the reference density Y0), and shadow side (that is, from the reference density Y0). Is also Ps-1.

なお、画像解析部23において、係数Psが算出されなかった場合は図5に示すようにハイライト部のみを圧縮する圧縮テーブルT0が生成される。また、係数Phが算出されなかった場合には図6に示すようにシャドウ部のみを圧縮する圧縮テーブルT0が生成される。本実施形態においては、図4に示すようにシャドウ部およびハイライト部の双方を圧縮する圧縮テーブルT0が生成されたものとする。   If the coefficient Ps is not calculated in the image analysis unit 23, a compression table T0 for compressing only the highlight portion is generated as shown in FIG. If the coefficient Ph is not calculated, a compression table T0 for compressing only the shadow part is generated as shown in FIG. In the present embodiment, it is assumed that a compression table T0 for compressing both the shadow part and the highlight part is generated as shown in FIG.

ここで、圧縮テーブルT0において、傾きが変化する部分(すなわち基準濃度Y0の点)が不連続であると、処理済み画像にアーチファクトが生じる場合があるため、傾きが連続するような関数を設定することにより、アーチファクトの発生を防止することができる。   Here, 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 is set. As a result, the occurrence of artifacts can be prevented.

補正量算出部25は、上述した式(1)により画像S2の各画素の濃度Yを算出する。そして、生成された圧縮テーブルT0のハイライト側の傾きの大きさ|Ph−1|がしきい値Th1より大きくかつシャドウ側の傾きの大きさ|Ps−1|がしきい値Th2より大きいかを判定する。そして、この判定が肯定された場合には、ダイナミックレンジを圧縮することにより、像S2に含まれる細かなテクスチャのつぶれが大きくなるため、画像S2に対して所定サイズのローパスフィルタによるフィルタリング処理を施して、ボケ濃度Y′からなるボケ画像S2′を得る。ここで、ローパスフィルタのサイズが小さ過ぎると鮮鋭度が不自然に強調されたり、エッジ部分のオーバーシュートが目立つようになってしまう。一方、顔等の主要な被写体が小さいときにボケマスクの効果があまり現れなかったり、演算量が多くなって装置の規模が大きくなってしまうという欠点が生じる。このため、第1の実施形態においてはこのようなことが生じないようにローパスフィルタのサイズを設定する。 The correction amount calculation unit 25 calculates the density Y of each pixel of the image S2 by the above-described equation (1). Whether the magnitude | Ph−1 | of the highlight side of the generated compression table T0 is larger than the threshold Th1 and the magnitude | Ps−1 | of the shadow side is larger than the threshold Th2. Determine. When this determination is positive, by compressing the dynamic range, since the collapse of the fine texture included in images S2 is increased, the filtering process with the low pass filter of a predetermined size for image S2 As a result, a blurred image S2 ′ having the blurred density Y ′ is obtained. Here, if the size of the low-pass filter is too small, the sharpness is unnaturally emphasized or the overshoot of the edge portion becomes conspicuous. On the other hand, when the main subject such as the face is small, there is a drawback that the effect of the blur mask does not appear so much, or the amount of calculation increases and the scale of the apparatus increases. For this reason, in the first embodiment, the size of the low-pass filter is set so that this does not occur.

そして、ボケ濃度Y′を用いて圧縮テーブルT0を参照して得られる値LutDR(Y′)をダイナミックレンジの補正量C0として算出する。   Then, the value LutDR (Y ′) obtained by referring to the compression table T0 using the blur density Y ′ is calculated as the dynamic range correction amount C0.

一方、上記判定が否定された場合には、ダイナミックレンジ圧縮処理による画像S2の変化量は小さく、画像S2に含まれる細かなテクスチャのつぶれも小さいため、ボケ濃度Y′ではなく、濃度Yを用いて圧縮テーブルT0を参照して得られる値LutDR(Y)をダイナミックレンジの補正量C0として算出する。   On the other hand, when the determination is negative, the change amount of the image S2 due to the dynamic range compression process is small, and the fine texture included in the image S2 is small, so the density Y is used instead of the blur density Y ′. Then, the value LutDR (Y) obtained by referring to the compression table T0 is calculated as the dynamic range correction amount C0.

圧縮処理部26は、画像データS2に対して補正量算出部25が算出した補正量C0に基づいてダイナミックレンジ圧縮処理を施す。具体的には、下記の式(4)〜(6)に示すように、画像S2の各画素のRGB各色データR0,G0,B0に対して、補正量C0を加算することにより、処理済みのRGB各色データR1,G1,B1を得る。
R1=R0+C0 (4)
G1=G0+C0 (5)
B1=B0+C0 (6)
そして圧縮処理部26は、処理済みのRGB各色データR1,G1,B1からなる処理済み画像データS3を画像出力部3に出力する。
The compression processing unit 26 performs dynamic range compression processing on the image data S2 based on the correction amount C0 calculated by the correction amount calculation unit 25. Specifically, as shown in the following formulas (4) to (6), the correction amount C0 is added to the RGB color data R0, G0, B0 of each pixel of the image S2 to complete the processing. RGB color data R1, G1, and B1 are obtained.
R1 = R0 + C0 (4)
G1 = G0 + C0 (5)
B1 = B0 + C0 (6)
Then, the compression processing unit 26 outputs processed image data S3 including processed RGB color data R1, G1, and B1 to the image output unit 3.

これにより、図2に示すように、基準濃度Y0を中心として画像S2のハイライト側の濃度が高められ、シャドウ側の濃度が低められることにより、画像S2のダイナミックレンジが圧縮される。   As a result, as shown in FIG. 2, the density on the highlight side of the image S2 is increased around the reference density Y0, and the density on the shadow side is decreased, thereby compressing the dynamic range of the image S2.

画像出力部3は、処理済み画像データS3のビット数を8ビットに変換してプリント出力して処理済み画像のプリントPを得る。   The image output unit 3 converts the number of bits of the processed image data S3 into 8 bits and prints out to obtain a processed image print P.

次いで、本実施形態の動作について説明する。図7は本実施形態において行われる処理を示すフローチャートである。まず、画像入力部1が画像データS0の入力を受け付ける(ステップS1)。次いで、ビット変換部21が画像データS0のビット数を変換して画像データS1を得(ステップS2)、AE処理部22が画像データS1をAE処理して画像データS2を得る(ステップS3)。そして、画像解析部23が係数Ph,Psを算出し(ステップS4)、圧縮テーブル生成部24が係数Ph,Psに基づいて圧縮テーブルT0を生成する(ステップS5)。   Next, the operation of this embodiment will be described. FIG. 7 is a flowchart showing processing performed in the present embodiment. First, the image input unit 1 accepts input of image data S0 (step S1). Next, the bit conversion unit 21 converts the number of bits of the image data S0 to obtain image data S1 (step S2), and the AE processing unit 22 performs AE processing on the image data S1 to obtain image data S2 (step S3). Then, the image analysis unit 23 calculates the coefficients Ph and Ps (step S4), and the compression table generation unit 24 generates the compression table T0 based on the coefficients Ph and Ps (step S5).

次いで、補正量算出部25が画像S2の各画素の濃度Yを算出し(ステップS6)、圧縮テーブルT0のハイライト側の傾きの大きさ|Ph−1|がしきい値Th1より大きくかつシャドウ側の傾きの大きさ|Ps−1|がしきい値Th2より大きいかを判定する(ステップS7)。ステップS7が肯定されると濃度Yのボケ濃度Y′からなるボケ画像S2′を生成し(ステップS8)、圧縮テーブルT0を参照してボケ濃度Y′からダイナミックレンジの補正量C0を算出する(ステップS9)。一方、ステップS7が否定されると濃度Yからダイナミックレンジの補正量C0を算出する(ステップS10)。   Next, the correction amount calculation unit 25 calculates the density Y of each pixel of the image S2 (step S6), and the magnitude | Ph-1 | of the highlight side of the compression table T0 is larger than the threshold value Th1 and is a shadow. It is determined whether the magnitude of the side inclination | Ps-1 | is larger than the threshold value Th2 (step S7). If the determination in step S7 is affirmative, a blurred image S2 ′ composed of a blurred density Y ′ of density Y is generated (step S8), and a dynamic range correction amount C0 is calculated from the blurred density Y ′ with reference to the compression table T0 (step S8). Step S9). On the other hand, if step S7 is negative, the dynamic range correction amount C0 is calculated from the density Y (step S10).

そして圧縮処理部26が補正量C0により画像S2のダイナミックレンジを圧縮して処理済み画像データS3を得(ステップS11)、画像出力部3が処理済み画像データS3をプリント出力し(ステップS12)、処理を終了する。   Then, the compression processing unit 26 compresses the dynamic range of the image S2 by the correction amount C0 to obtain processed image data S3 (step S11), and the image output unit 3 prints out the processed image data S3 (step S12). The process ends.

このように、本実施形態においては、圧縮テーブルT0のハイライト側の傾きの大きさ|Ph−1|がしきい値Th1より大きくかつシャドウ側の傾きの大きさ|Ps−1|がしきい値Th2より大きいか否かを判定し、この判定が肯定された場合には画像S2のボケ画像S2′を生成してボケ濃度Y′からダイナミックレンジの補正量C0を算出し、否定された場合には画像S2のボケ画像S2′を生成することなくダイナミックレンジの補正量C0を算出するようにしたものである。このため、圧縮テーブルT0の傾きが小さく、ダイナミックレンジ圧縮処理による画像の変化量が小さい場合には、ボケ濃度Y′から補正量C0を算出する場合と比較して演算量を低減することができ、これによりダイナミックレンジ圧縮処理を施す際の処理時間を短縮することができる。   As described above, in the present embodiment, the magnitude | Ph-1 | of the highlight side of the compression table T0 is larger than the threshold value Th1, and the magnitude of the inclination | Ps-1 | When it is determined whether or not it is greater than the value Th2, if this determination is affirmative, a blurred image S2 ′ of the image S2 is generated, and the dynamic range correction amount C0 is calculated from the blurred density Y ′. In this example, the correction amount C0 of the dynamic range is calculated without generating the blurred image S2 ′ of the image S2. For this reason, when the inclination of the compression table T0 is small and the change amount of the image by the dynamic range compression process is small, the amount of calculation can be reduced compared with the case where the correction amount C0 is calculated from the blur density Y ′. Thus, it is possible to shorten the processing time when performing the dynamic range compression processing.

なお、上記第1の実施形態においては、圧縮テーブルT0のハイライト側の傾きの大きさ|Ph−1|がしきい値Th1より大きくかつシャドウ側の傾きの大きさ|Ps−1|がしきい値Th2より大きい場合に、ボケ濃度Y′からダイナミックレンジの補正量C0を算出しているが、圧縮テーブルT0のハイライト側の傾きの大きさ|Ph−1|がしきい値Th1より大きいかまたはシャドウ側の傾きの大きさ|Ps−1|がしきい値Th2より大きい場合に、ボケ濃度Y′からダイナミックレンジの補正量C0を算出してもよい。なお、図5に示すように、ハイライト側のダイナミックレンジを圧縮する圧縮テーブルT0が求められた場合には、ハイライト側の傾きの大きさ|Ph−1|がしきい値Th1より大きいか否かを判定し、図6に示すようにシャドウ側のダイナミックレンジを圧縮する圧縮テーブルT0が求められた場合には、シャドウ側の傾きの大きさ|P−1|がしきい値Thより大きいか否かを判定すればよい。 In the first embodiment, the highlight side inclination magnitude | Ph-1 | of the compression table T0 is larger than the threshold Th1 and the shadow side inclination magnitude | Ps-1 | When the threshold value Th2 is greater than the threshold value Th2, the dynamic range correction amount C0 is calculated from the blur density Y '. However, the magnitude | Ph-1 | of the compression table T0 on the highlight side is greater than the threshold value Th1. Alternatively, when the magnitude of inclination on the shadow side | Ps−1 | is larger than the threshold value Th2, the dynamic range correction amount C0 may be calculated from the blur density Y ′. As shown in FIG. 5, when the compression table T0 for compressing the dynamic range on the highlight side is obtained, is the magnitude of the highlight side inclination | Ph-1 | larger than the threshold value Th1? If the compression table T0 for compressing the dynamic range on the shadow side is determined as shown in FIG. 6, the magnitude of the inclination on the shadow side | P s -1 | is the threshold Th 2. What is necessary is just to determine whether it is larger.

また、上記実施形態においては、画像解析部23および圧縮テーブル生成部24において圧縮テーブルT0を生成しているが、あらかじめ用意された圧縮テーブル(T1とする)を用いてダイナミックレンジの補正量C0を算出してもよい。図8はあらかじめ用意された圧縮テーブルT1の例を示す図である。このような圧縮テーブルT1を用いて画像S2のダイナミックレンジを圧縮した場合、図9に示すようにハイライト側の濃度が高められ、シャドウ側の濃度が低められた処理済み画像S3を得ることができるが、ハイライト側において濃度Ykよりも低い濃度域は画像出力部3において再現することができない。   In the above-described embodiment, the compression table T0 is generated by the image analysis unit 23 and the compression table generation unit 24. However, the dynamic range correction amount C0 is set using a compression table (T1) prepared in advance. It may be calculated. FIG. 8 is a diagram showing an example of the compression table T1 prepared in advance. When the dynamic range of the image S2 is compressed using such a compression table T1, it is possible to obtain a processed image S3 in which the density on the highlight side is increased and the density on the shadow side is decreased as shown in FIG. However, a density range lower than the density Yk on the highlight side cannot be reproduced in the image output unit 3.

このため、あらかじめ用意された圧縮テーブルT1を用いる場合、画像出力部3において再現可能な最低濃度Ykを求め、圧縮テーブルT1上において濃度Ykの補正量LutDR(Yk)を求め、補正量LutDR(Yk)をダイナミックレンジ圧縮率とし、ダイナミックレンジ圧縮率が所定のしきい値Th3よりも大きいか否かを判定してもよい。この場合、この判定が肯定されると、ダイナミックレンジ圧縮処理により画像に含まれる細かなテクスチャのつぶれが大きくなるため、ボケ濃度Y′からダイナミックレンジの補正量C0を算出し、上記判定が否定されると、画像処理による画像の変化量は小さく、画像S2に含まれる細かなテクスチャのつぶれも小さいため、濃度Yからダイナミックレンジの補正量C0を算出すればよい。   Therefore, when the compression table T1 prepared in advance is used, the lowest density Yk that can be reproduced by the image output unit 3 is obtained, the correction amount LutDR (Yk) of the density Yk is obtained on the compression table T1, and the correction amount LutDR (Yk ) May be a dynamic range compression rate, and it may be determined whether or not the dynamic range compression rate is greater than a predetermined threshold value Th3. In this case, if this determination is affirmed, the dynamic range compression processing increases the amount of fine texture included in the image. Therefore, the dynamic range correction amount C0 is calculated from the blur density Y ′, and the above determination is denied. Then, the amount of change in the image due to the image processing is small, and the fine texture included in the image S2 is also small. Therefore, the dynamic range correction amount C0 may be calculated from the density Y.

なお、圧縮テーブルT1は非線形であることから濃度Ykにおける微分値を求め、この微分値の大きさが所定のしきい値Th4よりも大きいか否かを判定してもよい。また、AE処理部22における所定値(すなわち画像S1から画像S2を得るために、画像S1に加減算する値)が所定のしきい値Th5よりも大きいか否かを判定してもよい。 Since the compression table T1 is non-linear, a differential value at the density Yk may be obtained, and it may be determined whether or not the magnitude of this differential value is greater than a predetermined threshold value Th4. Further, it may be determined whether or not a predetermined value in the AE processing unit 22 (that is, a value to be added to or subtracted from the image S1 in order to obtain the image S2 from the image S1 ) is larger than a predetermined threshold Th5.

これらの場合、上記判定が肯定されると、ダイナミックレンジ圧縮処理により画像に含まれる細かなテクスチャのつぶれが大きくなるため、ボケ濃度Y′からダイナミックレンジの補正量C0を算出し、上記判定が否定されると、画像処理による画像の変化量は小さく、画像S2に含まれる細かなテクスチャのつぶれも小さいため、濃度Yからダイナミックレンジの補正量C0を算出すればよい。   In these cases, if the determination is affirmed, the fine texture collapse included in the image is increased by the dynamic range compression processing. Therefore, the dynamic range correction amount C0 is calculated from the blur density Y ′, and the determination is negative. Then, the amount of change in the image due to the image processing is small, and the fine texture included in the image S2 is small, so the dynamic range correction amount C0 may be calculated from the density Y.

本発明の実施形態による画像処理装置の構成を示す概略ブロック図1 is a schematic block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention. AE処理およびダイナミックレンジ圧縮処理を説明するための図The figure for demonstrating AE processing and dynamic range compression processing 濃度のヒストグラムを示す図Diagram showing density histogram シャドウ側およびハイライトのダイナミックレンジを圧縮する圧縮テーブルの例を示すAn example of a compression table that compresses the dynamic range of the shadow side and highlight ハイライト側のダイナミックレンジを圧縮する圧縮テーブルの例を示す図The figure which shows the example of the compression table which compresses the dynamic range of highlight side シャドウ側のダイナミックレンジを圧縮する圧縮テーブルの例を示す図The figure which shows the example of the compression table which compresses the dynamic range of the shadow side 本実施形態において行われる処理を示すフローチャートA flowchart showing processing performed in the present embodiment あらかじめ用意された圧縮テーブルの例を示す図The figure which shows the example of the compression table prepared beforehand 図8に示す圧縮テーブルを用いたダイナミックレンジ圧縮処理を説明するための図The figure for demonstrating the dynamic range compression process using the compression table shown in FIG.

符号の説明Explanation of symbols

1 画像入力部
2 画像処理部
3 画像出力部
21 ビット変換部
22 AE処理部
23 画像解析部
24 圧縮テーブル生成部
25 補正量算出部
26 圧縮処理部
DESCRIPTION OF SYMBOLS 1 Image input part 2 Image processing part 3 Image output part 21 Bit conversion part 22 AE processing part 23 Image analysis part 24 Compression table production | generation part 25 Correction amount calculation part 26 Compression processing part

Claims (9)

画像の濃度ヒストグラムを算出し、該濃度ヒストグラムのハイライト濃度およびシャドウ濃度と、前記処理済み画像を出力する画像出力装置が再生可能な最低濃度および最高濃度とをそれぞれ比較し、該比較結果に基づいて、前記画像の各画素の濃度をx軸に、前記ダイナミックレンジを圧縮するための補正量をy軸においたときの、記濃度の変化に対する前記補正量の変化が線形となるように、前記濃度と前記補正量との関係を規定した関係式を表す圧縮テーブルを生成するテーブル生成手段と、
前記圧縮テーブルを参照して、画像のダイナミックレンジを圧縮するために該画像の各画素に加算する補正量を算出する補正量算出手段と、
前記画像の各画素に前記補正量を加算して該画像のダイナミックレンジを圧縮する処理を該画像に施すことにより、ダイナミックレンジが圧縮された処理済み画像を得る処理手段とを備えた画像処理装置において、
前記関係式の傾きが所定のしきい値よりも大きいか否かを判定する判定手段をさらに備え、
前記補正量算出手段は、前記判定が肯定された場合、前記画像のボケ画像を生成し、該ボケ画像を用いて前記圧縮テーブルを参照して前記補正量を算出し、前記判定が否定された場合、前記画像を用いて前記圧縮テーブルを参照して前記補正量を算出する手段であることを特徴とする画像処理装置。
A density histogram of the image is calculated, and the highlight density and shadow density of the density histogram are compared with the lowest density and the highest density that can be reproduced by the image output apparatus that outputs the processed image, respectively, and based on the comparison result Te, the density of each pixel of the image to the x-axis, such as when the correction amount for compressing the dynamic range was placed on the y-axis, the correction amount of change with respect to change of the pre-Symbol concentration of linear, Table generating means for generating a compression table representing a relational expression defining the relationship between the density and the correction amount;
Correction amount calculation means for calculating a correction amount to be added to each pixel of the image in order to compress the dynamic range of the image with reference to the compression table;
An image processing apparatus comprising: processing means for obtaining a processed image in which the dynamic range is compressed by performing processing for adding the correction amount to each pixel of the image and compressing the dynamic range of the image to the image In
Determination means for determining whether or not the slope of the relational expression is greater than a predetermined threshold;
When the determination is affirmative, the correction amount calculation unit generates a blurred image of the image, calculates the correction amount by referring to the compression table using the blurred image, and the determination is negative In this case, the image processing apparatus is means for calculating the correction amount by referring to the compression table using the image.
画像の各画素の濃度とダイナミックレンジを圧縮するための補正量との関係を規定した圧縮テーブルを参照して、画像のダイナミックレンジを圧縮するために該画像の各画素に加算する補正量を算出する補正量算出手段と、
前記画像の各画素に前記補正量を加算して該画像のダイナミックレンジを圧縮する処理を該画像に施すことにより、ダイナミックレンジが圧縮された処理済み画像を得る処理手段とを備えた画像処理装置において、
前記処理済み画像を出力する画像出力装置が再生可能な最低濃度の前記圧縮テーブルによる濃度補正量が、所定のしきい値よりも大きいか否かを判定する判定手段をさらに備え、
前記補正量算出手段は、前記判定が肯定された場合、前記画像のボケ画像を生成し、該ボケ画像を用いて前記圧縮テーブルを参照して前記補正量を算出し、前記判定が否定された場合、前記画像を用いて前記圧縮テーブルを参照して前記補正量を算出する手段であることを特徴とする画像処理装置。
Referring to a compression table that defines the relationship between the density of each pixel in the image and the correction amount for compressing the dynamic range, calculate the correction amount to be added to each pixel of the image to compress the dynamic range of the image Correction amount calculating means to perform,
An image processing apparatus comprising: processing means for obtaining a processed image in which the dynamic range is compressed by performing processing for adding the correction amount to each pixel of the image and compressing the dynamic range of the image to the image In
A determination means for determining whether or not a density correction amount by the compression table of the lowest density that can be reproduced by the image output apparatus that outputs the processed image is larger than a predetermined threshold;
When the determination is affirmative, the correction amount calculation unit generates a blurred image of the image, calculates the correction amount by referring to the compression table using the blurred image, and the determination is negative In this case, the image processing apparatus is means for calculating the correction amount by referring to the compression table using the image.
画像の各画素の濃度をx軸に、ダイナミックレンジを圧縮するための補正量をy軸においたときの、前記濃度の変化に対する前記補正量の変化が非線形となるように、前記濃度と前記補正量との関係を規定した関係式を表す非線形の圧縮テーブルを参照して、画像のダイナミックレンジを圧縮するために該画像の各画素に加算する補正量を算出する補正量算出手段と、
前記画像の各画素に前記補正量を加算して該画像のダイナミックレンジを圧縮する処理を該画像に施すことにより、ダイナミックレンジが圧縮された処理済み画像を得る処理手段とを備えた画像処理装置において、
あらかじめ設定された基準濃度における前記関係式の微分値が、所定のしきい値よりも大きいか否かを判定する判定手段をさらに備え、
前記補正量算出手段は、前記判定が肯定された場合、前記画像のボケ画像を生成し、該ボケ画像を用いて前記圧縮テーブルを参照して前記補正量を算出し、前記判定が否定された場合、前記画像を用いて前記圧縮テーブルを参照して前記補正量を算出する手段であることを特徴とする画像処理装置。
When the density of each pixel of the image is on the x-axis and the correction amount for compressing the dynamic range is on the y-axis, the density and the correction are changed so that the change in the correction amount with respect to the change in density becomes non-linear. A correction amount calculation means for calculating a correction amount to be added to each pixel of the image in order to compress the dynamic range of the image with reference to a non-linear compression table representing a relational expression that defines a relationship with the amount;
An image processing apparatus comprising: processing means for obtaining a processed image in which the dynamic range is compressed by performing processing for adding the correction amount to each pixel of the image and compressing the dynamic range of the image to the image In
A determination means for determining whether a differential value of the relational expression at a preset reference concentration is larger than a predetermined threshold;
When the determination is affirmative, the correction amount calculation unit generates a blurred image of the image, calculates the correction amount by referring to the compression table using the blurred image, and the determination is negative In this case, the image processing apparatus is means for calculating the correction amount by referring to the compression table using the image.
画像の濃度ヒストグラムを算出し、該濃度ヒストグラムのハイライト濃度およびシャドウ濃度と、前記処理済み画像を出力する画像出力装置が再生可能な最低濃度および最高濃度とをそれぞれ比較し、該比較結果に基づいて、前記画像の各画素の濃度をx軸に、前記ダイナミックレンジを圧縮するための補正量をy軸においたときの、記濃度の変化に対する前記補正量の変化が線形となるように、前記濃度と前記補正量との関係を規定した関係式を表す圧縮テーブルを生成し、該圧縮テーブルを参照して、画像のダイナミックレンジを圧縮するために該画像の各画素に加算する補正量を算出し、前記画像の各画素に前記補正量を加算して該画像のダイナミックレンジを圧縮する処理を該画像に施すことにより、ダイナミックレンジが圧縮された処理済み画像を得る画像処理方法において、
前記関係式の傾きが、所定のしきい値よりも大きいか否かを判定し、
前記判定が肯定された場合、前記画像のボケ画像を生成し、該ボケ画像を用いて前記圧縮テーブルを参照して前記補正量を算出し、前記判定が否定された場合、前記画像を用いて前記圧縮テーブルを参照して前記補正量を算出することを特徴とする画像処理方法。
A density histogram of the image is calculated, and the highlight density and shadow density of the density histogram are compared with the lowest density and the highest density that can be reproduced by the image output apparatus that outputs the processed image, respectively, and based on the comparison result Te, the density of each pixel of the image to the x-axis, such as when the correction amount for compressing the dynamic range was placed on the y-axis, the correction amount of change with respect to change of the pre-Symbol concentration of linear, A compression table representing a relational expression that defines the relationship between the density and the correction amount is generated, and a correction amount to be added to each pixel of the image to compress the dynamic range of the image with reference to the compression table. The dynamic range is compressed by calculating and adding the correction amount to each pixel of the image and compressing the dynamic range of the image. An image processing method for obtaining processed image,
Determining whether the slope of the relational expression is greater than a predetermined threshold;
When the determination is affirmative, a blurred image of the image is generated, the correction amount is calculated by referring to the compression table using the blurred image, and when the determination is negative, the image is used. An image processing method, wherein the correction amount is calculated with reference to the compression table.
画像の各画素の濃度とダイナミックレンジを圧縮するための補正量との関係を規定した圧縮テーブルを参照して、画像のダイナミックレンジを圧縮するために該画像の各画素に加算する補正量を算出し、前記画像の各画素に前記補正量を加算して該画像のダイナミックレンジを圧縮する処理を該画像に施すことにより、ダイナミックレンジが圧縮された処理済み画像を得る画像処理方法において、
前記処理済み画像を出力する画像出力装置が再生可能な最低濃度の前記圧縮テーブルによる濃度補正量が、所定のしきい値よりも大きいか否かを判定し、
前記判定が肯定された場合、前記画像のボケ画像を生成し、該ボケ画像を用いて前記圧縮テーブルを参照して前記補正量を算出し、前記判定が否定された場合、前記画像を用いて前記圧縮テーブルを参照して前記補正量を算出することを特徴とする画像処理方法。
Referring to a compression table that defines the relationship between the density of each pixel in the image and the correction amount for compressing the dynamic range, calculate the correction amount to be added to each pixel of the image to compress the dynamic range of the image Then, in the image processing method of obtaining a processed image with a compressed dynamic range by adding the correction amount to each pixel of the image and compressing the dynamic range of the image,
Determining whether the density correction amount by the compression table of the lowest density that can be reproduced by the image output apparatus that outputs the processed image is larger than a predetermined threshold value;
When the determination is affirmative, a blurred image of the image is generated, the correction amount is calculated by referring to the compression table using the blurred image, and when the determination is negative, the image is used. An image processing method, wherein the correction amount is calculated with reference to the compression table.
画像の各画素の濃度をx軸に、ダイナミックレンジを圧縮するための補正量をy軸においたときの、前記濃度の変化に対する前記補正量の変化が非線形となるように、前記濃度と前記補正量との関係を規定した関係式を表す非線形の圧縮テーブルを参照して、画像のダイナミックレンジを圧縮するために該画像の各画素に加算する補正量を算出し、前記画像の各画素に前記補正量を加算して該画像のダイナミックレンジを圧縮する処理を該画像に施すことにより、ダイナミックレンジが圧縮された処理済み画像を得る画像処理方法において、
あらかじめ設定された基準濃度における前記関係式の微分値が、所定のしきい値よりも大きいか否かを判定し、
前記判定が肯定された場合、前記画像のボケ画像を生成し、該ボケ画像を用いて前記圧縮テーブルを参照して前記補正量を算出し、前記判定が否定された場合、前記画像を用いて前記圧縮テーブルを参照して前記補正量を算出することを特徴とする画像処理方法。
When the density of each pixel of the image is on the x-axis and the correction amount for compressing the dynamic range is on the y-axis, the density and the correction are changed so that the change in the correction amount with respect to the change in density becomes non-linear. A correction amount to be added to each pixel of the image in order to compress the dynamic range of the image is calculated with reference to a non-linear compression table that represents a relational expression that defines the relationship with the amount, and the pixel of the image In an image processing method for obtaining a processed image in which the dynamic range is compressed by performing a process of adding a correction amount to compress the dynamic range of the image,
Determining whether a differential value of the relational expression at a preset reference concentration is larger than a predetermined threshold;
When the determination is affirmative, a blurred image of the image is generated, the correction amount is calculated by referring to the compression table using the blurred image, and when the determination is negative, the image is used. An image processing method, wherein the correction amount is calculated with reference to the compression table.
画像の濃度ヒストグラムを算出し、該濃度ヒストグラムのハイライト濃度およびシャドウ濃度と、前記処理済み画像を出力する画像出力装置が再生可能な最低濃度および最高濃度とをそれぞれ比較し、該比較結果に基づいて、前記画像の各画素の濃度をx軸に、前記ダイナミックレンジを圧縮するための補正量をy軸においたときの、記濃度の変化に対する前記補正量の変化が線形となるように、前記濃度と前記補正量との関係を規定した関係式を表す圧縮テーブルを生成し、該圧縮テーブルを参照して、画像のダイナミックレンジを圧縮するために該画像の各画素に加算する補正量を算出し、前記画像の各画素に前記補正量を加算して該画像のダイナミックレンジを圧縮する処理を該画像に施すことにより、ダイナミックレンジが圧縮された処理済み画像を得る画像処理方法をコンピュータに実行させるためのプログラムにおいて、
前記関係式の傾きが、所定のしきい値よりも大きいか否かを判定する手順と、
前記判定が肯定された場合、前記画像のボケ画像を生成し、該ボケ画像を用いて前記圧縮テーブルを参照して前記補正量を算出し、前記判定が否定された場合、前記画像を用いて前記圧縮テーブルを参照して前記補正量を算出する手順とを有することを特徴とするプログラム。
A density histogram of the image is calculated, and the highlight density and shadow density of the density histogram are compared with the lowest density and the highest density that can be reproduced by the image output apparatus that outputs the processed image, respectively, and based on the comparison result Te, the density of each pixel of the image to the x-axis, such as when the correction amount for compressing the dynamic range was placed on the y-axis, the correction amount of change with respect to change of the pre-Symbol concentration of linear, A compression table representing a relational expression that defines the relationship between the density and the correction amount is generated, and a correction amount to be added to each pixel of the image to compress the dynamic range of the image with reference to the compression table. The dynamic range is compressed by calculating and adding the correction amount to each pixel of the image and compressing the dynamic range of the image. The program for executing an image processing method for obtaining a processed image in computers,
Determining whether the slope of the relational expression is greater than a predetermined threshold;
When the determination is affirmative, a blurred image of the image is generated, the correction amount is calculated by referring to the compression table using the blurred image, and when the determination is negative, the image is used. A program for calculating the correction amount with reference to the compression table.
画像の各画素の濃度とダイナミックレンジを圧縮するための補正量との関係を規定した圧縮テーブルを参照して、画像のダイナミックレンジを圧縮するために該画像の各画素に加算する補正量を算出し、前記画像の各画素に前記補正量を加算して該画像のダイナミックレンジを圧縮する処理を該画像に施すことにより、ダイナミックレンジが圧縮された処理済み画像を得る画像処理方法をコンピュータに実行させるためのプログラムにおいて、
前記処理済み画像を出力する画像出力装置が再生可能な最低濃度の前記圧縮テーブルによる濃度補正量が、所定のしきい値よりも大きいか否かを判定する手順と、
前記判定が肯定された場合、前記画像のボケ画像を生成し、該ボケ画像を用いて前記圧縮テーブルを参照して前記補正量を算出し、前記判定が否定された場合、前記画像を用いて前記圧縮テーブルを参照して前記補正量を算出する手順とを有することを特徴とするプログラム。
Referring to a compression table that defines the relationship between the density of each pixel in the image and the correction amount for compressing the dynamic range, calculate the correction amount to be added to each pixel of the image to compress the dynamic range of the image Then, an image processing method for obtaining a processed image with a compressed dynamic range is performed on the computer by adding the correction amount to each pixel of the image and compressing the dynamic range of the image. In the program to let
A procedure for determining whether a density correction amount by the compression table having the lowest density that can be reproduced by the image output apparatus that outputs the processed image is larger than a predetermined threshold;
When the determination is affirmative, a blurred image of the image is generated, the correction amount is calculated by referring to the compression table using the blurred image, and when the determination is negative, the image is used. A program for calculating the correction amount with reference to the compression table.
画像の各画素の濃度をx軸に、ダイナミックレンジを圧縮するための補正量をy軸においたときの、前記濃度の変化に対する前記補正量の変化が非線形となるように、前記濃度と前記補正量との関係を規定した関係式を表す非線形の圧縮テーブルを参照して、画像のダイナミックレンジを圧縮するために該画像の各画素に加算する補正量を算出し、前記画像の各画素に前記補正量を加算して該画像のダイナミックレンジを圧縮する処理を該画像に施すことにより、ダイナミックレンジが圧縮された処理済み画像を得る画像処理方法をコンピュータに実行させるためのプログラムにおいて、
あらかじめ設定された基準濃度における前記関係式の微分値が、所定のしきい値よりも大きいか否かを判定する手順と、
前記判定が肯定された場合、前記画像のボケ画像を生成し、該ボケ画像を用いて前記圧縮テーブルを参照して前記補正量を算出し、前記判定が否定された場合、前記画像を用いて前記圧縮テーブルを参照して前記補正量を算出する手順とを有することを特徴とするプログラム。
When the density of each pixel of the image is on the x axis and the correction amount for compressing the dynamic range is on the y axis, the density and the correction are made so that the change in the correction amount with respect to the change in density becomes non-linear A correction amount to be added to each pixel of the image in order to compress the dynamic range of the image is calculated with reference to a non-linear compression table that represents a relational expression that defines the relationship with the amount, and the pixel of the image In a program for causing a computer to execute an image processing method for obtaining a processed image with a compressed dynamic range by performing a process of adding a correction amount and compressing the dynamic range of the image on the image,
A procedure for determining whether a differential value of the relational expression at a preset reference concentration is larger than a predetermined threshold;
When the determination is affirmative, a blurred image of the image is generated, the correction amount is calculated by referring to the compression table using the blurred image, and when the determination is negative, the image is used. A program for calculating the correction amount with reference to the compression table.
JP2003304383A 2003-08-28 2003-08-28 Image processing apparatus and method, and program Expired - Fee Related JP4303061B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2003304383A JP4303061B2 (en) 2003-08-28 2003-08-28 Image processing apparatus and method, and program
US10/927,037 US7580158B2 (en) 2003-08-28 2004-08-27 Image processing apparatus, method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003304383A JP4303061B2 (en) 2003-08-28 2003-08-28 Image processing apparatus and method, and program

Publications (2)

Publication Number Publication Date
JP2005079624A JP2005079624A (en) 2005-03-24
JP4303061B2 true JP4303061B2 (en) 2009-07-29

Family

ID=34408090

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003304383A Expired - Fee Related JP4303061B2 (en) 2003-08-28 2003-08-28 Image processing apparatus and method, and program

Country Status (1)

Country Link
JP (1) JP4303061B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7639893B2 (en) * 2006-05-17 2009-12-29 Xerox Corporation Histogram adjustment for high dynamic range image mapping
US7636496B2 (en) * 2006-05-17 2009-12-22 Xerox Corporation Histogram adjustment for high dynamic range image mapping

Also Published As

Publication number Publication date
JP2005079624A (en) 2005-03-24

Similar Documents

Publication Publication Date Title
EP1397780B1 (en) Image enhancement methods and apparatus therefor
EP1408448B1 (en) Image processing method, image processing apparatus, image processing program and image recording apparatus
US7471847B2 (en) Image processing method and apparatus for correcting image brightness distribution
JP4097587B2 (en) Image processing apparatus and image processing method
JP2002300402A (en) Image processor, processing method and recording medium
US20080225313A1 (en) Image processing apparatus and method and computer-readable recording medium having stored therein the program
US7580158B2 (en) Image processing apparatus, method and program
JP2005196270A (en) Image processing method, image processing equipment, and image processing program
JP2010068361A (en) Photographic image processing method, photographic image processing program, and photographic image processor
JP2004246644A (en) Apparatus, method, and program for image processing
JP4208767B2 (en) Image processing apparatus and image processing method
JP4303061B2 (en) Image processing apparatus and method, and program
US20100303377A1 (en) Image processing apparatus, image processing method and computer readable medium
JP4261290B2 (en) Image processing apparatus and method, and program
JP4402994B2 (en) Image processing method, apparatus, and program
JP4040528B2 (en) Image processing apparatus, image processing method, image processing program, recording medium storing image processing program, and image forming apparatus including image processing apparatus
US20100150466A1 (en) Image processing method and image processing apparatus
US6678420B1 (en) Method, apparatus and recording medium for image processing
JP4087807B2 (en) Image processing method, apparatus, and program
JP2006094161A (en) Apparatus, method and program for image processing
JP2005143008A (en) Image processor, image processing method and program
JP2005102152A (en) Image processing apparatus, method and program
JP2005109871A (en) Image processor, method and program
JP4505356B2 (en) Image processing apparatus, image processing method and program thereof
JP2006019847A (en) Image processor, processing method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060327

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061206

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070903

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070911

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080401

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080602

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081224

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090217

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090310

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090330

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090421

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090423

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120501

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130501

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140501

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees