JPS6065669A - Picture coding system - Google Patents

Picture coding system

Info

Publication number
JPS6065669A
JPS6065669A JP58173830A JP17383083A JPS6065669A JP S6065669 A JPS6065669 A JP S6065669A JP 58173830 A JP58173830 A JP 58173830A JP 17383083 A JP17383083 A JP 17383083A JP S6065669 A JPS6065669 A JP S6065669A
Authority
JP
Japan
Prior art keywords
coding
code length
encoding
scanning line
encoding process
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.)
Granted
Application number
JP58173830A
Other languages
Japanese (ja)
Other versions
JPH0121666B2 (en
Inventor
Junichi Hamazaki
浜崎 純一
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP58173830A priority Critical patent/JPS6065669A/en
Publication of JPS6065669A publication Critical patent/JPS6065669A/en
Publication of JPH0121666B2 publication Critical patent/JPH0121666B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To improve a coding compressing rate by applying plural number of times of coding processing and transmitting code information with a short code length to a reception side in a picture coding system used for a facsimile device or the like. CONSTITUTION:The maximum repetitive number of times is set so as to apply plural number of times of coding processings in the coding processing as to each main scanning line. When the 1st coding processing is finished, the outputs of counters 40, 60 are compared, and the result of comparison C is informed to a coding section 30. When the code length after the coding is longer than the length of the original picture information, the coding processing is finished, the storage content of a memory 20 having a short code length is transferred to an output buffer 80- and is transmitted to the reception side. When the code length after the coding is shorter than the length of the original picture information, the 1st coding information stored in a memory 50 is inputted again to the coding section 30 and the 2nd coding processing is performed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はファクシミリ装置等に用いられる画像符号化
方式に関し、特に圧縮率の高い符号化を実現する画像符
号化方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image encoding method used in facsimile machines and the like, and particularly to an image encoding method that realizes encoding with a high compression ratio.

〔従来技術〕[Prior art]

従来、ファクシミリ装置に用いられる符号化方式として
は、モディファイド・ハフマン方式(以下MH方式とい
う)に代表される一次元符号化方式や、モディファイド
・リード方式などの二次元符号化方式があるが、これら
の符号化方式では読取った画像の内容によっては、符号
長が元の画情軸長(ビデオ情報)よりも長くなったり、
あるいは高い圧縮率の符号情報が得られないことがあっ
た。
Traditionally, the encoding methods used in facsimile machines include one-dimensional encoding methods such as the Modified Huffman method (hereinafter referred to as the MH method) and two-dimensional encoding methods such as the Modified Read method. With the encoding method, depending on the content of the read image, the code length may be longer than the original image axis length (video information),
Alternatively, encoded information with a high compression ratio may not be obtained.

〔発明の目的〕[Purpose of the invention]

この発明は上記実情に鑑みてなされたものであり、符号
化圧縮率を極力高めることで、電送時間の短縮を図り、
通信コストの低減化に寄与する画像符号化方式を提供す
ることを目的とする。
This invention was made in view of the above circumstances, and aims to shorten the transmission time by increasing the encoding compression rate as much as possible.
The purpose of this invention is to provide an image encoding method that contributes to reducing communication costs.

〔発明の構成〕[Structure of the invention]

そこでこの発明では、1主走査線ごとの符号化処理に際
して、該符号化処理を複数回繰返すようにする。すなわ
ち、各主走査線ごとの符号化処理に際して、符号化処理
後の符号長が符号化処理前の符号長より長い場合には当
該主走査線の符号化処理を終了し符号長の短いほうを最
終符号化情報とするとさもに、符号化処理後の符号長が
符号化処理前の符号長より短い場合にはさらに同様の符
号化処理を行い、このような動作を最大繰返し回数を設
定して、あるいは符号化後の符号長が符号化前の符号長
より長くなるまで繰返すようにすることで、各主走査線
についての符号化処理を少なくとも1回以上複数回繰返
すようにしている。
Therefore, in the present invention, when encoding each main scanning line, the encoding process is repeated a plurality of times. In other words, when encoding each main scanning line, if the code length after encoding is longer than the code length before encoding, the encoding process for that main scanning line is finished and the shorter code length is used. In addition, if the code length after the encoding process is shorter than the code length before the encoding process, the same encoding process is performed further, and the maximum number of repetitions of this operation is set. Alternatively, the encoding process for each main scanning line is repeated at least once or more times by repeating the encoding process until the code length after encoding becomes longer than the code length before encoding.

し実施例〕 以下この発明にかかる画像符号化方式を添付図面に示す
実施例にしたがって詳細に説明する。
Embodiments] The image encoding method according to the present invention will be described in detail below with reference to embodiments shown in the accompanying drawings.

図は本発明の一実施例を示すものである。The figure shows one embodiment of the invention.

図において、読取装置10は例えばイメージセンサおよ
び該イメージセンサを駆動制御するセンサドライバで構
成されており、送信原稿の画像読取りを行う。読取装置
10で読取られた画情報Vは白黒の2値信号としてメモ
リ20に入力される。
In the figure, a reading device 10 includes, for example, an image sensor and a sensor driver that drives and controls the image sensor, and reads an image of a transmitted document. The image information V read by the reading device 10 is input to the memory 20 as a black and white binary signal.

メモリ20は少なくとも1主走査ライン分の画情報を記
憶することができるラインメモリであり、第1の動作と
して、該記憶した画情報を符号化部30に入力する。こ
のときの画情報の全長(例えばA4サイズの原稿の場合
は1728ビツト)はカウンタ40でカウントされる。
The memory 20 is a line memory capable of storing image information for at least one main scanning line, and as a first operation, the stored image information is input to the encoding section 30. The total length of the image information at this time (for example, 1728 bits for an A4 size document) is counted by a counter 40.

符号化部30はモディファイド・ハフマン方式などの一
次元帯域圧縮方式を用いて前記画情報の符号化を行い、
該符号化出力をメモリ50に入力する。このときの符号
化出力の符号長はカウンタ60でカウントされる。
The encoding unit 30 encodes the image information using a one-dimensional band compression method such as a modified Huffman method,
The encoded output is input to memory 50. The code length of the encoded output at this time is counted by a counter 60.

メモリ50は前記メモリ20同様ラインメモリであり、
第1の動作として入力された符号化情報を記憶する。
The memory 50 is a line memory like the memory 20,
The encoded information input as the first operation is stored.

この第1番目の符号化処理の終了とともに、比較部70
はカウンタ40の出力とカウンタ60の出力との比較を
行い、該比較結果Cを符号化部30に知らせる。そして
、カウンタ60の出力がカウンタ40の出力より大きい
場合すなわち符号化した後の符号長のほうが元の画情報
の長さより長い場合には、当該主走査ラインの符号化処
理はこれで終了し、符号長が短いメモリ20の記憶内容
を出カバソファ80に転送し、該出力バッファ80で走
査線同期信号(例えばEOL)が付加された後、該走査
線の情報は伝送部90を介して受信側に伝送される。し
かし、この場合カウンタ60の出力がカウンタ40の出
力より小さい場合すなわち符号化した後の符号長のほう
が元の画情報の長さより短い場合には、さらに符号長を
短くすべくメモリ50に記憶させた第1回目の符号化情
報を再び符号化部30に入力して2回目の符号化処理を
行う。この2回目の符号化処理であるが、例えばモディ
ファイド・ハフマン方式を例にとると、メモリ50に記
憶させた第1回目の符号化情報はメイクアップコードと
ターミネイティングコードとの組合わせであって単に[
0」あるいは「1」の信号で白あるいは黒を示すビデオ
情報とは異なるのであるが、該符号化情報を前記ビデオ
情報とみなして、前回同様のモディファイド・ハフマン
方式により符号化処理を実行する。なお、この際カウン
タ60は前記第1回目の符号化情報の符号長を保持して
いる。符号化部30で第2回目の符号化処理が終了する
と、この符号化情報はメモリ20に入力されて記憶され
る一方、カウンタ40で、このときの符号長がカウント
される。そして比較部70は再びカウンタ60の出力と
カウンタ40の出力との比較を行い、比較結果Cを符号
化部30に知らせる。この結果、カウンタ40の出力が
カウンタ60の出力より大きい場合すなわち第1回目の
符号化情報の符号長のほうが第2回目の符号化情報の符
号長より長い場合には、当該主走査ラインの符号化処理
はこれで終了し、符号長の短いメモリ50の記憶内容を
出力バッファ80に転送し、前記同様走査線同期信号が
付加された後伝送部90を介して受信側に伝送する。し
かし、カウンタ40の出力がカウンタ60の出力より小
さい場合すなわち第2回目の符号化情報の符号長が第1
回目の符号化情報の符号長より短い場合には、さらに符
号長を短くすべく、メモリ20に記憶させた第2回目の
符号化情報を再び符号化部30に入力して第3回目の符
号化処理を行う。
At the end of this first encoding process, the comparator 70
compares the output of the counter 40 and the output of the counter 60, and notifies the encoding unit 30 of the comparison result C. Then, if the output of the counter 60 is larger than the output of the counter 40, that is, if the code length after encoding is longer than the length of the original image information, the encoding process for the main scanning line is finished, After the stored contents of the memory 20 with a short code length are transferred to the output buffer 80 and a scanning line synchronization signal (for example, EOL) is added thereto, the information of the scanning line is transmitted to the receiving side via the transmission section 90. transmitted to. However, in this case, if the output of the counter 60 is smaller than the output of the counter 40, that is, if the code length after encoding is shorter than the length of the original image information, the code length is stored in the memory 50 in order to further shorten the code length. The first encoded information is input again to the encoder 30 to perform the second encoding process. Regarding this second encoding process, taking the Modified Huffman method as an example, the first encoding information stored in the memory 50 is a combination of a makeup code and a terminating code. simply[
Although this is different from video information that indicates white or black with a signal of ``0'' or ``1,'' this encoded information is regarded as the video information and encoding processing is performed using the modified Huffman method similar to the previous time. Note that at this time, the counter 60 holds the code length of the first encoded information. When the second encoding process is completed in the encoding unit 30, this encoded information is input to the memory 20 and stored, while the counter 40 counts the code length at this time. Then, the comparison section 70 again compares the output of the counter 60 and the output of the counter 40, and notifies the comparison result C to the encoding section 30. As a result, if the output of the counter 40 is larger than the output of the counter 60, that is, if the code length of the first encoded information is longer than the code length of the second encoded information, the code of the main scanning line The encoding process is now completed, and the stored contents of the memory 50 having a short code length are transferred to the output buffer 80, and after a scanning line synchronization signal is added thereto as described above, it is transmitted to the receiving side via the transmission section 90. However, if the output of the counter 40 is smaller than the output of the counter 60, that is, the code length of the second encoded information is the same as that of the first encoded information.
If the code length is shorter than the code length of the encoded information of the first time, the second encoded information stored in the memory 20 is inputted into the encoding unit 30 again to make the code length of the third encoded information shorter. Perform conversion processing.

以下、同様にして、上述したような符号化処理が複数回
繰返される。
Thereafter, the above-described encoding process is repeated multiple times in the same manner.

ところで、上記符号化処理の繰返し回数であるが、■主
走査線の画素数が1728ビツトであるとするさ、1回
の符号化で1ビツトずつ削減されたとして最大1727
回の符号化処理が考えられる。
By the way, regarding the number of repetitions of the above encoding process, assuming that the number of pixels in the main scanning line is 1,728 bits, the maximum number of pixels is 1,727 if each bit is reduced in one encoding.
It is possible to consider multiple encoding processes.

このように、1主走査線についての符号化処理に際して
、最大繰返し回数を設定せずに符号化後の符号長が符号
化前の符号長より長くなったときに符号化処理を終了す
るようにしてもよいのであるが、本実施例では適宜数の
最大繰返し回数nを予め設定しておく。すなわち、(n
−1)回目までの符号化処理については、符号化後の符
号長が符号化前の符号長より長くなったときに符号化処
理を終了するが、符号化処理が第n回目まで及んだ場合
には、該n回目の符号化における符号長の短いほうを最
終符号化情報とした後、符号化処理はこの第n回目で終
了するのである。
In this way, when encoding processing for one main scanning line, the encoding processing is ended when the code length after encoding becomes longer than the code length before encoding, without setting the maximum number of repetitions. However, in this embodiment, an appropriate maximum number of repetitions n is set in advance. That is, (n
-1) Regarding the encoding process up to the nth time, the encoding process ends when the code length after encoding becomes longer than the code length before encoding, but the encoding process extends to the nth time. In this case, the shorter code length in the n-th encoding is used as the final encoded information, and then the encoding process ends at the n-th encoding.

また、このような符号化処理を行う場合、1主走査線に
ついての最大繰返し回数nが決められているために、実
際の繰返し回数は有限のビット長で識別させることがで
きる。例えば、最大繰返し回数を4回とした場合、実際
の繰返し回数は最低2ビツトで識別させることができる
。このような実際の繰返し回数を示す情報を1主走査線
ごとの符号化情報に付加して受信側に伝送するようにす
れば、受信側では、復号化処理の際の所要繰返し回数を
予め認識することができ、例えば最終的な復号化情報の
ビット長の確認を行う等のための制御構成は不要となる
Further, when performing such encoding processing, since the maximum number of repetitions n for one main scanning line is determined, the actual number of repetitions can be identified by a finite bit length. For example, if the maximum number of repetitions is 4, the actual number of repetitions can be identified using at least 2 bits. If information indicating the actual number of repetitions is added to the encoded information for each main scanning line and transmitted to the receiving side, the receiving side can recognize in advance the number of repetitions required for decoding processing. This eliminates the need for a control configuration for, for example, checking the bit length of the final decoded information.

このように、本実施例では各主走査線についての符号化
処理に際して、最大繰返し回数を設定して符号化処理を
複数回行わせ、かつ常に符号長の短いほうの符号化情報
を受信側に伝送するようにしたために、符号化圧縮率を
確実に向上させることができる。
In this way, in this embodiment, when encoding processing for each main scanning line, the maximum number of repetitions is set and the encoding processing is performed multiple times, and the encoding information with the shorter code length is always sent to the receiving side. Since the information is transmitted, the encoding compression rate can be reliably improved.

なお、本発明に用いる帯域圧縮方式はモディファイド・
ハフマン方式などの一次元帯域圧縮方式が特に有効であ
る。
Note that the band compression method used in the present invention is a modified
One-dimensional band compression methods such as the Huffman method are particularly effective.

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

以上説明したように、この発明にかかる画像符号化方式
によれば、簡単な制御構成により符号化圧縮率を確実に
向上させることができ、これにより電送時間が短縮され
るとともに通信コストが低減されるという優れた効果を
奏する。
As explained above, according to the image encoding method according to the present invention, it is possible to reliably improve the encoding compression rate with a simple control configuration, thereby shortening the transmission time and reducing communication costs. It has the excellent effect of

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

図はこの発明にかかる画像符号化方式を実施するための
一構成例を示すブロック図である。 10・読取装置、20.50−メモリ、3o・符号化部
、40.60・・・カウンタ、7o・・比較部、80・
出力バッファ、90・・伝送部。
The figure is a block diagram showing an example of a configuration for implementing the image encoding method according to the present invention. 10.Reading device, 20.50-Memory, 3o.Encoding section, 40.60...Counter, 7o..Comparison section, 80.
Output buffer, 90...transmission section.

Claims (2)

【特許請求の範囲】[Claims] (1)読取った原稿の画情報を所定の帯域圧縮方式を用
いてl主走(資)腺ごとに符号化処理する画像符号化方
式において、各主走査線について、符号化処理後の符号
長が符号化処理前の符号長より長い場合には当該主走査
線の符号化処理を終了し符号長の短いほうを最終符号化
情報とするとともに、符号化処理後の符号長が符号化処
理前の符号長より短い場合にはさらに前記帯域圧縮方式
を用いた符号化処理を行\うことにより、各主走査ライ
ンについてべの符号化処理を少なくとも1回以上複数回
繰返すようにしたことを特徴とする画像符号化方式。
(1) In an image encoding method in which the image information of a read document is encoded for each main scanning line using a predetermined band compression method, the code length after the encoding process is determined for each main scanning line. If the code length is longer than the code length before the encoding process, the encoding process for the main scanning line is finished, the shorter code length is used as the final encoded information, and the code length after the encoding process is the same as before the encoding process. If the code length is shorter than the code length, the encoding process is further performed using the band compression method, thereby repeating the above encoding process at least once or more times for each main scanning line. An image encoding method that uses
(2)前記各主走査ラインについての符号化処理の繰返
し回数には最大回数値が予め設定されている特許請求の
範囲第(1)項記載の画像符号化方式。
(2) The image encoding method according to claim 1, wherein a maximum number of repetitions of the encoding process for each main scanning line is set in advance.
JP58173830A 1983-09-20 1983-09-20 Picture coding system Granted JPS6065669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58173830A JPS6065669A (en) 1983-09-20 1983-09-20 Picture coding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58173830A JPS6065669A (en) 1983-09-20 1983-09-20 Picture coding system

Publications (2)

Publication Number Publication Date
JPS6065669A true JPS6065669A (en) 1985-04-15
JPH0121666B2 JPH0121666B2 (en) 1989-04-21

Family

ID=15967943

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58173830A Granted JPS6065669A (en) 1983-09-20 1983-09-20 Picture coding system

Country Status (1)

Country Link
JP (1) JPS6065669A (en)

Also Published As

Publication number Publication date
JPH0121666B2 (en) 1989-04-21

Similar Documents

Publication Publication Date Title
JPH0783427B2 (en) Image transmission method
JP2535932B2 (en) Halftone image coding device
US4972497A (en) Image coding system
JPH07264417A (en) Image coding method
US6879725B2 (en) Method, system, and program for decoding a section from compressed data
JPS6065669A (en) Picture coding system
JPH05151349A (en) Image data compressing method and encoding circuit
JP3247754B2 (en) Image transmission device
JPH01108861A (en) Picture coder
JPS58136172A (en) Facsimile code transmission method
JPH0420308B2 (en)
JP3295502B2 (en) Facsimile apparatus control method and facsimile apparatus
JPH11331844A (en) Fixed length block encoder and decoder
JP3187696B2 (en) Image coding device
JPS63260364A (en) Code converting method for facsimile picture signal
JPS6243260A (en) Facsimile equipment
JPS61256863A (en) Facsimile method
JPS6069960A (en) Binary picture signal converting system
JPH02211774A (en) Mr 2-dimensional coding system
JPS6074777A (en) Coding system of picture information
JPS61173528A (en) Encoding device for modified hoffman code
JPS6336190B2 (en)
JPS62199171A (en) Dither picture encoding method
JPH06225152A (en) Picture encoding system
JPH05176185A (en) Coding decoding system