JP2001148862A - Image processing unit - Google Patents

Image processing unit

Info

Publication number
JP2001148862A
JP2001148862A JP33020599A JP33020599A JP2001148862A JP 2001148862 A JP2001148862 A JP 2001148862A JP 33020599 A JP33020599 A JP 33020599A JP 33020599 A JP33020599 A JP 33020599A JP 2001148862 A JP2001148862 A JP 2001148862A
Authority
JP
Japan
Prior art keywords
image
color
color misregistration
images
amount
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.)
Withdrawn
Application number
JP33020599A
Other languages
Japanese (ja)
Inventor
Hiroshi Takasugi
啓 高杉
Takayuki Hanawa
隆行 塙
Katsuichi Imaizumi
克一 今泉
Tatsuhiko Suzuki
達彦 鈴木
Fumiyuki Okawa
文行 大河
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.)
Olympus Corp
Original Assignee
Olympus Optical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP33020599A priority Critical patent/JP2001148862A/en
Publication of JP2001148862A publication Critical patent/JP2001148862A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Endoscopes (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing unit that can obtain a color slurring corrected image where a color slurring part is not conspicuous by avoiding incomplete correction even when an object image obtained from an image pickup means is distorted. SOLUTION: Color slurring is discriminated for each pixel from each of R, G, B color images obtained with the image pickup means, color slurring information of each pixel of an image with the least color slurring is read (S21), and when the color slurring quantity is deviated from a permissible range, the pixel data of the image with the least color slurring and the pixel data of the image with the 2nd least color slurring are read and both data are synthesized at a prescribed ratio (S26). The above processing is repeated by the number of entire pixels of the image (S28), and a color slurring corrected image is generated.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、色ずれ部分の目立
たない画像を得るのに適した画像処理装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an image processing apparatus suitable for obtaining an image in which color misregistration is inconspicuous.

【0002】[0002]

【従来の技術】現在、体腔内にスコープを挿入すること
により、食道、胃、小腸、大腸などの消化管や肺等の気
管を観察し、必要に応じて処置具チャンネル内に挿通し
た処置具を用いて各種の治療処置を行う医療用内視鏡が
一般的に利用されている。
2. Description of the Related Art At present, a gastrointestinal tract such as the esophagus, stomach, small intestine, and large intestine and a trachea such as a lung are observed by inserting a scope into a body cavity, and a treatment tool inserted into a treatment tool channel as necessary. 2. Description of the Related Art Medical endoscopes for performing various treatments using a medical device are generally used.

【0003】特に、電荷結合素子(CCD)等の撮像手
段を用いた電子内視鏡はカラーモニタ上にリアルタイム
で動画像を表示でき、電子内視鏡を操作する術者の疲労
を低減することができるために広く利用されている。
In particular, an electronic endoscope using an image pickup means such as a charge-coupled device (CCD) can display a moving image on a color monitor in real time, thereby reducing the fatigue of an operator who operates the electronic endoscope. It is widely used because it can be.

【0004】電子内視鏡でカラー画像を得る方法として
は、撮像手段の前面にカラーモザイクフィルタを挿入す
る同時方式と、モノクロCCDを撮像デバイスとして用
い、被写体を照明する光源装置のランプ前面にR,G,
Bの各フィルタを順次挿入してカラー画像を得る面順次
方式とが実用化されている。
As a method of obtaining a color image with an electronic endoscope, there are a simultaneous method in which a color mosaic filter is inserted in front of an image pickup means, and a method in which a monochrome CCD is used as an image pickup device, and an R light is applied to the front of a lamp of a light source device for illuminating a subject. , G,
A plane-sequential method of sequentially inserting each filter of B to obtain a color image has been put to practical use.

【0005】面順次方式の電子内視鏡(以下「面順次式
内視鏡」と称する)は、色再現性が良い、撮像手段をコ
ンパクト化することが可能である等の利点があるが、
R,G,Bの画像が時系列で取り込まれるために、被写
体と撮像手段との相対的な位置関係が変化した場合に
は、色ずれが生じるという欠点がある。
[0005] A surface-sequential type electronic endoscope (hereinafter referred to as "surface-sequential type endoscope") has advantages such as good color reproducibility and the ability to reduce the size of imaging means.
Since the R, G, and B images are captured in chronological order, there is a disadvantage that a color shift occurs when the relative positional relationship between the subject and the imaging unit changes.

【0006】特に、内視鏡画像を静止画として表示した
場合に色ずれが目立つと正確な診断の妨げとなるため、
例えば特開平3−146024号公報、或いは特許公報
第2836158号では、R,G,Bの各画像間のエリ
ア毎のずれベクトルを求めてずれベクトルに応じてエリ
ア毎に画像の位置をずらし、補間処理することにより色
ずれを補正する方法が提案されている。
In particular, when an endoscope image is displayed as a still image, a noticeable color shift hinders accurate diagnosis.
For example, in Japanese Patent Application Laid-Open No. 3-146024 or Japanese Patent Publication No. 2836158, a shift vector for each area between R, G, and B images is obtained, and the position of the image is shifted for each area according to the shift vector, and interpolation is performed. A method of correcting a color shift by processing has been proposed.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、これら
の先行技術に記載されている技術では、エリアが大きく
なるほど、エリア内で被写体像が歪んだりした場合に
は、色ずれの補正が不完全になるという問題がある。
However, according to the techniques described in these prior arts, the correction of color misregistration becomes incomplete if the subject image is distorted in the area as the area becomes larger. There is a problem.

【0008】本発明は、上述した点について鑑みてなさ
れたものであり、エリアを設けずに、被写体像が歪んだ
場合でも補正が不完全になることのない色ずれ補正画像
を作成して、色ずれ部分を目立たなくすることの可能な
画像処理装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described points, and has no area, and creates a color misregistration corrected image which is not incompletely corrected even when a subject image is distorted. An object of the present invention is to provide an image processing apparatus capable of making a color shift portion inconspicuous.

【0009】[0009]

【課題を解決するための手段】本発明による第1の画像
処理装置は、被写体を複数の色成分毎に撮像する面順次
式撮像手段と、前記面順次式撮像手段により得られた各
色成分毎の画像のうち基準とする特定色の画像と該基準
以外の色の画像とを組み合わせたときの画像間の色ずれ
量を所定の時間内で繰り返し所定回数検知する色ずれ量
検知手段と、前記色ずれ量検知手段により繰り返し検知
された色ずれ量のうち他の色ずれ量に比較して小さな色
ずれ量を複数個判別する判別手段と、前記判別手段によ
り得られた比較的小さな複数個の色ずれ量が発生すると
きの画像の組み合わせ同士を所定の割合で合成する合成
手段とを備えたことを特徴とする。
A first image processing apparatus according to the present invention comprises: a frame sequential imaging unit for capturing an image of a subject for each of a plurality of color components; A color misregistration amount detecting means for repeatedly detecting a color misregistration amount between images when a combination of an image of a specific color as a reference and an image of a color other than the reference is performed a predetermined number of times within the predetermined time; Discriminating means for discriminating a plurality of color misregistration amounts smaller than other color misregistration amounts among the color misregistration amounts repeatedly detected by the color misregistration amount detecting means; A synthesizing means for synthesizing a combination of images at a predetermined ratio when a color shift amount occurs.

【0010】このような構成では、面順次式撮像手段に
より被写体を複数の色成分毎に撮像し、得られた各色成
分毎の画像のうち基準とする特定色の画像と基準以外の
色の画像とを組み合わせたときの画像間の色ずれ量を、
所定の時間内で繰り返し所定回数検知し、繰り返し検知
した色ずれ量のうち他の色ずれ量に比較して小さな色ず
れ量を複数個判別し、得られた比較的小さな複数個の色
ずれ量が発生するときの画像の組み合わせ同士を所定の
割合で合成して色ずれ補正画像を得る。
In such a configuration, a subject is imaged for each of a plurality of color components by a frame sequential imaging means, and an image of a specific color as a reference and an image of a color other than the reference among images obtained for each color component are obtained. The amount of color shift between images when
A predetermined number of times of repetition detection within a predetermined time, a plurality of small color misregistration amounts are compared with other color misregistration amounts among the repeatedly detected color misregistration amounts, and a plurality of obtained relatively small color misregistration amounts are obtained. Are combined at a predetermined ratio to obtain a color misregistration corrected image.

【0011】第2の画像処理装置は、被写体を複数の色
成分毎に撮像する面順次式撮像手段と、前記面順次式撮
像手段により得られた各色成分毎の画像のうち基準とす
る特定色の画像と該基準以外の色の画像とを組み合わせ
たときの画像間の色ずれ量を所定の時間内で繰り返し所
定回数検知する色ずれ量検知手段と、前記色ずれ量検知
手段により繰り返し検知された色ずれ量のうち少なくと
も最も小さい第1の色ずれ量と2番目に小さい第2の色
ずれ量とを判定する判定手段と、前記判定手段による判
定結果に基づき少なくとも前記第1の色ずれ量が発生す
るときに組み合わせられた画像同士と前記第2の色ずれ
量が発生するときに組み合わせられた画像同士とを所定
の割合で合成する合成手段とを備えたことを特徴とす
る。
The second image processing apparatus includes a frame sequential imaging unit that captures an image of a subject for each of a plurality of color components, and a specific color as a reference among images for each color component obtained by the frame sequential imaging unit. A color misregistration amount detecting means for repeatedly detecting a color misregistration amount between images obtained by combining the image with the image of a color other than the reference within a predetermined time, and a color misregistration amount repeatedly detected by the color misregistration amount detecting means. Judging means for judging at least the first color misregistration amount and the second smallest color misregistration amount among the color misregistration amounts, and at least the first color misregistration amount based on the judgment result by the judging means. And a combining means for combining the images combined when the second color shift amount occurs and the images combined when the second color shift amount occurs at a predetermined ratio.

【0012】このような構成では、面順次式撮像手段に
より被写体を複数の色成分毎に撮像し、得られた各色成
分毎の画像のうち基準とする特定色の画像と該基準以外
の色の画像とを組み合わせたときの画像間の色ずれ量
を、所定の時間内で繰り返し所定回数検知し、繰り返し
検知した色ずれ量のうち少なくとも最も小さい第1の色
ずれ量と2番目に小さい第2の色ずれ量とを判定し、そ
の判定結果に基づき、少なくとも第1の色ずれ量が発生
するときに組み合わせられた画像同士と、第2の色ずれ
量が発生するときに組み合わせられた画像同士とを所定
の割合で合成して、色ずれ補正画像を得る。
In such a configuration, a subject is imaged for each of a plurality of color components by a frame sequential imaging means, and an image of a specific color as a reference and an image of a color other than the reference among the obtained images of the respective color components are obtained. The amount of color misregistration between the images when combined with the image is repeatedly detected for a predetermined number of times within a predetermined time, and at least the first color misregistration amount and the second smallest second color misregistration amount among the repeatedly detected color misregistration amounts. The images combined at least when the first color shift amount occurs and the images combined when the second color shift amount occurs based on the determination result. Are synthesized at a predetermined ratio to obtain a color misregistration corrected image.

【0013】[0013]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態について説明する。図1に本実施の形態で採用
する色ずれ補正装置が組み込まれている面順次式内視鏡
装置の構成を示す。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a configuration of a frame sequential endoscope apparatus in which a color misregistration correction apparatus employed in the present embodiment is incorporated.

【0014】同図に示すように、本実施の形態における
面順次式内視鏡装置は、被写体を複数の色成分毎に撮像
する撮像手段を内蔵する面順次式内視鏡1、ビデオプロ
セッサ2、色ずれ補正装置3、画像処理装置4、表示装
置5で構成されている。
As shown in FIG. 1, a frame sequential endoscope apparatus according to the present embodiment includes a frame sequential endoscope 1 having a built-in image pickup means for picking up an object for each of a plurality of color components, and a video processor 2. , A color shift correction device 3, an image processing device 4, and a display device 5.

【0015】面順次式内視鏡1は細長の挿入部を有し、
この挿入部を生体内に挿入して撮像を行う。挿入部先端
には、照明光学系及び撮像手段が設けられており、照明
光学系からは、図示しない光源装置から所定タイミング
で送られてくる赤色光・緑色光・青色光が順次出射され
る。
The frame sequential endoscope 1 has an elongated insertion portion,
The insertion section is inserted into a living body to perform imaging. An illumination optical system and an image pickup means are provided at the distal end of the insertion portion, and red light, green light, and blue light sent at predetermined timing from a light source device (not shown) are sequentially emitted from the illumination optical system.

【0016】生体内に照射された赤色光・緑色光・青色
光の各反射光は、内蔵するCCD等の撮像手段によっ
て、色成分毎に光電変換されて、ビデオプロセッサ2へ
出力され、このビデオプロセッサ2に内蔵されている映
像信号処理回路によってR画像,G画像,B画像の各映
像信号に処理された後、色ずれ補正装置3へ出力され
る。尚、色ずれ補正装置3の構成、及び動作については
後述する。
The reflected light of red light, green light and blue light applied to the inside of the living body is photoelectrically converted for each color component by an image pickup means such as a built-in CCD, and is output to the video processor 2. After being processed into video signals of R image, G image, and B image by a video signal processing circuit built in the processor 2, the video signal is output to the color misregistration correction device 3. The configuration and operation of the color misregistration correction device 3 will be described later.

【0017】色ずれ補正装置3から出力された、色ずれ
が補正された内視鏡画像は、画像処理装置4によって色
調強調や周波数強調など各種画像処理が行われた後、表
示装置5へ出力されて、表示される。
The endoscope image output from the color shift correcting device 3 and corrected for color shift is subjected to various image processing such as color tone emphasis and frequency emphasis by an image processing device 4 and then output to a display device 5. Is displayed.

【0018】本実施の形態による色ずれ補正装置3で
は、フリーズ時に発生している色ずれをG画像を基準と
して水平、垂直方向にR,B画像をずらし、その中から
色ずれの少ないRGB画像の組み合わせを複数選び、合
成を行うことで色ずれ補正画像を作成する。
In the color misregistration correction apparatus 3 according to the present embodiment, the color misregistration occurring at the time of freeze is shifted horizontally and vertically with respect to the G image by the R and B images. Are selected and combined to create a color misregistration corrected image.

【0019】図2に色ずれ補正装置3のブロック構成図
を示す。色ずれ補正装置3は、入力された内視鏡画像を
記憶する画像メモリ6、色ずれ判定プログラムや補正画
像作成プログラムを実行可能なCPU7、複数の画像の
画素毎の色ずれ情報を記憶する色ずれ判定結果記憶手段
8、色ずれ補正画像を記憶する色ずれ補正画像メモリ9
等で構成されている。
FIG. 2 is a block diagram of the color misregistration correction device 3. The color misregistration correction device 3 includes an image memory 6 that stores an input endoscope image, a CPU 7 that can execute a color misregistration determination program and a correction image creation program, and a color that stores color misregistration information for each pixel of a plurality of images. A misregistration determination result storage means 8;
And so on.

【0020】入力される内視鏡画像は、動画観察時には
色ずれ補正画像メモリ9に記憶され、画像処理装置4へ
出力されるようになっているが、画像フリーズ時には画
像メモリ6に記憶され、色ずれ補正処理が行われる。す
なわち、入力される内視鏡画像は面順次式内視鏡1で撮
像された画像であるため、色ずれが発生するためであ
る。
The input endoscope image is stored in the color misregistration correction image memory 9 when observing a moving image, and is output to the image processing device 4. However, when the image freezes, the image is stored in the image memory 6. A color shift correction process is performed. That is, since the input endoscope image is an image captured by the frame sequential type endoscope 1, a color shift occurs.

【0021】画像メモリ6に記憶された画像は、CPU
7によってR画像とB画像とを、G画像とは異なる読み
出し開始アドレス(水平、垂直方向にずらした状態)で
読み出され、色ずれの判定が行われる。
The image stored in the image memory 6 is sent to the CPU
7, the R image and the B image are read at a read start address different from that of the G image (in a state shifted in the horizontal and vertical directions), and color misregistration is determined.

【0022】例えば、G画像の読み出し開始アドレスを
αとした場合、R画像、B画像の読み出し開始アドレス
をα+βとして読み出す。すると、R画像、B画像は、
G画像に対して左にβ画素分だけずれることになる。
For example, if the read start address of the G image is α, the read start addresses of the R and B images are read as α + β. Then, the R image and the B image are
The image is shifted to the left by β pixels from the G image.

【0023】色ずれ補正処理は、具体的には、図3〜図
5に示すフローチャートに従って行われる。すなわち、
図3、図4に示す色ずれ判定ルーチンで、色ずれ判定処
理が行われ、続いて、図5に示す色ずれ補正画像作成ル
ーチンで、色ずれ判定結果に基づき色ずれ補正画像が作
成される。
More specifically, the color misregistration correction processing is performed according to the flowcharts shown in FIGS. That is,
In the color misregistration determination routine shown in FIGS. 3 and 4, color misregistration determination processing is performed. Subsequently, in the color misregistration correction image creation routine shown in FIG. 5, a color misregistration corrected image is created based on the color misregistration determination result. .

【0024】図3、図4に示す色ずれ判定ルーチンで
は、先ず、ステップS1で画像メモリ6の読み出し開始
アドレスAに記憶されているR画像とB画像とを読み出
し、続く、ステップS2で、読み出し開始アドレスAに
対してβ画素分だけずれている読み出し開始アドレスB
に記憶されているG画像を読み出す。
In the color misregistration determination routine shown in FIGS. 3 and 4, first, the R image and the B image stored in the read start address A of the image memory 6 are read in step S1, and the read is performed in step S2. Read start address B shifted by β pixels from start address A
Read out the G image stored in.

【0025】次いで、ステップS3へ進み、色ずれの判
定を画素毎に行い、その結果を、色ずれ判定結果記憶手
段8に、画像全体の画素数分の判定が行われるまで一時
的に記憶する。
Then, the process proceeds to step S3, in which the determination of color shift is performed for each pixel, and the result is temporarily stored in the color shift determination result storage means 8 until the number of pixels of the entire image is determined. .

【0026】そして、画像全体の画素数分の色ずれ判定
が終了したとき、ステップS4へ進み、画素毎の色ずれ
判定結果を用いて画像毎の色ずれ判定を行う。
When the color misregistration determination for the number of pixels of the entire image is completed, the process proceeds to step S4, and the color misregistration determination for each image is performed using the color misregistration determination result for each pixel.

【0027】そして、ステップS4で判定した画像毎の
色ずれに基づき、ステップS5以下で色ずれ補正処理が
行われる。
Based on the color misregistration for each image determined in step S4, color misregistration correction processing is performed in step S5 and subsequent steps.

【0028】先ず、ステップS5では、ステップS4で
判定した色ずれが、これまでに判定した画像のなかで一
番少ないものであるか否かを調べ、一番少ない色ずれで
あるときは、ステップS6へ進み、色ずれ判定結果記憶
手段8に記憶されている、これまで2番目に色ずれが少
ないと判定した画像の記憶を消去し、ステップS7で、
これまで一番色ずれが少ないと判定した画像の情報を2
番目に色ずれが少ない画像の情報として記憶する。
First, in step S5, it is checked whether or not the color shift determined in step S4 is the smallest among the images determined so far. Proceeding to S6, the storage of the image which is stored in the color shift determination result storage means 8 and which has been determined to have the second lowest color shift so far is deleted, and in step S7,
The information of the image determined to have the least color shift is 2
The information is stored as the information of the image with the least color shift.

【0029】続く、ステップS8で、今回判定対象とな
っている画像の情報(R画像、B画像の読み出し開始ア
ドレスと画素毎の色ずれ判定結果)を、色ずれが一番少
ない画像の情報として、色ずれ判定結果記憶手段8に記
憶する。
In step S8, the information of the image to be determined this time (the read start address of the R image and the B image and the color shift determination result for each pixel) is used as information of the image with the least color shift. Are stored in the color misregistration determination result storage means 8.

【0030】そして、ステップS9へ進み、判定回数n
が予め設定されている所定回数noに達したか否かを調
べ、達していないときは(n<no)、ステップS10
へ進み、読み出し開始アドレスAに、下方向若しくは右
方向へ所定にずらした値αを加算して、次の読み出し開
始アドレスAを設定し(A=A+α)、ステップS1へ
戻る。
Then, the process proceeds to step S9, where the number of determinations n
Is checked whether a predetermined number of times no has been reached. If not (n <no), step S10
Then, a value α shifted downward or rightward by a predetermined amount is added to the read start address A, the next read start address A is set (A = A + α), and the process returns to step S1.

【0031】そして、判定回数nが予め設定されている
所定回数noに達したときは(n=no)、そのままルー
チンを抜け、色ずれ補正画像を作成する。
When the number of determinations n reaches a predetermined number of times no (n = no), the routine exits from the routine and a color misregistration corrected image is created.

【0032】一方、ステップS5で、ステップS4で判
定した色ずれが、一番少ない色ずれではないと判定した
ときは、ステップS11へ分岐し、これまで判定した中
で2番目に色ずれが少ない画像か否かを調べ、これまで
の中で2番目に色ずれが少ないと判定したときは、ステ
ップS12へ進み、色ずれ判定結果記憶手段8に記憶さ
れている、これまで2番目に色ずれが少ないと判定した
画像の記憶を消去し、ステップS13で、今回判定対象
となっている画像の情報(R画像、B画像の読み出し開
始アドレスと画素毎の色ずれ判定結果)を、色ずれが2
番目にない画像の情報として、色ずれ判定結果記憶手段
8に記憶し、ステップS9へ戻る。
On the other hand, if it is determined in step S5 that the color misregistration determined in step S4 is not the least color misregistration, the process branches to step S11, and the second least color misregistration has been determined so far. It is checked whether the image is an image or not, and when it is determined that the color misregistration is the second smallest, the process proceeds to step S12, and the color misregistration result storage unit 8 stores the second color misregistration. In step S13, the information of the image to be determined this time (the read start addresses of the R image and the B image and the color shift determination result for each pixel) is deleted. 2
It is stored in the color misregistration determination result storage unit 8 as the information of the image not in the second order, and the process returns to step S9.

【0033】又、ステップS11で、今回判定対象とな
っている画像の色ずれが、一番目或いは二番目に少ない
ものではないと判定されたときは、ステップS14へ進
み、色ずれ判定結果記憶手段8に一時的に記憶された現
在判定中の画像の色ずれ情報を消去して、ステップS9
へ戻る。
If it is determined in step S11 that the color misregistration of the image to be determined this time is not the first or second least, the process proceeds to step S14, and the color misregistration determination result storage means is executed. Then, the color misregistration information of the currently determined image temporarily stored in step S8 is deleted, and step S9 is executed.
Return to

【0034】このようにして、画像メモリ6から画像情
報を所定回数読み出して色ずれ判定を行うことで、色ず
れ判定結果記憶手段8には、色ずれの一番少ない画像と
2番目に色ずれが少ない画像の色ずれ情報が記憶され
る。
As described above, by reading the image information from the image memory 6 a predetermined number of times and performing the color shift determination, the color shift determination result storing means 8 stores the image with the least color shift and the second color shift. Is stored.

【0035】その後、CPU7によって実行される補正
画像作成プログラムによって、これらの色ずれ情報を用
いて画像メモリ6から画像が読み出され、色ずれの一番
少ない画像と2番目に少ない画像とが合成されて色ずれ
補正画像が作成され、色ずれ補正画像メモリ9に記録さ
れる。
Thereafter, an image is read from the image memory 6 by using the color shift information by the corrected image creation program executed by the CPU 7, and the image with the least color shift and the image with the second lowest color shift are synthesized. Thus, a color misregistration corrected image is created and recorded in the color misregistration corrected image memory 9.

【0036】この色ずれ補正画像を作成する処理は、具
体的には図5に示す色ずれ補正画像作成ルーチンで行わ
れる。
The process of creating the color misregistration corrected image is specifically performed by a color misregistration corrected image creation routine shown in FIG.

【0037】このルーチンでは、先ず、ステップS21
で、色ずれ判定結果記憶手段8から、一番色ずれの少な
い画像の画素毎の色ずれ情報を読み出し、続く、ステッ
プS22で、この色ずれ情報に基づき色ずれ量が所定の
許容範囲に収まっているか否かを調べる。
In this routine, first, at step S21
Then, the color shift information for each pixel of the image with the least color shift is read out from the color shift determination result storage means 8, and in step S22, the color shift amount falls within a predetermined allowable range based on the color shift information. Check if it is.

【0038】そして、色ずれ量が許容範囲内に収まって
いる場合は、ステップS23へ進み、一番色ずれが少な
い画像の画素データを色ずれ判定結果記憶手段8に記憶
されている読み出し開始アドレスをもとに画像メモリ6
から読み出す。
If the amount of color misregistration is within the allowable range, the process proceeds to step S23, in which the pixel data of the image with the least color misregistration is read from the read start address stored in the color misregistration determination result storage means 8. Image memory 6 based on
Read from

【0039】又、色ずれ量が所定の許容範囲内に収まっ
ていない場合には、ステップS24へ分岐し、色ずれ判
定結果記憶手段8から、2番目に色ずれの少ない画像の
色ずれ情報をもとに同一画素の色ずれ情報を読み出し、
ステップS25へ進み、この色ずれ情報に基づき色ずれ
量が所定範囲内に収まっているかどうかを調べる。
If the color misregistration amount does not fall within the predetermined allowable range, the flow branches to step S24, and the color misregistration result storage means 8 stores the color misregistration information of the image with the second smallest color misregistration. Originally read out the color shift information of the same pixel,
The process proceeds to step S25 to check whether or not the color shift amount falls within a predetermined range based on the color shift information.

【0040】そして、色ずれ量が所定範囲内に収まって
いない場合には、ステップS23へ戻る。
If the amount of color misregistration is not within the predetermined range, the process returns to step S23.

【0041】又、ステップS25で、色ずれ量が所定範
囲内に収まっている場合は、ステップS26へ進み、色
ずれが一番少ない画像の画素データと、2番目に色ずれ
が少ない画像の画素データとを、色ずれ判定結果記憶手
段8に記憶されている読み出し開始アドレスをもとに画
像メモリ6から読み出し、2つの画素データを、例え
ば、1番目:2番目=7:3の割合で合成する。
If it is determined in step S25 that the amount of color misregistration is within the predetermined range, the process proceeds to step S26, where the pixel data of the image with the least color misregistration and the pixel data of the image with the second least color misregistration are displayed. The data is read from the image memory 6 based on the read start address stored in the color misregistration determination result storage means 8, and the two pixel data are combined at a ratio of, for example, first: second = 7: 3. I do.

【0042】そして、ステップS23或いはステップS
26からステップS27へ進むと、ステップS23で読
み出した一番色ずれの少ない画像の画素データ、或いは
ステップS26で合成した画素データを色ずれ補正画像
メモリ9に記憶する。
Then, step S23 or step S
When the process proceeds from step 26 to step S27, the pixel data of the image with the least color shift read out in step S23 or the pixel data synthesized in step S26 is stored in the color shift correction image memory 9.

【0043】次いで、ステップS28へ進み、画像の全
ての画素について補正画像が作成されたか否かを調べ、
未作成の画素があるときはステップS21へ戻る。
Then, the process proceeds to a step S28, where it is determined whether or not a corrected image has been created for all the pixels of the image.
If there is an uncreated pixel, the process returns to step S21.

【0044】そして、このルーチンを画像全体の画素数
分繰り返し行い、全ての画素の補正画像が作成されたと
き、ステップS28を経てルーチンを抜け、ひとつの画
像の色ずれ補正を終了する。
This routine is repeated for the number of pixels of the entire image, and when corrected images of all the pixels have been created, the process exits the routine via step S28, and the color shift correction of one image is completed.

【0045】この色ずれ補正画像作成ルーチンで作成さ
れた色ずれ補正画像は、画像処理装置4へ出力されて、
所定に画像処理された後、表示装置5にて表示される。
The color misregistration corrected image created by the color misregistration corrected image creation routine is output to the image processing device 4 and
After predetermined image processing, the image is displayed on the display device 5.

【0046】ところで、面順次式内視鏡1では、R画像
とG画像とでは、撮像するタイミングが異なることから
色ずれが発生する。
Incidentally, in the frame sequential endoscope 1, a color shift occurs due to a difference in the image capturing timing between the R image and the G image.

【0047】図6にRの波長領域の照明光を照射して得
られたR画像を示し、図7にGの波長領域の照明光を照
射して得られたG画像を示し、図8にR画像とG画像と
B画像との合成画像を示す。
FIG. 6 shows an R image obtained by irradiating illumination light in the R wavelength region, FIG. 7 shows a G image obtained by irradiating illumination light in the G wavelength region, and FIG. 3 shows a composite image of an R image, a G image, and a B image.

【0048】ここでは、被写体像10が左から右へ動い
た状態を想定し、R画像の撮像の後にG画像の撮像が行
われることとし、又、G画像の撮像タイミングで、図7
のように被写体像10が歪んだものとする。尚、説明を
簡単にするため、B画像についてはG画像と全く同じ画
像が得られたこととして説明を省略する。
Here, assuming that the subject image 10 has moved from left to right, it is assumed that the G image is picked up after the R image is picked up.
It is assumed that the subject image 10 is distorted as shown in FIG. For the sake of simplicity, the description of the B image is omitted because it is assumed that the same image as the G image has been obtained.

【0049】図8に示すように、R画像、G画像、B画
像を合成した画像は、斜線部で色ずれが発生したカラー
内視鏡画像が得られてしまう。この画像を本実施の形態
で説明した色ずれ補正装置3に入力した場合に得られる
色ずれ補正画像について説明する。
As shown in FIG. 8, an image obtained by combining the R image, the G image, and the B image is a color endoscope image in which a color shift occurs in a hatched portion. A color shift correction image obtained when this image is input to the color shift correction device 3 described in the present embodiment will be described.

【0050】図8に示すような色ずれの発生した画像を
色ずれ補正装置3に入力すると、上述した、図3、図4
に示す色ずれ判定ルーチンによって、図9に示すような
一番色ずれの少ない画像を構成するときのR画像、B画
像の読み出し開始アドレスと、画素毎の色ずれ量の情
報、及び図10に示すような2番目に色ずれの少ない画
像を構築する際のR画像、B画像の読み出し開始アドレ
スと画素毎の色ずれ量の情報が、色ずれ判定結果記憶手
段8に記憶される。
When an image in which a color shift has occurred as shown in FIG. 8 is input to the color shift correcting device 3, the above-described FIGS.
In the color misregistration determination routine shown in FIG. 9, the read start addresses of the R image and B image when forming an image with the least color misregistration as shown in FIG. 9, information on the color misregistration amount for each pixel, and FIG. The read start address of the R image and the B image and the information of the color shift amount for each pixel when constructing the second image with the least color shift as shown are stored in the color shift determination result storage means 8.

【0051】次に、上述した、図5に示す色ずれ補正画
像作成ルーチンに従って色ずれ補正する処理が行われ
る。
Next, the processing for correcting the color shift is performed according to the above-described color shift correction image creation routine shown in FIG.

【0052】図9は一番色ずれの少ない画像とその二次
元グラフ(以下「プロファイル」)とが示されている。
同図に示すように被写体像10を横切る線11上のプロ
ファイル12での色ずれ量の情報を見ると、区間13で
色ずれ量が、許容範囲を超えている。そこで、区間13
の画素においては、2番目の色ずれの少ない画像の同一
画素を参照する。
FIG. 9 shows an image with the least color shift and its two-dimensional graph (hereinafter, “profile”).
Referring to the information on the amount of color shift in the profile 12 on the line 11 traversing the subject image 10 as shown in the drawing, the amount of color shift in the section 13 exceeds the allowable range. Therefore, section 13
In the pixel of the above, the same pixel of the second image with less color shift is referred to.

【0053】図10に2番目に色ずれが少ない画像とそ
のプロファイルとを示す。同図に示されている被写体像
10を横切る線14上のプロファイル15での区間13
に対応する画素の色ずれ量の情報を見ると、色ずれ量が
所定の許容範囲に収まっていることがわかる。
FIG. 10 shows an image having the second least color shift and its profile. Section 13 in profile 15 on line 14 crossing subject image 10 shown in FIG.
Looking at the information on the color misregistration amount of the pixel corresponding to, it can be seen that the color misregistration amount falls within a predetermined allowable range.

【0054】そこで、2つの画像データを合成し、色ず
れ補正画像を作成する。ここでは、一番色ずれの少ない
画像データを70%、2番目に色ずれの少ない画像デー
タを30%の割合で合成する。尚、この合成割合は一例
に過ぎず、2番目に色ずれの少ない画像データと入れ替
えたり、色ずれ量に応じて合成比率を変化させるなどし
ても良い。
Therefore, the two image data are combined to create a color misregistration corrected image. Here, the image data with the least color shift is combined at 70%, and the image data with the second least color shift at 30%. Note that the combination ratio is merely an example, and the image ratio may be replaced with image data having the second smallest color shift, or the combination ratio may be changed according to the color shift amount.

【0055】図11に、得られた色ずれ補正画像と被写
体像10を横切る線16上のプロファイル17とを示
す。同図からも分かるように、被写体像10が歪んだこ
とにより、R,G,B画像をずらすだけでは補正が不十
分であった区間13の色ずれを軽減することが可能とな
る。
FIG. 11 shows the obtained color misregistration corrected image and the profile 17 on the line 16 crossing the subject image 10. As can be seen from the figure, since the subject image 10 is distorted, it is possible to reduce the color shift in the section 13 in which the correction was not sufficient only by shifting the R, G, and B images.

【0056】又、本実施の形態では、色ずれ補正装置3
の後に画像処理装置4を接続したので、色ずれ部分が強
調されて観察に支障を来してしまう等の不具合が軽減さ
れる。
In this embodiment, the color misregistration correction device 3
After that, the image processing apparatus 4 is connected, so that problems such as the color misregistration part being emphasized and obstructing observation are reduced.

【0057】尚、色ずれ補正画像に対してスムージング
などのフィルタ処理を行うことにより、合成部分の境界
を目立たなくすることで、より観察の行い易い画像を得
ることも可能である。
By performing a filtering process such as smoothing on the color misregistration corrected image so as to make the boundary of the synthesized portion inconspicuous, it is possible to obtain an image which can be more easily observed.

【0058】[付記]以上、詳述したように、本発明に
よれば以下に示す構成を得ることができる。 (1)面順次式内視鏡装置に接続、又は内蔵される面順
次式内視鏡用色ずれ補正装置において、前記電子内視鏡
装置で撮像された画像を記憶する画像記憶手段と、前記
画像記憶手段からR,G,Bの各色の画像を読み出し、
色ずれ量の判定を行う色ずれ判定手段と、前記色ずれ判
定手段で色ずれ量が少ないと判定された画像の情報を複
数記憶しておく色ずれ補正画像情報記憶手段と、前記色
ずれ判定手段で行なわれる色ずれ判定が終了した時に前
記色ずれ補正画像情報記憶手段に記憶された情報をもと
に、色ずれ量が少ない時の複数の画像を合成することに
よって色ずれ補正画像を作成する色ずれ補正画像合成手
段とを備えたことを特徴とする面順次式内視鏡用色ずれ
補正装置。
[Appendix] As described above, according to the present invention, the following configuration can be obtained. (1) An image storage means for storing an image picked up by the electronic endoscope apparatus, in a color shift correction apparatus for a plane sequential endoscope connected to or incorporated in the plane sequential endoscope apparatus, The image of each color of R, G, B is read from the image storage means,
A color misregistration judging unit for judging a color misregistration amount, a color misregistration corrected image information storage unit for storing a plurality of pieces of information of an image determined to have a small color misregistration amount by the color misregistration determining unit, When the color misregistration determination performed by the means is completed, a color misregistration corrected image is created by combining a plurality of images when the color misregistration amount is small based on the information stored in the color misregistration corrected image information storage means. A color shift correction apparatus for a field sequential endoscope, comprising:

【0059】(2)(1)において、前記色ずれ補正画
像合成手段の後段に設けられ、色ずれ補正画像に対して
画像処理を行う画像処理手段を備えたことを特徴とす
る。
(2) In (1), there is provided an image processing means which is provided at a subsequent stage of the color misregistration corrected image synthesizing means and performs image processing on the color misregistration corrected image.

【0060】これらの構成では、R,G,Bの各画像を
水平方向及び垂直方向にずらした画像に対して色ずれ判
定を行ない、色ずれが少ないと判定された画像の画素毎
の色ずれに関する情報をメモリに記憶する。この動作を
複数回繰り返し行った後、メモリに記憶された色ずれ情
報をもとにして、色ずれが一番少ない画像と2番目に少
ない画像を合成することで色ずれ補正画像を作成する。
従って、撮像手段により得られた被写体像が歪んでしま
う場合でも色ずれが軽減された画像を得ることが可能と
なる。
In these arrangements, a color shift determination is performed for an image obtained by shifting each of the R, G, and B images in the horizontal and vertical directions, and the color shift for each pixel of the image determined to have a small color shift is performed. Is stored in a memory. After repeating this operation a plurality of times, a color misregistration corrected image is created by combining the image with the least color misregistration and the image with the second least color misregistration based on the color misregistration information stored in the memory.
Therefore, even when the subject image obtained by the imaging unit is distorted, it is possible to obtain an image with reduced color shift.

【0061】[0061]

【発明の効果】以上、説明したように本発明によれば、
色ずれ量の少ない画像を合成して色ずれ補正画像を得る
ようにしたので、エリアを設ける必要がなく、撮像手段
により得られた被写体像が歪んだ場合でも補正が不完全
になることがなく、色ずれ部分の目立たない色ずれ補正
画像を得ることができる。
As described above, according to the present invention,
Since an image with a small amount of color misregistration is synthesized to obtain a color misregistration corrected image, there is no need to provide an area, and even if the subject image obtained by the imaging means is distorted, the correction does not become incomplete. Thus, it is possible to obtain a color misregistration corrected image in which the color misregistration portion is not noticeable.

【図面の簡単な説明】[Brief description of the drawings]

【図1】色ずれ補正装置を組み込んだ面順次式内視鏡装
置の構成図
FIG. 1 is a configuration diagram of a field sequential endoscope device incorporating a color misregistration correction device.

【図2】色ずれ補正装置のブロック構成図FIG. 2 is a block diagram of a color misregistration correction device.

【図3】色ずれ判定ルーチンを示すフローチャート(そ
の1)
FIG. 3 is a flowchart showing a color misregistration determination routine (part 1).

【図4】色ずれ判定ルーチンを示すフローチャート(そ
の2)
FIG. 4 is a flowchart illustrating a color misregistration determination routine (part 2);

【図5】色ずれ補正画像作成ルーチンを示すフローチャ
ート
FIG. 5 is a flowchart illustrating a color shift correction image creation routine.

【図6】Rの波長領域の照明光を照射して得られたR画
像の説明図
FIG. 6 is an explanatory diagram of an R image obtained by irradiating illumination light in an R wavelength region.

【図7】Gの波長領域の照明光を照射して得られたG画
像の説明図
FIG. 7 is an explanatory diagram of a G image obtained by irradiating illumination light in a G wavelength region.

【図8】R画像とG画像とB画像との合成画像の説明図FIG. 8 is an explanatory diagram of a composite image of an R image, a G image, and a B image.

【図9】一番色ずれの少ない画像を構成するときのR画
像、B画像の読み出し開始アドレスと色ずれ量との関係
を示す説明図
FIG. 9 is an explanatory diagram showing the relationship between the read start addresses of the R and B images and the amount of color misregistration when forming an image with the least color misregistration.

【図10】2番目に色ずれの少ない画像を構築する際の
R画像、B画像の読み出し開始アドレスと色ずれ量との
関係を示す説明図
FIG. 10 is an explanatory diagram showing the relationship between the read start address of the R image and the B image and the amount of color misregistration when constructing the second image with the least color misregistration.

【図11】色ずれ補正画像と被写体を横切る線上のプロ
ファイルとの関係を示す説明図
FIG. 11 is an explanatory diagram showing a relationship between a color misregistration correction image and a profile on a line crossing a subject.

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

3 色ずれ補正装置 10 被写体像 3 Color shift correction device 10 Subject image

フロントページの続き (72)発明者 今泉 克一 東京都渋谷区幡ヶ谷2丁目43番2号 オリ ンパス光学工業株式会社内 (72)発明者 鈴木 達彦 東京都渋谷区幡ヶ谷2丁目43番2号 オリ ンパス光学工業株式会社内 (72)発明者 大河 文行 東京都渋谷区幡ヶ谷2丁目43番2号 オリ ンパス光学工業株式会社内Continued on the front page (72) Inventor Katsuichi Imaizumi 2-43-2 Hatagaya, Shibuya-ku, Tokyo Inside Olympus Optical Industrial Co., Ltd. (72) Inventor Tatsuhiko Suzuki 2-43-2 Hatagaya, Shibuya-ku, Tokyo Olympus Within Optical Industry Co., Ltd. (72) Inventor Fumiyuki Okawa 2-43-2 Hatagaya, Shibuya-ku, Tokyo Inside Olympus Optical Industry Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 被写体を複数の色成分毎に撮像する面順
次式撮像手段と、 前記面順次式撮像手段により得られた各色成分毎の画像
のうち基準とする特定色の画像と該基準以外の色の画像
とを組み合わせたときの画像間の色ずれ量を所定の時間
内で繰り返し所定回数検知する色ずれ量検知手段と、 前記色ずれ量検知手段により繰り返し検知された色ずれ
量のうち他の色ずれ量に比較して小さな色ずれ量を複数
個判別する判別手段と、 前記判別手段により得られた比較的小さな複数個の色ず
れ量が発生するときの画像の組み合わせ同士を所定の割
合で合成する合成手段と、 を備えたことを特徴とする画像処理装置。
1. A plane-sequential imaging unit that images a subject for each of a plurality of color components, and a reference color image and a reference color image among images for each color component obtained by the plane-sequential imaging unit. A color misregistration amount detecting means for repeatedly detecting a color misregistration amount between images when a combination of the color misregistration image and the color misregistration amount is detected by the color misregistration amount detecting means within a predetermined time; Discriminating means for discriminating a plurality of small color misregistration amounts as compared with other color misregistration amounts; and combining a plurality of relatively small image misregistration amounts obtained by the discriminating means. An image processing apparatus, comprising: combining means for combining at a ratio.
【請求項2】 被写体を複数の色成分毎に撮像する面順
次式撮像手段と、 前記面順次式撮像手段により得られた各色成分毎の画像
のうち基準とする特定色の画像と該基準以外の色の画像
とを組み合わせたときの画像間の色ずれ量を所定の時間
内で繰り返し所定回数検知する色ずれ量検知手段と、 前記色ずれ量検知手段により繰り返し検知された色ずれ
量のうち少なくとも最も小さい第1の色ずれ量と2番目
に小さい第2の色ずれ量とを判定する判定手段と、 前記判定手段による判定結果に基づき少なくとも前記第
1の色ずれ量が発生するときに組み合わせられた画像同
士と前記第2の色ずれ量が発生するときに組み合わせら
れた画像同士とを所定の割合で合成する合成手段と、 を備えたことを特徴とする画像処理装置。
2. A plane-sequential imaging unit for imaging an object for each of a plurality of color components, and a reference color image and a reference color image among images for each color component obtained by the plane-sequential imaging unit. A color misregistration amount detecting means for repeatedly detecting a color misregistration amount between images when a combination of the color misregistration image and the color misregistration amount is detected by the color misregistration amount detecting means within a predetermined time; Determining means for determining at least the smallest first color shift amount and the second smallest color shift amount; and combining at least when the first color shift amount is generated based on the determination result by the determining means. An image processing apparatus, comprising: combining means for combining, at a predetermined ratio, the combined images and the combined images when the second color shift amount occurs.
JP33020599A 1999-11-19 1999-11-19 Image processing unit Withdrawn JP2001148862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33020599A JP2001148862A (en) 1999-11-19 1999-11-19 Image processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33020599A JP2001148862A (en) 1999-11-19 1999-11-19 Image processing unit

Publications (1)

Publication Number Publication Date
JP2001148862A true JP2001148862A (en) 2001-05-29

Family

ID=18230028

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33020599A Withdrawn JP2001148862A (en) 1999-11-19 1999-11-19 Image processing unit

Country Status (1)

Country Link
JP (1) JP2001148862A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010131620A1 (en) * 2009-05-14 2010-11-18 オリンパスメディカルシステムズ株式会社 Imaging device
US8421853B2 (en) 2004-09-16 2013-04-16 Olympus Corporation Capsule endoscope system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8421853B2 (en) 2004-09-16 2013-04-16 Olympus Corporation Capsule endoscope system
WO2010131620A1 (en) * 2009-05-14 2010-11-18 オリンパスメディカルシステムズ株式会社 Imaging device
US8212892B2 (en) 2009-05-14 2012-07-03 Olympus Medical Systems Corp. Image pickup apparatus

Similar Documents

Publication Publication Date Title
US8711252B2 (en) Image processing device and information storage medium including motion vector information calculation
JP3041099B2 (en) Electronic endoscope device
JP3078085B2 (en) Image processing apparatus and image processing method
US20150294463A1 (en) Image processing device, endoscope apparatus, image processing method, and information storage device
JPH07111978A (en) Image processor for endoscope
WO2003077560A1 (en) Pickup system
WO2003075753A1 (en) Endoscope image processing apparatus
JP2011098088A (en) Electronic endoscope system, processor device for electronic endoscope, and image processing method
JP2010227254A (en) Image processor, imaging device, image processing program, and image processing method
JP2006061620A (en) Video signal processor for endoscope
JP2003334162A (en) Endoscopic image processor
JPS6338430A (en) Electronic endoscope
JP2004321244A (en) Electronic endoscope system
JP5038027B2 (en) Image processing apparatus and endoscope apparatus provided with the same
JP2010220794A (en) Device, method, and program for rotating endoscope image
JP2918162B2 (en) Endoscope image processing device
CN102186401B (en) Image generating device, endoscopic system, and image generating method
JP2005204741A (en) Electronic endoscope apparatus
JP2001148862A (en) Image processing unit
JP2837888B2 (en) Endoscope image recording / reproducing device
JP2007117154A (en) Electronic endoscope system
JP4632761B2 (en) Electronic endoscope apparatus and color misregistration correction apparatus
JPH01212077A (en) Signal processing circuit for electronic endoscope
JP2933161B2 (en) Endoscope device
JP7411515B2 (en) Endoscope system and its operating method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070206