JP2000196890A - Method and device for image processing and recording medium - Google Patents

Method and device for image processing and recording medium

Info

Publication number
JP2000196890A
JP2000196890A JP10372579A JP37257998A JP2000196890A JP 2000196890 A JP2000196890 A JP 2000196890A JP 10372579 A JP10372579 A JP 10372579A JP 37257998 A JP37257998 A JP 37257998A JP 2000196890 A JP2000196890 A JP 2000196890A
Authority
JP
Japan
Prior art keywords
density
image
image data
image processing
gradation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10372579A
Other languages
Japanese (ja)
Inventor
Kazuhiko Takemura
和彦 竹村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP10372579A priority Critical patent/JP2000196890A/en
Publication of JP2000196890A publication Critical patent/JP2000196890A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To subject image data to image processing to that a desired object has a desirable density. SOLUTION: Image data S0 acquired by a digital camera 1 are inputted to an image processing means 2. In the image processing means 2, the area of the face of a person is extracted from an image represented by image data S0 by a face extraction means 5. A gradation conversion processing means in the density of the face area is not within a target density range, image data S0 is subjected to gradation conversion processing, so that the density of the face area is within the target density range and densities of a maximum density part and a minimum density part will not be converted, and processed image data S1 are obtained. The data S1 are reproduced by a reproducing means 3.

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 method and apparatus for performing image processing on digital image data and a computer-readable recording medium storing a program for causing a computer to execute the image processing method. is there.

【0002】[0002]

【従来の技術】写真ネガフイルムやリバーサルフイルム
に記録された画像をスキャナ等により読み取ることによ
り得られたデジタル画像データ、あるいはデジタルカメ
ラにより取得されたデジタル画像データからカラープリ
ントを作成する場合においては、プリントすることによ
り得られるプリント画像の明るさすなわち濃度が適切な
ものとなるように、デジタル画像データに対して濃度補
正を加えている。とくに、画像に含まれる人物の顔など
の所望とされる被写体の濃度が適切な濃度となるよう
に、画像全体に対して濃度補正を行っている。
2. Description of the Related Art In the case of producing a color print from digital image data obtained by reading an image recorded on a photographic negative film or a reversal film by a scanner or the like, or digital image data obtained by a digital camera, Digital image data is subjected to density correction so that the brightness, that is, the density of a print image obtained by printing is appropriate. In particular, density correction is performed on the entire image so that the density of a desired subject, such as the face of a person, included in the image becomes an appropriate density.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、画像全
体の濃度を高くする方向に濃度補正を行うと、画像中の
明るい部分(ハイライト部)の濃度も高くなるため、明
るい部分が暗くなってしまい、画像に破綻を来すおそれ
がある。逆に、画像全体の濃度を低くする方向に濃度補
正を行うと、画像中の暗い部分(シャドー部)の濃度も
低下するため、しまりのない印象の画像となってしまう
おそれがある。
However, if density correction is performed in the direction of increasing the density of the entire image, the density of a bright portion (highlight portion) in the image also increases, so that the bright portion becomes dark. However, there is a risk that the image will break down. Conversely, if the density correction is performed in the direction of lowering the density of the entire image, the density of the dark part (shadow part) in the image also decreases, which may result in an image having a tight impression.

【0004】本発明は上記事情に鑑みなされたものであ
り、画像に破綻を来すことなく、画像中の所望とする被
写体の濃度を適切な濃度にすることができる画像処理方
法および装置並びに画像処理方法をコンピュータに実行
させるためのプログラムを記録したコンピュータ読取り
可能な記録媒体を提供することを目的とするものであ
る。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and provides an image processing method and apparatus and an image processing method capable of setting a desired density of a subject in an image to an appropriate density without causing a breakdown in the image. It is an object of the present invention to provide a computer-readable recording medium on which a program for causing a computer to execute the processing method is recorded.

【0005】[0005]

【課題を解決するための手段】本発明による画像処理方
法は、デジタル画像データに対して画像処理を施す画像
処理方法において、前記デジタル画像データにより表さ
れる画像における所望とする被写体の濃度を求め、前記
所望とする被写体の濃度が目標濃度範囲にない場合は、
前記画像における最高濃度部および最低濃度部の濃度を
略保持した状態において、前記被写体の濃度が前記目標
濃度範囲となるように前記画像の階調を変換して処理済
み画像データを得ることを特徴とするものである。
An image processing method according to the present invention is an image processing method for performing image processing on digital image data, wherein a desired object density in an image represented by the digital image data is obtained. If the desired density of the subject is not within the target density range,
In a state where the densities of the highest density portion and the lowest density portion in the image are substantially held, the gradation of the image is converted so that the density of the subject falls within the target density range to obtain processed image data. It is assumed that.

【0006】なお、本発明による画像処理方法において
は、前記デジタル画像データにより表される画像の色度
を略保持しつつ、前記階調を変換することが好ましい。
In the image processing method according to the present invention, it is preferable that the gradation is converted while substantially maintaining the chromaticity of the image represented by the digital image data.

【0007】また、前記所望とする被写体が人物の顔で
あることが好ましい。
Preferably, the desired subject is a person's face.

【0008】ここで、「画像における最高濃度部および
最低濃度部の濃度を略保持した状態」とは、最高濃度部
および最低濃度部を完全に固定させた状態のみならず、
若干変更する状態をも含む概念である。
Here, "the state where the densities of the highest density part and the lowest density part in the image are substantially maintained" means not only the state where the highest density part and the lowest density part are completely fixed, but also
This is a concept that includes a state of slightly changing.

【0009】また、「目標濃度範囲」としては、視覚濃
度で0.4〜1.0の範囲であることが好ましい。
The "target density range" is preferably in the range of 0.4 to 1.0 in visual density.

【0010】また、「画像の色度を略保持する」とは、
色度を完全に保持するのみならず、若干変更する場合を
も含む概念である。
[0010] "Maintaining the chromaticity of an image substantially" means
This concept not only completely retains the chromaticity but also involves a slight change.

【0011】本発明による画像処理装置は、デジタル画
像データに対して画像処理を施す画像処理装置におい
て、前記デジタル画像データにより表される画像におけ
る所望とする被写体の濃度を求める濃度算出手段と、前
記所望とする被写体の濃度が目標濃度範囲にない場合
は、前記画像における最高濃度部および最低濃度部の濃
度を略保持した状態において、前記被写体の濃度が前記
目標濃度範囲となるように前記画像の階調を変換して処
理済み画像データを得る階調変換手段とを備えたことを
特徴とするものである。
An image processing apparatus according to the present invention is an image processing apparatus for performing image processing on digital image data, comprising: density calculating means for obtaining a desired density of a subject in an image represented by the digital image data; When the density of the desired subject is not in the target density range, the density of the subject is in the target density range in a state where the densities of the highest density portion and the lowest density portion in the image are substantially maintained. Gradation conversion means for converting gradation and obtaining processed image data.

【0012】なお、本発明による画像処理装置におい
て、階調変換手段は、前記デジタル画像データにより表
される画像の色度を略保持しつつ、前記階調を変換する
手段であることが好ましい。
In the image processing apparatus according to the present invention, it is preferable that the gradation converting means is means for converting the gradation while substantially maintaining the chromaticity of the image represented by the digital image data.

【0013】また、前記所望とする被写体が人物の顔で
あることが好ましい。
It is preferable that the desired subject is a person's face.

【0014】なお、本発明による画像処理方法を、コン
ピュータに実行させるためのプログラムとして、コンピ
ュータ読取り可能な記録媒体に記録して提供してもよ
い。
The image processing method according to the present invention may be provided as a program for causing a computer to execute the method by recording the program on a computer-readable recording medium.

【0015】[0015]

【発明の効果】本発明によれば、画像中の所望とする被
写体の濃度が目標濃度範囲にない場合に、画像における
最高濃度部および最低濃度部を略保持した状態で、被写
体の濃度が目標濃度範囲となるように画像の階調を変換
するようにしたため、所望とする被写体の濃度が目標濃
度範囲のものとされるとともに、画像の最高濃度部およ
び最低濃度部の濃度は処理前から略変化しないこととな
る。したがって、所望とする被写体の濃度を適切な濃度
とすることができ、かつ画像中のハイライト部の濃度が
低下したり、シャドー部の濃度が高くなったりすること
もないため、破綻のない画像を再現可能な処理済み画像
データを得ることができる。
According to the present invention, when the density of a desired subject in an image is not within the target density range, the density of the subject is set to a target density while the highest density portion and the lowest density portion of the image are substantially held. Since the gradation of the image is converted so as to be in the density range, the density of the desired subject is set in the target density range, and the densities of the highest density portion and the lowest density portion of the image are substantially the same as before processing. It will not change. Therefore, the desired density of the subject can be set to an appropriate density, and the density of the highlight portion in the image does not decrease or the density of the shadow portion does not increase, so that the image without failure is obtained. Can be obtained.

【0016】また、画像の色度を略保持しつつ画像の階
調を変更することにより、処理済み画像データにより表
される画像の色度を階調変更前の画像と略同一にするこ
とができ、これにより階調変更前の画像と略同様の色度
を有する画像を再現可能な処理済み画像データを得るこ
とができる。
By changing the gradation of the image while substantially maintaining the chromaticity of the image, the chromaticity of the image represented by the processed image data can be made substantially the same as the image before the gradation is changed. As a result, processed image data capable of reproducing an image having substantially the same chromaticity as the image before the gradation change can be obtained.

【0017】さらに、所望とする被写体を人物の顔とす
ることにより、人物の顔が所望とする濃度となるように
階調変換処理を行うことができ、これにより再生画像に
おける人物の肌色を所望とする濃度に再現することがで
きる。
Further, by setting the desired subject as a person's face, gradation conversion processing can be performed so that the person's face has a desired density. Can be reproduced.

【0018】[0018]

【発明の実施の形態】以下図面を参照して本発明の実施
形態について説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0019】図1は本発明の実施形態による画像処理装
置を備えたプリントシステムの構成を示す概略ブロック
図である。図1に示すようにこのプリントシステムは、
デジタルカメラ1により取得された画像データS0に対
して画像処理を施して処理済み画像データS1を得る画
像処理手段2と、画像処理手段2において画像処理が施
された処理済み画像データS1をプリントなどのハード
コピーあるいはCRTモニタなどにソフトコピーとして
再現するための再生手段3とからなる。
FIG. 1 is a schematic block diagram showing the configuration of a print system having an image processing apparatus according to an embodiment of the present invention. As shown in FIG. 1, this printing system
Image processing means 2 for performing image processing on image data S0 obtained by digital camera 1 to obtain processed image data S1, and printing of processed image data S1 subjected to image processing in image processing means 2 And reproduction means 3 for reproducing as a hard copy or a soft copy on a CRT monitor or the like.

【0020】画像処理手段2は、画像データS0により
表される画像から、人物の顔に対応する領域を抽出する
顔抽出手段5と、顔抽出手段5により抽出された顔領域
の画像データS0に基づいて、画像データS0の全体に
対して階調変換処理を施す階調変換処理手段6とを備え
る。
The image processing means 2 includes a face extracting means 5 for extracting an area corresponding to a human face from an image represented by the image data S0, and a face area image data S0 extracted by the face extracting means 5. And a tone conversion processing means 6 for performing tone conversion processing on the entire image data S0 based on the image data S0.

【0021】次いで、本実施形態の動作について説明す
る。図2は本実施形態によるプリントシステムにおいて
行われる処理を示すフローチャートである。まず、デジ
タルカメラ1により取得された画像データS0が画像処
理手段2の顔抽出手段5に入力され、顔領域が抽出され
る(ステップS1)。この顔領域抽出の具体的な方法と
しては、例えば特開平8−122944号公報あるいは
特開平5−100328号公報に記載された方法を用い
ることができる。
Next, the operation of this embodiment will be described. FIG. 2 is a flowchart illustrating processing performed in the print system according to the present embodiment. First, the image data S0 obtained by the digital camera 1 is input to the face extracting means 5 of the image processing means 2, and a face area is extracted (step S1). As a specific method of extracting the face region, for example, a method described in JP-A-8-122944 or JP-A-5-100328 can be used.

【0022】特開平8−122944号公報に記載され
た方法は、画像を複数領域に分割し、非人物領域を除外
した後に人物の頭部の輪郭を表す形状パターンを検出
し、検出したパターンに応じて顔候補領域を検出し、さ
らに人物の顔の輪郭を表す形状パターン、顔の内部構造
を表す形状パターンおよび人物の胴体の輪郭を表す形状
パターンをそれぞれ検出し、検出したパターンにより顔
候補領域の整合性を判定し、人物の顔に相当する領域で
ある確度が最も高い領域を判定することにより、顔領域
を抽出するものである。
In the method described in Japanese Patent Application Laid-Open No. 8-122944, an image is divided into a plurality of regions, a non-human region is excluded, and a shape pattern representing the contour of the head of a person is detected. And a shape pattern representing the outline of the face of the person, a shape pattern representing the internal structure of the face, and a shape pattern representing the contour of the torso of the person, respectively. Is determined, and a face region is extracted by determining a region having the highest accuracy, which is a region corresponding to the face of a person.

【0023】特開平5−100328号に記載された方
法は、画像を複数領域に分割して測光し、測光により得
られたデータを色相および彩度に変換し、これらの2次
元ヒストグラムを作成するとともに、このヒストグラム
を単峰の山毎に分解し、さらに画像の各画素がいずれの
山に属するかを判断して画素を分割された山に対応する
群に分解し、各群毎に画像を分割して顔候補領域を抽出
し、抽出した領域の画像サイズと主要画像サイズ情報か
ら得られる画像サイズとを比較して最も一致する領域を
顔領域として抽出するものである。
According to the method described in Japanese Patent Application Laid-Open No. Hei 5-100328, an image is divided into a plurality of regions, photometry is performed, data obtained by photometry is converted into hue and saturation, and a two-dimensional histogram of these is created. At the same time, this histogram is decomposed for each single-peak mountain, and it is determined which pixel each pixel of the image belongs to, and the pixels are decomposed into a group corresponding to the divided mountain, and the image is decomposed for each group. The face candidate area is extracted by division, and the image size of the extracted area is compared with the image size obtained from the main image size information, and the area that matches the most is extracted as the face area.

【0024】次に、階調変換処理手段6において、顔抽
出手段5により抽出された顔領域の濃度に基づいて、画
像データS0に対して階調変換処理が施される。以下こ
の階調変換処理について説明する。まず画像データS0
により表される画像における各画素のRGB値(真数
値)から、各画素の視覚濃度Dを下記の式(1)により
求める(ステップS2)。
Next, in the gradation conversion processing means 6, a gradation conversion processing is performed on the image data S0 based on the density of the face area extracted by the face extraction means 5. Hereinafter, this gradation conversion processing will be described. First, the image data S0
The visual density D of each pixel is obtained from the RGB value (true numerical value) of each pixel in the image represented by the following formula (1) (step S2).

【0025】 D=−log(Y/100) (1) 但し、Y=0.2126*R+0.7152*G+0.0722*B なお、RGB値が対数値である場合には、真数値に変換
した後に上記式(1)により視覚濃度Dを求める。
D = −log (Y / 100) (1) where Y = 0.2126 * R + 0.7152 * G + 0.0722 * B If the RGB value is a logarithmic value, the above value is converted to an exact value. The visual density D is obtained by the equation (1).

【0026】次に、視覚濃度Dから画像中の最高濃度値
Dmaxおよび最低濃度値Dminを求めるとともに、
顔抽出手段5において抽出された顔領域における各画素
の視覚濃度の平均濃度値Dfaceを求める(ステップS
3)。
Next, the maximum density value Dmax and the minimum density value Dmin in the image are obtained from the visual density D,
The average density value Dface of the visual density of each pixel in the face area extracted by the face extraction means 5 is obtained (Step S).
3).

【0027】そして、平均濃度値Dfaceが肌色の目標濃
度範囲内にあるか否かが判断される(ステップS4)。
ここで、目標濃度範囲としては、視覚濃度で0.4〜
1.0の範囲が挙げられる。そして、平均濃度値Dface
が目標濃度範囲の上限を越える場合には、図3に示すよ
うな下に凸で単調増加する階調変換曲線により、平均濃
度値Dfaceが目標濃度範囲内となるように画像データS
0を変換する。一方、平均濃度値Dfaceが目標濃度範囲
の下限を越える場合には、図4に示すような上に凸で単
調増加する階調変換曲線により、平均濃度値Dfaceが目
標濃度範囲内となるように画像データS0を変換する
(ステップS5)。ここで、図3および図4に示す変換
曲線は、最高濃度値Dmaxおよび最低濃度値Dmin
を変換しないような曲線となっているため、変換後の画
像における最高濃度値Dmaxおよび最低濃度値Dmi
nは変化しないものとなる。以下、平均濃度値Dfaceが
目標濃度範囲にない場合における画像データS0の変換
について説明する。
Then, it is determined whether or not the average density value Dface is within the target density range of the flesh color (step S4).
Here, the target density range is 0.4 to 0.4 in visual density.
The range of 1.0 is mentioned. And the average density value Dface
Is larger than the upper limit of the target density range, the image data S is set so that the average density value Dface falls within the target density range by a gradation conversion curve which is convex downward and monotonically increases as shown in FIG.
Convert 0. On the other hand, when the average density value Dface is below the lower limit of the target density range, the average density value Dface falls within the target density range by a gradation conversion curve that is upwardly convex and monotonically increases as shown in FIG. The image data S0 is converted (step S5). Here, the conversion curves shown in FIGS. 3 and 4 correspond to the maximum density value Dmax and the minimum density value Dmin.
Are not converted, so that the maximum density value Dmax and the minimum density value Dmi in the converted image
n does not change. Hereinafter, the conversion of the image data S0 when the average density value Dface is not within the target density range will be described.

【0028】まず、画像データS0により表される画像
における各画素のRGB値Ri,Gi,Biから下記の
式(2)に示すように、CIE1931三刺激値Xi,
Yi,Ziおよび色度値SXi,SYiを求める。
First, based on the RGB values Ri, Gi, Bi of each pixel in the image represented by the image data S0, the CIE1931 tristimulus values Xi,
Yi, Zi and chromaticity values SXi, SYi are obtained.

【0029】 ここで、マトリクス|A|は、三刺激値R,G,Bを三
刺激値X,Y,Zに変換するためのマトリクスであり、
例えば以下のような値を用いることができる。
[0029] Here, the matrix | A | is a matrix for converting tristimulus values R, G, B into tristimulus values X, Y, Z.
For example, the following values can be used.

【0030】 なお、マトリクス|A|に代えて、ルックアップテーブ
ルにより三刺激値Xi,Yi,Ziを求めるようにして
もよい。
[0030] Note that, instead of the matrix | A |, the tristimulus values Xi, Yi, Zi may be obtained from a look-up table.

【0031】次に、画像データS0により表される画像
における各画素の視覚濃度Diを、三刺激値X,Y,Z
のうち輝度を表すY値に基づいて下記の式(4)により
求める。
Next, the visual density Di of each pixel in the image represented by the image data S0 is calculated using the tristimulus values X, Y, Z
Is calculated by the following equation (4) based on the Y value representing the luminance.

【0032】 Di=−log(Y) (4) そして、上記図3あるいは図4に示す変換曲線に基づい
て、視覚濃度Diを変換して変換視覚濃度Di′を得、
さらに下記の式(5)により変換視覚濃度Di′に対応
するY値であるYi′を求める。
Di = −log (Y) (4) Then, based on the conversion curve shown in FIG. 3 or FIG. 4, the visual density Di is converted to obtain a converted visual density Di ′,
Further, a Y value Yi 'corresponding to the converted visual density Di' is obtained by the following equation (5).

【0033】 Yi′=10-Di′ (5) 次に、式(2)により求められたSXi,SYiおよび
式(5)により求められたYi′に基づいて、変換後の
Xi′,Zi′を下記の式(6)により求める。
Yi ′ = 10 −Di ′ (5) Next, based on SXi, SYi obtained by Expression (2) and Yi ′ obtained by Expression (5), Xi ′, Zi ′ after conversion Is determined by the following equation (6).

【0034】 Xi′=(SXi/SYi)×Yi′ Zi′=((1−SXi−SYi)/SYi)×Yi′ (6) そして、このようにして求められたXi′,Yi′,Z
i′に基づいて、上記式(1)を逆に解くことにより、
処理済み画素値Ri′,Gi′,Bi′を得る。
Xi ′ = (SXi / SYi) × Yi ′ Zi ′ = ((1−SXi−SYi) / SYi) × Yi ′ (6) Xi ′, Yi ′, Z
By solving the above equation (1) in reverse based on i ′,
The processed pixel values Ri ', Gi', Bi 'are obtained.

【0035】そして、この処理済み画素値Ri′,G
i′,Bi′を処理済み画像データS1として再生手段
3において再生する(ステップS6)。なお、顔領域の
平均濃度値Dfaceが目標濃度範囲内にある場合にはステ
ップS4が肯定され、画像データS0が処理済み画像デ
ータS1として再生手段3において再生される。
The processed pixel values Ri ', G
The reproduction means 3 reproduces i 'and Bi' as processed image data S1 (step S6). If the average density value Dface of the face area is within the target density range, step S4 is affirmed, and the image data S0 is reproduced by the reproduction means 3 as processed image data S1.

【0036】このように、本実施形態によれば、画像デ
ータS0により表される画像中の顔領域の濃度が目標濃
度範囲にない場合に、顔領域の濃度が所定の濃度とされ
るとともに、画像の最高濃度部および最低濃度部の濃度
は処理前と変化しないこととなるため、顔の濃度を適切
な濃度とすることができ、かつ画像中のハイライト部の
濃度が低下したり、シャドー部の濃度が高くなったりす
ることがなくなり、その結果、破綻のない画像を再現可
能な処理済み画像データS1を得ることができる。
As described above, according to this embodiment, when the density of the face area in the image represented by the image data S0 is not within the target density range, the density of the face area is set to a predetermined density, Since the densities of the highest density part and the lowest density part of the image do not change from before processing, the density of the face can be set to an appropriate density, and the density of the highlight part in the image decreases, As a result, it is possible to obtain processed image data S1 capable of reproducing an image without failure.

【0037】また、上記実施形態においては、画像デー
タS0により表される画像における各画素値を、三刺激
値X,Y,Zに変換し、輝度成分を表すY値のみを上記
図3あるいは図4に示す変換曲線により変換して、処理
済み画像データS1を得るようにしたため、処理済み画
像データS1により表される画像と画像データS0によ
り表される画像とにおいて色度が変更されることがなく
なり、これにより、階調変更前の画像と略同様の色度を
有する画像を再現可能な処理済み画像データS1を得る
ことができる。
In the above embodiment, each pixel value in the image represented by the image data S0 is converted into tristimulus values X, Y, and Z, and only the Y value representing the luminance component is converted to the value shown in FIG. 4 to obtain the processed image data S1, the chromaticity may be changed between the image represented by the processed image data S1 and the image represented by the image data S0. As a result, processed image data S1 capable of reproducing an image having substantially the same chromaticity as the image before the gradation change can be obtained.

【0038】ここで、目標濃度範囲を視覚濃度で0.4
〜1.0に設定する理由について説明する。まず、市販
のデジタルスチルカメラにより撮影した種々のシーンか
らなる269枚のポートレート写真に対して、アドビ社
のPhotoshopを使用してシーンに含まれる顔画像の肌色
領域を抽出し、さらにその領域におけるRGB値の平均
値を算出した。デジタルスチルカメラが、ITU(Inte
rnational Telecommunications Union)のRecommendati
on709で定める光電変換特性、RGB原色、参照白色に
したがってエンコードされていることを仮定し、各シー
ンの肌色のRGB値の平均値を三刺激値XYZに変換
し、さらにそのY値から視覚濃度を算出した。また、全
ポートレート写真を5人の被験者により観察することに
よって主観評価実験を行い、視覚濃度に対する好ましさ
の度合いを調査した。調査結果を表1に示す。表1に示
す調査結果より、顔画像の好ましい濃度は、視覚濃度で
0.4〜1.0であることが分かった。ここで、撮影に
より得られた画像において、顔画像の濃度分布としては
図5に示すように比較的広い分布を示すことが予想され
る。したがって、顔画像の濃度が0.4〜1.0の範囲
内にない場合に、視覚濃度として0.4〜1.0の範囲
内に収まるように変換を行うことが好ましい。
Here, the target density range is set to a visual density of 0.4.
The reason for setting the value to 1.0 will be described. First, for 269 portrait photos composed of various scenes taken by a commercially available digital still camera, a skin color region of a face image included in the scene is extracted using Photoshop of Adobe Co., and further extracted in the region. The average of the RGB values was calculated. Digital Still Cameras
Recommendation of rnational Telecommunications Union)
Assuming that encoding is performed in accordance with the photoelectric conversion characteristics, RGB primary colors, and reference white color specified in on709, the average value of the RGB values of the flesh color of each scene is converted into a tristimulus value XYZ, and the visual density is calculated from the Y value. Calculated. In addition, a subjective evaluation experiment was performed by observing all portrait photographs by five subjects, and the degree of preference for visual density was investigated. Table 1 shows the survey results. From the survey results shown in Table 1, it was found that the preferred density of the face image was 0.4 to 1.0 in visual density. Here, in the image obtained by the photographing, it is expected that the density distribution of the face image shows a relatively wide distribution as shown in FIG. Therefore, when the density of the face image is not within the range of 0.4 to 1.0, it is preferable to perform the conversion so that the visual density falls within the range of 0.4 to 1.0.

【0039】[0039]

【表1】 [Table 1]

【0040】なお、上記の実施形態においては、顔抽出
手段5において上記特開平8−122944号等に記載
された方法により顔領域を抽出しているが、画像データ
S0をモニタに表示した後に、オペレータがマニュアル
入力により顔領域を抽出するようにしてもよい。
In the above embodiment, the face extracting means 5 extracts the face area by the method described in the above-mentioned Japanese Patent Application Laid-Open No. 8-122944, but after displaying the image data S0 on the monitor, The operator may manually extract the face area.

【0041】また、上記実施形態においては、顔領域を
抽出して顔領域の濃度が目標濃度範囲となるように階調
変換処理を行っているが、例えば緑色や青空等の青色が
所望とする濃度となるように、これらの緑色あるいは青
色などの所望とする被写体が存在する領域を抽出し、こ
の領域の濃度が目標濃度範囲となるように階調変換処理
を行うようにしてもよい。
Further, in the above embodiment, the face area is extracted and the gradation conversion processing is performed so that the density of the face area falls within the target density range. However, for example, blue such as green or blue sky is desired. An area in which the desired subject such as green or blue exists may be extracted so as to obtain the density, and the gradation conversion processing may be performed so that the density of this area falls within the target density range.

【0042】さらに、上記各実施形態においては、デジ
タルカメラ1により取得された画像データS0に対して
画像処理を施しているが、スキャナ等により読み取られ
た画像データに対しても同様に画像処理を施すことによ
り、所望とする被写体が所望とする濃度となるような画
像を再現可能な処理済み画像データを得ることができ
る。
Further, in each of the above embodiments, the image processing is performed on the image data S0 obtained by the digital camera 1, but the image processing is similarly performed on the image data read by the scanner or the like. By performing the processing, it is possible to obtain processed image data capable of reproducing an image in which a desired subject has a desired density.

【0043】さらにまた、上記実施形態においては、画
像データS0から三刺激値X,Y,Zを求め、Y値のみ
を図3あるいは図4に示す変換曲線により変換している
が、画像データS0により表される画像における各画素
値のRGB値Ri,Gi,Biを下記の式(7)により
濃度値に変換し、これにより得られた濃度値DR,D
G,DBを図3あるいは図4に示す変換曲線により変換
し、さらに変換することにより得られた濃度値DR′,
DG′,DB′を下記の式(8)により輝度に変換して
処理済み画像データS1を得てもよい。この場合、変換
前と変換後とにおいて画像の色度は変更されるが、画像
の最高濃度部および最低濃度部の濃度は処理前と変化し
ないこととなるため、顔の濃度を適切な濃度とすること
ができ、かつ画像中のハイライト部の濃度が低下した
り、シャドー部の濃度が高くなったりすることがなくな
り、その結果、破綻のない画像を再現可能な処理済み画
像データS1を得ることができる。
Furthermore, in the above embodiment, tristimulus values X, Y, and Z are obtained from the image data S0, and only the Y value is converted by the conversion curve shown in FIG. 3 or FIG. The RGB values Ri, Gi, Bi of the respective pixel values in the image represented by are converted into density values by the following equation (7), and the density values DR, D obtained by this are converted.
G and DB are converted according to the conversion curves shown in FIG. 3 or FIG. 4, and the density values DR ′,
DG 'and DB' may be converted into luminance by the following equation (8) to obtain processed image data S1. In this case, the chromaticity of the image is changed before and after the conversion, but since the densities of the highest density portion and the lowest density portion of the image do not change from before the processing, the density of the face is set to an appropriate density. And the density of the highlight portion in the image does not decrease or the density of the shadow portion does not increase. As a result, processed image data S1 capable of reproducing an image without failure is obtained. be able to.

【0044】 DR=−logR DG=−logG (7) DB=−logB R′=10-DR G′=10-DG (8) B′=10-DB また、上記実施形態においては、図3および図4に示す
ように、最高濃度部および最低濃度部を全く変化させな
いような階調変換曲線を設定しているが、例えば濃度値
で0.1未満程度であれば変化させてもよいものであ
る。
[0044] DR = -logR DG = -logG (7 ) DB = -logB R '= 10 -DR G' = 10 -DG (8) B '= 10 -DB In the above embodiment, FIG. 3 and As shown in FIG. 4, a gradation conversion curve is set such that the highest density portion and the lowest density portion are not changed at all, but may be changed if the density value is less than about 0.1, for example. is there.

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

【図1】本発明の実施形態による画像処理装置を適用し
たプリントシステムの構成を示す概略ブロック図
FIG. 1 is a schematic block diagram illustrating a configuration of a print system to which an image processing apparatus according to an embodiment of the present invention is applied.

【図2】本発明の実施形態において行われる処理を示す
フローチャート
FIG. 2 is a flowchart illustrating processing performed in an embodiment of the present invention.

【図3】階調変換曲線を示すグラフ(その1)FIG. 3 is a graph showing a gradation conversion curve (part 1).

【図4】階調変換曲線を示すグラフ(その2)FIG. 4 is a graph showing a gradation conversion curve (part 2).

【図5】顔画像の濃度分布を示すグラフFIG. 5 is a graph showing a density distribution of a face image;

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

1 デジタルカメラ 2 画像処理手段 3 再生手段 5 顔抽出手段 6 階調変換処理手段 DESCRIPTION OF SYMBOLS 1 Digital camera 2 Image processing means 3 Reproduction means 5 Face extraction means 6 Gradation conversion processing means

フロントページの続き Fターム(参考) 5B057 AA11 BA02 CA01 CA08 CA12 CB01 CB08 CB12 CC03 CE11 DA08 DB02 DB06 DB09 DC22 5C066 AA05 AA11 BA20 CA05 EA00 EB01 EC05 GA01 GB01 HA03 KM01 LA02 5C077 MP01 MP08 PP15 PP27 PP31 PP43 TT02 TT09 Continued on front page F term (reference) 5B057 AA11 BA02 CA01 CA08 CA12 CB01 CB08 CB12 CC03 CE11 DA08 DB02 DB06 DB09 DC22 5C066 AA05 AA11 BA20 CA05 EA00 EB01 EC05 GA01 GB01 HA03 KM01 LA02 5C077 MP01 MP08 PP15 PP27 PP31 PP43

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 デジタル画像データに対して画像処理を
施す画像処理方法において、 前記デジタル画像データにより表される画像における所
望とする被写体の濃度を求め、 前記所望とする被写体の濃度が目標濃度範囲にない場合
は、前記画像における最高濃度部および最低濃度部の濃
度を略保持した状態において、前記被写体の濃度が前記
目標濃度範囲となるように前記画像の階調を変換して処
理済み画像データを得ることを特徴とする画像処理方
法。
1. An image processing method for performing image processing on digital image data, comprising: obtaining a density of a desired subject in an image represented by the digital image data; In the case where the density of the object is within the maximum density portion and the minimum density portion of the image, the gradation of the image is converted so that the density of the subject falls within the target density range. An image processing method comprising:
【請求項2】 前記デジタル画像データにより表される
画像の色度を略保持しつつ、前記階調を変換することを
特徴とする請求項1記載の画像処理方法。
2. The image processing method according to claim 1, wherein the gradation is converted while substantially maintaining the chromaticity of the image represented by the digital image data.
【請求項3】 前記所望とする被写体が人物の顔である
ことを特徴とする請求項1または2記載の画像処理方
法。
3. The image processing method according to claim 1, wherein the desired subject is a human face.
【請求項4】 デジタル画像データに対して画像処理を
施す画像処理装置において、 前記デジタル画像データにより表される画像における所
望とする被写体の濃度を求める濃度算出手段と、 前記所望とする被写体の濃度が目標濃度範囲にない場合
は、前記画像における最高濃度部および最低濃度部の濃
度を略保持した状態において、前記被写体の濃度が前記
目標濃度範囲となるように前記画像の階調を変換して処
理済み画像データを得る階調変換手段とを備えたことを
特徴とする画像処理装置。
4. An image processing apparatus for performing image processing on digital image data, comprising: density calculating means for calculating a desired density of a subject in an image represented by the digital image data; Is not within the target density range, the tone of the image is converted so that the density of the subject falls within the target density range in a state where the densities of the highest density portion and the lowest density portion in the image are substantially maintained. An image processing apparatus, comprising: tone conversion means for obtaining processed image data.
【請求項5】 階調変換手段は、前記デジタル画像デー
タにより表される画像の色度を略保持しつつ、前記階調
を変換する手段であることを特徴とする請求項4記載の
画像処理装置。
5. The image processing apparatus according to claim 4, wherein said gradation conversion means is means for converting said gradation while substantially retaining chromaticity of an image represented by said digital image data. apparatus.
【請求項6】 前記所望とする被写体が人物の顔である
ことを特徴とする請求項3または4記載の画像処理装
置。
6. The image processing apparatus according to claim 3, wherein the desired subject is a human face.
【請求項7】 デジタル画像データに対して画像処理を
施す画像処理方法をコンピュータに実行させるためのプ
ログラムを記録したコンピュータ読取り可能な記録媒体
において、 前記プログラムは、前記デジタル画像データにより表さ
れる画像における所望とする被写体の濃度を求める手順
と、 前記所望とする被写体の濃度が目標濃度範囲にない場合
は、前記画像における最高濃度部および最低濃度部の濃
度を略保持した状態において、前記被写体の濃度が前記
目標濃度範囲となるように前記画像の階調を変換して処
理済み画像データを得る手順とを有することを特徴とす
るコンピュータ読取り可能な記録媒体。
7. A computer-readable recording medium storing a program for causing a computer to execute an image processing method for performing image processing on digital image data, wherein the program is an image represented by the digital image data. The procedure for obtaining the density of the desired subject in the step, and when the density of the desired subject is not within the target density range, the density of the subject is maintained in a state where the densities of the highest density portion and the lowest density portion in the image are substantially held. Converting the tone of the image to obtain processed image data so that the density falls within the target density range.
【請求項8】 前記階調を変換する手順は、前記デジタ
ル画像データにより表される画像の色度を略保持しつ
つ、前記階調を変換する手順であることを特徴とする請
求項7記載のコンピュータ読取り可能な記録媒体。
8. The method according to claim 7, wherein the step of converting the gradation is a step of converting the gradation while substantially maintaining the chromaticity of the image represented by the digital image data. Computer-readable recording medium.
【請求項9】 前記所望とする被写体が人物の顔である
ことを特徴とする請求項7または8記載のコンピュータ
読取り可能な記録媒体。
9. The computer-readable recording medium according to claim 7, wherein the desired subject is a human face.
JP10372579A 1998-12-28 1998-12-28 Method and device for image processing and recording medium Pending JP2000196890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10372579A JP2000196890A (en) 1998-12-28 1998-12-28 Method and device for image processing and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10372579A JP2000196890A (en) 1998-12-28 1998-12-28 Method and device for image processing and recording medium

Publications (1)

Publication Number Publication Date
JP2000196890A true JP2000196890A (en) 2000-07-14

Family

ID=18500689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10372579A Pending JP2000196890A (en) 1998-12-28 1998-12-28 Method and device for image processing and recording medium

Country Status (1)

Country Link
JP (1) JP2000196890A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004236110A (en) * 2003-01-31 2004-08-19 Canon Inc Image processor, image processing method, storage medium and program
JP2005159387A (en) * 2003-11-20 2005-06-16 Noritsu Koki Co Ltd Method of determining density characteristic curve and density correction management apparatus for executing this method
JP2006031682A (en) * 2004-06-17 2006-02-02 Fuji Photo Film Co Ltd Lookup table creation device, method and program
JP2006254415A (en) * 2005-02-14 2006-09-21 Fuji Photo Film Co Ltd Apparatus, method, and program for creating luminance conversion curve
WO2007072907A1 (en) 2005-12-21 2007-06-28 Nec Corporation Gray-scale correcting method, gray-scale correcting device, gray-scale correcting program, and image device
US7359571B2 (en) 2002-02-19 2008-04-15 Fujifilm Corporation Method, apparatus and program for image processing
JPWO2006036027A1 (en) * 2004-09-30 2008-05-15 富士フイルム株式会社 Image processing apparatus and method, and image processing program
US7508550B2 (en) 2004-06-17 2009-03-24 Fujifilm Corporation Image correcting apparatus and method, and image correcting program, and look-up table creating apparatus and method, and look-up table creating program
KR100923643B1 (en) 2007-12-28 2009-10-28 (주)씨앤에스 테크놀로지 Luminance correction method for photographing image for the use of the video calling
US7630630B2 (en) 2005-09-29 2009-12-08 Fujifilm Corporation Person image correction apparatus, method, and program
US7684638B2 (en) 2005-02-15 2010-03-23 Quanta Computer Inc. Dynamic image contrast enhancement device
US7715649B2 (en) 2005-02-14 2010-05-11 Fujifilm Corporation Generation and adjustment of a luminance correction curve to prevent saturation of the image during contrast enhancement
US7881504B2 (en) 2005-09-21 2011-02-01 Fujifilm Corporation Person image correcting apparatus and method
JP2012520050A (en) * 2009-03-10 2012-08-30 ドルビー ラボラトリーズ ライセンシング コーポレイション Image signal conversion with extended dynamic range and extended dimension

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7359571B2 (en) 2002-02-19 2008-04-15 Fujifilm Corporation Method, apparatus and program for image processing
US7580566B2 (en) 2003-01-31 2009-08-25 Canon Kabushiki Kaisha Image processing device, image processing method, storage medium, and program
JP2004236110A (en) * 2003-01-31 2004-08-19 Canon Inc Image processor, image processing method, storage medium and program
JP2005159387A (en) * 2003-11-20 2005-06-16 Noritsu Koki Co Ltd Method of determining density characteristic curve and density correction management apparatus for executing this method
JP2006031682A (en) * 2004-06-17 2006-02-02 Fuji Photo Film Co Ltd Lookup table creation device, method and program
US8035871B2 (en) 2004-06-17 2011-10-11 Fujifilm Corporation Determining target luminance value of an image using predicted noise amount
JP4708866B2 (en) * 2004-06-17 2011-06-22 富士フイルム株式会社 Lookup table creation device and method, and lookup table creation program
US7508550B2 (en) 2004-06-17 2009-03-24 Fujifilm Corporation Image correcting apparatus and method, and image correcting program, and look-up table creating apparatus and method, and look-up table creating program
JP4549352B2 (en) * 2004-09-30 2010-09-22 富士フイルム株式会社 Image processing apparatus and method, and image processing program
JPWO2006036027A1 (en) * 2004-09-30 2008-05-15 富士フイルム株式会社 Image processing apparatus and method, and image processing program
US7894673B2 (en) 2004-09-30 2011-02-22 Fujifilm Corporation Image processing apparatus and method, and image processing computer readable medium for processing based on subject type
US7715649B2 (en) 2005-02-14 2010-05-11 Fujifilm Corporation Generation and adjustment of a luminance correction curve to prevent saturation of the image during contrast enhancement
JP4536015B2 (en) * 2005-02-14 2010-09-01 富士フイルム株式会社 Luminance conversion curve creation device and method, and brightness conversion curve creation program
JP2010193513A (en) * 2005-02-14 2010-09-02 Fujifilm Corp Apparatus, method and program for creating luminance conversion curve
JP2006254415A (en) * 2005-02-14 2006-09-21 Fuji Photo Film Co Ltd Apparatus, method, and program for creating luminance conversion curve
JP2011239446A (en) * 2005-02-14 2011-11-24 Fujifilm Corp Brightness conversion curve creation device, and method, as well as brightness conversion curve creation program
US7684638B2 (en) 2005-02-15 2010-03-23 Quanta Computer Inc. Dynamic image contrast enhancement device
US7881504B2 (en) 2005-09-21 2011-02-01 Fujifilm Corporation Person image correcting apparatus and method
US7630630B2 (en) 2005-09-29 2009-12-08 Fujifilm Corporation Person image correction apparatus, method, and program
WO2007072907A1 (en) 2005-12-21 2007-06-28 Nec Corporation Gray-scale correcting method, gray-scale correcting device, gray-scale correcting program, and image device
US8374458B2 (en) 2005-12-21 2013-02-12 Nec Corporation Tone correcting method, tone correcting apparatus, tone correcting program, and image equipment
KR100923643B1 (en) 2007-12-28 2009-10-28 (주)씨앤에스 테크놀로지 Luminance correction method for photographing image for the use of the video calling
JP2012520050A (en) * 2009-03-10 2012-08-30 ドルビー ラボラトリーズ ライセンシング コーポレイション Image signal conversion with extended dynamic range and extended dimension

Similar Documents

Publication Publication Date Title
JP3668014B2 (en) Image processing method and apparatus
US20070247474A1 (en) Method, apparatus and recording medium for image processing
US7092122B2 (en) Image processing device and method
US7206445B2 (en) Method, apparatus and recording medium for image processing
US20070071316A1 (en) Image correcting method and image correcting system
US20050185837A1 (en) Image-processing method, image-processing apparatus and image-recording apparatus
JP2009055465A (en) Image processing device and method
JP2005190435A (en) Image processing method, image processing apparatus and image recording apparatus
US6850272B1 (en) Image processing method and system
JP2000196890A (en) Method and device for image processing and recording medium
JP2001148780A (en) Method for setting red-eye correction area and red-eye correction method
US20040036899A1 (en) Image forming method, image processing apparatus, print producing apparatus and memory medium
JPH06121159A (en) Color image processor
JP2000182043A (en) Method, device for processing image and recording medium
JP4104904B2 (en) Image processing method, apparatus, and program
JPH1075374A (en) Image processing unit and its method
JP2005192158A (en) Image processing method, image processing apparatus, and image recording apparatus
JP2001155174A (en) Method and device for image processing
JP3836237B2 (en) Image correction method and apparatus
JP2002094810A (en) Picture processor, picture processing method and memory medium having stored programs for the method
JP3817371B2 (en) Image processing method, apparatus, and recording medium
JP2004328534A (en) Image forming method, image processing apparatus and image recording apparatus
JP3493148B2 (en) Image color processing apparatus, image color processing method, and recording medium
JPH11196324A (en) Method and device for outputting image
US6826312B1 (en) Method, apparatus, and recording medium for image processing

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040305

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060427

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060502

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060623

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061129

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070109

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070227