JP2797851B2 - Binary image encoding / decoding method - Google Patents

Binary image encoding / decoding method

Info

Publication number
JP2797851B2
JP2797851B2 JP4215880A JP21588092A JP2797851B2 JP 2797851 B2 JP2797851 B2 JP 2797851B2 JP 4215880 A JP4215880 A JP 4215880A JP 21588092 A JP21588092 A JP 21588092A JP 2797851 B2 JP2797851 B2 JP 2797851B2
Authority
JP
Japan
Prior art keywords
conversion
dimensional
unit
encoding
binary image
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
JP4215880A
Other languages
Japanese (ja)
Other versions
JPH0662259A (en
Inventor
英幸 小野
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 JP4215880A priority Critical patent/JP2797851B2/en
Publication of JPH0662259A publication Critical patent/JPH0662259A/en
Application granted granted Critical
Publication of JP2797851B2 publication Critical patent/JP2797851B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は高速伝送,大容量蓄積を
可能とする2値画像符号化・復号化方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binary image encoding / decoding system capable of high-speed transmission and large-capacity storage.

【0002】[0002]

【従来の技術】従来、白と黒とから構成される文書,図
面等をスキャナーで走査して得られた白黒2値の画像信
号を符号化する手法として、ファクシミリ符号化の国際
標準方式のモディファイド・ハフマン(Modifie
d Huffman:MH)方式とモディファイド・
リード(Modified READ:MR方式と
知られている。MH方式は符号化する走査線のみの白画
のランレングスと黒画素のランレングスを計数し、こ
の白画素と黒画素のランレングスを符号化するものであ
り、1次元符号化方式の代表的な方式である。また、M
R方式は符号化する走査線と既に符号化済みの直前の走
査線との白画素から黒画素へ、または黒画素から白画
素への変化画素の相対位置関係を符号化するものであ
り、2次元符号化方式の代表的な方式である。
Conventionally, white and document that consists of a black, a picture signal obtained Mono 2 to scan the drawings and the like in a scanner as a method for encoding, modified international standard method of the facsimile coding・ Huffman (Modify
d Huffman: MH) and the method, Modified
A read (Modified READ : MR ) method is known. The MH method counts the run length of white pixels and the run length of black pixels of only the scanning line to be encoded, and encodes the run lengths of the white pixels and black pixels, and is a typical one-dimensional encoding method. It is a system. Also, M
The R method encodes a relative positional relationship between a white pixel to a black pixel or a changed pixel from a black pixel to a white pixel between a scan line to be encoded and a previous scan line that has already been encoded, This is a typical two-dimensional encoding method.

【0003】これらの方式は、文書,図面等の白と黒
から構成されている画像を符号化する手法としては優れ
ているものの、新聞等でよく用いられている網点写真や
ディザー法と呼ばれる疑似的な中間調画像の符号化には
適さない。これは、網点写真やディザーでは白画素と黒
画素によって疑似的に中間調画像を表現しているため
に、白画素と黒画素のランレングスが短くなりランの数
も多くなる。また、既に符号化済みの走査線と符号化し
ようとする走査線の白画素から黒画素へ、または黒
画素から白画素への変化画素位置間の相関も少なくなる
からである。しかし、この網点写真やディザー処理され
た疑似的な中間調画像を符号化する手法として、2値化
した画像の周期性を利用し、2値化画像を変換して白画
素と黒画素のランレングスを長くし、変換後の2値画像
をMH方式により符号化する手法が知られている。この
変換手法は、例えば特公昭63−025748号(特許
第1503644号)公報“画像信号の符号化装置”に
詳しく記載されている。以後この変換手法を畳み込み変
換と称する。
[0003] These schemes, document, and white and black, such as drawings
The have that image is constructed although excellent as a method of encoding from unsuitable for encoding pseudo-halftone image called Tei Ru halftone photographs or dither method may be used in the newspaper or the like. This is a halftone photographs or dither to have artificially expressing halftone images by the white and black pixels, the run length of white pixels and black pixels becomes larger number of run shorter. Further, because already also reduced correlation between changes in pixel positions from a white pixel of the scanning lines to be coded scanning line and coded into a black pixel, or from black pixels to white pixels. However, as a method of encoding the halftone image or the pseudo halftone image subjected to the dither processing, the periodicity of the binarized image is used, and the binarized image is converted to convert the white pixel and the black pixel. There is known a method in which the run length is lengthened and the converted binary image is encoded by the MH method. This conversion method is disclosed , for example, in Japanese Patent Publication No. 63-025748 (Patent
No. 1503644), which is described in detail in the publication "Encoding Device for Image Signal". Hereinafter, this conversion method is referred to as convolution conversion.

【0004】さらに、一般の2値画像では、文書,図面
等の白黒2値画像と網点写真やディザーに代表される疑
似中間調画像とが混在する2値画像も多い。従来、これ
らの白黒2値画像と疑似中間調画像が混在した2値画像
を符号化する符号化方式では、以下のようになってい
た。まず、スキャナーで走査した符号化する走査線の2
値画像を複数の小ブロックに分割する。そして、分割し
た各小ブロックに対して前述した畳み込み変換を施す。
ここで、スキャナーで走査した画像を変換しない場合も
変換手段の一種であるとして以後スルー変換と称する。
つまり、スキャナーで走査し小ブロックに分割した各小
ブロックに対し、畳み込み変換とスルー変換の2種類の
変換処理を施す。そして、各小ブロックごとに各変換手
段により変換した後の2値画像の変化画素数を計数して
この変化画素数を比較し、その小ブロックの変換後の2
値画像として計数した変化画素数の少ない方の処理を施
した2値画像を選択する。その後、選択した変換後の複
数の小ブロックをまとめて1走査線の画像として1次元
符号化するとともに、符号列上に各小ブロックに対する
選択結果をモード信号として付加するようになってい
た。
Further, in general binary images, there are many binary images in which black-and-white binary images such as documents and drawings and pseudo halftone images typified by halftone photographs and dither are mixed. Conventionally, an encoding method for encoding a binary image in which a black-and-white binary image and a pseudo halftone image are mixed has been as follows. First, 2 of the scan lines to be encoded scanned by the scanner
Divide the value image into multiple small blocks. Then, the above-described convolution conversion is performed on each of the divided small blocks.
Here, a case where the image scanned by the scanner is not converted is also referred to as a through conversion because it is a kind of conversion means.
That is, each of the small blocks scanned by the scanner and divided into small blocks is subjected to two types of conversion processing of convolution conversion and through conversion. Then, for each small block, the number of changed pixels of the binary image after conversion by each conversion means is counted, and the number of changed pixels is compared.
A binary image subjected to the process with the smaller number of changed pixels counted as the value image is selected. Thereafter, the selected plurality of converted small blocks are collectively subjected to one-dimensional encoding as an image of one scanning line, and a selection result for each small block is added as a mode signal on a code string.

【0005】[0005]

【発明が解決しようとする課題】このように従来の符号
化方式では、文書,図面等の白黒2値画像と網点写真や
ディザーに代表される疑似中間調画像とが混在する2値
画像を符号化する場合に、選択した変換後の複数の小ブ
ロックをまとめて1走査線の画像として1次元符号化す
るようになっていた。
As described above, in the conventional encoding method, a binary image in which a black-and-white binary image such as a document or a drawing and a pseudo halftone image represented by a halftone dot photograph or dither are mixed. In the case of encoding, a plurality of selected converted small blocks are collectively subjected to one-dimensional encoding as an image of one scanning line.

【0006】一般に疑似中間調画像を畳み込み変換処理
した画像は走査線間の相関がほとんどないため、符号化
方式として2次元符号化方式で符号化した場合には1次
元符号化方式と比較してかえって符号化効率が低下して
しまう。しかし、文書,図面等の画像をスルー変換した
画像に対しては、1次元符号化方式で符号化するよりも
2次元符号化方式で符号化した方が符号化効率が高くな
る。従って、選択した変換後の複数の小ブロックを符号
化する場合に、スルー変換されたブロックはランレング
ス符号化のような1次元符号化するよりも、MR符号方
式のような2次元符号化方式を用いて既に符号化済みの
ブロックとの相関を利用して小ブロックを符号化した方
がより高い圧縮率が得られる。しかし、上述した従来の
符号化方式では、変換後の複数の小ブロックで1走査線
を構成し、1走査線単位で1次元符号化するようになっ
ているので、スルー変換処理されたブロックもすべて1
次元符号化され、圧縮効率を上げられないという問題点
があった。
In general, an image obtained by performing a convolution conversion process on a pseudo halftone image has almost no correlation between scanning lines. Therefore, when an image is encoded by a two-dimensional encoding method, it is compared with a one-dimensional encoding method. On the contrary, the coding efficiency decreases. However, for an image obtained by through-transforming an image such as a document or a drawing, the encoding efficiency is higher when the image is encoded by the two-dimensional encoding system than by the one-dimensional encoding system. Therefore, when encoding a plurality of selected small blocks after conversion, the through-transformed blocks are two-dimensionally encoded by an MR encoding method rather than one-dimensionally encoded by a run-length encoding method. A higher compression rate can be obtained by encoding a small block by using the correlation with a block that has already been encoded by using. However, in the above-described conventional encoding method, one scan line is configured by a plurality of small blocks after conversion, and one-dimensional encoding is performed in units of one scan line. All one
There is a problem that the compression efficiency cannot be increased due to the dimensional encoding.

【0007】[0007]

【課題を解決するための手段】本発明によれば、2値画
像を複数の小ブロックに分割し、この各小ブロック単位
スルー変換と畳み込み変換を施し、この各変換処理結
果の変化画素数をそれぞれ求め、この求めた各変換処理
結果の変化画素数が最小となる変換処理手段を前記小ブ
ロック単位に選択し、選択された前記変換処理手段で求
めた変換処理結果を2次元符号化し、畳み込み変換が選
択されたときは1次元符号化するとともに前記2つの変
換処理手段のうちどの変換処理手段が選択されたかを前
記小ブロックごとにモード信号として符号化結果に付加
する2値画像符号化装置と、この2値画像符号化装置で
符号化された信号を受信し、この受信信号から前記各小
ブロックで選択された変換処理手段を示すモード信号を
復元し、この復元したモード信号に従って各小ブロック
で選択された符号化方式が1次元符号化か2次元符号化
かを決定し、各小ブロックごとに決定された符号化方式
に対応した復号化方式で前記符号化結果を復元し、この
復元された変換処理結果を前記復元したモード信号に従
って逆変換する逆変換処理手段と、この逆変換処理手段
で逆変換された複数の小ブロックを合成して2値画像を
得る2値画像復号化装置とから構成されることを特徴と
する2値画像符号化・復号化方式が得られる
According to the present invention , a binary image is divided into a plurality of small blocks, and a through conversion and a convolution conversion are performed for each of the small blocks. Are selected, and a conversion processing unit that minimizes the number of changed pixels in each of the obtained conversion processing results is selected for each small block, and the conversion processing result obtained by the selected conversion processing unit is two-dimensionally encoded. Convolution conversion is selected
How conversion processing means coding added to result binary image coding apparatus or is selected as the mode signal for each of said small blocks of said two conversion means together when the one-dimensional coding when-option And a signal encoded by the binary image encoding apparatus, and a mode signal indicating the conversion processing means selected in each of the small blocks is restored from the received signal. coding scheme selected at block determines the one-dimensional coding or 2D coding, restores the encoded results using the decoding method corresponding to the coding method determined for each small block, this An inverse transform processing means for inversely transforming the restored conversion processing result according to the restored mode signal, and a plurality of small blocks inversely transformed by the inverse transform processing means are combined to obtain a binary image. Value image Binary image encoding and decoding method, characterized in Rukoto is composed of a Goka device is obtained.

【0008】また、前記2値画像符号化装置は1走査線
の入力2値画像を複数の小ブロックに分割する分割部
と、分割された前記小ブロックの画像を変換処理する第
1,第2の変換処理部と、前記変換処理後の画像の小ブ
ロック内の変化画素数をカウントする第1,第2の変換
変化画素カウンタと、前記第1,第2の変換変化画素カ
ウンタから読み出した変化画素数を比較する小ブロック
判定部と、前記第1,第2の変換処理部の1ブロック分
の変換後の画像を記憶する第1,第2の1ブロック遅延
メモリと、前記第1の1ブロック遅延メモリの前記画像
を2次元符号化する2次元符号器と、前記第2の1ブロ
ック遅延メモリの前記画像を1次元符号化する1次元符
号器と、前記小ブロック判定部の比較結果に従って前記
第1,第2の1ブロック遅延メモリ出力の一方を選択す
る小ブロック選択セレクタと、前記小ブロック選択セレ
クタで選択された前記変換後の1ブロックの画像を記憶
する参照ラインメモリと、前記小ブロック判定部の前記
比較結果に従って前記2次元符号器出力,前記1次元符
号器出力の一方を選択する符号器選択セレクタと、前記
小ブロック判定部の前記比較結果に従って前記符号器選
択セレクタ出力にモード信号を付加するモード信号付加
部とを備えることを特徴とする2値画像符号化・復号化
方式が得られ、そして、前記第1の変換処理部は入力し
た前記小ブロックの画像をスルー変換するスルー変換部
であり、前記第2の変換処理部は入力した前記小ブロッ
クの画像を畳み込み変換する畳み込み変換部であっても
よい
The binary image encoding apparatus includes a dividing unit for dividing an input binary image of one scanning line into a plurality of small blocks, and first and second units for performing a conversion process on the divided small block images. A conversion processing unit, a first and second conversion change pixel counter for counting the number of change pixels in a small block of the image after the conversion processing, and a change read from the first and second conversion change pixel counters. A small block determination unit for comparing the number of pixels, first and second one-block delay memories for storing converted images of one block of the first and second conversion processing units, A two-dimensional encoder for two-dimensionally encoding the image in the block delay memory, a one-dimensional encoder for one-dimensionally encoding the image in the second one-block delay memory, and a comparison result of the small block determination unit. The first and second one block A small block selection selector for selecting one of the block delay memory outputs, a reference line memory for storing the image of the converted one block selected by the small block selection selector, and a comparison result of the small block determination unit. An encoder selection selector for selecting one of the two-dimensional encoder output and the one-dimensional encoder output; and a mode signal adding unit for adding a mode signal to the encoder selection selector output according to the comparison result of the small block determination unit. binary image encoding and decoding, wherein Rukoto with bets
And the first conversion processing unit is a through conversion unit that performs through conversion of the input small block image, and the second conversion processing unit is a convolution conversion of the input small block image. Even the convolution converter
Good .

【0009】さらに、前記2値画像復号化装置は受信し
た符号列から前記モード信号を分離するモード信号分離
部と、前記モード信号から符号化時に選択された小ブロ
ックに対する前記変換処理の指定を復元するモード復元
部と、前記モード復元部の指定により前記モード信号を
分離された符号列をそれぞれ2次元復号化,1次元復号
化する2次元復号器,1次元復号器と、前記2次元復号
器,1次元復号器により復号化された結果をそれぞれ逆
変換する第1,第2の逆変換部と、この第1,第2の逆
変換部からの複数の小ブロックを1走査線に合成して2
値画像を出力する合成部とを備えることを特徴とする2
値画像符号化・復号化方式が得られ、そして、前記第1
の逆変換部は前記2次元復号器出力をスルー逆変換する
スルー逆変換部であり、前記第2の逆変換部は前記1次
元復号器出力を畳み込み逆変換する畳み込み逆変換部で
あってもよい
The binary image decoding apparatus further includes a mode signal separating unit for separating the mode signal from the received code string, and restores the designation of the conversion processing for the small block selected at the time of coding from the mode signal. A two-dimensional decoder, a one-dimensional decoder, and a two-dimensional decoder that respectively perform two-dimensional decoding and one-dimensional decoding of a code string from which the mode signal has been separated according to the specification of the mode restoring unit. first inversely transforming respective decoded results by one-dimensional decoder and the second inverse transform unit, the first synthesized in one scan line a plurality of small blocks from the second inverse transformation unit 2
2, wherein Rukoto a synthesizing unit for outputting a value image
A value image encoding / decoding scheme is obtained, and
Is a through inverse transform unit that performs inverse inverse transform of the two-dimensional decoder output, and the second inverse transform unit is a convolution inverse transform unit that performs convolution inverse transform of the one-dimensional decoder output. Good .

【0010】[0010]

【実施例】次に、本発明について図面を参照して説明す
る。図1,図2は本発明の2値画像符号化・復号化方式
の一実施例における2値画像符号化装置,2値画像復号
化装置を示すブロック図である。
Next, the present invention will be described with reference to the drawings. 1 and 2 are block diagrams showing a binary image encoding apparatus and a binary image decoding apparatus according to an embodiment of the present invention.

【0011】本実施例における2値画像符号化装置で
は、変換処理手段としてスルー変換処理を行うスルー変
換部2と畳み込み変換処理を行う畳み込み変換部3を使
用する。
In the binary image encoding apparatus according to this embodiment, a through conversion unit 2 for performing a through conversion process and a convolution conversion unit 3 for performing a convolution conversion process are used as conversion processing means.

【0012】図1において、まずスルー変換変化画素カ
ウンタ5と畳み込み変換変化画素カウンタ7とをリセッ
トする。このリセットは1ブロックの符号化の開始時に
行う。
In FIG. 1, first, a through conversion change pixel counter 5 and a convolution conversion change pixel counter 7 are reset. This reset is performed at the start of encoding of one block.

【0013】次に分離部1は1走査線の入力2値画像を
複数の小ブロックに分割する。この分割された小ブロッ
クはスルー変換部2と畳み込み変換部3に送られる。
Next, the separating section 1 divides the input binary image of one scanning line into a plurality of small blocks. The divided small blocks are sent to the through converter 2 and the convolution converter 3.

【0014】スルー変換部2では、入力した小ブロック
の画像をスルー変換して1ブロック遅延メモリ4とスル
ー変換変化画素カウンタ5に送る。スルー変換変化画素
カウンタ5では、スルー変換後の画像の小ブロック内の
変化画素数をカウントする。
In the through conversion unit 2, the input small block image is through converted and sent to the one block delay memory 4 and the through conversion change pixel counter 5. The through conversion change pixel counter 5 counts the number of changed pixels in a small block of the image after the through conversion.

【0015】同時に、畳み込み変換部3では、入力した
小ブロックの画像を畳み込み変換して1ブロック遅延メ
モリ6と畳み込み変換変化画素カウンタ7に送る。畳み
込み変換変化画素カウンタ7では、畳み込み変換後の画
像の小ブロック内の変化画素数をカウントする。
At the same time, the convolution converter 3 performs convolution conversion on the input small block image and sends it to the one-block delay memory 6 and convolution conversion change pixel counter 7. The convolution conversion change pixel counter 7 counts the number of change pixels in a small block of the image after the convolution conversion.

【0016】小ブロックの変換と変化画素カウントが終
了すると、小ブロック判定部8はスルー変換変化画素カ
ウンタ5と畳み込み変換変化画素カウンタ7から変化画
素数を読み出す。そして、読み出した変化画素数を比較
する。
When the conversion of the small blocks and the counting of the number of changed pixels are completed, the small block determination unit 8 reads the number of changed pixels from the through conversion changed pixel counter 5 and the convolution conversion changed pixel counter 7. Then, the read number of changed pixels is compared.

【0017】比較の結果、スルー変換変化画素カウンタ
5の値が畳み込み変換変化画素カウンタ7の値よりも多
ければ、モード信号付加部14に指示して畳み込み変換
を選択して出力させるモード信号を付加させる。次に、
符号器選択セレクタ13の出力は1次元符号器10の出
力を選択する。そして、小ブロック選択セレクタ9で
は、畳み込み変換部3の出力である1ブロック遅延メモ
リ6の出力を選択する。
As a result of the comparison, if the value of the through conversion change pixel counter 5 is larger than the value of the convolution conversion change pixel counter 7, a mode signal for instructing the mode signal adding section 14 to select and output the convolution conversion is added. Let it. next,
The output of the encoder selection selector 13 selects the output of the one-dimensional encoder 10. Then, the small block selection selector 9 selects the output of the one-block delay memory 6, which is the output of the convolution converter 3.

【0018】また、比較の結果、畳み込み変換変化画素
カウンタ7の値がスルー変換変化画素カウンタ5の値よ
りも多ければ、モード符号付加部14に指示してスルー
変換を選択して出力させるモード信号を付加させる。次
に、符号器選択セレクタ13の出力は2次元符号器12
の出力を選択する。そして、小ブロック選択セレクタ9
ではスルー変換部2の出力である1ブロック遅延メモリ
4の出力を選択する。
If the result of the comparison indicates that the value of the convolution conversion changing pixel counter 7 is larger than the value of the through conversion changing pixel counter 5, the mode signal is instructed to the mode code adding section 14 to select and output the through conversion. Is added. Next, the output of the encoder selection selector 13 is the two-dimensional encoder 12
Select the output of Then, the small block selection selector 9
Then, the output of the one-block delay memory 4, which is the output of the through conversion unit 2, is selected.

【0019】1次元符号器10は1ブロック遅延メモリ
6に記憶した1ブロック分の変換後の画像に対してラン
レングス符号化等の1次元符号化を行う。同時に、2次
元符号器12は1ブロック遅延メモリ4に記憶した1ブ
ロック分の変換後の画像に対して参照ラインメモリ11
の記憶画像を参照して、MR符号化等の2次元符号化を
行う。
[0019] 1-dimensional encoder 10 performs a one-dimensional coding, such as run-length encoding with respect to the converted image for one block stored in 1 block delay memory 6. At the same time, the two-dimensional encoder 12 applies the reference line memory 11 to the converted image of one block stored in the one-block delay memory 4.
, Two-dimensional encoding such as MR encoding is performed.

【0020】変換後の1ブロックの画像はブロック単位
で符号化するとともに、次の走査線の符号化の参照のた
めに参照ラインメモリ11に記憶し、その内容は1ブロ
ック単位で更新する。ただし、参照ラインメモリ11の
容量は1走査線分の変換後の画像を蓄積できるようにし
ておく。そして、2次元符号化では、直上の位置に対応
する小ブロックの変換後の画像を参照する。
The image of one block after the conversion is encoded in block units, and stored in the reference line memory 11 for reference in encoding the next scanning line, and the contents are updated in block units. However, the capacity of the reference line memory 11 is such that a converted image for one scanning line can be stored. Then, in the two-dimensional encoding, the converted image of the small block corresponding to the position immediately above is referred to.

【0021】以上の動作を1画像が終了するまで続け
る。
The above operation is continued until one image is completed.

【0022】本実施例における2値画像復号化装置は受
信側に設けられ、図1に示した送信側の2値画像符号化
装置で符号化された信号を受信し、これを復号化して変
換前の2値画像を得るものである。
The binary image decoding apparatus according to this embodiment is provided on the receiving side, receives a signal encoded by the binary image encoding apparatus on the transmitting side shown in FIG. 1, decodes the signal, and converts it. This is to obtain the previous binary image.

【0023】図2において、まずモード信号分離部20
は受信した符号列から小ブロックに対する変換処理を示
すモード信号を分離し、分離したモード信号をモード復
元部21送る。モード信号を分離された符号列は符号
デマルチプレクサ22を経由して1次元復号器23また
は2次元復号器25送られる。モード信号は各小ブロ
ックの先頭についているのでモード信号の分離およびモ
ード信号の転送は各小ブロックごとに行われる
In FIG. 2, first, the mode signal separating section 20
Separates the mode signal indicating the conversion process for the small block from the received code string, and sends the separated mode signal to the mode restoration unit 21. The code string from which the mode signal has been separated is sent to the one-dimensional decoder 23 or the two-dimensional decoder 25 via the code demultiplexer 22. Mode signal transfer separation and mode signal since the mode signal is attached to the head of each small block is done near the respective small blocks.

【0024】次に、モード復元部21はモード分離部2
0から分離されたモード信号を受けて符号化時に選択さ
れた小ブロックに対する変換処理の指定を復元し、復元
した変換処理の指定から符号デマルチプレクサ22の出
力先を決定する。ここで、受信した小ブロックの変換処
理指定がスルー変換であれば、受信した符号列を2次元
復号器25に入力して復号化された変換後の処理結果を
得る。また、受信した小ブロックの変換処理指定が畳み
込み変換であれば、受信した符号列を1次元復号器23
に入力して1次元復号器23により復号化された変換後
の処理結果を得る。
Next, the mode restoring section 21 is provided with the mode separating section 2
Receiving the mode signal separated from 0, the designation of the conversion process for the small block selected at the time of encoding is restored, and the output destination of the code demultiplexer 22 is determined from the designation of the restored conversion process. Here, if the conversion processing designation of the received small block is the through conversion, the received code string is input to the two-dimensional decoder 25 to obtain the decoded converted processing result. If the conversion processing designation of the received small block is a convolution conversion, the received code string is converted to a one-dimensional decoder 23.
To obtain the processing result after conversion decoded by the one-dimensional decoder 23.

【0025】1次元復号器23では、モード分離部20
から受けた符号列を変換後の処理結果に復元する。1次
元復号器23の復号化方法は対向する送信側の1次元符
号器12で使用した符号化を復元する方法である。ま
た、1次元復号器23では、復元した変換後の処理結果
が小ブロックの画素数になるまで行う。復元した変換後
の処理結果は畳み込み逆変換部27に送るとともに、次
の走査線の復号化の参照のために参照ラインメモリ24
に記憶し、その内容を1ブロック単位で更新する。但
し、参照ラインメモリ24の容量は1走査線分の復元し
た変換後の処理結果を蓄積できるようにしておく。
In the one-dimensional decoder 23, the mode separating section 20
Is restored to the processing result after the conversion. The decoding method of the one-dimensional decoder 23 is a method of restoring the encoding used by the one-dimensional encoder 12 on the opposite transmitting side. Also, the one-dimensional decoder 23 performs the processing until the restored converted processing result reaches the number of pixels of the small block. The restored processing result is sent to the inverse convolution unit 27, and the reference line memory 24 is used for decoding the next scanning line.
And the content is updated in units of one block. However, the capacity of the reference line memory 24 is set so that the processed result after conversion restored for one scanning line can be stored.

【0026】2次元復号器25では、モード分離部20
から受けた符号列の参照ラインメモリ24の記憶内容を
参照して変換後の処理結果に復元する。参照する画像は
直上の位置に対応する小ブロックの変換後の画像であ
る。2次元復号器25の復号化方法は対向する送信器の
2次元符号器10で使用した符号化を復元する方法であ
る。また、2次元復号器25では、復元した変換後の処
理結果が小ブロックの画素数になるまで行う。復元した
変換後の処理結果はスルー逆変換部26に送るととも
に、次の走査線の復号化の参照のために参照ラインメモ
リ24に記憶し、その内容を1ブロック単位で更新す
る。
In the two-dimensional decoder 25, the mode separation unit 20
With reference to the stored contents of the code string received from the reference line memory 24, the processing result after conversion is restored. The image to be referred to is the converted image of the small block corresponding to the position immediately above. The decoding method of the two-dimensional decoder 25 is a method of restoring the encoding used in the two-dimensional encoder 10 of the opposing transmitter. Also, the two-dimensional decoder 25 performs the processing until the restored converted processing result reaches the number of pixels of the small block. The restored processing result after conversion is sent to the through inverse conversion unit 26, and is stored in the reference line memory 24 for decoding reference of the next scanning line, and the contents are updated in units of one block.

【0027】1次元復号器23で復号化された変換後の
処理結果畳み込み逆変換部27に入力して逆変換する
ことにより変換前の画信号が得られる。また、2次元復
号器25で復号化された変換後の処理結果スルー逆変
換部26によって逆変換することにより変換前の画信号
が得られる。ここで、スルー逆変換部26での逆変換処
理は復元された変換後の処理結果から変換前の2値画
像が復元できるように、送信側に設けられたスルー変換
部2と逆の処理である。また、畳み込み逆変換部27
での逆変換処理は復元された変換後の処理結果から変
換前の2値画像が復元できるように、送信側に設けられ
た畳み込み変換部3と逆の処理である。
The picture signal before conversion by inputting to the inverse transform the one-dimensional decoder 23 processes the result of the converted decoded in the inverse transform unit 27 convolution is Ru obtained. Further, the image signal before the conversion by the inverse transform processing result after converting decoded by the 2-dimensional decoder 25 by through inverse transform unit 26
Is obtained . Here, the inverse conversion process of the through inverse transformation unit 26, so that it can restore a binary image before conversion from the processing result after restored transform, inverse of the through conversion section 2 provided on the transmission side Processing. In addition, the convolution inverse conversion unit 27
Inverse conversion process that, as can be restored binary image before conversion from the processing result after restored transform is the inverse of the processing to the convolution transform unit 3 provided on the transmission side.

【0028】次に、1走査線のすべての小ブロックに対
して逆変換処理が終了すると、合成部28は逆変換され
た複数の小ブロックを1走査線に合成し、合成した1走
査線の2値画像を出力する。
Next, when the inverse conversion processing is completed for all the small blocks of one scanning line, the synthesizing section 28 synthesizes the plurality of inversely converted small blocks into one scanning line and outputs the synthesized one scanning line. Output a binary image.

【0029】以上の動作を1画像が終了するまで続け
る。
The above operation is continued until one image is completed.

【0030】なお、疑似中間調画像用の変換処理として
は、本実施例で示した畳み込み変換処理だけでなく、疑
似中間調画像の周期性を除去するようなフィルターで構
成してもよい。また、文書,図面用の変換処理としては
スルー変換処理だけでなく、ノッチ,孤立点除去フィル
ター等の文書図面等の画質向上用のフィルターを使用し
てもよい。
It should be noted that the conversion process for the pseudo halftone image is not limited to the convolution conversion process shown in the present embodiment, but may be constituted by a filter for removing the periodicity of the pseudo halftone image. Further, as the conversion processing for documents and drawings, not only the through conversion processing but also filters for improving the image quality of document drawings, such as notch and isolated point removal filters, may be used.

【0031】[0031]

【発明の効果】以上説明したように本発明によれば、文
書,図面等の白黒2値画像と網点写真やディザーに代表
される疑似中間調画像とが混在する2値画像の圧縮効率
を上げることができるという効果が得られる。
As described above, according to the present invention, the compression efficiency of a binary image in which a black-and-white binary image such as a document or a drawing and a pseudo halftone image represented by a halftone picture or dither are mixed. The effect that it can raise is obtained.

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

【図1】本発明の2値画像符号化・復号化方式の一実施
例における2値画像符号化装置を示すブロック図であ
る。
FIG. 1 is a block diagram showing a binary image encoding device in an embodiment of a binary image encoding / decoding method according to the present invention.

【図2】本発明の2値画像符号化・復号化方式の一実施
例における2値画像復号化装置を示すブロック図であ
る。
FIG. 2 is a block diagram illustrating a binary image decoding device according to an embodiment of the binary image encoding / decoding method of the present invention.

【符号の説明】[Explanation of symbols]

1 分離部 2 スルー変換部 3 畳み込み変換部 4,6 1ブロック遅延メモリ 5 スルー変換変化画素カウンタ 7 畳み込み変換変化画素カウンタ 8 小ブロック判定部 9 小ブロック選択セレクタ 10 1次元符号器 11,24 参照ラインメモリ 12 2次元符号器 13 符号器選択セレクタ 14 モード信号付加部 20 モード信号分離部 21 モード復元部 22 符号デマルチプレクサ 23 1次元復号器 25 2次元復号器 26 スルー逆変換部 27 畳み込み逆変換部 28 合成部 REFERENCE SIGNS LIST 1 separation unit 2 through conversion unit 3 convolution conversion unit 4, 6 1 block delay memory 5 through conversion change pixel counter 7 convolution conversion change pixel counter 8 small block determination unit 9 small block selection selector 10 one-dimensional encoder 11, 24 reference line Memory 12 Two-dimensional encoder 13 Encoder selection selector 14 Mode signal addition unit 20 Mode signal separation unit 21 Mode restoration unit 22 Code demultiplexer 23 One-dimensional decoder 25 Two-dimensional decoder 26 Through inverse conversion unit 27 Convolution inverse conversion unit 28 Synthesis unit

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 2値画像を複数の小ブロックに分割し、
この各小ブロック単位にスルー変換と畳み込み変換を施
し、この各変換処理結果の変化画素数をそれぞれ求め、
この求めた各変換処理結果の変化画素数が最小となる変
換処理手段を前記小ブロック単位に選択し、選択された
前記変換処理手段で求めた変換処理結果を2次元符号化
し、畳み込み変換が選択されたときは1次元符号化する
とともに前記2つの変換処理手段のうちどの変換処理手
段が選択されたかを前記小ブロックごとにモード信号と
して符号化結果に付加する2値画像符号化装置と、この
2値画像符号化装置で符号化された信号を受信し、この
受信信号から前記各小ブロックで選択された変換処理手
段を示すモード信号を復元し、この復元したモード信号
に従って各小ブロックで選択された符号化方式が1次元
符号化か2次元符号化かを決定し、各小ブロックごと
決定された符号化方式に対応した復号化方式で前記符号
化結果を復元し、この復元された変換処理結果を前記復
元したモード信号に従って逆変換する逆変換処理手段
と、この逆変換処理手段で逆変換された複数の小ブロッ
クを合成して2値画像を得る2値画像復号化装置とから
構成されることを特徴とする2値画像符号化・復号化方
式。
1. A binary image is divided into a plurality of small blocks,
Through conversion and convolution conversion are performed for each small block.
Then, the number of changed pixels of each conversion processing result is obtained,
The conversion processing unit that minimizes the number of changed pixels of each of the obtained conversion processing results is selected for each small block, and the conversion processing result obtained by the selected conversion processing unit is subjected to two-dimensional encoding.
And, encoded as any conversion processing unit mode signal for each of the small blocks or is selected among the two conversion processing means <br/> together with the one-dimensional coding when convolution transform is selected A binary image encoding device to be added to the result, a signal encoded by the binary image encoding device being received, and a mode signal indicating the conversion processing means selected for each of the small blocks being restored from the received signal In accordance with the restored mode signal, it is determined whether the encoding system selected for each small block is one-dimensional encoding or two-dimensional encoding, and a decoding system corresponding to the encoding system determined for each small block is determined. in restoring the encoded result, the inverse conversion processing means for inverse transformation according to the restored transform processing result mode signal the restoration, the inverse transformed plurality of small blocks in the inverse transform processing means synthesizes and 2 And a binary image decoding apparatus for obtaining an image
Constructed binary image encoding and decoding method according to claim Rukoto.
【請求項2】 前記2値画像符号化装置は1走査線の入
力2値画像を複数の小ブロックに分割する分割部と、分
割された前記小ブロックの画像を変換処理する第1,第
2の変換処理部と、前記変換処理後の画像の小ブロック
内の変化画素数をカウントする第1,第2の変換変化画
素カウンタと、前記第1,第2の変換変化画素カウンタ
から読み出した変化画素数を比較する小ブロック判定部
と、前記第1,第2の変換処理部の1ブロック分の変換
後の画像を記憶する第1,第2の1ブロック遅延メモリ
と、前記第1の1ブロック遅延メモリの前記画像を2次
元符号化する2次元符号器と、前記第2の1ブロック遅
延メモリの前記画像を1次元符号化する1次元符号器
と、前記小ブロック判定部の比較結果に従って前記第
1,第2の1ブロック遅延メモリ出力の一方を選択する
小ブロック選択セレクタと、前記小ブロック選択セレク
タで選択された前記変換後の1ブロックの画像を記憶す
る参照ラインメモリと、前記小ブロック判定部の前記比
較結果に従って前記2次元符号器出力,前記1次元符号
器出力の一方を選択する符号器選択セレクタと、前記小
ブロック判定部の前記比較結果に従って前記符号器選択
セレクタ出力にモード信号を付加するモード信号付加部
とを備えることを特徴とする請求項1記載の2値画像符
号化・復号化方式。
2. The binary image encoding apparatus according to claim 1, wherein the binary image encoding device divides the input binary image of one scan line into a plurality of small blocks, and performs first and second conversion processes on the divided small block images. A conversion processing unit, a first and second conversion change pixel counter for counting the number of change pixels in a small block of the image after the conversion processing, and a change read from the first and second conversion change pixel counters. A small block determination unit for comparing the number of pixels, first and second one-block delay memories for storing converted images of one block of the first and second conversion processing units, A two-dimensional encoder for two-dimensionally encoding the image in the block delay memory, a one-dimensional encoder for one-dimensionally encoding the image in the second one-block delay memory, and a comparison result of the small block determination unit. The first and second one block delays A small block selection selector for selecting one of the extended memory outputs; a reference line memory for storing the image of the converted one block selected by the small block selection selector; and a reference line memory according to the comparison result of the small block determination unit. An encoder selection selector for selecting one of a two-dimensional encoder output and the one-dimensional encoder output; and a mode signal adding unit for adding a mode signal to the encoder selection selector output according to the comparison result of the small block determination unit. 2. The binary image encoding / decoding method according to claim 1, further comprising:
【請求項3】 前記第1の変換処理部は入力した前記小
ブロックの画像をスルー変換するスルー変換部であり、
前記第2の変換処理部は入力した前記小ブロックの画像
を畳み込み変換する畳み込み変換部であることを特徴と
する請求項2記載の2値画像符号化・復号化方式。
3. The first conversion processing unit is a through conversion unit that performs through conversion on the input image of the small block,
3. The binary image encoding / decoding method according to claim 2, wherein the second conversion processing unit is a convolution conversion unit that performs convolution conversion on the input image of the small block.
【請求項4】 前記2値画像復号化装置は受信した符号
列から前記モード信号を分離するモード信号分離部と、
前記モード信号から符号化時に選択された小ブロックに
対する前記変換処理の指定を復元するモード復元部と、
前記モード復元部の指定により前記モード信号を分離さ
れた符号列をそれぞれ2次元復号化,1次元復号化する
2次元復号器,1次元復号器と、前記2次元復号器,1
次元復号器により復号化された結果をそれぞれ逆変換す
る第1,第2の逆変換部と、この第1,第2の逆変換部
からの複数の小ブロックを1走査線に合成して2値画像
を出力する合成部とを備えることを特徴とする請求項
記載の2値画像符号化・復号化方式。
4. The binary image decoding apparatus according to claim 1, wherein
A mode signal separation unit that separates the mode signal from a column;
From the mode signal to the small block selected during encoding
A mode restoring unit for restoring the designation of the conversion process for the
The mode signal is separated according to the specification of the mode restoration unit.
Two-dimensional decoding and one-dimensional decoding
Two-dimensional decoder, one-dimensional decoder, and the two-dimensional decoder, 1
Inverse transform each result decoded by dimensional decoder
First and second inverse transform sections, and the first and second inverse transform sections
Combining multiple small blocks from a single scan line into a binary image
Characterized in that it comprises a combining unit for outputting claim 1
The binary image encoding / decoding method described in the above.
【請求項5】 前記第1の逆変換部は前記2次元復号器
出力をスルー逆変換するスルー逆変換部であり、前記第
2の逆変換部は前記1次元復号器出力を畳み込み逆変換
する畳み込み逆変換部であることを特徴とする請求項
記載の2値画像符号化・復号化方式。
5. The two-dimensional decoder according to claim 1, wherein the first inverse transform unit is a two-dimensional decoder.
A through inverse conversion unit for performing an inverse through conversion of the output,
The inverse transform unit 2 is a convolution inverse transform of the one-dimensional decoder output.
5. The convolution inverse transform unit according to claim 4, wherein
The binary image encoding / decoding method described in the above.
JP4215880A 1992-08-13 1992-08-13 Binary image encoding / decoding method Expired - Lifetime JP2797851B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4215880A JP2797851B2 (en) 1992-08-13 1992-08-13 Binary image encoding / decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4215880A JP2797851B2 (en) 1992-08-13 1992-08-13 Binary image encoding / decoding method

Publications (2)

Publication Number Publication Date
JPH0662259A JPH0662259A (en) 1994-03-04
JP2797851B2 true JP2797851B2 (en) 1998-09-17

Family

ID=16679791

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4215880A Expired - Lifetime JP2797851B2 (en) 1992-08-13 1992-08-13 Binary image encoding / decoding method

Country Status (1)

Country Link
JP (1) JP2797851B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5347492B2 (en) 2008-12-25 2013-11-20 フジテック株式会社 Elevator group management control method and apparatus

Also Published As

Publication number Publication date
JPH0662259A (en) 1994-03-04

Similar Documents

Publication Publication Date Title
US6665444B1 (en) Image processing apparatus and method, and storage medium
JP3464767B2 (en) Wavelet decoding apparatus and method
EP1107606A1 (en) Image processing apparatus and method and storage medium
US6560369B1 (en) Conversion of wavelet coded formats depending on input and output buffer capacities
US5422736A (en) Multi-mode image processing permitting selection of quantization process according to image characteristics
US7529417B2 (en) Apparatus, method and storage medium for image encoding/decoding using shape-based coefficient interpolation
US5485213A (en) Method and apparatus for encoding and decoding image data
JPH0783427B2 (en) Image transmission method
JP3387738B2 (en) Image pattern converter
JP2797851B2 (en) Binary image encoding / decoding method
JPH07264417A (en) Image coding method
JPH04229382A (en) Method and device for resolution conversion of digital image data
JP2666631B2 (en) Binary image decoding device
JP3074994B2 (en) Encoding / decoding method for binary image
JP2006340300A (en) Signal processing method, signal processing apparatus, signal processing program and information recording medium
JPH06225165A (en) Coding/decoding system for binary picture
JP4219079B2 (en) Image processing device
JPH0779350A (en) Picture data compression processing method and picture data re-configuration method
JPH05137007A (en) Binary image coding device
JPH11355575A (en) Image processor
JP3392949B2 (en) Image compression device and image decompression device
JPH0723229A (en) Picture data compression processing method
JPH0723228A (en) Picture data compression processing method
JPH05219490A (en) Digital video signal encoder and decoder
JP4174254B2 (en) Moving picture encoding apparatus, moving picture decoding apparatus, and methods thereof

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980602