JPH0117190B2 - - Google Patents

Info

Publication number
JPH0117190B2
JPH0117190B2 JP3997081A JP3997081A JPH0117190B2 JP H0117190 B2 JPH0117190 B2 JP H0117190B2 JP 3997081 A JP3997081 A JP 3997081A JP 3997081 A JP3997081 A JP 3997081A JP H0117190 B2 JPH0117190 B2 JP H0117190B2
Authority
JP
Japan
Prior art keywords
rom
area
memory
image memory
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP3997081A
Other languages
Japanese (ja)
Other versions
JPS57153370A (en
Inventor
Takeshi Masui
Shigemi Osada
Toshio Matsura
Kyoshi Iwata
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 JP3997081A priority Critical patent/JPS57153370A/en
Publication of JPS57153370A publication Critical patent/JPS57153370A/en
Publication of JPH0117190B2 publication Critical patent/JPH0117190B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 本発明は、マスク位置および大きさを簡単に変
更できるマスク演算回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a mask calculation circuit that can easily change the mask position and size.

一般に図形処理で画像データを扱う場合、処理
単位は矩形領域とし、それを画像メモリから切出
し、切出した矩形領域は更にこれを任意の大きさ
の領域に分割し、その分割小領域に対して演算を
行なう、等の操作を行なうことが多い。画像デー
タを矩形領域単位で扱うことはメモリの読出しに
当りそのアドレス演算を行なうに際し有利であ
り、そしてメモリ空間上の任意の場所の任意の大
きさの領域の読出しはソフトウエアでも勿論可能
であるが、アクセス時間が長く図形処理に多くの
時間がかゝるので、専用画像メモリと専用バスラ
インを用いて矩形領域を高速に切出しデータ処理
するハードウエアが種々考案されている。
Generally, when handling image data in graphic processing, the processing unit is a rectangular area, which is cut out from the image memory, and the cut out rectangular area is further divided into areas of arbitrary size, and calculations are performed on the divided small areas. Operations such as , etc. are often performed. Handling image data in units of rectangular areas is advantageous when performing address operations when reading from memory, and it is of course possible to read out areas of any size from any location in memory space using software. However, since the access time is long and the graphic processing takes a lot of time, various hardware have been devised to cut out a rectangular area at high speed and process the data using a dedicated image memory and a dedicated bus line.

ところがハードウエアで矩形領域の演算を行な
う場合、固定の大きさの矩形領域に対しては簡単
に回路を構成できるが、可変矩形領域に対しては
バツフアメモリの構成、アドレス計算などが厄介
で回路構成が複雑になる。本発明は画像メモリの
任意の部分より任意の大きさに切出した矩形領域
の、更にその任意に分割した領域に対するマスク
演算を簡単に実施できる回路を提供しようとする
ものであり、特徴とする所は画像メモリの記憶領
域内の任意の領域の所定部分の画像データに対し
てマスク演算を行なう回路において、該画像メモ
リの各走査線分の読出し出力を複数個に分割した
ものの1つをアドレス信号の一部として受ける第
1の複数個の読取り専用メモリと、該メモリのア
ドレス信号の残部を構成し該メモリのアドレス信
号の一部の個々を選択させる信号を出力する第2
の複数個の読取り専用メモリとを備えることにあ
る。以下図面を参照しながらこれを詳細に説明す
る。
However, when performing calculations on a rectangular area using hardware, it is easy to configure a circuit for a rectangular area with a fixed size, but for a variable rectangular area, buffer memory configuration, address calculation, etc. are complicated and the circuit configuration is difficult. becomes complicated. The present invention aims to provide a circuit that can easily carry out a mask operation on a rectangular area cut out to an arbitrary size from an arbitrary part of an image memory, and further on arbitrarily divided areas. is a circuit that performs a mask operation on image data of a predetermined portion of an arbitrary area within the storage area of an image memory, and divides the readout output for each scanning line of the image memory into a plurality of parts, and outputs one of them as an address signal. a first plurality of read-only memories receiving a plurality of read-only memories as part of the memory;
and a plurality of read-only memories. This will be explained in detail below with reference to the drawings.

第1図は図形処理システムの概要を示し、10は
画像メモリ、12は画像データバス、14はマス
ク回路、16はアドレス制御部である。画像メモ
リ10は2次元的に表現して第2図に示すよう
に、例えばN行×N列のマトリクス平面であり、
これに2次元画像データが書込まれるとすること
ができる。このN×N平面の画像データの任意の
点x,yに続くn×nの矩形領域を抜き出し、こ
の矩形領域中の一部分にマスク演算を行なう。画
像メモリ10から矩形領域を切出す操作は第3図
の回路で実行できる。この図で18はカウンタ
で、タイミング信号S2を受け、これを計数して読
取り専用メモリ(ROM)20のアドレス信号を
作る。ROM20も第1図の画像メモリ10と同
じくN×Nの記憶領域を持ちそして画像メモリ1
0も同じタイミング信号を受けそれを計数してア
ドレス信号を作るので、ROM20は画像メモリ
10と同期してかつ同じアドレスのメモリセルを
アクセスされることになる。ROM20には前記
位置x,yから始まるn×nの領域のメモリセル
にはデータ“1”を、そして他の領域のメモリセ
ルにはデータ“0”を書込んでおくと、n×nの
矩形領域がアクセスされる間アンドゲートGが開
いて画像メモリ10の読出し出力S1を通過し、そ
の他の領域がアクセスされる間該ゲートGは閉
じ、こうしてn×nの矩形領域の切出しが行なえ
る。
FIG. 1 shows an outline of the graphic processing system, in which 10 is an image memory, 12 is an image data bus, 14 is a mask circuit, and 16 is an address control section. The image memory 10 is expressed two-dimensionally as shown in FIG. 2, and is, for example, a matrix plane with N rows and N columns.
Two-dimensional image data can be written to this. An n×n rectangular area following an arbitrary point x, y of this N×N plane image data is extracted, and a mask operation is performed on a part of this rectangular area. The operation of cutting out a rectangular area from the image memory 10 can be performed by the circuit shown in FIG. In this figure, 18 is a counter which receives the timing signal S2 and counts it to generate an address signal for the read-only memory (ROM) 20. The ROM 20 also has a storage area of N×N like the image memory 10 in FIG.
0 also receives the same timing signal and counts it to create an address signal, so the ROM 20 is synchronized with the image memory 10 and memory cells at the same address are accessed. In the ROM 20, data "1" is written to memory cells in an n x n area starting from the positions x and y, and data "0" is written to memory cells in other areas. While the rectangular area is being accessed, the AND gate G is open and the readout output S1 of the image memory 10 is passed through, and while other areas are being accessed, the gate G is closed, thus cutting out the n×n rectangular area. Ru.

しかしROM20では矩形領域の始点アドレス
x,yが変れば、また大きさn×nが変れば、
ROM20それ自体を交換せねばならず、厄介で
ある。演算対象領域は前述のように種々変更でき
ることが望まれる。第4図は矩形領域の他の例を
示し、a,b,cは縦割りの例で、N×N画像メ
モリ記憶領域を垂直線で3等分し、斜線を付して
示すその左側、右側、および中央を矩形領域とす
る例、またd,e,fは水平線で3等分し、その
上部、下部、および中央を矩形領域とする例であ
る。なお画像メモリ10の読出しは水平方向に主
走査、垂直方向に副走査して行なう。このように
演算対象領域は種々変るので、始点座標x,yお
よび大きさn×nなどが変つても例えばソフトウ
エア的に容易にそれに対処できるハードウエアが
望まれる。
However, in ROM20, if the starting point address x, y of the rectangular area changes, or if the size n×n changes,
The ROM 20 itself must be replaced, which is troublesome. It is desirable that the region to be computed can be changed in various ways as described above. FIG. 4 shows another example of a rectangular area, where a, b, and c are vertically divided examples, in which the N×N image memory storage area is divided into three equal parts by a vertical line, and the left side is shown with diagonal lines. In this example, the right side and center are rectangular areas, and d, e, and f are divided into three equal parts by a horizontal line, and the upper, lower, and center areas are rectangular areas. The image memory 10 is read by main scanning in the horizontal direction and sub-scanning in the vertical direction. Since the calculation target area changes in various ways in this way, it is desired to have hardware that can easily handle changes in the starting point coordinates x, y, size n×n, etc., using software, for example.

第5図および第6図は本発明の1実施例を示
す。第5図は画像メモリ10の1走査線分の読出
し出力を発生する回路で、22a,22b,22
c……は複数aビツトのシフトレジスタであり、
複数b個設けられ(a×b=Nとする)、各々は
縦続接続される。これらのレジスタはタイミング
信号S2でメモリ10の読出し出力S1を順次取込
み、従つてレジスタ各段からの出力DOはNビツ
トのメモリ10の1走査線分の読出し出力と同じ
となる。但し全出力が揃う時点では1走査周期遅
延している。かゝる出力DOは第6図のROM2
6a,26b……の入力となる。第6図は各々複
数個からなるROM群24および26(a,b,
c……は相互を区別する添字)を備え、n×Nの
マスクを構成する。前段のROM24は後段の
ROM26の制御用、後段ROM26は演算用で
ある。前段ROM24へは例えば8ビツトの制御
信号S3が入力し、領域指定などを行なう。例えば
信号S3によりROM24aのみが後段ROM26
aを有効動作させ、他のROM24b,24c…
…はその後段ROMを無効にする(例えば常に
“0”出力にする)と、第4図aに示す演算領域
が設定されたことになる。但しこゝでnはROM
26aに入力する出力DOのビツト数に等しい。
nが大なる場合は、後続するROM26b,26
c……を有効にすればよい。また演算対象領域が
第4図cのように中央にある場合は、それに対応
するROM例えば26c,26dなどを有効に
し、その前後のROMを無効にすればよい。更
に、領域を第4図d,e,fのように水平にとる
場合は走査方向を主、副逆にする、或いはROM
26の全部を有効にしかつ別にゲートを設けて対
象領域外の水平走査出力に対応する分は禁止する
など適宜の方法をとればよい。
5 and 6 illustrate one embodiment of the invention. FIG. 5 shows a circuit that generates a readout output for one scanning line of the image memory 10, 22a, 22b, 22
c... is a shift register of multiple a bits,
A plurality of b are provided (a×b=N), and each is connected in cascade. These registers sequentially take in the readout output S1 of the memory 10 using the timing signal S2 , so that the output DO from each register stage is the same as the readout output of one scanning line of the N-bit memory 10. However, there is a delay of one scanning period when all outputs are available. Such output DO is ROM2 in Figure 6.
6a, 26b... are input. FIG. 6 shows ROM groups 24 and 26 (a, b,
c . . . are subscripts for distinguishing each other), and form an n×N mask. The front stage ROM24 is the rear stage ROM24.
The ROM 26 is used for control, and the latter ROM 26 is used for calculation. For example, an 8-bit control signal S3 is input to the pre-stage ROM 24 to specify an area. For example, signal S 3 causes only ROM24a to switch to the subsequent ROM26.
ROM24b, 24c...
. . . When the subsequent ROM is disabled (for example, always outputs "0"), the calculation area shown in FIG. 4a is set. However, here n is ROM
It is equal to the number of bits of the output DO input to 26a.
If n is large, the subsequent ROM26b, 26
All you have to do is enable c... Further, when the region to be calculated is in the center as shown in FIG. 4c, the corresponding ROMs such as 26c and 26d may be enabled, and the ROMs before and after it may be disabled. Furthermore, if the area is taken horizontally as shown in Figure 4 d, e, f, the scanning direction must be reversed, or the ROM
An appropriate method may be used, such as enabling all of 26 and providing a separate gate to prohibit the portion corresponding to the horizontal scanning output outside the target area.

後段ROM26は入力信号ビツト中の“1”
(黒)の個数の計数出力を生じる等の演算結果を
出力する。これは前段ROM24からの信号と出
力DOの当該ROM入力分とをアドレス信号とし、
該信号でアクセスして当該アドレスの記憶内容を
読み出すことにより行なう。例えばROM26a
に入力するROM24aからの信号は1111の4ビ
ツトであり(“1”は“有効”を示し、従つてこ
の場合は26aへのDO成分DOa全部採用を示
す)、またROM26aへ入力するDOaは0111の
4ビツトであつたとすると、ROM26aのアド
レス11110111にはデータ“3”を書込んでおけ
ば、上記演算結果を出力することができる。他の
ROMについても同様である。なおROM26の
出力を直列伝送する場合は入力信号が揃つた時点
でストローブ信号S4を上げて読出しを行なう。ま
たこの方式であると前段ROM24は後段ROM
有効、無効だけでなく、その入力のDO成分の何
ビツト迄採用すべきか、従つて演算領域を一層微
細に設定する(前述の矩形領域内に演算対象領域
を設定する)ことができる。例えば上記の例では
ROM24aの出力が0111ならこれはDOaの最初
のビツトを除いてそれ以後の3ビツトの定数計数
を指示しているからROM26aは入力01110111
を受けて“3”を出力する(そのように予め記憶
させておく。勿論アドレス01111111の所へも
“3”を書込んでおく)。ついでながらROM24
の出力が0000ならこれは後段ROM非選択を示
す。更にROM24の出力に計数対象は白ビツト
か黒ビツトかの指示ビツトを含めておけば、黒ビ
ツト計数の代りに白ビツト計数を行なうこともで
きる。
The subsequent ROM 26 receives “1” in the input signal bit.
Outputs calculation results such as counting the number of (black) pieces. This uses the signal from the previous stage ROM 24 and the corresponding ROM input portion of the output DO as an address signal,
This is done by accessing with the signal and reading the stored contents of the address. For example, ROM26a
The signal from the ROM 24a that is input to the ROM 24a is 4 bits of 1111 (“1” indicates “valid”, so in this case, it indicates that all DO components DOa are adopted to the ROM 26a), and the DOa input to the ROM 26a is 0111. Assuming that there are 4 bits, the above calculation result can be output by writing data "3" to address 11110111 of the ROM 26a. other
The same applies to ROM. Note that when transmitting the output of the ROM 26 in series, the strobe signal S4 is raised to perform reading when the input signals are complete. Also, with this method, the front ROM 24 is the rear ROM
It is possible to determine not only whether it is valid or invalid, but also how many bits of the DO component of the input should be adopted, and therefore to set the calculation area more precisely (setting the calculation target area within the above-mentioned rectangular area). For example, in the example above
If the output of ROM24a is 0111, this indicates constant counting of the following 3 bits except for the first bit of DOa, so ROM26a inputs 01110111.
In response, it outputs "3" (this is stored in advance. Of course, "3" is also written to address 01111111). By the way, ROM24
If the output is 0000, this indicates that the subsequent ROM is not selected. Furthermore, if the output of the ROM 24 includes an instruction bit indicating whether the object to be counted is white bits or black bits, white bit counting can be performed instead of black bit counting.

第7図は領域決定用の前段ROMをもう1組増
設し、ROM24とはワイヤード・オアをとつて
後段ROM26をアクセスするようにしたもので
ある。このようにすると演算対象領域を第2図に
示すようにN×Nメモリ領域の内部に島状に設定
することができる。例えばROM24はxからx
+nの間に対応するROM26を有効にするが、
ROM28は副走査がyからy+nの間で行なわ
れる期間のみROM26を有効にし、他の期間で
はこれを無効にすれば、始端をx,yとするn×
nの領域が設定される。
In FIG. 7, another set of pre-stage ROM for area determination is added, and the ROM 24 is configured to access the post-stage ROM 26 by performing a wired OR. In this way, the calculation target area can be set in the form of an island within the N×N memory area as shown in FIG. For example, ROM24 is from x to x
+n, the corresponding ROM26 is enabled,
If the ROM 28 is enabled only during the period when sub-scanning is performed between y and y+n, and disabled during other periods, n×
n areas are set.

第6図および第7図のROM24,26,28
はプログラム可能ROMにすれば自由に書換えが
できて、融通性が一層増す。
ROM24, 26, 28 in Figures 6 and 7
If it is made into a programmable ROM, it can be freely rewritten, increasing flexibility even further.

以上説明したように本発明によればN×Nメモ
リ領域の任意の点x,yにn×n矩形領域を設定
し、該領域中の所望部分に対し所要の演算を行な
うマスク回路を提供することができる。使用
ROMの個数は適宜増減できるのでメモリ領域の
増減にも簡単に対処でき、ROMとしてPROMを
使用すれば融通性が増すなど、種々の利点が得ら
れる。
As explained above, according to the present invention, a mask circuit is provided which sets an n×n rectangular area at any point x, y in an N×N memory area and performs a required operation on a desired portion in the area. be able to. use
Since the number of ROMs can be increased or decreased as appropriate, it is easy to deal with increases or decreases in the memory area, and using PROM as the ROM provides various advantages such as increased flexibility.

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

第1図は画像データ処理システムの概要を示す
ブロツク図、第2図は矩形領域の説明図、第3図
はマスク回路の1例を示すブロツク図、第4図は
各種矩形領域の説明図、第5図〜第7図は本発明
の実施例を示し、第5図は各走査線分の遅延出力
を生じる回路のブロツク図、第6図および第7図
はマスク演回路部のブロツク図である。 図面で10は画像メモリ、n×nの矩形は任意
の領域26a,26b……は第1のROM群、2
4a,24b……は第2のROM群である。
FIG. 1 is a block diagram showing an overview of the image data processing system, FIG. 2 is an explanatory diagram of a rectangular area, FIG. 3 is a block diagram showing an example of a mask circuit, and FIG. 4 is an explanatory diagram of various rectangular areas. 5 to 7 show embodiments of the present invention, FIG. 5 is a block diagram of a circuit that generates a delayed output for each scanning line, and FIGS. 6 and 7 are block diagrams of a mask processing circuit section. be. In the drawing, 10 is an image memory, n×n rectangles are arbitrary areas 26a, 26b, . . . are the first ROM group, 2
4a, 24b, . . . are the second ROM group.

Claims (1)

【特許請求の範囲】[Claims] 1 画像メモリの記憶領域内の任意の領域の所定
部分の画像データに対してマスク演算を行なう回
路において、該画像メモリの各走査線分の読出し
出力S1を複数個に分割したものの1つをアドレス
信号の一部DOa,……として受ける第1の複数
個の読取り専用メモリ26a,……と、該メモリ
のアドレス信号の残部を構成し該メモリのアドレ
ス信号の一部DOa,……の個々を有効/無効と
する信号を出力する第2の複数個の読取り専用メ
モリ24a,……とを備えることを特徴とするマ
スク演算回路。
1. In a circuit that performs a mask operation on image data of a predetermined portion of an arbitrary area within the storage area of an image memory, one of the readout outputs S1 for each scanning line of the image memory is divided into a plurality of pieces. a first plurality of read-only memories 26a, . . . receiving part of the address signal DOa, . . . and each of the first plurality of read-only memories 26a, . A mask arithmetic circuit comprising a second plurality of read-only memories 24a, .
JP3997081A 1981-03-19 1981-03-19 Mask operating circuit Granted JPS57153370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3997081A JPS57153370A (en) 1981-03-19 1981-03-19 Mask operating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3997081A JPS57153370A (en) 1981-03-19 1981-03-19 Mask operating circuit

Publications (2)

Publication Number Publication Date
JPS57153370A JPS57153370A (en) 1982-09-21
JPH0117190B2 true JPH0117190B2 (en) 1989-03-29

Family

ID=12567806

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3997081A Granted JPS57153370A (en) 1981-03-19 1981-03-19 Mask operating circuit

Country Status (1)

Country Link
JP (1) JPS57153370A (en)

Also Published As

Publication number Publication date
JPS57153370A (en) 1982-09-21

Similar Documents

Publication Publication Date Title
JPS63298485A (en) Image processor
JPH0117190B2 (en)
JPS6382530A (en) Semiconductor storage device
JPS6334658A (en) Dma controller for image processor
JP2886855B2 (en) Image display device
JPS5835592A (en) Display picture divider
JP2906845B2 (en) Parallel processor device
JPS60124785A (en) Picture processing unit
JP2874221B2 (en) Arithmetic control circuit
JPH05314256A (en) Image data processor
JP2652973B2 (en) Image processing device
JPH06324935A (en) Address generator and address generation system
JPH0812660B2 (en) Vector data processor
JPS6316381A (en) Memory device
JPS61264482A (en) Picture converting system
JPS5998254A (en) Address circuit
JPS6139092A (en) Display unit
JPS6295665A (en) Memory access control system
JPH05143326A (en) Bank processor
JP2002216128A (en) Logical filter and its control method
JPH0863595A (en) Method and device for rotation processing of image
JPH0268672A (en) Address generating part for picture processing processor
JPH06214556A (en) Picture processing device
JPS62175879A (en) Generating device for data on binary picture similarity conversion picture element
JPH0216665A (en) Data transfer equipment