JP3274566B2 - Image coding device - Google Patents
Image coding deviceInfo
- Publication number
- JP3274566B2 JP3274566B2 JP10642194A JP10642194A JP3274566B2 JP 3274566 B2 JP3274566 B2 JP 3274566B2 JP 10642194 A JP10642194 A JP 10642194A JP 10642194 A JP10642194 A JP 10642194A JP 3274566 B2 JP3274566 B2 JP 3274566B2
- Authority
- JP
- Japan
- Prior art keywords
- conversion
- image
- edge
- conversions
- stage
- 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 - Fee Related
Links
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Image Processing (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、文字画像、網点画像な
どの二値画像を符号化する符号化装置、および多値画像
をロスレスで符号化するために、画像をビットプレーン
に分割し、各ビットプレーン画像を二値符号化で符号化
する画像符号化装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoding apparatus for encoding a binary image such as a character image or a halftone image, and to divide an image into bit planes in order to encode a multi-valued image without loss. The present invention relates to an image encoding device that encodes each bit plane image by binary encoding.
【0002】[0002]
【従来の技術】画像ファイリングシステムなどの蓄積装
置や多値ファクシミリ装置などにおいては、多値画像を
可逆で符号化する場合、多値画像をそのまま符号化する
方法(この方法としては、予測分割符号化方式がある)
と、二値画像に変換して符号化する方法がある。2. Description of the Related Art In a storage device such as an image filing system or a multi-value facsimile device, when a multi-value image is losslessly coded, a method of directly coding the multi-value image (this method includes a predictive division code There is a conversion method)
And a method of converting to a binary image and encoding.
【0003】二値符号化方式として、従来からMH、M
R、算術符号化などの符号化方式が知られているが、M
H、MRでは網点画像のような組織的なノイズの存在す
る画像での圧縮が困難であり、また算術符号化では一般
に周囲画素のテンプレートを用いるため高速化が困難で
あった。そこで、本出願人は先に、簡単な処理でありな
がらエントロピ(符号量)を減少させることのできるエ
ッジ変換フィル変換方式を提案した(特開平4−354
472号公報を参照)。[0003] Conventionally, MH, M
R, coding methods such as arithmetic coding are known.
In H and MR, it is difficult to compress an image having systematic noise such as a halftone image, and in arithmetic coding, it is generally difficult to increase the speed because a template of surrounding pixels is used. Therefore, the present applicant has previously proposed an edge conversion fill conversion method capable of reducing entropy (code amount) while being a simple process (Japanese Patent Laid-Open No. 4-354).
472).
【0004】また、多値画像を可逆で符号化する場合、
多値画像を複数のビットプレーンに分割し、各ビットプ
レーン画像を二値符号化方式で符号化する方法(ビット
プレーン符号化という)が採られているが、この方法だ
けでは圧縮率があまり上がらない。[0004] When a multi-valued image is reversibly encoded,
A method of dividing a multi-level image into a plurality of bit planes and coding each bit plane image by a binary coding method (referred to as bit plane coding) has been adopted. However, this method alone does not significantly increase the compression ratio. Absent.
【0005】[0005]
【発明が解決しようとする課題】二値画像を符号化する
場合、上記エッジ変換フィル変換方式とハフマン符号化
を組み合わせることにより高圧縮が可能である。ところ
が、上記した符号化はライン毎に処理を行うために、ラ
インをまたがって画素を参照するような符号化方式、例
えば現在二値画像符号化の標準であるJBIG方式など
には適応しにくいという問題がある。When encoding a binary image, high compression can be achieved by combining the edge conversion fill conversion method and Huffman coding. However, since the above-described encoding is performed on a line-by-line basis, it is difficult to adapt to an encoding method that refers to pixels across lines, such as the JBIG method that is currently the standard for binary image encoding. There's a problem.
【0006】本発明の第1の目的は、ラインをまたがっ
て画素を参照するような二値符号化方式に対応できる、
エッジ変換フィル変換を用いた画像符号化装置を提供す
ることにある。A first object of the present invention is to support a binary coding system in which pixels are referred to across lines.
It is an object of the present invention to provide an image encoding device using edge conversion and fill conversion.
【0007】本発明の第2の目的は、多値画像の符号化
において、階調方向や横方向、縦方向に多段エッジ変換
または多段フィル変換を施すことによって画像のエント
ロピを減らし、符号化効率を向上させた画像符号化装置
を提供することにある。A second object of the present invention is to reduce the entropy of an image by performing multi-stage edge conversion or multi-stage fill conversion in a gradation direction, a horizontal direction, and a vertical direction in encoding a multi-valued image. It is to provide an image encoding device in which is improved.
【0008】本発明の第3の目的は、多値画像をビット
プレーンに分割し、各ビットプレーン画像を二値符号化
することにより可逆の符号化を可能にし、さらに二値符
号化時にラインをまたがって画素を参照するような二値
符号化方式に対応できる、エッジ変換フィル変換を用い
た画像符号化装置を提供することにある。A third object of the present invention is to divide a multi-valued image into bit planes, and to perform lossless coding by binary-coding each bit plane image. Another object of the present invention is to provide an image coding apparatus using edge conversion and fill conversion, which can support a binary coding method in which pixels are referred to.
【0009】[0009]
【課題を解決するための手段】前記目的を達成するため
に、請求項1記載の発明では、二値画像を符号化する際
に、横方向または縦方向のラインデータ毎に多段エッジ
変換または多段フィル変換を施す画像変換手段と、該変
換手段における変換回数を計数する計数手段と、前記画
像変換手段から得られる変換画像に所定の符号化処理を
施したときに符号量が最小となる変換回数を最適処理回
数として検出する検出手段と、該検出手段で最適処理回
数を検出したときに前記画像変換手段から出力される変
換画像に所定の符号化処理を施し、前記最適処理回数を
示すデータと共に送出する符号化手段とを備えた画像符
号化装置において、前記多段エッジ変換または多段フィ
ル変換の変換回数は、全てのラインにおいて同じ回数で
あることを特徴としている。According to a first aspect of the present invention, in encoding a binary image, multi-stage edge conversion or multi-stage conversion is performed for each line data in the horizontal or vertical direction. Image conversion means for performing a fill conversion, counting means for counting the number of conversions in the conversion means, and the number of conversions at which the code amount is minimized when a predetermined image is subjected to a predetermined encoding process on the converted image obtained from the image conversion means A detection means for detecting the optimum processing times, and performs a predetermined encoding process on the converted image output from the image conversion means when the optimum processing times are detected by the detection means, together with data indicating the optimum processing times. In the image encoding apparatus having encoding means for transmitting, the number of conversions of the multi-stage edge conversion or the multi-stage fill conversion is the same for all lines. To have.
【0010】請求項2記載の発明では、二値画像を符号
化する際に、縦方向のラインデータ毎に多段エッジ変換
または多段フィル変換を施す縦方向画像変換手段と、該
縦方向画像変換手段における変換回数を計数する計数手
段と、前記縦方向画像変換手段から得られる変換画像に
所定の符号化処理を施したときに符号量が最小となる変
換回数を第1の最適処理回数として検出する検出手段
と、該検出手段で最適処理回数を検出したときに前記縦
方向画像変換手段から出力される変換画像に対し、横方
向のラインデータ毎に多段エッジ変換または多段フィル
変換を施す横方向画像変換手段と、該横方向画像変換手
段における変換回数を計数する計数手段と、前記横方向
画像変換手段から得られる変換画像に所定の符号化処理
を施したときに符号量が最小となる変換回数を第2の最
適処理回数として検出する検出手段と、該検出手段で最
適処理回数を検出したときに前記横方向画像変換手段か
ら出力される変換画像に所定の符号化処理を施し、前記
第1、第2の最適処理回数を示すデータと共に送出する
符号化手段とを備えた画像符号化装置において、前記縦
方向および横方向の多段エッジ変換または多段フィル変
換の変換回数は、それぞれ全てのラインにおいて同じ回
数であることを特徴としている。According to the second aspect of the present invention, when encoding a binary image, vertical image conversion means for performing multi-stage edge conversion or multi-stage fill conversion for each vertical line data, and the vertical image conversion means Counting means for counting the number of conversions, and detecting the number of conversions that minimizes the code amount when a predetermined encoding process is performed on the converted image obtained from the vertical image conversion means as a first optimal processing number. Detecting means, and a horizontal image that performs multi-stage edge conversion or multi-stage fill conversion for each horizontal line data on a converted image output from the vertical image converting unit when the detecting unit detects the optimum number of times of processing. Conversion means, counting means for counting the number of conversions in the horizontal image conversion means, and a code when a predetermined encoding process is performed on the converted image obtained from the horizontal image conversion means. Detecting the number of conversions that minimizes the number of times as a second optimal processing number, and performing a predetermined encoding process on the converted image output from the horizontal image converting means when the detecting means detects the optimal number of processing times. And an encoding means for sending the data together with the data indicating the first and second optimal processing times, wherein the number of conversions in the vertical and horizontal multi-stage edge conversions or multi-stage fill conversions is , And the number of times is the same for all lines.
【0011】請求項3記載の発明では、多値画像を符号
化する際に、該多値画像を複数のビットプレーンに分割
する分割手段と、該分割後の各ビットプレーン画像に対
し横方向または縦方向のラインデータ毎に多段エッジ変
換または多段フィル変換を施す画像変換手段と、該画像
変換手段における変換回数を計数する計数手段と、前記
画像変換手段から得られる変換画像に所定の符号化処理
を施したときに符号量が最小となる変換回数を第1の最
適処理回数として検出する検出手段と、前記画像変換手
段から順次出力される複数のビットプレーン画像を合成
する手段と、該合成後の画像に対し階調方向に多段エッ
ジ変換または多段フィル変換を施す階調方向画像変換手
段と、該階調方向画像変換手段における変換回数を計数
する計数手段と、前記階調方向画像変換手段から得られ
る変換画像に所定の符号化処理を施したときに符号量が
最小となる変換回数を第2の最適処理回数として検出す
る検出手段と、前記階調方向画像変換手段から出力され
る変換画像を複数のビットプレーンに分割する分割手段
と、該分割後の各画像に所定の符号化処理を施し、前記
第1および第2の最適処理回数を示すデータと共に送出
する符号化手段とを備えた画像符号化装置において、前
記横方向または縦方向のラインデータ毎の多段エッジ変
換または多段フィル変換の変換回数は、全てのラインに
おいて同じ回数であることを特徴としている。According to the third aspect of the present invention, when encoding a multi-valued image, a dividing means for dividing the multi-valued image into a plurality of bit planes; Image conversion means for performing multi-stage edge conversion or multi-stage fill conversion for each line data in the vertical direction, counting means for counting the number of conversions in the image conversion means, and a predetermined encoding process for the converted image obtained from the image conversion means Detecting means for detecting the number of conversions at which the code amount becomes the minimum when the processing is performed as a first optimal processing number; means for synthesizing a plurality of bit plane images sequentially output from the image converting means; A gradation direction image conversion unit that performs multi-stage edge conversion or multi-stage fill conversion in the gradation direction on the image of the image, a counting unit that counts the number of conversions in the gradation direction image conversion unit, Detecting means for detecting, as a second optimum number of conversions, the number of conversions at which the code amount becomes minimum when a predetermined encoding process is performed on the converted image obtained from the gradation direction image converting means; A dividing unit for dividing the converted image output from the converting unit into a plurality of bit planes, performing a predetermined encoding process on each of the divided images, and sending the encoded image together with data indicating the first and second optimal processing times The multi-stage edge conversion or the multi-stage fill conversion for each line data in the horizontal or vertical direction is the same number of times for all lines. .
【0012】請求項4記載の発明では、階調方向の多段
エッジ変換または多段フィル変換の変換回数は、全画素
において同じ回数であることを特徴としている。[0014] The invention described in claim 4 is characterized in that the number of conversions of the multistage edge conversion or the multistage fill conversion in the gradation direction is the same for all pixels.
【0013】[0013]
【作用】本発明の一実施例においては、二値画像データ
がライン単位で横または縦方向エッジ変換器に入力さ
れ、横または縦方向にエッジ変換される。エッジ変換回
数計測器では、エッジ変換の回数を計測し、その計測値
を判定回路に送る。エントロピ計測器ではそのエントロ
ピを計測して判定回路に送る。判定回路では、エントロ
ピ計測器で得られた結果に基づいて、符号量が最小とな
るエッジ変換回数を検出する。コーダがJBIG方式で
符号化する場合には、全ラインについて同じ回数のエッ
ジ変換を行う。これにより各ラインの相関が保たれ圧縮
率が向上する。また、復号化時には符号化時と逆の変換
を行う。エッジ変換とフィル変換は互いに逆の変換であ
るので、符号化時の変換回数を受信することによって、
その回数分だけフィル変換して原画像に復元する。In one embodiment of the present invention, binary image data is input to a horizontal or vertical edge converter on a line basis, and edge-converted in the horizontal or vertical direction. The edge conversion frequency measuring device measures the number of times of edge conversion and sends the measured value to the determination circuit. The entropy measuring device measures the entropy and sends it to the judgment circuit. The determination circuit detects the number of edge conversions that minimizes the code amount based on the result obtained by the entropy measuring device. When the coder performs coding by the JBIG method, the same number of edge conversions are performed for all lines. Thereby, the correlation of each line is maintained and the compression ratio is improved. At the time of decoding, the reverse conversion is performed as compared with the encoding. Since the edge conversion and the fill conversion are conversions that are opposite to each other, by receiving the number of conversions at the time of encoding,
The original image is restored by performing the fill conversion by the number of times.
【0014】[0014]
【実施例】以下、本発明の一実施例を図面を用いて具体
的に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be specifically described below with reference to the drawings.
【0015】まず、本発明で用いられる多段エッジ変換
と多段フィル変換について説明する。図6は、エッジ変
換とフィル変換を説明するための図である。エッジ変換
は、圧縮符号化する二値の画素列に対し、先頭から順次
画素を比較して白画素(0)から黒画素(1)または黒
画素から白画素への変化点のみを黒画素とし、残りを白
画素とする変換である。First, the multi-stage edge conversion and the multi-stage fill conversion used in the present invention will be described. FIG. 6 is a diagram for explaining edge conversion and fill conversion. In the edge conversion, the binary pixels to be compression-encoded are sequentially compared with the pixels from the beginning, and only a transition point from a white pixel (0) to a black pixel (1) or a black pixel to a white pixel is determined as a black pixel. , And the rest as white pixels.
【0016】この変換はエッジ検出でもあり、二値画像
の画素間の差分の絶対値に相当する。つまり、先頭の画
素はそのまま出力し、先頭から順次、隣接する画素間の
排他的論理和処理を行った画素値の出力列となる。図6
の例では、二値画像Aに対し走査線上の画素列は“00
111000”となり、このデータ列に対して画素の変
化点のみを1にする変換を行うと、データ列“0010
0100”が得られ、全てのラインでエッジ変換を行う
と結果として画像Bが得られる。This conversion is also edge detection, and corresponds to the absolute value of the difference between pixels of the binary image. That is, the first pixel is output as it is, and becomes an output sequence of pixel values obtained by performing exclusive OR processing between adjacent pixels sequentially from the first pixel. FIG.
In the example of, the pixel row on the scanning line for the binary image A is “00”.
111000 ", and when this data string is converted so that only the change point of the pixel is 1, the data string" 0010 "is obtained.
0100 "is obtained, and when edge conversion is performed on all lines, an image B is obtained as a result.
【0017】また、フィル変換は、最初に現われた黒画
素(1)から次に現われる黒画素(1)の1画素手前ま
でを黒画素で塗りつぶす変換である。その後、さらに黒
画素が現われたときは、そのまた次の黒画素の手前まで
黒画素で塗りつぶす変換である。つまり、黒画素が現わ
れる度に白画素から黒画素、または黒画素から白画素に
変換する処理である。The fill conversion is a conversion in which black pixels (1) appearing first to one pixel before the next appearing black pixel (1) are filled with black pixels. Thereafter, when a further black pixel appears, the conversion is to fill the area with a black pixel up to the next black pixel. In other words, this is a process of converting a white pixel into a black pixel or a black pixel into a white pixel every time a black pixel appears.
【0018】図6の例では、二値画像Bに対して走査線
上の画素列は“00100100”であり、このデータ
列に対して上記フィル変換を行うと、データ列“001
11000”が得られ、全てのラインでフィル変換を行
うと結果として画像Aが得られる。このように、エッジ
変換とフィル変換は、互いに逆のオペレーションであ
り、符号化と復号化でそれぞれ逆の処理を行えばよいこ
とになる。また、エッジ変換器とフィル変換器は、それ
ぞれ図7、図8に示すように1画素シフタと排他的論理
和で構成され、ハードウェアも簡単である。In the example shown in FIG. 6, the pixel row on the scanning line for the binary image B is "00100100". When the above-described fill conversion is performed on this data row, the data row "001" is obtained.
11000 "is obtained, and when the fill conversion is performed on all the lines, an image A is obtained as a result. In this manner, the edge conversion and the fill conversion are operations opposite to each other, and are opposite in the encoding and the decoding. Further, the edge converter and the fill converter are configured by exclusive OR with one pixel shifter as shown in Fig. 7 and Fig. 8, respectively, and the hardware is simple.
【0019】上記したエッジ変換、フィル変換例は、そ
れぞれ主走査方向(これを横方向という)に対して行っ
た例であるが、副走査方向(縦方向)に対して行っても
同様である。The above-described examples of edge conversion and fill conversion are examples performed in the main scanning direction (which is referred to as the horizontal direction), but the same applies to the case in which the conversion is performed in the sub-scanning direction (vertical direction). .
【0020】図9は、エッジ変換、フィル変換を多段に
接続した例を示す。例えば、8ビットの画素列“001
10101”(Org)に対して1回のエッジ変換を行
うと、差分パターン“00101111”(Op1)の
画素列が得られる。さらに、この差分パターンにエッジ
変換を施すと(つまりエッジ変換を2回繰り返すと)、
“00111000”(Op2)となり、このようなエ
ッジ変換を繰り返すことにより多段エッジ変換を実現し
ている。また8回エッジ変換を繰り返すと、元の画素列
(Org)になり、サイクリックに変化することが分か
る。フィル変換はエッジ変換の逆変換であり、同様にサ
イクリックに変化する。FIG. 9 shows an example in which edge conversion and fill conversion are connected in multiple stages. For example, an 8-bit pixel column “001”
When one edge conversion is performed on 10101 ”(Org), a pixel row of the difference pattern“ 00101111 ”(Op1) is obtained. Further, when the edge conversion is performed on this difference pattern (that is, the edge conversion is performed twice) Repeat)
It becomes "00111000" (Op2), and multi-stage edge conversion is realized by repeating such edge conversion. Further, it can be seen that when edge conversion is repeated eight times, the original pixel row (Org) is obtained, and the pixel row changes cyclically. The fill transform is an inverse transform of the edge transform, and similarly changes cyclically.
【0021】符号化時にはエントロピが最小になる回数
だけエッジ変換を繰り返した画素列を選択し符号化すれ
ばよく、例えば図9においてハフマン符号化する場合
は、ランの数が最小となる所、つまりエッジ変換を2回
繰り返した画素列(Op2)を選べばよい。復号時には
同じ回数だけの逆変換、つまりこの場合は2回のフィル
変換で元の画素列を得ることができる。At the time of encoding, it is sufficient to select and encode a pixel row in which edge conversion is repeated as many times as the entropy is minimized. For example, in the case of Huffman encoding in FIG. 9, a place where the number of runs is minimized, that is, What is necessary is just to select a pixel column (Op2) in which edge conversion is repeated twice. At the time of decoding, an original pixel row can be obtained by the same number of inverse transforms, that is, in this case, two fill transforms.
【0022】次に、階調方向へのエッジ変換フィル変換
について説明する。例えば、図10の画像Cのような1
画素8ビットで表現される多値画像があった場合、ある
画素gについてMSB(最上位ビット)からLSB(最
下位ビット)へ走査すると二値のデータ列を得ることが
できる。これはその画素の二進数表現と同じものとなっ
ている。階調方向へのエッジ変換フィル変換はこのデー
タ列に対して行うものである。Next, edge conversion and fill conversion in the gradation direction will be described. For example, as shown in image C of FIG.
If there is a multi-valued image represented by 8 bits per pixel, a binary data string can be obtained by scanning a certain pixel g from MSB (most significant bit) to LSB (least significant bit). This is the same as the binary representation of the pixel. Edge conversion and fill conversion in the gradation direction are performed on this data string.
【0023】画像Cのある画素gをMSBからLSBへ
走査したデータ列が“11010111”であった場
合、このデータ列に対してエッジ変換を行うと、データ
列“10111100”を得ることができ、これをエッ
ジ変換後の変換画素とする。全画素について同様の処理
を行うと、階調方向のエッジ変換画像Dを得ることがで
きる。When a data string obtained by scanning a certain pixel g of the image C from the MSB to the LSB is “11010111”, by performing edge conversion on this data string, a data string “10111100” can be obtained. This is a converted pixel after the edge conversion. When the same processing is performed for all pixels, an edge-converted image D in the gradation direction can be obtained.
【0024】〈実施例1〉図1は、本発明の実施例1の
画像符号化装置の構成を示す。圧縮する二値画像データ
は、ライン単位で横または縦方向エッジ変換器1に入力
される。横または縦方向エッジ変換器1は、入力データ
に対して横または縦方向のエッジオペレーションを施
し、処理後のデータをエントロピ計測器2およびコーダ
4に送る。エッジオペレーションは繰り返され、エッジ
変換回数計測器5では、エッジオペレーションの回数を
計測し、その計測値を判定回路3に送る。エントロピ計
測器2では、処理データのエントロピを計測し、その結
果を判定回路3に送る。判定回路3では、エントロピ計
測器2で得られた結果に基づいて、符号量が最小となる
エッジオペレーションの回数(最適処理回数)を検出す
る。<Embodiment 1> FIG. 1 shows the configuration of an image coding apparatus according to Embodiment 1 of the present invention. The binary image data to be compressed is input to the horizontal or vertical edge converter 1 in line units. The horizontal or vertical edge converter 1 performs a horizontal or vertical edge operation on input data, and sends the processed data to the entropy measuring device 2 and the coder 4. The edge operation is repeated, and the edge conversion number measuring device 5 measures the number of edge operations and sends the measured value to the determination circuit 3. The entropy measuring device 2 measures the entropy of the processing data and sends the result to the determination circuit 3. The determination circuit 3 detects the number of edge operations (optimal processing times) that minimizes the code amount based on the result obtained by the entropy measuring device 2.
【0025】そして、判定回路3は、横または縦方向エ
ッジ変換器1でエッジ変換されたデータの内から、最適
処理回数の画像データを選択してコーダ4に送る。エッ
ジ変換後の画像データは、コーダ4で所定の符号化処理
がなされた後、エッジ変換回数計測器5で得た処理回数
を示すデータと共に、圧縮データとして出力される。The judging circuit 3 selects the image data of the optimum number of times of processing from the data edge-converted by the horizontal or vertical edge converter 1 and sends it to the coder 4. The image data after the edge conversion is subjected to a predetermined encoding process in the coder 4 and then output as compressed data together with data indicating the number of times of processing obtained by the edge conversion frequency measuring device 5.
【0026】ところで、JBIG方式で二値画像を符号
化するとき、コーダ4は算術符号化方式の一種であるQ
Mコーダが使用される。そして、符号化を行う際に、参
照画素が用いられ、参照する10画素の配置(これをテ
ンプレートという)が上記方式で決められている。By the way, when coding a binary image by the JBIG method, the coder 4 uses Q, which is a kind of arithmetic coding method.
An M coder is used. When encoding is performed, reference pixels are used, and the arrangement of 10 pixels to be referred to (this is referred to as a template) is determined by the above method.
【0027】このように、コーダ4がJBIG方式で使
用されている10画素参照のテンプレート付きQMコー
ダである場合には、他のラインの画素を参照しているの
で、他のラインとのエッジ変換回数が異なった場合、そ
のライン間の相関がなくなり、かえって符号化効率の低
下を招くことになる。As described above, in the case where the coder 4 is a QM coder with a template that refers to 10 pixels and is used in the JBIG system, since the coder 4 refers to pixels on other lines, edge conversion with other lines is performed. If the number of times is different, the correlation between the lines is lost and the coding efficiency is rather lowered.
【0028】そこで、本発明では、他のラインを参照す
るQMコーダを使用する場合は、全ラインについて同じ
回数のエッジ変換を行うものとする。これにより各ライ
ンの相関が保たれ圧縮率の向上が期待できる。Therefore, in the present invention, when a QM coder that refers to another line is used, the same number of edge conversions is performed for all lines. Thereby, the correlation of each line is maintained, and an improvement in the compression ratio can be expected.
【0029】すなわち、横または縦方向エッジ変換器1
で、例えば最初の数ラインについてエッジ変換する。エ
ッジ変換後のデータはエントロピ計測器2に入力される
と共に、エッジ変換回数は、エッジ変換回数計測器5で
計測される。エントロピ計測器2では、数ラインのエッ
ジ変換後のエントロピを計測し、その結果を判定回路3
に送る。That is, the horizontal or vertical edge converter 1
Then, for example, edge conversion is performed on the first few lines. The data after the edge conversion is input to the entropy measuring device 2, and the number of edge conversions is measured by the edge conversion number measuring device 5. The entropy measuring device 2 measures the entropy of the several lines after the edge conversion, and determines the result by a determination circuit 3.
Send to
【0030】判定回路3では、エントロピ計測器2で得
られた結果に基づいて、符号量が最小となるエッジ変換
回数を判定する。このときのエッジ変換回数(最適処理
回数)が判定回路3に記憶され、符号化時に該エッジ変
換回数も送出される。そして、判定回路3からのエッジ
変換回数が横または縦方向エッジ変換器1に指示され、
該指示されたエッジ変換回数で全てのラインについてエ
ッジ変換を行う。エッジ変換後のデータはコーダ4に入
力されて所定の符号化処理がなされ、エッジ変換回数を
示すデータと共に圧縮データとして出力される。The determination circuit 3 determines the number of edge conversions at which the code amount is minimum based on the result obtained by the entropy measuring device 2. The number of times of edge conversion (optimal number of times of processing) at this time is stored in the determination circuit 3, and the number of times of edge conversion is also transmitted at the time of encoding. Then, the number of edge conversions from the determination circuit 3 is instructed to the horizontal or vertical edge converter 1,
Edge conversion is performed for all the lines at the designated number of edge conversions. The data after the edge conversion is input to the coder 4 and subjected to a predetermined encoding process, and is output as compressed data together with data indicating the number of times of edge conversion.
【0031】このように、本実施例1では、JBIG方
式を考慮して、全ラインについて同じ回数のエッジ変換
を行っているので、各ラインの相関が保たれ圧縮率を向
上させることができる。As described above, in the first embodiment, the edge conversion is performed the same number of times for all the lines in consideration of the JBIG method, so that the correlation of each line is maintained and the compression ratio can be improved.
【0032】なお、上記した実施例では、処理時間を考
慮して、最初の数ラインのエッジ変換から、符号量が最
小となるエッジ変換回数を判定しているが、本実施例は
これに限定されるものではなく、入力画像中の所定数の
ラインからエッジ変換回数を判定してもよいし、あるい
は全てのラインをエッジ変換してから符号量が最小とな
るエッジ変換回数を判定してもよい。In the above-described embodiment, the number of edge conversions that minimizes the code amount is determined from the edge conversion of the first few lines in consideration of the processing time. However, the present embodiment is not limited to this. Instead, the number of edge conversions may be determined from a predetermined number of lines in the input image, or the number of edge conversions that minimizes the code amount after performing edge conversion on all lines may be determined. Good.
【0033】〈実施例2〉図2は、本発明の実施例2の
画像符号化装置の構成を示す。図1と同じ構成要素につ
いては、その説明を省略する。この実施例2では、実施
例1と同様に、コーダ18がJBIG方式で使用されて
いる10画素参照のテンプレート付きQMコーダである
とする。<Embodiment 2> FIG. 2 shows the configuration of an image coding apparatus according to Embodiment 2 of the present invention. The description of the same components as those in FIG. 1 is omitted. In the second embodiment, as in the first embodiment, it is assumed that the coder 18 is a QM coder with a template that refers to 10 pixels and is used in the JBIG system.
【0034】圧縮する二値画像データは、縦方向のライ
ン単位で縦方向エッジ変換器11に入力され、縦方向エ
ッジ変換器11は入力データに対して縦方向のエッジオ
ペレーションを施し、処理後のデータをエントロピ計測
器12および横方向エッジ変換器14に送る。エントロ
ピ計測器12、16、判定回路13、17、エッジ変換
回数計測器15、19は、図1のものと同様の機能を有
する。The binary image data to be compressed is input to the vertical edge converter 11 in units of vertical lines, and the vertical edge converter 11 performs a vertical edge operation on the input data, and The data is sent to an entropy meter 12 and a lateral edge converter 14. The entropy measuring devices 12 and 16, the determination circuits 13 and 17, and the edge conversion frequency measuring devices 15 and 19 have the same functions as those in FIG.
【0035】実施例1と同様に、縦方向の最初の数ライ
ンのエッジオペレーションが繰り返され、エッジ変換回
数計測器15では、エッジオペレーションの回数を計測
し、その計測値を判定回路13に送る。エントロピ計測
器12では、処理データのエントロピを計測し、その結
果を判定回路13に送り、判定回路13では、エントロ
ピ計測器12で得られた結果に基づいて、符号量が最小
となるエッジオペレーションの回数を検出する。As in the first embodiment, the edge operation of the first few lines in the vertical direction is repeated, and the edge conversion frequency measuring device 15 measures the number of edge operations and sends the measured value to the judgment circuit 13. The entropy measuring device 12 measures the entropy of the processing data, and sends the result to the judgment circuit 13. Based on the result obtained by the entropy measuring device 12, the judgment circuit 13 executes the edge operation of the edge operation that minimizes the code amount. Detect the number of times.
【0036】縦方向エッジ変換器11は、判定回路13
で検出されたエッジ変換回数で全てのラインについてエ
ッジ変換を行い、エッジ変換後のデータを横方向エッジ
変換器14に入力する。The vertical edge converter 11 includes a decision circuit 13
The edge conversion is performed for all the lines according to the number of edge conversions detected in step (1), and the data after the edge conversion is input to the horizontal edge converter 14.
【0037】横方向エッジ変換器14は、送られてきた
エッジ変換後のデータについて横方向のライン単位で同
様のエッジオペレーションを施し、処理後のデータをエ
ントロピ計測器16およびコーダ18に送る。横方向エ
ッジ変換器14は、横方向の最初の数ラインのエッジオ
ペレーションを繰り返し、エッジ変換回数計測器19で
は、エッジオペレーションの回数を計測し、その計測値
を判定回路17に送り、エントロピ計測器16では、そ
のエントロピを計測して、判定回路17に送る。判定回
路17では、エントロピ計測器16で得られた結果に基
づいて、符号量が最小となるエッジオペレーションの回
数を検出し、横方向エッジ変換器14は、判定回路17
で検出されたエッジ変換回数で全てのラインについて同
じ回数のエッジ変換を行う。The horizontal edge converter 14 performs a similar edge operation on the transmitted data after the edge conversion on a horizontal line basis, and sends the processed data to the entropy measuring unit 16 and the coder 18. The horizontal edge converter 14 repeats the edge operation of the first few lines in the horizontal direction, and the edge conversion frequency measuring device 19 counts the number of edge operations, sends the measured value to the determination circuit 17, and outputs the measured value to the entropy measuring device. At 16, the entropy is measured and sent to the judgment circuit 17. The determination circuit 17 detects the number of edge operations that minimizes the code amount based on the result obtained by the entropy measuring device 16.
The same number of edge conversions is performed for all the lines with the number of edge conversions detected in.
【0038】横方向エッジ変換後のデータはコーダ18
に入力されて所定の符号化処理が行われ、符号化後のデ
ータに、判定回路13、17で得られたエッジ変換回数
とを付加して圧縮データとして送出する。The data after the horizontal edge conversion is applied to the coder 18
, And is subjected to a predetermined encoding process. The encoded data is added with the number of edge conversions obtained by the determination circuits 13 and 17 and transmitted as compressed data.
【0039】〈実施例2〉図2は、本発明の実施例2の
画像符号化装置の構成を示す。図1と同じ構成要素につ
いては、その説明を省略する。この実施例2では、実施
例1と同様に、コーダ18がJBIG方式で使用されて
いる10画素参照のテンプレート付きQMコーダである
とする。<Embodiment 2> FIG. 2 shows the configuration of an image coding apparatus according to Embodiment 2 of the present invention. The description of the same components as those in FIG. 1 is omitted. In the second embodiment, as in the first embodiment, it is assumed that the coder 18 is a QM coder with a template that refers to 10 pixels and is used in the JBIG system.
【0040】圧縮する二値画像データは、縦方向のライ
ン単位で縦方向エッジ変換器11に入力され、縦方向エ
ッジ変換器11は入力データに対して縦方向のエッジオ
ペレーションを施し、処理後のデータをエントロピ計測
器12および横方向エッジ変換器14に送る。エントロ
ピ計測器12、16、判定回路13、17、エッジ変換
回数計測器15、19は、図1のものと同様の機能を有
する。The binary image data to be compressed is input to the vertical edge converter 11 in units of vertical lines, and the vertical edge converter 11 performs a vertical edge operation on the input data. The data is sent to an entropy meter 12 and a lateral edge converter 14. The entropy measuring devices 12 and 16, the determination circuits 13 and 17, and the edge conversion frequency measuring devices 15 and 19 have the same functions as those in FIG.
【0041】実施例1と同様に、縦方向の最初の数ライ
ンのエッジオペレーションが繰り返され、エッジ変換回
数計測器15では、エッジオペレーションの回数を計測
し、その計測値を判定回路13に送る。エントロピ計測
器12では、処理データのエントロピを計測し、その結
果を判定回路13に送り、判定回路13では、エントロ
ピ計測器12で得られた結果に基づいて、符号量が最小
となるエッジオペレーションの回数を検出する。As in the first embodiment, the edge operation of the first few lines in the vertical direction is repeated, and the edge conversion number measuring device 15 measures the number of edge operations and sends the measured value to the judgment circuit 13. The entropy measuring device 12 measures the entropy of the processing data, and sends the result to the judgment circuit 13. Based on the result obtained by the entropy measuring device 12, the judgment circuit 13 executes the edge operation of the edge operation that minimizes the code amount. Detect the number of times.
【0042】縦方向エッジ変換器11は、判定回路13
で検出されたエッジ変換回数で全てのラインについてエ
ッジ変換を行い、エッジ変換後のデータを横方向エッジ
変換器14に入力する。The vertical edge converter 11 includes a decision circuit 13
The edge conversion is performed for all the lines according to the number of edge conversions detected in step (1), and the data after the edge conversion is input to the horizontal edge converter 14.
【0043】横方向エッジ変換器14は、送られてきた
エッジ変換後のデータについて横方向のライン単位で同
様のエッジオペレーションを施し、処理後のデータをエ
ントロピ計測器16およびコーダ18に送る。横方向エ
ッジ変換器14は、横方向の最初の数ラインのエッジオ
ペレーションを繰り返し、エッジ変換回数計測器19で
は、エッジオペレーションの回数を計測し、その計測値
を判定回路17に送り、エントロピ計測器16では、そ
のエントロピを計測して、判定回路17に送る。判定回
路17では、エントロピ計測器16で得られた結果に基
づいて、符号量が最小となるエッジオペレーションの回
数を検出し、横方向エッジ変換器14は、判定回路17
で検出されたエッジ変換回数で全てのラインについて同
じ回数のエッジ変換を行う。The horizontal edge converter 14 performs a similar edge operation on the transmitted data after the edge conversion in units of horizontal lines, and sends the processed data to the entropy measuring unit 16 and the coder 18. The horizontal edge converter 14 repeats the edge operation of the first few lines in the horizontal direction, and the edge conversion frequency measuring device 19 counts the number of edge operations, sends the measured value to the determination circuit 17, and outputs the measured value to the entropy measuring device. At 16, the entropy is measured and sent to the judgment circuit 17. The determination circuit 17 detects the number of edge operations that minimizes the code amount based on the result obtained by the entropy measuring device 16.
The same number of edge conversions is performed for all the lines with the number of edge conversions detected in.
【0044】横方向エッジ変換後のデータはコーダ18
に入力されて所定の符号化処理が行われ、符号化後のデ
ータに、判定回路13、17で得られたエッジ変換回数
とを付加して圧縮データとして送出する。The data after the horizontal edge conversion is applied to the coder 18.
, And is subjected to a predetermined encoding process. The encoded data is added with the number of edge conversions obtained by the determination circuits 13 and 17 and transmitted as compressed data.
【0045】〈実施例3〉図3に示す本実施例3は、入
力画像が多値画像である場合の画像符号化装置であり、
コーダとして実施例1、2と同様にQMコーダを使用す
る。多値画像はビットプレーン分割器20で複数のビッ
トプレーンに分割される。例えば1画素8ビットの多値
画像では、図10の画像Cに示すように8枚のビットプ
レーンに分割される。横または縦方向エッジ変換器2
1、エントロピ計測器22、エッジ変換回数計測器2
5、判定回路23は、実施例1と同様に機能する。<Embodiment 3> Embodiment 3 shown in FIG. 3 is an image coding apparatus when an input image is a multi-valued image.
As the coder, a QM coder is used as in the first and second embodiments. The multi-valued image is divided into a plurality of bit planes by a bit plane divider 20. For example, a multi-valued image having 8 bits per pixel is divided into eight bit planes as shown in an image C in FIG. Horizontal or vertical edge converter 2
1. Entropy measurement device 22, Edge conversion frequency measurement device 2.
5. The determination circuit 23 functions in the same manner as in the first embodiment.
【0046】ただし、横または縦方向エッジ変換器21
は、分割された各ビットプレーン毎に、実施例1と同様
に横または縦方向の全ラインについて、同じ回数のエッ
ジ変換を行う。これにより、各ラインの相関が保たれ圧
縮率の向上が期待できる。However, the horizontal or vertical edge converter 21
Performs the same number of edge conversions on all the horizontal or vertical lines for each divided bit plane as in the first embodiment. Thereby, the correlation of each line is maintained, and an improvement in the compression ratio can be expected.
【0047】各ビットプレーン毎にエッジ変換されたデ
ータは、ビットプレーン合成器24で、図10の画像C
の如く再構成されて、階調方向エッジ変換器26に入力
される。階調方向エッジ変換器26は、図10で説明し
たように階調方向のエッジオペレーションを施し、処理
後のデータをエントロピ計測器27およびビットプレー
ン分割器30に送る。The data subjected to the edge conversion for each bit plane is converted by the bit plane synthesizer 24 into the image C of FIG.
And input to the gradation direction edge converter 26. The gradation direction edge converter 26 performs the gradation direction edge operation as described with reference to FIG. 10 and sends the processed data to the entropy measuring device 27 and the bit plane divider 30.
【0048】ビットプレーン分割器30では、階調方向
エッジ変換器26から送られてきたエッジ変換画像をビ
ットプレーン画像に分割して、二値コーダ31に送る。
例えば入力画像が8ビットの多値画像であった場合、8
つのビットプレーン画像に分割される。分割された二値
のビットプレーンデータは、二値コーダ31においてそ
れぞれ別々に符号化される。この二値コーダ31ではビ
ットプレーン毎に符号化するので、階調方向のエッジ変
換回数が画素毎に異なった場合、同一ビットプレーンで
の隣接画素との相関がなくなり、かえって符号化効率の
低下を招くことになる。そのため、ビットプレーンに分
割して符号化する場合は、階調方向エッジ変換器26で
のエッジ変換回数を全画素について同じ回数にする。こ
れにより、隣接画素間の相関が保たれ圧縮率の向上が期
待できる。The bit plane divider 30 divides the edge-converted image sent from the gradation-direction edge converter 26 into bit-plane images and sends the bit-plane image to the binary coder 31.
For example, if the input image is an 8-bit multi-valued image,
Divided into two bit plane images. The divided binary bit plane data is separately encoded in the binary coder 31. In the binary coder 31, since encoding is performed for each bit plane, if the number of times of edge conversion in the gradation direction differs for each pixel, there is no correlation with adjacent pixels in the same bit plane, and the coding efficiency is reduced. Will be invited. Therefore, when encoding by dividing into bit planes, the number of times of edge conversion in the gradation direction edge converter 26 is set to be the same for all pixels. As a result, the correlation between adjacent pixels is maintained, and an improvement in the compression ratio can be expected.
【0049】階調方向でのエッジ変換回数を全画素につ
いて同回数にするには次のように処理する。すなわち、
階調方向エッジ変換器26は、全画素の内の幾つかの画
素(例えば、画像Cにおける画素gを含む近傍の画素)
についてエッジ変換を行う。エッジ変換回数計測器29
では、各画素についてエッジオペレーションの回数を計
測し、その計測値を判定回路28に送る。エントロピ計
測器29では、エッジ変換後のエントロピを計測し、そ
の結果を判定回路28に送る。To make the number of edge conversions in the gradation direction the same for all pixels, the following processing is performed. That is,
The gradation direction edge converter 26 is configured to output some pixels (for example, neighboring pixels including the pixel g in the image C) among all the pixels.
Is subjected to edge conversion. Edge conversion frequency measuring instrument 29
Then, the number of edge operations is measured for each pixel, and the measured value is sent to the determination circuit 28. The entropy measuring device 29 measures the entropy after the edge conversion, and sends the result to the determination circuit 28.
【0050】判定回路28では、エントロピ計測器29
で得られた結果に基づいて、符号量が最小となるエッジ
オペレーションの回数(最適処理回数)を検出して、階
調方向エッジ変換器26にエッジ変換回数を指示する。
階調方向エッジ変換器26は、判定回路28によって指
示されたと同じ回数のエッジ変換回数で全画素をエッジ
変換する。二値コーダ31ではビットプレーン毎に符号
化し、エッジ変換回数計測器25、29で得たエッジ変
換回数を示すデータと共に圧縮データして出力される。In the judgment circuit 28, an entropy measuring device 29
The number of edge operations (optimal processing times) that minimizes the code amount is detected based on the result obtained in (1), and the number of edge conversions is instructed to the gradation direction edge converter 26.
The gradation direction edge converter 26 performs edge conversion on all pixels with the same number of edge conversion times as instructed by the determination circuit 28. The binary coder 31 encodes the data for each bit plane, and outputs compressed data together with data indicating the number of edge conversions obtained by the edge conversion number measuring devices 25 and 29.
【0051】〈実施例4〉図4は、図2の二値画像符号
化に対する復号器の構成を示す。符号化情報はデコーダ
41で、圧縮された画像データとエッジ変換回数を示す
データとに分けられ、圧縮画像データは復元された後、
横方向フィル変換器43に送られ、回数のデータはフィ
ル変換回数判定器42に送られる。Embodiment 4 FIG. 4 shows the structure of a decoder for the binary image coding of FIG. The encoded information is divided by the decoder 41 into compressed image data and data indicating the number of times of edge conversion, and after the compressed image data is decompressed,
The data of the number of times is sent to the horizontal direction fill converter 43, and the data of the number of times is sent to the number of times of fill conversion determination unit 42.
【0052】横方向フィル変換器43では、画像データ
に対しフィル変換回数判定器42で得られたフィル変換
の回数分だけ横方向にフィル変換を繰り返し、変換後の
データを縦方向フィル変換器44に送る。縦方向フィル
変換器44では、フィル変換回数判定器42で得られた
フィル変換の回数分だけ縦方向にフィル変換を繰り返
し、元の二値画像データを出力する。The horizontal-direction fill converter 43 repeats the horizontal-direction fill conversion for the image data by the number of times of the fill conversion obtained by the number-of-times-of-fill-conversion determiner 42, and converts the converted data to the vertical-direction fill converter 44 Send to The vertical direction fill converter 44 repeats the fill conversion in the vertical direction by the number of times of the fill conversion obtained by the fill conversion number determination unit 42, and outputs the original binary image data.
【0053】図5は、図3の多値画像符号化に対する復
号器の構成を示す。圧縮データはデコーダ51で、圧縮
ビットプレーン画像データと、エッジ変換回数を示すデ
ータとに分けられ、圧縮ビットプレーン画像データは、
復元後多値画像生成器52に、回数のデータはフィル変
換回数判定器53にそれぞれ送られる。多値画像生成器
52では、復元された複数枚のビットプレーンデータを
統合し、一つの多値画像を生成し、階調方向フィル変換
器54に送る。FIG. 5 shows the configuration of a decoder for the multi-level image coding of FIG. The compressed data is divided by a decoder 51 into compressed bit plane image data and data indicating the number of times of edge conversion.
The data of the number of times is sent to the multivalued image generator 52 after restoration, and the number-of-times-of-fill-conversion determination unit 53 is sent. The multi-level image generator 52 integrates a plurality of restored bit plane data, generates one multi-level image, and sends it to the gradation direction fill converter 54.
【0054】階調方向フィル変換器54では、多値画像
データに対しフィル変換回数判定器53で得られたフィ
ル変換の回数分だけ階調方向にフィル変換を繰り返し、
変換後のデータを横または縦方向フィル変換器55に送
る。横または縦方向フィル変換器55では、フィル変換
回数判定器53で得られたフィル変換の回数分だけ横ま
たは縦方向にフィル変換を繰り返し、元の多値画像デー
タを出力する。The gradation direction fill converter 54 repeats the fill conversion in the gradation direction by the number of times of the fill conversion obtained by the fill conversion number determiner 53 for the multi-valued image data.
The converted data is sent to the horizontal or vertical fill converter 55. The horizontal or vertical fill converter 55 repeats the fill conversion in the horizontal or vertical direction by the number of times of the fill conversion obtained by the fill conversion number determiner 53, and outputs the original multi-valued image data.
【0055】なお、上記した実施例の構成では、符号化
する場合にエッジ変換を使用し、復号にその逆変換であ
るフィル変換を使用しているが、変換処理を逆にした場
合、つまり符号化する場合にフィル変換を使用し、復号
にエッジ変換を使用しても同様である。In the configuration of the above-described embodiment, the edge conversion is used for encoding, and the fill conversion, which is the inverse of the edge conversion, is used for decoding. The same applies to the case where the fill conversion is used for the conversion and the edge conversion is used for the decoding.
【0056】[0056]
【発明の効果】以上、説明したように、請求項1、2記
載の発明によれば、二値画像に対し多段のエッジ変換ま
たはフィル変換を施し、適用する符号化処理に最適なデ
ータに変換した後に所定の符号化処理を施すことによ
り、圧縮効率を上げることができる。すなわち例えば、
多段のエッジ変換またはフィル変換の変換回数を全ライ
ンにおいて同じ回数とし、ライン間の相関を維持するこ
とにより、ラインをまたがって画素を参照するような二
値符号化方式、例えばJBIG方式などで符号化したと
きにおいても符号化効率が良くなる。As described above, according to the first and second aspects of the present invention, multi-level edge conversion or fill conversion is performed on a binary image to convert the binary image into data optimal for the encoding process to be applied. By performing a predetermined encoding process after the above, the compression efficiency can be increased. That is, for example,
The number of conversions of multi-stage edge conversion or fill conversion is set to the same number for all lines, and by maintaining the correlation between lines, coding is performed using a binary coding method that refers to pixels across lines, such as the JBIG method. Even when the coding is performed, the coding efficiency is improved.
【0057】請求項3、4記載の発明によれば、多値画
像符号化装置において、階調方向や横方向、縦方向に多
段のエッジ変換またはフィル変換を施すことで画像のエ
ントロピを減らし、符号化効率を上げることができる。
また、多値画像をビットプレーンに分割し、各ビットプ
レーン画像を二値符号化することで可逆の符号化を可能
にし、さらに多段エッジ変換または多段フィル変換の変
換回数を全ラインにおいて同回数にすることで、ライン
をまたがって画素を参照するような二値符号化方式、例
えばJBIG方式などで符号化したときにおいても符号
化効率が良くなる。さらに、階調方向のエッジ変換回数
を全画素について同じ回数にすることにより隣接画素間
の相関が保たれ、圧縮率を向上させることができる。According to the third and fourth aspects of the present invention, the multi-level image encoding apparatus performs multi-stage edge conversion or fill conversion in the gradation direction, the horizontal direction, and the vertical direction to reduce the entropy of the image. Encoding efficiency can be increased.
In addition, the multi-valued image is divided into bit planes, and each bit plane image is binary-coded to enable lossless coding, and the number of times of multi-stage edge conversion or multi-stage fill conversion is set to the same number for all lines. By doing so, the encoding efficiency is improved even when encoding is performed by a binary encoding method that refers to pixels across lines, for example, the JBIG method. Furthermore, by making the number of edge conversions in the gradation direction the same for all pixels, the correlation between adjacent pixels is maintained, and the compression ratio can be improved.
【図1】本発明の実施例1の画像符号化装置の構成を示
す。FIG. 1 shows a configuration of an image encoding device according to a first embodiment of the present invention.
【図2】本発明の実施例2の画像符号化装置の構成を示
す。FIG. 2 illustrates a configuration of an image encoding device according to a second embodiment of the present invention.
【図3】本発明の実施例3の画像符号化装置の構成を示
す。FIG. 3 illustrates a configuration of an image encoding device according to a third embodiment of the present invention.
【図4】実施例2の画像符号化に対する復号器の構成を
示す。FIG. 4 illustrates a configuration of a decoder for image encoding according to a second embodiment.
【図5】実施例3の画像符号化に対する復号器の構成を
示す。FIG. 5 illustrates a configuration of a decoder for image encoding according to a third embodiment.
【図6】エッジ変換とフィル変換を説明するための図で
ある。FIG. 6 is a diagram for explaining edge conversion and fill conversion.
【図7】エッジ変換器のハードウェア構成を示す。FIG. 7 shows a hardware configuration of an edge converter.
【図8】フィル変換器のハードウェア構成を示す。FIG. 8 shows a hardware configuration of a fill converter.
【図9】エッジ変換、フィル変換を多段に接続した例を
示す。FIG. 9 shows an example in which edge transformation and fill transformation are connected in multiple stages.
【図10】階調方向のエッジ変換を説明するための図で
ある。FIG. 10 is a diagram for explaining edge conversion in the gradation direction.
1 横または縦方向エッジ変換器 2 エントロピ計測器 3 判定回路 4 コーダ 5 エッジ変換回数計測器 DESCRIPTION OF SYMBOLS 1 Horizontal or vertical edge converter 2 Entropy measuring device 3 Judgment circuit 4 Coder 5 Edge conversion frequency measuring device
Claims (4)
は縦方向のラインデータ毎に多段エッジ変換または多段
フィル変換を施す画像変換手段と、該変換手段における
変換回数を計数する計数手段と、前記画像変換手段から
得られる変換画像に所定の符号化処理を施したときに符
号量が最小となる変換回数を最適処理回数として検出す
る検出手段と、該検出手段で最適処理回数を検出したと
きに前記画像変換手段から出力される変換画像に所定の
符号化処理を施し、前記最適処理回数を示すデータと共
に送出する符号化手段とを備えた画像符号化装置におい
て、前記多段エッジ変換または多段フィル変換の変換回
数は、全てのラインにおいて同じ回数であることを特徴
とする画像符号化装置。1. An image conversion means for performing multi-stage edge conversion or multi-stage fill conversion for each horizontal or vertical line data when encoding a binary image, and a counting means for counting the number of conversions in the conversion means. Detecting means for detecting the number of conversions that minimizes the code amount when a predetermined encoding process is performed on the converted image obtained from the image converting means as an optimum number of times of processing, and detecting the number of optimum processing times by the detecting means Performing a predetermined encoding process on the converted image output from the image conversion unit when the image processing unit performs the multi-stage edge conversion or An image coding apparatus, wherein the number of times of multi-stage fill conversion is the same for all lines.
インデータ毎に多段エッジ変換または多段フィル変換を
施す縦方向画像変換手段と、該縦方向画像変換手段にお
ける変換回数を計数する計数手段と、前記縦方向画像変
換手段から得られる変換画像に所定の符号化処理を施し
たときに符号量が最小となる変換回数を第1の最適処理
回数として検出する検出手段と、該検出手段で最適処理
回数を検出したときに前記縦方向画像変換手段から出力
される変換画像に対し、横方向のラインデータ毎に多段
エッジ変換または多段フィル変換を施す横方向画像変換
手段と、該横方向画像変換手段における変換回数を計数
する計数手段と、前記横方向画像変換手段から得られる
変換画像に所定の符号化処理を施したときに符号量が最
小となる変換回数を第2の最適処理回数として検出する
検出手段と、該検出手段で最適処理回数を検出したとき
に前記横方向画像変換手段から出力される変換画像に所
定の符号化処理を施し、前記第1、第2の最適処理回数
を示すデータと共に送出する符号化手段とを備えた画像
符号化装置において、前記縦方向および横方向の多段エ
ッジ変換または多段フィル変換の変換回数は、それぞれ
全てのラインにおいて同じ回数であることを特徴とする
画像符号化装置。2. A vertical image conversion means for performing multi-stage edge conversion or multi-stage fill conversion for each vertical line data when encoding a binary image, and counting the number of conversions in the vertical image conversion means. Counting means; detecting means for detecting, as a first optimal processing number, the number of conversions that minimizes the code amount when a predetermined encoding process is performed on the converted image obtained from the vertical image conversion means; Horizontal image conversion means for performing multi-stage edge conversion or multi-stage fill conversion for each horizontal line data with respect to the converted image output from the vertical image conversion means when the optimal processing number is detected by the means; Counting means for counting the number of conversions in the directional image converting means, and converting the number of conversions at which the code amount becomes minimum when a predetermined encoding process is performed on the converted image obtained from the horizontal image converting means. Detecting means for detecting as the second optimal processing number, and performing a predetermined encoding process on the converted image output from the horizontal image converting means when the detecting means detects the optimal number of processing; In the image encoding apparatus, the encoding means for transmitting the data together with the data indicating the second optimum number of times of processing, wherein the number of times of the vertical and horizontal multi-stage edge conversion or the multi-stage fill conversion is the same for all the lines. An image encoding device, wherein the number is a number.
を複数のビットプレーンに分割する分割手段と、該分割
後の各ビットプレーン画像に対し横方向または縦方向の
ラインデータ毎に多段エッジ変換または多段フィル変換
を施す画像変換手段と、該画像変換手段における変換回
数を計数する計数手段と、前記画像変換手段から得られ
る変換画像に所定の符号化処理を施したときに符号量が
最小となる変換回数を第1の最適処理回数として検出す
る検出手段と、前記画像変換手段から順次出力される複
数のビットプレーン画像を合成する手段と、該合成後の
画像に対し階調方向に多段エッジ変換または多段フィル
変換を施す階調方向画像変換手段と、該階調方向画像変
換手段における変換回数を計数する計数手段と、前記階
調方向画像変換手段から得られる変換画像に所定の符号
化処理を施したときに符号量が最小となる変換回数を第
2の最適処理回数として検出する検出手段と、前記階調
方向画像変換手段から出力される変換画像を複数のビッ
トプレーンに分割する分割手段と、該分割後の各画像に
所定の符号化処理を施し、前記第1および第2の最適処
理回数を示すデータと共に送出する符号化手段とを備え
た画像符号化装置において、前記横方向または縦方向の
ラインデータ毎の多段エッジ変換または多段フィル変換
の変換回数は、全てのラインにおいて同じ回数であるこ
とを特徴とする画像符号化装置。3. A dividing means for dividing a multi-valued image into a plurality of bit planes when encoding the multi-valued image, wherein each of the divided bit-plane images is divided into horizontal or vertical line data. Image conversion means for performing multi-stage edge conversion or multi-stage fill conversion, counting means for counting the number of conversions in the image conversion means, and a code when a predetermined image is subjected to a predetermined coding process to the converted image obtained from the image conversion means. Detecting means for detecting the number of conversions that minimizes the amount as a first optimal processing number; means for synthesizing a plurality of bit-plane images sequentially output from the image converting means; Gradation direction image conversion means for performing multistage edge conversion or multistage fill conversion in the direction, counting means for counting the number of conversions in the gradation direction image conversion means, and said gradation direction image conversion means Detecting means for detecting, as a second optimal processing number, the number of conversions at which the code amount becomes minimum when a predetermined encoding process is performed on the converted image obtained from the image processing unit, and a conversion output from the gradation direction image converting unit Dividing means for dividing the image into a plurality of bit planes; and coding means for performing a predetermined coding process on each of the divided images and transmitting the data together with the data indicating the first and second optimal processing times. Wherein the number of conversions of the multi-stage edge conversion or the multi-stage fill conversion for each of the horizontal or vertical line data is the same for all lines.
段フィル変換の変換回数は、全画素において同じ回数で
あることを特徴とする請求項3記載の画像符号化装置。4. The image encoding apparatus according to claim 3, wherein the number of conversions of the multi-stage edge conversion or the multi-stage fill conversion in the gradation direction is the same for all pixels.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10642194A JP3274566B2 (en) | 1994-05-20 | 1994-05-20 | Image coding device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10642194A JP3274566B2 (en) | 1994-05-20 | 1994-05-20 | Image coding device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH07322071A JPH07322071A (en) | 1995-12-08 |
| JP3274566B2 true JP3274566B2 (en) | 2002-04-15 |
Family
ID=14433206
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10642194A Expired - Fee Related JP3274566B2 (en) | 1994-05-20 | 1994-05-20 | Image coding device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3274566B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2214315A1 (en) * | 2009-01-30 | 2010-08-04 | Thomson Licensing | Method and device for encoding a bit sequence |
-
1994
- 1994-05-20 JP JP10642194A patent/JP3274566B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH07322071A (en) | 1995-12-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2794281B2 (en) | Code decoding processor for dither signal | |
| US6912318B2 (en) | Method and system for compressing motion image information | |
| CN1155221C (en) | Encoding method and system and decoding method and system | |
| JP4522199B2 (en) | Image encoding apparatus, image processing apparatus, control method therefor, computer program, and computer-readable storage medium | |
| US6631161B1 (en) | Method and system for compressing motion image information | |
| JP3274566B2 (en) | Image coding device | |
| US20060147120A1 (en) | Image processing method for facilitating data transmission | |
| EP1170956A2 (en) | Method and system for compressing motion image information | |
| JP2810363B2 (en) | Color image coding device | |
| JP2925043B2 (en) | Data decompression device | |
| JP2878600B2 (en) | Stepwise multi-tone image encoding device and decoding device | |
| JPH0937081A (en) | Image processing apparatus and method | |
| JPS6325749B2 (en) | ||
| KR900004962B1 (en) | Image transmission system | |
| JPH07162689A (en) | Picture encoding device | |
| JPH0787325A (en) | Image coding device | |
| JP2629239B2 (en) | Decoding device and decoding method | |
| JP2501027B2 (en) | Image transmission system | |
| JPH07123275A (en) | Picture coding unit | |
| JPS6325748B2 (en) | ||
| JP2001169118A (en) | Image processing apparatus and method, computer readable memory | |
| JPH05328143A (en) | Color piclture coding device | |
| JPH11187397A (en) | Fixed length encoding method and apparatus | |
| JPH09116765A (en) | Image data encoding method and apparatus | |
| JPH03163961A (en) | image compression device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080201 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090201 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100201 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110201 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120201 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130201 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130201 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140201 Year of fee payment: 12 |
|
| LAPS | Cancellation because of no payment of annual fees |