JP2006254388A - Imaging apparatus and program - Google Patents

Imaging apparatus and program Download PDF

Info

Publication number
JP2006254388A
JP2006254388A JP2005072051A JP2005072051A JP2006254388A JP 2006254388 A JP2006254388 A JP 2006254388A JP 2005072051 A JP2005072051 A JP 2005072051A JP 2005072051 A JP2005072051 A JP 2005072051A JP 2006254388 A JP2006254388 A JP 2006254388A
Authority
JP
Japan
Prior art keywords
data
imaging
defect position
image
defect
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
JP2005072051A
Other languages
Japanese (ja)
Inventor
Tatsutoshi Kitajima
達敏 北島
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2005072051A priority Critical patent/JP2006254388A/en
Publication of JP2006254388A publication Critical patent/JP2006254388A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an imaging apparatus capable of simply correcting defective pixels of its CCD. <P>SOLUTION: A nonvolatile memory 17 built in a camera stores binary compressed defective position data for denoting positions of defective pixels. The data size is small because the data are binary compressed data. When a photographer executes photographing, imaged data by the CCD 3 are stored in a memory 9. On the other hand, the binary compressed defective position data stored in the built-in nonvolatile memory 17 are expanded by a DSP section 5 and thereafter the expanded data are stored in the memory 9. In the expanded binary data, luminance data at addresses of nondefective pixels are zero, and luminance data at addresses of defective pixels are 255. Then defective position (X, Y) is searched from the CCD imaged data in the memory 9 on the basis of the defective correction luminance data and pixel data at X, Y coordinates on the CCD imaged data are corrected. In the correction method, values of coordinates (X+2, Y) of the CCD imaged data are overwritten onto the data at the coordinates (X, Y), for example. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、撮像装置及びプログラムに関し、特に、画素欠陥補正機能を有するデジタルスチルカメラ等の撮像装置及びこの撮像装置で用いられるプログラムに関する。   The present invention relates to an imaging apparatus and a program, and more particularly to an imaging apparatus such as a digital still camera having a pixel defect correction function and a program used in the imaging apparatus.

現在のデジタルスチルカメラに使用されるCCDは300万画素を超えるものがある。一方、半導体の製造工程では、CCDの全ての画素が完全に同一性能で形成されるわけではなく、不良画素もできてしまう。しかし、製品の歩留まり上である程度の個数の不良画素があっても、良品のCCDとしてデジタルスチルカメラなどの商品に使用されるのが一般的である。商品側では、その不良画素のCCD上の縦横座標(アドレス)を、あらかじめ商品内のROM等に格納しておき、撮影時に撮像データの不良アドレスにあたる位置のデータを、隣接する同じカラーフィルタの画素の値に置き換え、その後、静止画画像処理をするなどの補正処理が実施される。   Some CCDs used in current digital still cameras have more than 3 million pixels. On the other hand, in the semiconductor manufacturing process, not all pixels of the CCD are formed with completely the same performance, and defective pixels are also formed. However, even if there is a certain number of defective pixels in the product yield, it is generally used as a good CCD for products such as digital still cameras. On the product side, the vertical and horizontal coordinates (address) on the CCD of the defective pixel are stored in advance in a ROM or the like in the product, and the data at the position corresponding to the defective address of the imaging data at the time of shooting is stored in the adjacent pixel of the same color filter Then, correction processing such as still image processing is performed.

また、上述の不良画素とは別に、暗電流特性の悪い画素も存在する。これは通常1秒程度の露光では、問題とならないが、露光時間が長くなるに従って暗電流の増加が大きい画素であり、それが画像データに重畳され、輝点となって見える。夜景撮影などの長時間露光撮影で点々の星状のノイズがこれである。不良画素は 300万画素のCCDに対して60個程度であり、個々の不良画素のアドレスをROMに持っておくことができる。しかし、暗電流による欠陥画素は、露光秒時などの撮影パラメータによって補正しなければならない。また、4秒露光などでは欠陥画素の個数は、例えば300万画素の2%であっても、6万画素になり、その数は膨大である。   In addition to the above-described defective pixels, there are also pixels with poor dark current characteristics. This is usually not a problem for exposure of about 1 second, but is a pixel with a large increase in dark current as the exposure time increases, and it is superimposed on the image data and appears as a bright spot. This is a star-shaped noise in long exposure photography such as night view photography. There are about 60 defective pixels for a 3 million pixel CCD, and the address of each defective pixel can be stored in the ROM. However, defective pixels due to dark current must be corrected by imaging parameters such as exposure time. In addition, in the case of 4-second exposure, the number of defective pixels is 60,000 pixels even if 2% of 3 million pixels, for example, and the number is enormous.

従来より、欠陥画素アドレスなどの補正をするための膨大なデータを着脱可能な外部記録媒体に格納するようにした技術が提案されている(特許文献1)。また、CCDの画面を分割し、画面位置と欠陥レベルに応じて、優先順位をつけて補正情報を記憶手段に記憶するようにした技術が提案されている(特許文献2)。
特許第3235204号公報 特開2000−115644号公報
Conventionally, a technique has been proposed in which a huge amount of data for correcting a defective pixel address or the like is stored in a removable external recording medium (Patent Document 1). In addition, a technique has been proposed in which a CCD screen is divided, and correction information is stored in a storage unit with priority according to the screen position and defect level (Patent Document 2).
Japanese Patent No. 3235204 JP 2000-115644 A

しかしながら、着脱可能な記録媒体を紛失する可能性等の問題があり、CCDとその補正情報は、本来は撮像装置と一体的に持つのが理想である。また、補正情報を利用する技術では、補正用での独立の機能が必要となり、構成が複雑になる等の問題があった。
本発明は、CCDの欠陥画素を簡単に補正することのできる撮像装置を得ることを課題とする。
However, there is a problem such as the possibility of losing a removable recording medium, and it is ideal that the CCD and its correction information are originally integrated with the imaging device. Further, the technique using the correction information has a problem that an independent function for correction is required and the configuration is complicated.
An object of the present invention is to obtain an imaging device that can easily correct a defective pixel of a CCD.

請求項1記載の発明は、被写体像を撮像し撮像データを出力する撮像手段と、前記撮像手段における撮像素子の欠陥画素がある位置とない位置を2値で示す欠陥位置2値圧縮データを記憶する記憶手段と、前記記憶された欠陥位置2値圧縮データを伸長する伸長手段と、前記伸長された欠陥位置2値データに基づいて前記撮像データにおける欠陥画素データを補正する補正手段とを備えることを特徴とする撮像装置である。   According to the first aspect of the present invention, an image pickup unit that picks up an image of a subject and outputs image pickup data, and defect position binary compressed data that indicates the position where the defective pixel of the image pickup element is located and the position where there is no defect in the image pickup means in binary. Storage means for performing, decompression means for decompressing the stored defect position binary compressed data, and correction means for correcting defective pixel data in the imaging data based on the decompressed defect position binary data. An imaging device characterized by the above.

請求項2記載の発明は、請求項1記載の装置において、前記補正手段は、前記伸長された欠陥位置2値データに基づいて前記撮像データにおける前記欠陥画素の位置を検出し、検出された位置の欠陥画素データをその画素近傍の画素データで補正することを特徴とする。
請求項3記載の発明は、請求項1又は2記載の装置において、前記記憶手段は、複数の前記欠陥位置2値圧縮データを記憶し、前記補正手段は、撮像時の撮像パラメータに応じて使用する前記複数の欠陥位置2値圧縮データのうちの1つを用いることを特徴とする。
According to a second aspect of the present invention, in the apparatus according to the first aspect, the correction means detects a position of the defective pixel in the imaging data based on the expanded defect position binary data, and a detected position. The defective pixel data is corrected with pixel data in the vicinity of the pixel.
According to a third aspect of the present invention, in the apparatus according to the first or second aspect, the storage unit stores a plurality of the defect position binary compressed data, and the correction unit is used according to an imaging parameter at the time of imaging. One of the plurality of defect position binary compressed data is used.

請求項4記載の発明は、請求項3記載の装置において、前記複数の前記欠陥位置2値圧縮データは、前記撮像時の撮像パラメータとしての露光時間に応じて設定され、前記補正手段は、前記露光時間に応じて使用する前記複数の欠陥位置2値圧縮データのうちの1つを用いることを特徴とする。
請求項5記載の発明は、請求項4記載の装置において、前記記憶手段は、前記撮像素子の欠陥画素の座標を示す欠陥座標データを記憶し、前記補正手段は、前記欠陥位置2値圧縮データと前記欠陥座標データの何れかを前記撮像時の撮像パラメータに応じて用いることを特徴とする。
According to a fourth aspect of the present invention, in the apparatus according to the third aspect, the plurality of defect position binary compressed data is set in accordance with an exposure time as an imaging parameter at the time of imaging, and the correcting means One of the plurality of defect position binary compressed data used in accordance with an exposure time is used.
According to a fifth aspect of the present invention, in the apparatus according to the fourth aspect, the storage unit stores defect coordinate data indicating coordinates of a defective pixel of the image sensor, and the correction unit stores the defect position binary compressed data. And the defect coordinate data are used according to an imaging parameter at the time of imaging.

請求項6記載の発明は、請求項1記載の装置において、全ての画素データを輝度ゼロのデータとするプレーン画像を作成する作成手段と、前記撮像データの各画素データを所定の閾値と比較し、前記閾値以上の画素データを欠陥画素データとして前記プレーン画像における該当位置のデータを所定の輝度に置き換え、置き換えられたプレーン画像データを2値圧縮処理し、処理されたデータを前記欠陥位置2値圧縮データとして作成する欠陥位置2値圧縮データ作成手段とを設けたことを特徴とする。   According to a sixth aspect of the present invention, in the apparatus according to the first aspect of the present invention, a creation unit that creates a plane image in which all pixel data is data having zero brightness, and each pixel data of the imaging data is compared with a predetermined threshold value. , Pixel data equal to or greater than the threshold is used as defective pixel data, data at a corresponding position in the plane image is replaced with a predetermined luminance, the replaced plane image data is subjected to binary compression processing, and the processed data is converted into the defect position binary data. Defect position binary compressed data creating means for creating compressed data is provided.

請求項7記載の発明は、被写体像を撮像し撮像データを出力する撮像処理と、前記撮像処理における撮像素子の欠陥画素がある位置とない位置を2値で示す欠陥位置2値圧縮データを記憶手段から読み出す読み出し処理と、読み出された欠陥位置2値圧縮データを伸長する伸長処理と、前記伸長された欠陥位置2値データに基づいて前記撮像データにおける欠陥画素データを補正する補正処理とをコンピュータに実行させるプログラムである。   According to a seventh aspect of the present invention, an image pickup process for picking up a subject image and outputting image pickup data, and defect position binary compressed data indicating in binary the position where the defective pixel of the image pickup element in the image pickup process is present and absent are stored. A reading process to be read from the means, an expansion process to expand the read defect position binary compressed data, and a correction process to correct defective pixel data in the imaging data based on the expanded defect position binary data A program to be executed by a computer.

請求項8記載の発明は、請求項7記載のプログラムにおいて、前記欠陥位置2値圧縮データは複数あり、前記補正処理により、撮像時の撮像パラメータに応じて使用する前記複数の欠陥位置2値圧縮データのうち1つを用いることを特徴とする。
請求項9記載の発明は、請求項7記載のプログラムにおいて、前記撮像素子の欠陥画素の座標を示す欠陥座標データを記憶手段から読み出す読み出し処理をコンピュータに実行させると共に、前記補正処理により、前記欠陥位置2値圧縮データと前記欠陥座標データの何れかを前記撮像時の撮像パラメータに応じて用いることを特徴とする。
The invention according to claim 8 is the program according to claim 7, wherein the defect position binary compression data is plural, and the plurality of defect position binary compression used according to the imaging parameters at the time of imaging by the correction process. One of the data is used.
According to a ninth aspect of the present invention, in the program according to the seventh aspect, the computer executes a read process for reading out the defect coordinate data indicating the coordinates of the defective pixel of the image sensor from a storage unit, and the defect process causes the defect to be detected. One of the position binary compressed data and the defect coordinate data is used according to the imaging parameter at the time of imaging.

請求項10記載の発明は、請求項7記載のプログラムにおいて、全ての画素データを輝度ゼロのデータとするプレーン画像を作成する作成処理と、前記撮像データの各画素データを所定の閾値と比較する比較処理と、前記閾値以上の画素データを欠陥画素データとして前記プレーン画像における該当位置のデータを所定の輝度に置き換える置き換え処理と、前記置き換えられたプレーン画像データを2値圧縮処理する圧縮処理と、前記圧縮処理されたデータを前記欠陥位置2値圧縮データとして記憶手段に記憶する欠陥位置2値圧縮データ作成処理とをコンピュータに実行させることを特徴とする。   According to a tenth aspect of the present invention, in the program according to the seventh aspect, a creation process for creating a plane image in which all pixel data is data having zero brightness, and each pixel data of the imaging data is compared with a predetermined threshold value. A comparison process, a replacement process in which pixel data equal to or greater than the threshold is defective pixel data, the data at a corresponding position in the plane image is replaced with a predetermined luminance, and a compression process in which the replaced plane image data is subjected to a binary compression process; A defect position binary compressed data creation process for storing the compressed data as the defect position binary compressed data in a storage means is executed by a computer.

請求項1又は2の発明によれば、欠陥画素のアドレス情報を示す欠陥位置2値圧縮データはデータ量が少ないので、容量の小さいメモリに格納して撮像装置内に保持することができる。また、補正画素個数の多い暗電流についての欠陥補正も可能となる。また、カメラの文字画像再生機能を利用できるので、効率的な補正を行うことができる。特に長時間の露出で撮影する必要がある場合に有効である。
請求項3又は4の発明によれば、暗電流欠陥画素の個数に応じた適当な個数の補正が可能である。
According to the first or second aspect of the invention, since the defect position binary compressed data indicating the address information of the defective pixel has a small data amount, it can be stored in the memory having a small capacity and held in the imaging apparatus. Further, defect correction can be performed for dark current with a large number of correction pixels. In addition, since the character image reproduction function of the camera can be used, efficient correction can be performed. This is particularly effective when it is necessary to shoot with a long exposure.
According to the third or fourth aspect of the invention, an appropriate number of corrections can be made according to the number of dark current defective pixels.

請求項5の発明によれば、通常撮影時には不良欠陥を短時間で補正し、露光時間の長い撮影ではより多くの暗電流欠陥を補正することができ、効率的補正が可能である。また 補正時間についても、撮影時間に応じて行われるため、違和感がない。
請求項6の発明によれば、カメラの文字画像撮影機能を利用できるので、欠陥位置2値圧縮データを効率的に撮像装置自身で作成することができる。また、ユーザの所望の露光時間に応じた欠陥位置2値圧縮画像データを作成することができる。
According to the fifth aspect of the present invention, defective defects can be corrected in a short time during normal imaging, and more dark current defects can be corrected in imaging with a long exposure time, enabling efficient correction. Also, the correction time is performed according to the shooting time, so there is no sense of incongruity.
According to the invention of claim 6, since the character image photographing function of the camera can be used, the defect position binary compressed data can be efficiently created by the imaging apparatus itself. Also, it is possible to create defect position binary compressed image data according to the user's desired exposure time.

以下、本発明の実施形態を図面と共に説明する。
図1は本発明の実施形態に係るデジタルカメラの構成を示すブロック図である。
本実施形態は、2値画像撮影、再生機能を持つ撮像装置であって、欠陥アドレス情報を、2値圧縮画像として装置内に持つことにより、多くの欠陥画素を簡単に補正できるようにしたものである。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a digital camera according to an embodiment of the present invention.
The present embodiment is an imaging apparatus having a binary image capturing and reproducing function, and has defect address information in the apparatus as a binary compressed image so that many defective pixels can be easily corrected. It is.

図1において、1はレンズ、2はメカニカルシャッタ、3は撮像素子としてのCCD、
4はCCD3の撮像信号を相関2重サンプリング及びA/D変換するCDS・AD部、5はA/D変換されたデジタル信号を輝度信号Y、色差信号U,Vに変換し、そのYUVデータをJPEG圧縮するDSP部(デジタル信号処理部)、6はメカニカル部を駆動するメカドライバ部で、レンズ1を駆動するフォーカス駆動と、シャッタ2の開閉制御を行う。7はCCD駆動部、8はカメラ全体を制御するCPU、9は撮像した画像データ、ファイルからのリードデータを一時保持するメモリ、10はカメラ外部との通信ドライバ部、11はカメラに着脱可能なメモリカードである。
In FIG. 1, 1 is a lens, 2 is a mechanical shutter, 3 is a CCD as an image sensor,
4 is a CDS / AD unit that performs correlated double sampling and A / D conversion on the image pickup signal of the CCD 3, and 5 is a digital signal that has been A / D converted, converted into a luminance signal Y and color difference signals U and V, and the YUV data is converted. A DSP unit (digital signal processing unit) 6 for JPEG compression and a mechanical driver unit 6 for driving the mechanical unit perform focus driving for driving the lens 1 and opening / closing control of the shutter 2. 7 is a CCD drive unit, 8 is a CPU for controlling the entire camera, 9 is imaged image data, memory for temporarily storing read data from a file, 10 is a communication driver unit for the outside of the camera, and 11 is removable from the camera It is a memory card.

12はDSP部5で処理された画像信号をLCD表示可能に変換する表示コントローラ及び変換された信号を表示するLCDを有する表示部、13はシャッタ釦等のユーザが操作するスイッチ部、14はカメラに撮像される外部装置Iで、例えばカメラ本体内の電池を充電する充電回路を内蔵する。この外部装置Iに表示装置があれば、上記表示部12が無い場合もある。15は外部装置Iに接続される外部装置IIで、例えばPC(パソコン)である。16は音声CODECで、入力アナログ部18(例えばマイクロフォン)からのアナログ音声信号をA/D変換してDSP部5に入力したり、DSP部5からのデジタル音声信号をD/A変換して出力アナログ部19(例えばスピーカ)に出力する。17は撮影した画像ファイル、録音した音声ファイルを格納したり、カメラの電源がオフされた場合でも撮影モード情報等を保持しておく不揮発メモリである。   Reference numeral 12 denotes a display controller that converts the image signal processed by the DSP unit 5 so that it can be displayed on an LCD, a display unit that includes an LCD that displays the converted signal, 13 a switch unit operated by a user such as a shutter button, and 14 a camera. For example, the external device I to be imaged includes a charging circuit for charging a battery in the camera body, for example. If the external device I has a display device, the display unit 12 may not be provided. Reference numeral 15 denotes an external device II connected to the external device I, for example, a PC (personal computer). Reference numeral 16 denotes an audio CODEC. An analog audio signal from an input analog unit 18 (for example, a microphone) is A / D converted and input to the DSP unit 5, or a digital audio signal from the DSP unit 5 is D / A converted and output. It outputs to the analog part 19 (for example, speaker). Reference numeral 17 denotes a non-volatile memory that stores captured image files, recorded audio files, and holds shooting mode information and the like even when the camera is turned off.

図2は記録時のメイン処理を示すフローチャート、図3はソフトウェアにおけるメイン処理ブロック20及び併行処理ブロック40の構成を示すブロック図である。
図3において、メイン処理部ブロック20の各処理部21〜29は、図2のフローチャートの各ステップにおける処理を実行する処理部である。例えば図2のSW判定処理(S1)は図3のSW判定処理部21で実行され、図2の動作モード判断処理(S2)は図3の動作モード判断処理部22で実行される。また、本発明の特徴部分である欠陥位置2値圧縮データ処理部30があり、その中にプレーン画像作成処理部31、欠陥位置2値画像作成処理部32がある。また、併行処理ブロック40には、定期的に割り込み処理を実行する定期タイマ割り込み処理部41がある。
FIG. 2 is a flowchart showing the main processing during recording, and FIG. 3 is a block diagram showing the configuration of the main processing block 20 and the parallel processing block 40 in software.
3, each processing unit 21 to 29 of the main processing unit block 20 is a processing unit that executes processing in each step of the flowchart of FIG. For example, the SW determination processing (S1) of FIG. 2 is executed by the SW determination processing portion 21 of FIG. 3, and the operation mode determination processing (S2) of FIG. 2 is executed by the operation mode determination processing portion 22 of FIG. Further, there is a defect position binary compressed data processing unit 30 which is a characteristic part of the present invention, and a plane image creation processing unit 31 and a defect position binary image creation processing unit 32 are included therein. The parallel processing block 40 includes a periodic timer interrupt processing unit 41 that periodically executes interrupt processing.

次に、一般的な撮像動作及び画像処理等について説明する。
図2、図3に示すように本実施形態では、多値画像を記録する静止画撮影モードと2値画像(文字画像)を記録する文字撮影モードがある。
本システムは、例えば20msごとの定期タイマ割り込み処理部41で入力されるSW(スイッチ)情報をSW判定処理部21で確定して(図2のS1)、動作モード判断処理部22にその情報を渡す。特に有効なSW確定入力がなければ、無効操作としてSW判定処理を繰り返すループとなる。有効なSW確定入力があれば、その情報で動作モード判断処理部22は、第一SWオン操作、第二SWオン操作、ファイル再生操作及び表示合成操作に振り分ける(図2のS2)。
Next, general imaging operations and image processing will be described.
As shown in FIGS. 2 and 3, in the present embodiment, there are a still image shooting mode for recording a multi-valued image and a character shooting mode for recording a binary image (character image).
In this system, for example, SW (switch) information input by the periodic timer interrupt processing unit 41 every 20 ms is determined by the SW determination processing unit 21 (S1 in FIG. 2), and the information is sent to the operation mode determination processing unit 22. hand over. If there is no particularly valid SW confirmation input, a loop for repeating the SW determination process as an invalid operation is obtained. If there is a valid SW confirmation input, the operation mode determination processing unit 22 assigns the information to the first SW on operation, the second SW on operation, the file reproduction operation, and the display composition operation based on the information (S2 in FIG. 2).

静止画撮影モード又は文字撮影モードの場合は、メカドライバ部6、CCD駆動部7により撮像部が駆動され、撮像データが画像処理されて表示部12に表示される(モニタリング表示)。図1のスイッチ部13には、シャッタ釦があり、静止画撮影モード時は、シャッタ釦の第一SWがONされると、AE/AF(自動露出制御/自動焦点制御)処理部23が処理を行う(図2のS3)。CPU8は、メカドライバ部6によりレンズ1を動かしフォーカスを合わせる。また、撮像データをDSP部5で評価し、CCD駆動部7に設定するCCD3の露光時間値を決める。   In the still image shooting mode or the character shooting mode, the imaging unit is driven by the mechanical driver unit 6 and the CCD driving unit 7, and the imaging data is processed and displayed on the display unit 12 (monitoring display). The switch unit 13 in FIG. 1 has a shutter button. When the first SW of the shutter button is turned on in the still image shooting mode, an AE / AF (automatic exposure control / automatic focus control) processing unit 23 performs processing. (S3 in FIG. 2). The CPU 8 moves the lens 1 by the mechanical driver unit 6 to adjust the focus. Further, the imaging data is evaluated by the DSP unit 5 and the exposure time value of the CCD 3 set in the CCD driving unit 7 is determined.

図2、図3においては、SW判定処理部21(S1)及び動作モード判断処理部22(S2)で、第一SWオン処理判定され、AE/AF処理部23で処理し(S3)、終了後は再びSW判定処理に戻り、有効なSW情報がなければ、再びなにもせず、SW判定処理に戻るループを繰り返す。次に、第二SWがオンされると(S4)、撮影記録録処理が行われる。 CCD撮像データは、DSP部5で画像処理から圧縮まで行われ、メモリ3に書き込まれる。画像処理、圧縮処理は、静止画撮影モードと文字撮影モードとで処理が異なる。   2 and 3, the SW determination processing unit 21 (S1) and the operation mode determination processing unit 22 (S2) determine the first SW on process, and the AE / AF processing unit 23 processes (S3), and the process ends. After that, the process returns to the SW determination process. If there is no valid SW information, the loop is returned to the SW determination process without doing anything again. Next, when the second SW is turned on (S4), photographing / recording processing is performed. The CCD image data is processed by the DSP unit 5 from image processing to compression and written in the memory 3. Image processing and compression processing are different in the still image shooting mode and the character shooting mode.

静止画撮影モードで多値画像を撮影する場合は、静止画記録処理(S5)が行われる。画像処理時に、各撮像位置における R,G,Bデータから、その画像位置における多階調の輝度データと色データを生成する。これらのデータをJPEGなどの静止画圧縮変換し、ヘッダを付けて静止画圧縮ファイルとしてこれをメモリカード11に書き込む(S6)。   When a multi-value image is shot in the still image shooting mode, a still image recording process (S5) is performed. At the time of image processing, multi-tone luminance data and color data at the image position are generated from the R, G, B data at each imaging position. These data are subjected to still image compression conversion such as JPEG, and a header is added to write this as a still image compressed file in the memory card 11 (S6).

文字撮影モードでは、文字記録処理(S7)が行われる。各撮像位置周辺の平均輝度をスレッシュ値とし、その画像位置の輝度データを2値化処理する(スレッシュ値より大きければ “1”、小さければ “0”)。この2値化データを、ファクシミリでも使用されているMMRなどの2値データ圧縮し、ヘッダを付けて2値圧縮ファイルとし、これをメモリカード11に前記多値画像と対応付けて書き込む(S6)。   In the character photographing mode, character recording processing (S7) is performed. The average luminance around each imaging position is used as a threshold value, and the luminance data at that image position is binarized (“1” if greater than the threshold value, “0” if smaller). This binarized data is compressed into binary data such as MMR which is also used in facsimile, and a binary compressed file is attached with a header, and this is written in the memory card 11 in association with the multi-valued image (S6). .

通常の静止画の輝度信号、色信号は各画素16ビットである。2値画像は、各画素を1ビットで表現できるので、単純に多値画像の1/16となる。また、ビット列のパターンの出現頻度に応じてコードを割り当てることにより、データ数をさらに小さくすることができる。MMR方式などの2値圧縮では 2048×1536の画素数のCCDで撮影した場合でも、その2値圧縮画像ファイルのサイズは、40KB以下で済む。   A normal still picture luminance signal and color signal are 16 bits per pixel. Since a binary image can represent each pixel with 1 bit, it is simply 1/16 of a multi-valued image. In addition, the number of data can be further reduced by assigning codes according to the appearance frequency of the bit string pattern. In binary compression such as the MMR method, the size of the binary compressed image file can be 40 KB or less even when the image is taken with a CCD having a pixel number of 2048 × 1536.

また、文字板等の文字を撮影して多値画像に添付する場合は、第二SWオン操作をすると(S4)、文字添付撮影モードになり、文字記録処理(S8)を実施する。処理された文字データをメモリ9にある静止画画像データのファイルと同じファイルに一緒に格納し(S9)、これを文字付き静止画ファイル(文字添付ファイル)としてメモリカード11に記録する。   When a character such as a dial is photographed and attached to the multi-valued image, when the second SW is turned on (S4), the character attachment photographing mode is set and the character recording process (S8) is performed. The processed character data is stored together in the same file as the still image data file in the memory 9 (S9), and is recorded on the memory card 11 as a still image file with characters (character attached file).

この他、カメラでは再生操作により、再生駒番号決定処理(S10)で、メモリカード内の再生するファイルを選択し、それをスチル再生処理(S11)で、カメラ内のメモリ9に読み込み、圧縮データを伸長して、表示部12に表示する。   In addition, the camera selects a file to be played back in the memory card in the playback frame number determination process (S10), and reads it into the memory 9 in the camera in the still playback process (S11). Is expanded and displayed on the display unit 12.

次に、本発明の特徴部分について説明する。
まず、請求項1,2に関する第1の実施形態を説明する。
本実施形態においては、カメラ内の内蔵不揮発性メモリ17に、欠陥画素の位置を示す欠陥位置2値圧縮データを持っている。そのデータサイズは、CCD3が300万画素(2048×1536画素)であっても、2値圧縮データであるため40KB程度である。もし、欠陥アドレス情報をCCD上の座標として持つとすれば、その個数が前述したように6万個とすると、6万×(2Byte(横座標アドレス、max 2048)+2Byte(縦座標アドレス、max 1536))となり、240KBと大きなメモリ容量を必要とする。
Next, features of the present invention will be described.
First, a first embodiment related to claims 1 and 2 will be described.
In the present embodiment, the built-in nonvolatile memory 17 in the camera has defect position binary compressed data indicating the position of the defective pixel. The data size is about 40 KB because it is binary compressed data even if the CCD 3 has 3 million pixels (2048 × 1536 pixels). If the defect address information has coordinates on the CCD, if the number is 60,000 as described above, then 60,000 × (2 bytes (abscissa address, max 2048) +2 bytes (ordinate address, max 1536 )), And requires a large memory capacity of 240 KB.

カメラ撮影者が撮影を実行すると、CCD3の撮像データはメモリ9に格納される。
メモリ内は、CCD撮像データをデジタル化しただけなので、例えば、R,G,BのCCD3のベイヤ配列そのままのデジタルデータが格納される。一方、内蔵不揮発メモリ17の欠陥補正用の欠陥位置2値圧縮データは、DSP部5の2値処理部で伸長された後、メモリ9に格納される。伸長された2値データは、前述の文字撮影モードの再生処理と同じように2値処理部で多値画像と同じ輝度と色差のフォーマットに変換されるが、2048×1536画素の輝度情報において、欠陥がない画素に相当する画素アドレスのデータの値はゼロになり、欠陥画素に相当する画素アドレスのデータの値は255になる。
When the camera photographer performs photographing, the image data of the CCD 3 is stored in the memory 9.
Since only the CCD image data is digitized in the memory, for example, digital data of the R, G, B CCD 3 Bayer array as it is is stored. On the other hand, the defect position binary compressed data for defect correction in the built-in nonvolatile memory 17 is decompressed by the binary processing unit of the DSP unit 5 and then stored in the memory 9. The decompressed binary data is converted into the same luminance and color difference format as the multi-valued image by the binary processing unit in the same manner as the reproduction processing in the character photographing mode described above, but in the luminance information of 2048 × 1536 pixels, The value of the pixel address data corresponding to the pixel having no defect is zero, and the value of the pixel address data corresponding to the defective pixel is 255.

以上のように、メモリ9には、2048×1536画素の CCD撮像データと、欠陥位置の値が255となっている2048×1536画素の欠陥補正用輝度データとの2つが作成される。次に、上記欠陥補正用輝度データの欠陥該当位置(X,Y)を検索して、CCD撮像データ上のX,Y座標の画素データを補正する。補正は図3の欠陥補正処理部26で行われる。補正の仕方は、具体的にはCCD撮像データの座標(X+2、Y)の値を、座標(X,Y)のデータに上書きする。XとX+2は、CCDのベイヤ配列では同じカラーフィルタの最も近い画素同士である。このようにして補正されたCCD撮像データは、DSP部5で処理され、静止画画像データに変換される。   As described above, in the memory 9, two pieces of CCD image data of 2048 × 1536 pixels and defect correction luminance data of 2048 × 1536 pixels having a defect position value of 255 are created. Next, the defect corresponding position (X, Y) of the defect correction luminance data is searched, and the pixel data of the X, Y coordinates on the CCD image data is corrected. The correction is performed by the defect correction processing unit 26 of FIG. Specifically, the correction is performed by overwriting the data of the coordinates (X, Y) with the coordinates (X + 2, Y) of the CCD imaging data. X and X + 2 are the closest pixels of the same color filter in the CCD Bayer array. The CCD image data corrected in this way is processed by the DSP unit 5 and converted into still image data.

次に、請求項3,4に関する第2の実施形態を説明する。
前述したように、暗電流による欠陥画素の個数は長時間露出した場合に増加する。メモリ9内の欠陥位置2値圧縮データはデータ数が小さいので、本実施形態においては、例えば2秒露出撮影用、4秒露出撮影用、8秒露出撮影用と複数の欠陥位置2値圧縮データ持っている。
本実施形態によれば、撮影した露出秒時に応じて上記各データを使い分けることにより、過補正することもなくなり、最適な個数の画素の補正を行うことができる。
Next, a second embodiment related to claims 3 and 4 will be described.
As described above, the number of defective pixels due to dark current increases when exposed for a long time. Since the defect position binary compressed data in the memory 9 has a small number of data, in the present embodiment, for example, a plurality of defect position binary compressed data for 2 seconds exposure shooting, 4 seconds exposure shooting, and 8 seconds exposure shooting are used. have.
According to the present embodiment, by properly using each of the above data according to the exposure time taken, it is possible to correct an optimal number of pixels without overcorrection.

次に、請求項5に関する第3の実施形態を説明する。
欠陥位置2値圧縮データを用いる方法は、初めのデータ伸長処理と、撮影ごとの欠陥該当位置 X,Yの検索作業が必要である。一方、1秒程度の短い露出で問題となる不良画素数は60個レベルであり、座標データとしても十分少ないので、本実施形態においては、この短い露出用の座標データをそのまま内蔵不揮発性メモリ17に格納している。
Next, a third embodiment related to claim 5 will be described.
The method using the defect position binary compressed data requires an initial data expansion process and a search operation for the defect corresponding positions X and Y for each photographing. On the other hand, the number of defective pixels that becomes a problem with a short exposure of about 1 second is at the level of 60, and the coordinate data is sufficiently small. In this embodiment, the short-exposure coordinate data is directly used as the built-in nonvolatile memory 17. Is stored.

本実施形態によれば、特に長秒時撮影でない場合は、短い露出用の座標データを用いた座標式補正処理を行い、長秒時露出の場合は、第1の実施形態による欠陥画像式補正処理を行うのがよい。もともと長秒時撮影であるので、欠陥画像式補正処理により多少時間がかかっても使用者に不利益はない。   According to the present embodiment, the coordinate formula correction process using the short exposure coordinate data is performed particularly when shooting is not performed at a long time, and the defect image formula correction according to the first embodiment is performed when the exposure is performed at a long time. Processing should be done. Since shooting was originally performed for a long time, there is no disadvantage to the user even if it takes some time due to the defect image type correction processing.

請求項6に関する第4の実施形態を説明する。
本撮像装置は、撮影モードとして文字撮影モードという2値画像撮影機能を持っているので、本実施形態においては、欠陥データ更新モード等をユーザに提供している。この欠陥データ更新モードでは、シャッタを閉じたままで露光時間4秒の撮影をして、その撮像データをメモリ9に格納する。同時に2048×1536の輝度ゼロのデータをメモリ内にプログラムで作成する。これをプレーン画像とする。この作成処理は、図3の欠陥位置2値圧縮データ処理部30におけるプレーン画像作成処理部31で行われる。
A fourth embodiment relating to claim 6 will be described.
Since the imaging apparatus has a binary image shooting function called a character shooting mode as a shooting mode, the present embodiment provides a user with a defect data update mode and the like. In this defect data update mode, shooting is performed with an exposure time of 4 seconds while the shutter is closed, and the captured data is stored in the memory 9. At the same time, 2048 × 1536 brightness zero data is created in the memory by a program. This is a plain image. This creation processing is performed by the plane image creation processing unit 31 in the defect position binary compressed data processing unit 30 of FIG.

次に、上記撮像データの画素データを所定のしきい値Mで比較し、M以上の値であれば、それを欠陥画素としてプレーン画像側の該当アドレスのデータを255にする。以上の処理を欠陥位置2値画像作成処理部32において撮像した全画素位置に対して実施する。終了したら、プレーン画像を2値圧縮し、露光時間4秒に対する欠陥位置2値圧縮データとして内蔵不揮発性メモリ17に格納する。本例では4秒としたが、この時間もユーザにより選択できるようにしてよい。尚、上記しきい値Mは、撮像データのカラーフィルタに応じてR用、G用、B用にそれぞれ設定するようにしてもよい。
本実施形態によれば、欠陥位置2値圧縮データを撮像装置自身において作成することができる。
Next, the pixel data of the imaging data is compared with a predetermined threshold value M, and if it is a value equal to or greater than M, it is regarded as a defective pixel and the data at the corresponding address on the plane image side is set to 255. The above processing is performed for all pixel positions captured by the defect position binary image creation processing unit 32. When completed, the plane image is binary-compressed and stored in the built-in nonvolatile memory 17 as defect position binary compressed data for an exposure time of 4 seconds. In this example, it is set to 4 seconds, but this time may be selected by the user. The threshold value M may be set for R, G, and B according to the color filter of the image data.
According to the present embodiment, the defect position binary compressed data can be created in the imaging apparatus itself.

なお、上述した各実施形態における処理を、CPU8が実行するためのプログラムは本発明によるプログラムを構成する。このプログラムを記録する記録媒体としては、半導体記憶装置や光学的及び/又は磁気的な記憶装置等を用いることができる。このようなプログラム及び記録媒体を、各実施形態とは異なる構成のシステム等で用い、そこのCPUに上記プログラムを実行させることにより、本発明と実質的に同じ効果を得ることができる。   The program for the CPU 8 to execute the processing in each of the above-described embodiments constitutes a program according to the present invention. As a recording medium for recording the program, a semiconductor storage device, an optical and / or magnetic storage device, or the like can be used. By using such a program and recording medium in a system having a configuration different from that of each embodiment and causing the CPU to execute the program, substantially the same effects as those of the present invention can be obtained.

本発明の実施形態に係る撮像装置の構成を示すブロック図である。It is a block diagram which shows the structure of the imaging device which concerns on embodiment of this invention. 本発明の実施形態の形態に係る動作と画像処理を示すフローチャートである。It is a flowchart which shows the operation | movement and image processing which concern on the form of embodiment of this invention. 本発明の実施形態に係る撮像装置のソフトウェアの構成を示すブロック図である。It is a block diagram which shows the software structure of the imaging device which concerns on embodiment of this invention.

符号の説明Explanation of symbols

3 CCD
5 DSP部
8 CPU
9 メモリ
17 内蔵不揮発メモリ
25 文字記録処理部
26 欠陥補正処理部
30 欠陥位置2値圧縮データ処理部
31 プレーン画像作成処理部
32 欠陥位置2値画像作成処理部
3 CCD
5 DSP section 8 CPU
DESCRIPTION OF SYMBOLS 9 Memory 17 Built-in non-volatile memory 25 Character recording process part 26 Defect correction process part 30 Defect position binary compression data process part 31 Plain image creation process part 32 Defect position binary image creation process part

Claims (10)

被写体像を撮像し撮像データを出力する撮像手段と、
前記撮像手段における撮像素子の欠陥画素がある位置とない位置を2値で示す欠陥位置2値圧縮データを記憶する記憶手段と、
前記記憶された欠陥位置2値圧縮データを伸長する伸長手段と、
前記伸長された欠陥位置2値データに基づいて前記撮像データにおける欠陥画素データを補正する補正手段とを有することを特徴とする撮像装置。
Imaging means for capturing a subject image and outputting imaging data;
Storage means for storing defect position binary compressed data indicating in binary the position where the defective pixel of the image sensor in the imaging means is located and where it is not;
Decompression means for decompressing the stored defect position binary compressed data;
An image pickup apparatus comprising: correction means for correcting defective pixel data in the image pickup data based on the extended defect position binary data.
前記補正手段は、前記伸長された欠陥位置2値データに基づいて前記撮像データにおける前記欠陥画素の位置を検出し、検出された位置の欠陥画素データをその画素近傍の画素データで補正することを特徴とする請求項1記載の撮像装置。   The correction means detects the position of the defective pixel in the imaging data based on the expanded defect position binary data, and corrects the defective pixel data at the detected position with pixel data in the vicinity of the pixel. The imaging apparatus according to claim 1, wherein: 前記記憶手段は、複数の前記欠陥位置2値圧縮データを記憶し、前記補正手段は、撮像時の撮像パラメータに応じて使用する前記複数の欠陥位置2値圧縮データのうちの1つを用いることを特徴とする請求項1又は2記載の撮像装置。   The storage means stores a plurality of the defect position binary compressed data, and the correction means uses one of the plurality of defect position binary compressed data used in accordance with an imaging parameter at the time of imaging. The imaging apparatus according to claim 1, wherein: 前記複数の欠陥位置2値圧縮データは、前記撮像時の撮像パラメータとしての露光時間に応じて設定され、前記補正手段は、前記露光時間に応じて使用する前記複数の欠陥位置2値圧縮データのうちの1つを用いることを特徴とする請求項3記載の撮像装置。   The plurality of defect position binary compressed data is set according to an exposure time as an imaging parameter at the time of imaging, and the correction unit is configured to store the plurality of defect position binary compressed data used according to the exposure time. The imaging apparatus according to claim 3, wherein one of them is used. 前記記憶手段は、前記撮像素子の欠陥画素の座標を示す欠陥座標データを記憶し、前記補正手段は、前記欠陥位置2値圧縮データと前記欠陥座標データの何れかを前記撮像時の撮像パラメータに応じて用いることを特徴とする請求項4記載の撮像装置。   The storage means stores defect coordinate data indicating coordinates of defective pixels of the image sensor, and the correction means uses either the defect position binary compressed data or the defect coordinate data as an imaging parameter at the time of imaging. The imaging apparatus according to claim 4, wherein the imaging apparatus is used in accordance with the above. 全ての画素データを輝度ゼロのデータとするプレーン画像を作成する作成手段と、
前記撮像データの各画素データを所定の閾値と比較し、前記閾値以上の画素データを欠陥画素データとして前記プレーン画像における該当位置のデータを所定の輝度に置き換え、置き換えられたプレーン画像データを2値圧縮処理し、処理されたデータを前記欠陥位置2値圧縮データとして作成する欠陥位置2値圧縮データ作成手段とを設けたことを特徴とする請求項1記載の撮像装置。
Creating means for creating a plain image in which all pixel data has zero brightness data;
Each pixel data of the imaging data is compared with a predetermined threshold, pixel data equal to or higher than the threshold is used as defective pixel data, data at a corresponding position in the plane image is replaced with predetermined luminance, and the replaced plane image data is binary. 2. The imaging apparatus according to claim 1, further comprising defect position binary compressed data creating means for compressing and creating the processed data as the defect position binary compressed data.
被写体像を撮像し撮像データを出力する撮像処理と、
前記撮像処理における撮像素子の欠陥画素がある位置とない位置を2値で示す欠陥位置2値圧縮データを記憶手段から読み出す読み出し処理と、
読み出された欠陥位置2値圧縮データを伸長する伸長処理と、
前記伸長された欠陥位置2値データに基づいて前記撮像データにおける欠陥画素データを補正する補正処理とをコンピュータに実行させるプログラム。
An imaging process for imaging a subject image and outputting imaging data;
A readout process of reading out the defect position binary compressed data indicating the position where the defective pixel of the image sensor in the imaging process is located and the position where the defective pixel is not present from the storage unit;
A decompression process for decompressing the read defect position binary compressed data;
A program for causing a computer to execute correction processing for correcting defective pixel data in the imaging data based on the expanded defect position binary data.
前記欠陥位置2値圧縮データは複数あり、前記補正処理により、撮像時の撮像パラメータに応じて使用する前記複数の欠陥位置2値圧縮データのうちの1つを用いることを特徴とする請求項7記載のプログラム。   8. The defect position binary compressed data is plural, and one of the plurality of defect position binary compressed data used according to an imaging parameter at the time of imaging is used by the correction process. The listed program. 前記撮像素子の欠陥画素の座標を示す欠陥座標データを記憶手段から読み出す読み出し処理をコンピュータに実行させると共に、前記補正処理により、前記欠陥位置2値圧縮データと前記欠陥座標データの何れかを前記撮像時の撮像パラメータに応じて用いることを特徴とする請求項7記載のプログラム。   The computer executes read processing for reading out defect coordinate data indicating the coordinates of the defective pixel of the image sensor from the storage unit, and the correction processing performs imaging of either the defect position binary compressed data or the defect coordinate data. 8. The program according to claim 7, wherein the program is used according to an imaging parameter at the time. 全ての画素データを輝度ゼロのデータとするプレーン画像を作成する作成処理と、
前記撮像データの各画素データを所定の閾値と比較する比較処理と、
前記閾値以上の画素データを欠陥画素データとして前記プレーン画像における該当位置のデータを所定の輝度に置き換える置き換え処理と、
前記置き換えられたプレーン画像データを2値圧縮処理する圧縮処理と、
前記圧縮処理されたデータを前記欠陥位置2値圧縮データとして作成する欠陥位置2値圧縮データ作成処理とをコンピュータに実行させることを特徴とする請求項7記載のプログラム。
A creation process for creating a plain image in which all pixel data is zero-luminance data;
A comparison process for comparing each pixel data of the imaging data with a predetermined threshold;
A replacement process in which pixel data equal to or greater than the threshold is used as defective pixel data, and data at a corresponding position in the plane image is replaced with a predetermined luminance.
A compression process for performing binary compression on the replaced plain image data;
8. The program according to claim 7, causing a computer to execute defect position binary compressed data creation processing for creating the compressed data as the defect position binary compressed data.
JP2005072051A 2005-03-14 2005-03-14 Imaging apparatus and program Withdrawn JP2006254388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005072051A JP2006254388A (en) 2005-03-14 2005-03-14 Imaging apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005072051A JP2006254388A (en) 2005-03-14 2005-03-14 Imaging apparatus and program

Publications (1)

Publication Number Publication Date
JP2006254388A true JP2006254388A (en) 2006-09-21

Family

ID=37094342

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005072051A Withdrawn JP2006254388A (en) 2005-03-14 2005-03-14 Imaging apparatus and program

Country Status (1)

Country Link
JP (1) JP2006254388A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10542184B2 (en) 2017-01-25 2020-01-21 Ricoh Company, Ltd. Photoelectric conversion device, defective pixel determining method, image forming apparatus, and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10542184B2 (en) 2017-01-25 2020-01-21 Ricoh Company, Ltd. Photoelectric conversion device, defective pixel determining method, image forming apparatus, and recording medium

Similar Documents

Publication Publication Date Title
US7657116B2 (en) Correction method of defective pixel in image pickup device and image processing apparatus using the correction method
TWI293846B (en) Image pickup device with brightness correcting function and method of correcting brightness of image
US7796169B2 (en) Image processing apparatus for correcting captured image
JP4548355B2 (en) Movie playback apparatus and program thereof
JP4569389B2 (en) Imaging apparatus, image processing method, and program
JP5002931B2 (en) Imaging apparatus and program thereof
JP5084366B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP2017175319A (en) Image processing apparatus, image processing method, and program
JP4167200B2 (en) Signal processing apparatus, signal processing method, and digital camera
JP2007295181A (en) Imaging device, image recording device, and its program
JP2010021710A (en) Imaging device, image processor, and program
JP5094665B2 (en) Imaging apparatus, control method thereof, and program
JP5822606B2 (en) Image processing apparatus and image processing apparatus control method
JP2006254388A (en) Imaging apparatus and program
JP2009055415A (en) Camera
JP2006094031A (en) Imaging apparatus, image processing method, and program
JP2005341244A (en) Imaging device, defective pixel detecting method, and program
JP4872571B2 (en) Imaging apparatus, imaging method, and program
JP5482427B2 (en) Imaging apparatus, camera shake correction method, and program
JP4921118B2 (en) Video signal processing apparatus, video signal processing method, and program
JP2007019593A (en) Contour emphasizing signal generating circuit, image signal processing apparatus, imaging apparatus, contour emphasizing signal generating method, and program
JP2005136970A (en) Image processor and image processing method
JP5967897B2 (en) Imaging apparatus, control method therefor, and program
JP5561044B2 (en) Imaging apparatus, imaging method, and program
JP2012109863A (en) Imaging device and image processing method

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: 20080603