JP2018023054A - Data processing system, data processing method, and program - Google Patents

Data processing system, data processing method, and program Download PDF

Info

Publication number
JP2018023054A
JP2018023054A JP2016154450A JP2016154450A JP2018023054A JP 2018023054 A JP2018023054 A JP 2018023054A JP 2016154450 A JP2016154450 A JP 2016154450A JP 2016154450 A JP2016154450 A JP 2016154450A JP 2018023054 A JP2018023054 A JP 2018023054A
Authority
JP
Japan
Prior art keywords
data
flaw
scratch
relative distance
dummy
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.)
Granted
Application number
JP2016154450A
Other languages
Japanese (ja)
Other versions
JP6701025B2 (en
Inventor
勇人 ▲高▼橋
勇人 ▲高▼橋
Isato Takahashi
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2016154450A priority Critical patent/JP6701025B2/en
Publication of JP2018023054A publication Critical patent/JP2018023054A/en
Application granted granted Critical
Publication of JP6701025B2 publication Critical patent/JP6701025B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To make it possible to integrate flaw data with no unnecessary dummy flaw pixels remaining, without requiring such a process as developing, in an absolute position (coordinate position), positional information resulting from a relative distance.SOLUTION: An integration target selecting section (205) uses, as integration target flaw data (206), post-flaw data (203) and a step flaw data (204), each of which expresses the position of a flaw pixel by use of a finite relative distance between flaw pixels. In a case where the integration target flaw data (206) is dummy flaw data, an unnecessary dummy flaw determination section (207) determines whether to integrate the dummy flaw data with integration flaw data (109), on the basis of the relative distance of the dummy flaw data and the relative distance of flaw data integrated with the integration data 109 immediately before. In a case where it is determined not to carry out the integration, the dummy flaw data is excluded from the integration target flaw data.SELECTED DRAWING: Figure 1

Description

本発明は、データ処理装置、データ処理方法、プログラムに関する。   The present invention relates to a data processing device, a data processing method, and a program.

デジタルカメラ等の撮像センサに配置されている複数の画素の中には、様々な理由により正しく画素データを生成できない不良画素(以下、キズ画素と表記する。)となってしまったものがある。このキズ画素は、製造工程等で生じた初期的なキズ画素(以下、工程キズ画素と表記する。)と、製品出荷後に発生した後発的なキズ画素(以下、後キズ画素と表記する。)と、に分けられる。これらのキズ画素の画像データを補正する際には、キズ画素の位置を表す情報を含むキズデータを用いた画像処理が行われる。キズデータが有するキズ画素の位置は、キズ画素間の相対距離で表すことができる。ただし、距離の値を表すビット数には制限がある。このため、そのビット数で表せる最大の相対距離内にキズ画素が存在しないときには、疑似的なキズ画素(以下、ダミーキズ画素と表記する。)を挟むようにし、そのダミーキズ画素からキズ画素までの間の相対距離により、キズ画素の位置が表される。   Among a plurality of pixels arranged in an imaging sensor such as a digital camera, there is a pixel that has become a defective pixel (hereinafter referred to as a scratch pixel) that cannot correctly generate pixel data for various reasons. This scratch pixel is an initial scratch pixel (hereinafter, referred to as a process scratch pixel) generated in a manufacturing process or the like, and a late scratch pixel (hereinafter, referred to as a post-scratch pixel) generated after product shipment. And divided into When correcting the image data of these flaw pixels, image processing using flaw data including information indicating the position of the flaw pixel is performed. The position of the scratch pixel included in the scratch data can be expressed by a relative distance between the scratch pixels. However, the number of bits representing the distance value is limited. Therefore, when there is no scratch pixel within the maximum relative distance that can be expressed by the number of bits, a pseudo scratch pixel (hereinafter referred to as a dummy scratch pixel) is sandwiched between the dummy scratch pixel and the scratch pixel. The position of the flawed pixel is represented by the relative distance.

また、工程キズ画素と後キズ画素の二つのキズデータは、統合されて一つのキズデータとして扱われることがある。二つのキズデータを統合して一つのキズデータとした場合、統合後のキズデータに含まれるキズ画素位置の情報(相対距離)が前述した最大相対距離内であっても、統合後のキズデータの中に統合前のダミーキズ画素のキズデータが残ってしまう場合がある。この問題に対し、例えば特許文献1に記載の技術では、相対距離による位置情報を一旦絶対位置(座標位置)に展開して重畳したあと、相対距離による位置情報に変換することで、不要なダミーキズを統合後に残さないようにしている。   In addition, the two defect data of the process defect pixel and the subsequent defect pixel may be integrated and handled as one defect data. When two flaw data are integrated into one flaw data, even if the flaw pixel position information (relative distance) included in the flaw data after integration is within the maximum relative distance, the flaw data after integration In some cases, flaw data of dummy flaw pixels before integration may remain in the. To deal with this problem, for example, in the technique described in Patent Document 1, position information based on relative distance is temporarily developed and superimposed on an absolute position (coordinate position), and then converted into position information based on relative distance, thereby eliminating unnecessary dummy scratches. Is not left after integration.

特開2011−82634号公報JP 2011-82634 A

しかしながら、特許文献1に記載の方法では、不要なダミーキズを統合後に残さないようにするために、キズデータ統合の際に、相対距離により表される位置情報を、一旦、撮像センサにおける画素配列上の絶対位置(座標位置)情報に変換する必要がある。このため、その位置情報変換の際の情報展開やその展開後のデータを保持するためのRAMが必要になる。   However, in the method described in Patent Document 1, in order to prevent unnecessary dummy scratches from being left after integration, position information represented by a relative distance is temporarily displayed on the pixel array in the image sensor when integrating scratch data. It is necessary to convert to absolute position (coordinate position) information. For this reason, a RAM for holding information expansion at the time of the position information conversion and data after the expansion is necessary.

そこで、本発明は、相対距離による位置情報を絶対位置(座標位置)に展開するような処理を要することなく、不要なダミーキズ画素を残さずにキズデータの統合を可能にすることを目的とする。   SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to make it possible to integrate flaw data without leaving unnecessary dummy flaw pixels without requiring processing for expanding position information based on relative distances to absolute positions (coordinate positions). .

本発明は、不良画素の位置を不良画素間の有限の相対距離で各々表した第1,第2のキズデータを、前記第3のキズデータとして統合する統合処理手段と、前記第3のキズデータが不良画素間を中継するために挿入されたダミーキズデータである場合、前記ダミーキズデータの前記相対距離と、直前に統合された第3のキズデータの前記相対距離とに基づいて、前記ダミーキズデータを前記第3のキズデータとして統合するか否か判定し、統合しないと判定した場合には前記ダミーキズデータを前記第3のキズデータから除外する除外手段と、を有することを特徴とする。   The present invention provides an integration processing means for integrating first and second flaw data, each representing the position of a defective pixel with a finite relative distance between defective pixels, as the third flaw data, and the third flaw data. When the data is dummy scratch data inserted to relay between defective pixels, based on the relative distance of the dummy scratch data and the relative distance of the third scratch data integrated immediately before, It is determined whether or not dummy scratch data is integrated as the third scratch data, and when it is determined that the dummy scratch data is not integrated, there is an exclusion unit that excludes the dummy scratch data from the third scratch data. And

本発明によれば、相対距離による位置情報を絶対位置(座標位置)に展開するような処理を要することなく、不要なダミーキズ画素を残さずにキズデータの統合が可能となる。   According to the present invention, it is possible to integrate flaw data without leaving unnecessary dummy flaw pixels without requiring processing for expanding position information based on relative distances to absolute positions (coordinate positions).

本実施形態の撮像装置の概略構成例を示す図である。It is a figure which shows the example of schematic structure of the imaging device of this embodiment. 第1の実施形態に係るキズデータ統合部の構成例を示す図である。It is a figure which shows the structural example of the crack data integration part which concerns on 1st Embodiment. 第1の実施形態に係るキズデータ統合処理のフローチャートである。3 is a flowchart of scratch data integration processing according to the first embodiment. 第1の実施形態に係る統合前後のキズ配置とキズデータ例を示す図である。It is a figure which shows the flaw arrangement | positioning before and after integration and the example of flaw data which concern on 1st Embodiment. 第1の実施形態に係る統合前後のキズデータの説明に用いる図である。It is a figure used for description of the flaw data before and behind integration concerning a 1st embodiment. 第2の実施形態に係るキズデータ統合部の構成例を示す図である。It is a figure which shows the structural example of the crack data integration part which concerns on 2nd Embodiment. 第2の実施形態に係るキズデータ統合処理のフローチャートである。It is a flowchart of the flaw data integration process which concerns on 2nd Embodiment. 第2の実施形態に係る統合前後のキズ配置とキズデータ例を示す図である。It is a figure which shows the flaw arrangement | positioning before and behind integration and the example of flaw data which concern on 2nd Embodiment. 第2の実施形態に係る統合前後のキズデータの説明に用いる図である。It is a figure used for description of the flaw data before and behind integration concerning a 2nd embodiment.

以下に、本発明の好ましい実施の形態を、添付の図面に基づいて詳細に説明する。
<第1の実施形態>
図1は、本発明のデータ処理装置が適用される一例としての撮像装置の概略的な内部構成例を示す図である。本実施形態の撮像装置は、デジタルカメラやデジタルビデオカメラ、カメラ機能を備えたスマートフォンやタブレット端末などの各種携帯端末、工業用カメラ、車載カメラ、医療用カメラなどに適用可能である。
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
<First Embodiment>
FIG. 1 is a diagram illustrating a schematic internal configuration example of an imaging apparatus as an example to which the data processing apparatus of the present invention is applied. The imaging apparatus of the present embodiment can be applied to digital cameras, digital video cameras, various portable terminals such as smartphones and tablet terminals having camera functions, industrial cameras, in-vehicle cameras, medical cameras, and the like.

図1において、本実施形態の撮像装置は、レンズ101、撮像素子102、A/D変換器103、キズデータ生成部105、工程キズデータ保持部111、キズデータ統合部108、統合キズデータ保持部112、画像処理部110を有する。   In FIG. 1, the imaging apparatus according to the present embodiment includes a lens 101, an image sensor 102, an A / D converter 103, a scratch data generation unit 105, a process scratch data holding unit 111, a scratch data integration unit 108, and an integrated scratch data storage unit. 112 and an image processing unit 110.

レンズ101は、撮像光学系のレンズであり、被写体等の光学像を撮像素子102の撮像センサ上に結像させる。撮像素子102は、CCDやCMOS等からなる撮像センサとその周辺回路を有して構成されており、レンズ101により撮像センサ上に結像された光学像を電気信号(撮像信号)に変換してA/D変換器103に出力する。A/D変換器103は、撮像素子102にて取得されて供給された撮像信号を、デジタル画像データ(以下、画像データ104と表記する。)に変換する。A/D変換器103から出力された画像データ104は、画像処理部110とキズデータ生成部105に送られる。   The lens 101 is a lens of an imaging optical system, and forms an optical image of a subject or the like on the imaging sensor of the imaging element 102. The image sensor 102 includes an image sensor composed of a CCD, a CMOS, or the like and its peripheral circuit. The image sensor 102 converts an optical image formed on the image sensor by the lens 101 into an electrical signal (image signal). Output to the A / D converter 103. The A / D converter 103 converts the imaging signal acquired and supplied by the imaging element 102 into digital image data (hereinafter referred to as image data 104). The image data 104 output from the A / D converter 103 is sent to the image processing unit 110 and the flaw data generation unit 105.

ここで、撮像素子102の撮像センサには複数の画素が二次元配置されており、それら複数の画素の中には、正しく画素データを生成できない不良画素(キズ画素)となってしまったものがある。キズ画素には、例えば製品出荷後に宇宙線、静電破壊等の外部要因や経時変化等に起因して後発的に生ずる第1のキズ画素(後キズ画素)と、撮像センサの製造工程等の初期段階で生じた第2のキズ画素(工程キズ画素)とがある。また、工程キズ画素は、製造工程等で生じたキズ画素であるため、製品出荷前の検査等によりそのキズ画素の位置、キズ画素の状態や種類等が予め判っている。   Here, a plurality of pixels are two-dimensionally arranged in the image sensor of the image sensor 102, and some of these pixels are defective pixels (scratch pixels) that cannot generate pixel data correctly. is there. The scratch pixel includes, for example, a first scratch pixel (post-scratch pixel) that occurs later due to external factors such as cosmic rays and electrostatic breakdown after shipment of the product and a change with time, a manufacturing process of the image sensor, and the like. There is a second scratch pixel (process scratch pixel) generated in the initial stage. Further, since the process defect pixel is a defect pixel generated in the manufacturing process or the like, the position of the defect pixel, the state and type of the defect pixel, and the like are known in advance by inspection before shipping the product.

キズデータ生成部105は、画像データ104から後キズ画素のキズデータである第1のキズデータ(以下、後キズデータ106と表記する。)を生成する。具体的には、キズデータ生成部105は、画像データ104の各画素データの中で、周囲の画素と著しく信号レベルの異なる(例えば周囲の画素との間の信号レベル差が閾値を超える)画素を、後キズ画素として検出する。そして、キズデータ生成部105は、検出した後キズ画素に対応した後キズデータ106を生成する。   The flaw data generation unit 105 generates first flaw data (hereinafter, referred to as rear flaw data 106) that is flaw data of a rear flaw pixel from the image data 104. Specifically, the scratch data generation unit 105 is a pixel whose signal level is significantly different from the surrounding pixels (for example, the signal level difference between the surrounding pixels exceeds the threshold) in each pixel data of the image data 104. Are detected as post-scratch pixels. Then, the scratch data generation unit 105 generates post-scratch data 106 corresponding to the detected post-scratch pixel.

後キズデータ106は、撮像センサにおけるキズ画素の位置情報の他、キズ画素の状態や種類、ISO感度やシャッター速度、温度等のパラメータ等の情報を含むデータである。本実施形態において、キズ画素の位置情報は、不良画素間(キズ画素間)の相対距離により表現される。また、キズ画素間の相対距離は、撮像センサから例えばラスタスキャン順のような所定の方向及び順序で各画素データが読み出される際の、読み出し画素数に相当する情報となされている。すなわち、撮像センサからラスタスキャン順に順次読み出しが行われる各画素のうち、或るキズ画素から次のキズ画素までの間の画素数が、キズ画素間の相対距離を表す情報となされる。ただし、実際には相対距離(画素数)の値を表す際に用いられるビット数には制限があり、そのためキズ画素間の相対距離も有限の距離しか表すことができない。例えば、距離を16bitのデータで表すような場合、その16bitで表せる範囲は"0〜65535"の有限範囲となり、相対距離もその有限の範囲内でしか表すことができない。したがって、キズ画素間の相対距離が有限範囲を超えるような場合には、例えばそれらキズ画素間に中継点となるダミーキズ画素を挿入するようにして、各キズ画素間の相対距離が有限範囲を超えないようにしている。以下、ダミーキズ画素のキズデータをダミーキズデータと表記する。キズデータ生成部105は、前述のようにして生成した後キズデータ106(ダミーキズデータを挿入した場合にはそれも含む)を、キズデータ統合部108に送る。   The post-scratch data 106 is data including information such as the position and type of the scratch pixel, parameters such as ISO sensitivity, shutter speed, and temperature in addition to the position information of the scratch pixel in the image sensor. In the present embodiment, the position information of a scratch pixel is expressed by a relative distance between defective pixels (between scratch pixels). Further, the relative distance between the scratch pixels is information corresponding to the number of read pixels when each pixel data is read from the imaging sensor in a predetermined direction and order such as a raster scan order. That is, among the pixels that are sequentially read out from the imaging sensor in the raster scan order, the number of pixels between a certain scratch pixel and the next scratch pixel is information indicating the relative distance between the scratch pixels. However, in actuality, the number of bits used to represent the value of the relative distance (number of pixels) is limited, and therefore, the relative distance between flaw pixels can also represent only a finite distance. For example, when the distance is represented by 16-bit data, the range that can be represented by the 16-bit is a finite range of “0 to 65535”, and the relative distance can be represented only within the finite range. Therefore, when the relative distance between scratch pixels exceeds a finite range, for example, a dummy scratch pixel serving as a relay point is inserted between the scratch pixels so that the relative distance between the scratch pixels exceeds the finite range. I am trying not to. Hereinafter, the defect data of the dummy defect pixel is referred to as dummy defect data. The flaw data generation unit 105 sends the flaw data 106 generated as described above (including dummy flaw data if it is inserted) to the flaw data integration unit 108.

工程キズデータ保持部111は、例えば不揮発性メモリからなり、製造工程等において生じた既知の工程キズ画素のキズデータである第2のキズデータ(以下、工程キズデータ107と表記する。)を保持している。工程キズデータ107は、前述の後キズデータ106の場合と同様に、キズ画素の位置が、キズ画素間の画素数に相当する相対距離として表されている。また、工程キズデータ107においても、前述の後キズデータ106と同様、キズ画素間の相対距離が有限範囲を超えるような場合には、キズ画素間に中継点となるダミーキズ画素が挿入されて、キズ画素間の相対距離が有限範囲内に収まるようになされる。工程キズデータ保持部111は、それら工程キズ画素の位置(相対距離の情報)等を含む工程キズデータ107(ダミーキズデータが挿入されている場合にはそれも含む)を保持している。   The process flaw data holding unit 111 is made of, for example, a nonvolatile memory, and holds second flaw data (hereinafter referred to as process flaw data 107) that is flaw data of known process flaw pixels generated in a manufacturing process or the like. doing. In the process scratch data 107, as in the case of the post-scratch data 106 described above, the position of the scratch pixel is expressed as a relative distance corresponding to the number of pixels between the scratch pixels. Also, in the process scratch data 107, as in the case of the post-scratch data 106, when the relative distance between the scratch pixels exceeds a finite range, a dummy scratch pixel serving as a relay point is inserted between the scratch pixels, The relative distance between flawed pixels is set within a finite range. The process flaw data holding unit 111 holds process flaw data 107 (including dummy flaw data when it is inserted) including the position (relative distance information) of the process flaw pixels.

キズデータ統合部108には、前述したキズデータ生成部105から出力された後キズデータ106と、工程キズデータ保持部111から読み出された工程キズデータ107とが供給される。そして、キズデータ統合部108は、後キズデータ106と工程キズデータ107とを統合(マージ)して第3のキズデータ(以下、統合キズデータ109と表記する。)を生成する。なお、本実施形態におけるキズデータの統合(マージ)とは、後キズデータ106と工程キズデータ107の両方を合わせたキズデータを生成することである。ただし、本実施形態の場合、詳細は後述するが、キズデータ統合部108は、統合の対象になっているキズデータがダミーキズデータである場合には、そのダミーキズデータが不要なダミーキズデータであるか否かを判定する。そして、キズデータ統合部108は、ダミーキズデータが不要なダミーキズデータであると判定した場合には、そのダミーキズデータを、統合キズデータ109として統合する対象から除外する。キズデータ統合部108の、より詳細な構成及び動作は後述する。このようにしてキズデータ統合部108にて生成された統合キズデータ109は、統合キズデータ保持部112に送られて保持される。   The flaw data integration unit 108 is supplied with the post-flaw data 106 output from the flaw data generation unit 105 and the process flaw data 107 read from the process flaw data holding unit 111. Then, the flaw data integration unit 108 integrates (merges) the subsequent flaw data 106 and the process flaw data 107 to generate third flaw data (hereinafter referred to as integrated flaw data 109). Note that flaw data integration (merging) in the present embodiment is to generate flaw data that combines both the flaw data 106 and the process flaw data 107. However, in the case of this embodiment, although details will be described later, the scratch data integration unit 108, when the scratch data to be integrated is dummy scratch data, dummy scratch data that does not require the dummy scratch data. It is determined whether or not. If the flaw data integration unit 108 determines that the dummy flaw data is unnecessary dummy flaw data, the flaw data integration unit 108 excludes the dummy flaw data from the objects to be integrated as the integrated flaw data 109. A more detailed configuration and operation of the scratch data integration unit 108 will be described later. The integrated flaw data 109 generated by the flaw data integration unit 108 in this way is sent to the integrated flaw data holding unit 112 and held therein.

統合キズデータ保持部112は、画像処理部110からの要求に応じて、保持している統合キズデータ109を読み出して画像処理部110に供給する。
画像処理部110は、統合キズデータ保持部112から読み出された統合キズデータ109を用いて、画像データ104のキズ画素に対するキズ補正処理を行う。具体的には、画像処理部110は、統合キズデータ109に含まれている位置情報(相対距離の情報)を基に、キズ画素の位置(画像データ104の中のキズ画素の画素データ)を特定する。さらに、画像処理部110は、統合キズデータ109に含まれている、キズ画素の状態や種類、ISO感度、シャッター速度、温度等のパラメータの情報を用いて、キズ画素に対してキズ補間処理を行うかどうかを判断する。そして、画像処理部110は、特定したキズ画素についてキズ補間処理を行うと判断した場合、そのキズ画素の画素データに対してキズ補正処理を行う。具体的には、画像処理部110は、撮像センサに二次元配置されている各画素のなかで、キズ画素に対する周囲の画素の画素データ(キズ画素の周囲の正常な画素の画素データ)を用いて、そのキズ画素に対する補間等を行うようなキズ補正処理を行う。このようにして画像処理部110によりキズ補正等の画像処理がなされた画像データは、図示しない表示部や符号化部、記録部等に送られる。これら表示部や符号化部、記録部等の説明は省略する。
In response to a request from the image processing unit 110, the integrated scratch data holding unit 112 reads the stored integrated scratch data 109 and supplies it to the image processing unit 110.
The image processing unit 110 uses the integrated defect data 109 read from the integrated defect data holding unit 112 to perform a defect correction process on the defect pixels of the image data 104. Specifically, the image processing unit 110 determines the position of the scratch pixel (pixel data of the scratch pixel in the image data 104) based on the position information (relative distance information) included in the integrated scratch data 109. Identify. Further, the image processing unit 110 uses the information on parameters such as the state and type of the scratch pixel, ISO sensitivity, shutter speed, and temperature included in the integrated scratch data 109 to perform scratch interpolation processing on the scratch pixel. Determine whether to do it. When the image processing unit 110 determines to perform the scratch interpolation process on the specified scratch pixel, the image processing unit 110 performs a scratch correction process on the pixel data of the scratch pixel. Specifically, the image processing unit 110 uses pixel data of pixels around the flaw pixel (pixel data of normal pixels around the flaw pixel) among the pixels two-dimensionally arranged in the imaging sensor. Then, a defect correction process is performed so as to interpolate the defect pixel. The image data that has been subjected to image processing such as flaw correction by the image processing unit 110 in this way is sent to a display unit, encoding unit, recording unit, and the like (not shown). The description of the display unit, encoding unit, recording unit, etc. will be omitted.

図2は、図1のキズデータ統合部108の詳細な構成例を示す図である。
キズデータ統合部108は、距離更新部201、距離比較部202、統合対象選択部205、不要ダミーキズ判定部207を有して構成されている。
FIG. 2 is a diagram showing a detailed configuration example of the scratch data integration unit 108 in FIG.
The flaw data integration unit 108 includes a distance update unit 201, a distance comparison unit 202, an integration target selection unit 205, and an unnecessary dummy flaw determination unit 207.

距離更新部201には、前述のキズデータ生成部105にて生成された後キズデータ106と、工程キズデータ保持部111から読み出された工程キズデータ107とが、入力される。距離更新部201は、詳細は後述するが、距離比較部202による相対距離の比較結果に基づいて、後キズデータ106に含まれる相対距離と工程キズデータ107に含まれる相対距離の何れか一方に対して更新処理を行う。距離更新部201における相対距離の情報更新処理の詳細は後述する。距離更新部201により、何れか一方の相対距離が更新された後キズデータ203と工程キズデータ204は、統合対象選択部205と距離比較部202とに送られる。   The distance update unit 201 receives the post-scratch data 106 generated by the above-described scratch data generation unit 105 and the process scratch data 107 read from the process scratch data holding unit 111. Although details will be described later, the distance update unit 201 determines whether the relative distance included in the post-scratch data 106 or the relative distance included in the process scratch data 107 is based on the relative distance comparison result by the distance comparison unit 202. The update process is performed for it. Details of the relative distance information update processing in the distance update unit 201 will be described later. After any one of the relative distances is updated by the distance update unit 201, the scratch data 203 and the process scratch data 204 are sent to the integration target selection unit 205 and the distance comparison unit 202.

距離比較部202は、距離更新部201から供給された後キズデータ203に含まれる相対距離と工程キズデータ204に含まれる相対距離とを比較する。距離比較部202における相対距離の比較処理の詳細は後述する。距離比較部202は、それら相対距離の比較結果の情報を、統合対象選択部205と不要ダミーキズ判定部207とに送り、また、距離更新部201にフィードバックする。   The distance comparison unit 202 compares the relative distance included in the post-scratch data 203 supplied from the distance update unit 201 with the relative distance included in the process scratch data 204. Details of the relative distance comparison processing in the distance comparison unit 202 will be described later. The distance comparison unit 202 sends information on the comparison results of the relative distances to the integration target selection unit 205 and the unnecessary dummy scratch determination unit 207, and feeds back the information to the distance update unit 201.

統合対象選択部205は、距離比較部202からの比較結果の情報に基づき、距離更新部201から供給された後キズデータ203と工程キズデータ204を適宜選択して、統合対象キズデータ206として出力する。本実施形態の場合、統合対象選択部205が統合処理手段に相当し、キズデータ統合部108から出力される統合キズデータ109は、統合対象選択部205により選出された統合対象キズデータ206により生成されることになる。ただし、本実施形態の場合、統合対象選択部205から選出された統合対象キズデータ206がダミーキズデータである場合には、後述する不要ダミーキズ判定部207において、そのダミーキズデータが不要なダミーキズデータであるか否か判定される。統合対象選択部205における統合対象キズデータ206の選出処理の詳細は後述する。統合対象選択部205により選出された統合対象キズデータ206は、不要ダミーキズ判定部207に送られる。   The integration target selection unit 205 appropriately selects the post-scratch data 203 and the process scratch data 204 supplied from the distance update unit 201 based on the information of the comparison result from the distance comparison unit 202 and outputs it as the integration target scratch data 206. To do. In the present embodiment, the integration target selection unit 205 corresponds to an integration processing unit, and the integrated scratch data 109 output from the scratch data integration unit 108 is generated by the integration target scratch data 206 selected by the integration target selection unit 205. Will be. However, in the case of this embodiment, when the integration target scratch data 206 selected from the integration target selection unit 205 is dummy scratch data, an unnecessary dummy scratch determination unit 207 to be described later uses the dummy scratch data that does not require the dummy scratch data. It is determined whether it is data. Details of the selection process of the integration target scratch data 206 in the integration target selection unit 205 will be described later. The integration target scratch data 206 selected by the integration target selection unit 205 is sent to the unnecessary dummy scratch determination unit 207.

不要ダミーキズ判定部207は、距離比較部202による比較結果の情報と、統合対象選択部205により選出された統合対象キズデータ206に含まれる情報とを基に、その統合対象キズデータ206が統合後に不要なダミーキズデータであるか否か判定する。そして、不要ダミーキズ判定部207は、統合対象キズデータ206が不要なダミーキズデータであると判定した場合には、その統合対象キズデータ206(ダミーキズデータ)を、統合対象キズデータから除外する。不要ダミーキズ判定部207における判定処理及び不要ダミーキズデータの除外処理の詳細は後述する。この不要ダミーキズ判定部207により除外されなかった全ての統合対象キズデータが、統合キズデータ109として、図2のキズデータ統合部108から出力され、図1の統合キズデータ保持部112に保持される。   The unnecessary dummy scratch determination unit 207, after the integration target scratch data 206 is integrated based on the information of the comparison result by the distance comparison unit 202 and the information included in the integration target scratch data 206 selected by the integration target selection unit 205. It is determined whether the data is unnecessary dummy scratch data. When the unnecessary dummy flaw determination unit 207 determines that the integration target flaw data 206 is unnecessary dummy flaw data, the unnecessary dummy flaw data 206 excludes the integration target flaw data 206 (dummy flaw data) from the integration target flaw data. Details of the determination process in the unnecessary dummy defect determination unit 207 and the process of excluding unnecessary dummy defect data will be described later. All the integration target flaw data that has not been excluded by the unnecessary dummy flaw determination unit 207 is output from the flaw data integration unit 108 in FIG. 2 as the integrated flaw data 109 and held in the integrated flaw data holding unit 112 in FIG. .

図3は、図2に示したキズデータ統合部108で行われる処理のフローチャートである。図3のフローチャートに示した処理は、本実施形態に係るプログラムを、例えばCPUが実行することにより実現されてもよい。本実施形態に係るプログラムは、例えば不図示のROM等に予め用意されていてもよく、また不図示の外部記憶媒体から読み出されたり、不図示のインターネット等のネットワークからダウンロードされたりして、不図示のRAM等にロードされてもよい。これらのことは後述する他のフローチャートにおいても同様である。なお、図3の各処理のステップS301〜ステップS314はS301〜S314と略記する。また、以下の説明では、後キズデータ106(203)をキズデータA、その相対距離を相対距離aとし、工程キズデータ107(204)をキズデータB、その距離情報を相対距離b、統合キズデータ109をキズデータMとする。   FIG. 3 is a flowchart of processing performed by the scratch data integration unit 108 shown in FIG. The processing illustrated in the flowchart of FIG. 3 may be realized by, for example, the CPU executing the program according to the present embodiment. The program according to the present embodiment may be prepared in advance in a ROM (not shown), for example, or read from an external storage medium (not shown) or downloaded from a network such as the Internet (not shown). You may load to RAM etc. which are not illustrated. The same applies to other flowcharts described later. Note that steps S301 to S314 of each process in FIG. 3 are abbreviated as S301 to S314. In the following description, the back scratch data 106 (203) is the scratch data A, the relative distance is the relative distance a, the process scratch data 107 (204) is the scratch data B, the distance information is the relative distance b, and the integrated scratch. The data 109 is set as scratch data M.

キズデータ統合部108は、S301においてキズデータA(後キズデータ106)とキズデータB(工程キズデータ107)とが入力されると、それらキズデータA,Bを、距離更新部201を介して距離比較部202に送る。S301の後、キズデータ統合部108は、S302に処理を進める。   When the scratch data A (post-scratch data 106) and the scratch data B (process scratch data 107) are input in S301, the scratch data integration unit 108 receives the scratch data A and B via the distance update unit 201. The data is sent to the distance comparison unit 202. After S301, the scratch data integration unit 108 proceeds to S302.

S302では、距離比較部202は、キズデータAの相対距離aと、キズデータBの相対距離bとを比較し、相対距離aが相対距離b以下であるか否か判定する。距離比較部202において相対距離aが相対距離b以下であると判定された場合(Yes)、キズデータ統合部108の処理は、S303に進む。一方、距離比較部202において相対距離aが相対距離bより大きいと判定された場合(No)、キズデータ統合部108の処理は、S304に進む。S303とS304は、統合対象選択部205により行われる処理である。   In S302, the distance comparison unit 202 compares the relative distance a of the scratch data A with the relative distance b of the scratch data B, and determines whether the relative distance a is equal to or less than the relative distance b. When the distance comparison unit 202 determines that the relative distance a is equal to or less than the relative distance b (Yes), the process of the scratch data integration unit 108 proceeds to S303. On the other hand, when the distance comparison unit 202 determines that the relative distance a is greater than the relative distance b (No), the process of the scratch data integration unit 108 proceeds to S304. S 303 and S 304 are processes performed by the integration target selection unit 205.

S303では、統合対象選択部205は、キズデータAを統合対象キズデータとして選択し、一方、S304では、統合対象選択部205は、キズデータBを統合対象キズデータとして選択する。これらS303、S304の後、キズデータ統合部108は、S305に処理を進める。S305は、不要ダミーキズ判定部207により行われる処理である。   In S303, the integration target selection unit 205 selects the scratch data A as the integration target scratch data, while in S304, the integration target selection unit 205 selects the scratch data B as the integration target scratch data. After these S303 and S304, the scratch data integration unit 108 proceeds to S305. S305 is processing performed by the unnecessary dummy scratch determination unit 207.

S305では、不要ダミーキズ判定部207は、距離比較部202による比較結果は相対距離aと相対距離bが等しい距離(同一距離)であったかどうか判定する。不要ダミーキズ判定部207は、相対距離aと相対距離bが等しい距離であった場合(Yes)にはS308に処理を進める。一方、不要ダミーキズ判定部207は、相対距離aと相対距離bが異なる距離であった場合(No)にはS306に処理を進める。   In S305, the unnecessary dummy scratch determination unit 207 determines whether the comparison result by the distance comparison unit 202 is the same distance (the same distance) between the relative distance a and the relative distance b. If the relative distance a and the relative distance b are equal (Yes), the unnecessary dummy scratch determination unit 207 advances the process to S308. On the other hand, if the relative distance a and the relative distance b are different (No), the unnecessary dummy scratch determination unit 207 advances the process to S306.

S306では、不要ダミーキズ判定部207は、S303又はS304で選択された統合対象キズデータがダミーキズデータであるか否かを判定する。不要ダミーキズ判定部207は、統合対象キズデータがダミーキズデータである場合(Yes)にはS307に処理を進め、一方、ダミーキズデータでない場合(No)にはS308に処理を進める。   In S306, the unnecessary dummy scratch determination unit 207 determines whether or not the integration target scratch data selected in S303 or S304 is dummy scratch data. The unnecessary dummy scratch determination unit 207 proceeds to S307 when the integration target scratch data is dummy scratch data (Yes), and proceeds to S308 when it is not dummy scratch data (No).

S307では、不要ダミーキズ判定部207は、S303又はS304で選択された統合対象キズデータ(つまりダミーキズデータ)を、統合対象キズデータとして出力せずに破棄する。S307の後、キズデータ統合部108は、S309に処理を進める。   In S307, the unnecessary dummy scratch determination unit 207 discards the integration target scratch data selected in S303 or S304 (that is, dummy scratch data) without outputting the integration target scratch data. After S307, the scratch data integration unit 108 advances the process to S309.

S308では、不要ダミーキズ判定部207は、S303又はS304で選択された統合対象キズデータ(つまりダミーキズデータではないキズデータ)を、統合対象キズデータとして残して出力する。S308の後、キズデータ統合部108は、S309に処理を進める。   In S308, the unnecessary dummy flaw determination unit 207 outputs the integration target flaw data selected in S303 or S304 (that is, flaw data that is not dummy flaw data) while leaving it as integration target flaw data. After S308, the scratch data integration unit 108 advances the process to S309.

S309では、キズデータ統合部108は、全てのキズデータA及びBに対する統合処理が完了したか否かを判定する。キズデータ統合部108は、全てのキズデータA,Bに対する統合処理が完了したと判定した場合(Yes)には図3のフローチャートの処理を終了する。一方、キズデータ統合部108は、全てのキズデータA,Bに対する統合処理が完了していない(キズデータが未だ残っている)と判定した場合(No)には、S310の処理に進む。S310は、距離更新部201にて行われる処理である。   In S309, the scratch data integration unit 108 determines whether the integration processing for all the scratch data A and B is completed. If the scratch data integration unit 108 determines that the integration processing for all the scratch data A and B has been completed (Yes), the processing of the flowchart of FIG. 3 ends. On the other hand, if the flaw data integration unit 108 determines that the integration process for all the flaw data A and B has not been completed (no flaw data still remains) (No), the process proceeds to S310. S310 is a process performed by the distance update unit 201.

S310では、距離更新部201は、距離比較部202による比較結果は相対距離aが相対距離b以下であったかどうか判定する。距離更新部201は、相対距離aが相対距離b以下であった場合(Yes)には、S311に処理を進める。一方、距離更新部201は、相対距離aが相対距離bより大きかった場合(No)には、S313に処理を進める。   In S310, the distance update unit 201 determines whether the relative distance a is equal to or less than the relative distance b based on the comparison result by the distance comparison unit 202. If the relative distance a is equal to or less than the relative distance b (Yes), the distance update unit 201 advances the process to S311. On the other hand, if the relative distance a is greater than the relative distance b (No), the distance update unit 201 advances the process to S313.

S311では、距離更新部201は、S302〜S304で統合対象として選択されなかった方のキズデータの相対距離を、統合対象として選択されたキズデータの相対距離分だけ差し引いた値により更新する。すなわち、S311に進んだ場合、相対距離が大きかったために統合対象として選択されなかった方のキズデータはキズデータBであり、一方、相対距離が小さいため選択された統合対象キズデータはキズデータAである。したがって、この場合の距離更新部201は、キズデータBの相対距離bの値を、キズデータAの相対距離aの値分だけ差し引いた値により更新する。S311の後、キズデータ統合部108は、S312に処理を進める。S312では、キズデータ統合部108は、次のキズデータ(この場合は次のキズデータA)が入力されて、このキズデータAを、距離更新部201を介して距離比較部202に送る。S312の後、キズデータ統合部108は、S302の処理に戻る。   In S <b> 311, the distance update unit 201 updates the relative distance of the scratch data that has not been selected as the integration target in S <b> 302 to S <b> 304 by a value obtained by subtracting the relative distance of the scratch data selected as the integration target. That is, when the process proceeds to S311, the flaw data that is not selected as the integration target because the relative distance is large is the flaw data B, while the integration target flaw data that is selected because the relative distance is small is the flaw data A. It is. Accordingly, the distance updating unit 201 in this case updates the value of the relative distance b of the scratch data B by a value obtained by subtracting the value of the relative distance a of the scratch data A. After S311, the scratch data integration unit 108 advances the process to S312. In S <b> 312, the scratch data integration unit 108 receives the next scratch data (in this case, the next scratch data A), and sends the scratch data A to the distance comparison unit 202 via the distance update unit 201. After S312, the scratch data integration unit 108 returns to the process of S302.

S313では、距離更新部201は、S302〜S304で統合対象として選択されなかった方のキズデータの相対距離を、統合対象として選択されたキズデータの相対距離分だけ差し引いた値で更新する。すなわち、S313に進んだ場合、統合対象として選択されなかったのはキズデータAであり、一方、選択された統合対象キズデータはキズデータBである。したがって、この場合の距離更新部201は、キズデータAの相対距離aの値を、キズデータBの相対距離bの分だけ差し引いた値により更新する。S313の後、キズデータ統合部108は、S314に処理を進める。S314では、キズデータ統合部108は、次のキズデータ(この場合は次のキズデータB)が入力されて、このキズデータBを、距離更新部201を介して距離比較部202に送る。S314の後、キズデータ統合部108は、S302の処理に戻る。   In S313, the distance update unit 201 updates the relative distance of the scratch data that has not been selected as the integration target in S302 to S304 with a value obtained by subtracting the relative distance of the scratch data selected as the integration target. That is, when the process proceeds to S313, it is the scratch data A that has not been selected as the integration target, and the selected integration target scratch data is the scratch data B. Accordingly, the distance update unit 201 in this case updates the value of the relative distance a of the scratch data A by a value obtained by subtracting the relative distance b of the scratch data B. After S313, the scratch data integration unit 108 advances the process to S314. In S <b> 314, the scratch data integration unit 108 receives the next scratch data (in this case, the next scratch data B), and sends the scratch data B to the distance comparison unit 202 via the distance update unit 201. After S314, the scratch data integration unit 108 returns to the process of S302.

なお、S305とS306の処理は入れ替えられてもよい。この場合、S305において統合対象キズデータがダミーキズデータであるか否かの判定が行われ、S306において相対距離aと相対距離bの値が等しいか否かの判定が行われる。そして、S305において、統合対象キズデータがダミーキズデータであると判定された場合にS306の処理に進み、一方、ダミーキズデータでないと判定された場合にS308の処理に進む。また、S306において、相対距離aと相対距離bの値が等しい場合にはS308の処理に進み、等しくない(異なる)場合にはS307の処理に進む。   Note that the processes of S305 and S306 may be interchanged. In this case, in S305, it is determined whether the integration target scratch data is dummy scratch data, and in S306, it is determined whether the relative distance a and the relative distance b are equal. In S305, if it is determined that the integration target scratch data is dummy scratch data, the process proceeds to S306. On the other hand, if it is determined that the integration target scratch data is not dummy scratch data, the process proceeds to S308. If the relative distance a and the relative distance b are equal in S306, the process proceeds to S308, and if they are not equal (different), the process proceeds to S307.

図4(a),図4(b)は、キズデータ統合部108で行われる統合処理前後のキズデータの状態の一例を示す図である。
図4(a)は、撮像センサの二次元画素配置に対応させた状態で、キズデータAのキズ画素xAの位置と、キズデータBのキズ画素xBの位置と、統合キズデータMの統合キズ画素xA,xBの位置の例を表している。また、図4(a)の例には、ダミーキズデータのダミーキズ画素dの位置も含まれている。
4A and 4B are diagrams illustrating an example of the state of scratch data before and after the integration process performed by the scratch data integration unit 108. FIG.
4A shows the position of the scratch pixel xA of the scratch data A, the position of the scratch pixel xB of the scratch data B, and the integrated scratch of the integrated scratch data M in a state corresponding to the two-dimensional pixel arrangement of the image sensor. An example of the positions of the pixels xA and xB is shown. In addition, the example of FIG. 4A includes the position of the dummy defect pixel d of the dummy defect data.

図4(b)は、キズデータA,キズデータB,統合キズデータMの各キズ画素xA,xB,dにそれぞれ対応したキズデータの一例を表している。図4(b)の例えばキズデータ"03_A"は、キズ画素の種別が後キズ画素であり、相対距離aが前述したラスタスキャン順において直前に読み出されたキズ画素との間で画素数"3"に相当する距離であることを示している。同様に、図4(b)の例えばキズデータ"01_B"は、キズ画素の種別が工程キズ画素であり、相対距離bが前述のラスタスキャン順において直前に読み出されたキズ画素との間で画素数"1"に相当する距離であることを示している。また、図4(b)の例えばキズデータ"15_D"は、キズ画素の種別がダミーキズ画素であり、相対距離がラスタスキャン順において直前に読み出されたキズ画素との間で画素数"15"に相当する距離であることを示している。他の各キズデータについても同様である。なお、前述したラスタスキャン順で最初のキズ画素の相対距離は、ラスタスキャン順に読み出される最初の画素(始点座標の画素)からの距離により表される。   FIG. 4B shows an example of scratch data corresponding to each of the scratch pixels xA, xB, and d of the scratch data A, the scratch data B, and the integrated scratch data M. For example, in the scratch data “03_A” in FIG. 4B, the type of the scratch pixel is a post-scratch pixel, and the relative distance a is the number of pixels between the scratch pixel read immediately before in the raster scan order described above. The distance is equivalent to 3 ″. Similarly, for example, the scratch data “01_B” in FIG. 4B has a scratch pixel type of process scratch pixel and a relative distance b between the scratch pixel read immediately before in the raster scan order described above. This indicates a distance corresponding to the number of pixels “1”. For example, in the scratch data “15_D” in FIG. 4B, the scratch pixel type is a dummy scratch pixel, and the relative distance is the number of pixels “15” with respect to the scratch pixel read immediately before in the raster scan order. The distance is equivalent to. The same applies to the other scratch data. Note that the relative distance of the first scratch pixel in the raster scan order described above is represented by the distance from the first pixel (the pixel of the start point coordinate) read in the raster scan order.

これら図4(a),図4(b)に示すように、統合キズデータMのキズ画素xA,xB,dは、キズデータAのキズ画素xAと、キズデータBのキズ画素xBと、ダミーキズデータのダミーキズ画素dとが統合されたものとなる。   As shown in FIGS. 4A and 4B, the flaw pixels xA, xB, and d of the integrated flaw data M are a flaw pixel xA of the flaw data A, a flaw pixel xB of the flaw data B, and a dummy. The dummy defect pixel d of the defect data is integrated.

図5(a)〜図5(c)は、図4(a)及び図4(b)に示したキズデータの例を挙げて、キズデータ統合部108で行われる相対距離の情報更新処理の一例の説明に用いる図である。
図5(a)はキズデータAの各キズ画素に対応したキズデータ例を、図5(b)はキズデータBの各工程キズ画素に対応したキズデータ例を、図5(c)は統合キズデータMの各統合キズ画素に対応したキズデータ例を示している。これら各キズデータには、ダミーキズデータのダミーキズ画素に対応したキズデータも含まれている。図5(a)〜図5(c)の各キズデータの並び順は、前述したラスタスキャン順に対応している。また、図5(a)〜図5(c)の例えばキズデータ"03_A","01_B","15_D"等は、図4(b)で説明したのと同様である。
5 (a) to 5 (c) show examples of the flaw data shown in FIG. 4 (a) and FIG. 4 (b), and the relative distance information update processing performed by the flaw data integration unit 108 is illustrated. It is a figure used for description of an example.
5A is an example of scratch data corresponding to each scratch pixel of the scratch data A, FIG. 5B is a scratch data example corresponding to each process scratch pixel of the scratch data B, and FIG. 5C is an integration. An example of scratch data corresponding to each integrated scratch pixel of the scratch data M is shown. Each flaw data includes flaw data corresponding to the dummy flaw pixel of the dummy flaw data. The order of arrangement of the flaw data in FIGS. 5A to 5C corresponds to the raster scan order described above. For example, the scratch data “03_A”, “01_B”, “15_D”, and the like in FIGS. 5A to 5C are the same as those described with reference to FIG.

キズデータ統合部108では、先ず、キズデータAの先頭のキズデータ501の相対距離と、キズデータBの先頭のキズデータ502の相対距離とを、距離比較部202により比較する。そして、キズデータ統合部108は、距離比較部202による比較の結果、相対距離が小さい(短い)方のキズデータを、統合対象選択部205により統合対象キズデータとして選択する。図4(a),図4(b)及び図5(a)〜図5(c)の例では、キズデータAの先頭のキズデータ501(03_A)は、相対距離の値が"03"(画素数"3"に相当する距離)である。一方、キズデータBの先頭のキズデータ502(01_B)は、相対距離の値が"01"(画素数"1"に相当する距離)である。そして、これらの相対距離を比較すると、相対距離が小さいのはキズデータ502(01_B)の方である。このため、キズデータ統合部108では、統合対象選択部205において、キズデータBのキズデータ502(01_B)を、統合対象キズデータとして選択する。また、この統合対象キズデータとして選択されたキズデータ502は、キズデータBであってダミーキズデータではない。このため、不要ダミーキズ判定部207は、このキズデータ502を統合キズデータMとして出力する。これにより、統合キズデータMの先頭のキズデータは、キズデータ502(01_B)となる。   In the scratch data integration unit 108, first, the distance comparison unit 202 compares the relative distance of the scratch data 501 at the head of the scratch data A and the relative distance of the scratch data 502 at the head of the scratch data B. Then, as a result of the comparison by the distance comparison unit 202, the scratch data integration unit 108 selects the scratch data having a smaller (shorter) relative distance as the integration target scratch data by the integration target selection unit 205. In the examples of FIGS. 4A, 4B, and 5A to 5C, the scratch data 501 (03_A) at the head of the scratch data A has a relative distance value of “03” ( Distance corresponding to the number of pixels “3”). On the other hand, the first scratch data 502 (01_B) of the scratch data B has a relative distance value of “01” (a distance corresponding to the number of pixels “1”). When these relative distances are compared, the scratch data 502 (01_B) has the smaller relative distance. Therefore, in the scratch data integration unit 108, the integration target selection unit 205 selects the scratch data 502 (01_B) of the scratch data B as the integration target scratch data. Further, the scratch data 502 selected as the integration target scratch data is the scratch data B and not the dummy scratch data. For this reason, the unnecessary dummy scratch determination unit 207 outputs the scratch data 502 as the integrated scratch data M. Thereby, the first flaw data of the integrated flaw data M becomes flaw data 502 (01_B).

次に、キズデータ統合部108は、統合対象として選択された側(この場合はキズデータB側)については、ラスタスキャン順の次のキズデータを読み込むようにする。すなわち、図4(a),図4(b)及び図5(b)の例では、統合対象として選択されたキズデータBにおいてラスタスキャン順で次のキズデータ504は、キズデータ"05_B"となる。一方、キズデータ統合部108は、統合対象として選択されなかった側(この場合はキズデータA側)のキズデータの相対距離を、統合対象として選択されたキズデータの相対距離との差分の値により更新する。この例では、統合対象として選択されなかったキズデータAのキズデータ501(03_A)は相対距離の値が"03"で、統合対象として選択されたキズデータBのキズデータ502(01_B)は相対距離の値が"01"である。そして、それらキズデータ501(03_A)の相対距離の値"03"とキズデータ502(01_B)の相対距離の値"01"との差分は、"03"−"01"="02"となる。したがって、統合対象として選択されなかった側のキズデータAにおいて、ラスタスキャン順で次のキズデータ503は、キズデータ"02_A"に更新される。   Next, the flaw data integration unit 108 reads the next flaw data in the raster scan order for the side selected as the integration target (in this case, the flaw data B side). That is, in the example of FIGS. 4A, 4B, and 5B, the next scratch data 504 in the raster scan order in the scratch data B selected as the integration target is the scratch data “05_B”. Become. On the other hand, the scratch data integration unit 108 calculates the difference value between the relative distance of the scratch data on the side not selected as the integration target (in this case, the scratch data A side) and the relative distance of the scratch data selected as the integration target. Update with In this example, the flaw data 501 (03_A) of the flaw data A that is not selected as the integration target has a relative distance value of “03”, and the flaw data 502 (01_B) of the flaw data B that is selected as the integration target is relative. The distance value is “01”. The difference between the relative distance value “03” of the scratch data 501 (03_A) and the relative distance value “01” of the scratch data 502 (01_B) is “03” − “01” = “02”. . Therefore, in the scratch data A on the side not selected as the integration target, the next scratch data 503 in the raster scan order is updated to the scratch data “02_A”.

以下同様の処理が繰り返され、例えば、距離比較部202によるキズデータAのキズデータ505(13_A)の相対距離とキズデータBのキズデータ506(00_D)の相対距離の比較が行われる段階まで進んだとする。図5(a),図5(b)の例では、キズデータ505(13_A)の相対距離の値が"13"で、キズデータ506(00_D)の相対距離の値が"00"である。このため、統合対象選択部205では、キズデータ506(00_D)が統合対象キズデータとして選択されることになる。また、これらキズデータ505(13_A)とキズデータ506(00_D)の相対距離の値は"13"と"00"であり等しくない。ただし、キズデータ506は、統合対象選択部205において統合対象キズデータとして選択されたものではあるが、ダミーキズデータ"00_D"である。したがって、この場合、不要ダミーキズ判定部207は、ダミーキズデータ"00_D"を統合せずに破棄して出力無し507とする。   Thereafter, the same processing is repeated, and for example, the process proceeds to a stage where the relative distance of the scratch data 505 (13_A) of the scratch data A and the relative distance of the scratch data 506 (00_D) of the scratch data B is compared by the distance comparison unit 202. Suppose. In the example of FIGS. 5A and 5B, the relative distance value of the scratch data 505 (13_A) is “13”, and the relative distance value of the scratch data 506 (00_D) is “00”. Therefore, the integration target selection unit 205 selects the scratch data 506 (00_D) as the integration target scratch data. The relative distance values of the scratch data 505 (13_A) and the scratch data 506 (00_D) are “13” and “00”, which are not equal. However, the scratch data 506 is dummy scratch data “00_D” although it is selected as the integration target scratch data by the integration target selection unit 205. Therefore, in this case, the unnecessary dummy scratch determination unit 207 discards the dummy scratch data “00_D” without integrating them, and sets the output 507 as “no output”.

その後は、前述同様に、キズデータ統合部108は、統合対象に選択されなかった側(この場合はキズデータB側)については、ラスタスキャン順の次のキズデータを読み込むようにする。すなわち、統合対象に選択された側のキズデータBにおいて、ラスタスキャン順で次のキズデータ509は、キズデータ"15_B"となる。一方、キズデータ統合部108は、統合対象に選択されなかったキズデータAのキズデータ508は、統合対象に選択された側のキズデータ506(00_D)の相対距離の値"00"との差分の値(13−00=13)により更新されたデータとなされる。この例の場合、統合対象に選択されなかったキズデータAのキズデータ505の相対距離の値は"13"で、統合対象に選択されたキズデータBのキズデータ506の相対距離の値は"00"である。したがって、統合対象に選択されなかった側のキズデータAにおいて、ラスタスキャン順で次のキズデータ508は、キズデータ"13_A"となる。これ以降は前述同様であるためその説明は省略する。   Thereafter, as described above, the flaw data integration unit 108 reads the next flaw data in the raster scan order for the side not selected as the integration target (in this case, the flaw data B side). In other words, in the flaw data B on the side selected as the integration target, the next flaw data 509 in the raster scan order becomes flaw data “15_B”. On the other hand, the scratch data integration unit 108 determines that the scratch data 508 of the scratch data A that has not been selected as the integration target is a difference from the relative distance value “00” of the scratch data 506 (00_D) on the side selected as the integration target. (13−00 = 13) is used as updated data. In this example, the value of the relative distance of the scratch data 505 of the scratch data A not selected as the integration target is “13”, and the value of the relative distance of the scratch data 506 of the scratch data B selected as the integration target is “ 00 ". Therefore, in the scratch data A on the side not selected as the integration target, the next scratch data 508 in the raster scan order becomes the scratch data “13_A”. Since the subsequent steps are the same as described above, the description thereof is omitted.

以上説明したように、第1の実施形態では、撮像センサのキズ画素位置がキズ画素間の相対距離で表され、キズ画素間の相対距離が所定ビット数で表せる有限範囲を超える場合にはその有限範囲内の相対距離で表せるダミーキズ画素が挿入される。また、本実施形態の撮像装置は、キズデータAとキズデータBの相対距離の比較結果に基づいて、統合対象キズデータを選択し、さらに統合対象キズデータがダミーキズデータかどうか判定する。そして、本実施形態の撮像装置は、キズデータAとキズデータBの相対距離が等しくなく、統合対象キズデータがダミーキズデータである場合には、ダミーキズデータを統合キズデータMとして統合せずに破棄するようにしている。これにより、本実施形態の撮像装置では、例えば、相対距離による位置情報を絶対位置(座標位置)に展開するような処理を要することなく、不要なダミーキズ画素を残さずにキズデータの統合が可能となっている。   As described above, in the first embodiment, the flaw pixel position of the image sensor is represented by the relative distance between the flaw pixels, and when the relative distance between the flaw pixels exceeds a finite range that can be represented by a predetermined number of bits, A dummy scratch pixel that can be expressed by a relative distance within a finite range is inserted. Further, the imaging apparatus of the present embodiment selects the integration target scratch data based on the comparison result of the relative distance between the scratch data A and the scratch data B, and further determines whether the integration target scratch data is dummy scratch data. The imaging apparatus according to the present embodiment does not integrate the dummy scratch data as the integrated scratch data M when the relative distance between the scratch data A and the scratch data B is not equal and the integration target scratch data is dummy scratch data. I am trying to destroy it. As a result, in the imaging apparatus of the present embodiment, for example, it is possible to integrate defect data without leaving unnecessary dummy defect pixels without requiring processing that expands position information based on relative distances to absolute positions (coordinate positions). It has become.

<第2の実施形態>
以下、第2の実施形態について説明する。なお、第2の実施形態において、撮像装置の概略構成は図1と同様であり、それらの説明は省略する。
第2の実施形態では、ダミーキズデータの破棄を行った場合に、相対距離の情報更新を、ダミーキズデータの破棄直前のキズ画素位置に基づいて行うことが、第1の実施形態とは異なる。
<Second Embodiment>
Hereinafter, the second embodiment will be described. Note that, in the second embodiment, the schematic configuration of the imaging apparatus is the same as that in FIG. 1, and a description thereof will be omitted.
In the second embodiment, when the dummy scratch data is discarded, the relative distance information is updated based on the scratch pixel position immediately before the dummy scratch data is discarded, which is different from the first embodiment. .

図6は、第2の実施形態の場合のキズデータ統合部108の詳細な構成例を示す図である。なお、図6において、図2の構成と概ね同じものには、図2の各参照符号と同じ参照符号を付している。例えば、距離更新部201、距離比較部202、統合対象選択部205、不要ダミーキズ判定部207、後キズデータ106及び203、工程キズデータ107及び204、統合対象キズデータ206、統合キズデータ109は、図2の例と同様である。   FIG. 6 is a diagram illustrating a detailed configuration example of the flaw data integration unit 108 in the case of the second embodiment. In FIG. 6, the same reference numerals as those in FIG. 2 are assigned to components that are substantially the same as those in FIG. For example, the distance update unit 201, the distance comparison unit 202, the integration target selection unit 205, the unnecessary dummy scratch determination unit 207, the post-scratch data 106 and 203, the process scratch data 107 and 204, the integration scratch data 206, and the integrated scratch data 109 are This is the same as the example of FIG.

図6の例において、距離情報保持部601は、不要ダミーキズ判定部207で統合対象キズデータ206が不要なダミーキズデータであると判定されて破棄された場合、その統合対象キズデータ206(ダミーキスデータ)に含まれる相対距離の情報を保持する。   In the example of FIG. 6, when the unnecessary dummy scratch determination unit 207 determines that the integration target scratch data 206 is unnecessary dummy scratch data and is discarded, the distance information holding unit 601 deletes the integration target scratch data 206 (dummy scratch data). Data) contains relative distance information.

距離調整部602は、距離情報保持部601に保持されている相対距離の情報(不要ダミーキズ判定部207で破棄されたダミーキズデータの相対距離の情報)を基に、統合対象キズデータ206の相対距離を調整する。具体的には、距離調整部602は、統合対象キズデータ206の相対距離の値に対し、直前の統合処理の際に距離情報保持部601に保持された相対距離の値(つまりダミーキズデータの相対距離の値)を加算するような調整処理を行う。なお、ここでは直前に破棄されたキズデータの相対距離の値を加算する調整処理を例に挙げているが、その他にも、他の調整方法を用いてもよい。第2の実施形態の場合、距離調整部602により相対距離の調整がなされた後の統合対象キズデータ603が、不要ダミーキズ判定部207に供給される。   The distance adjustment unit 602 uses the relative distance information held in the distance information holding unit 601 (the information on the relative distance of the dummy flaw data discarded by the unnecessary dummy flaw determination unit 207) to determine the relative of the integration target flaw data 206. Adjust the distance. Specifically, the distance adjustment unit 602 compares the relative distance value of the integration target scratch data 206 with respect to the relative distance value (that is, the dummy scratch data of the dummy scratch data stored in the distance information storage unit 601 in the previous integration process). Adjustment processing is performed such that the value of the relative distance is added. Here, although the adjustment process of adding the value of the relative distance of the scratch data discarded immediately before is given as an example, other adjustment methods may be used. In the case of the second embodiment, the integration target scratch data 603 after the relative distance is adjusted by the distance adjustment unit 602 is supplied to the unnecessary dummy scratch determination unit 207.

図7は、第2の実施形態のキズデータ統合部108で行われる処理のフローチャートである。なお、図7のフローチャートにおいて、S301〜S314の各処理は、前述した図3のフローチャートのS301〜S314と同様の処理であるため、それらの説明は省略する。   FIG. 7 is a flowchart of processing performed by the flaw data integration unit 108 according to the second embodiment. In the flowchart of FIG. 7, the processes of S301 to S314 are the same as the processes of S301 to S314 of the flowchart of FIG.

第2の実施形態の場合、不要ダミーキズ判定部207は、S306において統合対象キズデータがダミーキズデータであると判定し、S307においてそのダミーキズデータを破棄した場合、S701の処理に進む。S701では、不要ダミーキズ判定部207は、そのダミーキズデータの相対距離の情報を距離情報保持部601に保持させる。   In the case of the second embodiment, the unnecessary dummy scratch determination unit 207 determines in S306 that the integration target scratch data is dummy scratch data. If the dummy scratch data is discarded in S307, the process proceeds to S701. In step S <b> 701, the unnecessary dummy scratch determination unit 207 causes the distance information holding unit 601 to hold information on the relative distance of the dummy scratch data.

また第2の実施形態のキズデータ統合部108において、S303とS304の後は、S702の処理に進む。S702の処理は距離調整部602において行われる処理である。S702では、距離調整部602は、距離情報保持部601に保持された情報を基に、直前の統合処理で出力無し(前述の図5(c)で例示したような出力無し507)になされたか否か判定する。すなわち、距離情報保持部601に相対距離の情報が保持されていれば、直前の統合処理が出力無しであったと判定できる。そして、距離調整部602は、直前の統合処理が出力無しであった場合(Yes)にはS703に処理を進める。一方、出力が有った場合(No)には、キズデータ統合部108の処理は前述したS305の処理に進む。   In the scratch data integration unit 108 of the second embodiment, after S303 and S304, the process proceeds to S702. The process of S702 is a process performed in the distance adjustment unit 602. In step S <b> 702, the distance adjusting unit 602 has made no output (no output 507 as illustrated in FIG. 5C above) in the previous integration process based on the information held in the distance information holding unit 601. Judge whether or not. That is, if relative distance information is held in the distance information holding unit 601, it can be determined that the previous integration process has not been output. Then, the distance adjustment unit 602 advances the process to S703 when the previous integration process is no output (Yes). On the other hand, when there is an output (No), the process of the scratch data integration unit 108 proceeds to the process of S305 described above.

S703では、距離調整部602は、距離情報保持部601に保持されている相対距離の値を、統合対象キズデータの相対距離に加算した後、S308に処理を進める。これ以降の処理は前述した図3のフローチャートと同様であるため説明を省略する。   In S703, the distance adjustment unit 602 adds the relative distance value held in the distance information holding unit 601 to the relative distance of the integration target scratch data, and then advances the process to S308. The subsequent processing is the same as that of the flowchart of FIG.

図8(a)と図8(b)は、第2の実施形態において、キズデータ統合部108で行われる統合処理前後のキズデータの状態の一例を示した図である。図8(a)は、前述した図4(a)と同様に、キズデータAのキズ画素xA、キズデータBのキズ画素xB、統合キズデータMの統合キズ画素xA,xB、ダミーキズデータのダミーキズ画素dの位置の例を表している。図8(b)は、前述の図4(b)と同様に、キズデータA,キズデータB,統合キズデータMの各キズ画素xA,xB,dにそれぞれ対応したキズデータの一例を表している。   FIGS. 8A and 8B are diagrams illustrating an example of the state of scratch data before and after the integration process performed by the scratch data integration unit 108 in the second embodiment. FIG. 8A shows the scratch pixel xA of the scratch data A, the scratch pixel xB of the scratch data B, the integrated scratch pixels xA and xB of the integrated scratch data M, and the dummy scratch data, as in FIG. 4A. An example of the position of the dummy scratch pixel d is shown. FIG. 8B shows an example of scratch data corresponding to each of the scratch pixels xA, xB, and d of the scratch data A, the scratch data B, and the integrated scratch data M, as in FIG. 4B. Yes.

第2の実施形態においても、前述同様に、図8(a),図8(b)に示した統合キズデータMのキズ画素xA,xB,dは、キズデータAのキズ画素xAとキズデータBのキズ画素xBとダミーキズデータのダミーキズ画素dとを統合したものとなる。各キズ画素xA,xB,d、各キズデータは図4(a),図4(b)で説明したものと同様であるため、詳細な説明は省略する。   Also in the second embodiment, the scratch pixels xA, xB, and d of the integrated scratch data M shown in FIGS. 8A and 8B are the scratch pixel xA and the scratch data of the scratch data A as described above. The B flaw pixel xB and the dummy flaw pixel d of the dummy flaw data are integrated. Since each flaw pixel xA, xB, d and each flaw data are the same as those described with reference to FIGS. 4A and 4B, detailed description thereof is omitted.

図9(a)〜図9(c)は、図8(a)及び図8(b)に示したキズデータの例において、第2の実施形態のキズデータ統合部108で行われる相対距離の調整処理と更新処理の一例の説明に用いる図である。図9(a)は、前述の図5(a)と同様に、キズデータAの各キズ画素に対応したキズデータ例を示している。また、図9(b)は、図5(b)と同様に、キズデータBの各工程キズ画素に対応したキズデータ例を、図9(c)は、図5(c)と同様に、統合キズデータMの各統合キズ画素に対応したキズデータ例を示している。これら各キズデータには、ダミーキズデータのダミーキズ画素に対応したキズデータも含まれている。   FIG. 9A to FIG. 9C show the relative distances performed by the flaw data integration unit 108 of the second embodiment in the flaw data example shown in FIG. 8A and FIG. 8B. It is a figure used for description of an example of an adjustment process and an update process. FIG. 9A shows an example of scratch data corresponding to each scratch pixel of the scratch data A, similarly to the above-described FIG. 9B shows an example of scratch data corresponding to each process scratch pixel of the scratch data B, as in FIG. 5B, and FIG. 9C shows a scratch data example similar to FIG. An example of flaw data corresponding to each integrated flaw pixel of the integrated flaw data M is shown. Each flaw data includes flaw data corresponding to the dummy flaw pixel of the dummy flaw data.

図9(a)〜図9(c)の例において、例えば、距離比較部202によるキズデータAのキズデータ901(13_D)の相対距離と、キズデータBのキズデータ902(15_D)の相対距離の比較が行われる段階まで進んでいるとする。この例の場合、キズデータAのキズデータ901(13_D)と、キズデータBのキズデータ902(15_D)とは、共にダミーキズデータである。またこの例の場合、キズデータ901(13_D)の相対距離の値が"13"で、キズデータ902(15_D)の相対距離の値が"15"であるため、統合対象選択部205では、キズデータ901(13_D)が統合対象キズデータとして選択される。ただし、キズデータ901(13_D)はダミーキズデータであり、また、キズデータ901(13_D)の相対距離とキズデータ902(15_D)の相対距離とは異なる。このため、不要ダミーキズ判定部207では、キズデータ901(13_D)が破棄されて出力無し903となされる。ここで、第2の実施形態の場合、不要ダミーキズ判定部207は、その破棄したダミーキズデータ(キズデータ901(13_D))の相対距離の値"13"の情報を、距離情報保持部601に保持させる。   In the example of FIGS. 9A to 9C, for example, the relative distance of the scratch data 901 (13_D) of the scratch data A and the relative distance of the scratch data 902 (15_D) of the scratch data B by the distance comparison unit 202. It is assumed that the process has been advanced to the stage where the comparison is made. In this example, the scratch data 901 (13_D) of the scratch data A and the scratch data 902 (15_D) of the scratch data B are both dummy scratch data. In this example, since the relative distance value of the scratch data 901 (13_D) is “13” and the relative distance value of the scratch data 902 (15_D) is “15”, the integration target selection unit 205 selects the scratch. Data 901 (13_D) is selected as integration target scratch data. However, the scratch data 901 (13_D) is dummy scratch data, and the relative distance of the scratch data 901 (13_D) is different from the relative distance of the scratch data 902 (15_D). For this reason, in the unnecessary dummy scratch determination unit 207, the scratch data 901 (13_D) is discarded and no output 903 is set. Here, in the case of the second embodiment, the unnecessary dummy scratch determination unit 207 sends the information of the relative distance value “13” of the discarded dummy scratch data (scratch data 901 (13_D)) to the distance information holding unit 601. Hold.

次の統合処理として、キズデータ統合部108では、距離比較部202によるキズデータAのキズデータ904(04_A)の相対距離と、キズデータBのキズデータ905(02_D)の相対距離との比較が行われる。この場合、キズデータ904(04_A)の相対距離の値が"04"で、キズデータ905(02_D)の相対距離の値が"02"であるため、統合対象選択部205では、キズデータ905(02_D)が統合対象キズデータとして選択される。ただしこの場合、直前の統合処理においてキズデータが破棄されて出力無し903となっている。このため、距離調整部602は、キズデータ905(02_D)の相対距離の値"02"に対し、直前に距離情報保持部601に保持されたキズデータ901(13_D)の相対距離の値"13"を加算した値"15"を、相対距離の情報とする。これにより、距離調整部602からは、キズデータ905(02_D)の相対距離が値"15"に調整された新たなキズデータ"15_D"が、統合対象キズデータとして不要ダミーキズ判定部207に送られる。このときの不要ダミーキズ判定部207は、距離調整部602による相対距離の調整がなされた後の統合対象キズデータ906(15_D)を、統合キズデータMとして出力する。   As the next integration process, the scratch data integration unit 108 compares the relative distance of the scratch data 904 (04_A) of the scratch data A with the relative distance of the scratch data 905 (02_D) of the scratch data B by the distance comparison unit 202. Done. In this case, since the relative distance value of the scratch data 904 (04_A) is “04” and the relative distance value of the scratch data 905 (02_D) is “02”, the integration target selection unit 205 selects the scratch data 905 ( 02_D) is selected as the integration target scratch data. However, in this case, the flaw data is discarded in the immediately preceding integration process, and no output 903 is obtained. Therefore, the distance adjustment unit 602 compares the relative distance value “13” of the scratch data 901 (13_D) held in the distance information holding unit 601 immediately before the relative distance value “02” of the scratch data 905 (02_D). The value obtained by adding “15” is used as information on the relative distance. Thereby, the new scratch data “15_D” in which the relative distance of the scratch data 905 (02_D) is adjusted to the value “15” is sent from the distance adjustment unit 602 to the unnecessary dummy scratch determination unit 207 as the integration target scratch data. . The unnecessary dummy scratch determination unit 207 at this time outputs the integration target scratch data 906 (15_D) after the relative distance is adjusted by the distance adjustment unit 602 as the integrated scratch data M.

その後、距離比較部202において、キズデータAのキズデータ907(12_A)の相対距離と、キズデータBのキズデータ908(13_D)の相対距離の比較が行われる段階まで進んだとする。また、直前の統合処理ではキズデータが破棄されて出力無しとなっており、距離情報保持部601には直前の距離情報として、例えばキズデータ909(02_D)の値"02"が保持されているとする。この例の場合、キズデータ907(12_A)の相対距離が"12"で、キズデータ908(13_D)の相対距離が"13"であるため、統合対象選択部205では、キズデータ907(12_A)が統合対象キズデータとして選択される。またこの例の場合、直前の統合処理ではキズデータが破棄されて出力無しとなっている。このため、距離調整部602は、キズデータ907(12_A)の相対距離の値"12"に対し、直前に距離情報保持部601に保持されたキズデータ909(02_D)の相対距離の値"02"を加算した値"14"を、相対距離の情報とする。これにより、距離調整部602からは、キズデータ907(12_A)の相対距離が値"14"に調整された新たなキズデータ"14_A"が、統合対象キズデータとして不要ダミーキズ判定部207に送られる。このときの不要ダミーキズ判定部207は、距離調整部602による相対距離の調整がなされた後の統合対象キズデータ910(14_A)を、統合キズデータMとして出力する。これ以降の説明は省略する。   Thereafter, it is assumed that the distance comparison unit 202 has advanced to a stage where the relative distance between the scratch data 907 (12_A) of the scratch data A and the relative distance of the scratch data 908 (13_D) of the scratch data B is compared. In the immediately preceding integration process, the scratch data is discarded and no output is output, and the distance information holding unit 601 holds, for example, the value “02” of the scratch data 909 (02_D) as the previous distance information. And In this example, since the relative distance of the scratch data 907 (12_A) is “12” and the relative distance of the scratch data 908 (13_D) is “13”, the integration target selection unit 205 selects the scratch data 907 (12_A). Are selected as integration target scratch data. In the case of this example, the flaw data is discarded in the previous integration process, and no output is made. Therefore, the distance adjustment unit 602 compares the relative distance value “12” of the scratch data 907 (12_A) with respect to the relative distance value “02” of the scratch data 909 (02_D) held in the distance information holding unit 601 immediately before. The value obtained by adding “14” is used as information on the relative distance. Thereby, the new scratch data “14_A” in which the relative distance of the scratch data 907 (12_A) is adjusted to the value “14” is sent from the distance adjustment unit 602 to the unnecessary dummy scratch determination unit 207 as the integration target scratch data. . The unnecessary dummy scratch determination unit 207 at this time outputs the integration target scratch data 910 (14_A) after the relative distance adjustment by the distance adjustment unit 602 is performed as the integrated scratch data M. The description after this is omitted.

以上説明したように、第2の実施形態では、統合処理の際にダミーキズデータが破棄された場合には、そのダミーキスデータの相対距離の情報を保持し、その保持した情報を用いて、次に選択された統合対象キズデータの相対距離の情報を調整している。これにより、第2の実施形態によれば、不要なダミーキズ画素を残さずにキズデータの統合が可能になるだけでなく、破棄されたダミーキズデータの相対距離を考慮した統合キズデータの生成が可能となる。   As described above, in the second embodiment, when the dummy scratch data is discarded during the integration process, the information on the relative distance of the dummy kiss data is retained, and the retained information is used. Next, the information on the relative distance of the selected integration target scratch data is adjusted. As a result, according to the second embodiment, not only the defect data can be integrated without leaving unnecessary dummy defect pixels, but also the integrated defect data can be generated in consideration of the relative distance of the discarded dummy defect data. It becomes possible.

<その他の実施形態>
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
<Other embodiments>
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

上述の実施形態は、何れも本発明を実施するにあたっての具体化の例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。即ち、本発明は、その技術思想、又はその主要な特徴から逸脱することなく、様々な形で実施することができる。   The above-described embodiments are merely examples of implementation in carrying out the present invention, and the technical scope of the present invention should not be construed as being limited thereto. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.

102 撮像素子、105 キズデータ生成部、108 キズデータ統合部、110 画像処理部、201 距離更新部、202 距離比較部、205 統合対象選択部、207 不要ダミーキズ判定部、601 距離情報保持部、602 距離調整部   102 Image sensor, 105 Scratch data generation unit, 108 Scratch data integration unit, 110 Image processing unit, 201 Distance update unit, 202 Distance comparison unit, 205 Integration target selection unit, 207 Unnecessary dummy scratch determination unit, 601 Distance information holding unit, 602 Distance adjustment unit

Claims (13)

不良画素の位置を不良画素間の有限の相対距離で各々表した第1,第2のキズデータを、第3のキズデータとして統合する統合処理手段と、
前記第3のキズデータが不良画素間を中継するために挿入されたダミーキズデータである場合、前記ダミーキズデータの前記相対距離と、直前に統合された第3のキズデータの前記相対距離とに基づいて、前記ダミーキズデータを前記第3のキズデータとして統合するか否か判定し、統合しないと判定した場合には前記ダミーキズデータを前記第3のキズデータから除外する除外手段と、
を有することを特徴とするデータ処理装置。
Integrated processing means for integrating the first and second flaw data, each representing the position of the defective pixel with a finite relative distance between the defective pixels, as third flaw data;
When the third flaw data is dummy flaw data inserted to relay between defective pixels, the relative distance of the dummy flaw data and the relative distance of the third flaw data integrated immediately before And determining whether to integrate the dummy flaw data as the third flaw data, and if it is determined not to integrate, an excluding means for excluding the dummy flaw data from the third flaw data;
A data processing apparatus comprising:
前記第1のキズデータは、撮像素子から入力された画像から検出された不良画素の位置を前記相対距離で表したキズデータであり、
前記第2のキズデータは、既知の不良画素の位置を前記相対距離で表したキズデータであることを特徴とする請求項1に記載のデータ処理装置。
The first flaw data is flaw data in which the position of a defective pixel detected from an image input from an image sensor is represented by the relative distance.
The data processing apparatus according to claim 1, wherein the second flaw data is flaw data in which a position of a known defective pixel is represented by the relative distance.
前記第1のキズデータの相対距離と、前記第2のキズデータの相対距離とを、比較する比較手段を有し、
前記統合処理手段は、前記比較の結果に基づき、前記第1のキズデータと第2のキズデータのうち前記相対距離の値が小さい方のキズデータを選択して、前記第3のキズデータとすることを特徴とする請求項1又は2に記載のデータ処理装置。
Comparing means for comparing the relative distance of the first scratch data and the relative distance of the second scratch data;
The integrated processing means selects, based on the comparison result, the scratch data having the smaller relative distance value from the first scratch data and the second scratch data, and the third scratch data. The data processing apparatus according to claim 1, wherein:
前記除外手段は、前記比較の結果、前記第1のキズデータの相対距離と前記第2のキズデータの相対距離とが等しい距離である場合には、前記選択されたキズデータが前記ダミーキズデータであっても前記第3のキズデータから除外しないことを特徴とする請求項3に記載のデータ処理装置。   If the relative distance of the first flaw data is equal to the relative distance of the second flaw data as a result of the comparison, the exclusion unit determines that the selected flaw data is the dummy flaw data. Even so, it is not excluded from the third flaw data. 前記除外手段は、前記第1のキズデータの相対距離と第2のキズデータの相対距離が異なる距離である場合には、前記選択したキズデータが前記ダミーキズデータであれば前記第3のキズデータから除外することを特徴とする請求項3又は4に記載のデータ処理装置。   When the relative distance of the first scratch data is different from the relative distance of the second scratch data, the exclusion means is the third scratch if the selected scratch data is the dummy scratch data. 5. The data processing apparatus according to claim 3, wherein the data processing apparatus is excluded from data. 前記第1のキズデータと第2のキズデータのうち、前記第3のキズデータとして統合されなかった方のキズデータの前記相対距離の値を、前記第3のキズデータとして統合された方のキズデータの前記相対距離の値を基に更新する更新手段を有することを特徴とする請求項3乃至5の何れか1項に記載のデータ処理装置。   Of the first flaw data and the second flaw data, the value of the relative distance of the flaw data that is not integrated as the third flaw data is the one integrated as the third flaw data. 6. The data processing apparatus according to claim 3, further comprising updating means for updating based on the value of the relative distance of scratch data. 前記比較手段は、前記第3のキズデータとして統合された方のキズデータの次のキズデータの前記相対距離と、前記値が更新されたキズデータの前記相対距離とを、比較することを特徴とする請求項6に記載のデータ処理装置。   The comparison means compares the relative distance of the flaw data next to the flaw data integrated as the third flaw data and the relative distance of the flaw data with the updated value. The data processing apparatus according to claim 6. 前記更新手段は、前記更新として、前記第3のキズデータとして統合された方のキズデータの前記相対距離の値から、前記第3のキズデータとして統合されなかった方のキズデータの前記相対距離の値を差し引くことを特徴とする請求項6又は7に記載のデータ処理装置。   The updating means, as the update, from the relative distance value of the scratch data integrated as the third scratch data, the relative distance of the scratch data not integrated as the third scratch data. The data processing apparatus according to claim 6, wherein a value of the value is subtracted. 前記第3のキズデータから除外された前記ダミーキズデータの相対距離の値により、前記第3のキズデータとして統合された方のキズデータの次のキズデータの前記相対距離を調整する調整手段を有することを特徴とする請求項1乃至8の何れか1項に記載のデータ処理装置。   Adjusting means for adjusting the relative distance of the next flaw data of the flaw data integrated as the third flaw data according to the value of the relative distance of the dummy flaw data excluded from the third flaw data; The data processing apparatus according to claim 1, wherein the data processing apparatus has a data processing apparatus. 前記調整手段は、前記調整として、前記第3のキズデータとして統合された方のキズデータの次のキズデータの前記相対距離の値に対し、前記第3のキズデータから除外された前記ダミーキズデータの相対距離の値を加算することを特徴とする請求項9に記載のデータ処理装置。   The adjustment means, as the adjustment, for the value of the relative distance of the next flaw data after the flaw data integrated as the third flaw data, the dummy flaws excluded from the third flaw data. The data processing apparatus according to claim 9, wherein a value of a relative distance of data is added. 前記第3のキズデータを基に、撮像素子から入力された画像の前記不良画素の位置を特定して、前記不良画素のデータに対する補正処理を行う画像処理手段を有することを特徴とする請求項1乃至10の何れか1項に記載のデータ処理装置。   The image processing means for specifying the position of the defective pixel in the image input from the image sensor based on the third flaw data and correcting the defective pixel data. The data processing apparatus according to any one of 1 to 10. 不良画素の位置を不良画素間の有限の相対距離で各々表した第1,第2のキズデータを、第3のキズデータとして統合するステップと、
前記第3のキズデータが不良画素間を中継するために挿入されたダミーキズデータである場合、前記ダミーキズデータの前記相対距離と、直前に統合された第3のキズデータの前記相対距離とに基づいて、前記ダミーキズデータを前記第3のキズデータとして統合するか否か判定し、統合しないと判定した場合には前記ダミーキズデータを前記第3のキズデータから除外するステップと、
を有することを特徴とするデータ処理装置のデータ処理方法。
Integrating the first and second flaw data, each representing the position of the defective pixel with a finite relative distance between the defective pixels, as third flaw data;
When the third flaw data is dummy flaw data inserted to relay between defective pixels, the relative distance of the dummy flaw data and the relative distance of the third flaw data integrated immediately before And determining whether to integrate the dummy flaw data as the third flaw data, and if not determined to integrate, excluding the dummy flaw data from the third flaw data;
A data processing method for a data processing apparatus, comprising:
コンピュータを、請求項1乃至11の何れか1項に記載のデータ処理装置の各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the data processor of any one of Claims 1 thru | or 11.
JP2016154450A 2016-08-05 2016-08-05 Data processing device, data processing method, and program Active JP6701025B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016154450A JP6701025B2 (en) 2016-08-05 2016-08-05 Data processing device, data processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016154450A JP6701025B2 (en) 2016-08-05 2016-08-05 Data processing device, data processing method, and program

Publications (2)

Publication Number Publication Date
JP2018023054A true JP2018023054A (en) 2018-02-08
JP6701025B2 JP6701025B2 (en) 2020-05-27

Family

ID=61165889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016154450A Active JP6701025B2 (en) 2016-08-05 2016-08-05 Data processing device, data processing method, and program

Country Status (1)

Country Link
JP (1) JP6701025B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114113112A (en) * 2021-11-29 2022-03-01 哈尔滨工业大学 Surface micro-defect positioning and identifying method based on three-light-source microscope system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114113112A (en) * 2021-11-29 2022-03-01 哈尔滨工业大学 Surface micro-defect positioning and identifying method based on three-light-source microscope system
CN114113112B (en) * 2021-11-29 2023-08-18 哈尔滨工业大学 Surface micro defect positioning and identifying method based on three-light-source microscopic system

Also Published As

Publication number Publication date
JP6701025B2 (en) 2020-05-27

Similar Documents

Publication Publication Date Title
US10359498B2 (en) Image pickup apparatus having function of generating simulation image,control method therefor, and storage medium
JP5141245B2 (en) Image processing apparatus, correction information generation method, and imaging apparatus
JP4856293B2 (en) Imaging apparatus and image restoration method
WO2019171984A1 (en) Signal processing device, signal processing method, and program
US20160110855A1 (en) Image processing apparatus that appropriately performs tone correction in low-illuminance environment, image processing method therefor, and storage medium
US11272119B2 (en) Multi-sensor high dynamic range imaging
JP6395429B2 (en) Image processing apparatus, control method thereof, and storage medium
JP6701025B2 (en) Data processing device, data processing method, and program
US10068339B2 (en) Image processing device, image processing system, image processing method and image processing program
US10498925B2 (en) Image processing to control synthesizing results of shading correction when generating wider dynamic range image
JP2015095670A (en) Imaging apparatus, control method thereof and control program
JP2008028926A (en) Color image motion detecting circuit, multiple color image integrating apparatus, and color image motion detecting method
JP2017055309A (en) Imaging apparatus and its control method
JP2021122106A (en) Imaging apparatus, learning apparatus, imaging apparatus control method, learning method, learned model, and program
JP2017204787A (en) Image processing apparatus, control method thereof, imaging apparatus, and program
JP2016119532A (en) Image processing apparatus, imaging apparatus, image processing method, image processing program, and storage medium
JP2008147915A (en) Image processor correcting color of image, and image processing method
TWI576789B (en) Image processing method, non-transitory computer-readable storage medium and electrical device thereof
JP2015207841A5 (en)
JP6555881B2 (en) Image processing apparatus, imaging apparatus, image processing method, image processing program, and storage medium
JP6468751B2 (en) Image processing apparatus, image processing method, and program
JP5932855B2 (en) Image processing system, image processing method, and image processing program
JP6218408B2 (en) Image processing apparatus, image processing method, and program
JP2007114923A (en) Image processing apparatus and method
WO2019225255A1 (en) Image correction device, image correction method, and image correction program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190722

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200323

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200331

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200501

R151 Written notification of patent or utility model registration

Ref document number: 6701025

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151