JPH0484930A - Method and device for correcting shading image - Google Patents
Method and device for correcting shading imageInfo
- Publication number
- JPH0484930A JPH0484930A JP2199749A JP19974990A JPH0484930A JP H0484930 A JPH0484930 A JP H0484930A JP 2199749 A JP2199749 A JP 2199749A JP 19974990 A JP19974990 A JP 19974990A JP H0484930 A JPH0484930 A JP H0484930A
- Authority
- JP
- Japan
- Prior art keywords
- image
- shading
- area
- correction
- hue
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Eye Examination Apparatus (AREA)
- Image Input (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は例えば眼底カメラから出力される眼底画像(白
黒又はカラー)等のシェーディング画像補正方法及び補
正装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a shading image correction method and a correction apparatus for, for example, a fundus image (monochrome or color) output from a fundus camera.
[従来の技術]
従来、眼底画像等入力された画像に暗い領域即ちシェー
ディングが部分的に存在するとき該シェーディングを補
正して全体的に明るい画像に補正して出力する必要か生
ずる。[Prior Art] Conventionally, when a dark region or shading partially exists in an input image such as a fundus image, it is necessary to correct the shading to make the image brighter as a whole and output the image.
このために入力画像を平滑化処理したボケ画像をシェー
ディング補正用マスク画像として、入力画像との比すな
わち比画像を得てシェーディング補正を行なう、或は撮
像光学系に応じた一定のシェーディング補正用マスク画
像を用意して、入力画像との比すなわち比画像を得てシ
ェーディング補正を行なう。For this purpose, a blurred image obtained by smoothing the input image is used as a shading correction mask image, and shading correction is performed by obtaining a ratio image with the input image, or a fixed shading correction mask according to the imaging optical system is used. An image is prepared, and shading correction is performed by obtaining a ratio with the input image, that is, a ratio image.
[発明が解決しようとしている課題]
しかし眼底画像等の場合、画像中シェーディング補正す
べき暗い領域以外の領域内に乳頭部のように画像中の他
の領域より非常に明るい領域が存在すると、シェーディ
ング補正用マスク画像は乳頭部で高く乳頭部以外で低く
なる。これにより比画像としての補正画像は乳頭部以外
が全体的に明るくなる。即ちシェーディング補正か必要
とする領域以外の領域も明るくなってしまうという問題
点がある。[Problems to be Solved by the Invention] However, in the case of fundus images, etc., if there is an area in the image that is much brighter than other areas in the image, such as a papilla, in an area other than the dark area that should be corrected for shading, shading may occur. The correction mask image is high in the nipple and low in areas other than the nipple. As a result, the corrected image as a ratio image becomes brighter as a whole except for the papilla. That is, there is a problem that areas other than areas requiring shading correction become brighter.
[課題を解決するための手段]
本発明は上記問題点を解決したシェーディング画像補正
方法及び補正装置を提供することな目的とし、所定画像
を入力する第1のステップと、入力された画像に対しシ
ェーディング領域以外の領域を平坦な濃度分布としたシ
ェーディング補正用マスク画像を設定する第2のステッ
プと、前記入力された画像と前記シェーディング補正用
マスク画像よりシェーブイブ領域がシェーディング補正
された補正画像を出力する第3のステップを有すること
を特徴とする。[Means for Solving the Problems] An object of the present invention is to provide a shading image correction method and a correction device that solve the above-mentioned problems. a second step of setting a shading correction mask image in which areas other than the shading area have a flat density distribution; and outputting a corrected image in which the shaved area has been shading corrected from the input image and the shading correction mask image. The method is characterized in that it has a third step.
[作用]
入力画像が白黒画像であれば、シェーディング領域以外
の領域を平坦な濃度分布としたシェーディング補正用マ
スク画像を設定してシェーディング補正を行なう。[Operation] If the input image is a black and white image, shading correction is performed by setting a mask image for shading correction in which areas other than the shading area have a flat density distribution.
又入力画像がカラー画像であればRGBB色画像を色空
間画像に変換し、色相画像以外の少なくとも1つの画像
(例えば明度画像)に対し、シェーディング領域以外の
領域を平坦な濃度分布としたシェーディング補正用マス
ク画像を設定してシェーディング補正を行ない、その後
RGBB色画像に変換する。If the input image is a color image, the RGBB color image is converted to a color space image, and shading correction is performed on at least one image other than the hue image (for example, a brightness image) so that the area other than the shading area has a flat density distribution. A mask image is set, shading correction is performed, and the image is then converted to an RGBB color image.
[実施例]
第1図に本発明を眼科測定装置に適用した場合の構成図
を示す。眼底カメラlにはCCDカメラ2が設けられて
おり、CCDカメラ2に接続されたA/Dコン八−へ3
には画像処理プロセッサ4か接続され、この画像処理プ
ロセッサ4には画像メモリ5と画像モニタ6が接続され
ている。[Example] FIG. 1 shows a configuration diagram when the present invention is applied to an ophthalmological measuring device. The fundus camera 1 is equipped with a CCD camera 2, and an A/D controller 3 connected to the CCD camera 2 is provided.
An image processor 4 is connected to the image processor 4, and an image memory 5 and an image monitor 6 are connected to the image processor 4.
そして、眼底カメラlのCCDカメラ2て眼底を撮影し
、得られた眼底画像をA/Dコンバータ3を介してデジ
タル化して画像メモリ5に格納してから、第2図のフロ
ーチャート図に示す演算処理を行う。Then, the fundus is photographed by the CCD camera 2 of the fundus camera 1, and the obtained fundus image is digitized via the A/D converter 3 and stored in the image memory 5, and then the operations shown in the flowchart of FIG. Perform processing.
1g2図のフローチャート図においては、先ずステップ
11て既に画像メモリ5内に格納しである第3図に示す
如き象眼底画像Aを画像処理プロセッサ4に読み込む0
次に、画像処理プロセッサ4においてステップ12て明
るい乳頭部Hと暗いシェーディング領域りを含む象眼底
画像Aの全画素に対して第4図に示すように例えば15
X15画素のサイズの平滑化フィルタFを右方向に移動
してかけ、象眼底画像Aの各画素レベルをその画素を中
心とした15X15画素の画素領域の全画素レベルの平
均値て置換する平滑化処理を行い更にシェーディング領
域以外の領域を平坦な濃度分布とした眼底画像Bを得る
。これにより、象眼底画像Aを利用したシェーディング
補正用マスク画像を得ることができる。In the flowchart of FIG. 1g2, first, in step 11, an inlaid fundus image A as shown in FIG. 3, which has already been stored in the image memory 5, is read into the image processing processor 4.
Next, in step 12, in the image processing processor 4, all pixels of the inlaid fundus image A including the bright papilla H and the dark shading area are processed, for example, by 15 pixels as shown in FIG.
Smoothing in which a smoothing filter F with a size of x15 pixels is moved to the right and each pixel level of the inlaid fundus image A is replaced with the average value of all pixel levels in a pixel area of 15 x 15 pixels centered on that pixel. The process is further performed to obtain a fundus image B in which areas other than the shading area have a flat density distribution. Thereby, a mask image for shading correction using the inlaid fundus image A can be obtained.
次に、ステップ13でこの平均画像Bの全画素の濃度レ
ベルの中での最大値MAXを選出し、ステップ14で眼
底−tBの全画素のレベルを最大値MAXて除算する正
規化処理な行良い。この平均的濃度値は濃度ヒストグラ
ムより求められるか、オペレータが平均的濃度と認識し
た位置の濃度を用いても良い。Next, in step 13, the maximum value MAX among the density levels of all pixels of this average image B is selected, and in step 14, a normalization process is performed in which the level of all pixels of fundus -tB is divided by the maximum value MAX. good. This average density value may be obtained from a density histogram, or the density at a position recognized by the operator as an average density may be used.
このようにしてステップ15て画像メモリ5に格納され
ていて処理の行われていない象眼の眼底画像りを得る。In this way, in step 15, an unprocessed fundus image of the inlay, which is stored in the image memory 5, is obtained.
この除算処理を行うことにより、眼底画像Aのシェーデ
ィング領域り以外の領域は濃度か実質的に変化せずシェ
ーディング領域りの濃度が上昇して明るくなる。そして
この眼底画像りは画像モニタ6に表示し得る。以上の画
像処理プロセスを第5図(a)〜(d)に示す。By performing this division process, the density of the areas other than the shading area of the fundus image A does not substantially change, and the density of the shading area increases and becomes brighter. This fundus image can then be displayed on the image monitor 6. The above image processing process is shown in FIGS. 5(a) to 5(d).
次に入力画像かカラー画像の場合を示せば以下の通りで
ある。Next, the case of an input image or a color image is as follows.
即ち通常得られる眼底カラー画像はRGB画像であるた
め、これを色相画像、明度画像、彩度画像を含む色空間
画像に変換する。この変換の例としてはHSV、HSI
、HSLがアル。That is, since the normally obtained fundus color image is an RGB image, this is converted into a color space image including a hue image, a brightness image, and a chroma image. Examples of this conversion are HSV, HSI
, HSL is al.
次に明度画像(V)と彩度画像(S)に対して、平滑化
フィルタを用いて平均化し、シェーディング補正用マス
ク画像を作成する。平均化の回数は、数回〜数千回が適
当である。そして前述したものと同様の処理によりそれ
ぞれの補正画像を作成する。Next, the brightness image (V) and the chroma image (S) are averaged using a smoothing filter to create a mask image for shading correction. The appropriate number of times of averaging is several times to several thousand times. Then, each corrected image is created by processing similar to that described above.
即ち補正画像(V)=明度画像(V)/。That is, corrected image (V)=brightness image (V)/.
正規化されたマスク画像(V) 補正画像(S)=彩度画像(S)/ 正規化されたマスク画像(S)を得る。Normalized mask image (V) Corrected image (S) = Saturation image (S) / Obtain a normalized mask image (S).
ここで得られた補正画像(V)と(S)及びル
崖の色相画像(H)を基にRGB画像に変換し補正RG
B画像を得る。Based on the corrected images (V) and (S) obtained here and the hue image (H) of the cliff, the corrected RG is converted into an RGB image.
Obtain B image.
この補正RGB画像は補正前の画像と色相が同じて、シ
ェーディング領域か明るく補正された画像となる。This corrected RGB image has the same hue as the image before correction, and the shading area is corrected to be brighter.
なお補正画像(V)と(S)を用いる他、この一方例え
ば補正画像(V)のみを用いても良い。In addition to using the corrected images (V) and (S), one of them, for example, only the corrected image (V) may be used.
ところで以上の実施例では乳頭部か存在する眼底画像に
ついて述べたが、本発明は乳頭部か存在しない眼底画像
に対しても適用できることは言う迄もない。Incidentally, in the above embodiment, a fundus image in which a papilla is present has been described, but it goes without saying that the present invention can also be applied to a fundus image in which a papilla is not present.
なお、上述の実施例において使用される15x15画素
のサイズの平滑化フィルタFよりもサイズが大きい平滑
化フィルタを使用すれば、より短時間て効果的な平滑化
処理を行うことがてきるが、実施例サイズの平滑化フィ
ルタでも実用上の支障は無く、更に複数回繰り返して平
滑化処理を行えば、より好ましい画像を得ることがてき
る。Note that if a smoothing filter with a size larger than the 15x15 pixel smoothing filter F used in the above embodiment is used, effective smoothing processing can be performed in a shorter time. There is no practical problem even with the smoothing filter of the example size, and a more preferable image can be obtained by repeating the smoothing process a plurality of times.
また、処理を行う象眼底画像Aは、上述の実施例のよう
に眼底カメラlのCCDカメラ2て撮影された画像てな
くとも、スライドスキャナから画像メモリ5にデジタル
的に入力した眼底画像や、スチールビデオ、ビデオレコ
ータ等のアナログ奴体に記録されている眼底画像なA/
D変換した後に、画像メモリ5にデジタル入力した眼底
画像てあってもよい。Furthermore, the inlaid fundus image A to be processed may not be an image taken by the CCD camera 2 of the fundus camera 1 as in the above embodiment, but may be a fundus image digitally input into the image memory 5 from a slide scanner. Fundus images recorded on analog bodies such as still videos and video recorders A/
The fundus image may be digitally input to the image memory 5 after D conversion.
そして本発明は眼底画像に限らず他の医療画像を含んだ
任意の一般画像に適用できるものである。The present invention is applicable not only to fundus images but also to any general images including other medical images.
[発明の効果]
以上本発明によればシェーディング領域ダ外に異常濃度
領域があってもこれに影響されることなくシェーディン
グ領域がシェーディング補正される。これによりシェー
ディング領域以外で異常濃度領域以外が異常濃度領域の
存在によって影響を受けにくくなる。[Effects of the Invention] According to the present invention, even if there is an abnormal density area outside the shading area, the shading area is corrected without being affected by the abnormal density area. This makes areas other than the abnormal density area other than the shading area less likely to be affected by the presence of the abnormal density area.
又本発明をカラー画像に適用すればシェーディング補正
しても色相か変化せず、診断性の高い画像を得ることが
できる。Furthermore, if the present invention is applied to a color image, the hue will not change even after shading correction, and an image with high diagnostic properties can be obtained.
【図面の簡単な説明】
第1図は本発明を眼底画像処理に用いた装置の構成図、
第2図は処理のフローチャート図、第3図は入力された
眼底画像の図、第4図は平滑化フィルタの説明図、第5
図(a)〜(d)は画像処理プロセスの説明図である。
符号lは眼底カメラ、2はCCDカメラ、3はA/Dコ
ンバータ、4は画像処理プロセッサ、5は画像メモリ、
6は画像モニタである。[Brief Description of the Drawings] Figure 1 is a block diagram of an apparatus using the present invention for fundus image processing;
Figure 2 is a flowchart of the process, Figure 3 is a diagram of the input fundus image, Figure 4 is an explanatory diagram of the smoothing filter, and Figure 5 is a diagram of the input fundus image.
Figures (a) to (d) are explanatory diagrams of the image processing process. Symbol l is a fundus camera, 2 is a CCD camera, 3 is an A/D converter, 4 is an image processing processor, 5 is an image memory,
6 is an image monitor.
Claims (1)
画像に対しシェーディング領域以外の領域を平坦な濃度
分布としたシェーディング補正用マスク画像を設定する
第2のステップと、 前記入力された画像と前記シェーディング補正用マスク
画像よりシェーディング領域がシェーディング補正され
た補正画像を出力する第3のステップを有することを特
徴とするシェーディング画像補正方法。 2、前記第2のステップは前記入力された画像を平滑化
処理した後、シェーディング領域以外の領域を平坦な濃
度分布とする請求項1記載のシェーディング画像補正方
法。 3、前記入力された画像は眼底画像である請求項1乃至
2記載のシェーディング画像補正方法。 4、前記第3のステップで前記シェーディング補正用マ
スク画像は全画素の濃度レベルの中での最大値又は平均
的濃度値で除算される正規化処理がなされ、前記入力さ
れた画像との間の比画像を補正画像として出力する請求
項1乃至3記載のシェーディング画像補正方法。 5、RGB3色画像を入力する第1のステップと、 入力された画像を色相画像含む色空間画像に変換する第
2のステップと、該色空間画像の内で色相画像以外の少
なくとも1つの画像に対しシェーディング領域以外の領
域を平坦な濃度分布としたシェーディング補正用マスク
画像を設定する第3のステップと、 前記少なくとも1つの画像と前記シェーディング補正用
マスク画像よりシェーディング領域がシェーディング補
正された補正画像を出力する第4のステップと、 該補正画像と前記色相画像含む残りの画像を基に色空間
画像からRGB3色画像に変換する第5のステップを有
することを特徴とするシェーディング画像補正方法。 6、前記色空間画像は色相画像の他に明度画像と彩度画
像を備え、前記シェーディング補正用マスク画像が明度
画像に対応して設定される請求項5記載のシェーディン
グ画像補正方法。 7、前記色空間画像は色相画像の他に明度画像と彩度画
像を備え、前記シェーディング補正用マスク画像が、明
度画像、彩度画像に各々対応して設定される請求項5記
載のシェーディング画像補正方法。 8、前記第3のステップは前記少なくとも1つの画像を
平滑化処理した後、シェーディング領域以外の領域を平
坦な濃度分布とする請求項5記載のシェーディング画像
補正方法。9、前記入力された画像は眼底画像である請
求項8記載のシェーディング画像補正方 法。 10、前記第4のステップで前記シェーディング補正用
マスク画像は全画素の濃度レベルの中での最大値又は平
均的濃度値で除算される正規化処理がなされ、前記少な
くとも1つの画像との間の比画像を補正画像として出力
する請求項5乃至9記載のシエーディング画像補正方法
。 11、入力された画像に対しシェーディング領域以外の
領域を平坦な濃度分布としたシェーディング補正用マス
ク画像を設定する手段と、 該シェーディング補正用マスク画像を用いてシェーディ
ング補正された画像を出力する手段を有することを特徴
とするシエーディング画像補正装置。 12、入力されたRGB3色画像を色相画像含む色空間
画像に変換する手段と、該色空間画像の内で色相画像以
外の少なくとも1つの画像に対しシェーディング領域以
外の領域を平坦な濃度分布としたシェーディング補正用
マスク画像を設定する手段と、 該シェーディング補正用マスク画像を用いたシェーディ
ング補正された画像と前記色相画像を含む残りの画像を
基に色空間画像からRGB3色画像に変換する手段を有
することを特徴とするシェーディング画像補正装置。[Claims] 1. A first step of inputting a predetermined image, and a second step of setting a shading correction mask image in which areas other than the shading area have a flat density distribution for the input image. A shading image correction method, comprising: a third step of outputting a corrected image in which a shading area is subjected to shading correction based on the input image and the shading correction mask image. 2. The shading image correction method according to claim 1, wherein the second step smoothes the input image and then smoothes the area other than the shading area. 3. The shading image correction method according to claim 1, wherein the input image is a fundus image. 4. In the third step, the shading correction mask image is normalized by being divided by the maximum value or average density value among the density levels of all pixels, and the difference between the image and the input image is 4. A shading image correction method according to claim 1, wherein a ratio image is output as a corrected image. 5. A first step of inputting an RGB three-color image, a second step of converting the input image into a color space image including a hue image, and converting at least one image other than the hue image among the color space images. On the other hand, a third step of setting a shading correction mask image in which areas other than the shading area have a flat density distribution; A shading image correction method comprising: a fourth step of outputting; and a fifth step of converting the color space image into an RGB three-color image based on the corrected image and the remaining image including the hue image. 6. The shading image correction method according to claim 5, wherein the color space image includes a brightness image and a saturation image in addition to the hue image, and the shading correction mask image is set corresponding to the brightness image. 7. The shading image according to claim 5, wherein the color space image includes a brightness image and a saturation image in addition to the hue image, and the shading correction mask image is set corresponding to the brightness image and the saturation image, respectively. Correction method. 8. The shading image correction method according to claim 5, wherein in the third step, after smoothing the at least one image, areas other than the shading area are made to have a flat density distribution. 9. The shading image correction method according to claim 8, wherein the input image is a fundus image. 10. In the fourth step, the shading correction mask image is normalized by being divided by the maximum value or average density value among the density levels of all pixels, and the difference between the shading correction mask image and the at least one image is 10. The shading image correction method according to claim 5, wherein the ratio image is output as the corrected image. 11. Means for setting a shading correction mask image with a flat density distribution in areas other than the shading area for an input image, and means for outputting an image subjected to shading correction using the shading correction mask image. A shading image correction device comprising: 12. A means for converting an input RGB three-color image into a color space image including a hue image, and making an area other than the shading area a flat density distribution for at least one image other than the hue image among the color space images. means for setting a shading correction mask image; and means for converting a color space image into an RGB three-color image based on an image subjected to shading correction using the shading correction mask image and the remaining image including the hue image. A shading image correction device characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2199749A JPH0484930A (en) | 1990-07-27 | 1990-07-27 | Method and device for correcting shading image |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2199749A JPH0484930A (en) | 1990-07-27 | 1990-07-27 | Method and device for correcting shading image |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0484930A true JPH0484930A (en) | 1992-03-18 |
Family
ID=16412995
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2199749A Pending JPH0484930A (en) | 1990-07-27 | 1990-07-27 | Method and device for correcting shading image |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0484930A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001126075A (en) * | 1999-08-17 | 2001-05-11 | Fuji Photo Film Co Ltd | Image processing method and apparatus, and recording medium |
-
1990
- 1990-07-27 JP JP2199749A patent/JPH0484930A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001126075A (en) * | 1999-08-17 | 2001-05-11 | Fuji Photo Film Co Ltd | Image processing method and apparatus, and recording medium |
| US7468759B2 (en) | 1999-08-17 | 2008-12-23 | Fujifilm Corporation | Method, apparatus and recording medium for image processing |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110505459B (en) | Image color correction method, device and storage medium suitable for endoscope | |
| JP4154847B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium storing image processing program | |
| JP3668014B2 (en) | Image processing method and apparatus | |
| US8830350B2 (en) | Image processing apparatus, image processing method, and computer program | |
| US7428021B2 (en) | Image processing method, recording medium and apparatus for performing color adjustment to image data using a brightness component, a low-frequency brightness component, and first and second parameters | |
| CN1871847B (en) | Signal processing system, signal processing method | |
| US20020061142A1 (en) | Image correction apparatus | |
| US20100034458A1 (en) | Image processing apparatus and image processing method | |
| US8103119B2 (en) | Image processing device, image processing method, image processing program product, and image-capturing device | |
| JP2000228747A (en) | Picture processor | |
| EP0442369B1 (en) | Gradation correcting apparatus | |
| US9185265B2 (en) | Image processing method and image processing apparatus for performing a tone correction to acquire a combined image | |
| JPH10198803A (en) | Filtering method and filter | |
| JP2020145553A (en) | Image processing equipment, image processing methods, and programs | |
| JPH10214339A (en) | Picture filtering method | |
| JPWO2006134923A1 (en) | Image processing apparatus, computer program product, and image processing method | |
| JP2002281327A (en) | Device, method and program for image processing | |
| JP2921973B2 (en) | Image extraction method and image extraction device for specific object | |
| JP2022186166A (en) | IMAGING DEVICE, CONTROL METHOD THEREOF, PROGRAM AND STORAGE MEDIUM | |
| US20080043262A1 (en) | Method and apparatus for applying tonal correction to images | |
| US11696044B2 (en) | Image capturing apparatus, control method, and storage medium | |
| JP2929983B2 (en) | Color image processing equipment | |
| JPH0771939A (en) | Appearance inspection device | |
| JPH0484930A (en) | Method and device for correcting shading image | |
| JP4207259B2 (en) | Video signal processing device |