JPS63168785A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPS63168785A
JPS63168785A JP123987A JP123987A JPS63168785A JP S63168785 A JPS63168785 A JP S63168785A JP 123987 A JP123987 A JP 123987A JP 123987 A JP123987 A JP 123987A JP S63168785 A JPS63168785 A JP S63168785A
Authority
JP
Japan
Prior art keywords
data
address
processing
image
processed
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
JP123987A
Other languages
Japanese (ja)
Other versions
JP2537830B2 (en
Inventor
Chika Onodera
小野寺 千香
Katsura Kawakami
桂 川上
Shigeo Shimazaki
島崎 成夫
Satoru Takayama
高山 哲
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 JP62001239A priority Critical patent/JP2537830B2/en
Priority to US07/137,028 priority patent/US4860109A/en
Publication of JPS63168785A publication Critical patent/JPS63168785A/en
Application granted granted Critical
Publication of JP2537830B2 publication Critical patent/JP2537830B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To simplify the structure of a data processing means by adding boundary information to an address of the boundary of a processing area by an address generating means, transferring to a picture storing means and transferring data and the boundary information synchronously to the data processing means from the picture storing means at the time of reading picture data by the data processing means. CONSTITUTION:A first boundary information means 18 for transferring the boundary information of the processing area between the address generating means 101 and the picture storing means 104, 106, 108, and a second boundary information transferring means 19 for transferring the boundary information of the processing area between the picture storing means 104, 106, 108 and picture processing means 103, 105, 107 are provided. Namely, when the address generating means 101 generates the address of the data to be processed, information indicating whether the data to be processed is the boundary of an area to be processed or not is transferred to the picture storing means 104, 106, 108 synchronously therewith by the address generating means 101 and when the picture processing means 103, 105, 107 read the data to be processed from the picture storing means 104, 106, 108, the information indicating whether the data to be processed is the boundary of the area to be processed or not is transferred to the picture processing means 103, 105, 107 from the picture storing means 104, 106, 108.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はデータ処理部の構成を簡素化できる画像処理装
置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to an image processing device that can simplify the configuration of a data processing section.

従来の技術 最近、記憶容量の増加にともない、コード化されていな
い画像を扱う分野が急速に発展しつつある。
2. Description of the Related Art Recently, as storage capacity increases, the field of handling uncoded images is rapidly developing.

第4図は画像処理装置の従来例のブロック図である。4
01はアドレス発生部、402は処理内容のデータを格
納するプログラムメモリである0両者はアドレス線41
、及びデータ線42によ多接続されている。403はデ
ータ処理部で、画像データを格納している画像記憶部4
04内の画像データを処理している。データ処理部40
3と画像記憶部404はデータ線44によ多接続されて
いる。同様にデータ処理部405は、画像記憶部406
内の画像データを処理する。データ処理部405と画像
記憶部406は、データ線45により接続されている。
FIG. 4 is a block diagram of a conventional example of an image processing device. 4
01 is an address generation unit, 402 is a program memory that stores processing content data, and 0 both are connected to the address line 41.
, and data lines 42. 403 is a data processing unit; an image storage unit 4 that stores image data;
The image data in 04 is being processed. Data processing section 40
3 and the image storage section 404 are connected to a data line 44. Similarly, the data processing unit 405
Process the image data within. The data processing section 405 and the image storage section 406 are connected by a data line 45.

同様にデータ処理部407は、画像記憶部408内の画
像データを処理する。データ処理部407と画像記憶部
408は、データ線46により接続されている。47は
制御バスである。このバスは画像記憶部・データ処理部
に対し共通に供給され、アドレスバス上の情報が原画用
アドレスであるかまたは結果画用アドレスであるかのい
ずれかを表示する信号、読み出しアドレスであるかまた
は書き込みアドレスであるかのいずれかを表示する信号
、及び同期信号からなる。
Similarly, the data processing unit 407 processes image data in the image storage unit 408. The data processing section 407 and the image storage section 408 are connected by a data line 46. 47 is a control bus. This bus is commonly supplied to the image storage unit and data processing unit, and is a signal indicating whether the information on the address bus is an address for the original image or an address for the result image, or a read address. or a write address, and a synchronization signal.

一連の画像記憶部404.406.408とデータ処理
部403.405.407はこの信号に基づいて動作す
る。尚、この制御信号はアドレス発生に同期して送出さ
れる。
A series of image storage units 404, 406, 408 and data processing units 403, 405, 407 operate based on this signal. Note that this control signal is sent out in synchronization with address generation.

この装置は次のように動作する。This device operates as follows.

アドレス発生部401はアドレス線41を介し、プログ
ラムメモリ402に対して実行すべき命令のアドレスを
送出する。この結果、プログラムメモリ402から実行
すべき命令がデータ線42を介して出力され、このデー
タはアドレス発生部401、データ処理部、403.4
05及び407に同時に転送される。
The address generation unit 401 sends the address of the instruction to be executed to the program memory 402 via the address line 41. As a result, an instruction to be executed is output from the program memory 402 via the data line 42, and this data is sent to the address generator 401, the data processor 403.
05 and 407 at the same time.

アドレス発生部401は、画像記憶部404.406.
408に格納されている画像のうち処理対象となる領域
のアドレスを発生し、アドレス線43を介して画像記憶
部404.406及び408に送出する。データ処理部
403は、画像記憶部404からデータ線44を介して
アドレスに応じた画像データを受信し、前記実行命令に
より指示された処理を行い、結果画像データを作成する
。同様にデータ処理部405.407は、画像記憶部4
06.408からデータ線45.46を介して処理すべ
き画像データを受信し、403に於ける処理と同一の処
理を行ない、結果画像データを得る。
The address generation unit 401 includes image storage units 404, 406.
It generates an address for a region to be processed in the image stored in 408 and sends it to image storage units 404, 406 and 408 via address line 43. The data processing unit 403 receives image data corresponding to the address from the image storage unit 404 via the data line 44, performs processing instructed by the execution command, and creates resultant image data. Similarly, the data processing units 405 and 407 include the image storage unit 4
The image data to be processed is received from 06.408 via the data line 45.46, and the same processing as in 403 is performed to obtain the resulting image data.

上記の結果画像データは、アドレス発生部401から出
力される結果画像を格納すべき領域のアドレスに同期し
て、画像記憶部404.406.408に書き込まれる
。上記のような方式は、アドレス発生部とデータ処理部
を分割し独立させた方式である0 この方式は画像記憶部に同一のアドレス空間をもたせる
ことによシ、一つのアドレス発生部に対し、複数個のデ
ータ処理部を付加することを可能とする。尚、画像記憶
部は一般にはピントマツプメモリと呼ばれるもので、説
明の簡単のために1ビツトが一画素に対し、水平方向で
は右方に、垂直方向では下方にアドレスが増加するもの
とする。
The above result image data is written to the image storage units 404, 406, and 408 in synchronization with the address of the area where the result image output from the address generation unit 401 is to be stored. The above method is a method in which the address generation section and the data processing section are separated and made independent. This method allows the image storage section to have the same address space, so that one address generation section can be It is possible to add multiple data processing units. The image storage section is generally called a focus map memory, and for ease of explanation, it is assumed that one bit corresponds to one pixel, and the address increases to the right in the horizontal direction and to the bottom in the vertical direction.

次に第4図の従来の装置により、画像データを処理する
場合の更に詳しい動作を第5図と第6図、第7図を用い
て説明する。
Next, more detailed operations when image data is processed by the conventional apparatus shown in FIG. 4 will be explained with reference to FIGS. 5, 6, and 7.

第5図は、画像記憶部に格納された原画データと処理内
容を説明するだめの図である。第5図において、51は
画像記憶部である。52は横がDXビット、縦がDy行
の領域で、左端を始点(BPS)。
FIG. 5 is a diagram for explaining the original image data stored in the image storage unit and the processing contents. In FIG. 5, 51 is an image storage section. 52 is an area with DX bits horizontally and Dy rows vertically, and the left end is the starting point (BPS).

右端を終点(B P E)  とする原画データの処理
領域である。原画データは4語にまたがっており、Dy
=9である場合を例にとって説明する。53a=eは語
境界である0又、画像記憶部51は16ビツトを1語と
し、語単位でアクセスされ、水平方向に1行ずつ処理さ
れるものとする。尚、始点(BPS)は1語内の任意の
ビットに位置することができ、始点を含む1語のアドレ
スと始点のビット位置はそれぞれADDR,BPSなる
変数に格納されているものとする。以上のような設定で
、原画の画素の中で値が1である要素の数を求めるとい
う処理をさせる場合のアドレス発生部とデータ処理部の
動作は次のようになる。
This is a processing area of original image data whose right end is the end point (B PE). The original image data spans four words, Dy
The case where =9 will be explained as an example. 53a=e is a word boundary, and the image storage unit 51 has 16 bits as one word, is accessed word by word, and is processed horizontally line by line. Note that the starting point (BPS) can be located at any bit within one word, and the address of one word including the starting point and the bit position of the starting point are stored in variables ADDR and BPS, respectively. With the above settings, the operations of the address generation section and the data processing section when performing a process of calculating the number of elements having a value of 1 among the pixels of the original image are as follows.

第6図は、上述の処理における従来のアドレス発生部の
動作のフローチャートである0601では水平方向の終
点を含まない語数(整数部)を求め、Nに格納する。6
02では終点のビット位置を求め、BPEに格納する。
FIG. 6 is a flowchart of the operation of the conventional address generation unit in the above-mentioned process. At 0601, the number of words (integer part) not including the end point in the horizontal direction is determined and stored in N. 6
In step 02, the end point bit position is found and stored in the BPE.

603ではアドレスを発生し、アクセスする。604で
は語数Nを1だけ減少する。
In step 603, an address is generated and accessed. In step 604, the number of words N is decreased by one.

605では語数NがOであるか否かを判定する。0でな
い場合には、606でアドレスレジスタが1だけ増加さ
れる。以上の動作を誤数NがOになるまで603〜60
6をくり返す。605でNがOである場合、607では
BPEが0であるか否かを判定する。
In 605, it is determined whether the number of words N is O. If not, the address register is incremented by one at 606. Repeat the above operations from 603 to 60 until the incorrect number N becomes O.
Repeat step 6. If N is O in 605, it is determined in 607 whether BPE is 0 or not.

BPEが0でない場合は、608でアドレスレジスタが
1だけ増加される0609ではこのアドレスに格納され
ている画像データを読み込む。610ではDyが1だけ
減少される。611ではDyが0であるか否かを判定す
る。DyがOでなければ、アドレスレジスタを次の行の
左端に設定し、全体の動作をDyが0になるまでくり返
す。
If BPE is not 0, the address register is incremented by 1 in 608 and the image data stored at this address is read in 0609. At 610, Dy is decreased by 1. In 611, it is determined whether Dy is 0 or not. If Dy is not 0, the address register is set to the left end of the next row and the whole operation is repeated until Dy becomes 0.

第5図における処理部52の第1行目の処理は、上記の
フローチャートの動作と次のように対応する。即ち、6
01.602は初期値の設定であるため、画像データの
缶口の処理とは直接関係はない。第1行目第1語目のア
ドレス発生は、603で行なわれる。604.605で
は、処理された語が右端の語であるか否かを判定してい
る。従って、606を径で、動作は再び603へ戻る。
The processing in the first line of the processing unit 52 in FIG. 5 corresponds to the operation in the above flowchart as follows. That is, 6
Since 01.602 is an initial value setting, it is not directly related to the processing of the can opening of the image data. Address generation for the first word on the first row is performed in step 603. At 604 and 605, it is determined whether the processed word is the rightmost word. Therefore, at 606, the operation returns to 603 again.

ここから第2語目のアドレス発生の処理へ移る。同様に
第3語目の処理に対する603.604の処理が実行さ
れる0この後、第4語が右端の語であるため、605の
判定では607へ進行する。右端の語のアドレスの発生
が608.609で行われ、611で最終行か否かが判
定される。この後、612に進むQここで第2行目の第
1語目のアドレス発生の処理に移る。以下、第2行目か
らの処理は上記第1行目の第1語目からの動作をくり返
し行っている。
From here, the process moves to the generation of the second word address. Similarly, the processes 603 and 604 for the third word are executed. After this, since the fourth word is the rightmost word, the process proceeds to 607 based on the determination in 605. The address of the rightmost word is generated at 608 and 609, and it is determined at 611 whether it is the last line. After this, the process proceeds to step 612 (Q). Here, the process moves to generation of the address for the first word in the second line. Hereinafter, the processing from the second line repeats the operation from the first word of the first line.

第7図は、上述の処理に対応した従来のデータ処理部の
フローチャートである。第7図において、701では水
平方向の終点を含まない語数(整数部)を求め、Nに格
納する。702では終点のピント位置を求め、BPEに
格納する。703ではBPSより左側のデータを破壊し
ないために、それに応じた左端の処理を行う。704で
は語数Nを1だけ減少する。705では語数Nが0であ
るか否かを判定する。Nが0でない場合には706に進
み、端点情報を含まない領域の中間データの処理をする
。以下、語数Nが0になるまで704〜706の動作を
”くり返す。705で語数Nが0であると判定されると
、更に707でBPEが0であるか否かを判定する。
FIG. 7 is a flowchart of a conventional data processing section corresponding to the above-described processing. In FIG. 7, in step 701, the number of words (integer part) not including the end point in the horizontal direction is determined and stored in N. In step 702, the end point focus position is determined and stored in the BPE. In step 703, in order not to destroy data on the left side of the BPS, corresponding processing is performed on the left end. In step 704, the number of words N is decreased by one. In 705, it is determined whether the number of words N is 0 or not. If N is not 0, the process proceeds to step 706, where intermediate data in areas that do not include end point information is processed. Thereafter, the operations 704 to 706 are repeated until the number of words N becomes 0. When it is determined in 705 that the number of words N is 0, it is further determined in 707 whether or not the BPE is 0.

BPEが0でない時は708に進み、708ではBPE
よシ右側のデータを破壊しないために、それに応じた右
端の処理を行う。709ではDyを1だけ減少する。7
10でDyがOであるか否かを判定する。以下、Dyが
0になるまで703〜710の処理をくシ返し行う。
If BPE is not 0, proceed to 708, and in 708 BPE
In order not to destroy the data on the right side, process the right side accordingly. In 709, Dy is decreased by 1. 7
In step 10, it is determined whether Dy is O or not. Thereafter, the processes 703 to 710 are repeated until Dy becomes 0.

以上の処理は、第5図における処理領域52の第1行目
の処理に対して、次のように対応する0初期設定の70
1.702の処理の後、ここから第1行目の第1語目の
データ処理に入る。この語の処理では、703.704
.705を経て終了する。次に、第2語目のデータ処理
に移る。この語の処理は706.704.7050作業
で構成される。第3語目の処理に於て、作業は706.
704.705を経て、707へ進行する。これは、7
05の判定に於て、次の語が右端の語であることが検出
できるからである。4語目の処理は、707.708.
709.710のように進行する。以上で、第1行の処
理を完結し、再び703から第2行目の処理が開始され
る。
The above processing corresponds to the processing in the first line of the processing area 52 in FIG. 5 as follows.
After the processing in step 1.702, data processing for the first word in the first row begins. In processing this word, 703.704
.. The process ends after 705. Next, the process moves to data processing for the second word. The processing of this word consists of 706.704.7050 operations. In processing the third word, the work is 706.
Proceed to 707 via 704 and 705. This is 7
This is because in the determination of 05, it can be detected that the next word is the rightmost word. The processing for the fourth word is 707.708.
Proceed like 709.710. With the above, the processing of the first line is completed, and the processing of the second line is started again from 703.

発明が解決しようとする直題点 上述のような従来の方式では、アドレス発生部とデータ
処理部の両者に、始点のピット位置(BPS)と横幅の
ビット数(Dx)を保持し、処理させねばならなかった
。アドレス発生部では、処理対象となる画像データの横
幅の語数の計算のために、また、データ処理部では、処
理の対象となる画像領域以外のデータを破壊しない処理
をするために、これらの変数が必要である。第6図、第
7図においては、601.602.701.702がこ
れにあたる。このような同一変数を2つ以上の場所に保
持させ、独立に演算に供するような従来の方式は、制御
が複雑になるという問題があった。
Direct Problems to be Solved by the Invention In the conventional system as described above, both the address generation section and the data processing section hold and process the starting pit position (BPS) and the number of width bits (Dx). I had to. The address generation section uses these variables to calculate the number of words for the width of the image data to be processed, and the data processing section uses these variables to perform processing that does not destroy data outside the image area to be processed. is necessary. In FIGS. 6 and 7, 601.602.701.702 corresponds to this. Conventional methods such as this, in which the same variable is held in two or more locations and subjected to independent calculations, have the problem of complicated control.

本発明は、従来技術の以上のような問題を解決するもの
で、制御をより簡単にすることを目的とするものである
The present invention solves the above-mentioned problems of the prior art, and aims to simplify control.

問題点を解決するための手段 本発明は、画像記憶手段から処理の対象となる領域の画
像データを読み書きするために必要なアドレスを発生す
るアドレス発生手段と、この画像データを処理し結果画
像を得る画像処理手段と、前記アドレス発生手段と前記
画像記憶手段との間で処理領域の境界情報を転送する第
1の境界情報手段と、前記画像記憶手段と前記画像処理
手段との間で処理領域の境界情報を転送する第2の境界
情報転送手段とを設けることにより、上記目的を達成す
るものである。
Means for Solving the Problems The present invention provides an address generation means for generating an address necessary for reading and writing image data in an area to be processed from an image storage means, and an address generating means for generating an address necessary for reading and writing image data in an area to be processed from an image storage means, and a method for processing this image data and generating a resultant image. first boundary information means for transferring boundary information of a processing area between the address generating means and the image storage means; The above object is achieved by providing a second boundary information transfer means for transferring the boundary information of the second boundary information.

作用 本発明は、前記アドレス発生手段が処理対象データのア
ドレスを発生する際に、これと同期して、前記処理対象
データが処理すべき領域の境界であるか否かの情報を前
記アドレス発生手段が前記画像記憶手段へ転送し、前記
画像処理手段が処理すべきデータを前記画像記憶手段か
ら読み込む際に、これらと同期して、前記処理すべきデ
ータが処理すべき領域の境界であるか否かの情報を前記
画像記憶手段から画像処理手段へ転送することによシ、
簡単な手順で処理を行なうようにしたものである。
Operation The present invention provides that when the address generation means generates an address of the data to be processed, the address generation means synchronously generates information as to whether or not the data to be processed is a boundary of an area to be processed. When the data to be processed is transferred to the image storage means and the image processing means reads data to be processed from the image storage means, it is synchronously determined whether the data to be processed is the boundary of the area to be processed or not. By transferring the information from the image storage means to the image processing means,
The process is performed using simple steps.

実施例 第1図は本発明の画像処理装置のブロック図である。1
01はアドレス及び境界情報を生成するアドレス発生部
、102は処理内容のプログラムを格納するプログラム
メモリである0両者はアドレス線11、及びデータ線1
2によシ接線されている0103はデータ処理部で、画
像データを格納している画像記憶部104内の画像デー
タを処理する。同様にデータ処理部105及び107は
、画像記憶部106及び108内の画像データをそれぞ
れ処理する。
Embodiment FIG. 1 is a block diagram of an image processing apparatus of the present invention. 1
01 is an address generation unit that generates addresses and boundary information, and 102 is a program memory that stores a program for processing contents.0 Both are an address line 11 and a data line 1.
0103, which is tangent to 2, is a data processing unit that processes image data in the image storage unit 104 that stores image data. Similarly, data processing units 105 and 107 process image data in image storage units 106 and 108, respectively.

アドレス発生部101と画像記憶部104.106.1
08はアドレス線13により接線されている。17は制
御バスである。このバス17はアドレス発生部101か
ら画像記憶部104.106.108に対し共通に供給
され、アドレスバス上の情報が原画用アドレスであるか
または結果画用アドレスであるかのいずれかを表示する
信号、読み出しアドレスであるかまたは書き込みアドレ
スであるかのいずれかを表示する信号、及び同期信号か
らなる。22、都、24は各データ処理部103.10
5.107から出力される制御信号で、読み出しまたは
書き込みの区別を行なうだめの信号である0この制御信
号はアドレス発生に同期して送出される。14.15及
び16はデータバスであり、画像記憶部104.106
.108とデータ処理部103.105.107とをそ
れぞれ接続する。信号線18.19.20.21は境界
情報用の経路である。
Address generation section 101 and image storage section 104.106.1
08 is tangentially connected to address line 13. 17 is a control bus. This bus 17 is commonly supplied from the address generation unit 101 to the image storage units 104, 106, and 108, and displays whether the information on the address bus is an address for an original image or an address for a result image. It consists of a signal, a signal indicating either a read address or a write address, and a synchronization signal. 22, Miyako, 24 each data processing unit 103.10
This control signal is output from 5.107 and is a signal for distinguishing between reading and writing.This control signal is sent out in synchronization with address generation. 14, 15 and 16 are data buses, and image storage units 104, 106
.. 108 and data processing units 103, 105, and 107, respectively. Signal lines 18.19.20.21 are paths for boundary information.

この装置は次のように動作する0 アドレス発生部101は、アドレス線41を介しプログ
ラムメモリ102に対して、実行すべき命令のアドレス
を送出する。この結果、プログラムメモ’J 102か
ら実行すべき命令がデータ線12を介して出力され、こ
のデータはアドレス発生部101、データ処理部103
.105及び107に同時に転送される。アドレス発生
部101は、画像記憶部104.106.108に格納
されている画像のうち処理対象となる領域のアドレスを
発生し、アドレス線13を介して、画像記憶部104.
106及び108に送出する。
This device operates as follows. The 0 address generating section 101 sends the address of the instruction to be executed to the program memory 102 via the address line 41. As a result, an instruction to be executed is output from the program memo 'J 102 via the data line 12, and this data is transferred to the address generation section 101 and the data processing section 103.
.. 105 and 107 at the same time. The address generating section 101 generates an address of an area to be processed among the images stored in the image storage sections 104, 106, and 108, and sends an address to the image storage section 104.104.
106 and 108.

このとき、送出したアドレスが処理領域の左端または右
端の語に対するものである場合には、アドレス発生部1
01は信号線18に特別の情報を出力する。即ち、送出
アドレスが左端、右端またはそれらのどちらでもない中
間の語のものである場合には、信号線18には、それぞ
れ10.01または00が出力される。この10及び0
1を以下それぞれ左端フラグ、及び右端フラグと呼ぶ。
At this time, if the sent address is for the leftmost or rightmost word of the processing area, the address generator 1
01 outputs special information to the signal line 18. That is, if the sending address is the left end, the right end, or an intermediate word that is neither of these, 10.01 or 00 is output to the signal line 18, respectively. This 10 and 0
1 will be hereinafter referred to as the left end flag and the right end flag, respectively.

また、両者を総称して境界フラグと呼ぶことにする。Furthermore, both of them will be collectively referred to as boundary flags.

画像記憶部104.106.108はアドレスと同時に
この境界フラグを受信し、アドレスと境界フラグとを対
応付けて保持する。この後、画像記憶部104.106
.108からデータ処理部103.105.107へ処
理すべきデータを転送する段階に於て、画像記憶部10
4.106.108はこのデータに対するアドレスに対
応付けられた境界フラグとこのデータとを同期して出力
し、処理すべきデータが処理領域の境界であるか否かを
データ処理部103.105.107に教示する。デー
タ処理部103は、画像記憶部104からデータバス1
5及び境界情報バス19を介してアドレスに応じた画像
データ及びデータに対応付けられた境界フラグを受信し
、前記実行命令により指示された処理を境界であるか否
かに応じて行い、結果画像データを得る。同様にデータ
処理部105.107は、それぞれ画像記憶部106.
108からデータバス15.16及び20.21を介し
て処理すべき画像データ及びデータに対応付けられた境
界フラグを受信し、データ処理部103に於ける処理と
同一の処理を行い、結果画像データを得る。
The image storage units 104, 106, and 108 receive this boundary flag at the same time as the address, and store the address and boundary flag in association with each other. After this, the image storage units 104 and 106
.. At the stage of transferring data to be processed from 108 to data processing units 103, 105, and 107, image storage unit 10
4.106.108 synchronously outputs the boundary flag associated with the address for this data and this data, and determines whether the data to be processed is at the boundary of the processing area or not. 107. The data processing unit 103 transfers data from the image storage unit 104 to the data bus 1.
5 and the boundary information bus 19, the image data corresponding to the address and the boundary flag associated with the data are received, and the processing instructed by the execution command is performed depending on whether it is a boundary or not, and the resulting image is Get data. Similarly, data processing units 105 and 107 respectively have image storage units 106 and 107.
The image data to be processed and the boundary flag associated with the data are received from 108 via data buses 15.16 and 20.21, and the same processing as that in the data processing unit 103 is performed, and the resulting image data get.

この結果得られた結果画像データは、前もってアドレス
発生部101から出力され画像記憶部104.106.
108に保持されていたところの結果画像を格納アドレ
スに書き込まれる。
The resultant image data obtained as a result is outputted in advance from the address generation section 101 and stored in the image storage sections 104, 106.
The resulting image held in 108 is written to the storage address.

次に本実施例の装置により、画像データを処理する場合
の更に詳しい動作を第5図と第2図、第3図を用いて説
明する。
Next, more detailed operations when processing image data by the apparatus of this embodiment will be explained using FIG. 5, FIG. 2, and FIG. 3.

第2図は上述の処理におけるアドレス発生部101の動
作のフローチャートである0201では水平方向の終点
を含まない語数(整数部)を求め、Nに格納する。20
2では終点のピット位置を求め、BPEに格納する。2
03ではアドレスと左端フラグを発生する。204では
メモリアクセスをする。205では語数Nを1だけ減少
する。206では語数Nが0であるか否かを判定する。
FIG. 2 is a flowchart of the operation of the address generation unit 101 in the above-described process. At 0201, the number of words (integer part) not including the end point in the horizontal direction is determined and stored in N. 20
In step 2, the end pit position is found and stored in the BPE. 2
At 03, an address and a left end flag are generated. At 204, memory access is performed. In step 205, the number of words N is decreased by one. In 206, it is determined whether the number of words N is 0 or not.

0でない場合には、207でアドレスレジスタが1だけ
増加される。208ではメモリアクセスする。以上の動
作を語数Nが0になるまで、204〜208をくり返す
。206でNが0である場合、209ではBPEが0で
あるか否かを判定する。 BPEがOでない場合は、2
10でアドレスレジスタが1だけ増加される。211で
はこのアドレスと右端フラグを発生する。212ではア
ドレスがメモリアクセスされる。213ではDyカ1だ
け減少される。214ではDyがOであるか否かを判定
する。Dyが0でなければ、215でアドレスレジスタ
を次の行の左端に設定し、全体の動作をDyが0になる
までくシ返す。
If not, the address register is incremented by one at 207. At 208, memory is accessed. The above operations are repeated from 204 to 208 until the number of words N becomes 0. If N is 0 in 206, it is determined in 209 whether BPE is 0 or not. If BPE is not O, 2
At 10, the address register is incremented by one. At step 211, this address and the right end flag are generated. At 212, the address is memory accessed. In 213, Dy is reduced by 1. In 214, it is determined whether Dy is O or not. If Dy is not 0, the address register is set to the left end of the next line in step 215, and the entire operation is repeated until Dy becomes 0.

第5図における処理領域52の第1行目の処理は、上記
のフローチャートの動作と次のように対応する。201
.202は初期値の設定であるため、画像データの缶詰
の処理とは直接関係ない。第1行目第1語目は左端であ
るので、第1語目のアドレス発生及び左端フラグの発生
203で行われる0204でメモリアクセスし、205
.206では、処理された語が右端であるか否かを判定
している。従って、207を経て、動作は208へ進行
する。ここから第2語目のアドレス発生の処理へ移る。
The processing in the first line of the processing area 52 in FIG. 5 corresponds to the operation in the above flowchart as follows. 201
.. Since 202 is an initial value setting, it is not directly related to the detailed processing of image data. Since the first word of the first line is at the left end, the memory is accessed at 0204, which is performed when the address of the first word is generated and the left end flag is generated at 203, and 205
.. At 206, it is determined whether the processed word is at the right end. Accordingly, via 207, operation proceeds to 208. From here, the process moves to the generation of the second word address.

同様に第3語目の処理に対する208.204.205
の処理が実行される。この後、第4語が右端の語である
ため、206の判定では209へ進行する0右端の語の
アドレス発生及び右端フラグ発生が210.211.2
12で行われ、214で最終行か否かが判定される。こ
の後、215に進む。ここで第2行目の第1語目のアド
レス発生の処理に移る。以下、第2行目からの処理は上
記第1行目の第1語目からの動作をくり返し行っている
Similarly, 208.204.205 for processing the third word.
processing is executed. After this, since the fourth word is the rightmost word, the determination at 206 is 210.211.2, which proceeds to 209.0 Address generation and rightmost flag generation for the rightmost word are 210.211.2.
12, and it is determined in 214 whether or not this is the last row. After this, the process proceeds to 215. Now, the process moves to generation of the address for the first word in the second line. Hereinafter, the processing from the second line repeats the operation from the first word of the first line.

第3図は、上述の処理に対応したデータ処理部103.
105、あるいは107のフローチャートである。第3
図において、301では入力した画像データに端点フラ
グが付加されているか否かを判定する。端点フラグが付
加されている場合には、302に進む。302では端点
フラグが左端フラグであるか否かを判定する。左端フラ
グである時には303に進み、303ではBPSより左
側のデータを破壊しないために、それに応じた左端の処
理を行なう0302で右端フラグである場合は、304
に進み、304ではBPEより右側のデータを破壊しな
いために、それに応じた右端の処理を行う。301で端
点フラグが付加されていない場合には、305に進み3
05では端点を含まない中間のデータ処理を行う。以下
、データを入力するたびに上記の動作をくシ返す。
FIG. 3 shows the data processing unit 103 that corresponds to the above-described processing.
105 or 107 is a flowchart. Third
In the figure, at 301, it is determined whether or not an end point flag is added to the input image data. If the end point flag has been added, the process advances to 302. In 302, it is determined whether the end point flag is the left end flag. If it is the left edge flag, proceed to 303, and in 303, in order to not destroy the data on the left side of the BPS, the left edge is processed accordingly.If it is the right edge flag in 0302, proceed to 304.
In step 304, in order not to destroy the data on the right side of the BPE, corresponding processing is performed on the right end. If the end point flag is not added in 301, proceed to 305 and proceed to 3.
In step 05, intermediate data processing that does not include endpoints is performed. From now on, repeat the above operation every time you input data.

以上の処理は、第5図における処理領域52の第1行目
の処理に対して、次のように対応する。
The above processing corresponds to the processing in the first line of the processing area 52 in FIG. 5 as follows.

第1行目の第1語は、左端の語であることは第5図より
あきらかである。従って、この語の処理は301.30
2.303を経て、再び301に戻る0ここから第2語
目のデータ処理に入る。この語は端点を含まない中間の
データであるから、301.305を経て、再び301
に戻る。ここから第3語目のデータ処理に入る。同様に
3語目も中間のデータであるから、301.305を経
て301に戻る0ここから第4語目の処理に入る。第4
語目は右端の語であるから、301.302.304を
経て再び、301に戻る。以上で、第1行の処理を完結
し、再び301から第2行目の処理が開始される。
It is clear from FIG. 5 that the first word in the first row is the leftmost word. Therefore, the processing for this word is 301.30
2. After 303, return to 301 again.0 From here, data processing for the second word begins. Since this word is intermediate data that does not include endpoints, it passes through 301.305 and then returns to 301.
Return to From here, data processing for the third word begins. Similarly, since the third word is also intermediate data, the process returns to 301 via 301 and 305. From here, processing for the fourth word begins. Fourth
Since the word is the rightmost word, it returns to 301 again via 301.302.304. With the above, the processing of the first line is completed, and the processing of the second line is started again from 301.

発明の効果 以上のように本発明は、アドレス発生手段が処理領域の
境界にあたるアドレスには境界情報を付加し、画像記憶
手段へ転送、データ処理手段が画像データを読み込む際
にデータと境界情報とが同期して、画像記憶手段からデ
ータ処理手段へ転送されることにより、データ処理手段
の構造を簡単にすることができる。即ち、データ処理手
段には、始点のビット位置(BPS)と横幅のビット数
(Dx)を保持し、処理させる必要がない。
Effects of the Invention As described above, in the present invention, the address generation means adds boundary information to the address corresponding to the boundary of the processing area, transfers it to the image storage means, and when the data processing means reads the image data, the data and the boundary information are combined. By synchronously transferring the data from the image storage means to the data processing means, the structure of the data processing means can be simplified. That is, there is no need for the data processing means to hold and process the starting point bit position (BPS) and the width bit number (Dx).

更に、アドレス発生手段から出力される境界情報は画像
記憶手段経由でデータ処理手段に転送されるため、アド
レス発生手段とデータ処理手段とは同期して動作する必
要がなく、高速で柔軟な処理を達成することができる。
Furthermore, since the boundary information output from the address generation means is transferred to the data processing means via the image storage means, the address generation means and the data processing means do not need to operate synchronously, allowing high-speed and flexible processing. can be achieved.

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

第1図は本発明の一実施例における画像処理装置のブロ
ック結線図、第2図は同装置の要部であるアドレス発生
部の動作フローチャート、第3図は同装置の要部である
データ処理部の動作フローチャート、第4図は従来の画
像処理装置のブロック結線図、第5図は従来例と本発明
の一実施例における画像記憶部に格納された原画データ
と処理内容を説明するだめの概念図、第6図は同装置の
要部であるアドレス発生部の動作フローチャート、第7
図は同装置の要部であるデータ処動部の動作フローチャ
ートである。 101・・・アドレス発生部、102・・・プログラム
メモリ、103.105.107・・・データ処理部、
104.106.108・・・画像記憶部、11.13
・・・アドレス線、12・・・データ線、14.15.
16・・・データバス、17・・・制御バス、18.1
9.20.21・・・境界情報用バス、22、乙、24
・・・制御信号用信号線。 代理人の氏名 弁理士  中 尾 敏 男 ほか1名第
1図 第2図 第 3 図 第4図 ・    40ど 第5図 l 第6図
FIG. 1 is a block diagram of an image processing device according to an embodiment of the present invention, FIG. 2 is an operation flowchart of an address generation section which is a main part of the device, and FIG. 3 is a data processing diagram which is a main part of the device. FIG. 4 is a block diagram of a conventional image processing device, and FIG. 5 is a flowchart for explaining the original image data stored in the image storage unit and processing contents in the conventional example and an embodiment of the present invention. A conceptual diagram, Fig. 6 is an operation flowchart of the address generation section, which is the main part of the device, and Fig. 7 is a conceptual diagram.
The figure is an operation flowchart of the data processing unit, which is the main part of the device. 101...Address generation unit, 102...Program memory, 103.105.107...Data processing unit,
104.106.108... Image storage unit, 11.13
. . . address line, 12 . . . data line, 14.15.
16...Data bus, 17...Control bus, 18.1
9.20.21...Boundary information bus, 22, Otsu, 24
...Signal line for control signals. Name of agent: Patent attorney Toshio Nakao and one other person Figure 1 Figure 2 Figure 3 Figure 4/40 Figure 5 Figure 6

Claims (1)

【特許請求の範囲】[Claims] 画像データを記憶する画像記憶手段と、処理の対象とな
る領域の前記画像データを読み書きするために必要なア
ドレスを発生するアドレス発生手段と、この画像データ
を処理し結果画像を得る画像処理手段と、前記アドレス
発生手段と前記画像記憶手段との間で処理領域の境界情
報を転送する第1の境界情報転送手段と、前記画像記憶
手段と前記画像処理手段との間で処理領域の境界情報を
転送する第2の境界情報転送手段とを有し、上記アドレ
ス発生手段が処理対象データのアドレスを発生する際に
、これと同期して前記処理対象データが処理すべき領域
の境界であるか否かの情報を前記アドレス発生手段が前
記画像記憶手段へ転送し、前記画像処理手段が処理すべ
きデータを前記画像記憶手段から読み込む際に、これと
同期して前記処理すべきデータが処理すべき領域の境界
であるか否かの情報を前記画像記憶手段から画像処理手
段へ転送する画像処理装置。
an image storage means for storing image data; an address generation means for generating an address necessary for reading and writing the image data in an area to be processed; and an image processing means for processing the image data and obtaining a resultant image. , first boundary information transfer means for transferring boundary information of a processing area between the address generation means and the image storage means; and a first boundary information transfer means for transferring boundary information of the processing area between the image storage means and the image processing means. and a second boundary information transfer means for transferring the data, and when the address generation means generates an address of the data to be processed, it synchronously determines whether or not the data to be processed is the boundary of the area to be processed. When the address generation means transfers the information to the image storage means and the image processing means reads the data to be processed from the image storage means, the data to be processed is synchronously transferred. An image processing device that transfers information as to whether or not it is a boundary between regions from the image storage means to the image processing means.
JP62001239A 1987-01-07 1987-01-07 Image processing device Expired - Fee Related JP2537830B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62001239A JP2537830B2 (en) 1987-01-07 1987-01-07 Image processing device
US07/137,028 US4860109A (en) 1987-01-07 1987-12-23 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62001239A JP2537830B2 (en) 1987-01-07 1987-01-07 Image processing device

Publications (2)

Publication Number Publication Date
JPS63168785A true JPS63168785A (en) 1988-07-12
JP2537830B2 JP2537830B2 (en) 1996-09-25

Family

ID=11495909

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62001239A Expired - Fee Related JP2537830B2 (en) 1987-01-07 1987-01-07 Image processing device

Country Status (1)

Country Link
JP (1) JP2537830B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5957379A (en) * 1982-09-27 1984-04-02 Fujitsu Ltd Memory device
JPS6014356A (en) * 1983-07-02 1985-01-24 Omron Tateisi Electronics Co Debug device
JPS60245062A (en) * 1984-05-18 1985-12-04 Matsushita Electric Ind Co Ltd Data transfer device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5957379A (en) * 1982-09-27 1984-04-02 Fujitsu Ltd Memory device
JPS6014356A (en) * 1983-07-02 1985-01-24 Omron Tateisi Electronics Co Debug device
JPS60245062A (en) * 1984-05-18 1985-12-04 Matsushita Electric Ind Co Ltd Data transfer device

Also Published As

Publication number Publication date
JP2537830B2 (en) 1996-09-25

Similar Documents

Publication Publication Date Title
JPH04338797A (en) Font memory access system
JPS63168785A (en) Picture processor
JP2502530B2 (en) Printer
JPS63168784A (en) Image processor
JPS63113725A (en) Picture information processor
JPS6362083A (en) Projection data generation system
JPS6249570A (en) Picture processor
JP4612352B2 (en) Labeling processing apparatus and labeling processing method
KR100195199B1 (en) Graphic controller using meta align mode destination addressing circuit
US6985624B2 (en) Image processing apparatus and its method
JP2867482B2 (en) Image processing device
JP2771350B2 (en) Image processing device
JPS6019258A (en) Memory
JPH01307877A (en) Picture data processing system
JPS63292377A (en) High-speed drawing system for horizontal line vector
JP3217815B2 (en) Address translation method
JPH0316374A (en) Calculation device of picture processing designation area information
JPS60263984A (en) Dot data development system
JPH04318891A (en) Graphic controller
JP2003195847A (en) Graphic processor
JPS63104187A (en) Area specification system
JPH07319761A (en) Picture processor
JPH03250379A (en) High speed processing system for image processor
JPS5851371A (en) Book processing system
JPH01233515A (en) Information processor

Legal Events

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