JPH03138777A - Interpolating circuit - Google Patents
Interpolating circuitInfo
- Publication number
- JPH03138777A JPH03138777A JP1277598A JP27759889A JPH03138777A JP H03138777 A JPH03138777 A JP H03138777A JP 1277598 A JP1277598 A JP 1277598A JP 27759889 A JP27759889 A JP 27759889A JP H03138777 A JPH03138777 A JP H03138777A
- Authority
- JP
- Japan
- Prior art keywords
- vertical
- horizontal
- interpolating
- interpolation
- 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.)
- Pending
Links
- 238000010586 diagram Methods 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 8
- 241000282376 Panthera tigris Species 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4007—Interpolation-based scaling, e.g. bilinear interpolation
Abstract
Description
【発明の詳細な説明】
〔概 要〕
テレビ(TV)、パーソナルコンビ、ユータ等において
使用される動画処理の補間回路に関し、期待値に近い補
間値を算出する補間回路を提供することを目的とし、
垂直及び水平方向にそれぞれ複数個からなる動画像の画
素データの、垂直及び水平方向に対してそれぞれ隣接す
る画素データを入力し算術平均を求めて出力する補間回
路において、垂直又は水平方向のいずれか一方について
は算術平均の結果の小数点以下を切り上げて出力し、他
方については算術平均の結果の小数点以下を切り捨てて
出力するように構成する。[Detailed Description of the Invention] [Summary] The present invention aims to provide an interpolation circuit that calculates interpolated values close to expected values with respect to interpolation circuits for video processing used in televisions (TVs), personal combinations, computers, etc. , In an interpolation circuit that inputs pixel data adjacent to each other in the vertical and horizontal directions of pixel data of a moving image consisting of a plurality of pixel data in the vertical and horizontal directions, calculates the arithmetic mean, and outputs the arithmetic average, For one, the decimal part of the arithmetic average result is rounded up and output, and for the other, the decimal part of the arithmetic average result is rounded down and output.
本発明は、テレビ(TV)、パーソナルコンピュータ(
以下パソコンと称する)等において使用される動画処理
の補間回路の改良に関するものである。The present invention is applicable to televisions (TV), personal computers (
This invention relates to improvements to interpolation circuits for video processing used in computers (hereinafter referred to as personal computers) and the like.
TV、パソコン等の動画処理において、画像を拡大又は
縮小すると画像がくずれるため画像がなめらかにつなが
るように、補間処理が行われる。In video processing on TVs, personal computers, etc., when images are enlarged or reduced, the images become distorted, so interpolation processing is performed so that the images are connected smoothly.
この際、より期待値に近い補間値を算出する補間回路が
要望されている。At this time, there is a demand for an interpolation circuit that calculates interpolated values closer to expected values.
第4図は一例の画像を拡大した場合の補間処理を示す図
である。FIG. 4 is a diagram showing interpolation processing when an example image is enlarged.
第5図は従来例の回路の構成を示すブロック図である。FIG. 5 is a block diagram showing the configuration of a conventional circuit.
第6図は従来例における補間値を示す図である。FIG. 6 is a diagram showing interpolated values in a conventional example.
例えば第4図に示すようにTVの画像が水平及び垂直方
向の画素からなり、各画素が明るさの度合をlO進法の
数で表示されるとする。今、TVの画像を水平、垂直方
向ともに2倍に拡大しようとすると、映像がくずれるた
めに補間処理が行われる。即ち、水平、垂直方向の各2
行目以降の画素の値(補間値)をその直前の値との算術
平均により求める。水平方向の補間値は(Xn−1+x
n )/2、垂直方向の補間値は(y−+ +y、、)
/2の演算により求める。この場合の回路を第5図に示
す。For example, as shown in FIG. 4, it is assumed that a TV image consists of pixels in the horizontal and vertical directions, and the degree of brightness of each pixel is expressed as a number in the lO base. Now, if you try to double the size of a TV image both horizontally and vertically, the image will be distorted, so interpolation processing is performed. That is, 2 in each horizontal and vertical direction.
The value of the pixel after the row (interpolated value) is determined by the arithmetic mean of the value immediately before it. The horizontal interpolation value is (Xn-1+x
n)/2, the vertical interpolation value is (y-+ +y,,)
/2 calculation. A circuit in this case is shown in FIG.
水平方向の場合は同図に示すように、補間回路lの入力
端子A、BにそれぞれXl’l−1、xnを加え整数の
演算処理を行うことにより、正論理によって出力端子C
に演算結果を出力する。正論理とは、奇数の場合演算結
果の小数点以下を切り捨てて出力することを意味する。In the horizontal direction, as shown in the figure, by adding Xl'l-1 and xn to the input terminals A and B of the interpolation circuit l, respectively, and performing integer arithmetic processing, the output terminal C is determined by positive logic.
Outputs the calculation result to. Positive logic means that in the case of an odd number, the calculation result is rounded down to the decimal point and output.
又、垂直方向の場合も、入力端子A、BにそれぞれY
n−+ s、 Y nを加え同様に整数の演算処理を行
うことにより、正論理によって出力端子Cに演算結果を
出力する。Also, in the case of vertical direction, Y is connected to input terminals A and B respectively.
By adding n-+s and Yn and similarly performing integer arithmetic processing, the arithmetic result is output to the output terminal C using positive logic.
例えば第6図し)において、動画データの2行目3列目
の“8“というデータに着目すると、垂直方向が補間値
(3+8)/2=5 (小数点以下切り捨て)、水平方
向が補間値(2+5)/2=3(小数点以下切り捨て)
として求められる。For example, in Figure 6), if we focus on the data "8" in the second row and third column of the video data, the vertical direction is the interpolated value (3+8)/2=5 (rounded down to the nearest whole number), and the horizontal direction is the interpolated value. (2+5)/2=3 (round down to the nearest whole number)
It is required as.
このようにして垂直、水平方向の補間値を求めていた。In this way, interpolated values in the vertical and horizontal directions were obtained.
しかしながら上述の回路においては、水平方向、垂直方
向ともに正論理で行っていたため、補間値(Xn−1+
X、l) /2、(ya−1+3’n ) /2は小数
点以下が切り捨てになる。例えば第6図(a)において
期待値は4であり、従来例の場合の値(3)に比べ誤差
−1となっている。したがって、期待値より補間値が小
さくなる場合が多くなるという問題点があった。However, in the above circuit, since positive logic is used in both the horizontal and vertical directions, the interpolated value (Xn-1+
X, l) /2, (ya-1+3'n) /2 is rounded down to the decimal point. For example, in FIG. 6(a), the expected value is 4, which is an error of -1 compared to the value (3) in the conventional example. Therefore, there is a problem that the interpolated value is often smaller than the expected value.
したがって本発明の目的は、期待値に近い補間値を算出
する補間回路を提供することにある。Therefore, an object of the present invention is to provide an interpolation circuit that calculates an interpolated value close to an expected value.
上記問題点は第1図に示す回路構成によって解決される
。The above problem is solved by the circuit configuration shown in FIG.
即ち第1図において、垂直及び水平方向にそれぞれ複数
個からなる動画像の画素データの、垂直及び水平方向に
対してそれぞれ隣接する画素データを人力し算術平均を
求めて出力する補間回路200.300において、
垂直又は水平方向のいずれか一方については算術平均の
結果の小数点以下を切り上げて出力し、他方については
算術平均の結果の小数点以下を切り捨てて出力するよう
に構成する。That is, in FIG. 1, interpolation circuits 200 and 300 manually calculate the arithmetic mean of pixel data adjacent to each other in the vertical and horizontal directions of a plurality of moving image pixel data in the vertical and horizontal directions, and output the result. In this case, the arithmetic mean result is rounded up to the decimal point for either the vertical or horizontal direction, and the arithmetic mean result is rounded down to the decimal point and output for the other direction.
第1図において、例えば垂直補間演算を正論理の補間回
路200(同図(a))によって行うとすると、小数点
以下は切り捨てになる。又、水平補間演算を負論理の補
間回路300(同図(b))によって行うと、小数点以
下は切り上げになる。In FIG. 1, for example, if the vertical interpolation calculation is performed by the positive logic interpolation circuit 200 (FIG. 1(a)), the decimal places are rounded down. Furthermore, when the horizontal interpolation calculation is performed by the negative logic interpolation circuit 300 (FIG. 3(b)), the fractions below the decimal point are rounded up.
この結果、垂直方向と水平方向による補間演算の結果が
平均化され、ともに正論理演算を行う場合に比べ期待値
に近い演算値を得ることができる。As a result, the results of the interpolation calculations in the vertical and horizontal directions are averaged, and a calculated value closer to the expected value can be obtained than when positive logic calculations are performed in both directions.
第2図は本発明の実施例の回路の構成を示すブる。 FIG. 2 shows the configuration of a circuit according to an embodiment of the present invention.
全図を通じて同一符号は同一対象物を示す。The same reference numerals indicate the same objects throughout the figures.
第2図に示すように、例えば垂直方向は正論理の回路に
より求め、水平方向は負論理の回路により求める。この
結果、垂直方向は演算結果の小数点以下が切り捨てられ
るが、水平方向は小数点以下が切り上げになる。As shown in FIG. 2, for example, the vertical direction is determined by a positive logic circuit, and the horizontal direction is determined by a negative logic circuit. As a result, the decimal parts of the calculation result are rounded down in the vertical direction, but the decimal parts in the horizontal direction are rounded up.
第3図において、例えば動画データの2行目3列目の“
8”というデータに着目すると、期待補間値は“4”で
ある(同図(a))。一方、実施例による方法では、垂
直補間値が(3+8)/2=5 (小数点以下切り捨て
)、水平補間値が(2+5)/2=4(小数点以下切り
上げ)と求められる(同図(b))。In FIG. 3, for example, “
Focusing on the data "8", the expected interpolated value is "4" ((a) in the same figure). On the other hand, in the method according to the embodiment, the vertical interpolated value is (3+8)/2=5 (rounded down to the nearest whole number), The horizontal interpolation value is obtained as (2+5)/2=4 (rounding up to the nearest whole number) ((b) in the same figure).
この結果、期待値との誤差は0になる。As a result, the error from the expected value becomes 0.
このようにして期待値に近い補間値を得ることができる
。In this way, an interpolated value close to the expected value can be obtained.
第2図は本発明の実施例の回路の構成を示すブロック図
、
第3図は実施例における補間値を示す図、第4図は一例
の画像を拡大した場合の補間処理を示す図、
第5図は従来例の回路の構成を示すブロック図、第6図
は従来例における補間値を示す図である。FIG. 2 is a block diagram showing the configuration of a circuit according to an embodiment of the present invention; FIG. 3 is a diagram showing interpolation values in the embodiment; FIG. 4 is a diagram showing interpolation processing when an example image is enlarged; FIG. 5 is a block diagram showing the configuration of a conventional circuit, and FIG. 6 is a diagram showing interpolated values in the conventional example.
図において 200.300は補間回路 を示す。In the figure 200.300 is an interpolation circuit shows.
以上説明したように本発明によれば、補間値として従来
の場合より期待値に近い値を得ることができる。As explained above, according to the present invention, it is possible to obtain a value closer to the expected value as an interpolated value than in the conventional case.
第1図は本発明の原理図、
正論理
(D、)
負論理
(b)
本名さ9月の原チ里図
第7図
C= (A+8)/2
イ芝釆イ列の回路の構成を示すフ”Q、y7図2 5
図
C= (A tB)/2 C二
(X + B )/2−コヨ 論理(重置ネ山闇)
負論理 (7L−f−補間ン(
0) (1,、)本発
明の寅& 4!’1の回路の構成を示オブロ・、り2第
2 図
ネ(弓将イJ1
(α)
わジ采3列【二とメする半山面イ面
(1))
従来(列1:お【するネ縛1間イJj 乞うテごコを2
第 乙 し凸
市
ム4
へ
岨
画Figure 1 is a diagram of the principle of the present invention. Positive logic (D,) Negative logic (b) Figure 7 shows the configuration of the circuit in series A. Indicates F”Q,y7Figure 2 5
Diagram C = (A tB)/2 C2 (X + B)/2-Koyo Logic (superimposition)
Negative logic (7L-f-interpolation)
0) (1,,) Tiger of the present invention & 4! The configuration of the circuit of '1 is shown. Tied up for 1 minute
Part 2
Claims (1)
素データの、垂直及び水平方向に対してそれぞれ隣接す
る画素データを入力し算術平均を求めて出力する補間回
路(200、300)において、垂直又は水平方向のい
ずれか一方については算術平均の結果の小数点以下を切
り上げて出力し、他方については算術平均の結果の小数
点以下を切り捨てて出力するようにしたことを特徴とす
る補間回路。In the interpolation circuits (200, 300) that input pixel data adjacent to each other in the vertical and horizontal directions of pixel data of a moving image consisting of a plurality of pixel data in the vertical and horizontal directions, calculate the arithmetic mean, and output the arithmetic average. An interpolation circuit characterized in that for one of the horizontal directions, the result of arithmetic mean is rounded up and outputted, and for the other, the result of arithmetic mean is rounded down and outputted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1277598A JPH03138777A (en) | 1989-10-25 | 1989-10-25 | Interpolating circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1277598A JPH03138777A (en) | 1989-10-25 | 1989-10-25 | Interpolating circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03138777A true JPH03138777A (en) | 1991-06-13 |
Family
ID=17585675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1277598A Pending JPH03138777A (en) | 1989-10-25 | 1989-10-25 | Interpolating circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03138777A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0660172A (en) * | 1992-06-11 | 1994-03-04 | Internatl Business Mach Corp <Ibm> | Method and apparatus for variable expansion of picture |
-
1989
- 1989-10-25 JP JP1277598A patent/JPH03138777A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0660172A (en) * | 1992-06-11 | 1994-03-04 | Internatl Business Mach Corp <Ibm> | Method and apparatus for variable expansion of picture |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0677958B1 (en) | Motion adaptive scan conversion using directional edge interpolation | |
US6456329B1 (en) | De-interlacing of video signals | |
US5357287A (en) | Method of and apparatus for motion estimation of video data | |
JPH0316384A (en) | Video signal processing circuit | |
KR100504976B1 (en) | Signal converter and method | |
JPH0435297A (en) | Control signal diffusion device | |
JP2826018B2 (en) | Video signal noise reduction system | |
JP5192087B2 (en) | Image processing apparatus and image processing method | |
US7532773B2 (en) | Directional interpolation method and device for increasing resolution of an image | |
JPH03138777A (en) | Interpolating circuit | |
US20030007091A1 (en) | Scan line conversion circuit | |
JP5616014B2 (en) | Method for generating a distance representing the direction of an edge in a video picture, corresponding device, and use of the method for deinterlacing or format conversion | |
JP4910254B2 (en) | Image processing apparatus and method | |
KR950011530B1 (en) | Digital zooming system | |
US20060023118A1 (en) | System and method for accumulative stillness analysis of video signals | |
CN107517356B (en) | Deinterlacing image processing method and device | |
JPH05176323A (en) | Image distortion correction system | |
JPS61184687A (en) | Control system of multilevel image magnification and reduction | |
JPS63166369A (en) | Mobile vector detection circuit | |
JP4257650B2 (en) | Image signal processing circuit | |
US20040264809A1 (en) | Image processing apparatus, image processing method and image processing system | |
JP2910137B2 (en) | Video signal synthesizer | |
JP3286345B2 (en) | Motion vector detection circuit | |
KR19990011449A (en) | Edge-based Vertical Interpolation Method and Appropriate Apparatus | |
JPH0465982A (en) | Picture expansion processor |