JPS61135286A - Picture data compressor - Google Patents

Picture data compressor

Info

Publication number
JPS61135286A
JPS61135286A JP59257841A JP25784184A JPS61135286A JP S61135286 A JPS61135286 A JP S61135286A JP 59257841 A JP59257841 A JP 59257841A JP 25784184 A JP25784184 A JP 25784184A JP S61135286 A JPS61135286 A JP S61135286A
Authority
JP
Japan
Prior art keywords
coefficient
step width
data
factor
threshold value
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
Application number
JP59257841A
Other languages
Japanese (ja)
Inventor
Takao Omachi
大町 隆夫
Hironori Takashima
洋典 高島
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP59257841A priority Critical patent/JPS61135286A/en
Publication of JPS61135286A publication Critical patent/JPS61135286A/en
Pending legal-status Critical Current

Links

Landscapes

  • Apparatus For Radiation Diagnosis (AREA)
  • Magnetic Resonance Imaging Apparatus (AREA)
  • Storing Facsimile Image Data (AREA)

Abstract

PURPOSE:To apply data compression with a compression factor corresponding to a picture quality requested in the unit of picture by providing a means for setting a factor round-off threshold value and a factor quantized step width corresponding to the set picture quality. CONSTITUTION:Picture data stored in a picture memory 1-14 is read in the unit of blocks for 2-dimensional discrete cosine conversion by a block data reader 1-15. The 2-dimensional discrete cosine converter 1-16 multiplies a 2-dimension discrete cosine conversion matrix and its transposition matrix from the read block data to obtain a conversion factor matrix. A picture quality selector 1-22 outputs the factor round-off threshold value 1-11 and the factor quantized step width 1-12 according to the picture quality switching signal selected by the user corresponding to the requested picture quality. A code data 1-21 formed by a coder 1-19 is added with the threshold value 1-11 and the step width 1-12 by a parameter adder 1-23 and the result is outputted as compressed data 1-13.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は画品質を選択する事のできる画像データ圧縮
装置方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image data compression apparatus system that allows selection of image quality.

(従来技術とその問題点) 医療分野で用いられる画像にはX線やCT両画像多くの
種類があるが、それらは従来フィルムの形で蓄積されて
いた。ところが、病院等においては1日当りの発生枚数
が多く、シかもそれを数年間にわたって保管する必要が
あるので膨大な量となり、収納のためのスペース、検索
に要する人手。
(Prior Art and its Problems) There are many types of images used in the medical field, both X-ray and CT images, which have conventionally been stored in the form of film. However, in hospitals, etc., the number of sheets generated per day is large, and it is necessary to store them for several years, resulting in a huge amount, requiring space for storage and manpower for searching.

時間が大きな問題となっている。Time is a big issue.

近年になって、ディジタル画像処理技術、デバイス技術
の進展とともに医用画像をディジタル化して蓄積・検索
を行うことが可能となってきた。
In recent years, with advances in digital image processing technology and device technology, it has become possible to digitize medical images for storage and retrieval.

医用画像においては、解偉匿2階調数ともに要求される
精度が高く、最低でも1024 X 1024 X 8
bitであり、いくら記憶素子が発達したとはいえ。
In medical images, high accuracy is required for both the resolution and the number of gradations, at least 1024 x 1024 x 8
It is a bit, no matter how advanced the memory element is.

データ量の多さが問題となっている。このため蓄積デー
タ量を削減するためにデータ圧縮技術が用いられること
が多い、データ圧縮技術には大別して予測符号化と変換
符号化があるが、圧縮率として5程度以上の高圧縮を行
う場合には変換符号が有利とされている。
The problem is the amount of data. For this reason, data compression technology is often used to reduce the amount of stored data.Data compression technology can be broadly divided into predictive coding and conversion coding, but when performing high compression with a compression rate of about 5 or more. Conversion codes are said to be advantageous for

医用画像においては1画質劣化に対する要求基準が厳し
く、信号対雑音比(以後87N比と呼ぶ)があまり低く
なると所見部分がぼけて、実用上問題が発生する。従来
の画像データ圧縮装置では圧縮方式が固定でありたため
すべての画像に対し実用上問題が発生しない程度のSl
N比が得られる圧縮パラメータを設足しなければならず
、その結果として十分な圧縮率が得られなかった。しか
し医用画像にはその内容によって高い87N比を要求す
るものとある程度の8/N比で満足しつるものがある0
例えばX線画像を例にとれば患部がどこなのかまだ判定
がでておらず詳細な検討を要する画像は細部まで十分に
再現するため、非常に高いS/N比が要求されるが、す
でに患部は、はっきりしており将来参考用として保存し
ておきたい画像や、Il康な入のX線画像であり、将来
参照する事はまずないが、−芯数年間は保存しなければ
ならない画像等はそれほど高い87N比は要求されない
かわりに高い圧縮率が求められる。
Medical images have strict requirements for one image quality deterioration, and if the signal-to-noise ratio (hereinafter referred to as 87N ratio) becomes too low, the findings will become blurred, causing a practical problem. In conventional image data compression devices, the compression method was fixed, so the Sl.
It was necessary to set a compression parameter that would provide an N ratio, and as a result, a sufficient compression ratio could not be obtained. However, depending on the content of medical images, some require a high 87N ratio, while others are satisfied with a certain 8/N ratio.
For example, in the case of X-ray images, images that require detailed examination because the affected area has not yet been determined require a very high S/N ratio in order to fully reproduce the details. Images of the affected area are clearly visible and should be saved for future reference, and X-ray images of the diseased area are unlikely to be referenced in the future, but should be saved for several years. etc., a very high 87N ratio is not required, but a high compression ratio is required.

(発明の目的) 本発明の目的は利用者の要求に従って画品質を選択する
事のできる画品質可変データ圧縮伸張方式を提供するこ
とにある。
(Object of the Invention) An object of the present invention is to provide a variable image quality data compression/expansion system that allows image quality to be selected according to user requirements.

(発明の構成) 本発明の画像データ圧m装置は、利用者が必要に応じて
画品質を設定することにより、該画品質に対応する係数
切捨て閾値および係数量子化ステップ巾を設定する手段
と、原画像を記憶装置からブロック単位で読出す手段と
、該ブロック単位に直交変換を施して変換係数を得る手
段と、該係数切捨て閾値よりも小さな絶対値をとる該変
換係数の僅を零にし、該係数切捨て閾値よりも小さくな
い絶対値をとる該変換係数の絶対値から該係数切捨て閾
値をさしひく係数切捨て手段と、該嘔数切捨て手段の出
力を該係数童子化ステップ巾で量子化する手段と、童子
化された変換係数にあらかじめ設定された符号を割当て
て符号化データを作成する手段と、該符号化データに該
係数切捨て閾値と、該係数量子化ステップ巾を付加して
伝送路または蓄積装置に出力する手段とから構成される
ことを特徴とする。
(Structure of the Invention) The image data pressure m device of the present invention includes means for setting the coefficient truncation threshold and coefficient quantization step width corresponding to the image quality by the user setting the image quality as necessary. , means for reading an original image from a storage device in blocks; means for performing orthogonal transformation on the blocks to obtain transform coefficients; , a coefficient truncation means for dividing the coefficient truncation threshold from the absolute value of the conversion coefficient that takes an absolute value not smaller than the coefficient truncation threshold, and quantization of the output of the number truncation means by the coefficient doji conversion step width. means for creating encoded data by assigning a preset code to the converted coefficients, and transmitting the encoded data with the coefficient truncation threshold and the coefficient quantization step width added thereto. and a means for outputting to a storage device or a storage device.

(実施例) 以下に図面を参照して本発明の詳細な説明する。(Example) The present invention will be described in detail below with reference to the drawings.

ここでは、主な対象としX線画像をとりあげ。Here, we mainly focus on X-ray images.

直交変換として2次元ディ・スクリードコサイン変換を
とりあげて説明するが、CT両画像を対象としてもよい
し、アダマール変換等の直交変換を用いてもよいことは
明白である。
Although the two-dimensional screed cosine transform will be described as an orthogonal transform, it is clear that both CT images may be used as the object, or orthogonal transforms such as Hadamard transform may be used.

第1図は本発明の画品質可変データ圧縮装置の一実施例
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the variable image quality data compression device of the present invention.

画像メモIJ−1−14に格納されている画像データは
ブロックデータ読出し器1−15によって2次元ディス
クリートコサイン変換を行うブロック単位に読出される
1本実施例では1画素当り8b1tの画像データを縦L
6画素、横L6画素のブロックに分割して読出す0次に
読み出されたブロックデータは2次元ディスクリートコ
サイン変換giiFl−16ンこ右いて2次元ディスク
リートコサイン変換行列とその転置行列との乗算が行な
われ、変換係数行列が得られる1以上の演算は有限語長
で行なわれるため、演算結果はすでに丸めによる量子化
が行なわれている0画質選択fs1−22では要求され
る画品質に対応して利用者が選択した画品質切替信号に
従って、変換係数のダイナミックレンジの」−〜−に設
定された係数切捨て閾値(以後閾値と呼ぶ)と変換係数
のダイナミックレンジの8160 ’= 8160に設
定される係数量子化ステップ巾(以後ステップ巾と呼ぶ
)との組合わせを閾値t−ii、ステップ巾1−12と
して出力する。
The image data stored in the image memo IJ-1-14 is read out in block units by the block data reader 1-15, which performs two-dimensional discrete cosine transformation. L
The block data read out after being divided into blocks of 6 pixels and L6 pixels horizontally is subjected to two-dimensional discrete cosine transformation giiFl-16, and then multiplied by the two-dimensional discrete cosine transformation matrix and its transposed matrix. Since one or more calculations that yield a transform coefficient matrix are performed with a finite word length, the calculation results do not correspond to the required image quality in the 0 image quality selection fs1-22, which has already been quantized by rounding. According to the image quality switching signal selected by the user, the coefficient truncation threshold (hereinafter referred to as threshold) set to ``-~-'' of the dynamic range of the conversion coefficient and 8160' of the dynamic range of the conversion coefficient is set to 8160. The combination with the coefficient quantization step width (hereinafter referred to as step width) is output as the threshold t-ii and the step width 1-12.

2次元ディスクリートコサイン変換器1−16で得られ
た変換係数行列は係数切捨て51−17において閾値1
−11と比較される。比較の結果に従い閾値よりも絶対
値の小さな変換係数は零に丸められ、そうでない変換係
数はその絶対値から閾値をさしひく、ただし、直流分に
対しては上記処理は行なわず、2次元ディスクリートコ
サイン変換器1−[6の出力がそのままの値で出力され
る0次に係数切捨てat−17の出力は係数量子化器1
−18において、ステップ巾1−12で均一量子化され
る。
The transform coefficient matrix obtained by the two-dimensional discrete cosine transformer 1-16 is set to a threshold value 1 in the coefficient truncation 51-17.
-11. According to the comparison result, conversion coefficients whose absolute value is smaller than the threshold value are rounded to zero, and for other conversion coefficients, the threshold value is subtracted from their absolute value.However, the above processing is not performed for the DC component, and the two-dimensional The output of the discrete cosine transformer 1-[6 is output as it is. The output of the zero-order coefficient truncation at-17 is the coefficient quantizer 1.
-18, uniform quantization is performed with a step width of 1-12.

均一量子化された変換係数は符号器」−19において変
換係数の発生頻度分布に応じてあらかじめ設定された可
変長符号が割当てられる。符号器で作られた符号データ
1−21は、パラメータ付加器1−23で閾値1−11
とステップ巾1−12が付加され圧縮データ1−13と
して伝送路または蓄積装置に出力される。
The uniformly quantized transform coefficients are assigned variable length codes preset in accordance with the frequency distribution of the transform coefficients in an encoder 19. The encoded data 1-21 created by the encoder is passed through the parameter adder 1-23 to the threshold value 1-11.
and a step width of 1-12 are added and output as compressed data 1-13 to a transmission line or storage device.

第2図にプロ、クデータ続出し器のブロック図を示す、
端子4に図には示していないクロ9り発生器からクロッ
クが印加され1行アドレスカウンタ26と列アドレスカ
ウンタnを駆動する。それぞれのアドレスカウンタの出
力は端子nと田へ出力され1画像メモリ−14から対応
するアドレスの画像データを続出し、端子Uからブロッ
クデータメモIJ−28に画像データが書込まれる。書
込まれた画像データは端子四を介して2次元ディスクリ
ートコサイン変換器へと出力される。
Figure 2 shows a block diagram of the professional data series generator.
A clock is applied to the terminal 4 from a clock generator (not shown) to drive the 1-row address counter 26 and the column address counter n. The output of each address counter is outputted to the terminals n and 1, and the image data of the corresponding address is successively outputted from the one image memory 14, and the image data is written from the terminal U to the block data memo IJ-28. The written image data is output to the two-dimensional discrete cosine transformer via terminal 4.

第3図に2次元ディスクリートコサイン変換器のブロッ
ク図を示す。画像信号を小領域に分割したものを行列P
で表すと、変換行列を人としその転置行列をATとして
、2次元ディスクリートコサイン変換係数Fは F=人PA” で与えられる。1ブロック分のメモリー鴎からPの(j
、k)成分を続出し端子32から入力し、続出し専用メ
モIJ −34に格納されている変換行列Aの(i、j
)成分を図示していないアドレス発生器からのアドレス
を端子31から入力して読出し。
FIG. 3 shows a block diagram of a two-dimensional discrete cosine transformer. The image signal is divided into small regions as a matrix P
Expressing this as
, k) components from the serial output terminal 32, and (i, j
) components are read by inputting an address from an address generator (not shown) from the terminal 31.

両者の積を乗算器35Aでもとめる。この結果を加算器
36人でレジスタ37Aの出力と加算し、再びレジスタ
37人に記憶する0以上の操作をiとkを固定iこして
jを1からnまで繰り返すとAとPの積である行列の(
i 、k)成分が求められるので。
The product of both is also determined by a multiplier 35A. Add this result to the output of register 37A using 36 adders, and store it again in 37 registers.If you fix i and k and repeat j from 1 to n, you will get the product of A and P. of a certain matrix (
i, k) components are found.

その値をブロックデータメモリーアの(i、k)に対応
するアドレスに格納する。ただし、nはブロックの大き
さであり、jが1からはじまる時にレジスタr人の内容
はクリアされる0以上の操作をi、にともに1からnま
で繰り返すことにより人とPの積の行列がブロックデー
タメモリーアに格納される。
The value is stored in the address corresponding to (i, k) of the block data memoria. However, n is the size of the block, and when j starts from 1, the contents of register r are cleared.By repeating the operation of 0 or more from 1 to n for i and P, the matrix of the product of people and P is created. Stored in block data memoria.

次に上記と全く同様にして人・Pと入−1の積を求める
。すなわち、ブロックデータメモリーアに格納されてい
るA・Pの(i、j)成分と読出し専用メモIJ−34
から変換行列人の(k、j)成分を図示していないアド
レス発生器からのアドレスを端子31から入力して読出
して積を求めることを1からnまでのjについて行い1
人PA”の(i、k)成分を求め、それを繰り返して変
換係数行列を端子おに出力する。ここで、Aと人 は全
く同じ読出し専用メモリーアの読出し方を変えることに
よって作り出している。また、演算は有限語長で行われ
るため出力はすでに量子化されている。
Next, in exactly the same manner as above, find the product of person P and input -1. That is, the (i, j) components of A and P stored in the block data memoria and the read-only memo IJ-34
The (k, j) component of the transformation matrix is inputted from the terminal 31 and read out from the address generator (not shown) to calculate the product for j from 1 to n.
Find the (i, k) components of the person PA'', repeat this process, and output the transformation coefficient matrix to the terminal O.Here, A and the person are created by changing the reading method of the exactly same read-only memoria. .Also, since the calculation is performed with a finite word length, the output has already been quantized.

第4図に係数切捨て器のブロック図を示す、端子41か
ら入力された変換係数は端子42を介して画品質選択器
1−22から供給されるvAKとともに絶対値回路44
A 、 44Bで絶対値をとり比較器45でその大きさ
が比較される。また同時に減算1146で変換係数の絶
対値から閾値をさしひき、変換係数の符号を極性判定器
4で判定し1乗算a47で両者の積をとり変換係数の符
号を再現する。そして、比較1s49の結果により変換
係数の絶対値が閾値より小さければANDゲート49を
閉じ、零を端子椙に出力し、そうでなければ先の乗算a
iF47の出力を端子4に出力する。また、変換係数が
直流成分に相当する時は閾値の絶対値出力を零にして2
次元ディスクリートコサイン変換器の出力がそのまま端
子招に出力される。
FIG. 4 shows a block diagram of the coefficient truncation device. The conversion coefficients input from the terminal 41 are sent to the absolute value circuit 44 together with vAK supplied from the image quality selector 1-22 via the terminal 42.
Absolute values are taken at A and 44B, and their magnitudes are compared by a comparator 45. At the same time, a threshold value is subtracted from the absolute value of the conversion coefficient in subtraction 1146, the sign of the conversion coefficient is determined by polarity determiner 4, and the product of the two is obtained in multiplication a47 to reproduce the sign of the conversion coefficient. Then, as a result of the comparison 1s49, if the absolute value of the conversion coefficient is smaller than the threshold value, the AND gate 49 is closed and zero is output to the terminal A, and if not, the previous multiplication a
The output of iF47 is output to terminal 4. Also, when the conversion coefficient corresponds to a DC component, the absolute value output of the threshold value is set to zero and 2
The output of the dimensional discrete cosine transformer is directly output to the terminal.

以上の操作を式で示すと以下のようになる。The above operation can be expressed as follows.

但し、Xは変換係数、tは閾値esgnC・)は符号を
とり出す関数titJは変換係数行列の行と列番号であ
る。
However, X is a transformation coefficient, t is a threshold value esgnC.) is a function for extracting the sign, titJ is the row and column number of the transformation coefficient matrix.

第6図に量子化器のブロック図を示す、端子61から入
力される切捨てを行った侵の変換係数は端子62を介し
て画品質選択器1−22から入力される童子化ステップ
巾により割算器倶において均一量子化が行われ端子部に
出力される。ただし、ここでも直流成分の場合は童子化
ステップ巾を1にし。
FIG. 6 shows a block diagram of the quantizer. The truncated conversion coefficients input from the terminal 61 are divided by the doji conversion step width input from the image quality selector 1-22 via the terminal 62. Uniform quantization is performed in the calculator and output to the terminal section. However, here too, in the case of a DC component, the doji conversion step width is set to 1.

実質的には何の処理も加えないものが出力される。What is output is what is essentially not processed.

童子化ステップ巾を1,2.4.・・・と2のべき乗の
かたちにすると割算!64はシフトをするだけの処理で
よい。
Doji conversion step width 1, 2.4. ...and in the form of a power of 2, it is division! 64 only needs to be shifted.

第5図に典製的なX線画像を例としてエントロピーを横
軸とし、S/N)f、縦軸にとって各種の閾直について
両者の関係をプロットした図を示す。
FIG. 5 shows a diagram in which the relationship between the two is plotted using a typical X-ray image as an example, with entropy on the horizontal axis, S/N) f, and various threshold values on the vertical axis.

(ステップ巾は固定)ステップ巾も各種の値について検
討した結果、@値が変換係数のダイナミックレンジの1
/8□6゜〜84□6゜の範囲では8/Nとエントロピ
ーは直線的な関係を保っているが。
(The step width is fixed) As a result of considering various values for the step width, we found that the @ value is 1 of the dynamic range of the conversion coefficient.
In the range of /8□6° to 84□6°, 8/N and entropy maintain a linear relationship.

それ以上の値となるとS/Nの低下のわりにはエントロ
ピーが低くならない事、および医用X線画像として40
dBii[以上のS/Nを確保しなければ微妙な患部等
がぼけてしまい、笑用土問題となる墨が確認されている
。したがりて係数切捨ての閾値は変換係数のダイナミッ
クレンジの14□66〜−□6゜に設定するのが妥当で
ある。
If the value is higher than that, the entropy will not decrease even though the S/N will decrease, and the
If a S/N ratio of dBii or higher is not ensured, delicate affected areas will become blurred, and ink has been confirmed to cause problems. Therefore, it is appropriate to set the threshold value for coefficient truncation at 14□66° to −□6°, which is the dynamic range of the transform coefficient.

第7図にエントロピーと8/Nの関係をステ。Figure 7 shows the relationship between entropy and 8/N.

プ巾をパラメータとして示す、ここでは閾値を固定とし
ているが、先にも述べたように37Nを旬d\B以上に
確保した上で87Nとエントロピーの関係が直線的であ
る範囲を保つように各種の閾値についても検討した結果
、ステップ巾は変換係数のダイナミックレンジの4□6
0 N/8□6゜に選ぶのが妥当であると確認されてい
る。
The threshold value is shown as a parameter, and here the threshold value is fixed, but as mentioned earlier, the relationship between 87N and entropy is maintained in a linear range after ensuring that 37N is greater than d\B. As a result of considering various threshold values, the step width was determined to be 4□6 of the dynamic range of the conversion coefficient.
It has been confirmed that selecting 0 N/8□6° is appropriate.

第1O図に閾値とステップ巾の3つの組合わせに対して
複数のX6画像に対する87N比と圧縮率の平均値の一
例を示す、この表から画品質選択器の一例として画品質
切替信号によって(閾値、ステップ巾)の組合わせを喘
’ 816G ) (五W。
Figure 1O shows an example of the average values of the 87N ratio and compression rate for multiple X6 images for three combinations of threshold value and step width. 816G) (5W).

−)(−二L→ の3段階に切替える事も8160  
  8160 9 816Gできる。この場合には49
dB程度の画品質が要求される場合には閾値1’−11
,ステップ巾1−12の組合わせとして’8160 #
 8160 )を出力し、44dB程度の画品質が要求
される場合には’ 8160 ? 8160 )を出力
し、もし41dB程度の画品質でもかまわない場合には
(8160’π「)を出力させる。このように画品質選
択器において要求に応じて閾値。
-) (-2L → 8160
8160 9 816G possible. In this case, 49
When image quality of about dB is required, the threshold value is 1'-11.
, as a combination of step widths 1-12 '8160 #
8160) and an image quality of about 44 dB is required. 8160), and if an image quality of about 41 dB is acceptable, it outputs (8160'π'').In this way, the image quality selector sets the threshold value as required.

ステップ巾を切替える事によって1%に高い画品質を要
求されない画像に対しては圧縮率を上げる事ができる。
By switching the step width, the compression rate can be increased for images that do not require image quality as high as 1%.

次に1以上に述べた切捨ておよび量子化を行った変換係
数をその発生頻度に応じたエントロピー符号化を符号化
m1−19で行う、その時、各成分の係数毎に可変長の
ハフマン符号を単に割当てるだけでなく、ブロック内の
高域周波数成分は零になることが多いということを利用
して、第8図に示す様に各成分の符号化の順序をジグザ
グにして後半に零が連続するようにして、零の部分はラ
ンレングス符号化を行ったり、また1ブロツク内で途中
から最後までが全て零であれば符号化をそこで打ち切り
ブロックの終了マークを送り符号化能率を向上させるこ
とも可能である。この符号1S1−19で作られた符号
データにはパラメータ付加器で閾値、ステップ巾が付加
され圧縮データ1−13が作られる。
Next, the transform coefficients that have been truncated and quantized as described above are subjected to entropy encoding according to their frequency of occurrence in encoding m1-19. At that time, a variable length Huffman code is simply applied to each component coefficient. In addition to the allocation, taking advantage of the fact that high frequency components within a block are often zero, the coding order of each component is zigzag as shown in Figure 8, so that zeros continue in the latter half. In this way, run-length encoding can be performed for the zero portion, or if there are all zeros from the middle to the end within one block, the encoding can be stopped at that point and an end mark of the block can be sent to improve encoding efficiency. It is possible. A threshold value and a step width are added to the code data created by the code 1S1-19 by a parameter adder to create compressed data 1-13.

第9図(a) 、 (bl 、 (C)に圧縮データ構
成の一例を示す、1枚の画像全体は第9図(a)に示し
た様にヘッダーと各ブロックの符号からなる。ヘッダー
は第9図(blに示す構成で画品質選択器で選ばれた閾
値とステップ巾が格納されている。各ブロック内は第9
図(C)に示す構成で、零でない係数にハフマン符号を
わりあてたものが続き、零が続く場合はそのラン長が格
納される。途中からブロックの最後まで零が続く場合に
は零のラン長を送らずに係数列の直後にブロックの終了
マークが付加される。
An example of the compressed data structure is shown in Fig. 9(a), (bl, and (C)).One entire image consists of a header and the code of each block as shown in Fig. 9(a).The header is The threshold value and step width selected by the image quality selector are stored in the configuration shown in FIG. 9 (bl).
In the configuration shown in Figure (C), non-zero coefficients are assigned Huffman codes, and when zeros continue, their run lengths are stored. If zeros continue from the middle to the end of the block, a block end mark is added immediately after the coefficient sequence without sending a run length of zero.

この様にして得られた圧縮データは伝送路への送出やフ
ァイル装置への蓄積が行われる、以上の、実施例では圧
縮データのヘッダとして画品質選択器で選択された閾値
、ステ、プ巾の値をそのまま入れたが、いくつかの組合
わせに番号を付け1選択された組合わせに対応した番号
をヘッダとして付ける事もできる。この場合にはもちろ
ん伸張装置側に選択番号を実際に用いられた閾値。
The compressed data obtained in this way is sent to a transmission path and stored in a file device. In the above embodiment, the threshold value, step, and width selected by the image quality selector are Although we have entered the values as they are, you can also number some combinations and add the number corresponding to the selected combination as a header. In this case, of course, the selection number on the decompressor side is the actual threshold value used.

ステップ巾に変換する変換回路が必要となる。A conversion circuit is required to convert the step width.

また前記実施例では符号として発生頻度に応じてあらか
じめ設定された可変長符号を用いたが。
Furthermore, in the embodiment described above, a variable length code that is preset according to the frequency of occurrence is used as the code.

もちろん等長符号を用いる事もできる。Of course, equal length codes can also be used.

(発明の効果) 以上に述べたように本発明の画品質可変データ圧縮装置
は要求される画品質に対応する閾値、ステップ巾を選択
し、用いる事によって画像単位に要求される画品質に対
応した圧縮率でデータ圧縮および伸張を行なう事ができ
るようになる。
(Effects of the Invention) As described above, the variable image quality data compression device of the present invention supports the image quality required for each image by selecting and using the threshold value and step width corresponding to the required image quality. Data can be compressed and expanded at the same compression rate.

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

第1図は本発明の一実施例を示すブロック図。 第2図はブロックデータ続出し器のブロック図。 第3図は2次元ディスクリートコサイン変換器。 第4図は係数切捨て器のブロック図、第5図はエントロ
ピーとS/Nの関係を係数切捨て閾値をパラメータとし
て示した図、第6図は係数量子化器のブロック図、第7
図はエントロピーとS/Nの関係を係数童子化ステップ
巾をパラメータとして示した図、第8図はブロック内で
の符号化の順序。 第9図は符号の構成を示した図、第10図は閾値。 ステ、プ巾の組とSlN比、圧a率の関係を示す図であ
る。 図において。 1−14・・・画像メモIJ−,1−15・・・ブロッ
ク読出し器、1−16・・・2次元ディスクリートコサ
イン変換・器、1−17・・・係数切捨て器、1−18
・・・係数量子化器−1−19・・・符号化器、1−2
2・・・画品質選択器。 1−23・・・パラメータ付加器、26・・・行アドレ
スカウンタ−,27・・・列アドレスカウンター、28
・・・ブロックデータメモリー、34・・・続出し専用
メモリー。 あ人、35B・・・乗算器、36A、36B・・・加算
器、37A。 37B・・・レジスタ、38・・・ブロックデータメモ
リー。 44A 、 44B・−・絶対値回路、45・・・比較
器、46・・・加算器、47・・・乗算器、48・・・
極性判定器、49・・・ANDゲート、64・・・割算
器である。 第1図 第3図 第4図 第5図 エントロピー(bit/pel) 第6図 第7図 第8図 第9図
FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is a block diagram of a block data serializer. Figure 3 shows a two-dimensional discrete cosine transformer. Figure 4 is a block diagram of the coefficient truncation device, Figure 5 is a diagram showing the relationship between entropy and S/N using the coefficient truncation threshold as a parameter, Figure 6 is a block diagram of the coefficient quantizer, and Figure 7 is a block diagram of the coefficient quantizer.
The figure shows the relationship between entropy and S/N using the coefficient doji conversion step width as a parameter, and FIG. 8 shows the coding order within a block. FIG. 9 shows the structure of the code, and FIG. 10 shows the threshold values. FIG. 3 is a diagram showing the relationship between the set of step and width, SLN ratio, and pressure a ratio. In fig. 1-14... Image memo IJ-, 1-15... Block reader, 1-16... Two-dimensional discrete cosine transformer, 1-17... Coefficient truncation device, 1-18
... Coefficient quantizer-1-19 ... Encoder, 1-2
2... Image quality selector. 1-23... Parameter adder, 26... Row address counter, 27... Column address counter, 28
...Block data memory, 34...Memory for continuous output. That person, 35B...multiplier, 36A, 36B...adder, 37A. 37B...Register, 38...Block data memory. 44A, 44B... Absolute value circuit, 45... Comparator, 46... Adder, 47... Multiplier, 48...
Polarity determiner, 49...AND gate, 64...Divider. Figure 1 Figure 3 Figure 4 Figure 5 Entropy (bit/pel) Figure 6 Figure 7 Figure 8 Figure 9

Claims (1)

【特許請求の範囲】[Claims] 設定された画品質に対応する係数切捨て閾値および係数
量子化ステップ巾を設定する手段と、原画像を記憶装置
からブロック単位で読出す手段と、該ブロック単位に直
交変換を施して変換係数を得る手段と、該係数切捨て閾
値よりも小さな絶対値をとる該変換係数の値を零にし、
該係数切捨て閾値よりも小さくない絶対値をとる該変換
係数の絶対値から該係数切捨て閾値をさしひく係数切捨
て手段と、該係数切捨て手段の出力を該係数量子化ステ
ップ巾で量子化する手段と、量子化された変換係数にあ
らかじめ設定された符号を割当てて符号化データを作成
する手段と、該符号化データに該係数切捨て閾値と、該
係数量子化ステップ巾を付加して伝送路または蓄積装置
に出力する手段を備えたことを特徴とする画像データ圧
縮装置。
means for setting a coefficient truncation threshold and coefficient quantization step width corresponding to the set image quality; means for reading the original image from a storage device in blocks; and performing orthogonal transformation on the blocks to obtain transform coefficients. and zeroing the value of the conversion coefficient that takes an absolute value smaller than the coefficient truncation threshold;
Coefficient truncation means for dividing the coefficient truncation threshold from the absolute value of the transform coefficient that takes an absolute value not smaller than the coefficient truncation threshold, and means for quantizing the output of the coefficient truncation means by the coefficient quantization step width. a means for creating encoded data by assigning a preset code to the quantized transform coefficient; and a means for adding the coefficient truncation threshold and the coefficient quantization step width to the encoded data and transmitting the coefficient to the transmission line or An image data compression device characterized by comprising means for outputting to a storage device.
JP59257841A 1984-12-06 1984-12-06 Picture data compressor Pending JPS61135286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59257841A JPS61135286A (en) 1984-12-06 1984-12-06 Picture data compressor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59257841A JPS61135286A (en) 1984-12-06 1984-12-06 Picture data compressor

Publications (1)

Publication Number Publication Date
JPS61135286A true JPS61135286A (en) 1986-06-23

Family

ID=17311884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59257841A Pending JPS61135286A (en) 1984-12-06 1984-12-06 Picture data compressor

Country Status (1)

Country Link
JP (1) JPS61135286A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63111791A (en) * 1986-10-30 1988-05-17 Nec Corp Method and device for coding moving image signal
JPH01218187A (en) * 1988-02-25 1989-08-31 Fuji Photo Film Co Ltd Compression and recording device and expansion and regenerating device for image signal
JPH01221989A (en) * 1988-03-01 1989-09-05 Fuji Photo Film Co Ltd Reduction-recording device and enlargement-reproducing device of picture signal
JPH02237370A (en) * 1989-03-10 1990-09-19 Casio Comput Co Ltd Picture data processor
JPH0352385A (en) * 1989-07-20 1991-03-06 Fuji Photo Film Co Ltd Digital electronic still camera

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63111791A (en) * 1986-10-30 1988-05-17 Nec Corp Method and device for coding moving image signal
JPH0545117B2 (en) * 1986-10-30 1993-07-08 Nippon Electric Co
JPH01218187A (en) * 1988-02-25 1989-08-31 Fuji Photo Film Co Ltd Compression and recording device and expansion and regenerating device for image signal
JPH01221989A (en) * 1988-03-01 1989-09-05 Fuji Photo Film Co Ltd Reduction-recording device and enlargement-reproducing device of picture signal
JPH02237370A (en) * 1989-03-10 1990-09-19 Casio Comput Co Ltd Picture data processor
JPH0352385A (en) * 1989-07-20 1991-03-06 Fuji Photo Film Co Ltd Digital electronic still camera

Similar Documents

Publication Publication Date Title
CN101399988B (en) Method for reduced bit-depth quantization
JP2914226B2 (en) Transformation encoding of digital signal enabling reversible transformation
CA2633897C (en) Transforms with common factors
IL115203A (en) Vlsi circuit structure for implementing jpeg image compression standard
JP2004038451A (en) Hadamard transformation processing method and device
JPH0991271A (en) Transformation encoding system for digital signal capable of reversible transformation
JPS61147692A (en) Data compression/expansion method
JPS61135286A (en) Picture data compressor
JPS61135285A (en) Data expander
JPH0495469A (en) Method and device for restoring image data
JPS61123280A (en) Image data compressing device
JPS61149126A (en) Medical image data compression and expansion system
JPH0556271A (en) Reverse quantizing method and image data restoring device
JP2794842B2 (en) Encoding method and decoding method
JPH04220081A (en) Method and device for picture data decoding
JPH04274674A (en) Data converter
KR100503182B1 (en) How to decode image data
JP3796354B2 (en) Image coding method
JPS61135283A (en) Expander for medical application picture data
JP2887843B2 (en) Image data restoration method and apparatus
JP2000013797A (en) Image compressing device and image expanding device
CN101765013A (en) Data transform device and control method thereof
JPH04971A (en) Picture encoding system
JPH04271664A (en) Picture data compressor and picture data decoder
JPH03270573A (en) Picture data coding device and picture data decoding device