JPH04310930A - Exposure arithmetic device for camera - Google Patents

Exposure arithmetic device for camera

Info

Publication number
JPH04310930A
JPH04310930A JP3103833A JP10383391A JPH04310930A JP H04310930 A JPH04310930 A JP H04310930A JP 3103833 A JP3103833 A JP 3103833A JP 10383391 A JP10383391 A JP 10383391A JP H04310930 A JPH04310930 A JP H04310930A
Authority
JP
Japan
Prior art keywords
group
exposure
photometric
photometry
groups
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3103833A
Other languages
Japanese (ja)
Other versions
JP3019458B2 (en
Inventor
Hiroyuki Iwasaki
宏之 岩崎
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.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP3103833A priority Critical patent/JP3019458B2/en
Priority to EP92102271A priority patent/EP0499210B1/en
Priority to DE69231428T priority patent/DE69231428T2/en
Publication of JPH04310930A publication Critical patent/JPH04310930A/en
Priority to US08/309,469 priority patent/US5414487A/en
Application granted granted Critical
Publication of JP3019458B2 publication Critical patent/JP3019458B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Exposure Control For Cameras (AREA)

Abstract

PURPOSE:To offer the exposure arithmetic device for a camera which can always obtain proper exposure. CONSTITUTION:A photometry means 6 which divides a field to be photographed into plural areas, executes the photometry thereof and outputs a photometry signal including information related on the color of an object existing in the respective areas, a grouping means 11 which groups the plural areas on condition that the objects which are mutually adjacent and whose colors are similar exist based on the photometry signal from the photometry means 6, a position arithmetic means for the centroid 14 which respectively obtains the positions of the centroid of the respective grouped groups in the field to be photographed, a brightness value arithmetic means 13 which calculates the brightness values of the respective groups based on the respective photometry signals from the photometry means 6 and an exposure value arithmetic means 15 which excepts the high-brightness group which has the centroid whose position is comparatively high and calculates an exposure value based on the brightness values of the groups other than the high-brightness group are provided.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、AEカメラに用いられ
る露出演算装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an exposure calculation device used in an AE camera.

【0002】0002

【従来の技術】従来の露出演算方式として、例えば特開
平1−231034号公報に開示されたものがある。こ
の方式を図22を用いて説明すると、まず撮影画面(被
写界)50から、その3つの角部を含む略「く」の字型
の領域51をカット(除外)する。この「く」の字型領
域は、撮影画面50に対して2つ設定可能であるが、こ
の2つのうち明るい方の領域をカットの対象とする。次
に残りの領域52から同様に明るい方の「く」の字型領
域53をカットし、以下、このような処理を繰返し行う
。これにより残りの矩形領域は徐々に小さくなってゆき
最も暗い領域56が最後に残る。そして、この最も暗い
領域56の輝度に基づいて露出値を演算する。
2. Description of the Related Art A conventional exposure calculation method is disclosed, for example, in Japanese Patent Laid-Open No. 1-231034. To explain this method using FIG. 22, first, a substantially dogleg-shaped region 51 including three corners is cut (excluded) from the photographic screen (field) 50. Two dogleg-shaped areas can be set for the photographing screen 50, and the brighter of the two is set as the target for cutting. Next, the brighter doglegged region 53 is similarly cut from the remaining region 52, and this process is repeated thereafter. As a result, the remaining rectangular areas gradually become smaller, leaving the darkest area 56 at the end. Then, an exposure value is calculated based on the brightness of this darkest area 56.

【0003】すなわち一般の野外の撮影シーンでは、主
要被写体は比較的暗く背景(例えば空)は明るいものと
考えられるので、上述の処理により主要被写体のおおよ
その位置を把握し、空に相当する部分を除外して主要被
写体の輝度によってのみ露出値を決定する。これにより
主要被写体が適正露出となる可能性を高めることができ
る。
[0003] In other words, in a general outdoor shooting scene, the main subject is relatively dark and the background (for example, the sky) is considered to be bright, so the above processing is used to grasp the approximate position of the main subject and extract the area corresponding to the sky. The exposure value is determined only by the brightness of the main subject. This increases the possibility that the main subject will be properly exposed.

【0004】0004

【発明が解決しようとする課題】しかしながら、上述し
た従来方式では、最後に残る領域56の形状が必ず矩形
となり、一方主要被写体は矩形とは限らないから、正確
に主要被写体の輝度に基づいて露出演算しているとは言
えず、不適正な露出となってしまうおそれがある。また
、主要被写体が影と日なたにまたがって存在する場合に
は、日なたの部分がカットされて露出演算されるので、
この場合も上述と同様に不適性露出となる。
[Problems to be Solved by the Invention] However, in the above-mentioned conventional method, the shape of the last remaining area 56 is always rectangular, while the main subject is not necessarily rectangular. This cannot be said to be a calculation, and there is a risk that the exposure will be inappropriate. Also, if the main subject exists in both shadow and sunlight, the sunlight part will be cut out when calculating the exposure.
In this case as well, inappropriate exposure occurs as described above.

【0005】本発明の目的は、常に適正な露出が得られ
るカメラの露出演算装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an exposure calculation device for a camera that can always obtain proper exposure.

【0006】[0006]

【課題を解決するための手段】一実施例を示す図1に対
応付けて説明すると、本発明は、被写界を複数の領域に
分割して測光し、各領域に存在する被写体の色彩に関連
する情報を含む測光信号をそれぞれ出力する測光手段6
と、測光手段6からの測光信号に基づき、互いに隣接し
かつ類似色の被写体が存在することを条件として複数の
領域をグループ分けするグループ化手段11と、上記グ
ループ分けされた各グループの被写界内における重心位
置をそれぞれ求める重心位置演算手段14と、測光手段
6の各測光信号から各グループの輝度値をそれぞれ演算
する輝度値演算手段13と、比較的高位置の重心を有し
かつ高輝度のグループは除外し、残りのグループの輝度
値に基づいて露出値を演算する露出値演算手段15とを
具備し、これにより上記問題点を解決する。
[Means for Solving the Problems] To explain this in conjunction with FIG. 1 showing an embodiment, the present invention measures light by dividing a field into a plurality of regions, and calculates the color of the object existing in each region. Photometric means 6 each outputting a photometric signal including related information
a grouping means 11 for dividing a plurality of areas into groups based on the photometric signal from the photometry means 6 on the condition that there are objects that are adjacent to each other and have similar colors; A center of gravity calculation means 14 for calculating the position of the center of gravity within the field, a brightness value calculation means 13 for calculating the brightness value of each group from each photometric signal of the photometry means 6, The exposure value calculating means 15 excludes the brightness group and calculates the exposure value based on the brightness values of the remaining groups, thereby solving the above problem.

【0007】[0007]

【作用】測光手段6は、被写界を複数の領域に分割して
測光し、各領域に存在する被写体の色彩に関連する情報
を含む測光信号をそれぞれ出力する。グループ化手段1
1は、測光手段6からの測光信号に基づき、互いに隣接
しかつ類似色の被写体が存在することを条件として複数
の領域をグループ分けする。重心位置演算手段14は、
上記グループ分けされた各グループの被写界内における
重心位置をそれぞれ求め、輝度値演算手段13は、測光
手段6の各測光信号から各グループの輝度値をそれぞれ
演算する。そして露出値演算手段15は、比較的高位置
の重心を有しかつ高輝度のグループは除外し、残りのグ
ループの輝度値に基づいて露出値を演算する。これによ
れば、被写界が複数の領域に分割されるとともに類似色
か否かによってグループ分けされるので、主要被写体が
影と日なたにまたがって存在する場合でも主要被写体を
確実に認識してその形状を正確に判断でき、主要被写体
以外の領域をカットして露出演算が行われるので、常に
適正露出で撮影が行える。
[Operation] The photometering means 6 divides the field into a plurality of regions and measures the light, and outputs a photometry signal containing information related to the color of the object present in each region. Grouping means 1
1 divides a plurality of regions into groups based on a photometric signal from the photometric means 6 on the condition that there are objects that are adjacent to each other and have similar colors. The center of gravity position calculation means 14 is
The position of the center of gravity in the field of view of each of the divided groups is determined, and the brightness value calculation means 13 calculates the brightness value of each group from each photometry signal from the photometry means 6. Then, the exposure value calculation means 15 excludes groups having relatively high centers of gravity and high brightness, and calculates exposure values based on the brightness values of the remaining groups. According to this method, the subject is divided into multiple areas and grouped based on whether they have similar colors, so the main subject can be reliably recognized even if it straddles the shadow and the sunlight. The shape of the subject can be accurately determined, and exposure calculations are performed by cutting out areas other than the main subject, so images can always be taken with the correct exposure.

【0008】なお、本発明の構成を説明する上記課題を
解決するための手段と作用の項では、本発明を分かり易
くするために実施例の図を用いたが、これにより本発明
が実施例に限定されるものではない。
[0008] In the section of the means and effects for solving the above-mentioned problems that explains the structure of the present invention, figures of embodiments are used to make the present invention easier to understand. It is not limited to.

【0009】[0009]

【実施例】図1〜図21により本発明の一実施例を説明
する。図1は本発明に係るカメラの露出演算装置の全体
構成を示すブロック図である。撮影レンズ1を通過して
カメラ本体内に導かれた被写体光は、一部がメインミラ
ー2で上方に反射され、その反射光はファインダ光学系
を構成するピント板3,ペンタプリズム4を介して一部
が不図示の接眼レンズにて観察されるとともに、他の一
部は測光レンズ5を介して測光素子6に受光される。測
光素子6は、後で詳述するように3つの測光出力R,G
,Bを出力し、これらは測光回路7に入力される。測光
回路7は入力された信号に応じて輝度値を演算して出力
する。
[Embodiment] An embodiment of the present invention will be explained with reference to FIGS. 1 to 21. FIG. 1 is a block diagram showing the overall configuration of an exposure calculation device for a camera according to the present invention. Part of the subject light that passes through the photographic lens 1 and is guided into the camera body is reflected upward by the main mirror 2, and the reflected light passes through the focusing plate 3 and pentaprism 4 that constitute the finder optical system. A part of the light is observed through an eyepiece (not shown), and the other part is received by the photometric element 6 via the photometric lens 5. The photometric element 6 has three photometric outputs R and G, as will be described in detail later.
, B, and these are input to the photometry circuit 7. The photometric circuit 7 calculates and outputs a brightness value according to the input signal.

【0010】図2は上記測光素子6の拡大図である。こ
の測光素子6は、縦13、横19の合計247の分割素
子6Aに分割され、各分割素子6Aは、被写界を同様に
247分割した各分割測光領域にそれぞれ対応している
。図3に示すように、各分割素子6Aは更に6a,6b
,6cの3つに分割され、それぞれには、図4(a)に
示すような波長特性R,G,Bを持ったフィルタが装着
されている。これは、例えばカラーテレビに用いられる
3原色フィルタの感度特性と同様のものである。測光回
路7は、各分割素子6Aの出力R,G,B(これが測光
信号に相当する)を用いて、       BV=0.30R+0.59G+0.11
B            ・・・・(1)により図4
(b)に示すような感度分布BVを求める。 このBVが輝度値に相当するものである。
FIG. 2 is an enlarged view of the photometric element 6. This photometric element 6 is divided into a total of 247 divided elements 6A, 13 vertically and 19 horizontally, and each divided element 6A corresponds to each divided photometric area obtained by similarly dividing the field of view into 247. As shown in FIG. 3, each dividing element 6A further includes 6a and 6b.
, 6c, each of which is equipped with a filter having wavelength characteristics R, G, and B as shown in FIG. 4(a). This is similar to the sensitivity characteristics of three primary color filters used in color televisions, for example. The photometry circuit 7 uses the outputs R, G, and B (this corresponds to the photometry signal) of each dividing element 6A, and calculates BV=0.30R+0.59G+0.11.
B...Due to (1), Figure 4
A sensitivity distribution BV as shown in (b) is obtained. This BV corresponds to the brightness value.

【0011】図5は一般に知られているxy色度図を示
し、このxy色度図中に3点GP(Gx,Gy),BP
(Bx,By)RP(Rx,Ry)を測光素子6のフィ
ルタ特性に応じて予め設定するとともに、上記測光信号
R,G,Bから、     x=R/(R+G+B)          
                      ・・・
・(2)    y=G/(R+G+B)      
                         
 ・・・・(3)によってx,yを求めれば、このx,
yが上記3点を結ぶ三角形内のいずれに存在するかによ
って各分割素子6Aに対応する領域の被写体色を知るこ
とができる。
FIG. 5 shows a generally known xy chromaticity diagram, in which three points GP (Gx, Gy), BP
(Bx, By) RP (Rx, Ry) is set in advance according to the filter characteristics of the photometric element 6, and from the photometric signals R, G, B, x=R/(R+G+B)
...
・(2) y=G/(R+G+B)

...If you find x and y using (3), this x,
The subject color of the area corresponding to each dividing element 6A can be known by where in the triangle connecting the above three points y exists.

【0012】すなわち、この三角形を点(0.33,0
.33)を中心としてθだけ回転したXY座標系(図6
)を考えると、三角形の内部は図6に示すように7つの
エリア(白色エリアE1,黄色エリアE2,黄緑色エリ
アE3,緑色エリアE4,青色エリアE5,紫色エリア
E6および赤色エリアE7)に分割できる。ここで、白
色エリアE1を仕切る円はX2+Y2=r2(例えば、
r=1.15)なる式で得られるものであり、また直線
L1,L2は、例えばY=√(3)で、直線L3,L4
はY=−√(3)でそれぞれ得られるものである。また
各エリア中の数字は色番号であり、後述する処理で用い
られる。
In other words, this triangle is defined as a point (0.33,0
.. The XY coordinate system rotated by θ around 33) (Fig. 6
), the interior of the triangle is divided into seven areas (white area E1, yellow area E2, yellow-green area E3, green area E4, blue area E5, purple area E6, and red area E7) as shown in Figure 6. can. Here, the circle that partitions the white area E1 is X2+Y2=r2 (for example,
r=1.15), and the straight lines L1 and L2 are obtained by the formula, for example, Y=√(3), and the straight lines L3 and L4
are obtained by Y=-√(3). Further, the numbers in each area are color numbers, which are used in the processing described later.

【0013】一方、このXY座標系におけるX,Y座標
は、上記x,yを用いて、   X=(x−0.33)cosθ+(y−0.33)
sinθ  ・・・・(4)  Y=−(x−0.33
)sinθ+(y−0.33)cosθ・・・・(5)
(ただし、sinθ=(Ry−By)/√{(Rx−B
x)2+(Ry−By)2})によって演算でき、演算
された座標(X,Y)が例えば黄色エリアE2に含まれ
る場合には、被写体色は黄色であると判断することがで
きる。なお、本明細書中では、任意の式の平方根を√(
式)あるいは√{式}で表すものとする。
[0013] On the other hand, the X and Y coordinates in this XY coordinate system are calculated as follows using the above x and y:
sinθ...(4) Y=-(x-0.33
) sin θ + (y-0.33) cos θ (5)
(However, sin θ=(Ry-By)/√{(Rx-B
x)2+(Ry-By)2}), and if the calculated coordinates (X, Y) are included in the yellow area E2, for example, it can be determined that the subject color is yellow. Note that in this specification, the square root of any formula is expressed as √(
(formula) or √{formula}.

【0014】また図6では、便宜上三角形を正三角形と
したが、フィルタの特性により正三角形とならない場合
もある。さらに上述した分割素子6Aは図3(A)に示
すように左から6a,6b,6cのように分割されてい
るので、厳密に言えば6a〜6cが同一部分を測光して
いるとは言えない。しかしながら、図2のように測光素
子の分割が非常に細かいため、6a,6b,6cの位置
のずれ量は非常に小さく、同一部分を測光しているとみ
なしても不都合はない。さらに、素子6Aの分割形状を
図3(B)に6A’で示すように千鳥格子状にすれば、
色の相違による測光部分のずれをさらに小さくすること
ができる。
Further, in FIG. 6, the triangles are shown as equilateral triangles for convenience, but they may not be equilateral triangles depending on the characteristics of the filter. Furthermore, the above-mentioned dividing element 6A is divided into 6a, 6b, and 6c from the left as shown in FIG. do not have. However, since the division of the photometric elements is very fine as shown in FIG. 2, the amount of deviation in the positions of 6a, 6b, and 6c is very small, and there is no problem even if it is assumed that the same portion is being photometered. Furthermore, if the divided shape of the element 6A is made into a houndstooth pattern as shown by 6A' in FIG. 3(B),
It is possible to further reduce deviations in the photometric portion due to color differences.

【0015】また図1中の10は制御回路であり、この
制御回路10は、上記測光回路7からの測光信号に基づ
き、互いに隣接しかつ類似色の被写体が存在することを
条件として上記複数の分割素子6A、すなわち測光領域
をグループ分けするグループ化部11と、グループ化部
11の出力からグループ数を求めるグループ数算出部1
2と、測光回路7の出力に基づいてグループ化された各
グループの平均輝度値を求める輝度値算出部13と、各
グループの被写界における重心位置をそれぞれ求める重
心位置算出部14と、これら各部からの出力に基づいて
露出値を演算する露出値演算部15とから構成される。 8は露出制御回路であり、露出演算部14で演算された
露出値に基づいて絞り21やシャッタ22を駆動して撮
影を行う。
Reference numeral 10 in FIG. 1 is a control circuit, and this control circuit 10 controls the above-mentioned plurality of objects based on the photometry signal from the photometry circuit 7 on the condition that there are objects adjacent to each other and of similar colors. A grouping unit 11 that divides the dividing element 6A, that is, a photometric area into groups, and a group number calculation unit 1 that calculates the number of groups from the output of the grouping unit 11.
2, a brightness value calculation unit 13 that calculates the average brightness value of each group based on the output of the photometry circuit 7, a barycenter position calculation unit 14 that calculates the center of gravity position in the field of each group, and The exposure value calculating section 15 calculates an exposure value based on outputs from each section. Reference numeral 8 denotes an exposure control circuit, which drives the aperture 21 and shutter 22 based on the exposure value calculated by the exposure calculation section 14 to perform photographing.

【0016】次に図7〜図19のフローチャートに基づ
いて制御回路10による露出演算制御の手順を説明する
。図7はメインのプログラムを、図8〜図19は図7の
各処理の詳細を示すサブル−チンプログラムをそれぞれ
示しており、不図示のレリーズ釦が操作されると図7の
プログラムが起動される。まずステップS1では、グル
ープの個数をカウントするための変数nを零リセットし
、次いで色番号代入処理(ステップS2)、グループ化
処理(ステップS3)、グループ数算出処理(ステップ
S4)、重心位置演算処理(ステップS5)、輝度値算
出処理(ステップS6)、露出値演算処理(ステップS
7)、露出制御処理(ステップS8)を順に行い、その
後、処理を終了する。
Next, the procedure of exposure calculation control by the control circuit 10 will be explained based on the flowcharts shown in FIGS. 7 to 19. 7 shows the main program, and FIGS. 8 to 19 show subroutine programs showing details of each process in FIG. 7. When a release button (not shown) is operated, the program in FIG. 7 is started. Ru. First, in step S1, a variable n for counting the number of groups is reset to zero, followed by color number assignment processing (step S2), grouping processing (step S3), group number calculation processing (step S4), and gravity center position calculation. processing (step S5), brightness value calculation processing (step S6), exposure value calculation processing (step S
7), the exposure control process (step S8) is performed in order, and then the process ends.

【0017】図8および図9は上記ステップS2の色番
号代入処理の詳細を示すサブル−チンフローチャートで
あり、この処理および次のグループ化処理はグループ化
部11による制御である。その処理内容は、上述した2
47個の分割測光素子6Aにそれぞれ対応する被写体色
(色番号)を変数C(h,v)に代入するものであり、
まず図8のステップS201で変数h,vをそれぞれ「
1」にリセットする。次いでステップS202では、複
数の測光素子6Aの測光信号のうちh,vに対応する測
光信号R(h,v),G(h,v),B(h,v)を測
光回路7を介して読み込み、上記(2)式〜(4)式に
よりX,Yを演算する。
FIGS. 8 and 9 are subroutine flowcharts showing details of the color number assignment process in step S2, and this process and the next grouping process are controlled by the grouping section 11. The processing details are as described in 2 above.
The object color (color number) corresponding to each of the 47 divided photometric elements 6A is substituted into the variable C (h, v),
First, in step S201 of FIG. 8, the variables h and v are set to "
1”. Next, in step S202, the photometric signals R(h,v), G(h,v), B(h,v) corresponding to h and v among the photometric signals of the plurality of photometric elements 6A are sent via the photometric circuit 7. Read and calculate X and Y using equations (2) to (4) above.

【0018】ここで、hは図2の分割測光素子6Aの横
方向の番地を示し、左から右にかけて1,2,・・・1
9まで、vは同様に縦方向の番地を示し、下から上にか
け1,2,・・・13までである。すなわち、例えば最
も左下の測光素子6Aに対応する測光信号はR(1,1
),G(1,1),B(1,1)であり、最も右上の測
光素子6Aに対応する測光信号はR(19,13),G
(19,13),B(19,13)である。
Here, h indicates the address in the horizontal direction of the divided photometric element 6A in FIG.
Similarly, v indicates the address in the vertical direction, from bottom to top, 1, 2, . . . , 13. That is, for example, the photometric signal corresponding to the lower left photometric element 6A is R(1,1
), G(1,1), B(1,1), and the photometric signal corresponding to the upper right photometric element 6A is R(19,13), G
(19, 13), B(19, 13).

【0019】次にステップS203では、X2+Y2<
r2 か否かを判定する。この判定は、上記X,Yが図6に示
す円、すなわち白色エリアE1内にあるか否かの判定で
ある。ステップS203が肯定されるとステップS20
4でC(h,v)に白色を示す色番号「1」を代入する
。ステップS203が否定されるとステップS205に
進み、Y<√(3)XかつX≧0であるか否かを判定す
る。これは、X,Yが黄色エリアE2に含まれているか
否かの判定であり、肯定されるとステップS206でC
(h,v)に黄色を示す色番号「2」を代入し、否定さ
れるとステップS207に進む。
Next, in step S203, X2+Y2<
It is determined whether or not r2. This determination is a determination as to whether or not the above-mentioned X and Y are within the circle shown in FIG. 6, that is, the white area E1. If step S203 is affirmed, step S20
In step 4, the color number "1" indicating white is assigned to C(h,v). If step S203 is negative, the process proceeds to step S205, and it is determined whether Y<√(3)X and X≧0. This is a determination as to whether or not X and Y are included in the yellow area E2. If it is affirmative, step S206
The color number "2" indicating yellow is assigned to (h, v), and if the result is negative, the process advances to step S207.

【0020】ステップS207では、Y≧√(3)Xか
つY≧−√(3)Xか否かにより、X,Yが黄緑色エリ
アE3に含まれているか否かを判定し、肯定されるとス
テップS208でC(h,v)に黄緑色を示す色番号「
3」を代入し、否定されるとステップS209に進む。 ステップS209では、Y<−√(3)XかつX≧0か
否かにより、X,Yが緑色エリアE4に含まれているか
否かを判定し、肯定されるとステップS210でC(h
,v)に黄緑色を示す色番号「4」を代入し、否定され
るとステップS211に進む。
In step S207, it is determined whether or not X and Y are included in the yellow-green area E3 based on whether Y≧√(3)X and Y≧−√(3)X, and the result is affirmative. In step S208, C(h,v) is assigned a color number "yellow-green".
3'' is substituted, and if the result is negative, the process advances to step S209. In step S209, it is determined whether or not X and Y are included in the green area E4 based on whether Y<-√(3)X and X≧0. If affirmative, C(h
, v) is substituted with the color number "4" indicating yellow-green, and if the result is negative, the process advances to step S211.

【0021】ステップS211では、X<0かつY≧√
(3)Xか否かにより、X,Yが青色エリアE5に含ま
れているか否かを判定し、肯定されるとステップS21
2でC(h,v)に青色を示す色番号「5」を代入し、
否定されるとステップS213に進む。ステップS21
3では、Y<√(3)XかつY<−√(3)Xか否かに
より、X,Yが紫色エリアE6に含まれているか否かを
判定し、肯定されるとステップS214でC(h,v)
に紫色を示す色番号「6」を代入し、否定されるとステ
ップS215に進む。ステップS215では、C(h,
v)に赤色を示す色番号「7」を代入する。そして、ス
テップS204,S206,S208,S210,S2
12,S214,S215の後は図9のステップS21
6に進む。
[0021] In step S211, X<0 and Y≧√
(3) Determine whether or not X and Y are included in the blue area E5 based on whether or not
In step 2, assign the color number "5" indicating blue to C(h,v),
If negative, the process advances to step S213. Step S21
3, it is determined whether or not X and Y are included in the purple area E6 depending on whether Y<√(3)X and Y<−√(3)X, and if it is affirmative, C is (h,v)
The color number "6" indicating purple is assigned to , and if the answer is negative, the process advances to step S215. In step S215, C(h,
Assign the color number "7" indicating red to v). Then, steps S204, S206, S208, S210, S2
12, S214, and S215 are followed by step S21 in FIG.
Proceed to step 6.

【0022】この色番号の代入は、図9のステップS2
17でhを1だけ歩進しつつステップS216でh=1
9が判定されるまで、すなわち1列の分割素子6Aにつ
いてまず行われ、ステップS216が肯定されるとh=
1としvを1だけ歩進して次の列の分割素子6Aについ
て同様に行われる。そして、ステップS218でv=1
3が判定されると、つまり247個全ての分割素子6A
に対して色番号の代入が行われると図7の処理にリター
ンし、ステップS3のグループ化処理を行う。
Substitution of this color number is performed in step S2 of FIG.
17, h is incremented by 1, and h=1 in step S216.
9 is determined, that is, first for one column of dividing elements 6A, and when step S216 is affirmed, h=
1 and increments v by 1, and the same process is performed for the next column of dividing elements 6A. Then, in step S218, v=1
3 is determined, that is, all 247 divided elements 6A
When the color number is assigned to , the process returns to the process of FIG. 7, and the grouping process of step S3 is performed.

【0023】図10〜図15はグループ化処理の詳細を
示すサブル−チンフローチャートである。図10におい
て、ステップS21では、変数Cに色番号「1」を初期
値としてセットし、次いでステップS22ではh,vを
初期値「1」にリセットする。ステップS23では、C
(h,v)=Cか否かを判定し、否定されるとステップ
S31に進み、肯定されるとステップS24に進む。ス
テップS24でv=1が判定され、次いでステップS2
5でh=1が判定されると、すなわち最下段の最も左側
の測光素子6Aに対する処理の場合にはステップS26
のグループ更新処理に進む。
FIGS. 10 to 15 are subroutine flowcharts showing details of the grouping process. In FIG. 10, in step S21, the color number "1" is set as an initial value in the variable C, and then in step S22, h and v are reset to the initial value "1". In step S23, C
It is determined whether (h, v)=C or not. If negative, the process proceeds to step S31, and if affirmative, the process proceeds to step S24. v=1 is determined in step S24, and then in step S2
If h=1 is determined in step S26, that is, in the case of processing for the leftmost photometric element 6A at the bottom stage, step S26
Proceed to group update processing.

【0024】またステップS25でh≠1が判定された
場合、すなわち最下段ではあるが最も左側でない測光素
子6Aに対する処理の場合にはステップS27のグルー
プ判別処理1に進む。さらにステップS24でv≠1が
判定され、次いでステップS28でh=1が判定された
場合、すなわち最下段以外の最も左側の測光素子6Aに
対する処理の場合にはステップS29のグループ判別処
理2に進み、ステップS28でh≠1が判定された場合
、すなわち最下段以外でかつ最も左側でない測光素子6
Aに対する処理の場合にはステップS30のグループ判
別処理3に進む。
If it is determined in step S25 that h≠1, that is, if the process is for the photometric element 6A that is at the bottom but not the leftmost, the process proceeds to group discrimination process 1 in step S27. Furthermore, if v≠1 is determined in step S24, and then h=1 is determined in step S28, that is, in the case of processing for the leftmost photometric element 6A other than the bottom row, the process proceeds to group discrimination processing 2 of step S29. , if h≠1 is determined in step S28, that is, the photometric element 6 that is not on the bottom row and is not on the leftmost side
In the case of processing for A, the process advances to group discrimination processing 3 in step S30.

【0025】ここで、この図10の処理では、左隣およ
び真下の測光領域の被写体が当該領域の被写体と類似色
であるか否かを判定して類似色であれば同一グループと
する処理を行っている。しかし、例えば最下段の最も左
側の素子の場合は比較するものがなく、また最下段では
あるが最も左側でない場合には左隣としか比較できず、
さらに最下段以外の最も左側の場合には真下としか比較
できず、最下段以外でかつ最も左側でない場合に始めて
左隣および真下と比較が行える。したがって、上述の如
く分割測光素子6Aの位置によってグループ判別処理は
異なるのである。
Here, in the process shown in FIG. 10, it is determined whether the subjects in the photometric areas to the left and directly below have similar colors to the subjects in the area, and if they are similar in color, they are grouped into the same group. Is going. However, for example, if it is the leftmost element on the bottom row, there is nothing to compare it to, and if it is on the bottom row but not the leftmost element, it can only be compared with its neighbor on the left.
Furthermore, if it is the leftmost position other than the bottom row, it can only be compared with the one directly below, and only when it is not the bottom row and the leftmost row, it can be compared with the adjacent left side and directly below. Therefore, as described above, the group discrimination processing differs depending on the position of the divided photometric element 6A.

【0026】図11はステップS26のグループ更新処
理の詳細を示している。まずステップS41でグループ
数をカウントするための変数nを「1」だけ歩進すると
ともに、フラグFLG(n)を1とする。次いでステッ
プS42では、変数N(h,v)にnを代入するととも
に、変数K(n)に「1」を代入し、その後、処理は図
10に戻る。ここで、上記フラグFLG(n)は、グル
ープ番号nが有効であるか無効であるかを判定するため
の変数であり、1の場合は有効、0の場合は無効である
。このフラグを用いる理由は後で詳述する。またN(h
,v)はh,v番地の分割測光素子6Aがどのグループ
に属するかを表す変数(以下、グループ番号)であり、
K(n)は、グループnの要素数、すなわちそのグルー
プを構成する素子の数を表す変数である。
FIG. 11 shows details of the group update process in step S26. First, in step S41, a variable n for counting the number of groups is incremented by "1", and a flag FLG(n) is set to 1. Next, in step S42, n is assigned to the variable N(h,v), and "1" is assigned to the variable K(n), and then the process returns to FIG. 10. Here, the flag FLG(n) is a variable for determining whether group number n is valid or invalid; when it is 1, it is valid; when it is 0, it is invalid. The reason for using this flag will be explained in detail later. Also N(h
, v) are variables (hereinafter referred to as group numbers) representing which group the divided photometric elements 6A at addresses h and v belong to,
K(n) is a variable representing the number of elements in group n, that is, the number of elements constituting the group.

【0027】図12はステップS27(図10)のグル
ープ判別処理1の詳細を示している。これは、上述した
ように当該測光素子が最下段であり、かつ最も左側では
ない場合(左隣とのみ比較可能)の処理であり、まずス
テップS51で当該素子6Aに関する色番号C(h,y
)が図2における1つ左隣の素子6Aの色番号C(h−
1,y)と同一であるか否かを判定する。ステップS5
1が肯定されるとステップS53でN(h,v)=N(
h−1,v)とする。これは、当該素子とその左隣の素
子とを同一のグループ番号とする処理である。またこの
ステップS53では、グループnの要素数K(N(h,
v))を「1」だけ歩進し、その後、図10の処理にリ
ターンする。一方、ステップS51が否定されると、ス
テップS52で上述した図11のグループ更新処理を行
って図10の処理にリターンする。
FIG. 12 shows details of the group discrimination processing 1 in step S27 (FIG. 10). As described above, this process is performed when the photometric element is at the lowest level and not at the leftmost position (comparison is possible only with the adjacent left side). First, in step S51, the color number C (h, y
) is the color number C (h-
1, y). Step S5
If 1 is affirmed, N(h,v)=N(
h-1,v). This is a process in which the element and the element to the left of it are given the same group number. In addition, in this step S53, the number of elements in group n is K(N(h,
v)) is incremented by "1", and then returns to the process of FIG. On the other hand, if step S51 is negative, the group update process of FIG. 11 described above is performed in step S52, and the process returns to the process of FIG. 10.

【0028】図13はステップS29(図10)のグル
ープ判別処理2の詳細を示している。これは、当該分割
測光素子6Aが最下段以外であり、かつ最も左側である
場合(真下とのみ比較可能)の処理であり、まずステッ
プS61で当該素子6Aに関する色番号C(h,v)が
1つ下の素子6Aの色番号C(h,v−1)と同一であ
るか否かを判定する。ステップS61が肯定されるとス
テップS63でN(h,v)=N(h,v−1)とする
。これは、当該素子6Aに対する被写体色が真下の素子
6Aのそれと同一であるとする処理である。またこのス
テップS63では、グループnの要素数K(N(h,v
))を「1」だけ歩進し、その後、図10の処理にリタ
ーンする。一方、ステップS61が否定されると、ステ
ップS62で上述した図11のグループ更新処理を行っ
て図10の処理にリターンする。
FIG. 13 shows details of the group discrimination processing 2 in step S29 (FIG. 10). This is a process when the divided photometric element 6A is not at the bottom and is at the leftmost position (comparison is possible only with the one directly below). First, in step S61, the color number C (h, v) regarding the element 6A is It is determined whether the color number is the same as the color number C (h, v-1) of the element 6A one below. If step S61 is affirmed, N(h,v)=N(h,v-1) is set in step S63. This is a process in which the subject color for the element 6A is the same as that of the element 6A directly below. Also, in this step S63, the number of elements in group n is K(N(h, v
)) by "1", and then returns to the process of FIG. On the other hand, if step S61 is negative, the group update process of FIG. 11 described above is performed in step S62, and the process returns to the process of FIG. 10.

【0029】図14はステップS30のグループ判別処
理3の詳細を示している。これは、当該測光素子が最下
段以外であり、かつ最も左側でない場合(左隣および真
下と比較可能)の処理であり、まずステップS71で当
該素子に関する色番号C(h,v)が1つ左隣の素子の
色番号C(h−1,v)と同一であるか否かを判定する
。ステップS61が否定されるとステップS72に進み
、上記色番号C(h,v)が1つ下の素子の色番号C(
h,v−1)と同一であるか否かを判定する。ステップ
S72が否定されるとステップS73でグループ更新処
理(図11)を行って図10の処理にリターンし、肯定
されるとステップS74に進む。ステップS74では、
N(h,v)=N(h,v−1)とするとともに、グル
ープnの要素数K(N(h,v))を「1」だけ歩進す
る。また、ステップS71が肯定された場合にはステッ
プS75でステップS72と同様の判定を行い、否定さ
れるとステップS85でN(h,v)=N(h−1,v
)とするとともに、グループnの要素数K(N(h,v
))を「1」だけ歩進する。
FIG. 14 shows details of the group discrimination processing 3 in step S30. This is a process when the photometric element is not on the bottom row and is not on the leftmost side (comparable with the adjacent one on the left and directly below). First, in step S71, the color number C (h, v) for the element is set to one. It is determined whether the color number is the same as the color number C(h-1,v) of the element on the left. If step S61 is negative, the process proceeds to step S72, where the color number C(h,v) of the element one below is the color number C(
h, v-1). If step S72 is negative, group update processing (FIG. 11) is performed in step S73 and the process returns to the process of FIG. 10; if affirmative, the process advances to step S74. In step S74,
N(h,v)=N(h,v-1), and the number of elements in group n, K(N(h,v)), is incremented by "1". Further, if step S71 is affirmed, the same determination as step S72 is made in step S75, and if negative, in step S85, N(h,v)=N(h-1,v
), and the number of elements in group n is K(N(h, v
)) is incremented by "1".

【0030】さらにステップS75が肯定されるとステ
ップS76に進み、当該素子6Aの左隣の素子6Aのグ
ループ番号と真下の素子6Aのグループ番号とが等しい
か否か、すなわちN(h,v)=N(h,v−1)か否
かを判定する。ステップS76が肯定されるとステップ
S86でN(h,v)=N(h−1,v)とするととも
に、K(N(h,v))=K(N(h−1,v))+1
とする。またステップS76が否定されるとステップS
77に進み、N(h,v)>N(h,v−1)か否かを
判定する。
Further, if step S75 is affirmed, the process proceeds to step S76, and it is determined whether the group number of the element 6A to the left of the element 6A is equal to the group number of the element 6A directly below it, that is, N(h,v). =N(h,v-1). If step S76 is affirmed, N(h,v)=N(h-1,v) is set in step S86, and K(N(h,v))=K(N(h-1,v)) +1
shall be. Further, if step S76 is denied, step S76 is denied.
The process proceeds to step 77, and it is determined whether N(h,v)>N(h,v-1).

【0031】このステップS77の判断処理を行う理由
について図20を用いて以下に説明する。今、例えば被
写界中に略コ字状の被写体(例えば赤色)が存在し、図
20に示すように斜線部分の素子6Aの出力が類似色(
赤色)であった場合を考える。本実施例では、上述の如
くh=1,v=1の素子6Aから右側に向かってスキャ
ンしてゆくので、h=5,v=4の素子6Aに達したと
きにまず色の異なる被写体と判断されて新しいグループ
番号が付与され、次にh=9,v=4の素子6Aに達し
たときに更に色の異なる被写体と判断されて別のグルー
プ番号が付与される。すなわち、h=5,v=4の被写
体とh=9,v=4の被写体とは上部でつながっており
実は同一の被写体(同一のグループとされるべきもの)
であるが、このことはh=9,v=9の素子6Aに達し
て始めて判明することであり、それまでは異なる被写体
(グループ)としてカウントされている。したがって、
h=9,v=9に達してそのことが判明(ステップS7
6が否定される)した時点でグループを合体させ、グル
ープ番号を補正する必要がある。
The reason for performing the judgment process in step S77 will be explained below using FIG. 20. Now, for example, there is a roughly U-shaped object (for example, red) in the field, and as shown in FIG.
Consider the case where the color is red). In this embodiment, as described above, scanning starts from the element 6A with h=1 and v=1 toward the right side, so when the element 6A with h=5 and v=4 is reached, it first detects objects of different colors. This is determined and a new group number is assigned, and when the next element 6A with h=9 and v=4 is reached, it is determined that the object is of a different color and another group number is assigned. In other words, the subject with h=5, v=4 and the subject with h=9, v=4 are connected at the top and are actually the same subject (should be considered the same group)
However, this becomes clear only when the element 6A with h=9 and v=9 is reached, and until then it is counted as a different subject (group). therefore,
It becomes clear that h=9 and v=9 are reached (step S7
6 is denied), it is necessary to combine the groups and correct the group number.

【0032】本実施例では、この場合に小さい方のグル
ープ番号に補正するようにしているので、まずステップ
S77の判断を行う。そしてこれが否定されるとステッ
プS78でN(h,v)=N(h−1,v)およびK(
N(h,v))=K(N(h−1,v))+1を行い、
次いでステップS79でフラグFLG(N(h,v−1
))を「0」とする。すなわち、小さい方のグループ番
号N(h−1,v)を採用するので、大きい方のグルー
プ番号N(h,v−1)は不要となり、これを無効とす
る。次いでステップS80では、変数KNにN(h,v
−1)を、変数RNにN(h,v)をそれぞれ代入して
ステップS84のグループ番号補正処理に進む。ここで
、変数KNは上記グループ合体により消去せしめる方の
グループ番号であり、変数RNは残す方のグループ番号
をそれぞれ表す。
In this embodiment, in this case, the group number is corrected to the smaller one, so the determination in step S77 is first performed. If this is denied, N(h,v)=N(h-1,v) and K(
N(h,v))=K(N(h-1,v))+1,
Next, in step S79, the flag FLG(N(h,v-1
)) is set to "0". That is, since the smaller group number N(h-1, v) is adopted, the larger group number N(h, v-1) is unnecessary and is invalidated. Next, in step S80, N(h, v
-1) and N(h, v) to the variable RN, respectively, and the process proceeds to the group number correction process of step S84. Here, the variable KN is the group number to be deleted by the group merging, and the variable RN is the group number to be left.

【0033】一方、上記ステップS77が肯定された場
合には、ステップS81でN(h,v)=N(h,v−
1)およびK(N(h,v))=K(N(h,v−1)
)+1を行い、次いでステップS82でフラグFLG(
N(h−1,v))を「0」とする。次いでステップS
83では、変数KNにN(h−1,v)を、変数RNに
N(h,v)をそれぞれ代入してステップS84のグル
ープ番号補正処理に進む。
On the other hand, if the above step S77 is affirmative, then in step S81 N(h,v)=N(h,v−
1) and K(N(h,v))=K(N(h,v−1)
)+1, and then in step S82 the flag FLG(
N(h-1,v)) is set to "0". Then step S
In step S83, N(h-1,v) is substituted for the variable KN, and N(h,v) is substituted for the variable RN, and the process proceeds to the group number correction process of step S84.

【0034】図15はこのグループ番号補正処理の詳細
を示すサブル−チンフローチャートである。まずステッ
プS91でK(RN)=K(RN)+K(KN)とした
後、K(KN)=0とする。すなわち、現在の要素数K
(RN)に新しく合体したグループの要素数K(KN)
を加えて新たな要素数K(RN)とするとともに、それ
以降はK(KN)は不要であるので零リセットする。
FIG. 15 is a subroutine flowchart showing details of this group number correction process. First, in step S91, K(RN)=K(RN)+K(KN), and then K(KN)=0. That is, the current number of elements K
Number of elements K (KN) of the group newly merged into (RN)
is added to obtain a new number of elements K(RN), and since K(KN) is no longer needed after that, it is reset to zero.

【0035】次にステップS92では変数Kh,Kvを
それぞれ「1」にリセットし、ステップS93ではN(
Kh,Kv)が消去せしめる方のグループ番号KNか否
かを判定する。否定されるとステップS95に進み、肯
定されるとステップS94でN(Kh,Kv)に残す方
のグループ番号RNを代入してステップS95に進む。 このような処理は、ステップS95〜S100を経てス
テップS99が肯定されるまで、すなわち現在処理を行
っている素子6A(Kh=h,Kv=v)まで繰返し行
われる。そして、ステップS99が肯定されると図14
の処理にリターンし、次いで図10の処理にリターンす
る。
Next, in step S92, the variables Kh and Kv are each reset to "1", and in step S93, N(
Kh, Kv) is the group number KN to be erased. If negative, the process proceeds to step S95, and if affirmative, the remaining group number RN is substituted into N(Kh, Kv) in step S94, and the process proceeds to step S95. Such processing is repeated through steps S95 to S100 until step S99 is affirmed, that is, up to the element 6A (Kh=h, Kv=v) currently undergoing processing. Then, if step S99 is affirmed, FIG.
The process then returns to the process in FIG. 10.

【0036】以上説明した図10のステップS23〜S
30の処理は、ステップS31〜S34を経てステップ
S33が肯定されるまで、すなわち全ての分割素子6A
について行われ、ステップS33が肯定されるとステッ
プS35に進む。そして、ステップS36で色番号Cを
歩進しつつステップS35が肯定されるまで、すなわち
全ての色番号について行われる。その後、ステップS3
5が肯定されると図7の処理にリターンする。
Steps S23 to S in FIG. 10 explained above
30 is performed until step S33 is affirmed through steps S31 to S34, that is, all the divided elements 6A
If step S33 is affirmative, the process advances to step S35. Then, in step S36, the color number C is incremented until step S35 is affirmed, that is, for all color numbers. After that, step S3
If 5 is affirmed, the process returns to the process of FIG.

【0037】以上がグループ化処理の詳細内容である。 この処理によれば、互いに隣接しかつ類似色の素子6A
が1つのグループとしてグループ分けされ、このような
グループが被写界の色によって複数個(被写界全体が同
一色であれば1個)形成される。そして、いずれのグル
ープに属するかを表すグループ番号が各素子に対して付
与されるとともに、各グループに対してその要素数が付
与される。ここで、247個の分割測光素子6Aは、上
述したように被写界を分割した247個の測光領域に対
応しているので、上記分割測光素子6Aのグループ化は
、測光領域のグループ化に相当することになる。
The above is the detailed content of the grouping process. According to this process, elements 6A that are adjacent to each other and have similar colors
are grouped as one group, and a plurality of such groups are formed depending on the color of the scene (one group if the entire scene is the same color). A group number indicating which group it belongs to is given to each element, and the number of elements is given to each group. Here, the 247 divided photometric elements 6A correspond to the 247 photometric areas obtained by dividing the field as described above, so the grouping of the divided photometric elements 6A is similar to the grouping of the photometric areas. It will be equivalent.

【0038】また図16はステップS4(図7)のグル
ープ数算出処理の詳細を示すサブル−チンフローチャー
トであり、この処理および後述する重心位置算出処理は
重心位置算出部14による制御である。ここで、上述の
処理によってグループ数は変数nに代入されているが、
これは無効となったグループもカウントされている。そ
こでこの処理は、無効のグループを除いた真のグループ
数を算出する。
FIG. 16 is a subroutine flowchart showing details of the group number calculation process in step S4 (FIG. 7), and this process and the gravity center position calculation process to be described later are controlled by the gravity center position calculation section 14. Here, the number of groups has been assigned to the variable n by the above process, but
This also includes groups that have become invalid. Therefore, this process calculates the true number of groups excluding invalid groups.

【0039】図16において、まずステップS101で
変数iを「1」、真のグループ数をカウントするための
変数gnを零に初期化する。次いでステップS102で
は、フラグFLG(i)が1か否か、すなわちiに対応
するグループが有効か否かを判定する。無効であればス
テップS104に進み、有効であればステップS103
でgnを「1」だけ歩進してステップS104に進む。 ステップS104ではi=nか否かを判定し、否定され
るとステップS105でiを歩進してステップS102
に戻り、肯定されると図7の処理にリターンする。以上
によりgnに真のグループ数が代入される。
In FIG. 16, first, in step S101, a variable i is initialized to "1" and a variable gn for counting the true number of groups is initialized to zero. Next, in step S102, it is determined whether the flag FLG(i) is 1, that is, whether the group corresponding to i is valid. If invalid, proceed to step S104; if valid, step S103
Then, gn is incremented by "1" and the process proceeds to step S104. In step S104, it is determined whether or not i=n, and if it is negative, i is incremented in step S105, and step S102
If the answer is affirmative, the process returns to the process shown in FIG. As described above, the true number of groups is assigned to gn.

【0040】図17はステップS5(図7)の重心位置
算出処理の詳細を示すサブル−チンフローチャートであ
る。図17において、まずステップS111でiを1に
初期化し、次いでステップS112でフラグFLG(h
)が1か否かを判定する。1でなければ(無効であれば
)ステップS121に進み、1であれば(有効であれば
)ステップS113に進む。ステップS113では、h
=1,v=1,hadd=0,vadd=0に初期リセ
ットし、次いでステップS114では、N(h,v)=
iか否か、すなわち当該素子のグループ番号がiか否か
を判定する。
FIG. 17 is a subroutine flowchart showing details of the gravity center position calculation process in step S5 (FIG. 7). In FIG. 17, first, in step S111, i is initialized to 1, and then in step S112, flag FLG (h
) is 1 or not. If it is not 1 (if invalid), the process proceeds to step S121, and if it is 1 (if valid), the process proceeds to step S113. In step S113, h
=1, v=1, hadd=0, vadd=0, and then in step S114, N(h,v)=
i, that is, whether the group number of the element is i.

【0041】ステップS114が否定されるとステップ
S116に進み、肯定されるとステップS115で、h
add=hadd+h,vadd=vadd+vを行っ
てステップS116に進む。このような処理はステップ
S118でv=13が判定されるまで、つまり全ての素
子について行われ、その後、ステップS120でSh(
i)=Int(hadd/K(i)+0.5)Sv(i
)=Int(vadd/K(i)+0.5)によりiに
対応するグループの被写界に対する重心位置の座標を演
算する。ここで、K(i)はそのグループの要素数、ま
たIntは切捨てを示している。
If step S114 is negative, the process proceeds to step S116; if affirmative, in step S115, h
add=hadd+h, vadd=vadd+v, and proceed to step S116. Such processing is performed until v=13 is determined in step S118, that is, for all elements, and then, in step S120, Sh(
i)=Int(hadd/K(i)+0.5)Sv(i
)=Int(vadd/K(i)+0.5), calculate the coordinates of the center of gravity position for the field of the group corresponding to i. Here, K(i) is the number of elements in the group, and Int indicates truncation.

【0042】ステップS121では、i=nか否か、す
なわち全てのグループに対して重心位置が演算されたか
否かを判定し、否定されるとステップS122でiを歩
進してステップS112に戻り、肯定されると図7の処
理に戻る。
[0042] In step S121, it is determined whether or not i=n, that is, whether or not the center of gravity positions have been calculated for all groups.If negative, i is incremented in step S122 and the process returns to step S112. If , is affirmed, the process returns to the process of FIG.

【0043】図18はステップS6(図7)の輝度値算
出処理の詳細を示すサブル−チンフローチャートであり
、これは、輝度算出部13による制御である。図18に
おいて、まずステップS131ではiを1に初期リセッ
トし、次いでステップS132ではフラグFLG(i)
が1か否かを判定する。1でなければステップS141
に進み、1であればステップS133に進む。ステップ
S133では、h=1,v=1,BVadd=0に初期
リセットし、次いでステップS134でN(h,v)=
iか否かを判定する。
FIG. 18 is a subroutine flowchart showing details of the brightness value calculation process in step S6 (FIG. 7), which is controlled by the brightness calculation section 13. In FIG. 18, first, in step S131, i is initially reset to 1, and then in step S132, flag FLG(i)
Determine whether or not is 1. If not 1, step S141
If it is 1, the process advances to step S133. In step S133, h=1, v=1, BVadd=0, and then in step S134, N(h, v)=
Determine whether or not i.

【0044】ステップS134が否定されるとステップ
S136に進み、肯定されるとステップS135でBV
add=BVadd+BV(h,v)によりBVadd
を求める。ここで、BV(h,v)は各測光領域の輝度
値を示し、各分割測光素子6Aからの測光信号B,G,
Rに基づいて上記(1)式により測光回路7にて演算さ
れた値である。
If step S134 is negative, the process proceeds to step S136, and if affirmative, the BV is determined in step S135.
BVadd by add=BVadd+BV(h,v)
seek. Here, BV (h, v) indicates the brightness value of each photometric area, and the photometric signals B, G,
This is a value calculated by the photometry circuit 7 based on R using the above equation (1).

【0045】このような処理はステップS138でv=
13が判定されるまで、つまり全ての素子6Aについて
行われ、その後、ステップS140で、BVG(i)=
BVadd/K(i) によりiに対応するグループの平均輝度値BVG(i)
を演算する。ステップS141では、i=nか否か、す
なわち全てのグループに対して平均輝度値BVG(i)
が演算されたか否かを判定し、否定されるとステップS
142でiを歩進してステップS132に戻り、肯定さ
れると図7の処理にリターンする。
Such processing is performed in step S138 when v=
13, that is, for all the elements 6A, and then in step S140, BVG(i)=
Average brightness value BVG(i) of the group corresponding to i by BVadd/K(i)
Calculate. In step S141, it is determined whether or not i=n, that is, the average brightness value BVG(i) for all groups.
It is determined whether or not has been calculated, and if it is negative, step S
In step S142, i is incremented and the process returns to step S132. If affirmative, the process returns to the process of FIG.

【0046】図19はステップS7(図7)の露出値演
算処理の詳細を示すサブル−チンフローチャートであり
、これは、露出値演算部15による制御である。図19
において、まずステップS151ではグループ数gnが
1か否かを判定する。gn=1ということは被写界全体
が同一色の場合であり、この場合にはステップS152
でi=1とし、次いでステップS153に進む。
FIG. 19 is a subroutine flowchart showing details of the exposure value calculation process in step S7 (FIG. 7), which is controlled by the exposure value calculation section 15. Figure 19
First, in step S151, it is determined whether the number of groups gn is 1 or not. gn=1 means that the entire scene has the same color, and in this case step S152
In step S153, i=1 is set.

【0047】ステップS153ではでフラグFLG(i
)が「1」か否かを判定し、肯定されると、BVa=B
VG(i)により露出値BVaを求めて図7の処理にリ
ターンし、否定されるとステップS155に進む。 ステップS155では、i=nか否かを判定し、否定さ
れるとステップS156でiを歩進してステップS15
3に戻り、肯定されると図7の処理にリターンする。す
なわちこの場合には、被写界全体の平均輝度値が露出値
BVaとなる。
In step S153, the flag FLG(i
) is “1” or not, and if affirmed, BVa=B
The exposure value BVa is determined using VG(i) and the process returns to the process of FIG. 7, and if negative, the process proceeds to step S155. In step S155, it is determined whether or not i=n, and if it is negative, i is incremented in step S156, and step S15
Returning to step 3, if affirmative, the process returns to the process of FIG. That is, in this case, the average brightness value of the entire field becomes the exposure value BVa.

【0048】一方、ステップS151が否定された場合
、すなわちグループ数が2以上の場合にはステップS1
57に進み、i=1,j=1,BVadd=0に初期リ
セットする。次いでステップS158では、フラグFL
G(i)が「1」か否かを判定し、否定されるとステッ
プS162に進み、肯定されるとステップS159に進
む。ステップS159では、iに対応するグループの重
心位置のv座標Sv(i)が、各グループの重心のv座
標Sv(1),Sv(2),・・・,Sv(n)の最大
値か否かを判定する。ステップS159が否定されると
ステップS160に進み、変数jを「1」だけ歩進する
とともに、iに対応するグループの平均輝度BVG(i
)を現在のBVaddに加算して新たなBVaddとし
てステップS162に進む。
On the other hand, if step S151 is negative, that is, if the number of groups is 2 or more, step S1
The process proceeds to step 57 and initial reset is performed to i=1, j=1, and BVadd=0. Next, in step S158, the flag FL
It is determined whether G(i) is "1" or not. If negative, the process proceeds to step S162; if affirmative, the process proceeds to step S159. In step S159, whether the v coordinate Sv(i) of the center of gravity position of the group corresponding to i is the maximum value of the v coordinates Sv(1), Sv(2), ..., Sv(n) of the center of gravity of each group. Determine whether or not. If step S159 is denied, the process proceeds to step S160, in which the variable j is incremented by "1" and the average brightness BVG(i
) is added to the current BVadd and the process proceeds to step S162 as a new BVadd.

【0049】またステップS159が肯定された場合に
はステップS161に進み、BVG(i)が各グループ
の平均輝度値BVG(1),BVG(2),・・・,B
VG(n)の最大値か否かを判定する。ステップS16
1が否定されると上記ステップS160に進み、肯定さ
れるとステップS162に進む。ステップS162では
i=nか否かを判定し、否定されるとステップS163
でiを歩進してステップS158に戻り、肯定されると
ステップS164で、 BVa=BVadd/j により露出値BVaを求めて図7の処理にリターンする
If step S159 is affirmative, the process proceeds to step S161, where BVG(i) is determined as the average luminance value BVG(1), BVG(2), . . . , B
It is determined whether or not the maximum value of VG(n) is reached. Step S16
If 1 is negative, the process proceeds to step S160, and if affirmative, the process proceeds to step S162. In step S162, it is determined whether or not i=n, and if it is negative, step S163
Then, i is incremented and the process returns to step S158. If the answer is affirmative, the exposure value BVa is determined in step S164 as follows: BVa=BVadd/j, and the process returns to the process of FIG.

【0050】すなわち上記ステップS157〜S164
の処理によれば、被写界における重信位置が最も高く、
かつ最も高輝度のグループがある場合にはそれが除外さ
れ、残りのグループの平均輝度の平均値が露出値BVa
となる。
[0050] That is, the above steps S157 to S164
According to the processing, the most important position in the scene is the highest,
And if there is a group with the highest brightness, it is excluded and the average value of the average brightness of the remaining groups is the exposure value BVa.
becomes.

【0051】その後、図7のステップS8では、露出制
御回路8に露出制御信号を出力し、上記ステップS7で
決定された露出値BVaに基づいて絞り21およびシャ
ッタ22を駆動して露出制御(撮影)を行わしめ、その
後、処理を終了させる。
Thereafter, in step S8 of FIG. 7, an exposure control signal is output to the exposure control circuit 8, and the aperture 21 and shutter 22 are driven based on the exposure value BVa determined in step S7 to perform exposure control (shooting). ) and then terminate the process.

【0052】以上が制御回路10による制御の手順であ
る。この手順をまとめると、レリーズ操作に伴ってまず
各分割測光素子6Aからの測光信号に基づいて、互いに
隣接しかつ類似色の被写体が存在することを条件として
複数の分割素子6A、すなわち複数の測光領域がグルー
プ分けされ、次いで各グループの被写界内における重心
位置および平均輝度値がそれぞれ求められる。そして重
心位置が最も高位置であり、かつ最も高輝度のグループ
が存在する場合には、そのグループは除外され、残りの
グループの輝度値に基づいて露出値が演算され、その露
出値に基づいて撮影が行われる。
The above is the control procedure by the control circuit 10. To summarize this procedure, with the release operation, first, based on the photometric signal from each divided photometric element 6A, a plurality of divided elements 6A, that is, a plurality of photometric The regions are divided into groups, and then the center of gravity position and average brightness value within the field of view of each group are determined. If there is a group with the highest center of gravity and the highest brightness, that group is excluded and the exposure value is calculated based on the brightness values of the remaining groups. Photography will take place.

【0053】一例として例えば図21(a)に示すよう
な被写界を考えると、測光素子6は図21(b)に示す
ようにグループ1〜グループ5にグループ分けされる。 そしてこの場合、空の部分に対応するグループ1は重心
位置が最も高く、かつ最も高輝度であるので、このグル
ープ1は除外され、残りのグループ2〜5の平均露出値
の平均値から露出値が求められる。このように被写界を
複数の領域に分割するとともに類似色か否かによってグ
ループ分を行うようにしたので、主要被写体が影と日な
たにまたがって存在する場合でも主要被写体を確実に認
識してその形状を正確に判断でき、主要被写体以外の領
域をカットして露出演算が行われ、常に適正露出で撮影
が行える。
As an example, considering a field as shown in FIG. 21(a), the photometric elements 6 are divided into groups 1 to 5 as shown in FIG. 21(b). In this case, group 1, which corresponds to the sky, has the highest center of gravity and the highest brightness, so group 1 is excluded, and the exposure value is calculated from the average of the average exposure values of the remaining groups 2 to 5. is required. In this way, the subject is divided into multiple areas and grouped based on whether or not they have similar colors, making it possible to reliably recognize the main subject even if the main subject straddles the shadow and the sunlight. The shape of the subject can be accurately determined, and exposure calculations are performed by cutting out areas other than the main subject, so that images can always be taken with the correct exposure.

【0054】以上の実施例の構成において、測光素子6
が測光手段を、グループ化部11がグループ化手段11
と、重心位置算出部14が重心位置演算手段を、輝度値
算出部13が輝度値演算手段を、露出値演算部15が露
出値演算手段15をそれぞれ構成する。
In the configuration of the above embodiment, the photometric element 6
is the photometric means, and the grouping section 11 is the grouping means 11.
The gravity center position calculation section 14 constitutes a gravity center position calculation means, the brightness value calculation section 13 constitutes a brightness value calculation means, and the exposure value calculation section 15 constitutes an exposure value calculation means 15.

【0055】なお以上では、図18の輝度値算出処理で
各グループの平均輝度値を求めるようにしたが、平均輝
度値以外の例えば最小輝度値やグループの面積を加味し
た輝度値を求めるようにしてもよい。また露出値も各グ
ループの平均輝度に限定されない。さらに、重心位置が
最も高位置であり、かつ最も高輝度のグループを除外す
るようにしたが、重心位置が予め設定された所定位置よ
り高く、かつ輝度値が所定値よりも高いグループを除外
するようにしてもよい。さらにまた、実施例はカメラを
横位置に構えた場合について説明したので、v座標が大
きい素子ほど高位置にあると判断したが、カメラを縦位
置に構えたときには、h座標の大小により素子の高低を
判断するようにすればよい。なおカメラが縦位置か横位
置かの判定は、例えば周知の水銀センサにより検出する
ようにすればよい。また素子(測光領域)の分割方式も
実施例に限定されない。
In the above, the average brightness value of each group is calculated in the brightness value calculation process shown in FIG. 18, but it is also possible to calculate a brightness value other than the average brightness value, for example, taking into account the minimum brightness value and the area of the group. It's okay. Furthermore, the exposure value is not limited to the average brightness of each group. Furthermore, the group with the highest center of gravity position and the highest brightness is excluded, but the group with the center of gravity higher than a preset predetermined position and the brightness value higher than a predetermined value is excluded. You can do it like this. Furthermore, since the example explained the case where the camera was held in the horizontal position, it was determined that the larger the v-coordinate of the element, the higher the position. However, when the camera is held in the vertical position, the element All you have to do is judge whether it is high or low. Note that whether the camera is in the vertical or horizontal position may be determined by, for example, a well-known mercury sensor. Furthermore, the method of dividing elements (photometric regions) is not limited to the embodiment.

【0056】[0056]

【発明の効果】本発明によれば、被写界を複数の領域に
分割して測光し、各領域に存在する被写体の色彩に関連
する情報を含む測光信号に基づき、互いに隣接しかつ類
似色の被写体が存在することを条件として複数の領域を
グループ分けするとともに、各グループの被写界内にお
ける重心位置および輝度値をそれぞれ求め、比較的高位
置の重心を有しかつ高輝度のグループは除外して、残り
のグループの輝度値に基づいて露出値を演算するように
したので、主要被写体が影と日なたにまたがって存在す
る場合でも主要被写体を確実に認識してその形状を正確
に判断でき、主要被写体以外の領域をカットして露出演
算が行うことにより常に適正露出で撮影が行える。
According to the present invention, the field is divided into a plurality of regions and photometry is performed, and based on the photometry signal that includes information related to the colors of the objects present in each region, adjacent and similar colors are detected. The multiple areas are divided into groups on the condition that there are objects in the image, and the center of gravity position and brightness value within the field of each group are determined. Since the exposure value is calculated based on the brightness values of the remaining groups, it is possible to reliably recognize the main subject and accurately determine its shape even if the main subject straddles the shadow and sunlight. By cutting out areas other than the main subject and performing exposure calculations, you can always take pictures with the correct exposure.

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

【図1】本発明の一実施例に係るカメラの露出演算装置
の構成図である。
FIG. 1 is a configuration diagram of an exposure calculation device for a camera according to an embodiment of the present invention.

【図2】測光素子の構成を示す拡大図である。FIG. 2 is an enlarged view showing the configuration of a photometric element.

【図3】上記測光素子を構成する分割素子の2構成例を
示す拡大図である。
FIG. 3 is an enlarged view showing two configuration examples of divided elements constituting the photometric element.

【図4】測光素子に取付けられたフィルタの特性を示す
図である。
FIG. 4 is a diagram showing the characteristics of a filter attached to a photometric element.

【図5】xy色度図である。FIG. 5 is an xy chromaticity diagram.

【図6】各色エリアの位置関係を示す図である。FIG. 6 is a diagram showing the positional relationship of each color area.

【図7】処理手順を示すメインのフローチャートである
FIG. 7 is a main flowchart showing a processing procedure.

【図8】色番号代入処理の詳細を示すサブル−チンフロ
ーチャートである。
FIG. 8 is a subroutine flowchart showing details of color number assignment processing.

【図9】図8に続くフローチャートである。FIG. 9 is a flowchart following FIG. 8;

【図10】グループ化処理の詳細を示すサブル−チンフ
ローチャートである。
FIG. 10 is a subroutine flowchart showing details of grouping processing.

【図11】グループ更新処理の詳細を示すサブル−チン
フローチャートである。
FIG. 11 is a subroutine flowchart showing details of group update processing.

【図12】グループ判別処理1の詳細を示すサブル−チ
ンフローチャートである。
FIG. 12 is a subroutine flowchart showing details of group discrimination processing 1;

【図13】グループ判別処理2の詳細を示すサブル−チ
ンフローチャートである。
FIG. 13 is a subroutine flowchart showing details of group discrimination processing 2;

【図14】グループ判別処理3の詳細を示すサブル−チ
ンフローチャートである。
FIG. 14 is a subroutine flowchart showing details of group discrimination processing 3;

【図15】グループ番号補正処理の詳細を示すサブル−
チンフローチャートである。
[Figure 15] Sub-routine showing details of group number correction processing
This is a chin flow chart.

【図16】グループ数算出処理の詳細を示すサブル−チ
ンフローチャートである。
FIG. 16 is a subroutine flowchart showing details of group number calculation processing.

【図17】重心位置算出処理の詳細を示すサブル−チン
フローチャートである。
FIG. 17 is a subroutine flowchart showing details of gravity center position calculation processing.

【図18】輝度値算出処理の詳細を示すサブル−チンフ
ローチャートである。
FIG. 18 is a subroutine flowchart showing details of brightness value calculation processing.

【図19】露出値演算処理の詳細を示すサブル−チンフ
ローチャートである。
FIG. 19 is a subroutine flowchart showing details of exposure value calculation processing.

【図20】上記グループ判別の一例を説明する説明図で
ある。
FIG. 20 is an explanatory diagram illustrating an example of the above group discrimination.

【図21】実施例の動作の一例を説明する説明図である
FIG. 21 is an explanatory diagram illustrating an example of the operation of the embodiment.

【図22】従来の露出演算方式を説明する図である。FIG. 22 is a diagram illustrating a conventional exposure calculation method.

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

6  測光素子 6A  分割測光素子 7  測光回路 8  露出制御回路 10  制御回路 11  グループ化部 12  グループ数算出部 13  輝度値算出部 14  重心位置算出部 15  露出値演算部 6 Photometric element 6A split photometry element 7 Photometry circuit 8 Exposure control circuit 10 Control circuit 11 Grouping section 12 Group number calculation section 13 Brightness value calculation unit 14 Center of gravity position calculation section 15 Exposure value calculation section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  被写界を複数の領域に分割して測光し
、各領域に存在する被写体の色彩に関連する情報を含む
測光信号をそれぞれ出力する測光手段と、該測光手段か
らの測光信号に基づき、互いに隣接しかつ類似色の被写
体が存在することを条件として前記複数の領域をグルー
プ分けするグループ化手段と、前記グループ分けされた
各グループの被写界内における重心位置をそれぞれ求め
る重心位置演算手段と、前記測光手段の各測光信号から
各グループの輝度値をそれぞれ演算する輝度値演算手段
と、比較的高位置の重心を有しかつ高輝度のグループは
除外し、残りのグループの輝度値に基づいて露出値を演
算する露出値演算手段とを具備することを特徴とするカ
メラの露出演算装置。
1. A photometric means for dividing a field into a plurality of regions and measuring the light, and outputting a photometric signal containing information related to the color of the subject present in each region, and a photometric signal from the photometric means. a grouping means for dividing the plurality of regions into groups based on the condition that objects adjacent to each other and having similar colors exist, and a center of gravity for determining the center of gravity position within the field of view of each of the divided groups. a position calculation means; a brightness value calculation means for calculating the brightness value of each group from each photometric signal of the photometry means; and a brightness value calculation means for calculating a brightness value of each group from each photometric signal of the photometry means, excluding a group having a relatively high center of gravity and high brightness, and calculating a brightness value of the remaining groups. 1. An exposure calculation device for a camera, comprising: exposure value calculation means for calculating an exposure value based on a luminance value.
JP3103833A 1991-02-13 1991-04-09 Camera with photometric device Expired - Lifetime JP3019458B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP3103833A JP3019458B2 (en) 1991-04-09 1991-04-09 Camera with photometric device
EP92102271A EP0499210B1 (en) 1991-02-13 1992-02-11 Light metering calculation apparatus
DE69231428T DE69231428T2 (en) 1991-02-13 1992-02-11 Exposure calculator
US08/309,469 US5414487A (en) 1991-02-13 1994-09-22 Light metering calculation apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3103833A JP3019458B2 (en) 1991-04-09 1991-04-09 Camera with photometric device

Publications (2)

Publication Number Publication Date
JPH04310930A true JPH04310930A (en) 1992-11-02
JP3019458B2 JP3019458B2 (en) 2000-03-13

Family

ID=14364428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3103833A Expired - Lifetime JP3019458B2 (en) 1991-02-13 1991-04-09 Camera with photometric device

Country Status (1)

Country Link
JP (1) JP3019458B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5497215A (en) * 1993-03-30 1996-03-05 Nikon Corporation Camera photometry system
US5576799A (en) * 1993-03-30 1996-11-19 Nikon Corporation Camera photometry system
US7650068B2 (en) 2006-02-14 2010-01-19 Nikon Corporation Camera and method of imaging
US7667735B2 (en) 2002-03-01 2010-02-23 Sony Corporation Image pickup device and image processing method having a mask function

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5497215A (en) * 1993-03-30 1996-03-05 Nikon Corporation Camera photometry system
US5576799A (en) * 1993-03-30 1996-11-19 Nikon Corporation Camera photometry system
US7667735B2 (en) 2002-03-01 2010-02-23 Sony Corporation Image pickup device and image processing method having a mask function
US7650068B2 (en) 2006-02-14 2010-01-19 Nikon Corporation Camera and method of imaging

Also Published As

Publication number Publication date
JP3019458B2 (en) 2000-03-13

Similar Documents

Publication Publication Date Title
CN102547116B (en) Focus detection and control method thereof
CN108174172B (en) Image pickup method and device, computer readable storage medium and computer equipment
JPS62189456A (en) Main picture detection method and photographic printing exposure decision method employing said detection
JPH0640198B2 (en) Method for detecting main image and method for determining exposure amount for photo printing using the same
US11683594B2 (en) Systems and methods for camera exposure control
JP4029174B2 (en) Camera with composition advice function
JP5092565B2 (en) Imaging apparatus, image processing apparatus, and program
CN108063926A (en) Image processing method and device, computer readable storage medium and computer equipment
CN108063934B (en) Image processing method and device, computer readable storage medium and computer device
JPH073385Y2 (en) Photometric device
CN108063933B (en) Image processing method and device, computer readable storage medium and computer device
JP3019458B2 (en) Camera with photometric device
CN108156434B (en) Image processing method and device, computer readable storage medium and computer equipment
JPH07110429A (en) Camera provided with object tracking function
CN109040598B (en) Image processing method, image processing device, computer-readable storage medium and electronic equipment
JP7455656B2 (en) Image processing device, image processing method, and program
JP2005196252A (en) Object region detecting device, photographing device, target region detecting method and computer program
TWI764484B (en) Dual sensor imaging system and calibration method thereof
JP3010748B2 (en) Camera exposure calculation device
JPH0553169A (en) Exposure arithmetic device
CN108111831B (en) Photographing method, imaging apparatus, computer-readable storage medium, and computer device
JP3106542B2 (en) Camera photometer
JP4413385B2 (en) Photometric device
EP0505205A1 (en) Exposure calculating apparatus for camera
JP2002135802A (en) Signal processor, image pickup device, signal processing method and storage medium

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120107

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120107

Year of fee payment: 12