JPH0740294B2 - Pattern reduction method - Google Patents
Pattern reduction methodInfo
- Publication number
- JPH0740294B2 JPH0740294B2 JP62282511A JP28251187A JPH0740294B2 JP H0740294 B2 JPH0740294 B2 JP H0740294B2 JP 62282511 A JP62282511 A JP 62282511A JP 28251187 A JP28251187 A JP 28251187A JP H0740294 B2 JPH0740294 B2 JP H0740294B2
- Authority
- JP
- Japan
- Prior art keywords
- bit
- dots
- output
- dot
- register
- 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 - Lifetime
Links
Landscapes
- Image Processing (AREA)
- Digital Computer Display Output (AREA)
- Editing Of Facsimile Originals (AREA)
- Controls And Circuits For Display Device (AREA)
Description
【発明の詳細な説明】 〔概要〕 本発明は、パターン縮小方法の改良に関し、元のパター
ンに対する忠実度をできるだけ高くし、且つ処理時間の
短縮を行なえるパターン縮小方法を提供することを目的
とし、 表示の上で隣接するライン上の画像データであり、画像
メモリからワード単位又はバイト単位で読み出されたn
列の画像データについて、各列のドットをnビット毎の
小領域に区分することにより、n列×nドットの小領域
からなる複数のマトリックスを構成し、各マトリックス
において各列上の同一位置にあるn個のドットで多数決
をとって代表ドット列を生成し、更に、該代表ドット列
をシフト手段によりそれぞれ0〜n−1ドットだけシフ
トしたn列のシフトドット列を生成し、シフト前の同一
マトリックス内に属していたドットであって、且つ該n
列のシフトドット列において同一位置にあるn個のドッ
トで多数決をとり、前記マトリックスにおける代表ドッ
トを決定する様に構成した。DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention relates to an improvement of a pattern reduction method, and an object thereof is to provide a pattern reduction method capable of increasing the fidelity to an original pattern as much as possible and reducing the processing time. , Which is image data on a line adjacent on the display, and is read out from the image memory in word units or byte units.
For the image data of a row, by dividing the dots of each row into small areas of n bits each, a plurality of matrices consisting of small areas of n columns × n dots are formed, and each matrix has the same position on each row. A representative dot row is generated by taking a majority vote with a certain number of n dots, and further, n rows of shift dot rows are generated by shifting the representative dot row by 0 to n-1 dots by the shift means, respectively. Dots that belong to the same matrix, and
In the shift dot row of the row, a majority decision is made with n dots at the same position, and the representative dot in the matrix is decided.
本発明は、例えばディスプレイ上に表示する図形等につ
いて、縮小するためのパターン縮小方法に関するもので
ある。The present invention relates to a pattern reduction method for reducing a figure or the like displayed on a display, for example.
例えば、ディスプレイ表示した図形について、プリンタ
により出力するとか、文章の中に挿入する場合に、図を
縮小したいことがある。For example, when the figure displayed on the display is to be output by a printer or inserted in a sentence, it is sometimes desired to reduce the size of the figure.
このために従来から種なパターン縮小方法が提案されて
いる。For this reason, various pattern reduction methods have been conventionally proposed.
従来、ドットの集合を平面的ないしは立体的に配置した
パターンを縮小するには、間引きやドット計数によるサ
ンプリングを行っていた。つまり、例えば1/3に縮小す
る場合には、3×3個のドットを1個のドットに代表さ
せるにあたって、間引きの場合には固定的な行と列、例
えば1行,1列目におけるドットを9個の中の代表として
抽出することになり簡単なので高速処理が可能だが抽出
されない8個のドットの情報が反映されないから忠実度
はあまり期待できない。一方、ドット計数の場合には色
や濃度などに関し最大の個数を持つドットが9個を代表
する1個のドットとして抽出することになり、例えばド
ットが白か黒かの2値をとるならば黒が5個以上か未満
かにより代表ドットの白黒を決定することができ、忠実
度は比較的良好と言える。Conventionally, in order to reduce a pattern in which a set of dots is arranged two-dimensionally or three-dimensionally, sampling by thinning or dot counting has been performed. That is, for example, when reducing to 1/3, 3 × 3 dots are represented by one dot, and when thinning out, fixed rows and columns, for example, dots in the first row and the first column Is extracted as a representative of the nine, so high-speed processing is possible, but the fidelity cannot be expected so much because the information of the eight dots that are not extracted is not reflected. On the other hand, in the case of dot counting, the dot having the maximum number in terms of color, density, etc. is extracted as one dot representing 9 dots. For example, if the dot takes a binary value of white or black. It can be said that the fidelity is relatively good because the black and white of the representative dot can be determined depending on whether there are five or more blacks or less.
しかしながら、9個のドットが2次元的に配置されてい
るため、ワードないしはバイト単位で番地付けされて読
み出されるメモリ装置内にパターン情報が格納されてい
るときには、1ドット毎に番地セットおよび番地内にお
けるビット位置計算などを行なう必要があるので、処理
時間が前述の間引きに比較して著しく増大するという問
題が生じる。However, since 9 dots are arranged two-dimensionally, when pattern information is stored in the memory device which is read out by assigning addresses in word or byte units, the address set and the address Since it is necessary to calculate the bit position in, there is a problem that the processing time is remarkably increased as compared with the above-described decimation.
従って、本発明の目的は、忠実度や処理速度が前記2つ
の場合よりも改善し得るパターン縮小方式を提供するこ
とである。とりわけ、ビット単位の番地付けをするよう
な特殊なメモリ装置を用いずに、普通のワードないしは
バイト単位の番地付けがされるメモリ装置を持つ情報処
理装置に適用するのが好都合であるパターン縮小方法を
提供することを目的とする。Therefore, it is an object of the present invention to provide a pattern reduction method capable of improving fidelity and processing speed as compared with the above two cases. Especially, a pattern reduction method which is convenient to be applied to an information processing apparatus having a memory device in which an ordinary word or byte address is assigned without using a special memory device for assigning an address in bit units. The purpose is to provide.
本発明では、表示画面上の隣接するライン上の画像デー
タで、且つバイト単位又はワード単位に読み出されたn
列の画像データについて、各列において同一位置にある
n個のドットで代表ドットを決めていき、これら代表ド
ットの中から更に多数決をとって全体の代表ドットを定
めることによって、忠実度が間引きに比べて良好となる
ようにしている。また、前記列代表ドットの決定処理が
各列について同一(一様)な操作だから、ワードないし
はバイト単位のAND,OR,EXOR演算命令により自然に並列
処理がなされるために1ドット毎の場合よりは高速に処
理される。According to the present invention, the image data on the adjacent line on the display screen, and n read in byte units or word units
For the image data of a row, a representative dot is determined by n dots at the same position in each row, and the majority of these representative dots is determined to determine the overall representative dot, thereby reducing the fidelity. I try to be better than that. Further, since the determination process of the column representative dots is the same (uniform) operation for each column, since parallel processing is naturally performed by AND, OR, EXOR operation instructions in word or byte units, it is more than in the case of every dot. Is processed at high speed.
第1図は、1/3縮小を16ビット単位(ワード単位)で番
地付けして白(0),黒(1)の2値パターンをメモリ
内に持つシステムを例として上記本発明の原理を説明す
るためのものである。FIG. 1 shows the principle of the present invention by taking as an example a system in which 1/3 reduction is assigned in 16-bit units (word units) and a binary pattern of white (0) and black (1) is stored in the memory. It is for explanation.
この例では、点線で囲む9個のビットから1ビットの情
報を計算することを5組みまとめて行うことになる。
(1)〜(3)は元のパターン情報3ワード分であり、
(4はこれらのワードに対して、各列内で3ビットに対
して多数決演算を施して得られる1ワードのパターン情
報である。3者の2値情報に対する多数決演算は論理式
で表現すると次のようにある。In this example, 5 sets of 1-bit information are calculated from 9 bits surrounded by a dotted line.
(1) to (3) are the original pattern information for 3 words,
(4 is 1-word pattern information obtained by performing a majority operation on 3 bits in each column for these words. The majority operation for binary information of the three parties is expressed by a logical expression as follows. Is like.
x=(a+b)・c+a・b 従って、4回の基本的論理演算に分解して処理すること
ができる。次に、そして、(5),(6)に示す様にこ
の多数決で得た1ワードのパターン情報をそれぞれ1ビ
ット,2ビット分ずつシフトする。更に、(7)は、
(4),(5),(6)に示すビットシフトデータに対
して、(1)〜(3)に対する多数決演算を施して得ら
れたパターン情報について代表となるビット位置のみを
表したものである。このときには、2回のシフト演算と
4回の基本的論理演算により処理することができる。x = (a + b) * c + a * b Therefore, it can be decomposed into four basic logical operations and processed. Next, as shown in (5) and (6), the pattern information of one word obtained by this majority decision is shifted by 1 bit and 2 bits, respectively. Furthermore, (7) is
The bit shift data shown in (4), (5), and (6) represent only the representative bit positions of the pattern information obtained by performing the majority operation on (1) to (3). is there. In this case, the shift operation can be performed twice and the basic logic operation can be performed four times.
尚16は3の倍数ではないので、1ビット分の余りが生じ
てしまい、この余り1ビットも全体の縮小においては無
視できないので、端部のずれを次のワードの処理で用い
ることが、必要であるが、3ワード(48ビット)を1組
みとして、前記処理を施こすことにより、端部のずれを
気にする必要がなくなる。Since 16 is not a multiple of 3, a 1-bit remainder is generated, and since this 1-bit remainder cannot be ignored in the overall reduction, it is necessary to use the edge shift in the processing of the next word. However, it is not necessary to worry about the misalignment of the end portions by performing the above-mentioned processing with 3 words (48 bits) as one set.
この様に本発明によれば多数決をとることをビットシフ
トの組合せにより処理ができるので、高速で且つ、忠実
度の高い縮小を行なうことができる。As described above, according to the present invention, the majority decision can be processed by a combination of bit shifts, so that the reduction can be performed at high speed and with high fidelity.
以下、実施例に従って詳述する。 Hereinafter, detailed description will be given according to examples.
第2図は、本発明の一実施例を示す回路ブロック図であ
り、第3図はメモリアドレスと表示面の位置関係を示す
図である。図中1はワードないしはバイト単位に番地付
けされたメモリ、2a,2b,2cはメモリMにおけるパターン
情報のうちで連続する3行分のドット並びに対応する部
分がそれぞれ1行毎に読出されて格納されるレジスタ、
4,5,10,11はレジスタ2a,2b,2c,8a,8b,8cの出力、または
オア回路の出力であるところのワードないしバイト単位
のビット群に対して並列的に論理積演算を行うアンド回
路、3,6,9,12は同じく論理和演算を行うオア回路、7a,7
bはオア回路6の出力を1ビットずつシフトするための
シフト回路、8a,8b,8cはオア回路6、シフト回路7a,7b
の出力を格納するレジスタ、13はレジスタ8a,8b,8cの多
数決演算結果となるようなオア回路12の出力を格納する
レジスタ、14はレジスタR7の出力の中から有効ビット情
報である1ビット目,4ビット目,7ビット目と言うように
1+kの倍数(kは縮小率の逆数)番目のビットを抽出
して、スキ間なく詰め直すための論理ユニット、15は論
理ユニットの出力を格納し、メモリにその内容を縮小パ
ターンの1部分として書込むためのレジスタである。な
お、図示しないが、メモリ1内の元のパターン情報を3
ワードないし3バイトずつで走査しながら読出すために
番地を次々と変えてゆく制御や同様に縮小パターンの書
込みのために番地を制御する手段、および各回路ないし
ユニット等の動作タイミングを制御する手段があること
は無論である。FIG. 2 is a circuit block diagram showing an embodiment of the present invention, and FIG. 3 is a diagram showing a positional relationship between a memory address and a display surface. In the figure, 1 is a memory assigned addresses in units of words or bytes, and 2a, 2b, 2c are consecutive 3 rows of dots in the pattern information in the memory M and corresponding portions are read and stored for each row. Registers,
4,5,10,11 performs logical AND operation on the output of registers 2a, 2b, 2c, 8a, 8b, 8c, or the bit group of word or byte unit which is the output of the OR circuit in parallel. AND circuit, 3,6,9,12 are also OR circuits for performing OR operation, 7a, 7
b is a shift circuit for shifting the output of the OR circuit 6 bit by bit, 8a, 8b and 8c are OR circuits 6 and shift circuits 7a and 7b
Is a register for storing the output of the OR circuit 12, 13 is a register for storing the output of the OR circuit 12 which is the majority operation result of the registers 8a, 8b, 8c, and 14 is the first bit which is valid bit information from the output of the register R7. , 4th bit, 7th bit, etc., a logical unit for extracting the bit of a multiple of 1 + k (k is the reciprocal of the reduction ratio) and repacking without delay, 15 stores the output of the logical unit , A register for writing the contents in the memory as a part of the reduced pattern. Although not shown, the original pattern information in the memory 1 is
A control for changing the address one after another for reading while scanning by word or three bytes, a means for controlling the address for writing the reduced pattern, and a means for controlling the operation timing of each circuit or unit. Of course there is.
動作を説明すると、まず、メモリ1から第1図の(1)
〜(3)に示すような2値ビット群からなるパターン情
報がレジスタ2a〜2cに16ビットづつ並列に読出される。The operation will be described. First, from the memory 1 to (1) in FIG.
.. (3) The pattern information consisting of a binary bit group as shown in (3) is read in parallel to the registers 2a to 2c in 16-bit units.
メモリ1が2バイト(16ビット)単位に番地付けされ、
表示面のドットが横720ドット,縦540ドットから成ると
すれば、メモリ上の各アドレスにおけるビットは、表示
面上では、第3図の様に対応する。Memory 1 is assigned addresses in units of 2 bytes (16 bits),
If the dots on the display surface consist of 720 horizontal dots and 540 vertical dots, the bits at each address on the memory correspond to those on the display surface as shown in FIG.
従って、一番初めは、メモリ1の0番地,45番地,90番地
(それぞれ相対番地である。)のビットが読み出され、
それぞれレジスタ2a,2b,2cにセットされる。Therefore, at the beginning, the bits at addresses 0, 45, 90 (each of which is a relative address) of the memory 1 are read,
It is set in registers 2a, 2b, 2c, respectively.
次いで、レジスタの2a,2bの内容の論理話がオア回路3
により、また同両内容の論理積がアンド回路4により、
レジスタ2cとオア回路3の出力の両内容の論理積がアン
ド回路5により、とられ、レジスタ2a,2b,2cの出力内容
の多数決である第1図(4)に示すようなビット群に対
応する内容がオア回路6により、それぞれ演算出力され
る。このため、レジスタ8aには第1図(4)に示すよう
な内容、レジスタ8bにはシフト回路7aを経由して第1図
(5)に示すような内容、レジスタ8cにはシフト回路7
a,7bを経由して第1図(6)に示すような内容がそれぞ
れ格納される。図示の通り、アンド回路10,11とオア回
路9,12の接続構成は、アンド回路4,5とオア回路3,6の接
続構成と同一形であるから、レジスタ13には、第1図
(7)に示すようにレジスタ8a,8b,8cの多数決演算結果
が格納される。ここで、レジスタ13の内容をみると、1,
4,7,10,13番目の各ビットは、所期の5個の9ビットグ
ループに対応する代表の値であるが、それら以外のレジ
スタR7のビットは所期のグループ振分けとは異なる9ビ
ットに対応するため縮小用には不要となることが分か
る。よって、メモリ1に縮小パターンを書込む際には、
レジスタ13の内容から不要ビットの分を詰めた形に修正
するような論理ユニット14を介在させ、また各レジスタ
のビット容量が等しいならば3回分で1個のレジスタ分
の分量が揃うので、一旦はレジスタ15に格納しておくよ
うにしている。以上の例では各アドレスの16ビット目は
3で割り切れないので、使用していない。第4図によ
り、論理ユニット14の具体例を説明する。Next, the logical story of the contents of the registers 2a and 2b is the OR circuit 3.
, And the logical product of both contents is obtained by the AND circuit 4.
The logical product of the contents of both the register 2c and the output of the OR circuit 3 is taken by the AND circuit 5 and corresponds to the bit group as shown in FIG. 1 (4) which is the majority decision of the output contents of the registers 2a, 2b, 2c. The contents to be performed are respectively output by the OR circuit 6. Therefore, the register 8a has the contents shown in FIG. 1 (4), the register 8b has the contents shown in FIG. 1 (5) via the shift circuit 7a, and the register 8c has the shift circuit 7
The contents as shown in FIG. 1 (6) are respectively stored via a and 7b. As shown in the figure, since the connection configuration of the AND circuits 10 and 11 and the OR circuits 9 and 12 is the same as the connection configuration of the AND circuits 4,5 and the OR circuits 3 and 6, the register 13 is shown in FIG. As shown in 7), the majority operation results of the registers 8a, 8b, 8c are stored. Here, looking at the contents of register 13,
The 4th, 7th, 10th, and 13th bits are representative values corresponding to the desired 5 9-bit groups, but the other bits of register R7 are 9 bits different from the desired group allocation. It can be seen that it is unnecessary for reduction because it corresponds to. Therefore, when writing the reduced pattern to the memory 1,
A logic unit 14 for correcting the contents of the register 13 to a form in which unnecessary bits are reduced is interposed, and if the bit capacity of each register is the same, the quantity for one register is completed in three times. Is stored in the register 15. In the above example, the 16th bit of each address is not used because it cannot be divided by 3. A specific example of the logic unit 14 will be described with reference to FIG.
論理ユニット14はレジスタ13からの出力を並列にセット
するためのレジスタ14aとレジスタ14aの出力をつめ込ん
で出力するためのレジスタ14bにより構成される。The logic unit 14 comprises a register 14a for setting the output from the register 13 in parallel and a register 14b for stuffing and outputting the output of the register 14a.
作用について説明すると、レジスタ13の出力は並列にレ
ジスタ14aにセットされる。レジスタ14aにセットされた
各ビットの内1,4,7,10,13番目のビットのみ必要である
ので、レジスタ14aの1番目のビットをレジスタ14bの1
番目のビットに、レジスタ14aの4番目のビットをレジ
スタ14bの2番目のビットに、レジスタ14aの7番目のビ
ットをレジスタ14bの3番目のビットに、以下同様にレ
ジスタ14aの10番目のビット、13番目のビットをレジス
タ14bの4番目,5番目のビットに入力する。To explain the operation, the output of the register 13 is set in the register 14a in parallel. Since only the 1st, 4th, 7th, 10th, and 13th bits of each bit set in the register 14a are required, the 1st bit of the register 14a is set to 1 of the register 14b.
The fourth bit of the register 14a is the second bit of the register 14b, the seventh bit of the register 14a is the third bit of the register 14b, and so on. The 13th bit is input to the 4th and 5th bits of the register 14b.
この様にして、必要な代表ビットのみ取り出し、レジス
タ15へ出力する。In this way, only the necessary representative bits are taken out and output to the register 15.
第5図,第6図により本発明の他の実施例を説明する。Another embodiment of the present invention will be described with reference to FIGS.
第2図の例では、縦方向の多数決出力の内16ビット目を
無視する様にしているが、本実施例においては、16ビッ
ト目を用いる様にしている。In the example of FIG. 2, the 16th bit of the majority voting output in the vertical direction is ignored, but in the present embodiment, the 16th bit is used.
このためには、第5図(a)に示す0番地,45番地,90番
地におけるビットの縦方向多数決出力の16ビット目と、
第5図(b)に示す1番地,46番地,91番地におけるビッ
トの縦方向の多数決出力の内1ビット目と2ビット目と
の多数決を取れる様にする。又この様にすると、(b)
図に示す様に1番地,46番地,91番地におけるビットの縦
方向の多数決出力の内、15ビット目,16ビット目があま
るので、この2ビットと(c)図に示す2番地,47番地,
92番地の縦方向の多数決出力の内1ビット目、とを用い
てそれぞれ多数決を取れる様にする。For this purpose, the 16th bit of the vertical majority decision output of the bits at addresses 0, 45 and 90 shown in FIG. 5 (a),
The majority decision can be made between the first and second bits of the vertical majority decision outputs at the addresses 1, 46 and 91 shown in FIG. 5 (b). By doing this, (b)
As shown in the figure, the 15th and 16th bits of the vertical majority decision output at the 1st, 46th, and 91th addresses are the same as the 2nd and 47th addresses shown in (c). ,
Use the first bit of the vertical majority output at address 92, and so that the majority vote can be taken.
このために、(a)に示す多数決出力については、第2
図で示したことと同様に(d),(e),(f)に示す
如く、シフタ26,27により多数決回路20からの出力をそ
れぞれ1ビットずつシフトし、多数決回路23に入力す
る。For this reason, regarding the majority decision output shown in (a),
As shown in (d), (e), and (f), the shifter 26, 27 shifts the output from the majority decision circuit 20 by one bit, and inputs it to the majority decision circuit 23, as shown in FIG.
又(b)に示す多数決回路21の出力については、シフタ
28により1ビット右シフトし、1番目のビットを出力
(a)の第16番目のビットと置換し、(g)に示すビッ
ト列として出力する。又出力(a)の第16番目のビット
と、出力(b)の第1,2番目のビットとの多数決を取れ
る様に出力(d)をそのままシフトせず多数決回路24に
入力し、更に、出力(b)をシフタ29により1ビット左
へシフトしたビット列(i)を多数決回路24へ入力す
る。Also, regarding the output of the majority decision circuit 21 shown in FIG.
28 shifts to the right by 1 bit, replaces the 1st bit with the 16th bit of the output (a), and outputs as a bit string shown in (g). Further, the output (d) is input as it is to the majority circuit 24 without being shifted so that the majority of the 16th bit of the output (a) and the 1st and 2nd bits of the output (b) can be obtained. The bit string (i) obtained by shifting the output (b) to the left by one bit by the shifter 29 is input to the majority decision circuit 24.
これにより(g),(h),(i)に示す様にビット位
置が揃うので出力(a)の16番目のビットを用いて多数
決を取ることができる。As a result, since the bit positions are aligned as shown in (g), (h), and (i), the majority decision can be made by using the 16th bit of the output (a).
又出力(b)の第15番目,16番目のビットを用いて多数
決を取るために、多数決回路22の出力(c)について、
シフタ32により1ビット右へシフトしシフトしたビット
列の1番目のビットをレジスタ34からの出力(b)の第
16番目のビットに入れ換えて出力(h)とし、更にこの
出力(h)についてレジスタ31により、1ビット右にシ
フトし、このシフトしたビット列の1番目のビットをシ
フタ30からの16番目のビットに入れ換えて出力(j)と
してそれぞれ多数決回路25に夫々入力する。Also, in order to take a majority decision using the 15th and 16th bits of the output (b), the output (c) of the majority decision circuit 22 is:
The first bit of the bit string shifted right by one bit by the shifter 32 and the first bit of the output (b) from the register 34
The 16th bit is replaced with the output (h), and the output (h) is further shifted to the right by 1 bit by the register 31, and the 1st bit of this shifted bit string is changed to the 16th bit from the shifter 30. They are exchanged and input to the majority circuit 25 as outputs (j), respectively.
これにより、出力(b)の第15番目のビットと出力
(c)の1番目のビット位置が揃うので出力(b)につ
いて全ビット利用できる。As a result, the 15th bit of the output (b) and the first bit position of the output (c) are aligned, so that all bits can be used for the output (b).
ここで、出力(c)の第16ビット目は、出力(a)と
(b)に合せると48ビット目に相当し、3で割り切れる
ことから、出力(c)について、全ビット利用できる。Here, the 16th bit of the output (c) corresponds to the 48th bit when combined with the outputs (a) and (b), and is divisible by 3, so that all bits of the output (c) can be used.
多数決回路23,24,25の出力は、夫々レジスタ35,36,37に
並列にセットされる。The outputs of the majority decision circuits 23, 24, 25 are set in parallel in the registers 35, 36, 37, respectively.
そして、第4図と同様な論理ユニット38によりビット位
置がつめられて、出力される。すなわち、各レジスタ3
5,36,37からの16ビットづつ計48ビットの出力が並列に
入力され(1,4,7,10,13,17,20,23,26,29,33,36,39,42,4
5,48)ビット目の抽出の後1/3につめこんで、16ビット
の並列データとしてメモリへ出力する。Then, bit positions are clogged by the logic unit 38 similar to that shown in FIG. 4 and output. That is, each register 3
A total of 48 bits of 16 bits from 5,36,37 are input in parallel (1,4,7,10,13,17,20,23,26,29,33,36,39,42,4
After extracting the 5th and 48th bits, it is packed in 1/3 and output to the memory as 16-bit parallel data.
尚多数決回路20〜25の回路構成は第2図に示す多数決回
路と同一である。The circuit configurations of the majority circuits 20 to 25 are the same as those of the majority circuit shown in FIG.
上記実施例ではパターン情報の1ドットが2値であるも
のとして説明したが本発明は、これに限られるものでな
く、3値以上の場合に平均や中央値,最大値などを採用
するようにすることもでき、また、レジスタやアンド回
路,オア回路を個別的に設けることなく時間的に区分し
て共用させたり、汎用プロセッサで代替させることは極
めて容易になし得ることである。更に、平面的なパター
ン情報に限らず、立体的に配置されるパターンないしは
より高次元に分布するようなパターンであってもよい
し、無論1/3縮小に限定されるものではなく、1/4,1/5の
ような自然数分の1に縮小する場合や、代表値を1つで
なく2以上選んだり、グループ分けを部分的に重なるよ
うにすること許すならば2/3,3/5のような縮小にも適用
できる。In the above-mentioned embodiment, one dot of the pattern information is described as a binary value, but the present invention is not limited to this, and an average value, a median value, a maximum value, or the like may be adopted in the case of three or more values. Further, it is extremely easy to divide and share the registers, AND circuits, and OR circuits separately in time without providing them individually, or to substitute them with a general-purpose processor. Furthermore, the pattern information is not limited to two-dimensional, and may be a three-dimensionally arranged pattern or a pattern that is distributed in a higher dimension, and is of course not limited to 1/3 reduction. If you want to reduce to a natural number such as 4,1 / 5, select two or more representative values, or allow the groups to partially overlap. It can also be applied to reductions such as 5.
以上述べた様に本発明によればワード又はバイト単位に
読み出した画像データに対し、nビットづつの多数決を
取り、次いでこの多数決出力についてmビットづつの多
数決を取る様にしていることから、ワード又はバイト単
位でアドレス付けされたメモリに対するアクセスはその
ままワード単位,バイト単位に行なえばよいので、アク
セス時間は短かくてすみ、又多数決を取るので、原画に
対する忠実度も良い。As described above, according to the present invention, the image data read in units of words or bytes is subjected to a majority decision of n bits, and then the majority output of the majority decision is made of m bits. Alternatively, since the access to the memory addressed in byte unit may be performed in word unit or byte unit as it is, the access time is short and a majority decision is made, so that the fidelity to the original image is also good.
第1図は本発明の原理を示す図、第2図は本発明の一実
施例を示す図、第3図はメモリの各アドレスにおけるビ
ットと表示面上の対応位置関係を示す図、第4図はビッ
トをつめるための論理ユニットの一例を示す図、第5図
は本発明の他の実施例の動作を示す図、第6図は本発明
の他の実施例を示す図である。 図中1は画像メモリ、2a,2b,2c,8a,8b,8c、13,15はレジ
スタ、3,6,9,12はオアゲート、4,5,10,11はアンドゲー
ト、14は論理ユニットである。FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a diagram showing an embodiment of the present invention, FIG. 3 is a diagram showing a bit at each address of the memory and a corresponding positional relationship on the display surface, and FIG. FIG. 5 is a diagram showing an example of a logic unit for packing bits, FIG. 5 is a diagram showing an operation of another embodiment of the present invention, and FIG. 6 is a diagram showing another embodiment of the present invention. In the figure, 1 is an image memory, 2a, 2b, 2c, 8a, 8b, 8c, 13, 15 are registers, 3, 6, 9, 12 are OR gates, 4,5, 10, 11 are AND gates, 14 is a logic unit. Is.
Claims (1)
であり、画像メモリからワード単位又はバイト単位で読
み出されたn列の画像データについて、各列のドットを
nビット毎の小領域に区分することにより、n列×nド
ットの小領域からなる複数のマトリックスを構成し、各
マトリックスにおいて各列上の同一位置にあるn個のド
ットで多数決をとって代表ドット列を生成し、更に、該
代表ドット列をシフト手段によりそれぞれ0〜n−1ド
ットだけシフトしたn列のシフトドット列を生成し、シ
フト前の同一マトリックス内に属していたドットであっ
て、且つ該n列のシフトドット列において同一位置にあ
るn個のドットで多数決をとり、前記マトリックスにお
ける代表ドットを決定することを特徴とするパターン縮
小方法。1. Regarding image data of n columns read from an image memory in word units or byte units, which are image data on adjacent lines on a display, a dot in each column is a small area for every n bits. By dividing the matrix into a plurality of matrixes each consisting of a small region of n columns × n dots, a majority dot is taken from n dots at the same position on each column in each matrix to generate a representative dot column, Further, the representative dot row is shifted by 0 to n-1 dots by the shift means to generate n shift dot rows, which are dots belonging to the same matrix before the shift and A pattern reduction method, characterized in that a majority decision is made by n dots at the same position in a shift dot row, and a representative dot in the matrix is decided.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62282511A JPH0740294B2 (en) | 1987-11-09 | 1987-11-09 | Pattern reduction method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62282511A JPH0740294B2 (en) | 1987-11-09 | 1987-11-09 | Pattern reduction method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01123372A JPH01123372A (en) | 1989-05-16 |
| JPH0740294B2 true JPH0740294B2 (en) | 1995-05-01 |
Family
ID=17653399
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62282511A Expired - Lifetime JPH0740294B2 (en) | 1987-11-09 | 1987-11-09 | Pattern reduction method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0740294B2 (en) |
-
1987
- 1987-11-09 JP JP62282511A patent/JPH0740294B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01123372A (en) | 1989-05-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0099989B1 (en) | Image display control apparatus | |
| JPS6235679B2 (en) | ||
| US4783649A (en) | VLSI graphics display image buffer using logic enhanced pixel memory cells | |
| US4980923A (en) | Dilation/erosion conversion circuit | |
| JPH023515B2 (en) | ||
| US5117468A (en) | Image processing system capable of carrying out local processing for image at high speed | |
| US6031546A (en) | Image processing apparatus and method | |
| US5008852A (en) | Parallel accessible memory device | |
| JPH0740294B2 (en) | Pattern reduction method | |
| US5315540A (en) | Method and hardware for dividing binary signal by non-binary integer number | |
| EP0130340B1 (en) | Memory mapping and readout system | |
| US4805228A (en) | Cellular logic processor | |
| JP3553376B2 (en) | Parallel image processor | |
| JPH07107706B2 (en) | Line buffer with variable number of delay stages | |
| JPH0751370B2 (en) | Image forming device | |
| JP3861483B2 (en) | Halftone generation apparatus and halftone generation method | |
| JPS6041789B2 (en) | Matrix calculation circuit | |
| JPS63201784A (en) | Image processing device | |
| JP2989193B2 (en) | Image memory interleaved input / output circuit | |
| JPS63201779A (en) | Image processing device | |
| JPH0522238B2 (en) | ||
| JPS6398694A (en) | Vertical-horizontal converter for pattern data | |
| JP2647378B2 (en) | Image processing device | |
| JP2548286B2 (en) | Image data processor | |
| JPH08123683A (en) | Parallel processor device |