JPH0548658B2 - - Google Patents

Info

Publication number
JPH0548658B2
JPH0548658B2 JP24348384A JP24348384A JPH0548658B2 JP H0548658 B2 JPH0548658 B2 JP H0548658B2 JP 24348384 A JP24348384 A JP 24348384A JP 24348384 A JP24348384 A JP 24348384A JP H0548658 B2 JPH0548658 B2 JP H0548658B2
Authority
JP
Japan
Prior art keywords
mode
code
change point
image data
encoded
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
Application number
JP24348384A
Other languages
Japanese (ja)
Other versions
JPS61123283A (en
Inventor
Yoshuki Okada
Shigeru Yoshida
Tooru Sato
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 JP24348384A priority Critical patent/JPS61123283A/en
Publication of JPS61123283A publication Critical patent/JPS61123283A/en
Publication of JPH0548658B2 publication Critical patent/JPH0548658B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、二次元符号化により画像データを圧
縮して、高速フアクシミリ伝送を行わせる為の画
像データ圧縮方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image data compression method for compressing image data by two-dimensional encoding and performing high-speed facsimile transmission.

〔従来の技術〕[Conventional technology]

デイジタル網フアクシミリ方式に於ける画像デ
ータの圧縮方式として、現在モデフアイド・リー
ド(Modified READ)方式(以下「MR方式」
と称する。)が標準方式の一つとして採用されて
いる。のMR方式は、符号化走査線とその直前の
参照走査線との2走査線を符号化の対象とし、符
号化走査線上の白画素から黒画素へ、又黒画素か
ら白画素へ変化する点(以下「変化点」と称す
る。)の位置を参照走査線上の同色調の変化点と
の相対距離(以下「ずれ」と称する。)、又は符号
化走査線上の反色調の直前変化点との相対距離
(以下「ランレングス」と称する。)で符号化する
方式である。
Currently, the Modified READ method (hereinafter referred to as the "MR method") is used as a compression method for image data in the digital network facsimile method.
It is called. ) has been adopted as one of the standard methods. The MR method targets two scanning lines, the encoding scanning line and the reference scanning line immediately before it, and detects the points where a white pixel on the encoding scanning line changes from a white pixel to a black pixel, and from a black pixel to a white pixel. (hereinafter referred to as the "change point") is determined by the relative distance (hereinafter referred to as "shift") to the change point of the same color tone on the reference scanning line, or to the immediately preceding change point of the opposite color tone on the encoded scan line. This is a method of encoding using relative distance (hereinafter referred to as "run length").

MR方式の変化点モードには、パス、垂直、水
平の三つのモードがあり、例えば、第9図のaに
示すように、参照走査線上の変化点b1の黒画素か
ら次の変化点b2の白画素までの間Pの黒画素は、
符号化走査線上の変化点a0の白画素から次の変化
点a1の黒画素の直前の白画素a0′までの間の連続
した白画素により、符号化走査線上の黒画素とは
連続しないので、これをパス・モードとし、又b
に示すように、参照走査線上の変化点b1の黒画素
と次の変化点b2の白画素との間の黒画素と、符号
化走査線上の変化点a1の黒画素と次の変化点a2
白画素との間の黒画素とが連続している場合を垂
直モードとするものである。しかし、水平方向に
4画素以上のずれがある場合〔V(1 1)≧4〕を
水平モードとするものである。
There are three changing point modes in the MR method: pass, vertical, and horizontal. For example, as shown in Figure 9a, from the black pixel at changing point b 1 on the reference scanning line to the next changing point b The black pixel of P up to the white pixel of 2 is
The continuous white pixels from the white pixel at the change point a 0 on the encoded scan line to the white pixel a 0 ′ immediately before the black pixel at the next change point a 1 are continuous with the black pixels on the encoded scan line. Since it does not work, set this as pass mode, and
As shown in , the black pixel between the black pixel at change point b 1 on the reference scan line and the white pixel at the next change point b 2 , and the black pixel at change point a 1 on the encoded scan line and the next change The case where the black pixel between the white pixel at point a2 and the black pixel are continuous is considered to be the vertical mode. However, when there is a shift of 4 pixels or more in the horizontal direction [V( 1 1 )≧4], the horizontal mode is set.

このような各モードに対応し且つ参照走査線上
の変化点b1,b2及び符号化走査線上の変化点a0
a1,a2のランレングスやずれ等の関係によつて、
第10図に示すように、符号が割当てられるもの
である。
The changing points b 1 , b 2 on the reference scanning line and the changing points a 0 , on the encoding scanning line correspond to each of these modes.
Depending on the relationship between a 1 and a 2 run lengths and deviations,
As shown in FIG. 10, codes are assigned.

又水平モードに対しては、モデイフアイド・ハ
フマン(Modified Huffman)方式(以下「MH
方式」と称する。)により、0〜63のランレング
スをそれぞれ符号化したターミネーテイング符号
と、64の整数倍のランレングスをそれぞれ符号化
したメイクアツプ符号との組合せでランレングス
が表され、2560のランレングスまでのメイクアツ
プ符号が定められている。
For horizontal mode, the Modified Huffman method (hereinafter referred to as “MH
``Method''. ), a run length is expressed by a combination of a termination code that encodes each run length from 0 to 63, and a make-up code that encodes each run length that is an integer multiple of 64. A code is specified.

第10図に於ける水平モードのMR符号中の
MHは、ターミネーテイング符号とメイクアツプ
符号との組合せで符号化されたMH符号を示す。
又通常の画像データに於いては、その中の変化点
の50%が垂直モードのV(0)で表現することが
でき、又30%が垂直モードVR(1),VL(1)で表
現することできるから、これらに対して符号長1
又は3の短い符号を割当てて、高圧縮率を得てい
るものである。
In the horizontal mode MR code in Figure 10,
MH indicates an MH code encoded by a combination of a terminating code and a make-up code.
In addition, in normal image data, 50% of the changing points can be expressed in the vertical mode V (0), and 30% can be expressed in the vertical mode V R (1), V L (1) For these, the code length is 1.
Alternatively, a short code of 3 is assigned to obtain a high compression rate.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

画像データは、一般的に横の相関だけでなく、
縦の相関も大きい場合が多いものである。即ち、
画像の境界線を見ると、横だけでなく縦にもつな
がつていると考えられる。前述のMR方式に於い
ては、参照走査線と符号化走査線との2走査線だ
けを対象として符号化を行うものであるから、縦
の相関を充分に利用しているものはない。
Image data generally has not only horizontal correlations, but also
Vertical correlation is also often large. That is,
If you look at the boundaries of the images, you can see that they are connected not only horizontally but also vertically. In the above-mentioned MR method, since encoding is performed using only two scanning lines, the reference scanning line and the encoding scanning line, there is no method that fully utilizes the vertical correlation.

例えば、第11図に示すように、横500×縦300
の長方形の図形の画像データをMR方式で符号化
した場合、横方向は黒ランレングスBRL500であ
るから、BRL52のターミネーテイング符号と、
BRL448のメイクアツプ符号との合計24ビツトに
なり、24/500の圧縮率となる。しかし、縦の境界
線は、総て垂直モードのV(0)で表すことにな
り、1ビツト構成であるが、、長方形の両側の境
界線はビツト・バイ・ビツト形式で符号化される
ことになり、圧縮効率が低い欠点があつた。
For example, as shown in Figure 11, the width is 500 x the height is 300.
When image data of a rectangular figure is encoded using the MR method, the black run length in the horizontal direction is BRL500, so the terminating code of BRL52 and
Together with the BRL448 make-up code, the total is 24 bits, resulting in a compression rate of 24/500. However, all vertical boundaries are represented by V(0) in vertical mode and are composed of 1 bit, but the boundaries on both sides of the rectangle are encoded in bit-by-bit format. It had the disadvantage of low compression efficiency.

本発明は、前述の従来の欠点を改善し、縦方向
についても符号化して、圧縮率を向上することを
目的とするものである。
The present invention aims to improve the above-mentioned conventional drawbacks and improve the compression rate by encoding also in the vertical direction.

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

本発明の画像データ圧縮方式は、参照走査線と
符号化走査線とを対象として、前記符号化走査線
上にのみ二つの変化点が存在する開始モードと検
出する為の検出手段と、前記参照走査線上と前記
符号化走査線とに変化点が存在する継続モードを
検出する為の検出手段と、前記参照走査線上のみ
に変化点が存在する終了モードを検出する為の検
出手段とを備えて、開始モードの二つの変化点か
ら副走査方向につながるそれぞれの境界線を継続
モードで追跡して、終了モードまでを符号化する
ものである。
The image data compression method of the present invention targets a reference scanning line and an encoded scanning line, and includes a detection means for detecting a start mode in which two change points exist only on the encoded scanning line; comprising a detection means for detecting a continuation mode in which a change point exists on the line and the encoded scanning line, and a detection means for detecting a termination mode in which a change point exists only on the reference scan line, Each boundary line that connects in the sub-scanning direction from the two change points of the start mode is traced in a continuous mode and encoded up to the end mode.

〔作用〕[Effect]

縦方向に対してつながる長さを開始モードと終
了モードとの間の継続モードにより追跡して、縦
方向に継続する長さを符号化し、縦方向の相関を
利用してデータ圧縮率を向上させるものである。
The length connected in the vertical direction is tracked by the continuation mode between the start mode and the end mode, the length continued in the vertical direction is encoded, and the data compression rate is improved by using the correlation in the vertical direction. It is something.

〔実施例〕〔Example〕

以下図面を参照して、本発明の実施例について
詳細に説明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の実施例のブロツク図であり、
1は1頁分の画像データ蓄積する容量を有する画
像データメモリ、2は開始モード検出部、3,
7,8はカウンタ、4,5はレジスタ、6は継続
モード検出部、9は終了モード検出部、10はマ
ルチプレクサ、11は符号とその符号長情報とを
出力する符号変換メモリ、12はシフトレジス
タ、13は符号長カウンタである。画像データは
画像データメモリ1に加えられて、1頁分が一旦
蓄積され、その画像データメモリ1から開始モー
ド検出部2、継続モード検出部6及び終了モード
検出部9にそれぞれ参照走査線と符号化走査線と
の2走査線上の画像データが加えられる。
FIG. 1 is a block diagram of an embodiment of the present invention.
1 is an image data memory having a capacity to store image data for one page; 2 is a start mode detection unit; 3;
7 and 8 are counters, 4 and 5 are registers, 6 is a continuation mode detector, 9 is an end mode detector, 10 is a multiplexer, 11 is a code conversion memory that outputs a code and its code length information, and 12 is a shift register , 13 is a code length counter. The image data is added to the image data memory 1, one page worth is temporarily stored, and from the image data memory 1, reference scanning lines and codes are sent to the start mode detection section 2, the continuation mode detection section 6, and the end mode detection section 9, respectively. The image data on two scan lines are added.

第2図のaに示すように、符号化走査線上にの
み白画素から黒画素、黒画素から白画素への変化
点が存在する場合を開始モードとし、変化点a0
変化点a1との間及びこの変化点a1と次の変化点a2
との間のランレングスが符号化の対象となる。従
つて、MR方式のように、ずれa1b1が4以上の場
合に水平モードとすると言うものではなく、参照
走査線上の黒画素と符号化走査線上の黒画素の間
のつながりが全くないことを示すことになる。
As shown in Fig. 2a, the start mode is the case where there is a change point from a white pixel to a black pixel or from a black pixel to a white pixel only on the encoded scanning line, and the change point a 0 and the change point a 1 are defined as the start mode. between and this change point a 1 and the next change point a 2
The run length between is the target of encoding. Therefore, unlike the MR method, the horizontal mode is not set when the deviation a 1 b 1 is 4 or more, but there is no connection between the black pixels on the reference scanning line and the black pixels on the encoding scanning line. This will show that.

又第2図のbに示すように、参照走査線上と符
号化走査線上とに変化点が存在し、境界線が縦に
つながつている状態を継続モードとし、符号化の
対象は、ずれa1b1であり、4以上でも必ずこのず
れa1b1を符号化する。
As shown in Fig. 2b, the continuous mode is defined as a state in which there is a change point on the reference scanning line and the encoding scanning line, and the boundary lines are connected vertically, and the object of encoding is the shift a 1 b 1 , and this deviation a 1 b 1 is always encoded even if it is 4 or more.

又第2図のcに示すように、参照走査線上にの
み変化点b1,b2が存在する場合を終了モードとす
るものであり、これはMR方式のパスモードと同
じである。
Further, as shown in FIG. 2c, the end mode is defined as the case where the change points b 1 and b 2 exist only on the reference scanning line, and this is the same as the pass mode of the MR method.

第3図は前述の各モードに対応した符号の割当
てを示すものであり、符号化形式のS,C,Eは
開始モード符号、継続モード符号、終了モード符
号を示すものである。又(V0×n)は、縦方向
に継続モードが続く数nを符号化すること意味し
ており.V0はMR方式の垂直モードのV(0)に
相当するものである。又C0は第10図に示すMR
符号のV(0)に対応し、CR(1),CR(2)は、
MR符号のVR(1),VR(2)に対応し、又CL
(1),CL(2)はVL(1),VL(2)に対応するも
のである。
FIG. 3 shows the assignment of codes corresponding to each of the above-mentioned modes, and the encoding formats S, C, and E indicate a start mode code, a continuation mode code, and an end mode code. Also, (V 0 ×n) means encoding the number n of consecutive modes in the vertical direction. V 0 corresponds to V(0) in the vertical mode of the MR system. Also, C 0 is MR shown in Figure 10.
Corresponding to the sign V(0), C R (1) and C R (2) are
Corresponds to V R (1) and V R (2) of MR code, and C L
(1) and C L (2) correspond to V L (1) and V L (2).

符号化手順は、参照走査線と符号化走査線とを
対象として、変化点の開始モードを検出し、開始
モード符号Sの後に、二つのランレングス、例え
ば、第2図のaのa0a1間、a1a2間のランレングス
を符号化する。なお、基準変化点a0の選択方法と
しては、次の2通りがある。(1)直前の開始モード
の第2変化点a2を基準変化点とする。(2)直前の開
始モードの第2変化点a2から現時点の開始モード
の第1変化点a1までに通過した継続モードの変化
点の数に加えて、第1変化点a1直前の継続モード
の変化点を基準変化点とする。但し、途中に継続
モードの変化点がない場合は、(1)と同じとする。
前述の(2)の方法が(1)の方法よりランレングスを短
くとることができるので、高圧縮率となるが、継
続モードの変化点数が加わる為に、MR符号適用
と言う面からは(1)の方法が好適である。
The encoding procedure detects the start mode of the change point between the reference scan line and the encoded scan line, and after the start mode code S, two run lengths, e.g., a 0 a in a of FIG. 1 , encode the run length between a 1 a 2 . Note that there are the following two methods for selecting the reference change point a0 . (1) The second change point a2 of the immediately preceding start mode is set as the reference change point. (2) In addition to the number of change points in the continuation mode that have passed from the second change point a 2 of the previous start mode to the first change point a 1 of the current start mode, the continuation of the continuation mode immediately before the first change point a 1 The mode change point is defined as the reference change point. However, if there is no change point in the continuous mode in the middle, it is the same as (1).
Method (2) described above allows for a shorter run length than method (1), resulting in a higher compression ratio, but since the number of change points in the continuous mode is added, from the perspective of applying MR codes ( Method 1) is preferred.

開始モードの検出が行われると、第1の変化点
a1の境界線を縦に追跡し、継続モードで順次符号
化する。即ち、(i)ずれa1b1=0の場合は、縦に継
続する数を表す符号に変換し、(ii)ずれa1b1=1、
2の場合は、C(1),C(2)のモード符号に変
換し、(iii)ずれa1b1≧3の場合は、継続モード符号
とずれa1b1を表す符号に変換する。そして、終了
モードが検出された時点で、最後に終了モード符
号E化して変化点a1の境界線追跡を終了する。
Once the start mode is detected, the first change point
Trace the boundaries of a 1 vertically and encode them sequentially in continuous mode. That is, (i) if the deviation a 1 b 1 = 0, convert it to a code representing a number that continues vertically, and (ii) if the deviation a 1 b 1 = 1,
2, convert to the mode codes of C(1) and C(2), and (iii) if the deviation a 1 b 1 ≧ 3, convert to the continuous mode code and the code representing the deviation a 1 b 1 . . Then, when the end mode is detected, the end mode code is finally changed to E, and the boundary line tracing of the change point a1 is ended.

次に開始モードの第2変化点a2の境界線追跡を
前述の第1変化点a1の場合と同様にして継続モー
ドで符号化する。但し、この場合は最後に終了モ
ード符号Eを付加しない。これは、第1変化点1
の境界線追跡終了を示す終了モード符号Eと、次
の開始モード符号との間に、第2変化点a2の境界
線追跡情報が含まれる為に、終了モード符号Eを
付加しなくても、継続モードの最後が判る為であ
る。
Next, the boundary line tracing of the second change point a 2 in the start mode is encoded in the continuous mode in the same manner as in the case of the first change point a 1 described above. However, in this case, the end mode code E is not added at the end. This is the first change point 1
Since the boundary line tracing information of the second change point a2 is included between the end mode code E indicating the end of boundary line tracing and the next start mode code, there is no need to add the end mode code E. , in order to know the end of the continuation mode.

次に開始モードを検出し、前述の手順を繰り返
して符号化を行う。
Next, the start mode is detected and the above-described procedure is repeated to perform encoding.

符号化走査線に開始モードの変化点が他になけ
れば、ライン終了信号(例えば、MR方式に於け
るEOL符号、又は前述の終了モード符号E)を
付加して、そのラインの処理を終了し、次のライ
ンの処理に移行する。
If there is no other starting mode change point in the encoded scanning line, a line end signal (for example, the EOL code in the MR method or the above-mentioned end mode code E) is added to end the processing of that line. , move on to processing of the next line.

前述の手順の符号化を行う為に、第1図に於け
る開始モード検出部2では、前述のように、参照
走査線と符号化走査線との2走査線の画像データ
を読出して、第2図のaに示す状態の画像データ
であるか否か識別し、開始モードである場合は、
カウンタ3によりa0a1間及びa1a2間のランレング
スをカウントし、白画素から黒画素への第1変化
点a1の絶対アドレスをレジスタ4にラツチし、黒
画素から白画素への第2変化点a2の絶対アドレス
をレジスタ5にラツチする。
In order to perform the encoding according to the above-mentioned procedure, the start mode detection unit 2 in FIG. Identify whether the image data is in the state shown in Figure 2 a, and if it is in the start mode,
Counter 3 counts the run length between a 0 a 1 and a 1 a 2 , latches the absolute address of the first change point a 1 from white pixel to black pixel in register 4, and changes from black pixel to white pixel. The absolute address of the second change point a2 is latched into register 5.

継続モード検出部6では、レジスタ4,5にセ
ツトされた変化点a1,a2の絶対アドレスに従つて
画像データメモリ1から縦方向に画像データを読
出して、変化点a1,a2につながる画像輪郭を追跡
し、カウンタ7によりずれ即ち第2図のbに於け
るa1b1間のずれをカウントし、又カウンタ8によ
りずれが零で縦方向に連続する数即ち第2図のb
に於けるa2b2の状態が継続する回数をカウントす
る。
The continuation mode detection unit 6 reads image data vertically from the image data memory 1 according to the absolute addresses of the change points a 1 and a 2 set in the registers 4 and 5, and reads the image data at the change points a 1 and a 2 in the vertical direction. The connected image contours are tracked, and the counter 7 counts the deviation, that is, the deviation between a 1 b 1 in b in Fig. 2, and the counter 8 counts the number of consecutive images in the vertical direction with zero deviation, that is, the deviation in Fig. 2. b
Count the number of times the state a 2 b 2 continues in .

又終了モード検出部9では、継続モード検出動
作に於いて第2図のcに示す状態の画像データで
あるか否か識別する。
In addition, the end mode detection section 9 identifies whether or not the image data is in the state shown in c in FIG. 2 in the continuation mode detection operation.

マルチプレクサ10は符号手順に従つてカウン
タ3,7,8及び終了モード検出部9の検出信号
を切換えて符号変換メモリ11に加えるもので、
符号変換メモリ11はリードオンリメモリにより
構成され、第3図に示す符号に変換して、その符
号データをシフトレジスタ12にセツトし、符号
長をカウンタ13にセツトし、符号長に従つたビ
ツト数をシフトレジスタ12から圧縮データとし
て送出する。
The multiplexer 10 switches the detection signals of the counters 3, 7, 8 and the end mode detector 9 according to the code procedure and adds them to the code conversion memory 11.
The code conversion memory 11 is composed of a read-only memory, converts the code into the code shown in FIG. 3, sets the code data in the shift register 12, sets the code length in the counter 13, and calculates the number of bits according to the code length. is sent out from the shift register 12 as compressed data.

第4図は圧縮符号化されたデータの一例を示す
ものであり、開示モード符号Sの次に0 1のラン
レングスRLと1 2のランレングスRLとが付加さ
れて開始モードのデータとなり、次に変化点a1
b1が縦方向にn個連続した場合で、継続モード符
号C0とMH符号で表されたnと、変化点のずれに
対応した符号CR(1)、CL(2)等により第1変化
点a1のCモードのデータとなり、終了モード符号
Eが付加され、次に第2変化点a2の境界線追跡に
よるa2のCモードのデータとなる。ラインの終了
には前述のように、終了モード符号E或いはMR
符号に於けるEOL符号が付加される。
FIG. 4 shows an example of compression-encoded data, in which a run length RL of 0 1 and a run length RL of 1 2 are added next to the disclosure mode code S to become start mode data. The change point a 1 ,
b 1 is continuous in the vertical direction, and the continuation mode code C 0 and n expressed by the MH code, and the codes C R (1), C L (2), etc. corresponding to the shift of the change point, The first change point a 1 becomes C mode data, the end mode code E is added, and then the second change point a 2 becomes C mode data of a 2 by boundary line tracing. At the end of the line, the end mode code E or MR is used as described above.
The EOL code in the code is added.

前述の第11図に於ける図形の画像データの圧
縮に於いて、従来例のMR方式では、長方形の左
側の長さを100とすると、 H(W100、B500)+2(V0×299)+P =3+5+8+12+12+2×299+4 =642(ビツト) となる。一方本発明の実施例の圧縮方式を適用
し、MR符号を用いた場合、 S(W100、B500)+2(C0+B299)+E =3+5+8+12+12+2(1+12+12)+4 =94(ビツト) となり、従来例に比較して大幅な圧縮が可能とな
る。これは、継続モードに於けるずれが零の縦方
向の数をランレングスで表して符号化することに
よるものである。
In compressing the image data of the figure shown in Figure 11 above, in the conventional MR method, if the length of the left side of the rectangle is 100, then H (W100, B500) + 2 (V 0 × 299) + P = 3 + 5 + 8 + 12 + 12 + 2 x 299 + 4 = 642 (bits). On the other hand, when applying the compression method of the embodiment of the present invention and using MR code, S (W100, B500) + 2 (C 0 + B 299) + E = 3 + 5 + 8 + 12 + 12 + 2 (1 + 12 + 12) + 4 = 94 (bits), compared to the conventional example. This enables significant compression. This is done by expressing and encoding the number of zero deviations in the vertical direction in the continuous mode as a run length.

又図形のみでなく、文字の場合にも充分な画像
データの圧縮が可能となるものであり、例えば、
第5図に示す画素No.1〜42、ラインNo.1〜29の文
字「pi1」についての画像データを圧縮符号化す
ると、第6図に示すものとなり、ビツト数の合計
は252となつた。又第5図に於いて、〜は変
化点の境界線追跡径路を示し、第6図のモード欄
にこれらの〜を対応して示している。又第7
図は従来のMR方式により圧縮符号化した場合を
対応して示すものであり、ビツト数の合計は261
となつた。この例の場合は、本発明の実施例によ
る圧縮率は余り大きくないが、符号割当ての最適
化を図れば、圧縮率は更に向上するものである。
In addition, it is possible to sufficiently compress image data not only for figures but also for characters; for example,
When the image data for the characters "pi1" in pixels No. 1 to 42 and lines No. 1 to 29 shown in Fig. 5 are compressed and encoded, the image data shown in Fig. 6 is obtained, and the total number of bits is 252. . Further, in FIG. 5, .about. indicates the boundary line tracing path of the change point, and these .about. are shown correspondingly in the mode column of FIG. Also the 7th
The figure shows the corresponding case of compression encoding using the conventional MR method, and the total number of bits is 261.
It became. In this case, the compression rate according to the embodiment of the present invention is not very high, but if code allocation is optimized, the compression rate can be further improved.

又境界線が複雑な場合、例えば、第8図に示す
場合、左上から右下へ画像がつながつていると定
義し、S,Cで示すように変化点を開始モード及
び継続モードとして処理することができる。又処
理の簡単化の為に、(1)全ラインの始端及び終端の
画素を白画素とする。(2)1頁の最終ラインを総て
白画素とする。このような定義により、MR方式
に於けるような仮想変化点処理をしなくても良い
ことになり、且つ最終ラインによる境界線終了検
出が容易となる。
In addition, when the boundary line is complex, for example, in the case shown in Figure 8, it is defined that the images are connected from the upper left to the lower right, and the changing points as shown by S and C are processed as the start mode and the continuation mode. I can do it. In order to simplify the process, (1) pixels at the start and end of all lines are made white pixels. (2) The last line of one page is all white pixels. With such a definition, there is no need to perform virtual change point processing as in the MR method, and it becomes easy to detect the end of the boundary line based on the final line.

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

以上説明したように、本発明は、参照走査線と
符号化走査線とを対象として、前記符号化走査線
上にのみ二つの変化点が存在する開始モードを検
出する為の開始モード検出部2等の手段と、前記
参照走査線上と前記符号化走査線上とに変化点が
存在する継続モードを検出する為の継続モード検
出部6等の手段と、前記参照走査線上のみに変化
点が存在する終了モードを検出する為の終了モー
ド検出部9等の手段とを備え、開始モードを検出
することにより、その開始モードの二つの変化点
から副走査方向につながるそれぞれ境界線を継続
モードで追跡して、終了モードが検出されるまで
を符号化するものであり、縦方向の相関を充分に
利用してデータ圧縮することができる利点があ
る。
As described above, the present invention provides a start mode detection unit 2, etc. for detecting a start mode in which two change points exist only on the encoded scan line, with reference scan lines and encoded scan lines as targets. means such as a continuation mode detection unit 6 for detecting a continuation mode in which a change point exists on the reference scan line and the encoded scan line; and an end mode in which a change point exists only on the reference scan line. By detecting the start mode, each boundary line connected in the sub-scanning direction from two change points of the start mode is tracked in the continuous mode. , until the end mode is detected, and has the advantage of being able to compress data by fully utilizing vertical correlation.

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

第1図は本発明の実施例のブロツク図、第2図
は本発明の実施例のモード説明図、第3図は各モ
ードと符号割当ての説明図、第4図は圧縮符号の
一例の説明図、第5図は文字の一例の説明図、第
6図は第5図の画像のデータを本発明の実施例に
より圧縮処理した場合の説明図、第7図は第5図
の画像のデータをMR方式で圧縮処理した場合の
説明図、第8図は境界線が複雑な場合の継続、切
断の定義の説明図、第9図はMR方式のパス、垂
直及び水平モードの説明図、第10図はMR方式
の符号割当ての説明図、第11図は長方形図形の
一例を示すものである。 1は1頁分の容量の画像データメモリ、2は開
始モード検出部、3,7,8はカウンタ、4,5
はレジスタ、6は継続モード検出部、9は終了モ
ード検出部、10はマルチプレクサ、11は符号
変換メモリ、12はシフトレジスタ、13はカウ
ンタである。
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a mode explanatory diagram of an embodiment of the present invention, Fig. 3 is an explanatory diagram of each mode and code assignment, and Fig. 4 is an explanation of an example of a compression code. Figure 5 is an explanatory diagram of an example of characters, Figure 6 is an explanatory diagram of the image data in Figure 5 compressed by the embodiment of the present invention, and Figure 7 is the data of the image in Figure 5. Figure 8 is an illustration of the continuation and cutting definitions when the boundary line is complex. Figure 9 is an illustration of the path, vertical and horizontal modes of the MR method. FIG. 10 is an explanatory diagram of code assignment in the MR method, and FIG. 11 shows an example of a rectangular figure. 1 is an image data memory with a capacity for one page, 2 is a start mode detection section, 3, 7, and 8 are counters, 4, 5
1 is a register, 6 is a continuation mode detection section, 9 is an end mode detection section, 10 is a multiplexer, 11 is a code conversion memory, 12 is a shift register, and 13 is a counter.

Claims (1)

【特許請求の範囲】[Claims] 1 二次元符号化により画像データを圧縮する画
像データ圧縮方式に於いて、参照走査線と符号化
走査線とを対象として、前記符号化走査線上にの
み二つの変化点が存在する開始モードの検出手段
と、前記参照走査線上と前記符号化走査線上とに
変化点が存在する継続モードの検出手段と、前記
参照走査線上のみに変化点が存在する終了モード
の検出手段とを備え、前記開始モードの二つの変
化点から副走査方向につながるそれぞれの境界線
を継続モードで追跡して、終了モードまでを符号
化することを特徴とする画像データ圧縮方式。
1. In an image data compression method that compresses image data by two-dimensional encoding, detection of a start mode in which two change points exist only on the encoded scan line, with a reference scan line and an encoded scan line as targets. means for detecting a continuation mode in which a change point exists on the reference scan line and the encoded scan line; and means for detecting an end mode in which a change point exists only on the reference scan line; An image data compression method characterized in that each boundary line connected in the sub-scanning direction from two change points is traced in a continuous mode and encoded up to an end mode.
JP24348384A 1984-11-20 1984-11-20 Image data compressing system Granted JPS61123283A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24348384A JPS61123283A (en) 1984-11-20 1984-11-20 Image data compressing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24348384A JPS61123283A (en) 1984-11-20 1984-11-20 Image data compressing system

Publications (2)

Publication Number Publication Date
JPS61123283A JPS61123283A (en) 1986-06-11
JPH0548658B2 true JPH0548658B2 (en) 1993-07-22

Family

ID=17104558

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24348384A Granted JPS61123283A (en) 1984-11-20 1984-11-20 Image data compressing system

Country Status (1)

Country Link
JP (1) JPS61123283A (en)

Also Published As

Publication number Publication date
JPS61123283A (en) 1986-06-11

Similar Documents

Publication Publication Date Title
JPH0431222B2 (en)
US4156880A (en) Method for transmitting a facsimile signal by sequential edge differential coding
JP2962518B2 (en) Image data encoding device
JPS6338152B2 (en)
JPH0548658B2 (en)
JPH0548659B2 (en)
JPS6214579A (en) Decoding circuit
JPS5840989A (en) Coding processing method and transmission controlling method of picture information
JP2995740B2 (en) Facsimile image density converter
KR900007566B1 (en) Picture data converting device
JPS5992674A (en) Encoding circuit
JP2792994B2 (en) Line variable coding device
JP2755463B2 (en) Image data compression method
JPS5857863A (en) Picture contracting method
JPH05236286A (en) Picture decoding circuit
JPH0358572A (en) Data compressing system
JPS5991774A (en) Coding circuit
JPS60169276A (en) Data compressing system
JPS61232776A (en) Encoding circuit
JPH0453142B2 (en)
JPS6184163A (en) Encoding system for image data
JPH0722345B2 (en) Image information compression method
JPS60256270A (en) Pattern size converter
JPS6195671A (en) Decoding circuit
JPS6028374A (en) Coder and decoder