[go: up one dir, main page]

JP6250988B2 - Image processing method and apparatus - Google Patents

Image processing method and apparatus Download PDF

Info

Publication number
JP6250988B2
JP6250988B2 JP2013185704A JP2013185704A JP6250988B2 JP 6250988 B2 JP6250988 B2 JP 6250988B2 JP 2013185704 A JP2013185704 A JP 2013185704A JP 2013185704 A JP2013185704 A JP 2013185704A JP 6250988 B2 JP6250988 B2 JP 6250988B2
Authority
JP
Japan
Prior art keywords
pixel
correction
gain mode
image
image processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2013185704A
Other languages
Japanese (ja)
Other versions
JP2015052941A (en
Inventor
裕行 近江
裕行 近江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2013185704A priority Critical patent/JP6250988B2/en
Publication of JP2015052941A publication Critical patent/JP2015052941A/en
Application granted granted Critical
Publication of JP6250988B2 publication Critical patent/JP6250988B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transforming Light Signals Into Electric Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Description

本発明は、撮像装置により複数のゲインモードで取得された画像を処理する画像処理方法および装置に関する。   The present invention relates to an image processing method and apparatus for processing an image acquired by an imaging device in a plurality of gain modes.

X線検出器のダイナミックレンジは一般に狭い。そのため、ハイコントラストの被写体を撮影する場合は、X線検出器のダイナミックレンジを超えて出力が飽和してしまったり、ノイズに埋もれてしまったりしてしまい、被写体情報が欠落することがある。このような問題を解決するため、入射するX線に対して感度の高い高感度ゲインモードで出力された画像と、感度の低い低感度ゲインモードで出力された画像とを取得し、それらの画像を合成処理して、ダイナミックレンジを拡大することが行われる。   The dynamic range of X-ray detectors is generally narrow. For this reason, when shooting a high-contrast subject, the output may be saturated beyond the dynamic range of the X-ray detector or buried in noise, and subject information may be lost. In order to solve such a problem, an image output in a high sensitivity gain mode with high sensitivity to incident X-rays and an image output in a low sensitivity gain mode with low sensitivity are acquired, and those images are acquired. Is combined to expand the dynamic range.

一般にゲインモードの切り替えは、電荷を蓄積するための複数のコンデンサを用意しておき、実際に電荷の蓄積に用いるコンデンサの数を増減することで行われる。したがって1つのコンデンサが不良であっても、あるゲインモードでは正常に動作する場合がある。すなわち、ゲインモード毎に欠陥画素と正常画素とが切り替わってしまう場合がある。また、コンデンサを制御するトランジスタが不良である場合も、同様に欠陥画素と正常画素とが切り替わる場合がある。その結果、ゲインモードを変更して読み出された画像では、ゲインモード毎に異なる位置に欠陥画素が現れることになる。したがって欠陥画素補正をする画像処理装置は、欠陥画素位置をゲインモード毎に把握する必要がある。   Generally, the gain mode is switched by preparing a plurality of capacitors for accumulating charges and increasing or decreasing the number of capacitors actually used for accumulating charges. Therefore, even if one capacitor is defective, it may operate normally in a certain gain mode. That is, the defective pixel and the normal pixel may be switched for each gain mode. Similarly, when the transistor that controls the capacitor is defective, the defective pixel and the normal pixel may be similarly switched. As a result, in an image read out by changing the gain mode, defective pixels appear at different positions for each gain mode. Therefore, an image processing apparatus that performs defective pixel correction needs to grasp the defective pixel position for each gain mode.

特許文献1と特許文献2では、高感度モード(高ゲインモード)には高感度用の欠陥画素情報を記憶し、低感度モード(低ゲインモード)には低感度用の欠陥画素情報を記憶し、設定された感度に対応する欠陥画素情報を用いて、欠陥画素補正を行っている。さらに特許文献3では欠陥補正の方法をゲインモード毎に切り換える方法を提案している。   In Patent Literature 1 and Patent Literature 2, defective pixel information for high sensitivity is stored in the high sensitivity mode (high gain mode), and defective pixel information for low sensitivity is stored in the low sensitivity mode (low gain mode). The defective pixel correction is performed using the defective pixel information corresponding to the set sensitivity. Further, Patent Document 3 proposes a method of switching the defect correction method for each gain mode.

特開2007−306506号公報JP 2007-306506 A 特許第4391876号明細書Japanese Patent No. 4391876 特開2007−129339号公報JP 2007-129339 A

上記文献の何れにおいても、欠陥画素の画素値を、その欠陥画素の周辺画素から予測することにより欠陥画素補正が行われる。情報が欠落している画素をその周辺画素から予測するため、正常である周辺画素が多ければ多いほど精度の高い補正ができる。ところが、補正対象の画素の周辺画素に欠陥画素が多く存在すれば、その予測精度は下がってしまう。例えば、欠陥画素の周辺に正常な画素が1つしか存在しない場合は、欠陥画素の画素値がその唯一の正常な周辺画素の画素値へ置き換わるのみとなってしまう。さらに、周辺画素に正常な画素が1つも存在しない場合においてはその欠陥画素を補正することはできない。また、欠陥画素がエッジ付近であるとき、エッジ情報をもつ周辺画素に欠陥画素が多く含まれると、補正結果にはエッジ情報が含まれなくなってしまう。   In any of the above documents, defective pixel correction is performed by predicting the pixel value of a defective pixel from the peripheral pixels of the defective pixel. Since pixels with missing information are predicted from their peripheral pixels, the more normal peripheral pixels, the more accurate correction can be made. However, if there are many defective pixels in the peripheral pixels of the pixel to be corrected, the prediction accuracy decreases. For example, when there is only one normal pixel around the defective pixel, the pixel value of the defective pixel is only replaced with the pixel value of the only normal peripheral pixel. Furthermore, when there is no normal pixel in the peripheral pixels, the defective pixel cannot be corrected. In addition, when the defective pixel is near the edge and the peripheral pixel having the edge information includes many defective pixels, the correction result does not include the edge information.

本発明は、上記の課題に鑑みてなされたものであり、欠陥画素の周囲に欠陥画素が多く存在する場合であっても、適切な補正処理を実現できるようにすることを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to realize an appropriate correction process even when there are many defective pixels around a defective pixel.

上記の目的を達成するための本発明の位置態様による画像処理装置は以下の構成を備える。すなわち、
第1のゲインモードと、前記第1のゲインモードとは異なる第2のゲインモードで撮影が可能な撮像装置により得られた画像を処理する画像処理装置であって、
前記撮像装置の、前記第1のゲインモードにおける欠陥画素の位置を示す第1の欠陥情報と、前記第2のゲインモードにおける欠陥画素の位置を示す第2の欠陥情報を取得する取得手段と、
前記第1と第2の欠陥情報に基づいて、前記撮像装置が前記第1のゲインモードで撮影した第1の画像における欠陥画素の補正処理を切り替える切替手段と、を備え、
前記切替手段は、前記第1の画像における前記欠陥画素の周囲の画素を用いて前記欠陥画素を補正する第1の補正処理と、前記撮像装置が前記第2のゲインモードで撮影した第2の画像における前記欠陥画素に対応する画素を用いて前記欠陥画素を補正する第2の補正処理との選択を切り替える。
In order to achieve the above object, an image processing apparatus according to a position aspect of the present invention comprises the following arrangement. That is,
An image processing device that processes an image obtained by an imaging device capable of photographing in a first gain mode and a second gain mode different from the first gain mode,
Acquisition means for acquiring first defect information indicating a position of a defective pixel in the first gain mode and second defect information indicating a position of the defective pixel in the second gain mode of the imaging apparatus;
Switching means for switching correction processing of defective pixels in the first image captured by the imaging device in the first gain mode based on the first and second defect information;
The switching means includes a first correction process for correcting the defective pixel using pixels around the defective pixel in the first image, and a second correction image captured by the imaging device in the second gain mode. The selection is switched between the second correction process for correcting the defective pixel using the pixel corresponding to the defective pixel in the image.

本発明によれば、欠陥画素の周囲に欠陥画素が多く存在する場合であっても、適切な補正処理を実現することができる。   According to the present invention, even when there are many defective pixels around a defective pixel, an appropriate correction process can be realized.

実施形態によるX線撮影装置の構成例を示すブロック図。1 is a block diagram showing a configuration example of an X-ray imaging apparatus according to an embodiment. X線センサの画素の回路例を示す図。The figure which shows the circuit example of the pixel of an X-ray sensor. 2つのゲインモードによる入出力特性の例を示す図。The figure which shows the example of the input-output characteristic by two gain modes. 第1〜第3実施形態の機能構成例を示すブロック図。The block diagram which shows the function structural example of 1st-3rd embodiment. 第1実施形態による欠陥補正処理を示すフローチャート。The flowchart which shows the defect correction process by 1st Embodiment. 合成欠陥情報を説明する図。The figure explaining synthetic defect information. 第2実施形態による欠陥補正処理を示すフローチャート。The flowchart which shows the defect correction process by 2nd Embodiment. エッジ領域での周辺画素補正の課題を説明する図。The figure explaining the subject of the surrounding pixel correction | amendment in an edge area | region. 第3実施形態による欠陥補正処理を示すフローチャート。The flowchart which shows the defect correction process by 3rd Embodiment. 第4実施形態による機能構成例を示すブロック図。The block diagram which shows the function structural example by 4th Embodiment. 第3実施形態による欠陥補正処理を示すフローチャート。The flowchart which shows the defect correction process by 3rd Embodiment. 第5、第6実施形態の機能構成例を示すブロック図。The block diagram which shows the function structural example of 5th, 6th Embodiment. 第5実施形態による欠陥補正処理を示すフローチャート。The flowchart which shows the defect correction process by 5th Embodiment. 第6実施形態による欠陥補正処理を示すフローチャート。The flowchart which shows the defect correction process by 6th Embodiment. 第7実施形態の機能構成例を示すブロック図。The block diagram which shows the function structural example of 7th Embodiment. 第7、第8実施形態による欠陥補正処理を示すフローチャート。The flowchart which shows the defect correction process by 7th, 8th embodiment. 第8実施形態の機能構成例を示すブロック図。The block diagram which shows the function structural example of 8th Embodiment. 第9実施形態の機能構成例を示すブロック図。The block diagram which shows the function structural example of 9th Embodiment. 第9実施形態による画素の合成処理を示すフローチャート。The flowchart which shows the synthetic | combination process of the pixel by 9th Embodiment. 第10、第11実施形態の機能構成例を示すブロック図。The block diagram which shows the function structural example of 10th, 11th Embodiment. 第10実施形態による欠陥補正処理を示すフローチャート。The flowchart which shows the defect correction process by 10th Embodiment. 第11実施形態による欠陥処理を示すフローチャート。The flowchart which shows the defect process by 11th Embodiment. ライン欠陥情報の生成を説明する図。The figure explaining the production | generation of line defect information. 欠陥マップの順位付けを説明する図。The figure explaining ranking of a defect map.

以下、添付の図面を参照して本発明の好適な実施形態のいくつかを説明する。   Hereinafter, some preferred embodiments of the present invention will be described with reference to the accompanying drawings.

<第1実施形態>
以下に説明する実施形態では、あるゲインモードにおける欠陥画素の画素値を、異なるゲインモードにおいて対応する画素が正常画素であれば、その画素値を使用して欠陥画素の補正を実行する。図1は、実施形態によるX線撮影装置100の構成例を示す図である。X線撮影装置100の全体の制御を行うコントロールPC101、照射されたX線量に応じた電気信号を出力するX線センサ102、X線を発生するX線発生装置110が光ファイバ122を介して接続されている。なお、信号線は光ファイバでなくてもよく、たとえば、CAN(Controller Area Network)やギガビットイーサなどでもよい。光ファイバ122には、外部表示装置109、外部記憶装置111、ネットワークインタフェース112がさらに接続されている。コントロールPC101においては、例えば、バス121に、CPU(中央演算装置)103、RAM(Random Access Memory)104、ROM(Read OnlyMemory)105が接続される。バス121には、更に、入力部106、表示部107、記憶部108が接続されている。
<First Embodiment>
In the embodiment described below, correction of a defective pixel is executed using the pixel value of a defective pixel in a certain gain mode, if the corresponding pixel is a normal pixel in a different gain mode. FIG. 1 is a diagram illustrating a configuration example of an X-ray imaging apparatus 100 according to the embodiment. A control PC 101 that controls the entire X-ray imaging apparatus 100, an X-ray sensor 102 that outputs an electrical signal corresponding to the irradiated X-ray dose, and an X-ray generation apparatus 110 that generates X-rays are connected via an optical fiber 122. Has been. The signal line may not be an optical fiber, and may be, for example, a CAN (Controller Area Network) or a Gigabit Ethernet. An external display device 109, an external storage device 111, and a network interface 112 are further connected to the optical fiber 122. In the control PC 101, for example, a CPU (Central Processing Unit) 103, a RAM (Random Access Memory) 104, and a ROM (Read Only Memory) 105 are connected to the bus 121. An input unit 106, a display unit 107, and a storage unit 108 are further connected to the bus 121.

コントロールPC101は、X線センサ102、外部表示装置109、X線発生装置110などにコマンドを送る。コントロールPC101では、撮影モードごとの処理内容がソフトウェアモジュールとして記憶部108に格納されており、必要に応じてRAM104に読み込まれ、CPU103により実行される。例えば、図4により後述する機能構成の各ブロックは、CPU103が記憶部108に記憶されている対応するソフトウェアモジュールを実行することにより実現される。但し、図4に示した各構成(機能)を実現する専用の画像処理ボードが実装された構成でもよい。   The control PC 101 sends commands to the X-ray sensor 102, the external display device 109, the X-ray generator 110, and the like. In the control PC 101, the processing content for each shooting mode is stored as a software module in the storage unit 108, read into the RAM 104 as necessary, and executed by the CPU 103. For example, each block of the functional configuration described later with reference to FIG. 4 is realized by the CPU 103 executing a corresponding software module stored in the storage unit 108. However, a configuration in which a dedicated image processing board for realizing each configuration (function) shown in FIG. 4 is mounted may be used.

X線センサ102は、高感度ゲインと低感度ゲインの2つの異なるゲインで画素値を出力することができる、間接型X線検出器である。すなわち、X線センサ102は、第1のゲインモードと、第1のゲインモードとは異なる第2のゲインモードとで撮影が可能な撮像装置を構成する。図2に、X線センサ102の1画素当たりの回路構成例を示す。図2において、フォトダイオード201は蛍光体にて変換された光を電荷に変換し、コンデンサ202はその電荷を蓄積する。トランジスタ203およびトランジスタ204が蓄積された電荷を出力することによりX線画像が生成される。このとき、トランジスタ205がコンデンサ206に電荷が流れるようにスイッチングすることで、回路全体のコンデンサ容量が変わり、異なるゲインモードの画像が生成される。但し、図2では2種類の容量を用いて2種類のゲインモードを実現する構成を示したが、コンデンサとトランジスタをさらに追加することで、さらに異なるゲインの画像を生成するように構成することもできる。   The X-ray sensor 102 is an indirect X-ray detector that can output pixel values with two different gains, a high sensitivity gain and a low sensitivity gain. That is, the X-ray sensor 102 constitutes an imaging apparatus that can perform imaging in the first gain mode and the second gain mode that is different from the first gain mode. FIG. 2 shows a circuit configuration example per pixel of the X-ray sensor 102. In FIG. 2, a photodiode 201 converts light converted by a phosphor into electric charges, and a capacitor 202 accumulates the electric charges. An X-ray image is generated by outputting the accumulated charges from the transistor 203 and the transistor 204. At this time, the transistor 205 is switched so that electric charge flows through the capacitor 206, whereby the capacitor capacity of the entire circuit is changed, and images of different gain modes are generated. However, although FIG. 2 shows a configuration in which two types of gain modes are realized using two types of capacitance, an image having a different gain can be generated by adding a capacitor and a transistor. it can.

以上の構成により取得される2種類のゲインモードにおける、X線量とセンサからの出力信号との関係を表す入出力特性は、たとえば図3のようになる。どちらのゲインモードにおいても線量に対して、出力信号が線形な関係にある領域とその前後に線形な関係が成り立たない領域とが存在する。X線量と出力信号が線形な関係にない領域とは、信号値が小さくノイズに埋もれてしまっていたり、コンデンサ202や206が飽和してしまっていたりする領域である。   The input / output characteristics representing the relationship between the X-ray dose and the output signal from the sensor in the two types of gain modes acquired by the above configuration are, for example, as shown in FIG. In either gain mode, there is a region where the output signal is linearly related to the dose and a region where the linear relationship does not hold before and after the region. The region where the X-ray dose and the output signal are not in a linear relationship is a region where the signal value is small and buried in noise, or the capacitors 202 and 206 are saturated.

第1実施形態におけるX線画像処理方法(欠陥補正処理方法)を実現するための機能構成例を図4に示す。図4に示すように、第1実施形態のX線画像処理方法を実現する機能構成は、周辺画素解析部401、欠陥情報比較部402、補正方法決定部403を備える。周辺画素解析部401は、X線センサ102にて取得されたX線画像に所定の前処理を施した画像(X線画像(A)51)と欠陥情報(欠陥情報(A)61)を入力とし、欠陥画素ごとに周辺画素を解析した結果を出力する。欠陥情報比較部402は、少なくとも二種類以上のゲインの欠陥情報(欠陥情報(A)61、欠陥情報(B)62)を入力とし、画素毎に全てのゲインモードにおいて欠陥画素となるか否かを示す合成欠陥情報63を出力する。補正方法決定部403は、周辺画素解析部401による周辺画素の解析結果と、欠陥情報比較部402の比較結果(合成欠陥情報)とに基づいて、各欠陥画素について採用すべき欠陥補正方法を決定する。不図示の補正処理部は、補正方法決定部403により決定された欠陥補正方法を用いて欠陥画素を補正する。なお、本実施形態では、X線画像や欠陥情報は外部記憶装置111に記憶されているものとするが、これに限られるものではない。   FIG. 4 shows a functional configuration example for realizing the X-ray image processing method (defect correction processing method) in the first embodiment. As shown in FIG. 4, the functional configuration for realizing the X-ray image processing method of the first embodiment includes a peripheral pixel analysis unit 401, a defect information comparison unit 402, and a correction method determination unit 403. The peripheral pixel analysis unit 401 inputs an image (X-ray image (A) 51) obtained by subjecting the X-ray image acquired by the X-ray sensor 102 to predetermined preprocessing and defect information (defect information (A) 61). And outputs the result of analyzing the peripheral pixels for each defective pixel. The defect information comparison unit 402 receives at least two types of gain defect information (defect information (A) 61 and defect information (B) 62) and determines whether or not each pixel is a defective pixel in all gain modes. Is output. The correction method determination unit 403 determines a defect correction method to be adopted for each defective pixel based on the analysis result of the peripheral pixel by the peripheral pixel analysis unit 401 and the comparison result (composite defect information) of the defect information comparison unit 402. To do. A correction processing unit (not shown) corrects defective pixels using the defect correction method determined by the correction method determination unit 403. In the present embodiment, it is assumed that the X-ray image and defect information are stored in the external storage device 111, but the present invention is not limited to this.

図4の機能構成図と図5のフローチャートを参照して、第1実施形態による欠陥補正方法を説明する。周辺画素解析部401は、ゲインモードAで撮影されたX線画像(A)51を外部記憶装置111から取得する(ステップ501)。なお、X線画像(A)51は、必要な前処理が行われている画像とする。ここで、前処理とは、オフセット補正、Log変換、ゲイン補正などのセンサの特性を補正する処理であり、前処理により各画素の値と周辺画素の値との相関関係が保たれた状態になる。次に、周辺画素解析部401は、X線センサ102のゲインモードAでの欠陥情報(A)61を外部記憶装置111から取得する(ステップ502)。欠陥情報(A)61は、ステップ501にて取得したX線画像と同じゲインモードAにおける、X線センサ102における欠陥画素の位置を示す。   The defect correction method according to the first embodiment will be described with reference to the functional configuration diagram of FIG. 4 and the flowchart of FIG. The peripheral pixel analysis unit 401 acquires the X-ray image (A) 51 photographed in the gain mode A from the external storage device 111 (step 501). The X-ray image (A) 51 is an image on which necessary preprocessing is performed. Here, the pre-processing is processing for correcting sensor characteristics such as offset correction, log conversion, and gain correction, and the correlation between the value of each pixel and the value of surrounding pixels is maintained by the pre-processing. Become. Next, the peripheral pixel analysis unit 401 acquires defect information (A) 61 in the gain mode A of the X-ray sensor 102 from the external storage device 111 (step 502). The defect information (A) 61 indicates the position of the defective pixel in the X-ray sensor 102 in the same gain mode A as the X-ray image acquired in step 501.

次に、ステップ503以降の処理ループにより、欠陥情報(A)61が示す欠陥画素の各々について、欠陥情報(A)61と欠陥情報(B)62に基づいて補正方法の切替を行う。まず、周辺画素解析部401は、取得した欠陥情報(A)61から欠陥画素の位置(欠陥位置)を把握し、欠陥画素の周辺画素を解析する。そして、周辺画素解析部401は、各欠陥位置における欠陥画素の補正方法を決定するための解析結果を補正方法決定部403に通知する。第1実施形態の周辺画素解析部401は、欠陥画素の補正に使用される周辺画素の中で正常である画素数を計数する(ステップ504)。例えば以下で説明する数1を用いて隣接する8画素から欠陥画素を補正する場合は、その隣接する8画素のうち何画素が正常であるかが計数される。補正方法決定部403は、計数結果と閾値53を比較する(ステップ505)。正常画素の数が閾値53以下の場合、補正方法決定部403は周辺画素を用いた補正の精度低下が許容範囲を超えると判断し、別のゲインモードで撮影された画像の画素(本例ではゲインモードBで撮影された画像の画素)を用いた補正方法の採用を検討する。以下、この補正方法を「異なるゲインモードを用いた補正」という。一方、正常画素の数が閾値53を上回っている場合は、周辺画素を用いた補正の精度を保てると判断し、補正方法決定部403は、X線画像(A)51の欠陥画素の周辺画素から、その欠陥画素を補正する周辺画素補正を選択する(ステップ506)。周辺画素補正方法は、ステップ504で想定した補正方法(欠陥画素の周囲8画素を用いた補正方法)である。この場合、たとえば、閾値53には1以上8以下の整数が設定される。   Next, the correction method is switched based on the defect information (A) 61 and the defect information (B) 62 for each of the defective pixels indicated by the defect information (A) 61 in the processing loop after step 503. First, the peripheral pixel analysis unit 401 grasps the position of the defective pixel (defect position) from the acquired defect information (A) 61 and analyzes the peripheral pixels of the defective pixel. Then, the peripheral pixel analysis unit 401 notifies the correction method determination unit 403 of the analysis result for determining the correction method of the defective pixel at each defect position. The peripheral pixel analysis unit 401 according to the first embodiment counts the number of normal pixels among peripheral pixels used for correcting defective pixels (step 504). For example, when a defective pixel is corrected from adjacent 8 pixels using the number 1 described below, the number of normal pixels among the adjacent 8 pixels is counted. The correction method determination unit 403 compares the count result with the threshold value 53 (step 505). When the number of normal pixels is equal to or smaller than the threshold value 53, the correction method determination unit 403 determines that the accuracy reduction of the correction using the peripheral pixels exceeds the allowable range, and the pixel of the image captured in another gain mode (in this example, Consider the use of a correction method using pixels of an image captured in gain mode B. Hereinafter, this correction method is referred to as “correction using different gain modes”. On the other hand, if the number of normal pixels exceeds the threshold value 53, it is determined that the accuracy of correction using the peripheral pixels can be maintained, and the correction method determination unit 403 determines the peripheral pixels of the defective pixel in the X-ray image (A) 51. Then, the peripheral pixel correction for correcting the defective pixel is selected (step 506). The peripheral pixel correction method is the correction method assumed in step 504 (a correction method using eight pixels around the defective pixel). In this case, for example, an integer of 1 to 8 is set for the threshold 53.

なお、ステップ506で選択される周辺画素を用いた欠陥画素補正(周辺画素補正)に関しては多くの手法が提案されており、それらのうちのいずれが用いられてもよい。たとえば、以下の数1に示されるような補正方法を用いることができる。

Figure 0006250988
ここで、S(x,y)は座標(x、y)での画素値、S’(x,y)は補正された画素値である。w(x,y)は座標(x,y)の画素が欠陥画素であるか否かのフラグである。欠陥画素であればw(x,y)=0、正常画素であればw(x,y)=1である。Pnormは正常画素フラグの総数であり、正常画素の総数を表すことになる。数1では周辺画素に欠陥画素があれば、その画素情報は使わずに補正値が算出される。 Many methods have been proposed for defective pixel correction (peripheral pixel correction) using the peripheral pixels selected in step 506, and any of them may be used. For example, a correction method as shown in the following equation 1 can be used.
Figure 0006250988
Here, S (x, y) is a pixel value at coordinates (x, y), and S ′ (x, y) is a corrected pixel value. w (x, y) is a flag indicating whether or not the pixel at coordinates (x, y) is a defective pixel. For defective pixels, w (x, y) = 0, and for normal pixels, w (x, y) = 1. Pnorm is the total number of normal pixel flags, and represents the total number of normal pixels. In Equation 1, if there is a defective pixel in the surrounding pixels, the correction value is calculated without using the pixel information.

一方、「異なるゲインモードを用いた補正」の採用を検討するべく処理がステップ505からステップ507へ進むと、補正方法決定部403は、欠陥情報比較部402から合成欠陥情報63を入力する(ステップ507)。欠陥情報比較部402は、事前にゲインモードAの欠陥情報(A)61とゲインモードBの欠陥情報(B)62とを外部記憶装置111から取得(ステップ521、522)する。そして、欠陥情報比較部402は、図6に示すように、欠陥情報(A)61と欠陥情報(B)62をマージして、新たな合成欠陥情報63を生成する(ステップ523)。図6に示されるように、合成欠陥情報63には、ゲインモードAとゲインモードBで共に欠陥である画素と、どちらか一方のモードで欠陥である画素と、どちらのモードでも欠陥ではない画素と、を判別するための情報が含まれる。   On the other hand, when the process proceeds from step 505 to step 507 in order to consider the adoption of “correction using different gain modes”, the correction method determination unit 403 inputs the composite defect information 63 from the defect information comparison unit 402 (step 507). 507). The defect information comparison unit 402 acquires the defect information (A) 61 in the gain mode A and the defect information (B) 62 in the gain mode B from the external storage device 111 in advance (steps 521 and 522). Then, as shown in FIG. 6, the defect information comparison unit 402 merges the defect information (A) 61 and the defect information (B) 62 to generate new combined defect information 63 (step 523). As shown in FIG. 6, the composite defect information 63 includes pixels that are defective in both gain mode A and gain mode B, pixels that are defective in either mode, and pixels that are not defective in either mode. Is included.

補正方法決定部403は、合成欠陥情報63から、補正対象の欠陥画素がモードBにおいて正常画素であるかどうかをチェックする(ステップ508)。ゲインモードBで得られた画像の対応する画素が正常画素である場合は、該対応する画素の値を使用して欠陥画素を補正する。すなわち、「異なるゲインモードを用いた補正」が選択される(ステップ509)。なお、異なるゲインモードでの画素値を用いる場合は、ゲインの差を補正する必要があるが、その詳細については、第5実施形態等で説明する。一方、ゲインモードBで得られた画像の対応する画素も欠陥画素である場合は、「異なるゲインモードを用いた補正」を実施できないため、X線画像(A)51の周辺画素からの周辺画素補正方法を選択する(ステップ506)。   The correction method determination unit 403 checks whether or not the defective pixel to be corrected is a normal pixel in mode B from the composite defect information 63 (step 508). If the corresponding pixel of the image obtained in the gain mode B is a normal pixel, the value of the corresponding pixel is used to correct the defective pixel. That is, “correction using different gain modes” is selected (step 509). Note that when pixel values in different gain modes are used, it is necessary to correct the gain difference, details of which will be described in the fifth embodiment. On the other hand, if the corresponding pixel of the image obtained in the gain mode B is also a defective pixel, “correction using a different gain mode” cannot be performed, so the peripheral pixels from the peripheral pixels of the X-ray image (A) 51 A correction method is selected (step 506).

その後、補正方法決定部403により決定された(選択された)補正方法に従って、不図示の補正処理部により欠陥画素の補正が実行される。すなわち、「周辺画素補正」が選択された場合には、X線画像(A)51の欠陥画素の周辺画素を用いてその欠陥画素の画素値が生成される。また、「異なるゲインモードを用いた補正」が選択された場合は、X線画像(B)52の対応する画素を用いて、X線画像(A)51の欠陥画素が補正される。以上の処理が、X線画像(A)の各欠陥画素について実行される。また、X線画像(B)の欠陥画素を補正する場合にも、X線画像(A)を異なるゲインモードの画像として用いて、上記と同様の補正処理を行う。   Thereafter, according to the correction method determined (selected) by the correction method determination unit 403, correction of defective pixels is executed by a correction processing unit (not shown). That is, when “peripheral pixel correction” is selected, the pixel value of the defective pixel is generated using the peripheral pixel of the defective pixel in the X-ray image (A) 51. When “correction using different gain modes” is selected, the defective pixel of the X-ray image (A) 51 is corrected using the corresponding pixel of the X-ray image (B) 52. The above processing is executed for each defective pixel in the X-ray image (A). Also, when correcting defective pixels in the X-ray image (B), the same correction processing as described above is performed using the X-ray image (A) as an image in a different gain mode.

以上のように、第1実施形態によれば、欠陥画素の値をその周辺画素の値を利用して補正する補正処理において、利用可能な周辺画素の数が不足する場合に、別のゲインモードで得られた画素値を利用するようにした。そのため、欠陥画素の周辺に存在する正常画素が少ない場合にも、精度を維持した補正が実現される可能性が大きくなる。   As described above, according to the first embodiment, when the number of usable peripheral pixels is insufficient in the correction process for correcting the value of the defective pixel using the values of the peripheral pixels, another gain mode is used. The pixel value obtained in (1) was used. Therefore, even when there are few normal pixels around the defective pixel, there is a high possibility that correction with accuracy is realized.

<第2実施形態>
第1実施形態では、補正方法の切り替え制御のために欠陥画素の周辺画素に含まれる欠陥画素の数を用いた(ステップ504,505)。これに対して、第2実施形態では、欠陥画素の部分がエッジ領域か否かの判定結果に応じて補正方法の切り替えを制御する。なお、第2実施形態のX線撮影装置100の構成、X線センサ102の1画素当たりの回路構成は第1実施形態(図1、図2)と同様である。以下、図4の機能構成図と図7のフローチャートを参照して、第2実施形態による補正処理を説明する。ステップ701からステップ703までは第1実施形態(図5)のステップ501からステップ503と同様である。
Second Embodiment
In the first embodiment, the number of defective pixels included in the peripheral pixels of the defective pixel is used for correction method switching control (steps 504 and 505). On the other hand, in the second embodiment, switching of the correction method is controlled according to the determination result of whether or not the defective pixel portion is an edge region. The configuration of the X-ray imaging apparatus 100 of the second embodiment and the circuit configuration per pixel of the X-ray sensor 102 are the same as those of the first embodiment (FIGS. 1 and 2). Hereinafter, correction processing according to the second embodiment will be described with reference to the functional configuration diagram of FIG. 4 and the flowchart of FIG. 7. Steps 701 to 703 are the same as steps 501 to 503 in the first embodiment (FIG. 5).

周辺画素解析部401は、欠陥画素を周辺画素から補正する際に使用する画素領域の中からエッジを抽出する(ステップ704)。エッジ抽出には、例えば、以下に説明するようなソーベルのオペレータを用いた抽出方法を用いることができる。数2にソーベルのオペレータを示す。

Figure 0006250988
The peripheral pixel analysis unit 401 extracts an edge from the pixel area used when correcting the defective pixel from the peripheral pixels (step 704). For the edge extraction, for example, an extraction method using a Sobel operator as described below can be used. Equation 2 shows the Sobel operator.
Figure 0006250988

ソーベルオペレータからX方向、Y方向のエッジ成分が抽出される。そして、数3に示すようにグラジエントの強度を計算すると、エッジの強さを求めることができる。得られたエッジの強さを特定の閾値と比較し、エッジが存在するかしないかを判定する。したがって、第2実施形態では、閾値53はエッジの強さの閾値となる。

Figure 0006250988
なお、上述のソーベルオペレータを用いたエッジ抽出方法は一例であり、その他のエッジ抽出方法を用いてもよい。 Edge components in the X and Y directions are extracted from the Sobel operator. When the gradient strength is calculated as shown in Equation 3, the edge strength can be obtained. The obtained edge strength is compared with a specific threshold value to determine whether an edge exists or not. Therefore, in the second embodiment, the threshold value 53 is a threshold value of edge strength.
Figure 0006250988
Note that the edge extraction method using the Sobel operator described above is an example, and other edge extraction methods may be used.

補正方法決定部403は、エッジ存在の有無(エッジの強さが閾値53を超えるか否か)によって、欠陥補正方法を選択する(ステップ705)。エッジが存在する場合は、ゲインモードBの画素を使用する「異なるゲインモードを用いた補正」を検討するために処理はステップ707へ進む。エッジが存在する領域で周辺画素を用いた補正を行うと、たとえば図8に示すように画素のバラつきの大きいエッジ前後の情報が混ざり合い、正確な補正ができない。すなわち、エッジ領域を含む画像として、本来は欠陥なし画像81のような画像が得られる被写体撮影において、欠陥画素(×印)が存在するために欠陥発生画像82のような画像が得られたとする。この場合、周辺画素を用いた補正(数1)が行われると、欠陥画素の値として「5」が算出されてしまい、エッジ部分の画質を劣化させてしまう(欠陥補正画像83)。エッジは臨床上重要な情報であることが多く、その情報が失われることは好ましくない。したがって、なるべく「異なるゲインモードを用いた補正」を使用してエッジが保存されるようにしている。一方、エッジが存在しない領域では、画素のバラつきが小さいため周辺画素補正が選択される(ステップ705→ステップ706)。ステップ707からステップ709の処理は第1実施形態のステップ507からステップ509と同様である。   The correction method determination unit 403 selects a defect correction method according to the presence / absence of an edge (whether the strength of the edge exceeds the threshold value 53) (step 705). If there is an edge, the process proceeds to step 707 to consider “correction using different gain modes” using pixels in gain mode B. If correction using peripheral pixels is performed in a region where an edge exists, information before and after the edge with large pixel variation is mixed as shown in FIG. 8, for example, and accurate correction cannot be performed. That is, it is assumed that an image such as a defect occurrence image 82 is obtained because a defective pixel (x mark) is present in a subject photographing in which an image such as an image 81 having no defect is originally obtained as an image including an edge region. . In this case, when the correction using the peripheral pixels (Equation 1) is performed, “5” is calculated as the value of the defective pixel, and the image quality of the edge portion is degraded (defect correction image 83). The edge is often clinically important information, and it is not desirable that the information be lost. Therefore, the edge is stored using “correction using different gain modes” as much as possible. On the other hand, in a region where there is no edge, since pixel variation is small, peripheral pixel correction is selected (step 705 → step 706). The processing from step 707 to step 709 is the same as that from step 507 to step 509 of the first embodiment.

以上のように、第2実施形態によれば、欠陥画素が存在する領域の画像の特性に応じて適切な補正方法が選択される。なお、第1実施形態のステップ504,505による判定(欠陥画素の周辺の欠陥画素の数に応じた補正方法の選択)を併用してもよい。   As described above, according to the second embodiment, an appropriate correction method is selected according to the characteristics of the image in the area where the defective pixel exists. Note that the determinations in step 504 and 505 of the first embodiment (selection of a correction method according to the number of defective pixels around the defective pixel) may be used together.

<第3実施形態>
第3実施形態では、欠陥画素の周辺領域のノイズ量に基づいて補正方法の切り替えを制御する構成を説明する。なお、第3実施形態のX線撮影装置100の構成、X線センサ102の1画素当たりの回路構成は第1実施形態(図1、図2)と同様である。以下、図4の機能構成図と図9のフローチャートを用いて、第3実施形態による補正処理を説明する。ステップ901からステップ903までは第1実施形態(図5)のステップ501からステップ503までと同様である。
<Third Embodiment>
In the third embodiment, a configuration for controlling the switching of the correction method based on the amount of noise in the peripheral area of the defective pixel will be described. The configuration of the X-ray imaging apparatus 100 of the third embodiment and the circuit configuration per pixel of the X-ray sensor 102 are the same as those of the first embodiment (FIGS. 1 and 2). Hereinafter, correction processing according to the third embodiment will be described with reference to the functional configuration diagram of FIG. 4 and the flowchart of FIG. 9. Steps 901 to 903 are the same as steps 501 to 503 in the first embodiment (FIG. 5).

周辺画素解析部401は、欠陥画素を中心とした周辺領域からノイズ量を算出する(ステップ904)。周辺領域は周辺画素補正に使用する領域(たとえば、欠陥画素を中心とした3×3画素の領域)と同サイズであってもよいし、異なるサイズであっても構わない。ノイズは例えば以下の数4に示すように分散を使用して算出することができる。数4に分散を使ったノイズ量σ^2を示す。   The peripheral pixel analysis unit 401 calculates the amount of noise from the peripheral region centered on the defective pixel (step 904). The peripheral area may be the same size as an area used for peripheral pixel correction (for example, a 3 × 3 pixel area centered on a defective pixel) or a different size. For example, the noise can be calculated using variance as shown in Equation 4 below. Equation 4 shows the noise amount σ ^ 2 using variance.

Figure 0006250988
(x、y)が欠陥画素位置を示し、kが周辺領域のサイズとなる。wは、w(0,0)で0、その他では1となる変数で、欠陥画素位置を省いた計算をするためのものである。なお上記のような分散を用いたノイズ算出方法は一例であり、その他のノイズ算出法方法を用いてもよい。
Figure 0006250988
(X, y) indicates the defective pixel position, and k is the size of the peripheral region. w is a variable which is 0 for w (0,0) and 1 for others, and is used for calculation without the defective pixel position. Note that the noise calculation method using the above variance is an example, and other noise calculation methods may be used.

補正方法決定部403は、ステップ904で算出されたノイズ量の大小によって、欠陥補正方法を選択する(ステップ905)。ノイズ量が閾値53より多い場合は、ゲインモードBの画素を使用する「異なるゲインモードを用いた補正」の採用を検討するべく処理をステップ907へ進める。なお、閾値53は、第3実施形態ではノイズ量の閾値となる。   The correction method determination unit 403 selects a defect correction method according to the amount of noise calculated in step 904 (step 905). If the amount of noise is greater than the threshold value 53, the process proceeds to step 907 to consider adopting “correction using a different gain mode” that uses a pixel in gain mode B. The threshold value 53 is a noise amount threshold value in the third embodiment.

数1に示すような周辺画素補正は中心画素を除いた移動平均フィルタになる。つまりノイズを低減する働きがあり、粒状性が変わってしまう。ノイズの目立たない領域では粒状性低減の影響が小さいため、粒状性の変更を感じることはない。しかしながら、ノイズの目立つ領域では欠陥画素位置だけがノイズの少ない画像になり、アーチファクトが生じてしまう。欠陥画素が孤立欠陥ではなく、ライン欠陥やブロック欠陥など連結している欠陥であれば、そのようなアーチファクトはさらに顕著になる。アーチファクトは診断の妨げになるものであり、その存在は好ましくない。一方、ノイズ量が少ない領域では、ノイズ低減の影響が小さいため周辺画素補正方法が選択される(ステップ906)。ステップ907からステップ909の処理は第1実施形態のステップ507からステップ509の処理と同様である。   The peripheral pixel correction as shown in Equation 1 becomes a moving average filter excluding the central pixel. In other words, it has a function of reducing noise and the graininess is changed. Since the influence of the graininess reduction is small in the area where the noise is not conspicuous, the change in graininess is not felt. However, in the area where noise is conspicuous, only the defective pixel position becomes an image with little noise, and an artifact is generated. If the defective pixel is not an isolated defect but a connected defect such as a line defect or a block defect, such an artifact becomes more prominent. Artifacts interfere with diagnosis and their presence is undesirable. On the other hand, in the region where the amount of noise is small, the influence of noise reduction is small, so the peripheral pixel correction method is selected (step 906). The processing from step 907 to step 909 is the same as the processing from step 507 to step 509 of the first embodiment.

以上のように、第3実施形態によれば、補正対象の欠陥画素の周辺領域におけるノイズ量に応じて補正方法を切り替えることにより、アーチファクトの発生を低減することができる。なお、欠陥方法を選択するステップ905にて、連結する欠陥画素数を分岐の指標として使用してもよい。連結数が多ければ多いほどノイズ低減された領域が大きくなるため、補正方法決定部403は、ステップ907を選択することが望ましい。なお、第1実施形態のステップ504,505による判定や、第2実施形態のステップ704,705による判定を併用してもよい。   As described above, according to the third embodiment, the occurrence of artifacts can be reduced by switching the correction method according to the amount of noise in the peripheral area of the defective pixel to be corrected. In step 905 for selecting a defect method, the number of defective pixels to be connected may be used as a branching index. The larger the number of connections, the larger the noise-reduced area. Therefore, the correction method determination unit 403 desirably selects step 907. In addition, you may use together the determination by step 504,505 of 1st Embodiment, and the determination by step 704,705 of 2nd Embodiment.

<第4実施形態>
第4実施形態では、異なるゲインモードの画像の画素値を用いて欠陥画素を補正した場合に、その補正結果を他の欠陥画素の補正に利用可能にする構成を説明する。なお、第4実施形態のX線撮影装置100の構成、X線センサ102の1画素当たりの回路構成は第1実施形態(図1、図2)と同様である。
<Fourth embodiment>
In the fourth embodiment, a configuration is described in which when a defective pixel is corrected using pixel values of images in different gain modes, the correction result can be used for correction of other defective pixels. The configuration of the X-ray imaging apparatus 100 of the fourth embodiment and the circuit configuration per pixel of the X-ray sensor 102 are the same as those of the first embodiment (FIGS. 1 and 2).

第4実施形態におけるX線画像処理方法を実現するX線撮影装置の機能構成例を図10に示す。周辺画素解析部401、欠陥情報比較部402、補正方法決定部403は第1実施形態(図4)で説明したとおりである。また、欠陥情報更新部1001は、補正方法決定部403が選択した補正方法に基づいて、周辺画素解析部401が参照する欠陥情報(A)61を更新する。   An example of the functional configuration of an X-ray imaging apparatus that implements the X-ray image processing method according to the fourth embodiment is shown in FIG. The peripheral pixel analysis unit 401, the defect information comparison unit 402, and the correction method determination unit 403 are as described in the first embodiment (FIG. 4). Further, the defect information update unit 1001 updates the defect information (A) 61 referred to by the peripheral pixel analysis unit 401 based on the correction method selected by the correction method determination unit 403.

以下、図10の構成図と図11のフローチャートを用いて、第4実施形態の処理を説明する。ステップ1101からステップ1109までの処理は第1実施形態のステップ501からステップ509までと同様である。   The process of the fourth embodiment will be described below using the configuration diagram of FIG. 10 and the flowchart of FIG. The processing from step 1101 to step 1109 is the same as that from step 501 to step 509 of the first embodiment.

欠陥情報更新部1001は周辺画素解析部401がステップ1102で取得した欠陥情報(A)51の現在注目されている欠陥画素(ステップ1109で「異なるゲインモードを用いた補正」が選択された欠陥画素)を正常画素に更新する(ステップ1113)。すなわち、ステップ1109においてゲインモードBの画素値による補正が選択され、補正が実施された欠陥画素においては、ゲインモードAでの正常画素と同等の情報量があるとみなし、その後の処理にて正常画素として扱うようにする。以降、周辺画素解析部401は、正常画素数をカウントする際に、この更新された欠陥情報(A)51を参照してカウントを行う。また、周辺画素からの欠陥補正を行う場合、周辺画素に異なるゲインモードでの画素値にて補正された画素があれば、この補正後の画素値を正常画素の画素値として欠陥補正に使用する。   The defect information update unit 1001 is the defect pixel currently focused on in the defect information (A) 51 acquired by the peripheral pixel analysis unit 401 in step 1102 (defective pixel in which “correction using a different gain mode” is selected in step 1109. ) Is updated to normal pixels (step 1113). That is, in step 1109, the correction based on the pixel value in the gain mode B is selected, and the defective pixel subjected to the correction is regarded as having the same amount of information as the normal pixel in the gain mode A, and is normal in the subsequent processing. Treat as a pixel. Thereafter, the peripheral pixel analysis unit 401 refers to the updated defect information (A) 51 when counting the number of normal pixels. In addition, when performing defect correction from peripheral pixels, if there are pixels corrected with pixel values in different gain modes in the peripheral pixels, the corrected pixel values are used as defect pixel values for defect correction. .

以上のように、第4実施形態によれば、欠陥画素の補正後の画素値を、他の欠陥画素の「周囲画素補正」に利用できるようになる。なお、ステップ1104,1105では欠陥画素の周囲の正常画素の計数結果を判定に用いたが、これに限られるものではない。たとえば、第2実施形態や第3実施形態で説明したように、欠陥画素の周囲領域におけるエッジの抽出結果やノイズ量の算出結果を用いてもよいし、これらを組み合わせてもよい。   As described above, according to the fourth embodiment, the pixel value after correction of a defective pixel can be used for “peripheral pixel correction” of other defective pixels. In steps 1104 and 1105, the count result of the normal pixels around the defective pixel is used for the determination. However, the present invention is not limited to this. For example, as described in the second embodiment or the third embodiment, the edge extraction result or the noise amount calculation result in the peripheral region of the defective pixel may be used, or these may be combined.

<第5実施形態>
第1〜第4実施形態では、「異なるゲインモードを用いた補正」を実行する場合に、異なるゲインモードで正常画素として機能している画素値を採用するに際してその適否を判定することはしていない。しかしながら、異なるゲインモードの画像において正常な画素であったとしても、図3に示したとおり、その特性に線形性を有していない領域や飽和領域等があるため、ゲインの違いを補正するだけでは正確に欠陥画素を補正することができない場合がある。そこで、以下の第5〜第9実施形態では、X線センサ102の入出力特性の線形性を補正するとともに、「異なるゲインモードを用いた補正」に使用することが可能である範囲を制限する構成について、いくつかの例を説明する。
<Fifth Embodiment>
In the first to fourth embodiments, when “correction using different gain modes” is executed, whether or not a pixel value that functions as a normal pixel in different gain modes is adopted is determined. Absent. However, even if it is a normal pixel in an image in a different gain mode, as shown in FIG. 3, there is a region that does not have linearity in its characteristics, a saturated region, or the like, so only a gain difference is corrected. Then, there are cases where the defective pixel cannot be corrected accurately. Therefore, in the following fifth to ninth embodiments, the linearity of the input / output characteristics of the X-ray sensor 102 is corrected and the range that can be used for “correction using different gain modes” is limited. Some examples of the configuration will be described.

第5実施形態のX線撮影装置100の構成、X線センサ102の1画素当たりの回路構成は第1実施形態(図1、図2)と同様である。第5実施形態によるX線画像処理方法を実現するための機能構成例を図12に示す。第5実施形態の機能構成は、補正方法選択部1201、欠陥情報比較部1202、評価部1203、欠陥補正部1204を備える。補正方法選択部1201は、欠陥情報比較部1202から取得される合成欠陥情報63に基づいて補正方法を選択する。なお、補正方法選択部1201は、欠陥画素に対応した画素が他のゲインモードで正常画素である場合に他のゲインモードでの画素値を用いて補正を行い、その他の場合には周囲画素を用いた補正を行う構成としている。但し、補正方法選択部1201において、第1〜第3実施形態で説明した補正の選択方法を用いてもよい。   The configuration of the X-ray imaging apparatus 100 of the fifth embodiment and the circuit configuration per pixel of the X-ray sensor 102 are the same as those of the first embodiment (FIGS. 1 and 2). An example of the functional configuration for realizing the X-ray image processing method according to the fifth embodiment is shown in FIG. The functional configuration of the fifth embodiment includes a correction method selection unit 1201, a defect information comparison unit 1202, an evaluation unit 1203, and a defect correction unit 1204. The correction method selection unit 1201 selects a correction method based on the combined defect information 63 acquired from the defect information comparison unit 1202. Note that the correction method selection unit 1201 performs correction using the pixel value in the other gain mode when the pixel corresponding to the defective pixel is a normal pixel in the other gain mode, and in other cases, the surrounding pixel is corrected. It is set as the structure which performs the used correction | amendment. However, the correction method selection unit 1201 may use the correction selection method described in the first to third embodiments.

評価部1203は、X線センサにて取得されたX線画像の線量に対する入出力特性を入力とし、他のゲインモードの画素値を用いた場合に、欠陥画素の画素値が精度よく補正されるか否かの評価結果を出力する。すなわち、評価部1203は、以下にその一例を説明するように、ゲインモードAとゲインモードBのそれぞれの入出力特性から、「他のゲインモードの画素値を用いた補正」を各欠陥画素へ適用することの適否を判定する。欠陥補正部1204は、補正方法選択部1201による補正方法の選択結果と、評価部1203による評価結果に基づいて、最終的に採用する補正方法を決定し、決定された補正方法にしたがって得られた画素値を出力する。   The evaluation unit 1203 receives input / output characteristics with respect to the dose of the X-ray image acquired by the X-ray sensor, and corrects the pixel value of the defective pixel with accuracy when a pixel value in another gain mode is used. The evaluation result of whether or not is output. That is, the evaluation unit 1203 applies “correction using pixel values of other gain modes” to each defective pixel based on the input / output characteristics of the gain mode A and the gain mode B as described below. Judge the suitability of application. The defect correction unit 1204 determines a correction method to be finally adopted based on the selection result of the correction method by the correction method selection unit 1201 and the evaluation result by the evaluation unit 1203, and is obtained according to the determined correction method. Output the pixel value.

図12の機能構成図と図13のフローチャートを参照して第5実施形態を説明する。評価部1203と欠陥補正部1204は、ゲインモードAで撮影されたX線画像(A)51とゲインモードBで撮影されたX線画像(B)52を外部記憶装置111から取得する(ステップ1301)。なお、X線画像(A)51およびX線画像(B)52は前処理が行われている画像とする。前処理とは、周辺画素との相関関係が保たれている状態にするために行われる、オフセット補正、Log変換、ゲイン補正などのセンサの特性を補正する処理である。また、欠陥情報比較部1202、評価部1203は、ゲインモードAでの欠陥情報(A)61、ゲインモードBでの欠陥情報(B)62を、外部記憶装置111から取得する(ステップ1302)。また、補正方法選択部1201には欠陥情報(A)61が入力される。さらに評価部1203は、外部記憶装置111からゲインモードAの入出力特性(A)71とゲインモードBの入出力特性(B)72を取得する(ステップ1303)。   The fifth embodiment will be described with reference to the functional configuration diagram of FIG. 12 and the flowchart of FIG. The evaluation unit 1203 and the defect correction unit 1204 acquire the X-ray image (A) 51 imaged in the gain mode A and the X-ray image (B) 52 imaged in the gain mode B from the external storage device 111 (step 1301). ). Note that the X-ray image (A) 51 and the X-ray image (B) 52 are pre-processed images. The preprocessing is processing for correcting sensor characteristics such as offset correction, log conversion, and gain correction, which are performed to maintain a correlation with surrounding pixels. Further, the defect information comparison unit 1202 and the evaluation unit 1203 acquire the defect information (A) 61 in the gain mode A and the defect information (B) 62 in the gain mode B from the external storage device 111 (step 1302). Further, defect information (A) 61 is input to the correction method selection unit 1201. Further, the evaluation unit 1203 acquires the input / output characteristic (A) 71 of the gain mode A and the input / output characteristic (B) 72 of the gain mode B from the external storage device 111 (step 1303).

さらに、評価部1203は、評価閾値73を入力する(ステップ1304)。評価閾値73は補正率に関する閾値である。異なるゲインモードの画素を使って欠陥を補正するには、異なるゲインモードの画素に補正率を乗じ、補正してから使う必要がある。但し、この補正は信号もノイズも同様に行われる。ノイズにはX線の線量に比例しないシステムノイズが含まれているため、補正率が大きくなればなるほどS/Nが悪くなる。したがってS/Nが診断上影響のないレベルの最大補正率を設定し、それを評価閾値73としている。   Further, the evaluation unit 1203 inputs an evaluation threshold value 73 (step 1304). The evaluation threshold 73 is a threshold relating to the correction rate. In order to correct a defect using a pixel in a different gain mode, it is necessary to multiply the pixel in a different gain mode by a correction factor and correct it before use. However, this correction is performed in the same manner for both signals and noise. Since the noise includes system noise that is not proportional to the X-ray dose, the S / N becomes worse as the correction factor increases. Therefore, the maximum correction rate at which the S / N does not affect the diagnosis is set, and this is set as the evaluation threshold 73.

次に補正方法選択部1201は、取得した欠陥情報(A)61から欠陥位置を把握し(ステップ1305)、欠陥情報比較部1202から提供される合成欠陥情報63を参照してその補正方法を決定する(ステップ1306,1307)。本実施形態では、欠陥情報(A)61により示された欠陥画素が、合成欠陥情報63を参照することにより、他のゲインモード(この場合、ゲインモードB)において正常画素か否かを判定する(ステップ1307)。他のゲインモードで正常画素であれば、「異なるゲインモードを用いた補正」の採用を試みるように決定する。補正方法選択部1201が、「異なるゲインモードを用いた補正」の採用を検討するように選択した場合、ゲインモードBの画素を使用する補正を検討するべく処理をステップ1308へ進める。   Next, the correction method selection unit 1201 grasps the defect position from the acquired defect information (A) 61 (step 1305), and determines the correction method with reference to the composite defect information 63 provided from the defect information comparison unit 1202. (Steps 1306 and 1307). In the present embodiment, it is determined whether or not the defective pixel indicated by the defect information (A) 61 is a normal pixel in another gain mode (in this case, gain mode B) by referring to the composite defect information 63. (Step 1307). If it is a normal pixel in another gain mode, it is determined to try to adopt “correction using a different gain mode”. When the correction method selection unit 1201 selects to consider the use of “correction using different gain modes”, the process proceeds to step 1308 to consider correction using the pixels in the gain mode B.

一方、欠陥画素が、他のゲインモードにおいても欠陥画素である場合は、異なるゲインモードでの補正方法を用いることができないため、X線画像(A)51の周辺画素を用いた補正を行うように決定する。周囲画素からの補正を行うように決定されると、欠陥補正部1204は、周辺画素を用いた欠陥画素の補正(周辺画素補正)を実行する(ステップ1311)。   On the other hand, if the defective pixel is also a defective pixel in other gain modes, correction using different gain modes cannot be used, and correction using peripheral pixels of the X-ray image (A) 51 is performed. To decide. When it is determined to perform correction from surrounding pixels, the defect correction unit 1204 executes correction of defective pixels (peripheral pixel correction) using the peripheral pixels (step 1311).

異なるゲインモードを用いた補正の採用を検討することが選択された場合、評価部1203は、X線画像(B)52、入出力特性(A)71および入出力特性(B)72を用いて補正率を計算する(ステップ1308)。この補正率とは、ゲインモードBの画素値をゲインモードAの画素値に変換するための率である。X線画像(B)52と入出力特性(B)72からゲインモードBの画素値S(x、y)に対する入力値(X線量)を求め、この入力値に対応するゲインモードAの画素値S(x、y)を入出力特性(A)71より算出する。これより補正率r(x、y)は数5のようになる

Figure 0006250988
When it is selected to consider the use of correction using different gain modes, the evaluation unit 1203 uses the X-ray image (B) 52, the input / output characteristics (A) 71, and the input / output characteristics (B) 72. A correction factor is calculated (step 1308). The correction rate is a rate for converting the gain mode B pixel value into the gain mode A pixel value. An input value (X dose) for the pixel value S B (x, y) in the gain mode B is obtained from the X-ray image (B) 52 and the input / output characteristic (B) 72, and the pixel in the gain mode A corresponding to this input value. The value S A (x, y) is calculated from the input / output characteristic (A) 71. Accordingly, the correction factor r (x, y) is as shown in Equation 5.
Figure 0006250988

評価部1203は、得られた補正率r(x、y)を評価閾値73と比較する(ステップ1309)。欠陥補正部1204は、評価閾値73よりも小さい補正率であれば、そのまま補正率として使用して欠陥画素を補正することにより「異なるゲインモードを用いた補正」を実行する(ステップ1310)。一方、補正率が評価閾値73以上であれば、前述したとおり、S/Nが悪化する恐れがあるため、欠陥補正部1204は周辺画素を用いて欠陥画素を補正する(ステップ1311)。   The evaluation unit 1203 compares the obtained correction rate r (x, y) with the evaluation threshold 73 (step 1309). If the correction rate is smaller than the evaluation threshold 73, the defect correction unit 1204 executes “correction using different gain modes” by correcting the defective pixel using the correction rate as it is (step 1310). On the other hand, if the correction rate is equal to or higher than the evaluation threshold 73, the S / N may be deteriorated as described above, and thus the defect correction unit 1204 corrects the defective pixel using the peripheral pixels (step 1311).

以上のように、第5実施形態によれば、他のゲインモードの画素値を用いた補正を採用するか否かの判定において、補正率の大きさを用いて補正値の適否が評価される。そして、他のゲインモードの画素値を用いた補正による画質の劣化が著しくなると判定された場合(上記実施形態では、補正率rが評価閾値を超える場合)、他のゲインモードの画素値を用いた補正を採用せず同じゲインモードの周辺画素を用いた補正を採用する。そのため、欠陥画素を補正した後の画像の画質が良好に維持される。   As described above, according to the fifth embodiment, the suitability of the correction value is evaluated using the magnitude of the correction rate in determining whether to use the correction using the pixel value of another gain mode. . When it is determined that the image quality deterioration due to the correction using the pixel value in another gain mode is significant (in the above embodiment, the correction rate r exceeds the evaluation threshold), the pixel value in the other gain mode is used. The correction using peripheral pixels in the same gain mode is employed without adopting the correction that was performed. Therefore, the image quality of the image after correcting the defective pixel is maintained satisfactorily.

<第6実施形態>
第5実施形態では、ゲインモードAでの欠陥画素の画素値を、ゲインモードBでの画素値を用いて補正する場合に、ゲインモードBでの画素値をどれだけ補正する必要があるか(補正率)に基づいてゲインモードBでの画素値の採用の可否を決定した。これに対し、第6実施形態では、ゲインモードA,Bの両モードでのリニアリティに基づいて、ゲインモードBでの画素値の採用の可否を決定する。第6実施形態のX線撮影装置100の構成、X線センサ102の1画素当たりの回路構成は第1実施形態(図1、図2)と同様である。以下、図12の機能構成図と図14のフローチャートを参照して、第6実施形態の処理を説明する。なお、ステップ1401からステップ1403までは第5実施形態(図13)のステップ1301からステップ1303までと同様である。
<Sixth Embodiment>
In the fifth embodiment, when the pixel value of the defective pixel in the gain mode A is corrected using the pixel value in the gain mode B, how much the pixel value in the gain mode B needs to be corrected ( Whether or not the pixel value can be used in the gain mode B is determined based on the correction rate. On the other hand, in the sixth embodiment, whether or not to adopt the pixel value in the gain mode B is determined based on the linearity in both the gain modes A and B. The configuration of the X-ray imaging apparatus 100 according to the sixth embodiment and the circuit configuration per pixel of the X-ray sensor 102 are the same as those in the first embodiment (FIGS. 1 and 2). The processing of the sixth embodiment will be described below with reference to the functional configuration diagram of FIG. 12 and the flowchart of FIG. Steps 1401 to 1403 are the same as steps 1301 to 1303 of the fifth embodiment (FIG. 13).

評価部1203は、ゲインモードAの入出力特性(A)71とゲインモードBの入出力特性(B)72を入力し、それらの線形近似を行うための近似式を算出する(ステップ1404)。入出力特性は線量に対してリニアリティが失われているので、評価部1203はその補正を行いやすいようにリニアリティγを使って近似する。本実施形態では、たとえばゲインモード毎の入出力特性に数6のような近似が行われる。

Figure 0006250988
The evaluation unit 1203 inputs the input / output characteristic (A) 71 of the gain mode A and the input / output characteristic (B) 72 of the gain mode B, and calculates an approximate expression for performing a linear approximation thereof (step 1404). Since the linearity of the input / output characteristics is lost with respect to the dose, the evaluation unit 1203 approximates using the linearity γ so that the correction can be easily performed. In the present embodiment, for example, approximation such as Equation 6 is performed on the input / output characteristics for each gain mode.
Figure 0006250988

数6への近似は複数のサンプリング点から最小二乗法等で算出する。算出された結果と、基のサンプリング点とから残差を算出し、ゲインモードAでの残差とゲインモードBでの残差を乗算した結果、すなわち近似による誤差量を近似精度とする。したがって、近似精度が高いほど、近似精度の値(誤差量)は小さくなる。この近似精度(誤差量)は入力の画素値に対するテーブルとしてメモリに保持しておく。次に評価部1203は、評価閾値73を入力する(ステップ1405)。第6実施形態では、評価閾値73は近似精度に関する閾値である。ステップ1406〜1408の処理は、第5実施形態(図13)のステップ1305〜1307と同様である。   The approximation to Expression 6 is calculated from a plurality of sampling points by the least square method or the like. The residual is calculated from the calculated result and the base sampling point, and the result obtained by multiplying the residual in the gain mode A by the residual in the gain mode B, that is, the error amount by approximation is set as the approximation accuracy. Therefore, the higher the approximation accuracy, the smaller the approximation accuracy value (error amount). This approximate accuracy (error amount) is stored in the memory as a table for the input pixel value. Next, the evaluation unit 1203 inputs an evaluation threshold value 73 (step 1405). In the sixth embodiment, the evaluation threshold 73 is a threshold relating to the approximation accuracy. The processing in steps 1406 to 1408 is the same as that in steps 1305 to 1307 in the fifth embodiment (FIG. 13).

補正方法選択部1201が、「異なるゲインモードを用いた補正」の採用を検討するように選択した場合、ゲインモードBの画素を使用する補正方法の採用を検討するべく処理をステップ1409へ進める。評価部1203は、X線画像(B)52から、処理対象の欠陥画素に対応する画素の画素値を取得し、ステップ1404で算出した近似精度(テーブル)を参照して、その画素値に対応する近似精度を取得する。そして、評価部1203は、取得した近似精度と評価閾値73とを比較する(ステップ1409)。近似精度が評価閾値73以上の場合は、X線画像71を入力とし周辺画素補正を実行する(ステップ1412)。近似精度(誤差量)が大きいということは、リニアリティが著しく低下している箇所であり、補正が困難な領域であると言える。そのため異なるゲインモードの値は使用せず、欠陥画素の周囲画素を用いた補正が採用される。   If the correction method selection unit 1201 selects to consider the adoption of “correction using different gain modes”, the process proceeds to step 1409 to examine the adoption of a correction method using pixels in the gain mode B. The evaluation unit 1203 acquires the pixel value of the pixel corresponding to the defective pixel to be processed from the X-ray image (B) 52, refers to the approximate accuracy (table) calculated in step 1404, and corresponds to the pixel value. Get the approximation accuracy. Then, the evaluation unit 1203 compares the acquired approximate accuracy with the evaluation threshold 73 (step 1409). If the approximation accuracy is equal to or greater than the evaluation threshold 73, the peripheral pixel correction is executed with the X-ray image 71 as an input (step 1412). The fact that the approximation accuracy (error amount) is large is a place where the linearity is remarkably lowered and it can be said that it is a region where correction is difficult. Therefore, the correction using the surrounding pixels of the defective pixel is employed without using different gain mode values.

一方、近似精度が評価閾値73より小さい場合は、異なるゲインモードでの補正を行うため、ゲインモードBの画素値をゲインモードAの画素に補正するための補正率を計算する(ステップ1410)。補正率は、たとえば、上述した数5により求めることができる。すなわち、X線画像(B)52と入出力特性(B)72から、ゲインモードBの画素値SB(x、y)に対する入力値を求め、この入力値に対応するゲインモードAの画素値SA(x、y)を入出力特性(A)71より算出する。そして、S(x、y)/S(x、y)により補正率が算出される。欠陥補正部1204は、ステップ1410で得られた補正率を使って、欠陥を補正する(ステップ1411)。 On the other hand, if the approximation accuracy is smaller than the evaluation threshold 73, correction in different gain modes is performed, so that a correction rate for correcting the gain mode B pixel value to the gain mode A pixel is calculated (step 1410). The correction factor can be obtained by, for example, Equation 5 described above. That is, an input value for the gain mode B pixel value SB (x, y) is obtained from the X-ray image (B) 52 and the input / output characteristic (B) 72, and the gain mode A pixel value SA corresponding to the input value is obtained. (X, y) is calculated from the input / output characteristic (A) 71. Then, the correction factor is calculated by S A (x, y) / S B (x, y). The defect correction unit 1204 corrects the defect using the correction rate obtained in step 1410 (step 1411).

以上のように、第6実施形態によれば、他のゲインモードの画素値を用いた補正を採用するか否かの判定において、入出力特性の直線への近似精度を参照して補正値の適否が評価され、近似精度が低い部分での他のゲインモードの画素値の利用が防止される。これにより、補正後の画像の画質の劣化を防ぐことができる。なお、ステップ1413で算出された補正率について、第5実施形態で説明した補正率の大小による補正値の適否の判定を更に実施するようにしてもよい。なお、ゲインモードAとゲインモードBのそれぞれにおいて数6から得られた近似値との残差を求め、これらを乗算して近似精度としたが、何れか一方のゲインモードにおける残差を近似精度としてもよい。例えば、ゲインモードAの欠陥画素の補正において、ゲインモードBの画素値を採用する際には、ゲインモードBにおける残差から得られた近似精度を参照するようにしてもよい。   As described above, according to the sixth embodiment, in determining whether to employ correction using pixel values in other gain modes, the correction value is referred to by referring to the approximation accuracy to the straight line of the input / output characteristics. Appropriateness is evaluated, and use of pixel values in other gain modes is prevented in a portion where the approximation accuracy is low. Thereby, deterioration of the image quality of the corrected image can be prevented. Note that the correction value calculated in step 1413 may be further determined as to whether the correction value is appropriate based on the magnitude of the correction rate described in the fifth embodiment. Note that the residual of the approximate value obtained from Equation 6 in each of the gain mode A and the gain mode B is obtained and multiplied to obtain the approximate accuracy, but the residual in either one of the gain modes is approximate accuracy. It is good. For example, when the pixel value of the gain mode B is adopted in the correction of the defective pixel in the gain mode A, the approximation accuracy obtained from the residual in the gain mode B may be referred to.

<第7実施形態>
第5実施形態や第6実施形態では、補正率や近似精度と比較する評価閾値として固定値が用いられたが、第7実施形態では、欠陥画素が被写体領域内か被写体領域外かに応じて評価閾値を変更する構成について説明する。第7実施形態のX線撮影装置100の構成、X線センサ102の1画素当たりの回路構成は第1実施形態(図1、図2)と同様である。以下、図15の機能構成図と図16のフローチャートを参照して、第7実施形態の処理を説明する。ステップ1601〜1608の処理は、第6実施形態(図14)のステップ1401〜1408と同様である。
<Seventh embodiment>
In the fifth embodiment and the sixth embodiment, a fixed value is used as the evaluation threshold value to be compared with the correction factor and the approximation accuracy. However, in the seventh embodiment, depending on whether the defective pixel is in the subject area or outside the subject area. A configuration for changing the evaluation threshold will be described. The configuration of the X-ray imaging apparatus 100 according to the seventh embodiment and the circuit configuration per pixel of the X-ray sensor 102 are the same as those in the first embodiment (FIGS. 1 and 2). The processing of the seventh embodiment will be described below with reference to the functional configuration diagram of FIG. 15 and the flowchart of FIG. The processing of steps 1601 to 1608 is the same as that of steps 1401 to 1408 of the sixth embodiment (FIG. 14).

図15において、第7実施形態による機能構成では、第6実施形態の機能構成(図12)に対して、周辺画素解析部1501が追加されている。また、評価部1203は、評価閾値73の代わりに、周辺画素解析部1501が出力する適応閾値75を近似精度との比較に用いる。   In FIG. 15, in the functional configuration according to the seventh embodiment, a peripheral pixel analysis unit 1501 is added to the functional configuration according to the sixth embodiment (FIG. 12). Further, the evaluation unit 1203 uses the adaptive threshold value 75 output from the surrounding pixel analysis unit 1501 instead of the evaluation threshold value 73 for comparison with the approximation accuracy.

補正方法選択部1201が、「異なるゲインモードを用いた補正」の採用を検討するように選択した場合、ゲインモードBの画素を使用する補正方法の採用を検討するべく処理をステップ1609へ進める。周辺画素解析部1501は、X線画像(B)52を入力とし、評価閾値73を補正し適応閾値75を算出する(ステップ1609)。適応閾値75の算出にあたり、周辺画素解析部1501は、補正係数を算出する。周辺画素解析部1501はX線画像(B)52から被写体領域を抽出し、補正方法選択部1201から通知される欠陥画素(の位置)が被写体領域の内部にあるか外部にあるかを判定する。被写体領域の抽出方法としては、たとえばヒストグラムによる解析方法が挙げられる。例えば、周辺画素解析部1501は、X線画像(B)52の累積ヒストグラムを作成する。そして高輝度域にX線がセンサに直接入射する範囲があり、低輝度域にコリメータによりセンサへX線が入射するのを妨げられる範囲があると考えると、累積頻度が全画素数のα%から100−α%までの範囲を被写体とする(0<α<50)。周辺画素解析部1501は、欠陥画素(の位置)がその範囲内であれば、被写体領域の画素と判断し、評価閾値73が小さくなるように補正係数を乗じて適応閾値75を得る。つまり、被写体領域内の画素については近似精度を厳しくすることになる。被写体内であるということは、診断上有用な領域であり、その精度を厳しく求められるためである。   When the correction method selection unit 1201 selects to consider the adoption of “correction using different gain modes”, the process proceeds to step 1609 to examine the adoption of a correction method using pixels in the gain mode B. The peripheral pixel analysis unit 1501 receives the X-ray image (B) 52 as an input, corrects the evaluation threshold 73, and calculates an adaptive threshold 75 (step 1609). In calculating the adaptive threshold 75, the surrounding pixel analysis unit 1501 calculates a correction coefficient. The peripheral pixel analysis unit 1501 extracts a subject area from the X-ray image (B) 52 and determines whether the defective pixel (position) notified from the correction method selection unit 1201 is inside or outside the subject area. . As a method for extracting the subject area, for example, an analysis method using a histogram can be cited. For example, the peripheral pixel analysis unit 1501 creates a cumulative histogram of the X-ray image (B) 52. When it is considered that there is a range where X-rays are directly incident on the sensor in the high luminance region and there is a range where X-rays are prevented from entering the sensor by the collimator in the low luminance region, the cumulative frequency is α% of the total number of pixels. To 100-α% (0 <α <50). If the defective pixel (position) is within the range, the peripheral pixel analysis unit 1501 determines that the pixel is in the subject area, and multiplies the correction coefficient so that the evaluation threshold 73 becomes smaller to obtain the adaptive threshold 75. That is, the approximation accuracy is tightened for the pixels in the subject area. This is because it is within the subject and is an area useful for diagnosis, and its accuracy is strictly required.

一方、被写体範囲外の欠陥画素であれば、周辺画素解析部1501は、評価閾値73にその値が大きくなるように補正係数を乗じた値、もしくはそのままの値を適応閾値75として、評価部1203に提供する。被写体外であるということは、診断上有用な情報が入っていないことが多く、精度をそれほど必要しないためである。なお、周辺画素解析部1501は被写体領域の抽出を各欠陥画素を処理するためのループ内において毎回実行する必要はなく、最初に抽出した被写体領域を以降のループで利用するようにしてもよい。以降のステップ1610〜1613の処理は、近似精度との比較に適応閾値75が用いられる点を除いて、第6実施形態(図14)のステップ1409〜1412と同様の処理である。   On the other hand, if it is a defective pixel outside the subject range, the peripheral pixel analysis unit 1501 sets the evaluation threshold value 73 as a value obtained by multiplying the evaluation threshold value 73 by a correction coefficient so as to increase the value, or an unchanged value as the adaptive threshold value 753. To provide. The fact that the subject is outside the subject is because information that is useful for diagnosis is often not included and accuracy is not so high. Note that the peripheral pixel analysis unit 1501 does not have to execute the extraction of the subject area every time in the loop for processing each defective pixel, and the subject area extracted first may be used in the subsequent loops. The subsequent steps 1610 to 1613 are the same as steps 1409 to 1412 of the sixth embodiment (FIG. 14) except that the adaptive threshold 75 is used for comparison with the approximation accuracy.

以上のように、第7実施形態によれば、近似精度に応じて補正処理を切り替える処理(欠陥画素の周辺画素を用いた補正/異なるゲインモードにおける画素値を用いた補正)において、近似精度と比較するための閾値が被写体領域内か否かに応じて変更される。そのため、より適切に補正処理を切り替えることができる。なお、上記実施形態では、欠陥画素の位置が被写体領域内か否かの判定にX線画像(B)を用いたが、X線画像(A)を用いてもよい。なお、第7実施形態による閾値の変更処理を第5実施形態で用いられる補正率の閾値に適用してもよい。   As described above, according to the seventh embodiment, in the process of switching the correction process according to the approximation accuracy (correction using the peripheral pixels of the defective pixel / correction using pixel values in different gain modes) The threshold value for comparison is changed depending on whether or not it is within the subject area. Therefore, the correction process can be switched more appropriately. In the above embodiment, the X-ray image (B) is used to determine whether or not the position of the defective pixel is in the subject area. However, the X-ray image (A) may be used. Note that the threshold value changing process according to the seventh embodiment may be applied to the threshold value of the correction factor used in the fifth embodiment.

<第8実施形態>
第7実施形態では、補正対象となる欠陥画素の位置が被写体領域か否かに応じて閾値を調整したが、閾値の調整はこれに限られるものではない。第8実施形態では、画像処理アプリケーションの種類(たとえばCT等の撮像であるか、一般透視撮影であるか)に応じて閾値を調整する。なお、第8実施形態のX線撮影装置100の構成、X線センサ102の1画素当たりの回路構成は第1実施形態(図1、図2)と同様である。以下、図17の機能構成図と図16のフローチャートを参照して、第8実施形態による処理を説明する。ステップ1601〜1608の処理は第6実施形態(図14)と同様である。
<Eighth Embodiment>
In the seventh embodiment, the threshold is adjusted according to whether or not the position of the defective pixel to be corrected is in the subject area, but the adjustment of the threshold is not limited to this. In the eighth embodiment, the threshold value is adjusted according to the type of image processing application (for example, imaging such as CT or general fluoroscopic imaging). The configuration of the X-ray imaging apparatus 100 of the eighth embodiment and the circuit configuration per pixel of the X-ray sensor 102 are the same as those of the first embodiment (FIGS. 1 and 2). The processing according to the eighth embodiment will be described below with reference to the functional configuration diagram of FIG. 17 and the flowchart of FIG. The processing in steps 1601 to 1608 is the same as that in the sixth embodiment (FIG. 14).

アプリケーション解析部1701は、評価閾値73を入力とし、使用中のアプリケーションに応じて評価閾値73を補正し、適応閾値75を算出する(ステップ1612)。適応閾値75を算出するにあたりアプリケーション解析部1701は、評価閾値73に乗ずる補正係数を算出する。アプリケーション解析部1701は稼働中のアプリケーションが何であるかによって補正係数の値を変更する。例えば、アプリケーションがCTやトモシンセシスの場合、その誤差が再構成画像に大きく伝搬するため、評価閾値73が小さくなるように補正係数を乗じて適応閾値75を得る。一方、アプリケーションが一般透視の場合は、低線量撮影であるためにS/Nが悪く、その誤差の影響が小さいと考えられる。そのため、一般透視撮影では、評価閾値73が大きくなるように補正係数を乗じて得られた値か、評価閾値73のそのままの値を、適応閾値75として出力する。なお、アプリケーション解析部1701は被写体領域の抽出を各欠陥画素を処理するためのループ内において毎回実行する必要はなく、最初に行ったアプリケーションの判断結果を以降のループで用いるようにしてもよい。   The application analysis unit 1701 receives the evaluation threshold 73, corrects the evaluation threshold 73 according to the application in use, and calculates an adaptive threshold 75 (step 1612). In calculating the adaptive threshold 75, the application analysis unit 1701 calculates a correction coefficient to be multiplied by the evaluation threshold 73. The application analysis unit 1701 changes the value of the correction coefficient depending on what application is running. For example, when the application is CT or tomosynthesis, the error is largely propagated to the reconstructed image. Therefore, the adaptive threshold 75 is obtained by multiplying the correction coefficient so that the evaluation threshold 73 becomes small. On the other hand, when the application is general fluoroscopy, the S / N is poor because of low-dose imaging, and the influence of the error is considered to be small. Therefore, in general fluoroscopic imaging, the value obtained by multiplying the correction coefficient so that the evaluation threshold 73 becomes large or the value as it is of the evaluation threshold 73 is output as the adaptive threshold 75. Note that the application analysis unit 1701 does not need to execute the extraction of the subject area every time in the loop for processing each defective pixel, and the determination result of the application performed first may be used in the subsequent loops.

以上のように、第8実施形態によれば、近似精度に応じて補正処理を切り替える処理において、近似精度と比較するための閾値が、稼働中のアプリケーションに応じて変更される。そのため、CTやトモシンセシスのための撮影や一般透視撮影といった撮影の種類に応じて適切に補正処理を切り替えることができる。なお、第8実施形態による閾値の変更処理を第5実施形態で用いられる補正率の閾値に適用してもよい。   As described above, according to the eighth embodiment, in the process of switching the correction process according to the approximation accuracy, the threshold for comparison with the approximation accuracy is changed according to the running application. Therefore, the correction process can be appropriately switched according to the type of imaging such as CT or tomosynthesis imaging or general fluoroscopic imaging. Note that the threshold value changing process according to the eighth embodiment may be applied to the threshold value of the correction factor used in the fifth embodiment.

<第9実施形態>
次に、異なるゲインの画像を使ってダイナミックレンジを拡張させる処理を示す。第9実施形態のX線撮影装置100の構成、X線センサ102の1画素当たりの回路構成は第1実施形態(図1、図2)と同様である。ダイナミックレンジを拡張させるには、線量に応じて高ゲインモードと低ゲインモードで取得した画素値を合成することでできる。図3に示す入出力特性において、2つのゲインモードがカバーする画素値エリアが拡張されたダイナミックレンジになる。以下、図18の機能構成図と図19のフローチャートを参照して第9実施形態の処理を説明する。
<Ninth Embodiment>
Next, processing for extending the dynamic range using images with different gains will be described. The configuration of the X-ray imaging apparatus 100 of the ninth embodiment and the circuit configuration per pixel of the X-ray sensor 102 are the same as those of the first embodiment (FIGS. 1 and 2). In order to extend the dynamic range, pixel values acquired in the high gain mode and the low gain mode can be synthesized according to the dose. In the input / output characteristics shown in FIG. 3, the pixel value area covered by the two gain modes has an expanded dynamic range. The processing of the ninth embodiment will be described below with reference to the functional configuration diagram of FIG. 18 and the flowchart of FIG.

画素値補正部1801は、ゲインモードAで撮影されたX線画像(A)51とゲインモードBで撮影されたX線画像(B)52を取得する(ステップ1901)。ここで、X線画像(A)51およびX線画像(B)52は前処理が行われている画像とする。前処理とは、オフセット補正、Log変換、ゲイン補正などのセンサの特性を補正する処理であり、画像データは前処理により周辺画素との相関関係が保たれている状態になる。   The pixel value correction unit 1801 acquires an X-ray image (A) 51 imaged in the gain mode A and an X-ray image (B) 52 imaged in the gain mode B (step 1901). Here, the X-ray image (A) 51 and the X-ray image (B) 52 are images that have undergone preprocessing. Pre-processing is processing for correcting sensor characteristics such as offset correction, log conversion, and gain correction, and image data is in a state in which a correlation with surrounding pixels is maintained by pre-processing.

続いて、画素値補正部1101は、ゲインモードAの入出力特性(A)71とゲインモードBの入出力特性(B)72を取得する(ステップ1902)。入出力特性(A)71はステップ1201にて取得したX線画像(A)51と同じゲインモードAでの入出力特性、入出力特性(B)72はステップ1201にて取得したX線画像(B)52と同じゲインモードBでの入出力特性である。   Subsequently, the pixel value correction unit 1101 acquires the input / output characteristic (A) 71 of the gain mode A and the input / output characteristic (B) 72 of the gain mode B (step 1902). The input / output characteristic (A) 71 is an input / output characteristic in the same gain mode A as the X-ray image (A) 51 acquired in step 1201, and the input / output characteristic (B) 72 is an X-ray image acquired in step 1201 ( B) Input / output characteristics in the same gain mode B as 52.

また、評価部1802は、閾値76を入力または設定する(ステップ1903)。閾値76は補正率に関する閾値である。補正率とは異なるゲインモード間のリニアリティをそろえるための係数である。異なるゲインモードの画素を使って合成するには、リニアリティをそろえてから合成する必要がある。そのため異なるゲインモードの画素に補正率を乗じる必要が生じる。しかし、補正率の乗算は信号もノイズも同様に行われる。ノイズにはX線の線量に比例しないシステムノイズが含まれているため、補正率が大きくなればなるほど、S/Nが悪くなる。したがってS/Nが診断上影響のないレベルの最大補正率を設定し、それを閾値76とする。   Also, the evaluation unit 1802 inputs or sets the threshold value 76 (step 1903). The threshold value 76 is a threshold value regarding the correction rate. The correction factor is a coefficient for aligning linearity between different gain modes. To synthesize using pixels in different gain modes, it is necessary to synthesize after aligning linearity. Therefore, it is necessary to multiply the pixels in different gain modes by the correction factor. However, the multiplication of the correction factor is performed for both the signal and the noise. Since the noise includes system noise that is not proportional to the X-ray dose, the larger the correction factor, the worse the S / N. Therefore, the maximum correction rate at which the S / N does not affect the diagnosis is set, and is set as the threshold value 76.

次に、評価部1802と画像合成部1803は、異なるゲインの画像を合成する処理を画素数分行う(ステップ1904)。まず、評価部1802は、各画素における補正率を計算する(ステップ1905)。補正率は例えば第5実施形態で説明した数5を用いて算出される。次に、評価部1802は、得られた補正率と閾値76を比較する(ステップ1906)。補正率が閾値76よりも大きければ、精度の高い補正が得られないと判断し、評価部1802は処理対象となっている画素を欠陥画素と判断する(ステップ1907)。一方、補正率が閾値76より小さければ、評価部1802は補正精度に問題はないと判断する。補正精度に問題がないと判断されると、画像合成部1803は、補正した画素値にて画像を合成する(ステップ1908)。合成の式は、ゲインモードAの補正された画素値をS(x、y)、ゲインモードBの画素値S(x、y)、とし、合成係数をwとすると、以下の数7のようになる。

Figure 0006250988
wの範囲は0以上1以下である。wはX線量の値の増加に応じて増加する増加関数であれば、その形状は線形でもシグモイドでもよい。各画素について以上のような合成処理を繰り返すことにより、合成画像が生成される。なお、上記では欠陥画素とするか否かの判定を補正率の大きさに基づいて行ったが、これに限られるものではなく、たとえば、第6実施形態の近似精度を用いた判定を利用してもよい。 Next, the evaluation unit 1802 and the image synthesis unit 1803 perform the process of synthesizing images with different gains for the number of pixels (step 1904). First, the evaluation unit 1802 calculates a correction factor for each pixel (step 1905). The correction factor is calculated using, for example, Formula 5 described in the fifth embodiment. Next, the evaluation unit 1802 compares the obtained correction factor with the threshold 76 (step 1906). If the correction rate is larger than the threshold value 76, it is determined that highly accurate correction cannot be obtained, and the evaluation unit 1802 determines that the pixel to be processed is a defective pixel (step 1907). On the other hand, if the correction rate is smaller than the threshold value 76, the evaluation unit 1802 determines that there is no problem in the correction accuracy. If it is determined that there is no problem with the correction accuracy, the image composition unit 1803 composes an image with the corrected pixel values (step 1908). Assuming that the corrected pixel value in the gain mode A is S A (x, y), the pixel value S B (x, y) in the gain mode B, and the combining coefficient is w, become that way.
Figure 0006250988
The range of w is 0 or more and 1 or less. If w is an increasing function that increases as the value of the X-ray dose increases, the shape thereof may be linear or sigmoid. A combined image is generated by repeating the above combining process for each pixel. In the above, the determination as to whether or not the pixel is a defective pixel is made based on the magnitude of the correction factor, but the present invention is not limited to this. For example, the determination using the approximation accuracy of the sixth embodiment is used. May be.

<第10実施形態>
以下の第10実施形態、第11実施形態では、異なるゲインモードで取得した画素で補正したことに起因した後段の処理への影響を低減する構成を説明する。例えば、欠陥補正によって欠損したグリッド縞を復元する処理が挙げられる。周辺画素からの欠陥補正はグリッド縞が欠損するため復元処理が必要となるが、異なるゲインモードでの欠陥補正結果はグリッド縞を有しているため、グリッド縞を復元する必要がない。そこで、異なるゲインモードで取得した画素を用いて行った欠陥補正によって後段の処理に必要な情報(例えば、グリッド縞の情報)が残存しているかどうかをチェックする。そして、そのチェック結果に従って、後段の画像処理(例えば、グリッド縞補正)で参照する欠陥情報を更新する。
<Tenth Embodiment>
In the following tenth and eleventh embodiments, a configuration for reducing the influence on subsequent processing due to correction by pixels acquired in different gain modes will be described. For example, there is a process for restoring grid stripes that have been lost due to defect correction. The defect correction from the peripheral pixels requires a restoration process because the grid stripes are lost. However, since the defect correction results in different gain modes have the grid stripes, there is no need to restore the grid stripes. Therefore, it is checked whether information necessary for subsequent processing (for example, information on grid stripes) remains due to defect correction performed using pixels acquired in different gain modes. Then, according to the check result, the defect information referred to in the subsequent image processing (for example, grid stripe correction) is updated.

図20の機能構成図と図21のフローチャートを用いて、第10実施形態の処理を説明する。なお、ライン欠陥抽出部2003は第11実施形態で用いられる構成であるので、第11実施形態において説明する。また、X線撮影装置の構成やX線センサ102の各画素の回路構成は図1、図2を用いて説明したとおりである。補正方法選択部2001は、ゲインモードAで撮影されたX線画像(A)51とゲインモードBで撮影されたX線画像(B)52を取得する(ステップ2101)。X線画像(A)51およびX線画像(B)52は前処理が行われている画像とする。前処理とは、オフセット補正、Log変換、ゲイン補正などのセンサの特性を補正する処理であり、前処理により画像データは周辺画素との相関関係が保たれている状態になる。   The processing of the tenth embodiment will be described using the functional configuration diagram of FIG. 20 and the flowchart of FIG. The line defect extraction unit 2003 has the configuration used in the eleventh embodiment, and will be described in the eleventh embodiment. The configuration of the X-ray imaging apparatus and the circuit configuration of each pixel of the X-ray sensor 102 are as described with reference to FIGS. The correction method selection unit 2001 acquires an X-ray image (A) 51 imaged in the gain mode A and an X-ray image (B) 52 imaged in the gain mode B (step 2101). The X-ray image (A) 51 and the X-ray image (B) 52 are images that have been preprocessed. Pre-processing is processing for correcting sensor characteristics such as offset correction, log conversion, and gain correction, and image data is in a state in which correlation with peripheral pixels is maintained by pre-processing.

補正方法選択部2001は、ゲインモードAにおける欠陥情報(A)61を取得し、評価部2004と欠陥情報比較部2002は欠陥情報(A)61と欠陥情報(B)62を取得する(ステップ2102)。さらに評価部2004は、ゲインモードAの入出力特性(A)71とゲインモードBの入出力特性(B)72を取得する(ステップ2103)。すなわち、入出力特性(A)71はステップ2101にて取得したX線画像(A)51と同じゲインモードAでの入出力特性であり、入出力特性(B)72はステップ2101にて取得したX線画像(B)52と同じゲインモードでの入出力特性である。   The correction method selection unit 2001 acquires the defect information (A) 61 in the gain mode A, and the evaluation unit 2004 and the defect information comparison unit 2002 acquire the defect information (A) 61 and the defect information (B) 62 (step 2102). ). Further, the evaluation unit 2004 acquires the input / output characteristic (A) 71 of the gain mode A and the input / output characteristic (B) 72 of the gain mode B (step 2103). That is, the input / output characteristic (A) 71 is an input / output characteristic in the same gain mode A as the X-ray image (A) 51 acquired in step 2101, and the input / output characteristic (B) 72 is acquired in step 2101. This is an input / output characteristic in the same gain mode as that of the X-ray image (B) 52.

次に補正方法選択部2001は、合成欠陥情報63を欠陥情報比較部2002から取得する(ステップ2104)。欠陥情報比較部2002による合成欠陥情報63の生成は、第1実施形態(図5の(b)、図6)で説明したとおりである。すなわち、合成欠陥情報63には、ゲインモードAとゲインモードBで共に欠陥である画素と、どちらか一方のゲインモードで欠陥である画素と、どちらのゲインモードでも欠陥ではない画素との判別のつく情報が含まれている。   Next, the correction method selection unit 2001 acquires the composite defect information 63 from the defect information comparison unit 2002 (step 2104). The generation of the composite defect information 63 by the defect information comparison unit 2002 is as described in the first embodiment (FIG. 5B, FIG. 6). In other words, the composite defect information 63 is used to discriminate pixels that are defective in both gain mode A and gain mode B, pixels that are defective in either gain mode, and pixels that are not defective in either gain mode. It contains information that is attached.

評価部2004は、欠陥情報(A)61が示すX線画像(A)51の全ての欠陥画素に対して、合成欠陥情報63を参照してゲインモードBでの対応する画素が正常画素であるかどうかをチェックする(ステップ2105、2106)。ゲインモードBでの対応する画素も欠陥画素である場合は、「異なるゲインモードを用いた補正」を用いることができない。そのため、欠陥補正部2005は同じゲインモードAにおける欠陥画素の周辺画素を用いて補正を行う。この補正方法は、数1を用いて第1実施形態で説明したとおりである(ステップ2110)。そして欠陥情報更新部2006がこの補正対象画素を欠陥画素として登録し、後段の画像処理において参照される欠陥情報91を更新する(ステップ2111)。一方、ゲインモードBが正常画素である場合は、ゲインモードBの画素を使用する異なるゲインモードでの補正方法を選択する(ステップ2106→ステップ2107)。   The evaluation unit 2004 refers to the composite defect information 63 for all the defective pixels of the X-ray image (A) 51 indicated by the defect information (A) 61, and the corresponding pixels in the gain mode B are normal pixels. It is checked whether or not (Steps 2105 and 2106). When the corresponding pixel in the gain mode B is also a defective pixel, “correction using different gain modes” cannot be used. Therefore, the defect correction unit 2005 performs correction using the peripheral pixels of the defective pixel in the same gain mode A. This correction method is as described in the first embodiment using Equation 1 (step 2110). Then, the defect information update unit 2006 registers the correction target pixel as a defective pixel, and updates the defect information 91 referred to in the subsequent image processing (step 2111). On the other hand, when the gain mode B is a normal pixel, a correction method in a different gain mode using the pixel of the gain mode B is selected (step 2106 → step 2107).

異なるゲインモードでの補正方法ではまずゲインを補正する処理が行われる。まず入出力特性(A)71および入出力特性(B)72の近似式を算出する。入出力特性は線量に対してリニアリティが失われているため、その補正を行いやすいようにリニアリティγA、γBを使って近似する。ゲインモード毎に数8、数9のように近似する。

Figure 0006250988
Figure 0006250988
In a correction method in a different gain mode, first, a process for correcting the gain is performed. First, approximate equations of the input / output characteristic (A) 71 and the input / output characteristic (B) 72 are calculated. Since the linearity is lost with respect to the dose, the input / output characteristics are approximated using linearity γA and γB so that the correction can be easily performed. It approximates like several 8 and several 9 for every gain mode.
Figure 0006250988
Figure 0006250988

数8、数9への近似は、それぞれのゲインモードにおける複数のサンプリング点から最小二乗法等で算出する。次にX線画像(B)52の対応する画素値を入力とし、補正結果を計算する。すなわち、X線画像(B)52の画素値から、数9の逆変換を使って入力値を計算する。得られた入力値に対し、数8を使って補正画素値を求めることで、ゲインに対応した補正を完了する。   The approximations to Equations 8 and 9 are calculated by a least square method or the like from a plurality of sampling points in each gain mode. Next, the corresponding pixel value of the X-ray image (B) 52 is input, and a correction result is calculated. That is, the input value is calculated from the pixel value of the X-ray image (B) 52 using the inverse transformation of Equation 9. The correction corresponding to the gain is completed by obtaining the corrected pixel value using Equation 8 for the obtained input value.

次に、評価部2004は、異なるゲインモードを用いた上記補正処理によって補正された後のX線画像(A)から得られるスペクトルに基づいて、上記補正処理による欠陥画素の補正が適切か不適切かを評価する。本実施形態では、後段のグリッド縞補正を考慮して、X線画像(A)から得られるスペクトルに基づいてグリッド縞が維持されているか否かを評価し、グリッド縞が維持されていれば上記補正処理は適切であり、維持されていなければ不適切であると評価する。本実施形態では、欠陥画素の位置をとおる2つの直交する方向に関する特定の周波数(本実施形態ではグリッド縞のピーク周波数)のスペクトル値の比と、欠陥画素の位置をとおらない2つの直交する方向に関する特定の周波数のスペクトル値の比との比較を行う。以下、より詳細な具体的に説明する。   Next, the evaluation unit 2004 determines whether correction of defective pixels by the correction process is appropriate or inappropriate based on the spectrum obtained from the X-ray image (A) after correction by the correction process using different gain modes. To evaluate. In the present embodiment, in consideration of the grid stripe correction in the subsequent stage, it is evaluated whether or not the grid stripe is maintained based on the spectrum obtained from the X-ray image (A). If the correction process is appropriate and is not maintained, it is evaluated as inappropriate. In the present embodiment, the ratio of the spectral values of a specific frequency (in this embodiment, the peak frequency of the grid stripes) in two orthogonal directions passing through the position of the defective pixel, and the two orthogonal directions not passing through the position of the defective pixel. A comparison is made with the ratio of the spectral values of a particular frequency with respect to the direction. Hereinafter, more detailed description will be given.

まず、評価部2004は、異なるゲインモードでの補正を行った補正対象画素に対して、その補正後の欠陥画素を含み、グリッド縞方向と垂直な方向のスペクトルS1と、グリッド縞方向と同方向であるスペクトルS2とを計算する。さらに補正対象欠陥画素周辺における、グリッド縞方向と垂直な方向の参照スペクトルRS1と、グリッド縞方向と同方向である参照スペクトルRS2とを計算する。グリッド縞によるピーク周波数をfgとしたとき、スペクトルS1、S2によるピーク比Pおよび参照スペクトルRS1、RS2による参照ピーク比PRSは、数10および数11のようになる。

Figure 0006250988
Figure 0006250988
First, the evaluation unit 2004 includes a corrected pixel that has been corrected in a different gain mode, includes a defective pixel after the correction, a spectrum S1 in a direction perpendicular to the grid stripe direction, and the same direction as the grid stripe direction. A spectrum S2 is calculated. Further, the reference spectrum RS1 in the direction perpendicular to the grid stripe direction and the reference spectrum RS2 in the same direction as the grid stripe direction around the correction target defective pixel are calculated. When the peak frequency by the grid pattern was fg, reference peak ratio P RS by peak ratio P S and the reference spectrum RS1, RS2 by spectrum S1, S2 is as shown in Equation 10 and Equation 11.
Figure 0006250988
Figure 0006250988

ピーク比は、グリッド縞の分だけ大きな値となって出力される。この値が周辺と等しいか否かでグリッド縞情報を欠損していないかどうかを判断することができる。評価部2004は、参照ピーク比PRSとピーク比Pとを比較し、それらの差あるいは比を評価値として算出し(ステップ2108)、評価値が所定の範囲内に収まっているかをチェックする(ステップ2109)。評価値が所定の範囲内に収まっている場合は、グリッド縞情報まで正確に補正ができていると判断し、欠陥補正部105はこの補正結果を欠陥補正結果として出力する。以降の処理でこの補正対象画素は正常画素として使用される。「異なるゲインモードを用いた補正」が採用された場合、欠陥情報更新部2006は、グリッド縞補正用の欠陥情報91に当該欠陥画素を正常画素として登録する(ステップ2111)。こうして、異なるゲインモードでの補正処理により補正された画素は、グリッド縞補正の対象から除外されることになる。 The peak ratio is output as a large value corresponding to the grid stripes. It can be determined whether or not the grid stripe information is missing based on whether this value is equal to the surrounding area. Evaluation unit 2004 compares the reference peak ratio P RS and the peak ratio P S, calculates their difference or ratio as an evaluation value (step 2108), the evaluation value is checked whether within a predetermined range (Step 2109). If the evaluation value is within the predetermined range, it is determined that the grid stripe information has been accurately corrected, and the defect correction unit 105 outputs the correction result as the defect correction result. In the subsequent processing, the correction target pixel is used as a normal pixel. When “correction using different gain modes” is employed, the defect information update unit 2006 registers the defective pixel as a normal pixel in the defect information 91 for grid stripe correction (step 2111). Thus, the pixels corrected by the correction process in different gain modes are excluded from the grid stripe correction target.

一方、ステップ2118で評価値が所定の範囲内に収まっていない場合、評価部2004はグリッド縞情報が正確に補正できていないと判断する。評価部2004はこの判断を受けて、欠陥補正部2005に同じゲインモードAの周辺画素用いた補正(第1実施形態の数1を用いた補正)を実行させる(ステップ2110)。この場合、その補正対象画素は以降も欠陥画素であるとして使用される。そのため、欠陥情報更新部2006はグリッド縞補正用の欠陥情報91に、欠陥画素であることを登録する(ステップ2110)。欠陥情報91に欠陥画素と登録されると、グリッド縞補正を行う際に、前処理としてグリッド縞を考慮した特別な欠陥補正をする必要があるが、正常画素と登録されると、その必要がない。本実施形態によれば、異なるゲインモードで補正を実行できた場合(ピーク比に基づいてグリッド縞が維持されている場合)にはグリッド縞を考慮した欠陥補正を実施する必要が無くなるため、処理の高速化が見込める。
On the other hand, if the evaluation value does not fall within the predetermined range in step 2118, the evaluation unit 2004 determines that the grid stripe information cannot be corrected accurately. Evaluation unit 2004 receives the decision to perform the correction using the peripheral pixels of the same gain mode A to the defect correction unit 2005 (correction using the number 1 of the first embodiment) (Step 2110). In this case, the correction target pixel is used as a defective pixel. Therefore, the defect information update unit 2006 registers the defect pixel in the defect information 91 for grid stripe correction (step 2110). When a defective pixel is registered in the defect information 91, it is necessary to perform a special defect correction in consideration of the grid stripe as preprocessing when performing grid stripe correction. Absent. According to this embodiment, since there is no need to perform defect correction in consideration of the grid stripes (when the grid stripes is maintained on the basis of peak ratio) different if the gain mode can perform the correction, High speed processing is expected.

<第11実施形態>
次に、図20の機能構成図と図22のフローチャートを参照して、第11実施形態の処理を説明する。第11実施形態では、ライン状に所定数以上の欠陥画素が連続する部分(ライン欠陥部分)をひとまとまりにして処理する。X線撮影装置の構成やX線センサ102の各画素の回路構成は図1、図2を用いて説明したとおりである。また、ステップ2201〜2204の処理は第10実施形態(図21)のステップ2101〜2104と同様である。
<Eleventh embodiment>
Next, processing of the eleventh embodiment will be described with reference to the functional configuration diagram of FIG. 20 and the flowchart of FIG. In the eleventh embodiment, a portion (line defect portion) where a predetermined number or more of defective pixels continue in a line is processed as a group. The configuration of the X-ray imaging apparatus and the circuit configuration of each pixel of the X-ray sensor 102 are as described with reference to FIGS. Further, the processing of steps 2201 to 2204 is the same as that of steps 2101 to 2104 of the tenth embodiment (FIG. 21).

ライン欠陥抽出部2003は、ライン欠陥定義79を取得する(ステップ2205)。ライン欠陥定義79とは、たとえば、連結する欠陥画素が3画素以上である、といったものである。そして、補正方法選択部2001は、ライン欠陥抽出部2003からライン欠陥情報65を読み込む(ステップ2206)。ライン欠陥情報65は、ライン欠陥抽出部2003によって生成される。ライン欠陥情報65の抽出において、ライン欠陥抽出部2003は、ゲインモードAの欠陥情報(A)61とゲインモードBの欠陥情報(B)62とを取得する。そして、ライン欠陥抽出部2003は、これら欠陥情報に基づいてライン欠陥情報を生成する。   The line defect extraction unit 2003 acquires the line defect definition 79 (step 2205). The line defect definition 79 is, for example, that three or more defective pixels are connected. Then, the correction method selection unit 2001 reads the line defect information 65 from the line defect extraction unit 2003 (step 2206). The line defect information 65 is generated by the line defect extraction unit 2003. In the extraction of the line defect information 65, the line defect extraction unit 2003 acquires the defect information (A) 61 in the gain mode A and the defect information (B) 62 in the gain mode B. Then, the line defect extraction unit 2003 generates line defect information based on the defect information.

図23は、本実施形態によるライン欠陥抽出方法の一例を示す図である。ゲインモードAでの欠陥情報を欠陥情報(A)61、ゲインモードBでの欠陥情報を欠陥情報(B)62とすると、そのライン欠陥情報はライン欠陥情報65のようになる(ステップ2211)。すなわち、欠陥情報(A)61では欠陥画素であるが、欠陥情報(B)62では正常画素である画素のうち、所定数以上の画素が連続してライン状になっている部分がライン欠陥部分として抽出される。ライン欠陥として抽出するための基準は、上述したライン欠陥定義79に基づいて設定される。例えば、上述したように、ライン欠陥定義79が「連結する欠陥画素が3画素以上」である場合、同一方向へ連結している欠陥画素の数が3画素以上のものがライン画素として抽出される。   FIG. 23 is a diagram showing an example of the line defect extraction method according to the present embodiment. If the defect information in the gain mode A is defect information (A) 61 and the defect information in the gain mode B is defect information (B) 62, the line defect information becomes line defect information 65 (step 2211). That is, a defective pixel in the defect information (A) 61 but a normal pixel in the defect information (B) 62 is a line defective portion where a predetermined number or more of pixels are continuously in a line shape. Extracted as The standard for extracting as a line defect is set based on the line defect definition 79 described above. For example, as described above, when the line defect definition 79 is “3 or more defective pixels to be connected”, those having 3 or more defective pixels connected in the same direction are extracted as line pixels. .

評価部2004は、ゲインモードAにおける全ての欠陥画素に対して、合成欠陥情報63から、ゲインモードBでの対応する画素が正常画素であるかどうかをチェックする(ステップ2207、2208)。ゲインモードBが欠陥画素である場合は、異なるゲインモードを用いた補正を実行することができない。そのため、欠陥補正部2005は、例えば数1を用いた周辺画素補正を実行する(ステップ2209)。そして欠陥情報更新部2006がこの補正対象画素を欠陥画素として登録し、グリッド補正のための欠陥情報91を生成する(ステップ2215)。すなわち、「異なるゲインモードを用いた補正」により補正されなかった画素は、後段のグリッド縞補正処理の対象となる。   The evaluation unit 2004 checks whether or not the corresponding pixel in the gain mode B is a normal pixel from the combined defect information 63 for all defective pixels in the gain mode A (steps 2207 and 2208). When the gain mode B is a defective pixel, correction using a different gain mode cannot be executed. For this reason, the defect correction unit 2005 performs peripheral pixel correction using Equation 1, for example (step 2209). Then, the defect information update unit 2006 registers the correction target pixel as a defective pixel, and generates defect information 91 for grid correction (step 2215). That is, pixels that have not been corrected by “correction using different gain modes” are subjected to grid stripe correction processing in the subsequent stage.

一方、ゲインモードAでは欠陥画素であるがゲインモードBでは正常画素である場合は、ゲインモードBの画素を使用する異なるゲインモードを用いた補正の採用を検討する。第11実施形態では、異なるゲインモードを用いた補正はステップ2206で得たライン欠陥情報が示すライン欠陥単位で行われる(ステップ2210)。異なるゲインモードを用いた補正(ステップ2211)とピーク比の算出(ステップ2212)は第10実施形態のステップ2107、ステップ2108と同様である。   On the other hand, if the gain mode A is a defective pixel but the gain mode B is a normal pixel, the use of correction using a different gain mode using a gain mode B pixel is considered. In the eleventh embodiment, correction using different gain modes is performed in units of line defects indicated by the line defect information obtained in step 2206 (step 2210). Correction using different gain modes (step 2211) and peak ratio calculation (step 2212) are the same as steps 2107 and 2108 of the tenth embodiment.

評価部2004は、ステップ2212で算出されたピーク比と参照ピーク比との差(あるいは比)を求め、ライン欠陥内で順位づけを行う(ステップ2213)。図24に順位付けの例を示す。図24では、(a)に示されるように、7個の欠陥画素が縦方向に並ぶライン欠陥についての処理例が示されている。ステップ2211の処理によりライン欠陥を構成する各欠陥画素を異なるゲインモードの対応する画素の画素値で補正し、ステップ2212の処理により補正後のピーク比と参照ピークの誤差を算出した様子を表したものが(b)に示されている。そして、ステップ2213の処理により、ピーク比の誤差を昇順に順位付けた様子を表したものが(c)である。ステップ2221では、これらの中で順位の低い画素、つまりピーク比誤差が小さい画素から正常画素と判断し、ライン欠陥定義79に当てはまらなくなるまで、欠陥マップを更新する。図8の場合、順位が3位までの画素を正常画素と判断することで、3個以上の連結状態をライン欠陥とするライン欠陥定義に該当する欠陥画素が無くなる。   The evaluation unit 2004 obtains the difference (or ratio) between the peak ratio calculated in step 2212 and the reference peak ratio, and ranks the line defects within the line defects (step 2213). FIG. 24 shows an example of ranking. FIG. 24 shows an example of processing for a line defect in which seven defective pixels are arranged in the vertical direction, as shown in FIG. Each defect pixel constituting the line defect is corrected by the pixel value of the corresponding pixel in a different gain mode by the process of step 2211, and the corrected peak ratio and reference peak error are calculated by the process of step 2212. The one is shown in (b). Then, (c) shows a state in which the peak ratio errors are ranked in ascending order by the processing of step 2213. In step 2221, a pixel having a low rank among them, that is, a pixel having a small peak ratio error is determined as a normal pixel, and the defect map is updated until it does not apply to the line defect definition 79. In the case of FIG. 8, by determining that the pixels in the third rank are normal pixels, there are no defective pixels corresponding to the line defect definition having three or more connected states as line defects.

したがって、この場合、欠陥情報更新部2006は、順位が3位までの画素を正常画素とし、欠陥補正部2005は、これらの補正結果(ステップ2211出られた結果)を欠陥補正結果として出力する。また、これら正常画素と判定された画素について、正常画素であることを示すようにグリッド補正のための欠陥情報91を更新する(ステップ2215)。これらの画素は、後段のグリッド縞補正の対象から除外されることになる。一方、順位が4位以降のものは、グリッド補正において欠陥画素として判断するため、欠陥補正部2005は、例えば数1を用いて周辺画素補正を行う(ステップ2209)。そして、欠陥情報更新部2006はそれらの画素(順位が4位以降の画素)を欠陥画素として登録する(ステップ2215)。   Therefore, in this case, the defect information update unit 2006 sets the pixels having the third rank as normal pixels, and the defect correction unit 2005 outputs these correction results (results obtained in Step 2211) as defect correction results. Further, the defect information 91 for grid correction is updated so as to indicate that these pixels are determined to be normal pixels (step 2215). These pixels are excluded from the target of grid stripe correction at the subsequent stage. On the other hand, since the fourth and higher ranks are determined as defective pixels in grid correction, the defect correction unit 2005 performs peripheral pixel correction using, for example, Equation 1 (step 2209). Then, the defect information update unit 2006 registers those pixels (pixels in the fourth and subsequent ranks) as defective pixels (step 2215).

以上のように、第11実施形態によれば、誤差の小さいものが優先的に正常画素として扱われることで画質に対する影響を小さくすることができる。   As described above, according to the eleventh embodiment, it is possible to reduce the influence on the image quality by preferentially treating a pixel with a small error as a normal pixel.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (27)

第1のゲインモードと、前記第1のゲインモードとは異なる第2のゲインモードで撮影が可能な撮像装置により得られた画像を処理する画像処理装置であって、
前記撮像装置の、前記第1のゲインモードにおける欠陥画素の位置を示す第1の欠陥情報と、前記第2のゲインモードにおける欠陥画素の位置を示す第2の欠陥情報を取得する取得手段と、
前記第1と第2の欠陥情報に基づいて、前記撮像装置が前記第1のゲインモードで撮影した第1の画像における欠陥画素の補正処理を切り替える切替手段と、を備え、
前記切替手段は、前記第1の画像における前記欠陥画素の周囲の画素を用いて前記欠陥画素を補正する第1の補正処理と、前記撮像装置が前記第2のゲインモードで撮影した第2の画像における前記欠陥画素に対応する画素を用いて前記欠陥画素を補正する第2の補正処理との選択を切り替えることを特徴とする画像処理装置。
An image processing device that processes an image obtained by an imaging device capable of photographing in a first gain mode and a second gain mode different from the first gain mode,
Acquisition means for acquiring first defect information indicating a position of a defective pixel in the first gain mode and second defect information indicating a position of the defective pixel in the second gain mode of the imaging apparatus;
Switching means for switching correction processing of defective pixels in the first image captured by the imaging device in the first gain mode based on the first and second defect information;
The switching means includes a first correction process for correcting the defective pixel using pixels around the defective pixel in the first image, and a second correction image captured by the imaging device in the second gain mode. An image processing apparatus, wherein selection is switched between a second correction process for correcting the defective pixel using a pixel corresponding to the defective pixel in the image.
前記第1の欠陥情報から、前記欠陥画素の周囲の正常画素の数を計数する計数手段を更に備え、
前記切替手段は、さらに前記計数手段で計数された正常画素の数に基づいて補正処理を切り替えることを特徴とする請求項1に記載の画像処理装置。
A counter for counting the number of normal pixels around the defective pixel from the first defect information;
The image processing apparatus according to claim 1, wherein the switching unit further switches correction processing based on the number of normal pixels counted by the counting unit.
前記切替手段は、前記計数手段で計数された正常画素の数が閾値より少なく、前記第2の欠陥情報から前記欠陥画素が前記第2の画像において正常画素であると判定された場合に、前記第2の補正処理を選択することを特徴とする請求項2に記載の画像処理装置。   When the number of normal pixels counted by the counting unit is less than a threshold value and the defective pixel is determined to be a normal pixel in the second image from the second defect information, the switching unit is The image processing apparatus according to claim 2, wherein the second correction process is selected. 前記第1の画像の、前記欠陥画素の周囲の画像に基づいて、前記欠陥画素がエッジ領域に含まれるか否かを判定する判定手段を更に備え、
前記切替手段は、さらに前記判定手段による判定結果に基づいて補正処理を切り替えることを特徴とする請求項1乃至3のいずれか1項に記載の画像処理装置。
A determination unit configured to determine whether the defective pixel is included in an edge region based on an image around the defective pixel in the first image;
The image processing apparatus according to claim 1, wherein the switching unit further switches correction processing based on a determination result by the determination unit.
前記切替手段は、前記判定手段で前記欠陥画素がエッジ領域に含まれると判定され、前記第2の欠陥情報から前記欠陥画素が前記第2の画像において正常画素であると判定された場合に、前記第2の補正処理を選択することを特徴とする請求項4に記載の画像処理装置。   The switching unit determines that the defective pixel is included in an edge region by the determining unit, and determines that the defective pixel is a normal pixel in the second image from the second defect information. The image processing apparatus according to claim 4, wherein the second correction process is selected. 前記第1の画像の前記欠陥画素の周囲の画像からノイズ量を算出する算出手段を更に備え、
前記切替手段は、さらに前記算出手段により算出されたノイズ量に基づいて補正処理を切り替えることを特徴とする請求項1乃至5のいずれか1項に記載の画像処理装置。
A calculation means for calculating a noise amount from an image around the defective pixel of the first image;
The image processing apparatus according to claim 1, wherein the switching unit further switches correction processing based on a noise amount calculated by the calculation unit.
前記切替手段は、前記算出手段で算出されたノイズ量が閾値を超え、前記第2の欠陥情報から前記欠陥画素が前記第2の画像において正常画素であると判定された場合に、前記第2の補正処理を選択することを特徴とする請求項6に記載の画像処理装置。   When the noise amount calculated by the calculating unit exceeds a threshold value and the defective pixel is determined to be a normal pixel in the second image from the second defect information, the switching unit is The image processing apparatus according to claim 6, wherein the correction processing is selected. 前記第1の画像において前記第2の補正処理により補正された画素が正常画素であることを示すように、前記第1の欠陥情報を更新する更新手段を更に備えることを特徴とする請求項1乃至7のいずれか1項に記載された画像処理装置。   2. The image processing apparatus according to claim 1, further comprising update means for updating the first defect information so as to indicate that the pixel corrected by the second correction processing in the first image is a normal pixel. 8. The image processing device according to any one of items 7 to 7. 前記切替手段は、前記第1の欠陥情報よって示される欠陥画素に対応する位置の画素が第2の欠陥情報によって正常画素として示されている場合には前記第2の補正処理を選択し、他の場合には前記第1の補正処理を選択することを特徴とする請求項1に記載の画像処理装置。   The switching means selects the second correction process when a pixel at a position corresponding to the defective pixel indicated by the first defect information is indicated as a normal pixel by the second defect information; 2. The image processing apparatus according to claim 1, wherein the first correction process is selected. 前記第1のゲインモードにおけるX線量と出力信号の対応を示す第1の入出力特性と、前記第2のゲインモードにおけるX線量と出力信号の対応を示す第2の入出力特性とに基づいて、前記第2の補正処理の適用の適否を評価する評価手段を更に備え、
前記切替手段は、さらに前記評価手段の評価結果に基づいて補正処理を切り替えることを特徴とする請求項1乃至9のいずれか1項に記載の画像処理装置。
Based on a first input / output characteristic indicating the correspondence between the X-ray dose and the output signal in the first gain mode, and a second input / output characteristic indicating the correspondence between the X-ray dose and the output signal in the second gain mode. , Further comprising evaluation means for evaluating the suitability of application of the second correction process,
The image processing apparatus according to claim 1, wherein the switching unit further switches correction processing based on an evaluation result of the evaluation unit.
前記評価手段は、前記第1の入出力特性と前記第2の入出力特性に基づいて、前記第2の画像の画素値を前記第1の画像の前記欠陥画素の画素値へ変換するための補正率が評価閾値を超えるか否かを判定し、
前記切替手段は、前記補正率が前記評価閾値を超えると判定された場合には前記第1の補正処理を選択することを特徴とする請求項10に記載の画像処理装置。
The evaluation means converts the pixel value of the second image into the pixel value of the defective pixel of the first image based on the first input / output characteristic and the second input / output characteristic. Determine whether the correction rate exceeds the evaluation threshold,
The image processing apparatus according to claim 10, wherein the switching unit selects the first correction process when it is determined that the correction rate exceeds the evaluation threshold.
前記評価手段は、前記第1の入出力特性と前記第2の入出力特性に基づいて線形近似の誤差量を取得し、前記欠陥画素に対応する前記第2の画像の画素値における前記誤差量が評価閾値を超えるか否かを判定し、
前記切替手段は、前記誤差量が前記評価閾値を超えると判定された場合には前記第1の補正処理を選択することを特徴とする請求項10に記載の画像処理装置。
The evaluation unit obtains an error amount of linear approximation based on the first input / output characteristic and the second input / output characteristic, and the error amount in a pixel value of the second image corresponding to the defective pixel. Determine whether or not exceeds the evaluation threshold,
The image processing apparatus according to claim 10, wherein the switching unit selects the first correction process when it is determined that the error amount exceeds the evaluation threshold.
前記評価手段は、前記第1または第2の画像において、前記欠陥画素の位置が被写体領域内であるか否かに基づいて、前記評価閾値を変更することを特徴とする請求項11または12に記載の画像処理装置。   The evaluation means changes the evaluation threshold based on whether or not the position of the defective pixel is within a subject area in the first or second image. The image processing apparatus described. 前記評価手段は、前記欠陥画素の位置が前記被写体領域内の場合の前記評価閾値は、被写体領域外の場合の前記評価閾値よりも小さいことを特徴とする請求項13に記載の画像処理装置。   The image processing apparatus according to claim 13, wherein the evaluation unit is configured such that the evaluation threshold when the position of the defective pixel is within the subject region is smaller than the evaluation threshold when the position is outside the subject region. 前記評価手段は、稼働中の画像処理アプリケーションの種類に基づいて、前記評価閾値を変更することを特徴とする請求項11乃至14のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 11, wherein the evaluation unit changes the evaluation threshold based on a type of an active image processing application. 前記欠陥画素が前記第2の補正処理によって補正された後の前記第1の画像から得られるスペクトルに基づいて、前記第2の補正処理による前記欠陥画素の補正が適切か不適切かを判定するための評価値を生成する評価手段を更に備え、
前記切替手段は、前記評価値が適切であることを示す場合には前記第2の補正処理による補正結果を採用し、不適切であることを示す場合には前記第1の補正処理による補正結果を採用することを特徴とする請求項1乃至9のいずれか1項に記載の画像処理装置。
Based on the spectrum obtained from the first image after the defective pixel is corrected by the second correction process, it is determined whether the correction of the defective pixel by the second correction process is appropriate or inappropriate. An evaluation means for generating an evaluation value for
The switching means adopts the correction result by the second correction process when it indicates that the evaluation value is appropriate, and the correction result by the first correction process when it indicates that the evaluation value is inappropriate. The image processing apparatus according to claim 1, wherein the image processing apparatus is employed.
前記評価手段は、前記スペクトルに基づいてグリッド縞が維持されているか否かを示す評価値を生成することを特徴とする請求項16に記載の画像処理装置。   The image processing apparatus according to claim 16, wherein the evaluation unit generates an evaluation value indicating whether grid stripes are maintained based on the spectrum. 前記評価手段は、前記欠陥画素の位置をとおる2つの直交する方向についての特定の周波数におけるスペクトル値の比と、前記欠陥画素の位置をとおらない2つの直交する方向についての前記特定の周波数におけるスペクトル値の比との比較により前記評価値を生成することを特徴とする請求項16または17に記載の画像処理装置。   The evaluation means includes a ratio of spectral values at specific frequencies for two orthogonal directions passing through the position of the defective pixel, and a specific frequency at two specific directions not passing through the position of the defective pixel. The image processing apparatus according to claim 16, wherein the evaluation value is generated by comparison with a ratio of spectral values. 前記特定の周波数はグリッド縞のピーク周波数であり、前記2つの直交する方向の1つは前記グリッド縞に沿った方向であることを特徴とする請求項18に記載の画像処理装置。   The image processing apparatus according to claim 18, wherein the specific frequency is a peak frequency of a grid stripe, and one of the two orthogonal directions is a direction along the grid stripe. 前記評価手段は、前記第1のゲインモードでは欠陥画素であるが前記第2のゲインモードでは正常画素である画素のうち所定数以上の画素が連続するライン欠陥部分について、前記評価値が良好な順に欠陥画素を順位付けし、
前記切替手段は、前記順位付けされた順に欠陥画素を選択して前記第2の補正処理を適用して正常画素として扱う処理を、前記ライン欠陥部分において前記所定数以上に欠陥画素が連続しなくなるまで繰り返すことを特徴とする請求項16乃至19のいずれか1項に記載の画像処理装置。
In the first gain mode, the evaluation means has a good evaluation value for a line defect portion in which a predetermined number of pixels or more are continuous among the pixels that are defective pixels in the first gain mode but are normal pixels in the second gain mode. Rank the defective pixels in order,
The switching means selects a defective pixel in the ranked order and applies the second correction process to treat it as a normal pixel, and the defective pixels do not continue to be more than the predetermined number in the line defect portion. The image processing apparatus according to claim 16, wherein the image processing apparatus repeats the process until the process is repeated.
前記第2の補正処理による補正値が採用された欠陥画素を、後段の画像処理が参照する欠陥情報から除外することを特徴とする請求項16乃至20のいずれか1項に記載の画像処理装置。   21. The image processing apparatus according to claim 16, wherein a defective pixel in which a correction value obtained by the second correction process is adopted is excluded from defect information referred to by subsequent image processing. . 第1のゲインモードと、前記第1のゲインモードとは異なる第2のゲインモードで撮影が可能な撮像装置により得られた画像を処理する画像処理装置の制御方法であって、
前記撮像装置の、前記第1のゲインモードにおける欠陥画素の位置を示す第1の欠陥情報と、前記第2のゲインモードにおける欠陥画素の位置を示す第2の欠陥情報を取得する取得工程と、
前記第1と第2の欠陥情報に基づいて、前記撮像装置が前記第1のゲインモードで撮影した第1の画像における欠陥画素の補正処理を切り替える切替工程と、を有し、
前記切替工程では、前記第1の画像における前記欠陥画素の周囲の画素を用いて前記欠陥画素を補正する第1の補正処理と、前記撮像装置が前記第2のゲインモードで撮影した第2の画像における前記欠陥画素に対応する画素を用いて前記欠陥画素を補正する第2の補正処理との選択を切り替えることを特徴とする画像処理装置の制御方法。
A control method for an image processing device for processing an image obtained by an imaging device capable of photographing in a first gain mode and a second gain mode different from the first gain mode,
An acquisition step of acquiring first defect information indicating a position of a defective pixel in the first gain mode and second defect information indicating a position of the defective pixel in the second gain mode of the imaging device;
A switching step of switching correction processing of defective pixels in the first image captured by the imaging device in the first gain mode based on the first and second defect information,
In the switching step, a first correction process that corrects the defective pixel using pixels around the defective pixel in the first image, and a second correction that the imaging device has captured in the second gain mode. A control method for an image processing apparatus, wherein selection is switched between a second correction process for correcting the defective pixel using a pixel corresponding to the defective pixel in an image.
第1のゲインモードと、前記第1のゲインモードとは異なる第2のゲインモードで撮影が可能な撮像装置により得られた画像を処理する画像処理装置であって、
前記第1のゲインモードで取得された画素値と、前記第2のゲインモードで取得された画素値を前記第1のゲインモードにおける画素値へ変換した画素値と、を用いて各画素を合成する合成手段と、
前記合成の対象となる各画素に関して、前記第2のゲインモードにおける画素値を前記第1のゲインモードにおける画素値へ変換することの適否を前記第1および第2のゲインモードのそれぞれの入出力特性に基づいて評価する評価手段とを備え、
前記合成手段は、前記評価手段により不適切と評価された画素を欠陥画素とし、適切と評価された画素を合成して合成画像を生成することを特徴とする画像処理装置。
An image processing device that processes an image obtained by an imaging device capable of photographing in a first gain mode and a second gain mode different from the first gain mode,
Each pixel is synthesized using the pixel value acquired in the first gain mode and the pixel value acquired by converting the pixel value acquired in the second gain mode into the pixel value in the first gain mode. A synthesis means to
For each pixel to be combined, whether or not to convert the pixel value in the second gain mode into the pixel value in the first gain mode is input / output in each of the first and second gain modes. An evaluation means for evaluating based on characteristics ,
An image processing apparatus according to claim 1, wherein the synthesizing unit generates a synthesized image by synthesizing a pixel evaluated as inappropriate by the evaluation unit as a defective pixel and combining the pixels evaluated as appropriate.
前記評価手段は、前記第1および第2のゲインモードのそれぞれの入出力特性に基づいて、前記第2のゲインモードの画素値を前記第1のゲインモードの画素値へ変換するための補正率が閾値を超える場合には、前記変換が不適切であると評価することを特徴とする請求項23に記載の画像処理装置。   The evaluation means is a correction factor for converting the pixel value of the second gain mode into the pixel value of the first gain mode based on the input / output characteristics of the first and second gain modes. 24. The image processing apparatus according to claim 23, wherein if the value exceeds a threshold value, the conversion is evaluated as inappropriate. 前記評価手段は、前記第1および第2のゲインモードのそれぞれの入出力特性について線形近似との誤差量を取得し、前記第2のゲインモードの画素値を前記第1のゲインモードの画素値へ変換することの適否を、当該画素値における前記誤差量に基づいて評価することを特徴とする請求項23に記載の画像処理装置。   The evaluation unit obtains an error amount from linear approximation for each input / output characteristic of the first and second gain modes, and uses the pixel value of the second gain mode as the pixel value of the first gain mode. 24. The image processing apparatus according to claim 23, wherein whether or not to convert to an image is evaluated based on the error amount in the pixel value. 前記評価手段は、前記合成手段によって合成された後の画像から得られるスペクトルに基づいて、前記第2のゲインモードの画素値を前記第1のゲインモードの画素値へ変換することの適否を評価することを特徴とする請求項23に記載の画像処理装置。   The evaluation unit evaluates whether or not the pixel value of the second gain mode is converted to the pixel value of the first gain mode based on a spectrum obtained from the image synthesized by the synthesis unit. The image processing apparatus according to claim 23, wherein: 第1のゲインモードと、前記第1のゲインモードとは異なる第2のゲインモードで撮影が可能な撮像装置により得られた画像を処理する画像処理装置の制御方法であって、
前記第1のゲインモードで取得された画素値と、前記第2のゲインモードで取得された画素値を前記第1のゲインモードにおける画素値へ変換した画素値と、を用いて各画素を合成する合成工程と、
前記合成の対象となる各画素に関して、前記第2のゲインモードにおける画素値を前記第1のゲインモードにおける画素値へ変換することの適否を前記第1および第2のゲインモードのそれぞれの入出力特性に基づいて評価する評価工程とを有し、
前記合成工程では、前記評価工程で不適切と評価された画素を欠陥画素とし、適切と評価された画素を合成して合成画像を生成することを特徴とする画像処理装置の制御方法。
A control method for an image processing device for processing an image obtained by an imaging device capable of photographing in a first gain mode and a second gain mode different from the first gain mode,
Each pixel is synthesized using the pixel value acquired in the first gain mode and the pixel value acquired by converting the pixel value acquired in the second gain mode into the pixel value in the first gain mode. A synthesis process to
For each pixel to be combined, whether or not to convert the pixel value in the second gain mode into the pixel value in the first gain mode is input / output in each of the first and second gain modes. An evaluation process for evaluating based on characteristics,
In the composition step, a pixel evaluated as inappropriate in the evaluation step is used as a defective pixel, and a composite image is generated by combining pixels evaluated as appropriate.
JP2013185704A 2013-09-06 2013-09-06 Image processing method and apparatus Expired - Fee Related JP6250988B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013185704A JP6250988B2 (en) 2013-09-06 2013-09-06 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013185704A JP6250988B2 (en) 2013-09-06 2013-09-06 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JP2015052941A JP2015052941A (en) 2015-03-19
JP6250988B2 true JP6250988B2 (en) 2017-12-20

Family

ID=52701920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013185704A Expired - Fee Related JP6250988B2 (en) 2013-09-06 2013-09-06 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP6250988B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111476728B (en) * 2020-03-26 2024-05-24 上海奕瑞光电子科技股份有限公司 Image correction method and triggering method for image correction

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003333435A (en) * 2002-03-08 2003-11-21 Canon Inc Correcting device, image pickup device, correcting method, correcting computer program
JP2007306506A (en) * 2006-05-15 2007-11-22 Fujifilm Corp Imaging device
WO2013065515A1 (en) * 2011-11-01 2013-05-10 富士フイルム株式会社 Radiography device, radiography system, and radiography method

Also Published As

Publication number Publication date
JP2015052941A (en) 2015-03-19

Similar Documents

Publication Publication Date Title
KR101367747B1 (en) Radiographic apparatus and control method for the same
JP6570330B2 (en) Image processing apparatus, radiation imaging apparatus, image processing method, program, and storage medium
US10660598B2 (en) Image processing apparatus, image processing method, and image processing system
JP6214226B2 (en) Image processing apparatus, tomography apparatus, image processing method and program
JP2013123589A (en) Image processor, image processing method, and program
US9299141B2 (en) Image analysis apparatus, radiation imaging apparatus, image analysis method, and storage medium
US9025055B2 (en) Image processing apparatus, image processing method and radiation system
US9979911B2 (en) Image processing apparatus, radiation imaging apparatus, image processing method, and storage medium for dark correction
JP6987352B2 (en) Medical image processing equipment and medical image processing method
US10319083B2 (en) Image artifact detection and correction in scenes obtained from multiple visual images
JP5914843B2 (en) Image processing apparatus and image processing method
JP5868119B2 (en) Image processing apparatus, radiation imaging system, image processing method, and recording medium
JP6685762B2 (en) Image processing apparatus, image processing method, and program
JP5627275B2 (en) Image processing apparatus, image processing method, and program
JP6250988B2 (en) Image processing method and apparatus
US10068319B2 (en) Method for noise reduction in an image sequence
JP4863700B2 (en) X-ray inspection equipment
US20130322596A1 (en) Image capturing apparatus, image capturing system, method of controlling image capturing apparatus, and storage medium
JP6132938B2 (en) Image processing apparatus, radiation imaging system, image processing method, and recording medium
JP5674659B2 (en) Image processing apparatus and X-ray diagnostic imaging apparatus
JP2003265452A (en) Radiation image sequence processing method and medical radiation inspection apparatus
JP6189172B2 (en) Image processing apparatus, image processing method, and program
JP2021071816A (en) Image processing apparatus and image processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160824

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170703

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170710

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170727

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170915

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171016

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171124

R151 Written notification of patent or utility model registration

Ref document number: 6250988

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees