JPS62154875A - Multilevel image compressing system - Google Patents

Multilevel image compressing system

Info

Publication number
JPS62154875A
JPS62154875A JP60293908A JP29390885A JPS62154875A JP S62154875 A JPS62154875 A JP S62154875A JP 60293908 A JP60293908 A JP 60293908A JP 29390885 A JP29390885 A JP 29390885A JP S62154875 A JPS62154875 A JP S62154875A
Authority
JP
Japan
Prior art keywords
block
data
gradation
picture element
mode
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
JP60293908A
Other languages
Japanese (ja)
Other versions
JPH0577232B2 (en
Inventor
Hiroaki Tajima
田島 弘明
Masayuki Inouchi
井内 正行
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP60293908A priority Critical patent/JPS62154875A/en
Publication of JPS62154875A publication Critical patent/JPS62154875A/en
Publication of JPH0577232B2 publication Critical patent/JPH0577232B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To attain the efficient compression of an image by executing the gradation information reducing processing and picture element density reducing processing of respective image element data based on mode data determined in accordance with capacity difference between respective picture element data. CONSTITUTION:Plural picture element data out of respective picture element data in an image data having a halftone are collected as a block, each block is sorted into plural modes in accordance with the capacity difference between respective picture element data in the block and the gradation information reducing processing and picture element density reducing processing of the picture element data in each block are executed in accordance with parameters specified by the modes. Namely, a gradation information reducing circuit 6 changes the degree of gradation reduction at every block while referring the mode data M0-M3 in a mode selecting file, reduces the gradation reducing level of block data Db by detecting that a block with small values 0-3 of the mode data is a part with moderate density change or increases the gradation reducing level by deciding that a block with large values 0-3 is a part with sharp density change.

Description

【発明の詳細な説明】 一産業上の利用分野一 本発明は中間調画像データを圧1itする階調画像圧縮
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a gradation image compression method for compressing halftone image data by one bit.

一発明の背景− フィルム画像など中間調を持つ画像データの圧縮方式と
して、予測符号化方式が知られている。この方式では過
去に出現した画素値から現在点の画素値を予測し、その
予測値と現在点の画素値との差分である予測誤差を符号
化することにより圧縮を行う。予測誤差の符号化には予
測誤差の分布がラプラス分布になることを考慮して1発
生順度の高い予測誤差には短い符号化を、頻度の低い予
測誤差には長い符号を割当てることによって高能率の符
号化を行うことが知られている。
Background of the Invention A predictive encoding method is known as a compression method for image data having halftones such as a film image. In this method, the pixel value at the current point is predicted from the pixel values that appeared in the past, and compression is performed by encoding the prediction error, which is the difference between the predicted value and the pixel value at the current point. To encode prediction errors, we take into account that the distribution of prediction errors follows a Laplace distribution, and assign short codes to prediction errors with a high occurrence order and long codes to prediction errors with low occurrence order. It is known to perform efficiency encoding.

この予測符号化による圧縮は、巾独で用いる限り原画像
を完全に復元できる回連圧縮となり、圧縮によってrl
Tl両生が低下することはない。しかし、種々の画像に
ついての統計では予ΔIII誤差のエントロピーは8ビ
ット画像の場合4ビット程度であり、最適の符号化を行
うも局程度にしか圧縮できない。この圧縮率は予測方法
を工夫しても殆ど改ηされず、予Δ+++符号化方法の
限界値と考えられる。
Compression by this predictive coding is a continuous compression that can completely restore the original image as long as it is used in wide format.
Tl amphibiosis is not reduced. However, according to statistics regarding various images, the entropy of the pre-ΔIII error is about 4 bits in the case of an 8-bit image, and even if optimal encoding is performed, it can only be compressed to about the same level. This compression rate is hardly improved even if the prediction method is devised, and is considered to be the limit value of the pre-Δ+++ encoding method.

−・方、符す化の他の方式として、人間の視覚特性と、
隣接する画素との間の高い相関性を利用したブロック符
号化がある。このブロック符号化方式の最も簡単なもの
としては、画素数nXnのブロック別にその平均値をブ
ロック情報とする。また、もう少しこったものとして、
nXnブロックの画素濃度の平均値X a bをとり、
当該ブロック内の各画Jc度が平均値X a bよりL
か下かを1ビツトデータとしてとり、平均値xabより
も上の画素グループの平均値X、lII+  と下の画
素グループの平均値XABOをとり、これら平均値Xd
bl  とXaboによって圧縮を行う符号化方式があ
る。
-・As another method of encoding, human visual characteristics and
There is block encoding that utilizes high correlation between adjacent pixels. The simplest block encoding method uses the average value of each block of nXn pixels as block information. Also, as something a little more elaborate,
Take the average value X a b of the pixel density of nXn blocks,
Each image Jc degree in the block is L from the average value X a b
Take the average value X, lII+ of the pixel group above the average value xab and the average value XABO of the pixel group below the average value xab, and calculate these average values Xd.
There is an encoding method that performs compression using bl and Xabo.

この場合、必要ビット数は8ビット画像では8n2→n
? +IBとなり、n=4では32/ 128=1/4
まで圧縮できる。
In this case, the required number of bits is 8n2 → n for an 8-bit image.
? +IB, and when n=4, 32/128=1/4
It can be compressed up to

しかし、このブロック符号化方式では、ブロックサイズ
が一定であるため、濃度変化の小さい領域においては圧
縮効果が不十分であるし、逆に濃度変化の大きい領域で
は符号化誤差によりブロック間に境界が現われて画質の
低下が起きる。この点について、ブロックサイズが大き
くなるほど前者が改善され、後者が悪化し、小さくなる
ほど後者が改善され前者が悪化するという相反する傾向
にあり。
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 occur due to coding errors. This results in a decrease in image quality. Regarding this point, there is a contradictory tendency that as the block size increases, the former improves and the latter worsens, and as the block size decreases, the latter improves and the former worsens.

双方のバランスでブロックサイズを決定すると圧縮率9
画質共に満足するものが得られなくなる。
If the block size is determined by balancing both, the compression ratio will be 9.
It becomes impossible to obtain satisfactory image quality.

一発明の目的一 本発明の目的は、任意の濃度領域、濃度変化を持つ画像
データを高品質にしながら高圧縮率にすることができ、
しかも予測符号化における予測誤差の分布が中央に集ま
るようにして符号化効率を向上できる圧縮方式を提供す
るにある。
A purpose of the present invention A purpose of the present invention is to make it possible to make image data with arbitrary density regions and density changes high in quality and at a high compression rate;
Furthermore, it is an object of the present invention to provide a compression method that can improve the encoding efficiency by centering the distribution of prediction errors in predictive encoding.

一発明の構成一 本発明は、中間調を持つ画像データの各画素データを複
数個まとめてブロックとし、該ブロックをブロック内画
素データ間の差分の大きさに応じて複数のモードに分類
し、該モードによって特定されるパラメータに従って各
ブロック内画素データに対し階調情報低減処理及び画素
密度低減処理を行うものであるー実施例− 図は本発明の一実施例を示すブロック図である0画像メ
モリ1は、フィルム等の画像(原画)から読取った各画
素の多値の階調で表われる中間調画像データが格納され
る。1ブロツクメモリ2は画像メモリ1の画像データか
ら切取られた1ブロック分のデータDが記憶される。ブ
ロック代表値メモリ3は1プロ、クメモリ2に転送され
た1ブロック分データDの代表値Dalが記憶される。
1. Structure of the Invention 1. The present invention collects a plurality of pieces of each pixel data of image data having halftones into a block, classifies the block into a plurality of modes according to the size of the difference between the pixel data in the block, In accordance with the parameters specified by the mode, gradation information reduction processing and pixel density reduction processing are performed on pixel data within each block - Example - Figure 0 is a block diagram showing an example of the present invention. The memory 1 stores halftone image data represented by multivalued gradation of each pixel read from an image (original image) of a film or the like. One block memory 2 stores one block of data D cut out from the image data in image memory 1. The block representative value memory 3 stores the representative value Dal of one block of data D transferred to the block memory 2 for one program.

差分計算回路4は1ブロツクメモリ2に記憶するブロッ
クデータDから順次読出された1画素づつのデータDb
について隣接画素との差分S、を求める。モード決定回
路5は差分針9凹路4で求める差分Saの最大値からモ
ーFMを決定する0階調情報低減回路6は、モードMに
従って1ブロツクメモリ2のブロックデータDhの階調
を変更し、この変更したプロンクデータDc を再び1
ブロツクメモリ2に:す込む。差分計算回路4はlブロ
ックメモリ2に+rf書込されたブロックデータDhに
ついて再度隣接画素との差分Saを求める0間引き回路
7は差分計算回路4からの差分Sa をモード決定回路
5のモードMの度合いに応じて間引く、符号化器8は間
引かれた差分データS0を可変長符号化する。
The difference calculation circuit 4 sequentially reads data Db for each pixel from the block data D stored in the one block memory 2.
The difference S between the pixel and the adjacent pixel is calculated. The mode determining circuit 5 determines the mode FM from the maximum value of the difference Sa obtained by the difference needle 9 concave path 4. The 0 gradation information reduction circuit 6 changes the gradation of the block data Dh of the 1 block memory 2 according to the mode M. , this changed pronk data Dc is set to 1 again.
Insert into block memory 2. The difference calculation circuit 4 again calculates the difference Sa between adjacent pixels for the block data Dh written in +rf in the l block memory 2. The zero decimation circuit 7 uses the difference Sa from the difference calculation circuit 4 to set the mode M of the mode determination circuit 5. The encoder 8 performs variable-length encoding on the thinned-out difference data S0 according to the degree of thinning.

予測符号化回路9はブロック代表値メモリ3に蓄えられ
た代表値データD、2を予l1111符号化する。この
予測符号化回路9に得る符号−化ブロック代表値データ
C3と、符号化器8に得る符号化差分データCO及びモ
ード決定回路5に得るモードMとは組合わせされて圧縮
画像データ10として取出される。
The predictive encoding circuit 9 preliminarily encodes the representative value data D, 2 stored in the block representative value memory 3. The coded block representative value data C3 obtained by the predictive coding circuit 9, the coded difference data CO obtained by the encoder 8, and the mode M obtained by the mode determination circuit 5 are combined and extracted as compressed image data 10. be done.

こうした構成における実際の画像データについての処理
動作を以ドに詳細に説明する。
Processing operations for actual image data in such a configuration will be described in detail below.

画像メモリ1に収集された画像データは1ブロツクメモ
リ2に分割されてその1ブロック分が転送される。ここ
で、ブロンク分11.1] fiについて説明する。画
像をNXNの微小ブロックに分割するときに、Nが小さ
すぎても、また大きすぎてもそのブロックの性質を的確
に掴むことができない。しかし、Nの大きさを正確に決
定することはそれが対象画像の個々の性質に大きく依存
しているため大変難づかしい。そこで、本実施例では区
切りの良い数、そしてハード化し易い数としてN=8を
用いる。これはN=8としておくと、当該ブロックデー
タをさらに4X4.2X2のブロックに分割でき、より
細かい処理に移行し易くする利点がある。
The image data collected in the image memory 1 is divided into one block memory 2, and one block of the data is transferred. Here, the bronc minute 11.1] fi will be explained. When dividing 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. If N=8, the block data can be further divided into 4×4.2×2 blocks, which has the advantage of making it easier to move to more detailed processing.

さて、N=8と設定されて1ブロツクメモリ2には64
個の画素データが転送される。また、同時に、ブロック
代表値メモリ3には1つの画素データが代表値として記
憶される。
Now, with N=8 set, 1 block memory 2 has 64
pixel data is transferred. At the same time, one pixel data is stored in the block representative value memory 3 as a representative value.

この代表値は64個の画素データのいずれでも良いが、
本実施例ではブロックデータ(8X8)の左玉隅の画素
データをブロック代表値とし、当該画素データをブロッ
ク代表値メモリ3に格納する。この代表値の集合は1つ
のファイルとしてメモリ3に保存され、このファイルの
大きさは原画像データと比べて1/64になっている。
This representative value may be any of the 64 pixel data, but
In this embodiment, pixel data at the left corner of the block data (8×8) is set as a 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/64 of the original image data.

また、このファイルは可逆圧縮によってさらに小さくす
ることができ、最終的には1%以下にもすることができ
る。
Additionally, this file can be made even smaller by lossless compression, and can ultimately be reduced to less than 1%.

lブロックメモリ2に転送された64個の画素データか
らなるブロックデータDhについて、各画素に下記のよ
うな名前を付けたときXll   X12  X13−
−−XINX21   X22   ・ XNI  XN2 −−−−XNN 差分計算回路4は、隣接画素間の差分Sa を次のルー
ルに従って求める。
Regarding the block data Dh consisting of 64 pixel data transferred to l block memory 2, if each pixel is named as follows, Xll X12 X13-
--XINX21 X22 .XNI

(a)Xllに対する差分dX11は無視する。(a) Ignore the difference dX11 with respect to Xll.

(b) dXi 1=Xi l −X (i−1) l
トする。但し、2<=i<=8 (c) dXi j=Xi j−Xi (J−1)とす
る。但し、j<〉1 こうして求めた差分dXの集合Saを取込むモード決定
回路5は、そのSaの絶対が最大であるものを選び出し
、予め設定される3つのしきい値と比較し当該ブロック
データを4つのモードに分類記憶する。このしきい値と
モードMの対応は例えば次のように設定する。
(b) dXi 1=Xi l -X (i-1) l
to However, 2<=i<=8 (c) dXi j=Xi j−Xi (J−1). However, j<>1 The mode determining circuit 5 that takes in the set Sa of the differences dX obtained in this way selects the one with the largest absolute Sa, compares it with three preset thresholds, and determines the block data. are classified and stored in four modes. The correspondence between this threshold value and mode M is set as follows, for example.

第1表 このモード分類にはO〜3の分類番t)も各ブロック毎
にファイルしておき、このファイルを以後モード選択フ
ァイルと呼ぶ。このモード選択ファイルは、各ブロック
に2ピント必要とすることから、ファイルの大きさとし
ては (1/64) X (2/8) = 1/25Bとなり
、代表値ファイルと合わせて画像データのおよそ1.5
%になる。
Table 1: In this mode classification, a classification number t) of O to 3 is also filed for each block, and this file is hereinafter referred to as a mode selection file. Since this mode selection file requires 2 focus points for each block, the file size is (1/64) x (2/8) = 1/25B, and together with the representative value file, it is approximately the size of the image data. 1.5
%become.

次に、階調情報低減回路6では、前述のようにモード決
定回路5からのモードMのモードデータMO−M3に従
って当該モードMになるブロックデータDIlの階調低
減を行う。
Next, the gradation information reduction circuit 6 performs gradation reduction of the block data DIl in the mode M according to the mode data MO-M3 of the mode M from the mode determining circuit 5 as described above.

この階調低減で気をつけることは疑似輪郭を出さないよ
うにしなければならない。疑似輪郭は濃度変化のなだら
かな部分で発生し易い。そこで、本実施例ではモード選
択ファイルのモードデータMO−M3を参照しながらブ
ロック毎に階調低減の度合いを変える。すなわち、モー
ドデータの数値O〜3の小さいブロックについては濃度
変化のなだらかな部分と判定してプロアクデータD b
の階調低減量を少なくし、数値O〜3の大きいプロアク
については濃度変化の徴しい部分と閂定してブロックデ
ータDbの階調低減量を多くすることで疑似輪郭の発生
を抑えながら圧fi率を高める。
Care must be taken when reducing gradation to avoid creating false contours. Pseudo contours tend to occur in areas where density changes are gentle. Therefore, in this embodiment, the degree of gradation reduction is changed for each block while referring to the mode data MO-M3 of the mode selection file. That is, for a small block with a mode data value of O to 3, it is determined that the density change is gradual and the proac data D b
By reducing the amount of gradation reduction of block data Db and increasing the amount of gradation reduction of block data Db for the large proac with a large value O~3 as a part where the density change is evident, pressure can be reduced while suppressing the occurrence of false contours. Increase fi rate.

階調情報低減回路6による階調の低減処理は具体的には
、処理後のデータDCとして隣接画素との差分がモード
データMO−M3数値0〜3(階調低減変数)の倍数に
なるようにし、その後隣接画素との差分値を数値0〜3
で割った値を階調低減したデータDc として1ブロツ
クメモリ2に格納する。
Specifically, the gradation reduction process by the gradation information reduction circuit 6 is performed so that the difference between adjacent pixels as the processed data DC becomes a multiple of the mode data MO-M3 numerical value 0 to 3 (gradation reduction variable). and then set the difference value with the adjacent pixel to a value between 0 and 3.
The divided value is stored in one block memory 2 as gradation-reduced data Dc.

例えば、4零4のブロックデータDbの数値が下記のよ
うな配列にあるとする。
For example, suppose that the numerical values of the block data Db of 4 zero 4 are arranged as shown below.

このデータDbについて左上隅のブロック代表値からの
差分は となる。ここで階調低減変数3(M3)とすると、この
差分は と変更される。従って、画像データは となる、これからモード選択ファイルを作成したときと
同様の手順で差分を計算すると、左上間はOとして となり、これを階調低減変数3で割るとooi というデータが得られる。このデータからも明らかなよ
うに、予測誤差(隣接画素との差分)の分布は中央(0
)に集まって以後の符号化効率を高め、また大きな圧縮
率を得ることができる。
For this data Db, the difference from the block representative value at the upper left corner is as follows. Here, if the gradation reduction variable is 3 (M3), this difference is changed to . Therefore, the image data is as follows. If the difference is calculated from this using the same procedure as when creating the mode selection file, the upper left interval will be O, and dividing this by the tone reduction variable 3 will yield data ooi. As is clear from this data, the distribution of prediction errors (differences with adjacent pixels) is centered (0
), it is possible to improve the subsequent encoding efficiency and obtain a large compression ratio.

次に、階調低減及び差分計算されたデータSdについて
、間引き回路7によるデータの間引きすなわち画素密度
の低減によって圧縮率を一層向上させる。このデータの
間引きは、単純に1画素おきに間引くなどの安易な方法
では再生画像がぼけてしまい、疑似輪郭はどではないが
画質が低下してしまう。本実施例では1画像の特性を考
慮した間引ζ!を行い、間引き回路7はモード決定回路
5からのモードデータMO〜M3に従って間引きの度合
いを変えた間引き処理を行う。すなわち1画素を間引い
たときその影響が最も大きく表われるのは画像が細かく
変化している部分であり、この場合には当該ブロック内
における画素間のデータ差分が大きくなっていると考え
られることから、モード選択ファイルから得るモードデ
ータMO−M3の数値が大きいときには間引きを少なく
し、小さいときには間引きを多くすることでボケの発生
を小さくしかつ圧縮率を向上させる。
Next, with respect to the data Sd for which the gradation has been reduced and the difference has been calculated, the compression ratio is further improved by thinning out 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 the false contours will not be affected. In this embodiment, the thinning ζ! takes into consideration the characteristics of one image! Then, the thinning circuit 7 performs thinning processing by changing the degree of thinning according to the mode data MO to M3 from the mode determining circuit 5. In other words, when one pixel is 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 the mode data MO-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.

なお、間引さ処理には処理対象ブロックを2X2.4X
4の小ブロックに分け、その左上隅等の画素データ代表
値としたモードデータから行うことで間引き効果を一層
確更にする。また1間引き処理で間引かれた画素は圧縮
画像データからの再生時に補間される。
In addition, for thinning processing, the processing target block is 2X2.4X
The thinning effect can be further ensured by dividing the pixel data into four small blocks and starting from mode data with a representative pixel data value such as the upper left corner of the pixel data. Furthermore, pixels thinned out by one thinning process are interpolated during reproduction from compressed image data.

以下、8X8のブロックから4×4のブロックによる間
引き処理と補間方法を具体的に説明する。
The thinning process and interpolation method from 8×8 blocks to 4×4 blocks will be specifically described below.

まず、8×8のブロックデータが次のような座標配列と
するとき4 Xll   X12  X13  X14   X15
− − −XI5X21−−−−−−−−−−X25−
−−X28X31・・自・@1166+1参に35X4
1−・・・番@@@116X4j5X51・ φ ・ 
・ φ ・ 命 ・ 会 ・X5!1X81−−−−−
−−−−−X85−−−X8Bこのブロックにおいて、
4つの4×4ブロツクに4等分してその左上隅の画素X
ll 、 X51、X15.X55の値を代表値として
、また各ブロックのモードデータから間引き処理を行う
次に1間引き処理された圧縮画像データからの補間方法
を説明する。上記8×8のブロックの代表値が夫々Yl
l、Y21.Y12.Y22として圧縮画像データとし
て取り出されたとき、 以下余白 Yll−−−−Y12− −  ・ ・ φ AIJ  ・ ・ ・ e ・ ・Y21− 
− − −  Y22− − −間引かれている画素A
IJを補間するには、代表値Yll、 Y12. Y2
+、 Y22の重みを画素AIJからの距離の逆数とし
、その距離は画素AIJと各代表値との横軸上の差と縦
軸上の差との和とする。すなわち、代表値Yllの座標
を(Nl、N2)とし、画素AIJの座標を(N2、N
2)とすれば1両者の距@DllはD11= (N 1
−N2) + (M−N2)となり、画素AIJに対す
る代表値Yllの重みは1/Dllとなる。同様にして
代表値Y12゜Y21. Y22(7)距#D12. 
D21. D22ヲ求/)、これら全部の距@DIJを
用いて画素AIJの補間値は (Yll/DI 1.Y121012+Y211021
+Y22/D22)AIJ=□ (11011,1/D12+1/D21+11022)
として求められる。
First, when 8×8 block data has the following coordinate array 4 Xll X12 X13 X14 X15
− − −XI5X21−−−−−−−−−X25−
--X28X31... From @1166+1 35X4
1-...No.@@@116X4j5X51・φ・
・ φ ・ Life ・ Meeting ・X5!1X81---
------X85----X8B In this block,
Divide into four 4×4 blocks and select the pixel X in the upper left corner of the block.
ll, X51, X15. Using the value of X55 as a representative value, thinning processing is performed from the mode data of each block.Next, an interpolation method from compressed image data that has been thinned out by one will be explained. The representative values of the 8×8 blocks above are each Yl
l, Y21. Y12. When extracted as compressed image data as Y22, the following margin Yll---Y12- - ・ ・ φ AIJ ・ ・ ・ e ・ ・Y21-
- - - Y22- - - Thinned out pixel A
To interpolate IJ, the representative values Yll, Y12. Y2
The weight of +, Y22 is 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. That is, the coordinates of the representative value Yll are (Nl, N2), and the coordinates of the pixel AIJ are (N2, N2).
2), then the distance between the two @Dll is D11= (N 1
-N2) + (M-N2), and the weight of the representative value Yll for the pixel AIJ is 1/Dll. Similarly, the representative value Y12°Y21. Y22 (7) Distance #D12.
D21. Using all these distances @DIJ, the interpolated value of pixel AIJ is (Yll/DI 1.Y121012+Y211021
+Y22/D22) AIJ=□ (11011, 1/D12+1/D21+11022)
It is required as.

なお、2×2のブロックについての補則も同様に行われ
るが、4×4のブロックが隣接していた場合には参照デ
ータが存在しない。
Note that supplementary rules for 2×2 blocks are similarly performed, but if 4×4 blocks are adjacent, no reference data exists.

これを防ぐため、まず4×4のブロックの補間を行った
後、2×2のブロックの補間を行うようにする。
In order to prevent this, interpolation is first performed for 4x4 blocks, and then interpolation is performed for 2x2 blocks.

次に、符号化器8は間引き回路7で間引かれたデータS
bについて、符号化パターンに従って可変長符号化する
。このときの符号化パターンは階調低減処理された後の
代表値との差分値で間引きされたデータSbに対する可
変長符号ビットを下記表に例示する。
Next, the encoder 8 uses the data S thinned out by the thinning circuit 7.
b is variable-length coded 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 Sb thinned out based on the difference value from the representative value after gradation reduction processing.

以下余白 第2表 この表中、F(N−2)の部分はN−2を次の範囲に分
けて符号化する。
Table 2 with blank space below: In this table, the part F(N-2) divides N-2 into the following ranges and encodes them.

第3表 このようにして符号化されたデータCbは圧縮データフ
ァイルとされ、また予All符号化回路9からのデータ
cdは代表値ニアアイルとされ、モード決定回路5から
のモー ドデータMはモード選択ファイルとされ、これ
らは3つの独立したファイル又は1つの合成されたファ
イルとして圧縮画像データ10になる。この圧縮画像デ
ータ10は、例えば前述の4木4の差分データSbが oot で、モードMが1であった場合1次のようなデータグル
ープになる。
Table 3 The data Cb encoded in this manner is used as a compressed data file, the data cd from the pre-all encoding circuit 9 is used as a representative value near aisle, and the mode data M from the mode determination circuit 5 is used for mode selection. These files become compressed image data 10 as three independent files or one combined file. For example, if the difference data Sb of the 4-tree 4 is oot and the mode M is 1, the compressed image data 10 becomes a linear data group.

第4表 次頁に続く 以上までに述べた実施例に基づいて、テスト画像の圧縮
及び再生画像の評価を行った。
Table 4 continues on next page Based on the examples described above, compression of test images and evaluation of reproduced images were performed.

なお1間引されたブロックにおいては抽出データのみに
着目し、夫々2×2又は4X4のブロックであると見做
して階調情報低減回路6と同様の階調低減処理を行い、
その結果書られる符号化された隣接画素との差分を圧縮
データとした。このとき、ブロック代表値に対応する差
分は未定義であり、またこの値は代表値ファイルから再
生できるので圧縮データファイルから除いた。そして、
再生を行い易いように、差分値はモード選択ファイルを
作成するときと同じ順序で圧縮画像データファイルに書
込む。
Note that in the blocks that have been thinned out by one, focusing only on the extracted data, and assuming that each block is a 2×2 or 4×4 block, the same gradation reduction process as in the gradation information reduction circuit 6 is performed.
The resulting coded 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 excluded from the compressed data file. and,
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 state of thinning that performs such gradation reduction.

第5表 この例での圧縮率は例1では14%1例2では20%に
なった。
Table 5 The compression ratio in this example was 14% in Example 1 and 20% in Example 2.

一発明の効果− 以上のとおり、本発明によれば、ブロック化した画素デ
ータ間の差分の大きさに応じて決めるモードデータから
各画素データの階調情報低減処理及び画素密度低減(間
引き)処理を行って圧縮データを得るため、任意画像に
ついて再生画像品質を落すことを少なくしながら効率の
良い圧縮を行うことができ、また符号化効率も高めるこ
とができる効果がある。
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 block-formed pixel data. Since compressed data is obtained by performing the following steps, it is possible to efficiently compress an arbitrary image while minimizing deterioration in reproduced image quality, and the encoding efficiency can also be improved.

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

図面は本発明の一実施例を示すブロック図である。 1・・・画像メモリ、2・・・lブロックメモリ、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... l 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 coding circuit, 10 ... compressed image data.

Claims (1)

【特許請求の範囲】[Claims] 1)中間調を持つ画像データの各画素データを複数個ま
とめてブロックとし、該ブロックをブロック内画素デー
タ間の差分の大きさに応じて複数のモードに分類し、該
モードによって特定されるパラメータに従って各ブロッ
ク内画素データに対し階調情報低減処理及び画素密度低
減処理を行うことを特徴とする階調画像圧縮方式。
1) A plurality of pieces of each pixel data of image data having halftones are grouped together into a block, the block is classified into a plurality of modes according to the size of the difference between the pixel data within the block, and parameters specified by the mode are determined. A gradation image compression method characterized in that gradation information reduction processing and pixel density reduction processing are performed on pixel data within each block according to the following.
JP60293908A 1985-12-26 1985-12-26 Multilevel image compressing system Granted JPS62154875A (en)

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 true JPS62154875A (en) 1987-07-09
JPH0577232B2 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)

Cited By (3)

* Cited by examiner, † Cited by third party
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

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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

Cited By (3)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
JPH0577232B2 (en) 1993-10-26

Similar Documents

Publication Publication Date Title
US5414527A (en) Image encoding apparatus sensitive to tone variations
JP5606591B2 (en) Video compression method
CN110087083B (en) Method for selecting intra chroma prediction mode, image processing apparatus, and storage apparatus
US8031954B2 (en) Image encoding apparatus and control method thereof using prediction encoding and pixel classification
US11936850B2 (en) Methods for intra prediction, and encoder
JP2007527126A (en) Image part compression method and apparatus
US11917198B2 (en) Method and device for intra prediction
JPS62154875A (en) Multilevel image compressing system
JP7361838B2 (en) Video encoding device, video decoding device, and these programs
CN113365080B (en) Encoding and decoding method, device and storage medium for string coding technology
JP2901656B2 (en) Image coding device
US20070230805A1 (en) Coded Data Recording Apparatus, Decoding Apparatus and Program
JP2004503153A (en) Method for reducing code artifacts in block coded video signals
CN114071138A (en) Intra-frame prediction encoding method, intra-frame prediction encoding device, and computer-readable medium
WO2023201450A1 (en) Encoding method, decoding method, code stream, encoder, decoder, and storage medium
US20240064284A1 (en) Methods, systems and encoded bitstream for combined lossless and lossy coding
WO2022217472A1 (en) Point cloud encoding and decoding methods, encoder, decoder, and computer readable storage medium
WO2023123467A1 (en) Encoding method, decoding method, code stream, encoder, decoder, and storage medium
JP3232160B2 (en) Encoding device and method
JP3263218B2 (en) Image information data compression and playback device
JPH07111595A (en) Image encoder
JPH08317385A (en) Image encoder and decoder
JPH0313090A (en) High efficient coding method for video signal
JPH0993585A (en) Motion vector detecting device and method
CN117714681A (en) Video encoding method, video encoder, video decoding method, and video decoder