JPH10126621A - Image compressing method/device - Google Patents

Image compressing method/device

Info

Publication number
JPH10126621A
JPH10126621A JP8278149A JP27814996A JPH10126621A JP H10126621 A JPH10126621 A JP H10126621A JP 8278149 A JP8278149 A JP 8278149A JP 27814996 A JP27814996 A JP 27814996A JP H10126621 A JPH10126621 A JP H10126621A
Authority
JP
Japan
Prior art keywords
image
hue
saturation
quantization
encoding
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.)
Withdrawn
Application number
JP8278149A
Other languages
Japanese (ja)
Inventor
Wataru Ito
渡 伊藤
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP8278149A priority Critical patent/JPH10126621A/en
Publication of JPH10126621A publication Critical patent/JPH10126621A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve a compression rate as a whole while the image quality of a necessary part is maintained by obtaining hues and saturations for the respective image areas constituting an image and executing encoding at the compression rate decided based on them. SOLUTION: In the process of the encoding of JPEG, a prescribed preprocessing 1 is added before quantization. The preprocessing 1 is a processing for converting the respective areas of the compressed image based on a function decided based on the hues and the saturations or a table. The compression rate of a block which is preprocessed by the table whose value of K for regulating the quantization step of the function is large becomes high and the block which is preprocessed by the table whose value of K is small becomes low. The respective image areas constituting the image us encoded by the compression rate decided based on the hues and the saturations of the image areas. Thus, image quality is maintained on a part whose image quality is concerned and the compression rate of a part whose image quality is not concerned is improved. Then, the compression rate as a whole can be improved.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像を表す画像情
報を符号化することにより圧縮する画像圧縮方法および
装置に関し、特に、写真画像等のカラー静止画像の圧縮
方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image compression method and apparatus for compressing image information representing an image by encoding the image information, and more particularly to a method and apparatus for compressing a color still image such as a photographic image.

【0002】[0002]

【従来の技術】従来、画像の圧縮技術として、直交変
換、量子化、エントロピ符号化等が知られている。直交
変換は、相関性の強い画像信号を周波数軸上で見た場合
に低周波領域に画像情報が集中しているということに着
目したものであり、情報が集中して分布する周波数成分
のみを符号化することにより全体としての情報量を削減
する圧縮技術である。また、量子化は画像情報をある数
値(量子化ステップ)で除算して、ある限られた離散的
なレベルで近似することにより画像情報を表すビット数
を少なくする圧縮技術である。また、エントロピ符号化
は画像情報に2進符号を割り当てる際に、発生頻度の高
い値には短い符号、発生頻度の低い値には長い符号を割
り当てることにより全体の符号量を削減する圧縮技術で
ある。
2. Description of the Related Art Conventionally, orthogonal transformation, quantization, entropy coding and the like have been known as image compression techniques. The orthogonal transform focuses on the fact that image information having a high correlation is concentrated on the low frequency region when viewed on the frequency axis. This is a compression technique that reduces the amount of information as a whole by encoding. Quantization is a compression technique that divides image information by a certain numerical value (quantization step) and reduces the number of bits representing the image information by approximation at a limited number of discrete levels. In addition, entropy coding is a compression technique that reduces the total code amount by assigning a short code to a value with a high occurrence frequency and a long code to a value with a low occurrence frequency when assigning a binary code to image information. is there.

【0003】カラー静止画像の符号化標準として広く知
られているJPEGは、上記圧縮技術を組み合わせるこ
とにより画像情報の符号化を行うものであり、基本的に
は、図4に示すように、画像を例えば8×8画素の画像
ブロックに分割し、各画像ブロックに対して直交変換の
1つである離散コサイン変換(DCT)を施し、DCT
により得られた変換係数に対して量子化を施し、さらに
量子化後の値をエントロピ符号化であるハフマン符号化
等を施すことにより画像情報の圧縮を行っている。さら
に画像を再生する際に、この逆の手順、すなわちエント
ロピ復号化、逆量子化、逆離散コサイン変換(IDC
T)を行うことにより圧縮された画像情報を伸長するも
のである。
[0003] JPEG, which is widely known as a color still image encoding standard, encodes image information by combining the above-mentioned compression techniques. Basically, as shown in FIG. Is divided into image blocks of, for example, 8 × 8 pixels, and a discrete cosine transform (DCT), which is one of orthogonal transforms, is performed on each image block.
The image information is compressed by subjecting the transform coefficients obtained by the above to quantization and further subjecting the quantized values to Huffman encoding or the like, which is entropy encoding. Further, when an image is reproduced, the reverse procedure, namely, entropy decoding, inverse quantization, inverse discrete cosine transform (IDC)
T) decompresses the compressed image information.

【0004】JPEGは、符号器、復号器ともにハード
ウェアとして、あるいはソフトウェアとして入手が比較
的容易であり、また、パラメータを調節して符号化によ
る画質劣化の程度を変えたり、復号化の速度を変えたり
することができるという利便性から、業界のみならず広
く一般家庭のパソコンなどにまで普及している技術であ
る。
[0004] JPEG is relatively easy to obtain as hardware or software for both encoders and decoders. In addition, the degree of image quality degradation due to encoding is changed by adjusting parameters, and the speed of decoding is increased. Because of the convenience of being able to change it, it is a technology that is widely used not only in the industry but also in general household personal computers.

【0005】[0005]

【発明が解決しようとする課題】上記のような画像圧縮
技術では圧縮率を高くすれば画質が劣化するのはある程
度仕方がないことであり、圧縮率は画質劣化の許容範囲
によって自ずと決まってしまうものであると考えられて
いる。
In the above-described image compression technique, it is inevitable that the image quality will deteriorate to some extent if the compression ratio is increased, and the compression ratio is determined by the allowable range of the image quality deterioration. It is believed to be something.

【0006】特に、上記JPEGでは、圧縮率の調節は
圧縮する画像単位でしか行えず、このため、例えば写真
画像のように、高画質を維持したい主要被写体の部分
と、ある程度の画質劣化が許される背景画像とからなる
画像では、圧縮率は主要被写体に必要とされる画質に合
わせて決定するしかなかった。つまり、画像中に高い画
質を維持したい部分が少しでもあれば、画像全体の圧縮
率はその部分の画質劣化の許容範囲に応じて決まってし
まうため、全体としての圧縮率をあまり高くすることが
できなかった。
In particular, in the above-mentioned JPEG, the compression ratio can be adjusted only for each image to be compressed. For this reason, for example, a portion of a main subject whose high image quality is to be maintained, such as a photographic image, and a certain degree of image quality deterioration are allowed. In an image composed of a background image to be processed, the compression ratio has to be determined according to the image quality required for the main subject. In other words, if there is even a small portion of the image where high image quality is desired to be maintained, the compression ratio of the entire image is determined according to the allowable range of image quality deterioration of that portion. could not.

【0007】本発明は上記問題点に鑑みて、必要な部分
の画質を維持しつつ、かつ全体としての圧縮率をできる
限り高くすることができる画像圧縮方法および装置を提
供することを目的とするものである。より具体的には、
人間が画像中の主要部と非主要部とを区別する際に色相
と彩度に基づいて区別していること、あるいは人間の視
覚特性として画質劣化を強く感じてしまう色と、あまり
感じない色があることに着目し、全体としては高い圧縮
率を確保しつつ、画像中の主要部あるいは画質劣化を強
く感じるような色の部分に対しては比較的高い画質を維
持できるような画像圧縮方法および装置を提供すること
を目的とする。
SUMMARY OF THE INVENTION In view of the above problems, it is an object of the present invention to provide an image compression method and apparatus capable of maintaining the image quality of a necessary portion and increasing the overall compression ratio as much as possible. Things. More specifically,
When a human distinguishes a main part from a non-principal part in an image, he or she distinguishes based on hue and saturation. Focusing on the fact, while maintaining a high compression rate as a whole, an image compression method that can maintain a relatively high image quality for a main part in an image or a color portion where image quality deterioration is strongly felt, and It is intended to provide a device.

【0008】[0008]

【課題を解決するための手段】本発明の画像圧縮方法お
よび装置は、画像を表す画像情報を符号化することによ
り画像情報の圧縮を行うものであり、前記画像を構成す
る複数の画像領域ごとの色相および彩度を求め、各画像
領域に含まれる画像情報を、色相および彩度に基づいて
決定された圧縮率でそれぞれ符号化することを特徴とす
るものである。
SUMMARY OF THE INVENTION An image compression method and apparatus according to the present invention compress image information by encoding image information representing an image. Each of the plurality of image regions constituting the image is compressed. , And encodes image information included in each image area at a compression rate determined based on the hue and saturation.

【0009】ここで、「色相および彩度」とは、色の3
要素である色相、彩度、明度のうちの色相と彩度のこと
である。また、「前記画像を構成する複数の画像領域ご
との色相および彩度を求め」とは全画素に対して順次色
相および彩度を求めた後に、画像を複数の領域に分割し
て各領域に含まれる画素の色相および彩度の平均を求め
てもよいし、先に画像を複数の領域に分割しておいて、
各領域ごとに例えば代表画素について色相および彩度を
求めたり、その領域に含まれる画素の平均的色相および
彩度を求めるなどしてもよい。
[0009] Here, "hue and saturation" are three colors.
Hue and saturation among the hue, saturation, and lightness that are the elements. Further, "determining hue and saturation for each of a plurality of image regions constituting the image" means that after sequentially calculating hue and saturation for all pixels, the image is divided into a plurality of regions and divided into each region. The average of the hue and saturation of the included pixels may be obtained, or the image may be divided into a plurality of regions first,
For example, the hue and saturation of the representative pixel may be obtained for each region, or the average hue and saturation of the pixels included in the region may be obtained.

【0010】この際、「画像領域」は、その領域の色相
および彩度として求めた値が実際の画像上で視認される
色相および彩度を示す値として適切な値を示すのに十分
小さい大きさとすることが望ましい。例えばスナップ写
真等で、肌色の部分、すなわち被写体の顔全体の画質を
維持したい場合には、被写体の顔に相当する大きさより
も十分小さい領域を画像領域として色相および彩度を求
めるのがよい。
[0010] At this time, the "image area" is large enough that the values obtained as the hue and saturation of the area are appropriate values indicating the hue and saturation visually recognized on the actual image. Desirably. For example, when it is desired to maintain the image quality of a skin color portion, that is, the entire face of a subject in a snapshot or the like, it is preferable to obtain a hue and saturation using an area sufficiently smaller than the size corresponding to the face of the subject as an image area.

【0011】また、「前記色相および彩度に基づいて決
定された圧縮率」とは、色相および彩度が高画質を維持
したい領域の色を示すときに圧縮率を小さくするという
ことである。人間が画像中の主要部と非主要部とを区別
する際に色相と彩度に基づいて区別することは日常的に
知られていることであり、例えば木々などを背景とした
人間のスナップ写真であれば、通常は服の色あるいは顔
の色である肌色によって主要部である人間と非主要部で
ある背景の木々とを区別している。つまり、本発明はこ
の人間の視覚特性を利用して、画像中の主要部の圧縮率
を低くしようとするものである。
The "compression rate determined based on the hue and saturation" means that the compression rate is reduced when the hue and saturation indicate a color in an area where high image quality is desired to be maintained. It is routinely known that humans distinguish between main parts and non-main parts in an image based on hue and saturation. If so, the human being, which is the main part, and the background trees, which are the non-main parts, are distinguished by the skin color, which is usually the color of clothes or the color of the face. In other words, the present invention intends to lower the compression ratio of the main part in an image by utilizing this human visual characteristic.

【0012】また、「前記色相および彩度に基づいて決
定された圧縮率で符号化する」ための具体的な方法とし
ては、例えば前記符号化が画像情報の量子化を行うもの
であれば、量子化の量子化ステップの値を色相および彩
度に基づいて定めることにより圧縮率を決定して符号化
する方法などがある。あるいは符号化の量子化以外の過
程において、色相および彩度を考慮した処理を行っても
よい。
As a specific method for “encoding at a compression rate determined based on the hue and saturation”, for example, if the encoding performs quantization of image information, There is a method of determining the compression ratio by determining the value of the quantization step of quantization based on the hue and saturation, and performing encoding. Alternatively, in a process other than the quantization of encoding, a process may be performed in consideration of hue and saturation.

【0013】また、圧縮の過程において量子化を行う場
合の一般的な方法として、量子化の前に画像情報を複数
の画像ブロックに分割し、この画像情報に対して各画像
ブロックごとに直交変換を施し、直交変換により得られ
た変換係数に対して量子化を施す方法が知られており、
本発明においても、このように直交変換を行ってから上
記色相および彩度に基づく量子化を行うようにしてもよ
い。
As a general method of performing quantization in the compression process, image information is divided into a plurality of image blocks before quantization, and this image information is subjected to an orthogonal transform for each image block. And a method of performing quantization on the transform coefficient obtained by the orthogonal transform is known,
Also in the present invention, the quantization based on the hue and the saturation may be performed after the orthogonal transformation is performed.

【0014】この場合、前述の色相および彩度をこの直
交変換の単位となる画像ブロックごとに求めるようにし
てもよい。
In this case, the above-mentioned hue and saturation may be obtained for each image block which is a unit of the orthogonal transformation.

【0015】また、直交変換と同じく一般的に、量子化
された画像情報に対してエントロピ符号化を施す方法が
知られており、本発明においても、上記色相および彩度
に基づく量子化を行った後に、さらにこのようなエント
ロピ符号化を行ってもよい。
[0015] A method of performing entropy coding on quantized image information is generally known as in the case of orthogonal transform. In the present invention, quantization based on the above hue and saturation is performed. After that, such entropy coding may be further performed.

【0016】また、前記量子化を、まず色相および彩度
に基づいて決定された関数あるいはテーブルに基づいて
圧縮率を決定するための前処理を行った後、色相および
彩度に依存しないいわゆる従来技術における量子化を行
うようにして、従来技術に前処理を追加するという形で
実現してもよい。
Further, the quantization is firstly subjected to a pre-processing for determining a compression ratio based on a function or a table determined on the basis of hue and saturation. It may be realized by performing quantization in the technology and adding preprocessing to the conventional technology.

【0017】なお、一般に写真画像等においては主要被
写体の顔の部分の画質劣化は特に気になるものであるた
め、色相および彩度が肌色を示すときに圧縮率を低くす
るようにすることが望ましい。
In general, in a photographic image or the like, image quality deterioration of a face portion of a main subject is particularly worrisome. Therefore, when hue and saturation indicate flesh color, the compression ratio should be reduced. desirable.

【0018】[0018]

【発明の効果】本発明の画像圧縮方法および装置によれ
ば、人間が画像中の主要部と非主要部とを区別する際に
色相と彩度に基づいて区別していること、あるいは人間
の視覚特性として画質劣化を強く感じてしまう色と、あ
まり感じない色があることなどに着目し、画像を構成す
る各画像領域を、その画像領域の色相および彩度に基づ
いて決定された圧縮率でそれぞれ符号化するため、画質
が気になる部分については画質を維持し、一方で画質が
気にならない部分の圧縮率を高めることにより全体とし
ては圧縮率を高くすることができる。また、例えばプラ
イバシー保護のために人の顔の部分だけ画質をわざと落
としたい場合なども、本発明によれば例えば肌色の領域
のみ圧縮率を高くして、周囲の画質を維持しつつ顔の部
分のみをぼかすことができる。
According to the image compression method and apparatus of the present invention, when a human distinguishes a main part from a non-principal part in an image based on hue and saturation, or human visual Focusing on the fact that there is a color that strongly senses image quality degradation and a color that does not feel very much as a characteristic, each image region that composes an image is compressed at a compression ratio determined based on the hue and saturation of the image region. Since each is encoded, the image quality is maintained for the part where the image quality is not a concern, while the compression rate can be increased as a whole by increasing the compression ratio of the part where the image quality is not a concern. Also, for example, when it is desired to intentionally reduce the image quality of only the human face part for privacy protection, according to the present invention, for example, the compression ratio is increased only for the skin color area, and the face part is maintained while maintaining the surrounding image quality. Only can be blurred.

【0019】ここで、前記符号化として量子化を行っ
て、その量子化の量子化ステップの値を前記色相および
彩度に基づいて定めることにより圧縮率を決定するよう
にすれば、例えば色相彩度空間においてある色に着目
し、その色(色相彩度空間でその色を表す領域)からの
距離に応じて少しずつ量子化ステップ変えることができ
るので、色相および彩度に応じてきめ細かに圧縮率を調
整することができる。例えば色相および彩度に基づいて
圧縮方法を変えて圧縮率を変えるといった方法では色相
および彩度は予め限られた数(例えば圧縮方法の数)の
グループに分けなければならないため、このようなきめ
細かな圧縮率の調整はできず、量子化ステップの調整に
より細かく圧縮率を設定できることの効果は大きい。
Here, if the compression rate is determined by performing quantization as the encoding and determining the value of the quantization step of the quantization based on the hue and saturation, for example, Focusing on a certain color in the degree space, the quantization step can be changed little by little according to the distance from that color (the area that represents the color in the hue / saturation space). The rate can be adjusted. For example, in a method of changing a compression rate by changing a compression method based on hue and saturation, hue and saturation must be divided into a limited number of groups (for example, the number of compression methods) in advance. It is not possible to adjust the compression ratio, and the effect of finely setting the compression ratio by adjusting the quantization step has a great effect.

【0020】また、例えばJPEGのように、DCT等
の直交変換を行ってから量子化したり、あるいは量子化
の後にさらにエントロピ符号化を行えば、全体としての
圧縮率をさらに向上することができる。
Further, as in the case of JPEG, for example, if the quantization is performed after performing an orthogonal transformation such as DCT, or the entropy coding is further performed after the quantization, the overall compression ratio can be further improved.

【0021】この場合、直交変換を行うためには画像の
ブロック化が必要となるので、上記画像領域をこのブロ
ックとし、ブロック単位で色相および彩度を求めれば、
画像の分割処理を1段階にまとめることができ、装置の
構成上より好ましい。
In this case, it is necessary to block the image in order to perform the orthogonal transformation. Therefore, if the image area is defined as this block and the hue and saturation are obtained in block units,
The image dividing process can be combined into one step, which is more preferable in the configuration of the apparatus.

【0022】また、JPEGの量子化器はそのままで、
その前に色相および彩度に基づく変換処理を追加して2
段階に量子化を行うようにすれば、実装時の負担が軽減
される。
Also, while keeping the JPEG quantizer as it is,
Before that, add a conversion process based on hue and saturation and add 2
If the quantization is performed in stages, the load at the time of mounting is reduced.

【0023】なお、一般に画像圧縮は画像の保管時のみ
ならず転送配布の際に行われることが多い。そのため、
画像圧縮技術が広く利用されるためには、転送先の利用
者が復号化の手段を有することが前提となる。したがっ
て、画像圧縮技術として上記JPEGのような標準が確
立してしまっている状況においては、たとえ画質および
圧縮率の点でJPEGより優れた技術を開発したとして
も、特殊な復号化手段を必要とするような技術であると
一般利用者に受け入れられない可能性がある。あるい
は、その技術を標準化するために長い時間と労力を要す
ることとなる。
In general, image compression is often performed not only when images are stored but also when they are transferred and distributed. for that reason,
In order for the image compression technique to be widely used, it is assumed that the user at the transfer destination has decoding means. Therefore, in a situation where a standard such as the above-mentioned JPEG has been established as an image compression technique, a special decoding means is required even if a technique superior to JPEG in terms of image quality and compression ratio is developed. If the technology does, it may not be acceptable to general users. Alternatively, it takes a long time and effort to standardize the technology.

【0024】これに対し、本発明の方法および装置のう
ち量子化の量子化ステップの値を色相および彩度に基づ
いて定める方法および装置は、いわば量子化の細かさの
調整を行っただけであり符号化の手順は変わらない。し
たがって、本発明の画像圧縮方法により圧縮された画像
は、従来と同じ復号化手順で再生することができ、新た
な復号化手段を必要としない。つまり、例えば写真画像
等を提供する側でJPEG準拠の符号化手段を本発明の
ように改良すれば、その画像を利用する一般利用者は従
来と同じ方法で画像再生を行うだけで画質向上あるいは
圧縮率向上の効果を得ることができる。
On the other hand, the method and apparatus for determining the value of the quantization step of the quantization based on the hue and the saturation among the method and apparatus of the present invention, so to speak, only adjust the fineness of the quantization. The coding procedure does not change. Therefore, the image compressed by the image compression method of the present invention can be reproduced by the same decoding procedure as the conventional one, and does not require any new decoding means. That is, for example, if a JPEG-compliant encoding means is improved on the side that provides a photographic image or the like as in the present invention, a general user who uses the image can improve the image quality only by reproducing the image in the same manner as before. The effect of improving the compression ratio can be obtained.

【0025】すなわち、本発明は技術的効果を有するの
みならず、実際の業界の動向に即した利用性の高い発明
であるということができる。
That is, it can be said that the present invention not only has a technical effect, but also is a highly utilizable invention in accordance with the trend of the actual industry.

【0026】[0026]

【発明の実施の形態】以下、本発明の画像圧縮方法およ
び装置について図面を参照して説明する。以下の説明で
は業界標準であるJPEGを前提とし、それを改良する
ものとしての実施の形態を示すが、上述のように本発明
の特徴は、人間が画像中の主要部と非主要部を色に基づ
いて区別していることに着目して、主要部の圧縮率を小
さくすべく、色相および彩度に基づいて領域ごとに異な
る圧縮率で画像圧縮を行う点にあり、以下の例は本発明
の技術的範囲を限定するものではない。但し、画像圧縮
の分野は標準化が進んでいるため、現実には本実施の形
態のように、JPEGやその他の標準技術、あるいは今
後標準化される技術に本発明の特徴を取り入れる形で実
施することが望ましい。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an image compression method and apparatus according to the present invention will be described with reference to the drawings. In the following description, an embodiment as an improvement of JPEG, which is an industry standard, will be described. However, as described above, the feature of the present invention is that humans can color main and non-main parts of an image by color. In order to reduce the compression ratio of the main part, image compression is performed at a different compression ratio for each region based on hue and saturation in order to reduce the compression ratio of the main part. It does not limit the technical scope of the. However, since the field of image compression is being standardized, it is actually necessary to implement the features of the present invention in JPEG and other standard technologies, or technologies to be standardized in the future, as in the present embodiment. Is desirable.

【0027】図1は、本発明の一実施の形態の概要を表
すブロック図である。この図に示されるように、本実施
の形態は上述のJPEG(図4)の符号化の過程におい
て量子化の前に所定の前処理1を追加したものであり、
復号化の過程については従来と何ら変わるところがな
い。逆量子化の際には量子化に使用されたテーブルが使
用され、これにより符号化のときの前処理後の画像が再
生される。
FIG. 1 is a block diagram showing an outline of an embodiment of the present invention. As shown in this figure, the present embodiment is obtained by adding a predetermined preprocessing 1 before quantization in the above-described JPEG (FIG. 4) encoding process.
The decoding process is no different from the conventional one. At the time of inverse quantization, the table used for quantization is used, and the image after the preprocessing at the time of encoding is reproduced.

【0028】ここで、前処理とは圧縮する画像の各領域
を、その領域の色相および彩度に基づいて決定された関
数あるいはテーブルに基づいて変換する処理である。図
2に示すように、JPEGでは画像を8×8のブロック
に分割して各ブロックごとにDCTを施すため、本実施
の形態ではこのブロックを色相および彩度を求める際の
範囲として利用している。
Here, the pre-processing is a process of converting each area of the image to be compressed based on a function or a table determined based on the hue and saturation of the area. As shown in FIG. 2, in JPEG, an image is divided into 8 × 8 blocks, and DCT is applied to each block. In this embodiment, this block is used as a range for calculating hue and saturation. I have.

【0029】色相および彩度は、各ブロックに含まれる
8×8個の画素の色相および彩度の平均を求めてもよい
し、例えば中心部の1つあるいは数個の画素を代表画素
として、その画素の色相および彩度をそのブロックの色
相および彩度としてもよい。さらに求められた色相およ
び彩度はそのままの値として保持してもよいし、例えば
肌色という特定の色に着目し、肌色を10として、色相
彩度空間上の肌色の領域からの距離が離れるほど9、
8、7のように小さい値となるような情報として保持し
てもよい。あるいは単に、肌色であれば1、それ以外で
あれば0というような2値情報に変換して保持してもよ
い。
The hue and saturation may be obtained by averaging the hue and saturation of 8.times.8 pixels included in each block. For example, one or several pixels at the center may be set as a representative pixel. The hue and saturation of the pixel may be used as the hue and saturation of the block. Further, the obtained hue and saturation may be held as they are, or, for example, focusing on a specific color called flesh color, assuming that the flesh color is 10, and as the distance from the flesh color area on the hue / saturation space increases, 9,
It may be stored as information having a small value such as 8 or 7. Alternatively, the information may be simply converted into binary information such as 1 for a skin color and 0 otherwise, and stored.

【0030】このようにして求められ保持された色相お
よび彩度、あるいはそれらにかかる情報は、前処理1に
おける関数あるいはテーブルの決定時に参照される。本
実施の形態の前処理1は、DCTの結果得られる変換係
数を図3に示すような形状の関数で変換する処理であ
り、関数の量子化ステップを規定する値Kが、いわゆる
量子化器と同様DCTの係数位置(DCTの変換係数の
周波数空間における位置)ごとに設定されている。この
ような設定値の組は前処理テーブルとして複数個用意さ
れており、処理されるブロックの色相および彩度に応じ
てこの複数個のテーブルが随時切り替えられる。
The hue and saturation obtained and held in this way, or information relating thereto, is referred to when a function or a table is determined in the preprocessing 1. Preprocessing 1 of the present embodiment is a process of transforming a transform coefficient obtained as a result of DCT by a function having a shape as shown in FIG. 3, and a value K defining a quantization step of the function is a so-called quantizer. Similarly to the above, the setting is made for each DCT coefficient position (the position of the DCT transform coefficient in the frequency space). A plurality of sets of such setting values are prepared as a pre-processing table, and the plurality of tables are switched at any time according to the hue and saturation of the block to be processed.

【0031】ここで、前処理1は広くはJPEGの量子
化器と同じく画像情報を量子化する処理であるが、量子
化自体ではなく圧縮率の調整が主な目的であるため、縦
軸の値は必ずしも連続する整数値(インデックス)では
ない。ここで、Kの値を大きくするほど前処理された画
像情報は限られた種類の値となるため、続いて行われる
量子化の効率も向上し、さらには画像情報のエントロピ
が小さくなるためエントロピ符号化の効率も向上する。
つまり、Kの値が大きいテーブルにより前処理されたブ
ロックは圧縮率が高くなり(画質劣化が大きく)、Kの
値が小さいテーブルにより前処理されたブロックは圧縮
率が低くなる(画質劣化が少ない)。
Here, the pre-processing 1 is a process for quantizing image information broadly like a JPEG quantizer. However, since the main purpose is not to adjust the quantization itself but to adjust the compression ratio, The value is not necessarily a continuous integer value (index). Here, as the value of K increases, the pre-processed image information becomes a limited type of value, so that the efficiency of the subsequent quantization is improved, and the entropy of the image information is reduced. The encoding efficiency is also improved.
That is, a block pre-processed by a table having a large value of K has a high compression ratio (large image quality deterioration), and a block pre-processed by a table having a small value of K has a low compression ratio (less image quality deterioration). ).

【0032】したがって、本実施の形態では肌色が視覚
的に最も敏感であることを考慮して、肌色については精
度を保つべく前処理1のテーブルの全ての係数位置のK
の値を1としている。またグレーも比較的画質劣化が目
立つ色であるため、全ての係数位置のKの値を例えば2
などの小さめの値としている。他の色については特に精
度を要求しないこととし、全ての係数位置のKの値をよ
り大きめの値としている。このように色に応じて3種類
の異なる前処理テーブルを予め用意しておき、処理する
ブロックの色相および彩度に応じてテーブルを切り替え
ている。
Therefore, in this embodiment, considering that the skin color is most visually sensitive, the K of all the coefficient positions in the table of the preprocessing 1 is maintained for the skin color in order to maintain the accuracy.
Is set to 1. Gray is also a color in which image quality degradation is relatively conspicuous, and the values of K at all coefficient positions are, for example, 2
And so on. For other colors, no particular precision is required, and the values of K at all coefficient positions are set to larger values. As described above, three types of different preprocessing tables are prepared in advance according to the colors, and the tables are switched according to the hue and saturation of the block to be processed.

【0033】あるいは、肌色について複数種類、グレー
について複数種類のテーブルを用意し、例えば肌色その
ものであるときにはKの値が1であるテーブル、以下圧
縮する画像ブロックの色が色相彩度空間における肌色の
領域から離れるにしたがってKの値が2、3...のテ
ーブルに切り替えるようにすれば、より正確に画像の特
徴に応じた圧縮を行うことができる。
Alternatively, a plurality of types of skin color tables and a plurality of types of gray tables are prepared. For example, when the skin color itself is used, the value of K is 1, and the color of the image block to be compressed is the skin color in the hue saturation space. As the distance from the region increases, the value of K becomes 2,3. . . By switching to the table, compression according to the characteristics of the image can be performed more accurately.

【0034】また、Kの値を可変とし、予め用意したテ
ーブルを切り替えるのではなく、色相および彩度に応じ
て適切なKの値をその都度求めて処理を行ってもよい。
Further, instead of changing the value of K and switching the table prepared in advance, an appropriate value of K may be obtained in accordance with the hue and saturation, and the processing may be performed.

【0035】このようにして圧縮を行った場合、肌色と
グレー以外の部分の精度を落としているため画像全体の
圧縮率は十分に確保される。また、この画像を復号化し
た場合には、肌色あるいはグレーの部分が精度よく再生
されるため、その他の部分の精度は落ちていても全体と
しては画質劣化はあまり感じられないことになる。
When the compression is performed in this way, the compression ratio of the whole image is sufficiently ensured because the accuracy of the parts other than the skin color and the gray is reduced. Further, when this image is decoded, the flesh color or gray portion is reproduced with high accuracy, so that even if the accuracy of the other portions is reduced, the image quality is hardly deteriorated as a whole.

【0036】なお、一般の量子化テーブルと同じく前処
理テーブルのKの値は必ずしも全ての係数位置で同じで
ある必要はない。例えば低周波成分については肌色の精
度を保ちたいが、高周波成分については特に高い精度は
必要としないといった場合には、低周波成分に対応する
係数位置のKの値を1とし、高周波成分に対応する係数
位置のKの値を比較的大きな値としてもよい。
It should be noted that the value of K in the preprocessing table does not necessarily need to be the same at all coefficient positions as in a general quantization table. For example, if the user wants to maintain the accuracy of the skin color for the low-frequency component but does not need particularly high accuracy for the high-frequency component, the value of K at the coefficient position corresponding to the low-frequency component is set to 1 and the The value of K at the coefficient position may be set to a relatively large value.

【0037】また、以上の説明では本発明の特徴を明ら
かにすべく前処理と従来の量子化器の2段階の処理によ
り量子化を行っているが、1つのテーブルにより同時に
処理してもよいことはいうまでもない。
In the above description, quantization is performed by two-stage processing of pre-processing and a conventional quantizer in order to clarify the features of the present invention. However, processing may be performed simultaneously by one table. Needless to say.

【0038】さらに、標準技術に特に固執する必要がな
い場合には、上記直交変換やエントロピ符号化の方法と
してあらゆる方法を適用することができ、また他のあら
ゆる符号化方法に本発明の概念を取り入れることもでき
る。特に、量子化を含む符号化(圧縮)方法の場合に
は、量子化ステップの調整あるいは切替機能を追加する
だけで、色相彩度空間上の着目した色からの距離に応じ
てきめ細かく圧縮率を調整できるようになり、限られた
段階の圧縮率の切替しかできない方法に比べ、その効果
は非常に大きい。
Further, if it is not necessary to stick to the standard technology, any method can be applied as the above-mentioned orthogonal transform or entropy coding method, and the concept of the present invention can be applied to any other coding method. Can also be incorporated. In particular, in the case of an encoding (compression) method including quantization, only by adding a function of adjusting or switching a quantization step, the compression ratio can be finely adjusted in accordance with the distance from a focused color in a hue / saturation space. The effect can be adjusted, and the effect is very large as compared with the method in which the compression ratio can be switched only at a limited stage.

【0039】また、本発明は、色相および彩度に基づい
て圧縮率を変えるものであるが、この他、例えば画像上
での主要被写体からの距離に応じて圧縮率を変える方法
や、画質劣化が起きやすい画像のエッジ部で特に圧縮率
を変える方法、あるいはそれらの基準の組み合わせによ
り圧縮率を変える方法などが考えられる。組み合わせに
よる方法としては、例えば前記基準に優先順位あるいは
重みづけを設定し、例えばまず色相および彩度に基づい
て肌色であれば圧縮率を低くし、肌色でなければ画像の
中心部か否かによって圧縮率を決定するといった方法が
考えられる。
The present invention changes the compression ratio based on hue and saturation. In addition to this, for example, a method of changing the compression ratio according to the distance from a main subject on an image, image quality deterioration, and the like. In particular, a method of changing the compression ratio at an edge portion of an image in which the compression is likely to occur, or a method of changing the compression ratio by a combination of these criteria can be considered. As a method based on the combination, for example, a priority or weight is set to the above-mentioned criterion. For example, first, if the skin color is a skin color based on hue and saturation, the compression ratio is lowered. A method of determining a compression ratio is conceivable.

【0040】以上のように、本発明の画像圧縮方法およ
び装置により、人間の視覚特性を生かした高効率な画像
圧縮を行うことができる。また、本発明の画像圧縮方法
および装置は標準化技術との共存が可能であるため、画
像の利用者にとっても非常に使い勝手のよいものである
といえる。
As described above, with the image compression method and apparatus of the present invention, highly efficient image compression utilizing human visual characteristics can be performed. Further, since the image compression method and apparatus of the present invention can coexist with the standardization technology, it can be said that the image compression method and apparatus are very convenient for users of images.

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

【図1】本発明の一実施の形態の概要を表すブロック図FIG. 1 is a block diagram showing an outline of an embodiment of the present invention.

【図2】図1の実施の形態における前処理を表すブロッ
ク図
FIG. 2 is a block diagram illustrating preprocessing in the embodiment of FIG. 1;

【図3】前処理テーブルの一例を示す図FIG. 3 shows an example of a preprocessing table.

【図4】従来の画像符号化/復号化の手順を示すブロッ
ク図
FIG. 4 is a block diagram showing a conventional image encoding / decoding procedure.

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

1 前処理 1 Preprocessing

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 画像を表す画像情報を符号化することに
より該画像情報の圧縮を行う画像圧縮方法において、 前記画像を構成する複数の画像領域ごとの色相および彩
度を求め、 前記各画像領域に含まれる前記画像情報を、前記色相お
よび彩度に基づいて決定された圧縮率でそれぞれ符号化
することを特徴とする画像圧縮方法。
1. An image compression method for compressing image information by encoding image information representing an image, wherein a hue and a saturation of each of a plurality of image regions constituting the image are obtained, Encoding the image information included in the image information at a compression rate determined based on the hue and saturation.
【請求項2】 前記符号化が前記画像情報の量子化を行
うものであり、該量子化の量子化ステップの値を前記色
相および彩度に基づいて定めることにより前記圧縮率を
決定することを特徴とする請求項1記載の画像圧縮方
法。
2. The method according to claim 1, wherein the encoding is performed to quantize the image information, and the compression ratio is determined by determining a value of a quantization step of the quantization based on the hue and saturation. 2. The image compression method according to claim 1, wherein:
【請求項3】 前記符号化が、前記画像情報を複数の画
像ブロックに分割し、前記画像情報に対して前記各画像
ブロックごとに直交変換を施し、該直交変換により得ら
れた変換係数に対して前記量子化を施すものであること
を特徴とする請求項2記載の画像圧縮方法。
3. The encoding includes dividing the image information into a plurality of image blocks, performing an orthogonal transform on the image information for each of the image blocks, and applying a transform coefficient obtained by the orthogonal transform to the image information. 3. The image compression method according to claim 2, wherein the quantization is performed by performing the quantization.
【請求項4】 前記色相および彩度を前記画像ブロック
ごとに求めることを特徴とする請求項3記載の画像圧縮
方法。
4. The image compression method according to claim 3, wherein said hue and saturation are obtained for each of said image blocks.
【請求項5】 前記符号化が、前記量子化された画像情
報に対してエントロピ符号化を施すものであることを特
徴とする請求項2から4のいずれか1項記載の画像圧縮
方法。
5. The image compression method according to claim 2, wherein the encoding is performed by performing entropy encoding on the quantized image information.
【請求項6】 前記量子化が、前記色相および彩度に基
づいて決定された関数あるいはテーブルに基づいて前記
圧縮率を決定するための前処理を行った後、前記色相お
よび彩度に依存しない所定の量子化を行うものであるこ
とを特徴とする請求項2から5のいずれか1項記載の画
像圧縮方法。
6. The quantization does not depend on the hue and saturation after performing a pre-processing for determining the compression ratio based on a function or a table determined based on the hue and saturation. 6. The image compression method according to claim 2, wherein predetermined quantization is performed.
【請求項7】 前記色相および彩度が肌色を示すときに
前記圧縮率を低くすることを特徴とする請求項1から6
のいずれか1項記載の画像圧縮方法。
7. The compression ratio is reduced when the hue and saturation indicate flesh color.
The image compression method according to claim 1.
【請求項8】 画像を表す画像情報を符号化することに
より該画像情報の圧縮を行う画像圧縮装置において、 前記画像を構成する複数の画像領域ごとの色相および彩
度を求める色相彩度取得手段と、 前記各画像領域に含まれる前記画像情報を、前記色相お
よび彩度に基づいて決定された圧縮率でそれぞれ符号化
する符号化手段とを有することを特徴とする画像圧縮装
置。
8. An image compression apparatus for compressing image information by encoding the image information representing the image, wherein the hue / saturation obtaining means for obtaining hue and saturation for each of a plurality of image regions constituting the image. And an encoding unit that encodes the image information included in each of the image regions at a compression rate determined based on the hue and saturation.
【請求項9】 前記符号化手段が、前記画像情報の量子
化を行う量子化手段を有し、該量子化手段が、前記量子
化の量子化ステップの値を前記色相彩度取得手段により
求められた色相および彩度に基づいて定めることにより
前記圧縮率を決定する手段であることを特徴とする請求
項8記載の画像圧縮装置。
9. The encoding means has a quantization means for quantizing the image information, and the quantization means obtains a value of a quantization step of the quantization by the hue / saturation acquisition means. 9. The image compression apparatus according to claim 8, wherein the compression ratio is determined based on the determined hue and saturation.
【請求項10】 前記符号化手段が、前記画像情報を複
数の画像ブロックに分割するブロック化手段と、 前記画像情報に対し前記各画像ブロックごとに直交変換
を施す直交変換手段とを有し、 前記量子化手段が、前記直交変換により得られた変換係
数に対して前記量子化を施す手段であることを特徴とす
る請求項9記載の画像圧縮装置。
10. The encoding device according to claim 1, further comprising: a blocking unit configured to divide the image information into a plurality of image blocks; and an orthogonal transformation unit configured to perform an orthogonal transformation on the image information for each of the image blocks. 10. The image compression apparatus according to claim 9, wherein said quantization means is means for performing said quantization on a transform coefficient obtained by said orthogonal transformation.
【請求項11】 前記色相および彩度を前記画像ブロッ
クごとに求めることを特徴とする請求項10記載の画像
圧縮装置。
11. An image compression apparatus according to claim 10, wherein said hue and saturation are obtained for each of said image blocks.
【請求項12】 前記符号化手段が、前記量子化された
画像情報に対してさらにエントロピ符号化を施すエント
ロピ符号化手段を有することを特徴とする請求項9から
11のいずれか1項記載の画像圧縮装置。
12. The apparatus according to claim 9, wherein said encoding means further comprises entropy encoding means for further performing entropy encoding on said quantized image information. Image compression device.
【請求項13】 前記量子化手段が、前記色相および彩
度に基づいて決定された関数あるいはテーブルに基づい
て前記圧縮率を決定するための前処理を行う前処理手段
と、 前記前処理された画像情報に対して前記色相および彩度
に依存しない所定の量子化を施す量子化器とからなるこ
とを特徴とする請求項9から12のいずれか1項記載の
画像圧縮装置。
13. The pre-processing unit, wherein the quantization unit performs pre-processing for determining the compression ratio based on a function or a table determined based on the hue and saturation, and 13. The image compression apparatus according to claim 9, further comprising a quantizer that performs predetermined quantization independent of the hue and the saturation on the image information.
【請求項14】 前記符号化手段が、前記色相および彩
度が肌色を示すときに前記圧縮率を低くする手段である
ことを特徴とする請求項8から13のいずれか1項記載
の画像圧縮装置。
14. The image compression method according to claim 8, wherein said encoding means is means for reducing said compression ratio when said hue and saturation indicate flesh color. apparatus.
JP8278149A 1996-10-21 1996-10-21 Image compressing method/device Withdrawn JPH10126621A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8278149A JPH10126621A (en) 1996-10-21 1996-10-21 Image compressing method/device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8278149A JPH10126621A (en) 1996-10-21 1996-10-21 Image compressing method/device

Publications (1)

Publication Number Publication Date
JPH10126621A true JPH10126621A (en) 1998-05-15

Family

ID=17593282

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8278149A Withdrawn JPH10126621A (en) 1996-10-21 1996-10-21 Image compressing method/device

Country Status (1)

Country Link
JP (1) JPH10126621A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7397852B2 (en) 2001-08-02 2008-07-08 Sony Corporation Image processing apparatus and method, and image processing program
WO2024089950A1 (en) * 2022-10-27 2024-05-02 住友電気工業株式会社 Image compression device and image compression method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7397852B2 (en) 2001-08-02 2008-07-08 Sony Corporation Image processing apparatus and method, and image processing program
WO2024089950A1 (en) * 2022-10-27 2024-05-02 住友電気工業株式会社 Image compression device and image compression method

Similar Documents

Publication Publication Date Title
CA2452550C (en) An apparatus and method for encoding digital image data in a lossless manner
KR100303054B1 (en) Quantization matrix for still and moving picture coding
CA2450733C (en) A configurable image scanning pattern optimizer
KR100788220B1 (en) Quality based image compression
EP1195993B1 (en) Transcoding of video signal
US7194128B1 (en) Data compression using principal components transformation
US5719961A (en) Adaptive technique for encoder and decoder signal transformation
JPH05183758A (en) System and method of masking quantization having adaptability for transferring image
JPH04320160A (en) Picture signal compression expansion device and area identification processing unit
JP2009153128A (en) Selective chrominance decimation for digital images
WO2006067712A1 (en) Scalable coding
US7149350B2 (en) Image compression apparatus, image depression apparatus and method thereof
US20030012431A1 (en) Hybrid lossy and lossless compression method and apparatus
US20020191695A1 (en) Interframe encoding method and apparatus
US6625323B2 (en) Method for compressing and decompressing digital having text
JPH10126778A (en) Image compression method and its equipment
US20030152278A1 (en) Archival of transformed and compressed data
JPH10126621A (en) Image compressing method/device
JPH10126777A (en) Image compression method and its equipment
JPH0575875A (en) Picture encoding device
JP2872149B2 (en) Image coding device
JPH06164941A (en) Picture data coding method and device
JPH07255054A (en) Image encoding device
JPH1023261A (en) Image-processing unit
JPH05227441A (en) Digital picture signal compression device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040106