JP3347944B2 - Image encoding method and apparatus - Google Patents

Image encoding method and apparatus

Info

Publication number
JP3347944B2
JP3347944B2 JP19218596A JP19218596A JP3347944B2 JP 3347944 B2 JP3347944 B2 JP 3347944B2 JP 19218596 A JP19218596 A JP 19218596A JP 19218596 A JP19218596 A JP 19218596A JP 3347944 B2 JP3347944 B2 JP 3347944B2
Authority
JP
Japan
Prior art keywords
data
image
area
determination signal
character
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
Application number
JP19218596A
Other languages
Japanese (ja)
Other versions
JPH1042142A (en
Inventor
好道 神田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP19218596A priority Critical patent/JP3347944B2/en
Publication of JPH1042142A publication Critical patent/JPH1042142A/en
Application granted granted Critical
Publication of JP3347944B2 publication Critical patent/JP3347944B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Input (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理装置等に
おいて画像データをブロック符号化により圧縮して格納
するための画像符号化方法およびこの方法を実施するた
めの画像符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding method for compressing and storing image data by block encoding in an image processing device or the like, and an image encoding device for implementing the method.

【0002】[0002]

【従来の技術】例えばデジタル複写機のような画像処理
装置においては、画像データ格納部に画像データをブロ
ック符号化により圧縮して格納することが行われてお
り、その際画質補正の利用する画像領域判定信号も圧縮
信号に組み込み記憶することが行われている。
2. Description of the Related Art In an image processing apparatus such as a digital copying machine, for example, image data is compressed and stored in an image data storage section by block coding. An area determination signal is also embedded and stored in a compressed signal.

【0003】以下、デジタル複写機を例にとって、図8
および図9に基づいて説明する。図8は従来のデジタル
複写機の一例における概略構成を示すブロック図、図9
は図8の画像出力部の構成を示すブロック図である。
[0003] Taking a digital copying machine as an example, FIG.
A description will be given with reference to FIG. FIG. 8 is a block diagram showing a schematic configuration of an example of a conventional digital copying machine.
FIG. 9 is a block diagram illustrating a configuration of an image output unit in FIG. 8.

【0004】画像データをデジタル信号として扱う複写
機は、図8に示すように、スキャナ101、A/D変換
部102、画像処理部103、および画像出力部104
とから主に構成されている。スキャナ101で画像デー
タを読み取り、A/D変換部102で画像データをデジ
タル信号に変換する。画像処理部103ではA/D変換
部102からの画像データのデジタル信号をガンマ変換
や画質補正などの画像処理を行い、画像出力部104で
画像データを紙などの転写材上に画素ごとに印字を行
い、画像を出力する。
A copier that handles image data as a digital signal includes a scanner 101, an A / D converter 102, an image processor 103, and an image output unit 104, as shown in FIG.
It is mainly composed of The scanner 101 reads image data, and the A / D converter 102 converts the image data into a digital signal. The image processing unit 103 performs image processing such as gamma conversion and image quality correction on the digital signal of the image data from the A / D conversion unit 102, and the image output unit 104 prints the image data on a transfer material such as paper for each pixel. And output the image.

【0005】画像出力部104は、図9に示すように、
LD(レーザダイオード)ユニット202、シリンダレ
ンズ203、ポリゴンミラー204、fθレンズ20
5、および感光体206とから主に構成されている。す
なわち、画像処理部103からの信号を受けてLDユニ
ット202からレーザ光を出力する。このレーザ光は、
シリンダレンズ203を通してポリゴンミラー204上
に当てられ、ポリゴンミラー204で反射したレーザ光
はfθレンズ205を通して感光体206上に照射され
る。ここで、ポリゴンミラー204を回転させてレーザ
光を走査することにより、1ラインずつ感光体206上
に画像データを書き込む。
[0005] As shown in FIG.
LD (laser diode) unit 202, cylinder lens 203, polygon mirror 204, fθ lens 20
5 and a photoconductor 206. That is, a laser beam is output from the LD unit 202 in response to a signal from the image processing unit 103. This laser beam
The laser beam applied to the polygon mirror 204 through the cylinder lens 203 and reflected by the polygon mirror 204 is applied to the photoconductor 206 through the fθ lens 205. Here, by rotating the polygon mirror 204 and scanning the laser light, image data is written on the photoconductor 206 line by line.

【0006】図10は読み取り階調と再生画像の関係を
説明するための図で、画素の濃度の制御は、通常、この
図10に示すように各画素の濃度の値に対して、レーザ
の出力の幅を制御する信号のパルス幅を変えることによ
り行う。同図(a)は、読み取り階調を示し、同図
(b)は読み取り階調にしたがってレーザ出力を制御す
る信号のパルス割り当てをns(ナノセコンド)で示し
ている。図10の(c)は(b)で割り当てられたパル
スにしたがって発生するパルスの波形を示し、(d)は
再生画像の状態を示している。このように読み取り階調
にしたがって単純にパルスを割り当て、パルス幅を制御
する方式では、主走査方向直行する細線や文字のエッジ
部で画素が離れ、ノイズとして目立つ可能性がある。
FIG. 10 is a diagram for explaining the relationship between the read gradation and the reproduced image. In general, the control of the pixel density is performed by changing the density value of each pixel with respect to the density value of each pixel as shown in FIG. This is performed by changing the pulse width of the signal for controlling the output width. FIG. 2A shows the read gray scale, and FIG. 2B shows the pulse assignment of a signal for controlling the laser output in accordance with the read gray scale in ns (nanoseconds). FIG. 10C shows a waveform of a pulse generated according to the pulse allocated in FIG. 10B, and FIG. 10D shows a state of a reproduced image. In the method of simply allocating the pulse according to the read gradation and controlling the pulse width, pixels may be separated at a thin line or a character edge portion perpendicular to the main scanning direction and may be conspicuous as noise.

【0007】このような場合は、読み取り階調と再生画
像の関係を位相情報とともに説明するための図11に示
すように、画素ごとに位相情報を加え、画素の位置を変
えることにより、ノイズを軽減することができる。同図
(a)は、読み取り階調を示し、同図(b)はパルス割
り当てをnsで示し、同図(c)は同図(b)で割り当
てられたパルスにしたがって発生するパルスの波形を示
し、同図(d)は再生画像の状態を示し、同図(e)は
付加された位相情報を示している。
In such a case, noise is reduced by adding the phase information for each pixel and changing the position of the pixel as shown in FIG. 11 for explaining the relationship between the read gradation and the reproduced image together with the phase information. Can be reduced. 2A shows the read gradation, FIG. 2B shows the pulse assignment in ns, and FIG. 1C shows the pulse waveform generated according to the pulse assigned in FIG. 1B. (D) shows the state of the reproduced image, and (e) shows the added phase information.

【0008】図11の(e)に示すような位相情報の付
加は、画像のエッジ部によって制御を変えるため、画素
の並び方により決定される位相の位置を説明するための
図12に示すように位相情報を付加する画素の前後の画
素の状態を見て決定される。すなわち、同図(a)に示
すように、位相情報を付加する画素をD0 とすると、
その前方の画素をD1 、後方の画素をD-1とし、 D-1−D1 >64 ならば、位相は(b)のように前側に、 |D-1−D1 |≦64 ならば、位相は(c)のように中央に、そして、 D-1−D1 <64 ならば、位相は(d)のように後側になるように設定し
ておけばよい。
Since the control of the addition of the phase information as shown in FIG. 11E is changed depending on the edge portion of the image, as shown in FIG. 12 for explaining the position of the phase determined by the arrangement of the pixels. It is determined by looking at the state of the pixels before and after the pixel to which the phase information is added. That is, as shown in FIG. 2A, when a pixel to which phase information is added is D 0 ,
The front of the pixels D 1, the rear of pixels and D -1, if D -1 -D 1> 64, the phase on the front side as (b), | if ≦ 64 | D -1 -D 1 For example, the phase may be set at the center as shown in (c), and if D -1 -D 1 <64, the phase may be set at the rear side as shown in (d).

【0009】ところで、このようなデジタル複写機で
は、文字部以外の絵柄部や、網点部では少ない出力階調
数で疑似的に多く階調を見せるため、多値誤差拡散法や
多値ディザ法などの階調処理を用いることが一般的であ
る。このため、出力時に前述の位相処理を行うと線や文
字画像部分では、画質を向上させることができるが、文
字以外の絵柄部や網点部でこのような処理を行うと、階
調処理による画素の配列が崩れ、逆に画質劣化の原因に
なるので、位相情報は固定した方がよい。そのため、線
や文字画像部分では図12のように濃度情報により位相
を変える方式、それ以外の階調処理が行われる絵柄部や
網点部では、単純に固定の位相でパルス幅を変える方式
を行うというように、画像によって方式の切り替えが必
要になってくる。そこで、画像の文字領域を判定するこ
とが必要である。そのため、画像処理部103では領域
判定を行い、その判定信号により、文字部とそれ以外の
絵柄部、網点部の処理を切り替える。
By the way, in such a digital copying machine, in a picture part other than a character part and a halftone dot part, a large number of pseudo gray levels are shown with a small number of output gray levels. It is common to use a gradation process such as a method. For this reason, when the above-described phase processing is performed at the time of output, the image quality can be improved in a line or a character image portion, but when such processing is performed in a picture portion or a halftone portion other than a character, gradation processing is performed. It is better to fix the phase information because the arrangement of the pixels is distorted and the image quality is deteriorated. For this reason, a method of changing the phase in accordance with the density information in the line or character image portion as shown in FIG. 12, and a method of simply changing the pulse width in a fixed phase in a picture portion or a halftone portion where other gradation processing is performed. For example, it is necessary to switch the method depending on the image. Therefore, it is necessary to determine the character area of the image. Therefore, the image processing unit 103 performs the area determination, and switches the processing of the character part, the other picture part, and the halftone part according to the determination signal.

【0010】図13は、画像処理部103の構成を示す
ブロック図である。画像処理部103は、文字領域判定
部601、階調処理部602、および位相出力部603
から構成されている。すなわち、A/D変換部102か
らのデジタル信号に変換された画像信号は文字領域判定
部601に入力され、ここでパターンマッチングなどを
用いて領域判定が行われる。いま、読み取るべき画像が
図14に示すような原稿700とすると、原稿700の
文字領域702は1、それ以外の絵柄領域701を含む
領域は0の判定情報を各画素ごとに付加する。その判定
情報は判定信号として階調処理部602と位相出力部6
03に入力される。階調処理部602では階調処理の切
り替えを、そして位相出力部603では位相制御の切り
替えをそれぞれ行う。この位相出力部603の信号を元
に画像出力部104では、位相を切り替えて画像領域に
最適な画像の出力を行う。
FIG. 13 is a block diagram showing the configuration of the image processing unit 103. The image processing unit 103 includes a character area determination unit 601, a gradation processing unit 602, and a phase output unit 603.
It is composed of That is, the image signal converted into a digital signal from the A / D conversion unit 102 is input to the character region determination unit 601 where region determination is performed using pattern matching or the like. Now, assuming that the image to be read is a document 700 as shown in FIG. 14, the determination information that the character region 702 of the document 700 is 1 and the region including the picture region 701 is 0 is added for each pixel. The determination information is used as a determination signal as the gradation processing unit 602 and the phase output unit 6.
03 is input. 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 104 switches the phase and outputs an image optimal for the image area.

【0011】このようにデジタル信号として画像を扱う
複写機では、メモリに画像を蓄えておくことが可能にな
る。画像データをメモリに蓄えることができれば、1度
取り込んだ画像を何度も利用したり、また入出力のアド
レスを変え、画像の回転などの加工編集を行うことがで
きる。ただし、画像の情報量が多く、そのままメモリに
蓄えると、多くのメモリ容量が必要になり、メモリの単
価は高いことから、全体のコストが割高になってしま
う。そこで、画像データを圧縮して、メモリに蓄えられ
れば、メモリ量が少なくてすみ、コストが抑えられるた
め、ブロック符号化方式のような画像データ圧縮方法に
よって圧縮を行っている。
As described above, in a copying machine that handles an image as a digital signal, the image can be stored in a memory . If the image data can be stored in the memory, the image once captured can be used many times, and the input / output address can be changed to perform processing / editing such as image rotation. However, if the amount of information of the image is large and stored in the memory as it is, a large amount of memory is required, and the unit cost of the memory is high, so that the overall cost becomes high. 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. Therefore, the image data is compressed by an image data compression method such as a block coding method.

【0012】図15はブロック符号化方式における原画
像と画素ブロックの関係を説明するための図、図16で
はロック符号化方式による圧縮のアルゴリズムの一例を
示す図である。すなわち、画像データ圧縮方法であるブ
ロック符号化方式は、図15に示すように、原画像をブ
ロック毎に分解して、ブロック内の1バイトの濃度値L
ijを図16に示すアルゴリズムで平均値La (1バイ
ト)、階調幅指標Ld (1バイト)、画素ごとの階調量
子化符号φji(2ビット×16)にデータ量の圧縮を行
うものである。図16のQj は、復号時の量子化代表値
で、以下のように各符号が復号時に割り当てられる濃度
値である。
FIG. 15 is a diagram for explaining the relationship between an original image and a pixel block in the block coding system, and FIG. 16 is a diagram showing an example of a compression algorithm by the lock coding system. That is, in the block coding method as an image data compression method, as shown in FIG. 15, an original image is decomposed into blocks, and a 1-byte density value L in a block is obtained.
ij is compressed by the algorithm shown in FIG. 16 into an average value La (1 byte), a gradation width index Ld (1 byte), and a gradation quantization code φji (2 bits × 16) for each pixel. . Qj in FIG. 16 is a representative quantization value at the time of decoding, and is a density value assigned to each code at the time of decoding as follows.

【0013】 φij=11 → Q1 =La +3/4 Ld φij=10 → Q2 =La +1/4 Ld φij=00 → Q3 =La −1/4 Ld φij=01 → Q4 =La −3/4 Ld この符号化方式により、符号化前には画素1バイトの4
×4画素ブロックのデータ量16バイトが、符号化によ
り、 φij(16×2ビット)+La (1バイト)+Ld (1
バイト)=6バイト となり、3/8のデータ量に圧縮が行える。
Φij = 11 → Q1 = La + 3/4 Ld φij = 10 → Q2 = La + 1/4 Ld φij = 00 → Q3 = La−1 / 4 Ld φij = 01 → Q4 = La−3 / 4 Ld Depending on the encoding method, before encoding, 4
The data amount of 16 bytes of the × 4 pixel block is calculated as φij (16 × 2 bits) + La (1 byte) + Ld (1
(Byte) = 6 bytes, and compression can be performed to a data amount of 3/8.

【0014】[0014]

【発明が解決しようとする課題】ところで、上述の位相
制御を行う書き込み部を有する複写機に、画像データ圧
縮を行い、メモリに画像を格納する画像格納部を搭載し
た場合、文字領域を判定する上述の文字領域判定信号の
情報が圧縮された画像データに加えて必要で、メモリを
その分増やさなければならないという欠点があった。
When a copying machine having a writing unit for performing the above-described phase control is provided with an image storage unit for compressing image data and storing an image in a memory, a character area is determined. There is a drawback that the information of the above-described character area determination signal is required in addition to the compressed image data, and the memory must be increased accordingly.

【0015】本発明はこのような従来技術の実情に鑑み
てなされたもので、その第1の目的は、領域判定信号を
ブロック符号化方式による画像圧縮データに組み込むこ
とにより、領域判定信号のデータ量を吸収し、領域判定
信号のためのメモリ量の増大を防止する画像符号化方法
を提供することにある。
The present invention has been made in view of such circumstances of the prior art, and a first object of the present invention is to incorporate a region determination signal into image compression data according to a block coding method, thereby obtaining the data of the region determination signal. It is an object of the present invention to provide an image coding method that absorbs the amount and prevents an increase in the amount of memory for a region determination signal.

【0016】本発明の第2の目的は、領域判定信号のデ
ータ量を吸収し、領域判定信号のためのメモリ量の増大
を防止する画像符号化装置を提供することにある。
A second object of the present invention is to provide an image coding apparatus which absorbs the data amount of the area judgment signal and prevents an increase in the amount of memory for the area judgment signal.

【0017】[0017]

【課題を解決するための手段】前記第1の目的を達成す
るため、第1手段の画像符号化方法は、画像データを形
成する多階調の画素データの各々を予め設定された数に
分解してブロックデータを生成し、分解した前記ブロッ
クデータの画素毎にその濃度データを、2ビットの階調
量子化符号と平均データと階調幅指標とからなる圧縮デ
ータに符号化し、前記画像データが文字画像であるか否
かを判定し、その判定結果に基づいて画素毎に2値の領
域判定信号を出力し、この領域判定信号が前記ブロック
データ内で全て文字領域の判定信号の場合は0を、前記
ブロックデータ内で文字領域以外の判定信号を含む場合
は1を、前記圧縮データの平均データと階調幅指標との
一方の最下位ビットに挿入し、前記ブロックデータ内で
文字領域以外の判定信号を含む場合は、前記階調量子化
符号の下位ビットに画素毎の領域判定信号を挿入するこ
とを特徴としている。
According to a first aspect of the present invention, there is provided an image encoding method comprising the steps of decomposing each of multi-tone pixel data forming image data into a predetermined number. To generate block data, and for each pixel of the decomposed block data, encode the density data into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index. It is determined whether or not the image 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. Is inserted into the least significant bit of one of the average data of the compressed data and the gradation width index when a determination signal other than the character area is included in the block data, and Size If a signal is characterized by inserting a region determination signal for each pixel in the low-order bit of the gradation quantization code.

【0018】前記第1の目的を達成するため、第2手段
の画像符号化方法は、画像データを形成する多階調の画
素データの各々を予め設定された数に分解してブロック
データを生成し、分解した前記ブロックデータの画素毎
にその濃度データを、2ビットの階調量子化符号と平均
データと階調幅指標とからなる圧縮データに符号化し、
前記画像データが文字画像であるか否かを判定し、その
判定結果に基づいて画素毎に2値の領域判定信号を出力
し、この領域判定信号が前記ブロックデータ内で全て文
字領域以外の判定信号の場合は0を、前記ブロックデー
タ内で文字領域の判定信号を含む場合は1を、前記圧縮
データの平均データと階調幅指標との一方の最下位ビッ
トに挿入し、前記ブロックデータ内で文字領域の判定信
号を含む場合は、前記階調量子化符号の下位ビットに画
素毎の領域判定信号を挿入することを特徴としている。
In order to achieve the first object, the image encoding method of the second means generates block data by decomposing each of the multi-gradation pixel data forming the image data into a predetermined number. Then, for each pixel of the decomposed block data, the density data is encoded into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index,
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. In the case of a signal, 0 is inserted into the least significant bit of one of the average data of the compressed data and the gradation width index, and 1 is inserted in the case of including a character area determination signal in the block data. When a determination signal of a character area is included, an area determination signal of each pixel is inserted into lower bits of the gradation quantization code.

【0019】前記第1の目的を達成するため、第3手段
の画像符号化方法は、画像データを形成する多階調の画
素データの各々を予め設定された数に分解してブロック
データを生成し、分解した前記ブロックデータの画素毎
にその濃度データを、2ビットの階調量子化符号と平均
データと階調幅指標とからなる圧縮データに符号化し、
前記画像データが文字画像であるか否かを判定し、その
判定結果に基づいて画素毎に2値の領域判定信号を出力
し、この領域判定信号が前記ブロックデータ内で全て文
字領域の判定信号の場合は2ビット信号00を、前記ブ
ロックデータ内で全て文字領域以外の判定信号の場合は
2ビット信号01を、前記ブロックデータ内で文字領域
と文字領域以外の判定信号が混在する場合は2ビット信
号11を、前記圧縮データの平均データと階調幅指標と
の一方の下位2ビット、または、前記平均データと前記
階調幅指標の両方の最下位ビットに1ビットづつ分けて
挿入し、前記ブロックデータ内で文字領域と文字領域以
外の判定信号が混在する場合は、前記階調量子化符号の
下位ビットに画素毎の領域判定信号を挿入することを特
徴としている。
In order to achieve the first object, the image encoding method of the third means generates block data by decomposing each of multi-tone pixel data forming image data into a predetermined number. Then, for each pixel of the decomposed block data, the density data is encoded into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index,
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, and the area determination signals are all character area determination signals in the block data. , A 2-bit signal 01 is used in the block data if it is a determination signal other than a character area, and 2 if the determination signal is a mixture of a character area and a non-character area in the block data. The bit signal 11 is inserted into the lower two bits of one of the average data of the compressed data and the gradation width index, or the least significant bit of both of the average data and the gradation width index, one bit at a time and inserted. When a character area and a determination signal other than a character area are mixed in the data, an area determination signal for each pixel is inserted into the lower bits of the gradation quantization code.

【0020】前記第2の目的を達成するため、第4手段
の画像符号化装置は、画像データを形成する多階調の画
素データの各々を予め設定された数に分解してブロック
データを生成するデータ分解手段と、このデータ分解手
段が分解した前記ブロックデータの画素毎にその濃度デ
ータを、2ビットの階調量子化符号と平均データと階調
幅指標とからなる圧縮データに符号化するデータ符号化
手段と、前記画像データが文字画像であるか否かを判定
する画像判定手段と、この画像判定手段の判定結果に基
づいて画素毎に2値の領域判定信号を出力する領域判定
データ出力手段と、この領域判定データ出力手段が出力
した領域判定信号が前記ブロックデータ内で全て文字領
域の判定信号の場合は0を、前記ブロックデータ内で文
字領域以外の判定信号を含む場合は1を、前記データ符
号化手段が出力する前記圧縮データの平均データと階調
幅指標との一方の最下位ビットに挿入するブロック内領
域判定ビット挿入手段と、前記ブロックデータ内で文字
領域以外の判定信号を含む場合は、前記階調量子化符号
の下位ビットに画素毎の領域判定信号を挿入する画素単
位領域判定ビット挿入手段とを有することを特徴として
いる。
In order to achieve the second object, the image coding apparatus of the fourth means generates block data by decomposing each of the multi-gradation pixel data forming the image data into a predetermined number. And data for encoding the density data for each pixel of the block data decomposed by the data decomposing means into compressed data comprising a 2-bit gradation quantization code, average data and a gradation width index. Encoding means; image determination means for determining whether the image data is a character image; and area determination data output for outputting a binary area determination signal for each pixel based on the determination result of the image determination means Means, if the area determination signal output by the area determination data output means is a determination signal of a character area in the block data, 0 is determined, and the area other than the character area is determined in the block data. In the case of including the signal, 1 is inserted in the least significant bit of one of the average data and the gradation width index of the compressed data output from the data encoding means, When a determination signal other than a character area is included, a pixel unit area determination bit inserting means for inserting an area determination signal for each pixel into lower bits of the gradation quantization code is provided.

【0021】前記第2の目的を達成するため、第5手段
の画像符号化装置は、画像データを形成する多階調の画
素データの各々を予め設定された数に分解してブロック
データを生成するデータ分解手段と、このデータ分解手
段が分解した前記ブロックデータの画素毎にその濃度デ
ータを、2ビットの階調量子化符号と平均データと階調
幅指標とからなる圧縮データに符号化するデータ符号化
手段と、前記画像データが文字画像であるか否かを判定
する画像判定手段と、この画像判定手段の判定結果に基
づいて画素毎に2値の領域判定信号を出力する領域判定
データ出力手段と、この領域判定データ出力手段が出力
した領域判定信号が前記ブロックデータ内で全て文字領
域以外の判定信号の場合は0を、前記ブロックデータ内
で文字領域の判定信号を含む場合は1を、前記データ符
号化手段が出力する前記圧縮データの平均データと階調
幅指標との一方の最下位ビットに挿入するブロック内領
域判定ビット挿入手段と、前記ブロックデータ内で文字
領域の判定信号を含む場合は、前記階調量子化符号の下
位ビットに画素毎の領域判定信号を挿入する画素単位領
域判定ビット挿入手段とを有することを特徴としてい
る。
In order to achieve the second object, the image encoding apparatus of the fifth means generates block data by decomposing each of the multi-gradation pixel data forming the image data into a predetermined number. And data for encoding the density data for each pixel of the block data decomposed by the data decomposing means into compressed data comprising a 2-bit gradation quantization code, average data and a gradation width index. Encoding means; image determination means for determining whether the image data is a character image; and area determination data output for outputting a binary area determination signal for each pixel based on the determination result of the image determination means Means, and if the area determination signal output by the area determination data output means is a determination signal other than a character area in the block data, 0 is determined, and the area determination signal is determined in the block data. In the case of including the signal, 1 is inserted in the least significant bit of one of the average data and the gradation width index of the compressed data output from the data encoding means, When a determination signal of a character area is included, a pixel unit area determination bit inserting means for inserting an area determination signal for each pixel into lower bits of the gradation quantization code is provided.

【0022】前記第2の目的を達成するため、第6手段
の画像符号化装置は、画像データを形成する多階調の画
素データの各々を予め設定された数に分解してブロック
データを生成するデータ分解手段と、このデータ分解手
段が分解した前記ブロックデータの画素毎にその濃度デ
ータを、2ビットの階調量子化符号と平均データと階調
幅指標とからなる圧縮データに符号化するデータ符号化
手段と、前記画像データが文字画像であるか否かを判定
する画像判定手段と、この画像判定手段の判定結果に基
づいて画素毎に2値の領域判定信号を出力する領域判定
データ出力手段と、この領域判定データ出力手段が出力
した領域判定信号が前記ブロックデータ内で全て文字領
域の判定信号の場合は2ビット信号00を、前記ブロッ
クデータ内で全て文字領域以外の判定信号の場合は2ビ
ット信号01を、前記ブロックデータ内で文字領域と文
字領域以外の判定信号が混在する場合は2ビット信号1
1を前記データ符号化手段が出力する圧縮データの平均
データと階調幅指標との一方の下位2ビット、または、
前記平均データと前記階調幅指標の両方の最下位ビット
に1ビットづつ分けて挿入するブロック内領域判定ビッ
ト挿入手段と、前記ブロックデータ内で文字領域と文字
領域以外の判定信号が混在する場合は、前記階調量子化
符号の下位ビットに画素毎の領域判定信号を挿入する画
素単位領域判定ビット挿入手段とを有することを特徴と
している。
In order to achieve the second object, the image coding apparatus of the sixth means generates block data by decomposing each of the multi-gradation pixel data forming the image data into a predetermined number. And data for encoding the density data for each pixel of the block data decomposed by the data decomposing means into compressed data comprising a 2-bit gradation quantization code, average data and a gradation width index. Encoding means; image determination means for determining whether the image data is a character image; and area determination data output for outputting a binary area determination signal for each pixel based on the determination result of the image determination means Means, and when the area determination signal output by the area determination data output means is a determination signal of a character area in the block data, a 2-bit signal 00 is output in the block data. The 2-bit signal 01 in the case of the determination signal other than character region, the 2-bit signal when the determination signal other than the character region and the character region in the block data are mixed 1
1 is the lower 2 bits of one of the average data of the compressed data output by the data encoding means and the gradation width index, or
In the case where an in-block area determination bit insertion unit that inserts one bit at a time into the least significant bit of both the average data and the gradation width index and a determination signal other than a character area and a non-character area are mixed in the block data, And a pixel unit area determination bit inserting means for inserting an area determination signal for each pixel into lower bits of the gradation quantization code.

【0023】[0023]

【発明の実施の形態】以下、図1から図7を参照し、本
発明をデジタル複写機に適用した場合を例にとった実施
の形態について説明する。図1は本発明の実施の形態に
おけるデジタル複写機の概略構成を示すブロック図、図
2は図1の画像格納部の構成を示すブロック図、図3は
ブロック領域情報ビットの格納の一例を説明するための
図、図4はブロック内の複数のますの状態を説明するた
めの図、図5はブロック内の複数のますの状態の別の例
を説明するための図、図6はブロック領域情報ビットの
格納の別の例を説明するための図、そして図7はブロッ
ク内の複数のますの状態の更に別の例を説明するための
図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to a digital copying machine will be described below with reference to FIGS. FIG. 1 is a block diagram illustrating a schematic configuration of a digital copying machine according to an embodiment of the present invention, FIG. 2 is a block diagram illustrating a configuration of an image storage unit in FIG. 1, and FIG. 3 illustrates an example of storing block area information bits. FIG. 4 is a diagram for explaining a plurality of states of a plurality of squares in a block, FIG. 5 is a diagram for explaining another example of a plurality of states of a square in a block, and FIG. 6 is a block area. FIG. 7 is a diagram for explaining another example of storage of information bits, and FIG. 7 is a diagram for explaining still another example of a plurality of masquerade states in a block.

【0024】まず、図1と図2によりデジタル複写機の
構成を説明する。この実施の形態における複写機は、ス
キャナ1201、A/D変換部1202、画像処理部1
203、文字領域判定部1204、階調処理部120
5、画像格納部1206、2つの信号切り替え部120
7,1208、位相出力部1209、および画像出力部
1210とから主に構成されている。スキャナ120
1、A/D変換部1202、画像処理部1203、文字
領域判定部1204、階調処理部1205、位相出力部
1209、そして画像出力部1210の構成は、上述し
た従来例における対応する構成と同じでよい。
First, the configuration of the digital copying machine will be described with reference to FIGS. The copying machine according to this embodiment includes a scanner 1201, an A / D converter 1202, and an image processor 1
203, character area determination unit 1204, gradation processing unit 120
5. Image storage unit 1206, two signal switching units 120
7, 1208, a phase output unit 1209, and an image output unit 1210. Scanner 120
1. The configurations of the A / D conversion unit 1202, image processing unit 1203, character area determination unit 1204, gradation processing unit 1205, phase output unit 1209, and image output unit 1210 are the same as the corresponding configurations in the above-described conventional example. Is fine.

【0025】この複写機の動作とともに構成を更に詳細
に説明する。最初に画像格納部1206に画像データを
格納しないでそのまま出力する場合について説明する
と、スキャナ1201で画像データを読み込み、A/D
変換部1202で画像データをデジタル信号に変換す
る。画像処理部1203ではA/D変換部102からの
画像データのデジタル信号をガンマ変換などの画像処理
を行い、この出力により文字領域判定部1204で文字
領域を判定し、その判定信号を元に階調処理部1205
で、階調処理を切り替える。ここで、信号切り替え部1
207をB側に接続して、画像出力部1210に画像デ
ータを送る。画像出力部1210では、位相出力部12
09の位相データにより、画素ごとに位相を切り替えて
印字を行い、画像を出力する。信号切り替え部1208
をCに接続することにより、位相データは、文字領域判
定部1204で求められた文字領域を識別する領域判定
信号を直接、位相出力部1209に入力し、位相出力部
1209では、画像データと領域判定信号により、位相
データを出力する。
The construction and operation of the copying machine will be described in more detail. First, a case where the image data is output as it is without storing the image data in the image storage unit 1206 will be described.
The conversion unit 1202 converts the image data into a digital signal. The image processing unit 1203 performs image processing such as gamma conversion on the digital signal of the image data from the A / D conversion unit 102, and based on the output, determines the character area in the character area determination unit 1204, based on the determination signal. Key processing unit 1205
Switches the gradation processing. Here, the signal switching unit 1
207 is connected to the B side, and image data is sent to the image output unit 1210. In the image output unit 1210, the phase output unit 12
In accordance with the 09 phase data, printing is performed by switching the phase for each pixel, and an image is output. Signal switching unit 1208
Is connected to C, the phase data is input directly to the phase output unit 1209 with an area determination signal for identifying the character area obtained by the character area determination unit 1204, and the phase output unit 1209 outputs the image data and the area. The phase data is output according to the determination signal.

【0026】次に、画像格納部1206に画像データを
圧縮して格納し、復号して出力する場合について説明す
る。スキャナ1201、A/D変換部1202、画像処
理部1203、文字領域判定部1204そして階調処理
部1205までの処理は、上述した画像格納部1206
を用いないときと変わらない。階調処理部1205から
の画像データは、画像格納部1206で圧縮した上で記
憶される。また、文字領域判定部1204からの領域判
定信号も画像格納部1206に圧縮され記憶される。画
像格納部1206は1頁分の情報を記憶すると、画像デ
ータと領域判定信号は伸長されて出力される。このと
き、信号切り替え部1207をA側に切り替えることに
より、画像データは位相出力部1209と画像出力部1
210に送られる。一方、信号切り替え部1208をD
側に切り替えることにより、画像格納部1206からの
領域判定信号は位相出力部1209に送られる。位相出
力部1209では画像データと領域判定信号により位相
データを画像出力部1210に出力する。画像出力部1
210では、位相出力部1209からの位相データに基
づき画素ごとに位相を切り替えて印字を行い、画像を出
力する。
Next, a case where image data is compressed and stored in the image storage unit 1206, decoded, and output will be described. The processing up to the scanner 1201, the A / D conversion unit 1202, the image processing unit 1203, the character area determination unit 1204, and the gradation processing unit 1205 is performed by the image storage unit 1206 described above.
Is the same as when not using The image data from the gradation processing unit 1205 is stored after being compressed by the image storage unit 1206. Also, the area determination signal from the character area determination unit 1204 is compressed and stored in the image storage unit 1206. When the image storage unit 1206 stores information for one page, the image data and the area determination signal are expanded and output. At this time, by switching the signal switching unit 1207 to the A side, the image data is transferred to the phase output unit 1209 and the image output unit 1.
Sent to 210. On the other hand, the signal switching unit 1208
By switching to the side, the area determination signal from the image storage unit 1206 is sent to the phase output unit 1209. The phase output unit 1209 outputs the phase data to the image output unit 1210 based on the image data and the area determination signal. Image output unit 1
At 210, printing is performed by switching the phase for each pixel based on the phase data from the phase output unit 1209, and an image is output.

【0027】本発明では、画像格納部1206において
符号データと領域判定信号とを合成するところに特徴を
有するので、この部分について図2に基づいて詳細に説
明する。画像格納部1206は4ラインFIFO(先入
れ先出し)部1301、符号化部1302、2値4ライ
ンFIFO部1303、領域判定信号合成部1304、
およびメモリ1305とから主に構成されている。画像
格納部1206に出力された画像データは、4ラインF
IFO1301で1度4ライン分のデータを格納してか
ら、4×4画素ブロックごとに符号化部1302で符号
化され、La ,Ld そしてφijのデータが出力される。
一方、領域判定信号は、2値4ラインFIFO部130
3に4ライン分の信号が格納されてから、領域判定信号
合成部1304に4×4画素ブロックごとの領域判定信
号が入力され、領域判定信号がブロック単位に符号化部
1302から出力される画像データと合成される。合成
は、4×4画素ブロックごとに行われ、その方法は図4
の(a),(b)に示すように、4×4ますの中が領域
判定信号として文字領域の領域信号を1、それ以外の領
域の領域信号を0とし、図4の(a)のように4×4画
素のブロックで全て文字領域の場合は、ブロック内領域
情報ビットであるb0はb0=0とし、この場合、画素
ごとの2ビットの階調量子化符号φijは、そのままメモ
リ1305に格納される。また、図4の(b)のよう
に、4×4画素のブロックでブロック内の領域信号に非
文字領域信号0を含む場合は、ブロック内領域情報ビッ
トb0=1とし、画素ごとの2ビットの階調量子化符号
φijの下位1ビットは、対応する位置の領域判定信号に
差し替えられる。ブロック内領域情報ビットb0は、L
aまたはLd の1バイトの最下位ビットに図3に示すよ
うに格納される。なお、図3において、右端が最下位ビ
ット、左端が最上位ビットとなる。このようにして、ブ
ロック内領域情報ビットb0を最下位ビットに格納すれ
ば、復号画像に対する影響はほとんどない。このように
して領域判定信号を挿入することで、データ量を増やす
ことなく、符号データに領域信号を合成することができ
る。ただし、この方法によると、4×4画素のブロック
でブロック内の領域信号に非文字領域を含む場合、階調
量子化符号φijが1ビットの情報しか持たなくなるの
で、文字以外の部分の画質が少し劣化する可能性があ
り、文字の画質を優先した方法といえる。
The present invention is characterized in that the code data and the area determination signal are combined in the image storage unit 1206, and this feature will be described in detail with reference to FIG. The image storage unit 1206 includes a 4-line FIFO (first-in first-out) unit 1301, an encoding unit 1302, a binary 4-line FIFO unit 1303, an area determination signal combining unit 1304,
And a memory 1305. The image data output to the image storage unit 1206 has four lines F
Once the data for four lines is stored in the IFO 1301, the data is encoded by the encoding unit 1302 for each 4 × 4 pixel block, and the data of La, Ld and φij are output.
On the other hand, the area determination signal is output from the binary 4-line FIFO unit 130.
After the signals for four lines are stored in 3, an area determination signal for each 4 × 4 pixel block is input to the area determination signal synthesis unit 1304, and the area determination signal is output from the encoding unit 1302 in block units. Combined with data. The synthesis is performed for each 4 × 4 pixel block.
As shown in (a) and (b) of FIG. 4, the area signal of the character area is set to 1 and the area signal of the other areas is set to 1 as the area determination signal in the 4 × 4 square. As described above, in the case of a block of 4 × 4 pixels and all of the character area, the area information bit b0 in the block is set to b0 = 0. In this case, the 2-bit gradation quantization code φij for each pixel is stored in the memory 1305 as it is. Is stored in Also, as shown in FIG. 4B, when a non-character area signal 0 is included in an area signal in a block of a block of 4 × 4 pixels, the area information bit b0 in the block is set to 1 and two bits for each pixel are set. Is replaced by the area determination signal at the corresponding position. The intra-block area information bit b0 is L
It is stored in the least significant bit of one byte of a or Ld as shown in FIG. In FIG. 3, the right end is the least significant bit and the left end is the most significant bit. Thus, if the in-block area information bit b0 is stored in the least significant bit, there is almost no effect on the decoded image. By inserting the area determination signal in this manner, the area signal can be combined with the code data without increasing the data amount. However, according to this method, when a block of 4 × 4 pixels includes a non-character area in an area signal in the block, the gradation quantization code φij has only 1-bit information, so that the image quality of a part other than the character is reduced. It may be slightly deteriorated, and it can be said that this method gives priority to the image quality of characters.

【0028】次に、文字以外の画質を優先する方法につ
いて説明する。上述の文字の画質を優先する方法と異な
るのは、領域判定信号合成部1304の処理のみなの
で、その部分のみ、図5および図6に基づいて説明す
る。図5において、4×4のますの中が領域判定信号と
して文字領域の領域信号を1、それ以外の領域の領域信
号を0とし、図5の(a)のように、4×4画素のブロ
ックで全て非文字領域の場合は、ブロック内領域情報ビ
ットb0=0とし、この場合、画素ごとの2ビットの階
調量子化符号φijは、そのままメモリ1305に格納さ
れる。また、図5の(b)のように、4×4画素のブロ
ックでブロック内の領域信号が文字領域を含む場合は、
ブロック内領域情報ビットb0=1とし、画素ごとの2
ビットの階調量子化符号φijの下位1ビットは、対応す
る位置の領域判定信号に差し替えられる。ブロック内領
域情報ビットb0は、La またはLd の1バイトの最下
位ビットに図3に示すように格納される。このようにし
て領域判定信号を挿入することで、データ量を増やすこ
となく、符号データに領域信号を合成することができ
る。ただし、この方法によると4×4画素のブロックで
ブロック内の領域信号は文字領域を含む場合、階調量子
化符号φijが1ビットの情報しか持たなくなるので、文
字領域の部分の画質が少し劣化する可能性があり、文字
以外の絵柄領域や網点領域の画質を優先した方法といえ
る。
Next, a method of giving priority to image quality other than characters will be described. The only difference from the above-described method of prioritizing the image quality of characters is the processing of the area determination signal synthesizing unit 1304, and only that part will be described with reference to FIGS. In FIG. 5, the area signal of the character area is set to 1 and the area signal of the other areas is set to 1 as the area determination signal in the 4 × 4 square, and as shown in FIG. If all the blocks are non-character areas, the in-block area information bit b0 = 0 is set. In this case, the 2-bit gradation quantization code φij for each pixel is stored in the memory 1305 as it is. Also, as shown in FIG. 5B, when a region signal in a block of 4 × 4 pixels includes a character region,
It is assumed that the intra-block area information bit b0 = 1, and 2
The lower one bit of the bit gradation quantization code φij 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 without increasing the data amount. However, according to this method, when the area signal in the block is a 4 × 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 part is slightly degraded. Therefore, it can be said that this method gives priority to the image quality of a picture area and a halftone dot area other than characters.

【0029】次に、上述の方法のように、文字、非文字
領域の画質のどちらかを優先するのではなく、領域判定
信号の合成による劣化を文字、非文字領域で均等にし
て、領域判定信号の合成を行う方法について説明する。
この方法の上述の方法と異なるのは、領域判定信号合成
部1304の処理のみなので、その部分のみ、図7に基
づいて説明する。図7において、4×4のますの中が領
域判定信号として文字領域の領域信号を1、それ以外の
領域の領域信号を0とし、図7の(a)のように、4×
4画素のブロックで全て文字領域の場合は、2ビットの
ブロック内領域情報ビットb1=0、b0=0とし、こ
の場合、画素ごとの2ビットの階調量子化符号φijは、
そのままメモリ1305に格納される。また、図7の
(b)のように、4×4画素のブロックで全て非文字領
域の場合は、2ビットのブロック内領域情報ビットb1
=0、b0=1としこの場合も画素ごとの2ビットの階
調量子化符号φijはそのままメモリ1305に格納され
る。次に図7の(c)のように、4×4画素のブロック
でブロック内の領域信号が文字領域と非文字文字領域が
混在している場合、2ビットのブロック内領域情報ビッ
トb1=1、b0=1とし、画素ごとの2ビットの階調
量子化符号φijの下位1ビットは、対応する位置の領域
判定信号に差し替えられる。ブロック内領域情報ビット
b1,b0は、図6のに示すように、La またはLd の
1バイトの最下位2ビットに格納されるか、La または
Ld 両方の最下位1ビットに分けて格納される。このよ
うにして領域判定信号を挿入するとで、データ量を増
やすことなく、符号データに領域信号を合成することが
できる。この方法は図7の(c)に示すように、文字領
域と非文字文字領域が混在する部分では、階調量子化符
号φijが1ビットの情報しか持たなくなるので、このよ
うな領域では画質が少し劣化するが、全体の画像におい
てこのような領域は少なく、あまり劣化は目立たない。
また、La 、Ld の情報の内、2ビットをブロック内領
域情報ビットとして用いるので、復号時の画像データに
影響が出るが、画質としてはほとんど目立たない。
Next, instead of giving priority to either the image quality of the character or the non-character area as in the above-described method, the degradation caused by the synthesis of the area determination signal is made uniform in the character and non-character areas to determine the area. A method for synthesizing signals will be described.
This method differs from the above-described method only in the processing of the area determination signal combining unit 1304, and only that part will be described with reference to FIG. In FIG. 7, the area signal of the character area is set to 1 and the area signal of the other areas is set to 1 as the area determination signal in the 4 × 4 square, and as shown in FIG.
In the case of a 4-pixel block and all character regions, 2-bit in-block region information bits b1 = 0 and b0 = 0. In this case, a 2-bit gradation quantization code φij for each pixel is
It is stored in the memory 1305 as it is. As shown in FIG. 7B, in the case of a block of 4 × 4 pixels and all non-character areas, a 2-bit area information bit b1 in the block
= 0, b0 = 1, and also in this case, the 2-bit gradation quantization code φij for each pixel is stored in the memory 1305 as it is. Next, as shown in FIG. 7C, when the area signal in the block is a 4 × 4 pixel block in which a character area and a non-character character area are mixed, a 2-bit area information bit b1 = 1 in the block , B0 = 1, and the lower 1 bit of the 2-bit gradation quantization code φij for each pixel is replaced with the area determination signal at the corresponding position. As shown in FIG. 6, the in-block area information bits b1 and b0 are stored in the least significant two bits of one byte of La or Ld, or are divided into the least significant one bits of both La and Ld. . In this way, this inserting a region determination signal, without increasing the amount of data, it is possible to synthesize the area signal to the code data. According to this method, as shown in FIG. 7C, in a portion where a character region and a non-character character region coexist, the gradation quantization code φij has only one bit of information. Although it is slightly deteriorated, such a region is small in the entire image, and the 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.

【0030】[0030]

【発明の効果】これまでの説明から明らかなように、請
求項1記載の発明によれば、圧縮データと領域判定信号
とを個別に記憶したり伝送したりする必要がないので、
全体のデータ量が増大することがなく、メモリ量を減ら
すことができ、圧縮データの伝送時間の短縮などに寄与
することができる画像符号化方法が提供できる。この方
法はまた、文字領域以外の領域の符号情報を文字領域に
比べて、領域判定信号の埋め込みに多く利用するので、
文字領域優先の画質を求めるときに有効である。請求項
2記載の発明によれば、請求項1記載の発明と同様に、
圧縮データと領域判定信号とを個別に記憶したり伝送し
たりする必要がないので、全体のデータ量が増大するこ
とがなく、メモリ量を減らすことができ、圧縮データの
伝送時間の短縮などに寄与することができる画像符号化
方法が提供できる。またこの請求項2記載の方法は、文
字領域の符号情報を文字領域以外の領域に比べて、領域
判定信号の埋め込みに多く利用するので、文字領域以外
の領域優先の画質を求めるときに有効である。
As is apparent from the above description, according to the first aspect of the present invention, it is not necessary to separately store and transmit the compressed data and the area determination signal.
It is possible to provide an image coding method capable of reducing the amount of memory without increasing the entire data amount and contributing to shortening of the transmission time of compressed data. This method also uses code information of an area other than the character area more frequently for embedding the area determination signal than the character area,
This is effective when seeking image quality with priority on the character area. According to the invention described in claim 2, similar to the invention described in claim 1,
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, the memory amount can be reduced, and the transmission time of the compressed data can be reduced. An image coding method that can contribute can be provided. Further, the method according to claim 2 uses the code information of the character area more frequently for embedding the area determination signal than the area other than the character area, so that it is effective when obtaining the image quality with priority on the area other than the character area. is there.

【0031】請求項3記載の発明によれば、請求項1お
よび2記載の発明と同様に、全体のデータ量が増大する
ことがなく、メモリ量を減らすことができ、圧縮データ
の伝送時間の短縮などに寄与することができるととも
に、文字領域の符号情報と文字領域以外の領域の符号情
報を同等に領域判定信号の埋め込みに利用するので、文
字領域と文字領域以外の領域の画質のどちらかを特に優
先しないときに有効な画像符号化方法が提供できる。
According to the third aspect of the present invention, similarly to the first and second aspects of the present invention, the amount of memory can be reduced without increasing the entire data amount, and the transmission time of the compressed data can be reduced. Since it can contribute to shortening, etc., the code information of the character area and the code information of the area other than the character area are equally used for embedding the area determination signal, so either the image quality of the character area or the area other than the character area Can be provided when no priority is given to

【0032】請求項4記載の発明によれば、圧縮データ
と領域判定信号とを個別に記憶したり伝送したりする必
要がないので、全体のデータ量が増大することがなく、
圧縮データを記憶するメモリを小型化することができ、
圧縮データの伝送時間を短縮できる画像符号化装置を提
供することができる。この装置はまた、文字領域以外の
領域の符号情報を文字領域に比べて、領域判定信号の埋
め込みに多く利用するので、文字領域優先の画質を求め
るときに有効である。
According to the fourth aspect 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,
The memory for storing the compressed data can be reduced in size,
It is possible to provide an image encoding device that can reduce the transmission time of compressed data. This apparatus also uses code information of an area other than the character area more frequently than the character area to embed the area determination signal, and is therefore effective when obtaining a character area priority image quality.

【0033】請求項5記載の発明によれば、請求項4記
載の発明と同様に、全体のデータ量が増大することがな
く、圧縮データを記憶するメモリを小型化することがで
き、圧縮データの伝送時間を短縮できる画像符号化装置
を提供することができる。請求項5記載の装置はまた、
文字領域の符号情報を文字領域以外の領域に比べて、領
域判定信号の埋め込みに多く利用するので、文字領域以
外の領域優先の画質を求めるときに有効である。
According to the fifth aspect of the present invention, similarly to the fourth aspect of the present invention, it is possible to reduce the size of the memory for storing the compressed data without increasing the total data amount, It is possible to provide an image encoding device capable of shortening the transmission time of an image. The device according to claim 5 also comprises:
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 effective when obtaining the image quality with priority on the area other than the character area.

【0034】請求項6記載の発明によれば、請求項4あ
るいは5記載の発明と同様に、全体のデータ量が増大す
ることがなく、圧縮データを記憶するメモリを小型化す
ることができ、圧縮データの伝送時間を短縮できる画像
符号化装置を提供することができ、かつ文字領域の符号
情報と文字領域以外の領域の符号情報を同等に領域判定
信号の埋め込みに利用するので、文字領域と文字領域以
外の領域の画質のどちらかを特に優先しないときに有効
な画像符号化装置が提供できる。
According to the invention described in claim 6, similarly to the invention described in claim 4 or 5, the memory for storing the compressed data can be miniaturized without increasing the total data amount, It is possible to provide an image encoding device capable of shortening the transmission time of the compressed data, and to use the code information of the character region and the code information of the region other than the character region equally for embedding the region determination signal. It is possible to provide an effective image encoding device when one of the image qualities of regions other than the character region is not particularly prioritized.

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

【図1】本発明の実施の形態におけるデジタル複写機の
概略構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of a digital copying machine according to an embodiment of the present invention.

【図2】図1の画像格納部の構成を示すブロック図であ
る。
FIG. 2 is a block diagram illustrating a configuration of an image storage unit in FIG. 1;

【図3】ブロック領域情報ビットの格納の一例を示す説
明図である。
FIG. 3 is an explanatory diagram showing an example of storage of block area information bits.

【図4】ブロック内の複数のますの状態を示す説明図で
ある。
FIG. 4 is an explanatory diagram showing a plurality of squares in a block.

【図5】ブロック内の複数のますの状態の別の例を示す
説明図である。
FIG. 5 is an explanatory diagram showing another example of a plurality of squares in a block.

【図6】ブロック領域情報ビットの格納の別の例を示す
説明図である。
FIG. 6 is an explanatory diagram showing another example of storing block area information bits.

【図7】ブロック内の複数のますの状態の更に別の例を
示す説明図である。
FIG. 7 is an explanatory diagram showing still another example of a plurality of squares in a block.

【図8】従来のデジタル複写機の一例における概略構成
を示すブロック図である。
FIG. 8 is a block diagram showing a schematic configuration of an example of a conventional digital copying machine.

【図9】図8の画像出力部の構成を示すブロック図であ
る。
FIG. 9 is a block diagram illustrating a configuration of an image output unit in FIG. 8;

【図10】読み取り階調と再生画像の関係を示す説明図
である。
FIG. 10 is an explanatory diagram showing a relationship between a read gradation and a reproduced image.

【図11】読み取り階調と再生画像の関係を位相情報と
ともに示す説明図である。
FIG. 11 is an explanatory diagram showing a relationship between a read gradation and a reproduced image together with phase information.

【図12】画素の並び方により決定される位相の位置を
示す説明図である。
FIG. 12 is an explanatory diagram showing the position of a phase determined by the arrangement of pixels.

【図13】図8の画像処理部の構成を示すブロック図で
ある。
FIG. 13 is a block diagram illustrating a configuration of an image processing unit in FIG. 8;

【図14】読み取るべき原稿の一例を示す平面図であ
る。
FIG. 14 is a plan view illustrating an example of a document to be read.

【図15】ブロック符号化方式における原画像と画素ブ
ロックの関係を示す説明図である。
FIG. 15 is an explanatory diagram showing a relationship between an original image and a pixel block in the block coding method.

【図16】ロック符号化方式による圧縮のアルゴリズ
ムの一例を示す図である。
16 is a diagram showing an example of an algorithm of a compression by the block coding scheme.

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

1201 スキャナ 1202 A/D変換部 1203 画像処理部 1204 文字領域判定部 1205 階調処理部 1206 画像格納部 1207,1208 信号切り替え部 1209 位相出力部 1210 画像出力部 1301 4ラインFIFO部 1302 符号化部 1303 2値4ラインFIFO部 1304 領域判定信号合成部 1305 メモリ 1201 Scanner 1202 A / D converter 1203 Image processor 1204 Character area determination unit 1205 Gradation processor 1206 Image storage 1207, 1208 Signal switching unit 1209 Phase output unit 1210 Image output unit 1301 4-line FIFO unit 1302 Encoding unit 1303 Binary 4-line FIFO unit 1304 Area judgment signal synthesis unit 1305 Memory

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画像データを形成する多階調の画素デー
タの各々を予め設定された数に分解してブロックデータ
を生成し、 分解した前記ブロックデータの画素毎にその濃度データ
を、2ビットの階調量子化符号と平均データと階調幅指
標とからなる圧縮データに符号化し、 前記画像データが文字画像であるか否かを判定し、 その判定結果に基づいて画素毎に2値の領域判定信号を
出力し、 この領域判定信号が前記ブロックデータ内で全て文字領
域の判定信号の場合は0を、前記ブロックデータ内で文
字領域以外の判定信号を含む場合は1を、前記圧縮デー
タの平均データと階調幅指標との一方の最下位ビットに
挿入し、 前記ブロックデータ内で文字領域以外の判定信号を含む
場合は、前記階調量子化符号の下位ビットに画素毎の領
域判定信号を挿入する、ことを特徴とする画像符号化方
法。
1. A multi-tone pixel data forming image data is decomposed into a predetermined number to generate block data, and the density data of each of the decomposed block data is divided into two bits. To determine whether or not the image data is a character image, and to determine whether or not the image data is a character image, based on the determination result. A determination signal is output. When the area determination signal is a determination signal for a character area in the block data, 0 is set. When the block data includes a determination signal for a non-character area in the block data, 1 is set. If the block data includes a determination signal other than the character region in the least significant bit of one of the average data and the gradation width index, the region determination signal for each pixel is included in the lower bit of the gradation quantization code. Inserting an image encoding method, characterized in that.
【請求項2】 画像データを形成する多階調の画素デー
タの各々を予め設定された数に分解してブロックデータ
を生成し、 分解した前記ブロックデータの画素毎にその濃度データ
を、2ビットの階調量子化符号と平均データと階調幅指
標とからなる圧縮データに符号化し、 前記画像データが文字画像であるか否かを判定し、 その判定結果に基づいて画素毎に2値の領域判定信号を
出力し、 この領域判定信号が前記ブロックデータ内で全て文字領
域以外の判定信号の場合は0を、前記ブロックデータ内
で文字領域の判定信号を含む場合は1を、前記圧縮デー
タの平均データと階調幅指標との一方の最下位ビットに
挿入し、 前記ブロックデータ内で文字領域の判定信号を含む場合
は、前記階調量子化符号の下位ビットに画素毎の領域判
定信号を挿入する、ことを特徴とする画像符号化方法。
2. Decomposing each of the multi-gradation pixel data forming the image data into a predetermined number to generate block data, and for each pixel of the decomposed block data, the density data is represented by 2 bits. To determine whether or not the image data is a character image, and to determine whether or not the image data is a character image, based on the determination result. A determination signal is output. If the area determination signal is a determination signal other than a character area in the block data, 0 is set. If the block data includes a character area determination signal in the block data, 1 is set. Inserting in the least significant bit of one of the average data and the gradation width index, if the block data includes a character region determination signal, an area determination signal for each pixel is placed in the lower bit of the gradation quantization code. To enter, image coding method, characterized in that.
【請求項3】 画像データを形成する多階調の画素デー
タの各々を予め設定された数に分解してブロックデータ
を生成し、 分解した前記ブロックデータの画素毎にその濃度データ
を、2ビットの階調量子化符号と平均データと階調幅指
標とからなる圧縮データに符号化し、 前記画像データが文字画像であるか否かを判定し、 その判定結果に基づいて画素毎に2値の領域判定信号を
出力し、 この領域判定信号が前記ブロックデータ内で全て文字領
域の判定信号の場合は2ビット信号00を、前記ブロッ
クデータ内で全て文字領域以外の判定信号の場合は2ビ
ット信号01を、前記ブロックデータ内で文字領域と文
字領域以外の判定信号が混在する場合は2ビット信号1
1を、前記圧縮データの平均データと階調幅指標との一
方の下位2ビット、または、前記平均データと前記階調
幅指標の両方の最下位ビットに1ビットづつ分けて挿入
し、 前記ブロックデータ内で文字領域と文字領域以外の判定
信号が混在する場合は、前記階調量子化符号の下位ビッ
トに画素毎の領域判定信号を挿入する、ことを特徴とす
る画像符号化方法。
3. A 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 of each of the decomposed block data is represented by 2 bits. To determine whether or not the image data is a character image, and to determine whether or not the image data is a character image, based on the determination result. A determination signal 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. Is a two-bit signal 1 when a character area and a non-character area determination signal are mixed in the block data.
1 is inserted into the lower two bits of one of the average data and the gradation width index of the compressed data or the least significant bit of both of the average data and the gradation width index, one bit at a time. Wherein, when a character area and a determination signal other than a character area coexist, an area determination signal for each pixel is inserted into lower bits of the gradation quantization code.
【請求項4】 画像データを形成する多階調の画素デー
タの各々を予め設定された数に分解してブロックデータ
を生成するデータ分解手段と、 このデータ分解手段が分解した前記ブロックデータの画
素毎にその濃度データを、2ビットの階調量子化符号と
平均データと階調幅指標とからなる圧縮データに符号化
するデータ符号化手段と、 前記画像データが文字画像であるか否かを判定する画像
判定手段と、 この画像判定手段の判定結果に基づいて画素毎に2値の
領域判定信号を出力する領域判定データ出力手段と、 この領域判定データ出力手段が出力した領域判定信号が
前記ブロックデータ内で全て文字領域の判定信号の場合
は0を、前記ブロックデータ内で文字領域以外の判定信
号を含む場合は1を、前記データ符号化手段が出力する
前記圧縮データの平均データと階調幅指標との一方の最
下位ビットに挿入するブロック内領域判定ビット挿入手
段と、 前記ブロックデータ内で文字領域以外の判定信号を含む
場合は、前記階調量子化符号の下位ビットに画素毎の領
域判定信号を挿入する画素単位領域判定ビット挿入手段
と、 を有することを特徴とする画像符号化装置。
4. A data decomposing means for decomposing each of multi-tone pixel data forming image data into a predetermined number to generate block data, and a pixel of the block data decomposed by the data decomposing means. A data encoding unit for encoding the density data into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index every time; and determining whether the image data is a character image. An area determination data output means for outputting a binary area determination signal for each pixel based on the determination result of the image determination means; an area determination signal output by the area determination data output means Before the data encoding means outputs 0, when the determination signal of the character area is entirely included in the data, and 1 when the determination signal of the non-character area is included in the block data. In-block area determination bit insertion means for inserting into one of the least significant bits of the average data of the compressed data and the gradation width index, and when the block data includes a determination signal other than a character area, the gradation quantization code And a pixel unit area determination bit inserting unit for inserting an area determination signal for each pixel into lower bits of the image coding apparatus.
【請求項5】 画像データを形成する多階調の画素デー
タの各々を予め設定された数に分解してブロックデータ
を生成するデータ分解手段と、 このデータ分解手段が分解した前記ブロックデータの画
素毎にその濃度データを、2ビットの階調量子化符号と
平均データと階調幅指標とからなる圧縮データに符号化
するデータ符号化手段と、 前記画像データが文字画像であるか否かを判定する画像
判定手段と、 この画像判定手段の判定結果に基づいて画素毎に2値の
領域判定信号を出力する領域判定データ出力手段と、 この領域判定データ出力手段が出力した領域判定信号が
前記ブロックデータ内で全て文字領域以外の判定信号の
場合は0を、前記ブロックデータ内で文字領域の判定信
号を含む場合は1を、前記データ符号化手段が出力する
前記圧縮データの平均データと階調幅指標との一方の最
下位ビットに挿入するブロック内領域判定ビット挿入手
段と、 前記ブロックデータ内で文字領域の判定信号を含む場合
は、前記階調量子化符号の下位ビットに画素毎の領域判
定信号を挿入する画素単位領域判定ビット挿入手段と、
を有することを特徴とする画像符号化装置。
5. A data decomposing means for decomposing each of multi-tone pixel data forming image data into a predetermined number to generate block data, and a pixel of the block data decomposed by the data decomposing means. A data encoding unit for encoding the density data into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index every time; and determining whether the image data is a character image. An area determination data output means for outputting a binary area determination signal for each pixel based on the determination result of the image determination means; an area determination signal output by the area determination data output means Before the data encoding means outputs 0, when the data contains all the judgment signals other than the character area, and when the block data contains the judgment signal of the character area, 1 In-block area determination bit insertion means for inserting into the least significant bit of one of the average data and the gradation width index of the compressed data, and if the block data includes a determination signal of a character area, the gradation quantization code A pixel unit area determination bit insertion unit for inserting an area determination signal for each pixel into lower bits,
An image encoding device comprising:
【請求項6】 画像データを形成する多階調の画素デー
タの各々を予め設定された数に分解してブロックデータ
を生成するデータ分解手段と、 このデータ分解手段が分解した前記ブロックデータの画
素毎にその濃度データを、2ビットの階調量子化符号と
平均データと階調幅指標とからなる圧縮データに符号化
するデータ符号化手段と、 前記画像データが文字画像であるか否かを判定する画像
判定手段と、 この画像判定手段の判定結果に基づいて画素毎に2値の
領域判定信号を出力する領域判定データ出力手段と、 この領域判定データ出力手段が出力した領域判定信号が
前記ブロックデータ内で全て文字領域の判定信号の場合
は2ビット信号00を、前記ブロックデータ内で全て文
字領域以外の判定信号の場合は2ビット信号01を、前
記ブロックデータ内で文字領域と文字領域以外の判定信
号が混在する場合は2ビット信号11を前記データ符号
化手段が出力する圧縮データの平均データと階調幅指標
との一方の下位2ビット、または、前記平均データと前
記階調幅指標の両方の最下位ビットに1ビットづつ分け
て挿入するブロック内領域判定ビット挿入手段と、 前記ブロックデータ内で文字領域と文字領域以外の判定
信号が混在する場合は、前記階調量子化符号の下位ビッ
トに画素毎の領域判定信号を挿入する画素単位領域判定
ビット挿入手段と、を有することを特徴とする画像符号
化装置。
6. A data decomposing means for decomposing each of multi-gradation pixel data forming image data into a predetermined number to generate block data, and a pixel of the block data decomposed by the data decomposing means. A data encoding unit for encoding the density data into compressed data including a 2-bit gradation quantization code, average data, and a gradation width index every time; and determining whether the image data is a character image. An area determination data output means for outputting a binary area determination signal for each pixel based on the determination result of the image determination means; an area determination signal output by the area determination data output means The 2-bit signal 00 is used for the determination signal of all character areas in the data, and the 2-bit signal 01 is used for the determination signal of all other than the character area in the block data. If the lock data includes a character area and a determination signal other than the character area, the two-bit signal 11 is converted to the lower two bits of one of the average data of the compressed data output by the data encoding means and the gradation width index, or An intra-block area determination bit insertion unit that inserts one bit at a time into the least significant bit of both the average data and the gradation width index, and a case where a character area and a non-character area determination signal are mixed in the block data. A pixel unit area determination bit inserting unit for inserting an area determination signal for each pixel into lower bits of the gradation quantization code.
JP19218596A 1996-07-22 1996-07-22 Image encoding method and apparatus Expired - Fee Related JP3347944B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19218596A JP3347944B2 (en) 1996-07-22 1996-07-22 Image encoding method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19218596A JP3347944B2 (en) 1996-07-22 1996-07-22 Image encoding method and apparatus

Publications (2)

Publication Number Publication Date
JPH1042142A JPH1042142A (en) 1998-02-13
JP3347944B2 true JP3347944B2 (en) 2002-11-20

Family

ID=16287101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19218596A Expired - Fee Related JP3347944B2 (en) 1996-07-22 1996-07-22 Image encoding method and apparatus

Country Status (1)

Country Link
JP (1) JP3347944B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3432104B2 (en) * 1997-01-29 2003-08-04 株式会社リコー Image decoding device and image decoding method
JP3711810B2 (en) 1999-10-13 2005-11-02 セイコーエプソン株式会社 Image conversion apparatus, storage medium, and image conversion method

Also Published As

Publication number Publication date
JPH1042142A (en) 1998-02-13

Similar Documents

Publication Publication Date Title
JP3927388B2 (en) Image processing apparatus, image processing method, and recording medium
US5729625A (en) Image processing method and apparatus which expand a pixel into multiple pixels, with a change in the number of gray levels
US7454064B2 (en) Coder, coding method, program, and image forming apparatus for improving image data compression ratio
US6201614B1 (en) Dithered image compression system
US7502140B2 (en) Image processing apparatus
JP3347944B2 (en) Image encoding method and apparatus
US5684603A (en) Coding apparatus for bi-level images halftoned with error diffusion algorithm
JP3432104B2 (en) Image decoding device and image decoding method
JP3340014B2 (en) Image data encoding apparatus and encoding method
JPH07274006A (en) Picture processor, scanner, printer, digital copying machine and display device
JP3083084B2 (en) Image processing device
JP3340015B2 (en) Image data decoding device and decoding method
JPH07177359A (en) Facsimile equipment
JP3630828B2 (en) Image forming apparatus and image data storage method
JP3736107B2 (en) Image processing device
JP3531844B2 (en) Image processing device
JP3287708B2 (en) Image processing device
JP3374002B2 (en) Decoding device and decoding method
JP3340006B2 (en) Image processing device
JP3418243B2 (en) Image data storage controller
JP3323555B2 (en) Image processing apparatus and method
JPH1127670A (en) Decoder and decoding method
JPS6354872A (en) Coding and decoding system for picture data
JPH10285405A (en) Image data coder and image data coding method
JPH01284173A (en) Method and device for processing picture

Legal Events

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

Free format text: PAYMENT UNTIL: 20080906

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080906

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090906

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090906

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100906

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110906

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120906

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees