JPH10215380A - Image decoder and image decoding method - Google Patents

Image decoder and image decoding method

Info

Publication number
JPH10215380A
JPH10215380A JP3126197A JP3126197A JPH10215380A JP H10215380 A JPH10215380 A JP H10215380A JP 3126197 A JP3126197 A JP 3126197A JP 3126197 A JP3126197 A JP 3126197A JP H10215380 A JPH10215380 A JP H10215380A
Authority
JP
Japan
Prior art keywords
data
area
determination signal
character
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3126197A
Other languages
Japanese (ja)
Other versions
JP3432104B2 (en
Inventor
Yoshimichi Kanda
好道 神田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP03126197A priority Critical patent/JP3432104B2/en
Publication of JPH10215380A publication Critical patent/JPH10215380A/en
Application granted granted Critical
Publication of JP3432104B2 publication Critical patent/JP3432104B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce increment of a memory capacity for an area discrimination signal. SOLUTION: Image data read by a scanner 1201 are A/D-converted, image processing such as gamma conversion is conducted, a character area is discriminated with a character area discrimination part 1204 to output a discrimination signal of every pixel. A gradation processing part 1205 conducts gradation processing by switching the processing from the image data and the discrimination signal. In the case of outputting a decoded image after compressing and storing the image data, the image data and an area discrimination signal are compressed and stored. Then the image storage part 1206 extends the image data and the area discrimination signal to output. In this case, a signal changeover part is connected to positions A, D, and the image data after extension are supplied to an image output part and a phase output part and the area discrimination signal after extension is supplied to the phase output part 1209. The phase output part 1209 outputs phase data of every pixel from the image data and the area discrimination information. The image output part 1210 switches a phase for every image and prints out the image data based on the phase data to output the image.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、画像デー
タをブロック符号化により圧縮して格納する画像データ
格納部を有するデジタル複写装置や、画像ファイリング
システムにおいて、画像出力部で画質補正に利用する画
像領域判定信号も圧縮信号に組み込み記憶するようにす
るための技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital copying machine having an image data storage unit for compressing and storing image data by block coding and an image filing system, and is used for image quality correction in an image output unit. The present invention also relates to a technique for embedding and storing an image area determination signal in a compressed signal.

【0002】[0002]

【従来の技術】ディジタル複写機や、画像ファイリング
システム等の画像データをディジタル信号として取り扱
う画像処理装置がオフィスや家庭等において広く使用さ
れるようになっている。図1は、このような画像処理装
置のうち、ディジタル複写機の構成を簡単に表したもの
である。この図1に示すように、ディジタル複写機は、
スキャナ101、A/D変換部102、画像処理部10
3、画像出力部104を備えており、スキャナ101で
画像データを読み取り、A/D変換部102でデジタル
信号に変換し、画像処理部103でガンマ変換、画質補
正などの画像処理を行い、画像出力部104で画像デー
タを紙上に画素ごとに印字を行い、画像を出力するよう
になっている。
2. Description of the Related Art Image processing apparatuses that handle image data as digital signals, such as digital copying machines and image filing systems, have been widely used in offices and homes. FIG. 1 schematically shows the configuration of a digital copying machine among such image processing apparatuses. As shown in FIG. 1, the digital copying machine
Scanner 101, A / D conversion unit 102, image processing unit 10
3. An image output unit 104 is provided. The image data is read by the scanner 101, converted into a digital signal by the A / D conversion unit 102, and subjected to image processing such as gamma conversion and image quality correction by the image processing unit 103. The output unit 104 prints image data on paper for each pixel, and outputs an image.

【0003】図2は、画像出力部104の構成を表した
ものである。この図2に示すように、画像出力部104
では、画像処理部201からの信号を受けてLDユニッ
ト202からレーザが出力される。このレーザは、シリ
ンダレンズ203を通して、ポリゴンミラー204上で
反射され、ポリゴンミラー204での反射光が、光路差
補正用のfθレンズ205を通して感光体206上に照
射される。そして、ポリゴンミラー204を回転し、レ
ーザー光を走査することにより、1ラインずつ感光体2
06上に画像データが書き込まれる。
FIG. 2 shows a configuration of the image output unit 104. As shown in FIG. 2, the image output unit 104
Then, a laser is output from the LD unit 202 in response to a signal from the image processing unit 201. This laser is reflected on a polygon mirror 204 through a cylinder lens 203, and the light reflected on the polygon mirror 204 is irradiated on a photoconductor 206 through an fθ lens 205 for optical path difference correction. Then, by rotating the polygon mirror 204 and scanning with the laser beam, the photosensitive member 2 is line by line.
Image data is written on the address 06.

【0004】図3、図4、図5は、画素濃度の制御方法
について表したものである。通常、画素の濃度の制御
は、図3に示すように各画素の濃度の値に対して、レー
ザーの出力の幅を制御する信号のパルス幅を変えること
により行われている。ところで、図3に示した方式では
主走査に直行する細線や文字のエッジ部で画素が離れ、
ノイズとして目立つことになる。このような場合のノイ
ズを軽減する方法として、図4に示すように画素ごとに
位相情報を加え、画素の位置を変えることが行われてい
る。このノイズ軽減用の位相情報は、画像のエッジ部に
よって制御を変えるためのものなので、位相情報を付加
する画素D0の前後の画素(D−1)、D1の値を考慮
して付加している。すなわち、5図に示されるように、
位相情報を付加する画素D0の前後の画素(D−1)、
D1の値から、(D−1)−D1>64ならば位相は前
側、|(D−1)−D1|≦64なら位相は中央、(D
−1)−D1<−64なら位相は後側になるように、各
位相情報を付加している。
FIGS. 3, 4 and 5 show a method for controlling the pixel density. Normally, the control of the pixel density is performed by changing the pulse width of a signal for controlling the width of the laser output with respect to the density value of each pixel as shown in FIG. By the way, in the method shown in FIG. 3, pixels are separated from each other at an edge portion of a thin line or a character perpendicular to the main scanning.
It will stand out as noise. As a method for reducing noise in such a case, as shown in FIG. 4, phase information is added to each pixel to change the position of the pixel. Since the phase information for noise reduction is used to change the control depending on the edge of the image, it is added in consideration of the values of the pixels (D-1) and D1 before and after the pixel D0 to which the phase information is added. . That is, as shown in FIG.
Pixels (D-1) before and after the pixel D0 to which the phase information is added,
From the value of D1, if (D-1) -D1> 64, the phase is the front side, if | (D-1) -D1 | ≤64, the phase is the center, (D
-1) If -D1 <-64, each phase information is added so that the phase is on the rear side.

【0005】ところで、このようなデジタル複写機で
は、文字部以外の絵柄部や、網点部では少ない出力階調
数で疑似的に多く階調を見せるため、多値誤差拡散法や
多値ディザ法などの階調処理を用いることが一般的であ
る。このため、出力時に図4、図5で説明した位相処理
を行うと、線や文字画像部分に対しては、画質を向上さ
せることが出来るが、文字以外の絵柄部や網点部に対し
て位相処理を行なうと階調処理による画素の配列が崩
れ、逆に画質劣化の原因になるので位相情報は固定にし
た方がよい。そのため、線や文字画像部分では図5のよ
うに濃度情報により、位相を変える方式を採用し、それ
以外の階調処理が行われる絵柄部や網点部では、単純に
固定の位相でパルス幅を変える方式を採用する、という
ようにすなわち、出力すべき画像の内容によって方式を
切り替えることが必要になる。
In such a digital copying machine, a large number of gradations are shown with a small number of output gradations in a picture portion other than a character portion and a halftone dot portion. It is common to use a gradation process such as a method. Therefore, when the phase processing described with reference to FIGS. 4 and 5 is performed at the time of output, the image quality can be improved for lines and character image portions, but it can be improved for picture portions and halftone portions other than characters. If the phase processing is performed, the arrangement of the pixels due to the gradation processing is destroyed, which causes deterioration of the image quality. Therefore, it is better to fix the phase information. For this reason, the method of changing the phase based on the density information as shown in FIG. 5 is adopted in the line or character image portion, and the pulse width is simply fixed at a fixed phase in the picture portion or halftone portion where the gradation processing is performed. In other words, it is necessary to switch the method according to the content of the image to be output.

【0006】そこで画像の文字領域を判定することが必
要であり、画像処理部103(図1)において領域判定
を行い、その判定信号により、文字部とそれ以外の絵柄
部、網点部との処理を切り替える。図6は、画像処理部
103において、領域を判定する部分のブロック図を表
したものである。図7は、文字と絵柄、網点とからなる
画像データを例示したものである。図6に示すように、
画像信号は、文字領域判定部601と階調処理部602
に入力される。文字領域入力部601では、入力された
画像信号に対し、パターンマッチングなどを用いた領域
判定が行われ、図7に示すような文字領域702には領
域判定情報”1”を、それ以外の絵柄領域701を含む
領域には領域判定情報”0”を各画素ごとに付加する。
この各画素毎の領域判定情報は、階調処理部602と位
相出力部603に入力され、階調処理部602では階調
処理の切り替えを行い、位相出力部603では位相制御
の切り替えを行う。この位相出力部603の信号を元に
画像出力部604(104)では、位相を切り替えて画
像領域に最適な画像の出力を行う。
Therefore, it is necessary to determine the character area of the image, and the image processing unit 103 (FIG. 1) performs area determination. Switch processing. FIG. 6 is a block diagram illustrating a part for determining an area in the image processing unit 103. FIG. 7 exemplifies image data composed of characters, pictures, and halftone dots. As shown in FIG.
The image signal is sent to a character area determination unit 601 and a gradation processing unit 602.
Is input to The character area input unit 601 performs area determination on the input image signal using pattern matching or the like, and displays area determination information “1” in a character area 702 as shown in FIG. Region determination information “0” is added to the region including the region 701 for each pixel.
The area determination information for each pixel is input to the gradation processing unit 602 and the phase output unit 603, and the gradation processing unit 602 switches the gradation processing, and the phase output unit 603 switches the phase control. Based on the signal of the phase output unit 603, the image output unit 604 (104) switches the phase and outputs an image optimal for the image area.

【0007】ところで、デジタル信号として画像を扱う
複写機等では、メモリに画像を蓄えておくことが可能で
ある。画像データをメモリに蓄えることで、1度取り込
んだ画像を何度も再利用したり、また入出力のアドレス
を変え、画像の回転などの加工編集を行うことができ
る。ただし、画像の情報量は多く、そのままメモリに蓄
えると多くのメモリ容量が必要になり、メモリの単価は
高いことから、全体のコストが割高になってしまう。
By the way, in a copying machine or the like that handles an image as a digital signal, it is possible to store the image in a memory. By storing the image data in the memory, the image once captured can be reused many times, or the input / output address can be changed, and processing and editing such as image rotation can be performed. However, the amount of information of the image is large, and if it is stored in the memory as it is, a large amount of memory is required. Since the unit price of the memory is high, the overall cost becomes high.

【0008】よって画像データを圧縮して、メモリに蓄
えられれば、メモリ量が少なくてすみ、コストを抑える
ことができる。図8から図11は、画像データ圧縮方式
であるブロック符号化方式について表したものである。
ブロック符号化方式は、図8に示すように、画像をブロ
ックごとに分解してブロック内の1バイトの濃度値Lij
を、図9に示すアルゴリズムで平均値La(1バイ
ト)、階調幅指標La(1バイト)、画素ごとの階調量
子化符号φij(2ビット×16)にデータ量の圧縮を行
うものである。図9のQjは、復号時の量子化代表値
で、図10に示すように、各符号が復号時に割り当てら
れる濃度値である。この符号化方式により、図11に示
すように、画素1バイトの4×4画素ブロックのデータ
量16バイトが6バイトになり、3/8のデータ量に圧
縮することができる。
Therefore, if the image data is compressed and stored in the memory, the amount of memory can be reduced and the cost can be reduced. FIG. 8 to FIG. 11 show a block encoding system which is an image data compression system.
In the block coding method, as shown in FIG. 8, an image is decomposed into blocks and a 1-byte density value Lij in the block is divided.
Is compressed into an average value La (1 byte), a gradation width index La (1 byte), and a gradation quantization code φij (2 bits × 16) for each pixel by the algorithm shown in FIG. . Qj in FIG. 9 is a representative quantization value at the time of decoding, and as shown in FIG. 10, is a density value assigned to each code at the time of decoding. With this encoding method, as shown in FIG. 11, the data amount of 16 bytes of a 4 × 4 pixel block of 1 byte of pixels becomes 6 bytes, and the data amount can be compressed to /.

【0009】[0009]

【発明が解決しようとする課題】ところで、画像出力を
行う際に位相制御を行なうディジタル複写機や画像ファ
イリングシステム等の画像処理装置に、画像データ圧縮
を行ない、メモリに画像を格納する場合、圧縮された画
像データに加えて、文字領域等の領域判定情報を格納す
るための領域が必要になる。しかし、文字等の領域に関
する領域判定情報は、各画素毎に付けられるものである
ため、領域判定情報を格納するために増加すべきメモリ
量は、非常に大きなものになってしまうという問題があ
った。
When image data is compressed in an image processing apparatus such as a digital copying machine or an image filing system that performs phase control when outputting an image, and the image is stored in a memory, the compression is performed. In addition to the obtained image data, an area for storing area determination information such as a character area is required. However, since the area determination information relating to the area such as a character is attached to each pixel, there is a problem that the amount of memory to be stored for storing the area determination information becomes very large. Was.

【0010】そこで、本発明は、以上の説明した従来技
術の課題を解決するためになされたもので、領域判定信
号のためのメモリ量の増加量を少なくすることが可能な
画像復号装置及び画像復号方法を提供することを目的と
する。
Therefore, the present invention has been made to solve the above-mentioned problems of the prior art, and an image decoding apparatus and an image decoding apparatus capable of reducing an increase in the amount of memory for an area determination signal. It is an object to provide a decoding method.

【0011】[0011]

【課題を解決するための手段】請求項1に記載した発明
では、画像データを形成する多階調の画素データの各々
を所定数に分解してブロックデータを生成し、このブロ
ックデータの画素ごとの濃度データを2ビットの階調量
子化符号と平均データと階調幅指標からなる圧縮データ
に符号化する一方で、画像データが文字画像であるか否
かを判定し、この判定結果に基づいて画素毎に2値の領
域判定信号を出力し、この領域判定信号がブロックデー
タ内で全て文字領域の判定信号の場合は0を、ブロック
データ内で文字領域以外の判定信号を含む場合は1を前
記圧縮データの平均データと階調幅指標どちらか一方の
最下位ビットに挿入し、ブロックデータ内で文字領域以
外の判定信号を含む場合は、2ビットの階調量子化符号
の下位ビットに画素毎の領域判定信号を挿入することに
より生成された文字画像の領域情報を含む符号データを
復号する装置であって、前記符号データの平均データま
たは、階調幅指標で情報が挿入された方の最下位ビット
を識別して、ブロックデータ内で文字領域のみのデータ
を含むか否かを識別する符号識別手段と、前記符号識別
手段で文字領域のみを含むと識別されたときは、領域判
定信号を全て文字領域の判定信号とし、文字領域以外の
領域を含むと識別したときは、2ビットの階調量子化符
号の下位ビットを領域判定信号とし、前記下位ビット
は、0に置き換える符号データ、領域判定信号分離手段
と、前記符号データ、領域判定信号分離手段で分離され
た符号データである平均データと階調幅指標と2ビット
の階調量子化符号を画素毎の濃度データに復号する復号
手段と、画像復号装置に具備させて前記目的を達成す
る。請求項に記載の発明では、画像データを形成する多
階調の画素データの各々を所定数に分解してブロックデ
ータを生成し、このブロックデータの画素ごとの濃度デ
ータを2ビットの階調量子化符号と平均データと階調幅
指標からなる圧縮データに符号化する一方で、画像デー
タが文字画像であるか否かを判定し、この判定結果に基
づいて画素毎に2値の領域判定信号を出力し、この領域
判定信号がブロックデータ内で文字領域以外の判定信号
を含む場合は0を、ブロックデータ内で全て文字領域の
みの判定信号を含む場合は1を前記圧縮データの平均デ
ータと階調幅指標どちらか一方の最下位ビットに挿入
し、ブロックデータ内で文字領域以外の判定信号を含む
場合は、2ビットの階調量子化符号の下位ビットに画素
毎の領域判定信号を挿入することにより生成された文字
画像の領域情報を含む符号データを復号する装置であっ
て、前記符号データの平均データまたは、階調幅指標で
情報が挿入された方の最下位ビットを識別して、ブロッ
クデータ内で文字領域以外のデータを含むか否かを識別
する符号識別手段と、前記符号識別手段で文字領域以外
の領域を含むと識別されたときは、領域判定信号を全て
文字領域以外の判定信号とし、文字領域の信号を含むと
識別したときは、2ビットの階調量子化符号の下位ビッ
トを領域判定信号とし、前記下位ビットは、0に置き換
える符号データ、領域判定信号分離手段と、前記符号デ
ータ、領域判定信号分離手段で分離された符号データで
ある平均データと階調幅指標と2ビットの階調量子化符
号を画素毎の濃度データに復号する復号手段と、画像復
号装置に具備させて前記目的を達成する。請求項3に記
載の発明では、画像データを形成する多階調の画素デー
タの各々を所定数に分解してブロックデータを生成し、
このブロックデータの画素ごとの濃度データを2ビット
の階調量子化符号と平均データと階調幅指標からなる圧
縮データに符号化する一方で、画像データが文字画像で
あるか否かを判定し、この判定結果に基づいて画素毎に
2値の領域判定信号を出力し、この領域判定信号がブロ
ックデータ内で全て文字領域の判定信号の場合は2ビッ
トの信号00を、ブロックデータ内で全て文字領域以外
の判定信号の場合は2ビットの信号01を、ブロックデ
ータ内で文字領域と文字領域以外の判定信号が混在する
場合は2ビットの信号11を前記圧縮データの平均デー
タと階調幅指標どちらか一方の下位2ビット、または、
平均データと階調幅指標の両方の最下位ビットに1ビッ
トづつ分けて挿入し、ブロックデータ内で文字領域と文
字領域以外の判定信号が混在する場合は、階調量子化符
号の下位ビットに画素毎の領域判定信号を挿入すること
により生成された文字画像の領域情報を含む符号データ
を復号する装置であって、前記符号データの平均データ
または、階調幅指標に含まれる2ビットの信号を識別し
て、ブロックデータ内で全て文字領域のみか、全く文字
領域を含まないか、文字領域と文字領域以外のデータが
混在するかを識別する符号識別手段と、前記符号識別手
段で全て文字領域のみを含むと識別されたときは、領域
判定信号を全て文字領域のみの判定信号とし、全く文字
領域を含まないと識別されたときは、領域判定信号を全
て文字領域以外のみの判定信号とし、文字領域とそれ以
外の領域が混在すると識別したときは、2ビットの階調
量子化符号の下位ビットを領域判定信号とし、前記下位
ビットは、0に置き換える符号データ、領域判定信号分
離手段と、前記符号データ、領域判定信号分離手段で分
離された符号データである平均データと階調幅指標と2
ビットの階調量子化符号を画素毎の濃度データに復号す
る復号手段と、画像復号装置に具備させて前記目的を達
成する。請求項4に記載の発明では、画像データを形成
する多階調の画素データの各々を所定数に分解してブロ
ックデータを生成し、このブロックデータの画素ごとの
濃度データを2ビットの階調量子化符号と平均データと
階調幅指標からなる圧縮データに符号化する一方で、画
像データが文字画像であるか否かを判定し、この判定結
果に基づいて画素毎に2値の領域判定信号を出力し、こ
の領域判定信号がブロックデータ内で全て文字領域の判
定信号の場合は0を、ブロックデータ内で文字領域以外
の判定信号を含む場合は1を前記圧縮データの平均デー
タと階調幅指標どちらか一方の最下位ビットに挿入し、
ブロックデータ内で文字領域以外の判定信号を含む場合
は、2ビットの階調量子化符号の下位ビットに画素毎の
領域判定信号を挿入することにより生成された文字画像
の領域情報を含む符号データを復号する方法であって、
前記符号データの平均データまたは、階調幅指標で情報
が挿入された方の最下位ビットを符号識別手段でブロッ
クデータ内で文字領域のみのデータを含むか否かを識別
し、前記符号識別手段で文字領域のみを含むと識別され
たときは、符号データ、領域判定信号分離手段で領域判
定信号を全て文字領域の判定信号とし、文字領域以外の
領域を含むと識別したときは、2ビットの階調量子化符
号の下位ビットを領域判定信号とし、前記下位ビット
は、0に置き換え、前記符号データ、領域判定信号分離
手段で分離された符号データである平均データと階調幅
指標と2ビットの階調量子化符号を復号手段で画素毎の
濃度データに復号する、ことで前記目的を達成する。請
求項5に記載の発明では、画像データを形成する多階調
の画素データの各々を所定数に分解してブロックデータ
を生成し、このブロックデータの画素ごとの濃度データ
を2ビットの階調量子化符号と平均データと階調幅指標
からなる圧縮データに符号化する一方で、画像データが
文字画像であるか否かを判定し、この判定結果に基づい
て画素毎に2値の領域判定信号を出力し、この領域判定
信号がブロックデータ内で文字領域以外の判定信号を含
む場合は0を、ブロックデータ内で全て文字領域のみの
判定信号を含む場合は1を前記圧縮データの平均データ
と階調幅指標どちらか一方の最下位ビットに挿入し、プ
ロックデータ内で文字領域以外の判定信号を含む場合
は、2ビットの階調量子化符号の下位ビットに画素毎の
領域判定信号を挿入することにより生成された文字画像
の領域情報を含む符号データを復号する方法であって、
前記符号データの平均データまたは、階調幅指標で情報
が挿入された方の最下位ビットを符号識別手段でブロッ
クデータ内で文字領域以外のデータを含むか否かを識別
し、前記符号識別手段で文字領域以外の領域を含むと識
別されたときは、符号データ、領域判定信号分離手段で
領域判定信号を全て文字領域以外の判定信号とし、文字
領域の信号を含むと識別したときは、2ビットの階調量
子化符号の下位ビットを領域判定信号とし、前記下位ビ
ットは、0に置き換え、前記符号データ、領域判定信号
分離手段で分離された符号データである平均データと階
調幅指標と2ビットの階調量子化符号を復号手段で画素
毎の濃度データに復号する、ことで前記目的を達成す
る。請求項6に記載の発明では、画像データを形成する
多階調の画素データの各々を所定数に分解してブロック
データを生成し、このブロックデータの画素ごとの濃度
データを2ビットの階調量子化符号と平均データと階調
幅指標からなる圧縮データに符号化する一方で、画像デ
ータが文字画像であるか否かを判定し、この判定結果に
基づいて画素毎に2値の領域判定信号を出力し、この領
域判定信号がブロックデータ内で全て文字領域の判定信
号の場合は2ビットの信号00を、ブロックデータ内で
全て文字領域以外の判定信号の場合は2ビットの信号0
1を、ブロックデータ内で文字領域と文字領域以外の判
定信号が混在する場合は2ビットの信号11を前記圧縮
データの平均データと階調幅指標どちらか一方の下位2
ビット、または、平均データと階調幅指標の両方の最下
位ビットに1ビットづつ分けて挿入し、ブロックデータ
内で文字領域と文字領域以外の判定信号が混在する場合
は、階調量子化符号の下位ビットに画素毎の領域判定信
号を挿入することにより生成された文字画像の領域情報
を含む符号データを復号する方法であって、前記符号デ
ータの平均データまたは、階調幅指標に含まれる2ビッ
トの信号を符号識別手段で識別して、ブロックデータ内
で全て文字領域のみか、全く文字領域を含まないか、文
字領域と文字領域以外のデータが混在するかを識別し、
前記符号識別手段で全て文字領域のみを含むと識別され
たときは、符号データ、領域判定信号分離手段で領域判
定信号を全て文字領域のみの判定信号とし、全く文字領
域を含まないと識別されたときは、領域判定信号を全て
文字領域以外のみの判定信号とし、文字領域とそれ以外
の領域が混在すると識別したときは、2ビットの階調量
子化符号の下位ビットを領域判定信号とし、前記下位ビ
ットは、0に置き換え、前記符号データ、領域判定信号
分離手段で分離された符号データである平均データと階
調幅指標と2ビットの階調量子化符号を復号手段で画素
毎の濃度データに復号する、ことで前記目的を達成す
る。
According to the present invention, block data is generated by decomposing each of the multi-gradation pixel data forming the image data into a predetermined number, and each pixel of the block data is generated. Is encoded into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index, and it is determined whether or not the image data is a character image, and based on the determination result, A binary area determination signal is output for each pixel. If the area determination signal is a determination signal of a character area in the block data, 0 is set. If the block data includes a determination signal other than the character area in the block data, 1 is set. If the block data contains a determination signal other than the character area in the block data, it is inserted in the lower bit of the 2-bit gradation quantization code by inserting it into the least significant bit of either the average data of the compressed data or the gradation width index. An apparatus for decoding code data including area information of a character image generated by inserting an area determination signal for each character, comprising: Code identifying means for identifying lower bits and identifying whether or not the block data includes only data of a character area. When the code identifying means identifies that the data includes only a character area, an area determination signal is transmitted. If all are determined to be character area determination signals, and if it is determined that an area other than the character area is included, the lower bits of the 2-bit gradation quantization code are used as the area determination signal, and the lower bits are replaced with code data and area. A determination signal separating means, average data which is code data separated by the code data and area determination signal separating means, a gradation width index, and a 2-bit gradation quantization code for each pixel; Decoding means for decoding, it is provided in the image decoding apparatus to achieve the above objectives. According to the invention described in the claims, each of the multi-gradation pixel data forming the image data is decomposed into a predetermined number to generate block data, and the density data for each pixel of the block data is converted into 2-bit gradation quantum data. While encoding into compressed data consisting of an encoded code, average data, and a gradation width index, it is determined whether or not the image data is a character image, and a binary area determination signal for each pixel is determined based on the determination result. If the area determination signal includes a determination signal other than the character area in the block data, 0 is set, and if the block data includes a determination signal of only the character area in the block data, 1 is set. If the determination signal other than the character area is included in the block data, the area determination signal for each pixel is inserted into the lower bit of the 2-bit gradation quantization code. An apparatus for decoding code data including area information of a character image generated by performing the above-described processing, wherein the average data of the code data or the least significant bit in which the information is inserted with the gradation width index is identified. Code identification means for identifying whether or not data other than a character area is included in the block data, and when the code identification means identifies that the data area includes an area other than the character area, all the area determination signals are sent out of the character area. When it is determined that the signal includes a character area signal, the lower bits of the 2-bit gradation quantization code are used as an area determination signal, and the lower bits are code data to be replaced with 0, and area determination signal separation means. A decoding means for decoding the code data, the average data which is the code data separated by the area determination signal separating means, the gradation width index, and the 2-bit gradation quantization code into density data for each pixel. If, to achieve the object by comprising the image decoding apparatus. In the invention according to claim 3, each of the multi-gradation pixel data forming the image data is decomposed into a predetermined number to generate block data,
While the density data for each pixel of the block data is encoded into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index, it is determined whether the image data is a character image, A binary area determination signal is output for each pixel based on this determination result. If the area determination signal is a determination signal for a character area in the block data, a 2-bit signal 00 is output. The 2-bit signal 01 is used for the determination signal other than the area, and the 2-bit signal 11 is used for the mixed data including the character area and the non-character area in the block data. One of the lower 2 bits, or
The bit is inserted into the least significant bit of both the average data and the gradation width index one bit at a time. An apparatus for decoding code data including area information of a character image generated by inserting an area determination signal for each character, and identifying an average data of the code data or a 2-bit signal included in a gradation width index. A code identifying means for identifying whether the block data includes only a character area, does not include a character area at all, or includes a character area and data other than a character area; When it is determined that all the area determination signals include the character area only, the area determination signal is determined to include only the character area. If it is determined that the character area and the other area are mixed, the lower bits of the 2-bit gradation quantization code are used as the area determination signal, and the lower bits are code data to be replaced with 0. Signal separating means, average data, which is code data separated by the code data and area determination signal separating means, and a gradation width index;
The object is achieved by providing a decoding means for decoding a bit gradation quantization code into density data for each pixel and an image decoding apparatus. According to the present invention, block data is generated by decomposing each of the multi-gradation pixel data forming the image data into a predetermined number, and the density data for each pixel of the block data is converted into 2-bit gradation data. While encoding into compressed data including the quantization code, the average data, and the gradation width index, it is determined whether or not the image data is a character image, and a binary area determination signal for each pixel is determined based on the determination result. Is output, and when the area determination signal is a determination signal of a character area in the block data, 0 is set, and when the block data includes a determination signal of a non-character area in the block data, 1 is set. Insert into the least significant bit of either indicator,
If the block data includes a determination signal other than a character region, code data including region information of a character image generated by inserting a region determination signal for each pixel into lower bits of a 2-bit gradation quantization code A method of decrypting
The average data of the code data or the least significant bit in which the information is inserted with the gradation width index is identified by the code identification means as to whether or not the block data includes data of only the character area, and the code identification means. If it is determined that only the character area is included, the code data and the area determination signal separating means use all the area determination signals as the determination signal of the character area. The lower bits of the tone quantization code are used as an area determination signal, and the lower bits are replaced with 0, and the code data, average data which is code data separated by the area determination signal separation means, a gradation width index, and a 2-bit scale are used. The above object is achieved by decoding the tone quantization code into density data for each pixel by a decoding means. According to the fifth aspect of the present invention, each of the multi-gradation pixel data forming the image data is decomposed into a predetermined number to generate block data, and the density data for each pixel of the block data is converted into 2-bit gradation data. While encoding into compressed data including the quantization code, the average data, and the gradation width index, it is determined whether or not the image data is a character image, and a binary area determination signal for each pixel is determined based on the determination result. Is output, and when the area determination signal includes a determination signal other than the character area in the block data, 0 is set. If the block width data is inserted into one of the least significant bits of the tone width index and the block data includes a determination signal other than the character area, the area determination signal for each pixel is inserted into the lower bit of the 2-bit tone quantization code. A method of decoding encoded data including the area information of the generated character image by,
The average data of the code data or the least significant bit in which the information is inserted by the gradation width index is used to identify whether or not the block data includes data other than the character area in the block data. If it is determined that the region includes a region other than the character region, the code data is determined by the region determination signal separating means as a determination signal other than the character region. The lower bits of the gradation quantization code are used as an area determination signal, and the lower bits are replaced with 0, and the code data, average data that is code data separated by the area determination signal separation means, a gradation width index, and 2 bits The above object is achieved by decoding the gradation quantization code of (1) into density data for each pixel by a decoding means. According to the sixth aspect of the present invention, each of the multi-gradation pixel data forming the image data is decomposed into a predetermined number to generate block data, and the density data for each pixel of the block data is converted into 2-bit gradation data. While encoding into compressed data including the quantization code, the average data, and the gradation width index, it is determined whether or not the image data is a character image, and a binary area determination signal for each pixel is determined based on the determination result. Is output. If the area determination signal is a determination signal for all character areas in the block data, a 2-bit signal 00 is output.
If the block data includes a character area and a determination signal other than the character area in the block data, the 2-bit signal 11 is set to the lower 2 bits of either the average data of the compressed data or the gradation width index.
If the bit or the least significant bit of both the average data and the gradation width index is inserted one bit at a time, and if the block data includes a character area and a judgment signal other than the character area, the gradation quantization code A method for decoding code data including region information of a character image generated by inserting a region determination signal for each pixel into lower bits, wherein the average data of the code data or two bits included in a gradation width index are included. Is identified by the code identification means, and all the character area only in the block data, or no character area is included, or character area and data other than the character area are identified.
When the code identifying means is identified as including only the character area only, the code data, the area determination signal separating means determines the area determination signal as the determination signal of only the character area, and is determined not to include the character area at all. When the area determination signal is determined to be a determination signal for only the area other than the character area, and when it is determined that the character area and the other area are mixed, the lower bits of the 2-bit gradation quantization code are defined as the area determination signal, The lower bits are replaced with 0, and the decoding means converts the above-mentioned code data, the average data which is the code data separated by the area determination signal separation means, the gradation width index, and the 2-bit gradation quantization code into density data for each pixel. The above purpose is achieved by decoding.

【0012】[0012]

【発明の実施の形態】以下、本発明の画像復号装置及び
画像復号方法をディジタル複写機に適用した場合の実施
形態について図12ないし図22を参照して詳細に説明
する。 (1)実施形態の概要 本実施形態では、領域判定信号をブロック符号化方式に
よる画像圧縮データに組み込み、領域判定信号のデータ
量を吸収することで、領域判定情報を格納する場合のメ
モリ量の増加を抑えるものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which an image decoding apparatus and an image decoding method according to the present invention are applied to a digital copying machine will be described below in detail with reference to FIGS. (1) Overview of Embodiment In this embodiment, the area determination signal is incorporated into the image compression data by the block coding method, and the data amount of the area determination signal is absorbed to reduce the amount of memory for storing the area determination information. It is to suppress the increase.

【0013】(2)実施形態の詳細 (a)第1の実施形態 本実施形態は復号に関するものであるが、説明の都合
上、復号する元となる符号データを生成する符号化方法
について最初に説明する。図12はデジタル複写装置の
構成をブロックを用いて表したものである。最初に、画
像格納部1206に画像を格納しないでそのまま出力す
る場合について説明する。まずスキャナ1201で画像
データを読み込み、A/D変換部1202でデジタル信
号に変換し、画像処理部1203でガンマ変換などの画
像処理を行い、文字領域領域判定部1204及び階調処
理部1205に供給する。文字領域判定部1204で
は、供給された画像データから、文字領域を判定し、そ
の各画素毎の判定信号を階調処理部1205、画像格納
部1206、及び信号切り替え部1208に供給する。
階調処理部1205では、供給される画像処理後の画像
データと、判定信号とから、階調処理を切り替えて階調
処理を行い、画像格納部1206と、信号切り替え部1
270に供給する。なお、画像格納部1206では、画
像を格納しない場合なので、特に供給された画像データ
と判定信号の格納処理は行われない。
(2) Details of Embodiment (a) First Embodiment This embodiment relates to decoding, but for convenience of explanation, an encoding method for generating encoded data to be decoded will first be described. explain. FIG. 12 shows the configuration of a digital copying apparatus using blocks. First, a case in which an image is output without being stored in the image storage unit 1206 will be described. First, image data is read by a scanner 1201, converted into a digital signal by an A / D converter 1202, subjected to image processing such as gamma conversion by an image processor 1203, and supplied to a character area / area determiner 1204 and a gradation processor 1205. I do. The character area determination unit 1204 determines a character area from the supplied image data, and supplies a determination signal for each pixel to the gradation processing unit 1205, the image storage unit 1206, and the signal switching unit 1208.
The gradation processing unit 1205 performs gradation processing by switching gradation processing based on the supplied image data after image processing and the determination signal, and performs image processing unit 1206 and signal switching unit 1
270. Since the image storage unit 1206 does not store an image, the storage processing of the supplied image data and the determination signal is not particularly performed.

【0014】ここで、画像格納部1206に画像を格納
しないので、信号切り替え部1207をBに切り替え、
信号切り替え部1208をC側に接続する。これによ
り、画像出力部1210及び位相出力部1209には、
階調処理部1205からの画像データが供給される。位
相出力部1209には、領域判定部1204で求められ
た文字領域を識別する領域判定信号が直接供給され、こ
の領域判定情報と画像データとにより、各画素毎の位相
データを作成して、出力画像出力部1210に供給す
る。位相データの作成は、例えば、図5で説明した方法
により、注目画素D0の前後の画素(D−1)、D1か
ら作成する。画像出力部1210では、階調処理部12
05から供給される画像データを、位相出力部1209
から供給される位相データに基づいて、各画像毎に位相
を切り替えて印字を行い、画像を出力する。
Here, since no image is stored in the image storage unit 1206, the signal switching unit 1207 is switched to B,
The signal switching unit 1208 is connected to the C side. Thereby, the image output unit 1210 and the phase output unit 1209 have:
Image data is supplied from the gradation processing unit 1205. The phase output unit 1209 is directly supplied with an area determination signal for identifying the character area obtained by the area determination unit 1204, and creates phase data for each pixel based on the area determination information and the image data, and outputs the phase data. It is supplied to the image output unit 1210. The phase data is created from the pixels (D-1) and D1 before and after the target pixel D0, for example, by the method described with reference to FIG. In the image output unit 1210, the gradation processing unit 12
Image data supplied from the phase output unit 1209
The printing is performed by switching the phase for each image based on the phase data supplied from the printer, and the image is output.

【0015】次に画像格納部1206に画像データを圧
縮して格納し、復号して画像を出力する場合について説
明する。この場合、スキャナ1201で読み込んだ画像
データを画像出力部から最初に出力する場合の動作は、
画像データを格納しない場合と同様に行われる。すなわ
ち、信号切り替え部1207、1208はB、C側に接
続され、階調処理部125からの画像データに基づいて
印字が行われ、画像を出力する。この処理と並行して、
画像格納部1206では、後述の方法により、階調処理
部1205から供給される画像データと、文字領域判定
部1204から供給される領域判定信号が圧縮されて記
憶される。1ページ分の情報が格納されると、画像格納
部1206では、画像データと領域判定信号が伸張され
た後に出力される。
Next, a case where image data is compressed and stored in the image storage unit 1206, decoded, and an image is output will be described. In this case, the operation when the image data read by the scanner 1201 is first output from the image output unit is:
This is performed in the same manner as when no image data is stored. That is, the signal switching units 1207 and 1208 are connected to the B and C sides, perform printing based on the image data from the gradation processing unit 125, and output an image. In parallel with this process,
In the image storage unit 1206, the image data supplied from the gradation processing unit 1205 and the area determination signal supplied from the character area determination unit 1204 are compressed and stored by a method described later. When the information of one page is stored, the image storage unit 1206 outputs the image data and the area determination signal after being expanded.

【0016】このとき信号切り替え部127、128は
A、D側に接続され、画像格納部1206で伸張された
後の画像データが信号切り替え部1207を介して画像
出力部1210と位相出力部1209に供給され、伸張
後の領域判定信号が信号切り替え部128を介して位相
出力部1209に供給される。位相出力部1209で
は、画像格納部1206から供給される、画像データと
領域判定情報とから、各画素毎の位相データを作成し
て、出力画像出力部1210に供給する。画像出力部1
210では、画像格納部1206から供給される画像デ
ータを、位相出力部1209から供給される位相データ
に基づいて、各画像毎に位相を切り替えて印字を行い、
画像を出力する。
At this time, the signal switching units 127 and 128 are connected to the A and D sides, and the image data expanded by the image storage unit 1206 is transmitted to the image output unit 1210 and the phase output unit 1209 via the signal switching unit 1207. The supplied and expanded region determination signal is supplied to the phase output unit 1209 via the signal switching unit 128. The phase output unit 1209 creates phase data for each pixel from the image data and the area determination information supplied from the image storage unit 1206, and supplies the phase data to the output image output unit 1210. Image output unit 1
In 210, the image data supplied from the image storage unit 1206 is printed by switching the phase for each image based on the phase data supplied from the phase output unit 1209.
Output an image.

【0017】次に、画像格納部1206において符号デ
ータと領域判定信号を合成する、本実施形態の特徴部分
について、図13により詳細に説明する。この図13に
示すように、画像格納部1206において階調処理部1
205から供給される画像データは、4ラインFIFO
1301で1度4ライン分のデータが格納された後、符
号化部1302において4×4画素ブロックごとに符号
化され、La、Ld、φijのデータが出力され、領域判
定信号合成部1304に供給される。一方、文字領域判
定部1204から供給される領域判定信号は、2値4ラ
インFIFO1303に4ライン分の信号が格納されて
から、領域判定信号合成部1304に4×4画素ブロッ
ク毎の領域判定信号が格納された後、領域判定信号合成
部1304に供給される。
Next, a characteristic part of the present embodiment in which the code data and the area determination signal are combined in the image storage unit 1206 will be described in detail with reference to FIG. As shown in FIG. 13, in the image storage unit 1206, the gradation processing unit 1
The image data supplied from 205 is a 4-line FIFO
After the data for four lines is stored once in 1301, the data is encoded for each 4 × 4 pixel block in the encoding unit 1302, and the data of La, Ld, and φij are output and supplied to the area determination signal combining unit 1304. Is done. On the other hand, the area determination signal supplied from the character area determination unit 1204 is stored in the binary 4-line FIFO 1303 for four lines, and then is input to the area determination signal synthesis unit 1304 by the area determination signal for each 4 × 4 pixel block. Is supplied to the area determination signal combining unit 1304.

【0018】領域判定信号合成部1304では、4×4
ブロック毎の領域判定信号が、ブロック単位に符号化部
1302から供給される画像データと合成される。領域
判定信号と画像データとの合成は、4×4画素のブロッ
ク毎に行われ、その方法は、図15に示すように、4×
4のますの中が領域判定信号として文字領域の領域信号
を1、それ以外の領域の領域信号を0とし、図15
(A)のように4×4画素のブロックで全て文字領域の
場合は、ブロック内領域情報ビットb0=0とし、この
場合、画素ごとの2ビットの階調量子化符号φijは、そ
のままメモリに格納される。また、図15(B)のよう
に4×4画素のブロックでブロック内の領域信号は非文
字領域を含む場合は、ブロック内領域情報ビットb0=
1とし、画素ごとの2ビットの階調量子化符号φijの下
位1ビットは、対応する位置の領域判定信号に差し替え
られる。ブロック内領域情報ビットb0は、Laまたは
Ldの1バイトの最下位ビットに図14に示すように格
納される。このようにして領域判定信号を挿入すること
で、データ量を増やすことなく、符号データに領域信号
を合成してメモリ1305に格納することができる。
In the area determination signal synthesis unit 1304, 4 × 4
The area determination signal for each block is combined with the image data supplied from the encoding unit 1302 for each block. The synthesis of the area determination signal and the image data is performed for each block of 4 × 4 pixels, and the method is as shown in FIG.
In FIG. 15, the area signal of the character area is set to 1 and the area signal of the other areas is set to 0 as the area determination signal in the square of FIG.
In the case of a block of 4 × 4 pixels and all character regions as in (A), the region information bit b0 in the block is set to 0. In this case, the 2-bit gradation quantization code φij for each pixel is directly stored in the memory. Is stored. Further, as shown in FIG. 15B, in the case of a block of 4 × 4 pixels and the area signal in the block includes a non-character area, the area information bit b0 in the block =
The lower one bit of the 2-bit gradation quantization code φij for each pixel is replaced with the area determination signal at the corresponding position. The intra-block area information bit b0 is stored in the least significant bit of one byte of La or Ld as shown in FIG. By inserting the area determination signal in this manner, the area signal can be combined with the code data and stored in the memory 1305 without increasing the data amount.

【0019】このように生成された符号を、画像格納部
1206において復号する場合について、図16を用い
て説明する。この図16に示すように、復号するとき
は、メモリ1605(1305)から領域判定信号の情
報を含んだブロック毎の符号データを読み出し、領域判
定信号分離部1604で符号データと領域判定信号に分
離する。図17は、領域判定信号分離部1604におけ
る領域判定信号の分離処理の動作を表したフローチャー
トである。この図17に示されるように、まず、領域判
定信号分離部1604は、メモリ1605から符号デー
タを6バイト単位で読み出す(ステップ1701)。つ
ぎにLaまたはLdの最下位ビットに格納されたブロッ
ク内領域情報ビットb0を参照し(ステップ170
2)、b0=1ならば(ステップ1702;yes)、
φijの下位ビットを領域判定信号として分離し(ステッ
プ1703)、その後φijの下位ビットに0を挿入する
(ステップ1704)。一方、LaまたはLdの最下位
ビットに格納されたブロック内領域情報ビットb0がb
0=0のとき(ステップ1702;no)は、φijはそ
のままにして、ブロック内の領域判定信号を全て文字領
域であることを示す1にする(ステップ1705)。
A case where the code generated in this way is decoded in the image storage unit 1206 will be described with reference to FIG. As shown in FIG. 16, when decoding, the code data for each block including the information of the area determination signal is read from the memory 1605 (1305), and the area determination signal separation unit 1604 separates the code data and the area determination signal. I do. FIG. 17 is a flowchart showing the operation of the area determination signal separation processing in area determination signal separation section 1604. As shown in FIG. 17, first, the area determination signal separation unit 1604 reads the code data from the memory 1605 in units of 6 bytes (step 1701). Next, the in-block area information bit b0 stored in the least significant bit of La or Ld is referred to (step 170).
2) If b0 = 1 (step 1702; yes),
The lower bits of φij are separated as an area determination signal (step 1703), and then 0 is inserted into the lower bits of φij (step 1704). On the other hand, if the intra-block area information bit b0 stored in the least significant bit of La or Ld is b
When 0 = 0 (step 1702; no), φij is left as it is, and the area determination signal in the block is set to 1 indicating that all the areas are character areas (step 1705).

【0020】このようにして領域判定信号分離部160
4において、符号データと領域判定信号を分離した後、
符号データは、復号部1602でブロック毎の画像デー
タに復号され、4ラインFIFO1601に蓄えられ、
主走査4ライン単位に画像データが並べられる。領域判
定信号分離部1604で分離された領域判定信号は、2
値4ラインFIFO1603に1度蓄えられ、画像デー
タに対応して出力される。
In this manner, the area determination signal separating section 160
In 4, after separating the code data and the area determination signal,
The code data is decoded into image data for each block by a decoding unit 1602, and stored in a 4-line FIFO 1601.
Image data is arranged in units of four lines of main scanning. The area determination signal separated by the area determination signal separation unit 1604 is 2
The value is stored once in the 4-line FIFO 1603 and output in correspondence with the image data.

【0021】このようにして第1の実施形態によれば、
領域判定信号を合成された符号データを復号して、領域
判定信号を参照して各領域に通した画像処理をすること
で良好な画像が得られる。また、符号データのLaまた
はLdの最下位ビットに領域判定信号が格納されるの
で、復号画像に対する影響はほとんどない。ただし、こ
の方法によると4×4画素のブロックでブロック内の領
域信号は非文字領域を含む場合、階調量子化符号φijが
1ビットの情報しか持たなくなるので文字以外の部分の
画質が少し劣化する可能性があり、文字の画質を優先し
た方法といえる。
As described above, according to the first embodiment,
A good image can be obtained by decoding the code data obtained by synthesizing the area determination signal and performing image processing through each area with reference to the area determination signal. Further, since the area determination signal is stored in the least significant bit of La or Ld of the code data, there is almost no effect on the decoded image. However, according to this method, when the area signal in the block is a 4 × 4 pixel block and includes a non-character area, the gradation quantization code φij has only 1-bit information, so that the image quality of a part other than the character is slightly degraded. This is a method that gives priority to the image quality of characters.

【0022】(b)第2の実施形態 この第2の実施形態では、文字以外の画質を優先する方
法に関するものである。まず、符号化方法において文字
の画質を優先する第1の実施形態と異なるのは、領域判
定信号合成部1304の処理のみなのでその部分のみ説
明する。領域判定信号合成部1304における領域判定
信号と画像データとの合成は、図18に示されるよう
に、4×4のますの中が領域判定信号として文字領域の
領域信号を1、それ以外の領域の領域信号を0とし、図
18(A)のように4×4画素のブロックで全て非文字
領域の場合は、ブロック内領域情報ビットb0=0と
し、この場合、画素ごとの2ビットの階調量子化符号φ
ijは、そのままメモリに格納される。また、図18
(B)のように4×4画素のブロックでブロック内の領
域信号は文字領域を含む場合は、ブロック内領域情報ビ
ットb0=1とし、画素ごとの2ビットの階調量子化符
号φijの下位1ビットは、対応する位置の領域判定信号
に差し替えられる。ブロック内領域情報ビットb0は、
LaまたはLdの1バイトの最下位ビットに図14に示
すように格納される。このようにして領域判定信号を挿
入することで、データ量を増やすことなく、符号データ
に領域信号を合成することができる。
(B) Second Embodiment The second embodiment relates to a method of giving priority to image quality other than characters. First, the encoding method differs from the first embodiment in which the image quality of characters is prioritized only in the processing of the area determination signal combining unit 1304, and therefore only that part will be described. As shown in FIG. 18, in the area determination signal synthesis unit 1304, the area determination signal and the image data are combined as shown in FIG. Is set to 0, and in the case of a block of 4 × 4 pixels and all non-character areas as shown in FIG. 18A, the area information bit b0 in the block is set to b0 = 0. Key quantization code φ
ij is stored in the memory as it is. FIG.
When the area signal in the block includes a character area in a block of 4 × 4 pixels as in (B), the area information bit b0 in the block is set to 1 and the lower order of the 2-bit gradation quantization code φij for each pixel is set. One bit is replaced with the area determination signal at the corresponding position. The intra-block area information bit b0 is
It is stored in the least significant bit of one byte of La or Ld as shown in FIG. By inserting the area determination signal in this manner, the area signal can be combined with the code data without increasing the data amount.

【0023】このように生成された符号を、画像格納部
1206において復号する場合について説明する。この
第2の実施形態による復号処理において、文字の画質を
優先する第1の実施形態と異なるのは、図16に示す領
域判定信号分離部1604のみなので、第2の実施形態
における領域判定信号分離処理について説明する。図1
9は、領域判定信号分離部1604における領域判定信
号の分離処理の動作を表したフローチャートである。ま
ず、領域判定信号分離部1604は、メモリ1605か
ら符号データを6バイト単位で読み出す(ステップ19
01)。つぎにLaまたはLdの最下位ビットに格納さ
れたブロック内領域情報ビットb0を参照し(ステップ
1902)、b0=1ならば(ステップ1902;ye
s)、φijの下位ビットを領域判定信号として分離し
(ステップ1903)、その後φijの下位ビットに0を
挿入する(ステップ1904)。一方、b0=0のとき
(ステップ1902;no)は、φijはそのままにし
て、ブロック内の領域判定信号を全て非文字領域である
ことを示す0にする(ステップ1905。)
The case where the code thus generated is decoded in the image storage unit 1206 will be described. In the decoding processing according to the second embodiment, the only difference from the first embodiment that prioritizes the image quality of characters is the area determination signal separation unit 1604 shown in FIG. The processing will be described. FIG.
9 is a flowchart illustrating the operation of the area determination signal separation processing in the area determination signal separation unit 1604. First, the area determination signal separation unit 1604 reads the code data from the memory 1605 in units of 6 bytes (step 19).
01). Next, the in-block area information bit b0 stored in the least significant bit of La or Ld is referred to (step 1902). If b0 = 1 (step 1902; yes)
s), the lower bits of φij are separated as an area determination signal (step 1903), and then 0 is inserted into the lower bits of φij (step 1904). On the other hand, when b0 = 0 (step 1902; no), φij is left as it is, and the area determination signals in the block are all set to 0 indicating that they are non-character areas (step 1905).

【0024】このようにして第2の実施形態によれば、
領域判定信号を合成された符号データを復号して、領域
判定信号を参照して各領域に適した画像処理をすること
で良好な画像が得られる。ただし、この方法によると4
×4画素のブロックでブロック内の領域信号は文字領域
を含む場合、階調量子化符号φijが1ビットの情報しか
持たなくなるので文字領域の部分の画質が少し劣化する
可能性があり、文字以外の絵柄領域や網点領域の画質を
優先した方法といえる。
Thus, according to the second embodiment,
A good image can be obtained by decoding the code data obtained by synthesizing the area determination signal and performing image processing suitable for each area with reference to the area determination signal. However, according to this method,
If the area signal in the block is a × 4 pixel block and includes a character area, the gradation quantization code φij has only 1-bit information, so the image quality of the character area may be slightly degraded. It can be said that this method gives priority to the image quality of the picture area and the halftone dot area.

【0025】(c)第3の実施形態 次に第3の実施形態について説明する。この第3の実施
形態では、文字、非文字領域の画質のどちらかを優先す
るのではなく、領域判定信号の合成による劣化を文字、
非文字領域で均等にして、領域判定信号の合成を行なう
ものである。この第3の実施形態においても、符号化方
法において文字の画質を優先する第1の実施形態と異な
るのは、領域判定信号合成部1304の処理のみなので
その部分のみ説明する。領域判定信号合成部1304に
おける領域判定信号と画像データとの合成は、図21に
示されるように、4×4のますの中が領域判定信号とし
て文字領域の領域信号を1、それ以外の領域の領域信号
を0とし、図21(A)のように4×4画素のブロック
で全て文字領域の場合は、2ビットのブロック内領域情
報ビットb1=0、b0=0とし、この場合、画素ごと
の2ビットの階調量子化符号φijは、そのままメモリに
格納される。また、図21(B)のように4×4画素の
ブロックで全て非文字領域の場合は、2ビットのブロッ
ク内領域情報ビットb1=0、b0=1とし、この場合
も画素ごとの2ビットの階調量子化符号φijは、そのま
まメモリに格納される。更に、図21(C)のように4
×4画素のブロックでブロック内の領域信号は文字領域
と非文字領域が混在している場合、2ビットのブロック
内領域情報ビットb1=1、b0=1とし、画素ごとの
2ビットの階調量子化符号φijの下位1ビットは、対応
する位置の領域判定信号に差し替えられる。ブロック内
領域情報ビットb1、b0は、図20に示すように、L
aまたはLdの1バイトの最下位2ビットに格納される
か、La、Ld両方の最下位1ビットに分けて格納され
る。このようにして領域判定信号を挿入することで、デ
ータ量を増やすことなく、符号データに領域信号を合成
することができる。
(C) Third Embodiment Next, a third embodiment will be described. In the third embodiment, the image quality of a character or non-character area is not prioritized.
The area determination signal is synthesized equally in the non-character area. Also in the third embodiment, the encoding method differs from the first embodiment in which the image quality of characters is prioritized only in the processing of the area determination signal combining unit 1304, and therefore only that part will be described. As shown in FIG. 21, the area determination signal and the image data are synthesized by the area determination signal synthesis unit 1304. As shown in FIG. Is set to 0, and as shown in FIG. 21A, in the case of a block of 4 × 4 pixels and all of the character area, the area information bits b1 = 0 and b0 = 0 in the block are set to 2 bits. The 2-bit gradation quantization code φij is stored in the memory as it is. In the case of a block of 4 × 4 pixels and all non-character areas as shown in FIG. 21B, the area information bits b1 = 0 and b0 = 1 in the block are set to 2 bits. Is stored in the memory as it is. Further, as shown in FIG.
In the case of a × 4 pixel block, if a region signal in a block includes both a character region and a non-character region, the two-bit region information bits b1 = 1 and b0 = 1 in the block, and a 2-bit gradation for each pixel The lower one bit of the quantization code φij is replaced with the area determination signal at the corresponding position. As shown in FIG. 20, the in-block area information bits b1 and b0
It is stored in the least significant two bits of one byte of a or Ld, or divided into the least significant one bit of both La and Ld. By inserting the area determination signal in this manner, the area signal can be combined with the code data without increasing the data amount.

【0026】このように生成された符号を、画像格納部
1206において復号する場合について説明する。この
第3の実施形態による復号処理において、文字の画質を
優先する第1の実施形態と異なるのは、図16に示す領
域判定信号分離部1604のみなので、第3の実施形態
における領域判定信号分離処理について説明する。図2
2は、領域判定信号分離部1604における領域判定信
号の分離処理の動作を表したフローチャートである。ま
ず、領域判定信号分離部1604は、メモリ1605か
ら符号データを6バイト単位で読み出す(ステップ21
01)。つぎにLaまたはLdの下位2ビットに格納さ
れたブロック内領域情報ビットb0、b1を参照し(ス
テップ2102、ステップ2103)、b0=0(ステ
ップ2102;no)のときは、φijはそのままにし
て、ブロック内の領域判定信号を全て文字領域であるこ
とを示す1にする(ステップ2104)。一方、b1=
0のとき(ステップ2102;yes、ステップ210
3;no)は、φijはそのままにして、ブロック内の領
域判定信号を全て非文字領域であることを示す0にする
(ステップ2105)。また、b1=1ならば(ステッ
プ2102;yes、ステップ2103;no)、φij
の下位ビットを領域判定信号として分離し(ステップ2
106)、その後φijの下位ビットに0を挿入する(ス
テップ2107)。このようにして第3の実施形態によ
れば、領域判定信号を合成された符号データを復号し
て、領域判定信号を参照して各領域に通した画像処理を
することで良好な画像が得られる。
A case where the code generated in this way is decoded in the image storage unit 1206 will be described. In the decoding process according to the third embodiment, the only difference from the first embodiment in which the image quality of characters is prioritized is the region determination signal separation unit 1604 shown in FIG. The processing will be described. FIG.
2 is a flowchart showing the operation of the area determination signal separation processing in the area determination signal separation unit 1604. First, the area determination signal separating unit 1604 reads the code data from the memory 1605 in units of 6 bytes (step 21).
01). Next, the in-block area information bits b0 and b1 stored in the lower two bits of La or Ld are referred to (steps 2102 and 2103). When b0 = 0 (step 2102; no), φij is left as it is. , The area determination signals in the block are all set to 1 indicating that they are character areas (step 2104). On the other hand, b1 =
0 (step 2102; yes, step 210)
3; no), φij is left as it is, and the area determination signals in the block are all set to 0 indicating that the area is a non-character area (step 2105). If b1 = 1 (step 2102; yes, step 2103; no), φij
Are separated as an area determination signal (step 2).
106) Then, 0 is inserted into the lower bits of φij (step 2107). Thus, according to the third embodiment, a good image can be obtained by decoding the code data in which the area determination signal is synthesized, and performing image processing that passes through each area with reference to the area determination signal. Can be

【0027】この方法は、図21(C)に示すように、
文字領域と非文字領域が混在する部分では、階調量子化
符号φijが1ビットの情報しか持たなくなるので、この
ような領域では、画質が少し劣化するが、全体の画像に
おいてこのような領域は少なく、あまり劣化は目立たな
い。また、La、Ldの情報の内、2ビットをブロック
内領域情報ビットとして用いるので復号時の画像データ
に影響が出るが、画質としては、ほとんど目立たない。
In this method, as shown in FIG.
In a part where a character area and a non-character area coexist, the gradation quantization code φij has only 1-bit information. In such an area, the image quality is slightly degraded. Less, deterioration is not so noticeable. Further, since 2 bits of the information of La and Ld are used as the in-block area information bits, the image data at the time of decoding is affected, but the image quality is hardly noticeable.

【0028】[0028]

【発明の効果】請求項1および請求項4に記載の発明に
よれば、圧縮データと領域判定信号とを別個に記憶した
り伝送したりする必要がないので、全体のデータ量が増
大することがなく、圧縮データを記憶するメモリを小型
化し、圧縮データの伝送時間をの短縮することができ
る。文字領域以外の領域の符号情報を文字領域に比べ、
領域判定信号の埋め込みに多く利用するので、文字領域
優先の画質を求めるときにより有効である。請求項2お
よび請求項5に記載の発明によれば、圧縮データと領域
判定信号とを別個に記憶したり伝送したりする必要がな
いので、全体のデータ量が増大することがなく、圧縮デ
ータを記憶するメモリの小型化や、圧縮データの伝送時
間の短縮などに寄与することが出来るなどの効果を有す
るものである。文字領域の符号情報を文字領域以外の領
域に比べ、領域判定信号の埋め込みに多く利用するの
で、文字領域以外の領域優先の画質を求めるときにより
有効である。請求項3および請求項6に記載の発明によ
れば、圧縮データと領域判定信号とを別個に記憶したり
伝送したりする必要がないので、全体のデータ量が増大
することがなく、圧縮データを記憶するメモリの小型化
や、圧縮データの伝送時間の短縮などに寄与することが
出来るなどの効果を有するものである。文字領域の符号
情報と文字領域以外の領域の符号情報を同等に、領域判
定信号の埋め込みに利用するので、文字領域と文字領域
以外の領域の画質をどちらかを特に優先しないときに有
効である。
According to the first and fourth aspects of the present invention, since it is not necessary to separately store and transmit the compressed data and the area determination signal, the total data amount increases. Therefore, the size of the memory for storing the compressed data can be reduced, and the transmission time of the compressed data can be reduced. Compare the code information of the area other than the character area with the character area,
Since it is often used for embedding an area determination signal, it is more effective when obtaining image quality with priority on a character area. According to the second and fifth aspects of the present invention, since it is not necessary to separately store and transmit the compressed data and the area determination signal, the total data amount does not increase and the compressed data and the area determination signal do not increase. Has the effect of contributing to downsizing of the memory for storing the data and shortening of the transmission time of the compressed data. Since the code information of the character area is used more frequently for embedding the area determination signal than the area other than the character area, it is more effective when obtaining the image quality with priority on the area other than the character area. According to the third and sixth aspects of the present invention, since it is not necessary to separately store and transmit the compressed data and the area determination signal, the total data amount does not increase, and the compressed data and the area determination signal do not increase. Has the effect of contributing to downsizing of the memory for storing the data and shortening of the transmission time of the compressed data. Since the code information of the character region and the code information of the region other than the character region are equally used for embedding the region determination signal, it is effective when the image quality of the character region and the region other than the character region is not particularly given priority. .

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

【図1】画像復号装置を適用したディジタル複写機の構
成図である。
FIG. 1 is a configuration diagram of a digital copying machine to which an image decoding device is applied.

【図2】同上、ディジタル複写機の画像出力部の構成図
である。
FIG. 2 is a configuration diagram of an image output unit of the digital copying machine;

【図3】同上、各画素の濃度の値に対して、レーザーの
出力の幅を制御する信号のパルス幅を変えることによる
画素濃度の制御についての説明図である。
FIG. 3 is an explanatory diagram of a pixel density control by changing a pulse width of a signal for controlling a laser output width with respect to a density value of each pixel;

【図4】同上、画素ごとに位相情報を加え、画素の位置
を変えることでノイズを軽減する場合の説明図である。
FIG. 4 is an explanatory diagram of a case where noise is reduced by adding phase information for each pixel and changing the position of the pixel.

【図5】同上、位相情報を決定するための計算式を表し
た説明図である。
FIG. 5 is an explanatory diagram showing a calculation formula for determining phase information.

【図6】同上、画像処理部において、領域を判定する部
分のブロック図である。
FIG. 6 is a block diagram of a part for determining an area in the image processing unit.

【図7】同上、文字と絵柄、網点とからなる画像データ
を例示したも説明図である。
FIG. 7 is an explanatory diagram illustrating an example of image data including characters, pictures, and halftone dots;

【図8】同上、ブロック符号化方式についての説明図で
ある。
FIG. 8 is an explanatory diagram of the same as the above, for a block coding method.

【図9】同上、ブロック符号化方式におけるアルゴリズ
ムを示した説明図である。
FIG. 9 is an explanatory diagram showing an algorithm in the block coding method.

【図10】同上、各符号が復号時に割り当てられる濃度
値についての説明図である。
FIG. 10 is an explanatory diagram of a density value assigned to each code at the time of decoding.

【図11】同上、符号化方式によるデータ量の圧縮の程
度を示した説明図である。
FIG. 11 is an explanatory diagram showing the degree of compression of the data amount by the encoding method.

【図12】本発明の一実施形態における画像復号装置を
適用したデジタル複写装置のブロック構成図である。
FIG. 12 is a block diagram of a digital copying apparatus to which the image decoding apparatus according to the embodiment of the present invention is applied.

【図13】同上、ディジタル複写機の画像格納部におけ
る符号データと領域判定信号を合成する部分のブロック
構成図である。
FIG. 13 is a block diagram of a portion that combines code data and an area determination signal in the image storage section of the digital copying machine.

【図14】同上、ディジタル複写機においてブロック内
領域情報ビットb0の格納先を示す説明図である。
FIG. 14 is an explanatory diagram showing a storage location of an in-block area information bit b0 in the digital copying machine.

【図15】同上、ディジタル複写機における、領域判定
信号と画像データとの合成についての説明図である。
FIG. 15 is an explanatory diagram of combining an area determination signal and image data in the digital copying machine.

【図16】同上、ディジタル複写機における画像格納部
において復号する部分のブロック構成図である。
FIG. 16 is a block diagram of a decoding part in an image storage unit of the digital copying machine.

【図17】同上、ディジタル複写機の領域判定信号分離
部における領域判定信号の分離処理の動作を表したフロ
ーチャートである。
FIG. 17 is a flowchart showing the operation of the area judgment signal separation processing in the area judgment signal separation section of the digital copying machine.

【図18】同上、第2の実施形態のディジタル複写機に
おける、領域判定信号と画像データとの合成についての
説明図である。
FIG. 18 is an explanatory diagram of a combination of an area determination signal and image data in the digital copying machine according to the second embodiment.

【図19】同上、第2の実施形態の領域判定信号分離部
における領域判定信号の分離処理の動作を表したフロー
チャートである。
FIG. 19 is a flowchart illustrating the operation of the area determination signal separation process in the area determination signal separation unit according to the second embodiment.

【図20】同上、第2の実施形態のディジタル複写機に
おいてブロック内領域情報ビットb1、b0の格納先を
示す説明図である。
FIG. 20 is an explanatory diagram showing storage locations of intra-block area information bits b1 and b0 in the digital copying machine according to the second embodiment.

【図21】同上、第3の実施形態のディジタル複写機に
おける、領域判定信号と画像データとの合成についての
説明図である。
FIG. 21 is an explanatory diagram of a combination of an area determination signal and image data in the digital copying machine according to the third embodiment.

【図22】同上、第3の実施形態の領域判定信号分離部
における領域判定信号の分離処理の動作を表したフロー
チャートである。
FIG. 22 is a flowchart illustrating the operation of the area determination signal separation processing in the area determination signal separation unit according to the third embodiment.

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

1201 スキャナ 1202 A/D変換部 1203 画像処理部 1204 文字領域判定部 1205 階調処理部 1206 画像格納部 1207 信号切り替え部 1208 信号切り替え部 1209 位相出力部 1210 画像出力部 1301、1601 4ラインFIFO 1302 符号化部 1303、1603 2値4ラインFIFO 1304 領域判定信号合成部 1305(1605) メモリ 1602 複合部 1604 領域判定信号分離部 1201 scanner 1202 A / D converter 1203 image processing unit 1204 character area determination unit 1205 gradation processing unit 1206 image storage unit 1207 signal switching unit 1208 signal switching unit 1209 phase output unit 1210 image output unit 1301, 1601 4-line FIFO 1302 code Combining sections 1303, 1603 Binary 4-line FIFO 1304 Area judgment signal synthesis section 1305 (1605) Memory 1602 Composite section 1604 Area judgment signal separation section

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 画像データを形成する多階調の画素デー
タの各々を所定数に分解してブロックデータを生成し、
このブロックデータの画素ごとの濃度データを2ビット
の階調量子化符号と平均データと階調幅指標からなる圧
縮データに符号化する一方で、画像データが文字画像で
あるか否かを判定し、この判定結果に基づいて画素毎に
2値の領域判定信号を出力し、この領域判定信号がブロ
ックデータ内で全て文字領域の判定信号の場合は0を、
ブロックデータ内で文字領域以外の判定信号を含む場合
は1を前記圧縮データの平均データと階調幅指標どちら
か一方の最下位ビットに挿入し、ブロックデータ内で文
字領域以外の判定信号を含む場合は、2ビットの階調量
子化符号の下位ビットに画素毎の領域判定信号を挿入す
ることにより生成された文字画像の領域情報を含む符号
データを復号する装置であって、 前記符号データの平均データまたは、階調幅指標で情報
が挿入された方の最下位ビットを識別して、ブロックデ
ータ内で文字領域のみのデータを含むか否かを識別する
符号識別手段と、 前記符号識別手段で文字領域のみを含むと識別されたと
きは、領域判定信号を全て文字領域の判定信号とし、文
字領域以外の領域を含むと識別したときは、2ビットの
階調量子化符号の下位ビットを領域判定信号とし、前記
下位ビットは、0に置き換える符号データ、領域判定信
号分離手段と、 前記符号データ、領域判定信号分離手段で分離された符
号データである平均データと階調幅指標と2ビットの階
調量子化符号を画素毎の濃度データに復号する復号手段
と、を具備することを特徴とする画像復号装置。
1. A multi-tone pixel data forming image data is decomposed into a predetermined number to generate block data.
While the density data for each pixel of the block data is encoded into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index, it is determined whether the image data is a character image, Based on this determination result, a binary area determination signal is output for each pixel, and 0 if this area determination signal is a determination signal of a character area in the block data,
When the block data includes a determination signal other than the character area, 1 is inserted into the least significant bit of either the average data of the compressed data or the gradation width index, and the block data includes the determination signal other than the character area. Is a device that decodes code data including region information of a character image generated by inserting a region determination signal for each pixel into lower bits of a 2-bit gradation quantization code, Data or code identification means for identifying the least significant bit in which the information is inserted with the gradation width index, and identifying whether or not the block data includes data of only a character area; When it is determined that only the area is included, the area determination signal is used as the determination signal for the entire character area. The bits are used as an area determination signal, and the lower bits are code data to be replaced with 0, area determination signal separation means, and the code data, average data which is code data separated by the area determination signal separation means, a gradation width index, and 2 bits. Decoding means for decoding a bit gradation quantization code into density data for each pixel.
【請求項2】 画像データを形成する多階調の画素デー
タの各々を所定数に分解してブロックデータを生成し、
このブロックデータの画素ごとの濃度データを2ビット
の階調量子化符号と平均データと階調幅指標からなる圧
縮データに符号化する一方で、画像データが文字画像で
あるか否かを判定し、この判定結果に基づいて画素毎に
2値の領域判定信号を出力し、この領域判定信号がブロ
ックデータ内で文字領域以外の判定信号を含む場合は0
を、ブロックデータ内で全て文字領域のみの判定信号を
含む場合は1を前記圧縮データの平均データと階調幅指
標どちらか一方の最下位ビットに挿入し、ブロックデー
タ内で文字領域以外の判定信号を含む場合は、2ビット
の階調量子化符号の下位ビットに画素毎の領域判定信号
を挿入することにより生成された文字画像の領域情報を
含む符号データを復号する装置であって、 前記符号データの平均データまたは、階調幅指標で情報
が挿入された方の最下位ビットを識別して、ブロックデ
ータ内で文字領域以外のデータを含むか否かを識別する
符号識別手段と、 前記符号識別手段で文字領域以外の領域を含むと識別さ
れたときは、領域判定信号を全て文字領域以外の判定信
号とし、文字領域の信号を含むと識別したときは、2ビ
ットの階調量子化符号の下位ビットを領域判定信号と
し、前記下位ビットは、0に置き換える符号データ、領
域判定信号分離手段と、 前記符号データ、領域判定信号分離手段で分離された符
号データである平均データと階調幅指標と2ビットの階
調量子化符号を画素毎の濃度データに復号する復号手段
と、を具備することを特徴とする画像復号装置。
2. Generating block data by decomposing each of multi-gradation pixel data forming image data into a predetermined number,
While the density data for each pixel of the block data is encoded into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index, it is determined whether the image data is a character image, A binary area determination signal is output for each pixel based on the determination result, and 0 when this area determination signal includes a determination signal other than the character area in the block data.
Is inserted into the least significant bit of one of the average data of the compressed data and the gradation width index when the block data includes the determination signal of only the character area, and the determination signal of the block data other than the character area is included in the block data. Is included, a device that decodes code data including region information of a character image generated by inserting a region determination signal for each pixel into lower bits of a 2-bit gradation quantization code, Code identification means for identifying the average data of the data or the least significant bit in which the information is inserted by the gradation width index, and identifying whether or not data other than the character area is included in the block data; If it is determined by the means that an area other than the character area is included, all area determination signals are determined to be signals other than the character area. The lower bits of the child code are used as an area determination signal, and the lower bits are code data to be replaced with 0, area determination signal separation means, and the code data, average data being code data separated by the area determination signal separation means. Decoding means for decoding the gradation width index and the 2-bit gradation quantization code into density data for each pixel.
【請求項3】 画像データを形成する多階調の画素デー
タの各々を所定数に分解してブロックデータを生成し、
このブロックデータの画素ごとの濃度データを2ビット
の階調量子化符号と平均データと階調幅指標からなる圧
縮データに符号化する一方で、画像データが文字画像で
あるか否かを判定し、この判定結果に基づいて画素毎に
2値の領域判定信号を出力し、この領域判定信号がブロ
ックデータ内で全て文字領域の判定信号の場合は2ビッ
トの信号00を、ブロックデータ内で全て文字領域以外
の判定信号の場合は2ビットの信号01を、ブロックデ
ータ内で文字領域と文字領域以外の判定信号が混在する
場合は2ビットの信号11を前記圧縮データの平均デー
タと階調幅指標どちらか一方の下位2ビット、または、
平均データと階調幅指標の両方の最下位ビットに1ビッ
トづつ分けて挿入し、ブロックデータ内で文字領域と文
字領域以外の判定信号が混在する場合は、階調量子化符
号の下位ビットに画素毎の領域判定信号を挿入すること
により生成された文字画像の領域情報を含む符号データ
を復号する装置であって、 前記符号データの平均データまたは、階調幅指標に含ま
れる2ビットの信号を識別して、ブロックデータ内で全
て文字領域のみか、全く文字領域を含まないか、文字領
域と文字領域以外のデータが混在するかを識別する符号
識別手段と、 前記符号識別手段で全て文字領域のみを含むと識別され
たときは、領域判定信号を全て文字領域のみの判定信号
とし、全く文字領域を含まないと識別されたときは、領
域判定信号を全て文字領域以外のみの判定信号とし、文
字領域とそれ以外の領域が混在すると識別したときは、
2ビットの階調量子化符号の下位ビットを領域判定信号
とし、前記下位ビットは、0に置き換える符号データ、
領域判定信号分離手段と、 前記符号データ、領域判定信号分離手段で分離された符
号データである平均データと階調幅指標と2ビットの階
調量子化符号を画素毎の濃度データに復号する復号手段
を具備することを特徴とする画像復号装置。
3. A block data is generated by decomposing each of the multi-gradation pixel data forming the image data into a predetermined number,
While the density data for each pixel of the block data is encoded into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index, it is determined whether the image data is a character image, A binary area determination signal is output for each pixel based on this determination result. If the area determination signal is a determination signal for a character area in the block data, a 2-bit signal 00 is output. The 2-bit signal 01 is used for the determination signal other than the area, and the 2-bit signal 11 is used for the mixed data including the character area and the non-character area in the block data. One of the lower 2 bits, or
The bit is inserted into the least significant bit of both the average data and the gradation width index one bit at a time. An apparatus for decoding code data including region information of a character image generated by inserting a region determination signal for each code, comprising identifying an average data of the code data or a 2-bit signal included in a gradation width index. A code identification unit for identifying whether the block data includes only a character region, does not include a character region at all, or includes a character region and data other than a character region; and the code identification unit includes only a character region. When it is determined that the region determination signal is included, all the region determination signals are determined to be only the character region. And Mino judgment signal, when a character area and other areas has been identified as being mixed,
The lower bits of the 2-bit gradation quantization code are used as an area determination signal, and the lower bits are code data to be replaced with 0.
Area determination signal separation means; decoding means for decoding the code data, average data, code data separated by the area determination signal separation means, a gradation width index, and a 2-bit gradation quantization code into density data for each pixel An image decoding device comprising:
【請求項4】 画像データを形成する多階調の画素デー
タの各々を所定数に分解してブロックデータを生成し、
このブロックデータの画素ごとの濃度データを2ビット
の階調量子化符号と平均データと階調幅指標からなる圧
縮データに符号化する一方で、画像データが文字画像で
あるか否かを判定し、この判定結果に基づいて画素毎に
2値の領域判定信号を出力し、この領域判定信号がブロ
ックデータ内で全て文字領域の判定信号の場合は0を、
ブロックデータ内で文字領域以外の判定信号を含む場合
は1を前記圧縮データの平均データと階調幅指標どちら
か一方の最下位ビットに挿入し、ブロックデータ内で文
字領域以外の判定信号を含む場合は、2ビットの階調量
子化符号の下位ビットに画素毎の領域判定信号を挿入す
ることにより生成された文字画像の領域情報を含む符号
データを復号する方法であって、 前記符号データの平均データまたは、階調幅指標で情報
が挿入された方の最下位ビットを符号識別手段でブロッ
クデータ内で文字領域のみのデータを含むか否かを識別
し、 前記符号識別手段で文字領域のみを含むと識別されたと
きは、符号データ、領域判定信号分離手段で領域判定信
号を全て文字領域の判定信号とし、文字領域以外の領域
を含むと識別したときは、2ビットの階調量子化符号の
下位ビットを領域判定信号とし、前記下位ビットは、0
に置き換え、 前記符号データ、領域判定信号分離手段で分離された符
号データである平均データと階調幅指標と2ビットの階
調量子化符号を復号手段で画素毎の濃度データに復号す
るようにしたことを特徴とする画像復号方法。
4. A block data is generated by decomposing each of multi-gradation pixel data forming image data into a predetermined number.
While the density data for each pixel of the block data is encoded into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index, it is determined whether the image data is a character image, Based on this determination result, a binary area determination signal is output for each pixel, and 0 if this area determination signal is a determination signal of a character area in the block data,
When the block data includes a determination signal other than the character area, 1 is inserted into the least significant bit of either the average data of the compressed data or the gradation width index, and the block data includes the determination signal other than the character area. Is a method for decoding code data including region information of a character image generated by inserting a region determination signal for each pixel into lower bits of a 2-bit gradation quantization code. The data or the least significant bit in which the information is inserted by the gradation width index is identified by the code identification means as to whether or not the block data includes data of only the character area, and the code identification means includes only the character area. If it is determined that all the area determination signals are character area determination signals by the code data and area determination signal separation means, and if it is determined that an area other than the character area is included, two bits are used. And lower bits of the gradation quantization code and area identification signal, said lower bits, 0
And the decoding means decodes the code data, the average data which is the code data separated by the area determination signal separation means, the gradation width index, and the 2-bit gradation quantization code into density data for each pixel. An image decoding method, characterized in that:
【請求項5】 画像データを形成する多階調の画素デー
タの各々を所定数に分解してブロックデータを生成し、
このブロックデータの画素ごとの濃度データを2ビット
の階調量子化符号と平均データと階調幅指標からなる圧
縮データに符号化する一方で、画像データが文字画像で
あるか否かを判定し、この判定結果に基づいて画素毎に
2値の領域判定信号を出力し、この領域判定信号がブロ
ックデータ内で文字領域以外の判定信号を含む場合は0
を、ブロックデータ内で全て文字領域のみの判定信号を
含む場合は1を前記圧縮データの平均データと階調幅指
標どちらか一方の最下位ビットに挿入し、プロックデー
タ内で文字領域以外の判定信号を含む場合は、2ビット
の階調量子化符号の下位ビットに画素毎の領域判定信号
を挿入することにより生成された文字画像の領域情報を
含む符号データを復号する方法であって、 前記符号データの平均データまたは、階調幅指標で情報
が挿入された方の最下位ビットを符号識別手段でブロッ
クデータ内で文字領域以外のデータを含むか否かを識別
し、 前記符号識別手段で文字領域以外の領域を含むと識別さ
れたときは、符号データ、領域判定信号分離手段で領域
判定信号を全て文字領域以外の判定信号とし、 文字領域の信号を含むと識別したときは、2ビットの階
調量子化符号の下位ビットを領域判定信号とし、前記下
位ビットは、0に置き換え、 前記符号データ、領域判定信号分離手段で分離された符
号データである平均データと階調幅指標と2ビットの階
調量子化符号を復号手段で画素毎の濃度データに復号す
るようにしたことを特徴とする面像復号方法。
5. A block data is generated by decomposing each of multi-gradation pixel data forming image data into a predetermined number.
While the density data for each pixel of the block data is encoded into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index, it is determined whether the image data is a character image, A binary area determination signal is output for each pixel based on the determination result, and 0 when this area determination signal includes a determination signal other than the character area in the block data.
Is inserted into the least significant bit of either the average data of the compressed data or the gradation width index when the block data includes the determination signal of only the character area, and the determination signal of the block data other than the character area is included in the block data. Is included, a method of decoding code data including region information of a character image generated by inserting a region determination signal for each pixel into lower bits of a 2-bit gradation quantization code, The average data of the data or the least significant bit in which the information is inserted with the gradation width index is identified by the code identification means as to whether data other than the character area is included in the block data. When it is determined that the area includes a region other than the character region, the code data and the region determination signal separating unit determine that all the region determination signals are the determination signals other than the character region, and that the region determination signal includes the character region signal. In this case, the lower bits of the 2-bit gradation quantization code are used as an area determination signal, and the lower bits are replaced with 0. A plane image decoding method, wherein a tone width index and a 2-bit gradation quantization code are decoded into density data for each pixel by a decoding means.
【請求項6】画像データを形成する多階調の画素データ
の各々を所定数に分解してブロックデータを生成し、こ
のブロックデータの画素ごとの濃度データを2ビットの
階調量子化符号と平均データと階調幅指標からなる圧縮
データに符号化する一方で、画像データが文字画像であ
るか否かを判定し、この判定結果に基づいて画素毎に2
値の領域判定信号を出力し、この領域判定信号がブロッ
クデータ内で全て文字領域の判定信号の場合は2ビット
の信号00を、ブロックデータ内で全て文字領域以外の
判定信号の場合は2ビットの信号01を、ブロックデー
タ内で文字領域と文字領域以外の判定信号が混在する場
合は2ビットの信号11を前記圧縮データの平均データ
と階調幅指標どちらか一方の下位2ビット、または、平
均データと階調幅指標の両方の最下位ビットに1ビット
づつ分けて挿入し、ブロックデータ内で文字領域と文字
領域以外の判定信号が混在する場合は、階調量子化符号
の下位ビットに画素毎の領域判定信号を挿入することに
より生成された文字画像の領域情報を含む符号データを
復号する方法であって、 前記符号データの平均データまたは、階調幅指標に含ま
れる2ビットの信号を符号識別手段で識別して、ブロッ
クデータ内で全て文字領域のみか、全く文字領域を含ま
ないか、文字領域と文字領域以外のデータが混在するか
を識別し、 前記符号識別手段で全て文字領域のみを含むと識別され
たときは、符号データ、領域判定信号分離手段で領域判
定信号を全て文字領域のみの判定信号とし、全く文字領
域を含まないと識別されたときは、領域判定信号を全て
文字領域以外のみの判定信号とし、文字領域とそれ以外
の領域が混在すると識別したときは、2ビットの階調量
子化符号の下位ビットを領域判定信号とし、前記下位ビ
ットは、0に置き換え、 前記符号データ、領域判定信号分離手段で分離された符
号データである平均データと階調幅指標と2ビットの階
調量子化符号を復号手段で画素毎の濃度データに復号す
るようにしたことを特徴とする画像復号方法。
6. A block data is generated by decomposing each of multi-gradation pixel data forming image data into a predetermined number, and density data for each pixel of the block data is converted into a 2-bit gradation quantization code. While encoding into compressed data including the average data and the gradation width index, it is determined whether or not the image data is a character image.
A value determination signal is output. If the determination signal is a determination signal for all character areas in the block data, a 2-bit signal 00 is output. In the case where the character area and the judgment signal other than the character area are mixed in the block data, the signal 01 of the above-mentioned is converted into the 2-bit signal 11 by the lower 2 bits of either the average data of the compressed data or the gradation width index, or Insert one bit at a time into the least significant bits of both the data and the tone width index. If the block data includes a character area and a determination signal other than the character area, the lower bits of the tone quantization code are assigned to each pixel. A method of decoding code data including region information of a character image generated by inserting a region determination signal of The two-bit signal included in the block data is identified by the code identifying means, and whether the block data includes only a character area, does not include any character area, or includes both a character area and data other than a character area, When the code identifying means is identified as including only the character area only, the code data, the area determination signal separating means determines the area determination signal as the determination signal of only the character area, and is determined not to include the character area at all. When the area determination signal is determined to be a determination signal for only the area other than the character area, and when it is determined that the character area and the other area are mixed, the lower bits of the 2-bit gradation quantization code are defined as the area determination signal, The lower bits are replaced with 0, and the decoding means decodes the code data, the average data which is the code data separated by the area determination signal separation means, the gradation width index, and the 2-bit gradation quantization code. Image decoding method is characterized in that so as to decode each of the density data.
JP03126197A 1997-01-29 1997-01-29 Image decoding device and image decoding method Expired - Fee Related JP3432104B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03126197A JP3432104B2 (en) 1997-01-29 1997-01-29 Image decoding device and image decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03126197A JP3432104B2 (en) 1997-01-29 1997-01-29 Image decoding device and image decoding method

Publications (2)

Publication Number Publication Date
JPH10215380A true JPH10215380A (en) 1998-08-11
JP3432104B2 JP3432104B2 (en) 2003-08-04

Family

ID=12326416

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03126197A Expired - Fee Related JP3432104B2 (en) 1997-01-29 1997-01-29 Image decoding device and image decoding method

Country Status (1)

Country Link
JP (1) JP3432104B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63305672A (en) * 1987-06-08 1988-12-13 Fujitsu Ltd Block encoding system for multi-valued image
JPH0219072A (en) * 1988-07-07 1990-01-23 Sony Corp Transmitter
JPH0730770A (en) * 1993-07-08 1995-01-31 Ricoh Co Ltd Block encoder and decoder
JPH0851547A (en) * 1994-05-30 1996-02-20 Ricoh Co Ltd Image processor
JPH08307691A (en) * 1995-05-11 1996-11-22 Minolta Co Ltd Image processing unit
JPH1042142A (en) * 1996-07-22 1998-02-13 Ricoh Co Ltd Image coding method and device therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63305672A (en) * 1987-06-08 1988-12-13 Fujitsu Ltd Block encoding system for multi-valued image
JPH0219072A (en) * 1988-07-07 1990-01-23 Sony Corp Transmitter
JPH0730770A (en) * 1993-07-08 1995-01-31 Ricoh Co Ltd Block encoder and decoder
JPH0851547A (en) * 1994-05-30 1996-02-20 Ricoh Co Ltd Image processor
JPH08307691A (en) * 1995-05-11 1996-11-22 Minolta Co Ltd Image processing unit
JPH1042142A (en) * 1996-07-22 1998-02-13 Ricoh Co Ltd Image coding method and device therefor

Also Published As

Publication number Publication date
JP3432104B2 (en) 2003-08-04

Similar Documents

Publication Publication Date Title
EP0898418B1 (en) Method and apparatus for encoding image, image decoding apparatus and image forming apparatus
JPH11331581A (en) Method for optimizing rendition of tone and edge
JPH1051642A (en) Image processor
JP2010103681A (en) Image processing device and method
JPH11252563A (en) Image coder, image decoder, image processing unit, image coding method, image decoding method and image processing method
JP2008042688A (en) Image processing apparatus and control method thereof, and computer program and computer readable storage medium
US5729625A (en) Image processing method and apparatus which expand a pixel into multiple pixels, with a change in the number of gray levels
JP2006121645A (en) Image compression apparatus and image compression program
US6201614B1 (en) Dithered image compression system
US7050645B2 (en) Image processing apparatus and image processing method
JPH11168632A (en) Binary expression processing method for dither image, method for uncompressing dither image expressed in compression binary representation and compression and uncompression system for dither image
JPH10215379A (en) Image coder and image decoder
JPH1070654A (en) Image processor
JP2004112695A (en) Image processing apparatus and processing method thereof
JPH10215380A (en) Image decoder and image decoding method
JP3347944B2 (en) Image encoding method and apparatus
US6069980A (en) Adaptive character image generation and synthesis
JP3352330B2 (en) Image processing apparatus and method
JP3340014B2 (en) Image data encoding apparatus and encoding method
JP2002051221A (en) Device, system and method for encoding and decoding image and storage medium
JP3340006B2 (en) Image processing device
JP3340015B2 (en) Image data decoding device and decoding method
JP3340007B2 (en) Image data encoding apparatus and encoding method
JP3104422B2 (en) Image forming device
JPH1127670A (en) Decoder and decoding method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080523

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090523

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100523

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110523

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120523

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees