JPH05314247A - Image data processor - Google Patents

Image data processor

Info

Publication number
JPH05314247A
JPH05314247A JP11930492A JP11930492A JPH05314247A JP H05314247 A JPH05314247 A JP H05314247A JP 11930492 A JP11930492 A JP 11930492A JP 11930492 A JP11930492 A JP 11930492A JP H05314247 A JPH05314247 A JP H05314247A
Authority
JP
Japan
Prior art keywords
address
image
section
axis
data
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.)
Withdrawn
Application number
JP11930492A
Other languages
Japanese (ja)
Inventor
Kuninosuke Ihira
國之輔 伊平
Makoto Iketani
誠 池谷
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP11930492A priority Critical patent/JPH05314247A/en
Publication of JPH05314247A publication Critical patent/JPH05314247A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To provide a device for effectively performing these multiple processings concerning the image processor to perform communication processing or the like parallelly to image processing for reading image information from a check or the like and displaying or printing this information. CONSTITUTION:This image data processor provided with an image read part 1 to scan a source image, to read the image for the unit of one picture element and to prepare image data, CPU part 3 to perform processing such as the storage of image data read by the image read part 1 parallelly to the processing of communication control with a host computer, and bus 5 to transfer data between these CPU part 3 and memory part 2, is equipped with an image memory part 6 connected to the bus independently of the memory part 2 for storing image data, and bus switch part 7 to disconnect this image memory part 6 from the bus 5 when storing the image data read by the image read part 1 in the image memory part 6.

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 apparatus for reading image information from a check or the like and displaying or printing the image information.

【0002】[0002]

【従来の技術】図14は、パソコンを用いたイメージス
キャナの一般的構成図を示したものである。この装置
は、原画を走査して画像を読み取りこれを電気信号に変
換するイメージ読取部としてのCCD28(固体撮像素
子)と、アナログ信号をデジタル信号に変換するADC
20と、データを格納するメモリ部としてのMEM12
と、バッファとしてのBUFF21と、表示部としての
CRTC18(CRTコントローラ)及びCRT表示器
29と、制御プログラムに基づき装置を制御するCPU
部17と、このCPU部17とMEM12間のデータ転
送路としてのBUS15と、DMA転送の制御を行うD
MAC19とが設けられている。
2. Description of the Related Art FIG. 14 shows a general configuration of an image scanner using a personal computer. This device includes a CCD 28 (solid-state image sensor) as an image reading unit that scans an original image, reads the image, and converts the image into an electric signal, and an ADC that converts an analog signal into a digital signal.
20 and MEM12 as a memory unit for storing data
A BUFF 21 as a buffer, a CRTC 18 (CRT controller) and a CRT display 29 as a display unit, and a CPU for controlling the device based on a control program.
Part 17, BUS 15 as a data transfer path between the CPU part 17 and the MEM 12, and D for controlling DMA transfer
MAC 19 is provided.

【0003】上記装置は、CCD28を用いて画像を走
査してこの画像のイメージを読み取り、これを電圧信号
に変換する。そして、この電圧信号をADC20を介し
てデジタル信号に変換し、このデジタル信号を一度BU
FF21に蓄え、更に、DMAC19を介してBUFF
21に蓄えられたデジタル信号をBUS15を経由させ
てMEM12にDMA転送する。
The above device scans an image using the CCD 28, reads the image of this image, and converts it into a voltage signal. Then, this voltage signal is converted into a digital signal via the ADC 20, and this digital signal is once BU
Stored in FF21 and BUFF via DMAC19
The digital signal stored in 21 is DMA-transferred to the MEM 12 via the BUS 15.

【0004】図15は、上記DMA転送を行っていると
きのメモリサイクルの例を示している。この例では、B
US15をCPU部17が2サイクル、DMA処理が2
サイクル使用していることを示している。このように、
DMA転送中はCPU部17はBUS15をフルに使用
できないので待ちの状態となり、その分処理能力が低下
する。
FIG. 15 shows an example of a memory cycle during the above-mentioned DMA transfer. In this example, B
US15 has 2 cycles for CPU 17 and 2 for DMA processing
It indicates that the cycle is being used. in this way,
During the DMA transfer, the CPU section 17 cannot use the BUS 15 fully, so the CPU section 17 is in a waiting state, and the processing capability is reduced accordingly.

【0005】なお、従来においては、上記イメージデー
タの転送処理中は、この転送のみの単独処理がほとんど
で他の処理と並行して行うことはなく、または高価な専
用イメージ処理装置が用いられていた。
Incidentally, in the past, during the transfer processing of the image data, most of the single processing of this transfer is not performed in parallel with other processing, or an expensive dedicated image processing apparatus is used. It was

【0006】[0006]

【発明が解決しようとする課題】さて、上記デジタル信
号などのイメージデータはデータ量が多く、例えば、縦
105mm、横215mmの小切手を解像度10本/mmのC
CDで16値のグレースケール(白黒16階調:4ビッ
ト)で読み取った時のデータ量は次のようになる。
The image data such as the digital signal described above has a large data amount, for example, a check of 105 mm in length and 215 mm in width is 10 C / mm in resolution.
The data amount when reading with a 16-value gray scale (black and white 16 gradations: 4 bits) on a CD is as follows.

【0007】データ量=画素数×画素当たりのビット数 =縦の本数×横の本数×画素当たりのビット数 =(105 ×10)×(215 ×10)×4 =1,050 ×2,150 ×4 (ビット) =1,128,750 (バイト)Data amount = number of pixels × number of bits per pixel = vertical number × horizontal number × bit number per pixel = (105 × 10) × (215 × 10) × 4 = 1,050 × 2,150 × 4 (bits ) = 1,128,750 (bytes)

【0008】このデータを、例えばメモリサイクル500
nsのCPUのメモリに1Mバイト/秒の転送速度でD
MA転送してLOADする場合には、約1.1秒の時間
を要することになる。このDMA転送している間はCP
Uはメモリのアクセスができないため、上記に示す例で
はCPUの処理能力は50%に低下する。従って、デー
タ通信等の他の処理を並行して行ってしている場合に処
理能力不足に陥ってしまう可能性がある。
This data is stored, for example, in the memory cycle 500.
D in ns CPU memory at transfer rate of 1 Mbyte / sec
In the case of MA transfer and LOAD, it takes about 1.1 seconds. CP during this DMA transfer
Since U cannot access the memory, the processing capacity of the CPU is reduced to 50% in the above example. Therefore, when other processing such as data communication is being performed in parallel, the processing capacity may be insufficient.

【0009】このため、比較的処理能力の劣るパーソナ
ルコンピュータ或いはATM(自動預金支払機)等をオ
ンライン端末装置として用い、データ量の大きいイメー
ジデータの処理をオンライン中に行う場合には、ややも
すると処理量オーバーになってしまう。このため、一時
的に他の処理が出来なくなり、最悪の場合は装置がダウ
ン状態になることも考えられる。
For this reason, when a personal computer or ATM (automatic teller machine) having a relatively low processing capacity is used as an online terminal device to process image data having a large amount of data online, it may be somewhat difficult. The processing amount will be over. For this reason, other processing cannot be temporarily performed, and in the worst case, the device may be in a down state.

【0010】本発明は、上記問題点に鑑みてなされたも
のであり、小切手等のイメージを読取りこれを処理する
イメージ処理に加えて通信処理等の処理を並行して行
い、これらの多重処理を有効に行うイメージデータ処理
装置を提供することを目的としている。
The present invention has been made in view of the above problems, and in addition to image processing for reading an image of a check or the like and processing it, processing such as communication processing is performed in parallel, and these multiple processings are performed. It is an object of the present invention to provide an image data processing device that performs effectively.

【0011】[0011]

【問題点を解決するための手段】以上の技術的課題を解
決するために、本発明の第1の手段は図1に示すよう
に、原画を走査して画像を1画素単位に読み取り画像デ
ータを作成するイメージ読取部1と、ホストコンピュー
タとの通信制御等の処理と並行して、上記イメージ読取
部1で読み取った画像データの格納等の処理を行うCP
U部3と、データ及び制御プログラム等が格納されるメ
モリ部2と、このCPU部3と上記メモリ部2との間の
データ転送を行うバス5とを有するイメージデータ処理
装置において、上記画像データを格納し、上記メモリ部
2とは独立してバス5に接続されるイメージメモリ部6
と、上記イメージ読取部1で読取った画像データをイメ
ージメモリ部6に格納するときにはこのイメージメモリ
部6をバス5から切り離すバススイッチ部7とを装置に
設けたことである。
In order to solve the above technical problems, the first means of the present invention, as shown in FIG. 1, scans an original image, reads the image in pixel units, and outputs the image data. CP that performs processing such as storage of image data read by the image reading unit 1 in parallel with processing such as communication control between the image reading unit 1 that creates
In the image data processing device having a U unit 3, a memory unit 2 for storing data and control programs, and a bus 5 for transferring data between the CPU unit 3 and the memory unit 2, And an image memory unit 6 that stores the image data and is connected to the bus 5 independently of the memory unit 2.
Further, the apparatus is provided with a bus switch section 7 for disconnecting the image memory section 6 from the bus 5 when storing the image data read by the image reading section 1 in the image memory section 6.

【0012】また、本発明の第2の手段は第1の手段に
加えて、図2に示すように、読取り時の画素の位置をX
軸及びY軸からなる座標としてとらえ、上記イメージメ
モリ部6に格納する画素データのアドレスをこの座標に
対応させ、X座標に対応するX軸アドレス部8とY座標
に対応するY軸アドレス部9とを設けて、この両アドレ
ス部で画素データの格納アドレスを指定し、イメージメ
モリ部6に画素データを格納するときには、X軸アドレ
ス部8、Y軸アドレス部9の順にアドレスを更新してこ
れらの両アドレス部で指定されるアドレスに書き込み、
画素データを読み出すときには、X軸アドレス部8又は
Y軸アドレス部9の出力端に、ここから出力されるアド
レス値の1の補数を求める反転部11を設け、上記と逆
にY軸アドレス部9を先に更新してこれらの両アドレス
部で指定されるアドレスから読出すようにしたことであ
る。
Further, in addition to the first means, the second means of the present invention, as shown in FIG.
The pixel data address stored in the image memory unit 6 is made to correspond to this coordinate, and the X-axis address unit 8 corresponds to the X coordinate and the Y-axis address unit 9 corresponds to the Y coordinate. When the storage address of pixel data is specified by both of these address parts and the pixel data is stored in the image memory part 6, the addresses are updated in order of the X-axis address part 8 and the Y-axis address part 9. Write to the address specified by both address parts of
When reading pixel data, an inverting section 11 for obtaining the 1's complement of the address value output from the X-axis address section 8 or the Y-axis address section 9 is provided at the output end, and the Y-axis address section 9 is reversed. Is updated first to read from the address specified by these two address parts.

【0013】また、本発明の第3の手段は第1の手段に
加えて、図3に示すように、画素を原画のX軸及びY軸
からなる座標としてとらえ、上記イメージメモリ部6に
格納する画素データのアドレスをこの座標に対応させ、
X座標に対応するアドレスを指定するX軸アドレス部8
と、上記Y座標に対応するアドレスを指定するY軸アド
レス部9とを設けると共に、イメージメモリ部6のアド
レス値の下位ビットをX軸アドレス部8、又上位ビット
をY軸アドレス部9にもたせ、この両アドレス部で画素
データの格納アドレスを指定し、イメージメモリ部6に
画素データを格納するときには、X軸アドレス部8又は
Y軸アドレス部9の出力端に、ここから出力されるアド
レス値の1の補数を求める反転部11を設け、Y軸アド
レス部9、X軸アドレス部8の順にアドレスを更新して
これらの両アドレス部で指定されるアドレスに書き込
み、画素データを読み出すときには、順に更新されるア
ドレス指定で、連続する複数のアドレスに格納されてい
る画素データを同時にバス5に出力するアドレスデコー
ド部13を設けて、下位アドレスから順番に画素データ
を読出すことである。
In addition to the first means, the third means of the present invention, in addition to the first means, captures a pixel as a coordinate consisting of the X axis and the Y axis of the original image and stores it in the image memory section 6. Corresponds the pixel data address to
X-axis address section 8 for specifying the address corresponding to the X coordinate
And a Y-axis address section 9 for designating an address corresponding to the Y coordinate, and the lower bits of the address value of the image memory section 6 are given to the X-axis address section 8 and the upper bits are given to the Y-axis address section 9. When the pixel data storage address is designated by both of these address parts and the pixel data is stored in the image memory part 6, the address value output from the X-axis address part 8 or the Y-axis address part 9 is output to the output end. The inversion unit 11 for obtaining the one's complement of is provided, and the addresses are updated in the order of the Y-axis address unit 9 and the X-axis address unit 8 to write to the addresses specified by these address units, and when the pixel data is read out, in order. An address decoding unit 13 that outputs pixel data stored in a plurality of consecutive addresses to the bus 5 at the same time by the updated address designation is provided. Position is that to read the pixel data in order from the address.

【0014】[0014]

【作用】上記第1の手段の作用を説明する。通常時に
は、メモリ部2及びイメージメモリ部6はバス5を介し
てCPU部3と接続されている。そして、CPU部3は
必要に応じてメモリ部2或いはイメージメモリ部6を参
照し、画像データを表示したりする処理を行い、これと
並行してホストコンピュータとの通信制御等の処理を行
っている。
The operation of the first means will be described. Normally, the memory unit 2 and the image memory unit 6 are connected to the CPU unit 3 via the bus 5. Then, the CPU unit 3 refers to the memory unit 2 or the image memory unit 6 as necessary to perform processing such as displaying image data, and in parallel with this, performs processing such as communication control with the host computer. There is.

【0015】さて、原画の読み取りを開始するときに
は、まず、CPU部3からの指示に基づきバススイッチ
部7を操作して、バス5に接続されたイメージメモリ部
6をバス5から切り離す。この後、イメージ読取部1に
おいて画像の読み取り処理を開始し、これと共に、読み
取った画像データを順次イメージメモリ部6に転送して
格納する。この転送中、CPU部3はバス5を介して自
由にメモリ部2を参照できるので、通信制御等の処理を
そのまま継続できる。
When the reading of the original image is started, first, the bus switch section 7 is operated based on an instruction from the CPU section 3 to disconnect the image memory section 6 connected to the bus 5 from the bus 5. After that, the image reading unit 1 starts the image reading process, and at the same time, the read image data is sequentially transferred to and stored in the image memory unit 6. During this transfer, the CPU unit 3 can freely refer to the memory unit 2 via the bus 5, so that processing such as communication control can be continued.

【0016】上記原画の読み取り処理が終了すれば、C
PU部3の指示に基づきバススイッチ部7を操作し、イ
メージメモリ部6をバス5に接続する。この後、CPU
部3はバス5を介してイメージメモリ部6をアクセス
し、上記画像データを参照して例えばこれを表示したり
する。
When the reading process of the original image is completed, C
The bus switch unit 7 is operated based on an instruction from the PU unit 3 to connect the image memory unit 6 to the bus 5. After this, the CPU
The unit 3 accesses the image memory unit 6 via the bus 5 and refers to the image data to display it, for example.

【0017】第2の手段に係る作用を説明する。まず、
処理に先立ち上記X軸アドレス部8及びY軸アドレス部
9の内容をクリアしておく。そして、イメージメモリ部
6をバス5から切り離して、イメージメモリ部6に画素
を格納する。この際、X軸アドレス部8、Y軸アドレス
部9の順にアドレスを更新し、これらの両アドレス部で
指定するアドレスに画素データを書き込む。即ち、1画
素書き込む毎にX軸アドレス部8を+1更新して順次画
素データを書き込み、この処理を繰り返し行った後X軸
アドレス部8が所定の値に達し、たとえばオーバーフロ
ーすれば、このX軸アドレス部8をクリアすると共にY
軸アドレス部9を+1更新し、これらの更新を行いつつ
順次画素データの書き込みを行う。
The operation of the second means will be described. First,
Prior to processing, the contents of the X-axis address section 8 and the Y-axis address section 9 are cleared. Then, the image memory unit 6 is separated from the bus 5, and the pixels are stored in the image memory unit 6. At this time, the addresses are updated in the order of the X-axis address section 8 and the Y-axis address section 9, and the pixel data is written to the addresses specified by these address sections. That is, every time one pixel is written, the X-axis address section 8 is updated by +1 to sequentially write pixel data, and after this process is repeated, the X-axis address section 8 reaches a predetermined value, and if it overflows, for example, this X-axis Clear the address section 8 and Y
The axis address portion 9 is updated by +1 and the pixel data is sequentially written while performing these updates.

【0018】上記格納処理が終了すれば、CPU部3か
らの指示に基づき、イメージメモリ部6から画素データ
を読み出す。この際、右方向に画像を90度回転させた
いときには、Y軸アドレス部9の出力端に反転部11を
設け、上記と逆にY軸アドレス部9を先に更新し、たと
えばこれがオーバーフローする毎にX軸アドレス部8を
更新してアドレスを指定し、この指定されたアドレスか
ら画素データを読み出す。
When the storage process is completed, the pixel data is read from the image memory unit 6 based on the instruction from the CPU unit 3. At this time, when it is desired to rotate the image 90 degrees to the right, an inverting section 11 is provided at the output end of the Y-axis address section 9, and the Y-axis address section 9 is updated first, contrary to the above, for example, every time this overflows. The X-axis address section 8 is updated to specify an address, and pixel data is read from the specified address.

【0019】これらの画素データは、書き込み時の画像
を右方向に90度回転させたイメージの順に読出される
ので、たとえばこれをそのまま表示すれば原画を右90
度回転させた状態で表示される。また、左方向に画像を
90度回転させたいときには、X軸アドレス部8の出力
端に反転部11を設ける。そして、上記と同様にしてイ
メージメモリ部6のアドレスを指定して画素データを読
み出す。すると、これらの画素データは左方向に90度
回転させたイメージで取り出せる。
Since these pixel data are read in the order of an image obtained by rotating the image at the time of writing by 90 degrees to the right, for example, if this image is displayed as it is, the original image is displayed at the right 90.
It is displayed in a rotated state. Further, when it is desired to rotate the image 90 degrees to the left, the inverting section 11 is provided at the output end of the X-axis address section 8. Then, similarly to the above, the address of the image memory unit 6 is designated and the pixel data is read out. Then, these pixel data can be extracted as an image rotated 90 degrees to the left.

【0020】第3の手段に係る作用を説明する。まず、
処理に先立ち上記X軸アドレス部8及びY軸アドレス部
9の内容をクリアしておく。そして、イメージメモリ部
6をバス5から切り離して、イメージメモリ部6に画素
データを格納する。この際、右方向に画像を90度回転
させたイメージで画素データを格納するときには、X軸
アドレス部8の出力端に反転部11を設け、Y軸アドレ
ス部9の出力とこの反転部11の出力とで指定されたア
ドレスに画素を書き込む。そして、画素データの書き込
みのつどY軸アドレス部9を+1更新し、やがてY軸ア
ドレス部9が所定の値、例えばオーバーフローすればこ
のY軸アドレス部9をクリアすると共に、X軸アドレス
部8を+1更新し、これらの更新を行いつつ順次画素デ
ータの書き込みを行う。
The operation of the third means will be described. First,
Prior to processing, the contents of the X-axis address section 8 and the Y-axis address section 9 are cleared. Then, the image memory unit 6 is separated from the bus 5, and the pixel data is stored in the image memory unit 6. At this time, when the pixel data is stored as an image obtained by rotating the image 90 degrees to the right, an inverting section 11 is provided at the output end of the X-axis address section 8 to output the Y-axis address section 9 and the inverting section 11. A pixel is written to the address specified by and. Then, each time the pixel data is written, the Y-axis address section 9 is updated by +1. Then, when the Y-axis address section 9 overflows, the Y-axis address section 9 is cleared and the X-axis address section 8 is cleared. +1 update is performed, and pixel data is sequentially written while performing these updates.

【0021】このとき、イメージメモリ部6のアドレス
値の下位ビットをX軸アドレス部8、又上位ビットをY
軸アドレス部9にもたせているので、例えばアドレスが
16ビットで指定され、画像範囲が正方形の場合、これ
の下位8ビットがX軸アドレス部8、上位8ビットがY
軸アドレス部9で指定されることになる。なお、画像範
囲が長方形の場合はX軸アドレス部8が9ビット、Y軸
アドレス部9が7ビット等の様に異なっていても良い。
At this time, the lower bits of the address value of the image memory unit 6 are the X-axis address unit 8 and the upper bits are Y.
Since the address is given to the axis address part 9, for example, when the address is designated by 16 bits and the image range is a square, the lower 8 bits of this are the X axis address part 8 and the upper 8 bits are Y.
It is designated by the axis address section 9. When the image range is rectangular, the X-axis address section 8 may have 9 bits and the Y-axis address section 9 may have 7 bits.

【0022】これらの書き込みが終了すれば、つぎに読
出しを行う。このときにはイメージメモリ部6をバス5
に接続し、また、アドレスデコード部13を介在させて
同時に複数画素データをバス5に出力できるようにす
る。そして、読出しが始まるとCPU部3は下位アドレ
スから上位にむけて順次アドレスの指定を行う。する
と、このアドレス指定でイメージメモリ部6から複数の
画素データが読出されこれがバス5に送られる。そし
て、これらの画素データをたとえば表示装置に入力し、
以降すべての画素データについて上記処理を繰り返し行
う。すると、表示装置に送られた画像データはイメージ
メモリ部6に書き込み時に画像を右方向に90度回転さ
せた状態で書き込まれているので、表示面には原画を右
90度回転させた状態で表示される。
When these writings are completed, reading is next performed. At this time, the image memory unit 6 is connected to the bus 5
In addition, a plurality of pixel data can be simultaneously output to the bus 5 via the address decoding unit 13. Then, when reading is started, the CPU section 3 sequentially designates addresses from a lower address to an upper address. Then, a plurality of pixel data are read from the image memory unit 6 by this address designation and sent to the bus 5. Then, by inputting these pixel data into a display device,
After that, the above process is repeated for all pixel data. Then, since the image data sent to the display device is written in the image memory unit 6 in a state where the image is rotated 90 degrees to the right when written, the original image is rotated 90 degrees to the right on the display surface. Is displayed.

【0023】また、左方向に画像を90度回転させたい
ときには、Y軸アドレス部9の出力端に反転部11を設
ける。そして、上記と同様にしてイメージメモリ部6の
アドレスを指定して画素データを書き込み、これを上記
の手法で読出し表示装置で表示させれば左方向に90度
回転した画像が表示される。
When it is desired to rotate the image 90 degrees to the left, an inverting section 11 is provided at the output end of the Y-axis address section 9. Then, similarly to the above, if the address of the image memory unit 6 is designated and the pixel data is written, and this is read out by the above-mentioned method and displayed on the display device, an image rotated 90 degrees to the left is displayed.

【0024】[0024]

【実施例】以下本発明の実施例に係るイメージデータ処
理装置を図面に基づいて説明する。図4は、本実施例に
係る装置の基本的な構成図である。本装置は、前記従来
例で説明したように、原画の画像を電気信号に変換して
イメージデータ(画像データ)を作成するイメージ読取
部1としてのCCD28及びADC20と、メモリ部2
としてのMEM12と、表示を行うCRT表示器29及
びこれを制御するCRTC18と、CPU部17と、デ
ータ転送を行うBUS15と、DMAC19とが設けら
れている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An image data processing apparatus according to an embodiment of the present invention will be described below with reference to the drawings. FIG. 4 is a basic configuration diagram of the device according to the present embodiment. As described in the above-mentioned conventional example, the present apparatus includes a CCD 28 and an ADC 20 as an image reading unit 1 for converting an image of an original image into an electric signal to create image data (image data), and a memory unit 2.
Is provided, a CRT display 29 for displaying and a CRTC 18 for controlling the same, a CPU section 17, a BUS 15 for data transfer, and a DMAC 19.

【0025】更に本実施例では、上記BUS15に接続
され、イメージデータを専用に格納するイメージメモリ
部6としてのIMEM21と、このIMEM21をBU
S15から切り離し或いは接続するバススイッチ部7と
してのSW1とが設けられている。本装置は、CCD2
8で読み取られたイメージデータをIMEM21に転送
する場合には、CPU部17の指示に基づき、SW1を
操作してBUS15に接続されたIMEM21を切り離
し、この状態でイメージデータをIMEM21に転送す
る。この後転送が終了すると、CPU部17の指示に基
づきSW1を操作してIMEM21をBUS15に接続
し、MEM12と同様にCPU部17がIMEM21を
参照できるようにする。
Further, in the present embodiment, the IMEM 21 as the image memory unit 6 connected to the BUS 15 and dedicatedly storing image data, and the IMEM 21 are BU.
SW1 as the bus switch unit 7 which is disconnected or connected from S15 is provided. This device is CCD2
When the image data read in 8 is transferred to the IMEM 21, the SW 1 is operated based on the instruction of the CPU unit 17 to disconnect the IMEM 21 connected to the BUS 15, and the image data is transferred to the IMEM 21 in this state. After this, when the transfer is completed, the SW1 is operated based on the instruction of the CPU section 17 to connect the IMEM21 to the BUS15 so that the CPU section 17 can refer to the IMEM21 like the MEM12.

【0026】さて、上記SW1は接点形式で図示(図
4)しているが、実際にはTTL等の論理回路で構成さ
れている。図5は図4のIMEM21部分を詳細に示し
た機能ブロック図である。図中、ABUS15aはBU
S15に含まれるアドレスバスを、同じくDBUS15
bはデータバスを表す。さらにいくつかの制御信号線が
あるが図示していない。
Although the SW1 is shown in contact form (FIG. 4), it is actually composed of a logic circuit such as TTL. FIG. 5 is a functional block diagram showing in detail the IMEM 21 portion of FIG. In the figure, ABUS15a is BU
The address bus included in S15 is also changed to DBUS15.
b represents a data bus. There are some more control signal lines, which are not shown.

【0027】また、CTL27はCPU部17から本I
MEM21部分を制御するためのもの(一種のIOレジ
スタに該当)で、IMEM21をBUS15に接続・分
離したり、CCD28のスキャナの照明のON/OF
F、スキャナの起動停止、番地制御、データ制御等の各
種の制御或いは状態表示を行う。CNT26はイメージ
データを格納するRAM22の番地カウンタであり、C
CD28の読みだしと同期してカウンタがインクルメン
トされる。RAM22はイメージデータの格納部であ
り、このRAM22の番地制御回路としてACTL23
が、又データ制御回路としてのDCTL24が設けられ
ている。
Further, the CTL 27 is transferred from the CPU section 17 to the main I
It is for controlling the MEM21 part (corresponding to a kind of IO register), connecting / disconnecting the IMEM21 to / from the BUS15, and turning on / off the illumination of the scanner of the CCD28.
F, various controls such as start / stop of scanner, address control, data control, etc., or status display are performed. The CNT 26 is an address counter of the RAM 22 for storing image data, and C
The counter is incremented in synchronization with the reading of the CD 28. The RAM 22 is a storage unit for image data, and the ACTL 23 serves as an address control circuit of the RAM 22.
However, a DCTL 24 is provided as a data control circuit.

【0028】ここで、図5に示すイメージメモリ部(I
MEM21)の動作の概略を説明する。はじめに、CT
L27で必要な箇所を初期化すると共に、SW1,2を
操作してRAM22をABUS15a及びDBUS15
bから分離させ、CPU部17からの指示或いは起動セ
ンサーからの信号をトリガーとしてCCD28のスキャ
ナを起動する。
Here, the image memory unit (I
The outline of the operation of the MEM 21) will be described. First, CT
Initialize necessary parts with L27 and operate SW1 and SW2 to set RAM22 to ABUS15a and DBUS15.
Then, the scanner of the CCD 28 is activated by using the instruction from the CPU 17 or the signal from the activation sensor as a trigger.

【0029】画像読取の走査が開始されると、CCD2
8で読み取ったイメージデータは1画素毎にADC20
でAD変換され、この変換されたデジタルデータはCN
T26のカウント値で示されるRAM22の番地に格納
される。そして、CNT26が指定値に達したとき、ま
た停止センサーの検知により停止したときはCPU部1
7に割り込み信号を印加して、IMEM21の制御をC
PU部17に移す。すると、CPU部17はSW1,2
等に切換指示を行い,IMEM21をABUS15a及
びDBUS15bに接続する。この後、CPU部17は
IMEM21を参照することが可能となり、IMEM2
1からイメージデータを読出し、これをCRT29に表
示したり別途ディスク等の記憶媒体に格納したりするこ
とが可能となる。
When scanning for image reading is started, the CCD 2
The image data read in 8 is ADC20 for each pixel.
AD conversion is performed on this, and the converted digital data is CN
It is stored in the address of the RAM 22 indicated by the count value of T26. When the CNT 26 reaches the specified value, or when the CNT 26 is stopped by the detection of the stop sensor, the CPU unit 1
Apply an interrupt signal to 7 to control IMEM21 by C
Move to PU unit 17. Then, the CPU unit 17 switches SW1, SW2
And so on, and connects the IMEM 21 to the ABUS 15a and the DBUS 15b. After that, the CPU unit 17 can refer to the IMEM21, and the IMEM2
It is possible to read the image data from No. 1 and display it on the CRT 29 or store it in a storage medium such as a disk separately.

【0030】図6は、図5に示すイメージメモリ部の詳
細な機能ブロック図である。このイメージメモリ部で
は、原画の画素の位置をX座標及びY座標としてとら
え、読み取った画素をこれらの座標に対応させて保持す
るものである。このため、RAM22の番地カウンタC
NT26として、X座標を指定するカウンタであるXC
NTと、Y座標を指定するカウンタであるYCNTとが
設けられている。また、ACTL23には、切替スイッ
チSW3,SW4と、排他的論理和回路であるXOR0
及びXOR1とが設けられている。
FIG. 6 is a detailed functional block diagram of the image memory section shown in FIG. In this image memory unit, the position of the pixel of the original image is recognized as the X coordinate and the Y coordinate, and the read pixel is held in correspondence with these coordinates. Therefore, the address counter C of the RAM 22
XC, which is a counter that specifies the X coordinate as NT26
NT and YCNT which is a counter for designating the Y coordinate are provided. The ACTL 23 also includes changeover switches SW3 and SW4 and an exclusive OR circuit XOR0.
And XOR1 are provided.

【0031】RAM22は、互いに独立してアクセスで
きる4つのRAM0,〜RAM4から構成され、これら
からの出力データがデータスイッチS0〜S3及びSW
1を介してDBUS15bに送られる。また、DCTL
24にはデコード回路DECが設けられ、データスイッ
チS0〜S3の切り換えの制御が行われる。N0,〜N
3はそれぞれRAM0,〜RAM3からの出力データを
転送するバスである。
The RAM 22 is composed of four RAMs 0 to 4 which can be accessed independently of each other, and the output data from these RAMs are data switches S0 to S3 and SW.
1 to DBUS15b. Also, DCTL
A decode circuit DEC is provided at 24 to control switching of the data switches S0 to S3. N0, ~ N
Reference numeral 3 is a bus for transferring output data from RAM0, RAM3, respectively.

【0032】また、このイメージメモリ部は、CPU部
17とデータ転送を行うBUS15のデータバス幅は1
6ビットである。そして、画素の明暗を16値の4ビッ
トで表し、2進カウンタXCNT,YCNTはそれぞれ
10及び11ビット有している。RAM0,〜RAM3
はそれぞれ512kword(4ビット/word)の
RAMメモリで構成されている例である。一方、CCD
28はX軸方向に1024の素子数を、Y軸方向に20
48の素子数を有し、上記2進カウンタXCNT,YC
NTのカウント数に対応している。周知の通り、一列1
024素子のCCDを用いて、Y方向に像を2048素
子分移動させても等価である。
In this image memory unit, the data bus width of the BUS 15 for transferring data with the CPU unit 17 is 1
It is 6 bits. The brightness of the pixel is represented by 16-valued 4 bits, and the binary counters XCNT and YCNT have 10 and 11 bits, respectively. RAM0, ~ RAM3
In the example, each is composed of 512 kword (4 bits / word) RAM memory. On the other hand, CCD
28 is the number of elements of 1024 in the X-axis direction and 20 in the Y-axis direction.
It has 48 elements and has the binary counters XCNT and YC.
Corresponds to the NT count number. As is well known, one row
It is equivalent to moving the image by 2048 elements in the Y direction using a 024 element CCD.

【0033】図7は、DEC及びDCTL24の動作を
示す論理表である。ここで、M0,M1は前もって所定
の値に設定されるものであり、A0,A1は最下位のア
ドレスビットである。図8は、SW3およびSW4にお
ける接続の一例を示すものである。ここではXCNTが
2bit(X0 ,X1 )でYCNTが3bit(Y0 ,
Y1 ,Y2 )の場合の例を示したものであり、SW3及
びSW4の切替操作を行うことによりXCNTとYCN
Tとを逆順位に接続したものと等価になる。一般に、X
CNTがMbit,YCNTがNbitでも同様な手法
で接続が行える。
FIG. 7 is a logical table showing the operation of the DEC and DCTL 24. Here, M0 and M1 are set to predetermined values in advance, and A0 and A1 are the least significant address bits. FIG. 8 shows an example of connections in SW3 and SW4. Here, XCNT is 2 bits (X0, X1) and YCNT is 3 bits (Y0, X1).
Y1 and Y2) are shown as an example, and XCNT and YCN can be obtained by switching SW3 and SW4.
It is equivalent to connecting T and T in reverse order. Generally, X
Even if CNT is Mbit and YCNT is Nbit, connection can be performed by the same method.

【0034】ここで、図6に示すイメージメモリ回路の
動作をロード、表示等の各場合に分けて説明する。ま
ず、イメージデータをロードする場合について説明す
る。CCD28からRAM22にイメージデータを転送
するときには、SW1をOFFし、SW2をCNT26
側に切替える。そして、XCNTとYCNTで構成する
カウンタをクリアする。これらのXCNTとYCNTの
カウント値はアドレス信号として出力され、このアドレ
ス信号はSW2、XOR0,1(このときは、本XOR
0,1は単なるゲートとして機能させる)及びSW3,
4を通過してRAM0,〜3のアドレスとして入力され
る。
Here, the operation of the image memory circuit shown in FIG. 6 will be described separately for each case such as loading and displaying. First, the case of loading image data will be described. When transferring image data from the CCD 28 to the RAM 22, SW1 is turned off and SW2 is set to CNT26.
Switch to the side. Then, the counter made up of XCNT and YCNT is cleared. The count values of these XCNT and YCNT are output as an address signal, and this address signal is SW2, XOR0, 1 (at this time, this XOR
0 and 1 function as simple gates) and SW3
4 and is input as the addresses of RAMs 0 to 3.

【0035】一方、CCD28とADC20とは互いに
同期して動作し、CCD28の1画素毎にADC20で
この明暗を4ビットのデジタルデータに変換する。ま
た、XCNTとYCNTとで構成されるカウンタも1画
素毎にインクルメントされる。RAM24では、上記カ
ウンタが+1される毎にRAM0,RAM2,RAM3
と順次選択され、この選ばれたRAMに画素データを格
納する。そして、4画素毎にRAM0,RAM1,RA
M2,RAM3のそれぞれのアドレスが+1された位置
に格納し、すべての画素データを格納する。図9は、R
AM0,〜3に格納される画素の順番を示している。
On the other hand, the CCD 28 and the ADC 20 operate in synchronization with each other, and the ADC 20 converts the light and dark into 4-bit digital data for each pixel of the CCD 28. Further, the counter composed of XCNT and YCNT is also incremented for each pixel. In the RAM 24, each time the counter is incremented by 1, RAM0, RAM2, RAM3
And the pixel data are stored in the selected RAM. Then, RAM0, RAM1, RA for every four pixels
The respective addresses of M2 and RAM3 are stored in the position where +1 is added, and all the pixel data are stored. Figure 9 shows R
The order of the pixels stored in AM0 to AM3 is shown.

【0036】やがてイメージデータのロードが終了すれ
ば、SW1をONにし、SW2をABUS15a側に切
り換える。この後、RAM0,〜RAM3はCPU部1
7が直接アクセスできるメモリとして機能する。従っ
て、CCD28からイメージデータをRAM22に転送
している間であっても、BUS15はCPU部17が自
由に専有できることになり、CPU部17は通信制御等
の処理を支障なく行える。
When the loading of the image data is completed, SW1 is turned on and SW2 is switched to the ABUS 15a side. After this, RAM0, ...
7 functions as a memory that can be directly accessed. Therefore, even while the image data is being transferred from the CCD 28 to the RAM 22, the BUS 15 can be freely occupied by the CPU unit 17, and the CPU unit 17 can perform processing such as communication control without any trouble.

【0037】次に、RAM22にロードされたイメージ
データをCRT29に表示する場合について説明する。
原画から読み取ったイメージデータをそのままの向きで
CRT29に表示するときには、RAM0〜3にロード
された画素データを画素からなる面と考え、これをCR
TのVIDEO−RAM(VRAM)に、面のイメージ
で転送すればよい。
Next, the case where the image data loaded in the RAM 22 is displayed on the CRT 29 will be described.
When the image data read from the original image is displayed on the CRT 29 in the same orientation, the pixel data loaded in the RAMs 0 to 3 is considered to be a surface composed of pixels, and this is CR
The image of the surface may be transferred to the VIDEO-RAM (VRAM) of T.

【0038】ところで、CPU部17に接続されている
アドレスバスABUS15aは、XCNT,YCNTで
指定されるアドレスの各ビットに対応している。したが
って、図6で示される通りにCPU部17から出力され
るアドレスは、ABUS15a、SW2、XOR0及び
XOR1、SW3及びSW4を通過してRAM0〜3に
印加され、RAM0,〜RAM3に格納されているイメ
ージデータが読出される。このとき、上記アドレスにお
ける最下位アドレスビットA0,A1及びM0,M1が
DECに入力され、このデコード結果に基づいてデータ
スイッチS0〜S3を制御し、RAM0,〜RAM3か
ら一度に読み出す画素データの数を指定している。この
とき、DECに入力されるM0,M1は前もって所定の
IOレジスタ等に設定しておかれる。
The address bus ABUS15a connected to the CPU section 17 corresponds to each bit of the address designated by XCNT and YCNT. Therefore, as shown in FIG. 6, the address output from the CPU unit 17 passes through the ABUS 15a, SW2, XOR0 and XOR1, SW3 and SW4, is applied to the RAM0 to 3, and is stored in the RAM0 to RAM3. The image data is read. At this time, the least significant address bits A0, A1 and M0, M1 in the above address are input to the DEC, the data switches S0 to S3 are controlled based on the decoding result, and the number of pixel data read from the RAM0 to RAM3 at one time. Is specified. At this time, M0 and M1 input to the DEC are preset in a predetermined IO register or the like.

【0039】例えば、M0,M1が0,1に設定されて
おればS0,〜S3はそれぞれN0,〜N3に接続さ
れ、上記A0,A1の値に関係なく一回の読出しで4画
素同時に16ビットとして読出される。また、M0,M
1が1,0に設定されておれば、2画素単位で8ビット
として読出される。そして、M0,M1が0,0に設定
されておれば、1画素毎にアドレスの最下位の2ビット
で指定されたRAMから画素が読出される。DECでN
0〜N3のどれにも選ばれないときは、データスイッチ
は信号「0」が印加されたN4に接続される。また、ア
ドレスの最下位ビットA0,A1が0,0のとき、デー
タスイッチS0はN0を選びRAN0に格納されている
画素データが読出され、他のS1〜S3はN4に接続さ
れるので「0」となる。
For example, if M0 and M1 are set to 0 and 1, S0 and .about.S3 are connected to N0 and .about.N3, respectively, and four pixels are simultaneously read out by 16 pixels regardless of the values of A0 and A1. Read as a bit. Also, M0, M
If 1 is set to 1, 0, it is read as 8 bits in units of 2 pixels. If M0 and M1 are set to 0 and 0, a pixel is read from the RAM designated by the least significant 2 bits of the address for each pixel. N in DEC
When none of 0 to N3 is selected, the data switch is connected to N4 to which the signal "0" is applied. Further, when the least significant bits A0 and A1 of the address are 0 and 0, the data switch S0 selects N0 and the pixel data stored in RAN0 is read out, and the other S1 to S3 are connected to N4. Will be

【0040】このようにしてRAM0〜RAM3に格納
されているイメージデータを順次読み出し、これをCR
TのVRAMに転送し、CRT画面に表示する。
In this way, the image data stored in the RAM0 to RAM3 are sequentially read, and this is CR
It is transferred to the VRAM of T and displayed on the CRT screen.

【0041】ここで、原稿から読み取った画像を、右方
向(時計回り)に90度回転させてCRTに表示する場
合について説明する。これは、例えば小切手等の横長の
画像を、イメージスキャナで読み取らせるときには、M
ICRコードの読み取りも兼ねて縦長に挿入して読み取
らせ、これをCRTに表示するときには90度回転させ
て横長に表示するような場合である。
Here, a case will be described in which an image read from a document is rotated 90 degrees clockwise (clockwise) and displayed on a CRT. This means that when a horizontally long image such as a check is read by an image scanner, M
This is a case where the ICR code is also inserted vertically and read, and when it is displayed on the CRT, it is rotated 90 degrees and displayed horizontally.

【0042】このときには、CCD28で読み取った画
素データをRAM22に格納する際に、画像を90度回
転させた状態で格納する。即ち、SW2をCNT26側
に倒し、図6に示すSW3及びSW4を図示している状
態から反転(右側に倒す)させる。さらに、XOR1の
一方の入力に「1」を印加してXOR1をNOTゲート
として機能させ、ここを通過した信号を反転させる。こ
の状態で、CNT26において書込み番地を順次指定
し、アドレス0から順に番地を指定しイメージデータを
RAM22に格納する。
At this time, when the pixel data read by the CCD 28 is stored in the RAM 22, the image is stored in a state rotated by 90 degrees. That is, SW2 is tilted to the CNT 26 side, and SW3 and SW4 shown in FIG. 6 are inverted (tilted to the right) from the state shown. Further, "1" is applied to one input of XOR1 to cause XOR1 to function as a NOT gate and invert the signal passing therethrough. In this state, the write addresses are sequentially designated in the CNT 26, the addresses are designated in order from the address 0, and the image data is stored in the RAM 22.

【0043】そして、このイメージデータを読み出す際
には、M0とM1を0,0に設定し、これらの設定の
後、CPU部17の指示に基づき、RAM0〜RAM3
におけるアドレス0から順番にイメージデータを読み出
す。すると、DBUS15bの下位4ビットに1画素分
のデータが現れ、これを順次CRT29のVRAMに転
送すれば、右方向に90度回転した画像がCRTに表示
されることになる。
When this image data is read, M0 and M1 are set to 0, 0, and after these settings, RAM0 to RAM3 are set based on the instruction of the CPU section 17.
The image data is sequentially read from the address 0 in. Then, data for one pixel appears in the lower 4 bits of the DBUS 15b, and if this data is sequentially transferred to the VRAM of the CRT 29, an image rotated 90 degrees to the right will be displayed on the CRT.

【0044】上記手法は、格納時にはSW3,SW4を
反転させてXCNTとYCNTからの入力順序を逆に
し、且つ、読出し時にはXOR0でYCNTの値を反転
させて1画素単位に読みだす手法と同等である。
The above method is equivalent to a method in which SW3 and SW4 are reversed at the time of storage to reverse the input order from XCNT and YCNT, and at the time of reading, the value of YCNT is reversed at XOR0 and read in a unit of one pixel. is there.

【0045】ここで、画像を右方向に90度回転させる
アルゴリズムを図10を用いて説明する。図10(a)
は、縦長の原稿をCCD28で走査しこの原稿からイメ
ージデータを読み取る走査順序を矢印で示しており、イ
メージメモリ(RAM22)にはこの順序でイメージデ
ータが格納される。図10(d)は図10(a)の画像
をRAM22に書き込む番地を指定するアドレスカウン
タの構成を示したものである。ここで、XCNTとYC
NTは従属接続され、XCNTは1画素毎に+1され、
XCNTがオーバーフローする毎にYCNTを+1する
ものである。図10(a)中の○印は、画像の位置の目
印であり、図10(b)から図10(c)に移るときの
画像の回転の様子がわかるようにしている。
An algorithm for rotating the image 90 degrees to the right will be described with reference to FIG. Figure 10 (a)
Shows the scanning order of a vertically long document by the CCD 28 and reading the image data from this document with an arrow, and the image data is stored in the image memory (RAM 22) in this order. FIG. 10D shows the configuration of an address counter for designating an address where the image of FIG. 10A is written in the RAM 22. Where XCNT and YC
NT is connected in cascade, XCNT is incremented by 1 for each pixel,
Every time XCNT overflows, YCNT is incremented by one. The circle mark in FIG. 10A is a mark of the position of the image, and the state of rotation of the image when moving from FIG. 10B to FIG.

【0046】そして、図10(d)に示す番地カウンタ
の構成でイメージメモリに書込み処理を行い、一方、読
み出し時には図10(e)に示すように上記書き込み時
とは逆にYCNTを先にXCNTを後にして接続変換
し、さらにYCNTの1の補数をとるようにしてアドレ
スを指定すれば、図10(b)に示す順序でイメージデ
ータを読み出せることになる。これは、YCNTが
「0」の時、YCNTの補数は最大になり、YCNTが
増加すればYCNTの補数は減少するためである。
Then, with the address counter configuration shown in FIG. 10D, writing processing is performed in the image memory. On the other hand, when reading, as shown in FIG. 10E, YCNT precedes XCNT, contrary to the above writing. After that, the connection is converted, and if the address is designated by taking the one's complement of YCNT, the image data can be read in the order shown in FIG. This is because the complement of YCNT becomes maximum when YCNT is “0”, and the complement of YCNT decreases as YCNT increases.

【0047】そして、図10(b)の読出順序でイメー
ジデータをCRT29のVRAMに転送すれば、CRT
29の画面には図10(c)のように表示され、これは
読み取った画像を90度右回りに回転させて表示したこ
とになる。
Then, if the image data is transferred to the VRAM of the CRT 29 in the reading order of FIG.
The screen of 29 is displayed as shown in FIG. 10C, which means that the read image is displayed by rotating it 90 degrees clockwise.

【0048】また、図11には画像(図11(a))を
反時計回りつまり左方向に90度回転させて読出す場合
の概要が示されている。これは、上記右方向に90度回
転させる場合と同様、XCNTとYCNTの順序を逆に
し、さらにXCNTの1の補数をとるようにすると(図
11(d),(e))、図9(b)に示す順序で読み出
しが行えるようになる。そして、図11(b)の読出順
序でCRTのVRAMに転送すると、図11(c)の様
に左方向に90度回転させて表示したことになる。
Further, FIG. 11 shows an outline of reading an image (FIG. 11A) by rotating it counterclockwise, that is, by rotating it 90 degrees counterclockwise. As in the case of rotating 90 degrees to the right, the order of XCNT and YCNT is reversed, and the one's complement of XCNT is taken (FIGS. 11D and 11E). Reading can be performed in the order shown in b). Then, when the data is transferred to the VRAM of the CRT in the reading order of FIG. 11B, it is displayed by being rotated 90 degrees to the left as shown in FIG. 11C.

【0049】さて、上記のイメージデータを90度回転
させて読み出す手法では、1回のアクセスで1画素単位
しか読み出すことが出来ないため、CRTへの表示時間
が長くかかる欠点がある。そこで、90度回転させる回
転方向が予め決められている場合には、イメージデータ
をメモリにロードする際に、このロードする番地を工夫
して、バイト単位或いはワード単位で複数の画素を同時
に読みだせるようにメモリに格納しておけば、非常に効
率的に読み出しが行えることになる。
In the method of reading the image data by rotating the image data by 90 degrees, only one pixel unit can be read by one access, so that there is a drawback that the display time on the CRT is long. Therefore, when the rotation direction to rotate by 90 degrees is predetermined, when loading the image data into the memory, the address to be loaded is devised so that a plurality of pixels can be read simultaneously in byte units or word units. If it is stored in the memory like this, the reading can be performed very efficiently.

【0050】前記では、右方向に90度回転させて読み
出す場合には、まず図12(a)の操作順に画像を走査
してこの順にイメージデータをメモリに格納し、これを
図12(b)の順番で読み出すと、右方向に90度回転
した画像が得られることを述べた。したがって、逆に図
12(b)の読み出し順にイメージデータをメモリに格
納しておけば、単にアドレス順に読み出すことでバイト
単位或いはワード単位で効率よく読み出しが行えること
になる。
In the above description, when the image is read out by rotating it by 90 degrees to the right, first, the image is scanned in the operation order of FIG. 12A, the image data is stored in the memory in this order, and this is stored in FIG. 12B. It was described that the image rotated 90 degrees to the right can be obtained by reading in the order of. Therefore, conversely, if the image data is stored in the memory in the reading order of FIG. 12B, the reading can be efficiently performed in the byte unit or the word unit simply by reading in the address order.

【0051】ここで、図12(b)の読み出し順〜
〜に画素データを格納し、これをまとめて1ワードで4
画素読み出す例を図13に示す。図13(a)の各枠内
の上下段に示す番地の説明を図13(b)に示してい
る。この図13(b)の上段はメモリ番地であり、左側
がX方向のX番地、右側がY方向のY番地を示してい
る。また、下段は図12(b)に示す画素の読み出し時
のX番地及びY番地を示している。図12(a)に示す
の番地はX=0でYが最大(全てのビットが1)の番
地であり、これは0を反転したものに等しいので(00
b )で表示している(以下、Nb はNに対する1の補数
を表す)。さらにの次の画素番地は(01b ),次の
画素番地は(02b )・・・・(02)(01)(0
0)(10b )(11b )・・・で表される。
Here, the reading order of FIG.
Pixel data is stored in to
An example of reading pixels is shown in FIG. An explanation of the addresses shown in the upper and lower rows in each frame of FIG. 13A is shown in FIG. 13B. The upper part of FIG. 13B shows a memory address, the left side shows the X address in the X direction, and the right side shows the Y address in the Y direction. The lower part shows the X and Y addresses when the pixel shown in FIG. 12B is read. The address shown in FIG. 12 (a) is the address where X = 0 and Y is the maximum (all bits are 1), which is equal to the inverted 0 (00
b ) (hereinafter, N b represents a one's complement to N). Further, the next pixel address is (01 b ), the next pixel address is (02 b ) ... (02) (01) (0
0) (10 b ) (11 b ) ...

【0052】図13(a)の枠の上段はRAMの読み出
し番地を示す。これは図12(a)に示す画素の走査順
番に等しい。図13の上段と下段の関係はX番地とY番
地とを交換し、1の補数をとったものである。
The upper part of the frame in FIG. 13A shows the read address of the RAM. This is equivalent to the pixel scanning order shown in FIG. The relationship between the upper part and the lower part of FIG. 13 is that the X address and the Y address are exchanged and the complement of 1 is taken.

【0053】図12(a)の(00)の画素は図13
(a)の(0b 0)番地に格納し、次の画素(10)は
(0b 1)番地に格納、次の画素(20)は(0b 2)
番地に格納し、以下同様にして全ての画素を格納する。
これらの格納手段は、図6におけるSW3,SW4及び
XOR0,XOR1で実現される。そして、画素を読み
出す場合には、図6でM0,M1を0,1に設定してお
けば、RAM0,〜RAM3が同時に読み出され、4画
素が1ワードのデータとしてDBUS15bに送られ
る。
The pixel (00) in FIG. 12A is shown in FIG.
It is stored in the address (0 b 0) of (a), the next pixel (10) is stored in the address (0 b 1), and the next pixel (20) is stored in the address (0 b 2).
All the pixels are stored in the same way as below.
These storage means are realized by SW3, SW4 and XOR0, XOR1 in FIG. Then, when reading out pixels, if M0 and M1 are set to 0 and 1 in FIG. 6, RAM0 to RAM3 are read out simultaneously and 4 pixels are sent to the DBUS 15b as 1-word data.

【0054】以上説明したように、本実施例に係るイメ
ージデータ処理装置を用いれば、通信制御等の処理を行
いながら同時にイメージデータをメモリに取り込み表示
するようなマルチタスクを行う場合であっても、イメー
ジデータの取込が他の処理に影響を与えることがない。
したがって、多量のイメージデータを取り込む際のCP
U部の多重処理能力の低下を招くことがなくメモリ処理
効率が高くなるので、画像処理時のCPUの負荷が軽減
され処理能力不足に陥り誤動作を招いたりすることがな
くなるといった効果がある。また、原画の画像データを
読み込みこれを90度回転させて表示する場合に、ハー
ド手段を用いて90度の回転を実現し、また同時に4画
素或いは2画素の複数の画素データを読み出すことがで
きるので、画面表示に要する時間が短縮できるといった
効果がある。
As described above, by using the image data processing apparatus according to the present embodiment, even when performing multitasking such that image data is simultaneously taken into the memory and displayed while performing processing such as communication control. , Capture of image data does not affect other processing.
Therefore, CP when capturing a large amount of image data
Since the memory processing efficiency is increased without lowering the multiprocessing capacity of the U unit, there is an effect that the load of the CPU at the time of image processing is reduced, the processing capacity becomes insufficient, and a malfunction does not occur. When the original image data is read and rotated by 90 degrees for display, 90 degrees rotation can be realized by using a hardware means, and a plurality of pixel data of 4 pixels or 2 pixels can be read at the same time. Therefore, there is an effect that the time required for screen display can be shortened.

【0055】[0055]

【発明の効果】以上の技術的課題を解決するために、本
発明の第1の手段は、イメージデータ処理装置に、画像
データを格納し、メモリ部2とは独立してバス5に接続
されるイメージメモリ部6と、上記イメージ読取部1で
読取った画像データをイメージメモリ部6に格納すると
きにはこのイメージメモリ部6をバス5から切り離すバ
ススイッチ部7とを設けた構成としたから、CPU部3
がホストコンピュータとの通信制御等の処理と並行して
イメージ読取部1で読み取った画像データの格納の処理
を行う場合であっても、画像データの格納中、CPU部
3はバス5を介して自由にメモリ部2を参照できる。こ
のため、通信制御等の処理をそのまま継続することがで
き、イメージデータの取込処理が他の処理に影響を与え
ることがないので、イメージ処理時のCPU部の負荷を
軽くすることができ、処理能力不足に陥り誤動作を招い
たりすることがなくなり、有効に並行処理が行えるとい
った効果を奏する。
In order to solve the above technical problems, the first means of the present invention stores image data in the image data processing device and is connected to the bus 5 independently of the memory unit 2. The image memory unit 6 and the bus switch unit 7 for disconnecting the image memory unit 6 from the bus 5 when storing the image data read by the image reading unit 1 in the image memory unit 6 are provided. Part 3
Even when performing the processing of storing the image data read by the image reading unit 1 in parallel with the processing of communication control with the host computer, the CPU unit 3 via the bus 5 during the storage of the image data. The memory unit 2 can be referred to freely. Therefore, the processing such as communication control can be continued as it is, and the processing of capturing the image data does not affect other processing, so that the load on the CPU unit at the time of image processing can be reduced. It is possible to effectively perform parallel processing without causing a malfunction due to insufficient processing capacity.

【0056】本発明の第2の手段は、読取り時の画素の
位置をX軸及びY軸からなる座標としてとらえて、X座
標に対応するX軸アドレス部8とY座標に対応するY軸
アドレス部9とを設け、画素データを格納するときに
は、X軸アドレス部8、Y軸アドレス部9の順にアドレ
スを更新してこれらの両アドレス部で指定されるアドレ
スに書き込み、画素データを読み出すときには、X軸ア
ドレス部8又はY軸アドレス部9の出力端に、ここから
出力されるアドレス値の1の補数を求める反転部11を
設け、上記と逆にY軸アドレス部9を先に更新して両ア
ドレス部で指定されるアドレスから読出すようにし、ハ
ード的に画像の回転の処理を行っているので、画像デー
タを回転させる場合にCPU部3の負荷が軽減できる。
The second means of the present invention regards the position of the pixel at the time of reading as the coordinates consisting of the X axis and the Y axis, and determines the X axis address portion 8 corresponding to the X coordinate and the Y axis address corresponding to the Y coordinate. When the pixel data is stored, the X-axis address section 8 and the Y-axis address section 9 are updated in order to write to the addresses designated by these two address sections, and when the pixel data is read out, At the output end of the X-axis address section 8 or the Y-axis address section 9, an inverting section 11 for obtaining the one's complement of the address value output from this is provided, and the Y-axis address section 9 is updated first, contrary to the above. Since the image rotation processing is performed by hardware by reading from the addresses specified by both address sections, the load on the CPU section 3 can be reduced when rotating the image data.

【0057】また、本発明の第3の手段は、読取り時の
画素の位置をX軸及びY軸からなる座標としてとらえ
て、X座標に対応するX軸アドレス部8とY座標に対応
するY軸アドレス部9とを設け、画素データを格納する
ときにはX軸アドレス部8又はY軸アドレス部9の出力
端に、ここから出力されるアドレス値の1の補数をとる
反転部11を設け、Y軸アドレス部9、X軸アドレス部
9の順にアドレスを更新して画素を書き込み、画素デー
タを読み出すときには、複数画素データをバス5に出力
するアドレスデコード部13を設けて、下位アドレスか
ら順番に画素データを読出すようにしたから、画像を回
転させ表示等を行う処理が高速に行えるので効果的であ
る。
The third means of the present invention regards the position of the pixel at the time of reading as the coordinates consisting of the X axis and the Y axis, and the X axis address part 8 corresponding to the X coordinate and the Y axis corresponding to the Y coordinate. An axis address section 9 is provided, and when storing pixel data, an inverting section 11 for taking the one's complement of the address value output from this is provided at the output end of the X axis address section 8 or the Y axis address section 9, and When the pixels are written by updating the addresses in the order of the axis address unit 9 and the X-axis address unit 9 and the pixel data is read, an address decoding unit 13 that outputs a plurality of pixel data to the bus 5 is provided, and the pixels are sequentially arranged from the lower address. Since the data is read out, the processing of rotating the image and displaying the image can be performed at high speed, which is effective.

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

【図1】本発明の第1の手段に係る原理構成図である。FIG. 1 is a principle configuration diagram according to a first means of the present invention.

【図2】本発明の第2の手段に係る原理構成図である。FIG. 2 is a principle configuration diagram according to a second means of the present invention.

【図3】本発明の第3の手段に係る原理構成図である。FIG. 3 is a principle configuration diagram according to a third means of the present invention.

【図4】本発明の実施例に係るイメージデータ処理装置
の基本ブロック図である。
FIG. 4 is a basic block diagram of an image data processing device according to an embodiment of the present invention.

【図5】本発明の実施例に係るイメージメモリ部の概略
を示すブロック図である。
FIG. 5 is a block diagram showing an outline of an image memory unit according to an embodiment of the present invention.

【図6】本発明の実施例に係るイメージメモリ部の詳細
なブロック図である。
FIG. 6 is a detailed block diagram of an image memory unit according to an exemplary embodiment of the present invention.

【図7】図6に示すDCTLの動作を示す論理図であ
る。
FIG. 7 is a logic diagram showing an operation of the DCTL shown in FIG.

【図8】図6に示すSW3及びSW4の接続の一例であ
る。
8 is an example of a connection of SW3 and SW4 shown in FIG.

【図9】図6に示すRAM0,〜RAM3に格納される
画素の順番を示す図である。
9 is a diagram showing the order of pixels stored in RAM0 to RAM3 shown in FIG.

【図10】実施例に係り画像を右方向に90度回転させ
る場合の説明図である。
FIG. 10 is an explanatory diagram of a case where an image is rotated 90 degrees rightward according to the embodiment.

【図11】実施例に係り画像を左方向に90度回転させ
る場合の説明図である。
FIG. 11 is an explanatory diagram of a case where an image is rotated 90 degrees leftward according to the embodiment.

【図12】実施例に係り画像の操作順番を示す図であ
る。
FIG. 12 is a diagram showing an operation sequence of images according to the embodiment.

【図13】実施例に係り画像を右方向に90度回転させ
る場合の画素座標を示す図である。
FIG. 13 is a diagram showing pixel coordinates when an image is rotated 90 degrees rightward according to the embodiment.

【図14】従来例に係るイメージデータ処理装置の基本
ブロック図である。
FIG. 14 is a basic block diagram of an image data processing device according to a conventional example.

【図15】従来例に係るイメージデータ処理装置のメモ
リサイクルを示す図である。
FIG. 15 is a diagram showing a memory cycle of an image data processing device according to a conventional example.

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

1 イメージ読取部 2 メモリ部 3 CPU部 5 バス 6 イメージメモリ部 7 バススイッチ部 8 X軸アドレス部 9 Y軸アドレス部 11 反転部 13 アドレスデコード部 1 image reading unit 2 memory unit 3 CPU unit 5 bus 6 image memory unit 7 bus switch unit 8 X-axis address unit 9 Y-axis address unit 11 inversion unit 13 address decoding unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 原画を走査して画像を1画素単位に読み
取り画像データを作成するイメージ読取部(1)と、 ホストコンピュータとの通信制御等の処理と並行して、
上記イメージ読取部(1)で読み取った画像データの格
納等の処理を行うCPU部(3)と、 データ及び制御プログラム等が格納されるメモリ部
(2)と、 このCPU部(3)と上記メモリ部(2)との間のデー
タ転送を行うバス(5)とを有するイメージデータ処理
装置において、 上記画像データを格納し、上記メモリ部(2)とは独立
してバス(5)に接続されるイメージメモリ部(6)
と、 上記イメージ読取部(1)で読取った画像データをイメ
ージメモリ部(6)に格納するときにはこのイメージメ
モリ部(6)をバス(5)から切り離すバススイッチ部
(7)とを設けたことを特徴とするイメージデータ処理
装置。
1. An image reading unit (1) that scans an original image to read the image in pixel units to create image data, and a process such as communication control with a host computer, in parallel with each other.
A CPU unit (3) for performing processing such as storage of image data read by the image reading unit (1), a memory unit (2) for storing data, control programs and the like, the CPU unit (3) and the above An image data processing device having a bus (5) for transferring data to and from a memory section (2), storing the image data, and connecting to the bus (5) independently of the memory section (2). Image memory unit (6)
And a bus switch section (7) for disconnecting the image memory section (6) from the bus (5) when storing the image data read by the image reading section (1) in the image memory section (6). An image data processing device characterized by:
【請求項2】 読取り時の画素の位置をX軸及びY軸か
らなる座標としてとらえ、上記イメージメモリ部(6)
に格納する画素データのアドレスをこの座標に対応さ
せ、X座標に対応するX軸アドレス部(8)とY座標に
対応するY軸アドレス部(9)とを設けて、この両アド
レス部で画素データの格納アドレスを指定し、 イメージメモリ部(6)に画素データを格納するときに
は、X軸アドレス部(8)、Y軸アドレス部(9)の順
にアドレスを更新してこれらの両アドレス部で指定され
るアドレスに書き込み、 画素データを読み出すときには、X軸アドレス部(8)
又はY軸アドレス部(9)の出力端に、ここから出力さ
れるアドレス値の1の補数を求める反転部(11)を設
け、上記と逆にY軸アドレス部(9)を先に更新してこ
れらの両アドレス部で指定されるアドレスから読出すよ
うにした請求項1記載のイメージデータ処理装置。
2. The image memory unit (6), wherein the position of a pixel at the time of reading is regarded as a coordinate composed of an X axis and a Y axis.
The address of the pixel data stored in is associated with this coordinate, and an X-axis address part (8) corresponding to the X-coordinate and a Y-axis address part (9) corresponding to the Y-coordinate are provided. When the data storage address is designated and the pixel data is stored in the image memory section (6), the address is updated in the order of the X-axis address section (8) and the Y-axis address section (9), and both of these address sections are updated. When writing to specified address and reading pixel data, X-axis address part (8)
Alternatively, at the output end of the Y-axis address section (9), an inversion section (11) for obtaining the one's complement of the address value output from this is provided, and the Y-axis address section (9) is updated first, contrary to the above. 2. The image data processing apparatus according to claim 1, wherein the image data processing apparatus reads out from an address designated by both of these address sections.
【請求項3】 画素を原画のX軸及びY軸からなる座標
としてとらえ、上記イメージメモリ部(6)に格納する
画素データのアドレスをこの座標に対応させ、X座標に
対応するアドレスを指定するX軸アドレス部(8)と、
上記Y座標に対応するアドレスを指定するY軸アドレス
部(9)とを設けると共に、イメージメモリ部(6)の
アドレス値の下位ビットをX軸アドレス部(8)、又上
位ビットをY軸アドレス部(9)にもたせ、この両アド
レス部で画素データの格納アドレスを指定し、 イメージメモリ部(6)に画素データを格納するときに
は、X軸アドレス部(8)又はY軸アドレス部(9)の
出力端に、ここから出力されるアドレス値の1の補数を
求める反転部(11)を設け、Y軸アドレス部(9)、
X軸アドレス部(8)の順にアドレスを更新してこれら
の両アドレス部で指定されるアドレスに書き込み、 画素データを読み出すときには、順に更新されるアドレ
ス指定で、連続する複数のアドレスに格納されている画
素データを同時にバス(5)に出力するアドレスデコー
ド部(13)を設けて、下位アドレスから順番に画素デ
ータを読出す請求項1記載のイメージデータ処理装置。
3. A pixel is regarded as a coordinate composed of an X axis and a Y axis of an original image, an address of pixel data stored in the image memory unit (6) is made to correspond to this coordinate, and an address corresponding to the X coordinate is designated. X-axis address section (8),
A Y-axis address section (9) for designating an address corresponding to the Y coordinate is provided, and the lower bit of the address value of the image memory section (6) is the X-axis address section (8), and the upper bit is the Y-axis address. When the pixel data storage address is designated by the both address parts and the pixel data is stored in the image memory part (6), the X-axis address part (8) or the Y-axis address part (9) is given to the part (9). An inverting section (11) for obtaining the one's complement of the address value output from the Y axis address section (9),
When the address is updated in the order of the X-axis address section (8) and written to the addresses specified by these two address sections, and when the pixel data is read out, it is stored in a plurality of consecutive addresses by the address specification that is updated in order. The image data processing device according to claim 1, further comprising an address decoding unit (13) for simultaneously outputting the pixel data stored in the bus (5) to read the pixel data in order from a lower address.
JP11930492A 1992-05-12 1992-05-12 Image data processor Withdrawn JPH05314247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11930492A JPH05314247A (en) 1992-05-12 1992-05-12 Image data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11930492A JPH05314247A (en) 1992-05-12 1992-05-12 Image data processor

Publications (1)

Publication Number Publication Date
JPH05314247A true JPH05314247A (en) 1993-11-26

Family

ID=14758114

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11930492A Withdrawn JPH05314247A (en) 1992-05-12 1992-05-12 Image data processor

Country Status (1)

Country Link
JP (1) JPH05314247A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3538044A1 (en) * 1984-10-26 1986-04-30 Nikkei Kako K.K., Tokio/Tokyo Process for the manufacture of refractory aluminium oxynitride

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3538044A1 (en) * 1984-10-26 1986-04-30 Nikkei Kako K.K., Tokio/Tokyo Process for the manufacture of refractory aluminium oxynitride

Similar Documents

Publication Publication Date Title
US7333097B2 (en) Display apparatus and method capable of rotating an image
US5940087A (en) Graphic processing apparatus and method
JPS62166391A (en) Cursor controller
JPS62173509A (en) Picture display device
JPH05314247A (en) Image data processor
EP0245504A1 (en) Image processor
JPS6267632A (en) Method and apparatus for transferring data to display unit from memory
JPH07327116A (en) Image input output controller
JP2753349B2 (en) Arbitrary angle rotation image data input / output method, input / output circuit thereof, and electronic file device using the same
JPH10307576A (en) Image display device
JPH0563959A (en) Method and device for processing picture
JPH0844855A (en) Image filing device and image data transfer method
JPH06176141A (en) Data output device and data rotation method of data output device
JP2000181440A (en) Display device
JPS60144790A (en) Graphic display unit
JPH0520450A (en) Picture processor
JPH06295335A (en) Picture data storage device
JPH07307895A (en) Still image display device and its operation panel
JPS61174592A (en) Image data display unit
JPS63184878A (en) Picture processor
JPS59200293A (en) Image reduction/enlargement apparatus
JPH06243212A (en) Area designating method
JPH0497390A (en) Displaying device
JPH1026973A (en) Display device
JP2004354747A (en) Image display device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990803