JP2003069822A - Image processor, image processing method and recording medium - Google Patents

Image processor, image processing method and recording medium

Info

Publication number
JP2003069822A
JP2003069822A JP2001259224A JP2001259224A JP2003069822A JP 2003069822 A JP2003069822 A JP 2003069822A JP 2001259224 A JP2001259224 A JP 2001259224A JP 2001259224 A JP2001259224 A JP 2001259224A JP 2003069822 A JP2003069822 A JP 2003069822A
Authority
JP
Japan
Prior art keywords
area
gradation correction
gradation
image
image processing
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.)
Granted
Application number
JP2001259224A
Other languages
Japanese (ja)
Other versions
JP4367821B2 (en
Inventor
Yuki Matsushima
由紀 松島
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2001259224A priority Critical patent/JP4367821B2/en
Priority to US10/163,305 priority patent/US7251056B2/en
Publication of JP2003069822A publication Critical patent/JP2003069822A/en
Priority to US11/812,631 priority patent/US7525688B2/en
Application granted granted Critical
Publication of JP4367821B2 publication Critical patent/JP4367821B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To appropriately correct a main object in an image photographed in an inappropriate exposure state without causing overcorrection while maintaining a gradation property. SOLUTION: A gradation correction processing part 102 calculates gradation correction quantity on the basis of lightness information of an object area and prepares a gradation correction curve with respect to image data inputted from an image input device 100 such as a digital camera. Meanwhile, the gradation correction processing part 102 extracts a control area from a lightness area to which the object area does not belong to decide whether or not correction quantity in the control area is appropriate, and uses a control condition (such as the slope of a tangent line of the gradation correction curve with a lower limit) of the control area to control the gradation correction quantity when the correction quantity in the control area is not appropriate.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、カラー画像データ
の階調を自動的に補正する画像出力システム、プリンタ
システム、画像表示システムなどにおける画像処理装置
に関し、デジタルカメラやスキャナなどに適用される技
術である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus in an image output system, a printer system, an image display system or the like for automatically correcting the gradation of color image data, and is applied to a digital camera, a scanner or the like. Is.

【0002】[0002]

【従来の技術】近年、パソコンやインターネット、家庭
用プリンタの普及、及びハードディスクなどの記憶容量
の大型化により、デジタルデータで写真画像を扱う機会
が増えている。それに伴いデジタル写真画像データ(以
下、画像データ)の入力手段として、デジタルカメラや
フィルムスキャナなどが一般に使用されている。
2. Description of the Related Art In recent years, due to the widespread use of personal computers, the Internet, household printers, and the increase in storage capacity of hard disks, there are increasing opportunities to handle photographic images with digital data. Along with this, digital cameras, film scanners, etc. are generally used as input means for digital photographic image data (hereinafter referred to as image data).

【0003】デジタルカメラには撮影時の露出を常に最
適に保つための自動露出制御装置が設けられている。露
出制御方式には、種々の方法があるが、光量検出のため
画面を複数の適当な領域に分割し、領域ごとに重み付け
を行い加重平均を取り、絞りやシャッタスピードなどを
調節する方法が一般的である。
A digital camera is provided with an automatic exposure control device for always keeping the optimum exposure during photographing. There are various exposure control methods, but in general, the screen is divided into multiple appropriate areas for light intensity detection, weighted averages are taken for each area, and the aperture and shutter speed are adjusted. Target.

【0004】しかし、これらの露出制御方式は各社様々
であり、撮影条件によって適正に作動しない場合もある
ため完全なものは存在しない。とりわけ、主被写体の真
後ろに光源が存在し背景と主被写体との輝度差が大き
い、逆光状態では、被写体に露出があわないと背景の明
るさに引っ張られて露出がマイナスに補正されるため、
被写体が暗く写ってしまう。
However, these exposure control methods vary from company to company, and there are cases where they do not operate properly depending on the shooting conditions, so there is no perfect method. In particular, when there is a light source directly behind the main subject and there is a large difference in brightness between the background and the main subject, and in the backlight condition, if the subject does not have an exposure, the background brightness will pull the exposure and correct the exposure to a negative value.
The subject appears dark.

【0005】また、夜間ストロボ撮影では、被写体にス
トロボ光が当たることが前提になるため、絞りやシャッ
タスピードは既定値に固定される。つまり、ストロボと
被写体の距離が遠すぎると光が届かず、この場合も被写
体は暗く写ってしまう。
Since nighttime stroboscopic photography is premised on that the subject is exposed to stroboscopic light, the aperture and shutter speed are fixed to predetermined values. In other words, if the distance between the strobe and the subject is too far, the light does not reach, and in this case the subject also appears dark.

【0006】ここで、露出補正とは、シーンに対して不
適切な明るさを持つ被写体を、シーンに適した明るさに
調節することを意味する。例えば露出不足で全体に暗い
被写体や、逆光で暗くなっている被写体を明るくした
り、露出オーバな被写体を暗くしたりすることである。
カメラでの露出補正は、レンズに入る入射光量を調節す
るために絞りやシャッタスピードを変える方法が一般的
である。また、プリンタやディスプレイでは、入出力変
換関数(階調補正カーブ)等を用い、入力信号の明るさ
に対し出力信号の明るさを最適化するための処理等を意
味する。なお、露出を補正して画像データの明るさを調
節することと、本発明における階調補正処理とは目的が
同等なため、以後、階調補正処理と記す。
[0006] Here, the exposure correction means adjusting an object having an inappropriate brightness for a scene to a brightness suitable for the scene. For example, it is to lighten a subject that is dark due to insufficient exposure, a subject that is dark due to backlight, or to darken an overexposed subject.
Exposure compensation in a camera is generally performed by changing an aperture and a shutter speed in order to adjust the amount of incident light entering a lens. In a printer or a display, it means a process for optimizing the brightness of an output signal with respect to the brightness of an input signal by using an input / output conversion function (gradation correction curve) or the like. It should be noted that since the purpose of correcting the exposure and adjusting the brightness of the image data is the same as that of the gradation correction processing of the present invention, it will be referred to as gradation correction processing hereinafter.

【0007】このようなデジタル画像の撮影時における
不適切な露出状態に対応するため、画像データを自動的
に階調補正する技術が多数提案されている。
In order to deal with such an inappropriate exposure state at the time of photographing a digital image, many techniques for automatically correcting gradation of image data have been proposed.

【0008】例えば、原稿画像全体を読みとって原稿画
像の主要画像特徴量を算出し、算出された主要画像特徴
量から被写体の所定濃度範囲を算出し、原稿画像全体か
ら前記所定濃度範囲の画素のみを抽出して原稿画像特徴
量を決定し、この原稿画像特徴量から露光量を決定する
ことにより、逆光画像など、背景と被写体の濃度差が大
きい画像を適切に補正する露光量決定方法がある(特開
平7−301867号公報を参照)。
For example, the entire original image is read to calculate the main image characteristic amount of the original image, the predetermined density range of the subject is calculated from the calculated main image characteristic amount, and only the pixels within the predetermined density range are calculated from the entire original image. There is an exposure amount determination method that appropriately corrects an image with a large density difference between the background and the subject, such as a backlight image, by extracting the original image feature amount and determining the exposure amount from the original image feature amount. (See Japanese Patent Laid-Open No. 7-301867).

【0009】また、画像全域で飽和が起こらないような
変換カーブを作成して、逆光補正を行う画像処理方法も
ある(特開平10−79885号公報を参照)。
There is also an image processing method in which backlight conversion is performed by creating a conversion curve that does not cause saturation in the entire image (see Japanese Patent Laid-Open No. 10-79885).

【0010】[0010]

【発明が解決しようとする課題】階調補正処理を行う上
で最も困難なのは、被写体の明るさを適切に補正し、階
調性を保ちつつ、過補正を起こさないことである。つま
り、従来のように被写体部分のみから補正量を得ると、
補正処理後の画像において階調つぶれや色相ずれが起こ
る。
What is most difficult in performing the gradation correction process is to appropriately correct the brightness of the object and maintain the gradation, while preventing overcorrection. In other words, if the correction amount is obtained only from the subject part as in the conventional case,
Gradation loss and hue shift occur in the image after the correction process.

【0011】本発明は上記した問題点に鑑みてなされた
もので、本発明の目的は、不適切な露出状態で撮影され
た画像の主被写体において、階調性を保存しつつ、過補
正を起こすことなく最大限の効果で適切に補正する画像
処理装置、画像処理方法および記録媒体を提供すること
にある。
The present invention has been made in view of the above problems, and an object of the present invention is to perform overcorrection while preserving gradation in a main subject of an image photographed in an inappropriate exposure state. An object of the present invention is to provide an image processing apparatus, an image processing method, and a recording medium that can be appropriately corrected with the maximum effect without causing them.

【0012】[0012]

【課題を解決するための手段】本発明では、主要被写体
の領域を抽出する被写体領域抽出手段と、被写体領域の
情報から階調補正度合いを算出する補正量算出手段と、
主要被写体領域が属さない明度域から所定の制御域を抽
出する制御域抽出手段と、制御域において所定の制御条
件を用いて階調補正度合いを制御するか否かを判定する
判定手段と、判定手段の判定結果に応じて階調補正度合
いを制御する制御手段を備えることにより、被写体領域
の階調を補正しつつ、ハイライト域もしくはシャドー域
の過補正を防止し、シーンや画像出力機器に応じた階調
補正を行う。
According to the present invention, a subject area extracting means for extracting a main subject area, a correction amount calculating means for calculating a gradation correction degree from information on the subject area,
A control area extracting means for extracting a predetermined control area from a lightness area to which the main subject area does not belong; a determining means for determining whether or not the gradation correction degree is controlled using a predetermined control condition in the control area; By providing the control means for controlling the gradation correction degree according to the judgment result of the means, while correcting the gradation of the subject area, overcorrection of the highlight area or the shadow area is prevented, and the scene or the image output device is provided. The corresponding gradation correction is performed.

【0013】[0013]

【発明の実施の形態】以下、本発明の一実施例を図面を
用いて具体的に説明する。 (実施例1)図1は、本発明の実施例1の全体構成を示
す。図1において、スキャナやデジタルカメラあるいは
ビデオカメラなどの画像入力装置100は、写真などを
マトリックス状の画素として表した実写の画像データを
画像処理装置101に出力する。画像処理装置101内
の階調補正処理部102では、最適な評価値を算出し、
その評価値を用いて階調補正処理を実行する。ディスプ
レイ、プリンタなどの画像出力装置103は、階調補正
処理した画像データを出力する。本実施例の場合、画像
データとしては写真などの実写データが適している。ま
た、本実施例では画像データはカラーデータとして以
下、説明する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be specifically described below with reference to the drawings. (Embodiment 1) FIG. 1 shows the overall construction of Embodiment 1 of the present invention. In FIG. 1, an image input device 100 such as a scanner, a digital camera or a video camera outputs to the image processing device 101 image data of a photographed image in which a photograph or the like is represented as pixels in a matrix. The gradation correction processing unit 102 in the image processing apparatus 101 calculates an optimum evaluation value,
The gradation correction process is executed using the evaluation value. The image output device 103 such as a display or a printer outputs the image data that has been subjected to the gradation correction processing. In the case of the present embodiment, photographed data such as a photograph is suitable as the image data. In the present embodiment, the image data will be described below as color data.

【0014】図2は、本発明に係る階調補正処理部10
2の構成を示す。まず、画像入力装置100によって入
力された画像データ200に対して以下の処理が実行さ
れる。被写体領域抽出手段201では、画像データ上の
主要被写体領域を抽出する。ここで、被写体領域の抽出
は、従来から提案されている公知の技術を用いれば良
い。
FIG. 2 shows a gradation correction processing unit 10 according to the present invention.
2 shows the configuration. First, the following processing is executed on the image data 200 input by the image input device 100. The subject area extracting means 201 extracts the main subject area on the image data. Here, the extraction of the subject area may be performed by using a known technique that has been conventionally proposed.

【0015】次に、制御領域抽出手段202では、明度
分布上で被写体領域が属する明度域以外の明度域より制
御域を求める。以下、本実施例で補正対象となる入力画
像は逆光であると仮定し、明度情報として輝度を用いて
説明を行う。
Next, the control area extracting means 202 obtains a control area from the lightness area other than the lightness area to which the subject area belongs in the lightness distribution. In the following description, it is assumed that the input image to be corrected in this embodiment is backlit, and the brightness is used as the brightness information.

【0016】逆光画像の場合、被写体は背景に対して暗
く、露出不足である。従って、制御域は被写体領域が属
する輝度域よりも明るい領域となる。図3は、被写体領
域抽出手段によって抽出された逆光画像の被写体領域を
示す。また、図4は、被写体領域の属する輝度領域、お
よび制御域のヒストグラムを示す。
In the case of a backlit image, the subject is dark against the background and is underexposed. Therefore, the control area is a brighter area than the brightness area to which the subject area belongs. FIG. 3 shows the subject region of the backlight image extracted by the subject region extracting means. Further, FIG. 4 shows a histogram of the luminance area to which the subject area belongs and the control area.

【0017】次に、階調補正カーブf0(x)を得るた
めの処理を、図5〜8を用いて説明する。ここで、説明
を簡単にするために、入力画像データの輝度最小値sh
をsh=0、最大値hlをhl=255とする。
Next, the process for obtaining the gradation correction curve f0 (x) will be described with reference to FIGS. Here, in order to simplify the explanation, the minimum luminance value sh of the input image data sh
Is sh = 0, and the maximum value hl is hl = 255.

【0018】補正量算出手段206では、抽出された主
要被写体領域の輝度分布203から中央値などの統計値
204(以下、説明のため統計値として中央値Aを用い
る)を算出し、主要被写体の特徴的な明るさを得る。
The correction amount calculating means 206 calculates a statistic value 204 such as a median value (hereinafter, the median value A is used as a statistic value for explanation) from the extracted luminance distribution 203 of the main photographic subject region, and calculates the main object. Get a characteristic brightness.

【0019】続いて、補正量算出手段206では、中央
値Aによって被写体の明るさが適切か否かを判定し、適
切でない場合は仮の補正量δ205を得る。なお、ここ
では、逆光状態による露出不足を仮定しているため、δ
>0であり、例えばδは輝度中央値の関数として、図5
のように定める。
Subsequently, the correction amount calculation means 206 determines whether or not the brightness of the subject is appropriate based on the median value A, and if not, obtains a temporary correction amount δ205. It should be noted that since it is assumed here that the exposure is insufficient due to the backlight condition,
> 0, for example δ as a function of the median brightness
Set as follows.

【0020】次に、階調補正カーブf0(x)を算出す
る。δ=0の場合、f0(x)=xである。
Next, the gradation correction curve f0 (x) is calculated. If δ = 0, then f0 (x) = x.

【0021】δ≠0の場合について説明する。階調補正
カーブf0(x)は、図6に示すように、3つの一次関
数の組み合わせによって表され、それぞれの一時関数l
1(x),l2(x),l3(x)は、輝度領域毎に下
記のように算出される。 y=f0(x) l1(x)=α1・x (0≦x<A) = l2(x)=α2・x+β2 (A≦x<C) l3(x)=α3・x+β3 (C≦x<255) 式(1) なお、α1={(A+δ)/A} α2=1、β2=δ , (A≦x<C) α3={(255−C−δ)/(255−C)}、β3={(255・δ)/ (255−C)} 式(2) であり、f0(x)の算出207では、補正量δに従っ
て、一時関数はl1(x),l2(x),l3(x)の
順に算出される。
The case where δ ≠ 0 will be described. The gradation correction curve f0 (x) is represented by a combination of three linear functions, as shown in FIG.
1 (x), 12 (x), and 13 (x) are calculated as follows for each luminance region. y = f0 (x) l1 (x) = α1 · x (0 ≦ x <A) = l2 (x) = α2 · x + β2 (A ≦ x <C) l3 (x) = α3 · x + β3 (C ≦ x < 255) Expression (1) Note that α1 = {(A + δ) / A} α2 = 1, β2 = δ, (A ≦ x <C) α3 = {(255−C−δ) / (255−C)}, β3 = {(255 · δ) / (255−C)} Formula (2), and in the calculation 207 of f0 (x), the temporary functions are l1 (x), l2 (x), l3 according to the correction amount δ. It is calculated in the order of (x).

【0022】すなわち、入力輝度値がシャドーポイント
から中央値Aまでは座標(0,0),(A,B),(但
し、B=A+δ)を結ぶl1(x)、主要被写体領域の
輝度領域における最大値Cまではカーブの傾き1を保つ
l2(x)、それよりもハイライト側では座標(C,
D),(255,255),(但し、D=C+δ)を結
ぶl3(x)を階調補正カーブとする。図6は、階調補
正カーブを示す。
That is, from the shadow point to the median value A of the input luminance value, l1 (x) connecting the coordinates (0, 0), (A, B) (where B = A + δ), the luminance area of the main subject area Up to the maximum value C at 12 (x) that keeps the slope 1 of the curve, and the coordinates (C,
D3, (255, 255), (where D = C + δ) is connected to l3 (x) as a gradation correction curve. FIG. 6 shows a gradation correction curve.

【0023】次いで、判定手段208では、制御域にお
ける補正量δが適切か否かを判定する。補正量δから算
出される階調補正カーブf0(x)において、l3
(x)の傾きα3が小さ過ぎると階調補正後のハイライ
トで階調つぶれが起きる可能性がある。そこで、α3に
閾値Thによる下限を設け、α3<Thの場合は、α3
≡Thとする(209)。そして、α3≡Thの場合
は、階調補正カーブ算出部207で算出したf0(x)
の代わりに、新たな階調補正カーブf1(x)を算出す
る(210)。
Next, the judging means 208 judges whether or not the correction amount δ in the control range is appropriate. In the gradation correction curve f0 (x) calculated from the correction amount δ, l3
If the gradient α3 of (x) is too small, gradation collapse may occur in the highlight after gradation correction. Therefore, a lower limit of the threshold value Th is set for α3, and when α3 <Th, α3 is set.
≡Th (209). Then, in the case of α3≡Th, f0 (x) calculated by the gradation correction curve calculation unit 207
Instead of, a new gradation correction curve f1 (x) is calculated (210).

【0024】すなわち、新たな階調補正カーブf1
(x)は、3つの一次関数の組み合わせによって表さ
れ、それぞれの一時関数l1(x),l2(x),l3
(x)は、l3(x)、l2(x)、l1(x)の順に
算出される。
That is, a new gradation correction curve f1
(X) is represented by a combination of three linear functions, and the respective temporary functions l1 (x), l2 (x), l3
(X) is calculated in the order of l3 (x), l2 (x), and l1 (x).

【0025】l3(x)は、傾きThで座標(255、
255)を通る関数であるから α3=Th、 β3=255(1−Th) 式(3) である。このとき、入力Cの出力C’(図8)は、式
(3)を用いて算出でき、 C’=Th・C+255(1−Th) である。
L3 (x) has an inclination Th and coordinates (255,
Since it is a function that passes through (255), α3 = Th, β3 = 255 (1-Th) Equation (3). At this time, the output C ′ of the input C (FIG. 8) can be calculated using the equation (3), and C ′ = Th · C + 255 (1−Th).

【0026】l2(x)は、傾き1で座標(C、C’)
を通る関数であるから α2=1、β2=(255−C)(1−Th) 式(4) である。このとき、入力Aの出力A’(図8)は、式
(4)を用いて算出でき、 A’=A+(255−C)(1−Th) である。
L2 (x) is a gradient 1 and coordinates (C, C ')
.Alpha.2 = 1 and .beta.2 = (255-C) (1-Th) equation (4) because it is a function that passes through. At this time, the output A ′ of the input A (FIG. 8) can be calculated using the equation (4), and A ′ = A + (255−C) (1-Th).

【0027】l1(x)は、座標(A、A’)、(0、
0)を通る関数であるから α1={A+(255−C)(1−Th)}/A 式(5) である。これにより、新たな階調補正カーブf1(x)
が算出された。
L1 (x) is the coordinates (A, A '), (0,
Since it is a function that passes through 0), α1 = {A + (255-C) (1-Th)} / A Formula (5) As a result, a new gradation correction curve f1 (x)
Was calculated.

【0028】従って、階調補正処理手段211では、判
定手段208の判定の結果、α3≧Thの場合、階調補
正カーブ算出部207で算出したf0(x)を使用し、
α3<Thの場合、新たな階調補正カーブf1(x)を
使用して、階調補正処理を行う。
Therefore, in the gradation correction processing means 211, when the result of the judgment of the judgment means 208 is α3 ≧ Th, f0 (x) calculated by the gradation correction curve calculation unit 207 is used,
When α3 <Th, the gradation correction processing is performed using the new gradation correction curve f1 (x).

【0029】階調補正カーブとしてf0(x)を用い、
RGBカラー画像データの階調補正処理を以下に説明す
る。
F0 (x) is used as the gradation correction curve,
The gradation correction processing of RGB color image data will be described below.

【0030】画像データの入力輝度値Yin(j)(j
=1,2,...N, Nは、入力データの画素数)に
対し、階調補正カーブf0(x)による補正後の出力輝
度値Y1(j)を定義する。ここで、xは画像データの
入力輝度値である。入力輝度値は以下の式で算出され
る。j番目の画素(j=1,2,...N−1,N)の
輝度Yin(j)は、カラー画像信号(Rin(j),
Gin(j),Bin(j))を用いて、以下の式で表
せる。 Yin(j)=0.299・Rin(j)+0.587・Gin(j)+0.1 14・Bin(j) 式(6) 入力輝度値Yin(j)に対して階調補正処理後の出力
輝度値Y1(j)を算出し、階調補正係数C0(j)を
以下の式で算出する。 C0(j)=Y1(j)/Yin(j) =f0(Yin(j))/Yin(j) 式(7) 入力カラー画像信号(Rin(j),Gin(j),B
in(j))は、以下の式で変換され、階調補正カラー
信号(R1(j),G1(j),B1(j))を得る。 (R1(j),G1(j),B1(j))=C0(j)・(Rin(j),Gi n(j),Bin(j)) 式(8) また、入力画像信号がグレーの場合、グレーレベルYi
n(j)を入力値とし、階調補正処理後の出力は、出力
グレーレベル Y1(j)=f0(Yin(j)) を得れば良い。
Input luminance value Yin (j) of image data (j
= 1, 2 ,. . . N and N define the output luminance value Y1 (j) after correction by the gradation correction curve f0 (x) for the number of pixels of the input data). Here, x is the input luminance value of the image data. The input brightness value is calculated by the following formula. The luminance Yin (j) of the j-th pixel (j = 1, 2, ... N-1, N) is the color image signal (Rin (j),
It can be expressed by the following equation using Gin (j) and Bin (j). Yin (j) = 0.299 · Rin (j) + 0.587 · Gin (j) +0.1 14 · Bin (j) Formula (6) After the gradation correction processing for the input luminance value Yin (j) The output luminance value Y1 (j) is calculated, and the gradation correction coefficient C0 (j) is calculated by the following formula. C0 (j) = Y1 (j) / Yin (j) = f0 (Yin (j)) / Yin (j) Formula (7) Input color image signal (Rin (j), Gin (j), B
in (j)) is converted by the following equation to obtain gradation correction color signals (R1 (j), G1 (j), B1 (j)). (R1 (j), G1 (j), B1 (j)) = C0 (j). (Rin (j), Gin (j), Bin (j)) Equation (8) Further, the input image signal is gray. , The gray level Yi
With n (j) as an input value, the output after tone correction processing may be obtained as an output gray level Y1 (j) = f0 (Yin (j)).

【0031】なお、通常の画像処理では、出力デバイス
(本実施例ではディスプレイ)の再現範囲0〜255を
超えた場合クリッピングを行う。すなわち0未満の値は
0へ、255以上の値は強制的に255に置き換える。
以上の階調補正処理を階調補正処理手段211で行い、
補正された出力画像データ212を得る。
In normal image processing, clipping is performed when the reproduction range of the output device (display in this embodiment) 0 to 255 is exceeded. That is, the value less than 0 is replaced with 0, and the value greater than 255 is forcibly replaced with 255.
The above gradation correction processing is performed by the gradation correction processing means 211,
The corrected output image data 212 is obtained.

【0032】階調補正カーブが図7のように指数関数f
0(x)で表される場合について説明する。まず、抽出
された主要被写体領域の輝度分布から中央値などの統計
値を算出し、主要被写体のもつ特徴的な明るさを得る。
The gradation correction curve has an exponential function f as shown in FIG.
The case represented by 0 (x) will be described. First, a statistical value such as a median value is calculated from the extracted luminance distribution of the main subject area to obtain the characteristic brightness of the main subject.

【0033】次に、中央値Aによって被写体の明るさが
適切か否かを判定し、適切でない場合は補正量δを得
る。なお、ここでは、逆光状態による露出不足を仮定し
ているため、1>δ>0である。次に階調補正カーブf
0(x)を得る。 y=f0(x)={x^δ}・255 式(9) 次に、例えば、x=Cにおけるf0(x)の接線の傾
き、もしくは一次の微分係数 d(f0(x))/dx](x=C)=lim(δ→0){(f0(C+δ)− f0(C))/δ} =δ・C^(δ−1)・255 式(10) を算出し、その値が閾値Thを以上か否かを調べ、超え
ている場合は式(10)の右辺をThと定め最終的な補
正量Δを得る。つまり以下の式 Δ・C^(Δ−1)・255=Th 式(11) を満たすΔを新たな補正量とする。
Next, it is determined whether or not the brightness of the subject is appropriate based on the median value A, and if not, a correction amount δ is obtained. Note that here, it is assumed that the exposure is insufficient due to the backlit state, and thus 1>δ> 0. Next, the gradation correction curve f
Get 0 (x). y = f0 (x) = {x ^ δ} · 255 Equation (9) Next, for example, the gradient of the tangent line of f0 (x) at x = C, or the first-order differential coefficient d (f0 (x)) / dx ] (X = C) = lim (δ → 0) {(f0 (C + δ) −f0 (C)) / δ} = δ · C ^ (δ−1) · 255 Equation (10) is calculated and its value is calculated. Is greater than or equal to the threshold Th, and if it is greater than or equal to the threshold Th, the right side of the equation (10) is set to Th and the final correction amount Δ is obtained. That is, Δ satisfying the following formula Δ · C ^ (Δ−1) · 255 = Th formula (11) is set as a new correction amount.

【0034】上記した実施例では逆光の画像を補正する
際において、ハイライトの過補正を防ぐための例である
が、シャドーの場合も制御方法は同様である。つまり、
階調補正処理によって起こるノイズの発生を抑制するの
であれば、α1に上限を設け、つぶれを抑えるのであれ
ばα1に下限を設ける。
The above embodiment is an example for preventing overcorrection of highlight when correcting a backlit image, but the control method is the same in the case of shadow. That is,
An upper limit is set for α1 to suppress the generation of noise caused by the gradation correction processing, and a lower limit is set for α1 to suppress the collapse.

【0035】また、本実施例では、画像のシーンに応じ
て閾値Thを変える。ここでシーンとは、カメラで画像
が撮影されたときの状態をいい、例えば逆光状態、夜間
フラッシュ撮影や露出不足状態などがある。入力画像が
逆光状態で撮影された画像の場合、被写体は低輝度側に
位置し、背景は白飛びを起こしていることもあるため、
背景であるハイライトの階調つぶれは目立ちにくい。ま
た、夜間フラッシュ撮影の場合、被写体はハイライト側
に位置し、階調再現性が重要視される。従って、逆光画
像、夜間フラッシュ撮影画像の制御条件をそれぞれTh
b、Thfとすると、Thb<Thfとなるように定め
る。
In this embodiment, the threshold Th is changed according to the scene of the image. Here, a scene refers to a state when an image is captured by a camera, and includes, for example, a backlight state, night flash photography, and underexposure state. If the input image is a backlit image, the subject may be located on the low brightness side and the background may have overexposure.
The gradation collapse of the highlight that is the background is not noticeable. Also, in the case of night flash photography, the subject is located on the highlight side, and gradation reproducibility is important. Therefore, the control conditions for the backlight image and the night flash image are set to Th.
When b and Thf are set, Thb <Thf is determined.

【0036】また、本実施例では、出力機器の色再現性
に応じて閾値Thを変える。例えば出力画像機器がモニ
タの場合は階調再現性が良く、プリンタの場合はとりわ
けハイライトやシャドーの階調再現性が悪い。従って、
モニタ、プリンタの制御条件をそれぞれThm、Thp
とすると、Thm<Thpとなるように定める。
Further, in this embodiment, the threshold Th is changed according to the color reproducibility of the output device. For example, if the output image device is a monitor, the gradation reproducibility is good, and if it is a printer, the gradation reproducibility of highlights and shadows is particularly bad. Therefore,
Monitor and printer control conditions are Thm and Thp, respectively.
Then, it is determined that Thm <Thp.

【0037】なお、上記した実施例では輝度を用いて説
明したが、輝度の代わりにL*a*b表色系のL値やR
GBのG値を用いてもよい。また、被写体の抽出法とし
ては種々の方法が提案されておりそのいずれを用いても
よい。さらに、δを算出するための統計量には中央値を
用いたが平均値などでもよく、制御条件は出力条件に応
じて適切に決めれば良い。
Although the above embodiment has been described by using the luminance, the L value or R of the L * a * b color system is used instead of the luminance.
The G value of GB may be used. Further, various methods have been proposed as a method of extracting a subject, and any of them may be used. Further, although the median value is used as the statistic for calculating δ, an average value or the like may be used, and the control condition may be appropriately determined according to the output condition.

【0038】(実施例2)実施例2は、本発明を画像出
力システムに適用した実施例である。図9は、本発明の
実施例2に係る構成を示す。図9において、300は、
画像出力制御装置をコントロールするためのコンピュー
タである。コンピュータ300は、オペレータがプリン
タ(1)304を選択し、出力命令を受け取ると、画像
を撮像するなどして取り込まれた画像データや各種DT
Pソフトで作成したモノクロとカラーの両方の写真等の
画像データなどを画像出力制御装置(1)305に送信
する。
(Embodiment 2) Embodiment 2 is an embodiment in which the present invention is applied to an image output system. FIG. 9 shows a configuration according to the second embodiment of the present invention. In FIG. 9, 300 is
It is a computer for controlling the image output control device. When the operator selects the printer (1) 304 and receives an output command, the computer 300 captures an image and captures image data and various DTs.
Image data such as both monochrome and color photographs created by the P software is transmitted to the image output control device (1) 305.

【0039】画像出力制御装置(1)305は、コンピ
ュータ300から送信された画像データを分析し、カラ
ー複写機等の画像形成装置の制御信号である複数の出力
色成分C(Cyan)、M(Mazenta)、Y(Y
ellow)、K(blacK)に対して後述する色変
換処理を実行し、その結果を画像形成装置に転送し、画
像形成装置は送信された画像をプリントする。
The image output control device (1) 305 analyzes the image data transmitted from the computer 300, and outputs a plurality of output color components C (Cyan), M (which are control signals of an image forming device such as a color copying machine. Mazenta), Y (Y
yellow) and K (black K) are subjected to color conversion processing described later, the result is transferred to the image forming apparatus, and the image forming apparatus prints the transmitted image.

【0040】画像出力制御装置(1)305は、入力さ
れた画像データに対して、階調補正処理を行い、画像形
成装置用の制御信号への変換を行なう色変換手段(1)
301と、中間調処理等を実施する描画手段(1)30
2と、描画手段(1)302で描画された1ページ分の
印刷画像を一時的に格納する画像記憶手段(格納バッフ
ァ)(1)303とを備えている。
The image output control device (1) 305 performs gradation correction processing on the input image data and converts it into a control signal for the image forming apparatus (1).
301 and drawing means (1) 30 for performing halftone processing, etc.
2 and an image storage unit (storage buffer) (1) 303 for temporarily storing the print image for one page drawn by the drawing unit (1) 302.

【0041】上記した画像出力制御装置は、画像表示装
置の特性とプリンタの特性に合わせて表示画像に忠実な
プリンタ出力を得るための色変換手段や機種毎に対応し
た解像度を変換する解像度変換手段などを構成要素とし
てよい。
The above-mentioned image output control device is a color conversion means for obtaining a printer output faithful to a display image in accordance with the characteristics of the image display apparatus and the characteristics of the printer, and resolution conversion means for converting the resolution corresponding to each model. Etc. may be used as a component.

【0042】なお、上記した画像出力制御装置に入力さ
れる画像データは、具体的にはRGB(緑、青、赤)の
階調データであり、また、各色成分の階調数は8bit
=256階調が一般的であるが、64あるいは512な
ど他の階調数でもよい。
The image data input to the above image output control device is specifically RGB (green, blue, red) gradation data, and the number of gradations of each color component is 8 bits.
= 256 gradations are generally used, but other gradation numbers such as 64 or 512 may be used.

【0043】以下、画像出力制御装置(1)305の動
作を説明すると、画像データは色変換手段(1)301
へ送られ、色変換手段(1)301では、画像形成装置
(プリンタ)(1)304のもつ色再現範囲に応じて階
調補正処理が行われる。次に、オペレータの使用してい
る画像表示装置の特性と画像形成装置(プリンタ)の特
性に基づいて色変換が行われ、画像形成装置(プリン
タ)の制御信号である複数の出力色成分C(Cya
n),M(Mazenta),Y(Yellow),K
(blacK)データに変換され、描画手段、画像記憶
手段(格納バッファ)に送られる。
The operation of the image output control device (1) 305 will be described below. Image data is color conversion means (1) 301.
Then, the color conversion means (1) 301 performs gradation correction processing according to the color reproduction range of the image forming apparatus (printer) (1) 304. Next, color conversion is performed based on the characteristics of the image display apparatus and the characteristics of the image forming apparatus (printer) used by the operator, and a plurality of output color components C ( Cya
n), M (Mazenta), Y (Yellow), K
It is converted into (blacK) data and sent to the drawing means and the image storage means (storage buffer).

【0044】RGB(緑、青、赤)の階調データから、
出力色成分C(Cyan),M(Mazenta),Y
(Yellow),K(blacK)データへの変換
は、メモリマップ補間で、CMYに色変換する。メモリ
マップ補間とは、図10に示すように、RGB空間を入
力色空間とした場合、RGB空間を同種類の立体図形
(ここでは立方体)に分割し、入力の座標(RGB)お
ける出力値Pを求めるには、前記入力の座標を含む立方
体を選択し、該選択された立方体の8点の予め設定した
頂点上の出力値と前記入力の前記立方体の中における位
置(各頂点からの距離)に基づいて、線形補間を行う。
ここで、本実施例の場合、出力値Pは、C,M,Y値に
それぞれ相当し、補間演算に使用される入力空間上の座
標(RGB)には、実際の入出力(L*a*b*−CM
Y)の関係を測定して、このデータを使用して最小2乗
法等により算出したRGB(L*a*b*)に対する
C,M,Yの値が予め設定してある。また、CMY信号
は、例えば次式のような演算によって、CMYK信号に
変換される。 K = α×min(C,M,Y) C’=C−β×K M’=M−β×K Y’=Y−β×K なお、色変換法は上記した方法に限らず、画像表示装置
の特性を、例えば、コンピュータが画像データのヘッダ
情報に記録して送信するようにしても良いし、上記した
画像出力制御装置をコンピュータ内部に実装する場合に
は、例えばICC(Inter Color Cons
ortium)で標準化されているデバイス・プロファ
イルを読み出して用いてもよい。
From the gradation data of RGB (green, blue, red),
Output color components C (Cyan), M (Mazenta), Y
The conversion into (Yellow) and K (blacK) data is color conversion into CMY by memory map interpolation. As shown in FIG. 10, when the RGB space is used as the input color space, the memory map interpolation is that the RGB space is divided into three-dimensional figures (here, cubes) of the same type, and the output value P at the input coordinates (RGB) is divided. In order to obtain, the cube including the coordinates of the input is selected, and the output values on the preset vertices of the eight points of the selected cube and the position of the input in the cube (distance from each vertex) Based on, linear interpolation is performed.
Here, in the case of the present embodiment, the output value P corresponds to the C, M, and Y values, respectively, and the actual input / output (L * a) is assigned to the coordinates (RGB) on the input space used for the interpolation calculation. * B * -CM
The values of C, M, and Y for RGB (L * a * b *) calculated by the least-squares method by measuring the relationship of Y) and using this data are preset. Further, the CMY signal is converted into a CMYK signal by an operation such as the following equation. K = α × min (C, M, Y) C ′ = C−β × K M ′ = M−β × K Y ′ = Y−β × K Note that the color conversion method is not limited to the above-described method, and may be an image. For example, the computer may record the characteristics of the display device in the header information of the image data and transmit the information. When the image output control device is mounted inside the computer, for example, an ICC (Inter Color Cons) may be used.
Ortium) standardized device profile may be read and used.

【0045】色変換手段301における画像補正処理手
段417について、図11を用いて説明する。画像補正
処理手段417は、基本的に実施例1で説明したものと
同様であるのでその説明を省略する。ただし、本実施例
では、閾値情報テーブル411を具備している。すなわ
ち、各プリンタの再現範囲が異なるため、閾値もプリン
タ毎に異なる。また、同様にプリンタのインク特性やこ
の後に行われる中間調処理に応じて閾値が異なる。そこ
で、色変換手段では出力予定のプリンタに関する閾値情
報をテーブル411で具備している。
The image correction processing means 417 in the color conversion means 301 will be described with reference to FIG. The image correction processing means 417 is basically the same as that described in the first embodiment, and therefore its description is omitted. However, in this embodiment, the threshold information table 411 is provided. That is, since the reproduction range of each printer is different, the threshold value is also different for each printer. Similarly, the threshold value varies depending on the ink characteristics of the printer and the halftone processing performed thereafter. Therefore, in the color conversion means, the table 411 is provided with threshold information regarding the printers to be output.

【0046】実施例1と同様にして算出された階調補正
カーブを用いて、色変換テーブル記憶部414に記憶さ
れている色変換テーブルの格子点データを書き換える
(413)。RGB空間上の各格子点にはCMYKへの
変換係数が記憶されている。入力画像データの各画素の
RGB値に対して階調補正を行うのではなく、この格子
点データを書きかえることによって処理の高速化が実現
できる。
Using the gradation correction curve calculated in the same manner as in the first embodiment, the grid point data of the color conversion table stored in the color conversion table storage unit 414 is rewritten (413). CMYK conversion coefficients are stored at each grid point in the RGB space. It is possible to speed up the process by rewriting the grid point data instead of performing the gradation correction on the RGB values of each pixel of the input image data.

【0047】次いで、入力画像データに対し、色変換テ
ーブル記憶部から書きかえられた色変換テーブルを選択
し、補間演算部415に送る。補間演算部415では、
色変換テーブルを参照して、例えば、前述したようなメ
モリマップ補間を実施し、描画手段416に画像データ
を送る。
Next, for the input image data, the rewritten color conversion table is selected from the color conversion table storage unit and sent to the interpolation calculation unit 415. In the interpolation calculation unit 415,
By referring to the color conversion table, for example, the memory map interpolation as described above is performed, and the image data is sent to the drawing means 416.

【0048】画像出力制御装置は、カラー・プリンタ内
部に実装して色変換する場合もあれば、コンピュータ内
に実装する場合もある。コンピュータ内に実装する場
合、上記した色変換テーブルは、コンピュータから出力
可能なプリンタ全ての情報を含む。また、カラー・プリ
ンタと独立に設けられたプリンタ制御装置内に実装して
色変換してから画像データをプリンタに送るようにして
もよい。
The image output control device may be mounted inside the color printer for color conversion, or may be mounted inside the computer. When implemented in a computer, the color conversion table described above includes information on all printers that can be output from the computer. Alternatively, the image data may be sent to the printer after being mounted in a printer control device provided independently of the color printer to perform color conversion.

【0049】更に、本実施形態は、ソフトウエアで実行
することも可能であり、その場合には、コンピュータ内
のプログラムとして存在するプリンタ・ドライバで実行
することができる。
Further, this embodiment can be executed by software, and in this case, it can be executed by a printer driver existing as a program in the computer.

【0050】図12は、本発明をソフトウエアで実施す
る場合のシステム構成例を示す。この画像出力システム
は、ワークステーションとプリンタが接続されている。
ワークステーションは、前述した階調補正処理の機能を
実現するもので、ディスプレイ、キーボード、プログラ
ム読取装置および演算処理装置などで構成されている。
演算処理装置は、種々のコマンドを実行可能なCPU
に、ROM、RAMがバスで接続されている。また、バ
スには大容量記憶装置であるDISKと、ネットワーク
上の機器と通信を行うNICが接続されている。
FIG. 12 shows a system configuration example when the present invention is implemented by software. In this image output system, a workstation and a printer are connected.
The workstation realizes the function of the gradation correction processing described above, and includes a display, a keyboard, a program reading device, an arithmetic processing device, and the like.
The arithmetic processing unit is a CPU capable of executing various commands.
Further, ROM and RAM are connected by a bus. Further, a DISK, which is a mass storage device, and an NIC for communicating with devices on a network are connected to the bus.

【0051】プログラム読取装置は、各種のプログラム
コードを記憶した記憶媒体、すなわち、フロッピー(登
録商標)ディスク、ハードディスク、光ディスク(CD
−ROM,CD−R,CD−R/W,DVD−ROM,
DVD―RAMなど)、光磁気ディスク、メモリカード
などに記憶されているプログラムコードを読み取る装置
で、例えばフロッピーディスクドライブ、光ディスクド
ライブ、光磁気ディスクドライブなどである。
The program reading device is a storage medium storing various program codes, that is, a floppy (registered trademark) disk, a hard disk, an optical disk (CD).
-ROM, CD-R, CD-R / W, DVD-ROM,
A device for reading a program code stored in a DVD-RAM, etc., a magneto-optical disk, a memory card, etc., and is, for example, a floppy disk drive, an optical disk drive, a magneto-optical disk drive, etc.

【0052】記憶媒体に記憶されているプログラムコー
ドは、プログラム読取装置で読みとってDISKなどに
格納され、このDISKなどに格納されたプログラムコ
ードをCPUによって実行することにより、前述した画
像処理方法などを実現する。また、コンピュータが読み
出したプログラムコードを実行することにより、そのプ
ログラムコードの指示に基づき、コンピュータ上で稼動
しているOS(オペレーティングシステム)やデバイス
・ドライバなどが実際の処理の一部または全部を行い、
その処理によって前述した機能が達成される場合も含ま
れる。
The program code stored in the storage medium is read by the program reading device and stored in the DISK or the like. By executing the program code stored in the DISK or the like by the CPU, the above-described image processing method or the like is performed. To be realized. Further, by executing the program code read by the computer, an OS (operating system) or device driver operating on the computer performs a part or all of the actual processing based on the instruction of the program code. ,
The case where the above-mentioned functions are achieved by the processing is also included.

【0053】[0053]

【発明の効果】以上、説明したように、本発明によれ
ば、以下のような効果が得られる。 (1)被写体が属さない明度域の情報を用いて階調補正
のための補正量を制御することにより、階調つぶれを起
こすことなく補正を行うことが可能である。 (2)被写体領域が属する明度域より明るい明度域を制
御領域とすることにより、過補正によって起こるハイラ
イトの階調つぶれ、シャドーの階調つぶれを防ぐことが
可能である。 (3)階調補正カーブを用いた階調補正処理において、
階調補正カーブの接線の傾きに下限を設けることによ
り、過補正によって起こるハイライト、もしくはシャド
ーの階調つぶれを防ぐことが可能である。 (4)シーンに対して適切な制御条件を設けることによ
り、シーンに応じた階調補正を行うことが可能である。 (5)画像出力機器に対して適切な制御条件を設けるこ
とにより、画像出力機器に応じた階調補正を行うことが
可能である。 (6)補正対象画像の特徴に対して適切な制御条件を設
けることにより、画像出力機器に応じた階調補正を行う
ことが可能である。 (7)被写体領域に属する明るさを表す成分から補正量
を求めることにより、被写体に適した階調補正量を得る
ことが可能である。
As described above, according to the present invention, the following effects can be obtained. (1) By controlling the correction amount for gradation correction using the information of the lightness range to which the subject does not belong, it is possible to perform correction without causing gradation collapse. (2) By setting the lightness range brighter than the lightness range to which the subject area belongs to as the control area, it is possible to prevent the gradation gradation loss and the shadow gradation loss caused by overcorrection. (3) In the gradation correction processing using the gradation correction curve,
By setting a lower limit on the inclination of the tangent line of the gradation correction curve, it is possible to prevent the gradation from being overshadowed or the gradation being overshadowed due to overcorrection. (4) By providing an appropriate control condition for a scene, it is possible to perform gradation correction according to the scene. (5) By providing appropriate control conditions for the image output device, it is possible to perform gradation correction according to the image output device. (6) By providing an appropriate control condition for the characteristics of the image to be corrected, it is possible to perform gradation correction according to the image output device. (7) By obtaining the correction amount from the component representing the brightness belonging to the subject area, it is possible to obtain the tone correction amount suitable for the subject.

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

【図1】本発明の実施例1の全体構成を示す。FIG. 1 shows an overall configuration of a first embodiment of the present invention.

【図2】本発明に係る階調補正処理部の構成を示す。FIG. 2 shows a configuration of a gradation correction processing unit according to the present invention.

【図3】被写体領域抽出手段によって抽出された逆光画
像の被写体領域を示す。
FIG. 3 shows a subject region of a backlight image extracted by a subject region extracting means.

【図4】被写体領域の属する輝度域および制御域のヒス
トグラムを示す。
FIG. 4 shows histograms of a brightness area and a control area to which a subject area belongs.

【図5】補正量δを輝度中央値の関数として示す。FIG. 5 shows the correction amount δ as a function of the median luminance value.

【図6】算出された階調補正カーブの第1の例を示す。FIG. 6 shows a first example of a calculated gradation correction curve.

【図7】指数関数で表した階調補正カーブを示す。FIG. 7 shows a gradation correction curve represented by an exponential function.

【図8】算出された階調補正カーブの第1、第2の例を
示す。
FIG. 8 shows first and second examples of calculated gradation correction curves.

【図9】本発明の実施例2に係る構成を示す。FIG. 9 shows a configuration according to a second exemplary embodiment of the present invention.

【図10】メモリマップ補間を説明する図である。FIG. 10 is a diagram illustrating memory map interpolation.

【図11】色変換手段における画像補正処理手段の構成
を示す。
FIG. 11 shows a configuration of image correction processing means in the color conversion means.

【図12】本発明をソフトウエアで実施する場合のシス
テム構成例を示す。
FIG. 12 shows a system configuration example when the present invention is implemented by software.

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

100 画像入力装置 101 画像処理装置 102 階調補正処理部 103 画像出力装置 100 image input device 101 image processing apparatus 102 gradation correction processing unit 103 image output device

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 1/60 H04N 1/46 Z 5C079 5/20 B41J 3/00 A Fターム(参考) 2C087 AA15 AA16 BA08 BB20 BD05 BD36 2C262 AA24 AB13 AC08 BA16 BB03 BB36 BC07 BC10 EA08 GA19 5B057 AA11 BA02 BA30 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC02 CE09 CE11 CE17 CE18 CH07 CH08 CH18 DA08 DB02 DB06 DB09 DC02 DC23 5C021 PA02 PA17 PA99 XA03 XA35 ZA01 5C077 LL01 MP08 PP15 PP21 PP28 PP32 PP33 PP35 PP36 PP37 PP43 PP44 PP52 PP53 PQ08 PQ19 PQ23 RR11 TT09 5C079 HB01 HB03 HB06 HB08 HB12 LA06 LA12 LA31 LA39 MA04 NA05 PA08 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 7 Identification code FI theme code (reference) H04N 1/60 H04N 1/46 Z 5C079 5/20 B41J 3/00 AF term (reference) 2C087 AA15 AA16 BA08 BB20 BD05 BD36 2C262 AA24 AB13 AC08 BA16 BB03 BB36 BC07 BC10 EA08 GA19 5B057 AA11 BA02 BA30 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC02 CE09 CE11 CE17 CE18 CH07 CH01 CH01 CH02 CH03 CH01 CH02 DA02 5 PP15 PP21 PP28 PP32 PP33 PP35 PP36 PP37 PP43 PP44 PP52 PP53 PQ08 PQ19 PQ23 RR11 TT09 5C079 HB01 HB03 HB06 HB08 HB12 LA06 LA12 LA31 LA39 MA04 NA05 PA08

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 カラー画像データの階調を補正する画像
処理装置であって、前記カラー画像データから主要被写
体の領域を抽出する被写体領域抽出手段と、前記主要被
写体領域の情報を基に階調補正量を算出する補正量算出
手段と、前記主要被写体領域が属さない明度域から所定
の制御域を抽出する制御域抽出手段と、所定の制御条件
を用いて前記制御域における階調補正量を制御するか否
かを判定する判定手段と、前記判定手段の判定結果に応
じて階調補正量を制御する制御手段とを備えたことを特
徴とする画像処理装置。
1. An image processing apparatus for correcting the gradation of color image data, comprising object area extracting means for extracting an area of a main object from the color image data, and gradation based on information of the main object area. A correction amount calculation unit that calculates a correction amount, a control region extraction unit that extracts a predetermined control region from a lightness region to which the main subject region does not belong, and a gradation correction amount in the control region using a predetermined control condition. An image processing apparatus comprising: a determination unit that determines whether to control and a control unit that controls a gradation correction amount according to a determination result of the determination unit.
【請求項2】 前記制御域は、前記主要被写体領域が属
する明度域より明るい明度域に設定することを特徴とす
る請求項1記載の画像処理装置。
2. The image processing apparatus according to claim 1, wherein the control area is set to a lightness area brighter than a lightness area to which the main subject area belongs.
【請求項3】 前記制御域は、前記主要被写体の領域が
属する明度域より暗い明度域に設定することを特徴とす
る請求項1記載の画像処理装置。
3. The image processing apparatus according to claim 1, wherein the control area is set to a lightness area darker than a lightness area to which the area of the main subject belongs.
【請求項4】 前記制御条件として、階調補正カーブの
接線の傾きに上限または下限を設けることを特徴とする
請求項1記載の画像処理装置。
4. The image processing apparatus according to claim 1, wherein as the control condition, an upper limit or a lower limit is set for the slope of the tangent line of the gradation correction curve.
【請求項5】 前記階調補正カーブに対する制御条件
は、補正対象画像のシーンに応じて異なることを特徴と
する請求項4記載の画像処理装置。
5. The image processing apparatus according to claim 4, wherein the control condition for the gradation correction curve differs depending on the scene of the correction target image.
【請求項6】 前記制御条件である接線の傾きに対する
下限は、逆光シーンの場合、夜間フラッシュ撮影シーン
に比べて低く設定されることを特徴とする請求項5記載
の画像処理装置。
6. The image processing apparatus according to claim 5, wherein the lower limit of the inclination of the tangent line, which is the control condition, is set to be lower in a backlight scene than in a nighttime flash shooting scene.
【請求項7】 前記階調補正カーブに対する制御条件
は、画像出力機器に応じて異なることを特徴とする請求
項4記載の画像処理装置。
7. The image processing apparatus according to claim 4, wherein the control condition for the gradation correction curve differs depending on the image output device.
【請求項8】 前記制御条件である接線の傾きに対する
下限は、階調再現性の良い画像出力機器ほど低く設定さ
れることを特徴とする請求項7記載の画像処理装置。
8. The image processing apparatus according to claim 7, wherein the lower limit of the gradient of the tangent line, which is the control condition, is set to be lower for an image output device having better gradation reproducibility.
【請求項9】 前記階調補正カーブに対する制御条件
は、補正対象画像の特徴に応じて異なることを特徴とす
る請求項4記載の画像処理装置。
9. The image processing apparatus according to claim 4, wherein the control condition for the gradation correction curve differs depending on the characteristics of the correction target image.
【請求項10】 前記階調補正量は、前記主要被写体領
域に属する明るさを表す成分から求めた統計値を用いて
設定することを特徴とする請求項1記載の画像処理装
置。
10. The image processing apparatus according to claim 1, wherein the gradation correction amount is set using a statistical value obtained from a component representing brightness belonging to the main subject area.
【請求項11】 カラー画像データから主要被写体の領
域を抽出するステップと、前記主要被写体領域の明度情
報を基に階調補正量を算出するステップと、前記算出さ
れた階調補正量に従って階調補正カーブを算出するステ
ップと、前記主要被写体領域が属さない明度域から制御
域を抽出するステップと、前記制御域における前記階調
補正量が適切であるか否かを判定するステップと、適切
でないと判定されたとき、所定の制御条件を用いて新た
な階調補正カーブを算出するステップと、前記階調補正
カーブまたは新たな階調補正カーブを用いて前記カラー
画像データに対して階調補正処理を行うステップとを含
むことを特徴とする画像処理方法。
11. A step of extracting an area of a main subject from color image data, a step of calculating a gradation correction amount based on lightness information of the main subject area, and a step of gradation in accordance with the calculated gradation correction amount. A step of calculating a correction curve, a step of extracting a control area from a lightness area to which the main subject area does not belong, a step of determining whether or not the gradation correction amount in the control area is appropriate, When it is determined that a new gradation correction curve is calculated using a predetermined control condition, gradation correction is performed on the color image data using the gradation correction curve or the new gradation correction curve. An image processing method comprising the step of performing processing.
【請求項12】 請求項12記載の画像処理方法の各ス
テップをコンピュータに実現させるためのプログラムを
記録したコンピュータ読み取り可能な記録媒体。
12. A computer-readable recording medium recording a program for causing a computer to implement each step of the image processing method according to claim 12.
JP2001259224A 2001-06-11 2001-08-29 Image processing apparatus, image processing method, and recording medium Expired - Fee Related JP4367821B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2001259224A JP4367821B2 (en) 2001-08-29 2001-08-29 Image processing apparatus, image processing method, and recording medium
US10/163,305 US7251056B2 (en) 2001-06-11 2002-06-07 Image processing apparatus, image processing method and information recording medium
US11/812,631 US7525688B2 (en) 2001-06-11 2007-06-20 Image processing apparatus, image processing method and information recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001259224A JP4367821B2 (en) 2001-08-29 2001-08-29 Image processing apparatus, image processing method, and recording medium

Publications (2)

Publication Number Publication Date
JP2003069822A true JP2003069822A (en) 2003-03-07
JP4367821B2 JP4367821B2 (en) 2009-11-18

Family

ID=19086628

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001259224A Expired - Fee Related JP4367821B2 (en) 2001-06-11 2001-08-29 Image processing apparatus, image processing method, and recording medium

Country Status (1)

Country Link
JP (1) JP4367821B2 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006120839A1 (en) * 2005-05-13 2006-11-16 Konica Minolta Photo Imaging, Inc. Image processing method, image processing device, and image processing program
JP2007074415A (en) * 2005-09-07 2007-03-22 Nippon Hoso Kyokai <Nhk> Motion vector estimation device and motion vector estimation program
WO2007032324A1 (en) * 2005-09-12 2007-03-22 Konica Minolta Photo Imaging, Inc. Imaging device, image processing device, image processing method, and image processing program
JP2008085761A (en) * 2006-09-28 2008-04-10 Brother Ind Ltd Image processing program and image processing apparatus
JP2008129797A (en) * 2006-11-20 2008-06-05 Brother Ind Ltd Image processing program and image processor
JP2010062920A (en) * 2008-09-04 2010-03-18 Ricoh Co Ltd Image processor, image processing method, program, and recording medium
US7876474B2 (en) 2006-10-31 2011-01-25 Brother Kogyo Kabushiki Kaisha Image processing device capable of suppressing over-correction in Retinex process
US8081831B2 (en) 2006-08-31 2011-12-20 Brother Kogyo Kabushiki Kaisha Image processor performing a high precision retinex process
US8081839B2 (en) 2006-08-31 2011-12-20 Brother Kogyo Kabushiki Kaisha Image processor
US8165418B2 (en) 2007-03-30 2012-04-24 Brother Kogyo Kabushiki Kaisha Image processor
US8248431B2 (en) 2008-06-02 2012-08-21 Ricoh Company Ltd. Image processing apparatus, image processing method, program, and recording medium
US8437031B2 (en) 2006-08-31 2013-05-07 Brother Kogyo Kabushiki Kaisha Image processing device and method for reducing an original image
US11659149B2 (en) 2020-03-13 2023-05-23 Fujifilm Business Innovation Corp. Image processing apparatus and non-transitory computer readable medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006120839A1 (en) * 2005-05-13 2006-11-16 Konica Minolta Photo Imaging, Inc. Image processing method, image processing device, and image processing program
US8170364B2 (en) 2005-05-13 2012-05-01 Konica Minolta Opto, Inc. Image processing method, image processing device, and image processing program
JP2007074415A (en) * 2005-09-07 2007-03-22 Nippon Hoso Kyokai <Nhk> Motion vector estimation device and motion vector estimation program
WO2007032324A1 (en) * 2005-09-12 2007-03-22 Konica Minolta Photo Imaging, Inc. Imaging device, image processing device, image processing method, and image processing program
US8081831B2 (en) 2006-08-31 2011-12-20 Brother Kogyo Kabushiki Kaisha Image processor performing a high precision retinex process
US8437031B2 (en) 2006-08-31 2013-05-07 Brother Kogyo Kabushiki Kaisha Image processing device and method for reducing an original image
US8081839B2 (en) 2006-08-31 2011-12-20 Brother Kogyo Kabushiki Kaisha Image processor
JP2008085761A (en) * 2006-09-28 2008-04-10 Brother Ind Ltd Image processing program and image processing apparatus
JP4735499B2 (en) * 2006-09-28 2011-07-27 ブラザー工業株式会社 Image processing program and image processing apparatus
US7876474B2 (en) 2006-10-31 2011-01-25 Brother Kogyo Kabushiki Kaisha Image processing device capable of suppressing over-correction in Retinex process
JP2008129797A (en) * 2006-11-20 2008-06-05 Brother Ind Ltd Image processing program and image processor
US8165418B2 (en) 2007-03-30 2012-04-24 Brother Kogyo Kabushiki Kaisha Image processor
US8248431B2 (en) 2008-06-02 2012-08-21 Ricoh Company Ltd. Image processing apparatus, image processing method, program, and recording medium
JP2010062920A (en) * 2008-09-04 2010-03-18 Ricoh Co Ltd Image processor, image processing method, program, and recording medium
US11659149B2 (en) 2020-03-13 2023-05-23 Fujifilm Business Innovation Corp. Image processing apparatus and non-transitory computer readable medium

Also Published As

Publication number Publication date
JP4367821B2 (en) 2009-11-18

Similar Documents

Publication Publication Date Title
US10412296B2 (en) Camera using preview image to select exposure
JP3992177B2 (en) Image processing apparatus, image processing method, and computer program
US7251056B2 (en) Image processing apparatus, image processing method and information recording medium
JP4006347B2 (en) Image processing apparatus, image processing system, image processing method, storage medium, and program
US7076119B2 (en) Method, apparatus, and program for image processing
JP4788735B2 (en) Backlight processing of images using image generation history information
US20060215908A1 (en) Image pickup apparatus and image processing method
JP4367821B2 (en) Image processing apparatus, image processing method, and recording medium
JP4154128B2 (en) Image processing apparatus, image processing method, and recording medium on which program for executing the method is recorded
US20090041364A1 (en) Image Processor, Imaging Apparatus and Image Processing Program
JP2004088345A (en) Image forming method, image processor, print preparation device, and storage medium
JPH1169372A (en) Image lightness control method, digital camera used for the same and image processor
JP4107812B2 (en) Image processing apparatus, image processing method, and recording medium
JP4219577B2 (en) Image processing apparatus, image output apparatus, image processing method, and storage medium
JP2009070099A (en) Image-processing device, image-processing method, program and recording medium
JP4228769B2 (en) Backlight processing of images using image generation history information
JP2002094810A (en) Picture processor, picture processing method and memory medium having stored programs for the method
JP2007288245A (en) Imaging apparatus, image processing method, and image processing program
JP2004112494A (en) Image processor, image processing method and recording medium
JP4293469B2 (en) Image processing apparatus, image processing method, and computer program
JP2004096444A (en) Image processor and method thereof
JP2003348343A (en) Output image adjustment method for image file
JP2001313950A (en) Method for making camera type color characteristic profile

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070518

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080605

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080618

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080807

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081210

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090205

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: 20090819

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: 20090821

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

Free format text: PAYMENT UNTIL: 20120904

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130904

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees