JPS63220672A - Compression-encoding method for half tone picture signal - Google Patents
Compression-encoding method for half tone picture signalInfo
- Publication number
- JPS63220672A JPS63220672A JP62055014A JP5501487A JPS63220672A JP S63220672 A JPS63220672 A JP S63220672A JP 62055014 A JP62055014 A JP 62055014A JP 5501487 A JP5501487 A JP 5501487A JP S63220672 A JPS63220672 A JP S63220672A
- Authority
- JP
- Japan
- Prior art keywords
- run
- length value
- run length
- image signal
- encoding method
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000006835 compression Effects 0.000 claims description 9
- 238000007906 compression Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 6
- 239000011159 matrix material Substances 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 1
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はたとえば写真等のような中間調にて表現された
画像をディザパターン化して得られた2値画信号を更に
圧縮符号化する方法に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides a method for further compressing and encoding a binary image signal obtained by converting an image expressed in halftones, such as a photograph, into a dither pattern. Regarding.
写真等の中間調画像をファクシミリ装置にて送信し、ま
たこれを受信するために擬似的に中間調を表現し得る2
値化方法としてディザ法が知られている。このディザ法
は、たとえば原稿画像を16階量定て読取る場合には第
1図に示す如きベイヤ型の4×4ドツトのディザマトリ
ックスの各ドツトに0〜15までの16段階の閾値が設
定されており、読取った16階調の画信号の4×4ドツ
トをこれらの各闇値にて2値画信号化するものである。2. Can express halftones in a pseudo manner in order to send and receive halftone images such as photographs using facsimile devices.
A dither method is known as a value conversion method. In this dithering method, for example, when reading a document image at 16 levels, a threshold value of 16 levels from 0 to 15 is set for each dot of a Bayer type 4 x 4 dot dither matrix as shown in Figure 1. The 4×4 dots of the read 16-gradation image signal are converted into a binary image signal using each of these darkness values.
たとえば、第2図に示す如き、16階調にて濃度が5.
7,8.6の範囲からなる中間調の画像をいま読取り対
象とする場合、上述の第1図のディザパターンの闇値に
て2値化すると第3図に示す如き2値画信号が得られる
。この第3図の例では、たとえば第mラインでは黒と白
のドツトが各1ずつ順次反復している。For example, as shown in FIG. 2, the density is 5.5 in 16 gradations.
If a halftone image in the range of 7, 8.6 is to be read, if it is binarized using the dark value of the dither pattern shown in Fig. 1 above, a binary image signal as shown in Fig. 3 will be obtained. It will be done. In the example shown in FIG. 3, for example, on the mth line, one black dot and one white dot are repeated one after another.
このようにして得られた2値画信号を従来の、白または
黒の同一の画信号が連続する数、即ちうンレングス値そ
れぞれを固有の符号にて表すことによりデータ量を圧縮
する符号化方法では、たとえば第1表に示すMl+符号
表を使用した場合には、“010” +“000111
”の反復となる。このため、元の2値画信号の1゛ と
°0°の反復に対しで、黒ドツトと白ドツト各1ずつの
組合わせでは原画信号の2ビットから符号化後は9ビッ
トへ、つまり7ビツトのデータ量の増加になる。The binary image signal obtained in this way is converted into a conventional encoding method in which the amount of data is compressed by representing the number of successive identical white or black image signals, that is, each length value, with a unique code. For example, when using the Ml+code table shown in Table 1, "010" + "000111"
Therefore, for the repetition of 1゛ and °0° of the original binary image signal, for a combination of one black dot and one white dot, after encoding from 2 bits of the original image signal, The amount of data increases to 9 bits, that is, 7 bits.
第1表
このように、ディザ画像はその性質」−ランレングスが
細分化され、また前後のライン間での相関関係もほとん
どなくなるため、従来のランレングス値を符号化するM
l+符号化方法のような一次元符号化方法を適用した場
合には上述のように却ってデータ量が増加し、またVR
接するライン間の相関関係により圧縮符号データ量を圧
縮する2次元圧縮符号化方法(たとえばMRiJj号化
方法)を適用した場合にはデータ量が大幅に増加する可
能性がある。Table 1: As shown in Table 1, the properties of dithered images are as follows: run lengths are subdivided, and there is almost no correlation between the preceding and succeeding lines.
If a one-dimensional encoding method such as the l+ encoding method is applied, the amount of data will increase as described above, and the VR
When a two-dimensional compression encoding method (eg, MRiJj encoding method) that compresses the amount of compressed code data based on the correlation between adjacent lines is applied, the amount of data may increase significantly.
このような事情に鑑み、既に種々の解決策が提案されて
いる。In view of these circumstances, various solutions have already been proposed.
たとえば、ディザ画像がその闇値の周期性から一定のピ
ッ1−パターンが−・次元方向に反復して出現する確率
が高いという点を利用して、この反復出現するパターン
のレングス(長さ、即ちビット数)を符号化するという
「ディザ両像の“PatternLengLh Cod
in(4” (信学技報IE80−42) l 、ある
いはディザの闇値7ぐターンに基づいて現在の画素の値
を既に符号化されている周囲の画素の値から予測して符
号化するという[R細巾間調画像のMl+符号化(信学
技報IE80−42) J等が提案されている。For example, taking advantage of the fact that in a dithered image, there is a high probability that a certain Pi1 pattern will appear repeatedly in the - dimension direction due to the periodicity of its dark values, the length (length, ``PatternLengLh Cod
in(4” (IEICE Technical Report IE80-42) l or the value of the current pixel is predicted from the values of surrounding pixels that have already been encoded based on the 7th turn of the dither dark value and is encoded. [Ml+coding of R narrow-scale intertone images (IEICE Technical Report IE80-42) J, etc. have been proposed.
しかし、上述の第1の手法では、パターンレングスの他
にパターンを特定する符号が必要となるが、このパター
ンの数が多くなるのでそれらを特定する符号も多くなる
。従って全体としてはそれ程高い圧縮率を期待すること
は難しい。However, in the first method described above, codes for specifying patterns are required in addition to the pattern length, and as the number of patterns increases, the number of codes for specifying them also increases. Therefore, it is difficult to expect a compression ratio that high overall.
また第2の手法では、かなりの高い圧縮率が達成される
が、予測のための回路装置の構成が複雑になる可能性が
ある。Further, in the second method, a considerably high compression ratio is achieved, but the configuration of the circuit device for prediction may become complicated.
本発明は以上のような事情に鑑みてなされたものであり
、ディザ画像を可及的に簡易に且つ高い圧縮率にて符号
化し得る中間調画信号の圧縮符号化方法の提供を目的と
する。The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a compression encoding method for halftone image signals that can encode dithered images as simply as possible and at a high compression rate. .
本発明では、通常の一次元符号化方法として用いられる
Ml+符号化方法においては、ランレングス値゛1゛
を表す符号よりも“2゛を表す符号の法が白・用いずれ
の場合にもデータ量(ビット数)が少ないことに着目し
て、符号化に際しては実際に得られたランレングス値に
1″を加算して符号化し、また復号化に際しては復号に
より得られたランレングス値から1°を減算して2値画
信号の復元を行うようにしている。In the present invention, in the Ml+ encoding method used as a normal one-dimensional encoding method, the run length value ゛1゛
Focusing on the fact that the code representing 2゛ has a smaller amount of data (number of bits) than the code representing ``2゛'' in both cases, we added 1 to the actually obtained run length value during encoding. '' is added for encoding, and during decoding, 1° is subtracted from the run length value obtained by decoding to restore the binary image signal.
本発明は、中間調画信号をディザパターン化することに
より得られた2値画信号を、白または黒の両信号が連続
する数を表すランレングス値がI゛の場合より°2”の
場合の方法が多いビット数にて符号化する圧縮符号化方
法において、符号化に際しては、ランレングス値に1゛
を加算して符号化し、復号化に際しては、復号された
ランレングス値から1゛を減算して2値画信号を復元す
ることを特徴とする。The present invention converts a binary image signal obtained by dithering a halftone image signal into a dither pattern when the run length value representing the number of consecutive white or black signals is 2'' than when the run length value is I''. In the compression encoding method that encodes with a large number of bits, when encoding, 1゛ is added to the run length value, and when decoding, 1゛ is added from the decoded run length value. The method is characterized in that a binary image signal is restored by subtraction.
本発明では、ディザ化された2値画信号に多く現れるラ
ンレングス値“1゛に更に1°が加算されるので、実際
のランレングス値°1“がより短いピッ1−数にて表現
されるランレングス値゛2゛ とじて符号化される。In the present invention, since 1° is added to the run length value "1" that often appears in dithered binary image signals, the actual run length value "1" is expressed by a shorter number of pips. It is encoded as the run length value ゛2゛.
以下、まず本発明の原理について説明する。 First, the principle of the present invention will be explained below.
前述の第1表は一次元符号化方法として一般的なl符号
化方法に用いられる符号表であるが、これによれば、白
ドツトのランレングス値に関しては2”〜゛7°が、ま
た黒ドツトのランレングス値に関しては°2゛及び3”
がそれぞれ最小ビット数である。Table 1 mentioned above is a code table used for the l encoding method, which is a general one-dimensional encoding method. For run length values of black dots: °2゛ and 3”
are the minimum number of bits, respectively.
一方、ディザ画像を2値化した場合には、白・黒いずれ
のドツトにおいてもランレングス値が1゛という場合、
換言すれば白と黒のドツトが交互に反復して出現する場
合が非常に多い。ところが、白ドツトのランレングス値
°1゛ に対する符号は“000111°であっ゛て6
ビソトのデータ量でありまた黒ドツトのランレングス値
゛1′に対する符号は010゜であって3ビツトのデー
タ量である。On the other hand, when a dithered image is binarized, if the run length value is 1 for both white and black dots,
In other words, white and black dots often appear repeatedly and alternately. However, the sign for the run length value °1 of the white dot is “000111°, which is 6
This is the data amount of 3 bits, and the sign for the run length value '1' of the black dot is 010°, which is the data amount of 3 bits.
以上のことから、白・黒いずれのドツトにおいても頻出
するランレングス値‘1’を符号変換する際に、°1°
を加算して2°にすれば白・黒いずれの場合にもランレ
ングス値は最小ビット数の符号に変換されるランレング
ス値“2゛になるので、大幅なデータ量の圧縮が達成さ
れる。From the above, when converting the code of the run length value '1' that frequently appears in both white and black dots, the angle 1°
If you add up to 2 degrees, the run-length value will be converted to the code with the minimum number of bits in both white and black cases, resulting in a run-length value of "2 degrees," so a significant amount of data can be compressed. .
以下、本発明をその実施例を示す図面に基づいて詳述す
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below based on drawings showing embodiments thereof.
第4図は本発明方法、即ち上述した原理に基づいて中間
調画像の符号化及び復号化処理を実施するための回路構
成を示すブロック図であり、具体的にはファクシミリ装
置等に組込まれている。FIG. 4 is a block diagram showing a circuit configuration for implementing the method of the present invention, that is, encoding and decoding processing of halftone images based on the above-mentioned principle. There is.
まず、符号化処理のための構成について説明する。First, the configuration for encoding processing will be explained.
図中1はラインメモリであり、図示しない画像読取装置
(たとえばスキャナ等)にて16階調にて読取られ、前
述の第1図の4×4ドツトのディザマトリックスに示す
闇値にてディザ画像化された2値のディザ画信号が1ラ
イン単位で順次入力される。ラインメモリ1に入力され
た1ライン単位のディザ画信号は、一旦このラインメモ
リ1に蓄えられた後、1ドツト、即ち1”または0”の
1ビツトの信号として順次ランレングス計数器2に読出
される。1 in the figure is a line memory, which is read at 16 gradations by an image reading device (for example, a scanner, etc.) not shown, and is a dithered image at the darkness value shown in the 4×4 dot dither matrix in FIG. The converted binary dither image signals are sequentially input line by line. The dither image signal inputted to the line memory 1 in units of one line is once stored in the line memory 1, and then sequentially read out to the run length counter 2 as a signal of one dot, that is, one bit of 1" or 0". be done.
ランレングス計数器2はラインメモリ1から順次読出し
た各1ドツトの2値画信号から白または黒ドツトの連続
数、即ちランレングスを計数し、加算器3に与える。A run length counter 2 counts the number of consecutive white or black dots, that is, a run length, from each one-dot binary image signal sequentially read out from the line memory 1, and supplies the count to an adder 3.
加算器3はランレングス計数器2から与えられる白また
は黒ドツトのランレングスに1”を加算し、闘将号器4
に与える。Adder 3 adds 1" to the run length of the white or black dot given from run length counter 2, and
give to
Ml符号器4は、前述の第1表に示したMH符号表の白
および黒ドツトそれぞれのランレングス値と符号との関
係に従って、加算器3から与えられるランレングス値を
符号化し、出力する。The Ml encoder 4 encodes the run length value given from the adder 3 and outputs it according to the relationship between the run length value and the code for each of the white and black dots in the MH code table shown in Table 1 above.
従って、16階調のデジタル画像を2値のディザ画信号
化した中間調画像は、各1ライン単位でラインメモリ1
に一旦保持された後、順次1ドツト単位でランレングス
計数器2に読出され、白または黒ドツトのランレングス
値が計数される。そして、ランレングス計数器2にて得
られたランレングス値は加算器3に与えられて°1”加
算され、この°1゛加算された後のランレングス値がM
l+符号器4に与えられて符号化される。Therefore, a halftone image obtained by converting a 16-tone digital image into a binary dither image signal is stored in the line memory in units of one line.
After being temporarily held, the dots are sequentially read out to the run length counter 2 dot by dot, and the run length values of white or black dots are counted. Then, the run length value obtained by the run length counter 2 is given to the adder 3 and added by °1", and the run length value after this °1" addition is M
l+ is applied to encoder 4 and encoded.
このため、2値のディザ画信号においては頻出する白ま
た黒ドツトのランレングス値゛1゛ が加算器3により
°2°に変換されるので、MH符号器4から出力される
符号は本来であれば’000111°(白ドツトの場合
)または010’ (黒ドツトの場合)がそれぞれ01
!1”または°11’となり、2ビツトまたは1ビツト
圧縮される。Therefore, the run length value ゛1゛ of white or black dots that frequently appear in the binary dither image signal is converted to °2° by the adder 3, so the code output from the MH encoder 4 is originally If so, '000111° (for white dots) or 010' (for black dots) is 01.
! 1" or °11', and is compressed by 2 bits or 1 bit.
なお、ランレングス計数器2にて計数されたランレング
ス値が0゛及び゛2°以上の場合もそれぞれ加算器3に
て°1゛が加算され、その結果に対応してMH符号器4
により符号化される。Note that when the run length value counted by the run length counter 2 is 0 or more than 2 degrees, the adder 3 adds 1 degree, and the MH encoder 4 corresponds to the result.
encoded by
次に復号化のための構成について説明する。Next, the configuration for decoding will be explained.
図中5はMH復号器であり、図示しない受信回路等にて
受信された他のファクシミリ装置からの符号信号が入力
される。そして、このH1夏号器5は入力された符号を
前述の第1表のMH符号表に従ってランレングス値に変
換し、減算器6に与える。In the figure, reference numeral 5 denotes an MH decoder, into which a code signal from another facsimile apparatus received by a receiving circuit (not shown) or the like is input. The H1 summer coder 5 converts the input code into a run length value according to the MH code table shown in Table 1 above, and supplies it to the subtracter 6.
減算器6はMl復号器5から与えられたランレングス値
から1゛を減算し、その結果を両信号百生器7に与える
。The subtracter 6 subtracts 1' from the run length value given from the Ml decoder 5, and supplies the result to both signal processors 7.
画信号再生器7は減算器6から与えられたランレングス
値に従って白または黒のドツトを表すビット信号′O°
または‘1’を順次ラインメモリ8に出力する。The image signal regenerator 7 generates a bit signal 'O° representing a white or black dot according to the run length value given from the subtracter 6.
Alternatively, '1' is sequentially output to the line memory 8.
ラインメモリ8は画信号再生器7から与えられるビット
信号を順次貯え、これが1ライン分に達するとたとえば
図示しないプリンタ等へ出力する。The line memory 8 sequentially stores the bit signals given from the image signal regenerator 7, and when the bit signals reach one line, outputs them to, for example, a printer (not shown).
従って、前述のように1゛を加算されたランレングス値
の符号をMll復号器5にて復号したランレングス値か
ら“1°を減算器6にて減算した上で従来と同様に画信
号再生器7にて2値画信号に再生するので、原画信号が
再生される。Therefore, the code of the run-length value to which 1° has been added as described above is subtracted by 1° from the run-length value decoded by the Mll decoder 5, and then the image signal is reproduced as before. Since the image signal is reproduced into a binary image signal by the unit 7, the original image signal is reproduced.
なお、上記実施例では原画像を16階調にデジタル画信
号化し、これをディザ化する例を示しているが、16階
調以外の場合にも本発明は同様に適用可能である。In the above embodiment, an example is shown in which the original image is converted into a digital image signal with 16 gradations and this is dithered, but the present invention is similarly applicable to cases other than 16 gradations.
また、前記実施例ではランレングス値゛1′を2゛にし
て符号化するようにしているが、これは間符号化方法に
おいてはランレングス値゛2”に対応する符号が白・黒
いずれの場合にも最小ビット数であるためである。従っ
て、たとえばランレングス値′3゛ に対応する符号が
最小ピノ1−数であるか、あるいはランレングス値′2
”の符号化ビット数より少ないビット数である場合には
、原画信号のランレングス値゛1゛ に2゛を加算して
符号化すればよく、更にランレングス値が゛4°4°に
対応する符号が最小ビット数であるか、あるいはランレ
ングス値°2゛ の符号化ビット数より少ないビア1−
数である場合には、そのランレングス値から1゛を差し
引いた数を原画信号のランレングス値に加算して符号化
すればよい。Furthermore, in the above embodiment, the run-length value '1' is encoded as 2'; however, in the inter-encoding method, the code corresponding to the run-length value '2' is either white or black. Therefore, for example, if the code corresponding to the run-length value '3' is the minimum pinot number, or if the code corresponding to the run-length value '2' is the minimum number of bits.
If the number of bits is less than the number of bits encoded by ``, it is sufficient to add 2゛ to the run length value ゛1゛ of the original image signal and encode it, and furthermore, the run length value corresponds to ゛4°4°. Via 1-
If it is a number, the number obtained by subtracting 1 from the run length value may be added to the run length value of the original image signal for encoding.
以上のように本発明によれば、従来一般的に使用されて
いる一次元符号化方法(M11符号化方法)を使用して
、比較的簡易な構成にて高い圧縮率を達成することが可
能になる。As described above, according to the present invention, it is possible to achieve a high compression rate with a relatively simple configuration using the conventionally commonly used one-dimensional encoding method (M11 encoding method). become.
第1図はディザパターンの閾値を示す4×4のマトリッ
クスの一例を示す模式図、第2図は中間調画像の一例を
示す模式図、第3図は第2図の画像を第1図に示したデ
ィザパターンの闇値にて2値化した画信号の例を示す模
式図、第4図は本発明方法の実施に使用するための回路
構成を示すブロック図である。Figure 1 is a schematic diagram showing an example of a 4x4 matrix indicating the threshold value of a dither pattern, Figure 2 is a schematic diagram showing an example of a halftone image, and Figure 3 is a schematic diagram showing an example of a halftone image. FIG. 4 is a schematic diagram showing an example of an image signal binarized using the dark value of the dither pattern shown, and FIG. 4 is a block diagram showing a circuit configuration for use in implementing the method of the present invention.
Claims (1)
られた2値画信号を、白または黒の画信号が連続する数
を表すランレングス値が‘1’の場合より‘2’の場合
の方法が多いビット数にて符号化する圧縮符号化方法に
おいて、符号化に際しては、ランレングス値に‘1’を
加算して符号化し、 復号化に際しては、復号されたランレング ス値から‘1’を減算して2値画信号を復元すること を特徴とする中間調画信号の圧縮符号化方 法。[Claims] 1. A binary image signal obtained by dithering a halftone image signal from a case where the run length value representing the number of consecutive white or black image signals is '1'. In a compression encoding method that encodes with a large number of bits, the method in the case of '2' encodes by adding '1' to the run length value, and when decoding, the decoded run length value is A compression encoding method for a halftone image signal, characterized in that a binary image signal is restored by subtracting '1' from a length value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62055014A JPS63220672A (en) | 1987-03-10 | 1987-03-10 | Compression-encoding method for half tone picture signal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62055014A JPS63220672A (en) | 1987-03-10 | 1987-03-10 | Compression-encoding method for half tone picture signal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS63220672A true JPS63220672A (en) | 1988-09-13 |
Family
ID=12986806
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62055014A Pending JPS63220672A (en) | 1987-03-10 | 1987-03-10 | Compression-encoding method for half tone picture signal |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS63220672A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6310564B1 (en) * | 1998-08-07 | 2001-10-30 | Matsushita Electric Industrial Co., Ltd. | Method and apparatus for compressively coding/decoding digital data to reduce the use of band-width or storage space |
-
1987
- 1987-03-10 JP JP62055014A patent/JPS63220672A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6310564B1 (en) * | 1998-08-07 | 2001-10-30 | Matsushita Electric Industrial Co., Ltd. | Method and apparatus for compressively coding/decoding digital data to reduce the use of band-width or storage space |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4454546A (en) | Band compression device for shaded image | |
| GB2204462A (en) | Compression method for dot image data | |
| JP2535932B2 (en) | Halftone image coding device | |
| JP3387738B2 (en) | Image pattern converter | |
| JPS62176371A (en) | Transmission system for dither halftone | |
| US4782400A (en) | System for encoding or decoding analog video signals | |
| JPS63220672A (en) | Compression-encoding method for half tone picture signal | |
| JP2000217003A (en) | Encoding device and decoding device | |
| JPS63190473A (en) | Method and apparatus for compressing quantity of information on multi-gradation picture data | |
| JP2569568B2 (en) | Pseudo halftone image two-dimensional data prediction operation device for facsimile machine | |
| JPS6325749B2 (en) | ||
| JP2820718B2 (en) | Image coding device | |
| JPS6325748B2 (en) | ||
| KR930702862A (en) | Coders and decoders for digital transmission and / or recording of color-coded color television signals by component | |
| JP2569569B2 (en) | High-efficiency coding preprocessor for facsimile dithering pseudo-halftone | |
| JPH03187573A (en) | Pseudo half tone picture encoding system | |
| JPH06141184A (en) | Method and device for encoding/decoding multilever picture data | |
| JPH0144067B2 (en) | ||
| JPH09135357A (en) | Decoder for color image signal | |
| JP3340006B2 (en) | Image processing device | |
| JPH01108861A (en) | Picture coder | |
| JPH0549018A (en) | Picture encoder | |
| JPH0813144B2 (en) | Image coding method | |
| JPS62140553A (en) | Encoding method for image signal | |
| JPH02305271A (en) | Picture data compressing method |