JP3168661B2 - Method and apparatus for increasing the number of pixels - Google Patents

Method and apparatus for increasing the number of pixels

Info

Publication number
JP3168661B2
JP3168661B2 JP01230692A JP1230692A JP3168661B2 JP 3168661 B2 JP3168661 B2 JP 3168661B2 JP 01230692 A JP01230692 A JP 01230692A JP 1230692 A JP1230692 A JP 1230692A JP 3168661 B2 JP3168661 B2 JP 3168661B2
Authority
JP
Japan
Prior art keywords
circuit
output
pixel
value
register
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP01230692A
Other languages
Japanese (ja)
Other versions
JPH05207268A (en
Inventor
宏明 福岡
新蔵 下村
紀光 宮崎
Original Assignee
神鋼電機株式会社
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 神鋼電機株式会社 filed Critical 神鋼電機株式会社
Priority to JP01230692A priority Critical patent/JP3168661B2/en
Publication of JPH05207268A publication Critical patent/JPH05207268A/en
Application granted granted Critical
Publication of JP3168661B2 publication Critical patent/JP3168661B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4007Interpolation-based scaling, e.g. bilinear interpolation

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば、カラープリン
タやスキャナ等において、画像の拡大や画像品質の向上
のために行なわれる画素数増大方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for increasing the number of pixels for enlarging an image and improving image quality in, for example, a color printer and a scanner.

【0002】[0002]

【従来の技術】この種の画素数増大方式としては、同一
画素の値を並べて画素を増大させる方式がある。この方
式は、拡大倍率が整数である場合には問題はないが、小
数点のある拡大倍率の場合、例えば1.3倍等の場合に
は、切捨て、切上げ処理が不可欠で、図1に示すように
線が細くなったり太くなったりする不具合が生じる。
2. Description of the Related Art As a method of increasing the number of pixels of this kind, there is a method of increasing the number of pixels by arranging values of the same pixel. This method has no problem when the enlargement magnification is an integer, but when the enlargement magnification has a decimal point, for example, when the magnification is 1.3 times, truncation and round-up processing are indispensable, and as shown in FIG. There is a problem that the line becomes thinner or thicker.

【0003】図6において、(A)は元の画素配列、
(B)は上記方式による拡大倍率=1.3の拡大結果で
あり、画素濃度一定(ドットの有無のみ)でかつ画素サ
イズ一定(整数倍でのみ配置可能)であるため、(B)
に示すように正規の1.3倍より細くなったり太くなっ
たりする。
In FIG. 6, (A) shows an original pixel arrangement,
(B) shows the result of the enlargement by the above-described method at an enlargement magnification of 1.3, and since the pixel density is constant (only the presence or absence of a dot) and the pixel size is constant (can be arranged only at an integral multiple), (B)
As shown in the figure, it becomes thinner or thicker than the normal 1.3 times.

【0004】[0004]

【発明が解決しようとする課題】図7は、一般のコンピ
ュータで扱う画像の画素配列を示したものである。ここ
で、各画素の占める区域は、画素の値Dijで示される濃
度の色で満たされるものと考え、画素数を増加させる場
合、人間の目の、周辺との境界に中間の色を配置すると
それ相当の大きさに見えるという性質を利用して、一般
に次の「補間」による方法が採られる。
FIG. 7 shows a pixel arrangement of an image handled by a general computer. Here, the area occupied by each pixel is considered to be filled with the color having the density indicated by the pixel value D ij , and when increasing the number of pixels, an intermediate color is arranged at the boundary between the human eye and the periphery. Then, taking advantage of the fact that the image appears to be a considerable size, a method based on the following “interpolation” is generally adopted.

【0005】即ち、拡大倍率の逆数の大きさの画素を考
え、その寸法で画像を切取り、画素数を増加させる方法
であり、これを図8に示す。図8において、実線は元の
画素構成を示し、点線は新しい画素構成を示す。この従
来の補間による方法は、隣の画素との境界上に新しい画
素を設けるときのみ、当該画素が中間の値となり、滑ら
かな「補間」は望めない。
[0005] That is, a method is considered in which a pixel whose size is the reciprocal of the enlargement magnification is considered, an image is cut out at that size, and the number of pixels is increased. This is shown in FIG. In FIG. 8, the solid line indicates the original pixel configuration, and the dotted line indicates the new pixel configuration. In this conventional interpolation method, only when a new pixel is provided on the boundary with an adjacent pixel, the pixel has an intermediate value, and smooth "interpolation" cannot be expected.

【0006】本発明はこの問題を解消するためになされ
たもので、滑らかな補間により画素数を増大させること
ができ、従来に比し、より高品質の拡大画像を得ること
ができる。画素数増大方式を提供することを目的とす
る。
The present invention has been made to solve this problem. The number of pixels can be increased by smooth interpolation, and a higher quality enlarged image can be obtained as compared with the related art. It is an object of the present invention to provide a method for increasing the number of pixels.

【0007】[0007]

【課題を解決するための手段】本発明は上記目的を達成
するため、請求項1では、元画像の画素数を所望の拡大
倍率で縦横に増加させて新しい画素からなる画像とする
画素数増大方法であって、元画像の画素サイズと同一の
画素サイズの窓枠を設定し、当該窓枠を横または縦に、
それぞれ上記拡大倍率の逆数分ずつずらすことにより、
新しい画素を発生させ、当該窓枠をずらす方向と同一の
方向に、前記新たに発生した画素を配置し、前記新しい
画素の値を、上記窓枠から覗いて見える上記元画像の画
素の値の平均値とし、前記平均値Dは、窓枠と重なる
元画像における、左上の画素、右上の画素、左下の画
素、右下の画素のそれぞれの値、D1、D2、D3、D
4と、横方向および縦方向への、前記窓枠のずらす距離
の値、a、bとからD=(D1−D2−D3+D4)×
a×b+(D2−D1)×a+(D3−D1)×b+D
1)により計算する構成とした。
Since the present invention SUMMARY OF THE INVENTION The To achieve the above object, in claim 1, of the desired number of pixels of Motoe magnifying
Increase the image vertically and horizontally at the magnification to make an image consisting of new pixels
In the method of increasing the number of pixels, a window frame having the same pixel size as the pixel size of the original image is set, and the window frame is horizontally or vertically set.
By shifting each by the reciprocal of the above magnification,
Generates a new pixel and shifts the window frame in the same direction.
Direction, the placing newly generated pixels, the value of the new pixel, an average value D of pixel values of the Motoe image visible peeping from the window frame, the average value D, and window frame Overlap
Upper left pixel, upper right pixel, lower left image in the original image
Element, each value of lower right pixel, D1, D2, D3, D
4, and the distance to shift the window frame in the horizontal and vertical directions
From the values of a and b, D = (D1−D2−D3 + D4) ×
a × b + (D2-D1) × a + (D3-D1) × b + D
The calculation is performed according to 1) .

【0008】請求項2では、元画像の画素サイズと同一
の画素サイズの窓枠を設定し、当該窓枠を横または縦
に、それぞれ所望の拡大倍率の逆数分ずつずらすことに
より新しい画素を発生させ、この新しい画素を前記窓枠
をずらす方向と同一の方向に配置して新しい画素からな
る画像とする際に、この新しい画素の値を求める演算ブ
ロックを備えた画素数増大装置であって、 上記演算ブロ
ックは、横方向の拡大倍率の逆数分ずつ窓枠をずらした
累積値の小数部を演算する横倍率累積値演算回路5と、
縦方向の拡大倍率の逆数分ずつ窓枠をずらした累積値の
小数部を演算する縦倍率累積値演算回路7と、上記窓枠
と重なる元画像における、左上の画素、右上の画素、左
下の画素、右下の画素のそれぞれの値を入力する、レジ
スタD1、レジスタD2、レジスタD3、レジスタD4
と、上記レジスタD2の値から上記レジスタD1の値を
減算する引算回路21と、上記レジスタD3の値から上
記レジスタD1の値を減算する引算回路22と、上記レ
ジスタD4の値から上記レジスタD3の値を減算する引
算回路24と、上記引算回路24の出力から上記引算回
路21の出力を減算する引算回路23と、上記横倍累積
値演算回路5の出力と前記引算回路21の出力を掛け算
する掛け算回路25と、上記縦倍累積値演算回路7の出
力と前記引算回路22の出力を掛け算する掛け算回路2
8と、上記横倍累積値演算回路5の出力と上記縦倍累積
値演算回路7の出力を掛け算する掛け算回路26と、上
記引算回路23の出力と上記掛け算回路26の出力を掛
け算する掛け算回路27と、上記レジスタD1と上記掛
け算回路25の出力と上記掛け算回路27の出力と上記
掛け算回路28の出力の総和を計算する加算回路17と
を有する構成とした。 また、請求項3では、元画像の画
素サイズと同一の画素サイズの窓枠を設定し、当該窓枠
を横または縦に、それぞれ所望の拡大倍率の逆数分ずつ
ずらすことにより新しい画素を発生させ、この新しい画
素を前記窓枠をずらす方向と同一の方向に配置して新し
い画素からなる画像とする際に、この新しい画素の値を
求める演算ブロックを備えた画素数増大装置であって、
上記演算ブロックは、横方向の拡大倍率の逆数分ずつ窓
枠をずらした累積値の小数部を演算する横倍率累積値演
算回路5と、縦方向の拡大倍率の逆数分ずつ窓 枠をずら
した累積値の小数部を演算する縦倍率累積値演算回路7
と、上記横倍累積値演算回路5の出力の補数を演算する
横倍率補数演算回路6と、上記縦倍累積値演算回路7の
出力の補数を演算する縦倍率補数演算回路8と、上記窓
枠と重なる元画像における、左上の画素、右上の画素、
左下の画素、右下の画素のそれぞれの値を入力する、レ
ジスタD1、レジスタD2、レジスタD3、レジスタD
4と、上記横倍率補数演算回路6の出力と上記縦倍率補
数演算回路8の出力を掛け算する掛け算回路9と、上記
横倍率累積値演算回路5の出力と上記縦倍率補数演算回
路8の出力を掛け算する掛け算回路10と、上記縦倍率
累積値演算回路7の出力と上記横倍率補数演算回路6の
出力を掛け算する掛け算回路11と、上記横倍率累積値
演算回路5の出力と上記縦倍率累積値演算回路7の出力
を掛け算する掛け算回路12と、上記レジスタD1の値
と上記掛け算回路9の出力を掛け算する掛け算回路13
と、上記レジスタD2の値と上記掛け算回路10 の出力
を掛け算する掛け算回路14と、上記レジスタD3の値
と上記掛け算回路11の出力を掛け算する掛け算回路1
5と、上記レジスタD4の値と上記掛け算回路12の出
力を掛け算する掛け算回路16と、上記掛け算回路13
の出力と、上記掛け算回路14の出力と、上記掛け算回
路15の出力と、上記掛け算回路16の出力の総和を計
算する加算回路17とを有する構成とした。
According to the second aspect, the pixel size is the same as the pixel size of the original image.
Set a window frame with a pixel size of
Each time by the reciprocal of the desired magnification.
Generate a newer pixel and call this new pixel the window frame
Position in the same direction as the
Calculation image for calculating the value of this new pixel.
A number of pixels increased device having a locking, the arithmetic Bro
The window frame was shifted by the reciprocal of the horizontal magnification.
A lateral magnification cumulative value calculation circuit 5 for calculating a decimal part of the cumulative value;
The cumulative value of the window frame shifted by the reciprocal of the vertical magnification
A vertical magnification cumulative value calculation circuit 7 for calculating a decimal part;
Upper left pixel, upper right pixel, left
Register each value of the lower pixel and the lower right pixel.
Star D1, register D2, register D3, register D4
And the value of the register D1 from the value of the register D2
A subtraction circuit 21 for subtracting the data from the register D3;
A subtraction circuit 22 for subtracting the value of the register D1;
Subtract the value of the register D3 from the value of the register D4.
From the output of the subtraction circuit 24
A subtraction circuit 23 for subtracting the output of the path 21;
Multiplying the output of the value operation circuit 5 with the output of the subtraction circuit 21
Output from the multiplication circuit 25 and the vertical double accumulation value calculation circuit 7
Multiplication circuit 2 for multiplying the output of the subtraction circuit 22 by the force
8, the output of the horizontal double accumulation value calculation circuit 5 and the vertical double accumulation
A multiplication circuit 26 for multiplying the output of the value operation circuit 7;
The output of the subtraction circuit 23 and the output of the multiplication circuit 26 are multiplied.
A multiplication circuit 27 for multiplication, the register D1 and the multiplication circuit
The output of the multiplication circuit 25, the output of the multiplication circuit 27 and the
An adder circuit 17 for calculating the sum of the outputs of the multiplication circuit 28;
. In the third aspect, the image of the original image
Set a window frame of the same pixel size as the original size, and
Horizontally or vertically, each with the reciprocal of the desired magnification
A new pixel is generated by shifting
The window frame in the same direction as the window frame
When making an image consisting of pixels, the value of this new pixel is
A pixel number increasing device having a calculation block to be obtained,
The above calculation block is a window of the reciprocal of the horizontal magnification.
Calculates the decimal part of the accumulated value with the frame shifted, the lateral magnification accumulated value
A calculation circuit 5, the longitudinal opposite minutes each window frame magnification of shifting
Vertical magnification cumulative value calculation circuit 7 for calculating the decimal part of the calculated cumulative value
And the complement of the output of the horizontal double cumulative value calculation circuit 5 is calculated.
The horizontal magnification complement arithmetic circuit 6 and the vertical double cumulative value arithmetic circuit 7
A vertical magnification complement calculating circuit 8 for calculating the complement of the output;
Upper left pixel, upper right pixel,
Enter the values of the lower left pixel and lower right pixel.
Register D1, Register D2, Register D3, Register D
4 and the output of the horizontal magnification complement operation circuit 6 and the vertical magnification complement
A multiplication circuit 9 for multiplying the output of the number operation circuit 8;
The output of the horizontal magnification cumulative value calculation circuit 5 and the calculation of the vertical magnification complement
A multiplication circuit 10 for multiplying the output of the path 8 and the vertical magnification
The output of the accumulated value operation circuit 7 and the output of the lateral magnification complement operation circuit 6
A multiplying circuit 11 for multiplying the output;
The output of the arithmetic circuit 5 and the output of the vertical magnification cumulative value arithmetic circuit 7
, And a value of the register D1
And a multiplication circuit 13 for multiplying the output of the multiplication circuit 9
And the value of the register D2 and the output of the multiplication circuit 10.
And a value of the register D3
And a multiplication circuit 1 for multiplying the output of the multiplication circuit 11
5, the value of the register D4 and the output of the multiplication circuit 12.
A multiplication circuit 16 for multiplying the force and the multiplication circuit 13
, The output of the multiplication circuit 14, and the multiplication
The sum of the output of the path 15 and the output of the multiplication circuit 16 is calculated.
And an adder circuit 17 for performing the calculation.

【0009】[0009]

【作用】本発明では、拡大倍率の逆数分ずつ縦横にずら
して発生させる新しい画素の値を、窓枠から見える元の
画素の値の平均値とするので、滑らかに補間して画像を
拡大することができる。
According to the present invention, the value of a new pixel generated by shifting vertically and horizontally by the reciprocal of the enlargement factor is taken as the average of the values of the original pixels seen from the window frame, so that the image is enlarged by smooth interpolation. be able to.

【0010】[0010]

【実施例】以下、本発明の1実施例を図面を参照して説
明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0011】図1において、実線で囲む画素は元の画素
Pを表し、この元の画素Pの大きさと同一の大きさの窓
枠Wを想定し、この窓枠Wから元の画像を覗いて、見え
る画素の値の平均値を新しい画素PPの値とする。そし
て、拡大倍率K(Kx 、Ky )は、窓枠Wを移動させる
距離(x=a,y=b)を拡大倍率Kの逆数とする。す
なわち、窓枠Wを拡大倍率Kの逆数分だけずらしなが
ら、新しい画素PPの値を求める。この場合、窓枠Wを
移動する距離に応じて、窓枠Wから見える画素の組合わ
せは色々変わってくるが、これを集約して単純化すれ
ば、周辺の4箇の画素から新しい1つの画素を作る問題
に還元できる。これを図2について説明する。
In FIG. 1, a pixel surrounded by a solid line represents an original pixel P. Assuming a window frame W having the same size as that of the original pixel P, the original image is viewed from the window frame W. , The average value of the visible pixels is taken as the value of the new pixel PP. The magnification K (K x , K y ) is obtained by setting the distance (x = a, y = b) by which the window frame W is moved as the reciprocal of the magnification K. That is, the value of the new pixel PP is obtained while shifting the window frame W by the reciprocal of the magnification K. In this case, the combination of pixels that can be seen from the window frame W changes in various ways according to the distance that the window frame W moves, but if these are combined and simplified, a new one from four neighboring pixels can be obtained. It can be reduced to the problem of making pixels. This will be described with reference to FIG.

【0012】図2において、D1、D2、D3、D4は
元の画素P1、P2、P3、P4の値であり、元の画素
Pの大きさを1(a、b<1)とする。新しい画素PP
の値Dを元の画素の値のしめる面積の割合で計算する
と、 D=D1×(1−a)×(1−b)+D2×a×(1−b)+D3×(1−a) ×b+D4×a×b ・・・・・・・・(1) x方向の拡大倍率KX の逆数(1/KX )=A、y方向
の拡大倍率Ky の逆数(1/Ky )=Bとすると、最初
の新しい画素はa=0、b=0であり、x方向の2番目
の新しい画素はa=A、b=0とおいて計算する。同様
にして、x方向のi番目、y方向のj番目の新しい画素
の移動距離(ずらし量)a、bは、 a=少数部分{A×(i−1)}・・・・・・・・・・・・・・・・・・(2) b=少数部分{B×(j−1)}・・・・・・・・・・・・・・・・・・(3) すなわち、Aの値を加えながら、その少数部分をaとし
て計算して、x方向へ進み、2行目の画素に戻るとき、
Bの値を加えてその少数部分をbとして、もとの計算を
繰り返せばよい。
In FIG. 2, D1, D2, D3, and D4 are the values of the original pixels P1, P2, P3, and P4, and the size of the original pixel P is 1 (a, b <1). New pixel PP
Is calculated by the ratio of the area of the original pixel value, D = D1 × (1-a) × (1-b) + D2 × a × (1-b) + D3 × (1-a) × b + D4 × a × b (1) Reciprocal (1 / K X ) of magnification X K in the x direction = A, reciprocal (1 / K y ) of magnification K y in the y direction = Assuming that B, the first new pixel is a = 0 and b = 0, and the second new pixel in the x direction is a = A and b = 0. Similarly, the moving distances (shift amounts) a and b of the i-th new pixel in the x direction and the j-th pixel in the y direction are as follows: a = decimal part {A × (i−1)}. (2) b = decimal part {B × (j-1)} (3) While adding the value of A, calculate the minor part as a, and proceed in the x direction and return to the pixels in the second row,
The original calculation may be repeated by adding the value of B and setting the minor part to b.

【0013】図3に新しい画素の値Dを演算する演算ブ
ロックの1例を示す。
FIG. 3 shows an example of a calculation block for calculating the value D of a new pixel.

【0014】図3において、1はD1レジスタ、2はD
2レジスタ、3はD3レジスタおよび4はD4レジスタ
レジスタである。5は横倍率累積演算部であって、上記
(2)式を演算し、aを出力する。6は横倍率補数演算
部であって、aの補数(1−a)を演算する。7は縦倍
率累積演算部であって、上記(3)式を演算し、bを出
力する。8は縦倍率補数演算部であって、bの補数(1
−b)を演算する。9はかけ算回路であって、(1−
a)×(1−b)を演算する。10はかけ算回路であっ
て、a×(1−b)を演算する。11はかけ算回路であ
って、(1−a)×bを演算する。12はかけ算回路で
あって、a×bを演算する。
In FIG. 3, 1 is a D1 register and 2 is a D1 register.
2 is a register, 3 is a D3 register, and 4 is a D4 register. Reference numeral 5 denotes a lateral magnification accumulation calculating unit that calculates the above equation (2) and outputs a. Reference numeral 6 denotes a lateral magnification complement computing unit that computes the complement (1-a) of a. Reference numeral 7 denotes a vertical magnification accumulating section which calculates the above equation (3) and outputs b. Reference numeral 8 denotes a vertical magnification complement calculator, which is the complement of b (1
-B) is calculated. 9 is a multiplication circuit, and (1-
a) × (1-b) is calculated. Reference numeral 10 denotes a multiplication circuit, which calculates a × (1-b). Reference numeral 11 denotes a multiplication circuit, which calculates (1−a) × b. Reference numeral 12 denotes a multiplication circuit that calculates a × b.

【0015】13はかけ算回路であって、D1×(1−
a)×(1−b)を演算する。14はかけ算回路であっ
て、D2×a×(1−b)を演算する。15はかけ算回
路であって、D3×a×(1−b)を演算する。16は
かけ算回路であって、D4×a×bを演算する。17は
加算回路であって、上記(1)式を演算する。
Reference numeral 13 denotes a multiplication circuit, which is D1 × (1-
a) × (1-b) is calculated. Reference numeral 14 denotes a multiplication circuit that calculates D2 × a × (1-b). Reference numeral 15 denotes a multiplication circuit, which calculates D3 × a × (1-b). Reference numeral 16 denotes a multiplication circuit that calculates D4 × a × b. Reference numeral 17 denotes an addition circuit, which calculates the above equation (1).

【0016】ところで、この計算に使用する画素の値
は、2列分の画素の値が必要であるが、まず最初の2列
の画素の値を1箇ずつ取込み、続いて、次の画素の値を
まえの値をシフトしながら取り込む。計算が終わると、 aa=整数部分{A×(i−1)}・・・・・・・・・・・・・・・・・(4) を計算し、このaaの値が変化すると、新しい画素の値
を取込み、変化の無い場合はそのままの値でaの値を変
えて計算すればよい。y方向についても、まえの2行の
右はしまで計算したあと、 bb=整数部分{A×(j−1)}・・・・・・・・・・・・・・・・・(5) を計算し、変化のあった場合には新しい行に変えて計算
する。
By the way, the pixel values used in this calculation need the pixel values of two columns. First, the pixel values of the first two columns are fetched one by one, and then the pixel values of the next pixel are obtained. Captures a value while shifting the previous value. When the calculation is completed, aa = integer part {A × (i−1)} (4) is calculated, and when the value of aa changes, The value of the new pixel may be taken in, and if there is no change, the value of a may be changed with the value as it is to calculate. Also in the y direction, after calculating up to the right barb of the previous two lines, bb = integer part {A × (j−1)} (5) ) Is calculated, and if there is a change, change to a new line and calculate.

【0017】図5に、本発明の方式と前記従来の方式と
を拡大倍率KX =1.3、Ky =1の場合について対比
して示す。同図において、(A)は元の画像、(B)は
従来方式による拡大画像、(C)は本発明の方式による
補間して拡大した画像である。
FIG. 5 shows a comparison between the system of the present invention and the above-mentioned conventional system in the case where the magnification K X = 1.3 and K y = 1. In the figure, (A) is an original image, (B) is an enlarged image according to the conventional method, and (C) is an image enlarged by interpolation according to the method of the present invention.

【0018】上記した演算処理では、上記(1)式のか
け算を実行しており、各項を8ビットとすると、最低2
4ビットの計算が必要になる。ところが、一般にコンピ
ュータCPUによる画像処理は高速処理を要求されてお
り、CPUの1サイクルタイムに処理を完了させるため
には、完全な並行処理が要求される。これをハードで実
現しようとすると、大きな回路構成となり、実現不可能
であったり、高価になったりする。
In the above-described arithmetic processing, the multiplication of the above equation (1) is performed. If each term is 8 bits, at least 2
Four-bit calculations are required. However, image processing by the computer CPU generally requires high-speed processing, and complete parallel processing is required to complete the processing in one cycle time of the CPU. If this is to be realized by hardware, a large circuit configuration is required, which makes it impossible or expensive.

【0019】一方、計算の誤差によって発生する濃度の
差について、同じ大きさの誤差であっても、人間の目が
認識できる場合と、出来ない場合とがあり、これは次の
原則による。
On the other hand, the difference in density caused by a calculation error may or may not be recognized by the human eye even if the error has the same magnitude. This is based on the following principle.

【0020】(A)差の少ない画素の値の間にあって
は、周期的に発生する誤差は認識される。
(A) Periodically occurring errors are recognized between the pixel values having a small difference.

【0021】(B)差の大きい画素の値の間にある画素
の計算誤差は認識されにくい。
(B) It is difficult to recognize a calculation error of a pixel located between pixels having a large difference.

【0022】例えば、値が同じ100である画素にはさ
まれた、新しく100になる画素が計算誤差で105に
なった場合には認識されやすいが、200と0との間に
あって、100でなければならない画素が105と計算
されるような場合には殆ど認識できない。
For example, it is easy to recognize that a pixel having a new value of 100 sandwiched between pixels having the same value of 100 and having a calculation error of 105 is easy to recognize, but it is between 200 and 0 and must not be 100. When the pixel to be calculated is 105, it is hardly recognized.

【0023】この原理を利用すると、誤差が隣合った画
素の値の差に比例して発生するような計算式に変換する
ことにより、実用的に問題のない、簡単な回路で計算す
ることができる。すなわち、上記(1)式を変形して下
記(6)式の形にすることにより、誤差によって発生す
る濃度差の目立たない、補間計算ができる。
By utilizing this principle, it is possible to calculate with a simple circuit having no practical problem by converting it into a calculation formula in which an error occurs in proportion to the difference between the values of adjacent pixels. it can. That is, by transforming the above equation (1) into the form of the following equation (6), it is possible to perform an interpolation calculation in which the density difference caused by an error is not noticeable.

【0024】 D=(D1−D2D3D4)×a×b+(D2−D1)×a +(D3−D 1)×b+D1 ・・・・・・・・(6) 図4にこの(6)式を演算するための演算ブロックの1
例を示す。同図において、21〜24は引算回路、25
〜28はかけ算回路である。
D = (D1−D2 D3 + D4) × a × b + (D2−D1) × a + (D3−D1) × b + D1 (6) FIG. 6) One of the operation blocks for calculating the expression
Here is an example. In the figure, 21 to 24 are subtraction circuits, 25
28 are multiplication circuits.

【0025】[0025]

【発明の効果】本発明は以上説明した通り、所定の大き
さの窓枠を設定し、拡大倍率の逆数分ずつ窓枠を縦横に
ずらして発生させる新しい画素の値を、窓枠から見える
元の画素の値の平均値とするので、滑らかに補間して画
像を拡大することができ、しかも新しい画素の値の補間
計算は単純な計算で済むので、高速にコンピュータ処理
することが可能となる。また、計算誤差が隣合った画素
の値の差に比例して発生するように計算を行なうので、
計算誤差によって発生する濃度の差を実用上目立たない
程度に抑えることができ、従来に比し、より忠実に高品
質に元の画像を拡大することができる。
As described above, the present invention sets a window frame of a predetermined size and shifts the window frame vertically and horizontally by the reciprocal of the magnification to generate a new pixel value which can be seen from the window frame. Since the average value of the pixel values is used, the image can be enlarged by smooth interpolation, and the interpolation calculation of the new pixel values can be a simple calculation, so that the computer processing can be performed at high speed. . Also, since the calculation is performed so that the calculation error occurs in proportion to the difference between the values of adjacent pixels,
The difference in density caused by a calculation error can be suppressed to a level that is not noticeable in practical use, and the original image can be magnified more faithfully and with higher quality as compared with the related art.

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

【図1】本発明の実施例を説明するための画素構成を示
す図である。
FIG. 1 is a diagram showing a pixel configuration for explaining an embodiment of the present invention.

【図2】本発明の実施例による新しい画素の値の計算方
法を説明するための図である。
FIG. 2 is a diagram illustrating a method of calculating a new pixel value according to an embodiment of the present invention.

【図3】本発明による補間演算を行なう演算ブロックの
1例を示す図である。
FIG. 3 is a diagram showing an example of an operation block for performing an interpolation operation according to the present invention.

【図4】本発明による補間演算を行なう演算ブロックの
他の1例を示す図である。
FIG. 4 is a diagram showing another example of an operation block for performing an interpolation operation according to the present invention.

【図5】本発明の方式による拡大画像と従来方式行によ
る拡大画像とを比較して示す図である。
FIG. 5 is a diagram showing a comparison between an enlarged image according to the method of the present invention and an enlarged image according to a conventional method row.

【図6】従来の画素数増大方を説明するための図であ
る。
FIG. 6 is a diagram for explaining a conventional method of increasing the number of pixels.

【図7】コンピュータで扱う画像の画素配列を示した図
である。
FIG. 7 is a diagram showing a pixel array of an image handled by a computer.

【図8】従来の補間による画素数増大方式を説明するた
めの図である。
FIG. 8 is a diagram for explaining a conventional pixel number increasing method by interpolation.

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

1〜4 レジスタ 5 横倍率累積値演算回路 6 横倍率補数演算回路 7 縦倍率累積値演算回路 8 縦倍率補数演算回路 9〜16 かけ算回路 17 加算回路 21〜24 引算回路 25〜28 かけ算回路 1 to 4 register 5 lateral magnification cumulative value arithmetic circuit 6 lateral magnification complementary arithmetic circuit 7 vertical magnification cumulative value arithmetic circuit 8 vertical magnification complementary arithmetic circuit 9 to 16 multiplication circuit 17 addition circuit 21 to 24 subtraction circuit 25 to 28 multiplication circuit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平2−194481(JP,A) 特開 昭63−174184(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/38 - 1/393 G06T 3/40 ──────────────────────────────────────────────────続 き Continuation of front page (56) References JP-A-2-194481 (JP, A) JP-A-63-174184 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04N 1/38-1/393 G06T 3/40

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 元画像の画素数を所望の拡大倍率で縦横
増加させて新しい画素からなる画像とする画素数増大
方法であって、 元画 像の画素サイズと同一の画素サイズの窓枠を設定
し、 当該窓枠を横または縦に、それぞれ上記拡大倍率の逆数
分ずつずらすことにより、新しい画素を発生させ、当該窓枠をずらす方向と同一の方向に、前記新たに発生
した画素を配置し、 前記新しい画素の値を、上記窓枠から覗いて見える上記
元画像の画素の値の平均値とし、前記平均値Dは、 窓枠と重なる元画像における、左上の画素、右上の画
素、左下の画素、右下の画素のそれぞれの値、D1、D
2、D3、D4と、 横方向および縦方向への、前記窓枠のずらす距離の値、
a、bとからD=(D1−D2−D3+D4)×a×b
+(D2−D1)×a+(D3−D1)×b+D1)に
より計算する ことを特徴とする画素数増大方法
1. A vertically and horizontally Motoe number of pixels of the image at a desired magnification
The number of pixels increases to an image consisting of new pixels is increased to
A method, set the window frame of the pixel size and the same pixel size Motoe image, the window frame horizontally or vertically, by shifting each one by inverse number of the magnification, to generate new pixel, In the same direction as the direction in which the window frame is shifted,
And the value of the new pixel can be seen through the window frame.
The average value D of pixel values of image Motoe, the average value D, in the original image overlapping the window frame, the upper left pixel, the upper right image
Element, lower left pixel, lower right pixel value, D1, D
2, D3, D4, and the value of the distance to shift the window frame in the horizontal and vertical directions,
From a and b, D = (D1−D2−D3 + D4) × a × b
+ (D2-D1) × a + (D3-D1) × b + D1)
A method of increasing the number of pixels, wherein the number of pixels is calculated more .
【請求項2】 元画像の画素サイズと同一の画素サイズ
の窓枠を設定し、当該窓枠を横または縦に、それぞれ所
望の拡大倍率の逆数分ずつずらすことにより新しい画素
を発生させ、この新しい画素を前記窓枠をずらす方向と
同一の方向に配置して新しい画素からなる画像とする際
に、この新しい画素の値を求める演算ブロックを備えた
画素数増大装置であって、 上記演算ブロックは、 横方向の拡大倍率の逆数分ずつ窓枠をずらした累積値の
小数部を演算する横倍率累積値演算回路5と、 縦方向の拡大倍率の逆数分ずつ窓枠をずらした累積値の
小数部を演算する縦倍率累積値演算回路7と、 上記窓枠と重なる元画像における、左上の画素、右上の
画素、左下の画素、右下の画素のそれぞれの値を入力す
る、レジスタD1、レジスタD2、レジスタD3、レジ
スタD4と、 上記レジスタD2の値から上記レジスタD1の値を減算
する引算回路21と、 上記レジスタD3の値から上記レジスタD1の値を減算
する引算回路22と、 上記レジスタD4の値から上記レジスタD3の値を減算
する引算回路24と、 上記引算回路24の出力から上記引算回路21の出力を
減算する引算回路23と、 上記横倍累積値演算回路5の出力と前記引算回路21の
出力を掛け算する掛け算回路25と、 上記縦倍累積値演算回路7の出力と前記引算回路22の
出力を掛け算する掛け算回路28と、 上記横倍累積値演算回路5の出力と上記縦倍累積値演算
回路7の出力を掛け算する掛け算回路26と、 上記引算回路23の出力と上記掛け算回路26の出力を
掛け算する掛け算回路27と、 上記レジスタD1と上記掛け算回路25の出力と上記掛
け算回路27の出力と上記掛け算回路28の出力の総和
を計算する加算回路17とを有することを特徴とする画
素数増大装置。
2. A pixel size equal to the pixel size of the original image
And set the window frame horizontally or vertically, respectively.
New pixels by shifting by the reciprocal of the desired magnification
And this new pixel is shifted in the direction of shifting the window frame.
When arranging in the same direction to create an image consisting of new pixels
Equipped with an operation block for calculating the value of this new pixel.
In the pixel number increasing device, the arithmetic block includes a cumulative value obtained by shifting a window frame by a reciprocal of a horizontal magnification.
A horizontal magnification cumulative value calculation circuit 5 for calculating a decimal part, and a cumulative value obtained by shifting a window frame by a reciprocal of a vertical magnification.
A vertical magnification cumulative value calculation circuit 7 for calculating a decimal part ; a pixel at the upper left and a pixel at the upper right in the original image overlapping the window frame.
Enter the values for the pixel, lower left pixel, and lower right pixel.
Register D1, register D2, register D3, register
A static D4, subtract the value of the register D1 from the value of the register D2
Subtracting circuit 21 and subtracting the value of the register D1 from the value of the register D3.
Subtracting a subtraction circuit 22, the value of the register D3 from the value of the register D4 to
And an output of the subtraction circuit 21 from an output of the subtraction circuit 24.
A subtraction circuit 23 for subtracting, an output of the horizontal multiplication cumulative value calculation circuit 5 and the subtraction circuit 21
A multiplying circuit 25 for multiplying the output; an output of the vertical double accumulation value calculating circuit 7;
A multiplying circuit 28 for multiplying the output; an output of the horizontal double cumulative value calculating circuit 5 and the vertical double cumulative value calculation
A multiplication circuit 26 for multiplying the output of the circuit 7; an output of the subtraction circuit 23 and an output of the multiplication circuit 26;
A multiplication circuit 27 for multiplication, an output of the register D1 and an output of the multiplication circuit 25,
The sum of the output of the multiplication circuit 27 and the output of the multiplication circuit 28
And an addition circuit 17 for calculating
Prime number increase device.
【請求項3】 元画像の画素サイズと同一の画素サイズ
の窓枠を設定し、当該窓枠を横または縦に、それぞれ所
望の拡大倍率の逆数分ずつずらすことにより新しい画素
を発生させ、この新しい画素を前記窓枠をずらす方向と
同一の方向に配置して新しい画素からなる画像とする際
に、この新しい画素の値を求める演算ブロックを備えた
画素数増大装置であって、 上記演算ブロックは、 横方向の拡大倍率の逆数分ずつ窓枠をずらした累積値の
小数部を演算する横倍率累積値演算回路5と、 縦方向の拡大倍率の逆数分ずつ窓枠をずらした累積値の
小数部を演算する縦倍率累積値演算回路7と、 上記横倍累積値演算回路5の出力の補数を演算する横倍
率補数演算回路6と、記縦倍累積値演算回路7の出力の
補数を演算する縦倍率補数演算回路8と、 上記窓枠と重なる元画像における、左上の画素、右上の
画素、左下の画素、右下の画素のそれぞれの値を入力す
る、レジスタD1、レジスタD2、レジスタD 3、レジ
スタD4と、 上記横倍率補数演算回路6の出力と上記縦倍率補数演算
回路8の出力を掛け算する掛け算回路9と、 上記横倍率累積値演算回路5の出力と上記縦倍率補数演
算回路8の出力を掛け算する掛け算回路10と、 上記縦倍率累積値演算回路7の出力と上記横倍率補数演
算回路6の出力を掛け算する掛け算回路11と、 上記横倍率累積値演算回路5の出力と上記縦倍率累積値
演算回路7の出力を掛け算する掛け算回路12と、 上記レジスタD1の値と上記掛け算回路9の出力を掛け
算する掛け算回路13と、 上記レジスタD2の値と上記掛け算回路10 の出力を掛
け算する掛け算回路14と、 上記レジスタD3の値と上記掛け算回路11の出力を掛
け算する掛け算回路15と、 上記レジスタD4の値と上記掛け算回路12の出力を掛
け算する掛け算回路16と、 上記掛け算回路13の出力と、上記掛け算回路14の出
力と、上記掛け算回路15の出力と、上記掛け算回路1
6の出力の総和を計算する加算回路17とを有すること
を特徴とする画素数増大装置。
3. A pixel size equal to the pixel size of the original image
And set the window frame horizontally or vertically, respectively.
New pixels by shifting by the reciprocal of the desired magnification
And this new pixel is shifted in the direction of shifting the window frame.
When arranging in the same direction to create an image consisting of new pixels
Equipped with an operation block for calculating the value of this new pixel.
In the pixel number increasing device, the arithmetic block includes a cumulative value obtained by shifting a window frame by a reciprocal of a horizontal magnification.
A horizontal magnification cumulative value calculation circuit 5 for calculating a decimal part, and a cumulative value obtained by shifting a window frame by a reciprocal of a vertical magnification.
A vertical magnification cumulative value calculation circuit 7 for calculating a decimal part and a horizontal magnification for calculating the complement of the output of the horizontal double cumulative value calculation circuit 5
The output of the ratio complement arithmetic circuit 6 and the output of the vertical double cumulative value arithmetic circuit 7
A vertical magnification complement calculating circuit 8 for calculating a complement , a pixel at the upper left and a pixel at the upper right in the original image overlapping the window frame.
Enter the values for the pixel, lower left pixel, and lower right pixel.
That the register D1, register D2, register D 3, registration
D4, the output of the horizontal magnification complement calculating circuit 6, and the vertical magnification complement calculation
A multiplication circuit 9 for multiplying an output of the circuit 8; an output of the horizontal magnification accumulation value calculation circuit 5;
A multiplication circuit 10 for multiplying the output of the arithmetic circuit 8; an output of the vertical magnification cumulative value calculation circuit 7;
A multiplying circuit 11 for multiplying the output of the multiplying circuit 6, the output of the horizontal magnification cumulative value calculation circuit 5 and the vertical magnification cumulative value
A multiplying circuit 12 for multiplying the output of the arithmetic circuit 7, multiplying the value of the register D1 by the output of the multiplying circuit 9
A multiplication circuit 13 for multiplying the value of the register D2 and the output of the multiplication circuit 10.
A multiplication circuit 14 for multiplying the value of the register D3 and the output of the multiplication circuit 11
A multiplication circuit 15 for multiplying the value of the register D4 and the output of the multiplication circuit 12
A multiplication circuit 16 for multiplication, an output of the multiplication circuit 13 and an output of the multiplication circuit 14
Force, the output of the multiplication circuit 15 and the multiplication circuit 1
Having an adder circuit 17 for calculating the sum of the outputs of
A device for increasing the number of pixels, characterized in that:
JP01230692A 1992-01-27 1992-01-27 Method and apparatus for increasing the number of pixels Expired - Fee Related JP3168661B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01230692A JP3168661B2 (en) 1992-01-27 1992-01-27 Method and apparatus for increasing the number of pixels

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01230692A JP3168661B2 (en) 1992-01-27 1992-01-27 Method and apparatus for increasing the number of pixels

Publications (2)

Publication Number Publication Date
JPH05207268A JPH05207268A (en) 1993-08-13
JP3168661B2 true JP3168661B2 (en) 2001-05-21

Family

ID=11801637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01230692A Expired - Fee Related JP3168661B2 (en) 1992-01-27 1992-01-27 Method and apparatus for increasing the number of pixels

Country Status (1)

Country Link
JP (1) JP3168661B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107508967A (en) * 2017-07-21 2017-12-22 努比亚技术有限公司 A kind of image magnification method, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
JPH05207268A (en) 1993-08-13

Similar Documents

Publication Publication Date Title
CA1313410C (en) Image interpolator for an image display system
JP4231620B2 (en) Image processing method and apparatus
US20230316456A1 (en) Panoramic video frame interpolation method and apparatus, and corresponding storage medium
JP3865165B2 (en) How to enlarge / reduce image data
EP0860080B1 (en) Method and apparatus for de-interlacing video fields to progressive scan video frames
US4607340A (en) Line smoothing circuit for graphic display units
JPH01269183A (en) Spatial filter picture processor
WO2001006456A1 (en) Image processing device, image processing method, image-processing program recorded medium
JP2004310766A (en) Scaling method and scaling circuit of raster image
JP3168661B2 (en) Method and apparatus for increasing the number of pixels
CN116016807B (en) Video processing method, system, storable medium and electronic equipment
US5555321A (en) Image data binary coding method and apparatus
JP4621944B2 (en) Image filter device, method and computer program
JP3965302B2 (en) Spatial filtering method
JP4662969B2 (en) Image processing apparatus and method
JP2658089B2 (en) Color image processing method
JP3017239B2 (en) Image generation method
CN101286302A (en) Hardware accomplishing image de-jittering method and apparatus
JP5387289B2 (en) Image processing apparatus, image processing method and program thereof
JP3962029B2 (en) Image data reduction apparatus and method
JP2017215941A (en) Image processor and control method thereof
US7949204B2 (en) Image scaling interpolation for reduced pictures
JP4069300B2 (en) Image data enlargement device
JP2010113625A (en) Figure drawing device, anti-aliasing processing method, and program
US6282323B1 (en) Image processing method and apparatus

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090316

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090316

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100316

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100316

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110316

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees