JP2002218493A - Contour correction circuit and method - Google Patents

Contour correction circuit and method

Info

Publication number
JP2002218493A
JP2002218493A JP2001010378A JP2001010378A JP2002218493A JP 2002218493 A JP2002218493 A JP 2002218493A JP 2001010378 A JP2001010378 A JP 2001010378A JP 2001010378 A JP2001010378 A JP 2001010378A JP 2002218493 A JP2002218493 A JP 2002218493A
Authority
JP
Japan
Prior art keywords
contour
color
pixel
contour correction
image 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.)
Pending
Application number
JP2001010378A
Other languages
Japanese (ja)
Inventor
Hiroaki Sato
宏明 佐藤
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2001010378A priority Critical patent/JP2002218493A/en
Publication of JP2002218493A publication Critical patent/JP2002218493A/en
Pending legal-status Critical Current

Links

Landscapes

  • Picture Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a contour correction circuit that can correct contour without causing a colored contour of an image after the correction in the contour correction processing of an image. SOLUTION: An analog/digital converter section 10 converts each analog image signal in RGB primary colors into a digital signal in N-bits per pixel. Then an edge detection section 20 calculates a second derivative quantity (edge component) of a level (amplitude) between horizontally adjacent pixels of a pixel under consideration of each RGB digital signal, and a maximum value output circuit 30 discriminates a maximum absolute value among the edge components in RGB colors. A contour correction quantity arithmetic circuit 40 determines the contour correction amount of each color so as to be equal to the ratio of the levels of each color based on the maximum absolute value of the edge components outputted form the maximum value output circuit 30 and a contour correction arithmetic section 50 adds or subtracts the contour correction amount to or from each digital RGB image signal to correct the contour.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、カラー画像の画像
信号に対して輪郭補正処理するための輪郭補正回路及び
輪郭補正方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a contour correction circuit and a contour correction method for performing a contour correction process on an image signal of a color image.

【0002】[0002]

【従来の技術】コンピュータなどから出力されるカラー
画像の画像信号は、通常RGBの3原色の画像信号から
なり、CRTや液晶表示装置において、これらの画像信
号に基づき画素ごとにその色が再現され、画像が映し出
される。このようなRGBの画像信号に対して輪郭補正
の処理を実行する場合、RGBの各色の画像信号につい
て、それぞれ独立に輪郭検出と輪郭強調を行うと、RG
Bの3色において相互に無関係に輪郭部の補正が行われ
るため、画像によっては輪郭部の色度変化による色付き
が発生し、大変不自然な画像になってしまう。
2. Description of the Related Art An image signal of a color image output from a computer or the like usually comprises image signals of three primary colors of RGB, and the color is reproduced for each pixel on a CRT or a liquid crystal display device based on these image signals. , An image is projected. When the contour correction processing is performed on such an RGB image signal, if the contour detection and the contour enhancement are independently performed on the RGB image signals, the RG
Since the contours of the three colors B are corrected independently of each other, some images may be colored due to a change in chromaticity of the contours, resulting in a very unnatural image.

【0003】このような不都合を解消するため、例え
ば、特公平5−84982号公報には、輝度信号を利用
して輪郭補正する技術が開示されている。すなわち、ま
ず、各画素におけるRGB信号から、所定の合成比によ
って輝度(Y)信号を合成し、当該Y信号に基づき輪郭
部を検出して輪郭補正量ΔYを演算する。そして、当該
輪郭補正量ΔYを、Y信号におけるRGB信号の合成比
に応じて配分して、各RGB信号の輪郭補正量を得るよ
うにしている。
[0003] In order to solve such inconvenience, for example, Japanese Patent Publication No. 5-84782 discloses a technique for correcting an outline using a luminance signal. That is, first, a luminance (Y) signal is synthesized from the RGB signals of each pixel at a predetermined synthesis ratio, and an outline is detected based on the Y signal to calculate an outline correction amount ΔY. Then, the contour correction amount ΔY is distributed according to the synthesis ratio of the RGB signals in the Y signal to obtain the contour correction amounts of the respective RGB signals.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、輝度信
号の合成比は、例えば通常使用されるNTSC方式のマ
トリクス比を用いるとすれば、Y=0.30R+0.5
9G+0.11Bという関係式に従っているので、Y信
号の輪郭補正量ΔYに基づく、RGB信号のそれぞれの
レベルの補正量に差が生じ、G、R、Bの順に少なくな
る。
However, if the matrix ratio of the commonly used NTSC system is used, for example, Y = 0.30R + 0.5
Since the relational expression of 9G + 0.11B is followed, there is a difference in the correction amount of each level of the RGB signal based on the outline correction amount ΔY of the Y signal, and the correction amount decreases in the order of G, R, and B.

【0005】これにより、例えば、文字・図形情報が多
いコンピュータ画像において、同じレベルの緑色
(G)、赤色(R)、青色(B)で示される各対象画素
に対して、それぞれ輪郭補正をした場合に、それぞれの
画像信号のレベルが同じでありながら、上記合成比によ
り、緑色の画素に対する輪郭補正量に比べて、赤色・青
色の画素に対する輪郭補正量が少なくなり、輪郭補正に
より本来強調すべき色が強調されないという不都合を生
ずる。
Thus, for example, in a computer image having a large amount of character / graphic information, contour correction is performed for each of the target pixels indicated by the same level of green (G), red (R), and blue (B). In this case, while the level of each image signal is the same, the contour correction amount for the red and blue pixels is smaller than the contour correction amount for the green pixel due to the above-described combination ratio. A disadvantage arises in that the power colors are not emphasized.

【0006】本発明は、以上のような問題を解決するた
めになされたものであって、補正後の画像における輪郭
部の色成分に応じて的確に輪郭補正することができる輪
郭補正回路および輪郭補正方法を提供することを目的と
する。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has an outline correction circuit and an outline correction circuit capable of accurately performing an outline correction according to a color component of an outline in a corrected image. It is intended to provide a correction method.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、複数色の画像信号に基づいて描画される
画像の輪郭部を強調する輪郭補正回路であって、各注目
画素について、当該注目画素およびその周辺画素におけ
る各色の画像信号のレベルに基づき、当該注目画素が前
記輪郭部の画素である度合いを示す輪郭特徴量を求める
輪郭特徴量演算手段と、前記輪郭特徴量と、注目画素に
おける各色の画像信号のレベルとに基づき、各色ごとの
輪郭補正量を求める補正量演算手段と、前記求められた
各色ごとの輪郭補正量により、注目画素における各色ご
との画像信号のレベルを補正する補正手段とを備えたこ
とを特徴としている。
In order to achieve the above object, the present invention provides a contour correction circuit for enhancing a contour portion of an image drawn based on image signals of a plurality of colors. A contour feature amount calculating unit that determines a contour feature amount indicating a degree of the pixel of interest being a pixel of the contour portion, based on a level of an image signal of each color in the pixel of interest and its surrounding pixels; Correction amount calculating means for obtaining an outline correction amount for each color based on the level of the image signal of each color in the pixel; and correcting the image signal level for each color in the target pixel by the obtained outline correction amount for each color. And a correcting means for performing the correction.

【0008】また、本発明は、前記周辺画素が、注目画
素の水平または垂直方向における隣接画素であることを
特徴とする。さらに、本発明は、前記輪郭特徴量演算手
段が、各注目画素について、当該各注目画素における各
色の画像信号のレベルの前記周辺画素との差分もしくは
2次微分量を求めて、これを輪郭特徴量とすることを特
徴とする。
Further, the present invention is characterized in that the peripheral pixel is a pixel adjacent to the target pixel in the horizontal or vertical direction. Further, according to the present invention, the contour feature amount calculating means obtains, for each target pixel, a difference or a second derivative of a level of an image signal of each color in each target pixel with respect to the surrounding pixels, and calculates the contour characteristic. It is characterized by the amount.

【0009】また、さらに、本発明は、前記補正量演算
手段が、前記各注目画素における各色ごとの輪郭特徴量
の絶対値の最大値を求め、前記最大値となる色について
は、その輪郭特徴量に正比例する量を輪郭補正量とし、
他の色については、前記最大値となる色の輪郭補正量
に、前記最大値となる色の画像信号のレベルに対する当
該他の色の画像信号のレベルの比を乗じて輪郭補正量と
することを特徴としている。
Further, according to the present invention, the correction amount calculating means obtains a maximum value of an absolute value of a contour feature amount for each color in each pixel of interest and, for a color having the maximum value, a contour feature value thereof. The amount directly proportional to the amount is defined as the contour correction amount,
For other colors, the contour correction amount is obtained by multiplying the contour correction amount of the color having the maximum value by the ratio of the level of the image signal of the other color to the level of the image signal of the color having the maximum value. It is characterized by.

【0010】さらに、また、本発明は、前記補正量演算
手段が、前記各色の画像信号のレベルを所定の値と比較
する比較手段と、前記比較結果に応じて所定の係数を決
定し、これを各色の輪郭特徴量に乗じて輪郭補正量を算
出する算出手段とを備え、前記算出手段が、前記比較の
結果、一の色のみの画像信号のレベルが、前記所定の値
より大きい場合に、他の色における前記係数を当該一の
色の係数よりも小さくすることを特徴とする。
Further, according to the present invention, the correction amount calculating means compares the level of the image signal of each color with a predetermined value, and determines a predetermined coefficient according to the comparison result. Calculating a contour correction amount by multiplying the contour feature amount of each color by the multiplying by, when the level of the image signal of only one color is larger than the predetermined value as a result of the comparison, , The coefficient of another color is made smaller than the coefficient of the one color.

【0011】また、さらに、本発明は、複数色の画像信
号に基づいて描画される画像の輪郭部を強調する輪郭補
正方法であって、各注目画素について、当該注目画素お
よびその周辺画素における各色の画像信号のレベルに基
づき、当該注目画素が前記輪郭部の画素である度合いを
示す輪郭特徴量を求める輪郭特徴量演算ステップと、前
記輪郭特徴量と、注目画素における各色の画像信号のレ
ベルとに基づき、各色ごとの輪郭補正量を求める補正量
演算ステップと、前記求められた各色ごとの輪郭補正量
により、注目画素における各色ごとの画像信号のレベル
を補正する補正ステップとを含むことを特徴としてい
る。
Further, the present invention is a contour correction method for enhancing a contour portion of an image drawn based on image signals of a plurality of colors, and for each pixel of interest, each color in the pixel of interest and its surrounding pixels. A contour feature amount calculating step of calculating a contour feature amount indicating a degree of the pixel of interest being a pixel of the contour portion, based on the level of the image signal of the target pixel; And a correction step of correcting the level of the image signal of each color at the pixel of interest based on the obtained contour correction amount of each color. And

【0012】[0012]

【発明の実施の形態】以下、本発明に係る実施の形態を
図面に基づき説明する。 <第1の実施の形態>図1は、本発明の第1の実施の形
態に係る輪郭補正回路1の構成を示すブロック図であ
る。同図に示すように、この輪郭補正回路1は、A/D
変換部10、エッジ検出部20、最大値出力回路30、
輪郭補正量演算回路40および輪郭補正演算部50とか
らなる。
Embodiments of the present invention will be described below with reference to the drawings. <First Embodiment> FIG. 1 is a block diagram showing a configuration of a contour correction circuit 1 according to a first embodiment of the present invention. As shown in FIG. 1, the contour correction circuit 1 has an A / D
A conversion unit 10, an edge detection unit 20, a maximum value output circuit 30,
It comprises a contour correction amount calculation circuit 40 and a contour correction calculation unit 50.

【0013】A/D変換部10は、A/D変換回路11
〜13からなり、それぞれ入力されたRGBの原色のア
ナログ画像信号を、画素ごとにNビットのデジタル画像
信号に変換してエッジ検出部20へ出力する。エッジ検
出部20は、3つのエッジ検出回路21〜23からな
り、それぞれRGBの原色の画像信号について、各画素
が画像の輪郭(エッジ)部の画素である度合いを示す特
徴量、より具体的には、注目する所定の画素(以下、
「注目画素」という。)と、当該注目画素と水平方向に
隣接する画素(以下、「水平隣接画素」という。)間の
レベル(振幅)の2次微分量(以下、「エッジ成分」と
いう。)を、RGBの各色ごとに演算する。そして、演
算されたエッジ成分から、当該エッジ成分の絶対値を表
す信号(以下、「絶対値信号」という。)ΔR、ΔG、
ΔBと、その正負を表す信号(以下、「正負信号」とい
う。)ΔRMSB、ΔGM SB、ΔBMSBを生成し、それぞれ
最大値出力回路30へ出力する。ここでは、エッジ成分
が正の場合に、正負信号が「0」、エッジ成分が負の場
合に、正負信号が「1」となるように設定されている。
The A / D conversion unit 10 includes an A / D conversion circuit 11
, And converts the input RGB primary color analog image signal into an N-bit digital image signal for each pixel and outputs the digital image signal to the edge detection unit 20. The edge detection unit 20 is composed of three edge detection circuits 21 to 23. For each of the RGB primary color image signals, a feature amount indicating the degree to which each pixel is a pixel of the contour (edge) portion of the image, more specifically. Is a predetermined pixel of interest (hereinafter, referred to as
It is referred to as a “target pixel”. ) And the second derivative of the level (amplitude) between the pixel adjacent to the target pixel in the horizontal direction (hereinafter, referred to as “horizontal adjacent pixel”) (hereinafter, referred to as “edge component”) is represented by each of RGB colors. Calculate each time. Then, from the calculated edge components, signals (hereinafter, referred to as “absolute value signals”) ΔR, ΔG, which represent the absolute value of the edge component,
And .DELTA.B, signal (hereinafter, referred to as "negative signal".) Representing the sign ΔR MSB, ΔG M SB, generates .DELTA.B MSB, and outputs to the maximum value output circuit 30, respectively. Here, the positive and negative signals are set to “0” when the edge component is positive, and the positive and negative signals are set to “1” when the edge component is negative.

【0014】最大値出力回路30は、エッジ検出部20
より出力されてきた絶対値信号ΔR、ΔG、ΔBの中か
らその値が最大のもの(以下、「最大絶対値信号」とい
う。)を判別してこれをΔDとすると共に、当該最大絶
対値信号ΔDがRGBいずれの画像信号におけるエッジ
成分の絶対値信号であるかを識別する信号(以下、「識
別信号」という。)SIG1〜SIG3を生成して、こ
れらを輪郭補正量演算回路40へ出力する。また、最大
絶対値信号ΔDに対応するエッジ成分の正負を示す正負
信号ΔDMSBは、輪郭補正演算部50へ出力される。
The maximum value output circuit 30 includes an edge detector 20
Among the absolute value signals ΔR, ΔG, and ΔB output from the above, the one having the largest value (hereinafter, referred to as “maximum absolute value signal”) is determined, and is determined as ΔD. Signals (hereinafter referred to as “identification signals”) SIG1 to SIG3 for identifying which of the RGB image signals is the absolute value signal of the edge component in the RGB are generated and output to the contour correction amount calculation circuit 40. . Further, a positive / negative signal ΔD MSB indicating the positive / negative of the edge component corresponding to the maximum absolute value signal ΔD is output to the contour correction calculation unit 50.

【0015】輪郭補正量演算回路40は、最大値出力回
路30から出力されてくる最大絶対値信号ΔD、識別信
号SIG1〜SIG3、およびエッジ検出部20より出
力されてくるRGBの画像信号に基づいて輪郭補正量
R’、G’、B’を演算すると共に、当該輪郭補正量
R’、G’、B’を輪郭補正演算部50へ出力する。輪
郭補正演算部50は、輪郭補正演算回路51〜53から
なり、それぞれエッジ検出部20より出力されるRGB
の画像信号に、輪郭補正量演算回路40より出力される
輪郭補正量を加算もしくは減算して、輪郭補正を行う。
なお、輪郭補正演算回路51〜53において、加算、減
算のいずれを行うかについては、最大値出力回路30よ
り出力されてくる正負信号ΔDMSBによって判断し、当
該正負信号ΔDMSBが「0」であるなら加算を、「1」
であるなら減算を行うように構成されている。
The contour correction amount calculation circuit 40 is based on the maximum absolute value signal ΔD output from the maximum value output circuit 30, the identification signals SIG1 to SIG3, and the RGB image signals output from the edge detection section 20. The contour correction amounts R ′, G ′, and B ′ are calculated, and the contour correction amounts R ′, G ′, and B ′ are output to the contour correction calculation unit 50. The contour correction calculation unit 50 includes contour correction calculation circuits 51 to 53, and outputs RGB signals output from the edge detection unit 20, respectively.
The contour correction is performed by adding or subtracting the contour correction amount output from the contour correction amount calculation circuit 40 to the image signal of.
Incidentally, in the contour correction operation circuit 51-53, the addition, whether do one subtraction determines the polarity signal [Delta] D MSB coming output from the maximum value output circuit 30, the positive and negative signal [Delta] D MSB is "0" If there is, add "1"
If so, it is configured to perform subtraction.

【0016】以下、上記輪郭補正回路1の各回路におけ
る具体的な構成について説明する。 (エッジ検出回路21〜23の構成)エッジ検出部20
を構成するエッジ検出回路21〜23は、いずれも同様
の構成なので、エッジ検出回路21を例にして、その回
路構成を説明する。図2は、エッジ検出回路21の概略
構成を示すブロック図である。
Hereinafter, a specific configuration of each circuit of the contour correction circuit 1 will be described. (Configuration of Edge Detection Circuits 21 to 23) Edge Detection Unit 20
Since the edge detection circuits 21 to 23 constituting the same have the same configuration, the circuit configuration will be described using the edge detection circuit 21 as an example. FIG. 2 is a block diagram showing a schematic configuration of the edge detection circuit 21.

【0017】同図に示すように、エッジ検出回路21
は、エッジ成分演算部211、絶対値演算回路(以下、
「ABS回路」という。)214、およびラッチ回路L
1〜L7などからなる。エッジ成分演算部211は、各
画素のエッジ成分を、当該画素とその水平隣接画素の振
幅に基づいて演算するものであって、加算回路212、
減算回路213、およびラッチ回路L8、L9からな
る。
As shown in FIG.
Is an edge component calculation unit 211, an absolute value calculation circuit (hereinafter, referred to as
It is called "ABS circuit". ) 214 and latch circuit L
1 to L7. The edge component calculation unit 211 calculates an edge component of each pixel based on the amplitude of the pixel and its horizontally adjacent pixel.
It comprises a subtraction circuit 213 and latch circuits L8 and L9.

【0018】図3は、エッジ成分演算部211における
演算内容を模式的に示している。上述のように、A/D
変換回路11より出力されてくる画像信号は、画素ごと
にデジタル多値信号として表されており、ここで、注目
画素における画像信号の振幅をanと表すと、その水平
隣接画素における画像信号の振幅は、それぞれan -1
よびan+1と表されて、エッジ成分bnが次式(1)のよ
うに表される。
FIG. 3 schematically shows the contents of the calculation in the edge component calculation unit 211. As described above, A / D
Image signal which is output from the conversion circuit 11 is represented as a digital multi-value signal for each pixel, wherein, the amplitude of the image signal in the pixel of interest is expressed as a n, of the image signal in the horizontal adjacent pixels amplitude are each denoted as a n -1 and a n + 1, the edge component b n is expressed by the following equation (1).

【0019】 bn=an−(an-1+an+1)/2 ・・・(1) エッジ成分演算部211は、上式(1)に従ってエッジ
成分の演算が実現できるように構成されている。すなわ
ち、各ラッチ回路は、不図示のクロック発生回路からク
ロックを受信するごとに、ラッチしたデータを後段に転
送するように構成されており、例えば、ラッチ回路L1
に振幅an-1をラッチした状態で、クロックを2回受信
するとラッチ回路L1〜L3にそれぞれ、an+1、an
n-1の各振幅がラッチされることになる。
B n = a n − (a n−1 + a n + 1 ) / 2 (1) The edge component calculation unit 211 is configured to realize the calculation of the edge component according to the above equation (1). Have been. That is, each latch circuit is configured to transfer the latched data to a subsequent stage every time a clock is received from a clock generation circuit (not shown).
Amplitude a the n-1 in a state of being latched, each latch circuit L1~L3 When the clock is received twice, a n + 1, a n, a
Each amplitude of an -1 will be latched.

【0020】この状態で加算回路212により(an-1
+an+1)が求められて(N+1)ビットのデータにな
るが、そのうち上位のNビットのみの値が出力されるこ
とにより、(an-1+an+1)/2の値がラッチ回路L8
に送られるようになっている。そして、次のクロックの
受信により、ラッチ回路L8に当該(an-1+an+1)/
2の値がラッチされると共に、ラッチ回路L3には、a
nの値がラッチされ、それぞれ減算回路213に出力さ
れる。ここで、an−(an-1+an+1)/2の演算が実
行され、その値bnが次のクロックによりラッチ回路L
9にラッチされる。
In this state, (a n-1)
+ An + 1 ) is obtained and becomes (N + 1) -bit data. By outputting the value of only the upper N bits, the value of (an -1 + an + 1 ) / 2 is latched. Circuit L8
To be sent to Then, upon receipt of the next clock, the latch circuit L8 causes the (a n-1 + a n + 1 ) /
2 is latched, and the latch circuit L3 stores a
The value of n is latched and output to the subtraction circuit 213, respectively. Here, a n - (a n- 1 + a n + 1) / 2 of the operation is performed, the latch circuits L value b n is the next clock
9 is latched.

【0021】このようにして、クロックが発生されるご
とにエッジ成分演算部211から、各画素についてのエ
ッジ成分bnが出力されることになる。なお、水平隣接
画素の画像信号の振幅の平均値が、注目画素の画像信号
の振幅よりも大きい場合、エッジ成分演算部211にお
いて演算されるエッジ成分の値は、式(1)からも解る
ように負の数となる。その場合、ラッチ回路L9に格納
される値は、減算回路213において演算された結果の
値の補数となる。
[0021] In this way, the edge component calculating section 211 every time the clock is generated, so that the edge component b n for each pixel are output. Note that when the average value of the amplitude of the image signal of the horizontally adjacent pixel is larger than the amplitude of the image signal of the pixel of interest, the value of the edge component calculated by the edge component calculation unit 211 can be understood from Expression (1). Is a negative number. In this case, the value stored in the latch circuit L9 is a complement of the value calculated by the subtraction circuit 213.

【0022】ABS回路214は、ラッチ回路L9より
出力されてくるエッジ成分の値について、その最上位ビ
ット(MSB)の値が「0」であると、当該エッジ成分
の値を正の数と判断し、下位N−1ビットの値を絶対値
信号ΔRの値として、そのままラッチ回路L7へ出力す
る。また、ABS回路214は、上記MSBの値が
「1」であると上記エッジ成分の値を負の数と判断し
て、当該エッジ成分の値の絶対値を演算すると共に、そ
の演算結果の下位N−1ビットの値を絶対値信号ΔRの
値として出力し、その値がラッチ回路L7にラッチされ
る。また、上記MSBの値は、その値によらずそのまま
ラッチ回路L6に出力されラッチされる。
When the value of the MSB of the edge component output from the latch circuit L9 is "0", the ABS circuit 214 determines that the value of the edge component is a positive number. Then, the value of the lower N-1 bits is directly output to the latch circuit L7 as the value of the absolute value signal ΔR. When the value of the MSB is “1”, the ABS circuit 214 determines the value of the edge component as a negative number, calculates the absolute value of the value of the edge component, and calculates the lower value of the calculation result. The value of the N-1 bit is output as the value of the absolute value signal ΔR, and the value is latched by the latch circuit L7. The value of the MSB is output to the latch circuit L6 and latched irrespective of the value.

【0023】一方、振幅anは、ラッチ回路L1〜L5
により適宜遅延されており、同一の画素について振幅と
絶対値信号ΔRおよび正負信号ΔRMSBがエッジ検出回
路21から出力されるようにタイミングが設定されてい
る。 (最大値出力回路30の構成)図4は、最大値出力回路
30の概略構成を示すブロック図である。
[0023] On the other hand, the amplitude a n, latch circuit L1~L5
The timing is set so that the amplitude and absolute value signal ΔR and the positive / negative signal ΔR MSB are output from the edge detection circuit 21 for the same pixel. (Configuration of Maximum Value Output Circuit 30) FIG. 4 is a block diagram showing a schematic configuration of the maximum value output circuit 30.

【0024】同図に示されるように、最大値出力回路3
0は、識別信号出力部310、最大絶対値信号出力部3
20および正負信号出力部330からなる。識別信号出
力部310は、コンパレータ311〜313、AND回
路314、315、NOR回路316、インバータ31
7からなる。コンパレータ311〜313は、エッジ検
出部20より出力されてくる絶対値信号ΔR、ΔG、Δ
Bの値をそれぞれ比較して、A端子に入力する絶対値信
号の値がB端子に入力する絶対値信号の値よりも大きけ
れば、信号「1」を出力する。例えば、絶対値信号Δ
R、ΔG、ΔBの値のうち、ΔRの値が最大であった場
合、コンパレータ311および312からは、信号
「1」が出力される。
As shown in FIG.
0 indicates the identification signal output unit 310 and the maximum absolute value signal output unit 3
20 and a positive / negative signal output section 330. The identification signal output unit 310 includes comparators 311 to 313, AND circuits 314 and 315, a NOR circuit 316, and an inverter 31.
Consists of seven. The comparators 311 to 313 output the absolute value signals ΔR, ΔG, Δ
The values of B are compared, and if the value of the absolute value signal input to the A terminal is larger than the value of the absolute value signal input to the B terminal, a signal “1” is output. For example, the absolute value signal Δ
When the value of ΔR among the values of R, ΔG, and ΔB is the maximum, the comparator 311 and 312 output a signal “1”.

【0025】コンパレータ311〜313より出力され
る信号は、AND回路314、315、NOR回路31
6およびインバータ317により論理演算されて、識別
信号SIG1〜SIG3として出力されるが、同図に示
すように、ΔRが最大である場合にSIG1が「1」と
なり、ΔGが最大である場合にSIG2が「1」とな
り、ΔBが最大である場合にSIG3が「1」となるよ
うに回路構成されている。
The signals output from the comparators 311 to 313 are output to the AND circuits 314 and 315 and the NOR circuit 31.
6 and an inverter 317, and are output as identification signals SIG1 to SIG3. As shown in FIG. 6, when ΔR is maximum, SIG1 becomes “1”, and when ΔG is maximum, SIG2 becomes SIG2. Is “1” and SIG3 is “1” when ΔB is the maximum.

【0026】なお、図4に示される回路において、Δ
R、ΔG、ΔBの内、最大となる絶対値信号が唯一でな
い場合、例えば、ΔR=ΔB>ΔGである場合には、S
IG1が「1」となり、ΔR=ΔG>ΔB、ΔB=ΔG
>ΔR、およびΔR=ΔG=ΔBである場合には、SI
G2が「1」となるように構成されているが、勿論これ
に限定する必要はなく、最大となる絶対値信号の何れか
に一つ対する識別信号が「1」となるように適宜回路を
構成してもよい。
In the circuit shown in FIG.
When the maximum absolute value signal is not unique among R, ΔG, and ΔB, for example, when ΔR = ΔB> ΔG, S
IG1 becomes “1”, ΔR = ΔG> ΔB, ΔB = ΔG
> ΔR and ΔR = ΔG = ΔB, then SI
Although G2 is configured to be "1", it is needless to say that the present invention is not limited to this. Circuits are appropriately set so that an identification signal corresponding to one of the maximum absolute value signals is "1". You may comprise.

【0027】また、最大絶対値信号出力部320は、ト
ライステートバッファ321〜323からなり、識別信
号出力部310より出力されてくる識別信号SIG1〜
SIG3に従って、絶対値信号ΔR、ΔG、ΔBの内よ
り、いずれか1つを最大絶対値信号ΔDとして出力す
る。例えば、ΔRが最大である場合には、SIG1のみ
が「1」となるから、トライステートバッファ321の
みにイネーブル信号「1」が入力されることになり、当
該トライステートバッファ321に入力されているΔR
の値がΔDとしてそのまま出力され、他のΔG、ΔBは
出力されない。
The maximum absolute value signal output section 320 includes tristate buffers 321 to 323, and the identification signals SIG1 to SIG1 output from the identification signal output section 310 are output.
According to SIG3, any one of the absolute value signals ΔR, ΔG, and ΔB is output as the maximum absolute value signal ΔD. For example, when ΔR is the maximum, only SIG1 becomes “1”, so that the enable signal “1” is input only to the tristate buffer 321 and is input to the tristate buffer 321. ΔR
Is output as it is as ΔD, and the other ΔG and ΔB are not output.

【0028】また、正負信号出力部330は、トライス
テートバッファ331〜333からなり、最大絶対値信
号出力部320と同様に、識別信号出力部310より出
力されてくる識別信号SIG1〜SIG3が、それぞれ
イネーブル信号として入力されており、その信号が
「1」である場合のみ、対応する正負信号をそのまま出
力するように構成されているため、最大絶対値信号ΔD
に対応する正負信号のみが出力される。
The positive / negative signal output section 330 includes tri-state buffers 331 to 333. Like the maximum absolute value signal output section 320, the identification signals SIG1 to SIG3 output from the identification signal output section 310 are respectively provided. Only when the enable signal is input and the signal is “1”, the corresponding positive / negative signal is output as it is, so that the maximum absolute value signal ΔD
Is output only.

【0029】(輪郭補正量演算回路40の構成)輪郭補
正量演算回路40は、上記最大絶対値信号ΔDと識別信
号SIG1〜SIG3に基づいて、RGBの各振幅の補
正量を求める回路であり、RGBの画像信号ごとに同様
の回路が設けられているので、ここではRの画像信号の
輪郭補正量の演算回路を例にして説明する。
(Structure of the contour correction amount calculation circuit 40) The contour correction amount calculation circuit 40 is a circuit for calculating the correction amounts of the respective amplitudes of RGB based on the maximum absolute value signal ΔD and the identification signals SIG1 to SIG3. Since a similar circuit is provided for each of the RGB image signals, a circuit for calculating the amount of contour correction of the R image signal will be described here as an example.

【0030】図5は、輪郭補正量演算回路40におけ
る、Rの画像信号についての補正量演算回路40Rの構
成を示すブロック図である。同図に示すように、補正量
演算回路40Rは、信号選択部410、除算回路42
0、および乗算回路430、440からなる。信号選択
部410は、トライステートバッファ411〜413か
らなり、最大値出力回路30より出力されてくる識別信
号SIG1〜SIG3に基づいて、エッジ検出部20よ
り出力されてくるRGBの画像信号のうち、エッジ成分
が最大の画像信号の振幅を選択して除算回路430へ出
力する。
FIG. 5 is a block diagram showing the configuration of the correction amount calculation circuit 40R for the R image signal in the contour correction amount calculation circuit 40. As shown in the figure, the correction amount calculation circuit 40R includes a signal selection unit 410, a division circuit 42
0, and multiplication circuits 430 and 440. The signal selection unit 410 includes tri-state buffers 411 to 413. Based on the identification signals SIG1 to SIG3 output from the maximum value output circuit 30, among the RGB image signals output from the edge detection unit 20, The amplitude of the image signal having the maximum edge component is selected and output to the division circuit 430.

【0031】除算回路430は、エッジ検出部20より
出力されてくるRの画像信号の振幅を、入力信号選択部
410より出力されてくる画像信号の振幅で除算して画
像信号の振幅比を求め、その結果を乗算回路440へ出
力する。一方、乗算回路430は、最大値出力回路30
より出力されてくる最大絶対値信号ΔDの値と、輪郭補
正ゲインKとを乗算して、その乗算結果ΔD’を乗算回
路440へ出力する。当該輪郭補正ゲインKは、不図示
の入力回路を介してユーザなどによりその値を任意に設
定可能となっており、このKの値が大きくなればなるほ
ど輪郭補正量が大きくなって画像がシャープになる。
The dividing circuit 430 divides the amplitude of the R image signal output from the edge detecting section 20 by the amplitude of the image signal output from the input signal selecting section 410 to obtain the amplitude ratio of the image signal. , And outputs the result to the multiplication circuit 440. On the other hand, the multiplication circuit 430 is
Is multiplied by the contour correction gain K, and the multiplication result ΔD ′ is output to the multiplication circuit 440. The value of the contour correction gain K can be arbitrarily set by a user or the like via an input circuit (not shown). As the value of K increases, the amount of contour correction increases and the image becomes sharper. Become.

【0032】乗算回路440は、乗算回路430より出
力されてくる演算結果ΔD’と除算回路420での演算
結果を乗算して、その演算結果を輪郭補正量R’として
輪郭補正演算部50へ出力する。G、Bの輪郭補正量演
算回路も全く図5と同様であって、異なるのは、除算回
路420の端子Aに入力される信号が、GもしくはBの
画像信号である点だけである。
The multiplication circuit 440 multiplies the operation result ΔD ′ output from the multiplication circuit 430 by the operation result of the division circuit 420 and outputs the operation result to the contour correction operation unit 50 as an outline correction amount R ′. I do. The G and B contour correction amount calculation circuits are also exactly the same as those in FIG. 5 except that the signal input to the terminal A of the division circuit 420 is a G or B image signal.

【0033】したがって、例えば、最大値出力回路30
より出力される最大絶対値信号ΔDが、ΔGであったと
すると、輪郭補正量演算部40より出力される輪郭補正
量R’、G’、B’は、以下のようになる。 R’=K・ΔG・R/G G’=K・ΔG B’=K・ΔG・B/G (但し、K:輪郭補正ゲイン) 正負信号ΔDMSBが正の場合には、輪郭補正演算部50
(図1参照)での演算結果として、補正後のRGBの各
デジタル画像信号の振幅Rout、Gout、Bout
が、(R+R’)、(G+G’)、(B+B’)となる
から、それらの比率は、以下のようになる。
Therefore, for example, the maximum value output circuit 30
Assuming that the maximum absolute value signal ΔD is ΔG, the outline correction amounts R ′, G ′, and B ′ output from the outline correction amount calculation unit 40 are as follows. R ′ = K · ΔG · R / G G ′ = K · ΔG B ′ = K · ΔG · B / G (where K: contour correction gain) When the positive / negative signal ΔD MSB is positive, the contour correction calculation unit 50
As the calculation result in FIG. 1 (see FIG. 1), the amplitudes Rout, Gout, and Bout of the corrected RGB digital image signals are obtained.
Is (R + R '), (G + G'), (B + B '), and their ratio is as follows.

【0034】 Rout:Gout:Bout =(R+R’):(G+G’):(B+B’) =(R+K・ΔG・R/G):(G+K・ΔG):(B+K・ΔG・B/G) =(G+K・ΔG)・R/G:(G+K・ΔG):(G+K・ΔG)・B/G =R/G:1:B/G =R:G:B ・・・(2) この式(2)と同様な関係は、上記最大値出力回路30
より出力される最大絶対値信号ΔDが、ΔRもしくはΔ
Bの場合であっても同様に成立し、また正負信号ΔD
MSBの正負に関わらず成立する。
Rout: Gout: Bout = (R + R ′) :( G + G ′) :( B + B ′) = (R + K · ΔG · R / G) :( G + K · ΔG) :( B + K · ΔG · B / G) = (G + K · ΔG) · R / G: (G + K · ΔG): (G + K · ΔG) · B / G = R / G: 1: B / G = R: G: B (2) The relationship similar to 2) is the same as the maximum value output circuit 30
Is greater than ΔR or ΔR.
B, the same holds true, and the positive / negative signal ΔD
This is true regardless of whether the MSB is positive or negative.

【0035】以上のように本実施の形態においては、各
色の振幅の輪郭補正量が各色の振幅に比例するようにす
ることにより、各色における補正前の振幅と補正後の振
幅の比率が同じになり、画像の輪郭部に色付きを生じさ
せることなく輪郭補正を的確に行うことができる。な
お、本実施の形態においては、輪郭補正量の基準値とし
て最大絶対値信号ΔDを用いて、これを振幅の比に応じ
て各色の補正量を求めており、これにより輪郭補正量が
際立つように構成しているが、上記のように輪郭補正ゲ
インKの調整が可能な場合には、必ずしもエッジ成分の
絶対値が最大のものを輪郭補正量算出のための基準とす
る必要はなく、エッジ成分の絶対値が2番目、3番目の
ものを基準値として演算しても差し支えない。しかし、
特定の色についてのみ、エッジ成分が「0」もしくは、
「0」に近いものがあり得るので、輪郭補正を精度よく
実行するためには、基準値としてエッジ成分が最大値の
ものを選択する方が望ましい。
As described above, in the present embodiment, by making the contour correction amount of the amplitude of each color proportional to the amplitude of each color, the ratio of the amplitude before correction and the amplitude after correction in each color is the same. That is, the contour correction can be accurately performed without causing coloring of the contour portion of the image. In the present embodiment, the maximum absolute value signal ΔD is used as a reference value of the contour correction amount, and the correction value of each color is obtained according to the amplitude ratio, so that the contour correction amount stands out. However, if the contour correction gain K can be adjusted as described above, it is not always necessary to use the edge component having the largest absolute value as the reference for calculating the contour correction amount. The absolute value of the component may be calculated using the second or third absolute value as a reference value. But,
Only for a specific color, the edge component is "0" or
Since there may be a value close to “0”, it is preferable to select a reference value having the maximum value of the edge component in order to accurately execute the contour correction.

【0036】<第2の実施の形態>図6は、本発明の第
2の実施の形態における輪郭補正回路2の全体構成を示
すブロック図である。同図に示すように、輪郭補正回路
2は、A/D変換部10、エッジ検出部20、輪郭補正
演算部50、および輪郭補正量出力制御回路60からな
る。
<Second Embodiment> FIG. 6 is a block diagram showing an overall configuration of a contour correction circuit 2 according to a second embodiment of the present invention. As shown in FIG. 1, the contour correction circuit 2 includes an A / D conversion unit 10, an edge detection unit 20, a contour correction calculation unit 50, and a contour correction amount output control circuit 60.

【0037】本実施の形態は、図1に示す第1の実施の
形態に比べて、最大値出力回路30、輪郭補正量演算部
40の代わりに輪郭補正量出力制御回路60が設けられ
ている点が異なる。なお、同図において図1と同じ符号
を付したものは、同じ構成要素を示すので、その説明を
省略する。RGBの原色のアナログ画像信号は、A/D
変換部10において、デジタル画像信号に変換されエッ
ジ検出部20に出力される。
This embodiment is different from the first embodiment shown in FIG. 1 in that a maximum value output circuit 30 and a contour correction amount output control circuit 60 are provided instead of the contour correction amount calculation section 40. The points are different. In the figure, components denoted by the same reference numerals as those in FIG. 1 indicate the same components, and the description thereof will be omitted. The analog image signal of the RGB primary colors is A / D
The conversion unit 10 converts the digital image signal into a digital image signal and outputs the digital image signal to the edge detection unit 20.

【0038】エッジ検出部20は、注目画素におけるエ
ッジ成分を演算すると共に、当該エッジ成分の絶対値信
号ΔR、ΔG、ΔBを輪郭補正量出力制御回路60へ、
正負信号ΔRMSB、ΔGMSB、ΔBMSBを輪郭補正演算部
50へ出力する。輪郭補正量出力制御回路60は、エッ
ジ検出部20より出力されてくるRGBの画像信号と、
絶対値信号ΔR、ΔG、ΔBより、輪郭補正量R’、
G’、B’を演算して、輪郭補正演算部50へ出力す
る。
The edge detector 20 calculates the edge component of the pixel of interest and sends the absolute value signals ΔR, ΔG, and ΔB of the edge component to the contour correction amount output control circuit 60.
The positive and negative signals ΔR MSB , ΔG MSB , and ΔB MSB are output to the contour correction calculation unit 50. The contour correction amount output control circuit 60 outputs an RGB image signal output from the edge detection unit 20,
From the absolute value signals ΔR, ΔG, and ΔB, the contour correction amount R ′,
G ′ and B ′ are calculated and output to the contour correction calculation unit 50.

【0039】輪郭補正演算部50は、エッジ検出部20
より出力されてくるRGBの画像信号および正負信号Δ
MSB、ΔGMSB、ΔBMSBと、輪郭補正量出力制御回路
60より出力されてくる輪郭補正量R’、G’、B’よ
り輪郭補正を行う。以下、本実施の形態における輪郭補
正回路2を特徴付ける輪郭補正量出力制御回路60の構
成について詳説する。
The contour correction calculating section 50 includes an edge detecting section 20
RGB image signal and positive / negative signal Δ
The contour correction is performed based on R MSB , ΔG MSB , ΔB MSB and the contour correction amounts R ′, G ′, B ′ output from the contour correction amount output control circuit 60. Hereinafter, the configuration of the contour correction amount output control circuit 60 that characterizes the contour correction circuit 2 in the present embodiment will be described in detail.

【0040】(輪郭補正量出力制御回路60の構成)図
7は、輪郭補正量出力制御回路60の概略構成を示すブ
ロック図である。同図に示すように、輪郭補正量出力制
御回路60は、スイッチ切換信号生成部610および出
力信号切換部620からなる。スイッチ切換信号生成部
610は、コンパレータ611〜613および負論理の
AND回路614〜616からなる。
FIG. 7 is a block diagram showing a schematic configuration of the contour correction amount output control circuit 60. As shown in FIG. As shown in the figure, the contour correction amount output control circuit 60 includes a switch switching signal generation unit 610 and an output signal switching unit 620. The switch switching signal generator 610 includes comparators 611 to 613 and negative logic AND circuits 614 to 616.

【0041】コンパレータ611〜613は、エッジ検
出部20より出力されてくるRGBの画像信号の振幅
と、所定の閾値constと比較して、当該所定の閾値
よりも画像信号の振幅の方が大きければ「1」の信号を
出力する。AND回路614〜615は、コンパレータ
611〜613から出力されてくる信号に従って、スイ
ッチ切換信号SIG4〜SIG6を出力する。
The comparators 611 to 613 compare the amplitude of the RGB image signal output from the edge detector 20 with a predetermined threshold const, and if the amplitude of the image signal is larger than the predetermined threshold, const. The signal of "1" is output. AND circuits 614 to 615 output switch switching signals SIG4 to SIG6 according to signals output from comparators 611 to 613.

【0042】同図に示すようにコンパレータ611〜6
13およびAND回路614〜615は、Rの画像信号
の振幅のみが所定の閾値を超える場合にSIG4および
SIG5が「1」となり、Gの画像信号の振幅のみが所
定の閾値を超える場合にSIG4およびSIG6が
「1」となり、およびBの画像信号の振幅のみが所定の
閾値を超える場合にSIG5およびSIG6が「1」と
なるように配線されている。
As shown in FIG.
13 and AND circuits 614 to 615 determine that SIG4 and SIG5 are “1” when only the amplitude of the R image signal exceeds a predetermined threshold, and that SIG4 and SIG5 when only the amplitude of the G image signal exceeds the predetermined threshold. The SIG6 and the SIG6 are wired so as to be "1" when SIG6 becomes "1" and only the amplitude of the B image signal exceeds a predetermined threshold.

【0043】また、いずれかの異なる2色もしくは全色
の振幅が所定の閾値を超える場合には、スイッチ切換信
号SIG4〜SIG6が全て「1」となる。出力信号切
換部62は、スイッチ621〜623からなる。当該ス
イッチ621〜623には、エッジ検出部20から出力
される絶対値信号ΔR、ΔG、ΔBが、それぞれN−1
ビットのままの値と、そこから上位(N−1)−m(m
は、1以上N−1以下の整数)のみ抽出された、いわば
減衰された値とが入力されており、AND回路614〜
616から出力されたスイッチ切替信号が「1」の場合
に減衰された値を選択し、スイッチ切替信号が「0」の
場合にN−1ビットの値を選択して、それぞれ輪郭補正
量R’、G’、B’として出力するように構成されてい
る。
If the amplitude of any two different colors or all the colors exceeds a predetermined threshold, the switch switching signals SIG4 to SIG6 all become "1". The output signal switching unit 62 includes switches 621 to 623. The switches 621 to 623 respectively receive the absolute value signals ΔR, ΔG, and ΔB output from the edge detection unit 20 at N−1.
The value as a bit and the higher (N-1) -m (m
Is an integer of 1 or more and N-1 or less), which is an attenuated value.
When the switch switching signal output from 616 is "1", the attenuated value is selected, and when the switch switching signal is "0", the N-1 bit value is selected, and the contour correction amount R 'is selected. , G ′, and B ′.

【0044】これによりR、G、Bのいずれか1つの振
幅が所定の閾値を超えた場合のみ、輪郭補正演算部50
において、当該色の輪郭補正量がそのまま最終的な補正
量として元の振幅に加算もしくは減算され、他の2色の
補正量は、減衰された状態で元の振幅に加算もしくは減
算されることになる。その結果、振幅が一番大きく、か
つ所定の閾値を超えた色について際立った輪郭補正がな
されることになり、一番強調すべき色の輪郭補正が可能
となり、従来のように強調すべき色が強調されないで色
付きが発生するような不都合を回避できる。
Thus, only when the amplitude of any one of R, G, and B exceeds a predetermined threshold value, the contour correction calculation unit 50
, The outline correction amount of the color is directly added or subtracted to the original amplitude as a final correction amount, and the correction amounts of the other two colors are added or subtracted to the original amplitude in an attenuated state. Become. As a result, remarkable contour correction is performed for the color having the largest amplitude and exceeding a predetermined threshold, and the contour correction of the color to be emphasized most becomes possible. Can be prevented from being colored without being emphasized.

【0045】このようにして、本実施の形態の輪郭補正
回路2においては、RGBの各デジタル画像信号の振幅
を所定の閾値とを比較することにより、強調して補正す
べき色を判断するので、前述した第1の実施の形態の輪
郭補正回路1のように、最大値出力回路30などを設け
る必要がなく、回路構成を極めて簡素化することができ
る。
As described above, in the contour correction circuit 2 of the present embodiment, the color to be emphasized and corrected is determined by comparing the amplitude of each digital image signal of RGB with a predetermined threshold value. Unlike the contour correction circuit 1 of the first embodiment, there is no need to provide the maximum value output circuit 30 and the like, and the circuit configuration can be extremely simplified.

【0046】但し、本実施の形態によれば、RGBのう
ち2色もしくは3色の振幅が所定の閾値を超える場合、
つまり、スイッチ切換信号SIG4〜SIG6の値が全
て1の場合には、スイッチ621〜623は全て減衰さ
れた輪郭補正量を選択してしまうので、輪郭補正の効果
が乏しくなる。しかし、例えば、コンピュータのディス
プレイなどにおいて、テキストデータなどを表示する場
合には、ほとんどの場合、文字の色としてR、G、Bの
いずれか1色を中心にした色彩が選択されるようになっ
ているので、RGBのうち2色以上の振幅が所定の閾値
を超えることは少なく、この限りにおいて本実施の形態
における輪郭補正の効果を得られるものである。
However, according to the present embodiment, when the amplitude of two or three colors of RGB exceeds a predetermined threshold value,
In other words, when the values of the switch switching signals SIG4 to SIG6 are all 1, the switches 621 to 623 all select the attenuated contour correction amount, and the effect of the contour correction is poor. However, for example, when displaying text data or the like on a computer display or the like, in most cases, a color centered on one of R, G, and B is selected as a character color. Therefore, the amplitude of two or more colors of RGB rarely exceeds a predetermined threshold value, and the effect of the contour correction according to the present embodiment can be obtained as long as the amplitude is not exceeded.

【0047】(変形例)以上、本発明に係る輪郭補正回
路を実施の形態に基づいて説明してきたが、本発明の内
容が、上述の実施の形態に限定されないのは勿論であ
り、以下のような変形例を実施することもできる。 (1)上記実施の形態においては、水平方向に隣接する
画素間の振幅の二次微分量を算出して、当該画素が輪郭
部の画素である程度を示す輪郭特徴量(エッジ成分)を
求めたが、単に水平方向に隣接する画素間の振幅の差分
を求め、これをエッジ成分としても構わない。
(Modification) Although the contour correction circuit according to the present invention has been described based on the embodiment, it goes without saying that the content of the present invention is not limited to the above-described embodiment. Such a modification can also be implemented. (1) In the above embodiment, the second derivative of the amplitude between pixels adjacent in the horizontal direction is calculated, and a contour feature (edge component) indicating that the pixel is a pixel of the contour part is obtained. However, the difference between the amplitudes of pixels adjacent in the horizontal direction may be simply obtained, and this may be used as an edge component.

【0048】(2)また、上記実施の形態においては、
注目画素におけるエッジ成分を求めるため水平方向に隣
接する画素を用いているが、注目画素の周辺画素として
垂直方向に隣接する画素(以下、「垂直隣接画素」とい
う。)についてエッジ成分を求めるようにしてもよい。
この場合におけるエッジ検出回路の構成は、例えば、次
のような構成とすることができる。
(2) In the above embodiment,
Although pixels adjacent in the horizontal direction are used to obtain an edge component of the target pixel, an edge component is obtained for a pixel adjacent in the vertical direction (hereinafter, referred to as a “vertical adjacent pixel”) as a peripheral pixel of the target pixel. You may.
The configuration of the edge detection circuit in this case can be, for example, as follows.

【0049】図8は、Rの画像信号について垂直隣接画
素間のエッジ成分を演算するためのエッジ検出回路70
の概略構成を示すブロック図であり、第1の実施の形態
におけるエッジ検出回路21(図2参照)に相当するも
のである。同図に示すように、このエッジ検出回路70
は、1ラインメモリ710、1ラインディレイメモリ7
20,730、加算回路740、減算回路750、AB
S回路760、およびラッチ回路L11〜L20からな
っており、1ラインメモリ710、1ラインディレイメ
モリ720,730を除いて、エッジ検出回路21とほ
ぼ同様な構成となっている。
FIG. 8 shows an edge detection circuit 70 for calculating an edge component between vertically adjacent pixels for an R image signal.
FIG. 3 is a block diagram showing a schematic configuration of an edge detection circuit 21 (see FIG. 2) according to the first embodiment. As shown in FIG.
Is a one-line memory 710, a one-line delay memory 7
20, 730, addition circuit 740, subtraction circuit 750, AB
It comprises an S circuit 760 and latch circuits L11 to L20, and has substantially the same configuration as the edge detection circuit 21 except for a one-line memory 710 and one-line delay memories 720 and 730.

【0050】1ラインメモリ710、1ラインディレイ
メモリ720、730は、FIFOのラインメモリであ
って、A/D変換回路より出力されてくるRの画素ごと
の振幅を、それぞれ主走査方向の1ラインずつ遅延して
保持することにより、逐次3ライン分の画像信号を保持
するように構成されている。各ラインメモリは、クロッ
クを受信するたびにラッチ回路L11〜L13に対し
て、垂直方向に並ぶ3個の画素の振幅をそれぞれ出力す
るので、これによりラッチ回路L12に注目画素の振幅
が格納されると共に、ラッチ回路L11、L13に垂直
隣接画素の振幅が格納されるようになっている。
The one-line memory 710 and the one-line delay memories 720 and 730 are FIFO line memories that store the amplitude of each R pixel output from the A / D conversion circuit in one line in the main scanning direction. By delaying and holding the image signals, image signals for three lines are sequentially held. Each line memory outputs the amplitude of the three pixels arranged in the vertical direction to the latch circuits L11 to L13 each time the clock is received, whereby the amplitude of the target pixel is stored in the latch circuit L12. At the same time, the amplitudes of vertically adjacent pixels are stored in the latch circuits L11 and L13.

【0051】そして、上述の水平隣接画素間のエッジ成
分を演算する場合と同様にして、加算回路740、減算
回路750、ABS回路760およびラッチ回路L14
〜L20により、Rの画像信号の垂直隣接画素間のエッ
ジ成分の絶対値信号ΔR、正負信号ΔRMSBが演算され
出力される。また、G、Bの画像信号についても、同じ
回路構成によって処理される。
Then, similarly to the case of calculating the edge component between the horizontally adjacent pixels, the adding circuit 740, the subtracting circuit 750, the ABS circuit 760, and the latch circuit L14
L20, the absolute value signal ΔR and the positive / negative signal ΔR MSB of the edge component between the vertically adjacent pixels of the R image signal are calculated and output. G and B image signals are also processed by the same circuit configuration.

【0052】(3)上記実施の形態および変形例(1)
において、注目画素におけるエッジ成分の演算について
は、水平もしくは垂直方向のいずれかについて、隣接画
素間のエッジ成分を演算していたが、水平および垂直方
向の双方について、隣接画素間のエッジ成分を演算して
もよい。また、例えば、注目画素と斜め方向に隣接する
画素や、1もしくは2、3の画素をおいて隣接する画素
間のエッジ成分を演算することも可能であり、これら周
辺画素間における、振幅の2次微分量もしくは差分によ
り当該注目画素のエッジ成分が求められる。
(3) Embodiments and Modifications (1)
In the calculation of the edge component at the pixel of interest, the edge component between adjacent pixels was calculated in either the horizontal or vertical direction. However, the edge component between adjacent pixels was calculated in both the horizontal and vertical directions. May be. Further, for example, it is also possible to calculate a pixel adjacent to the pixel of interest in the oblique direction, or to calculate an edge component between adjacent pixels with one, two, or three pixels. The edge component of the pixel of interest is obtained from the next differential amount or difference.

【0053】但し、これらはエッジ検出回路の構成が複
雑になるため、回路構成を簡易にして低コスト化を図る
ためには、水平方向、垂直方向のいずれか一方でエッジ
成分を算出する方が望ましい。とりわけ水平方向のみの
隣接画素によりエッジ成分を算出する場合には、後者の
垂直方向のみの場合における図8の1ラインメモリ71
0、1ラインディレイメモリ720、730などが不要
となるので、その分コストを低く抑えることができると
いう利点がある。
However, since the configuration of the edge detection circuit becomes complicated, in order to simplify the circuit configuration and reduce the cost, it is better to calculate the edge component in either the horizontal direction or the vertical direction. desirable. In particular, when the edge component is calculated using only the adjacent pixels in the horizontal direction, the one-line memory 71 in FIG.
Since the 0 and 1 line delay memories 720 and 730 are not required, there is an advantage that the cost can be reduced accordingly.

【0054】[0054]

【発明の効果】以上説明したように本発明に係る輪郭補
正回路は、輪郭特徴量演算手段が各注目画素について当
該注目画素およびその周辺画素における各色の画像信号
のレベルに基づき、当該注目画素が前記輪郭部の画素で
ある度合いを示す輪郭特徴量を求め、補正量演算手段に
より、当該輪郭特徴量と注目画素における各色の画像信
号のレベルとに基づき、各色ごとの輪郭補正量を求める
ようにしているので、各色の画像信号のレベルの大きさ
に応じて各色ごとの適正な輪郭補正量を得ることがで
き、輪郭部における色付きなどを回避して不自然な画像
が生じないようにすることができる。
As described above, in the contour correction circuit according to the present invention, in the contour feature amount calculating means, for each pixel of interest, the pixel of interest is determined based on the level of the image signal of each color in the pixel of interest and its surrounding pixels. A contour feature amount indicating a degree of being a pixel of the contour portion is obtained, and a correction amount calculating unit calculates a contour correction amount for each color based on the contour feature amount and a level of an image signal of each color at the pixel of interest. Therefore, it is possible to obtain an appropriate contour correction amount for each color according to the level of the level of the image signal of each color, and to avoid coloring etc. at the contour portion so that an unnatural image does not occur. Can be.

【0055】ここで、前記周辺画素は、注目画素の水平
または垂直方向における隣接画素とすることにより、輪
郭特徴量演算手段における回路構成が簡易となり、低コ
スト化に資する。また、ここで、前記輪郭特徴量演算手
段が、各注目画素について、当該各注目画素における各
色の画像信号のレベルの前記周辺画素との差分もしくは
2次微分量を求めて、これを輪郭特徴量とすることによ
り適正かつ容易に輪郭特徴量を得ることができる。
Here, the peripheral pixel is a pixel adjacent to the pixel of interest in the horizontal or vertical direction, so that the circuit configuration in the contour feature amount calculating means is simplified, which contributes to cost reduction. Here, the contour feature amount calculating means obtains, for each target pixel, a difference or a second derivative of the level of the image signal of each color in the target pixel with respect to the peripheral pixels, and calculates the difference or the secondary feature amount. By doing so, the contour feature amount can be obtained appropriately and easily.

【0056】さらに、本発明は、上記補正量演算手段
が、前記各画素における各色ごとの輪郭特徴量の絶対値
の最大値を求め、当該最大値を基準にして各色の画像信
号のレベルの比に応じた輪郭補正量を決定しているの
で、各色の補正前のレベルの比と補正後のレベルの比を
等しくでき、輪郭部に色付きを生ずることない適正な輪
郭補正が実行できる。
Further, according to the present invention, the correction amount calculating means obtains a maximum value of an absolute value of a contour feature amount for each color in each pixel, and determines a ratio of a level of an image signal of each color based on the maximum value. , The ratio of the level before correction and the ratio of the level after correction of each color can be made equal, and proper contour correction without causing coloring in the contour portion can be executed.

【0057】また、本発明は、前記補正量演算手段が、
前記各色の画像信号のレベルを所定の値と比較して、当
該比較結果に応じて所定の係数を決定し、これを各色の
輪郭特徴量に乗じて輪郭補正量を算出する算出手段とを
備えており、この算出手段が、前記比較の結果、一の色
のみの画像信号のレベルが、前記所定の値より大きい場
合に、他の色における前記係数を当該一の色の係数より
も小さくするようにしてもよく、このようにすることに
より、例えば、画像がコンピュータのテキストデータな
どのように、いずれか一の原色を主成分とする画像であ
るような場合に、その原色を中心にして的確に輪郭補正
を行うことができる。
Further, according to the present invention, the correction amount calculating means includes:
Calculating means for comparing the level of the image signal of each color with a predetermined value, determining a predetermined coefficient in accordance with the comparison result, and multiplying this by a contour feature amount of each color to calculate a contour correction amount; If the level of the image signal of only one color is larger than the predetermined value as a result of the comparison, the calculating means makes the coefficient of another color smaller than the coefficient of the one color. By doing so, for example, when the image is an image mainly composed of any one of the primary colors, such as text data of a computer, the primary color may be used as a center. The contour correction can be performed accurately.

【0058】また、本発明は、複数色の画像信号に基づ
いて描画される画像の輪郭部を強調する輪郭補正方法で
あって、各注目画素について、当該注目画素およびその
周辺画素における各色の画像信号のレベルに基づき、当
該注目画素が前記輪郭部の画素である度合いを示す輪郭
特徴量を求める輪郭特徴量演算ステップと、前記輪郭特
徴量と注目画素における各色の画像信号のレベルに基づ
き、各色ごとの輪郭補正量を求める補正量演算ステップ
と、前記求められた各色ごとの輪郭補正量により注目画
素における各色ごとの画像信号のレベルを補正する補正
ステップとを含むことを特徴としており、この輪郭補正
方法を実行することにより、上記輪郭補正回路と同様な
効果を得ることができる。
The present invention is also a contour correction method for enhancing a contour portion of an image drawn based on image signals of a plurality of colors. For each target pixel, an image of each color in the target pixel and its peripheral pixels is provided. A contour feature value calculating step for obtaining a contour feature value indicating the degree to which the target pixel is a pixel of the contour portion based on the signal level; and each color based on the contour feature value and the level of the image signal of each color at the target pixel. A correction amount calculating step of obtaining an outline correction amount for each color, and a correction step of correcting the level of an image signal for each color in the pixel of interest with the obtained outline correction amount for each color. By executing the correction method, it is possible to obtain the same effect as that of the contour correction circuit.

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

【図1】本発明の第1の実施の形態に係る輪郭補正回路
1の全体構成を示すブロック図である。
FIG. 1 is a block diagram showing an overall configuration of a contour correction circuit 1 according to a first embodiment of the present invention.

【図2】エッジ検出回路21の概略構成を示すブロック
図である。
FIG. 2 is a block diagram illustrating a schematic configuration of an edge detection circuit 21.

【図3】エッジ成分演算部211における演算内容を示
す模式図である。
FIG. 3 is a schematic diagram showing a calculation content in an edge component calculation unit 211.

【図4】最大値出力回路30の概略構成を示すブロック
図である。
FIG. 4 is a block diagram showing a schematic configuration of a maximum value output circuit 30.

【図5】輪郭補正量演算回路40における、Rの画像信
号についての補正量演算回路40Rの概略構成を示すブ
ロック図である。
FIG. 5 is a block diagram illustrating a schematic configuration of a correction amount calculation circuit 40R for an R image signal in the contour correction amount calculation circuit 40;

【図6】本発明の第2の実施の形態に係る輪郭補正回路
2の全体構成を示すブロック図である。
FIG. 6 is a block diagram illustrating an overall configuration of a contour correction circuit 2 according to a second embodiment of the present invention.

【図7】輪郭補正量出力制御回路60の概略構成を示す
ブロック図である。
FIG. 7 is a block diagram illustrating a schematic configuration of a contour correction amount output control circuit 60;

【図8】本発明の変形例に係るRの画像信号について垂
直隣接画素間のエッジ成分を演算するエッジ検出回路7
0の構成の一例を示す図である。
FIG. 8 is an edge detection circuit 7 for calculating an edge component between vertically adjacent pixels for an R image signal according to a modification of the present invention.
FIG. 4 is a diagram illustrating an example of a configuration of a zero.

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

1、2 輪郭補正回路 10 A/D変換部 11〜13 A/D変換回路 20 エッジ検出部 21〜23,70 エッジ検出回路 30 最大値出力回路 40 輪郭補正量演算回路 50 輪郭補正演算部 51〜53 輪郭補正演算回路 60 輪郭補正量出力制御回路 214、760 ABS回路 710 1ラインメモリ 720,730 1ラインディレイメモリ L1〜L20 ラッチ回路 1, 2 contour correction circuit 10 A / D conversion section 11-13 A / D conversion circuit 20 edge detection section 21-23, 70 edge detection circuit 30 maximum value output circuit 40 contour correction amount calculation circuit 50 contour correction calculation section 51- 53 contour correction arithmetic circuit 60 contour correction amount output control circuit 214, 760 ABS circuit 710 1 line memory 720, 730 1 line delay memory L1 to L20 latch circuit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 複数色の画像信号に基づいて描画される
画像の輪郭部を強調する輪郭補正回路であって、 各注目画素について、当該注目画素およびその周辺画素
における各色の画像信号のレベルに基づき、当該注目画
素が前記輪郭部の画素である度合いを示す輪郭特徴量を
求める輪郭特徴量演算手段と、 前記輪郭特徴量と、注目画素における各色の画像信号の
レベルとに基づき、各色ごとの輪郭補正量を求める補正
量演算手段と、 前記求められた各色ごとの輪郭補正量により、注目画素
における各色ごとの画像信号のレベルを補正する補正手
段とを備えたことを特徴とする輪郭補正回路。
1. A contour correction circuit for enhancing a contour portion of an image drawn based on image signals of a plurality of colors, wherein each target pixel has a level of an image signal of each color at the target pixel and its surrounding pixels. A contour feature value calculating unit that calculates a contour feature value indicating a degree of the pixel of interest being a pixel of the contour portion, based on the contour feature value and a level of an image signal of each color at the pixel of interest. A contour correction circuit comprising: a correction amount calculating means for calculating a contour correction amount; and a correcting means for correcting a level of an image signal for each color in a pixel of interest based on the obtained contour correction amount for each color. .
【請求項2】 前記周辺画素は、注目画素の水平または
垂直方向における隣接画素であることを特徴とする請求
項1記載の輪郭補正装置。
2. The contour correction device according to claim 1, wherein the peripheral pixel is a pixel adjacent to the pixel of interest in a horizontal or vertical direction.
【請求項3】 前記輪郭特徴量演算手段は、各注目画素
について、当該各注目画素における各色の画像信号のレ
ベルの前記周辺画素との差分もしくは2次微分量を求め
て、これを輪郭特徴量とすることを特徴とする請求項1
または2記載の輪郭補正回路。
3. The contour feature value calculating means calculates, for each pixel of interest, a difference or a second derivative of a level of an image signal of each color at each pixel of interest with the peripheral pixels, and calculates the difference between the level and the contour feature value. 2. The method according to claim 1, wherein
Or the contour correction circuit according to 2.
【請求項4】 前記補正量演算手段は、前記各注目画素
における各色ごとの輪郭特徴量の絶対値の最大値を求
め、前記最大値となる色については、その輪郭特徴量に
正比例する量を輪郭補正量とし、他の色については、前
記最大値となる色の輪郭補正量に、前記最大値となる色
の画像信号のレベルに対する当該他の色の画像信号のレ
ベルの比を乗じて輪郭補正量とすることを特徴とする請
求項3に記載の輪郭補正回路。
4. The correction amount calculating means calculates a maximum value of an absolute value of a contour feature amount for each color in each pixel of interest, and for a color having the maximum value, calculates an amount directly proportional to the contour feature amount. For other colors, the contour correction amount is multiplied by the ratio of the level of the image signal of the other color to the level of the image signal of the color having the maximum value. The contour correction circuit according to claim 3, wherein the correction amount is a correction amount.
【請求項5】 前記補正量演算手段は、 前記各色の画像信号のレベルを所定の値と比較する比較
手段と、 前記比較結果に応じて所定の係数を決定し、これを各色
の輪郭特徴量に乗じて輪郭補正量を算出する算出手段と
を備え、 前記算出手段は、前記比較の結果、一の色のみの画像信
号のレベルが、前記所定の値より大きい場合に、他の色
における前記係数を当該一の色の係数よりも小さくする
ことを特徴とする請求項2に記載の輪郭補正回路。
5. The correction amount calculating means: comparing means for comparing the level of the image signal of each color with a predetermined value; determining a predetermined coefficient according to the comparison result; And calculating a contour correction amount by multiplying by one.When the level of the image signal of only one color is larger than the predetermined value as a result of the comparison, 3. The contour correction circuit according to claim 2, wherein the coefficient is smaller than the coefficient of the one color.
【請求項6】 複数色の画像信号に基づいて描画される
画像の輪郭部を強調する輪郭補正方法であって、 各注目画素について、当該注目画素およびその周辺画素
における各色の画像信号のレベルに基づき、当該注目画
素が前記輪郭部の画素である度合いを示す輪郭特徴量を
求める輪郭特徴量演算ステップと、 前記輪郭特徴量と、注目画素における各色の画像信号の
レベルとに基づき、各色ごとの輪郭補正量を求める補正
量演算ステップと、 前記求められた各色ごとの輪郭補正量により、注目画素
における各色ごとの画像信号のレベルを補正する補正ス
テップとを含むことを特徴とする輪郭補正方法。
6. A contour correction method for emphasizing a contour portion of an image drawn based on a plurality of color image signals, wherein each target pixel has a level of an image signal of each color at the target pixel and its surrounding pixels. A contour feature value calculating step of calculating a contour feature value indicating the degree to which the pixel of interest is a pixel of the contour portion, based on the contour feature value and a level of an image signal of each color at the pixel of interest, A contour correction method, comprising: a correction amount calculation step for obtaining a contour correction amount; and a correction step for correcting the level of an image signal for each color in a target pixel based on the obtained contour correction amount for each color.
JP2001010378A 2001-01-18 2001-01-18 Contour correction circuit and method Pending JP2002218493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001010378A JP2002218493A (en) 2001-01-18 2001-01-18 Contour correction circuit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001010378A JP2002218493A (en) 2001-01-18 2001-01-18 Contour correction circuit and method

Publications (1)

Publication Number Publication Date
JP2002218493A true JP2002218493A (en) 2002-08-02

Family

ID=18877699

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001010378A Pending JP2002218493A (en) 2001-01-18 2001-01-18 Contour correction circuit and method

Country Status (1)

Country Link
JP (1) JP2002218493A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004080787A (en) * 2002-08-13 2004-03-11 Samsung Electronics Co Ltd Contour emphasizing device of digital image data, its method, and digital display apparatus using it
JP2006333316A (en) * 2005-05-30 2006-12-07 Acutelogic Corp Image processing apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004080787A (en) * 2002-08-13 2004-03-11 Samsung Electronics Co Ltd Contour emphasizing device of digital image data, its method, and digital display apparatus using it
JP4544841B2 (en) * 2002-08-13 2010-09-15 三星電子株式会社 Digital image data contour emphasizing device and method, and digital display device using the same
JP2006333316A (en) * 2005-05-30 2006-12-07 Acutelogic Corp Image processing apparatus
JP4734032B2 (en) * 2005-05-30 2011-07-27 富士通セミコンダクター株式会社 Image processing device

Similar Documents

Publication Publication Date Title
US20040233217A1 (en) Adaptive pixel-based blending method and system
US6310659B1 (en) Graphics processing device and method with graphics versus video color space conversion discrimination
US6518970B1 (en) Graphics processing device with integrated programmable synchronization signal generation
KR20060125482A (en) Image processing apparatus, liquid crystal display apparatus, and color correction method
JP3333839B2 (en) Interpolation line detection method and interpolation line detection device
US6333762B1 (en) Method for making look-up tables for video format converter using the look-up tables
KR100342964B1 (en) γCORRECTION CIRCUIT AND γ CORRECTION METHOD
US20060104509A1 (en) Apparatus for compensating for gray component of image signal
US7965429B1 (en) Method and apparatus for performing color plane
JP2002218493A (en) Contour correction circuit and method
US20070109314A1 (en) Adaptive pixel-based blending method and system
JPH09101771A (en) Picture processor
JP4910254B2 (en) Image processing apparatus and method
JPH05265443A (en) Constitution system for three-dimensional body image display device
JP2001175237A (en) Method and device for controlling gradation
JP2000184236A (en) Gamma correction circuit and gamma correction method
JP3038545B2 (en) Apparatus and method for calculating luminance signal
JPH1042313A (en) Signal processing system, image processor and circuit for converting signal
JP3312509B2 (en) Gamma correction luminance level complementer
JP4137779B2 (en) Video signal processing apparatus and electronic apparatus
JPH10173958A (en) Video signal processor
JP3262835B2 (en) Image discriminating apparatus and method
JPH05211659A (en) Gamma correcting circuit and method
JPH0865583A (en) Display device
JPH11122510A (en) Contour correction circuit for video signal