JP2017076916A - Pixel inspection device, image processing apparatus, pixel inspection method, and program - Google Patents
Pixel inspection device, image processing apparatus, pixel inspection method, and program Download PDFInfo
- Publication number
- JP2017076916A JP2017076916A JP2015204177A JP2015204177A JP2017076916A JP 2017076916 A JP2017076916 A JP 2017076916A JP 2015204177 A JP2015204177 A JP 2015204177A JP 2015204177 A JP2015204177 A JP 2015204177A JP 2017076916 A JP2017076916 A JP 2017076916A
- Authority
- JP
- Japan
- Prior art keywords
- numbered
- odd
- pixel
- defect
- defective pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、画素検査装置、画像処理装置、画素検査方法及びプログラムに関し、詳細には、入力される画像データの各画素が欠陥画素であるか否かを検査する画素検査装置、画像処理装置、画素検査方法及びプログラムに関する。 The present invention relates to a pixel inspection device, an image processing device, a pixel inspection method, and a program, and more specifically, a pixel inspection device that inspects whether each pixel of input image data is a defective pixel, an image processing device, The present invention relates to a pixel inspection method and a program.
撮像センサ、例えば、CCD(Charge Coupled Device )、CMOS(Complementary Metal Oxide Semiconductor )等には、一般的に欠陥画素が存在し、従来から、欠陥画素の画像を、周囲の非欠陥画素である有効画素を用いて補正することが行われている。 An imaging sensor, for example, a CCD (Charge Coupled Device), a CMOS (Complementary Metal Oxide Semiconductor), or the like generally has a defective pixel. Conventionally, an image of a defective pixel is converted into an effective pixel that is a surrounding non-defective pixel. Correction is performed using.
この読取画素が欠陥画素であるか否かの欠陥画素検知処理と、該欠陥画素の周囲画素による補正処理を行うために、従来から欠陥画素を予め登録した欠陥画素テーブルを用いている。 In order to perform a defective pixel detection process for determining whether or not the read pixel is a defective pixel and a correction process using pixels around the defective pixel, a defective pixel table in which defective pixels are registered in advance has been used.
この欠陥画素テーブルは、撮像センサの全画素を対象として欠陥画素が登録されているが、撮像センサが複数の読取モード(例えば、左右反転/上下反転/間引き/切り出し等)を有している場合、それぞれの読取モードに対応している必要がある。 In this defective pixel table, defective pixels are registered for all the pixels of the image sensor, but the image sensor has a plurality of reading modes (for example, horizontal inversion / vertical inversion / thinning / cutout). It is necessary to correspond to each reading mode.
すなわち、撮像センサの読出方法が通常読出方法から変わると、撮像センサの全データを左から右、上から下に読み出す場合とは、画素の読出順序が変わり、欠陥画素テーブルに登録されている座標情報と入力画素が一致しなくなる。 In other words, when the reading method of the image sensor changes from the normal reading method, the pixel reading order changes from the case of reading all data of the image sensor from left to right and from top to bottom, and the coordinates registered in the defective pixel table are changed. Information and input pixels do not match.
そこで、従来、備えている読取モードに応じて、複数の欠陥画素テーブルを持つ方法、欠陥画素テーブルのアドレスを読出順に応じて変換する方法等が用いられている。 Therefore, conventionally, a method having a plurality of defective pixel tables, a method of converting the addresses of the defective pixel tables according to the reading order, and the like are used according to the reading mode provided.
例えば、従来、入力画素データが欠陥画素に対応する場合にその画素データを補正する欠陥補正演算部と、前記欠陥画素の全位置情報を循環的に振り分けて記録するm個のメモリと、前記入力画素データに対応する画素を含むm個の画素の位置情報を管理する画素位置管理部と、前記m個の画素の位置情報と前記m個のメモリに各々分散されて記録されたm個の前記欠陥画素の位置情報との間の比較を行ない、位置情報が一致した場合にその数に対応する一致信号を出力する位置情報比較部と、前記一致信号のうち有効画素に対応する一致信号のみを前記欠陥補正演算部に出力する一致信号出力制御部と、前記一致信号の数に対応して、前記m個のメモリの読み出しアドレスを管理するアドレス管理部とを備える画素欠陥補正装置が提案されている(特許文献1参照)。 For example, conventionally, when input pixel data corresponds to a defective pixel, a defect correction calculation unit that corrects the pixel data, m memories that cyclically distribute and record all position information of the defective pixel, and the input A pixel position management unit that manages position information of m pixels including pixels corresponding to the pixel data; and the m pieces of position information and m pieces of the position information that are distributed and recorded in the m memories. The position information comparison unit that compares the position information of the defective pixels and outputs a match signal corresponding to the number when the position information matches, and only the match signal corresponding to the valid pixel among the match signals. A pixel defect correction apparatus including a match signal output control unit that outputs to the defect correction calculation unit and an address management unit that manages the read addresses of the m memories corresponding to the number of the match signals is proposed. Are (see Patent Document 1).
すなわち、この従来技術は、メモリ容量を増大させることなく、高速に欠陥画素の検索を行うために、複数のメモリに、欠陥画素情報を分けて管理している。 That is, in this prior art, defective pixel information is managed separately in a plurality of memories in order to search for defective pixels at high speed without increasing the memory capacity.
しかしながら、上記公報記載の従来技術にあっては、多様な読取モードに対応した欠陥画素検索を高速に行うことができないという問題があった。 However, the prior art described in the above publication has a problem that defective pixel search corresponding to various reading modes cannot be performed at high speed.
すなわち、近年、処理速度の向上を図るために、2画素を並列処理する2画素並列処理及び2ラインを並列処理する2ライン並列処理を行うことがあるが、上記公報記載の従来技術にあっては、2画素並列処理及び2ライン並列処理については考慮されていない。したがって、従来公報記載の技術にあっては、2画素並列処理及び2ライン並列処理に対しては、欠陥画素の検出処理及び欠陥画素補正処理を行うことができず、改良の必要があった。 That is, in recent years, in order to improve the processing speed, two-pixel parallel processing for processing two pixels in parallel and two-line parallel processing for processing two lines in parallel may be performed. Are not considered for 2-pixel parallel processing and 2-line parallel processing. Therefore, in the technology described in the conventional publication, the defective pixel detection process and the defective pixel correction process cannot be performed with respect to the two-pixel parallel process and the two-line parallel process, and there is a need for improvement.
そこで、本発明は、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行うことを目的としている。 In view of the above, an object of the present invention is to detect defective pixels appropriately and at high speed even when the detection processing modes of defective pixels are different.
上記目的を達成するために、請求項1記載の画素検査装置は、主走査方向所定数の画素を1ラインとして所定数のラインを有する画像データの画素が、該主走査方向と直交する副走査方向の先頭ラインの該主走査方向先頭画素を基準画素として、該基準画素から連続して入力画素として入力され、該入力画素が欠陥画素であるか否かの検出処理を行う画素検査装置であって、偶数ラインの主走査方向奇数個目の欠陥画素座標が登録される偶数ライン奇数個目欠陥用テーブルと、奇数ラインの主走査方向奇数個目の欠陥画素座標が登録される奇数ライン奇数個目欠陥用テーブルと、偶数ラインの主走査方向偶数個目の欠陥画素座標が登録される偶数ライン偶数個目欠陥用テーブルと、奇数ラインの主走査方向偶数個目の欠陥画素座標が登録される奇数ライン偶数個目欠陥用テーブルと、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び偶数側テーブル切替信号に応じて切り替えて偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替手段と、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び奇数側テーブル切替信号に応じて切り替えて奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替手段と、前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出手段と、前記座標検出手段の検出する検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する偶数画素欠陥判定手段と、前記座標検出手段の検出する検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する奇数画素欠陥判定手段と、前記偶数画素欠陥判定手段の判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替手段へ出力する偶数側テーブル切替手段と、前記奇数画素欠陥判定手段の判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替手段へ出力する奇数側テーブル切替手段と、前記偶数画素欠陥判定手段と前記奇数画素欠陥判定手段の判定結果に基づいて前記各テーブルへ読出アドレスを出力するアドレス制御手段と、を備えていることを特徴としている。
In order to achieve the above object, the pixel inspection apparatus according to
本発明によれば、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行うことができる。 According to the present invention, defective pixels can be detected appropriately and at high speed even when the detection processing modes for defective pixels are different.
以下、本発明の好適な実施例を添付図面に基づいて詳細に説明する。なお、以下に述べる実施例は、本発明の好適な実施例であるので、技術的に好ましい種々の限定が付されているが、本発明の範囲は、以下の説明によって不当に限定されるものではなく、また、本実施の形態で説明される構成の全てが本発明の必須の構成要件ではない。 Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In addition, since the Example described below is a suitable Example of this invention, various technically preferable restrictions are attached | subjected, However, The range of this invention is unduly limited by the following description. However, not all the configurations described in the present embodiment are essential constituent elements of the present invention.
図1〜図10は、本発明の画素検査装置、画像処理装置、画素検査方法及びプログラムの一実施例を示す図であり、図1は、本発明の画素検査装置、画像処理装置、画素検査方法及びプログラムの一実施例を適用した画素検査部を備えた画像処理装置1の要部構成図である。
1 to 10 are diagrams illustrating an embodiment of a pixel inspection device, an image processing device, a pixel inspection method, and a program according to the present invention. FIG. 1 illustrates a pixel inspection device, an image processing device, and a pixel inspection according to the present invention. It is a principal part block diagram of the
図1において、画像処理装置1は、画素検査部10、図示しない撮像センサ(CCD、CMOS等)等を備えている。画素検査部10は、カウンタ部11、欠陥画素座標情報格納部12、欠陥画素テーブル設定部13、欠陥画素テーブル振分部14、セレクタSa1、Sb1、偶数ライン奇数個目欠陥用テーブルTeo、奇数ライン奇数個目欠陥用テーブルToo、偶数ライン偶数個目欠陥用テーブルTee、奇数ライン偶数個目欠陥用テーブルToe、セレクタSa0、Sb0、セレクタSa2、Sb2、テーブル切替部15e、15o、欠陥判定部16e、16o、アドレス制御部17e、17o及び欠陥画素補正部18e、18o等を備えている。
In FIG. 1, an
カウンタ部11は、図示しない上記撮像センサから入力される画素データのX方向及びY方向の画素位置をカウントし、カウント値(Xカウンタ、Yカウンタ)を欠陥判定部16e、16oへ出力する。
The
すなわち、カウンタ部11は、撮像センサから、図2に破線矢印で示すように、図2において左上を原点(X=0、Y=0)とすると、左から右、上から下への順に画素が入力される。すなわち、画像処理装置1は、撮像センサから、画像データの画素が、原点の画素を基準画素として、主走査方向及び副走査方向にカウンタ部11へ順次入力される。なお、図2において、各四角で示す領域が画素であり、黒ベタに白抜きで示されている「A」から「H]までの画素が欠陥画素である。いま、原点を(X=0、Y=0)としているので、欠陥画素「A」は、(X=3、Y=2)、欠陥画素「H」は、(X=20、Y=3)となる。欠陥画素は、画像処理装置1の出荷時の検査において欠陥画素位置(X座標、Y座標)が特定されている。
That is, the
欠陥画素座標情報格納部12は、NVRAM(Non Volatile RAM)、SSD(Solid State Drive)等の不揮発性メモリが用いられており、撮像センサの欠陥画素座標情報が、画像処理装置1の出荷時に保存される。欠陥画素座標情報格納部12は、その欠陥画素座標情報が、後述する4つの欠陥用テーブルTeo、Too、Tee、Toeのフォーマットで保存されている必要はなく、画像の左上から順(座標の若い順)に欠陥画素の位置情報が保存されていればよい。
The defective pixel coordinate
欠陥画素テーブル設定部13は、欠陥画素座標情報格納部12に保存されている欠陥画素座標情報を読み出す。欠陥画素テーブル設定部13は、該欠陥画素座標情報の設定先の欠陥用テーブルTeo、Too、Tee、Toeを決定し、決定した欠陥用テーブルTeo、Too、Tee、Toeを示すテーブル設定情報と欠陥画素座標情報を欠陥画素テーブル振分部14へ渡す。
The defective pixel
欠陥画素テーブル設定部13は、欠陥画素座標のY座標が偶数の場合、偶数ラインの欠陥テーブルTeo、Teeへ、Y座標が奇数の場合、奇数ラインの欠陥テーブルToo、Toeに設定先を決定する。さらに、欠陥画素テーブル設定部13は、偶数個目の欠陥であると、偶数個目欠陥テーブルTee、Toeへ、奇数個目の欠陥であると、奇数個目欠陥テーブルTeo、Tooへ設定先を決定する。
The defective pixel
欠陥画素テーブル振分部14は、欠陥画素テーブル設定部13から渡される欠陥画素座標情報を、該欠陥画素座標情報のテーブル設定情報に基づいて、4つの欠陥用テーブルTeo、Too、Tee、Toeへ振り分けて登録する。
The defective pixel
なお、欠陥画素テーブル設定部13及び欠陥画素テーブル振分部14は、ハードウェア構成であってもよいし、図示しないCPU(Central Processing Unit)等が実行するソフトウェア構成であってもよい。
The defective pixel
欠陥画素テーブル設定部13及び欠陥画素テーブル振分部14は、ハードウェアで構成される場合、4つの欠陥用テーブルTeo、Too、Tee、Toeをソフトウェア的には意識することなく、欠陥用テーブルTeo、Too、Tee、Toeのアドレスがマッピングされたアドレス空間に対して欠陥画素座標情報をレジスタライトし、ハードウェアが振り分けを行って、内部的に存在する4つの欠陥用テーブルTeo、Too、Tee、Toeに設定する。
When the defective pixel
欠陥画素テーブル設定部13及び欠陥画素テーブル振分部14は、ソフトウェアで実現する場合は、4つの欠陥用テーブルTeo、Too、Tee、Toeがレジスタアドレス空間として4つに分かれて存在し、振り分けに応じたアドレスに欠陥画素座標情報をレジスタライトしていく。
When the defective pixel
偶数ライン奇数個目欠陥用テーブルTeoは、偶数ライン目であり、かつ、奇数個目に存在する欠陥画素の座標情報が登録されるテーブルであり、図3(a)に示すようなアドレスで管理される。なお、この偶数ライン奇数個目欠陥用テーブルTeoは、そのアドレスが、ソフトウェアの認識するレジスタ空間のアドレスと一致している必要はない。 The even-numbered odd-numbered defect table Teo is a table in which the coordinate information of the even-numbered and odd-numbered defective pixels is registered, and is managed with an address as shown in FIG. Is done. Note that the even-numbered odd-numbered defect table Teo need not have an address that matches the address of the register space recognized by the software.
偶数ライン偶数個目欠陥用テーブルTeeは、偶数ライン目であり、かつ、偶数個目に存在する欠陥画素の座標情報が登録されるテーブルであり、図3(b)に示すようなアドレスで管理される。なお、この偶数ライン偶数個目欠陥用テーブルTeeについても、そのアドレスが、ソフトウェアの認識するレジスタ空間のアドレスと一致している必要はない。 The even-numbered even-numbered defect table Tee is a table in which the coordinate information of the even-numbered and even-numbered defective pixels is registered, and is managed with an address as shown in FIG. Is done. Note that the even-numbered even-numbered defect table Tee does not need to match the address of the register space recognized by the software.
奇数ライン奇数個目欠陥用テーブルTooは、奇数ラインであり、かつ、奇数個目に存在する欠陥画素の座標情報が登録されるテーブルであり、図3(c)に示すようなアドレスで管理される。なお、この奇数ライン奇数個目欠陥用テーブルTooについても、そのアドレスが、ソフトウェアの認識するレジスタ空間のアドレスと一致している必要はない。 The odd-numbered odd-numbered defect table Too is a table in which coordinate information of the odd-numbered defective pixels existing in the odd-numbered lines is registered, and is managed by an address as shown in FIG. The Note that the odd-numbered odd-numbered defect table Too does not have to match the address of the register space recognized by the software.
奇数ライン偶数個目欠陥用テーブルToeは、奇数ライン目であり、かつ、偶数個目に存在する欠陥画素の座標情報が登録されるテーブルであり、図3(d)に示すようなアドレスで管理される。なお、この奇数ライン偶数個目欠陥用テーブルToeについても、そのアドレスが、ソフトウェアの認識するレジスタ空間のアドレスと一致している必要はない。 The odd-numbered even-numbered defect table Toe is a table in which the coordinate information of the even-numbered and even-numbered defective pixels is registered, and is managed by an address as shown in FIG. Is done. The address of the odd-numbered even-numbered defect table Toe need not match the address of the register space recognized by the software.
なお、図3において、奇数個目欠陥画素、偶数個目欠陥画素の「偶数」、「奇数」の意味は、それぞれ偶数ライン、奇数ラインにおいて座標の若い順から数えて偶数個目、奇数個目という意味であり、座標の値(X=※、Y=※)自体とは関係がない。また、欠陥画素個数は、1個目から開始し、2、4、6、8・・・を偶数、1、3、5、7・・・を奇数としている。また、座標及びカウントは、0始まりで表し、0、2、4、6・・・を偶数、1、3、5、7・・・を奇数としている。 In FIG. 3, the meanings of “even” and “odd” of the odd-numbered defective pixel and the even-numbered defective pixel are the even-numbered and odd-numbered pixels counted from the coordinates in ascending order of the even-numbered lines and odd-numbered lines, respectively. And has nothing to do with the coordinate values (X = *, Y = *) itself. Also, the number of defective pixels starts from the first, and 2, 4, 6, 8... Is an even number, 1, 3, 5, 7. Coordinates and counts are represented by the beginning of 0, and 0, 2, 4, 6... Are even numbers, 1, 3, 5, 7.
図2に示した欠陥画素A、B、C、Dは、偶数ラインの欠陥画素であり、Aが1個目欠陥画素、Bが2個目欠陥画素、Cが3個目欠陥画素、Dが4個目欠陥画素となる。また、欠陥画素E、F、G、Hは、奇数ラインの欠陥画素であり、Eが1個目欠陥画素、Fが2個目欠陥画素、Gが3個目欠陥画素、Hが4個目欠陥画素となる。 The defective pixels A, B, C and D shown in FIG. 2 are even-numbered defective pixels. A is the first defective pixel, B is the second defective pixel, C is the third defective pixel, and D is the defective pixel. This is the fourth defective pixel. The defective pixels E, F, G, and H are odd-numbered defective pixels, where E is the first defective pixel, F is the second defective pixel, G is the third defective pixel, and H is the fourth defective pixel. It becomes a defective pixel.
なお、欠陥用テーブルTeo、Too、Tee、Toeは、欠陥画素座標の情報だけでなく、その他の情報、例えば、欠陥画素の補正方法等を含んでもよい。欠陥画素座標情報以外の情報としては、例えば、欠陥画素を補正する際に、周辺画素のどの画素を使って処理を行うかを指示する情報等である。 The defect tables Teo, Too, Tee, and Toe may include not only defective pixel coordinate information but also other information, for example, a defective pixel correction method. The information other than the defective pixel coordinate information is, for example, information indicating which pixel of the peripheral pixels is used for processing when the defective pixel is corrected.
セレクタSa0は、撮像センサの読取モード(処理モード)を示す処理モード信号Smが入力され、処理モード信号Smに基づいて、偶数ライン偶数個目欠陥用テーブルTeeと奇数ライン奇数個目欠陥用テーブルTooの選択を行う。セレクタSaoは、選択した偶数ライン偶数個目欠陥用テーブルTeeまたは奇数ライン奇数個目欠陥用テーブルTooのテーブル情報をTa1として、セレクタSa2へ出力する。処理モード信号Smは、「1」のとき、処理モードが2画素並列処理モードであることを示しており、「0」のとき、処理モードが2ライン並列処理モードであることを示している。また、処理モード(読取モード)は、1フレームの画像データの処理中は、変化せず、同じ処理モードである。 The selector Sa0 receives a processing mode signal Sm indicating the reading mode (processing mode) of the image sensor, and based on the processing mode signal Sm, the even-numbered even-numbered defect table Tee and the odd-numbered odd-numbered odd numbered table Too. Make a selection. The selector Sao outputs the table information of the selected even-numbered even-numbered defect table Tee or odd-numbered odd-numbered odd numbered table Too as Ta1 and outputs it to the selector Sa2. When the processing mode signal Sm is “1”, it indicates that the processing mode is the two-pixel parallel processing mode, and when it is “0”, it indicates that the processing mode is the two-line parallel processing mode. The processing mode (reading mode) does not change during the processing of one frame of image data, and is the same processing mode.
ここで、読取モードである処理モードが欠陥画素を検出する場合には検出処理モードとなり、以下、適宜、処理モードともいう。また、2画素並列処理モードとは、図4に示すように、同じライン(主走査方向の画素の並び)で主走査方向に連続する2つの画素を並列して処理する処理モードである。また、2ライン並列処理モードとは、図4に示すように、連続する2ラインの主走査方向において同一位置の2つの画素を並列して処理する処理モードである。 Here, when the processing mode which is the reading mode detects a defective pixel, the detection processing mode is set, and hereinafter also referred to as a processing mode as appropriate. The two-pixel parallel processing mode is a processing mode in which two pixels that are continuous in the main scanning direction on the same line (arrangement of pixels in the main scanning direction) are processed in parallel as shown in FIG. The two-line parallel processing mode is a processing mode in which two pixels at the same position are processed in parallel in the main scanning direction of two consecutive lines as shown in FIG.
セレクタSaoは、処理モード信号Smが「1」のとき(2画素並列処理時)、偶数ライン偶数個目欠陥用テーブルTeeを選択し、処理モード信号Smが「0」のとき(2ライン並列処理時)、奇数ライン奇数個目欠陥用テーブルTooを選択する。セレクタSaoは、選択したテーブルの情報を、テーブル情報Ta1としてセレクタSb1へ出力する。 The selector Sao selects the even-numbered even-numbered defect table Tee when the processing mode signal Sm is “1” (two-pixel parallel processing), and when the processing mode signal Sm is “0” (two-line parallel processing). ), The odd-numbered odd-numbered defect table Too is selected. The selector Sao outputs information on the selected table to the selector Sb1 as table information Ta1.
セレクタSb0は、セレクタSaoと同様に、処理モード信号Smが入力され、処理モード信号Smに基づいて、偶数ライン奇数個目欠陥用テーブルTeeと奇数ライン奇数個目欠陥用テーブルTooの選択を行う。セレクタSboは、処理モード信号Smが「1」のとき(2画素並列処理時)、奇数ライン奇数個目欠陥用テーブルTooを選択し、処理モード信号Smが「0」のとき(2ライン並列処理時)、偶数ライン偶数個目欠陥用テーブルTeeを選択する。セレクタSboは、選択した偶数ライン偶数個目欠陥用テーブルTeeまたは奇数ライン奇数個目欠陥用テーブルTooのテーブル情報をテーブル情報Tb1として、セレクタSb2へ出力する。 Similarly to the selector Sao, the selector Sb0 receives the processing mode signal Sm, and selects the even line odd number defect table Tee and the odd line odd number defect table Too based on the processing mode signal Sm. The selector Sbo selects the odd-numbered odd-numbered defect table Too when the processing mode signal Sm is “1” (two-pixel parallel processing), and when the processing mode signal Sm is “0” (two-line parallel processing). ), The even line even-numbered defect table Tee is selected. The selector Sbo outputs the table information of the selected even-numbered even-numbered defect table Tee or odd-numbered odd-numbered odd numbered table Too as table information Tb1 to the selector Sb2.
セレクタSa1は、処理モード信号Smが入力され、また、アドレス制御部17eからアドレスA1が、アドレス制御部17oからアドレスB1がそれぞれ入力される。セレクタSa1は、処理モード信号Smが「1」のとき、アドレスA1を選択し、処理モード信号Smが「0」のとき、アドレスB1を選択する。セレクタSa1は、選択したアドレスA1またはアドレスB1を、奇数ライン奇数個目欠陥用テーブルTooへ出力する。
The selector Sa1 receives the processing mode signal Sm, receives the address A1 from the
セレクタSb1は、処理モード信号Smが入力され、また、アドレス制御部17eからアドレスA1が、アドレス制御部17oからアドレスB1がそれぞれ入力される。セレクタSb1は、処理モード信号Smが「1」のとき、アドレスB1を選択し、処理モード信号Smが「0」のとき、アドレスA1を選択する。セレクタSb1は、選択したアドレスA1またはアドレスB1を、偶数ライン偶数個目欠陥用テーブルTeeへ出力する。
The selector Sb1 receives the processing mode signal Sm, the address A1 from the
セレクタSa2は、セレクタSa0からテーブル情報Ta1と偶数ライン奇数個目欠陥用テーブルTeoからのテーブル情報Ta0が入力され、さらに、テーブル切替部15eからテーブル切替制御信号Steが入力される。セレクタSa2は、テーブル切替制御信号Steに基づいて、テーブル情報Ta1とテーブル情報Ta0の一方を選択して、テーブル情報Taとして、欠陥判定部16eへ出力する。
The selector Sa2 receives table information Ta1 from the selector Sa0 and table information Ta0 from the even-numbered odd-numbered defect table Teo, and further receives a table switching control signal Ste from the
セレクタSb2は、セレクタSb0からテーブル情報Tb1と奇数ライン偶数個目欠陥用テーブルToeからのテーブル情報Tb0が入力され、さらに、テーブル切替部15oからテーブル切替制御信号Stoが入力される。セレクタSb2は、テーブル切替制御信号Stoに基づいて、テーブル情報Tb1とテーブル情報Tb0の一方を選択して、テーブル情報Tbとして、欠陥判定部16oへ出力する。 The selector Sb2 receives table information Tb1 from the selector Sb0 and table information Tb0 from the odd-numbered even-numbered defect table Toe, and further receives a table switching control signal Sto from the table switching unit 15o. The selector Sb2 selects one of the table information Tb1 and the table information Tb0 based on the table switching control signal Sto, and outputs the table information Tb to the defect determination unit 16o.
欠陥判定部16eは、セレクタSa2からのテーブル情報TaとセレクタSb2からのテーブル情報Tb2が入力され、さらに、カウンタ部11からXカウンタとYカウンタが入力される。欠陥判定部16eは、並列処理における偶数側画素に対して欠陥画素であるか否かの判定を行う。すなわち、欠陥判定部16eは、テーブル情報Taとテーブル情報Tbの2つのテーブル情報の偶数側欠陥画素座標情報と、XカウンタとYカウンタの値との比較を行う。欠陥判定部16eは、テーブル情報Taの偶数側欠陥画素座標とXカウンタ/Yカウンタの値が一致すると、アドレス制御部7eへの欠陥画素一致情報HIT_AEをアサートする。また、欠陥判定部16eは、テーブル情報Tbの偶数側欠陥画素座標とXカウンタ/Yカウンタの値が一致すると、アドレス制御部17oへの欠陥画素一致情報HIT_BEをアサートする。
The
また、テーブル情報Taとテーブル情報Tbは、別の座標の欠陥画素の座標情報であるため、欠陥画素一致情報HIT_AEと欠陥画素一致情報HIT_BEが同時にアサートすることはない。そして、欠陥判定部16eは、欠陥画素一致情報HIT_AEと欠陥画素一致情報HIT_BEのOR条件で欠陥画素判定結果信号SEを生成して、欠陥画素補正部18eへ出力する。
Further, since the table information Ta and the table information Tb are coordinate information of defective pixels having different coordinates, the defective pixel matching information HIT_AE and the defective pixel matching information HIT_BE are not asserted at the same time. Then, the
欠陥判定部16oは、欠陥判定部16eと同様に、セレクタSa2からのテーブル情報TaとセレクタSb2からのテーブル情報Tb2が入力され、さらに、カウンタ部11からXカウンタとYカウンタが入力される。欠陥判定部16oは、並列処理における奇数側画素に対して欠陥画素であるか否かの判定を行う。すなわち、欠陥判定部16oは、テーブル情報Taとテーブル情報Tbの2つのテーブル情報の奇数側欠陥画素座標情報と、XカウンタとYカウンタの値との比較を行う。欠陥判定部16oは、テーブル情報Taの奇数側欠陥画素座標とXカウンタ/Yカウンタの値が一致すると、アドレス制御部17eへの欠陥画素一致情報HIT_AOをアサートする。また、欠陥判定部16oは、テーブル情報Tbの奇数側欠陥画素座標とXカウンタ/Yカウンタの値が一致すると、欠陥画素一致情報HIT_BOを、アドレス制御部17oへ出力する。
Similarly to the
また、欠陥判定部16oは、欠陥画素一致情報HIT_AOと欠陥画素一致情報HIT_BOのOR条件で欠陥画素判定結果信号SOを生成して、欠陥画素補正部18oへ出力する。 Further, the defect determination unit 16o generates a defective pixel determination result signal SO under the OR condition of the defective pixel matching information HIT_AO and the defective pixel matching information HIT_BO, and outputs it to the defective pixel correction unit 18o.
アドレス制御部17eは、欠陥判定部16e及び欠陥判定部16oからの欠陥画素一致情報HIT_AE、HIT_AOとテーブル切替制御信号Steが入力される。アドレス制御部17eは、欠陥画素一致情報HIT_AE、HIT_AOとテーブル切替制御信号Steに基づいて、奇数個目欠陥用テーブルTeo、Tooの読出アドレスA1、A0の制御を行う。
The
アドレス制御は、処理モードに応じて異なる処理となる。すなわち、アドレス制御部17eは、欠陥画素一致情報HIT_AE、HIT_AOのOR条件で、テーブル情報Ta0を選択しているときは、アドレスA0をインクリメントしいき、テーブル情報Ta1を選択しているときは、アドレスA1をインクリメントしていく。
The address control is a different process depending on the processing mode. That is, the
アドレス制御部17eは、選択されていないラインの処理時は、アドレスを保持し、再び選択された際に、保持したアドレスからインクリメントを再開する。アドレス制御部17eは、1フレームの処理完了後にアドレスをクリアし、「0」に戻す。なお、アドレス制御部17eは、欠陥判定部16eと欠陥判定部16oが別の座標の画素について判定を行っているため、欠陥画素一致情報HIT_AEと欠陥画素一致情報HIT_AOが同時にアサートすることはない。
The
アドレス制御部17oは、欠陥判定部16e及び欠陥判定部16oからの欠陥画素一致情報HIT_BE、HIT_BOとテーブル切替制御信号Stoが入力される。アドレス制御部17oは、欠陥画素一致情報HIT_BE、HIT_BOとテーブル切替制御信号Stoに基づいて、偶数個目欠陥用テーブルToe、Teeの読出アドレスB1、B0の制御を行う。
The address control unit 17o receives the defective pixel match information HIT_BE and HIT_BO and the table switching control signal Sto from the
アドレス制御部17oは、欠陥画素一致情報HIT_BE、HIT_BOのOR条件で、テーブル情報Tb0を選択しているときは、アドレスB0をインクリメントしいき、テーブル情報Tb1を選択しているときは、アドレスB1をインクリメントしていく。 The address control unit 17o increments the address B0 when the table information Tb0 is selected under the OR condition of the defective pixel match information HIT_BE and HIT_BO, and the address B1 is selected when the table information Tb1 is selected. Increment.
アドレス制御部17oは、選択されていないラインの処理時は、アドレスを保持し、再び選択された際に、保持したアドレスからインクリメントを再開する。アドレス制御部17oは、1フレームの処理完了後にアドレスをクリアし、「0」に戻す。なお、アドレス制御部17oは、欠陥判定部16eと欠陥判定部16oが別の座標の画素について判定を行っているため、欠陥画素一致情報HIT_BEと欠陥画素一致情報HIT_BOが同時にアサートすることはない。
The address control unit 17o holds an address when processing an unselected line, and restarts incrementing from the held address when the line is selected again. The address control unit 17o clears the address after completing the processing of one frame and returns it to “0”. In the address control unit 17o, since the
欠陥画素補正部18eは、補正前画素の偶数側データと欠陥判定部16eからの欠陥画素判定結果信号SEが入力され、並列処理の偶数側画素の欠陥画素補正を行う。欠陥画素補正部18eは、入力される偶数側補正前画素が、非欠陥画素であると、該画素に対しては、何の処理も行わず、欠陥画素であると、欠陥画素補正を行って、偶数側補正後画素を出力する。なお、欠陥画素補正部18eは、既知の欠陥画素補正方法で欠陥画素の補正を行い、この欠陥画素補正方法は、適切な補正を行う方法であれば、何ら限定されるものではなく、種々の方法を用いることができる。
The defective
欠陥画素補正部18oは、補正前画素の奇数側データと欠陥判定部16oからの欠陥画素判定結果信号SOが入力され、並列処理の奇数側画素の欠陥画素補正を行う。欠陥画素補正部18oは、入力される奇数側補正前画素が、非欠陥画素であると、該画素に対しては、何の処理も行わず、欠陥画素であると、欠陥画素補正を行って、奇数側補正後画素を出力する。なお、欠陥画素補正部18oは、既知の欠陥画素補正方法で欠陥画素の補正を行い、この欠陥画素補正方法は、適切な補正を行う方法であれば、何ら限定されるものではなく、種々の方法を用いることができる。 The defective pixel correction unit 18o receives the odd-numbered data of the uncorrected pixel and the defective pixel determination result signal SO from the defect determination unit 16o, and corrects the defective pixel of the odd-numbered pixel in the parallel processing. The defective pixel correction unit 18o does not perform any processing for the input odd-numbered pre-correction pixel if it is a non-defective pixel, and performs defective pixel correction if it is a defective pixel. The odd-side corrected pixels are output. The defective pixel correction unit 18o corrects defective pixels by a known defective pixel correction method, and this defective pixel correction method is not limited as long as it is an appropriate correction method. The method can be used.
テーブル切替部15eは、欠陥判定部16eからの欠陥画素判定結果信号SEとカウンタ部11からのYカウンタが入力され、テーブル切替制御信号SteをセレクタSa2へ出力して、セレクタSa2の切り替えを行う。テーブル切替部15eは、2画素並列処理モードでは、Yカウンタに基づいて偶数ラインと奇数ラインでライン毎に交互にセレクタSa2の切り替えを行う。テーブル切替部15eは、2ライン並列処理モードでは、欠陥画素判定結果信号SEに基づいて欠陥画素検出毎に交互にセレクタSa2の切り替えを行う。
The
テーブル切替部15oは、欠陥判定部16oからの欠陥画素判定結果信号SOとカウンタ部11からのYカウンタが入力され、テーブル切替制御信号StoをセレクタSb2へ出力して、セレクタSb2の切り替えを行う。テーブル切替部15oは、2画素並列処理モードでは、Yカウンタに基づいて偶数ラインと奇数ラインでライン毎に交互にセレクタSb2の切り替えを行う。テーブル切替部15oは、2ライン並列処理モードでは、欠陥画素判定結果信号SOに基づいて欠陥画素検出毎に交互にセレクタSa2の切り替えを行う。
The table switching unit 15o receives the defective pixel determination result signal SO from the defect determination unit 16o and the Y counter from the
そして、画像処理装置1は、ROM、EEPROM(Electrically Erasable and Programmable Read Only Memory )、EPROM、フラッシュメモリ、フレキシブルディスク、CD−ROM(Compact Disc Read Only Memory )、CD−RW(Compact Disc Rewritable )、DVD(Digital Versatile Disk)、USB(Universal Serial Bus)メモリ、SD(Secure Digital)カード、MO(Magneto-Optical Disc)等のコンピュータが読み取り可能な記録媒体に記録されている本発明の画素検査方法を実行するプログラムを読み込んで図示しないROMやハードディスク等に導入することで、後述する欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行う画素検査方法を実行する画素検査部10を搭載する画像処理装置として構築されている。この画素検査方法を実行するプログラムは、アセンブラ、C、C++、C#、Java(登録商標)等のレガシープログラミング言語やオブジェクト指向プログラミング言語等で記述されたコンピュータ実行可能なプログラムであり、上記記録媒体に格納して頒布することができる。
The
画素検査部10は、上記プログラムが導入されることで、図5に示すような機能ブロックが構築される。すなわち、画素検査部10は、上記プログラムが導入されることで、図5に示すように、偶数ライン奇数個目欠陥用テーブル21eo、奇数ライン奇数個目欠陥用テーブル21oo、偶数ライン偶数個目欠陥用テーブル21ee、奇数ライン偶数個目欠陥用テーブル21oe、偶数側欠陥画素座標切替部22e、奇数側欠陥画素座標切替部22o、座標検出部23、偶数画素欠陥判定部24e、奇数画素欠陥判定部24o、偶数側テーブル切替部25e、奇数側テーブル切替部25o、アドレス入力切替部26aを備えたアドレス制御部26、座標登録部27及び補正部28が構築される。
In the
偶数ライン奇数個目欠陥テーブル21eoは、偶数ライン奇数個目欠陥用テーブルTeoで構築され、偶数ラインの主走査方向奇数個目の欠陥画素座標が登録されるテーブルである。したがって、偶数ライン奇数個目欠陥テーブル21eoは、偶数ライン奇数個目欠陥テーブルとして機能している。 The even-numbered odd-numbered defect table 21eo is constructed by the even-numbered odd-numbered defect table Teo, and is a table in which odd-numbered defective pixel coordinates of the even-numbered lines are registered. Therefore, the even-numbered odd-numbered defect table 21eo functions as an even-numbered odd-numbered defect table 21eo.
奇数ライン奇数個目欠陥用テーブル21ooは、奇数ライン奇数個目欠陥用テーブルTooで構築され、奇数ラインの主走査方向奇数個目の欠陥画素座標が登録されるテーブルである。したがって、奇数ライン奇数個目欠陥用テーブル21ooは、奇数ライン奇数個目欠陥用テーブルとして機能している。 The odd-numbered odd-numbered defect table 21oo is constructed by the odd-numbered odd-numbered defect table Too, and is a table in which odd-numbered defective pixel coordinates of the odd-numbered lines are registered. Therefore, the odd line odd number defect table 21oo functions as an odd line odd number defect table.
偶数ライン偶数個目欠陥用テーブル21eeは、偶数ライン偶数個目欠陥用テーブルTeeで構築され、偶数ラインの主走査方向偶数個目の欠陥画素座標が登録されるテーブルである。したがって、偶数ライン偶数個目欠陥用テーブル21eeは、偶数ライン偶数個目欠陥用テーブルとして機能している。 The even-numbered line even-numbered defect table 21ee is a table that is constructed from the even-numbered line even-numbered defect table Tee and registers even-numbered defective pixel coordinates of the even-numbered lines in the main scanning direction. Therefore, the even line even-numbered defect table 21ee functions as an even-numbered line even-numbered defect table.
奇数ライン偶数個目欠陥用テーブル21oeは、奇数ライン偶数個目欠陥用テーブルToeで構築され、奇数ラインの主走査方向偶数個目の欠陥画素座標が登録されるテーブルである。したがって、奇数ライン偶数個目欠陥用テーブル21oeは、奇数ライン偶数個目欠陥用テーブルとして機能している。 The odd-numbered even-numbered defect table 21oe is constructed by the odd-numbered even-numbered defect table Toe, and is a table in which even-numbered defective pixel coordinates of the odd-numbered lines are registered. Therefore, the odd-numbered line even-numbered defect table 21oe functions as an odd-numbered line even-numbered defect table.
偶数側欠陥画素座標切替部22eは、セレクタSa0及びセレクタSa2により構築される。偶数側欠陥画素座標切替部22eは、それぞれの読出アドレスに基づいて奇数ライン奇数個目欠陥用テーブル21ooまたは偶数ライン偶数個目欠陥用テーブル21eeから読み出された欠陥画素座標である欠陥画素座標情報テーブルTa1と奇数ライン偶数個目欠陥用テーブル21oeから読み出された欠陥画素座標である欠陥画素座標情報テーブルTa0とを、処理モード及び偶数側テーブル切替信号であるテーブル切替制御信号Steに応じて切り替えて偶数側欠陥画素座標であるテーブル情報Taとして出力する。したがって、偶数側欠陥画素座標切替部22eは、偶数側欠陥画素座標切替手段として機能している。 The even-numbered defective pixel coordinate switching unit 22e is constructed by the selector Sa0 and the selector Sa2. The even-numbered defective pixel coordinate switching unit 22e has defective pixel coordinate information which is defective pixel coordinates read from the odd-numbered line odd-numbered defect table 21oo or the even-numbered line even-numbered defect table 21ee based on the respective read addresses. Switching between the table Ta1 and the defective pixel coordinate information table Ta0 that is the defective pixel coordinates read from the odd-numbered even-numbered defect table 21oe according to the processing mode and the table switching control signal Ste that is the even-side table switching signal Are output as table information Ta which are even-numbered defective pixel coordinates. Therefore, the even-numbered defective pixel coordinate switching unit 22e functions as even-numbered defective pixel coordinate switching means.
奇数側欠陥画素座標切替部22oは、セレクタSb0及びセレクタSb2により構築される。奇数側欠陥画素座標切替部22oは、それぞれの読出アドレスに基づいて奇数ライン奇数個目欠陥用テーブル21ooまたは偶数ライン偶数個目欠陥用テーブル21eeから読み出された欠陥画素座標である欠陥画素座標情報テーブルTb1と偶数ライン奇数個目欠陥用テーブル21eoから読み出された欠陥画素座標である欠陥画素座標情報テーブルTb0とを、処理モード及び奇数側テーブル切替信号であるテーブル切替制御信号Stoに応じて切り替えて奇数側欠陥画素座標であるテーブル情報Tbとして出力する。したがって、奇数側欠陥画素座標切替部22oは、奇数側欠陥画素座標切替手段として機能している。 The odd-numbered defective pixel coordinate switching unit 22o is constructed by the selector Sb0 and the selector Sb2. The odd-numbered defective pixel coordinate switching unit 22o has defective pixel coordinate information which is defective pixel coordinates read from the odd-numbered line odd-numbered defect table 21oo or the even-numbered line even-numbered defect table 21ee based on the respective read addresses. Switching between the table Tb1 and the defective pixel coordinate information table Tb0 that is the defective pixel coordinates read from the even-numbered odd-numbered defect table 21eo according to the processing mode and the table switching control signal Sto that is the odd-side table switching signal And output as table information Tb which is odd-numbered defective pixel coordinates. Therefore, the odd-numbered defective pixel coordinate switching unit 22o functions as odd-numbered defective pixel coordinate switching means.
座標検出部23は、カウンタ部11により構築され、入力画素の主走査方向及び副走査方向における座標(Xカウンタ、Yカウンタ)を検出する。したがって、座標検出部23は、座標検出手段として機能している。
The coordinate detection unit 23 is constructed by the
偶数画素欠陥判定部24eは、欠陥判定部16eにより構築され、座標検出部23の検出する検出座標と偶数側欠陥画素座標切替部22eからの偶数側欠陥画素座標(テーブル情報Ta)とを比較して、該検出座標の入力画素が欠陥画素であるか否か判定する。したがって、偶数画素欠陥判定部24eは、偶数画素欠陥判定手段として機能している。
The even pixel defect determination unit 24e is constructed by the
奇数画素欠陥判定部24oは、欠陥判定部16oにより構築され、座標検出部23の検出する検出座標と奇数側欠陥画素座標切替部22oからの奇数側欠陥画素座標(テーブル情報Tb)とを比較して、該検出座標の入力画素が欠陥画素であるか否か判定する。したがって、奇数画素欠陥判定部24oは、奇数画素欠陥判定手段として機能している。 The odd pixel defect determination unit 24o is constructed by the defect determination unit 16o, and compares the detection coordinates detected by the coordinate detection unit 23 with the odd defect pixel coordinates (table information Tb) from the odd defect pixel coordinate switching unit 22o. Thus, it is determined whether or not the input pixel of the detected coordinate is a defective pixel. Therefore, the odd pixel defect determination unit 24o functions as an odd pixel defect determination unit.
偶数側テーブル切替部25eは、テーブル切替部15eにより構築され、偶数画素欠陥判定部24eの判定結果と検出座標に応じた偶数側テーブル切替信号(テーブル切替制御信号Ste)を偶数側欠陥画素座標切替22eへ出力する。したがって、偶数側テーブル切替部25eは、偶数側テーブル切替手段として機能している。
The even-side table switching unit 25e is constructed by the
奇数側テーブル切替部25oは、テーブル切替部15oにより構築され、奇数画素欠陥判定部24oの判定結果と検出座標に応じた奇数側テーブル切替信号(テーブル切替制御信号Sto)を奇数側欠陥画素座標切替部22oへ出力する。したがって、奇数側テーブル切替部25oは、奇数側テーブル切替手段として機能している。 The odd-side table switching unit 25o is constructed by the table switching unit 15o, and the odd-side table switching signal (table switching control signal Sto) corresponding to the determination result of the odd-numbered pixel defect determining unit 24o and the detected coordinates is switched to the odd-side defective pixel coordinates. To the unit 22o. Therefore, the odd-side table switching unit 25o functions as an odd-side table switching unit.
アドレス制御部26は、アドレス制御部17e、17oにより構築され、セレクタSa1、Sb1で構築されるアドレス入力切替部26aを備えている。アドレス制御部26は、偶数画素欠陥判定部24eと奇数画素欠陥判定部24oの判定結果に基づいて各テーブル21eo、21oo、21ee、21oeへ読出アドレスを出力する。したがって、アドレス制御部26は、アドレス制御手段として機能している。アドレス入力切替部26aは、検出処理モードに応じて、読出アドレスの入力先を、奇数ライン奇数個目欠陥用テーブル21ooと偶数ライン偶数個目欠陥用テーブル21eeとを相互に切り替える。この場合、アドレス制御部26は、偶数ライン奇数個目欠陥用テーブル21eo及び奇数ライン偶数個目欠陥用テーブル21oeについては、読出アドレスを直接出力する。
The
座標登録部27は、欠陥画素座標情報格納部12、欠陥画素テーブル設定部13及び欠陥画素テーブル振分部14で構築されている。座標登録部27は、欠陥画素の座標を、偶数ライン奇数個目欠陥用テーブル21eo、奇数ライン奇数個目欠陥用テーブル21oo、偶数ライン偶数個目欠陥用テーブル21ee及び奇数ライン偶数個目欠陥用テーブル21oeへ振り分けて登録する。したがって、座標登録部27は、座標登録手段として機能している。
The coordinate registration unit 27 includes a defective pixel coordinate
補正部28は、欠陥画素補正部18e及び欠陥画素補正部18oで構築され、偶数画素欠陥判定部24e及び奇数画素欠陥判定部24oが欠陥画素であると判定した欠陥画素を補正する。したがって、補正部28は、補正手段として機能している。
The correcting
次に、本実施例の作用を説明する。本実施例の画像処理装置1は、その画素検査部10が、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行う。
Next, the operation of this embodiment will be described. In the
撮像センサは、一般的に、図4にイメージとして示したように、欠陥画素が存在し、撮像センサからの画像データを処理する画像処理装置は、撮像センサからの入力画素が、欠陥画素の画素であるか否かを検出する必要がある。 In general, as shown in FIG. 4 as an image, an imaging sensor has a defective pixel, and an image processing apparatus that processes image data from the imaging sensor has an input pixel from the imaging sensor as a defective pixel. It is necessary to detect whether or not.
一般的な画像処理装置は、撮像センサからは、図4の先頭ラインの主走査方向先頭画素を基準画素として、該基準画素から主走査方向へ、また、上ラインからしたラインへと画素が出力される。 A general image processing apparatus outputs pixels from the image sensor to the main scanning direction from the reference pixel in the main scanning direction of the first line in FIG. 4 to the main scanning direction and to the line from the upper line. Is done.
読取画像データを処理する一般的な画像処理装置は、従来、図6に示すような欠陥用テーブルを備え、欠陥用テーブルには、画像データの入力順と合わせて欠陥画素位置情報を座標の若い順に欠陥画素座標情報が登録される。欠陥用テーブルは、欠陥用テーブルの先頭からアドレスが振られ、例えば、図6に示すように、アドレス0〜N−1までのN個のアドレスを有していると、最大N個までの欠陥画素を登録して検出することができる。なお、図6は、図4の欠陥画素に対応したアドレスに欠陥画素の座標情報が登録されている状態が示されている。
A typical image processing apparatus that processes read image data has conventionally been provided with a defect table as shown in FIG. 6, and the defect table has the coordinates of defective pixel position information in accordance with the input order of the image data. Defective pixel coordinate information is registered in order. The defect table is addressed from the beginning of the defect table. For example, as shown in FIG. 6, if there are N addresses from
画像処理装置は、欠陥用テーブルのアドレス0番地の座標情報(図6では、A(X=3、Y=2))を読み出し、画像データ入力毎にカウントされるX方向カウンタ、Y方向カウンタの値と上記座標情報とを比較する。画像処理装置は、Xカウンタ及びY方向カウンタの値と欠陥用テーブルのXY座標が一致すると、入力画素が欠陥画素であると判定する。画像処理装置は、欠陥画素と判定すると、欠陥用テーブルのアドレスを1つインクリメントして、欠陥用テーブルの次のアドレスの座標情報(図6では、B(X=12、Y=2))を読み出し、同様の処理を行うことを繰り返し実行する。
The image processing apparatus reads the coordinate information at
ところが、上記処理では、1画素ずつ処理するため、処理速度を向上させるためには、複数画素、例えば、2画素ずつ処理する必要がある。 However, since the above processing is performed pixel by pixel, in order to improve the processing speed, it is necessary to process a plurality of pixels, for example, two pixels each.
例えば、図4に示した2画素並列処理を行うことで、処理速度を向上させることができる。この場合、欠陥画素が2画素主走査方向に連続して並んでいる場合も考慮して、欠陥用テーブルからは2画素分の座標情報を読み出しておく必要がある。また、画像処理装置は、画像処理や撮像センサの都合で、並列処理の単位を2画素並列だけではなく、図4に示した2ライン並列処理を行う場合もあり、この場合も、副走査方向に2画素欠陥画素が存在することを考慮する必要がある。ところが、従来の欠陥用テーブルは、主走査方向にアドレスが振られており、2ライン並列処理であると、2ライン並列処理用の欠陥用テーブルを用意するか、2ライン処理用のアドレス変換を行って、欠陥画素の欠陥用テーブルからの読み出しを行う必要がある。また、2画素並列処理と2ライン並列処理が切り替えて行われる場合には、画像処理装置は、上記処理を処理モード毎に切り替えて行う必要があり、処理効率が悪い。 For example, the processing speed can be improved by performing the two-pixel parallel processing shown in FIG. In this case, it is necessary to read out coordinate information for two pixels from the defect table in consideration of the case where defective pixels are continuously arranged in the two-pixel main scanning direction. In addition, the image processing apparatus may perform not only two-pixel parallel processing but also the two-line parallel processing shown in FIG. 4 for the convenience of image processing and an image sensor. It is necessary to consider that there are two defective pixels. However, in the conventional defect table, addresses are assigned in the main scanning direction, and in the case of two-line parallel processing, a defect table for two-line parallel processing is prepared, or address conversion for two-line processing is performed. It is necessary to read out the defective pixel from the defect table. Further, when the two-pixel parallel processing and the two-line parallel processing are performed by switching, the image processing apparatus needs to perform the above processing for each processing mode, and the processing efficiency is poor.
そこで、本発明の画像処理装置1は、図1に示したような画素検査部10を備え、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行う。
Therefore, the
すなわち、画素検査部10は、処理モードが2画素並列処理であると、図7及び図8に示すように動作処理して、適切かつ高速に欠陥画素の検出を行う。
That is, when the processing mode is two-pixel parallel processing, the
画素検査部10は、2画素並列処理モードにおいては、図7に太線矢印で示すように、偶数ライン処理時は、偶数ライン偶数個目欠陥用テーブルTee及び偶数ライン奇数個目欠陥用テーブルTeoの2つのテーブルを読み出して欠陥画素補正処理を行う。また、画素検査部10は、奇数ライン処理時は、奇数ライン偶数個目欠陥用テーブルToe及び奇数ライン奇数個目欠陥用テーブルTooの2つのテーブルを読み出して欠陥画素補正処理を行う。
In the two-pixel parallel processing mode, the
すなわち、画素検査部10は、2画素並列処理モードにおいては、図7に示すように、処理モードが「1」となり、セレクタSa0、Sa1、Sb0、Sb1が、1フレームの期間中は固定される。画素検査部10は、セレクタSa2に、テーブル情報Ta0として、偶数ライン奇数個目欠陥用テーブルTeoの欠陥画素座標情報が、テーブル情報Ta1として、奇数ライン奇数個目欠陥用テーブルTooの欠陥画素座標情報が入力される。また、画素検査部10は、セレクタSb2に、テーブル情報Tb0として、奇数ライン偶数個目欠陥用テーブルToeの欠陥画素座標情報が、テーブル情報Tb1として、偶数ライン偶数個目欠陥用テーブルTeeの欠陥画素座標情報が入力される。
That is, in the two-pixel parallel processing mode, the
また、画素検査部10は、2画素並列処理モードにおいては、テーブル切替制御信号Ste、Stoにより、セレクタSa2、Sb2の出力が、ライン毎に切り替わる。したがって、セレクタSa2は、テーブル情報Taとして、奇数個目欠陥用テーブルTeo、Tooの欠陥画素座標情報テーブルTao、Ta1を、ライン毎に切り替えて出力する。同様に、セレクタSb2は、テーブル情報Tbとして、偶数個目欠陥用テーブルTee、Toeの欠陥画素座標情報テーブルTb0、Tb1をライン毎に切り替えて出力する。
In the two-pixel parallel processing mode, the
欠陥判定部16e、16oは、偶数個目のテーブル情報Taと奇数個目のテーブル情報Tbの双方を参照して、欠陥画素の検知を行う。
The
すなわち、画素検査部10は、2画素並列処理モードにおいては、図8に示す動作タイミングで、欠陥画素の検出を行う。
That is, the
セレクタSa2は、テーブル切替部15eからのテーブル切替制御信号Steにより、欠陥画素座標情報テーブルTao、Ta1をライン毎に切り替えて、テーブル情報Taとして出力する。セレクタSb2は、テーブル切替部15oからのテーブル切替制御信号Stoにより、欠陥画素座標情報テーブルTb0、Tb1をライン毎に切り替えて、テーブル情報Tbとして出力する。図8において、欠陥画素座標情報テーブルTa0、Ta1、Tb0、Tb1は、ハッチングの施されている期間が、非選択期間であり、ハッチングの施されていない期間が、選択期間である。
The selector Sa2 switches the defective pixel coordinate information tables Tao and Ta1 for each line by the table switching control signal Ste from the
図8において、画素検査部10は、T1で、2ライン目(偶数ライン)の奇数側データがテーブル情報Ta(欠陥画素A(X=3、Y=2))と一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_AOがアサートする。アドレス制御部17eは、欠陥画素一致情報HIT_AOがアサートされると、アドレスA0をインクリメントし、次のサイクルで新しい欠陥画素C(X=18、Y=2)のテーブル情報Taを読み出す。
In FIG. 8, the
画素検査部10は、T2で、2ライン目(偶数ライン)の偶数側データがテーブル情報Tb(欠陥画素B(X=12、Y=2))に一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_BEをアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BEがアサートされると、アドレスB1をインクリメントし、次のサイクルで新しい欠陥画素D(X=19、Y=2)のテーブル情報Tbを読み出す。
Since the
画素検査部10は、T3で、2ライン目(偶数ライン)の偶数側データがテーブル情報Taと一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_AEをアサートする。アドレス制御部17eは、欠陥画素一致情報HIT_AEがアサートされると、アドレスA0をインクリメントし、次のサイクルで新しい欠陥画素(X=※、Y=※)が読み出される。また、画素検査部10は、T3で、2ライン目(偶数ライン)の奇数側データがテーブル情報Tbと一致したため、欠陥判定部16oが、欠陥画素一致情報HIT_BOをアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BOがアサートすると、アドレスB1をインクリメントし、次のサイクルで新しい欠陥画素(X=※、Y=※)のテーブル情報Tbが読み出される。
In T3, since the even-numbered data of the second line (even number line) matches the table information Ta at T3, the
画素検査部10は、T4で、3ライン目(奇数ライン)の偶数側データがテーブル情報Taに一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_AEをアサートする。アドレス制御部17eは、欠陥画素一致情報HIT_AEがアサートすると、アドレスA1をインクリメントし、次のサイクルで新しい欠陥画素(X=12、Y=3)のテーブル情報Taが読み出される。
In T4, since the even-numbered data of the third line (odd line) matches the table information Ta at T4, the
画素検査部10は、T5で、3ライン目(奇数ライン)の奇数側データがテーブル情報Tbと一致したため、欠陥判定部16oが、欠陥画素一致情報HIT_BOをアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BOがアサートすると、アドレスB0をインクリメントし、次のサイクルで新しい欠陥画素(X=20、Y=3)のテーブル情報Tbが読み出される。
The
画素検査部10は、T6で、3ライン目(奇数ライン)の偶数側データがテーブル情報Taと一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_AEをアサートする。アドレス制御部17eは、欠陥画素一致情報HIT_AEがアサートすると、アドレスA1をインクリメントし、次のサイクルで新しい欠陥画素(X=※、Y=※)のテーブル情報Tbが読み出される。
In T6, since the even-numbered data of the third line (odd line) matches the table information Ta at T6, the
画素検査部10は、T7で、3ライン目(奇数ライン)の偶数側データがテーブル情報Tbと一致したため、欠陥判定部16eが欠陥画素一致情報HIT_BEをアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BEがアサートすると、アドレスB0をインクリメントし、次のサイクルで新しい欠陥画素(X=※、Y=※)のテーブルTaが読み出される。
In T7, since the even-numbered data of the third line (odd line) matches the table information Tb at T7, the
画素検査部10は、上記動作処理を順次繰り返し行なって、最終ラインの最終画素まで処理すると、検出処理を終了する。
When the
また、画素検査部10は、処理モードが2ライン並列処理であると、図9及び図10に示すように動作処理して、適切かつ高速に欠陥画素の検出を行う。
Further, when the processing mode is 2-line parallel processing, the
画素検査部10は、2ライン並列処理モードにおいては、図9に太線矢印で示すように、処理モードが「0」となり、セレクタSa0、Sa1、Sb0、Sb1が、1フレームの期間中は固定される。画素検査部10は、セレクタSa2に、テーブル情報Ta0として、偶数ライン奇数個目欠陥用テーブルTeoの欠陥画素座標情報が、テーブル情報Ta1として、偶数ライン偶数個目欠陥用テーブルTeeの欠陥画素座標情報が入力される。また、画素検査部10は、セレクタSb2に、テーブル情報Tb0として、奇数ライン偶数個目欠陥用テーブルToeの欠陥画素座標情報が、テーブル情報Tb1として、奇数ライン奇数個目欠陥用テーブルTooの欠陥画素座標情報が入力される。
In the two-line parallel processing mode, the
また、画素検査部10は、2ライン並列処理モードにおいては、テーブル切替制御信号Ste、Stoにより、セレクタSa2、Sb2の出力が、欠陥画素検知毎に切り替わる。したがって、セレクタSa2は、テーブル情報Taとして、偶数ライン欠陥用テーブルTeo、Teeの欠陥画素座標情報テーブルTao、Ta1を、欠陥画素検知毎に切り替えて出力する。同様に、セレクタSb2は、テーブル情報Tbとして、奇数ライン欠陥用テーブルTee、Tooの欠陥画素座標情報テーブルTb0、Tb1を欠陥画素検知毎に切り替えて出力する。
In the two-line parallel processing mode, the
欠陥判定部16e、16oは、偶数ラインの欠陥情報であるテーブル情報Taと奇数ラインの欠陥情報であるテーブル情報Tbの双方を参照して、欠陥画素の検知を行う。
The
すなわち、画素検査部10は、2ライン並列処理モードにおいては、図10に示す動作タイミングで、欠陥画素の検出を行う。
That is, the
セレクタSa2は、テーブル切替部15eからのテーブル切替制御信号Steにより、欠陥画素座標情報テーブルTao、Ta1を欠陥画素検知毎に切り替えて、テーブル情報Taとして出力する。セレクタSb2は、テーブル切替部15oからのテーブル切替制御信号Stoにより、欠陥画素座標情報テーブルTb0、Tb1を欠陥画素検知毎に切り替えて、テーブル情報Tbとして出力する。図10において、欠陥画素座標情報テーブルTa0、Ta1、Tb0、Tb1は、ハッチングの施されている期間が、非選択期間であり、ハッチングの施されていない期間が、選択期間である。
The selector Sa2 switches the defective pixel coordinate information tables Tao and Ta1 for each defective pixel detection by the table switching control signal Ste from the
図10において、画素検査部10は、T1で、奇数側データが欠陥画素E(X=2、Y=3)のテーブル情報Tbと一致したため、欠陥判定部16oが、欠陥画素一致情報HIT_BOがアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BOがアサートされると、テーブル切替制御信号Stoが「1」であるので、アドレスB1をインクリメントする。また、テーブル切替部15oは、奇数側データで欠陥検知されたため、テーブル切替制御信号Stoを「1」から「0」に切り替える。
In FIG. 10, since the
画素検査部10は、T2で、偶数側データがテーブル情報Taに一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_AEをアサートする。アドレス制御部17eは、欠陥画素一致情報HIT_AEがアサートされると、テーブル切替制御信号Steが「0」であるので、アドレスA0をインクリメントする。また、テーブル切替部15eは、偶数側データで欠陥検知されたため、テーブル切替制御信号Steを「0」から「1」に切り替える。
In the
画素検査部10は、T3で、偶数側データがテーブル情報Tbと一致したため、欠陥判定部16oが、欠陥画素一致情報HIT_BOをアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BOがアサートされると、テーブル切替制御信号Stoが「0」であるので、アドレスB0をインクリメントする。また、テーブル切替部15oは、奇数側データで欠陥検知されたため、テーブル切替制御信号Stoを「0」から「1」に切り替える。
In the
画素検査部10は、T4で、偶数側データがテーブル情報Taに一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_AEをアサートする。アドレス制御部17eは、欠陥画素一致情報HIT_AEがアサートされると、テーブル切替制御信号Steが「1」であるので、アドレスA1をインクリメントする。また、テーブル切替部15eは、偶数データで欠陥検知されたため、テーブル切替制御信号Steを「1」から「0」に切り替える。また、画素検査部10は、T4で、奇数側データがテーブル情報Tbに一致したため、欠陥判定部16oが、欠陥画素一致情報HIT_BOをアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BOがアサートされると、テーブル切替制御信号Stoが「1」であるので、アドレスB1をインクリメントする。また、テーブル切替部15oは、奇数側データで欠陥検知されたため、テーブル切替制御信号Stoを「1」から「0」に切り替える。
In the
画素検査部10は、T5で、偶数側データがテーブル情報Taと一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_AEをアサートする。アドレス制御部17eは、欠陥画素一致情報HIT_AEがアサートされると、テーブル切替制御信号Steが「0」であるので、アドレスA0をインクリメントする。また、テーブル切替部15eは、偶数側データで欠陥検知されたため、テーブル切替制御信号Steを「0」から「1」に切り替える。
In the
画素検査部10は、T6で、偶数側データがテーブル情報Taと一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_AEをアサートする。アドレス制御部17eは、欠陥画素一致情報HIT_AEがアサートされると、テーブル切替制御信号Steが「1」であるので、アドレスA1をインクリメントする。また、テーブル切替部15eは、偶数側データで欠陥検知されたため、テーブル切替制御信号Steを「1」から「0」に切り替える。
In the
画素検査部10は、T7で、奇数側データがテーブル情報Tbと一致したため、欠陥判定部16oが、欠陥画素一致情報HIT_BOをアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BOがアサートされると、テーブル切替制御信号Stoが「0」であるので、アドレスB0をインクリメントする。また、テーブル切替部15oは、奇数側データで欠陥検知されたため、テーブル切替制御信号Stoを「0」から「1」に切り替える。
In the
このように、本実施例の画素検査部10は、処理モードが2画素並列処理モードであると、偶数ライン処理時には、偶数ライン偶数個目欠陥用テーブルTee及び偶数ライン奇数個目欠陥画素用テーブルTeoの2つのテーブルを読み出して欠陥画素検知を行う。また、画素検査部10は、奇数ライン処理時には、奇数ライン偶数個目欠陥用テーブルToe及び奇数ライン奇数個目欠陥用テーブルTooの2つのテーブルを読み出して欠陥画素検知を行う。
As described above, when the processing mode is the two-pixel parallel processing mode, the
さらに、画素検査部10は、処理モードが2ライン並列処理モードであると、偶数ライン処理時には、偶数ライン偶数個目欠陥用テーブルTee及び偶数ライン奇数個目欠陥用テーブルTeoの2つのテーブルを読み出して欠陥画素検知を行う。また、画素検査部10は、奇数ライン処理時には、奇数ライン偶数個目欠陥用テーブルToe及び奇数ライン奇数個目欠陥用テーブルTooの2つのテーブルを読み出して欠陥画素検知を行う。
Furthermore, when the processing mode is the two-line parallel processing mode, the
したがって、画素検査部10は、処理モードによって欠陥用テーブルTeo、Too、Tee、Toeへの欠陥画素座標情報の書き換えを行うことなく、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行うことができる。
Therefore, the
また、画素検査部10は、画像処理装置1の出荷時に欠陥画素座標情報格納部12に格納される欠陥画素座標を、欠陥画素テーブル設定部13及び欠陥画素テーブル振分部14によって、各欠陥用テーブルTeo、Too、Tee、Toeへ振り分けて登録する。
Further, the
したがって、自動的に、欠陥画素の座標情報を欠陥用テーブルTeo、Too、Tee、Toeへ振り分けて登録することができ、処理性能を向上させることができる。 Therefore, the coordinate information of the defective pixel can be automatically distributed and registered in the defect tables Teo, Too, Tee, and Toe, and the processing performance can be improved.
さらに、画素検査部10は、欠陥画素補正部18e及び欠陥画素補正部18oが、欠陥判定部16e及び欠陥判定部16oの判定結果である欠陥画素判定結果信号SE及び欠陥画素判定結果信号SOに基づいて、欠陥画素である入力画素を補正する。この欠陥画素の補正方法は、適宜の補正方法を用いることができる。
Further, in the
したがって、適切かつ高速に検出された欠陥画素を、補正して画像品質を向上させることができる。 Therefore, it is possible to improve image quality by correcting defective pixels detected appropriately and at high speed.
このように、本実施例の画像処理装置1の画素検査部10は、主走査方向所定数の画素を1ラインとして所定数のラインを有する画像データの画素が、該主走査方向と直交する副走査方向の先頭ラインの該主走査方向先頭画素を基準画素として、該基準画素から連続して入力画素として入力され、該入力画素が欠陥画素であるか否かの検出処理を行う画素検査装置であって、偶数ラインの主走査方向奇数個目の欠陥画素座標が登録される偶数ライン奇数個目欠陥用テーブル21eo(Teo)と、奇数ラインの主走査方向奇数個目の欠陥画素座標が登録される奇数ライン奇数個目欠陥用テーブル21oo(Too)と、偶数ラインの主走査方向偶数個目の欠陥画素座標が登録される偶数ライン偶数個目欠陥用テーブル21ee(Tee)と、奇数ラインの主走査方向偶数個目の欠陥画素座標が登録される奇数ライン偶数個目欠陥用テーブル21oe(Toe)と、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブル21ooまたは前記偶数ライン偶数個目欠陥用テーブル21eeから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブル21oeから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及びテーブル切替制御信号Steとしての偶数側テーブル切替信号に応じて切り替えてテーブル情報Taである偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替部(偶数側欠陥画素座標切替手段)22eと、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブル21ooまたは前記偶数ライン偶数個目欠陥用テーブル21eeから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブル21eoから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及びテーブル切替制御信号Stoとしての奇数側テーブル切替信号に応じて切り替えてテーブル情報Tbである奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替部(奇数側欠陥画素座標切替手段)22oと、前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出部(座標検出手段)23と、前記座標検出部23の検出する検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する欠陥判定部16eである偶数画素欠陥判定部(偶数画素欠陥判定手段)24eと、前記座標検出部23の検出する検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する欠陥判定部16oである奇数画素欠陥判定部(奇数画素欠陥判定手段)24oと、前記偶数画素欠陥判定部24eの判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替部22eへ出力するテーブル切替部15eである偶数側テーブル切替部(偶数側テーブル切替手段)25eと、前記奇数画素欠陥判定24oの判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替部22oへ出力するテーブル切替部15oである奇数側テーブル切替部(奇数側テーブル切替手段)25oと、前記偶数画素欠陥判定部24eと前記奇数画素欠陥判定部24oの判定結果に基づいて前記各テーブル21eo、21oo、21ee、21oeへ読出アドレスを出力するアドレス制御部17e、17oであるアドレス制御部(アドレス制御手段)26と、を備えている。
As described above, the
したがって、画素検査部10は、処理モードによって欠陥用テーブルTeo、Too、Tee、Toeへの欠陥画素座標情報の書き換えを行うことなく、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行うことができる。
Therefore, the
また、本実施例の画像処理装置1の画素検査部10は、主走査方向所定数の画素を1ラインとして所定数のラインを有する画像データの画素が、該主走査方向と直交する副走査方向の先頭ラインの該主走査方向先頭画素を基準画素として、該基準画素から連続して入力画素として入力され、該入力画素が欠陥画素であるか否かの検出処理を行う画素検査装置の実行する画素検査方法であって、偶数ラインの主走査方向奇数個目の欠陥画素座標を偶数ライン奇数個目欠陥用テーブル21eo(Teo)へ登録する偶数ライン奇数個目欠陥用テーブル登録処理ステップと、奇数ラインの主走査方向奇数個目の欠陥画素座標を奇数ライン奇数個目欠陥用テーブル21oo(Too)へ登録する奇数ライン奇数個目欠陥用テーブル登録処理ステップと、偶数ラインの主走査方向偶数個目の欠陥画素座標を偶数ライン偶数個目欠陥用テーブル21ee(Tee)へ登録する偶数ライン偶数個目欠陥用テーブル登録処理ステップと、奇数ラインの主走査方向偶数個目の欠陥画素座標を奇数ライン偶数個目欠陥用テーブル21oe(Toe)へ登録する奇数ライン偶数個目欠陥用テーブル登録処理ステップと、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブル21ooまたは前記偶数ライン偶数個目欠陥用テーブル21eeから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブル21oeから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及びテーブル切替制御信号Steとしての偶数側テーブル切替信号に応じて切り替えてテーブル情報Taである偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替処理ステップと、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブル21ooまたは前記偶数ライン偶数個目欠陥用テーブル21eeから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブル21eoから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及びテーブル切替制御信号Stoとしての奇数側テーブル切替信号に応じて切り替えて奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替処理ステップと、前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出処理ステップと、前記座標検出処理ステップで検出される検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する偶数画素欠陥判定処理ステップと、前記座標検出処理ステップで検出される検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する奇数画素欠陥判定処理ステップと、前記偶数画素欠陥判定処理ステップでの判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替処理ステップへ出力する偶数側テーブル切替処理ステップと、前記奇数画素欠陥判定処理ステップでの判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替処理ステップへ出力する奇数側テーブル切替処理ステップと、前記偶数画素欠陥判定処理ステップと前記奇数画素欠陥判定処理ステップでの判定結果に基づいて前記各テーブルへ読出アドレスを出力するアドレス制御処理ステップと、を有する画素検査方法を実行する。
In addition, the
したがって、画素検査部10は、処理モードによって欠陥用テーブルTeo、Too、Tee、Toeへの欠陥画素座標情報の書き換えを行うことなく、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行うことができる。
Therefore, the
さらに、本実施例の画像処理装置1の画素検査部10は、主走査方向所定数の画素を1ラインとして所定数のラインを有する画像データの画素が、該主走査方向と直交する副走査方向の先頭ラインの該主走査方向先頭画素を基準画素として、該基準画素から連続して入力画素として入力され、該入力画素が欠陥画素であるか否かの検出処理を行う画素検査装置の搭載するプログラムであって、制御プロセッサに、偶数ラインの主走査方向奇数個目の欠陥画素座標を偶数ライン奇数個目欠陥用テーブル21eo(Teo)へ登録する偶数ライン奇数個目欠陥用テーブル登録処理と、奇数ラインの主走査方向奇数個目の欠陥画素座標を奇数ライン奇数個目欠陥用テーブル21oo(Too)へ登録する奇数ライン奇数個目欠陥用テーブル登録処理と、偶数ラインの主走査方向偶数個目の欠陥画素座標を偶数ライン偶数個目欠陥用テーブル21ee(Tee)へ登録する偶数ライン偶数個目欠陥用テーブル登録処理と、奇数ラインの主走査方向偶数個目の欠陥画素座標を奇数ライン偶数個目欠陥用テーブル21oe(Toe)へ登録する奇数ライン偶数個目欠陥用テーブル登録処理と、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブル21ooまたは前記偶数ライン偶数個目欠陥用テーブル21eeから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブル21oeから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及びテーブル切替制御信号Steとしての偶数側テーブル切替信号に応じて切り替えてテーブル情報Taである偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替処理と、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブル21ooまたは前記偶数ライン偶数個目欠陥用テーブル21eeから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブル21eoから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及びテーブル切替制御信号Stoとしての奇数側テーブル切替信号に応じて切り替えて奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替処理と、前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出処理と、前記座標検出処理で検出される検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する偶数画素欠陥判定処理と、前記座標検出処理で検出される検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する奇数画素欠陥判定処理と、前記偶数画素欠陥判定処理での判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替処理へ出力する偶数側テーブル切替処理と、前記奇数画素欠陥判定処理での判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替処理へ出力する奇数側テーブル切替処理と、前記偶数画素欠陥判定処理と前記奇数画素欠陥判定処理での判定結果に基づいて前記各テーブルへ読出アドレスを出力するアドレス制御処理と、を実行させるプログラムを搭載している。
Further, the
したがって、画素検査部10は、処理モードによって欠陥用テーブルTeo、Too、Tee、Toeへの欠陥画素座標情報の書き換えを行うことなく、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行うことができる。
Therefore, the
また、本実施例の画像処理装置1の画素検査部10は、前記偶数ライン奇数個目欠陥用テーブル21eo(Teo)、前記奇数ライン奇数個目欠陥用テーブル21oo(Too)、前記偶数ライン偶数個目欠陥用テーブル21ee(Tee)及び前記奇数ライン偶数個目欠陥用テーブル21oe(Toe)は、それぞれの記憶手段または1つの記憶手段に記憶されている。
In addition, the
したがって、速やかに各欠陥用テーブル21eo、21oo、21ee、21oeから欠陥画素座標情報を読み出して、欠陥画素の検出処理を行うことができる。その結果、欠陥画素の検出処理モードが異なる場合においても、より一層適切かつ高速に欠陥画素の検出を行うことができる。 Therefore, defective pixel coordinate information can be quickly read out from the defect tables 21eo, 21oo, 21ee, and 21oe to perform defective pixel detection processing. As a result, even when the defective pixel detection processing mode is different, the defective pixel can be detected more appropriately and at high speed.
さらに、本実施例の画像処理装置1の画素検査部10は、前記アドレス制御部26が、アドレス入力切替部(アドレス入力切替手段)26aを備え、前記偶数ライン奇数個目欠陥用テーブル21eo及び前記奇数ライン偶数個目欠陥用テーブル21oeについては、前記読出アドレスを直接出力し、前記アドレス入力切替部26aが、前記検出処理モードに応じて、前記読出アドレスの入力先を、前記奇数ライン奇数個目欠陥用テーブル21ooと前記偶数ライン偶数個目欠陥用テーブル21eeとを相互に切り替える。
Further, in the
したがって、速やかにかつ適切に各欠陥用テーブル21eo、21oo、21ee、21oeの読出アドレスを切り替えて各欠陥用テーブル21eo、21oo、21ee、21oeから欠陥画素座標情報を読み出し、欠陥画素の検出処理を行うことができる。その結果、欠陥画素の検出処理モードが異なる場合においても、より一層適切かつ高速に欠陥画素の検出を行うことができる。 Accordingly, the defective pixel coordinate information is read from each defect table 21eo, 21oo, 21ee, 21oe by switching the read address of each defect table 21eo, 21oo, 21ee, 21oe promptly and appropriately, and a defective pixel detection process is performed. be able to. As a result, even when the defective pixel detection processing mode is different, the defective pixel can be detected more appropriately and at high speed.
また、本実施例の画像処理装置1の画素検査部10は、前記処理モードは、連続する2ラインの主走査方向同一位置の2つの画素を並列して処理する2ライン並列処理モードと、同じラインで主走査方向に連続する2つの画素を並列して処理する2画素並列処理モードと、である。
In the
したがって、処理モードが、2画素並列処理モードと2ライン並列処理モードが切り替わる場合にも、処理モードによって欠陥用テーブルTeo、Too、Tee、Toeへの欠陥画素座標情報の書き換えを行うことなく、適切かつ高速に欠陥画素の検出を行うことができる。 Therefore, even when the processing mode is switched between the two-pixel parallel processing mode and the two-line parallel processing mode, the processing mode does not rewrite defective pixel coordinate information to the defect tables Teo, Too, Tee, and Toe. In addition, defective pixels can be detected at high speed.
さらに、本実施例の画像処理装置1の画素検査部10は、前記偶数側テーブル切替部25e及び前記奇数側テーブル切替部25oが、前記処理モードが前記2画素並列処理モードであると、前記偶数側欠陥画素座標及び前記奇数側欠陥画素座標を切り替えさせる前記偶数側テーブル切替信号及び前記奇数側テーブル切替信号をライン単位で切り替える。
Furthermore, in the
したがって、2画素並列処理モードにおいて、ライン単位で欠陥用テーブルTeo、Too、Tee、Toeを切り替えて、欠陥画素座標を読み出すことができ、適切かつ高速に欠陥画素の検出を行うことができる。 Therefore, in the two-pixel parallel processing mode, the defect table Teo, Too, Tee, and Toe can be switched in units of lines to read out defective pixel coordinates, and defective pixels can be detected appropriately and at high speed.
また、本実施例の画像処理装置1の画素検査部10は、前記欠陥画素の座標を、前記偶数ライン奇数個目欠陥用テーブル21eo(Teo)、前記奇数ライン奇数個目欠陥用テーブル21oo(Too)、前記偶数ライン偶数個目欠陥用テーブル21ee(Tee)及び前記奇数ライン偶数個目欠陥用テーブル21oe(Toe)へ振り分けて登録する座標登録部(座標登録手段)27を、さらに備えている。
Further, the
したがって、欠陥画素座標情報を、速やかにかつ正確に各欠陥用テーブルTeo、Too、Tee、Toeに振り分けて自動で登録することができる。その結果、処理の適正化と処理速度を向上させることができる。 Accordingly, the defective pixel coordinate information can be automatically registered by being quickly and accurately distributed to each of the defect tables Teo, Too, Tee, and Toe. As a result, processing optimization and processing speed can be improved.
さらに、本実施例の画像処理装置1の画素検査部10は、前記偶数画素欠陥判定部24e及び前記奇数画素欠陥判定部24oが欠陥画素であると判定した欠陥画素を補正する補正部(補正手段)28を、さらに備えている。
Further, the
したがって、入力される欠陥画素を適切かつ速やかに補正することができ、処理画像の画質を向上させることができる。 Therefore, the input defective pixel can be corrected appropriately and promptly, and the image quality of the processed image can be improved.
また、本実施例の画像処理装置1の画素検査部10は、前記偶数ライン奇数個目欠陥用テーブル21eo(Teo)、前記奇数ライン奇数個目欠陥用テーブル21oo(Too)、前記偶数ライン偶数個目欠陥用テーブル21ee(Tee)及び前記奇数ライン偶数個目欠陥用テーブル21oe(Toe)が、前記補正部28による補正方法の情報をも記憶する。
In addition, the
したがって、ユーザの意図する補正方法や欠陥画素の状態に応じた補正を行うことができ、利用性を向上させることができるとともに、処理画像の画質を向上させることができる。 Therefore, the correction according to the correction method intended by the user and the state of the defective pixel can be performed, and the usability can be improved and the image quality of the processed image can be improved.
以上、本発明者によってなされた発明を好適な実施例に基づき具体的に説明したが、本発明は上記実施例で説明したものに限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることはいうまでもない。 The invention made by the present inventor has been specifically described based on the preferred embodiments. However, the present invention is not limited to that described in the above embodiments, and various modifications can be made without departing from the scope of the invention. It goes without saying that it is possible.
1 画像処理装置
10 画素検査部
11 カウンタ部
12 欠陥画素座標情報格納部
13 欠陥画素テーブル設定部
14 欠陥画素テーブル振分部
Sa1、Sb1 セレクタ
Teo 偶数ライン奇数個目欠陥用テーブル
Too 奇数ライン奇数個目欠陥用テーブル
Tee 偶数ライン偶数個目欠陥用テーブル
Toe 奇数ライン偶数個目欠陥用テーブル
Sa0、Sb0 セレクタ
Sa2、Sb2 セレクタ
15e、15o テーブル切替部
16e、16o 欠陥判定部
17e、17o アドレス制御部
18e、18o 欠陥画素補正部
21eo 偶数ライン奇数個目欠陥用テーブル
21oo 奇数ライン奇数個目欠陥用テーブル
21ee 偶数ライン偶数個目欠陥用テーブル
21oe 奇数ライン偶数個目欠陥用テーブル
22e 偶数側欠陥画素座標切替部
22o 奇数側欠陥画素座標切替部
23 座標検出部
24e 偶数画素欠陥判定部
24o 奇数画素欠陥判定部
25e 偶数側テーブル切替部
25o 奇数側テーブル切替部
26 アドレス制御部
26a アドレス入力切替部
27 座標登録部
28 補正部
DESCRIPTION OF
Claims (11)
偶数ラインの主走査方向奇数個目の欠陥画素座標が登録される偶数ライン奇数個目欠陥用テーブルと、
奇数ラインの主走査方向奇数個目の欠陥画素座標が登録される奇数ライン奇数個目欠陥用テーブルと、
偶数ラインの主走査方向偶数個目の欠陥画素座標が登録される偶数ライン偶数個目欠陥用テーブルと、
奇数ラインの主走査方向偶数個目の欠陥画素座標が登録される奇数ライン偶数個目欠陥用テーブルと、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び偶数側テーブル切替信号に応じて切り替えて偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替手段と、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び奇数側テーブル切替信号に応じて切り替えて奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替手段と、
前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出手段と、
前記座標検出手段の検出する検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する偶数画素欠陥判定手段と、
前記座標検出手段の検出する検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する奇数画素欠陥判定手段と、
前記偶数画素欠陥判定手段の判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替手段へ出力する偶数側テーブル切替手段と、
前記奇数画素欠陥判定手段の判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替手段へ出力する奇数側テーブル切替手段と、
前記偶数画素欠陥判定手段と前記奇数画素欠陥判定手段の判定結果に基づいて前記各テーブルへ読出アドレスを出力するアドレス制御手段と、
を備えていることを特徴とする画素検査装置。 A pixel of image data having a predetermined number of lines with a predetermined number of pixels in the main scanning direction as one line is determined by using the first pixel in the main scanning direction of the first line in the sub-scanning direction orthogonal to the main scanning direction as the reference pixel A pixel inspection device that is continuously input from a pixel as an input pixel and performs a detection process as to whether or not the input pixel is a defective pixel,
An even-numbered odd-numbered defect table in which odd-numbered defective pixel coordinates of even-numbered lines are registered;
An odd-numbered odd-numbered defect table in which odd-numbered defective pixel coordinates of odd-numbered lines are registered;
Even-numbered line even-numbered defect table in which even-numbered defective pixel coordinates of even-numbered lines in the main scanning direction are registered;
An odd-numbered even-numbered defect table in which even-numbered defective pixel coordinates of odd-numbered lines are registered;
Based on the respective read addresses, the defective pixel coordinates read from the odd-numbered line odd-numbered defect table or the even-numbered line even-numbered defect table and the odd-numbered line even-numbered defect table were read out. The defective pixel coordinate switching means for switching the defective pixel coordinate according to the detection processing mode of the defective pixel and the even-side table switching signal and outputting as the even-side defective pixel coordinate;
The defect pixel coordinates read from the odd line odd number defect table or the even line even number defect table and the even line odd number defect table are read based on the respective read addresses. Odd side defective pixel coordinate switching means for switching the defective pixel coordinates according to the defective pixel detection processing mode and the odd side table switching signal to output as odd side defective pixel coordinates;
Coordinate detection means for detecting coordinates of the input pixel in the main scanning direction and the sub-scanning direction;
Even pixel defect determining means for comparing the detected coordinates detected by the coordinate detecting means with the even-numbered defective pixel coordinates to determine whether the input pixel of the detected coordinates is a defective pixel;
An odd pixel defect determining means for comparing the detected coordinates detected by the coordinate detecting means with the odd-numbered defective pixel coordinates and determining whether or not the input pixel of the detected coordinates is a defective pixel;
An even-side table switching unit that outputs the even-side table switching signal according to the determination result of the even-numbered pixel defect determining unit and the detected coordinates to the even-side defective pixel coordinate switching unit;
Odd-numbered table switching means for outputting the odd-numbered side table switching signal corresponding to the determination result of the odd-numbered pixel defect determining means and the detected coordinates to the odd-numbered defective pixel coordinate switching means;
Address control means for outputting a read address to each table based on the determination results of the even pixel defect determination means and the odd pixel defect determination means;
A pixel inspection apparatus comprising:
それぞれの記憶手段または1つの記憶手段に記憶されていることを特徴とする請求項1記載の画素検査装置。 The even line odd number defect table, the odd line odd number defect table, the even line even number defect table, and the odd line even number defect table are:
2. The pixel inspection apparatus according to claim 1, wherein the pixel inspection apparatus is stored in each storage unit or one storage unit.
アドレス入力切替手段を備え、
前記偶数ライン奇数個目欠陥用テーブル及び前記奇数ライン偶数個目欠陥用テーブルについては、前記読出アドレスを直接出力し、
前記アドレス入力切替手段は、
前記検出処理モードに応じて、前記読出アドレスの入力先を、前記奇数ライン奇数個目欠陥用テーブルと前記偶数ライン偶数個目欠陥用テーブルとを相互に切り替えることを特徴とする請求項1または請求項2記載の画素検査装置。 The address control means includes
With address input switching means,
For the even line odd number defect table and the odd line even number defect table, the read address is directly output,
The address input switching means is
2. The input destination of the read address is switched between the odd-numbered line odd-numbered defect table and the even-numbered line even-numbered defect table according to the detection processing mode. Item 3. The pixel inspection device according to Item 2.
連続する2ラインの主走査方向同一位置の2つの画素を並列して処理する2ライン並列処理モードと、同じラインで主走査方向に連続する2つの画素を並列して処理する2画素並列処理モードと、であることを特徴とする請求項1から請求項3のいずれかに記載の画素検査装置。 The processing mode is:
Two-line parallel processing mode for processing two pixels at the same position in the main scanning direction on two consecutive lines in parallel, and two-pixel parallel processing mode for processing two pixels on the same line in the main scanning direction in parallel The pixel inspection apparatus according to claim 1, wherein:
前記処理モードが前記2画素並列処理モードであると、前記偶数側欠陥画素座標及び前記奇数側欠陥画素座標を切り替えさせる前記偶数側テーブル切替信号及び前記奇数側テーブル切替信号をライン単位で切り替えることを特徴とする請求項4記載の画素検査装置。 The even-numbered table switching means and the odd-numbered table switching means are
When the processing mode is the two-pixel parallel processing mode, the even-side table switching signal and the odd-side table switching signal for switching the even-side defective pixel coordinates and the odd-side defective pixel coordinates are switched in line units. 5. The pixel inspection apparatus according to claim 4, wherein
前記欠陥画素の座標を、前記偶数ライン奇数個目欠陥用テーブル、前記奇数ライン奇数個目欠陥用テーブル、前記偶数ライン偶数個目欠陥用テーブル及び前記奇数ライン偶数個目欠陥用テーブルへ振り分けて登録する座標登録手段を、
さらに備えていることを特徴とする請求項1から請求項5のいずれかに記載の画素検査装置。 The pixel inspection device includes:
The coordinates of the defective pixels are distributed and registered in the even-numbered line odd-numbered defect table, the odd-numbered line odd-numbered defect table, the even-numbered line even-numbered defect table, and the odd-numbered line even-numbered defect table. Coordinate registration means to
The pixel inspection apparatus according to claim 1, further comprising:
前記偶数画素欠陥判定手段及び前記奇数画素欠陥判定手段が欠陥画素であると判定した欠陥画素を補正する補正手段を、
さらに備えていることを特徴とする請求項1から請求項6記載の画素検査装置。 The pixel inspection device includes:
Correction means for correcting defective pixels determined by the even pixel defect determination means and the odd pixel defect determination means as defective pixels,
The pixel inspection apparatus according to claim 1, further comprising:
前記補正手段による補正方法の情報をも記憶することを特徴とする請求項7記載の画素検査装置。 The even line odd number defect table, the odd line odd number defect table, the even line even number defect table, and the odd line even number defect table are:
The pixel inspection apparatus according to claim 7, wherein information on a correction method by the correction unit is also stored.
前記画素検査部として、請求項1から請求項8のいずれかに記載の画素検査装置を備えていることを特徴とする画像処理装置。 An image processing apparatus that performs image processing based on image data output by an imaging unit and includes a pixel inspection unit that inspects defective pixels of the image data,
An image processing apparatus comprising the pixel inspection device according to claim 1 as the pixel inspection unit.
偶数ラインの主走査方向奇数個目の欠陥画素座標を偶数ライン奇数個目欠陥用テーブルへ登録する偶数ライン奇数個目欠陥用テーブル登録処理ステップと、
奇数ラインの主走査方向奇数個目の欠陥画素座標を奇数ライン奇数個目欠陥用テーブルへ登録する奇数ライン奇数個目欠陥用テーブル登録処理ステップと、
偶数ラインの主走査方向偶数個目の欠陥画素座標を偶数ライン偶数個目欠陥用テーブルへ登録する偶数ライン偶数個目欠陥用テーブル登録処理ステップと、
奇数ラインの主走査方向偶数個目の欠陥画素座標を奇数ライン偶数個目欠陥用テーブルへ登録する奇数ライン偶数個目欠陥用テーブル登録処理ステップと、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び偶数側テーブル切替信号に応じて切り替えて偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替処理ステップと、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び奇数側テーブル切替信号に応じて切り替えて奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替処理ステップと、
前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出処理ステップと、
前記座標検出処理ステップで検出される検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する偶数画素欠陥判定処理ステップと、
前記座標検出処理ステップで検出される検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する奇数画素欠陥判定処理ステップと、
前記偶数画素欠陥判定処理ステップでの判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替処理ステップへ出力する偶数側テーブル切替処理ステップと、
前記奇数画素欠陥判定処理ステップでの判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替処理ステップへ出力する奇数側テーブル切替処理ステップと、
前記偶数画素欠陥判定処理ステップと前記奇数画素欠陥判定処理ステップでの判定結果に基づいて前記各テーブルへ読出アドレスを出力するアドレス制御処理ステップと、
を有することを特徴とする画素検査方法。 A pixel of image data having a predetermined number of lines with a predetermined number of pixels in the main scanning direction as one line is determined by using the first pixel in the main scanning direction of the first line in the sub-scanning direction orthogonal to the main scanning direction as the reference pixel A pixel inspection method that is executed by a pixel inspection device that is continuously input from a pixel as an input pixel and performs a detection process as to whether or not the input pixel is a defective pixel,
Even-numbered odd-numbered defect pixel registration for registering even-numbered odd-numbered defective pixel coordinates in the even-numbered line odd-numbered defect table in the main scanning direction;
Odd-numbered odd-numbered defect pixel coordinates for registering odd-numbered defective pixel coordinates in the main scanning direction of odd-numbered lines to the odd-numbered odd-numbered defect table;
Even-numbered line even-numbered defect table registration processing step for registering even-numbered even-numbered defective pixel coordinates in the even-numbered line even-numbered defect table;
Odd line even-numbered defect table registration processing step for registering even-numbered defective pixel coordinates of odd-numbered lines in the odd-numbered even-numbered defect table;
Based on the respective read addresses, the defective pixel coordinates read from the odd-numbered line odd-numbered defect table or the even-numbered line even-numbered defect table and the odd-numbered line even-numbered defect table were read out. The defective pixel coordinate switching processing step for switching the defective pixel coordinates according to the defective pixel detection processing mode and the even number side table switching signal to output as the even number side defective pixel coordinates;
The defect pixel coordinates read from the odd line odd number defect table or the even line even number defect table and the even line odd number defect table are read based on the respective read addresses. Odd-side defective pixel coordinate switching processing step for switching the defective pixel coordinates according to the defective pixel detection processing mode and the odd-side table switching signal and outputting them as odd-side defective pixel coordinates;
A coordinate detection processing step of detecting coordinates in the main scanning direction and the sub-scanning direction of the input pixel;
An even-numbered pixel defect determination processing step for comparing the detected coordinates detected in the coordinate detection processing step with the even-numbered side defective pixel coordinates to determine whether the input pixel of the detected coordinates is a defective pixel;
Comparing the detected coordinates detected in the coordinate detection processing step with the odd-numbered defective pixel coordinates and determining whether or not the input pixel of the detected coordinates is a defective pixel; and
An even-side table switching processing step for outputting the even-side table switching signal corresponding to the determination result in the even-numbered pixel defect determination processing step and the detected coordinates to the even-numbered side defective pixel coordinate switching processing step;
An odd-side table switching processing step of outputting the determination result in the odd-numbered pixel defect determination processing step and the odd-numbered table switching signal corresponding to the detected coordinates to the odd-numbered defective pixel coordinate switching processing step;
An address control processing step for outputting a read address to each table based on determination results in the even pixel defect determination processing step and the odd pixel defect determination processing step;
A pixel inspection method characterized by comprising:
制御プロセッサに、
偶数ラインの主走査方向奇数個目の欠陥画素座標を偶数ライン奇数個目欠陥用テーブルへ登録する偶数ライン奇数個目欠陥用テーブル登録処理と、
奇数ラインの主走査方向奇数個目の欠陥画素座標を奇数ライン奇数個目欠陥用テーブルへ登録する奇数ライン奇数個目欠陥用テーブル登録処理と、
偶数ラインの主走査方向偶数個目の欠陥画素座標を偶数ライン偶数個目欠陥用テーブルへ登録する偶数ライン偶数個目欠陥用テーブル登録処理と、
奇数ラインの主走査方向偶数個目の欠陥画素座標を奇数ライン偶数個目欠陥用テーブルへ登録する奇数ライン偶数個目欠陥用テーブル登録処理と、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び偶数側テーブル切替信号に応じて切り替えて偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替処理と、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び奇数側テーブル切替信号に応じて切り替えて奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替処理と、
前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出処理と、
前記座標検出処理で検出される検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する偶数画素欠陥判定処理と、
前記座標検出処理で検出される検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する奇数画素欠陥判定処理と、
前記偶数画素欠陥判定処理での判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替処理へ出力する偶数側テーブル切替処理と、
前記奇数画素欠陥判定処理での判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替処理へ出力する奇数側テーブル切替処理と、
前記偶数画素欠陥判定処理と前記奇数画素欠陥判定処理での判定結果に基づいて前記各テーブルへ読出アドレスを出力するアドレス制御処理と、
を実行させることを特徴とするプログラム。 A pixel of image data having a predetermined number of lines with a predetermined number of pixels in the main scanning direction as one line is determined by using the first pixel in the main scanning direction of the first line in the sub-scanning direction orthogonal to the main scanning direction as the reference pixel A program installed in a pixel inspection apparatus that is continuously input from a pixel as an input pixel and performs a detection process as to whether or not the input pixel is a defective pixel,
To the control processor,
Even-numbered odd-numbered defect table registration processing for registering odd-numbered defective pixel coordinates of even-numbered lines in an even-numbered odd-numbered defect table;
Odd line odd-numbered defect table registration processing for registering odd-numbered defective pixel coordinates of odd-numbered lines in an odd-numbered odd-numbered defect table,
Even-numbered line even-numbered defect table registration processing for registering even-numbered line even-numbered defective pixel coordinates in the even-numbered line even-numbered defect table;
Odd-numbered even-numbered defect table registration processing for registering even-numbered defective pixel coordinates of odd-numbered lines in an odd-numbered even-numbered defect table;
Based on the respective read addresses, the defective pixel coordinates read from the odd-numbered line odd-numbered defect table or the even-numbered line even-numbered defect table and the odd-numbered line even-numbered defect table were read out. The defective pixel coordinate switching process for switching the defective pixel coordinate according to the detection process mode of the defective pixel and the even-side table switching signal and outputting as the even-side defective pixel coordinate;
The defect pixel coordinates read from the odd line odd number defect table or the even line even number defect table and the even line odd number defect table are read based on the respective read addresses. The defective pixel coordinates are switched according to the defective pixel detection processing mode and the odd-side table switching signal and output as odd-side defective pixel coordinates and output as odd-side defective pixel coordinates,
A coordinate detection process for detecting coordinates in the main scanning direction and the sub-scanning direction of the input pixels;
An even pixel defect determination process that compares the detected coordinates detected in the coordinate detection process with the even-numbered defective pixel coordinates and determines whether the input pixel of the detected coordinates is a defective pixel;
An odd pixel defect determination process that compares the detected coordinates detected in the coordinate detection process with the odd-numbered defective pixel coordinates and determines whether the input pixel of the detected coordinates is a defective pixel;
An even-side table switching process of outputting the even-side table switching signal corresponding to the determination result in the even-numbered pixel defect determination process and the detected coordinates to the even-side defective pixel coordinate switching process;
An odd-side table switching process for outputting the determination result in the odd-numbered pixel defect determination process and the odd-side table switching signal according to the detected coordinates to the odd-numbered defective pixel coordinate switching process;
An address control process for outputting a read address to each table based on determination results in the even pixel defect determination process and the odd pixel defect determination process;
A program characterized by having executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015204177A JP2017076916A (en) | 2015-10-16 | 2015-10-16 | Pixel inspection device, image processing apparatus, pixel inspection method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015204177A JP2017076916A (en) | 2015-10-16 | 2015-10-16 | Pixel inspection device, image processing apparatus, pixel inspection method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2017076916A true JP2017076916A (en) | 2017-04-20 |
Family
ID=58549652
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015204177A Pending JP2017076916A (en) | 2015-10-16 | 2015-10-16 | Pixel inspection device, image processing apparatus, pixel inspection method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2017076916A (en) |
-
2015
- 2015-10-16 JP JP2015204177A patent/JP2017076916A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3773773B2 (en) | Image signal processing apparatus and pixel defect detection method | |
US7202894B2 (en) | Method and apparatus for real time identification and correction of pixel defects for image sensor arrays | |
JP5266957B2 (en) | Defective pixel detection device, imaging device, and defective pixel detection method | |
US8325252B2 (en) | Solid-state imaging device and data processing device | |
US10911746B2 (en) | Image processing apparatus and failure diagnosis control method | |
US8531529B2 (en) | Dead pixel compensation testing apparatus | |
JP2010021858A (en) | Pixel defect correction device | |
KR20120048748A (en) | Pattern image transmitter for inspecting display and method of inspecting display using the same | |
JP4347721B2 (en) | Pixel defect detection apparatus and method, and imaging apparatus | |
JP2017076916A (en) | Pixel inspection device, image processing apparatus, pixel inspection method, and program | |
JP4557795B2 (en) | Data correction processing apparatus and data correction processing method | |
JPH077603A (en) | Facsimile equipment | |
US9741086B2 (en) | Image processing apparatus, image processing method, and storage medium storing program | |
JP2018157371A (en) | Imaging apparatus and method of correcting defective pixels | |
JP4003447B2 (en) | Image signal processing device | |
JP3331666B2 (en) | Solid-state imaging device and defect detection and correction method for solid-state imaging device | |
JP4313860B2 (en) | Defective pixel correction apparatus and defective pixel correction method | |
JP2007181064A (en) | Imaging apparatus and its defective pixel correction method | |
WO2011079680A1 (en) | Method for reading out high dynamic range image frame in image sensor and device using the same | |
JP5222654B2 (en) | Defective pixel detection device for imaging device and marking device for imaging device | |
EP2323099A1 (en) | Image reading device and method of writing image data in an image reading device | |
CN110072032B (en) | Image processing apparatus | |
JP2006211319A (en) | Pixel defect correcting device and method | |
JP2001186417A (en) | Defective pixel detector | |
JP4977672B2 (en) | Halftone dot detection circuit and image processing apparatus having the same |