JPH11164150A - Image processing device - Google Patents
Image processing deviceInfo
- Publication number
- JPH11164150A JPH11164150A JP32621697A JP32621697A JPH11164150A JP H11164150 A JPH11164150 A JP H11164150A JP 32621697 A JP32621697 A JP 32621697A JP 32621697 A JP32621697 A JP 32621697A JP H11164150 A JPH11164150 A JP H11164150A
- Authority
- JP
- Japan
- Prior art keywords
- image
- area
- data
- block
- image data
- 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.)
- Pending
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
(57)【要約】
【課題】 現状のGBTC符号化方式で圧縮した場合と
同じ符号量で、より高画質で、高速、かつ高圧縮率で画
像データを圧縮する。
【解決手段】 スキャナから読み込まれた画像データ
は、ビットマップデータに変換され、フレームメモリ
(第1の記憶部)101に格納される。ここで、1枚分
のビットマップデータが完成すると、このデータは像域
分離部102に転送される。像域分離部102では、前
記ビットマップに展開された画像データに基づいて階調
差の激しい領域と、そうでない領域とに分離する。いず
れかの領域に分離された各ブロックは、量子化部103
において、それぞれの領域に最適な量子化が行なわれ、
固定長に圧縮される。回転機能の場合、固定長に圧縮さ
れたデータをさらにエントロピ符号化部104で、算術
符号等による2次圧縮が行なわれる。その後、これらの
圧縮されたデータは記憶部105に一時保管される。
PROBLEM TO BE SOLVED: To compress image data with the same code amount as in the case of compression by the current GBTC coding method, with higher image quality, at high speed, and with a high compression rate. SOLUTION: Image data read from a scanner is converted into bitmap data and stored in a frame memory (first storage unit) 101. Here, when one piece of bitmap data is completed, this data is transferred to the image area separation unit 102. The image area separation unit 102 separates the image data into an area having a large gradation difference and an area not having the large gradation difference based on the image data developed into the bitmap. Each of the blocks separated into any one of the regions is
In, the optimal quantization is performed for each region,
Compressed to a fixed length. In the case of the rotation function, the data compressed to a fixed length is further subjected to secondary compression by an entropy coding unit 104 using an arithmetic code or the like. Thereafter, these compressed data are temporarily stored in the storage unit 105.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、画像データを圧縮
する画像処理装置に関し、例えばデジタル複写機の画像
編集機能のようなデータを管理しやすい状態で圧縮する
必要のある各種装置に好適な画像処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for compressing image data, and more particularly, to an image processing apparatus suitable for various apparatuses which need to compress data in an easily manageable state, such as an image editing function of a digital copying machine. It relates to a processing device.
【0002】[0002]
【従来の技術】例えばデジタル複写機では、回転機能や
編集機能を備えているが、この機能を実現するために画
像データの圧縮が行なわれている。この圧縮には固定長
符号化の1つであるGBTC(Generalized Block Trun
cation Coding)符号化方式がよく用いられている。こ
の 符号化方式は8ビット/ピクセルのデータを3/8
に固定長圧縮するもので、例えば、日本印刷学会誌にお
いて1990年1月9日に受理された「ハードコピー装
置に適した画像圧縮法」(岡賢一郎、他2名)において
も論じられている。2. Description of the Related Art For example, a digital copying machine has a rotation function and an editing function. To realize these functions, image data is compressed. For this compression, GBTC (Generalized Block Trun
Cation coding is often used. This encoding method converts 8 bits / pixel data to 3/8.
This is also discussed in, for example, "Image Compression Method Suitable for Hard Copy Apparatus" (Kenichiro Oka and two others) accepted on January 9, 1990 in the Journal of the Printing Society of Japan. .
【0003】[0003]
【発明が解決しようとする課題】しかしながら、GBT
C符号化方式では、量子化方法によっては、網点画像等
においてひどいモアレが発生することが多々ある。ま
た、電子ソート機能を実現する場合、蓄積枚数を増やす
ために固定長圧縮データを更にエントロピー符号化する
場合、GBTC符号化方式により固定長圧縮されたデー
タは高圧縮することができないという問題点がある。SUMMARY OF THE INVENTION However, GBT
In the C encoding method, severe moire often occurs in a halftone image or the like depending on the quantization method. Further, when the electronic sort function is realized, when the fixed-length compressed data is further entropy-encoded to increase the number of stored data, the data that is fixed-length-compressed by the GBTC encoding method cannot be highly compressed. is there.
【0004】画像データを圧縮する他の従来例として
は、特開平9−74488号公報に示すように多値誤差
拡散法により固定長圧縮する方法が提案されているが、
この方法では処理負担が重いという問題点がある。As another conventional example of compressing image data, there has been proposed a fixed-length compression method using a multi-valued error diffusion method as disclosed in Japanese Patent Application Laid-Open No. 9-74488.
This method has a problem that the processing load is heavy.
【0005】本発明は上記従来の問題点に鑑み、現状の
GBTC符号化方式で圧縮した場合と同じ符号量で、よ
り高画質で、高速、かつ高圧縮率で画像データを圧縮す
ることができる画像処理装置を提供することを目的とす
る。[0005] In view of the above-mentioned conventional problems, the present invention can compress image data with higher code quality, higher speed, and a higher compression rate with the same code amount as when compressed by the current GBTC coding method. It is an object to provide an image processing device.
【0006】[0006]
【課題を解決するための手段】第1の手段は上記目的を
達成するために、画像データを2×2画素のブロック単
位に分割するブロック分割手段と、前記ブロック内の階
調差によって複数種類の領域に分離する領域分離手段
と、分離された各領域を同じビット数に固定長で量子化
する量子化手段とを備え、前記像域分離手段は、入力さ
れた画像データの画素値から階調差の激しい第1の領域
と、そうでない第2の領域に分離することを特徴とす
る。In order to achieve the above object, a first means is a block dividing means for dividing image data into blocks of 2.times.2 pixels, and a plurality of types are provided according to a gradation difference in the block. And a quantizing means for quantizing each of the separated areas to the same number of bits with a fixed length, wherein the image area separating means calculates a difference from a pixel value of input image data. It is characterized in that it is separated into a first region having a large difference and a second region not having a large difference.
【0007】第2の手段は、第1の手段において、前記
像域分離手段は、前記第1の領域を最初に分離し、その
後、第2の領域をサブバンド変換後の高周波係数を用い
てさらに分離することを特徴とする。The second means is the first means, wherein the image area separating means first separates the first area, and then uses the high frequency coefficient after subband conversion for the second area. It is further characterized by being separated.
【0008】第3の手段は、第1の手段において、前記
量子化手段は、前記第1の領域については、前記ブロッ
クの4画素のうち画素値の取り得る最大値または最小値
に近いデータはそれぞれ最大値または最小値に変換して
保存し、残りの画素は平均化するとともに、前記第2の
領域については、サブバンド変換後の高周波成分をベク
トル量子化することを特徴とする。[0008] A third means is the first means, wherein the quantization means is configured to determine, for the first area, data which is close to the maximum or minimum value of the pixel value among the four pixels of the block. The method is characterized in that each pixel is converted into a maximum value or a minimum value and stored, the remaining pixels are averaged, and in the second region, the high-frequency component after the sub-band conversion is vector-quantized.
【0009】第4の手段は、第2または第3の手段にお
いて、前記サブバンド変換するブロックに対しては、前
記量子化手段は、サブバンド変換後の低周波成分に対し
てグレーコードをかけることを特徴とする。A fourth means is the second or third means, wherein the quantization means applies a gray code to the low-frequency component after the sub-band conversion for the block to be subjected to the sub-band conversion. It is characterized by the following.
【0010】[0010]
【発明の実施の形態】以下、本発明の実施の形態につい
て説明する。Embodiments of the present invention will be described below.
【0011】〔第1の実施形態〕図1は本発明に係る画
像処理装置の一実施形態としてのデジタル画像形成装置
における圧縮器の信号処理の過程を示す機能ブロック図
である。ここでは、デジタル画像画像形成装置としてデ
ジタル複写機を想定し、さらに、そのデジタル複写機の
回転機能のための固定長圧縮を対象として説明する。[First Embodiment] FIG. 1 is a functional block diagram showing a process of signal processing of a compressor in a digital image forming apparatus as an embodiment of an image processing apparatus according to the present invention. Here, a digital copying machine is assumed as the digital image forming apparatus, and a fixed length compression for a rotation function of the digital copying machine will be described.
【0012】この実施形態における圧縮器は、フレーム
メモリ101、ブロック分割部102、像域分離部10
3、量子化部104、エントロピー符号化部105、お
よび記憶部106からなる。スキャナから読み込まれた
画像データは、ビットマップデータに変換され、フレー
ムメモリ(第1の記憶部)101に格納される。ここ
で、1枚分のビットマップデータが完成すると、このデ
ータはブロック分割部102で2×2の画素に分割され
像域分離部103に転送される。像域分離部103で
は、前記2×2画素に分割された画像データに基づいて
階調差の激しい領域と、そうでない領域とに分離する。
いずれかの領域に分離された各ブロックは、量子化部1
04において、それぞれの領域に最適な量子化が行なわ
れ、固定長に圧縮される。回転機能の場合、固定長に圧
縮されたデータをさらにエントロピ符号化部105で、
算術符号等による2次圧縮が行なわれる。その後、これ
らの圧縮されたデータは記憶部106に一時保管され
る。The compressor in this embodiment includes a frame memory 101, a block dividing unit 102, an image area separating unit 10
3. It comprises a quantization unit 104, an entropy encoding unit 105, and a storage unit 106. The image data read from the scanner is converted into bitmap data and stored in the frame memory (first storage unit) 101. Here, when one piece of bitmap data is completed, this data is divided into 2 × 2 pixels by the block dividing unit 102 and transferred to the image area separating unit 103. The image area separation unit 103 separates an area having a large gradation difference from an area where the difference is not large based on the image data divided into 2 × 2 pixels.
Each block separated into any one of the regions is
At 04, optimal quantization is performed on each region and compressed to a fixed length. In the case of the rotation function, the data compressed to the fixed length is further encoded by the entropy encoding unit 105,
Secondary compression using arithmetic codes and the like is performed. Thereafter, these compressed data are temporarily stored in the storage unit 106.
【0013】像域分離部103では、ブロック分割部1
02で例えば深さ8ビット(256階調)の画像データ
を2×2の画素a、b、c、d(図5参照)より成るブ
ロック毎に分割する。そして、入力画像データ値が
「0」、「255」に近い値を持つブロックを抽出す
る。例えば図2でa=0、b=100、c=251、d
=200示すようなブロックがあった場合、cの「25
1」は「255」に置き換えられ、その結果、ブロック
中に「0」と「255」が存在するため、「エッジ領
域」と判定される。また、図3に示すようなブロック
は、a=25、b=100、c=180、d=200で
あって、「0」も「255」も、あるいはこれらに近い
値も存在しないので「非エッジ領域」と判定される。In the image area separating unit 103, the block dividing unit 1
In step 02, for example, image data having a depth of 8 bits (256 gradations) is divided into blocks each including 2 × 2 pixels a, b, c, and d (see FIG. 5). Then, a block whose input image data value is close to “0” or “255” is extracted. For example, in FIG. 2, a = 0, b = 100, c = 251, d
= 200, if there is a block as shown in FIG.
“1” is replaced by “255”. As a result, since “0” and “255” exist in the block, it is determined to be an “edge area”. Further, the block as shown in FIG. 3 has a = 25, b = 100, c = 180, and d = 200. Since neither “0” nor “255” or a value close to these exists, “ Edge region "is determined.
【0014】量子化部104では、以下のようは処理が
実行される。なお、ここでは、固定長圧縮として8ビッ
トを3ビットに圧縮することを考える。したがって、4
画素まとめて固定長圧縮すると、 8×4=32(ビット) を、 3×4=12(ビット) にすることになる。In the quantization section 104, the following processing is executed. Here, it is assumed that 8 bits are compressed to 3 bits as fixed-length compression. Therefore, 4
When the pixels are collectively fixed-length compressed, 8 × 4 = 32 (bits) becomes 3 × 4 = 12 (bits).
【0015】まず、領域分離部103で「エッジ領域」
と判定されたブロックでは、図4に示すように、
「0」、「255」に近い±10の範囲のデータ(a=
0、c=251)は「0」または「255」に変換す
る。また、これら以外の中間濃度データはブロック中で
平均化する。例えば図4(a)において「0」、「25
5」にならなかったb=100、d=200のデータは
平均化され、「150」になる。そのときの固定長に圧
縮するビット表現は図4の(b)に示すようになる。M
SB側から4ビットは中間濃度(グレー画素)、次の4
ビットは黒画素「0」、LSB側4ビットは前述の平均
化したグレー濃度を4ビット線形量子化したものを示
す。ここでは、平均値が「150」(1001011
0)であるので「144」(10010000)とな
り、「1001」が入る。これにより計12ビットの表
現になる。First, an "edge region" is
In the block determined as, as shown in FIG.
Data within a range of ± 10 close to “0” and “255” (a =
(0, c = 251) is converted to “0” or “255”. The other intermediate density data is averaged in the block. For example, in FIG.
Data of b = 100 and d = 200 that did not become “5” are averaged to become “150”. The bit representation compressed to the fixed length at that time is as shown in FIG. M
The 4 bits from the SB side are intermediate density (gray pixels), the next 4
The bit indicates a black pixel “0”, and the LSB side 4 bits indicate a 4-bit linear quantization of the averaged gray density. Here, the average value is “150” (1001011)
0), it becomes “144” (10010000), and “1001” is entered. This gives a total of 12 bits.
【0016】「エッジ領域」として判定されなかった
「非エッジ領域」では、まず、サブバンド変換される。
ここでは、サブバンド変換の1つとして、2×2のウェ
ーブレット変換が使用される。ウェーブレット変換(Ha
rr Wavelet変換)では、図5に示すように2×2のブロ
ックに分けられた画像データを1つの低周波成分LLと
3つの高周波成分HL、LHおよびHHに分解する。In the "non-edge area" which is not determined as the "edge area", first, sub-band conversion is performed.
Here, a 2 × 2 wavelet transform is used as one of the sub-band transforms. Wavelet transform (Ha
In rr Wavelet transform), image data divided into 2 × 2 blocks is decomposed into one low-frequency component LL and three high-frequency components HL, LH and HH as shown in FIG.
【0017】 LL=(a+b+c+d)/4 HL=(a−b)/2+(c−d)/2 LH=(a+b)/2−(c+d)}/2 HH=(a−b)−(c−d) ・・・(1) ここで、入力画像データが深さ8ビット(256階調)
の場合、LL成分は0から255までの値を取り得るの
で8ビット、HL、LH成分は−255から255まで
の値を取り得るので9ビット、HH成分は−510から
510までの値を取り得るので10ビットとなる。LL = (a + b + c + d) / 4 HL = (ab) / 2 + (cd) / 2 LH = (a + b) / 2− (c + d)} / 2 HH = (ab) − (c) −d) (1) Here, the input image data has a depth of 8 bits (256 gradations).
In the case of, the LL component can take a value from 0 to 255, so 8 bits, the HL and LH components can take a value from -255 to 255, so 9 bits, and the HH component takes a value from -510 to 510. 10 bits.
【0018】そこで、図3の「非エッジ領域」の画像デ
ータに対して図5に示すようなウェーブレット変換を行
なうと、図6(a)に示すような係数(LL=126、
HL=−128、LH=−48、HH=−55)に変換
される。この場合のビット表現は、図6(b)の右側に
示したD3のようになる。この図から分かるように「エ
ッジ領域」と同様に先頭4ビットをグレー画素の位置情
報とする。そのため、4つのすべての画素がグレー画素
なので、MSB側4ビットは全て「1」となる。残りの
5ビットはウェーブレット係数のベクトル量子化とす
る。このうち上位4ビットに低周波成分のLLを4ビッ
ト量子化したものを入れる。ここでは、「126」(0
1111110)→「112」(01110000)と
なる。下位4ビットは高周波成分である前記3成分(L
H,HL,HH)をベクトル化し、ベクトルコード0〜
15までを入れる。ベクトルコードの決定方法は、前も
って用意されたテーブルの中から近いものを使用する。
この例を図に示す。すなわち、図7に示すような0〜1
5までのパターンを用意し、現在の係数の中で最も大き
い値を持つ係数を使って、この中から選ぶ。図6に示し
た係数では、HL=−128が絶対値としていちばん大
きいので、HLを用いて図7のベクトルコード6(0,
−128,0)が選ばれる。したがって、下位4ビット
には、「0110」が入る。Therefore, when the wavelet transform as shown in FIG. 5 is performed on the image data of the “non-edge area” in FIG. 3, the coefficients (LL = 126,
HL = −128, LH = −48, HH = −55). The bit representation in this case is as D3 shown on the right side of FIG. As can be seen from this figure, the first 4 bits are used as the position information of the gray pixels, similarly to the “edge area”. Therefore, since all four pixels are gray pixels, all four bits on the MSB side are “1”. The remaining 5 bits are used for vector quantization of wavelet coefficients. Of these, the upper 4 bits are obtained by quantizing the LL of the low frequency component by 4 bits. Here, “126” (0
1111110) → “112” (01110000). The lower 4 bits are the above-mentioned three components (L
H, HL, HH) into a vector,
Insert up to 15. A vector code is determined by using a table that is close to a previously prepared table.
This example is shown in the figure. That is, as shown in FIG.
Up to five patterns are prepared, and the coefficient having the largest value among the current coefficients is used to select from these. In the coefficient shown in FIG. 6, HL = −128 is the largest as an absolute value, and thus the vector code 6 (0,
−128,0) is selected. Therefore, "0110" is entered in the lower 4 bits.
【0019】以上のように本実施形態によれば、処理ブ
ロックが2×2なので作業用の入力ラインメモリは2ラ
イン分で済ますことができ、コストを安く抑えることが
できる。また、入力データの画素値から直接エッジを検
出して像域を分離するので、簡単に各領域に合った効率
のよい量子化が可能になる。As described above, according to the present embodiment, the number of processing blocks is 2.times.2, so that the number of working input line memories can be reduced to two, and the cost can be reduced. In addition, since the image area is separated by directly detecting the edge from the pixel value of the input data, efficient quantization suitable for each area can be easily performed.
【0020】〔第2の実施形態〕図8に第2の実施形態
に係るデジタル画像形成装置の圧縮器の信号処理の過程
を示す機能ブロック図を示す。[Second Embodiment] FIG. 8 is a functional block diagram showing a process of signal processing of a compressor of a digital image forming apparatus according to a second embodiment.
【0021】この実施形態における圧縮器は、フレーム
メモリ801と、ブロック分割部802と、第1の像域
分離部803と、サブバンド変換部804と、第2の像
域分離部805と、量子化部806と、エントロピ符号
化部807と、記憶部808とから構成されている。こ
のように構成された第2の実施形態では、第1の実施形
態と同様にして入力され、ビットマップに展開された画
像データからブロック分割部802で切り出された2×
2のブロックの画像データが第1の像域分離部803へ
転送される。ここで、階調差の激しい領域がまず切り出
される。ここでは、この領域を「強エッジ領域」と呼
ぶ。そして、抽出されなかったブロックはサブバンド変
換部804でサブバンド変換され、低周波成分と高周波
成分が生成され、高周波成分により第2の像域分離部8
05で、さらに2種類の領域に分離される。これら領域
種類が決定した各ブロックは量子化部806において、
それぞれの領域にそれぞれ最適な量子化が行なわれ、固
定長に圧縮される。そして、第1の実施形態と同様にエ
ントロピ符号化部807でさらに圧縮され、記憶部80
8に送られる。The compressor in this embodiment includes a frame memory 801, a block division section 802, a first image area separation section 803, a subband conversion section 804, a second image area separation section 805, a quantum 806, an entropy encoding unit 807, and a storage unit 808. In the second embodiment configured as described above, the 2 × image data input in the same manner as the first embodiment and extracted by the block division unit 802 from the image data expanded into the bitmap is used.
The image data of the second block is transferred to the first image area separation unit 803. Here, a region having a large gradation difference is cut out first. Here, this area is called a “strong edge area”. Then, the unextracted block is subjected to sub-band conversion by the sub-band converter 804 to generate a low-frequency component and a high-frequency component.
At 05, it is further separated into two types of regions. Each of the blocks whose region type is determined is quantized by the quantization unit 806.
Optimum quantization is performed on each area, and the data is compressed to a fixed length. Then, as in the first embodiment, the data is further compressed by the entropy coding unit 807 and stored in the storage unit 80.
8
【0022】この実施形態において、フレームメモリ8
01、ブロック分割部802、第1の像域分離部80
3、およびサブバンド変換部804は第1の実施形態と
同等に構成され、同様に動作する。そこで、第2の像域
分離部805について詳細に説明する。前記第1の像域
分離部803によって分離され、「非エッジ領域」とさ
れたブロックは、サブバンド変換部804で前述のサブ
バンド変換(ウェーブレット変換)を行い、低周波成分
と高周波成分が生成される。そして、このサブバンド変
換されたブロックは第2の像域分離部805で、 分離パラメータ:|LH|>32 または、|HL|>32 または、|HH|>32 ・・・(2) のようなパラメータによってさらに分離され、この条件
に当てはまる場合、そのブロックは「エッジ領域」と判
断される。図9に示す図3と同様の画像データは、ウェ
ーブレット変換によって |HL|=128>32 となり、分離条件に当てはまる。よって「エッジ領域」
と判断される。また、図10のブロックは、(2)式の
条件のいずれにも当てはまらないので「非エッジ領域」
と判断される。すなわち、第1の像域分離部103,8
03で抽出された階調差が激しい領域「強エッジ領域」
と判定され、それ以外の領域に対して、第2の像域分離
部805において「エッジ領域」と「非エッジ領域」と
が判定される。In this embodiment, the frame memory 8
01, block division unit 802, first image area separation unit 80
3 and the sub-band converter 804 are configured in the same manner as in the first embodiment, and operate in the same manner. Therefore, the second image area separation unit 805 will be described in detail. The block separated as the “non-edge area” by the first image area separation unit 803 performs the above-described sub-band conversion (wavelet conversion) in the sub-band conversion unit 804 to generate a low-frequency component and a high-frequency component. Is done. Then, the subband-converted block is processed by the second image area separation unit 805 to obtain a separation parameter: | LH |> 32 or | HL |> 32 or | HH |> 32 (2) If this condition is satisfied, the block is determined to be an “edge area”. Image data similar to FIG. 3 shown in FIG. 9 becomes | HL | = 128> 32 by the wavelet transform, and satisfies the separation condition. Therefore, "edge area"
Is determined. Further, the block in FIG. 10 does not satisfy any of the conditions of the expression (2), so that the “non-edge area”
Is determined. That is, the first image area separation units 103 and 8
Area with strong gradation difference extracted in 03 "Strong edge area"
, And the second image area separation unit 805 determines an “edge area” and a “non-edge area” for the other areas.
【0023】分離されたそれぞれブロックの画像データ
はさらに量子化部806で量子化される。ここでは、
「強エッジ領域」は図4に示したものと同様に固定長圧
縮され、「エッジ領域」は図6に示したもとの同様に固
定長圧縮される。ただし、この実施形態では、「非エッ
ジ領域と区別するためにウェーブレットベクトル量子化
のHに使用していた4ビットのうち下位2ビットが「0
0」となるコードは使用できない。そのため、図7に示
したベクトルコードの16個全ては使用することができ
ず、16−4=12個しか使用することはできない。そ
こで、ベクトルの内容は出現頻度などから絞って限定す
る。The separated image data of each block is further quantized by a quantization unit 806. here,
The "strong edge region" is fixed-length compressed as shown in FIG. 4, and the "edge region" is fixed-length compressed as shown in FIG. However, in this embodiment, “lower 2 bits of 4 bits used for H of wavelet vector quantization to distinguish from non-edge areas are“ 0
A code that is "0" cannot be used. Therefore, all 16 of the vector codes shown in FIG. 7 cannot be used, and only 16−4 = 12 can be used. Therefore, the contents of the vector are limited by narrowing down the frequency of appearance.
【0024】図10に示した「非エッジ領域」のブロッ
クの係数のビット表現は図11(b)に示すようにな
る。MSB4ビットは今まで同様にグレー画素の位置情
報を示す。ここでは、4ビット全て1となる。残りの8
ビットについては、最もエッジが弱いところなので、低
周波成分のみを使用する。そして、LSB側2ビットを
「エッジ領域」と区別するために「0」を入れ、上位6
ビットでLL成分を6ビット線形量子化したものをいれ
る。ここでは「113」(01110001)→「11
2」(01110000)になる。The bit representation of the coefficients of the block in the "non-edge area" shown in FIG. 10 is as shown in FIG. The four MSB bits indicate the position information of the gray pixels as before. Here, all four bits are "1". Remaining 8
As for the bit, since the edge has the weakest edge, only the low frequency component is used. Then, “0” is inserted to distinguish the two LSB-side bits from the “edge area”, and
A 6-bit linearly quantized LL component is used. Here, “113” (01110001) → “11”
2 "(01110000).
【0025】このように3つの領域に分離され、それぞ
れ異なった量子化が行なわれるが、復号側での見分け方
は、まず、先頭4ビットが全て「1」(1111XXX
X)か否かで「強エッジ領域」であるかどうかが判断で
きる。「強エッジ領域」ではないと判断されたブロック
の下位8ビットのうち。LSB側2ビットが「00」で
あった場合には、前述のように当該領域は、「非エッジ
領域」なので、残った領域が「エッジ領域」であること
が分かる。As described above, the data is divided into three regions, and different quantizations are performed. However, the way of discrimination on the decoding side is as follows. First, all the leading 4 bits are “1” (1111XXXX).
X), it can be determined whether or not it is a “strong edge area”. Of the lower 8 bits of the block determined not to be a "strong edge area". When the LSB side 2 bits are “00”, since the area is a “non-edge area” as described above, it can be seen that the remaining area is an “edge area”.
【0026】また、前述のようにして固定長に圧縮した
ものを、電子ソート機能等のために図8に示すようにエ
ントロピ符号化によって圧縮し、蓄積メモリに保存しよ
うとした場合、実行可能なソート枚数を増やすためにも
3/8に固定長圧縮されたものをさらに小さい容量に圧
縮することが望ましい。そこで、「エッジ領域」と「非
エッジ領域」はウェーブレット変換によって低周波成分
(LL)と高周波成分(H)のベクトルによって8ビッ
トで表現するが、各々のブロックの低周波成分(LL)
だけグレーコード化「0100」(図12)、「010
000」(図13)すると、エントロピ符号化する際、
グレーコード化しない場合に比べてさらに圧縮効率を高
めることができる。If the data compressed to a fixed length as described above is compressed by entropy encoding as shown in FIG. 8 for an electronic sort function or the like and is stored in a storage memory, it becomes executable. In order to increase the number of sheets to be sorted, it is desirable to compress the compressed data having a fixed length of 3/8 to a smaller capacity. Therefore, the "edge region" and the "non-edge region" are expressed by 8 bits by a vector of a low frequency component (LL) and a high frequency component (H) by a wavelet transform, and the low frequency component (LL) of each block.
Only gray coding “0100” (FIG. 12), “010
000 "(FIG. 13), when performing entropy coding,
The compression efficiency can be further increased as compared with the case where the gray coding is not performed.
【0027】このように第2の実施形態によれば、入力
画像データをみて階調差の激しいブロックを抽出するこ
とにより、エッジのきつい部分を忠実に再現することが
可能となる。また、残りのブロックにおいても、周波数
分解の結果によって前記第1の実施形態よりもさらに数
種類の領域に分離することが可能となり、各領域にあっ
たより効率の良い量子化を行うことができる。As described above, according to the second embodiment, it is possible to faithfully reproduce a sharp edge portion by extracting a block having a large gradation difference from the input image data. Also, the remaining blocks can be further divided into several types of regions according to the result of the frequency decomposition as compared with the first embodiment, and more efficient quantization can be performed for each region.
【0028】また、階調差の激しい部分である「0」、
「255」に近いデータがほぼ劣化することなく保存さ
れるので、網点画像の量子化によるモアレを防ぐことが
可能になる。Further, "0" which is a portion where the gradation difference is large,
Since data close to "255" is stored with almost no deterioration, it is possible to prevent moiré due to quantization of a halftone dot image.
【0029】また、「強エッジ領域」以外の領域で高周
波成分をベクトル化することによって効率のよい量子化
を行うことができる。Further, efficient quantization can be performed by vectorizing high-frequency components in a region other than the "strong edge region".
【0030】さらに、「強エッジ領域」以外の領域では
ウェーブレット変換によって低周波成分(LL)と高周
波成分(H)のベクトルによって8ビットで表現し、各
々のブロックの低周波成分(LL)だけグレーコード化
「0100」、「010000」することにより、エン
トロピ符号化する際、グレーコード化しない場合に比べ
てさらに圧縮効率を高めることができる。Further, in regions other than the "strong edge region", the low-frequency component (LL) and the high-frequency component (H) are represented by 8 bits by a vector of wavelet transform, and only the low-frequency component (LL) of each block is gray. By performing coding “0100” and “010000”, the compression efficiency can be further improved when entropy coding is performed, as compared with the case where gray coding is not performed.
【0031】[0031]
【発明の効果】以上のように、請求項1記載の発明によ
れば、 画像を2×2画素のブロック単位に分割してサブバン
ド変換を行うので、作業用のメモリは2ライン分です
む。As described above, according to the first aspect of the present invention, since an image is divided into blocks of 2 × 2 pixels and subband conversion is performed, only two lines of working memory are required. .
【0032】入力データにより直接エッジを検出して
像域を分離するため、簡単に各領域に合った効率の良い
量子化が可能になる。Since an image area is separated by directly detecting an edge based on input data, efficient quantization suitable for each area can be easily performed.
【0033】請求項2記載の発明によれば、 入力データを見て階調差の激しいブロックを検出する
ことにより、エッジのきつい部分を忠実に再現すること
が可能になる。According to the second aspect of the present invention, it is possible to faithfully reproduce a sharp edge portion by detecting a block having a large gradation difference by looking at input data.
【0034】残りのブロック部においても、周波数分
解の結果によりさらに数種類の領域に分離することがで
き、各領域に合った効率のよい量子化が可能になる。The remaining blocks can be further divided into several types of regions based on the result of the frequency decomposition, and efficient quantization suitable for each region can be performed.
【0035】請求項3記載の発明によれば、 第1の領域については、前記ブロックの4画素のうち
画素値の取り得る最大値または最小値に近いデータはそ
れぞれ最大値または最小値に変換して保存するので、こ
れらのデータがほぼ劣化することなく保存され、これに
よって網点画像の量子化によるモアレを防ぐことができ
る。According to the third aspect of the present invention, for the first area, of the four pixels of the block, data that is close to the maximum or minimum possible pixel value is converted to the maximum or minimum value, respectively. Since these data are stored almost without deterioration, it is possible to prevent moiré due to quantization of the halftone dot image.
【0036】残りの画素は平均化するとともに、第2
の領域についてはサブバンド変換後の高周波成分をベク
トル量子化するので、効率のよい量子化を行うことがで
きる。The remaining pixels are averaged and the second
Since the high-frequency component after the sub-band conversion is vector-quantized for the region of, efficient quantization can be performed.
【0037】請求項4記載の発明によれば、エントトピ
符号化時の圧縮率を向上させることができる。According to the fourth aspect of the present invention, it is possible to improve the compression ratio at the time of enttopic coding.
【図1】本発明の第1の実施形態に係るデジタル画像形
成装置の圧縮器の信号処理過程を示す機能ブロック図で
ある。FIG. 1 is a functional block diagram illustrating a signal processing process of a compressor of a digital image forming apparatus according to a first embodiment of the present invention.
【図2】図1の像域分離部で分離されたエッジ領域の画
像データの一例を示す説明図である。FIG. 2 is an explanatory diagram illustrating an example of image data of an edge area separated by an image area separation unit in FIG. 1;
【図3】図1の像域分離部で分離された非エッジ領域の
画像データの一例を示す説明図である。FIG. 3 is an explanatory diagram illustrating an example of image data of a non-edge area separated by an image area separation unit in FIG. 1;
【図4】図1の量子化部のエッジ領域における量子化の
説明図である。FIG. 4 is an explanatory diagram of quantization in an edge region of the quantization unit in FIG. 1;
【図5】サブバンド変換(Wavelet変換)の変換状態を
示す説明図である。FIG. 5 is an explanatory diagram showing a conversion state of subband conversion (Wavelet conversion).
【図6】図1の量子化部における非エッジ領域の量子化
の説明図である。FIG. 6 is an explanatory diagram of quantization of a non-edge area in the quantization unit of FIG. 1;
【図7】図1の量子化部でサブバンド変換後の高周波成
分をベクトル量子化するときに使用するベクトルコード
テーブルを示す図である。7 is a diagram illustrating a vector code table used when vector quantization is performed on a high-frequency component after subband conversion by the quantization unit in FIG. 1;
【図8】第2の実施形態に係るデジタル画像形成装置の
圧縮機の信号処理過程を示す機能ブロック図である。FIG. 8 is a functional block diagram illustrating a signal processing process of a compressor of the digital image forming apparatus according to the second embodiment.
【図9】図8の第2の像域分離部で分離されたエッジ領
域の画像データの一例を示す説明図である。9 is an explanatory diagram illustrating an example of image data of an edge area separated by a second image area separation unit in FIG. 8;
【図10】図8の第2の像域分離部で分離された非エッ
ジ領域の画像データの一例を示す説明図である。FIG. 10 is an explanatory diagram illustrating an example of image data of a non-edge area separated by a second image area separation unit in FIG. 8;
【図11】図8の量子化部における非エッジ領域の量子
化の説明図である。FIG. 11 is an explanatory diagram of quantization of a non-edge area in the quantization unit of FIG. 8;
【図12】図8の第2の像域分離部におけるエッジ領域
のグレーコード化処理を示す説明図である。FIG. 12 is an explanatory diagram showing a gray coding process of an edge region in the second image area separation unit in FIG. 8;
【図13】図8の第2の像域分離部における非エッジ領
域のグレーコード化処理を示す説明図である。FIG. 13 is an explanatory diagram showing a gray coding process of a non-edge area in the second image area separation unit in FIG. 8;
101,801 フレームメモリ 102 像域分離部 103,805 量子化部 104,806 エントロピ符号化部 105,807 記憶部 101,801 Frame memory 102 Image area separation unit 103,805 Quantization unit 104,806 Entropy coding unit 105,807 Storage unit
Claims (4)
に分割するブロック分割手段と、 前記ブロック内の階調差によって複数種類の領域に分離
する領域分離手段と、 分離された各領域を同じビット数に固定長で量子化する
量子化手段と、を備え、前記像域分離手段は、入力され
た画像データの画素値から階調差の激しい第1の領域
と、そうでない第2の領域に分離することを特徴とする
画像処理装置。A block dividing unit that divides image data into 2 × 2 pixel blocks; a region separating unit that divides the image data into a plurality of types of regions by a gradation difference in the block; Quantizing means for quantizing the number of bits to a fixed length, wherein the image area separating means comprises: a first area having a large gradation difference from a pixel value of input image data; An image processing apparatus characterized in that the image processing apparatus is separated into images.
最初に分離し、その後、第2の領域をサブバンド変換後
の高周波係数を用いてさらに分離することを特徴とする
請求項1記載の画像処理装置。2. The apparatus according to claim 1, wherein the image area separating unit separates the first area first, and then further separates the second area using a high-frequency coefficient after subband conversion. 2. The image processing device according to 1.
いては、前記ブロックの4画素のうち画素値の取り得る
最大値または最小値に近いデータはそれぞれ最大値また
は最小値に変換して保存し、残りの画素は平均化すると
ともに、前記第2の領域については、サブバンド変換後
の高周波成分をベクトル量子化することを特徴とする請
求項1記載の画像処理装置。3. The quantization means converts data close to the maximum value or minimum value of a pixel value among the four pixels of the block into the maximum value or minimum value for the first area. The image processing apparatus according to claim 1, wherein the image is stored, the remaining pixels are averaged, and the high frequency component after the subband conversion is vector-quantized in the second region.
ては、前記量子化手段は、サブバンド変換後の低周波成
分に対してグレーコードをかけることを特徴とする請求
項2または3に記載の画像処理装置。4. The block according to claim 2, wherein the quantization means applies a gray code to the low-frequency component after the sub-band conversion for the block to be subjected to the sub-band conversion. Image processing device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32621697A JPH11164150A (en) | 1997-11-27 | 1997-11-27 | Image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32621697A JPH11164150A (en) | 1997-11-27 | 1997-11-27 | Image processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH11164150A true JPH11164150A (en) | 1999-06-18 |
Family
ID=18185296
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP32621697A Pending JPH11164150A (en) | 1997-11-27 | 1997-11-27 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH11164150A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003534742A (en) * | 2000-05-19 | 2003-11-18 | コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ | Methods, systems and devices |
| US8254710B2 (en) | 2007-10-04 | 2012-08-28 | Konica Minolta Business Technologies, Inc. | Compression method, extension method and image processing apparatus |
| JP2014087058A (en) * | 2012-10-22 | 2014-05-12 | Gurulogic Microsystems Oy | Encoder, decoder and method thereof |
| US9245353B2 (en) | 2012-10-22 | 2016-01-26 | Gurulogic Microsystems Oy | Encoder, decoder and method |
-
1997
- 1997-11-27 JP JP32621697A patent/JPH11164150A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003534742A (en) * | 2000-05-19 | 2003-11-18 | コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ | Methods, systems and devices |
| US8254710B2 (en) | 2007-10-04 | 2012-08-28 | Konica Minolta Business Technologies, Inc. | Compression method, extension method and image processing apparatus |
| JP2014087058A (en) * | 2012-10-22 | 2014-05-12 | Gurulogic Microsystems Oy | Encoder, decoder and method thereof |
| US9245353B2 (en) | 2012-10-22 | 2016-01-26 | Gurulogic Microsystems Oy | Encoder, decoder and method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6459816B2 (en) | Image processing system for compressing image data including binary image data and continuous tone image data by a sub-band transform method with a high-compression rate | |
| CN100373948C (en) | A method of preparing images for compression | |
| JP2621747B2 (en) | Image processing device | |
| US6175650B1 (en) | Adaptive quantization compatible with the JPEG baseline sequential mode | |
| KR100880039B1 (en) | Method and system for achieving coding gain in wavelet based image codec | |
| US6252994B1 (en) | Adaptive quantization compatible with the JPEG baseline sequential mode | |
| US6985634B2 (en) | Image processing system for compressing image data including binary image data and continuous tone image data by a sub-band transform method with a high-compression rate | |
| JP2000115770A (en) | Encoding device and method | |
| JP3163880B2 (en) | Image compression coding device | |
| JPH11164150A (en) | Image processing device | |
| JP2000059782A (en) | Compression method for spatial area digital image | |
| JPH09205647A (en) | Image coder, image decoder and image processor | |
| KR100412176B1 (en) | Document segmentation compression, reconstruction system and method | |
| JP2942243B2 (en) | Image encoding apparatus and method | |
| US20050141774A1 (en) | Image compression utilizing discarding of bitplanes | |
| JP3457840B2 (en) | Image processing device | |
| JP2004032772A (en) | Image processing device | |
| JPH11136519A (en) | Image processing device | |
| JP2801182B2 (en) | Image coding method | |
| JP2692832B2 (en) | Image coding transmission method | |
| JPH10145606A (en) | Image processing device | |
| Denecker et al. | A comparative study of lossless coding techniques for screened continuous-tone images | |
| JPH04322562A (en) | Color picture coder | |
| JP2943925B2 (en) | Image coding method | |
| JP4105846B2 (en) | Image processing device |