JPH0577232B2 - - Google Patents
Info
- Publication number
- JPH0577232B2 JPH0577232B2 JP60293908A JP29390885A JPH0577232B2 JP H0577232 B2 JPH0577232 B2 JP H0577232B2 JP 60293908 A JP60293908 A JP 60293908A JP 29390885 A JP29390885 A JP 29390885A JP H0577232 B2 JPH0577232 B2 JP H0577232B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- block
- difference
- pixel
- gradation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Description
−産業上の利用分野−
本発明は中間調画像データを圧縮する階調画像
圧縮方式に関する。
−発明の背景−
フイルム画像など中間調を持つ画像データの圧
縮方式として、予測符号化方式が知られている。
この方式では過去に出現した画素値から現在点の
画素値を予測し、この予測値と現在点の画素値と
の差分である予測誤差を符号化することにより圧
縮を行う。予測誤差の符号化には予測誤差の分布
がラプラス分布になることを考慮して、発生頻度
の高い予測誤差には短い符号化を、頻度の低い予
測誤差には長い符号を割当てることによつて高能
率の符号化を行うことが知られている。
この予測符号化による圧縮は、単独で用いる限
り原画像を完全に復元できる可逆圧縮となり、圧
縮によつて再生画質が低下することはない。しか
し、種々の画像についての統計では予測誤差のエ
ントロピーは8ビツト画像の場合4ビツト程度で
あり、最適の符号化を行うも1/2程度にしか圧縮
できない。この圧縮率は予測方法を工夫しても殆
ど改善されず、予測符号化方法の限界値と考えら
れる。
一方、符号化の他の方式として、人間の視覚特
性と、隣接する画素との間の高い相関性を利用し
たブロツク符号化がある。このブロツク符号化方
式の最も簡単なものとしては、画素数n×nのブ
ロツク別にその平均値をブロツク情報とする。ま
ず、もう少しこつたものとして、n×nブロツク
の画素濃度の平均値Xabをとり、当該ブロツク内
の各画素濃度が平均値Xabより上か下かを1ビツ
トデータとしてとり、平均値Xabよりも上の画素
グループの平均値Xab1と下の画素グループの平均
値XABOをとり、これら平均値Xab1とXab0によつて
圧縮を行う符号化方式がある。この場合、必要ビ
ツト数は8ビツト画像では8n2→n2+16となり、
n=4では32/128=1/4まで圧縮できる。
しかし、このブロツク符号化方式では、ブロツ
クサイズが一定であるため、濃度変化の小さい領
域においては圧縮効果が不十分であるし、逆に濃
度変化の大きい領域では符号化誤差によりブロツ
ク間に境界が現われて画質の低下が起きる。この
点について、ブロツクサイズが大きくなるほど前
者が改善され、後者が悪化し、小さくなるほど後
者が改善され前者が悪化するという相反する傾向
にあり、双方のバランスでブロツクンサイズを決
定すると圧縮率、画質共に満足するものが得られ
なくなる。
−発明の目的−
本発明の目的は、任意の濃度領域、濃度変化を
持つ画像データを高品質にしながら高圧縮率にす
ることができ、しかも予測符号化における予測誤
差の分布が中央に集まるようにして符号化効率を
向上できる圧縮方式を提供するにある。
−発明の構成−
本発明は、中間調をもつ画像データの各画素デ
ータを複数個まとめてブロツクとし、これらのブ
ロツクをブロツク内画素データ間の差分の大きさ
に応じて複数のモードに分類し、モードによつて
特定されるパラメータに従つて画素データを処理
する階調画像圧縮方法において、差分の小さいブ
ロツクは階調定量を小さくかつ間引きを大きく
し、差分の大きいブロツクは階調低減量を大きく
かつ間引きを小さくする階調画像圧縮方法を提案
するものである。
−実施例−
図は本発明の一実施例を示すブロツク図であ
る。画像メモリ1は、フイルム等の画像(原画)
から読取つた各画素の多値の階調で表われる中間
調画像データが格納される。1ブロツクメモリ2
は画像メモリ1の画像データから切取られた1ブ
ロツク分のデータDが記憶される。ブロツク代表
値メモリ3は1ブロツクメモリ2に転送された1
ブロツク分データDの代表値Da1が記憶される。
差分計算回路4は1ブロツクメモリ2に記憶する
ブロツクデータDから順次読出された1画素づつ
のデータDbについて隣接画素との差分Saを求め
る。モード決定回路5は差分計算回路4で求める
差分Saの最大値からモードMを決定する。階調情
報低減回路6は、モードMに従つて1ブロツクメ
モリ2のブロツクデータDbの諧調を変更し、こ
の変更したブロツクデータDcを再び1ブロツク
メモリ2に書込む。差分計算回路4は1ブロツク
メモリ2に再書込されたブロツクデータDbにつ
いて再度隣接画素との差分Saを求める。間引き回
路7は差分計算回路4からの差分Saをモード決定
回路5のモードMの度合いに応じて間引く。符号
化器8は間引かれた差分データSbを可変長符号化
する。
予測符号化回路9はブロツク代表値メモリ3に
蓄えられた代表値データDa2を予測符号化する。
この予測符号化回路9に得る符号化ブロツク代表
値データCaと、符号化器8に得る符号化差分デ
ータCb及びモード決定回路5に得るモードMと
は組合わせされて圧縮画像データ10として取出
される。
こうした構成における実際の画像データについ
ての処理動作を以下に詳細に説明する。
画像メモリ1に収集された画像データは1ブロ
ツクメモリ2に分割されてその1ブロツク分が転
送される。ここで、ブロツク分割数について説明
する。画像をN×Nの微小ブロツクに分解すると
きに、Nが小さすぎても、また大きすぎてもその
ブロツクの性質を的確に掴むことができない。し
かし、Nの大きさを正確に決定することはそれが
対象画像の個々の性質に大きく依存しているため
大変難づかしい。そこで、本実施例では区切りの
良い数、そしてハード化し易い数としてN=8を
用いる。これはN=8としておくと、当該ブロツ
クデータをさらに4×4、2×2のブロツクに分
割でき、より細かい処理に移行し易くする利点が
ある。
さて、N=8と設定されて1ブロツクメモリ2
には64個の画素データが転送される。また、同時
に、ブロツク代表値メモリ3には1つの画素デー
タが代表値として記憶される。この代表値は64個
の画素データのいずれでも良いが、本実施例では
ブロツクデータ(8×8)の左上隅の画素データ
をブロツク代表値とし、当該画素データをブロツ
ク代表値メモリ3に格納する。この代表値の集合
は1つのフアイルとしてメモリ3に保存され、こ
のフアイルの大きさは原画像データと比べて1/64
になつている。また、このフアイルは可逆圧縮に
よつてさらに小さくすることができ、最終的には
1%以下にもすることができる。
1ブロツクメモリ2に転送された64個の画素デ
ータからなるブロツクデータDbについて、各画
素に下記のような名前を付けたとき
X11 X12 X13 ・・・ X1N
X21 X22 ・ ・
X31 ・ ・ ・
・ ・ ・ ・
・ ・ ・ ・
XN1 XN2 ・ ・・・ XNN
差分計算回路4は、隣接画素間の差分Saを次のル
ールに従つて求める。
(a) X11に対する差分dX11は無視する。
(b) dXi1=Xi1−X(i−1)1とする。但し、
2<=i<=8
(c) dXij=Xij−Xi(j−1)とする。但し、j
<>1
こうして求めた差分dXの集合Saを取込むモー
ド決定回路5は、そのSaの絶対が最大であるもの
を選び出し、予め設定される3つのしきい値と比
較し当該ブロツクデータを4つのモードに分類記
憶する。このしきい値とモードMの対応は例えば
次のように設定する。
-Field of Industrial Application- The present invention relates to a tone image compression method for compressing halftone image data. -Background of the Invention- A predictive coding method is known as a compression method for image data having halftones such as a film image.
In this method, a pixel value at the current point is predicted from pixel values that appeared in the past, and compression is performed by encoding a prediction error that is the difference between this predicted value and the pixel value at the current point. Taking into consideration that the distribution of prediction errors follows the Laplace distribution, we assign short codes to frequently occurring prediction errors and long codes to infrequently occur prediction errors. It is known to perform highly efficient encoding. Compression by predictive coding is reversible compression that can completely restore the original image as long as it is used alone, and the reproduced image quality does not deteriorate due to compression. However, according to statistics regarding various images, the entropy of the prediction error is about 4 bits for an 8-bit image, and even if optimal encoding is performed, it can only be compressed to about 1/2. This compression rate is hardly improved even if the prediction method is devised, and is considered to be the limit value of the predictive encoding method. On the other hand, as another encoding method, there is block encoding that utilizes human visual characteristics and the high correlation between adjacent pixels. The simplest block encoding method uses the average value of each block of n×n pixels as block information. First, as something a little more sophisticated, take the average value X ab of the pixel density of an n×n block, take as 1-bit data whether each pixel density in the block is above or below the average value X ab , and calculate the average value X ab. There is an encoding method that takes the average value X ab1 of the pixel group above ab and the average value X ABO of the pixel group below ab, and performs compression using these average values X ab1 and X ab0 . In this case, the required number of bits is 8n 2 →n 2 +16 for an 8-bit image,
When n=4, it can be compressed to 32/128=1/4. However, in this block encoding method, since the block size is constant, the compression effect is insufficient in areas with small density changes, and conversely, in areas with large density changes, boundaries between blocks may be formed due to coding errors. This results in a decrease in image quality. Regarding this point, there is a contradictory tendency that the larger the block size is, the more the former improves and the latter becomes worse, and the smaller the block size is, the latter is improved and the former becomes worse. You won't be able to find anything that will satisfy you both. -Object of the Invention- The object of the present invention is to make it possible to achieve a high compression rate while maintaining high quality of image data having arbitrary density regions and density changes, and to make the distribution of prediction errors in predictive coding concentrate in the center. The purpose of the present invention is to provide a compression method that can improve encoding efficiency. -Structure of the Invention- The present invention collects a plurality of pixel data of image data having halftones into a block, and classifies these blocks into a plurality of modes according to the magnitude of the difference between the pixel data within the block. In a gradation image compression method that processes pixel data according to parameters specified by a mode, blocks with a small difference have a small gradation quantity and a large amount of thinning, and blocks with a large difference have a large gradation reduction amount. This paper proposes a method for compressing gradation images that is large and reduces thinning. -Embodiment- The figure is a block diagram showing an embodiment of the present invention. Image memory 1 stores images (original images) on film, etc.
Halftone image data represented by multivalued gradation of each pixel read from the image data is stored. 1 block memory 2
One block of data D cut out from the image data in the image memory 1 is stored. Block representative value memory 3 is 1 transferred to block memory 2.
The representative value D a 1 of the block data D is stored.
The difference calculation circuit 4 calculates the difference S a between each pixel data D b sequentially read out from the block data D stored in the one block memory 2 and the adjacent pixel. The mode determining circuit 5 determines the mode M from the maximum value of the difference S a determined by the difference calculating circuit 4. The gradation information reduction circuit 6 changes the gradation of the block data Db in the 1-block memory 2 according to the mode M, and writes the changed block data Dc into the 1-block memory 2 again. The difference calculation circuit 4 again calculates the difference S a between the block data D b rewritten in the one block memory 2 and the adjacent pixel. The thinning circuit 7 thins out the difference S a from the difference calculating circuit 4 according to the degree of mode M of the mode determining circuit 5. The encoder 8 performs variable length encoding on the thinned out difference data S b . The predictive encoding circuit 9 predictively encodes the representative value data D a 2 stored in the block representative value memory 3.
The encoded block representative value data C a obtained in the predictive encoding circuit 9, the encoded difference data C b obtained in the encoder 8, and the mode M obtained in the mode determination circuit 5 are combined as compressed image data 10. taken out. Processing operations for actual image data in this configuration will be described in detail below. The image data collected in the image memory 1 is divided into one block memory 2, and one block worth of data is transferred. Here, the number of block divisions will be explained. When decomposing an image into N×N minute blocks, if N is too small or too large, the properties of the blocks cannot be accurately grasped. However, it is very difficult to accurately determine the size of N because it largely depends on the individual characteristics of the target image. Therefore, in this embodiment, N=8 is used as a number with good separation and a number that can be easily converted into hardware. By setting N=8, the block data can be further divided into 4×4 and 2×2 blocks, which has the advantage of facilitating transition to more detailed processing. Now, with N=8 set, 1 block memory 2
64 pixel data are transferred. At the same time, one pixel data is stored in the block representative value memory 3 as a representative value. This representative value may be any of the 64 pixel data, but in this embodiment, the pixel data at the upper left corner of the block data (8 x 8) is set as the block representative value, and the pixel data is stored in the block representative value memory 3. . This set of representative values is stored in the memory 3 as one file, and the size of this file is 1/64th of the original image data.
It's getting old. Additionally, this file can be made even smaller by lossless compression, and ultimately less than 1%. For block data D b consisting of 64 pixel data transferred to block memory 2, if each pixel is named as follows: X11 X12 X13 ... X1N X21 X22 ... X31 ...・ ・ ・ ・ ・ ・ XN1 XN2 ・ ... XNN The difference calculation circuit 4 calculates the difference S a between adjacent pixels according to the following rules. (a) Ignore the difference dX11 with respect to X11. (b) Let dXi1=Xi1-X(i-1)1. however,
2<=i<=8 (c) Let dXij=Xij−Xi(j−1). However, j
<>1 The mode determining circuit 5 that receives the set S a of the differences dX obtained in this way selects the one with the largest absolute value of S a , compares it with three preset thresholds, and selects the block data. Classified and stored in four modes. The correspondence between this threshold value and mode M is set, for example, as follows.
【表】
このモード分類には0〜3の分類番号も各ブロ
ツク毎にフアイルしておき、このフアイルを以後
モード選択フアイルと呼ぶ。このモード選択フア
イルは、各ブロツクに2ビツト必要とすることか
ら、フアイルの大きさとしては
(1/64)×(2/8)=1/256
となり、代表値フアイルと合わせて画像データの
およそ1.5%になる。
次に、階調情報低減回路6では、前述のように
モード決定回路5からのモードMのモードデータ
M0〜M3に従つて当該モードMになるブロツクデ
ータDbの階調低減を行う。この諧調低減で気を
つけることは疑似輪郭を出さないようにしなけれ
ばならない。疑似輪郭は温度変化のなだらかな部
分で発生し易い。そこで、本実施例ではモード選
択フアイルのモードデータM0〜M3を参照しなが
らブロツク毎に階調低減の度合いを変える。すな
わち、モードデータの数値0〜3の小さいブロツ
クについては濃度変化のなだらかな部分と判定し
てブロツクデータDbの階調低減量を少なくし、
数値0〜3の大きいブロツクについては濃度変化
の激しい部分と判定してブロツクデータDbの階
調低減量を多くすることで疑似輪郭の発生を抑え
ながら圧縮率を高める。
階調情報低減回路6による階調の低減処理は具
体的には、処理後のデータDcとして隣接画素と
の差分がモードデータM0〜M3数値0〜3(階調
低減変数)の倍数になるようにし、その後隣接画
素との差分値を数値0〜3で割つた値を階調低減
したデータDcとして1ブロツクメモリ2に格納
する。
例えば、4*4のブロツクDbの数値が下記の
ように配列にあるとする。
5 6 8 10
7 7 8 10
7 9 9 12
10 13 9 3
このデータDbについて左上隅のブロツク代表
値からの差分は
0 1 3 5
2 2 3 5
2 4 4 7
5 8 4 −2
となる。ここで階調低減変数3(M3)とすると、
この差分は
0 0 3 6
3 3 3 6
3 3 3 6
6 9 3 −3
と変更される。従つて、画像データは
5 5 8 11
8 8 8 11
8 8 8 11
11 14 8 2
となる。これからモード選択フアイルを作成した
ときと同様の手順で差分を計算すると、左上隅は
0として
0 0 3 3
3 0 0 3
0 0 0 6
3 3 −6 −6
となり、これを階調低減変数3で割ると
0 0 1 1
1 0 0 1
0 0 0 1
1 1 −2 −2
というデータが得られる。このデータからも明ら
かなように、予測誤差(隣接画素との差分)の分
布は中央(0)に集まつて以後の符号化効率を高
め、また多きな圧縮率を得ることができる。
次に、階調低減及び差分計算されたデータSaに
ついて、間引き回路7によるデータの間引きすな
わち画素密度の低減によつて圧縮率を一層向上さ
せる。このデータの間引きは、単純に1画素おき
に間引くなどの安易な方法では再生画像がぼけて
しまい、疑似輪郭ほどではないが画質が低下して
しまう。本実施例では、画像の特性を考慮した間
引きを行い、間引き回路7はモード決定回路5か
らのモードデータM0〜M3に従つて間引きの度合
いを変えた間引き処理を行う。すなわち、画素を
間引いたときその影響が最も大きく表われるのは
画像が細かく変化している部分であり、この場合
には当該ブロツク内における画素間のデータ差分
が大きくなつていると考えられることから、モー
ド選択フアイルから得るモードデータM0〜M3の
数値が大きいときには間引きを少なくし、小さい
ときには間引きを多くすることでボケの発生を小
さくしかつ圧縮率を向上させる。
なお、間引き処理には処理対象ブロツクを2×
2、4×4の小ブロツクに分け、その左上隅等の
画素データ代表値としたモードデータから行うこ
とで間引き効果を一層確実にする。また、間引き
処理で間引かれた画素は圧縮画像データからの再
生時に補間される。
以下、8×8のブロツクから4×4のブロツク
により間引き処理と補間方法を具体的に説明す
る。
まず、8×8のブロツクデータが次のような座
標配列とするとき、
X11 X12 X13 X14 X15・・・X15
X21・・・・・・・・・・X25・・・X28
X31・・・・・・・・・・X35 ・
X41・・・・・・・・・・X45 ・
X51・・・・・・・・・・X55 ・
・ ・ ・
・ ・ ・
X81・・・・・・・・・・X85・・・X88
このブロツクにおいて、4つの4×4ブロツクに
4等分してその左上隅の画素X11、X51、X15、
X55の値を代表値として、また各ブロツクのモー
ドデータから間引き処理を行う。
次に、間引き処理された圧縮画像データからの
補間方法を説明する。上記8×8のブロツクの代
表値が夫々Y11、Y21、Y12、Y22として圧縮画
像データとして取り出されたとき、
X11・・・・Y12・・・
・・・・・・・・・・
・・AIJ・・・・・・
・・・・・・・・・・
X21・・・・Y22・・・
・・・・・・・・・・
・・・・・・・・・・
・・・・・・・・・・
間引かれている画素AIJを補間するには、代表値
Y11、Y12、Y21、Y22の重みを画素AIJからの距
離の逆数とし、その距離は画素AIJと各代表値と
の横軸上の差と縦軸上の差との和とする。すなわ
ち、代表値Y11の座標を(N1、M2)とし、画素
AIJの座標を(N2、M2)とすれば、両者の距離
D11は
D11=(N1−N2)+(M−M2)
となり、画素AIJに対する代表値Y11の重みは
1/D11となる。同様にして代表値Y12、Y21、
Y22の距離D12、D21、D22を求め、これら全部
の距離DIJを用いて画素AIJの補間値は
AIJ=(Y11/D11+Y12/D12+Y21
/D21+Y22/D22)/(1/D11+1/D12+1/D21+1
/D22)
として求められる。
なお、2×2のブロツクについての補間も同様
に行われるが、4×4のブロツクが隣接していた
場合には参照データが存在しない。これを防ぐた
め、まず4×4のブロツクの補間を行つた後、2
×2のブロツクの補間を行うようにする。
次に、符号化器8は間引き回路7で間引かれた
データSbについて、符号化パターンに従つて可変
長符号化する。このときの符号化パターンは階調
低減処理された後の代表値との差分値で間引きさ
れたデータSbに対する可変長符号ビツトを下記表
に例示する。[Table] For this mode classification, classification numbers 0 to 3 are also stored in a file for each block, and this file is hereinafter referred to as a mode selection file. This mode selection file requires 2 bits for each block, so the size of the file is (1/64) x (2/8) = 1/256, and together with the representative value file, it is approximately the size of the image data. It will be 1.5%. Next, in the gradation information reduction circuit 6, the mode data of the mode M from the mode determination circuit 5 as described above.
The gradation of block data D b in the mode M is reduced according to M0 to M3. Care must be taken in this gradation reduction to avoid creating false contours. False contours tend to occur in areas where temperature changes are gentle. Therefore, in this embodiment, the degree of gradation reduction is changed for each block while referring to the mode data M0 to M3 in the mode selection file. That is, for a small block with a mode data value of 0 to 3, it is determined that the density change is gradual, and the gradation reduction amount of the block data D b is reduced.
Blocks with large numerical values from 0 to 3 are determined to be areas with large density changes, and the gradation reduction amount of the block data Db is increased to increase the compression ratio while suppressing the occurrence of false contours. Specifically, in the gradation reduction process by the gradation information reduction circuit 6, the difference between adjacent pixels is a multiple of the mode data M0 to M3 numerical value 0 to 3 (gradation reduction variable) as the processed data D c Thereafter, the value obtained by dividing the difference value between adjacent pixels by a numerical value of 0 to 3 is stored in one block memory 2 as gradation-reduced data Dc . For example, assume that the numerical values of 4*4 block D b are in the array as shown below. 5 6 8 10 7 7 8 10 7 9 9 12 10 13 9 3 For this data D b , the difference from the block representative value in the upper left corner is 0 1 3 5 2 2 3 5 2 4 4 7 5 8 4 -2 . Here, if we assume gradation reduction variable 3 (M3),
This difference is changed to 0 0 3 6 3 3 3 6 3 3 3 6 6 9 3 -3. Therefore, the image data is 5 5 8 11 8 8 8 11 8 8 8 11 11 14 8 2. If you calculate the difference using the same procedure as when creating the mode selection file, the upper left corner will be 0 0 3 3 3 0 0 3 0 0 0 6 3 3 -6 -6, and this will be the gradation reduction variable 3 When divided by , the data 0 0 1 1 1 0 0 1 0 0 0 1 1 1 -2 -2 is obtained. As is clear from this data, the distribution of prediction errors (differences with adjacent pixels) is concentrated at the center (0), which increases the subsequent encoding efficiency and allows a high compression rate to be obtained. Next, the compression ratio of the gradation-reduced and difference-calculated data S a is further improved by thinning the data by the thinning circuit 7, that is, by reducing the pixel density. If this data is thinned out using a simple method such as simply thinning out every other pixel, the reproduced image will become blurred, and the image quality will deteriorate, although not as much as the pseudo-contour. In this embodiment, thinning is performed in consideration of image characteristics, and the thinning circuit 7 performs thinning processing with varying degrees of thinning in accordance with mode data M0 to M3 from the mode determining circuit 5. In other words, when pixels are thinned out, the effect is greatest in areas where the image changes minutely, and in this case, the data difference between pixels within the block is considered to be large. , when the numerical value of mode data M0 to M3 obtained from the mode selection file is large, the thinning is reduced, and when the numerical value is small, the thinning is increased, thereby reducing the occurrence of blurring and improving the compression ratio. In addition, for thinning processing, the processing target block is
The thinning effect is further ensured by dividing the pixel data into 2, 4×4 small blocks and starting from the mode data with the representative value of the pixel data at the upper left corner or the like. In addition, pixels thinned out in the thinning process are interpolated during reproduction from compressed image data. The thinning process and interpolation method will be specifically explained below using 8×8 blocks to 4×4 blocks. First, when the 8×8 block data has the following coordinate array, X11 X12 X13 X14 X15...X15 X21...X25...X28 X31...・・・・・・X35 ・ X41・・・・・・・・・X45 ・ X51・・・・・・・・・X55 ・ ・ ・ ・ ・ ・ ・X85...X88 This block is divided into four 4x4 blocks, and the pixels X11, X51, X15,
The thinning process is performed using the value of X55 as a representative value and from the mode data of each block. Next, a method of interpolation from compressed image data that has been subjected to thinning processing will be explained. When the representative values of the above 8×8 block are extracted as compressed image data as Y11, Y21, Y12, and Y22, respectively, X11...Y12.........AIJ・・・・・・ ・・・・・・・・・・・・ X21・・・・Y22・・・ ・・・・・・・・・・ ・・・・・・・・・・ ・・・・・・... To interpolate the thinned out pixels AIJ, use the representative value
The weights of Y11, Y12, Y21, and Y22 are the reciprocal of the distance from pixel AIJ, and the distance is the sum of the difference between pixel AIJ and each representative value on the horizontal axis and the difference on the vertical axis. In other words, let the coordinates of the representative value Y11 be (N1, M2), and the pixel
If the coordinates of AIJ are (N2, M2), the distance between the two is
D11 becomes D11=(N1-N2)+(M-M2), and the weight of representative value Y11 with respect to pixel AIJ becomes 1/D11. Similarly, typical values Y12, Y21,
Find the distances D12, D21, and D22 of Y22, and use all these distances DIJ to calculate the interpolated value of pixel AIJ: AIJ = (Y11/D11+Y12/D12+Y21
/D21+Y22/D22)/(1/D11+1/D12+1/D21+1
/D22). Note that interpolation for 2×2 blocks is similarly performed, but if 4×4 blocks are adjacent, no reference data exists. To prevent this, first interpolate the 4x4 block, then
×2 block interpolation is performed. Next, the encoder 8 performs variable length encoding on the data S b thinned out by the thinning circuit 7 according to the coding pattern. The encoding pattern at this time is shown in the table below as an example of variable length code bits for data S b thinned out based on the difference value from the representative value after gradation reduction processing.
【表】
この表中、F(N−2)の部分はN−2を次の
範囲に分けて符号化する。[Table] In this table, the F(N-2) part divides N-2 into the following ranges and encodes them.
【表】
このようにして符号化されたデータCbは圧縮
データフアイルとされ、また予測符号化回路9か
らのデータCaは代表値フアイルとされ、モード
決定回路5からのモードデータMはモード選択フ
アイルとされ、これらは3つの独立したフアイル
又は1つの合成されたフアイルとして圧縮画像デ
ータ10になる。この圧縮画像データ10は、例
えば前述の4*4の差分データSbが
0 0 1 1
1 0 0 1
0 0 0 1
1 1 −2 −2
で、モードMが1であつた場合、次のようなデー
タグループになる。[Table] The data C b encoded in this way is used as a compressed data file, the data C a from the predictive encoding circuit 9 is used as a representative value file, and the mode data M from the mode determining circuit 5 is used as a compressed data file. The selected files become compressed image data 10 as three independent files or one combined file. For example, if the above-mentioned 4*4 difference data S b is 0 0 1 1 1 0 0 1 0 0 0 1 1 1 -2 -2 and the mode M is 1, this compressed image data 10 is as follows. It becomes a data group like this.
【表】
以上までに述べた実施例に基づいて、テスト画
像の圧縮及び再生画像の評価を行つた。なお、間
引されたブロツクにおいては抽出データのみに着
目し、夫々2×2又は4×4のブロツクであると
見做して階調情報低減回路6と同様の階調低減処
理を行い、その結果得られる符号化された隣接画
素との差分を圧縮データとした。このとき、ブロ
ツク代表値に対応する差分は未定義であり、また
この値は代表値フアイルから再生できるので圧縮
データフアアイルから除いた。そして、再生を行
い易いように、差分値はモード選択フアイルを作
成するときと同じ順序で圧縮画像データフアイル
に書込む。
このような階調低減を行う間引きの状態は次の
表にようになつている。[Table] Based on the examples described above, compression of test images and evaluation of reproduced images were performed. Note that for the thinned out blocks, focusing only on the extracted data, and assuming that they are 2x2 or 4x4 blocks, the same gradation reduction process as in the gradation information reduction circuit 6 is performed. The resulting encoded difference between adjacent pixels was used as compressed data. At this time, the difference corresponding to the block representative value is undefined, and since this value can be reproduced from the representative value file, it is removed from the compressed data file. Then, to facilitate playback, the difference values are written to the compressed image data file in the same order as when creating the mode selection file. The following table shows the thinning conditions for performing such gradation reduction.
【表】
この例での圧縮率は例1では14%、例2では20
%になつた。
−発明の効果−
以上のとおり、本発明によれば、ブロツク化し
た画素データ間の差分の大きさに応じて決めるモ
ードデータから各画素データの階調情報低減処理
及び画素密度低減(間引き)処理を行つて圧縮デ
ータを得るため、任意画像について再生画像品質
を落すことを少なくしながら効率の良い圧縮を行
うことができ、また符号化効率も高めることがで
きる効果がある。[Table] The compression ratio in this example is 14% in example 1 and 20% in example 2.
It became %. - Effects of the Invention - As described above, according to the present invention, the gradation information reduction process and the pixel density reduction (thinning) process of each pixel data are performed from the mode data determined according to the size of the difference between the blocked pixel data. Since compressed data is obtained by performing the above steps, efficient compression can be performed for arbitrary images while minimizing deterioration in reproduced image quality, and the encoding efficiency can also be improved.
図面は本発明の一実施例を示すブロツク図であ
る。
1……画像メモリ、2……1ブロツクメモリ、
3……ブロツク代表値メモリ、4……差分計算回
路、5……モード決定回路、6……階調情報低減
回路、7……間引き回路、8……符号化器、9…
…予測符号化回路、10……圧縮画像データ。
The drawing is a block diagram showing one embodiment of the present invention. 1... Image memory, 2... 1 block memory,
3... Block representative value memory, 4... Difference calculation circuit, 5... Mode determining circuit, 6... Gradation information reduction circuit, 7... Thinning circuit, 8... Encoder, 9...
...Predictive encoding circuit, 10...Compressed image data.
Claims (1)
数個まとめてブロツクとし、これらのブロツクを
ブロツク内画素データ間の差分の大きさに応じて
複数のモードに分類し、モードによつて特定され
るパラメータに従つて画素データを処理する階調
画像圧縮方法において、差分の小さいブロツクは
階調低減量を小さくかつ間引きを大きくし、差分
の大きいブロツクは階調低減量を大きくかつ間引
きを小さくすることを特徴とする階調画像圧縮方
法。1 Each pixel data of image data with halftones is grouped together into a block, these blocks are classified into multiple modes according to the size of the difference between the pixel data within the block, and the pixel data is specified by the mode. In a gradation image compression method that processes pixel data according to parameters, blocks with small differences have a small gradation reduction amount and large thinning, and blocks with large differences have a large gradation reduction amount and small thinning. A gradation image compression method characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60293908A JPS62154875A (en) | 1985-12-26 | 1985-12-26 | Multilevel image compressing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60293908A JPS62154875A (en) | 1985-12-26 | 1985-12-26 | Multilevel image compressing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62154875A JPS62154875A (en) | 1987-07-09 |
| JPH0577232B2 true JPH0577232B2 (en) | 1993-10-26 |
Family
ID=17800705
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60293908A Granted JPS62154875A (en) | 1985-12-26 | 1985-12-26 | Multilevel image compressing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS62154875A (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6448567A (en) * | 1987-08-19 | 1989-02-23 | Nippon Syst House Kk | Picture compression coding system |
| JPH0358672A (en) * | 1989-07-27 | 1991-03-13 | Nec Home Electron Ltd | Method and apparatus for coding picture signal |
| JPH03112273A (en) * | 1989-09-26 | 1991-05-13 | Pioneer Electron Corp | Picture coding system |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS57127364A (en) * | 1981-01-31 | 1982-08-07 | Nippon Telegr & Teleph Corp <Ntt> | Processing system of halftone facsimile signal |
| JPS5911068A (en) * | 1982-07-12 | 1984-01-20 | Fujitsu Ltd | System for converting resolution adaptive to density of information |
-
1985
- 1985-12-26 JP JP60293908A patent/JPS62154875A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62154875A (en) | 1987-07-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111988611B (en) | Quantization offset information determining method, image encoding device and electronic equipment | |
| US12432341B2 (en) | Methods for intra prediction, and encoder | |
| KR100234316B1 (en) | Signal adaptive filter for reducing ringing noise and signal adaptive filering method thereof | |
| JP3197420B2 (en) | Image coding device | |
| EP4040683A1 (en) | Occupancy information prediction method, encoder, decoder, and storage medium | |
| CN110324617B (en) | Image processing method and device | |
| US12389031B2 (en) | Method and device for intra prediction | |
| WO2021062771A1 (en) | Color component prediction method, encoder, decoder, and computer storage medium | |
| WO2022141461A1 (en) | Point cloud encoding and decoding method, encoder, decoder and computer storage medium | |
| JPH0577232B2 (en) | ||
| US20250142122A1 (en) | Point cloud coding method | |
| KR101930389B1 (en) | Video File Compression Method, Device and Computer Program Thereof | |
| US11310496B2 (en) | Determining quality values for blocks of encoded video | |
| JPH10229559A (en) | Method and filter for reducing effect due to block processing | |
| CN116830580A (en) | Point cloud decoding method, decoder and computer storage medium | |
| US20250232455A1 (en) | Encoding and decoding methods, encoder, decoder, code stream, and computer storage medium | |
| US20250315984A1 (en) | Encoding method, decoding method, code stream, encoder, decoder and storage medium | |
| CN120858580A (en) | Coding and decoding method, code stream, encoder, decoder and storage medium | |
| JP3456617B2 (en) | Area dividing device | |
| JPH0993585A (en) | Motion vector detection device and motion vector detection method | |
| JP2872241B2 (en) | Image coding method | |
| JPH02108372A (en) | Compression device for picture data | |
| JPH0326080A (en) | Video data pre-processing method for highly efficient coding system | |
| CN120019649A (en) | Coding and decoding method, code stream, encoder, decoder and storage medium | |
| JPH09139941A (en) | Image signal encoding / decoding device |