JPH03250379A - High speed processing system for image processor - Google Patents

High speed processing system for image processor

Info

Publication number
JPH03250379A
JPH03250379A JP2048437A JP4843790A JPH03250379A JP H03250379 A JPH03250379 A JP H03250379A JP 2048437 A JP2048437 A JP 2048437A JP 4843790 A JP4843790 A JP 4843790A JP H03250379 A JPH03250379 A JP H03250379A
Authority
JP
Japan
Prior art keywords
comparison
color information
section
image memory
image
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.)
Pending
Application number
JP2048437A
Other languages
Japanese (ja)
Inventor
Koji Soga
浩二 曽我
Shinji Tsutsumi
伸二 堤
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 JP2048437A priority Critical patent/JPH03250379A/en
Publication of JPH03250379A publication Critical patent/JPH03250379A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To perform the comparison arithmetic processing of the image information at a high speed by providing a comparison arithmetic part between a control part and an image memory part, comparing immediately an address designated by the control part in an image memory part with the color information read out of the image memory part, and outputting the result of the comparison to the control part. CONSTITUTION:A control part 2 designates an address of an image memory part 1 storing the desired image information to be compared and then reads out the color information. This color information is fetched to a comparison arithmetic part 4 for immediate comparison arithmetic. At the same time, the color information to be compared and set to a comparison register part 3 is fetched by the part 4. Thus the part 4 performs immediately the comparison between both color information. The result of the comparison is outputted to the part 2 as it is. Therefore the result of comparison is read out of the part 4 at the same time point when the part 2 usually designates and reads out the address of the part 1. Thus the comparison arithmetic processing of the image information is carried out at a high speed.

Description

【発明の詳細な説明】 〔概要〕 色情報等の画像情報が格納された画像メモリ部と、画像
メモリ部に格納された色情報を読み出し画像処理を行う
制御部とを有する画像処理装置に関して、 画像処理の高速化の要求に伴い、画像メモリに格納され
た色情報と比較対象の色情報とを比較し、当該比較結果
に基づき該当する個所の塗り潰し等の画像処理を高速に
行うことを目的として、比較対象の色情報が保持された
比較色レジスタ部と、画像メモリ部と制御部との間に設
けられ、制御部からのアドレス情報に基づいて画像メモ
リ部から読み出された色情報と、比較色レジスタ部で保
持された色情報とを取り込み比較し、当該比較された結
果を直ちに制御部に出力する比較演算部とを有する構成
である。
[Detailed Description of the Invention] [Summary] Regarding an image processing device having an image memory section storing image information such as color information, and a control section that reads out the color information stored in the image memory section and performs image processing, With the demand for faster image processing, the purpose is to compare the color information stored in the image memory with the color information of the comparison target, and perform image processing such as filling in the corresponding area at high speed based on the comparison results. A comparison color register section that holds color information to be compared, an image memory section, and a control section are provided between the color information read out from the image memory section based on address information from the control section. , and a comparison calculation unit that takes in and compares the color information held in the comparison color register unit, and immediately outputs the compared result to the control unit.

〔産業上の利用分野〕[Industrial application field]

本発明は、画像メモリに格納された色情報の画像処理装
置に係り、特に画像メモリの色情報を比較対象の色情報
と比較することは、ある色で囲まれた領域を判別して、
塗り潰し等を行う場合に必要になる。本発明では、比較
演算の処理を高速に行う画像処理装置の高速処理方式に
関する。
The present invention relates to an image processing device for color information stored in an image memory, and in particular, comparing color information in the image memory with color information to be compared involves determining an area surrounded by a certain color.
Necessary when performing fill-in, etc. The present invention relates to a high-speed processing method for an image processing device that performs comparison calculations at high speed.

〔従来の技術〕[Conventional technology]

従来、画像メモリに格納された色情報と比較対象の色情
報との比較を行う場合、第4図に示すように、画像情報
が格納された画像メモリ部41と、制御部42と、比較
部44とからなる構成を有していた。
Conventionally, when comparing color information stored in an image memory with color information to be compared, as shown in FIG. It had a configuration consisting of 44.

当該装置の動作として、画像メモリ部41に格納された
色情串間と比較対象の色情報とを比較する場合、まず制
御部42が画像メモリ部41から色情報を読み出す。次
に、当該読み出された色情報を比較部44に送り、続い
て比較部44において当該色情報と比較対象の色情報と
を比較する。続いて比較部44における比較結果を制御
部42が読み取るという複数のサイクルが必要であった
As an operation of the apparatus, when comparing the color information stored in the image memory section 41 with the color information to be compared, the control section 42 first reads out the color information from the image memory section 41. Next, the read color information is sent to the comparison section 44, and then the comparison section 44 compares the color information with the color information to be compared. Subsequently, a plurality of cycles were required in which the control unit 42 read the comparison results in the comparison unit 44.

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

ところで、従来の比較演算では、比較部に画像メモリの
データを送るサイクル、演算結果を読み出すサイクルが
必要であるため、色情報の比較演算には長時間必要にな
ってしまう問題があった。
By the way, in the conventional comparison calculation, a cycle of sending data from the image memory to the comparison section and a cycle of reading out the calculation result are required, so there is a problem that the comparison calculation of color information requires a long time.

そこで、本発明では画像情報の比較演算の処理をより高
速化する方式を提供することを目的としてなされたもの
である。
Therefore, the present invention has been made for the purpose of providing a method for speeding up the processing of image information comparison operations.

(課題を解決するための手段) 以上の技術的課題を解決するため本発明は第1図に示す
ように、色情報等の画像情報が格納された画像メモリ部
1と、画像メモリ部1に格納された色情報を読み出し画
像処理を行う制御部2とを有する画像処理装置において
、 比較対象の色情報が保持された比較色レジスタ部3と、
画像メモリ部1と制御部2との間に設けられ、制御部2
からのアドレス情報に基づいて画像メモリ部1から読み
出された色情報と、比較色レジスタ部3で保持された色
情報とを取り込み比較し、当該比較された結果を直ちに
制御部2に出力する比較演算部4とを有する。
(Means for Solving the Problems) In order to solve the above-mentioned technical problems, the present invention, as shown in FIG. In an image processing apparatus having a control unit 2 that reads stored color information and performs image processing, a comparison color register unit 3 that holds color information to be compared;
Provided between the image memory section 1 and the control section 2, the control section 2
The color information read out from the image memory section 1 based on the address information from the image memory section 1 and the color information held in the comparison color register section 3 are fetched and compared, and the compared result is immediately output to the control section 2. It has a comparison calculation section 4.

〔作用〕[Effect]

本発明に係る画像処理装置の高速処理方式は次のように
動作する。第1図に示すように、まず制御部2により、
比較したい画像情報が格納された画像メモリ部1のアド
レスを指定し色情報を読み出す。続いて、当該読み出さ
れた色情報を直ちに比較演算するためそのまま比較演算
部4に取り込む。同時に、比較演算部4では比較色レジ
スタ部3に設定された比較対象の色情報が取り込まれて
おり、直ちに前記で取り込まれた色情報との比較演算を
行なう。当該比較結果はそのまま制御部2に出力される
The high-speed processing method of the image processing apparatus according to the present invention operates as follows. As shown in FIG. 1, first, the control unit 2
Specify the address of the image memory section 1 where the image information to be compared is stored and read out the color information. Subsequently, the read color information is directly taken into the comparison calculation section 4 for comparison calculation. At the same time, the comparison calculation section 4 has taken in the color information to be compared set in the comparison color register section 3, and immediately performs a comparison calculation with the color information taken in above. The comparison result is output to the control section 2 as is.

したがって、制御部2が通常に画像メモリ部1のアドレ
スを指定して読み出す時点と同じ時点で比較演算部4か
ら比較結果が読み出され、1回の読み出しサイクルのみ
で希望する比較演算の処理が終了する。
Therefore, the comparison result is read out from the comparison operation section 4 at the same time as when the control section 2 normally specifies and reads out the address of the image memory section 1, and the desired comparison operation can be processed in only one read cycle. finish.

〔実施例〕〔Example〕

続いて、本発明の実施例につき説明する。 Next, examples of the present invention will be described.

第2図は、実施例に係るブロック図である。画像メモリ
部2工はそれぞれ色彩毎に分けて記憶された(各色彩毎
の記憶の単位を「プレーン」という)4枚のプレーン2
1a、21b、21c。
FIG. 2 is a block diagram according to the embodiment. The image memory section 2 has four planes 2 each stored separately for each color (the unit of memory for each color is called a "plane").
1a, 21b, 21c.

21dから構成されている。また、各プレーンのアドレ
スは互いに重なっており、−のアドレスで全ブレーン2
1a、21b、21c、21dの同一座標に係るデータ
が同時にアクセスできる。比較演算器24aは、画像メ
モリ部21の4枚のプレーン21a、21b、21c、
21dに格納された色情報と比較色レジスタ部23に保
持された色情報とを取り込み比較演算を行う。比較色レ
ジスタ部23では、比較対象の色情報の保持、及び比較
演算器24aの使用の有無をセレクタ部24bに指示す
る。ここで、比較演算器24aを使用しない場合は画像
メモリ部21から読み出されたデータはそのまま制御部
22に送られ、比較演算器24aを使用する場合は比較
演算器24aでの比較結果が制御部22に送られる。セ
レクタ部24bでは、比較色レジスタ部23からの制御
信号に基づき、画像メモリ部21からのデータかあるい
は比較演算器24aからのデータかのいずれかを選択し
制御部22に送出する。ここで、比較演算器24aとセ
レクタ部24bとは比較演算部4に該当する。制御部2
2では比較演算器24aの比較結果に基づき画像処理を
行う。
21d. Also, the addresses of each plane overlap each other, and a - address causes all the planes to
Data related to the same coordinates 1a, 21b, 21c, and 21d can be accessed simultaneously. The comparison calculator 24a includes four planes 21a, 21b, 21c, and 21c of the image memory section 21.
The color information stored in 21d and the color information held in the comparison color register section 23 are taken in and a comparison operation is performed. The comparison color register unit 23 instructs the selector unit 24b to hold the color information to be compared and to indicate whether or not to use the comparison calculator 24a. Here, when the comparator 24a is not used, the data read from the image memory unit 21 is sent as is to the control unit 22, and when the comparator 24a is used, the comparison result in the comparator 24a is controlled. The information is sent to Department 22. The selector section 24b selects either the data from the image memory section 21 or the data from the comparator 24a based on the control signal from the comparison color register section 23, and sends it to the control section 22. Here, the comparison calculation unit 24a and the selector unit 24b correspond to the comparison calculation unit 4. Control part 2
In step 2, image processing is performed based on the comparison result of the comparison calculator 24a.

続いて動作を説明する。本画像処理装置は画像メモリ部
2工に格納された画像データを順次読み出し、当該デー
タに含まれる色情報と比較対象の色情報とを比較演算し
その結果に基づき画像データの書き換え等の処理を行う
ものである。第2図に示すように、まず制御部22によ
り色情報が格納された画像メモリ部21のアドレスを指
定し、当該指定されたアドレスの全プレーン21a、2
1b、21C,21dの色情報を比較演算器24aに取
り込む。続いて、比較演算器24aにおいて、比較色レ
ジスタ部23から取り込まれている比較対象の色情報と
比較演算を行ない、当該比較結果を比較演算器24aか
らセレクタ部24bを介して制御部22に送る(ただし
、比較色レジスタ部23からの制御信号が比較演算器2
4aからの入力を選択している場合)。したがって、制
御部22が通常に画像メモリ21を読み出すタイミング
において比較演算器24aにおける比較結果が読み出さ
れる。そのため、1回の読み出しサイクルで比較演算結
果が取り込め画像処理が高速に行える。
Next, the operation will be explained. This image processing device sequentially reads the image data stored in the image memory section 2, compares and calculates the color information included in the data and the color information to be compared, and performs processing such as rewriting the image data based on the result. It is something to do. As shown in FIG. 2, first, the control unit 22 specifies the address of the image memory unit 21 in which color information is stored, and all planes 21a, 2 of the specified address are
The color information of 1b, 21C, and 21d is taken into the comparison calculator 24a. Next, in the comparison calculator 24a, a comparison operation is performed with the color information of the comparison target taken in from the comparison color register section 23, and the comparison result is sent from the comparison calculator 24a to the control section 22 via the selector section 24b. (However, the control signal from the comparison color register section 23 is
(If input from 4a is selected). Therefore, the comparison result in the comparison calculator 24a is read out at the timing when the control unit 22 normally reads out the image memory 21. Therefore, a comparison calculation result can be captured in one read cycle, and image processing can be performed at high speed.

次に、第3図に基づき比較演算器24aの詳細につき説
明する。画像メモリ部21は4枚のプレーン21a、2
1b、21c、21dで構成されており、−のアドレス
で4ブレーン21a。
Next, details of the comparison calculator 24a will be explained based on FIG. The image memory section 21 has four planes 21a, 2
It is composed of 1b, 21c, and 21d, and 4-brane 21a at the - address.

21b、21c、21d同時にアクセスでき、また−語
長は全て16ビツトである。ここでは、4プレーン構成
の画像メモリ部21に対して比較色レジスタ部23を1
つ有する場合の比較演算器24aの回路を示している。
21b, 21c, and 21d can be accessed simultaneously, and the word lengths are all 16 bits. Here, the comparison color register section 23 is set to 1 for the image memory section 21 having a 4-plane configuration.
The circuit of the comparator 24a in the case where the comparator 24a has two components is shown.

EOR(排他的論理和)回路24a1は各プレーン毎に
設けられており、同時に一語長16ビツト分の演算がで
きる。
An EOR (exclusive OR) circuit 24a1 is provided for each plane and can perform calculations for one word length of 16 bits at the same time.

NOR(否定論理和)回路24a2は一語長16ビツト
のビット単位毎に設けられており、各4ブレーンの同一
座標に係る4色彩が全て等しいかどうかの演算を行う。
A NOR (NOR) circuit 24a2 is provided for each bit of a word length of 16 bits, and performs a calculation to determine whether all four colors related to the same coordinates of each of the four branes are equal.

画像の同一座標の画素の色は各プレーンの4つの色彩の
組合せ(全16色)で表現でき、4つの色彩がすべて等
しい場合に色が一致したことになる。また、画像メモリ
部21のデータ出力は、lブレーン当たり一語長16ビ
ツトあり、4ブレ一ン同時に読み出せるから全部で64
本出力される。それらは、EOR回路24a1に各プレ
ーン単位に送られる。比較色レジスタ部23は、画像メ
モリ部21が4ブレーン有しているため4ビツト構成で
あり16色まで、設定することができる。画像メモリ部
21からEOR回路24a1に送られるデータはプレー
ン単位に分けられ、各EOR回路24a1では、−語長
16ビツト同時に比較色レジスタ部23が保持する比較
対象色とEOR演算される。EOR回路24a1の出力
側は比較した結果が等しい場合にLOWレベルになる。
The colors of pixels at the same coordinates in an image can be expressed by a combination of four colors of each plane (16 colors in total), and when all four colors are equal, the colors match. Furthermore, the data output from the image memory section 21 has a word length of 16 bits per l-brane, and 4 branes can be read out simultaneously, so a total of 64 bits can be output.
This is output. They are sent to the EOR circuit 24a1 for each plane. The comparison color register section 23 has a 4-bit configuration because the image memory section 21 has 4 branes, and can set up to 16 colors. The data sent from the image memory section 21 to the EOR circuit 24a1 is divided into planes, and in each EOR circuit 24a1, the -word length of 16 bits is simultaneously subjected to an EOR operation with the comparison target color held in the comparison color register section 23. The output side of the EOR circuit 24a1 becomes LOW level when the comparison results are equal.

EOR回路24a1の演算結果は、次のNOR回路24
a2へは一語長16ビツトの各ビット単位に分けて入力
され演算が行われる。NOR回路24a2では4つのブ
レーン全ての色彩が等しい場合のみ、演算結果がHIG
Hレベルになる。当該比較結果が制御部22に送られる
The calculation result of the EOR circuit 24a1 is sent to the next NOR circuit 24.
The data is input to a2 in units of bits of 16 bits each word, and arithmetic operations are performed. In the NOR circuit 24a2, the calculation result is HIGH only when the colors of all four branes are equal.
Becomes H level. The comparison result is sent to the control section 22.

また、同時に比較したい色を増やすためには、比較色レ
ジスタ部23と比較演算器24aを比較色分追加するこ
とで処理が可能になる。
Furthermore, in order to increase the number of colors to be compared at the same time, it is possible to process by adding the comparison color register unit 23 and the comparison calculator 24a for each comparison color.

(発明の効果) 以上説明したように、本発明では制御部と画像メモリ部
との間に比較演算部を設けて、制御部が画像メモリ部の
アドレスを指定した時に、画像メモリ部から読み出され
た色情報を比較演算部に取り込み、直ちに比較演算を行
いその結果を制御部へ出力するようにしている。
(Effects of the Invention) As explained above, in the present invention, a comparison operation section is provided between the control section and the image memory section, and when the control section specifies the address of the image memory section, the data is read from the image memory section. The color information thus obtained is taken into the comparison calculation section, and a comparison calculation is immediately performed and the result is output to the control section.

したがって1本発明によれば制御部は画像メモリ部を読
み出す時点において、画像メモリ部から読み出された色
情報との比較演算結果が応答されるため、画像情報の比
較演算の処理が速くなり画像処理全体の高速化が図れる
Therefore, according to the present invention, at the time when the control section reads out the image memory section, the control section receives the result of the comparison operation with the color information read out from the image memory section. The overall processing speed can be increased.

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

第1図は本発明の原理ブロック図、第2図は実施例に係
るブロック図、第3図は比較演算部の詳細図、第4図は
従来例に係るブロック図である。 1.21  (21a、21b、21c、21d)・・
・画像メモリ部(ブレーン) 2.22・・・制御部 3.33−・・比較色レジスタ部 4.24・・・比較演算部 24 (24a、24b)=比較演算部(比較演算器、
セレクタ部)
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a block diagram of an embodiment, FIG. 3 is a detailed diagram of a comparison calculation section, and FIG. 4 is a block diagram of a conventional example. 1.21 (21a, 21b, 21c, 21d)...
・Image memory unit (brain) 2.22...Control unit 3.33-...Comparison color register unit 4.24...Comparison calculation unit 24 (24a, 24b) = Comparison calculation unit (comparison calculation unit,
selector part)

Claims (2)

【特許請求の範囲】[Claims] (1)色情報等の画像情報が格納された画像メモリ部(
1)と、画像メモリ部(1)に格納された色情報を読み
出し画像処理を行う制御部(2)とを有する画像処理装
置において、 比較対象の色情報が保持された比較色レジスタ部(3)
と、 画像メモリ部(1)と制御部(2)との間に設けられ、
制御部(2)からのアドレス情報に基づいて画像メモリ
部(1)から読み出された色情報と、比較色レジスタ部
(3)で保持された色情報とを取り込み比較し、当該比
較された結果を直ちに制御部(2)に出力する比較演算
部(4)とを有することを特徴とする画像処理装置の高
速処理方式。
(1) Image memory section in which image information such as color information is stored (
1) and a control unit (2) that reads out color information stored in the image memory unit (1) and performs image processing. )
and, provided between the image memory section (1) and the control section (2),
The color information read out from the image memory section (1) based on the address information from the control section (2) and the color information held in the comparison color register section (3) are fetched and compared, and the A high-speed processing method for an image processing apparatus, comprising a comparison calculation section (4) that immediately outputs a result to a control section (2).
(2)制御部(2)からの指示があった場合のみ比較演
算部(4)において比較演算を行いその結果を制御部(
2)に出力し、制御部(2)からの指示がない場合には
画像メモリ部(1)から読み出された色情報をそのまま
制御部(2)に出力する比較演算部(4)であることを
特徴とする特許請求項1に記載の画像処理装置の高速処
理方式。
(2) Only when there is an instruction from the control unit (2), the comparison operation unit (4) performs a comparison operation and the result is sent to the control unit (
2), and if there is no instruction from the control unit (2), the comparison calculation unit (4) outputs the color information read from the image memory unit (1) as is to the control unit (2). A high-speed processing method for an image processing apparatus according to claim 1.
JP2048437A 1990-02-28 1990-02-28 High speed processing system for image processor Pending JPH03250379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2048437A JPH03250379A (en) 1990-02-28 1990-02-28 High speed processing system for image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2048437A JPH03250379A (en) 1990-02-28 1990-02-28 High speed processing system for image processor

Publications (1)

Publication Number Publication Date
JPH03250379A true JPH03250379A (en) 1991-11-08

Family

ID=12803330

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2048437A Pending JPH03250379A (en) 1990-02-28 1990-02-28 High speed processing system for image processor

Country Status (1)

Country Link
JP (1) JPH03250379A (en)

Similar Documents

Publication Publication Date Title
EP0373291B1 (en) Digital signal processor
US4759021A (en) Test pattern generator
JPH04282786A (en) High memory band width system for renewing z buffer value
JPH1083303A (en) Electronic circuits and methods for using coprocessors
JPH03250379A (en) High speed processing system for image processor
JPH0877143A (en) Vector data processor
JPH07234948A (en) Picture processor
JPS6362083A (en) Projection data generation method
JPH0520183A (en) Memory access control method
JPH1040165A (en) Data read method and read buffer
JP2550964B2 (en) Memory access control method
JPH10334038A (en) Data transfer device
JPH0736806A (en) Dma system
KR19990018369A (en) 3D graphics accelerator
JP2606176B2 (en) Graphic processing unit
JPH01316849A (en) Cache memory device
JPH05159042A (en) Picture processor
JPH0668055A (en) Digital signal processor
JPS61198371A (en) Picture processing system
JPH06332851A (en) Data transfer method
JPH052553A (en) Memory control system
JPS6113345A (en) Processor of tagged data
JPH02110641A (en) Memory access controller
JPH0520191A (en) Cache memory control system
JPH01130692A (en) Video signal recording method