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 PDF

Info

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
Application number
JP2015204177A
Other languages
Japanese (ja)
Inventor
太一 吉岡
Taichi Yoshioka
太一 吉岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2015204177A priority Critical patent/JP2017076916A/en
Publication of JP2017076916A publication Critical patent/JP2017076916A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a pixel inspection device that appropriately and quickly detects defective pixels irrespective of a processing mode.SOLUTION: A pixel inspection part 10 inspects when an input pixel is a defective pixel in a two-pixel parallel processing mode or a two-line parallel processing mode. The pixel inspection part 10 switches appropriately, according to the processing mode, reading addresses of a table Teo for an odd-number-th defect on an even-numbered line, a table Too for an odd-number-th defect on an odd-numbered line, a table Tee for an even-number-th defect on an even-numbered line, and a table Toe for an even-number-th defect on an odd-numbered line, and information on read defective coordinates, and inputs information on the coordinates Ta and Tb of the defective pixel to defect determination parts 16e and 16o. The defect determination parts determines a defect by comparing counter values: an X counter and a Y counter of the input pixel with the information on the coordinates of the defective pixel.SELECTED DRAWING: Figure 1

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 claim 1, wherein a predetermined number of pixels in a main scanning direction is one line, and pixels of image data having a predetermined number of lines are sub-scanned perpendicular to the main scanning direction. This is a pixel inspection apparatus that uses the head pixel in the main scanning direction of the head line in the direction as a reference pixel, is input as an input pixel continuously from the reference pixel, and detects whether the input pixel is a defective pixel or not. The even-numbered odd-numbered defect pixel coordinates in which the even-numbered odd-numbered defective pixel coordinates of the even-numbered lines are registered, and the odd-numbered odd-numbered lines in which the odd-numbered defective pixel coordinates of the odd-numbered lines are registered. An eye defect table, an even line even-numbered defect pixel coordinate in which the even-numbered defective pixel coordinates of even-numbered lines are registered, and an even-numbered defective pixel coordinate in the main-scanning direction of odd-numbered lines are registered. The odd-numbered line even-numbered defect table, and the defective pixel coordinates read from the odd-numbered line odd-numbered defect table or the even-numbered line even-numbered defect table based on the respective read addresses and the odd-numbered line even number Even-numbered defective pixel coordinate switching means for switching the defective pixel coordinates read from the individual defect table according to the defective pixel detection processing mode and the even-numbered table switching signal and outputting them as even-numbered defective pixel coordinates. And reading from the defective 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 based on the respective read addresses. The defective pixel coordinates that have been detected correspond to the defective pixel detection processing mode and the odd-side table switching signal. Odd-numbered defective pixel coordinate switching means for switching and outputting as odd-numbered defective pixel coordinates, coordinate detection means for detecting coordinates of the input pixel in the main scanning direction and the sub-scanning direction, and detection detected by the coordinate detection means An even pixel defect determining means for comparing coordinates and the even-numbered defective pixel coordinates to determine whether or not the input pixel of the detected coordinates is a defective pixel; and the detected coordinates detected by the coordinate detecting means and the odd number Odd pixel defect determining means for comparing the defective pixel coordinates of the detected coordinates to determine whether the input pixel of the detected coordinates is a defective pixel, the determination result of the even pixel defect determining means and the detected coordinates The even-side table switching unit that outputs the even-side table switching signal to the even-side defective pixel coordinate switching unit, the determination result of the odd-numbered pixel defect determining unit, and the odd-number according to the detected coordinates. An odd-numbered table switching unit that outputs a number-side table switching signal to the odd-numbered defective pixel coordinate switching unit, and a read address to each table based on the determination results of the even-numbered pixel defect determining unit and the odd-numbered pixel defect determining unit. And an address control means for outputting.

本発明によれば、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行うことができる。   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.

本発明の一実施例を適用した画像処理装置の要部構成図。1 is a main part configuration diagram of an image processing apparatus to which an embodiment of the present invention is applied. 入力画素順序と欠陥画素の関係を示す図。The figure which shows the relationship between an input pixel order and a defective pixel. 4つの欠陥用テーブルの一例を示す図。The figure which shows an example of the table for four defects. 処理モードの説明図。Explanatory drawing of a processing mode. 画素検査部の機能ブロック図。The functional block diagram of a pixel test | inspection part. 従来の一般的な欠陥用テーブルの一例を示すず。Without showing an example of a conventional general defect table. 2画素並列処理の説明図。Explanatory drawing of 2 pixel parallel processing. 2画素並列処理における各信号のタイミング図。The timing diagram of each signal in 2 pixel parallel processing. 2ライン並列処理の説明図。Explanatory drawing of 2 line parallel processing. 2ライン並列処理における各信号のタイミング図。The timing diagram of each signal in 2 line parallel processing.

以下、本発明の好適な実施例を添付図面に基づいて詳細に説明する。なお、以下に述べる実施例は、本発明の好適な実施例であるので、技術的に好ましい種々の限定が付されているが、本発明の範囲は、以下の説明によって不当に限定されるものではなく、また、本実施の形態で説明される構成の全てが本発明の必須の構成要件ではない。   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 image processing apparatus 1 provided with the pixel test | inspection part to which one Example of a method and a program is applied.

図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 image processing apparatus 1 includes a pixel inspection unit 10, an image sensor (not shown) (CCD, CMOS, etc.) and the like. The pixel inspection unit 10 includes a counter unit 11, a defective pixel coordinate information storage unit 12, a defective pixel table setting unit 13, a defective pixel table sorting unit 14, selectors Sa1 and Sb1, an even-numbered odd-numbered defect table Teo, and an odd-numbered line. Odd defect table Too, even line even defect table Tee, odd line even defect table Toe, selectors Sa0 and Sb0, selectors Sa2 and Sb2, table switching units 15e and 15o, defect determination unit 16e, 16o, address control units 17e and 17o, defective pixel correction units 18e and 18o, and the like.

カウンタ部11は、図示しない上記撮像センサから入力される画素データのX方向及びY方向の画素位置をカウントし、カウント値(Xカウンタ、Yカウンタ)を欠陥判定部16e、16oへ出力する。   The counter unit 11 counts pixel positions in the X direction and Y direction of pixel data input from the imaging sensor (not shown), and outputs count values (X counter, Y counter) to the defect determination units 16e and 16o.

すなわち、カウンタ部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 counter unit 11, from the image sensor, as shown by a broken line arrow in FIG. 2, if the upper left in FIG. 2 is the origin (X = 0, Y = 0), the pixels from left to right and top to bottom Is entered. That is, the image processing apparatus 1 sequentially inputs pixels of image data from the imaging sensor to the counter unit 11 in the main scanning direction and the sub-scanning direction with the origin pixel as a reference pixel. 2, the areas indicated by the squares are pixels, and the pixels from “A” to “H” shown in black on the white are defective pixels. , Y = 0), the defective pixel “A” is (X = 3, Y = 2), and the defective pixel “H” is (X = 20, Y = 3). As for the defective pixel, the defective pixel position (X coordinate, Y coordinate) is specified in the inspection at the time of shipment of the image processing apparatus 1.

欠陥画素座標情報格納部12は、NVRAM(Non Volatile RAM)、SSD(Solid State Drive)等の不揮発性メモリが用いられており、撮像センサの欠陥画素座標情報が、画像処理装置1の出荷時に保存される。欠陥画素座標情報格納部12は、その欠陥画素座標情報が、後述する4つの欠陥用テーブルTeo、Too、Tee、Toeのフォーマットで保存されている必要はなく、画像の左上から順(座標の若い順)に欠陥画素の位置情報が保存されていればよい。   The defective pixel coordinate information storage unit 12 uses non-volatile memory such as NVRAM (Non Volatile RAM), SSD (Solid State Drive), etc., and the defective pixel coordinate information of the image sensor is stored at the time of shipment of the image processing apparatus 1. Is done. The defective pixel coordinate information storage unit 12 does not need to store the defective pixel coordinate information in the formats of four defect tables Teo, Too, Tee, and Toe, which will be described later. It is only necessary that the position information of the defective pixel is stored in order.

欠陥画素テーブル設定部13は、欠陥画素座標情報格納部12に保存されている欠陥画素座標情報を読み出す。欠陥画素テーブル設定部13は、該欠陥画素座標情報の設定先の欠陥用テーブルTeo、Too、Tee、Toeを決定し、決定した欠陥用テーブルTeo、Too、Tee、Toeを示すテーブル設定情報と欠陥画素座標情報を欠陥画素テーブル振分部14へ渡す。   The defective pixel table setting unit 13 reads out defective pixel coordinate information stored in the defective pixel coordinate information storage unit 12. The defective pixel table setting unit 13 determines the defect tables Teo, Too, Tee, and Toe to which the defective pixel coordinate information is set, table setting information indicating the determined defect tables Teo, Too, Tee, and Toe and the defects. Pixel coordinate information is passed to the defective pixel table distribution unit 14.

欠陥画素テーブル設定部13は、欠陥画素座標のY座標が偶数の場合、偶数ラインの欠陥テーブルTeo、Teeへ、Y座標が奇数の場合、奇数ラインの欠陥テーブルToo、Toeに設定先を決定する。さらに、欠陥画素テーブル設定部13は、偶数個目の欠陥であると、偶数個目欠陥テーブルTee、Toeへ、奇数個目の欠陥であると、奇数個目欠陥テーブルTeo、Tooへ設定先を決定する。   The defective pixel table setting unit 13 determines the setting destination to the defect tables Teo and Tee for even lines when the Y coordinate of the defective pixel coordinates is even, and to the defect tables Too and Toe for odd lines when the Y coordinate is odd. . Further, the defective pixel table setting unit 13 sets the setting destination to the even-numbered defect tables Tee and Toe when the defect is an even-numbered defect, and to the odd-numbered defect tables Teo and Too when the defect is an odd-numbered defect. decide.

欠陥画素テーブル振分部14は、欠陥画素テーブル設定部13から渡される欠陥画素座標情報を、該欠陥画素座標情報のテーブル設定情報に基づいて、4つの欠陥用テーブルTeo、Too、Tee、Toeへ振り分けて登録する。   The defective pixel table allocating unit 14 transfers the defective pixel coordinate information passed from the defective pixel table setting unit 13 to the four defect tables Teo, Too, Tee, and Toe based on the table setting information of the defective pixel coordinate information. Sort and register.

なお、欠陥画素テーブル設定部13及び欠陥画素テーブル振分部14は、ハードウェア構成であってもよいし、図示しないCPU(Central Processing Unit)等が実行するソフトウェア構成であってもよい。   The defective pixel table setting unit 13 and the defective pixel table allocating unit 14 may have a hardware configuration or a software configuration executed by a CPU (Central Processing Unit) (not shown).

欠陥画素テーブル設定部13及び欠陥画素テーブル振分部14は、ハードウェアで構成される場合、4つの欠陥用テーブルTeo、Too、Tee、Toeをソフトウェア的には意識することなく、欠陥用テーブルTeo、Too、Tee、Toeのアドレスがマッピングされたアドレス空間に対して欠陥画素座標情報をレジスタライトし、ハードウェアが振り分けを行って、内部的に存在する4つの欠陥用テーブルTeo、Too、Tee、Toeに設定する。   When the defective pixel table setting unit 13 and the defective pixel table allocating unit 14 are configured by hardware, the defect table Teo is not conscious of the four defect tables Teo, Too, Tee, and Toe in terms of software. , Too, Tee, Toe address is mapped to the address space where the defective pixel coordinate information is mapped, the hardware performs the distribution, the four defect tables Teo, Too, Tee, which exist internally Set to Toe.

欠陥画素テーブル設定部13及び欠陥画素テーブル振分部14は、ソフトウェアで実現する場合は、4つの欠陥用テーブルTeo、Too、Tee、Toeがレジスタアドレス空間として4つに分かれて存在し、振り分けに応じたアドレスに欠陥画素座標情報をレジスタライトしていく。   When the defective pixel table setting unit 13 and the defective pixel table allocating unit 14 are realized by software, the four defect tables Teo, Too, Tee, and Toe exist in four as the register address space. The defective pixel coordinate information is written in a register at the corresponding address.

偶数ライン奇数個目欠陥用テーブル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 address controller 17e, and receives the address B1 from the address controller 17o. The selector Sa1 selects the address A1 when the processing mode signal Sm is “1”, and selects the address B1 when the processing mode signal Sm is “0”. The selector Sa1 outputs the selected address A1 or address B1 to the odd-numbered odd-numbered defect table Too.

セレクタ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 address controller 17e, and the address B1 from the address controller 17o. The selector Sb1 selects the address B1 when the processing mode signal Sm is “1”, and selects the address A1 when the processing mode signal Sm is “0”. The selector Sb1 outputs the selected address A1 or address B1 to the even-numbered even-numbered defect table Tee.

セレクタ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 table switching unit 15e. The selector Sa2 selects one of the table information Ta1 and the table information Ta0 based on the table switching control signal Ste, and outputs the table information Ta to the defect determination unit 16e.

セレクタ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 defect determination unit 16e receives the table information Ta from the selector Sa2 and the table information Tb2 from the selector Sb2, and further receives an X counter and a Y counter from the counter unit 11. The defect determination unit 16e determines whether or not the even-numbered pixel in the parallel processing is a defective pixel. That is, the defect determination unit 16e compares the even-numbered defective pixel coordinate information of the two table information of the table information Ta and the table information Tb with the values of the X counter and the Y counter. When the even-numbered defective pixel coordinate of the table information Ta matches the value of the X counter / Y counter, the defect determining unit 16e asserts defective pixel matching information HIT_AE to the address control unit 7e. Further, when the even-numbered defective pixel coordinates of the table information Tb and the value of the X counter / Y counter match, the defect determining unit 16e asserts defective pixel matching information HIT_BE to the address control unit 17o.

また、テーブル情報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 defect determination unit 16e generates a defective pixel determination result signal SE under the OR condition of the defective pixel matching information HIT_AE and the defective pixel matching information HIT_BE, and outputs the defective pixel determination result signal SE to the defective pixel correction unit 18e.

欠陥判定部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 defect determination unit 16e, the defect determination unit 16o receives the table information Ta from the selector Sa2 and the table information Tb2 from the selector Sb2, and further receives an X counter and a Y counter from the counter unit 11. The defect determination unit 16o determines whether or not the odd-numbered pixel in the parallel processing is a defective pixel. In other words, the defect determination unit 16o compares the odd-numbered defective pixel coordinate information of the two pieces of table information, the table information Ta and the table information Tb, with the values of the X counter and the Y counter. When the odd-numbered defective pixel coordinate of the table information Ta matches the value of the X counter / Y counter, the defect determining unit 16o asserts defective pixel matching information HIT_AO to the address control unit 17e. Further, when the odd-numbered defective pixel coordinates of the table information Tb and the value of the X counter / Y counter match, the defect determination unit 16o outputs defective pixel matching information HIT_BO to the address control unit 17o.

また、欠陥判定部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 address control unit 17e receives the defective pixel match information HIT_AE, HIT_AO and the table switching control signal Ste from the defect determination unit 16e and the defect determination unit 16o. The address control unit 17e controls the read addresses A1 and A0 of the odd-numbered defect tables Teo and Too based on the defective pixel match information HIT_AE and HIT_AO and the table switching control signal Ste.

アドレス制御は、処理モードに応じて異なる処理となる。すなわち、アドレス制御部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 address control unit 17e increments the address A0 when the table information Ta0 is selected under the OR condition of the defective pixel matching information HIT_AE and HIT_AO, and when the table information Ta1 is selected, the address A1 is incremented.

アドレス制御部17eは、選択されていないラインの処理時は、アドレスを保持し、再び選択された際に、保持したアドレスからインクリメントを再開する。アドレス制御部17eは、1フレームの処理完了後にアドレスをクリアし、「0」に戻す。なお、アドレス制御部17eは、欠陥判定部16eと欠陥判定部16oが別の座標の画素について判定を行っているため、欠陥画素一致情報HIT_AEと欠陥画素一致情報HIT_AOが同時にアサートすることはない。   The address control unit 17e holds an address when processing an unselected line, and resumes incrementing from the held address when selected again. The address control unit 17e clears the address after completing the processing of one frame and returns it to “0”. The address control unit 17e does not assert the defective pixel match information HIT_AE and the defective pixel match information HIT_AO at the same time because the defect determination unit 16e and the defect determination unit 16o perform determination on pixels having different coordinates.

アドレス制御部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 defect determination unit 16e and the defect determination unit 16o. The address control unit 17o controls the read addresses B1 and B0 of the even-numbered defect tables Toe and Tee based on the defective pixel match information HIT_BE and HIT_BO and the table switching control signal Sto.

アドレス制御部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 defect determination unit 16e and the defect determination unit 16o perform determination on pixels having different coordinates, the defective pixel match information HIT_BE and the defective pixel match information HIT_BO are not asserted at the same time.

欠陥画素補正部18eは、補正前画素の偶数側データと欠陥判定部16eからの欠陥画素判定結果信号SEが入力され、並列処理の偶数側画素の欠陥画素補正を行う。欠陥画素補正部18eは、入力される偶数側補正前画素が、非欠陥画素であると、該画素に対しては、何の処理も行わず、欠陥画素であると、欠陥画素補正を行って、偶数側補正後画素を出力する。なお、欠陥画素補正部18eは、既知の欠陥画素補正方法で欠陥画素の補正を行い、この欠陥画素補正方法は、適切な補正を行う方法であれば、何ら限定されるものではなく、種々の方法を用いることができる。   The defective pixel correction unit 18e receives the even-numbered data of the pre-correction pixel and the defective pixel determination result signal SE from the defect determination unit 16e, and corrects the defective pixel of the even-numbered pixel in parallel processing. If the input even-numbered pre-correction pixel is a non-defective pixel, the defective pixel correction unit 18e performs no processing on the pixel, and performs a defective pixel correction if the pixel is a defective pixel. The even-side corrected pixel is output. The defective pixel correction unit 18e corrects the defective pixel by a known defective pixel correction method, and this defective pixel correction method is not limited as long as it is a method for performing appropriate correction. The method can be used.

欠陥画素補正部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 table switching unit 15e receives the defective pixel determination result signal SE from the defect determination unit 16e and the Y counter from the counter unit 11, outputs a table switching control signal Ste to the selector Sa2, and switches the selector Sa2. In the two-pixel parallel processing mode, the table switching unit 15e switches the selector Sa2 alternately for each line between the even line and the odd line based on the Y counter. In the two-line parallel processing mode, the table switching unit 15e switches the selector Sa2 alternately for each defective pixel detection based on the defective pixel determination result signal SE.

テーブル切替部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 counter unit 11, outputs the table switching control signal Sto to the selector Sb2, and switches the selector Sb2. In the two-pixel parallel processing mode, the table switching unit 15o switches the selector Sb2 alternately for each line between the even line and the odd line based on the Y counter. In the two-line parallel processing mode, the table switching unit 15o switches the selector Sa2 alternately for each defective pixel detection based on the defective pixel determination result signal SO.

そして、画像処理装置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 image processing apparatus 1 includes a ROM, an EEPROM (Electrically Erasable and Programmable Read Only Memory), an EPROM, a flash memory, a flexible disk, a CD-ROM (Compact Disc Read Only Memory), a CD-RW (Compact Disc Rewritable), and a DVD. The pixel inspection method of the present invention recorded on a computer-readable recording medium such as (Digital Versatile Disk), USB (Universal Serial Bus) memory, SD (Secure Digital) card, MO (Magneto-Optical Disc) is executed. A pixel inspection unit that executes a pixel inspection method for detecting a defective pixel appropriately and at high speed even when a defective pixel detection processing mode described later is different by loading the program to be read into a ROM or a hard disk (not shown) 10 is built as an image processing apparatus. A program for executing the pixel inspection method is a computer-executable program described in a legacy programming language such as an assembler, C, C ++, C #, Java (registered trademark), an object-oriented programming language, or the like. Can be stored and distributed.

画素検査部10は、上記プログラムが導入されることで、図5に示すような機能ブロックが構築される。すなわち、画素検査部10は、上記プログラムが導入されることで、図5に示すように、偶数ライン奇数個目欠陥用テーブル21eo、奇数ライン奇数個目欠陥用テーブル21oo、偶数ライン偶数個目欠陥用テーブル21ee、奇数ライン偶数個目欠陥用テーブル21oe、偶数側欠陥画素座標切替部22e、奇数側欠陥画素座標切替部22o、座標検出部23、偶数画素欠陥判定部24e、奇数画素欠陥判定部24o、偶数側テーブル切替部25e、奇数側テーブル切替部25o、アドレス入力切替部26aを備えたアドレス制御部26、座標登録部27及び補正部28が構築される。   In the pixel inspection unit 10, a functional block as shown in FIG. 5 is constructed by introducing the program. That is, the pixel inspection unit 10 introduces the above program, and as shown in FIG. 5, the even line odd number defect table 21eo, the odd line odd number defect table 21oo, the even line even number defect. Table 21ee, odd-numbered even-numbered defect table 21oe, even-numbered defective pixel coordinate switching unit 22e, odd-numbered defective pixel coordinate switching unit 22o, coordinate detecting unit 23, even-numbered pixel defect determining unit 24e, odd-numbered pixel defect determining unit 24o The even-side table switching unit 25e, the odd-side table switching unit 25o, the address control unit 26 including the address input switching unit 26a, the coordinate registration unit 27, and the correction unit 28 are constructed.

偶数ライン奇数個目欠陥テーブル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 counter unit 11 and detects coordinates (X counter, Y counter) of the input pixel in the main scanning direction and the sub scanning direction. Therefore, the coordinate detection unit 23 functions as a coordinate detection unit.

偶数画素欠陥判定部24eは、欠陥判定部16eにより構築され、座標検出部23の検出する検出座標と偶数側欠陥画素座標切替部22eからの偶数側欠陥画素座標(テーブル情報Ta)とを比較して、該検出座標の入力画素が欠陥画素であるか否か判定する。したがって、偶数画素欠陥判定部24eは、偶数画素欠陥判定手段として機能している。   The even pixel defect determination unit 24e is constructed by the defect determination unit 16e, and compares the detection coordinates detected by the coordinate detection unit 23 with the even-side defect pixel coordinates (table information Ta) from the even-side defect pixel coordinate switching unit 22e. Thus, it is determined whether or not the input pixel of the detected coordinate is a defective pixel. Therefore, the even pixel defect determination unit 24e functions as an even pixel defect determination unit.

奇数画素欠陥判定部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 table switching unit 15e, and switches the even-side table switching signal (table switching control signal Ste) according to the determination result of the even-numbered pixel defect determining unit 24e and the detected coordinates. To 22e. Therefore, the even-side table switching unit 25e functions as an even-side table switching unit.

奇数側テーブル切替部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 address control unit 26 includes an address input switching unit 26a constructed by the address control units 17e and 17o and constructed by the selectors Sa1 and Sb1. The address control unit 26 outputs a read address to each table 21eo, 21oo, 21ee, 21oe based on the determination results of the even pixel defect determination unit 24e and the odd pixel defect determination unit 24o. Therefore, the address control unit 26 functions as an address control unit. The address input switching unit 26a switches the read address input destination between the odd-numbered line odd-numbered defect table 21oo and the even-numbered line even-numbered defect table 21ee according to the detection processing mode. In this case, the address control unit 26 directly outputs the read addresses for the even-numbered odd-numbered defect table 21eo and the odd-numbered even-numbered defect table 21oe.

座標登録部27は、欠陥画素座標情報格納部12、欠陥画素テーブル設定部13及び欠陥画素テーブル振分部14で構築されている。座標登録部27は、欠陥画素の座標を、偶数ライン奇数個目欠陥用テーブル21eo、奇数ライン奇数個目欠陥用テーブル21oo、偶数ライン偶数個目欠陥用テーブル21ee及び奇数ライン偶数個目欠陥用テーブル21oeへ振り分けて登録する。したがって、座標登録部27は、座標登録手段として機能している。   The coordinate registration unit 27 includes a defective pixel coordinate information storage unit 12, a defective pixel table setting unit 13, and a defective pixel table distribution unit 14. The coordinate registration unit 27 sets the coordinates of the defective pixels to the even line odd number defect table 21eo, the odd line odd number defect table 21oo, the even line even number defect table 21ee, and the odd line even number defect table. Sort and register to 21 oe. Therefore, the coordinate registration unit 27 functions as a coordinate registration unit.

補正部28は、欠陥画素補正部18e及び欠陥画素補正部18oで構築され、偶数画素欠陥判定部24e及び奇数画素欠陥判定部24oが欠陥画素であると判定した欠陥画素を補正する。したがって、補正部28は、補正手段として機能している。   The correcting unit 28 is constructed by the defective pixel correcting unit 18e and the defective pixel correcting unit 18o, and corrects the defective pixel determined by the even pixel defect determining unit 24e and the odd pixel defect determining unit 24o as a defective pixel. Therefore, the correction unit 28 functions as a correction unit.

次に、本実施例の作用を説明する。本実施例の画像処理装置1は、その画素検査部10が、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行う。   Next, the operation of this embodiment will be described. In the image processing apparatus 1 according to the present embodiment, the pixel inspection unit 10 detects a defective pixel appropriately and at high speed even when the defective pixel detection processing mode is different.

撮像センサは、一般的に、図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 address 0 to N-1, up to N defects. Pixels can be registered and detected. FIG. 6 shows a state in which the coordinate information of the defective pixel is registered at the address corresponding to the defective pixel in FIG.

画像処理装置は、欠陥用テーブルのアドレス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 address 0 in the defect table (A (X = 3, Y = 2) in FIG. 6) and counts the X direction counter and the Y direction counter that are counted every time image data is input. The value is compared with the coordinate information. When the values of the X counter and the Y direction counter match the XY coordinates of the defect table, the image processing apparatus determines that the input pixel is a defective pixel. When the image processing apparatus determines that the pixel is defective, the address of the defect table is incremented by one, and the coordinate information of the next address in the defect table (B (X = 12, Y = 2 in FIG. 6)) is obtained. Reading and performing the same process repeatedly.

ところが、上記処理では、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 image processing apparatus 1 of the present invention includes the pixel inspection unit 10 as shown in FIG. 1 and detects a defective pixel appropriately and at high speed even when the detection processing mode of the defective pixel is different.

すなわち、画素検査部10は、処理モードが2画素並列処理であると、図7及び図8に示すように動作処理して、適切かつ高速に欠陥画素の検出を行う。   That is, when the processing mode is two-pixel parallel processing, the pixel inspection unit 10 performs an operation process as illustrated in FIGS. 7 and 8 to detect a defective pixel appropriately and at high speed.

画素検査部10は、2画素並列処理モードにおいては、図7に太線矢印で示すように、偶数ライン処理時は、偶数ライン偶数個目欠陥用テーブルTee及び偶数ライン奇数個目欠陥用テーブルTeoの2つのテーブルを読み出して欠陥画素補正処理を行う。また、画素検査部10は、奇数ライン処理時は、奇数ライン偶数個目欠陥用テーブルToe及び奇数ライン奇数個目欠陥用テーブルTooの2つのテーブルを読み出して欠陥画素補正処理を行う。   In the two-pixel parallel processing mode, the pixel inspection unit 10 includes an even-numbered line even-numbered defect table Tee and an even-numbered line odd-numbered defect table Teo during even-numbered line processing, as indicated by thick arrows in FIG. Two tables are read and defective pixel correction processing is performed. In addition, during the odd line processing, the pixel inspection unit 10 reads out two tables, the odd line even number defect table Toe and the odd line odd number defect table Too, and performs defective pixel correction processing.

すなわち、画素検査部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 pixel inspection unit 10 has the processing mode “1” as shown in FIG. 7, and the selectors Sa0, Sa1, Sb0, and Sb1 are fixed during the period of one frame. . The pixel inspection unit 10 provides the selector Sa2 with the defective pixel coordinate information of the even-numbered odd-numbered defect table Teo as the table information Ta0, and the defective pixel coordinate information of the odd-numbered odd-numbered defect table Too as the table information Ta1. Is entered. In addition, the pixel inspection unit 10 supplies the selector Sb2 with the defective pixel coordinate information of the odd-numbered even-numbered defect table Toe as the table information Tb0 and the defective pixel of the even-numbered even-numbered defect table Tee as the table information Tb1. Coordinate information is input.

また、画素検査部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 pixel inspection unit 10 switches the outputs of the selectors Sa2 and Sb2 for each line by the table switching control signals Ste and Sto. Therefore, the selector Sa2 switches and outputs the defective pixel coordinate information tables Tao and Ta1 of the odd-numbered defect tables Teo and Too for each line as the table information Ta. Similarly, the selector Sb2 switches and outputs the defective pixel coordinate information tables Tb0 and Tb1 of the even-numbered defect tables Tee and Toe for each line as the table information Tb.

欠陥判定部16e、16oは、偶数個目のテーブル情報Taと奇数個目のテーブル情報Tbの双方を参照して、欠陥画素の検知を行う。   The defect determination units 16e and 16o detect defective pixels with reference to both the even-numbered table information Ta and the odd-numbered table information Tb.

すなわち、画素検査部10は、2画素並列処理モードにおいては、図8に示す動作タイミングで、欠陥画素の検出を行う。   That is, the pixel inspection unit 10 detects a defective pixel at the operation timing shown in FIG. 8 in the two-pixel parallel processing mode.

セレクタ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 table switching unit 15e, and outputs the table information Ta. The selector Sb2 switches the defective pixel coordinate information tables Tb0 and Tb1 for each line by the table switching control signal Sto from the table switching unit 15o, and outputs it as table information Tb. In FIG. 8, in the defective pixel coordinate information tables Ta0, Ta1, Tb0, and Tb1, the hatched period is a non-selection period, and the non-hatched period is a selection period.

図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 pixel inspection unit 10 has a defect determination unit 16e because the odd-numbered data of the second line (even line) matches the table information Ta (defective pixel A (X = 3, Y = 2)) at T1. However, the defective pixel match information HIT_AO is asserted. When the defective pixel matching information HIT_AO is asserted, the address control unit 17e increments the address A0 and reads the table information Ta of the new defective pixel C (X = 18, Y = 2) in the next cycle.

画素検査部10は、T2で、2ライン目(偶数ライン)の偶数側データがテーブル情報Tb(欠陥画素B(X=12、Y=2))に一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_BEをアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BEがアサートされると、アドレスB1をインクリメントし、次のサイクルで新しい欠陥画素D(X=19、Y=2)のテーブル情報Tbを読み出す。   Since the pixel inspection unit 10 matches the table data Tb (defective pixel B (X = 12, Y = 2)) with the even-numbered data of the second line (even number line) at T2, the defect determination unit 16e The match information HIT_BE is asserted. When the defective pixel matching information HIT_BE is asserted, the address control unit 17o increments the address B1, and reads the table information Tb of the new defective pixel D (X = 19, Y = 2) in the next cycle.

画素検査部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 defect determining unit 16e asserts the defective pixel matching information HIT_AE. When the defective pixel matching information HIT_AE is asserted, the address control unit 17e increments the address A0, and a new defective pixel (X = *, Y = *) is read in the next cycle. In addition, since the odd-numbered data of the second line (even number line) matches the table information Tb at T3, the defect determination unit 16o asserts the defective pixel match information HIT_BO. When the defective pixel match information HIT_BO is asserted, the address control unit 17o increments the address B1, and the table information Tb of the new defective pixel (X = *, Y = *) is read in the next cycle.

画素検査部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 defect determination unit 16e asserts the defective pixel match information HIT_AE. When the defective pixel matching information HIT_AE is asserted, the address control unit 17e increments the address A1, and the table information Ta of the new defective pixel (X = 12, Y = 3) is read in the next cycle.

画素検査部10は、T5で、3ライン目(奇数ライン)の奇数側データがテーブル情報Tbと一致したため、欠陥判定部16oが、欠陥画素一致情報HIT_BOをアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BOがアサートすると、アドレスB0をインクリメントし、次のサイクルで新しい欠陥画素(X=20、Y=3)のテーブル情報Tbが読み出される。   The pixel inspection unit 10 asserts the defective pixel matching information HIT_BO because the odd-numbered data of the third line (odd line) matches the table information Tb at T5. When the defective pixel match information HIT_BO is asserted, the address control unit 17o increments the address B0, and the table information Tb of the new defective pixel (X = 20, Y = 3) is read in the next cycle.

画素検査部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 defect determination unit 16e asserts the defective pixel match information HIT_AE. When the defective pixel matching information HIT_AE is asserted, the address control unit 17e increments the address A1, and the table information Tb of the new defective pixel (X = *, Y = *) is read in the next cycle.

画素検査部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 defect determination unit 16e asserts the defective pixel match information HIT_BE. When the defective pixel matching information HIT_BE is asserted, the address control unit 17o increments the address B0, and a table Ta of new defective pixels (X = *, Y = *) is read in the next cycle.

画素検査部10は、上記動作処理を順次繰り返し行なって、最終ラインの最終画素まで処理すると、検出処理を終了する。   When the pixel inspection unit 10 sequentially repeats the above-described operation process and processes up to the final pixel of the final line, the detection process ends.

また、画素検査部10は、処理モードが2ライン並列処理であると、図9及び図10に示すように動作処理して、適切かつ高速に欠陥画素の検出を行う。   Further, when the processing mode is 2-line parallel processing, the pixel inspection unit 10 performs operation processing as illustrated in FIGS. 9 and 10 to detect defective pixels appropriately and at high speed.

画素検査部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 pixel inspection unit 10 has the processing mode “0” and the selectors Sa0, Sa1, Sb0, and Sb1 are fixed during the period of one frame, as indicated by a thick arrow in FIG. The The pixel inspection unit 10 provides the selector Sa2 with the defective pixel coordinate information of the even-numbered odd-numbered defect table Teo as the table information Ta0 and the defective pixel coordinate information of the even-numbered even-numbered defect table Tee as the table information Ta1. Is entered. Further, the pixel inspection unit 10 supplies the selector Sb2 with the defective pixel coordinate information of the odd-numbered even-numbered defect table Toe as the table information Tb0 and the defective pixel of the odd-numbered odd-numbered defect table Too as the table information Tb1. Coordinate information is input.

また、画素検査部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 pixel inspection unit 10 switches the outputs of the selectors Sa2 and Sb2 every time a defective pixel is detected by the table switching control signals Ste and Sto. Accordingly, the selector Sa2 switches and outputs the defective pixel coordinate information tables Tao and Ta1 of the even line defect tables Teo and Tee as the table information Ta every time defective pixel detection is performed. Similarly, the selector Sb2 switches and outputs the defective pixel coordinate information tables Tb0 and Tb1 of the odd line defect tables Tee and Too for each defective pixel detection as the table information Tb.

欠陥判定部16e、16oは、偶数ラインの欠陥情報であるテーブル情報Taと奇数ラインの欠陥情報であるテーブル情報Tbの双方を参照して、欠陥画素の検知を行う。   The defect determination units 16e and 16o detect defective pixels with reference to both table information Ta that is defect information of even lines and table information Tb that is defect information of odd lines.

すなわち、画素検査部10は、2ライン並列処理モードにおいては、図10に示す動作タイミングで、欠陥画素の検出を行う。   That is, the pixel inspection unit 10 detects defective pixels at the operation timing shown in FIG. 10 in the two-line parallel processing mode.

セレクタ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 table switching unit 15e, and outputs it as table information Ta. The selector Sb2 switches the defective pixel coordinate information tables Tb0 and Tb1 for each defective pixel detection by the table switching control signal Sto from the table switching unit 15o, and outputs the table information Tb. In FIG. 10, in the defective pixel coordinate information tables Ta0, Ta1, Tb0, and Tb1, a hatched period is a non-selection period, and a non-hatched period is a selection period.

図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 pixel inspection unit 10 matches the table information Tb of the defective pixel E (X = 2, Y = 3) at T1, the defect determination unit 16o asserts the defective pixel matching information HIT_BO at T1. To do. When the defective pixel matching information HIT_BO is asserted, the address control unit 17o increments the address B1 because the table switching control signal Sto is “1”. Further, the table switching unit 15o switches the table switching control signal Sto from “1” to “0” because the defect is detected in the odd-numbered data.

画素検査部10は、T2で、偶数側データがテーブル情報Taに一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_AEをアサートする。アドレス制御部17eは、欠陥画素一致情報HIT_AEがアサートされると、テーブル切替制御信号Steが「0」であるので、アドレスA0をインクリメントする。また、テーブル切替部15eは、偶数側データで欠陥検知されたため、テーブル切替制御信号Steを「0」から「1」に切り替える。   In the pixel inspection unit 10, since the even-numbered data matches the table information Ta at T2, the defect determination unit 16e asserts the defective pixel matching information HIT_AE. When the defective pixel matching information HIT_AE is asserted, the address control unit 17e increments the address A0 because the table switching control signal Ste is “0”. Further, the table switching unit 15e switches the table switching control signal Ste from “0” to “1” because a defect is detected in the even-numbered data.

画素検査部10は、T3で、偶数側データがテーブル情報Tbと一致したため、欠陥判定部16oが、欠陥画素一致情報HIT_BOをアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BOがアサートされると、テーブル切替制御信号Stoが「0」であるので、アドレスB0をインクリメントする。また、テーブル切替部15oは、奇数側データで欠陥検知されたため、テーブル切替制御信号Stoを「0」から「1」に切り替える。   In the pixel inspection unit 10, since the even-numbered data matches the table information Tb at T3, the defect determination unit 16o asserts the defective pixel match information HIT_BO. When the defective pixel matching information HIT_BO is asserted, the address control unit 17o increments the address B0 because the table switching control signal Sto is “0”. The table switching unit 15o switches the table switching control signal Sto from “0” to “1” because a defect is detected in the odd-numbered data.

画素検査部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 pixel inspection unit 10, since the even-numbered data matches the table information Ta at T4, the defect determination unit 16e asserts the defective pixel matching information HIT_AE. When the defective pixel matching information HIT_AE is asserted, the address control unit 17e increments the address A1 because the table switching control signal Ste is “1”. Further, the table switching unit 15e switches the table switching control signal Ste from “1” to “0” because the defect is detected in the even data. In addition, since the pixel inspection unit 10 matches the odd-numbered data with the table information Tb at T4, the defect determination unit 16o asserts the defective pixel matching information HIT_BO. When the defective pixel matching information HIT_BO is asserted, the address control unit 17o increments the address B1 because the table switching control signal Sto is “1”. Further, the table switching unit 15o switches the table switching control signal Sto from “1” to “0” because the defect is detected in the odd-numbered data.

画素検査部10は、T5で、偶数側データがテーブル情報Taと一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_AEをアサートする。アドレス制御部17eは、欠陥画素一致情報HIT_AEがアサートされると、テーブル切替制御信号Steが「0」であるので、アドレスA0をインクリメントする。また、テーブル切替部15eは、偶数側データで欠陥検知されたため、テーブル切替制御信号Steを「0」から「1」に切り替える。   In the pixel inspection unit 10, since the even-numbered data matches the table information Ta at T5, the defect determination unit 16e asserts the defective pixel matching information HIT_AE. When the defective pixel matching information HIT_AE is asserted, the address control unit 17e increments the address A0 because the table switching control signal Ste is “0”. Further, the table switching unit 15e switches the table switching control signal Ste from “0” to “1” because a defect is detected in the even-numbered data.

画素検査部10は、T6で、偶数側データがテーブル情報Taと一致したため、欠陥判定部16eが、欠陥画素一致情報HIT_AEをアサートする。アドレス制御部17eは、欠陥画素一致情報HIT_AEがアサートされると、テーブル切替制御信号Steが「1」であるので、アドレスA1をインクリメントする。また、テーブル切替部15eは、偶数側データで欠陥検知されたため、テーブル切替制御信号Steを「1」から「0」に切り替える。   In the pixel inspection unit 10, since the even-numbered data matches the table information Ta at T6, the defect determination unit 16e asserts the defective pixel match information HIT_AE. When the defective pixel matching information HIT_AE is asserted, the address control unit 17e increments the address A1 because the table switching control signal Ste is “1”. The table switching unit 15e switches the table switching control signal Ste from “1” to “0” because a defect is detected in the even-numbered data.

画素検査部10は、T7で、奇数側データがテーブル情報Tbと一致したため、欠陥判定部16oが、欠陥画素一致情報HIT_BOをアサートする。アドレス制御部17oは、欠陥画素一致情報HIT_BOがアサートされると、テーブル切替制御信号Stoが「0」であるので、アドレスB0をインクリメントする。また、テーブル切替部15oは、奇数側データで欠陥検知されたため、テーブル切替制御信号Stoを「0」から「1」に切り替える。   In the pixel inspection unit 10, since the odd-numbered data matches the table information Tb at T7, the defect determination unit 16o asserts the defective pixel matching information HIT_BO. When the defective pixel matching information HIT_BO is asserted, the address control unit 17o increments the address B0 because the table switching control signal Sto is “0”. The table switching unit 15o switches the table switching control signal Sto from “0” to “1” because a defect is detected in the odd-numbered data.

このように、本実施例の画素検査部10は、処理モードが2画素並列処理モードであると、偶数ライン処理時には、偶数ライン偶数個目欠陥用テーブルTee及び偶数ライン奇数個目欠陥画素用テーブルTeoの2つのテーブルを読み出して欠陥画素検知を行う。また、画素検査部10は、奇数ライン処理時には、奇数ライン偶数個目欠陥用テーブルToe及び奇数ライン奇数個目欠陥用テーブルTooの2つのテーブルを読み出して欠陥画素検知を行う。   As described above, when the processing mode is the two-pixel parallel processing mode, the pixel inspecting unit 10 according to the present exemplary embodiment has an even-numbered even-numbered defect table Tee and an even-numbered odd-numbered defective pixel table during even-numbered line processing. Two tables of Teo are read to detect defective pixels. In addition, during the odd line processing, the pixel inspection unit 10 reads out two tables of the odd line even number defect table Toe and the odd line odd number defect table Too, and performs defective pixel detection.

さらに、画素検査部10は、処理モードが2ライン並列処理モードであると、偶数ライン処理時には、偶数ライン偶数個目欠陥用テーブルTee及び偶数ライン奇数個目欠陥用テーブルTeoの2つのテーブルを読み出して欠陥画素検知を行う。また、画素検査部10は、奇数ライン処理時には、奇数ライン偶数個目欠陥用テーブルToe及び奇数ライン奇数個目欠陥用テーブルTooの2つのテーブルを読み出して欠陥画素検知を行う。   Furthermore, when the processing mode is the two-line parallel processing mode, the pixel inspection unit 10 reads two tables of the even-numbered even-numbered defect table Tee and the even-numbered odd-numbered defect table Teo at the time of even-numbered line processing. To detect defective pixels. In addition, during the odd line processing, the pixel inspection unit 10 reads out two tables of the odd line even number defect table Toe and the odd line odd number defect table Too, and performs defective pixel detection.

したがって、画素検査部10は、処理モードによって欠陥用テーブルTeo、Too、Tee、Toeへの欠陥画素座標情報の書き換えを行うことなく、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行うことができる。   Therefore, the pixel inspection unit 10 can appropriately and quickly perform the defect pixel detection processing mode without rewriting the defect pixel coordinate information to the defect tables Teo, Too, Tee, and Toe depending on the processing mode. Detection of defective pixels can be performed.

また、画素検査部10は、画像処理装置1の出荷時に欠陥画素座標情報格納部12に格納される欠陥画素座標を、欠陥画素テーブル設定部13及び欠陥画素テーブル振分部14によって、各欠陥用テーブルTeo、Too、Tee、Toeへ振り分けて登録する。   Further, the pixel inspection unit 10 uses the defective pixel table setting unit 13 and the defective pixel table distribution unit 14 to convert defective pixel coordinates stored in the defective pixel coordinate information storage unit 12 at the time of shipment of the image processing apparatus 1. The table Teo, Too, Tee, and Toe are distributed and registered.

したがって、自動的に、欠陥画素の座標情報を欠陥用テーブル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 pixel inspection unit 10, the defective pixel correction unit 18e and the defective pixel correction unit 18o are based on the defective pixel determination result signal SE and the defective pixel determination result signal SO that are the determination results of the defect determination unit 16e and the defect determination unit 16o. Thus, the input pixel which is a defective pixel is corrected. An appropriate correction method can be used as the correction method for the defective pixel.

したがって、適切かつ高速に検出された欠陥画素を、補正して画像品質を向上させることができる。   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 pixel inspection unit 10 of the image processing apparatus 1 according to the present embodiment is configured so that pixels of image data having a predetermined number of lines with a predetermined number of pixels as one line in the main scanning direction are orthogonal to the main scanning direction. A pixel inspection device that detects whether or not the input pixel is a defective pixel, and is input as an input pixel continuously from the reference pixel with the first pixel in the main scanning direction of the head line in the scanning direction as a reference pixel. The even-numbered odd-numbered defect pixel table 21eo (Teo) in which the even-numbered odd-numbered defective pixel coordinates of the even-numbered lines are registered, and the odd-numbered number of defective pixel coordinates of the odd-numbered lines in the main-scanning direction are registered. Odd-numbered odd-numbered defect table 21oo (Too), even-numbered even-numbered defect table 21ee (Tee) in which even-numbered even-numbered defective pixel coordinates of the even-numbered line are registered, The odd-numbered even-numbered defect table 21oe (Toe) in which the even-numbered defective pixel coordinates of several lines in the main scanning direction are registered, and the odd-numbered odd-numbered defect table 21oo based on the respective read addresses The defective pixel detection process mode and table of the defective pixel coordinates read from the even line even number defect table 21ee and the defective pixel coordinates read from the odd line even number defect table 21oe. An even-side defective pixel coordinate switching unit (even-side defective pixel coordinate switching means) 22e that switches according to the even-side table switching signal as the switching control signal Ste and outputs the even-side defective pixel coordinates as the table information Ta, respectively. Based on the read address, the odd number line odd number defect table 21oo or the even number The defective pixel detection processing mode and table switching between the defective pixel coordinates read from the in-even-numbered defect table 21ee and the defective pixel coordinates read from the even-numbered odd-numbered defect table 21eo An odd-side defective pixel coordinate switching unit (odd-side defective pixel coordinate switching means) 22o that switches according to an odd-side table switching signal as the control signal Sto and outputs the odd-side defective pixel coordinates as the table information Tb, and the input pixel A coordinate detection unit (coordinate detection means) 23 for detecting coordinates in the main scanning direction and the sub-scanning direction, and the detected coordinates detected by the coordinate detection unit 23 and the even-numbered defective pixel coordinates are compared and detected. Even pixel defect determining unit (even pixel defect determining means) 2 which is a defect determining unit 16e for determining whether or not the input pixel of the coordinates is a defective pixel. 4e is a defect determination unit 16o that compares the detected coordinates detected by the coordinate detection unit 23 with the odd-numbered defective pixel coordinates to determine whether or not the input pixel of the detected coordinates is a defective pixel. A pixel defect determination unit (odd pixel defect determination unit) 24o and the determination result of the even pixel defect determination unit 24e and the even-side table switching signal corresponding to the detected coordinates are output to the even-numbered defective pixel coordinate switching unit 22e. An even-side table switching unit (even-side table switching means) 25e, which is a table switching unit 15e, and the odd-side defective pixel coordinates corresponding to the determination result of the odd-numbered pixel defect determination 24o and the odd-numbered table switching signal according to the detected coordinates. An odd-numbered table switching unit (odd-side table switching means) 25o that is a table switching unit 15o to be output to the switching unit 22o, and the even-numbered pixel defect determination unit 24e; An address control unit (address control means) 26 which is an address control unit 17e, 17o that outputs a read address to each of the tables 21eo, 21oo, 21ee, 21oe based on the determination result of the odd pixel defect determination unit 24o. ing.

したがって、画素検査部10は、処理モードによって欠陥用テーブルTeo、Too、Tee、Toeへの欠陥画素座標情報の書き換えを行うことなく、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行うことができる。   Therefore, the pixel inspection unit 10 can appropriately and quickly perform the defect pixel detection processing mode without rewriting the defect pixel coordinate information to the defect tables Teo, Too, Tee, and Toe depending on the processing mode. Detection of defective pixels can be performed.

また、本実施例の画像処理装置1の画素検査部10は、主走査方向所定数の画素を1ラインとして所定数のラインを有する画像データの画素が、該主走査方向と直交する副走査方向の先頭ラインの該主走査方向先頭画素を基準画素として、該基準画素から連続して入力画素として入力され、該入力画素が欠陥画素であるか否かの検出処理を行う画素検査装置の実行する画素検査方法であって、偶数ラインの主走査方向奇数個目の欠陥画素座標を偶数ライン奇数個目欠陥用テーブル21eo(Teo)へ登録する偶数ライン奇数個目欠陥用テーブル登録処理ステップと、奇数ラインの主走査方向奇数個目の欠陥画素座標を奇数ライン奇数個目欠陥用テーブル21oo(Too)へ登録する奇数ライン奇数個目欠陥用テーブル登録処理ステップと、偶数ラインの主走査方向偶数個目の欠陥画素座標を偶数ライン偶数個目欠陥用テーブル21ee(Tee)へ登録する偶数ライン偶数個目欠陥用テーブル登録処理ステップと、奇数ラインの主走査方向偶数個目の欠陥画素座標を奇数ライン偶数個目欠陥用テーブル21oe(Toe)へ登録する奇数ライン偶数個目欠陥用テーブル登録処理ステップと、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブル21ooまたは前記偶数ライン偶数個目欠陥用テーブル21eeから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブル21oeから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及びテーブル切替制御信号Steとしての偶数側テーブル切替信号に応じて切り替えてテーブル情報Taである偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替処理ステップと、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブル21ooまたは前記偶数ライン偶数個目欠陥用テーブル21eeから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブル21eoから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及びテーブル切替制御信号Stoとしての奇数側テーブル切替信号に応じて切り替えて奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替処理ステップと、前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出処理ステップと、前記座標検出処理ステップで検出される検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する偶数画素欠陥判定処理ステップと、前記座標検出処理ステップで検出される検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する奇数画素欠陥判定処理ステップと、前記偶数画素欠陥判定処理ステップでの判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替処理ステップへ出力する偶数側テーブル切替処理ステップと、前記奇数画素欠陥判定処理ステップでの判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替処理ステップへ出力する奇数側テーブル切替処理ステップと、前記偶数画素欠陥判定処理ステップと前記奇数画素欠陥判定処理ステップでの判定結果に基づいて前記各テーブルへ読出アドレスを出力するアドレス制御処理ステップと、を有する画素検査方法を実行する。   In addition, the pixel inspection unit 10 of the image processing apparatus 1 according to the present embodiment is configured so that pixels of image data having a predetermined number of lines with a predetermined number of pixels as one line in the main scanning direction are orthogonal to the main scanning direction. Executed by a pixel inspection apparatus that performs detection processing as to whether or not the input pixel is a defective pixel, with the first pixel in the main scanning direction of the first line as a reference pixel, as input pixels continuously input from the reference pixel An even line odd-numbered defect table registration processing step for registering even-numbered odd-numbered defective pixel coordinates of even-numbered lines in the even-numbered line odd-numbered defect table 21eo (Teo), Odd-numbered odd-numbered defect table registration step for registering odd-numbered defective pixel coordinates in the main scanning direction of the line in the odd-numbered odd-numbered odd-numbered defect table 21oo (Too); Even-numbered line even-numbered defect pixel coordinates are registered in the even-numbered line even-numbered defect table 21ee (Tee), and even-numbered line even-numbered defect table registration processing step, Odd line even-numbered defect table registration processing step for registering the defective pixel coordinates of the eyes in the odd-numbered even-numbered defect table 21 oe (Toe), and the odd-numbered odd-numbered defect table based on the respective read addresses 21oo or the defective pixel coordinates read from the even-numbered even-numbered defect table 21ee and the defective pixel coordinates read from the odd-numbered even-numbered defect table 21oe are used to detect the defective pixels. Switch according to the even-side table switching signal as the mode and table switching control signal Ste The even-numbered defective pixel coordinate switching process step which is output as the even-numbered defective pixel coordinates as the table information Ta, and the odd-numbered odd-numbered defect table 21oo or the even-numbered even-numbered defect table based on the respective read addresses The defective pixel coordinates read from 21ee and the defective pixel coordinates read from the even-numbered odd-numbered defect table 21eo are set to the odd-numbered side as the defective pixel detection processing mode and the table switching control signal Sto. Odd-numbered defective pixel coordinate switching processing step for switching according to a table switching signal and outputting as odd-numbered defective pixel coordinates; coordinate detection processing step for detecting coordinates of the input pixel in the main scanning direction and the sub-scanning direction; Detection coordinates detected in the coordinate detection processing step and the even-side defect pixel coordinates The even pixel defect determination processing step for determining whether or not the input pixel of the detected coordinate is a defective pixel, and the detected coordinate detected in the coordinate detection processing step and the odd-numbered defective pixel coordinate In comparison, the odd-numbered pixel defect determination processing step for determining whether or not the input pixel of the detected coordinate is a defective pixel, the determination result in the even-numbered pixel defect determination processing step, and the even-numbered side according to the detected coordinate An even-side table switching processing step for outputting a table switching signal to the even-numbered defective pixel coordinate switching processing step; a determination result in the odd-numbered pixel defect determining processing step; and the odd-side table switching signal according to the detected coordinates. Odd side table switching processing step for output to odd side defective pixel coordinate switching processing step, the even pixel defect determining processing step, and the odd pixel missing step An address control processing step of outputting a read address to the respective tables based on the judging result of the judging process step, performing a pixel inspection method having.

したがって、画素検査部10は、処理モードによって欠陥用テーブルTeo、Too、Tee、Toeへの欠陥画素座標情報の書き換えを行うことなく、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行うことができる。   Therefore, the pixel inspection unit 10 can appropriately and quickly perform the defect pixel detection processing mode without rewriting the defect pixel coordinate information to the defect tables Teo, Too, Tee, and Toe depending on the processing mode. Detection of defective pixels can be performed.

さらに、本実施例の画像処理装置1の画素検査部10は、主走査方向所定数の画素を1ラインとして所定数のラインを有する画像データの画素が、該主走査方向と直交する副走査方向の先頭ラインの該主走査方向先頭画素を基準画素として、該基準画素から連続して入力画素として入力され、該入力画素が欠陥画素であるか否かの検出処理を行う画素検査装置の搭載するプログラムであって、制御プロセッサに、偶数ラインの主走査方向奇数個目の欠陥画素座標を偶数ライン奇数個目欠陥用テーブル21eo(Teo)へ登録する偶数ライン奇数個目欠陥用テーブル登録処理と、奇数ラインの主走査方向奇数個目の欠陥画素座標を奇数ライン奇数個目欠陥用テーブル21oo(Too)へ登録する奇数ライン奇数個目欠陥用テーブル登録処理と、偶数ラインの主走査方向偶数個目の欠陥画素座標を偶数ライン偶数個目欠陥用テーブル21ee(Tee)へ登録する偶数ライン偶数個目欠陥用テーブル登録処理と、奇数ラインの主走査方向偶数個目の欠陥画素座標を奇数ライン偶数個目欠陥用テーブル21oe(Toe)へ登録する奇数ライン偶数個目欠陥用テーブル登録処理と、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブル21ooまたは前記偶数ライン偶数個目欠陥用テーブル21eeから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブル21oeから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及びテーブル切替制御信号Steとしての偶数側テーブル切替信号に応じて切り替えてテーブル情報Taである偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替処理と、それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブル21ooまたは前記偶数ライン偶数個目欠陥用テーブル21eeから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブル21eoから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及びテーブル切替制御信号Stoとしての奇数側テーブル切替信号に応じて切り替えて奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替処理と、前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出処理と、前記座標検出処理で検出される検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する偶数画素欠陥判定処理と、前記座標検出処理で検出される検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する奇数画素欠陥判定処理と、前記偶数画素欠陥判定処理での判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替処理へ出力する偶数側テーブル切替処理と、前記奇数画素欠陥判定処理での判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替処理へ出力する奇数側テーブル切替処理と、前記偶数画素欠陥判定処理と前記奇数画素欠陥判定処理での判定結果に基づいて前記各テーブルへ読出アドレスを出力するアドレス制御処理と、を実行させるプログラムを搭載している。   Further, the pixel inspection unit 10 of the image processing apparatus 1 according to the present embodiment is configured so that pixels of image data having a predetermined number of lines with a predetermined number of pixels as one line in the main scanning direction are orthogonal to the main scanning direction. Mounted in a pixel inspection apparatus that detects whether or not the input pixel is a defective pixel and is input as an input pixel continuously from the reference pixel, with the first pixel in the main scanning direction of the first line as a reference pixel An even-numbered line odd-numbered defect table registration process for registering an even-numbered number of odd-numbered defective pixel coordinates in an even-numbered line odd-numbered defect table 21eo (Teo) in a control processor; Odd line odd-numbered defect table registration processing for registering odd-numbered defective pixel coordinates of odd-numbered lines in the odd-numbered odd-numbered defect table 21oo (Too). The even-numbered even-numbered defect table registration process for registering the even-numbered defective pixel coordinates of the even-numbered lines in the even-numbered even-numbered defect table 21ee (Tee) and the even-numbered odd-numbered lines in the main scanning direction. Odd line even-numbered defect table registration processing for registering eye defective pixel coordinates in the odd-numbered line even-numbered defect table 21oe (Toe), and the odd-numbered odd-numbered defect table 21oo based on the respective read addresses. Alternatively, the defective pixel coordinates read from the even-numbered even-numbered defect table 21ee and the defective pixel coordinates read from the odd-numbered even-numbered defect table 21oe are used as the defective pixel detection processing mode. The table information T is switched according to the even-side table switching signal as the table switching control signal Ste. The even-numbered defective pixel coordinate switching process for outputting the even-numbered defective pixel coordinates and 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. The defective pixel coordinates and the defective pixel coordinates read from the even-numbered odd-numbered defect table 21eo are used as an odd-side table switching signal as the defective pixel detection processing mode and the table switching control signal Sto. Detected by the odd-numbered defective pixel coordinate switching process for switching according to the odd-numbered defective pixel coordinates, the coordinate detection process for detecting the coordinates of the input pixel in the main scanning direction and the sub-scanning direction, and the coordinate detection process. The detected coordinates and the even-numbered defective pixel coordinates are compared, and the input pixel of the detected coordinates is a defective pixel. Whether or not the input pixel of the detected coordinate is a defective pixel by comparing the detected coordinate detected by the even-numbered pixel defect determining process and the detected coordinate detected by the coordinate detecting process with the odd-numbered defective pixel coordinate Odd-numbered pixel defect determination processing for determining whether or not, even-numbered table switching for outputting the even-numbered table switching signal according to the determination result in the even-numbered pixel defect determination processing and the detected coordinates to the even-numbered defective pixel coordinate switching processing Odd number table switching processing for outputting the odd number side table switching signal to the odd number side defective pixel coordinate switching processing, and the even number pixel defect determination. And a program for executing an address control process for outputting a read address to each table based on a determination result in the odd pixel defect determination process.

したがって、画素検査部10は、処理モードによって欠陥用テーブルTeo、Too、Tee、Toeへの欠陥画素座標情報の書き換えを行うことなく、欠陥画素の検出処理モードが異なる場合においても、適切かつ高速に欠陥画素の検出を行うことができる。   Therefore, the pixel inspection unit 10 can appropriately and quickly perform the defect pixel detection processing mode without rewriting the defect pixel coordinate information to the defect tables Teo, Too, Tee, and Toe depending on the processing mode. Detection of defective pixels can be performed.

また、本実施例の画像処理装置1の画素検査部10は、前記偶数ライン奇数個目欠陥用テーブル21eo(Teo)、前記奇数ライン奇数個目欠陥用テーブル21oo(Too)、前記偶数ライン偶数個目欠陥用テーブル21ee(Tee)及び前記奇数ライン偶数個目欠陥用テーブル21oe(Toe)は、それぞれの記憶手段または1つの記憶手段に記憶されている。   In addition, the pixel inspection unit 10 of the image processing apparatus 1 according to the present embodiment includes the even-numbered odd-numbered defect table 21eo (Teo), the odd-numbered odd-numbered defect table 21oo (Too), and the even-numbered even-numbered line. The eye defect table 21ee (Tee) and the odd-numbered even-numbered defect table 21oe (Toe) are stored in each storage unit or one storage unit.

したがって、速やかに各欠陥用テーブル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 pixel inspection unit 10 of the image processing apparatus 1 according to the present embodiment, the address control unit 26 includes an address input switching unit (address input switching unit) 26a, and the even-numbered odd-numbered defect table 21eo and the The odd-numbered even-numbered defect table 21 oe directly outputs the read address, and the address input switching unit 26 a determines the input destination of the read address according to the detection processing mode. The defect table 21oo and the even-numbered even-numbered defect table 21ee are switched to each other.

したがって、速やかにかつ適切に各欠陥用テーブル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 pixel inspection unit 10 of the image processing apparatus 1 according to the present embodiment, the processing mode is the same as the two-line parallel processing mode in which two pixels at the same position in the main scanning direction of two consecutive lines are processed in parallel. And a two-pixel parallel processing mode in which two pixels that are continuous in the main scanning direction in a line are processed in parallel.

したがって、処理モードが、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 pixel inspection unit 10 of the image processing apparatus 1 according to the present embodiment, the even-numbered table switching unit 25e and the odd-numbered table switching unit 25o have the even number 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 side defective pixel coordinates and the odd-side defective pixel coordinates are switched in line units.

したがって、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 pixel inspection unit 10 of the image processing apparatus 1 according to the present embodiment uses the even-numbered line odd-numbered defect table 21eo (Teo) and the odd-numbered line odd-numbered defect table 21oo (Too) as the coordinates of the defective pixels. ), And a coordinate registration unit (coordinate registration means) 27 for sorting and registering the even-numbered even-numbered defect table 21ee (Tee) and the odd-numbered even-numbered defect table 21oe (Toe).

したがって、欠陥画素座標情報を、速やかにかつ正確に各欠陥用テーブル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 pixel inspection unit 10 of the image processing apparatus 1 according to the present embodiment corrects a defective pixel (correction unit) that corrects the defective pixel determined by the even pixel defect determination unit 24e and the odd pixel defect determination unit 24o as a defective pixel. ) 28 is further provided.

したがって、入力される欠陥画素を適切かつ速やかに補正することができ、処理画像の画質を向上させることができる。   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 pixel inspection unit 10 of the image processing apparatus 1 according to the present embodiment includes the even-numbered odd-numbered defect table 21eo (Teo), the odd-numbered odd-numbered defect table 21oo (Too), and the even-numbered even-numbered line. The eye defect table 21ee (Tee) and the odd-numbered even-numbered defect table 21oe (Toe) also store information on the correction method by the correction unit 28.

したがって、ユーザの意図する補正方法や欠陥画素の状態に応じた補正を行うことができ、利用性を向上させることができるとともに、処理画像の画質を向上させることができる。   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 SYMBOLS 1 Image processing apparatus 10 Pixel inspection part 11 Counter part 12 Defective pixel coordinate information storage part 13 Defective pixel table setting part 14 Defective pixel table distribution part Sa1, Sb1 Selector Teo Even line odd number odd number table Too odd number odd number Defect table Tee Even line even number defect table Toe Odd line even number defect table Sa0, Sb0 selector Sa2, Sb2 selector 15e, 15o Table switching unit 16e, 16o Defect determining unit 17e, 17o Address control unit 18e, 18o Defective pixel correction unit 21eo Even line odd number defect table 21oo Odd line odd number defect table 21ee Even line even number defect table 21oe Odd line even number defect table 22e Even number side defective pixel coordinate switching section 2o Odd-side defective pixel coordinate switching unit 23 Coordinate detection unit 24e Even-numbered pixel defect determination unit 24o Odd-numbered pixel defect determination unit 25e Even-side table switching unit 25o Odd-side table switching unit 26 Address control unit 26a Address input switching unit 27 Coordinate registration unit 28 Correction unit

特許4584768号公報Japanese Patent No. 4582768

Claims (11)

主走査方向所定数の画素を1ラインとして所定数のラインを有する画像データの画素が、該主走査方向と直交する副走査方向の先頭ラインの該主走査方向先頭画素を基準画素として、該基準画素から連続して入力画素として入力され、該入力画素が欠陥画素であるか否かの検出処理を行う画素検査装置であって、
偶数ラインの主走査方向奇数個目の欠陥画素座標が登録される偶数ライン奇数個目欠陥用テーブルと、
奇数ラインの主走査方向奇数個目の欠陥画素座標が登録される奇数ライン奇数個目欠陥用テーブルと、
偶数ラインの主走査方向偶数個目の欠陥画素座標が登録される偶数ライン偶数個目欠陥用テーブルと、
奇数ラインの主走査方向偶数個目の欠陥画素座標が登録される奇数ライン偶数個目欠陥用テーブルと、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び偶数側テーブル切替信号に応じて切り替えて偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替手段と、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び奇数側テーブル切替信号に応じて切り替えて奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替手段と、
前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出手段と、
前記座標検出手段の検出する検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する偶数画素欠陥判定手段と、
前記座標検出手段の検出する検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する奇数画素欠陥判定手段と、
前記偶数画素欠陥判定手段の判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替手段へ出力する偶数側テーブル切替手段と、
前記奇数画素欠陥判定手段の判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替手段へ出力する奇数側テーブル切替手段と、
前記偶数画素欠陥判定手段と前記奇数画素欠陥判定手段の判定結果に基づいて前記各テーブルへ読出アドレスを出力するアドレス制御手段と、
を備えていることを特徴とする画素検査装置。
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.
主走査方向所定数の画素を1ラインとして所定数のラインを有する画像データの画素が、該主走査方向と直交する副走査方向の先頭ラインの該主走査方向先頭画素を基準画素として、該基準画素から連続して入力画素として入力され、該入力画素が欠陥画素であるか否かの検出処理を行う画素検査装置の実行する画素検査方法であって、
偶数ラインの主走査方向奇数個目の欠陥画素座標を偶数ライン奇数個目欠陥用テーブルへ登録する偶数ライン奇数個目欠陥用テーブル登録処理ステップと、
奇数ラインの主走査方向奇数個目の欠陥画素座標を奇数ライン奇数個目欠陥用テーブルへ登録する奇数ライン奇数個目欠陥用テーブル登録処理ステップと、
偶数ラインの主走査方向偶数個目の欠陥画素座標を偶数ライン偶数個目欠陥用テーブルへ登録する偶数ライン偶数個目欠陥用テーブル登録処理ステップと、
奇数ラインの主走査方向偶数個目の欠陥画素座標を奇数ライン偶数個目欠陥用テーブルへ登録する奇数ライン偶数個目欠陥用テーブル登録処理ステップと、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び偶数側テーブル切替信号に応じて切り替えて偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替処理ステップと、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び奇数側テーブル切替信号に応じて切り替えて奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替処理ステップと、
前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出処理ステップと、
前記座標検出処理ステップで検出される検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する偶数画素欠陥判定処理ステップと、
前記座標検出処理ステップで検出される検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する奇数画素欠陥判定処理ステップと、
前記偶数画素欠陥判定処理ステップでの判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替処理ステップへ出力する偶数側テーブル切替処理ステップと、
前記奇数画素欠陥判定処理ステップでの判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替処理ステップへ出力する奇数側テーブル切替処理ステップと、
前記偶数画素欠陥判定処理ステップと前記奇数画素欠陥判定処理ステップでの判定結果に基づいて前記各テーブルへ読出アドレスを出力するアドレス制御処理ステップと、
を有することを特徴とする画素検査方法。
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:
主走査方向所定数の画素を1ラインとして所定数のラインを有する画像データの画素が、該主走査方向と直交する副走査方向の先頭ラインの該主走査方向先頭画素を基準画素として、該基準画素から連続して入力画素として入力され、該入力画素が欠陥画素であるか否かの検出処理を行う画素検査装置の搭載するプログラムであって、
制御プロセッサに、
偶数ラインの主走査方向奇数個目の欠陥画素座標を偶数ライン奇数個目欠陥用テーブルへ登録する偶数ライン奇数個目欠陥用テーブル登録処理と、
奇数ラインの主走査方向奇数個目の欠陥画素座標を奇数ライン奇数個目欠陥用テーブルへ登録する奇数ライン奇数個目欠陥用テーブル登録処理と、
偶数ラインの主走査方向偶数個目の欠陥画素座標を偶数ライン偶数個目欠陥用テーブルへ登録する偶数ライン偶数個目欠陥用テーブル登録処理と、
奇数ラインの主走査方向偶数個目の欠陥画素座標を奇数ライン偶数個目欠陥用テーブルへ登録する奇数ライン偶数個目欠陥用テーブル登録処理と、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記奇数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び偶数側テーブル切替信号に応じて切り替えて偶数側欠陥画素座標として出力する偶数側欠陥画素座標切替処理と、
それぞれの読出アドレスに基づいて前記奇数ライン奇数個目欠陥用テーブルまたは前記偶数ライン偶数個目欠陥用テーブルから読み出された前記欠陥画素座標と前記偶数ライン奇数個目欠陥用テーブルから読み出された前記欠陥画素座標とを、前記欠陥画素の検出処理モード及び奇数側テーブル切替信号に応じて切り替えて奇数側欠陥画素座標として出力する奇数側欠陥画素座標切替処理と、
前記入力画素の主走査方向及び前記副走査方向における座標を検出する座標検出処理と、
前記座標検出処理で検出される検出座標と前記偶数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する偶数画素欠陥判定処理と、
前記座標検出処理で検出される検出座標と前記奇数側欠陥画素座標とを比較して、該検出座標の前記入力画素が欠陥画素であるか否か判定する奇数画素欠陥判定処理と、
前記偶数画素欠陥判定処理での判定結果と前記検出座標に応じた前記偶数側テーブル切替信号を前記偶数側欠陥画素座標切替処理へ出力する偶数側テーブル切替処理と、
前記奇数画素欠陥判定処理での判定結果と前記検出座標に応じた前記奇数側テーブル切替信号を前記奇数側欠陥画素座標切替処理へ出力する奇数側テーブル切替処理と、
前記偶数画素欠陥判定処理と前記奇数画素欠陥判定処理での判定結果に基づいて前記各テーブルへ読出アドレスを出力するアドレス制御処理と、
を実行させることを特徴とするプログラム。
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.
JP2015204177A 2015-10-16 2015-10-16 Pixel inspection device, image processing apparatus, pixel inspection method, and program Pending JP2017076916A (en)

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)

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