JP2507215B2 - Image coding device - Google Patents

Image coding device

Info

Publication number
JP2507215B2
JP2507215B2 JP7069992A JP7069992A JP2507215B2 JP 2507215 B2 JP2507215 B2 JP 2507215B2 JP 7069992 A JP7069992 A JP 7069992A JP 7069992 A JP7069992 A JP 7069992A JP 2507215 B2 JP2507215 B2 JP 2507215B2
Authority
JP
Japan
Prior art keywords
block
contour
pixel level
pixel
image
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.)
Expired - Lifetime
Application number
JP7069992A
Other languages
Japanese (ja)
Other versions
JPH05130433A (en
Inventor
秀樹 福田
正博 本城
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP7069992A priority Critical patent/JP2507215B2/en
Publication of JPH05130433A publication Critical patent/JPH05130433A/en
Application granted granted Critical
Publication of JP2507215B2 publication Critical patent/JP2507215B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/20Contour coding, e.g. using detection of edges

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、デジタル画像を圧縮し
て、伝送、記録する際に用いる画像符号化装置に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding apparatus used for compressing, transmitting and recording a digital image.

【0002】[0002]

【従来の技術】近年、デジタル画像の符号化方式とし
て、画像をブロックに分割しブロック毎に離散コサイン
変換(以下、DCTと呼ぶ)を行い、DCT係数を量子
化、符号化する方式が主流となってきた。このうち、各
ブロック内のDCT係数の交流成分の2乗和(以下、交
流電力と呼ぶ)の大きさに従って、複数のクラスに分類
し、クラス毎に適応的に符号化する方式が一般に用いら
れている。これは、画素レベルの変化が小さい平坦部の
符号化ノイズは目につきやすいが、複雑に画素レベルが
変化する複雑部においては、符号化ノイズは気にならな
いといった人間の視覚特性を利用したものである。つま
り、平坦部では細かい量子化を行い、複雑部では荒い量
子化をするものである。
2. Description of the Related Art In recent years, as a digital image encoding method, a method in which an image is divided into blocks, a discrete cosine transform (hereinafter referred to as DCT) is performed for each block, and DCT coefficients are quantized and encoded is mainstream. It's coming. Of these, a method of classifying into a plurality of classes according to the magnitude of the sum of squares of AC components of DCT coefficients in each block (hereinafter referred to as AC power) and adaptively encoding each class is generally used. ing. This is because the coding noise of the flat part where the pixel level change is small is noticeable, but the coding noise is not a concern in the complicated part where the pixel level changes complicatedly. is there. That is, fine quantization is performed in the flat portion, and rough quantization is performed in the complicated portion.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、圧縮率
が高くなるにつれて、特に画像の輪郭部に発生した符号
化雑音が目につくようになる。これは、輪郭部を含んだ
ブロックは交流電力の大きなクラスに分類され、画素レ
ベルの変化が小さい平坦部を含んだブロックにも関わら
ず、荒い量子化を行ってしまうためである。このように
して発生した平坦部の符号化ノイズは画質の劣化を著し
く招く。特に、DCT符号化方式では特有のブロックノ
イズが輪郭部に発生する問題点を有していた。
However, as the compression rate becomes higher, the coding noise generated especially in the contour portion of the image becomes noticeable. This is because a block including a contour portion is classified into a class of large AC power, and rough quantization is performed in spite of a block including a flat portion with a small change in pixel level. The coding noise of the flat portion thus generated causes a remarkable deterioration of the image quality. In particular, the DCT coding method has a problem that a particular block noise is generated in the contour portion.

【0004】そこで、画質劣化することなく、かつ高能
率な画像符号化を実現することが本発明の目的である。
Therefore, it is an object of the present invention to realize highly efficient image coding without deterioration of image quality.

【0005】[0005]

【0006】[0006]

【0007】[0007]

【0008】[0008]

【0009】[0009]

【0010】[0010]

【0011】[0011]

【0012】[0012]

【0013】[0013]

【課題を解決するための手段】本発明は、画像信号を近
接する複数の画素からなるブロックに分割する手段と
前記ブロックが輪郭部を含む輪郭ブロックであることを
検出する輪郭部検出手段と、前記輪郭ブロックに対して
符号化圧縮方法を変える符号化制御器とを具備し前記
輪郭部検出器は、変化量計算器と第一の比較器と第二の
比較器とを具備し、前記変化量計算器は符号化の対象と
する対象ブロックに含まれる画素の画素レベルの変化
量、および前記対象ブロックに隣接する複数個の隣接ブ
ロックに含まれる画素の画素レベルの変化量をブロック
毎に計算し、前記第一の比較器は前記対象ブロックの画
素レベル変化量が第一の所定量以上であることを検出
し、前記第二の比較器は前記隣接ブロックの画素レベル
変化量が第二の所定量以下であることを検出し、前記対
象ブロックの画素レベル変化量が第一の所定量以上であ
り、かつ前記隣接ブロックのうち一個あるいは複数個の
ブロックの画素レベル変化量が第二の所定量以下である
場合、前記対象ブロックを輪郭ブロックとして検出する
ように構成されものである。
According to the present invention, an image signal is approximated.
Means for dividing into blocks each composed of a plurality of contacting pixels ,
That the block is a contour block including a contour part
Contour detection means for detecting, and for the contour block
; And a coding controller for changing a coding compression method, the
The contour detector includes a change amount calculator, a first comparator and a second comparator, and the change amount calculator changes the pixel level of pixels included in a target block to be encoded. Amount, and a pixel level change amount of pixels included in a plurality of adjacent blocks adjacent to the target block are calculated for each block, and the first comparator determines that the pixel level change amount of the target block is the first level. The second comparator detects that the pixel level change amount of the adjacent block is less than or equal to a second predetermined amount, and the second comparator detects that the pixel level change amount of the target block is the first Is greater than or equal to a predetermined amount and the pixel level change amount of one or more of the adjacent blocks is less than or equal to a second predetermined amount, the target block is detected as a contour block. Also configured It is.

【0014】また前記符号化制御器は、対象とするブロ
ック内の信号列を量子化する量子化幅を決定する量子化
幅制御器を具備し、前記量子化幅制御器は輪郭部を含む
ブロック内の画素の画素レベルの量子化において量子化
幅を小さくするように構成されたものである。
Further, the coding controller includes a quantization width controller for determining a quantization width for quantizing a signal sequence in a target block, and the quantization width controller includes a block including a contour portion. It is configured to reduce the quantization width in the pixel-level quantization of the pixels inside.

【0015】またブロック毎に離散コサイン変換等の直
交変換を行い、重みづけ関数によって各ブロック内の変
換係数に対してそれぞれ重みづけした量子化幅で各変換
係数を量子化し符号化する変換符号化装置であって、前
記符号化制御器は前記重みづけ関数を制御する重みづけ
関数制御器を具備し、前記重みづけ関数制御器は符号化
の対象とする対象ブロックが輪郭部を含む場合、輪郭部
を含まないブロックと比較して細かい量子化を行うよう
に前記重みづけ関数を変えるように構成されたものであ
る。
Transform coding in which orthogonal transform such as discrete cosine transform is performed for each block, and each transform coefficient is quantized and coded with a quantization width weighted to the transform coefficient in each block by a weighting function. In the apparatus, the encoding controller includes a weighting function controller that controls the weighting function, and the weighting function controller includes a contour when a target block to be encoded includes a contour portion. It is configured to change the weighting function so as to perform finer quantization as compared with a block not including a part.

【0016】[0016]

【作用】これにより、画像信号に含まれる輪郭部を検出
し、前記輪郭部と前記輪郭部の周辺部において、符号化
圧縮率を抑制するように制御することによって、前記輪
郭部と前記輪郭部の周辺部の情報量割当が増加し符号化
ノイズが低減するため、画質劣化することなく、かつ高
能率な画像符号化が行えることとなる。
As a result, the contour portion included in the image signal is detected, and the contour portion and the contour portion are controlled by suppressing the coding compression rate in the contour portion and the peripheral portion of the contour portion. Since the amount of information allocation in the peripheral portion of is increased and the coding noise is reduced, it is possible to perform highly efficient image coding without degrading the image quality.

【0017】[0017]

【実施例】以下本発明の画像符号化方法及び画像符号化
装置の一実施例について、図面を参照しながら詳細に説
明する。ここでは、画像をブロックに分割しブロック毎
にDCT符号化する方法のうち、画素レベルの変化が小
さい部分では細かい量子化を、画素レベルが複雑に変化
する部分では荒い量子化を行う方法に本発明を適用した
場合を説明する。また、量子化器は線形量子化器を用
い、量子化幅はDCT係数によらず一定とし、量子化幅
を変化させることで符号化圧縮率の制御を行う。すなわ
ち、量子化幅を小さくすれば圧縮率は抑制する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an image encoding method and an image encoding apparatus according to the present invention will be described below in detail with reference to the drawings. Here, in the method of dividing an image into blocks and performing DCT coding for each block, a method of performing fine quantization in a portion where a pixel level change is small and rough quantization in a portion where a pixel level changes in a complicated manner is described. A case where the invention is applied will be described. A linear quantizer is used as the quantizer, the quantization width is constant regardless of the DCT coefficient, and the coding compression rate is controlled by changing the quantization width. That is, the compression rate is suppressed by reducing the quantization width.

【0018】以下では、画素レベルの変化が小さい部分
を平坦部、画素レベルが複雑に変化する部分を複雑部と
呼ぶことにする。
In the following, a portion having a small change in pixel level will be referred to as a flat portion, and a portion having a complicated change in pixel level will be referred to as a complex portion.

【0019】今、ブロックサイズを8×8画素とする。
まず、図1を用いて第1の実施例を説明する。図1は本
発明の第1の実施例における符号化装置の構成を示した
もので、輪郭部を検出する手段1、符号化制御器2によ
って構成されている。まず、輪郭部を検出する手段1に
よって画像信号内の輪郭部を検出し、検出された輪郭部
を含む所定範囲内の画像領域に対して符号化方法を制御
する。輪郭検出および符号化方法の制御はブロック毎に
行えばよいが、符号化方法を制御する画像領域の範囲は
ブロックに限らず、複数のブロックからなる画像領域で
あっても構わないし、またブロックよりも小さい画像領
域であっても構わない。
Now, assume that the block size is 8 × 8 pixels.
First, a first embodiment will be described with reference to FIG. FIG. 1 shows the configuration of an encoding apparatus according to the first embodiment of the present invention, which is composed of means 1 for detecting a contour portion and an encoding controller 2. First, the contour portion detecting unit 1 detects the contour portion in the image signal, and controls the encoding method for the image area within the predetermined range including the detected contour portion. The contour detection and the control of the encoding method may be performed for each block, but the range of the image area for controlling the encoding method is not limited to the block, and may be an image area composed of a plurality of blocks, or more than the block. May be a small image area.

【0020】次に、図2、図3、および図4(a)
(b)を用いて本実施例をさらに詳しく説明する。図2
は差分器3、比較器4から構成される輪郭部を検出する
手段1の一実施例を示している。また、図3は画像信号
を画素列として表現し、5〜12、13〜20はそれぞ
れブロック22、23に含まれる画素を示す。また21
は輪郭部に相当する。また、図4(a)において、図3
で示した画素列5〜20に対応する画素レベルを示して
いる。輪郭部21に相当する画素10から画素11にお
いて画素レベルが大きく変化している。
Next, FIGS. 2, 3 and 4 (a)
This example will be described in more detail with reference to FIG. Figure 2
Shows an embodiment of the means 1 for detecting the contour portion composed of the differencer 3 and the comparator 4. Further, FIG. 3 represents an image signal as a pixel column, and 5 to 12 and 13 to 20 represent pixels included in blocks 22 and 23, respectively. Again 21
Corresponds to the contour portion. In addition, in FIG.
The pixel levels corresponding to the pixel columns 5 to 20 shown by are shown. The pixel level greatly changes in the pixels 10 to 11 corresponding to the contour portion 21.

【0021】まず、輪郭部を検出するために、対象とす
る画素と隣接する画素間の差分値を差分器3によって計
算する。画素10の画素レベルをa、画素11の画素レ
ベルをbとすると、画素11を対象とした場合、 差分値は b−a である。図4(b)に差分器3の出力信号の一例を示し
ている。比較器4は差分器3の出力信号としきい値t1
とを比較し、図4(c)のような信号を出力する。これ
により輪郭部21を検出することができる。
First, in order to detect the contour portion, the difference value between the target pixel and the adjacent pixel is calculated by the differentiator 3. Assuming that the pixel level of the pixel 10 is a and the pixel level of the pixel 11 is b, the difference value is b−a when the pixel 11 is targeted. FIG. 4B shows an example of the output signal of the differentiator 3. The comparator 4 outputs the output signal of the differentiator 3 and the threshold value t1.
And are compared, and a signal as shown in FIG. Thereby, the contour portion 21 can be detected.

【0022】このようにして得られた輪郭部21を含む
ブロック22に対して、小さな量子化幅を選択して平坦
部のみのブロックと同様な細かい量子化を行い、複雑部
のみのブロックと比較して符号化圧縮率を抑制する。こ
うすることにより、輪郭部と輪郭部に隣接する平坦部に
生じるノイズが低減し、大きな画質改善が得ることがで
きる。ここで、差分信号をしきい処理するしきい値t1
は画素レベルを256階調とした場合、8前後に選べば
よいが、これに限るものでなく画面によって適応的に変
えてもよい。
For the block 22 including the contour portion 21 thus obtained, a small quantization width is selected to perform fine quantization similar to the block having only the flat portion, and compared with the block having only the complex portion. Then, the coding compression rate is suppressed. By doing so, noise generated in the contour portion and the flat portion adjacent to the contour portion is reduced, and a large improvement in image quality can be obtained. Here, a threshold value t1 for thresholding the difference signal
When the pixel level is set to 256 gradations, can be selected to be around 8, but it is not limited to this and may be adaptively changed depending on the screen.

【0023】なお、この実施例では隣接する1つの画素
との画素レベルの差を用いて輪郭検出を行ったが、周辺
にある複数の画素の画素レベルに適当な重み付けを行
い、その重み付けをした画素レベルの差に応じて輪郭部
を検出してもよい。次に図5、および図6(a)〜
(c)を参照して、この周辺画素の画素レベルに重み付
けを行う例を第2の実施例として以下に説明する。
In this embodiment, the contour detection is performed by using the difference in pixel level from one adjacent pixel, but the pixel levels of a plurality of peripheral pixels are appropriately weighted and weighted. The contour portion may be detected according to the difference in pixel level. Next, FIG. 5 and FIG.
An example in which the pixel level of the peripheral pixels is weighted will be described below as a second embodiment with reference to FIG.

【0024】図5は前処理器26、差分器27、および
比較器28から構成される輪郭部を検出する手段1の一
実施例を示している。ここで、差分器27と比較器28
は第1の実施例の差分器3、および比較器4と同様のも
のである。
FIG. 5 shows an embodiment of the means 1 for detecting the contour portion, which comprises a preprocessor 26, a differencer 27 and a comparator 28. Here, the differentiator 27 and the comparator 28
Is similar to the difference unit 3 and the comparator 4 of the first embodiment.

【0025】図6(a)で示す画像信号の画素列29〜
44において画素34から画素35において輪郭部45
が存在する。この場合、第1の実施例の輪郭検出方法に
よって輪郭検出すると、画素35〜44にみられるよう
な複雑部47に対しても輪郭部として検出してしまい、
細かい量子化を行うことがある。これでは、情報量の増
加を招き、かえって効率的な符号化が困難となる。
From the pixel row 29 of the image signal shown in FIG.
44, a pixel 34 to a pixel 35, a contour portion 45
Exists. In this case, when the contour is detected by the contour detecting method according to the first embodiment, the complex portion 47 such as the pixels 35 to 44 is also detected as the contour portion,
Fine quantization may be performed. This leads to an increase in the amount of information, and rather makes efficient encoding difficult.

【0026】そこで、前処理器26は一回の差分信号を
計算する前に周辺画素と平均化を行う。平均化を行うこ
とにより画素レベルの変化を減少させ、複雑部と輪郭部
とを区別し輪郭部のみを検出する。例えば、画素31の
画素レベルをd、画素32の画素レベルをe、画素33
の画素レベルをf、画素34の画素レベルをgとする
と、 画素32の平均化画素レベル (d+2e+f)/4 画素33の平均化画素レベル (e+2f+g)/4 で得られる。このようにして求めた前処理器26の出力
信号である平均化画素レベルを図6(b)に示してい
る。
Therefore, the preprocessor 26 performs averaging with the peripheral pixels before calculating the differential signal once. By performing averaging, the change in pixel level is reduced, the complex portion and the contour portion are distinguished, and only the contour portion is detected. For example, the pixel level of the pixel 31 is d, the pixel level of the pixel 32 is e, and the pixel 33 is
When the pixel level of the pixel is f and the pixel level of the pixel is g, the average pixel level of the pixel 32 is (d + 2e + f) / 4 and the average pixel level of the pixel 33 is (e + 2f + g) / 4. The averaged pixel level which is the output signal of the preprocessor 26 thus obtained is shown in FIG.

【0027】次に、輪郭検出の対象としている画素の平
均化した画素レベルと対象画素の周辺の画素の平均化し
た画素レベルとの差分を差分器27により計算する。例
えば、画素33を対象として平均化画素レベルの差分値
を計算すると、 画素33の平均化画素レベル差分値 (f+g−d−
e)/4 となる。
Next, the difference calculator 27 calculates the difference between the averaged pixel level of the target pixel for contour detection and the averaged pixel level of the peripheral pixels of the target pixel. For example, when the difference value of the averaged pixel level is calculated for the pixel 33, the averaged pixel level difference value of the pixel 33 (f + g−d−
e) / 4.

【0028】この差分信号の絶対値を第1の実施例と同
様に比較器28でしきい値t1と比較することにより、
比較器28の出力は図6(c)のようになり、輪郭部4
5を検出することができる。このようして画像内の輪郭
部を検出し、この輪郭部を含んだブロックに対して小さ
な量子化幅を選択し平坦部のみのブロックと同様な細か
い量子化を行い、複雑部のみのブロックと比較して符号
化圧縮率を抑制する。こうすることにより、輪郭部と輪
郭部に隣接する平坦部に発生するノイズが低減し大きな
画質改善が得ることができる。
By comparing the absolute value of this difference signal with the threshold value t1 by the comparator 28 as in the first embodiment,
The output of the comparator 28 is as shown in FIG.
5 can be detected. In this way, the contour part in the image is detected, a small quantization width is selected for the block including this contour part, and the same fine quantization as that of the block of the flat part is performed. The encoding compression rate is suppressed by comparison. By doing so, noise generated in the contour portion and the flat portion adjacent to the contour portion is reduced, and a large improvement in image quality can be obtained.

【0029】なお、ここでは隣接する2画素のみによっ
て平均化処理を行ったが、任意個の周辺の画素によって
平均化してもよい。また、平均化の重み付けも上述した
例に限るものでなく、画面に応じて適応的に重み付けを
変えてもよい。
Although the averaging process is performed only for two adjacent pixels here, the averaging process may be performed for any number of peripheral pixels. Also, the weighting for averaging is not limited to the above example, and the weighting may be adaptively changed according to the screen.

【0030】また、図7で示すような画素48〜53に
みられる複雑部65と画素54〜63にみられる複雑部
66との間の輪郭部64とその周辺部に発生した符号化
ノイズは人間の目につきにくい。一方、図4(a)で示
したような画素5〜10にみられる平坦部24と画素1
1〜20にみられる平坦部24間の輪郭部21、もしく
は図6(a)で示したような画素29〜34にみられる
平坦部46と画素35〜44にみられる複雑部47間の
輪郭部45においては、平坦部24、25、および46
で発生する符号化ノイズが著しく画質を劣化させる。
Further, the coding noise generated in the contour portion 64 between the complex portion 65 seen in the pixels 48 to 53 and the complex portion 66 seen in the pixels 54 to 63 as shown in FIG. Hard to see by humans. On the other hand, the flat portion 24 and the pixel 1 seen in the pixels 5 to 10 as shown in FIG.
1 to 20, the contour portion 21 between the flat portions 24, or the contour between the flat portion 46 seen in the pixels 29 to 34 and the complex portion 47 seen in the pixels 35 to 44 as shown in FIG. In section 45, flats 24, 25, and 46
The coding noise generated in step S1 significantly deteriorates the image quality.

【0031】そこで、特に平坦部と隣接した輪郭部のみ
を検出し、この輪郭部を含むブロックを符号化する場合
は平坦部のみのブロックと同様な細かい量子化を行い符
号化圧縮率を抑制し、複雑部と複雑部間の輪郭部に関し
ては複雑部のみのブロックと同様に量子化、符号化すれ
ばよい。また、平坦部は対象とする画素の周辺にある所
定範囲内の周辺画素の画素レベルの変化量を計算し、所
定量以下であれば平坦部として検出することができる。
Therefore, in particular, when only the contour portion adjacent to the flat portion is detected and the block including the contour portion is encoded, the same fine quantization as that of the block having only the flat portion is performed to suppress the encoding compression rate. As for the complex portion and the contour portion between the complex portions, the quantization and coding may be performed similarly to the block having only the complex portion. In addition, the flat portion can be detected as a flat portion if the amount of change in pixel level of peripheral pixels within a predetermined range around the target pixel is calculated and the amount is equal to or less than the predetermined amount.

【0032】次に、この平坦部と隣接した輪郭部を検出
する例を図8を参照して第3の実施例として説明する。
図8は変化量計算器67、比較器68、および輪郭検出
器69から構成される輪郭部を検出する手段1の一例を
示している。ここでは、対象とする画素の周辺にある画
素の画素レベルの分散を計算し、この分散の大きさにし
たがって平坦部を検出する方法をあげている。
Next, an example of detecting the contour portion adjacent to the flat portion will be described as a third embodiment with reference to FIG.
FIG. 8 shows an example of the means 1 for detecting the contour portion, which is composed of the change amount calculator 67, the comparator 68, and the contour detector 69. Here, a method of calculating the pixel level variance of pixels around the target pixel and detecting the flat portion according to the magnitude of this variance is given.

【0033】今、図6(a)で示した画素35を対象と
して平坦部検出、及び輪郭部検出を行う例について説明
する。
Now, an example of performing flat portion detection and contour portion detection for the pixel 35 shown in FIG. 6A will be described.

【0034】まず、変化量計算器67は画素35の周辺
画素31〜34、36〜39の分散σ1 2、σ2 2をそれぞ
れ計算し出力する。例えば、σ1 2は以下のように計算す
る。ここで、画素31〜34の画素レベルをそれぞれ
d、e、f、gとし、画素36〜39の画素レベルの平
均値をMとしている。
First, the variation calculator 67 calculates and outputs the variances σ 1 2 and σ 2 2 of the peripheral pixels 31 to 34 and 36 to 39 of the pixel 35, respectively. For example, σ 1 2 is calculated as follows. Here, the pixel levels of the pixels 31 to 34 are d, e, f, and g, respectively, and the average value of the pixel levels of the pixels 36 to 39 is M.

【0035】 σ1 2=[(d−M)2+(e−M)2+(f−M)2+(g−M)2]/4 M=(d+e+f+g)/4 次に比較器68は変化量計算器67の出力であるσ1 2
σ2 2と所定量t2とを比較し、 σ1 2 < t2 σ2 2 > t2 であれば、画素31〜34は平坦部46に含まれている
と認識され、36〜39は複雑部47に含まれていると
認識することができる。ここで所定量t2は画素レベル
が256階調の場合、15前後に選ばれるが、これに限
るものでなく画面によって適応的に変化させてもよい。
Σ 1 2 = [(d−M) 2 + (e−M) 2 + (f−M) 2 + (g−M) 2 ] / 4 M = (d + e + f + g) / 4 Next, the comparator 68 Is the output of the variation calculator 67, σ 1 2 ,
σ 2 2 is compared with the predetermined amount t2, and if σ 1 2 <t2 σ 2 2 > t2, it is recognized that the pixels 31 to 34 are included in the flat portion 46, and 36 to 39 are complex portions 47. Can be recognized as included in. Here, the predetermined amount t2 is selected to be around 15 when the pixel level is 256 gradations, but it is not limited to this and may be adaptively changed depending on the screen.

【0036】このように、画素35が平坦部46に隣接
していることが認識されると、輪郭検出器69は画素3
5に対して輪郭部検出を行う。
In this way, when it is recognized that the pixel 35 is adjacent to the flat portion 46, the contour detector 69 determines that the pixel 3 is adjacent to the flat portion 46.
5. Contour detection is performed on 5.

【0037】画素35が輪郭部45として認識されると
画素35を含むブロックに対して、小さな量子化幅を選
択することにより、平坦部のみのブロックと同様に細か
く量子化し符号化圧縮率を複雑部のブロックと比較して
抑制する。こうすることにより、輪郭部に隣接した平坦
部に発生するノイズを低減し、大きな画質改善が得られ
る。
When the pixel 35 is recognized as the contour portion 45, a small quantization width is selected for the block including the pixel 35, so that the pixel is finely quantized similarly to the block having only the flat portion and the encoding compression rate is complicated. Suppress compared to the block of part. By doing so, noise generated in the flat portion adjacent to the contour portion can be reduced, and a large improvement in image quality can be obtained.

【0038】なお、輪郭検出器69は、第1の実施例お
よび第2の実施例であげた輪郭部を検出する手段等で検
出すればよいが、これらに限るものではない。
The contour detector 69 may be detected by the means for detecting the contour portion mentioned in the first and second embodiments, but is not limited to these.

【0039】また、周辺画素として、前後それぞれ4個
の画素を用いたがこれに限るものではなく、例えば6個
であっても構わない。また、画面によって適応的に変化
させることによってより効率的な符号化が行える。
Further, as the peripheral pixels, four pixels are used in each of the front and rear, but the number of peripheral pixels is not limited to this, and may be six, for example. Further, more efficient coding can be performed by adaptively changing the screen.

【0040】また、周辺画素が平坦部であるか否かを検
出した後、輪郭部の検出を行っているが、輪郭部の検出
を行った後、周辺画素が平坦部であるか否かを検出し、
輪郭部でかつ周辺部が平坦であれば符号化圧縮率を制御
すればよい。
Further, the contour portion is detected after detecting whether or not the peripheral pixel is a flat portion. However, after detecting the contour portion, it is determined whether or not the peripheral pixel is a flat portion. Detect and
If the contour portion and the peripheral portion are flat, the coding compression rate may be controlled.

【0041】また、平坦部の検出方法は上述した方法に
限るものでなく、画素レベルの変化量を示す尺度であれ
ば何でもよい。例えば、周辺画素の画素レベルから前記
周辺画素の平均値をそれぞれ引いたものの絶対値の和で
もよいし、また、近接する画素とのレベル差の2乗和、
もしくは絶対値の和などで評価してもよい。
Further, the method of detecting the flat portion is not limited to the above-mentioned method, and any method may be used as long as it is a scale showing the amount of change in the pixel level. For example, it may be the sum of absolute values obtained by subtracting the average value of the peripheral pixels from the pixel level of the peripheral pixels, or the sum of squares of the level difference between adjacent pixels,
Alternatively, the sum of absolute values may be used for evaluation.

【0042】なお、上述の3つの実施例では1次元的に
示した例であり、横方向、縦方向、斜め方向のすべて又
はいずれかの周辺の画素を用いて上記処理を行うように
してもよい。
The above-described three embodiments are one-dimensional examples, and the above-described processing may be performed using the pixels in the horizontal direction, the vertical direction, the oblique direction, or any one of the peripheral pixels. Good.

【0043】また、ブロックサイズを8×8画素として
いるが、これに限定するものではなく、さらに2次元の
ブロックを用いているが、1次元ブロックであっても構
わない。
Although the block size is set to 8 × 8 pixels, the block size is not limited to this, and a two-dimensional block is used, but a one-dimensional block may be used.

【0044】また、線形量子化器を用いることを仮定
し、小さな量子化幅を選択することで細かい量子化を行
うとしたが、線形量子化器に限らず、他のスカラ量子化
器を用いた場合でも、輪郭部とその周辺部では圧縮率を
抑制させ細かい量子化を行えばよい。
Although it is assumed that a linear quantizer is used and fine quantization is performed by selecting a small quantization width, it is not limited to a linear quantizer but another scalar quantizer may be used. Even in such a case, the compression rate may be suppressed and fine quantization may be performed in the contour portion and its peripheral portion.

【0045】また、平坦部においては細かい量子化、複
雑部においては荒い量子化をする方式を例にあげたが、
これに限るものでなく平坦部、複雑部を区別しない方式
においても、輪郭部とその周辺部において圧縮率を他の
部分と比較して符号化圧縮率を制御すれば、効率的な符
号化が行える。
In addition, a method of fine quantization in the flat portion and rough quantization in the complex portion has been taken as an example.
Not limited to this, even in a method in which a flat portion and a complicated portion are not distinguished, efficient coding can be performed by controlling the coding compression rate by comparing the compression rate with other portions in the contour portion and its peripheral portion. You can do it.

【0046】また、量子化幅はブロック内で一様である
場合を例で示しているがこれに限るものでなく、変換係
数に応じて量子化幅を変える場合であっても、輪郭部と
輪郭部の周辺に関して細かい量子化を行い、符号化圧縮
率を制御すればよい。
Further, although the case where the quantization width is uniform in the block is shown as an example, the present invention is not limited to this, and even when the quantization width is changed according to the transform coefficient, Fine coding may be performed on the periphery of the contour portion to control the coding compression rate.

【0047】また、上述した例では、輪郭部の検出、平
坦部の検出において1画素単位で行う方法をあげたが、
1画素単位に限るものでなく近接する複数の画素単位で
行っても構わない。
Further, in the above-mentioned example, the method of detecting the contour portion and the flat portion by one pixel unit has been described.
The number of pixels is not limited to one pixel and may be performed in units of a plurality of adjacent pixels.

【0048】次に、図9を用いて本発明の第4の実施例
を説明する。図9は変化量計算器70、第一の比較器7
1、第二の比較器72、および論理積器73から構成さ
れる輪郭部を検出する手段1を示したものである。変化
量計算器70は、符号化の対象としている対象ブロック
に含まれる画素の画素レベルの変化量と、対象ブロック
に隣接する複数の隣接ブロックにそれぞれ含まれる画素
の画素レベルの変化量とを計算し出力するものである。
第一の比較器71は、対象ブロックの画素レベルの変化
量が第一の所定量t3以上であることを検出する。
Next, a fourth embodiment of the present invention will be described with reference to FIG. FIG. 9 shows the variation calculator 70 and the first comparator 7.
1 shows a means 1 for detecting a contour portion including a first comparator 72, a second comparator 72, and a logical product 73. The change amount calculator 70 calculates a change amount of a pixel level of a pixel included in a target block that is an encoding target and a change amount of a pixel level of a pixel included in each of a plurality of adjacent blocks adjacent to the target block. And output it.
The first comparator 71 detects that the amount of change in the pixel level of the target block is not less than the first predetermined amount t3.

【0049】また、第二の比較器72は、隣接ブロック
の画素レベルの変化量が第二の所定量t4以下であるこ
とを調べ、少なくとも一個の隣接ブロックが第二の所定
量t4以下であることを検出する。論理積器73は、第
一の比較器71の出力と第2の比較器72の出力との論
理積をとり出力するものである。つまり、対象ブロック
の画素レベルの変化量が第一の所定量t3以上であり、
かつ少なくとも一個の隣接ブロックの画素レベルの変化
量が第二の所定量t4以下である場合、対象ブロックは
輪郭部を含むブロック、すなわち輪郭ブロックとして検
出するものである。
Further, the second comparator 72 checks that the amount of change in the pixel level of the adjacent block is the second predetermined amount t4 or less, and at least one adjacent block is the second predetermined amount t4 or less. Detect that. The logical product 73 takes the logical product of the output of the first comparator 71 and the output of the second comparator 72 and outputs the logical product. That is, the amount of change in the pixel level of the target block is not less than the first predetermined amount t3,
If the pixel level change amount of at least one adjacent block is equal to or smaller than the second predetermined amount t4, the target block is detected as a block including a contour portion, that is, a contour block.

【0050】この第4の実施例は、輪郭部を含んだブロ
ックは画素レベルの変化量が大きくなることを利用する
ものであり、検出された輪郭ブロックに対しては符号化
圧縮方法を制御する。このように構成することにより、
平坦部に隣接する輪郭部を検出することができ、検出さ
れた輪郭ブロックに対して符号化圧縮方法を制御するこ
とにより効率的な符号化圧縮が可能となる。
The fourth embodiment utilizes the fact that the block including the contour portion has a large amount of change in pixel level, and the coding compression method is controlled for the detected contour block. . By configuring in this way,
The contour portion adjacent to the flat portion can be detected, and efficient coding and compression can be performed by controlling the coding and compression method for the detected contour block.

【0051】なお、対象ブロックに隣接する隣接ブロッ
クは対象ブロックの上下、左右の四つのブロックであっ
ても構わないし、さらに斜めに位置する四つのブロック
を加えて、計八つのブロックであっても構わない。
The adjacent blocks adjacent to the target block may be four blocks above and below and to the left and right of the target block, or may be a total of eight blocks in addition to the four blocks positioned diagonally. I do not care.

【0052】また、第4の実施例では隣接ブロックのう
ち少なくとも一個のブロックが第二の所定量t3以下で
あることを検出したが、これに限るものでなく隣接ブロ
ックのうちの二個あるいは三個でもいくらでも構わず、
符号化の対象となっている画像によって適応的に変えれ
ばより効率的に符号化を行うことができる。
In the fourth embodiment, it is detected that at least one of the adjacent blocks has the second predetermined amount t3 or less. However, the present invention is not limited to this, and two or three of the adjacent blocks are detected. No matter how many or how many,
By changing adaptively according to the image to be encoded, the encoding can be performed more efficiently.

【0053】画素レベルの変化量の計算は、例えばブロ
ックに含まれる画素の画素レベルの分散を計算しても構
わないし、ブロック毎に離散コサイン変換を行った後に
交流成分の二乗和、すなわち交流エネルギーを計算して
も構わないし、画素レベルの変化量を示す尺度のもので
あれば何でもよい。画素レベルの変化量として画素レベ
ルの分散を計算する場合、第一の所定量t3および第二
の所定量t4は、画素レベルが256階調のときそれぞ
れ16、100程度がよいがこれに限るものでなく、画
像によって適応的に変えても効率的な符号化を行うこと
ができる。
The calculation of the change amount of the pixel level may be performed, for example, by calculating the pixel level variance of the pixels included in the block, or after performing the discrete cosine transform for each block, the sum of squares of the AC component, that is, the AC energy. May be calculated, and any value may be used as long as it is a scale indicating the amount of change in the pixel level. When calculating the variance of the pixel level as the change amount of the pixel level, the first predetermined amount t3 and the second predetermined amount t4 are preferably about 16 and 100 when the pixel level is 256 gradations, but are not limited to this. Alternatively, efficient coding can be performed even if the image is adaptively changed.

【0054】次に本発明の第5の実施例について図10
を用いて説明する。図10は輪郭部を検出する手段1
と、量子化幅制御器74および量子化器75から構成さ
れる符号化制御器2の一例を示している。輪郭部を検出
する手段1は前述の実施例で示したものでも構わない
し、画像に含まれている輪郭部を検出するものであれば
何でもよい。量子化幅制御器74は所定範囲の画像領域
の信号の量子化に用いる量子化幅を決定するものであ
り、量子化器75は量子化幅制御器74で決定された量
子化幅で所定範囲の画像領域の信号を量子化する。量子
化幅制御器74は所定範囲の画像領域に輪郭部がある場
合、輪郭部を含まない画像領域よりも小さい量子化幅を
選択する。その結果、量子化器75は細かい量子化を行
い、符号化圧縮率を抑制する。
Next, a fifth embodiment of the present invention will be described with reference to FIG.
Will be explained. FIG. 10 shows means 1 for detecting a contour portion.
And an example of the encoding controller 2 including a quantization width controller 74 and a quantizer 75. The means 1 for detecting the contour part may be the one shown in the above-mentioned embodiment, or any means for detecting the contour part included in the image. The quantization width controller 74 determines the quantization width used for quantizing the signal in the image area of a predetermined range, and the quantizer 75 determines the quantization width determined by the quantization width controller 74 within a predetermined range. Quantize the signal in the image area of. The quantization width controller 74 selects a quantization width smaller than that of an image area that does not include the contour portion when the contour portion exists in the image area of the predetermined range. As a result, the quantizer 75 performs fine quantization to suppress the coding compression rate.

【0055】このように符号化制御器を構成することに
より、輪郭部と輪郭部に隣接する平坦部での符号化ノイ
ズが低減し画質の向上が得られる。なお、量子化幅を制
御する画像領域の範囲は一個のブロックで限ってもよい
し、複数のブロックからなる画像領域でもよい。また、
量子化幅の制御は画像の平坦部と同様な量子化幅で量子
化してもよいし、平坦部よりも小さくしてもよく、画素
レベルが複雑に変化する画像領域での量子化幅よりも小
さければよい。
By configuring the coding controller in this way, coding noise in the contour portion and the flat portion adjacent to the contour portion is reduced and the image quality is improved. The range of the image area for controlling the quantization width may be limited to one block, or may be an image area including a plurality of blocks. Also,
The quantization width may be quantized with the same quantization width as the flat portion of the image, or may be smaller than the flat portion, and may be smaller than the quantization width in the image area where the pixel level changes intricately. It should be small.

【0056】次に本発明の第6の実施例について図11
を用いて説明する。図11は重みづけ関数制御器76、
および量子化器77から構成される符号化制御器2の一
例と輪郭部を検出する手段1を示したものである。この
実施例では、画像をブロックに分割しブロック毎にDC
Tを行い各変換係数に対して重みづけ関数により基本の
量子化幅に重みづけした量子化幅で量子化する場合につ
いて説明する。一般的に重みづけ関数は人間の視覚特性
等から低周波数成分の係数に対しては細かい量子化を行
い、周波数が高くなるにしたがって荒い量子化を行うよ
うになっている。重みづけ関数制御器76は符号化の対
象ブロックに輪郭部が含まれている場合、輪郭部を含ま
ないブロックと比較して、細かい量子化が行えるように
重みづけ関数を変えるものである。
Next, a sixth embodiment of the present invention will be described with reference to FIG.
Will be explained. FIG. 11 shows the weighting function controller 76,
3 shows an example of a coding controller 2 composed of a quantizer 77 and a means 1 for detecting a contour portion. In this embodiment, the image is divided into blocks and DC is applied to each block.
A case will be described in which T is performed and each transform coefficient is quantized by a quantization width obtained by weighting a basic quantization width with a weighting function. Generally, the weighting function performs fine quantization on the coefficient of the low frequency component due to human visual characteristics and the like, and performs rough quantization as the frequency increases. The weighting function controller 76 changes the weighting function so that fine quantization can be performed when the block to be encoded includes a contour portion, as compared with a block that does not include the contour portion.

【0057】細かい量子化を行うために、高周波数成分
においても荒い量子化を行わないように重みづけ関数を
変えてもよいし、基本の量子化幅を小さくすることによ
り全体的に細かい量子化を行ってもよい。量子化器77
は重みづけ関数制御器76で決定された重みづけ関数で
重みづけられた量子化幅で量子化する。このように輪郭
部を含むブロックに対して量子化幅の重みづけ関数を変
えることにより、輪郭部の周辺に生じる符号化ノイズを
低減し画質の向上が得られ、効率的な符号化が実現でき
る。
In order to perform fine quantization, the weighting function may be changed so as not to perform rough quantization even in high frequency components, or the basic quantization width may be reduced to obtain fine quantization overall. You may go. Quantizer 77
Is quantized with the quantization width weighted by the weighting function determined by the weighting function controller 76. By changing the weighting function of the quantization width for the block including the contour portion in this way, coding noise generated around the contour portion can be reduced, image quality can be improved, and efficient coding can be realized. .

【0058】なお、輪郭部を検出する手段1は符号化の
対象ブロックに輪郭部が存在することを検出するもので
あり、第2、第3、および第5の実施例であげたものな
ど何でもよい。
The means 1 for detecting the contour portion is for detecting the presence of the contour portion in the target block to be coded, and any means such as those mentioned in the second, third and fifth embodiments can be used. Good.

【0059】なお、前述の第1から第7の実施例ではD
CTを行う例を示したが、これに限るものではなく、ア
ダマール変換、フーリエ変換、離散サイン変換等の直交
変換など、画像をブロックに分割しブロック毎に符号化
するものであれば何でも用いることができる。
In the first to seventh embodiments described above, D
Although the example of performing CT has been shown, the present invention is not limited to this, and any method such as Hadamard transform, Fourier transform, or orthogonal transform such as discrete sine transform that divides an image into blocks and encodes each block can be used. You can

【0060】また、量子化器はスカラ量子化器に限ら
ず、ベクトル量子化器においても輪郭部を含むブロック
は細かく量子化し圧縮率を抑制すればよい。
The quantizer is not limited to the scalar quantizer, and the block including the contour portion may be finely quantized in the vector quantizer to suppress the compression rate.

【0061】また、輪郭部を含む所定範囲内の画像領域
対して変換方式を変えてもよい。例えば、DCTを行う
装置の場合、輪郭部を含む画像領域であればブロックサ
イズを変えたりしてもよく、また他の直交変換を用いて
もよい。
Further, the conversion method may be changed for the image area within the predetermined range including the contour portion. For example, in the case of a device that performs DCT, the block size may be changed as long as it is an image region including a contour portion, and other orthogonal transformation may be used.

【0062】また、輪郭部を含む画像領域に対してのみ
ベクトル量子化符号化装置を用いても構わないし、サブ
バンド符号化装置、ウェーブレット符号化装置など輪郭
部を含まない画像領域とは異なる符号化装置を用いて符
号化してもよい。
Further, the vector quantization coding device may be used only for the image region including the contour portion, and a code different from that of the image region not including the contour portion such as a sub-band coding device or a wavelet coding device. The encoding may be performed by using an encoding device.

【0063】[0063]

【発明の効果】以上のように本発明は、画像信号を近接
する複数の画素からなるブロックに分割し符号化処理す
る方法において、前記画像信号内の輪郭部を検出し、前
記輪郭部を含む所定範囲内の画像領域に対して符号化圧
縮方法を変えることにより、輪郭部と輪郭部に隣接する
平坦部に生じるノイズが低減し、大きな画質改善が得る
ことができる。
As described above, according to the present invention, in a method of dividing an image signal into blocks composed of a plurality of adjacent pixels and performing an encoding process, a contour portion in the image signal is detected and the contour portion is included. By changing the encoding / compression method for the image region within the predetermined range, noise generated in the contour portion and the flat portion adjacent to the contour portion is reduced, and a large improvement in image quality can be obtained.

【0064】また、符号化の対象としている対象ブロッ
クに含まれる画素の画素レベルの変化量、および前記対
象ブロックに隣接する複数個の隣接ブロックに含まれる
画素の画素レベルの変化量をブロック毎に計算し、前記
対象ブロックの画素レベル変化量が第一の所定量以上で
あり、かつ前記隣接ブロックのうちの一個あるいは複数
個のブロックの画素レベル変化量が第二の所定量以下で
ある場合、前記対象ブロックを輪郭部を含んだ輪郭ブロ
ックとして検出し、前記輪郭ブロックに対して符号化圧
縮方法を変えることにより、平坦部に隣接する輪郭部を
明確に検出することができ、検出された輪郭ブロックに
対して符号化圧縮方法を制御することにより効率的な符
号化圧縮が可能となる。
The amount of change in pixel level of pixels included in the target block to be encoded and the amount of change in pixel level of pixels included in a plurality of adjacent blocks adjacent to the target block are determined for each block. If the pixel level change amount of the target block is equal to or more than a first predetermined amount and the pixel level change amount of one or more blocks of the adjacent blocks is equal to or less than a second predetermined amount, By detecting the target block as a contour block including a contour portion and changing the coding compression method for the contour block, the contour portion adjacent to the flat portion can be clearly detected. By controlling the coding / compression method for blocks, efficient coding / compression can be performed.

【0065】また、本発明の画像符号化装置は前述の画
像符号化方法を実現するための装置であり、画像信号を
近接する複数の画素からなるブロックに分割し符号化処
理する装置において、画像信号内の輪郭部を検出する手
段と、前記輪郭部を検出する手段によって検出された前
記輪郭部を含む所定範囲内の画像領域に対して符号化圧
縮方法を変える符号化制御器とを具備するように構成す
ることにより、前記輪郭部と前記輪郭部の周辺部の符号
化ノイズが低減するため、画質劣化することなく、かつ
高能率な画像符号化が行うことができる。
Further, the image coding apparatus of the present invention is an apparatus for realizing the above-mentioned image coding method, and in an apparatus for dividing an image signal into blocks made up of a plurality of adjacent pixels and performing a coding process, And a coding controller for changing a coding compression method for an image area within a predetermined range including the contour detected by the means for detecting the contour. With this configuration, the coding noise in the contour portion and the peripheral portion of the contour portion is reduced, so that highly efficient image coding can be performed without deterioration in image quality.

【0066】また前記輪郭部を検出する手段は、変化量
計算器と第一の比較器と第二の比較器とを具備し、前記
変化量計算器は符号化の対象とする対象ブロックに含ま
れる画素の画素レベルの変化量、および前記対象ブロッ
クに隣接する複数個の隣接ブロックに含まれる画素の画
素レベルの変化量をブロック毎に計算し、前記第一の比
較器は前記対象ブロックの画素レベル変化量が第一の所
定量以上であることを検出し、前記第二の比較器は前記
隣接ブロックの画素レベル変化量が第二の所定量以下で
あることを検出し、前記対象ブロックの画素レベル変化
量が第一の所定量以上であり、かつ前記隣接ブロックの
うちの一個あるいは複数個のブロックの画素レベル変化
量が第二の所定量以下である場合、前記対象ブロックを
輪郭部を含んだブロック、すなわち輪郭部ブロックとし
て検出し、符号化制御器は前記輪郭ブロックに対して符
号化圧縮方法を変えるように構成されたものであり、こ
のように構成することにより、平坦部に隣接する輪郭部
を明確に検出することができ、検出された輪郭ブロック
に対して符号化圧縮方法を制御することにより画質劣化
することなく、効率的な符号化圧縮が可能となる。
The means for detecting the contour portion includes a change amount calculator, a first comparator and a second comparator, and the change amount calculator is included in a target block to be encoded. Calculated for each block, the pixel level change amount of a pixel included in a plurality of adjacent blocks adjacent to the target block, and the first comparator calculates the pixel level change amount of the pixel of the target block. The level change amount is detected to be a first predetermined amount or more, the second comparator detects that the pixel level change amount of the adjacent block is a second predetermined amount or less, the target block of the target block When the pixel level change amount is equal to or more than a first predetermined amount and the pixel level change amount of one or a plurality of blocks of the adjacent blocks is equal to or less than a second predetermined amount, the target block is changed to a contour portion. Included The contour block is detected, and the coding controller is configured to change the coding compression method for the contour block. By configuring in this way, the coding controller is adjacent to the flat portion. The contour portion can be clearly detected, and by controlling the coding / compression method for the detected contour block, efficient coding / compression can be performed without image quality deterioration.

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

【図1】本発明の実施例における画像符号化装置の基本
ブロック図
FIG. 1 is a basic block diagram of an image coding apparatus according to an embodiment of the present invention.

【図2】本発明の第1の実施例における輪郭部を検出す
る手段のブロック図
FIG. 2 is a block diagram of means for detecting a contour portion according to the first embodiment of the present invention.

【図3】本発明の画像信号を画素列として表現した説明
FIG. 3 is an explanatory view showing an image signal of the present invention as a pixel column.

【図4】(a)は本発明の第1の実施例における画素レ
ベルを示す特性図 (b)は同画素レベルの差分信号を示す特性図 (c)は同しきい処理した差分信号の特性図
FIG. 4A is a characteristic diagram showing a pixel level in the first embodiment of the present invention, FIG. 4B is a characteristic diagram showing a differential signal at the same pixel level, and FIG. 4C is a characteristic of a differential signal subjected to the threshold processing. Figure

【図5】本発明の第2の実施例における輪郭部を検出す
る手段のブロック図
FIG. 5 is a block diagram of means for detecting a contour portion according to the second embodiment of the present invention.

【図6】(a)は本発明の第2の実施例における画素レ
ベルを示す特性図 (b)は同平均化した画素レベルを示す特性図 (c)は同しきい処理した平均化画素レベルの差分信号
の特性図
FIG. 6A is a characteristic diagram showing a pixel level in the second embodiment of the present invention, FIG. 6B is a characteristic diagram showing the same averaged pixel level, and FIG. 6C is an averaged pixel level obtained by the same threshold processing. Difference signal characteristic diagram

【図7】本発明の画素レベルが複雑に変化する部分間の
輪郭部の説明図
FIG. 7 is an explanatory diagram of a contour portion between portions where the pixel level changes intricately according to the present invention.

【図8】本発明の第3の実施例における輪郭部を検出す
る手段のブロック図
FIG. 8 is a block diagram of means for detecting a contour portion in the third embodiment of the present invention.

【図9】本発明の第4の実施例における輪郭部を検出す
る手段のブロック図
FIG. 9 is a block diagram of means for detecting a contour portion in the fourth embodiment of the present invention.

【図10】本発明の第5の実施例における符号化制御器
のブロック図
FIG. 10 is a block diagram of an encoding controller according to a fifth embodiment of the present invention.

【図11】本発明の第6の実施例における符号化制御器
のブロック図
FIG. 11 is a block diagram of an encoding controller according to a sixth embodiment of the present invention.

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

1 輪郭部を検出する手段 2 符号化制御器 3 差分器 4 比較器 5〜20 画素列 21 輪郭部 22 ブロック 23 ブロック 24 画素レベルの変化が小さい平坦部 25 画素レベルの変化が小さい平坦部 26 前処理器 27 差分器 28 比較器 29〜44 画素列 45 輪郭部 46 画素レベルの変化が小さい平坦部 48〜63 画素列 64 輪郭部 47 画素レベルの変化が大きい複雑部 65 画素レベルの変化が大きい複雑部 66 画素レベルの変化が大きい複雑部 67 変化量計算器 68 比較器 69 輪郭検出器 70 変化量計算器 71 第一の比較器 72 第二の比較器 73 論理積器 74 量子化幅制御器 75 量子化器 76 重みづけ関数制御器 75 量子化器 1 means for detecting a contour portion 2 coding controller 3 differencer 4 comparator 5-20 pixel column 21 contour portion 22 block 23 block 24 flat portion with small change in pixel level 25 flat portion with small change in pixel level 26 before Processor 27 Differencer 28 Comparator 29-44 Pixel column 45 Contour part 46 Flat part with small change in pixel level 48-63 Pixel column 64 Contour part 47 Complex part with large change in pixel level 65 Complex with large change in pixel level Part 66 Complex part with large change in pixel level 67 Change amount calculator 68 Comparator 69 Contour detector 70 Change amount calculator 71 First comparator 72 Second comparator 73 AND gate 74 Quantization width controller 75 Quantizer 76 Weighting function controller 75 Quantizer

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画像信号を近接する複数の画素からなる
ブロックに分割する手段と、前記ブロックが輪郭部を含
む輪郭ブロックであることを検出する輪郭部検出手段
と、前記輪郭ブロックに対して符号化圧縮方法を変える
符号化制御器とを具備し、前記輪郭部検出器は、変化量
計算器と第一の比較器と第二の比較器とを具備し、前記
変化量計算器は符号化の対象とする対象ブロックに含ま
れる画素の画素レベルの変化量、および前記対象ブロッ
クに隣接する複数個の隣接ブロックに含まれる画素の画
素レベルの変化量をブロック毎に計算し、前記第一の比
較器は前記対象ブロックの画素レベル変化量が第一の所
定量以上であることを検出し、前記第二の比較器は前記
隣接ブロックの画素レベル変化量が第二の所定量以下で
あることを検出し、前記対象ブロックの画素レベル変化
量が第一の所定量以上であり、かつ前記隣接ブロックの
うちの一個あるいは複数個のブロックの画素レベル変化
量が第二の所定量以下である場合、前記対象ブロックを
輪郭ブロックとして検出することを特徴とする画像符号
化装置
1. An image signal comprising a plurality of pixels adjacent to each other
Means for dividing the block into blocks,
Contour detection means for detecting that the block is a contour block
And change the encoding compression method for the contour block
An encoding controller, the contour detector includes a variation calculator, a first comparator, and a second comparator, and the variation calculator is an object to be encoded. The amount of change in pixel level of pixels included in a block and the amount of change in pixel level of pixels included in a plurality of adjacent blocks adjacent to the target block are calculated for each block, and the first comparator calculates the target The pixel level change amount of the block is detected to be a first predetermined amount or more, the second comparator detects that the pixel level change amount of the adjacent block is a second predetermined amount or less, When the pixel level change amount of the target block is equal to or more than a first predetermined amount and the pixel level change amount of one or a plurality of blocks of the adjacent blocks is equal to or less than a second predetermined amount, the target block is
Image code characterized by being detected as a contour block
Device .
【請求項2】 符号化制御器は、対象とするブロック内
の信号列を量子化する量子化幅を決定する量子化幅制御
器を具備し、前記量子化幅制御器は輪郭部を含むブロッ
ク内の画素の画素レベルの量子化において量子化幅を小
さくすることを特徴とする請求項記載の画像符号化装
置。
2. The encoding controller includes a quantization width controller that determines a quantization width for quantizing a signal sequence in a target block, and the quantization width controller includes a block including a contour portion. image encoding apparatus according to claim 1, wherein reducing the quantization width in pixel level quantization of the pixel in the.
【請求項3】 符号化制御器は、輪郭部を検出する手段
によって検出された輪郭部を含む所定範囲内の画像領域
に対して符号化圧縮率を変える手段で構成されることを
特徴とする請求項記載の画像符号化装置。
3. The encoding controller is constituted by means for changing an encoding compression rate for an image area within a predetermined range including the contour portion detected by the means for detecting the contour portion. The image coding apparatus according to claim 1 .
【請求項4】 ブロック毎に直交変換を行い、重みづけ
関数によって各ブロック内の変換係数に対してそれぞれ
重みづけした量子化幅で各変換係数を量子化し符号化す
る変換符号化装置であって、符号化制御器は前記重みづ
け関数を制御する重みづけ関数制御器を具備し、前記重
みづけ関数制御器は符号化の対象とする対象ブロックが
輪郭部を含む場合、輪郭部を含まないブロックと比較し
て細かい量子化を行うように前記重みづけ関数を変える
ことを特徴とする請求項記載の画像符号化装置。
4. A transform coding apparatus which performs orthogonal transform for each block, and quantizes and encodes each transform coefficient with a quantization width in which each transform coefficient in each block is weighted by a weighting function. The encoding controller comprises a weighting function controller for controlling the weighting function, and the weighting function controller, when the target block to be encoded includes a contour part, does not include the contour part. image encoding apparatus according to claim 1, wherein altering said weighting function so as to perform fine quantization compared to.
JP7069992A 1991-09-02 1992-03-27 Image coding device Expired - Lifetime JP2507215B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7069992A JP2507215B2 (en) 1991-09-02 1992-03-27 Image coding device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP22151191 1991-09-02
JP3-221511 1991-09-02
JP7069992A JP2507215B2 (en) 1991-09-02 1992-03-27 Image coding device

Publications (2)

Publication Number Publication Date
JPH05130433A JPH05130433A (en) 1993-05-25
JP2507215B2 true JP2507215B2 (en) 1996-06-12

Family

ID=26411832

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7069992A Expired - Lifetime JP2507215B2 (en) 1991-09-02 1992-03-27 Image coding device

Country Status (1)

Country Link
JP (1) JP2507215B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001045385A1 (en) * 1999-12-17 2001-06-21 Intermedia Inc. Image processing device and method and recording medium
FR2950451B1 (en) * 2009-09-18 2011-11-04 Imra Europ Sas ALGORITHM FOR DETECTION OF CONTOUR POINTS IN AN IMAGE
JP5933987B2 (en) * 2012-02-21 2016-06-15 キヤノン株式会社 Image coding apparatus and control method thereof
US10284849B2 (en) 2015-04-13 2019-05-07 Qualcomm Incorporated Quantization parameter (QP) calculation for display stream compression (DSC) based on complexity measure
US9936203B2 (en) * 2015-04-13 2018-04-03 Qualcomm Incorporated Complex region detection for display stream compression
US10244255B2 (en) 2015-04-13 2019-03-26 Qualcomm Incorporated Rate-constrained fallback mode for display stream compression
US10356428B2 (en) 2015-04-13 2019-07-16 Qualcomm Incorporated Quantization parameter (QP) update classification for display stream compression (DSC)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0693752B2 (en) * 1985-12-24 1994-11-16 コニカ株式会社 Image data compression device
JP2664223B2 (en) * 1988-10-14 1997-10-15 日本電信電話株式会社 Orthogonal transform coefficient quantization circuit
JPH0364167A (en) * 1989-08-02 1991-03-19 Fujitsu Ltd Discrete cosine conversion coding control system

Also Published As

Publication number Publication date
JPH05130433A (en) 1993-05-25

Similar Documents

Publication Publication Date Title
KR100578682B1 (en) Hierarchical motion estimation apparatus and method using variable block sizes
JP2651097B2 (en) Method and apparatus for generating quantization parameter
KR0184905B1 (en) Code amount control device and encoding apparatus using the same
US8208749B2 (en) Filtering method for removing block artifacts and/or ringing noise and apparatus therefor
US5333211A (en) Image processing apparatus for preventing occurrence of moire in a reconstructed image
KR20010033797A (en) Apparatus and method for performing scalable hierarchical motion estimation
JP2624087B2 (en) Video signal decoding method
JP2881123B2 (en) Digital video signal encoding device
US7145953B2 (en) Filtering method and apparatus for removing blocking artifacts and/or ringing noise
JP2507215B2 (en) Image coding device
EP1402729A1 (en) Interframe encoding method and apparatus
US6606039B2 (en) Huffman encoder, Huffman encoding method and recording medium having program for Huffman encoding process recorded thereon
US6456655B1 (en) Image encoding using activity discrimination and color detection to control quantizing characteristics
JP2000059782A (en) Compression method for spatial area digital image
JPH0638189A (en) Picture coding method
JPH1066079A (en) Adaptive quantization control device
JPH047989A (en) Picture signal encoding control system
JPH06292188A (en) Method and device for encoding image
JP3517455B2 (en) Image coding method and apparatus
JP3517454B2 (en) Image encoding apparatus and image encoding method
JPH0284894A (en) Picture encoding system
JP2502862B2 (en) Image coding method and image coding apparatus
JP3347409B2 (en) Image coding apparatus and method
JP3232160B2 (en) Encoding device and method
JPH0993585A (en) Motion vector detecting device and method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080402

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090402

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100402

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110402

Year of fee payment: 15

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120402

Year of fee payment: 16

EXPY Cancellation because of completion of term