JP2002077626A - Apparatus and method for image processing and recording medium - Google Patents

Apparatus and method for image processing and recording medium

Info

Publication number
JP2002077626A
JP2002077626A JP2000267390A JP2000267390A JP2002077626A JP 2002077626 A JP2002077626 A JP 2002077626A JP 2000267390 A JP2000267390 A JP 2000267390A JP 2000267390 A JP2000267390 A JP 2000267390A JP 2002077626 A JP2002077626 A JP 2002077626A
Authority
JP
Japan
Prior art keywords
image data
image
quantization
unit
quantizing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2000267390A
Other languages
Japanese (ja)
Inventor
Hideshi Osawa
秀史 大澤
Kenichi Ota
健一 太田
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 JP2000267390A priority Critical patent/JP2002077626A/en
Publication of JP2002077626A publication Critical patent/JP2002077626A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform a suitable encoding in response to kinds of images. SOLUTION: In an apparatus for image processing comprising a dividing means to divide image data into a plurality of blocks, a conversion means to subject the image data to a discrete cosine transform by the blocks and a quantizing means to quantize the transformed image data, if the image data is an image data which is obtained by rendering a page description language, the quantizing means selects quantization parameters for quantization based on an image area flag data attached to the image data, and if the image data is obtained by an image reader, the quantizing means selects the parameters to quantize the image data based on an encoding amount of the blocks which are previously quantized.

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 technique, and more particularly to an image coding technique corresponding to an image type.

【0002】[0002]

【従来の技術】従来、カラー静止画像の圧縮方式には、
離散コサイン変換を利用したJPEG方式や、Wavelet
変換を利用した方式が多く使われている。この種の符号
化方式では、基本的には、画像全体を均一処理するよう
にしているので、画像部分領域毎に、符号化方式を変更
する場合は、別途、領域を識別する像域フラグ情報が利
用される。
2. Description of the Related Art Conventionally, compression methods for color still images include:
JPEG method using discrete cosine transform, Wavelet
A method using conversion is often used. In this type of encoding system, basically, the entire image is uniformly processed. Therefore, when the encoding system is changed for each image partial region, image region flag information for identifying the region is separately provided. Is used.

【0003】像域を分けて符号化方式を変更する態様と
しては、例えば、文字領域と写真領域を領域分割し、画
質劣化が比較的目立ちにくい写真領域の量子化を粗く、
画質劣化が比較的目立ちやすい文字領域の量子化を細か
くし、また、自然画像部とコンピュータグラフィックス
部を領域分割し、画質劣化が比較的目立ちにくい自然画
像領域の量子化を粗く、画質劣化が比較的目立ちやすい
コンピュータグラフィックス領域の量子化を細かくする
という態様がある。
As a mode of changing the encoding method by dividing the image area, for example, a character area and a photographic area are divided into areas, and the quantization of the photographic area where the image quality deterioration is relatively inconspicuous is coarsened.
The quantization of character areas where image quality degradation is relatively conspicuous is finer. There is a mode in which quantization of a computer graphics area that is relatively conspicuous is made fine.

【0004】また、発生符号量のモニター値から予測さ
れる全体符号量が、目標符号量を超えてしまう場合に、
判定以降の量子化ステップを粗くするという態様があ
る。
When the total code amount predicted from the generated code amount monitor value exceeds the target code amount,
There is a mode in which the quantization step after the determination is made coarse.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、符号化
方式を変更するものであっても目的が異なるため、別々
に実装されることが多く両者の整合性がとれた方式には
なっていなかった。
However, even if the coding method is changed, the purpose is different, so that the coding method is often implemented separately, and the two methods are not consistent.

【0006】従って、本発明の主たる目的は、画像の種
類に応じて、適切な符号化を実行し得る画像処理装置、
画像処理方法及び記録媒体を提供することにある。
Accordingly, a main object of the present invention is to provide an image processing apparatus capable of executing appropriate encoding according to the type of an image,
An object of the present invention is to provide an image processing method and a recording medium.

【0007】[0007]

【課題を解決するための手段】本発明によれば、画像デ
ータを複数のブロックに分割する手段と、前記ブロック
毎に前記画像データを離散コサイン変換する手段と、離
散コサイン変換された前記画像データを量子化する量子
化手段と、を備え、前記量子化手段は、前記画像データ
が、ページ記述言語をレンダリングして得た画像データ
である場合には、当該画像データに付された像域フラグ
データに基づいて量子化パラメータを選択して量子化
し、前記画像データが、画像読取り装置によって得た画
像データである場合には、先に量子化された前記ブロッ
クの符号量に基づいて量子化パラメータを選択して量子
化することを特徴とする画像処理装置が提供される。
According to the present invention, means for dividing image data into a plurality of blocks, means for performing discrete cosine transform of the image data for each of the blocks, and means for performing discrete cosine transform of the image data When the image data is image data obtained by rendering a page description language, an image area flag attached to the image data. A quantization parameter is selected and quantized based on data, and when the image data is image data obtained by an image reading device, a quantization parameter is determined based on the code amount of the block that has been previously quantized. Is selected and quantized.

【0008】また、本発明によれば、画像データを複数
のブロックに分割する工程と、前記ブロック毎に前記画
像データを離散コサイン変換する工程と、離散コサイン
変換された前記画像データを量子化する量子化工程と、
を含み、前記量子化工程では、前記画像データが、ペー
ジ記述言語をレンダリングして得た画像データである場
合には、当該画像データに付された像域フラグデータに
基づいて量子化パラメータを選択して量子化し、前記画
像データが、画像読取り装置によって得た画像データで
ある場合には、先に量子化された前記ブロックの符号量
に基づいて量子化パラメータを選択して量子化すること
を特徴とする画像処理方法が提供される。
Further, according to the present invention, a step of dividing image data into a plurality of blocks, a step of discretely cosine transforming the image data for each block, and a step of quantizing the discrete cosine transformed image data A quantization step;
In the quantization step, when the image data is image data obtained by rendering a page description language, a quantization parameter is selected based on image area flag data attached to the image data. When the image data is image data obtained by an image reading device, a quantization parameter is selected and quantized based on the code amount of the block that has been previously quantized. A featured image processing method is provided.

【0009】また、本発明によれば、コンピュータを、
画像データを複数のブロックに分割する手段、前記ブロ
ック毎に前記画像データを離散コサイン変換する手段、
離散コサイン変換された前記画像データを量子化する量
子化手段、として機能させるプログラムを記録した記録
媒体であって、前記量子化手段は、前記画像データが、
ページ記述言語をレンダリングして得た画像データであ
る場合には、当該画像データに付された像域フラグデー
タに基づいて量子化パラメータを選択して量子化し、前
記画像データが、画像読取り装置によって得た画像デー
タである場合には、先に量子化された前記ブロックの符
号量に基づいて量子化パラメータを選択して量子化する
ことを特徴とする記録媒体が提供される。
According to the present invention, a computer is
Means for dividing the image data into a plurality of blocks, means for discrete cosine transform of the image data for each block,
Quantizing means for quantizing the discrete cosine-transformed image data, a recording medium recording a program to function as, the quantization means, the image data,
If the image data is obtained by rendering a page description language, a quantization parameter is selected and quantized based on the image area flag data attached to the image data, and the image data is processed by an image reading device. If the image data is obtained, a recording medium is provided, wherein a quantization parameter is selected and quantized based on the code amount of the block previously quantized.

【0010】[0010]

【発明の実施の形態】以下、本発明の好適な実施の形態
を、図面を参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the drawings.

【0011】図1は、本発明の一実施形態に係るデジタ
ル画像の画像処理装置のブロック図である。図1におい
て、100は画像入力部、101は圧縮用ブロックライ
ンバッファを含む符号化部、102は像域フラグデータ
の符号化部、103は量子化/符号化部、104は圧縮
メモリ、105は大容量な外部記憶装置、106は圧縮
メモリ、107は、逆量子化/復号化部、126は像域
フラグデータの復号化部、109は復号化部、110
は、出力部であり、図示しないプリンタ等の画像生成部
とのI/Fである。
FIG. 1 is a block diagram of an image processing apparatus for digital images according to an embodiment of the present invention. In FIG. 1, 100 is an image input unit, 101 is an encoding unit including a block line buffer for compression, 102 is an encoding unit for image area flag data, 103 is a quantization / encoding unit, 104 is a compression memory, and 105 is a compression memory. Large-capacity external storage device, 106 is a compression memory, 107 is an inverse quantization / decoding unit, 126 is a decoding unit for image area flag data, 109 is a decoding unit, 110
Is an output unit, which is an I / F with an image generation unit such as a printer (not shown).

【0012】入力部100には、セレクタ122を介し
て、スキャナ等の画像読取り装置であるイメージスキャ
ナ部120と、プリンタ等のページ記述言語のレンダリ
ング部121と、が接続されており、セレクタ122の
切換によりいずれかの画像データが入力される。セレク
タ122の切換は、外部からの切換信号1000によ
る。以下、イメージスキャナ部120からの画像データ
をスキャナ画像データと呼び、ページ記述言語のレンダ
リング部121からの画像データをPDL画像データと
呼ぶ。
The input unit 100 is connected via a selector 122 to an image scanner unit 120 which is an image reading device such as a scanner, and a page description language rendering unit 121 such as a printer. One of the image data is input by the switching. Switching of the selector 122 is based on a switching signal 1000 from the outside. Hereinafter, image data from the image scanner unit 120 is referred to as scanner image data, and image data from the page description language rendering unit 121 is referred to as PDL image data.

【0013】入力される画像データは、例えば、カラー
信号の場合は、赤(R),緑(G),青(B)の3色、
256階調の信号である。
The input image data is, for example, in the case of a color signal, three colors of red (R), green (G) and blue (B).
This is a signal of 256 gradations.

【0014】符号化部101は、画像をタイル分割し、
例えばMxM画素のタイル毎に、画像データに対して離
散コサイン変換(DCT)符号化(例えば、JPEGに
従う。)を実行する。また、像域フラグデータを分離し
て像域フラグデータの符号化/変換部102へ送出す
る。
The encoding unit 101 divides an image into tiles,
For example, discrete cosine transform (DCT) coding (for example, according to JPEG) is performed on image data for each tile of M × M pixels. Also, the image area flag data is separated and sent to the image area flag data encoding / conversion unit 102.

【0015】像域フラグデータの符号化/変換部102
は、画像データに付された像域フラグデータをランレン
グス符号化する他、一定の場合、像域フラグデータを変
更してから符号化する。
Image area flag data encoding / conversion section 102
Performs run-length encoding on the image area flag data added to the image data, and in a certain case, changes the image area flag data before encoding.

【0016】像域フラグデータは、各画素毎につけられ
るものであるが、本実施形態のように、8x8ブロック
毎にDCTで処理するものに対しては、ブロック毎に、
像域フラグデータを代表させて、用いられることにな
る。
The image area flag data is attached to each pixel. However, as in the present embodiment, for the data processed by DCT for each 8 × 8 block, for each block,
The image area flag data is used as a representative.

【0017】量子化/符号化部103は、符号化部10
1でDCT変換された画像データを量子化し、更に、ラ
ンレングス符号化等する。
The quantization / encoding unit 103 includes the encoding unit 10
In step 1, the DCT-transformed image data is quantized, and run-length encoding is performed.

【0018】逆量子化/復号化部107は、量子化/符
号化部103に対応する逆量子化及び復号化を行う。像
域フラグの復号化部126は、像域フラグの符号化/変
更部102における符号化に対応する復号化を行う。復
号化部109は、符号化部101に対応した逆DCT変
換等の復号化を行う。
The inverse quantization / decoding section 107 performs inverse quantization and decoding corresponding to the quantization / encoding section 103. The image area flag decoding unit 126 performs decoding corresponding to the encoding in the image area flag encoding / changing unit 102. Decoding section 109 performs decoding such as inverse DCT transform corresponding to encoding section 101.

【0019】切換信号1000は、セレクタ122及び
量子化/符号化部103に供給され、に画像データの選
択及び後で説明するよう量子化パラメータの選択の基準
とされる。
The switching signal 1000 is supplied to the selector 122 and the quantization / encoding unit 103, and is used as a reference for selecting image data and selecting a quantization parameter as described later.

【0020】図2は、図1に示した各ブロックの一部を
詳細に説明した図である。
FIG. 2 is a diagram illustrating a part of each block shown in FIG. 1 in detail.

【0021】符号化部101は、色変換部11とDCT
部12を含む色変換部11は、RGB信号を輝度色差信
号(YCbCr)に変換する。DCT部12は輝度色差
信号のそれぞれを空間周波数変換(離散コサイン変換:
DCT変換)を行う。
The encoding unit 101 has a color conversion unit 11 and a DCT
The color conversion unit 11 including the unit 12 converts the RGB signal into a luminance / color difference signal (YCbCr). The DCT unit 12 performs spatial frequency transform (discrete cosine transform:
DCT transformation).

【0022】量子化/符号化部103は、量子化部13
と、VLC部14と、量子化切換部203と、符号量の
監視部202と、を含む。
The quantization / encoding unit 103 includes a quantization unit 13
, A VLC unit 14, a quantization switching unit 203, and a code amount monitoring unit 202.

【0023】量子化部13は、DCT係数を量子化する
ことにより、データ量を削減する。
The quantization unit 13 reduces the data amount by quantizing the DCT coefficients.

【0024】VLC部14は、可変長符号化を実行し、
量子化値をハフマン符号化処理でデータをさらに削減す
る。
The VLC unit 14 performs variable length coding,
The data is further reduced by the Huffman encoding process of the quantized value.

【0025】符号量監視部202は、発生符号量を監視
し、これを量子化切り換え部203に伝える。
The code amount monitoring unit 202 monitors the generated code amount and transmits the generated code amount to the quantization switching unit 203.

【0026】量子化切換部203は、切換信号1000
に従って、以下の手順を実行する。
The quantization switching unit 203 outputs a switching signal 1000
Follow the steps below.

【0027】まず、切換信号1000により、処理する
画像データが、PDL画像データであると指示された場
合には、符号化部101からの像域フラグデータに応じ
て量子化パラメータを切替える。
First, when the switching signal 1000 indicates that the image data to be processed is PDL image data, the quantization parameter is switched according to the image area flag data from the encoding unit 101.

【0028】また、切換信号1000により、処理する
画像データが、スキャナ画像データであると指示された
場合には、レート制御により対応し、符号量の監視部2
02からの発生符号量に着目し、符号量が予め定めた設
定値をオーバすると予想される場合には、量子化部13
に対して、量子化パラメータの切り換えを指示する。
When the image data to be processed is designated as the scanner image data by the switching signal 1000, it is handled by the rate control, and the code amount monitoring unit 2
Focusing on the amount of generated code from S.02, if the amount of code is expected to exceed a predetermined set value, the quantization unit 13
Is instructed to switch the quantization parameter.

【0029】この指示により、その後のブロックの画像
データについての量子化が粗く行われる。なお、符号量
が設定値の範囲内に収まると予想されると元の量子化パ
ラメータに戻ることとなる。
According to this instruction, the quantization of the image data of the subsequent block is roughly performed. If the code amount is expected to be within the range of the set value, the quantization parameter returns to the original value.

【0030】更に、量子化切換部203は、像域フラグ
の符号化/変更部102に対して、量子化パラメータの
切換点を明らかにすべく、対応する像域フラグデータ
を、切替えた量子化パラメータに対応したデータに変更
するよう指示し、像域フラグの符号化/変更部102は
これを実行する。
Further, the quantization switching unit 203 sends the corresponding image area flag data to the image area flag encoding / change unit 102 in order to clarify the switching point of the quantization parameter. An instruction to change the data to the data corresponding to the parameter is issued, and the encoding / change unit 102 of the image area flag executes this.

【0031】本実施形態では、量子化パラメータの切り
換えは、例えば、量子化ステップとして2段階のものを
切替えて利用し、例えば、量子化ステップはQ1<Q2
の関係で、これにともない符号量は、L1>L2とな
り、画質は後者の方が悪くなる。
In this embodiment, the switching of the quantization parameter is performed, for example, by switching between two steps as the quantization step. For example, the quantization step is performed by Q1 <Q2.
Accordingly, the code amount is L1> L2, and the image quality is worse in the latter case.

【0032】図3は、領域分割の例で、PDL画像デー
タの場合は、量子化ステップの小さいところと大きいと
ころをそれぞれ、文字領域、写真領域に対応させること
ができる。また、スキャナー画像データの場合は、レー
ト制御前の、量子化ステップの比較的小さい領域と、レ
ート制御後の、量子化ステップの比較的大きい領域とに
領域分割されることを示している。
FIG. 3 shows an example of area division. In the case of PDL image data, small and large quantization steps can be made to correspond to a character area and a photograph area, respectively. Further, in the case of the scanner image data, it indicates that the region is divided into a region having a relatively small quantization step before rate control and a region having a relatively large quantization step after rate control.

【0033】図4は、32x32画素のタイル画像を、
8x8のDCTのためのブロックに分けて、量子化ステ
ップの細かい領域(白)、量子化ステップの大きい領域
(ハッチイング)に領域分割したところの説明図であ
る。各領域毎を識別するのが像域フラグデータの役目で
ある。
FIG. 4 shows a tile image of 32 × 32 pixels.
FIG. 4 is an explanatory diagram showing that the image is divided into blocks for 8 × 8 DCT and divided into a region having a fine quantization step (white) and a region having a large quantization step (hatching). It is the role of the image area flag data to identify each area.

【0034】図6は、8x8のDCT係数に対する量子
化パラメータとしての基本量子化マトリクスの例であ
る。変更後のマトリクスは、基本マトリクスの要素をQ
倍して、50で割った値とする。このQの値を変更する
ことにより、簡単に、量子化ステップの変更ができる。
FIG. 6 shows an example of a basic quantization matrix as a quantization parameter for 8 × 8 DCT coefficients. For the matrix after the change, the elements of the basic matrix are Q
Multiply and divide by 50. By changing the value of Q, the quantization step can be easily changed.

【0035】図5は、像域フラグの符号化/変更部10
2を構成するブロックのうち、特に、符号化に関するブ
ロックを示した図である。
FIG. 5 shows the encoding / changing unit 10 for the image area flag.
FIG. 3 is a diagram showing, in particular, blocks related to encoding among blocks constituting the second embodiment.

【0036】判定部310では、前値フラグデータと同
じかを判定し、同じ場合はRL部に、違う場合はLT部
にデータを送るように切り替える。
The determination unit 310 determines whether the data is the same as the previous value flag data, and switches the data to the RL unit if the data is the same, and switches to the LT unit if the data is different.

【0037】RL部311では、前値データと同じ場合
の回数を違うデータが出てくるまでカウントし、最後
に、繰返したデータを出力する。
The RL section 311 counts the number of times the same as the previous value data until different data comes out, and finally outputs the repeated data.

【0038】LT部312では、コードが前値と異なる
場合の数をカウントして、カウント数に対応する符号語
と、実際データの最小構成ビット数をカウント数分だけ
出力する。
The LT unit 312 counts the number of cases where the code is different from the previous value, and outputs the code word corresponding to the count and the minimum number of constituent bits of the actual data for the count.

【0039】合成部313では、RL部の出力データと
LT部の出力データを合成してコード315として出力
する。
The combining section 313 combines the output data of the RL section and the output data of the LT section and outputs the result as a code 315.

【0040】次に、逆量子化/復号化部107は、VL
D部16と、逆量子化部17と、量子化切換部207
と、を含む。
Next, the inverse quantization / decoding unit 107 determines whether the VL
D unit 16, inverse quantization unit 17, quantization switching unit 207
And

【0041】VLD部16は、VLC部14に対応した
可変長復号器(VLD)で、ハフマンデコードをする。
逆量子化部17は、量子化部13に対応した逆量子化を
行い、DCT係数を復元する。
The VLD unit 16 performs Huffman decoding by a variable length decoder (VLD) corresponding to the VLC unit 14.
The inverse quantization unit 17 performs inverse quantization corresponding to the quantization unit 13 and restores a DCT coefficient.

【0042】量子化切換部207は、像域フラグの符号
化/変換部102における符号化に対応した復号化を行
う像域フラグの復号化部126で復号された像域フラグ
データに基づいて、逆量子化のための量子化マトリクス
を切り替えて逆量子化を実行する。
The quantization switching unit 207 performs the decoding corresponding to the encoding in the encoding / conversion unit 102 of the image area flag based on the image area flag data decoded by the image area flag decoding unit 126. The inverse quantization is executed by switching the quantization matrix for the inverse quantization.

【0043】復号化部109は、DCT部12のDCT
変換に対応したDCT逆変換を行い、輝度色差信号に戻
すIDCT部18と、輝度色差信号をRGB信号に戻す
色変換部19と、を含む。
The decoding section 109 performs the DCT of the DCT section 12
It includes an IDCT unit 18 that performs DCT inverse transform corresponding to the transform and returns the luminance / color difference signal to a luminance / color difference signal, and a color conversion unit 19 that returns the luminance / color difference signal to an RGB signal.

【0044】以上、本発明の好適な実施の形態について
説明したが、PDL画像データの場合に、符号量の監視
部202及び量子化切換部203によるレートコントロ
ールの下、複数の画質コントロールのための量子化ステ
ップ群を切り替える構成をとることもできる。図7は、
符号量制御前の量子化ステップの小さい領域のパラメー
タQ1=50、量子化ステップの大きい領域のパラメー
タQ2=75を符号量制御後に量子化ステップの小さい
領域のパラメータQ1=60、量子化ステップの大きい
領域のパラメータQ2=100の様に変更することによ
り、符号量制御をしながら、かつ画質の領域毎の制御が
できることを示している。
Although the preferred embodiment of the present invention has been described above, in the case of PDL image data, a plurality of image quality controls for controlling a plurality of image quality under the rate control by the code amount monitoring unit 202 and the quantization switching unit 203 are described. A configuration in which the quantization step group is switched may be employed. FIG.
The parameter Q1 = 50 in the region where the quantization step is small before the code amount control, and the parameter Q2 = 75 in the region where the quantization step is large is the parameter Q1 = 60 in the region where the quantization step is small after the code amount control, and the quantization step is large. It is shown that by changing the area parameter Q2 to 100, it is possible to control the image quality for each area while controlling the code amount.

【0045】なお、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体(または記録媒体)を、システムあるい
は装置に供給し、そのシステムあるいは装置のコンピュ
ータ(またはCPUやMPU)が記憶媒体に格納された
プログラムコードを読み出し実行することによっても、
達成されることは言うまでもない。この場合、記憶媒体
から読み出されたプログラムコード自体が前述した実施
形態の機能を実現することになり、そのプログラムコー
ドを記憶した記憶媒体は本発明を構成することになる。
また、コンピュータが読み出したプログラムコードを実
行することにより、前述した実施形態の機能が実現され
るだけでなく、そのプログラムコードの指示に基づき、
コンピュータ上で稼働しているオペレーティングシステ
ム(OS)などが実際の処理の一部または全部を行い、
その処理によって前述した実施形態の機能が実現される
場合も含まれることは言うまでもない。
An object of the present invention is to supply a storage medium (or a recording medium) in which program codes of software for realizing the functions of the above-described embodiments are recorded to a system or an apparatus, and to provide a computer (a computer) of the system or the apparatus. Or a CPU or MPU) reads out and executes the program code stored in the storage medium,
Needless to say, this is achieved. In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
In addition, by the computer executing the readout program code, not only the functions of the above-described embodiments are realized, but also based on the instructions of the program code,
The operating system (OS) running on the computer performs part or all of the actual processing,
It goes without saying that a case where the functions of the above-described embodiments are realized by the processing is also included.

【0046】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張カー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書込まれた後、そのプログラムコードの指示
に基づき、その機能拡張カードや機能拡張ユニットに備
わるCPUなどが実際の処理の一部または全部を行い、
その処理によって前述した実施形態の機能が実現される
場合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into the memory provided in the function expansion card inserted into the computer or the function expansion unit connected to the computer, the program code is read based on the instruction of the program code. , The CPU provided in the function expansion card or the function expansion unit performs part or all of the actual processing,
It goes without saying that a case where the functions of the above-described embodiments are realized by the processing is also included.

【0047】[0047]

【発明の効果】以上説明したとおり、本発明によれば、
画像の種類に応じて、適切な符号化を実行することがで
きる。
As described above, according to the present invention,
Appropriate encoding can be performed according to the type of image.

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

【図1】本発明の一実施形態に係るデジタル画像の画像
処理装置のブロック図である。
FIG. 1 is a block diagram of a digital image processing apparatus according to an embodiment of the present invention.

【図2】図1に示した各ブロックの一部を詳細に説明し
た図である。
FIG. 2 is a diagram illustrating a part of each block shown in FIG. 1 in detail.

【図3】領域分割の例を示した図である。FIG. 3 is a diagram showing an example of area division.

【図4】32x32画素のタイル画像を、8x8のDC
Tのためのブロックに分けて、量子化ステップの細かい
領域(白)、量子化ステップの大きい領域(ハッチイン
グ)に領域分割したところの説明図である。
FIG. 4 shows a tile image of 32 × 32 pixels converted to an 8 × 8 DC
FIG. 9 is an explanatory diagram showing that the area is divided into blocks for T and divided into an area having a fine quantization step (white) and an area having a large quantization step (hatching).

【図5】像域フラグの符号化/変更部102を構成する
ブロックのうち、特に、符号化に関するブロックを示し
た図である。
FIG. 5 is a diagram showing, in particular, blocks related to encoding among blocks constituting an image area flag encoding / changing unit 102;

【図6】8x8のDCT係数に対する量子化パラメータ
としての基本量子化マトリクスの例である。
FIG. 6 is an example of a basic quantization matrix as a quantization parameter for an 8 × 8 DCT coefficient.

【図7】レートコントロール時の量子化マトリックスの
パラメータQの変化を示す図である。
FIG. 7 is a diagram illustrating a change in a parameter Q of a quantization matrix during rate control.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 画像データを複数のブロックに分割する
手段と、 前記ブロック毎に前記画像データを離散コサイン変換す
る手段と、 離散コサイン変換された前記画像データを量子化する量
子化手段と、を備え、 前記量子化手段は、 前記画像データが、ページ記述言語をレンダリングして
得た画像データである場合には、当該画像データに付さ
れた像域フラグデータに基づいて量子化パラメータを選
択して量子化し、 前記画像データが、画像読取り装置によって得た画像デ
ータである場合には、先に量子化された前記ブロックの
符号量に基づいて量子化パラメータを選択して量子化す
ることを特徴とする画像処理装置。
1. A means for dividing image data into a plurality of blocks; a means for discretely cosine transforming the image data for each block; and a quantizing means for quantizing the discrete cosine transformed image data. When the image data is image data obtained by rendering a page description language, the quantization unit selects a quantization parameter based on image area flag data attached to the image data. If the image data is image data obtained by an image reading device, the quantization is performed by selecting a quantization parameter based on the code amount of the block that has been previously quantized. Image processing apparatus.
【請求項2】 前記画像データが入力される手段と、 入力される前記画像データが、ページ記述言語をレンダ
リングして得た画像データであるか、画像読取り装置に
よって得た画像データであるか、を示す切換信号が入力
される手段と、を備え、 前記量子化手段は、前記切換信号に基づいて、前記画像
データが、ページ記述言語をレンダリングして得た画像
データであるか、画像読取り装置によって得た画像デー
タであるか、を区別することを特徴とする請求項1に記
載の画像処理装置。
Means for inputting the image data, whether the input image data is image data obtained by rendering a page description language, or image data obtained by an image reading device; Means for receiving a switching signal indicating that the image data is image data obtained by rendering a page description language based on the switching signal. The image processing apparatus according to claim 1, wherein the image processing apparatus determines whether the data is image data obtained by the method.
【請求項3】 前記量子化手段は、 前記画像データが、ページ記述言語をレンダリングして
得た画像データである場合には、更に、先に量子化され
た前記ブロックの符号量に基づいて量子化パラメータを
切り替えて量子化することを特徴とする請求項1に記載
の画像処理装置。
3. When the image data is image data obtained by rendering a page description language, the quantization unit further performs a quantization based on a code amount of the block that has been previously quantized. The image processing apparatus according to claim 1, wherein quantization is performed by switching a quantization parameter.
【請求項4】 前記画像データが、画像読取り装置によ
って得た画像データである場合には、 前記量子化において選択された量子化パラメータに基づ
いて、当該画像データに像域フラグデータを付すること
を特徴とする画像処理装置。
4. When the image data is image data obtained by an image reading device, attaching image area flag data to the image data based on a quantization parameter selected in the quantization. An image processing apparatus characterized by the above-mentioned.
【請求項5】 画像データを複数のブロックに分割する
工程と、 前記ブロック毎に前記画像データを離散コサイン変換す
る工程と、 離散コサイン変換された前記画像データを量子化する量
子化工程と、を含み、 前記量子化工程では、 前記画像データが、ページ記述言語をレンダリングして
得た画像データである場合には、当該画像データに付さ
れた像域フラグデータに基づいて量子化パラメータを選
択して量子化し、 前記画像データが、画像読取り装置によって得た画像デ
ータである場合には、先に量子化された前記ブロックの
符号量に基づいて量子化パラメータを選択して量子化す
ることを特徴とする画像処理方法。
5. A step of dividing the image data into a plurality of blocks, a step of performing discrete cosine transform of the image data for each block, and a step of quantizing the discrete cosine transformed image data. In the quantization step, when the image data is image data obtained by rendering a page description language, a quantization parameter is selected based on image area flag data attached to the image data. If the image data is image data obtained by an image reading device, the quantization is performed by selecting a quantization parameter based on the code amount of the block that has been previously quantized. Image processing method.
【請求項6】 コンピュータを、 画像データを複数のブロックに分割する手段、 前記ブロック毎に前記画像データを離散コサイン変換す
る手段、 離散コサイン変換された前記画像データを量子化する量
子化手段、として機能させるプログラムを記録した記録
媒体であって、 前記量子化手段は、 前記画像データが、ページ記述言語をレンダリングして
得た画像データである場合には、当該画像データに付さ
れた像域フラグデータに基づいて量子化パラメータを選
択して量子化し、 前記画像データが、画像読取り装置によって得た画像デ
ータである場合には、先に量子化された前記ブロックの
符号量に基づいて量子化パラメータを選択して量子化す
ることを特徴とする記録媒体。
6. A computer, comprising: means for dividing image data into a plurality of blocks; means for performing discrete cosine transform of the image data for each of the blocks; and quantizing means for quantizing the discrete cosine transformed image data. A recording medium storing a program to be operated, wherein the quantizing means, when the image data is image data obtained by rendering a page description language, an image area flag attached to the image data When the image data is image data obtained by an image reading device, a quantization parameter is selected based on the code amount of the block previously quantized. And quantizing the selected recording medium.
JP2000267390A 2000-09-04 2000-09-04 Apparatus and method for image processing and recording medium Withdrawn JP2002077626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000267390A JP2002077626A (en) 2000-09-04 2000-09-04 Apparatus and method for image processing and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000267390A JP2002077626A (en) 2000-09-04 2000-09-04 Apparatus and method for image processing and recording medium

Publications (1)

Publication Number Publication Date
JP2002077626A true JP2002077626A (en) 2002-03-15

Family

ID=18754323

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000267390A Withdrawn JP2002077626A (en) 2000-09-04 2000-09-04 Apparatus and method for image processing and recording medium

Country Status (1)

Country Link
JP (1) JP2002077626A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7305137B2 (en) 2002-12-26 2007-12-04 Canon Kabushiki Kaisha Image compression method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7305137B2 (en) 2002-12-26 2007-12-04 Canon Kabushiki Kaisha Image compression method and apparatus
US7697772B2 (en) 2002-12-26 2010-04-13 Canon Kabushiki Kaisha Apparatus, method and computer program product for performing image compression of image data

Similar Documents

Publication Publication Date Title
US9762917B2 (en) Quantization method and apparatus in encoding/decoding
US7499592B2 (en) Image decoding apparatus and its control method
US20050276500A1 (en) Image encoding apparatus, and image processing apparatus and its control method
JP2006080792A (en) Image coder, method, computer program, and computer readable storage medium
JP2000138836A (en) Compressor for digital image including background pixels
JP2000244935A (en) Method for compressing picture data
JP3469438B2 (en) Image signal processing method and apparatus, recording medium
JP2003046789A (en) Image coding apparatus and image decoding apparatus
US20190238894A1 (en) Image processing device and method for operating image processing device
JP2007019878A (en) Image coding apparatus and image coding method
JP2002077626A (en) Apparatus and method for image processing and recording medium
JP3023215B2 (en) Image processing device
JP2002051221A (en) Device, system and method for encoding and decoding image and storage medium
JP3227181B2 (en) Image processing device
US6069980A (en) Adaptive character image generation and synthesis
JP2002354266A (en) Image processor, image processing system, image processing method, recording medium, and program
JP4047144B2 (en) Image processing apparatus and method
JP3170313B2 (en) Image processing device
JP2005086353A (en) Picture processor, control method therefor, computer program and computer readable storage medium
JP2009038740A (en) Image encoding device
JP3825871B2 (en) Image processing apparatus and method, and computer-readable recording medium storing image processing program code
JP2003116009A (en) Image encoding control equipment and method therefor
JPH0896141A (en) Image processor
JP2002218251A (en) Image processor, image processing system, image processing method and storage medium
JP2004274143A (en) Image processor and its method

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20071106