JPH04253837A - Image processor - Google Patents

Image processor

Info

Publication number
JPH04253837A
JPH04253837A JP3036796A JP3679691A JPH04253837A JP H04253837 A JPH04253837 A JP H04253837A JP 3036796 A JP3036796 A JP 3036796A JP 3679691 A JP3679691 A JP 3679691A JP H04253837 A JPH04253837 A JP H04253837A
Authority
JP
Japan
Prior art keywords
image
processing
smoothing
calculation means
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.)
Pending
Application number
JP3036796A
Other languages
Japanese (ja)
Inventor
Kenichi Kashiwagi
健一 柏木
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 JP3036796A priority Critical patent/JPH04253837A/en
Publication of JPH04253837A publication Critical patent/JPH04253837A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve quality of an image as a whole by correcting a partial unevenness of an image. CONSTITUTION:Image processing is performed for an original digital image A with an image processing processor and an image memory provided in an image processor as follows: An original digital image A is inputted at the step 101 to perform a division averaging processing of the original image at the steps 101, 103 and 104 and a smoothing processing is carried out at the step 105 to achieve a standardization of a concentration level at the steps 106 and 107. The results are outputted to an image monitor 6 at the step 108.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、例えば医用画像等の画
質を改善するためにデジタル画像に画像処理を施す画像
処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus that performs image processing on digital images in order to improve the image quality of, for example, medical images.

【0002】0002

【従来の技術】近年、医用画像には画像処理が可能なデ
ジタル画像を用いることが多く、画質を改善するための
多種の画像処理装置も提案されている。そして、例えば
眼底画像によく見られるシェーディング等の撮影画像に
部分的濃度むらがある場合には、入力画像と出力画像の
濃度階調を変化するためのルックアップテーブル値を変
更したり、或いはヒストグラム平滑化処理を行って画像
全体のコントラストを改善する等の処理が行われている
2. Description of the Related Art In recent years, digital images that can be processed are often used for medical images, and various image processing devices have been proposed to improve image quality. For example, if there is local density unevenness in the captured image, such as shading that is often seen in fundus images, the lookup table values for changing the density gradation of the input image and output image may be changed, or the histogram may be changed. Processing such as smoothing processing to improve the contrast of the entire image is performed.

【0003】0003

【発明が解決しようとする課題】しかしながら上述の従
来例においては、濃度むらのある部位だけでなく画像全
体に対して処理が行われるため、部分的に濃度レベルが
著しく低い、又は高い領域を生成して画質が悪化する危
険性がある。
[Problems to be Solved by the Invention] However, in the above-mentioned conventional example, processing is performed not only on areas with uneven density but also on the entire image, resulting in areas where the density level is extremely low or high in some parts. There is a risk that the image quality will deteriorate.

【0004】本発明の目的は、部分的な濃度むらを補正
して画像全体の画質を向上する画像処理装置を提供する
ことにある。
An object of the present invention is to provide an image processing apparatus that improves the image quality of the entire image by correcting local density unevenness.

【0005】[0005]

【課題を解決するための手段】上述の目的を達成するた
めの本発明に係る画像処理装置は、原画像を分割平均化
処理して平均画像を算出する第1の演算手段と、前記平
均画像を平滑化処理して平滑化画像を算出する第2の演
算手段と、前記原画像を前記平滑化画像により除算して
処理画像を算出する第3の演算手段とを有することを特
徴とするものである。
[Means for Solving the Problems] An image processing device according to the present invention for achieving the above-mentioned object includes: a first calculation means for dividing and averaging an original image to calculate an average image; and a third calculation means that calculates a processed image by dividing the original image by the smoothed image. It is.

【0006】[0006]

【作用】上述の構成を有する画像処理装置は、原画像を
分割平均処理、平滑化処理を行って算出した平滑化画像
によって原画像を除算し最終処理画像を算出し、最終処
理画像では原画像の部分的な濃度むらが補正される。
[Operation] The image processing device having the above configuration calculates a final processed image by dividing the original image by a smoothed image calculated by performing dividing and averaging processing and smoothing processing on the original image. Partial density unevenness is corrected.

【0007】[0007]

【実施例】本発明を図示の実施例に基づいて詳細に説明
する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be explained in detail based on the illustrated embodiments.

【0008】図1は本発明を眼底カメラに適用した一実
施例の構成図を示し、眼底カメラ装置1に内蔵されたC
CDカメラ2の出力は、A/Dコンバータ3を介して画
像処理プロセッサ4に接続され、画像処理プロセッサ4
の出力は画像メモリ5、画像モニタ6に接続されている
。なお、この実施例において、画像は512×512画
素で構成され、各画素の濃度レベルは8ビット、即ち2
56階調のデジタル値で与えられるものとする。
FIG. 1 shows a configuration diagram of an embodiment in which the present invention is applied to a fundus camera.
The output of the CD camera 2 is connected to the image processing processor 4 via the A/D converter 3.
The output of is connected to an image memory 5 and an image monitor 6. In this example, the image is composed of 512 x 512 pixels, and the density level of each pixel is 8 bits, that is, 2
It is assumed that it is given as a digital value of 56 gradations.

【0009】そして、CCDカメラ2で撮像された被検
眼の眼底画像は、A/Dコンバータ3でデジタル値とさ
れた後に画像処理プロセッサ4に入力され、更に画像メ
モリ5に記録される。一般に、眼底画像にはシェーディ
ング等の部分的な濃度むらがあり、画像処理プロセッサ
4内でこの原画像Aに対して濃度むら補正の画像処理が
行われ、処理画像Bが画像メモリ5に出力される。
The fundus image of the subject's eye taken by the CCD camera 2 is converted into a digital value by the A/D converter 3, then input to the image processing processor 4, and further recorded in the image memory 5. Generally, a fundus image has local density unevenness such as shading, and image processing for correcting density unevenness is performed on this original image A in the image processing processor 4, and a processed image B is output to the image memory 5. Ru.

【0010】図2は画像処理のフローチャート図であり
、先ずステップ101で原画像Aが画像処理プロセッサ
4に入力される。次のステップ102では、図3に示す
ように画像全体を均等に16分割した128×128画
素の各領域PO〜P15 において、濃度レベルの平均
値 AVE(PO)〜AVE(P15)を算出し、各領
域PO〜P15 をそれぞれの平均値の濃度レベルとし
た図4に示すような画像MPを作成し、画像メモリ5に
格納する。そしてステップ103では、図5に示すよう
に中央の384×384画素の領域を均等に9分割した
128×128画素の各領域QO〜Q8及びそれらの周
辺領域Q9において、それぞれ濃度レベルの平均値AV
E(QO) 〜 AVE(Q9)を算出し、同様にして
各領域QO〜Q9をそれぞれの平均値の濃度レベルとし
た図6に示す画像MQを作成して、画像メモリ5に格納
する。 なお、領域PO〜P15 と領域QO〜Q9との占有面
積の関係は図7に示すようになっている。
FIG. 2 is a flowchart of image processing. First, in step 101, an original image A is input to the image processing processor 4. In the next step 102, as shown in FIG. 3, the average value of the density level AVE(PO) to AVE(P15) is calculated in each region PO to P15 of 128×128 pixels obtained by dividing the entire image into 16 equal parts, An image MP as shown in FIG. 4 is created in which each region PO to P15 is set to the density level of the respective average value, and is stored in the image memory 5. Then, in step 103, as shown in FIG. 5, in each of the 128 x 128 pixel areas QO to Q8, which are obtained by equally dividing the central 384 x 384 pixel area into 9, and in the surrounding area Q9, the average value AV of the density level is determined.
E(QO) to AVE(Q9) are calculated, and in the same manner, an image MQ shown in FIG. 6 is created in which each area QO to Q9 has the density level of the respective average value, and is stored in the image memory 5. Incidentally, the relationship between the occupied areas of the regions PO to P15 and the regions QO to Q9 is as shown in FIG.

【0011】ステップ104では、先に作成した2枚の
画像MP、MQを平均した画像A1を作成して画像メモ
リ5に格納し、ステップ105では、図8に示す16×
16画素のサイズのフィルタ、及び3×3画素サイズの
最大値フィルタによって複数回の平滑化処理を行って画
像A2を作成する。そしてステップ106では、画像A
2の最大濃度レベルMAX を検出し、ステップ107
でこの最大濃度レベルMAX と、画像A、A2の各画
素値Ai、A2i ( i=1〜512×512)とか
ら、次式によって最終的な画像処理Bの各画素値Biを
算出する。 Bi=Ai{(A2i +(255−MAX)}
In step 104, an image A1 is created by averaging the two previously created images MP and MQ and stored in the image memory 5. In step 105, the 16× image shown in FIG.
Image A2 is created by performing smoothing processing multiple times using a 16 pixel size filter and a 3×3 pixel size maximum value filter. Then, in step 106, the image A
The maximum concentration level MAX of 2 is detected, and step 107
Then, from this maximum density level MAX and each pixel value Ai, A2i (i=1 to 512×512) of images A and A2, each final pixel value Bi of image processing B is calculated by the following equation. Bi=Ai {(A2i + (255-MAX)}

【00
12】なお、本実施例の場合には最大濃度レベル値は2
55であって、Biはこれを越えることができないので
、ステップ106で最大値MAX を検出して、式(1
) を用いて画素値Biのオーバーフローを防止してい
る。なお、画像Aのレベル或いはシステム構成によって
は、オーバーフローをソフト的に考慮しなくともよい場
合があり、その場合には画素値Biを求める演算には画
像A2の最大濃度レベルMAX を使用せずに済む。
00
12] In this example, the maximum density level value is 2.
55, and Bi cannot exceed this, so in step 106 the maximum value MAX is detected and the formula (1
) is used to prevent the pixel value Bi from overflowing. Note that depending on the level of image A or the system configuration, overflow may not need to be considered in the software, and in that case, the maximum density level MAX of image A2 may not be used in the calculation to obtain the pixel value Bi. It's over.

【0013】ステップ105の平滑化処理は、使用する
フィルタサイズ及び処理の繰り返し回数によってその効
果が異なる。本実施例で使用したフィルタのサイズは1
6×16画素としたが、図8に示すようにこれは図7に
おける64×64画素の微小領域の1/16の面積に相
当しており、実際にこのフィルタを用いて10回繰り返
して平滑化処理を行うと良好な効果が得られた。フィル
タのサイズはこれより大きくしてもよく、その場合には
平滑化処理の繰り返し回数を減少することが可能で、平
滑化の効果も向上して良好な画像が得られるが、処理時
間が長くなるので本実施例で用いたサイズ程度が適当で
ある。
The effect of the smoothing process in step 105 differs depending on the filter size used and the number of times the process is repeated. The size of the filter used in this example is 1
As shown in Fig. 8, this corresponds to 1/16 of the area of the 64 x 64 pixel micro region in Fig. 7, and was actually smoothed by repeating this filter 10 times. A good effect was obtained when the chemical treatment was performed. The filter size may be larger than this, in which case it is possible to reduce the number of repetitions of the smoothing process, improve the smoothing effect, and obtain a good image, but the processing time will be longer. Therefore, the size used in this example is appropriate.

【0014】本実施例においては、平滑化の効果を高め
るために更に最大値フィルタによる平滑化処理を行って
いる。最大値フィルタもそのサイズが大きくなると平滑
化する領域が拡がってその処理効果が向上するが、平滑
化フィルタによる処理後なので、処理時間を考慮すると
上述した3×3画素程度が適当である。
In this embodiment, in order to enhance the smoothing effect, smoothing processing is further performed using a maximum value filter. As the size of the maximum value filter also increases, the area to be smoothed expands and the processing effect improves, but since this is after processing by the smoothing filter, considering the processing time, the above-mentioned 3×3 pixels or so is appropriate.

【0015】なお、本実施例においては縦横比が1対1
で、512×512画素の画像を使用したが、画像の大
きさ、縦横比は任意であり、また分割領域の個数も処理
画像に応じて変化可能であり、カラー画像の場合には各
RGB画像に対して同様の処理を行うことによって対応
が可能となる。また、眼底画像Aの入力方法は、本実施
例の他にスライドスキャナによるデジタル入力、スチー
ルビデオ、ビデオレコーダ等によるアナログ入力も可能
である。
[0015] In this embodiment, the aspect ratio is 1:1.
In this example, an image of 512 x 512 pixels was used, but the size and aspect ratio of the image are arbitrary, and the number of divided regions can also be changed depending on the processed image.In the case of a color image, each RGB image This can be done by performing similar processing on . Furthermore, as the method of inputting the fundus image A, in addition to the present embodiment, digital input using a slide scanner, analog input using a still video, a video recorder, etc. are also possible.

【0016】[0016]

【発明の効果】以上説明したように本発明に係る画像処
理装置は、原画像を分割平均値処理、平滑化処理を行っ
て算出した平滑化画像によって、原画像を除算して処理
画像を算出しており、原画像の部分的な濃度むらを補正
して画質を向上するという効果を有する。
Effects of the Invention As explained above, the image processing device according to the present invention calculates a processed image by dividing the original image by a smoothed image calculated by performing dividing average value processing and smoothing processing on the original image. This has the effect of correcting local density unevenness in the original image and improving image quality.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】装置の構成図である。FIG. 1 is a configuration diagram of an apparatus.

【図2】画像処理のフローチャート図である。FIG. 2 is a flowchart diagram of image processing.

【図3】分割領域Pの説明図である。FIG. 3 is an explanatory diagram of a divided area P.

【図4】作成された画像MPの説明図である。FIG. 4 is an explanatory diagram of a created image MP.

【図5】分割領域Qの説明図である。FIG. 5 is an explanatory diagram of a divided area Q.

【図6】作成された画像MQの説明図である。FIG. 6 is an explanatory diagram of a created image MQ.

【図7】平均値画像の説明図である。FIG. 7 is an explanatory diagram of an average value image.

【図8】平滑化処理の説明図である。FIG. 8 is an explanatory diagram of smoothing processing.

【符号の説明】[Explanation of symbols]

1  眼底カメラ装置 2  CCDカメラ 3  A/Dコンバータ 4  画像処理プロセッサ 5  画像メモリ 6  画像モニタ 1 Fundus camera device 2 CCD camera 3 A/D converter 4 Image processing processor 5 Image memory 6 Image monitor

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】  原画像を分割平均化処理して平均画像
を算出する第1の演算手段と、前記平均画像を平滑化処
理して平滑化画像を算出する第2の演算手段と、前記原
画像を前記平滑化画像により除算して処理画像を算出す
る第3の演算手段とを有することを特徴とする画像処理
装置。
1. A first calculation means for dividing and averaging an original image to calculate an average image; a second calculation means for calculating a smoothed image by smoothing the average image; an image processing device comprising: third calculation means for calculating a processed image by dividing the image by the smoothed image;
【請求項2】  前記第1の演算手段は分割方法を変化
して複数回行うようにした請求項1に記載の画像処理装
置。
2. The image processing apparatus according to claim 1, wherein the first calculation means performs the division multiple times by changing the division method.
【請求項3】  前記第2の演算手段は複数回行うよう
にした請求項1に記載の画像処理装置。
3. The image processing apparatus according to claim 1, wherein the second calculation means is performed a plurality of times.
【請求項4】  前記第2の演算手段は平滑化フィルタ
による平滑化処理後に最大値フィルタ処理を行うように
した請求項1に記載の画像処理装置。
4. The image processing apparatus according to claim 1, wherein the second calculation means performs maximum value filter processing after smoothing processing using a smoothing filter.
JP3036796A 1991-02-05 1991-02-05 Image processor Pending JPH04253837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3036796A JPH04253837A (en) 1991-02-05 1991-02-05 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3036796A JPH04253837A (en) 1991-02-05 1991-02-05 Image processor

Publications (1)

Publication Number Publication Date
JPH04253837A true JPH04253837A (en) 1992-09-09

Family

ID=12479752

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3036796A Pending JPH04253837A (en) 1991-02-05 1991-02-05 Image processor

Country Status (1)

Country Link
JP (1) JPH04253837A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003010129A (en) * 2001-06-27 2003-01-14 Canon Inc Opthalmologic photographing device
JP2009101245A (en) * 2009-02-19 2009-05-14 Canon Inc Ophthalmic photographing apparatus
JP2012020157A (en) * 2011-09-20 2012-02-02 Canon Inc Ophthalmologic photographing apparatus
JP2013056222A (en) * 2012-12-25 2013-03-28 Canon Inc Ophthalmic apparatus and conversion method
JP2013208481A (en) * 2013-06-10 2013-10-10 Canon Inc Ophthalmic apparatus and conversion method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003010129A (en) * 2001-06-27 2003-01-14 Canon Inc Opthalmologic photographing device
JP2009101245A (en) * 2009-02-19 2009-05-14 Canon Inc Ophthalmic photographing apparatus
JP2012020157A (en) * 2011-09-20 2012-02-02 Canon Inc Ophthalmologic photographing apparatus
JP2013056222A (en) * 2012-12-25 2013-03-28 Canon Inc Ophthalmic apparatus and conversion method
JP2013208481A (en) * 2013-06-10 2013-10-10 Canon Inc Ophthalmic apparatus and conversion method

Similar Documents

Publication Publication Date Title
CN110505459B (en) Image color correction method, device and storage medium suitable for endoscope
JP4076302B2 (en) Image brightness correction method
JP4804660B2 (en) Noise reduction method using color information for digital image processing
JP4154847B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing image processing program
US6822762B2 (en) Local color correction
JP3707187B2 (en) Electronic camera
US6885482B1 (en) Image processing method and image processing apparatus
JPH11215515A (en) Device and method for eliminating noise on each line of image sensor
JP2003153290A (en) Noise filter for bayer pattern image data
JP2005526300A (en) A general-purpose image enhancement algorithm that enhances visual recognition of details in digital images
US20080253681A1 (en) Image Processing Method and Computer Software for Image Processing
EP1139284A2 (en) Method and apparatus for performing local color correction
TWI273507B (en) Method and apparatus for image processing
US7623705B2 (en) Image processing method, image processing apparatus, and semiconductor device using one-dimensional filters
JP2004328564A (en) Color correcting apparatus, color correcting method, color correcting program, and digital camera using color correcting apparatus
JPS63156475A (en) Multi-gradation image reader
WO2005025207A1 (en) Image processing utilizing locally adaptive color correction and cumulative histograms
JPH04253837A (en) Image processor
JPH08181887A (en) Video signal processor
JP2002281312A (en) Device, method and program for processing image
JP2008219289A (en) Video correction device, video display device, imaging apparatus and video correction program
JP4369030B2 (en) Image correction method and apparatus, and computer-readable recording medium storing image correction program
JP2004172726A (en) Image processing apparatus and method
CN111369459B (en) Method and device for optimizing global tone mapping contrast
JP2929983B2 (en) Color image processing equipment