JP2001061071A - Image correction device and image correction method - Google Patents

Image correction device and image correction method

Info

Publication number
JP2001061071A
JP2001061071A JP2000181947A JP2000181947A JP2001061071A JP 2001061071 A JP2001061071 A JP 2001061071A JP 2000181947 A JP2000181947 A JP 2000181947A JP 2000181947 A JP2000181947 A JP 2000181947A JP 2001061071 A JP2001061071 A JP 2001061071A
Authority
JP
Japan
Prior art keywords
eye
red
image
gold
extracted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000181947A
Other languages
Japanese (ja)
Inventor
Masabumi Yamazaki
正文 山崎
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.)
Olympus Corp
Original Assignee
Olympus Optical 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 Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP2000181947A priority Critical patent/JP2001061071A/en
Publication of JP2001061071A publication Critical patent/JP2001061071A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Analysis (AREA)
  • Control Of Exposure In Printing And Copying (AREA)
  • Image Processing (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain an image correction device that can surely extract a red-eye or gold-eye area with a simple algorithm. SOLUTION: The image correction device is provided with a display means that displays an image of an object photographed by emitting a strobe light onto the object, an image data selection means 46 that designates a prescribed area including eyes in the image displayed on the display means through a manual operation, an arithmetic means 50 that extracts a red-eye or gold-eye from a prescribed area designated by the manual operation and a red-eye correction means 51 that corrects the extracted red-eye or gold-eye.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は画像修正装置及び画
像修正方法に関し、特に、人物等の被写体をストロボ撮
影したときに生ずる赤目を検出し、これを正常な目に修
復する装置及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image correcting apparatus and an image correcting method, and more particularly to an apparatus and a method for detecting a red eye generated when a subject such as a person is photographed by a strobe light and restoring the red eye.

【0002】[0002]

【従来の技術】特開平−64532号は被写体が低輝度
であり、かつ電子閃光装置を用いた撮影のときには赤目
が発生する撮影条件であると判断し、その旨を示す赤目
情報をフィルムの余白に記録し、プリンタ側では赤目情
報を検出した駒についてはプリント後に加熱修正処理す
る方法を開示している。
2. Description of the Related Art Japanese Patent Application Laid-Open No. 64532/1994 discloses that a subject having a low luminance and a photographing condition in which red-eye occurs when photographing using an electronic flash device are determined, and red-eye information indicating this is printed on the film margin. The printer discloses a method of performing a heating correction process after printing a frame in which red-eye information is detected.

【0003】また、特開平2−114253号は、焼付
け露光に際し、写真原稿の赤目部分に照射される焼付け
光の光量を調節する方法を開示している。
[0003] Japanese Patent Application Laid-Open No. 2-114253 discloses a method of adjusting the amount of printing light applied to a red-eye portion of a photographic original during printing exposure.

【0004】さらに、特開平2−144528号は、撮
影レンズ光軸とストロボ放電管の中心との間の距離信号
と、被写体距離との関係が所定の関係になったとき赤目
発生警告信号を発する方法を開示している。
Further, Japanese Patent Application Laid-Open No. 2-144528 discloses a red-eye occurrence warning signal when the distance signal between the optical axis of the photographing lens and the center of the strobe discharge tube and the subject distance have a predetermined relationship. A method is disclosed.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記し
た特開平2−64532号においては、修正処理につい
ては詳細には記載していないが、プリント後に加筆修正
しているので修正に時間がかかったり、かなり高度のテ
クニックが必要である。
However, in the above-mentioned Japanese Patent Application Laid-Open No. 2-64532, the correction processing is not described in detail. Requires fairly sophisticated techniques.

【0006】また、上記した特開平2−114253号
においては、写真全体の面積に対し、赤目部分は大変小
さい領域であり、従来方法でこの部分(赤目部分)だけ
に対して色修正を施すことは大変難しかった。
In Japanese Patent Laid-Open No. 2-114253, the red-eye portion is a very small area with respect to the entire area of the photograph, and color correction is performed only on this portion (red-eye portion) by a conventional method. Was very difficult.

【0007】さらに、上記した特開平2−144528
号においては、ストロボ内蔵式カメラのようにストロボ
とカメラを一体化してコンパクトにすると、どうしても
赤目発生の確率が高くなる欠点があった。
Further, the above-mentioned Japanese Patent Application Laid-Open No. 2-144528
As described above, when the strobe and the camera are integrated and made compact as in a camera with a built-in strobe, there is a disadvantage that the probability of occurrence of red-eye is inevitably increased.

【0008】本発明はこのような課題に着目してなされ
たものであり、その目的とするところは、簡単なアルゴ
リズムでしかも確実に赤目又は金目領域を抽出すること
が可能な画像修正装置及び画像修正方法を提供すること
にある。
The present invention has been made in view of such a problem, and an object of the present invention is to provide an image correcting apparatus and an image correcting method capable of reliably extracting a red-eye or gold-eye area with a simple algorithm. It is to provide a correction method.

【0009】[0009]

【課題を解決するための手段】上記の目的を達成するた
めに、第1の発明は画像修正装置であって、ストロボ光
を照射し撮影された画像を表示する表示手段と、該表示
手段に表示された画像のうち目を含む所定領域を手動操
作により指定する手段と、上記手動操作により指定され
た所定領域から赤目又は金目を抽出する手段と、上記抽
出された赤目又は金目を修正する手段とを有する。
According to a first aspect of the present invention, there is provided an image correcting apparatus, comprising: display means for irradiating a strobe light to display a photographed image; Means for manually specifying a predetermined area including an eye in the displayed image; means for extracting red eye or gold eye from the predetermined area specified by the manual operation; means for correcting the extracted red eye or gold eye And

【0010】また、第2の発明は、第1の発明に係る画
像修正装置において、赤目又は金目を含む所定領域を手
動操作により輪郭線で囲む。
According to a second aspect of the present invention, in the image correction apparatus according to the first aspect, a predetermined area including a red eye or a gold eye is manually surrounded by a contour line.

【0011】また、第3の発明は、第1の発明に係る画
像修正装置において、所定領域から抽出された画像デー
タを色度を表すデータに変換し、該変換された色度デー
タに基づいて赤目又は金目を抽出する。
According to a third aspect, in the image correction apparatus according to the first aspect, the image data extracted from the predetermined area is converted into data representing chromaticity, and based on the converted chromaticity data. Extract red or gold eyes.

【0012】また、第4の発明は、第3の発明に係る画
像修正装置において、上記色度データのうち赤色成分が
所定の値以上の領域を赤目と判定する。
According to a fourth aspect, in the image correction apparatus according to the third aspect, an area of the chromaticity data in which a red component is equal to or more than a predetermined value is determined as a red eye.

【0013】また、第5の発明は、第3の発明に係る画
像修正装置において、上記色度データのうち赤色成分及
び緑成分が所定の値以上の領域を金目と判定する。
According to a fifth aspect of the present invention, in the image correction apparatus according to the third aspect, an area in which the red component and the green component of the chromaticity data are equal to or larger than a predetermined value is determined to be gold.

【0014】また、第6の発明は、第1の発明に係る画
像修正装置において、3色成分の比に基づいて赤目を抽
出する。
According to a sixth aspect, in the image correction apparatus according to the first aspect, red eyes are extracted based on a ratio of three color components.

【0015】また、第7の発明は、第1の発明に係る画
像修正装置において、3色成分の比及び赤色成分の値に
基づいて赤目を抽出する。
According to a seventh aspect, in the image correction apparatus according to the first aspect, red eyes are extracted based on a ratio of three color components and a value of a red component.

【0016】また、第8の発明は、画像修正方法であっ
て、ストロボ光を照射された画像を表示手段に表示する
ステップと、該表示手段に表示された画像のうち目を含
む所定領域を手動操作により指定するステップと、上記
手動操作により指定された所定領域から赤目又は金目を
抽出するステップと、上記抽出された赤目又は金目を修
正するステップとを有する。
An eighth aspect of the present invention is an image correction method, comprising the steps of displaying an image irradiated with strobe light on a display means, and displaying a predetermined area including an eye in the image displayed on the display means. The method includes a step of specifying by manual operation, a step of extracting a red eye or a gold eye from a predetermined region specified by the manual operation, and a step of correcting the extracted red or gold eye.

【0017】[0017]

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

【0018】図1は本実施形態の赤目修正装置が適用さ
れる赤目修正システムの構成を示す図である。同図にお
いて、光源1の白色光は拡散板2、フイルムキャリア3
内のフィルム4、レンズ5を通ってカラーラインセンサ
6に導かれる。フイルムの像はレンズ5によりカラーラ
インセンサ6に結像される。カラーラインセンサ6の出
力信号は、増幅回路7を介してA/Dコンバータ8によ
りデジタル量に変換される。
FIG. 1 is a diagram showing the configuration of a red-eye correction system to which the red-eye correction device of the present embodiment is applied. In FIG. 1, a white light from a light source 1 is diffused by a diffusion plate 2
It is guided to the color line sensor 6 through the film 4 and the lens 5 inside. An image of the film is formed on a color line sensor 6 by a lens 5. The output signal of the color line sensor 6 is converted into a digital value by an A / D converter 8 via an amplifier circuit 7.

【0019】このデジタル変換された信号はI/Oポー
ト9を介してワークステーション10によりメモリ11
に画像データとして記憶される。センサ走査装置12は
カラーラインセンサ6をこのセンサ6と直交する方向に
走査し、1駒分の画像データを得る。ビデオRAM13
には上記画像データを所定の濃度・色に変換したモニタ
表示用のデータが記憶されている。上記表示データは表
示手段としてのモニタ14により表示される。
The digitally converted signal is sent to a memory 11 by a workstation 10 through an I / O port 9.
Is stored as image data. The sensor scanning device 12 scans the color line sensor 6 in a direction orthogonal to the sensor 6 to obtain one frame of image data. Video RAM 13
Stores monitor display data obtained by converting the image data into a predetermined density and color. The display data is displayed on a monitor 14 as a display unit.

【0020】磁気ヘッド15は後述するようにフィルム
の磁気記録部に記録されたデータを読み取るための磁気
ヘッドである。磁気ヘッド15により読み取られた磁気
データは信号処理回路16により増幅、波形整形され、
I/Oポート9を介してワークステーション10内のメ
モリに記憶される。尚、17はフィルム4を給送するフ
イルム送りローラである。また18はノッチ検出用セン
サである。以上によりスキャナ19が構成される。
The magnetic head 15 is a magnetic head for reading data recorded on a magnetic recording portion of a film as described later. The magnetic data read by the magnetic head 15 is amplified and waveform-shaped by the signal processing circuit 16,
It is stored in a memory in the workstation 10 via the I / O port 9. A film feed roller 17 feeds the film 4. Reference numeral 18 denotes a notch detection sensor. Thus, the scanner 19 is configured.

【0021】LSIカード20は、補正データやノッチ
数、各ノッチ間の間隔データ等が記録されている。上記
ワークステーション10は、スキャナ19から得られる
各種情報に基いて後述するプリントのカラーバランス制
御や温度制御等の種々の演算や制御を行う。更にプリン
タ21は、ワークステーション10で演算された情報に
基づき、最適なプリントをコピーするための装置であ
る。
The LSI card 20 stores correction data, the number of notches, data on the intervals between the notches, and the like. The workstation 10 performs various calculations and controls, such as print color balance control and temperature control, which will be described later, based on various information obtained from the scanner 19. Further, the printer 21 is a device for copying an optimum print based on information calculated by the workstation 10.

【0022】図2はカメラの全体制御ブロック図であ
る。同図において22はカメラ全体の制御,演算を実行
するCPUである。23は露出制御の為の測光用セン
サ、24は測光用センサ23のアナログ出力信号を増幅
する増幅回路、25は増幅回路24のアナログ出力信号
をデジタル信号に変換するためのADコンバータであ
る。
FIG. 2 is an overall control block diagram of the camera. In the figure, reference numeral 22 denotes a CPU for controlling and calculating the entire camera. 23 is a photometric sensor for exposure control, 24 is an amplifier circuit for amplifying the analog output signal of the photometric sensor 23, and 25 is an AD converter for converting the analog output signal of the amplifier circuit 24 to a digital signal.

【0023】デジタル値に変換された測光データはCP
U22内のメモリに記憶され、撮影情報入力回路26に
より入力されたフィルム感度SV、撮影レンズ絞り値A
V、露出補正値CVとの間でアペックス演算が実行され
シャッタスピードTVが求められる。27は測距用光学
系である。測距の原理は公知の撮影レンズの瞳を分割し
て得られる2像の間隔より求めるもので、測距用光学系
27はフィールドレンズのセパレータレンズ等により構
成される。
The photometric data converted to digital values is CP
The film sensitivity SV and the photographic lens aperture value A stored in the memory in the U22 and input by the photographic information input circuit 26
An apex calculation is performed between V and the exposure correction value CV to obtain a shutter speed TV. 27 is an optical system for distance measurement. The principle of distance measurement is obtained from the distance between two images obtained by dividing the pupil of a known photographing lens, and the distance measurement optical system 27 is constituted by a field lens separator lens and the like.

【0024】28はCCD、29はCCD駆動回路であ
る。駆動回路29のタイミング信号に従って逐次送られ
るCCD出力信号は増幅回路30により増幅されたの
ち、ADコンバーター31によりデジタル値に変換され
る。デジタル値に変換されたCCD出力信号はCPU2
2内のメモリに記憶される。CPU22では上記CCD
出力信号に基づいて、撮影レンズのデフォーカス量が演
算される。
Reference numeral 28 denotes a CCD, and 29 denotes a CCD drive circuit. The CCD output signal sequentially transmitted according to the timing signal of the drive circuit 29 is amplified by the amplifier circuit 30 and then converted to a digital value by the AD converter 31. The CCD output signal converted to the digital value is output to the CPU 2
2 is stored in the memory. In the CPU 22, the above CCD
A defocus amount of the photographing lens is calculated based on the output signal.

【0025】またCPU22では被写体までの距離lも
演算される。CPU22は上記デフォーカス量に基づい
てレンズ駆動回路32を駆動し、撮影レンズを焦点位置
にセットする。なお、以上の焦点検出動作はAF開始ス
イッチ32が閉じたことをCPU22が検知してから行
われる。33はストロボ装置である。CPU22からス
トロボ装置33に対しては信号S1が接続される。S1
はストロボ装置33にストロボ発光を開始させるための
信号である。上記アペックス演算の結果に応じてストロ
ボを発光するか否かが制御される。
The CPU 22 also calculates the distance 1 to the subject. The CPU 22 drives the lens driving circuit 32 based on the defocus amount, and sets the taking lens to a focal position. The above focus detection operation is performed after the CPU 22 detects that the AF start switch 32 is closed. 33 is a flash device. A signal S1 is connected from the CPU 22 to the strobe device 33. S1
Is a signal for causing the strobe device 33 to start strobe light emission. Whether or not to fire a strobe is controlled according to the result of the apex calculation.

【0026】34はシャッタスピードなどの撮影情報や
カメラのモードを表示する液晶表示部である。35は液
晶表示部34を駆動する液晶駆動回路である。ストロボ
を発光し、かつ被写体までの距離が所定値より短かいと
きは、赤目の発生する可能性が高いとしてフイルム36
の所定部の磁気記録部37にその旨を表わす情報を記録
する。信号処理回路58、磁気ヘッド39は磁気情報を
書き込むための装置である。
Reference numeral 34 denotes a liquid crystal display section for displaying photographing information such as a shutter speed and a camera mode. Reference numeral 35 denotes a liquid crystal drive circuit that drives the liquid crystal display unit 34. When the strobe light is emitted and the distance to the subject is shorter than a predetermined value, it is determined that the possibility of occurrence of red eyes is high.
Is recorded in the magnetic recording section 37 of the predetermined section. The signal processing circuit 58 and the magnetic head 39 are devices for writing magnetic information.

【0027】図3に磁気記録部37のあるフイルム36
の平面図を示す。40はレリーズスイッチである。レリ
ーズスイッチ40が閉じると、シャッタ先幕系止用マグ
ネット41への通電が遮断され、シャッタ先幕は走行を
開始する。所定時間フィルム露光が行われるとシャッタ
後幕系止用マグネット42への通電が遮断されシャッタ
後幕が走行し、露光を終了する。
FIG. 3 shows a film 36 having a magnetic recording section 37.
FIG. Reference numeral 40 denotes a release switch. When the release switch 40 is closed, the energization of the magnet 41 for stopping the shutter front curtain system is interrupted, and the shutter front curtain starts running. When the film exposure is performed for a predetermined time, the power to the shutter rear curtain system stopping magnet 42 is cut off, the rear curtain of the shutter runs, and the exposure ends.

【0028】つぎに図8〜図12のフローチャートをも
とに図1の赤目修正システムの動作を説明する。
Next, the operation of the red-eye correction system of FIG. 1 will be described with reference to the flowcharts of FIGS.

【0029】図8において、まずシェーディング補正が
行われる(S1)。ここではセンサーの感度ばらつき、
光源の光量むらによる歪みの補正が行われる。次いで、
カラーラインセンサ6で検出された画像データに基づ
き、フイルムの全画面平均透過濃度(LATD)が測光
される(S2)。そして、LATDとLSIカード20
からの補正データとからモニター14にフイルムの像を
表示するためのビデオデータR,G,Bの濃度と色補正
が行われる(S3〜S5)。次いで、補正されたビデオ
データをビデオRAM13に記憶する(S6)。
In FIG. 8, first, shading correction is performed (S1). Here, the sensitivity variation of the sensor,
The distortion due to the uneven light amount of the light source is corrected. Then
Based on the image data detected by the color line sensor 6, the entire screen average transmission density (LATD) of the film is measured (S2). And LATD and LSI card 20
The density and color correction of the video data R, G, and B for displaying the film image on the monitor 14 are performed based on the correction data from (S3 to S5). Next, the corrected video data is stored in the video RAM 13 (S6).

【0030】つぎにフイルム磁気データを読み取り(S
7)、その結果、現在処理中の駒が赤目発生の可能性有
りのときは、図1のモニター14上には図4に示すよう
に画面左下に赤目領域の設定を行うように指示がなされ
る。操作者は赤目を含む比較的狭い領域をライトペンで
なぞるとこの領域が図4で点線で示すように修正部領域
が輪郭線で表示される。
Next, the film magnetic data is read (S
7) As a result, when the frame currently being processed is likely to have red-eye, an instruction is given on the monitor 14 in FIG. 1 to set a red-eye area at the lower left of the screen as shown in FIG. You. When the operator traces a relatively narrow area including the red eye with the light pen, this area is displayed as an outline of the correction section area as shown by a dotted line in FIG.

【0031】図5はモニター14の画面上に透明タッチ
パネルスイッチ38を配置し、操作者が指示した領域を
ワークステーションで検出するための基本構成を示す図
である。また、図6、図7は上記透明タッチパネルの構
成を詳しく説明するための図である。透明タッチパネル
スイッチ38とモニター14は図7のように構成されて
いる。39は透明タッチパネルスイッチ38の操作面と
なるグラフィックシートである。グラフィックシート3
9の下部には透明な上部電極40と下部電極41とがス
ペーサ42を介して配置され、スペーサ42の存在しな
い位置で上部電極40に一体の電極Xと下部電極41に
一体の電極Yとが通常は接触しないように対向に設けら
れ透明パネルスイッチ38の1つのスイッチ(38a)
が構成されている。
FIG. 5 is a diagram showing a basic configuration for arranging the transparent touch panel switch 38 on the screen of the monitor 14 and detecting the area designated by the operator at the workstation. FIGS. 6 and 7 are diagrams for explaining the configuration of the transparent touch panel in detail. The transparent touch panel switch 38 and the monitor 14 are configured as shown in FIG. Reference numeral 39 denotes a graphic sheet serving as an operation surface of the transparent touch panel switch 38. Graphic sheet 3
9, a transparent upper electrode 40 and a lower electrode 41 are arranged via a spacer 42, and an electrode X integrated with the upper electrode 40 and an electrode Y integrated with the lower electrode 41 are provided at a position where the spacer 42 does not exist. Normally, one switch (38a) of the transparent panel switch 38 which is provided so as not to be in contact with the transparent panel switch 38
Is configured.

【0032】電極X,Yに相応するグラフィックシート
39上を指あるいはペン等で押圧することにより電極X
とYとが接触してスイッチがオンになる。透明パネルス
イッチ38の下部電極41は粘着テープ43によってモ
ニター14の表示画面上に接着されている。図6(a)
に示すように透明パネル38の電極Xは複数個ずつライ
ンX1 ,X2 ,X3 …に接続されて複数個のスイッチが
互いに交叉したマトリックス状に配置されている。今こ
のマトリックス状に配置された透明パネルスイッチ38
において、ラインX1 ,X2 ,X3 にIOポート9を介
してワークステーション10から順次図6(b)に示す
ような繰り返しパルスが送られてくると、透明パネルス
イッチ38のどのスイッチがオンになっているかにより
ラインY 1 ,Y2 ,Y3 …のどのラインに上記ラインX
1 ,X2 ,X3 …のうちのどのラインパルスが出力され
るかが決まる。赤目領域を指示する装置は上記のように
透明パネルスイッチ以外に公知のライトペン入力方式や
マウスによって指示してもよい。
Graphic sheet corresponding to electrodes X and Y
39 is pressed by a finger or a pen on the electrode X.
And Y come into contact and the switch is turned on. Transparent panels
The lower electrode 41 of the switch 38 is
It is adhered on the display screen of the monitor 14. FIG. 6 (a)
As shown in FIG.
X1, XTwo, XThree… Connected to multiple switches
They are arranged in a matrix that crosses each other. Now
Transparent panel switches 38 arranged in a matrix
At line X1, XTwo, XThreeVia IO port 9
6 (b) sequentially from the workstation 10.
When such repetitive pulses are sent, the transparent panel
Depending on which switch on switch 38 is on
Line Y 1, YTwo, YThree... the above line X on the throat line
1, XTwo, XThreeWhich line pulse is output
Is determined. The device for indicating the red-eye area is as described above.
Known light pen input method other than the transparent panel switch and
It may be indicated by a mouse.

【0033】図8にもどって赤目領域の設定(S9)が
終了すると、次にワークステーション10はこの赤目の
存在する領域の画像を入力する(S10)。つぎにこの
指示された領域の中から赤目の修正を行う(S11)。
なお赤目の修正については後で詳細に述べる。
Returning to FIG. 8, when the setting of the red-eye area (S9) is completed, the workstation 10 next inputs an image of the area where the red-eye exists (S10). Next, red-eye correction is performed from the designated area (S11).
The red-eye correction will be described later in detail.

【0034】S8において赤目発生の可能性なしのとき
はつぎにプリント濃度とR,G,Bの色補正が行われる
(S12,S13)。次に図示されてないγ補正部で反
射率−電圧リニア信号(BGR)が濃度−電圧リニア信
号(YMC)に変換された後、3色信号中のグレイ成分
を分離(下色除去:UCRと称される)して墨信号が発
生される(S14,S15)。
If there is no possibility of occurrence of red-eye in S8, the print density and the R, G, B color correction are performed (S12, S13). Next, after a reflectance-voltage linear signal (BGR) is converted into a density-voltage linear signal (YMC) by a gamma correction unit (not shown), gray components in the three-color signal are separated (under color removal: UCR and UCR). ), And a black signal is generated (S14, S15).

【0035】そして所定のマスキング方程式を用いて色
修正マスキングが行われる(S16)。次いで階調補正
が行われた後、エッジ強調スムージング等のシャープネ
ス補正が行われる(S17,S18)。つぎに、以上の
処理の行われた画像データに基づき、プリントが実行さ
れる(S19)。つぎにフイルム4は1駒分送られ、再
び同様の処理が実行される(S20)。
Then, color correction masking is performed using a predetermined masking equation (S16). Next, after gradation correction is performed, sharpness correction such as edge enhancement smoothing is performed (S17, S18). Next, printing is executed based on the image data on which the above processing has been performed (S19). Next, the film 4 is fed by one frame, and the same processing is executed again (S20).

【0036】つぎに図9〜図12の赤目修正のプログラ
ムについて説明する。
Next, the red eye correction program shown in FIGS. 9 to 12 will be described.

【0037】図9において、まず赤目を含む所定領域の
色画像の3色成分出力RGBに対して色度変換処理を行
う(S30)。色度変換とは色画素の明度を一定にし色
あい成分のみを残す変換処理である。3色成分の色度変
換出力をrgbとすると、
In FIG. 9, first, chromaticity conversion processing is performed on three color component outputs RGB of a color image of a predetermined area including red eyes (S30). The chromaticity conversion is a conversion process in which the brightness of a color pixel is kept constant and only a hue component is left. Assuming that the chromaticity conversion output of the three color components is rgb,

【0038】[0038]

【数1】 (Equation 1)

【0039】で表わされる。色度変換が終了すると、つ
ぎに赤色成分の平均値r* を演算する(S31)。つぎ
に上記所定領域のすべての画素の赤色成分の色度変換値
rに対 して、r>r* +C0(C0は定数) …(2) を満たす画像領域を抽出する(S32)。C0が30に
ほぼ等しいものとすれば、(2)式によって赤目領域の
みを抽出できることが判明した。表1は実際の3枚の写
真について、図4に示すような赤目を含む領域Aの色度
変換後の各画素の3色成分の平均値r* ,g* ,b*
赤目部分のみの色度変換後の各画素の3色成分の平均値
* ,g* ,b* を実測した結果である。
## EQU2 ## When the chromaticity conversion is completed, the average value r * of the red component is calculated (S31). Next, with respect to the chromaticity conversion value r of the red component of all pixels in the predetermined area, an image area satisfying r> r * + C0 (C0 is a constant) (2) is extracted (S32). Assuming that C0 is substantially equal to 30, it has been found that only the red-eye region can be extracted by equation (2). Table 1 shows the average values r * , g * , b * of the three color components of each pixel after the chromaticity conversion in the area A including the red eye as shown in FIG. It is a result of actually measuring the average values r * , g * , and b * of the three color components of each pixel after the chromaticity conversion.

【0040】[0040]

【表1】 [Table 1]

【0041】なお、(2)式のかわりに、 r>r* ×K0(K0は定数) …(3) としてもよい。It should be noted that instead of equation (2), r> r * × K0 (K0 is a constant) (3)

【0042】表1からわかるように、赤目領域は赤色の
色度変換出力が値r* が赤目を含む比較的広い領域の色
度変換出力の平均値r* に比べ、大変大きいことに特徴
があることがわかる。
As can be seen from Table 1, the red-eye region is characterized in that the red chromaticity conversion output value r * is much larger than the average value r * of the chromaticity conversion outputs of a relatively wide region including the red eye. You can see that there is.

【0043】図9にもどって、つぎに上記抽出された画
像領域の色変換処理を行う(S33)。変換の色の決め
方としては色あいを図4の領域Aの色合いr* :g*
*に合せ明るさを若干暗くすると、異和感がないこと
が判明している。この他にモニター上に色のサンプルを
提示しこの中から適当な色を選択する方法でもよい。
Returning to FIG. 9, a color conversion process is performed on the extracted image area (S33). As a method of determining the color of the conversion, the color is expressed by the color r * : g * of the area A in FIG.
It has been found that when the brightness is slightly darkened in accordance with b * , there is no strange feeling. Alternatively, a method of presenting a color sample on a monitor and selecting an appropriate color from the sample may be used.

【0044】赤目の中にはまれに金色の輝いている部分
(以下金目と呼ぶことにする)が含まれることがある。
この部分は図9のアルゴリズムは抽出できない。表2は
この金目の部分の画像出力の3色成分出力の平均値R
* ,G* ,B* と金目を含む図4のAに相当する領域の
3色成分の平均出力R* ,G* ,B* を求めたものであ
る。
In rare cases, the red eye may include a shining portion of gold (hereinafter referred to as “gold eye”).
This part cannot be extracted by the algorithm of FIG. Table 2 shows the average value R of the three color component outputs of the image output of the gold portion.
The average output R * , G * , B * of the three color components in the area corresponding to A in FIG. 4 including * , G * , B * and the gold eyes is obtained.

【0045】[0045]

【表2】 [Table 2]

【0046】図10はこの金目を抽出するアルゴリズム
である。図10において、まず図4の領域Aに相当する
部分の3色成分の出力R* ,G* ,B* を求める(S4
0)。つぎに各画素の赤色成分Rと緑色成分Gが R>R* +C1 ,G>G* +C2 (C1,C2は定数である) …(4) の画像領域を抽出する(S41)。つぎに上記抽出され
た画像領域を金目領域として色変換処理する(S4
2)。すなわち、表2からもわかるように金目領域は他
の領域に比べG* とR* が領域Aに比べ大きいことに特
徴があることを利用して金目領域を抽出し、色修正をす
る。
FIG. 10 shows an algorithm for extracting the gold. In FIG. 10, first, outputs R * , G * , and B * of three color components in a portion corresponding to the area A in FIG. 4 are obtained (S4).
0). Next, an image area where the red component R and the green component G of each pixel are R> R * + C1, G> G * + C2 (C1 and C2 are constants) (4) is extracted (S41). Next, a color conversion process is performed using the extracted image region as a gold region (S4).
2). That is, as can be seen from Table 2, the gold area is extracted and color-corrected by utilizing the fact that G * and R * are larger than the area A in the gold area as compared to the other areas.

【0047】なお(4)式のかわりに R>R* ×K1 ,G>G* ×K2 (K1,K2は定数) …(5) としてもよい。It should be noted that instead of equation (4), R> R * × K1, G> G * × K2 (K1 and K2 are constants) (5)

【0048】図11は各画素の3色成分の比G/RとB
/R、すなわち各画素の色あいによって赤目を抽出する
別の実施形態である。図11においてまず、各画素の3
色成分RGBの比が、 C3<G/R<C4 かつ C5<B/R<C6 (ここで、C3〜C6は定数) …(6) の画像領域を抽出する(S50)。つぎに上記抽出した
領域に対し、色修正を行う(S51)。
FIG. 11 shows the ratio G / R and B of the three color components of each pixel.
/ R, that is, another embodiment in which red eyes are extracted based on the tint of each pixel. In FIG. 11, first, 3
An image area where the ratio of the color components RGB is C3 <G / R <C4 and C5 <B / R <C6 (where C3 to C6 are constants) (6) is extracted (S50). Next, color correction is performed on the extracted area (S51).

【0049】図11の方法ではたまに肌色と赤目の色あ
いが同じであることがあり、この場合、図4に示す領域
Aをかなり狭く設定しないと正しく修正されないことが
ある。
In the method shown in FIG. 11, the skin tone and the red-eye color may sometimes be the same, and in this case, unless the area A shown in FIG.

【0050】図12はこれを改善したもので、赤目領域
が他の領域に比べ明るいことに着目し、色合い成分に明
るさの条件を付加したものである。
FIG. 12 is an improvement of this, and focuses on the fact that the red-eye region is brighter than other regions, and adds a condition of brightness to the tint component.

【0051】図12において、まず、各画素の3色成分
RGBの平均値R* ,G* ,B* を演算する(S6
0)。つぎに C3<G/R<C4 かつ C5<B/R<C6 かつ R>R* +C7 (C3〜C7は定数) …(7) の画像領域を抽出する(S61)。つぎに上記抽出され
た赤目領域を色変換処理する(S62)。なお、(7)
式において、R>R* +C7のかわりにG>G*+C8
(C8は定数)としてもよい。
In FIG. 12, first, the average values R * , G * , and B * of the three color components RGB of each pixel are calculated (S6).
0). Next, an image area of C3 <G / R <C4 and C5 <B / R <C6 and R> R * + C7 (C3 to C7 are constants) (7) is extracted (S61). Next, a color conversion process is performed on the extracted red-eye region (S62). (7)
In the formula, G> G * + C8 instead of R> R * + C7
(C8 is a constant).

【0052】図9〜図12はそれぞれ独立したアルゴリ
ズムとして説明したが、いくつかを組合わせて使っても
よい。例えば、図9と図10の画像領域抽出の条件をオ
アで組合わせれば赤目と金目が混在している目の修復が
可能となる。
Although FIGS. 9 to 12 have been described as independent algorithms, some of them may be used in combination. For example, if the conditions of the image area extraction in FIGS. 9 and 10 are combined in OR, it is possible to repair eyes in which red eyes and gold eyes are mixed.

【0053】以上の中で演算処理はすべてワークステー
ション10で行われるのであるが、図13は本発明の他
の実施形態の構成をブロック的に説明するものである。
図13において44はフイルムの像を3色成分のデジタ
ル画像データに変換するスキャナーである。45は上記
変換されたデジタル画像データを記憶するための画像メ
モリである。46は上記画像メモリ45の中から指定さ
れた領域の画像データのみを取り出すための画像データ
選択手段である。47は上記画像データ選択手段46に
より選択されたそれぞれの3色画像データRGBの平均
値R* ,G* ,B* を求める手段、48は上記画像デー
タ選択手段46により選択されたそれぞれの3色画像デ
ータR,G,Bから色度変換値r,g,bを求める手段
である。49は上記r,g,bの平均値、r* ,g*
* を求める手段である。50は図9〜図12に示すよ
うにアルゴリズムを演算し、赤目領域を抽出する手段で
ある。51は赤目領域の色を修正する赤目修正手段であ
る。52は赤目修正された画像データをプリントするた
めに前記したような種々の画像処理を行う画像処理手段
であり、53はプリンターである。
In the above, all the arithmetic processing is performed in the workstation 10. FIG. 13 is a block diagram illustrating the configuration of another embodiment of the present invention.
In FIG. 13, reference numeral 44 denotes a scanner for converting a film image into digital image data of three color components. Reference numeral 45 denotes an image memory for storing the converted digital image data. Reference numeral 46 denotes image data selecting means for extracting only image data of a designated area from the image memory 45. 47 is a means for calculating the average values R * , G * , B * of the respective three-color image data RGB selected by the image data selecting means 46; 48 is each of the three colors selected by the image data selecting means 46; This is means for obtaining chromaticity conversion values r, g, b from the image data R, G, B. 49 is an average value of the above r, g, b, r * , g * ,
This is a means for obtaining b * . Numeral 50 denotes means for calculating an algorithm and extracting a red-eye area as shown in FIGS. Reference numeral 51 denotes red-eye correction means for correcting the color of the red-eye area. Reference numeral 52 denotes an image processing means for performing various image processing as described above in order to print the red-eye-corrected image data, and reference numeral 53 denotes a printer.

【0054】つぎに図13の動作を簡単に説明する。Next, the operation of FIG. 13 will be briefly described.

【0055】スキャナー44により変換されたデジタル
画像データは画像メモリ45に記憶される。画像メモリ
45に記憶された画像データは画像データ選択手段(指
定手段)46により指定された所定領域のデータのみが
選択され、平均画像データ演算手段47により3色成分
の平均値R* ,G* ,B* が演算される。また色度変換
手段48により色度データr,g,bが演算される。ま
た色度平均値演算手段49により上記色度データの平均
値r* ,g* ,b* が演算される。演算手段50では上
記のデータをもとに、上記図9〜図12の各種演算が実
行され赤目領域が抽出される。赤目領域が抽出されると
赤目修正手段51により画像メモリ45の赤目データが
色修正される。
The digital image data converted by the scanner 44 is stored in the image memory 45. From the image data stored in the image memory 45, only data in a predetermined area designated by the image data selecting means (designating means) 46 is selected, and the average value R * , G * of the three color components is selected by the average image data calculating means 47 . , B * are calculated. Further, the chromaticity data r, g, b are calculated by the chromaticity conversion means 48. Further, the chromaticity average value calculating means 49 calculates the average values r * , g * , b * of the chromaticity data. The arithmetic means 50 executes the various arithmetic operations shown in FIGS. 9 to 12 based on the above data to extract the red-eye region. When the red-eye area is extracted, the red-eye correction means 51 corrects the color of the red-eye data in the image memory 45.

【0056】赤目が色修正された画像データは画像処理
手段52により種々の画像処理が行われたのち、プリン
ター53によりプリントされる。
The image data whose red-eye has been corrected is subjected to various kinds of image processing by the image processing means 52 and then printed by the printer 53.

【0057】[0057]

【発明の効果】以上述べたように、本発明においては、
ストロボ光を照射し撮影された画像を表示手段に表示
し、上記表示手段に表示された画像のうち目を含む所定
領域を手動操作により指定し、この手動操作により指定
された所定領域から赤目又は金目を抽出するようにした
ので、簡単にしかも確実に赤目又は金目領域を検出する
ことが可能になる。また、顔画像を3色成分に色分解
し、色合い又は色度又は3色成分の比に基づいて赤目又
は金目領域を抽出するようにしたので、簡単なアルゴリ
ズムでしかも確実に赤目又は金目領域を抽出することが
可能になる。
As described above, in the present invention,
An image photographed by irradiating a strobe light is displayed on a display means, and a predetermined area including an eye in the image displayed on the display means is designated by a manual operation. Since the gold eyes are extracted, it is possible to easily and reliably detect the red-eye or gold-eye area. In addition, since the face image is color-separated into three color components and the red-eye or gold-eye region is extracted based on the hue or chromaticity or the ratio of the three-color components, the red-eye or gold-eye region can be reliably detected with a simple algorithm. It becomes possible to extract.

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

【図1】本実施形態の赤目修正装置が適用される赤目修
正システムの構成を示す図である。
FIG. 1 is a diagram illustrating a configuration of a red-eye correction system to which a red-eye correction device according to an embodiment is applied.

【図2】カメラの全体制御ブロック図である。FIG. 2 is an overall control block diagram of the camera.

【図3】磁気記録部のあるフィルムの平面図である。FIG. 3 is a plan view of a film having a magnetic recording unit.

【図4】赤目領域の設定のしかたを説明するための図で
ある。
FIG. 4 is a diagram for explaining how to set a red-eye area.

【図5】操作者が指示した領域をワークステーションで
検出するための基本構成を示す図である。
FIG. 5 is a diagram showing a basic configuration for detecting, by a workstation, an area designated by an operator.

【図6】透明タッチパネルの構成を詳しく説明するため
の図である。
FIG. 6 is a diagram for describing a configuration of a transparent touch panel in detail.

【図7】透明タッチパネルの構造を示す図である。FIG. 7 is a diagram showing a structure of a transparent touch panel.

【図8】図1の赤目修正システムの動作を説明するため
のフローチャートである。
FIG. 8 is a flowchart illustrating the operation of the red-eye correction system of FIG. 1;

【図9】赤目修正のアルゴリズムを説明するための図で
ある。
FIG. 9 is a diagram for explaining an algorithm for red eye correction.

【図10】金目を抽出するアルゴリズムを説明するため
の図である。
FIG. 10 is a diagram for explaining an algorithm for extracting gold eyes.

【図11】赤目修正アルゴリズムの他の実施形態を示す
図である。
FIG. 11 is a diagram illustrating another embodiment of a red-eye correction algorithm.

【図12】図11の実施形態を改善した例を示す図であ
る。
FIG. 12 is a diagram showing an example in which the embodiment of FIG. 11 is improved.

【図13】本発明の他の実施形態の構成を示すブロック
図である。
FIG. 13 is a block diagram showing a configuration of another embodiment of the present invention.

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

44 スキャナー 45 画像メモリ 46 画像データ選択手段 47 平均画像データ演算手段 48 色度変換手段 49 色度平均値演算手段 50 演算手段 51 赤目修正手段 52 画像処理手段 53 プリンター 44 Scanner 45 Image Memory 46 Image Data Selection Means 47 Average Image Data Calculation Means 48 Chromaticity Conversion Means 49 Chromaticity Average Value Calculation Means 50 Calculation Means 51 Red Eye Correction Means 52 Image Processing Means 53 Printer

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) // G03B 27/80 H04N 1/40 D ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) // G03B 27/80 H04N 1/40 D

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 ストロボ光を照射し撮影された画像を表
示する表示手段と、 該表示手段に表示された画像のうち目を含む所定領域を
手動操作により指定する手段と、 上記手動操作により指定された所定領域から赤目又は金
目を抽出する手段と、 上記抽出された赤目又は金目を修正する手段と、 を有することを特徴とする画像修正装置。
1. A display means for displaying an image photographed by irradiating strobe light, a means for manually designating a predetermined area including an eye in an image displayed on the display means, and a designation by the manual operation An image correcting apparatus, comprising: a unit for extracting a red eye or a gold eye from a predetermined area that has been extracted; and a unit for correcting the extracted red or gold eye.
【請求項2】 赤目又は金目を含む所定領域を手動操作
により輪郭線で囲むことを特徴とする請求項1記載の画
像修正装置。
2. The image correction apparatus according to claim 1, wherein a predetermined area including a red eye or a gold eye is manually surrounded by a contour line.
【請求項3】 所定領域から抽出された画像データを色
度を表すデータに変換し、 該変換された色度データに基づいて赤目又は金目を抽出
することを特徴とする請求項1記載の画像修正装置。
3. The image according to claim 1, wherein the image data extracted from the predetermined area is converted into data representing chromaticity, and red-eye or gold-eye is extracted based on the converted chromaticity data. Correction device.
【請求項4】 上記色度データのうち赤色成分が所定の
値以上の領域を赤目と判定することを特徴とする請求項
3記載の画像修正装置。
4. The image correcting apparatus according to claim 3, wherein an area of the chromaticity data in which a red component is equal to or more than a predetermined value is determined as red-eye.
【請求項5】 上記色度データのうち赤色成分及び緑成
分が所定の値以上の領域を金目と判定することを特徴と
する請求項3記載の画像修正装置。
5. The image correcting apparatus according to claim 3, wherein an area where a red component and a green component of the chromaticity data are equal to or larger than a predetermined value is determined to be gold.
【請求項6】 3色成分の比に基づいて赤目を抽出する
ことを特徴とする請求項1記載の画像修正装置。
6. The image correction apparatus according to claim 1, wherein red eyes are extracted based on a ratio of three color components.
【請求項7】 3色成分の比及び赤色成分の値に基づい
て赤目を抽出することを特徴とする請求項1記載の画像
修正装置。
7. The image correcting apparatus according to claim 1, wherein red eyes are extracted based on a ratio of three color components and a value of a red component.
【請求項8】 ストロボ光を照射された画像を表示手段
に表示するステップと、 該表示手段に表示された画像のうち目を含む所定領域を
手動操作により指定するステップと、 上記手動操作により指定された所定領域から赤目又は金
目を抽出するステップと、 上記抽出された赤目又は金目を修正するステップと、 を有することを特徴とする画像修正方法。
8. A step of displaying an image irradiated with strobe light on a display means, a step of manually designating a predetermined area including an eye in the image displayed on the display means, and a step of designating by the manual operation. Extracting a red-eye or gold-eye from the predetermined area, and correcting the extracted red-eye or gold-eye.
JP2000181947A 2000-01-01 2000-06-16 Image correction device and image correction method Pending JP2001061071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000181947A JP2001061071A (en) 2000-01-01 2000-06-16 Image correction device and image correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000181947A JP2001061071A (en) 2000-01-01 2000-06-16 Image correction device and image correction method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP15538493A Division JP3358033B2 (en) 1993-06-25 1993-06-25 Image correction device and image correction method

Publications (1)

Publication Number Publication Date
JP2001061071A true JP2001061071A (en) 2001-03-06

Family

ID=18682800

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000181947A Pending JP2001061071A (en) 2000-01-01 2000-06-16 Image correction device and image correction method

Country Status (1)

Country Link
JP (1) JP2001061071A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002366946A (en) * 2001-06-08 2002-12-20 Mega Chips Corp Image processor
US7277589B2 (en) 2002-09-24 2007-10-02 Fujifilm Corporation Image retouching method, apparatus, and program storage medium, image correcting method, apparatus, and program storage medium, and eye detecting and correcting method apparatus, and program storage medium
JP2007295545A (en) * 2006-03-30 2007-11-08 Canon Inc Image processing device, image processing method, image pickup device, program and storage medium
JP2009064459A (en) * 2008-10-24 2009-03-26 Konica Minolta Business Technologies Inc Program for correcting red eye in image, recording medium and pink eye correction method
US7894666B2 (en) 2004-07-30 2011-02-22 Canon Kabushiki Kaisha Image processing method and apparatus, image sensing apparatus, and program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002366946A (en) * 2001-06-08 2002-12-20 Mega Chips Corp Image processor
JP4677582B2 (en) * 2001-06-08 2011-04-27 株式会社メガチップス Image processing device
US7277589B2 (en) 2002-09-24 2007-10-02 Fujifilm Corporation Image retouching method, apparatus, and program storage medium, image correcting method, apparatus, and program storage medium, and eye detecting and correcting method apparatus, and program storage medium
US7894666B2 (en) 2004-07-30 2011-02-22 Canon Kabushiki Kaisha Image processing method and apparatus, image sensing apparatus, and program
JP2007295545A (en) * 2006-03-30 2007-11-08 Canon Inc Image processing device, image processing method, image pickup device, program and storage medium
JP2009064459A (en) * 2008-10-24 2009-03-26 Konica Minolta Business Technologies Inc Program for correcting red eye in image, recording medium and pink eye correction method
JP4640490B2 (en) * 2008-10-24 2011-03-02 コニカミノルタビジネステクノロジーズ株式会社 Program for correcting red eye in image, recording medium, and red eye correction method

Similar Documents

Publication Publication Date Title
US7289664B2 (en) Method of detecting and correcting the red eye
US7830418B2 (en) Perceptually-derived red-eye correction
US20040109614A1 (en) Red eye compensation method, image processing apparatus and method for implementing the red eye compensation method, as well as printing method and printer
JP3358033B2 (en) Image correction device and image correction method
US20040114797A1 (en) Method for automatic determination of color-density correction values for the reproduction of digital image data
GB2432659A (en) Face detection in digital images
US7200280B2 (en) Image processing apparatus
JP2001148780A (en) Method for setting red-eye correction area and red-eye correction method
JP4172663B2 (en) Image processing method
JP4281244B2 (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
JP2000242775A (en) Method and device for processing image, and recording medium
JP2001061071A (en) Image correction device and image correction method
JPS62186247A (en) Method for determining quantity of exposure for photographic printing
JP2634511B2 (en) Red-eye correction method for photo prints and pictorial hard copy device
JP2000069277A (en) Image processing unit
JP4333016B2 (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
JP3862198B2 (en) ID photo photographing apparatus, image processing apparatus and ID photo creating system
JPH06350914A (en) Pink-eye effect correction system
JP4415488B2 (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
JP3709656B2 (en) Image processing device
JP2006146646A (en) Method and apparatus for processing photographic image
JPS589136A (en) Image observing device
JPS63178222A (en) Copying exposure quantity determining device
JP2891436B2 (en) Printer
JP2006059162A (en) Tooth image correction method and device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20031202