JPH1056573A - Block coding method - Google Patents

Block coding method

Info

Publication number
JPH1056573A
JPH1056573A JP22770796A JP22770796A JPH1056573A JP H1056573 A JPH1056573 A JP H1056573A JP 22770796 A JP22770796 A JP 22770796A JP 22770796 A JP22770796 A JP 22770796A JP H1056573 A JPH1056573 A JP H1056573A
Authority
JP
Japan
Prior art keywords
block
minimum value
quantization
image
pixel
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
JP22770796A
Other languages
Japanese (ja)
Other versions
JP3440974B2 (en
Inventor
Atsuka Matsuura
熱河 松浦
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 JP22770796A priority Critical patent/JP3440974B2/en
Publication of JPH1056573A publication Critical patent/JPH1056573A/en
Application granted granted Critical
Publication of JP3440974B2 publication Critical patent/JP3440974B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【課題】 画像情報をブロックに分割して符号かする符
号化方法において、ブロックノイズによる画像劣化を少
なくしつつ、圧縮率を向上する符号化方法を提供する。 【解決手段】 ブロック単位に画像データを分割し、各
ブロック内の最大値と最小値との間で前記ブロック内に
含まれる各画素を量子化するブロック符号化方法におい
て、画素を量子化したときに生ずる量子化誤差を前記画
素の周囲の画素に振り分けることを特徴とする。また、
前記ブロック内の最大値と最小値との差が、予め定めら
れた閾値以上である場合には第1の量子化ビット数にて
画素の量子化を行い、前記閾値未満である場合には前記
第1の量子化ビット数より小さな第2の量子化ビット数
にて画素の量子化を行うことを特徴とする。
(57) [Summary] [Problem] To provide an encoding method in which image information is divided into blocks and encoded, in which image degradation due to block noise is reduced and a compression ratio is improved. In a block encoding method for dividing image data into blocks and quantizing each pixel included in each block between a maximum value and a minimum value in each block, when the pixels are quantized, Is distributed to pixels around the pixel. Also,
When the difference between the maximum value and the minimum value in the block is equal to or larger than a predetermined threshold, the pixel is quantized by the first quantization bit number, and when the difference is smaller than the threshold, the pixel is quantized. The pixel is quantized with a second quantization bit number smaller than the first quantization bit number.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル複写装
置、ファクシミリ装置、スキャニング装置、画像ファイ
リング装置、デジタルカメラ等に使用される符号化方法
に係り、詳しくは、画像ファイ鈴号複写機、ファクシミ
リ等の画像形成装置に係り、詳しくは、ブロック単位に
画像データを分割し、各ブロック内の最大値と最小値と
の間で前記ブロック内に含まれる各画素を量子化するブ
ロック符号化方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoding method used for a digital copying apparatus, a facsimile apparatus, a scanning apparatus, an image filing apparatus, a digital camera, and the like. More specifically, the present invention relates to a block coding method for dividing image data into blocks and quantizing each pixel included in each block between a maximum value and a minimum value in each block. It is.

【0002】[0002]

【従来の技術】従来、ファクシミリ装置やデジタル複写
機等の画像データを取り扱う装置においては、画像デー
タを記憶するためのメモリ容量を少なくしたり、データ
の転送時間を短縮したりすることを目的として、画像デ
ータを符号化してデータ量を圧縮するための符号化方法
が用いられることがあった。その符号化方法の1つに、
ブロック符号化方法(BTC:Brock Trunc
ation Coding)がある。このブロック符号
化方法は、原画像データを一定の大きさのブロックに分
割し(以下、このようにして分割されたブロックを「B
TCブロック」という。)、各画素をBTCブロック内
の最大値と最小値との間で所定の量子化ビット数にて量
子化する符号化方法である。この方法で符号化した場合
には、原画像データは、各BTCブロックごとに、最大
値、最小値、及び、該ブロック内に属する各画素の量子
化された値からなる符号となる。上述の通り、上記の最
大値及び最小値は、各ブロックごとに発生するものであ
るところ、BTCブロックのサイズが大きくなればなる
ほど、画像情報にしめるブロック数が減少するから、ビ
ット数の大きい最大値及び最小値が、符号化後の符号に
しめる割合が減る。従って、画像データの圧縮率を高め
るためには、前記ブロックサイズは、大きい方が良い。
圧縮率を向上させる別のアプローチは、各画素の量子化
ビット数自体を小さくすることである。この観点から理
想とされるのは、量子化ビット数を1ビットにすること
である。
2. Description of the Related Art Conventionally, in an apparatus for handling image data, such as a facsimile machine and a digital copying machine, the purpose is to reduce the memory capacity for storing the image data and to shorten the data transfer time. In some cases, an encoding method for encoding image data to compress the data amount has been used. One of the encoding methods is
Block coding method (BTC: Block Trunc)
Coding). In this block encoding method, original image data is divided into blocks of a fixed size (hereinafter, the divided blocks are referred to as “B
It is called "TC block". ), An encoding method for quantizing each pixel between a maximum value and a minimum value in a BTC block with a predetermined number of quantization bits. When encoding is performed by this method, the original image data is a code including a maximum value, a minimum value, and a quantized value of each pixel belonging to each BTC block. As described above, since the maximum value and the minimum value are generated for each block, as the size of the BTC block increases, the number of blocks included in the image information decreases. And the ratio of the minimum value to the encoded code is reduced. Therefore, in order to increase the compression ratio of image data, the larger the block size, the better.
Another approach to improving the compression ratio is to reduce the number of quantization bits in each pixel itself. From this point of view, what is ideal is to set the number of quantization bits to 1 bit.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
ブロック符号化方法において、単にブロックサイズを大
きくしたり、単に量子化ビット数を1ビットにしたりす
ると、圧縮率は向上するものの、符号を復号して画像を
形成した場合に、ブロックとブロックとの境界部分に階
調差が生じ、この階調差によって該境界部分が目につい
てしまうという、いわゆるブロックノイズが発生するこ
ととなっていた。
However, in the conventional block coding method, if the block size is simply increased or the number of quantization bits is simply set to 1 bit, the compression rate is improved, but the code is decoded. When an image is formed by the above method, a gradation difference occurs at a boundary portion between blocks, and the gradation difference causes so-called block noise that the boundary portion becomes noticeable.

【0004】本発明は以上の問題点に鑑みなされたもの
であり、その目的とするところは、画像情報をブロック
に分割して符号化する符号化方法において、ブロックノ
イズによる画像劣化を少なくしつつ、圧縮率を向上する
符号化方法を提供することである。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a coding method for coding by dividing image information into blocks while reducing image degradation due to block noise. , An encoding method for improving a compression ratio.

【0005】[0005]

【課題を解決するための手段】上記問題点を解決するた
めに、請求項1のブロック符号化方法は、ブロック単位
に画像データを分割し、各ブロック内の最大値と最小値
との間で前記ブロック内に含まれる各画素を量子化する
ブロック符号化方法において、画素を量子化したときに
生ずる量子化誤差を前記画素の周囲の画素に振り分ける
ことを特徴とするものである。
According to a first aspect of the present invention, there is provided a block encoding method, comprising dividing image data into blocks, and determining a maximum value and a minimum value in each block. In a block encoding method for quantizing each pixel included in the block, a quantization error generated when the pixel is quantized is distributed to pixels surrounding the pixel.

【0006】請求項1のブロック符号化方法において
は、画素を量子化した場合に生ずる量子化誤差を該量子
化した画素の周囲に存在する画素に振り分ける。これに
よれば、各画素において生ずる量子化誤差に相当する分
の画像濃度が、その全てではないが、周辺画素によって
順次保存されることとなり、画素の集合としてみれば、
上記画像データで構成される原画像の濃度に近い画像濃
度を再現することができ、ブロック全体の階調性を向上
をすることができる。この結果、隣接するブロックのい
ずれもが原画像の濃度に近づくこととなる。よって、ブ
ロックの大きさを従来以上に拡大しても、ブロックノイ
ズの発生を抑制することができる。
According to the block encoding method of the present invention, a quantization error generated when a pixel is quantized is distributed to pixels existing around the quantized pixel. According to this, the image density corresponding to the quantization error generated in each pixel is sequentially stored by peripheral pixels, but not all of them, and as a set of pixels,
An image density close to the density of the original image composed of the image data can be reproduced, and the gradation of the entire block can be improved. As a result, each of the adjacent blocks approaches the density of the original image. Therefore, even if the size of the block is enlarged more than before, the occurrence of block noise can be suppressed.

【0007】ここで、請求項1のブロック符号化方法で
は、最大値と最小値の間で各画素の量子化を行うが、最
大値と最小値の差が大きくても小さくても一律の量子化
ビット数で量子化を行うことになる。しかし、最大値と
最小値との差が小さい場合は、量子化ビット数を小さく
しても、量子化誤差が大きくならない。
Here, in the block coding method according to the first aspect, each pixel is quantized between the maximum value and the minimum value. However, even if the difference between the maximum value and the minimum value is large or small, uniform quantization is performed. The quantization is performed by the number of quantization bits. However, when the difference between the maximum value and the minimum value is small, the quantization error does not increase even if the number of quantization bits is reduced.

【0008】そこで、請求項2のブロック符号化方法
は、前記ブロック内の最大値と最小値との差が、予め定
められた閾値以上である場合には第1の量子化ビット数
にて画素の量子化を行い、前記閾値未満である場合には
前記第1の量子化ビット数より小さな第2の量子化ビッ
ト数にて画素の量子化を行うことを特徴とするものであ
る。
Therefore, in the block encoding method according to the present invention, when the difference between the maximum value and the minimum value in the block is equal to or larger than a predetermined threshold value, the pixel is encoded with the first quantization bit number. , And if the value is smaller than the threshold value, the pixel is quantized with a second quantization bit number smaller than the first quantization bit number.

【0009】これによって、請求項2のブロック符号化
方法においては、ブロックの最大値と最小値との差が予
め定められた閾値より小さい場合には、量子化誤差を大
きくすることなく、量子化ビット数を小さくすることが
できる。
According to the block encoding method of the second aspect, when the difference between the maximum value and the minimum value of the block is smaller than a predetermined threshold, the quantization is performed without increasing the quantization error. The number of bits can be reduced.

【0010】ここで、量子化誤差を順次周辺画素に振り
分けてゆくと、ブロック内の外延近傍にある画素の量子
化誤差は、当該ブロックを越えて隣接したブロックの画
素にも振り分けられることとなる。この場合には、上記
隣接ブロックの画素に正の量子化誤差が加えられて、本
来の上記隣接ブロック内における本来の最大値を越えて
しまったり、逆に負の量子化誤差が加えられて、本来の
最小値を下回ったりする場合が生ずる。すると、上記隣
接ブロック内の画素の量子化を行う場合の基準となる最
大値または最小値が、本来の画像データの最大値又最小
値から変化してしまい、その結果、適正な符号化が行わ
れずブロックノイズが発生してしまうことがある。
Here, when the quantization errors are sequentially distributed to the peripheral pixels, the quantization errors of the pixels in the vicinity of the extension in the block are also distributed to the pixels of the adjacent block beyond the block. . In this case, a positive quantization error is added to the pixels of the adjacent block, which exceeds the original maximum value in the original adjacent block, or a negative quantization error is added, In some cases, the value falls below the original minimum value. Then, the maximum value or the minimum value used as a reference when quantizing the pixels in the adjacent block is changed from the maximum value or the minimum value of the original image data. As a result, appropriate encoding is performed. Block noise may occur.

【0011】そこで、請求項3のブロック符号化方法に
おいては、前記量子化誤差の振り分け先がブロックを越
えて生じた場合であって、前記量子化誤差の振り分けの
結果、前記ブロックに隣接したブロック内の最大値又は
最小値を変化させることとなるときには、変化前の最大
値及び最小値を用いて、前記隣接したブロックでの量子
化を行う。
According to a third aspect of the present invention, there is provided a block encoding method, wherein the allocation of the quantization error is performed over a block, and as a result of the allocation of the quantization error, a block adjacent to the block is determined. When the maximum value or the minimum value is changed, quantization is performed in the adjacent block using the maximum value and the minimum value before the change.

【0012】また、請求項4のブロック符号化方法にお
いては、前記量子化誤差の振り分け先を、同一ブロック
内にのみ行う。
Further, in the block encoding method according to the fourth aspect, the quantization error is distributed to only the same block.

【0013】これによって、請求項3又は請求項4のブ
ロック符号化方法においては、隣接ブロックの本来的な
最大値及び最小値を変化させることがない。
Thus, in the block coding method according to claim 3 or 4, the original maximum value and minimum value of the adjacent block are not changed.

【0014】[0014]

【発明の実施の形態】以下、本発明を画像形成装置であ
るデジタル複写機(以下、「複写機」という。)に適用
した第1の実施形態について説明する。まず、複写機1
の概略構成図である図10を用いて、本実施形態にかか
る複写機の構成、動作につき説明する。本実施形態にお
ける複写機1は、大きくは、画像読み取り手段としての
スキャナ2と画像出力手段としてのプリンタ3とからな
る。上記スキャナ2は、原稿画像を光学的に読み取るた
めのものであり、原稿載置台としてのコンタクトガラス
4、露光ランプ5、反射ミラー8、結像レンズ7、及び
CCDイメージセンサ6等からなる。上記露光ランプ5
としては、ハロゲンランプが使用されるのが一般的であ
る。このスキャナ2による原稿画像の読み取りは次のよ
うにして行われる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment in which the present invention is applied to a digital copying machine (hereinafter, referred to as "copier") which is an image forming apparatus will be described. First, copy machine 1
The configuration and operation of the copying machine according to the present embodiment will be described with reference to FIG. The copying machine 1 according to the present embodiment mainly includes a scanner 2 as an image reading unit and a printer 3 as an image output unit. The scanner 2 is for optically reading an original image, and includes a contact glass 4 as an original mounting table, an exposure lamp 5, a reflection mirror 8, an imaging lens 7, a CCD image sensor 6, and the like. Exposure lamp 5
Generally, a halogen lamp is used. Reading of a document image by the scanner 2 is performed as follows.

【0015】上記コンタクトガラス4上に載置された原
稿を露光ランプ5によって光照射し、原稿からの反射光
を反射ミラー8等により結像レンズ7に導く。この結像
レンズ7にて上記反射光をCCDイメージセンサ6上に
結像させる。該CCDイメージセンサ6は、上記反射光
を原稿画像に対応したデジタル電気信号に変換する。こ
のCCDイメージセン6は、フルカラーイメージセンサ
であり、与えられ光信号を、例えば、R(レッド)、G
(グリーン)及びB(ブルー)の各色に色分解し、各色
8ビット256階調のデジタル電気信号を出力する。ま
た、上記CCDイメージセンサ6は、図面に対して垂直
方向(この方向を主走査方向ともいう。)に列状に配置
されている。上記CCDイメージセンサ6の出力である
デジタル電気信号は、後述する画像処理部にて、色変換
処理等の画像処理がなされ、シアン(Cyan:以下、
Cという)、マゼンタ( Magenta:以下、Mと
いう)、イエロー(Yellow:以下、Yという)及
び黒(以下、Kという)のカラー画像データとなる。上
記カラー画像データを、次に述べるプリンタ3にて、
C、M、Y、Kのトナーにより顕像化を行い、得られた
トナー像を重ねあわせてフルカラーの画像を形成する。
A document placed on the contact glass 4 is irradiated with light by an exposure lamp 5 and light reflected from the document is guided to an imaging lens 7 by a reflection mirror 8 or the like. The reflected light is imaged on the CCD image sensor 6 by the imaging lens 7. The CCD image sensor 6 converts the reflected light into a digital electric signal corresponding to a document image. The CCD image sensor 6 is a full-color image sensor, and converts a given optical signal into, for example, R (red), G
(Green) and B (blue) are separated into colors, and a digital electric signal of 8 bits for each color and 256 gradations is output. The CCD image sensors 6 are arranged in a row in a direction perpendicular to the drawing (this direction is also referred to as a main scanning direction). The digital electric signal output from the CCD image sensor 6 is subjected to image processing such as color conversion processing in an image processing section described later, and is subjected to cyan (Cyan: hereinafter).
C), magenta (hereinafter referred to as M), yellow (hereinafter referred to as Y), and black (hereinafter referred to as K) color image data. The color image data is converted by the printer 3 described below into
Visualization is performed using C, M, Y, and K toners, and the obtained toner images are superimposed to form a full-color image.

【0016】上記プリンタ3の略中央部には、像担持体
としての感光体21が配置されている。該感光体21
は、有機感光体(OPC)ドラムであり、その外径は、
120mm程度である。上記感光体の周囲には、感光体
表面を一様に帯電する帯電装置11、K現像ユニット1
2、C現像ユニット13、M現像ユニット14、Y現像
ユニット16、中間転写ベルト19、及びクリーニング
装置10等が配置されている。また、上記感光体21の
上方であって、上記スキャナ2の下方には、前述したカ
ラー画像データに基づいて光ビームを発生して、一様帯
電された上記感光体21表面を光走査するレーザ光学系
9が設けられている。このレーザ光学系9は、光ビーム
を発生するレーザダイオード、該光ビームを偏向するポ
リゴンミラー等からなる。
At substantially the center of the printer 3, a photosensitive member 21 as an image carrier is arranged. The photoconductor 21
Is an organic photoreceptor (OPC) drum, the outer diameter of which is
It is about 120 mm. A charging device 11 for uniformly charging the surface of the photoconductor, a K developing unit 1 are provided around the photoconductor.
2, a C developing unit 13, an M developing unit 14, a Y developing unit 16, an intermediate transfer belt 19, a cleaning device 10, and the like. A laser that generates a light beam based on the above-described color image data and scans the surface of the uniformly charged photoconductor 21 above the photoconductor 21 and below the scanner 2. An optical system 9 is provided. The laser optical system 9 includes a laser diode that generates a light beam, a polygon mirror that deflects the light beam, and the like.

【0017】かかる構成によって行われるプリンタ2に
おける画像形成動作を、K画像データに基づく場合を例
にして説明すれば次のとおりである。上記レーザ光学系
9からのK画像データに基づく光ビームにより感光体2
1表面上に形成された潜像は、これに対応するK現像ユ
ニット12によって現像され、Kトナー像となる。この
トナー像は、上記中間転写ベルト19に転写される。以
下、この感光体21から中間転写ベルト19へのトナー
像の転写をベルト転写という。以上のような、潜像の形
成、現像、及びベルト転写という一連の動作が、CMY
Kの4色について行われ、中間転写ベルト19上には4
色重ねトナー像が形成される。この4色重ねトナー像
を、給紙ユニット22から給送されてきた記録媒体、例
えば記録紙上に、転写バイアスローラ23によって一括
して転写する。
An image forming operation in the printer 2 performed by the above configuration will be described below by taking as an example a case based on K image data. The photosensitive member 2 is irradiated with a light beam based on the K image data from the laser optical system 9.
The latent image formed on one surface is developed by the corresponding K developing unit 12 to become a K toner image. This toner image is transferred to the intermediate transfer belt 19. Hereinafter, the transfer of the toner image from the photoconductor 21 to the intermediate transfer belt 19 is referred to as belt transfer. A series of operations such as formation of a latent image, development, and belt transfer as described above are performed by CMY
K for the four colors K.
A color superimposed toner image is formed. The four-color superimposed toner image is collectively transferred by a transfer bias roller 23 onto a recording medium fed from the paper feeding unit 22, for example, a recording paper.

【0018】上記4色重ねトナー像が形成された記録媒
体は、搬送ベルト16によって定着装置17に搬送され
る。上記定着装置17は、加熱及び加圧によって4色重
ねのトナー像を溶融し、記録媒体上に定着する。定着が
完了した記録媒体は、排紙トレイ24上に、排出され
る。一方、感光体21の表面に残留したトナーは、クリ
ーニング装置10によって回収され、感光体21表面の
クリーニングが行われる。クリーニング後の感光体21
表面は、除電装置によって除電される。また、4色重ね
画像を中間転写ベルト19から記録媒体上に転写した後
に、上記中間転写ベルト19上に残留したトナーは、ベ
ルトクリーニング装置20によって回収され、中間転写
ベルト19表面のクリーニングが行われる。
The recording medium on which the four-color superimposed toner image is formed is conveyed to a fixing device 17 by a conveying belt 16. The fixing device 17 melts the four-color superimposed toner image by heating and pressing, and fixes the toner image on a recording medium. The recording medium on which the fixing is completed is discharged onto the paper discharge tray 24. On the other hand, the toner remaining on the surface of the photoconductor 21 is collected by the cleaning device 10, and the surface of the photoconductor 21 is cleaned. Photoconductor 21 after cleaning
The surface is neutralized by a neutralization device. Further, after transferring the four-color superimposed image from the intermediate transfer belt 19 onto the recording medium, the toner remaining on the intermediate transfer belt 19 is collected by the belt cleaning device 20, and the surface of the intermediate transfer belt 19 is cleaned. .

【0019】次に、図11に基づいて複写機1の画像処
理部30について説明する。図11は画像処理部30の
概略構成を示すブロック図である。スキャナ2からの
R、G、及びBの3色に色分解されたデジタル信号は、
ラインメモリ31を介して、シェーディング補正回路1
02に入力される。上記ラインメモリは、主として、後
述する画像データの符号化のために設けられているもの
である。上記シェーディング補正回路32は、CCDイ
メージセンサ6の各素子の特性のばらつきや露光ランプ
5の照度むら等による影響を補正するためのものであ
る。シェディング補正回路32からの出力はRGBγ補
正回路33に入力される。このRGBγ補正回路33に
よって、スキャナ2からのデジタル信号を反射率データ
から明度データに変換する。
Next, the image processing section 30 of the copying machine 1 will be described with reference to FIG. FIG. 11 is a block diagram illustrating a schematic configuration of the image processing unit 30. The digital signal color-separated into three colors of R, G and B from the scanner 2 is
The shading correction circuit 1 via the line memory 31
02 is input. The line memory is provided mainly for encoding image data described later. The shading correction circuit 32 is for correcting the effects of variations in the characteristics of each element of the CCD image sensor 6, uneven illuminance of the exposure lamp 5, and the like. The output from the shedding correction circuit 32 is input to the RGBγ correction circuit 33. The RGBγ correction circuit 33 converts the digital signal from the scanner 2 from reflectance data to brightness data.

【0020】RGBγ補正回路33の出力は、画像分離
回路34及びMTF(Modulation Tran
sfer Function)補正回路35に入力され
る。上記画像分離回路34は、原稿画像における文字部
と絵柄部との判定及び原稿画像における有彩色と無彩色
との判定を行い、その結果を出力する。この画像分離回
路34の出力は、後述するMTF補正回路35、色変換
−UCR処理回路37、変倍回路38、画像加工回路3
9、MTFフィルタ40、γ補正回路41、符号化装置
42、画像メモリ43、及び、復号装置44に入力さ
れ、各回路等における処理に利用される。
The output of the RGB γ correction circuit 33 is supplied to an image separation circuit 34 and an MTF (Modulation Tran).
sfer Function) correction circuit 35. The image separation circuit 34 determines a character portion and a picture portion in the document image and determines a chromatic color and an achromatic color in the document image, and outputs the result. The output of the image separation circuit 34 is supplied to an MTF correction circuit 35, a color conversion-UCR processing circuit 37, a scaling circuit 38,
9, input to the MTF filter 40, the γ correction circuit 41, the encoding device 42, the image memory 43, and the decoding device 44, and used for processing in each circuit and the like.

【0021】上記MTF補正回路35は、スキャナ2等
の入力系の周波数特性を補正するものであり、特に高周
波領域における周波数特性の劣化を補正する。上記MT
F補正が終了した信号は、色相判定回路36及び色変換
−UCR処理回路37に入力される。上記色相判定回路
36は、MTF補正回路35からの出力信号が、R、
G、B、C、M、又はYのいずれの色相の信号であるの
かを判定して、上記色変換−UCR処理回路37で色変
換のために使用される色変換係数を選択する。上記色変
換−UCR処理回路37は、色変換部とUCR(Und
er ColorRemoval)処理部とからなる。
該色変換部は、スキャナ等の入力系の色分解特性とプリ
ンタで使用される色剤(色トナー)の分光特性の違いを
補正して、忠実な色再現に必要なY、M及びCそれぞれ
の色材の量を計算する部分である。
The MTF correction circuit 35 corrects the frequency characteristics of the input system of the scanner 2 and the like, and particularly corrects the deterioration of the frequency characteristics in a high frequency region. MT above
The signal after the F correction is input to the hue determination circuit 36 and the color conversion / UCR processing circuit 37. The hue determination circuit 36 determines that the output signal from the MTF correction circuit 35 is R,
It is determined which of the hues G, B, C, M, and Y the signal is, and the color conversion-UCR processing circuit 37 selects a color conversion coefficient used for color conversion. The color conversion-UCR processing circuit 37 includes a color conversion unit and a UCR (Und
er ColorRemoval) processing unit.
The color conversion unit corrects the difference between the color separation characteristics of an input system such as a scanner and the spectral characteristics of a colorant (color toner) used in a printer, and converts each of Y, M, and C necessary for faithful color reproduction. Is a part for calculating the amount of the color material.

【0022】上記UCR処理部は、Y、M及びCの3色
が重なる部分(共通濃度部分)を、Kに置き換えるため
のUCR処理を行う。これは、C、M及びYの3色を重
ねると、理論的には黒になるはずであるが、実際は完全
な黒とならず若干グレーバランスがくずれて再現される
ことを防止するためである。
The UCR processing section performs a UCR process for replacing a portion where three colors of Y, M and C overlap (a common density portion) with K. This is because, if three colors of C, M, and Y are superimposed, the color should theoretically be black, but it is not completely black, but the gray balance is slightly degraded and reproduced. .

【0023】上記色変換−UCR処理回路37の出力
は、変倍回路38に入力される。この変倍回路38は、
画像の縦横変倍を行う回路である。変倍回路38の出力
は、画像加工回路39に入力される。この画像加工回路
39は、画像のリピート処理等の特定の画像加工を行う
回路である。この画像加工回路39からの出力は、MT
Fフィルタ40に入力される。該MTFフィルタ40
は、使用者の好みに応じて、画像の解像度を優先させる
ためのエッジ強調処理や、画像の階調性を優先させるた
めの平滑化処理等の入力された信号の周波数特性を変更
する処理を行う。
The output of the color conversion / UCR processing circuit 37 is input to a scaling circuit 38. This scaling circuit 38
This is a circuit that performs vertical and horizontal scaling of an image. The output of the scaling circuit 38 is input to an image processing circuit 39. The image processing circuit 39 is a circuit that performs a specific image processing such as an image repeat process. The output from the image processing circuit 39 is MT
Input to the F filter 40. The MTF filter 40
According to the user's preference, processing to change the frequency characteristics of the input signal, such as edge enhancement processing for prioritizing the resolution of the image and smoothing processing for prioritizing the gradation of the image, is performed. Do.

【0024】MTFフィルタ40の出力信号は、入力画
像信号としてγ補正回路41に入力される。このγ補正
回路41は、γ補正(γ変換ともいう)を行う回路であ
る。具体的には、プリンタ3の特性に応じて、画像信号
変換テーブルを用いることによって、上記入力画像信号
をプリンタ2での画像形成に供する画像データに変換す
るための回路である。
The output signal of the MTF filter 40 is input to the gamma correction circuit 41 as an input image signal. The gamma correction circuit 41 is a circuit that performs gamma correction (also referred to as gamma conversion). Specifically, it is a circuit for converting the input image signal into image data to be used for image formation in the printer 2 by using an image signal conversion table according to the characteristics of the printer 3.

【0025】このようにして、スキャナ2からのデジタ
ル信号は、シェーディング補正からγ補正回路110ま
での一連の画像処理によって、画像データとなる。上記
画像データは、通常であれば、そのままプリンタ2に送
られるが、本実施形態においては、上記画像データを符
号化装置42によってデータ圧縮し、画像メモリに記憶
することが可能であり、この記憶された符号を復号装置
44で複合し、複合した画像データに基づいて、プリン
タ3における画像形成を行うことも可能である。この点
については、後に詳述する。
As described above, the digital signal from the scanner 2 becomes image data by a series of image processing from the shading correction to the γ correction circuit 110. Normally, the image data is sent to the printer 2 as it is, but in the present embodiment, the image data can be compressed by the encoding device 42 and stored in the image memory. The decoded code can be combined by the decoding device 44, and an image can be formed in the printer 3 based on the combined image data. This will be described in detail later.

【0026】以上の様な画像処理部30を構成する各回
路の制御を行うために、ROM47、RAM46及びC
PU45が、バスライン49によって接続されている。
また、上記CPU45は、シリアルインターフェースを
介して複写機1のメイン制御部48に接続されている。
これにより、複写機1の操作部から入力され、メイン制
御部48が受け取った使用者の指示を、コマンドとし
て、CPU45に送信することができる。
In order to control each circuit constituting the image processing unit 30 as described above, a ROM 47, a RAM 46 and a C
The PU 45 is connected by a bus line 49.
The CPU 45 is connected to a main control unit 48 of the copying machine 1 via a serial interface.
Thus, the user's instruction input from the operation unit of the copying machine 1 and received by the main control unit 48 can be transmitted to the CPU 45 as a command.

【0027】プリンタ3に送られた画像データは、前述
したレーザ光学系9におけるレーザダイオードの発光を
制御するためのレーザ変調回路50に入力される。上記
レーザ変調回路50について図12に基づいて説明す
る。図12は、レーザ変調回路50の回路ブロック図で
ある。入力される画像データは、1画素8ビットからな
る。この画像データは、ルックアップテーブル51を使
用してガンマ変換された後、パルス幅変調回路52に入
力される。このパルス幅変調回路52は、8ビットの画
像データのうちの上位3ビットの信号に基づいてパルス
幅を決定する。このパルス幅は、3ビットの信号で表現
できる8の状態(8値)のうちから選択される。パルス
幅が決定されると、パルス幅変調回路52の後段に設け
られたパワー変調回路53によって、パワー変調、即ち
発光強度(発光量)の変調が行われる。このパワー変調
回路53によるパワー変調は、上記画像データの下位5
ビットの信号に基づいて行われ、5ビットの信号で表現
できる32の状態(32値)のなかから1つの状態が選
択される。
The image data sent to the printer 3 is input to a laser modulation circuit 50 for controlling light emission of a laser diode in the laser optical system 9 described above. The laser modulation circuit 50 will be described with reference to FIG. FIG. 12 is a circuit block diagram of the laser modulation circuit 50. Input image data is composed of 8 bits per pixel. This image data is subjected to gamma conversion using a look-up table 51 and then input to a pulse width modulation circuit 52. The pulse width modulation circuit 52 determines the pulse width based on the upper 3 bits of the 8-bit image data. This pulse width is selected from eight states (eight values) that can be represented by a 3-bit signal. When the pulse width is determined, power modulation, that is, modulation of light emission intensity (light emission amount) is performed by a power modulation circuit 53 provided at a subsequent stage of the pulse width modulation circuit 52. The power modulation by the power modulation circuit 53 is performed in the lower 5 bits of the image data.
This is performed based on a bit signal, and one state is selected from 32 states (32 values) that can be expressed by a 5-bit signal.

【0028】こうして、パルス幅変調及びパワー変調を
経た後の画像データに基づいて、レーザダイオード54
が発光する。このレーザダイオード54の発光強度を、
フォトディテクタ55によってモニターし、該フォトデ
ィテクタ55の出力をパワー変調回路53にフィードバ
ックすることによって、1画素ごとの発光強度の補正を
行う。
Thus, based on the image data after the pulse width modulation and the power modulation, the laser diode 54
Emits light. The emission intensity of this laser diode 54 is
The light emission intensity is corrected for each pixel by monitoring with the photo detector 55 and feeding back the output of the photo detector 55 to the power modulation circuit 53.

【0029】次に、図1及び図2に基づいて、第1の実
施形態にかかる符号化装置の構成及び動作について説明
する。図1は第1の実施形態にかかる符号化装置42の
構成ブロック図であり、図2は、第1の実施形態にかか
る符号化装置42で行われる符号化の処理動作を示すフ
ローチャートである。 (以下、余白)
Next, the configuration and operation of the encoding device according to the first embodiment will be described with reference to FIGS. FIG. 1 is a configuration block diagram of an encoding device 42 according to the first embodiment, and FIG. 2 is a flowchart illustrating an encoding processing operation performed by the encoding device 42 according to the first embodiment. (Hereinafter, margin)

【0030】図1に示すように、本実施形態にかかる符
号化装置42は、画像データをBTCブロックに分割す
るブロック化器101、該BTCブロック分の画像デー
タを一時的に記憶するn×mバッファ102、BTCブ
ロック中に存在する画素の最大値及び最小値を検出する
最大値・最小値検出器103、最大値及び最小値を符号
化する最大値・最小値エントロピー符号化器104、最
大値及び最小値を記憶する最大値・最小値記憶部10
5、上記最大値及び最小値に従って画素ごとの量子化を
行う量子化器106、量子化値を符号化する量子化値エ
ントロピー符号化器107、量子化のの際に生ずる量子
化誤差を記憶する量子化誤差記憶部110、量子化誤差
を拡散するために使用される拡散マトリクスを記憶する
拡散マトリクス記憶部111、量子化誤差と拡散マトリ
クスとに基づいて、各画素に拡散する(振り分ける)誤
差を演算する量子化誤差拡散部109、及び、量子化誤
差拡散部109での演算結果に基づいて各画素に量子化
誤差を加算する加算器108からなる。このうち、量子
化誤差記憶部110、拡散マトリクス記憶部111、量
子化誤差拡散部109、及び加算器108を設けている
点が、本実施形態にかかる符号化装置42特徴部であっ
て、その他の点は、従来のブロック符号化装置と同様の
構成となっている。
As shown in FIG. 1, a coding apparatus 42 according to the present embodiment includes a block converter 101 for dividing image data into BTC blocks, and an n × m for temporarily storing the image data of the BTC blocks. A buffer 102, a maximum / minimum value detector 103 for detecting the maximum and minimum values of the pixels present in the BTC block, a maximum / minimum value entropy encoder 104 for encoding the maximum and minimum values, a maximum value And minimum / maximum storage 10 for storing the minimum and maximum values
5. Quantizer 106 that performs quantization for each pixel in accordance with the maximum value and minimum value, quantized value entropy encoder 107 that encodes the quantized value, and stores the quantization error generated at the time of quantization. A quantization error storage unit 110, a diffusion matrix storage unit 111 for storing a diffusion matrix used for diffusing the quantization error, and an error to be diffused (allocated) to each pixel based on the quantization error and the diffusion matrix. It comprises a quantization error diffusion unit 109 for performing an operation, and an adder 108 for adding a quantization error to each pixel based on the operation result of the quantization error diffusion unit 109. Among them, the point that the quantization error storage unit 110, the diffusion matrix storage unit 111, the quantization error diffusion unit 109, and the adder 108 are provided is a characteristic part of the encoding device 42 according to the present embodiment. Is similar to that of the conventional block coding apparatus.

【0031】かかる構成を有する第1の実施形態の符号
化装置において、図2に示すような処理動作によって、
画像データの符号化を行う。以下、図2を参照して説明
する。まず、スキャナ2から1画素8ビットで256階
調からなる画像情報を、ラインメモリ31に読み込む
(ステップ201)。この画像情報は、前述したよう
に、シェーディング補正からγ補正までの各処理が行わ
れ、画像データとして符号化装置42に入力される。こ
の画像データを符号化装置42の上記ブロック化器10
1にてn×m画素のBTCブロックに分割する(ステッ
プ202)。
In the encoding apparatus according to the first embodiment having such a configuration, the processing operation as shown in FIG.
Encodes image data. Hereinafter, description will be made with reference to FIG. First, the scanner 2 reads image information consisting of 256 gradations with 8 bits per pixel into the line memory 31 (step 201). As described above, this image information is subjected to each processing from shading correction to γ correction, and is input to the encoding device 42 as image data. The image data is converted into the block
In step 1, the image is divided into BTC blocks of nxm pixels (step 202).

【0032】ここで、上記BTCブロックは、図9に示
したように、スキャナの主走査方向に伸びるラインを行
とし、上記主走査方向に直交する副走査方向に伸びるラ
インを列とした場合にn行×m列(n及びmは、1以上
の正の整数)からなるブロックである。従って主走査方
向に連続するm画素と、副走査方向に連続するn画素か
らなるn画素×m画素のブロックとして構成される。こ
のようなBTCブロックへの分割を行うために、上記ラ
インメモリ31は、すくなくともn行分の画像データを
記憶できることが必要である。上記BTCブロックの構
成自体については、従来のブロック符号化方法と何等変
わるところはない。図2に戻って説明を続ける。
Here, as shown in FIG. 9, the BTC block has a line extending in the main scanning direction of the scanner as a row and a line extending in the sub-scanning direction orthogonal to the main scanning direction as a column. It is a block composed of n rows × m columns (n and m are positive integers of 1 or more). Therefore, it is configured as a block of n pixels × m pixels consisting of m pixels continuous in the main scanning direction and n pixels continuous in the sub-scanning direction. In order to perform such division into BTC blocks, the line memory 31 needs to be able to store at least n rows of image data. The configuration of the BTC block itself is not different from the conventional block encoding method. Returning to FIG. 2, the description will be continued.

【0033】上記ステップ202で、BTCブロックに
分割された画像データは、ブロック単位で、n×mバッ
ファ102に記憶される。記憶された画像データを、最
大値・最小値検出器103にて読み出し、上記BTCブ
ロック内に存在する画素の濃度のうち最大の値(最大
値)と最小の値(最小値)とを検出し(ステップ20
3)、検出した最大値及び最小値を最大値・最小値記憶
部105に記憶するとともに、最大値・最小値エントロ
ピー符号化器104にて符号化する。一方、量子化器1
06にて上記最大値・最小値記憶部105に記憶された
最大値と最小値とに基づいて、n×mバッファ102に
記憶されているBTCブロック内に存在する各画素を、
図6にて例示したBTCブロックの図中左上の画素から
順次量子化する(ステップ204)。
The image data divided into BTC blocks in step 202 is stored in the n × m buffer 102 in block units. The stored image data is read by the maximum / minimum value detector 103, and the maximum value (maximum value) and the minimum value (minimum value) of the density of the pixels existing in the BTC block are detected. (Step 20
3) The detected maximum value and minimum value are stored in the maximum value / minimum value storage unit 105, and are encoded by the maximum value / minimum value entropy encoder 104. On the other hand, the quantizer 1
At 06, based on the maximum value and the minimum value stored in the maximum value / minimum value storage unit 105, each pixel existing in the BTC block stored in the n × m buffer 102 is
The quantization is performed sequentially from the upper left pixel of the BTC block illustrated in FIG. 6 (step 204).

【0034】この量子化は、上記最大値と最小値との間
で、予め定められた量子化ビット数にて行うものであ
る。例えば、量子化ビット数を2ビットとする場合に
は、最小値を00、最大値を11とし、BTCブロック
内の各画素の画像データを、いわば四捨五入のようにし
て00、01、10及び11という4段階のいずれかに
適合させる。上記量子化器106の出力である量子化値
は量子化値エントロピー符号化器107に送られ、符号
化される。また、上記量子化器106は、各画素の量子
化によって生ずる量子化誤差を、量子化と同時に、量子
化誤差記憶部110に送り記憶させる。
This quantization is performed between the maximum value and the minimum value with a predetermined number of quantization bits. For example, when the number of quantization bits is 2 bits, the minimum value is 00, the maximum value is 11, and the image data of each pixel in the BTC block is rounded to 00, 01, 10, and 11 as if it were. To one of the four stages. The quantized value output from the quantizer 106 is sent to the quantized value entropy encoder 107 and encoded. Further, the quantizer 106 sends the quantization error generated by the quantization of each pixel to the quantization error storage unit 110 and stores it at the same time as the quantization.

【0035】量子化誤差拡散部109は、上記量子化誤
差記憶部110に記憶された量子化誤差を、拡散マトリ
クス記憶部111に記憶された拡散マトリクスを使用し
て、上記量子化誤差をいずれの画素にどの程度振り分け
るかを演算によって求め、その結果を加算器108に送
る。そして、この加算器によって、量子化誤差を生じた
注目画素の周囲の画素へ、上記量子化画素の振り分けが
行われる(ステップ205)。
The quantization error diffusion section 109 uses the diffusion matrix stored in the diffusion matrix storage section 111 to convert the quantization error stored in the quantization error storage section 110 into any one of the above. The degree of distribution to pixels is calculated by calculation, and the result is sent to the adder 108. Then, the quantization pixel is distributed to pixels around the pixel of interest in which the quantization error has occurred by this adder (step 205).

【0036】ここで、上記拡散マトリクスとは、例え
ば、図8に例示したようなマトリクスをいう。図示の例
では、注目画素(*)を量子化することによって生じた
量子化誤差を、図に向かって、注目画素の右、下、右斜
め下にそれぞれ隣接している周囲の画素に振り分ける場
合のマトリクスを示している。図中の「0.4」、
「0.3」、「0.3」の数字は、マトリクス係数であ
って、その合計は、1.0となる。これによって、上記
右の画素には、量子化誤差×0.4の誤差、上記下の画
素には、量子化誤差×0.3の誤差、上記右斜め下の画
素には、量子化誤差×0.3の誤差がそれぞれ振り分け
られる。尚、量子化誤差の振り分け先の対象画素は、必
ずしも上述のような3つの画素でなくてもよい。振り分
け先の対象画素を変えた場合には、それに従って、上記
拡散マトリクスも変わることとなる。
Here, the diffusion matrix is, for example, a matrix as illustrated in FIG. In the example shown in the figure, the quantization error caused by quantizing the target pixel (*) is distributed to the neighboring pixels to the right, below, and diagonally right below the target pixel as viewed in the figure. Is shown. "0.4" in the figure,
The numbers “0.3” and “0.3” are matrix coefficients, and their sum is 1.0. As a result, the right pixel has a quantization error × 0.4 error, the lower pixel has a quantization error × 0.3 error, and the lower right pixel has a quantization error × 0.4. An error of 0.3 is allocated to each. Note that the target pixel to which the quantization error is distributed need not necessarily be the three pixels described above. When the distribution target pixel is changed, the diffusion matrix also changes accordingly.

【0037】以上のステップ204及びステップ205
の処理をBTCブロック内のすべての画素について繰り
返し行う(ステップ206)。また、上記ステップ20
3からステップ206までの処理をラインメモリに記憶
された全ての画像データに対して行う(ステップ20
7)。そして、上記ステップ201からステップ207
までの処理を画像データ全ラインについて行い(ステッ
プ208)、符号化が完了する。
The above steps 204 and 205
Is repeated for all the pixels in the BTC block (step 206). Step 20
The processing from step 3 to step 206 is performed on all the image data stored in the line memory (step 20).
7). Then, steps 201 to 207 are performed.
The above processing is performed for all lines of image data (step 208), and the encoding is completed.

【0038】次に、図3及び図4に基づいて、第2の実
施形態にかかる符号化装置の構成及び処理動作について
説明する。図3は第2の実施形態にかかる符号化装置4
2の構成ブロック図であり、図4は、第2の実施形態に
かかる符号化装置42で行われる符号化の処理動作を示
すフローチャートである。図3に示すように、第2の実
施形態にかかかる符号化装置42は、上述した第1の実
施形態にかかる符号化装置42とほぼ同様の構成を有す
るが、新たに量子化ビット配分器112を設けている点
で相違し、これに伴い、量子化器106によって行われ
る量子化の処理も、第1の実施形態と異なるものとなっ
ている。
Next, the configuration and processing operation of the encoding apparatus according to the second embodiment will be described with reference to FIGS. FIG. 3 shows an encoding device 4 according to the second embodiment.
FIG. 4 is a flowchart showing an encoding processing operation performed by the encoding device 42 according to the second embodiment. As shown in FIG. 3, the encoding device 42 according to the second embodiment has substantially the same configuration as that of the encoding device 42 according to the above-described first embodiment. 112 is provided, and accordingly, the quantization process performed by the quantizer 106 is also different from that of the first embodiment.

【0039】第2の実施形態の符号化装置においては、
図4に示すような処理動作によって、画像データの符号
化が行われる。以下、第1の実施形態との相違点を中心
に、図4を参照して説明する。まず、スキャナ2から1
画素8ビットで256階調からなる画像情報を、ライン
メモリ31に読み込む(ステップ401)。この画像情
報は、前述したように、シェーディング補正からγ補正
までの各処理が行われ、画像データとして符号化装置4
2に入力される。この画像データを符号化装置42の上
記ブロック化器101にてn×m画素のBTCブロック
に分割する(ステップ402)。
In the encoding device according to the second embodiment,
The image data is encoded by the processing operation shown in FIG. Hereinafter, a description will be given with reference to FIG. 4 focusing on differences from the first embodiment. First, Scanner 2 to 1
Image information consisting of 256 gradations with 8 bits per pixel is read into the line memory 31 (step 401). As described above, this image information is subjected to each processing from shading correction to γ correction, and is converted into image data by the encoding device 4.
2 is input. This image data is divided into n × m BTC blocks by the blocker 101 of the encoder 42 (step 402).

【0040】上記ステップ402で、BTCブロックに
分割された画像データは、ブロック単位で、n×mバッ
ファ102に記憶される。記憶された画像データを、最
大値・最小値検出器103にて読み出し、上記BTCブ
ロック内に存在する画素の濃度のうち最大の値(最大
値)と最小の値(最小値)とを検出し(ステップ40
3)、検出した最大値及び最小値を最大値・最小値記憶
部105に記憶するとともに、最大値・最小値エントロ
ピー符号化器104にて符号化する。一方、量子化器1
06にて上記最大値・最小値記憶部105に記憶された
最大値と最小値とに基づいて、n×mバッファ102に
記憶されているBTCブロック内に存在する各画素を、
順次量子化する。
The image data divided into BTC blocks in step 402 is stored in the n × m buffer 102 in block units. The stored image data is read by the maximum / minimum value detector 103, and the maximum value (maximum value) and the minimum value (minimum value) of the density of the pixels existing in the BTC block are detected. (Step 40
3) The detected maximum value and minimum value are stored in the maximum value / minimum value storage unit 105, and are encoded by the maximum value / minimum value entropy encoder 104. On the other hand, the quantizer 1
At 06, based on the maximum value and the minimum value stored in the maximum value / minimum value storage unit 105, each pixel existing in the BTC block stored in the n × m buffer 102 is
Quantize sequentially.

【0041】第2の実施形態が第1の実施形態に比較し
て最も特徴的なのは、この量子化の処理動作である。第
2の実施形態にかかる量子化器106は、量子化にあた
り、上記最大値・最小値記憶部105に記憶された最大
値と最小値との差を求め、求めた差が、予め定められた
閾値に比較して、大きいか、それとも小さいかを判定す
る。この判定の結果、上記「差」が、上記閾値以上であ
る場合には、量子化ビット数をsビットとして量子化を
行い、上記「差」が、上記閾値未満である場合には、上
記sビットよりも値の小さな量子化ビット数としてtビ
ットを選択して、このtビットによる量子化を行う(ス
テップ404、ステップ405)。
The most characteristic feature of the second embodiment compared to the first embodiment is the quantization processing operation. The quantizer 106 according to the second embodiment calculates the difference between the maximum value and the minimum value stored in the maximum value / minimum value storage unit 105 upon quantization, and the calculated difference is determined in advance. It is determined whether the value is larger or smaller than the threshold value. As a result of this determination, when the “difference” is equal to or more than the threshold, quantization is performed with the number of quantization bits being s bits, and when the “difference” is less than the threshold, the s T bits are selected as the number of quantization bits having a value smaller than the bit, and quantization is performed using the t bits (steps 404 and 405).

【0042】上記「s」及び「t」は、量子化ビット配
分器112に、上記閾値との関係で予め設定されている
ものであり、量子化器106は、上記「差」と閾値の判
定結果に応じて、上記量子化ビット配分器112に設定
されている「s」又は「t」を読み出すことによって、
いずれの量子化ビットで上述の量子化を行うかを決定す
る。ここで、上記閾値は、画像形成装置の特性に応じて
適宜選択することが可能である。
The "s" and "t" are preset in the quantization bit allocator 112 in relation to the threshold, and the quantizer 106 determines the "difference" and the threshold. According to the result, by reading “s” or “t” set in the quantization bit allocator 112,
It is determined which quantization bit performs the above-described quantization. Here, the threshold can be appropriately selected according to the characteristics of the image forming apparatus.

【0043】上記量子化器106の出力である量子化値
は量子化値エントロピー符号化器107に送られ、符号
化される。また、上記量子化器106は、各画素の量子
化によって生ずる量子化誤差を、量子化と同時に、量子
化誤差記憶部110に送り記憶させる。量子化誤差拡散
部109は、上記量子化誤差記憶部110に記憶された
量子化誤差を、拡散マトリクス記憶部111に記憶され
た拡散マトリクスを使用して、上記量子化誤差をいずれ
の画素にどの程度振り分けるかを演算によって求め、そ
の結果を加算器108に送る。そして、この加算器によ
って、量子化誤差を生じた注目画素の周囲の画素へ、上
記量子化画素の振り分けが行われる(ステップ40
6)。
The quantized value output from the quantizer 106 is sent to the quantized value entropy encoder 107 and encoded. Further, the quantizer 106 sends the quantization error generated by the quantization of each pixel to the quantization error storage unit 110 and stores it at the same time as the quantization. The quantization error diffusion unit 109 uses the diffusion matrix stored in the diffusion matrix storage unit 111 to store the quantization error stored in the quantization error storage unit 110 in any pixel. The degree of distribution is determined by calculation, and the result is sent to the adder 108. Then, the adder performs the distribution of the quantized pixels to the pixels around the target pixel having the quantization error (step 40).
6).

【0044】以上のステップ405及びステップ406
の処理をBTCブロック内のすべての画素について繰り
返し行う(ステップ407)。また、上記ステップ40
3からステップ407までの処理をラインメモリに記憶
された全ての画像データに対して行う(ステップ40
8)。そして、上記ステップ401からステップ408
までの処理を画像データ全ラインについて行い(ステッ
プ209)、第2の実施形態における符号化が完了す
る。
The above steps 405 and 406
Is repeated for all the pixels in the BTC block (step 407). Step 40
The processing from step 3 to step 407 is performed on all the image data stored in the line memory (step 40).
8). Then, steps 401 to 408 are performed.
The above process is performed for all lines of image data (step 209), and the encoding in the second embodiment is completed.

【0045】上述のように第2の実施形態においては、
各ブロックの最大値と最小値との差に応じて、量子化ビ
ット数を変化させているが、上記最大値及び最小値の
「差」は、結局、ブロック内の画像濃度の変化が緩慢で
あるか急峻であるかによって異なるものである。従っ
て、第2の実施形態によれば、画像の濃度変化が緩慢な
部分(例えば中間調部分)については、量子化ビット数
を減らすことによって、符号化の圧縮効率を向上させる
ことができる。
As described above, in the second embodiment,
Although the number of quantization bits is changed according to the difference between the maximum value and the minimum value of each block, the "difference" between the maximum value and the minimum value results in a slow change in the image density in the block. It is different depending on whether it is steep or steep. Therefore, according to the second embodiment, the compression efficiency of encoding can be improved by reducing the number of quantization bits for a portion where the density change of an image is slow (for example, a halftone portion).

【0046】次に、図5及び図6に基づいて、第3の実
施形態にかかる符号化装置の構成及び処理動作について
説明する。図5は第3の実施形態にかかる符号化装置4
2の構成ブロック図であり、図6は、第3の実施形態に
かかる符号化装置42で行われる符号化の処理動作にお
ける特徴部を示すフローチャートである。第3の実施形
態についても、内容理解の容易のため、第1の実施形態
との比較において説明する。
Next, the configuration and processing operation of the encoding device according to the third embodiment will be described with reference to FIGS. FIG. 5 shows an encoding device 4 according to the third embodiment.
FIG. 6 is a configuration block diagram of FIG. 2, and FIG. 6 is a flowchart showing a characteristic portion in the encoding operation performed by the encoding device 42 according to the third embodiment. The third embodiment will also be described in comparison with the first embodiment for easy understanding of the contents.

【0047】図5に示すように、第3の実施形態にかか
る符号化装置42は、上述した第1の実施形態にかかる
符号化装置42とほぼ同様の構成を有するが、新たに周
辺ブロック用バッファ113、周辺ブロック最大値・最
小値検出器114を設けている点で相違する。そして、
かかる構成の相違を前提として、第3の実施形態におけ
る処理動作が第1の実施形態における処理動作と大きく
異なるのは、量子化誤差の拡散の仕方である。以下、こ
の第3実施形態における特徴的な処理動作につき、図6
のフローチャートを参照して説明する。
As shown in FIG. 5, the encoding device 42 according to the third embodiment has substantially the same configuration as the encoding device 42 according to the above-described first embodiment, but is newly added to the peripheral block. The difference is that a buffer 113 and a peripheral block maximum / minimum value detector 114 are provided. And
On the premise of such a difference in the configuration, the processing operation in the third embodiment is significantly different from the processing operation in the first embodiment in the manner of diffusing the quantization error. Hereinafter, a characteristic processing operation in the third embodiment will be described with reference to FIG.
This will be described with reference to the flowchart of FIG.

【0048】画像情報のラインメモリ31への読み込
み、n×m画素のBTCブロックへの分割、n×mバッ
ファ102への記憶、並びに、上記n×mバッファ10
2に記憶されたBTCブロックの最大値及び最小値の検
出までは、上述した図2のステップ201、ステップ2
02、及びステップ203と同様である。図6のフロー
チャートには、上記ステップ203に相当する「注目ブ
ロック内の最大値及び最小値の検出」のステップ(ステ
ップ601)から記載している。ここで、「注目ブロッ
ク」とは、現在の符号化の対象となっているBTCブロ
ックを意味する。
The image information is read into the line memory 31, divided into BTC blocks of n × m pixels, stored in the n × m buffer 102, and stored in the n × m buffer 10.
2 until the detection of the maximum value and the minimum value of the BTC block stored in step 2 in FIG.
02 and step 203. In the flowchart of FIG. 6, steps from “detection of maximum value and minimum value in target block” (step 601) corresponding to step 203 described above are described. Here, the “target block” means a BTC block that is a current encoding target.

【0049】第3の実施形態においては、n×mバッフ
ァ102に記憶された注目ブロック内の最大値及び最小
値の検出(ステップ601)と並行して、上記注目ブロ
ックに隣接し、量子化誤差を振り分けることとなる画素
が存在する周辺ブロック内の画素の濃度のうち最大値と
最小値とを検出する(ステップ602)。このために、
ブロック化器101からの周辺ブロックの画像データ
は、周辺ブロック用バッファに記憶される。また、上記
周辺ブロックの最大値及び最小値の検出は、周辺ブロッ
ク用最大値・最小値検出器114にて検出される。上記
注目ブロックの最大値及び最小値、並びに、上記周辺ブ
ロックの最大値及び最小値は、いずれも、最大値・最小
値記憶部105に記憶される。また、上記ステップ60
1で検出された注目ブロックの最大値及び最小値は、上
記記憶に並行してm最大値・最小値エントロピー符号化
器104にて符号化される。
In the third embodiment, in parallel with the detection of the maximum value and the minimum value in the block of interest stored in the n × m buffer 102 (step 601), the quantization error The maximum value and the minimum value are detected from among the densities of the pixels in the peripheral block in which the pixel to which is to be assigned exists (step 602). For this,
The image data of the peripheral block from the block generator 101 is stored in the peripheral block buffer. The detection of the maximum value and the minimum value of the peripheral block is detected by the maximum value / minimum value detector 114 for the peripheral block. The maximum value and the minimum value of the target block and the maximum value and the minimum value of the peripheral block are all stored in the maximum value / minimum value storage unit 105. Step 60
The maximum and minimum values of the block of interest detected at 1 are encoded by the m maximum / minimum entropy encoder 104 in parallel with the above storage.

【0050】一方、量子化器106にて上記注目ブロッ
クの最大値・最小値記憶部105に記憶された最大値と
最小値とに基づいて、n×mバッファ102に記憶され
ている注目ブロック内に存在する各画素を、順次量子化
する(ステップ603)。この量子化において、量子化
器106は、量子化誤差を計算し(ステップ604)、
量子化誤差記憶部604に記憶する。
On the other hand, based on the maximum value and the minimum value stored in the maximum value / minimum value storage unit 105 of the block of interest in the quantizer 106, the inside of the block of interest stored in the n × m buffer 102 is Are sequentially quantized (step 603). In this quantization, the quantizer 106 calculates a quantization error (step 604),
The result is stored in the quantization error storage unit 604.

【0051】この量子化誤差記憶部604に記憶された
量子化誤差は、第1の実施形態同様、量子化の対象とな
っている周辺画素に振り分けられるが、この際、量子化
誤差拡散部109は、量子化誤差の振り分け先の対象画
素が、同じ注目ブロック内のものであるか否かを判定す
る(ステップ605)。そして、注目ブロック内である
場合には、そのまま、第1の実施形態同様に、誤差の振
り分けを行う(ステップ606)。
The quantization errors stored in the quantization error storage unit 604 are distributed to the peripheral pixels to be quantized, as in the first embodiment. At this time, the quantization error diffusion unit 109 Determines whether the target pixel to which the quantization error is to be distributed is in the same block of interest (step 605). If it is within the block of interest, the error is distributed as it is, as in the first embodiment (step 606).

【0052】ステップ605の判定にて、量子化誤差の
振り分け先が、周辺ブロックの画素である場合には、振
り分けるべき誤差を加算した後の当該画素の濃度(P)
を、上記最大値・最小値記憶部105に記憶されている
上記周辺ブロックの最大値(max0X)及び最小値
(min0X)と比較する(ステップ607)。この結
果、上記濃度Pが、上記最小値(min0X)より大き
く、上記最大値(max0X)より小さい場合は、その
まま誤差を振り分ける(ステップ609)。一方上記濃
度Pが最大値(max0X)以上である場合は、上記濃
度Pを上記最大値(max0X)に置き換え、上記濃度
Pが、上記最小値(min0X)以下である場合には、
上記濃度Pを最小値(min0X)に置き換える(ステ
ップ608)。以上の処理によって、1画素分の符号化
が完了する(ステップ610)。この1画素分の処理を
注目ブロック内のすべての画素について繰り返し行い
(ステップ611)、1つのブロックの符号化が完了す
る。以上の処理を、スキャナ2からの全ての画像データ
について行う点は、第1の実施形態と同様である。
If it is determined in step 605 that the quantization error is to be allocated to a pixel of a peripheral block, the density (P) of the pixel after adding the error to be allocated is added.
Is compared with the maximum value (max0X) and the minimum value (min0X) of the peripheral block stored in the maximum / minimum value storage unit 105 (step 607). As a result, when the density P is larger than the minimum value (min0X) and smaller than the maximum value (max0X), the error is directly allocated (step 609). On the other hand, when the density P is equal to or more than the maximum value (max0X), the density P is replaced with the maximum value (max0X). When the density P is equal to or less than the minimum value (min0X),
The density P is replaced with a minimum value (min0X) (step 608). With the above processing, encoding for one pixel is completed (step 610). The processing for one pixel is repeated for all the pixels in the block of interest (step 611), and the encoding of one block is completed. The point that the above processing is performed for all the image data from the scanner 2 is the same as in the first embodiment.

【0053】このように、第3の実施形態においては、
量子化誤差の振り分けに伴う各BTCブロックの最大値
及び最小値の変化を防止することができるという点に最
大の特徴がある。かかる点に着目した、各BTCブロッ
クの最大値及び最小値の変化を防止するための他の変形
例について、図7に基づいて説明する。図7は、上記変
形例の処理動作を示すフローチャートである。
As described above, in the third embodiment,
The greatest feature is that the change of the maximum value and the minimum value of each BTC block due to the distribution of the quantization error can be prevented. Another modification for preventing the change of the maximum value and the minimum value of each BTC block, focusing on this point, will be described with reference to FIG. FIG. 7 is a flowchart illustrating the processing operation of the above-described modification.

【0054】この変形例においては、量子化誤差の振り
分けを、上記注目ブロック内に限定している点に特徴が
あり、量子化誤差を周辺ブロックにまで振り分けること
をせずに、周辺ブロックの本来の最大値及び最小値を、
変化させる事態を生じさせない。具体的には、量子化誤
差拡散部109にて、誤差の振り分け先が現在量子化の
対象となっていいる注目画素と同じブロック内の画素か
否か判定し(ステップ704)、同じブロック内であれ
ば、そのまま量子化誤差の振り分けを行い(ステップ7
05)、同じブロック内でなければ、量子化誤差の振り
分けは行わない(ステップ706)。これによって、1
画素分の符号化を終了する(ステップ707)。この1
画素分の処理を注目ブロック内のすべての画素について
繰り返し行い(ステップ708)、1つのブロックの符
号化が完了する。以上の処理を、スキャナ2からの全て
の画像データについて行う点は、図6を用いて説明した
上記例と同様である。
This modification is characterized in that the distribution of the quantization error is limited to the above-mentioned block of interest. The maximum and minimum values of
Do not cause a change. More specifically, the quantization error diffusion unit 109 determines whether or not the error is to be distributed to a pixel in the same block as the target pixel currently being quantized (step 704). If there is, the quantization error is distributed as it is (step 7).
05), if not in the same block, the quantization error is not allocated (step 706). This gives 1
The encoding for the pixels is completed (step 707). This one
The processing for pixels is repeated for all the pixels in the block of interest (step 708), and encoding of one block is completed. The point that the above processing is performed for all the image data from the scanner 2 is the same as in the above example described with reference to FIG.

【0055】尚、上記変形例においては、周辺ブロック
の最大値及び最小値を検出する必要がないため、必然的
に、周辺ブロック用バッファ113及び周辺ブロック最
大値・最小値検出器114は不要となる。従って、上記
変形例の処理動作を実行するための符号化装置42は、
図1を用いて説明した第1の実施形態にかかる符号化装
置42と同様の構成となる。
In the above modification, since it is not necessary to detect the maximum value and the minimum value of the peripheral block, the peripheral block buffer 113 and the peripheral block maximum / minimum value detector 114 are inevitably unnecessary. Become. Therefore, the encoding device 42 for executing the processing operation of the above-described modified example includes:
The configuration is the same as that of the encoding device 42 according to the first embodiment described with reference to FIG.

【0056】ここまで、種々の実施形態にかかる符号化
装置42について説明してきた。本件にかかる複写機1
では、上述のごとき符号化装置42で符号化した後の画
像データを、画像メモリ43に記憶するようにしている
ので、符号化せずに記憶する場合に比較し、画像メモリ
43の容量を格段に減らすことができ、複写機1全体の
コストダウンを図ることを可能としている。
The encoding device 42 according to various embodiments has been described above. Copier 1 according to the present case
In the above, since the image data encoded by the encoding device 42 as described above is stored in the image memory 43, the capacity of the image memory 43 is significantly reduced as compared with the case where the image data is stored without encoding. And the cost of the entire copying machine 1 can be reduced.

【0057】上記画像メモリ43に記憶されている符号
化された画像データが、その後、復号装置44によって
複合され、プリンタ3に送られる点は、上述したとおり
である。ここで、復号装置43は、各BTCブロックご
とに、まず、最大値と最小値を復号し、次いで量子化さ
れていた各画素についての量子化値を復号する。これに
よって、符号化前の階調からなる画像データにする。
尚、上記復号装置については、ブロック符号化によって
符号化された画像データを複合するために用いられてい
た従来の復号装置と何等変わるところはないので、その
詳細説明は、省略する。
As described above, the encoded image data stored in the image memory 43 is then combined by the decoding device 44 and sent to the printer 3. Here, the decoding device 43 first decodes the maximum value and the minimum value for each BTC block, and then decodes the quantized value of each pixel that has been quantized. As a result, the image data is composed of gradations before encoding.
It should be noted that the decoding apparatus described above has no difference from the conventional decoding apparatus used for combining image data encoded by block encoding, and a detailed description thereof will be omitted.

【0058】以上、本発明をデジタル複写機に適用した
実施形態について説明してきたが、本発明は、これに限
らず、ファクシミリ装置や画像ファイリング装置などに
広く適用できるものである。特に、ファクシミリ装置に
本発明を適用した場合は、圧縮率の向上により、転送時
間の短縮化を図ることができるという、画像メモリ等の
記憶容量の低減以外の効果も生ずる。
While the embodiment in which the present invention is applied to a digital copying machine has been described above, the present invention is not limited to this and can be widely applied to facsimile apparatuses, image filing apparatuses, and the like. In particular, when the present invention is applied to a facsimile apparatus, an effect other than a reduction in the storage capacity of an image memory or the like is brought about that the transfer time can be reduced by improving the compression ratio.

【0059】[0059]

【発明の効果】請求項1のブロック符号化方法によれ
ば、ブロックの大きさを従来以上に拡大しても、ブロッ
クノイズの発生を抑制することができるので、画像劣化
を防止しつつ、圧縮率を向上することが可能となるとい
う優れた効果を有する。
According to the block encoding method of the first aspect, even if the size of the block is enlarged more than before, it is possible to suppress the occurrence of block noise. It has an excellent effect that the rate can be improved.

【0060】特に、請求項2のブロック符号化方法によ
れば、量子化誤差を大きくすることなく、量子化ビット
数を小さくすることができるので、画像の劣化を防止し
つつ、請求項1のブロック符号化方法に比較し、より圧
縮率を向上させることが可能となるという優れた効果を
有する。
In particular, according to the block encoding method of the second aspect, the number of quantization bits can be reduced without increasing the quantization error. Compared with the block coding method, there is an excellent effect that the compression rate can be further improved.

【0061】また、特に、請求項3又は請求項4のブロ
ック符号化方法によれば、量子化の基準となる最大値及
び最小値を変化させることがないので、上記最大値又は
最小値の変化によって生ずるブロックノイズを防止する
ことが可能となるという優れた効果を有する。
In particular, according to the block coding method of claim 3 or 4, since the maximum value and the minimum value serving as the quantization reference are not changed, the change of the maximum value or the minimum value is not changed. This has an excellent effect that it is possible to prevent block noise caused by the above.

【0062】尚、入力される画像情報の濃度勾配に応じ
て、特性の異なる複数の符号化器を適宜切り換えて、ブ
ロック符号化を行うものが知られている(特開平5−5
6282号)。また、原画像の各画素ごとの量子化誤差
が存在しないブロックに対しては、1ビットの符号を割
り当てるようにしたものが知られている(特開平2−2
14263号)。しかし、これらには、量子化誤差を周
辺画素に振り分ける点については、何等開示されていな
い。さらに、いずれも、符号化アルゴリズムが複雑であ
り、ソフトウェア及びハードウエアへかなりの負担をか
けることが予想される。
It is known that a plurality of encoders having different characteristics are appropriately switched in accordance with the density gradient of input image information to perform block encoding (Japanese Patent Laid-Open No. 5-5 / 95).
No. 6282). Also, a block in which a 1-bit code is assigned to a block in which a quantization error does not exist for each pixel of an original image is known (Japanese Patent Laid-Open No. 2-2 / 1990).
No. 14263). However, they do not disclose at all about distributing the quantization error to peripheral pixels. In addition, in each case, the encoding algorithm is complicated, and is expected to impose a considerable burden on software and hardware.

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

【図1】第1の実施形態にかかる符号化装置の構成ブロ
ック図。
FIG. 1 is a configuration block diagram of an encoding device according to a first embodiment.

【図2】第1の実施形態にかかる符号化装置で行われる
符号化の処理動作を示すフローチャート。
FIG. 2 is a flowchart showing an encoding processing operation performed by the encoding device according to the first embodiment;

【図3】第2の実施形態にかかる符号化装置の構成ブロ
ック図。
FIG. 3 is a configuration block diagram of an encoding device according to a second embodiment.

【図4】第2の実施形態にかかる符号化装置で行われる
符号化の処理動作を示すフローチャート。
FIG. 4 is a flowchart showing an encoding processing operation performed by the encoding device according to the second embodiment;

【図5】第3の実施形態にかかる符号化装置の構成ブロ
ック図。
FIG. 5 is a configuration block diagram of an encoding device according to a third embodiment.

【図6】第3の実施形態にかかる符号化装置で行われる
符号化の処理動作における特徴部を示すフローチャー
ト。
FIG. 6 is a flowchart showing a characteristic part in an encoding operation performed by the encoding device according to the third embodiment;

【図7】各BTCブロックの最大値最小値の変化を防止
するための変形例の処理動作を示すフローチャート。
FIG. 7 is a flowchart showing a processing operation of a modification for preventing a change in the maximum value and the minimum value of each BTC block.

【図8】拡散マトリクスの説明図。FIG. 8 is an explanatory diagram of a diffusion matrix.

【図9】BTCブロックの説明図。FIG. 9 is an explanatory diagram of a BTC block.

【図10】複写機の概略構成図。FIG. 10 is a schematic configuration diagram of a copying machine.

【図11】画像処理部の概略構成を示すブロック図。FIG. 11 is a block diagram illustrating a schematic configuration of an image processing unit.

【図12】レーザ変調回路の回路ブロック図。FIG. 12 is a circuit block diagram of a laser modulation circuit.

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

1 複写機 2 スキャナ 3 プリンタ 4 コンタクトガラス 5 露光ランプ 6 CCDイメージセンサ 7 結像レンズ 8 反射ミラー 9 レーザ光学系 10 クリーニング装置 11 帯電装置 12 K現像ユニット 13 C現像ユニット 14 M現像ユニット 15 Y現像ユニット 16 搬送ベルト 17 定着装置 19 中間転写ベルト 20 ベルトクリーニング装置 21 感光体 22 給紙ユニット 23 転写バイアスローラ 24 排紙トレイ 30 画像処理部 31 ラインメモリ 32 シェーディング補正回路 33 RGBガンマ補正回路 34 画像分離 35 MTF補正回路 36 色相判定部 37 色変換−UCR処理回路 38 変倍回路 39 画像加工回路 40 MTFフィルタ 41 ガンマ補正回路 42 符号化装置 43 画像メモリ 44 復号装置 45 CPU 46 RAM 47 ROM 48 メイン制御部 49 バスライン 50 レーザ変調回路 51 ルックアップテーブル 52 パルス幅変調回路 53 パワー変調回路 54 レーザダイオード 55 フォトディテクタ 101 ブロック化器 102 n×mバッファ 103 最大値・最小値検出器 104 最大値・最小値エントロピー符号化器 105 最大値・最小値記憶部 106 量子化器 107 量子化値エントロピー符号化器 108 加算器 109 量子化誤差拡散部 110 量子化誤差記憶部 111 拡散マトリクス記憶部 112 量子化ビット配分器 113 周辺ブロック用バッファ 114 周辺ブロック用最大値・最小値検出器 DESCRIPTION OF SYMBOLS 1 Copier 2 Scanner 3 Printer 4 Contact glass 5 Exposure lamp 6 CCD image sensor 7 Imaging lens 8 Reflection mirror 9 Laser optical system 10 Cleaning device 11 Charging device 12 K developing unit 13 C developing unit 14 M developing unit 15 Y developing unit DESCRIPTION OF SYMBOLS 16 Conveying belt 17 Fixing device 19 Intermediate transfer belt 20 Belt cleaning device 21 Photoreceptor 22 Paper feed unit 23 Transfer bias roller 24 Discharge tray 30 Image processing unit 31 Line memory 32 Shading correction circuit 33 RGB gamma correction circuit 34 Image separation 35 MTF Correction circuit 36 Hue determination unit 37 Color conversion-UCR processing circuit 38 Magnification circuit 39 Image processing circuit 40 MTF filter 41 Gamma correction circuit 42 Encoding device 43 Image memory 44 Decoding device 45 C U 46 RAM 47 ROM 48 Main control unit 49 Bus line 50 Laser modulation circuit 51 Look-up table 52 Pulse width modulation circuit 53 Power modulation circuit 54 Laser diode 55 Photodetector 101 Block generator 102 n × m buffer 103 Maximum / minimum value detection Unit 104 maximum / minimum value entropy encoder 105 maximum / minimum value storage unit 106 quantizer 107 quantized value entropy encoder 108 adder 109 quantization error diffusion unit 110 quantization error storage unit 111 diffusion matrix storage Unit 112 Quantized bit allocator 113 Buffer for peripheral block 114 Maximum / minimum value detector for peripheral block

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】ブロック単位に画像データを分割し、各ブ
ロック内の最大値と最小値との間で前記ブロック内に含
まれる各画素を量子化するブロック符号化方法におい
て、 画素を量子化したときに生ずる量子化誤差を前記画素の
周囲の画素に振り分けることを特徴とするブロック符号
化方法。
1. A block coding method for dividing image data into blocks and quantizing each pixel included in each block between a maximum value and a minimum value in each block, wherein the pixels are quantized. A block encoding method characterized in that a quantization error that occurs sometimes is assigned to pixels surrounding the pixel.
【請求項2】請求項1のブロック符号化方法において、 前記ブロック内の最大値と最小値との差が、予め定めら
れた閾値を以上である場合には第1の量子化ビット数に
て画素の量子化を行い、前記最大値と最小値との差が前
記閾値未満である場合には前記第1の量子化ビット数よ
り小さな第2の量子化ビット数にて画素の量子化を行う
ことを特徴とするブロック符号化方法。
2. The block encoding method according to claim 1, wherein a difference between a maximum value and a minimum value in the block is equal to or larger than a predetermined threshold value, and is equal to a first quantization bit number. When the difference between the maximum value and the minimum value is less than the threshold value, the pixel is quantized with a second quantization bit number smaller than the first quantization bit number. A block encoding method characterized in that:
【請求項3】請求項1又は2の符号化方法において、 前記量子化誤差の振り分け先がブロックを越えて生じた
場合であって、前記量子化誤差の振り分けの結果、前記
ブロックに隣接したブロック内の最大値又は最小値を変
化させることとなるときには、変化前の最大値及び最小
値を用いて、前記隣接したブロックでの量子化を行うこ
とを特徴とするブロック符号化方法。
3. The encoding method according to claim 1, wherein the allocation destination of the quantization error is generated over a block, and as a result of the allocation of the quantization error, a block adjacent to the block is obtained. Wherein the maximum value or the minimum value is changed, the quantization is performed in the adjacent block using the maximum value and the minimum value before the change.
【請求項4】請求項1又は2の符号化方法において、 前記量子化誤差の振り分け先を、同一ブロック内にのみ
行うことを特徴とするブロック符号化方法。
4. The block encoding method according to claim 1, wherein the quantization error is allocated only to the same block.
JP22770796A 1996-08-09 1996-08-09 Block encoding method and apparatus Expired - Fee Related JP3440974B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22770796A JP3440974B2 (en) 1996-08-09 1996-08-09 Block encoding method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22770796A JP3440974B2 (en) 1996-08-09 1996-08-09 Block encoding method and apparatus

Publications (2)

Publication Number Publication Date
JPH1056573A true JPH1056573A (en) 1998-02-24
JP3440974B2 JP3440974B2 (en) 2003-08-25

Family

ID=16865099

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22770796A Expired - Fee Related JP3440974B2 (en) 1996-08-09 1996-08-09 Block encoding method and apparatus

Country Status (1)

Country Link
JP (1) JP3440974B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018129574A (en) * 2017-02-06 2018-08-16 コニカミノルタ株式会社 Image processing system and image processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018129574A (en) * 2017-02-06 2018-08-16 コニカミノルタ株式会社 Image processing system and image processing method

Also Published As

Publication number Publication date
JP3440974B2 (en) 2003-08-25

Similar Documents

Publication Publication Date Title
US7286717B2 (en) Image data processing device processing a plurality of series of data items simultaneously in parallel
US5345320A (en) Color image data processing apparatus comprising monochrome pixel detector
US7411694B2 (en) Data conversion apparatus for and method of data conversion for image processing
US6330076B1 (en) Image processing apparatus
JP3161172B2 (en) Encoding device
US7450280B2 (en) Image processing apparatus, computer product, and image processing method
US7420700B2 (en) Image processing system, image forming system, computer program, and recording medium
JP4329271B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JPH1188665A (en) Image processor
US7236265B2 (en) Image reading apparatus, image forming system, image reading method, and program therefor
US6876468B1 (en) Image processing apparatus that performs black coloring, gamma correction and tone processing
US8045809B2 (en) Image forming apparatus
JPH06276399A (en) Picture processing unit
US5418618A (en) Tone processing method for forming a halftone image
JP3440974B2 (en) Block encoding method and apparatus
JPH01196975A (en) Color picture processor
JP3963260B2 (en) Image processing apparatus and image forming apparatus
JP2006060343A (en) Parameter determining apparatus, coding device, method of determining parameter and its program
EP0508123A1 (en) Image processing apparatus
JPH10210314A (en) Digital image processing device
JP3191300B2 (en) Full-color image processing device
US6999632B2 (en) Image processing apparatus, image forming apparatus and image processing method
JP2001326794A (en) Image reading apparatus
JP3288696B2 (en) Image processing apparatus and image processing method
JPH04200171A (en) Full-color image processor

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030530

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

Free format text: PAYMENT UNTIL: 20080620

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090620

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090620

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100620

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110620

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110620

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120620

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees