JPS61125293A - Mosaic coding device - Google Patents

Mosaic coding device

Info

Publication number
JPS61125293A
JPS61125293A JP59245780A JP24578084A JPS61125293A JP S61125293 A JPS61125293 A JP S61125293A JP 59245780 A JP59245780 A JP 59245780A JP 24578084 A JP24578084 A JP 24578084A JP S61125293 A JPS61125293 A JP S61125293A
Authority
JP
Japan
Prior art keywords
mosaic
image data
image
dots
pattern
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
JP59245780A
Other languages
Japanese (ja)
Inventor
Atsushi Shimoyama
霜山 篤
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 JP59245780A priority Critical patent/JPS61125293A/en
Publication of JPS61125293A publication Critical patent/JPS61125293A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To permit the mosaic coding of original image data at high speed without any help of a man by selecting the mosaic pattern suitable for the image to be drawn automatically by calculation process to perform the mosaic coding of the image data. CONSTITUTION:For example the original image is scanned for M times by an image scanner 7 which is for 2,048 dots (bits) for one line. Quantitization is made for the analog information on each picture element of 2,048XM dots obtained by a binary circuit and the value is stored in an image memory GM8. Frame information for image compression (coding), having (n)X(m) dots [(n) and (m) are positive integers.], which has the same shape with a mosaic pattern is cut out from the image memory GM8. This information is compared with all of the individual pattern sequencially, having the same (n)X(m) dots, in a mosaic pattern dictionary stored in a RAM4. Then, the mosaic pattern which resembles best to the cut-out image data is selected. The mosaic coding of the image data is achieved by performing the above process for all of the frame data of (n)X(m) dots stored in the image memory.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はモザイクコード化装置に係り、特に、例えばキ
ャプテンシステムにおけるセンタシステムに入力する画
像データを、モザイクパターンを組み合わせて作成する
方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a mosaic coding device, and particularly to a method for creating image data to be input to a center system in a captain system by combining mosaic patterns, for example.

最近の半導体技術の著しい進歩に伴って、メモリ素子の
大容量化、プロセッサの高速化が図られ、コード化が不
可能な画像データ(イメージデータ)も自由に扱えるよ
うになってきた。
With the recent remarkable progress in semiconductor technology, the capacity of memory elements has increased and the speed of processors has increased, making it possible to freely handle image data that cannot be encoded.

然しなから、現在実用化されているキャプテンシステム
のように、画像データを電話回線を通して送受信するよ
うな画像システムにおいては、伝送されるデータ量が多
い為、該電話回線の使用時間が問題となる。
However, in image systems that transmit and receive image data through telephone lines, such as the Captain System that is currently in practical use, the amount of data transmitted is large, so the usage time of the telephone line becomes a problem. .

一方、キャプテンシステムにおいては、(1)上記画像
データをその侭、電話回線で送受信するモードと、 (2)文字と同じように、個々のモザイクパターンをコ
ード化して送受信するモード、 とがあるが、画像データを複数個のモザイクパターンを
組み合わせて生成し、上記(2)のモードで、当該モザ
イクパターンのツー1゛化情報を送受信することにより
、上記電話回線の使用効率を向上させることができる。
On the other hand, the Captain System has two modes: (1) a mode in which the above image data is sent and received over a telephone line, and (2) a mode in which individual mosaic patterns are encoded and sent and received in the same way as characters. By generating image data by combining a plurality of mosaic patterns and transmitting/receiving the 2-1 conversion information of the mosaic pattern in the mode (2) above, it is possible to improve the usage efficiency of the telephone line. .

然して、従来、画像データのモザイクコート化を行う場
合、例えばモザイクパターン辞書に、格納されている複
数個のモザイクパターンを読み出して表示装置に表示し
、所謂会話形式により、画像データに最も適合したモザ
イクパターンを選択する方法をとっていた為、多大な時
間がかかる問題があり、効果的な画像データのモザイク
コード化方法が待たれていた。
Conventionally, when converting image data into a mosaic coat, for example, a plurality of mosaic patterns stored in a mosaic pattern dictionary are read out and displayed on a display device, and a mosaic pattern that best suits the image data is selected in a so-called conversational format. Since the method of selecting patterns was used, there was a problem that it took a lot of time, and an effective method for mosaic coding of image data was awaited.

〔従来の技術〕[Conventional technology]

第6図は、従来のモザイクコード化装置をブロック図で
示したもので、1はプロセッサ(以下、cpu と云う
)、2は表示装置(以下、CRT と云う)。
FIG. 6 is a block diagram showing a conventional mosaic encoding device, in which 1 is a processor (hereinafter referred to as CPU), and 2 is a display device (hereinafter referred to as CRT).

3はキーボード、4はランダムアクセスメモリ (以下
、RIMと云う)、5はファイルメモリ (以下、FD
と云う)である。
3 is a keyboard, 4 is a random access memory (hereinafter referred to as RIM), and 5 is a file memory (hereinafter referred to as FD).
).

第7図は、上記モザイクコード化装置を用いて、画像デ
ータのモザイクコード化を行う場合の動作ザイクコード
化装置におけるCRT 21の表示画面の例を示したも
ので、 ■は作成したい画像のイメージ ■はモザイク選択パターン ■はカーソル を示している。
FIG. 7 shows an example of the display screen of the CRT 21 in the operation saic coding device when image data is mosaic coded using the mosaic coding device described above. The mosaic selection pattern ■ indicates the cursor.

以下、第7図の流れ図と、第8図の表示画面を参照しな
がら、第6図によって従来のモザイクパターンによる画
像の作成方法を説明する。
Hereinafter, a conventional method of creating an image using a mosaic pattern will be explained with reference to FIG. 6, with reference to the flowchart of FIG. 7 and the display screen of FIG. 8.

先ず、本モザイクコード化装置に電源が投入されること
により、FD 5からRAM 4にオペレイティングシ
ステム(O3) 40.画像作成プログラム41等が初
期プログラムローディング(IPL)され、該初期プロ
グラムローディング(IPL)が完了すると、オペレイ
ティングシステム(O3) 40の管理の基に、CPU
 1において、上記画像作成プログラム41が実行され
、モザイクパターンの組み合わせによって画像を作成す
る為の画面がCRT 2十に表示される。
First, by turning on the power to this mosaic encoding device, the operating system (O3) is transferred from the FD 5 to the RAM 4. The image creation program 41 etc. are initial program loaded (IPL), and when the initial program loading (IPL) is completed, the CPU
1, the image creation program 41 is executed, and a screen for creating an image by combining mosaic patterns is displayed on the CRT 20.

ごこで、操作者がキーボード3上の画像作成キーを押下
すると、CI?T 2−1−の上記画面の特定位置(例
えば、左−に等)にカーソル■が表示される。
When the operator presses the image creation key on the keyboard 3, CI? A cursor ■ is displayed at a specific position (for example, on the left) on the screen of T2-1-.

次に、操作者は該カーソル■を、画像を作成したい位置
(Kl、に2)迄移動させる。(第7図、ステップ50
.第8図、Kl、に2参照) 続いて、キーボード3′上のモザイク表示キーを押下す
ると、第8図■に示したように、それぞれのモザイクパ
ターンに番号が付加されている複数個のモザイク選択パ
ターンが表示される。(第7図、ステップ51参照) この段階において、操作者がこれから描こうとする画像
■に適合するモザイクパターンを選択し、該当番号を、
例えばキーボード3上のテンキーで入力する。 (第7
図、ステップ52.54参照)若し、該表示されている
モザイク選択パターン■の中に、適合パターンが発見で
きない場合は、キーボード3上の特定キーを押下して、
モザイク選択パターン表示変更指示を行う。(第7図、
ステップ53参照) このようにして、画像の作成に適合したモザイクパター
ンの番号が入力されると、カーソル位置(Kl、に2)
■に、当該選択されたモザイクパターンが表示される。
Next, the operator moves the cursor (2) to the position (Kl, 2) where he wants to create an image. (Figure 7, step 50
.. (See Figure 8, Kl, 2) Next, when you press the mosaic display key on the keyboard 3', multiple mosaic patterns with numbers added to each mosaic pattern will be displayed as shown in Figure 8 (■). The selected pattern will be displayed. (See Step 51 in Figure 7) At this stage, the operator selects a mosaic pattern that matches the image ■ that he is about to draw, and enters the corresponding number.
For example, input using the numeric keypad on keyboard 3. (7th
(See steps 52 and 54 in the figure) If a matching pattern cannot be found among the displayed mosaic selection patterns ■, press a specific key on the keyboard 3,
Instructs to change the mosaic selection pattern display. (Figure 7,
(See step 53) In this way, when the mosaic pattern number suitable for image creation is input, the cursor position (Kl, 2) is input.
The selected mosaic pattern is displayed in ().

 (第7図、ステップ55.第8図、Kl、に2参照) 当該モザイクパターンが、作成したい画面に対して、最
も適当であることが確認できれば、カーソル■を次の位
置(K3)に移動して同じ操作を繰り返す為にステップ
50に戻るが、該選択したモザイクパターンが不適当で
あると、ステップ51に戻って、モザイク選択キーを押
下する。(第7図、ステップ56参照) 〔発明が解決しようとする問題点〕 このように、従来方式においては、所謂会話形式で、描
きたい画像との適合を確認しながら、モザイクパターン
を組み合わせて、画像を生成していたので、1つの画像
を作成するのに長い時間(例えば、数時間)がかかると
云う問題があった。
(See Figure 7, Step 55. Figure 8, Kl, 2) If you have confirmed that the mosaic pattern is most appropriate for the screen you want to create, move the cursor ■ to the next position (K3). Then, the process returns to step 50 to repeat the same operation, but if the selected mosaic pattern is inappropriate, the process returns to step 51 and the mosaic selection key is pressed. (See step 56 in FIG. 7) [Problem to be solved by the invention] As described above, in the conventional method, mosaic patterns are combined in a so-called conversational manner while checking the compatibility with the image to be drawn. Since images were generated, there was a problem in that it took a long time (for example, several hours) to create one image.

本発明は上記従来の欠点に鑑み、人手を介さないで、計
算機処理により自動的に、描きたい画像に適合したモザ
イクパターンを選択して、画像データのモザイクニア−
1化を行う方法を提供することを目的とするものCある
In view of the above-mentioned drawbacks of the conventional art, the present invention automatically selects a mosaic pattern suitable for the image to be drawn by computer processing without human intervention, and creates a mosaic near image data.
There is a method C whose purpose is to provide a method for unification.

〔問題点を解決する為の手段〕[Means for solving problems]

ごの11的は、画像データ入力装置からの画像データを
量子化して画像メモリへ格納後、n X m l’ソト
 (n、mは正の整数)の画像圧縮用の枠を設定して、
該枠内の画像データを読み出す第1の手段と、同しnX
mドツトからなる複数個のモザイクパターンを記憶して
いるモザイクパターン辞書から読み出したモザイクパタ
ーンと、」−記憶1の手段で読み出した画像データとの
照合を行い、不一致度が最小のモリ2イクパターンを1
つ、又は複数個抽出し、該抽出されたモザイクパターン
から1つをi!沢する第2の手段とを設け、上記第1の
手段と、第2の手段とによって得られたモザイクパター
ンによって、−に記画像データをモザイクコード化する
本発明のモザイクコート化装置によって達成される。
The eleventh point is to quantize the image data from the image data input device and store it in the image memory, and then set a frame for image compression of n x m l' soto (n, m are positive integers).
a first means for reading image data within the frame;
A mosaic pattern read from a mosaic pattern dictionary that stores a plurality of mosaic patterns each consisting of m dots is compared with the image data read out by means of storage 1, and a Mori 2 pattern with the minimum degree of mismatch is found. 1
One or more mosaic patterns are extracted, and one of the extracted mosaic patterns is i! The present invention is achieved by the mosaic coating apparatus of the present invention, which further comprises a second means for generating a code, and converts the image data described in - into a mosaic code using the mosaic pattern obtained by the first means and the second means. Ru.

〔作用〕[Effect]

即ち、本発明によれば、原画像を例えば1ライン204
8ドツト (ビット)のイメージスキャナでM回走査し
、得られた2048 X M ドツトの各画素について
のアナログ情報を、2値化回路で量子化して画像メモリ
に格納した後、該画像メモリからn×mドツト(n、m
は正の整数)の、モザイクパターンと同じ形の画像圧縮
用(コード化用)の枠内情報を切り出し、RAMζご格
納されているモザイクパターン辞書の中の、同しnxm
ドツトの個々のモザイクパターンの総てと、逐次照合比
較して、上記切り出されている画像データに最も近いモ
ザイクパターンを選択することを、上記画像メモリに格
納されているn X m l’ソトの総ての枠データに
ついて行うことにより、該画像データをモザイクコード
化するようにしたものであるので、原画像データについ
てのモザイクコード化が、人手を介することなく、高速
に行うことができる効果がある。
That is, according to the present invention, the original image is divided into, for example, one line 204.
Scanning is performed M times with an 8-dot (bit) image scanner, and the analog information for each pixel of the obtained 2048 x M dots is quantized by a binarization circuit and stored in an image memory. ×m dot (n, m
is a positive integer), cut out the frame information for image compression (encoding) that has the same shape as the mosaic pattern, and use the same nxm in the mosaic pattern dictionary stored in RAMζ.
The n x m l' sort stored in the image memory is used to select the mosaic pattern closest to the cut out image data by sequentially comparing and comparing all of the individual mosaic patterns of dots. By performing this on all frame data, the image data is converted into a mosaic code, so the effect is that the mosaic code on the original image data can be performed at high speed without human intervention. be.

〔実施例〕〔Example〕

第1図は本発明の一実施例をブロック図で示したもので
、第6図と同じ記号は同し対象物を示し、7.8が本発
明を実施するのに必要な機能ブロックで、7はイメージ
スキャナ、8ば画像メモリ (以下、GMと云う)であ
る。本発明を実施する為には、この他に、RAM J上
に画像データ切り出しプログラム42.及び照合プログ
ラム43を用意する必要がある。
FIG. 1 is a block diagram showing an embodiment of the present invention, where the same symbols as in FIG. 6 indicate the same objects, and 7.8 are functional blocks necessary to implement the present invention. 7 is an image scanner, and 8 is an image memory (hereinafter referred to as GM). In order to carry out the present invention, in addition to this, an image data cutting program 42. It is also necessary to prepare a verification program 43.

第2図は本発明の詳細な説明する図であり、第3図はn
Xm)ソトの画像データとモザイクパターンとを照合す
る場合の概念を説明する図であり、第4図はモザイクパ
ターン辞書の構成を示した図であり、第5図は第3図の
照合動作を模式的に示した図である。
FIG. 2 is a diagram explaining the present invention in detail, and FIG. 3 is a diagram explaining the present invention in detail.
Xm) This is a diagram explaining the concept of comparing image data of Soto with a mosaic pattern, FIG. 4 is a diagram showing the structure of a mosaic pattern dictionary, and FIG. It is a diagram schematically shown.

先ず、第1図を参照しながら第2図によって、本発明の
詳細な説明する。
First, the present invention will be explained in detail with reference to FIG. 2 while referring to FIG.

CPU lが画像データ切り出しプログラム42を実行
することにより、以下の処理が行われる。
When the CPU 1 executes the image data cutting program 42, the following processing is performed.

即ち、1ラインの画素数が、例えば2048ドツトから
なるイメージスキャナ7によって、媒体に描かれている
画像をM回走査し、図示していない2値化回路によって
、O/1の2値化データに量子化し、GM8に格納する
。(“a”参照)次に、該GMB上の、上記22O48
Xドツトの画像データ上に、n×mドツト (本例にお
いては、8×12ドツト)からなる画像圧縮用(コード
化用)の枠81を設定し、該画像データのO番地から順
次取り出して、RAM 41の特定エリア1に格納する
That is, an image drawn on a medium is scanned M times by an image scanner 7 in which the number of pixels per line is, for example, 2048 dots, and a binarization circuit (not shown) converts the image into O/1 binarized data. Quantize it and store it in GM8. (See “a”) Next, the above 22O48 on the GMB
An image compression (encoding) frame 81 consisting of n×m dots (8×12 dots in this example) is set on the image data of , stored in specific area 1 of RAM 41.

この状態を示したものが“b″である。本図において、
斜線部分(黒)は論理°l゛を示し、白部分は論理°0
°を示している。
“b” indicates this state. In this figure,
The shaded area (black) indicates logic °l゛, and the white area indicates logic °0
° is shown.

続いて、照合プログラム43を実行することにより、以
下の処理が実行される。即ち、 FD5からモザイクパターン辞書“C”を取り出し、R
AM 4の特定エリアJに格納した後、スタート番地に
あるn×mドツト (本例においては、8×12ドツト
)のモザイクパターンから順次読み出して、上記1番地
に格納されている画像データ“b″と画素(ドツト)単
位で照合し、不一致度の最小のモザイクパターンを選択
し[”d”で示す)、そのモザイクパターン番号を、該
画像データのモザイクコート化番号とする。
Subsequently, by executing the verification program 43, the following processing is performed. That is, take out the mosaic pattern dictionary “C” from FD5 and
After storing it in the specific area J of AM 4, it sequentially reads out the mosaic pattern of n x m dots (8 x 12 dots in this example) at the start address, and reads the image data “b” stored at address 1 above. '' in pixel (dot) units, selects the mosaic pattern with the smallest degree of mismatch [indicated by "d"], and sets its mosaic pattern number as the mosaic coating number of the image data.

本図の例においては、b″の画像データと不一致度が最
小のモザイクパターンとして、モザイクパターン辞書“
C”から番号24のモザイクパターン“e”がiI訳さ
れており、その出力コードは“24″(「)と云うこと
になる。
In the example in this figure, the mosaic pattern dictionary "
The mosaic pattern "e" numbered 24 from "C" is translated into iI, and its output code is "24"(").

このような処理を、GM8に格納されている上記画像デ
ータ1−に設定されている、nXmトソトの総ての画像
圧縮用枠81について行うことにより、当該画像データ
のモザイクコード化が行われることになる。
By performing such processing on all the image compression frames 81 of nXm tosoto set in the above-mentioned image data 1- stored in GM8, mosaic coding of the image data is performed. become.

上記“d”で示した照合方法の1例を、第3図〜第5図
を用いて説明する。
An example of the matching method shown in "d" above will be explained using FIGS. 3 to 5.

この方法は、一般にはパターンマツチ法として知られて
いるもので、光学的文字認識装置(OCR)における文
字認識に用いられていて、例えばモザイクパターンの各
ドツトに重み(重要度)0〜3を付加し、比較対象の画
像データとドツト対応で、−1−記重みとの乗算を行い
、不一致度を算出しようとするものである。
This method is generally known as the pattern matching method, and is used for character recognition in optical character recognition (OCR). For example, each dot in a mosaic pattern is assigned a weight (importance) of 0 to 3. In this method, the degree of mismatch is calculated by multiplying the dots by -1- weights in correspondence with the image data to be compared.

上記の重みについては、それぞれ 0:無視しで良い。For the above weights, respectively 0: You can ignore it.

1:重みが低い。1: Weight is low.

2;重みが普通。2; Weight is normal.

3:重みが高い。3: High weight.

とし、例えば各モザイクパターンの黒、白の境界付近の
ドツトについては、そこの重みを低くし、周辺部を高く
するようにしている。このような重み付けをすることに
より、精度の高い照合を行うことができる。
For example, for dots near the boundaries between black and white in each mosaic pattern, the weight is lowered there, and the weight is set higher at the periphery. By weighting in this way, highly accurate matching can be performed.

第3図において、Aは画像データで、 °O゛は白。In Figure 3, A is image data and °O゛ is white.

1゛は黒を示している。旧、82はモザイクパターン辞
書の重み付けの例を示しており、−符号は白を示し、十
符号は黒を示している。尚、本例においては、説明の便
宜上4×6ドツトのモザイクパターンとして示している
1 indicates black. 82 shows an example of weighting of the mosaic pattern dictionary, where the - sign indicates white and the 10 sign indicates black. In this example, for convenience of explanation, a mosaic pattern of 4×6 dots is shown.

今、画像データ八とモザイクパターン81との照合を行
った場合には、モザイクパターン81の各ドツトの内、
*印のついているドツトが不一致であるので、それぞれ
の重みから 不一致度・I+1+3・5 であることが分かる。
Now, when image data 8 is compared with mosaic pattern 81, among the dots of mosaic pattern 81,
Since the dots marked with * do not match, it can be seen from the respective weights that the degree of mismatch is I+1+3.5.

次に、画像データAとモザイクパターンB2との照合を
行った場合には、同じようにして、不一致度−3+3+
1+2+1+3+1・14であることが分かる。
Next, when comparing image data A and mosaic pattern B2, in the same way, the degree of mismatch is -3+3+
It can be seen that it is 1+2+1+3+1.14.

従って、この場合には該不一致度の小さいモザイクパタ
ーン旧を選択して、そのコード番号を該画像データAの
コートとするのである。
Therefore, in this case, the old mosaic pattern with the smaller degree of mismatch is selected and its code number is used as the coat of the image data A.

第4図はモザイクパターン辞書“C”の1例を示したも
ので、C1は辞書パターン、 C2,C3はマスクパタ
ーンを示しており、該2枚のマスクパターンに記憶され
ている、各ドツト対応のO/1情報によって、2’(n
・0.l)で示す重みを示すように構成されている。
FIG. 4 shows an example of a mosaic pattern dictionary "C", where C1 is a dictionary pattern, C2 and C3 are mask patterns, and each dot corresponding to the one stored in the two mask patterns is shown in FIG. 2'(n
・0. It is configured to indicate the weight indicated by l).

従って、マスクパターンC3を2°(n=0)とし、マ
スクパターンC2を2°(n・1)とすることにより、
該マスクパターンC3,C2の各ドツト対応に記憶され
ている上記0/1情報から、前記0〜3の重みを知るこ
とができる。
Therefore, by setting the mask pattern C3 to 2° (n=0) and setting the mask pattern C2 to 2° (n・1),
The weights of 0 to 3 can be known from the 0/1 information stored corresponding to each dot of the mask patterns C3 and C2.

上記辞書パターンC1,マスクパターンC2,C3に記
憶されているドツト対応のO/1情報から、第3図で説
明した不一致度を計算する具体的な方法を第5図によっ
て説明する。先ず、 fllGM Bに格納されている画像データから、前記
8×12ドツトの枠内データを、RAM 4の特定エリ
アIに格納し、そのlライン(1バイト−8ドツト)の
データをRAM 4のG番地に格納する。
A specific method for calculating the mismatch degree explained in FIG. 3 from the O/1 information corresponding to dots stored in the dictionary pattern C1 and mask patterns C2 and C3 will be explained with reference to FIG. First, from the image data stored in fllGMB, the data within the 8x12 dot frame is stored in the specific area I of RAM 4, and the data of that 1 line (1 byte - 8 dots) is stored in RAM 4. Store at address G.

FD 5からモザイクパターン辞書C1〜C3をRAM
 4上の特定エリアJに格納し、最初モザイクパターン
番号“O゛の辞書パターンC1について、その第1ライ
ンのデータ(1バイト=8ドツト)を、RAM4のD番
地に格納する。続いて、該辞書パターンCIに対応する
マスクパターンC2,C3の同じ第1ラインのデータを
、それぞれMl、M2番地に格納する。
RAM mosaic pattern dictionary C1-C3 from FD 5
For the dictionary pattern C1 with the mosaic pattern number "O", the first line data (1 byte = 8 dots) is stored in the D address of the RAM 4. Data of the same first line of mask patterns C2 and C3 corresponding to dictionary pattern CI are stored at addresses M1 and M2, respectively.

(第5図、P旧参照) (21CPU 1は、上記RAM 4に設定されている
ラインデータ(G)、(ロ)を読み出して、(G)  
 (ロ) =6G なる演算を行う。(第5図、PM2参照)(3)続いて
、CI”Ll l は、 (G)・(Ml)−5旧゛ なる演算と、(旧゛)のついて“1゛の数をカウントし
て旧°°番地に格納し、該(旧°′)に対して1ビツト
左シフト、即ら(×2)なる演算を施す。(第5図、P
M3参照) (4)続いて、CPII l は、 (G)・(M2)→M2’ なる演算と、(M2’)について°l′の数をカウント
してM2’ 番地に格納する。(第5図、PM4参照)
(5)最後に、CPU 1 は、 (旧’)+(M2’) −>PM なる演算を行うことにより、当該1ラインデータについ
ての不一致度が算出できる。(第5図、PM5参照) 従って、上記(1)〜(5)の演算を、−1二記8×】
2ドツトの画像データの各ライン(合計12ライン)に
ついて繰り返し、各ラインの不一致度を合計して、当該
画像データのモザイクパターン°O゛番に対する不一致
度を得ることができる。
(See Figure 5, old P) (21CPU 1 reads the line data (G) and (B) set in the above RAM 4, and
(b) Perform the calculation =6G. (See Figure 5, PM2) (3) Next, CI"Ll l is calculated by performing the operation (G)・(Ml)-5 old" and counting the number of "1" for (old). It is stored at the old °° address, and the (old °') is shifted to the left by 1 bit, that is, the operation (x2) is performed. (Figure 5, P
(See M3) (4) Next, CPII l performs the operation (G)·(M2)→M2', counts the number of °l' for (M2'), and stores it at address M2'. (See Figure 5, PM4)
(5) Finally, the CPU 1 can calculate the degree of mismatch for the one line data by performing the following calculation: (old')+(M2') ->PM. (Refer to Figure 5, PM5) Therefore, the calculations in (1) to (5) above are performed as follows: -1 2 x 8 x]
By repeating this process for each line of 2-dot image data (12 lines in total) and summing the degree of inconsistency for each line, it is possible to obtain the degree of inconsistency of the image data with respect to mosaic pattern number 00.

該不一致度算出動作を、総てのモザイクパターンについ
て行い、その中で最も不一致度の小さいモザイクパター
ンの番号を選択して、その番号を当該8X]2Fノドの
画像データに対するモザイクコードとする。
The mismatch calculation operation is performed for all mosaic patterns, and the number of the mosaic pattern with the smallest mismatch is selected, and that number is used as the mosaic code for the image data of the 8X]2F throat.

上記パターンマツチ動作を、前記GM8に格納されてい
る画像データの中の、8×12ドツトの枠内データの各
々について行うことにより、該画像データのモザイクコ
ード化が完了する。
By performing the above pattern matching operation on each piece of data within the 8×12 dot frame in the image data stored in the GM 8, the mosaic encoding of the image data is completed.

上記の不一致度の算出過程において、8×12ドツトの
1つの画像データについて、不一致度の最も小さいモザ
イクパターンが複数個得られた場合には、例えば、その
最も若番のモザイクパターンを選択して、当該画像デー
タに対するモザイクコードとしても良いが、一般には、
複数個の同じものから1つを選択する手順に帰着するの
で、特に限定する必要はないことは明らかである。
In the process of calculating the degree of mismatch described above, if multiple mosaic patterns with the smallest degree of mismatch are obtained for one image data of 8 × 12 dots, for example, the mosaic pattern with the smallest number is selected. , may be used as a mosaic code for the image data, but in general,
It is clear that there is no need to be particularly limited since the procedure boils down to selecting one from a plurality of the same items.

上記詳細に説明した、8×12ドツトの画像データに対
して、モザイクパターン辞書から、その画像データに最
も近いモザイクパターンを選択する当該パターンマツチ
法は1つの例であって、本発明の主旨から考えて、この
方法に限るものでないことは云う迄もないことであり、
本発明の主眼の1つは、GM8に格納されている画像デ
ータ(例えば、2048 X M  ドツト)に、モザ
イクパターンの大きさに等しい、例えば8×12ドツト
の画像圧縮用の枠を設定して、その枠内データを取り出
す所にあり、本発明の主眼の他の1つは、上記画像デー
タから取り出された画像圧縮用枠内データに対して、モ
ザイクパターン辞書から、該枠内データに最も近いモザ
イクパターンを選択して、そのモザイクパターン番号を
、当該枠内画像データに対するコードとする所にある。
The pattern matching method described in detail above, in which a mosaic pattern closest to the image data of 8×12 dots is selected from the mosaic pattern dictionary, is one example, and is not based on the gist of the present invention. It goes without saying that this method is not limited to this method,
One of the main points of the present invention is to set an image compression frame of, for example, 8 x 12 dots, which is equal to the size of the mosaic pattern, to the image data (for example, 2048 x M dots) stored in the GM8. , and the other main focus of the present invention is to extract the data within the frame from the mosaic pattern dictionary for the frame data for image compression extracted from the image data. A close mosaic pattern is selected and the mosaic pattern number is used as a code for the image data within the frame.

〔発明の効果〕〔Effect of the invention〕

以上、詳細に説明したように、本発明のモザイクコード
化装置は、原画像を例えば1ライン2048ドツト (
ピント)のイメージスキャナでM回走査し、得られた2
2O48X ドツトの各画素についてのアナログ情報を
、2値化回路で量子化して画像メモリに格納した後、該
画像メモリからnxmドソトの、モザイクパターンと同
じ形の枠内情報を切り出し、RAMに格納されているモ
ザイクパターン辞書の中の、同じnXmドツトの個々の
モザイクパターンの総てと、逐次照合比較して、上記切
り出されている画像データに最も近いモザイクパターン
を選択することを、上記画像メモリに格納されているn
xmドツトの総ての枠データについて行うことにより、
該画像データをモザイクコード化するようにしたもので
あるので、原画像データについてのモザイクコード化が
、人手を介することなく、高速に行うことができる効果
がある。
As described in detail above, the mosaic coding device of the present invention converts an original image into, for example, 2048 dots per line (
Scanned M times with an image scanner (Focus), the obtained 2
Analog information about each pixel of the 2O48X dot is quantized by a binarization circuit and stored in an image memory. Then, information within the frame of the nxm dot in the same shape as the mosaic pattern is cut out from the image memory and stored in the RAM. The image memory is programmed to select the mosaic pattern closest to the cut out image data by sequentially comparing and comparing all the individual mosaic patterns of the same nXm dots in the mosaic pattern dictionary. Stored n
By doing this for all frame data of xm dot,
Since the image data is converted into a mosaic code, the original image data can be converted into a mosaic code at high speed without manual intervention.

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

第1図は本発明の一実施例をプロ・ツク図で示した図。 第2図は本発明の詳細な説明する図。 第3図はnXmドツトの画像データとモザイクパターン
とを照合する場合の概念を説明する図。 第4図はモザイクパターン辞書の構成を示した図。 第5図は第3図の照合動作を模式的に示した図。 第6図は従来のモザイクコード化装置をブロック図で示
した図。 第7図は従来方式によって、画像テークのモザイクコー
ト化を行う場合の動作を流れ図で示した図。 第8図は従来のモザイクコート化装置における表示装置
上の表示画面の例を示した図5 である。 図面において、 1はプロセッサ(CPU)、  2は表示装置(CRT
) 。 3はキーボード。 4はランダムアクセスメモリ(RAM)。 40はオペレイティングシステム(O3)。 41は画像作成プロゲラ14゜ 42は画像データ切り出しプログラム。 43は照合プログラム。 1、J はメモリエリア。 G、D、旧、旧°、旧”、M2.M2”はメモリ番地。 5はファイルメモリ(FD)。 7はイメージスキャナ、8は画像メモリ(GM)。 箇はモザイク選択パターン。 CIは辞書パターン、   C2,C3はマスクパター
ン。 をそれぞれ示す。
FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is a diagram illustrating the present invention in detail. FIG. 3 is a diagram explaining the concept of comparing nXm dot image data and a mosaic pattern. FIG. 4 is a diagram showing the structure of a mosaic pattern dictionary. FIG. 5 is a diagram schematically showing the matching operation in FIG. 3. FIG. 6 is a block diagram showing a conventional mosaic coding device. FIG. 7 is a flowchart showing the operation when performing mosaic coating of an image take using a conventional method. FIG. 8 is a diagram showing an example of a display screen on a display device in a conventional mosaic coating apparatus. In the drawings, 1 is a processor (CPU), 2 is a display device (CRT), and 2 is a display device (CRT).
). 3 is the keyboard. 4 is random access memory (RAM). 40 is an operating system (O3). 41 is an image creation progera 14. 42 is an image data cutting program. 43 is a verification program. 1. J is the memory area. G, D, old, old °, old", M2. M2" is the memory address. 5 is a file memory (FD). 7 is an image scanner, and 8 is an image memory (GM). Items are mosaic selection patterns. CI is a dictionary pattern, C2 and C3 are mask patterns. are shown respectively.

Claims (1)

【特許請求の範囲】[Claims] 画像データ入力装置からの画像データを量子化して画像
メモリへ格納後、n×mドット(n、mは正の整数)の
画像圧縮用の枠を設定して、該枠内の画像データを読み
出す第1の手段と、同じn×mドットからなる複数個の
モザイクパターンを記憶しているモザイクパターン辞書
から読み出したモザイクパターンと、上記第1の手段で
読み出した画像データとの照合を行い、不一致度が最小
のモザイクパターンを1つ、又は複数個抽出し、該抽出
されたモザイクパターンから1つを選択する第2の手段
とを設け、上記第1の手段と、第2の手段とによって得
られたモザイクパターンによって、上記画像データをモ
ザイクコード化することを特徴とするモザイクコード化
装置。
After quantizing the image data from the image data input device and storing it in the image memory, a frame for image compression of n×m dots (n and m are positive integers) is set, and the image data within the frame is read out. The first means compares the mosaic pattern read from a mosaic pattern dictionary storing a plurality of mosaic patterns consisting of the same n×m dots with the image data read by the first means, and there is no discrepancy. a second means for extracting one or more mosaic patterns with a minimum degree and selecting one from the extracted mosaic patterns; 1. A mosaic coding device for converting the image data into a mosaic code using a generated mosaic pattern.
JP59245780A 1984-11-20 1984-11-20 Mosaic coding device Pending JPS61125293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59245780A JPS61125293A (en) 1984-11-20 1984-11-20 Mosaic coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59245780A JPS61125293A (en) 1984-11-20 1984-11-20 Mosaic coding device

Publications (1)

Publication Number Publication Date
JPS61125293A true JPS61125293A (en) 1986-06-12

Family

ID=17138708

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59245780A Pending JPS61125293A (en) 1984-11-20 1984-11-20 Mosaic coding device

Country Status (1)

Country Link
JP (1) JPS61125293A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990006985A (en) * 1997-06-18 1999-01-25 크롤 티모시 렉스 Lossy compression method and processor of mosaic image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990006985A (en) * 1997-06-18 1999-01-25 크롤 티모시 렉스 Lossy compression method and processor of mosaic image

Similar Documents

Publication Publication Date Title
JP3345350B2 (en) Document image recognition apparatus, method thereof, and recording medium
US6031938A (en) Image encoding apparatus with selective Markov and predictive coding
JPH03119486A (en) Method of compressing information included in entered form for storage or transfer
WO1991000666A2 (en) Method and apparatus for processing digital data
CN112118449B (en) Method and device for compressing and decompressing image
JPH0749927A (en) Pattern recognizing method
JPH0215782A (en) Picture encoding system
CN112150362A (en) Picture preprocessing solution
US6341178B1 (en) Method and apparatus for lossless precompression of binary images
JPS61125293A (en) Mosaic coding device
JP3432039B2 (en) Image encoding method and apparatus
JPH1117959A (en) Run length coding method for binary image and recording medium storing run length coding program
JPH07118002B2 (en) Image processing device
JP2713930B2 (en) Image processing method
CN115766976B (en) Image display system and control method thereof
JPH08265753A (en) Method and apparatus for compressing/decompressing standardized portrait picture
JP2789622B2 (en) Character / graphic area determination device
JP4034385B2 (en) Multi-color image encoding apparatus and method, and multi-color image decoding apparatus and method
JP3850040B2 (en) Pattern recognition method and apparatus using contextual correlation
JPH05242234A (en) Method for compressing color picture data
JPH09121286A (en) Method and device for compressing picture data
JP3146092B2 (en) Encoding device and decoding device
JP3648943B2 (en) Multi-color image encoding apparatus and method, and multi-color image decoding apparatus and method
JP2601169B2 (en) Image data compression coding system
JPH0541805A (en) Picture data compression method and its device