JP2007295545A - Image processing device, image processing method, image pickup device, program and storage medium - Google Patents

Image processing device, image processing method, image pickup device, program and storage medium Download PDF

Info

Publication number
JP2007295545A
JP2007295545A JP2007077162A JP2007077162A JP2007295545A JP 2007295545 A JP2007295545 A JP 2007295545A JP 2007077162 A JP2007077162 A JP 2007077162A JP 2007077162 A JP2007077162 A JP 2007077162A JP 2007295545 A JP2007295545 A JP 2007295545A
Authority
JP
Japan
Prior art keywords
correction
red
image
eye
target image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007077162A
Other languages
Japanese (ja)
Other versions
JP4810478B2 (en
JP2007295545A5 (en
Inventor
Kenji Takahashi
賢司 高橋
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2007077162A priority Critical patent/JP4810478B2/en
Publication of JP2007295545A publication Critical patent/JP2007295545A/en
Publication of JP2007295545A5 publication Critical patent/JP2007295545A5/ja
Application granted granted Critical
Publication of JP4810478B2 publication Critical patent/JP4810478B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P20/00Technologies relating to chemical industry
    • Y02P20/50Improvements relating to the production of bulk chemicals
    • Y02P20/52Improvements relating to the production of bulk chemicals using catalysts, e.g. selective catalysts

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To correct a portion in which a red-eye phenomenon occurs in a screen more accurately. <P>SOLUTION: The device comprises: a first red-eye corrector 20 for automatically detecting a red eye from a subject image to be corrected, and correcting the red eye; a second red-eye corrector 20 for correcting a red eye of the subject image specified by a user; a determining section 50 for determining whether or not the subject image has been corrected by at least one of the first and second red-eye correctors; and a correction suppressor 50 for suppressing a red-eye correction operation of the first red-eye corrector if determined that the subject image has been subjected to the red-eye correction. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明はデジタルカメラ等の撮像装置により撮影された画像内に発生した赤目現象を補正する技術に関するものである。   The present invention relates to a technique for correcting a red-eye phenomenon that occurs in an image taken by an imaging device such as a digital camera.

従来より、固体メモリ素子を有するメモリカードを記録媒体として、静止画像を記録再生するデジタルカメラ等の撮像装置は既に市販されている。   Conventionally, an imaging apparatus such as a digital camera that records and reproduces a still image using a memory card having a solid-state memory element as a recording medium is already on the market.

また、従来の銀塩フィルムを使用するカメラにおいて、人物をフラッシュを使用して撮影した場合、目の色が赤く撮影されてしまう赤目現象が発生することが有り問題となっていた。この赤目現象は、瞳孔に対して入射したフラッシュ光が網膜の血管を写し出してしまう現象である。特に暗所では目の瞳孔が開いてしまっているために、赤目現象が生じる可能性が高い。これに対して従来の銀塩カメラにおいても、撮影時に瞳孔を収縮させるためにランプやLED、またはフラッシュのプリ発光等を用いて撮影前に光を被写体に照射し、撮影時に瞳孔を収縮させて赤目現象を緩和しようとしている。しかし、被写体が撮影者側を注視していない場合は赤目緩和効果が少ないなど完全に赤目現象を無くすのは困難であった。   Further, in a conventional camera using a silver salt film, when a person is photographed using a flash, there is a problem that a red-eye phenomenon may occur in which the eye color is photographed in red. This red-eye phenomenon is a phenomenon in which flash light incident on the pupil projects blood vessels in the retina. Particularly in the dark, the eye pupil is open, so there is a high possibility that the red-eye phenomenon will occur. In contrast, conventional silver halide cameras also use a lamp, LED, or flash pre-flash to irradiate the subject with light in order to contract the pupil during shooting, and contract the pupil during shooting. Trying to alleviate the red eye phenomenon. However, when the subject is not gazing at the photographer side, it is difficult to completely eliminate the red-eye phenomenon because the red-eye reduction effect is small.

デジタルカメラにおいてもフラッシュ撮影時の赤目現象は同様に発生する。従来のデジタルカメラでは銀塩カメラと同様に撮影前に被写体に光を照射するという赤目緩和対策がとられているため、銀塩カメラと同様に撮影時の赤目現象は完全には回避できていない。そのため、発生した赤目現象を修正するために、撮影後の電子画像に対して画像処理ソフトなどを使って、手作業で赤目の修正を行う必要があった。   The red-eye phenomenon at the time of flash photography also occurs in digital cameras. In conventional digital cameras, red-eye mitigation measures are taken to irradiate the subject with light before shooting, as with silver-salt cameras. Therefore, as with silver-salt cameras, the red-eye phenomenon during shooting cannot be completely avoided. . Therefore, in order to correct the generated red-eye phenomenon, it is necessary to manually correct the red eye using image processing software or the like on the electronic image after shooting.

これに対して、人物の顔や目の位置を自動的に検出し、その情報を元に赤目現象が発生した場合に自動または半自動で赤目を修正するという画像処理装置の提案が行われている。例えば、肌色とみなされる領域を切り出すことでまず顔検出を行い、検出された顔領域内に対して赤目検出を行う技術がある(特許文献1参照)。   On the other hand, there has been proposed an image processing apparatus that automatically detects the position of a person's face and eyes and automatically or semi-automatically corrects red eyes when a red-eye phenomenon occurs based on the information. . For example, there is a technique in which face detection is first performed by cutting out an area regarded as skin color, and red-eye detection is performed on the detected face area (see Patent Document 1).

また、顔形状モデルと顔確率を比較するアルゴリズムとパターンマッチングを併用して顔検出を行うカメラが提案されている(特許文献2参照)。
特開平10−0233929号公報 特開2001−309225号公報
In addition, there has been proposed a camera that performs face detection using a combination of an algorithm that compares a face shape model with a face probability and pattern matching (see Patent Document 2).
Japanese Patent Laid-Open No. 10-0233929 JP 2001-309225 A

しかしながら、画像内の赤目現象が発生している箇所全てについて、顔を自動的に検出し、修正することは技術的にはかなり困難である。例えば、顔形状モデルと顔確率を比較するアルゴリズムとパターンマッチングを併用して顔検出を行う補正においては、複数の人が被写体として写っている場合には、全員の顔が検出されるとは限らない。即ち、横を向いている人は検出できない場合があって、一部の検出できない顔の赤目が残ったり、また、肌色を判別して顔領域を特定し、赤目補正を行う場合においては、唇を赤目と誤判別して不自然な補正が実行される場合があった。また、自動検出を行い自動的に補正を行う補正方法においては、すでに補正している画像に対して再検出を行った場合、すでに赤目が補正されてしまっている場合には、正確に赤目の部分を検出することができない場合がある。例えば、血管が透けて見えることによって、瞼の縁が赤味がかっている人がいる場合を例にあげて説明する。赤目補正を行なう前であれば、瞼の縁よりも赤い瞳孔のほうが赤目として認識されやすいため、誤検出の可能性は低くなる。しかしながら、赤目補正を行った後であれば、赤目が存在していないため、目の近傍で、かつ、赤味がかっている瞼の縁を赤目として認識してしまう可能性が、実際に赤目が存在する場合よりも高くなってしまう。そのため、すでに赤目が補正されてしまっている画像に対して、誤補正(赤目以外の領域を補正してしまう)を行ってしまう可能性があるという問題があった。   However, it is technically difficult to automatically detect and correct the face for all the locations where the red-eye phenomenon occurs in the image. For example, in the correction for detecting a face by using an algorithm for comparing the face shape model with the face probability and pattern matching together, the faces of all people are not always detected when a plurality of people are captured as subjects. Absent. In other words, people who are facing sideways may not be able to detect, and some undetectable face red eyes may remain, or if the skin area is identified to identify the face area and red eye correction is performed, May be mistaken for red-eye and an unnatural correction may be performed. In addition, in the correction method in which automatic detection is performed and correction is automatically performed, when redevelopment is performed on an image that has already been corrected, and red-eye has already been corrected, There are cases where the portion cannot be detected. For example, a case will be described as an example where there is a person whose blood vessels are seen through and the edges of the eyelids are reddish. Before red-eye correction, the red pupil is more easily recognized as red-eye than the eyelid edge, so the possibility of erroneous detection is reduced. However, after red-eye correction, since there are no red eyes, there is a possibility that red eyes may be recognized as red eyes near the eyes and the reddish eyelids. It will be higher than if it exists. For this reason, there is a problem in that erroneous correction (an area other than red-eye is corrected) may be performed on an image whose red-eye has already been corrected.

従って、本発明は上述した課題に鑑みてなされたものであり、その目的は、画面内の赤目現象が発生している部分をより正確に補正できるようにすることである。   Therefore, the present invention has been made in view of the above-described problems, and an object thereof is to make it possible to more accurately correct a portion where a red-eye phenomenon occurs in a screen.

上述した課題を解決し、目的を達成するために、本発明に係わる画像処理装置は、対象画像において補正すべき対象としての条件を満たす領域を補正する補正処理を行う処理手段と、前記対象画像が、前記補正処理を実施されているか否かを判定する判定手段と、前記判定手段により、前記対象画像が前記補正処理を実施されていると判定された場合に、前記対象画像に対する前記補正処理の実施を抑制する補正抑制手段と、を備えることを特徴とする。   In order to solve the above-described problems and achieve the object, an image processing apparatus according to the present invention includes a processing unit that performs correction processing for correcting a region that satisfies a condition to be corrected in a target image, and the target image. Is a determination unit that determines whether or not the correction process has been performed, and the correction process for the target image when the determination unit determines that the target image has been subjected to the correction process. Correction suppression means for suppressing the implementation of the above.

また、本発明に係わる撮像装置は、被写体像を光電変換する撮像素子と、前記撮像素子により撮像された画像を記憶する記憶手段と、上記の画像処理装置と、を備えることを特徴とする。   An image pickup apparatus according to the present invention includes an image pickup device that performs photoelectric conversion of a subject image, a storage unit that stores an image picked up by the image pickup device, and the image processing device.

また、本発明に係わる画像処理方法は、対象画像において補正すべき対象としての条件を満たす領域を補正する補正工程と、前記対象画像が、前記補正工程における補正を実施されているか否かを判定する判定工程と、前記判定工程において、前記対象画像が前記補正工程における補正を実施されていると判定された場合に、前記対象画像に対する前記補正工程における補正の実施を抑制する補正抑制工程と、を備えることを特徴とする。   The image processing method according to the present invention includes a correction step of correcting a region satisfying a condition as a target to be corrected in the target image, and whether or not the target image has been corrected in the correction step. And a correction suppressing step for suppressing execution of correction in the correction step for the target image when it is determined in the determination step that the target image has been corrected in the correction step. It is characterized by providing.

また、本発明に係わるプログラムは、上記の画像処理方法をコンピュータに実施させることを特徴とする。   A program according to the present invention causes a computer to execute the above image processing method.

また、本発明に係わる記憶媒体は、上記のプログラムを記憶したことを特徴とする。   A storage medium according to the present invention stores the above program.

本発明によれば、画面内の赤目現象が発生している部分をより正確に補正することが可能となる。   According to the present invention, it is possible to more accurately correct a portion in the screen where the red-eye phenomenon occurs.

以下、本発明の好適な一実施形態について、添付図面を参照して詳細に説明する。   Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

本実施形態においては、デジタルカメラで撮影された赤目画像を補正する処理について説明する。   In the present embodiment, processing for correcting a red-eye image photographed with a digital camera will be described.

図1は、本発明の一実施形態に係るデジタルカメラ(画像処理装置)100の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of a digital camera (image processing apparatus) 100 according to an embodiment of the present invention.

図1において、10は撮影レンズ、12はシャッタ、14は光学像を電気信号に変換する(被写体像を光電変換する)撮像素子、16は撮像素子14のアナログ信号出力をデジタル信号に変換するA/D変換器である。タイミング発生部18は、撮像素子14、A/D変換器16、D/A変換器26にクロック信号や制御信号を供給して、それらの動作を制御している。このタイミング発生部18は、メモリ制御部22及びシステム制御部50により制御されている。画像処理部20は、A/D変換器16からのデータ或いはメモリ制御部22からのデータに対して所定の画素補間処理や色変換処理を行う。また、この画像処理部20は、撮像した画像データを用いて所定の演算処理を行い、それから得られた演算結果に基づいてシステム制御部50が露光制御部40、測距制御部42に対する制御を実行する。即ち、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュプリ発光)処理を行っている。また画像処理部20は、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行っている。   In FIG. 1, 10 is a photographing lens, 12 is a shutter, 14 is an image sensor that converts an optical image into an electrical signal (photoelectrically converts a subject image), and 16 is an analog signal output from the image sensor 14 that is converted into a digital signal A. / D converter. The timing generator 18 supplies a clock signal and a control signal to the image sensor 14, the A / D converter 16, and the D / A converter 26 to control their operations. The timing generator 18 is controlled by the memory controller 22 and the system controller 50. The image processing unit 20 performs predetermined pixel interpolation processing and color conversion processing on the data from the A / D converter 16 or the data from the memory control unit 22. In addition, the image processing unit 20 performs predetermined calculation processing using the captured image data, and the system control unit 50 controls the exposure control unit 40 and the distance measurement control unit 42 based on the calculation result obtained therefrom. Execute. That is, TTL (through-the-lens) AF (autofocus) processing, AE (automatic exposure) processing, and EF (flash pre-emission) processing are performed. The image processing unit 20 performs predetermined calculation processing using the captured image data, and also performs TTL AWB (auto white balance) processing based on the obtained calculation result.

メモリ制御部22は、A/D変換器16、タイミング発生部18、画像処理部20、画像表示用メモリ24、D/A変換器26、メモリ30、圧縮/伸長部32を制御する。これにより、A/D変換器16でA/D変換されたデジタルデータは画像処理部20、メモリ制御部22を介して、或いは直接メモリ制御部22を介して、画像表示用メモリ24或いはメモリ30に書き込まれる。   The memory control unit 22 controls the A / D converter 16, the timing generation unit 18, the image processing unit 20, the image display memory 24, the D / A converter 26, the memory 30, and the compression / decompression unit 32. Thus, the digital data A / D converted by the A / D converter 16 is sent to the image display memory 24 or the memory 30 via the image processing unit 20, the memory control unit 22, or directly via the memory control unit 22. Is written to.

画像表示用メモリ24は画像表示部28に表示するデータを記憶しており、この画像表示用メモリ24に記憶されているデータはD/A変換器26を介してTFT,LCD等の画像表示部28に出力されて表示される。この画像表示部28により、撮像した画像データを逐次表示すれば、電子ファインダとしての機能を実現できる。また画像表示部28は、システム制御部50の指示により任意に表示をオン/オフすることが可能であり、表示をオフにした場合は、このデジタルカメラ100の消費電力を大幅に低減できる。   The image display memory 24 stores data to be displayed on the image display unit 28, and the data stored in the image display memory 24 is supplied to an image display unit such as a TFT or LCD via a D / A converter 26. It is output to 28 and displayed. If the captured image data is sequentially displayed by the image display unit 28, a function as an electronic viewfinder can be realized. The image display unit 28 can arbitrarily turn on / off the display according to an instruction from the system control unit 50. When the display is turned off, the power consumption of the digital camera 100 can be greatly reduced.

メモリ30は、撮影した静止画像や動画像を格納するためのメモリで、所定枚数の静止画像や所定時間分の動画像を格納するのに十分な記憶容量を備えている。これにより、複数枚の静止画像を連続して撮影する連射撮影やパノラマ撮影の場合にも、高速かつ大量の画像データの書き込みをメモリ30に対して行うことが可能となる。また、このメモリ30はシステム制御部50の作業領域としても使用することが可能である。圧縮/伸長部32は、例えば適応離散コサイン変換(ADCT)やウェーブレット(Wavelet)変換等により画像データを圧縮及び伸長することができる。即ち、メモリ30に格納された画像データを読み込んで圧縮処理を行ったり、或いは圧縮された画像データを読み込んで伸長処理を行い、その処理を終えたデータをメモリ30に書き込むことができる。   The memory 30 is a memory for storing captured still images and moving images, and has a storage capacity sufficient to store a predetermined number of still images and a predetermined amount of moving images. This makes it possible to write a large amount of image data to the memory 30 at high speed even in continuous shooting or panoramic shooting in which a plurality of still images are continuously shot. The memory 30 can also be used as a work area for the system control unit 50. The compression / decompression unit 32 can compress and decompress image data by, for example, adaptive discrete cosine transform (ADCT), wavelet transform, or the like. In other words, the image data stored in the memory 30 can be read and compressed, or the compressed image data can be read and decompressed, and the processed data can be written to the memory 30.

露光制御部40は、絞り機能を有するシャッタ12を制御しており、フラッシュユニット48と連携することによりフラッシュ調光機能も有している。測距制御部42は、レンズ10のフォーカシングを制御し、レンズ10のフォーカシング位置から被写体の距離を検出する。ズーム制御部44は、レンズ10のズーミングを制御する。バリア制御部46は保護部102の動作を制御する。フラッシュユニット(フラッシュ)48は、AF補助光の投光機能、フラッシュ調光機能も有する。露光制御部40、測距制御部42はTTL方式を用いて制御されており、撮像した画像データを画像処理部20によって演算した演算結果に基づき、システム制御部50が露光制御部40、測距制御部42、バリア制御部46に対して制御を行う。補助光源49は、暗い場合にスルー表示の際の補助光源として使用したり、測距制御部42の補助光として使用したり、更には赤目緩和用の照明として使用される。   The exposure control unit 40 controls the shutter 12 having a diaphragm function, and also has a flash light control function in cooperation with the flash unit 48. The distance measurement control unit 42 controls the focusing of the lens 10 and detects the distance of the subject from the focusing position of the lens 10. The zoom control unit 44 controls zooming of the lens 10. The barrier control unit 46 controls the operation of the protection unit 102. The flash unit (flash) 48 also has an AF auxiliary light projecting function and a flash light control function. The exposure control unit 40 and the distance measurement control unit 42 are controlled using the TTL method. Based on the calculation result obtained by calculating the captured image data by the image processing unit 20, the system control unit 50 performs the exposure control unit 40 and the distance measurement. The controller 42 and the barrier controller 46 are controlled. The auxiliary light source 49 is used as an auxiliary light source for through display when it is dark, used as auxiliary light for the distance measurement control unit 42, and further used as red-eye reduction illumination.

システム制御部50は、このデジタルカメラ100の全体動作を制御している。メモリ52は、このシステム制御部50の動作用の定数、変数、プログラム等を記憶しており、ワークメモリとしても使用される。表示部54は、システム制御部50でのプログラムの実行に応じて、文字、画像、音声等を用いて動作状態やメッセージ等を表示する液晶表示ユニット、スピーカ等を含んでいる。この表示部54は、デジタルカメラ100の操作部70の近辺の視認し易い位置に単数或いは複数個所設置され、例えばLCDやLED、発音素子等の組み合わせにより構成されている。また、この表示部54は、その一部の機能が光学ファインダ104内に設置されている。この表示部54の表示内容の内、LCD等に表示するものとしては、シングルショット/連写撮影表示、セルフタイマ表示、圧縮率表示、記録画素数表示、記録枚数表示、残撮影可能枚数表示、シャッタスピード表示、絞り値表示、露出補正表示等がある。また、フラッシュ表示、赤目緩和表示、赤目補正表示、マクロ撮影表示、ブザー設定表示、時計用電池残量表示、電池残量表示、エラー表示、複数桁の数字による情報表示、記憶媒体200,210の着脱状態表示、通信I/F動作表示、日付け・時刻表示等もある。また、この表示部54の表示内容の内、光学ファインダ104に表示するものとしては、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタスピード表示、絞り値表示、露出補正表示等がある。   The system control unit 50 controls the overall operation of the digital camera 100. The memory 52 stores constants, variables, programs, and the like for operation of the system control unit 50, and is also used as a work memory. The display unit 54 includes a liquid crystal display unit, a speaker, and the like that display an operation state, a message, and the like using characters, images, sounds, and the like according to execution of the program by the system control unit 50. The display unit 54 is installed at a single or a plurality of positions in the vicinity of the operation unit 70 of the digital camera 100 so as to be easily visible, and is configured by a combination of an LCD, an LED, a sound generation element, and the like. In addition, a part of the function of the display unit 54 is installed in the optical viewfinder 104. Among the display contents of the display unit 54, what is displayed on the LCD or the like includes single shot / continuous shooting display, self-timer display, compression rate display, recording pixel number display, recording number display, remaining image number display, There are shutter speed display, aperture value display, exposure compensation display, and the like. Also, flash display, red-eye reduction display, red-eye correction display, macro shooting display, buzzer setting display, clock battery level display, battery level display, error display, information display with multiple digits, and storage media 200 and 210 There are also attachment / detachment status display, communication I / F operation display, date / time display, and the like. Among the display contents of the display unit 54, what is displayed on the optical viewfinder 104 includes in-focus display, camera shake warning display, flash charge display, shutter speed display, aperture value display, exposure correction display, and the like.

不揮発性メモリ56は、電気的に消去及び記録(記憶)が可能なメモリであり、例えばEEPROM等が用いられる。モード切り替えレバー60、シャッタスイッチ62,64、画像表示オン/オフスイッチ66、クイックレビューオン/オフスイッチ68及び操作部70は、システム制御部50の各種の動作指示を入力するための操作ユニットである。これらは、スイッチやダイアル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される。   The nonvolatile memory 56 is an electrically erasable and recordable (storable) memory. For example, an EEPROM or the like is used. The mode switching lever 60, shutter switches 62 and 64, image display on / off switch 66, quick review on / off switch 68, and operation unit 70 are operation units for inputting various operation instructions of the system control unit 50. . These are composed of one or a plurality of combinations such as a switch, dial, touch panel, pointing by eye-gaze detection, and a voice recognition device.

次にここで、これらの操作ユニットを具体的に説明する。
モード切り替えレバー60は、電源オフ、再生モード、動画撮影モード、静止画撮影モード等の各機能モードを切り替え設定することができる。
Next, these operation units will be specifically described here.
The mode switching lever 60 can switch and set each function mode such as power-off, playback mode, moving image shooting mode, and still image shooting mode.

シャッタスイッチ(SW1)62は、シャッターボタン303(図2参照)の操作途中でオンとなり、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理等の動作開始を指示する。シャッタスイッチ(SW2)64は、シャッターボタン303の操作完了でオンとなり、フラッシュ撮影モードの場合は、フラッシュユニット48の発光制御の開始指示を行なう。また、撮像素子14から読み出した信号をA/D変換器16、メモリ制御部22を介してメモリ30に画像データとして書き込む露光処理の開始指示も行なう。また、画像処理部20やメモリ制御部22での演算を用いた現像処理の開始指示も行なう。さらに、メモリ30から画像データを読み出し、赤目検出及び補正処理、圧縮/伸長部32で圧縮を行い、記憶媒体200或いは210に画像データを書き込む記録(記憶)処理の開始指示も行なう。   The shutter switch (SW1) 62 is turned on during the operation of the shutter button 303 (see FIG. 2), and instructs to start operations such as AF (autofocus) processing, AE (automatic exposure) processing, and AWB (auto white balance) processing. To do. The shutter switch (SW2) 64 is turned on when the operation of the shutter button 303 is completed. In the flash photographing mode, the shutter switch (SW2) 64 instructs to start the light emission control of the flash unit 48. In addition, an instruction to start an exposure process for writing a signal read from the image sensor 14 as image data to the memory 30 via the A / D converter 16 and the memory control unit 22 is also given. In addition, an instruction to start development processing using calculation in the image processing unit 20 and the memory control unit 22 is also given. Further, the image data is read from the memory 30, red-eye detection and correction processing, compression is performed by the compression / decompression unit 32, and an instruction to start recording (storage) processing for writing the image data to the storage medium 200 or 210 is also given.

画像表示オン/オフスイッチ66は、画像表示部28への画像表示のオン/オフを設定することができる。この機能により、光学ファインダ104を用いて撮影を行う際に、TFT,LCD等からなる画像表示部28への電力供給を遮断することにより省電力を図ることが可能となる。   The image display on / off switch 66 can set on / off of image display on the image display unit 28. With this function, when photographing is performed using the optical viewfinder 104, it is possible to save power by cutting off the power supply to the image display unit 28 including TFT, LCD, and the like.

クイックレビューオン/オフスイッチ68は、撮影直後に、その撮影した画像データを自動再生するクイックレビュー機能を設定する。尚、本実施形態では、特に画像表示部28をオフにした場合におけるクイックレビュー機能を設定する機能を備えるものとする。   The quick review on / off switch 68 sets a quick review function for automatically reproducing the captured image data immediately after shooting. In the present embodiment, it is assumed that a function for setting a quick review function when the image display unit 28 is turned off is provided.

赤目補正オン/オフスイッチ69は、撮影画像に対して赤目検出及びその赤目部分の補正を行うか否かの赤目補正機能を設定する。尚、本実施形態では、特に赤目補正オン/オフスイッチ69をオンにしたときにのみ赤目検出及び赤目補正を行うものとする。   The red-eye correction on / off switch 69 sets a red-eye correction function as to whether to detect red-eye and correct the red-eye portion of the captured image. In the present embodiment, red-eye detection and red-eye correction are performed only when the red-eye correction on / off switch 69 is turned on.

操作部70は、各種ボタンやタッチパネル等を有し、これらスイッチやボタンには、メニューボタン、セットボタン、マクロボタン、マルチ画面再生改ページボタン、フラッシュ設定ボタン、単写/連写/セルフタイマ切り替えボタン等がある。また、メニュー移動+(プラス)ボタン、メニュー移動−(マイナス)ボタン、再生画像移動+(プラス)ボタン、再生画像移動−(マイナス)ボタン等もある。さらに、撮影画質選択ボタン、露出補正ボタン、日付/時間設定ボタン、赤目緩和ボタン、赤目編集ボタン、赤目補正プリントボタン等もある。   The operation unit 70 includes various buttons, a touch panel, and the like. These switches and buttons include a menu button, a set button, a macro button, a multi-page playback page break button, a flash setting button, single shooting / continuous shooting / self-timer switching. There are buttons. There are also a menu movement + (plus) button, menu movement-(minus) button, reproduction image movement + (plus) button, reproduction image movement-(minus) button, and the like. Further, there are a shooting image quality selection button, an exposure correction button, a date / time setting button, a red-eye reduction button, a red-eye edit button, a red-eye correction print button, and the like.

電源制御部80は、電池検出部、DC−DCコンバータ、通電するブロックを切り替えるスイッチ部等を備えている。そして、電池の装着の有無、電池の種類、電池残量の検出を行い、その検出結果及びシステム制御部50の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記憶媒体を含む各部へ供給する。82,84はコネクタ、電源86は、アルカリ電池やリチウム電池等の一次電池やNiCD電池、NiMH電池、Liイオン電池等の二次電池或はACアダプタ等を備える。   The power supply control unit 80 includes a battery detection unit, a DC-DC converter, a switch unit that switches a block to be energized, and the like. Then, the presence / absence of a battery, the type of battery, and the remaining battery level are detected, the DC-DC converter is controlled based on the detection result and the instruction of the system control unit 50, and the necessary voltage is stored for a necessary period. Supply to each part including the medium. Reference numerals 82 and 84 denote connectors, and the power source 86 includes primary batteries such as alkaline batteries and lithium batteries, secondary batteries such as NiCD batteries, NiMH batteries, and Li ion batteries, or AC adapters.

90及び94は、メモリカードやハードディスク等の記憶媒体とのインタフェース、92及び96はメモリカードやハードディスク等の記憶媒体と接続を行うコネクタである。記憶媒体着脱検知部98は、コネクタ92及び/或いは96に記憶媒体200或いは210が装着されているか否かを検知する。   Reference numerals 90 and 94 denote interfaces with a storage medium such as a memory card or a hard disk, and reference numerals 92 and 96 denote connectors for connecting to a storage medium such as a memory card or a hard disk. The storage medium attachment / detachment detection unit 98 detects whether or not the storage medium 200 or 210 is attached to the connector 92 and / or 96.

尚、本実施形態では、記憶媒体を取り付けるインターフェース及びコネクタを2系統有するものとして説明している。もちろん、この記憶媒体を取り付けるインターフェース及びコネクタは、単数或いは複数いずれの系統数を備える構成としても構わない。また、異なる規格のインターフェース及びコネクタを組み合わせて備える構成としても構わない。インターフェース及びコネクタとしては、PCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成して構わない。   In the present embodiment, the description has been given assuming that there are two systems of interfaces and connectors for attaching the storage medium. Of course, the interface and connector to which the storage medium is attached may have a single or plural number of systems. Moreover, it is good also as a structure provided with combining the interface and connector of a different standard. The interface and connector may be configured using a PCMCIA card, a CF (Compact Flash (registered trademark)) card, or the like that conforms to a standard.

更に、インタフェース90及び94、そしてコネクタ92及び96をPCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成した場合、以下の処理を行なうことができる。即ち、LANカードやモデムカード、USBカード、IEEE1394カード、P1284カード、SCSIカード、PHS等の通信カード、等の各種通信カードを接続する。これにより、他のコンピュータやプリンタ等の周辺機器との間で画像データや画像データに付属した管理情報を転送し合うことができる。   Further, when the interfaces 90 and 94 and the connectors 92 and 96 are configured using a PCMCIA card, a CF (Compact Flash (registered trademark)) card, or the like, the following processing can be performed. That is, various communication cards such as a LAN card, a modem card, a USB card, an IEEE 1394 card, a P1284 card, a SCSI card, and a communication card such as a PHS are connected. As a result, image data and management information attached to the image data can be transferred to and from peripheral devices such as other computers and printers.

保護部102は、このデジタルカメラ100のレンズ10を含む撮像部を覆う事により、撮像部の汚れや破損を防止するバリアとして機能している。光学ファインダ104は、画像表示部28による電子ファインダ機能を使用することなしに、光学ファインダのみを用いて撮影を行うことが可能である。またこの光学ファインダ104には、表示部54の一部の機能、例えば、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタスピード表示、絞り値表示、露出補正表示などが設置されている。通信部110は、RS232CやUSB、IEEE1394、P1284、SCSI、モデム、LAN、無線通信、等の各種通信機能を有する。アンテナ(コネクタ)112は、通信部110によりデジタルカメラ100を他の機器と接続するもので、有線による接続の場合はコネクタ、無線通信の場合はアンテナである。   The protection unit 102 functions as a barrier that prevents the imaging unit from being soiled or damaged by covering the imaging unit including the lens 10 of the digital camera 100. The optical viewfinder 104 can take an image using only the optical viewfinder without using the electronic viewfinder function of the image display unit 28. The optical viewfinder 104 is provided with some functions of the display unit 54, such as a focus display, a camera shake warning display, a flash charge display, a shutter speed display, an aperture value display, and an exposure correction display. The communication unit 110 has various communication functions such as RS232C, USB, IEEE1394, P1284, SCSI, modem, LAN, and wireless communication. An antenna (connector) 112 is used to connect the digital camera 100 to another device by the communication unit 110, and is a connector in the case of wired connection, and an antenna in the case of wireless communication.

記憶媒体200は、メモリカードやハードディスク等の記憶媒体である。この記憶媒体200は、半導体メモリや磁気ディスク等から構成される記憶部202、デジタルカメラ100とのインタフェース204、デジタルカメラ100と接続を行うコネクタ206を備えている。また記憶媒体210はメモリカードやハードディスク等の記憶媒体である。この記憶媒体210も半導体メモリや磁気ディスク等から構成される記憶部212、デジタルカメラ100とのインタフェース214、デジタルカメラ100と接続を行うコネクタ216を備える。   The storage medium 200 is a storage medium such as a memory card or a hard disk. The storage medium 200 includes a storage unit 202 composed of a semiconductor memory, a magnetic disk, or the like, an interface 204 with the digital camera 100, and a connector 206 for connecting with the digital camera 100. The storage medium 210 is a storage medium such as a memory card or a hard disk. The storage medium 210 also includes a storage unit 212 composed of a semiconductor memory, a magnetic disk, or the like, an interface 214 with the digital camera 100, and a connector 216 that connects to the digital camera 100.

図2は、本実施形態のデジタルカメラの外観斜視図である。   FIG. 2 is an external perspective view of the digital camera of the present embodiment.

302はモード切り替えレバーで、電源オフ、再生モード、動画撮影モード、静止画撮影モード等の各機能モードを切り替え設定することができる。なお、モード切り替えレバー302は、図1におけるモード切り替えレバー60に対応する。303はシャッターボタンを示す。カメラの撮影画像は画像表示部304に表示されるが、これは通常LCD(液晶ディスプレイ)を使用しているので、以下、LCDと称する。なお、画像表示部304は、図1における画像表示部28に対応する。静止画像及び/或いは動画像の再生等のための画面もこのLCD304に表示される。305はMENUボタンで、撮影パラメータやカメラの設定を変更するためのメニュー画面に出入りするためのボタンである。306はSETボタンで、メニューの決定等に使用する。307は削除ボタンで、画像の削除を指定することができる。308はDISPボタンで、LCD304における表示の有り無しなどを切り替えるボタンである。なお、DISPボタン308は、図1における画像表示オン/オフスイッチ66に対応する。309は十字ボタンで、この上下左右ボタンを使ってメニュー画面での項目の移動などを行ったり、再生モードでは左右ボタンを押して画像送りを行ったりするのに使用する。また、69は撮影された画像の赤目を補正するモードに入るための赤目補正スイッチである。   Reference numeral 302 denotes a mode switching lever which can switch and set each function mode such as power-off, playback mode, moving image shooting mode, still image shooting mode, and the like. The mode switching lever 302 corresponds to the mode switching lever 60 in FIG. Reference numeral 303 denotes a shutter button. An image captured by the camera is displayed on the image display unit 304, which is normally referred to as an LCD since it normally uses an LCD (liquid crystal display). The image display unit 304 corresponds to the image display unit 28 in FIG. A screen for reproducing a still image and / or a moving image is also displayed on the LCD 304. Reference numeral 305 denotes a MENU button that is used to enter and exit a menu screen for changing shooting parameters and camera settings. A SET button 306 is used for determining a menu. Reference numeral 307 denotes a delete button, which can specify deletion of an image. A DISP button 308 is a button for switching presence / absence of display on the LCD 304. The DISP button 308 corresponds to the image display on / off switch 66 in FIG. Reference numeral 309 denotes a cross button, which is used to move items on the menu screen using the up / down / left / right buttons, or to push the left / right buttons to perform image forwarding in the playback mode. Reference numeral 69 denotes a red-eye correction switch for entering a mode for correcting red-eye of a photographed image.

図3A及び図3Bは、本実施形態に係るデジタルカメラ100におけるメイン処理ルーチンでの動作を説明するフローチャートである。   3A and 3B are flowcharts for explaining the operation in the main processing routine in the digital camera 100 according to the present embodiment.

この処理は、例えば電池交換後などの電源投入により開始され、まずステップS101で、システム制御部50は、メモリ52の各種フラグや制御変数等を初期化し、ステップS102で、画像表示部28及び表示部54の表示をオフ状態に初期設定する。次にステップS103で、モード切り替えレバー60の設定位置を判定し、モード切り替えレバー60が電源オフに設定されていたならばステップS105に進み、各表示部の表示を終了状態に変更し、保護部102のバリアを閉じて撮像部を保護する。また、フラグや制御変数等を含む必要なパラメータや設定値、設定モードを不揮発性メモリ56に記憶し、電源制御部80により画像表示部28を含むデジタルカメラ100各部の不要な電源を遮断する等の終了処理を行った後、再びステップS103に戻る。   This process is started when the power is turned on, for example, after battery replacement. First, in step S101, the system control unit 50 initializes various flags and control variables in the memory 52, and in step S102, the image display unit 28 and the display are displayed. The display of the unit 54 is initialized to the off state. Next, in step S103, the setting position of the mode switching lever 60 is determined. If the mode switching lever 60 is set to power off, the process proceeds to step S105, the display of each display unit is changed to the end state, and the protection unit The imaging unit is protected by closing the barrier 102. In addition, necessary parameters, setting values, and setting modes including flags and control variables are stored in the nonvolatile memory 56, and unnecessary power sources for various parts of the digital camera 100 including the image display unit 28 are shut off by the power source control unit 80. Then, the process returns to step S103 again.

またステップS103で、モード切り替えレバー60が撮影モードに設定されていればステップS106に進むが、その他のモードに設定されていればステップS104に進んで、そのモード切り替えレバー60で選択されたモードに応じた処理を実行する。そして、その処理を終えるとステップS103に戻る。   In step S103, if the mode switching lever 60 is set to the shooting mode, the process proceeds to step S106. If the other mode is set, the process proceeds to step S104, and the mode selected by the mode switching lever 60 is set. Perform the appropriate process. Then, when the process is finished, the process returns to step S103.

撮影モードが設定されている場合はステップS106に進み、電源制御部80からの信号に基づいて、電池等により構成される電源86の残容量や動作情況がデジタルカメラ100の動作に問題があるか否かを判断する。問題があると判断するとステップS108に進み、表示部54を用いて画像や音声により所定の警告表示を行い、その後、ステップS103に戻る。   If the shooting mode is set, the process proceeds to step S106, and based on the signal from the power control unit 80, is the remaining capacity of the power source 86 constituted by a battery or the operation status problematic in the operation of the digital camera 100? Judge whether or not. If it is determined that there is a problem, the process proceeds to step S108, where a predetermined warning is displayed by an image or sound using the display unit 54, and then the process returns to step S103.

ステップS106で、電源86に問題が無いと判断するとステップS107に進み、記憶媒体200或いは210の動作状態がデジタルカメラ100の動作、特に記憶媒体に対する画像データの記憶再生動作に問題があるか否かを判断する。そして、問題があると判断すると前述のステップS108に進み、表示部54を用いて、画像や音声により所定の警告表示を行った後にステップS103に戻る。   If it is determined in step S106 that there is no problem with the power source 86, the process proceeds to step S107, and whether or not the operation state of the storage medium 200 or 210 has a problem in the operation of the digital camera 100, particularly in the storage / reproduction operation of image data with respect to the storage medium. Judging. If it is determined that there is a problem, the process proceeds to step S108 described above, and a predetermined warning is displayed by an image or sound using the display unit 54, and then the process returns to step S103.

ステップS107で問題がないと判断するとステップS109に進み、表示部54を用いて画像や音声によりデジタルカメラ100の各種設定状態のUI表示を行う。尚、画像表示部28の画像表示がオン(画像表示オン/オフスイッチ66がオン)であったならば、画像表示部28も用いて画像や音声によりデジタルカメラ100の各種設定状態のUI表示を行ってもよい。こうしてユーザーによる各種設定がなされる。   If it is determined in step S107 that there is no problem, the process proceeds to step S109, and UI display of various setting states of the digital camera 100 is performed using an image or sound using the display unit 54. If the image display of the image display unit 28 is on (the image display on / off switch 66 is on), the UI display of various setting states of the digital camera 100 is also performed using the image display unit 28 using the image and sound. You may go. Thus, various settings are made by the user.

次にステップS110で、赤目補正オン/オフスイッチ69の設定状態を調べ、赤目補正がオンに設定されていればステップS111に進み、赤目補正フラグをオンに設定する。一方、ステップS110で、赤目補正スイッチがオフに設定されているとステップS112に進み、赤目補正フラグをオフにする。   In step S110, the setting state of the red-eye correction on / off switch 69 is checked. If red-eye correction is set to on, the process proceeds to step S111, and the red-eye correction flag is set to on. On the other hand, if the red-eye correction switch is set to OFF in step S110, the process proceeds to step S112, and the red-eye correction flag is turned off.

次にステップS113に進み、画像表示オン/オフスイッチ66の設定状態を調べ、画像表示がオンに設定されていればステップS114に進み、メモリ52の画像表示フラグをオンに設定する。次にステップS115で、画像表示部28への画像表示をオン状態に設定する。更に、ステップS116で、撮像素子14で撮像した画像データを逐次表示するスルー表示状態に設定してステップS119(図3B)に進む。このスルー表示状態では、撮像素子14、A/D変換器16、画像処理部20、メモリ制御部22を介して画像表示用メモリ24に逐次書き込まれたデータを、メモリ制御部22、D/A変換器26を介して画像表示部28により逐次表示する。これにより、電子ファインダ機能を実現している。   In step S113, the setting state of the image display on / off switch 66 is checked. If the image display is set to on, the process proceeds to step S114, and the image display flag in the memory 52 is set to on. In step S115, the image display on the image display unit 28 is set to an on state. Further, in step S116, the image data captured by the image sensor 14 is set to a through display state in which the image data is sequentially displayed, and the process proceeds to step S119 (FIG. 3B). In this through display state, data sequentially written in the image display memory 24 via the image sensor 14, the A / D converter 16, the image processing unit 20, and the memory control unit 22 are stored in the memory control unit 22, the D / A. The images are sequentially displayed by the image display unit 28 via the converter 26. Thereby, the electronic finder function is realized.

一方、ステップS113で、画像表示オン/オフスイッチ66が画像表示オフに設定されているとステップS117に進み、画像表示フラグをオフにするとともに、ステップS118で画像表示部28の表示をオフ状態に設定してステップS119に進む。この画像表示オフの場合は、画像表示部28による電子ファインダ機能を使用せず、光学ファインダ104を用いて撮影する。この場合、電力消費量の大きい画像表示部28やD/A変換器26等の消費電力を削減することが可能となる。   On the other hand, if the image display on / off switch 66 is set to image display off in step S113, the process proceeds to step S117, the image display flag is turned off, and the display of the image display unit 28 is turned off in step S118. Set and go to step S119. When the image display is off, the image is taken using the optical viewfinder 104 without using the electronic viewfinder function of the image display unit 28. In this case, it is possible to reduce power consumption of the image display unit 28, the D / A converter 26, and the like that consume a large amount of power.

ステップS119では、シャッタスイッチ(SW1)62が押されているかどうかを調べ、押されていなければステップS103に戻る。一方、シャッタスイッチ(SW1)62が押されたならばステップS120に進み、画像表示フラグがオンに設定されているかをみる。オンに設定されていればステップS121に進み、画像表示部28の表示状態をフリーズ表示状態に設定してステップS122に進む。このフリーズ表示状態では、撮像素子14、A/D変換器16、画像処理部20、メモリ制御部22を介した画像表示用メモリ24の画像データの書き換えを禁止する。そして、最後に書き込まれた画像データを、メモリ制御部22、D/A変換器26を介して画像表示部28により表示することにより、フリーズした映像を光学ファインダ104に表示している。   In step S119, it is checked whether or not the shutter switch (SW1) 62 is pressed. If not, the process returns to step S103. On the other hand, if the shutter switch (SW1) 62 has been pressed, the process proceeds to step S120 to check whether the image display flag is set to ON. If it is set to ON, the process proceeds to step S121, the display state of the image display unit 28 is set to the freeze display state, and the process proceeds to step S122. In this freeze display state, rewriting of image data in the image display memory 24 via the image sensor 14, A / D converter 16, image processing unit 20, and memory control unit 22 is prohibited. The image data written last is displayed by the image display unit 28 via the memory control unit 22 and the D / A converter 26, thereby displaying the frozen image on the optical viewfinder 104.

ステップS120で、画像表示フラグがオフであればステップS122に進む。ステップS122では、測距処理を行ってレンズ10の焦点を被写体に合わせ、更に測光処理を行って絞り値及びシャッタ速度を決定する。この測光処理では、必要であればフラッシュの設定も行う。   If the image display flag is off in step S120, the process proceeds to step S122. In step S122, a distance measurement process is performed to focus the lens 10 on the subject, and a photometry process is performed to determine an aperture value and a shutter speed. In this photometric process, the flash is set if necessary.

ステップS122で、測距及び測光処理を終えるとステップS123に進み、画像表示フラグの状態を判定する。ここで画像表示フラグがオンに設定されているとステップS124に進み、画像表示部28の表示状態をスルー表示状態に設定してステップS125に進む。尚、ステップS124でのスルー表示状態は、ステップS116でのスルー状態と同じ動作である。   In step S122, when the distance measurement and photometry processing ends, the process proceeds to step S123, and the state of the image display flag is determined. If the image display flag is set to ON, the process proceeds to step S124, the display state of the image display unit 28 is set to the through display state, and the process proceeds to step S125. The through display state in step S124 is the same operation as the through state in step S116.

次にステップS125で、シャッタスイッチ(SW2)64が押されずに、更にシャッタスイッチ(SW1)62もオフになるとステップS103(図3A)に戻る。   In step S125, if the shutter switch (SW2) 64 is not pressed and the shutter switch (SW1) 62 is turned off, the process returns to step S103 (FIG. 3A).

一方、ステップS125でシャッタスイッチ(SW2)64が押されるとステップS127に進み、画像表示フラグがオンかどうかを判定する。画像表示フラグがオンであればステップS128に進み、画像表示部28の表示状態を固定色表示状態に設定してステップS129に進む。この固定色表示状態では、撮像素子14、A/D変換器16、画像処理部20、メモリ制御部22を介して画像表示用メモリ24に書き込まれた撮影した画像データを表示しない。その代わりに、差し替えた固定色の画像データを、メモリ制御部22、D/A変換器26を介して画像表示部28に表示する。こうして固定色の映像を電子ファインダに表示している。   On the other hand, when the shutter switch (SW2) 64 is pressed in step S125, the process proceeds to step S127 to determine whether the image display flag is on. If the image display flag is on, the process proceeds to step S128, the display state of the image display unit 28 is set to the fixed color display state, and the process proceeds to step S129. In this fixed color display state, the captured image data written in the image display memory 24 via the image sensor 14, A / D converter 16, image processing unit 20, and memory control unit 22 is not displayed. Instead, the replaced fixed-color image data is displayed on the image display unit 28 via the memory control unit 22 and the D / A converter 26. In this way, a fixed color image is displayed on the electronic viewfinder.

またステップS127で、画像表示フラグがオフであればステップS129の撮影処理に進む。このステップS129では、撮像素子14、A/D変換器16、画像処理部20、メモリ制御部22を介して、或いはA/D変換器16から直接メモリ制御部22を介して、撮影した画像データをメモリ30に書き込む露光処理を行なう。また、メモリ制御部22、そして必要に応じて画像処理部20を用いて、メモリ30に書き込まれた画像データを読み出して各種処理を行う現像処理を行なう。これらの露光処理と現像処理とをあわせたものが撮影処理である。   If it is determined in step S127 that the image display flag is off, the process proceeds to step S129. In this step S129, the captured image data is acquired via the image sensor 14, the A / D converter 16, the image processing unit 20, the memory control unit 22, or directly from the A / D converter 16 via the memory control unit 22. Is written in the memory 30. Further, by using the memory control unit 22 and, if necessary, the image processing unit 20, the image data written in the memory 30 is read and various development processes are performed. A combination of the exposure process and the development process is a photographing process.

こうしてステップS129の撮影処理が実行されるとステップS130に進み、予めクイックレビューオン/オフスイッチの状態を検出して、画像表示フラグがオンかどうかを判定する。画像表示フラグがオンであればステップS133に進み、ステップS110において赤目補正スイッチがオンにされていて赤目補正フラグが設定されているか否かを判定する。赤目補正フラグが設定されている場合には、ステップS134で赤目自動補正を行ない、ステップS135に進んで、赤目が自動補正された画像のクリックレビュー表示を行なう。なお、赤目自動補正の詳細については図4のフローチャートを用いて後述する。一方、ステップS133において、赤目補正フラグが設定されていなかった場合には、そのままステップS135に進み、赤目の補正がされていない画像をクイックレビュー表示する。なお、ステップS130で画像表示フラグがオンとなっている状態は、撮影中も画像表示部28が電子ファインダとして常に表示された状態であり、撮影直後のクイックレビュー表示も行われる。   When the photographing process of step S129 is executed in this way, the process proceeds to step S130, and the state of the quick review on / off switch is detected in advance to determine whether the image display flag is on. If the image display flag is on, the process proceeds to step S133, and it is determined in step S110 whether the red-eye correction switch is turned on and the red-eye correction flag is set. If the red-eye correction flag is set, automatic red-eye correction is performed in step S134, and the process proceeds to step S135 to perform a click review display of the image with the red-eye automatically corrected. Details of the automatic red-eye correction will be described later with reference to the flowchart of FIG. On the other hand, if the red-eye correction flag has not been set in step S133, the process proceeds to step S135 as it is, and an image that has not been corrected for red-eye is displayed as a quick review. Note that the state in which the image display flag is turned on in step S130 is a state in which the image display unit 28 is always displayed as an electronic viewfinder even during shooting, and quick review display immediately after shooting is also performed.

ステップS130で、画像表示フラグがオフであればステップS131に進み、クイックレビューフラグがオンかどうかをみる。クイックレビューフラグがオンであればステップS132に進み、画像表示部28の画像表示をオン状態に設定してから上記のステップS133〜ステップS135の動作を行ない、その後、ステップS136に進む。   If it is determined in step S130 that the image display flag is off, the process advances to step S131 to check whether the quick review flag is on. If the quick review flag is on, the process proceeds to step S132, the image display of the image display unit 28 is set to the on state, the above-described operations of steps S133 to S135 are performed, and then the process proceeds to step S136.

またステップS130で画像表示フラグがオフで、ステップS131でクイックレビューフラグもオフであれば、画像表示部28をオフ状態のままでステップS136の記録(記憶)処理に進む。この場合は、撮影を行った後でも画像表示部28は消えたままであり、クイックレビュー表示も行われない。これは、光学ファインダ104を用いて撮影を続ける場合のように、撮影直後の撮影画像の確認が不要で、画像表示部28の電子ファインダ機能を使用せずに省電力を重視する使用方法である。   If the image display flag is off in step S130 and the quick review flag is off in step S131, the process proceeds to the recording (storing) process in step S136 while the image display unit 28 remains off. In this case, the image display unit 28 remains off even after shooting, and no quick review display is performed. This is a usage method that places importance on power saving without using the electronic viewfinder function of the image display unit 28 without the need to check the photographed image immediately after photographing, as in the case of continuing photographing using the optical viewfinder 104. .

ステップS136では、メモリ30に書き込まれた撮影した画像データを読み出して、メモリ制御部22、及び必要に応じて画像処理部20を用いて各種画像処理を実行する。また圧縮/伸長部32を用いて設定したモードに応じた画像圧縮処理を行った後、記憶媒体200或いは210へ、その圧縮した画像データの書き込みを行う記録処理を実行する。   In step S136, the captured image data written in the memory 30 is read out, and various image processes are executed using the memory control unit 22 and, if necessary, the image processing unit 20. Further, after performing image compression processing according to the mode set using the compression / decompression unit 32, recording processing for writing the compressed image data to the storage medium 200 or 210 is executed.

こうしてステップS136の記録処理が終了するとステップS137に進み、シャッタスイッチ(SW2)64が押された状態かどうかを調べ、押されていればステップS138に進み、連写フラグの状態を判定する。ここで連写フラグがオンであれば、連続して撮影を行うためにステップS129に進み、次の映像の撮影を行う。一方、ステップS138で、連写フラグがオフであればステップS137に進み、シャッタースイッチ(SW2)64が放されるまでステップS137、S138の処理を繰り返す。   When the recording process of step S136 is completed in this way, the process proceeds to step S137 to check whether the shutter switch (SW2) 64 has been pressed. If it has been pressed, the process proceeds to step S138, and the state of the continuous shooting flag is determined. If the continuous shooting flag is ON, the process proceeds to step S129 to continuously shoot and the next video is shot. On the other hand, if the continuous shooting flag is off in step S138, the process proceeds to step S137, and the processes in steps S137 and S138 are repeated until the shutter switch (SW2) 64 is released.

ステップS137で、シャッタースイッチ(SW2)64がオフされた場合はステップS139に進み、所定のミニマムレビュー時間が経過するのを待ってステップS140に進む。ステップS140では、画像表示フラグがオンかどうかを調べ、オンであればステップS141に進み、画像表示部28の表示状態をスルー表示状態に設定してステップS143に進む。これにより、画像表示部28でのクイックレビュー表示によって撮影画像を確認した後に、次の撮影のために撮像した画像データを逐次表示するスルー表示状態にすることができる。またステップS140で、画像表示フラグがオフであればステップS142に進み、画像表示部28の表示をオフ状態に設定してステップS143に進む。これにより、画像表示部28でのクイックレビュー表示によって撮影画像を確認した後に、省電力のために画像表示部28の機能を停止して、電力消費量の大きい画像表示部28やD/A変換器26等の消費電力を削減することが可能となる。   If the shutter switch (SW2) 64 is turned off in step S137, the process proceeds to step S139, and after waiting for a predetermined minimum review time to elapse, the process proceeds to step S140. In step S140, it is checked whether the image display flag is on. If it is on, the process proceeds to step S141, the display state of the image display unit 28 is set to the through display state, and the process proceeds to step S143. Thereby, after confirming the captured image by the quick review display on the image display unit 28, it is possible to enter a through display state in which image data captured for the next imaging is sequentially displayed. If the image display flag is off in step S140, the process proceeds to step S142, the display of the image display unit 28 is set to the off state, and the process proceeds to step S143. Thus, after confirming the captured image by the quick review display on the image display unit 28, the function of the image display unit 28 is stopped for power saving, and the image display unit 28 or D / A conversion with large power consumption is stopped. It is possible to reduce the power consumption of the device 26 and the like.

次にステップS143では、シャッタスイッチ(SW1)62がオンされた状態かどうかを調べ、そうであればステップS125に進んで次の撮影に備える。またステップS143で、シャッタスイッチ(SW1)62がオフされている場合は、一連の撮影動作を終えてステップS103(図3A)に戻る。   In step S143, it is checked whether the shutter switch (SW1) 62 is turned on. If so, the process proceeds to step S125 to prepare for the next shooting. If it is determined in step S143 that the shutter switch (SW1) 62 is off, the series of shooting operations is terminated and the process returns to step S103 (FIG. 3A).

図4は、図3BのステップS134における赤目自動補正処理の流れを示すフローチャートである。このステップS134における赤目補正処理は撮影直後のレックレビュー時に実施されるものである。   FIG. 4 is a flowchart showing a flow of red-eye automatic correction processing in step S134 of FIG. 3B. The red-eye correction process in step S134 is performed during a REC review immediately after shooting.

カメラによるフラッシュ撮影が行なわれると、赤目が発生している可能性があるので、図3BのステップS133において赤目補正フラグが設定されている場合に、赤目の自動補正を行なう。   When flash photography is performed by the camera, there is a possibility that red eyes are generated. Therefore, when the red eye correction flag is set in step S133 in FIG. 3B, automatic red eye correction is performed.

まず、ステップ402においては、対象画像がすでに赤目補正が実行されているかを自動判定し、対象画像がすでに赤目補正が実行されている場合にはステップ405へ進み、赤目自動補正動作を終了する。これは、赤目補正が既に1回でも実行されている場合は、赤目の部分が補正されているので、赤目自動補正を行なうと、目以外の唇などを赤目部分と誤判定し、誤った補正をしてしまう可能性があるからである。   First, in step 402, it is automatically determined whether red-eye correction has already been performed on the target image. If red-eye correction has already been performed on the target image, the process proceeds to step 405, and the red-eye automatic correction operation is terminated. This is because if the red-eye correction has already been performed once, the red-eye portion has been corrected. Therefore, if automatic red-eye correction is performed, lips other than the eyes are erroneously determined as red-eye portions, and incorrect correction is performed. It is because there is a possibility of doing.

一方、ステップS402において赤目補正が未実行の場合はステップ403へと進む。なお、ここでの説明の場合は撮影直後のレックレビュー時であるため、「赤目補正が未実行」の場合以外はありえない。ステップS403の赤目自動検出においては、ここでは詳細な説明を省くが特開平10−232934号公報や特開2000−48184号公報等に示されている顔検出の技術を用いて顔を検出し、目の領域を判別し、赤目の補正を実施する(ステップS404)。具体的には、エッジ情報を用いて、その位置や形状が人間の目であると推定される領域を特定し、その特定した領域内に存在し、かつ、明度、彩度、および、色相が所定条件を満たす領域を赤目として認識する。赤目の補正方法についての詳細な説明は省略するが、赤目補正の技術は、例えば特許第3684017号公報に記載の技術を用いて、赤目と認識された領域の明度と彩度を変更、あるいは、色相を変更することが考えられる。赤目の自動検出及び補正が終了すると、ステップS405で赤目の自動補正を終了する。   On the other hand, if red-eye correction has not been performed in step S402, the process proceeds to step 403. In addition, since the description here is at the time of a rec review immediately after shooting, there is no possibility other than the case where “red-eye correction is not executed”. In the red-eye automatic detection in step S403, a detailed description is omitted here, but the face is detected using the face detection technique disclosed in Japanese Patent Laid-Open Nos. 10-232934 and 2000-48184, etc. The eye area is determined, and red-eye correction is performed (step S404). Specifically, the edge information is used to identify an area where the position or shape is estimated to be a human eye, and it exists within the identified area, and the brightness, saturation, and hue are A region that satisfies a predetermined condition is recognized as red-eye. Although a detailed description of the red-eye correction method is omitted, the red-eye correction technique is, for example, using the technique described in Japanese Patent No. 3684017 to change the brightness and saturation of a region recognized as red-eye, or It is conceivable to change the hue. When the red-eye automatic detection and correction is completed, the red-eye automatic correction is ended in step S405.

この赤目自動補正を行なった後の図3BのステップS135におけるクイックレビュー画面では、図5に示されるように、赤目自動検出により補正の対象となった赤目を示す部分に枠が表示される。すなわち枠が表示されている部分に関しては、赤目自動補正の対象、枠が表示されていない目の部分は赤目自動補正の非対象となる。   In the quick review screen in step S135 of FIG. 3B after this red-eye automatic correction is performed, as shown in FIG. 5, a frame is displayed in the portion showing the red-eye that has been corrected by red-eye automatic detection. That is, regarding the portion where the frame is displayed, the red-eye automatic correction target, and the eye portion where the frame is not displayed are not subject to red-eye automatic correction.

次に、図6は既に撮影した画像について、画像を再生しながら赤目補正を行なう場合の処理の流れを示すフローチャートである。   Next, FIG. 6 is a flowchart showing the flow of processing when red-eye correction is performed on an already captured image while reproducing the image.

まず、デジタルカメラ100のDISPボタン308(図2参照)を押して再生モードに設定し、赤目補正を実施する対象の画像の選択を行なう(ステップS501)。対象画像の選択を行なうと、赤目補正オン/オフスイッチ69(図2参照)が押されたか否かが判断され、赤目補正オン/オフスイッチ69が押されるまで待機する(ステップS503)。   First, the DISP button 308 (see FIG. 2) of the digital camera 100 is pressed to set the playback mode, and an image to be subjected to red-eye correction is selected (step S501). When the target image is selected, it is determined whether or not the red-eye correction on / off switch 69 (see FIG. 2) has been pressed, and waits until the red-eye correction on / off switch 69 is pressed (step S503).

ステップS503において、赤目補正オン/オフスイッチ69が押されたならば、ステップS505において、対象画像がすでに赤目補正が実行されているかを自動判定する。対象画像が既に赤目補正を実施されているか否かの判定方法については後述する。対象画像が赤目補正をまだ未実行である場合は、LCD304の画像表示部の下に、図7に示すように、赤目を自動補正するか、手動補正するか、キャンセルするかの選択画面を表示する。一方、対象画像が既に赤目補正を実施されている場合は、図8に示すように、選択画面において自動補正の選択アイコンをグレーなどで表示し、手動補正かキャンセルのみを選択可能とする。これは、自動、手動にかかわらず赤目補正が既に1回でも実行されている場合は、赤目の部分が補正されているので、赤目自動補正を行なうと、目以外の唇などを赤目部分と誤判定し、誤った補正をしてしまう可能性が高くなるからである。   If the red-eye correction on / off switch 69 has been pressed in step S503, it is automatically determined in step S505 whether red-eye correction has already been performed on the target image. A method for determining whether or not the target image has already undergone red-eye correction will be described later. If the target image has not yet been subjected to red-eye correction, a selection screen for automatically correcting red eyes, manually correcting, or canceling is displayed below the image display section of the LCD 304 as shown in FIG. To do. On the other hand, if the target image has already been subjected to red-eye correction, as shown in FIG. 8, the automatic correction selection icon is displayed in gray or the like on the selection screen, and only manual correction or cancellation can be selected. This is because if the red-eye correction has already been performed at least once regardless of whether it is automatic or manual, the red-eye part is corrected. This is because the possibility of making a determination and making an incorrect correction increases.

次に、ユーザーは図7または図8に示した選択画面を見ながら、赤目を自動補正するか、手動補正するか、キャンセルするかを選択する。この場合、上記で述べたように、対象画像が赤目補正を既に実施している場合は、図8に示すように赤目自動補正を選択することはできない(ステップS507)。   Next, while viewing the selection screen shown in FIG. 7 or FIG. 8, the user selects whether to correct red eyes automatically, manually correct, or cancel. In this case, as described above, when the target image has already been subjected to the red-eye correction, the red-eye automatic correction cannot be selected as shown in FIG. 8 (step S507).

ステップS507において、キャンセルが選択された場合には、何もせずに赤目補正ルーチンを終了する。   If cancel is selected in step S507, the red-eye correction routine is terminated without doing anything.

ステップS507において、自動補正が選択された場合には、ステップS509に進んで赤目の自動検出を行なう。赤目の自動検出においては、ここでは詳細な説明を省くが特開平10−232934号公報や特開2000−48184号公報等に説明されている顔検出の技術を用いて顔を検出し、目の領域を判別し、赤目の補正を実施する(ステップ511)。赤目の補正方法についての詳細な説明は省略するが、赤目補正の技術は、例えば特許第3684017号公報に記載の技術を用いることが考えられる。   If automatic correction is selected in step S507, the process proceeds to step S509 to automatically detect red eyes. In the automatic red-eye detection, a detailed description is omitted here, but the face is detected by using the face detection technique described in JP-A-10-232934, JP-A-2000-48184, etc. The area is determined and red-eye correction is performed (step 511). Although a detailed description of the red-eye correction method is omitted, it is conceivable that the technique described in Japanese Patent No. 3684017 is used as the red-eye correction technique.

赤目の自動検出及び補正が終了すると、図5に示されるように、赤目自動検出により補正の対象となった赤目を示す部分に枠が表示される。すなわち枠が表示されている部分に関しては、赤目自動補正の対象、枠が表示されていない目の部分は赤目自動補正の非対象となる。   When automatic red-eye detection and correction are completed, as shown in FIG. 5, a frame is displayed in the portion indicating the red-eye that has been corrected by red-eye automatic detection. That is, regarding the portion where the frame is displayed, the red-eye automatic correction target, and the eye portion where the frame is not displayed are not subject to red-eye automatic correction.

その後、ステップS521に進み、赤目補正後の画像をメモリに保存して赤目補正ルーチンを終了する。   Thereafter, the process proceeds to step S521, the image after red-eye correction is stored in the memory, and the red-eye correction routine is ended.

一方、ステップS507において、手動補正が選択された場合、もしそれまでに赤目補正が1回でも実行されている場合には、図9に示すように、以前の赤目補正の対象となった赤目を示す部分に枠が表示される。ユーザーは、図9の画像を確認しながら、赤目手動枠の設定の実行の有無の選択を行う(ステップ513)。図9の画像において、赤目を補正するべき部分がなければ、ステップ521の補正画像保存に進み、そのまま赤目補正終了となる。   On the other hand, if the manual correction is selected in step S507, and if the red-eye correction has been performed once so far, as shown in FIG. 9, the red-eye that has been the target of the previous red-eye correction is shown in FIG. A frame is displayed in the part shown. While confirming the image of FIG. 9, the user selects whether or not to execute the setting of the red-eye manual frame (step 513). If there is no portion to be corrected for red eyes in the image of FIG. 9, the process proceeds to the corrected image storage in step 521, and the red eye correction is completed as it is.

また、図9中の赤目手動枠追加(ステップ513の赤目手動枠設定実行にあたる)の実行を選択した場合にはステップ515の赤目領域手動設定をおこない、赤目領域を指定する様に赤目手動枠を設定する。ここで、赤目手動枠追加についての説明を図10A、Bを用いて行う。   If the execution of red-eye manual frame addition (corresponding to execution of red-eye manual frame setting in step 513) is selected in FIG. Set. Here, a description of adding a red-eye manual frame will be given with reference to FIGS.

図10Aは図9中の赤目手動枠追加ボタンが選択された後の画面を表す図である。画面中央部にあらかじめ設定されている枠の大きさで赤目手動追加枠が表示される。ユーザーはカメラ背面の十字ボタンにて赤目手動追加枠の移動を行う。また、ズームレバーにて赤目手動追加枠の大きさを変更することも可能である。赤目手動追加枠の位置および大きさが決まり、ユーザーが図10B中の位置決定ボタンを選択すると図11の画面となるが、このとき設定領域の中から赤目領域が抽出され、赤目領域の補正が実行される(ステップS517)。ここでさらに追加したい赤目部分が存在する場合にはもう一度、図11中の赤目手動枠追加を選択して赤目手動枠の追加作業を行う。また、赤目手動枠の追加が必要ない場合は補正画像保存ボタンを選択する(ステップS519)。   10A is a diagram showing a screen after the red-eye manual frame addition button in FIG. 9 is selected. A red-eye manual addition frame is displayed in the center of the screen with a preset frame size. The user moves the red-eye manual additional frame with the cross button on the back of the camera. It is also possible to change the size of the red-eye manual additional frame with the zoom lever. When the position and size of the red-eye manual addition frame is determined and the user selects the position determination button in FIG. 10B, the screen shown in FIG. 11 is displayed. At this time, the red-eye area is extracted from the setting area, and the correction of the red-eye area is performed. It is executed (step S517). Here, if there is a red-eye portion to be further added, the red-eye manual frame addition operation in FIG. 11 is selected again to perform the red-eye manual frame addition operation. If it is not necessary to add a red-eye manual frame, a corrected image saving button is selected (step S519).

補正画像保存が選択されると補正画像がファイルとして保存され(ステップS521)終了となる。ただしこのとき、赤目補正を実行済みであることを表す情報をファイルのヘッダー領域に書き込む。なお、赤目補正を実行済みであることを表す情報をファイルのヘッダー領域に書き込むことは、クイックレビュー時や再生時に赤目自動補正を行なった場合にも同様に行われる。   When the corrected image storage is selected, the corrected image is stored as a file (step S521), and the process ends. However, at this time, information indicating that red-eye correction has been performed is written in the header area of the file. Note that the information indicating that red-eye correction has been performed is written in the header area of the file in the same manner when red-eye automatic correction is performed during quick review or playback.

ここで、対象画像ファイルが赤目補正を実行したか否かを示す情報(以下赤目補正実施情報)を書き込む方法および赤目補正実施情報から対象画像ファイルが赤目補正を実行されているか否かを判定する方法について説明する。   Here, it is determined whether or not the target image file has been subjected to red-eye correction based on a method of writing information indicating whether or not the target image file has executed red-eye correction (hereinafter referred to as red-eye correction execution information) and the red-eye correction execution information. A method will be described.

赤目補正を実行したか否かを示す情報(以下赤目補正実施情報)は画像データがJPEG画像データとしてファイルに保存される際に一緒に書き込まれる。具体的には、Exif規格(Exchangeable image file format for digital still cameras)に準じた方法で、画像データとは別に同一ファイル内に保持される。   Information indicating whether or not red-eye correction has been executed (hereinafter referred to as red-eye correction execution information) is written together when the image data is saved in a file as JPEG image data. Specifically, it is held in the same file separately from the image data by a method according to the Exif standard (Exchangeable image file format for digital still cameras).

本実施形態の赤目補正実施情報はExif規格のプライベートタグに準じた方法を利用し、プライベートタグ領域に記憶される。プライベートタグ領域に記憶されている情報が解釈できないような装置やアプリケーションがあったとしも、それらの装置やアプリケーションはこのタグに付随した情報は無視すればよい。そのため、この赤目補正実施情報の解釈能力を有さない装置やアプリケーションの場合でも通常の画像データのみをアクセスできるので特に問題は生じない。従って、このようなJEPG画像データと赤目補正実施情報とを同一ファイルに保持する手法としては大変有効な手法である。   The red-eye correction execution information of the present embodiment is stored in the private tag area using a method according to the Exif standard private tag. Even if there is a device or application that cannot interpret the information stored in the private tag area, the device or application may ignore the information associated with the tag. Therefore, even in the case of a device or application that does not have the ability to interpret the red-eye correction execution information, only normal image data can be accessed, so that no particular problem occurs. Therefore, this is a very effective technique for holding such JPEG image data and red-eye correction execution information in the same file.

本実施形態においては、プライベートタグ領域に赤目補正実施情報タグRedEyeTagがあらかじめ用意されており、赤目補正が実行されていない場合はRedEyeTag=0に設定されている。赤目補正を実行した場合においてはRedEyeTag=1に設定され、プライベートタグ領域に書き込まれる。すなわちRedEyeTagを確認し0であれば赤目補正未実施、1であれば赤目補正実施済みであることが確認可能となる。   In this embodiment, a red-eye correction execution information tag RedEyeTag is prepared in advance in the private tag area, and RedEyeTag = 0 is set when red-eye correction is not executed. When red-eye correction is executed, RedEyeTag = 1 is set and written in the private tag area. That is, when the RedEyeTag is confirmed, if it is 0, it is possible to confirm that red-eye correction has not been performed, and if it is 1, red-eye correction has been performed.

以上説明したように、上記の実施形態によれば、赤目補正を行う処理において、すでに赤目補正が実行されている画像ファイルについては、赤目補正を抑制することで、赤目補正の誤補正の可能性を低下させることが可能となる。またすでに赤目補正が実行されているファイルに対しても、赤目手動枠設定によりユーザーが赤目領域を設定することが可能となるため、自動で検出及び補正されなかった赤目に関しても補正を容易に行うことが可能となる。   As described above, according to the above-described embodiment, the red-eye correction may be erroneously corrected by suppressing the red-eye correction for the image file that has already been subjected to the red-eye correction in the process of performing the red-eye correction. Can be reduced. Even for files that have already undergone red-eye correction, the red-eye area can be set by the user using the red-eye manual frame setting, so that red-eye that has not been automatically detected and corrected can be easily corrected. It becomes possible.

なお、上記の説明では、図6に示されるフローチャートの動作をデジタルカメラ100で行なう場合について説明した。しかし、本発明はこれに限定されることなく、図6に示されるフローチャートの動作をデジタルカメラの外部のパーソナルコンピュータまたは画像処理装置などにより実施して、赤目補正処理を行うようにしてもよい。   In the above description, the case where the operation of the flowchart shown in FIG. However, the present invention is not limited to this, and the operation of the flowchart shown in FIG. 6 may be performed by a personal computer or an image processing apparatus outside the digital camera to perform the red-eye correction process.

また、上記の説明では、すでに赤目補正が実行されている画像ファイルについては、赤目自動補正を禁止する処理を例にあげたが、これに限られるものではない。   In the above description, the processing for prohibiting automatic red-eye correction is given as an example for an image file for which red-eye correction has already been performed. However, the present invention is not limited to this.

図12に、すでに赤目補正が実行されている画像ファイルについて赤目自動補正を行う場合には、ユーザーにその旨を報知し、赤目自動補正の要否の確認を取るという処理のフローチャートを示す。図12に記載されたステップのうち、図6と同じステップ番号が付されているものは、図6と同様の処理を行うものとする。   FIG. 12 shows a flowchart of a process of notifying the user of whether or not red-eye automatic correction is necessary when performing red-eye automatic correction on an image file that has already been subjected to red-eye correction. Of the steps described in FIG. 12, those with the same step numbers as in FIG. 6 are assumed to perform the same processing as in FIG.

ただし、この処理では、すでに赤目補正が実行されている画像ファイルについても赤目自動補正を行うことができるので、ステップS507では、常に、自動補正を選択可能な図7に示した画面が表示されるものとする。   However, in this process, since red-eye automatic correction can be performed even for an image file that has already been subjected to red-eye correction, the screen shown in FIG. 7 in which automatic correction can be selected is always displayed in step S507. Shall.

ステップS507において、自動補正が選択された場合には、ステップS601に進み、対象画像がまだ赤目補正を実行されていなければステップS509に進む。ステップS509では、その対象画像に対して赤目の自動検出を行い、ステップS511にて赤目の補正を実施する。   If automatic correction is selected in step S507, the process proceeds to step S601. If the target image has not yet undergone red-eye correction, the process proceeds to step S509. In step S509, red-eye is automatically detected for the target image, and red-eye correction is performed in step S511.

ステップS601において、対象画像がすでに赤目補正を実行されていたならば、ステップS602にて、図13に示すようにその旨を示す表示を行なう。この表示には、赤目補正を実行するか否かを選択する画面も表示され、ユーザーはこの選択画面を見ながら、赤目補正を実行するか、キャンセルするかを選択する。   In step S601, if red-eye correction has already been performed on the target image, display indicating that is performed as shown in FIG. 13 in step S602. In this display, a screen for selecting whether or not to execute red-eye correction is also displayed, and the user selects whether to execute red-eye correction or cancel while viewing this selection screen.

ステップS603にて、赤目補正をキャンセルすることが選択されれば、このフローチャートを終了し、赤目補正を実行することが選択されれば、ステップS509に進み、この対象画像に対して赤目の自動検出を行う。   If it is selected in step S603 to cancel the red-eye correction, this flowchart is ended. If it is selected to execute the red-eye correction, the process proceeds to step S509, and red-eye automatic detection is performed on the target image. I do.

このように、すでに赤目補正が実行されている画像ファイルに対して赤目自動補正を行う場合には、一度ユーザーに赤目補正の実行の要否についての確認を取る。このように、安易に同一の画像ファイルに対して複数回の赤目自動補正処理を実行させないようにすることで、誤補正の可能性を低下させることができる。   As described above, when red-eye automatic correction is performed on an image file that has already been subjected to red-eye correction, the user is once asked whether the red-eye correction needs to be executed. In this way, the possibility of erroneous correction can be reduced by not easily executing a plurality of red-eye automatic correction processes on the same image file.

次に、図14に、設定された赤目手動枠の中に、すでに赤目補正が実行されている領域が含まれている場合に、ユーザーにその旨を報知し、赤目補正の要否の確認を取るという処理のフローチャートを示す。図12と同じステップ番号が付されている処理は、図12と同様の処理を行なうものとする。   Next, in FIG. 14, when the set red-eye manual frame includes an area where red-eye correction has already been performed, the user is informed so and whether or not red-eye correction is necessary is confirmed. The flowchart of the process of taking is shown. The processes with the same step numbers as in FIG. 12 are the same as those in FIG.

ステップS507において、赤目手動補正が選択され、ステップS513、S515にて赤目手動枠が設定されると、ステップS701において、赤目手動枠内にすでに赤目補正が実行された領域が含まれているかを判定する。   When red-eye manual correction is selected in step S507 and a red-eye manual frame is set in steps S513 and S515, it is determined in step S701 whether the red-eye manual frame already includes an area for which red-eye correction has been executed. To do.

赤目手動枠内にすでに赤目補正が実行された領域が含まれているならば、ステップS702にて、図15に示すようにその旨を示す表示を行なう。この表示には、赤目補正を実行するか否かを選択する画面も表示され、ユーザーはこの選択画面を見ながら、赤目補正を実行するか、キャンセルするかを選択する。   If the red-eye manual frame already includes an area for which red-eye correction has been performed, in step S702, a display to that effect is displayed as shown in FIG. In this display, a screen for selecting whether or not to execute red-eye correction is also displayed, and the user selects whether to execute red-eye correction or cancel while viewing this selection screen.

ステップS703にて、赤目補正をキャンセルすることが選択されれば、このフローチャートを終了し、赤目補正を実行することが選択されれば、ステップS517に進み、この赤目手動枠の中から赤目領域が抽出され、赤目領域の補正が実行される。   If it is selected in step S703 to cancel the red-eye correction, this flowchart is ended. If it is selected to execute the red-eye correction, the process proceeds to step S517, and the red-eye area is selected from the red-eye manual frame. The red-eye region is extracted and extracted.

このように、すでに赤目補正が実行されている領域に対して手動赤目補正を行なう場合には、一度ユーザーに赤目補正の実行の要否についての確認を取る。このように、安易に同一領域に対して複数回の赤目補正処理を実行させないようにすることで、誤補正の可能性を低下させることができる。   As described above, when manual red-eye correction is performed on an area for which red-eye correction has already been performed, the user is once asked whether the red-eye correction needs to be performed. In this way, the possibility of erroneous correction can be reduced by not easily executing a plurality of red-eye correction processes on the same region.

(他の実施形態)
また、各実施形態の目的は、次のような方法によっても達成される。すなわち、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給する。そして、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行する。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、本発明には次のような場合も含まれる。すなわち、プログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される。
(Other embodiments)
The object of each embodiment is also achieved by the following method. That is, a storage medium (or recording medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded is supplied to the system or apparatus. Then, the computer (or CPU or MPU) of the system or apparatus reads and executes the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but the present invention includes the following cases. That is, based on the instruction of the program code, an operating system (OS) running on the computer performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.

さらに、次のような場合も本発明に含まれる。すなわち、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される。   Furthermore, the following cases are also included in the present invention. That is, the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion card or function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.

本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明した手順に対応するプログラムコードが格納されることになる。   When the present invention is applied to the above storage medium, the storage medium stores program codes corresponding to the procedure described above.

本発明の一実施形態に係るデジタルカメラの構成を示すブロック図である。It is a block diagram which shows the structure of the digital camera which concerns on one Embodiment of this invention. 一実施形態のデジタルカメラの外観斜視図である。1 is an external perspective view of a digital camera according to an embodiment. 一実施形態に係るデジタルカメラにおけるメイン処理ルーチンでの動作を説明するフローチャートである。It is a flowchart explaining the operation | movement by the main process routine in the digital camera which concerns on one Embodiment. 一実施形態に係るデジタルカメラにおけるメイン処理ルーチンでの動作を説明するフローチャートである。It is a flowchart explaining the operation | movement by the main process routine in the digital camera which concerns on one Embodiment. 図3BのステップS134における赤目自動補正処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the red-eye automatic correction process in step S134 of FIG. 3B. 赤目自動補正後のクイックレビュー画面を示す図である。It is a figure which shows the quick review screen after red-eye automatic correction | amendment. すでに撮影した画像について、画像を再生しながら赤目補正を行なう場合の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the case of performing red-eye correction | amendment, reproducing the image about the already image | photographed image. 赤目を自動補正するか、手動補正するか、キャンセルするかの選択画面を示す図である。It is a figure which shows the selection screen of red-eye automatic correction | amendment, manual correction | amendment, or cancellation. 赤目を手動補正するか、キャンセルするかの選択画面を示す図である。It is a figure which shows the selection screen of red-eye correction manually or canceling. 赤目の手動補正を選択した場合の画面を示す図である。It is a figure which shows a screen at the time of selecting red-eye manual correction. 図9中の赤目手動追加ボタンが選択された後の画面を表す図である。It is a figure showing the screen after the red-eye manual addition button in FIG. 9 was selected. 図9中の赤目手動追加ボタンが選択された後の画面を表す図である。It is a figure showing the screen after the red-eye manual addition button in FIG. 9 was selected. ユーザーが赤目手動追加枠の位置決定ボタンを選択した後の画面を示す図である。It is a figure which shows the screen after a user selects the position determination button of a red-eye manual addition frame. すでに撮影した画像について、画像を再生しながら赤目補正を行なう場合の別の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of another process in the case of performing red-eye correction | amendment, reproducing the image about the already image | photographed image. 赤目補正を実行するか、キャンセルするかの選択画面を示す図である。It is a figure which shows the selection screen which performs red-eye correction | amendment or cancels. すでに撮影した画像について、画像を再生しながら赤目補正を行なう場合の更に別の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of another process in the case of performing red-eye correction | amendment, reproducing the image about the already image | photographed image. 赤目補正を実行するか、キャンセルするかの選択画面を示す図である。It is a figure which shows the selection screen which performs red-eye correction | amendment or cancels.

Claims (16)

対象画像において補正すべき対象としての条件を満たす領域を補正する補正処理を行う処理手段と、
前記対象画像が、前記補正処理を実施されているか否かを判定する判定手段と、
前記判定手段により、前記対象画像が前記補正処理を実施されていると判定された場合に、前記対象画像に対する前記補正処理の実施を抑制する補正抑制手段と、
を備えることを特徴とする画像処理装置。
Processing means for performing correction processing for correcting a region satisfying a condition as a target to be corrected in the target image;
Determination means for determining whether or not the target image has been subjected to the correction processing;
A correction suppression unit that suppresses the execution of the correction process on the target image when the determination unit determines that the target image has been subjected to the correction process;
An image processing apparatus comprising:
前記補正すべき対象としての条件を満たす領域が、赤目領域であることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the region that satisfies the condition to be corrected is a red-eye region. 前記処理手段は、対象画像から補正すべき対象としての条件を満たす領域を自動的に検出して補正する第1の補正処理と、前記対象画像の中のユーザーにより指定された領域を補正する第2の補正処理とを行い、
前記判定手段により、前記対象画像が前記第1または第2の補正処理の少なくとも一方を実施されていると判定された場合に、補正抑制手段は、前記対象画像に対する前記第1の補正処理の実施を抑制することを特徴とする請求項1に記載の画像処理装置。
The processing means automatically detects and corrects a region satisfying a condition as a target to be corrected from the target image, and corrects a region specified by the user in the target image. 2 correction processing,
When the determination unit determines that the target image has been subjected to at least one of the first and second correction processes, the correction suppression unit performs the first correction process on the target image. The image processing apparatus according to claim 1, wherein the image processing apparatus is suppressed.
前記補正すべき対象としての条件を満たす領域が、赤目領域であることを特徴とする請求項3に記載の画像処理装置。   The image processing apparatus according to claim 3, wherein the region that satisfies the condition to be corrected is a red-eye region. 前記対象画像の中からユーザーにより前記赤目領域を選択させるための画面を表示する表示手段をさらに備えることを特徴とする請求項4に記載の画像処理装置。   The image processing apparatus according to claim 4, further comprising display means for displaying a screen for allowing the user to select the red-eye area from the target image. 前記対象画像が、既に前記第1または第2の補正処理の少なくとも一方を実施されている場合に、前記表示手段は前記対象画像上に補正を実施した個所を示す枠を表示することを特徴とする請求項5に記載の画像処理装置。   When the target image has already been subjected to at least one of the first and second correction processes, the display means displays a frame indicating the corrected portion on the target image. The image processing apparatus according to claim 5. 前記判定手段により、前記対象画像が前記第1または第2の補正処理の少なくとも一方を実施されていると判定された場合に、前記補正抑制手段が前記対象画像に対する前記第1の補正処理の実施を禁止することを特徴とする請求項4に記載の画像処理装置。   When the determination unit determines that the target image is subjected to at least one of the first and second correction processes, the correction suppression unit performs the first correction process on the target image. The image processing apparatus according to claim 4, wherein the image processing apparatus is prohibited. 被写体像を光電変換する撮像素子と、
前記撮像素子により撮像された画像を記憶する記憶手段と、
請求項1乃至7のいずれか1項に記載の画像処理装置と、
を備えることを特徴とする撮像装置。
An image sensor that photoelectrically converts a subject image;
Storage means for storing an image captured by the image sensor;
An image processing apparatus according to any one of claims 1 to 7,
An imaging apparatus comprising:
対象画像において補正すべき対象としての条件を満たす領域を補正する補正工程と、
前記対象画像が、前記補正工程における補正を実施されているか否かを判定する判定工程と、
前記判定工程において、前記対象画像が前記補正工程における補正を実施されていると判定された場合に、前記対象画像に対する前記補正工程における補正の実施を抑制する補正抑制工程と、
を備えることを特徴とする画像処理方法。
A correction process for correcting a region satisfying a condition as a target to be corrected in the target image;
A determination step of determining whether or not the target image has been corrected in the correction step;
In the determination step, when it is determined that the target image has been subjected to correction in the correction step, a correction suppression step that suppresses execution of correction in the correction step on the target image;
An image processing method comprising:
前記補正すべき対象としての条件を満たす領域が、赤目領域であることを特徴とする請求項9に記載の画像処理方法。   The image processing method according to claim 9, wherein the region that satisfies the condition to be corrected is a red-eye region. 前記補正工程は、対象画像から補正すべき対象としての条件を満たす領域を自動的に検出して補正する第1の補正工程と、前記対象画像の中のユーザーにより指定された領域を補正する第2の補正工程を含み、
前記判定工程において、前記対象画像が前記第1または第2の補正工程の少なくとも一方により補正を実施されていると判定された場合に、前記補正抑制工程において、前記対象画像に対する前記第1の補正工程による補正の実施を抑制することを特徴とする請求項9に記載の画像処理方法。
The correction step includes a first correction step of automatically detecting and correcting a region satisfying a condition as a target to be corrected from the target image, and a first correction step of correcting a region specified by the user in the target image. 2 correction steps,
When it is determined in the determination step that the target image has been corrected by at least one of the first or second correction step, the first correction for the target image is performed in the correction suppression step. The image processing method according to claim 9, wherein execution of correction by a process is suppressed.
前記補正すべき対象としての条件を満たす領域が、赤目領域であることを特徴とする請求項11に記載の画像処理方法。   The image processing method according to claim 11, wherein the region that satisfies the condition to be corrected is a red-eye region. 前記対象画像の中からユーザーにより前記赤目領域を選択させるための画面を表示する表示工程をさらに備えることを特徴とする請求項12に記載の画像処理方法。   The image processing method according to claim 12, further comprising a display step of displaying a screen for allowing the user to select the red-eye region from the target image. 前記対象画像が、既に前記第1または第2の補正工程の少なくとも一方により補正を実施されている場合に、前記表示工程では前記対象画像上に補正を実施した個所を示す枠を表示することを特徴とする請求項13に記載の画像処理方法。   When the target image has already been corrected by at least one of the first and second correction steps, the display step displays a frame indicating the corrected portion on the target image. The image processing method according to claim 13. 請求項9乃至14のいずれか1項に記載の画像処理方法をコンピュータに実施させることを特徴とするプログラム。   A program for causing a computer to execute the image processing method according to any one of claims 9 to 14. 請求項15に記載のプログラムを記憶したことを特徴とするコンピュータ読み取り可能な記憶媒体。   A computer-readable storage medium storing the program according to claim 15.
JP2007077162A 2006-03-30 2007-03-23 Image processing apparatus, image processing method, imaging apparatus, program, and storage medium Active JP4810478B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007077162A JP4810478B2 (en) 2006-03-30 2007-03-23 Image processing apparatus, image processing method, imaging apparatus, program, and storage medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2006095851 2006-03-30
JP2006095851 2006-03-30
JP2007077162A JP4810478B2 (en) 2006-03-30 2007-03-23 Image processing apparatus, image processing method, imaging apparatus, program, and storage medium

Publications (3)

Publication Number Publication Date
JP2007295545A true JP2007295545A (en) 2007-11-08
JP2007295545A5 JP2007295545A5 (en) 2010-04-22
JP4810478B2 JP4810478B2 (en) 2011-11-09

Family

ID=38765664

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007077162A Active JP4810478B2 (en) 2006-03-30 2007-03-23 Image processing apparatus, image processing method, imaging apparatus, program, and storage medium

Country Status (1)

Country Link
JP (1) JP4810478B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012098980A (en) * 2010-11-04 2012-05-24 Seiko Epson Corp Image processing method and image processing device
JP2014096836A (en) * 2014-01-08 2014-05-22 Nikon Corp Digital camera

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11127371A (en) * 1997-10-20 1999-05-11 Nikon Corp Camera system having red eye correction function
JP2001061071A (en) * 2000-01-01 2001-03-06 Olympus Optical Co Ltd Image correction device and image correction method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11127371A (en) * 1997-10-20 1999-05-11 Nikon Corp Camera system having red eye correction function
JP2001061071A (en) * 2000-01-01 2001-03-06 Olympus Optical Co Ltd Image correction device and image correction method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012098980A (en) * 2010-11-04 2012-05-24 Seiko Epson Corp Image processing method and image processing device
JP2014096836A (en) * 2014-01-08 2014-05-22 Nikon Corp Digital camera

Also Published As

Publication number Publication date
JP4810478B2 (en) 2011-11-09

Similar Documents

Publication Publication Date Title
US7792355B2 (en) Image processing apparatus, image processing method, and image capturing apparatus
JP4262082B2 (en) Image processing apparatus, control method therefor, program, and storage medium
JP3814514B2 (en) Image display apparatus, image processing method, and program
JP2009071549A (en) Imaging device, its control method, and program
JP2007221723A (en) Image processing apparatus and control method thereof
JP2009044461A (en) Image processor, imaging apparatus and image processing method
JP2005184508A (en) Imaging device and control method therefor
JP2007081732A (en) Imaging apparatus
US8045015B2 (en) Image pickup apparatus, white balance control method thereof, and storage medium
JP2005167697A (en) Electronic camera having red-eye correction function
JP4810478B2 (en) Image processing apparatus, image processing method, imaging apparatus, program, and storage medium
JP3625371B2 (en) Image processing apparatus, control method for image processing apparatus, and storage medium
JP4136296B2 (en) Image processing apparatus, method, and computer-readable storage medium
JP4724511B2 (en) Imaging apparatus, recording control method thereof, and program
JP4464143B2 (en) Image processing method and apparatus
JP4262022B2 (en) Imaging device
JP2005197809A (en) Image processing apparatus, imaging device, and control method therefor
JP4909009B2 (en) Imaging apparatus, image processing method, program, and storage medium
JP4682104B2 (en) Imaging device
JP2008109503A (en) Imaging apparatus, control method thereof, program and storage medium
JP4991412B2 (en) Imaging apparatus, image recording method, and program
JP4902512B2 (en) Imaging apparatus, control method thereof, and program
JP2006109273A (en) Imaging apparatus, control method thereof, and computer program
JP2000165785A (en) Image data recorder, image data recording method and storage medium
JP2000115588A (en) Image pickup device, control method thereof and storage medium

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100305

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100305

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110811

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110815

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110822

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

Free format text: PAYMENT UNTIL: 20140826

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4810478

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151