JP2923401B2 - Exposure determination method - Google Patents

Exposure determination method

Info

Publication number
JP2923401B2
JP2923401B2 JP31525992A JP31525992A JP2923401B2 JP 2923401 B2 JP2923401 B2 JP 2923401B2 JP 31525992 A JP31525992 A JP 31525992A JP 31525992 A JP31525992 A JP 31525992A JP 2923401 B2 JP2923401 B2 JP 2923401B2
Authority
JP
Japan
Prior art keywords
face
density
area
color
original image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP31525992A
Other languages
Japanese (ja)
Other versions
JPH06160995A (en
Inventor
博明 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm 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 JP31525992A priority Critical patent/JP2923401B2/en
Priority to US08/153,088 priority patent/US5461457A/en
Priority to DE69325077T priority patent/DE69325077T2/en
Priority to EP93118674A priority patent/EP0601363B1/en
Publication of JPH06160995A publication Critical patent/JPH06160995A/en
Application granted granted Critical
Publication of JP2923401B2 publication Critical patent/JP2923401B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Control Of Exposure In Printing And Copying (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は露光量決定方法に係り、
特に、カラー原画像をカラー複写材料または黒白複写材
料に複写するときに、人物の顔の濃度データを抽出して
抽出された濃度データに基づいて露光量を決定する露光
量決定方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an exposure determining method,
In particular, the present invention relates to an exposure determining method for extracting density data of a person's face and determining an exposure based on the extracted density data when a color original image is copied onto a color copying material or a black and white copying material.

【0002】[0002]

【従来の技術及び発明が解決しようとする課題】人物写
真を観賞するときに最も注目される部位は、人物の顔で
あり、品質の良い写真や画像を作成するためには人物の
顔の色を適正な色に焼付けるまたは表示する必要があ
る。
2. Description of the Related Art The most noticeable part when viewing a photograph of a person is the face of the person, and the color of the face of the person is important for creating a high-quality photograph or image. Must be printed or displayed in the proper color.

【0003】従来、人物を含んだ画像をプリンタ、印刷
機器及び画像表示装置等の写真処理装置でプリントや表
示する場合には、顔の濃度データを抽出し、この抽出し
た濃度データに基づいて顔の濃度が目標濃度である適正
濃度として再現されて顔の色が適正に焼付けられるまた
は表示されるように露光量を決定していた。
Conventionally, when an image including a person is printed or displayed by a photo processing device such as a printer, a printing device, and an image display device, density data of the face is extracted and the face is extracted based on the extracted density data. The exposure amount is determined so that the density of the face is reproduced as an appropriate density as the target density, and the color of the face is properly printed or displayed.

【0004】しかしながら、この方法では人物の顔の反
射率が単一であると仮定しているために、日焼け及び色
白等の個人差や人種によって人物の顔の反射率がばらつ
いた場合に人物の顔を適正な色に焼付けるまたは表示す
る補正を行うことができないという問題があった。
However, in this method, since the reflectance of a person's face is assumed to be single, if the reflectance of a person's face varies due to individual differences such as tanning and fairness or race, the person's face is reflected. However, there is a problem that it is not possible to perform correction for printing or displaying the face of the subject in an appropriate color.

【0005】例えば、図15に示したように、白色人種
から黒色人種までの6種類の人種別の肌における分光反
射率特性(図中、Z1:white-blond,Z2:white-brunette,Z
3:Japanese,Z4:Hindu,Z5:Mulato,Z6:the negro)では、
白色人種と黒色人種との人種間差には7〜8倍の差が生
じることがある。従って、人種間では顔の反射率が大き
く異なる。このため、例えばアジア系の顔を標準の被写
体として上記のように顔の濃度が目標濃度となるよう露
光量を決定すると、顔の反射率が低い黒色人種等の被写
体では顔の濃度を白くするように露光量が決定されてし
まう。これにより、得られる画像は全体的に濃度が薄い
画像として再現されることになるという問題がある。
[0005] For example, as shown in FIG. 15, the spectral reflectance characteristics of skin of six races from white race to black race (Z1: white-blond, Z2: white-brunette, Z
3: Japanese, Z4: Hindu, Z5: Mulato, Z6: the negro)
The racial difference between the white race and the black race can be as much as 7 to 8 times. Therefore, the reflectivity of the face greatly differs between races. For this reason, for example, if the exposure amount is determined so that the face density becomes the target density as described above using an Asian face as a standard subject, the face density becomes white in a subject such as a black race whose face reflectance is low. The exposure amount is determined as follows. As a result, there is a problem that the obtained image is reproduced as an image having a low density as a whole.

【0006】本発明は上記問題点を解決するために成さ
れたもので、ネガフィルム等のカラー原画像から人物の
顔として抽出されたデータに基づいてカラー原画像を適
正な濃度で再現できるように露光量を決定する露光量決
定方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and is intended to reproduce a color original image at an appropriate density based on data extracted as a human face from a color original image such as a negative film. It is another object of the present invention to provide an exposure determining method for determining an exposure.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に請求項1の発明は、カラー原画像を多数画素に分割し
て各画素を赤光、緑光及び青光の3色に分解して測光
し、測光により得られたデータに基づいて前記カラー原
画像上で色相または色相及び彩度が同一または類似の色
領域を求め、求めた色領域について人物の顔の領域か否
かを判断し、人物の顔の領域と判断された領域の濃度を
求め、求めた濃度に対応する被写体である人物の顔の反
射率が所定値以上のカラー原画像に対しては前記領域の
濃度に基づく補正を行って複写材料への露光量を決定
し、求めた濃度に対応する被写体である人物の顔の反射
率が所定値未満のカラー原画像に対しては前記領域の濃
度に基づく補正を行うことなく複写材料への露光量を決
定する。
According to a first aspect of the present invention, a color original image is divided into a large number of pixels, and each pixel is separated into three colors of red light, green light and blue light. Photometry, based on the data obtained by photometry, to determine a hue or a color region having the same or similar hue or hue and saturation on the color original image, and determine whether the obtained color region is a human face region. The density of an area determined to be an area of a person's face is determined, and correction is performed based on the density of the area for a color original image in which the reflectance of the face of a person who is a subject corresponding to the determined density is a predetermined value or more. To determine the amount of exposure to the copy material, and perform correction based on the density of the area for a color original image in which the reflectance of the face of the person corresponding to the obtained density is less than a predetermined value. And determine the amount of exposure to the copy material.

【0008】請求項2の発明は、請求項1の発明の露光
量決定方法であって、求めた濃度に対応する被写体であ
る人物の顔の反射率が所定値以上のカラー原画像に対し
ては前記領域の平均濃度が基準濃度になるように補正を
行って複写材料への露光量を決定することを特徴として
いる。
A second aspect of the present invention is the exposure amount determining method according to the first aspect of the present invention, wherein the reflectance of a face of a person who is a subject corresponding to the obtained density is a predetermined value or more. Is characterized in that correction is performed so that the average density of the area becomes the reference density and the exposure amount to the copy material is determined.

【0009】請求項3の発明は、請求項1の発明の露光
量決定方法であって、求めた濃度が被写体である人物の
顔の反射率の所定値未満に対応しかつ予め定めた上限値
及び下限値の間の所定範囲に含まれるカラー原画像に対
しては被写体である人物の顔の反射率が所定値以上のカ
ラー原画像であるものとして前記領域の濃度に基づく補
正を行って複写材料への露光量を決定することを特徴と
している。
A third aspect of the present invention is the exposure determining method according to the first aspect of the present invention, wherein the determined density of the subject is
Upper limit value corresponding to less than a predetermined value of face reflectance and predetermined
Color original image within the specified range between
If the reflectance of the face of the person being the subject is
The image based on the density of the area
The method is characterized in that the amount of exposure to the copy material is determined by performing the correction.

【0010】請求項4の発明は、請求項3の発明の露光
量決定方法であって、求めた濃度が前記所定範囲に含ま
れるカラー原画像に対して、前記人物の顔の領域を除く
色領域の濃度のヒストグラムを求め、求めたヒストグラ
ムに基づいてストロボ露光か否かを推定し、ストロボ露
光以外と推定されたときにのみ該カラー原画像を被写体
である人物の顔の反射率が所定値以上のカラー原画像で
あるものとして前記領域の濃度に基づく補正を行って
写材料への露光量を決定することを特徴としている。
[0010] A fourth aspect of the present invention, there is provided an exposure amount determining method of the invention of claim 3, the color original image determined density is included in the predetermined range, excluding the area of the face of the person thereof a histogram of the density of the color area, to estimate whether the flash exposure based on the obtained histogram, flash exposure
Only when it is estimated to be other than light, the color original image
In the color original image where the reflectance of the person's face is
As another feature, the amount of exposure to the copy material is determined by performing correction based on the density of the region .

【0011】[0011]

【作用】本発明では、カラー原画像を多数画素に分割し
て各画素を赤光、緑光及び青光の3色に分解して測光
し、測光により得られたデータに基づいてカラー原画像
上で色相または色相及び彩度が同一または類似の色領域
を求める。次に、求めた色領域について人物の顔の領域
か否かを判断する。この類似の色領域から顔の領域を判
断するには色相ヒストグラムまたは色相及び彩度の2次
元ヒストグラムに基づいて求めることができる。続い
て、人物の顔の領域と判断された領域の濃度を求める。
この求めた濃度から対応する人物の顔の反射率が所定値
以上か否かを推定できる。すなわち被写体である人物の
顔の反射率が低くなるにしたがってカラーネガフィルム
上では濃度が低くなり、リバーサルフィルムでは濃度が
高くなる。この被写体である人物の顔の反射率が低い場
合には、顔の領域の濃度によってカラー原画像の露光量
の補正を行うと他の領域について露光不足や露光過多と
なり、適正に露光することができない。本発明は、被写
体である人物の顔の反射率が所定値以上のカラー原画像
に対しては該領域の濃度に基づく補正を行って複写材料
への露光量を決定する。この補正は、請求項2に記載し
たように、この顔の領域の平均濃度が基準濃度になるよ
うに補正することができる。また、被写体である人物の
顔の反射率が所定値未満のカラー原画像に対しては該領
域の濃度に基づく補正を行うことなく複写材料への露光
量を決定する。このように、被写体である人物の顔の反
射率が所定値以上のカラー原画像に対してのみ顔の領域
の濃度に基づく補正を行うため、例えば、人種や日焼け
により被写体である人物の顔の反射率が大幅に低いとき
には顔による補正されることがなく最適な露光量を決定
できる。
According to the present invention, a color original image is divided into a large number of pixels, each pixel is separated into three colors of red light, green light and blue light, and photometry is performed. Is used to find a hue or a color region having the same or similar hue and saturation. Next, it is determined whether or not the obtained color area is an area of a person's face. The face area can be determined from the similar color area based on a hue histogram or a two-dimensional histogram of hue and saturation. Subsequently, the density of an area determined to be a human face area is obtained.
From the obtained density, it can be estimated whether or not the reflectance of the face of the corresponding person is equal to or more than a predetermined value. That is, as the reflectance of the face of the person as the subject decreases, the density decreases on the color negative film, and increases on the reversal film. When the reflectance of the face of the person who is the subject is low, if the exposure amount of the color original image is corrected based on the density of the face area, underexposure or overexposure occurs in other areas, and proper exposure can be performed. Can not. According to the present invention, for a color original image in which the reflectance of the face of a person as a subject is equal to or greater than a predetermined value, correction based on the density of the area is performed to determine the exposure amount to the copy material. This correction can be performed so that the average density of the face area becomes the reference density. Further, for a color original image in which the reflectance of the face of the person as the subject is less than a predetermined value, the exposure amount to the copy material is determined without performing correction based on the density of the area. As described above, since the correction based on the density of the face region is performed only on the color original image in which the reflectance of the face of the person who is the subject is equal to or more than the predetermined value, for example, the face of the person who is the subject due to race or sunburn When the reflectance of the image is significantly low, the optimum exposure amount can be determined without being corrected by the face.

【0012】ここで、被写体である人物の顔の反射率が
所定値以上のカラー原画像であっても撮影条件によって
実際の人物の顔の反射率に拘わらず含まれることがあ
る。例えば、実際の人物の顔の反射率が標準的であって
弱い逆光や全体的にアンダー露光のときには、顔の反射
率が低い場合と同様にネガフィルム上の人物の顔の領域
の濃度は低くなる。そこで、請求項3に記載のように、
求めた濃度が被写体である人物の顔の反射率の所定値未
満に対応しかつ予め定めた上限値及び下限値の間の所定
範囲に含まれるカラー原画像に対しては被写体である人
物の顔の反射率が所定値以上のカラー原画像であるもの
として前記領域の濃度に基づく補正を行って複写材料へ
の露光量を決定する。なお、求めた濃度が上限値を越え
た場合または下限値未満の場合には前記領域の濃度に基
づく補正を行うことなく複写材料への露光量を決定す
る。これによって、被写体である人物の顔の反射率が低
いときに補正しないようにすることができると共に、実
際の人物の顔の反射率が標準的であって弱い逆光や全体
的にアンダー露光のときに補正することができる。
Here, even if the reflectance of the face of the person who is the subject is a color original image having a predetermined value or more, it may be included irrespective of the actual reflectance of the face of the person depending on the photographing conditions. For example, when the reflectivity of an actual person's face is standard and the subject is weakly backlit or underexposed overall, the density of the person's face area on the negative film is low as in the case of low face reflectivity. Become. Therefore, as described in claim 3,
The determined density is not the predetermined value of the reflectance of the face of the person who is the subject.
A predetermined value between the upper limit and the lower limit that correspond to full
Person who is the subject for the color original image included in the range
An original color image whose reflectance of the face of the object is equal to or greater than a predetermined value
And the amount of exposure to the copy material is determined by performing correction based on the density of the area . Note that the calculated concentration exceeds the upper limit.
If the value is lower than the lower limit,
Determine the amount of exposure to the copy material without making corrections
You. This makes it possible to prevent correction when the reflectivity of the face of the person being the subject is low, and when the reflectivity of the actual person's face is standard and is weakly backlit or underexposed overall. Can be corrected.

【0013】また、実際の人物の顔の反射率が低い顔を
ストロボ露光して撮影したときには上記補正するための
所定範囲に顔の濃度を含んでしまう。一般にストロボ露
光で撮影されたカラー原画像の濃度分布は、光が照射さ
れた部位と照射されない部位とに大別される。そこで、
請求項4に記載のように、求めた濃度が前記所定範囲に
含まれるカラー原画像に対して、前記人物の顔の領域を
除く色領域の濃度のヒストグラムを求め、求めたヒスト
グラムに基づいてストロボ露光か否かを推定し、ストロ
ボ露光以外と推定されたときにのみ該カラー原画像を被
写体である人物の顔の反射率が所定値以上のカラー原画
像であるものとして前記領域の濃度に基づく補正を行っ
複写材料への露光量を決定する。これによって、実際
の人物の顔の反射率が低い顔をストロボ露光して撮影し
たときには顔の濃度による補正を行うことがなく、最適
な露光量を決定することができる。
Further, when a face having a low reflectance of an actual person's face is photographed by flash exposure, the predetermined range for the correction includes the face density. Generally, the density distribution of a color original image photographed by strobe exposure is roughly classified into a portion irradiated with light and a portion not irradiated. Therefore,
As described in claim 4, with respect to the obtained concentration color original image included in the predetermined range, a histogram of the density of the color region other than the region of the face of the person thereof, based on the obtained histogram to estimate whether or not the flash exposure, stroke
The color original image is received only when
A color original whose reflectance of the face of the person who is the subject is greater than or equal to a predetermined value
Correction based on the density of the area as an image
Determining the amount of exposure to the copy material Te. This makes it possible to determine the optimal exposure amount without performing correction based on the density of the face when the face of the actual person having low reflectance of the face is photographed by flash exposure.

【0014】[0014]

【実施例】以下図面を参照して本発明の実施例を詳細に
説明する。本実施例は、オートプリンタに本発明を適用
したものである。図1に示されるように、本実施例のオ
ートプリンタは、カラーネガフィルム10を搬送する搬
送ローラ12を備えている。搬送ローラ12によって搬
送されるカラーネガフィルム10の下方には、光源1
4、調光フイルタ等の色補正フィルタ16および拡散ボ
ックス18が順に配列されている。また、ネガフィルム
10の上方には、ネガフィルム10を透過した光線を2
方向に分配する分配用プリズム20が配置されている。
分配用プリズム20によって分配された一方の光路上に
は、投影光学系22、ブラックシャッタ23及びカラー
ペーパー(印画紙)24が順に配列され、他方の光路上
には投影光学系26及びCCDイメージセンサ28が順
に配列されている。このCCDイメージセンサ28は、
ネガフィルム10の1画面(1コマ)全体を多数の画素
(例えば256×256画素)に分割して各画素をR
(赤)、G(緑)、及びB(青)の3色に分解して測光
する。CCDイメージセンサ28は、CCDイメージセ
ンサ出力を増幅する増幅器30及びアナログ−デジタル
(A/D)変換器32を介してCCDイメージセンサの
感度補正用の3×3マトリックス回路34に接続されて
いる。3×3マトリックス回路34は、以下で説明する
ルーチンのプログラムを記憶したマイクロコンピュータ
で構成された顔抽出回路36を介して適正露光量計算回
路40に接続されると共に、1画面全体の平均濃度を演
算する平均濃度演算回路38を介して適正露光量計算回
路40に接続されている。そして、適正露光量計算回路
40は、色補正フイルタを駆動するドライバ42を介し
て色補正フィルタ16に接続されている。この適正露光
量計算回路40は、以下で説明するルーチン(図9)の
プログラムを記憶したマイクロコンピュータで構成され
ている。
Embodiments of the present invention will be described below in detail with reference to the drawings. In this embodiment, the present invention is applied to an auto printer. As shown in FIG. 1, the automatic printer according to the present embodiment includes a transport roller 12 that transports a color negative film 10. A light source 1 is provided below the color negative film 10 transported by the transport rollers 12.
4. A color correction filter 16 such as a dimming filter and a diffusion box 18 are sequentially arranged. Above the negative film 10, the light transmitted through the negative film 10 is
A distribution prism 20 for distributing in the direction is arranged.
On one optical path distributed by the distribution prism 20, a projection optical system 22, a black shutter 23, and color paper (printing paper) 24 are sequentially arranged, and on the other optical path, a projection optical system 26 and a CCD image sensor. 28 are arranged in order. This CCD image sensor 28
The entire screen (one frame) of the negative film 10 is divided into a large number of pixels (for example, 256 × 256 pixels), and each pixel is
Photometry is performed by separating the color into three colors (red), G (green), and B (blue). The CCD image sensor 28 is connected to a 3 × 3 matrix circuit 34 for correcting the sensitivity of the CCD image sensor via an amplifier 30 for amplifying the output of the CCD image sensor and an analog-digital (A / D) converter 32. The 3 × 3 matrix circuit 34 is connected to an appropriate exposure amount calculation circuit 40 via a face extraction circuit 36 composed of a microcomputer storing a program of a routine described below, and calculates the average density of the entire screen. It is connected to an appropriate exposure calculation circuit 40 via an average density calculation circuit 38 for calculating. The appropriate exposure amount calculation circuit 40 is connected to the color correction filter 16 via a driver 42 for driving a color correction filter. The proper exposure amount calculating circuit 40 is constituted by a microcomputer storing a program of a routine (FIG. 9) described below.

【0015】次に本実施例の作用を説明する。光源14
から照射された光線は、色補正フィルタ16、拡散ボッ
クス18及びカラーネガフィルム10を透過し、分配用
プリズム20によって分配され、投影光学系26を介し
てCCDイメージセンサ28に受光される。なお、この
ときブラックシャツタ23は閉じられている。この受光
によってCCDイメージセンサ28は、1画面全体を多
数の画素に分割して各画素をR、G、B3色に分解して
測光し、測光データ信号を出力する。測光データ信号は
増幅器30で増幅された後A/D変換器32でデジタル
信号に変換され、3×3マトリックス回路34でイメー
ジセンサの感度補正が行われ、顔抽出回路36と平均濃
度演算回路38に入力される。この平均濃度演算回路3
8では、1画面全体の平均濃度を演算する。顔抽出回路
36では、以下で説明するように1画面中の人物の顔の
部位を推定し、顔と推定された部位のR、G、B3色測
光データを出力する。露光量演算回路40は、顔抽出回
路36から出力された3色測光データと平均濃度演算回
路38で求められた平均濃度とを用いて露光量を演算
し、ドライバ42を介して色補正フイルタ16を制御す
ると共にブラックシャッタ23を開閉して焼付けを行
う。なお、平均濃度演算回路38で求めた平均濃度を用
いるとき、平均濃度に対する露光補正量を求めることが
できる。露光補正量を求めない場合、必ずしも平均濃度
演算回路38を必要とせず、直接顔抽出回路36から出
力された3色測光データより露光量を求めてもよい。
Next, the operation of this embodiment will be described. Light source 14
Are transmitted through the color correction filter 16, the diffusion box 18, and the color negative film 10, are distributed by the distribution prism 20, and are received by the CCD image sensor 28 via the projection optical system 26. At this time, the black shirt 23 is closed. By receiving the light, the CCD image sensor 28 divides the entire screen into a large number of pixels, decomposes each pixel into three colors of R, G, and B, performs photometry, and outputs a photometric data signal. The photometric data signal is amplified by an amplifier 30 and then converted into a digital signal by an A / D converter 32. The sensitivity of the image sensor is corrected by a 3 × 3 matrix circuit 34, and a face extraction circuit 36 and an average density calculation circuit 38 Is input to This average density calculation circuit 3
In step 8, the average density of one entire screen is calculated. The face extraction circuit 36 estimates the portion of the face of the person in one screen as described below, and outputs R, G, and B colorimetric data of the portion estimated as the face. The exposure calculation circuit 40 calculates the exposure using the three-color photometric data output from the face extraction circuit 36 and the average density calculated by the average density calculation circuit 38, and outputs the color correction filter 16 via the driver 42. Is controlled, and the black shutter 23 is opened and closed to perform printing. When the average density calculated by the average density calculation circuit 38 is used, an exposure correction amount for the average density can be calculated. If the exposure correction amount is not determined, the exposure amount may be determined directly from the three-color photometric data output from the face extraction circuit 36 without necessarily requiring the average density calculation circuit 38.

【0016】図2は顔抽出回路36よる顔抽出ルーチン
を示すものであり、ステップ100において入力された
3色測光データのノイズ除去、すなわちスムージングを
行う。次のステップ102では下記の(1)〜(3)式
によってR、G、B3色測光データをH(色相値)、L
(明度値)、S(彩度値)に変換する。
FIG. 2 shows a face extraction routine by the face extraction circuit 36. In step 100, noise removal, that is, smoothing of the input three-color photometric data is performed. In the next step 102, the R, G, and B colorimetric data are converted to H (hue value) and L by the following equations (1) to (3).
(Lightness value) and S (saturation value).

【0017】 L=(R+G+B)/3 ・・・・(1) S=1−min(r’,g’,b’)・・・・(2) H=H’/2Pi ・・・・(3) ただし、R、G、Bは図3の3次元色座標に示すように
各々最小値が0、最大値が1になるように規格された3
色測光データ、min( )は( )内の数値の最小
値、r’、g’、b’はr’=R/L、g’=G/L、
b’=B/Lを表す。またH’は次の(4)式で与えら
れ、Pi(iは、R、G、Bのうちの1つ)は図3のP
である。
L = (R + G + B) / 3 (1) S = 1-min (r ′, g ′, b ′) (2) H = H ′ / 2Pi (.) 3) However, R, G, and B are standardized such that the minimum value is 0 and the maximum value is 1 as shown in the three-dimensional color coordinates of FIG.
Colorimetric data, min () is the minimum value in parentheses, r ′, g ′, b ′ are r ′ = R / L, g ′ = G / L,
b ′ = B / L. H ′ is given by the following equation (4), and Pi (i is one of R, G, and B) is P
It is.

【0018】[0018]

【数1】 (Equation 1)

【0019】ただし、However,

【0020】[0020]

【数2】 (Equation 2)

【0021】ステップ104では、図4(1)に示すよ
うに、各々直交する色相値軸、彩度値軸及び画素数軸か
ら成る座標系を用いて色相値及び彩度値についての2次
元ヒストグラムを求め、次のステップ106において後
述するように、求めた2次元ヒストグラムを山毎に分割
する、すなわち2次元ヒストグラムのクラスタリングを
行う。次のステップ108ではクラスタリングされた2
次元ヒストグラムの山に基づいて多数の画素のクラスタ
リングを行い、このクラスタリングに基づいて画面を分
割し、分割された領域から人物の顔の候補となる領域を
抽出する。次のステップ110では、顔の候補として抽
出された領域から顔の領域を推定し、顔として推定され
た領域のR、G、B3色測光データを出力する。そし
て、ステップ112において全コマの焼付けが終了した
か否か判断し、焼付終了と判断されたときにこのルーチ
ンを終了する。
In step 104, as shown in FIG. 4A, a two-dimensional histogram of the hue value and the saturation value is obtained by using a coordinate system including a hue value axis, a saturation value axis, and a pixel number axis which are orthogonal to each other. Then, in the next step 106, as described later, the obtained two-dimensional histogram is divided for each mountain, that is, clustering of the two-dimensional histogram is performed. In the next step 108, the clustered 2
A large number of pixels are clustered based on the peaks of the dimensional histogram, the screen is divided based on the clustering, and a region that is a candidate for a human face is extracted from the divided region. In the next step 110, a face area is estimated from the area extracted as a face candidate, and R, G, B three-color photometric data of the area estimated as the face is output. Then, it is determined in step 112 whether or not printing of all frames has been completed. When it is determined that printing has been completed, this routine is terminated.

【0022】次に、上記ステップ106〜110の詳細
を説明する。図5はステップ106の詳細を示すもの
で、ステップ120において色相値及び彩度値について
の2次元ヒストグラムから評価すべき領域を切り出す。
図4では説明を簡単にするため1コマを評価領域とし
た。ステップ122では評価領域があるか否か判断す
る。ステップ120で評価領域が切り出せなかったと
き、すなわち全ての領域の評価が終了したときには評価
領域がないため、このルーチンを終了する。評価領域が
ある場合には、ステップ124において山切り出し用ヒ
ストグラムを作成するためのX、Y軸の決定を行う。す
なわち、評価領域を画素数軸と平行な軸を中心に回転さ
せ、ヒストグラムの山を横から見たときに多峰性を優先
しかつ山が最も尖鋭となる位置を求め、この位置を基準
にX、Y軸を決定する。処理時間の短縮が必要な場合
は、精度が多少劣化するが、X、Y軸としてヒストグラ
ムの分散が最大となる軸を用いてもよい。図4(1)の
例では、1〜4の符号を付した4つの山を横から見たと
きに多峰性を優先し山が最も尖鋭になる位置は3つの山
が見える位置であるので見る方向と直交する方向にX軸
を定め、このX軸と直交する方向にY軸を定めている。
Next, the details of steps 106 to 110 will be described. FIG. 5 shows details of step 106. In step 120, an area to be evaluated is cut out from the two-dimensional histogram of the hue value and the saturation value.
In FIG. 4, one frame is set as an evaluation area for simplifying the explanation. In step 122, it is determined whether or not there is an evaluation area. When the evaluation area cannot be cut out in step 120, that is, when the evaluation of all the areas is completed, there is no evaluation area, so this routine ends. If there is an evaluation region, the X and Y axes for creating a histogram for mountain cutting are determined in step 124. In other words, the evaluation area is rotated around an axis parallel to the pixel number axis, and when the peaks of the histogram are viewed from the side, multimodality is prioritized, and a position where the peak is the sharpest is obtained. Determine X and Y axes. If the processing time needs to be shortened, the accuracy may be slightly deteriorated, but the X and Y axes may use the axis that maximizes the variance of the histogram. In the example of FIG. 4 (1), when the four mountains numbered 1 to 4 are viewed from the side, multi-modality is prioritized and the position where the mountain is the sharpest is the position where the three mountains can be seen. The X axis is defined in a direction orthogonal to the viewing direction, and the Y axis is defined in a direction orthogonal to the X axis.

【0023】次のステップ126では、2次元ヒストグ
ラムをX、Y軸に投影させて各々1次元ヒストグラムを
作成する。図4(1)の例では、X軸と直交する方向か
ら見ると1、2の符号を付した山が重なって見えるため
X軸についての1次元ヒストグラムには、符号3を付し
た山、符号1、2を付した山、符号4を付した山の3つ
の山が現れ、Y軸と直交する方向から見ると1〜4の符
号を付した山が重なって見えるためY軸についての1次
元ヒストグラムには1つの山が現れている。次のステッ
プ128では、次の(5)式によってヒストグラムを評
価関数H(a)に変換しこの評価関数に基づいてX軸に
ついてのヒストグラムから山の切り出しを行う。
In the next step 126, a one-dimensional histogram is created by projecting the two-dimensional histogram on the X and Y axes. In the example of FIG. 4A, when viewed from a direction orthogonal to the X axis, the peaks denoted by reference numerals 1 and 2 appear to overlap each other. Three peaks, that is, peaks 1 and 2, and peaks 4 appear, and when viewed from a direction orthogonal to the Y axis, the peaks 1 to 4 appear to be overlapped, so that one dimension about the Y axis is obtained. One peak appears in the histogram. In the next step 128, the histogram is converted into an evaluation function H (a) by the following equation (5), and peaks are cut out from the histogram on the X axis based on the evaluation function.

【0024】[0024]

【数3】 (Equation 3)

【0025】ただし、f(a)はX軸方向の値(特徴
量)がaのときの画素数、xは特徴量aからの変位であ
る。
Where f (a) is the number of pixels when the value (feature amount) in the X-axis direction is a, and x is the displacement from the feature amount a.

【0026】すなわち、評価関数H(a)の平均値Tを
求め、評価関数H(a)の平均値T以下の範囲(谷、裾
部の存在範囲)を求める。次に、この範囲内のヒストグ
ラムが最小の位置をヒストグラムの谷または裾部とす
る。そして、求められた谷または裾部でヒストグラムを
切り出す。
That is, the average value T of the evaluation function H (a) is obtained, and the range (the existence range of the valleys and the skirts) of the average value T of the evaluation function H (a) is obtained. Next, the minimum position of the histogram within this range is defined as a valley or a skirt of the histogram. Then, a histogram is cut out at the determined valley or foot.

【0027】上記山の切り出しを図6を参照して説明す
ると、実線SIで表わされたヒストグラムから評価関数
H(a)を求めると図の破線で示すようになる。この評
価関数H(a)が負の部分に関しての平均値T以下の範
囲は特徴量がv0〜v1、v2〜v3の範囲である。こ
の範囲内のヒストグラムの度数が最小の位置は、範囲v
0〜v1ではav0=v0、範囲v2〜v3ではav1
であり、av0が裾部として、av2が谷として各々求
められ、この位置でヒストグラムの切り出しを行う。
Referring to FIG. 6, the above-mentioned cutting of the mountain will be described. When the evaluation function H (a) is obtained from the histogram represented by the solid line SI, it becomes as shown by the broken line in the figure. The range in which the evaluation function H (a) is equal to or less than the average value T for the negative part is a range in which the feature amounts are v0 to v1 and v2 to v3. The position where the frequency of the histogram within this range is the minimum is the range v
Av0 = v0 for 0 to v1, av1 for the range v2 to v3
Av0 is obtained as a skirt, and av2 is obtained as a valley. A histogram is cut out at this position.

【0028】ステップ130ではX軸についてのヒスト
グラムの山の切り出しと同様の方法でY軸についてのヒ
ストグラムの山の切り出しを行う。次のステップ132
では、2次元ヒストグラム上で上記のように切り出され
たX軸、Y軸についての1次元ヒストグラムの山が重な
る領域を求め、色相値及び彩度値についての2次元ヒス
トグラムから山の切り出しを行う。図4(1)の領域E
1は上記のようにして切り出した山の一例を示すもので
ある。
In step 130, the peak of the histogram on the Y axis is cut out in the same manner as the peak of the histogram on the X axis. Next step 132
Then, a region where the peaks of the one-dimensional histogram on the X-axis and the Y-axis cut out as described above are overlapped on the two-dimensional histogram is obtained, and the peak is cut out from the two-dimensional histogram on the hue value and the saturation value. Region E in FIG. 4 (1)
Reference numeral 1 denotes an example of a mountain cut out as described above.

【0029】次のステップ134では、2次元ヒストグ
ラムから切り出された山が単峰か否か判断し、単峰でな
い場合は2次元ヒストグラムから切り出された山が単峰
になるまでステップ124〜ステップ134を繰り返
す。図4(3)の領域E2は、上記のようにして切り出
された単峰の山の一例を示すものである。
In the next step 134, it is determined whether or not the mountain cut out from the two-dimensional histogram is a single peak. If not, steps 124 to 134 are performed until the mountain cut out from the two-dimensional histogram becomes a single peak. repeat. The area E2 in FIG. 4 (3) shows an example of a single-peak mountain cut out as described above.

【0030】次のステップ136では、切り出された単
峰の山を識別するためのラベルを付ける処理(ラベリン
グ)を行い、ステップ138ではラベリングされた山を
マスクしてステップ120へ戻る。そして、上記のステ
ップを繰り返して色相値及び彩度値についての2次元ヒ
ストグラムの全領域を単峰の山に分割する。
In the next step 136, processing (labeling) for attaching a label to identify the cut-out single-peak mountain is performed. In step 138, the labeled mountain is masked, and the process returns to step 120. Then, the above steps are repeated to divide the entire area of the two-dimensional histogram for the hue value and the saturation value into a single peak.

【0031】図7は図2のステップ108の詳細を示す
もので、ステップ140では、上記のようにして分割さ
れた単峰の山のX軸方向の範囲XR(図4(3))及び
Y軸方向の範囲YR(図4(3))を単峰の山毎に各々
求め、原画像の各画素について色相値及び彩度値がこれ
らの範囲に属しているかを判断して画素のクラスタリン
グを行うと共に、範囲XR、YRで囲まれた範囲に属し
ている画素を集め、集めた画素が原画像上で1つの領域
となるように原画像を分割する。また、分割された領域
にナンバリングする。図4(2)は、原画像を分割した
例を示すもので符号1〜4を付した各領域の画素は、図
4(1)の、符号1〜4を付した単峰の山に含まれる画
素に対応している。図4(1)で同じ単峰の山に属して
いる画素が図4(2)では異る領域に分割されている
が、これは図4(1)では単峰の山の色相値範囲及び彩
度値範囲を持つ画素であるが、図4(2)では領域が分
かれているからである。
FIG. 7 shows the details of step 108 in FIG. 2. In step 140, the X-axis range XR (FIG. 4 (3)) and Y of the single-peak mountain divided in the above-described manner. The axial range YR (FIG. 4 (3)) is obtained for each single peak, and it is determined whether the hue value and the saturation value of each pixel of the original image belong to these ranges, and the pixel clustering is performed. At the same time, pixels belonging to the range surrounded by the ranges XR and YR are collected, and the original image is divided so that the collected pixels form one region on the original image. Numbering is performed on the divided areas. FIG. 4 (2) shows an example in which the original image is divided, and the pixels of the respective regions denoted by reference numerals 1 to 4 are included in the single-peaked mountain denoted by reference numerals 1 to 4 in FIG. Corresponding to the pixel. In FIG. 4 (1), pixels belonging to the same single-peak mountain are divided into different regions in FIG. 4 (2). This is because in FIG. Although the pixel has a saturation value range, the region is divided in FIG. 4B.

【0032】次のステップ142では、分割された領域
の面積を判断することにより徴小領域を除去し、ナンバ
リングをし直す。次のステップ144では、領域の境界
画素をすべて削除してひと皮分取り除く収縮処理と、収
縮処理とは逆に境界画素を背景画素方向へ増殖させてひ
と皮分太らせる膨張処理とを行って大領域と繁がってい
る小領域を大領域から分離する。次のステップ146で
はステップ142と同様に徴小領域を除去してリナンバ
リングを行い、ステップ148で弱い結合をしている領
域同士を分離するために、上記と同様の収縮、膨張処理
を行い、ステップ150において上記と同様に徴小領域
の除去とリナンバリングを行う。
In the next step 142, the small area is removed by determining the area of the divided area, and the numbering is performed again. In the next step 144, a large area is obtained by performing a contraction process of deleting all the boundary pixels of the region and removing it by one skin, and a dilation process of expanding the boundary pixels in the direction of the background pixel and increasing the thickness of one skin in contrast to the contraction process. Are separated from the large area. In the next step 146, the small area is removed and renumbering is performed in the same manner as in step 142, and in step 148, the same contraction and expansion processing as described above is performed to separate the weakly coupled areas from each other. In step 150, the small area is removed and renumbered in the same manner as described above.

【0033】図8はステップ110の詳細を示すもの
で、ステップ162においてステップ108、すなわち
図7のルーチンで抽出された領域の中から1つの領域を
注目領域として選択し、注目領域の水平フィレ径および
垂直フィレ径が所定値になるように注目領域の拡大縮小
処理を行って注目領域のサイズの規格化を行うと共に、
次の(6)式に従って濃度値または輝度値の規格化を行
う。
FIG. 8 shows the details of step 110. In step 162, one of the areas extracted in step 108, that is, the routine extracted in the routine of FIG. 7, is selected as the attention area, and the horizontal fillet diameter of the attention area is selected. In addition to normalizing the size of the attention area by performing scaling processing of the attention area so that the vertical fillet diameter becomes a predetermined value,
The density value or the luminance value is normalized according to the following equation (6).

【0034】[0034]

【数4】 (Equation 4)

【0035】ただし、 dmax :領域内最大濃度値(または輝度値) dmin :領域内最低濃度値(または輝度値) ds :イメージセンサのフルスケール濃度値(または
輝度値) d :規格化前濃度値(または輝度値) dr :規格化後濃度値(または輝度値) ステップ164では、予め記憶された複数種(本実施例
では10種類)の標準的な顔画像(正面から見た顔画
像、横から見た顔画像(左右)、下向き顔画像、上向き
顔画像等)に対する注目領域の相関係数rを次の(7)
式によって演算し、この相関係数を特徴量とする。この
標準的な顔画像は、顔の輪郭のみのデータであっても、
顔の輪郭のデータに顔の内部構造(眼、鼻、口等)デー
タを加えたデータであってもよい。
Where dmax: maximum density value (or luminance value) in the area dmin: minimum density value (or luminance value) in the area ds: full scale density value (or luminance value) of the image sensor d: density value before standardization (Or luminance value) dr: density value after standardization (or luminance value) In step 164, a plurality of (ten in this embodiment) standard face images stored in advance (a face image viewed from the front, The correlation coefficient r of the attention area with respect to the face image (left / right), downward face image, upward face image, etc.
This correlation coefficient is used as a feature value. Even if this standard face image is data of only the face outline,
The data may be data obtained by adding data of the internal structure of the face (eye, nose, mouth, etc.) to the data of the contour of the face.

【0036】[0036]

【数5】 (Equation 5)

【0037】ただし、However,

【0038】[0038]

【数6】 (Equation 6)

【0039】であり、Tは画像の水平、垂直フィレ径の
長さ(ここでは、フィレ径の長さは同じとした)、f
(x、y)は注目領域、g(x、y)は標準的な顔画像
を表す。
Where T is the length of the horizontal and vertical fillet diameters of the image (here, the lengths of the fillet diameters are the same), f
(X, y) represents a region of interest, and g (x, y) represents a standard face image.

【0040】そして、ステップ166において上記特徴
量を変量とした線形判別分析により注目領域が人物の顔
であるか否かを判断し、顔であると判断された領域の
R、G、B測光データを適正露光量計算回路40に出力
する。ステップ168では抽出された全領域について顔
か否かの判定が終了したか否か判断し、終了していない
ときにはステップ162〜ステップ168を繰り返す。
Then, in step 166, it is determined whether or not the region of interest is a person's face by linear discriminant analysis using the above feature amount as a variable, and the R, G, B photometric data of the region determined to be a face is determined. Is output to the appropriate exposure amount calculation circuit 40. In step 168, it is determined whether or not the determination as to whether or not the face is a face has been completed for all the extracted areas. If not, steps 162 to 168 are repeated.

【0041】上記ステップ166において、顔でないと
判断された領域についても、この領域のR、G、B測光
データを適正露光量計算回路40に出力する。この場
合、顔と判断された領域のR、G、B測光データと明確
にするために、顔である領域と判断されたときセット、
顔でない領域と判断されたときリセットの顔フラグも同
時に出力する。
In step 166, the R, G, and B photometric data of the area determined not to be a face is also output to the appropriate exposure amount calculation circuit 40. In this case, in order to clarify the R, G, and B photometric data of the area determined to be a face, a set is set when the area is determined to be a face,
When it is determined that the area is not a face, a reset face flag is output at the same time.

【0042】上記では人物の顔か否かの判定を行うため
に用いる特徴量として相関係数を使用したが、以下で説
明する重心回りの正規化されたセントラル・モーメント
から導出される不変量、自己相関関数または幾何学的不
変量を用いてもよい。
In the above description, the correlation coefficient is used as the feature value used to determine whether or not the face is a person. However, the invariant derived from the normalized central moment around the center of gravity described below, An autocorrelation function or a geometric invariant may be used.

【0043】画像f(x、y)の(p+q)次の重心回
りのセントラル・モーメントμpq
The central moment μ pq about the (p + q) th order center of gravity of the image f (x, y) is

【0044】[0044]

【数7】 (Equation 7)

【0045】ただし、However,

【0046】[0046]

【数8】 (Equation 8)

【0047】とすれば、重心回りの正規化されたセント
ラル・モーメントは次のようになる。
Then, the normalized central moment about the center of gravity is as follows.

【0048】[0048]

【数9】 (Equation 9)

【0049】ただし、y=(p+q+2)/2 p+q=2,3,…… 以上のことより、2次、3次の重心回りの正規化された
セントラル・モーメントから次の七つの不変量ψi,(i
=1,2,……,7)が導出される。
Here, y = (p + q + 2) / 2 p + q = 2, 3,... From the above, the following seven invariants ψ i are obtained from the normalized central moments around the second and third centroids. , (I
= 1, 2,..., 7) are derived.

【0050】[0050]

【数10】 (Equation 10)

【0051】また、自己相関関数Rf は次のように表さ
れる。
The autocorrelation function Rf is expressed as follows.

【0052】[0052]

【数11】 [Equation 11]

【0053】そして、幾何学的不変特徴量は次の式で表
わされる。
The geometric invariant feature is represented by the following equation.

【0054】[0054]

【数12】 (Equation 12)

【0055】ここで、被写体の顔の反射率が基準反射率
に比して小さいときは、ネガフィルム上では顔の濃度が
小さくなる。この被写体の顔の反射率は大幅に小さいと
き、 逆光により撮影された場合には、大幅な露光不足とな
り、強制的に逆光補正しても適正濃度の再現が行われず
に更に背景が飛んでしまうので、顔濃度による補正の必
要がない。適正露光・オーバー露光・アンダー露光の
場合には、顔濃度による濃度補正の必要がない。スト
ロボ露光の場合、顔が飛んでしまうことが殆どないため
に、顔濃度による補正を行わなくても問題とならない。
Here, when the reflectance of the face of the subject is smaller than the reference reflectance, the density of the face on the negative film becomes smaller. When the reflectance of the subject's face is significantly low, if the subject is photographed by backlight, the exposure will be significantly insufficient, and even if the backlight is corrected, the background will fly further without reproducing the appropriate density. Therefore, there is no need for correction based on face density. In the case of proper exposure, overexposure, and underexposure, there is no need for density correction based on face density. In the case of strobe exposure, since the face rarely flies, there is no problem even if the correction based on the face density is not performed.

【0056】従って、被写体の顔の反射率が大幅に小さ
いときは、顔の領域の濃度による補正の必要がなく、ま
た、逆光により撮影された画像の補正が必要の場合に、
この画像が逆光により撮影された画像なのか被写体の顔
の反射率が小さいのかを判断し、被写体の顔の反射率が
小さい場合にのみ顔濃度による補正を行わないようにす
ればよい。
Therefore, when the reflectance of the subject's face is significantly small, there is no need to correct the density of the face area, and when it is necessary to correct an image photographed by backlight,
It is only necessary to judge whether this image is an image captured by backlight or the reflectance of the subject's face is small, and not to perform the correction based on the face density only when the reflectance of the subject's face is small.

【0057】図9は、上記説明した顔濃度による補正の
有無判断についての適正露光量計算回路40による適正
露光量計算ルーチンを示すものであり、ステップ170
では本ルーチンに用いる設定値Dnm,dagを読み取
る。設定値Dnmはネガフィルム上における目標顔濃度
の濃度値を示し、設定値dagは逆光で撮影した画像の
補正の有無を判断するための基準値である逆光補正判断
濃度の濃度値を示している。次のステップ172では、
上記のように顔抽出回路36で抽出された顔領域のR、
G、B3色測光データ(顔フラグがセットで入力された
データ)を読み取り、この測光データからネガフィルム
上における顔領域の被写体濃度Dnfを演算する。
FIG. 9 shows an appropriate exposure amount calculation routine by the appropriate exposure amount calculation circuit 40 for determining the presence / absence of the correction based on the face density described above.
Then, the set values Dnm and dag used in this routine are read. The set value Dnm indicates the density value of the target face density on the negative film, and the set value dag indicates the density value of the backlight correction judgment density which is a reference value for judging whether or not to correct the image photographed by backlight. . In the next step 172,
As described above, R of the face area extracted by the face extraction circuit 36,
The G and B three-color photometric data (the data in which the face flag is input as a set) is read, and the subject density Dnf of the face area on the negative film is calculated from the photometric data.

【0058】被写体濃度Dnfの演算が終了すると、ス
テップ174へ進み、Dnf≦dagか否かを判断す
る。肯定判断の場合には後述する補正値K1 を0にして
本ルーチンを終了する。このDnf≦dagの条件にな
るときは、被写体の顔の反射率が実質的に小さいときに
適正露光、逆光及び全体的にアンダー露光の場合、また
は被写体の顔の反射率が標準的なときに強い逆光の場合
である。従って、顔の濃度による補正の必要がない。
When the calculation of the object density Dnf is completed, the routine proceeds to step 174, where it is determined whether or not Dnf ≦ dag. If the determination is affirmative terminates this routine and a correction value K 1 to be described later to zero. When the condition of Dnf ≦ dag is satisfied, when the reflectivity of the subject's face is substantially small, proper exposure, backlight and overall underexposure are performed, or when the reflectivity of the subject's face is standard. This is the case of strong backlight. Therefore, there is no need for correction based on the density of the face.

【0059】ステップ174において否定判断されたと
きはステップ176へ進みDnf≧Dnmか否かを判断
する。肯定判断の場合には、被写体の顔濃度が目標顔濃
度と同じか大きいために顔の濃度による補正の必要がな
く、補正値K1 を0にして本ルーチンを終了する。
If a negative determination is made in step 174, the flow advances to step 176 to determine whether or not Dnf ≧ Dnm. If the determination is affirmative, the face density of the subject without the need for correction by concentration of the face to the same or greater than the target face density, the correction value K 1 to end the present routine is set to 0.

【0060】ステップ176において否定判断されたと
きはdag<Dnf<Dnmであり、この条件になると
きは、被写体の顔の反射率が実質的に小さいときにスト
ロボ露光または全体的にオーバー露光の場合、または被
写体の顔の反射率が標準的なときに弱い逆光または全体
的にアンダー露光の場合を含んでいる。この被写体の顔
の反射率が実質的に小さいときにストロボ露光または全
体的にオーバー露光の場合の顔濃度による補正は必要が
なく、被写体の顔の反射率が標準的なときに弱い逆光ま
たは全体的にアンダー露光の場合の顔濃度による補正が
必要である。本発明者は、ストロボ露光による原画像の
累積ヒストグラムの特性には、段階的な変化(所謂、
肩)が2つ存在する点に着目し、本実施例では、この条
件を以下に説明するヒストグラムの分布により上記補正
の有無を判断している。なお、累積ヒストグラムを用い
ることなく、単に濃度ヒストグラムから山が単峰である
か否かを判断するようにしてもよい。
If a negative determination is made in step 176, then dag <Dnf <Dnm. If this condition is satisfied, the flash exposure or the overexposure is performed when the reflectance of the subject's face is substantially small. , Or when the reflectance of the subject's face is standard, the case is a weak backlight or an overall underexposure. When the reflectivity of the subject's face is substantially small, there is no need to correct for the face density in the case of strobe exposure or overall overexposure. Therefore, correction based on the face density in the case of underexposure is necessary. The inventor of the present invention has found that the characteristics of the cumulative histogram of the original image due to the strobe exposure change gradually (so-called
Focusing on the point where there are two shoulders), in the present embodiment, the presence / absence of the above-mentioned correction is determined based on the distribution of a histogram that describes this condition below. Instead of using the cumulative histogram, it may be simply determined from the density histogram whether or not the mountain is a single peak.

【0061】ステップ178では、図10に示したよう
に抽出された顔領域以外の領域の濃度について累積ヒス
トグラムを求めてステップ180へ進む。この顔領域以
外の領域の濃度は、上記顔抽出回路36で抽出された顔
領域以外ののR、G、B3色測光データ(顔フラグがセ
ットで入力されたデータ)の総和または平均値を用い
る。次のステップ180では求めた累積ヒストグラムの
スムージングを行った後に微分特性を求める(図11参
照)。このとき、所定値(例えば、0)以下の微分値の
存在は、図10の破線で示したように累積ヒストグラム
の特性に段階的な変化(所謂、2つの肩)が存在するこ
とを示している。従って、次のステップ182において
所定値以下の微分値の有無を判断することによって2つ
の肩が有るか否かを判断し、肯定判断の場合に、被写体
の顔の反射率が小さくかつストロボ露光であると判断
し、補正値K1 を0にして本ルーチンを終了する。
In step 178, as shown in FIG. 10, a cumulative histogram is obtained for the density of the region other than the face region extracted, and the process proceeds to step 180. As the density of the area other than the face area, the sum or average value of the R, G, and B three-color photometric data (the data in which the face flag is input as a set) other than the face area extracted by the face extraction circuit 36 is used. . In the next step 180, a differential characteristic is obtained after smoothing the obtained cumulative histogram (see FIG. 11). At this time, the presence of a differential value equal to or smaller than a predetermined value (for example, 0) indicates that there is a gradual change (so-called two shoulders) in the characteristic of the cumulative histogram as shown by the broken line in FIG. I have. Therefore, in the next step 182, it is determined whether or not there are two shoulders by determining the presence or absence of a differential value that is equal to or less than a predetermined value. It determines that the correction value K 1 to end the present routine is set to 0.

【0062】一方、ステップ182において否定判断さ
れ肩が2未満の場合に、ステップ184へ進み、以下の
数13に示した式に基づいて補正値K1 を演算する。演
算が終了した後には本ルーチンを終了する。
On the other hand, if the result of the determination in step 182 is negative and the shoulder is less than 2, the flow advances to step 184 to calculate the correction value K 1 based on the following equation (13). After the calculation is completed, this routine ends.

【0063】[0063]

【数13】 (Equation 13)

【0064】ここで、Ka 、Kb は定数であり、FDは
顔領域平均濃度である。次のステップ188では、顔抽
出回路36で上記抽出された顔領域のR、G、B測光デ
ータ、補正値K1 及び平均濃度演算回路38で演算され
た1コマの画面平均濃度Di (i=R、G、Bのうちの
いずれか)を用いて以下の式に従って適正露光量Ei
>演算し、ドライバ42に出力する。ドライバ42は適
正露光量E i から露光コントロール値を演算して調光フ
イルタ16を制御する。
Here, Ka, KbIs a constant, and FD is
This is the face area average density. In the next step 188, face extraction
The R, G, B photometry data of the face area extracted by the output circuit 36
Data, correction value K1 And calculated by the average density calculation circuit 38.
Screen average density Di(I = R, G, and B
) And the proper exposure amount E according to the following equation:iTo
> Calculate and output to the driver 42. Driver 42 is suitable
Positive exposure E iCalculates the exposure control value from
It controls the filter 16.

【0065】 logi =LMi ・CSi ・(DNi −Di )+PBi +LBi +MBi +NBi +K1 +K2 −−−(8) ただし、各記号は次のものを表す。[0065] l og E i = however LM i · CS i · (DN i -D i) + PB i + LB i + MB i + NB i + K 1 + K 2 --- (8), each symbol is as follows.

【0066】LM:倍率スロープ係数であり、ネガの種
類とプリントサイズから決まる引伸倍率に応じて予め設
定されている。
LM: Magnification slope coefficient, which is set in advance according to the enlargement magnification determined by the type of the negative and the print size.

【0067】CS:ネガの種類毎に用意されたカラース
ロープ係数でアンダー露光用とオーバー露光用とがあ
り、プリントすべきコマの平均濃度が標準ネガ濃度値に
対してアンダーかオーバーかを判定してアンダー露光用
またはオーバー露光用のいずれかが選択される。
CS: There are color slope coefficients prepared for each type of negative, for underexposure and for overexposure, and it is determined whether the average density of the frame to be printed is under or over the standard negative density value. Under exposure or over exposure is selected.

【0068】DN:標準ネガ濃度値。 D :プリントコマの平均濃度値。DN: standard negative density value. D: Average density value of print frame.

【0069】PB:標準カラーペーパーに対する補正バ
ランス値であり、カラーペーパーの種類に応じて決定さ
れている。
PB: A correction balance value for standard color paper, which is determined according to the type of color paper.

【0070】LB:標準焼付レンズに対する。補正レン
ズバランス値であり、焼付レンズの種類に応じて決定さ
れている。
LB: For a standard printing lens. The correction lens balance value is determined according to the type of the printing lens.

【0071】MB:プリント光源の変動やペーパー現像
性能の変化に対する補正値(マスターバランス値)。
MB: a correction value (master balance value) for a change in the printing light source and a change in the paper developing performance.

【0072】NB:ネガフィルムの特性によって定めら
れるネガバランス(カラーバランス)値。
NB: Negative balance (color balance) value determined by the characteristics of the negative film.

【0073】K1 :濃度補正量。 K2 :カラー補正量。K 1 : density correction amount. K 2 : color correction amount.

【0074】なお、上記(8)式の濃度補正量K1 をフ
ィルム検定装置によって求められた補正値とし、カラー
補正量K2 を次のように顔領域平均濃度を用いて表して
もよい。
It should be noted that the density correction amount K 1 in the above equation (8) may be used as the correction value obtained by the film inspection apparatus, and the color correction amount K 2 may be expressed using the face area average density as follows.

【0075】[0075]

【数14】 [Equation 14]

【0076】ただし、Kc は定数である。更に、上記
(8)式の濃度補正量K1 、カラー補正量K2 をフィル
ム検定装置によって求められた補正量とし、(8)式の
プリントコマの平均濃度Di を顔領域の平均濃度FDi
に置きかえて露出量を求めてもよい。この場合、上記ス
テップ186における濃度補正量K1 を予め定められた
基準の平均濃度に代えると共に、ステップ184では上
記抽出された顔領域の平均濃度FDi に置き換える。こ
れにより、上記図9に示したルーチンを実行することが
できる。
Here, K c is a constant. Furthermore, the density correction amount K 1 in equation (8), the color correction amount K 2 is a correction amount determined by the film detecting device, the average concentration FD of average density D i a face region of the print frame in formula (8) i
The exposure amount may be obtained in place of the above. In this case, the replaced by the average density of the predetermined reference density correction amount K 1 in step 186 is replaced with the average density FD i of step 184 is the extracted face region. Thus, the routine shown in FIG. 9 can be executed.

【0077】本実施例では、領域の輪郭及び内部構造を
用いて判断しているため、色相が類似している顔、地
面、木等が混在する画像からも顔のデータを抽出するこ
とができる。
In this embodiment, since the determination is made using the outline and internal structure of the area, face data can be extracted from an image in which faces, grounds, trees, and the like having similar hues are mixed. .

【0078】また、本実施例では、抽出された顔領域の
データから、被写体の顔の反射率が小さく顔濃度による
補正の必要がないときと、逆光時における顔濃度による
補正が必要のときとを顔濃度及び顔濃度のヒストグラム
によって判断しているため、被写体の人種や個人差によ
らず、人物の顔が適正濃度になるように露光量を決定す
ることができる。
Further, in this embodiment, based on the data of the extracted face area, the case where the reflectance of the face of the subject is small and the correction based on the face density is not necessary, and the case where the correction based on the face density at the time of backlight is necessary are described. Is determined by the face density and the histogram of the face density, so that the exposure amount can be determined so that the face of the person has an appropriate density regardless of the race or individual difference of the subject.

【0079】また、本実施例では、ネガフィルムの画像
から濃度を測光した場合について説明したが、リバーサ
ルフィルムであってもよい。
In this embodiment, the case where the density is measured from the image of the negative film has been described. However, a reversal film may be used.

【0080】図12はプリンタまたはプリンタプロセッ
サとは別体の露光量決定装置に本発明を適用した変形例
を示すものである。なお、図12において図1と対応す
る部分には同一符号を付して説明を省略する。また、平
均濃度演算回路38は必ずしも必要ではないが、これに
代えて画面全体のLATDを検出する積算透過濃度検出
回路を用いてもよい。
FIG. 12 shows a modification in which the present invention is applied to an exposure amount determining apparatus separate from a printer or a printer processor. In FIG. 12, parts corresponding to those in FIG. 1 are denoted by the same reference numerals, and description thereof is omitted. Although the average density calculation circuit 38 is not always necessary, an integrated transmission density detection circuit for detecting LATD of the entire screen may be used instead.

【0081】図13は、図12の顔抽出回路を複数の顔
抽出回路361 、362 ・・・36nで構成し、並列処
理により露光量を演算するものである。顔抽出回路36
1 、362 ・・・36nは図14のタイムチャートに従
って画像を読込み、露光量を演算し、その結果を出力す
る。図14においてt1 は1コマの画像読込み時間、t
2 は1コマの露光量演算時間、t3 は1コマの露光量演
算結果転送時間であり、t2 >>t1 、t3 である。顔
抽出回路361 はt1 時間で1コマの画像を読込み、t
2 時間で露光量を演算し、t3 時間で演算結果を転送す
る。顔抽出回路361 による1コマの画像読込みが終了
すると同時にフィルムが1コマ分送られ顔抽出回路36
2 による1コマの画像読込みが開始され、顔抽出回路3
1 の露光量演算と顔抽出回路362 の画像読込みとが
並列して行われ、以下同様に顔抽出回路363 、364
・・・36nによって並列処理される。
FIG. 13 shows a configuration in which the face extraction circuit of FIG. 12 is constituted by a plurality of face extraction circuits 36 1 , 36 2 ... 36n, and the exposure amount is calculated by parallel processing. Face extraction circuit 36
1, 36 2 ··· 36n reads an image according to the time chart of FIG. 14, calculates the exposure amount, and outputs the result. In FIG. 14, t 1 is the image reading time of one frame, t
2 one frame of an exposure amount calculating time, t 3 is the one frame of an exposure amount computation result transfer time is t 2 >> t 1, t 3. The face extraction circuit 36 1 reads an image of one frame at time t 1 ,
It calculates the exposure amount in 2 hours, and transfers the calculation result t 3 hours. At the same time when the image reading of one frame by the face extraction circuit 36 1 is completed, the film is fed by one frame and the face extraction circuit 36
2 starts the image reading of one frame, and the face extracting circuit 3
6 1 of the image reading of the exposure operation and the face extraction circuit 36 2 is performed in parallel, and so the face extraction circuit 36 3, 36 4
.. 36n are processed in parallel.

【0082】mxnのコマを並列処理するに要する時間
Tpは、 Tp=m(t1 +t2 +t3 )+(n−1)t1 である。一方、並列処理を行わない場合の処理時間Ts
は Ts=m・n(t1 +t2 +t3 ) である。従って、
The time Tp required for parallel processing of mxn frames is Tp = m (t 1 + t 2 + t 3 ) + (n−1) t 1 . On the other hand, the processing time Ts when the parallel processing is not performed
Is Ts = mn (t 1 + t 2 + t 3 ). Therefore,

【0083】[0083]

【数15】 (Equation 15)

【0084】倍高速化が可能である。なお、この並列処
理装置は図1のプリンタにも適用できる。
It is possible to double the speed. This parallel processing device can be applied to the printer shown in FIG.

【0085】本発明は写真焼付装置の露光量決定以外
に、ディジタルカラープリンタの露光量決定、複写機の
複写条件決定、カメラの露出量決定、CRT画面の表示
条件決定、磁気画像データからハードコピーを作成する
ときの光量決定にも適用することができる。
The present invention, besides determining the exposure amount of the photographic printing apparatus, determines the exposure amount of the digital color printer, the copy condition of the copying machine, the exposure amount of the camera, the display condition of the CRT screen, and the hard copy from the magnetic image data. Can also be applied to the determination of the amount of light when creating.

【0086】[0086]

【発明の効果】以上説明したように本発明によれば、被
写体である人物の顔の反射率が所定値以上のカラー原画
像に対して該領域の濃度に基づく補正を行うようにした
ため、被写体の人物の顔の反射率が個人差や人種等によ
って基準値に比べて大幅に小さい場合であっても、最適
な濃度を得ることができるように複写材料への露光量を
決定することができる、という効果が得られる。
As described above, according to the present invention, a color original image in which the reflectance of the face of a person as a subject is not less than a predetermined value is corrected based on the density of the region. Even if the reflectance of the person's face is significantly smaller than the reference value due to individual differences and races, it is possible to determine the amount of exposure to the copy material so as to obtain the optimum density. Can be obtained.

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

【図1】本発明の第1実施例のプリンタを示す概略図で
ある。
FIG. 1 is a schematic diagram illustrating a printer according to a first embodiment of the present invention.

【図2】顔抽出回路の顔抽出ルーチンを示す流れ図であ
る。
FIG. 2 is a flowchart showing a face extraction routine of a face extraction circuit.

【図3】色座標を示す線図である。FIG. 3 is a diagram showing color coordinates.

【図4】(1)は色相値及び彩度値についての2次元ヒ
ストグラムを示す線図である。(2)は原画像を分割し
た状態を示す線図である。(3)は2次元ヒストグラム
から単峰の山を切り出した状態を示す線図である。
FIG. 4A is a diagram illustrating a two-dimensional histogram of hue values and saturation values. (2) is a diagram showing a state in which the original image is divided. (3) is a diagram showing a state where a single peak is cut out from a two-dimensional histogram.

【図5】図2のステップ106の詳細を示す線図であ
る。
FIG. 5 is a diagram showing details of step 106 in FIG. 2;

【図6】ヒストグラムと評価関数を示す線図である。FIG. 6 is a diagram showing a histogram and an evaluation function.

【図7】図2のステップ108の詳細を示す線図であ
る。
FIG. 7 is a diagram showing details of step 108 in FIG. 2;

【図8】図2のステップ110の詳細を示す線図であ
る。
FIG. 8 is a diagram showing details of step 110 in FIG. 2;

【図9】適正露光量計算回路の適正露光量計算ルーチン
を示す流れ図である。
FIG. 9 is a flowchart showing an appropriate exposure amount calculation routine of an appropriate exposure amount calculation circuit.

【図10】顔濃度についての累積ヒストグラムを示す線
図である。
FIG. 10 is a diagram showing a cumulative histogram for face density.

【図11】図10の微分特性を示す線図である。FIG. 11 is a diagram showing a differential characteristic of FIG. 10;

【図12】本発明を適用した露光量演算装置の概略図で
ある。
FIG. 12 is a schematic diagram of an exposure calculation device to which the present invention is applied.

【図13】複数の顔抽出回路によって並列処理を行う露
光量演算装置の概略図である。
FIG. 13 is a schematic diagram of an exposure calculation device that performs parallel processing by a plurality of face extraction circuits.

【図14】並列処理のタイムチャートを示す線図であ
る。
FIG. 14 is a diagram showing a time chart of parallel processing.

【図15】人種別肌の分光反射率特性を示す線図であ
る。
FIG. 15 is a diagram showing a spectral reflectance characteristic of skin of each type.

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

28 CCDイメージセンサ 30 増幅器 36 顔抽出回路 40 適正露光量計算回路 28 CCD image sensor 30 Amplifier 36 Face extraction circuit 40 Appropriate exposure calculation circuit

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 カラー原画像を多数画素に分割して各画
素を赤光、緑光及び青光の3色に分解して測光し、 測光により得られたデータに基づいて前記カラー原画像
上で色相または色相及び彩度が同一または類似の色領域
を求め、 求めた色領域について人物の顔の領域か否かを判断し、 人物の顔の領域と判断された領域の濃度を求め、 求めた濃度に対応する被写体である人物の顔の反射率が
所定値以上のカラー原画像に対しては前記領域の濃度に
基づく補正を行って複写材料への露光量を決定し、 求めた濃度に対応する被写体である人物の顔の反射率が
所定値未満のカラー原画像に対しては前記領域の濃度に
基づく補正を行うことなく複写材料への露光量を決定す
る露光量決定方法。
1. A color original image is divided into a large number of pixels, each pixel is separated into three colors of red light, green light and blue light, and photometry is performed. Based on data obtained by photometry, the color original image is displayed on the color original image. Hue or color areas with the same or similar hue and saturation were obtained, it was determined whether or not the obtained color area was a human face area, and the density of the area determined to be a human face area was obtained. For a color original image in which the reflectance of the face of the person corresponding to the density is equal to or greater than a predetermined value, the correction based on the density of the area is performed to determine the amount of exposure to the copy material. An exposure amount determining method for determining an exposure amount to a copy material without performing correction based on the density of the area for a color original image in which the reflectance of the face of a person who is a subject is less than a predetermined value.
【請求項2】 求めた濃度に対応する被写体である人物
の顔の反射率が所定値以上のカラー原画像に対しては前
記領域の平均濃度が基準濃度になるように補正を行って
複写材料への露光量を決定することを特徴とする請求項
1に記載の露光量決定方法。
2. The method according to claim 1, wherein the correction is performed such that the average density of the area of the color original image whose reflectance of the face of the person corresponding to the obtained density is equal to or more than a predetermined value is equal to the reference density. 2. The method according to claim 1, wherein the exposure amount is determined.
【請求項3】 求めた濃度が被写体である人物の顔の反
射率の所定値未満に対応しかつ予め定めた上限値及び下
限値の間の所定範囲に含まれるカラー原画像に対しては
被写体である人物の顔の反射率が所定値以上のカラー原
画像であるものとして前記領域の濃度に基づく補正を行
って複写材料への露光量を決定することを特徴とする請
求項1に記載の露光量決定方法。
3. The method according to claim 1, wherein the determined density is the inverse of the face of the person who is the subject.
Lower than the predetermined upper limit corresponding to the emissivity less than the predetermined value
For color original images that fall within a predetermined range between the limit values,
Color source whose reflectance of the face of the subject is greater than or equal to a predetermined value
Correction based on the density of the area as an image
2. The exposure amount determining method according to claim 1, wherein the exposure amount on the copy material is determined by the following method.
【請求項4】 求めた濃度が前記所定範囲に含まれる
ラー原画像に対して、前記人物の顔の領域を除く色領域
の濃度のヒストグラムを求め、求めたヒストグラムに基
づいてストロボ露光か否かを推定し、ストロボ露光以外
と推定されたときにのみ該カラー原画像を被写体である
人物の顔の反射率が所定値以上のカラー原画像であるも
のとして前記領域の濃度に基づく補正を行って複写材料
への露光量を決定することを特徴とする請求項3に記載
の露光量決定方法。
Mosquitoes wherein the obtained density is included in the predetermined range
Against color original image, a histogram of the density of the color region other than the region of the face of the person was to estimate whether the flash exposure based on the obtained histogram, except flash exposure
The color original image is the subject only when it is estimated that
It is a color original image where the reflectance of the person's face is greater than or equal to a predetermined value.
4. The method according to claim 3, wherein a correction based on the density of the area is performed to determine an exposure amount on the copy material.
JP31525992A 1992-11-25 1992-11-25 Exposure determination method Expired - Fee Related JP2923401B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP31525992A JP2923401B2 (en) 1992-11-25 1992-11-25 Exposure determination method
US08/153,088 US5461457A (en) 1992-11-25 1993-11-17 Method of determining amount of exposure
DE69325077T DE69325077T2 (en) 1992-11-25 1993-11-19 Procedure for determining the exposure amount
EP93118674A EP0601363B1 (en) 1992-11-25 1993-11-19 Method of determining amount of exposure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31525992A JP2923401B2 (en) 1992-11-25 1992-11-25 Exposure determination method

Publications (2)

Publication Number Publication Date
JPH06160995A JPH06160995A (en) 1994-06-07
JP2923401B2 true JP2923401B2 (en) 1999-07-26

Family

ID=18063283

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31525992A Expired - Fee Related JP2923401B2 (en) 1992-11-25 1992-11-25 Exposure determination method

Country Status (1)

Country Link
JP (1) JP2923401B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3507549B2 (en) * 1994-05-02 2004-03-15 富士写真フイルム株式会社 Exposure determination method
US8000940B2 (en) * 2008-10-08 2011-08-16 Beckman Coulter, Inc. Shape parameter for hematology instruments

Also Published As

Publication number Publication date
JPH06160995A (en) 1994-06-07

Similar Documents

Publication Publication Date Title
EP0514909B1 (en) Method of determining exposure
US5497431A (en) Method of extracting characteristic image data and color data conversion device for image processing apparatus
US6023524A (en) Method for determining amount of exposure
EP0601363B1 (en) Method of determining amount of exposure
JP2695067B2 (en) Method of extracting data of human face and method of determining exposure amount
JP2638691B2 (en) Exposure determination method
JP3516786B2 (en) Face area extraction method and copy condition determination method
JP2848749B2 (en) Feature image data extraction method
JP3576025B2 (en) Main subject extraction method and apparatus
JPH10268447A (en) Image processor and photographic printer
JP2638693B2 (en) Feature image data extraction method
JP2923401B2 (en) Exposure determination method
JP2638702B2 (en) Feature image data extraction method
JPH09281605A (en) Image recorder
JP2642262B2 (en) Exposure determination method
JP2848750B2 (en) Exposure determination method
JP2763221B2 (en) How to extract human face data
JP3386373B2 (en) Method for determining similarity of captured images, image processing method and image processing apparatus using the same
JP2638701B2 (en) Feature image data extraction method
JP2638692B2 (en) Method of extracting data of human face and method of determining exposure amount
JP2695074B2 (en) Photometric image data collection method and exposure amount determination method
JP2001076149A (en) Method and device for extracting main object
JPH06186652A (en) Exposure deciding method
JPH0437977B2 (en)
JPH0746201B2 (en) Out-of-focus image detection device and photo printing device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20080430

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20090430

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

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20090430

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

Free format text: PAYMENT UNTIL: 20100430

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110430

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees