JP2001086366A - Digital filter and processing method thereof - Google Patents

Digital filter and processing method thereof

Info

Publication number
JP2001086366A
JP2001086366A JP26351599A JP26351599A JP2001086366A JP 2001086366 A JP2001086366 A JP 2001086366A JP 26351599 A JP26351599 A JP 26351599A JP 26351599 A JP26351599 A JP 26351599A JP 2001086366 A JP2001086366 A JP 2001086366A
Authority
JP
Japan
Prior art keywords
data
output
digital filter
line
selectors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP26351599A
Other languages
Japanese (ja)
Inventor
Takeshi Koike
健 小池
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.)
NEC IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP26351599A priority Critical patent/JP2001086366A/en
Publication of JP2001086366A publication Critical patent/JP2001086366A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a digital filter capable of always providing a filter output with no distortion, even when invalid data exists in the neighborhood of the end part of image data. SOLUTION: This filter consists of an input terminal 101, a data-generating part 102, selectors 103 to 108, multiplication circuits 109 to 115, a coefficient- generating part 116, an adder 117 and an output terminal 118. A plurality of selectors 103 to 108, substituting other efficient data outputted from the part 102 for the invalid data when at least one piece of invalid data is outputted from the part 102, are provided in a stage preceding the circuits 109 to 115. Then, when the filter performs filtering processing on image data, an filter output without distortion can always be obtained, even when invalid data exists outside the end part of the image data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタルフィルタ
及びその処理方法に関し、特に画像の解像度変換処理や
フィルタリング処理等に用いられるデジタルフィルタ及
びその処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital filter and a processing method thereof, and more particularly, to a digital filter used for resolution conversion processing and filtering processing of an image and a processing method thereof.

【0002】[0002]

【従来の技術】従来、画像データの解像度変換処理や画
像フィルタリング処理に用いられるデジタルフィルタに
おいては、画像の端部(上下端部または左右端部)近傍
において画像データ以外の無効データがフィルタに入力
されてしまうことにより、当該フィルタからの出力が歪
んでしまうという問題が取り上げられていた。このこと
は、取り扱われる画像データの範囲が有限であることに
起因するものである。
2. Description of the Related Art Conventionally, in a digital filter used for resolution conversion processing or image filtering processing of image data, invalid data other than image data is input to a filter near an end (upper / lower end or left / right end) of an image. This has raised the problem that the output from the filter is distorted. This is because the range of image data to be handled is finite.

【0003】この問題を解消するために、あたかも画像
データの外側に有効データが伸張されて存在しているか
のように処理することが提案されている。この伸張する
データをどのように処理するかについては、いくつかの
伸張方法があるが、その中でも端部伸張と対称伸張と呼
ばれる方法が広く用いられている。
[0003] In order to solve this problem, it has been proposed to perform processing as if extended data exists outside image data. There are several methods for processing the data to be expanded, of which methods called edge expansion and symmetric expansion are widely used.

【0004】ここで、端部伸張とは、有効データの両端
において、最初と最後のデータを繰り返す方法である。
例えば、0から10までが有効データであるとすれば、
以下のように伸張処理するものである。 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10,
10
Here, the end extension is a method of repeating the first and last data at both ends of the valid data.
For example, if 0 to 10 is valid data,
The extension processing is performed as follows. 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10,
Ten

【0005】また、対称伸張とは、有効データの最初の
部分に当該有効データの最初の部分の左右対称のコピー
を付加し、有効データの最後の部分に当該有効データの
最後の部分の左右対称のコピーを付加するものである。
例えば、0から10までが有効データであるとすれば、
以下のように伸張処理するものである。 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7
[0005] Symmetric expansion means that a symmetrical copy of the first part of the valid data is added to the first part of the valid data, and a symmetrical copy of the last part of the valid data is added to the last part of the valid data. Is added.
For example, if 0 to 10 is valid data,
The extension processing is performed as follows. 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7

【0006】これらの処理方法を実現するデジタルフィ
ルタとして、例えば、従来例1として特開平5−219
413号公報に開示される「デジタルフィルタ」があ
る。
As a digital filter for realizing these processing methods, for example, Japanese Patent Application Laid-Open No. 5-219
There is a “digital filter” disclosed in JP-A-413-413.

【0007】上記従来例1のデジタルフィルタは、入力
信号から連続した複数ラインを同時に出力するデータ生
成手段と、それぞれのラインに対応する同数の重み係数
を出力する係数生成手段と、データ生成手段が出力する
複数ラインのデータに係数生成手段から出力される同数
の重み係数を乗じて出力する同数の乗算回路と、各乗算
回路からの乗算結果の和を求める加算回路と、画像デー
タについてフィルタリング処理を行う場合において、各
乗算回路からの少なくとも1つに無効データが入力され
る場合、その乗算回路の重み係数を0に変更すると共
に、その他の乗算回路の少なくとも1つの重み係数を変
更する手段とを備えるものである。
The digital filter of the first prior art includes a data generating means for simultaneously outputting a plurality of continuous lines from an input signal, a coefficient generating means for outputting the same number of weighting coefficients corresponding to each line, and a data generating means. The same number of multiplication circuits for multiplying the output data of the plurality of lines by the same number of weighting factors output from the coefficient generation means, an addition circuit for obtaining the sum of the multiplication results from each multiplication circuit, and a filtering process for the image data. When invalid data is input to at least one of the multiplication circuits, the weight coefficient of the multiplication circuit is changed to 0, and at least one of the other multiplication circuits is changed. It is provided.

【0008】図5は、従来例1のデジタルフィルタによ
り端部伸張を行う場合の概略構成を示すブロック図であ
る。図5において、まず、入力端子501からの入力信
号である画像データは、データ生成手段502に供給さ
れる。データ生成手段502は、D0〜D6までの連続
した7ラインのデータを同時に出力し、係数生成手段5
23は、C0〜C6までの7つの所定の重み係数を出力
する。加算回路517、518、519、520、52
1、522は、重み係数の変更に必要な値を係数生成手
段523から出力されるC0〜C6までの重み係数を使
用して生成する。セレクタ510、511、512、5
13、514、515、516は、重み係数の選択を行
う。
FIG. 5 is a block diagram showing a schematic configuration in a case where the end portion is extended by the digital filter of the first conventional example. In FIG. 5, first, image data as an input signal from the input terminal 501 is supplied to the data generation unit 502. The data generating means 502 outputs seven consecutive lines of data D0 to D6 simultaneously,
Reference numeral 23 outputs seven predetermined weighting factors C0 to C6. Adder circuits 517, 518, 519, 520, 52
Reference numerals 1 and 522 generate values necessary for changing the weighting coefficients using the weighting coefficients C0 to C6 output from the coefficient generating means 523. Selectors 510, 511, 512, 5
13, 514, 515, and 516 select a weight coefficient.

【0009】上述のようにして得られた各データと各重
み係数は、乗算回路503、504、505、506、
507、508、509に供給され乗算処理される。各
乗算回路からの乗算結果は、加算回路524によって加
算処理され、出力端子525からフィルタ出力として出
力される。
Each data and each weighting factor obtained as described above are multiplied by multiplication circuits 503, 504, 505, 506,
The signals are supplied to 507, 508, and 509 and multiplied. The multiplication result from each multiplication circuit is added by an addition circuit 524 and output from an output terminal 525 as a filter output.

【0010】ここで、図6を参照して、従来例1のデジ
タルフィルタの動作を説明する。センタータップが有効
データの上端に到達した場合、すなわちセンタータップ
がライン5の場合、D0〜D6にはライン2からライン
8が出力されるが、このうちD0〜D2、すなわちライ
ン2からライン4までは無効データである。そこで、セ
レクタ510、511、512は、全て0の重み係数を
選択し、かつセレクタ513は、C0+C1+C2+C
3を選択し、セレクタ514、515、516はそれぞ
れC4、C5、C6を選択する。
Here, the operation of the digital filter of the first conventional example will be described with reference to FIG. When the center tap reaches the upper end of the valid data, that is, when the center tap is line 5, lines 2 to 8 are output to D0 to D6, and among them D0 to D2, that is, lines 2 to 4 Is invalid data. Therefore, the selectors 510, 511, and 512 select the weight coefficient of all 0, and the selector 513 selects C0 + C1 + C2 + C
3, and the selectors 514, 515, and 516 select C4, C5, and C6, respectively.

【0011】よって、この場合のフィルタ出力は、 D0×0+D1×0+D2×0+D3×(C0+C1+
C2+C3)+D4×C4+D5×C5+D6×C6=
D3×(C0+C1+C2+C3)+D4×C4+D5
×C5+D6×C6 となる。
Therefore, the filter output in this case is: D0 × 0 + D1 × 0 + D2 × 0 + D3 × (C0 + C1 +
C2 + C3) + D4 × C4 + D5 × C5 + D6 × C6 =
D3 × (C0 + C1 + C2 + C3) + D4 × C4 + D5
× C5 + D6 × C6.

【0012】このフィルタ出力は、D3すなわち画像の
上端であるライン5のデータを無効データのライン数で
ある3ライン分だけ伸張したことに相当するものであ
る。
This filter output corresponds to D3, that is, the data of line 5, which is the upper end of the image, is expanded by three lines, which is the number of invalid data lines.

【0013】例えば、センタータップがライン6とライ
ン7との場合も無効データが含まれるので、同様に画像
の上端であるライン5のデータを無効データのライン数
分だけ伸張するように動作する。
For example, since invalid data is also included in the case where the center tap is line 6 and line 7, similarly, the operation of extending the data of line 5 at the upper end of the image by the number of invalid data lines is performed.

【0014】一方、センタータップがライン18とライ
ン19とライン20の場合は、無効データが含まれるた
め、今度は画像の下端であるライン20のデータを無効
データのライン数分だけ伸張するように動作する。
On the other hand, when the center tap is the line 18, the line 19, and the line 20, invalid data is included. Therefore, the data of the line 20 at the lower end of the image is extended by the number of invalid data lines. Operate.

【0015】従って、画像データにおけるフィルタリン
グの開始点から終了点までのフィルタ出力は全て無効デ
ータを含むことなく処理されるので、不要な画像の歪み
などの発生を防止する。
Therefore, all the filter outputs from the start point to the end point of the filtering in the image data are processed without including the invalid data, thereby preventing the occurrence of unnecessary image distortion and the like.

【0016】図7は、上記従来例1のデジタルフィルタ
により対称伸張を行う場合の概略構成を示すブロック図
である。図7において、まず、入力端子701からの入
力信号である画像データは、データ生成部702に供給
される。画像データを供給されたデータ生成部702
は、D0〜D6までの連続した7ラインのデータを同時
に出力し、係数生成部726は、C0〜C6までの7つ
の所定の重み係数を出力する。加算回路717、71
8、719、720、721、722、723、72
4、725は、重み係数の変更に必要な値をC0〜C6
までの重み係数を用いて生成する。セレクタ710、7
11、712、713、714、715、716は、重
み係数の選択を行う。
FIG. 7 is a block diagram showing a schematic configuration in the case of performing symmetric expansion by the digital filter of the above-mentioned conventional example 1. 7, first, image data as an input signal from the input terminal 701 is supplied to the data generation unit 702. Data generator 702 supplied with image data
Simultaneously outputs seven consecutive lines of data from D0 to D6, and the coefficient generator 726 outputs seven predetermined weighting coefficients from C0 to C6. Adder circuits 717, 71
8, 719, 720, 721, 722, 723, 72
4 and 725 indicate values necessary for changing the weighting coefficients C0 to C6.
Are generated using the weighting factors up to. Selectors 710, 7
11, 712, 713, 714, 715, and 716 select a weight coefficient.

【0017】上述のようにして得られた各データと各重
み係数は、乗算回路703、704、705、706、
707、708、709に供給されて乗算処理が行われ
る。各乗算回路からの乗算結果は、加算回路727によ
って加算処理され、出力端子728からフィルタ出力と
して出力される。
Each data and each weight coefficient obtained as described above are multiplied by multiplication circuits 703, 704, 705, 706,
The signals are supplied to 707, 708, and 709 to perform a multiplication process. The multiplication result from each multiplication circuit is added by an addition circuit 727 and output from an output terminal 728 as a filter output.

【0018】ここで、図8を参照して、このデジタルフ
ィルタの動作を説明する。センタータップがライン5の
場合、セレクタ710、711、712は、全て0の重
み係数を選択し、かつセレクタ713はC3を選択し、
セレクタ714はC2+C4を選択し、セレクタ715
はC1+C5を選択し、セレクタ716はC0+C6を
選択する。
The operation of the digital filter will now be described with reference to FIG. If the center tap is line 5, the selectors 710, 711, 712 select a weighting factor of all 0, and the selector 713 selects C3,
The selector 714 selects C2 + C4, and the selector 715
Selects C1 + C5, and the selector 716 selects C0 + C6.

【0019】よって、この場合のフィルタ出力は、 D0×0+D1×0+D2×0+D3×C3+D4×
(C2+C4)+D5×(C1+C5)+D6×(C0
+C6)=D3×C3+D4×(C2+C4)+D5×
(C1+C5)+D6×(C0+C6) となる。
Therefore, the filter output in this case is: D0 × 0 + D1 × 0 + D2 × 0 + D3 × C3 + D4 ×
(C2 + C4) + D5 × (C1 + C5) + D6 × (C0
+ C6) = D3 × C3 + D4 × (C2 + C4) + D5 ×
(C1 + C5) + D6 × (C0 + C6).

【0020】このフィルタ出力は、D3すなわち画像の
上端であるライン5のデータを中心に最初の部分のう
ち、無効データのライン数である3ライン分だけ上下対
称となるよう伸張したことに相当するものである。
This filter output is equivalent to the data D3, that is, the data of the line 5 at the upper end of the image, which is expanded so as to be vertically symmetrical by three lines, which is the number of invalid data lines, in the first part. Things.

【0021】例えば、センタータップがライン6とライ
ン7との場合も無効データが含まれるので、同様に画像
の上端であるライン5のデータを中心に有効データの最
初の部分を無効データのライン数分だけ上下対称に伸張
されているかのように処理される。
For example, since invalid data is also included in the case where the center tap is line 6 and line 7, similarly, the first part of the valid data is similarly set to the number of invalid data lines centering on the data of the line 5 at the upper end of the image. It is processed as if it were stretched symmetrically up and down by the amount.

【0022】一方、下端付近のセンタータップが、ライ
ン18とライン19とライン20との場合には無効デー
タが含まれるが、今度は画像の下端であるライン20の
データを中心に、有効データの最後の部分を無効データ
のライン数分だけ上下対称に伸張されているかのように
処理される。
On the other hand, when the center tap near the lower end is the line 18, the line 19, and the line 20, invalid data is included. The last part is processed as if it were vertically symmetrically expanded by the number of invalid data lines.

【0023】従って、画像データにおけるフィルタリン
グの開始点から終了点までのフィルタ出力は全て無効デ
ータを含むことなく処理され、不要な画像の歪みなどの
発生を防止する。
Therefore, all the filter outputs from the start point to the end point of the filtering in the image data are processed without including invalid data, thereby preventing unnecessary image distortion or the like.

【0024】また、従来例2として特開昭63−067
036号公報に開示される「ディジタルデータ修正装
置」がある。従来例2においては、複数の補間フィルタ
から出力されるデータを選択するものである。
A second conventional example is disclosed in Japanese Patent Application Laid-Open No. 63-067 / 1988.
There is a "digital data correction device" disclosed in Japanese Patent Publication No. 036. In the second conventional example, data output from a plurality of interpolation filters is selected.

【0025】また、従来例3として特開平01−241
989号公報に開示される「液晶表示装置」がある。従
来例3においては、有効データ内に存在するノイズを除
去することを目的とするものであり、1フィールド前の
同じ位置の画素で置換するものである。
A third conventional example is disclosed in JP-A-01-241.
There is a “liquid crystal display device” disclosed in Japanese Patent No. 989. In the third conventional example, an object is to remove noise existing in valid data, and the pixel is replaced with a pixel at the same position one field before.

【0026】また、従来例4として、特開平06−28
2946号公報に開示される「画像信号再生装置」があ
る。従来例4においては、複数個のブロック単位で符号
化された画像データを復号化して再生する際の欠落デー
タを修正するものである。
As a fourth conventional example, Japanese Patent Laid-Open Publication No.
There is an "image signal reproducing apparatus" disclosed in Japanese Patent No. 2946. In the fourth conventional example, missing data when decoding and reproducing image data encoded in a plurality of blocks is corrected.

【0027】また、従来例5として、特開平10−27
1460号公報に開示される「情報信号処理装置及びそ
の方法」がある。従来例5においては、デジタルビデオ
ディスク等に記録されている多重化された情報信号間の
遷移時における処理に関するものである。
As a conventional example 5, Japanese Patent Application Laid-Open No. 10-27
There is an “information signal processing apparatus and method” disclosed in Japanese Patent No. 1460. The fifth conventional example relates to processing at the time of transition between multiplexed information signals recorded on a digital video disk or the like.

【0028】さらに、従来例6として、特開平11−0
34427号公報に開示される「画像処理装置及び画像
処理方法」がある。従来例6においては、記憶媒体への
画像データの書き込み時間を短縮するものである。
Further, as a conventional example 6, Japanese Patent Application Laid-Open No. 11-0
There is an "image processing apparatus and an image processing method" disclosed in Japanese Patent No. 34427. In Conventional Example 6, the time for writing image data to a storage medium is reduced.

【0029】[0029]

【発明が解決しようとする課題】しかしながら、近年、
画像処理関係の技術分野においては、HD−TV(高画
質テレビ)やパーソナルコンピュータの高解像度表示等
の高精細画像を取り扱う機会が多くなってきている。例
えば、高精細画像のフィルタリング処理には、十分な特
性を持ったフィルタ処理が必要となる。上述される従来
例1においては、7タップのフィルタで説明している
が、十分な特性のフィルタを得るためには、さらに大き
なタップ数のフィルタが必要となり、フィルタに画像端
部を伸張処理する回路が含まれている場合は、タップ数
が増えれば増えるだけ、付加する回路規模が大きくなっ
ていくという問題を有している。
However, in recent years,
In the technical field related to image processing, there are increasing opportunities to handle high-definition images such as HD-TV (high-definition television) and high-resolution display of personal computers. For example, filtering processing of a high-definition image requires filtering processing having sufficient characteristics. In the above-described conventional example 1, a seven-tap filter has been described. However, in order to obtain a filter having sufficient characteristics, a filter having a larger number of taps is required. When a circuit is included, there is a problem that as the number of taps increases, the scale of the circuit to be added increases.

【0030】従来例1のデジタルフィルタにあっては、
重み係数の値を変更して画像端部の伸張処理を行うこと
により、画像端部でも不要な画像の歪みなどの発生を防
ぐように構成しているものの、重み係数の値を変更する
ための加算回路が必要となることによりハードウエア規
模が拡大してしまうという問題があった。
In the digital filter of Conventional Example 1,
By changing the value of the weight coefficient and performing expansion processing of the end of the image, it is configured to prevent the occurrence of unnecessary image distortion and the like at the end of the image, but it is necessary to change the value of the weight coefficient. There is a problem that the hardware scale is increased by the necessity of the adder circuit.

【0031】さらには、デジタルフィルタで利用される
加算回路や乗算回路のような演算回路では、演算誤差や
オーバーフローが発生するという問題がある。一般的に
演算形式が固定小数点演算であれば、加算回路でオーバ
ーフローが発生し、また演算形式が浮動小数点演算であ
れば、加算回路で丸め誤差という演算誤差が発生するこ
とが知られている。従って、この重み係数の加算回路の
演算形式が固定小数点演算であれば、オーバーフローを
考慮するため、演算形式が浮動小数点演算であれば、丸
め誤差を考慮するため、演算語長の拡大などの対策が必
要となる。演算回路の演算語長が拡大すれば、さらにハ
ードウエア規模は拡大してしまう。
Further, arithmetic circuits such as an adder circuit and a multiplier circuit used in a digital filter have a problem that an arithmetic error and an overflow occur. In general, it is known that if the operation format is a fixed-point operation, an overflow occurs in the addition circuit, and if the operation format is a floating-point operation, an operation error called a rounding error occurs in the addition circuit. Therefore, if the arithmetic format of the weight coefficient addition circuit is a fixed-point arithmetic, overflow is taken into account. If the arithmetic format is a floating-point arithmetic, rounding errors are taken into account. Required. As the operation word length of the operation circuit increases, the hardware scale further increases.

【0032】また、従来例1の図5と図7の比較から明
らかなように、伸張方法により、セレクタの入力数や加
算回路の数といった回路構成が変わってしまうという欠
点もある。
Further, as is apparent from the comparison between FIGS. 5 and 7 of the first conventional example, there is a disadvantage that the circuit configuration such as the number of inputs of the selectors and the number of addition circuits is changed by the decompression method.

【0033】本発明は、演算回路のような複雑でハード
ウエア規模を拡大してしまうような回路構成を用いず
に、画像データの端部近傍のように無効データが存在す
るような場合でも、常に歪みのないフィルタ出力を得る
ことができる画像データの解像度変換処理や画像フィル
タリング処理を行うデジタルフィルタを提供することを
目的とする。
According to the present invention, even when invalid data exists near the end of image data without using a complicated circuit configuration such as an arithmetic circuit which increases the hardware scale, It is an object of the present invention to provide a digital filter that performs resolution conversion processing and image filtering processing of image data that can always obtain a filter output without distortion.

【0034】[0034]

【課題を解決するための手段】前記課題を解決するため
に、請求項1記載の発明は、入力信号から連続した複数
のデータを同時に出力するデータ生成手段と、データ生
成手段により出力された複数のデータ数と同数の所定の
重み係数を生成する係数生成手段と、複数データと重み
係数とを乗算する複数の乗算手段と、複数の乗算手段の
各々の乗算結果を加算する加算手段とを備えるデジタル
フィルタにおいて、データ生成手段と乗算手段との間
に、データ生成手段から少なくとも1つの無効データが
出力される際に、該無効データの替わりとしてデータ生
成手段により出力される他の有効データに組み替える組
み替え手段を有することを特徴とする。
According to a first aspect of the present invention, there is provided a data generating means for simultaneously outputting a plurality of continuous data from an input signal, and a plurality of data output by the data generating means. Coefficient generating means for generating the same number of predetermined weighting factors as the number of data, a plurality of multiplying means for multiplying the plurality of data by the weighting coefficient, and an adding means for adding the multiplication results of the plurality of multiplying means. In the digital filter, when at least one invalid data is output from the data generating means between the data generating means and the multiplying means, the invalid data is replaced with another valid data output by the data generating means in place of the invalid data. It is characterized by having a recombination means.

【0035】請求項2記載の発明は、請求項1記載の発
明において、組み替え手段は、少なくとも複数のデータ
数(タップ数)よりも少なく設けられていることを特徴
とする。
According to a second aspect of the present invention, in the first aspect of the present invention, the rearrangement means is provided at least less than a plurality of data numbers (the number of taps).

【0036】請求項3記載の発明は、請求項2記載の発
明において、組み替え手段は、データ生成手段から出力
される複数のデータ数(タップ数)が奇数である場合
に、中心に位置するタップ以外に設けられていることを
特徴とする。
According to a third aspect of the present invention, in the second aspect of the present invention, when the number of data (the number of taps) output from the data generating means is an odd number, the rearrangement means includes a tap located at the center. It is characterized by being provided in other than.

【0037】請求項4記載の発明は、請求項2記載の発
明において、組み替え手段は、データ生成手段から出力
される複数のデータ数(タップ数)がN個の偶数である
場合に、(N/2)−1番目のタップ以外に設けられて
いることを特徴とする。
According to a fourth aspect of the present invention, in the second aspect of the invention, when the number of data (the number of taps) output from the data generating means is N even numbers, / 2) characterized in that the taps are provided other than the first tap.

【0038】請求項5記載の発明は、データ生成部と、
複数のセレクタと、複数の乗算器と、係数生成部と、加
算器と、を備えて構成されるデジタルフィルタの処理方
法において、データ生成部により入力信号から連続した
複数のデータを同時に出力するデータ生成工程と、複数
のセレクタによりデータ生成部から出力された複数のデ
ータに含まれる無効データをデータ生成部により出力さ
れた他の有効データに組み替える組み替え工程と、係数
生成部によりデータ生成部から出力された複数のデータ
と同数の所定の重み係数を生成する係数生成工程と、複
数の乗算器によりセレクタで組み替えられたデータと係
数生成部で生成された重み係数とを乗算する乗算工程
と、加算器により複数の乗算器で乗算された結果を加算
する加算工程と、を有することを特徴とする。
According to a fifth aspect of the present invention, there is provided the data generating section,
In a digital filter processing method including a plurality of selectors, a plurality of multipliers, a coefficient generation unit, and an adder, data in which a data generation unit simultaneously outputs a plurality of continuous data from an input signal by a data generation unit A generating step, a re-arranging step of re-arranging invalid data included in the plurality of data output from the data generating unit by the plurality of selectors into another valid data output by the data generating unit, and outputting from the data generating unit by the coefficient generating unit A coefficient generating step of generating the same number of predetermined weighting coefficients as the plurality of pieces of data obtained, a multiplying step of multiplying the data rearranged by the selector by the plurality of multipliers and the weighting coefficient generated by the coefficient generating unit, An adding step of adding results multiplied by the plurality of multipliers by the multiplier.

【0039】請求項6記載の発明は、請求項5記載の発
明において、乗算器は、データ生成部により生成された
複数のデータと同数設けられていることを特徴とする。
According to a sixth aspect of the present invention, in the fifth aspect of the invention, the same number of multipliers as the plurality of data generated by the data generator are provided.

【0040】請求項7記載の発明は、請求項5または6
記載の発明において、複数のセレクタは、少なくともデ
ータ生成部から出力される複数のデータ数(タップ数)
よりも少なく設けられていることを特徴とする。
The invention according to claim 7 is the invention according to claim 5 or 6.
In the described invention, the plurality of selectors are at least a plurality of data numbers (tap numbers) output from the data generation unit.
It is characterized in that it is provided in a smaller number.

【0041】請求項8記載の発明は、請求項7記載の発
明において、複数のセレクタは、データ生成部から出力
される複数のデータ数(タップ数)が奇数である場合
に、中心に位置するタップ以外に設けられていることを
特徴とする。
According to an eighth aspect of the present invention, in the seventh aspect, the plurality of selectors are located at the center when the number of data (the number of taps) output from the data generation unit is an odd number. It is characterized by being provided other than the tap.

【0042】請求項9記載の発明は、請求項7記載の発
明において、複数のセレクタは、データ生成部から出力
される複数のデータ数(タップ数)がN個の偶数である
場合に、(N/2)−1番目のタップ以外に設けられて
いることを特徴とする。
According to a ninth aspect of the present invention, in the invention of the seventh aspect, when the plurality of data numbers (the number of taps) output from the data generation section is N even numbers, (N / 2) -1 It is characterized by being provided other than the first tap.

【0043】[0043]

【発明の実施の形態】次に、添付図面を参照して本発明
の実施形態であるデジタルフィルタ及びその処理方法を
詳細に説明する。図1から図4を参照すると、本発明に
係るデジタルフィルタの実施の形態が示されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, a digital filter and a processing method thereof according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. 1 to 4 show an embodiment of a digital filter according to the present invention.

【0044】〈第1の実施形態〉図1は、本発明の第1
の実施形態であるデジタルフィルタの概略構成を示すブ
ロック図である。図1において、本発明の第1の実施形
態であるデジタルフィルタは、入力端子101と、デー
タ生成部102と、セレクタ103、104,105,
106,107,108と、乗算回路109、110、
111、112、113、114、115と、係数生成
部116と、加算器117と、出力端子118と、を有
して構成される。
<First Embodiment> FIG. 1 shows a first embodiment of the present invention.
FIG. 3 is a block diagram illustrating a schematic configuration of a digital filter according to the embodiment. In FIG. 1, a digital filter according to a first embodiment of the present invention includes an input terminal 101, a data generation unit 102, selectors 103, 104, 105,
106, 107, 108, multiplication circuits 109, 110,
111, 112, 113, 114, and 115, a coefficient generator 116, an adder 117, and an output terminal 118.

【0045】図1に示されるように、本発明の第1の実
施形態においては、データ生成部102と各乗算回路1
09、110、111、112、113、114、11
5との間にセレクタ103、104、105、106、
107、108が設けられている。
As shown in FIG. 1, in the first embodiment of the present invention, the data generator 102 and each multiplication circuit 1
09, 110, 111, 112, 113, 114, 11
5, selectors 103, 104, 105, 106,
107 and 108 are provided.

【0046】このセレクタ103、104、105、1
06、107、108は、データ生成部102から少な
くとも1つの無効データが出力される場合、当該無効デ
ータの替わりとしてデータ生成部102から出力されて
いる他の有効データに組み替えるという動作を実行す
る。
The selectors 103, 104, 105, 1
When at least one invalid data is output from the data generation unit 102, the units 06, 107, and 108 execute an operation of replacing the invalid data with another valid data output from the data generation unit 102.

【0047】従って、データ生成部102から無効デー
タが出力された場合でも常に歪みのないフィルタ出力に
なるという効果が得られる。
Therefore, even when invalid data is output from the data generation unit 102, an effect is obtained that the filter output is always distortion-free.

【0048】図1において、入力端子101からの入力
信号である画像データは、データ生成部102に供給さ
れ、当該データ生成部102は、D0〜D6までの連続
した7ラインのデータを同時に出力する。
In FIG. 1, image data, which is an input signal from an input terminal 101, is supplied to a data generator 102, and the data generator 102 simultaneously outputs data of seven consecutive lines D0 to D6. .

【0049】係数生成部116は、C0〜C6までの7
つの所定の重み係数を出力する。データ生成部102か
ら出力される連続した7ラインのデータに対し、セレク
タ103、104、105、106、107、108
は、データの選択を行う。
The coefficient generation section 116 calculates the seven C0 to C6
Output two predetermined weighting factors. The selectors 103, 104, 105, 106, 107, and 108 are applied to the data of seven consecutive lines output from the data generator 102.
Performs data selection.

【0050】セレクタ103は、D0とD1とD2とD
3の4種類のデータの中から1つを選択する。セレクタ
104は、D1とD2とD3の3種類のデータの中から
1つを選択する。セレクタ105は、D2とD3の2種
類のデータの中から1つを選択する。セレクタ106
は、D3とD4の2種類のデータの中から1つを選択す
る。セレクタ107は、D3とD4とD5の3種類のデ
ータの中から1つを選択する。セレクタ108は、D3
とD4とD5とD6の4種類のデータの中から1つを選
択する。
The selector 103 selects D0, D1, D2, and D
One of the four types of data is selected. The selector 104 selects one of the three types of data D1, D2, and D3. The selector 105 selects one of two types of data, D2 and D3. Selector 106
Selects one of two types of data, D3 and D4. The selector 107 selects one of the three types of data D3, D4, and D5. The selector 108 selects D3
, D4, D5, and D6.

【0051】以上のようにして得られた各データと各重
み係数とは、乗算回路109、110、111、11
2、113、114、115に供給され乗算処理され
る。各乗算回路109〜115からの乗算結果は、加算
回路117によって加算処理され、出力端子118から
フィルタ出力として出力される。
The data and the weighting coefficients obtained as described above are multiplied by the multiplication circuits 109, 110, 111, and 11.
2, 113, 114, and 115 to be multiplied. The multiplication results from each of the multiplication circuits 109 to 115 are subjected to an addition process by the addition circuit 117 and output from the output terminal 118 as a filter output.

【0052】なお、図示されるデータ生成部102と係
数生成部116とは、当業者にとってよく知られてお
り、また、その構成を限定するものではないので、その
詳細な構成は省略する。
The data generator 102 and the coefficient generator 116 shown in the figure are well known to those skilled in the art, and do not limit the configuration, so that detailed configurations are omitted.

【0053】図2は、本発明の第1の実施形態であるデ
ジタルフィルタにて画像データのフィルタリング処理を
行う場合の動作についてセレクタ103、104、10
5、106、107、108の動作を示す図である。な
お、この動作において、データ生成部102からの出力
のうち中間に位置する出力つまりD3から出力されるデ
ータをセンタータップと呼ぶものとする。
FIG. 2 is a diagram showing the operation of the digital filter according to the first embodiment of the present invention in the case where image data is subjected to filtering processing.
It is a figure which shows operation | movement of 5,106,107,108. In this operation, the output located in the middle of the outputs from the data generation unit 102, that is, the data output from D3 is referred to as a center tap.

【0054】ここでは簡単に画像データが26ラインあ
り、そのうちライン0からライン4までの5ラインが画
像上部の無効データとし、ライン5からライン20まで
の16ラインが有効データとし、ライン21からライン
25までの5ラインが画像下部の無効データであるとす
る。
Here, there are 26 lines of image data, of which 5 lines from line 0 to line 4 are invalid data at the top of the image, 16 lines from line 5 to line 20 are valid data, and lines 21 to 21 are valid data. It is assumed that five lines up to 25 are invalid data at the bottom of the image.

【0055】画像データのフィルタリングの開始点は、
センタータップが有効データの上端にきたとき、すなわ
ちセンタータップがライン5になったときである。この
場合、データ生成部102のD0〜D6には、ライン2
からライン8が出力されるが、このうちD0〜D2、す
なわちライン2からライン4までは無効データである。
そこで、セレクタ103、104、105は、全てD3
すなわちライン5のデータを選択する。また、D3〜D
6、すなわちライン5からライン8までは有効データで
ある。そこでセレクタ106は、D4すなわちライン6
のデータを選択し、セレクタ107は、D5すなわちラ
イン7のデータを選択し、セレクタ108は、D6すな
わちライン8のデータを選択する。
The starting point for filtering image data is
This is when the center tap reaches the upper end of the valid data, that is, when the center tap becomes line 5. In this case, D0 to D6 of the data generation unit 102 include the line 2
, The line 8 is output, of which D0 to D2, that is, the lines 2 to 4, are invalid data.
Therefore, all of the selectors 103, 104, 105
That is, the data of line 5 is selected. Also, D3 to D
6, ie, lines 5 to 8 are valid data. Therefore, the selector 106 selects D4, that is, line 6
, The selector 107 selects D5, that is, the data of the line 7, and the selector 108 selects D6, that is, the data of the line 8.

【0056】従って、この場合のフィルタ出力は、 D3×C0+D3×C1+D3×C2+D3×C3+D
4×C4+D5×C5+D6×C6=D3×(C0+C
1+C2+C3)+D4×C4+D5×C5+D6×C
6 となる。
Accordingly, the filter output in this case is: D3 × C0 + D3 × C1 + D3 × C2 + D3 × C3 + D
4 × C4 + D5 × C5 + D6 × C6 = D3 × (C0 + C
1 + C2 + C3) + D4 × C4 + D5 × C5 + D6 × C
6

【0057】このフィルタ出力は、D3すなわち画像デ
ータの上端であるライン5のデータを無効データのライ
ン数である3ライン分だけ伸張したことに相当する。
This filter output corresponds to D3, that is, the data of line 5, which is the upper end of the image data, is expanded by three lines, which is the number of invalid data lines.

【0058】また、センタータップがライン6の場合、
セレクタ103、104は、D2すなわちライン5のデ
ータを選択し、セレクタ105、106、107、10
8は、それぞれD2、D4、D5、D6すなわちライン
5、ライン7、ライン8、ライン9のデータを選択す
る。
When the center tap is at line 6,
The selectors 103 and 104 select D2, that is, the data of the line 5, and select the selectors 105, 106, 107 and
Reference numeral 8 selects the data of D2, D4, D5, and D6, that is, the data of line 5, line 7, line 8, and line 9, respectively.

【0059】従って、この場合のフィルタ出力は、 D2×(C0+C1+C2)+D3×C3+D4×C4
+D5×C5+D6×C6 となる。
Accordingly, the filter output in this case is: D2 × (C0 + C1 + C2) + D3 × C3 + D4 × C4
+ D5 × C5 + D6 × C6.

【0060】このフィルタ出力は、D2すなわち画像デ
ータの上端であるライン5のデータを無効データのライ
ン数である2ライン分だけ伸張したことに相当する。
This filter output corresponds to D2, that is, the data of line 5, which is the upper end of the image data, is expanded by two lines, which is the number of invalid data lines.

【0061】さらに、センタータップがライン7の場
合、セレクタ103は、D1すなわちライン5のデータ
を選択し、セレクタ104、105、106、107、
108は、それぞれD1、D2、D4、D5、D6すな
わちライン5、ライン6、ライン8、ライン9、ライン
10のデータを選択する。
Further, when the center tap is line 7, the selector 103 selects D1, ie, the data of line 5, and selects the selectors 104, 105, 106, 107,
108 selects data of D1, D2, D4, D5, and D6, that is, data of line 5, line 6, line 8, line 9, and line 10, respectively.

【0062】従って、この場合のフィルタ出力は、 D1×(C0+C1)+D2×C2+D3×C3+D4
×C4+D5×C5+D6×C6 となる。
Accordingly, the filter output in this case is: D1 × (C0 + C1) + D2 × C2 + D3 × C3 + D4
× C4 + D5 × C5 + D6 × C6.

【0063】このフィルタ出力は、D1すなわち画像デ
ータの上端であるライン5のデータを無効データのライ
ン数である1ライン分だけ伸張したことに相当する。
This filter output corresponds to D1, that is, the data of line 5, which is the upper end of the image data, is expanded by one line which is the number of invalid data lines.

【0064】センタータップがライン8の場合、すなわ
ちデータ生成部102から出力されるデータが全て有効
データである場合、各セレクタ103、104、10
5、106、107、108はそれぞれD0、D1、D
2、D4、D5、D6すなわちライン5、ライン6、ラ
イン7、ライン9、ライン10、ライン11を選択す
る。
When the center tap is line 8, that is, when all the data output from the data generation unit 102 are valid data, the selectors 103, 104, 10
5, 106, 107, and 108 are D0, D1, and D, respectively.
2, D4, D5 and D6, that is, lines 5, line 6, line 7, line 9, line 10, and line 11 are selected.

【0065】その結果フィルタ出力は、 D0×C0+D1×C1+D2×C2+D3×C3+D
4×C4+D5×C5+D6×C6 となる。
As a result, the filter output is: D0 × C0 + D1 × C1 + D2 × C2 + D3 × C3 + D
4 × C4 + D5 × C5 + D6 × C6.

【0066】また、センタータップがライン9からライ
ン17の場合も同様に、各セレクタ103、104、1
05、106、107、108はそれぞれD0、D1、
D2、D4、D5、D6を選択する。
When the center tap is from line 9 to line 17, the selectors 103, 104, 1
05, 106, 107, and 108 are D0, D1,
D2, D4, D5 and D6 are selected.

【0067】センタータップがライン18の場合、セレ
クタ103、104、105、106、107は、それ
ぞれD0、D1、D2、D4、D5すなわちライン1
5、ライン16、ライン17、ライン19、ライン20
のデータを選択し、セレクタ108は、D5すなわちラ
イン20のデータを選択する。
When the center tap is the line 18, the selectors 103, 104, 105, 106 and 107 are connected to D0, D1, D2, D4 and D5,
5, line 16, line 17, line 19, line 20
, And the selector 108 selects D5, that is, the data of the line 20.

【0068】従って、この場合のフィルタ出力は、 D0×C0+D1×C1+D2×C2+D3×C3+D
4×C4+D5×(C5+C6) となる。
Accordingly, the filter output in this case is: D0 × C0 + D1 × C1 + D2 × C2 + D3 × C3 + D
4 × C4 + D5 × (C5 + C6)

【0069】このフィルタ出力は、D5すなわち画像デ
ータの下端であるライン20のデータを無効データのラ
イン数である1ライン分だけ伸張したことに相当する。
This filter output corresponds to D5, that is, the data of the line 20, which is the lower end of the image data, is expanded by one line which is the number of invalid data lines.

【0070】センタータップがライン19の場合、セレ
クタ103、104、105、106は、それぞれD
0、D1、D2、D4すなわちライン16、ライン1
7、ライン18、ライン20のデータを選択し、セレク
タ107、108は、D4すなわちライン20のデータ
を選択する。
When the center tap is the line 19, the selectors 103, 104, 105, and 106
0, D1, D2, D4, ie, line 16, line 1
7, the data of the line 18 and the data of the line 20 are selected, and the selectors 107 and 108 select D4, that is, the data of the line 20.

【0071】従って、この場合のフィルタ出力は、 D0×C0+D1×C1+D2×C2+D3×C3+D
4×(C4+C5+C6) となる。
Accordingly, the filter output in this case is: D0 × C0 + D1 × C1 + D2 × C2 + D3 × C3 + D
4 × (C4 + C5 + C6)

【0072】このフィルタ出力は、D4すなわち画像デ
ータの下端であるライン20のデータを無効データのラ
イン数である2ライン分だけ伸張したことに相当する。
This filter output corresponds to D4, that is, the data of line 20, which is the lower end of the image data, is expanded by two lines, which is the number of invalid data lines.

【0073】そして、センタータップがライン20の場
合、セレクタ103、104、105は、それぞれD
0、D1、D2すなわちライン17、ライン18、ライ
ン19のデータを選択し、セレクタ106、107、1
08は、D3すなわちライン20のデータを選択する。
When the center tap is the line 20, the selectors 103, 104, 105
0, D1, and D2, that is, the data of line 17, line 18, and line 19 are selected, and selectors 106, 107, and 1 are selected.
08 selects D3, that is, the data of the line 20.

【0074】従って、この場合のフィルタ出力は、 D0×C0+D1×C1+D2×C2+D3×(C3+
C4+C5+C6) となる。
Accordingly, the filter output in this case is: D0 × C0 + D1 × C1 + D2 × C2 + D3 × (C3 +
C4 + C5 + C6).

【0075】このフィルタ出力は、D3すなわち画像デ
ータの下端であるライン20のデータを無効データのラ
イン数である3ライン分だけ伸張したことに相当する。
This filter output corresponds to D3, that is, the data of line 20, which is the lower end of the image data, is expanded by three lines, which is the number of invalid data lines.

【0076】〈第2の実施形態〉図3は、本発明の第2
の実施形態であるデジタルフィルタの概略構成を示すブ
ロック図である。本発明の第2の実施形態であるデジタ
ルフィルタは、上述される第1の実施形態の基本的構成
と同じであるが、無効データの替わりに選択する他の有
効データを上記と違うものにしている。
<Second Embodiment> FIG. 3 shows a second embodiment of the present invention.
FIG. 3 is a block diagram illustrating a schematic configuration of a digital filter according to the embodiment. The digital filter according to the second embodiment of the present invention has the same basic configuration as that of the first embodiment described above, except that other valid data to be selected in place of invalid data is different from the above. I have.

【0077】図3において、入力端子301からの入力
信号である画像データは、データ生成部302に供給さ
れ、データ生成部302は、D0〜D6までの連続した
7ラインのデータを同時に出力し、係数生成部316
は、C0〜C6までの7つの所定の重み係数を出力す
る。
In FIG. 3, image data, which is an input signal from an input terminal 301, is supplied to a data generation unit 302, and the data generation unit 302 simultaneously outputs seven consecutive lines of data D0 to D6. Coefficient generator 316
Outputs seven predetermined weighting factors C0 to C6.

【0078】データ生成部302から出力される連続し
た7ラインのデータに対し、セレクタ303、304、
305、306、307、308は、データの選択を行
う。セレクタ303は、D0とD2とD4とD6の4種
類のデータの中から1つを選択する。セレクタ304
は、D1とD3とD5の3種類のデータの中から1つを
選択する。セレクタ305は、D2とD4の2種類のデ
ータの中から1つを選択する。セレクタ306は、D2
とD4の2種類のデータの中から1つを選択する。セレ
クタ307は、D1とD3とD5の3種類のデータの中
から1つを選択する。セレクタ308は、D0とD2と
D4とD6の4種類のデータの中から1つを選択する。
The selectors 303, 304, and
305, 306, 307, 308 select data. The selector 303 selects one of four types of data D0, D2, D4, and D6. Selector 304
Selects one of three types of data, D1, D3, and D5. The selector 305 selects one of two types of data D2 and D4. The selector 306 selects D2
And one of two types of data D4. The selector 307 selects one of the three types of data D1, D3, and D5. The selector 308 selects one of the four types of data D0, D2, D4, and D6.

【0079】以上のようにして得られた各データと各重
み係数とは、乗算回路309、310、311、31
2、313、314、315に供給され乗算処理され
る。各乗算回路309〜315からの乗算結果は、加算
回路317によって加算処理され、出力端子318から
フィルタ出力として出力される。
The data and weighting factors obtained as described above are multiplied by multiplication circuits 309, 310, 311 and 31.
2, 313, 314, and 315 and are subjected to multiplication processing. The multiplication results from the multiplication circuits 309 to 315 are added by the addition circuit 317 and output from the output terminal 318 as a filter output.

【0080】図4は、本発明の第2の実施形態であるデ
ジタルフィルタにて画像データのフィルタリング処理を
行う場合の動作について説明する。
FIG. 4 illustrates an operation when a digital filter according to a second embodiment of the present invention performs filtering of image data.

【0081】センタータップがライン5の場合、データ
生成部302のD0〜D6には、ライン2からライン8
が出力されるが、このうちD0〜D2、すなわちライン
2からライン4までは無効データである。そこでセレク
タ303は、D6すなわちライン8のデータを選択し、
セレクタ304は、D5すなわちライン7を選択し、セ
レクタ305は、D4すなわちライン6を選択する。ま
た、D3〜D6すなわちライン5からライン8までは有
効データである。そこでセレクタ306は、D4すなわ
ちライン6のデータを選択し、セレクタ307は、D5
すなわちライン7のデータを選択し、セレクタ308
は、D6すなわちライン8のデータを選択する。
When the center tap is line 5, D0 to D6 of the data generation unit 302 include lines 2 to 8
Are output, of which D0 to D2, that is, lines 2 to 4, are invalid data. Then, the selector 303 selects D6, that is, the data of the line 8, and
The selector 304 selects D5, that is, line 7, and the selector 305 selects D4, that is, line 6. D3 to D6, that is, lines 5 to 8 are valid data. Then, the selector 306 selects D4, that is, the data of the line 6, and the selector 307 selects D5.
That is, the data of line 7 is selected, and selector 308 is selected.
Selects D6, that is, data of line 8.

【0082】従って、この場合のフィルタ出力は、 D6×C0+D5×C1+D4×C2+D3×C3+D
4×C4+D5×C5+D6×C6=D3×C3+D4
×(C2+C4)+D5×(C1+C5)+D6×(C
0+C6) となる。
Accordingly, the filter output in this case is D6 × C0 + D5 × C1 + D4 × C2 + D3 × C3 + D
4 × C4 + D5 × C5 + D6 × C6 = D3 × C3 + D4
× (C2 + C4) + D5 × (C1 + C5) + D6 × (C
0 + C6).

【0083】このフィルタ出力は、D3すなわち画像の
上端であるライン5のデータを中心に最初の部分のう
ち、無効データのライン数である3ライン分だけ上下対
称となるよう伸張したことに相当する。
This filter output is equivalent to the data D3, that is, the data of line 5, which is the upper end of the image, and is expanded vertically symmetrically by three lines, which is the number of invalid data lines, in the first part. .

【0084】センタータップがライン6とライン7の場
合も無効データが含まれるので同様に画像の上端である
ライン5のデータを中心に最初の部分のうち、無効デー
タのライン数分だけ上下対称に伸張されているがごとく
処理される。
Since the invalid data is also included when the center tap is line 6 and line 7, the data is similarly symmetrical in the first part centering on the data of line 5 which is the upper end of the image by the number of invalid data lines in the first part. Processed as if it were decompressed.

【0085】一方、下端付近のセンタータップがライン
18とライン19とライン20の場合も無効データが含
まれるが、今度は画像の下端であるライン20のデータ
を中心に最後の部分のうち、無効データのライン数分だ
け上下対称に伸張されているがごとく処理される。
On the other hand, when the center tap near the lower end is line 18, line 19, and line 20, invalid data is also included. Processing is performed as if the data were vertically symmetrically expanded by the number of data lines.

【0086】このように、上述される本発明の第1の実
施形態においては、無効データの替わりとして有効デー
タの最端部のデータを無効データのライン数だけ伸張す
る処理を行っているのに対し、本発明の第2の実施形態
においては、無効データのライン数分だけ上下対称に伸
張するように処理しているが、各セレクタの入力数を変
更する必要はなく回路の構成をほとんど変えなくてもよ
い。
As described above, in the above-described first embodiment of the present invention, the process of extending the end data of the valid data by the number of invalid data lines is performed instead of the invalid data. On the other hand, in the second embodiment of the present invention, processing is performed so as to be vertically symmetrical by the number of lines of invalid data. However, it is not necessary to change the number of inputs of each selector, and almost the circuit configuration is changed. It is not necessary.

【0087】上記のように、本発明は、上述される実施
形態に限定されるものでなく、本発明の要旨を逸脱しな
い範囲内において種々変形実施することが可能である。
例えば、上記実施形態では、7タップのデジタルフィル
タを用いた場合を説明しているが、タップ数は特に限定
されるものでなく、いくつで構成してもよい。また、本
発明は、当該タップ数が増えれば増える分だけ効果が増
すことになる。
As described above, the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention.
For example, in the above embodiment, a case where a seven-tap digital filter is used has been described, but the number of taps is not particularly limited, and any number of taps may be used. In addition, according to the present invention, the effect increases as the number of taps increases.

【0088】さらに、上記実施形態においては、画像デ
ータの上端部及び下端部といった垂直方向に対するフィ
ルタリング処理を行っているが、画像データの左端部及
び右端部といった水平方向のフィルタリング処理や2次
元のフィルタリング処理にも適用することができる。
Further, in the above embodiment, the filtering processing in the vertical direction such as the upper end and the lower end of the image data is performed. However, the filtering processing in the horizontal direction such as the left end and the right end of the image data and the two-dimensional filtering are performed. It can also be applied to processing.

【0089】[0089]

【発明の効果】以上の説明より明らかなように、本発明
に係るデジタルフィルタによれば、データ生成部から少
なくとも1つの無効データが出力されるとき、該無効デ
ータの替わりとしてデータ生成部から出力されている他
の有効データに組み替える手段を乗算手段の前段に設け
て構成している。
As is apparent from the above description, according to the digital filter of the present invention, when at least one invalid data is output from the data generating unit, the data is output from the data generating unit instead of the invalid data. A means for changing the data to another valid data is provided before the multiplication means.

【0090】従って、本発明に係るデジタルフィルタに
より画像データのフィルタリング処理を行う場合、画像
データの端部の外側に無効データが存在するような場合
でも、常に歪みのないフィルタ出力を得ることができ
る。
Therefore, when filtering the image data with the digital filter according to the present invention, even if invalid data exists outside the end of the image data, a filter output without distortion can always be obtained. .

【0091】さらに、本発明に係るデジタルフィルタに
よれば、上述の無効データの替わりとして他の有効デー
タに組み替えるセレクタ内に演算回路のような複雑な回
路構成を使用していないため、ハードウエア規模をほと
んど増加させることがない。
Further, according to the digital filter of the present invention, since a complicated circuit configuration such as an arithmetic circuit is not used in the selector for reassembling the invalid data in place of the invalid data described above, a hardware scale Hardly increases.

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

【図1】本発明の第1の実施形態であるデジタルフィル
タの概略構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of a digital filter according to a first embodiment of the present invention.

【図2】本発明の第1の実施形態であるデジタルフィル
タの動作例を説明する図である。
FIG. 2 is a diagram illustrating an operation example of a digital filter according to the first embodiment of the present invention.

【図3】本発明の第2の実施形態であるデジタルフィル
タの概略構成を示すブロック図である。
FIG. 3 is a block diagram illustrating a schematic configuration of a digital filter according to a second embodiment of the present invention.

【図4】本発明の第2の実施形態であるデジタルフィル
タの動作例を説明する図である。
FIG. 4 is a diagram illustrating an operation example of a digital filter according to a second embodiment of the present invention.

【図5】従来のデジタルフィルタの第1の構成例を示す
ブロック図である。
FIG. 5 is a block diagram showing a first configuration example of a conventional digital filter.

【図6】図5のデジタルフィルタの動作例を示す図であ
る。
FIG. 6 is a diagram illustrating an operation example of the digital filter of FIG. 5;

【図7】従来のデジタルフィルタの第1の構成例を示す
ブロック図である。
FIG. 7 is a block diagram showing a first configuration example of a conventional digital filter.

【図8】図7のデジタルフィルタの動作例を示す図であ
る。
FIG. 8 is a diagram showing an operation example of the digital filter of FIG. 7;

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

101 入力端子 102 データ生成部 103〜108 セレクタ 109〜115 乗算器 116 係数生成部 117 加算器 118 出力端子 Reference Signs List 101 input terminal 102 data generator 103-108 selector 109-115 multiplier 116 coefficient generator 117 adder 118 output terminal

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 AA20 CE06 CH09 5C021 PA32 PA42 PA62 PA66 PA67 PA83 RA06 RB08 SA21 XB11 5C077 LL02 LL17 LL19 NP03 PP01 PQ30  ──────────────────────────────────────────────────の Continued on the front page F term (reference) 5B057 AA20 CE06 CH09 5C021 PA32 PA42 PA62 PA66 PA67 PA83 RA06 RB08 SA21 XB11 5C077 LL02 LL17 LL19 NP03 PP01 PQ30

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 入力信号から連続した複数のデータを同
時に出力するデータ生成手段と、 前記データ生成手段により出力された前記複数のデータ
数と同数の所定の重み係数を生成する係数生成手段と、 前記複数データと前記重み係数とを乗算する複数の乗算
手段と、 前記複数の乗算手段の各々の乗算結果を加算する加算手
段とを備えるデジタルフィルタにおいて、 前記データ生成手段と前記乗算手段との間に、前記デー
タ生成手段から少なくとも1つの無効データが出力され
る際に、該無効データの替わりとして前記データ生成手
段により出力される他の有効データに組み替える組み替
え手段を有することを特徴とするデジタルフィルタ。
1. A data generating means for simultaneously outputting a plurality of continuous data from an input signal; a coefficient generating means for generating a predetermined number of weight coefficients equal to the number of the plurality of data outputted by the data generating means; A digital filter comprising: a plurality of multiplying means for multiplying the plurality of data by the weighting coefficient; and an adding means for adding a multiplication result of each of the plurality of multiplying means. A digital filter, comprising: when at least one invalid data is output from the data generating means, rearranging the valid data to another valid data output by the data generating means in place of the invalid data. .
【請求項2】 前記組み替え手段は、 少なくとも前記複数のデータ数(タップ数)よりも少な
く設けられていることを特徴とする請求項1記載のデジ
タルフィルタ。
2. The digital filter according to claim 1, wherein said rearrangement means is provided at least less than said plurality of data numbers (the number of taps).
【請求項3】 前記組み替え手段は、 前記データ生成手段から出力される複数のデータ数(タ
ップ数)が奇数である場合に、中心に位置するタップ以
外に設けられていることを特徴とする請求項2記載のデ
ジタルフィルタ。
3. The method according to claim 2, wherein the rearrangement unit is provided in addition to the center tap when the number of data (the number of taps) output from the data generation unit is an odd number. Item 3. The digital filter according to Item 2.
【請求項4】 前記組み替え手段は、 前記データ生成手段から出力される複数のデータ数(タ
ップ数)がN個の偶数である場合に、(N/2)−1番
目のタップ以外に設けられていることを特徴とする請求
項2記載のデジタルフィルタ。
4. When the number of data (the number of taps) output from the data generation means is N even numbers, the rearrangement means is provided in addition to the (N / 2) -1st tap. 3. The digital filter according to claim 2, wherein:
【請求項5】 データ生成部と、複数のセレクタと、複
数の乗算器と、係数生成部と、加算器と、を備えて構成
されるデジタルフィルタの処理方法において、 前記データ生成部により入力信号から連続した複数のデ
ータを同時に出力するデータ生成工程と、 前記複数のセレクタにより前記データ生成部から出力さ
れた前記複数のデータに含まれる無効データを前記デー
タ生成部により出力された他の有効データに組み替える
組み替え工程と、 前記係数生成部により前記データ生成部から出力された
前記複数のデータと同数の所定の重み係数を生成する係
数生成工程と、 前記複数の乗算器により前記セレクタで組み替えられた
データと前記係数生成部で生成された前記重み係数とを
乗算する乗算工程と、 前記加算器により前記複数の乗算器で乗算された結果を
加算する加算工程と、 を有することを特徴とするデジタルフィルタの処理方
法。
5. A method of processing a digital filter comprising a data generator, a plurality of selectors, a plurality of multipliers, a coefficient generator, and an adder. A data generating step of simultaneously outputting a plurality of pieces of continuous data from the data generating section, and invalid data included in the plurality of pieces of data output from the data generating section by the plurality of selectors. And a coefficient generation step of generating the same number of predetermined weighting coefficients as the plurality of data output from the data generation unit by the coefficient generation unit; and the plurality of multipliers rearranged by the selector. A multiplication step of multiplying the data by the weight coefficient generated by the coefficient generation unit; and the plurality of multipliers by the adder Processing method for a digital filter, characterized in that it has a, an adding step for adding the result of the calculation.
【請求項6】 前記乗算器は、前記データ生成部により
生成された複数のデータと同数設けられていることを特
徴とする請求項5記載のデジタルフィルタの処理方法。
6. The digital filter processing method according to claim 5, wherein the same number of multipliers as the plurality of data generated by the data generator are provided.
【請求項7】 前記複数のセレクタは、 少なくとも前記データ生成部から出力される前記複数の
データ数(タップ数)よりも少なく設けられていること
を特徴とする請求項5または6記載のデジタルフィルタ
の処理方法。
7. The digital filter according to claim 5, wherein the plurality of selectors are provided at least less than the number of the plurality of data (the number of taps) output from the data generation unit. Processing method.
【請求項8】 前記複数のセレクタは、 前記データ生成部から出力される前記複数のデータ数
(タップ数)が奇数である場合に、中心に位置するタッ
プ以外に設けられていることを特徴とする請求項7記載
のデジタルフィルタの処理方法。
8. The method according to claim 1, wherein the plurality of selectors are provided in addition to the center tap when the number of data (the number of taps) output from the data generation unit is an odd number. The method for processing a digital filter according to claim 7.
【請求項9】 前記複数のセレクタは、 前記データ生成部から出力される複数のデータ数(タッ
プ数)がN個の偶数である場合に、(N/2)−1番目
のタップ以外に設けられていることを特徴とする請求項
7記載のデジタルフィルタの処理方法。
9. When the plurality of data (number of taps) output from the data generation unit is N even numbers, the plurality of selectors are provided in addition to the (N / 2) -1st tap. The method according to claim 7, wherein the processing is performed.
JP26351599A 1999-09-17 1999-09-17 Digital filter and processing method thereof Pending JP2001086366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26351599A JP2001086366A (en) 1999-09-17 1999-09-17 Digital filter and processing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26351599A JP2001086366A (en) 1999-09-17 1999-09-17 Digital filter and processing method thereof

Publications (1)

Publication Number Publication Date
JP2001086366A true JP2001086366A (en) 2001-03-30

Family

ID=17390617

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26351599A Pending JP2001086366A (en) 1999-09-17 1999-09-17 Digital filter and processing method thereof

Country Status (1)

Country Link
JP (1) JP2001086366A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002344411A (en) * 2001-05-11 2002-11-29 Sony Corp Ofdm modulation apparatus and method
JP2006331316A (en) * 2005-05-30 2006-12-07 Sanyo Electric Co Ltd Filter processing circuit
JP2007316844A (en) * 2006-05-24 2007-12-06 Nec Electronics Corp Filter processor, multiplier and motion compensation processor
JP2008124948A (en) * 2006-11-15 2008-05-29 Nec Electronics Corp Wireless communication apparatus and communication processing circuit
JP2015053705A (en) * 2014-10-20 2015-03-19 キヤノン株式会社 Image processing apparatus, and program and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002344411A (en) * 2001-05-11 2002-11-29 Sony Corp Ofdm modulation apparatus and method
JP2006331316A (en) * 2005-05-30 2006-12-07 Sanyo Electric Co Ltd Filter processing circuit
JP4519001B2 (en) * 2005-05-30 2010-08-04 三洋電機株式会社 Filter processing circuit
JP2007316844A (en) * 2006-05-24 2007-12-06 Nec Electronics Corp Filter processor, multiplier and motion compensation processor
JP4516051B2 (en) * 2006-05-24 2010-08-04 ルネサスエレクトロニクス株式会社 Filter processing device, multiplier, and motion compensation processing device
JP2008124948A (en) * 2006-11-15 2008-05-29 Nec Electronics Corp Wireless communication apparatus and communication processing circuit
JP2015053705A (en) * 2014-10-20 2015-03-19 キヤノン株式会社 Image processing apparatus, and program and storage medium

Similar Documents

Publication Publication Date Title
JP2011041306A (en) De-interlacing of video signal
KR100301543B1 (en) Digital Image Resizing Device
JP2002500455A (en) High-speed IDCT / downsampling combined operation method and apparatus
JP4824703B2 (en) Two-dimensional filter arithmetic apparatus and method
US20130162901A1 (en) Ringing suppression in video scalers
JP3322613B2 (en) Video signal converter
JP3267560B2 (en) Apparatus and method for reducing impulse noise
JP2007096431A (en) Digital video format down-conversion apparatus and method with optional conversion ratio
KR20020015794A (en) Cubic convolution interpolation factor producing method
JP2001086366A (en) Digital filter and processing method thereof
JP2004140702A (en) Image signal processor, gamma correcting method and display
JPH0495463A (en) Method and device for image processing
JP2011040004A (en) Image processing apparatus and image processing method
JP4674437B2 (en) Image processing apparatus and method, program, and recording medium
JP2009008945A (en) Image signal processor, image signal processing method and program
JP2003316331A (en) Display device
JPH11203467A (en) Display and its method
JP4316217B2 (en) Image processing device
JP3632993B2 (en) Electronic zoom device and electronic zoom method
US20040264809A1 (en) Image processing apparatus, image processing method and image processing system
JP3803414B2 (en) Horizontal pixel number conversion circuit
US6072911A (en) Linear image filter and the corresponding filtering method
JP2005057529A (en) Method and apparatus for image processing, and program
JPH11308575A (en) Interpolation arithmetic unit and its method
JP3257145B2 (en) Imaging device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040302

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040629