Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0744676B2 - Pixel retouching device - Google Patents
[go: Go Back, main page]

JPH0744676B2 - Pixel retouching device - Google Patents

Pixel retouching device

Info

Publication number
JPH0744676B2
JPH0744676B2 JP62208676A JP20867687A JPH0744676B2 JP H0744676 B2 JPH0744676 B2 JP H0744676B2 JP 62208676 A JP62208676 A JP 62208676A JP 20867687 A JP20867687 A JP 20867687A JP H0744676 B2 JPH0744676 B2 JP H0744676B2
Authority
JP
Japan
Prior art keywords
pixel
correlation
vectors
invalid
value
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 - Lifetime
Application number
JP62208676A
Other languages
Japanese (ja)
Other versions
JPS6451782A (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 Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP62208676A priority Critical patent/JPH0744676B2/en
Publication of JPS6451782A publication Critical patent/JPS6451782A/en
Publication of JPH0744676B2 publication Critical patent/JPH0744676B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は例えばディジタルビデオテープレコーダ等の画
像のディジタル記録再生の画素修整装置に関するもので
ある。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pixel adjusting device for digital recording / reproduction of images such as a digital video tape recorder.

従来の技術 従来の画素修整装置としては、例えば特開昭60−226075
号公報に示されているディジタルデータ再生回路があ
る。
2. Description of the Related Art As a conventional pixel modifying device, for example, Japanese Patent Laid-Open No. 60-226075
There is a digital data reproducing circuit disclosed in the publication.

第5図はこの従来の画素修整装置をディジタルVTRに適
用した場合の構成例であり、1は入力であるデータとフ
ラグの系列から対象画素(以後、被修整画素と同義で用
いる。)の推定値を算出する補間フィルタである。2は
補間フィルタ1によって算出された推定値と対象点の元
値及びエラーフラグからマルチプレクサ3を制御する回
路である。4は補間フイルタ1に見合う処理ステップ数
入力データを遅延させる回路である。
FIG. 5 shows an example of a configuration in which the conventional pixel modification device is applied to a digital VTR, and 1 is an estimation of a target pixel (hereinafter, used as a synonym of a modified pixel) from a series of input data and flags. It is an interpolation filter that calculates a value. A circuit 2 controls the multiplexer 3 based on the estimated value calculated by the interpolation filter 1, the original value of the target point, and the error flag. Reference numeral 4 is a circuit for delaying the input data of the number of processing steps corresponding to the interpolation filter 1.

以上のように構成された従来の画素修整装置において
は、補間フイルタ1によって入力画素値を推定する。制
御回路2は、入力画素の元値とフラグ及び前記推定値と
選ぶ。入力画素のエラーフラグが無効を示しているなら
ば入力画素値は誤っている可能性が強い。従って前後す
る画素からの推定値によって置換させる必要がある。こ
れを修整と呼ぶ。しかし、入力となる画素系列があるま
とまった画素集合、ブロック単位でエラー符号化(例え
ばリードソロモン符号化)がなされ、再生時にブロック
単位でエラー検出するようなディジタルVTRの応用で
は、ブロック単位で無効を示すエラーフラグが付加され
誤りではない画素であるにもかかわらず、修整の対象と
なりうることが予見できる。本従来例では、これに対処
するため、修整のために閾値mを設け、入力画素の元値
Diとこれに対する補間フィルタ1による推定値Dcとの差
の絶対値|Di−Dc|がm以上でかつエラーフラグが無効を
示しているときにのみマルチプレクサ3を制御して推定
値Dcを出力する。
In the conventional pixel modification device configured as described above, the interpolation filter 1 estimates the input pixel value. The control circuit 2 selects the original value of the input pixel, the flag, and the estimated value. If the error flag of the input pixel indicates invalid, the input pixel value is likely to be incorrect. Therefore, it is necessary to replace the estimated values from the pixels preceding and succeeding. This is called modification. However, in a digital VTR application in which error coding (for example, Reed-Solomon coding) is performed on a block-by-block basis as a group of pixels that has a pixel sequence as an input, and error detection is performed on a block-by-block basis during playback, it is invalid on a block-by-block basis. It can be foreseen that the pixel can be subject to retouching even though the pixel has an error flag indicating that it is not an error. In this conventional example, in order to cope with this, a threshold value m is provided for modification, and the original value of the input pixel is set.
The multiplexer 3 is controlled to output the estimated value Dc only when the absolute value | Di−Dc | of the difference between Di and the estimated value Dc obtained by the interpolation filter 1 is m or more and the error flag indicates invalid. .

補間値と元値との差があまりない場合は修整の実行の有
無による画質への影響は少ないと考えられるが、本従来
例はディジタルデータの元値を正確に保存する意味で有
効である。
If there is not much difference between the interpolated value and the original value, it is considered that the image quality is not affected by the presence / absence of the modification. However, the conventional example is effective in accurately storing the original value of the digital data.

発明が解決しょうとする問題点 しかしながら上記のような構成では画像の2次元周波数
空間上の高域に当たる部分では推定値と元値との差分の
絶対値に対する出力が大きくなり、画像の高域成分を構
成する画素についてはエラーフラグによる無効の判定を
変更できないという問題点を有していた。
Problems to be Solved by the Invention However, in the above-described configuration, the output corresponding to the absolute value of the difference between the estimated value and the original value becomes large in the part corresponding to the high band in the two-dimensional frequency space of the image, and the high band component of the image There is a problem in that it is not possible to change the determination of invalidity based on the error flag for the pixels constituting the.

前記従来例では、補間フイルタの構成については特定し
ていないが例えば水平垂直の4近傍から画素を補間する
場合を仮定すると、その対象画素が真に誤っているか否
かの判定のための演算は第6図に示す次元ディジタルフ
イルタの出力を観察することであり、2次元周波数空間
上の伝達特性は以下の式で表現できる。
In the above-mentioned conventional example, the structure of the interpolation filter is not specified, but assuming that a pixel is interpolated from four horizontal and vertical neighbors, for example, the calculation for determining whether or not the target pixel is truly incorrect is performed. By observing the output of the dimensional digital filter shown in FIG. 6, the transfer characteristic in the two-dimensional frequency space can be expressed by the following equation.

(4−Z-1−Z+1−W+1−W-1)/8 ここでZ=exp(2πjfh/fs) W=exp(2πjfv/cph) fs=標本化周波数[Hz] cph=走査線数/画面高 であり、 fh=水平周波数[Hz] fv=垂直周波数[cph] である。(4-Z −1 −Z +1 −W +1 −W −1 ) / 8 where Z = exp (2πjf h / fs) W = exp (2πjf v / cph) fs = sampling frequency [Hz] cph = the number of scanning lines / screen height, a f h = horizontal frequency [Hz] f v = vertical frequency [cph].

前記の伝達関数を変形すると =(1−cos(2πfh/fs) +1−cos(2πfv/cph))/4 となる。When the above transfer function is modified, it becomes = (1-cos (2πfh / fs) + 1-cos (2πfv / cph)) / 4.

上記の伝達特性によれば余弦関数は1/2標本化周波数ま
で単調減少であるから、画像の高域成分については、伝
達特性が単調増加する。即ち画像の高域成分を形成する
画素についてのエラーフラグが無効を示しておれば、そ
れの真偽に関係なく修整の対象となってしまうことを意
味する。
According to the above transfer characteristics, the cosine function monotonically decreases up to 1/2 sampling frequency, so that the transfer characteristics monotonically increase for the high frequency components of the image. That is, if the error flag for the pixel forming the high frequency component of the image indicates invalid, it means that the image is subject to modification regardless of its authenticity.

特に画像における高域部分、細線や領域の輪郭部分では
誤修整になる恐れがある。例として取り上げた補間フイ
ルタをより一般的に解釈しても、エラーフラグの真偽の
判定に単純に補間値との誤差による閾値判定を用いる限
りにおいて、多くの有効画素を、無効であると判定する
可能性を持っていた。
In particular, there is a possibility that the high-frequency portion in the image, the thin line, or the contour portion of the area may be erroneously modified. Even if the interpolation filter taken as an example is more generally interpreted, many valid pixels are determined to be invalid as long as the threshold determination based on the error from the interpolation value is simply used to determine whether the error flag is true or false. Had the possibility to

本発明はかかる点に鑑み、画像の高域成分においても有
効無効判定が可能となる修整精度の高い画素修整装置を
提供することを目的とする。
In view of the above point, the present invention has an object to provide a pixel retouching device with high retouching accuracy that enables effective / invalid determination even in a high-frequency component of an image.

問題点を解決するための手段 本発明は、標本化されたディジタルデータの有効及び無
効を示すエラーフラグが付加された画像の画素系列を入
力とし、前記画素系列に属する少なくともエラーフラグ
が無効を示している各画素とその近傍画素に対して2次
元空間上のN方向(N≧2)の相関方向についての相関
の強さの並びである相関ベクトルなるN次元ベクトルを
複数個演算する相関演算回路と、前記画素系列中の画素
の中でエラーフラグが無効を示している画素または近傍
画素に対しての前記相関演算回路の前記複数の相関ベク
トルを評価し、複数の相関ベクトル間に同一性の相関が
認められるときは対象画素の無効とされたエラーフラグ
を有効と判定し前記複数のベクトル間に同一性の相関が
認められないときは無効と判定する有効性判定手段と、
少なくとも前記有効性判定手段により無効と判定された
画素に対してその近傍画素値により修整値を演算する演
算回路と、前記有効性判定回路により無効と判定された
画素についてその値を前記演算回路の出力と置換する置
換回路とを有することを特徴とする画素修整装置であ
る。
Means for Solving the Problems The present invention takes as input a pixel series of an image to which an error flag indicating validity and invalidity of sampled digital data is added, and indicates that at least an error flag belonging to the pixel series is invalid. Correlation calculation circuit for calculating a plurality of N-dimensional vectors, which are correlation vectors in the N-direction (N ≧ 2) correlation direction in a two-dimensional space, for each pixel and its neighboring pixels And evaluating the plurality of correlation vectors of the correlation calculation circuit with respect to a pixel in which an error flag is invalid among pixels in the pixel series or a neighboring pixel, When the correlation is recognized, the invalid error flag of the target pixel is determined to be valid, and when the correlation of the sameness between the plurality of vectors is not recognized, it is determined to be invalid. A fixed means,
At least an arithmetic circuit that calculates a correction value for a pixel that is determined to be invalid by the validity determining unit based on its neighboring pixel value, and that value for the pixel that is determined to be invalid by the validity determining circuit, by the arithmetic circuit. A pixel modifying device having a replacing circuit for replacing an output.

作用 本発明は前記した構成により画素系列に属する各画素毎
に2次元空間上のN方向(N≧2)の相関方向について
相関の強さを対象画素とその近傍画素に対してN項組で
表される複数の相関ベクトルを相関演算回路が出力す
る。有効性判定手段はエラーフラグが無効と判定された
画素に対して、前記複数の相関ベクトルに相関がない場
合はそれは対象の画素値が誤っているからであると見な
し真に無効であるとする。これとは逆に前記複数の相関
ベクトル間に同一性が認められるならば有効性判定手段
は対象画素は真に有効であるとする。
Action The present invention has the above-described configuration, for each pixel belonging to the pixel series, sets the correlation strength in the N direction (N ≧ 2) correlation direction in the two-dimensional space with respect to the target pixel and its neighboring pixels in N terms. The correlation calculation circuit outputs a plurality of represented correlation vectors. The validity determining means regards a pixel for which the error flag is determined to be invalid, and if there is no correlation between the plurality of correlation vectors, considers that it is because the target pixel value is incorrect and determines that the pixel is truly invalid. . On the contrary, if the plurality of correlation vectors have the same identity, the validity determining means determines that the target pixel is truly valid.

これとは別に前記対象画素についてその修整値を演算回
路が算出し、前記有効性判定手段によってエラーフラグ
が無効を示しかつ真に無効と判断された対象画素につい
て元値と修整値の置換が置換手段によって実行される。
Separately from this, the arithmetic circuit calculates the modification value of the target pixel, and the replacement of the original value and the modification value is replaced with respect to the target pixel for which the validity flag is judged to be invalid and the target pixel is judged to be truly invalid. Executed by means.

実施例 入力である画素系列は垂直方向には250本の走査線、水
平方向には1走査線当り360標本点で構成されるとし、
各標本点は8ビットで量子化され各データにつき1ビッ
トのエラーフラグが既にエラー検出によって付加されて
いるものとする。前記入力画素系列は本実施例による修
整の後1走査線当り720標本点の画素系列に補間によっ
て変換されることを前提としており、特定せずも例えば
最下位ビットに補間に必要な情報が重畳されているもの
とする。エラー検出方法については同じく特定するもの
ではないが、例えば60データに4冗長データを加えるよ
うな(64、60)リードソロモン符号化されているブロッ
クに対して1重誤り訂正2重誤り検出を行う方法等が考
えられる。前記したエラー検出方法によれば2重誤り以
上の誤りに対して誤り訂正をせず、エラー検出ができる
範囲において全てのブロック内データに対してエラーフ
ラグを“無効”として付加することになる。本実施例で
はエラーフラグのビットが“0"であれば有効を、“1"で
有れば無効を示すものとして扱う。第1図、第2図及び
第4図を用いて、画素修整装置の第1の実施例を説明す
る。
Example A pixel series as an input is composed of 250 scanning lines in the vertical direction and 360 sample points per scanning line in the horizontal direction,
It is assumed that each sample point is quantized with 8 bits and a 1-bit error flag is already added to each data by error detection. It is premised that the input pixel series is converted into a pixel series of 720 sample points per scanning line after the modification according to the present embodiment by interpolation, and the information necessary for interpolation is superimposed on the least significant bit without specifying, for example. It has been done. The error detection method is not specified in the same way, but for example, single error correction and double error detection are performed on a block that is Reed-Solomon-encoded such that 4 redundant data is added to 60 data (64, 60). Methods etc. are considered. According to the error detection method described above, error correction is not performed for double or more errors, and an error flag is added as "invalid" to all in-block data within a range where an error can be detected. In this embodiment, if the bit of the error flag is “0”, it is treated as valid, and if it is “1”, it is treated as invalid. A first embodiment of the pixel modification device will be described with reference to FIGS. 1, 2, and 4.

第1図は本発明の第1の実施例の構成を説明するブロッ
ク図であり5、6、7、8、14は加算器、9、10、15、
16は減算器、11、12、13は入力を2倍とする乗算器17、
18は入力を1/4とする乗算器、19、20は入力を1/8とする
乗算器、21は乗算器17〜20の出力を受けて無効フラグの
真偽を判定する判定回路(I)、22は5種の修整値から
1つの修整値を選択するスイッチャ(II)、23は近傍画
素からの水平相関値と垂直相関値を比較し相関の強い方
向を1ビットデータとして出力する比較回路、24は入力
を1/2とする除算器、25、26、27、28、29、はORゲー
ト、30はスイッチャ22を近傍画素のエラーフラグ及び相
関の方向により制御する制御回路、31は修整値と元値を
選択するスイッチャ(I)、32はANDゲートである。
FIG. 1 is a block diagram for explaining the configuration of the first embodiment of the present invention. 5, 6, 7, 8, and 14 are adders, 9, 10, 15, and
16 is a subtractor, 11, 12, 13 are multipliers 17 for doubling the input,
Reference numeral 18 is a multiplier having an input of 1/4, 19 and 20 are multipliers having an input of 1/8, and 21 is a determination circuit (I) which receives the outputs of the multipliers 17 to 20 and determines whether the invalid flag is true or false. ), 22 is a switcher (II) that selects one modification value from five modification values, and 23 is a comparison that compares the horizontal and vertical correlation values from neighboring pixels and outputs the direction with strong correlation as 1-bit data. A circuit, 24 is a divider having an input of 1/2, 25, 26, 27, 28, 29 are OR gates, 30 is a control circuit for controlling the switcher 22 by the error flag of the neighboring pixels and the direction of correlation, and 31 is The switcher (I) 32 for selecting the modified value and the original value is an AND gate.

以上のように構成された第1の実施例について第2図及
び第4図を用いて説明する。第1図中5から20のブロッ
クは以下の演算を行っている。
The first embodiment configured as described above will be described with reference to FIGS. 2 and 4. Blocks 5 to 20 in FIG. 1 perform the following calculations.

e0=a1+a5 e1=a3+a7 e2=a2+a6 e3=a0+a4 v0=(2x−e0)/4 h0=(2x−e1)/4 h1=(2e0−e2−e3)/8 v1=(2e1−e2−e3)/8 本発明第1の実施例では判定回路(I)21は第2図に示
す如く構成されている。第2図において33、34は2入力
の差分を求める減算器、35、36は入力の2乗値を求める
ROMテーブル、37は加算器、38は平方根を求めるROMテー
ブル、39は入力の閾値との比較結果を1ビットで出力す
る判定回路(II)である。
e0 = a1 + a5 e1 = a3 + a7 e2 = a2 + a6 e3 = a0 + a4 v0 = (2x-e0) / 4 h0 = (2x-e1) / 4 h1 = (2e0-e2-e3) / 8 v1 = (2e1-e2-e3) / 8 In the first embodiment of the present invention, the decision circuit (I) 21 is constructed as shown in FIG. In FIG. 2, 33 and 34 are subtracters for calculating the difference between two inputs, and 35 and 36 are square values for the inputs.
A ROM table, 37 is an adder, 38 is a ROM table for obtaining a square root, and 39 is a judgment circuit (II) which outputs a comparison result with an input threshold value in 1 bit.

ここでは、上記の演算結果v0,h0,v1,h1を2項組として
表される相関ベクトル(v0,h0),(v1,h1)のベクトル
間距離を求めている。演算は以下の通り行われる。
Here, the inter-vector distances of the correlation vectors (v0, h0) and (v1, h1) represented by the above-mentioned calculation results v0, h0, v1, h1 as a binary set are obtained. The calculation is performed as follows.

D=((v0−v1)+(h0−h1)1/2 判定回路(II)38ではある閾値Sにたいして D>Sならば1を D≦Sならば0を出力する これによって入力である2つの2項組間のベクトル間距
離が遠ければ“1"が判定回路I21によって出力されるこ
とになる。
D = ((v0-v1) 2 + (h0-h1) 2 ) 1/2 Judgment circuit (II) 38 outputs a 1 if D> S and a 0 if D ≦ S for a certain threshold S If the inter-vector distance between the two binomial sets is, the decision circuit I21 outputs "1".

一方比較回路23、制御回路30、スイッチャIII22及びOR
ゲート25〜28により修整値が選ばれる。
Meanwhile, the comparison circuit 23, the control circuit 30, the switcher III22 and the OR
The modification value is selected by gates 25 to 28.

前記演算による中間結果e0,e1,e2,e3のうち1つが修整
値として本実施例では選ばれる。この選択動作を以下の
表1に示す。
In the present embodiment, one of the intermediate results e0, e1, e2, e3 by the above calculation is selected as the modification value. This selection operation is shown in Table 1 below.

表1において“0"、“1"は各画素のエラーフラグのOR出
力を意味し、“X"は任意の内容を意味する。以上のよう
に選択された修整値はスイッチャ(II)22を経て乗算器
24により1/2とされてスイッチャI31のA入力となる。
In Table 1, "0" and "1" mean the OR output of the error flag of each pixel, and "X" means any content. The modification value selected as above passes through the switcher (II) 22 and the multiplier.
It is halved by 24 and becomes the A input of switcher I31.

一方スイッチャIのB入力には修整の対象となる画素X
の元値があり、ANDゲート32より画素Xのエラーフラグ
が“1"でありかつ、ORゲート29の出力が“1"であると
き、スイッチャ31はA入力即ち修整値を出力する。ORゲ
ート29の出力が1になるときは近傍8画素の中にエラー
フラグが“1"であるものがあるか、または判定回路Iの
出力が真に無効を示す“1"のときである。以上のように
構成された第1の実施例によれば、修整の対象となる画
素Xを中心に水平及び垂直相関の強さを表す2つの2項
組を1つは画素Xを含む4近傍から残る1つは画素Xを
含まない8近傍から求めている。
On the other hand, the B input of the switcher I has the pixel X to be modified.
When the error flag of the pixel X is "1" from the AND gate 32 and the output of the OR gate 29 is "1", the switcher 31 outputs the A input, that is, the modified value. When the output of the OR gate 29 becomes 1, it means that some of the neighboring 8 pixels have an error flag of "1" or the output of the decision circuit I is "1" which indicates that the pixel is truly invalid. According to the first embodiment configured as described above, two binomial sets representing the strengths of horizontal and vertical correlations centering on the pixel X to be modified, one of which is four neighborhoods including the pixel X The remaining one is obtained from 8 neighborhoods that do not include the pixel X.

ここで前記v0,h0,v1,h1の2次元周波数応答v0(fh,
fv),h0(fh,fv),v1(fh,fv),h1(fh,fv)は以下の式
で表すことができる。
Here, the two-dimensional frequency response v0 (f h ,
f v ), h0 (f h , f v ), v1 (f h , f v ), h1 (f h , f v ) can be expressed by the following equations.

h0(fh,fv)=(1−cos(2πfv/cph)/2 v0(fh,fv)=(1−cos(2πfh/fs))/2 h1(fh,fv)=cos(2πfv/cph) ・(1−cos(2πfh/fs))/2 v1(fh,fv)=cos(2πfh/fs)・ (1−cos(2πfv/cph))/2 但し fs=標本化周波数[Hz] cph=走査線数/画面高 であり、 fh=水平周波数[Hz] fv=垂直周波数[cph] である。h0 (f h , f v ) = (1-cos (2πf v / cph) / 2 v0 (f h , f v ) = (1-cos (2πf h / f s )) / 2 h1 (f h , f v ) = cos (2πf v / cph) ・ (1-cos (2πf h / f s )) / 2 v1 (f h , f v ) = cos (2πf h / fs) ・ (1-cos (2πf v / cph)) / 2 where f s = sampling frequency [Hz] cph = number of scanning lines / screen height, and f h = horizontal frequency [Hz] f v = vertical frequency [cph].

相関ベクトル(v0,h0)は対象画素Xをその計算に含
み、相関ベクトル(v1,h1)は対象画素Xをその計算を
含まない。
The correlation vector (v0, h0) includes the target pixel X in its calculation, and the correlation vector (v1, h1) does not include the target pixel X in the calculation.

もし画素Xの値が真に有効即ち正しければ2つの相関ベ
クトルは以上の周波数応答よりfh,fvがともに高い場合
を除いてほぼ一致するはずである。例えばfv=0を仮定
するとh0とh1は一致しv0とv1は共に0となる。従って2
つのベクトル間距離は0となりエラーフラグが“1"と示
されていても画素値は有効と見なされる。
If the value of pixel X is truly valid, then the two correlation vectors should be nearly identical except when both f h and f v are higher than the above frequency response. For example, assuming f v = 0, h0 and h1 match, and v0 and v1 are both 0. Therefore 2
The distance between two vectors is 0, and the pixel value is regarded as valid even if the error flag is shown as "1".

これとは逆に対象画素Xの値が真に無効であるならば、
上記のような画素相関の一致にならずその不一致は相関
ベクトル(v0,h0)、(v1,h1)間のベクトル間距離の大
きさによって表されることになる。本実施例ではこのベ
クトル間距離Dがある閾値Sを越えれば真に無効、越え
なければ真に有効と判定している。
On the contrary, if the value of the target pixel X is truly invalid,
The above-mentioned pixel correlation does not coincide and the disagreement is represented by the magnitude of the inter-vector distance between the correlation vectors (v0, h0) and (v1, h1). In the present embodiment, it is determined that if the inter-vector distance D exceeds a certain threshold value S, it is truly invalid, and if it does not exceed it, it is truly valid.

一方本実施例では以上の相関ベクトルを求める過程にお
いて、修整値の候補e0,e1,e2,e3を演算し修整に必要な
ハードウエアを兼用している。また本実施例では相関ベ
クトル(v1,h1)を修整値の選択にも利用している。こ
れによって画素が無効と判断された場合にはより精度の
高い修整値を提供することができる。
On the other hand, in this embodiment, in the process of obtaining the above correlation vector, the correction value candidates e0, e1, e2, and e3 are calculated, and the hardware necessary for the correction is also used. Further, in this embodiment, the correlation vector (v1, h1) is also used for selecting the modification value. This makes it possible to provide a more accurate modification value when a pixel is determined to be invalid.

本実施例によれば有効無効の判定を前記した画素相関の
一致不一致に依るため水平、垂直に限れば1/2標本化周
波数まで正確にその有効無効を判定することができる。
According to this embodiment, since the validity / invalidity is determined depending on whether the pixel correlations are coincident or non-coincidence as described above, the validity / invalidity can be accurately determined up to 1/2 sampling frequency only in the horizontal and vertical directions.

次に第1図における判定回路(I)21を第3図に示すが
如く構成にした第2の実施例を示す。
Next, a second embodiment in which the decision circuit (I) 21 shown in FIG. 1 is constructed as shown in FIG.

第1の実施例と第2の実施例は、判定回路(I)21の構
成についてのみ異なる。第3図において40、41は2入力
の差分を求める減算器、42、43は入力の絶対値を求める
絶対値回路、44、45入力の閾値との比較結果を1ビット
で出力する判定回路II、46はORゲートである。
The first and second embodiments differ only in the configuration of the decision circuit (I) 21. In FIG. 3, reference numerals 40 and 41 are subtractors for obtaining the difference between two inputs, 42 and 43 are absolute value circuits for obtaining the absolute value of the inputs, and a decision circuit II for outputting the comparison result with the threshold values of the inputs of 44 and 45 with 1 bit. , 46 are OR gates.

第1の実施例においては2つの2項組によって表される
相関ベクトル間距離によって対象画素の有効無効を判定
したが、本実施例では各項の差分の絶対値のうち少なく
とも1つが所定の閾値を越えれば無効であると判定する
ところに特徴がある。
In the first embodiment, the validity / invalidity of the target pixel is determined by the distance between the correlation vectors represented by two binomial sets, but in the present embodiment, at least one of the absolute values of the differences of the respective terms is a predetermined threshold value. The feature is that it is judged invalid if it exceeds.

第1の実施例では相関の有無の判定に自乗演算や平方根
の演算を必要とし、この実現にROMを使用するものとし
た。しかしより簡便な応用ではベクトル間距離を算出せ
ずとも十分実用になると考えられ、本実施例では第1の
実施例に比してゲート数で評価されるハードウエア規模
を小さくすることができる。
In the first embodiment, the square calculation and the square root calculation are required to determine the presence or absence of the correlation, and the ROM is used to realize this. However, in a simpler application, it is considered to be sufficiently practical without calculating the inter-vector distance, and in this embodiment, the hardware scale evaluated by the number of gates can be made smaller than that in the first embodiment.

なお第1及び第2の実施例で用いた乗算器の係数は総て
2のべき数であるから演算の実行はビットシフト等で実
現できるため特別な装置を必要とするものではなく構成
は容易である。
Since all the coefficients of the multipliers used in the first and second embodiments are powers of 2, the execution of the operation can be realized by bit shift or the like, so that no special device is required and the configuration is easy. Is.

以上本発明の第1の実施例及び第2の実施例を説明し
た。以上の実施例では相関の比較に水平垂直の2方向の
みを用いたが、斜め方向を考慮して計4方向としてもよ
くこの場合の構成も本実施例から容易に導入でき、良好
な判定能力が期待できる。また相関の比較を修整の対象
となる対象画素を含む4近傍画素による相関ベクトルと
対象画素を含まない8近傍画素による相関ベクトルで行
ったが、異なる画素集合間の比較でもよく例えば、各画
素について対象画素と垂直水平の4近傍画素による相関
を測定しこれら相関ベクトルの不連続か否かを修整の対
象となる画素の近傍での相関の変化として観測するとし
てもよい。
The first embodiment and the second embodiment of the present invention have been described above. In the above embodiment, only two horizontal and vertical directions were used for the correlation comparison, but a total of four directions may be taken into consideration in consideration of the oblique direction, and the configuration in this case can be easily introduced from the present embodiment, and a good determination capability can be obtained. Can be expected. Further, the correlation is compared by using a correlation vector of 4 neighboring pixels including the target pixel to be modified and a correlation vector of 8 neighboring pixels not including the target pixel, but it is also possible to compare between different pixel sets, for example, for each pixel. It is also possible to measure the correlation between the target pixel and vertically and horizontally four neighboring pixels and observe whether or not these correlation vectors are discontinuous as a change in the correlation in the vicinity of the pixel to be modified.

発明の効果 以上説明したように本発明によれば、画素の有効無効の
判定を画素相関の変化を観察することを特徴とすること
により、細線や輪郭線等の画像の高域成分においても良
好な判定を行うことができ、ディジタル信号の原情報を
保全する意味においてまた誤修整を防ぐ意味において、
その実用効果は大きい。
EFFECTS OF THE INVENTION As described above, according to the present invention, the determination of the validity / invalidity of a pixel is characterized by observing a change in the pixel correlation, so that the high frequency component of an image such as a thin line or a contour line is also good. In the sense of preserving the original information of digital signals and in the sense of preventing erroneous correction,
Its practical effect is great.

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

第1図は本発明における第1の実施例の画素修整装置の
ブロック図、第2図は本発明の第1の実施例における判
定回路のブロック図、第3図は本発明の第2の実施例に
おける判定回路のブロック図、第4図は修整の対象とな
る画素とその近傍画素の相対位置の説明図、第5図は従
来の画素修整装置のブロック図、第6図は同従来例の相
関検出に用いる近傍画素の相対位置の説明図である。 5,6,7,8,14,37……加算器、9,10,15,16,33,34,40,41…
…減算器、12,13,17,18,19,20,24……乗算器、25,26,2
7,28,29,46……ORゲート、32……ANDゲート、35,36……
自乗ROMテーブル、38……平方根ROMテーブル、42,43…
…絶対値化回路。
FIG. 1 is a block diagram of a pixel modifying device according to a first embodiment of the present invention, FIG. 2 is a block diagram of a decision circuit according to the first embodiment of the present invention, and FIG. 3 is a second embodiment of the present invention. FIG. 4 is a block diagram of a determination circuit in an example, FIG. 4 is an explanatory diagram of relative positions of a pixel to be modified and its neighboring pixels, FIG. 5 is a block diagram of a conventional pixel modification device, and FIG. It is explanatory drawing of the relative position of the neighboring pixel used for correlation detection. 5,6,7,8,14,37 …… Adder, 9,10,15,16,33,34,40,41…
… Subtractor, 12,13,17,18,19,20,24 …… Multiplier, 25,26,2
7,28,29,46 …… OR gate, 32 …… AND gate, 35,36 ……
Square ROM table, 38 …… Square root ROM table, 42, 43…
… Absolute value conversion circuit.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】標本化されたディジタルデータの有効及び
無効を示すエラーフラグが付加された画像の画素系列を
入力とし、前記画素系列に属する少なくともエラーフラ
グが無効を示している各画素とその近傍画素に対して2
次元空間上のN方向(N≧2)の相関方向についての相
関の強さの並びである相関ベクトルなるN次元ベクトル
を複数個演算する相関演算回路と、前記画素系列中の画
素の中でエラーフラグが無効を示している画素または近
傍画素に対しての前記相関演算回路の前記複数の相関ベ
クトルを評価し、複数の相関ベクトル間に同一性の相関
が認められるときは対象画素の無効とされたエラーフラ
グを有効と判定し前記複数のベクトル間に同一性の相関
が認められないときは無効と判定する有効性判定手段
と、少なくとも前記有効性判定手段により無効と判定さ
れた画素に対してその近傍画素値により修整値を演算す
る演算回路と、前記有効性判定回路により無効と判定さ
れた画素についてその値を前記演算回路の出力と置換す
る置換回路とを有することを特徴とする画素修整装置。
1. A pixel series of an image to which an error flag indicating validity and invalidity of sampled digital data is added as an input, and at least each pixel belonging to the pixel series and indicating the invalidity of the error flag and the vicinity thereof. 2 for a pixel
A correlation calculation circuit for calculating a plurality of N-dimensional vectors, which are correlation vectors in the correlation direction in N directions (N ≧ 2) in the dimensional space, and an error in the pixels in the pixel series. Evaluating the plurality of correlation vectors of the correlation calculation circuit with respect to a pixel whose flag indicates invalid or a neighboring pixel, and when a correlation of identity is recognized between the plurality of correlation vectors, the target pixel is determined to be invalid. And a validity determining unit that determines that the error flag is valid and determines that the correlation is not valid between the plurality of vectors, and at least a pixel that is determined to be invalid by the validity determining unit. And a replacement circuit that replaces the value of the pixel determined to be invalid by the validity determination circuit with the output of the calculation circuit, the calculation circuit calculating the modification value based on the neighboring pixel value. Pixel correcting device, characterized in that.
【請求項2】相関演算回路の出力である相関ベクトルを
修整の対象となる対象画素に対して対象画素を含んで求
めた第1の相関ベクトルと対象画素を除外してその近傍
画素だけから求めた第2の相関ベクトルの2つとし、有
効性判定手段は上記2つのベクトル間相関に依ることを
特徴とする特許請求の範囲第1項記載の画素修整装置。
2. A correlation vector which is an output of a correlation calculation circuit is obtained from only the neighboring pixels by excluding the first correlation vector obtained by including the target pixel with respect to the target pixel to be modified and the target pixel. 2. The pixel retouching device according to claim 1, wherein the second correlation vector is two, and the validity determining means depends on the correlation between the two vectors.
【請求項3】有効性判定手段は、判定の対象となるエラ
ーフラグが無効と示された画素とその近傍画素に対する
複数の相関ベクトルのベクトル間距離とある閾値との比
較によって判定することを特徴とする特許請求の範囲第
1項記載の画素修整装置。
3. The validity determining means makes a determination by comparing a vector distance of a plurality of correlation vectors with respect to a pixel whose error flag to be determined is invalid and its neighboring pixels with a certain threshold value. The pixel retouching device according to claim 1.
【請求項4】有効性判定手段は、判定の対象となる第1
の相関ベクトルと第2の相関ベクトル間のベクトル間距
離とある閾値との比較によって判定することを特徴する
特許請求の範囲第2項記載の画素修整装置。
4. The validity judging means is a first object to be judged.
3. The pixel retouching device according to claim 2, wherein the determination is made by comparing an inter-vector distance between the correlation vector and the second correlation vector with a certain threshold value.
JP62208676A 1987-08-21 1987-08-21 Pixel retouching device Expired - Lifetime JPH0744676B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62208676A JPH0744676B2 (en) 1987-08-21 1987-08-21 Pixel retouching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62208676A JPH0744676B2 (en) 1987-08-21 1987-08-21 Pixel retouching device

Publications (2)

Publication Number Publication Date
JPS6451782A JPS6451782A (en) 1989-02-28
JPH0744676B2 true JPH0744676B2 (en) 1995-05-15

Family

ID=16560214

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62208676A Expired - Lifetime JPH0744676B2 (en) 1987-08-21 1987-08-21 Pixel retouching device

Country Status (1)

Country Link
JP (1) JPH0744676B2 (en)

Also Published As

Publication number Publication date
JPS6451782A (en) 1989-02-28

Similar Documents

Publication Publication Date Title
EP0392671B1 (en) Image motion vector detector
JPH0520036B2 (en)
US20090278991A1 (en) Method for interpolating a previous and subsequent image of an input image sequence
US4817174A (en) Image processing apparatus
US4525747A (en) Analog-to-digital image signal conversion
JPH0479193B2 (en)
JP2507138B2 (en) Motion vector detection device and image shake correction device
JPH05122586A (en) Image stabilization device
US6480632B2 (en) Method and apparatus to interpolate video frames
EP0177763B1 (en) Apparatus for detecting a movement in an encoded television picture
US5296925A (en) Movement vector detection device
US5956432A (en) Image processing apparatus and method
JPH0744676B2 (en) Pixel retouching device
JPH09182077A (en) Image coding method and image coding apparatus
JP2882227B2 (en) Pixel defect correction device
JPH08317389A (en) Block distortion remover
JP3039654B2 (en) Image reduction apparatus and method
JPH1042201A (en) Image defect correction circuit
EP0478040A2 (en) Four direction adaptive error concealment system for component digital television signals
JPH04343590A (en) Interpolating signal forming circuit
JP3639640B2 (en) Motion vector detection device
JP3832924B2 (en) Image signal processing method, image signal processing apparatus, and computer-readable recording medium
JPH0573316B2 (en)
JP3326637B2 (en) Apparatus and method for determining motion
JP3486227B2 (en) Motion vector interpolation filter