JPH05344348A - Image encoding control method and its device - Google Patents

Image encoding control method and its device

Info

Publication number
JPH05344348A
JPH05344348A JP4149262A JP14926292A JPH05344348A JP H05344348 A JPH05344348 A JP H05344348A JP 4149262 A JP4149262 A JP 4149262A JP 14926292 A JP14926292 A JP 14926292A JP H05344348 A JPH05344348 A JP H05344348A
Authority
JP
Japan
Prior art keywords
image
unit
color
discrete cosine
quantization table
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
JP4149262A
Other languages
Japanese (ja)
Inventor
Kazuhide Hasegawa
一英 長谷川
Takahiro Moro
陵宏 茂呂
Joji Oki
丈二 大木
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 JP4149262A priority Critical patent/JPH05344348A/en
Publication of JPH05344348A publication Critical patent/JPH05344348A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Analogue/Digital Conversion (AREA)
  • Color Television Systems (AREA)

Abstract

PURPOSE:To obtain an image encoding control method and its device by which an image encoding processing for obtaining a high decoded image quality at a high encoding rate are attained at a high speed. CONSTITUTION:The input image signal at every color component is blocked into (n)X(n) pixels by a blocking part 1, a discrete cosine transformation is performed for the (n)X(n) pixel data by a discrete cosine converting part 2, and (n)X(n) pieces of conversion coefficients are calculated. Then, in what order of color components the input signal is placed is identified by a color component identifying part 3, when the input signal is the first color component, the feature of the image is discriminated by an image discriminating part 6, quantization table optimal to the image is selected, and the information is stored in an information storage part 7. A quantizing part 4 switches the quantization table from the information, and quantizes the conversion coefficients. An encoding part 5 encodes the quantization coefficients and the used table information.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、例えば入力画像を複数
の画素からなるブロックに分割し、ブロック毎に離散コ
サイン変換を行ない、変換された変換係数を量子化テー
ブルを用いて量子化し、量子化された係数を符号化する
画像符号化制御方法及び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention divides an input image into blocks composed of a plurality of pixels, performs discrete cosine transform for each block, quantizes the transformed transform coefficients using a quantization table, The present invention relates to an image encoding control method and apparatus for encoding encoded coefficients.

【0002】[0002]

【従来の技術】図7に従来の方式での符号化処理のブロ
ック図を示す。まず入力画像データをブロック化部1に
おいて複数(n×n)画素にブロック化する。次にn×
n画素の画素データに対して離散コサイン変換部2にお
いて離散コサイン変換を行い、n×n個の離散コサイン
変換係数(DCT係数)を算出する。このDCT係数は
n×nブロックの左上方向が低周波領域、右下方向が高
周波領域となっている。そして、一般的な画像の場合に
は、低周波成分の値は大きく、高周波成分の値は小さく
なっている。
2. Description of the Related Art FIG. 7 shows a block diagram of encoding processing in a conventional method. First, the input image data is divided into a plurality of (n × n) pixels by the blocking unit 1. Then n ×
The discrete cosine transform unit 2 performs discrete cosine transform on the pixel data of n pixels to calculate n × n discrete cosine transform coefficients (DCT coefficients). The DCT coefficient has a low frequency region in the upper left direction and a high frequency region in the lower right direction of the n × n block. In the case of a general image, the value of the low frequency component is large and the value of the high frequency component is small.

【0003】ブロック毎のDCT係数は、量子化部4に
おいて量子化テーブルを用いて係数位置毎に異なるステ
ップサイズで量子化する。量子化された二次元配列から
なるブロックのDCT係数を、低周波側から高周波側へ
と一次元配列化し、符号化部5において可変長符号化す
る。また、量子化部4で量子化を行なう前に画像判定部
6において各ブロックの特徴(文字・網点・写真画像な
ど)を判定し、量子化部4で用いる量子化テーブルを切
り換える。一方、復号化側では、復号化部8、逆量子化
部9、逆離散コサイン変換部10及び画像復元部11に
おいて符号化の逆の処理を行ない画像データを得る。
The DCT coefficient for each block is quantized in the quantizer 4 using a quantization table with a different step size for each coefficient position. The DCT coefficients of the quantized two-dimensional array block are one-dimensionally arrayed from the low frequency side to the high frequency side, and variable length coding is performed by the coding unit 5. Further, the image determination unit 6 determines the features (characters, halftone dots, photographic images, etc.) of each block before the quantization unit 4 performs quantization, and switches the quantization table used by the quantization unit 4. On the other hand, on the decoding side, the decoding unit 8, the inverse quantization unit 9, the inverse discrete cosine transform unit 10, and the image restoration unit 11 perform the reverse processing of encoding to obtain image data.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来例における符号化処理では、入力画像が複数の色成分
からなっていた時、各色成分毎に画像判定部6において
画像判定を行なっていたため、処理が複雑化し、時間が
かかっていた。
However, in the encoding process in the above-mentioned conventional example, when the input image is composed of a plurality of color components, the image determination unit 6 makes an image determination for each color component. Was complicated and time consuming.

【0005】本発明は、上記課題を解決するために成さ
れたもので、高符号化率で、高復号画質を得るための画
像符号化処理を高速に行なえる画像符号化制御方法及び
装置を提供することを目的とする。
The present invention has been made to solve the above problems, and provides an image coding control method and apparatus capable of performing an image coding process at a high coding rate to obtain a high decoded image quality at high speed. The purpose is to provide.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に、本発明の構成は、入力画像を複数の画素からなるブ
ロックに分割し、ブロック毎に離散コサイン変換を行な
い、変換された変換係数を量子化テーブルを用いて量子
化し、量子化された係数を符号化する画像符号化制御方
法において、ブロック毎に離散コサイン変換された入力
画像の色成分を識別し、識別された第1番目の色成分に
ついてのみ画像の特徴を判別し、該判別結果を制御情報
として情報格納手段に格納し、該情報格納手段に格納さ
れた制御情報に基づいて、量子化テーブルを適応的に切
り換え制御することを特徴とする。
In order to achieve the above-mentioned object, the structure of the present invention is such that an input image is divided into blocks composed of a plurality of pixels, a discrete cosine transform is carried out for each block, and transformed transform coefficients are obtained. Is quantized using a quantization table, and in the image coding control method of coding the quantized coefficient, the color component of the input image subjected to the discrete cosine transform is identified for each block, and the identified first A feature of an image is discriminated only for a color component, the discrimination result is stored as control information in the information storage means, and the quantization table is adaptively switched and controlled based on the control information stored in the information storage means. Is characterized by.

【0007】[0007]

【作用】かかる構成において、入力画像の色成分を識別
し、第1番目の色成分についてのみ画像の特徴を判別
し、その判別結果を制御情報として格納し、量子化の際
に格納された制御情報に基づいて量子化テーブルを適応
的に切り換えるように制御することにより、高符号化率
で、高復号画質を得るための画像符号化処理を高速に行
なうことができる。
In this structure, the color components of the input image are identified, the features of the image are discriminated only for the first color component, the discrimination result is stored as control information, and the control stored at the time of quantization is controlled. By controlling the quantization table to be adaptively switched based on the information, it is possible to perform the image coding process at a high coding rate at a high speed to obtain a high decoded image quality.

【0008】[0008]

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

【0009】<第1の実施例>図1は、第1の実施例に
おける画像符号化装置の構成を示す概略ブロック図であ
る。まず各色成分毎の入力画像信号はブロック化部1で
n×n画素にブロック化される。次に、離散コサイン変
換部2において、n×n画素のデータに対して離散コサ
イン変換を行ない、n×n個の変換係数を算出する。図
2は、この離散コサイン変換式を示す図である。
<First Embodiment> FIG. 1 is a schematic block diagram showing the arrangement of an image coding apparatus according to the first embodiment. First, the input image signal for each color component is blocked by the blocking unit 1 into n × n pixels. Next, the discrete cosine transform unit 2 performs discrete cosine transform on the data of n × n pixels to calculate n × n transform coefficients. FIG. 2 is a diagram showing this discrete cosine transform formula.

【0010】次に、色成分識別部3において、入力され
た信号が何番目の色成分であるかを識別する。そして、
一番目の色成分の時、画像判別部6において、ブロック
毎に変換係数の特徴から文字画像ブロックであるか、グ
ラビア(網点)画像ブロックであるか、又はその他のブ
ロックであるかを判別する。ここで、画像の判別には以
下に述べるような方法を用いる。 (1)グラビア画像ブロックの判別方法 離散コサイン変換された係数(DCT係数)において、
8×8個の係数の場合、図5に示す(b),(c),
(d),(e)のうちのいずれかの斜線の位置のDCT
係数にピークを持ち、且つ図5に示す(a)の斜線の位
置のDCT係数の絶対値が比較的小さいという特徴がグ
ラビア画像にはある。この特徴を用いて、図5の
(a),(b),(c),(d),(e)の各斜線の位
置のDCT係数の絶対値の和(係数和)をそれぞれ算出
し、(b),(c),(d),(e)の各係数和の最大
値が(a)より大きく、且つ(b),(c),(d),
(e)の各係数和の最大値が所定の閾値(閾値A)より
大きい時、そのブロックをグラビア画像ブロックである
と判別する。
Next, the color component identifying section 3 identifies which color component the input signal is. And
At the time of the first color component, the image discrimination unit 6 discriminates for each block from the characteristics of the conversion coefficient whether it is a character image block, a gravure (halftone dot) image block, or another block. .. Here, the method as described below is used for image discrimination. (1) Method of discriminating gravure image block In the coefficient (DCT coefficient) that has been discrete cosine transformed,
In the case of 8 × 8 coefficients, (b), (c),
DCT at the position of the diagonal line in either (d) or (e)
The gravure image has a feature that the coefficient has a peak and the absolute value of the DCT coefficient at the position of the diagonal line in FIG. 5A is relatively small. Using this feature, the sum of the absolute values (coefficient sums) of the DCT coefficients at the positions of the diagonal lines in (a), (b), (c), (d), and (e) of FIG. The maximum value of the sum of the coefficients of (b), (c), (d), and (e) is larger than that of (a), and (b), (c), (d),
When the maximum value of the sum of coefficients in (e) is larger than a predetermined threshold value (threshold value A), the block is determined to be a gravure image block.

【0011】すなわち、図3に示す条件を満たす時、グ
ラビア画像ブロックと判別する。 (2)文字画像ブロックの判別方法 文字画像では、空間周波数スペクトルにおいて、2本/
mm程度の低周波数の値に高い値を持っている。DCT
係数においても、低周波DCT係数の絶対値が大きいと
いう特徴がある。この特徴を用いて、DCT係数のう
ち、図6に示す斜線の位置の係数の絶対値の和を算出
し、この係数和が所定の閾値(閾値B)より大きく、且
つグラビア画像ブロックであると判断されない時、文字
画像ブロックであると判別する。
That is, when the condition shown in FIG. 3 is satisfied, it is discriminated as a gravure image block. (2) Method of discriminating character image block In the character image, two lines /
It has a high value at a low frequency of about mm. DCT
The coefficient is also characterized in that the absolute value of the low frequency DCT coefficient is large. Using this feature, among the DCT coefficients, the sum of the absolute values of the coefficients at the hatched positions shown in FIG. 6 is calculated, and the sum of the coefficients is larger than a predetermined threshold value (threshold value B) and is a gravure image block. When it is not determined, it is determined to be a character image block.

【0012】すなわち、図4に示す条件を満たす時、文
字画像ブロックと判断する。
That is, when the condition shown in FIG. 4 is satisfied, the character image block is determined.

【0013】上述のような判別方法により、ブロックの
特徴を判別し、文字画像ブロック、グラビア(網点)画
像ブロック、その他のブロック用にそれぞれ用意した量
子化テーブルの中からそのブロックに最適なものを選択
し、情報格納部7にその情報を格納する。
The characteristic of the block is discriminated by the discrimination method as described above, and the optimum one is selected from the quantization tables prepared for the character image block, the gravure (halftone dot) image block and the other blocks. Is selected and the information is stored in the information storage unit 7.

【0014】次に、量子化部4において情報格納部7の
情報から量子化テーブルを切り換え変換係数の量子化を
行なう。そして、符号化部5において量子化した係数と
量子化に用いたテーブル情報を符号化する。
Next, the quantizer 4 switches the quantization table from the information in the information storage 7 to quantize the transform coefficient. Then, the encoding unit 5 encodes the quantized coefficient and the table information used for the quantization.

【0015】二番目以降の色成分に対しては画像判別処
理を行なわず、量子化部4において、情報格納部7に既
に格納されている情報から量子化テーブルを切り換えて
量子化を行なう。そして、一番目の色成分と同様に量子
化した係数とテーブル情報とを符号化部5において符号
化する。
The image discrimination processing is not performed for the second and subsequent color components, and the quantization unit 4 performs quantization by switching the quantization table from the information already stored in the information storage unit 7. Then, the quantized coefficient and the table information are encoded by the encoding unit 5 in the same manner as the first color component.

【0016】一方、復号化処理では、符号化処理と逆
に、まず復号化部8において、符号化された画像信号と
符号化されたテーブル情報とを復号化する。そして、情
報格納部7へテーブル情報を格納する。
On the other hand, in the decoding process, contrary to the encoding process, first, the decoding unit 8 decodes the encoded image signal and the encoded table information. Then, the table information is stored in the information storage unit 7.

【0017】次に、逆量子化部9において、情報格納部
7の情報から量子化テーブルを切り換えて復号された係
数に対して逆量子化を行なう。そして、逆量子化された
変換係数を逆離散コサイン変換部10において、逆離散
コサイン変換する。次に、画像復元部11において、ブ
ロック化されたデータから画像信号を復元する。
Next, in the inverse quantization section 9, the quantization table is switched from the information in the information storage section 7 to perform inverse quantization on the decoded coefficient. Then, the inversely quantized transform coefficient is subjected to inverse discrete cosine transform in the inverse discrete cosine transform unit 10. Next, the image restoration unit 11 restores an image signal from the blocked data.

【0018】<第1の実施例の変形例>本発明は、上述
した実施例に限らず、図1に示した色成分識別部3と画
像判定部6とを離散コサイン変換部2の前に設け、入力
された画素データから直接画像判別を行なっても良い。
この場合、例えば平均値による判定方法が考えられる。
まず、8×8画素のブロックの平均値Hを求め、画素の
値Pと平均値Hとの差の絶対値が閾値Aより大きい場合
にカウントアップして、ブロック内の平均値Hより大き
い画素のカウントCとする。そして、カウント値Cが第
1閾値A1より小さいか判定し、小さい場合には平坦部
分と判定し、カウント値が第1,第2閾値A1,A2の
間にあれば、文字画像と判定し、第2閾値A2より大き
い場合にはグラビア画像と判定する。
<Modification of First Embodiment> The present invention is not limited to the above-described embodiment, and the color component identifying section 3 and the image determining section 6 shown in FIG. Alternatively, the image determination may be performed directly from the provided pixel data.
In this case, for example, a determination method based on an average value can be considered.
First, the average value H of a block of 8 × 8 pixels is calculated, and when the absolute value of the difference between the pixel value P and the average value H is larger than the threshold value A, the count is incremented, and the pixels larger than the average value H in the block And count C. Then, it is determined whether or not the count value C is smaller than the first threshold value A1, and when it is smaller, it is determined as a flat portion, and when the count value is between the first and second threshold values A1 and A2, it is determined as a character image, If it is larger than the second threshold A2, it is determined to be a gravure image.

【0019】上述した第1の実施例によれば、離散コサ
イン変換部と、量子化部と、符号化部と、色成分識別部
と、画像判定部と、情報格納部とを備え、複数の色成分
からなる入力画像信号をブロック化部において各色成分
毎に複数画素からなるブロックに分割し、離散コサイン
変換部においてブロック毎に離散コサイン変換して、変
換された変換係数から画像判定部において画像の特徴を
判別し、量子化部において画像判定部での判別結果から
量子化テーブルを切り換えて量子化し、量子化された係
数を可変長符号を用いて符号化する画像符号化方式にお
いて、色成分識別部において入力されている色成分の番
号を識別し、第1番目の色成分についてのみ画像判別部
においてブロック毎に、画像の特徴を判別し、判別結果
を情報格納部に格納し、情報格納部情報を用いて、各色
成分の各ブロックのDCT係数を量子化する時に使用す
る量子化テーブルを適応的に切り換え制御することによ
り、高符号化率で、高復号画質を得るための画像符号化
処理を高速に行なうことができる。
According to the first embodiment described above, the discrete cosine transform section, the quantization section, the coding section, the color component identification section, the image determination section, and the information storage section are provided, and a plurality of units are provided. The input image signal made up of color components is divided into blocks made up of a plurality of pixels for each color component in the blocking unit, the discrete cosine transform is performed for each block in the discrete cosine transform unit, and the image is determined in the image determination unit from the transformed transform coefficients. In the image coding method, in which the quantized part is quantized and the quantized coefficient is coded by using the variable length code, the color component is The number of the color component input in the identification unit is identified, the image feature is identified in each block in the image identification unit only for the first color component, and the identification result is stored in the information storage unit. In order to obtain a high decoding quality with a high coding rate, the quantization table used when quantizing the DCT coefficient of each block of each color component is adaptively controlled using the information storage unit information. The image encoding process of can be performed at high speed.

【0020】<第2の実施例>次に、図面を参照して本
発明に係る第2の実施例を詳細に説明する。
<Second Embodiment> Next, a second embodiment of the present invention will be described in detail with reference to the drawings.

【0021】通常、画像符号化装置では、ディジタル原
稿画像信号(例えばRGBやYMCK等)を離散コサイ
ン変換した後に、画像の特徴に基づいて画像判別を行な
い、判別結果に基づいて最適な量子化テーブルを使用し
て量子化した後、符号化するように構成されている。
Usually, in the image coding apparatus, after the digital original image signal (for example, RGB, YMCK, etc.) is subjected to the discrete cosine transform, the image discrimination is performed based on the characteristic of the image, and the optimum quantization table is obtained based on the discrimination result. Is used for quantization and then for encoding.

【0022】しかしながら、ディジタル原稿画像信号が
輝度信号と色差信号の両方を含んでいるため、的確な画
像判別を行なうことが困難であった。
However, since the digital original image signal includes both the luminance signal and the color difference signal, it is difficult to accurately determine the image.

【0023】第2の実施例は、上記課題を解決するため
に成されたもので、より的確な画像判別を行なうことが
でき、最適な量子化テーブルを設定でき、高圧縮率で高
画質の復号画像を得ることができる画像符号化装置を提
供することを目的とする。
The second embodiment is made to solve the above-mentioned problems, and more accurate image discrimination can be performed, an optimum quantization table can be set, a high compression rate and high image quality can be obtained. An object is to provide an image encoding device that can obtain a decoded image.

【0024】図8は、第2の実施例における画像符号化
装置の構成を示す概略ブロック図である。同図におい
て、入力されたディジタル原稿画像信号は色信号変換部
21で輝度信号と色差信号とに変換され、変換されたデ
ータが8×8ブロック化部22でブロック化される。そ
して、離散コサイン変換部(DCT)23において離散
コサイン変換され、後述する画像判定部24で輝度信号
の特徴から画像の種類が判定される。次に、画像判定部
24で判定された結果に基づいて量子化テーブル設定部
25が最適な量子化テーブルを設定し、DCT変換され
たデータを量子化部26が設定された量子化テーブルを
使用して量子化する。そして、符号化部の直流(DC)
成分符号化部27と交流(AC)成分符号化部28で直
流及び交流成分が符号化され、更に選択信号符号化部2
9でどの量子化テーブルを選択したのかを示す情報が符
号化され、多重化部30で多重化されて符号化データと
して出力される。
FIG. 8 is a schematic block diagram showing the structure of the image coding apparatus according to the second embodiment. In the figure, the input digital original image signal is converted into a luminance signal and a color difference signal by the color signal conversion unit 21, and the converted data is divided into blocks by the 8 × 8 blocking unit 22. Then, the discrete cosine transform unit (DCT) 23 performs discrete cosine transform, and the image determination unit 24, which will be described later, determines the type of image from the characteristics of the luminance signal. Next, the quantization table setting unit 25 sets an optimum quantization table based on the result determined by the image determination unit 24, and the DCT-transformed data is used by the quantization table set by the quantization unit 26. And quantize. Then, the direct current (DC) of the encoding unit
The component encoding unit 27 and the alternating current (AC) component encoding unit 28 encode DC and AC components, and further select signal encoding unit 2
Information indicating which quantization table is selected in 9 is encoded, multiplexed in the multiplexing unit 30 and output as encoded data.

【0025】次に、上述の画像判定部24において、入
力された画像の種類を見極める方法について詳細に説明
する。
Next, a method for identifying the type of the input image in the image determining section 24 will be described in detail.

【0026】文字画像では、図6に示す斜線の位置の値
の絶対値が大きいという特徴があるので、この部分の値
の和がある閾値Aよりも大きい時、このブロックを文字
画像ブロックであると判定し、量子化テーブル設定部2
5において解像度が劣化しないように量子化テーブルの
値が小さな量子化テーブルR1を選択する。また図6に
示す斜線の位置の値の絶対値の和がある閾値Aよりも小
さい時、このブロックをグラフィック画像であると判定
し、量子化テーブル設定部25において圧縮率を高める
ために、量子化テーブルの値が大きな量子化テーブルR
2を選択する。また、この時、量子化処理においてどの
量子化テーブルを用いたかを示す情報も符号化される。
Since the character image has a feature that the absolute value of the value of the position of the diagonal line shown in FIG. 6 is large, when the sum of the values of this portion is larger than a certain threshold value A, this block is a character image block. And the quantization table setting unit 2
In step 5, the quantization table R1 having a small quantization table value is selected so that the resolution does not deteriorate. When the sum of the absolute values of the shaded positions shown in FIG. 6 is smaller than a certain threshold value A, it is determined that this block is a graphic image, and the quantization table setting unit 25 increases the compression rate by Quantization table R having a large value in the quantization table
Select 2. Further, at this time, information indicating which quantization table is used in the quantization processing is also encoded.

【0027】<第2の実施例の変形例>図9は、変形例
における画像符号化装置の構成を示す概略ブロック図で
ある。この例では、図示するように、入力されたディジ
タル原稿画像信号は色信号変換部31で輝度信号と色差
信号とに変換され、変換されたデータが8×8ブロック
化部32でブロック化される。そして、離散コサイン変
換部(DCT)33に離散コサイン変換され、エッジ判
定部34でエッジが判定され、入力画像の種類が判定さ
れる。次に、画像判定部24で判定された結果に基づい
て量子化テーブル設定部25が最適な量子化テーブルを
設定し、DCT変換されたデータを量子化部26が設定
された量子化テーブルを使用して量子化する。そして、
符号化部の直流(DC)成分符号化部27と交流(A
C)成分符号化部28で直流及び交流成分が符号化さ
れ、更に選択信号符号化部29でどの量子化テーブルを
選択したのかを示す情報が符号化され、多重化部30で
多重化されて符号化データとして出力される。
<Modification of Second Embodiment> FIG. 9 is a schematic block diagram showing the structure of an image coding apparatus according to a modification. In this example, as shown in the figure, the input digital original image signal is converted into a luminance signal and a color difference signal by the color signal conversion unit 31, and the converted data is divided into blocks by the 8 × 8 blocking unit 32. .. Then, the discrete cosine transform unit (DCT) 33 performs discrete cosine transform, the edge determination unit 34 determines an edge, and the type of the input image is determined. Next, the quantization table setting unit 25 sets an optimum quantization table based on the result determined by the image determination unit 24, and the DCT-transformed data is used by the quantization table set by the quantization unit 26. And quantize. And
Direct current (DC) component encoding unit 27 of the encoding unit and alternating current (A
C) The component coding unit 28 codes the DC and AC components, the selection signal coding unit 29 codes information indicating which quantization table is selected, and the multiplexing unit 30 multiplexes the information. It is output as encoded data.

【0028】上述したように、第2の実施例によれば、
より的確な画像判別を行なうことができ、最適な量子化
テーブルを設定でき、高圧縮率で、高画質の復号画像を
得ることができる。
As described above, according to the second embodiment,
More accurate image determination can be performed, an optimum quantization table can be set, and a high-quality decoded image can be obtained with a high compression rate.

【0029】<第3の実施例>次に、図面を参照して本
発明に係る第3の実施例を詳細に説明する。
<Third Embodiment> Next, a third embodiment of the present invention will be described in detail with reference to the drawings.

【0030】前述した第2の実施例では、カラーディジ
タル原稿画像信号中の文字をエッジ部分とみなし、文字
画像領域の判定を行なうように構成されている。
In the second embodiment described above, the character in the color digital original image signal is regarded as an edge portion, and the character image area is determined.

【0031】しかしながら、第2の実施例では、文字画
像領域とその他の画像のエッジを含む領域とを共に文字
画像領域と判定してしまうため、選択的に文字画像領域
だけの判定を行なうことが困難であった。
However, in the second embodiment, the character image area and the area including the edge of the other image are both determined to be the character image area. Therefore, only the character image area can be selectively determined. It was difficult.

【0032】第3の実施例は、上記課題を解決するため
に成されたもので、文字画像領域とその他の画像領域と
を含む混合カラーディジタル画像データにおいて、選択
的に文字画像領域の判定を行なうことができる画像符号
化装置を提供することを目的とする。
The third embodiment is made to solve the above-mentioned problems, and selectively determines a character image area in mixed color digital image data including a character image area and other image areas. An object of the present invention is to provide an image encoding device that can be performed.

【0033】図10は、第3の実施例における画像符号
化装置の部分構成を示す図である。同図において、41
は選択的に文字領域を判定する文字領域判定装置を示す
システム構成図であり、このシステムによって文字画像
領域とその他の画像領域とを含む混合カラーディジタル
画像データから、それぞれの画像領域を分離することが
できる。以下、この文字領域判定装置41の構成につい
て詳述する。
FIG. 10 is a diagram showing a partial structure of an image coding apparatus according to the third embodiment. In the figure, 41
FIG. 1 is a system configuration diagram showing a character area determination device for selectively determining a character area. By this system, each image area is separated from mixed color digital image data including a character image area and other image areas. You can Hereinafter, the configuration of the character area determination device 41 will be described in detail.

【0034】まず、42は入力されたカラーディジタル
画像データをY・Cb・Cr信号に変換する色信号変換
部である。ここで、色信号がY・Cb・Crである場合
には、画像データを輝度と色差で扱うことができる。4
3は色信号変換部42でY・Cb・Cr信号に変換され
たカラーディジタル画像データを、n×nブロックに分
割するブロック分割部であり、例えばこの装置がJPE
Gにおいて使用される時にはブロック分割の単位は8×
8となる。44はブロック分割部43でn×nブロック
に分割されたカラーディジタル画像データを離散コサイ
ン変換する離散コサイン変換部である。
First, reference numeral 42 is a color signal converter for converting the input color digital image data into Y, Cb, Cr signals. Here, when the color signals are Y, Cb, and Cr, the image data can be treated with luminance and color difference. Four
Reference numeral 3 denotes a block division unit for dividing the color digital image data converted into Y, Cb, Cr signals by the color signal conversion unit 42 into n × n blocks.
When used in G, the unit of block division is 8 ×
It becomes 8. Reference numeral 44 denotes a discrete cosine transforming unit for performing discrete cosine transform on the color digital image data divided into n × n blocks by the block dividing unit 43.

【0035】45は離散コサイン変換部44で離散コサ
イン変換されたカラーディジタル画像データを、色信号
変換部42で変換された色信号の特徴から選択的に文字
領域を判定する文字領域判定部であり、輝度の差によっ
て(白と黒等)文字画像領域を判定することができる。
46は文字領域判定部45で文字画像と判断された領域
のデータを一時的に保存するための文字画像領域保存部
であり、必要に応じて、ここから文字画像領域のデータ
を出力することができる。そして、47は文字画像と判
断されなかった領域のデータを一時的に保存するその他
の領域保存部であり、必要に応じて、ここから文字画像
以外の領域のデータを出力することができる。
Reference numeral 45 is a character area determination unit for selectively determining the character area of the color digital image data discrete cosine transformed by the discrete cosine transformation unit 44 from the characteristics of the color signal transformed by the color signal transformation unit 42. , A character image area (white, black, etc.) can be determined by the difference in luminance.
Reference numeral 46 is a character image area storage unit for temporarily storing the data of the area determined to be a character image by the character area determination unit 45, and the data of the character image area can be output from here if necessary. it can. Reference numeral 47 denotes another area storage unit that temporarily stores the data of the area that is not determined as the character image, and can output the data of the area other than the character image, if necessary.

【0036】次に、上述の文字領域判定部45におい
て、選択的に文字領域を判定する方法について以下に説
明する。
Next, a method of selectively determining a character area in the above-mentioned character area determining section 45 will be described below.

【0037】離散コサイン変換では、ブロック分割部4
3で分割したブロック内に文字画像領域がある場合、低
周波部分の離散コサイン変換係数(DCT係数)の絶対
値が大きくなるという特徴がある。この特徴を用いて、
例えばブロック分割部43で分割したブロックの単位が
8×8であった場合には、文字画像領域の判定には、図
6に示す8×8DCT係数のうち、特に斜線部分のDC
T係数の絶対値の和がある閾値Aよりも大きい時、この
ブロックを文字画像領域と判定する。この閾値が大きく
なると、輝度の差が大きいもの、例えば白地に黒文字や
黒字に白文字等を文字領域と判断し、それ以外をその他
の部分と判断することができる。
In the discrete cosine transform, the block dividing unit 4
When there is a character image area in the block divided by 3, the absolute value of the discrete cosine transform coefficient (DCT coefficient) in the low frequency part is large. With this feature,
For example, when the unit of the block divided by the block division unit 43 is 8 × 8, in the determination of the character image area, among the 8 × 8 DCT coefficients shown in FIG.
When the sum of absolute values of T coefficients is larger than a certain threshold value A, this block is determined as a character image area. When this threshold value becomes large, it is possible to determine that the difference in luminance is large, for example, a black character on a white background or a white character on a black character is a character area, and the others are other areas.

【0038】<第3の実施例の変形例>図11は、変形
例における文字領域判定装置51の構成を示す図であ
る。同図において、52〜57に示す各部分は上述した
図10の42〜47に示す各部分と同じであり、この例
では文字認識符号添付部58を文字画像領域保存部56
の前或いは後ろに備えるものである。この構成は、どの
部分が文字画像領域なのかを新たに符号を添付すること
で認識しようとするものである。これにより、どの部分
が文字画像領域なのかを判断することができる。
<Modification of Third Embodiment> FIG. 11 is a diagram showing the structure of a character area determination device 51 in a modification. In the figure, the parts indicated by 52 to 57 are the same as the parts indicated by 42 to 47 in FIG. 10 described above, and in this example, the character recognition code attachment part 58 is replaced by the character image area storage part 56.
To prepare before or after. This configuration is intended to recognize which part is a character image area by newly attaching a code. This makes it possible to determine which part is the character image area.

【0039】ここで文字認識符号添付部58は、文字画
像領域とその他の領域とを区別して認識するためのもの
であり、それらの違いが分かるものであればどのような
ものでも良い。この文字認識符号添付部58を備えるこ
とにより、JPEG等を用いて画像の圧縮をする時に、
文字部分だけ量子化テーブルの値を小さくすることで、
文字画像の画質の劣化を防ぐことができると共に、文字
部分に色をつけることができる。
Here, the character recognition code attaching section 58 is for distinguishing and recognizing the character image area and the other area, and any one can be used as long as the difference between them can be recognized. By providing the character recognition code attachment unit 58, when compressing an image using JPEG or the like,
By reducing the value of the quantization table only for the character part,
It is possible to prevent the image quality of the character image from being deteriorated and to color the character portion.

【0040】尚、上述した第3の実施例において、色信
号変換部42が入力されたデータをR・G・BやY・M
・C・K等の色信号に変換した場合には、画像データを
色度で扱うことができる。この場合、文字領域判定部4
5では、色度によって(赤と緑、イエローとシアン等)
文字領域を判定することができる。
In the third embodiment described above, the data input to the color signal converter 42 is converted to R, G, B or Y, M.
When the color signal is converted into C, K, etc., the image data can be treated with chromaticity. In this case, the character area determination unit 4
5 depends on chromaticity (red and green, yellow and cyan, etc.)
The character area can be determined.

【0041】第3の実施例によれば、離散コサイン変換
係数の特徴から文字画像領域を判定することで、文字画
像領域とその他の画像領域とを含む混合カラーディジタ
ル画像データから、それぞれの画像領域を分離すること
ができる。
According to the third embodiment, by determining the character image area from the characteristics of the discrete cosine transform coefficient, the mixed color digital image data including the character image area and the other image areas can be used to detect the respective image areas. Can be separated.

【0042】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device.

【0043】また、本発明はシステム或いは装置にプロ
グラムを供給することによって達成される場合にも適用
できることは言うまでもない。
Needless to say, the present invention can also be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0044】[0044]

【発明の効果】以上説明したように、本発明によれば、
高符号化率で、高復号画質を得るための画像符号化処理
を高速に行なうことが可能となる。
As described above, according to the present invention,
It is possible to perform image coding processing at high speed with a high coding rate to obtain high decoded image quality.

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

【図1】第1の実施例での画像符号化装置の構成を示す
概略ブロック図である。
FIG. 1 is a schematic block diagram showing the configuration of an image encoding device according to a first embodiment.

【図2】離散コサイン変換式を示す図である。FIG. 2 is a diagram showing a discrete cosine transform formula.

【図3】グラビア画像の判別式を示す図である。FIG. 3 is a diagram showing a discriminant of a gravure image.

【図4】文字画像の判別式を示す図である。FIG. 4 is a diagram showing a discriminant of a character image.

【図5】グラビア画像ブロック判別のためのDCT係数
位置を示す図である。
FIG. 5 is a diagram showing DCT coefficient positions for gravure image block discrimination.

【図6】文字画像ブロック判別のためのDCT係数位置
を示す図である。
FIG. 6 is a diagram showing DCT coefficient positions for determining a character image block.

【図7】従来例での画像符号化装置の構成を示す概略ブ
ロック図である。
FIG. 7 is a schematic block diagram showing a configuration of an image encoding device in a conventional example.

【図8】第2の実施例での画像符号化装置の構成を示す
概略ブロック図である。
FIG. 8 is a schematic block diagram showing the configuration of an image encoding device according to a second embodiment.

【図9】第2の実施例での変形例における画像符号化装
置の構成を示す概略ブロック図である。
FIG. 9 is a schematic block diagram showing the configuration of an image encoding device according to a modification of the second embodiment.

【図10】第3の実施例での画像符号化装置の部分構成
を示す図である。
FIG. 10 is a diagram showing a partial configuration of an image coding apparatus according to a third embodiment.

【図11】第3の実施例での変形例における画像符号化
装置の部分構成を示す図である。
FIG. 11 is a diagram showing a partial configuration of an image encoding device according to a modification of the third embodiment.

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

1 ブロック化部 2 離散コサイン変換部 3 色成分識別部 4 量子化部 5 符号化部 6 画像判別部 7 情報格納部 8 復号化部 9 逆量子化部 10 逆離散コサイン変換部 11 画像復元部 1 Blocking Unit 2 Discrete Cosine Transform Unit 3 Color Component Discrimination Unit 4 Quantization Unit 5 Encoding Unit 6 Image Discrimination Unit 7 Information Storage Unit 8 Decoding Unit 9 Inverse Quantization Unit 10 Inverse Discrete Cosine Transform Unit 11 Image Restoration Unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力画像を複数の画素からなるブロック
に分割し、ブロック毎に離散コサイン変換を行ない、変
換された変換係数を量子化テーブルを用いて量子化し、
量子化された係数を符号化する画像符号化制御方法にお
いて、 ブロック毎に離散コサイン変換された入力画像の色成分
を識別し、 識別された第1番目の色成分についてのみ画像の特徴を
判別し、 該判別結果を制御情報として情報格納手段に格納し、 該情報格納手段に格納された制御情報に基づいて、量子
化テーブルを適応的に切り換え制御することを特徴とす
る画像符号化制御方法。
1. An input image is divided into blocks composed of a plurality of pixels, discrete cosine transform is performed for each block, and the transformed transform coefficients are quantized using a quantization table,
In the image coding control method for coding the quantized coefficient, the color component of the input image subjected to the discrete cosine transform is identified for each block, and the feature of the image is identified only for the identified first color component. An image coding control method, wherein the discrimination result is stored as control information in information storage means, and the quantization table is adaptively switched and controlled based on the control information stored in the information storage means.
【請求項2】 離散コサイン変換を行なう離散コサイン
変換手段と、量子化テーブルを用いて量子化する量子化
手段と、該量子化手段で量子化されたデータを符号化す
る符号化手段とを有する画像符号化制御装置において、 カラー画像データを所定の色信号に変換する色信号変換
手段と、 該色信号変換手段で変換された色信号に基づいて、画像
の種類を判別する画像判別手段と、 該画像判別手段での判別結果に従って最適な量子化テー
ブルを設定する量子化テーブル設定手段とを有すること
を特徴とする画像符号化制御装置。
2. A discrete cosine transform means for performing a discrete cosine transform, a quantizing means for quantizing using a quantization table, and an encoding means for coding the data quantized by the quantizing means. In the image encoding control device, a color signal conversion unit that converts color image data into a predetermined color signal, and an image determination unit that determines the type of image based on the color signal converted by the color signal conversion unit, An image coding control device, comprising: a quantization table setting means for setting an optimum quantization table according to a discrimination result by the image discrimination means.
【請求項3】 カラー画像データを所定の色信号に変換
する色信号変換手段と、 該色変換手段で変換された色信号に基づいて、選択的に
文字領域を判定する文字領域判定手段と、 該文字領域判定手段での判定結果を保存する保存手段と
を備えることを特徴とする画像符号化制御装置。
3. A color signal conversion means for converting color image data into a predetermined color signal, and a character area determination means for selectively determining a character area based on the color signal converted by the color conversion means, An image coding control apparatus, comprising: a storage unit that stores the determination result of the character area determination unit.
JP4149262A 1992-06-09 1992-06-09 Image encoding control method and its device Pending JPH05344348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4149262A JPH05344348A (en) 1992-06-09 1992-06-09 Image encoding control method and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4149262A JPH05344348A (en) 1992-06-09 1992-06-09 Image encoding control method and its device

Publications (1)

Publication Number Publication Date
JPH05344348A true JPH05344348A (en) 1993-12-24

Family

ID=15471402

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4149262A Pending JPH05344348A (en) 1992-06-09 1992-06-09 Image encoding control method and its device

Country Status (1)

Country Link
JP (1) JPH05344348A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006155572A (en) * 2004-11-04 2006-06-15 Sharp Corp Image processor, image forming device, image processing method and computer program
JP2012114786A (en) * 2010-11-26 2012-06-14 Kyocera Document Solutions Inc Image processing system, image processing method, and image processing program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006155572A (en) * 2004-11-04 2006-06-15 Sharp Corp Image processor, image forming device, image processing method and computer program
JP4570534B2 (en) * 2004-11-04 2010-10-27 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, and computer program
JP2012114786A (en) * 2010-11-26 2012-06-14 Kyocera Document Solutions Inc Image processing system, image processing method, and image processing program

Similar Documents

Publication Publication Date Title
EP0535963B1 (en) Orthogonal transformation encoder
EP0510933B1 (en) Image processing apparatus and method
KR100303054B1 (en) Quantization matrix for still and moving picture coding
RU2273112C2 (en) Compression of image with utilization of discontinuous cosine transformation of adaptively determined size of block based on dispersion
JP3072776B2 (en) Image processing device
US5422736A (en) Multi-mode image processing permitting selection of quantization process according to image characteristics
JP4870743B2 (en) Selective chrominance decimation for digital images
JPH04323960A (en) Picture coding method and device
JPH04320160A (en) Picture signal compression expansion device and area identification processing unit
US20010043753A1 (en) System for compression of digital images comprising low detail areas
US20060140487A1 (en) Image compressing apparatus and image decoding apparatus and image converting apparatus and image processing method
JPH0487460A (en) Picture processor
JPH05344348A (en) Image encoding control method and its device
JP3101597B2 (en) Image storage method and apparatus
JPH0575875A (en) Picture encoding device
JPH07193838A (en) Coder
JPH05227441A (en) Digital picture signal compression device
JPH05284371A (en) Image data encoding method
KR100189523B1 (en) Image compression apparatus and method and decoding method by using image separation and arithmatic coding
JPH04139960A (en) Picture coder
JPH05183756A (en) Device and method for processing picture
JP2002064712A (en) Image processing unit
JPH05328143A (en) Color piclture coding device
JPH10126621A (en) Image compressing method/device
JPH06261340A (en) Image encoding device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010926