[go: up one dir, main page]

JPH01240985A - Image data processor - Google Patents

Image data processor

Info

Publication number
JPH01240985A
JPH01240985A JP63067185A JP6718588A JPH01240985A JP H01240985 A JPH01240985 A JP H01240985A JP 63067185 A JP63067185 A JP 63067185A JP 6718588 A JP6718588 A JP 6718588A JP H01240985 A JPH01240985 A JP H01240985A
Authority
JP
Japan
Prior art keywords
memory
image
image data
unit
memory block
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.)
Granted
Application number
JP63067185A
Other languages
Japanese (ja)
Other versions
JP2548286B2 (en
Inventor
Tatsuhiko Hori
達彦 堀
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP63067185A priority Critical patent/JP2548286B2/en
Publication of JPH01240985A publication Critical patent/JPH01240985A/en
Application granted granted Critical
Publication of JP2548286B2 publication Critical patent/JP2548286B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)
  • Dram (AREA)

Abstract

PURPOSE:To make efficient an image data processing by dividing the image data into a matrix condition, and storing obtained adjacent units into separate memory blocks. CONSTITUTION:Firsts, the image data are divided into the matrix condition, and for the mutually adjacent units obtained in such a way, their image signals are stored into separate memory blocks 201 and 202. When the image to be read lies over the two units, the image is read from a pair of adjacent units which surely shares a side. Thus, when they are stored into the separate memory blocks 201 and 202, the image signal corresponding to the image to be read can be read at once by a single access.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、2次元のイメージをビット単位で処理するイ
メージデータ処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image data processing device that processes two-dimensional images bit by bit.

(従来の技術) 一般の情報処理装置において、文字データや数字データ
はいわゆるコードデータを用いて処理される。一方、2
次元的にイメージ化されたデータは、メモリ上でビット
単位で処理する必要が生じる。
(Prior Art) In general information processing devices, character data and numeric data are processed using so-called code data. On the other hand, 2
Dimensionally imaged data needs to be processed bit by bit in memory.

第2図に、従来のイメージデータ処理装置のブロック図
を示す。
FIG. 2 shows a block diagram of a conventional image data processing device.

この装置には、X方向に4nビツト、Y方向にmビット
の2次元のイメージデータを格納するイメージデータメ
モリlが設けられている。通常、メモリ上のデータは、
例えば4ビツトあるいは8ビツト構成の1ワ一ド分のデ
ータを単位として、その読み出しや書き込みが行なわれ
る。そこで、このイメージデータは、図に示すように、
X方向の幅nビットで短冊状に分断されている。
This device is provided with an image data memory 1 that stores two-dimensional image data of 4n bits in the X direction and m bits in the Y direction. Normally, data in memory is
For example, data for one word of 4-bit or 8-bit configuration is read or written as a unit. Therefore, this image data, as shown in the figure,
It is divided into strips with a width of n bits in the X direction.

さてここで、このイメージデータメモリ1中に格納され
たイメージの中で、図に示すような1連の画素からなる
イメージa、b、あるいはc、 dを処理する場合を考
える。
Now, let us consider the case where, among the images stored in the image data memory 1, images a, b, or c, d consisting of a series of pixels as shown in the figure are to be processed.

この場合、例えばイメージa、bを含む幅nビットのデ
ータを直接読み出せばよい訳である。
In this case, for example, data with a width of n bits including images a and b may be directly read out.

しかしながら、データの読み出しは、図のように予め幅
nビットで分断された単位でのみ行なわれる。そこで、
イメージデータメモリを2つのメモリブロック21..
22に分割し、イメージデータの短冊状に分断された領
域を、それぞれ11゜12.13.14としたとき、領
域11及び領域13をメモリブロック21に格納し、領
域12及び領域14をメモリブロック22に格納する。
However, data reading is performed only in units divided in advance with a width of n bits as shown in the figure. Therefore,
The image data memory is divided into two memory blocks 21. ..
When the image data is divided into 22 strips and the image data is divided into strips of 11 degrees, 12 degrees, 13 degrees, and 14 degrees, respectively, areas 11 and 13 are stored in the memory block 21, and areas 12 and 14 are stored in the memory block. 22.

先ず、イメージa、bの読み出しについて説明すると、
メモリブロック21.22の0部分に示したように、イ
メージaを含むnビットのデータがメモリブロック21
に格納され、イメージbを含むnビットのデータがメモ
リブロック22に格納される。イメージc、dについて
も、それぞれ対応する領域からメモリブロック21.2
2に対して■のように別々にデータが格納される。
First, reading out images a and b will be explained.
As shown in the 0 part of memory blocks 21 and 22, n-bit data including image a is stored in memory block 21.
n-bit data including image b is stored in memory block 22. For images c and d, memory blocks 21.2 are also stored from the corresponding areas.
Data is stored separately for 2 as shown in ■.

データバス選択回路3は、メモリブロック21.22か
ら人力するnビット+nビット合計2nビットのデータ
のうち、プロセッサ4によって指定されたビットを合計
nビット選択してこれを出力する回路である。従って、
図のようにデータバス選択回路3に■に示したような画
像信号が入力すると、■に示したようなイメージb、a
に対応する画像信号が読み出し用ローテータ51側に出
力される。又、■に示したような画像信号がデータバス
選択回路3に入力すると、■に示したようなイメージd
、cに対応する画像信号が出力される。■に示した画像
信号は、本来読み出そうとするイメージa、bと逆の配
列になっている。
The data bus selection circuit 3 is a circuit that selects a total of n bits specified by the processor 4 from among the data of a total of 2n bits (n bits + n bits) manually inputted from the memory blocks 21 and 22, and outputs the selected bits. Therefore,
As shown in the figure, when an image signal as shown in ■ is input to the data bus selection circuit 3, images b and a as shown in ■ are input.
An image signal corresponding to the image signal is output to the readout rotator 51 side. Also, when an image signal as shown in ■ is input to the data bus selection circuit 3, an image d as shown in ■ is input.
, c are output. The image signals shown in (2) have an arrangement opposite to that of images a and b that are originally intended to be read.

そこでローテータ51は、データを図の矢印5′方向に
1ビツトずつ順にシフトさせ、図の■に示したようなイ
メージa、bに対応する画像信号を出力する。
Therefore, the rotator 51 sequentially shifts the data one bit at a time in the direction of arrow 5' in the figure, and outputs image signals corresponding to images a and b as shown in (■) in the figure.

また、■に示した画像信号も同様であり、ローテータ5
1はデータを図の矢印5′方向に1ビツトずつ順にシフ
トさせ、図の■に示したようなイメージc、dに対応す
る画像信号を出力する。
The image signal shown in ■ is also similar, and the rotator 5
1 sequentially shifts the data one bit at a time in the direction of arrow 5' in the figure, and outputs image signals corresponding to images c and d as shown in (■) in the figure.

以上のようにして、プロセッサ4は2次元的に展開され
たイメージデータから、任意の1ワ一ド分のイメージを
読み出して所定の処理を実行することができる。又、プ
ロセッサ4がそのようなイメージに対応する画像信号を
イメージデータメモリ1に書き込もうとする場合には、
書き込み用ローテータ52にこれに対応する画像信号を
入力し、先はどと逆の順でイメージデータメモリIにそ
のデータを格納する。
As described above, the processor 4 can read out an arbitrary one-word image from two-dimensionally developed image data and execute predetermined processing. Furthermore, when the processor 4 attempts to write an image signal corresponding to such an image into the image data memory 1,
The corresponding image signal is input to the write rotator 52, and the data is stored in the image data memory I in reverse order.

(発明が解決しようとする課題) ところで、イメージデータの処理を行なう場合、Y方向
に画像信号が並んだイメージについても同様に処理の要
求がなされる。ところが、第2図に示したような従来の
イメージデータ処理装置においては、処理すべきイメー
ジがX方向に並んだ画像信号から構成されるものでなけ
れば、それを1回のアクセスで読み出すことができない
(Problem to be Solved by the Invention) Incidentally, when processing image data, a similar processing request is made for an image in which image signals are arranged in the Y direction. However, in the conventional image data processing apparatus shown in FIG. 2, unless the image to be processed is composed of image signals arranged in the X direction, it is not possible to read it in one access. Can not.

即ち、Y方向に画像信号が並んだイメージ処理の場合に
は、0回イメージデータメモリをアクセスし、そのデー
タを90度回転すると複雑な処理を必要とした。そのよ
うな回路では、X方向に並んだ画像信号の処理に比べ、
Y方向に並んだ画像信号の処理に非常に多くの時間が必
要になるという難点があった。
That is, in the case of image processing in which image signals are arranged in the Y direction, accessing the image data memory 0 times and rotating the data by 90 degrees requires complicated processing. In such a circuit, compared to processing image signals arranged in the X direction,
There is a problem in that a very large amount of time is required to process the image signals arranged in the Y direction.

そこで、X方向もY方向も同様に高速にイメージデータ
の処理ができるよう、本発明者により第3図に示すよう
な装置が開発された(特願昭61−183484号)。
Therefore, the present inventor developed a device as shown in FIG. 3 (Japanese Patent Application No. 183484/1984) so that image data can be processed at high speed in both the X and Y directions.

第3図には、簡単化のために4×4ビツト構成の2次元
のイメージデータを格納するイメージデータメモリ1を
示した。
For the sake of simplicity, FIG. 3 shows an image data memory 1 that stores two-dimensional image data having a 4.times.4 bit structure.

このイメージデータメモリ1には、図に示したように、
番号O〜15を付した画像信号が格納されている。この
図のX方向Y方向は、イメージのX方向Y方向をそのま
ま表わしているものとし、この画像信号の通りに各画素
が配列されているものとする。
This image data memory 1 contains, as shown in the figure,
Image signals numbered O to 15 are stored. It is assumed that the X and Y directions in this figure directly represent the X and Y directions of the image, and that each pixel is arranged according to this image signal.

プロセッサ4は、このイメージの中からX方向に並んだ
4つの画素、あるいはY方向に並んだ4つの画素を、1
ワードとして読み出し処理するものとする。
The processor 4 converts four pixels arranged in the X direction or four pixels arranged in the Y direction from this image into one
It is assumed that read processing is performed as a word.

この読み出し処理のために、先ず、バッファメモリ53
,54,55.56を用意する。これらのバッファメモ
リ53〜56は、いずれも幅1ビット、深さ4ビツトの
アドレス容量のメモリ素子である。即ち、各バッファメ
モリ53〜56は、いずれも1ビツトずつ画像信号の書
き込みあるいは読み出しを行ない、全部で4ビツトの画
像信号をそのアドレス順に格納することができ、その書
き込みあるいは読み出しは、アドレス生成回路50から
出力されるアドレス信号によって制御される。
For this reading process, first, the buffer memory 53
, 54, 55, and 56 are prepared. These buffer memories 53 to 56 are all memory elements having an address capacity of 1 bit in width and 4 bits in depth. That is, each of the buffer memories 53 to 56 writes or reads an image signal one bit at a time, and can store a total of 4 bits of image signals in the order of their addresses, and the writing or reading is performed by the address generation circuit. It is controlled by an address signal output from 50.

又、バッファメモリ53〜56には、イメージデータメ
モリ1からその画像信号が矢印のように入力するが、実
際にはその図に示すように、予め、イメージデータメモ
リ1にX方向に同一列上に並んだ画素が、1画素分ずつ
順にそのX方向にずれるように画像信号が配列転換され
ている。
Further, the image signals are inputted from the image data memory 1 to the buffer memories 53 to 56 as shown by the arrows, but in reality, as shown in the figure, the image signals are input in advance to the image data memory 1 on the same column in the X direction. The image signals are rearranged so that the pixels lined up are sequentially shifted by one pixel in the X direction.

即ち、イメージデータメモリ1に0.1,2゜3という
順に配列された画像信号は、バッファメモリ53〜56
にその順番、即ち0,1,2.3というように格納され
るが、イメージデータメモリ1に4.5.6.7という
順に格納されていた画像信号は、バッファメモリ53〜
56に、7゜4.5.6という順に、1ビツトだけ右側
にずれるように配列転換されて格納されている。次の画
像信号8.9,10.11については、更にもう1ビツ
トずれ、最後の画像信号12,13゜14.15につい
ては、3ビツトずれた形でバッファメモリ53〜56に
格納されている。
That is, the image signals arranged in the order of 0.1 and 2°3 in the image data memory 1 are stored in the buffer memories 53 to 56.
The image signals stored in the order of 4.5.6.7 in the image data memory 1 are stored in the order of 0, 1, 2.3, etc. in the buffer memories 53-53.
56, the array is rearranged and stored in the order of 7°4.5.6 so that it is shifted to the right by one bit. The next image signals 8.9, 10.11 are stored in the buffer memories 53 to 56 with an additional 1 bit shift, and the last image signals 12, 13° and 14.15 are stored in the buffer memories 53 to 56 with a 3 bit shift. .

アドレス発生回路50が、各バッファメモリ53〜56
にアドレス信号を出力し、各バッファメモリ53〜56
から画像信号が読み出されると、図の■〜■のような信
号が読み出される。
The address generation circuit 50 is connected to each buffer memory 53 to 56.
outputs an address signal to each buffer memory 53 to 56.
When an image signal is read out from the image signal, signals like ■ to ■ in the figure are read out.

図の■は、バッファメモリ53〜56から、そのまま画
像信号0,1,2.3が読み出された場合を示す。
■ in the figure indicates a case where image signals 0, 1, 2.3 are read out as they are from the buffer memories 53-56.

図の■は、バッファメモリ53〜56から画像信号7,
4,5.6が読み出された場合を示すが、これは、実際
にイメージデータメモリ1に格納されていた状態と比べ
ると、X方向に1ビツトずれているため、図の矢印に示
すように1ビツトローテートさせた上でプロセッサ4が
取り込む。
■ in the figure indicates the image signal 7 from the buffer memories 53 to 56,
4, 5.6 are read out, but compared to the state actually stored in the image data memory 1, this is shifted by 1 bit in the X direction, so as shown by the arrow in the figure. After rotating the data by 1 bit, the processor 4 takes it in.

この処理は第2図に示したようなローテータによって行
なう。
This process is performed by a rotator as shown in FIG.

図の■は、Y方向に並んだ画素に対応する画像信号を読
み出した場合を示す。アドレス生成回路50が、バッフ
ァメモリ53〜56に所定のアドレス信号を入力するこ
とによって、画像信号O14,8,12がそのまま読み
出される。
■ in the figure indicates a case where image signals corresponding to pixels arranged in the Y direction are read out. When the address generation circuit 50 inputs a predetermined address signal to the buffer memories 53 to 56, the image signals O14, 8, and 12 are read out as they are.

図の■は、Y方向に並んだ画素に対応する画像信号であ
って、Y方向に2ビツトシフトした画像信号、0,14
,2.6が読み出された場合の例を示す。この場合には
、読み出された画像信号は2ビットローテートされた上
でプロセッサ4に読み出される。
■ in the figure is an image signal corresponding to pixels arranged in the Y direction, and is an image signal shifted by 2 bits in the Y direction, 0, 14
, 2.6 is read out. In this case, the read image signal is read out to the processor 4 after being rotated by 2 bits.

以上説明したように、イメージデータメモリ1から、幅
1ビットの複数のバッファメモリに画像信号を所定の順
で読み出すと、X方向にもY方向にも高速で所定の幅の
画像信号を読み出すことができる。しかしながら、この
構成では、イメージデータメモリ1が大容量のものであ
る場合、極めて多数のバッファメモリを必要とし、その
ままでは処理が複雑化するという問題がある。
As explained above, when image signals are read out from the image data memory 1 to a plurality of buffer memories each having a width of 1 bit in a predetermined order, image signals of a predetermined width can be read out at high speed in both the X direction and the Y direction. Can be done. However, this configuration has the problem that if the image data memory 1 has a large capacity, an extremely large number of buffer memories are required, which complicates the processing.

本発明は以上の点に着目してなされたもので、X方向に
もY方向にも高速でデータの読み出しを行ない、大容量
のイメージデータメモリを用いて自由に効率的にイメー
ジデータ処理を実行することができるイメージデータ処
理装置を提供することを目的とするものである。
The present invention has been made with attention to the above points, and it reads data at high speed in both the X and Y directions, and freely and efficiently processes image data using a large capacity image data memory. The object of the present invention is to provide an image data processing device that can perform the following steps.

(課題を解決するための手段) 本発明のイメージデータ処理装置は、イメージデータを
、互いに直交するX方向とY方向に沿う直線でマトリク
ス状に分断し、それぞれX方向とY方向に同数の画素が
配列されて成るユニットの集合体とし、前記イメージデ
ータな構成する全ての画素に対応する画像信号を格納す
るための2つのメモリブロックを用意し、前記ユニット
のうち、互いに隣接しその辺を共有するもの同志の画像
信号が、それぞれ別々の前記メモリブロックに格納され
るように、前記イメージデータな構成する全ての画素に
対応する画像信号を2分して格納し、前記各メモリブロ
ックは、前記ユニットのX方向の画素数に相当する数の
、幅1ビット、深さA (Aは正の整数で、メモリのア
ドレス容量を示す)ビットの容量のメモリ素子群からな
り、前記ユニット内でY方向に並んだ前記画素が、1画
素分ずつ順にそのX方向にずれるように画像信号の配列
変換を行ない、この配列変換後の各ユニットの画像信号
をそのY方向に分断してそれぞれ別の前記メモリ素子に
格納し、前記2つのメモリブロックから、互いに隣接し
その辺を共有する2つのユニットの画像信号のうちX方
向又はY方向に連続した一連の画素に対応する画像信号
を読み出すために、前記各メモリブロックに対し、その
メモリブロックを構成する各メモリ素子から、前記画像
信号を1つずつ読み出すためのアドレス信号と、読み出
させるべきメモリ素子を選択する素子選択信号とを生成
するメモリアドレス生成回路と、前記連続し、た一連の
画素から成るイメージを復元するように、前記各メモリ
素子から同時に読み出された画像信号のX方向の配列を
ずらして配列変換するローテータとを備えたことを特徴
とするものである。
(Means for Solving the Problems) The image data processing device of the present invention divides image data into a matrix by straight lines along the X direction and the Y direction that are orthogonal to each other, and divides the image data into a matrix with the same number of pixels in the X direction and the Y direction. Two memory blocks are prepared for storing image signals corresponding to all the pixels constituting the image data, and among the units, the units are adjacent to each other and share the sides. The image signals corresponding to all the pixels constituting the image data are divided into two and stored so that the image signals of the same type are stored in separate memory blocks. It consists of a group of memory elements with a width of 1 bit and a depth of A (A is a positive integer indicating the address capacity of the memory) corresponding to the number of pixels in the X direction of the unit. Arrangement conversion of the image signal is performed so that the pixels lined up in the direction are sequentially shifted by one pixel in the X direction, and the image signal of each unit after this arrangement conversion is divided in the Y direction and divided into separate units. In order to store in a memory element and read out from the two memory blocks an image signal corresponding to a series of pixels continuous in the X direction or Y direction among the image signals of two units adjacent to each other and sharing the side, A memory address for generating, for each memory block, an address signal for reading out the image signals one by one from each memory element constituting the memory block, and an element selection signal for selecting a memory element to be read out. and a rotator that shifts and converts the arrangement of the image signals simultaneously read out from each of the memory elements in the X direction so as to restore the image made up of the continuous series of pixels. It is characterized by:

(作用) 本発明の装置は、イメージデータな先ずマトリクス状に
分断し、こうして得られた各ユニットのうち互いに隣り
合うユニットについては、別々のメモリブロックにその
画像信号を格納する。
(Operation) The apparatus of the present invention first divides image data into a matrix, and stores the image signals of adjacent units among the thus obtained units in separate memory blocks.

読み出そうとするイメージが2つのユニット間にまたが
るような場合、そのイメージは必ず辺を共有する隣接し
た一対のユニットから読み出されることになる。従って
、これらを別々のメモリブロックに格納しておけば、読
み出そうとするイメージに対応する画像信号を1回のア
クセスで一挙に読み出すことができる。
If an image to be read spans two units, the image will always be read from a pair of adjacent units that share an edge. Therefore, by storing these in separate memory blocks, the image signals corresponding to the image to be read can be read out all at once in one access.

又、各メモリブロックは、幅1ビット、深さAビットの
容量のメモリ素子群からなり、X方向に並んだ画素に対
応する画像信号も、Y方向に並んだ画素に対応する画像
信号も、−時に取り出されるよう画像信号の格納順が工
夫されている。メモリアドレス生成回路が、これらのメ
モリ素子に所定のアドレス信号を生成して供給すれば、
所望のイメージに対応する画像信号を、X方向にもY方
向にも任意の場所から読み出すことができる。読み出さ
れた信号は、メモリ素子においてそれぞれ所定方向にず
らして格納されているため、ローテータによりその配列
変換を行なって取り出される。
Furthermore, each memory block consists of a memory element group with a capacity of 1 bit in width and A bit in depth, and image signals corresponding to pixels arranged in the X direction and image signals corresponding to pixels arranged in the Y direction are - The order in which image signals are stored is devised so that they can be retrieved at the same time. If the memory address generation circuit generates and supplies predetermined address signals to these memory elements,
An image signal corresponding to a desired image can be read out from any location in both the X and Y directions. Since the read signals are stored shifted in a predetermined direction in each memory element, the rotator converts the arrangement and takes out the signals.

(実施例) 以下、本発明を図面によって詳細に説明する。(Example) Hereinafter, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明のイメージデータ処理装置の実施例を
示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of an image data processing apparatus of the present invention.

この装置は、イメージデータ100を2分して格納する
第1のメモリブロック201 と第2のメモリブロック
202とを備えている。そして、これらのメモリブロッ
ク201.202から読み出された画像信号はローテー
タ300に人力し、その後プロセッサ400に読み出さ
れる構成とされている。又、第1のメモリブロック20
1及び第2のメモリブロック202に対してアドレス信
号を供給するために、メモリアドレス生成回路500が
設けられている。
This device includes a first memory block 201 and a second memory block 202 that store image data 100 divided into two parts. The image signals read out from these memory blocks 201 and 202 are manually input to the rotator 300 and then read out to the processor 400. Moreover, the first memory block 20
A memory address generation circuit 500 is provided to supply address signals to the first and second memory blocks 202.

さて図のように、イメージデータ100は、X方向とY
方向に沿う直線で、それぞれ例えば4分割されマトリク
ス状に分断される。これにより、イメージデータは4×
4、即ち合計16個のユニット101の集合体とされる
。そして、各ユニット101は、それぞれX方向に4ビ
ツト、Y方向に4ビツトの合計16ビツトの画素102
から構成されているものとする。
Now, as shown in the figure, the image data 100 is
Each is divided into, for example, four parts by a straight line along the direction, and is divided into a matrix shape. As a result, the image data becomes 4×
4, that is, a total of 16 units 101. Each unit 101 has a pixel 102 of 16 bits in total, 4 bits in the X direction and 4 bits in the Y direction.
It is assumed that it consists of

尚、イメージデータ100を分断する場合には、X方向
とY方向の分断数は任意でよいが、ユニット101を構
成する画素は、信号処理上、X方向とY方向に同数配列
されていることを要する。
Note that when dividing the image data 100, the number of divisions in the X direction and the Y direction may be arbitrary, but the pixels composing the unit 101 must be arranged in the same number in the X direction and the Y direction for signal processing. It takes.

第1のメモリブロック201及び第2のメモリブロック
202は、図のイメージデータ100を構成する全ての
画素を2分して格納することができる容量を持っている
。尚、この場合、第1のメモリブロック201には、図
のイメージデータ100のうち符合な#1と付したユニ
ットの画像信号が格納される。そして、第2のメモリブ
ロック202には、符合を#2と付したユニットの画像
信号が格納される。即ち、第1のメモリブロック201
と第2のメモリブロック202には、互いに隣接しその
辺103を共有するユニットが別々に格納されるようそ
の格納場所が選択されている。尚、辺103とは、図中
ユニット101の拡大図に示した各ユニットの境界のこ
とである。
The first memory block 201 and the second memory block 202 have a capacity that can store all the pixels constituting the image data 100 shown in the figure divided into two parts. In this case, the first memory block 201 stores the image signal of the unit labeled with the same symbol #1 among the image data 100 shown in the figure. The second memory block 202 stores the image signal of the unit numbered #2. That is, the first memory block 201
The storage locations of the second memory block 202 and the second memory block 202 are selected so that units that are adjacent to each other and share the side 103 are stored separately. Note that the side 103 is a boundary between each unit shown in an enlarged view of the unit 101 in the figure.

又、プロセッサ400は、この装置から1ワード(幅4
ビット)のデータを読み出して処理するものとする。従
って、図中、ユニット101の拡大部分に示したように
、例えばX方向に連続した4ビツトの画素から成るイメ
ージa、bや、Y方向に連続した4ビツトの画素から成
るイメージc、dの読み出しを行なうことになる。尚、
全て1つのユニットに含まれたイメージeを読み出すよ
うな場合もある。
The processor 400 also receives one word (width 4) from this device.
bit) data is read and processed. Therefore, as shown in the enlarged part of the unit 101 in the figure, for example, images a and b consisting of 4-bit pixels continuous in the X direction, and images c and d consisting of 4-bit pixels continuous in the Y direction. Reading will be performed. still,
There is also a case where an image e contained entirely in one unit is read out.

第1図の各ブロックのより詳細な結線図を第4図に示す
A more detailed wiring diagram of each block in FIG. 1 is shown in FIG. 4.

図において、先ず、第1のメモリブロック201は、4
つのメモリ素子M13.M12.Ml 1゜M 10か
ら構成されている。又、第2のメモリブロック202は
、同様に4つのメモリ素子M23゜M22.M21.M
2Oから構成されている。即ち、いずれのメモリブロッ
クにも、第1図に示したイメージデータ100の1つの
ユニット101のX方向の画素数に相当する数の4個の
メモリ素子が設けられている。そして、各メモリ素子は
、幅1ビット、深さ32ビツトのアドレス容量のメモリ
素子群から構成される。
In the figure, first, the first memory block 201 has four
one memory element M13. M12. It is composed of Ml 1°M 10. Further, the second memory block 202 similarly includes four memory elements M23°M22. M21. M
It is composed of 2O. That is, each memory block is provided with four memory elements, the number of which corresponds to the number of pixels in the X direction of one unit 101 of the image data 100 shown in FIG. Each memory element is composed of a memory element group having an address capacity of 1 bit in width and 32 bits in depth.

即ち、イメージデータメモリ110中のイメージデータ
が、第1図に示した例と同様に4×4個のユニットから
構成されており、一方のメモリブロックには4×2個の
ユニット分の画像信号が格納され、各メモリブロックに
4個ずつのメモリ素子が設けられていることから、1個
のメモリ素子には2ユニット分の画像信号が格納されな
ければならない。このことから、1個のメモリ素子には
4X4X2、即ち32ビツトの画像信号が格納されるこ
とになる。
That is, the image data in the image data memory 110 is composed of 4 x 4 units as in the example shown in FIG. 1, and one memory block contains image signals for 4 x 2 units. Since each memory block is provided with four memory elements, two units of image signals must be stored in one memory element. From this, a 4×4×2, ie, 32-bit image signal is stored in one memory element.

一方、メモリアドレス生成回路500には、読み田しあ
るいは書き込みを行なうイメージの配列方向を示すデー
タを格納するX/Y方向レジスタ510と、イメージの
始点のX座標を示すデータを格納するX座標レジスタ5
20と、Y座標を示すデータを格納するY座標レジスタ
530とが設けられている。そして、これらの信号に基
づき、第1のメモリブロック201及び第2のメモリブ
ロック202の各メモリ素子にアドレス信号を出力する
ために、ユニットアドレス発生部540と、画素アドレ
ス発生部550と、素子選択部560とが設けられてい
る。
On the other hand, the memory address generation circuit 500 includes an X/Y direction register 510 that stores data indicating the arrangement direction of images to be read or written, and an X coordinate register 510 that stores data indicating the X coordinate of the starting point of the image. 5
20, and a Y coordinate register 530 that stores data indicating the Y coordinate. Based on these signals, in order to output address signals to each memory element of the first memory block 201 and the second memory block 202, the unit address generation section 540, the pixel address generation section 550, and the element selection A section 560 is provided.

ユニットアドレス発生部540には、X/Y方向レジス
タ510から出力されるX/Y方向信号511と、X座
標レジスタ520から出力されるX座標(X3 、 X
2 、 XI 、 XO) (7)上位2ビットX3.
X2 と、X座標レジスタ530から出力されるY座標
(Y3 、yz 、Y、、Yo)の上位2ビットY5.
Y2とが入力する。画素アドレス発生部550には、X
/Y方向レジスタ510から出力されるX/Y方向信号
511の他、X座標レジスタ520から出力されるX座
標(X3 、 X2 。
The unit address generator 540 receives the X/Y direction signal 511 output from the X/Y direction register 510 and the X coordinate (X3,
2, XI, XO) (7) Upper 2 bits X3.
X2 and the upper two bits Y5 .
Y2 is input. The pixel address generation section 550 includes
In addition to the X/Y direction signal 511 output from the /Y direction register 510, the X coordinates (X3, X2) output from the X coordinate register 520.

X+ 、Xo )(’)下位2ビットx、、Xo 、及
びX座標レジスタ530から出力されるY座標(Y3 
、Yz 、Y+ 、Yo )のうち下位2ビットY、、
Y、が入力する。
X+, Xo) (') Lower two bits x,, Xo, and the Y coordinate (Y3
, Yz , Y+ , Yo ), the lower two bits Y, ,
Y, inputs.

又、素子選択部560には、X座標レジスタ520及び
X座標レジスタ530の出力がそのまま入力する。そし
て、ユニットアドレス発生部540からは、第1のメモ
リブロック201及び第2のメモリブロック202にお
ける各メモリ素子に格納された画像信号のうち、どのユ
ニットに含まれるものを読み出すかを指定する各3ビツ
ト構成のユニットアドレス501が2組出力される。又
、画像アドレス発生部550からは、ユニットアドレス
501で指定されたユニットの、何番目の画素に対応す
る画像信号を読み出すかを指定する各2ビツト構成の画
素アドレス502が4組出力される。素子選択部560
からは、4本4ビツト構成のデータバス301に対し、
2つずつ接続されているメモリ素子のうちいずれのメモ
リ素子を接続するか、それを選択する1ビツト構成の選
択信号503が8組出力される。
Further, the outputs of the X coordinate register 520 and the X coordinate register 530 are inputted as they are to the element selection section 560. Then, from the unit address generation unit 540, each of the three units that specifies which unit of the image signals stored in each memory element in the first memory block 201 and the second memory block 202 is to be read out. Two sets of bit-configured unit addresses 501 are output. Further, the image address generation section 550 outputs four sets of pixel addresses 502, each consisting of 2 bits, which specify which pixel of the unit specified by the unit address 501 corresponds to an image signal to be read out. Element selection section 560
From then on, for the data bus 301 with four 4-bit configurations,
Eight sets of 1-bit selection signals 503 are output for selecting which memory element is to be connected out of the two memory elements that are connected.

従って、第1のメモリブロック201及び第2のメモリ
ブロック202の各メモリ素子には、ユニットアドレス
501 と画素アドレス550と素子選択信号503が
それぞれ入力し、読み出された1ビツトの信号が、デー
タバス301を通じてローテータ300に向けて出力さ
れるよう結線されている。
Therefore, a unit address 501, a pixel address 550, and an element selection signal 503 are input to each memory element of the first memory block 201 and the second memory block 202, and the read 1-bit signal is used as data. The signal is connected to be outputted to the rotator 300 via the bus 301.

ローテータ300は、データバス301に接続された読
み出し部310と書き込み部320と、これらにローテ
ート量を指示するローテート量生成部330とから構成
されている。
The rotator 300 includes a reading unit 310 and a writing unit 320 connected to a data bus 301, and a rotation amount generating unit 330 that instructs these units to rotate.

読み出し部310は、先に第3図で示したような、1ビ
ツトローテートから3ビツトローテートまで適宜画像信
号をずらして出力側に出力する回路である。プロセッサ
400は、ローテート後の画像信号を4ビツト構成のデ
ータバス302を介して読み取り、又、そのデータバス
302を介してローテート後の書き込み部320に向け
て、イメージデータメモリ110に書き込むべきデータ
を出力する。ローテート量生成部330は、メモリアド
レス生成回路500のX座標レジスタ520から出力さ
れるX座標(X3 、X2 、X+ 、Xo )(’)
下位2ビットxl、xo、及びY座標レジスタから出力
されるY座標(Y3 、Yz 、Y+ 、Yo )の下
位2ビットYl、Yoを受は入れて、取り扱われるデー
タに応じたローテート量を演算し、読み出し部310及
び書き込み320のローテート量を制御する回路である
The readout section 310 is a circuit, as shown in FIG. 3, which shifts the image signal as appropriate from 1 bit rotation to 3 bit rotation and outputs it to the output side. The processor 400 reads the rotated image signal via the 4-bit data bus 302, and also sends the data to be written to the image data memory 110 via the data bus 302 to the rotated write unit 320. Output. The rotation amount generation unit 330 generates an X coordinate (X3, X2, X+, Xo) (') output from the X coordinate register 520 of the memory address generation circuit 500.
The lower 2 bits xl and xo and the lower 2 bits Yl and Yo of the Y coordinate (Y3, Yz, Y+, Yo) output from the Y coordinate register are input, and the rotation amount according to the data being handled is calculated. , a circuit that controls the amount of rotation of the read section 310 and the write section 320.

次に、イメージデータメモリ110に格納された画像信
号と、第1のメモリブロック201及び第2のメモリブ
ロック202に格納された画像信号との関係を詳細に述
べる。
Next, the relationship between the image signals stored in the image data memory 110 and the image signals stored in the first memory block 201 and the second memory block 202 will be described in detail.

第5図は、メモリブロックの構成と格納される画像信号
を具体的に示した説明図である。
FIG. 5 is an explanatory diagram specifically showing the configuration of the memory block and the image signals stored therein.

図において、イメージデータメモリ110には、X方向
に16ビツトY方向に16ビツト構成の画像信号が格納
されており、各画像信号には0〜255まで番号が付し
である。
In the figure, an image data memory 110 stores image signals of 16 bits in the X direction and 16 bits in the Y direction, and each image signal is numbered from 0 to 255.

又、図の右方に示すように、第1のメモリブロック20
1を構成する各メモリ素子M13゜Ml 2.Ml 1
.MIOは、それぞれ幅1ビット深さ32ビツトの容量
を持ち、それぞれ5ビツトのアドレスによってそのデー
タの読み書きが行なわれる。そのうち、上位3ビツトが
ユニットアドレス、下位2ビツトが画素アドレスとなる
Also, as shown on the right side of the figure, the first memory block 20
Each memory element M13°Ml 2. Ml 1
.. Each MIO has a capacity of 1 bit wide and 32 bits deep, and its data is read and written using each 5-bit address. Of these, the upper 3 bits are the unit address, and the lower 2 bits are the pixel address.

即ち、例えばイメージデータメモリ110の左上隅にあ
る4×4ビツト構成のユニットに着目してみると、この
ユニットには0,1,2,3゜16.17,18,19
,32,33,34゜35.48,49,50.51の
画像信号が格納されている。これらの画像信号は、第1
のメモリブロックのメモリ素子M13.M12.Ml 
1゜MIOのooooo〜00011までのアドレスに
格納されている。
That is, for example, if we focus on the 4x4 bit configuration unit in the upper left corner of the image data memory 110, this unit has 0, 1, 2, 3 degrees, 16.17, 18, 19 degrees.
, 32, 33, 34° 35.48, 49, 50.51 image signals are stored. These image signals are the first
Memory element M13. of the memory block. M12. Ml
It is stored in addresses from ooooo to 00011 of 1°MIO.

この格納方法は次の通りである。The storage method is as follows.

即ち、予めこのユニット内でX方向に同一列上に並んだ
画素が、1画素分ずつ順にそのX方向にずれるように画
像信号の配列変換が行なわれる。
That is, the arrangement of image signals is converted so that the pixels arranged in advance in the same column in the X direction within this unit are sequentially shifted by one pixel in the X direction.

これは、ちょうど第3図で既に説明したバッファメモリ
53〜56に画像信号を格納したケースと同様の要領で
行なわれる。配列変換後の画像信号が、それぞれY方向
に分断され、別々のメモリ素子に格納されている点も、
第3図に示したものと同様である。尚、このユニットと
隣接する右側あるいは下側のユニットの画像信号は、第
5図に示すように、第2のメモリブロック202に格納
されている。その格納方法は同様である。
This is done in the same manner as in the case where the image signals are stored in the buffer memories 53 to 56 already explained with reference to FIG. Another point is that the image signals after array conversion are divided in the Y direction and stored in separate memory elements.
It is similar to that shown in FIG. Incidentally, the image signals of the unit on the right side or below adjacent to this unit are stored in the second memory block 202, as shown in FIG. The storage method is the same.

次に、第4図に示したユニットアドレス発生部540の
動作の説明をする。
Next, the operation of unit address generation section 540 shown in FIG. 4 will be explained.

第6図は、ユニットアドレス発生部の具体的な結線図で
ある。
FIG. 6 is a specific wiring diagram of the unit address generation section.

このユニットアドレス発生部540は、X/Y方向レジ
スタ510と、X座標レジスタ520と、Y座標レジス
タ530の出力を受は入れるアドレス変換器541と、
このアドレス変換器541の出力及びX座標とY座標の
うちの一部のビット、Ys。
This unit address generation section 540 includes an address converter 541 that receives the outputs of an X/Y direction register 510, an X coordinate register 520, and a Y coordinate register 530.
The output of this address converter 541 and some bits of the X and Y coordinates, Ys.

X3.Y2を受は入れる加算器542及び加算器543
とから構成されている。
X3. Adder 542 and adder 543 that receive Y2
It is composed of.

アドレス変換器541は、後で第8図に示すような要領
で、各レジスタ510.520.530から入力する信
号に対応する4ビットの出力信号Ql、Q2゜Q3.Q
4を得る回路である。又、加算器542は、X座標レジ
スタ520から出力されるX座標、X3.X2 、XI
 、Xoのうちの最上位ビットx3と、Y座標レジスタ
530から出力されるY座標・¥3・Y2 、Y+ 、
Yoのうちの上位2ビツトY3 、Y2を受は入れて、
アドレス変換器541から出力される信号Q3.Q4に
所定の値を加算して、第1のメモリブロックに対するユ
ニットアドレスを出力する回路である。加算器543は
、加算器542と同様にX座標レジスタ520及びY座
標レジスタ530からの信号を受は入れ、かつ、アドレ
ス変換器541の出力信号Ql、Q2を受は入れて所定
の演算を行ない、第2のメモリブロックに対するユニッ
トアドレスを出力する回路である。
Address converter 541 outputs 4-bit output signals Ql, Q2°Q3 . Q
This is a circuit that obtains 4. Further, the adder 542 receives the X coordinates output from the X coordinate register 520, X3 . X2, XI
, the most significant bit x3 of Xo, and the Y coordinate output from the Y coordinate register 530 ¥3 Y2 , Y+ ,
Input the upper two bits Y3 and Y2 of Yo,
Signal Q3. output from address converter 541. This circuit adds a predetermined value to Q4 and outputs a unit address for the first memory block. Like the adder 542, the adder 543 receives the signals from the X coordinate register 520 and the Y coordinate register 530, and also receives the output signals Ql and Q2 of the address converter 541 to perform a predetermined operation. , is a circuit that outputs a unit address for the second memory block.

この回路の動作を、第7図及び第8図を用いて詳細に説
明する。
The operation of this circuit will be explained in detail using FIGS. 7 and 8.

第7図は、ユニットアドレスを選択するだめの原理の説
明図である。
FIG. 7 is an explanatory diagram of the principle of selecting a unit address.

図において、先に説明したように、イメージデータメモ
リ100は4×4、即ち16個のユニットから構成され
、各ユニットはそれぞれ16ビツトの画像信号から構成
されているため、合計4X4X 16ビツトの画像信号
が2分されて、第1のメモリブロック201と第2のメ
モリブロック202とに格納されることになる。即ち、
第1のメモリブロックには4X4X8、即ち4×32ビ
ツトの画像信号が格納される。第2のメモリブロックも
同様である。そして、図のように各ユニットに予めユニ
ット番号を<0>〜〈7〉のように付しておく。この場
合、第1のメモリブロック201に格納されるユニット
にはハツチングを付し、第2のメモリブロック202に
格納されるユニットにも隣り同志は同一の番号を付した
In the figure, as explained earlier, the image data memory 100 is composed of 4 x 4, that is, 16 units, and each unit is composed of a 16-bit image signal, so a total of 4 x 4 x 16-bit images are generated. The signal is divided into two parts and stored in the first memory block 201 and the second memory block 202. That is,
A 4×4×8, ie, 4×32 bit image signal is stored in the first memory block. The same applies to the second memory block. Then, as shown in the figure, each unit is assigned a unit number in advance such as <0> to <7>. In this case, units stored in the first memory block 201 are marked with hatching, and adjacent units stored in the second memory block 202 are also given the same number.

こうして、いずれのメモリブロックにも上から順に<0
>〜く7〉のユニットが格納される。
In this way, all memory blocks have <0 in order from the top.
>~7> units are stored.

ここで、イメージデータメモリ110におけるX座標と
Y座標は、それぞれ先に説明したように4ビツト構成の
ディジタルデータとなるが、そのうち上から2番目のビ
ット、即ちX2’、Yまたけに着目しても、第7図に示
すように、0.1゜0.1と各ユニットの位置が識別で
きるようになる。即ち例えば、x2がO,Y2が0のユ
ニットは、左上隅のユニットと、その2つ右のユニット
及びその2つ下のユニットと、更にその2つ左のユニッ
トの計4つのユニットとなる。このような関係を利用す
ると、第8図のように、ユニットアドレスの作成を行な
うことができる。
Here, the X and Y coordinates in the image data memory 110 are each 4-bit digital data as explained above, but we will focus on the second bit from the top, that is, the X2' and Y straddle. However, as shown in FIG. 7, the position of each unit can be identified as 0.1°0.1. That is, for example, there are a total of four units in which x2 is O and Y2 is 0: the unit in the upper left corner, the unit two places to the right of it, the unit two places below it, and the unit two places to the left of it. By utilizing such a relationship, a unit address can be created as shown in FIG.

第8図において、先ず、その左端部分には第6図に示し
たアドレス変換器541の入力信号と出力信号を示した
。入力信号はX/Y方向信号で、これはOの場合X方向
に並んだイメージを処理し、1の場合はY方向に並んだ
イメージを処理することを意味する。又、X2 、 y
’2は、第7図を用いて説明した通りの内容のデータで
ある。そして、第7図に示したアドレス変換器541は
、これらの入力信号に対応してQl、Q2.Q3.Q4
というような内容のデータを出力する。又、その右側に
は各メモリブロック中で対となって選択されるユニット
が表示されている。即ち、例えば第7図の左上隅のユニ
ットが読み出されるべきイメージの始点を含むユニット
である場合、イメージの終点側のユニットはその右隣り
あるいは下隣りのものになる。アドレス変換器541の
入力信号によって、この始点側のユニットと終点側のユ
ニットが限定され、その組み合わせが第8図の表に示さ
れている。
In FIG. 8, first, the input and output signals of the address converter 541 shown in FIG. 6 are shown at the left end. The input signal is an X/Y direction signal, which means that when it is O, images aligned in the X direction are processed, and when it is 1, images aligned in the Y direction are processed. Also, X2, y
'2 is the data as explained using FIG. Then, the address converter 541 shown in FIG. 7 converts Ql, Q2 . Q3. Q4
Outputs data such as. Further, on the right side, units selected in pairs in each memory block are displayed. That is, for example, if the unit at the upper left corner of FIG. 7 is the unit that includes the starting point of the image to be read out, the unit at the end point of the image will be the unit to the right or below. The units on the starting point side and the units on the ending point side are limited by the input signal of the address converter 541, and the combinations thereof are shown in the table of FIG.

そして、これらの場合、第1のメモリブロックに格納さ
れたユニットが始点側になるか、第2のメモリブロック
に格納されたユニットが始点側になるかを、第8図の対
関係という欄に表示している。即ち、例えば、始点側の
ユニットが第1のメモリブロックの<0>のユニットで
あるとする。
In these cases, indicate whether the unit stored in the first memory block will be on the starting point side or the unit stored in the second memory block will be on the starting point side in the column labeled pair relationship in Figure 8. it's shown. That is, for example, assume that the unit on the starting point side is the <0> unit of the first memory block.

この場合には、アドレス変換器541の入力信号X2.
Yzは共にOとなる。そして、X 、/ Yが0ならば
X方向のイメージであるから、対関係になるユニットは
、第1のメモリブロックの<0>と第2のメモリブロッ
クの<O> (#1−12)となる。従って、第1のメ
モリブロックのユニット番号が0と選択されると、終点
側については十〇、即ち同一のユニット番号Oが選択さ
れ、これが第6図のユニットアドレスとしてデータアド
レス発生部540から出力されるのである。
In this case, the input signal X2. of the address converter 541.
Both Yz becomes O. If X,/Y is 0, it is an image in the X direction, so the units in a pairing relationship are <0> of the first memory block and <O> of the second memory block (#1-12). becomes. Therefore, when the unit number of the first memory block is selected as 0, 10, that is, the same unit number O is selected for the end point side, and this is output from the data address generation section 540 as the unit address in FIG. It will be done.

又、同一の始点でX/Y=1、即ちY方向にイメージが
並んでいる場合には、対関係となるユニットは第1のメ
モリブロックの<0>と第2のメモリブロックの<1>
 (#1−#2)となる。
Also, if X/Y=1 at the same starting point, that is, images are lined up in the Y direction, the paired units are <0> in the first memory block and <1> in the second memory block.
(#1-#2).

この場合には、第1のメモリブロックのユニット番号が
Oと選択された場合、そのユニット番号に1を加算して
終点側の第2のメモリブロックのユニットアドレスが発
生されることになる。
In this case, if the unit number of the first memory block is selected as O, 1 is added to the unit number to generate the unit address of the second memory block on the end point side.

又、始点になるユニットが第2のメモリブロック(7)
 < 4 > ニある場合、X2 = 1 、 Yz 
= Oとなる。そしてX/Y=O5即ちX方向にイメー
ジが並んでいる場合、対関係となるユニットは、第2の
メモリブロックのく4〉と第1のメモリブロックの<6
> (#2−#1)となる。従って、この場合には、第
1のメモリブロックのユニット番号4に2が加算されて
、第1のメモリブロックのユニットアドレスが発生され
る。
Also, the unit that becomes the starting point is the second memory block (7)
<4> If there are 2, X2 = 1, Yz
= O. Then, when X/Y=O5, that is, the images are arranged in the X direction, the paired units are the second memory block <4> and the first memory block <6>.
>(#2-#1). Therefore, in this case, 2 is added to the unit number 4 of the first memory block to generate the unit address of the first memory block.

又、同一の始点でX/Y=1、即ちY方向にイメージが
並んでいる場合には、対関係となるユニットは第2のメ
モリブロックのく4〉と第1のメモリブロックの<5>
 (#2−#1)となる。
Also, if X/Y=1 at the same starting point, that is, images are lined up in the Y direction, the paired units are the second memory block No. 4> and the first memory block No. 5>.
(#2-#1).

従って、この場合には、第1のメモリブロックのユニッ
ト番号に1を加算して、第1のメモリブロックのユニッ
トアドレスを発生させることになる。
Therefore, in this case, 1 is added to the unit number of the first memory block to generate the unit address of the first memory block.

第6図に示した加算器542.543は、以上のように
してそれぞれのユニットアドレスを生成し、第1のメモ
リブロック及び第2のメモリブロックにその信号を出力
する。
The adders 542 and 543 shown in FIG. 6 generate respective unit addresses as described above, and output the signals to the first memory block and the second memory block.

第9図は、第5図に示した各メモリブロック:201,
202の5ビツトのアドレス信号のうち、下位3ビツト
を発生ずるための回路動作の説明図で、第4図に示した
画素アドレス発生部550が、この表に従って画素アド
レスを発生する。
FIG. 9 shows each memory block shown in FIG. 5: 201,
This is an explanatory diagram of a circuit operation for generating the lower 3 bits of the 5-bit address signal 202. The pixel address generation section 550 shown in FIG. 4 generates a pixel address according to this table.

即ち、第4図に示した画素アドレス発生部550は、第
9図に示すようにX/YとX+、Xo及びY+、Yoを
受は入れて、第1のメモリブロック201及び第2のメ
モリブロック202に設けられたそれぞれ4つのメモリ
素子に対し、表中に示したような2ビツトの画素アドレ
ス信号を出力する。
That is, the pixel address generation unit 550 shown in FIG. 4 receives X/Y, X+, Xo, Y+, and Yo as shown in FIG. A 2-bit pixel address signal as shown in the table is output to each of the four memory elements provided in the block 202.

このように、X方向の読み出しを行なう場合には、各素
子へ同一のアドレスが供給され、Y方向の読み出しを行
なう場合には、アドレスが順に1ずつ増加するようにさ
れる。その理由は第5図を見れば明らかである。これに
よって、X方向あるいはY方向に、ちょうど第3図の■
〜■で説明したような要領で画像信号が読み出されるこ
とになる。
In this way, when reading in the X direction, the same address is supplied to each element, and when reading in the Y direction, the addresses are sequentially incremented by 1. The reason for this becomes clear when looking at Figure 5. As a result, in the X direction or Y direction, the
The image signal is read out in the manner described in ~■.

第10図には、このようにして読み出された画像信号が
、第1図に示したローテータ300においてローテート
される場合のローテート量を示す表である。
FIG. 10 is a table showing the amount of rotation when the image signal read out in this manner is rotated by the rotator 300 shown in FIG. 1.

この表において、メモリ素子M13.M12゜Ml 1
.MIO,M23.M22.M21゜M2Oは、第4図
の素子選択部560によって、そのいずれか4つが選択
されてデータバス301に接続される。表中のO印は、
どのような場合にどのメモリ素子が選択されるかを示し
ており、そのうち・印はMSB (最上位ビット)にロ
ーデートするべき画像信号を指している。
In this table, memory element M13. M12゜Ml 1
.. MIO, M23. M22. Any four of M21°M2O are selected by the element selection section 560 in FIG. 4 and connected to the data bus 301. The O mark in the table is
It shows which memory element is selected in which case, and the * mark indicates the image signal to be loaded into the MSB (most significant bit).

即ち、例えば表中の最上段の画像信号は、Ml 3.M
l 2.Ml 1.Ml oから読み出され、その左端
にMSBとなる画像信号が位置しているため、ローデー
トされずそのままプロセッサ400に読み出される。次
の段の画像信号は、左から2番目にMSBとなる画像信
号が格納されているため、1ビツトローテートして出力
されることになる。又、読み出されるべきイメージによ
って、図のように種々の組み合わせによってメモリ素子
が選択されて画像信号が読み出されている。
That is, for example, the image signal at the top of the table is Ml 3. M
l 2. Ml 1. Since the image signal is read from Mlo and the MSB is located at the left end thereof, it is read out to the processor 400 as it is without being loaded. Since the image signal in the next stage is stored as the second MSB from the left, it is output after being rotated by 1 bit. Further, depending on the image to be read out, memory elements are selected in various combinations as shown in the figure, and image signals are read out.

尚、図を見て分るように、ローテート量生成部330に
入力するXl、Xo、Yl、Yoの信号の変化に応じて
、ローテート量が0.1,2,3゜1.2.3というよ
うに変化している。しかし、読み出されるイメージの配
列方向がX方向であるかY方向であるかは、そのローテ
ート量に影響を与えない。従って、X+ 、Xo 、 
Y+ 、Yaの4つの信号によって、ローテート量は一
意的に決定される。
As can be seen from the figure, the rotation amount varies by 0.1, 2, 3 degrees, 1.2.3 degrees, depending on the changes in the signals Xl, This is how things are changing. However, whether the arrangement direction of the images to be read out is the X direction or the Y direction does not affect the amount of rotation. Therefore, X+, Xo,
The rotation amount is uniquely determined by the four signals Y+ and Ya.

尚、X2 =O,Y2 =O又はX 2 = 1 。Note that X2 = O, Y2 = O or X2 = 1.

Y、=1(7)場合に対シテ、X、=1.Y2=O又は
X2=○、Yl = 1のときには、メモリ素子M13
とM23、Ml2とM22、M 11とM21、MIO
とM2O、をそれぞれ置換したものとなる。又、データ
の書き込み時はこの逆となることはいうまでもない。
If Y,=1 (7), then X,=1. When Y2=O or X2=○, Yl=1, memory element M13
and M23, Ml2 and M22, M11 and M21, MIO
and M2O, respectively. Moreover, it goes without saying that the opposite is true when writing data.

最後に、本発明の装置の具体的な読み出し動作を説明す
ると、例えば、第5図に示したイメージデータメモリ1
10において、その始点の座標が(1,5)である4ビ
ツトのイメージを読み書きするものとする。
Finally, to explain the specific read operation of the device of the present invention, for example, the image data memory 1 shown in FIG.
10, it is assumed that a 4-bit image whose starting point has coordinates (1, 5) is to be read and written.

このデータは、図のハツチングで示すように81.82
,83.84であって、その始点の座標を2進法で表示
すれば、0OOi、 0101となる。この場合、ユニ
ットアドレスは、第1のメモリブロックについても第2
のメモリブロックについてもそれぞれ001となり、第
7図で説明したユニットく1〉が両ブロックから選択さ
れる。又、画素アドレスは、全てのメモリ素子について
olとなる。即ち、メモリ素子のアドレスは10進法で
5となる。又、このときの素子選択信号は、X2 = 
O、Yl = 1であるから、メモリ素子M23.M1
2.M21.M2Oが選択される。
This data is 81.82 as shown by the hatching in the figure.
, 83.84, and if the coordinates of the starting point are expressed in binary notation, they become 0OOi, 0101. In this case, the unit address also applies to the first memory block.
001 for each memory block, and unit 1> explained in FIG. 7 is selected from both blocks. Further, the pixel address is ol for all memory elements. That is, the address of the memory element is 5 in decimal notation. Also, the element selection signal at this time is X2 =
Since O, Yl = 1, memory element M23. M1
2. M21. M2O is selected.

こうして出力される画像信号は、第5図を見て分るよう
に、2ビツトシフトされた形の画像信号であるから、ロ
ーテータによって2ビツトずらすことによりプロセッサ
に読み取られる。
As can be seen from FIG. 5, the image signal thus output is an image signal shifted by 2 bits, and therefore is read by the processor by shifting the image signal by 2 bits by the rotator.

又、今度は、始点の座標がイメージデータメモリ110
の(3,3)であって、Y方向に4ビット並んだイメー
ジデータな読み書きする場合を考える。この場合、始点
の座標を2進法で表わすと0011.0011となる。
Also, this time, the coordinates of the starting point are stored in the image data memory 110.
Let us consider the case of reading and writing image data (3, 3) in which 4 bits are arranged in the Y direction. In this case, the coordinates of the starting point are expressed in binary notation as 0011.0011.

又、その画像信号は、51゜67.83.99となる。Further, the image signal is 51°67.83.99.

従って、第1のメモリブロックのアドレスは<0>、第
2のメモリブロックのアドレスはく1〉となり、第1の
メモリブロック201のメモリ素子Mllのアドレス0
0011 、及び第2のメモリブロック202のメモリ
素子M23のアドレス00101 、及びメモリ素子M
22のアドレス00110、及びメモリ素子M20のア
ドレス00100から画像信号が読み出されることにな
る。この場合も、画像信号は2ビツトシフトしているか
ら、2ビツトローテートされて読み出されることになる
Therefore, the address of the first memory block is <0>, the address of the second memory block is <1>, and the address of the memory element Mll of the first memory block 201 is 0.
0011, and the address 00101 of the memory element M23 of the second memory block 202, and the memory element M
The image signal is read from address 00110 of M22 and address 00100 of memory element M20. In this case as well, since the image signal is shifted by 2 bits, it is read out after being rotated by 2 bits.

本発明のイメージデータ処理装置は以上の実施例に限定
されない。
The image data processing device of the present invention is not limited to the above embodiments.

イメージデータをマトリクス状に分断する場合、その分
断数あるいは分断されたユニットのビット構成は自由に
選択してよい。又、そのアドレス生成やデータの配列変
換等の回路についても、必要に応じて適宜同様の機能を
有する回路に置き換えて差し支えない。
When image data is divided into a matrix, the number of divisions or the bit configuration of the divided units may be freely selected. Further, the circuits for address generation, data arrangement conversion, etc. may be replaced with circuits having similar functions as necessary.

(発明の効果) 以上説明した本発明のイメージデータ処理装置によれば
、2次元の種々のイメージデータをワード単位で読み出
して、例えばこれを回転したり密度変換例えば拡大縮小
をしたり、種々の演算処理を施した上で、再びイメージ
データメモリに格納するという処理を、極めて高速に行
なうことができる。しかもX方向に並んだイメージデー
タも、Y方向に並んだイメージデータも、同様のアルゴ
リズムで処理できるため、方向によって演算速度が違う
といった問題も無く、プロセッサの効率的な使用が可能
である。
(Effects of the Invention) According to the image data processing device of the present invention described above, various two-dimensional image data can be read out in word units, and can be subjected to various processes such as rotation, density conversion, scaling, etc. The process of performing arithmetic processing and then storing the data in the image data memory again can be performed at extremely high speed. Moreover, since the image data arranged in the X direction and the image data arranged in the Y direction can be processed using the same algorithm, there is no problem that the calculation speed differs depending on the direction, and the processor can be used efficiently.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明のイメージデータ処理装置の実施例を示
すブロック図、第2図は従来のイメージデータ処理装置
のブロック図、第3図は従来の他のイメージデータ処理
装置の動作説明図、第4図は本発明の装置の実施例結線
図、第5図はメモリブロックの構成と格納される画像信
号の説明図、第6図はユニッI・アドレス発生部の結線
図、第7図はユニットアドレス選択のための説明図、第
8図はユニットアドレス発生部の動作説明図、第9図は
画素アドレス発生部の動作説明図、第10図は画像信号
とローテート量との説明図である。 100・・・イメージデータ、101・・・ユニット、
102・・・画素、103・・・辺、 110・・・イメージデータメモリ、 201・・・第1のメモリブロック、 202・・・第2のメモリブロック、300・・・ロー
テータ、400・・・プロセッサ、 500・・・メモリアドレス生成回路、501 ・・・
ユニットアドレス信号、502・・・画素アドレス信号
、 503・・・素子選択信号。 特許出願人 沖電気工業株式会社 メモリブロックの構成と格納される画像信号第5図
FIG. 1 is a block diagram showing an embodiment of the image data processing device of the present invention, FIG. 2 is a block diagram of a conventional image data processing device, and FIG. 3 is an explanatory diagram of the operation of another conventional image data processing device. Fig. 4 is a wiring diagram of an embodiment of the device of the present invention, Fig. 5 is an explanatory diagram of the structure of the memory block and stored image signals, Fig. 6 is a wiring diagram of the unit I/address generation section, and Fig. 7 is An explanatory diagram for unit address selection, FIG. 8 is an explanatory diagram of the operation of the unit address generation section, FIG. 9 is an explanatory diagram of the operation of the pixel address generation section, and FIG. 10 is an explanatory diagram of the image signal and rotation amount. . 100... Image data, 101... Unit,
102... Pixel, 103... Side, 110... Image data memory, 201... First memory block, 202... Second memory block, 300... Rotator, 400... Processor, 500...Memory address generation circuit, 501...
Unit address signal, 502... Pixel address signal, 503... Element selection signal. Patent applicant Oki Electric Industry Co., Ltd. Memory block configuration and stored image signals Figure 5

Claims (1)

【特許請求の範囲】 イメージデータを、互いに直交するX方向とY方向に沿
う直線でマトリクス状に分断し、それぞれX方向とY方
向に同数の画素が配列されて成るユニットの集合体とし
、 前記イメージデータを構成する全ての画素に対応する画
像信号を格納するための2つのメモリブロックを用意し
、 前記ユニットのうち、互いに隣接しその辺を共有するも
の同志の画像信号が、それぞれ別々の前記メモリブロッ
クに格納されるように、前記イメージデータを構成する
全ての画素に対応する画像信号を2分して格納し、 前記各メモリブロックは、 前記ユニットのX方向の画素数に相当する数の、幅1ビ
ット、深さA(Aは正の整数で、メモリのアドレス容量
を示す)ビットの容量のメモリ素子群からなり、 前記ユニット内でY方向に並んだ前記画素が、1画素分
ずつ順にそのX方向にずれるように画像信号の配列変換
を行ない、 この配列変換後の各ユニットの画像信号をそのY方向に
分断してそれぞれ別の前記メモリ素子に格納し、 前記2つのメモリブロックから、互いに隣接しその辺を
共有する2つのユニットの画像信号のうちX方向又はY
方向に連続した一連の画素に対応する画像信号を読み出
すために、前記各メモリブロックに対し、そのメモリブ
ロックを構成する各メモリ素子から、前記画像信号を1
つずつ読み出すためのアドレス信号と、読み出させるべ
きメモリ素子を選択する素子選択信号とを生成するメモ
リアドレス生成回路と、 前記連続した一連の画素から成るイメージを復元するよ
うに、前記各メモリ素子から同時に読み出された画像信
号のX方向の配列をずらして配列変換するローテータと
を備えたことを特徴とするイメージデータ処理装置。
[Scope of Claims] Image data is divided into a matrix by straight lines along X and Y directions that are perpendicular to each other, and each unit is a collection of units each having the same number of pixels arranged in the X and Y directions, Two memory blocks are prepared for storing image signals corresponding to all the pixels constituting the image data, and the image signals of the units adjacent to each other and sharing the same side are stored in the separate memory blocks. An image signal corresponding to all pixels constituting the image data is divided into two and stored in a memory block, and each memory block has a number of pixels corresponding to the number of pixels in the X direction of the unit. , a group of memory elements with a capacity of 1 bit in width and A bit in depth (A is a positive integer, indicating the address capacity of the memory), and the pixels arranged in the Y direction within the unit are arranged one pixel at a time. The arrangement of the image signals is sequentially converted so that they are shifted in the X direction, and the image signals of each unit after this arrangement conversion are divided in the Y direction and stored in separate memory elements, and from the two memory blocks. , of the image signals of two units adjacent to each other and sharing that side, in the X direction or in the Y direction.
In order to read image signals corresponding to a series of pixels continuous in the direction, one image signal is read out from each memory element constituting the memory block for each memory block.
a memory address generation circuit that generates an address signal for reading out one memory element at a time and an element selection signal for selecting a memory element to be read out; An image data processing device comprising: a rotator that shifts and converts the arrangement of image signals read out simultaneously in the X direction in the X direction.
JP63067185A 1988-03-23 1988-03-23 Image data processor Expired - Lifetime JP2548286B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63067185A JP2548286B2 (en) 1988-03-23 1988-03-23 Image data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63067185A JP2548286B2 (en) 1988-03-23 1988-03-23 Image data processor

Publications (2)

Publication Number Publication Date
JPH01240985A true JPH01240985A (en) 1989-09-26
JP2548286B2 JP2548286B2 (en) 1996-10-30

Family

ID=13337585

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63067185A Expired - Lifetime JP2548286B2 (en) 1988-03-23 1988-03-23 Image data processor

Country Status (1)

Country Link
JP (1) JP2548286B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6961474B1 (en) 1998-02-27 2005-11-01 Shikino High-Tech Co., Ltd. Huffman encoder for encoding/decoding DCT coefficients

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5439098A (en) * 1977-08-31 1979-03-24 Kyowa Hakko Kogyo Co Ltd Mitomycin c derivatives
JPS62205452A (en) * 1986-03-06 1987-09-10 Nec Corp Memory control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5439098A (en) * 1977-08-31 1979-03-24 Kyowa Hakko Kogyo Co Ltd Mitomycin c derivatives
JPS62205452A (en) * 1986-03-06 1987-09-10 Nec Corp Memory control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6961474B1 (en) 1998-02-27 2005-11-01 Shikino High-Tech Co., Ltd. Huffman encoder for encoding/decoding DCT coefficients

Also Published As

Publication number Publication date
JP2548286B2 (en) 1996-10-30

Similar Documents

Publication Publication Date Title
JPS6235679B2 (en)
JPS6247786A (en) Exclusive memory for adjacent image processing
JP3586991B2 (en) Texture data reading device and rendering device
JPH07121693A (en) Image processing device
US5714975A (en) Apparatus and method for generating halftoning or dither values
JPH01240985A (en) Image data processor
JP2814860B2 (en) Image scaling device
JPH0282329A (en) Method of transferring data
JP2812292B2 (en) Image processing device
JPS61235958A (en) Image storage device
JP3016372B2 (en) Image processing device
JPH061449B2 (en) Image memory for image editing
JPS59188761A (en) Write system of picture memory
JP2751124B2 (en) Image processing device
JP2753349B2 (en) Arbitrary angle rotation image data input / output method, input / output circuit thereof, and electronic file device using the same
JP2647073B2 (en) Graphic display device
JPH079572B2 (en) Vertical / horizontal conversion device for pattern data
JP2557630B2 (en) Image reduction device
JPS61148487A (en) Expander/reducer
JPS62133575A (en) Memory device
JPS6172290A (en) Image rotation control method
JPH0743698B2 (en) Parallel data processor
JPH0727558B2 (en) Image memory device
JPS59180777A (en) System for rotation processing of graphic data
JPH01201780A (en) Information processor