JP3193543B2 - Video signal correction device - Google Patents

Video signal correction device

Info

Publication number
JP3193543B2
JP3193543B2 JP24931393A JP24931393A JP3193543B2 JP 3193543 B2 JP3193543 B2 JP 3193543B2 JP 24931393 A JP24931393 A JP 24931393A JP 24931393 A JP24931393 A JP 24931393A JP 3193543 B2 JP3193543 B2 JP 3193543B2
Authority
JP
Japan
Prior art keywords
color difference
value
difference value
pixel
luminance
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.)
Expired - Fee Related
Application number
JP24931393A
Other languages
Japanese (ja)
Other versions
JPH06296285A (en
Inventor
佳之 宮端
宏 大西
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 Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP24931393A priority Critical patent/JP3193543B2/en
Publication of JPH06296285A publication Critical patent/JPH06296285A/en
Application granted granted Critical
Publication of JP3193543B2 publication Critical patent/JP3193543B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Of Color Television Signals (AREA)
  • Image Processing (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、カラー画像を扱うビデ
オ、ビデオムービー、フルカラープリンタ、フルカラー
Faxなどの映像機器、更に磁気ディスク、光ディスク
などによる画像記憶ができる情報機器において、色にじ
みを補正して画質の向上をはかる際の映像信号補正装置
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is intended to correct color fringing in video equipment handling color images, video equipment such as full color printers, full color faxes, and information equipment capable of storing images using magnetic disks and optical disks. The present invention relates to a video signal correction device for improving the image quality.

【0002】[0002]

【従来の技術】近年、フルカラーのハードコピー技術の
発展に伴い、昇華型熱転写方式などの印写技術を用いて
忠実な画像の再現ができつつあり、静止画出力の需要が
増大している。また色再現においても、ハイビジョンな
どの高精細な映像信号を用いることにより銀塩写真と同
等の能力を持つに到っている。
2. Description of the Related Art In recent years, with the development of full-color hard copy technology, a faithful image can be reproduced using a printing technology such as a sublimation type thermal transfer system, and the demand for a still image output is increasing. In color reproduction as well, high-definition video signals such as high-definition video signals have the same performance as silver halide photography.

【0003】ところが、現行方式(NTSC方式など)
のテレビ信号を静止画として出力する場合、映像信号の
帯域制限により解像度が制限され、特に色差信号は輝度
信号に比べて1/3程度以下の解像度しか得ることがで
きず、したがって、実際には輝度が変化すると共に色が
変わるべき画像が、色差値の変化が追従できないために
輝度が変化する以前の色を用いて輝度変化後の部位で記
録される画像になってしまう。すなわち、色にじみの多
い画像を記録することになってしまう。
However, the current system (such as the NTSC system)
Is output as a still image, the resolution is limited by the band limitation of the video signal. In particular, the color difference signal can only obtain a resolution of about 1/3 or less as compared with the luminance signal. An image whose color should change as the luminance changes cannot be followed by a change in the color difference value, and is an image recorded at a portion after the luminance change using the color before the luminance change. That is, an image with a lot of color blur will be recorded.

【0004】そこで、この色にじみを除去する方法とし
て、例えば、輝度信号における輪郭情報を色差信号に加
算して補正する方法が提案されている(特開平2−21
3282号)。
Therefore, as a method of removing the color fringing, for example, a method has been proposed in which contour information in a luminance signal is added to a color difference signal to correct the color difference signal (Japanese Patent Laid-Open No. 2-21).
No. 3282).

【0005】図29は、上記従来の色にじみの補正を行
う映像信号補正装置のブロック図を示したものである。
図29において、ディジタル信号源100から出力され
た輝度信号Yと色差信号R−Y,B−Yは、接続装置1
01を通り、画像メモリ102に格納される。輪郭補正
回路103は画像メモリ102から読出した輝度信号に
基づき、水平、垂直方向の両アパ−チャ補正をデジタル
処理で行う。
FIG. 29 is a block diagram showing a conventional video signal correction apparatus for correcting color fringing.
In FIG. 29, the luminance signal Y and the color difference signals RY and BY output from the digital signal source 100 are connected to the connection device 1.
01 and stored in the image memory 102. The contour correction circuit 103 performs both horizontal and vertical aperture corrections by digital processing based on the luminance signal read from the image memory 102.

【0006】その後、輪郭補正回路103により輪郭の
ぼけが補正された輝度信号はディジタル信号処理部10
6へ出力され、又、輪郭補正成分はエッジ情報として加
算回路105へ出力される。一方、画像メモリ102か
ら取り出された色差信号R−Y,B−Yは、ローパスフ
ィルタ(LPF)104により雑音成分が軽減された
後、それぞれ加算回路105A,105Bにより、前述
の輝度信号に対する輪郭補正成分のエッジ情報が加算さ
れ、ディジタル信号処理部106へ出力される。
After that, the luminance signal whose outline is corrected by the outline correction circuit 103 is output to the digital signal processor 10.
6 and the contour correction component is output to the addition circuit 105 as edge information. On the other hand, the color difference signals RY and BY fetched from the image memory 102 have their noise components reduced by a low-pass filter (LPF) 104, and then are subjected to contour correction for the above-mentioned luminance signal by adding circuits 105A and 105B, respectively. The edge information of the components is added and output to the digital signal processing unit 106.

【0007】上記ディジタル信号処理部106では、入
力された輝度信号と色差信号R−Y,B−Yに基づい
て、彩度向上、γ補正などを行い、プリンタ109へデ
ィジタル信号を出力する。又、接続装置101と画像メ
モリ102との間には、NTSC信号のように1フレー
ムが2フィールドで構成される場合、第1フィールドと
第2フィールドで画像にぶれが生じることを除くための
動き検出回路107が設けられ、その動き検出回路10
7には、フィールドからフレーム画像を得るための走査
線補間回路108が接続されている。又、プリンタ10
9はディジタル信号処理部106からの出力信号に基づ
き、適宜な紙に画像をプリントアウトするものである。
The digital signal processing section 106 performs chroma enhancement, γ correction, and the like based on the input luminance signal and color difference signals RY and BY, and outputs a digital signal to the printer 109. Further, when one frame is composed of two fields, such as an NTSC signal, movement between the connection device 101 and the image memory 102 is performed to eliminate the occurrence of image blur in the first and second fields. A detection circuit 107 is provided.
7, a scanning line interpolation circuit 108 for obtaining a frame image from a field is connected. Also, the printer 10
Numeral 9 prints out an image on an appropriate sheet of paper based on an output signal from the digital signal processing unit 106.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記の
ような構成では、NTSC信号のように色差信号の帯域
が輝度信号より極端に狭い場合、輝度信号の輪郭補正成
分を色差信号に加算しても、色差信号のにじみがうまく
補正されず、逆に輝度信号の輪郭補正部分で色の異なる
部分が生じて画質を更に低下させる。また、色差信号の
値が一定なところにおいても輪郭補正成分が加算される
ので、疑似輪郭が生じ易いという課題がある。
However, in the above configuration, when the band of the color difference signal is extremely narrower than the luminance signal like the NTSC signal, the contour correction component of the luminance signal is added to the color difference signal. However, blurring of the color difference signal is not corrected well, and conversely, a portion having a different color occurs in the contour correction portion of the luminance signal, thereby further deteriorating the image quality. Further, since the contour correction component is added even in a place where the value of the color difference signal is constant, there is a problem that a pseudo contour is easily generated.

【0009】本発明は、従来の色にじみの補正における
このような課題を考慮し、画像の色のにじみの補正程度
を向上でき、補正時の画質劣化を抑制できる映像信号補
正装置を提供することを目的とするものである。
SUMMARY OF THE INVENTION The present invention provides a video signal correction apparatus which can improve the degree of correction of color bleeding of an image and suppress image quality deterioration at the time of correction in consideration of such a problem in the conventional correction of color bleeding. It is intended for.

【0010】[0010]

【課題を解決するための手段】本発明は、画像の各画素
の輝度値及び色差値を格納する格納手段と、その格納さ
れた輝度値から生成された輝度信号を入力し、その画像
の所定方向における輝度値が所定値以上増加又は減少す
る輝度変化領域の少なくとも一端部の画素の位置を検出
する輝度変化位置検出手段と、その検出された端部の画
素の位置から輝度変化領域の外側に向かって、輝度値の
変化が所定輝度値以下の輝度安定領域を検出する輝度安
定領域検出手段と、その検出された輝度安定領域内であ
って、画像の所定方向における色差値が所定値以上増加
又は減少する色差値変化領域を検出し、その検出された
色差値変化領域内の格納手段に格納された少なくとも一
部の色差値を色差値変化領域外の色差値の変動の少ない
色差値安定領域の色差値を用いて、補正する色差値補正
手段と、その色差値が補正された画像の所定方向と垂直
な方向に連続する、輝度値が所定値の範囲内にはいる、
複数個の画素を選択し、それらの画素の色差値をならす
垂直色差値補正手段とを備えた映像信号補正装置であ
る。
According to the present invention, a storage means for storing a luminance value and a chrominance value of each pixel of an image, and a luminance signal generated from the stored luminance value are inputted, and a predetermined signal of the image is inputted. A brightness change position detecting means for detecting a position of a pixel at at least one end of a brightness change region in which a brightness value in the direction increases or decreases by a predetermined value or more, and from the detected position of the pixel at the end to the outside of the brightness change region. A luminance stable area detecting means for detecting a luminance stable area in which a change in the luminance value is equal to or less than a predetermined luminance value, and a color difference value in a predetermined direction of the image within the detected luminance stable area increases by a predetermined value or more. Alternatively, a color difference value change area that decreases is detected, and at least a part of the color difference values stored in the storage means in the detected color difference value change area is converted to a color difference value stable area with little change in the color difference value outside the color difference value change area. of With difference values, the color difference value correction means for correcting, continuously in a predetermined direction perpendicular to the direction of the image in which the color difference value is corrected, the luminance value falls within a predetermined value,
A video signal correction apparatus including a vertical color difference value correction unit that selects a plurality of pixels and smoothes the color difference values of those pixels.

【0011】[0011]

【作用】本発明は、格納手段が画像の各画素の輝度値及
び色差値を格納し、輝度変化位置検出手段が、その画像
の所定方向における輝度値が所定値以上増加又は減少す
る輝度変化領域の少なくとも一端部の画素の位置を検出
し、輝度安定領域検出手段が、その端部の画素の位置か
ら輝度変化領域の外側に向かって、輝度値の変化が所定
輝度値以下の輝度安定領域を検出し、色差値補正手段
が、輝度安定領域内であって、画像の所定方向における
色差値が所定値以上増加又は減少する色差値変化領域を
検出し、色差値変化領域内の格納手段に格納された少な
くとも一部の色差値を、色差値の変動の少ない色差値安
定領域の色差値を用いて補正し、垂直色差値補正手段
が、色差値が補正された画像の所定方向と垂直な方向に
連続する、輝度値が所定値の範囲内にはいる、複数個の
画ぞを選択して、それらの画素の色差値をならす。つま
り、輝度値の変化に対して色差値の変化を一致させるよ
うに色差信号を補正することにより、色差信号のなまり
を補正して色にじみを低減して画質が改善できる。
According to the present invention, the storage means stores a luminance value and a color difference value of each pixel of an image, and the luminance change position detecting means detects a luminance change area in which the luminance value in a predetermined direction of the image increases or decreases by a predetermined value or more. The luminance stable area detecting means detects a luminance stable area in which a change in luminance value is equal to or less than a predetermined luminance value from the position of the pixel at the end to the outside of the luminance change area. The color difference value correction means detects the color difference value change area in the luminance stable area where the color difference value in the predetermined direction of the image increases or decreases by a predetermined value or more, and stores the color difference value change area in the storage means in the color difference value change area. The corrected at least a part of the color difference values are corrected by using the color difference values of the color difference value stable region with little change in the color difference value, and the vertical color difference value correction unit is configured to correct the color difference value in a direction perpendicular to a predetermined direction of the image in which the color difference values are corrected The brightness value Fall within a range of values, by selecting the respective plurality of picture, even out the color difference values of those pixels. That is, by correcting the color difference signal so that the change in the color difference value matches the change in the luminance value, it is possible to correct the dullness of the color difference signal, reduce color fringing, and improve image quality.

【0012】[0012]

【実施例】以下に、本発明をその実施例を示す図面に基
づいて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings showing embodiments thereof.

【0013】図1は、本発明にかかる第1の実施例の映
像信号補正装置のブロック図である。図1において、1
は映像信号の水平走査方向(以下、水平方向と呼ぶ)に
連続する画素の輝度値及び2つの色差値を画素の位置に
対応するように順に格納する格納手段である画像メモリ
である。
FIG. 1 is a block diagram of a video signal correction device according to a first embodiment of the present invention. In FIG. 1, 1
Reference numeral denotes an image memory which is storage means for sequentially storing a luminance value and two color difference values of a pixel continuous in a horizontal scanning direction (hereinafter, referred to as a horizontal direction) of a video signal so as to correspond to a pixel position.

【0014】2は画像の水平方向に2画素以上輝度値が
連続して増加または減少し始めるn1番目の画素をエッ
ジ始点として検出するエッジ始点検出手段、3はエッジ
始点検出手段2で検出されたエッジ始点から画像の水平
方向に連続した輝度値の増加あるいは減少が終了するn
2番目の画素をエッジ終点として検出するエッジ終点検
出手段である。
Reference numeral 2 denotes an edge start point detecting means for detecting an n1st pixel whose luminance value starts to increase or decrease continuously in two or more pixels in the horizontal direction as an edge start point, and reference numeral 3 denotes an edge start point detecting means 2. When the increase or decrease of the luminance value continuous in the horizontal direction of the image from the edge start point ends n
Edge end point detecting means for detecting the second pixel as an edge end point.

【0015】4は輝度値の変動が少ないn1−a番目か
らエッジ始点までの間であって、エッジ始点まで色差値
が連続して増加または減少し始めるk1番目の画素を検
出すると共に、このk1番目の画素からエッジ始点まで
の画素の色差値の少なくとも一部を変更するエッジ始点
部色差値補正手段である。
Reference numeral 4 denotes a k1-th pixel between the (n1-a) th where the variation of the luminance value is small and the edge start point, and the k1-th pixel whose chrominance value starts to increase or decrease continuously from the edge start point. The edge start point color difference value correction means changes at least a part of the color difference values of the pixels from the pixel to the edge start point.

【0016】5は輝度値の変動が少ないエッジ終点から
n2+b番目までの間であって、エッジ終点から連続し
て色差値の増加または減少が終了するk2番目までの画
素の色差値の少なくとも一部を変更するエッジ終点部色
差値補正手段である。
Reference numeral 5 denotes at least a part of the color difference values of the pixels from the edge end point where the variation of the luminance value is small to the (n2 + b) th pixel and from the edge end point to the k2th pixel where the color difference value continuously increases or decreases. Is a color difference value correction unit for changing the edge end point.

【0017】6は、水平方向に対して補正処理された色
差値が格納された画像メモリ1から垂直方向に連続する
少なくとも3画素の輝度値と色差値を読みだし、そのう
ちの1画素を注目画素とし、その注目画素の輝度値Yh
に対して、輝度値の差の絶対値がδ以内である画素を残
りの画素から選択し、注目画素の色差値を選択された画
素の色差値を用いて変更する垂直色差値補正手段であ
る。
6 reads out the luminance and chrominance values of at least three consecutive pixels in the vertical direction from the image memory 1 in which the chrominance values corrected in the horizontal direction are stored, and assigns one pixel to the pixel of interest. And the luminance value Yh of the pixel of interest
A vertical chrominance value correction unit that selects a pixel whose absolute value of the luminance value difference is within δ from the remaining pixels, and changes the chrominance value of the target pixel using the chrominance value of the selected pixel. .

【0018】次に上記実施例の動作について説明する。Next, the operation of the above embodiment will be described.

【0019】まず、画像メモリ1から水平方向に画像の
輝度値を取り出しながら、エッジ始点検出手段2により
輝度値が大きく変化し始めるn1番目の画素であるエッ
ジ始点と、エッジ終点検出手段3により輝度値の変化が
終了するn2番目の画素であるエッジ終点を各々検出す
る。次に、画像メモリ1から水平方向に画像の色差値を
取り出しながら、エッジ始点直前またはエッジ終点直後
において色差値が連続して変化している場合は、エッジ
始点部色差値補正手段4とエッジ終点部色差値補正手段
5により、それら色差値が変化している領域の色差値を
変更する。
First, while the luminance value of the image is taken out from the image memory 1 in the horizontal direction, the edge start point detecting means 2 starts to change the luminance value greatly. The edge end point which is the n2th pixel at which the value change ends is detected. Next, while extracting color difference values of the image in the horizontal direction from the image memory 1, if the color difference values continuously change immediately before the edge start point or immediately after the edge end point, the edge start point portion color difference value correction means 4 and the edge end point The color difference value correcting means 5 changes the color difference value of the area where the color difference values are changing.

【0020】次に、画像メモリ1から1つの注目画素と
その注目画素の上下に位置する画素の合わせて3画素の
輝度値を取り出し、垂直色差値補正手段6により、注目
画素の輝度値Yhを基準として、残りの画素の輝度値と
の差の絶対値がδ以内である画素を選択し、この選択し
た画素の色差値を用いて注目画素の色差値を補正して出
力する。このようにして、その垂直方向に連続する画素
の色差値の補正を行い、それが完了した時点で画像メモ
リ1に色差値を転送する。
Next, a luminance value of a total of three pixels is extracted from the image memory 1 including one pixel of interest and pixels located above and below the pixel of interest, and the luminance value Yh of the pixel of interest is calculated by the vertical chrominance value correction means 6. As a reference, a pixel whose absolute value of the difference from the luminance value of the remaining pixels is within δ is selected, and the color difference value of the target pixel is corrected and output using the color difference value of the selected pixel. In this way, the color difference values of the pixels that are continuous in the vertical direction are corrected, and the color difference values are transferred to the image memory 1 when the correction is completed.

【0021】ここで、格納手段は画像メモリ1で実現さ
れ、輝度変化位置検出手段は、エッジ始点検出手段2と
エッジ終点検出手段3で構成され、輝度安定領域検出手
段及び色差値補正手段は、エッジ始点部色差値補正手段
4及びエッジ終点部色差値補正手段5で構成されてい
る。
Here, the storing means is realized by the image memory 1, the luminance change position detecting means is constituted by the edge starting point detecting means 2 and the edge ending point detecting means 3, and the luminance stable area detecting means and the color difference value correcting means are: An edge start point color difference value correction unit 4 and an edge end point color difference value correction unit 5 are provided.

【0022】以上の処理を一画像データ全てに関して行
い、色にじみを低減した処理画像を得ることができる。
The above processing is performed on all the image data, and a processed image with reduced color fringing can be obtained.

【0023】画像メモリ1は、輝度値の読み出し、色差
値の読み出しおよび変更を容易にするために、例えば画
像の水平方向に連続した画素の画素値(輝度値と色差
値)を連続して読み出すことができるものを使用するこ
とが好ましい。但し、画像メモリ1として、画像の水平
方向に連続した画素の画素値を読み出すことができない
ものを用いる場合は、画像メモリ1から画素値を読み出
しながら、水平方向に連続する画素値を一時的に蓄える
ラインメモリなどを更に使用する構成とすることもでき
る。
The image memory 1 continuously reads, for example, pixel values (luminance value and color difference value) of pixels that are continuous in the horizontal direction of the image in order to facilitate reading of luminance values, reading and changing of color difference values. It is preferable to use those that can. However, when the image memory 1 is used that cannot read the pixel values of the pixels that are continuous in the horizontal direction of the image, the pixel values that are continuous in the horizontal direction are temporarily read while reading the pixel values from the image memory 1. A configuration in which a line memory or the like for storing is further used may be adopted.

【0024】また、画像メモリ1は少なくとも1画像全
てを蓄積できるページメモリが好ましいが、各処理が完
了する間の画像信号を一時的に保存できる容量、例えば
複数のラインメモリで構成されていてもよい。
The image memory 1 is preferably a page memory capable of storing at least one image. However, even if the image memory 1 is constituted by a plurality of line memories, for example, a capacity capable of temporarily storing an image signal while each processing is completed. Good.

【0025】エッジ始点検出手段2とエッジ終点検出手
段3における輝度値の連続した増減の検知は、例えば隣
接する画素の輝度値の差分値の符号が正または負で同一
となる場合が2つ以上連続する場合を検知したり、隣接
する画素の輝度値の差分値の符号が正または負で同一と
なる場合が2つ以上連続すると共に差分値の合計が事前
に設定した設定値以上となる場合を検知したり、隣接す
る画素間の輝度値の差分値が事前に設定した閾値以上と
なる場合が2つ以上連続する場合を検知することにより
実行できる。
The detection of the continuous increase / decrease of the brightness value in the edge start point detection means 2 and the edge end point detection means 3 is, for example, two or more cases where the sign of the difference value of the brightness value of the adjacent pixels is the same, positive or negative. Detecting a continuous case, or two or more consecutive cases where the sign of the difference value of the luminance value of adjacent pixels is the same as positive or negative and the case where the sum of the difference values is greater than or equal to a preset value , Or by detecting a case where two or more cases where the difference value of the luminance value between adjacent pixels is equal to or more than a predetermined threshold value are continuous.

【0026】一般の画像信号、特にNTSC信号などで
は雑音が多く重なっているので、輝度値の連続した増減
を検知する場合に小さい雑音信号による検知が多数生
じ、処理時間が長くなり易い。そこで、輝度値の連続し
た増減を2画素でなく3画素以上連続することで確認す
るようにしたり、前述した方法で差分値の合計に対する
設定値や、各差分値に対する閾値を若干大きくすること
が好ましい。
Since a general image signal, especially an NTSC signal, has a lot of noise, when detecting a continuous increase or decrease in the luminance value, a large number of small noise signals are detected, and the processing time tends to be long. In view of this, it is necessary to confirm the continuous increase / decrease of the brightness value by continuing three or more pixels instead of two pixels, or to slightly increase the set value for the sum of the difference values or the threshold value for each difference value by the method described above. preferable.

【0027】また、輝度値の増減は隣接する画素の差分
値の大小により、増減が連続する画素の判定数を比例さ
せることもできる。この場合、本実施例で示しているよ
うに輝度値の変化が急峻に起こっている場合だけでな
く、なだらかに変化している場合でも色にじみを低減で
きる。
The increase or decrease of the luminance value can be made proportional to the number of pixels whose increase and decrease are continuous depending on the difference value between adjacent pixels. In this case, the color blur can be reduced not only when the luminance value changes steeply as shown in this embodiment, but also when the luminance value changes gradually.

【0028】エッジ始点部色差値補正手段4において輝
度値の変動が少ないn1−a番目の認識は、例えばエッ
ジ始点から輝度値を逆順に取り出しながら差分値の絶対
値があらかじめ決めていた閾値より大きくなる画素をn
1−a番目の画素としたり、エッジ始点の輝度値に対す
る輝度値の差があらかじめ決めていた定数αまたはエッ
ジ始点の輝度値のZ%に収まらなくなる画素をn1−a
番目の画素としたり、または現在検索しているエッジ始
点直前にある別のエッジ終点の画素をn1−a番目の画
素とすることにより行える。
The edge start point chrominance value correction means 4 recognizes the (n1-a) th change in the luminance value which is small, for example, while extracting the luminance value from the edge start point in reverse order, the absolute value of the difference value is larger than a predetermined threshold value. Pixel is n
A pixel which is determined to be the 1-a-th pixel or a pixel whose difference in luminance value from the luminance value of the edge start point does not fall within a predetermined constant α or Z% of the luminance value of the edge start point is n1-a.
This can be performed by setting the pixel at the n-th pixel or the pixel at the end point of another edge immediately before the start point of the edge currently searched for as the (n1-a) th pixel.

【0029】なお、この輝度値の変動が少ないn1−a
番目からエッジ始点までの領域の決定は、エッジ始点検
出手段2またはエッジ始点部色差値補正手段4のどちら
でも行うことが出来る。
It should be noted that n1-a having a small variation in the luminance value.
The determination of the region from the first to the edge start point can be performed by either the edge start point detection means 2 or the edge start point color difference value correction means 4.

【0030】エッジ終点部色差値補正手段5において輝
度値の変動が少ないエッジ終点からn2+b番目の認識
についても、エッジ始点部色差値補正手段4と同様に、
例えばエッジ終点から連続した輝度値を順次取り出しな
がら差分値の絶対値があらかじめ決めていた閾値より大
きくなる画素をn2+b番目の画素としたり、エッジ終
点の輝度値に対する輝度値の差があらかじめ決めていた
定数αまたはエッジ終点の輝度値のZ%に収まらなくな
る画素をn2+b番目の画素としたり、または現在検索
しているエッジ終点直後に現れるエッジ始点の画素をn
2+b番目の画素とすることにより実行できる。
The edge end point chrominance value correcting means 5 also recognizes the (n2 + b) th from the edge end point where the variation of the luminance value is small, similarly to the edge start point chrominance value correcting means 4.
For example, a pixel in which the absolute value of the difference value is larger than a predetermined threshold value is taken as the n2 + b-th pixel while successive luminance values are sequentially taken out from the edge end point, or the difference between the luminance value and the luminance value of the edge end point is predetermined. A pixel that does not fall within the constant α or Z% of the luminance value of the edge end point is set to the n2 + b-th pixel, or the pixel of the edge start point that appears immediately after the edge end point currently being searched is set to n.
This can be performed by setting the 2 + b-th pixel.

【0031】なお、この輝度値の変動が少ないエッジ終
点からn2+b番目までの領域の決定は、エッジ終点検
出手段3またはエッジ終点部色差値補正手段5のどちら
でも行うことができる。
The determination of the area from the edge end point where the change in the luminance value is small to the n2 + b-th area can be performed by either the edge end point detecting means 3 or the edge end point color difference value correcting means 5.

【0032】エッジ始点部色差値補正手段4とエッジ終
点部色差値補正手段5における色差値の連続した増減の
検知は、例えば隣接する画素の色差値の差分値の符号が
正または負で同一となる場合が2つ以上連続する場合を
検知したり、隣接する画素の色差値の差分値の符号が正
または負で同一となる場合が2つ以上連続すると共に差
分値の合計が事前に設定した設定値以上となる場合を検
知したり、隣接する画素間の色差値の差分値が事前に設
定した閾値以上となる場合が2つ以上連続する場合を検
知することにより実行できる。
The detection of the continuous increase / decrease of the color difference values in the edge start point color difference value correction means 4 and the edge end point color difference value correction means 5 is performed, for example, when the sign of the difference value of the color difference value between adjacent pixels is positive or negative and the same. If two or more consecutive cases are detected, two or more consecutive cases where the sign of the difference value of the color difference value of the adjacent pixel is the same as positive or negative and the sum of the difference values are set in advance It can be executed by detecting a case where the difference value is equal to or more than the set value or detecting a case where two or more cases where the difference value of the color difference value between adjacent pixels is equal to or more than a preset threshold value are consecutive.

【0033】また、色差信号の帯域が輝度信号に比べて
極端に狭い、例えばNTSC信号などの場合で前述の方
法で色差値の増減を検知するには、隣接する画素の色差
値の変動が小さいので単数または複数の画素を挟んだ画
素間の色差値の差分値について行うことが好ましい。更
に一般の画像信号、特にNTSC信号などでは雑音が含
まれているので、色差値の連続した増減を検知する場合
に小さい雑音信号による検知が多数生じ、処理時間が長
くなり易い。そこで、短時間で処理を行うために、色差
値の増減の連続を2画素でなく3画素以上連続すること
を確認するようにしたり、前述した方法で差分値の合計
に対する設定値や、各差分値に対する閾値を若干大きく
することが好ましい。
Further, in the case where the band of the color difference signal is extremely narrow as compared with the luminance signal, for example, in the case of an NTSC signal or the like, to detect the increase or decrease of the color difference value by the above-mentioned method, the fluctuation of the color difference value of the adjacent pixel is small. Therefore, it is preferable to perform the processing on the difference value of the color difference value between pixels sandwiching one or more pixels. Furthermore, since a general image signal, particularly an NTSC signal, includes noise, when detecting a continuous increase or decrease in the color difference value, a large number of small noise signals are detected, and the processing time tends to be long. Therefore, in order to perform the processing in a short time, it is confirmed that the increase / decrease of the color difference value is continuous not less than 2 pixels but 3 pixels or more. It is preferable to slightly increase the threshold value.

【0034】エッジ始点部色差値補正手段4における色
差値の変更は、n1−a番目の画素からエッジ始点まで
の画素で色差値の変動の少ない領域での色差値を用い
る。例えば、色差値の変動が少ないk1〜k1−c(≧
n1−a)番目の各画素の色差値の代表値C1に色差値
を変更したり、この代表値C1と各色差値の平均値に変
更したりする。
The change of the color difference value in the edge start point color difference value correction means 4 uses the color difference value in the region from the (n1-a) th pixel to the edge start point in which the color difference value does not vary much. For example, k1 to k1-c (≧≧) with little change in color difference value
The color difference value is changed to the representative value C1 of the color difference value of each of the (n1-a) th pixels, or the average value of the representative value C1 and each color difference value is changed.

【0035】エッジ終点部色差値補正手段5における色
差値の変更は、エッジ終点からn2+b番目の画素まで
の画素で色差値の変動の少ない領域での色差値を用い
る。例えば、色差値の変動が少ないk2〜k2+d(≦
n2+b)番目の各画素の色差値の代表値C2に色差値
を変更したり、この代表値C2と各色差値の平均値に変
更したりする。
The change of the color difference value in the edge end point color difference value correcting means 5 uses a color difference value in a region from the edge end point to the n2 + b-th pixel where the color difference value is small. For example, k2 to k2 + d (≦≦
The color difference value is changed to the representative value C2 of the color difference value of each (n2 + b) -th pixel, or the average value of the representative value C2 and each color difference value is changed.

【0036】この代表値C1と代表値C2は、選ばれた
複数の画素の色差値の加法平均値、乗算平均、調和平均
値、メジアン値、モード値などの一般の度数分布に用い
る平均値を使用することができる。なお、このとき1画
素しか選ばれなかった場合は色差値の変更はしないこと
が好ましい。
The representative value C1 and the representative value C2 are average values used for general frequency distribution such as an additive average value, a multiplication average, a harmonic average value, a median value, and a mode value of the color difference values of a plurality of selected pixels. Can be used. In this case, if only one pixel is selected, it is preferable not to change the color difference value.

【0037】垂直色差値補正手段6では、次の近接する
画素に対する処理として参照されるときに処理される以
前の色差値を参照するようにしなければならないので、
既に処理された画素の色差値が画像メモリ1に書き込み
をしないように一時的に記憶する機能をも有する。これ
は、例えば垂直方向の処理結果を一時的に蓄えるライン
メモリや、垂直方向の処理結果を格納する画素位置が処
理範囲内である間保存できる容量を持つ複数のバッファ
などで構成することができる。
The vertical chrominance value correcting means 6 must refer to the chrominance value before being processed when it is referred to as the process for the next adjacent pixel.
It also has a function of temporarily storing the color difference values of already processed pixels so as not to write them to the image memory 1. This can be configured by, for example, a line memory that temporarily stores the processing results in the vertical direction, or a plurality of buffers having a capacity that can be stored while the pixel position for storing the processing results in the vertical direction is within the processing range. .

【0038】垂直色差値補正手段6は、本実施例では上
下に連続する3画素(注目画素を含む)を参照して色差
値を補正しているが、3画素以上の奇数画素、例えば5
画素、7画素を参照するようにすることもできる。但
し、この場合、少なくとも輝度値が注目画素の輝度値に
近いだけでなく、この輝度値の近い画素のつながりで注
目画素に位置的にも連続する画素だけを選ぶ。
In this embodiment, the vertical chrominance value correcting means 6 corrects the chrominance value with reference to three vertically consecutive pixels (including the target pixel).
Pixels and seven pixels can be referred to. However, in this case, not only a pixel whose luminance value is at least close to the luminance value of the target pixel but also only a pixel that is continuous with the target pixel by the connection of pixels having similar luminance values is selected.

【0039】垂直色差値補正手段6による色差値の補正
は同一の画素に対しては1回以上行われる。ところで、
元々水平方向に発生していた色雑音、及び色にじみ部で
の水平方向での色差値補正が完全に処理されない場合に
生じる色にじみ部の残りが、垂直色差値補正手段6によ
り色差値が垂直方向に拡散されて認識できないようにで
きる。その効果は、同一画素に対する垂直方向の処理が
繰り返されるほど大きく、好ましくは3回以上繰り返す
ことが好ましい。
The correction of the color difference value by the vertical color difference value correction means 6 is performed once or more for the same pixel. by the way,
The color noise originally occurring in the horizontal direction and the remainder of the color fringing portion generated when the color difference value correction in the horizontal direction in the color fringing portion is not completely processed are converted into vertical color difference values by the vertical color difference value correcting means 6. It can be diffused in the direction and cannot be recognized. The effect is so great that the processing in the vertical direction for the same pixel is repeated, and it is preferable to repeat the processing three or more times.

【0040】垂直色差値補正手段6における色差値の補
正は、注目画素の輝度値とその上下の画素の輝度値との
差が近い画素を選び、選ばれた画素の色差値とh番目の
画素の輝度値との平均値でおきかえているが、h番目の
色差値に選ばれた画素の色差値との差のZ%を加算ある
いは減算して、h番目の新たな色差値とすることもでき
る。
The correction of the chrominance value by the vertical chrominance value correction means 6 selects a pixel having a similar difference between the luminance value of the pixel of interest and the luminance values of the pixels above and below it, and selects the chrominance value of the selected pixel and the h-th pixel. The luminance value is replaced by the average value, but the h-th new color difference value may be obtained by adding or subtracting the Z% of the difference from the color difference value of the selected pixel to the h-th color difference value. it can.

【0041】垂直色差値補正手段6で画像データ全体に
対して前述の色差値補正を行うことにより、色にじみ処
理により若干生じた色ノイズをも低減し、良好な画質の
処理画像を得ることができる。
By performing the above-described color difference value correction on the entire image data by the vertical color difference value correction means 6, color noise slightly generated by the color bleeding process can be reduced, and a processed image of good image quality can be obtained. it can.

【0042】図2は、図1で示した本実施例をマイクロ
コンピュータを用いて実現した映像信号補正装置の構成
図を示したものである。
FIG. 2 is a block diagram of a video signal correction device in which the embodiment shown in FIG. 1 is realized by using a microcomputer.

【0043】図2において、7は入力された映像信号の
水平方向に連続して得られる輝度値Y、色差値R−Y、
色差値B−Yを各8ビットのディジタル信号に変換する
外部インターフェースであり、8はディジタル信号に変
換された輝度値Y、色差値R−Y、色差値B−Yをそれ
ぞれ格納し、処理した結果の色差値を格納する画像メモ
リである。
In FIG. 2, reference numeral 7 denotes a luminance value Y, a color difference value R-Y, and a luminance value Y continuously obtained in the horizontal direction of the input video signal.
An external interface for converting the color difference value BY into an 8-bit digital signal. The digital interface 8 stores and processes the luminance value Y, color difference value R-Y, and color difference value BY converted into the digital signal. It is an image memory for storing the resulting color difference values.

【0044】画像メモリ8は、それぞれの値を格納する
ために3ページ分の記憶容量を有している。メモリ中の
1つの画素を構成する輝度値と2つの色差値は、各ペー
ジに共通する縦横のアドレスにより求められる。ページ
0には輝度値Yを格納し、ページ1には色差値R−Y、
ページ2には色差値B−Yを格納する。
The image memory 8 has a storage capacity for three pages for storing each value. The luminance value and two color difference values that make up one pixel in the memory are obtained by vertical and horizontal addresses common to each page. Page 0 stores the luminance value Y, and page 1 stores the color difference values RY,
Page 2 stores color difference values BY.

【0045】9は入力された映像信号に対して、エッジ
始点検出手段2、エッジ終点検出手段3、エッジ始点部
色差値補正手段4、エッジ終点部色差値補正手段5、及
び垂直色差値補正手段6の各処理を行なうマイクロコン
ピュータである。なお、ここに示すマイクロコンピュー
タ9は、CPU、ROM、RAMおよび入出力部を有す
る。10は、垂直色差値補正手段6により色差値を補正
した値を垂直方向に1ライン分を格納する一時記憶用の
補助メモリとして用いられる画像ラインメモリである。
Reference numeral 9 denotes an edge start point detection means 2, an edge end point detection means 3, an edge start point color difference value correction means 4, an edge end point color difference value correction means 5, and a vertical color difference value correction means 9 for an input video signal. 6 is a microcomputer that performs each process of FIG. Note that the microcomputer 9 shown here has a CPU, a ROM, a RAM, and an input / output unit. Reference numeral 10 denotes an image line memory used as a temporary storage auxiliary memory for storing one line of values obtained by correcting the color difference values by the vertical color difference value correcting means 6 in the vertical direction.

【0046】次に、以上のように構成された映像信号処
理装置について、動作例を図3〜図10を参照しながら
説明する。
Next, an example of the operation of the video signal processing device configured as described above will be described with reference to FIGS.

【0047】図3は、本実施例で用いた画像メモリ8の
記憶位置と画素の位置の関係を示している。これは映像
信号の水平走査方向と画像メモリ8の水平方向(x方
向)を一致させ、副走査方向と画像メモリの垂直方向
(y方向)を一致させている。(x,y)は画像中の画
素位置をあらわし、画像メモリ8のそれぞれのアドレス
に対応する。
FIG. 3 shows the relationship between the storage position of the image memory 8 and the position of the pixel used in this embodiment. In this case, the horizontal scanning direction of the video signal matches the horizontal direction (x direction) of the image memory 8, and the sub-scanning direction matches the vertical direction (y direction) of the image memory. (X, y) represents a pixel position in the image, and corresponds to each address of the image memory 8.

【0048】図4は、映像信号補正装置の全体の処理を
示すフローチャートである。図4において、まず、画像
の水平方向に色差値を補正して色にじみを低減し(ステ
ップs1)、次に画像の垂直方向に対する処理を行い
(ステップs2)、色ノイズを低減して画像の色に対す
る画質をより向上させる。すなわち、ステップs1で、
水平方向の色差値の補正を実現し、ステップs2で、垂
直方向の色差値の補正を実現する。
FIG. 4 is a flowchart showing the overall processing of the video signal correction device. In FIG. 4, first, the color difference value is corrected in the horizontal direction of the image to reduce color fringing (step s1), and then processing in the vertical direction of the image is performed (step s2) to reduce color noise and reduce the color noise. Improve image quality for color. That is, in step s1,
Correction of the color difference value in the horizontal direction is realized, and correction of the color difference value in the vertical direction is realized in step s2.

【0049】以下に、ステップs1の処理で実現する水
平方向の色差値の補正を図5〜図9を参照しながら説明
し、ステップs2の処理で実現する垂直方向の色差値の
補正を図10を参照しながら説明する。
Hereinafter, the correction of the color difference values in the horizontal direction realized by the processing of step s1 will be described with reference to FIGS. 5 to 9, and the correction of the color difference values in the vertical direction realized by the processing of step s2 will be described with reference to FIG. This will be described with reference to FIG.

【0050】図5は、水平方向の色差値の補正処理の全
体を示すフローチャートであり、各処理を下記に説明す
る。
FIG. 5 is a flowchart showing the entire process of correcting color difference values in the horizontal direction. Each process will be described below.

【0051】ステップs3は、画像メモリ8の垂直方向
の処理を開始する画素の位置を設定する。
In step s3, the position of a pixel in the image memory 8 at which processing in the vertical direction is started is set.

【0052】ステップs4は、画像メモリ8の水平方向
の処理を開始する画素の位置を設定する。
In step s4, the position of a pixel in the image memory 8 at which horizontal processing is started is set.

【0053】ステップs5は、画像メモリ8から輝度値
を取り出すためのページ0の設定を行う。
In step s5, a page 0 for extracting a luminance value from the image memory 8 is set.

【0054】ステップs6は、画像メモリ8から輝度値
を順次取り出し、輝度値のエッジ始点の画素位置n1
と、エッジ始点以前の画素で輝度値の変動の少ない領域
を求める(図1のエッジ始点検出手段2の処理に対応す
る)。
In step s6, the luminance values are sequentially extracted from the image memory 8, and the pixel position n1 of the edge start point of the luminance value is obtained.
Then, an area where the luminance value does not fluctuate in the pixels before the edge start point is obtained (corresponding to the processing of the edge start point detection means 2 in FIG. 1).

【0055】ステップs7は、検出したエッジ始点の3
画素先の画素が画像の水平方向の終了点を越えることが
ないかどうかを確認する。水平終了点を越える場合はエ
ッジ終了点を検知できないので色差値の補正をしないよ
うにする。
In step s7, the detected edge start point 3
It is checked whether the pixel ahead of the pixel does not exceed the horizontal end point of the image. If the horizontal end point is exceeded, the edge end point cannot be detected, so that the color difference value is not corrected.

【0056】ステップs8は、画像メモリ8から輝度値
を取り出し、輝度値のエッジ終点を見つけ、その位置情
報n2と、エッジ終点以後の画素で輝度値の変動の少な
い領域を求める(図1のエッジ終点検出手段3の処理に
対応する)。
In step s8, the luminance value is taken out from the image memory 8, the edge end point of the luminance value is found, and the position information n2 and the area where the luminance value does not fluctuate in the pixels after the edge end point are obtained (the edge in FIG. 1). This corresponds to the processing of the end point detecting means 3).

【0057】ステップs9は、色差値の値を読み込むた
めに、画像メモリ8のページの設定を切り替える(色差
値R−Y、B−Yのいずれかの色差値を取り出すための
設定を行う)。
In step s9, the setting of the page of the image memory 8 is switched to read the value of the color difference value (setting for extracting any one of the color difference values RY and BY) is performed.

【0058】ステップs10は、ステップs6で得られ
た輝度値の変動の少ない領域の画素の色差値を画像メモ
リ8の格納位置から順次取り出し、k1番目の画素を検
出すると共にk1番目の画素からエッジ始点までの色差
値を補正して画像メモリ8に出力する(図1のエッジ始
点部色差値補正手段4の処理に対応する)。
In step s10, the color difference values of the pixels in the region where the luminance value obtained in step s6 is small are sequentially extracted from the storage position of the image memory 8, the k1st pixel is detected, and the edge from the k1th pixel is detected. The color difference value up to the start point is corrected and output to the image memory 8 (corresponding to the processing of the edge start point color difference value correction means 4 in FIG. 1).

【0059】ステップs11は、ステップs8で得られ
た輝度値の変動の少ない領域の画素の色差値を画像メモ
リ8の格納位置から順次取り出し、k2番目の画素を検
出すると共にエッジ終点からk2番目までの色差値を補
正して画像メモリ8に出力する(図1のエッジ終点部色
差値補正手段5の処理に対応する)。
In step s11, the color difference values of the pixels in the region where the luminance value obtained in step s8 is small are sequentially taken out from the storage position of the image memory 8, the k2th pixel is detected, and the edge end point to the k2th pixel are detected. Is corrected and output to the image memory 8 (corresponding to the processing of the color difference value correcting means 5 at the edge end point in FIG. 1).

【0060】ステップs12は、各色差値R−Y,B−
Yに対して色差値補正を行うための画像メモリのページ
を切り替えるかどうかの判定をおこなう。
In step s12, each color difference value RY, B-
It is determined whether to switch the page of the image memory for performing the color difference value correction for Y.

【0061】ステップs13は、処理する画素位置が、
画像の水平方向の1ライン分の処理が完了したかどうか
を判定する。未処理部がある場合は、水平方向のすべて
の画素に対して色差値を補正するため、上記のステップ
s5以降の処理を繰り返す。
In step s13, the pixel position to be processed is
It is determined whether the processing for one line in the horizontal direction of the image has been completed. If there is an unprocessed portion, the process from step s5 is repeated to correct the color difference value for all pixels in the horizontal direction.

【0062】ステップs14は、ステップs13で水平
方向の1ライン分の処理が終わった場合、処理する画像
全体に対して映像信号補正処理が終了したかどうかを判
定する。処理が終わっていない場合は、ステップs15
で垂直方向のアドレスyを1つ増やし、上記のステップ
s4以降の処理を繰り返す。
In step s14, if the processing for one line in the horizontal direction has been completed in step s13, it is determined whether or not the video signal correction processing has been completed for the entire image to be processed. If the processing has not been completed, step s15
, The address y in the vertical direction is increased by one, and the above-described processing after step s4 is repeated.

【0063】次に、前述のステップs6、s8、s1
0、s11の処理を図6、図7、図8、及び図9を参照
しながら詳細に説明する。
Next, the aforementioned steps s6, s8, s1
The processing of 0 and s11 will be described in detail with reference to FIGS. 6, 7, 8, and 9.

【0064】図6は、図5におけるステップs6のエッ
ジ始点n1を求める処理を示している。図6において、
ステップs20は、輝度値が連続して増加あるいは減少
する画素数をカウントするための変数cと、エッジ始点
n1の輝度値をY1としてY1−α以上Y1+α以下
(αは予め適当な値に決めておく)の輝度値をもつ連続
画素数をカウントするための変数a(つまり輝度値が安
定していると思われる画素数)の初期化を行う。
FIG. 6 shows the processing for obtaining the edge start point n1 in step s6 in FIG. In FIG.
In step s20, a variable c for counting the number of pixels whose luminance value continuously increases or decreases and a luminance value of the edge start point n1 as Y1 and Y1 to α or more and Y1 + α or less (α is previously determined to be an appropriate value. Initialize a variable a (that is, the number of pixels for which the luminance value is considered to be stable) for counting the number of continuous pixels having the luminance value of (a).

【0065】ステップs21では、処理する画素の位置
xと隣接画素x+1の輝度値の差分をとり、ステップs
22で差分値の絶対値が閾値Th1以上の値を持つもの
を輝度値が増加または減少する画素とする。条件を満た
さない場合は、ステップs23で画素位置を1つずら
し、ステップs22の条件を満たすまで繰り返す。
In step s21, the difference between the luminance value of the position x of the pixel to be processed and the adjacent pixel x + 1 is calculated, and
The pixel whose absolute value of the difference value is equal to or larger than the threshold value Th1 at 22 is defined as a pixel whose luminance value increases or decreases. If the condition is not satisfied, the pixel position is shifted by one in step s23, and the process is repeated until the condition in step s22 is satisfied.

【0066】ステップs22で増加または減少する画素
と判断した場合は、ステップs24で差分値の符号状態
をフラグに格納する。フラグは輝度値が連続して増加あ
るいは減少しているかどうかの状態を知るためのフラグ
である。
If it is determined in step s22 that the pixel is to increase or decrease, the sign state of the difference value is stored in a flag in step s24. The flag is a flag for knowing whether the luminance value is continuously increasing or decreasing.

【0067】次にステップs25で処理する画素位置を
1つずらし、ステップs26で処理する画素の位置xと
隣接画素x+1の輝度値の差分をとり、ステップs27
でステップs22と同様に増加または減少する画素かど
うかを判定する。条件を満たさない場合は、ステップs
28で連続して増加または減少する画素数cを初期値
『0』に戻すと共に、ステップs23で処理する画素位
置を一つずらし、ステップs21へ処理を戻す。そし
て、連続して増加または減少する画素数を数える処理を
繰り返す。
Next, in step s25, the pixel position to be processed is shifted by one, and in step s26, the difference between the position x of the pixel to be processed and the luminance value of the adjacent pixel x + 1 is calculated, and step s27 is performed.
It is determined whether or not the pixel increases or decreases as in step s22. If the condition is not satisfied, step s
At step 28, the number c of pixels that continuously increase or decrease is returned to the initial value “0”, the pixel position to be processed is shifted by one at step s23, and the process returns to step s21. Then, the process of counting the number of pixels that continuously increase or decrease is repeated.

【0068】ステップs27で条件を満たした場合は、
ステップs29で、差分値の符号状態を求め、その符号
状態とフラグの符号状態を比較する。
If the condition is satisfied in step s27,
In step s29, the sign state of the difference value is determined, and the sign state and the sign state of the flag are compared.

【0069】比較の結果符号が異なる場合は、輝度値が
連続して増加または減少していないと判断し、ステップ
s30でフラグをステップs29で求めた符号に変更
し、ステップs31で連続して増加または減少する画素
数cを『0』に初期化し、ステップs25にもどって処
理を繰り返す。
If the sign is different as a result of the comparison, it is determined that the luminance value has not continuously increased or decreased, the flag is changed to the sign obtained in step s29 in step s30, and the flag is continuously increased in step s31. Alternatively, the number of decreasing pixels c is initialized to “0”, and the process returns to step s25 and is repeated.

【0070】一方、比較の結果符号が同一符号の場合
は、輝度値が連続して増加あるいは減少していると判断
し、ステップs32で連続して増加あるいは減少してい
る画素数をカウントする変数cを1つ増やす。
On the other hand, if the sign is the same sign as a result of the comparison, it is determined that the luminance value is continuously increasing or decreasing, and a variable for counting the number of pixels continuously increasing or decreasing is determined in step s32. Increment c by one.

【0071】次にステップs33で連続して増加あるい
は減少する画素数cの値が3以上であれば、輝度値が連
続して増加または減少する画素数が少なくとも3画素あ
ると判断し、次の処理に移る。逆に画素数cの値が3未
満であればステップs25の処理に戻る。つまり本実施
例では処理時間を考慮し、連続した輝度値の増加または
減少が3画素続くことで検知している。
Next, in step s33, if the value of the number of pixels c continuously increasing or decreasing is 3 or more, it is determined that there are at least three pixels in which the luminance value continuously increases or decreases, and the next Move on to processing. Conversely, if the value of the number of pixels c is less than 3, the process returns to step s25. That is, in the present embodiment, in consideration of the processing time, the continuous increase or decrease of the luminance value is detected when three pixels continue.

【0072】画素数cの値が3以上の場合、ステップs
34でエッジ始点n1に画素位置(x−2)を代入す
る。次にこの画素に隣接して輝度が安定していると思わ
れる画素数がどの程度存在するかどうかを確認する。
If the value of the number of pixels c is 3 or more, step s
At 34, the pixel position (x-2) is substituted for the edge start point n1. Next, it is confirmed whether there is a number of pixels adjacent to this pixel whose luminance is considered to be stable.

【0073】ステップs35では、このエッジ始点の輝
度値Y1を取り出す。
In step s35, the luminance value Y1 of the edge start point is extracted.

【0074】ステップs36では、処理する画素位置を
エッジ始点に隣接する画素位置に設定する。
In step s36, the pixel position to be processed is set to a pixel position adjacent to the edge start point.

【0075】ステップs37では、エッジ始点に連続す
る位置にある画素の輝度値を順次取り出す。
At step s37, the luminance values of the pixels at the positions continuing from the edge start point are sequentially extracted.

【0076】ステップs38では、取りだした輝度値が
Y1−α以上Y1+α以下の輝度値になるかどうか判定
する。
In step s38, it is determined whether or not the extracted luminance value is equal to or more than Y1-α and equal to or less than Y1 + α.

【0077】判定の結果、輝度値が範囲内にあれば、ス
テップs39でステップs38の条件を満たす画素数a
を1つ多くカウントし、ステップs40で処理する画素
位置を1つ前へずらし、ステップs37へ処理を戻して
輝度値が安定していると思われる画素数aを求める。
As a result of the judgment, if the luminance value is within the range, the number of pixels a satisfying the condition of step s38 in step s39
Is counted by one, the pixel position to be processed is shifted by one in step s40, and the process returns to step s37 to obtain the number of pixels a for which the luminance value is considered to be stable.

【0078】反対にステップs38で、取り出した輝度
値がY1−α以上Y1+α以下の輝度値範囲外になる
と、処理を終了しエッジ始点n1と、輝度値の変動が小
さいと思われる領域の端であるn1−a番目の画素位置
を決定する。
On the other hand, if the extracted luminance value falls outside the luminance value range from Y1-α to Y1 + α in step s38, the processing is terminated and the edge start point n1 and the end of the region where the fluctuation of the luminance value is considered to be small are determined. A certain n1-ath pixel position is determined.

【0079】図7は、図5におけるステップs8のエッ
ジ終点n2を求める処理を示している。図7において、
ステップs50は、エッジ終点の輝度値Y2からY2−
β以上Y2+β以下(βは予め適当な値に決めておく)
の輝度値をもつ連続画素の数(つまり輝度値が安定して
いると思われる画素数)をカウントするための変数bの
初期化を行う。
FIG. 7 shows the processing for obtaining the edge end point n2 in step s8 in FIG. In FIG.
In step s50, the luminance values Y2 to Y2-
β or more and Y2 + β or less (β is determined to an appropriate value in advance)
The variable b for counting the number of continuous pixels having the luminance value (that is, the number of pixels whose luminance value is considered to be stable) is initialized.

【0080】ステップs51はn1+2番目の画素の位
置を入力したxと隣接画素x+1の輝度値の差分をと
り、ステップs52で差分値の符号状態をフラグに格納
する。フラグは輝度値が連続して増加あるいは減少して
いるかどうかの状態を知るためのフラグである。
In step s51, the difference between the luminance value of the input pixel x at the position of the (n1 + 2) th pixel and the luminance value of the adjacent pixel x + 1 is obtained, and in step s52, the sign state of the difference value is stored in the flag. The flag is a flag for knowing whether the luminance value is continuously increasing or decreasing.

【0081】次にステップs53で処理する画素位置を
1つずらし、ステップs54で、処理する画素の位置x
と隣接画素x+1の輝度値の差分をとる。
Next, the position of the pixel to be processed is shifted by one in step s53, and the position x of the pixel to be processed is shifted in step s54.
And the luminance value of the adjacent pixel x + 1.

【0082】ステップs55で差分値の絶対値が閾値T
h1以上の値を持つものを輝度値が増加または減少する
画素とする。条件を満たさない場合は、輝度値が連続し
て増加または減少が終わったと判断する。
At step s55, the absolute value of the difference value is equal to the threshold value T.
A pixel having a value of h1 or more is defined as a pixel whose luminance value increases or decreases. If the condition is not satisfied, it is determined that the brightness value has continuously increased or decreased.

【0083】ステップs55で条件を満たす場合は、ス
テップs56で、差分値の符号状態を求め、その符号状
態とフラグに格納された符号状態とを比較する。符号が
同一の場合は、ステップs53に処理を戻し、連続して
増加または減少が続く画素を求める。符号が異なる場合
は、輝度値の連続した増加または減少が終わったと判断
し、ステップs57でエッジ終点n2に画素位置xを代
入する。
If the condition is satisfied in step s55, the code state of the difference value is obtained in step s56, and the code state is compared with the code state stored in the flag. If the signs are the same, the process returns to step s53 to find a pixel that continuously increases or decreases. If the signs are different, it is determined that the continuous increase or decrease of the luminance value has been completed, and the pixel position x is substituted for the edge end point n2 in step s57.

【0084】以下の処理では、画素に隣接して輝度が安
定していると思われる画素数bがどの程度存在するか調
べる処理を行う。
In the following process, a process is performed to check how many pixels b are considered adjacent to the pixel and whose luminance is considered to be stable.

【0085】ステップs58では、仮のエッジ終点の輝
度値Y2を取り出す。
In step s58, the luminance value Y2 of the provisional edge end point is extracted.

【0086】ステップs59では、画素位置を1つずら
し、ステップs60では、仮のエッジ終点に連続する位
置にある画素の輝度値を順次取り出す。
In step s59, the pixel position is shifted by one, and in step s60, the luminance values of the pixels located at positions that are continuous with the provisional edge end point are sequentially extracted.

【0087】ステップs61でY2−β以上Y2+β以
下の輝度値になるかどうか判定し、条件を満たせば、ス
テップs62で条件を満たす画素数をカウントし、ステ
ップs59へ処理を戻し、処理を繰り返してbを求め
る。
At step s61, it is determined whether or not the brightness value is equal to or more than Y2-β and equal to or less than Y2 + β. If the condition is satisfied, the number of pixels satisfying the condition is counted at step s62, the process returns to step s59, and the process is repeated. Find b.

【0088】一方、ステップs61で輝度値がY2−β
以上Y2+β以下を満たさない場合は、処理が終了し、
エッジ終点n2と、輝度値が安定していると思われる画
素数bを決定する。
On the other hand, in step s61, the luminance value is Y2-β
If not more than Y2 + β, the process ends,
The edge end point n2 and the number b of pixels for which the luminance value is considered to be stable are determined.

【0089】図8は、図5におけるステップs10のエ
ッジ始点部の色差値を補正する処理を示している。図8
において、ステップs70は、色差値が連続して増加ま
たは減少する画素数をカウントするための変数cの初期
化を行う。
FIG. 8 shows the process of correcting the color difference value at the edge start point in step s10 in FIG. FIG.
In step s70, a variable c for counting the number of pixels whose color difference values continuously increase or decrease is initialized.

【0090】ステップs71では処理画素位置kにエッ
ジ始点の画素位置を設定する。
At step s71, the pixel position of the edge start point is set at the processing pixel position k.

【0091】ステップs72でエッジ始点の画素位置n
1からn1−aの位置方向に2画素ずらした画素の色差
値との差分を取り、ステップs73で差分値の符号の状
態をフラグにセットする。フラグは画素の色差値が連続
して増加または減少しているかを判定するためのもので
ある。
At step s72, the pixel position n of the edge start point
The difference from the color difference value of the pixel shifted by 2 pixels in the direction of n1-a from 1 is calculated, and the state of the sign of the difference value is set in a flag in step s73. The flag is for determining whether the color difference value of a pixel continuously increases or decreases.

【0092】次に、ステップs74で処理画素位置を1
画素分ずらし、ステップs75で輝度変動が小さい平滑
部であると思われる領域(>n1−a,<n1)である
かどうかを判定する。ステップs75でk−2が輝度変
動が小さい平滑部であると思われる領域(>n1−a,
<n1)をはずれると判断すると、この輝度変動が小さ
い平滑部で色差値が安定にならず、色差値の真値が判断
しかねるので色差値の変更はしない。
Next, at step s74, the processing pixel position is set to 1
In step s75, it is determined whether or not an area (> n1-a, <n1) is considered to be a smooth part with small luminance fluctuation. In step s75, k-2 is a region (> n1-a,
If it is determined that <n1) is deviated, the color difference value is not stabilized in the smooth portion where the luminance variation is small, and the true value of the color difference value cannot be determined, so that the color difference value is not changed.

【0093】一方、ステップs75で領域内であると判
断すれば、ステップs76で処理画素の位置と2画素ず
らした画素位置の色差値の差分をとり、ステップs77
で、色差値の差分値の符号状態を求め、その符号状態と
フラグの符号状態とを比較する。
On the other hand, if it is determined in step s75 that the pixel is within the area, in step s76, a difference between the color difference value between the position of the processing pixel and a pixel position shifted by two pixels is calculated, and step s77 is performed.
Then, the code state of the difference value of the color difference value is obtained, and the code state is compared with the code state of the flag.

【0094】ステップs77で同一符号と判断される
と、色差値が連続して増加または減少していると判断
し、ステップs78で変数cを1つ増やして、ステップ
s74へ処理を戻し、連続して色差値が増加または減少
する画素数をカウントする処理を繰り返す。
If the same sign is determined in step s77, it is determined that the color difference value is continuously increasing or decreasing. In step s78, the variable c is increased by one, and the process returns to step s74. The process of counting the number of pixels for which the color difference value increases or decreases is repeated.

【0095】一方、ステップs77で符号状態が異な
る、又は差分値の符号状態が0と判断されると、連続し
て増加減少している画素が終わったときであり、ステッ
プs79において連続して色差値が増加または減少して
いる画素数をカウントした変数cが3以上かどうか判断
する。変数cが3以上であれば、色差値が少なくとも3
画素連続して、増加または減少していると判断して次の
処理へ移り、変数cが3未満であれば色差値の補正処理
を終了する。つまり本実施例では色差値の連続した増減
が3画素以上続くことで検知している。
On the other hand, if it is determined in step s77 that the code state is different or the code state of the difference value is 0, it means that the pixels that have been continuously increasing and decreasing have ended. It is determined whether the variable c that counts the number of pixels whose value increases or decreases is 3 or more. If the variable c is 3 or more, the color difference value is at least 3
It is determined that the number of pixels has increased or decreased continuously, and the process proceeds to the next process. If the variable c is less than 3, the color difference value correction process ends. That is, in the present embodiment, the detection is performed when the continuous increase or decrease of the color difference value continues for three or more pixels.

【0096】変数cが3以上の場合、ステップs80で
色差値を変更する領域の端点の画素位置k1にkを設定
し、ステップs81で画素位置k1からエッジ始点n1
までの色差値の補正処理を行う。
If the variable c is 3 or more, k is set to the pixel position k1 of the end point of the area where the color difference value is changed in step s80, and the edge start point n1 from the pixel position k1 is set in step s81.
The color difference values up to are corrected.

【0097】本実施例では、ステップs81において画
素位置k1からエッジ始点までの画素の色差値を、色差
値の連続した増減が終わる画素k1から輝度平滑部の端
点n1−aまでの色差値の平均値に置き換える。つま
り、画素k1から輝度平滑部の端点n1−aまでの色差
値の代表値C1として加法平均値を用いた。
In this embodiment, in step s81, the chrominance value of the pixel from the pixel position k1 to the edge start point is calculated as the average of the chrominance values from the pixel k1 where the continuous increase and decrease of the chrominance value ends to the end point n1-a of the luminance smoothing unit. Replace with a value. That is, the additive average value was used as the representative value C1 of the color difference values from the pixel k1 to the end point n1-a of the luminance smoothing unit.

【0098】図25は、図8におけるステップs81の
画素位置k1からエッジ始点までの色差値を変更する処
理の一例を示している。
FIG. 25 shows an example of the process of changing the color difference value from the pixel position k1 to the edge start point in step s81 in FIG.

【0099】まず、ステップs141では、k1からエ
ッジ始点n1までの画素数を数える変数cと、色差値を
変更する値を格納するための変数dの初期化を行う。
First, in step s141, a variable c for counting the number of pixels from k1 to the edge start point n1 and a variable d for storing a value for changing the color difference value are initialized.

【0100】次にステップs142で色差値が安定して
いると思われる領域の端点である画素位置k1をmに設
定する。
Next, in step s142, the pixel position k1 which is the end point of the region where the color difference value is considered to be stable is set to m.

【0101】その後、ステップs143で画素位置mの
色差値を加算し、ステップs144で画素位置mを1つ
ずらして、ステップs145で画素数のカウントを1つ
増やす。
Thereafter, the color difference value of the pixel position m is added in step s143, the pixel position m is shifted by one in step s144, and the count of the number of pixels is increased by one in step s145.

【0102】ステップs146では、求める色差値の画
素位置mが輝度の安定な領域内かどうかの判定をする。
判定の結果、輝度の安定な領域内であれば、ステップs
143に戻って色差値を加算していく。その後、輝度の
安定な領域外になれば、ステップs147で色差値が安
定な領域内での色差値の平均値を求める。
In step s146, it is determined whether or not the pixel position m of the color difference value to be obtained is within a region where the luminance is stable.
If the result of the determination is that the brightness is within the stable area, step s
Returning to 143, the color difference values are added. Thereafter, if the color difference value falls outside the stable area, an average value of the color difference values in the area where the color difference value is stable is obtained in step s147.

【0103】ステップs148で、画素位置k1+1か
らエッジ始点n1までの色差値をステップ147で求め
た色差値で置き換える。
In step s148, the color difference values from the pixel position k1 + 1 to the edge start point n1 are replaced with the color difference values obtained in step 147.

【0104】以上の処理を行うことによって、色にじみ
を低減することができる。
By performing the above processing, color blur can be reduced.

【0105】なお、ここでは、k1から輝度の安定領域
内の端点n1−aまでの色差値の平均値でエッジ始点n
1までの色差値を置き換えたが、このほかにも、k1か
らn1−a番目の画素位置に向かう3画素の平均値で置
き換えても良い。この場合処理が早くなる利点がある。
Here, the edge start point n is calculated as the average of the color difference values from k1 to the end point n1-a in the luminance stable area.
Although the color difference values up to 1 have been replaced, the color difference values may be replaced with an average value of three pixels from k1 to the (n1-a) th pixel position. In this case, there is an advantage that the processing becomes faster.

【0106】図26は、図25で示すステップs141
からステップs147までの処理と同じ動作を行い、そ
の後、ステップs150で、エッジ始点の1つ前の画素
位置までの色差値を色差値の平均値dで置き換え、ステ
ップs151で、エッジ始点の1つ後ろの画素位置n1
+1の色差値と色差値の平均値dとの中間値をエッジ始
点の色差値とする。
FIG. 26 shows a step s141 shown in FIG.
The same operation as the process from step s147 to step s147 is performed. Then, in step s150, the color difference values up to the pixel position immediately before the edge start point are replaced with the average value d of the color difference values. In step s151, one of the edge start points is replaced. Back pixel position n1
An intermediate value between the color difference value of +1 and the average value d of the color difference values is set as the color difference value at the edge start point.

【0107】このようにすることで、色差値の平均値d
とエッジ部の色差値との間の急激な変化を少なくするこ
とができ、なめらかに色にじみを低減することができ
る。
In this manner, the average value d of the color difference values is obtained.
A sharp change between the color difference value at the edge portion and the color difference value at the edge portion can be reduced, and the color blur can be smoothly reduced.

【0108】図9は、図5におけるステップs11のエ
ッジ終点部の色差値を補正する処理を示している。図9
において、ステップs90は、色差値が連続して増加ま
たは減少する画素数をカウントするための変数cの初期
化を行う。
FIG. 9 shows the process of correcting the color difference value at the end point of the edge in step s11 in FIG. FIG.
In step s90, a variable c for counting the number of pixels whose color difference values continuously increase or decrease is initialized.

【0109】ステップs91で、処理画素位置kにエッ
ジ終点n2の画素位置を設定し、ステップs92では、
エッジ終点の画素位置n2からn2+bの位置方向に2
画素ずらした画素の色差値との差分を取り、ステップs
93で差分値の符号の状態をフラグにセットする。フラ
グは画素の色差値が連続して増加または減少するかを判
定するためのものである。
In step s91, the pixel position of the edge end point n2 is set to the processing pixel position k. In step s92,
2 from the pixel position n2 of the edge end point to the position of n2 + b
The difference from the color difference value of the pixel shifted by the pixel is calculated, and a step s
At 93, the state of the sign of the difference value is set in the flag. The flag is for determining whether the color difference value of a pixel continuously increases or decreases.

【0110】ステップs94で処理画素位置を1画素分
ずらし、ステップs95で輝度平滑であると思われる領
域(>n2,<n2+b)であるかどうかを判定する。
判定の結果、領域外の場合、色差値の真値が判断しかね
るので色差値の変更はしない。一方、領域内の場合、ス
テップs96で処理画素の位置と2画素ずらした画素位
置の色差値の差分をとり、ステップs97で差分値の符
号状態を求め、その符号状態とフラグの状態とを比較す
る。
In step s94, the processing pixel position is shifted by one pixel, and in step s95, it is determined whether or not the area is considered to be luminance smooth (> n2, <n2 + b).
As a result of the determination, if the value is out of the area, the true value of the color difference value cannot be determined, so that the color difference value is not changed. On the other hand, in the case of the area, the difference between the color difference value of the position of the processing pixel and the pixel position shifted by two pixels is obtained in step s96, the sign state of the difference value is obtained in step s97, and the sign state is compared with the state of the flag. I do.

【0111】比較の結果、同一符号であれば、色差値が
連続して増加または減少していると判断し、ステップs
98で色差値が連続して増加または減少する画素数をカ
ウントする変数cを1つ増やし、ステップs94へ処理
を戻して、連続して色差値が増加または減少する画素数
をカウントする処理を繰り返す。
As a result of the comparison, if they are the same sign, it is determined that the color difference values have been continuously increasing or decreasing, and step s
At 98, the variable c for counting the number of pixels for which the color difference value continuously increases or decreases is increased by one, and the process returns to step s94 to repeat the process for counting the number of pixels for which the color difference value continuously increases or decreases. .

【0112】異符号、又は差分値の符号状態が0の場
合、ステップs99は、連続して増加減少している画素
が終わったとき、あるいは変化がない場合であり、連続
して色差値が増加または減少している画素数をカウント
した変数cが3以上かどうか判断する。つまり、本実施
例では色差値の連続した増加または減少が3画素以上続
くことによって検知している。
If the sign state of the different sign or the difference value is 0, step s99 is when the continuously increasing / decreasing pixel ends or there is no change, and the color difference value continuously increases. Alternatively, it is determined whether or not the variable c in which the number of decreasing pixels is counted is 3 or more. That is, in the present embodiment, the detection is performed by the continuous increase or decrease of the color difference value continuing for three or more pixels.

【0113】変数cが3以上であれば、色差値が少なく
とも3画素連続して、増加または減少していると判断
し、ステップs100で色差値を変更する領域の端点の
画素位置k2にkを設定し、ステップs101で画素位
置k2からエッジ終点までの色差値の補正処理を行う。
又、変数cが3未満であれば処理を終了する。
If the variable c is 3 or more, it is determined that the color difference value has increased or decreased for at least three consecutive pixels, and k is set at the pixel position k2 at the end point of the area where the color difference value is changed in step s100. The color difference values from the pixel position k2 to the edge end point are corrected in step s101.
If the variable c is less than 3, the process ends.

【0114】図27は、図9におけるステップs101
の画素位置k2からエッジ終点までの色差値を変更する
処理の一例を示している。
FIG. 27 is a flowchart showing step s101 in FIG.
3 shows an example of processing for changing the color difference value from the pixel position k2 to the edge end point.

【0115】まず、ステップs160では、k2からエ
ッジ終点n2までの画素数を数える変数cと、色差値を
変更する値を格納するための変数dの初期化を行う。
First, in step s160, a variable c for counting the number of pixels from k2 to the edge end point n2 and a variable d for storing a value for changing the color difference value are initialized.

【0116】次にステップs161で色差値が安定して
いると思われる領域の端点である画素位置k2をmに設
定する。
Next, at step s161, the pixel position k2, which is the end point of the region where the color difference value is considered to be stable, is set to m.

【0117】その後、ステップs162で画素位置mの
色差値を加算し、ステップs163で画素位置mを1つ
ずらして、ステップs164で画素数のカウントを1つ
増やす。
Thereafter, the color difference value at the pixel position m is added in step s162, the pixel position m is shifted by one in step s163, and the count of the number of pixels is increased by one in step s164.

【0118】ステップs165では、求める色差値の画
素位置mが輝度の安定な領域内かどうかの判定をする。
判定の結果、輝度の安定な領域内であれば、ステップs
162に戻って色差値を加算していく。その後、輝度の
安定な領域外になれば、ステップs166で色差値が安
定な領域内での色差値の平均値を求める。
In step s165, it is determined whether or not the pixel position m of the color difference value to be obtained is within a stable luminance region.
If the result of the determination is that the brightness is within the stable area, step s
Returning to 162, the color difference values are added. Thereafter, if the color difference value is out of the stable area, an average value of the color difference value in the area where the color difference value is stable is obtained in step s166.

【0119】ステップs167で、画素位置k2+1か
らエッジ終点n2までの色差値をステップs166で求
めた色差値で置き換える。
In step s167, the color difference values from the pixel position k2 + 1 to the edge end point n2 are replaced with the color difference values obtained in step s166.

【0120】以上の処理を行うことによって、色にじみ
を低減することができる。
By performing the above processing, color blur can be reduced.

【0121】なお、ここでは、k2から輝度の安定領域
内の端点n2+bまでの色差値の平均値でエッジ終点n
2までの色差値を置き換えたが、このほかにも、k2か
らn2+b番目の画素位置に向かう3画素の平均値で置
き換えても良い。この場合処理が早くなる利点がある。
Here, the edge end point n is defined as the average of the color difference values from k2 to the end point n2 + b in the luminance stable area.
Although the color difference values up to 2 have been replaced, the color difference values may be replaced with an average value of three pixels from k2 to the n2 + b-th pixel position. In this case, there is an advantage that the processing becomes faster.

【0122】図28は、図27に示すステップs160
からステップs166までの処理と同じ動作を行い、そ
の後、ステップs170で、エッジ終点の1つ後の画素
位置までの色差値を色差値の平均値dで置き換え、ステ
ップs171で、エッジ終点の1つ前の画素位置n2−
1の色差値と色差値の平均値dとの中間値をエッジ終点
の色差値とする。
FIG. 28 is a flowchart showing step s160 shown in FIG.
The same operation as the processing from step s166 to step s166 is performed. Then, in step s170, the color difference values up to the pixel position immediately after the edge end point are replaced with the average value d of the color difference values. In step s171, one of the edge end points is replaced. Previous pixel position n2-
An intermediate value between the color difference value of 1 and the average value d of the color difference values is set as the color difference value at the edge end point.

【0123】このようにすることで、色差値の平均値d
とエッジ部の色差値との間の急激な変化を少なくするこ
とができ、なめらかに色にじみを低減することができ
る。
By doing so, the average value d of the color difference values is obtained.
A sharp change between the color difference value at the edge portion and the color difference value at the edge portion can be reduced, and the color blur can be smoothly reduced.

【0124】以上のように、水平方向に対する色差値の
補正処理を行なった後、次に垂直方向の色差値の補正を
行なう。図10は、図4における画像の垂直方向に対す
る色差値補正の処理を示すフローチャートであり、下記
にその詳細な動作について説明する。
As described above, after correcting the color difference value in the horizontal direction, the color difference value in the vertical direction is corrected next. FIG. 10 is a flowchart showing the process of correcting the color difference value in the vertical direction of the image in FIG. 4, and the detailed operation will be described below.

【0125】ただし、ここで説明する動作は、垂直方向
の画素数を3画素づつ処理し、垂直方向の処理を複数回
繰り返す場合である。
However, the operation described here is a case where the number of pixels in the vertical direction is processed three by three, and the processing in the vertical direction is repeated a plurality of times.

【0126】まず、ステップs120では垂直方向の処
理を複数回繰り返すためのカウントを行い、ステップs
121で垂直方向の処理を開始する位置yを設定する。
First, in step s120, a count for repeating the processing in the vertical direction a plurality of times is performed.
At 121, a position y at which processing in the vertical direction is started is set.

【0127】次に、ステップs122で画像メモリの輝
度値を格納したページを設定し、ステップs123で画
素位置y−1,y,y+1の輝度値を画像メモリから順
次垂直方向の3画素を取り出す。
Next, in step s122, a page storing the luminance value of the image memory is set, and in step s123, the luminance values at the pixel positions y-1, y, y + 1 are sequentially extracted from the image memory in three vertical pixels.

【0128】ステップs124では画素位置yの輝度値
Yhと画素位置yに隣接する上下の画素位置y−1,y
+1の画素の輝度値がYh−δ以上Yh+δ以下の輝度
値になる画素を上下の画素から選択する。
In step s124, the luminance value Yh at the pixel position y and the upper and lower pixel positions y-1, y adjacent to the pixel position y
A pixel having a luminance value of a pixel of +1 having a luminance value of Yh-δ or more and Yh + δ or less is selected from upper and lower pixels.

【0129】ステップs125では画像メモリ8の色差
値が格納されているページと画像ラインメモリ10(図
2参照)の色差値を一時格納するためのページに切り替
え、ステップs126で画素位置yの色差値とステップ
s124で選択した画素の色差値との平均値を画素位置
yの色差値として、画像ラインメモリ10に出力する。
このとき、ステップs124で選択される画素が無い場
合は色差値の変更をしない。したがって、画像ラインメ
モリ10には画素位置yの色差値がそのまま記憶され
る。
In step s125, the page in which the color difference values of the image memory 8 are stored and the page for temporarily storing the color difference values in the image line memory 10 (see FIG. 2) are switched. In step s126, the color difference value of the pixel position y is changed. The average value of the pixel value and the color difference value of the pixel selected in step s124 is output to the image line memory 10 as the color difference value at the pixel position y.
At this time, if there is no pixel selected in step s124, the color difference value is not changed. Therefore, the color difference value at the pixel position y is stored in the image line memory 10 as it is.

【0130】次に、ステップs127でもう一方の色差
値について処理を行うために、画像メモリ8と画像ライ
ンメモリ10のページの切り替え判定を行う。
Next, in step s127, in order to perform processing for the other color difference value, it is determined whether to switch pages of the image memory 8 and the image line memory 10.

【0131】両方の色差値に対して処理を終えていない
場合はステップs128で、画像メモリ8と画像ライン
メモリ10のページを2にして、前述の処理を繰り返し
て両方の色差値に対する処理を終了し、その後ステップ
s129で垂直方向の処理が終わったかどうか判定す
る。
If the processing has not been completed for both color difference values, in step s128, the pages of the image memory 8 and the image line memory 10 are set to 2, and the above processing is repeated to terminate the processing for both color difference values. Then, in step s129, it is determined whether the processing in the vertical direction has been completed.

【0132】終わっていない場合はステップs130で
処理画素位置yを1つ増やして、ステップs122に処
理を戻して以上の処理を繰り返す。
If the processing has not been completed, the processing pixel position y is increased by one in step s130, the processing is returned to step s122, and the above processing is repeated.

【0133】一方、ステップs129で垂直方向の処理
が終了したと判定された場合、ステップs131で画像
ラインメモリ10に格納している補正された色差値を画
像メモリ8の対応する画素位置に転送する。
On the other hand, if it is determined in step s129 that the processing in the vertical direction has been completed, the corrected color difference value stored in the image line memory 10 is transferred to the corresponding pixel position in the image memory 8 in step s131. .

【0134】次にステップs132で垂直方向の処理を
予め設定された回数繰り返したか判定し、目的の回数分
処理を繰り返す。ステップs133では、設定回数分垂
直方向の処理が終了した場合、全画像に対して処理が行
われたかどうか判定する。処理が終了していない場合
は、ステップs134で水平方向の処理画素位置を1つ
増やし、ステップs120に戻って処理を繰り返して全
画像に対して処理を行い、全画像に対する色ノイズの低
減を行う。
Next, in step s132, it is determined whether the processing in the vertical direction has been repeated a preset number of times, and the processing is repeated for the desired number of times. In step s133, when the processing in the vertical direction has been completed for the set number of times, it is determined whether the processing has been performed on all the images. If the processing has not been completed, the processing pixel position in the horizontal direction is increased by one in step s134, the process returns to step s120, and the processing is repeated to perform processing on all images to reduce color noise on all images. .

【0135】本実施例では、エッジ終点からk2番目の
画素までの色差値を、k2番目の画素からk2+b番目
の画素までの色差値の平均値に置き換える。つまり、本
実施例ではk2番目の画素からk2+b番目の画素まで
の色差値の代表値C2として加法平均値を用いた。
In this embodiment, the color difference values from the edge end point to the k2th pixel are replaced with the average of the color difference values from the k2th pixel to the k2 + bth pixel. That is, in the present embodiment, the additive average value is used as the representative value C2 of the color difference values from the k2th pixel to the k2 + bth pixel.

【0136】又、最低輝度値を0レベル、最高輝度値を
255レベルとする256階調で設定した。そうする
と、閾値Th1を3から10の間で設定することが好ま
しいことが判った。なぜならば、輝度値が連続して増加
または減少する画素を見つけるのが目的であるが、画像
にはノイズが含まれており、連続して増加または減少す
る輝度値を得ることが難しい。そこで本発明では画像の
ノイズを考慮して、輝度値の差分値が、一定範囲外にあ
る画素の差分値を連続して増加または減少する画素とし
ている。
In addition, 256 gradations were set, with the lowest luminance value being 0 level and the highest luminance value being 255 levels. Then, it was found that it is preferable to set the threshold value Th1 between 3 and 10. This is because the purpose is to find a pixel whose brightness value continuously increases or decreases, but it is difficult to obtain a brightness value that continuously increases or decreases because the image contains noise. Therefore, in the present invention, in consideration of image noise, a difference value of a luminance value is set to a pixel in which the difference value of a pixel outside a certain range continuously increases or decreases.

【0137】すなわち、閾値Th1が2以下であると雑
音により連続して増加または減少すると思われる領域の
判別が困難となり、11以上では輝度値の増加または減
少する画素を輝度値の変化する画素ではないと判断さ
れ、色にじみを低減する効果が少なくなる。以上から、
閾値Th1の値を最高輝度値の1%から4%程度の値に
設定することが好ましいと考察される。
That is, if the threshold value Th1 is 2 or less, it is difficult to discriminate an area which is considered to continuously increase or decrease due to noise. Therefore, the effect of reducing color blur is reduced. From the above,
It is considered that it is preferable to set the value of the threshold Th1 to a value of about 1% to 4% of the maximum luminance value.

【0138】また、αとβを3から10の間で設定する
ことが好ましいことが判った。なぜならば、輝度値が一
定と思われる連続画素を見つけるのが目的であるが、画
像にはノイズが含まれており、一定な輝度値を得ること
が難しい。そこで本発明では画像のノイズを考慮して、
輝度値が所定の一定範囲内にある画素を輝度値が一定な
画素としている。つまり、αとβが2以下であると雑音
により安定と思われる領域の判別が困難となり、11以
上では輝度値が変化する余分な領域も安定と思われる領
域として判断する場合が多く、画質劣化を生じる原因と
なったためである。以上から、αとβの値を最高輝度値
の1%から4%程度の値に設定することが好ましいと考
察される。
It was also found that it is preferable to set α and β between 3 and 10. This is because the purpose is to find continuous pixels whose luminance value is considered to be constant, but it is difficult to obtain a constant luminance value because the image contains noise. Therefore, in the present invention, in consideration of image noise,
Pixels whose luminance values are within a predetermined constant range are defined as pixels whose luminance values are constant. That is, if α and β are 2 or less, it is difficult to determine a region considered to be stable due to noise. If α and β are 11 or more, an extra region in which the luminance value changes is often determined to be a region considered to be stable. This is because of the From the above, it is considered that it is preferable to set the values of α and β to a value of about 1% to 4% of the maximum luminance value.

【0139】また、αとβは各輝度値Y1,Y2の大き
さに比例して値を変化させることもできる。例えば輝度
値のZ%(<50%)の値にしたり、輝度値の大きさに
比例して数種類の固定値を割り振ることもできる。
The values of α and β can be changed in proportion to the magnitudes of the luminance values Y1 and Y2. For example, a value of Z% (<50%) of the luminance value, or several kinds of fixed values can be allocated in proportion to the magnitude of the luminance value.

【0140】次に色差値の補正において、本実施例で
は、処理画素の位置と2画素ずらした画素位置の色差値
の差分をとっている。これは、色差信号の変化がなだら
かであり、隣接画素の差分値をとると、色差値の変化が
わかりにくいためである。連続して増加または減少して
いる値を分かりやすくするために、2画素ずらした画素
位置の色差値を取っている。勿論3画素以上ずらして差
分値を取っても良い。
Next, in the correction of the color difference value, in this embodiment, the difference between the position of the processing pixel and the color difference value of the pixel position shifted by two pixels is obtained. This is because the change in the color difference signal is gentle, and when the difference value between adjacent pixels is calculated, the change in the color difference value is difficult to understand. In order to make it easy to understand the continuously increasing or decreasing value, a color difference value at a pixel position shifted by two pixels is taken. Of course, the difference value may be obtained by shifting by three or more pixels.

【0141】本実施例で、垂直色差値補正手段6が、垂
直方向に連続する画素に対して処理を複数回行うことを
示しているが、1回でももちろん良い。
In this embodiment, the vertical chrominance value correcting means 6 performs the processing on the pixels consecutive in the vertical direction a plurality of times.

【0142】また、本実施例では垂直方向の画素数を3
画素づつ処理した場合であるが、5画素以上の奇数画素
数を読み出しながら処理することももちろんできる。更
に、1画像の周辺になると、注目画素の上下に同一画素
数を参照することが困難になるので、この領域では上下
に非対象な画素(偶数画素数となる場合もある)を参照
することもできる。
In this embodiment, the number of pixels in the vertical direction is three.
Although the processing is performed pixel by pixel, it is needless to say that the processing can be performed while reading out the odd number of pixels of 5 pixels or more. Further, it is difficult to refer to the same number of pixels above and below the pixel of interest at the periphery of one image. Therefore, in this area, refer to pixels that are not symmetrical above and below (there may be an even number of pixels). Can also.

【0143】本実施例では最低輝度値を0レベル、最高
輝度値を255レベルとする256階調で設定した。そ
うすると、δを3から10の間で設定することが好まし
いことが判った。なぜならば、輝度値の平滑な部分を見
つけることが目的であるが、値を3より小さく設定する
と、ノイズのために選択される画素がなくることが多
く、色ノイズを効率よく平滑することができなくなる。
In this embodiment, 256 gradations are set, with the lowest luminance value being 0 level and the highest luminance value being 255 levels. Then, it was found that it is preferable to set δ between 3 and 10. This is because the purpose is to find a smooth portion of the luminance value. However, if the value is set to be smaller than 3, there is often no pixel to be selected for noise, and the color noise can be efficiently smoothed. become unable.

【0144】また、10より大きくとると、輝度のエッ
ジ部分で色が変化していても、エッジ部分を見つけずに
色の異なる部分と平均処理をし、色ノイズを軽減できな
くなるからである。以上から、δの値を最高輝度値の1
%から4%程度の値に設定することが望ましい。本実施
例で用いたδの値は8に設定している。
If the value is larger than 10, even if the color changes at the luminance edge portion, the averaging process is performed on the different color portion without finding the edge portion, so that the color noise cannot be reduced. From the above, the value of δ is set to 1 of the maximum brightness value.
It is desirable to set the value to about 4%. The value of δ used in this embodiment is set to 8.

【0145】また、垂直方向の繰り返し回数を3回から
10回に設定すると良い。なぜならば、処理回数は、参
照する画素を全体的に大きくし、より色ノイズを低減す
ることを目的とする。しかし、2回以下にすると、参照
する画素が少なく、色のノイズが低減しにくく、10回
以上にすると参照画素が多くなり、色が全体的に薄くな
ってしまう。本実施例では繰り返し回数を8回に設定し
た。
The number of repetitions in the vertical direction is preferably set from 3 to 10. This is because the number of times of processing is to increase the number of pixels to be referred to as a whole and to further reduce color noise. However, if it is performed twice or less, the number of reference pixels is small, and it is difficult to reduce color noise. If it is performed ten or more times, the number of reference pixels increases and the color becomes lighter as a whole. In this embodiment, the number of repetitions is set to eight.

【0146】垂直色差値補正手段6で画像データ全体に
対して前述の色差値補正を行うことにより、色にじみ処
理により若干生じた色ノイズをも低減し、良好な画質の
処理画像を得ることができる。
By performing the above-described color difference value correction on the entire image data by the vertical color difference value correction means 6, color noise slightly generated by the color bleeding process can be reduced, and a processed image of good image quality can be obtained. it can.

【0147】本実施例では処理した色差値を、画像ライ
ンメモリ10に格納し、垂直方向の画素が1ライン分処
理されてから一括して画像メモリ8に転送するが、一時
記憶のバッファを用いて、処理対象となる画素位置の処
理を終えた時点で画像メモリ8に転送しても良い。ここ
では処理を、分かりやすくするために、画像ラインメモ
リ10を用いている。
In this embodiment, the processed chrominance values are stored in the image line memory 10, and the pixels in the vertical direction are processed by one line and then transferred to the image memory 8 at once. Then, the image data may be transferred to the image memory 8 when the processing of the pixel position to be processed is completed. Here, the image line memory 10 is used for easy understanding of the processing.

【0148】以上の色差値処理により、原画像と比べる
と色にじみがかなり抑えられ、画質の改善が十分に行え
る。しかし、エッジ始点部色差値補正手段とエッジ終点
部色差値補正手段の処理を上記の補正処理で行うと、色
差信号のなだらかな変化以上にエッジが急変するので、
画像の色が変化する輪郭部で部分的に強調され若干不自
然な画像となり易い。
By the above color difference value processing, color blur is considerably suppressed as compared with the original image, and the image quality can be sufficiently improved. However, when the processing of the edge start point color difference value correction means and the edge end point color difference value correction means is performed by the above-described correction processing, the edge suddenly changes more than the gentle change of the color difference signal.
The image is partially emphasized at the contour portion where the color of the image changes, and the image tends to be slightly unnatural.

【0149】そこで、第2の実施例として、第1の実施
例に更に各色差値の平均で置き換えられたエッジ始点と
エッジ終点までの色差値を、置き換えられたエッジ始点
の色差値とエッジ終点の色差値とを線形補間によって置
き換える。
Therefore, as a second embodiment, the color difference values up to the edge start point and the edge end point replaced by the average of the color difference values in the first embodiment are further compared with the color difference value of the replaced edge start point and the edge end point. Are replaced by linear interpolation.

【0150】このようにすることで、エッジ部分と色差
値のエッジが一致して色にじみが除去され、部分的な色
のエッジ強調が起こることがなく、不自然な印象を与え
ない画質の良好な記録画像を得る。
By doing so, the edge portion and the edge of the color difference value coincide with each other, and color fringing is removed, partial edge enhancement of color does not occur, and good image quality without giving an unnatural impression is obtained. To obtain a good recorded image.

【0151】(表1)は原画像の輝度信号と色差信号に
対して、水平方向の処理を行った直後の第1の実施例と
第2の実施例による補正結果の数値データを示してい
る。この実験例ではTh1=α=β=5で色差値補正処
理を行った。各行は画素位置を示し、A列は画素位置の
番号を示し、B列は原画像の輝度値、C列は原画像の色
差値、D列は第1の実施例で処理した画像の色差値を示
し、E列は第2の実施例で処理した画像の色差値を、F
列は処理中に検出された各画素を示している。ただし、
色差値にはR−Y,B−Y信号の2つの信号があるが、
処理が同じであるので、B−Y信号のみ示すことにす
る。
Table 1 shows numerical data of correction results according to the first embodiment and the second embodiment immediately after performing horizontal processing on the luminance signal and the color difference signal of the original image. . In this experimental example, color difference value correction processing was performed at Th1 = α = β = 5. Each row indicates a pixel position, column A indicates a pixel position number, column B indicates the luminance value of the original image, column C indicates the color difference value of the original image, and column D indicates the color difference value of the image processed in the first embodiment. Column E shows the color difference values of the image processed in the second embodiment,
The columns indicate each pixel detected during processing. However,
Although there are two signals of RY and BY signals in the color difference value,
Since the processing is the same, only the BY signal is shown.

【0152】[0152]

【表1】 [Table 1]

【0153】図11は(表1)での処理結果をグラフで
示したものであり、横軸が画素位置を示し、縦軸が各画
素の輝度値または色差値を示す。図11(a)は、原画
像の輝度値を表しており、n1は輝度のエッジ始点を、
n2はエッジ終点を示し、n1−aとn2+bは、輝度
の平滑部の端点を示している。図11(b)は、原画像
の輝度値の画素位置に対応する色差値を示している。k
1とk2は色差値による色のにじみ部分の端点を示して
いる。図11(c)は第1の実施例による処理を行った
結果を、図11(d)は第2の実施例による結果を示
し、図11(c)での結果におけるエッジ始点とエッジ
終点間の色差値も変更した結果である。
FIG. 11 is a graph showing the result of the processing in (Table 1). The horizontal axis indicates the pixel position, and the vertical axis indicates the luminance value or color difference value of each pixel. FIG. 11A shows a luminance value of an original image, where n1 is a luminance edge start point,
n2 indicates an edge end point, and n1-a and n2 + b indicate end points of a luminance smoothing portion. FIG. 11B shows color difference values corresponding to pixel positions of luminance values of the original image. k
1 and k2 indicate the end points of the color fringing portion based on the color difference value. FIG. 11C shows a result obtained by performing the process according to the first embodiment, and FIG. 11D shows a result obtained by the second embodiment. In the result shown in FIG. This is the result of changing the color difference value of.

【0154】図11(c)での処理結果では色差値のな
まりが改善され、色にじみが除去されていることが確認
できる。しかし、エッジ始点と終点において色差値が不
連続に変化しており、色の変化が若干強調されているこ
とが判る。
In the processing result shown in FIG. 11C, it can be confirmed that the rounding of the color difference value has been improved and the color blur has been removed. However, it can be seen that the color difference values change discontinuously at the edge start point and the end point, and the color change is slightly emphasized.

【0155】図11(d)では、エッジ間の色差値を線
形補間で結ぶことにより、色差値の変化を明確にするこ
とによって、色差値に対するエッジを明確にすると共
に、色差値が不連続に変化しないようになっている。し
たがって、色にじみは図11(c)と同様に除去され、
更に色の変化が不必要に強調されない画像が得られてい
ることが判る。
In FIG. 11D, the color difference values between the edges are connected by linear interpolation to clarify the change in the color difference values, thereby clarifying the edges with respect to the color difference values and making the color difference values discontinuous. It does not change. Therefore, the color blur is removed in the same manner as in FIG.
Further, it can be seen that an image in which the color change is not unnecessarily emphasized is obtained.

【0156】図12は、ある画像データに対して第2の
実施例による水平方向の色差値の補正処理直後と、その
後に垂直色差値補正手段により色差値の補正を行った実
験結果をグラフに示したものであり、縦軸が各画素値の
輝度値または、色差値を示し、横軸が水平方向の画素位
置を表し、斜め軸方向が垂直方向の画素位置を表してい
る。
FIG. 12 is a graph showing experimental results obtained by correcting color difference values of certain image data immediately after horizontal color difference value correction processing according to the second embodiment and thereafter by performing vertical color difference value correction means. The vertical axis indicates the luminance value or the color difference value of each pixel value, the horizontal axis indicates the pixel position in the horizontal direction, and the diagonal axis direction indicates the pixel position in the vertical direction.

【0157】図12(a)は、原画像の輝度値を表示し
ている。輝度が一様な値になったところが輝度のエッジ
終点に相当する。
FIG. 12A shows the luminance value of the original image. The point where the luminance becomes a uniform value corresponds to the end point of the luminance.

【0158】図12(b)は、図12(a)に対応する
画素位置の色差値を表示している。輝度値が一様に広が
った部分に対して、色差値はなだらかに値が変化してい
る。このなだらかになった部分が色にじみを生じている
部分である。
FIG. 12B shows the color difference values at the pixel positions corresponding to FIG. The color difference value changes gradually in a portion where the luminance value spreads uniformly. This gentle portion is a portion where color blur has occurred.

【0159】図12(c)は、この色にじみの部分を除
去するために、水平方向に対する色差値の補正処理を行
なった直後の結果である。真ん中の部分で、色にじみと
して処理できなかった部分が現れている。これは、色差
値が連続して変化する領域が輝度値の平滑な領域より大
きくなっているためである。
FIG. 12C shows the result immediately after the correction processing of the color difference value in the horizontal direction in order to remove the color fringing portion. In the middle part, a part that could not be processed as color blur appears. This is because the region where the color difference value changes continuously is larger than the region where the luminance value is smooth.

【0160】図12(d)は、垂直方向の色差値の補正
処理を行った結果を示している。図12(c)において
色にじみが除去できなかった部分が除去されている。こ
れは、この周辺の画素は垂直方向に画素の輝度値が一様
に分布しており、色差信号も同一であると推測されるか
らであり、色差値が平均化されることにより除去されな
かった色にじみ部分が、周りの画素に分配されて平滑化
されたからである。その結果、色にじみが除去されて画
質が向上すると共に、色差値の垂直方向へのばらつきも
改善されて画質が改善される。
FIG. 12D shows the result of performing the correction process of the color difference value in the vertical direction. In FIG. 12 (c), the portion where the color blur cannot be removed is removed. This is because the peripheral pixels have a uniform distribution of the luminance values of the pixels in the vertical direction, and it is assumed that the chrominance signals are also the same, and are not removed by averaging the chrominance values. This is because the blurred color portion is distributed to surrounding pixels and smoothed. As a result, the color blur is removed and the image quality is improved, and the variation in the color difference value in the vertical direction is also improved, thereby improving the image quality.

【0161】ここで、画素n1からn2までが輝度変化
領域であり、画素n1からn1−aまで、及び画素n2
からn2+bまでが輝度安定領域であり、画素n1から
k1まで、及び画素n2からk2までが色差値変化領域
である。
Here, the pixels n1 to n2 are the luminance change areas, and the pixels n1 to n1-a and the pixel n2
To n2 + b is a luminance stable area, and pixels n1 to k1 and pixels n2 to k2 are color difference value change areas.

【0162】以上のように、まず、エッジ始点検出手段
2とエッジ終点検出手段3により、水平走査方向に輝度
が連続して変化する輝度値のエッジを検出する。次に、
この検出した輝度値のエッジ周辺部で変化している色差
値について、エッジ始点部色差値補正手段4とエッジ終
点部色差値補正手段5により、輝度値の変化に合わせて
色差値が変化するように色差値を変更する。更に垂直色
差値補正手段6により画像の垂直方向に連続すると思わ
れる画素を抽出して色差値を補正する。つまり、画像の
水平方向と垂直方向に対して、輝度値の変化に対して色
差値の変化を一致させるように色差信号を2段階に分け
て補正することにより、色差信号のなまりが補正されて
色にじみを大きく低減できる。
As described above, first, the edge start point detecting means 2 and the edge end point detecting means 3 detect an edge having a luminance value whose luminance continuously changes in the horizontal scanning direction. next,
With respect to the chrominance value changing around the edge of the detected luminance value, the chrominance value correcting means 4 at the edge start point and the chrominance value correcting means 5 at the edge end point change the chrominance value in accordance with the change in the luminance value. Change the color difference value to Further, the vertical color difference value correcting means 6 extracts pixels that are considered to be continuous in the vertical direction of the image and corrects the color difference values. That is, in the horizontal direction and the vertical direction of the image, the color difference signal is corrected in two stages so that the change in the color difference value is matched with the change in the luminance value, so that the rounding of the color difference signal is corrected. Color bleeding can be greatly reduced.

【0163】さて、一般の画像では水平走査方向に映像
信号が送られ、映像信号の帯域制限により特に色差信号
が大きくなまり、輝度値の変化に色差値が追従できずに
色にじみとして観測されることが殆どである。つまり色
が変化する部分は輝度値の変化する部分と相関があり、
特に輝度値の変化が大きく現れるところでは色差信号の
変化も大きく現れ、大きな色にじみとして観察される。
In a general image, a video signal is transmitted in the horizontal scanning direction. In particular, the color difference signal becomes large due to the band limitation of the video signal, and the color difference value cannot follow the change in the luminance value, and is observed as a color blur. Most of it. In other words, the part where the color changes is correlated with the part where the luminance value changes,
In particular, where the change in the luminance value is large, the change in the color difference signal is also large, and is observed as a large color blur.

【0164】従って、まず水平走査方向に色にじみが最
も目立つ輝度値の変化が大きな所(つまりエッジ部)を
検出し、この部位での色にじみをできるだけ除去する。
ところが、水平方向だけの補正を行うと、色にじみが除
去された部位と除去できなかった部位が垂直方向に隣接
する場合があり、逆に不自然な画像になって画質が低下
することがある。そこで更に、輝度値を用いて垂直方向
にも色差値を補正すると、垂直方向に隣接する部位での
色差値が平均化されるために、不連続に色差値が変化す
ることが防止されて均一に色にじみを低減することがで
き、自然な画像で画質の改善を大きく図ることができ
た。
Accordingly, first, a portion where the color value is most noticeable in the horizontal scanning direction and a change in the luminance value is large (that is, an edge portion) is detected, and the color blur at this portion is removed as much as possible.
However, when the correction is performed only in the horizontal direction, the portion from which color blur is removed and the portion that cannot be removed may be vertically adjacent to each other, and conversely, an unnatural image may be generated and the image quality may be degraded. . Therefore, if the chrominance values are further corrected in the vertical direction using the luminance values, the chrominance values in the vertically adjacent portions are averaged, so that the chrominance values are prevented from changing discontinuously and uniform. Thus, the color blur can be reduced, and the image quality can be greatly improved with a natural image.

【0165】次に図13に示す第3の実施例における映
像信号補正装置について説明する。
Next, a video signal correction device according to the third embodiment shown in FIG. 13 will be described.

【0166】図13において、図1と同じ番号のもの
は、同一のものである。11は、画像メモリ1から輝度
値と色差値の読み出し方向と、格納する方向を画像の水
平順方向あるいは水平逆方向のどちらか一方に切り替え
るアクセス方向切り換え器である。
In FIG. 13, the components having the same numbers as those in FIG. 1 are the same. Reference numeral 11 denotes an access direction switch for switching the reading direction of the luminance value and the color difference value from the image memory 1 and the storing direction thereof to either the horizontal forward direction or the horizontal reverse direction of the image.

【0167】以上のような構成において、まず画像メモ
リ1からアクセス方向切り換え器11により水平順方向
あるいは水平逆方向のどちらか一方に決められたアクセ
ス方向に、画像の輝度値を取り出し、エッジ始点検出手
段2により輝度値が大きく変化し始めるn1番目の画素
であるエッジ始点と、エッジ終点検出手段3により輝度
値の変化が終了するn2番目の画素であるエッジ終点を
各々検出する。
In the above configuration, first, the luminance value of the image is extracted from the image memory 1 in the access direction determined by the access direction switch 11 in either the horizontal forward direction or the horizontal reverse direction, and the edge start point is detected. The means 2 detects an edge start point which is the n1th pixel at which the luminance value starts to largely change, and the edge end point detecting means 3 detects an edge end point which is the n2th pixel at which the change of the luminance value ends.

【0168】次に画像メモリ1からアクセス方向に画像
の色差値を取り出しながら、エッジ終点直後において色
差値が連続して変化している場合は、エッジ終点部色差
値補正手段5により、色差値を変更することを一画像デ
ータすべてに関して行う。
Next, while the color difference values of the image are taken out from the image memory 1 in the access direction and the color difference values are continuously changing immediately after the edge end point, the color difference value is corrected by the edge end point color difference value correcting means 5. The change is performed for all the image data.

【0169】次にアクセス方向切り換え器11により、
先ほど処理したアクセス方向とは逆方向に、エッジ始点
検出手段2、エッジ終点検出手段3およびエッジ終点部
色差値補正手段5を用いて同様の処理を行い、輝度値が
大きく変化する近辺での色差値を補正する。
Next, the access direction switch 11
The same processing is performed in a direction opposite to the access direction processed previously using the edge start point detection means 2, the edge end point detection means 3, and the edge end point color difference value correction means 5, and the color difference in the vicinity where the luminance value greatly changes is obtained. Correct the value.

【0170】次に、画像メモリ1から垂直方向に画像の
輝度値を取り出し、垂直色差値補正手段6により、前述
したように輝度が平滑である画素の色差値を平均処理し
て画像メモリ1に転送する。この平均処理は複数回繰り
返される。
Next, the luminance value of the image is taken out from the image memory 1 in the vertical direction, and the chrominance value of the pixel whose luminance is smooth is averaged by the vertical chrominance value correcting means 6 as described above. Forward. This averaging process is repeated a plurality of times.

【0171】以上のような構成において、第1の実施例
と同様に色にじみ除去のみならず色ノイズをも低減した
画質を向上させた画像を得ることができる。特にこの構
成では、処理方向を変更するだけでよく、図1で示した
実施例と比べて処理構成が少なく、安価に実現できる。
With the above-described configuration, it is possible to obtain an image with improved image quality in which not only color fringing is removed but also color noise is reduced, as in the first embodiment. Particularly, in this configuration, it is only necessary to change the processing direction, and the processing configuration is smaller than that of the embodiment shown in FIG.

【0172】本実施例では、色差値の補正において一画
像全体に対して水平順方向あるいは水平逆方向のどちら
か一方のアクセス方向の処理を行った後に、今度は処理
したアクセス方向とは逆のアクセス方向に処理すること
により、色差値補正の処理画像を得ている。ところが、
画像の1ラインごとに、水平順方向の処理と水平逆方向
の処理を交互に行っても同様な結果が得られる。
In the present embodiment, in the correction of the color difference value, the entire image is processed in either the horizontal forward direction or the horizontal reverse direction, and then the access direction opposite to the processed access direction is performed. By processing in the access direction, a processed image of color difference value correction is obtained. However,
Similar results can be obtained by alternately performing horizontal forward processing and horizontal reverse processing for each line of the image.

【0173】本実施例をマイクロコンピュータで実現し
た画像データ処理装置の構成は図2と同一である。ただ
し、本実施例ではマイクロコンピュータ8は、入力され
た映像信号に対して、エッジ始点検出手段2、エッジ終
点検出手段3とエッジ終点部色差値補正手段5と、アク
セス方向切り換え器11と垂直色差値補正手段6の動作
の各処理を行なう。
The configuration of the image data processing apparatus in which this embodiment is realized by a microcomputer is the same as that of FIG. However, in the present embodiment, the microcomputer 8 performs the edge start point detection means 2, the edge end point detection means 3, the edge end point color difference value correction means 5, the access direction switch 11 and the vertical color difference Each processing of the operation of the value correction means 6 is performed.

【0174】以上のように構成された映像信号処理装置
について、エッジ始点検出手段2、エッジ終点検出手段
3、エッジ終点部色差値補正手段5、垂直色差値補正手
段6は、動作が前述した第1の実施例と同様であるので
下記の動作説明では詳細は省略する。
In the video signal processing apparatus configured as described above, the operations of the edge start point detecting means 2, the edge end point detecting means 3, the edge end point color difference value correcting means 5, and the vertical color difference value correcting means 6 are the same as those described above. Since the operation is the same as that of the first embodiment, details are omitted in the following description of the operation.

【0175】図14は、本実施例で用いた画像メモリの
位置と画素の位置の関係を示している。映像信号の水平
走査方向と画像メモリの水平順方向(x方向)を一致さ
せ、水平順方向の反対方向を水平逆方向とし、副走査方
向と画像メモリの垂直方向(y方向)を一致させてい
る。(x,y)は画像中の画素位置をあらわし、画像メ
モリのそれぞれのアドレスに対応する。
FIG. 14 shows the relationship between the position of the image memory and the position of the pixel used in this embodiment. The horizontal scanning direction of the video signal coincides with the horizontal forward direction (x direction) of the image memory, the direction opposite to the horizontal forward direction is the horizontal reverse direction, and the sub-scanning direction coincides with the vertical direction (y direction) of the image memory. I have. (X, y) represents a pixel position in the image, and corresponds to each address of the image memory.

【0176】図15は、図13で示した映像信号補正装
置での水平方向の処理を示すフローチャートであり、各
処理を下記に説明する。なお、図5と同じ番号のものは
同一のものである。ただし、以下で示す水平方向は、ア
クセス方向切り換え器11によって設定された方向に従
うものとする。
FIG. 15 is a flowchart showing horizontal processing in the video signal correction device shown in FIG. 13, and each processing will be described below. Note that the components having the same numbers as those in FIG. 5 are the same. However, the horizontal direction described below follows the direction set by the access direction switch 11.

【0177】まず、ステップs150では、画像メモリ
のアクセス方向を設定し、アクセス方向切り換え器11
を実現している。ステップs3は、画像メモリ8の垂直
方向の処理を開始する画素の位置を設定する。ステップ
s4は、画像メモリ8の水平方向の処理を開始する画素
の位置を設定する。ステップs5では、画像メモリ8か
ら輝度値を取り出すためのページの設定を行う。ステッ
プs6では、画像メモリ8から輝度値を順次取り出し、
輝度値のエッジ始点の画素位置n1を求める。この処理
によりエッジ始点検出手段2を実現している。
First, in step s150, the access direction of the image memory is set, and the access direction switch 11
Has been realized. In step s3, the position of a pixel in the image memory 8 at which processing in the vertical direction is started is set. In step s4, the position of a pixel in the image memory 8 at which horizontal processing is started is set. In step s5, a page for extracting a luminance value from the image memory 8 is set. In step s6, the luminance values are sequentially extracted from the image memory 8, and
The pixel position n1 of the edge start point of the luminance value is obtained. This processing implements the edge start point detecting means 2.

【0178】ステップs7は、検出したエッジ始点の3
画素先の画素が画像の水平方向の終了点を越えることが
ないかどうかを確認する。水平終了点を越える場合はエ
ッジ終了点を検知できないので色差値の補正をしないよ
うにしている。
In step s7, the detected edge start point 3
It is checked whether the pixel ahead of the pixel does not exceed the horizontal end point of the image. When the horizontal end point is exceeded, the edge end point cannot be detected, so that the color difference value is not corrected.

【0179】ステップs8では、画像メモリ8から輝度
値を取り出し、輝度値のエッジ終点を見つけ、その位置
情報n2と、エッジ終点以後の画素で輝度値が少なくと
も2画素以上連続して増加または減少し始める画素位置
n2+bを求め、n2からn2+b番目の画素までを輝
度値の変動の少ない領域として求める処理を行う。この
処理により輝度エッジ終点検出手段3を実現している。
In step s8, the luminance value is extracted from the image memory 8, the edge end point of the luminance value is found, and the position information n2 and the luminance value of the pixel after the edge end point continuously increase or decrease by at least two pixels or more. The pixel position n2 + b to be started is obtained, and the process from the pixel n2 to the n2 + b-th pixel is determined as an area having a small variation in luminance value. This processing implements the luminance edge end point detecting means 3.

【0180】ステップs9は、色差値の値を読み込むた
めに、画像メモリ8のページを切り替えて、色差値R−
Y、B−Yのいずれかの色差値を取り出すための設定を
行う。ステップs11では、ステップs8で得られた輝
度値の変動の少ない領域の画素の色差値を画像メモリ8
の格納位置から順次取り出し、k2番目の画素を検出す
ると共に、エッジ終点からk2番目までの色差値の補正
をおこない、画像メモリ8に出力する。この処理により
エッジ終点部色差値補正手段5を実現している。
In step s9, the page of the image memory 8 is switched to read the color difference value, and the color difference value R−
A setting for extracting a color difference value of either Y or BY is performed. In step s11, the chrominance values of the pixels in the region where the fluctuation of the luminance value obtained in step s8 is small are stored in the image memory 8
Are sequentially taken out from the storage position, the k2th pixel is detected, the color difference values from the edge end point to the k2th pixel are corrected, and output to the image memory 8. This processing implements the edge end point color difference value correcting means 5.

【0181】ステップs12は、各色差値R−Y,B−
Yに対して色差値補正を行うための画像メモリ8のペー
ジを切り替える判定をおこなう。ステップs13は、処
理する画素位置が、画像の水平方向の1ライン分の処理
が完了したどうかを判定する。未処理部がある場合は、
水平方向のすべての画素に対して色差値の補正を行うた
め、ステップs5に戻り処理を繰り返す。
In step s12, the respective color difference values RY, B-
A determination is made to switch the page of the image memory 8 for performing color difference value correction for Y. In step s13, it is determined whether the pixel position to be processed has been processed for one line in the horizontal direction of the image. If there are unprocessed parts,
In order to correct the color difference values for all the pixels in the horizontal direction, the process returns to step s5 and the process is repeated.

【0182】ステップs14は、処理する画像全体に対
して映像信号補正処理が終了したかどうかの判定を行
う。処理が終わっていない場合は、ステップs15で垂
直方向のアドレスyを1つ増やし、ステップs4に戻っ
て水平方向の処理を繰り返す。
At step s14, it is determined whether or not the video signal correction processing has been completed for the entire image to be processed. If the processing has not been completed, the address y in the vertical direction is incremented by one in step s15, and the process returns to step s4 to repeat the processing in the horizontal direction.

【0183】ステップs151は、処理する画像全体に
対して水平順方向と、水平逆方向の両方向の処理が終わ
ったかどうかの判定を行う。処理が終わっていない場合
はステップs150に戻って、取り出す画素値のアクセ
ス方向を逆転させて上述の処理を繰り返す。
In step s151, it is determined whether or not the processing in the horizontal forward direction and the horizontal reverse direction has been completed for the entire image to be processed. If the process has not been completed, the process returns to step s150, and the above process is repeated by reversing the access direction of the pixel value to be extracted.

【0184】以上のように、水平方向の色差値処理を行
い、その次に垂直色差値補正手段を実行することによ
り、原画像と比べて、色にじみが抑えられ、画質の改善
が行える。しかし、水平方向の処理において、色差信号
のなだらかな変化以上にエッジが急変するので、場所に
よっては画像の色が変化する輪郭部で部分的に強調され
若干不自然な画像となり易い。
As described above, by performing the color difference value processing in the horizontal direction, and then executing the vertical color difference value correction means, the color blur can be suppressed as compared with the original image, and the image quality can be improved. However, in the processing in the horizontal direction, the edge changes abruptly more than the gentle change of the color difference signal. Therefore, depending on the location, the image is partially emphasized at the outline where the color changes, and the image tends to be slightly unnatural.

【0185】そこで、上述の色差値補正においてエッジ
終点n2の色差値をn2−1番目の画素値と色差値の変
動が少ない領域での色差値の代表値C2との平均値に変
更した。これにより、エッジ部分と色差値のエッジ部分
で、部分的な色のエッジ強調を低減することができ、不
自然な印象を抑える更に良好な記録像を得ることができ
る。これが第4の実施例である。
Therefore, in the above-described color difference value correction, the color difference value at the edge end point n2 is changed to the average value of the (n2-1) th pixel value and the representative value C2 of the color difference values in a region where the color difference value is less varied. As a result, it is possible to reduce partial color edge enhancement at the edge portion and the edge portion of the color difference value, and it is possible to obtain a better recorded image that suppresses an unnatural impression. This is the fourth embodiment.

【0186】(表2)は、ある原画像の輝度信号と色差
信号に対して、第3の実施例と第4の実施例の水平方向
に処理した直後の実験結果の数値データを示している。
なお、第3、第4の実施例では、エッジ終点検出手段3
は、エッジ終点に連続する輝度値の変動の少ない領域の
端点n1+b番目の画素を検出するために、現在検索し
ているエッジ終点直後に現れるエッジ始点の画素をn2
+b番目の画素として決定している。
Table 2 shows numerical data of experimental results immediately after the luminance signal and the color difference signal of a certain original image are processed in the third and fourth embodiments in the horizontal direction. .
In the third and fourth embodiments, the edge end point detecting means 3
In order to detect the pixel at the end point n1 + b-th in the area where the luminance value does not fluctuate continuously to the edge end point, the pixel of the edge start point that appears immediately after the edge end point currently being searched is set to n2.
The pixel is determined as the + b-th pixel.

【0187】この実験例ではエッジ始点検出手段とエッ
ジ終点検出手段で用いた閾値をTh1=5と設定して処
理した。A列は画素位置を示し、B列は原画像の輝度
値、C列は原画像の色差値、D列は水平順方向に処理し
た色差値を示し、E列は水平順方向の処理の後に水平逆
方向に処理したときの色差値を示している。F列は第5
の実施例で処理した画像の水平順方向に処理した色差値
を示し、G列は水平順方向の処理の後に水平逆方向に処
理したときの色差値を示す。ただし、色差値にはR−
Y,B−Y信号の2つの信号があるが、処理が同じであ
るのでB−Y信号のみ示す。
In this experimental example, the threshold value used in the edge start point detection means and the edge end point detection means was set to Th1 = 5 for processing. Column A shows the pixel position, column B shows the luminance value of the original image, column C shows the color difference values of the original image, column D shows the color difference values processed in the horizontal forward direction, and column E shows the values after the processing in the horizontal forward direction. It shows the color difference values when processing is performed in the horizontal reverse direction. Row F is the fifth
Shows the color difference values processed in the horizontal forward direction of the image processed in the embodiment, and the G column shows the color difference values obtained when the image is processed in the horizontal reverse direction after the processing in the horizontal forward direction. However, the color difference value is R-
Although there are two signals, Y and BY signals, only the BY signal is shown because the processing is the same.

【0188】[0188]

【表2】 [Table 2]

【0189】図16は、(表2)での実験結果をグラフ
で示したものである。横軸が画素位置を、縦軸が各画素
の輝度値または色差値を示す。図16(a)は、原画像
の輝度値を表しており、図16(b)は、原画像の輝度
値の画素位置に対応する色差値を示し、図16(c)は
第3の実施例で水平順方向に処理した結果を示し、図1
6(d)は第3の実施例で水平順方向の処理の後に水平
逆方向に処理した結果を示す。
FIG. 16 is a graph showing the experimental results in (Table 2). The horizontal axis indicates the pixel position, and the vertical axis indicates the luminance value or color difference value of each pixel. 16A shows the luminance value of the original image, FIG. 16B shows the color difference values corresponding to the pixel positions of the luminance value of the original image, and FIG. 16C shows the third embodiment. FIG. 1 shows the result of processing in the horizontal forward direction in the example.
6 (d) shows the result of processing in the horizontal reverse direction after processing in the horizontal forward direction in the third embodiment.

【0190】図16(c)で水平順方向の片側だけの色
差値のなまりが改善され、図16(d)で実施例1と同
じように色差値のなまりが改善されている。つまり、エ
ッジから色差値が連続して増加または減少を続ける色差
値を補正することによって、色にじみが除去され、画質
が大幅に向上していることが判る。しかし、エッジ部に
おいて、色差値が不連続に変化し、エッジ部において色
の変化が若干強調されている。
In FIG. 16C, the rounding of the color difference values on only one side in the horizontal forward direction is improved, and in FIG. 16D, the rounding of the color difference values is improved as in the first embodiment. That is, it can be seen that by correcting the color difference value in which the color difference value continuously increases or decreases from the edge, the color blur is removed, and the image quality is greatly improved. However, the color difference value changes discontinuously at the edge, and the color change is slightly emphasized at the edge.

【0191】図16(e)と(f)は、前述した第4の
実施例による処理結果をグラフ化したものである。エッ
ジ付近の不連続な色差値を平均値を用いて補間する事に
より、色差値が不連続に変化しないようになっている。
したがって、色にじみは第2の実施例での処理図11
(d)と同様に除去され、更に色の変化が不必要に強調
されない自然な画質の補正画像が得られていることが判
る。
FIGS. 16E and 16F are graphs showing the processing results according to the fourth embodiment described above. The color difference values do not change discontinuously by interpolating the discontinuous color difference values near the edge using the average value.
Therefore, the color bleeding is the same as the processing in the second embodiment.
It can be seen that a corrected image with a natural image quality is obtained, which is removed in the same manner as in (d), and further, the color change is not unnecessarily emphasized.

【0192】さらに、垂直色差値補正手段により処理を
行うことにより、水平方向では処理が不完全な部位も第
1の実施例同様に、良好に色にじみを除去処理すること
ができる。
Further, by performing the processing by the vertical color difference value correcting means, it is possible to satisfactorily remove the color fringing even in the part incompletely processed in the horizontal direction as in the first embodiment.

【0193】図17は、本発明にかかる第5の実施例に
おける映像信号補正装置の構成を示すブロック図であ
り、図1と図13と同じ番号のものは、前述と同一のも
のである。
FIG. 17 is a block diagram showing the configuration of a video signal correction device according to the fifth embodiment of the present invention. The components having the same numbers as those in FIGS. 1 and 13 are the same as those described above.

【0194】図17において、まず画像メモリ1からア
クセス方向切り換え器11により水平順方向あるいは水
平逆方向のどちらか一方に決められたアクセス方向に、
画像の輝度値を取り出し、エッジ始点検出手段2により
輝度値が大きく変化し始めるn1番目の画素であるエッ
ジ始点を検出する。
In FIG. 17, first, from the image memory 1 in the access direction determined by the access direction switch 11 in one of the horizontal forward direction and the horizontal reverse direction,
The luminance value of the image is taken out, and the edge start point detecting means 2 detects the edge start point which is the n1st pixel at which the luminance value starts to change greatly.

【0195】次に、画像メモリ1からアクセス方向に画
像の色差値を取り出しながら、エッジ始点直前において
色差値が連続して変化している場合は、エッジ始点部色
差値補正手段4により、その領域での色差値を変更し、
この操作の繰り返しにより一画像データに関して水平方
向の色差値補正を完了する。
Next, while the color difference values of the image are fetched from the image memory 1 in the access direction and if the color difference values are continuously changing immediately before the edge start point, the edge start point color difference value correction means 4 causes the area to change. Change the color difference value at
By repeating this operation, the color difference value correction for one image data in the horizontal direction is completed.

【0196】次にアクセス方向切り換え器11により、
今度は処理したアクセス方向とは逆方向に同様の処理を
行い、輝度値が大きく変化する近辺での色差値を補正す
る。
Next, the access direction switch 11
This time, the same processing is performed in the opposite direction to the processed access direction, and the color difference value in the vicinity where the luminance value greatly changes is corrected.

【0197】次に、画像メモリ1から垂直方向に画像の
輝度値を取り出し、垂直色差値補正手段6により、輝度
が平滑である画素の色差値を平均処理して画像メモリ1
に転送する。以上の処理を一画像データ全てに関して行
い、色ノイズをも低減した処理画像を得る。
Next, the luminance value of the image is taken out from the image memory 1 in the vertical direction, and the vertical chrominance value correcting means 6 averages the chrominance values of the pixels whose luminance is smooth and averages them.
Transfer to The above processing is performed for all the image data to obtain a processed image with reduced color noise.

【0198】本実施例は、前述した映像信号補正装置の
構成例のうちで最も簡略化されたものであり、最も安価
に実現できる。
The present embodiment is the simplest of the above-described examples of the configuration of the video signal correction device, and can be realized at the lowest cost.

【0199】色差値の補正では、一画像全体に対して水
平順方向あるいは水平逆方向のどちらか一方のアクセス
方向の処理を行ってから、今度は処理したアクセス方向
とは逆のアクセス方向の処理を行うことにより、処理画
像を得ているが、画像の1ラインごとに、水平順方向の
処理、水平逆方向の処理を交互に行っても同様な結果が
得られる。
In the correction of the color difference value, the entire image is processed in either the horizontal forward direction or the horizontal reverse direction, and then the processing in the access direction opposite to the processed access direction is performed. , A processed image is obtained, but the same result can be obtained by alternately performing the processing in the horizontal forward direction and the processing in the horizontal reverse direction for each line of the image.

【0200】本実施例をマイクロコンピュータで実現し
た画像データ処理装置の構成は図2と同一である。ただ
し、マイクロコンピュータ9は、入力された映像信号に
対して、エッジ始点検出手段2、エッジ始点部色差値補
正手段4、アクセス方向切り換え器11、垂直色差値補
正手段6の動作の各処理を行なうことができる。
The configuration of an image data processing apparatus in which this embodiment is realized by a microcomputer is the same as that shown in FIG. However, the microcomputer 9 performs the respective processes of the operations of the edge start point detection means 2, the edge start point color difference value correction means 4, the access direction switch 11, and the vertical color difference value correction means 6 on the input video signal. be able to.

【0201】以上のように構成された映像信号処理装置
について、エッジ始点検出手段2、エッジ始点部色差値
補正手段4、垂直色差値補正手段6は、動作が第1の実
施例と第2の実施例と同様であるので説明を省略し、以
下に、その動作を説明する。ここで、画像メモリ8の位
置と画素の位置の関係は図14と同じである。
In the video signal processing apparatus configured as described above, the operation of the edge start point detection means 2, the edge start point color difference value correction means 4, and the vertical color difference value correction means 6 is the same as that of the first embodiment and the second embodiment. The description is omitted because it is the same as that of the embodiment, and the operation will be described below. Here, the relationship between the position of the image memory 8 and the position of the pixel is the same as in FIG.

【0202】図18は、映像信号補正装置の水平方向の
処理を示すフローチャートであり、各処理を下記に説明
する。なお、図5と図15と同じ番号のものは同一のも
のである。ただし、以下で示す水平方向は、アクセス方
向切り換え器11によって設定された方向に従うものと
する。
FIG. 18 is a flowchart showing processing in the horizontal direction of the video signal correction device. Each processing will be described below. The components having the same numbers as those in FIGS. 5 and 15 are the same. However, the horizontal direction described below follows the direction set by the access direction switch 11.

【0203】まず、ステップs150は、画像メモリの
アクセス方向を設定し、アクセス方向切り換え器11を
実現している。ステップs3では、画像メモリ8の垂直
方向の処理を開始する画素の位置を設定し、ステップs
4では、画像メモリ8の水平方向の処理を開始する画素
の位置を設定する。ステップs5では、画像メモリ8か
ら輝度値を取り出すためのページの設定を行う。
First, in step s150, the access direction of the image memory is set, and the access direction switch 11 is realized. In step s3, the position of a pixel in the image memory 8 at which processing in the vertical direction is started is set.
In step 4, the position of a pixel in the image memory 8 at which horizontal processing is started is set. In step s5, a page for extracting a luminance value from the image memory 8 is set.

【0204】ステップs6は、画像メモリ8から輝度値
を順次取り出し、輝度値のエッジ始点の画素位置n1を
求める。この処理によりエッジ始点検出手段2を実現し
ている。ステップs7は、検出したエッジ始点の3画素
先の画素が画像の水平方向の終了点を越えることがない
かどうかを確認する。水平終了点を越える場合は、エッ
ジ始点から始まる輝度の変化が、連続して増加または減
少するエッジであるのかどうか判断できないので色差値
の補正をしないようにしている。
In step s6, the luminance values are sequentially taken out from the image memory 8, and the pixel position n1 of the edge start point of the luminance value is obtained. This processing implements the edge start point detecting means 2. A step s7 checks whether or not the pixel three pixels ahead of the detected edge start point does not exceed the horizontal end point of the image. When the horizontal end point is exceeded, it is not possible to determine whether the change in luminance starting from the edge start point is an edge that continuously increases or decreases, so that the color difference value is not corrected.

【0205】ステップs9では、色差値の値を読み込む
ために、画像メモリ8のページを切り替えて、色差値R
−Y、B−Yのいずれかの色差値を取り出すための設定
を行う。
In step s9, the page of the image memory 8 is switched to read the value of the color difference value, and the color difference value R is read.
A setting for extracting a color difference value of either -Y or BY is performed.

【0206】ステップs10は、ステップs6で得られ
た輝度値の変動の少ない領域の画素の色差値を画像メモ
リの格納位置から順次取り出し、k1番目の画素を検出
すると共に、k1番目の画素からエッジ始点までの色差
値の補正をおこない、画像メモリ8に出力する。この処
理によりエッジ始点部色差値補正手段4を実現してい
る。
In step s10, the color difference values of the pixels in the area where the luminance value does not vary much, obtained in step s6, are sequentially extracted from the storage position in the image memory, and the k1st pixel is detected. The color difference values up to the start point are corrected and output to the image memory 8. This processing implements the edge start point color difference value correcting means 4.

【0207】ステップs12は、各色差値R−Y,B−
Yに対して色差値補正を行うための画像メモリのページ
を切り替える判定をおこなう。ステップs13は、処理
する画素位置が、画像の水平方向の1ライン分の処理が
完了したどうかを判定する。未処理部がある場合は、水
平方向のすべての画素に対して色差値の補正を行うた
め、ステップs5に戻り処理を繰り返す。
In step s12, the respective color difference values RY, B-
A determination is made to switch the page of the image memory for performing color difference correction for Y. In step s13, it is determined whether the pixel position to be processed has been processed for one line in the horizontal direction of the image. If there is an unprocessed portion, the process returns to step s5 and repeats the process to correct the color difference value for all pixels in the horizontal direction.

【0208】ステップs14は、ステップs13で水平
方向の処理が終わった場合、処理する画像全体に対して
映像信号補正処理が終了したかどうかの判定を行う。処
理が終わっていない場合は、ステップs15で垂直方向
のアドレスyを1つ増やし、ステップs4に戻って水平
方向の処理を繰り返す。
At step s14, when the horizontal processing is completed at step s13, it is determined whether or not the video signal correction processing has been completed for the entire image to be processed. If the processing has not been completed, the address y in the vertical direction is incremented by one in step s15, and the process returns to step s4 to repeat the processing in the horizontal direction.

【0209】ステップs151は、ステップs14で垂
直方向の処理が終わった場合、処理する画像全体に対し
て水平順方向と、水平逆方向の両方向の処理が終わった
かどうかの判定を行う。処理が終わっていない場合はス
テップs150に戻って、取り出す画素値のアクセス方
向の設定を行い、処理を繰り返す。
In step s151, when the processing in the vertical direction is completed in step s14, it is determined whether or not the processing in both the horizontal forward direction and the horizontal reverse direction is completed for the entire image to be processed. If the process has not been completed, the process returns to step s150, the access direction of the pixel value to be taken out is set, and the process is repeated.

【0210】以上のように、水平方向の色差値処理の次
に垂直色差値補正手段を行うことにより、原画像と比べ
ると色にじみと色ノイズがかなり抑えられ、画質の改善
が行える。
As described above, by performing the vertical color difference value correction means after the horizontal color difference value processing, color blur and color noise are considerably suppressed as compared with the original image, and the image quality can be improved.

【0211】本実施例では、エッジ始点部色差値補正手
段4は、エッジ始点検出手段2で検出したエッジ始点か
ら、輝度値の変動の少ない領域のn1−a番目の画素ま
での色差値を画像メモリの格納位置から順次取り出し、
色差値が連続して増加または減少が終わるk1番目の画
素を検出すると共に、k1番目の画素からn1−a番目
の画素までの色差値の中央値をk1番目の画素からエッ
ジ始点までの色差値として画像メモリ8に出力する。
In this embodiment, the edge start point color difference value correcting means 4 converts the color difference value from the edge start point detected by the edge start point detecting means 2 to the (n1-a) th pixel of the area where the luminance value does not change much. Take out sequentially from the storage location of the memory,
The k1th pixel at which the color difference value continuously increases or decreases is detected, and the median color difference value from the k1st pixel to the n1-ath pixel is calculated as the color difference value from the k1st pixel to the edge start point. Is output to the image memory 8.

【0212】次に、第6の実施例として、第5の実施例
と同様にエッジ始点n1の色差値をn1+1番目の画素
値と色差値の変動が少ない領域での色差値の代表値C1
との平均値にすることで、エッジ部分と色差値のエッジ
部分で、部分的な色のエッジ強調を低減することがで
き、不自然な印象を抑える良好な記録画像を得ることが
できる。
Next, as a sixth embodiment, similar to the fifth embodiment, the color difference value of the edge start point n1 is changed to the representative value C1 of the color difference value in an area where the change of the color difference value is small with the (n + 1) th pixel value.
, It is possible to reduce partial color edge enhancement at the edge portion and the edge portion of the color difference value, and it is possible to obtain a good recorded image that suppresses an unnatural impression.

【0213】そして次に、垂直色差値補正手段を実行す
ることにより、水平方向の色にじみ補正処理だけでは不
十分な部位も改善され、更に良好な記録画像を得ること
ができる。
Next, by executing the vertical color difference value correcting means, portions which are not sufficient only by the horizontal color blur correction processing are improved, and a better recorded image can be obtained.

【0214】(表3)は、原画像の輝度信号と色差信号
に対して、第5の実施例と第6の実施例による処理結果
データを示している。本実験例ではエッジ始点検出手段
2で用いた閾値をTh1=5と設定して処理を行った。
Aは画素位置を示し、Bは原画像の輝度値、Cは原画像
の色差値、Dは第5の実施例の水平順方向に処理した色
差値を示し、Eは水平順方向の処理の後、水平逆方向に
処理したときの色差値を示している。
Table 3 shows processing result data according to the fifth and sixth embodiments for the luminance signal and the color difference signal of the original image. In this experimental example, the threshold value used in the edge start point detection means 2 was set to Th1 = 5, and the processing was performed.
A indicates the pixel position, B indicates the luminance value of the original image, C indicates the color difference value of the original image, D indicates the color difference value processed in the horizontal forward direction of the fifth embodiment, and E indicates the value of the horizontal forward direction processing. Thereafter, the color difference values when the processing is performed in the horizontal reverse direction are shown.

【0215】Fは第6の実施例により処理した画像の水
平順方向に処理した色差値を示し、Gは水平順方向の処
理の後、水平逆方向に処理を行ったときの色差値を示し
ている。ただし、色差値にはR−Y,B−Y信号の2つ
の信号があるが、処理が同じであるので、B−Y信号の
み示すことにする。
F indicates the color difference value of the image processed according to the sixth embodiment in the horizontal forward direction, and G indicates the color difference value of the image processed in the horizontal reverse direction after the horizontal forward process. ing. However, there are two signals of the RY and BY signals in the color difference value, but since the processing is the same, only the BY signal is shown.

【0216】[0216]

【表3】 [Table 3]

【0217】図19は、(表3)での処理結果をグラフ
で示したものである。
FIG. 19 is a graph showing the processing result in (Table 3).

【0218】図19において、横軸が画素位置を、縦軸
が各画素の輝度値または色差値を示す。図19(a)
は、原画像の輝度値を表し、図19(b)は、原画像の
輝度値の画素位置に対応する色差値を示している。図1
9(c)は第5の実施例での水平順方向の処理を行った
結果を示し、図19(d)は第5の実施例での水平順方
向の処理の後に水平逆方向の処理を行った結果を示す。
In FIG. 19, the horizontal axis represents a pixel position, and the vertical axis represents a luminance value or a color difference value of each pixel. FIG. 19 (a)
Represents the luminance value of the original image, and FIG. 19B shows the color difference values corresponding to the pixel positions of the luminance value of the original image. FIG.
FIG. 9C shows the result of horizontal forward processing in the fifth embodiment, and FIG. 19D shows horizontal reverse processing after horizontal forward processing in the fifth embodiment. The results obtained are shown.

【0219】図19(c)で水平順方向の片側だけの色
差値のなまりが改善され、図19(d)で、第1の実施
例と同様に、色差値のなまりが改善されている。つま
り、エッジから色差値が連続して増加または減少を続け
る色差値を補正することによって、色にじみが除去さ
れ、画質が大幅に向上していることが判る。
In FIG. 19C, the dullness of the color difference values on only one side in the horizontal forward direction is improved, and in FIG. 19D, as in the first embodiment, the dullness of the color difference values is improved. That is, it can be seen that by correcting the color difference value in which the color difference value continuously increases or decreases from the edge, the color blur is removed, and the image quality is greatly improved.

【0220】図19(e)、(f)は、第6の実施例に
よる処理結果の特性図である。第4の実施例と同様に、
色の変化が不自然に強調されない自然な画質の補正画像
が得られていることが判る。
FIGS. 19E and 19F are characteristic diagrams of processing results according to the sixth embodiment. As in the fourth embodiment,
It can be seen that a corrected image having a natural image quality in which a change in color is not unnaturally emphasized is obtained.

【0221】次に、本発明にかかる第7の実施例におけ
る映像信号補正装置の構成は、図1と同様である。
Next, the configuration of a video signal correction device according to the seventh embodiment of the present invention is the same as that of FIG.

【0222】ここで、6は水平方向に対して補正処理さ
れた色差値が格納された画像メモリ1から垂直方向に連
続する少なくとも3画素の輝度値と色差値を読みだし、
そのうちの1画素を注目画素とし、その注目画素の輝度
値Yhに対して、輝度値の差の絶対値が輝度値YhのY
%(Yは5以上30以下の値)以下である画素を残りの
画素から選択し、注目画素の色差値を選択された画素の
色差値を用いて変更する垂直色差値補正手段である。
Here, 6 reads out the luminance value and the color difference value of at least three pixels continuous in the vertical direction from the image memory 1 in which the color difference value corrected in the horizontal direction is stored,
One of the pixels is regarded as a target pixel, and the absolute value of the difference between the luminance values of the target pixel is the Y value of the luminance value Yh.
% (Y is a value of 5 or more and 30 or less) or less is selected from the remaining pixels, and the color difference value of the target pixel is changed using the color difference value of the selected pixel.

【0223】次に上記実施例の動作について説明する。
ただし、水平方向の処理は上記第1の実施例と同様であ
るので説明を省略する。
Next, the operation of the above embodiment will be described.
However, the processing in the horizontal direction is the same as that in the first embodiment, and the description is omitted.

【0224】いま、水平方向の処理を終了した画像を格
納した画像メモリ1から1つの注目画素と、その注目画
素の上下に位置する画素の合わせて3画素の輝度値を取
り出し、垂直色差値補正手段6により、注目画素の輝度
値Yhを基準として、残りの画素の輝度値との差がY%
(5≦Y≦30)以下である画素を選択し、この選択し
た画素の色差値を用いて注目画素の色差値を補正して出
力する。このようにして、その垂直方向に連続する画素
の色差値の補正を行い、それが完了した時点で画像メモ
リ1に色差値を転送する。
Now, a luminance value of a total of three pixels is taken out from the image memory 1 storing the image for which the horizontal processing has been completed, and one pixel above and below the pixel of interest, and the vertical color difference value correction is performed. Means 6 is that the difference from the luminance value of the remaining pixel is Y% based on the luminance value Yh of the target pixel.
A pixel that satisfies (5 ≦ Y ≦ 30) or less is selected, and the color difference value of the pixel of interest is corrected using the color difference value of the selected pixel and output. In this way, the color difference values of the pixels that are continuous in the vertical direction are corrected, and the color difference values are transferred to the image memory 1 when the correction is completed.

【0225】以上の処理を一画像データ全てに関して行
い、色にじみと色ノイズを低減した処理画像を得ること
ができる。
The above processing is performed for all the image data, and a processed image with reduced color fringing and color noise can be obtained.

【0226】図20は、上記第7の実施例における垂直
色差値補正手段6の処理の流れを示すフローチャートで
あり、以下に詳細な動作について説明する。
FIG. 20 is a flowchart showing the flow of processing of the vertical color difference value correcting means 6 in the seventh embodiment, and the detailed operation will be described below.

【0227】ただし、ここで説明する動作は、垂直方向
の画素数を3画素づつ処理し、垂直方向の処理を複数回
繰り返す場合である。また、ステップ番号が、図10と
同じ番号は処理が同じである。
However, the operation described here is a case where the number of pixels in the vertical direction is processed three by three and the processing in the vertical direction is repeated a plurality of times. Further, when the step numbers are the same as those in FIG. 10, the processing is the same.

【0228】まず、ステップs120では垂直方向の処
理を複数回繰り返すためのカウントを行い、ステップs
121で垂直方向の処理を開始する位置yを設定する。
First, in step s120, counting for repeating the processing in the vertical direction a plurality of times is performed.
At 121, a position y at which processing in the vertical direction is started is set.

【0229】次に、ステップs122で画像メモリの輝
度値を格納したページを設定し、ステップs123で画
素位置y−1,y,y+1の輝度値を画像メモリから順
次垂直方向の3画素を取り出す。
Next, in step s122, a page in which the luminance value of the image memory is stored is set. In step s123, the luminance values at the pixel positions y-1, y, y + 1 are sequentially extracted from the image memory by three pixels in the vertical direction.

【0230】ステップs140では、画素位置yの輝度
値Yhと画素位置yに隣接する上下の画素位置y−1,
y+1の画素の輝度差の絶対値がYhのY%以内の値に
なる画素を上下の画素から選択する。
At step s140, the luminance value Yh at the pixel position y and the upper and lower pixel positions y−1,
A pixel whose absolute value of the luminance difference of the pixel of y + 1 is a value within Y% of Yh is selected from upper and lower pixels.

【0231】ステップs125では、画像メモリ8の色
差値が格納されているページと画像ラインメモリ10
(図2参照)の色差値を一時格納するためのページとを
切り替え、ステップs126で画素位置yの色差値とス
テップs124で選択した画素の色差値との平均値を画
素位置yの色差値として、画像ラインメモリ10に出力
する。このとき、ステップs140で選択される画素が
無い場合は色差値の変更をしない。したがって、画像ラ
インメモリ10には画素位置yの色差値がそのまま記憶
される。
In step s125, the page storing the color difference values in the image memory 8 and the image line memory 10
The page for temporarily storing the color difference value (see FIG. 2) is switched, and the average value of the color difference value of the pixel position y and the color difference value of the pixel selected in step s124 is set as the color difference value of the pixel position y in step s126. , To the image line memory 10. At this time, if there is no pixel selected in step s140, the color difference value is not changed. Therefore, the color difference value at the pixel position y is stored in the image line memory 10 as it is.

【0232】次に、ステップs127で、もう一方の色
差値について処理を行うために、画像メモリ8と画像ラ
インメモリ10のページの切り替え判定を行う。
Next, in step s127, in order to process the other color difference value, it is determined whether the pages of the image memory 8 and the image line memory 10 are switched.

【0233】両方の色差値に対して処理を終えていない
場合はステップs128で、画像メモリ8と画像ライン
メモリ10のページを2にして、前述の処理を繰り返し
て両方の色差値に対する処理を終了し、その後ステップ
s129で垂直方向の処理が終わったかどうか判定す
る。
If the processing has not been completed for both color difference values, in step s128, the pages of the image memory 8 and the image line memory 10 are set to 2, and the above processing is repeated to terminate the processing for both color difference values. Then, in step s129, it is determined whether the processing in the vertical direction has been completed.

【0234】終わっていない場合は、ステップs130
で処理画素位置yを1つ増やして、ステップs122に
処理を戻して以上の処理を繰り返す。
If not over, step s130
Then, the processing pixel position y is increased by one, the processing is returned to step s122, and the above processing is repeated.

【0235】一方、ステップs129で垂直方向の処理
が終了したと判定された場合、ステップs131で画像
ラインメモリ10に格納している補正された色差値を画
像メモリ8の対応する画素位置に転送する。
On the other hand, if it is determined in step s129 that the processing in the vertical direction has been completed, the corrected color difference value stored in the image line memory 10 is transferred to the corresponding pixel position in the image memory 8 in step s131. .

【0236】次に、ステップs132で垂直方向の処理
を予め設定された回数繰り返したか判定し、目的の回数
分処理を繰り返す。ステップs133では、設定回数分
垂直方向の処理が終了した場合、全画像に対して処理が
行われたかどうか判定する。処理が終了していない場合
は、ステップs134で水平方向の処理画素位置を1つ
増やし、ステップs120に戻って処理を繰り返して全
画像に対して処理を行い、全画像に対する色ノイズの低
減を行う。
Next, in step s132, it is determined whether the processing in the vertical direction has been repeated a predetermined number of times, and the processing is repeated for the desired number of times. In step s133, when the processing in the vertical direction has been completed for the set number of times, it is determined whether the processing has been performed on all the images. If the processing has not been completed, the processing pixel position in the horizontal direction is increased by one in step s134, the process returns to step s120, and the processing is repeated to perform processing on all images to reduce color noise on all images. .

【0237】垂直色差値補正手段6におけるY%の設定
において、注目画素の輝度値が小さい場合は、人間の視
覚効果により、色の変化が認識されにくい為、輝度値の
高いところに関しては、隣接画素との差分範囲を広く取
る必要がある。
In the setting of Y% in the vertical color difference value correcting means 6, if the luminance value of the pixel of interest is small, a change in color is difficult to be recognized due to human visual effects. It is necessary to widen the difference range from the pixel.

【0238】そこで、注目画素の輝度値Yhに対して輝
度値の差の絶対値をYhのY%(5%〜30%)の値に
設定している。
Therefore, the absolute value of the difference between the luminance value and the luminance value Yh of the target pixel is set to a value of Y% (5% to 30%) of Yh.

【0239】これは、Y%が5%以下であると、雑音に
より上下の画素を殆ど選択せず、処理効果が薄い。ま
た、輝度値の差が大きいところでは色差値の変化も大き
いところが多いので、Y%が30%より大きくなると、
垂直方向に色にじみを発生させてしまう恐れがあるから
である。
When Y% is 5% or less, almost no upper and lower pixels are selected due to noise, and the processing effect is weak. Also, where the difference in luminance value is large, the change in color difference value is also large in many cases, so if Y% is larger than 30%,
This is because there is a risk of causing color blur in the vertical direction.

【0240】本実施例では、Y%を10%に設定し、注
目画素に隣接する上下画素を用いて合計3画素で処理を
行い、選択した画素の色差値と注目画素の色差値の平均
値を注目画素の新たな色差値として出力している。
In this embodiment, Y% is set to 10%, processing is performed using a total of three pixels using upper and lower pixels adjacent to the target pixel, and the average value of the color difference value of the selected pixel and the color difference value of the target pixel is obtained. Is output as a new color difference value of the pixel of interest.

【0241】また、垂直色差値補正手段6は、本実施例
では、連続する3画素を参照して色差値を補正している
が、3画素以上の奇数画素、例えば5画素、7画素を参
照するようにすることもできる。但し、この場合、少な
くとも輝度値が注目画素の輝度値のY%以内だけでな
く、位置的に連続するような画素群となるように画素を
選ぶ。
In this embodiment, the vertical chrominance value correcting means 6 corrects the chrominance value by referring to three consecutive pixels. However, the vertical chrominance value correcting means 6 refers to an odd number of three or more pixels, for example, five pixels and seven pixels. It can also be done. However, in this case, the pixels are selected so that at least the luminance value is not less than Y% of the luminance value of the pixel of interest and a pixel group that is continuous in position.

【0242】また、垂直方向に連続する画素に対して上
述の処理を複数回行うことを示しているが、1回でもも
ちろん良い。
Although the above-described processing is performed a plurality of times on pixels that are continuous in the vertical direction, the processing may be performed once.

【0243】また、垂直方向の繰り返し回数を3回から
10回に設定すると良い。なぜならば、処理回数は、参
照する画素を全体的に大きくし、より色ノイズを低減す
ることを目的とする。しかし、2回以下にすると、参照
する画素が少なく、色のノイズが低減しにくく、10回
以上にすると参照画素が多くなり、色が全体的に薄くな
ってしまう。そこで本実施例では繰り返し回数を4回に
設定した。
The number of repetitions in the vertical direction is preferably set from 3 to 10. This is because the number of times of processing is to increase the number of pixels to be referred to as a whole and to further reduce color noise. However, if the number is less than two, the number of reference pixels is small, and it is difficult to reduce color noise. Therefore, in this embodiment, the number of repetitions is set to four.

【0244】垂直色差値補正手段6で画像データ全体に
対して前述の色差値補正を行うことにより、色にじみ処
理により若干生じた色ノイズをも低減し、良好な画質の
処理画像を得ることができる。
By performing the above-described color difference value correction on the entire image data by the vertical color difference value correction means 6, color noise slightly generated due to color blurring processing can be reduced, and a processed image of good image quality can be obtained. it can.

【0245】本実施例では、処理した色差値を画像ライ
ンメモリ10に格納し、垂直方向の画素が1ライン分処
理されてから一括して画像メモリ8に転送するが、一時
記憶のバッファを用いて、処理対象となる画素位置の処
理を終えた時点で画像メモリ8に転送しても良い。ここ
では処理を、分かりやすくするために、画像ラインメモ
リ10を用いている。
In this embodiment, the processed chrominance values are stored in the image line memory 10, and the pixels in the vertical direction are processed by one line and then transferred to the image memory 8 at once. Then, the image data may be transferred to the image memory 8 when the processing of the pixel position to be processed is completed. Here, the image line memory 10 is used for easy understanding of the processing.

【0246】図21は、ある画像データに対して本実施
例により処理した実験結果をグラフに示したものであ
り、縦軸が各画素値の輝度値または、色差値を示し、横
軸が水平方向の画素位置を表し、斜め軸方向が垂直方向
の画素位置を表している。
FIG. 21 is a graph showing experimental results obtained by processing certain image data according to the present embodiment. The ordinate indicates the luminance value or the color difference value of each pixel value, and the abscissa indicates the horizontal value. Direction, and the diagonal axis direction indicates the pixel position in the vertical direction.

【0247】図21(a)は、原画像の輝度値を表示し
ている。輝度が一様な値になったところが輝度のエッジ
終点に相当する。
FIG. 21A shows the luminance value of the original image. The point where the luminance becomes a uniform value corresponds to the end point of the luminance.

【0248】図21(b)は、図21(a)に対応する
画素位置の色差値を表示している。輝度値が一様に広が
った部分に対して、色差値はなだらかに値が変化してい
る。このなだらかになった部分が色にじみを生じている
部分である。
FIG. 21B shows color difference values at pixel positions corresponding to FIG. 21A. The color difference value changes gradually in a portion where the luminance value spreads uniformly. This gentle portion is a portion where color blur has occurred.

【0249】図21(c)は、この色にじみの部分を除
去するために、水平方向の色差値の補正処理後の結果で
ある。真ん中の部分で、色にじみとして処理できなかっ
た部分が現れている。これは、色差値が連続して変化す
る領域が輝度値の平滑な領域より大きくなったためであ
る。
FIG. 21 (c) shows the result after the color difference value correction processing in the horizontal direction in order to remove the color fringing portion. In the middle part, a part that could not be processed as color blur appears. This is because the region where the color difference value changes continuously becomes larger than the region where the luminance value is smooth.

【0250】図21(d)は、図21(c)の画像に対
して垂直方向の色差値の補正処理を行った結果を示して
いる。図21(c)において色にじみが除去できなかっ
た部分が除去されている。これは、この周辺の画素は垂
直方向に画素の輝度値が一様に分布しており、色差信号
も同一であると推測されるからであり、色差値が平均化
されることにより除去されなかった色にじみ部分が、周
りの画素に分配されて平滑化されたからである。その結
果、色にじみが除去されて画質が向上すると共に、色差
値の垂直方向へのばらつきも改善されて画質が改善され
る。
FIG. 21D shows the result of performing the correction process of the color difference value in the vertical direction on the image of FIG. 21C. In FIG. 21 (c), the portion where the color blur cannot be removed is removed. This is because the peripheral pixels have a uniform distribution of the luminance values of the pixels in the vertical direction, and it is assumed that the chrominance signals are also the same, and are not removed by averaging the chrominance values. This is because the blurred color portion is distributed to surrounding pixels and smoothed. As a result, the color blur is removed and the image quality is improved, and the variation in the color difference value in the vertical direction is also improved, thereby improving the image quality.

【0251】次に、本発明にかかる第8の実施例の映像
信号処理装置について、図面を参照しながら説明する。
Next, an image signal processing apparatus according to an eighth embodiment of the present invention will be described with reference to the drawings.

【0252】図22は、本発明にかかる第8の実施例に
おける映像信号補正装置の構成を示すブロック図であ
り、同じ番号のものは、図1と同一のものである。12
は、画像メモリ1から読み出された輝度値をローパスフ
ィルタ処理するローパスフィルタ処理手段である。
FIG. 22 is a block diagram showing the configuration of a video signal correction apparatus according to the eighth embodiment of the present invention, in which the same numbers are the same as in FIG. 12
Is a low-pass filter processing unit that performs low-pass filter processing on the luminance value read from the image memory 1.

【0253】以上のような構成において、映像信号処理
は以下のように行われる。
In the above configuration, video signal processing is performed as follows.

【0254】まず、画像メモリ1から水平方向に画像の
輝度値を取り出し、ローパスフィルタ処理手段12によ
り雑音を低減した輝度値を取り出しながら、エッジ始点
検出手段2により輝度値が大きく変化し始めるn1番目
の画素であるエッジ始点と、エッジ終点検出手段3によ
り輝度値の変化が終了するn2番目の画素であるエッジ
終点を各々検出する。
First, the luminance value of the image is taken out from the image memory 1 in the horizontal direction, and the luminance value whose noise has been reduced by the low-pass filter processing means 12 is taken out. The edge start point, which is the pixel of, and the edge end point, which is the n2th pixel at which the change of the luminance value ends, are detected by the edge end point detecting means 3.

【0255】次に画像メモリ1から水平方向に画像の色
差値を取り出しながら、エッジ始点直前またはエッジ終
点直後において色差値が連続して変化している場合は、
エッジ始点部色差値補正手段4とエッジ終点部色差値補
正手段5により、各領域での色差値を変更する。この操
作により画像の水平方向に色にじみを検知しながらでき
るだけにじみ部を除去することができる。
Next, when the color difference value of the image is taken out from the image memory 1 in the horizontal direction and the color difference value is continuously changing immediately before the edge start point or immediately after the edge end point,
The edge start point color difference value correction means 4 and the edge end point color difference value correction means 5 change the color difference value in each area. By this operation, the blur portion can be removed as much as possible while detecting the color blur in the horizontal direction of the image.

【0256】更に、この水平方向の色にじみが低減する
ように補正された色差値に対して、垂直色差値補正手段
6により垂直方向に対する色差値の補正を行なうことに
より、色にじみを更に低減した処理画像を得ることがで
きる。
Further, the color difference value corrected so as to reduce the color blur in the horizontal direction is corrected by the vertical color difference value correcting means 6 in the vertical direction, thereby further reducing the color blur. A processed image can be obtained.

【0257】すなわち、第1の実施例で述べたと同様に
色にじみを低減することができるが、本実施例ではロー
パスフィルタ処理手段12を付加しているので輝度に含
まれる雑音を前もって低減することにより、エッジ検出
や、輝度の平滑領域の検出を容易にしている。
That is, the color blur can be reduced in the same manner as described in the first embodiment. However, in this embodiment, since the low-pass filter processing means 12 is added, the noise included in the luminance can be reduced in advance. Thereby, the edge detection and the detection of the luminance smooth region are facilitated.

【0258】本実施例では、このローパスフィルタ手段
12をメディアンフィルタを用いて説明するが、そのほ
かにも、数画素の平均値を用いる平均化フィルタなどの
一般の平滑フィルタを用いても同様の効果を得ることが
できる。
In this embodiment, the low-pass filter means 12 will be described using a median filter. However, the same effect can be obtained by using a general smoothing filter such as an averaging filter using an average value of several pixels. Can be obtained.

【0259】ローパスフィルタ処理手段12は、近接す
る画素に対する処理として参照されるときに処理される
以前の色差値を参照するようにしなければならないの
で、既に処理された画素の輝度値が画像メモリ1に書き
込みされないように一時的に記憶する機能をも有する。
これは、例えば水平方向の処理結果を一時的に蓄えるラ
インメモリや、水平方向の処理結果を格納する画素位置
が処理範囲内である間保存できる容量を持つ複数のバッ
ファなどで構成することができる。
Since the low-pass filter processing means 12 must refer to the color difference value before being processed when being referred to as the processing for the adjacent pixel, the luminance value of the already processed pixel is stored in the image memory 1. It also has a function of temporarily storing data so that it is not written to the memory.
This can be composed of, for example, a line memory for temporarily storing the processing results in the horizontal direction, and a plurality of buffers having a capacity that can be stored while the pixel position for storing the processing results in the horizontal direction is within the processing range. .

【0260】図23は、上記第8の実施例をマイクロコ
ンピュータで実現した画像データ処理装置の構成例であ
り、図2と同じ番号のものは同一のものである。
FIG. 23 shows an example of the configuration of an image data processing apparatus in which the eighth embodiment is realized by a microcomputer, and those having the same numbers as those in FIG. 2 are the same.

【0261】13は、画像メモリ8から輝度値を水平方
向に1ライン分ローパスフィルタを通過した値を一時記
憶する補助メモリとして用いられる画像ラインメモリ
で、図2の画像ラインメモリ10にローパスフィルタを
通した値を格納するための画像ラインメモリが追加され
ている。
Reference numeral 13 denotes an image line memory which is used as an auxiliary memory for temporarily storing a value obtained by passing one line of the luminance value from the image memory 8 in the horizontal direction through the low-pass filter. The image line memory 10 shown in FIG. An image line memory for storing passed values has been added.

【0262】以上のように構成された映像信号処理装置
について、輝度値に対しては、画像ラインメモリ13か
らアクセスするほかは、エッジ始点検出手段2、エッジ
終点検出手段3、エッジ始点部色差値補正手段4、エッ
ジ終点色差値補正手段5、及び垂直色差値補正手段6の
動作は第1の実施例と同様である。
In the video signal processing apparatus configured as described above, in addition to accessing the luminance value from the image line memory 13, the edge start point detection means 2, the edge end point detection means 3, the edge start point color difference value The operations of the correcting means 4, the edge end point color difference value correcting means 5, and the vertical color difference value correcting means 6 are the same as in the first embodiment.

【0263】(表4)は、原画像の輝度信号と色差信号
に対して、ローパスフィルタ処理を行なった輝度信号の
水平方向における色差値の補正処理による結果の数値デ
ータを示している。本実施例ではTh1=α=β=5で
色差値の補正処理を行なった。各行は画素位置を示し、
A列は画素位置の番号を示し、B列は原画像の輝度値、
C列は原画像の色差値、D列は原画像の輝度値を用い第
1の実施例により色差値の補正を行なったときの色差
値、E列は原画像の輝度値に対してローパスフィルタ処
理を行った後の輝度値、F列はローパスフィルタ処理後
の輝度値を用いて、第1の実施例と同様の処理をした画
像の色差値を示している。G列は、そのときに検出され
た各画素の関係を示している。ただし、色差値にはR−
Y,B−Y信号の2つの信号があるが、処理が同じであ
るので、R−Y信号のみ示すことにする。
Table 4 shows numerical data obtained as a result of correcting the horizontal color difference value of the luminance signal obtained by subjecting the luminance signal and the color difference signal of the original image to low-pass filtering. In the present embodiment, the color difference value is corrected at Th1 = α = β = 5. Each row indicates a pixel position,
Column A shows the number of the pixel position, Column B shows the luminance value of the original image,
Column C is a color difference value of the original image, column D is a color difference value when the color difference value is corrected according to the first embodiment using the luminance value of the original image, and column E is a low-pass filter for the luminance value of the original image. The luminance values after the processing and the F column indicate the color difference values of the image that has been subjected to the same processing as in the first embodiment using the luminance values after the low-pass filter processing. The G column shows the relationship between the pixels detected at that time. However, the color difference value is R-
There are two signals, Y and BY signals, but the processing is the same, so only the RY signal will be shown.

【0264】[0264]

【表4】 [Table 4]

【0265】図24は、(表4)での処理結果をグラフ
に示したものであり、横軸が画素位置を、縦軸が各画素
の輝度値または色差値を示す。
FIG. 24 is a graph showing the result of the processing in (Table 4). The horizontal axis indicates the pixel position, and the vertical axis indicates the luminance value or color difference value of each pixel.

【0266】図24(a)は、原画像の輝度値を示して
おり、図24(b)は、原画像の色差値を表しており、
図24(c)は、原画像の輝度値をもとに第1の実施例
と同じ処理を行なった結果の色差値を示している。図2
4(d)は、原画像の輝度値に対してローパスフィルタ
処理を行った後の輝度値を表している。n1は輝度のエ
ッジ始点を、n2は輝度のエッジ終点を示し、n2+b
は輝度の平滑部の端点を示している。
FIG. 24A shows the luminance values of the original image, and FIG. 24B shows the color difference values of the original image.
FIG. 24C shows the color difference values obtained as a result of performing the same processing as in the first embodiment based on the luminance values of the original image. FIG.
4 (d) shows the luminance value after performing the low-pass filter processing on the luminance value of the original image. n1 indicates a luminance edge start point, n2 indicates a luminance edge end point, and n2 + b
Indicates the end point of the luminance smoothing portion.

【0267】図24(e)は、第8の実施例による色差
値の補正結果の色差値を表しており、k2は色差値の色
にじみ部分の端点を示し、図24(d)を元に第1の実
施例と同じ処理を行なった結果である。
FIG. 24E shows the color difference value as a result of correcting the color difference value according to the eighth embodiment, where k2 indicates the end point of the color fringing portion of the color difference value. This is the result of performing the same processing as in the first embodiment.

【0268】(表4)の原画像の輝度値を用いた場合、
エッジ始点を2画素目に検出し、エッジ終点を5画素目
に検出している。エッジ終点の輝度値が146であるの
で、輝度値の平滑領域の条件は、輝度値が141以上1
51以下の値を持つ連続画素となる。
When the luminance values of the original image in Table 4 are used,
The edge start point is detected at the second pixel, and the edge end point is detected at the fifth pixel. Since the luminance value of the edge end point is 146, the condition of the luminance value smoothing region is that the luminance value is 141 or more and 1
It becomes a continuous pixel having a value of 51 or less.

【0269】エッジ終点n2から条件を満たす平滑領域
は、9画素目で輝度値が140になり、平滑領域を満た
す条件からはずれるので、平滑領域は8画素目までとな
る。
In the smooth region satisfying the condition from the edge end point n2, the luminance value becomes 140 at the ninth pixel, deviating from the condition satisfying the smooth region. Therefore, the smooth region is up to the eighth pixel.

【0270】9画素目の輝度値に注目すると、図24
(a)を見ても明らかなように、1画素だけ平滑領域を
満たす条件からはずれている。この画素は雑音の影響に
よるものであると考えられる。
Looking at the luminance value of the ninth pixel, FIG.
As is clear from (a), the condition deviates from the condition for filling the smooth area by one pixel. This pixel is considered to be due to the influence of noise.

【0271】なぜならば、この付近は、視覚的には一様
な領域と見なせる部分であり、9画素目から垂直方向に
1画素ずらして輝度値を見ても、9画素目と同様な輝度
値を持つ画素がなく、雑音の影響によるものであると判
断できる。
This is because the vicinity is a portion that can be visually regarded as a uniform area. Even if the luminance value is shifted by one pixel in the vertical direction from the ninth pixel, the luminance value is similar to that of the ninth pixel. It can be determined that there is no pixel having, and this is due to the influence of noise.

【0272】色差値を補正するために、エッジ終点から
8画素目までの輝度の平滑領域の範囲で色差値を調べる
と、色差値が増加し続けている状態であり、色差値の変
動が少ない画素を検出することができない。
In order to correct the color difference value, when the color difference value is examined in the range of the luminance smooth region from the edge end point to the eighth pixel, the color difference value continues to increase, and the fluctuation of the color difference value is small. The pixel cannot be detected.

【0273】その結果、図24(c)で示すように、色
差値の補正をせずに図24(b)と同じ色差値を出力し
ている。当然のことながら画質は改善されない。つま
り、輝度に雑音が含まれていたことにより、輝度の平滑
領域が正しく検出できなかったために色差値の補正が出
来なくなっていることがわかる。
As a result, as shown in FIG. 24C, the same color difference values as in FIG. 24B are output without correcting the color difference values. Of course, the image quality is not improved. In other words, it can be seen that since the luminance includes noise, the color difference value cannot be corrected because the luminance smooth region was not correctly detected.

【0274】そこで本実施例では、輝度値にローパスフ
ィルタ処理手段12を通して雑音を低減した後の輝度値
を用いて色差値の補正を行なった。
Therefore, in the present embodiment, the color difference value is corrected by using the luminance value obtained by reducing the noise through the low-pass filter processing means 12 for the luminance value.

【0275】輝度値にローパスフィルタ処理手段12を
通した場合の輝度値を(表4)のE列に示し、その特性
図を図24(d)に示す。原画像の9画素目に存在した
輝度値の雑音が消去され、一様な領域になっている。こ
のとき、ローパスフィルタ処理手段12を通した輝度値
に対して、エッジ始点とエッジ終点の画素位置は原画像
の輝度値の場合と同じである。
The luminance values when the luminance values have passed through the low-pass filter processing means 12 are shown in column E of (Table 4), and the characteristic diagram is shown in FIG. The noise of the luminance value that was present at the ninth pixel of the original image is eliminated, and a uniform area is formed. At this time, with respect to the luminance value passed through the low-pass filter processing means 12, the pixel positions of the edge start point and the edge end point are the same as the case of the luminance value of the original image.

【0276】エッジ終点の輝度値は146で、輝度値の
平滑領域を求める条件は、輝度値が141以上151以
下の値におさまる連続画素である。従ってエッジ終点か
ら15画素目までが、輝度の平滑領域である。つまり、
エッジ終点から15画素目までの原画像の色差値はエッ
ジ終点から連続して色差値が増加し続けているが、11
画素目で色差値の単調増加が終了する画素位置k2を検
出することができる。次に、画素位置k2から15画素
目までの色差値の平均値を用いてエッジ終点からk2ま
での色差値を補正する。その結果が(表4)のF列と図
24(e)である。
The luminance value at the end point of the edge is 146, and the condition for obtaining a smooth region of the luminance value is a continuous pixel whose luminance value falls within a range of 141 to 151. Therefore, the 15th pixel from the edge end point is a luminance smooth region. That is,
The color difference values of the original image from the edge end point to the fifteenth pixel are continuously increasing from the edge end point.
The pixel position k2 where the monotone increase of the color difference value ends at the pixel can be detected. Next, the color difference value from the edge end point to k2 is corrected using the average value of the color difference values from the pixel position k2 to the fifteenth pixel. The results are shown in column F of (Table 4) and FIG. 24 (e).

【0277】一方、ローパスフィルタ処理手段12を通
さなかった場合は、色差値の変更がなく、色にじみが残
されたままになっていたが、原画像の輝度値にローパス
フィルタ処理手段12を通すことによって、色にじみを
低減し、画質を改善することができる。この後、垂直色
差値補正手段6による処理を実行することにより、前述
の第1の実施例よりも更に画質が改善される。
On the other hand, when the light did not pass through the low-pass filter processing means 12, the color difference value was not changed and the color blur remained, but the luminance value of the original image was passed through the low-pass filter processing means 12. This can reduce color blur and improve image quality. Thereafter, by executing the processing by the vertical color difference value correcting means 6, the image quality is further improved as compared with the first embodiment.

【0278】なお、上記の各実施例では、格納手段とし
て画像メモリを用いたが、これに限らず、例えば磁気デ
ィスク、光ディスク、外部RAMなど他の記憶手段を用
いても勿論よい。
In each of the above embodiments, the image memory is used as the storage means. However, the present invention is not limited to this. Of course, other storage means such as a magnetic disk, an optical disk, and an external RAM may be used.

【0279】また、上記の各実施例では、映像信号を輝
度信号と色差信号R−Y,B−Yとしたが、これに限ら
ず、映像信号は画像が輝度信号と色差信号から構成され
たものであればよく、例えばPAL信号の場合は伝送さ
れた色差信号R−Y、B−Yが画像データ記憶手段に記
憶され、又、NTSC信号の場合は伝送された色差信号
I、Qが色差信号R−Y、B−Yに変換された後に画像
データ記憶手段に記憶されるように構成することができ
る。更に、画像信号がRGB信号からなる場合は、輝度
信号と色差信号に変換した後に本発明による色差値補正
を行い、その後にRGB信号に再変換して出力するよう
にしてもよい。
In each of the above embodiments, the video signal is a luminance signal and color difference signals RY and BY. However, the present invention is not limited to this, and the video signal is composed of a luminance signal and a color difference signal. For example, in the case of the PAL signal, the transmitted color difference signals RY and BY are stored in the image data storage means, and in the case of the NTSC signal, the transmitted color difference signals I and Q are stored in the color difference signal. After being converted into signals RY and BY, the signals can be stored in the image data storage means. Further, when the image signal is composed of an RGB signal, the image signal may be converted into a luminance signal and a color difference signal, then subjected to the color difference value correction according to the present invention, and then converted into an RGB signal and output.

【0280】また、上記の各実施例では、色差信号R−
Y,B−Yのどちらも補正する構成としたが、これに限
らず、静止画での色にじみが特に目立つ色差信号R−Y
だけを補正する構成としてももちろんよい。この場合、
処理時間が半減され、より早く処理結果を出力できるの
で映像信号を連続して入力しながら記憶する場合などに
特に有効である。
In each of the above embodiments, the color difference signal R-
Although the configuration is such that both Y and BY are corrected, the present invention is not limited to this, and the color difference signal RY in which color blur in a still image is particularly conspicuous.
Of course, it is also possible to adopt a configuration in which only the correction is made. in this case,
Since the processing time is reduced by half and the processing result can be output faster, it is particularly effective when the video signal is continuously input and stored.

【0281】また、上記の各実施例では、色差値変化領
域内の全部の画素の色差値を補正するようにしたが、こ
れに限らず、その一部を補正するようにしてもよい。
In each of the above embodiments, the color difference values of all the pixels in the color difference value change area are corrected. However, the present invention is not limited to this, and a part of them may be corrected.

【0282】また、上記の各実施例では、エッジ始点側
とエッジ終点側の両方において色差値の補正を行う構成
としたが、これに限らず、どちらか一方のみを補正する
構成としてもよい。
In each of the above embodiments, the color difference value is corrected on both the edge start point side and the edge end point side. However, the present invention is not limited to this, and only one of them may be corrected.

【0283】また、第8の実施例では、常時ローパスフ
ィルタ処理を行う構成としたが、これに限らず、例えば
輝度値の平滑領域内で色差値の補正ができなかった場合
についてのみ、ローパスフィルタ処理を実行し、再度色
差値の補正を行う構成としてもよい。
In the eighth embodiment, the low-pass filter processing is always performed. However, the present invention is not limited to this. For example, the low-pass filter processing is performed only when the color difference value cannot be corrected in the luminance value smooth region. The configuration may be such that the processing is executed and the color difference value is corrected again.

【0284】[0284]

【発明の効果】以上述べたところから明らかなように本
発明は、画像の色のにじみの補正程度を向上でき、補正
時の画質劣化を抑制できるという長所を有する。
As is apparent from the above description, the present invention has an advantage that the degree of correction of color bleeding of an image can be improved and image quality deterioration at the time of correction can be suppressed.

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

【図1】本発明にかかる第1の実施例の映像信号補正装
置のブロック図である。
FIG. 1 is a block diagram of a video signal correction device according to a first embodiment of the present invention.

【図2】同実施例の映像信号補正装置をマイクロコンピ
ュータにより実現したときの構成図である。
FIG. 2 is a configuration diagram when the video signal correction device of the embodiment is realized by a microcomputer.

【図3】同実施例における画像メモリの画素位置を説明
する図である。
FIG. 3 is a diagram illustrating pixel positions of an image memory according to the embodiment.

【図4】同実施例における動作を説明するための全体の
流れ図である。
FIG. 4 is an overall flowchart for explaining an operation in the embodiment.

【図5】同実施例の画像の水平方向における色差値を補
正する動作を説明するための全体の流れ図である。
FIG. 5 is an overall flowchart for explaining an operation of correcting a color difference value in a horizontal direction of an image according to the embodiment.

【図6】同実施例のエッジ始点を検出するための流れ図
である。
FIG. 6 is a flowchart for detecting an edge start point in the embodiment.

【図7】同実施例のエッジ終点を検出するための流れ図
である。
FIG. 7 is a flowchart for detecting an edge end point in the embodiment.

【図8】同実施例のエッジ始点から色差値を補正する処
理の流れ図である。
FIG. 8 is a flowchart of a process for correcting a color difference value from an edge start point in the embodiment.

【図9】同実施例のエッジ終点から色差値を補正する処
理の流れ図である。
FIG. 9 is a flowchart of a process for correcting a color difference value from an edge end point in the embodiment.

【図10】同実施例の画像の垂直方向における色差値を
補正する処理の流れ図である。
FIG. 10 is a flowchart of a process for correcting a color difference value in a vertical direction of an image according to the embodiment.

【図11】同図(a)は、原画像の水平方向の1ライン
見たときの輝度値の特性図、同図(b)は、原画像の
(a)に対応する画素の色差値の特性図、同図(c)
は、同実施例における色差値を補正したときの特性図、
同図(d)は第2の実施例における色差値を単調増加に
なるように補正した色差値の特性図である。
11A is a characteristic diagram of a luminance value when one line in the horizontal direction of the original image is viewed, and FIG. 11B is a diagram illustrating a color difference value of a pixel corresponding to (a) of the original image. Characteristic diagram, FIG.
Is a characteristic diagram when the color difference value in the embodiment is corrected,
FIG. 14D is a characteristic diagram of the color difference values in the second embodiment, which are corrected so that the color difference values are monotonically increased.

【図12】同図(a)は、原画像の輝度値の特性図、同
図(b)は、原画像の(a)に対応する色差値の特性
図、同図(c)は、水平方向の補正を行った色差値の特
性図、同図(d)は、水平方向の補正を行った後、垂直
方向の補正を行った色差値の特性図である。
12A is a characteristic diagram of luminance values of an original image, FIG. 12B is a characteristic diagram of color difference values corresponding to FIG. 12A of the original image, and FIG. FIG. 4D is a characteristic diagram of the color difference values obtained by performing the correction in the horizontal direction and then performing the correction in the vertical direction after performing the correction in the horizontal direction.

【図13】本発明にかかる第3の実施例の映像信号補正
装置のブロック図である。
FIG. 13 is a block diagram of a video signal correction device according to a third embodiment of the present invention.

【図14】同実施例における画像メモリの画素位置と方
向を説明する図である。
FIG. 14 is a diagram illustrating pixel positions and directions of an image memory according to the same embodiment.

【図15】同実施例の画像の水平方向における色差値を
補正する動作を説明するための全体の流れ図である。
FIG. 15 is an overall flowchart for explaining an operation of correcting a color difference value of an image in a horizontal direction according to the embodiment.

【図16】同図(a)は、原画像の輝度値の特性図、同
図(b)は、原画像の色差値の特性図、同図(c)は、
第3の実施例における水平順方向に補正した後の色差値
の特性図、同図(d)は、第3の実施例における水平逆
方向に補正した後の色差値の特性図、同図(e)は、第
4の実施例における水平順方向に補正した後の色差値の
特性図、同図(f)は、第4の実施例における水平逆方
向に補正した後の色差値の特性図である。
16A is a characteristic diagram of a luminance value of an original image, FIG. 16B is a characteristic diagram of a color difference value of the original image, and FIG.
FIG. 13D is a characteristic diagram of the color difference values after the correction in the horizontal forward direction according to the third embodiment, and FIG. 14D is a characteristic diagram of the color difference values after the correction in the horizontal reverse direction according to the third embodiment; FIG. 11E is a characteristic diagram of the color difference value after the correction in the horizontal forward direction in the fourth embodiment, and FIG. 11F is a characteristic diagram of the color difference value after the correction in the horizontal reverse direction in the fourth embodiment. It is.

【図17】本発明にかかる第5の実施例の映像信号補正
装置のブロック図である。
FIG. 17 is a block diagram of a video signal correction device according to a fifth embodiment of the present invention.

【図18】同実施例の画像の水平方向における色差値を
補正する動作を説明するための全体の流れ図である。
FIG. 18 is an overall flowchart illustrating an operation of correcting a color difference value of an image in a horizontal direction according to the embodiment.

【図19】同図(a)は、原画像の輝度値の特性図、同
図(b)は、原画像の色差値の特性図、同図(c)は、
第5の実施例における水平順方向に補正した後の色差値
の特性図、同図(d)は、第5の実施例における水平逆
方向に補正した後の色差値の特性図、同図(e)は、第
6の実施例における水平順方向に補正した後の色差値の
特性図、同図(f)は、第6の実施例における水平逆方
向に補正した後の色差値の特性図である。
19A is a characteristic diagram of a luminance value of an original image, FIG. 19B is a characteristic diagram of a color difference value of the original image, and FIG.
FIG. 14D is a characteristic diagram of color difference values after correction in the horizontal forward direction according to the fifth embodiment. FIG. 14D is a characteristic diagram of color difference values after correction in the horizontal reverse direction according to the fifth embodiment. FIG. 11E is a characteristic diagram of color difference values after correction in the horizontal forward direction in the sixth embodiment, and FIG. 11F is a characteristic diagram of color difference values after correction in the horizontal reverse direction in the sixth embodiment. It is.

【図20】第7の実施例における垂直方向に色差値の補
正処理を行う流れ図である。
FIG. 20 is a flowchart illustrating a process of correcting a color difference value in the vertical direction according to the seventh embodiment.

【図21】同図(a)は原画像の輝度値の特性図、同図
(b)は、原画像の(a)に対応する色差値の特性図、
同図(c)は、水平方向に対する処理を行ったときの色
差値の特性図、同図(d)は、第7の実施例を用いて水
平方向の補正を行った後、垂直方向に、色差値の補正を
行ったときの色差値の特性図である。
21A is a characteristic diagram of luminance values of an original image, FIG. 21B is a characteristic diagram of color difference values corresponding to FIG. 21A of the original image,
FIG. 13C is a characteristic diagram of the color difference value when the processing in the horizontal direction is performed, and FIG. 14D is a diagram in which the horizontal direction is corrected using the seventh embodiment, FIG. 9 is a characteristic diagram of a color difference value when the color difference value is corrected.

【図22】本発明にかかる第8の実施例の映像信号補正
装置のブロック図である。
FIG. 22 is a block diagram of a video signal correction device according to an eighth embodiment of the present invention.

【図23】同実施例の映像信号補正装置をマイクロコン
ピュータにより実現したときの構成図である。
FIG. 23 is a configuration diagram when the video signal correction device of the embodiment is realized by a microcomputer.

【図24】同図(a)は、原画像の輝度値の特性図、同
図(b)は、原画像の色差値の特性図、同図(c)は、
第1の実施例における水平方向に補正した後の色差値の
特性図、同図(d)は、第8の実施例により原画像の輝
度値に対してローパスフィルタ処理を行った後の輝度値
の特性図、同図(e)は、第8の実施例によりローパス
フィルタ処理後の輝度値に基づき、水平方向の補正を行
った後の色差値の特性図である。
24A is a characteristic diagram of luminance values of an original image, FIG. 24B is a characteristic diagram of color difference values of the original image, and FIG.
FIG. 14D is a characteristic diagram of color difference values after correction in the horizontal direction in the first embodiment. FIG. 14D shows luminance values after low-pass filtering is performed on the luminance values of the original image according to the eighth embodiment. FIG. 19E is a characteristic diagram of the color difference values after performing the horizontal correction based on the luminance values after the low-pass filter processing according to the eighth embodiment.

【図25】第1の実施例の画像の水平方向のエッジ始点
部における色差値を補正する処理の流れ図である。
FIG. 25 is a flowchart of a process of correcting a color difference value at a horizontal edge start point of an image according to the first embodiment.

【図26】第1の実施例の画像の水平方向のエッジ始点
部における色差値を補正する処理の流れ図である。
FIG. 26 is a flowchart of a process of correcting a color difference value at a horizontal edge start point of an image according to the first embodiment.

【図27】第1の実施例の画像の水平方向のエッジ終点
部における色差値を補正する処理の流れ図である。
FIG. 27 is a flowchart of a process of correcting a color difference value at an edge end point in the horizontal direction of an image according to the first embodiment.

【図28】第1の実施例の画像の水平方向のエッジ終点
部における色差値を補正する処理の流れ図である。
FIG. 28 is a flowchart of a process of correcting a color difference value at a horizontal edge end point of an image according to the first embodiment.

【図29】従来の映像信号補正装置のブロック図であ
る。
FIG. 29 is a block diagram of a conventional video signal correction device.

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

1、8 画像メモリ 2 エッジ始点検出手段 3 エッジ終点検出手段 4 エッジ始点部色差値補正手段 5 エッジ終点部色差値補正手段 6 垂直色差値補正手段 9 マイクロコンピュータ 10、13 画像ラインメモリ 11 アクセス方向切り換え器 12 ローパスフィルタ処理手段 103 輪郭補正回路 1, 8 Image memory 2 Edge start point detection means 3 Edge end point detection means 4 Edge start point color difference value correction means 5 Edge end point color difference value correction means 6 Vertical color difference value correction means 9 Microcomputer 10, 13 Image line memory 11 Access direction switching Device 12 low-pass filter processing means 103 contour correction circuit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 9/43 - 11/22 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 9/43-11/22

Claims (20)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画像の各画素の輝度値及び色差値を格納
する格納手段と、 その格納された輝度値から生成された輝度信号を入力
し、その画像の所定方向における前記輝度値が所定値以
上増加または減少する輝度変化領域の少なくとも一端部
の画素の位置を検出する輝度変化位置検出手段と、 その検出された端部の画素の位置から前記輝度変化領域
の外側に向かって、前記輝度値の変化が所定輝度値以下
の輝度安定領域を検出する輝度安定領域検出手段と、 その検出された輝度安定領域内であって、前記画像の所
定方向における前記色差値が所定値以上増加または減少
する色差値変化領域を検出し、その検出された色差値変
化領域内の前記格納手段に格納された少なくとも一部の
色差値を前記色差値変化領域外の色差値の変動の少ない
色差値安定領域の色差値を用いて、補正する色差値補正
手段と、 その色差値が補正された画像の前記所定方向と垂直な方
向に連続する、輝度値が所定値の範囲内にはいる、複数
個の画素を選択し、それらの画素の色差値をならす垂直
色差値補正手段とを備えたことを特徴とする映像信号補
正装置。
1. A storage unit for storing a luminance value and a color difference value of each pixel of an image, and a luminance signal generated from the stored luminance value is input, and the luminance value in a predetermined direction of the image is a predetermined value. A brightness change position detecting means for detecting a position of a pixel at at least one end of the brightness change region that increases or decreases; and the brightness value from the detected position of the pixel at the end toward the outside of the brightness change region. A stable brightness region detecting means for detecting a stable brightness region in which the change of the brightness is equal to or less than a predetermined brightness value; and wherein the color difference value in the detected brightness stable region in a predetermined direction of the image increases or decreases by a predetermined value or more. A color difference value change area is detected, and at least a part of the color difference values stored in the storage means in the detected color difference value change area is converted to a color difference value with a small change in the color difference value outside the color difference value change area. A color difference value correction unit that corrects the color difference value using the color difference value of the fixed area, a plurality of the color difference values that are continuous in a direction perpendicular to the predetermined direction of the corrected image, the luminance value is within a predetermined value range, A video signal correction device comprising: a vertical color difference value correcting unit that selects a plurality of pixels and smoothes the color difference values of those pixels.
【請求項2】 垂直色差値補正手段は、前記格納手段か
ら前記所定方向に対して垂直に連続する少なくとも3画
素以上の輝度値と色差値を読み出し、注目画素の輝度値
Yhに対して、Yh−δ以上Yh+δ以下の条件を満た
す前記注目画素に前記所定方向に対して垂直に連続する
上下画素を選択し、前記注目画素の色差値を、前記選択
した画素の色差値を用いて変更することを特徴とする請
求項1記載の映像信号補正装置。
2. The vertical chrominance value correction means reads out luminance values and chrominance values of at least three pixels continuous from the storage means perpendicular to the predetermined direction. Selecting upper and lower pixels that are perpendicular to the predetermined direction with respect to the target pixel satisfying a condition of −δ or more and Yh + δ or less, and changing a color difference value of the target pixel using the color difference value of the selected pixel; The video signal correction device according to claim 1, wherein:
【請求項3】 垂直色差値補正手段は、前記所定方向に
補正した色差値を有する画像が格納された格納手段から
前記所定方向に対して垂直方向に連続する少なくとも3
画素以上の輝度値と色差値を読み出し、注目画素の輝度
値Yhに対して、輝度値の差の絶対値が前記YhのY%
(5≦Y≦30)以下である前記注目画素の垂直方向に
連続する上下画素を選択し、前記注目画素の色差値を前
記選択した画素の色差値を用いて変更することを特徴と
する請求項1記載の映像信号補正装置。
3. A vertical color difference value correcting means, comprising: at least three consecutive vertical color difference values from a storage means in which an image having a color difference value corrected in the predetermined direction is stored.
The luminance value and the color difference value of the pixel or more are read, and the absolute value of the difference between the luminance values is Y% of Yh with respect to the luminance value Yh of the target pixel.
The method further comprises selecting upper and lower pixels that are not more than (5 ≦ Y ≦ 30) in the vertical direction of the pixel of interest and changing the color difference value of the pixel of interest using the color difference value of the selected pixel. Item 3. The video signal correction device according to Item 1.
【請求項4】 格納手段から画像の前記所定方向に連続
する画素の輝度値を順次取り出し、取りだした輝度値に
対してローパスフィルタを通すローパスフィルタ処理手
段を更に備え、前記輝度変化位置検出手段は、前記ロー
パスフィルタ処理手段により処理された輝度値を用いる
ことを特徴とする請求項1記載の映像信号補正装置。
4. The image processing apparatus further comprises low-pass filter processing means for sequentially taking out luminance values of pixels continuous in the predetermined direction of the image from the storage means and passing the taken-out luminance values through a low-pass filter, wherein the luminance change position detecting means comprises: 2. The video signal correction device according to claim 1, wherein a luminance value processed by said low-pass filter processing means is used.
【請求項5】 色差値補正手段は、前記輝度変化領域か
ら数画素おいて連続する色差値安定領域での色差値の代
表値C1を用いて色差値を変更することを特徴とする請
求項1記載の映像信号補正装置。
5. The color difference value correcting means according to claim 1, wherein the color difference value is changed using a representative value C1 of the color difference values in a continuous color difference value stable region several pixels from the luminance change region. The video signal correction device according to the above.
【請求項6】 垂直色差値補正手段は、注目画素に対し
て画像の垂直方向に連続する上下2画素を参照すること
を特徴とする請求項1記載の映像信号補正装置。
6. The video signal correction apparatus according to claim 1, wherein the vertical chrominance value correction unit refers to upper and lower two pixels that are continuous in a vertical direction of the image with respect to the target pixel.
【請求項7】 輝度変化位置検出手段は、前記格納手段
から前記所定方向に連続する画素の輝度値を順次取り出
し、輝度値が所定値以上増加または減少しはじめるn1
番目の画素をエッジ始点として検出するエッジ始点検出
手段と、前記エッジ始点から連続して輝度値が所定値以
上増加または減少が終わるn2(≧n1+2)番目の画
素をエッジ終点とするエッジ終点検出手段とを有するこ
とを特徴とする請求項1記載の映像信号補正装置。
7. The luminance change position detecting means sequentially retrieves the luminance values of the pixels consecutive in the predetermined direction from the storage means, and calculates n1 at which the luminance value starts to increase or decrease by a predetermined value or more.
Edge start point detection means for detecting a pixel as an edge start point, and edge end point detection means for setting an n2 (≧ n1 + 2) th pixel as an edge end point in which the luminance value continuously increases or decreases by a predetermined value or more from the edge start point 2. The video signal correction device according to claim 1, comprising:
【請求項8】 色差値補正手段は、前記輝度安定領域内
のn1−a(<n1)番目の画素から前記エッジ始点ま
での各画素に対応する色差値を順次取り出し、k1(>
n1−a,≦n1−2)番目の画素から前記エッジ始点
まで2画素以上色差値が連続して所定値以上増加または
減少する画素の色差値の少なくとも一部を変更するエッ
ジ始点部色差値補正手段と、 前記エッジ終点の画素から前記輝度値安定領域内のn2
+b(>n2)番目までの各画素に対応する色差値を順
次取り出し、前記エッジ終点からk2(≧n2+2,<
n2+b)番目の画素まで2画素以上色差値が連続して
所定値以上増加または減少する画素の色差値の少なくと
も一部を変更するエッジ終点部色差値補正手段とを有す
ることを特徴とする請求項7記載の映像信号補正装置。
8. The color difference value correction means sequentially extracts color difference values corresponding to pixels from the (n1-a) th (<n1) th pixel to the edge start point in the luminance stable area, and calculates k1 (>
Edge start point color difference value correction for changing at least a part of the color difference value of a pixel whose color difference value continuously increases or decreases by a predetermined value or more from the (n1-a, ≤n1-2) th pixel to the edge start point. Means, and n2 in the luminance value stable area from the pixel at the edge end point.
The color difference values corresponding to each pixel up to + b (> n2) are sequentially extracted, and k2 (≧ n2 + 2, <
An edge end point color difference value correcting means for changing at least a part of the color difference value of a pixel whose color difference value continuously increases or decreases by two or more pixels up to an (n2 + b) th pixel. 8. The video signal correction device according to 7.
【請求項9】 色差値補正手段は、輝度安定領域内の前
記エッジ終点の画素から前記n2+b(>n2)番目の
画素までの各画素に対応する色差値を順次取り出し、前
記エッジ終点からk2(≧n2+2,<n2+b)番目
の画素まで2画素以上色差値が連続して所定値以上増加
または減少する画素の色差値の少なくとも一部を変更す
るエッジ終点部色差値補正手段であって、 前記色差値の変更は、画像の前記所定方向に連続する画
素の輝度値と色差値を順次取り出しながら色差値を補正
した後に、この補正された画像の前記所定方向とは逆方
向に連続する画素の輝度値と色差値を取り出しながら再
度色差値を補正することにより行われることを特徴とす
る請求項7記載の映像信号補正装置。
9. A chrominance value correction unit sequentially extracts chrominance values corresponding to pixels from the pixel at the edge end point to the n2 + b (> n2) th pixel in the luminance stable area, and obtains k2 ( ≧ n2 + 2, <n2 + b) edge end point color difference value correction means for changing at least a part of the color difference value of a pixel whose color difference value continuously increases or decreases by a predetermined value or more up to two or more pixels up to the (n) + th pixel; The value change is performed by correcting the color difference value while sequentially taking out the luminance value and the color difference value of the pixel continuous in the predetermined direction of the image, and then adjusting the luminance of the pixel continuous in the direction opposite to the predetermined direction of the corrected image. The video signal correction apparatus according to claim 7, wherein the correction is performed by re-correcting the color difference value while extracting the value and the color difference value.
【請求項10】 輝度変化位置検出手段は、前記格納手
段から前記画像の所定方向に連続する画素の輝度値を順
次取り出し、2画素以上輝度値が連続して所定値以上増
加または減少し始めるn1番目の画素をエッジ始点とす
るエッジ始点検出手段であり、 前記色差値補正手段は、n1−a(<n1)番目の輝度
安定領域内の画素から前記エッジ始点までの各画素に対
応する色差値を順次取り出し、k1(>n1−a,≦n
1−2)番目の画素から前記エッジ始点まで2画素以上
色差値が連続して所定値以上増加または減少する画素の
色差値の少なくとも一部を変更するエッジ始点部色差値
補正手段であって、 前記色差値の変更は、前記画像の所定方向に連続する画
素の輝度値と色差値を順次取り出しながら色差値を補正
した後に、この補正された画像の前記所定方向とは逆方
向に連続する画素の輝度値と色差値を取り出しながら再
度色差値を補正することにより行われることを特徴とす
る請求項1記載の映像信号補正装置。
10. A luminance change position detecting means sequentially retrieves luminance values of pixels continuous in a predetermined direction of the image from the storage means, and two or more pixels successively start increasing or decreasing the luminance value by a predetermined value or more. An edge start point detection unit having an edge start point of the ith pixel, wherein the chrominance value correction unit includes a chrominance value corresponding to each pixel from a pixel in an n1-a (<n1) th luminance stable area to the edge start point. Are sequentially extracted and k1 (> n1-a, ≤n
1-2) an edge start point color difference value correction unit that changes at least a part of the color difference values of pixels whose color difference values continuously increase or decrease by a predetermined value or more from the second pixel to the edge start point by two or more pixels, The change of the chrominance value is performed by correcting the chrominance value while sequentially extracting the luminance value and the chrominance value of the pixel continuous in a predetermined direction of the image, and then correcting the pixel of the corrected image in the direction opposite to the predetermined direction. 2. The video signal correction device according to claim 1, wherein the correction is performed by re-correcting the color difference value while extracting the luminance value and the color difference value.
【請求項11】 エッジ始点部色差値補正手段は、前記
色差値安定領域の各画素の色差値の代表値C1を用いて
色差値を変更することを特徴とする請求項8、又は10
記載の映像信号補正装置。
11. The color difference value correcting means for changing a color difference value using a representative value C1 of a color difference value of each pixel in the color difference value stable area.
The video signal correction device according to the above.
【請求項12】 エッジ終点部色差値補正手段は、前記
色差値安定領域の各画素の色差値の代表値C2を用いて
色差値を変更することを特徴とする請求項8、又は9記
載の映像信号補正装置。
12. The color difference value correction device according to claim 8, wherein the edge end point color difference value correction means changes the color difference value using a representative value C2 of the color difference value of each pixel in the color difference value stable area. Video signal correction device.
【請求項13】 エッジ始点部色差値補正手段は、色差
値の変動が少ないk1〜k1−c(≧n1−a)番目の
色差値安定領域の各画素の色差値の代表値C1で、少な
くともk1番目の画素から前記エッジ始点までの間の各
画素の色差値を変更することを特徴とする請求項8、又
は10記載の映像信号補正装置。
13. The color difference value correcting means for an edge start point includes at least a representative value C1 of the color difference values of the respective pixels in the k1 to k1-c (≧ n1-a) th color difference value stable areas in which the change in the color difference values is small. 11. The video signal correction device according to claim 8, wherein a color difference value of each pixel from a k1st pixel to the edge start point is changed.
【請求項14】 エッジ始点部色差値補正手段は、色差
値の変動が少ないk1〜k1−c(≧n1−a)番目の
色差値安定領域内の各画素の色差値の代表値C1を用い
て、k1番目の画素からn1−e(<n1,>k1)番
目の画素までの間の色差値を変更すると共に、前記n1
−e番目の画素から前記エッジ始点までの画素の色差値
を、前記エッジ始点の色差値から前記代表値C1まで連
続して単調増加または単調減少させた値に変更すること
を特徴とする請求項8、又は10記載の映像信号補正装
置。
14. An edge start point color difference value correction means uses a representative value C1 of color difference values of each pixel in a k1 to k1-c (≧ n1-a) th color difference value stable region with little change in color difference value. To change the color difference value between the k1st pixel and the n1-e (<n1,> k1) th pixel,
-The color difference value of a pixel from the e-th pixel to the edge start point is changed from the color difference value of the edge start point to the representative value C1 to a continuously increased or decreased value. 11. The video signal correction device according to 8 or 10.
【請求項15】 エッジ終点部色差値補正手段は、色差
値の変動が少ないk2〜k2+d(≦n2+b)番目の
色差値安定領域の各画素の色差値の代表値C2を用い
て、少なくとも前記エッジ終点からk2番目の画素まで
の間の画素の色差値を変更することを特徴とする請求項
8、又は9記載の映像信号補正装置。
15. The edge end point color difference value correction means uses a representative value C2 of a color difference value of each pixel in a k2 to k2 + d (≦ n2 + b) -th color difference value stable area having a small change in the color difference value to at least the edge. 10. The video signal correction device according to claim 8, wherein a color difference value of a pixel from an end point to a k2th pixel is changed.
【請求項16】 エッジ終点部色差値補正手段は、色差
値の変動が少ないk2〜k2+d(≦n2+b)番目の
色差値安定領域内の各画素の色差値の代表値C2を用い
て、k2番目の画素からn2+e(>n2,<k2)番
目の画素までの間の色差値を変更すると共に、n2+e
番目の画素から前記エッジ終点までの画素の色差値を、
前記エッジ終点の色差値から前記代表値C2まで連続し
て単調増加または単調減少させた値に変更することを特
徴とする請求項8、又は9記載の映像信号補正装置。
16. The edge end point color difference value correction means uses the representative value C2 of the color difference value of each pixel in the k2 to k2 + d (≦ n2 + b) th color difference value stable regions with little change in the color difference value, and calculates the k2th color difference value. And the color difference value between the pixel of nth and the n2 + e (> n2, <k2) th pixel is changed, and
The color difference value of the pixel from the pixel to the end point of the edge,
10. The video signal correction device according to claim 8, wherein the color difference value at the edge end point is changed to a value that is monotonically increased or monotonously decreased from the representative value C2.
【請求項17】 色差値補正手段は、色差値の変動が少
ないk1〜k1−c(≧n1−a)番目の色差値安定領
域内の各画素の色差値の代表値C1を用いて、k1番目
の画素から前記エッジ始点までの間の各画素の色差値を
変更するエッジ始点部色差値補正手段と、 色差値の変動が少ないk2〜k2+d(≦n2+b)番
目の色差値安定領域内の各画素の色差値の代表値C2を
用いて、前記エッジ終点からk2番目の画素までの間の
画素の色差値を変更するエッジ終点部色差値補正手段
と、 前記エッジ始点からエッジ終点までの色差値を代表値C
1から代表値C2まで連続して単調増加または単調減少
させた値に変更する輝度変化部色差値補正手段とを有す
ることを特徴とする請求項7記載の映像信号補正装置。
17. The chrominance value correction means uses the representative value C1 of the chrominance value of each pixel in the k1 to k1-c (≧ n1-a) th chrominance value stable area with little variation in chrominance value to calculate k1 An edge start point color difference value correction means for changing the color difference value of each pixel from the pixel to the edge start point; and a k2 to k2 + d (≦ n2 + b) th color difference value stable area with little change in the color difference value. Edge end point color difference value correction means for changing the color difference value of the pixel from the edge end point to the k2th pixel using the representative value C2 of the pixel color difference value; and the color difference value from the edge start point to the edge end point. Is the representative value C
8. The video signal correction apparatus according to claim 7, further comprising: a luminance-change-portion color difference value correction unit that continuously changes from 1 to a representative value C2 to a monotonically increasing or monotonically decreasing value.
【請求項18】 画像の各画素の輝度値及び色差値を格
納する格納手段と、 この格納手段から前記画像の所定方向に連続する画素の
輝度値を順次取り出し、2画素以上輝度値が連続して増
加または減少し始めるn1番目の画素をエッジ始点とし
て検出するエッジ始点検出手段と、 前記エッジ始点から連続した輝度値の増加あるいは減少
が終わるn2(≧n1+2)番目の画素をエッジ終点と
するエッジ終点検出手段と、 輝度値の変動が少ないn1−a(<n1)番目の画素か
ら前記エッジ始点までの輝度安定領域の各画素に対応す
る色差値を順次取り出し、k1(>n1−a,≦n1−
2)番目の画素から前記エッジ始点まで2画素以上色差
値が連続して増加または減少する画素の色差値の少なく
とも一部を変更するエッジ始点部色差値補正手段と、 輝度安定領域内の前記エッジ終点の画素から前記n2+
b(>n2)番目の画素までの各画素に対応する色差値
を順次取り出し、前記エッジ終点からk2(≧n2+
2,<n2+b)番目の画素まで2画素以上色差値が連
続して増加または減少する画素の色差値の少なくとも一
部を変更するエッジ終点部色差値補正手段と、 前記補正された色差値を有する画像が格納された前記格
納手段から、前記所定方向に対して垂直方向に連続する
少なくとも3画素以上の輝度値と色差値を読み出し、注
目画素の輝度値の所定値範囲内に治まる前記注目画素の
前記垂直方向に連続する上下画素を選択し、前記注目画
素の色差値を、前記選択した画素の色差値を用いて変更
する垂直色差値補正手段とを備えたことを特徴とする映
像信号補正装置。
18. A storage means for storing a luminance value and a chrominance value of each pixel of an image, and sequentially retrieves luminance values of pixels continuous in a predetermined direction of the image from the storage means. Starting point detecting means for detecting an n1th pixel which starts increasing or decreasing as an edge starting point, and an edge having an n2 (≧ n1 + 2) th pixel at which the continuous increase or decrease of the luminance value from the edge starting point ends as an edge end point End point detecting means; and sequentially extracting color difference values corresponding to each pixel in the luminance stable area from the n1-a (<n1) th pixel having a small variation in luminance value to the edge start point, and obtaining k1 (> n1-a, ≤ n1-
2) an edge start point color difference value correction means for changing at least a part of the color difference value of a pixel whose color difference value continuously increases or decreases by two or more pixels from a pixel to the edge start point; and the edge in a luminance stable area. From the pixel at the end point, n2 +
The color difference values corresponding to each pixel up to the b (> n2) th pixel are sequentially extracted, and k2 (≧ n2 +
Edge end point color difference value correction means for changing at least a part of the color difference value of a pixel in which the color difference value continuously increases or decreases by two or more pixels up to the (<n2 + b) th pixel; and having the corrected color difference value. From the storage unit in which the image is stored, the luminance value and the color difference value of at least three pixels continuous in the vertical direction with respect to the predetermined direction are read, and the luminance value of the pixel of interest that falls within a predetermined value range of the luminance value of the pixel of interest is read A video signal correcting device comprising: a vertical color difference value correcting unit that selects upper and lower pixels that are continuous in the vertical direction, and changes a color difference value of the target pixel using the color difference value of the selected pixel. .
【請求項19】 画像の各画素の輝度値及び色差値を格
納する格納手段と、前記画像のエッジ始点を検出するエ
ッジ始点検出手段と、前記エッジ始点部に関して色差値
を変更するエッジ始点部色差値補正手段と、前記画像の
垂直方向における色差値を変更する垂直色差値補正手段
とを備え、 前記エッジ始点検出手段により前記格納手段から前記画
像の所定方向に連続する画素の輝度値を順次取り出し、
2画素以上輝度値が連続して増加または減少し始めるn
1番目の画素をエッジ始点とし、 前記エッジ始点部色差値補正手段により輝度値の変動が
少ないn1−a(<n1)番目の画素から前記エッジ始
点までの各画素に対応する色差値を順次取り出し、k1
(>n1−a,≦n1−2)番目の画素から前記エッジ
始点まで2画素以上色差値が連続して増加または減少す
る画素の色差値の少なくとも一部を変更し、 その後、前記補正された画像の色差値を前記所定方向と
は逆方向に取り出しながら、前記エッジ始点検出手段及
び前記エッジ始点部色差値補正手段を用いて再度色差値
を補正し、 その後、前記垂直色差値補正手段により前記再度補正さ
れた色差値を有する画像が格納された前記格納手段か
ら、前記所定方向に対して垂直方向に連続する少なくと
も3画素以上の輝度値と色差値を読み出し、注目画素の
輝度値が所定値の範囲内にはいる前記注目画素の前記垂
直方向に連続する上下画素を選択し、前記注目画素の色
差値を、前記選択した画素の色差値を用いて変更するこ
とを特徴とする映像信号補正装置。
19. A storage unit for storing a luminance value and a color difference value of each pixel of an image, an edge start point detection unit for detecting an edge start point of the image, and an edge start point color difference for changing a color difference value with respect to the edge start point. Value correction means, and vertical color difference value correction means for changing the color difference value in the vertical direction of the image, wherein the edge start point detection means sequentially retrieves the luminance values of pixels continuous in a predetermined direction of the image from the storage means. ,
The luminance value starts to increase or decrease continuously for two or more pixels n
The first pixel is set as an edge start point, and the color difference value correction means sequentially extracts color difference values corresponding to each pixel from the n1-a (<n1) th pixel having a small variation in luminance value to the edge start point. , K1
Changing at least a part of the color difference value of a pixel whose color difference value continuously increases or decreases by two or more pixels from the (> n1-a, ≤n1-2) th pixel to the edge start point; While taking out the color difference value of the image in the direction opposite to the predetermined direction, the color difference value is corrected again by using the edge start point detection means and the edge start point portion color difference value correction means, and then the vertical color difference value correction means A luminance value and a color difference value of at least three pixels continuous in a direction perpendicular to the predetermined direction are read from the storage unit in which the image having the corrected color difference value is stored, and the luminance value of the pixel of interest is a predetermined value. And selecting the upper and lower pixels that are consecutive in the vertical direction of the pixel of interest within the range of, and changing the color difference value of the pixel of interest using the color difference value of the selected pixel. Signal correction device.
【請求項20】 画像の各画素の輝度値及び色差値を格
納する格納手段と、前記画像のエッジ始点を検出するエ
ッジ始点検出手段と、前記画像のエッジ終点を検出する
エッジ終点検出手段と、前記エッジ終点部に関して色差
値を変更するエッジ終点部色差値補正手段と、前記画像
の垂直方向における色差値を変更する垂直色差値補正手
段とを備え、 前記エッジ始点検出手段により前記格納手段から前記画
像の所定方向に連続する画素の輝度値を順次取り出し、
2画素以上輝度値が連続して増加または減少し始めるn
1番目の画素をエッジ始点とし、 前記エッジ終点検出手段により前記エッジ終点から連続
した輝度値の増加あるいは減少が終わるn2(≧n1+
2)番目の画素をエッジ終点とし、 前記エッジ終点部色差値補正手段により輝度値の変動が
少ない前記エッジ終点の画素から前記n2+b(>n
2)番目の画素までの各画素に対応する色差値を順次取
り出し、前記エッジ終点からk2(≧n2+2,<n2
+b)番目の画素まで2画素以上色差値が連続して増加
または減少する画素の色差値の少なくとも一部を変更
し、 その後、前記補正された画像の色差値を前記所定方向と
は逆方向に取り出しながら、前記エッジ始点検出手段、
前記エッジ終点検出手段及び前記エッジ終点部色差値補
正手段を用いて再度色差値を補正し、 その後、前記垂直色差値補正手段により前記再度補正さ
れた色差値を有する画像が格納された前記格納手段か
ら、前記所定方向に対して垂直方向に連続する少なくと
も3画素以上の輝度値と色差値を読み出し、注目画素の
輝度値が所定値の範囲内にはいる前記注目画素の前記垂
直方向に連続する上下画素を選択し、前記注目画素の色
差値を、前記選択した画素の色差値を用いて変更するこ
とを特徴とする映像信号補正装置。
20. A storage unit for storing a luminance value and a color difference value of each pixel of an image, an edge start point detection unit for detecting an edge start point of the image, an edge end point detection unit for detecting an edge end point of the image, An edge end point color difference value correction unit that changes a color difference value with respect to the edge end point portion, and a vertical color difference value correction unit that changes a color difference value in a vertical direction of the image, wherein the edge start point detection unit outputs the color difference value from the storage unit. The luminance values of pixels consecutive in a predetermined direction of the image are sequentially extracted,
The luminance value starts to increase or decrease continuously for two or more pixels n
The first pixel is set as the edge start point, and the edge end point detection means ends the increase or decrease of the continuous brightness value from the edge end point n2 (≧ n1 +
2) The pixel at the edge is defined as the edge end point, and the edge end point color difference value correcting means starts n2 + b (> n
2) The color difference values corresponding to the respective pixels up to the 画素 th pixel are sequentially extracted, and k2 (≧ n2 + 2, <n2) from the edge end point.
+ B) changing at least a part of the color difference value of the pixel in which the color difference value continuously increases or decreases by two or more pixels up to the (th) pixel, and thereafter changes the color difference value of the corrected image in a direction opposite to the predetermined direction. While taking out, the edge start point detecting means,
The color difference value is corrected again by using the edge end point detection means and the edge end point color difference value correction means, and thereafter, the storage means in which an image having the color difference value corrected again by the vertical color difference value correction means is stored. And reads a luminance value and a chrominance value of at least three or more pixels which are continuous in the vertical direction with respect to the predetermined direction, and the luminance value of the target pixel is continuous in the vertical direction of the target pixel falling within a predetermined value range A video signal correction apparatus, wherein upper and lower pixels are selected, and a color difference value of the target pixel is changed using a color difference value of the selected pixel.
JP24931393A 1992-10-12 1993-10-05 Video signal correction device Expired - Fee Related JP3193543B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24931393A JP3193543B2 (en) 1992-10-12 1993-10-05 Video signal correction device

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP27267992 1992-10-12
JP5-21339 1993-02-09
JP4-272679 1993-02-09
JP2133993 1993-02-09
JP24931393A JP3193543B2 (en) 1992-10-12 1993-10-05 Video signal correction device

Publications (2)

Publication Number Publication Date
JPH06296285A JPH06296285A (en) 1994-10-21
JP3193543B2 true JP3193543B2 (en) 2001-07-30

Family

ID=27283391

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24931393A Expired - Fee Related JP3193543B2 (en) 1992-10-12 1993-10-05 Video signal correction device

Country Status (1)

Country Link
JP (1) JP3193543B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004259231A (en) * 2003-02-28 2004-09-16 Fujitsu Ltd Image noise detection method and device
JP5153216B2 (en) 2007-06-08 2013-02-27 キヤノン株式会社 Image processing apparatus and image processing method
JP4728411B2 (en) * 2009-02-19 2011-07-20 ヒューレット・パッカード・カンパニー Method for reducing color bleed artifacts in digital images

Also Published As

Publication number Publication date
JPH06296285A (en) 1994-10-21

Similar Documents

Publication Publication Date Title
US5418574A (en) Video signal correction apparatus which detects leading and trailing edges to define boundaries between colors and corrects for bleeding
JP3099354B2 (en) Image processing apparatus and digital color copying machine using the same
US8942475B2 (en) Image signal processing device to emphasize contrast
JP3092024B2 (en) Image processing method
US7406208B2 (en) Edge enhancement process and system
JP3399486B2 (en) Color image processing apparatus and method
US6724942B1 (en) Image processing method and system
US8284271B2 (en) Chroma noise reduction for cameras
JP3489796B2 (en) Image signal processing device
JPH10164602A (en) Device and method for interpolating pixel
JP2003153006A (en) Image processing apparatus
US6542187B1 (en) Correcting for chrominance interpolation artifacts
JP2001251517A (en) Image processing method, image processor and image processing system
JP3334042B2 (en) IMAGE PROCESSING APPARATUS, IMAGE READING APPARATUS AND IMAGE FORMING APPARATUS EQUIPPED WITH THE SAME, IMAGE PROCESSING METHOD, AND COMPUTER-READABLE STORAGE MEDIUM CONTAINING IMAGE PROCESSING PROCEDURE
US7095902B2 (en) Image processing apparatus, image processing method, and program product
US7623705B2 (en) Image processing method, image processing apparatus, and semiconductor device using one-dimensional filters
JP3044501B2 (en) Video signal processing method and apparatus
US20030179945A1 (en) Method, apparatus, and program for processing images
US6483941B1 (en) Crominance channel overshoot control in image enhancement
WO2005025207A1 (en) Image processing utilizing locally adaptive color correction and cumulative histograms
JP2001167263A (en) Image processor
JP3193543B2 (en) Video signal correction device
JPH0630308A (en) Picture data processing unit
JP2906975B2 (en) Color image processing method and apparatus
JP7296745B2 (en) Image processing device, image processing method, and program

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees