JP2763221B2 - How to extract human face data - Google Patents

How to extract human face data

Info

Publication number
JP2763221B2
JP2763221B2 JP32899891A JP32899891A JP2763221B2 JP 2763221 B2 JP2763221 B2 JP 2763221B2 JP 32899891 A JP32899891 A JP 32899891A JP 32899891 A JP32899891 A JP 32899891A JP 2763221 B2 JP2763221 B2 JP 2763221B2
Authority
JP
Japan
Prior art keywords
color
area
region
face
circle
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
JP32899891A
Other languages
Japanese (ja)
Other versions
JPH05165119A (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 JP32899891A priority Critical patent/JP2763221B2/en
Priority to US07/886,610 priority patent/US5309228A/en
Priority to EP92108701A priority patent/EP0514933B1/en
Priority to DE69221210T priority patent/DE69221210T2/en
Publication of JPH05165119A publication Critical patent/JPH05165119A/en
Application granted granted Critical
Publication of JP2763221B2 publication Critical patent/JP2763221B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は人物の顔のデータ抽出方
法に係り、より詳しくは、カラー原画像をカラー複写材
料または黒白複写材料に複写するときに使用する、人物
の顔の濃度データ等の人物の顔のデータを抽出する方法
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for extracting data of a person's face, and more particularly to density data of a person's face used when copying a color original image onto a color copying material or a black and white copying material. A method of extracting face data of another person.

【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. To create a high-quality photograph, the color of the face of the person must be adjusted appropriately. It is necessary to bake to a different color.

【0003】従来では、カラーフィルムの原画像中の顔
領域をライトペンで指定して人物の顔の濃度データを抽
出し、この抽出した濃度データに基づいて顔の色が適正
に焼付けられるように露光量を決定している。このよう
な技術としては、特開昭62−115430号公報、特
開昭62−115431号公報、特開昭62−1154
32号公報、特開昭62−189456号公報、特開昭
62−189457号公報、特開昭63−138340
号公報、特開昭63−178222号公報に記載のもの
がある。
Conventionally, a face area in an original image of a color film is designated with a light pen to extract density data of a person's face, and the face color is appropriately printed based on the extracted density data. Exposure is determined. Such a technique is disclosed in JP-A-62-115430, JP-A-62-115431, and JP-A-62-1154.
No. 32, JP-A-62-189456, JP-A-62-189457, JP-A-63-138340
And JP-A-63-178222.

【0004】しかしながら、上記従来の技術では、画像
毎にオペレータがライトペンで顔領域を指定しなければ
ならないため、焼付作業に時間がかかる、という問題が
ある。また、オペレータが目視して顔領域を指定しなけ
ればならないため、無人化が困難である。
[0004] However, in the above-mentioned conventional technique, there is a problem that the printing operation takes a long time because the operator has to specify a face area with a light pen for each image. Further, since the operator must visually specify the face area, it is difficult to perform unmanned operation.

【0005】また、特開昭52−156624号公報、
特開昭52−156625号公報、特開昭53−123
30号公報、特開昭53−145620号公報、特開昭
53−145621号公報、特開昭53−145622
号公報には、肌色データを抽出することによって人物の
顔のデータを抽出する以下の方法が記載されている。す
なわち、カラー原画像を多数の測光点に分割すると共に
各測光点をR(赤)、G(緑)、B(青)の3色に分解
して測光し、測光データから計算した各測光点の色が肌
色範囲内か否か判断する。そして、肌色範囲と判断され
た測光点のクラスタ(群)を顔の濃度データとするもの
である。
Further, Japanese Patent Application Laid-Open No. 52-156624,
JP-A-52-156625, JP-A-53-123
No. 30, JP-A-53-145620, JP-A-53-145621, JP-A-53-145622
The following publication describes a method of extracting human face data by extracting skin color data. That is, the color original image is divided into a large number of photometry points, and each photometry point is separated into three colors of R (red), G (green), and B (blue), and photometry is performed. Is determined to be within the skin color range. Then, clusters (groups) of photometric points determined to be in the skin color range are used as face density data.

【0006】しかしながら、この方法では肌色範囲内の
色を顔の濃度データと仮定しているため、地面、木の
幹、洋服等の肌色または肌色に近似した色をした顔以外
の部位も顔の濃度データとして抽出されてしまう。
However, in this method, since the color within the skin color range is assumed as the density data of the face, parts other than the face having the skin color or the color similar to the skin color, such as the ground, a tree trunk, and clothes, are also included in the face. It is extracted as density data.

【0007】また、仮に地面や木の幹等の肌色または肌
色に近似した部位を除外して抽出できたとしても、海水
浴シーズンやプール等の画像では肌を多く露出した顔と
同色の領域が顔の周辺に多数存在しており、その周辺の
領域が顔の領域と結合していることがある。また、人物
の画像では、頬杖をついた画像等があり、やはり顔と同
色の画像が顔の領域と結合してしまう。このため、原画
像の色の特徴から顔の領域を抽出しようとすると、顔の
みの領域を抽出することができず、同色の結合した領域
をも抽出してしまう。これによって、顔のみの濃度デー
タを自動的に抽出することができない。
[0007] Even if a skin color or a portion similar to the skin color, such as the ground or a tree trunk, can be extracted and extracted, even in an image of a sea bathing season, a pool, or the like, an area having the same color as the face with much exposed skin is a face. May be present around the face, and the surrounding area may be connected to the face area. Further, in the image of a person, there is an image with a cheek stick or the like, and an image of the same color as the face is combined with the face area. Therefore, if an attempt is made to extract a face region from the color characteristics of the original image, it is not possible to extract a face-only region, and a combined region of the same color is also extracted. As a result, the density data of only the face cannot be automatically extracted.

【0008】本発明は上記問題点を解決するために成さ
れたもので、ネガフィルム等のカラー原画像から特徴画
像データである人物の顔のデータのみを高い確度で自動
的に抽出することができる人物の顔のデータの抽出方法
を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and it is possible to automatically extract only the face data of a person, which is characteristic image data, from a color original image such as a negative film with high accuracy. An object of the present invention is to provide a method of extracting data of a person's face that can be performed.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に請求項1の発明は、カラー原画像を多数画素に分割し
て各画素を赤光、緑光及び青光の3色に分解して測光
し、測光により得られたデータに基づいて前記カラー原
画像上に色相が同一または類似の色領域を求め、求めた
色領域の境界部位に内接する円または長円を想定し、か
つ面積の大きな円または長円から順に円または長円の領
域によって求めた色領域を分割し、分割された領域の少
なくとも1つを選択して選択された領域のデータを人物
の顔のデータとして抽出する。
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, determine the same or similar color area on the color original image, assume a circle or an ellipse inscribed at the boundary of the determined color area, and The color area determined by the area of the circle or the ellipse in order from the large circle or the ellipse is divided, at least one of the divided areas is selected, and the data of the selected area is extracted as the data of the face of the person.

【0010】また、請求項2の発明は、カラー原画像を
多数画素に分割して各画素を赤光、緑光及び青光の3色
に分解して測光し、測光により得られたデータに基づい
て前記カラー原画像上に色相が同一または類似の色領域
を求めると共に、該色領域の核を求め、前記色領域の境
界部位に内接する円または長円を想定し、かつ面積が最
大の円または長円の領域を求め、前記色領域内におい
て、前記面積が最大の円または長円の領域の外周から外
側に突出する所定面積以上の凸領域を求め、該凸領域
含みかつ前記核を除いた前記色領域の境界部位に内接す
る円または長円を想定し、かつ面積が最大の円または長
円の領域によって、前記色領域を分割し、分割された領
域の少なくとも1つを選択して選択された領域のデータ
を人物の顔のデータとして抽出する。
According to a second aspect of 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, and based on data obtained by photometry. Te determined the original color hue same or similar color regions on the image Rutotomoni obtains the nucleus of said color area, assuming a circle or ellipse inscribed in a boundary portion of the color area, and the area is maximum obtains an area of a circle or oval, the color region odor
Te, said area obtains a convex area above where the constant area that protrudes outward from the outer peripheral region of the largest circle or ellipse, the convex region
Includes and inscribes the border region of the color region excluding the nucleus
Circle or ellipse with the largest area
The color region is divided by a circle region, at least one of the divided regions is selected, and data of the selected region is extracted as human face data.

【0011】[0011]

【作用】人物写真を観賞するときに最も注目される部位
は、人物の顔であるので、カラー原画像から人物の顔の
領域のデータを抽出し、そのデータを特徴画像データと
して用いるのが好ましい。また、人物の顔の形状は円ま
たは楕円のものが殆どであり、カラー原画像の同系色の
色領域から円の領域を優先して抽出することで人物の顔
の領域が抽出される可能性が高い。
[Action] Since the most noticeable part when viewing a portrait is the face of a person, it is preferable to extract data of the area of the face of the person from the color original image and use that data as feature image data. . In addition, the shape of a person's face is almost a circle or an ellipse, and a person's face area may be extracted by preferentially extracting a circle area from similar color areas of a color original image. Is high.

【0012】そこで請求項1に記載の発明では、カラー
原画像を多数画素に分割して各画素を赤光、緑光及び青
光の3色に分解して測光し、測光により得られたデータ
に基づいてカラー原画像上に色相が同一または類似の色
領域を求める。次に、求めた色領域の境界部位に内接す
る円または長円を想定し、かつ面積の大きな円または長
円から順に円または長円の領域によって求めた色領域を
分割する。これにより、最終的に分割された領域は、顔
のみの独立した領域である可能性が高い。従って、カラ
ー原画像の分割された各々の色領域は、顔の領域として
抽出される可能性の高い領域に更に分割され、この画像
の特徴を表す少なくとも1つの領域を選択すれば、選択
された領域のデータが特徴画像データを表すことになる
から、領域の選択によって特徴画像データを抽出するこ
とができる。
According to the first aspect of 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. Based on this, a color region having the same or similar hue is obtained on the color original image. Next, assuming a circle or an ellipse inscribed at the boundary portion of the obtained color region, the obtained color region is divided by a circle or an ellipse in order from a circle or an ellipse having a large area. As a result, there is a high possibility that the finally divided area is an independent area including only the face. Therefore, each of the divided color regions of the color original image is further divided into regions that are likely to be extracted as face regions, and if at least one region representing the features of this image is selected, the selected color region is selected. Since the data of the region represents the characteristic image data, the characteristic image data can be extracted by selecting the region.

【0013】また、顔の領域が顔以外の部位に接してい
るとき(例えば、プールで斜め上方から撮影したときは
顔の領域が身体に埋没している)に、その色領域の内接
円から先に分割すると、顔の領域が分割されて抽出され
てしまうことがある。そこで、請求項2に記載の発明で
は、上記請求項1で説明したように測光により得られた
データに基づいてカラー原画像上に色相が同一または類
似の色領域を求める。これと共に、該色領域の核を求め
る。次に、この求めた色領域の境界部位に内接する円ま
たは長円を想定し、かつ面積が最大の円または長円の領
域を求める。そして、この求めた領域に、円または長円
の外周から外側に突出する所定面積の以上の凸領域が
る場合には、該凸領域を含みかつ前記核を除いた前記色
領域の境界部位に内接する円または長円を想定し、かつ
面積が最大の円または長円の領域によって、色領域を分
割する。これによって、カラー原画像上で類似した色領
域が接していても、人物の顔の領域が抽出される可能性
が高い円または長円の領域を顔の領域として優先して分
割することができ、分割された領域の内少なくとも1つ
を選択することによってこの領域のデータを特徴画像デ
ータとして抽出することができる。
When the face area is in contact with a part other than the face (for example, when the face area is buried in the body when photographed diagonally from above in a pool), the inscribed circle of the color area If the face is divided first, the face region may be divided and extracted. Therefore, in the second aspect of the present invention, a color region having the same or similar hue is obtained on a color original image based on data obtained by photometry as described in the first aspect. At the same time, the nucleus of the color area is determined.
You. Next, a circle or an ellipse inscribed in the boundary portion of the obtained color region is assumed, and a circle or an ellipse having the largest area is obtained. Then, the calculated area, if the convex area of more than a predetermined area that protrudes from the outer periphery of a circle or oval on the outside Oh <br/> Ru, the colors except for containing and the nuclei convex region
Assuming a circle or oval inscribed at the boundary of the area, and
The color area is divided by a circle or an ellipse having the largest area . As a result, even if similar color regions are in contact with each other on the original color image, a circle or an oval region in which a person's face region is likely to be extracted can be preferentially divided as a face region. By selecting at least one of the divided areas, the data of this area can be extracted as feature image data.

【0014】[0014]

【実施例】以下図面を参照して本発明の第1実施例を詳
細に説明する。本実施例は、オートプリンタに本発明を
適用したものである。図1に示されるように、本実施例
のオートプリンタは、カラーネガフィルム10を搬送す
る搬送ローラ12を備えている。搬送ローラ12によっ
て搬送されるカラーネガフィルム10の下方には、光源
14、調光フイルタ等の色補正フィルタ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に接続されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment 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. Below the color negative film 10 transported by the transport rollers 12, a light source 14, a color correction filter 16 such as a dimming filter, and a diffusion box 18 are sequentially arranged. Above the negative film 10, a distribution prism 20 for distributing the light transmitted through the negative film 10 in two directions 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
Divides the entire screen (one frame) of the negative film 10 into a number of pixels (for example, 256 × 256 pixels) and divides each pixel into three colors of R (red), G (green), and B (blue). Decompose and meter. 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.

【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に入力される。この平均濃度演算回路
38では、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 The average density calculation circuit 38 calculates the average density of one entire screen. 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. 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 three-color photometric data input at step 100 is performed. In the next step 102, the following (1) to (3)
The R, G, and B three-color photometric data are represented by H (hue value),
It is converted into L (brightness 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. , And in the next step 106, the obtained two-dimensional histogram is divided into mountains, that is, clustering of the two-dimensional histogram is performed. In the next step 108, clustering of a large number of pixels is performed based on the peaks of the clustered two-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, the color region extracted as a face candidate is further divided into a circle or an oval region, so that at least the face region is divided into other regions, and based on the divided region, To estimate the face area, and output R, G, and B colorimetric data of the area estimated as the face. 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 area, the X and Y axes for creating a mountain cutout histogram are determined in step 124.
In other words, the evaluation area is rotated around an axis parallel to the pixel number axis, and when a mountain of the histogram is viewed from the side, a multimodal property is prioritized and a position where the mountain is the sharpest is obtained. Determine X and Y axes. If the processing time needs to be shortened, the accuracy is slightly reduced, but an axis with the maximum variance of the histogram may be used as the X and Y axes. 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 positions where the mountains are sharpest are positions where the three mountains can be seen. Therefore, 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 this 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) which is equal to or less than 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
And av0 is obtained as a foot and av2 is obtained as a valley, and a histogram is cut out at this position.

【0028】ステップ130ではX軸についてのヒスト
グラムの山の切り出しと同様の方法でY軸についてのヒ
ストグラムの山の切り出しを行なう。次のステップ13
2では、2次元ヒストグラム上で上記のように切り出さ
れたX軸、Y軸についての1次元ヒストグラムの山が重
なる領域を求め、色相値及び彩度値についての2次元ヒ
ストグラムから山の切り出しを行なう。図4(1)の領
域E1は上記のようにして切り出した山の一例を示すも
のである。
At 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 13
In step 2, a region where the peaks of the one-dimensional histogram on the X-axis and the Y-axis cut out on the two-dimensional histogram overlap as described above is obtained, and the peak is cut out from the two-dimensional histogram on the hue value and the saturation value. . An area E1 in FIG. 4A shows 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, a process (labeling) for attaching a label for identifying the cut-out single peak is performed. In step 138, the labeled peak 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 such that the collected pixels form one area 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 in the respective regions denoted by reference numerals 1 to 4 are:
These correspond to the pixels included in the single peaks denoted by reference numerals 1 to 4 in FIG. 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 contraction process of deleting all the boundary pixels of the region and removing it by one skin, and a dilation process of multiplying the boundary pixels in the direction of the background pixel and increasing the thickness of the skin by performing the expansion process in contrast to the contraction process are performed. Are separated from the large area. Next step 146
Then, as in step 142, small areas are removed and renumbering is performed. In step 148, the same contraction and expansion processing as described above is performed in order to separate the weakly coupled areas. Similarly, the removal and renumbering of the minute area are performed.

【0033】図8はステップ110の詳細を示すもので
ある。また、以下、ステップ110の説明を詳細に行な
うために、図9(1)に示した、顔と同色または類似色
の色領域が広範囲に渡る場合の画像を用いて説明する。
FIG. 8 shows details of step 110. In addition, in order to describe step 110 in detail, an explanation will be given using an image shown in FIG. 9A in which a color region of the same color or a similar color as the face extends over a wide range.

【0034】先ず、ステップ162においてステップ1
08、すなわち図7のルーチンで抽出された領域の中か
ら1つの領域を注目領域として選択する(図9(1)参
照)。次に、選択した注目領域の収縮処理を行なって注
目領域を分解するための核を求める。すなわち、注目領
域の境界画素を削除していく収縮処理を繰り返し行なっ
て、最終的に残った1つの点状または線状領域を核とす
る。この線状領域とは、図9(2)に示したように、複
数の連続した点(画素または複数画素の集合)すなわち
線L1 になるものをいう。対象とする画像は原画像をC
CDイメージセンサ28によって測光して得られるデー
タに基づくため、連続系ではなく、離散系であるので、
上記核はある面積をもつことになる。また、対象とする
画像の形状によっては最終的に残る核が複数になること
がある。この場合には、最小面積の領域を核とする。ま
た、同面積の領域が残存した場合には任意の1つを選択
するものとする。
First, in step 162, step 1
08, that is, one region is selected as the region of interest from the regions extracted in the routine of FIG. 7 (see FIG. 9A). Next, a nucleus for decomposing the attention area by performing the contraction processing of the selected attention area is obtained. That is, the contraction processing for deleting the boundary pixels of the attention area is repeatedly performed, and the one remaining dot-shaped or linear area is finally set as a nucleus. And the linear region, as shown in FIG. 9 (2), (a set of pixels or more pixels) a plurality of consecutive points That refers to those made to the line L 1. The target image is the original image C
Since it is based on data obtained by photometry by the CD image sensor 28 and is not a continuous system but a discrete system,
The nucleus will have a certain area. Further, depending on the shape of the target image, there may be a plurality of nuclei that are finally left. In this case, a region having the minimum area is used as a nucleus. When a region having the same area remains, an arbitrary one is selected.

【0035】次のステップ164では、上記のようにし
て求めた核を中心として注目領域に内接する面積が最大
の円または長円を求める。すなわち、上記のように核を
求めるために収縮処理を行った回数だけ核を中心に膨張
処理を行うことによって、核が点状の場合には内接円と
して、核が線状の場合には内接長円として求めることが
できる(モフォロジックフィルタ)。
In the next step 164, a circle or oval having the largest area inscribed in the region of interest with the nucleus obtained as described above as the center is obtained. That is, by performing the expansion process around the nucleus by the number of times the erosion process is performed to obtain the nucleus as described above, the nucleus is an inscribed circle when the nucleus is point-like, and It can be obtained as an inscribed ellipse (morphologic filter).

【0036】注目領域に内接する面積が最大の円または
長円を求めた後にはステップ166へ進み、ステップ1
66では、求めた面積最大の円(またはこの円による長
円)を識別するためのラベルを付ける処理(ラベリン
グ)を行なう。次のステップ168では、ラベリングさ
れた円または長円の領域BL1をマスクしてステップ1
70へ進む。次のステップ170では、抽出された全領
域について円または長円の領域によっての分割が終了し
たか否か判断し、終了していないときにはステップ16
2〜ステップ168を繰り返す。これによって、図9
(2)〜(6)に示したように、面積の大きな円による
領域BL1〜BL10の順に分割が行なわれる。
After obtaining a circle or an ellipse having the largest area inscribed in the attention area, the flow advances to step 166, and the flow advances to step 166.
At 66, a process (labeling) of attaching a label for identifying the obtained circle having the largest area (or an ellipse formed by this circle) is performed. In the next Step 168, Step 1 is performed by masking the labeled circle or oval region BL1.
Proceed to 70. In the next step 170, it is determined whether or not division of all extracted regions by a circle or an oval region has been completed.
Steps 2 to 168 are repeated. As a result, FIG.
As shown in (2) to (6), the regions BL1 to BL10 are divided in the order of the large-area circles BL1 to BL10.

【0037】注目領域の分割が終了するとステップ17
2へ進む。ステップ172では、詳細は後述するが分割
された円または長円の内少なくとも1つを選択して顔の
領域を推定し、顔であると推定された領域のR、G、B
測光データを適正露光量計算回路40に出力する。
When the division of the attention area is completed, step 17 is executed.
Proceed to 2. In step 172, a face region is estimated by selecting at least one of the divided circles or ellipses, which will be described in detail later, and the R, G, B of the region estimated to be a face is selected.
The photometric data is output to the appropriate exposure calculation circuit 40.

【0038】このように、顔と同色の色領域が顔以外の
領域をも含む広範囲に渡る場合であっても、顔の領域と
しての確率が高い円領域で、この色領域を更に分割する
ことができるため、この円領域を選択することによっ
て、色相や彩度が類似している顔、地面、木等が混在す
る画像からでも高い確率で顔の領域のみのデータを抽出
することができる。
As described above, even when the color region of the same color as the face extends over a wide range including a region other than the face, the color region is further divided into a circular region having a high probability as the face region. By selecting this circular area, it is possible to extract data of only the face area with high probability from an image in which faces, grounds, trees, and the like having similar hues and saturations are mixed.

【0039】なお、上記説明した核Li 及び内接円の領
域Xi は、以下に示した集合演算の式(6)及び(7)
で表すことができる。
The above-described kernel L i and inscribed circle region X i are obtained by the following set operation expressions (6) and (7).
Can be represented by

【0040】[0040]

【数4】 (Equation 4)

【0041】ここで、色領域を収縮及び核を中心に色領
域の内接円を求めるときの形状Bi は、以下の式(8)
によって定めることができる。
Here, the shape B i for shrinking the color area and finding the inscribed circle of the color area centering on the nucleus is given by the following equation (8).
Can be determined by

【0042】[0042]

【数5】 (Equation 5)

【0043】但し、B:円形の構成要素 また、このni は、以下の式(9)によって定めること
ができる。
[0043] However, B: circular components also the n i can be determined by the following equation (9).

【0044】[0044]

【数6】 (Equation 6)

【0045】但し、k=1,2,… Mi 2 =Area(X−X’i-1 ) Area(X):X領域の面積 このk値を最適に選択することによって、分解される大
きさのni を定めることができる。なお、上記式(9)
は、以下に示した式(10)でもよい。
Here, k = 1, 2,... M i 2 = Area (XX ′ i−1 ) Area (X): area of X region By selecting this k value optimally, the size to be decomposed N i can be determined. Note that the above equation (9)
May be the equation (10) shown below.

【0046】[0046]

【数7】 (Equation 7)

【0047】但し、k=1,2,… r0 :構成要素Bの半径 また、上記円形の構成要素BとX領域との関係は、Here, k = 1, 2,..., R 0 : radius of the component B Further, the relationship between the circular component B and the X region is as follows.

【0048】[0048]

【数8】 (Equation 8)

【0049】で表すことができる。図15はステップ1
72の詳細を示すもので、ステップ302において、上
記のように円または長円に分割された領域の中から1つ
の領域を特徴領域として選択し、特徴領域の水平フィレ
径および垂直フィレ径が所定値になるように特徴領域の
拡大縮小処理を行って特徴領域のサイズの規格化を行う
と共に、次の(11)式に従って濃度値または輝度値の
規格化を行う。
Can be represented by FIG. 15 shows step 1
In step 302, one of the regions divided into the circle or the ellipse as described above is selected as the characteristic region, and the horizontal fillet diameter and the vertical fillet diameter of the characteristic region are determined. The size of the characteristic region is standardized by performing the enlargement / reduction processing of the characteristic region so as to obtain the value, and the density value or the luminance value is also standardized according to the following equation (11).

【0050】[0050]

【数9】 (Equation 9)

【0051】ただし、 dmax :領域内最大濃度値(または輝度値) dmin :領域内最低濃度値(または輝度値) ds :イメージセンサのフルスケール濃度値(または
輝度値) d :規格化前濃度値(または輝度値) dr :規格化後濃度値(または輝度値) ステップ304では、予め記憶された複数種(本実施例
では10種類)の標準的な顔画像(正面から見た顔画
像、横から見た顔画像(左右)、下向き顔画像、上向き
顔画像等)に対する特徴領域の相関係数rを次の(1
2)式によって演算し、この相関係数を特徴量とする。
この標準的な顔画像は、顔の輪郭のみのデータであって
も、顔の輪郭のデータに顔の内部構造(眼、鼻、口等)
データを加えたデータであってもよい。
Here, 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 304, 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 characteristic region with respect to the face image (left / right), downward face image, upward face image, etc.
The correlation coefficient is calculated by the equation 2), and the correlation coefficient is used as a feature amount.
Even if this standard face image is data of only the contour of the face, the internal structure of the face (eye, nose, mouth, etc.) is included in the data of the contour of the face.
Data obtained by adding data may be used.

【0052】[0052]

【数10】 (Equation 10)

【0053】ただし、However,

【0054】[0054]

【数11】 [Equation 11]

【0055】であり、Tは画像の水平、垂直フィレ径の
長さ(ここでは、フィレ径の長さは同じとした)、f
(x、y)は特徴領域、g(x、y)は標準的な顔画像
を表す。
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 feature region, and g (x, y) represents a standard face image.

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

【0057】上記では人物の顔か否かの判定を行うため
に用いる特徴量として相関係数を使用したが、以下で説
明する重心回りの正規化されたセントラル・モーメント
から導出される不変量、自己相関関数または幾何学的不
変量を用いてもよい。
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.

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

【0059】[0059]

【数12】 (Equation 12)

【0060】ただし、However,

【0061】[0061]

【数13】 (Equation 13)

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

【0063】[0063]

【数14】 [Equation 14]

【0064】ただし、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 moment around the second and third centroids. , (I
= 1, 2,..., 7) are derived.

【0065】[0065]

【数15】 (Equation 15)

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

【0067】[0067]

【数16】 (Equation 16)

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

【0069】[0069]

【数17】 [Equation 17]

【0070】適正露光量計算回路40は、顔抽出回路3
6で上記のように抽出された顔領域のR、G、B測光デ
ータと平均濃度演算回路38で演算された1コマの画面
平均濃度Di (i=R、G、Bのうちのいずれか)とを
用いて以下の式に従って適正露光量Ei を演算し、ドラ
イバ42に出力する。ドライバ42は適正露光量Ei
ら露光コントロール値を演算して調光フイルタ16を制
御する。
The proper exposure amount calculating circuit 40 includes the face extracting circuit 3
6, the R, G, and B photometric data of the face area extracted as described above and the screen average density D i (i = R, G, or B) of one frame calculated by the average density calculation circuit 38 ) and using the calculated the proper exposure amount E i according to the following equation, and outputs to the driver 42. The driver 42 controls the light adjustment filter 16 calculates an exposure control value from the appropriate exposure amount E i.

【0071】 logi =LMi ・CSi ・(DNi −Di )+PBi +LBi +MBi +NBi +K1 +K2 …(11) ただし、各記号は次のものを表す。[0071] However l og E i = LM i · CS it · (DN i -D i) + PB i + LB i + MB i + NB i + K 1 + K 2 ... (11), each symbol is a thing of the next.

【0072】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.

【0073】CS:ネガの種類毎に用意されたカラース
ロープ係数でアンダー露光用とオーバー露光用とがあ
り、プリントすべきコマの平均濃度が標準ネガ濃度値に
対してアンダーかオーバーかを判定してアンダー露光用
またはオーバー露光用のいずれかが選択される。
CS: There are color slope coefficients prepared for each type of negative for underexposure and 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.

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

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

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

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

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

【0079】K2 :カラー補正量。 K1 :以下の式で表される濃度補正量。K 2 : color correction amount. K 1 : a density correction amount represented by the following equation.

【0080】[0080]

【数18】 (Equation 18)

【0081】ここで、Ka 、Kb は定数であり、FDは
顔領域平均濃度である。また、上記(8)式の濃度補正
量K1 をフィルム検定装置によって求められた補正値と
し、カラー補正量K2 を次のように顔領域平均濃度を用
いて表してもよい。
[0081] Here, K a, K b are constants, FD is the face region average density. Further, as the correction value determined density correction amount K 1 in equation (8) by the film detecting device may represent a color correction amount K 2 using the face region average density as follows.

【0082】[0082]

【数19】 [Equation 19]

【0083】ただし、Kc は定数である。更に、上記
(8)式の濃度補正量K1 、カラー補正量K2 をフィル
ム検定装置によって求められた補正量とし、(8)式の
プリントコマの平均濃度Di を顔領域の平均濃度FDi
置きかえて露出量を求めてもよい。
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 determined instead.

【0084】次に、本発明の第2実施例を図10に示し
たフローチャートに従って説明する。本実施例は、顔の
領域と接した領域から顔領域を最適に分割するものであ
る。すなわち、人物の画像での顔の領域は、体の周囲に
ある場合が殆どである。このため、顔の領域を含んだ色
領域が複数の凸領域を有する場合には、その凸部分に内
接する円領域からその色領域を分割して分割された円領
域を選択することによって、その円領域を顔の領域と推
定できる可能性が高い領域を優先して分割するようにし
たものである。
Next, a second embodiment of the present invention will be described with reference to the flowchart shown in FIG. In the present embodiment, a face region is optimally divided from a region in contact with a face region. That is, in most cases, the face region in the image of the person is around the body. Therefore, when the color region including the face region has a plurality of convex regions, the color region is divided from the circular region inscribed in the convex portion, and the divided circular region is selected. In this case, a region having a high possibility of estimating a circle region as a face region is preferentially divided.

【0085】先ず、ステップ180においてステップ1
08、すなわち図7のルーチンで抽出された領域の中か
ら1つの領域を注目領域として選択する(図11(1)
参照)。そして上記第1実施例と同様に、選択した注目
領域の収縮処理を行なって注目領域の核La を求める
(図11(2)参照)。
First, in step 180, step 1
08, that is, one region is selected as a region of interest from the regions extracted in the routine of FIG. 7 ((1) of FIG. 11).
reference). And as in the first embodiment, obtaining the nuclear L a region of interest by performing contraction processing of the selected region of interest (see FIG. 11 (2)).

【0086】次のステップ182では、上記のようにし
て求めた核La を中心として注目領域に内接する面積が
最大の円または長円Ba を求める。次のステップ184
では、上記のようにして求めた注目領域に内接する円ま
たは長円の面積と注目領域の面積とを比較することによ
って注目領域の内接円の周囲に残存する領域ERi (i
=1,2,…)の面積が所定値以上か否かを判断する。
残存する領域ERi の面積が所定値以上の場合には、残
存する領域ERi に凸領域の存在可能性があるため、ス
テップ186へ進み、所定値未満の場合にはステップ1
92へ進む。
[0086] In the next step 182, the area that is inscribed in the region of interest around the core L a found as described above obtains the largest circle or ellipse B a. Next step 184
Then, the area ER i (i remaining around the inscribed circle of the region of interest is determined by comparing the area of the region of interest with the circle or oval inscribed in the region of interest obtained as described above.
= 1, 2, ...) is determined to be greater than or equal to a predetermined value.
When the area of the remaining region ER i is above a predetermined value, because of the possible presence of the convex region in the remaining region ER i, the process proceeds to step 186, step 1 in the case of less than the predetermined value
Go to 92.

【0087】ステップ186では、先ず、図11(3)
に示したように、上記のようにして求めた核La を注目
領域から除外(マスク)する。次のステップ188で
は、上記と同様に収縮及び膨張処理を行って、この核L
a がマスクされた注目領域に対して内接する面積が最大
の円または長円Bb を求める(図11(4)参照)。
In step 186, first, FIG.
As shown in, excluding nuclear L a obtained as described above from the region of interest (the mask). In the next step 188, contraction and expansion processing are performed in the same manner as described above, and the kernel L
a is an area that is inscribed to the mask region of interest to seek largest circle or ellipse B b (see FIG. 11 (4)).

【0088】次のステップ190では、上記のようにし
て求めた内接円または長円Ba 、Bb の各々を所定(1
〜3)画素程度の範囲で膨張させその膨張された領域の
内、注目領域からはみ出した領域の大きさを判断するこ
とによって、注目した色領域の外側部の凸部分の大きさ
を判断する。すなわち、膨張された領域のうち、注目領
域からはみ出した領域が大きい程凸であると判断する。
求めた円または長円B b による凸部分が大きい場合に
は、ステップ194へ進み、求めた内接する円または長
円Bb を識別するためのラベルを付ける処理を行なって
ステップ196へ進む。円または長円B a による凸部分
が大きい場合には、上記第1実施例と同様にステップ1
92において、注目領域に内接する面積最大の円(また
はこの円による長円)に識別するためのラベルを付ける
処理を行なって、ステップ196へ進む。
In the next step 190, each of the inscribed circles or ellipses B a and B b obtained as described above is determined by a predetermined (1
(3) The size of the convex portion on the outer side of the focused color region is determined by determining the size of the region that extends out of the region of interest out of the expanded region by expanding the region of about pixels. In other words, it is determined that the larger the area of the expanded area that protrudes from the attention area, the more the area is convex.
If a convex portion with a circle or ellipse B b obtained is large, the process proceeds to step 194, the process proceeds to step 196 is performed a process of attaching a label to identify the circle or ellipse B b inscribed obtained. Convex portions by circular or oval B a
Is larger , step 1 is performed as in the first embodiment.
At 92, a process of attaching a label for identifying a circle having the largest area inscribed in the attention area (or an ellipse formed by the circle) is performed, and the flow advances to step 196.

【0089】ステップ196では、ステップ192また
はステップ194においてラベリングされた円または長
円の領域をマスクしてステップ198へ進む。ステップ
198では、抽出された全領域について円または長円の
領域によっての分割が終了したか否か判断し、終了して
いないときにはステップ180〜ステップ198を繰り
返す。次のステップ200では、分割された円または長
円の内、少なくとも1つの領域を選択し、上記第1実施
例と同様に顔の領域を判断し、顔であると判断された領
域のR、G、B測光データを適正露光量計算回路40に
出力する。
In step 196, the area of the circle or oval labeled in step 192 or 194 is masked, and the flow advances to step 198. In step 198, it is determined whether or not the division into circles or ellipses has been completed for all the extracted regions, and if not, steps 180 to 198 are repeated. In the next step 200, at least one of the divided circles or ellipses is selected, the face region is determined in the same manner as in the first embodiment, and the R, R, and R of the region determined to be a face are determined. The G and B photometric data are output to the appropriate exposure amount calculation circuit 40.

【0090】このように、本実施例では色領域の周囲に
ある凸部分でかつこの凸部分に内接する面積の大きな円
領域、すなわち、顔の領域である確率の高い円領域を優
先して注目領域から分割するため、身体と顔が接した色
領域であっても、より確度が高く顔の領域のみを分割し
て顔の領域のデータを抽出することができる。
As described above, in the present embodiment, attention is given to a circular region having a large area in the vicinity of the convex portion and inscribed in the convex portion around the color region, that is, a circular region having a high probability of being a face region. Since the region is divided from the region, even in the color region where the body and the face are in contact, it is possible to extract the face region data by dividing only the face region with higher accuracy.

【0091】なお、上記実施例では、色相値及び彩度値
の2次元ヒストグラムに基づいて色領域に分割した場合
の例について説明したが、本実施例はこれに限定される
ものではなく、色相値のみによるヒストグラムに基づい
て色領域に分割してもよい。また、ヒストグラムに限定
されるものではなく、原画像の他の特徴量に基づいて色
領域を分割してもよい。
Although the above embodiment has been described with respect to an example in which the image is divided into color regions based on the two-dimensional histogram of the hue value and the saturation value, the present embodiment is not limited to this. It may be divided into color regions based on a histogram using only values. Further, the present invention is not limited to the histogram, and the color region may be divided based on other feature amounts of the original image.

【0092】図12はプリンタまたはプリンタプロセッ
サとは別体の露光量決定装置に本発明を適用した変形例
を示すものである。なお、図11において図1と対応す
る部分には同一符号を付して説明を省略する。また、平
均濃度演算回路38は必ずしも必要ではないが、これに
代えて画面全体のLATDを検出する積算透過濃度検出
回路を用いてもよい。
FIG. 12 shows a modified example in which the present invention is applied to an exposure determining device separate from a printer or a printer processor. In FIG. 11, 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.

【0093】図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 、36
4 ・・・36nによって並列処理される。
FIG. 13 shows a configuration in which the face extraction circuit of FIG. 12 is composed of 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 reading a single frame image, and the face extraction 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.

【0094】mxnのコマを並列処理するに要する時間
Tpは、 Tp=m(t1 +t2 +t3 )+(n−1)t1 である。一方、並列処理を行なわない場合の処理時間T
sは 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 T when parallel processing is not performed
s is Ts = m · n (t 1 + t 2 + t 3 ). Therefore,

【0095】[0095]

【数20】 (Equation 20)

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

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

【0098】[0098]

【発明の効果】以上説明したように請求項1に記載の発
明によれば、色領域分割により分割した領域内に特徴画
像と同一色または近似した色の画像が混在していても、
人物の顔である可能性の高い円領域で色領域を分割する
ため、人物の顔画像を高い確率で分離して、人物の顔の
データのみを抽出することができる、という効果が得ら
れる。
As described above, according to the first aspect of the present invention, even if an image of the same color or a color similar to the characteristic image is mixed in the area divided by the color area division,
Since the color region is divided into circle regions that are likely to be a person's face, the effect is obtained that a person's face image can be separated with a high probability and only the data of the person's face can be extracted.

【0099】また、請求項2に記載の発明によれば、色
領域に内接する円に接した面積の大きな領域から優先し
て分割するため、人物の顔と色相が同一または近似した
部位が混在していても人物の顔データを高い確率で分離
して抽出することができる、という効果が得られる。
According to the second aspect of the present invention, since a region having a large area in contact with a circle inscribed in a color region is preferentially divided, a portion having the same or similar hue as a person's face is mixed. This has the effect that the face data of a person can be separated and extracted with a high probability.

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

【図1】本発明の実施例のプリンタを示す概略図であ
る。
FIG. 1 is a schematic view showing a printer according to an 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】第1実施例の色領域を分割する過程を示す線図
である。
FIG. 9 is a diagram showing a process of dividing a color area according to the first embodiment.

【図10】本発明の第2実施例の顔推定ルーチンの流れ
図である。
FIG. 10 is a flowchart of a face estimation routine according to a second embodiment of the present invention.

【図11】第2実施例の色領域を分割する過程を示す線
図である。
FIG. 11 is a diagram showing a process of dividing a color area according to the second embodiment.

【図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】図8のステップ172の詳細を示す線図であ
る。
FIG. 15 is a diagram showing details of step 172 in FIG. 8;

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

28 CCDイメージセンサ 30 増幅器 36 顔抽出回路 28 CCD image sensor 30 Amplifier 36 Face extraction circuit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G03B 27/72 - 27/80──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 6 , DB name) G03B 27/72-27/80

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 カラー原画像を多数画素に分割して各
画素を赤光、緑光及び青光の3色に分解して測光し、 測光により得られたデータに基づいて前記カラー原画像
上に色相が同一または類似の色領域を求め、 求めた色領域の境界部位に内接する円または長円を想定
し、かつ面積の大きな円または長円から順に円または長
円の領域によって求めた色領域を分割し、 分割された領域の少なくとも1つを選択して選択された
領域のデータを人物の顔のデータとして抽出する、 人物の顔のデータの抽出方法。
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. A color area with the same or similar hue is determined, a circle or an ellipse inscribed at the boundary of the determined color area is assumed, and the color area is determined by a circle or an ellipse in order from a circle or an ellipse with a large area And extracting data of the selected area as data of the face of a person by selecting at least one of the divided areas and extracting data of the face of the person.
【請求項2】 カラー原画像を多数画素に分割して各
画素を赤光、緑光及び青光の3色に分解して測光し、 測光により得られたデータに基づいて前記カラー原画像
上に色相が同一または類似の色領域を求めると共に、該
色領域の核を求め、 前記 色領域の境界部位に内接する円または長円を想定
し、かつ面積が最大の円または長円の領域を求め、前記色領域内において、前記面積が最大の 円または長円
の領域の外周から外側に突出する所定面積以上の凸領域
を求め、該凸領域を含みかつ前記核を除いた前記色領域
の境界部位に内接する円または長円を想定し、かつ面積
が最大の円または長円の領域によって、前記色領域を分
割し、 分割された領域の少なくとも1つを選択して選択された
領域のデータを人物の顔のデータとして抽出する、 人物の顔のデータの抽出方法。
2. 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 determined by the same or similar color regions Rutotomoni, the
Determine the nucleus of the color region, assuming a circle or an oval inscribed in the boundary region of the color region , and determine a region of a circle or an oval having the largest area, and within the color region, the circle having the largest area Or oval
Region periphery seeking convex area above where the constant area that protrudes outwardly from the said color region excluding the contain and the nucleus of convex regions
Assume a circle or oval inscribed in the boundary area of
Is divided by the area of the largest circle or oval.
A method for extracting face data of a person, wherein at least one of the divided areas is selected and data of the selected area is extracted as face data of the person.
JP32899891A 1991-05-23 1991-12-12 How to extract human face data Expired - Fee Related JP2763221B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP32899891A JP2763221B2 (en) 1991-12-12 1991-12-12 How to extract human face data
US07/886,610 US5309228A (en) 1991-05-23 1992-05-21 Method of extracting feature image data and method of extracting person's face data
EP92108701A EP0514933B1 (en) 1991-05-23 1992-05-22 Method of extracting feature image data
DE69221210T DE69221210T2 (en) 1991-05-23 1992-05-22 Method for extracting characteristic image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32899891A JP2763221B2 (en) 1991-12-12 1991-12-12 How to extract human face data

Publications (2)

Publication Number Publication Date
JPH05165119A JPH05165119A (en) 1993-06-29
JP2763221B2 true JP2763221B2 (en) 1998-06-11

Family

ID=18216465

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32899891A Expired - Fee Related JP2763221B2 (en) 1991-05-23 1991-12-12 How to extract human face data

Country Status (1)

Country Link
JP (1) JP2763221B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6834127B1 (en) 1999-11-18 2004-12-21 Fuji Photo Film Co., Ltd. Method of adjusting output image areas
JP6516321B2 (en) * 2015-02-09 2019-05-22 学校法人日本大学 Shape feature extraction method, shape feature extraction processing device, shape description method and shape classification method

Also Published As

Publication number Publication date
JPH05165119A (en) 1993-06-29

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
EP0514933B1 (en) Method of extracting feature image data
US5463470A (en) Methods of collecting photometric image data and determining light exposure by extracting feature image data from an original image
US7609908B2 (en) Method for adjusting the brightness of a digital image utilizing belief values
US20030142285A1 (en) Method of detecting and correcting the red eye
JPH09171220A (en) Exposure deciding method
JP2695067B2 (en) Method of extracting data of human face and method of determining exposure amount
EP0601363B1 (en) Method of determining amount of exposure
JP3516786B2 (en) Face area extraction method and copy condition determination method
JP2638691B2 (en) Exposure determination method
JP2848749B2 (en) Feature image data extraction method
JPH10268447A (en) Image processor and photographic printer
JP2763221B2 (en) How to extract human face data
JP2638693B2 (en) Feature image data extraction method
JP2638702B2 (en) Feature image data extraction method
JP2642262B2 (en) Exposure determination method
JP2638701B2 (en) Feature image data extraction method
JP2923401B2 (en) Exposure determination method
JP2848750B2 (en) Exposure determination method
JPH09281605A (en) Image recorder
US20040114189A1 (en) Image correction device and image correction program storage medium
JP2638692B2 (en) Method of extracting data of human face and method of determining exposure amount
JPH11339030A (en) Image processing method and image processor
JP2695074B2 (en) Photometric image data collection method and exposure amount determination method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees