JP2002176560A - Picture processor, picture processing method, and recording medium - Google Patents

Picture processor, picture processing method, and recording medium

Info

Publication number
JP2002176560A
JP2002176560A JP2000370573A JP2000370573A JP2002176560A JP 2002176560 A JP2002176560 A JP 2002176560A JP 2000370573 A JP2000370573 A JP 2000370573A JP 2000370573 A JP2000370573 A JP 2000370573A JP 2002176560 A JP2002176560 A JP 2002176560A
Authority
JP
Japan
Prior art keywords
image
code amount
encoding
image data
hierarchical
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
JP2000370573A
Other languages
Japanese (ja)
Inventor
Hideshi Osawa
秀史 大澤
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2000370573A priority Critical patent/JP2002176560A/en
Publication of JP2002176560A publication Critical patent/JP2002176560A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily control the encoding volume after hierarchical encoding processing without complicated processing by one encoding processing. SOLUTION: An approximate curve indicating the relation between a hierarchical level and a code volume is obtained by a discrimination part in accordance with code volumes after encoding processing in hierarchical levels A and B calculated by a variable length code volume calculation part in a code volume monitor part 209. A hierarchical level according with a target code volume is forecast and determined on the basis of this approximate curve, and a color picture encoding part 104 outputs encoded data obtained by encoding processing on the basis of this hierarchical level, and thus the hierarchical level in which the code volume after hierarchical encoding processing is the target code volume is forecast and determined by one encoding processing without performing encoding processing plural times to control the code volume after hierarchical encoding processing in the color picture encoding part 104.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理装置、画
像処理方法および記録媒体に関し、特に、画像の領域毎
に画像を圧縮する符号化処理を切り換えることができる
画像処理装置に用いて好適なものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, an image processing method, and a recording medium, and more particularly to an image processing apparatus suitable for use in an image processing apparatus capable of switching encoding processing for compressing an image for each image area. Things.

【0002】[0002]

【従来の技術】従来、カラー静止画像を圧縮する符号化
方式には、離散コサイン変換を利用したJPEG方式
や、Wavelet変換を利用した方式が多く用いられ
てきた。これらの符号化方式は、基本的に符号化の対象
となる原画像に応じて、符号化後の符号量が異なる可変
長符号化方式であった。
2. Description of the Related Art Conventionally, as a coding method for compressing a color still image, a JPEG method using discrete cosine transform and a method using Wavelet transform have been often used. These encoding systems are variable-length encoding systems in which the amount of code after encoding is basically different according to the original image to be encoded.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、これら
の方式の1つである国際標準化JPEG方式では、符号
化処理を施す画像に対して、1組の量子化マトリクスし
か定義できなかった。そのため、符号化後の符号量を一
定に制御するには、プリスキャンなどにより符号化処理
を繰り返し行い、符号化後の符号量を予測することで適
切な1組の量子化マトリクスを決定していた。したがっ
て、符号化後の符号量を一定に制御するには、複数回の
符号化処理を行わなければならないという問題があっ
た。
However, in the international standardized JPEG system, which is one of these systems, only one set of quantization matrices can be defined for an image to be coded. Therefore, in order to control the code amount after encoding to be constant, an encoding process is repeatedly performed by prescan or the like, and an appropriate set of quantization matrices is determined by predicting the code amount after encoding. Was. Therefore, there is a problem that a plurality of encoding processes must be performed in order to control the code amount after encoding to be constant.

【0004】また、画像には、符号化することによる画
質劣化が比較的目立ちやすい領域とそうでない領域とが
ある。例えば、文字領域と文字以外の写真画像領域とか
らなる画像では、文字領域は画質劣化が目立ちやすいが
写真画像領域は画質劣化が目立ちにくい。また、例え
ば、コンピュータ画像領域と自然画像領域とからなる画
像では、コンピュータ画像領域は画質劣化が目立ちやす
いが自然画像領域は画質劣化が目立ちにくい。したがっ
て、画像劣化が目立ちやすい領域の量子化ステップを細
かくし、画質劣化が目立ちにくい領域の量子化ステップ
を粗くすることで、符号化後の符号量を少なくし画質を
向上させることができる。
[0004] In an image, there are an area where deterioration of image quality due to encoding is relatively conspicuous and an area where the deterioration is not so noticeable. For example, in an image composed of a character area and a photographic image area other than characters, the image quality of the character area is easily noticeable, while the image quality of the photographic image area is not so noticeable. Further, for example, in an image composed of a computer image area and a natural image area, the computer image area tends to have a noticeable deterioration in image quality, but the natural image area has a low image quality deterioration. Therefore, by reducing the quantization step in an area where image degradation is conspicuous and coarsening the quantization step in an area where image degradation is not conspicuous, the code amount after encoding can be reduced and the image quality can be improved.

【0005】しかしながら、上述した離散コサイン変換
を利用したJPEG方式や、Wavelet変換を利用
した方式では、画像全体が均一に符号化処理されてい
た。そのため、上述ように画質劣化が比較的目立ちやす
い領域とそうでない領域とに分割して符号化後の符号量
を少なくし画質を向上させることはできなかった。
However, in the above-described JPEG system using the discrete cosine transform and the system using the Wavelet transform, the entire image is uniformly encoded. For this reason, as described above, it has not been possible to improve the image quality by reducing the amount of code after encoding by dividing the region into regions where the image quality deterioration is relatively conspicuous and regions where the image quality deterioration is not so noticeable.

【0006】また、従来からある多くの領域分割符号化
は、非可逆符号化方式を用いた領域分割符号化であり、
これと可逆符号化方式を組み合わせたものは少なかっ
た。ここで、可逆符号化方式とは、原画像を一度符号化
した後に復号化しても、原画像を忠実に再現することが
できる方式である。可逆符号化方式、非可逆符号化方式
のそれぞれにおいて符号化効率を高くしようとしていく
と、可逆符号化方式と非可逆符号化方式との共通性が少
なくなることが知られている。具体的には、可逆符号化
方式では、周囲画素から注目画素を予測する予測符号化
を用いることで符号化効率を高くすることができ、非可
逆符号化方式では、離散コサイン変換符号化のような変
換符号化と変換係数のエントロピー符号化とを組み合わ
せることで符号化効率を高くすることができる。
[0006] Also, many of the conventional region division codings are region division coding using an irreversible coding method.
Few have combined this with a lossless coding scheme. Here, the reversible coding method is a method capable of faithfully reproducing the original image even if the original image is once encoded and then decoded. It is known that when trying to increase the coding efficiency in each of the lossless coding method and the irreversible coding method, the commonality between the lossless coding method and the irreversible coding method decreases. Specifically, in the lossless coding method, coding efficiency can be increased by using predictive coding that predicts a target pixel from surrounding pixels, and in the lossy coding method, discrete coding cosine transform is used. The encoding efficiency can be increased by combining the optimal transform encoding and the entropy encoding of the transform coefficients.

【0007】しかしながら、符号化効率を高くしながら
も、可逆符号化方式と非可逆方式の2つの方式を切り換
える場合には、2つの別の符号化、例えば予測符号化と
離散コサイン変換符号化を用いることが必要であった。
[0007] However, when switching between the lossless coding method and the irreversible coding method while increasing the coding efficiency, two different coding methods such as predictive coding and discrete cosine transform coding are used. It was necessary to use.

【0008】この問題を解決するための方法として、符
号化効率は多少低くなるが可逆の離散コサイン変換方式
(小松邦紀他、‘可逆的離散コサイン変換とその画像情
報圧縮への応用’、電子情報通信学会研究会報告IE9
7−83,1997.11)などが知られている。この
方式では、N点の可逆変換を離散コサイン変換(DC
T:Discrete Cosine Transform)に応用した方式が提
案され、非可逆変換は、DCT係数のビットプレーン符
号化を行うことにより実現している。しかしながら、上
述の可逆変換での演算が多くの浮動小数点演算により行
われることや、通常の実数を用いたDCT演算における
係数との演算誤差があるなどの理由で実用化されるには
至っていなかった。また、1枚の画像を対象する方式で
あるため、この方式の使い方も限定されるものであっ
た。
As a method for solving this problem, a coding efficiency is slightly lowered but a reversible discrete cosine transform method (Kunori Komatsu et al., 'Reversible Discrete Cosine Transform and Its Application to Image Information Compression', IEICE Technical Report IE9
7-83, 1997.11). In this method, the N-point reversible transform is performed by a discrete cosine transform (DC
A method applied to T: Discrete Cosine Transform has been proposed, and the irreversible transform is realized by performing bit plane coding of DCT coefficients. However, it has not been put to practical use because the above-mentioned operation in the reversible transform is performed by many floating-point operations and there is an operation error with a coefficient in DCT operation using a normal real number. Was. Further, since the method is for one image, the use of this method is also limited.

【0009】また、可逆符号化方式と非可逆方式の2つ
の方式を切り換える場合に、可逆符号化から非可逆符号
化へ変換するためには、可逆符号化で符号化処理された
符号化データを復号化して原画像データに戻し、さらに
非可逆符号化で符号化処理を行うという煩雑な処理が必
要となってしまうという問題があった。
When switching between the lossless encoding method and the irreversible encoding method, in order to convert from lossless encoding to irreversible encoding, encoded data encoded by lossless encoding is used. There is a problem that a complicated process of decoding and returning to the original image data and performing an encoding process by irreversible encoding is required.

【0010】本発明は、上述のような問題を解決するた
めに成されたものであり、複数回の符号化処理を行った
り、符号化した符号化データを復号化してさらに符号化
したりする煩雑な処理を行うことなく、1回の符号化処
理で階層符号化処理後の符号化量を容易に制御できるよ
うにすることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem, and has been made to perform a plurality of encoding processes or to decode encoded encoded data to further encode the encoded data. An object of the present invention is to make it possible to easily control the amount of coding after hierarchical coding processing in one coding processing without performing complicated processing.

【0011】[0011]

【課題を解決するための手段】本発明の画像処理装置
は、画像データをビットプレーン符号化により階層符号
化処理する機能を有する画像処理装置であって、上記画
像データの階層符号化処理後の符号量を複数の階層でそ
れぞれ算出する符号量算出手段と、上記符号量算出手段
により算出した符号量に基づいて、階層数に応じた階層
符号化処理後の符号量を予測する符号量予測手段と、上
記符号量予測手段による予測結果に応じて、上記画像デ
ータを階層符号化処理する符号化手段とを備えることを
特徴とする。
An image processing apparatus according to the present invention is an image processing apparatus having a function of performing hierarchical coding processing of image data by bit-plane coding. Code amount calculating means for calculating the code amount in each of a plurality of layers; and code amount predicting means for predicting the code amount after the hierarchical coding process according to the number of layers based on the code amount calculated by the code amount calculating means. And encoding means for performing hierarchical encoding processing on the image data according to a prediction result by the code amount predicting means.

【0012】本発明の画像処理装置の他の特徴とすると
ころは、上記符号量予測手段は、上記符号量算出手段に
より算出した符号量に基づいて、上記階層数と階層符号
化処理後の符号量との関係を示す近似曲線を求める第1
の近似曲線演算手段を備え、上記第1の近似曲線演算手
段により求めた近似曲線に基づいて、上記階層数に応じ
た階層符号化処理後の符号量を予測することを特徴とす
る。
According to another feature of the image processing apparatus of the present invention, the code amount predicting means determines the number of layers and the code after hierarchical coding processing based on the code amount calculated by the code amount calculating means. First to find an approximate curve showing the relationship with quantity
, And predicts the code amount after the hierarchical coding process according to the number of layers based on the approximate curve obtained by the first approximate curve calculating means.

【0013】本発明の画像処理装置のその他の特徴とす
るところは、上記符号量予測手段は、上記画像データに
係る画像と複数の階層での階層符号化処理後の画像デー
タに係るそれぞれの復号画像との最小二乗誤差を算出す
る誤差算出手段を備え、上記誤差算出手段により算出し
た最小二乗誤差に基づいて、目標とする画質を得るため
の上記画像データの階層符号化処理後の符号量を予測す
ることを特徴とする。
Another feature of the image processing apparatus according to the present invention is that the code amount predicting means is configured to decode each of the image data and the image data having undergone the hierarchical coding process in a plurality of hierarchies. Error calculating means for calculating a least square error with the image, based on the least square error calculated by the error calculating means, the code amount after hierarchical coding processing of the image data to obtain a target image quality It is characterized by predicting.

【0014】本発明の画像処理装置のその他の特徴とす
るところは、上記符号量予測手段は、上記誤差算出手段
により算出された最小二乗誤差に基づいて、上記階層数
と上記最小二乗誤差との関係を示す近似曲線を求める第
2の近似曲線演算手段を備え、上記第2の近似曲線演算
手段により求めた近似曲線に基づいて、目標とする画質
を得るための上記画像データの階層符号化処理後の符号
量を予測することを特徴とする。
According to another feature of the image processing apparatus of the present invention, the code amount predicting means calculates a difference between the number of layers and the least square error based on the least square error calculated by the error calculating means. A second approximation curve calculating means for obtaining an approximate curve indicating a relationship, and a hierarchical encoding process of the image data for obtaining a target image quality based on the approximate curve calculated by the second approximate curve calculation means. It is characterized by predicting the amount of code later.

【0015】本発明の画像処理装置のその他の特徴とす
るところは、上記符号化手段は、上記画像データを複数
のタイル画像に分割しそれぞれ階層符号化処理すること
を特徴とする。本発明の画像処理装置のその他の特徴と
するところは、上記符号化手段は、上記画像データを領
域分割し上記領域分割した画像データの属性を示す像域
フラグに応じて階層符号化処理することを特徴とする。
Another feature of the image processing apparatus of the present invention is that the encoding means divides the image data into a plurality of tile images and performs a hierarchical encoding process on each of the divided tile images. Another feature of the image processing apparatus according to the present invention is that the encoding unit divides the image data into regions and performs a hierarchical encoding process according to an image region flag indicating an attribute of the region-divided image data. It is characterized by.

【0016】本発明の画像処理装置のその他の特徴とす
るところは、上記像域フラグは、文字領域と写真画像領
域とを識別するフラグであり、上記符号化手段は、上記
像域フラグが文字領域のフラグのときには可逆符号化処
理を行い、上記像域フラグが写真画像領域のフラグのと
きには非可逆符号化処理を行うことを特徴とする。
According to another feature of the image processing apparatus of the present invention, the image area flag is a flag for identifying a character area and a photographic image area, and the encoding means determines that the image area flag is a character area. It is characterized in that lossless encoding processing is performed when the flag is an area, and irreversible encoding processing is performed when the image area flag is a flag of a photographic image area.

【0017】本発明の画像処理装置のその他の特徴とす
るところは、上記符号量予測手段による予測結果が所定
の符号量より大きいときには、上記符号化手段は、上記
可逆符号化処理を上記非可逆符号化処理に切り換えるこ
とを特徴とする。
Another feature of the image processing apparatus of the present invention is that, when the prediction result by the code amount predicting means is larger than a predetermined code amount, the coding means performs the lossless encoding processing by the irreversible coding processing. It is characterized by switching to encoding processing.

【0018】本発明の画像処理装置のその他の特徴とす
るところは、画像データをビットプレーン符号化により
階層符号化処理する機能を有する画像処理装置であっ
て、上記画像データを文字領域と写真画像領域とに領域
分割し、上記文字領域と写真画像領域とを識別する像域
フラグに応じて、上記文字領域ときには可逆符号化処理
を行い、上記写真画像領域ときには非可逆符号化処理を
行うことを特徴とする。
Another feature of the image processing apparatus of the present invention is an image processing apparatus having a function of performing hierarchical coding processing on image data by bit plane coding, wherein the image data is converted into a character area and a photographic image. In accordance with an image area flag for identifying the character area and the photographic image area, lossless encoding processing is performed in the character area, and irreversible encoding processing is performed in the photographic image area. Features.

【0019】本発明の画像処理方法は、画像データをビ
ットプレーン符号化により階層符号化処理する画像処理
方法であって、上記画像データの階層符号化処理後の符
号量を複数の階層でそれぞれ算出し、算出した上記階層
符号化処理後の符号量に基づいて、階層数に応じた階層
符号化処理後の符号量を予測し、その結果に応じて上記
画像データを階層符号化処理することを特徴とする。
An image processing method according to the present invention is an image processing method for hierarchically encoding image data by bit-plane encoding, wherein the amount of code of the image data after the hierarchical encoding is calculated for each of a plurality of layers. Then, based on the calculated code amount after the hierarchical coding process, predicting the code amount after the hierarchical coding process according to the number of layers, and performing the hierarchical coding process on the image data according to the result. Features.

【0020】本発明の画像処理方法の他の特徴とすると
ころは、階層数と上記階層符号化処理後の符号量との関
係を示す近似曲線を求めて、上記階層数に応じた階層符
号化処理後の符号量を予測することを特徴とする。
Another feature of the image processing method of the present invention is that an approximate curve indicating the relationship between the number of layers and the code amount after the above-mentioned layer coding processing is obtained, and the hierarchical coding according to the number of layers is performed. It is characterized in that the code amount after processing is predicted.

【0021】本発明の画像処理方法のその他の特徴とす
るところは、上記画像データに係る画像と複数の階層で
の階層符号化処理後の画像データに係るそれぞれの復号
画像との最小二乗誤差を算出し、算出した最小二乗誤差
に基づいて、目標とする画質を得るための上記画像デー
タの階層符号化処理後の符号量を予測することを特徴と
する。
Another feature of the image processing method of the present invention is that the least square error between the image related to the above image data and each decoded image related to the image data after the hierarchical coding processing in a plurality of layers is calculated. Based on the calculated least square error, a code amount of the image data after the hierarchical coding process for obtaining a target image quality is predicted.

【0022】本発明の画像処理方法のその他の特徴とす
るところは、階層数と上記最小二乗誤差との関係を示す
近似曲線を求めて、目標とする画質を得るための上記画
像データの階層符号化処理後の符号量を予測することを
特徴とする。
Another feature of the image processing method of the present invention is that an approximate curve indicating the relationship between the number of layers and the least square error is obtained, and the hierarchical code of the image data for obtaining a target image quality. It is characterized by predicting the code amount after the conversion processing.

【0023】本発明の画像処理方法のその他の特徴とす
るところは、上記画像データを複数のタイル画像に分割
しそれぞれ階層符号化処理することを特徴とする。本発
明の画像処理方法のその他の特徴とするところは、上記
画像データを領域分割し上記領域分割した画像データの
属性を示す像域フラグに応じて階層符号化処理すること
を特徴とする。
Another feature of the image processing method of the present invention is that the image data is divided into a plurality of tile images, and each of the image data is hierarchically encoded. Another feature of the image processing method of the present invention is that the image data is divided into regions, and hierarchical coding is performed according to an image region flag indicating an attribute of the region-divided image data.

【0024】本発明の画像処理方法のその他の特徴とす
るところは、上記像域フラグは、文字領域と写真画像領
域とを識別するフラグであり、上記像域フラグが文字領
域のフラグのときには可逆符号化処理を行い、上記像域
フラグが写真画像領域のフラグのときには非可逆符号化
処理を行うことを特徴とする。
Another feature of the image processing method of the present invention is that the image area flag is a flag for identifying a character area and a photographic image area, and is reversible when the image area flag is a character area flag. An encoding process is performed, and when the image area flag is a flag of a photographic image area, an irreversible encoding process is performed.

【0025】本発明の画像処理方法のその他の特徴とす
るところは、上記階層符号化処理後の符号量が所定の符
号量より大きいと予測されたときには、上記可逆符号化
処理を上記非可逆符号化処理に切り換えることを特徴と
する。
Another feature of the image processing method of the present invention is that, when the code amount after the hierarchical coding process is predicted to be larger than a predetermined code amount, the lossless coding process is performed by the irreversible code. It is characterized by switching to a conversion process.

【0026】本発明の画像処理方法のその他の特徴とす
るところは、画像データをビットプレーン符号化により
階層符号化処理する画像処理方法であって、上記画像デ
ータを文字領域と写真画像領域とに領域分割し、上記文
字領域と写真画像領域とを識別する像域フラグに応じ
て、上記文字領域ときには可逆符号化処理を行い、上記
写真画像領域ときには非可逆符号化処理を行うことを特
徴とする。
Another feature of the image processing method of the present invention is an image processing method for hierarchically encoding image data by bit plane encoding, wherein the image data is divided into a character area and a photographic image area. According to an image area flag that divides the area and identifies the character area and the photographic image area, lossless encoding processing is performed in the case of the character area, and irreversible encoding processing is performed in the case of the photographic image area. .

【0027】本発明のコンピュータ読み取り可能な記録
媒体は、上記各手段としてコンピュータを機能させるた
めのプログラムを記録したことを特徴とする。また、本
発明のコンピュータ読み取り可能な記録媒体の他の特徴
とするところは、上記画像処理方法の手順をコンピュー
タに実行させるためのプログラムを記録したことを特徴
とする。
The computer-readable recording medium of the present invention is characterized in that a program for causing a computer to function as each of the above means is recorded. Another feature of the computer-readable recording medium of the present invention is that a program for causing a computer to execute the procedure of the image processing method is recorded.

【0028】上記のように構成した本発明によれば、画
像データの階層符号化処理後の符号量が複数の階層でそ
れぞれ算出され、算出された上記階層符号化処理後の符
号量から、階層数に応じた階層符号化処理後の符号量が
予測され、その結果に応じて階層符号化処理が行われる
ので、1回の符号化処理で符号化処理後の符号化量を容
易に制御できるようになる。
According to the present invention configured as described above, the code amount after hierarchical coding of image data is calculated for each of a plurality of layers, and the calculated code amount after hierarchical coding is calculated based on the calculated code amount after hierarchical coding. Since the code amount after the hierarchical coding process according to the number is predicted and the hierarchical coding process is performed according to the result, the coding amount after the coding process can be easily controlled by one coding process. Become like

【0029】また、算出された階層符号化処理後の符号
量から、階層数と階層符号化処理後の符号量との関係を
示す近似曲線を求めて上記階層数に応じた階層符号化処
理後の符号量を予測するようにしたときには、その予測
結果に応じて、上記画像データを符号化する階層数を制
御することができるようになる。また、上記画像データ
に係る画像と複数の階層での階層符号化処理後の画像デ
ータに係るそれぞれの復号画像との最小二乗誤差を算出
し、算出した最小二乗誤差に基づいて、上記階層数と上
記最小二乗誤差との関係を示す近似曲線を求め、目標と
する画質を得るための上記画像データの階層符号化処理
後の符号量を予測するようにしたときには、上記画像デ
ータに係る画像と階層符号化処理後の画像データに係る
復号画像との最小二乗誤差が所定の値より小さくなる符
号量で上記画像データを符号化することができるように
なる。
Also, an approximate curve indicating the relationship between the number of layers and the amount of code after the hierarchical coding process is obtained from the calculated code amount after the hierarchical coding process, and the approximate curve indicating the relationship between the number of layers and the hierarchical coding process When the code amount is predicted, the number of layers for encoding the image data can be controlled according to the prediction result. Further, a least square error between the image related to the image data and each decoded image related to the image data after the hierarchical coding process in a plurality of layers is calculated, and the number of layers is calculated based on the calculated least square error. When an approximate curve indicating the relationship with the least square error is obtained and the code amount of the image data after the hierarchical coding process for obtaining the target image quality is to be predicted, the image related to the image data and the hierarchical It becomes possible to encode the image data with a code amount such that the least square error between the encoded image data and the decoded image is smaller than a predetermined value.

【0030】また、上記画像データを領域分割し、その
属性を示す像域フラグに応じて符号化処理するようにし
たときには、画質劣化が目立つ領域と画質劣化が目立ち
にくい領域とを区別して、それぞれ適切な符号量となる
ように符号化処理することができるようになる。また、
符号化後の符号量が所定の符号量より大きいと予測され
たときに、可逆符号化処理を非可逆符号化処理に切り換
えるようにしたときには、符号量を少なくすることがで
きるようになり、また、同様に、画像データを符号化す
る階層数を制御するようにしたときも符号量を少なくす
ることができるようになる。
When the image data is divided into regions and the encoding process is performed in accordance with an image area flag indicating the attribute of the image data, a region where image quality deterioration is conspicuous and a region where image quality deterioration is not conspicuous are distinguished from each other. Encoding processing can be performed so as to have an appropriate code amount. Also,
When the code amount after encoding is predicted to be larger than the predetermined code amount, when the lossless encoding process is switched to the irreversible encoding process, the code amount can be reduced, and Similarly, when the number of hierarchies for encoding image data is controlled, the code amount can be reduced.

【0031】[0031]

【発明の実施の形態】以下、本発明の一実施形態を図面
に基づいて説明する。 (第1の実施形態)図1は、第1の実施形態による画像
処理装置を適用したデジタル画像機器の一構成例を示す
ブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings. (First Embodiment) FIG. 1 is a block diagram showing a configuration example of a digital image device to which an image processing device according to a first embodiment is applied.

【0032】図1において、101は画像入力部、10
2は圧縮用ブロックバッファ、103は像域フラグ符号
化部、104はカラー画像符号化部、105は圧縮メモ
リ、106は大容量の外部記憶装置、107は復号メモ
リ、108は像域フラグ復号部、109はカラー画像復
号部、110は展開用ブロックバッファである。また1
11はインタフェースであり、図示しない画像生成部、
例えば、プリンター等と接続されている。
In FIG. 1, reference numeral 101 denotes an image input unit;
2 is a block buffer for compression, 103 is an image area flag encoding unit, 104 is a color image encoding unit, 105 is a compression memory, 106 is a large-capacity external storage device, 107 is a decoding memory, and 108 is an image area flag decoding unit , 109 are a color image decoding unit, and 110 is a development block buffer. Also one
Reference numeral 11 denotes an interface (not shown),
For example, it is connected to a printer or the like.

【0033】112はイメージスキャナ部であり、符号
化する画像の画像データS1および像域フラグS2を供
給するためのものである。また、113はページ記述言
語レンダリング部(以下、「PDLレンダリング部」と
称す。)であり、符号化する画像の画像データS3およ
び像域フラグS4を供給するためのものである。
Reference numeral 112 denotes an image scanner for supplying image data S1 and an image area flag S2 of an image to be encoded. Reference numeral 113 denotes a page description language rendering unit (hereinafter, referred to as a "PDL rendering unit") for supplying image data S3 and an image area flag S4 of an image to be encoded.

【0034】画像入力部101には、上記イメージスキ
ャナ部112およびPDLレンダリング部113から供
給された画像信号S1、S3および像域フラグS2、S
4が、セレクタ114により切り換え信号S5に応じて
選択的に供給される。例えば、デジタル複写機の場合に
は、イメージスキャナ部112から供給される画像デー
タS1および像域フラグS2がセレクタ114により選
択され、プリンターの場合にはPDLレンダリング部1
13から供給される画像データS3および像域フラグS
4がセレクタ114により選択され画像入力部101に
供給される。
The image input unit 101 receives the image signals S1, S3 and the image area flags S2, S supplied from the image scanner unit 112 and the PDL rendering unit 113.
4 is selectively supplied by the selector 114 in accordance with the switching signal S5. For example, in the case of a digital copying machine, the image data S1 and the image area flag S2 supplied from the image scanner unit 112 are selected by the selector 114, and in the case of a printer, the PDL rendering unit 1 is selected.
13 and the image area flag S
4 is selected by the selector 114 and supplied to the image input unit 101.

【0035】画像入力部101は、セレクタ114によ
り選択され供給された画像データおよび像域フラグを圧
縮ブロックバッファ102に供給する。圧縮ブロックバ
ッファ102は、供給された画像データおよび像域フラ
グを所定の大きさM×M画素毎のタイル画像に分割す
る。ここで、像域フラグは各画素につけられるものであ
るが、本実施形態では後述するように8×8画素のブロ
ック毎に離散コサイン変換(以下、「DCT」と称
す。)を用いた符号化処理を行うので上記8×8画素の
ブロック毎で代表する像域フラグを用いる。
The image input unit 101 supplies the image data and the image area flag selected and supplied by the selector 114 to the compression block buffer 102. The compression block buffer 102 divides the supplied image data and the image area flag into tile images each having a predetermined size of M × M pixels. Here, the image area flag is attached to each pixel. In the present embodiment, as described later, encoding using discrete cosine transform (hereinafter referred to as “DCT”) is performed for each block of 8 × 8 pixels. Since the processing is performed, an image area flag that is representative for each block of 8 × 8 pixels is used.

【0036】上記圧縮ブロックバッファ102によりM
×M画素毎に分割されたタイル画像が、カラー画像符号
化部104および像域フラグ符号化部103に供給され
る。そして、カラー画像符号化部104においてカラー
画像情報の符号化であるDCT符号化(JPEG)が施
され、像域フラグ符号化部103において像域フラグ情
報の符号化であるランレングス符号化が施される。
The compression block buffer 102
The tile image divided for each × M pixels is supplied to the color image encoding unit 104 and the image area flag encoding unit 103. The color image encoding unit 104 performs DCT encoding (JPEG), which is encoding of color image information, and the image region flag encoding unit 103 performs run-length encoding, which is encoding of image region flag information. Is done.

【0037】このとき、像域フラグ符号化部103は、
供給された像域フラグおよび後述する監視部115から
の指示に応じて、カラー画像情報を符号化する際の符号
化パラメータをカラー画像符号化部104に指示する。
上記カラー画像符号化部104は、上記指示に従って符
号化パラメータを切り換え、符号化処理を行う。なお、
本実施形態では上記符号化パラメータは、階層符号化の
レベル数である。像域フラグ符号化部103およびカラ
ー画像符号化部104により符号化処理された符号化デ
ータは、圧縮メモリ105を介して外部記憶装置106
に記憶される。
At this time, the image area flag encoding unit 103
In accordance with the supplied image area flag and an instruction from the monitoring unit 115, which will be described later, an instruction is made to the color image encoding unit 104 for encoding parameters for encoding the color image information.
The color image encoding unit 104 switches the encoding parameters according to the instruction and performs an encoding process. In addition,
In the present embodiment, the encoding parameter is the number of levels of hierarchical encoding. Encoded data encoded by the image area flag encoding unit 103 and the color image encoding unit 104 is transmitted to the external storage device 106 via the compression memory 105.
Is stored.

【0038】また、上記外部記憶装置106に記憶され
た符号化データを復号するときには、像域フラグ復号部
108は、復号メモリ107を介して供給される符号化
データの像域フラグ情報を復号処理する。上記像域フラ
グ復号部108にて復号化された像域フラグの復号結果
に従って、カラー画像復号部109は、復号化パラメー
タを切り換えて上記復号メモリ107を介して供給され
る符号化データのカラー画像情報を復号処理する。そし
て、復号処理を施した画像データを展開用ラインバッフ
ァ110に供給することで符号化データが復号される。
なお、本実施形態では、上記復号化パラメータは、階層
符号化のレベル数である。
When decoding the encoded data stored in the external storage device 106, the image area flag decoding unit 108 decodes the image area flag information of the encoded data supplied via the decoding memory 107. I do. In accordance with the decoding result of the image area flag decoded by the image area flag decoding unit 108, the color image decoding unit 109 switches the decoding parameter to switch the color parameter of the encoded data supplied through the decoding memory 107. Decrypt the information. Then, the encoded data is decoded by supplying the decoded image data to the expansion line buffer 110.
In the present embodiment, the decoding parameter is the number of levels of hierarchical coding.

【0039】また、115は監視部であり、像域フラグ
符号化部103およびカラー画像符号化部104により
符号化処理され圧縮メモリ105に供給される符号化デ
ータの符号量を監視する。そして、予め設定した符号量
を超えると予測された場合には、監視部125は、像域
フラグを高圧縮領域に変更して像域フラグ符号化部10
3に供給し、上記像域フラグ符号化部103はカラー画
像符号化部104に高圧縮符号化するように指示する。
これにより、カラー画像符号化部104における階層符
号化の階層レベルの制御を行う。
Reference numeral 115 denotes a monitor, which monitors the code amount of the coded data which is coded by the image area flag coder 103 and the color image coder 104 and supplied to the compression memory 105. Then, when it is predicted that the code amount exceeds the preset code amount, the monitoring unit 125 changes the image area flag to the high compression area and changes the image area flag to the image area flag encoding unit 10.
3, the image area flag encoding unit 103 instructs the color image encoding unit 104 to perform high compression encoding.
In this way, the color image coding unit 104 controls the layer level of the layer coding.

【0040】図2は、図1に示したカラー画像符号化部
104およびカラー画像復号部109の処理を説明する
ための図である。図2において、S21は図示しない画
像入力部から供給された画像信号であり、カラー信号の
場合は、赤(R)、緑(G)、青(B)の3色、それぞ
れ256階調の信号である。
FIG. 2 is a diagram for explaining the processing of the color image encoding unit 104 and the color image decoding unit 109 shown in FIG. In FIG. 2, S21 is an image signal supplied from an image input unit (not shown), and in the case of a color signal, a signal of three colors of red (R), green (G), and blue (B), each having 256 gradations It is.

【0041】104は図1に示したカラー画像符号化部
であり、色変換部201、離散コサイン変換部(以下、
「DCT部」と称す。)202、ビットプレーン階層符
号化部203、セレクタ204を含み構成される。
Reference numeral 104 denotes the color image encoding unit shown in FIG.
It is referred to as “DCT unit”. ) 202, a bit plane layer coding unit 203 and a selector 204.

【0042】色変換部201は、供給された画像信号
(RGB信号)S21を輝度色差信号(YCbCr信
号)に変換する。DCT部202は、上記色変換部20
1により供給される輝度色差信号に対して、それぞれ空
間周波数変換(DCT変換)を行う。ビットプレーン階
層符号化部203は、上記DCT部202によりDCT
変換された信号にビットプレーン階層符号化処理を施
し、セレクタ204に供給する。セレクタ204は、タ
イル属性判別部210により制御されメモリ215に記
憶する階層符号化データ量を制御するためのものであ
る。
The color converter 201 converts the supplied image signal (RGB signal) S21 into a luminance / color difference signal (YCbCr signal). The DCT unit 202 is a part of the color converter 20
1 is subjected to spatial frequency transform (DCT transform) for each of the luminance and chrominance signals supplied. The bit plane layer coding unit 203 performs DCT by the DCT unit 202.
The converted signal is subjected to a bit-plane hierarchical encoding process and supplied to the selector 204. The selector 204 is controlled by the tile attribute determining unit 210 and controls the amount of hierarchically encoded data stored in the memory 215.

【0043】メモリ205は、ビットプレーン階層符号
化部203により符号化処理された階層符号化データを
記憶する。このメモリ205は、図1に示した圧縮メモ
リ105、外部記憶装置106および復号メモリ107
に相当する。
The memory 205 stores the hierarchically encoded data that has been encoded by the bit plane hierarchical encoding unit 203. The memory 205 includes the compression memory 105, the external storage device 106, and the decoding memory 107 shown in FIG.
Is equivalent to

【0044】109は図1に示したカラー画像復号部で
あり、ビットプレーン階層復号部206、逆離散コサイ
ン変換部(以下、「IDCT部」と称す。)207、色
変換部208を含み構成される。
Reference numeral 109 denotes the color image decoding unit shown in FIG. 1, which includes a bit plane hierarchy decoding unit 206, an inverse discrete cosine transform unit (hereinafter, referred to as an "IDCT unit") 207, and a color conversion unit 208. You.

【0045】ビットプレーン階層復号部206は、メモ
リ205に記憶されている階層符号化データに対してビ
ットプレーン階層復号処理を施す。IDCT部207
は、上記ビットプレーン階層復号部206により復号処
理された信号に、逆DCT変換を行い、輝度色差信号に
戻す。色変換部208は、上記IDCT部209から供
給される輝度色差信号を画像信号(RGB信号)S22
に変換し出力する。
The bit plane hierarchical decoding unit 206 performs a bit plane hierarchical decoding process on the hierarchically encoded data stored in the memory 205. IDCT unit 207
Performs an inverse DCT transform on the signal decoded by the bit plane hierarchical decoding unit 206 to return to a luminance / chrominance signal. The color conversion unit 208 converts the luminance / color difference signal supplied from the IDCT unit 209 into an image signal (RGB signal) S22.
And output.

【0046】115は、図1に示した監視部であり、符
号量監視部209およびタイル属性判別部210を含み
構成される。符号量監視部209は、ビットプレーン階
層符号化部203により符号化処理されセレクタ204
を介してメモリ205に記憶される階層符号化データ量
を監視する。その監視結果に基づいて、符号量監視部2
09は、タイル属性判別部210を介してセレクタ20
4を適宜制御し、メモリ205に記憶される階層符号化
データ量を制御する。
The monitoring unit 115 shown in FIG. 1 includes the code amount monitoring unit 209 and the tile attribute determination unit 210. The code amount monitoring unit 209 performs the encoding process by the bit plane layer encoding unit 203 and the selector 204.
Monitor the amount of hierarchically encoded data stored in the memory 205 via the. Based on the monitoring result, the code amount monitoring unit 2
09 is the selector 20 via the tile attribute determination unit 210.
4 is appropriately controlled to control the amount of hierarchically encoded data stored in the memory 205.

【0047】このとき、タイル属性判別部210は、メ
モリ205に記憶する符号化データに係るタイル画像
が、図3に示すように高い階層数まで残す(低い圧縮率
で符号化する)タイル画像か低い階層数まで削減する
(高い圧縮率で符号化する)タイル画像かを判別して、
メモリ205に記憶する階層符号化データ量を制御す
る。なお、上記タイル属性判定部210は、図1に示す
監視部115にあるとしたが、監視部115でなく像域
フラグ復号部108にあってもよい。
At this time, the tile attribute discriminating unit 210 determines whether the tile image related to the encoded data stored in the memory 205 is a tile image that remains up to a high hierarchical level (encodes at a low compression rate) as shown in FIG. Determine whether the tile image is reduced to a lower number of layers (encoded with a higher compression rate),
The amount of hierarchically encoded data stored in the memory 205 is controlled. Although the tile attribute determination unit 210 is provided in the monitoring unit 115 shown in FIG. 1, the tile attribute determination unit 210 may be provided in the image area flag decoding unit 108 instead of the monitoring unit 115.

【0048】図3は、32×32画素からなるタイル画
像において、階層符号化の階層レベルを切り換える方法
を説明するための図である。図3において、タイル画像
G1〜G5およびG8(白タイル)は、低い階層数まで
の階層符号化を用いるタイル画像を示し、タイル画像G
6、G7、G9〜G16(網掛けタイル)は、高い階層
数までの階層符号化を用いるタイル画像を示している。
この画像を符号化する際、図2に示したタイル属性判別
部210は、符号化処理により発生した符号量に応じ
て、低い階層数のタイル画像G1〜G5およびG8の上
記階層を優先して削除するようにセレクタ204を制御
して、メモリ205に記憶する符号量を削減していく。
FIG. 3 is a diagram for explaining a method of switching the hierarchical level of hierarchical coding in a tile image composed of 32 × 32 pixels. In FIG. 3, tile images G1 to G5 and G8 (white tiles) indicate tile images using hierarchical coding up to a low hierarchical number, and the tile images G
6, G7, G9 to G16 (shaded tiles) indicate tile images using hierarchical coding up to a high hierarchical number.
When encoding this image, the tile attribute determination unit 210 illustrated in FIG. 2 gives priority to the above-described layers of the tile images G1 to G5 and G8 with a low number of layers according to the code amount generated by the encoding process. The selector 204 is controlled so as to delete it, and the amount of code stored in the memory 205 is reduced.

【0049】図4は、図2に示した符号量監視部209
およびタイル属性判別部210の動作を実現するための
機能ブロック図である。図4において、401はDCT
部であり、図2に示したDCT部202であっても良い
し、それとは別に設けたDCT部であっても良い。40
2a、402bは逆量子化部、403a、403bはI
DCT部、404a、404bは平均最小二乗誤差(M
SE)計算部、405a、405bは可変長符号量計算
部、406は判定部である。S41は目標画質指示信
号、S42は目標符号量指示信号であり、図示しない設
定部から入力される。S43は画像信号、S44は階層
レベル指示信号である。
FIG. 4 shows the code amount monitoring unit 209 shown in FIG.
5 is a functional block diagram for realizing the operation of a tile attribute determination unit 210. FIG. 4, reference numeral 401 denotes a DCT
The DCT unit may be the DCT unit 202 shown in FIG. 2 or a DCT unit provided separately therefrom. 40
2a and 402b are inverse quantizers, 403a and 403b are I
The DCT units 404a and 404b provide a mean least square error (M
SE) calculation units, 405a and 405b are variable length code amount calculation units, and 406 is a determination unit. S41 is a target image quality instruction signal, and S42 is a target code amount instruction signal, which is input from a setting unit (not shown). S43 is an image signal, and S44 is a hierarchical level instruction signal.

【0050】ここで、図4において、階層レベルAは、
階層レベルBより高い階層レベルである。例えば、階層
レベルAは、DCT係数の下位4ビットを省略したも
の、すなわち図示しない線形量子化1/16に相当し、
階層レベルBは、DCT係数の下位1ビットを省略した
もの、すなわち図示しない線形量子化1/2に相当す
る。
Here, in FIG. 4, the hierarchy level A is
This is a hierarchy level higher than the hierarchy level B. For example, the hierarchical level A corresponds to a DCT coefficient in which the lower 4 bits are omitted, that is, linear quantization 1/16 (not shown).
The hierarchical level B corresponds to a DCT coefficient in which the lower one bit is omitted, that is, linear quantization 1/2 (not shown).

【0051】DCT部402は、供給された画像信号S
42をDCT変換および量子化し、その結果得られたD
CT係数を出力する。このとき、DCT部402は、D
CT係数の下位4ビットを除いて、すなわち階層レベル
AでのDCT係数を逆量子化部402a、可変長符号量
計算部405aに出力し、逆量子化部402b、可変長
符号量計算部405bにはDCT係数の下位1ビットを
除いて、すなわち階層レベルBでのDCT係数を出力す
る。
The DCT unit 402 receives the supplied image signal S
42 is DCT transformed and quantized, and the resulting D
Output CT coefficients. At this time, the DCT unit 402
Except for the lower 4 bits of the CT coefficient, that is, the DCT coefficient at the hierarchical level A is output to the inverse quantization unit 402a and the variable length code amount calculation unit 405a, and the inverse quantization unit 402b and the variable length code amount calculation unit 405b output the DCT coefficient. Outputs the DCT coefficient excluding the lower one bit of the DCT coefficient, that is, the DCT coefficient at the hierarchical level B.

【0052】次に、可変長符号量計算部405a、40
5bは、DCT部402から供給されたDCT係数に基
づいて、それぞれの階層レベルでの符号量を算出する。
また、逆量子化部402a、402bに供給されたDC
T係数は、逆量子化部402a、402bでそれぞれ逆
量子化され、さらにIDCT部403a、403bでそ
れぞれ逆DCT変換が施されることで復号される。ID
CT部403a、403bで復号された復号画像は、平
均最小二乗誤差(MSE)計算部404a、404bに
供給され、平均最小二乗誤差計算部404a、404b
で復号画像と画像信号S42に係る原画像との差分の平
均最小二乗誤差(MSE)がそれぞれ階層レベルA、B
に対して算出される。
Next, the variable length code amount calculation units 405a, 40
5b calculates the code amount at each hierarchical level based on the DCT coefficient supplied from the DCT section 402.
Also, the DC supplied to the inverse quantization units 402a and 402b
The T coefficient is inversely quantized by the inverse quantizers 402a and 402b, respectively, and further subjected to inverse DCT transform by the IDCT units 403a and 403b to be decoded. ID
The decoded images decoded by the CT units 403a and 403b are supplied to mean least square error (MSE) calculation units 404a and 404b, and the mean least square error calculation units 404a and 404b
And the mean least square error (MSE) of the difference between the decoded image and the original image related to the image signal S42 is the hierarchical level A or B, respectively.
Is calculated for

【0053】判定部406は、上記可変長符号量計算部
405a、405bにより算出された階層レベルA、B
での符号量と、上記平均最小二乗誤差(MSE)計算部
404a、404bにより算出された平均最小二乗誤差
(MSE)とから後述する図5、図6に示すような曲線
を得て、目標画質指示信号S41あるいは目標符号量指
示信号S42に応じた階層レベル決定し出力する。これ
により、すべての階層レベルにおいて、符号量および復
号画像と原画像との差分の平均最小二乗誤差(MSE)
を求めることなく、少ない演算処理で適切な階層レベル
を決定することができる。
The determining unit 406 determines the hierarchical levels A and B calculated by the variable length code amount calculating units 405a and 405b.
, And the mean least square error (MSE) calculated by the above-mentioned mean least square error (MSE) calculation units 404a and 404b, a curve as shown in FIGS. The layer level is determined and output according to the instruction signal S41 or the target code amount instruction signal S42. Thus, at all hierarchical levels, the code amount and the mean least square error (MSE) of the difference between the decoded image and the original image are obtained.
, It is possible to determine an appropriate hierarchical level with a small amount of arithmetic processing.

【0054】図5は、符号量と、復号画像と原画像との
差分の平均最小二乗誤差(MSE)との関係の一例を示
す図である。図5において、横軸は符号量であり、縦軸
は平均最小二乗誤差である。501は階層レベルAでの
符号量と平均最小二乗誤差(MSE)に対応する点であ
り、502は階層レベルBでの符号量と平均最小二乗誤
差(MSE)に対応する点である。この2点のデータか
ら、図4に示した判定部406は、所定の近似曲線のパ
ラメータを算出することで符号量と平均最小二乗誤差
(MSE)との関係を示す曲線が得られる。そして、目
標画質指示信号S41に指示された目標とする画質か
ら、必要符号量を求めることができる。また、発生符号
量から、画質を予想することもができる。
FIG. 5 is a diagram showing an example of the relationship between the code amount and the mean least square error (MSE) of the difference between the decoded image and the original image. In FIG. 5, the horizontal axis is the code amount, and the vertical axis is the mean least square error. Reference numeral 501 denotes a point corresponding to the code amount at the hierarchical level A and the mean least square error (MSE), and reference numeral 502 denotes a point corresponding to the code amount at the hierarchical level B and the mean least square error (MSE). From these two points of data, the determination unit 406 shown in FIG. 4 calculates a parameter of a predetermined approximate curve to obtain a curve indicating the relationship between the code amount and the mean least square error (MSE). Then, the required code amount can be obtained from the target image quality indicated by the target image quality instruction signal S41. Further, the image quality can be estimated from the generated code amount.

【0055】図6は、階層レベルと符号量との関係の一
例を示す図である。図6において、横軸は階層レベルで
あり、縦軸は符号量である。601は階層レベルAでの
符号量を表す点であり、602は階層レベルBでの符号
量を表す点である。この2点のデータから、図4に示し
た判定部406は、所定の近似曲線のパラメータを算出
することで階層レベルと符号量との関係を示す曲線を得
る。これにより、目標符号量指示信号により指示された
目標とする符号量に応じた階層レベルを予測する。
FIG. 6 is a diagram showing an example of the relationship between the hierarchy level and the code amount. In FIG. 6, the horizontal axis is the hierarchical level, and the vertical axis is the code amount. Reference numeral 601 indicates a code amount at the hierarchical level A, and reference numeral 602 indicates a code amount at the hierarchical level B. From these two points of data, the determination unit 406 shown in FIG. 4 calculates a parameter of a predetermined approximate curve to obtain a curve indicating the relationship between the hierarchical level and the code amount. Thereby, the hierarchical level according to the target code amount indicated by the target code amount instruction signal is predicted.

【0056】図7は、上述した図4の判定部406にお
いて、図5、図6に示す曲線からタイル画像を階層符号
化する際の階層レベルを決定する処理を説明するための
ブロック図である。図7において、701は符号量モニ
ター部、702は第1の目標画質設定部、703は第2
の目標画質設定部、704は目標符号量設定部、705
は階層レベル決定部である。ここで、上記第1の目標画
質設定部702は画像全体の画質を設定するためのもの
であり、上記第2の目標画質設定部703、目標符号量
設定部704および階層レベル決定部705はそれぞれ
タイル画像を対象とするものである。なお、上記第1お
よび第2の目標画質設定部702、703に設定される
値は図4に示した目標画質指示信号S41により設定さ
れ、目標符号量設定部704に設定される値は目標符号
量指示信号S42により設定される。
FIG. 7 is a block diagram for explaining the process of determining the hierarchical level when the tile image is hierarchically encoded from the curves shown in FIG. 5 and FIG. . 7, reference numeral 701 denotes a code amount monitoring unit, 702 denotes a first target image quality setting unit, and 703 denotes a second target image quality setting unit.
704 is a target image quality setting unit, and 705 is a target code amount setting unit.
Is a hierarchy level determination unit. Here, the first target image quality setting unit 702 is for setting the image quality of the entire image, and the second target image quality setting unit 703, the target code amount setting unit 704, and the hierarchy level determination unit 705 are respectively This is for a tile image. The values set in the first and second target image quality setting units 702 and 703 are set by the target image quality instruction signal S41 shown in FIG. 4, and the value set in the target code amount setting unit 704 is the target code. It is set by the quantity indication signal S42.

【0057】符号量モニター部701により、符号量を
モニターしながら目標符号量をあわせる場合には、タイ
ル毎の目標符号量を決めて目標符号量設定部704にそ
れぞれ設定し、階層レベル決定部705によりタイル毎
の階層レベルをそれぞれ決定する。一方、符号量モニタ
ー部701により符号量を監視している際、例えば符号
量が予め設定した符号量を超えると予測された場合に
は、第1の目標画質設定部702に新たな目標画質を設
定する。そして、第2の目標画質設定部703において
タイル毎の像域フラグにより高画質領域(高い階層まで
の残すタイル)であるか、低画質領域(低い階層のタイ
ル)であるかの判定を行い、その判定結果に基づいて目
標符号量設定部704にタイル毎の目標符号量を設定す
ることにより、階層レベル決定部605でタイル毎の階
層レベルを決定する。
When the target code amount is adjusted while monitoring the code amount by the code amount monitoring unit 701, the target code amount for each tile is determined and set in the target code amount setting unit 704, and the hierarchy level determination unit 705. Determines the hierarchy level for each tile. On the other hand, when the code amount is monitored by the code amount monitor unit 701, for example, when it is predicted that the code amount exceeds a preset code amount, the new target image quality is set to the first target image quality setting unit 702. Set. Then, the second target image quality setting unit 703 determines whether the image is a high image quality area (tiles to be left up to a high level) or a low image quality area (tiles of a low level) based on an image area flag for each tile. By setting the target code amount for each tile in the target code amount setting unit 704 based on the determination result, the layer level determination unit 605 determines the layer level for each tile.

【0058】図8は、階層レベルの一例を説明するため
の図である。図8において、81がDCT係数の最下位
ビット(LSB)のビットプレーンであり、82がDC
T係数の下位2ビット目のビットプレーンである。8
3、84、85、86、87はそれぞれDCT係数の下
位3、4、5、6、7ビット目のビットプレーンであ
り、88はDCT係数の最上位ビット(MSB)のビッ
トプレーンである。
FIG. 8 is a diagram for explaining an example of a hierarchical level. 8, reference numeral 81 denotes a bit plane of the least significant bit (LSB) of the DCT coefficient, and reference numeral 82 denotes a DC plane.
This is the second lower-order bit plane of the T coefficient. 8
Reference numerals 3, 84, 85, 86, and 87 are bit planes of the third, fourth, fifth, sixth, and seventh bits of the DCT coefficient, respectively, and reference numeral 88 is a bit plane of the most significant bit (MSB) of the DCT coefficient.

【0059】階層レベル1のデータは、DCT係数の係
数値の下位4ビットを除く部分の符号化データ、すなわ
ちビットプレーン88、87、86、85であり、この
データを送ることにより実現する。そして、階層レベル
2は、次のビットプレーン84の符号化データを送る。
同様に、階層レベル3は、その次のビットプレーン83
の符号化データを送り、階層レベル4は、ビットプレー
ン82の符号化データを送る。
The data at the hierarchical level 1 is the coded data of the part except the lower 4 bits of the coefficient value of the DCT coefficient, that is, bit planes 88, 87, 86, and 85, and is realized by sending this data. Then, the layer level 2 sends the encoded data of the next bit plane 84.
Similarly, hierarchy level 3 is the next bit plane 83
, And the hierarchical level 4 sends the coded data of the bit plane 82.

【0060】最終段階の階層レベル5の最下位ビット
(LSB)のビットプレーン81を送ると、DCT係数
値すべてを送ることができ、可逆変換が可能な可逆DC
Tである場合には、最終段階の階層レベル5で、画像の
可逆性が実現できる。このように、DCT係数をビット
プレーンごとに符号化することにより階層符号化を実現
する。
When the bit plane 81 of the least significant bit (LSB) of the hierarchical level 5 at the final stage is transmitted, all the DCT coefficient values can be transmitted, and a reversible DC capable of reversible transformation is transmitted.
In the case of T, reversibility of the image can be realized at the hierarchical level 5 in the final stage. In this way, hierarchical coding is realized by coding the DCT coefficients for each bit plane.

【0061】図9は、階層符号化の一例を示す図であ
り、符号量制御前のタイル画像および符号量制御後のタ
イル画像と階層レベルとを示している。図9(1)は、
符号量制御前のタイル画像と階層レベルとを示し、すべ
てのタイル画像が5階層を有している。図9(2)は、
符号量制御後のタイル画像と階層レベルとを示し、符号
量制御の結果、3、4、5階層を有するタイル画像が混
在している。
FIG. 9 is a diagram showing an example of hierarchical coding, showing a tile image before code amount control, a tile image after code amount control, and a hierarchical level. FIG. 9 (1)
The tile image and the hierarchy level before code amount control are shown, and all the tile images have five layers. FIG. 9 (2)
The tile image after code amount control and the hierarchical level are shown. As a result of the code amount control, tile images having 3, 4, and 5 layers are mixed.

【0062】なお、本実施形態では、図1に示したカラ
ー画像符号化104においての符号化処理は、可逆DC
T変換を用いても良いし、非可逆DCT変換でも良い
が、上述したようにすべての階層レベルのビットプレー
ンを送ることにより、可逆DCT変換を用いた場合に
は、画像を忠実に復号することができる。以下に、可逆
DCT変換について説明する。
In the present embodiment, the encoding process in the color image encoding 104 shown in FIG.
The T-transform or the irreversible DCT transform may be used. However, by transmitting the bit planes at all hierarchical levels as described above, the image can be faithfully decoded when the reversible DCT transform is used. Can be. Hereinafter, the reversible DCT transform will be described.

【0063】図10は、可逆DCT方式を説明するため
の図である。図10に示すように、8点DCT変換は2
点変換と4点変換とに分解することができる。70a〜
70gは、係数a、−aを用いた2点変換であり、71
は係数b、cを用いた2点変換であり、72は4点変換
である。以下、2点変換および4点変換についてそれぞ
れ説明する。
FIG. 10 is a diagram for explaining the reversible DCT method. As shown in FIG. 10, the 8-point DCT transform is 2
It can be decomposed into point transformation and four-point transformation. 70a ~
70 g is a two-point conversion using coefficients a and -a,
Is a two-point conversion using coefficients b and c, and 72 is a four-point conversion. Hereinafter, the two-point conversion and the four-point conversion will be described.

【0064】図11は、2点可逆変換の例を示す図であ
る。図11において、1101〜1103、1107〜
1109は乗算器であり、1104〜1106は加算
器、1110〜1112は減算器である。乗算器110
1〜1103および加算器1104〜1106により2
点変換回路が構成される。 まず、加算器1104は、
入力された信号Xbを乗算器1101によりk0倍して四
捨五入した値(0.5を加えフロアー関数をとる)と入
力された信号Xaとの加算演算を行い、その結果である
信号θbuffを出力する。また、加算器1105は、上記
加算器1104から出力される信号θbuffを乗算器11
02によりk1倍して四捨五入した値と入力された信号
bとを加算し、加算結果であるθaを出力する。さら
に、加算器1106は、上記加算器1105から出力さ
れる信号θaを乗算器1103によりk2倍して四捨五入
した値と、上記加算器1104から出力される信号θ
buffとを加算し、加算結果である信号θbを出力する。
このようにして、入力された信号Xa、Xbから2点変換
を施した信号θa、θbが生成され出力される。
FIG. 11 is a diagram showing an example of two-point reversible conversion. In FIG. 11, 1101 to 1103, 1107 to
1109 is a multiplier, 1104 to 1106 are adders, and 1110 to 1112 are subtractors. Multiplier 110
1 to 1103 and 2 by adders 1104 to 1106
A point conversion circuit is configured. First, the adder 1104
Performs addition operation between the input signal X b a and k 0 times by the multiplier 1101 (taking the 0.5 added floor function) value rounded off with the input signal X a, the signal θ is the result Output buff . The adder 1105 outputs the signal θ buff output from the adder 1104 to the multiplier 11
02 by adding the k 1 factor and signals inputted to the value obtained by rounding off to X b, and outputs the a sum theta a. Further, the adder 1106 generates a value obtained by multiplying the signal θ a output from the adder 1105 by k 2 by the multiplier 1103 and rounding it, and the signal θ output from the adder 1104.
adding the buff, and outputs a signal theta b is the addition result.
In this manner, the input signal X a, X b signal subjected to the two-point conversion from theta a, theta b is generated and outputted.

【0065】また、乗算器1107〜1109および減
算器1110〜1112により2点逆変換回路が構成さ
れる。 まず、減算器1110は、信号θaを乗算器11
07によりk2倍して四捨五入した値を信号θbから減算
し、演算結果の信号θbuff'を出力する。また、減算器
1111は、上記減算器1110から出力される信号θ
buff'を乗算器1108によりk1倍して四捨五入した値
を信号θaから減算することにより信号Xbを出力する。
同様に、減算器1112は、上記減算器1111から出
力される信号Xbを乗算器1109によりk0倍して四捨
五入した値を、上記減算器1110から出力される信号
θbuff'から減算することにより信号Xaを出力する。上
述したように、2点変換および2点逆変換が行われる。
また、上述した2点変換と2点逆変換は、四捨五入と加
減演算とが対称に行われるので可逆性を有する。
Further, multipliers 1107 to 1109 and subtracters 1110 to 1112 constitute a two-point inversion circuit. First, the subtractor 1110 outputs the signal θ a to the multiplier 11
07 by subtracting the value obtained by rounding off to 2 times k from the signal theta b, and outputs a signal theta buff 'of the result. The subtractor 1111 outputs the signal θ output from the subtractor 1110.
and it outputs a signal X b by subtracting the value obtained by rounding off to 1 × k by the multiplier 1108 to buff 'from the signal theta a.
Similarly, the subtractor 1112 subtracts a value obtained by multiplying the signal Xb output from the subtractor 1111 by k 0 by the multiplier 1109 and rounding it off from the signal θ buff ′ output from the subtractor 1110. and it outputs a signal X a by. As described above, two-point conversion and two-point inverse conversion are performed.
The two-point transformation and the two-point inverse transformation described above have reversibility since rounding and addition / subtraction operations are performed symmetrically.

【0066】図12は、4点可逆変換の例を示す図であ
る。図12に示すように、入力信号Xa',Xb',Xc'
d'から4点変換を施した信号θa'、θb'、θc'、θd'
に変換する際に、係数c1,c2、…、c15を乗算し
て四捨五入した値を加算することにより4点変換が実現
される。また、上記4点変換を施す回路は、乗算して四
捨五入する乗算器と加算器とにより構成されるので、2
点変換と同様に、乗算器と減算器とから逆変換を施す回
路を構成することができ、4点可逆変換が実現できる。
FIG. 12 is a diagram showing an example of the four-point reversible conversion. As shown in FIG. 12, input signals Xa ' , Xb' , Xc ' ,
Signals θ a ′ , θ b ′ , θ c ′ , θ d ′ obtained by performing a four-point conversion from X d
, C15, multiplying by the coefficients c1, c2,..., C15 and adding up the rounded value realizes the four-point conversion. Further, since the circuit for performing the above four-point conversion is composed of a multiplier for multiplying and rounding off and an adder, 2
Similarly to the point conversion, a circuit for performing an inverse conversion from the multiplier and the subtractor can be configured, and a four-point reversible conversion can be realized.

【0067】上述した図11、図12における乗算係数
0、k1、k2、c1、c2、…、c15は、図10に
示した係数a、b、c、d、e、f、gから行列式の演
算で求めることができる。例えば、 係数a、−aの2
点変換に対する乗算係数k0、k1、k2はそれぞれ−
0.4142、0.70711、−0.41421とな
り、 係数b、cの2点変換に対する乗算係数k0
1、k2は、それぞれ−0.66818、0.9238
8、−0.66818となる。また、例えば、乗算係数
c1,c2、...、c15は、c1=−0.5941
7、c2=−4.02543、c3=−1.4351
3、c4=3.18456、c5=1.13324、c
6=0.69352、c7=0.21137、c8=
0.44133、c9=0.21138、c10=−
0.693512、c11=−1.13326、c12
=3.18454、c13=1.43517、c14=
−4.02545、c15=0.594169となる。
The multiplication coefficients k 0 , k 1 , k 2 , c 1 , c 2 ,..., C 15 in FIGS. 11 and 12 are the coefficients a, b, c, d, e, f, g shown in FIG. Can be obtained by the operation of the determinant. For example, coefficient a, -a 2
The multiplication coefficients k0, k1, and k2 for the point transformation are-
0.4142, 0.70711, -0.41421, and the multiplication coefficient k 0 for the two-point conversion of the coefficients b and c,
k 1, k 2, respectively -0.66818,0.9238
8, -0.66818. Further, for example, the multiplication coefficients c1, c2,. . . , C15, c1 = −0.5941
7, c2 = −4.025543, c3 = −1.4351
3, c4 = 3.18456, c5 = 1.133324, c
6 = 0.69352, c7 = 0.21137, c8 =
0.44133, c9 = 0.21138, c10 =-
0.693512, c11 = -1.13326, c12
= 3.18454, c13 = 1.43517, c14 =
-4.002545, c15 = 0.594169.

【0068】以上、詳しく説明したように本実施形態に
よれば、符号量監視部209内の可変長符号量計算部4
05a、405bで階層レベルAおよびBでの符号化処
理後の符号量をそれぞれ算出し、算出した符号化処理後
の符号量から判定部406は階層レベルと符号量との関
係を示す近似曲線を求める。そして、求めた近似曲線に
基づいて、目標とする符号量に応じた階層レベルを予測
決定し、それに基づいてカラー画像符号化部104は符
号化処理した符号化データを出力する。
As described above in detail, according to the present embodiment, the variable length code amount calculation unit 4 in the code amount monitoring unit 209
At steps 05a and 405b, the code amounts after the encoding processing at the hierarchical levels A and B are calculated, respectively. Based on the calculated code amounts after the encoding processing, the determination unit 406 calculates an approximate curve indicating the relationship between the hierarchical level and the code amount. Ask. Then, based on the obtained approximate curve, a hierarchical level corresponding to a target code amount is predicted and determined, and based on the prediction, the color image coding unit 104 outputs coded data that has been coded.

【0069】これにより、複数回の符号化処理を行うこ
となく、1回の符号化処理で符号化処理後の符号量が目
標とする符号量となる階層レベルを予測し決定すること
ができ、カラー画像符号化部104による符号化処理後
の符号量を制御することができる。また、2つの階層レ
ベルでの符号化処理後の符号量から上記近似曲線を求め
るようにしたので、少ない演算処理で各階層レベルでの
符号化処理後の符号量を予測し、適切な階層レベルを決
定することができる。
Thus, it is possible to predict and determine the hierarchical level at which the code amount after the encoding process becomes the target code amount in one encoding process without performing the encoding process a plurality of times. The code amount after the encoding process by the color image encoding unit 104 can be controlled. In addition, since the above-mentioned approximate curve is obtained from the code amount after the encoding process at the two hierarchical levels, the code amount after the encoding process at each hierarchical level is predicted with a small amount of arithmetic processing, and the appropriate hierarchical level is calculated. Can be determined.

【0070】また、本実施形態では、符号化処理する画
像データを所定の大きさを有する複数のタイル画像に分
割し、さらに上記タイル画像毎に階層符号化処理するよ
うにしたので、カラー画像符号化部104による符号化
処理後の符号量を精度良く制御することができる。
Further, in the present embodiment, the image data to be coded is divided into a plurality of tile images having a predetermined size, and the hierarchical coding process is performed for each tile image. It is possible to control the code amount after the encoding process by the encoding unit 104 with high accuracy.

【0071】また、本実施形態では、符号化処理する前
の画像データに係る画像と、階層レベルAおよびBでの
符号化処理を施した後、復号した画像データに係る画像
との平均最小二乗誤差を平均最小二乗誤差計算部404
a、404bにより算出し、算出した平均最小二乗誤差
から判定部406は符号量と平均最小二乗誤差との関係
を示す近似曲線を求める。その近似曲線に基づいて、目
標とする画質が得られる符号化処理後の符号化量を予測
するようにしたので、符号化処理前の画像データに係る
画像と符号化処理後に復号された画像データに係る画像
との誤差が所定の値より小さくなるように階層レベルを
制御して符号化処理ができる。
In the present embodiment, the mean least squares of the image related to the image data before the encoding process and the image related to the decoded image data after the encoding process at the hierarchical levels A and B are performed. The error is calculated by the mean least square error calculation unit 404
The determination unit 406 obtains an approximate curve indicating the relationship between the code amount and the average least square error from the calculated average least square error calculated using the values a and 404b. Based on the approximation curve, the encoding amount after the encoding process for obtaining the target image quality is predicted, so that the image related to the image data before the encoding process and the image data decoded after the encoding process The encoding process can be performed by controlling the hierarchical level so that the error from the image according to (1) is smaller than a predetermined value.

【0072】また、カラー画像符号化部104による符
号化処理後の符号量を階層レベルのみで制御するように
したので、標準方式との互換性を保つことができる。
Further, since the code amount after the encoding process by the color image encoding unit 104 is controlled only at the hierarchical level, compatibility with the standard system can be maintained.

【0073】(第2の実施形態)第2の実施形態は、第
1の実施形態では画像を所定の大きさのタイル画像に分
割しタイル画像の階層レベルを制御することにより符号
化量を制御していたものを、量子化ステップを制御する
ことで符号化量を制御するようにしたものである。な
お、第2の実施形態による画像処理装置を適用したデジ
タル画像機器の構成は図1に示したデジタル画像機器と
同じ構成なので省略する。ただし、第1の実施形態で
は、像域フラグに応じて切り換えられる符号化パラメー
タおよび復号化パラメータとして階層符号化のレベル数
を用いていたが、第2の実施形態では符号化パラメータ
および復号化パラメータとして量子化マトリックスを用
いるようにする。
(Second Embodiment) In the second embodiment, the encoding amount is controlled by dividing the image into tile images of a predetermined size and controlling the hierarchical level of the tile image in the first embodiment. In this case, the coding amount is controlled by controlling the quantization step. Note that the configuration of a digital imaging device to which the image processing device according to the second embodiment is applied is the same as that of the digital imaging device shown in FIG. However, in the first embodiment, the number of levels of the hierarchical coding is used as the coding parameter and the decoding parameter that are switched according to the image area flag. However, in the second embodiment, the coding parameter and the decoding parameter are used. Is used as the quantization matrix.

【0074】すなわち、第1の実施形態では、階層符号
化のレベル数を制御することによりカラー画像符号化部
104から発生する符号量の制御を行っていたが、第2
の実施形態では量子化ステップ数を制御することにより
カラー画像符号化部104から発生する符号量の制御を
行う。
That is, in the first embodiment, the amount of code generated from the color image coding unit 104 is controlled by controlling the number of levels of hierarchical coding.
In the embodiment, the number of quantization steps is controlled to control the amount of code generated from the color image coding unit 104.

【0075】図13は、第2の実施形態におけるカラー
画像符号化部104およびカラー画像復号部109の処
理を説明するための図である。なお、この図13におい
て、図2に示したブロックと同一の機能を有するブロッ
クには同一の符号を付し、重複する説明は省略する。ま
た、図2に示したブロックと同一ではないが対応する機
能を有するブロックには、同じ符号に’を付している。
FIG. 13 is a diagram for explaining the processing of the color image encoding unit 104 and the color image decoding unit 109 in the second embodiment. In FIG. 13, blocks having the same functions as the blocks shown in FIG. 2 are denoted by the same reference numerals, and redundant description will be omitted. In addition, blocks that are not the same as those illustrated in FIG. 2 but have corresponding functions are denoted by the same reference numerals.

【0076】図13において、202’は可逆離散コサ
イン変換部(以下、「可逆DCT部」と称す。)であ
り、供給された信号に対して、第1の実施形態の図10
〜図12において示したような可逆DCT変換を施す。
1301は量子化部であり、可逆DCT部202’から
供給されるDCT係数を量子化することによりデータ量
を削減する。1302は可変長符号化(VLC)部であ
り、上記量子化部1301から供給される量子化値に、
データの出現確率の偏りを利用したハフマン符号化処理
を施しデータ量をさらに削減する。
In FIG. 13, reference numeral 202 'denotes a reversible discrete cosine transform unit (hereinafter, referred to as a "reversible DCT unit").
~ Reversible DCT transformation as shown in FIG.
Reference numeral 1301 denotes a quantization unit that reduces the data amount by quantizing the DCT coefficient supplied from the reversible DCT unit 202 ′. Reference numeral 1302 denotes a variable-length coding (VLC) unit, and the quantization value supplied from the quantization unit 1301 is
A Huffman encoding process using the bias of the data appearance probability is performed to further reduce the data amount.

【0077】1303は可変長復号(VLD)部でハフ
マンデコードをする。1304は逆量子化部であり、上
記可変長復号部1303によりハフマンデコードされた
符号データに逆量子化処理を施しDCT係数値に戻す。
209’は符号量監視部であり、メモリ205に記憶さ
れる符号量を監視し、予め設定した符号量を超えると予
測された場合には、量子化部1301に対して、量子化
ステップの切り換えを指示する。
A variable length decoding (VLD) unit 1303 performs Huffman decoding. An inverse quantization unit 1304 performs an inverse quantization process on the code data Huffman-decoded by the variable length decoding unit 1303 and returns the code data to a DCT coefficient value.
A code amount monitoring unit 209 ′ monitors the code amount stored in the memory 205, and switches the quantization step to the quantization unit 1301 when it is predicted that the code amount exceeds a preset code amount. Instruct.

【0078】1305はブロック単位の像域フラグ符号
化部であり、像域フラグを符号化圧縮しメモリ215に
記憶する。また、1306はブロック単位の像域フラグ
復号部であり、復号結果により逆量子化処理のための量
子化マトリクスを切り換えるように逆量子化部1304
に指示する。
An image area flag encoding unit 1305 encodes and compresses the image area flag and stores it in the memory 215. Reference numeral 1306 denotes an image area flag decoding unit for each block, and an inverse quantization unit 1304 that switches a quantization matrix for inverse quantization processing according to the decoding result.
To instruct.

【0079】図14は、第2の実施形態での領域分割の
例を示す図である。図14に示すように符号化の対象と
する画像を文字領域とそれ以外の写真画像領域とに分割
する。例えば、PDLレンダリング部113から画像デ
ータおよび像域フラグが供給される場合には、可逆符号
化領域と非可逆符号化領域とを、それぞれ文字領域、写
真画像領域に対応させる。また、例えばイメージスキャ
ナ部112から画像データおよび像域フラグが供給され
る場合には、文字領域や写真画像領域などの領域判定結
果に応じて、量子化ステップの比較的小さい領域と、量
子化ステップの比較的大きい領域とに領域分割する。上
記領域分割に応じた像域フラグを供給することにより、
文字領域は量子化ステップを細かくし、写真画像領域は
量子化ステップを粗くするなどして符号量の制御を行
う。
FIG. 14 is a diagram showing an example of area division in the second embodiment. As shown in FIG. 14, an image to be encoded is divided into a character area and a photographic image area other than the character area. For example, when the image data and the image area flag are supplied from the PDL rendering unit 113, the lossless encoding area and the irreversible encoding area correspond to the character area and the photographic image area, respectively. Further, for example, when image data and an image area flag are supplied from the image scanner unit 112, an area having a relatively small quantization step and a quantization step Are divided into a relatively large area. By supplying an image area flag corresponding to the above area division,
The amount of code is controlled by making the quantization step fine in the character area and making the quantization step coarse in the photographic image area.

【0080】図15は、32×32画素からなるタイル
画像を、8×8のDCT変換のためのブロックG1’〜
G16’に分けて、量子化ステップの細かい領域G1’
〜G5’、G8’、量子化ステップの大きい領域G
6’、G7’、G9’〜G16’に領域分割したところ
を示した図である。図15において、領域G1’〜G
5’、G8’は比較的画質劣化が目立ちやすい部分であ
り、領域G6’、G7’、G9’〜G16’は画質劣化
が目立ちにくい部分である。
FIG. 15 is a block diagram showing a tile image composed of 32 × 32 pixels, which is converted into blocks G1 ′ to G8 ′ for 8 × 8 DCT conversion.
G16 ', and a region G1' with a fine quantization step
G5 ', G8', region G with a large quantization step
It is the figure which showed the area | region divided into 6 ', G7', and G9'-G16 '. In FIG. 15, regions G1 'to G1
5 'and G8' are portions where image quality deterioration is relatively conspicuous, and regions G6 ', G7' and G9 'to G16' are portions where image quality deterioration is not conspicuous.

【0081】図16は、8×8のDCT係数に対する基
本量子化マトリクスの一例を示す図である。図16
(1)は、非可逆量子化する領域に使われる量子化マト
リクスの一例である。図16(2)は、可逆量子化する
領域に使われる量子化マトリクスの成分がすべて1の量
子化マトリクスであり、このマトリクスを使うと量子化
が行われないことになる。
FIG. 16 is a diagram showing an example of a basic quantization matrix for 8 × 8 DCT coefficients. FIG.
(1) is an example of a quantization matrix used for an area to be irreversibly quantized. FIG. 16B shows a quantization matrix in which all components of the quantization matrix used for the region to be reversibly quantized are one, and if this matrix is used, no quantization is performed.

【0082】上述のように、符号化の対象とする画像を
比較的画質劣化の目立ちやすい領域と、画質劣化の目立
ちにくい領域とに分割して、その領域に応じた像域フラ
グを像域フラグ符号化部103に供給する。上記供給さ
れた像域フラグに基づいて、像域フラグ符号化部103
は、カラー画像符号化部104内の量子化部1301に
量子化ステップの切り換えを指示する。
As described above, an image to be coded is divided into a region in which image quality degradation is relatively conspicuous and a region in which image quality degradation is less conspicuous, and an image area flag corresponding to the area is divided into image area flags. This is supplied to the encoding unit 103. Based on the supplied image area flag, the image area flag encoding unit 103
Instructs the quantization unit 1301 in the color image encoding unit 104 to switch the quantization step.

【0083】上記指示に従い、量子化部1301は、画
質劣化が目立ちにくいため量子化ステップを粗くするよ
うに指示された場合には、図16(1)に示される非可
逆量子化処理するような量子化マトリックスを用いて入
力された信号を量子化しデータ量を削減する。一方、量
子化部1301は、画質劣化が目立ちやすいため量子化
ステップを細かくするように指示された場合には、図1
6(2)に示される可逆量子化処理するような量子化マ
トリックスを用いて入力された信号を量子化する。この
ようにして、メモリ205に記憶される符号量を制御す
る。
In accordance with the above-mentioned instruction, the quantization unit 1301 performs the irreversible quantization processing shown in FIG. The input signal is quantized using a quantization matrix to reduce the amount of data. On the other hand, when the quantization unit 1301 is instructed to reduce the quantization step because image quality degradation is conspicuous,
The input signal is quantized by using a quantization matrix such as a reversible quantization process shown in 6 (2). In this way, the code amount stored in the memory 205 is controlled.

【0084】また、上述のように符号化処理を施す際
に、符号量監視部209’は、メモリ205に記憶され
る符号量が予め設定した符号量を超えると予測した場合
には、量子化部1301に対して量子化ステップの切り
換えを指示する。量子化部1301は、上記指示に従っ
て、上述した非可逆量子化処理する量子化マトリックス
を用いた量子化ステップに変更したり、階層符号化処理
の場合には高階層(高解像度)のデータを削除するため
に階層レベルを制御したりして、符号量を削減しメモリ
205に記憶する符号量を制御する。
When performing the encoding process as described above, if the code amount monitoring unit 209 'predicts that the code amount stored in the memory 205 will exceed a preset code amount, the code amount monitoring unit 209' The unit 1301 is instructed to switch the quantization step. According to the instruction, the quantization unit 1301 changes the quantization step to a quantization step using the above-described quantization matrix for irreversible quantization processing, or deletes high-layer (high-resolution) data in the case of hierarchical encoding processing. For example, the code amount is reduced by controlling the hierarchical level, and the code amount stored in the memory 205 is controlled.

【0085】以上説明したように、第2の実施形態によ
れば、符号化処理する画像データを文字領域と写真画像
領域とに領域分割し、その画像領域の識別する像域フラ
グに応じて、符号化処理する画像が文字領域のときには
可逆符号化処理を施し、符号化処理する画像が写真画像
領域のときには非可逆符号化処理を施す。
As described above, according to the second embodiment, the image data to be encoded is divided into a character area and a photographic image area, and according to the image area flag for identifying the image area. When the image to be coded is a character area, lossless coding is performed, and when the image to be coded is a photographic image area, lossy coding is performed.

【0086】これにより、画質劣化が目立つ領域は符号
量を多くし、画質劣化が目立ちにくい領域は符号量を少
なくすることができ、画質劣化の目立つ度合いに応じた
適切な符号量で領域毎に符号化処理することができる。
As a result, it is possible to increase the code amount in the region where the image quality degradation is conspicuous, and to reduce the code amount in the region where the image quality degradation is not conspicuous. An encoding process can be performed.

【0087】また、符号量監視部209’により、符号
化後の符号量が所定の符号量より大きいと予測されたと
きに、量子化部1301で用いる量子化マトリクスを非
可逆量子化する量子化マトリックスに切り換えるように
したときには、可逆符号化処理を非可逆符号化処理に切
り換えることができ、符号化処理後の符号量を少なくす
ることができる。
When the code amount monitoring unit 209 ′ predicts that the code amount after encoding is larger than a predetermined code amount, the quantization unit 1301 irreversibly quantizes the quantization matrix used in the quantization unit 1301. When switching to the matrix, the lossless encoding process can be switched to the irreversible encoding process, and the code amount after the encoding process can be reduced.

【0088】また、同様に、階層符号化処理を用いる場
合には、符号量監視部209’により符号化後の符号量
が所定の符号量より大きいと予測されたときに、画像デ
ータを符号化する階層数を制御することにより、符号化
後の符号量を少なくすることができる。
Similarly, when the hierarchical coding process is used, when the code amount monitoring unit 209 'predicts that the code amount after the encoding is larger than the predetermined code amount, the image data is encoded. By controlling the number of layers to be encoded, the amount of code after encoding can be reduced.

【0089】(本発明の他の実施形態)上述した実施形
態の機能を実現するべく各種のデバイスを動作させるよ
うに、該各種デバイスと接続された装置あるいはシステ
ム内のコンピュータに対し、上記実施形態の機能を実現
するためのソフトウェアのプログラムコードを供給し、
そのシステムあるいは装置のコンピュータ(CPUある
いはMPU)に格納されたプログラムに従って上記各種
デバイスを動作させることによって実施したものも、本
発明の範疇に含まれる。
(Other Embodiments of the Present Invention) In order to operate various devices to realize the functions of the above-described embodiments, an apparatus connected to the various devices or a computer in a system is connected to the above-described embodiment. Supply the software program code to realize the functions of
The present invention also includes those implemented by operating the various devices according to a program stored in a computer (CPU or MPU) of the system or apparatus.

【0090】また、この場合、上記ソフトウェアのプロ
グラムコード自体が上述した実施形態の機能を実現する
ことになり、そのプログラムコード自体、およびそのプ
ログラムコードをコンピュータに供給するための手段、
例えばかかるプログラムコードを格納した記録媒体は本
発明を構成する。かかるプログラムコードを記憶する記
録媒体としては、例えばフロッピー(登録商標)ディス
ク、ハードディスク、光ディスク、光磁気ディスク、C
D−ROM、磁気テープ、不揮発性のメモリカード、R
OM等を用いることができる。
In this case, the program code of the software implements the functions of the above-described embodiment, and the program code itself and means for supplying the program code to a computer are provided.
For example, a recording medium storing such a program code constitutes the present invention. As a recording medium for storing such a program code, for example, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, C
D-ROM, magnetic tape, nonvolatile memory card, R
OM or the like can be used.

【0091】また、コンピュータが供給されたプログラ
ムコードを実行することにより、上述の実施形態の機能
が実現されるだけでなく、そのプログラムコードがコン
ピュータにおいて稼働しているOS(オペレーティング
システム)あるいは他のアプリケーションソフト等と共
同して上述の実施形態の機能が実現される場合にもかか
るプログラムコードは本発明の実施形態に含まれること
は言うまでもない。
The computer executes the supplied program code, not only to realize the functions of the above-described embodiment, but also to execute the program code on an operating system (OS) or another operating system running on the computer. Needless to say, even when the functions of the above-described embodiments are realized in cooperation with application software and the like, such program codes are included in the embodiments of the present invention.

【0092】さらに、供給されたプログラムコードがコ
ンピュータの機能拡張ボードやコンピュータに接続され
た機能拡張ユニットに備わるメモリに格納された後、そ
のプログラムコードの指示に基づいてその機能拡張ボー
ドや機能拡張ユニットに備わるCPU等が実際の処理の
一部または全部を行い、その処理によって上述した実施
形態の機能が実現される場合にも本発明に含まれること
は言うまでもない。
Further, after the supplied program code is stored in a memory provided in a function expansion board of a computer or a function expansion unit connected to the computer, the function expansion board or the function expansion unit is specified based on the instruction of the program code. It is needless to say that the present invention also includes a case where the CPU or the like provided in the first embodiment performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0093】[0093]

【発明の効果】以上説明したように本発明によれば、画
像データの階層符号化処理後の符号量を複数の階層でそ
れぞれ算出し、算出した上記階層符号化処理後の符号量
から、階層数に応じた階層符号化処理後の符号量を予測
し、その結果に応じて階層符号化処理を行うので、複数
回の符号化処理を行ったり、符号化した画像データを復
号してさらに符号化したりする煩雑な処理を行うことな
く、1回の符号化処理で階層符号化処理後の符号化量を
容易に制御できる。
As described above, according to the present invention, the code amount after hierarchical coding of image data is calculated for each of a plurality of layers, and the calculated code amount after hierarchical coding is calculated based on the calculated code amount after hierarchical coding. Since the amount of code after the hierarchical encoding process according to the number is predicted and the hierarchical encoding process is performed according to the result, the encoding process is performed a plurality of times, or the encoded image data is decoded and further encoded. It is possible to easily control the encoding amount after the hierarchical encoding processing by one encoding processing without performing complicated processing such as conversion into a single layer.

【0094】また、算出した階層符号化処理後の符号量
から、階層数と階層符号化処理後の符号量との関係を示
す近似曲線を求めて上記階層数に応じた階層符号化処理
後の符号量を予測するようにしたときには、その予測結
果に応じて、上記画像データを符号化する階層数を制御
することにより、階層符号化処理後の符号量を制御する
ことができる。
Further, an approximate curve indicating the relationship between the number of layers and the code amount after the hierarchical coding process is obtained from the calculated code amount after the hierarchical coding process, and the approximated curve after the hierarchical coding process according to the number of layers is obtained. When the code amount is predicted, the code amount after the hierarchical coding process can be controlled by controlling the number of layers for coding the image data according to the prediction result.

【0095】また、上記画像データに係る画像と複数の
階層での階層符号化処理後の画像データに係るそれぞれ
の復号画像との最小二乗誤差を算出し、算出した最小二
乗誤差に基づいて、上記階層数と上記最小二乗誤差との
関係を示す近似曲線を求め、目標とする画質が得られる
階層符号化処理後の符号量を予測するようにしたときに
は、上記画像データに係る画像と階層符号化処理後の画
像データに係る復号画像との最小二乗誤差が所定の値よ
り小さくなるように符号化する階層数を制御して上記画
像データを符号化することができる。
Further, a least square error between the image related to the image data and the respective decoded images related to the image data after the hierarchical coding process in a plurality of layers is calculated, and based on the calculated least square error, When an approximate curve indicating the relationship between the number of layers and the least square error is obtained, and the amount of code after the hierarchical coding processing for obtaining a target image quality is predicted, the image related to the image data and the hierarchical coding The image data can be encoded by controlling the number of layers to be encoded so that the least square error of the processed image data with respect to the decoded image is smaller than a predetermined value.

【0096】また、上記画像データを領域分割し、その
属性を示す像域フラグに応じて符号化処理するようにし
たときには、画質劣化が目立つ領域と画質劣化が目立ち
にくい領域とを区別して、それぞれ適切な符号量となる
ように符号化処理することができる。
When the image data is divided into regions and the encoding process is performed in accordance with an image region flag indicating the attribute, regions where image quality deterioration is conspicuous and regions where image quality deterioration is not conspicuous are distinguished from each other. Encoding processing can be performed to obtain an appropriate code amount.

【0097】また、階層符号化処理後の符号量が所定の
符号量より大きいと予測されたときに、可逆符号化処理
を非可逆符号化処理に切り換えるようにしたときには、
符号量を少なくすることができる。また、同様に、階層
符号化処理後の符号量が所定の符号量より大きいと予測
されたときに、画像データを符号化する階層数を制御す
るようにしたときも、高階層すなわち高解像度のデータ
を除くことにより符号量を少なくすることができる。
When the code amount after the hierarchical coding process is predicted to be larger than the predetermined code amount, when the lossless coding process is switched to the irreversible coding process,
The code amount can be reduced. Similarly, when the code amount after the hierarchical encoding process is predicted to be larger than the predetermined code amount, the number of layers for encoding the image data is controlled. By removing the data, the code amount can be reduced.

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

【図1】第1の実施形態による画像処理装置を適用した
デジタル画像機器の一構成例を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration example of a digital imaging device to which an image processing device according to a first embodiment is applied.

【図2】カラー画像符号化部104およびカラー画像復
号部109の処理を説明するための図である。
FIG. 2 is a diagram for explaining processing of a color image encoding unit 104 and a color image decoding unit 109;

【図3】階層符号化の階層レベルを切り換える方法を説
明するための図である。
FIG. 3 is a diagram for explaining a method of switching a hierarchical level of hierarchical coding.

【図4】符号量監視部209およびタイル属性判別部2
10の動作を実現するための機能ブロック図である。
FIG. 4 shows a code amount monitoring unit 209 and a tile attribute determination unit 2
It is a functional block diagram for realizing operation | movement of No.10.

【図5】符号量と、復号画像と原画像との差分の平均最
小二乗誤差(MSE)との関係の一例を示す図である。
FIG. 5 is a diagram illustrating an example of a relationship between a code amount and a mean least square error (MSE) of a difference between a decoded image and an original image.

【図6】階層レベルと符号量との関係の一例を示す図で
ある。
FIG. 6 is a diagram illustrating an example of a relationship between a hierarchy level and a code amount.

【図7】タイル画像を階層符号化する際の階層レベルを
決定する処理を説明するためのブロック図である。
FIG. 7 is a block diagram for explaining a process of determining a hierarchical level when hierarchically encoding a tile image.

【図8】階層レベルの一例を説明するための図である。FIG. 8 is a diagram illustrating an example of a hierarchy level.

【図9】階層符号化の一例を示す図である。FIG. 9 is a diagram illustrating an example of hierarchical coding.

【図10】可逆DCT方式を説明するための図である。FIG. 10 is a diagram for explaining a reversible DCT method.

【図11】2点可逆変換の例を示す図である。FIG. 11 is a diagram illustrating an example of two-point reversible conversion.

【図12】4点可逆変換の例を示す図である。FIG. 12 is a diagram illustrating an example of four-point reversible conversion.

【図13】第2の実施形態におけるカラー画像符号化部
104およびカラー画像復号部109の処理を説明する
ための図である。
FIG. 13 is a diagram for describing processing of a color image encoding unit 104 and a color image decoding unit 109 according to the second embodiment.

【図14】第2の実施形態での領域分割の例を示す図で
ある。
FIG. 14 is a diagram illustrating an example of area division according to the second embodiment.

【図15】領域分割の他の一例を示す図である。FIG. 15 is a diagram showing another example of area division.

【図16】8×8のDCT係数に対する基本量子化マト
リクスの一例を示す図である。
FIG. 16 is a diagram illustrating an example of a basic quantization matrix for 8 × 8 DCT coefficients.

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

101 画像入力部 102 圧縮用ブロックバッファ 103 像域フラグ符号化部 104 カラー画像符号化部 105 圧縮メモリ 106 外部記憶装置 107 復号メモリ 108 像域フラグ復号部 109 カラー画像復号部 110 展開用ブロックバッファ 111 インタフェース 112 イメージスキャナ部 113 ページ記述言語レンダリング部 114 セレクタ 115 監視部 201 色変換部 202 離散コサイン変換部 203 ビットプレーン階層符号化部 204 セレクタ 205 メモリ 206 ビットプレーン階層復号部 207 逆離散コサイン変換部 208 色変換部 209 符号量監視部 210 タイル属性判別部 Reference Signs List 101 image input unit 102 compression block buffer 103 image area flag encoding unit 104 color image encoding unit 105 compression memory 106 external storage device 107 decoding memory 108 image area flag decoding unit 109 color image decoding unit 110 expansion block buffer 111 interface 112 image scanner unit 113 page description language rendering unit 114 selector 115 monitoring unit 201 color conversion unit 202 discrete cosine conversion unit 203 bit plane layer coding unit 204 selector 205 memory 206 bit plane layer decoding unit 207 inverse discrete cosine conversion unit 208 color conversion Unit 209 code amount monitoring unit 210 tile attribute determination unit

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK01 KK22 MA00 MA23 MA35 MA45 MC14 ME02 ME05 PP16 PP20 SS11 SS20 SS28 TA39 TA46 TA53 TC18 TD01 TD06 UA02 UA31 5C078 BA57 BA58 CA02 DA07 DB01 DB11 DB19  ────────────────────────────────────────────────── ─── Continued on the front page F term (reference) 5C059 KK01 KK22 MA00 MA23 MA35 MA45 MC14 ME02 ME05 PP16 PP20 SS11 SS20 SS28 TA39 TA46 TA53 TC18 TD01 TD06 UA02 UA31 5C078 BA57 BA58 CA02 DA07 DB01 DB11 DB19

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】 画像データをビットプレーン符号化によ
り階層符号化処理する機能を有する画像処理装置であっ
て、 上記画像データの階層符号化処理後の符号量を複数の階
層でそれぞれ算出する符号量算出手段と、 上記符号量算出手段により算出した符号量に基づいて、
階層数に応じた階層符号化処理後の符号量を予測する符
号量予測手段と、 上記符号量予測手段による予測結果に応じて、上記画像
データを階層符号化処理する符号化手段とを備えること
を特徴とする画像処理装置。
1. An image processing apparatus having a function of performing hierarchical coding processing of image data by bit-plane coding, the code amount calculating a code amount of the image data after the hierarchical coding processing in each of a plurality of layers. Calculating means, based on the code amount calculated by the code amount calculating means,
Code amount prediction means for predicting the code amount after hierarchical coding processing according to the number of layers, and coding means for performing hierarchical coding processing on the image data according to the prediction result by the code amount prediction means An image processing apparatus characterized by the above-mentioned.
【請求項2】 上記符号量予測手段は、上記符号量算出
手段により算出した符号量に基づいて、上記階層数と階
層符号化処理後の符号量との関係を示す近似曲線を求め
る第1の近似曲線演算手段を備え、 上記第1の近似曲線演算手段により求めた近似曲線に基
づいて、上記階層数に応じた階層符号化処理後の符号量
を予測することを特徴とする請求項1に記載の画像処理
装置。
2. The method according to claim 1, wherein the code amount predicting unit calculates an approximate curve indicating a relationship between the number of layers and the code amount after the hierarchical coding process based on the code amount calculated by the code amount calculating unit. 2. The apparatus according to claim 1, further comprising: an approximate curve calculation unit, wherein a code amount after the hierarchical encoding process according to the number of layers is predicted based on the approximate curve obtained by the first approximate curve arithmetic unit. 3. The image processing apparatus according to any one of the preceding claims.
【請求項3】 上記符号量予測手段は、上記画像データ
に係る画像と複数の階層での階層符号化処理後の画像デ
ータに係るそれぞれの復号画像との最小二乗誤差を算出
する誤差算出手段を備え、 上記誤差算出手段により算出した最小二乗誤差に基づい
て、目標とする画質を得るための上記画像データの階層
符号化処理後の符号量を予測することを特徴とする請求
項1または2に記載の画像処理装置。
3. The code amount predicting unit includes: an error calculating unit configured to calculate a least square error between an image related to the image data and each decoded image related to image data after hierarchical coding processing in a plurality of layers. 3. The method according to claim 1, further comprising: predicting a code amount of the image data after the hierarchical coding process for obtaining a target image quality, based on the least square error calculated by the error calculation unit. The image processing apparatus according to any one of the preceding claims.
【請求項4】 上記符号量予測手段は、上記誤差算出手
段により算出された最小二乗誤差に基づいて、上記階層
数と上記最小二乗誤差との関係を示す近似曲線を求める
第2の近似曲線演算手段を備え、 上記第2の近似曲線演算手段により求めた近似曲線に基
づいて、目標とする画質を得るための上記画像データの
階層符号化処理後の符号量を予測することを特徴とする
請求項3に記載の画像処理装置。
4. The second approximation curve calculation for obtaining an approximation curve indicating the relationship between the number of layers and the least square error based on the least square error calculated by the error calculation means. Means for predicting a code amount after hierarchical coding of the image data for obtaining a target image quality based on the approximate curve obtained by the second approximate curve calculation means. Item 4. The image processing device according to item 3.
【請求項5】 上記符号化手段は、上記画像データを複
数のタイル画像に分割しそれぞれ階層符号化処理するこ
とを特徴とする請求項1〜4の何れか1項に記載の画像
処理装置。
5. The image processing apparatus according to claim 1, wherein the encoding unit divides the image data into a plurality of tile images and performs a hierarchical encoding process on each of the plurality of tile images.
【請求項6】 上記符号化手段は、上記画像データを領
域分割し上記領域分割した画像データの属性を示す像域
フラグに応じて階層符号化処理することを特徴とする請
求項1〜5の何れか1項に記載の画像処理装置。
6. The image processing apparatus according to claim 1, wherein said encoding means performs a hierarchical encoding process in accordance with an image area flag indicating an attribute of the area-divided image data. The image processing device according to claim 1.
【請求項7】 上記像域フラグは、文字領域と写真画像
領域とを識別するフラグであり、上記符号化手段は、上
記像域フラグが文字領域のフラグのときには可逆符号化
処理を行い、上記像域フラグが写真画像領域のフラグの
ときには非可逆符号化処理を行うことを特徴とする請求
項6に記載の画像処理装置。
7. The image area flag is a flag for identifying a character area and a photographic image area, and the encoding means performs a lossless encoding process when the image area flag is a character area flag. 7. The image processing apparatus according to claim 6, wherein the irreversible encoding process is performed when the image area flag is a photographic image area flag.
【請求項8】 上記符号量予測手段による予測結果が所
定の符号量より大きいときには、上記符号化手段は、上
記可逆符号化処理を上記非可逆符号化処理に切り換える
ことを特徴とする請求項7に記載の画像処理装置。
8. The method according to claim 7, wherein when the prediction result by said code amount predicting means is larger than a predetermined code amount, said coding means switches said lossless encoding processing to said irreversible encoding processing. An image processing apparatus according to claim 1.
【請求項9】 画像データをビットプレーン符号化によ
り階層符号化処理する機能を有する画像処理装置であっ
て、 上記画像データを文字領域と写真画像領域とに領域分割
し、上記文字領域と写真画像領域とを識別する像域フラ
グに応じて、上記文字領域ときには可逆符号化処理を行
い、上記写真画像領域ときには非可逆符号化処理を行う
ことを特徴とする画像処理装置。
9. An image processing apparatus having a function of hierarchically encoding image data by bit-plane encoding, wherein the image data is divided into a character area and a photographic image area, An image processing apparatus according to claim 1, wherein a lossless encoding process is performed for the character region and an irreversible encoding process is performed for the photographic image region in accordance with an image area flag for identifying the area.
【請求項10】 画像データをビットプレーン符号化に
より階層符号化処理する画像処理方法であって、 上記画像データの階層符号化処理後の符号量を複数の階
層でそれぞれ算出し、算出した上記階層符号化処理後の
符号量に基づいて、階層数に応じた階層符号化処理後の
符号量を予測し、その結果に応じて上記画像データを階
層符号化処理することを特徴とする画像処理方法。
10. An image processing method for hierarchically encoding image data by bit-plane encoding, wherein a code amount of the image data after hierarchical encoding is calculated for each of a plurality of layers, and the calculated hierarchical level is calculated. An image processing method comprising: predicting a code amount after hierarchical coding processing according to the number of layers based on a code amount after coding processing, and performing hierarchical coding processing on the image data according to the result. .
【請求項11】 階層数と上記階層符号化処理後の符号
量との関係を示す近似曲線を求めて、上記階層数に応じ
た階層符号化処理後の符号量を予測することを特徴とす
る請求項10に記載の画像処理方法。
11. A method for determining an approximate curve indicating a relationship between the number of layers and the code amount after the hierarchical coding process, and predicting the code amount after the hierarchical coding process according to the number of layers. The image processing method according to claim 10.
【請求項12】 上記画像データに係る画像と複数の階
層での階層符号化処理後の画像データに係るそれぞれの
復号画像との最小二乗誤差を算出し、算出した最小二乗
誤差に基づいて、目標とする画質を得るための上記画像
データの階層符号化処理後の符号量を予測することを特
徴とする請求項10または11に記載の画像処理方法。
12. Calculating a least square error between the image related to the image data and each decoded image related to the image data after the hierarchical coding process in a plurality of layers, and calculating a target value based on the calculated least square error. The image processing method according to claim 10 or 11, wherein a code amount of the image data after the hierarchical coding process for obtaining the image quality is predicted.
【請求項13】 階層数と上記最小二乗誤差との関係を
示す近似曲線を求めて、目標とする画質を得るための上
記画像データの階層符号化処理後の符号量を予測するこ
とを特徴とする請求項12に記載の画像処理方法。
13. An image processing method comprising: obtaining an approximate curve indicating a relationship between the number of layers and the least square error, and predicting a code amount of the image data after the layer coding processing for obtaining a target image quality. 13. The image processing method according to claim 12, wherein:
【請求項14】 上記画像データを複数のタイル画像に
分割しそれぞれ階層符号化処理することを特徴とする請
求項10〜13の何れか1項に記載の画像処理方法。
14. The image processing method according to claim 10, wherein the image data is divided into a plurality of tile images, and each of the image data is subjected to hierarchical coding processing.
【請求項15】 上記画像データを領域分割し上記領域
分割した画像データの属性を示す像域フラグに応じて階
層符号化処理することを特徴とする請求項10〜14の
何れか1項に記載の画像処理方法。
15. The image processing apparatus according to claim 10, wherein the image data is divided into regions, and hierarchical coding is performed according to an image region flag indicating an attribute of the region-divided image data. Image processing method.
【請求項16】 上記像域フラグは、文字領域と写真画
像領域とを識別するフラグであり、上記像域フラグが文
字領域のフラグのときには可逆符号化処理を行い、上記
像域フラグが写真画像領域のフラグのときには非可逆符
号化処理を行うことを特徴とする請求項15に記載の画
像処理方法。
16. The image area flag is a flag for identifying a character area and a photographic image area. When the image area flag is a character area flag, lossless encoding processing is performed. 16. The image processing method according to claim 15, wherein irreversible encoding processing is performed when the flag of the area is set.
【請求項17】 上記階層符号化処理後の符号量が所定
の符号量より大きいと予測されたときには、上記可逆符
号化処理を上記非可逆符号化処理に切り換えることを特
徴とする請求項16に記載の画像処理方法。
17. The method according to claim 16, wherein when the code amount after the hierarchical coding process is predicted to be larger than a predetermined code amount, the lossless coding process is switched to the irreversible coding process. The image processing method described in the above.
【請求項18】 画像データをビットプレーン符号化に
より階層符号化処理する画像処理方法であって、 上記画像データを文字領域と写真画像領域とに領域分割
し、上記文字領域と写真画像領域とを識別する像域フラ
グに応じて、上記文字領域ときには可逆符号化処理を行
い、上記写真画像領域ときには非可逆符号化処理を行う
ことを特徴とする画像処理方法。
18. An image processing method for hierarchically encoding image data by bit-plane encoding, wherein the image data is divided into a character area and a photographic image area, and the character area and the photographic image area are separated from each other. An image processing method comprising: performing lossless encoding processing in the case of the character area and performing irreversible encoding processing in the case of the photographic image area according to an image area flag to be identified.
【請求項19】 請求項1〜9の何れか1項に記載の各
手段としてコンピュータを機能させるためのプログラム
を記録したことを特徴とするコンピュータ読み取り可能
な記録媒体。
19. A computer-readable recording medium on which a program for causing a computer to function as each of the means according to claim 1 is recorded.
【請求項20】 請求項10〜18の何れか1項に記載
の画像処理方法の処理手順をコンピュータに実行させる
ためのプログラムを記録したことを特徴とするコンピュ
ータ読み取り可能な記録媒体。
20. A computer-readable recording medium on which a program for causing a computer to execute the processing procedure of the image processing method according to claim 10 is recorded.
JP2000370573A 2000-12-05 2000-12-05 Picture processor, picture processing method, and recording medium Pending JP2002176560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000370573A JP2002176560A (en) 2000-12-05 2000-12-05 Picture processor, picture processing method, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000370573A JP2002176560A (en) 2000-12-05 2000-12-05 Picture processor, picture processing method, and recording medium

Publications (1)

Publication Number Publication Date
JP2002176560A true JP2002176560A (en) 2002-06-21

Family

ID=18840443

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000370573A Pending JP2002176560A (en) 2000-12-05 2000-12-05 Picture processor, picture processing method, and recording medium

Country Status (1)

Country Link
JP (1) JP2002176560A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022003810A (en) * 2017-09-25 2022-01-11 カシオ計算機株式会社 Image processing system, printing system, image processing method and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022003810A (en) * 2017-09-25 2022-01-11 カシオ計算機株式会社 Image processing system, printing system, image processing method and program
JP7314978B2 (en) 2017-09-25 2023-07-26 カシオ計算機株式会社 IMAGE PROCESSING APPARATUS, PRINTING SYSTEM, IMAGE PROCESSING METHOD AND PROGRAM

Similar Documents

Publication Publication Date Title
CA2295689C (en) Apparatus and method for object based rate control in a coding system
EP1322122B1 (en) Image predictive decoding method
US11172228B2 (en) Method for producing video coding and programme-product
US6798977B2 (en) Image data encoding and decoding using plural different encoding circuits
JP3356663B2 (en) Image encoding device, image encoding method, and recording medium recording image encoding program
JP4365957B2 (en) Image processing method and apparatus and storage medium
JP2002281444A (en) Method and device for processing image and storage medium
JP5469192B2 (en) Method for predicting coefficient in decoder, decoding method, video decoder
JP2000115782A (en) Coder, coding method and storage medium
JPH10336682A (en) Coder, its method and storage medium storing the method
US7177356B2 (en) Spatially transcoding a video stream
US6173080B1 (en) Prediction method for discrete cosine transform coefficient
JPH11187402A (en) Image compressor and image compensation method
JP2000138835A (en) Compression system for digital image
US6363113B1 (en) Methods and apparatus for context-based perceptual quantization
JP2005519543A (en) Method and system for layer video coding
JP5378939B2 (en) Image encoding method, image decoding method, image encoding device, image decoding device, and program
US6362753B1 (en) Video data encoder and method of encoding video data
KR100384327B1 (en) Method and apparatus for selecting a coding mode in a block-based coding system
JP2002176560A (en) Picture processor, picture processing method, and recording medium
JP2002232721A (en) Image coding apparatus and its method, and storage medium
US7623720B2 (en) Image processing apparatus and method
JP2002354266A (en) Image processor, image processing system, image processing method, recording medium, and program
WO2023138391A1 (en) Coefficient decoding method and apparatus, and image decoder and electronic device
JP2009260747A (en) Image encoding device, and control method thereof