JP4584768B2 - Pixel defect correction device - Google Patents

Pixel defect correction device Download PDF

Info

Publication number
JP4584768B2
JP4584768B2 JP2005145385A JP2005145385A JP4584768B2 JP 4584768 B2 JP4584768 B2 JP 4584768B2 JP 2005145385 A JP2005145385 A JP 2005145385A JP 2005145385 A JP2005145385 A JP 2005145385A JP 4584768 B2 JP4584768 B2 JP 4584768B2
Authority
JP
Japan
Prior art keywords
pixel
pixels
position information
defect correction
input
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.)
Expired - Fee Related
Application number
JP2005145385A
Other languages
Japanese (ja)
Other versions
JP2006324874A (en
Inventor
優子 江口
真一 高山
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.)
Hoya Corp
Original Assignee
Hoya Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hoya Corp filed Critical Hoya Corp
Priority to JP2005145385A priority Critical patent/JP4584768B2/en
Publication of JP2006324874A publication Critical patent/JP2006324874A/en
Application granted granted Critical
Publication of JP4584768B2 publication Critical patent/JP4584768B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transforming Light Signals Into Electric Signals (AREA)

Description

本発明は、撮像素子の欠陥画素に対応する画素データを補正する装置に関する。   The present invention relates to an apparatus for correcting pixel data corresponding to a defective pixel of an image sensor.

固体撮像素子には、一般に欠陥画素が存在する。このような傾向は特に小型・高密度の撮像素子において顕著となる。欠陥画素に対しては、画素欠陥補正処理により画素データが補正され、画素欠陥補正処理は、欠陥画素周囲の正常な画素の画素データを用いて行なわれる。   A defective pixel is generally present in a solid-state imaging device. Such a tendency becomes remarkable especially in a small and high density image sensor. For defective pixels, pixel data is corrected by pixel defect correction processing, and pixel defect correction processing is performed using pixel data of normal pixels around the defective pixel.

画素欠陥補正処理では、処理中の画像データが欠陥画素のものであるかがまず判定される。画像データが欠陥画素に対応する場合には、周囲の画素データを用いて補正(補間)処理が施される。画像データに対応する画素が欠陥画素であるか否かの判定は、欠陥画素の位置情報を予め登録したデータテーブル(欠陥画素データテーブル)を参照して行なわれる。また、補正に用いられる画素データは、正常な画素データである必要があるので、補正候補となった画素に対しても欠陥画素データテーブルを参照してその画素が正常な画素であるか否かの判定を行なう必要がある。   In the pixel defect correction process, it is first determined whether the image data being processed is of a defective pixel. When the image data corresponds to a defective pixel, correction (interpolation) processing is performed using surrounding pixel data. Whether or not the pixel corresponding to the image data is a defective pixel is determined with reference to a data table (defective pixel data table) in which position information of the defective pixel is registered in advance. In addition, since the pixel data used for correction needs to be normal pixel data, whether or not the pixel is a normal pixel by referring to the defective pixel data table even for a pixel that is a correction candidate. It is necessary to make a judgment.

以上のことから、欠陥画素データテーブルが全画素を対象とする1つのデータテーブルからなるときには、間引きを行なう場合にも、処理対象となっている画素および補正候補となっている画素に対して、上述した全画素を対象とした欠陥画素データテーブルを検索しなければならないので、欠陥画素の判定および補正候補の判定を行なうには、探索処理に多くの時間が費やされた。   From the above, when the defective pixel data table is composed of one data table for all pixels, even when thinning is performed, for the pixel to be processed and the pixel to be corrected, Since it is necessary to search the defective pixel data table for all the pixels described above, much time is spent on the search process to determine the defective pixel and the correction candidate.

このような問題に対し、間引きモードに対応して欠陥画素データテーブルを複数用意する方法が提案されている(特許文献1)。すなわち、各間引きモードに対して、欠陥画素データテーブルのデータ量は最適化されているため、参照される必要のない間引かれる画素を検索対象とする必要がなく、探索処理に掛かる時間を大幅に短縮することができる。   For such a problem, a method of preparing a plurality of defective pixel data tables corresponding to the thinning mode has been proposed (Patent Document 1). In other words, since the data amount of the defective pixel data table is optimized for each thinning mode, it is not necessary to search for thinned pixels that do not need to be referred to, and the time required for the search process is greatly increased. Can be shortened.

また、全画素を対象とした補正処理を行なう回路と、各間引きモードに対応した補正処理を行なう回路とを別々に用意し、これらをモードに応じて適宜選択する方法も提案されている(特許文献2)。
特開平9−247540号公報 特開2003−51990号公報
In addition, a method has been proposed in which a circuit that performs correction processing for all pixels and a circuit that performs correction processing corresponding to each thinning mode are prepared separately, and these are appropriately selected according to the mode (patent). Reference 2).
Japanese Patent Laid-Open No. 9-247540 JP 2003-51990 A

しかし、特許文献1、2の方法では、間引きモードの数が増えると、メモリ容量や回路数が増大すると言う問題がある。   However, the methods of Patent Documents 1 and 2 have a problem that the memory capacity and the number of circuits increase as the number of thinning modes increases.

本発明は、メモリ容量を増大させることなく、高速に欠陥画素の探索処理を行なう画素欠陥補正装置を提供することを目的としている。   An object of the present invention is to provide a pixel defect correction device that performs a defective pixel search process at a high speed without increasing a memory capacity.

本発明の画素欠陥補正装置は、入力画素データが欠陥画素に対応する場合にその画素データを補正する欠陥補正演算部と、欠陥画素の全位置情報を循環的に振り分けて記録するm個のメモリと、入力画素データに対応する画素を含むm個の画素の位置情報を管理する画素位置管理部と、m個の画素の位置情報とm個のメモリに各々分散されて記録されたm個の欠陥画素の位置情報との間の比較を行ない、位置情報が一致した場合にその数に対応する一致信号を出力する位置情報比較部と、一致信号のうち有効画素に対応する一致信号のみを欠陥補正演算部に出力する一致信号出力制御部と、一致信号の数に対応して、m個のメモリの読み出しアドレスを管理するアドレス管理部とを備えたことを特徴としている。   A pixel defect correction apparatus according to the present invention includes a defect correction calculation unit that corrects pixel data when input pixel data corresponds to a defective pixel, and m memories that cyclically sort and record all position information of defective pixels. A pixel position management unit that manages position information of m pixels including pixels corresponding to input pixel data, and m pieces of position information and m pieces of memory that are distributed and recorded in m pieces of position information and m memories, respectively. Compares the position information of defective pixels, and if the position information matches, outputs a match signal corresponding to the number, and only the match signal corresponding to the effective pixel of the match signals is defective. It is characterized by comprising a coincidence signal output control unit that outputs to the correction operation unit and an address management unit that manages the read addresses of the m memories corresponding to the number of coincidence signals.

画素位置管理部は、例えば1画素分の画素位置情報を管理するカウンタを備え、m個の画素の位置情報が、このカウンタの値によって管理される。   The pixel position management unit includes, for example, a counter that manages pixel position information for one pixel, and the position information of m pixels is managed by the value of this counter.

カウンタの値は、例えば撮像素子の水平ライン、垂直ラインに沿った2次元座標値である。またカウンタの値は、入力画素データの入力毎に、対応する画素のシフト量分、シフトされる。また、画素欠陥補正装置は、画素位置管理部における位置情報の管理に必要なシフト量を間引きモード毎に保持管理する間引き情報管理部を備える。   The counter value is, for example, a two-dimensional coordinate value along the horizontal line and vertical line of the image sensor. The value of the counter is shifted by the shift amount of the corresponding pixel every time input pixel data is input. In addition, the pixel defect correction apparatus includes a thinning information management unit that holds and manages a shift amount necessary for management of position information in the pixel position management unit for each thinning mode.

また、画素欠陥補正装置は、一致信号出力制御部における有効画素に対応する一致信号の情報を保持管理する間引き情報管理部を備える。   In addition, the pixel defect correction apparatus includes a thinning information management unit that holds and manages information on the coincidence signal corresponding to the effective pixel in the coincidence signal output control unit.

入力画素データは所定の順序で入力され、欠陥画素の全位置情報が所定の順序に従ってm個のメモリに循環的に振り分けられ、m個の画素の位置情報が所定の順序で連続する画素に対応する。このとき画素欠陥補正装置は、m個のメモリ毎に読み出しアドレスを管理するm個のアドレスカウンタを備え、上記所定の順序に従った欠陥画素の順番に対応して循環的に一致数に対応した数のアドレスカウンタの値を順次カウントアップする。   Input pixel data is input in a predetermined order, and all position information of defective pixels is cyclically distributed to m memories according to the predetermined order, and the position information of m pixels corresponds to pixels that continue in the predetermined order. To do. At this time, the pixel defect correction apparatus includes m address counters that manage read addresses for each of the m memories, and cyclically corresponds to the number of matches corresponding to the order of the defective pixels according to the predetermined order. The number of the address counter is sequentially counted up.

また、m個のメモリから読み出されるm個の欠陥画素の位置情報は、一致情報比較部において一致が未確認の欠陥画素のうち上記所定の順序における最初のm個の位置情報に対応する。   The position information of the m defective pixels read from the m memories corresponds to the first m pieces of position information in the predetermined order among the defective pixels whose matching is not confirmed in the matching information comparison unit.

また、mは間引きパターンの最大単位に対応し、欠陥画素の総数がn個のとき、m個のメモリは各々n/mの深さに設定される。   Further, m corresponds to the maximum unit of the thinning pattern, and when the total number of defective pixels is n, the m memories are set to a depth of n / m.

また本発明の画素欠陥補正装置は、間引きパターンの単位をm列とする画像処理装置に用いられる画素欠陥補正装置であって、所定の順序に従って入力される入力画素データに対し欠陥画素の補正を行なう欠陥補正演算部と、欠陥画素の全位置情報を所定の順序に従って循環的に振り分けて記録するm個のメモリと、入力画素データに対応する画素を含む所定の順序で連続するm個の画素の位置情報と、m個のメモリの所定の順序に従ったm個の欠陥画素の位置情報とを比較する位置情報比較部と、入力画素データが新たに入力される毎に、入力画素データに対応する画素を含むm個の画素の位置情報を間引きパターンに対応して所定の順序に沿って所定画素数分シフトする位置情報管理部と、m個のメモリからm個の欠陥画素の位置情報を読み出すアドレスを、位置情報比較部において位置情報が一致した数分だけ、上記所定の順序に沿ってシフトさせるアドレス管理部と、位置情報比較部における位置情報の一致が、有効画素において起こるときにのみ、欠陥補正演算部に一致信号を出力する一致信号出力制御部とを備たことを特徴としている。   The pixel defect correction apparatus according to the present invention is a pixel defect correction apparatus used in an image processing apparatus having a thinning pattern unit of m columns, and corrects defective pixels for input pixel data input according to a predetermined order. Defect correction calculation unit to be performed, m number of memories that circulate and record all position information of defective pixels according to a predetermined order, and m pixels continuous in a predetermined order including pixels corresponding to input pixel data Each time the input pixel data is newly input, the position information comparison unit that compares the position information of the m pixels and the position information of the m defective pixels according to a predetermined order in the m memories. Position information management unit for shifting the position information of m pixels including the corresponding pixels by a predetermined number of pixels in a predetermined order corresponding to the thinning pattern, and the position information of m defective pixels from the m memories The The address management unit that shifts the addresses to be read out by the number corresponding to the position information matched in the position information comparison unit along the predetermined order, and the position information match in the position information comparison unit occurs in the effective pixel. Only, it is characterized by having a coincidence signal output control unit for outputting a coincidence signal to the defect correction calculation unit.

また更に、本発明の画素欠陥補正装置は、所定の順序に従って入力される入力画素データに対して、欠陥画素の補正を行なう欠陥補正演算部と、欠陥画素の全位置情報を所定の順序に従って循環的に振り分けて記録するm個のメモリとを備え、連続するm個の画素の位置情報と、m個のメモリに記録された連続するm個の欠陥画素位置情報とを比較して、m個の画素の中から欠陥画素を検出し、m個の欠陥画素位置情報が、未検出の欠陥画素に対応する所定の順序に従った最初のm個の欠陥画素位置情報であり、入力画素データの入力毎にシフトされる画素数分、m個の画素の位置情報がシフトされ、欠陥画素の検出に基づいて入力画素データの前記補正が行われることを特徴としている。   Still further, the pixel defect correction apparatus of the present invention circulates a defect correction calculation unit that corrects defective pixels for input pixel data input according to a predetermined order, and all position information of the defective pixels according to a predetermined order. M pieces of memory for sorting and recording, and comparing the position information of m consecutive pixels with m pieces of defective pixel position information recorded in the m memories, Defective pixels are detected from among the pixels, and the m defective pixel position information is the first m defective pixel position information according to a predetermined order corresponding to the undetected defective pixels, and the input pixel data The positional information of m pixels is shifted by the number of pixels shifted for each input, and the correction of the input pixel data is performed based on detection of defective pixels.

以上により、メモリ容量を増大させることなく、高速に欠陥画素の探索処理を行なう画素欠陥補正装置を提供することができる。   As described above, it is possible to provide a pixel defect correction apparatus that performs a search process for defective pixels at high speed without increasing the memory capacity.

以下、本発明の実施形態について添付図面を参照して説明する。
図1は、本発明の一実施形態である画素欠陥補正装置を備えた画像処理システム全体の構成を模式的に示すブロック図である。
Embodiments of the present invention will be described below with reference to the accompanying drawings.
FIG. 1 is a block diagram schematically showing the overall configuration of an image processing system including a pixel defect correction apparatus according to an embodiment of the present invention.

画像処理システムは画素欠陥補正装置を搭載するものであれば如何なるものであってもよいが、以下においてはデジタルカメラ10を一例として説明を行なう。デジタルカメラ10では、レンズ11を介して被写体像が撮像素子(例えばCCD)12に結像され、その画像信号は画像処理装置13に入力される。   The image processing system may be anything as long as it is equipped with a pixel defect correction device. In the following, the digital camera 10 will be described as an example. In the digital camera 10, a subject image is formed on an image sensor (for example, CCD) 12 via a lens 11, and the image signal is input to an image processing device 13.

画像処理装置13は、画素欠陥補正処理を行なう画素欠陥補正装置14と、欠陥位置情報メモリ15と、従来周知のその他の画像処理を行なう回路部16とに大別される。画像処理装置13において画素欠陥補正処理やその他周知の画像処理を施された画像信号は、ユーザインタフェース17に出力され、例えばディスプレイ装置等に静止画像あるいは動画として表示される。なお、図1では、撮像素子12の駆動に関わる構成など画素欠陥補正処理に直接関わらない構成は省略されている。   The image processing device 13 is roughly divided into a pixel defect correction device 14 that performs pixel defect correction processing, a defect position information memory 15, and a circuit unit 16 that performs other conventionally known image processing. An image signal that has been subjected to pixel defect correction processing and other known image processing in the image processing device 13 is output to the user interface 17 and displayed as a still image or a moving image on a display device, for example. In FIG. 1, a configuration that is not directly related to the pixel defect correction process, such as a configuration related to driving of the image sensor 12, is omitted.

欠陥位置情報メモリ15には、撮像素子12の欠陥画素の位置情報が例えば座標値として記録されている。なお、欠陥画素の位置情報は、予め行なわれる撮像素子12の検査において求められている。   In the defect position information memory 15, position information of defective pixels of the image sensor 12 is recorded as coordinate values, for example. The position information of the defective pixel is obtained in the inspection of the image sensor 12 performed in advance.

図2に、撮像素子12の各画素の配列と、各画素の座標値との関係を模式的に示す。なお、撮像素子12が例えばカラー撮像素子の場合、図2に示される各画素は、1つの色成分に対応する画素のみ(例えばR成分に対応する画素のみ)を抽出して配列したものである。   FIG. 2 schematically shows the relationship between the arrangement of each pixel of the image sensor 12 and the coordinate value of each pixel. When the image sensor 12 is a color image sensor, for example, each pixel shown in FIG. 2 is an array in which only pixels corresponding to one color component (for example, only pixels corresponding to the R component) are extracted and arranged. .

以下の説明においても、1つの色成分に対応する画素についてのみ説明を行なうが、他の色成分(例えばG、B成分)に関しても同様である。また、以下の説明において、隣接画素と言う場合には、図2において隣接すると言う意味であり、実際の撮像素子12において隣接するものとは限らない。   In the following description, only the pixel corresponding to one color component will be described, but the same applies to other color components (for example, G and B components). In the following description, the term “adjacent pixel” means “adjacent” in FIG. 2, and is not necessarily adjacent in the actual image sensor 12.

図2に示されるように、各画素は格子状に配置されており、各画素の位置は水平ライン方向をX軸、垂直ライン方向をY軸に対応させるとき、2次元の座標値(x,y)として表される。例えば、図2では、同一色成分の画素が水平ライン方向にX個存在し、垂直ライン方向にY個存在する。なお、本実施形態において撮像素子12からの読み出し動作は、X軸方向への主走査、Y軸方向への副走査により(0,0)、(1,0)、・・・、(X,0)、(0,1)、・・・、(X,1)、(0,2)、・・・、(X−1,Y)、(X,Y)の順で行なわれ、画素データは、図の矢印に沿った順序で読み出される。   As shown in FIG. 2, each pixel is arranged in a grid pattern, and the position of each pixel is a two-dimensional coordinate value (x, x, x) when the horizontal line direction corresponds to the X axis and the vertical line direction corresponds to the Y axis. y). For example, in FIG. 2, there are X pixels of the same color component in the horizontal line direction and Y pixels in the vertical line direction. In this embodiment, the reading operation from the image sensor 12 is (0, 0), (1, 0),..., (X, 0) by main scanning in the X-axis direction and sub-scanning in the Y-axis direction. 0), (0, 1),..., (X, 1), (0, 2),..., (X-1, Y), (X, Y). Are read in the order along the arrows in the figure.

次に本実施形態における間引きパターンについて図3を参照して説明する。間引き処理は、動画の記録や再生、あるいは電子ビューファインダ(EVF)による被写体のモニタ時、低解像度静止画の記録時などに使用される。したがって、間引きパターンは、使用される態様に合わせて複数用意されるのが一般的である。   Next, the thinning pattern in the present embodiment will be described with reference to FIG. The thinning process is used for recording and reproducing moving images, monitoring an object using an electronic viewfinder (EVF), and recording a low-resolution still image. Therefore, a plurality of thinning patterns are generally prepared in accordance with the mode of use.

本発明は如何なる間引きパターンにも適用することが可能であるが、本実施形態では、最大4列の垂直ラインを単位とする間引きパターンに対応可能な場合を例に説明を行なう。なお、ここでは、間引きを行なわない全画素読出しの場合も間引きパターンの1つとして扱う。   The present invention can be applied to any thinning pattern, but in the present embodiment, a case where it is possible to deal with a thinning pattern in units of a maximum of four vertical lines will be described as an example. Note that, here, all pixel readout without thinning is also treated as one of the thinning patterns.

図3に示されるように、垂直ライン4列を間引きパターンの単位(最大単位)とする場合、合計15通りの間引きパターンA0〜A14が可能である。図2では、白色の画素が読み出される画素(有効画素)であり、灰色の画素が間引かれる画素である。すなわち、パターンA0は、間引きが行われない場合であり、パターンA1〜A4は垂直ライン4列毎に1ライン間引かれる場合である。また、パターンA5〜A10は垂直ライン4列毎に2ライン間引かれる場合、パターンA11〜A14は、垂直ライン4列毎に3ライン間引かれる場合に対応する。   As shown in FIG. 3, when four vertical lines are used as thinning pattern units (maximum units), a total of 15 thinning patterns A0 to A14 are possible. In FIG. 2, white pixels are read pixels (effective pixels), and gray pixels are thinned out pixels. That is, the pattern A0 is a case where thinning is not performed, and the patterns A1 to A4 are cases where one line is thinned every four vertical lines. The patterns A5 to A10 correspond to the case where two lines are thinned out for every four vertical lines, and the patterns A11 to A14 correspond to the case where three lines are thinned out for every four vertical lines.

図4は、垂直ライン4列を間引きパターンの単位とした場合の欠陥画素データテーブルの構成を模式的に示す図である。4列を間引きバターンの単位とした本実施形態では、欠陥位置情報メモリ15は、4つのメモリ(第1メモリ〜第4メモリ)から構成される(図5参照)。   FIG. 4 is a diagram schematically showing a configuration of a defective pixel data table when four vertical lines are used as a thinning pattern unit. In the present embodiment in which four columns are used as units of thinning patterns, the defect position information memory 15 is composed of four memories (first memory to fourth memory) (see FIG. 5).

欠陥画素の総数がn個の場合、第1メモリ151〜第4メモリ154は、各々深さn/4に設定される。ここで深さn/4とは、nが4で割り切れる場合にはその商に対応する数の2次元座標値を格納するためのメモリ容量であり、nが4で割り切れない場合にはその商に1を加えた数に対応した2次元座標値を格納するためのメモリ容量のことである。なお、余りがある場合において、第1メモリ151〜第4メモリ154の一部のみを商に1を加えた数に対応したメモリ容量とし、残りを商に対応した数のメモリ容量として最適化を行なうことも可能である。   When the total number of defective pixels is n, the first memory 151 to the fourth memory 154 are each set to a depth n / 4. Here, the depth n / 4 is a memory capacity for storing the number of two-dimensional coordinate values corresponding to the quotient when n is divisible by 4, and when n is not divisible by 4, the depth is quotient. This is a memory capacity for storing a two-dimensional coordinate value corresponding to the number obtained by adding 1 to. When there is a remainder, the first memory 151 to the fourth memory 154 are optimized with the memory capacity corresponding to the number obtained by adding 1 to the quotient and the remaining memory capacity corresponding to the quotient. It is also possible to do this.

本実施形態において、欠陥画素の位置情報は、撮像素子12からの画素データの読み出しの順番、すなわち図2の矢印で示されるように、X軸方向へ主走査、Y軸方向へ副走査したときの順序にしたがって、その座標値(X1,Y1)、(X2,Y2)、・・・(Xn,Yn)が順次欠陥位置情報メモリ15に格納されている。   In the present embodiment, the position information of the defective pixels is obtained when the pixel data is read from the image sensor 12 in the order of reading, that is, when the main scan is performed in the X-axis direction and the sub-scan is performed in the Y-axis direction, as indicated by the arrows in FIG. The coordinate values (X1, Y1), (X2, Y2),... (Xn, Yn) are sequentially stored in the defect position information memory 15 in this order.

ここで欠陥画素の位置情報である座標値(Xi,Yi)は、添え字i(i=1,2,・・・,n)の順番で第1メモリ151〜第4メモリ154に循環的に振り分けられる。すなわち、(X1,Y1)は第1メモリのアドレスM1_AD(1)に格納され、(X2,Y2)は第2メモリのアドレスM2_AD(1)に格納される。また、(X3,Y3)は第3メモリのアドレスM3_AD(1)に格納され、(X4,Y4)は第4メモリのアドレスM4_AD(1)に格納される。そして(X5,Y5)は、再び第1メモリのアドレスM1_AD(2)に格納され、以下同様に第2メモリ2〜第4メモリの各々に欠陥画素の座標値が格納される。同様の処理は最後の座標値(Xn,Yn)が格納されるまで繰り返される。   Here, the coordinate value (Xi, Yi), which is the position information of the defective pixel, is cyclically transmitted to the first memory 151 to the fourth memory 154 in the order of the subscript i (i = 1, 2,..., N). Sorted. That is, (X1, Y1) is stored at the address M1_AD (1) of the first memory, and (X2, Y2) is stored at the address M2_AD (1) of the second memory. Further, (X3, Y3) is stored at the address M3_AD (1) of the third memory, and (X4, Y4) is stored at the address M4_AD (1) of the fourth memory. (X5, Y5) is stored again at the address M1_AD (2) of the first memory, and similarly, the coordinate values of the defective pixels are stored in each of the second memory 2 to the fourth memory. Similar processing is repeated until the last coordinate value (Xn, Yn) is stored.

したがって、本実施形態のようにメモリの数が4個の場合、添え字がi=4k+1(k=0,1,・・・)の座標値は第1メモリに、i=4k+2の座標値は第2メモリに、i=4k+3の座標値は第3メモリに、i=4k+4の座標値は第4メモリに格納される。   Therefore, when the number of memories is four as in the present embodiment, the coordinate value with the subscript i = 4k + 1 (k = 0, 1,...) Is in the first memory, and the coordinate value with i = 4k + 2 is In the second memory, the coordinate value i = 4k + 3 is stored in the third memory, and the coordinate value i = 4k + 4 is stored in the fourth memory.

図5は、本実施形態の画素欠陥補正装置14の構成を模式的に示すブロック図であり、図5を参照して画素欠陥補正装置14の構成について説明する。   FIG. 5 is a block diagram schematically showing the configuration of the pixel defect correction apparatus 14 of the present embodiment. The configuration of the pixel defect correction apparatus 14 will be described with reference to FIG.

画素欠陥補正装置14は、画素位置監視部20、アドレス比較部21、一致信号出力制御部22、アドレス管理部23、間引き情報管理部24、および欠陥補正演算部25から主に構成される。   The pixel defect correction device 14 mainly includes a pixel position monitoring unit 20, an address comparison unit 21, a coincidence signal output control unit 22, an address management unit 23, a thinning information management unit 24, and a defect correction calculation unit 25.

欠陥補正演算部25は、従来周知の方法を用いて、欠陥画素の画素データを隣接する正常画素の画素データを用いて補正する回路である。すなわち、撮像素子12から出力された画像信号は、色分解処理などの所定の信号処理を経た後、図2の順序に従った画素データとして欠陥補正演算部25に順次入力される。欠陥補正演算部25は、入力された画素データが欠陥画素のものに対応する場合には、隣接する正常画素の画素データを用いて画素データを補正して出力する。なお、入力画素データが欠陥画素であるか否かは、後述する一致信号出力制御部22からの信号に基づいて判断される。   The defect correction calculation unit 25 is a circuit that corrects pixel data of defective pixels using pixel data of adjacent normal pixels using a conventionally known method. That is, the image signal output from the image pickup device 12 is subjected to predetermined signal processing such as color separation processing, and then sequentially input to the defect correction calculation unit 25 as pixel data according to the sequence of FIG. When the input pixel data corresponds to that of the defective pixel, the defect correction calculation unit 25 corrects and outputs the pixel data using the pixel data of the adjacent normal pixels. Whether or not the input pixel data is a defective pixel is determined based on a signal from a coincidence signal output control unit 22 described later.

画素位置監視部20は、入力画素データに対応し、アドレス比較部21において比較される画素の位置を監視・管理するための回路であり、X軸カウンタ201およびY軸カウンタ202を備える。X軸カウンタ201、Y軸カウンタ202は、図2に示された2次元座標(x,y)のX軸成分およびY軸成分の値にそれぞれ対応する。   The pixel position monitoring unit 20 is a circuit for monitoring and managing the position of the pixel corresponding to the input pixel data and compared in the address comparison unit 21, and includes an X-axis counter 201 and a Y-axis counter 202. The X-axis counter 201 and the Y-axis counter 202 correspond to the values of the X-axis component and the Y-axis component of the two-dimensional coordinates (x, y) shown in FIG.

本実施形態では、X軸カウンタ201、およびY軸カウンタ202に保持される座標値(x,y)は、アドレス比較部21において現在比較対象とされている画素グループ(4画素)の先頭の画素のX軸座標値、Y軸座標値を表わす。   In the present embodiment, the coordinate values (x, y) held in the X-axis counter 201 and the Y-axis counter 202 are the first pixel of the pixel group (four pixels) currently being compared in the address comparison unit 21. Represents the X-axis coordinate value and the Y-axis coordinate value.

また、画素位置監視部20は、欠陥補正演算部25への画素データの入力を検知し、X軸カウンタ201、Y軸カウンタ202の各値を更新する。このとき、間引き情報管理部24からの間引き情報に基づいてX軸カウンタ201、Y軸カウンタ202のシフト量が各々制御される(後述)。   Further, the pixel position monitoring unit 20 detects input of pixel data to the defect correction calculation unit 25 and updates each value of the X-axis counter 201 and the Y-axis counter 202. At this time, the shift amounts of the X-axis counter 201 and the Y-axis counter 202 are controlled based on the thinning information from the thinning information management unit 24 (described later).

図5に示されるように、アドレス比較部21は、第1比較部211〜第4比較部214とY軸比較部215とを備える。第1比較部211〜第4比較部214は、比較対象となっている4画素のX軸座標値と第1メモリ151〜第4メモリ154に格納されている4つの欠陥画素のX座標値とを比較するための回路である。また、Y軸比較部215は、比較対象となっている4画素のY軸座標値と第1メモリ151〜第4メモリ154に格納されている4つの欠陥画素のY座標値とを比較するための回路である。   As shown in FIG. 5, the address comparison unit 21 includes a first comparison unit 211 to a fourth comparison unit 214 and a Y-axis comparison unit 215. The first comparison unit 211 to the fourth comparison unit 214 include the X-axis coordinate values of the four pixels to be compared and the X-coordinate values of the four defective pixels stored in the first memory 151 to the fourth memory 154. Is a circuit for comparing. Further, the Y-axis comparison unit 215 compares the Y-axis coordinate values of the four pixels to be compared with the Y-coordinate values of the four defective pixels stored in the first memory 151 to the fourth memory 154. Circuit.

ここで、比較対象となる4画素のX軸座標値は、X軸カウンタ201の値を先頭とした連続する4つの座標値である。すなわち、X軸カウンタ201の値をxとすると、比較対象となる4つの画素のX軸座標値は、それぞれ“x”、“x+1”、“x+2”、“x+3”となる。なお、x+1、x+2、x+3は加算器26〜28においてxの値に1、2、3の値を加算することにより得られる。なお、X軸カウンタ201の値は、比較対象となる画素の座標値を特定し、アドレス比較部21にその座標値を供給することができるものであれば、先頭の座標値である必要はなく、例えば減算器や、減算器と加算器の組合せを利用して用いられてもよい。   Here, the X-axis coordinate values of the four pixels to be compared are four consecutive coordinate values starting from the value of the X-axis counter 201. That is, if the value of the X-axis counter 201 is x, the X-axis coordinate values of the four pixels to be compared are “x”, “x + 1”, “x + 2”, and “x + 3”, respectively. Note that x + 1, x + 2, and x + 3 are obtained by adding the values 1, 2, and 3 to the value x in the adders 26 to 28. Note that the value of the X-axis counter 201 need not be the first coordinate value as long as the coordinate value of the pixel to be compared is specified and the coordinate value can be supplied to the address comparison unit 21. For example, a subtractor or a combination of a subtracter and an adder may be used.

本実施形態において、第1比較部211〜第4比較部214、およびY軸比較部215は、それぞれ4つの比較器を備える。例えば、第1比較部211には、X軸カウンタ201の値xが入力され、第1メモリ151〜第4メモリ154に格納された4つのX軸座標値と比較される。同様に、第2比較部212〜第4比較部214には、それぞれX軸カウンタ201の値xに1、2、3を加えたx+1、x+2、x+3の値がそれぞれ入力され、各々第1メモリ151〜第4メモリ154に格納された4つのX軸座標値と比較される。   In the present embodiment, each of the first comparison unit 211 to the fourth comparison unit 214 and the Y-axis comparison unit 215 includes four comparators. For example, the value x of the X-axis counter 201 is input to the first comparison unit 211 and compared with four X-axis coordinate values stored in the first memory 151 to the fourth memory 154. Similarly, the values of x + 1, x + 2, and x + 3 obtained by adding 1, 2, and 3 to the value x of the X-axis counter 201 are input to the second comparison unit 212 to the fourth comparison unit 214, respectively. 151 to the four X-axis coordinate values stored in the fourth memory 154.

また、本実施形態において、比較対象となる4つの画素は、同一水平ライン上に存在し、4つの画素のY軸座標値は同一であるため、Y軸比較部215ではY軸カウンタ202の値のみが比較対象となる。すなわち、Y軸比較部215には、Y軸カウンタ202の値が入力され、第1メモリ151〜第4メモリ154に格納された4つのY軸座標値と各々比較される。   In the present embodiment, the four pixels to be compared exist on the same horizontal line, and the Y-axis coordinate values of the four pixels are the same. Therefore, the Y-axis comparison unit 215 determines the value of the Y-axis counter 202. Only will be compared. That is, the value of the Y-axis counter 202 is input to the Y-axis comparison unit 215 and compared with the four Y-axis coordinate values stored in the first memory 151 to the fourth memory 154, respectively.

第1メモリ151〜第4メモリ154からは、データバスDBを介してそれぞれ4つの欠陥画素に対応する4つのX軸座標値が、第1比較部211〜第4比較部214の各々に入力され、4つのY軸座標値がY軸比較部215に入力される。このとき、第1メモリ151〜第4メモリ154からは、それぞれ第1アドレスカウンタ155〜第4アドレスカウンタ158の読み出しアドレス値に基づいてX軸座標値およびY軸座標値が読み出される。また、第1アドレスカウンタ155〜第4アドレスカウンタ158の値は、アドレス管理部23により管理される。   From the first memory 151 to the fourth memory 154, four X-axis coordinate values respectively corresponding to four defective pixels are input to each of the first comparison unit 211 to the fourth comparison unit 214 via the data bus DB. Four Y-axis coordinate values are input to the Y-axis comparison unit 215. At this time, the X-axis coordinate value and the Y-axis coordinate value are read from the first memory 151 to the fourth memory 154 based on the read address values of the first address counter 155 to the fourth address counter 158, respectively. The values of the first address counter 155 to the fourth address counter 158 are managed by the address management unit 23.

アドレス比較部21の第1比較部211〜第4比較部214の各々は、入力されたX軸カウンタ201からのX軸座標値が第1メモリ151〜第4メモリ154からの欠陥画素のX軸座標値の何れかと一致した場合に一致信号を各々出力する。第1比較部211〜第4比較部214の各々から出力された一致信号は、それぞれ一致信号出力制御部22およびアドレス管理部23に入力される。   In each of the first comparison unit 211 to the fourth comparison unit 214 of the address comparison unit 21, the input X-axis coordinate value from the X-axis counter 201 is the X axis of the defective pixel from the first memory 151 to the fourth memory 154. A coincidence signal is output when it coincides with one of the coordinate values. The match signals output from each of the first comparison unit 211 to the fourth comparison unit 214 are input to the match signal output control unit 22 and the address management unit 23, respectively.

なお、第1比較部211〜第4比較部214からの一致信号の出力は、Y軸比較部215における比較結果に基づいて制御される。すなわち、第1比較部211〜第4比較部214の各々において、第1メモリ151〜第4メモリ154から読み出されたY軸座標値がY軸カウンタ202の値と一致するメモリから出力されたX軸座標値が入力された比較器のみが、一致信号を出力することが可能である。   Note that the output of the coincidence signal from the first comparison unit 211 to the fourth comparison unit 214 is controlled based on the comparison result in the Y-axis comparison unit 215. That is, in each of the first comparison unit 211 to the fourth comparison unit 214, the Y-axis coordinate value read from the first memory 151 to the fourth memory 154 is output from the memory that matches the value of the Y-axis counter 202. Only the comparator to which the X-axis coordinate value is input can output a coincidence signal.

すなわち、画素位置監視部20のX軸カウンタ201、Y軸カウンタ202の値をそれぞれx、yとすると、(x,y)=(Xi,Yi)、(x+1,y)=(Xi+1,Yi+1)、(x+2,y)=(Xi+2,Yi+2)、または(x+3,y)=(Xi+3,Yi+3)が成り立つ場合に一致信号が各比較部211〜214から出力される。 That is, assuming that the values of the X-axis counter 201 and the Y-axis counter 202 of the pixel position monitoring unit 20 are x and y, respectively, (x, y) = (X i , Y i ), (x + 1, y) = (X i +1 , Y i + 1 ), (x + 2, y) = (X i + 2 , Y i + 2 ), or (x + 3, y) = (X i + 3 , Y i + 3 ) A signal is output from each of the comparison units 211 to 214.

比較部211〜214から出力された一致信号は、一致信号出力制御部22およびアドレス管理部23に入力される。アドレス管理部23は、一致数カウント部231と先頭メモリ監視部232とを備え、アドレス管理部23に入力された一致信号は一致数カウント部231においてその数が計数される。一致数カウント部231において計数された結果は先頭メモリ監視部232に送られる。   The coincidence signals output from the comparison units 211 to 214 are input to the coincidence signal output control unit 22 and the address management unit 23. The address management unit 23 includes a coincidence number counting unit 231 and a head memory monitoring unit 232, and the coincidence signal input to the address management unit 23 is counted by the coincidence number counting unit 231. The result counted in the coincidence number counting unit 231 is sent to the head memory monitoring unit 232.

先頭メモリ監視部232は、一致信号の数に応じて後述する先頭メモリの管理を行なうとともに、欠陥位置情報メモリ15の第1アドレスカウンタ155〜第4アドレスカウンタ158の値を一致信号の数に基づいて更新する。一方、一致信号出力制御部22では、後述するように、間引き情報管理部24からの間引き情報に基づいて、欠陥補正演算部25へ出力される各々の一致信号の出力の可否が制御される。   The head memory monitoring unit 232 manages the head memory, which will be described later, according to the number of coincidence signals, and the values of the first address counter 155 to the fourth address counter 158 of the defect position information memory 15 are based on the number of coincidence signals. Update. On the other hand, the coincidence signal output control unit 22 controls whether to output each coincidence signal output to the defect correction calculation unit 25 based on the thinning information from the thinning information management unit 24, as will be described later.

欠陥補正演算部25では、一致信号出力制御部22から出力された一致信号に基づいて入力された画素データが欠陥画素に対応するか否かを判定し、入力画素データが欠陥画素に対応する場合には従来周知の方法を用いて、その画素データを正常画素の画素データに基づいて補正(補間)し(正常画素の画素データでの置き換えや正常画素の画素データを用いた画素欠陥補正演算など)、補正された画素データを出力する。なお、入力画素データが欠陥画素に対応しない場合には、入力画素データはそのまま出力される。   The defect correction calculation unit 25 determines whether or not the pixel data input based on the coincidence signal output from the coincidence signal output control unit 22 corresponds to the defective pixel, and the input pixel data corresponds to the defective pixel. The pixel data is corrected (interpolated) based on the pixel data of normal pixels by using a conventionally known method (such as replacement with pixel data of normal pixels or pixel defect correction calculation using pixel data of normal pixels) ), Output corrected pixel data. If the input pixel data does not correspond to a defective pixel, the input pixel data is output as it is.

次に、図5〜図7を参照して、本実施形態の画素欠陥補正装置14および欠陥位置情報メモリ15における欠陥画素探索処理の動作の概要について説明する。なお、図6は、本実施形態の欠陥画素探索処理の概略を示すフローチャートであり、図7は一致信号出力制御部22の構成を模式的に示すブロック図である。   Next, with reference to FIGS. 5 to 7, an outline of the operation of the defective pixel search process in the pixel defect correction device 14 and the defect position information memory 15 of the present embodiment will be described. FIG. 6 is a flowchart showing an outline of the defective pixel search process of the present embodiment, and FIG. 7 is a block diagram schematically showing the configuration of the coincidence signal output control unit 22.

図3に示された間引きモード(間引きのない場合も含む)A0〜A14の中の何れかのモードが選択され、例えばカメラのレリーズボタン(図示せず)が押されると図6の処理が開始される。   When one of the thinning modes (including the case without thinning) A0 to A14 shown in FIG. 3 is selected and a release button (not shown) of the camera is pressed, for example, the processing of FIG. 6 starts. Is done.

ステップS101では、初期化処理が実行される。例えば、間引き情報管理部24の各制御パラメータが間引きモードに合わせて初期設定され、画素位置監視部20のX軸カウンタ201、Y軸カウンタ202の値が(0、0)に初期化される。また、間引き情報管理部24において設定された制御パラメータに合わせて、一致信号出力制御部22のスイッチのオン/オフが設定され、アドレス管理部23の先頭メモリ、欠陥位置情報メモリ15の第1〜第4アドレスカウンタ155〜158の値がそれぞれ初期値に設定される。   In step S101, an initialization process is executed. For example, each control parameter of the thinning information management unit 24 is initialized according to the thinning mode, and the values of the X-axis counter 201 and the Y-axis counter 202 of the pixel position monitoring unit 20 are initialized to (0, 0). Further, on / off of the switch of the coincidence signal output control unit 22 is set according to the control parameter set in the thinning information management unit 24, and the first memory in the address management unit 23 and the first to first in the defect position information memory 15 are set. The values of the fourth address counters 155 to 158 are set to initial values.

ステップS102では、選択された間引きモードに従って、撮像素子12から有効画素の画素データが欠陥補正演算部25に入力される。なお、ここで有効画素とは、撮像素子12からデータが読み出される画素(間引きされる画素以外の画素)のことである。ステップS103では、欠陥補正演算部25に入力された有効画素データが、最初の入力であるか否かが判定される。   In step S <b> 102, pixel data of effective pixels is input from the image sensor 12 to the defect correction calculation unit 25 in accordance with the selected thinning mode. Here, an effective pixel is a pixel from which data is read out from the image sensor 12 (a pixel other than a pixel to be thinned out). In step S103, it is determined whether or not the effective pixel data input to the defect correction calculation unit 25 is the first input.

ステップS103において、入力が最初の画素データであると判定された場合には、ステップS105に処理は進むが、そうでない場合には、ステップS104において、画素位置監視部20のX軸カウンタ201、Y軸カウンタ202の値が間引き情報管理部24の間引きモードに対応して設定された各パラメータの値に応じて更新される。   If it is determined in step S103 that the input is the first pixel data, the process proceeds to step S105. If not, in step S104, the X-axis counter 201, Y of the pixel position monitoring unit 20 is processed. The value of the axis counter 202 is updated according to the value of each parameter set corresponding to the thinning mode of the thinning information management unit 24.

ステップS105では、X軸、Y軸カウンタ201、202の値に基づいて、一致信号出力制御部22のスイッチの更新が行なわれる。図7に示されるように、一致信号出力制御部22には、4つのスイッチS1〜S4が設けられており、各スイッチの一方の端子は、それぞれ第1比較部211〜第4比較部214の各々の出力端子に接続されている。また、各スイッチの他方の端子は、欠陥補正演算部25へと各々接続されている。スイッチS1〜S4のオン/オフ状態の切り替えは、間引き情報管理部24からの制御信号により各々制御される。   In step S105, the switch of the coincidence signal output control unit 22 is updated based on the values of the X-axis and Y-axis counters 201 and 202. As shown in FIG. 7, the coincidence signal output control unit 22 is provided with four switches S <b> 1 to S <b> 4, and one terminal of each switch is connected to each of the first comparison unit 211 to the fourth comparison unit 214. Connected to each output terminal. The other terminal of each switch is connected to the defect correction calculation unit 25. Switching of the on / off states of the switches S1 to S4 is controlled by a control signal from the thinning information management unit 24, respectively.

ステップS106では、アドレス比較部21において、画素位置監視部20のX軸、Y軸カウンタ201、202の値(およびX軸カウンタ値に+1〜+3された値)が、欠陥位置情報メモリ15の第1アドレスカウンタ155〜第4アドレスカウンタ158の示すアドレスに格納された欠陥画素位置情報と比較される。   In step S <b> 106, in the address comparison unit 21, the values of the X-axis and Y-axis counters 201 and 202 of the pixel position monitoring unit 20 (and values obtained by adding +1 to +3 to the X-axis counter value) are stored in the first position of the defect position information memory 15. It is compared with the defective pixel position information stored at the addresses indicated by the first address counter 155 to the fourth address counter 158.

アドレス比較部21の第1〜第4比較部211〜214の何れかで一致するものがあると、その比較器から一致信号が出力される。すなわち、ステップS107では、一致信号が出力された場合には、欠陥画素が含まれるものとしてステップS108に移り、何れの比較器からも一致信号が出力されない場合は、ステップS112に処理は移る。   If there is a match in any of the first to fourth comparison units 211 to 214 of the address comparison unit 21, a match signal is output from the comparator. That is, in step S107, if a coincidence signal is output, the process proceeds to step S108 assuming that defective pixels are included. If no coincidence signal is output from any comparator, the process proceeds to step S112.

ステップS108では、アドレス管理部23の一致数カウント部231において、アドレス比較部21から出力された一致信号の数が計数される。次にステップS109では、先頭メモリ監視部232において、一致数カウント部231の計数結果に基づいて、先頭メモリの更新が行なわれる。ステップS110では、更新された先頭メモリに基づいて欠陥位置情報メモリ15の第1〜第4アドレスカウンタ155〜158の値が更新される。   In step S108, the number of coincidence signals output from the address comparison unit 21 is counted in the coincidence number counting unit 231 of the address management unit 23. In step S109, the head memory monitoring unit 232 updates the head memory based on the count result of the coincidence number counting unit 231. In step S110, the values of the first to fourth address counters 155 to 158 of the defect position information memory 15 are updated based on the updated head memory.

また、ステップS111では、一致信号出力制御部22を介して欠陥補正演算部25に一致信号が入力されると、その画素データに対して従来周知の欠陥補正演算処理が実行され、補正された画素データが欠陥補正演算部25から出力される。一方、一致信号が、欠陥補正演算部25に一致信号が入力されない場合には、入力された画素データはそのまま出力される。すなわち、一致信号出力制御部22から欠陥補正演算部25に一致信号が入力される場合には、入力された画素データは欠陥画素に対応し、一致信号が入力されない場合には、正常画素に対応している。また、一致信号出力制御部22からの一致信号の出力は、一致信号出力制御部22内のスイッチS1〜S4のオン/オフ状態に基づいて制御される。   In step S111, when a coincidence signal is input to the defect correction computation unit 25 via the coincidence signal output control unit 22, a conventionally well-known defect correction computation process is performed on the pixel data, thereby correcting the pixel. Data is output from the defect correction calculation unit 25. On the other hand, when the coincidence signal is not input to the defect correction calculation unit 25, the input pixel data is output as it is. That is, when the coincidence signal is input from the coincidence signal output control unit 22 to the defect correction calculation unit 25, the input pixel data corresponds to the defective pixel, and when the coincidence signal is not input, it corresponds to the normal pixel. is doing. The output of the coincidence signal from the coincidence signal output control unit 22 is controlled based on the on / off states of the switches S1 to S4 in the coincidence signal output control unit 22.

ステップS112では、入力が最後の画素データに対応するか否かが判定され、最後の入力ではない場合には、ステップS102以下の処理が繰り返される。一方、欠陥補正演算部25への画素データの入力が最後の入力の場合、この処理は終了する。   In step S112, it is determined whether or not the input corresponds to the last pixel data. If the input is not the last input, the processes in and after step S102 are repeated. On the other hand, when the pixel data input to the defect correction calculation unit 25 is the last input, this process ends.

なお、ステップS104とステップS105や、ステップS108〜S110とステップS111などの処理は、実際には同時並行的行われるものであり、図6の処理手順は、説明の上での便宜的なものに過ぎない。   Note that steps S104 and S105, steps S108 to S110, and step S111 are actually performed in parallel, and the processing procedure of FIG. 6 is for convenience of explanation. Not too much.

次に、図3〜図5、図7を参照して、本実施形態の欠陥画素探索処理における各部の動作について、具体例を挙げてより詳細に説明を行なう。   Next, with reference to FIG. 3 to FIG. 5 and FIG. 7, the operation of each unit in the defective pixel search process according to the present embodiment will be described in more detail with specific examples.

例えば、間引きモードA5が設定されている場合に、レリーズスイッチが押されると、撮像素子12からは、まず画素座標(0、2)の画素データが読み出されて欠陥補正演算部25に入力される。   For example, when the thinning mode A5 is set and the release switch is pressed, the pixel data of the pixel coordinates (0, 2) is first read from the image sensor 12 and input to the defect correction calculation unit 25. The

このとき、X軸カウンタ201、Y軸カウンタ202の値は(0、0)に初期設定されており、欠陥位置情報メモリ15の第1アドレスカウンタ155〜第4アドレスカウンタ158の値は、それぞれM1−AD(1)、M2−AD(1)、M3−AD(1)、M4−AD(1)に、先頭メモリは、M1−AD(1)に初期設定されている。また、一致信号出力制御部22では、間引きパターンに対応してスイッチS1、S2がオフ状態とされ、スイッチS3、S4がオン状態に設定される。   At this time, the values of the X-axis counter 201 and the Y-axis counter 202 are initially set to (0, 0), and the values of the first address counter 155 to the fourth address counter 158 of the defect position information memory 15 are M1 respectively. -AD (1), M2-AD (1), M3-AD (1), M4-AD (1), and the top memory is initially set to M1-AD (1). In the coincidence signal output control unit 22, the switches S1 and S2 are turned off and the switches S3 and S4 are set to the on state corresponding to the thinning pattern.

このときアドレス比較部21において比較対象とされるのは、初めの4画素の画素座標(0,0)、(1,0)、(2,0)、(3,0)と、第1〜第4メモリの各アドレスM1−AD(1)、M2−AD(1)、M3−AD(1)、M4−AD(1)に格納された4つの欠陥画素位置座標(X1,Y1)、(X2,Y2)、(X3,Y3)、(X4,Y4)である。   At this time, the address comparison unit 21 compares the first four pixels with pixel coordinates (0, 0), (1, 0), (2, 0), (3, 0), Four defective pixel position coordinates (X1, Y1) stored in each address M1-AD (1), M2-AD (1), M3-AD (1), M4-AD (1) of the fourth memory ( X2, Y2), (X3, Y3), (X4, Y4).

すなわち、第1比較部211では、X軸カウンタ201の値「0」とX1〜X4の各々の値が比較され、第2比較部212では「X軸カウンタ値+1」に対応する値「1」とX1〜X4の各々の値が比較される。同様に、第3および第4比較部213、214では、「X軸カウンタ値+2」、「X軸カウンタ値+3」に対応する値「2」および「3」が各々X1〜X4の値と比較される。またY軸比較部215では、Y軸カウンタ202の値「0」とY1〜Y4の各値が比較される。   That is, the first comparison unit 211 compares the value “0” of the X-axis counter 201 with each value of X1 to X4, and the second comparison unit 212 compares the value “1” corresponding to “X-axis counter value + 1”. And the values of X1 to X4 are compared. Similarly, in the third and fourth comparison units 213 and 214, the values “2” and “3” corresponding to “X-axis counter value +2” and “X-axis counter value +3” are compared with the values of X1 to X4, respectively. Is done. Further, the Y-axis comparison unit 215 compares the value “0” of the Y-axis counter 202 with each value of Y1 to Y4.

また、画素(0,0)、(1,0)、(2,0)、(3,0)が比較対象とされるとき、有効画素は(2,0)、(3,0)なので、一致信号出力制御部22のスイッチS1〜S4は、有効画素(2,0)、(3,0)に対応するスイッチS3、S4のみがオン状態とされ、間引き画素に対応するスイッチS1、S2は、オフ状態とされる。   Also, when the pixels (0, 0), (1, 0), (2, 0), (3, 0) are to be compared, the effective pixels are (2, 0), (3, 0). As for the switches S1 to S4 of the coincidence signal output control unit 22, only the switches S3 and S4 corresponding to the effective pixels (2, 0) and (3, 0) are turned on, and the switches S1 and S2 corresponding to the thinned pixels are , Is turned off.

例えば、8つの画素(0,0)〜(0,7)のうち、2つの画素(1,0)と(2,0)が欠陥画素の場合、第1メモリ151のアドレスM1−AD(1)、第2メモリ152のアドレスM2−AD(1)には、座標値(1,0)および(2,0)がそれぞれ(X1,Y1)、(X2,Y2)として格納されている。したがって、画素座標(0,0)、(1,0)、(2,0)、(3,0)と欠陥画素位置座標(X1,Y1)、(X2,Y2)、(X3,Y3)、(X4,Y4)が比較されるとき、一致信号は第2比較部212および第3比較部213から出力される。   For example, when two pixels (1, 0) and (2, 0) among the eight pixels (0, 0) to (0, 7) are defective pixels, the address M1-AD (1) of the first memory 151 ), Coordinate values (1, 0) and (2, 0) are stored as (X1, Y1) and (X2, Y2) at the address M2-AD (1) of the second memory 152, respectively. Therefore, pixel coordinates (0,0), (1,0), (2,0), (3,0) and defective pixel position coordinates (X1, Y1), (X2, Y2), (X3, Y3), When (X4, Y4) are compared, the coincidence signal is output from the second comparison unit 212 and the third comparison unit 213.

一致信号出力制御部22では、第3および第4比較部213、214に接続されたスイッチS3、S4がオン状態とされているので、第3比較部213から出力された一致信号が、欠陥補正演算部25に入力される。これにより、欠陥補正演算部25は、入力された画素(2,0)の画素データに対して補正処理が実行され、従来周知のいずれかの方法で補正された画素データが欠陥補正演算部25から出力される。なお、画素(2,0)ではなく画素(3,0)が欠陥画素の場合には、第4比較部214からの一致信号が欠陥補正演算部25に入力される。したがって、欠陥補正演算部25では、次の画素(3,0)に対応する画素データが次に入力されたときに欠陥補正を行なうように制御される。   In the coincidence signal output control unit 22, since the switches S3 and S4 connected to the third and fourth comparison units 213 and 214 are in an on state, the coincidence signal output from the third comparison unit 213 is corrected for defects. Input to the calculation unit 25. Thereby, the defect correction calculation unit 25 performs correction processing on the pixel data of the input pixel (2, 0), and the pixel data corrected by any conventionally known method is the defect correction calculation unit 25. Is output from. If the pixel (3, 0) is not a defective pixel but a pixel (2, 0), the coincidence signal from the fourth comparison unit 214 is input to the defect correction calculation unit 25. Therefore, the defect correction calculation unit 25 is controlled to perform defect correction when the pixel data corresponding to the next pixel (3, 0) is next input.

一方、アドレス管理部23では、アドレス比較部21からの一致信号の数が一致数カウント部231において計数される。今、一致信号は、第2比較部212および第3比較部213から出力されているので、一致信号の数は「2」であり、先頭メモリ監視部232は、先頭メモリを「現在」の先頭メモリM1−AD(1)から2メモリ分シフトし、先頭メモリはM3−AD(1)に変更される。   On the other hand, in the address management unit 23, the number of coincidence signals from the address comparison unit 21 is counted in the coincidence number counting unit 231. Now, since the coincidence signals are output from the second comparison unit 212 and the third comparison unit 213, the number of coincidence signals is “2”, and the head memory monitoring unit 232 sets the head memory as the head of “current”. Shifting from the memory M1-AD (1) by two memories, the head memory is changed to M3-AD (1).

なお、先頭メモリは、撮像素子12における画素配列にしたがって、第1〜第4メモリに順次格納された欠陥画素位置座標の順番に従って更新される。すなわち、先頭メモリは、(X1,Y1)、(X2,Y2)、・・・、(X5,Y5)、・・・、(Xn,Yn)を格納したM1−AD(1)、M2−AD(1)、・・・、M1−AD(2)、・・・、M4−AD(n/4)の順で移動される。   The head memory is updated according to the order of the defective pixel position coordinates sequentially stored in the first to fourth memories in accordance with the pixel arrangement in the image sensor 12. That is, the top memory is M1-AD (1), M2-AD storing (X1, Y1), (X2, Y2),..., (X5, Y5),. (1),..., M1-AD (2),..., M4-AD (n / 4).

このとき、第1アドレスカウンタ155のアドレス値M1−AD(1)、および第2アドレスカウンタ156のアドレス値M2−AD(1)は、カウントアップされ、M1−AD(2)、M2−AD(2)に更新される。すなわち、アドレス比較部21において比較対象となる第1〜第4メモリに格納された欠陥画素位置座標は、上記順番において先頭メモリ以降の4画素分であり、先頭メモリの移動は、探索済みの欠陥画素位置座標を探索候補から外す役割を果たす。   At this time, the address value M1-AD (1) of the first address counter 155 and the address value M2-AD (1) of the second address counter 156 are counted up, and M1-AD (2), M2-AD ( Updated to 2). That is, the defective pixel position coordinates stored in the first to fourth memories to be compared in the address comparing unit 21 are the four pixels after the first memory in the above order, and the movement of the first memory is the defect that has been searched. It plays a role of removing pixel position coordinates from search candidates.

以上で、間引きモードA5の最初の有効画素(2,0)が、欠陥補正演算部25に入力されたときの処理は終了する。次に、図3に示されるように、間引きモードA5の2番目の有効画素(3,0)が、欠陥補正演算部25に入力される。このとき、画素位置監視部20のX軸カウンタ201の値は、1つ前に入力された画素データの画素(1番目有効画素)と今回入力された画素データの画素(2番目有効画素)との間のシフト画素数分(前の入力画素データと現入力画素データとの間でシフトした画素数分)、インクリメントされる。   This completes the process when the first effective pixel (2, 0) in the thinning mode A5 is input to the defect correction calculation unit 25. Next, as shown in FIG. 3, the second effective pixel (3, 0) in the thinning mode A <b> 5 is input to the defect correction calculation unit 25. At this time, the value of the X-axis counter 201 of the pixel position monitoring unit 20 includes the pixel data pixel (first effective pixel) input immediately before and the pixel data pixel input this time (second effective pixel). Is incremented by the number of pixels shifted between (the number of pixels shifted between the previous input pixel data and the current input pixel data).

すなわち、今の場合、入力画素データは、画素(2,0)から画素(3,0)に対応する画素データへと1画素分シフトしたので、X軸カウンタ201の値は「0+1」、すなわち「1」とされ、画素位置監視部20の(X,Y)の値は、(1,0)とされる。したがって、アドレス比較部21では、4画素の座標値(1,0)、(2,0)、(3,0)、(4,0)と、現先頭メモリM3−AD(1)以降の4画素分に対応する欠陥画素位置座標(X3,Y3)、(X4,Y4)、(X5,Y5)、(X6,Y6)が各々比較される。   That is, in this case, since the input pixel data is shifted by one pixel from the pixel (2, 0) to the pixel data corresponding to the pixel (3, 0), the value of the X-axis counter 201 is “0 + 1”, “1” is set, and the value (X, Y) of the pixel position monitoring unit 20 is (1, 0). Therefore, in the address comparison unit 21, the coordinate values (1, 0), (2, 0), (3, 0), (4, 0) of the four pixels and the current head memory M3-AD (1) and subsequent 4 The defective pixel position coordinates (X3, Y3), (X4, Y4), (X5, Y5), (X6, Y6) corresponding to the pixels are respectively compared.

また、このときアドレス比較部21で比較対象とされる画素(1,0)、(2,0)、(3,0)、(4,0)のうち、有効画素に対応する画素は、(2,0)、(3,0)なので、一致信号出力制御部22のスイッチS1〜S4のうち、オン状態とされるのは、有効画素(2,0)、(3,0)のX座標値の比較を行う第2及び第3比較部212、213に接続されたスイッチS2、S3であり、スイッチS1、S4はオフ状態とされる。   At this time, among the pixels (1, 0), (2, 0), (3, 0), and (4, 0) to be compared by the address comparison unit 21, the pixel corresponding to the effective pixel is ( 2, 0), (3, 0), the switches S1 to S4 of the coincidence signal output control unit 22 are turned on in the X coordinates of the effective pixels (2, 0), (3, 0). The switches S2 and S3 are connected to the second and third comparison units 212 and 213 that compare the values, and the switches S1 and S4 are turned off.

今、欠陥位置情報メモリ15から比較対象として選ばれる4画素分の位置座標は、(X3,Y3)、(X4,Y4)、(X5,Y5)、(X6,Y6)であるが、(0,0)〜(0,7)の8画素において欠陥画素に対応するのは画素(1,0)と(2,0)のみであり、これらの座標値は(X1,Y1)、(X2,Y2)に格納されているので、この比較処理において一致信号が出力されることはない。したがって、先頭メモリや第1〜第4アドレスカウンタ155〜158の値が更新されることはなく、欠陥補正演算部25においても、画素(3,0)に対応する入力画素データは、補正を受けることなくそのまま出力される。   Now, the position coordinates for four pixels selected as the comparison object from the defect position information memory 15 are (X3, Y3), (X4, Y4), (X5, Y5), (X6, Y6). , 0) to (0, 7), only the pixels (1, 0) and (2, 0) correspond to the defective pixels, and their coordinate values are (X1, Y1), (X2, Y2), the coincidence signal is not output in this comparison process. Therefore, the values of the top memory and the first to fourth address counters 155 to 158 are not updated, and the input pixel data corresponding to the pixel (3, 0) is also corrected in the defect correction calculation unit 25. It is output without any change.

次に、欠陥補正演算部25には、3番目の有効画素(6,0)の画素データが入力される。このとき、X軸カウンタ201の値は、2番目の有効画素(3,0)から現在入力されている有効画素(6,0)へのシフト分、すなわち3画素分インクリメントされる。   Next, pixel data of the third effective pixel (6, 0) is input to the defect correction calculation unit 25. At this time, the value of the X-axis counter 201 is incremented by the shift from the second effective pixel (3, 0) to the currently input effective pixel (6, 0), that is, by 3 pixels.

すなわち、X軸カウンタ201の値は「1+3」、すなわち「4」とされ、画素位置監視部20の(X,Y)の値は、(4,0)とされる。したがって、アドレス比較部21では、4画素の座標値(4,0)、(5,0)、(6,0)、(7,0)と、現先頭メモリM3−AD(1)以降の4画素分に対応する欠陥画素位置座標(X3,Y3)、(X4,Y4)、(X5,Y5)、(X6,Y6)が各々比較され、以下同様の処理が繰り返される。   That is, the value of the X-axis counter 201 is “1 + 3”, that is, “4”, and the value of (X, Y) of the pixel position monitoring unit 20 is (4, 0). Therefore, in the address comparison unit 21, the coordinate values (4, 0), (5, 0), (6, 0), (7, 0) of the four pixels and the current head memory M3-AD (1) and subsequent 4 The defective pixel position coordinates (X3, Y3), (X4, Y4), (X5, Y5), (X6, Y6) corresponding to the pixels are respectively compared, and the same processing is repeated thereafter.

なお、X軸カウンタのシフト量や一致信号出力制御部22のスイッチS1〜S4のオン/オフの設定は、間引きモード毎に異なるが、これらの値は、間引きモード毎に間引き情報管理部24の制御パラメータとして格納されており、上で説明された処理は、これら制御パラメータの値に基づいて実行される。上記パターンA5の例では、制御パラメータは、水平方向へのシフト量として1、3の繰返し、垂直方向へのシフト量として水平ライン毎に1、スイッチ(S1、S2、S3、S4)のオン/オフ設定として(オフ、オフ、オン、オン)、(オフ、オン、オン、オフ)の繰返しが設定される。   Note that the shift amount of the X-axis counter and the ON / OFF setting of the switches S1 to S4 of the coincidence signal output control unit 22 are different for each thinning mode, but these values are different for each thinning mode. It is stored as control parameters, and the processing described above is executed based on the values of these control parameters. In the example of the pattern A5, the control parameter is a repetition of 1, 3 as the shift amount in the horizontal direction, 1 for each horizontal line as the shift amount in the vertical direction, and the on / off of the switches (S1, S2, S3, S4). As the off setting, (off, off, on, on) and (off, on, on, off) are repeated.

また、図2から明らかなように、X軸方向の走査が終了し、X軸カウンタ201の値がその最大値Xを越えると、Y軸カウンタ202の値が1インクリメントされ、X軸カウンタ201の値は0へとリセットされる。   As is apparent from FIG. 2, when scanning in the X-axis direction is completed and the value of the X-axis counter 201 exceeds the maximum value X, the value of the Y-axis counter 202 is incremented by 1, and the X-axis counter 201 The value is reset to 0.

以上のように、本実施形態によれば、間引きパターン毎に欠陥画素の位置情報を記録したデータテーブルを用意する必要がなく、全画素に対応した重複することのない欠陥画素情報を1つのデータテーブルとして保持すればよいので、メモリ容量を大幅に節約することができる。   As described above, according to the present embodiment, it is not necessary to prepare a data table in which position information of defective pixels is recorded for each thinning pattern, and non-overlapping defective pixel information corresponding to all pixels is stored as one data. Since it only has to be held as a table, the memory capacity can be saved greatly.

また、本実施形態では4列を間引きパターンの単位としたが、本発明によれば、同様に任意のm列を単位とする間引きパターンに対応してm個のメモリを設け、これに欠陥画素位置情報を循環的に振り分けて記録することにより、m個の欠陥画素の位置情報を同時に比較することができる。更に、間引きパターンに合わせて画素位置監視部のカウンタをカウントアップ(シフト)させているため、間引きが行なわれる間引きモードでは、間引き量に合わせて探索回数を減らすことができるので、高速な探索処理を実現できる。   In this embodiment, four columns are used as thinning pattern units. However, according to the present invention, m memories are provided correspondingly to thinning patterns using arbitrary m columns as units, and defective pixels are provided in the memory. By positioning and recording the position information in a cyclic manner, the position information of m defective pixels can be simultaneously compared. Further, since the counter of the pixel position monitoring unit is counted up (shifted) according to the thinning pattern, the number of searches can be reduced according to the thinning amount in the thinning mode in which thinning is performed, so that high-speed search processing is possible. Can be realized.

また更に、m列以下の間引きパターンを単位とする如何なる間引きに対しても、画素位置監視部のカウンタのシフト量を間引きパターンに対応させて制御するだけで対応することができ、間引きパターン毎に回路を設けたり、複雑なプログラムを用意したりする必要がなく、簡単な構成でメモリ容量の低減、探索処理の高速化を実現でき、コストも削減することができる。   Furthermore, any thinning pattern with a thinning pattern of m columns or less as a unit can be dealt with by simply controlling the shift amount of the counter of the pixel position monitoring unit corresponding to the thinning pattern. There is no need to provide a circuit or to prepare a complicated program. With a simple configuration, the memory capacity can be reduced, the search processing speed can be increased, and the cost can be reduced.

なお、本実施形態では、第1〜第4比較部の各々が4つの比較器を備え、各比較部において第1〜第4メモリの各々から出力された値との比較が行なわれたが、第1比較部に1つの比較器、第2比較部に2つの比較器、第3比較部に3つの比較器、第4比較部に4つの比較器を設け、第1比較部では先頭メモリの座標値を、第2比較部では「先頭メモリ」〜「先頭メモリ+1」の座標値を、第3比較部では「先頭メモリ」〜「先頭メモリ+2」の座標値を、第4比較部では「先頭メモリ」〜「先頭メモリ+3」の座標値を比較する構成としてもよい。   In the present embodiment, each of the first to fourth comparison units includes four comparators, and each comparison unit compares the value output from each of the first to fourth memories. One comparator is provided in the first comparator, two comparators in the second comparator, three comparators in the third comparator, and four comparators in the fourth comparator. The coordinate values of the “first memory” to “first memory + 1” in the second comparison unit, the coordinate values of “first memory” to “first memory + 2” in the third comparison unit, and “ The coordinate values of “first memory” to “first memory + 3” may be compared.

また、本実施形態では、処理対象となる画素データに対応する画素の位置と、メモリに記録された欠陥画素の位置を表す方法として、撮像素子の画素配列に対応した2次元座標が用いられたが、画素位置を表す位置情報としては、画素の位置が一意的に表せるものであればよく、例えば1次元座標であってもよい。   In this embodiment, two-dimensional coordinates corresponding to the pixel array of the image sensor are used as a method of representing the position of the pixel corresponding to the pixel data to be processed and the position of the defective pixel recorded in the memory. However, the position information representing the pixel position may be any information that can uniquely represent the pixel position, and may be, for example, one-dimensional coordinates.

本発明の一実施形態であるデジタルカメラの構成を示すブロック図である。It is a block diagram which shows the structure of the digital camera which is one Embodiment of this invention. 撮像素子の画素配列と、画素の位置座標との関係、および画素データの読出し順序(走査方法)を示す模式図である。It is a schematic diagram which shows the relationship between the pixel arrangement | sequence of an image pick-up element, the position coordinate of a pixel, and the reading order (scanning method) of pixel data. 本実施形態における15個の間引きパターンを示す模式図である。It is a schematic diagram which shows 15 thinning patterns in this embodiment. 欠陥位置情報メモリの第1〜第4メモリへの欠陥画素位置情報の格納方法を各メモリのアドレスとともに示す欠陥画素データテーブルの模式図である。It is a schematic diagram of the defective pixel data table which shows the storage method of the defective pixel position information to the 1st-4th memory of a defective position information memory with the address of each memory. 画素欠陥補正装置の構成を示すブロック図である。It is a block diagram which shows the structure of a pixel defect correction apparatus. 本実施形態の欠陥画素探索処理の概略を示すフローチャートである。It is a flowchart which shows the outline of the defective pixel search process of this embodiment. 一致信号出力制御部の構成を模式的に示すブロック図である。It is a block diagram which shows typically the structure of a coincidence signal output control part.

符号の説明Explanation of symbols

12 撮像素子
14 画素欠陥補正装置
15 欠陥位置情報メモリ
20 画素位置監視部
21 アドレス比較部(位置情報比較部)
22 一致信号出力制御部
23 アドレス管理部
24 間引き情報管理部
25 欠陥補正演算部
151〜154 第1〜第4メモリ
155〜158 第1〜第4アドレスカウンタ
211〜214 第1〜第4比較部
231 一致数カウント部
232 先頭メモリ監視部
DESCRIPTION OF SYMBOLS 12 Image sensor 14 Pixel defect correction apparatus 15 Defect position information memory 20 Pixel position monitoring part 21 Address comparison part (position information comparison part)
22 coincidence signal output control unit 23 address management unit 24 thinning information management unit 25 defect correction calculation unit 151 to 154 first to fourth memories 155 to 158 first to fourth address counters 211 to 214 first to fourth comparison unit 231 Number of coincidence counting unit 232 First memory monitoring unit

Claims (13)

入力画素データが欠陥画素に対応する場合にその画素データを補正する欠陥補正演算部と、
前記欠陥画素の全位置情報を循環的に振り分けて記録するm個のメモリと、
前記入力画素データに対応する画素を含むm個の画素の位置情報を管理する画素位置管理部と、
前記m個の画素の位置情報と前記m個のメモリに各々分散されて記録されたm個の前記欠陥画素の位置情報との間の比較を行ない、位置情報が一致した場合にその数に対応する一致信号を出力する位置情報比較部と、
前記一致信号のうち有効画素に対応する一致信号のみを前記欠陥補正演算部に出力する一致信号出力制御部と、
前記一致信号の数に対応して、前記m個のメモリの読み出しアドレスを管理するアドレス管理部と
を備えることを特徴とする画素欠陥補正装置。
A defect correction calculation unit that corrects the pixel data when the input pixel data corresponds to a defective pixel;
M memories for cyclically sorting and recording all position information of the defective pixels;
A pixel position management unit that manages position information of m pixels including pixels corresponding to the input pixel data;
A comparison is made between the position information of the m pixels and the position information of the m defective pixels that are distributed and recorded in the m memories, and if the position information matches, the number is matched. A position information comparison unit that outputs a matching signal,
A coincidence signal output control unit that outputs only the coincidence signal corresponding to an effective pixel among the coincidence signals to the defect correction calculation unit;
A pixel defect correction apparatus comprising: an address management unit that manages read addresses of the m memories in correspondence with the number of the coincidence signals.
前記画素位置管理部が、1画素分の画素位置情報を管理するカウンタを備え、前記m個の画素の位置情報が、前記カウンタの値によって管理されることを特徴とする請求項1に記載の画素欠陥補正装置。   The said pixel position management part is provided with the counter which manages the pixel position information for 1 pixel, The position information of the said m pixels is managed by the value of the said counter. Pixel defect correction device. 前記カウンタの値が撮像素子の水平ライン、垂直ラインに沿った2次元座標値であることを特徴とする請求項2に記載の画素欠陥補正装置。   The pixel defect correction device according to claim 2, wherein the value of the counter is a two-dimensional coordinate value along a horizontal line and a vertical line of the image sensor. 前記カウンタの値が、前記入力画素データの入力毎に、対応する画素のシフト量分、シフトされることを特徴とする請求項2に記載の画素欠陥補正装置。   3. The pixel defect correction apparatus according to claim 2, wherein the value of the counter is shifted by the shift amount of the corresponding pixel every time the input pixel data is input. 前記画素位置管理部における位置情報の管理に必要な前記シフト量を間引きモード毎に保持管理する間引き情報管理部を備えることを特徴とする請求項4に記載の画素欠陥補正装置。   The pixel defect correction apparatus according to claim 4, further comprising: a thinning information management unit that holds and manages the shift amount necessary for management of position information in the pixel position management unit for each thinning mode. 前記一致信号出力制御部における有効画素に対応する一致信号の情報を保持管理する間引き情報管理部を備えることを特徴とする請求項1に記載の画素欠陥補正装置。   The pixel defect correction apparatus according to claim 1, further comprising: a thinning information management unit that holds and manages information on a coincidence signal corresponding to an effective pixel in the coincidence signal output control unit. 前記入力画素データが所定の順序で入力され、前記欠陥画素の全位置情報が前記所定の順序に従って前記m個のメモリに循環的に振り分けられ、前記m個の画素の位置情報が前記所定の順序で連続する画素に対応することを特徴とする請求項1に記載の画素欠陥補正装置。   The input pixel data is input in a predetermined order, all the position information of the defective pixels is cyclically distributed to the m memories according to the predetermined order, and the position information of the m pixels is the predetermined order. The pixel defect correction apparatus according to claim 1, wherein the pixel defect correction apparatus corresponds to continuous pixels. 前記m個のメモリ毎に前記読み出しアドレスを管理するm個のアドレスカウンタを備え、前記所定の順序に従った前記欠陥画素の順番に対応して循環的に前記一致数に対応した数のアドレスカウンタの値を順次カウントアップすることを特徴とする請求項7に記載の画素欠陥補正装置。   M address counters for managing the read addresses for each of the m memories, and a number of address counters corresponding to the number of coincidence corresponding to the order of the defective pixels according to the predetermined order. The pixel defect correction apparatus according to claim 7, wherein the values of are sequentially counted up. 前記m個のメモリから読み出される前記m個の欠陥画素の位置情報は、前記一致情報比較部において一致が未確認の欠陥画素のうち前記所定の順序における最初のm個の位置情報であることを特徴とする請求項7に記載の画素欠陥補正装置。   The position information of the m defective pixels read from the m memories is the first m position information in the predetermined order among the defective pixels whose matching is not confirmed in the matching information comparison unit. The pixel defect correction device according to claim 7. 前記mが間引きパターンの最大単位に対応することを特徴とする請求項1に記載の画素欠陥補正装置。   The pixel defect correction apparatus according to claim 1, wherein the m corresponds to a maximum unit of a thinning pattern. 欠陥画素の総数がn個のとき、前記m個のメモリが各々n/mの深さに設定されることを特徴とする請求項1に記載の画素欠陥補正装置。   2. The pixel defect correction device according to claim 1, wherein when the total number of defective pixels is n, the m memories are set to a depth of n / m. 間引きパターンの単位をm列とする画像処理装置に用いられる画素欠陥補正装置であって、
所定の順序に従って入力される入力画素データに対し欠陥画素の補正を行なう欠陥補正演算部と、
欠陥画素の全位置情報を前記所定の順序に従って循環的に振り分けて記録するm個のメモリと、
前記入力画素データに対応する画素を含む前記所定の順序で連続するm個の画素の位置情報と、前記m個のメモリの前記所定の順序に従ったm個の欠陥画素の位置情報とを比較する位置情報比較部と、
入力画素データが新たに入力される毎に、前記入力画素データに対応する画素を含む前記m個の画素の位置情報を間引きパターンに対応して前記所定の順序に沿って所定画素数分シフトする位置情報管理部と、
前記m個のメモリから前記m個の欠陥画素の位置情報を読み出すアドレスを、前記位置情報比較部において位置情報が一致した数分だけ、前記所定の順序に沿ってシフトさせるアドレス管理部と、
前記位置情報比較部における位置情報の一致が、有効画素において起こるときにのみ、前記欠陥補正演算部に一致信号を出力する一致信号出力制御部と
を備えることを特徴とする画素欠陥補正装置。
A pixel defect correction apparatus used in an image processing apparatus having thinning pattern units of m columns,
A defect correction calculation unit that corrects defective pixels for input pixel data input according to a predetermined order;
M number of memories that cyclically sort and record all position information of defective pixels according to the predetermined order;
Comparing position information of m pixels that are consecutive in the predetermined order including pixels corresponding to the input pixel data with position information of m defective pixels in the predetermined order of the m memories A position information comparison unit
Each time input pixel data is newly input, the position information of the m pixels including the pixel corresponding to the input pixel data is shifted by a predetermined number of pixels in the predetermined order corresponding to the thinning pattern. A location information management unit;
An address management unit that shifts the address for reading the position information of the m defective pixels from the m memories in the predetermined order by the number corresponding to the position information matched in the position information comparison unit;
A pixel defect correction apparatus comprising: a match signal output control unit that outputs a match signal to the defect correction calculation unit only when the position information match in the position information comparison unit occurs in an effective pixel.
所定の順序に従って入力される入力画素データに対して、欠陥画素の補正を行なう欠陥補正演算部と、
欠陥画素の全位置情報を前記所定の順序に従って循環的に振り分けて記録するm個のメモリとを備え、
連続するm個の画素の位置情報と、前記m個のメモリに記録された連続するm個の欠陥画素位置情報とを比較して、前記m個の画素の中から欠陥画素を検出し、前記m個の欠陥画素位置情報が、未検出の欠陥画素に対応する前記所定の順序に従った最初のm個の欠陥画素位置情報であり、前記入力画素データの入力毎にシフトされる画素数分、前記m個の画素の位置情報がシフトされ、前記欠陥画素の検出に基づいて前記入力画素データの前記補正が行われる
ことを特徴とする画素欠陥補正装置。
A defect correction calculation unit that corrects defective pixels for input pixel data input according to a predetermined order; and
M number of memories that cyclically sort and record all position information of defective pixels according to the predetermined order;
Comparing the positional information of m consecutive pixels with the consecutive m defective pixel position information recorded in the m memories, detecting defective pixels from the m pixels, The m defective pixel position information is the first m defective pixel position information according to the predetermined order corresponding to the undetected defective pixels, and the number of pixels shifted for each input of the input pixel data. The pixel defect correction apparatus, wherein positional information of the m pixels is shifted, and the correction of the input pixel data is performed based on detection of the defective pixel.
JP2005145385A 2005-05-18 2005-05-18 Pixel defect correction device Expired - Fee Related JP4584768B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005145385A JP4584768B2 (en) 2005-05-18 2005-05-18 Pixel defect correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005145385A JP4584768B2 (en) 2005-05-18 2005-05-18 Pixel defect correction device

Publications (2)

Publication Number Publication Date
JP2006324874A JP2006324874A (en) 2006-11-30
JP4584768B2 true JP4584768B2 (en) 2010-11-24

Family

ID=37544230

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005145385A Expired - Fee Related JP4584768B2 (en) 2005-05-18 2005-05-18 Pixel defect correction device

Country Status (1)

Country Link
JP (1) JP4584768B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5222654B2 (en) * 2008-07-31 2013-06-26 株式会社エルモ社 Defective pixel detection device for imaging device and marking device for imaging device
JP5299159B2 (en) * 2009-08-12 2013-09-25 株式会社リコー Imaging apparatus and program
JP6910680B1 (en) * 2020-12-25 2021-07-28 株式会社SensAI Imaging system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62189590A (en) * 1986-02-15 1987-08-19 Canon Inc Defect compensating device
JPH07162757A (en) * 1993-12-06 1995-06-23 Matsushita Electric Ind Co Ltd Pixel defect correction device for solid-state image pickup element
JP2000023051A (en) * 1998-07-01 2000-01-21 Canon Inc Defective pixel correcting device and computer readable storage medium
JP2001061102A (en) * 1999-08-20 2001-03-06 Mitsubishi Electric Corp Defective pixel detecting circuit
JP2002016842A (en) * 2000-06-30 2002-01-18 Mitsubishi Electric Corp Defect-pixel sensing device and recording medium with recorded defect-pixel sensing program
JP2004242103A (en) * 2003-02-06 2004-08-26 Canon Inc Image pickup device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62189590A (en) * 1986-02-15 1987-08-19 Canon Inc Defect compensating device
JPH07162757A (en) * 1993-12-06 1995-06-23 Matsushita Electric Ind Co Ltd Pixel defect correction device for solid-state image pickup element
JP2000023051A (en) * 1998-07-01 2000-01-21 Canon Inc Defective pixel correcting device and computer readable storage medium
JP2001061102A (en) * 1999-08-20 2001-03-06 Mitsubishi Electric Corp Defective pixel detecting circuit
JP2002016842A (en) * 2000-06-30 2002-01-18 Mitsubishi Electric Corp Defect-pixel sensing device and recording medium with recorded defect-pixel sensing program
JP2004242103A (en) * 2003-02-06 2004-08-26 Canon Inc Image pickup device

Also Published As

Publication number Publication date
JP2006324874A (en) 2006-11-30

Similar Documents

Publication Publication Date Title
JP3125124B2 (en) Defective pixel damage correction circuit
KR101078623B1 (en) Image processing device and camera system
US8963910B2 (en) Pixel information management apparatus and image capture apparatus using the same
US20110122298A1 (en) Image processing apparatus, and method of operating an image processing apparatus
JP2001197372A (en) Picture signal processor and method for detecting pixel defect
CN101304484A (en) Image forming apparatus, flaw pixel correction apparatus, processing method program of the device
JP2003244521A (en) Information processing method and apparatus, and recording medium
JP5615155B2 (en) Image processing apparatus and method
JP2007201530A (en) Pixel defect correction apparatus
US20050174437A1 (en) Distortion correction circuit
US20130236118A1 (en) Image processing apparatus and method of operating image processing apparatus
JP4584768B2 (en) Pixel defect correction device
US20060245652A1 (en) Method for recognizing objects in an image without recording the image in its entirety
JP2010021858A (en) Pixel defect correction device
CN110910301A (en) Image processing apparatus and method, and recording medium storing image processing program
JP5709472B2 (en) Signal processing device
JP2001145012A (en) Image distorting correction device
JPH09247540A (en) Picture element defect correcting device
JP2010020437A (en) Image conversion device
JP4745147B2 (en) Imaging device
JP5005482B2 (en) Pattern search method and apparatus
JP2005197862A (en) Image processing apparatus
JP2018005389A (en) Image deformation circuit, image processing apparatus, and image deformation method
JPH10173992A (en) Image correction device
JP4166246B2 (en) Image signal processing apparatus and pixel defect detection method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080304

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20080501

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100817

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100824

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100902

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130910

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130910

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20130910

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees