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

JP2506782B2 - Image data parallel processing device - Google Patents

Image data parallel processing device

Info

Publication number
JP2506782B2
JP2506782B2 JP62156830A JP15683087A JP2506782B2 JP 2506782 B2 JP2506782 B2 JP 2506782B2 JP 62156830 A JP62156830 A JP 62156830A JP 15683087 A JP15683087 A JP 15683087A JP 2506782 B2 JP2506782 B2 JP 2506782B2
Authority
JP
Japan
Prior art keywords
image
pixel
register
result
original
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
JP62156830A
Other languages
Japanese (ja)
Other versions
JPH011073A (en
JPS641073A (en
Inventor
桂 川上
成夫 島崎
哲 高山
千香 小野寺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP62156830A priority Critical patent/JP2506782B2/en
Publication of JPH011073A publication Critical patent/JPH011073A/en
Publication of JPS641073A publication Critical patent/JPS641073A/en
Application granted granted Critical
Publication of JP2506782B2 publication Critical patent/JP2506782B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は画像データ処理、特にその拡大、縮小におけ
る画像データ並列処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to image data processing, and more particularly, to an image data parallel processing device for enlargement and reduction thereof.

従来の技術 従来より画像の拡大、縮小処理技術が知られている。
第6図は従来の画像の拡大、縮小を行う場合の動作原理
を説明するための図である。図の例は8個の画素からな
る原画像を、5個の画素の結果画像へ縮小する場合であ
る。この原理は、ケイ.カワカミ(K.Kawakami)及びエ
ス.シマザキ(S.Shimazaki)、「画像変換用DDAアルゴ
リズムを用いる特定LSIプロセッサ(A Special Purpose
LSI Processor Using the DDA Algorithm for Image T
ransformation)」、特開昭59-214376公報及びUSP4,60
2,346公報に詳しく述べられているが、その概要を以下
に説明する。
2. Description of the Related Art Conventionally, image enlargement / reduction processing techniques have been known.
FIG. 6 is a diagram for explaining the operation principle when a conventional image is enlarged or reduced. The example in the figure is a case where an original image composed of 8 pixels is reduced to a resultant image of 5 pixels. This principle is based on Kei. K. Kawakami and S. S. Shimazaki, "Special LSI Processor (D Special Algorithm) that uses DDA algorithm for image conversion
LSI Processor Using the DDA Algorithm for Image T
ransformation) ", JP-A-59-214376 and USP 4,60
This is described in detail in Japanese Patent No. 2,346, but its outline will be described below.

第6図において、画素aiの中心を通る垂直線と、傾
き5/8の直線Lとの交点をPiとする。点Piを通る水平
線が貫く結果画素をbjとすると、 ai→bj (1) の濃度転送を行うことにより、b1〜b5即ち結果画素の
濃度を得る。
In FIG. 6, an intersection of a vertical line passing through the center of the pixel a i and a straight line L having an inclination of 5/8 is P i . Assuming that a result pixel penetrated by a horizontal line passing through the point P i is b j , the density transfer of a i → b j (1) is performed to obtain b 1 to b 5, that is, the density of the result pixel.

原画像と結果画像とのこのような対応関係は、加算と
条件判定によって逐次的に求めることができる。ここ
で、aiとbjとが対応することを ai〜bj と記すことにする。
Such a correspondence relationship between the original image and the result image can be sequentially obtained by addition and condition determination. Here, the correspondence between a i and b j will be described as a i to b j .

1〜b1i〜bj とすると である。ただしhiは点PiのY座標の値、〔hi〕はhi
を越えない整数である。即ち、aiとbjとが対応するこ
とがわかっているときhi−〔hi〕+5/8の演算を行
い、1より大きくなるか否か、即ち桁上がりが発生する
か否かによって、bj+1に対応する画素が、aiであるか
i+1であるかを決定することができる。いま Rn=hn−〔hn〕 (3) とし、Rn′と5/8との加算に於ける桁上げ情報をCn
すると、上記の逐次演算の結果は第7図のようになる。
第7図から8回の加算の間に5回の桁上げが発生するこ
とがわかる。従って、8回の画素の濃度の転送が5個の
結果画素に対して行われ、5/8に縮小された画像を得
る。
Let a 1 to b 1 a i to b j Is. Where h i is the value of the Y coordinate of the point P i , and [h i ] is h i
It is an integer not exceeding. That is, when it is known that a i and b j correspond to each other, the operation of h i − [h i ] +5/8 is performed, and it is determined whether or not it becomes larger than 1, that is, whether or not a carry occurs. , pixels corresponding to b j + 1 is able to determine whether a i + 1 is a i. Now R n = h n - and [h n] (3), when the in carry information to the addition of 5/8 and R n 'and C n, the result of the successive operations described above as in the seventh Figure become.
It can be seen from FIG. 7 that five carry occurs during the eight additions. Therefore, the pixel density transfer is performed 8 times for the 5 resultant pixels, and an image reduced to 5/8 is obtained.

第8図は、以上の原理を用いて、画像の縮小を行う従
来の装置の一例である。図中、800は拡大、縮小比率を
設定する比率レジスタ、810は量子化誤差を保持する残
余レジスタ(残余保持手段)、811は桁上げ情報を保持
する桁上げ情報レジスタ(残余保持手段)である。814
は原画像を保持する原画像レジスタ(原画像保持手
段)、815は結果画像を保持する結果画像レジスタ(結
果画像保持手段)である。812は原画像の画素を指示す
る原画素ポインタ(原画素指示手段)、813は結果画像
の画素を指示する結果画素ポインタ(結果画素指示手
段)である。850は起動(駆動)信号である。
FIG. 8 shows an example of a conventional apparatus for reducing an image using the above principle. In the figure, reference numeral 800 is a ratio register for setting an enlargement / reduction ratio, 810 is a residual register (residual holding means) for holding a quantization error, and 811 is a carry information register (residual holding means) for holding carry information. . 814
Reference numeral 815 is an original image register (original image holding means) for holding an original image, and 815 is a result image register (result image holding means) for holding a result image. Reference numeral 812 is an original pixel pointer (original pixel instructing means) that points to a pixel in the original image, and 813 is a result pixel pointer (resulting pixel instructing means) that points to a pixel in the result image. 850 is a start (drive) signal.

次に動作を説明する。起動信号850にパルスが印加さ
れると、原画素ポインタ812の内容が1だけ増加し、同
時に残余レジスタ810の内容に比率レジスタ800の内容が
加算される。更にこの加算の結果、桁上げが発生すれ
ば、桁上げレジスタ811に1が格納され、結果画素ポイ
ンタ813の内容が1だけ増加する。桁上げが発生しない
場合には、結果画素ポインタ813の内容は変更されな
い。
Next, the operation will be described. When a pulse is applied to the activation signal 850, the content of the original pixel pointer 812 is incremented by 1, and at the same time, the content of the ratio register 800 is added to the content of the residual register 810. If a carry is generated as a result of this addition, 1 is stored in the carry register 811 and the content of the result pixel pointer 813 is incremented by 1. If no carry occurs, the content of the result pixel pointer 813 is unchanged.

この後、原画像レジスタ814の中へ原画素ポインタ812
の指示する画素の濃度の値を結果画像レジスタ815の中
の、結果画素ポインタ813の指示する画素の位置へ経路8
17を介して転送する。
After this, the original pixel pointer 812 is inserted into the original image register 814.
To the position of the pixel indicated by the result pixel pointer 813 in the result image register 815 in the result image register 815.
Transfer through 17.

以上の動作を繰り返すことにより、原画像レジスタ81
4に格納された原画像に対して、縮小された画像を結果
画像レジスタ815の中に得る。
By repeating the above operation, the original image register 81
A reduced image is obtained in the result image register 815 with respect to the original image stored in 4.

例えば比率レジスタ800に比率5/8が格納され、残余レ
ジスタ810の初期値が5/16であれば、桁上げレジスタ811
に1が発生する様子は第7図の通りになる。従って、起
動信号850に8個のパルスが印加されると、原画素ポイ
ンタ812は8回増加され、結果画素ポインタ813は5回増
加され、原画像レジスタ814から結果画像レジスタ815へ
の濃度情報の転送は8回行われる。これにより結果画像
レジスタ内に5個の画素の縮小されたれ画像を得る。
For example, if the ratio 5/8 is stored in the ratio register 800 and the initial value of the residual register 810 is 5/16, the carry register 811
1 is generated as shown in FIG. Therefore, when eight pulses are applied to the start signal 850, the original pixel pointer 812 is incremented eight times, the result pixel pointer 813 is incremented five times, and the density information from the original image register 814 to the result image register 815 is transferred. The transfer is performed 8 times. This results in a reduced image of 5 pixels in the result image register.

また、同一の演算に従い、結果画像レジスタ815から
原画像レジスタ814へ逆に画素濃度を転送することによ
り、結果レジスタ815に格納されている画像に対して、8
/5に拡大された画像を原画レジスタ814の中に得ること
は明らかである。
Further, according to the same calculation, the pixel density is transferred from the result image register 815 to the original image register 814 in reverse, so that 8
Obviously, we get the image magnified by / 5 in the original image register 814.

もっとも第8図の装置では、比率レジスタ800に於け
る丸め誤差が、残余レジスタ810に累積されるという欠
点がある。
However, the apparatus shown in FIG. 8 has a drawback in that the rounding error in the ratio register 800 is accumulated in the residual register 810.

第9図は第8図の装置の丸め誤差発生の欠点を改良し
た従来の例である。
FIG. 9 shows a conventional example in which the defect of rounding error in the apparatus of FIG. 8 is improved.

第9図の900は分子を保持する分子レジスタ、917は分
母を保持する分母レジスタである。910,911,912,193,91
4,915は、第8図の残余レジスタ810、桁上げ情報レジス
タ811、原画素ポインタ812、結果画素ポインタ813、原
画像レジスタ814及び結果画像レジスタ815と夫々対応す
る。916は加算器、918は、加算器916の出力から分母レ
ジスタ912の内容を減算する減算器である。919はマルチ
プレクサで、減算器918の減算に於ける桁借り情報で選
択制御を行うものである。即ち、加算器816の出力より
分母レジスタ917の内容の方が小さい場合のみ減算器918
の出力が選択され、マルチプレクサ919の出力となる。
他の場合は加算器916の出力が選択され919の出力とな
る。起動信号950は、第8図の起動信号850に対応する。
In FIG. 9, 900 is a numerator register holding a numerator, and 917 is a denominator register holding a denominator. 910,911,912,193,91
Reference numerals 4,915 correspond to the residual register 810, the carry information register 811, the original pixel pointer 812, the result pixel pointer 813, the original image register 814, and the result image register 815 in FIG. Reference numeral 916 is an adder, and reference numeral 918 is a subtracter for subtracting the contents of the denominator register 912 from the output of the adder 916. Reference numeral 919 denotes a multiplexer, which performs selection control based on the borrowed information in the subtraction of the subtractor 918. That is, the subtractor 918 is used only when the content of the denominator register 917 is smaller than the output of the adder 816.
Is selected and becomes the output of the multiplexer 919.
In other cases, the output of the adder 916 is selected and becomes the output of 919. The activation signal 950 corresponds to the activation signal 850 in FIG.

今分子レジスタ900、分母レジスタ917に格納されてい
る値は整数で夫々f,gとすると、この装置による縮小比
率はf/gとなる。分子レジスタ900及び残余レジスタ910
には、第8図の比率レジスタ800及び残余レジスタ810の
夫々の値g倍の値が常に格納されていることになる。第
8図の装置において、加算器816で桁上げが発生し、残
余レジスタ810の値が1回前より1だけ小さくなる場合
の動作は、第9図の加算器916の出力が分母レジスタ917
の内容より大きくなり、減算が行われ、その結果が残余
レジスタ910に格納されることに対応している。
If the values stored in the numerator register 900 and the denominator register 917 are integers and are f and g, respectively, the reduction ratio of this device is f / g. Numerator register 900 and residual register 910
In this case, the values g times the respective values of the ratio register 800 and the residual register 810 shown in FIG. In the device shown in FIG. 8, when the carry is generated in the adder 816 and the value of the residual register 810 becomes smaller by 1 than the value one time before, the output of the adder 916 of FIG. 9 is the denominator register 917.
Corresponding to the fact that the value is larger than the content of the, the subtraction is performed, and the result is stored in the residual register 910.

以上述べたところからわかるように第9図の装置に於
ける桁上げ情報911は第8図の桁上げ情報811と全く同じ
回数だけ発生する。この装置においては、整数演算のみ
を行うので丸め誤差は発生しない。
As can be seen from the above description, the carry information 911 in the apparatus of FIG. 9 is generated exactly the same number of times as the carry information 811 of FIG. In this device, rounding errors do not occur because only integer operations are performed.

発明が解決しようとする問題点 以上のような従来の装置においては、比率と残余との
加算は、すべての画素の処理において同一の加算器(例
えば第8図の加算器816)で行われるので、この加算器
の速度によって装置全体の処理速度が左右されてしまい
高速な処理ができなかった。
Problems to be Solved by the Invention In the conventional apparatus as described above, the addition of the ratio and the residual is performed by the same adder (for example, the adder 816 in FIG. 8) in the processing of all pixels. However, the processing speed of the entire device is affected by the speed of this adder, and high-speed processing cannot be performed.

上記課題を解決する方法として、図8に示す従来の装
置を並列化することが考えられるが、原画像を構成する
点群を複数の点群に分割し、それぞれを独立に処理させ
る単なる並列化では、開始点を別々に計算する等、構成
が複雑になる。
As a method for solving the above problem, parallelization of the conventional apparatus shown in FIG. 8 is conceivable. However, the point cloud forming the original image is divided into a plurality of point clouds, and each point cloud is processed independently. Then, the configuration becomes complicated, such as calculating the starting points separately.

本発明は、連続した原画素を複数の処理部で独立に算
出し集合することにより、簡単な構成で、上記従来の課
題を解決した高速処理可能な画像データ並列処理装置を
提供することを目的とする。
It is an object of the present invention to provide an image data parallel processing apparatus capable of high-speed processing, which has a simple structure and solves the above-mentioned conventional problems by calculating and collecting continuous original pixels independently by a plurality of processing units. And

問題点を解決するための手段 本発明は、画像の縮小または拡大比率を設定する比率
設定手段と、比率設定手段の出力を各々入力する所定数
の部分画像処理部を備えた画像並列処理部と、それらの
部分画像処理部の各出力を入力し集合することにより縮
小または拡大画像を出力する集合手段と、原画像を複数
部分に分配し前記各部分画像処理部へ各々出力する分配
手段とを備え、更に、前記部分画像処理部は、画素位置
の量子化誤差を残余として保持する残余保持手段と、そ
の残余及び前記所定数倍の前記比率を加算し桁上がり情
報を出力すると共に新たな残余を残余保持手段へ出力す
る加算手段と、前記部分原画像を保持する原画像保持手
段と、駆動信号に基づきその原画像保持手段の保持画像
の一つの画素を指示する原画素指示手段と、前記原画像
保持手段に接続された結果画像保持手段と、前記桁上が
り情報に基づき結果画像保持手段の保持画素の一つの画
素を指示する結果画素指示手段とを有し、前記分配手段
が、連続する前記所定数の原画素を1画素づつ前記各部
分画像処理部へ分配し、結果画像の同じ画素位置に対応
する前記各部分画像処理部の結果画像保持手段中の画素
値を集合手段により集合するものである。
Means for Solving the Problems The present invention relates to a ratio setting unit for setting a reduction or enlargement ratio of an image, and an image parallel processing unit including a predetermined number of partial image processing units for inputting outputs of the ratio setting unit. A collecting means for outputting a reduced or enlarged image by inputting and collecting the outputs of the partial image processing sections, and a distribution means for distributing the original image into a plurality of parts and outputting the divided images to the respective partial image processing sections. Further, the partial image processing unit adds a residual holding means for holding a quantization error of a pixel position as a residual, and outputs the carry information by adding the residual and the predetermined multiple of the ratio and a new residual. To the residual holding means, an original image holding means for holding the partial original image, an original pixel instructing means for instructing one pixel of an image held by the original image holding means based on a drive signal, The result image holding means connected to the original image holding means and the result pixel indicating means for indicating one pixel of the holding pixels of the result image holding means based on the carry information, The predetermined number of original pixels are distributed to the partial image processing units one by one, and the pixel values in the result image holding means of the partial image processing units corresponding to the same pixel position of the result image are collected by the collecting means. To do.

作用 本発明は、上記構成によりわり算等の煩雑な構成を用
いることなく簡単な構成で高速の画像処理ができるよう
にしたものである。
Operation The present invention is capable of performing high-speed image processing with a simple structure without using a complicated structure such as division due to the above structure.

実施例 以下、本発明の一実施例について図面を参照しながら
説明する。
Embodiment An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の原理を説明するための図である。従
来例と同様、8個の画素からなる原画像を5個の画素か
らなる結果画像へ縮小する場合を例にとって説明する。
第1図の直線Lの傾きは5/8である。原画像の画素ai
結果画像の画素bjの対応関係も第6図と同一である。
FIG. 1 is a diagram for explaining the principle of the present invention. Similar to the conventional example, an example will be described in which an original image composed of 8 pixels is reduced to a result image composed of 5 pixels.
The slope of the straight line L in FIG. 1 is 5/8. The correspondence relationship between the pixel a i of the original image and the pixel b j of the resulting image is also the same as in FIG.

本発明の原理は、奇数番目の画素a2i-1に対応する結
果画素と、偶数番目の画素a2iに対応する結果画素とを
独立に算出し、並列に動作させることにより処理の高速
化を図るものである。
According to the principle of the present invention, the result pixel corresponding to the odd-numbered pixel a 2i-1 and the result pixel corresponding to the even-numbered pixel a 2i are independently calculated and are operated in parallel to speed up the process. It is intended.

奇数番目の原画素a2i-1の中心を通る垂直線と直線L
との交点をQi、偶数番目の原画素a2iの中心を通る垂
直線と直線Lとの交点をSiとする。Qi,Siを通る水平
線が貫く結果画素を夫々bj,bhとする。
A vertical line passing through the center of the odd-numbered original pixel a 2i-1 and a straight line L
Let Q i be the point of intersection with X and S i be the point of intersection of the straight line L with a vertical line passing through the center of the even-numbered original pixel a 2i . The resulting pixels penetrated by the horizontal line passing through Q i and S i are b j and b h , respectively.

i,SiのY座標の値を夫々yQ,i,yS,iとし、 とすると であるから、 及び となる。ただし、pは縮小率で、第1図の場合は5/8で
ある。
Let the values of the Y coordinates of Q i and S i be y Q, i and y S, i , respectively. And Because as well as Becomes However, p is the reduction ratio, which is 5/8 in the case of FIG.

以上から、第8図と同様の装置において、比率レジス
タの内容を2倍にし、この装置を2つ並列に動作させる
ことにより、奇数番目の原画素と、偶数番目の原画素と
に夫々対応する結果画素を並列に算出することができ
る。
From the above, in the same device as in FIG. 8, the contents of the ratio register are doubled and two devices are operated in parallel to correspond to the odd-numbered original pixels and the even-numbered original pixels, respectively. Resulting pixels can be calculated in parallel.

第2図はこの原理に基づいた装置の一例、即ち、本発
明の一実施例に於ける画像データ並行処理方式のブロッ
ク図である。図中、290は画像データを並列処理する画
像データ並列処理部である。200は比率を設定する比率
レジスタである。210,211,212,213,214,215,216は夫々
第8図の残余レジスタ810、桁上げ情報レジスタ811、原
画素ポインタ812、結果画素ポインタ813、原画像レジス
タ814及び結果画像レジスタ815及び加算器816に夫々対
応し、同様の機能を有するが以下の点で異なる。即ち、
残余レジスタ210の値Rnは、0≦Rn<1の値を取る点
は第8図の残余レジスタ810と同一であるが、比率レジ
スタ200の値は、0≦p<2の値を取る。従って両者を
2進数で表現した場合、比率レジスタ200の幅の方が、
整数部分の分だけ即ち1ビットだけ残余レジスタ210よ
り長い。従って、両者を加算する加算器216の出力は、
その整数部分が0〜2の値を取り得る。桁上げ情報レジ
スタ211にはこの加算結果の整数部分が格納され、残余
レジスタ210には小数部分が格納される。217は結果画素
ポインタ213の出力と桁上げ情報レジスタ211の出力を加
算する加算器である。
FIG. 2 is a block diagram of an example of an apparatus based on this principle, that is, an image data parallel processing system in an embodiment of the present invention. In the figure, reference numeral 290 denotes an image data parallel processing unit that processes image data in parallel. 200 is a ratio register that sets the ratio. Reference numerals 210, 211, 212, 213, 214, 215 and 216 respectively correspond to the residual register 810, carry information register 811, original pixel pointer 812, result pixel pointer 813, original image register 814, result image register 815 and adder 816 of FIG. 8 and have similar functions. Are different in the following points. That is,
The value R n of the residual register 210 is the same as the residual register 810 of FIG. 8 in that it takes the value 0 ≦ R n <1, but the value of the ratio register 200 takes the value 0 ≦ p <2. . Therefore, when both are expressed in binary, the width of the ratio register 200 is
It is longer than the residual register 210 by the integer part, ie by one bit. Therefore, the output of the adder 216 that adds the two is
The integer part can take values from 0 to 2. The carry information register 211 stores the integer part of this addition result, and the residual register 210 stores the decimal part. An adder 217 adds the output of the result pixel pointer 213 and the output of the carry information register 211.

第2図の220,221,222,223,224,225,226,227は、前記
残余レジスタ210、桁上げ情報レジスタ211、原画素ポイ
ンタ212、結果画素ポインタ213、原画像レジスタ214及
び結果画像レジスタ215、加算器216および加算器217に
夫々対応し同様の機能を有する。250は起動信号であ
る。251は原画入力バッファ、252は分配器(手段)であ
る。253は集合器(手段)、254は結果出力バッファであ
る。255は画像記憶装置である。
220, 221, 222, 223, 224, 225, 226, 227 of FIG. 2 correspond to the residual register 210, carry information register 211, original pixel pointer 212, result pixel pointer 213, original image register 214 and result image register 215, adder 216 and adder 217, respectively, and are the same. It has the function of. 250 is a start signal. 251 is an original image input buffer, and 252 is a distributor (means). 253 is an aggregator (means), and 254 is a result output buffer. 255 is an image storage device.

次にこの実施例の動作を説明する。 Next, the operation of this embodiment will be described.

画像記憶装置255から読み出された一列の画素は、い
ったん入力バッファ251に格納され、入力バッファ251か
ら直列に読み出され、夫々奇数番目と、偶数番目の画素
に分配器252によって分配されて、原画像レジスタ214、
224に入力される。原画像レジスタ214,224とに格納され
た画素は、前述のように動作する残余レジスタ210,220
や加算器216,226等の働きにより決る原画素ポインタ21
2,222及び結果画素ポインタ213,223の指示に従って選択
され、その濃度が転送され、結果画像レジスタ215、及
び225に格納される。結果画像レジスタ215,225の内容は
集合器253により対応する画素に集められ、結果出力バ
ッファ254に格納され、画像記憶255に書き込まれる。
The one row of pixels read from the image storage device 255 is once stored in the input buffer 251, read serially from the input buffer 251, and distributed by the distributor 252 to odd-numbered pixels and even-numbered pixels, Original image register 214,
Input to 224. The pixels stored in the original image registers 214 and 224 are the residual registers 210 and 220 that operate as described above.
Or original pixel pointer 21 determined by the function of adders 216, 226, etc.
2, 222 and the result pixel pointers 213 and 223 are selected according to the instruction, and the density thereof is transferred and stored in the result image registers 215 and 225. The contents of the result image registers 215, 225 are collected by the aggregator 253 into the corresponding pixels, stored in the result output buffer 254, and written in the image memory 255.

第3図は、結果画像レジスタ215,225のデータから結
果バッファ254の内容が生成される関係を示したもので
ある。結果画像レジスタ215,225の内容は、夫々315,325
に示す状態に対応している。これら2つの画素群から同
一の位置に対応する画素同士の間で加算または論理和等
の演算が行われ、354に示すようなデータが生成され
る。
FIG. 3 shows the relationship in which the contents of the result buffer 254 are generated from the data of the result image registers 215 and 225. The contents of the result image registers 215 and 225 are 315 and 325, respectively.
It corresponds to the state shown in. From these two pixel groups, an operation such as addition or logical sum is performed between pixels corresponding to the same position to generate data as shown at 354.

原画素ポインタ212,222は起動信号250にパルスが印加
されるこどに1だけ増加する。従ってパルスが印加され
るごとに原画素ポインタ212は奇数番目の画素を、原画
素ポインタ222は偶数番目の画素を夫々順に指示してい
く、また、結果画素ポインタ213,223は第1図のQi,Si
に対応する結果画素を順に指示していく。
The original pixel pointers 212 and 222 are incremented by one each time the activation signal 250 is pulsed. Therefore, each time a pulse is applied, the original pixel pointer 212 sequentially indicates an odd-numbered pixel, and the original pixel pointer 222 sequentially indicates an even-numbered pixel. Further, the result pixel pointers 213 and 223 indicate Q i , S i
The result pixels corresponding to are sequentially designated.

従って原画素ポインタ212,222が指示する画素の濃度
を結果画素ポインタ213,223が指示する画素へ夫々転送
することにより、結果画像レジスタ215にはQiに対応す
るbjが結果画像レジスタ225にはSiに対応するbkが生
成される。この2つのレジスタ215と225との間で対応す
る画素どうしの濃度を加算し、または平均したものが出
力バッファ254に格納され、縮小された画像を得る。
Therefore, by transferring the densities of the pixels designated by the original pixel pointers 212 and 222 to the pixels designated by the result pixel pointers 213 and 223, respectively, b j corresponding to Q i is stored in the result image register 215 and S i is stored in the result image register 225. A corresponding bk is generated. The densities of the corresponding pixels between the two registers 215 and 225 are added or averaged and stored in the output buffer 254 to obtain a reduced image.

第4図は、本発明の第2の実施例で第2図に於ける比
率レジスタ200の丸め誤差の累積を防ぐ方式の場合であ
る。図中400,411,416,450は第2図の比率レジスタ200、
桁上げ情報レジスタ211、加算器216、起動信号250に夫
々対応し、同様の機能を有する。418及び403は加算器41
6の出力から分母レジスタ417及び分母レジスタ402の内
容を夫々減ずる減算器である。404は排他的論理和装置
である。
FIG. 4 shows a second embodiment of the present invention in the case of a system for preventing the accumulation of rounding errors of the ratio register 200 in FIG. In the figure, 400, 411, 416, and 450 are ratio registers 200 in FIG.
The carry information register 211, the adder 216, and the activation signal 250 correspond to each other and have the same function. 418 and 403 are adders 41
The subtractor subtracts the contents of the denominator register 417 and the denominator register 402 from the output of 6. 404 is an exclusive OR device.

第4図の原理は第9図のものと同様である。縮小比率
がf/g(f,gは整数)の場合は、分子レジスタ400にf
を、分母レジスタ402に2gを、分母レジスタ417にgを格
納する。マルチプレクサ419は、加算器416、減算器417
または減算器403の出力のいずれかを選択し出力する。
この選択は、減算器417及び403の桁借り情報によって制
御され、以下のようになる。即ち、加算器416の出力を
x、マルチプレクサの出力をRn、桁上げレジスタ411に
格納される値をCとすると、 0≦x<gのときRn=x, c=00 g≦x<2gのときRn=x−g, c=01 2g≦xのとき Rn=x−2g, c=10 となる。以上から、桁上げ情報レジスタ411は第2図の
桁上げ情報レジスタ211,221と同様になることがわか
る。従って第4図の装置を、2つ夫々第2図の比率レジ
スタ200、残余レジスタ210,220、桁上げ情報レジスタ21
1,221、加算器216,226,217,227に応用することによって
丸め誤差の累積しない正確な演算を行わせることができ
る。
The principle of FIG. 4 is the same as that of FIG. When the reduction ratio is f / g (f and g are integers), f is stored in the numerator register 400.
2g is stored in the denominator register 402 and g is stored in the denominator register 417. The multiplexer 419 includes an adder 416 and a subtractor 417.
Alternatively, one of the outputs of the subtractor 403 is selected and output.
This selection is controlled by the borrow information of subtractors 417 and 403 and is as follows. That is, assuming that the output of the adder 416 is x, the output of the multiplexer is R n , and the value stored in the carry register 411 is C, when 0 ≦ x <g, R n = x, c = 00 g ≦ x < When 2g, R n = x−g, c = 01, and when 2g ≦ x, R n = x−2g, c = 10. From the above, it can be seen that the carry information register 411 is similar to the carry information registers 211 and 221 in FIG. Therefore, each of the two devices shown in FIG. 4 has the ratio register 200, the residual registers 210 and 220, and the carry information register 21 shown in FIG.
By applying it to 1,221 and adders 216, 226, 217, and 227, it is possible to perform an accurate calculation without accumulating rounding errors.

第5図は本発明の別の実施例であってn個の部分画像
処理部590,590,…のモジュールで並列に処理する場合で
ある。図中、500,510ないし517,550ないし555は第2図
の各要素200,210ないし217,250ないし255に夫々対応
し、以下の点を除いて同様の機能を有する。即ち、桁上
げ情報レジスタ511のビット幅は、log2 nと等しいかそれ
を越える整数であること、分配器552はn個の供給先へ
原画像を分配すること、集合器553はn個のモジュール5
30からデータを集め、一つに合成することなどの点が異
なる。
FIG. 5 shows another embodiment of the present invention in which n modules of the partial image processing units 590, 590, ... Are processed in parallel. In the figure, reference numerals 500, 510 to 517, 550 to 555 correspond to the elements 200, 210 to 217, 250 to 255 of FIG. 2, respectively, and have the same functions except for the following points. That is, the bit width of the carry information register 511 is an integer equal to or greater than log 2 n , the distributor 552 distributes the original image to the n destinations, and the aggregator 553 uses the n collectors. Module 5
The difference is that data is collected from 30 and combined into one.

以上のような構成によりn個のモジュールが、並列に
動作し、全体の処理が1個のモジュールで実行する場合
の1/nの時間で処理される。
With the above configuration, n modules operate in parallel, and the entire processing is processed in 1 / n of the time when one module executes.

なお同様の演算に従い、結果画像レジスタ215,225か
ら原画レジスタ214,224へ逆に濃度値を転送することに
より、結果画像レジスタ215に格納されている画像に対
して8/5に拡大された画像を原画画像レジスタ214の中に
得られる。その場合は分配器252と集合器253は逆の動作
を行うことはいうまでもない。
In accordance with the same calculation, the density values are transferred from the result image registers 215 and 225 to the original image registers 214 and 224 in reverse, so that the image stored in the result image register 215 is enlarged to 8/5 and the original image register is displayed. Obtained in 214. In that case, it goes without saying that the distributor 252 and the collector 253 perform reverse operations.

以上の実施例において、各種レジスタの処理等はコン
ピュータのソフトウェアにより処理できることもいうま
でもない。
It goes without saying that in the above embodiments, the processing of various registers can be processed by software of the computer.

発明の効果 以上のように本発明の画像データ並列処理装置は、連
続した原画素を複数の処理部で独立、並列に算出し集合
することにより、わり算等の煩雑な構成を用いることな
く簡単な構成で高速な画像処理を実現することができ
る。
EFFECTS OF THE INVENTION As described above, the image data parallel processing apparatus according to the present invention can calculate a continuous original pixel independently and in parallel by a plurality of processing units, and can collect the original pixels without using a complicated configuration such as division. With the configuration, high-speed image processing can be realized.

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

第1図は本発明の一実施例に於ける画像データ並列処理
方式の原理を説明する概念図、第2図は同方式の装置の
ブロック図、第3図は第2図の同装置のデータ集合部の
動作を説明するための図、第4図は本発明の他の実施例
の要部ブロック図、第5図は本発明の他の実施例の要部
ブロック図、第6図は従来の画像データ処理方式の原理
を説明するための概念図、第7図は従来方式による装置
の演算の様子を説明する図、第8図は従来の方式の装置
のブロック図、第9図は丸め誤差の累積しない従来の方
式の装置のブロック図である。 200,400……比率設定手段、210,220……残余保持手段、
211,221……桁上げ情報レジスタ、212,222……原画素指
示手段、213,223……結果画素指示手段、214,224……原
画像保持手段、215,225……結果画像保持手段、216,226
……加算器、250……起動(駆動)信号、252……分配手
段、253……集合手段、290……画像並列処理部、590…
…部分画像処理部。
FIG. 1 is a conceptual diagram for explaining the principle of an image data parallel processing system in an embodiment of the present invention, FIG. 2 is a block diagram of an apparatus of the same system, and FIG. 3 is data of the same apparatus of FIG. FIG. 4 is a diagram for explaining the operation of the gathering unit, FIG. 4 is a block diagram of essential parts of another embodiment of the present invention, FIG. 5 is a block diagram of essential parts of another embodiment of the present invention, and FIG. FIG. 7 is a conceptual diagram for explaining the principle of the image data processing system of FIG. 7, FIG. 7 is a diagram for explaining the operation of the device by the conventional system, FIG. 8 is a block diagram of the device of the conventional system, and FIG. 9 is a rounding error. FIG. 6 is a block diagram of an apparatus of a conventional method that does not accumulate. 200,400 …… Ratio setting means, 210,220 …… Residual holding means,
211,221 ... Carry information register, 212,222 ... Original pixel indicating means, 213,223 ... Result pixel indicating means, 214,224 ... Original image holding means, 215,225 ... Result image holding means, 216,226
...... Adder, 250 …… Starting (driving) signal, 252 …… Distributing means, 253 …… Assembling means, 290 …… Image parallel processing section, 590 ・ ・ ・
... Partial image processing unit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 小野寺 千香 川崎市多摩区東三田3丁目10番1号 松 下技研株式会社内 (56)参考文献 特開 昭60−189579(JP,A) 特開 昭59−214376(JP,A) 特開 昭63−26781(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Chika Onodera 3-10-1 Higashisanda, Tama-ku, Kawasaki City Matsushita Giken Co., Ltd. (56) Reference JP-A-60-189579 (JP, A) JP 59-214376 (JP, A) JP-A-63-26781 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】画像の縮小または拡大比率を設定する比率
設定手段と、比率設定手段の出力を各々入力する所定数
の部分画像処理部を備えた画像並列処理部と、それらの
部分画像処理部の各出力を入力し集合することにより縮
小または拡大画像を出力する集合手段と、原画像を複数
部分に分配し前記各部分画像処理部へ各々出力する分配
手段とを備え、 更に、前記部分画像処理部は、画素位置の量子化誤差を
残余として保持する残余保持手段と、その残余及び前記
所定数倍の前記比率を加算し桁上がり情報を出力すると
共に新たな残余を残余保持手段へ出力する加算手段と、
前記部分原画像を保持する原画像保持手段と、駆動信号
に基づきその原画像保持手段の保持画像の一つの画素を
指示する原画素指示手段と、前記原画像保持手段に接続
された結果画像保持手段と、前記桁上がり情報に基づき
結果画像保持手段の保持画素の一つの画素を指示する結
果画素指示手段とを有し、 前記分配手段が、連続する前記所定数の原画素を1画素
づつ前記各部分画像処理部へ分配し、 結果画像の同じ画素位置に対応する前記各部分画像処理
部の結果画像保持手段中の画素値を集合手段により集合
することを特徴とする画像データ並列処理装置。
1. A ratio setting means for setting a reduction or enlargement ratio of an image, an image parallel processing section having a predetermined number of partial image processing sections for inputting the output of the ratio setting means, and those partial image processing sections. Each of the outputs is input and aggregated to output a reduced or enlarged image, and a distribution unit that distributes the original image into a plurality of parts and outputs the images to each of the partial image processing units. The processing unit adds a residual holding means for holding a quantization error of a pixel position as a residual, and outputs the carry information by adding the residual and the ratio of the predetermined number of times and outputs a new residual to the residual holding means. Adding means,
Original image holding means for holding the partial original image, original pixel instructing means for instructing one pixel of the held image of the original image holding means based on a drive signal, and result image holding connected to the original image holding means Means and a result pixel designating means for designating one pixel of the holding pixels of the result image holding means based on the carry information, wherein the distributing means has the continuous predetermined number of original pixels one by one. An image data parallel processing device, characterized in that the pixel values in the result image holding means of each of the partial image processing portions corresponding to the same pixel position of the result image are collected by the collecting means.
JP62156830A 1987-06-24 1987-06-24 Image data parallel processing device Expired - Fee Related JP2506782B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62156830A JP2506782B2 (en) 1987-06-24 1987-06-24 Image data parallel processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62156830A JP2506782B2 (en) 1987-06-24 1987-06-24 Image data parallel processing device

Publications (3)

Publication Number Publication Date
JPH011073A JPH011073A (en) 1989-01-05
JPS641073A JPS641073A (en) 1989-01-05
JP2506782B2 true JP2506782B2 (en) 1996-06-12

Family

ID=15636281

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62156830A Expired - Fee Related JP2506782B2 (en) 1987-06-24 1987-06-24 Image data parallel processing device

Country Status (1)

Country Link
JP (1) JP2506782B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5315701A (en) * 1992-08-07 1994-05-24 International Business Machines Corporation Method and system for processing graphics data streams utilizing scalable processing nodes
JP4488498B2 (en) * 2004-06-16 2010-06-23 株式会社リコー Resolution conversion circuit and display device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59214376A (en) * 1983-05-19 1984-12-04 Matsushita Electric Ind Co Ltd Image data processing device

Also Published As

Publication number Publication date
JPS641073A (en) 1989-01-05

Similar Documents

Publication Publication Date Title
JPH03127282A (en) Radon transforming method of digital image
GB2150797A (en) Graphic display system
JP2506782B2 (en) Image data parallel processing device
US5887079A (en) Image processing apparatus
US6204855B1 (en) Computer system for interpolating a value for a pixel
US6476818B1 (en) Storage circuit control device and graphic computation device
JPS61140271A (en) Image magnifying and reducing circuit
JP3305406B2 (en) Program-controlled processor
JPH011073A (en) Image data parallel processing device
JP2000122801A (en) Coordinate value correction device
JPH0691598B2 (en) Pattern recognition method and image reduction apparatus therefor
JPH0734225B2 (en) Image processing device
JPH0420224B2 (en)
JP3004993B2 (en) Image processing device
JP2989193B2 (en) Image memory interleaved input / output circuit
JPH0374071B2 (en)
JP3522211B2 (en) Image scaling method
US6199083B1 (en) Computer implemented method for interpolating a value corresponding to a point represented by binary coordinates
JP2597875B2 (en) Binary image similarity conversion pixel data generator
JPS5899886A (en) Oblique scanning method
JP2536183B2 (en) Image processing method and apparatus
JPH0320880A (en) Conversion circuit
RU2038633C1 (en) Apparatus for forming videosignal
JP2645387B2 (en) Image processing method
JPS59188761A (en) Write system of picture memory

Legal Events

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