JP2004304833A - Image processing apparatus, control method thereof, and memory medium - Google Patents

Image processing apparatus, control method thereof, and memory medium Download PDF

Info

Publication number
JP2004304833A
JP2004304833A JP2004161583A JP2004161583A JP2004304833A JP 2004304833 A JP2004304833 A JP 2004304833A JP 2004161583 A JP2004161583 A JP 2004161583A JP 2004161583 A JP2004161583 A JP 2004161583A JP 2004304833 A JP2004304833 A JP 2004304833A
Authority
JP
Japan
Prior art keywords
image
imaging
shading correction
unit
optical system
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.)
Withdrawn
Application number
JP2004161583A
Other languages
Japanese (ja)
Inventor
Yoichi Yamagishi
洋一 山岸
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 JP2004161583A priority Critical patent/JP2004304833A/en
Publication of JP2004304833A publication Critical patent/JP2004304833A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus capable of detecting the information related to pixel defects and shading for correcting a photographed image at a proper timing. <P>SOLUTION: The image processing apparatus detects the information related to the pixel defects and shading for the correction of the photographed image at a prescribed timing before the start of photographing. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、画像処理装置及び撮像装置並びにそれらの制御方法並びにメモリ媒体等の媒体に係り、例えば、静止画像や動画像を撮像し処理する画像処理装置及び撮像装置並びにそれらの制御方法並びにそれらの制御に供するメモリ媒体等の媒体に関する。   The present invention relates to an image processing apparatus, an imaging apparatus, a control method thereof, and a medium such as a memory medium. For example, the present invention relates to an image processing apparatus and an imaging apparatus that capture and process a still image or a moving image, a control method thereof, and a control method thereof. The present invention relates to a medium such as a memory medium used for control.

固体メモリ素子を有するメモリカードを記録媒体として、CMOS、CCD等の固体撮像素子で撮像した静止画像や動画像を記録及び再生する電子カメラ等の画像処理装置がある。   There is an image processing device such as an electronic camera that records and reproduces a still image or a moving image captured by a solid-state imaging device such as a CMOS or a CCD using a memory card having a solid-state memory device as a recording medium.

これらの電子カメラによれば、撮像した画像データをフラッシュメモリやハードディスク等の記録媒体に記録することが可能である。   According to these electronic cameras, captured image data can be recorded on a recording medium such as a flash memory or a hard disk.

CMOS、CCD等の固体撮像素子を用いて撮像する場合、撮像素子を露光しない状態で本撮影と同様に電荷蓄積を行った後に読み出したダーク画像データと、撮像素子を露光した状態で電荷蓄積を行った後に読み出した本撮影画像データとを用いて演算処理することにより、ダークノイズ補正処理を行うことが可能である。   When an image is captured using a solid-state image sensor such as a CMOS or a CCD, dark image data read out after charge storage is performed in the same manner as in actual shooting without exposing the image sensor, and charge storage is performed when the image sensor is exposed. It is possible to perform dark noise correction processing by performing arithmetic processing using the actual captured image data read after the processing.

また、CMOS、CCD等の固体撮像素子を用いて撮像する場合、撮像素子の微少な画素欠陥から常に白いデータが出力されることに起因する白点キズ及び常に黒いデータが出力されることに起因する黒点キズに係る画素の位置情報を用いて、欠陥画素のデータを隣接する画素のデータを用いて補間演算処理することにより点キズ補正処理を行うことが可能である(特許文献1参照)。   In addition, when imaging is performed using a solid-state imaging device such as a CMOS or a CCD, white spots are always generated due to minute pixel defects of the imaging device, and black data is always output. A point flaw correction process can be performed by performing interpolation calculation processing on data of a defective pixel using data of an adjacent pixel using position information of a pixel related to the black spot flaw (see Patent Document 1).

これらの補正処理により、CMOS、CCD等の撮像素子が発生する暗電流ノイズや撮像素子固有の微少なキズによる画素欠損等の画質劣化に関して、撮影した画像データを補正して高品位な画像を得ることが出来る。   With these correction processes, the captured image data is corrected with respect to dark current noise generated by an image sensor such as a CMOS or a CCD or image quality deterioration such as pixel loss due to minute scratches inherent to the image sensor, thereby obtaining a high-quality image. I can do it.

また、これらの電子カメラには、異なる焦点距離や開放絞り値を備える撮影レンズを目的に合わせて交換して撮影することができるものもある。
特開平8−18873号公報
In addition, some of these electronic cameras can take a picture by changing taking lenses having different focal lengths and open aperture values according to the purpose.
JP-A-8-18873

このような従来の電子カメラ等の画像処理装置においては、撮影を行う際に欠陥画素の位置情報を事前に知っておく必要があるが、その場合は経時変化に応じて欠陥画素が増えた場合に補正が出来ないという問題があった。   In such a conventional image processing apparatus such as an electronic camera, it is necessary to know in advance the position information of a defective pixel when performing photographing. There was a problem that correction could not be made.

一方、シャッタースイッチが押された際に欠陥画素の位置を検出する方式の場合、経時変化に応じて欠陥画素が増えた場合にも補正が可能であるが、シャッターレリーズタイムラグが欠陥画素の位置情報を検出する時間だけ長くなる、或いは連続して撮影する際の間隔が欠陥画素の位置情報を検出する時間だけ長くなるという問題があった。   On the other hand, in the method of detecting the position of a defective pixel when the shutter switch is pressed, correction can be performed even when the number of defective pixels increases with time, but the shutter release time lag is determined by the position information of the defective pixel. However, there is a problem that the time required for detecting the pixel becomes longer, or the interval between successive photographing becomes longer by the time required for detecting the position information of the defective pixel.

また、異なる焦点距離や開放絞り値を備える撮影レンズを任意に装着して撮影を行う場合、使用する撮影レンズの射出瞳距離、撮影時の絞り値、撮影時の焦点距離に応じて、撮像素子に入射する光束の角度が撮像素子の中心画素と周囲の画素とで異なるために、撮像素子の各画素の光検出部に入射する光にケラレが生じ、撮像素子の撮像信号出力に輝度シェーディングや色シェーディングが発生する場合があるという問題があった。   In addition, when photographing is performed by arbitrarily mounting a photographing lens having a different focal length and an open aperture value, an image sensor is used in accordance with an exit pupil distance of a photographing lens to be used, an aperture value at the time of photographing, and a focal length at the time of photographing. Since the angle of the luminous flux incident on the image sensor differs between the central pixel of the image sensor and the surrounding pixels, vignetting occurs in the light incident on the light detection unit of each pixel of the image sensor, and brightness shading or the like occurs in the image signal output of the image sensor. There is a problem that color shading may occur.

本発明は、上記の背景に鑑みてなされたものであり、その1つの側面は、例えば、新たに発生し得る画素欠陥を修正すると共に撮影動作を迅速化することを目的とする。   The present invention has been made in view of the above background, and one aspect of the present invention is to correct, for example, a newly generated pixel defect and to speed up a shooting operation.

また、本発明の他の側面は、例えば、レンズユニットの状態の変更に拘らず、該レンズユニットに係るシェ−ディングが修正された画像を得ることを目的とする。   Another object of the present invention is to obtain an image in which the shading of the lens unit is corrected irrespective of a change in the state of the lens unit.

本発明の第1の側面に係わる撮像装置は、撮像センサと、前記撮像センサの画素欠陥位置を所定時間経過するごとに検出する検出手段と、前記検出手段の検出結果を更新記憶る記憶手段と、を有することを特徴とする。   An imaging apparatus according to a first aspect of the present invention includes an imaging sensor, a detection unit that detects a pixel defect position of the imaging sensor each time a predetermined time elapses, and a storage unit that updates and stores a detection result of the detection unit. , Is characterized by having.

本発明の第2の側面に係わる撮像装置は、撮像センサと、前記撮像センサの画素欠陥位置を所定撮影回数ごとに検出する検出手段と、前記検出手段の検出結果を更新記憶する記憶手段と、を有することを特徴とする。   An imaging device according to a second aspect of the present invention includes: an imaging sensor; a detection unit that detects a pixel defect position of the imaging sensor every predetermined number of times of imaging; a storage unit that updates and stores a detection result of the detection unit; It is characterized by having.

本発明の第3の側面に係わる撮像装置は、撮像センサと、前記撮像センサの画素欠陥位置を検出する検出手段と、前記検出手段の検出結果を前記撮像センサが撮像した画像と共に記録媒体に記録する記録手段とを有することを特徴とする。   An imaging device according to a third aspect of the present invention includes an imaging sensor, detection means for detecting a pixel defect position of the imaging sensor, and a detection result of the detection means recorded on a recording medium together with an image captured by the imaging sensor. Recording means for performing the operation.

本発明の第4の側面に係わる撮像装置は、撮像光学系を交換装着可能な撮像装置において、撮影開始を指示する操作手段と、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を前記操作手段が操作される前に取得する特定情報取得手段とを有することを特徴とする。   An imaging apparatus according to a fourth aspect of the present invention is an imaging apparatus in which an imaging optical system can be exchangeably mounted. And a specific information acquisition unit for acquiring information for specifying the mounted imaging optical system before the operation unit is operated.

本発明の第5の側面に係わる撮像装置は、撮像光学系を交換装着可能な撮像装置において、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を取得する特定情報取得手段と、前記特定情報取得手段が取得した前記撮像光学系を特定する情報に基づくシェーディング補正のためのデータを撮影画像と共に記録媒体に記録する記録手段とを有することを特徴とする。   An imaging apparatus according to a fifth aspect of the present invention is an imaging apparatus in which an imaging optical system can be exchangeably mounted, wherein the mounted imaging optical system is used for shading correction of a captured image related to the mounted imaging optical system. There is provided a specific information acquisition unit for acquiring information to be specified, and a recording unit for recording data for shading correction based on the information for specifying the imaging optical system acquired by the specific information acquisition unit on a recording medium together with a captured image. It is characterized by the following.

本発明の第6の側面に係わる撮像装置は、撮影画像のシェーディング補正のための情報を取得する情報取得手段と、前記情報取得手段が取得した前記シェーディング補正のための情報を撮影画像と共に記録媒体に記録する記録手段とを有することを特徴とする。   An imaging apparatus according to a sixth aspect of the present invention includes an information acquisition unit that acquires information for shading correction of a captured image, and a recording medium that stores the information for shading correction acquired by the information acquisition unit together with the captured image. And recording means for recording the information in the recording medium.

本発明の第7の側面に係わる撮像装置の制御方法は、撮像センサの画素欠陥位置を所定時間経過するごとに検出し、前記検出結果を更新記憶することを特徴とする。   A control method of an imaging device according to a seventh aspect of the present invention is characterized in that a pixel defect position of an imaging sensor is detected each time a predetermined time elapses, and the detection result is updated and stored.

本発明の第8の側面に係わる撮像装置の制御方法は、撮像センサの画素欠陥位置を所定撮影回数ごとに検出し、前記検出結果を更新記憶することを特徴とする。   A control method of an imaging device according to an eighth aspect of the present invention is characterized in that a pixel defect position of an imaging sensor is detected every predetermined number of times of imaging, and the detection result is updated and stored.

本発明の第9の側面に係わる撮像装置の制御方法は、撮像センサの画素欠陥位置を検出し、該検出結果を前記撮像センサが撮像した画像と共に記録媒体に記録することを特徴とする。   A control method of an imaging device according to a ninth aspect of the present invention is characterized in that a pixel defect position of an imaging sensor is detected, and the detection result is recorded on a recording medium together with an image captured by the imaging sensor.

本発明の第10の側面に係わる撮像装置の制御方法は、撮像光学系を交換装着可能な撮像装置の制御方法において、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を撮影開始を指示する操作手段が操作される前に取得することを特徴とする。   A method for controlling an imaging apparatus according to a tenth aspect of the present invention is the control method for an imaging apparatus in which an imaging optical system can be exchangeably mounted. The information for specifying the imaging optical system to be performed is obtained before the operation means for instructing the start of imaging is operated.

本発明の第11の側面に係わる撮像装置の制御方法は、撮像光学系を交換装着可能な撮像装置の制御方法において、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を取得し、該取得した前記撮像光学系を特定する情報に基づくシェーディング補正のためのデータを撮影画像と共に記録媒体に記録することを特徴とする。   An image pickup apparatus control method according to an eleventh aspect of the present invention is a control method of an image pickup apparatus in which an image pickup optical system can be exchangeably mounted. The information for specifying the imaging optical system to be obtained is obtained, and data for shading correction based on the obtained information for specifying the imaging optical system is recorded together with a captured image on a recording medium.

本発明の第12の側面に係わる撮像装置の制御方法は、撮影画像のシェーディング補正のための情報を取得し、該取得した前記シェーディング補正のための情報を撮影画像と共に記録媒体に記録することを特徴とする。   A method for controlling an imaging device according to a twelfth aspect of the present invention includes acquiring information for shading correction of a captured image and recording the acquired information for shading correction on a recording medium together with the captured image. Features.

本発明の第13の側面に係わる撮像装置の制御プログラムを提供する媒体は、撮像センサの画素欠陥位置を所定時間経過するごとに検出する内容と、前記検出結果を更新記憶する内容とを有することを特徴とする。   A medium for providing a control program for an imaging device according to a thirteenth aspect of the present invention has contents for detecting a pixel defect position of an imaging sensor every time a predetermined time elapses and contents for updating and storing the detection result. It is characterized.

本発明の第13の側面に係わる撮像装置の制御プログラムを提供する媒体は、撮像センサの画素欠陥位置を所定撮影回数ごとに検出する内容と、前記検出結果を更新記憶する内容とを有することを特徴とする。   A medium for providing a control program for an imaging device according to a thirteenth aspect of the present invention has a content for detecting a pixel defect position of an imaging sensor every predetermined number of times of photography and a content for updating and storing the detection result. Features.

本発明の第14の側面に係わる撮像装置の制御プログラムを提供する媒体は、撮像センサの画素欠陥位置を検出し、該検出結果を前記撮像センサが撮像した画像と共に記録媒体に記録する内容を有することを特徴とする。   A medium for providing a control program for an imaging device according to a fourteenth aspect of the present invention has a content of detecting a pixel defect position of an imaging sensor and recording the detection result on a recording medium together with an image captured by the imaging sensor. It is characterized by the following.

本発明の第15の側面に係わる撮像装置の制御プログラムを提供する媒体は、撮像光学系を交換装着可能な撮像装置の制御プログラムを提供する媒体において、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を撮影開始を指示する操作手段が操作される前に取得する内容を有することを特徴とする。   A medium for providing a control program for an imaging apparatus according to a fifteenth aspect of the present invention is a medium for providing a control program for an imaging apparatus in which an imaging optical system can be exchangeably mounted. In order to perform shading correction, the image capturing apparatus has a feature of acquiring information for specifying the mounted imaging optical system before an operation unit for instructing a start of imaging is operated.

本発明の第16の側面に係わる撮像装置の制御プログラムを提供する媒体は、撮像光学系を交換装着可能な撮像装置の制御プログラムを提供する媒体において、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を取得し、該取得した前記撮像光学系を特定する情報に基づくシェーディング補正のためのデータを撮影画像と共に記録媒体に記録する内容を有することを特徴とする。   A medium for providing a control program for an imaging device according to a sixteenth aspect of the present invention is a medium for providing a control program for an imaging device in which an imaging optical system can be exchangeably mounted. Contents for acquiring information for specifying the mounted imaging optical system for shading correction, and recording data for shading correction based on the obtained information for specifying the imaging optical system together with a captured image on a recording medium. It is characterized by having.

本発明の第17の側面に係わる撮像装置の制御プログラムを提供する媒体は、撮像撮影画像のシェーディング補正のための情報を取得し、該取得した前記シェーディング補正のための情報を撮影画像と共に記録媒体に記録する内容を有することを特徴とする。   A medium for providing a control program for an imaging device according to a seventeenth aspect of the present invention acquires information for shading correction of a captured image, and stores the acquired information for shading correction together with a captured image in a recording medium. Characterized in that it has contents to be recorded in

本発明の1つの側面によれば、例えば、新たに発生し得る画素欠陥を修正すると共に撮影動作を迅速化することができる。   According to one aspect of the present invention, for example, it is possible to correct a newly generated pixel defect and to speed up a shooting operation.

また、本発明の他の側面は、例えば、レンズユニットの状態の変更に拘らず、該レンズユニットに係るシェ−ディングが修正された画像を得ることができる。   Further, according to another aspect of the present invention, it is possible to obtain an image in which the shading of the lens unit is corrected irrespective of a change in the state of the lens unit.

[第1の実施の形態]
以下、本発明の第1の実施の形態を説明する。
[First Embodiment]
Hereinafter, a first embodiment of the present invention will be described.

図1は、本発明の第1の実施の形態に係る画像処理装置の構成を示す図である。図1において、100は画像処理装置(撮像装置)である。12は撮像素子14への露光量を制御するためのシャッター、14は光学像を電気信号に変換する撮像素子である。撮像素子の一例としては、CCDセンサー、CMOSセンサー等が知られている。   FIG. 1 is a diagram illustrating a configuration of an image processing apparatus according to a first embodiment of the present invention. In FIG. 1, reference numeral 100 denotes an image processing device (imaging device). Reference numeral 12 denotes a shutter for controlling the amount of exposure to the image sensor 14, and reference numeral 14 denotes an image sensor that converts an optical image into an electric signal. As an example of the imaging device, a CCD sensor, a CMOS sensor, and the like are known.

レンズ310に入射した光線は、一眼レフ方式によって、絞り312、レンズマウント306及び106、ミラー130、シャッター12を介して、光学像として撮像素子14上に結像され得る。   The light beam incident on the lens 310 can be formed as an optical image on the image sensor 14 via the stop 312, the lens mounts 306 and 106, the mirror 130, and the shutter 12 by a single-lens reflex method.

16は撮像素子14のアナログ信号出力をディジタル信号に変換するA/D変換器である。18は撮像素子14、A/D変換器16、D/A変換器26にクロック信号や制御信号を供給するタイミング発生回路であり、メモリ制御回路22及びシステム制御回路50により制御される。   Reference numeral 16 denotes an A / D converter for converting an analog signal output of the image sensor 14 into a digital signal. Reference numeral 18 denotes a timing generation circuit that supplies a clock signal and a control signal to the image sensor 14, the A / D converter 16, and the D / A converter 26, and is controlled by the memory control circuit 22 and the system control circuit 50.

20は画像処理回路であり、A/D変換器16からのデータ或いはメモリ制御回路22からのデータに対して所定の画素補間処理や色変換処理を行う。また、画像処理回路20においては、必要に応じて、撮像した画像データを用いて所定の演算処理を行う。この演算結果に基づいてシステム制御回路50がシャッター制御部40、絞り制御部340、測距制御部342等を制御することができる。これにより、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュ調光)処理がなされる。   Reference numeral 20 denotes an image processing circuit which performs predetermined pixel interpolation processing and color conversion processing on data from the A / D converter 16 or data from the memory control circuit 22. In addition, the image processing circuit 20 performs a predetermined calculation process using the captured image data as needed. The system control circuit 50 can control the shutter control unit 40, the aperture control unit 340, the distance measurement control unit 342, and the like based on the calculation result. Thus, AF (auto focus) processing, AE (auto exposure) processing, and EF (flash light control) processing of the TTL (through the lens) method are performed.

さらに、画像処理回路20においては、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行っている。   Further, the image processing circuit 20 performs predetermined arithmetic processing using the captured image data, and also performs TTL AWB (auto white balance) processing based on the obtained arithmetic result.

なお、この実施の形態においては、測距部42及び測光部46を専用に備える構成としたため、測距部42及び測光部46を用いてAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュ調光)処理の各処理を行い、画像処理回路20を用いたAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュ調光)処理の各処理を行わない構成としても良い。   In this embodiment, since the distance measuring section 42 and the light measuring section 46 are provided exclusively, the AF (auto focus) processing, the AE (auto exposure) processing, A configuration may be adopted in which each processing of EF (flash light control) processing is performed and each processing of AF (auto focus) processing, AE (auto exposure) processing, and EF (flash light control) processing using the image processing circuit 20 is not performed. good.

或いは、測距部42及び測光部46並びに画像処理回路20を用いたAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュ調光)処理の各処理を行う構成としても良い。   Alternatively, a configuration may be adopted in which each of AF (autofocus) processing, AE (automatic exposure) processing, and EF (flash light control) processing using the distance measuring unit 42 and the light measuring unit 46 and the image processing circuit 20 is performed.

22はメモリ制御回路であり、A/D変換器16、タイミング発生回路18、画像処理回路20、画像表示メモリ24、D/A変換器26、メモリ30、圧縮・伸長回路32を制御する。   A memory control circuit 22 controls the A / D converter 16, the timing generation circuit 18, the image processing circuit 20, the image display memory 24, the D / A converter 26, the memory 30, and the compression / decompression circuit 32.

A/D変換器16の出力データが画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器16のデータが直接メモリ制御回路22を介して、画像表示メモリ24或いはメモリ30に書き込まれる。   The output data of the A / D converter 16 is sent to the image display memory 24 or the memory 30 via the image processing circuit 20 and the memory control circuit 22 or the data of the A / D converter 16 is sent directly to the image display memory 24 or the memory 30 via the memory control circuit 22. Written.

24は画像表示メモリ、26はD/A変換器、28はTFT−LCD等から成る画像表示部であり、画像表示メモリ24に書き込まれた表示用の画像データはD/A変換器26を介して画像表示部28に提供され、これにより画像が表示される。   Reference numeral 24 denotes an image display memory, 26 denotes a D / A converter, and 28 denotes an image display unit composed of a TFT-LCD or the like. Image data for display written in the image display memory 24 passes through the D / A converter 26. The image is provided to the image display unit 28, whereby the image is displayed.

画像表示部28を用いて撮像した画像データを逐次表示すれば、電子ファインダー機能を実現することが可能である。   The electronic viewfinder function can be realized by sequentially displaying captured image data using the image display unit 28.

また、画像表示部28は、システム制御回路50からのの指示により任意に表示をON/OFFすることが可能であり、表示をOFFにした場合には画像処理装置100の電力消費を大幅に低減することが出来る。   Further, the image display unit 28 can arbitrarily turn on / off the display according to an instruction from the system control circuit 50. When the display is turned off, the power consumption of the image processing apparatus 100 is significantly reduced. You can do it.

30は撮影した静止画像や動画像を格納するためのメモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記憶量を備えている。これにより、複数枚の静止画像を連続して撮影する連写撮影やパノラマ撮影の場合にも、高速かつ大量の画像書き込みをメモリ30に対して行うことが可能となる。また、メモリ30はシステム制御回路50の作業領域としても使用され得る。   Reference numeral 30 denotes a memory for storing captured still images and moving images, and has a sufficient storage capacity for storing a predetermined number of still images and moving images for a predetermined time. Accordingly, even in the case of continuous shooting or panoramic shooting in which a plurality of still images are continuously shot, it is possible to write a large amount of images to the memory 30 at high speed. The memory 30 can also be used as a work area of the system control circuit 50.

32は適応離散コサイン変換(ADCT)等により画像データを圧縮及び伸長する圧縮・伸長回路であり、メモリ30に格納された画像を読み込んで圧縮処理或いは伸長処理を行い、処理を終えたデータをメモリ30に書き込む。   A compression / decompression circuit 32 compresses and decompresses image data by adaptive discrete cosine transform (ADCT) or the like. The compression / decompression circuit 32 reads an image stored in the memory 30, performs compression processing or decompression processing, and stores the processed data in the memory. Write 30.

40は測光部46から提供される測光情報に基づいて、絞り312を制御する絞り制御部340と連携しながら、シャッター12を制御するシャッター制御部である。   Reference numeral 40 denotes a shutter control unit that controls the shutter 12 in cooperation with an aperture control unit 340 that controls the aperture 312 based on photometric information provided from the photometric unit 46.

42はAF(オートフォーカス)処理を行うための測距部である。レンズ310に入射した光線を、一眼レフ方式によって、絞り312、レンズマウント306及び106、ミラー130そして不図示の測距用サブミラーを介して、測距部42に入射させることにより、光学像として結像された画像の合焦状態を測定することが出来る。   Reference numeral 42 denotes a distance measuring unit for performing AF (auto focus) processing. The light beam incident on the lens 310 is incident on the distance measuring unit 42 via the diaphragm 312, the lens mounts 306 and 106, the mirror 130, and the distance measuring sub-mirror (not shown) by a single-lens reflex method, thereby forming an optical image. The focus state of the formed image can be measured.

46はAE(自動露出)処理を行うための測光部であり、レンズ310に入射した光線を、一眼レフ方式によって、絞り312、レンズマウント306及び106、ミラー130及び132そして不図示の測光用レンズを介して、測光部46に入射させることにより、光学像として結像された画像の露出状態を測定することが出来る。また、測光部46は、フラッシュ48と連携することによりEF(フラッシュ調光)処理機能も有するものである。   Reference numeral 46 denotes a photometric unit for performing AE (automatic exposure) processing. The photometric unit 46 converts a light beam incident on the lens 310 into a stop 312, lens mounts 306 and 106, mirrors 130 and 132, and a photometric lens (not shown) by a single-lens reflex method. The light is incident on the light metering unit 46 through the, so that the exposure state of the image formed as an optical image can be measured. The photometric unit 46 also has an EF (flash light control) processing function in cooperation with the flash 48.

48はフラッシュであり、AF補助光の投光機能及びフラッシュ調光機能を有する。   Reference numeral 48 denotes a flash having an AF auxiliary light projecting function and a flash dimming function.

なお、撮像素子14によって撮像した画像データを画像処理回路20によって演算した演算結果に基づき、システム制御回路50がシャッター制御部40、絞り制御部340、測距制御部342に対して制御を行う、ビデオTTL方式を用いて露出制御及びAF(オートフォーカス)制御を行うことも可能である。   The system control circuit 50 controls the shutter control unit 40, the aperture control unit 340, and the distance measurement control unit 342 based on a calculation result obtained by calculating the image data captured by the image sensor 14 by the image processing circuit 20. Exposure control and AF (autofocus) control can also be performed using the video TTL method.

また、測距部42による測定結果と、撮像素子14によって撮像した画像データを画像処理回路20によって演算した演算結果とを共に用いてAF(オートフォーカス)制御を行ってもよい。   Further, AF (autofocus) control may be performed using both the measurement result by the distance measuring unit 42 and the calculation result obtained by calculating the image data captured by the image sensor 14 by the image processing circuit 20.

さらに、測光部46による測定結果と、撮像素子14によって撮像した画像データを画像処理回路20によって演算した演算結果とを共に用いて露出制御を行ってもよい。   Further, the exposure control may be performed by using both the measurement result by the photometry unit 46 and the calculation result obtained by calculating the image data captured by the image sensor 14 by the image processing circuit 20.

50は画像処理装置100全体を制御するシステム制御回路、52はシステム制御回路50の動作用の定数、変数、プログラム等を記憶するメモリである。   A system control circuit 50 controls the entire image processing apparatus 100, and a memory 52 stores constants, variables, programs, and the like for operation of the system control circuit 50.

54はシステム制御回路50によるプログラムの実行に従って、文字、画像、音声等により、動作状態やメッセージ等を発する液晶表示装置やスピーカー等の出力部である。この出力部54は、画像処理装置100の操作部近辺の視認し易い位置に単数或いは複数個所設置され、例えばLCDやLED、発音素子等の組み合わせにより構成されている。   Reference numeral 54 denotes an output unit such as a liquid crystal display device or a speaker that emits an operation state, a message, or the like in accordance with the execution of a program by the system control circuit 50, using characters, images, sounds, or the like. The output unit 54 is provided singly or at a plurality of positions at an easily visible position near the operation unit of the image processing apparatus 100, and is configured by a combination of, for example, an LCD, an LED, and a sound emitting element.

また、出力部54の一部を構成する表示部は、その一部の機能が光学ファインダー104内にも設置されている。出力部54による表示内容のうち、LCD等によって表示するものとしては、例えば、シングルショット/連写撮影表示、セルフタイマー表示、圧縮率表示、記録画素数表示、記録枚数表示、残撮影可能枚数表示、シャッタースピード表示、絞り値表示、露出補正表示、フラッシュ表示、赤目緩和表示、マクロ撮影表示、ブザー設定表示、時計用電池残量表示、電池残量表示、エラー表示、複数桁の数字による情報表示、記録媒体200及び210の着脱状態表示、レンズユニット300の着脱状態表示、通信I/Fの動作表示、日付け・時刻表示、外部コンピュータとの接続状態を示す表示、等がある。   The display unit forming a part of the output unit 54 has a part of its function installed in the optical viewfinder 104. Of the contents displayed by the output unit 54, those displayed on the LCD or the like include, for example, a single shot / continuous shooting display, a self-timer display, a compression ratio display, a recording pixel number display, a recording number display, and a remaining number of images displayable. , Shutter speed display, Aperture value display, Exposure compensation display, Flash display, Red-eye reduction display, Macro shooting display, Buzzer setting display, Clock battery remaining display, Battery remaining display, Error display, Multi-digit information display Display of the attachment / detachment state of the recording media 200 and 210, attachment / detachment state display of the lens unit 300, operation display of the communication I / F, date / time display, display indicating the connection state with the external computer, and the like.

また、表示部54による表示内容のうち、光学ファインダー104内に表示するものとしては、例えば、合焦表示、撮影準備完了表示、手振れ警告表示、フラッシュ充電表示、フラッシュ充電完了表示、シャッタースピード表示、絞り値表示、露出補正表示、記録媒体書き込み動作表示等がある。   Further, among the display contents of the display unit 54, those displayed in the optical viewfinder 104 include, for example, an in-focus display, a shooting ready display, a camera shake warning display, a flash charging display, a flash charging completed display, a shutter speed display, There are an aperture value display, an exposure correction display, a recording medium writing operation display, and the like.

さらに、表示部54による表示内容のうち、LED等に表示するものとしては、例えば、合焦表示、撮影準備完了表示、手振れ警告表示、手振れ警告表示、フラッシュ充電表示、フラッシュ充電完了表示、記録媒体書き込み動作表示、マクロ撮影設定通知表示、二次電池充電状態表示等がある。   Further, among the display contents of the display unit 54, those displayed on the LED or the like include, for example, an in-focus display, a shooting ready display, a camera shake warning display, a camera shake warning display, a flash charge display, a flash charge completion display, and a recording medium. There are a writing operation display, a macro shooting setting notification display, a secondary battery charge state display, and the like.

そして、表示部54による表示内容のうち、ランプ等に表示するものとしては、例えば、セルフタイマー通知ランプ等がある。このセルフタイマー通知ランプは、AF補助光と共用して用いても良い。   Then, among the display contents of the display unit 54, those displayed on a lamp or the like include, for example, a self-timer notification lamp. This self-timer notification lamp may be shared with the AF auxiliary light.

56は電気的に消去・記録可能な不揮発性メモリであり、例えばEEPROM等が用いられる。   Reference numeral 56 denotes an electrically erasable / recordable nonvolatile memory, for example, an EEPROM or the like.

60,62,64,66,68及び70は、システム制御回路50の各種の動作指示を入力するための操作手段であり、例えば、スイッチやダイアル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される。ここで、これらの操作手段の具体的な説明を行う。   Reference numerals 60, 62, 64, 66, 68, and 70 denote operating means for inputting various operation instructions of the system control circuit 50. For example, switches, dials, touch panels, pointing by gaze detection, voice recognition devices, and the like. It is composed of one or a plurality of combinations. Here, these operation means will be specifically described.

60はモードダイアルスイッチであり、これにより、自動撮影モード、プログラム撮影モード、シャッター速度優先撮影モード、絞り優先撮影モード、マニュアル撮影モード、焦点深度優先(デプス)撮影モード、ポートレート撮影モード、風景撮影モード、接写撮影モード、スポーツ撮影モード、夜景撮影モード、パノラマ撮影モード等の撮影モードを選択することが出来る。   Reference numeral 60 denotes a mode dial switch, which is used for automatic shooting mode, program shooting mode, shutter speed priority shooting mode, aperture priority shooting mode, manual shooting mode, depth of focus priority (depth) shooting mode, portrait shooting mode, landscape shooting. A photographing mode such as a mode, a close-up photographing mode, a sports photographing mode, a night scene photographing mode, and a panoramic photographing mode can be selected.

62はシャッタースイッチSW1であり、不図示のシャッターボタンの操作途中でONとなり、この時、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュ調光)処理等の動作開始を指示する。   Reference numeral 62 denotes a shutter switch SW1, which is turned on during operation of a shutter button (not shown). At this time, AF (auto focus) processing, AE (auto exposure) processing, AWB (auto white balance) processing, EF (flash light control) ) Instruct operation start such as processing.

64はシャッタースイッチSW2であり、前記シャッターボタンの操作完了でONとなり、撮像素子12から読み出した信号をA/D変換器16、メモリ制御回路22を介してメモリ30に画像データとして書き込む露光処理、画像処理回路20やメモリ制御回路22での演算を用いた現像処理、メモリ30から画像データを読み出し、圧縮・伸長回路32で圧縮を行い、記録媒体200或いは210にその画像データを書き込む記録処理という一連の処理の動作開始を指示する。   Reference numeral 64 denotes a shutter switch SW2, which is turned on when the operation of the shutter button is completed, and performs an exposure process of writing a signal read from the image sensor 12 to the memory 30 via the A / D converter 16 and the memory control circuit 22 as image data. A development process using an operation in the image processing circuit 20 or the memory control circuit 22, a recording process in which image data is read from the memory 30, compressed by the compression / decompression circuit 32, and the image data is written to the recording medium 200 or 210. Instructs the start of a series of processing operations.

68はAFモード設定スイッチであり、これにより、シャッタースイッチSW1がONになった時にオートフォーカス動作を開始し合焦後にその合焦状態を保ち続けるワンショットAFモードと、シャッタースイッチSW1がONになっている間、連続してオートフォーカス動作を続けるサーボAFモードとを選択することができる。   Reference numeral 68 denotes an AF mode setting switch. The AF mode setting switch starts an autofocus operation when the shutter switch SW1 is turned on and keeps the in-focus state after focusing, and the shutter switch SW1 is turned on. During this time, it is possible to select the servo AF mode in which the autofocus operation is continuously performed.

70は各種ボタンやタッチパネル等からなる操作部であり、メニューボタン、セットボタン、マクロボタン、マルチ画面再生の改ページボタン、フラッシュ設定ボタン、単写/連写/セルフタイマーの切り替えボタン、メニュー移動に関する+(プラス)ボタン、メニュー移動に関する−(マイナス)ボタン、再生画像の移動に関する+(プラス)ボタン、再生画像の移動に関する−(マイナス)ボタン、撮影画質選択ボタン、露出補正ボタン、日付/時間設定ボタン、パノラマモード等の撮影及び再生を実行する際に各種機能の選択及び切り替えを設定する選択/切り替えボタン、パノラマモード等の撮影及び再生を実行する際に各種機能の決定及び実行を設定する決定/実行ボタン、画像表示部28のON/OFFを設定する画像表示ON/OFFスイッチ、撮影直後に撮影した画像データを自動再生するクイックレビュー機能を設定するクイックレビューON/OFFスイッチ、JPEG圧縮の圧縮率を選択するため或いは撮像素子の信号をそのままディジタル化して記録媒体に記録するCCDRAWモードを選択するためのスイッチである圧縮モードスイッチ、再生モード、マルチ画面再生・消去モード、PC接続モード等のモードを選択する再生モードスイッチ、シャッタースイッチSW2がONになった時に1駒の撮影を行って待機状態とする単写モードとシャッタースイッチSW2がONになっている間は連続して撮影を行い続ける連写モードとを選択する単写/連写スイッチ、撮影モード状態において、撮影した画像をメモリ30或いは記録媒体200或いは210から読み出して画像表示部28によって表示する再生動作の開始を指示する再生スイッチ等がある。   An operation unit 70 includes various buttons, a touch panel, and the like, and relates to a menu button, a set button, a macro button, a page break button for multi-screen playback, a flash setting button, a single-shot / continuous-shot / self-timer switching button, and menu movement. + (Plus) button,-(minus) button for menu movement, + (plus) button for movement of playback image,-(minus) button for movement of playback image, shooting quality selection button, exposure compensation button, date / time setting Button, selection / switching button for setting selection and switching of various functions when performing shooting and playback of panorama mode, etc., determination for setting and execution of various functions when performing shooting and playback of panorama mode and the like / Execute button, image display O for setting ON / OFF of image display unit 28 / OFF switch, a quick review ON / OFF switch for setting a quick review function for automatically playing back the image data taken immediately after shooting, selecting the compression rate of JPEG compression, or digitizing the signal of the image sensor directly to the recording medium A compression mode switch which is a switch for selecting a CCD RAW mode for recording, a reproduction mode switch for selecting a mode such as a reproduction mode, a multi-screen reproduction / deletion mode, and a PC connection mode, and one frame when the shutter switch SW2 is turned on. A single / continuous shooting switch for selecting between a single shooting mode in which shooting is performed and a standby state is set and a continuous shooting mode in which shooting is continuously performed while the shutter switch SW2 is ON. The obtained image is stored in the memory 30 or the recording medium 200 or 21. A reproduction switch for instructing the start of reproducing operation of displaying the image display unit 28 reads from.

また、上記プラスボタン及びマイナスボタンの各機能は、回転ダイアルスイッチを備えることによって、より軽快に数値や機能を選択することが可能となる。   The functions of the plus button and the minus button are provided with a rotary dial switch, so that it is possible to more easily select a numerical value and a function.

72は電源スイッチであり、これにより、画像処理装置100の電源オン、電源オフの切り替えることができる。また、この電源スイッチ72により、画像処理装置100に接続されたレンズユニット300、外部ストロボ、記録媒体200、210等の各種付属装置の電源オン、電源オフの設定も合わせて切り替えることができる。   Reference numeral 72 denotes a power switch, by which the power of the image processing apparatus 100 can be turned on and off. The power switch 72 can also be used to switch on / off the power of various attached devices such as the lens unit 300, the external strobe, and the recording media 200 and 210 connected to the image processing apparatus 100.

80は電源制御部であり、電池検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成されており、電池の装着の有無、電池の種類、電池残量の検出を行い、検出結果及びシステム制御回路50の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記録媒体を含めて、各部へ供給する。   Reference numeral 80 denotes a power control unit, which includes a battery detection circuit, a DC-DC converter, a switch circuit for switching a block to be energized, and the like. The DC-DC converter is controlled based on the result and the instruction of the system control circuit 50, and a necessary voltage is supplied to each unit including a recording medium for a necessary period.

82はコネクタ、84はコネクタ、86はアルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等からなる電源部である。   Reference numeral 82 denotes a connector, 84 denotes a connector, and 86 denotes a power supply unit including a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, and an AC adapter.

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

なお、この実施の形態では、記録媒体を取り付けるインターフェース及びコネクタを2系統持つものとして説明している。もちろん、記録媒体を取り付けるインターフェース及びコネクタは、単数としてもよいし、複数としてもよい。また、異なる規格のインターフェース及びコネクタを組み合わせて備える構成としてもよい。   In this embodiment, the description has been made assuming that there are two interfaces and connectors for attaching a recording medium. Of course, the interface and the connector for attaching the recording medium may be singular or plural. Further, a configuration may be adopted in which interfaces and connectors of different standards are combined.

インターフェース及びコネクタとしては、例えば、PCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠した構を採用することができる。   As the interface and the connector, for example, a structure conforming to a standard such as a PCMCIA card or a CF (Compact Flash (registered trademark)) card can be adopted.

さらに、インタフェース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 to conform to standards such as a PCMCIA card and a CF (Compact Flash (registered trademark)) card, a LAN card, a modem card, a USB card, an IEEE 1394 card, a P1284 Transfer of image data and management information attached to the image data between other computers and peripheral devices such as printers by connecting various communication cards such as a communication card such as a card, SCSI card, and PHS. Can be done.

104は光学ファインダである。レンズ310に入射した光線は、一眼レフ方式によって、絞り312、レンズマウント306及び106、ミラー130及び132を介して光学ファインダーに導かれる。これにより、画像表示部28による電子ファインダー機能を使用することなく、光学ファインダ104のみを用いて撮影を行うことが可能である。また、光学ファインダー104内には、表示部54の一部の機能、例えば、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタースピード表示、絞り値表示、露出補正表示などが設置され得る。   104 is an optical finder. The light beam that has entered the lens 310 is guided to the optical finder via the stop 312, the lens mounts 306 and 106, and the mirrors 130 and 132 by the single-lens reflex method. Thus, it is possible to perform photographing using only the optical viewfinder 104 without using the electronic viewfinder function of the image display unit 28. In the optical viewfinder 104, some functions of the display unit 54, for example, an in-focus display, a camera shake warning display, a flash charge display, a shutter speed display, an aperture value display, an exposure correction display, and the like can be provided.

106は、画像処理装置100をレンズユニット300に機械的に結合させるレンズマウントである。レンズマウント106内には、画像処理装置100をレンズユニット300と電気的に接続する各種機能が含まれている。   Reference numeral 106 denotes a lens mount that mechanically couples the image processing apparatus 100 to the lens unit 300. Various functions for electrically connecting the image processing apparatus 100 to the lens unit 300 are included in the lens mount 106.

108は照明部であり、撮像素子14の画素の中で常に白いデータを出力する白点キズ及び/或いは常に黒いデータを出力する黒点キズに係る画素を検出する点キズ位置検出処理を実行する際に、撮像素子14に対して所定の投光を行って撮像素子14の出力が黒以外の値となるようにして、主として常に黒いデータを出力する黒点キズに係る画素を検出することを可能とするものである。   Reference numeral 108 denotes an illuminating unit which performs a point flaw position detection process for detecting a pixel related to a white point flaw that always outputs white data and / or a black point flaw that always outputs black data among the pixels of the image sensor 14. In addition, by performing predetermined light projection on the image sensor 14 so that the output of the image sensor 14 becomes a value other than black, it is possible to detect a pixel related to a black spot flaw that always outputs black data. To do.

110は通信部であり、例えば、RS232C、USB、IEEE1394、P1284、SCSI、モデム、LAN、無線通信等の各種通信機能の全部又は一部を有する。   A communication unit 110 has all or some of various communication functions such as RS232C, USB, IEEE1394, P1284, SCSI, modem, LAN, and wireless communication.

112は通信部110により画像処理装置100を他の機器と接続するコネクタ(無線通信の場合はアンテナ)である。   Reference numeral 112 denotes a connector (an antenna in the case of wireless communication) for connecting the image processing apparatus 100 to another device by the communication unit 110.

120は、レンズマウント106内において、画像処理装置100をレンズユニット300と接続するためのインタフェース、122は画像処理装置100をレンズユニット300と電気的に接続するコネクタ、124はレンズマウント106及び或いはコネクタ122にレンズユニット300が装着されているか否かを検知するレンズ着脱検知部である。   Reference numeral 120 denotes an interface for connecting the image processing apparatus 100 to the lens unit 300 in the lens mount 106, 122 denotes a connector for electrically connecting the image processing apparatus 100 to the lens unit 300, and 124 denotes the lens mount 106 and / or the connector. A lens attachment / detachment detection unit that detects whether or not the lens unit 300 is attached to 122.

コネクタ122は、画像処理装置100とレンズユニット300との間で制御信号、状態信号、データ信号等を相互に伝達すると共に、各種電圧の電流を供給する機能も備えている。ここで、コネクタ122として、電気通信のみならず、光通信、音声通信等を行う構成を採用することもできる。   The connector 122 has a function of mutually transmitting a control signal, a state signal, a data signal, and the like between the image processing apparatus 100 and the lens unit 300, and has a function of supplying currents of various voltages. Here, as the connector 122, a configuration for performing not only electrical communication but also optical communication, voice communication, and the like can be adopted.

130、132はミラーであり、レンズ310に入射した光線を、一眼レフ方式によって光学ファインダ104に導く。なお、ミラー132は、クイックリターンミラーの構成としてもよいし、ハーフミラーの横成としてもよい。   Reference numerals 130 and 132 denote mirrors, which guide light rays incident on the lens 310 to the optical finder 104 by a single-lens reflex method. In addition, the mirror 132 may be configured as a quick return mirror, or may be configured horizontally as a half mirror.

200はメモリカードやハードディスク等の記録媒体である。記録媒体200は、例えば半導体メモリや磁気ディスク等で構成される記録部202と、画像処理装置100とのインタフェース204と、画像処理装置100と接続するためのコネクタ206とを備えている。   Reference numeral 200 denotes a recording medium such as a memory card or a hard disk. The recording medium 200 includes a recording unit 202 composed of, for example, a semiconductor memory or a magnetic disk, an interface 204 with the image processing apparatus 100, and a connector 206 for connecting to the image processing apparatus 100.

210はメモリカードやハードディスク等の記録媒体である。記録媒体210は、例えば半導体メモリや磁気ディスク等で構成される記録部212と、画像処理装置100とのインタフェース214と、画像処理装置100と接続するためのコネクタ216を備えている。   210 is a recording medium such as a memory card or a hard disk. The recording medium 210 includes a recording unit 212 including, for example, a semiconductor memory or a magnetic disk, an interface 214 with the image processing apparatus 100, and a connector 216 for connecting to the image processing apparatus 100.

300は交換レンズタイプのレンズユニットである。306は、レンズユニット300を画像処理装置100と機械的に結合するためのレンズマウントである。レンズマウント306内には、レンズユニット300を画像処理装置100と電気的に接続する各種機能が含まれている。310は撮影レンズ、312は絞りである。   Reference numeral 300 denotes an interchangeable lens type lens unit. Reference numeral 306 denotes a lens mount for mechanically coupling the lens unit 300 to the image processing apparatus 100. The lens mount 306 includes various functions for electrically connecting the lens unit 300 to the image processing apparatus 100. Reference numeral 310 denotes a photographing lens, and 312 denotes an aperture.

320は、レンズマウント306内において、レンズユニット300を画像処理装置100と接続するためのインタフェース、322はレンズユニット300を画像処理装置100と電気的に接続するコネクタである。   Reference numeral 320 denotes an interface in the lens mount 306 for connecting the lens unit 300 to the image processing apparatus 100. Reference numeral 322 denotes a connector for electrically connecting the lens unit 300 to the image processing apparatus 100.

コネクタ322は、画像処理装置100とレンズユニット300との間で制御信号、状態信号、データ信号等を相互に伝達すると共に、各種電圧の電流を供給される機能或いは供給する機能を備えている。また、コネクタ322として、電気通信のみならず、光通信、音声通信等を行う構成を採用することもできる。   The connector 322 has a function of transmitting a control signal, a state signal, a data signal, and the like between the image processing apparatus 100 and the lens unit 300, and a function of supplying or supplying a current of various voltages. Further, as the connector 322, a configuration for performing not only electrical communication but also optical communication, voice communication, and the like can be employed.

340は測光部46から提供される測光情報に基づいて、シャッター12を制御するシャッター制御部40と連携しながら、絞り312を制御する絞り制御部である。   Reference numeral 340 denotes an aperture control unit that controls the aperture 312 in cooperation with the shutter control unit 40 that controls the shutter 12 based on photometric information provided from the photometric unit 46.

342は撮影レンズ310のフォーカシングを制御する測距制御部、344は撮影レンズ310のズーミングを制御するズーム制御部である。   Reference numeral 342 denotes a distance measurement control unit that controls focusing of the imaging lens 310, and 344 denotes a zoom control unit that controls zooming of the imaging lens 310.

350はレンズユニット300全体を制御するレンズシステム制御回路である。レンズシステム制御回路350は、動作用の定数、変数、プログラム等を記憶するメモリやレンズユニット300固有の番号等の識別情報、管理情報、開放絞り値や最小絞り値、焦点距離等の機能情報、現在や過去の各設定値などを保持する不揮発メモリの機能も備えている。   Reference numeral 350 denotes a lens system control circuit that controls the entire lens unit 300. The lens system control circuit 350 includes a memory for storing operation constants, variables, programs, and the like, identification information such as a number unique to the lens unit 300, management information, function information such as an open aperture value and a minimum aperture value, and a focal length. It also has a function of a non-volatile memory for storing current and past set values.

図2乃至図7を参照して、本発明の第1の実施例の動作を説明する。   The operation of the first embodiment of the present invention will be described with reference to FIGS.

図2乃至図4は本発明の第1の実施例の画像処理装置100の主ルーチンのフローチャートを示す。   FIGS. 2 to 4 show flowcharts of the main routine of the image processing apparatus 100 according to the first embodiment of the present invention.

次いで、図2乃至図4を用いて、画像処理装置100の動作を説明する。   Next, the operation of the image processing apparatus 100 will be described with reference to FIGS.

例えば電池交換の完了に伴う電源投入等により、システム制御回路50はフラグや制御変数等を初期化し、画像処理装置100の各部において必要な所定の初期設定を行う(S101)。   For example, when the power is turned on upon completion of battery replacement, the system control circuit 50 initializes flags, control variables, and the like, and performs necessary predetermined initialization in each unit of the image processing apparatus 100 (S101).

システム制御回路50は、撮像素子14の画素の中で常に白いデータを出力する白点キズ及び或いは常に黒いデータを出力する果点キズに係る画素を検出して、その画素のアドレスを特定する画素欠陥位置アドレスを記憶する点キズ位置検出処理を行い(S102)、S103に進む。   The system control circuit 50 detects a pixel related to a white spot flaw that always outputs white data and / or a pixel flaw that always outputs black data among the pixels of the image sensor 14, and specifies the pixel address of the pixel. A point flaw position detection process for storing the defect position address is performed (S102), and the process proceeds to S103.

この点キズ位置検出処理で検出した撮像素子14の画素欠陥位置アドレスを用いて、隣接画素の撮影画像データによる補間演算処理を行うことにより、撮影した画像データに対する点キズ補正処理を行うことが出来る。この点キズ位置検出処理(S102)の詳細は図8を用いて後述する。   By using the pixel defect position address of the image sensor 14 detected in the point flaw position detection processing to perform interpolation calculation processing based on captured image data of adjacent pixels, point flaw correction processing can be performed on the captured image data. . The details of the point flaw position detection processing (S102) will be described later with reference to FIG.

このように、電池交換の完了に伴う電源投入等に応じて点キズ位置検出処理を行って、画像処理装置100の使用者が撮影動作を開始する前に点キズ位置検出処理を終えることにより、撮影時に点キズ位置検出処理を行うことによるシャッターレリーズタイムラグの増大の問題が生じることを防止することが出来る。   In this way, by performing the point flaw position detection processing in response to power-on or the like accompanying the completion of battery replacement, the point flaw position detection processing is completed before the user of the image processing apparatus 100 starts a shooting operation. It is possible to prevent a problem of an increase in shutter release time lag caused by performing a point flaw position detection process during photographing.

また、電池交換の完了等に伴う電源投入等に応じて点キズ位置検出処理を行うことにより、経時変化に対応した点キズ位置検出処理を用いて、点キズ補正処理を行うことが可能となる。   In addition, by performing the point flaw position detection processing in response to power-on or the like upon completion of battery replacement or the like, it becomes possible to perform point flaw correction processing using point flaw position detection processing corresponding to aging. .

システム制御回路50は、電源スイッチ66の設定位置を判断し、電源スイッチ66が電源OFFに設定されていたならば(S103)、各表示部の表示を終了状態に変更し、フラグや制御変数等を含む必要なパラメータや設定値、設定モードを不揮発性メモリ56に記録し、電源制御部80により、画像表示部28を含めて、画像処理装置100各部の不要な電源を遮断する等の所定の終了処理(S104)を行った後にS103に戻る。   The system control circuit 50 determines the setting position of the power switch 66, and if the power switch 66 is set to the power OFF state (S103), changes the display of each display unit to an end state, and sets a flag, a control variable, and the like. Are recorded in the non-volatile memory 56, and the power supply control unit 80 controls the image processing unit 100, including the image display unit 28, to shut down unnecessary power supplies. After performing the end processing (S104), the process returns to S103.

電源スイッチ66が電源ONに設定されていたならば(S103)、システム制御回路50は、電源制御部80により電池等により構成される電源86の残容量や動作情況が画像処理装置100の動作に問題があるか否かを判断し(S105)、問題があるならば出力部54を用いて画像や音声により所定の警告を行った後に(S106)、S103に戻る。   If the power switch 66 has been set to power ON (S103), the system control circuit 50 causes the power control unit 80 to determine whether the remaining capacity or the operating state of the power source 86 including a battery or the like is in effect for the operation of the image processing apparatus 100. It is determined whether or not there is a problem (S105). If there is a problem, a predetermined warning is given by image or sound using the output unit 54 (S106), and the process returns to S103.

電源86に問題が無いならば(S105において”yes”)、システム制御回路50はモードダイアル60の設定位置を判断し、モードダイアル60が撮影モードに設定されていたならば(S107)、S109に進む。   If there is no problem in the power supply 86 ("yes" in S105), the system control circuit 50 determines the setting position of the mode dial 60, and if the mode dial 60 is set to the photographing mode (S107), the process proceeds to S109. move on.

モードダイアル60がその他のモードに設定されていたならば(S107)、システム制御回路50は選択されたモードに応じた処理を実行し(S108)、処理を終えたならばS103に戻る。   If the mode dial 60 has been set to another mode (S107), the system control circuit 50 executes a process according to the selected mode (S108), and returns to S103 when the process is completed.

システム制御回路50は、記録媒体200或いは210が装着されているかどうかの判断、記録媒体200或いは210に記録された画像データの管理情報の取得、そして、記録媒体200或いは210の動作状態が画像処理装置100の動作、特に記録媒体に対する画像データの記録再生動作に問題があるか否かの判断を行い(S109)、問題があるならば出力部54を用いて画像や音声により所定の警告を行った後に(S106)、S103に戻る。   The system control circuit 50 determines whether the recording medium 200 or 210 is mounted, obtains management information of image data recorded on the recording medium 200 or 210, and determines whether the operation state of the recording medium 200 or 210 is image processing. It is determined whether or not there is a problem in the operation of the apparatus 100, particularly in the operation of recording and reproducing image data on the recording medium (S109). If there is a problem, a predetermined warning is issued by the image or sound using the output unit 54. After that (S106), the process returns to S103.

記録媒体200或いは210が装着されているかどうかの判断、記録媒体200或いは210に記録された画像データの管理情報の取得、そして、記録媒体200或いは210の動作状態が画像処理装置100の動作、特に記録媒体に対する画像データの記録再生動作に問題があるか否かの判断を行った結果(S109)、問題が無いならば、S110に進む。   It is determined whether or not the recording medium 200 or 210 is mounted, the management information of the image data recorded on the recording medium 200 or 210 is obtained, and the operation state of the recording medium 200 or 210 indicates the operation of the image processing apparatus 100, particularly As a result of determining whether there is a problem in the operation of recording and reproducing image data on the recording medium (S109), if there is no problem, the process proceeds to S110.

システム制御回路50は、AFモード設定スイッチ68の状態を調べ、ワンショットAFモードが選択されているならばAFモードフラグをワンショットAFに設定し(S111)、サーボAFモードが選択されているならばAFモードフラグをサーボAFに設定し(S112)、フラグの設定を終えたならばS113に進む。   The system control circuit 50 checks the state of the AF mode setting switch 68, and if the one-shot AF mode is selected, sets the AF mode flag to one-shot AF (S111), and if the servo AF mode is selected. For example, the AF mode flag is set to servo AF (S112), and when the setting of the flag is completed, the process proceeds to S113.

システム制御回路50は表示部54を用いて画像や音声により画像処理装置100の各種設定状態の表示を行い(S113)、S114に進む。なお、画像表示部28の画像表示がONであったならは、画像表示部28も用いて画像や音声により画像処理装置100の各種設定状態の表示を行う。   The system control circuit 50 uses the display unit 54 to display various setting states of the image processing apparatus 100 using images and sounds (S113), and proceeds to S114. If the image display of the image display unit 28 is ON, the various display states of the image processing apparatus 100 are displayed by the image display unit 28 using images and sounds.

システム制御回路50は、レンズ着脱検知部124により、レンズマウント306とレンズマウント106を介して及び或いはコネクタ322とコネクタ122を介して、レンズユニット300が画像処理装置100に装着されているか否かを調べ(S114)、レンズユニット300が装着されていないならばS131に進む。   The system control circuit 50 determines whether or not the lens unit 300 is attached to the image processing apparatus 100 via the lens mount 306 and the lens mount 106 and / or via the connector 322 and the connector 122 by the lens attachment / detachment detection unit 124. Inspection (S114), if the lens unit 300 is not mounted, the flow proceeds to S131.

レンズユニット300が装着されているならば(S114)、システム制御回路50は、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び或いは色シェーディングを補償するために、装着されたレンズユニット300に対応したシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データが、不揮発性メモリ56或いはメモリ30の一部或いは全てを不揮発性メモリに構成した場合はメモリ30の不揮発性メモリ領域に有るか否かを判断し(S115)、装着されたレンズユニット300に対応するシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データが無いならば、出力部54を用いて画像や音声により所定の警告を行った後に(S116)、S103に戻る。   If the lens unit 300 is mounted (S114), the system control circuit 50 controls the brightness shading and / or the color generated in the process of forming the subject image on the image sensor 14 of the image processing apparatus 100 via the lens unit 300. When shading correction data including a shading correction coefficient or a shading correction function corresponding to the mounted lens unit 300 is used to compensate for shading, a part or all of the nonvolatile memory 56 or the memory 30 is configured as a nonvolatile memory. Determines whether the data exists in the non-volatile memory area of the memory 30 (S115). If there is no shading correction coefficient or shading correction data corresponding to the mounted lens unit 300, the output unit 54 is output. Painting with And after performing a predetermined warning by voice (S116), the flow returns to S103.

装着されたレンズユニット300に対応するシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データが有るならば(S115)、システム制御回路50は、不揮発性メモリ56或いはメモリ30の一部或いは全てを不揮発性メモリに構成した場合はメモリ30の不揮発性メモリ領域から、装着されたレンズユニット300に対応するシェーディング補正データを読み出してシステム制御回路50の作業領域であるメモリ30の所定の領域に格納するシェーディング補正データの設定を行い(S117)、S131に進む。   If there is shading correction data including a shading correction coefficient or a shading correction function corresponding to the mounted lens unit 300 (S115), the system control circuit 50 stores a part or all of the nonvolatile memory 56 or the memory 30 in a nonvolatile manner. When configured as a memory, shading correction for reading shading correction data corresponding to the mounted lens unit 300 from the non-volatile memory area of the memory 30 and storing the data in a predetermined area of the memory 30 which is a work area of the system control circuit 50 The data is set (S117), and the process proceeds to S131.

このように、装着されたレンズユニット300に応じてシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データを設定することにより、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び或いは色シェーディングを補償するために、装着されたレンズユニットに応じて所定のシェーディング補正係数或いはシェーディング補正関数を用いて撮影画像データに対して乗算処理を行うシェーディング補正処理を行うことが可能となる。   As described above, by setting the shading correction coefficient or the shading correction data including the shading correction function according to the mounted lens unit 300, the subject image is connected to the image sensor 14 of the image processing apparatus 100 via the lens unit 300. Shading correction for performing multiplication processing on photographed image data using a predetermined shading correction coefficient or shading correction function according to a mounted lens unit in order to compensate for luminance shading and / or color shading generated in an image forming process. Processing can be performed.

また、装着されたレンズユニット300に応じて設定したシェーディング補正データを用いて、被写体を撮影する際のレンズユニット300の絞り312の絞り値及び/或いは被写体を撮影する際のレンズユニット300の焦点距離値に応じて、所定のシェーディング補正係数或いはシェーディング補正関数を選択して、最適な補正量のシェーディング補正処理を行うことが可能である。   Also, using the shading correction data set according to the mounted lens unit 300, the aperture value of the aperture 312 of the lens unit 300 when photographing the subject and / or the focal length of the lens unit 300 when photographing the subject. It is possible to select a predetermined shading correction coefficient or shading correction function according to the value, and perform shading correction processing with an optimum correction amount.

その後、シャッタースイッチSW1がOFFになっているならば(S131)、S103に戻る。   Thereafter, if the shutter switch SW1 is OFF (S131), the process returns to S103.

シャッタースイッチSW1がONになっているならば(S131)、システム制御回路50は、測距処理を行って撮影レンズ10の焦点を被写体に合わせると共に、測光処理を行って絞り値及びシャッター時間を決定する。測距・測光処理の結果は、システム制御回路50の内部メモリ或いはメモリ52に測光データ及び/或いは設定パラメータとして記憶される(S132)。測光処理に於いて、必要であればフラッシュの設定も行う。この測距・測光処理S132の詳細は図5を用いて後述する。   If the shutter switch SW1 is ON (S131), the system control circuit 50 performs a distance measurement process to focus the photographing lens 10 on the subject, and performs a photometry process to determine an aperture value and a shutter time. I do. The result of the distance measurement / photometry processing is stored as photometry data and / or setting parameters in the internal memory of the system control circuit 50 or the memory 52 (S132). In the photometry processing, the flash setting is also performed if necessary. Details of the distance measurement / photometry processing S132 will be described later with reference to FIG.

そして、記憶した測光データ及び/或いは設定パラメータとモードダイアル60によって設定された撮影モードに応じて、絞り値(Av値)、シャッター速度(Tv値)を決定し、更に、決定したシャッター速度(Tv値)に応じて、電荷蓄積時間を決定して、システム制御回路50の内部メモリ或いはメモリ52に記憶する(S133)。   Then, an aperture value (Av value) and a shutter speed (Tv value) are determined according to the stored photometric data and / or setting parameters and the shooting mode set by the mode dial 60, and further, the determined shutter speed (Tv value) is determined. The charge accumulation time is determined according to (value), and is stored in the internal memory of the system control circuit 50 or the memory 52 (S133).

システム制御回路50は、シャッタースイッチSW1がONになった後にまだダーク取込み処理を行っていない場合、或いは既にダーク取込み処理を行ったがその後に再度行われた測距・測光処理の測定結果に応じて電荷蓄積時間が変更になった場合(S134)、S135に進む。一方、既にダーク取込み処理を行っており、且つ、その後に再度行われた測距・測光処理の測定結果によっても電荷蓄積時間が変更になっていない場合(S134)、S136に進む。   The system control circuit 50 determines whether the dark capture processing has not been performed yet after the shutter switch SW1 has been turned ON, or according to the measurement result of the distance measurement / photometry processing that has already been performed but has been performed again thereafter. If the charge accumulation time has been changed (S134), the process proceeds to S135. On the other hand, if the dark capture processing has already been performed, and the charge accumulation time has not been changed by the measurement result of the distance measurement / photometry processing performed again thereafter (S134), the process proceeds to S136.

システム制御回路50は、シャッター12を閉じた状態で撮像素子14の暗電流等のノイズ成分を本撮影と同じ時間だけ蓄積し、蓄積を終えたノイズ画像信号を読み出すダーク取り込み処理を行い(S135)、S136に進む。   With the shutter 12 closed, the system control circuit 50 accumulates noise components such as dark current of the image sensor 14 for the same time as the actual photographing, and performs dark capture processing for reading out the noise image signal after accumulation (S135). , S136.

このダーク取り込み処理で取り込んだダーク画像データを用いて補正演算処理を行うことにより、撮像素子14の発生する暗電流ノイズや撮像素子14固有のキズによる画素欠損等の画質劣化に関して、撮影した画像データを補正することが出来る。このダーク取り込み処理S135の詳細は図7を用いて後述する。   By performing a correction calculation process using the dark image data captured in the dark capture process, the captured image data is obtained with respect to image quality deterioration such as dark current noise generated by the image sensor 14 and pixel defects due to scratches inherent to the image sensor 14. Can be corrected. The details of the dark capture processing S135 will be described later with reference to FIG.

システム制御回路50は、システム制御回路50の内部メモリ或いはメモリ52に記憶した測光データ及び/或いは設定パラメータに基づいて、レンズユニット300の絞り312の絞り値Aを決定する(S136)。   The system control circuit 50 determines the aperture value A of the aperture 312 of the lens unit 300 based on photometric data and / or setting parameters stored in the internal memory of the system control circuit 50 or the memory 52 (S136).

さらに、システム制御回路50は、レンズ制御回路350、インタフェース320、コネクタ322、コネクタ122、インタフェース120を介してズーム制御部344よりレンズユニット300の焦点距離情報を取得し、取得した焦点距離情報に基づいて、撮影する際のレンズユニット300の焦点距離値Lを決定する(S137)。   Further, the system control circuit 50 acquires the focal length information of the lens unit 300 from the zoom control unit 344 via the lens control circuit 350, the interface 320, the connector 322, the connector 122, and the interface 120, and based on the acquired focal length information. Then, the focal length L of the lens unit 300 at the time of shooting is determined (S137).

そして、システム制御回路50は、S136で決定した絞り値A及び/或いはS137で決定した焦点距離値Lに基づいて、シェーディング補正値を決定する(S138)。   Then, the system control circuit 50 determines a shading correction value based on the aperture value A determined in S136 and / or the focal length value L determined in S137 (S138).

このように、この実施の形態では、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び/或いは色シェーディングを補償するために、装着されたレンズユニット300に応じてS117において設定したシェーディング補正データを用いる。そして、被写体を撮影する際のレンズユニット300の絞り312の絞り値A及び/或いは被写体を撮影する際のレンズユニット300の焦点距離値Lに応じて、所定のシェーディング補正係数或いはシェーディング補正関数を選択して、これを用いて撮影画像データに対して乗算処理を行うことにより、最適な補正量のシェーディング補正処理を行うことが可能である。   As described above, in this embodiment, the image sensor is mounted to compensate for luminance shading and / or color shading generated in the process of forming the subject image on the image sensor 14 of the image processing apparatus 100 via the lens unit 300. The shading correction data set in S117 according to the lens unit 300 used is used. Then, a predetermined shading correction coefficient or a predetermined shading correction function is selected according to the aperture value A of the aperture 312 of the lens unit 300 when photographing the subject and / or the focal length L of the lens unit 300 when photographing the subject. Then, by performing the multiplication process on the photographed image data using this, it is possible to perform the shading correction process with the optimum correction amount.

その後、シャッタースイッチSW2がOFFであるならば(S139)、システム制御回路50はシャッタースイッチSW1の状態を判断する。そして、シャッタースイッチSW1がOFFであるならば(S140)、S103に戻る。   Thereafter, if the shutter switch SW2 is OFF (S139), the system control circuit 50 determines the state of the shutter switch SW1. If the shutter switch SW1 is OFF (S140), the process returns to S103.

シャッタースイッチSW1がONであるならば(S140)、システム制御回路50はシステム制御回路50の内部メモリ或いはメモリ52に記憶されるAFモードフラグの状態を判断し(S141)、ワンショットAFが設定されていたならば、S139に戻る。サーボAFが設定されていたならば(S141)、S132に戻る。シャッタースイッチSW2がONであるならば(S139)、S161に進む。   If the shutter switch SW1 is ON (S140), the system control circuit 50 determines the state of the AF mode flag stored in the internal memory of the system control circuit 50 or the memory 52 (S141), and one-shot AF is set. If so, the process returns to S139. If the servo AF has been set (S141), the process returns to S132. If the shutter switch SW2 is ON (S139), the process proceeds to S161.

システム制御回路50は、撮影した画像データを記憶可能な画像記憶バッファ領域がメモリ30にあるかどうかを判断し(S161)、メモリ30の画像記憶バッファ領域内に新たな画像データを記憶可能な領域が無いならば、出力部54を用いて画像や音声により所定の警告を行った後に(S162)、S103に戻る。メモリ30の画像記憶バッファ領域内に新たな画像データを記憶可能な領域が無い場合としては、例えば、メモリ30の画像記憶バッファ領域内に記憶可能な最大枚数の連写撮影を行った直後であって、メモリ30から読み出して記憶媒体200或いは210に書き込むべき最初の画像がまだ記録媒体200或いは210に未記録の状態であり、まだ1枚の空き領域もメモリ30の画像記憶バッファ領域上に確保出来ない状態である場合等が挙げられる。   The system control circuit 50 determines whether or not an image storage buffer area capable of storing captured image data is present in the memory 30 (S161), and an area capable of storing new image data in the image storage buffer area of the memory 30. If there is no warning, a predetermined warning is given by image or sound using the output unit 54 (S162), and the process returns to S103. The case where there is no area capable of storing new image data in the image storage buffer area of the memory 30 is, for example, immediately after performing the maximum number of continuous shootings that can be stored in the image storage buffer area of the memory 30. The first image to be read from the memory 30 and written to the storage medium 200 or 210 is not yet recorded on the recording medium 200 or 210, and one free area is still secured in the image storage buffer area of the memory 30. For example, the state cannot be performed.

なお、撮影した画像データを圧縮処理してからメモリ30の画像記憶バッファ領域に記憶する場合は、圧縮した後の画像データ量が圧縮モードの設定に応じて異なることを考慮して、記憶可能な領域がメモリ30の画像記憶バッファ領域上にあるかどうかをS161において判断することになる。   When the captured image data is stored in the image storage buffer area of the memory 30 after being subjected to the compression process, the image data can be stored in consideration of the fact that the amount of compressed image data differs according to the setting of the compression mode. In S161, it is determined whether or not the area is on the image storage buffer area of the memory 30.

メモリ30に撮影した画像データを記憶可能な画像記憶バッファ領域があるならば(S161)、システム制御回路50は、撮像して所定時間蓄積した撮像信号を撮像素子12から読み出して、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器から直接メモリ制御回路22を介して、メモリ30の所定領域に撮影した画像データを書き込む撮影処理を実行する(S163)。この撮影処理S163の詳細は図6を用いて後述する。   If there is an image storage buffer area capable of storing the captured image data in the memory 30 (S161), the system control circuit 50 reads out the image pickup signal that has been imaged and accumulated for a predetermined time from the image sensor 12, and performs A / D conversion. A photographing process for writing photographed image data in a predetermined area of the memory 30 is executed via the device 16, the image processing circuit 20, the memory control circuit 22, or directly from the A / D converter via the memory control circuit 22 ( S163). Details of the photographing process S163 will be described later with reference to FIG.

撮影処理S163を終えたならば、システム制御回路50は、前もってダーク取り込み処理(S135)において取り込んだダーク画像データを用いて撮影画像データに対して減算処理を行うことにより、撮像素子14の暗電流ノイズ等を打ち消すダーク補正演算処理を行う(S164)。   After the photographing process S163 is completed, the system control circuit 50 performs a subtraction process on the photographed image data using the dark image data captured in the dark capturing process (S135) in advance, so that the dark current of the image sensor 14 is reduced. A dark correction calculation process for canceling noise or the like is performed (S164).

そして、システム制御回路50は、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び/或いは色シェーディングを補償するために、S138で決定した所定のシェーディング補正係数或いはシェーディング補正関数を用いて撮影画像データに対して乗算処理を行うことにより、シェーディング補正処理を行う(S165)。   Then, the system control circuit 50 determines in S138 in order to compensate for luminance shading and / or color shading generated in the process of forming the subject image on the image sensor 14 of the image processing apparatus 100 via the lens unit 300. A shading correction process is performed by performing a multiplication process on the captured image data using a predetermined shading correction coefficient or shading correction function (S165).

さらに、システム制御回路50は、撮像素子14の画素の中で常に白いデータを出力する白点キズ及び/或いは常に黒いデータを出力する黒点キズに係る画素を補償するために、点キズ位置検出処理(S102)で検出した撮像素子14の画素欠陥位置アドレスを参照してキズ画素を特定し、それに隣接する画素の撮影画像データを用いて補間演算処理を行うことにより該キズ画素の画素値を決定する点キズ補正処理を行う(S166)。   Further, the system control circuit 50 performs a point flaw position detection process in order to compensate for a pixel related to a white point flaw that always outputs white data and / or a black point flaw that always outputs black data among the pixels of the image sensor 14. The defective pixel is specified by referring to the pixel defect position address of the image sensor 14 detected in (S102), and the pixel value of the defective pixel is determined by performing an interpolation calculation process using photographed image data of a pixel adjacent thereto. A point flaw correction process is performed (S166).

このように、撮影に先立って、ダーク補正用画像データの取り込み、使用レンズの絞り値及び/或いは焦点距離に応じたシェーディング補正係数或いはシェーディング補正関数の決定、点キズ補正のための撮像素子14の画素欠陥位置アドレスの検出をそれぞれ行うことにより、撮影した画像データに対して、ダーク取り込み画像の減算処理を行うダーク補正処理、シェーディング補正係数或いはシェーディング補正関数の乗算処理を行うシェーディング補正処理、キズ画素に隣接する画素の撮影画像データを用いた補間演算処理を行う点キズ補正処理を同時に或いは連続して行うことが可能となる。   As described above, prior to the photographing, the image data for dark correction is taken in, the shading correction coefficient or the shading correction function is determined according to the aperture value and / or the focal length of the lens to be used, and the imaging device 14 is used to correct point flaws. By performing detection of pixel defect position addresses, dark correction processing for subtracting a dark captured image from captured image data, shading correction processing for multiplying a shading correction coefficient or a shading correction function, and defective pixels It is possible to simultaneously or continuously perform the point flaw correction processing for performing the interpolation calculation processing using the photographed image data of the pixel adjacent to.

これにより、シャッターレリーズタイムラグが少なく、且つ、ダーク補正、シェーディング補正、点キズ補正を行った良好な撮影画像データを得ることができる。   As a result, it is possible to obtain good photographed image data having a small shutter release time lag and having been subjected to dark correction, shading correction, and point flaw correction.

システム制御回路50は、メモリ30の所定領域へ書き込まれた画像データの一部をメモリ制御回路22を介して読み出して、現像処理を行うために必要なWB(ホワイトバランス)積分演算処理、OB(オプティカルブラック)積分演算処理を行い、演算結果をシステム制御回路50の内部メモリ或いはメモリ52に記憶する。   The system control circuit 50 reads out a part of the image data written in a predetermined area of the memory 30 through the memory control circuit 22 and performs a WB (white balance) integration operation process, OB ( (Optical black) Integral calculation processing is performed, and the calculation result is stored in the internal memory of the system control circuit 50 or the memory 52.

そして、システム制御回路50は、メモリ制御回路22、及び必要に応じて画像処理回路20を用いて、メモリ30の所定領域に書き込まれた撮影画像データを読み出して、システム制御回路50の内部メモリ或いはメモリ52に記憶した演算結果を用いて、AWB(オートホワイトバランス)処理、ガンマ変換処理、色変換処理を含む各種現像処理を行う(S167)。   Then, the system control circuit 50 reads out the captured image data written in a predetermined area of the memory 30 using the memory control circuit 22 and, if necessary, the image processing circuit 20, and reads out the internal memory of the system control circuit 50 or Using the calculation results stored in the memory 52, various development processes including AWB (auto white balance) process, gamma conversion process, and color conversion process are performed (S167).

そして、システム制御回路50は、メモリ30の所定領域に書き込まれた画像データを読み出して、設定したモードに応じた画像圧縮処理を圧縮・伸長回路32により行い(S168)、メモリ30の画像記憶バッファ領域の空き画像部分に、撮影して一連の処理を終えた画像データの書き込みを行う。   Then, the system control circuit 50 reads out the image data written in a predetermined area of the memory 30, and performs an image compression process according to the set mode by the compression / decompression circuit 32 (S 168). Image data that has been photographed and has undergone a series of processing is written in the free image portion of the area.

一連の撮影の実行に伴い、システム制御回路50は、メモリ30の画像記憶バッファ領域に記憶した画像データを読み出して、インタフェース90或いは94、コネクタ92或いは96を介して、メモリカードやコンパクトフラッシュ(登録商標)カード等の記録媒体200或いは210へ書き込みを行う記録処理を開始する(S169)。   With the execution of a series of photographing operations, the system control circuit 50 reads out the image data stored in the image storage buffer area of the memory 30 and sends the image data to a memory card or a compact flash (registered) via the interface 90 or 94 and the connector 92 or 96. A recording process for writing data on the recording medium 200 or 210 such as a trademark) card is started (S169).

この記録処理の開始は、メモリ30の画像記憶バッファ領域の空き画像部分に、撮影後に一連の処理を終えた画像データが新たに書込まれる都度、その画像データに対して実行される。   The start of the recording process is performed on the image data each time a series of processing-completed image data is newly written into the empty image portion of the image storage buffer area of the memory 30 after shooting.

なお、記録媒体200或いは210へ画像データの書き込みを行っている間、書き込み動作中であることを明示するために、出力部54において、例えばLEDを点滅させる等の記録媒体書き込み動作表示を行う。   Note that, while the image data is being written to the recording medium 200 or 210, a recording medium writing operation display such as blinking an LED is performed on the output unit 54 in order to clearly indicate that the writing operation is being performed.

その後、システム制御回路50は、シャッタースイッチSW1がONであるか否かを判断する(S170)。そして、シャッタースイッチSW1がOFFの状態であったならば(S170)、S103に戻る。一方、シャッタースイッチSW1がONの状態であったならば(S170)、システム制御回路50はシステム制御回路50の内部メモリ或いはメモリ52に記憶されるAFモードフラグの状態を判断する(S171)。   Thereafter, the system control circuit 50 determines whether or not the shutter switch SW1 is ON (S170). If the shutter switch SW1 is off (S170), the process returns to S103. On the other hand, if the shutter switch SW1 is ON (S170), the system control circuit 50 determines the state of the AF mode flag stored in the internal memory of the system control circuit 50 or the memory 52 (S171).

ワンショットAFが設定されていたならば(S171)、新たにAF及びAEを行わずに連続して撮影を行うためにS139に戻り、次の撮影を行う。一方、サーボAFが設定されていたならば(S171)、連続してAF及びAEを行いながら撮影を行うためにS132に戻り、次の撮影を行う。   If the one-shot AF has been set (S171), the process returns to S139 to perform shooting continuously without performing new AF and AE, and performs the next shooting. On the other hand, if the servo AF has been set (S171), the process returns to S132 to perform shooting while performing AF and AE continuously, and performs the next shooting.

図5は、図3のS132における測距・測光処理の詳細なフローチャートを示す。なお、測距・測光処理においては、システム制御回路50と絞り制御部340或いは測距制御部342との間の各種信号のやり取りは、インタフェース120、コネクタ122、コネクタ322、インタフェース320、レンズ制御部350を介して行われる。   FIG. 5 shows a detailed flowchart of the distance measurement / photometry processing in S132 of FIG. In the distance measurement / photometry processing, various signals are exchanged between the system control circuit 50 and the aperture control unit 340 or the distance measurement control unit 342 through the interface 120, the connector 122, the connector 322, the interface 320, the lens control unit, and the like. This is done via 350.

システム制御回路50は、撮像素子14、測距部42及び測距制御部342を用いて、AF(オートフォーカス)処理を開始する(S201)。   The system control circuit 50 starts an AF (autofocus) process using the image sensor 14, the distance measurement unit 42, and the distance measurement control unit 342 (S201).

システム制御回路50は、レンズ310に入射した光線を、絞り312、レンズマウント306及び106、ミラー130、不図示の測距用サブミラーを介して、測距部42に入射させることにより、光学像として結像された画像の合焦状態を判断し、測距(AF)が合焦と判断されるまで(S203)、測距制御部342を用いてレンズ310を駆動しながら、測距部42を用いて合焦状態を検出するAF制御を実行する(S202)。   The system control circuit 50 causes the light beam incident on the lens 310 to be incident on the distance measuring unit 42 via the stop 312, the lens mounts 306 and 106, the mirror 130, and a distance measuring sub-mirror (not shown), thereby forming an optical image. The focusing state of the formed image is determined, and the distance measuring unit 42 is driven while driving the lens 310 using the distance measuring control unit 342 until the distance measurement (AF) is determined to be in focus (S203). Then, the AF control for detecting the in-focus state is performed using the AF control (S202).

測距(AF)が合焦と判断したならば(S203)、システム制御回路50は、撮影画面内の複数の測距点の中から合焦した測距点を決定し、決定した測距点データと共に測距データ及び/或いは設定パラメータをシステム制御回路50の内部メモリ或いはメモリ52に記憶してS205に進む。   If it is determined that the ranging (AF) is in focus (S203), the system control circuit 50 determines the focused ranging point from the plurality of ranging points in the shooting screen, and determines the determined ranging point. The distance measurement data and / or the setting parameters are stored together with the data in the internal memory or the memory 52 of the system control circuit 50, and the process proceeds to S205.

続いて、システム制御回路50は、測光部46を用いて、AE(自動露出)処理を開始する(S205)。   Subsequently, the system control circuit 50 starts AE (automatic exposure) processing using the photometric unit 46 (S205).

システム制御回路50は、レンズ310に入射した光線を、絞り312、レンズマウント306及び106、ミラー130及び132そして不図示の測光用レンズを介して、測光部46に入射させることにより、光学像として結像された画像の露出状態を測定し、露出(AE)が適正と判断されるまで(S206)、露光制御手段40を用いて測光処理を行う(S206)。   The system control circuit 50 causes the light beam incident on the lens 310 to enter the photometric unit 46 via the stop 312, the lens mounts 306 and 106, the mirrors 130 and 132, and a photometric lens (not shown), thereby forming an optical image. The exposure state of the formed image is measured, and photometric processing is performed using the exposure control means 40 (S206) until the exposure (AE) is determined to be appropriate (S206).

露出(AE)が適正と判断したならば(S207)、システム制御回路50は、測光データ及び/或いは設定パラメータをシステム制御回路50の内部メモリ或いはメモリ52に記憶し、S208に進む。   If it is determined that the exposure (AE) is appropriate (S207), the system control circuit 50 stores the photometric data and / or setting parameters in the internal memory or the memory 52 of the system control circuit 50, and proceeds to S208.

なお、測光処理S206で検出した露出(AE)結果と、モードダイアル60によって設定された撮影モードに応じて、システム制御回路50は、絞り値(Av値)、シャッター速度(Tv値)を決定する。そして、決定したシャッター速度(Tv値)に応じて、システム制御回路50は、撮像素子14の電荷蓄積時間を決定し、等しい電荷蓄積時間で撮影処理及びダーク取り込み処理をそれぞれ行うことにより、現像処理において、得られた撮影画像データとダーク画像データを用いてダーク補正演算処理を行うことが出来る。ここで、前もって求めたダーク画像データと、決定した電荷蓄積時間より求めたダーク補正係数とを用いて補正ダーク画像データを求めて、この補正ダーク画像データを用いてダーク補正演算処理を行っても問題無い。   The system control circuit 50 determines the aperture value (Av value) and the shutter speed (Tv value) according to the exposure (AE) result detected in the photometry processing S206 and the shooting mode set by the mode dial 60. . Then, in accordance with the determined shutter speed (Tv value), the system control circuit 50 determines the charge accumulation time of the image pickup device 14 and performs the photographing process and the dark capture process with the same charge accumulation time, thereby performing the development process. In the above, dark correction calculation processing can be performed using the obtained captured image data and dark image data. Here, it is also possible to obtain the corrected dark image data using the dark image data obtained in advance and the dark correction coefficient obtained from the determined charge accumulation time, and perform the dark correction calculation process using the corrected dark image data. No problem.

測光処理S206で得られた測定データにより、システム制御回路50はフラッシュが必要か否かを判断し(S208)、フラッシュが必要ならばフラッシュフラグをセットし、フラッシュ48の充電が完了するまで(S210)、フラッシュ48を充電する(S209)。   Based on the measurement data obtained in the photometric processing S206, the system control circuit 50 determines whether or not a flash is necessary (S208). If a flash is required, the system control circuit 50 sets a flash flag, and until the charging of the flash 48 is completed (S210). ), And charge the flash 48 (S209).

フラッシュ48の充電が完了したならば(S210)、測距・測光処理ルーチンS132を終了する。   When the charging of the flash 48 is completed (S210), the distance measurement / photometry processing routine S132 is ended.

図6は、図4のS163における撮影処理の詳細なフローチャートを示す。なお、撮影処理においては、システム制御回路50と絞り制御部340或いは測距制御部342との間の各種信号のやり取りは、インタフェース120、コネクタ122、コネクタ322、インタフェース320、レンズ制御部350を介して行われる。   FIG. 6 shows a detailed flowchart of the photographing process in S163 of FIG. In the photographing process, various signals are exchanged between the system control circuit 50 and the aperture control unit 340 or the distance measurement control unit 342 via the interface 120, the connector 122, the connector 322, the interface 320, and the lens control unit 350. Done.

システム制御回路50は、ミラー130を不図示のミラー駆動部によってミラーアップ位置に移動させると共に(S301)、システム制御回路50の内部メモリ或いはメモリ52に記憶される測光データに従い、絞り制御部340によって絞り312を所定の絞り値まで駆動する(S302)。   The system control circuit 50 moves the mirror 130 to the mirror-up position by a mirror driving unit (not shown) (S301), and controls the aperture control unit 340 according to the photometric data stored in the internal memory or the memory 52 of the system control circuit 50. The aperture 312 is driven to a predetermined aperture value (S302).

システム制御回路50は、撮像素子14の電荷クリア動作を行った後に(S303)、撮像素子14の電荷蓄積を開始した後(S304)、シャッター制御部40によって、シャッター12を開き(S305)、撮像素子14の露光を開始する(S306)。   After performing the charge clearing operation of the image pickup device 14 (S303), the system control circuit 50 starts the charge accumulation of the image pickup device 14 (S304), and then opens the shutter 12 by the shutter control unit 40 (S305). The exposure of the element 14 is started (S306).

ここで、フラッシュ・フラグに基づいてフラッシュ48の発光が必要であるか否かを判断し(S307)、必要な場合はフラッシュを発光させる(S308)。   Here, it is determined whether or not the flash 48 needs to emit light based on the flash flag (S307), and if necessary, the flash is emitted (S308).

システム制御回路50は、測光データに従って撮像素子14の露光終了を待ち(S309)、シャッター制御部40によって、シャッター12を閉じ(S310)、撮像素子14の露光を終了する。   The system control circuit 50 waits for the end of the exposure of the image sensor 14 in accordance with the photometric data (S309), closes the shutter 12 by the shutter controller 40 (S310), and ends the exposure of the image sensor 14.

システム制御回路50は、絞り制御部340によって絞り312を開放の絞り値まで駆動すると共に(S311)、ミラー130を不図示のミラー駆動部によってミラーダウン位置に移動する(S312)。   The system control circuit 50 drives the diaphragm 312 to the open aperture value by the diaphragm control unit 340 (S311), and moves the mirror 130 to the mirror down position by the mirror driving unit (not shown) (S312).

設定した電荷蓄積時間が経過したならば(S313)、システム制御回路50は、撮像素子14の電荷蓄積を終了した後(S314)、撮像素子14から電荷信号を読み出し、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器16から直接メモリ制御回路22を介して、メモリ30の所定領域への撮影画像データを書き込む(S315)。そして、一連の処理を終えたならば、撮影処理ルーチンS163を終了する。   If the set charge accumulation time has elapsed (S313), the system control circuit 50 reads the charge signal from the image sensor 14 after terminating the charge accumulation in the image sensor 14 (S314), and outputs the signal to the A / D converter 16, The captured image data is written to a predetermined area of the memory 30 via the image processing circuit 20 and the memory control circuit 22 or directly from the A / D converter 16 via the memory control circuit 22 (S315). Then, when a series of processing is completed, the photographing processing routine S163 ends.

図7は、図3のS135におけるダーク取り込み処理の詳細なフローチャートを示す。   FIG. 7 shows a detailed flowchart of the dark capture process in S135 of FIG.

システム制御回路50は、撮像素子14の電荷クリア動作を行った後に(S401)、シャッター12が閉じた状態で、撮像素子14の電荷蓄積を開始する(S402)。   After performing the charge clearing operation of the image sensor 14 (S401), the system control circuit 50 starts the charge accumulation of the image sensor 14 with the shutter 12 closed (S402).

設定した所定の電荷蓄積時間が経過したならば(S403)、システム制御回路50は、撮像素子14の電荷蓄積を終了した後(S404)、撮像素子14から電荷信号を読み出し、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器16から直接メモリ制御回路22を介して、メモリ30の所定領域への画像データ(ダーク画像データ)を書き込む(S405)。   If the set predetermined charge accumulation time has elapsed (S403), the system control circuit 50 reads the charge signal from the image sensor 14 after terminating the charge accumulation of the image sensor 14 (S404), and executes the A / D converter. 16. The image data (dark image data) is written to a predetermined area of the memory 30 via the image processing circuit 20, the memory control circuit 22, or directly from the A / D converter 16 via the memory control circuit 22 (S405). ).

このダーク取り込みデータを用いて現像処理を行うことにより、撮像素子14の発生する暗電流ノイズや撮像素子14固有のキズによる画素欠損等の画質劣化に関して、撮影した画像データを補正することが出来る。   By performing development processing using the dark capture data, captured image data can be corrected with respect to image quality deterioration such as dark current noise generated by the image sensor 14 and pixel defects due to scratches inherent to the image sensor 14.

なお、このダーク画像データは、新たにダーク取り込み処理が行われるか、画像処理装置100の電源がOFFにされるまで、メモリ30の所定領域に保持される。   The dark image data is held in a predetermined area of the memory 30 until a new dark capture process is performed or the power of the image processing apparatus 100 is turned off.

ここで、メモリ30の一部或いは全部をEEPROMやハードディスク等の不揮発性メモリからなる構成として、ダーク画像データを不揮発性メモリに書き込むようにすると、新たにダーク取り込み処理が行われるまで、このダーク画像データは不揮発性メモリの所定領域に保持される。このダーク画像データは、撮影処理が実行されて撮影画像データが撮像素子14より読み出され、それに現像処理を行う際に用いられる。一連の処理を終えたならば、ダーク取り込み処理ルーチンS135を終了する。   Here, if a part or the whole of the memory 30 is constituted by a nonvolatile memory such as an EEPROM or a hard disk and the dark image data is written in the nonvolatile memory, the dark image data is stored until a new dark capture process is performed. Data is held in a predetermined area of the nonvolatile memory. The dark image data is used when a photographing process is executed, the photographed image data is read out from the image pickup device 14, and a developing process is performed thereon. When a series of processing is completed, the dark capture processing routine S135 ends.

図8は、図2のS102における点キズ位置検出処理の詳細なフローチャートを示す。システム制御回路50は、撮像素子14から出力される画像の各画素値に基づいて個々の画素が欠陥画素であるか否かを検出するための検出閾値を白キズ検出用の値に設定した後に(S501)、シャッター12を閉じた状態、つまり撮像素子14に光が当たらないため撮像素子14の各画素から黒レベルに相当する画像出力が順次行われる状態で、ダーク取り込み処理を行う(S502)。このダーク取り込み処理は図7を用いて前述した通りである。   FIG. 8 shows a detailed flowchart of the point flaw position detection processing in S102 of FIG. The system control circuit 50 sets a detection threshold value for detecting whether each pixel is a defective pixel based on each pixel value of the image output from the image sensor 14 to a value for white defect detection. (S501) Dark capture processing is performed in a state where the shutter 12 is closed, that is, in a state where light is not applied to the image sensor 14 and image output corresponding to a black level is sequentially performed from each pixel of the image sensor 14 (S502). . This dark capture processing is as described above with reference to FIG.

システム制御回路50は、撮像素子14から読み出されてメモリ30の所定領域に格納された画像データを読み出して、読み出した画素データの値とS501で設定した検出閾値とを比較する点キズ判定を行い(S503)、判定の結果、判定した画素に白キズが有るならば(S503)、検出したキズ画素を特定するキズ画素アドレスをメモリ30の不揮発性メモリ領域或いは不揮発性メモリ56に記憶する(S505)。   The system control circuit 50 reads out the image data read from the image sensor 14 and stored in a predetermined area of the memory 30, and compares the read pixel data value with the detection threshold set in S501 to determine a point flaw. (S503). If the result of the determination is that there is a white flaw in the determined pixel (S503), the flawed pixel address for specifying the detected flawed pixel is stored in the non-volatile memory area of the memory 30 or the non-volatile memory 56 ( S505).

システム制御回路50は、撮像素子14の全画素或いは設定した範囲の全ての画素に対して点キズ判定を繰り返し行い(S503〜S506)、判定を終えたならば(S506において”no”)、S507に進む。   The system control circuit 50 repeatedly performs the point flaw determination on all the pixels of the image sensor 14 or all the pixels in the set range (S503 to S506). When the determination is completed (“no” in S506), the process proceeds to S507. Proceed to.

次いで、システム制御回路50は、撮像素子14から出力される画像の各画素値に基づいて個々の画素が欠陥画素であるか否かを検出するための検出閾値を黒キズ検出用の値に設定した後に(S507)、照明部108により撮像素子14に対する投光を開始し(S508)、この状態、つまり撮像素子14に光が当たるため撮像素子14の各画素から白レベルに相当する画像出力が順次行われる状態で、撮影処理を行う(S509)。この撮影処理は図6を用いて前述した通りである。システム制御回路50は、撮影処理S509を終えたならば、撮像素子に対する投光を終了する(S510)。   Next, the system control circuit 50 sets a detection threshold value for detecting whether each pixel is a defective pixel based on each pixel value of the image output from the image sensor 14 to a value for black defect detection. After that (S507), the illumination unit 108 starts projecting light on the image sensor 14 (S508). In this state, that is, since light is applied to the image sensor 14, each pixel of the image sensor 14 outputs an image output corresponding to a white level. The shooting process is performed in a state where the processes are sequentially performed (S509). This photographing process is as described above with reference to FIG. After finishing the photographing process S509, the system control circuit 50 ends the light projection to the image sensor (S510).

なお、レンズユニット300を介して、撮像素子14の各画素に対して十分な光量の露光が行われるならば、照明部108を用いた投光を行う為のS508及びS510のステップは省略してもよい。   Note that if a sufficient amount of light is exposed to each pixel of the imaging device 14 via the lens unit 300, steps S508 and S510 for performing light projection using the illumination unit 108 are omitted. Is also good.

システム制御回路50は、撮像素子14から読み出されてメモリ30の所定領域に格納された画像データを読み出して、読み出した画素データの値とS507で設定した検出閾値とを比較する点キズ判定を行い(S511)、判定の結果、判定した画素に黒キズが有るならば(S512)、検出したキズ画素を特定するキズ画素アドレスをメモリ30の不揮発性メモリ領域或いは不揮発性メモリ56に記憶する(S513)。   The system control circuit 50 reads out the image data read from the image sensor 14 and stored in a predetermined area of the memory 30, and compares the read pixel data value with the detection threshold set in S507 to determine a point flaw. If the determined pixel has a black defect (S512), the defective pixel address for specifying the detected defective pixel is stored in the non-volatile memory area of the memory 30 or the non-volatile memory 56 (S511). S513).

システム制御回路50は、撮像素子14の全画素或いは設定した範囲の全ての画素に対して点キズ判定を繰り返し行い(S511〜S514)、一連の判定処理を終えたならば(S514において”no”)、点キズ位置検出処理ルーチンS102を終了する。   The system control circuit 50 repeatedly performs the point flaw determination on all the pixels of the image sensor 14 or all the pixels in the set range (S511 to S514), and when a series of determination processes is completed (“no” in S514). ), The point flaw position detection processing routine S102 ends.

[第2の実施の形態]
図1、図5乃至図11を参照して、本発明の第2の実施の形態の動作を説明する。図5乃至図8に示す動作は、第1の実施の形態の動作に従う。図9乃至図11は、本発明の第2の実施の形態に係る画像処理装置100の主ルーチンのフローチャートを示す。
[Second embodiment]
The operation of the second embodiment of the present invention will be described with reference to FIGS. The operations shown in FIGS. 5 to 8 follow the operations of the first embodiment. FIGS. 9 to 11 show flowcharts of main routines of the image processing apparatus 100 according to the second embodiment of the present invention.

第1の実施の形態は、電池交換の完了に伴う電源投入等に応じて、前もって点キズ位置検出処理を行う画像処理装置100の動作例であったが、第2の実施の形態は、電源スイッチ66がON状態に設定された時に、前もって点キズ位置検出処理を行う画像処理装置100の動作例を提供する。   The first embodiment is an example of the operation of the image processing apparatus 100 that performs the point defect position detection processing in advance in response to the power-on or the like accompanying the completion of the battery replacement. An operation example of the image processing apparatus 100 that performs a point defect position detection process in advance when the switch 66 is set to the ON state is provided.

また、第1の実施の形態は、SW1がONになって測距・測光処理を行った結果を用いてシェーディング補正値を決定する画像処理装置100の動作例であったが、第2の実施の形態は、測距・測光処理を行った結果を用いてSW2がONになった後にシェーディング補正値を決定する画像処理装置100の動作例を提供する。   The first embodiment is an example of the operation of the image processing apparatus 100 in which the shading correction value is determined using the result of performing distance measurement and photometry processing when the switch SW1 is turned on. The embodiment provides an operation example of the image processing apparatus 100 that determines the shading correction value after the SW2 is turned on using the result of performing the distance measurement and photometry processing.

図9乃至図11を用いて、本発明の第2の実施の形態に係る画像処理装置100の動作を説明する。   The operation of the image processing apparatus 100 according to the second embodiment of the present invention will be described with reference to FIGS.

まず、電池交換の完了に伴う電源投入等により、システム制御回路50はフラグや制御変数等を初期化し、画像処理装置100の各部において必要な所定の初期設定を行う(S601)。   First, the system control circuit 50 initializes flags, control variables, and the like when the power is turned on upon completion of battery replacement, and performs predetermined initial settings necessary for each unit of the image processing apparatus 100 (S601).

次いで、システム制御回路50は、電源スイッチ66の設定位置を判断し、電源スイッチ66が電源OFFの状態に設定されていたならば(S602)、各表示部の表示を終了状態に変更し、フラグや制御変数等を含む必要なパラメータや設定値、設定モードを不揮発性メモリ56に記録し、電源制御部80により、画像表示部28を含めて、画像処理装置100各部の不要な電源を遮断する等の所定の終了処理を行った後(S603)、S602に戻る。   Next, the system control circuit 50 determines the setting position of the power switch 66, and if the power switch 66 is set to the power-off state (S602), changes the display of each display unit to the end state, and sets the flag. The necessary parameters including parameters and control variables, setting values, and setting modes are recorded in the non-volatile memory 56, and unnecessary power of each part of the image processing apparatus 100 including the image display unit 28 is cut off by the power control unit 80. After performing a predetermined end process such as (S603), the process returns to S602.

一方、電源スイッチ66が電源ONに設定されていたならば(S602)、システム制御回路50は、電源制御部80により電池等により構成される電源86の残容量や動作情況が画像処理装置100の動作に問題があるか否かを判断し(S604)、問題があるならば出力部54を用いて画像や音声により所定の警告を行った後に(S606)S602に戻る。   On the other hand, if the power switch 66 is set to power ON (S602), the system control circuit 50 causes the power control unit 80 to change the remaining capacity of the power source 86 composed of a battery or the like and the operating condition of the image processing apparatus 100. It is determined whether or not there is a problem in the operation (S604). If there is a problem, a predetermined warning is given by image or sound using the output unit 54 (S606), and the process returns to S602.

そして、電源86に問題が無いならば(S604)、システム制御回路50は、撮像素子14の画素の中で常に白いデータを出力する白点キズ及び/或いは常に黒いデータを出力する黒点キズに係る画素を検出して、その画素を特定する画素欠陥位置アドレスを記憶する点キズ位置検出処理を行い(S605)、S607に進む。   If there is no problem with the power supply 86 (S604), the system control circuit 50 relates to a white spot flaw that always outputs white data and / or a black spot flaw that always outputs black data among the pixels of the image sensor 14. A pixel is detected, and a point defect position detection process for storing a pixel defect position address for specifying the pixel is performed (S605), and the process proceeds to S607.

この点キズ位置検出処理で検出した撮像素子14の画素欠陥位置アドレスを用いて、隣接画素の撮影画像データによる補間演算処理を行うことにより、撮影した画像データの点キズ補正処理を行うことが出来る。この点キズ位置検出処理S605の詳細は図8を用いて前述した通りである。   By using the pixel defect position address of the image sensor 14 detected in the point flaw position detection processing and performing interpolation calculation processing based on captured image data of adjacent pixels, point flaw correction processing of captured image data can be performed. . The details of the point flaw position detection processing S605 are as described above with reference to FIG.

このように、電源スイッチ66がONに設定されたならば点キズ位置検出処理を行って、画像処理装置100の使用者が撮影動作を開始する前に点キズ位置検出処理を終えることにより、撮影時に点キズ位置検出処理をも行ってシャッターレリーズタイムラグが大きくなるという問題が生じることを防止することが出来る。   As described above, when the power switch 66 is set to ON, the point flaw position detection processing is performed, and the point flaw position detection processing is completed before the user of the image processing apparatus 100 starts the photographing operation. It is possible to prevent the problem that the shutter release time lag increases due to the occasional point flaw position detection processing.

また、電源スイッチ66がONに設定されたならば点キズ位置検出処理を行うことにより、経時変化に応じた点キズ位置検出処理を用いて点キズ補正処理を行うことが可能となる。   In addition, if the power switch 66 is set to ON, by performing the point flaw position detection processing, it becomes possible to perform the point flaw correction processing using the point flaw position detection processing corresponding to the temporal change.

システム制御回路50はモードダイアル60の設定位置を判断し、モードダイアル60が撮影モードに設定されていたならば(S607)、S609に進む。一方、モードダイアル60がその他のモードに設定されていたならば(S607)、システム制御回路50は選択されたモードに応じた処理を実行し(S608)、処理を終えたならばS602に戻る。   The system control circuit 50 determines the setting position of the mode dial 60. If the mode dial 60 has been set to the photographing mode (S607), the process proceeds to S609. On the other hand, if the mode dial 60 has been set to another mode (S607), the system control circuit 50 executes a process according to the selected mode (S608), and if the process is completed, returns to S602.

システム制御回路50は、記録媒体200或いは210が装着されているかどうかの判断、記録媒体200或いは210に記録された画像データの管理情報の取得、そして、記録媒体200或いは210の動作状態が画像処理装置100の動作、特に記録媒体に対する画像データの記録再生動作に問題があるか否かの判断を行い(S609)、問題があるならば出力部54を用いて画像や音声により所定の警告を行った後に(S606)、S602に戻る。   The system control circuit 50 determines whether the recording medium 200 or 210 is mounted, obtains management information of image data recorded on the recording medium 200 or 210, and determines whether the operation state of the recording medium 200 or 210 is image processing. It is determined whether or not there is a problem in the operation of the apparatus 100, particularly, in the operation of recording and reproducing image data on the recording medium (S609). If there is a problem, a predetermined warning is issued by the image or sound using the output unit 54. After that (S606), the process returns to S602.

そして、記録媒体200或いは210が装着されているかどうかの判断、記録媒体200或いは210に記録された画像データの管理情報の取得、そして、記録媒体200或いは210の動作状態が画像処理装置100の動作、特に記録媒体に対する画像データの記録再生動作に問題があるか否かの判断を行った結果(S609)、問題が無いならば、S610に進む。   Then, it is determined whether or not the recording medium 200 or 210 is mounted, management information of the image data recorded on the recording medium 200 or 210 is obtained, and the operation state of the recording medium 200 or 210 is determined by the operation of the image processing apparatus 100. In particular, as a result of determining whether or not there is a problem in the recording / reproducing operation of the image data with respect to the recording medium (S609), if there is no problem, the process proceeds to S610.

システム制御回路50は、AFモード設定スイッチ68の状態を調べ、ワンショットAFモードが選択されているならばAFモードフラグをワンショットAFに設定し(S611)、サーボAFモードが選択されているならばAFモードフラグをサーボAFに設定し(S612)、フラグの設定を終えたならばS613に進む。   The system control circuit 50 checks the state of the AF mode setting switch 68, and if the one-shot AF mode is selected, sets the AF mode flag to one-shot AF (S611), and if the servo AF mode is selected. For example, the AF mode flag is set to servo AF (S612), and when the setting of the flag is completed, the process proceeds to S613.

システム制御回路50は、出力部54を用いて画像や音声により画像処理装置100の各種設定状態の表示を行い(S613)、S614に進む。なお、画像表示部28の画像表示がONであったならば、画像表示部28をも用いて画像により画像処理装置100の各種設定状態の表示を行う。   The system control circuit 50 uses the output unit 54 to display various setting states of the image processing apparatus 100 using images and sounds (S613), and proceeds to S614. If the image display of the image display unit 28 is ON, the various setting states of the image processing apparatus 100 are displayed by the image using the image display unit 28 as well.

次いで、システム制御回路50は、レンズ着脱検知部124により、レンズマウント306とレンズマウント106を介して、及び/或いは、コネクタ322とコネクタ122を介して、レンズユニット300が画像処理装置100に装着されているか否かを調べ(S614)、レンズユニット300が装着されていないならばS631に進む。   Next, the system control circuit 50 attaches the lens unit 300 to the image processing apparatus 100 by the lens attachment / detachment detection unit 124 via the lens mount 306 and the lens mount 106 and / or via the connector 322 and the connector 122. It is determined whether or not the lens unit 300 is mounted (S614). If the lens unit 300 is not mounted, the process proceeds to S631.

レンズユニット300が装着されているならば(S614において”yes”)、システム制御回路50は、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び/或いは色シェーディングを補償するために、装着されたレンズユニット300に対応したシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データが、不揮発性メモリ56或いはメモリ30の一部或いは全てを不揮発性メモリに構成した場合はメモリ30の不揮発性メモリ領域に有るか否かを判断し(S615)、装着されたレンズユニット300に対応するシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データが無いならば出力部54を用いて画像や音声により所定の警告を行った後に(S616)、S602に戻る。   If the lens unit 300 is attached (“yes” in S614), the system control circuit 50 causes the luminance generated in the process of forming the subject image on the image sensor 14 of the image processing apparatus 100 via the lens unit 300. In order to compensate for shading and / or color shading, shading correction data including a shading correction coefficient or a shading correction function corresponding to the mounted lens unit 300 may be used to make a part or all of the nonvolatile memory 56 or 30 non-volatile. In the case where the memory unit is configured, it is determined whether or not it is in the non-volatile memory area of the memory 30 (S615), and if there is no shading correction data including the shading correction coefficient or the shading correction function corresponding to the mounted lens unit 300, Out By an image or sound using the parts 54 after performing a predetermined warning (S616), the flow returns to S602.

装着されたレンズユニット300に対応するシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データが有るならば(S615)、システム制御回路50は、不揮発性メモリ56(或いはメモリ30の一部或いは全てを不揮発性メモリで構成した場合はメモリ30の不揮発性メモリ領域)から、装着されたレンズユニット300に対応するシェーディング補正データを読み出してシステム制御回路50の作業領域であるメモリ30の所定の領域に格納するシェーディング補正データの設定を行い(S617)、S631に進む。   If there is shading correction data including a shading correction coefficient or a shading correction function corresponding to the mounted lens unit 300 (S615), the system control circuit 50 stores the nonvolatile memory 56 (or part or all of the memory 30 in nonvolatile). In the case of using a nonvolatile memory, the shading correction data corresponding to the mounted lens unit 300 is read out from the nonvolatile memory area of the memory 30 and stored in a predetermined area of the memory 30 which is a working area of the system control circuit 50. The shading correction data is set (S617), and the process proceeds to S631.

このように、装着されたレンズユニット300に応じてシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データを設定することにより、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び/或いは色シェーディングを補償するために、装着されたレンズユニットに応じて所定のシェーディング補正係数或いはシェーディング補正関数を用いて撮影画像データに対して乗算処理を行うシェーディング補正処理を行うことが可能となる。   As described above, by setting the shading correction coefficient or the shading correction data including the shading correction function according to the mounted lens unit 300, the subject image is connected to the image sensor 14 of the image processing apparatus 100 via the lens unit 300. Shading for performing multiplication processing on captured image data using a predetermined shading correction coefficient or shading correction function according to a mounted lens unit in order to compensate for luminance shading and / or color shading generated in an image forming process. Correction processing can be performed.

また、装着されたレンズユニット300に応じて設定したシェーディング補正データを用いることにより、被写体を撮影する際のレンズユニット300の絞り312の絞り値及び/或いは被写体を撮影する際のレンズユニット300の焦点距離値に応じて、所定のシェーディング補正係数或いはシェーディング補正関数を選択して、最適な補正量のシェーディング補正処理を行うことが可能である。   Further, by using the shading correction data set according to the mounted lens unit 300, the aperture value of the aperture 312 of the lens unit 300 when photographing the subject and / or the focus of the lens unit 300 when photographing the subject. It is possible to select a predetermined shading correction coefficient or shading correction function according to the distance value, and to perform shading correction processing with an optimum correction amount.

次いで、シャッタースイッチSW1がOFFであるならば(S631)、S602に戻り、シャッタースイッチSW1がONであるならば(S631)、システム制御回路50は、測距処理を行って撮影レンズ10の焦点を被写体に合わせ、測光処理を行って絞り値及びシャッター時間を決定する、測距・測光処理を行い、システム制御回路50の内部メモリ或いはメモリ52に測光データ及び/或いは設定パラメータを記憶する(S632)。測光処理に於いて、必要であればフラッシュの設定も行う。この測距・測光処理S632の詳細は図5を用いて前述した通りである。   Next, if the shutter switch SW1 is OFF (S631), the process returns to S602, and if the shutter switch SW1 is ON (S631), the system control circuit 50 performs a distance measurement process to focus the photographing lens 10 on the focus. In accordance with the subject, photometric processing is performed to determine an aperture value and a shutter time, distance measurement and photometric processing are performed, and photometric data and / or setting parameters are stored in the internal memory or the memory 52 of the system control circuit 50 (S632). . In the photometry processing, the flash setting is also performed if necessary. The details of the distance measurement / photometry processing S632 are as described above with reference to FIG.

次いで、記憶した測光データ及び或いは設定パラメータとモードダイアル60によって設定された撮影モードに応じて、絞り値(Av値)、シャッター速度(Tv値)を決定し、更に、決定したシャッター速度(Tv値)に応じて、電荷蓄積時間を決定して、システム制御回路50の内部メモリ或いはメモリ52に記憶する(S633)。   Next, an aperture value (Av value) and a shutter speed (Tv value) are determined according to the stored photometric data and / or a setting mode and a shooting mode set by the mode dial 60, and further, the determined shutter speed (Tv value) is determined. ), The charge accumulation time is determined and stored in the internal memory of the system control circuit 50 or the memory 52 (S633).

システム制御回路50は、シャッタースイッチSW1がONになってからまだダーク取込み処理を行っていないならば、或いは既にダーク取込み処理を行ったがその後更に行った測距・測光処理の測定結果に従って電荷蓄積時間が変更になったならば(S634)、S635に進む。   The system control circuit 50 stores the electric charge according to the measurement result of the distance acquisition / photometry processing if the dark acquisition processing has not been performed yet since the shutter switch SW1 was turned ON, or the dark acquisition processing has already been performed but has been further performed thereafter. If the time has been changed (S634), the process proceeds to S635.

既にダーク取込み処理を行っており、且つ、その後更に行った測距・測光処理の測定結果によっても電荷蓄積時間が変更になっていないならば(S634)、S636に進む。   If the dark capture processing has already been performed, and the charge accumulation time has not been changed by the measurement result of the distance measurement / photometry processing further performed thereafter (S634), the process proceeds to S636.

システム制御回路50は、シャッター12を閉じた状態で撮像素子14の暗電流等のノイズ成分を本撮影と同じ時間だけ蓄積し、蓄積を終えたノイズ画像信号を読み出すダーク取り込み処理を行い(S635)、S636に進む。   The system control circuit 50 performs a dark capture process for accumulating noise components such as dark current of the image sensor 14 for the same time as the main photographing with the shutter 12 closed, and reading out the accumulated noise image signal (S635). , S636.

このダーク取り込み処理で取り込んだダーク画像データを用いて補正演算処理を行うことにより、撮像素子14の発生する暗電流ノイズや撮像素子14固有のキズによる画素欠損等の画貿劣化に関して、撮影した画像データを補正することが出来る。このダーク取り込み処理S635の詳細は図7を用いて前述した通りである。   By performing a correction calculation process using the dark image data captured in the dark capture process, a captured image is obtained with respect to dark current noise generated by the image sensor 14 and deterioration in image quality such as pixel defects due to scratches inherent to the image sensor 14. Data can be corrected. The details of the dark capture processing S635 are as described above with reference to FIG.

次いで、シャッタースイッチSW2がOFFであるならば(S636)、システム制御回路50はシャッタースイッチSW1の状態を判断し、シャッタースイッチSW1がOFFであるならば(S637)、S602に戻る。   Next, if the shutter switch SW2 is OFF (S636), the system control circuit 50 determines the state of the shutter switch SW1, and if the shutter switch SW1 is OFF (S637), the process returns to S602.

一方、シャッタースイッチSW1がONであるならば(S637)、システム制御回路50はシステム制御回路50の内部メモリ或いはメモリ52に記憶されるAFモードフラグの状態を判断し(S638)、ワンショットAFが設定されていたならば、S636に戻る。そして、サーボAFが設定されていたならば(S638)、S632に戻る。シャッタースイッチSW2がONであるならば(S636)、S639に進む。   On the other hand, if the shutter switch SW1 is ON (S637), the system control circuit 50 determines the state of the AF mode flag stored in the internal memory of the system control circuit 50 or the memory 52 (S638), and the one-shot AF is started. If it has been set, the process returns to S636. If the servo AF has been set (S638), the process returns to S632. If the shutter switch SW2 is ON (S636), the process proceeds to S639.

システム制御回路50は、システム制御回路50の内部メモリ或いはメモリ52に記憶した測光データ及び/或いは設定パラメータに基づいて、レンズユニット300の絞り312の絞り値Aを決定する(S639)。   The system control circuit 50 determines the aperture value A of the aperture 312 of the lens unit 300 based on photometric data and / or setting parameters stored in the internal memory of the system control circuit 50 or the memory 52 (S639).

さらに、システム制御回路50は、レンズ制御回路350、インタフェース320、コネクタ322、コネクタ122、インタフェース120を介して、ズーム制御部344よりレンズユニット300の焦点距離情報を取得し、取得した焦点距離情報に基づいて、撮影する際のレンズユニット300の焦点距離値Lを決定する(S640)。   Further, the system control circuit 50 acquires the focal length information of the lens unit 300 from the zoom control unit 344 via the lens control circuit 350, the interface 320, the connector 322, the connector 122, and the interface 120, and adds the focal length information to the acquired focal length information. Based on this, the focal length L of the lens unit 300 at the time of shooting is determined (S640).

そして、システム制御回路50は、S639で決定した絞り値A及び/或いはS640で決定した焦点距離値Lからシェーディング補正値を決定する(S641)。   Then, the system control circuit 50 determines a shading correction value from the aperture value A determined in S639 and / or the focal length value L determined in S640 (S641).

このように、この実施の形態では、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び/或いは色シェーディングを補償するために、装着されたレンズユニット300に応じてS617において設定したシェーディング補正データを用いる。そして、被写体を撮影する際のレンズユニット300の絞り312の絞り値A及び或いは被写体を撮影した際のレンズユニット300の焦点距離値Lに応じて、所定のシェーディング補正係数或いはシェーディング補正関数を選択して選択して、撮影画像データに対して乗算処理を行うことにより、最適な補正量のシェーディング補正処理を行うことが可能である。   As described above, in this embodiment, the image sensor is mounted to compensate for luminance shading and / or color shading generated in the process of forming the subject image on the image sensor 14 of the image processing apparatus 100 via the lens unit 300. The shading correction data set in S617 according to the lens unit 300 used is used. Then, a predetermined shading correction coefficient or a predetermined shading correction function is selected according to the aperture value A of the aperture 312 of the lens unit 300 when photographing the subject and / or the focal length L of the lens unit 300 when photographing the subject. By performing the multiplication process on the picked-up image data, the shading correction process with the optimum correction amount can be performed.

システム制御回路50は、撮影した画像データを記憶可能な画像記憶バッファ領域がメモリ30にあるかどうかを判断し(S661)、メモリ30の画像記憶バッファ領域内に新たな画像データを記憶可能な領域が無いならば、出力部54を用いて画像や音声により所定の警告を行った後に(S662)、S605に戻る。メモリ30の画像記憶バッファ領域内に新たな画像データを記憶可能な領域が無い場合としては、例えば、メモリ30の画像記憶バッファ領域内に記憶可能な最大枚数の連写撮影を行った直後で、メモリ30から読み出して記憶媒体200或いは210に書き込むべき最初の画像がまだ記録媒体200或いは210に未記録な状態であり、まだ1枚の空き領域もメモリ30の画像記憶バッファ領域上に確保出来ない状態である場合等が挙げられる。   The system control circuit 50 determines whether an image storage buffer area capable of storing captured image data is present in the memory 30 (S661), and an area capable of storing new image data in the image storage buffer area of the memory 30. If there is no warning, a predetermined warning is given by image or sound using the output unit 54 (S662), and the process returns to S605. The case where there is no area capable of storing new image data in the image storage buffer area of the memory 30 is, for example, immediately after performing the maximum number of continuous shootings that can be stored in the image storage buffer area of the memory 30, The first image to be read from the memory 30 and written to the storage medium 200 or 210 is not yet recorded on the recording medium 200 or 210, and one free area cannot be secured in the image storage buffer area of the memory 30 yet. And the like.

なお、撮影した画像データを圧縮処理してからメモリ30の画像記憶バッファ領域に記憶する場合は、圧縮した後の画像データ量が圧縮モードの設定に応じて異なることを考慮して、記憶可能な領域がメモリ30の画像記憶バッファ領域上にあるかどうかをS661において判断することになる。   When the captured image data is stored in the image storage buffer area of the memory 30 after being subjected to the compression process, the image data can be stored in consideration of the fact that the amount of compressed image data differs according to the setting of the compression mode. In S661, it is determined whether or not the area is on the image storage buffer area of the memory 30.

メモリ30に撮影した画像データを記憶可能な画像記憶バッファ領域があるならば(S661)、システム制御回路50は、撮像して所定時間蓄積した撮像信号を撮像素子12から読み出して、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器から直接メモリ制御回路22を介して、メモリ30の所定領域に撮影した画像データを書き込む撮影処理を実行する(S663)。この撮影処理S663の詳細は図6を用いて前述した通りである。   If there is an image storage buffer area capable of storing the captured image data in the memory 30 (S661), the system control circuit 50 reads out the image pickup signal that has been imaged and accumulated for a predetermined time from the image sensor 12, and performs A / D conversion. A photographing process for writing photographed image data in a predetermined area of the memory 30 is executed via the device 16, the image processing circuit 20, the memory control circuit 22, or directly from the A / D converter via the memory control circuit 22 ( S663). Details of the photographing process S663 are as described above with reference to FIG.

撮影処理S663を終えたならば、システム制御回路50は、前もってダーク取り込み処理S635において取り込んだダーク画像データを用いて撮影画像データに対して減算処理を行うことにより、撮像素子14の暗電流ノイズ等を打ち消すダーク補正演算処理を行う(S664)。   After the photographing process S663 is completed, the system control circuit 50 performs a subtraction process on the photographed image data using the dark image data previously captured in the dark capture process S635, thereby obtaining dark current noise and the like of the image sensor 14. Is performed (S664).

そして、システム制御回路50は、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び或いは色シェーディングを補償するために、S641で決定した所定のシェーディング補正係数或いはシェーディング補正関数を用いて撮影画像データに対して乗算処理を行うことにより、シェーディング補正処理を行う(S665)。   Then, the system control circuit 50 determines the predetermined shading determined in S641 in order to compensate for the brightness shading and / or the color shading generated in the process of forming the subject image on the image sensor 14 of the image processing apparatus 100 via the lens unit 300. The shading correction process is performed by performing a multiplication process on the captured image data by using the shading correction coefficient or the shading correction function (S665).

さらに、システム制御回路50は、撮像素子14の画素の中で常に白いデータを出力する白点キズ及び/或いは常に黒いデータを出力する黒点キズに係る画素を補償するために、点キズ位置検出処理S605で検出した撮像素子14の画素欠陥位置アドレスを参照しながら、キズ画素に隣接する画素の撮影画像データを用いて補間演算処理を行うことにより、点キズ補正処理を行う(S666)。   Further, the system control circuit 50 performs a point flaw position detection process in order to compensate for a pixel related to a white point flaw that always outputs white data and / or a black point flaw that always outputs black data among the pixels of the image sensor 14. The point flaw correction processing is performed by performing interpolation calculation processing using the photographed image data of the pixel adjacent to the flaw pixel while referring to the pixel defect position address of the image sensor 14 detected in S605 (S666).

このように、撮影に先立って、ダーク補正用画像データの取り込み、使用レンズの絞り値及び/或いは焦点距離に応じたシェーディング補正係数或いはシェーディング補正関数の決定、点キズ補正のための撮像素子14の画素欠陥位置アドレスの検出をそれぞれ行い、撮影した画像データに対して、ダーク取り込み画像の減算処理を行うダーク補正処理、シェーディング補正係数或いはシェーディング補正関数の乗算処理を行うシェーディング補正処理、キズ画素に隣接する画素の撮影画像データを用いた補間演算処理を行う点キズ補正処理を同時に或いは連続して行うことが可能となる。   As described above, prior to the photographing, the image data for dark correction is taken in, the shading correction coefficient or the shading correction function is determined according to the aperture value and / or the focal length of the lens to be used, and the imaging device 14 is used to correct point flaws. Each pixel defect position address is detected, and the captured image data is subjected to dark correction processing for subtracting a dark captured image, shading correction processing for multiplying a shading correction coefficient or a shading correction function, and adjacent to a flaw pixel. It is possible to simultaneously or continuously perform the point flaw correction processing for performing the interpolation calculation processing using the photographed image data of the pixel to be processed.

これにより、シャッターレリーズタイムラグが少なく、且つ、ダーク補正、シェーディング補正、点キズ補正を行った良好な撮影画像データを得ることを可能とすることが出来る。   As a result, it is possible to obtain good photographed image data that has a small shutter release time lag and that has been subjected to dark correction, shading correction, and point flaw correction.

システム制御回路50は、メモリ30の所定領域へ書き込まれた画像データの一部をメモリ制御回路22を介して読み出して、現像処理を行うために必要なWB(ホワイトバランス)積分演算処理、OB(オプティカルブラック)積分演算処理を行い、演算結果をシステム制御回路50の内部メモリ或いはメモリ52に記憶する。   The system control circuit 50 reads out a part of the image data written in a predetermined area of the memory 30 through the memory control circuit 22 and performs a WB (white balance) integration operation process, OB ( (Optical black) Integral calculation processing is performed, and the calculation result is stored in the internal memory of the system control circuit 50 or the memory 52.

そして、システム制御回路50は、メモリ制御回路22、及び必要に応じて画像処理回路20を用いて、メモリ30の所定領域に書き込まれた撮影画像データを読み出して、システム制御回路50の内部メモリ或いはメモリ52に記憶した演算結果を用いて、AWB(オートホワイトバランス)処理、ガンマ変換処理、色変換処理を含む各種現像処理を行う(S667)。   Then, the system control circuit 50 reads out the captured image data written in a predetermined area of the memory 30 using the memory control circuit 22 and, if necessary, the image processing circuit 20, and reads out the internal memory of the system control circuit 50 or Using the calculation results stored in the memory 52, various development processes including AWB (auto white balance) process, gamma conversion process, and color conversion process are performed (S667).

そして、システム制御回路50は、メモリ30の所定領域に書き込まれた画像データを読み出して、設定したモードに応じた画像圧縮処理を圧縮・伸長回路32により行い(S668)、メモリ30の画像記憶バッファ領域の空き画像部分に、撮影して一連の処理を終えた画像データの書き込みを行う。   Then, the system control circuit 50 reads out the image data written in the predetermined area of the memory 30 and performs the image compression processing according to the set mode by the compression / decompression circuit 32 (S668). Image data that has been photographed and has undergone a series of processing is written in the free image portion of the area.

一連の撮影の実行に伴い、システム制御回路50は、メモリ30の画像記憶バッファ領域に記憶した画像データを読み出して、インタフェース90或いは94、コネクタ92或いは96を介して、メモリカードやコンパクトフラッシュ(登録商標)カード等の記録媒体200或いは210へ書き込みを行う記録処理を開始する(S669)。   With the execution of a series of photographing operations, the system control circuit 50 reads out the image data stored in the image storage buffer area of the memory 30 and sends the image data to a memory card or a compact flash (registered) via the interface 90 or 94 and the connector 92 or 96. A recording process for writing data on the recording medium 200 or 210 such as a trademark card is started (S669).

この記録処理の開始は、メモリ30の画像記憶バッファ領域の空き画像部分に、撮影後に一連の処理を終えた画像データが新たに書込まれる都度、その画像データに対して実行される。   The start of the recording process is performed on the image data each time a series of processing-completed image data is newly written into the empty image portion of the image storage buffer area of the memory 30 after shooting.

なお、記録媒体200或いは210へ画像データの書き込みを行っている間、書き込み動作中であることを明示するために、出力部54において例えばLEDを点滅させる等の記録媒体書き込み動作表示を行う。   In addition, while the image data is being written to the recording medium 200 or 210, a recording medium writing operation display such as blinking of an LED is performed on the output unit 54 in order to clearly indicate that the writing operation is being performed.

次いで、システム制御回路50は、シャッタースイッチSW1がONであるか否かを判断する(S670)。そして、シャッタースイッチSW1がOFFであるならば(S670)、S605に戻る。   Next, the system control circuit 50 determines whether or not the shutter switch SW1 is ON (S670). If the shutter switch SW1 is OFF (S670), the process returns to S605.

一方、シャッタースイッチSW1がONであったならば(S670)、システム制御回路50はシステム制御回路50の内部メモリ或いはメモリ52に記憶されるAFモードフラグの状態を判断する(S671)。   On the other hand, if the shutter switch SW1 is ON (S670), the system control circuit 50 determines the state of the AF mode flag stored in the internal memory of the system control circuit 50 or the memory 52 (S671).

そして、ワンショットAFが設定されていたならば(S671)、新たにAF及びAEを行わずに連続して撮影を行うためにS636に戻り、次の撮影を行う。一方、サーボAFが設定されていたならば(S671)、連続してAF及びAEを行いながら撮影を行うためにS632に戻り、次の撮影を行う。   Then, if the one-shot AF has been set (S671), the process returns to S636 to continuously perform shooting without performing new AF and AE, and performs the next shooting. On the other hand, if the servo AF has been set (S671), the process returns to S632 to perform shooting while performing AF and AE continuously, and performs the next shooting.

[第3の実施の形態]
図1、図5乃至図8及び図12乃至図14を参照して、本発明の第3の実施の形態の動作を説明する。図5乃至図8に示す動作は、第1の実施の形態の動作に従う。図12乃至図14は、本発明の第3の実施の形態の画像処理装置100の主ルーチンのフローチャートを示す。
[Third Embodiment]
The operation of the third embodiment of the present invention will be described with reference to FIGS. 1, 5 to 8 and 12 to 14. The operations shown in FIGS. 5 to 8 follow the operations of the first embodiment. 12 to 14 show a flowchart of a main routine of the image processing apparatus 100 according to the third embodiment of the present invention.

第2の実施の形態は、電源スイッチ66が電源ONに設定された時に前もって点キズ位置検出処理を行う画像処理装置100の動作例であったが、第3の実施の形態は、所定期間が経過したならば前もって点キズ位置検出処理を行う画像処理装置100の動作例を提供する。   The second embodiment is an example of the operation of the image processing apparatus 100 which performs the point defect position detection processing in advance when the power switch 66 is set to the power ON. However, the third embodiment has a predetermined period. An operation example of the image processing apparatus 100 that performs the point defect position detection processing in advance when the time has elapsed is provided.

また、第1の実施の形態及び第2の実施の形態は、レンズユニット300が装着された際に、画像処理装置100内に格納するシェーディング補正係数或いはシェーディング補正関数のうち、装着されたレンズユニット300に対応したシェーディング補正係数或いはシェーディング補正関数を用いてシェーディングデータの設定を行う画像処理装置100の動作例であったが、第3の実施の形態は、レンズユニット300が装着された際に、レンズユニット300内に格納するシェーディング補正係数或いはシェーディング補正関数を画像処理装置100に読み込んでシェーディングデータの設定を行う画像処理装置100の動作例を提供する。   In the first embodiment and the second embodiment, when the lens unit 300 is mounted, of the shading correction coefficients or shading correction functions stored in the image processing apparatus 100, the mounted lens unit is used. The example of the operation of the image processing apparatus 100 for setting the shading data using the shading correction coefficient or the shading correction function corresponding to 300 is described. In the third embodiment, when the lens unit 300 is mounted, An example of the operation of the image processing apparatus 100 that reads a shading correction coefficient or a shading correction function stored in the lens unit 300 into the image processing apparatus 100 and sets shading data is provided.

図12乃至図14を用いて、本発明の第3の実施の形態に係る画像処理装置100の動作を説明する。   The operation of the image processing apparatus 100 according to the third embodiment of the present invention will be described with reference to FIGS.

まず、電池交換の完了に伴う電源投入等により、システム制御回路50はフラグや制御変数等を初期化し、画像処理装置100の各部において必要な所定の初期設定を行う(S701)。   First, the system control circuit 50 initializes flags, control variables, and the like when the power is turned on upon completion of battery replacement, and performs predetermined initial settings necessary for each unit of the image processing apparatus 100 (S701).

次いで、システム制御回路50は、電源スイッチ66の設定位置を判断し、電源スイッチ66が電源OFFに設定されていたならば(S702)、各表示部の表示を終了状態に変更し、フラグや制御変数等を含む必要なパラメータや設定値、設定モードを不揮発性メモリ56に記録し、電源制御部80により、画像表示部28を含めて、画像処理装置100各部の不要な電源を遮断する等の所定の終了処理を行った後(S703)、S702に戻る。   Next, the system control circuit 50 determines the setting position of the power switch 66, and if the power switch 66 is set to power OFF (S702), changes the display of each display unit to the end state, and sets the flag and control. Necessary parameters including variables and the like, setting values, and setting modes are recorded in the non-volatile memory 56, and unnecessary power supplies of the respective parts of the image processing apparatus 100 including the image display unit 28 are cut off by the power supply control unit 80. After performing a predetermined end process (S703), the process returns to S702.

電源スイッチ66が電源ONに設定されていたならば(S702)、システム制御回路50は、電源制御部80により電池等により構成される電源86の残容量や動作情況が画像処理装置100の動作に問題があるか否かを判断し(S704)、問題があるならば出力部54を用いて画像や音声により所定の警告表示を行った後に(S705)S702に戻る。   If the power switch 66 has been set to power ON (S702), the system control circuit 50 causes the power control unit 80 to change the remaining capacity of the power source 86 composed of a battery or the like and the operating condition to the operation of the image processing apparatus 100. It is determined whether or not there is a problem (S704). If there is a problem, a predetermined warning display is performed using an image or a sound using the output unit 54 (S705), and the process returns to S702.

電源86に問題が無いならば(S704)、システム制御回路50は、設定した所定期間が経過したか否かを判断し(S706)、所定期間が経過していないならば、S708に進む。   If there is no problem in the power supply 86 (S704), the system control circuit 50 determines whether the set predetermined period has elapsed (S706). If the predetermined period has not elapsed, the process proceeds to S708.

所定期間が経過していたならば、撮像素子14の画素の中で常に白いデータを出力する白点キズ及び或いは常に黒いデータを出力する黒点キズに係る画素を検出して、その画素を特定する画素欠陥位置アドレスを記憶する点キズ位置検出処理を行い(S707)、S708に進む。   If the predetermined period has elapsed, a pixel related to a white point flaw that always outputs white data and / or a black point flaw that always outputs black data among the pixels of the image sensor 14 is detected and identified. A point flaw position detection process for storing a pixel defect position address is performed (S707), and the process proceeds to S708.

この点キズ位置検出処理で検出した撮像素子14の画素欠陥位置アドレスを用いて、隣接画素の撮影画像データによる補間演算処理を行うことにより、撮影した画像データの点キズ補正処理を行うことが出来る。この点キズ位置検出処理S707の詳細は図8を用いて前述した通りである。   By using the pixel defect position address of the image sensor 14 detected in the point flaw position detection processing and performing interpolation calculation processing based on captured image data of adjacent pixels, point flaw correction processing of captured image data can be performed. . The details of the point flaw position detection processing S707 are as described above with reference to FIG.

このように、所定期間が経過したならば点キズ位置検出処理を行って、画像処理装置100の使用者が撮影動作を開始する前に点キズ位置検出処理を終えることにより、撮影時に点キズ位置検出処理も行ってシャッターレリーズタイムラグが大きくなるという問題が生じることを防止することが出来る。   As described above, the point flaw position detection process is performed after the predetermined period has elapsed, and the point flaw position detection process is completed before the user of the image processing apparatus 100 starts the shooting operation. The detection process can also be performed to prevent the problem that the shutter release time lag increases.

また、所定期間が経過したならばならば点キズ位置検出処理を行うことにより、経時変化に応じた点キズ位置検出処理を用いて点キズ補正処理を行うことが可能となる。   Further, if the predetermined period has elapsed, by performing the point flaw position detection processing, it becomes possible to perform the point flaw correction processing using the point flaw position detection processing corresponding to the temporal change.

なお、所定期間としては、経過日数、経過時間数、撮影枚数、電池交換回数など、撮像素子14の経時変化に応じた点キズ位置検出を行うのに適当なものであれば、どのようなものでも構わない。また、この所定期間は、固定値でも、任意に設定する値でも、随時変更可能な値でも、撮像素子14の経時変化に応じた点キズ位置検出を行うのに適当なものであれば、どのようなものでも構わない。   As the predetermined period, any number of days, elapsed hours, the number of shots, the number of battery replacements, and the like, which are appropriate for performing point-scratch position detection in accordance with a temporal change of the image sensor 14 are used. But it doesn't matter. In addition, the predetermined period may be a fixed value, an arbitrarily set value, or a value that can be changed at any time as long as it is suitable for detecting a point flaw position according to a temporal change of the image sensor 14. Something like that is fine.

システム制御回路50はモードダイアル60の設定位置を判断し、モードダイアル60が撮影モードに設定されていたならば(S708)、S710に進む。   The system control circuit 50 determines the setting position of the mode dial 60. If the mode dial 60 has been set to the photographing mode (S708), the process proceeds to S710.

モードダイアル60がその他のモードに設定されていたならば(S708)、システム制御回路50は選択されたモードに応じた処理を実行し(S709)、処理を終えたならばS702に戻る。   If the mode dial 60 has been set to another mode (S708), the system control circuit 50 executes a process according to the selected mode (S709), and returns to S702 when the process is completed.

システム制御回路50は、記録媒体200或いは210が装着されているかどうかの判断、記録媒体200或いは210に記録された画像データの管理情報の取得、そして、記録媒体200或いは210の動作状態が画像処理装置100の動作、特に記録媒体に対する画像データの記録再生動作に問題があるか否かの判断を行い(S710)、問題があるならば表示部54を用いて画像や音声により所定の警告表示を行った後に(S705)、S702に戻る。   The system control circuit 50 determines whether the recording medium 200 or 210 is mounted, obtains management information of image data recorded on the recording medium 200 or 210, and determines whether the operation state of the recording medium 200 or 210 is image processing. It is determined whether or not there is a problem in the operation of the apparatus 100, particularly, in the operation of recording and reproducing image data on the recording medium (S710). If there is a problem, a predetermined warning is displayed on the display unit 54 using an image or sound. After performing (S705), the process returns to S702.

記録媒体200或いは210が装着されているかどうかの判断、記録媒体200或いは210に記録された画像データの管理情報の取得、そして、記録媒体200或いは210の動作状態が画像処理装置100の動作、特に記録媒体に対する画像データの記録再生動作に問題があるか否かの判断を行った結果(S710)、問題が無いならば、S711に進む。   It is determined whether or not the recording medium 200 or 210 is mounted, the management information of the image data recorded on the recording medium 200 or 210 is obtained, and the operation state of the recording medium 200 or 210 indicates the operation of the image processing apparatus 100, particularly As a result of determining whether there is a problem in the recording / reproducing operation of the image data on the recording medium (S710), if there is no problem, the process proceeds to S711.

システム制御回路50は、AFモード設定スイッチ68の状態を調べ、ワンショットAFモードが選択されているならばAFモードフラグをワンショットAFに設定し(S712)、サーボAFモードが選択されているならばAFモードフラグをサーボAFに設定し(S713)、フラグの設定を終えたならばS714に進む。   The system control circuit 50 checks the state of the AF mode setting switch 68, and if the one-shot AF mode is selected, sets the AF mode flag to one-shot AF (S712), and if the servo AF mode is selected. For example, the AF mode flag is set to servo AF (S713), and when the setting of the flag is completed, the process proceeds to S714.

システム制御回路50は出力部54を用いて画像や音声により画像処理装置100の各種設定状態の出力を行い(S714)、S715に進む。なお、画像表示部28の画像表示がONであったならば、画像表示部28も用いて画像により画像処理装置100の各種設定状態の表示を行う。   The system control circuit 50 outputs various setting states of the image processing apparatus 100 using images and sounds using the output unit 54 (S714), and proceeds to S715. If the image display of the image display unit 28 is ON, various setting states of the image processing apparatus 100 are displayed by the image using the image display unit 28.

システム制御回路50は、レンズ着脱検知部124により、レンズマウント306とレンズマウント106を介して、及び/或いはコネクタ322とコネクタ122を介して、レンズユニット300が画像処理装置100に装着されているか否かを調べ(S715)、レンズユニット300が装着されていないならばS731に進む。   The system control circuit 50 determines whether the lens unit 300 is attached to the image processing apparatus 100 by the lens attachment / detachment detection unit 124 via the lens mount 306 and the lens mount 106 and / or via the connector 322 and the connector 122. It is checked (S715). If the lens unit 300 is not attached, the process proceeds to S731.

レンズユニット300が装着されているならば(S715)、システム制御回路50は、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び/或いは色シェーディングを補償するために、装着されたレンズユニット300に対応したシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データを、レンズユニット300内の不揮発性メモリからレンズ制御回路350を介して読み出し、システム制御回路50の作業領域であるメモリ30の所定の領域に格納するシェーディング補正データの設定を行い(S716)、S731に進む。   If the lens unit 300 is mounted (S715), the system control circuit 50 causes the luminance shading and / or the luminance shading generated in the process of forming the subject image on the image sensor 14 of the image processing apparatus 100 via the lens unit 300. In order to compensate for color shading, shading correction data including a shading correction coefficient or a shading correction function corresponding to the mounted lens unit 300 is read out from a nonvolatile memory in the lens unit 300 via the lens control circuit 350, and the system is controlled. The shading correction data to be stored in a predetermined area of the memory 30 which is a work area of the control circuit 50 is set (S716), and the process proceeds to S731.

なお、装着されたレンズユニット300に対応したシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データを、レンズユニット300内の不揮発性メモリからレンズ制御回路350を介して読み出して、不揮発性メモリ56(或いはメモリ30の一部或いは全てを不揮究性メモリに構成した場合はメモリ30の不揮発性メモリ領域)に格納しても良い。   It should be noted that the shading correction data including the shading correction coefficient or the shading correction function corresponding to the mounted lens unit 300 is read out from the non-volatile memory in the lens unit 300 via the lens control circuit 350, and the non-volatile memory 56 (or When part or all of the memory 30 is configured as a non-volatile memory, it may be stored in a non-volatile memory area of the memory 30).

このように、装着されたレンズユニット300に応じてシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データをレンズユニット300から読み出して設定することにより、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び/或いは色シェーディングを補償するために、装着されたレンズユニットに応じて所定のシェーディング補正係数或いはシェーディング補正関数を用いて撮影画像データに対して乗算処理を行うシェーディング補正処理を行うことが可能となる。   As described above, by reading and setting the shading correction data including the shading correction coefficient or the shading correction function from the lens unit 300 in accordance with the mounted lens unit 300, the subject image can be obtained through the lens unit 300. In order to compensate for luminance shading and / or color shading that occurs during the process of forming an image on the image sensor 14, a predetermined shading correction coefficient or a shading correction function is used for captured image data according to the attached lens unit. Thus, a shading correction process for performing a multiplication process can be performed.

また、装着されたレンズユニット300に応じて設定したシェーディング補正データを用いて、被写体を撮影する際のレンズユニット300の絞り312の絞り値及び/或いは被写体を撮影する際のレンズユニット300の焦点距離値に応じて、所定のシェーディング補正係数或いはシェーディング補正関数を選択して、最適な補正量のシェーディング補正処理を行うことが可能である。   Also, using the shading correction data set according to the mounted lens unit 300, the aperture value of the aperture 312 of the lens unit 300 when photographing the subject and / or the focal length of the lens unit 300 when photographing the subject. It is possible to select a predetermined shading correction coefficient or shading correction function according to the value, and perform shading correction processing with an optimum correction amount.

次いで、シャッタースイッチSW1がOFFであるならば(S731)、S702に戻る。シャッタースイッチSW1がONであるならば(S731)、システム制御回路50は、測距処理を行って撮影レンズ10の焦点を被写体に合わせ、測光処理を行って絞り値及びシャッター時間を決定する、測距・測光処理を行い、システム制御回路50の内部メモリ或いはメモリ52に測光データ及び或いは設定パラメータを記憶する(S732)。測光処理に於いて、必要であればフラッシュの設定も行う。この測距・測光処理S732の詳細は図5を用いて前述した通りである。   Next, if the shutter switch SW1 is OFF (S731), the process returns to S702. If the shutter switch SW1 is ON (S731), the system control circuit 50 performs a distance measurement process to focus the photographing lens 10 on the subject, and performs a photometry process to determine an aperture value and a shutter time. The distance and photometry processing is performed, and photometry data and / or setting parameters are stored in the internal memory of the system control circuit 50 or the memory 52 (S732). In the photometry processing, the flash setting is also performed if necessary. The details of the distance measurement / photometry processing S732 are as described above with reference to FIG.

そして、記憶した測光データ及び/或いは設定パラメータとモードダイアル60によって設定された撮影モードに応じて、絞り値(Av値)、シャッター速度(Tv値)を決定し、更に、決定したシャッター速度(Tv値)に応じて、電荷蓄積時間を決定してシステム制御回路50の内部メモリ或いはメモリ52に記憶する(S733)。   Then, an aperture value (Av value) and a shutter speed (Tv value) are determined according to the stored photometric data and / or setting parameters and the shooting mode set by the mode dial 60, and further, the determined shutter speed (Tv value) is determined. The charge accumulation time is determined according to the value (value), and is stored in the internal memory of the system control circuit 50 or the memory 52 (S733).

システム制御回路50は、シャッタースイッチSW1がONされてからまだダーク取込み処理を行っていない場合、或いは既にダーク取込み処理を行ったがその後更に行った測距・測光処理の測定結果に従って電荷蓄積時間が変更になったならば(S734)、S735に進む。   The system control circuit 50 sets the charge accumulation time according to the measurement result of the distance acquisition / photometry processing when the dark acquisition processing has not yet been performed since the shutter switch SW1 was turned on, or when the dark acquisition processing has already been performed but is further performed thereafter. If it has been changed (S734), the flow proceeds to S735.

既にダーク取込み処理を行っており、且つ、その後更に行った測距・測光処理の測定結果によっても電荷蓄積時間が変更になっていないならば(S734)、S736に進む。   If the dark capture processing has already been performed, and the charge accumulation time has not been changed by the measurement result of the distance measurement / photometry processing further performed thereafter (S734), the process proceeds to S736.

システム制御回路50は、シャッター12を閉じた状態で撮像素子14の暗電流等のノイズ成分を本撮影と同じ時間だけ蓄積し、蓄積を終えたノイズ画像信号を読み出すダーク取り込み処理を行い(S735)、S736に進む。   With the shutter 12 closed, the system control circuit 50 accumulates noise components such as dark current of the image sensor 14 for the same time as the actual photographing, and performs dark capture processing for reading out the noise image signal that has been accumulated (S735). , S736.

このダーク取り込み処理で取り込んだダーク画像データを用いて補正演算処理を行うことにより、撮像素子14の発生する暗電流ノイズや撮像素子14固有のキズによる画素欠損等の画質劣化に関して、撮影した画像データを補正することが出来る。このダーク取り込み処理S735の詳細は図7を用いて前述した通りである。   By performing a correction calculation process using the dark image data captured in the dark capture process, the captured image data is obtained with respect to image quality deterioration such as dark current noise generated by the image sensor 14 and pixel defects due to scratches inherent to the image sensor 14. Can be corrected. The details of the dark capture processing S735 are as described above with reference to FIG.

システム制御回路50は、システム制御回路50の内部メモリ或いはメモリ52に記憶した測光データ及び/或いは設定パラメータからレンズユニット300の絞り312の絞り値Aを決定する(S736)。   The system control circuit 50 determines the aperture value A of the aperture 312 of the lens unit 300 from the photometric data and / or the setting parameters stored in the internal memory of the system control circuit 50 or the memory 52 (S736).

さらに、システム制御回路50は、レンズ制御回路350、インタフェース320、コネクタ322、コネクタ122、インタフェース120を介してズーム制御部344よりレンズユニット300の焦点距離情報を取得し、取得した焦点距離情報に基づいて、撮影する際のレンズユニット300の焦点距離値Lを決定する(S737)。   Further, the system control circuit 50 acquires the focal length information of the lens unit 300 from the zoom control unit 344 via the lens control circuit 350, the interface 320, the connector 322, the connector 122, and the interface 120, and based on the acquired focal length information. Then, the focal length L of the lens unit 300 at the time of shooting is determined (S737).

そして、システム制御回路50は、S736で決定した絞り値A及び/或いはS737で決定した焦点距離値Lからシェーディング補正値を決定する(S738)。   Then, the system control circuit 50 determines a shading correction value from the aperture value A determined in S736 and / or the focal length value L determined in S737 (S738).

このように、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び或いは色シェーディングを補償するために、装着されたレンズユニット300に応じてS717において設定したシェーディング補正データを用いて、被写体を撮影する際のレンズユニット300の絞り312の絞り値A及び或いは被写体を撮影した際のレンズユニット300の焦点距離値Lに応じて、所定のシェーディング補正係数或いはシェーディング補正関数を選択して用いて、撮影画像データに対して乗算処理を行うことにより、最適な補正量のシェーディング補正処理を行うことが可能である。   As described above, in order to compensate for the brightness shading and / or the color shading generated in the process of forming the subject image on the image sensor 14 of the image processing apparatus 100 via the lens unit 300, the image processing apparatus 100 may be controlled depending on the mounted lens unit 300. Using the shading correction data set in S717, predetermined shading is performed in accordance with the aperture value A of the aperture 312 of the lens unit 300 when photographing the subject and the focal length value L of the lens unit 300 when photographing the subject. By selecting and using a correction coefficient or a shading correction function and performing multiplication processing on captured image data, it is possible to perform shading correction processing with an optimum correction amount.

シャッタースイッチSW2がOFFであるならば(S739)、システム制御回路50はシャッタースイッチSW1の状態を判断する。そして、シャッタースイッチSW1がOFFであるならば(S740)、S702に戻る。シャッタースイッチSW1がONであるならば(S740)、システム制御回路50はシステム制御回路50の内部メモリ或いはメモリ52に記憶されるAFモードフラグの状態を判断し(S741)、ワンショットAFが設定されていたならば、S739に戻る。一方、サーボAFが設定されていたならば(S741)、S732に戻る。また、シャッタースイッチSW2がONであるならば(S739)、S761に進む。   If the shutter switch SW2 is OFF (S739), the system control circuit 50 determines the state of the shutter switch SW1. If the shutter switch SW1 is OFF (S740), the process returns to S702. If the shutter switch SW1 is ON (S740), the system control circuit 50 determines the state of the AF mode flag stored in the internal memory of the system control circuit 50 or the memory 52 (S741), and one-shot AF is set. If yes, the process returns to S739. On the other hand, if the servo AF has been set (S741), the process returns to S732. If the shutter switch SW2 is ON (S739), the process proceeds to S761.

次いで、システム制御回路50は、撮影した画像データを記憶可能な画像記憶バッファ領域がメモリ30にあるかどうかを判断し(S761)、メモリ30の画像記憶バッファ領域内に新たな画像データを記憶可能な領域が無いならば、出力部54を用いて画像や音声により所定の警告を行った後に(S762)、S702に戻る。ここで、メモリ30の画像記憶バッファ領域内に新たな画像データを記憶可能な領域が無い場合としては、例えば、メモリ30の画像記憶バッファ領域内に記憶可能な最大枚数の連写撮影を行った直後で、メモリ30から読み出して記憶媒体200或いは210に書き込むべき最初の画像がまだ記録媒体200或いは210に未記録な状態であり、まだ1枚の空き領域もメモリ30の画像記憶バッファ領域上に確保出来ない状態である場合等が挙げられる。   Next, the system control circuit 50 determines whether there is an image storage buffer area capable of storing the captured image data in the memory 30 (S761), and can store new image data in the image storage buffer area of the memory 30. If there is no such area, a predetermined warning is given by image or sound using the output unit 54 (S762), and the process returns to S702. Here, when there is no area capable of storing new image data in the image storage buffer area of the memory 30, for example, the maximum number of continuous shots that can be stored in the image storage buffer area of the memory 30 is performed. Immediately after, the first image to be read from the memory 30 and written to the storage medium 200 or 210 is not yet recorded on the recording medium 200 or 210, and one empty area still remains on the image storage buffer area of the memory 30. For example, there is a case where it cannot be secured.

なお、撮影した画像データを圧縮処理してからメモリ30の画像記憶バッファ領域に記憶する場合は、圧縮した後の画像データ量が圧縮モードの設定に応じて異なることを考慮して、記憶可能な領域がメモリ30の画像記憶バッファ領域上にあるかどうかをS761において判断することになる。   When the captured image data is stored in the image storage buffer area of the memory 30 after being subjected to the compression process, the image data can be stored in consideration of the fact that the amount of compressed image data differs according to the setting of the compression mode. In step S761, it is determined whether the area is on the image storage buffer area of the memory 30.

メモリ30に撮影した画像データを記憶可能な画像記憶バッファ領域があるならば(S761)、システム制御回路50は、撮像して所定時間蓄積した撮像信号を撮像素子12から読み出して、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器から直接メモリ制御回路22を介して、メモリ30の所定鎖域に撮影した画像データを書き込む撮影処理を実行する(S763)。この撮影処理S763の詳細は図6を用いて前述した通りである。   If there is an image storage buffer area capable of storing the captured image data in the memory 30 (S761), the system control circuit 50 reads out the image pickup signal that has been imaged and accumulated for a predetermined time from the image sensor 12, and performs A / D conversion. A photographing process for writing photographed image data in a predetermined chain area of the memory 30 is executed via the device 16, the image processing circuit 20, the memory control circuit 22, or directly from the A / D converter via the memory control circuit 22. (S763). Details of the photographing processing S763 are as described above with reference to FIG.

撮影処理S763を終えたならば、システム制御回路50は、前もってダーク取り込み処理S735において取り込んだダーク画像データを用いて撮影画像データに対して減算処理を行うことにより、撮像素子14の暗電流ノイズ等を打ち消すダーク補正演算処理を行う(S764)。   After the photographing process S763 is completed, the system control circuit 50 performs a subtraction process on the photographed image data by using the dark image data previously captured in the dark capturing process S735, so that the dark current noise or the like of the image sensor 14 is obtained. Is performed (S764).

そして、システム制御回路50は、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び/或いは色シェーディングを補償するために、S741で決定した所定のシェーディング補正係数或いはシェーディング補正関数を用いて撮影画像デレタに対して乗算処理を行うことにより、シェーディング補正処理を行う(S765)。   Then, the system control circuit 50 determines in S741 in order to compensate for luminance shading and / or color shading generated in the process of forming the subject image on the image sensor 14 of the image processing apparatus 100 via the lens unit 300. A shading correction process is performed by performing a multiplication process on the photographed image deleter using a predetermined shading correction coefficient or shading correction function (S765).

さらに、システム制御回路50は、撮像素子14の画素の中で常に白いデータを出力する白点キズ及び或いは常に黒いデータを出力する黒点キズに係る画素を補償するために、点キズ位置検出処理S709で検出した撮像素子14の画素欠陥位置アドレスを参照しながら、キズ画素に隣接する画素の撮影画像データを用いて補間演算処理を行うことにより、点キズ補正処理を行う(S766)。   Further, the system control circuit 50 performs a point flaw position detection process S709 in order to compensate for a pixel related to a white point flaw that always outputs white data and / or a black point flaw that always outputs black data among the pixels of the image sensor 14. The point flaw correction process is performed by performing an interpolation calculation process using the photographed image data of the pixel adjacent to the flaw pixel while referring to the pixel defect position address of the image sensor 14 detected in step (S766).

このように、撮影に先立って、ダーク補正用画像データの取り込み、使用レンズの絞り値及び/或いは焦点距離に応じたシェーディング補正係数或いはシェーディング補正関数の決定、点キズ補正のための撮像素子14の画素欠陥位置アドレスの検出をそれぞれ行い、撮影した画像データに対して、ダーク取り込み画像の減算処理を行うダーク補正処理、シェーディング補正係数或いはシェーディング補正関数の乗算処理を行うシェーディング補正処理、キズ画素に隣接する画素の撮影画像データを用いた補間演算処理を行う点キズ補正処理を同時に或いは連続して行うことが可能となる。   As described above, prior to the photographing, the image data for dark correction is taken in, the shading correction coefficient or the shading correction function is determined according to the aperture value and / or the focal length of the lens to be used, and the imaging device 14 is used to correct point flaws. Each pixel defect position address is detected, and the captured image data is subjected to dark correction processing for subtracting a dark captured image, shading correction processing for multiplying a shading correction coefficient or a shading correction function, and adjacent to a flaw pixel. It is possible to simultaneously or continuously perform the point flaw correction processing for performing the interpolation calculation processing using the photographed image data of the pixel to be processed.

これにより、シャッターレリーズタイムラグが少なく、且つ、ダーク補正、シェーディング補正、点キズ補正を行った良好な撮影画像データを得ることを可能とすることが出来る。   As a result, it is possible to obtain good photographed image data that has a small shutter release time lag and that has been subjected to dark correction, shading correction, and point flaw correction.

システム制御回路50は、メモリ30の所定領域へ書き込まれた画像データの一部をメモリ制御回路22を介して読み出して、現像処理を行うために必要なWB(ホワイトバランス)積分演算処理、OB(オプティカルブラック)積分演算処理を行い、演算結果をシステム制御回路50の内部メモリ或いはメモリ52に記憶する。   The system control circuit 50 reads out a part of the image data written in a predetermined area of the memory 30 through the memory control circuit 22 and performs a WB (white balance) integration operation process, OB ( (Optical black) Integral calculation processing is performed, and the calculation result is stored in the internal memory of the system control circuit 50 or the memory 52.

そして、システム制御回路50は、メモリ制御回路22、及び必要に応じて画像処理回路20を用いて、メモリ30の所定領域に書き込まれた撮影画像データを読み出して、システム制御回路50の内部メモリ或いはメモリ52に記憶した演算結果を用いて、AWB(オートホワイトバランス)処理、ガンマ変換処理、色変換処理を含む各種現像処理を行う(S767)。   Then, the system control circuit 50 reads out the captured image data written in a predetermined area of the memory 30 using the memory control circuit 22 and, if necessary, the image processing circuit 20, and reads out the internal memory of the system control circuit 50 or Using the calculation results stored in the memory 52, various development processes including AWB (auto white balance) process, gamma conversion process, and color conversion process are performed (S767).

そして、システム制御回路50は、メモリ30の所定領域に書き込まれた画像データを読み出して、設定したモードに応じた画像圧縮処理を圧縮・伸長回路32により行い(S768)、メモリ30の画像記憶バッファ領域の空き画像部分に、撮影して一連の処理を終えた画像データの書き込みを行う。   Then, the system control circuit 50 reads out the image data written in a predetermined area of the memory 30, and performs image compression processing according to the set mode by the compression / decompression circuit 32 (S 768). Image data that has been photographed and has undergone a series of processing is written in the free image portion of the area.

一連の撮影の実行に伴い、システム制御回路50は、メモリ30の画像記憶バッファ領域に記憶した画像データを読み出して、インターフェース90或いは94、コネクタ92或いは96を介して、メモリカードやコンパクトフラッシュ(登録商標)カード等の記録媒体200或いは210へ書き込みを行う記録処理を開始する(S769)。   With the execution of a series of photographing operations, the system control circuit 50 reads out the image data stored in the image storage buffer area of the memory 30 and transmits the image data to the memory card or the compact flash (registered) via the interface 90 or 94 and the connector 92 or 96. A recording process for writing data to the recording medium 200 or 210 such as a trademark card is started (S769).

この記録処理の開始は、メモリ30の画像記憶バッファ領域の空き画像部分に、撮影後に一連の処理を終えた画像データが新たに書込まれる都度、その画像データに対して実行される。   The start of the recording process is performed on the image data each time a series of processing-completed image data is newly written into the empty image portion of the image storage buffer area of the memory 30 after shooting.

なお、記録媒体200或いは210へ画像データの書き込みを行っている間、書き込み動作中であることを明示するために、出力部54において例えばLEDを点滅させる等の記録媒体書き込み動作表示を行う。   In addition, while the image data is being written to the recording medium 200 or 210, a recording medium writing operation display such as blinking of an LED is performed on the output unit 54 in order to clearly indicate that the writing operation is being performed.

次いで、システム制御回路50は、シャッタースイッチSW1がONであるか否かを判断する(S770)。そして、シャッタースイッチSW1がOFFであったならば(S770)、S702に戻る。一方、シャッタースイッチSW1がONであったならば(S770)、システム制御回路50はシステム制御回路50の内部メモリ或いはメモリ52に記憶されるAFモードフラグの状態を判断する(S771)。   Next, the system control circuit 50 determines whether or not the shutter switch SW1 is ON (S770). If the shutter switch SW1 is OFF (S770), the process returns to S702. On the other hand, if the shutter switch SW1 is ON (S770), the system control circuit 50 determines the state of the AF mode flag stored in the internal memory of the system control circuit 50 or the memory 52 (S771).

そして、ワンショットAFが設定されていたならば(S771)、新たにAF及びAEを行わずに連続して撮影を行うためにS739に戻り、次の撮影を行う。一方、サーボAFが設定されていたならば(S771)、連続してAF及びAEを行いながら撮影を行うためにS732に戻り、次の撮影を行う。   If the one-shot AF has been set (S771), the process returns to S739 to continuously perform shooting without performing AF and AE, and performs the next shooting. On the other hand, if the servo AF has been set (S771), the process returns to S732 to perform shooting while performing AF and AE continuously, and performs the next shooting.

[第4の実施の形態]
図1、図5乃至図8及び図15乃至図17を参照して、本発明の第4の実施の形態の動作を説明する。図5乃至図8に示す動作は、第1の実施の形態の動作に従う。図15乃至図17は、本発明の第4の実施の形態の画像処理装置100の主ルーチンのフローチャートを示す。
[Fourth Embodiment]
The operation of the fourth embodiment of the present invention will be described with reference to FIGS. 1, 5 to 8 and FIGS. The operations shown in FIGS. 5 to 8 follow the operations of the first embodiment. FIGS. 15 to 17 show a flowchart of a main routine of the image processing apparatus 100 according to the fourth embodiment of the present invention.

第3の実施の形態は、所定期間経過したならば前もって点キズ位置検出処理を行う画像処理装置100の動作例であったが、第4の実施の形態は、所定の点キズ位置検出モード選択時に前もって点キズ位置検出処理を行う画像処理装置100の動作例を提供する。   The third embodiment is an example of the operation of the image processing apparatus 100 that performs the point defect position detection processing in advance after a predetermined period has elapsed. However, the fourth embodiment is different from the operation example of selecting the predetermined point defect position detection mode. An example of the operation of the image processing apparatus 100 that performs the point defect position detection processing in advance is provided.

また、第3の実施の形態は、レンズユニット300が装着された際に、レンズユニット300内に格納されたシェーディング補正係数或いはシェーディング補正関数を画像処理装置100に読み込んでシェーディングデータの設定を行う画像処理装置100の動作例であったが、第4の実施の形態は、所定のシェーディングデータ設定モード選択時に前もってシェーディングデータ設定処理を行う画像処理装置100の動作例を提供する。   Further, in the third embodiment, when the lens unit 300 is mounted, an image in which the shading correction coefficient or the shading correction function stored in the lens unit 300 is read into the image processing apparatus 100 and shading data is set. The fourth embodiment provides an operation example of the image processing apparatus 100 which performs shading data setting processing in advance when a predetermined shading data setting mode is selected.

図15乃至図17を用いて、画像処理装置100の動作を説明する。まず、電池交換の完了に伴う電源投入等により、システム制御回路50はフラグや制御変数等を初期化し、画像処理装置100の各部において必要な所定の初期設定を行う(S801)。   The operation of the image processing apparatus 100 will be described with reference to FIGS. First, the system control circuit 50 initializes flags, control variables, and the like when the power is turned on upon completion of battery replacement, and performs predetermined initial settings necessary for each unit of the image processing apparatus 100 (S801).

次いで、システム制御回路50は、電源スイッチ66の設定位置を判断し、電源スイッチ66が電源OFFに設定されていたならば(S802)、各表示部の表示を終了状態に変更し、フラグや制御変数等を含む必要なパラメータや設定値、設定モードを不揮発性メモリ56に記録し、電源制御部80により画像表示部28を含めて、画像処理装置100各部の不要な電源を遮断する等の所定の終了処理を行った後(S803)、S802に戻る。   Next, the system control circuit 50 determines the setting position of the power switch 66, and if the power switch 66 is set to the power OFF state (S802), changes the display of each display unit to the end state, and sets the flag and control. Necessary parameters including variables and the like, setting values, and setting modes are recorded in the non-volatile memory 56, and a predetermined control such as shutting off unnecessary power of each unit of the image processing apparatus 100 including the image display unit 28 by the power control unit 80. (S803), and returns to S802.

電源スイッチ66が電源ONに設定されていたならば(S802)、システム制御回路50は、電源制御手段80により電池等により構成される電源86の残容量や動作情況が画像処理装置100の動作に問題があるか否かを判断し(S804)、問題があるならば出力部54を用いて画像や音声により所定の警告を行った後に(S805)、S802に戻る。   If the power switch 66 has been set to power ON (S802), the system control circuit 50 causes the power control means 80 to change the remaining capacity of the power source 86 composed of a battery or the like and the operating condition to the operation of the image processing apparatus 100. It is determined whether or not there is a problem (S804). If there is a problem, a predetermined warning is given by image or sound using the output unit 54 (S805), and the process returns to S802.

電源86に問題が無いならば(S804)、システム制御回路50はモードダイアル60の設定位置を判断し、モードダイアル60が撮影モードに設定されていたならば(S806)、S811に進む。   If there is no problem with the power supply 86 (S804), the system control circuit 50 determines the setting position of the mode dial 60, and if the mode dial 60 is set to the photographing mode (S806), the process proceeds to S811.

モードダイアル60が点キズ位置検出モードに設定されていたならば(S806、S807)、システム制御回路50は、撮像素子14の画素の中で常に白いデータを出力する白点キズ及び/或いは常に黒いデータを出力する黒点キズに係る画素を検出して、その画素を特定する画素欠陥位置アドレスを記憶する点キズ位置検出処理を行い(S808)、処理を終えたならばS802に戻る。この点キズ位置検出処理で検出した撮像素子14の画素欠陥位置アドレスを用いて、隣接画素の撮影画像データによる補間演算処理を行うことにより、撮影した画像データの点キズ補正処理を行うことが出来る。この点キズ位置検出処理S808の詳細は図8を用いて前述した通りである。   If the mode dial 60 has been set to the point flaw position detection mode (S806, S807), the system control circuit 50 outputs a white point flaw that constantly outputs white data among pixels of the image sensor 14 and / or a constantly black flaw. A pixel corresponding to a black spot defect for outputting data is detected, and a point defect position detecting process for storing a pixel defect position address for specifying the pixel is performed (S808). When the process is completed, the process returns to S802. By using the pixel defect position address of the image sensor 14 detected in the point flaw position detection processing and performing interpolation calculation processing based on captured image data of adjacent pixels, point flaw correction processing of captured image data can be performed. . The details of the point flaw position detection processing S808 are as described above with reference to FIG.

このように、撮影モードとは異なるモードである点キズ位置検出モードの時に点キズ位置検出処理を行い、画像処理装置100の使用者が撮影動作を開始する前に点キズ位置検出処理を終えることにより、撮影時に点キズ位置検出処理をも行ってシャッターレリーズタイムラグが大きくなるという問題が生じることを防止することが出来る。   As described above, the point flaw position detection process is performed in the point flaw position detection mode which is a mode different from the shooting mode, and the point flaw position detection process is completed before the user of the image processing apparatus 100 starts the shooting operation. Thereby, it is possible to prevent the problem that the shutter release time lag is increased by performing the point flaw position detection process at the time of photographing.

モードダイアル60がシェーディングデータ設定モードに設定されていたならば(S806、S807)、システム制御回路50は、不揮発性メモリ56(或いはメモリ30の一部或いは全てを不揮発性メモリに構成した場合はメモリ30の不揮発性メモリ領域)から、装着されたレンズユニット300に対応するシェーディング補正データを読み出してシステム制御回路50の作業領域であるメモリ30の所定の領域に格納するシェーディング補正データの設定を行い(S809)、処理を終えたならばS802に戻る。   If the mode dial 60 has been set to the shading data setting mode (S806, S807), the system control circuit 50 sets the nonvolatile memory 56 (or the memory if a part or all of the memory 30 is configured as a nonvolatile memory). The shading correction data corresponding to the mounted lens unit 300 is read out from the non-volatile memory area 30 and the shading correction data to be stored in a predetermined area of the memory 30 which is a working area of the system control circuit 50 is set ( S809) When the process is completed, the process returns to S802.

このように、撮影モードとは異なるモードであるシェーディングデータ設定モードの時にシェーディング補正データ設定処理を行い、画像処理装置100の使用者が撮影動作を開始する前にシェーディング補正データ設定を終えることにより、撮影時にシェーディング補正データ設定も行ってシャッターレリーズタイムラグが大きくなるという問題が生じることを防止することが出来る。   As described above, the shading correction data setting process is performed in the shading data setting mode which is a mode different from the shooting mode, and the shading correction data setting is completed before the user of the image processing apparatus 100 starts the shooting operation. Shading correction data is also set at the time of photographing, so that a problem that the shutter release time lag becomes large can be prevented.

そして、装着されたレンズユニット300に応じてシェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データを設定することにより、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び或いは色シェーディングを補償するために、装着されたレンズユニットに応じて所定のシェーディング補正係数或いはシェーディング補正関数を用いて撮影画像データに対して乗算処理を行うシェーディング補正処理を行うことが可能となる。   Then, by setting the shading correction data or the shading correction data including the shading correction function according to the mounted lens unit 300, the subject image is formed on the image sensor 14 of the image processing apparatus 100 via the lens unit 300. In order to compensate for the brightness shading and / or color shading generated in the process, a shading correction process of performing a multiplication process on the captured image data using a predetermined shading correction coefficient or a shading correction function according to the attached lens unit. It is possible to do.

また、装着されたレンズユニット300に応じて設定したシェーディング補正データを用いて、被写体を撮影する際のレンズユニット300の絞り312の絞り値及び/或いは被写体を撮影する際のレンズユニット300の焦点距離値に応じて、所定のシェーディング補正係数或いはシェーディング補正関数を選択して、最適な補正量のシェーディング補正処理を行うことが可能である。   Also, using the shading correction data set according to the mounted lens unit 300, the aperture value of the aperture 312 of the lens unit 300 when photographing the subject and / or the focal length of the lens unit 300 when photographing the subject. It is possible to select a predetermined shading correction coefficient or shading correction function according to the value, and perform shading correction processing with an optimum correction amount.

モードダイアル60がその他のモードに設定されていたならば(S806、S807)、システム制御回路50は選択されたモードに応じた処理を実行し(S810)、処理を終えたならばS802に戻る。   If the mode dial 60 has been set to another mode (S806, S807), the system control circuit 50 executes a process according to the selected mode (S810), and returns to S802 when the process is completed.

システム制御回路50は、記録媒体200或いは210が装着されているかどうかの判断、記録媒体200或いは210に記録された画像データの管理情報の取得、そして、記録媒体200或いは210の動作状態が画像処理装置100の動作、特に記録媒体に対する画像データの記録再生動作に問題があるか否かの判断を行い(S811)、問題があるならば出力部54を用いて画像や音声により所定の警告を行った後に(S805)、S802に戻る。   The system control circuit 50 determines whether the recording medium 200 or 210 is mounted, obtains management information of image data recorded on the recording medium 200 or 210, and determines whether the operation state of the recording medium 200 or 210 is image processing. It is determined whether there is a problem in the operation of the apparatus 100, particularly, in the operation of recording and reproducing image data on the recording medium (S811). If there is a problem, a predetermined warning is given by an image or sound using the output unit 54. After that (S805), the process returns to S802.

そして、記録媒体200或いは210が装着されているかどうかの判断、記録媒体200或いは210に記録された画像データの管理情報の取得、そして、記録媒体200或いは210の動作状態が画像処理装置100の動作、特に記録媒体に対する画像データの記録再生動作に問題があるか否かの判断を行った結果(S811)、問題が無いならば、S812に進む。   Then, it is determined whether or not the recording medium 200 or 210 is mounted, management information of the image data recorded on the recording medium 200 or 210 is obtained, and the operation state of the recording medium 200 or 210 is determined by the operation of the image processing apparatus 100. In particular, as a result of determining whether or not there is a problem in the recording / reproducing operation of the image data with respect to the recording medium (S811), if there is no problem, the process proceeds to S812.

システム制御回路50は、AFモード設定スイッチ68の状態を調べ、ワンショットAFモードが選択されているならばAFモードフラグをワンショットAFに設定し(S813)、サーボAFモードが選択されているならばAFモードフラグをサーボAFに設定し(S814)、フラグの設定を終えたならばS815に進む。   The system control circuit 50 checks the state of the AF mode setting switch 68, and if the one-shot AF mode is selected, sets the AF mode flag to one-shot AF (S813), and if the servo AF mode is selected. For example, the AF mode flag is set to servo AF (S814), and when the setting of the flag is completed, the process proceeds to S815.

システム制御回路50は出力部54を用いて画像や音声により画像処理装置100の各種設定状態の表示を行い(S815)、S831に進む。   The system control circuit 50 uses the output unit 54 to display various setting states of the image processing apparatus 100 using images and sounds (S815), and proceeds to S831.

なお、画像表示部28の画像表示がONであったならば、画像表示部28をも用いて画像により画像処理装置100の各種設定状態の表示を行う。   If the image display of the image display unit 28 is ON, the various setting states of the image processing apparatus 100 are displayed by the image using the image display unit 28 as well.

シャッタースイッチSW1がOFFであるならば(S831)、S802に戻る。一方、シャッタースイッチSW1がONであるならば(S831)、システム制御回路50は、測距処理を行って撮影レンズ10の焦点を被写体に合わせ、測光処理を行って絞り値及びシャッター時間を決定する、測距・測光処理を行い、システム制御回路50の内部メモリ或いはメモリ52に測光データ及び/或いは設定パラメータを記憶する(S832)。測光処理に於いて、必要であればフラッシュの設定も行う。この測距・測光処理S832の詳細は図5を用いて前述した通りである。   If the shutter switch SW1 is OFF (S831), the process returns to S802. On the other hand, if the shutter switch SW1 is ON (S831), the system control circuit 50 performs a distance measurement process to focus the photographing lens 10 on the subject, and performs a photometry process to determine an aperture value and a shutter time. Then, the distance measurement / photometry processing is performed, and the photometry data and / or setting parameters are stored in the internal memory of the system control circuit 50 or the memory 52 (S832). In the photometry processing, the flash setting is also performed if necessary. The details of the distance measurement / photometry processing S832 are as described above with reference to FIG.

そして、記憶した測光データ及び/或いは設定パラメータとモードダイアル60によって設定された撮影モードに応じて、絞り値(Av値)、シャッター速度(Tv値)を決定し、更に、決定したシャッター速度(Tv値)に応じて、電荷蓄積時間を決定してシステム制御回路50の内部メモリ或いはメモリ52に記憶する(S833)。   Then, an aperture value (Av value) and a shutter speed (Tv value) are determined according to the stored photometric data and / or setting parameters and the shooting mode set by the mode dial 60, and further, the determined shutter speed (Tv value) is determined. The charge accumulation time is determined according to the value (value), and is stored in the internal memory of the system control circuit 50 or the memory 52 (S833).

システム制御回路50は、シャッタースイッチSW1がONになってからまだダーク取込み処理を行っていない場合、或いは既にダーク取込み処理を行ったがその後更に行った測距・測光処理の測定結果に従って電荷蓄積時間が変更になったならば(S834)、S835に進む。   The system control circuit 50 determines whether or not the dark capture processing has been performed since the shutter switch SW1 was turned on, or the charge storage time according to the measurement result of the distance measurement / photometry processing that has been performed but has been performed. Is changed (S834), the process proceeds to S835.

既にダーク取込み処理を行っており、且つ、その後更に行った測距・測光処理の測定結果によっても電荷蓄積時間が変更になっていないならば(S834)、S836に進む。   If the dark capture processing has already been performed and the charge accumulation time has not been changed by the measurement result of the distance measurement / photometry processing further performed thereafter (S834), the process proceeds to S836.

システム制御回路50は、シャッター12を閉じた状態で撮像素子14の暗電流等のノイズ成分を本撮影と同じ時間だけ蓄積し、蓄積を終えたノイズ画像信号を読み出すダーク取り込み処理を行い(S835)、S836に進む。   With the shutter 12 closed, the system control circuit 50 accumulates noise components such as dark current of the image sensor 14 for the same time as the actual photographing, and performs dark capture processing for reading out the accumulated noise image signal (S835). , S836.

このダーク取り込み処理で取り込んだダーク画像データを用いて補正演算処理を行うことにより、撮像素子14の発生する暗電流ノイズや撮像素子14固有のキズによる画素欠損等の画質劣化に関して、撮影した画像データを補正することが出来る。このダーク取り込み処理S835の詳細は図7を用いて前述した通りである。   By performing a correction calculation process using the dark image data captured in the dark capture process, the captured image data is obtained with respect to image quality deterioration such as dark current noise generated by the image sensor 14 and pixel defects due to scratches inherent to the image sensor 14. Can be corrected. The details of this dark capture processing S835 are as described above with reference to FIG.

システム制御回路50は、システム制御回路50の内部メモリ或いはメモリ52に記憶した測光データ及び/或いは設定パラメータからレンズユニット300の絞り312の絞り値Aを決定する(S836)。   The system control circuit 50 determines the aperture value A of the aperture 312 of the lens unit 300 from the photometric data and / or the setting parameters stored in the internal memory of the system control circuit 50 or the memory 52 (S836).

さらに、システム制御回路50は、レンズ制御回路350、インタフェース320、コネクタ322、コネクタ122、インタフェース120を介してズーム制御手段344よりレンズユニット300の焦点距離情報を取得し、取得した焦点距離情報から撮影する際のレンズユニット300の焦点距離値Lを決定する(S837)。   Further, the system control circuit 50 acquires the focal length information of the lens unit 300 from the zoom control unit 344 via the lens control circuit 350, the interface 320, the connector 322, the connector 122, and the interface 120, and performs photographing from the acquired focal length information. Then, the focal length L of the lens unit 300 at the time of performing is determined (S837).

そして、システム制御回路50は、S836で決定した絞り値A及び/或いはS837で決定した焦点距離値Lからシェーディング補正値を決定する(S838)。   Then, the system control circuit 50 determines a shading correction value from the aperture value A determined in S836 and / or the focal length value L determined in S837 (S838).

このように、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び或いは色シェーディングを補償するために、装着されたレンズユニット300に応じてS817において設定したシェーディング補正データを用いて、被写体を撮影する際のレンズユニット300の絞り312の絞り値A及び/或いは被写体を撮影した際のレンズユニット300の焦点距離値Lに応じて、所定のシェーディング補正係数或いはシェーディング補正関数を選択して用いて、撮影画像データに対して乗算処理を行うことにより、最適な補正量のシェーディング補正処理を行うことが可能である。   As described above, in order to compensate for the brightness shading and / or the color shading generated in the process of forming the subject image on the image sensor 14 of the image processing apparatus 100 via the lens unit 300, the image processing apparatus 100 may be controlled depending on the mounted lens unit 300. Using the shading correction data set in S817, a predetermined value is set according to the aperture value A of the aperture 312 of the lens unit 300 when photographing the subject and / or the focal length L of the lens unit 300 when photographing the subject. By selecting and using a shading correction coefficient or a shading correction function and performing multiplication processing on the captured image data, it is possible to perform shading correction processing with an optimum correction amount.

次いで、シャッタースイッチSW2がOFFであるならば(S839)、システム制御回路50はシャッタースイッチSW1の状態を判断する。シャッタースイッチSW1が放されていたならば(S840)、S802に戻る。   Next, if the shutter switch SW2 is OFF (S839), the system control circuit 50 determines the state of the shutter switch SW1. If the shutter switch SW1 has been released (S840), the process returns to S802.

シャッタースイッチSW1がONであるならば(S840)、システム制御回路50はシステム制御回路50の内部メモリ或いはメモリ52に記憶されるAFモードフラグの状態を判断し(S841)、ワンショットAFが設定されていたならば、S839に戻る。一方、サーボAFが設定されていたならば(S841)、S832に戻る。また、シャッタースイッチSW2がONであるならば(S839)、S861に進む。   If the shutter switch SW1 is ON (S840), the system control circuit 50 determines the state of the AF mode flag stored in the internal memory of the system control circuit 50 or the memory 52 (S841), and one-shot AF is set. If so, the process returns to S839. On the other hand, if the servo AF has been set (S841), the process returns to S832. If the shutter switch SW2 is ON (S839), the process proceeds to S861.

システム制御回路50は、撮影した画像データを記憶可能な画像記憶バッファ領域がメモリ30にあるかどうかを判断し(S861)、メモリ30の画像記憶バッファ領域内に新たな画像データを記憶可能な領域が無いならば、出力部54を用いて画像や音声により所定の警告を行った後に(S862)、S802に戻る。ここで、メモリ30の画像記憶バッファ領域内に新たな画像データを記憶可能な領域が無い場合としては、例えば、メモリ30の画像記憶バッファ領域内に記憶可能な最大枚数の連写撮影を行った直後で、メモリ30から読み出して記憶媒体200或いは210に書き込むべき最初の画像がまだ記録媒体200或いは210に未記録な状態であり、まだ1枚の空き領域もメモリ30の画像記憶バッファ領域上に確保出来ない状態である場合等が挙げられる。   The system control circuit 50 determines whether or not the image storage buffer area capable of storing the captured image data is in the memory 30 (S861), and the area capable of storing new image data in the image storage buffer area of the memory 30. If there is no warning, a predetermined warning is issued by image or sound using the output unit 54 (S862), and the process returns to S802. Here, when there is no area capable of storing new image data in the image storage buffer area of the memory 30, for example, the maximum number of continuous shots that can be stored in the image storage buffer area of the memory 30 is performed. Immediately after, the first image to be read from the memory 30 and written to the storage medium 200 or 210 is not yet recorded on the recording medium 200 or 210, and one empty area still remains on the image storage buffer area of the memory 30. For example, there is a case where it cannot be secured.

なお、撮影した画像データを圧縮処理してからメモリ30の画像記憶バッファ領域に記憶する場合は、圧縮した後の画像データ量が圧縮モードの設定に応じて異なることを考慮して、記憶可能な領域がメモリ30の画像記憶バッファ領域上にあるかどうかをS861において判断することになる。   When the captured image data is stored in the image storage buffer area of the memory 30 after being subjected to the compression process, the image data can be stored in consideration of the fact that the amount of compressed image data differs according to the setting of the compression mode. In step S861, it is determined whether the area is on the image storage buffer area of the memory 30.

メモリ30に撮影した画像データを記憶可能な画像記憶バッファ領域があるならば(S861)、システム制御回路50は、撮像して所定時間蓄積した撮像信号を撮像素子12から読み出して、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器から直接メモリ制御回路22を介して、メモリ30の所定領域に撮影した画像データを書き込む撮影処理を実行する(S863)。この撮影処理S863の詳細は図6を用いて前述した通りである。   If there is an image storage buffer area capable of storing the captured image data in the memory 30 (S861), the system control circuit 50 reads out the image pickup signal that has been imaged and accumulated for a predetermined time from the image sensor 12, and performs A / D conversion. A photographing process for writing photographed image data in a predetermined area of the memory 30 is executed via the device 16, the image processing circuit 20, the memory control circuit 22, or directly from the A / D converter via the memory control circuit 22 ( S863). The details of the photographing process S863 are as described above with reference to FIG.

撮影処理S863を終えたならば、システム制御回路50は、前もってダーク取り込み処理S835において取り込んだダーク画像データを用いて撮影画像データに対して減算処理を行うことにより、撮像素子14の暗電流ノイズ等を打ち消すダーク補正演算処理を行う(S864)。   After the photographing process S863 is completed, the system control circuit 50 performs a subtraction process on the photographed image data by using the dark image data previously captured in the dark capturing process S835, thereby obtaining dark current noise or the like of the image sensor 14. Is performed (S864).

そして、システム制御回路50は、被写体画像をレンズユニット300を介して画像処理装置100の撮像素子14に結像する過程において生じた輝度シェーディング及び/或いは色シェーディングを補償するために、S841で決定した所定のシェーディング補正係数或いはシェーディング補正関数を用いて撮影画像データに対して乗算処理を行うことにより、シェーディング補正処理を行う(S865)。   Then, the system control circuit 50 determines in S841 in order to compensate for luminance shading and / or color shading generated in the process of forming the subject image on the image sensor 14 of the image processing device 100 via the lens unit 300. A shading correction process is performed by performing a multiplication process on the captured image data using a predetermined shading correction coefficient or shading correction function (S865).

さらに、システム制御回路50は、撮像素子14の画素の中で常に白いデータを出力する白点キズ及び或いは常に黒いデータを出力する黒点キズに係る画素を補償するために、点キズ位置検出処理S810で検出した撮像素子14の画素欠陥位置アドレスを参照しながら、キズ画素に隣接する画素の撮影画像データを用いて補間演算処理を行うことにより、点キズ補正処理を行う(S866)。   Further, the system control circuit 50 performs a point flaw position detection process S810 to compensate for a pixel related to a white point flaw that always outputs white data and / or a black point flaw that always outputs black data among the pixels of the image sensor 14. The point flaw correction process is performed by performing an interpolation calculation process using the photographed image data of the pixel adjacent to the flaw pixel while referring to the pixel defect position address of the image sensor 14 detected in step (S866).

このように、撮影に先立って、ダーク補正用画像データの取り込み、使用レンズの絞り値及び或いは焦点距離に応じたシェーディング補正係数或いはシェーディング補正関数の決定、点キズ補正のための撮像素子14の画素欠陥位置アドレスの検出をそれぞれ行い、撮影した画像データに対して、ダーク取り込み画像の滅算処理を行うダーク補正処理、シェーディング補正係数或いはシェーディング補正関数の乗算処理を行うシェーディング補正処理、キズ画素に隣接する画素の撮影画像データを用いた補間演算処理を行う点キズ補正処理を同時に或いは連続して行うことが可能となる。   As described above, prior to photographing, the image data for dark correction is captured, the shading correction coefficient or the shading correction function is determined according to the aperture value and / or the focal length of the lens to be used, and the pixels of the image sensor 14 for correcting point flaws. Detects a defect position address, performs dark correction processing for subtraction processing of a dark captured image on captured image data, shading correction processing for multiplying a shading correction coefficient or a shading correction function, and adjacent to a flaw pixel. It is possible to simultaneously or continuously perform the point flaw correction processing for performing the interpolation calculation processing using the photographed image data of the pixel to be processed.

これにより、シャッターレリーズタイムラグが少なく、且つ、ダーク補正、シェーディング補正、点キズ補正を行った良好な撮影画像データを得ることを可能とすることが出来る。   As a result, it is possible to obtain good photographed image data that has a small shutter release time lag and that has been subjected to dark correction, shading correction, and point flaw correction.

システム制御回路50は、メモリ30の所定領域へ書き込まれた画像データの一部をメモリ制御回路22を介して読み出して、現像処理を行うために必要なWB(ホワイトバランス)積分演算処理、OB(オプティカルブラック)積分演算処理を行い、演算結果をシステム制御回路50の内部メモリ或いはメモリ52に記憶する。   The system control circuit 50 reads out a part of the image data written in a predetermined area of the memory 30 through the memory control circuit 22 and performs a WB (white balance) integration operation process, OB ( (Optical black) Integral calculation processing is performed, and the calculation result is stored in the internal memory of the system control circuit 50 or the memory 52.

そして、システム制御回路50は、メモリ制御回路22、及び必要に応じて画像処理回路20を用いて、メモリ30の所定領域に書き込まれた撮影画像データを読み出して、システム制御回路50の内部メモリ或いはメモリ52に記憶した演算結果を用いて、AWB(オートホワイトバランス)処理、ガンマ変換処理、色変換処理を含む各種現像処理を行う(S867)。   Then, the system control circuit 50 reads out the captured image data written in a predetermined area of the memory 30 using the memory control circuit 22 and, if necessary, the image processing circuit 20, and reads out the internal memory of the system control circuit 50 or Using the calculation results stored in the memory 52, various development processes including AWB (auto white balance) process, gamma conversion process, and color conversion process are performed (S867).

そして、システム制御回路50は、メモリ30の所定領域に書き込まれた画像データを読み出して、設定したモードに応じた画像圧縮処理を圧縮・伸長回路32により行い(S868)、メモリ30の画像記憶バッファ領域の空き画像部分に、撮影して一連の処理を終えた画像データの書き込みを行う。   Then, the system control circuit 50 reads out the image data written in the predetermined area of the memory 30 and performs the image compression processing according to the set mode by the compression / decompression circuit 32 (S868). Image data that has been photographed and has undergone a series of processing is written in the free image portion of the area.

一連の撮影の実行に伴い、システム制御回路50は、メモリ30の画像記憶バッファ領域に記憶した画像データを読み出して、インタフェース90或いは94、コネクタ92或いは96を介して、メモリカードやコンパクトフラッシュ(登録商標)カード等の記録媒体200或いは210へ書き込みを行う記録処理を開始する(S869)。   With the execution of a series of photographing operations, the system control circuit 50 reads out the image data stored in the image storage buffer area of the memory 30 and sends the image data to a memory card or a compact flash (registered) via the interface 90 or 94 and the connector 92 or 96. The recording process for writing to the recording medium 200 or 210 such as a trademark card is started (S869).

この記録処理の開始は、メモリ30の画像記憶バッファ領域の空き画像部分に、撮影後に一連の処理を終えた画像データが新たに書込まれる都度、その画像データに対して実行される。   The start of the recording process is performed on the image data each time a series of processing-completed image data is newly written into the empty image portion of the image storage buffer area of the memory 30 after shooting.

なお、記録媒体200或いは210へ画像データの書き込みを行っている間、書き込み動作中であることを明示するために、出力部54において例えばLEDを点滅させる等の記録媒体書き込み動作表示を行う。   In addition, while the image data is being written to the recording medium 200 or 210, a recording medium writing operation display such as blinking of an LED is performed on the output unit 54 in order to clearly indicate that the writing operation is being performed.

次いで、システム制御回路50は、シャッタースイッチSW1がONであるか否かを判断する(S870)。そして、シャッタースイッチSW1がOFFであったならば(S870)、S802に戻る。一方、シャッタースイッチSW1がONであったならば(S870)、システム制御回路50はシステム制御回路50の内部メモリ或いはメモリ52に記憶されるAFモードフラグの状態を判断する(S871)。   Next, the system control circuit 50 determines whether or not the shutter switch SW1 is ON (S870). If the shutter switch SW1 is OFF (S870), the process returns to S802. On the other hand, if the shutter switch SW1 is ON (S870), the system control circuit 50 determines the state of the AF mode flag stored in the internal memory of the system control circuit 50 or the memory 52 (S871).

そして、ワンショットAFが設定されていたならば(S871)、新たにAF及びAEを行わずに連続して撮影を行うためにS839に戻り、次の撮影を行う。一方、サーボAFが設定されていたならば(S871)、連続してAF及びAEを行いながら撮影を行うためにS832に戻り、次の撮影を行う。   If the one-shot AF has been set (S871), the process returns to S839 to perform shooting continuously without performing new AF and AE, and performs the next shooting. On the other hand, if the servo AF has been set (S871), the process returns to S832 to perform shooting while performing AF and AE continuously, and performs the next shooting.

なお、この実施の形態では、モードダイアル60の設定に応じて点キズ位置検出処理ルーチン或いはシェーディングデータ設定処理ルーチンを実行するとして説明したが、工場モード等の特定の処理モードに設定した場合に点キズ位置検出処理ルーチン及び/或いはシェーディングデータ設定処理ルーチンを実行する構成としても問題ない。   In this embodiment, it has been described that the point flaw detection processing routine or the shading data setting processing routine is executed in accordance with the setting of the mode dial 60. There is no problem in the configuration for executing the scratch position detection processing routine and / or the shading data setting processing routine.

第1の実施の形態においては、電池交換の完了に伴う電源投入等がなされた時に前もって点キズ位置検出処理を行うと共に、レンズユニット300が装着された際に画像処理装置100内に格納するシェーディング補正係数或いはシェーディング補正関数のうち装着されたレンズユニット300に対応したシェーディング補正係数或いはシェーディング補正関数を用いてシェーディングデータの設定を行う画像処理装置100の動作例を説明した。   In the first embodiment, a point flaw position detection process is performed in advance when power is turned on upon completion of battery replacement, and shading stored in the image processing apparatus 100 when the lens unit 300 is mounted. The operation example of the image processing apparatus 100 for setting the shading data using the shading correction coefficient or the shading correction function corresponding to the mounted lens unit 300 among the correction coefficients or the shading correction functions has been described.

また、第2の実施の形態においては、電源スイッチ66が電源ONに設定された時に前もって点キズ位置検出処理を行うと共に、レンズユニット300が装着された際に画像処理装置100内に格納するシェーディング補正係数或いはシェーディング補正関数のうち装着されたレンズユニット300に対応したシェーディング補正係数或いはシェーディング補正関数を用いてシェーディングデータの設定を行う画像処理装置100の動作例を説明した。   Further, in the second embodiment, when the power switch 66 is set to power ON, the point defect position detection processing is performed in advance, and when the lens unit 300 is mounted, the shading stored in the image processing apparatus 100 is performed. The operation example of the image processing apparatus 100 for setting the shading data using the shading correction coefficient or the shading correction function corresponding to the mounted lens unit 300 among the correction coefficients or the shading correction functions has been described.

また、第3の実施の形態においては、所定期間が経過したならば前もって点キズ位置検出処理を行うと共に、レンズユニット300が装着された際にレンズユニット300内に格納するシェーディング補正係数或いはシェーディング補正関数を画像処理装置100に読み込んでシェーディングデータの設定を行う画像処理装置100の動作例を説明した。   In the third embodiment, when a predetermined period has elapsed, the point defect position detection processing is performed in advance, and the shading correction coefficient or the shading correction stored in the lens unit 300 when the lens unit 300 is mounted. The operation example of the image processing apparatus 100 in which the function is read into the image processing apparatus 100 and the shading data is set has been described.

また、第4の実施の形態においては、所定の点キズ位置検出モード選択時に前もって点キズ位置検出処理を行うと共に、所定のシェーディングデータ設定モード選択時に前もってシェーディングデータ設定処理を行う画像処理装置100の動作例を示した。   In the fourth embodiment, the image processing apparatus 100 performs the point flaw position detection processing in advance when the predetermined point flaw position detection mode is selected, and performs the shading data setting processing in advance when the predetermined shading data setting mode is selected. An operation example was shown.

しかし、以上は、本発明の適用例の一部に過ぎず、1つ実施の形態で述べた点キズ位置検出処理の開始条件と、他の実施の形態で述べたシェーディングデータ設定処理との開始条件とを組み合わせた実施の形態を採用することもできる。   However, the above is only a part of the application example of the present invention, and the start condition of the point flaw position detection process described in one embodiment and the start of the shading data setting process described in another embodiment are described. An embodiment in which conditions are combined may be adopted.

また、別の観点では、第1の実施の形態においては、SW1がONになって測距・測光処理を行った結果を用いてシェーディング補正値を決定する画像処理装置100の動作例を説明した。   From another viewpoint, in the first embodiment, an operation example of the image processing apparatus 100 that determines a shading correction value using a result of performing distance measurement and photometry processing when SW1 is turned on has been described. .

また、第2の実施の形態においては、測距・測光処理を行った結果を用いて、SW2がONになった後にシェーディング補正値を決定する画像処理装置100の動作例を説明した。   In the second embodiment, the operation example of the image processing apparatus 100 that determines the shading correction value after the SW2 is turned on using the result of the distance measurement and the photometry processing has been described.

しかし、以上は、本発明の適用例の一部に過ぎず、例えば、AFモードの設定に応じて、ワンショットAFモード設定時はSW1がONになって測距・測光処理を行った結果を用いてシェーディング補正値を決定し、サーボAFモード設定時は測距・測光処理を行った結果を用いてSW2がONになった後にシェーディング補正値を決定するようにしても良い。   However, the above is only a part of the application example of the present invention. For example, according to the setting of the AF mode, when the one-shot AF mode is set, SW1 is turned on and the result of the distance measurement and photometry processing is performed. The shading correction value may be determined using the result, and when the servo AF mode is set, the result of the distance measurement and photometry processing may be used to determine the shading correction value after the SW2 is turned on.

また、別の観点では、第1の実施の形態及び第2の実施の形態においては、画像処理装置100にレンズユニット300を装着した際にシェーディング補正データを設定するものとして説明した。また、第3の実施の形態においては、画像処理装置100にレンズユニット300を装着した際にシェーディング補正データを読み込むとして説明した。   Further, from another viewpoint, in the first embodiment and the second embodiment, it has been described that the shading correction data is set when the lens unit 300 is mounted on the image processing apparatus 100. Further, in the third embodiment, it has been described that the shading correction data is read when the lens unit 300 is mounted on the image processing apparatus 100.

しかし、以上は、本発明の適用例の一部に過ぎず、例えば、電池交換が行われた場合及び/或いは電源スイッチをON状態に設定した場合に、シェーディング補正データを設定或いは読み込むようにしてもよい。   However, the above is only a part of the application example of the present invention. For example, when the battery is replaced and / or the power switch is set to the ON state, the shading correction data is set or read. Is also good.

また、別の観点では、第3の実施の形態においては、画像処理装置100にレンズユニット300を装着した際にシェーディング補正データを読み込んで不揮発性メモリに格納するとして説明した。しかし、これは本発明の適用例の一部に過ぎず、例えば、レンズ300を装着する度にシェーディング補正データを読み込んで揮発性メモリに格納する構成としても問題無い。   Further, from another viewpoint, in the third embodiment, it has been described that when the lens unit 300 is mounted on the image processing apparatus 100, the shading correction data is read and stored in the nonvolatile memory. However, this is only a part of the application example of the present invention. For example, there is no problem even if the shading correction data is read and stored in the volatile memory every time the lens 300 is mounted.

ここで、上記の各実施の形態においては、シェーディング補正係数或いはシェーディング補正関数を用いて撮影画像データに対して乗算処理を行うことによりシェーディング補正処理を行うものとして説明した。この処理のより具体的な一例としては、撮影画像データの水平ライン方向と垂直ライン方向のそれぞれについて、1ライン分のシェーディング補正係数或いはシェーディング補正関数を用意し、これを用いて、撮影した画像データに対して、水平ライン方向の乗算処理と垂直ライン方向の乗算処理をそれぞれ行うことによりシェーディング補正処理を行うことが可能である。   Here, in each of the above-described embodiments, the description has been made assuming that the shading correction processing is performed by performing the multiplication processing on the captured image data using the shading correction coefficient or the shading correction function. As a more specific example of this processing, a shading correction coefficient or a shading correction function for one line is prepared for each of the horizontal line direction and the vertical line direction of the captured image data, and the captured image data is In contrast, by performing the multiplication process in the horizontal line direction and the multiplication process in the vertical line direction, the shading correction process can be performed.

また、上記の各実施の形態においては、シェーディングデータの設定処理ステップ或いはシェーディングデータの読み込み処理ステップにおいて、シェーディング補正係数或いはシェーディング補正関数を含むシェーディング補正データを設定するか、或いはレンズ300より読み込むものとして説明した。しかし、これは本発明の適用例の一部に過ぎず、例えば、JPEG圧縮等により画像圧縮したシェーディング補正画像データを画像伸長して設定してもよい。この場合、画像圧縮したシェーディング補正画像データをレンズ300より読み込んだ後に画像伸長するようにしてもよい。   Further, in each of the above embodiments, in the shading data setting processing step or the shading data reading processing step, the shading correction data including the shading correction coefficient or the shading correction function is set or read from the lens 300. explained. However, this is only a part of an application example of the present invention, and for example, shading correction image data that has been image-compressed by JPEG compression or the like may be set by expanding the image. In this case, the image may be expanded after the shading correction image data obtained by compressing the image is read from the lens 300.

このシェーディング補正画像データが、撮像素子14の画素サイズと同程度のデータ量である場合を想定すると、画像伸長に要する時間よりもデータ転送に要する時間が長い場合は、シェーディング補正画像データを画像圧縮して転送することにより、処理時間を大幅に削減することが可能となる。   Assuming that the shading correction image data has the same data amount as the pixel size of the image sensor 14, if the time required for data transfer is longer than the time required for image expansion, the shading correction image data is compressed. By performing the transfer, the processing time can be significantly reduced.

また、別の観点では、上記の各実施の形態においては、装着されたレンズユニット300に応じて設定し或いは読み込んだシェーディング補正係数或いはシェーディング補正関数からなるシェーディング補正データを用いて、被写体を撮影する際のレンズユニット300の絞り312の絞り値A及び/或いは被写体を撮影した際のレンズユニット300の焦点距離値Lに応じて、所定のシェーディング補正係数或いはシェーディング補正関数を選択して、これを用いて撮影画像データに対して乗算処理を行うことにより、最適な補正量のシェーディング補正処理を行うものとして説明した。   In another aspect, in each of the above embodiments, a subject is photographed using shading correction data that is set or read according to the mounted lens unit 300 or shading correction data including a shading correction function. A predetermined shading correction coefficient or a shading correction function is selected according to the aperture value A of the aperture 312 of the lens unit 300 and / or the focal length value L of the lens unit 300 at the time of photographing a subject. It has been described that the shading correction processing of the optimum correction amount is performed by performing the multiplication processing on the captured image data.

しかし、これは本発明の適用例の一部に過ぎず、例えば、レンズユニット300装着時に設定し或いは読み込んだシェーディングデータを基本シェーディング補正データとし、その基本シェーディング補正データに対して、被写体を撮影する際のレンズユニット300の絞り312の絞り値A及び/或いは被写体を撮影した際のレンズユニット300の焦点距離値Lに応じて、所定の補正係数を加算及び/或いは乗算し、これを用いて撮影画像データに対して乗算処理を行うことにより、最適な補正量のシェーディング補正処理を行うようにしてもよい。或いは、所定の補正係数を加算及び/或いは乗算して用いる代わりに、所定のシェーディング補正係数或いはシェーディング補正関数を選択すると共に所定の補正係数を加算及び/或いは乗算して用いても良い。また、別の観点では、上記の各実施の形態の説明においては、撮影処理を実行した際にダーク補正及びシェーディング補正及び点キズ補正を行うとして説明したが、撮影した画像データにそれぞれの補正データを添付するようにしても問題無い。ここで、撮影した画像データに、シェーディング補正係数或いはシェーディング補正関数を添付する、及び/或いは、点キズ補正を行うために撮像素子14の画素欠陥位置アドレスを添付するようにすれば、添付情報によって撮影画像ファイルのサイズが大きくなる度合を低くすることが可能である。この撮影画像フィルをコンピュータ等の再生装置を用いて再生する際に、添付されたシェーディング補正係数或いはシェーディング補正関数を用いてシェーディング補正処理を行い、また、添付された画素欠陥アドレスを用いて点キズ補正処理を行い、良好な画像データの再生表示を行うことが可能となる。   However, this is only a part of an application example of the present invention. For example, shading data set or read when the lens unit 300 is mounted is used as basic shading correction data, and a subject is photographed with respect to the basic shading correction data. A predetermined correction coefficient is added and / or multiplied according to the aperture value A of the aperture 312 of the lens unit 300 at the time and / or the focal length value L of the lens unit 300 at the time of photographing a subject, and photographing is performed using this. By performing a multiplication process on the image data, a shading correction process with an optimum correction amount may be performed. Alternatively, instead of using a predetermined correction coefficient by adding and / or multiplying it, a predetermined shading correction coefficient or a shading correction function may be selected and used by adding and / or multiplying a predetermined correction coefficient. Further, from another viewpoint, in the description of each of the above-described embodiments, it has been described that dark correction, shading correction, and point flaw correction are performed when the shooting processing is performed. There is no problem even if you attach. Here, if the shading correction coefficient or the shading correction function is attached to the photographed image data and / or the pixel defect position address of the image sensor 14 is attached for performing the point flaw correction, the attached information is used. It is possible to reduce the degree to which the size of the captured image file increases. When the captured image fill is reproduced using a reproducing device such as a computer, shading correction processing is performed using the attached shading correction coefficient or shading correction function, and a point defect is performed using the attached pixel defect address. By performing the correction processing, it is possible to reproduce and display good image data.

また、別の観点では、上記の第1の実施の形態及び第2の実施の形態においては、画像処理装置100にレンズユニット300を装着した際にシェーディング補正データを設定するものとして説明した。また、上記の第3の実施の形態においては、画像処理装置100にレンズユニット300を装着した際にシェーディング補正データを読み込むものとして説明した。しかし、以上は、本発明の適用例の一部に過ぎず、画像処理装置100にレンズユニット300を装着した際に、画像処理装置100にUSBやIEEE1394等の有線通信手段或いは無線通信手段或いはLAN等のネットワーク手段によって接続されたコンピュータ等の外部装置からシェーディング補正データを転送するようにしてもよい。   Further, from another viewpoint, in the above-described first and second embodiments, it has been described that the shading correction data is set when the lens unit 300 is mounted on the image processing apparatus 100. Further, in the above-described third embodiment, it has been described that the shading correction data is read when the lens unit 300 is mounted on the image processing apparatus 100. However, the above is only a part of the application example of the present invention. When the lens unit 300 is mounted on the image processing apparatus 100, the image processing apparatus 100 is connected to a wired communication unit such as USB or IEEE1394, a wireless communication unit, or a LAN. The shading correction data may be transferred from an external device such as a computer connected by a network means such as.

また、別の観点では、上記の各実施の形態において、ミラー130をミラーアップ位置、ミラーダウン位置に移動して撮影動作を行うとして説明したが、ミラー130をハーフミラーの構成として、これを移動せずに撮影動作を行う様にしてもよい。   Further, from another viewpoint, in each of the above embodiments, the description has been made assuming that the mirror 130 is moved to the mirror-up position and the mirror-down position to perform the photographing operation. The photographing operation may be performed without performing the operation.

記録媒体200及び210としては、PCMCIAカードやコンパクトフラッシュ(登録商標)等のメモリカード、ハードディスク等だけでなく、マイクロDAT、光磁気ディスク、CD−RやCD−WR等の光ディスク、DVD等の相変化型光ディスク等で構成してもよい。また、記録媒体200及び210は、メモリカードとハードディスク等が一体となった複合媒体であってもよいし、さらに、その複合媒体から一部が着脱可能な構成であってもよい。   The recording media 200 and 210 include not only memory cards such as PCMCIA cards and CompactFlash (registered trademark), hard disks, but also micro DATs, magneto-optical disks, optical disks such as CD-R and CD-WR, and DVDs. It may be constituted by a changeable optical disk or the like. Further, the recording media 200 and 210 may be a composite medium in which a memory card and a hard disk are integrated, or may have a configuration in which a part of the composite medium is detachable.

上記の実施の形態においては、記録媒体200及び210は、画像処理装置100と分離していて任意に接続可能なものとして説明したが、いずれか或いは全ての記録媒体が画像処理装置100に固定されていてもよい。   In the above embodiment, the recording media 200 and 210 are described as being separated from the image processing apparatus 100 and can be arbitrarily connected. However, any or all of the recording media are fixed to the image processing apparatus 100. May be.

また、画像処理装置100に記録媒体200或いは210が、単数或いは複数の任意の個数接続可能な構成であってもよい。   Further, the recording medium 200 or 210 may be connected to the image processing apparatus 100 singly or in an arbitrary number.

上記の実施の形態に置いては、画像処理装置100に記録媒体200及び210が装着する構成として説明したが、記録媒体は単数或いは複数の何れの組み合わせの構成であってもよい。   In the above-described embodiment, the configuration in which the recording media 200 and 210 are mounted on the image processing apparatus 100 has been described. However, the recording media may have a single configuration or a combination of a plurality of recording media.

なお、本発明は、複数の機器から構成されるシステムに適用しても、一つの機器からなる装置に適用してもよい。   The present invention may be applied to a system including a plurality of devices or to an apparatus including a single device.

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

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, after 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, the function is executed based on the instruction of the program code. It goes without saying that the CPU included in the expansion card or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

なお、本発明は、以上の各実施形態、または、それら技術要素を必要に応じて組み合わせるようにしてもよい。   In addition, the present invention may combine each of the above-described embodiments or their technical elements as needed.

また、本発明は、特許請求の範囲、または、実施の形態の構成の全体若しくは一部が、1つの装置を形成するものであっても、他の装置と結合するようなものであっても、装置を構成する要素となるようなものであってもよい。   In addition, the present invention may be applied to a case where all or a part of the configuration of the claims or the embodiment forms one device or is combined with another device. , Which may be a constituent element of the device.

また、本発明は、動画、又は、静止画を撮像する電子カメラ、銀塩フィルムを使用するカメラ、一眼レフカメラ、レンズシャッタカメラ、監視カメラ等、種々の形態のカメラ、更には、カメラ以外の撮像装置や、画像読取装置、光学装置、その他の装置、更には、それらカメラ、撮像装置、画像読取装置、光学装置、その他の装置に適用される装置、そして、これら装置を構成する要素、これら装置の制御方法、その制御方法を提供する記憶媒体等の媒体に対しても適用できるものである。   In addition, the present invention is an electronic camera that captures moving images or still images, a camera using a silver halide film, a single-lens reflex camera, a lens shutter camera, a surveillance camera, and various other types of cameras. Imaging devices, image reading devices, optical devices, other devices, and further, cameras, imaging devices, image reading devices, optical devices, devices applied to other devices, and elements constituting these devices, The present invention is also applicable to a control method of the apparatus and a medium such as a storage medium that provides the control method.

本発明の好適な実施の形態に係る画像処理装置(撮像装置)の構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of an image processing device (imaging device) according to a preferred embodiment of the present invention. 本発明の第1の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 4 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the first embodiment of the present invention. 本発明の第1の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 4 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the first embodiment of the present invention. 本発明の第1の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 4 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the first embodiment of the present invention. 本発明の各実施の形態に共通の測距・測光処理ルーチンのフローチャートである。5 is a flowchart of a ranging / photometry processing routine common to each embodiment of the present invention. 本発明の各実施の形態に共通の撮影処理ルーチンのフローチャートである。9 is a flowchart of a shooting processing routine common to each embodiment of the present invention. 本発明の各実施の形態に共通のダーク取り込み処理ルーチンのフローチャートである。7 is a flowchart of a dark capture processing routine common to each embodiment of the present invention. 本発明の各実施の形態に共通の点キズ位置検出処理ルーチンのフローチャートである。9 is a flowchart of a point flaw position detection processing routine common to each embodiment of the present invention. 本発明の第2の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 13 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the second embodiment of the present invention. 本発明の第2の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 13 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the second embodiment of the present invention. 本発明の第2の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 13 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the second embodiment of the present invention. 本発明の第3の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 14 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the third embodiment of the present invention. 本発明の第3の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 14 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the third embodiment of the present invention. 本発明の第3の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 14 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the third embodiment of the present invention. 本発明の第4の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 14 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the fourth embodiment of the present invention. 本発明の第4の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 14 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the fourth embodiment of the present invention. 本発明の第4の実施の形態に係る画像処理装置の主ルーチンのフローチャートの一部を示す図である。FIG. 14 is a diagram illustrating a part of a flowchart of a main routine of the image processing apparatus according to the fourth embodiment of the present invention.

符号の説明Explanation of reference numerals

12 シャッター
14 撮像素子
16 A/D変換器
18 タイミング発生回路
20 画像処理回路
22 メモリ制御回路
24 画像表示メモリ
26 D/A変換器
28 画像表示部
30 メモリ
32 画像圧縮・伸長回路
40 シャッター制御部
42 測距部
46 測光部
48 フラッシュ
50 システム制御回路
52 メモリ
54 出力部(表示部、スピーカ)
56 不揮発性メモリ
60 モードダイアルスイッチ
62 シャッタースイッチSW1
64 シャッタースイッチSW2
68 AFモードスイッチ
70 操作部
72 電源スイッチ
80 電源制御部
82 コネクタ
84 コネクタ
86 電源部
90 インターフェース
92 コネクタ
94 インタフェース
96 コネクタ
98 記録媒体着脱検知部
100 画像処理装置
104 光学ファインダ
106 レンズマウント
108 照明部
110 通信部
112 コネクタ(またはアンテナ)
120 インタフェース
122 コネクタ
124 レンズ着脱検知部
130 ミラー
132 ミラー
140 光電変換部
142 光電変換要素
144 電荷読み出し部
146 電極
148 温度測定部
200 記録媒体
202 記録部
204 インタフェース
206 コネクタ
210 記録媒体
212 記録部
214 インタフェース
216 コネクタ
300 レンズユニット
306 レンズマウント
310 撮影レンズ
312 絞り
320 インタフェース
322 コネクタ
340 露光制御部
342 測距制御部
344 ズーム制御部
350 レンズシステム制御回路
DESCRIPTION OF SYMBOLS 12 Shutter 14 Image sensor 16 A / D converter 18 Timing generation circuit 20 Image processing circuit 22 Memory control circuit 24 Image display memory 26 D / A converter 28 Image display unit 30 Memory 32 Image compression / expansion circuit 40 Shutter control unit 42 Distance measuring unit 46 Photometric unit 48 Flash 50 System control circuit 52 Memory 54 Output unit (display unit, speaker)
56 Non-volatile memory 60 Mode dial switch 62 Shutter switch SW1
64 Shutter switch SW2
68 AF mode switch 70 Operation unit 72 Power switch 80 Power control unit 82 Connector 84 Connector 86 Power supply unit 90 Interface 92 Connector 94 Interface 96 Connector 98 Recording medium attachment / detachment detection unit 100 Image processing device 104 Optical finder 106 Lens mount 108 Illumination unit 110 Communication Part 112 Connector (or antenna)
Reference Signs List 120 interface 122 connector 124 lens attachment / detachment detection unit 130 mirror 132 mirror 140 photoelectric conversion unit 142 photoelectric conversion element 144 charge readout unit 146 electrode 148 temperature measurement unit 200 recording medium 202 recording unit 204 interface 206 connector 210 recording medium 212 recording unit 214 interface 216 Connector 300 Lens unit 306 Lens mount 310 Photo lens 312 Aperture 320 Interface 322 Connector 340 Exposure control unit 342 Distance measurement control unit 344 Zoom control unit 350 Lens system control circuit

Claims (27)

撮像センサと、
前記撮像センサの画素欠陥位置を所定時間経過するごとに検出する検出手段と、
前記検出手段の検出結果を更新記憶する記憶手段と、
を有することを特徴とする撮像装置。
An imaging sensor;
Detecting means for detecting a pixel defect position of the image sensor each time a predetermined time elapses;
Storage means for updating and storing the detection result of the detection means,
An imaging device comprising:
前記検出手段の検出結果により前記撮像センサが撮像した画像を補正する補正手段を有することを特徴とする請求項1記載の撮像装置。   2. The imaging apparatus according to claim 1, further comprising a correction unit configured to correct an image captured by the imaging sensor based on a detection result of the detection unit. 前記検出手段の検出結果を前記撮像センサが撮像した画像と共に記録媒体に記録する記録手段を有することを特徴とする請求項1又は2記載の撮像装置。   The imaging apparatus according to claim 1, further comprising a recording unit configured to record a detection result of the detection unit together with an image captured by the imaging sensor on a recording medium. 撮像センサと、
前記撮像センサの画素欠陥位置を所定撮影回数ごとに検出する検出手段と、
前記検出手段の検出結果を更新記憶する記憶手段と、
を有することを特徴とする撮像装置。
An imaging sensor;
Detecting means for detecting a pixel defect position of the image sensor every predetermined number of times of imaging,
Storage means for updating and storing the detection result of the detection means,
An imaging device comprising:
前記検出手段の検出結果により前記撮像センサが撮像した画像を補正する補正手段を有することを特徴とする請求項4記載の撮像装置。   The imaging apparatus according to claim 4, further comprising a correction unit configured to correct an image captured by the imaging sensor based on a detection result of the detection unit. 前記検出手段の検出結果を前記撮像センサが撮像した画像と共に記録媒体に記録する記録手段を有することを特徴とする請求項4又は5記載の撮像装置。   The imaging apparatus according to claim 4, further comprising a recording unit configured to record a detection result of the detection unit together with an image captured by the imaging sensor on a recording medium. 撮像センサと、
前記撮像センサの画素欠陥位置を検出する検出手段と、前記検出手段の検出結果を前記撮像センサが撮像した画像と共に記録媒体に記録する記録手段とを有することを特徴とする撮像装置。
An imaging sensor;
An imaging apparatus, comprising: a detection unit that detects a pixel defect position of the imaging sensor; and a recording unit that records a detection result of the detection unit together with an image captured by the imaging sensor on a recording medium.
撮像光学系を交換装着可能な撮像装置において、撮影開始を指示する操作手段と、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を前記操作手段が操作される前に取得する特定情報取得手段とを有することを特徴とする撮像装置。   In an imaging device in which an imaging optical system can be exchangeably mounted, an operation unit for instructing start of imaging, and information for specifying the mounted imaging optical system for shading correction of a captured image related to the mounted imaging optical system. An imaging apparatus comprising: a specific information acquisition unit that acquires before the operation unit is operated. 前記操作手段は、第1段階の操作により撮影準備を指示し、第2段階の操作により撮影開始を指示するように構成され、前記特定情報取得手段は、前記操作手段の前記第1段階の操作が行われる前に前記撮像光学系を特定する情報を取得することを特徴とする請求項8記載の撮像装置。   The operation unit is configured to instruct shooting preparation by a first-stage operation, and to start shooting by a second-stage operation, and the specific information acquisition unit is configured to operate the first-stage operation of the operation unit. 9. The image pickup apparatus according to claim 8, wherein information for specifying the image pickup optical system is acquired before the image pickup is performed. 前記特定情報取得手段は、装着される撮像光学系から該撮像光学系を特定する情報を取得することを特徴とする請求項8又は9記載の撮像装置。   The imaging apparatus according to claim 8, wherein the identification information acquisition unit acquires information for identifying the imaging optical system from the imaging optical system to be mounted. 撮像光学系が装着されることを検知する検知手段を有し、前記特定情報取得手段は、前記検知手段が前記撮像光学系の装着されることを検知することに応答して前記撮像光学系を特定する情報を取得することを特徴とする請求項8〜10のいずれかに記載の撮像装置。   Detecting means for detecting that the imaging optical system is mounted, wherein the specific information acquisition means detects the mounting of the imaging optical system in response to the detection means detecting that the imaging optical system is mounted. The imaging device according to claim 8, wherein information to be specified is acquired. 前記特定情報取得手段が取得した前記撮像光学系を特定する情報に基づくシェーディング補正のためのデータにより撮影画像を補正する補正手段を有することを特徴とする請求項8〜11のいずれかに記載の撮像装置。   12. The image processing apparatus according to claim 8, further comprising a correction unit configured to correct a captured image using data for shading correction based on the information specifying the imaging optical system acquired by the specific information acquisition unit. Imaging device. 前記特定情報取得手段が取得した前記撮像光学系を特定する情報に基づくシェーディング補正のためのデータを撮影画像と共に記録媒体に記録する記録手段を有することを特徴とする請求項8〜11のいずれかに記載の撮像装置。   12. A recording unit according to claim 8, further comprising a recording unit that records data for shading correction based on the information specifying the imaging optical system acquired by the specific information acquiring unit together with a captured image on a recording medium. An imaging device according to item 1. 撮像光学系を交換装着可能な撮像装置において、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を取得する特定情報取得手段と、前記特定情報取得手段が取得した前記撮像光学系を特定する情報に基づくシェーディング補正のためのデータを撮影画像と共に記録媒体に記録する記録手段とを有することを特徴とする撮像装置。   In an imaging device capable of replacing the imaging optical system, in order to perform shading correction of a captured image related to the mounted imaging optical system, specific information acquisition means for acquiring information for specifying the mounted imaging optical system, An image capturing apparatus comprising: a recording unit configured to record data for shading correction based on information specifying the imaging optical system acquired by the specific information acquiring unit on a recording medium together with a captured image. 撮影画像のシェーディング補正のための情報を取得する情報取得手段と、前記情報取得手段が取得した前記シェーディング補正のための情報を撮影画像と共に記録媒体に記録する記録手段とを有することを特徴とする撮像装置。   An information acquisition unit for acquiring information for shading correction of a photographed image, and a recording unit for recording the information for shading correction acquired by the information acquisition unit on a recording medium together with the photographed image. Imaging device. 撮像センサの画素欠陥位置を所定時間経過するごとに検出し、前記検出結果を更新記憶することを特徴とする撮像装置の制御方法。   A method for controlling an imaging apparatus, comprising: detecting a pixel defect position of an imaging sensor every time a predetermined time elapses; and updating and storing the detection result. 撮像センサの画素欠陥位置を所定撮影回数ごとに検出し、前記検出結果を更新記憶することを特徴とする撮像装置の制御方法。   A method for controlling an image pickup apparatus, comprising: detecting a pixel defect position of an image sensor every predetermined number of times of photographing; and updating and storing the detection result. 撮像センサの画素欠陥位置を検出し、該検出結果を前記撮像センサが撮像した画像と共に記録媒体に記録することを特徴とする撮像装置の制御方法。   A method for controlling an imaging device, comprising: detecting a pixel defect position of an imaging sensor; and recording the detection result together with an image captured by the imaging sensor on a recording medium. 撮像光学系を交換装着可能な撮像装置の制御方法において、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を撮影開始を指示する操作手段が操作される前に取得することを特徴とする撮像装置の制御方法。   In a control method of an imaging apparatus in which an imaging optical system can be exchangeably mounted, an operation of instructing to start capturing information for specifying the mounted imaging optical system for shading correction of a captured image related to the mounted imaging optical system. A method for controlling an imaging device, wherein the method is obtained before a unit is operated. 撮像光学系を交換装着可能な撮像装置の制御方法において、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を取得し、該取得した前記撮像光学系を特定する情報に基づくシェーディング補正のためのデータを撮影画像と共に記録媒体に記録することを特徴とする撮像装置の制御方法。   In the control method of the imaging device capable of replacing the imaging optical system, in order to perform shading correction of a captured image relating to the mounted imaging optical system, information for identifying the mounted imaging optical system is acquired, and the acquired A method for controlling an imaging apparatus, comprising: recording data for shading correction based on information for specifying the imaging optical system in a recording medium together with a captured image. 撮影画像のシェーディング補正のための情報を取得し、該取得した前記シェーディング補正のための情報を撮影画像と共に記録媒体に記録することを特徴とする撮像装置の制御方法。   A method for controlling an imaging apparatus, comprising: acquiring information for shading correction of a captured image, and recording the acquired information for shading correction on a recording medium together with the captured image. 撮像センサの画素欠陥位置を所定時間経過するごとに検出する内容と、前記検出結果を更新記憶する内容とを有することを特徴とする撮像装置の制御プログラムを提供する媒体。   A medium for providing a control program for an imaging device, comprising: a content for detecting a pixel defect position of an imaging sensor every time a predetermined time elapses; and a content for updating and storing the detection result. 撮像センサの画素欠陥位置を所定撮影回数ごとに検出する内容と、
前記検出結果を更新記憶する内容とを有することを特徴とする撮像装置の制御プログラムを提供する媒体。
Contents for detecting a pixel defect position of the image sensor every predetermined number of times of imaging,
A medium for providing a control program for an imaging apparatus, comprising: contents for updating and storing the detection result.
撮像センサの画素欠陥位置を検出し、該検出結果を前記撮像センサが撮像した画像と共に記録媒体に記録する内容を有することを特徴とする撮像装置の制御プログラムを提供する媒体。   A medium for providing a control program for an imaging device, characterized by detecting a pixel defect position of an imaging sensor and recording the detection result together with an image captured by the imaging sensor on a recording medium. 撮像光学系を交換装着可能な撮像装置の制御プログラムを提供する媒体において、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を撮影開始を指示する操作手段が操作される前に取得する内容を有することを特徴とする撮像装置の制御プログラムを提供する媒体。   In a medium that provides a control program for an imaging device capable of replacing and mounting an imaging optical system, information for specifying the mounted imaging optical system is started for shading correction of a captured image related to the mounted imaging optical system. A medium for providing a control program for an imaging apparatus, characterized in that the medium has content to be acquired before an operation means for instructing is performed. 撮像光学系を交換装着可能な撮像装置の制御プログラムを提供する媒体において、装着される撮像光学系に係る撮影画像のシェーディング補正のために、該装着される撮像光学系を特定する情報を取得し、該取得した前記撮像光学系を特定する情報に基づくシェーディング補正のためのデータを撮影画像と共に記録媒体に記録する内容を有することを特徴とする撮像装置の制御プログラムを提供する媒体。   In a medium that provides a control program of an imaging device capable of replacing and mounting an imaging optical system, information for specifying the mounted imaging optical system is acquired for shading correction of a captured image related to the mounted imaging optical system. A medium for providing a control program for an imaging apparatus, characterized in that data for shading correction based on the acquired information specifying the imaging optical system is recorded together with a captured image on a recording medium. 撮影画像のシェーディング補正のための情報を取得し、該取得した前記シェーディング補正のための情報を撮影画像と共に記録媒体に記録する内容を有することを特徴とする撮像装置の制御プログラムを提供する媒体。
A medium for providing a control program for an imaging apparatus, characterized by acquiring information for shading correction of a captured image, and recording the acquired information for shading correction on a recording medium together with the captured image.
JP2004161583A 1999-06-09 2004-05-31 Image processing apparatus, control method thereof, and memory medium Withdrawn JP2004304833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004161583A JP2004304833A (en) 1999-06-09 2004-05-31 Image processing apparatus, control method thereof, and memory medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP16297599 1999-06-09
JP2004161583A JP2004304833A (en) 1999-06-09 2004-05-31 Image processing apparatus, control method thereof, and memory medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2000173488A Division JP2001057656A (en) 1999-06-09 2000-06-09 Image processing unit, its control method and memory medium

Publications (1)

Publication Number Publication Date
JP2004304833A true JP2004304833A (en) 2004-10-28

Family

ID=33421070

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004161583A Withdrawn JP2004304833A (en) 1999-06-09 2004-05-31 Image processing apparatus, control method thereof, and memory medium

Country Status (1)

Country Link
JP (1) JP2004304833A (en)

Similar Documents

Publication Publication Date Title
JP4378341B2 (en) Imaging apparatus and correction method
JP4532819B2 (en) Imaging device
JP2005045552A (en) Imaging device and its method
JP4845256B2 (en) Image processing device
JP2001028713A (en) Image processing unit, its control method and memory medium
JP5094665B2 (en) Imaging apparatus, control method thereof, and program
JP2001057656A (en) Image processing unit, its control method and memory medium
JP4819479B2 (en) Imaging apparatus and image data correction method
JP2013038657A (en) Image processor and image processing method
JP3605084B2 (en) Image data correction device, image processing device, image data correction method, program, and storage medium
JP3359310B2 (en) Imaging device, image processing device, image processing method, and storage medium
JP2003333434A (en) Device and method for picking-up image, program, and recording medium
JP4393177B2 (en) Imaging apparatus and imaging method
JP4411053B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM
JP3703436B2 (en) Image processing apparatus, image processing method, and program
JP2006148794A (en) Imaging apparatus, correction processing method, correction processing program and storage medium
JP2005333620A (en) Image processing apparatus and image processing method
JP2006109162A (en) Imaging apparatus, imaging method, program, and storage medium
JP2004304833A (en) Image processing apparatus, control method thereof, and memory medium
JP2020043398A (en) Imaging device and control method thereof, program, and storage medium
JP2005051697A (en) Imaging apparatus
JP3359314B2 (en) Imaging device, image processing device, image processing method, and storage medium
JP2005057691A (en) Imaging apparatus and method
JP2006203665A (en) Imaging device and method therefor, and recording medium and program
JP5028467B2 (en) Image processing device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070904