JPH061449B2 - Image memory for image editing - Google Patents

Image memory for image editing

Info

Publication number
JPH061449B2
JPH061449B2 JP60042238A JP4223885A JPH061449B2 JP H061449 B2 JPH061449 B2 JP H061449B2 JP 60042238 A JP60042238 A JP 60042238A JP 4223885 A JP4223885 A JP 4223885A JP H061449 B2 JPH061449 B2 JP H061449B2
Authority
JP
Japan
Prior art keywords
image
memory
data
array
access
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 - Lifetime
Application number
JP60042238A
Other languages
Japanese (ja)
Other versions
JPS61201350A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP60042238A priority Critical patent/JPH061449B2/en
Publication of JPS61201350A publication Critical patent/JPS61201350A/en
Publication of JPH061449B2 publication Critical patent/JPH061449B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はイメージの任意の副配列(1×p2またはp×
p、但し、pはビット数)によってワード編成のランダ
ム・アクセス・メモリよりのアクセスを簡単な構成によ
って行なえるようにした画像編集用イメージメモリに関
する。
DETAILED DESCRIPTION OF THE INVENTION INDUSTRIAL FIELD OF APPLICATION The present invention relates to any sub-array of images (1 × p 2 or px).
p, where p is the number of bits), relates to an image memory for image editing in which access from a random access memory of word organization can be performed with a simple structure.

〔従来の技術〕[Conventional technology]

従来の画像編集用イメージメモリとして、例えば、0と
1の2値を用いたデジタル画像の処理に用いられるワー
ド編成のイメージメモリがあるが、そのアクセスに際し
ては、通常のマイクロコンピュータシステムのメモリと
同様の構成及びアクセス方法がとられている。即ち、w
ビットのワード編成の場合、イメージデータはr×ws
の2次元配置となる。この場合のアクセスは、1×w単
位となるため、行方向に対しては1行毎の指定が可能で
あるが、列方向に対してはwビット毎にしか行うことが
できない不便さがある。
As a conventional image memory for image editing, for example, there is a word organization image memory used for processing a digital image using binary values of 0 and 1, but at the time of access, it is the same as the memory of a normal microcomputer system. And the access method are adopted. That is, w
In the case of word organization of bits, the image data is r × ws
It becomes a two-dimensional arrangement. Since the access in this case is 1 × w unit, it is possible to specify every row in the row direction, but there is an inconvenience that it can be performed only every w bits in the column direction. .

これを解決するものとして、特公昭54−39098「イメー
ジ処理のためのメモリ・システム」が提案されている。
As a solution to this problem, Japanese Patent Publication No. 54-39098 "Memory System for Image Processing" has been proposed.

かかるシステムにあっては、各々0,1,…pq−1の
番号を付されたpq個の記録モジュールを有し、これら
のモジュールは複数のイメージ点I(i,j)から成る
rp×sqのイメージ配列を記憶(但し、iは0≦i<
rpの範囲にあり、且つjは0≦j<sqの範囲内にあ
る)する手段を有すると共に、イメージ点I(i,j)
を記憶モジュールM(i,j)=(iq+j)//pqへ
転送し、更にここから他へ転送するための転送手段を有
している(ここで、(iq+j)//pqは(iq+j)
をpqで割算した場合の余り整数である)。尚、p,
q,r,sは設計パラメータであって妥当な範囲内にお
いて任意の整数値をとる。更に、転送手段と協働してイ
メージ点I(i,j)を記憶モジュールM(i,j)の
記憶装置A(i,j)=i/p×s+j/qへ記憶さ
せ、或いは読出すアドレス計算手段、及びイメージ配列
の1×pqまたはp×qの任意の副配列におけるpq個
のイメージ点を同時に記憶または読出すための制御手段
をもって構成されている。
In such a system, there are pq recording modules, each numbered 0, 1, ... Pq−1, these modules being rp × sq consisting of a plurality of image points I (i, j). Image array is stored (where i is 0 ≦ i <
rp and j is in the range 0 ≦ j <sq) and the image point I (i, j)
To a storage module M (i, j) = (iq + j) // pq and further from there to another (where (iq + j) // pq is (iq + j)
Is the remainder integer when p is divided by pq). In addition, p,
q, r, and s are design parameters and take arbitrary integer values within a reasonable range. Further, in cooperation with the transfer means, the image point I (i, j) is stored in or read out from the storage device A (i, j) = i / p × s + j / q of the storage module M (i, j). It comprises address calculation means and control means for simultaneously storing or reading out pq image points in any 1 × pq or p × q sub-array of the image array.

以上の構成によれば、pqビットのワード編成が得ら
れ、且つ1×pqあるいはp×qの単位でアクセスを行
うことができ、行方向、列方向ともに1ビット毎にアク
セスの起点を指定することが可能となる。
According to the above configuration, a pq-bit word organization can be obtained, and access can be performed in units of 1 × pq or p × q, and the starting point of access is designated for each bit in both the row and column directions. It becomes possible.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

しかし、特公昭54−39098にあっては、各メモリモジュ
ール毎にアドレスを制御する必要があるため、ハードウ
ェア量が多大になると共にアドレス制御が非常に複雑に
なる不都合がある。また、画像の切り出し、移動、回
転、合成、拡大、縮小等の画像編集処理にあっては、必
ずしもアクセスの起点を行方向、列方向ともに1ビット
単位で指定する必要は無く、簡単な構成のメモリが望ま
れる。
However, in Japanese Patent Publication No. 54-39098, since it is necessary to control the address for each memory module, there is the inconvenience that the amount of hardware becomes large and the address control becomes very complicated. Further, in image editing processing such as image cutout, movement, rotation, composition, enlargement, reduction, etc., it is not always necessary to specify the starting point of access in 1-bit units in both the row direction and the column direction. Memory is desired.

〔問題点を解決するための手段および作用〕[Means and Actions for Solving Problems]

本発明は上記に鑑みてなされたものであり、1×p
たはp×pによるメモリアクセスを簡単な構成で行える
ようにするため、pビットの読み書きが可能なメモリモ
ジュールのp個を同一のアドレス値によってアクセスす
るようにした画像編集用イメージメモリを提供するもの
である。
The present invention has been made in view of the above, and in order to enable memory access by 1 × p 2 or p × p with a simple configuration, p memory modules capable of reading and writing p bits are the same. It provides an image memory for image editing which is accessed by an address value.

〔実施例〕〔Example〕

以下、本発明による画像編集用イメージメモリを詳細に
説明する。
Hereinafter, the image memory for image editing according to the present invention will be described in detail.

第2図は本発明のイメージメモリを用いて構成される画
像編集装置の一実施例を示し、CCD等を用いて原稿の
画像を読みとり2値画像あるいはディザ法等を用いて得
た擬似中間調画像を入力する画像入力装置1と、画像処
理及びデータの転送制御をCPU3に行わせるためのプ
ログラムが格納されたROM2と、該ROM2のプログ
ラムに従って画像処理制御等を実行するCPU3と、画
像入力装置1によって入力した擬似中間調画像を記憶す
ると共に、画像処理後のデータを記憶するイメージメモ
リ4と、画像編集した内容等をハードコピーする画像出
力装置5と、編集処理中の内容等をモニタするCRTデ
ィスプレイ6と、処理のための各種指令を入力するキー
ボード等の入力装置7と、前記各部材相互に接続されて
データ交換を行うデータバス8より構成される。
FIG. 2 shows an embodiment of an image editing apparatus constructed by using the image memory of the present invention, in which an image of an original is read using a CCD or the like and a pseudo halftone obtained by using a binary image or a dither method or the like. An image input device 1 for inputting an image, a ROM 2 storing a program for causing the CPU 3 to perform image processing and data transfer control, a CPU 3 for executing image processing control and the like according to the program of the ROM 2, and an image input device The image memory 4 for storing the pseudo halftone image input by 1 and the data after the image processing, the image output device 5 for making a hard copy of the edited contents and the like, and the contents during the editing process are monitored. A CRT display 6, an input device 7 such as a keyboard for inputting various commands for processing, and the above-mentioned members are mutually connected to exchange data. Composed of a bus are placed 8.

以上の構成において、画像入力装置1よりのイメージデ
ータはイメージメモリ4に格納され、入力装置7によっ
て与えられる処理内容指令に応じてCPU3は本発明に
係るイメージメモリ4をアクセスし、処理を実行する。
処理結果は逐次CRTディスプレイ6に表示されると共
に、必要に応じハードコピーされる。
In the above configuration, the image data from the image input device 1 is stored in the image memory 4, and the CPU 3 accesses the image memory 4 according to the present invention in accordance with the processing content command given by the input device 7 to execute the processing. .
The processing results are sequentially displayed on the CRT display 6 and hard-copied if necessary.

第1図は本発明の一実施例を示し、1次元モード及び2
次元モードに応じて複数のアクセス用メモリセレクタ13
-0〜13-3,14-0〜14-3の1つを選択するアドレスデコー
ダ11と、1×pモード(1次元モード)かpモー
ド(2次元モード)かをアドレスデコーダ11に指定す
るフリップフロップ12と、アドレスデコーダ11で選ばれ
た2p種類の組合せが1次元モードのp種類であるとき
にいずれか1つが選択されp個のメモリモジュール(16
-00〜16-33の内の複数)に対しチップセレクト信号を発
生する1次元アクセス用メモリセレクタ13-0〜13-3と、
アドレスデコーダ11で選ばれた2p種類の組合せが2次
元モードのp種類であるときにいずれか1つが選択され
てp個のメモリモジュールに対しチップセレクト信号を
発生する2次元アクセスメモリセレクタ14-0〜14-3と、
データバスよりのデータを第4図の如きのイメージ配列
に対応するメモリモジュールに入力できるようにC×p
ビット(但し、0≦C<P<−1)をシフトさせるp
ビットの循環シフト回路15と、各モジュールがpビット
×rsワードの構成を有し、これをp×p個備えたメモ
リモジュール16-00〜16-33と、シフトされてメモリモジ
ュール16-00〜16-33に記憶されているデータを入力時と
逆方向にシフトし元の状態に戻して出力するpビット
の循環シフト回路17と、該循環シフト回路17の出力デー
タを▲ ▼信号の入力時にデータ
バス8へ出力するバスドライバー18より構成される。
メモリモジュール16-00〜16-33は、pビット×rsワー
ド構成の素子を用いて構成することも、1ビット×rs
ワード構成の素子をp個並列にして構成するようにして
も良い。各素子には、スタティックRAM、ダイナミッ
クRAMのいずれも使用可能である。
FIG. 1 shows an embodiment of the present invention, which is a one-dimensional mode and a two-dimensional mode.
Multiple memory selectors for access 13 according to the dimension mode
The address decoder 11 for selecting one of -0 to 13 -3 and 14 -0 to 14 -3 and the 1 × p 2 mode (one-dimensional mode) or p 2 mode (two-dimensional mode) for the address decoder 11. When the combination of the designated flip-flop 12 and the 2p type selected by the address decoder 11 is the p type of the one-dimensional mode, one of them is selected and p memory modules (16
-00 to 16 -33 ), and one-dimensional access memory selectors 13 -0 to 13 -3 that generate chip select signals for
A two-dimensional access memory selector 14 -0 which, when the combination of 2p types selected by the address decoder 11 is the p type in the two-dimensional mode, selects one of them to generate a chip select signal for p memory modules. ~ 14 -3 ,
C × p so that data from the data bus can be input to the memory module corresponding to the image array as shown in FIG.
P 2 for shifting bits (where 0 ≦ C <P <−1)
Circular shift circuit 15 for bits, memory modules 16 -00 to 16 -33 each of which has a structure of p bits x rs words, and p x p of the same, and shifted memory modules 16 -00 to 16-33 cyclic shift circuit 17 of 2 bits which shifts the data stored in the reverse direction to the original state and outputs it, and the output data of the cyclic shift circuit 17 is inputted as a signal. It is composed of a bus driver 18 which sometimes outputs to the data bus 8.
Memory module 16 -00 to 16 -33 may also be configured using an element of p bits × rs word structure, 1-bit × rs
It is also possible to configure p word-wise elements in parallel. Either static RAM or dynamic RAM can be used for each element.

第3図は循環シフト回路15及び17の詳細を示し、CPU
3より与えられるアドレスAが“L”レベルのときに
ゲートを開くバッファゲート21と、アドレスA
“L”レベルのときにゲートを開くバッファゲート22
と、アドレスAの信号を反転出力するインバータ23
と、アドレスAの信号を反転出力するインバータ24
と、インバータ23よりゲート信号が与えられるときに入
力データを4ビットシフトさせて出力する4ビット循環
シフト回路25と、インバータ24よりゲート信号が与えら
れるときに入力データを8ビットシフトさせて出力する
8ビット循環シフト回路26より構成される。
FIG. 3 shows the details of the cyclic shift circuits 15 and 17, and the CPU
The buffer gate 21 that opens the gate when the address A 0 given by 3 is at the “L” level and the buffer gate 22 that opens the gate when the address A 1 is at the “L” level
And an inverter 23 that inverts and outputs the signal of address A 0
And an inverter 24 that inverts and outputs the signal of address A 1.
And a 4-bit cyclic shift circuit 25 that shifts and outputs input data by 4 bits when a gate signal is given from the inverter 23, and shifts and outputs input data by 8 bits when a gate signal is given from the inverter 24. It is composed of an 8-bit cyclic shift circuit 26.

第4図は本発明によるアクセス処理をP=4,r=4,
s=2の設計パラメータで行う例であり、図示Aの如く
1×p(図の例では1×16)の単位または図示Bの
如くp×p(図の例では4×4)の単位でアクセスする
ものである。第4図に示す如き2次元イメージ配列とメ
モリモジュール16-00〜16-33の位置対応を示したのが第
5図である。図中の00,01,02,03,10,11,12,13,20,21,2
2,23,30,31,32,33の各々はメモリモジュール番号であ
り、第1図の示すメモリモジュール16-00〜16-33の小文
字数字に対応している。図より明らかなように、各メモ
リモジュールには行方向の4ビット分が格納されると共
に、00〜33の1群(図中の枠組みの範囲)に対しては同
一のアドレスが供給される。(尚、一般にメモリモジュ
ール番号abは、0≦a<p,0≦b<pに設定され
る。) イメージメモリ4は、イメージ点I(i,j)(但し0
≦i<rp,及び0≦j<sp)からなるrp×sp
(第3図の例では、16×32)のイメージ配列を記憶す
ることができ、前述の1×pまたはp×pのいずれか
のp個のイメージ点が単一のメモリサイクルで読出し
又は書込みされるワード編成型ランダムアクセスメモリ
であり、これを構成するp個のメモリモジュール(16
-00〜16-33)は各々がprs個のイメージ点を異なった
記憶位置に記憶することができる。そして、一回のアク
セスによってp個の記憶モジュールのみがアクセス可能
であり、一個の記憶モジュールからpビットのリード・
ライトを行うことができる。一回にアクセスされるイメ
ージ点の構成が1×pの場合には、 〔I(k,lp2)I(k,lp2+1)……I(k,(l+1)p2-1)〕のp個の
単位でリード及びライトが可能であり、イメージ点の構
成がp×pの場合には、 のp個の単位で行うことができる。(但し、0≦k<
rp、0≦l<s、0≦m<r、0≦n<pである。)
いずれの場合も、各メモリモジュールに入力されるアド
レス値は総て同一値である。
FIG. 4 shows the access processing according to the present invention with P = 4, r = 4.
This is an example in which design parameters of s = 2 are used, and a unit of 1 × p 2 (1 × 16 in the example of the figure) as shown in the figure A or a unit of p × p (4 × 4 in the example of the figure) as shown in the figure B It is accessed by. FIG. 5 shows the positional correspondence between the two-dimensional image array as shown in FIG. 4 and the memory modules 16 -00 to 16 -33 . 00,01,02,03,10,11,12,13,20,21,2 in the figure
Each 2,23,30,31,32,33 is a memory module number corresponds to the lower case numbers of the memory module 16 -00 to 16 -33 indicated by Figure 1. As is apparent from the figure, each memory module stores 4 bits in the row direction, and the same address is supplied to one group of 00 to 33 (range of the frame in the figure). (In general, the memory module number ab is set to 0 ≦ a <p, 0 ≦ b <p.) The image memory 4 stores the image point I (i, j) (where 0
Rp × sp consisting of ≦ i <rp and 0 ≦ j <sp 2 ).
2 (16 × 32 in the example of FIG. 3) image array can be stored, and the above-mentioned p 2 image points of 1 × p 2 or p × p can be stored in a single memory cycle. It is a word organization type random access memory that is read or written, and comprises p 2 memory modules (16
-00 to 16 -33) are each can be stored in different storage positions prs number of image points. Then, only p storage modules can be accessed by one access, and p bits can be read from one storage module.
Can write. When the configuration of image points accessed at one time is 1 × p 2 , [I (k, lp 2 ) I (k, lp 2 +1) ... I (k, (l + 1) p 2 -1)] can be read and written in units of p 2 and the image point configuration is p × p, Can be performed in p 2 units. (However, 0 ≦ k <
rp, 0 ≦ l <s, 0 ≦ m <r, and 0 ≦ n <p. )
In either case, the address values input to each memory module are all the same value.

第1図の構成において、画像編集する画像の大きさをA
4サイズ(210mm×297mm)とし、画像の読取密度を16ド
ット/mmとすると、イメージ点数は約16×10
(正確には15,966,720個)となる。この場合、 r≧1188=2=7×16/P,S≧210=21
0×16/PP=4 〔または、r≧840=210×16/P,S≧279
=297×16/P〕であり、rs≧249,480とな
る。従ってメモリモジュールの容量としては、4×256
kwのものを使用すればよい(市販品では1×256kw
のダイナミックRAM(DRAM)を4個用いればよ
い)。
In the configuration of FIG. 1, the size of the image to be edited is A
If the size is 4 (210 mm × 297 mm) and the image reading density is 16 dots / mm, the number of image points is about 16 × 10 6 (accurately 15,966,720). In this case, r ≧ 1188 = 2 = 7 × 16 / P, S ≧ 210 = 21
0 × 16 / P 2 P = 4 [or r ≧ 840 = 210 × 16 / P, S ≧ 279
= 297 × 16 / P 2 ], and rs ≧ 249,480. Therefore, the capacity of the memory module is 4 × 256
You can use the one with kW (1 × 256kw for commercial products)
4 dynamic RAMs (DRAM) may be used.

原稿の読取り及びプリントアウトに際しては、ライン毎
に1次元的に走査する。つまり、イメージ点としては同
一行で列番号を1ずつ増加させたデータが必要である。
この時メモリとしては1次元モードにしておけば16ドッ
ト走査入力される毎に1ワードとしてメモリへ転送、あ
るいは16ドット走査出力される毎に1ワードをメモリか
ら転送すればよい。1次元モードで動作させるために
は、まず図示せぬ外部の回路によってフリップフロップ
12に▲ ▼信号を入力して出力を“L”
レベルにしておく。これでCPU3等からは通常の1×
のワード構成のメモリシステムと全く同様に見え
る。アドレスデコーダ11はアドレスの2ビットとモード
セット用のフリップフロップ12の出力によって出力Lφ
S〜L3Sのいずれかが有効になり一次元アクセス用メ
モリセレクタ13-0〜13-3のいずれかの端子が“L”レ
ベルになる。メモリセレクタ13-0〜13-3はスリーステー
トバッファで構成されているのでG端子が“L”レベル
になると、入力データが出力される。この場合は入力A
0〜A3が接地してあるので出力もLレベルになり、対応
するメモリモジュール(16-00〜16-33の内の複数)がア
クセスされる。1次元アクセス用メモリセレクタ13-0
13-3の出力は13-0がメモリモジュールマトリックスのφ
行に、13-1が1行に、13-2が2行に13-3が3行に対応し
ている。(尚、図ではリードライト信号やメモリモジュ
ール内の深さ方向を規定するアドレス信号については省
いてある。)循環シフト回路15及び17は二次元アクセス
モード時にデータが正しくデータバス8上に出力するこ
とができるように設けてある。このシフト回路15及び17
のシフトビット数も1のアドレスデコーダ回路11に入力
されているアドレス信号と同一の物が入力されている。
When reading a document and printing it out, one-dimensional scanning is performed line by line. That is, as image points, data in which the column number is increased by 1 in the same row is required.
At this time, if the memory is set to the one-dimensional mode, one word may be transferred to the memory every time 16-dot scanning is input, or one word may be transferred from the memory every 16-dot scanning output. In order to operate in the one-dimensional mode, first, a flip-flop is used by an external circuit (not shown).
Input signal to 12 and output “L”
Keep level. This is a normal 1x from CPU3 etc.
exactly it looks similar to the memory system of word structure of p 2. The address decoder 11 outputs Lφ in response to the 2 bits of the address and the output of the mode setting flip-flop 12.
Either S~L3S one of terminals of the one-dimensional access memory selector 13 -0 to 13 -3 enabled becomes "L" level. When the memory selector 13 -0 to 13 -3 which is configured by the three-state buffer G terminal becomes "L" level, the input data is output. In this case, input A
Since 0 to A 3 are grounded, the output also becomes L level and the corresponding memory modules (plurality of 16 -00 to 16 -33 ) are accessed. One-dimensional access memory selector 13 -0 ~
The output of 13 -3 is 13 -0 φ of the memory module matrix
Lines correspond to 13 -1 to 1 line, 13 -2 to 2 lines and 13 -3 to 3 lines. (Note that the read / write signal and the address signal defining the depth direction in the memory module are omitted in the figure.) The cyclic shift circuits 15 and 17 correctly output data on the data bus 8 in the two-dimensional access mode. It is provided so that it can be done. This shift circuit 15 and 17
The number of shift bits is 1 and the same address signal as that input to the address decoder circuit 11 is input.

循環シフト回路15及び17の構成は第2図に示した如くで
あるが、アドレスA=“H”レベル、A=“L”レ
ベルのときに4ビット循環シフト回路25とバッファゲー
ト22が有効になり、入力が4ビットシフトしてメモリモ
ジュール側へ出力される。以下同様にA=L、B=Hの
とき8ビットがシフトされ、A=H、B=Hとのきに12
ビットがシフトされる。入力シフト回路と出力シフト回
路はシフト方向を反対にしておけばよいが、実施例では
入力が右シフト、出力が左シフトするようになってい
る。
The configuration of the cyclic shift circuits 15 and 17 is as shown in FIG. 2, but when the address A 0 = “H” level and A 1 = “L” level, the 4-bit cyclic shift circuit 25 and the buffer gate 22 are It becomes valid and the input is shifted by 4 bits and output to the memory module side. Similarly, 8 bits are shifted when A = L and B = H, and when A = H and B = H.
Bits are shifted. The input shift circuit and the output shift circuit may have opposite shift directions, but in the embodiment, the input shifts right and the output shifts left.

したがって、A,B=Lの場合、書き込み時にはデータ
はシフトされず、16-00〜16-33よりなるメモリモジュー
ルマトリックスのφ行目に書き込まれる。また、読出し
時にはデータはやはりφ行目から読出されてシフトされ
ず、データバス8に出力される。
Therefore, when A and B = L, the data is not shifted at the time of writing and is written in the φ-th row of the memory module matrix consisting of 16 −00 to 16 −33 . Further, at the time of reading, data is also read from the φ-th row and is not shifted and is output to the data bus 8.

A=H,B=Lの場合、書き込み時ならデータは4ビッ
ト右シフトして1行目に書き込まれる。つまりデータの
0ビット〜3ビットがメモリモジュール16--11つまり、
1行1列目に書き込まれる。また、読出時は1行目のデ
ータが4ビット左シフトされ出力される。従って、イメ
ージメモリ4に入力したデータは本来のビット位置に戻
されて出力される。
When A = H and B = L, the data is right-shifted by 4 bits and written in the first row at the time of writing. That 0 bit to 3-bit data memory module 16 -11 words,
It is written in the 1st row and 1st column. Further, at the time of reading, the data in the first row is shifted left by 4 bits and output. Therefore, the data input to the image memory 4 is returned to the original bit position and output.

次に、画像編集処理時に2次元モードでアクセスする場
合について説明する。この場合は、まずモード設定用の
フリップフロップ12に▲▼信号を入力して、
出力を“H”レベルにする。これによってアドレスデコ
ーダ11はアドレスA,Aによって出力Sφs〜S
3sのいずれかが有効となり、2次元アクセス用メモリ
セレクタ14-0〜14-3のいずれかの端子が“L”レベル
になる。メモリセレクタ14-0〜14-3はスリーステートバ
ッファで構成され、選択されたセレクタの出力が“L”
レベルとなって、4個のメモリモジュールが同時にアク
セスされる。即ち、アドレスA,A共に“L”レベ
ルの場合にメモリモジュール16--00,16-11,16-22,16
-33がアクセスされ、Aが“L”レベルでA
“H”レベルであれば16--01,16-12,16-23,16-30
アクセスされ、Aが“H”レベルでAが“L”レベ
ルであれば16--02,16-13,16-20,16-31がアクセスさ
れ、A,Aともに“H”レベルの場合には、1
6-03,16-10,16-21,16-32がアクセスされる。循環シ
フト回路15及び17の動作は1次元モード時と同一である
ので説明は省略する。以上のように、一回で同時にアク
セスされる4個のメモリモジュールが同一列上に配置さ
れず、斜め方向にしてあるのは、同一列上のメモリモジ
ュールの各ビットを夫々同じデータラインで接続できる
ようにするためである。
Next, the case of accessing in the two-dimensional mode during the image editing process will be described. In this case, first input the ▲ ▼ signal to the flip-flop 12 for mode setting,
Set the output to "H" level. As a result, the address decoder 11 outputs the outputs Sφs to S according to the addresses A 0 and A 1 .
Either 3s is valid, one of terminals of the two-dimensional access memory selector 14 -0 to 14 -3 becomes "L" level. The memory selectors 14 -0 to 14 -3 are composed of three-state buffers, and the output of the selected selector is "L".
A level is reached, and four memory modules are simultaneously accessed. That is, when the addresses A 0 and A 1 are both at the “L” level, the memory modules 16- -00 , 16 -11 , 16 -22 , 16
If -33 is accessed, A 0 is "L" level and A 1 is "H" level, 16--01 , 16 -12 , 16 -23 , 16 -30 are accessed and A 0 is "H". If A 1 is “L” level, 16--02 , 16 -13 , 16 -20 , 16 -31 is accessed, and if both A 0 and A 1 are “H” level, 1
6 -03, 16 -10, 16 -21, 16 -32 is accessed. Since the operations of the cyclic shift circuits 15 and 17 are the same as those in the one-dimensional mode, description thereof will be omitted. As described above, the four memory modules that are simultaneously accessed at one time are not arranged on the same column but are arranged diagonally because each bit of the memory modules on the same column is connected by the same data line. This is so that it can be done.

2次元モードにおける書込み及び読出しは次の如くであ
る。
Writing and reading in the two-dimensional mode are as follows.

アドレスA=A=“L”レベルの場合、書込みであ
ればデータはシフトされることなくメモリモジュール16
-00に循環シフト回路15より出力されるDI0-3が書込ま
れ、同様に16-11にDI4-7,16-22にDI8-11,16-33
DI12-15が各々書込まれる。読出しに際しても同様の
ビット順で出力される。次に、A=“H”レベル、A
=“L”レベル、で書込むときには4ビット右側へシ
フトされ、16-01へDI0-3,16-12へDI4-7,16-23
DI8-11,及び16-30へDI12-15が各々書込まれる。一
方、読出し時には、同じメモリモジュールから読み出さ
れたデータが左側へ4ビットシフトされて出力される。
この出力データは本来のビット位置へ来る。
When the address A 0 = A 1 = “L” level, the data is not shifted and the data is not shifted in the memory module 16 when writing.
-00 DI 0-3 output from the cyclic shift circuit 15 is written to, likewise 16 -11 DI 4-7, 16 -22 to DI 8-11, each DI 12-15 16 -33 Written. When reading, the same bit order is output. Next, A 0 = “H” level, A
When writing with 1 = "L" level, it is shifted to the right by 4 bits and goes to 16 -01 to DI 0-3 , 16 -12 to DI 4-7 , 16 -23 to DI 8-11 , and 16 -30 . DI 12-15 are written respectively. On the other hand, at the time of reading, the data read from the same memory module is shifted to the left by 4 bits and output.
This output data comes to the original bit position.

次に、1次元モードで書込まれたデータを2次元モード
で読み出し、或いは、逆に2次元モードで書込まれたデ
ータを1次元モードで読み出す場合について説明する。
Next, a case will be described where the data written in the one-dimensional mode is read in the two-dimensional mode, or conversely, the data written in the two-dimensional mode is read in the one-dimensional mode.

各メモリモジュールに供給する内部アドレスは、イメー
ジメモリ4に入力されるアドレスのうち、アドレスデコ
ーダ11に入力されている以外のメモリモジュールに入力
されているアドレスである。このアドレスが各メモリモ
ジュールに対し同一の場合、各メモリモジュールとイメ
ージ点は第6図のように対応している。枠内の2桁の数
字がメモリモジュールの番号を表わしている。まず、1
次元モードで4ワードを書込んだのち、2次元モードで
4ワードを読み出す場合には第1表のように書込まれ
る。
The internal address supplied to each memory module is the address input to the memory modules other than the address decoder 11 among the addresses input to the image memory 4. When this address is the same for each memory module, each memory module corresponds to an image point as shown in FIG. The two-digit number in the frame represents the memory module number. First, 1
When four words are read in the two-dimensional mode after writing four words in the two-dimensional mode, the data is written as shown in Table 1.

一方、読み出しに際しては第2表の如くに各メモリモジ
ュールから読み出される。第1表及び第2表から明らか
なように、前述の各動作モードのメモリモジュール構成
およびビット順に一致するものである。
On the other hand, upon reading, the data is read from each memory module as shown in Table 2. As is clear from Tables 1 and 2, the memory module configurations and bit order of the above-mentioned operation modes are the same.

2次元で書込んで1次元で読み出す場合は、第2表の如
くに書込んで第1表の如くに読み出すものとすればよ
い。
When writing in two dimensions and reading in one dimension, it is sufficient to write as shown in Table 2 and read as shown in Table 1.

ここで、イメージ点とメモリモジュールとの対応を式で
示せば以下の如くとなる。メモリモジュールをM(a,
b)(但し、0≦a,b<p)で表すものとすると、 a=i//p b=(i//p+[(j//p)/p])//p [ ]:ガウス記号 [ ]内の数字を越えない最大の整数とする。
Here, if the correspondence between the image points and the memory module is shown by a formula, it is as follows. Replace the memory module with M (a,
b) (provided that 0 ≦ a, b <p), a = i // p b = (i // p + [(j // p 2 ) / p]) // p []: Gauss symbol It is the largest integer that does not exceed the number in [].

(但し、i//pは、iをpで割った余りである。)とな
る。
(However, i // p is the remainder obtained by dividing i by p.).

以上の説明では、メモリアクセスを1×pまたはp×
pの単位で行うものとしたが、各メモリモジュールの構
成をp(ビット)×rs(ワード)ではなく、1(ビッ
ト)×rs(ワード)とすることにより、メモリアクセ
ス単位を1×pあるいはp×1で行うことができる。こ
れにより並列アクセスメモリを構成することが可能とな
る。
In the above description, the memory access is 1 × p 2 or p ×
Although the unit of p is used, the memory access unit is set to 1 × p or 1 × p or rs (word) instead of p (bit) × rs (word). It can be done with p × 1. This makes it possible to configure a parallel access memory.

また、1×pでアクセスする場合、従来、行方向は1
ビット毎に指定可能であったが列方向はpビット単位
でしかアクセス指定できなかった。つまり画像の切り出
し等を行う時、p毎にしか切り出しの起点を指定する
ことができなかった。しかし、本発明のようにアクセス
単位をp×pとすると行方向、列方向ともpビット単位
でアクセス指定可能となり、従来の1/pで切り出し等
の指定が可能になり、編集の精度を高くすることができ
る。
Also, when accessing with 1 × p 2 , conventionally, the row direction is 1
It was possible to specify for each bit, but in the column direction, access could be specified only in units of p 2 bits. In other words, when clipping an image, the starting point of clipping can be specified only for each p 2 . However, if the access unit is p × p as in the present invention, access can be specified in p-bit units in both the row direction and the column direction, and cutouts and the like can be specified with 1 / p of the conventional method, which improves editing accuracy. can do.

また、記憶、編集する画像がディザ法等により擬似中
間調となっている物の場合、ディザ法の一画素単位に編
集処理しないと画質が劣化してしまう。しかし、本発明
のp×pのアクセスモードを用いることによって、ディ
ザの画素がp×pであれば一度に一画素ずつ処理可能と
なり編集が非常に容易となる。
Further, in the case where the image to be stored and edited is a pseudo halftone image by the dither method or the like, the image quality is deteriorated unless the image is edited for each pixel of the dither method. However, by using the p × p access mode of the present invention, if the pixels of the dither are p × p, it is possible to process one pixel at a time, which makes editing very easy.

また、二値画像、ディザ画像にかかわらず、画像の90゜
回転はアクセス単位がp×pなので容易にできる。つま
り、イメージメモリ4から読み出したデータをデータバ
ス8に出力するとき、90回転した場合に出力されるべき
ビット位置となるように、データバスバッファの結線を
変えるのみで実現できる。
Further, regardless of whether the image is a binary image or a dither image, the image can be rotated by 90 ° easily because the access unit is p × p. That is, when the data read from the image memory 4 is output to the data bus 8, it can be realized only by changing the wiring of the data bus buffer so that the bit position should be output when 90 rotations are made.

〔発明の効果〕〔The invention's effect〕

以上説明した通り本発明の画素編集用イメージメモリに
よれば、1×pあるいはp×pの副配列のpビット
を一回でアクセスすると共に、各メモリモジュールに対
するアドレスを同一としたため、簡単なハードウェアに
よって、1×pあるいはp×p単位のアクセスを高速
に行うことができる。
As described above, according to the pixel editing image memory of the present invention, the p 2 bit of the 1 × p 2 or p × p sub-array is accessed at one time, and the address for each memory module is the same. Such hardware enables high-speed access in 1 × p 2 or p × p units.

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

第1図は本発明の一実施例を示す回路図、第2図は本発
明に係るイメージメモリを用いた画像編集装置のブロッ
ク図、第3図は本発明に係る循環シフト回路の詳細を示
すブロック図、第4図は本発明の対象とするアクセス単
位の説明図、第5図は本発明におけるイメージ配列とメ
モリモジュールの対応を示す説明図、第6図は同一内部
アドレスで指定されるイメージ点とメモリモジュールの
対応を示す説明図。 符号の説明 1……画像入力装置 3……CPU 4……イメージメモリ 5……画像出力装置 11……アドレスデコーダ 12……フリップフロップ 13-0〜13-3,14-0〜14-3……アクセスメモリセレクタ 15,17……循環シフト回路 16-00〜16-33……メモリモジュール 18……バスドライバー 21,22……バッファゲート 23,24……インバータ 25……4ビット循環シフト回路 26……8ビット循環シフト回路
FIG. 1 is a circuit diagram showing an embodiment of the present invention, FIG. 2 is a block diagram of an image editing apparatus using an image memory according to the present invention, and FIG. 3 shows details of a cyclic shift circuit according to the present invention. FIG. 4 is a block diagram, FIG. 4 is an explanatory view of an access unit targeted by the present invention, FIG. 5 is an explanatory view showing correspondence between an image array and a memory module in the present invention, and FIG. 6 is an image designated by the same internal address. Explanatory drawing which shows the correspondence of a point and a memory module. Explanation of symbols 1 ... Image input device 3 ... CPU 4 ... Image memory 5 ... Image output device 11 ... Address decoder 12 ... Flip-flop 13 -0 to 13 -3 , 14 -0 to 14 -3 ... Access memory selector 15, 17 Circular shift circuit 16 -00 to 16 -33 Memory module 18 Bus driver 21, 22 Buffer gate 23, 24 Inverter 25 4 bit circular shift circuit 26 ... 8-bit circular shift circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】p、rおよびsを設計パラメータとしてブ
ール値を有するイメージ点I(i,j)(但し、0≦i<r
p,及び0≦j<sp)から成るrp×spイメー
ジ配列を記憶することができると共に、前記イメージ配
列の1×pまたはp×pの副配列におけるp個のイ
メージ点が単一のメモリサイクルで読出しまたは書込み
され得るワード編成型ランダム・アクセス・メモリシス
テムにおいて、 各々がprs個のイメージ点を各々異なった記憶位置へ
記憶可能で、各々がpビットの書込み及び読出しを可能
とするp個の記憶モジュールで構成され、且つp個の
記憶モジュールがアクセスされ得る記憶手段と、 前記1×p配列にあっては、 〔I(k,lp2)I(k,lp2+1)…I(k,(l+1)p2-1)〕 により、また前記p×p配列にあっては、 (但し、0≦k<rp,0≦l<s,0≦m<r,0≦n<
pである。)で示されるp2個のイメージ点の構成を、前
記各記憶モジュールに同一のアドレス値を与えてアクセ
スするアクセス手段を設けたことを特徴とする画像編集
用イメージメモリ。
1. An image point I (i, j) having a Boolean value with p, r and s as design parameters (where 0 ≦ i <r
p, and an rp × sp 2 image array consisting of 0 ≦ j <sp 2 ) can be stored, and p 2 image points in a 1 × p 2 or p × p sub-array of said image array are single. In a word organized random access memory system that can be read or written in one memory cycle, each can store prs image points in different storage locations, each capable of writing and reading p bits. In the 1 × p 2 array, the storage means is composed of p 2 storage modules, and the p storage modules can be accessed. [I (k, lp 2 ) I (k, lp 2 +1) ... I (k, (l + 1) p 2 -1)], and in the case of the p × p array, (However, 0 ≦ k <rp, 0 ≦ l <s, 0 ≦ m <r, 0 ≦ n <
p. The image memory for image editing is provided with an access means for accessing the configuration of the p 2 image points indicated by) by giving the same address value to each of the storage modules.
JP60042238A 1985-03-04 1985-03-04 Image memory for image editing Expired - Lifetime JPH061449B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60042238A JPH061449B2 (en) 1985-03-04 1985-03-04 Image memory for image editing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60042238A JPH061449B2 (en) 1985-03-04 1985-03-04 Image memory for image editing

Publications (2)

Publication Number Publication Date
JPS61201350A JPS61201350A (en) 1986-09-06
JPH061449B2 true JPH061449B2 (en) 1994-01-05

Family

ID=12630445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60042238A Expired - Lifetime JPH061449B2 (en) 1985-03-04 1985-03-04 Image memory for image editing

Country Status (1)

Country Link
JP (1) JPH061449B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4903217A (en) * 1987-02-12 1990-02-20 International Business Machines Corp. Frame buffer architecture capable of accessing a pixel aligned M by N array of pixels on the screen of an attached monitor
JPH07104924B2 (en) * 1987-09-30 1995-11-13 株式会社東芝 Frame memory access method
JPH09212412A (en) * 1996-02-06 1997-08-15 Sony Computer Entertainment:Kk Memory access method and data processor

Also Published As

Publication number Publication date
JPS61201350A (en) 1986-09-06

Similar Documents

Publication Publication Date Title
US3996559A (en) Method and apparatus for accessing horizontal sequences, vertical sequences and regularly spaced rectangular subarrays from an array stored in a modified word organized random access memory system
US5606650A (en) Method and apparatus for storage and retrieval of a texture map in a graphics display system
US3995253A (en) Method and apparatus for accessing horizontal sequences, vertical sequences, and rectangular subarrays from an array stored in a modified word organized random access memory system
US3938102A (en) Method and apparatus for accessing horizontal sequences and rectangular sub-arrays from an array stored in a modified word organized random access memory system
US5111192A (en) Method to rotate a bitmap image 90 degrees
US4090174A (en) Method and apparatus for accessing horizontal sequences, vertical sequences and rectangular subarrays from an array stored in a modified word organized random access memory system
US4561072A (en) Memory system handling a plurality of bits as a unit to be processed
JPH01134495A (en) Image rotator
JP3203124B2 (en) Image data value storage method
US5095422A (en) Information transferring method and apparatus for transferring information from one memory area to another memory area
JPH05282437A (en) Picture rotating circuit
JPH061449B2 (en) Image memory for image editing
JP3151788B2 (en) How to rotate the original rectangle image
EP0549309B1 (en) Address reduction scheme implementing rotation algorithm
JPS6037930B2 (en) information storage device
US4799269A (en) Table lookup addressing by dichotomy window generation
JPH028335B2 (en)
JP2548286B2 (en) Image data processor
JPS59178669A (en) Storage device provided with three-dimensional memory module
JPH0234396B2 (en)
JPH0863595A (en) Method and device for rotation processing of image
JPH04318891A (en) Graphic controller
JPH07210666A (en) Image forming device
JPH05108467A (en) Semiconductor storage device
JPH0731727B2 (en) Image 90 degree rotation method