JPH04213776A - Method and device for processing image - Google Patents

Method and device for processing image

Info

Publication number
JPH04213776A
JPH04213776A JP2401275A JP40127590A JPH04213776A JP H04213776 A JPH04213776 A JP H04213776A JP 2401275 A JP2401275 A JP 2401275A JP 40127590 A JP40127590 A JP 40127590A JP H04213776 A JPH04213776 A JP H04213776A
Authority
JP
Japan
Prior art keywords
image
data
image data
memory
buffer
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
JP2401275A
Other languages
Japanese (ja)
Other versions
JP2838443B2 (en
Inventor
Atsushi Nakamura
中 村  温
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 JP2401275A priority Critical patent/JP2838443B2/en
Publication of JPH04213776A publication Critical patent/JPH04213776A/en
Application granted granted Critical
Publication of JP2838443B2 publication Critical patent/JP2838443B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)

Abstract

PURPOSE:To constitute the device so that image data rotated by 90 degrees can be sent to a printer almost simultaneously with reading out the image data from an image memory by using a comparatively small memory area. CONSTITUTION:The device is provided with an image memory 1, a means for executing read-out to this image memory 1 by a direct access, a line buffer 5 for storing image data which is read out, a printer 6, and a control part 7 for controlling a transfer operation of the image data from the image memory 1 to the printer 6, and the control part 7 writes the data by a word unit in the line buffer 5 at the time of data transfer, and on the other hand, reads it out by a bib unit from the line buffer 5, and executes a rotational processing to the image data.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、画像処理方法、特に画
像の回転処理を簡単に行なってプリンタ等に出力するこ
との可能な画像処理方法及び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method, and more particularly to an image processing method and apparatus that can easily rotate an image and output it to a printer or the like.

【0002】0002

【従来の技術】従来、メモリ上の画像データを90度回
転させてプリンタ等に出力させるに  は、画像処理用
のLSIを使用することにより行なっていた。
2. Description of the Related Art Conventionally, image data on a memory has been rotated by 90 degrees and output to a printer or the like by using an LSI for image processing.

【0003】0003

【発明が解決しようとする課題】しかしながら、このよ
うな従来の画像処理方法にあっては、90度回転させた
画像データを再度画像処理用のメモリに転送しこのメモ
リ上に展開しなければならないため、処理される画像デ
ータによっては非常に大きなワークエリアが必要である
とともに、プリンタの速度に合わせてデータを送らなけ
ればならないためにメモリ上に回転させた画像データが
完成するまでプリンタに出力ができないという不具合が
あった。
[Problem to be Solved by the Invention] However, in such a conventional image processing method, it is necessary to transfer the image data rotated by 90 degrees to the memory for image processing again and develop it on this memory. Therefore, depending on the image data to be processed, a very large work area is required, and the data must be sent at the speed of the printer, so the printer cannot output the image data rotated in memory until it is completed. There was a problem that I couldn't do it.

【0004】本発明は前記問題点に鑑みてなされたもの
で、その目的は、大きなワークエリアをとる必要がなく
、メモリから画像データを読み出すとほぼ同時に90度
回転させた画像データをプリンタに送ることができる画
像処理方法及び装置を提供することである。
The present invention has been made in view of the above problems, and its purpose is to send image data rotated by 90 degrees to a printer almost at the same time as reading the image data from the memory, without requiring a large work area. An object of the present invention is to provide an image processing method and an apparatus that can perform image processing.

【0005】[0005]

【課題を解決するための手段】本発明は、前記目的を達
成するために、画像処理装置に一つまたは複数のバッフ
ァを設け、このバッファにワード単位でデータを書き込
み、ビット単位で読み出すことにより画像データを90
度回転するようにしたことを要旨とする。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides an image processing device with one or more buffers, writes data into the buffer in units of words, and reads data in units of bits. 90 image data
The gist is that it rotates by a degree.

【0006】[0006]

【作用】前記構成により、メモリからはダイレクトアク
セス動作により画像データが  ワード単位で読み出さ
れ、そのワード毎に回転した後のアドレスが与えられ、
  バッファに転送される。画像データは、バッファに
書き込まれた後ビット単位で読み出され、プリンタ等の
出力部へ送られる。これにより、出力部からは90度回
転された画像が出力される。
[Operation] With the above configuration, image data is read out from the memory in word units by direct access operation, and an address after rotation is given for each word.
transferred to the buffer. After the image data is written into a buffer, it is read bit by bit and sent to an output unit such as a printer. As a result, an image rotated by 90 degrees is output from the output unit.

【0007】[0007]

【実施例】図1は本発明の方法を実現するための画像処
理装置の一実施例を示すブロック図である。この図にお
いて、符号1は回転処理等を受ける画像データが格納展
開される画像メモリ、2は画像メモリ1へ書き込み、読
み出しされる画像データの送給路となるイメージバス、
3は画像メモリへの画像データの書き込み、読み出しを
ダイレクトアクセス動作で行なうダイレクト・メモリア
クセス・コントローラ(DMAC)、4は画像メモリ1
から読み出された画像データに対してアドレスを付与す
るアドレス発生部、5は画像メモリ1から読み出された
データを一時格納するバッファ手段としてのラインバッ
ファ、6はラインバッファ5から転送されたデータに基
づいて印字動作をするプリンタ、7はCPUから成り画
像処理のために各機能部の動作をコントロールする制御
部、8は前記各機能部と制御部7との間の信号の送給路
となるローカルバスである。この実施例においては、ラ
インバッファ5は1つ設けられているが、複数個設けら
れていてもよい。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing an embodiment of an image processing apparatus for implementing the method of the present invention. In this figure, reference numeral 1 denotes an image memory in which image data subjected to rotation processing etc. is stored and expanded; 2 an image bus serving as a transmission path for image data written to and read from the image memory 1;
3 is a direct memory access controller (DMAC) that writes and reads image data to and from the image memory using direct access operations; 4 is an image memory 1;
5 is a line buffer serving as a buffer means for temporarily storing data read from the image memory 1; 6 is data transferred from the line buffer 5; 7 is a control unit that is composed of a CPU and controls the operation of each functional unit for image processing; 8 is a signal feeding path between each of the functional units and the control unit 7; This is a local bus. In this embodiment, one line buffer 5 is provided, but a plurality of line buffers may be provided.

【0008】図2は、画像メモリ1上における画像デー
タの格納状態を説明するための模式図である。この実施
例では、画像メモリ1には90度回転される前の(n×
m)ワードの画像データが格納されている。図3は、図
2の1−1のワード部分を拡大して示し、このワード部
分9は(L+1)ビットの長さを持つ。図4は、ライン
バッファ5の内容の一例を拡大して示す図である。この
ラインバッファ5は第1バッファ5aと第2バッファ5
bとから構成されている。第1バッファ5a、第2バッ
ファ5bのそれぞれには画像データをnワード分格納す
ることができる(即ち、長さn)バッファブロックが(
L+1)個設けられており、画像メモリ1内のデータの
1つの列方向のグループが格納されるようになっている
FIG. 2 is a schematic diagram for explaining the storage state of image data on the image memory 1. As shown in FIG. In this embodiment, the image memory 1 stores (n×
m) Word image data is stored. FIG. 3 shows an enlarged view of the word portion 1-1 in FIG. 2, and this word portion 9 has a length of (L+1) bits. FIG. 4 is an enlarged diagram showing an example of the contents of the line buffer 5. As shown in FIG. This line buffer 5 includes a first buffer 5a and a second buffer 5.
It is composed of b. Each of the first buffer 5a and the second buffer 5b has a buffer block that can store n words of image data (i.e., length n).
L+1) are provided, and one group of data in the image memory 1 in the column direction is stored.

【0009】図5はアドレス発生部4におけるアドレス
の発生のしかたを説明する図であ  る。アドレスはス
タート値から開始し、(n−1)回正オフセット値(例
えば  1)を加算しつつアドレスを発生し、加算した
ら次に負オフセットを減算し(つまり、例えば−1する
)アドレスを発生させる。これらの操作をくり返すこと
により全体のアドレスを発生させる。
FIG. 5 is a diagram illustrating how address generation section 4 generates addresses. The address starts from the start value, generates the address by adding a positive offset value (for example, 1) (n-1) times, and then subtracts the negative offset (i.e., -1) after the addition to generate the address. let By repeating these operations, the entire address is generated.

【0010】かかる構成を有する制御装置について、以
下動作を説明する。この実施例の画像処理装置において
、画像の回転処理(例えば90度回転処理)を行なうに
は、制御部7はDMAC3に対して画像メモリ1へのア
クセス指令を発するととも  に、アドレス発生部4に
対して画像回転用のアドレス発生指令を発する。これに
より、アドレス発生部4は基の画像データに対して90
度回転を与えるアドレスを発生し、DMAC3は画像メ
モリ1から画像データをワード単位で読み出し、このデ
ータを、アドレス発生部4によって指定されるアドレス
にしたがってイ  メージバス2からローカルバス8を
介してラインバッファ5に送る。
The operation of the control device having such a configuration will be explained below. In the image processing apparatus of this embodiment, in order to perform image rotation processing (for example, 90 degree rotation processing), the control section 7 issues an access command to the image memory 1 to the DMAC 3, and also issues an instruction to the address generation section 4 to access the image memory 1. An address generation command for image rotation is issued to the image rotation address. As a result, the address generation unit 4 generates a 90% response to the original image data.
The DMAC 3 reads the image data in word units from the image memory 1 and transfers this data from the image bus 2 to the line buffer via the local bus 8 according to the address specified by the address generator 4. Send to 5.

【0011】画像メモリ1の読み出しは、図5に示すよ
うに、アドレス発生部4からのアドレスにより(1−1
)  →  (1−2)  →  (1−3),  →
……→  (1−n),  →……  →  (2−n
),  →……  →  (m−1)  →  (m−
2)→  (m−3),  →……  →  (m−n
)の順にワード単位で読み出し実行され、ビット単位で
ラインバッファ5へ書き込む。図4は、1−1ワードか
ら1−nワードまでワード単位で画像メモリ1から読み
出し、ビット単位で第1バッファ5aに書き込んだ状況
を示す。この第1バッファ5aより、ビット0から  
ビットLまでプリンタ6にデータが順次出力される。こ
のことにより、(L+  1)×nビット分90度回転
したことになる。このように、第1バッファ5aから、
プリンタ6へデータを出力している間に、2−1ワード
から2−nワードまで画像データがワード単位で画像メ
モリ1から読み出され、ビット単位で第2  バッファ
5bに書き込まれると共に、次のプリンタ出力データと
される。これらの操作を繰り返し行なうことにより、(
n×m)ワードのデータを(m×n)  ワードのデー
タとしてプリンタ6に送る。ラインバッファ5を2つの
バッファ5a,5bによる分割構造にしたのは、これら
の第1および第2バッファ5a,5b間のトグル動作に
よって、より一層高速にプリントされるデータをプリン
タ6に送るためであるが、画像メモリ1からラインバッ
ファ5に転送、書き込みする速度、プリントする画像デ
ータを送る速度等により、このバッファの数は変化させ
ることができる。
As shown in FIG. 5, the image memory 1 is read out according to the address (1-1) from the address generator 4.
) → (1-2) → (1-3), →
...→ (1-n), →... → (2-n
), →…… → (m-1) → (m-
2) → (m-3), →…… → (m-n
) is read out word by word in order, and written to the line buffer 5 bit by bit. FIG. 4 shows a situation in which words 1-1 to 1-n are read out from the image memory 1 in word units and written into the first buffer 5a in bit units. From this first buffer 5a, from bit 0
Data is sequentially output to the printer 6 up to bit L. This results in a rotation of 90 degrees by (L+1)×n bits. In this way, from the first buffer 5a,
While outputting data to the printer 6, image data from word 2-1 to word 2-n is read out from the image memory 1 in word units, written to the second buffer 5b in bit units, and the next It is treated as printer output data. By repeating these operations, (
The (n×m) word data is sent to the printer 6 as (m×n) word data. The reason why the line buffer 5 is divided into two buffers 5a and 5b is to send data to be printed even faster to the printer 6 by toggling between the first and second buffers 5a and 5b. However, the number of buffers can be changed depending on the speed of transferring and writing from the image memory 1 to the line buffer 5, the speed of sending image data to be printed, etc.

【0012】0012

【発明の効果】以上説明したように、本発明によれば、
画像処理装置にバッファを設け、このバッファにワード
単位でデータを書き込み、ビット単位で読み出すことに
より画像データを90度回転するようにしたため、メモ
リ上に余分なワークエリアを使用することなく、高速で
画像の90度回転をさせることができる。
[Effects of the Invention] As explained above, according to the present invention,
A buffer is provided in the image processing device, and the image data is rotated 90 degrees by writing data into the buffer in word units and reading it out in bit units. This enables high-speed processing without using extra work area in memory. Images can be rotated 90 degrees.

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

【図1】本発明を実現するための画像処理装置の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of an image processing device for implementing the present invention.

【図2】前記実施例において画像メモリ上のメモリアク
セスの順序を説明するための概略図である。
FIG. 2 is a schematic diagram for explaining the order of memory access on the image memory in the embodiment.

【図3】前記実施例において、画像メモリからの読み出
しにおける最小単位のデータを示す概略図である。
FIG. 3 is a schematic diagram showing the minimum unit of data read from the image memory in the embodiment.

【図4】前記実施例において、バッファに対するデータ
書き込みを説明するための概略図である。
FIG. 4 is a schematic diagram for explaining data writing to a buffer in the embodiment.

【図5】前記実施例におけるアドレス発生機構の概略図
である。
FIG. 5 is a schematic diagram of an address generation mechanism in the embodiment.

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

1  画像メモリ 2  イメージバス 3  DMAC 4  アドレス発生部 5  ラインバッファ 6  プリンタ 7:制御部 8:ローカルバス 1 Image memory 2 Image bus 3 DMAC 4 Address generation section 5 Line buffer 6 Printer 7: Control section 8: Local bus

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  データ処理される画像データが格納さ
れる画像メモリと画像出力手段との間に一つもしくは複
数のバッファ手段を設け、このバッファ手段にワード単
位でデータを書き込む一方、バッファ手段からは、ビッ
ト単位で読み出すことにより画像データを回転処理する
ようにしたことを特徴とする画像処理方法。
Claim 1: One or more buffer means are provided between an image memory in which image data to be processed is stored and an image output means, and data is written to the buffer means in word units, while data is written from the buffer means to the image output means. An image processing method characterized in that image data is rotated by reading it bit by bit.
【請求項2】  画像データが格納される画像メモリと
、この画像メモリに対してダイレクトメモリアクセスに
よる読み出し動作をする手段と、画像メモリのアドレス
情報を発生する手段と、画像メモリから読み出された画
像データを一時的に格納するラインバッファと、ライン
バッファからの画像データの転送によって印字作動する
プリンタと、画像メモリからプリンタへの画像データの
転送動作において、ラインバッファにワード単位でデー
タを書き込む一方、ライン  バッファからは、ビット
単位で読み出すことにより画像データを回転処理する制
御手段と、から成る画像処理装置。
2. An image memory in which image data is stored, means for performing a read operation on the image memory by direct memory access, means for generating address information of the image memory, and an image memory for reading out image data from the image memory. A line buffer that temporarily stores image data, a printer that performs printing by transferring image data from the line buffer, and a line buffer that writes data in word units to the line buffer in the operation of transferring image data from the image memory to the printer. , a control means for rotating image data by reading it bit by bit from the line buffer.
【請求項3】  ラインバッファは複数のバッファ手段
から構成されていることを特徴とする請求項2記載の画
像処理装置。
3. The image processing apparatus according to claim 2, wherein the line buffer is composed of a plurality of buffer means.
JP2401275A 1990-12-11 1990-12-11 Image processing method and apparatus Expired - Fee Related JP2838443B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2401275A JP2838443B2 (en) 1990-12-11 1990-12-11 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2401275A JP2838443B2 (en) 1990-12-11 1990-12-11 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH04213776A true JPH04213776A (en) 1992-08-04
JP2838443B2 JP2838443B2 (en) 1998-12-16

Family

ID=18511116

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2401275A Expired - Fee Related JP2838443B2 (en) 1990-12-11 1990-12-11 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP2838443B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7262877B2 (en) * 1997-10-28 2007-08-28 Canon Kabushiki Kaisha Image input-output apparatus and method therefor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4810040U (en) * 1971-06-15 1973-02-03
JPS61213553A (en) * 1985-03-20 1986-09-22 富士電機株式会社 Refrigerant circuit for refrigerator
JPS6433471A (en) * 1987-07-27 1989-02-03 Sanyo Electric Co Cooling device for compressor
JPH0188352U (en) * 1987-12-03 1989-06-12
JPH01263461A (en) * 1988-04-12 1989-10-19 Mitsubishi Electric Corp Heat pump device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4810040U (en) * 1971-06-15 1973-02-03
JPS61213553A (en) * 1985-03-20 1986-09-22 富士電機株式会社 Refrigerant circuit for refrigerator
JPS6433471A (en) * 1987-07-27 1989-02-03 Sanyo Electric Co Cooling device for compressor
JPH0188352U (en) * 1987-12-03 1989-06-12
JPH01263461A (en) * 1988-04-12 1989-10-19 Mitsubishi Electric Corp Heat pump device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7262877B2 (en) * 1997-10-28 2007-08-28 Canon Kabushiki Kaisha Image input-output apparatus and method therefor

Also Published As

Publication number Publication date
JP2838443B2 (en) 1998-12-16

Similar Documents

Publication Publication Date Title
JPH077260B2 (en) Image data rotation processing apparatus and method thereof
KR950015138A (en) Rotation register for data orthogonal transformation
JPH0378651B2 (en)
JPH04213776A (en) Method and device for processing image
US20020018238A1 (en) Printer, print control apparatus and method
JPH0478948A (en) Dma controller
JP2502530B2 (en) Printer
JP2617252B2 (en) Printer
JPS62299892A (en) Access system for character generator memory
JPH05212915A (en) Controller for page printer
JP2002036631A (en) Image-forming apparatus
JP2711673B2 (en) Image data transfer control method and device
JP2001093800A (en) Electron beam lithography equipment
JPH0754544B2 (en) Image memory access circuit
JPH01307877A (en) Picture data processing system
JPH06176141A (en) Data output device and data rotation method of data output device
JPH03114850A (en) Printer control apparatus
JPH0239383A (en) Image processor
JPS6354253A (en) Printer
JPH0195063A (en) Output data rotating method
JPS6354254A (en) Printer
JP2001036730A (en) Image processor
JPH02106363A (en) Graphic information rotating circuit of printer
JPH05238065A (en) Printer device
JPH0588663A (en) Image signal input/output device

Legal Events

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