JPH01176165A - Picture signal coding system and its device - Google Patents

Picture signal coding system and its device

Info

Publication number
JPH01176165A
JPH01176165A JP33604387A JP33604387A JPH01176165A JP H01176165 A JPH01176165 A JP H01176165A JP 33604387 A JP33604387 A JP 33604387A JP 33604387 A JP33604387 A JP 33604387A JP H01176165 A JPH01176165 A JP H01176165A
Authority
JP
Japan
Prior art keywords
variable length
block
encoding
image signal
pixels
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
JP33604387A
Other languages
Japanese (ja)
Inventor
Keiji Nemoto
根本 啓次
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP33604387A priority Critical patent/JPH01176165A/en
Publication of JPH01176165A publication Critical patent/JPH01176165A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To realize the coding system immune to a transmission error by predetermining each individual variable length code to all combinations of picture elements in a block consisting of plural picture elements, reading the picture signal in the unit of blocks and outputting a variable length code corresponding to the picture signal in the unit of blocks. CONSTITUTION:The size of a block consisting of plural picture elements is decided prior to the coding of a binary picture signal. A rectangular block consisting of mXn picture elements is used as the block. As the combination of each picture element in the block, there are combinarions of 2(mXn) ways, and each variable length code is defined to each combination. In the actual coding, at first, the picture signal is read in the unit of blocks and the variable length code corresponding to the picture signal in the block unit is outputted for each block to realize the coding. Thus, as to the binary picture, since the coding in the unit of blocks is applied, the area affected by error is reduced.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は白画素と黒画素からなる2値画像信号の伝送時
間を短縮する、あるいは蓄積記憶容量を削減するための
画像信号符号化方式およびその装置に関する。
Detailed Description of the Invention (Field of Industrial Application) The present invention provides an image signal encoding method and method for shortening the transmission time or storage capacity of a binary image signal consisting of white pixels and black pixels. Regarding the device.

(従来の技術) 従来より、白画素と黒画素からなる2値画像信号の符号
化方式としては、モディファイド・ハフマン(以下、M
Hと略す)符号化方式とモディファイド、リード(以下
、MRと略す)とが標準方式として用いられている。こ
れらの方式の詳細は、文献1:吹抜敬彦著、「画f象の
ディジタル信号処理J(日刊工業新聞社列)、第12章
に記載されているち(発明が解決しようとする問題点) 従来のMHやMRといった2値画(象の符号化方式は、
行を単位とした符号化方式となっている。
(Prior art) Modified Huffman (hereinafter referred to as M
A coding method (abbreviated as H) and a modified read (abbreviated as MR hereinafter) are used as standard methods. Details of these methods are described in Document 1: Takahiko Fukinuki, "Digital signal processing of image f-elements J (Nikkan Kogyo Shimbun series), Chapter 12 (Problems to be solved by the invention)" Conventional binary images such as MH and MR (the elephant encoding method is
This is an encoding method that uses rows as units.

従って、伝送誤りが生じた場合に、誤りが生じた位置か
らその行の残りのすべての画素に対して誤りが波及して
しまうという問題点かある。さらに、MR方式の場合に
は数行にわたって誤りが波及してしまうという問題点が
ある。
Therefore, when a transmission error occurs, there is a problem in that the error spreads from the position where the error occurs to all remaining pixels in that row. Furthermore, in the case of the MR method, there is a problem in that errors spread over several lines.

また、最近では1つのシステムで多値画像の符号化処理
と2値画像の符号化処理の両方を実現できるものが要求
されている。しかし多値面f象の符号化処理と2値画像
の符号化処理の両方を実現できるものが要求されている
。しかし多値画像の符号化方式は、ディスクリート・コ
サイン変換符号化方式やブロック・トランケーション符
号化方式のように、正方形や矩形のブロックを単位とし
て符号化する場合が多い。ところが、従来のMHやMR
といった2値画像の符号化方式は、行を単位とした符号
化方式である。従って、両者に共通に利用できるハード
ウェアは非常に少ない。その結果、多値画像と2値画像
の両方を符号化できるシステムのバードウtア量が膨大
となってしまうという問題点もある。
Furthermore, recently there has been a demand for a system that can perform both multilevel image encoding processing and binary image encoding processing in one system. However, there is a need for something that can realize both the encoding process of a multivalued surface f-image and the encoding process of a binary image. However, multilevel image encoding systems often encode square or rectangular blocks as units, such as discrete cosine transform encoding and block truncation encoding. However, conventional MH and MR
The binary image encoding method is a row-by-row encoding method. Therefore, there is very little hardware that can be commonly used for both. As a result, there is a problem in that the amount of hardware required for a system capable of encoding both multivalued images and binary images becomes enormous.

本発明は、2値画像についてもブロックを単位とした符
号化を行うことにより、誤りが波及する領域を少なくし
、同時に多値画像の符号化のためのハードウェアの多く
の部分を2値画像の符号化においても共通に利用するこ
とができる、画像信号の符号化方式とその装置を提供す
ることを目的とする。
The present invention reduces the area where errors propagate by encoding binary images in units of blocks, and at the same time converts many parts of the hardware for encoding multilevel images into binary images. An object of the present invention is to provide an image signal encoding method and an apparatus therefor, which can be commonly used for encoding.

(問題点を解決するための手段) 本発明の画像信号の符号化方式は、白画素と黒画素から
なる2値画像信号を符号化するに当たり、複数の画素か
らなるブロック内の画素のすべての組み合わせに対して
それぞれ個別の可変長符号をあらかじめ定めておき、上
記ブロック単位で画fi信号を読み出し、上記ブロック
単位の画1象信号にX’f6する可変長符号を出力する
ことを特徴とする。
(Means for Solving the Problems) The image signal encoding method of the present invention, when encoding a binary image signal consisting of white pixels and black pixels, all pixels in a block consisting of a plurality of pixels. An individual variable length code is predetermined for each combination, the image fi signal is read out in units of blocks, and a variable length code which is multiplied by X'f6 to the image signal in each block is outputted. .

また、本発明の画f象信号の符号化装置は、各画素を1
ピントで表現する2値画像信号を符号化するに当たり、
複数の画素からなるブロック内の画素のすべての組み合
わせに対してそれぞれ個別の可変長符号の情報を記憶し
上記ブロック単位の画像信号が読み出しアドレスとして
与えられた場合に対応する可変長符号の情報を出力する
符号記憶部と、上記ブロック単位で画像信号を読み出し
て記憶し上記符号記憶部の読み出しアドレスとして出力
するブロック読み出し部と、上記符号記憶部から出力さ
れる可変長符号の情報を受けて上記可変長符号を出力す
る符号化部とで構成される。
Furthermore, the image f-image signal encoding device of the present invention encodes each pixel by one
When encoding a binary image signal expressed by focus,
Individual variable length code information is stored for each combination of pixels in a block consisting of a plurality of pixels, and when the image signal in units of blocks is given as a read address, the corresponding variable length code information is stored. a code storage section for outputting; a block reading section for reading and storing the image signal in block units; and outputting the image signal as a read address of the code storage section; It consists of an encoding section that outputs a variable length code.

(作用) 本発明の画像信号の符号化方式として説明する。(effect) This will be explained as an image signal encoding method according to the present invention.

まず、白画素と黒画素からなる2値画像信号の符号化を
行う前に、複数の画素からなるブロックの大きさを決め
ておく。ここでは、ブロックとしてmXn画素からなる
長方形のブロックを用いるものとして説明する。
First, before encoding a binary image signal consisting of white pixels and black pixels, the size of a block consisting of a plurality of pixels is determined. Here, a description will be given assuming that a rectangular block consisting of mXn pixels is used as the block.

このブロック内の各画素は白画素か黒画素のどちらか一
方である。従って、ブロック内の各画素の組み合わせと
しては、2の(mXn)乗通りの組み合わせが存在する
。そこで、それぞれの組み合わせに対して個別の可変長
符号を定義する。その場合に、各組み合わせの発生確率
を考慮して、発生確率の高い組み合わせに対しては短い
符号を割り当て、発生確率の低い組み合わせに対しては
長い符号を割り当てる。
Each pixel within this block is either a white pixel or a black pixel. Therefore, there are 2 (mXn) combinations of the pixels in the block. Therefore, individual variable length codes are defined for each combination. In this case, considering the probability of occurrence of each combination, a short code is assigned to a combination with a high probability of occurrence, and a long code is assigned to a combination with a low probability of occurrence.

例えば通常の文書のような2値画像は白い部分が多いの
で、すべての画素が白画素からなる組み合わせの発生確
率は非常に高い。そこで、このような組み合わせには符
号長が1ピント程度の非常に短い符号を割り当てる。こ
のように発生確率から生成される可変長符号としては、
ハフマン符号が良く知られている。
For example, since a binary image such as a normal document has many white parts, the probability of occurrence of a combination in which all pixels are white is extremely high. Therefore, a very short code with a code length of about 1 pinto is assigned to such a combination. The variable length code generated from the probability of occurrence is as follows:
Huffman codes are well known.

そして、実際の符号化を行うに当たり、まずブロック単
位で画像信号を読み出す。このブロック単位の画f象信
号に対応する可変長符号を各ブロック毎に出力すること
により、符号化が実現できる。
Then, when performing actual encoding, first the image signal is read out in block units. Encoding can be realized by outputting a variable length code corresponding to this image signal in units of blocks for each block.

また、このブロック単位の画f象信号を多値画像の1つ
の画素の値と考えれば、ここで行っている。
Furthermore, if this block-based image signal is considered as the value of one pixel of a multi-valued image, this is done here.

符号化は多値画像の符号化処理と同様となる。Encoding is similar to the encoding process for multivalued images.

従って、多値側1象の符号化のためのハードウェアの多
くの部分を、2値画像の符号化においても共通に利用す
ることが可能となる。
Therefore, many parts of the hardware for encoding one image on the multilevel side can be commonly used for encoding binary images.

(実施例) 以下、図面により本発明の一実施例を説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の画像信号の符号化方式を実現する符号
化装置の一例を示すブロック図である。なお、以下の説
明では複数の画素からなるブロックとして2×2画素の
正方形のブロックを用いているが、異なるサイズのブロ
ックや長方形のブロックを用いることも可能である。
FIG. 1 is a block diagram showing an example of an encoding device that implements the image signal encoding method of the present invention. In the following description, a square block of 2×2 pixels is used as a block consisting of a plurality of pixels, but it is also possible to use blocks of different sizes or rectangular blocks.

第1図に示すように、ブロック読み出し部1はブロック
単位に白画素と黒画素からなる画像信号を読み出す。す
なわち、画像信号を縦2画素、横2画素の計4画素を1
ブロツクとして読み出して記憶する。ここで、各画素は
1ビットで表現されているので、ブロック読み出し部1
は4ビットを記憶することになる。
As shown in FIG. 1, a block reading unit 1 reads out image signals consisting of white pixels and black pixels in units of blocks. In other words, the image signal is divided into 4 pixels (2 pixels vertically and 2 pixels horizontally) into 1
Read and store as a block. Here, since each pixel is expressed by 1 bit, the block readout unit 1
will store 4 bits.

第2図は、ブロック内の画素の組み合わせを示す説明図
である。第2図に示すように、各ブロックは4画素から
なり各画素は白画素または黒画素であるから、組み合わ
せとしては2の4乗、すなわち16通りの組み合わせが
存在する。
FIG. 2 is an explanatory diagram showing combinations of pixels within a block. As shown in FIG. 2, each block is made up of four pixels, and each pixel is a white pixel or a black pixel, so there are 2 to the fourth power, that is, 16 combinations.

第3図は符号記憶部2に記憶する可変長符号の情報を示
す説明図である。第2図に示すようなブロック内画素の
組み合わせに対して、第3図に示すような個別の可変長
符号とその符号長とをそれぞれ定義し、各組み合わせを
示す4ビットのアドレスに対応して、可変長符号の情報
として符号記憶部2に記憶する。
FIG. 3 is an explanatory diagram showing information on variable length codes stored in the code storage section 2. As shown in FIG. For combinations of pixels in a block as shown in Fig. 2, individual variable length codes and their code lengths as shown in Fig. 3 are defined, and corresponding to 4-bit addresses indicating each combination. , is stored in the code storage unit 2 as variable length code information.

ただし、各アドレスに対Gして異なる符号長の可変長符
号をそのまま記憶するのは困難なので、不要なビットも
含めてすべての可変長符号を固定のビット数で記憶する
。例えば第3図に示すような場合は、最大の符号長が8
なので、この符号長よりも短い符号については後に0を
挿入して記憶する。
However, since it is difficult to directly store variable length codes with different code lengths for each address, all variable length codes including unnecessary bits are stored as a fixed number of bits. For example, in the case shown in Figure 3, the maximum code length is 8
Therefore, codes shorter than this code length are stored with 0 inserted after them.

このような記憶方法を用いても、各可変長符号の符号長
を記憶しているので、正しく可変長符号を読み出すこと
ができる。
Even if such a storage method is used, since the code length of each variable length code is stored, the variable length code can be read out correctly.

なお、符号の後に付加された不要ビットは、符号化部3
において取り除かれて伝送路へ出力される。この符号化
部3の構成例については、特開昭57−199379号
公報の第3図に記載されている。
Note that the unnecessary bits added after the code are
is removed and output to the transmission line. An example of the configuration of this encoding section 3 is described in FIG. 3 of Japanese Patent Application Laid-Open No. 57-199379.

また、第3図に示すように各組み合わせの発生確率を考
慮して可変長符号の定義を行う。例えば、ブロック内が
すべて白画素のような発生確率の高い組み合わせに対し
ては、短い符号を割り当てる。また、白画素と黒画素と
が交互に存在するような発生確率の低い組み合わせに対
しては、長い符号を割り当てる。このような可変長符号
の定義を行うことにより、情報量の圧縮が実現できる。
Furthermore, as shown in FIG. 3, variable length codes are defined taking into consideration the probability of occurrence of each combination. For example, a short code is assigned to a combination with a high probability of occurrence, such as when all pixels in a block are white. Further, a long code is assigned to a combination with a low probability of occurrence, such as a combination in which white pixels and black pixels exist alternately. By defining such a variable length code, the amount of information can be compressed.

この符号記憶部2の読み出しアドレスとして、ブロック
読み畠し部1に記憶されたブロック単位の画ft信号が
入力されている。従って、符号記憶部2は各ブロック単
位の画像信号に対応する可変長符号とその符号長とを出
力する。これらを受けた符号化部3は、符号長で示され
る長さの可変長符号を、符号化出力として出力する。
As the read address of the code storage section 2, the block-based image ft signal stored in the block reading section 1 is input. Therefore, the code storage unit 2 outputs a variable length code and its code length corresponding to the image signal of each block. The encoding unit 3 that receives these outputs a variable length code having a length indicated by the code length as an encoded output.

このような符号化処理において、ブロック読み出し部1
に記憶されたブロック単位の画像信号を多値側1象の1
つの画素の値と考えれば、ここで行っている符号化は多
値画像の符号化処理と同様になる。従って、符号記憶部
2や符号化部3は多値画像の符号化の符号化においても
共通に利用することができる。
In such encoding processing, the block reading unit 1
The block unit image signal stored in the multi-value side 1 image
If we consider the value of one pixel, the encoding performed here is similar to the encoding process of a multivalued image. Therefore, the code storage section 2 and the encoding section 3 can be used in common for encoding multivalued images.

(発明の効果) 以上述べたように本発明の画像信号の符号化方式および
その装置を用いることにより、ブロック単位に2値画像
を符号化することが可能となる。これにより、従来の行
単位の符号化方式と比べて伝送誤りに強い符号化方式を
実現できる。また2値画像の符号化方式において、多値
画像の符号化方式と多くのハードウェアを共通に利用す
ることができる。
(Effects of the Invention) As described above, by using the image signal encoding method and apparatus of the present invention, it becomes possible to encode a binary image in units of blocks. This makes it possible to realize an encoding system that is more resistant to transmission errors than conventional row-by-row encoding systems. Further, in the binary image encoding method, a lot of hardware can be used in common with the multi-value image encoding method.

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

第1図は本発明の画1象信号の符号化方式を実現する符
号化装置の一例を示すブロック図、第2図は、ブロック
内の画素の組み合わせを示す説明図、第3図は符号記憶
部2に記憶する可変長符号の情報を示す説明図である。 図において、 1・・・ブロック読み出し部、2・・・符号記・億部、
3・・・符号化部。
FIG. 1 is a block diagram showing an example of an encoding device that implements the encoding method of the image signal of the present invention, FIG. 2 is an explanatory diagram showing combinations of pixels in a block, and FIG. 3 is a code storage. 3 is an explanatory diagram showing information on variable length codes stored in section 2. FIG. In the figure, 1...Block reading section, 2...Code recording/billion section,
3... Encoding section.

Claims (2)

【特許請求の範囲】[Claims] (1)白画素と黒画素からなる2値画像信号を符号化す
るに当たり、複数の画素からなるブロック内の画素のす
べての組み合わせに対してそれぞれ個別の可変長符号を
あらかじめ定めておき、上記ブロック単位で画像信号を
読み出し、上記ブロック単位の画像信号に対応する可変
長符号を出力することを特徴とする画像信号の符号化方
式。
(1) When encoding a binary image signal consisting of white pixels and black pixels, individual variable length codes are determined in advance for all combinations of pixels in a block consisting of a plurality of pixels. An image signal encoding method characterized in that an image signal is read out in units and a variable length code corresponding to the image signal in blocks is output.
(2)各画素を1ビットで表現する2値画像信号を符号
化するに当たり、複数の画素からなるブロック内の画素
のすべての組み合わせに対してそれぞれ個別の可変長符
号の情報を記憶し上記ブロック単位の画像信号が読み出
しアドレスとして与えられた場合に対応する可変長符号
の情報を出力する符号記憶部と、上記ブロック単位で画
像信号を読み出して記憶し上記符号記憶部の読み出しア
ドレスとして出力するブロック読み出し部と、上記符号
記憶部から出力される可変長符号の情報を受けて上記可
変長符号を出力する符号化部とを有することを特徴とす
る画像信号符号化装置。
(2) When encoding a binary image signal in which each pixel is expressed with 1 bit, information on individual variable length codes is stored for each combination of pixels in a block consisting of a plurality of pixels. a code storage unit that outputs information on a variable length code corresponding to a unit image signal given as a read address; and a block that reads and stores the image signal in units of blocks and outputs it as a read address of the code storage unit. An image signal encoding device comprising: a reading section; and an encoding section that receives information on a variable length code output from the code storage section and outputs the variable length code.
JP33604387A 1987-12-29 1987-12-29 Picture signal coding system and its device Pending JPH01176165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33604387A JPH01176165A (en) 1987-12-29 1987-12-29 Picture signal coding system and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33604387A JPH01176165A (en) 1987-12-29 1987-12-29 Picture signal coding system and its device

Publications (1)

Publication Number Publication Date
JPH01176165A true JPH01176165A (en) 1989-07-12

Family

ID=18295112

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33604387A Pending JPH01176165A (en) 1987-12-29 1987-12-29 Picture signal coding system and its device

Country Status (1)

Country Link
JP (1) JPH01176165A (en)

Similar Documents

Publication Publication Date Title
US5045938A (en) Method and apparatus for encoding using variable length codes
US6243496B1 (en) Data compression
US6643408B2 (en) Image coding and decoding apparatus, method of image coding and decoding, and recording medium for recording program for image coding and decoding
KR100241792B1 (en) Method and apparatus for encoding and decoding image data
US5963342A (en) Image processing apparatus and method thereof
US6961474B1 (en) Huffman encoder for encoding/decoding DCT coefficients
US5274719A (en) Image data coding apparatus
JPH08214309A (en) Image signal decoding device
EP0598995B1 (en) Image encoding/decoding method
JP3005385B2 (en) Huffman decoding circuit
JP2738136B2 (en) Blocking device
JPH01216674A (en) Encoding system for picture signal and its apparatus
JPH01103369A (en) Coding system for picture signal and equipment therefor
JP3202403B2 (en) Image processing apparatus and method
JPS6329472B2 (en)
JPH04269084A (en) Image converter
EP0541949A2 (en) Method for video compression
EP0652670A1 (en) Image encoding apparatus and method
JPH0479478A (en) Picture data encoding device
JPS595778A (en) Compression system for half-tone picture data
JPH07255053A (en) Zigzag scan circuit
JPH0261831B2 (en)
JP2917732B2 (en) Compressed image memory controller
JPH01216673A (en) Encoding/decoding system for picture signal and its apparatus
JPH0373669A (en) Dithered image data compression device