JPH06319694A - Color drift correcting device - Google Patents

Color drift correcting device

Info

Publication number
JPH06319694A
JPH06319694A JP5114643A JP11464393A JPH06319694A JP H06319694 A JPH06319694 A JP H06319694A JP 5114643 A JP5114643 A JP 5114643A JP 11464393 A JP11464393 A JP 11464393A JP H06319694 A JPH06319694 A JP H06319694A
Authority
JP
Japan
Prior art keywords
color
image
corrected
drift
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5114643A
Other languages
Japanese (ja)
Other versions
JP3327992B2 (en
Inventor
Koji Inaba
康治 稲葉
Kazunari Nakamura
一成 中村
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 JP11464393A priority Critical patent/JP3327992B2/en
Publication of JPH06319694A publication Critical patent/JPH06319694A/en
Application granted granted Critical
Publication of JP3327992B2 publication Critical patent/JP3327992B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To provide a color drift correcting device capable of correcting even a portion having large motion with the color near the color of an original object, resolving a color drift, and obtaining an image having no sense of incompatibility. CONSTITUTION:A color drift correcting device is constituted of a color change detection section 1 comparing image signals having a time difference from the color image signals obtained by an image pickup means photographing an object in sequence and detecting the change point of an image corresponding to a color drift, a corrected image forming section 2 generating the histogram of the color distribution from the color image signals, computing the representative color from the provided color distribution, calculating the color drift correction data for correcting the color drift, and producing the corrected image corrected with the color drift of an image, and a synthesis section 3 switching the original image to the corrected image and outputting it when the color drift is detected on the original image.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は色分布作成手段で生成さ
れた色分布に基づいて色ズレ補正用のデータを生成し、
色ズレ補正を行う色ズレ補正装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention generates data for color misregistration correction based on the color distribution created by a color distribution creating means,
The present invention relates to a color shift correction device that performs color shift correction.

【0002】[0002]

【従来の技術】面順次式の電子内視鏡は、1/60秒毎
にR,G,B三原色画像を1枚ずつ撮像している。この
ため動きのある物体を撮像した場合、同一時間にR,
G,Bの三原色を取り込むことができないので物体の色
が分離してしまう。この分離した状態を色ズレという。
2. Description of the Related Art A frame sequential electronic endoscope captures R, G, B three primary color images one by one every 1/60 seconds. Therefore, when a moving object is imaged, R,
Since the three primary colors G and B cannot be captured, the colors of the object are separated. This separated state is called color shift.

【0003】特公昭52−9095による色ズレの補正
方法は、原信号と3フィールド遅延信号、すなわち原信
号の各原色信号と3フィールド前のこれと同一色の原色
信号とを比較し、その差信号がある値を越えたとき、そ
の位置が色割れを生ずる画像の動き位置であるものと判
断し、この動き位置判別信号(パルス)により搬送信号
を利得制御および帯域制御し、搬送色信号を画像の動き
位置で完全に除去するか、抑圧して三原色の色割れを軽
減する。
The method of correcting the color shift according to Japanese Patent Publication No. 52-9095 compares the original signal and the three-field delay signal, that is, each primary color signal of the original signal and the original color signal of the same color three fields before and comparing the difference. When the signal exceeds a certain value, it is determined that the position is the motion position of the image causing color breakup, and the carrier signal is gain-controlled and band-controlled by this motion position determination signal (pulse) to determine the carrier color signal. Completely remove it at the moving position of the image or suppress it to reduce color breakup of the three primary colors.

【0004】また、動きの大きいときには更に狭い帯域
の通過フィルタと切換える2個以上の複数個の切換え方
式としてもよいという色割れ軽減するフィールド順次カ
ラーテレビジョン撮像方式が開示されている。
Further, there is disclosed a field sequential color television image pickup system for reducing color breakup, in which two or more switching systems for switching to a bandpass filter having a narrower band may be used when the motion is large.

【0005】[0005]

【発明が解決しようとする課題】特公昭52−9095
では色ズレに応じて色信号の帯域制限を行うため動きの
大きい部分ほど色彩が弱くなり白黒画像に近くなってし
まい本来の被写体色と異なる不自然な画像になる。
[Problems to be Solved by the Invention] Japanese Patent Publication No. 52-9095
In this case, since the band of the color signal is limited according to the color shift, the color becomes weaker in a portion having a large movement and becomes closer to a monochrome image, resulting in an unnatural image different from the original subject color.

【0006】本発明は上述した点にかんがみてなされた
もので、動きの大きい部分でも元の被写体色に近い色で
補い色ズレを解消でき、違和感のない画像を得ることの
できる色ズレ補正装置を提供することを目的とする。
The present invention has been made in view of the above points, and a color misregistration correction device capable of eliminating a color misregistration that is complementary to a color close to the original subject color even in a portion having a large motion and obtaining an image without a feeling of strangeness. The purpose is to provide.

【0007】[0007]

【課題を解決するための手段】被写体を面順次で撮像す
る撮像手段により得られたカラー画像信号から時間差の
ある画像信号を比較して色ズレに対応する画像の変化点
もしくは変化領域を算出する変化部算出手段と、被写体
のカラー画像信号より色分布を作成する色分布作成手段
と、前記色分布作成手段で作成された色分布から色ズレ
補正用の色ズレ補正データを算出する色ズレ補正データ
算出手段と、前記色ズレ補正データを用いて画像の色ズ
レを補正する補正画像生成手段と、を具備している。
A change point or a change area of an image corresponding to a color misregistration is calculated by comparing image signals with a time difference from color image signals obtained by an image pickup means for picking up a subject in a frame sequential manner. Change portion calculating means, color distribution creating means for creating a color distribution from a color image signal of a subject, and color misregistration correction for calculating color misregistration correction data for color misregistration correction from the color distribution created by the color distribution creating means. A data calculation unit and a corrected image generation unit that corrects the color misregistration of the image using the color misregistration correction data are provided.

【0008】[0008]

【作用】内視鏡画像は通常画像と違い体腔内の画像のた
め画像を構成する色がかなり片寄っているので色空間の
一部の画素密度が高くなる。ここで色空間内で画素密度
の高い代表色を検索すれば色ズレ画像を体腔内に近い色
で補正できることになる。
Since the endoscopic image is an image inside the body cavity unlike the normal image, the colors forming the image are considerably deviated, so that the pixel density of a part of the color space becomes high. If a representative color having a high pixel density is searched for in the color space, the color shift image can be corrected with a color close to that in the body cavity.

【0009】つまり、色分布作成手段で作成された色分
布から代表色を生成し、この代表色を用いて色ズレ補正
データを算出し、この算出された色ズレ補正正データを
用いて補正を行うことにより、違和感のない自然な補正
画像が得られるようにしている。
That is, a representative color is generated from the color distribution created by the color distribution creating means, color shift correction data is calculated using this representative color, and correction is performed using this calculated color shift correction positive data. By doing so, a natural corrected image with no discomfort can be obtained.

【0010】[0010]

【実施例】以下、図面を参照して本発明の実施例を説明
する。図1ないし図8は本発明の1実施例に係り、図1
は1実施例の色ズレ補正装置の基本構成を示し、図2は
色変化検出部の構成を示し、図3は補正画像作成部の構
成を示し、図4は1実施例の色ズレ補正装置を備えた電
子内視鏡装置の構成を示し、図5はヒストグラム作成の
フローを示し、図6は色空間ヒストグラムから画素数頻
度の最大値の代表色を求める説明図を示し、図7及び図
8は代表色のルックアップテーブルを求める説明図を示
す。
Embodiments of the present invention will be described below with reference to the drawings. 1 to 8 relate to an embodiment of the present invention.
2 shows the basic configuration of the color misregistration correction device according to the first embodiment, FIG. 2 shows the configuration of the color change detection part, FIG. 3 shows the structure of the corrected image creation part, and FIG. 4 is the color misregistration correction device of the first embodiment. 5 shows the flow of histogram creation, FIG. 6 shows an explanatory diagram for obtaining the representative color of the maximum value of the number of pixels frequency from the color space histogram, and FIG. 7 and FIG. Reference numeral 8 shows an explanatory diagram for obtaining a lookup table of a representative color.

【0011】図1に示すように第1実施例の色ズレ補正
装置10は入力される原画像の信号から色ズレ等の色変
化画素の検出を行う色変化検出部1と、色ズレ等の色変
化部分の補正画像を作成する補正画像作成部2と、原画
像と補正画像を色変化検出部1に基づき合成する合成部
3とから構成される。
As shown in FIG. 1, a color shift correcting apparatus 10 of the first embodiment has a color change detecting section 1 for detecting a color change pixel such as a color shift from an input original image signal, and a color shift detecting section. It is composed of a corrected image creation unit 2 that creates a corrected image of a color change portion and a combining unit 3 that combines the original image and the corrected image based on the color change detection unit 1.

【0012】図2に示すように色変化検出部1は入力さ
れるR,G,B信号から輝度信号Yと、2つの色信号C
r,Cbを算出するマトリクス回路11と、算出された
色信号Cr,Cb信号をそれぞれ4フィールド遅延させ
る4フィールド遅延メモリ12a,12bと、4フィー
ルド遅延された色信号Cr,Cbとマトリクス回路11
にて算出された色信号Cr,Cbの差分を検出する差分
検出回路13a,13bと、差分検出回路13a、13
bの検出結果の論理和を求める論理和回路14にて構成
される。
As shown in FIG. 2, the color change detection unit 1 receives a luminance signal Y from two R, G and B signals and two color signals C.
A matrix circuit 11 for calculating r and Cb, four field delay memories 12a and 12b for delaying the calculated color signals Cr and Cb signals by four fields, respectively, and four field delayed color signals Cr and Cb and the matrix circuit 11
Difference detection circuits 13a and 13b for detecting the difference between the color signals Cr and Cb calculated in
It is composed of a logical sum circuit 14 for calculating the logical sum of the detection results of b.

【0013】この論理和回路14から出力される変化点
検出信号は補正画像作成部2に入力され色ズレのない画
素の選択に使用されると共に、合成部3に入力され原画
像と補正画像の切換に使用される。
The change point detection signal output from the logical sum circuit 14 is input to the corrected image creating unit 2 for use in selecting pixels without color shift, and is also input to the synthesizing unit 3 for inputting the original image and the corrected image. Used for switching.

【0014】図3に示すように補正画像作成部2は色変
化検出部1の結果に基づいて原画像(入力されるR,
G,B信号)に対し、1フィールド分のヒストグラムを
作成するヒストグラム作成回路21と、このヒストグラ
ム作成回路21のヒストグラムデータから代表色を作成
するCPUブロック22と、原画像から補正色を作成す
る色変換手段23と、原画像の輝度信号Yと色変換手段
23の補正色をマトリクス演算して補正画像を作成する
演算部24とから構成され、この演算部24から補正画
像を出力する。
As shown in FIG. 3, the corrected image creating section 2 uses the result of the color change detecting section 1 as an original image (input R,
G and B signals), a histogram creation circuit 21 that creates a histogram for one field, a CPU block 22 that creates a representative color from the histogram data of this histogram creation circuit 21, and a color that creates a correction color from the original image. It is composed of a conversion unit 23 and a calculation unit 24 that matrix-calculates the luminance signal Y of the original image and the correction color of the color conversion unit 23 to create a correction image. The calculation unit 24 outputs the correction image.

【0015】上記ヒストグラム作成回路21は、入力さ
れるR,G,B信号とラストイメージ用フィールドメモ
リ212から読み出された信号を選択するセレクタ21
1と、セレクタ211で選択された信号を1フィールド
分記憶するラストイメージ用フィールドメモリ212
と、このラストイメージ用フィールドメモリ212に記
憶されている1フィールド分の信号から色分布を作成す
るヒストグラムLSI213とで構成される。
The histogram creating circuit 21 selects the R, G, B signals input and the signal read from the last image field memory 212.
1 and the field memory 212 for the last image that stores the signal selected by the selector 211 for one field
And a histogram LSI 213 that creates a color distribution from signals for one field stored in the last image field memory 212.

【0016】CPUブロック22はヒストグラムLSI
213で作成されたヒストグラムデータから代表色を選
出し、ルックアップテーブルを作成する。
The CPU block 22 is a histogram LSI
A representative color is selected from the histogram data created in step 213 to create a lookup table.

【0017】色変換手段23は、入力されるR,G,B
信号を1フィールド時間遅延させるフィールドメモリ2
31a,231b,231cと、CPUブロック22で
選出された代表色を記録するルックアップテーブル23
2a〜232fと、変換された色に重み付けをする乗算
器233a〜233fと、乗算器233a〜233fで
重み付けされた色信号を加算する加算器234a,23
4bとから構成される。
The color conversion means 23 inputs R, G, B
Field memory 2 that delays the signal by one field time
31a, 231b, 231c, and a look-up table 23 for recording the representative colors selected by the CPU block 22.
2a to 232f, multipliers 233a to 233f that weight the converted colors, and adders 234a and 23 that add the color signals weighted by the multipliers 233a to 233f.
4b and.

【0018】また、演算部24は、マトリクス回路11
で作成された輝度信号Yを1フィールド時間遅延させる
フィールドメモリ241と、加算器234a,234b
で作成された色信号とフィールドメモリ241で遅延さ
せた輝度信号Yから画像を作成するマトリクス回路24
2で構成され、この演算部24から出力される補正画像
の色信号R′,G′,B′は合成部3に入力される。
Further, the calculation section 24 includes a matrix circuit 11
A field memory 241 for delaying the luminance signal Y created in step 1 by one field time, and adders 234a and 234b.
A matrix circuit 24 for creating an image from the color signal created in step S1 and the luminance signal Y delayed in the field memory 241.
The color signals R ', G', and B'of the corrected image output from the calculation unit 24 are input to the synthesis unit 3.

【0019】合成部3は色変化検出部1の色ズレ検出結
果に基づき、原画像とマトリクス回路242で演算され
て生成された補正画像とを切り換え、色ズレが存在した
場合にも色ズレの少ない画像を出力する。この合成部3
は例えばアナログスイッチで構成される。
The synthesizing unit 3 switches the original image and the corrected image calculated by the matrix circuit 242 on the basis of the color shift detection result of the color change detecting unit 1, and the color shift occurs even if the color shift exists. Output few images. This synthesizer 3
Is composed of, for example, an analog switch.

【0020】図4は1実施例の色ズレ補正装置10を備
えた電子内視鏡装置71を示す。
FIG. 4 shows an electronic endoscope apparatus 71 equipped with the color misregistration correction apparatus 10 of the first embodiment.

【0021】この電子内視鏡装置71は電子内視鏡72
と、この電子内視鏡72に照明光を供給する光源部73
及び電子内視鏡72の撮像手段に対する信号処理を行う
信号処理部74とを内蔵したビデオプロセッサ75と、
このビデオプロセッサ75から出力される映像信号を表
示するカラーモニタ76とから構成される。
This electronic endoscope device 71 is an electronic endoscope 72.
And a light source unit 73 that supplies illumination light to the electronic endoscope 72.
And a video processor 75 including a signal processing unit 74 that performs signal processing for the image pickup means of the electronic endoscope 72,
The color monitor 76 displays the video signal output from the video processor 75.

【0022】電子内視鏡72は細長で例えば可撓性の挿
入部77を有し、この挿入部77の後端に太径の操作部
78が連設されている。操作部78の後端付近からは側
方に可撓性のユニバーサルケ―ブル79が延設され、こ
のケ―ブル79の先端部にコネクタ80が設けられてい
る。
The electronic endoscope 72 has an elongated and flexible insertion portion 77, for example, and a large-diameter operation portion 78 is connected to the rear end of the insertion portion 77. A flexible universal cable 79 extends laterally from the vicinity of the rear end of the operation portion 78, and a connector 80 is provided at the tip end of the cable 79.

【0023】上記コネクタ80をビデオプロセッサ75
に接続することにより、光源部73から電子内視鏡72
のライトガイド81に面順次照明光が供給される。つま
り、ランプ82の白色照明光はモータ83によって回転
駆動される回転フィルタ84に設けたR,G,Bの色透
過フィルタ84R,84G,84Bを通すことによっ
て、R,G,Bの面順次照明光となり、ライトガイド8
1の先端面から前方に出射される。
The connector 80 is connected to the video processor 75.
By connecting to the electronic endoscope 72 from the light source unit 73
The frame-sequential illumination light is supplied to the light guide 81. That is, the white illumination light of the lamp 82 is passed through the R, G, and B color transmission filters 84R, 84G, and 84B provided in the rotary filter 84 that is rotationally driven by the motor 83, so that the R, G, and B frame sequential illumination is performed. It becomes light and the light guide 8
The light is emitted forward from the tip surface of 1.

【0024】面順次照明光で照明された患部等の被写体
は先端部の対物レンズ85によりその焦点面に配置した
CCD86に結像され、光電変換される。このCCD8
6にドライバ87から駆動信号を印加することによって
光電変換された画像信号が読み出され、アンプ88で増
幅された後、A/Dコンバータ89でデジタル信号に変
換され、さらにセレクタ91を介してR,G,Bメモリ
92R,92G,92Bに順次記憶される。
A subject such as a diseased part illuminated by the field-sequential illumination light is imaged by the objective lens 85 at the tip end on the CCD 86 arranged on the focal plane thereof and photoelectrically converted. This CCD8
The image signal photoelectrically converted by applying a drive signal from the driver 87 to 6 is read out, amplified by the amplifier 88, converted into a digital signal by the A / D converter 89, and further converted by the selector 91 into the R signal. , G, B memories 92R, 92G, 92B are sequentially stored.

【0025】上記R,G,Bメモリ92R,92G,9
2Bに順次記憶された画像データは同時に読み出され、
1実施例の色ズレ補正装置10に入力され、色ズレ補正
された後、D/Aコンバータ部94でアナログの色信号
に変換され、図示しない同期信号と共に、カラーモニタ
76に入力され、被写体像をカラー表示するようになっ
ている。
The R, G, B memories 92R, 92G, 9
The image data sequentially stored in 2B are read out at the same time,
After being input to the color misregistration correction apparatus 10 of the first embodiment and subjected to color misregistration correction, it is converted into an analog color signal by the D / A converter unit 94, and is input to the color monitor 76 together with a synchronization signal (not shown), and the subject image Is displayed in color.

【0026】次にこの1実施例の色ズレ補正装置10の
作用を説明する。色変化検出部1は4フィールドの時間
差のある色信号を比較するため、デジタルR,G,B信
号はマトリクス回路11で色信号Cr,Cbに変換され
る。なお、色信号は通常R−Y,B−Yを使用するが
R,G,B各8ビットで演算を行うと9ビットになる、
これを8ビット幅におさまるようにした色信号をCr,
Cbで示している。
Next, the operation of the color misregistration correction device 10 of the first embodiment will be described. Since the color change detection unit 1 compares the color signals having the time difference of four fields, the digital R, G, B signals are converted into color signals Cr, Cb by the matrix circuit 11. The color signals normally use R-Y and B-Y, but when the calculation is performed with 8 bits for each of R, G, and B, it becomes 9 bits.
The color signal that can be stored in the 8-bit width is Cr,
It is indicated by Cb.

【0027】2つの色信号Cr,Cbは4フィールド遅
延メモリ12aと12bに入力され、4フィールド時間
遅らせる。差分検出回路13aと13bでは、マトリク
ス回路11から遅延されないで出力された色信号Cr,
Cbと、4フィールド遅延メモリ12a,12bにて遅
延された色信号Cr,Cbとの減算をそれぞれ行い、結
果が正であれば正側比較を行い、負であれば負側比較を
行う。
The two color signals Cr and Cb are input to the 4-field delay memories 12a and 12b and delayed by 4 field time. In the difference detection circuits 13a and 13b, the color signals Cr output from the matrix circuit 11 without being delayed,
Cb and the color signals Cr and Cb delayed by the four-field delay memories 12a and 12b are respectively subtracted, and if the result is positive, positive side comparison is performed, and if negative, negative side comparison is performed.

【0028】各々所定の値と比較することで色の変化を
検出する。なお色信号はCr,Cbの2種類で構成され
ているためどちらかが不一致の判定を出せば色の変化が
あったことになるので2つの差分検出回路13a、13
bの出力は論理和回路14にて合成され、色の変化のあ
る画素を検出し、この論理和回路14は色の変化のある
画素を検出すると変化点検出信号を出力する。この変化
点検出信号は補正画像作成部2(のヒストグラム作成回
路21)と合成部3に出力される。
A color change is detected by comparing each with a predetermined value. Note the color signal Cr, so either because they are composed of two kinds of Cb is that there was a color change if put out the determination of the discrepancies two difference detection circuit 13a, 13
The output of b is synthesized by the logical sum circuit 14 to detect a pixel having a color change, and the logical sum circuit 14 outputs a change point detection signal when a pixel having a color change is detected. This change point detection signal is output to (the histogram creating circuit 21 of) the corrected image creating unit 2 and the synthesizing unit 3.

【0029】ヒストグラム作成回路21は、色ズレのな
い1フィールド分の画像の画素データから色空間のヒス
トグラムを作成するために、まずセレクタ211によ
り、原画像と1フィールド分の画像を記憶するラストイ
メージ用フィールドメモリ212の画像とを変化点検出
信号でセレクトし、セレクトされた色変化の無い画素を
ラストイメージ用フィールドメモリ212に蓄える。
The histogram creating circuit 21 first uses the selector 211 to create a histogram of the color space from the pixel data of the image for one field without color shift, and the first image is stored by the selector 211. The image of the field memory 212 for selection is selected by the change point detection signal, and the selected pixels having no color change are stored in the field memory 212 for last image.

【0030】ヒストグラムLSI213はラストイメー
ジ用フィールドメモリ212に蓄えられた1フィールド
分の画像データのR,G,B各8ビットのうち上位3ビ
ットを使用して色空間ヒストグラムを作成する。なお、
色ズレのない1フィールド分の画像の画素データを記憶
しているフィールドメモリ213は例えばFIFO構造
のため読み出してしまうと内容がなくなるので、セレク
タ211にフィードバックし色ズレ発生直前の色ズレの
ない画素を記憶する。
The histogram LSI 213 creates a color space histogram by using the upper 3 bits of each 8 bits of R, G, B of the image data for one field stored in the last image field memory 212. In addition,
The field memory 213, which stores pixel data of an image for one field without color misalignment, has no content if read out because it has, for example, a FIFO structure. Therefore, it is fed back to the selector 211 and a pixel without color misregistration immediately before the color misalignment occurs. Memorize

【0031】CPUブロック22では、R,G,B=8
×8×8の色空間から代表色を選ぶ作業をする。通常、
代表色を選ぶ場合は色空間の中を1本の線で結ぶことが
多いが、この代表色算出法は1色から他の2色を選ぶた
め色空間内を3本の線を通している。
In the CPU block 22, R, G, B = 8
Work to select a representative color from a × 8 × 8 color space. Normal,
When a representative color is selected, the color space is often connected by one line, but this representative color calculation method passes three lines through the color space in order to select two colors from one color.

【0032】その理由として、色ズレを起こしている部
分の色はR,G,Bいずれかが欠けており、最悪時には
1つの色で画像を形成する場合があり、そのときにはこ
の1色から他の2色を推定せざるを得ない為である。内
視鏡画像は通常画像と違い体腔内の画像のため画像を構
成する色がかなり片寄っているので1色から2色を推定
することが可能である。
The reason therefor is that one of R, G, and B is missing in the color where the color shift occurs, and in the worst case, an image may be formed with one color. This is because there is no choice but to estimate the two colors. Unlike the normal image, the endoscopic image is an image inside the body cavity, and the colors forming the image are considerably deviated, so that it is possible to estimate one or two colors.

【0033】この代表色算出法を図5のフローチャート
に沿って説明する。まずステップS1に示すように色空
間ヒストグラムを読み出し、次にステップS2に示すよ
うに各色平面から最大値(最大頻度の色)を選出し、そ
の最大値のR,G,Bに対し、ステップS3に示すよう
に色信号Cr,Cbを算出する。
This representative color calculation method will be described with reference to the flowchart of FIG. First, the color space histogram is read out as shown in step S1, then the maximum value (color with the maximum frequency) is selected from each color plane as shown in step S2, and for the maximum values R, G, B, step S3 is performed. The color signals Cr and Cb are calculated as shown in.

【0034】そしてステップS4に示すように色信号C
r,Cbの値を8ビット階調に補間した後、ステップS
5に示すようにルックアップテーブル232a〜232
fに書き込む。ルックアップテーブル232a〜232
fは1対毎に基準となる1色から色信号Cr,Cbを推
定するようになっている。
Then, as shown in step S4, the color signal C
After interpolating the values of r and Cb into 8-bit gradation, step S
5, lookup tables 232a-232
Write to f. Look-up tables 232a-232
For f, the color signals Cr and Cb are estimated for each pair from one reference color.

【0035】基準となる1色から色信号Cr,Cbを推
定するためのルックアップテーブル232a〜232f
の作成を図6ないし図8を参照してさらに説明する。基
準の1色から他の2色を色空間から推定する場合、たと
えばRを基準とした場合にはGとBを色空間から選び出
しR(原画色),G′(推定色),B′(推定色)の1
組となる。
Look-up tables 232a to 232f for estimating the color signals Cr and Cb from one reference color.
Will be further described with reference to FIGS. When estimating two colors from the reference one color from the color space, for example, when R is used as the reference, G and B are selected from the color space and R (original image color), G '(estimated color), B' ( 1) of estimated color
Become a pair.

【0036】その方法は図6(a)のようにR,G,B
の色空間座標位置にヒストグラムの値(画素数頻度値)
を対応させた色空間ヒストグラムにおけるRの色空間座
標(Rの階調)を例えば、10HからF0Hまでの8分
割とし、図6(b)のようにG−B平面を8枚用意し、
各平面において最も密度の高い部分を選び出し、その部
分のGとBの座標値を推定色として記録する。
The method is R, G, B as shown in FIG.
Histogram value (pixel count frequency value) at the color space coordinate position of
The color space coordinates of R (gradation of R) in the color space histogram corresponding to are divided into eight, for example, from 10H to F0H, and eight GB planes are prepared as shown in FIG. 6B.
The densest part in each plane is selected, and the G and B coordinate values of that part are recorded as the estimated color.

【0037】例えばR=F0Hの場合のG−B平面にお
いて、最も密度の高い部分(最大の画素数頻度値)が図
6(b)で示す太枠の部分だとすればGとBの座標位置
はそれぞれD0H、B0Hなのでこれを推定色とする。
For example, if the highest density portion (maximum pixel number frequency value) is the thick frame portion shown in FIG. 6B on the G-B plane when R = F0H, the coordinates of G and B are shown. Since the positions are D0H and B0H, respectively, this is the estimated color.

【0038】これを他の7枚のG−B平面についてもそ
れぞれ検索を行い、RからGを推定する8ポイントのデ
ータとRからBを推定する8のポイントのデータを得
る。これをR−B平面とR−G平面についても検索を行
い、図7に示すような表を作成する。
The other 7 G-B planes are also searched to obtain data of 8 points for estimating G from R and data of 8 points for estimating B from R. This is also searched for on the RB plane and the RG plane, and a table as shown in FIG. 7 is created.

【0039】しかし、ここで得られるのは入出力ともに
R,G,Bのデータで最終的に必要としている色データ
ではないので、マトリクス演算を行い、RからCr,C
b8ポイント、GからCr,Cbの8ポイント、Bから
Cr,Cbの8ポイントデータを求め図8の表を作成す
る。つぎに8ポイントのデータから256ポイントに補
間処理を行い、その結果をルックアップテーブル232
a〜232fに書き込む。
However, what is obtained here is the R, G, B data for both input and output, and not the color data that is finally needed. Therefore, a matrix operation is performed to obtain R, Cr, C.
8 points of b, 8 points of G to Cr and Cb, and 8 points of B to Cr and Cb are obtained and the table of FIG. 8 is created. Next, interpolation processing is performed from the data of 8 points to 256 points, and the result is looked up in the lookup table 232.
a to 232f.

【0040】色変換部23では、CPUブロック22で
選出された代表色を書き込んだルックアップテーブル2
32a〜232fから3組の色データを乗算器233a
〜233fにて重み付けされ、各色データ別に加算され
色信号Cr,Cbを得る。
In the color conversion section 23, the look-up table 2 into which the representative colors selected by the CPU block 22 are written
3 sets of color data from 32a to 232f are multiplied by a multiplier 233a.
.About.233f and weighted and added for each color data to obtain color signals Cr and Cb.

【0041】次に、演算部24は色変換部23にて作成
された補正色色信号Cr,Cbとマトリクス回路11に
て作成された原画の輝度信号Yをマトリクス回路242
にてマトリクス演算をしてR′,G′,B′の補正画像
を得る。なお輝度信号Yは色分布作成に1フィールドの
時間が必要のためフィールドメモリ241にて遅延させ
てマトリクス回路242に入力される。
Next, the calculation section 24 uses the correction circuit color signals Cr and Cb created by the color conversion section 23 and the luminance signal Y of the original image created by the matrix circuit 11 as a matrix circuit 242.
Then, matrix calculation is performed in order to obtain corrected images of R ', G', B '. The luminance signal Y is delayed by the field memory 241 and input to the matrix circuit 242 because one field time is required to create the color distribution.

【0042】このようにして得られた補正画像と原画像
を色の変化点に基づいて切り換えて、合成された画像を
出力することにより色彩を弱めることなく色ズレ補正が
可能になる。このようにして色ズレが検出された場合に
は補正画像で補正することにより、違和感のない自然な
補正画像で補正できる。
The corrected image thus obtained and the original image are switched on the basis of the color change points, and the combined image is output, whereby the color shift can be corrected without weakening the color. When a color shift is detected in this way, the correction image is used for correction, so that a natural correction image with no discomfort can be corrected.

【0043】なお、色ズレ補正用の色空間ヒストグラム
に予めハレーション部補正用のデータを設定する事で、
ハレーションに基づく色ズレを良好に補正する事が可能
となる。
By setting the data for halation correction in the color space histogram for color shift correction in advance,
It is possible to satisfactorily correct the color shift based on halation.

【0044】また、色ズレの発生していない画像と原画
像を色ズレの発生している量に応じ合成しても良い。ま
た、時間差のあるR−Y,B−Y信号を比較し、どちら
か一方の画像信号のみが変化している場合、変化した色
信号のみを色ズレの発生していない画像データに置き換
えても良い。
Further, an image in which no color shift has occurred and an original image may be combined according to the amount of color shift. Further, the RY and BY signals having a time difference are compared, and if only one of the image signals is changed, only the changed color signal may be replaced with image data in which no color misregistration occurs. good.

【0045】また、色空間より算出された各色8ポイン
トのデータを線形補間するのではなく、1次元のLPF
にてスムージングの処理を行い多階調化しても良い。ま
た、色空間より算出された各色8ポイントのデータを補
間する際、隣合うポイント間の中間を通る直線で補間し
て256階調のデータを得ても良く、一度直線補間した
データを更に隣接するデータ間で補間する事で、推定デ
ータの平坦部分を少なくし自然な補正データとする事が
出来る。
Further, instead of linearly interpolating the data of 8 points for each color calculated from the color space, a one-dimensional LPF is used.
Alternatively, smoothing processing may be performed to obtain multiple gradations. Further, when interpolating the data of 8 points for each color calculated from the color space, 256-gradation data may be obtained by interpolating with a straight line passing through the middle between adjacent points. By interpolating between the data to be corrected, the flat part of the estimated data can be reduced and natural correction data can be obtained.

【0046】また、各補正データは上位Bitのみ推定し
下位Bitは原画像をそのまま出力する事で、8ポイント
の推定データをそのまま使用しても、補正色がなめらか
な変化をするため自然な補正データとなる。なお、色空
間、色平面の分割数は8*8*8および16*16に限
らず、他の分割数でも良い。更に色空間、色平面は他の
等色色平面(u-v色平面等)、等色色空間(L*,a
*,b*又はY,R−Y,B−Y等色色空間など)を用
いても良い。
Further, since each correction data is estimated only in the upper bit and the lower bit outputs the original image as it is, even if the estimated data of 8 points is used as it is, since the correction color changes smoothly, a natural correction is performed. It becomes data. The number of divisions of the color space and the color plane is not limited to 8 * 8 * 8 and 16 * 16, and other division numbers may be used. Further, the color space and the color plane are other uniform color planes (such as the uv color plane) and the uniform color space (L *, a
*, B * or Y, RY, BY color spaces, etc.) may be used.

【0047】[0047]

【発明の効果】以上説明したように本発明によれば、色
の分布状態を把握して補正色を選んでいるため、動きの
大きい小さいにかかわらず元の被写体色に近い色で色補
正することができるので、色ズレが発生しても違和感の
ない高精度な色ズレ補正が可能になる。
As described above, according to the present invention, since the color distribution state is grasped and the correction color is selected, color correction is performed with a color close to the original subject color regardless of whether the movement is large or small. Therefore, even if color misregistration occurs, it is possible to perform highly accurate color misregistration correction without causing a feeling of strangeness.

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

【図1】本発明の1実施例の色ズレ補正装置の基本構成
を示すブロック図。
FIG. 1 is a block diagram showing a basic configuration of a color misregistration correction device according to an embodiment of the present invention.

【図2】色変化検出部の構成を示すブロック図。FIG. 2 is a block diagram showing the configuration of a color change detection unit.

【図3】補正画像作成部の構成を示すブロック図。FIG. 3 is a block diagram showing a configuration of a corrected image creating unit.

【図4】1実施例の色ズレ補正装置を備えた電子内視鏡
装置の構成を示す構成図。
FIG. 4 is a configuration diagram showing a configuration of an electronic endoscope apparatus including the color misregistration correction apparatus according to the first embodiment.

【図5】ヒストグラム作成のフローチャート図。FIG. 5 is a flowchart of histogram creation.

【図6】色空間ヒストグラムから画素数頻度の最大値の
代表色を求める説明図。
FIG. 6 is an explanatory diagram for obtaining a representative color having a maximum value of pixel frequency from a color space histogram.

【図7】R,G,Bの代表色を示す説明図。FIG. 7 is an explanatory diagram showing representative colors of R, G, and B.

【図8】R,G,Bの代表色に対応する色信号Cr,C
bを示す説明図。
FIG. 8: Color signals Cr, C corresponding to representative colors of R, G, B
Explanatory drawing which shows b.

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

1…色変化検出部 2…補正画像作成部 3…合成部 10…色ズレ補正装置 11…マトリクス回路 12a,12b…4フィールド遅延メモリ 13a,13b…差分検出回路 14…加算器 21…ヒストグラム作成部 22…CPUブロック 23…色変換部 24…演算部 DESCRIPTION OF SYMBOLS 1 ... Color change detection part 2 ... Corrected image creation part 3 ... Compositing part 10 ... Color shift correction device 11 ... Matrix circuit 12a, 12b ... 4 field delay memory 13a, 13b ... Difference detection circuit 14 ... Adder 21 ... Histogram creation part 22 ... CPU block 23 ... Color conversion unit 24 ... Arithmetic unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 被写体を面順次で撮像する撮像手段によ
り得られたカラー画像信号から時間差のある画像信号を
比較して色ズレに対応する画像の変化点もしくは変化領
域を算出する変化部算出手段と、 被写体のカラー画像信号より色分布を作成する色分布作
成手段と、 前記色分布作成手段で作成された色分布から色ズレ補正
用の色ズレ補正データを算出する色ズレ補正データ算出
手段と、 前記色ズレ補正データを用いて画像の色ズレを補正する
補正画像生成手段と、を具備することを特徴とする色ズ
レ補正装置。
1. A changing portion calculating means for calculating a changing point or a changing area of an image corresponding to a color shift by comparing image signals having a time difference from a color image signal obtained by an image pickup means for picking up a subject in a frame sequential manner. A color distribution creating means for creating a color distribution from the color image signal of the subject; and a color misalignment correction data calculating means for calculating color misalignment correction data for color misregistration correction from the color distribution created by the color distribution creating means. And a corrected image generating unit that corrects the color shift of the image using the color shift correction data.
JP11464393A 1993-05-17 1993-05-17 Color misregistration correction device Expired - Fee Related JP3327992B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11464393A JP3327992B2 (en) 1993-05-17 1993-05-17 Color misregistration correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11464393A JP3327992B2 (en) 1993-05-17 1993-05-17 Color misregistration correction device

Publications (2)

Publication Number Publication Date
JPH06319694A true JPH06319694A (en) 1994-11-22
JP3327992B2 JP3327992B2 (en) 2002-09-24

Family

ID=14642943

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11464393A Expired - Fee Related JP3327992B2 (en) 1993-05-17 1993-05-17 Color misregistration correction device

Country Status (1)

Country Link
JP (1) JP3327992B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000316864A (en) * 1999-05-11 2000-11-21 Olympus Optical Co Ltd Ultrasonograph
WO2003096887A1 (en) * 2002-05-16 2003-11-27 Olympus Corporation Color misregistration reducer
JP2005080843A (en) * 2003-09-08 2005-03-31 Olympus Corp Internal guide device for specimen and wireless type internal information acquisition system for specimen

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000316864A (en) * 1999-05-11 2000-11-21 Olympus Optical Co Ltd Ultrasonograph
WO2003096887A1 (en) * 2002-05-16 2003-11-27 Olympus Corporation Color misregistration reducer
US7372989B2 (en) 2002-05-16 2008-05-13 Olympus Corporation Color misregistration reducer
JP2005080843A (en) * 2003-09-08 2005-03-31 Olympus Corp Internal guide device for specimen and wireless type internal information acquisition system for specimen
JP4656825B2 (en) * 2003-09-08 2011-03-23 オリンパス株式会社 In-subject introduction apparatus and wireless in-subject information acquisition system

Also Published As

Publication number Publication date
JP3327992B2 (en) 2002-09-24

Similar Documents

Publication Publication Date Title
US5485203A (en) Color misregistration easing system which corrects on a pixel or block basis only when necessary
JP3699873B2 (en) Image processing device
US5418574A (en) Video signal correction apparatus which detects leading and trailing edges to define boundaries between colors and corrects for bleeding
US20040095482A1 (en) Image processing circuit of image input device
JPH1079954A (en) Color correcting device, color correction controller and color correcting system
WO2003101285A1 (en) Electronic endoscope device
JP2003174602A (en) Image display system
JP2002237998A (en) Image pattern correction method and imaging device
JP2002010289A (en) Signal processor, signal processing method and imaging apparatus
JP2008227945A (en) Image processing apparatus and image processing program
US20080111893A1 (en) Image processing apparatus, imaging apparatus, and computer readable medium
EP0554035B1 (en) Solid state color video camera
JP3327992B2 (en) Color misregistration correction device
JP3938715B2 (en) Color drift reduction device
JPH0888863A (en) High luminance compression device
JP3372967B2 (en) Color shift reduction device
JP3748446B2 (en) Image processing circuit of image input device
JP2003348442A (en) Television camera
JP3302439B2 (en) Color misregistration correction device
JP3368012B2 (en) Image data processing device
JP3310384B2 (en) Color misregistration correction device
JPH11168653A (en) Contour compensation system
JP2650062B2 (en) Color imaging device
JP2933626B2 (en) Endoscope image processing device
JPH11103471A (en) Video signal processor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020701

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080712

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090712

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100712

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100712

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110712

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees