JP2007104342A - Device and method for image encoding - Google Patents

Device and method for image encoding Download PDF

Info

Publication number
JP2007104342A
JP2007104342A JP2005291764A JP2005291764A JP2007104342A JP 2007104342 A JP2007104342 A JP 2007104342A JP 2005291764 A JP2005291764 A JP 2005291764A JP 2005291764 A JP2005291764 A JP 2005291764A JP 2007104342 A JP2007104342 A JP 2007104342A
Authority
JP
Japan
Prior art keywords
code amount
counting
target code
statistical information
encoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2005291764A
Other languages
Japanese (ja)
Inventor
Yuji Omori
勇司 大森
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 JP2005291764A priority Critical patent/JP2007104342A/en
Publication of JP2007104342A publication Critical patent/JP2007104342A/en
Withdrawn legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To encode a picture within a target code amount while its low processing load as well as superior encoding result are both realized. <P>SOLUTION: From an input picture, two or more pieces of statistical information for block unit are detected, and weighting is carried out for each statistical information to calculate a vision sensitivity level. The vision sensitivity level is classified to a vision sensitivity classes, while the input picture is separated into two or more regions, and how many high order classes of vision sensitivity classes for each region are included is counted. According to the counted value, an encoding amount is allotted to each region, and a quantize scale value is set per block unit for each region so that encoding is performed. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、画像符号化装置及び画像符号化方法に関し、特に動画像の符号化に好適な画像符号化装置及び画像符号化方法に関する。   The present invention relates to an image encoding apparatus and an image encoding method, and more particularly to an image encoding apparatus and an image encoding method suitable for encoding a moving image.

動画像データを符号化する場合、動画像データの各フレーム(ピクチャ)を所定数の画素から成るブロック単位に分割し、該ブロック単位に符号化を行うことが知られている。例えば、MPEG(Moving Picuture Experts Group)方式では、各ブロックに直交変換を施して空間周波数成分に変換し、空間周波数成分に量子化処理を施した後、エントロピー符号化を施している。   When encoding moving image data, it is known to divide each frame (picture) of moving image data into blocks each composed of a predetermined number of pixels and perform encoding in units of the blocks. For example, in the moving picture experts group (MPEG) method, each block is subjected to orthogonal transform to be converted into a spatial frequency component, and the spatial frequency component is quantized and then entropy encoded.

MPEG方式は符号化ストリームの復号化過程を定めたものであり、符号化過程にはある程度の自由度が残されている。そのため、規格の範囲内で符号化パラメータや符号化アルゴリズムを変更することが可能であり、画質や符号量の制御が実現できる。画質、符号量を決定するアルゴリズムの重要な技術の一つとして、符号量制御が挙げられる。   The MPEG system defines a decoding process of an encoded stream, and a certain degree of freedom remains in the encoding process. Therefore, it is possible to change the encoding parameter and the encoding algorithm within the range of the standard, and the control of the image quality and the code amount can be realized. One important technique of an algorithm for determining image quality and code amount is code amount control.

符号量制御を実現するためのアルゴリズムは、CBR(Constant Bit Rate:固定ビット・レート)方式とVBR(Variable Bit Rate:可変ビット・レート)方式の二つに大別出来る。CBR方式は常に一定の符号量を割り当てる方式であり、VBR方式は符号化難易度に応じて符号を適応的に割り当てる方式である。   The algorithms for realizing the code amount control can be broadly classified into two types: CBR (Constant Bit Rate) method and VBR (Variable Bit Rate) method. The CBR method is a method in which a constant code amount is always assigned, and the VBR method is a method in which codes are adaptively assigned according to the encoding difficulty level.

MPEG方式では一般に、符号化難易度が高いピクチャにおいて、符号化難易度の低いピクチャと同じ画質を維持するのにより多くの符号量を必要とする。CBR方式で符号化する場合、符号化難易度が低いピクチャに比べ、符号化難易度が高いピクチャでは画質が低下してしまう。それを防ぐために符号化難易度が高いピクチャに合わせて高いビット・レートを設定すると、それ以外のピクチャでは符号量が過剰となってしまう。   In general, the MPEG method requires a larger amount of code in a picture with a high encoding difficulty level to maintain the same image quality as a picture with a low encoding difficulty level. When encoding by the CBR method, the picture quality is deteriorated in a picture having a high encoding difficulty level compared to a picture having a low encoding difficulty level. In order to prevent this, if a high bit rate is set in accordance with a picture having a high degree of difficulty in encoding, the amount of code becomes excessive in other pictures.

一方、VBR方式では、符号化難易度が高いピクチャには高いビット・レートを割り当て、符号化難易度が低いピクチャには低いビット・レートを割り当てることにより、画質を落とさず、符号量を必要最低限に抑えることが出来る。従って、一般に、同一符号量であれば、VBR方式を用いて符号化されたものの方が、CBR方式を用いて符号化されたものよりも画質が良いと言える。   On the other hand, in the VBR system, a high bit rate is assigned to a picture with a high degree of encoding difficulty, and a low bit rate is assigned to a picture with a low degree of encoding difficulty. It can be suppressed to the limit. Therefore, in general, if the amount of codes is the same, it can be said that an image encoded using the VBR method has better image quality than an image encoded using the CBR method.

MPEG方式ではブロック単位で符号化処理を行うので、CBR方式やVBR方式によってピクチャに対する目標符号量を割り当てた後、各ブロックに対する目標符号量を割り当てる必要がある。また、カメラなどの撮像装置における画像符号化装置ではリアルタイム符号化を行う必要があり、処理速度も必要である。このような理由から、複数のブロックを含むサブエリアにピクチャを分割し、各サブエリアにおいて、直交変換、量子化を行い、有効係数の数を計数し、その分布によって符号量制御を行う技術がある(例えば、特許文献1参照)。   In the MPEG method, encoding processing is performed in units of blocks. Therefore, after assigning a target code amount for a picture by the CBR method or VBR method, it is necessary to assign a target code amount for each block. In addition, an image encoding device in an imaging apparatus such as a camera needs to perform real-time encoding, and processing speed is also required. For this reason, there is a technique in which a picture is divided into sub-areas including a plurality of blocks, orthogonal transform and quantization are performed in each sub-area, the number of effective coefficients is counted, and code amount control is performed based on the distribution. Yes (see, for example, Patent Document 1).

特開2003−304402号公報JP 2003-304402 A

特許文献1記載の従来技術では、各サブエリアにおいてマクロブロック(MB)単位で有効係数を計数し、計数値に応じて符号量制御を行うことで、処理負荷を低減している。しかし、符号量制御において人間の視覚特性が考慮されていないため、符号化後の画質は必ずしも良好ではなかった。   In the conventional technique described in Patent Document 1, the processing load is reduced by counting effective coefficients in units of macroblocks (MB) in each subarea and performing code amount control according to the count value. However, since the human visual characteristic is not considered in the code amount control, the image quality after encoding is not always good.

本発明はこのような従来技術の課題に鑑みなされたものであり、その目的は、処理負荷を軽減しながら良好な画質を有する符号化結果を得ることの可能な画像符号化装置及び画像符号化方法を提供することにある。   The present invention has been made in view of the problems of the prior art, and an object of the present invention is to provide an image encoding apparatus and an image encoding capable of obtaining an encoding result having a good image quality while reducing a processing load. It is to provide a method.

上述の目的を達成するため、本発明によれば、与えられた目標符号量内で入力ピクチャの符号化を行う画像符号化装置において、入力ピクチャを構成する複数のブロックの各々に対し、人間の視覚特性と関連する複数の統計情報を検出する統計情報検出手段と、複数の統計情報に基づいて、複数のブロックの各々を、視覚感度の高低に関して複数のクラスに分類する視覚感度クラス分類手段と、入力ピクチャを、水平もしくは垂直方向の一方向に複数の第1の領域に分割し、当第1の領域毎に、当第1の領域に含まれるブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第1の計数手段と、目標符号量及び第1の計数手段の計数結果に応じて、第1の領域毎の目標符号量を割り当てる第1の符号量割り当て手段と、第1の領域の各々を、水平もしくは垂直方向の他方向に複数の第2の領域に分割し、当第2の領域毎に、当第2の領域に含まれるブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第2の計数手段と、第1の領域に対する目標符号量及び第2の計数手段の計数結果に応じて、第2の領域毎に目標符号量を割り当てる第2の符号量割り当て手段と、第2の領域の目標符号量及び統計情報とから、符号化パラメータを算出する符号化パラメータ算出手段と、符号化パラメータに応じて入力ピクチャを符号化する符号化手段とを備えることを特徴とする。   In order to achieve the above-described object, according to the present invention, in an image encoding apparatus that encodes an input picture within a given target code amount, a human is used for each of a plurality of blocks constituting the input picture. Statistical information detection means for detecting a plurality of statistical information related to visual characteristics; and visual sensitivity class classification means for classifying each of the plurality of blocks into a plurality of classes with respect to the level of visual sensitivity based on the plurality of statistical information; The input picture is divided into a plurality of first areas in one direction in the horizontal or vertical direction, and a predetermined visual sensitivity among the blocks included in the first area is high for each of the first areas. A first counting unit that counts blocks classified into classes, and a first code amount allocating unit that allocates a target code amount for each first area according to a target code amount and a counting result of the first counting unit. Each of the first regions is divided into a plurality of second regions in the other direction in the horizontal or vertical direction, and a predetermined one of the blocks included in the second region is predetermined for each second region. Second counting means for counting blocks classified into a class having high visual sensitivity, and a target code for each second area according to the target code amount for the first area and the counting result of the second counting means. A second code amount allocating unit for allocating the amount, a coding parameter calculating unit for calculating a coding parameter from the target code amount and statistical information of the second region, and encoding an input picture according to the coding parameter And an encoding means.

また、上述の目的は、与えられた目標符号量内で入力ピクチャの符号化を行う画像符号化装置において、入力ピクチャを構成する複数のブロックの各々に対し、人間の視覚特性と関連する複数の統計情報を検出する統計情報検出手段と、複数の統計情報に基づいて、複数のブロックの各々を、視覚感度の高低に関して複数のクラスに分類する視覚感度クラス分類手段と、入力ピクチャを、水平もしくは垂直方向の一方向に複数の第1の領域に分割し、当第1の領域毎に、当第1の領域に含まれるブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第1の計数手段と、目標符号量及び第1の計数手段の計数結果に応じて、第1の領域毎の目標符号量を割り当てる第1の符号量割り当て手段と、入力ピクチャを、水平もしくは垂直方向の他方向に複数の第2の領域に分割し、当第2の領域毎に、当第2の領域に含まれるブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第2の計数手段と、目標符号量及び第2の計数手段の計数結果に応じて、第2の領域毎に目標符号量を割り当てる第2の符号量割り当て手段と、第1の領域に対する目標符号量、第2の領域に対する目標符号量及び統計情報とから、符号化パラメータを算出する符号化パラメータ算出手段と、符号化パラメータに応じて入力ピクチャを符号化する符号化手段とを備えることを特徴とする画像符号化装置によっても達成される。   Further, the above-described object is to provide a plurality of blocks related to a human visual characteristic for each of a plurality of blocks constituting an input picture in an image encoding apparatus that encodes an input picture within a given target code amount. Statistical information detecting means for detecting statistical information, visual sensitivity class classification means for classifying each of the plurality of blocks into a plurality of classes with respect to the level of visual sensitivity based on the plurality of statistical information, and the input picture horizontally or A block that is divided into a plurality of first regions in one vertical direction and is classified into a predetermined class with high visual sensitivity among the blocks included in the first region for each first region. First counting means for counting, first code amount assigning means for assigning a target code amount for each first area according to the target code amount and the counting result of the first counting means, and an input picture, The second area is divided into a plurality of second areas in the flat or vertical direction, and each of the second areas is classified into a predetermined high visual sensitivity class among the blocks included in the second area. A second counting unit that counts blocks, a second code amount assigning unit that assigns a target code amount for each second region, in accordance with the target code amount and the counting result of the second counting unit; Coding parameter calculating means for calculating a coding parameter from a target code quantity for the region, a target code amount for the second region, and statistical information; and a coding means for coding an input picture according to the coding parameter. It is also achieved by an image encoding device characterized by comprising.

このような構成により、本発明によれば、処理負荷を軽減しながら良好な画質を有する符号化結果を得ることが可能である。   With such a configuration, according to the present invention, it is possible to obtain an encoding result having good image quality while reducing the processing load.

以下、本発明の好適な実施形態について図面を参照しながら詳細に説明する。
(第1の実施形態)
図1は本発明の第1の実施形態に係る画像符号化装置の構成例を示すブロック図である。
入力画像201は動画像データを表し、ピクチャ単位に入力される。統計情報検出部202はMB(マクロブロック)単位で、アクティビティ、輝度、空間周波数、肌色情報、グラデーション等の情報を検出する。視覚感度レベル算出部203は視覚感度レベルテーブル204によって統計情報検出部の結果を重み付けし視覚感度レベルを算出する。視覚感度クラス分類部205は、視覚感度レベルに応じて各MBに視覚感度クラスを設定する。
DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described in detail with reference to the drawings.
(First embodiment)
FIG. 1 is a block diagram showing a configuration example of an image encoding device according to the first embodiment of the present invention.
An input image 201 represents moving image data and is input in units of pictures. The statistical information detection unit 202 detects information such as activity, luminance, spatial frequency, skin color information, gradation, and the like in MB (macroblock) units. The visual sensitivity level calculation unit 203 weights the result of the statistical information detection unit by the visual sensitivity level table 204 and calculates the visual sensitivity level. The visual sensitivity class classification unit 205 sets a visual sensitivity class for each MB according to the visual sensitivity level.

Row_grp内クラス計数部206は、ピクチャを水平方向にMr個のRow_grpに分割し、各Row_grp内に存在する上位Mr個のクラスのMB数を計数する。Cor_grp内クラス計数部207は、各Row_grpを垂直方向にMc個のCor_grpに分割し、各Cow_grp内に存在する上位Mc個のクラスのMB数を計数する。   The Row_grp class counting unit 206 divides the picture into Mr Row_grp in the horizontal direction, and counts the number of MBs of the upper Mr classes existing in each Row_grp. The Cor_grp class counting unit 207 divides each Row_grp into Mc Cor_grp in the vertical direction, and counts the number of MBs of the upper Mc classes existing in each Cow_grp.

Row_grp内符号量割り当て部208は、Row_grp内クラス計数部206の計数結果と、予め定められたピクチャ全体の目標符号量から、各Row_grpに対して対応する符号量Trを割り当てる。Cow_grp内符号量割り当て部209は、Cor_grp内クラス計数部206の計数結果と、Row_grp内符号量割り当て部208がRow_grpに対して割り当てた符号量Trから、さらに各Cor_grpに対して符号量Tcを求め、それぞれに割り当てる。   The Row_grp intra-code amount allocation unit 208 allocates a corresponding code amount Tr to each Row_grp from the count result of the Row_grp intra-class counter 206 and a predetermined target code amount of the entire picture. The code amount allocation unit 209 within the Cow_grp further obtains a code amount Tc for each Cor_grp from the count result of the class counter unit 206 within Cor_grp and the code amount Tr allocated to the Row_grp by the code amount allocation unit 208 within Row_grp. Assign to each.

符号化パラメータ算出部209は、統計情報検出部202の一検出結果であるアクティビティと、Cor_grp内符号量割り当て部209が割り当てたCor_grpに対する符号量Tcとから、各MBに対する量子化スケール値を算出する。符号化部211は入力画像201に対してブロック単位で直交変換を施し、空間周波数成分に変換する。そして、空間周波数成分に符号化パラメータ算出部209が算出した量子化スケール値に基づく量子化処理を施した後、エントロピー符号化を施す。   The coding parameter calculation unit 209 calculates a quantization scale value for each MB from the activity, which is one detection result of the statistical information detection unit 202, and the code amount Tc for Cor_grp allocated by the Cor_grp intra-code amount allocation unit 209. . The encoding unit 211 performs orthogonal transform on the input image 201 in units of blocks and converts the input image 201 into a spatial frequency component. Then, the spatial frequency component is subjected to quantization processing based on the quantization scale value calculated by the encoding parameter calculation unit 209 and then subjected to entropy encoding.

次に、図2に示すフローチャートを図1と共に参照して、本実施形態の画像符号化装置の動作について説明する。   Next, the operation of the image coding apparatus according to the present embodiment will be described with reference to the flowchart shown in FIG.

入力画像201は統計情報検出部202と符号化部211に入力される。統計情報検出部202では、入力画像201を例えば8×8画素や16x16画素のマクロブロック(MB)に分割し、MB単位で、輝度、空間周波数、肌色情報、グラデーション、アクティビティ等、人間の視覚特性に関連する統計情報を検出する(ステップS1)。   The input image 201 is input to the statistical information detection unit 202 and the encoding unit 211. The statistical information detection unit 202 divides the input image 201 into macro blocks (MB) of, for example, 8 × 8 pixels or 16 × 16 pixels, and human visual characteristics such as luminance, spatial frequency, skin color information, gradation, activity, etc. in MB units. Statistical information related to is detected (step S1).

アクティビティは例えばMB内の各画素の輝度値の平均値と各画素の輝度値との差の自乗和の平均値や、輝度値の分散値、輝度値の平均偏差の絶対値、隣接画素間差分絶対値和などとして求めることができる。本実施形態において、統計情報検出部202は、輝度、空間周波数、肌色情報、グラデーションを視覚感度レベル算出部203に出力し、アクティビティは符号化パラメータ算出部210に出力する。   Activities include, for example, the average sum of squares of the difference between the average brightness value of each pixel in the MB and the brightness value of each pixel, the dispersion value of the brightness value, the absolute value of the average deviation of the brightness value, and the difference between adjacent pixels It can be obtained as an absolute value sum. In this embodiment, the statistical information detection unit 202 outputs luminance, spatial frequency, skin color information, and gradation to the visual sensitivity level calculation unit 203, and outputs the activity to the encoding parameter calculation unit 210.

次に、視覚感度レベル算出部203は、入力された複数の統計情報から、視覚感度レベルテーブル104の重み付けに従って視覚感度レベルを算出する(ステップS2)。視覚感度テーブルの例を図3に示す。図3に示すように、視覚感度テーブルは、統計情報とその重み付け計数値とが対応づけされたテーブルである。   Next, the visual sensitivity level calculation unit 203 calculates the visual sensitivity level according to the weight of the visual sensitivity level table 104 from the plurality of input statistical information (step S2). An example of the visual sensitivity table is shown in FIG. As shown in FIG. 3, the visual sensitivity table is a table in which statistical information is associated with its weighted count value.

図3の視覚感度テーブルを用いた場合、視覚感度レベルH_levelは、
H_level=Sh×Ch+Sy×Cy+Sf×Cf+Sg×Cg
=Sh×0.5+Sy×0.5+Sf×0.5+Sg×0.5
の式で算出することが出来る。
When the visual sensitivity table of FIG. 3 is used, the visual sensitivity level H_level is
H_level = Sh × Ch + Sy × Cy + Sf × Cf + Sg × Cg
= Sh × 0.5 + Sy × 0.5 + Sf × 0.5 + Sg × 0.5
It can be calculated by the following formula.

算出されたH_levelは、視覚感度クラス分類部205に出力される。視覚感度クラス分類部205では、視覚感度レベルH_levelに応じて各MBを視覚感度クラスH_classに分類する(ステップS3)。   The calculated H_level is output to the visual sensitivity class classification unit 205. The visual sensitivity class classification unit 205 classifies each MB into a visual sensitivity class H_class according to the visual sensitivity level H_level (step S3).

この分類は、例えば、図4に示すような基準により行われるものとする。この場合、H_level≧30のとき、H_class=1となり、最も重要なMBと判定される。本実施形態では、H_classは1〜4の4通りである。   For example, this classification is performed based on the criteria shown in FIG. In this case, when H_level ≧ 30, H_class = 1 and it is determined as the most important MB. In the present embodiment, there are four types of H_class, 1-4.

次に、Row_grp内クラス計数部206において、ピクチャを水平方向にMr個のグループ(Row_grp)に分割する(ステップS4)。そして、各Row_grp内に存在する複数のMBのうち、上位複数クラス(例えばH_classが1と2)のMB数を計数する(ステップS5)。そして、Row_grp内符号量割り当て部208において、ピクチャ全体の目標符号量とRow_grp内クラス計数部206の係数結果とから、各Row_grpに対して符号量Trを割り当てる。   Next, the in-Row_grp class counting unit 206 divides the picture into Mr groups (Row_grp) in the horizontal direction (step S4). Then, the number of MBs of a higher class (for example, H_class is 1 and 2) among the plurality of MBs present in each Row_grp is counted (step S5). Then, the code amount allocation unit 208 within Row_grp allocates a code amount Tr to each Row_grp from the target code amount of the entire picture and the coefficient result of the class counter 206 within Row_grp.

また、Cor_grp内クラス計数部207においては、Row_grpを水平方向と90度異なる方向(垂直方向)にMc個のグループ(Cor_grp)に分割し、各Cor_grp内に存在する上位複数クラス(例えばH_classが1と2)のMB数を計数する。Cor_grp内符号量割り当て部209では、Row_grp内符号量割り当て部208と同様に、Row_grp内符号量TrとCor_grp内クラス計数部207の係数結果から、各Cor_grpに対して符号量Tcを算出して割り当てる(ステップS7)。符号量Tcは、符号化パラメータ算出部210に出力される。   Further, in the Cor_grp class counting unit 207, Row_grp is divided into Mc groups (Cor_grp) in a direction (vertical direction) 90 degrees different from the horizontal direction, and the upper multiple classes (for example, H_class is 1) existing in each Cor_grp. And 2) count the number of MBs. In the Cor_grp intra-code amount allocation unit 209, as in the Row_grp intra-code amount allocation unit 208, the code amount Tc is calculated and allocated to each Cor_grp from the coefficient results of the Row_grp intra-code amount Tr and the Cor_grp intra-class counting unit 207. (Step S7). The code amount Tc is output to the encoding parameter calculation unit 210.

以上の動作を、具体的なピクチャとの関係を用いて説明する。
図5は、本実施形態の画像符号化装置におけるグループ分割と符号量割り当ての関係を説明するための図である。
図5では、ピクチャが横長(水平方向)に5個のRow_grpに分割され、各Row_grpは縦長(垂直方向)に7個のCor_grpに分割されている。また、視覚特性クラス(H_class)はMB単位に設定される。図中ではH_class1〜4に対応する視覚特性クラス1〜4についての一部を示している。
The above operation will be described using a specific relationship with a picture.
FIG. 5 is a diagram for explaining the relationship between group division and code amount allocation in the image coding apparatus according to the present embodiment.
In FIG. 5, the picture is divided horizontally into five Row_grp (horizontal direction), and each Row_grp is divided into seven Cor_grp vertically long (vertical direction). The visual characteristic class (H_class) is set in MB units. In the drawing, a part of visual characteristic classes 1 to 4 corresponding to H_class 1 to 4 is shown.

また、図6は、符号量割り当ての例を示している。図6において、符号量はT1>T2>T3>T4であり、上位クラスのMBが多く含まれるCor_grp程、多くの符号量が割り当てられる。具体的には、H_classに対応した数値を積算し、Cor_grp毎の積算結果に応じて段階的に符号量Tcを決定する。   FIG. 6 shows an example of code amount allocation. In FIG. 6, the code amount is T1> T2> T3> T4, and a larger amount of code is assigned to Cor_grp that includes more upper class MBs. Specifically, numerical values corresponding to H_class are integrated, and the code amount Tc is determined stepwise according to the integration result for each Cor_grp.

符号化パラメータ算出部210では、統計情報検出部202から入力されたアクティビティと符号量Tcから、そのCor_grpに含まれる各MBに対して符号量を均等配分する(ステップS8)。そして、その符号量に対応する量子化スケール値を例えばMPEG TM5(Test Mode 5)方式などに基づいて各MB単位で算出する(ステップS9)。符号化部211は、入力画像201の各MBについて直交変換を施し空間周波数成分に変換した後、符号化パラメータ算出部210から入力された量子化スケール値に基づいて空間周波数成分を量子化する。そして、量子化結果にエントロピー符号化を施し、符号化ストリームとして出力する。   The encoding parameter calculation unit 210 equally distributes the code amount to each MB included in the Cor_grp from the activity and the code amount Tc input from the statistical information detection unit 202 (step S8). Then, a quantization scale value corresponding to the code amount is calculated for each MB based on, for example, the MPEG TM5 (Test Mode 5) method (step S9). The encoding unit 211 performs orthogonal transformation on each MB of the input image 201 to convert it to a spatial frequency component, and then quantizes the spatial frequency component based on the quantization scale value input from the encoding parameter calculation unit 210. Then, entropy encoding is performed on the quantization result, and the result is output as an encoded stream.

図7は、本実施形態の画像符号化装置における1ピクチャの符号量遷移を示す図である。均等配分した場合にはRow_grp毎に一定の符号量が増加して行くが、本発明による符号量割り当てによれば、符号化難易度が高いだけでなく、人間の視覚特性から重要と判断されるブロックには多くの符号量が割り当てられ、そうでないブロックの符号量は少なく割り当てられる。そのため、Row_grp毎に異なる符号量を有することがわかる。   FIG. 7 is a diagram illustrating a code amount transition of one picture in the image coding apparatus according to the present embodiment. In the case of equal distribution, a certain code amount increases for each Row_grp. However, according to the code amount allocation according to the present invention, not only is the degree of encoding difficult, but it is also determined to be important from human visual characteristics. A large amount of code is allocated to the block, and a small amount of code is allocated to the block that is not. Therefore, it can be seen that each Row_grp has a different code amount.

このように、本実施形態によれば、人間の視覚特性を考慮した符号量制御を行うことにより、高精度の符号量制御が実現し、画質向上を図ることが出来る。また、ブロック単位で符号量を割り当てるのではなく、ピクチャを、各々が複数のブロックを含む複数の領域に分割し、分割した領域に対して符号量を割り当てた後に、各ブロックに対して符号量を割り当てる。そのため、処理負荷が小さく、高速な処理が実現できる。   As described above, according to the present embodiment, by performing code amount control in consideration of human visual characteristics, highly accurate code amount control can be realized, and image quality can be improved. Also, instead of assigning a code amount in units of blocks, a picture is divided into a plurality of regions each including a plurality of blocks, and a code amount is assigned to each divided region, and then a code amount is assigned to each block. Assign. Therefore, the processing load is small and high-speed processing can be realized.

(第2の実施形態)
図8は本発明の第2の実施形態に係る画像符号化装置の構成例を示すブロック図である。また、図9は、本実施形態の画像符号化装置の動作を説明するフローチャートである。図8及び図9において、第1の実施形態と同様の構成には同じ参照数字を付し、説明を省略する。
(Second Embodiment)
FIG. 8 is a block diagram showing a configuration example of an image encoding device according to the second embodiment of the present invention. FIG. 9 is a flowchart for explaining the operation of the image coding apparatus according to the present embodiment. 8 and 9, the same reference numerals are assigned to the same components as those in the first embodiment, and the description thereof is omitted.

以下、第1の実施形態と異なる構成について説明する。
本実施形態においては、図10に示すように、Row_grp内クラス計数部306とCor_grp2内クラス計数部307において、ピクチャがRow_grpとCor_grp2にそれぞれ独立して分割される。
Hereinafter, a configuration different from the first embodiment will be described.
In the present embodiment, as shown in FIG. 10, in the Row_grp class counter 306 and the Cor_grp2 class counter 307, the pictures are independently divided into Row_grp and Cor_grp2, respectively.

Cor_grp2は、Cor_grp2内クラス計数部307において、ピクチャを縦長(垂直方向)にMc個のグループに分割したものである。つまり、図10の例では、1つのCor_grp2が5MBから構成されている。そして、各Cow_grp2内に存在する上位複数クラス(例えばH_classが1と2)のMB数を計数し、Cor_grp2内符号量割り当て部309に出力する。Cor_grp2内符号量割り当て部309は、ピクチャ全体の目標符号量とCor_grp2内クラス計数部307の係数結果から、各Cor_grp2に対する符号量Tcを割り当てる(ステップS7’)。   Cor_grp2 is obtained by dividing the picture vertically (in the vertical direction) into Mc groups in the Cor_grp2 class counter 307. That is, in the example of FIG. 10, one Cor_grp2 is composed of 5 MB. Then, the number of MBs of higher-order multiple classes (for example, H_class is 1 and 2) existing in each Cow_grp2 is counted and output to the Cor_grp2 intra-code amount allocation unit 309. The Cor_grp2 intra-code amount assigning unit 309 assigns the code amount Tc for each Cor_grp2 from the target code amount of the entire picture and the coefficient result of the Cor_grp2 intra-class counting unit 307 (step S7 ').

符号化パラメータ算出部310は、統計情報検出部202の一検出結果であるアクティビティと、Row_grp内符号量割り当て部208がステップS6でRow_grpに対して割り当てた符号量Trと、上記Tcを入力とする。そして、これらの入力値に基づいて、各MBに対する符号量を決定する(ステップS8’)。そして、この符号量に対応する量子化スケール値を算出し、符号化部311に出力する(ステップS9)。   The encoding parameter calculation unit 310 receives the activity, which is one detection result of the statistical information detection unit 202, the code amount Tr allocated to Row_grp by the intra-row_grp code amount allocation unit 208 in step S6, and the above Tc. . Based on these input values, the code amount for each MB is determined (step S8 '). Then, a quantization scale value corresponding to the code amount is calculated and output to the encoding unit 311 (step S9).

各MBはRow_grp及びCor_grpのそれぞれに属するので、属するRow_grpのTrと、Cor_grpのTcと、アクティビティとを用いて符号量を決定する。例えば、アクティビティが一定であれば、TrとTcの両方が高いRow_grp及びCor_grpに属するMBに対する符号量が最も多くなり、Tr、Tcとも低いRow_grp及びCor_grpに属するMBの符号量が最も低くなるような決定がなされる。   Since each MB belongs to each of Row_grp and Cor_grp, the code amount is determined using Tr of the Row_grp to which the MB belongs, Tc of the Cor_grp, and the activity. For example, if the activity is constant, the code amount for MBs belonging to Row_grp and Cor_grp with both Tr and Tc being highest is the largest, and the code amount for MBs belonging to Row_grp and Cor_grp being low for both Tr and Tc is the smallest. A decision is made.

このように、本実施形態によれば、第1の実施形態よりも垂直方向に対して大きな領域について符号量を割り当てる。水平方向に分割した領域と垂直方向に分割した領域の符号量を並列に割り当てた後に、各ブロックに対する符号化パラメータを算出することにより、第1の実施形態の画像符号化装置より高速な処理が期待できる。   As described above, according to the present embodiment, a code amount is assigned to a region that is larger in the vertical direction than in the first embodiment. By assigning the code amount of the area divided in the horizontal direction and the area divided in the vertical direction in parallel and then calculating the encoding parameter for each block, the processing speed is higher than that of the image encoding apparatus of the first embodiment. I can expect.

(他の実施形態)
なお、上述の実施形態では、グループ内で上位複数のクラスに分類されたブロック数を計数したが、少なくとも最上位のクラスに分類されたブロック数を計数すればよい。
(Other embodiments)
In the above-described embodiment, the number of blocks classified into a plurality of upper classes in the group is counted. However, the number of blocks classified into at least the highest class may be counted.

また、前述した実施形態の機能を実現するソフトウェアのプログラムを、記録媒体から直接、或いは有線/無線通信を用いて当該プログラムを実行可能なコンピュータを有するシステム又は装置に供給し、そのシステム或いは装置のコンピュータが該供給されたプログラムを実行することによって同等の機能が達成される場合も本発明に含む。   In addition, a software program that realizes the functions of the above-described embodiments is supplied from a recording medium directly or to a system or apparatus having a computer that can execute the program using wired / wireless communication. The present invention includes a case where an equivalent function is achieved by a computer executing the supplied program.

従って、本発明の機能処理をコンピュータで実現するために、該コンピュータに供給、インストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明の機能処理を実現するためのコンピュータプログラム自体も本発明に含まれる。   Accordingly, the program code itself supplied and installed in the computer in order to implement the functional processing of the present invention by the computer also realizes the present invention. That is, the computer program itself for realizing the functional processing of the present invention is also included in the present invention.

その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。   In this case, the program may be in any form as long as it has a program function, such as an object code, a program executed by an interpreter, or script data supplied to the OS.

プログラムを供給するための記録媒体としては、例えば、フレキシブルディスク、ハードディスク、磁気テープ等の磁気記録媒体、MO、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−R、DVD−RW等の光/光磁気記憶媒体、不揮発性の半導体メモリなどがある。   As a recording medium for supplying the program, for example, a magnetic recording medium such as a flexible disk, a hard disk, a magnetic tape, MO, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-R, DVD- There are optical / magneto-optical storage media such as RW, and non-volatile semiconductor memory.

有線/無線通信を用いたプログラムの供給方法としては、コンピュータネットワーク上のサーバに本発明を形成するコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイル等、クライアントコンピュータ上で本発明を形成するコンピュータプログラムとなりうるデータファイル(プログラムデータファイル)を記憶し、接続のあったクライアントコンピュータにプログラムデータファイルをダウンロードする方法などが挙げられる。この場合、プログラムデータファイルを複数のセグメントファイルに分割し、セグメントファイルを異なるサーバに配置することも可能である。   As a program supply method using wired / wireless communication, a computer program forming the present invention on a server on a computer network, or a computer forming the present invention on a client computer such as a compressed file including an automatic installation function A method of storing a data file (program data file) that can be a program and downloading the program data file to a connected client computer can be used. In this case, the program data file can be divided into a plurality of segment files, and the segment files can be arranged on different servers.

つまり、本発明の機能処理をコンピュータで実現するためのプログラムデータファイルを複数のユーザに対してダウンロードさせるサーバ装置も本発明に含む。   That is, the present invention includes a server device that allows a plurality of users to download a program data file for realizing the functional processing of the present invention on a computer.

また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件を満たしたユーザに対して暗号化を解く鍵情報を、例えばインターネットを介してホームページからダウンロードさせることによって供給し、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。   In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to the user, and key information for decrypting the encryption for a user who satisfies a predetermined condition is provided via a homepage via the Internet, for example. It is also possible to realize the program by downloading it from the computer and executing the encrypted program using the key information and installing it on the computer.

また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行ない、その処理によっても前述した実施形態の機能が実現され得る。   In addition to the functions of the above-described embodiments being realized by the computer executing the read program, the OS running on the computer based on the instruction of the program is a part of the actual processing. Alternatively, the functions of the above-described embodiment can be realized by performing all of them and performing the processing.

さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行ない、その処理によっても前述した実施形態の機能が実現され得る。   Furthermore, after the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion board or The CPU of the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments can also be realized by the processing.

本発明の第1の実施形態に係る画像符号化装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image coding apparatus which concerns on the 1st Embodiment of this invention. 本発明の第1の実施形態に係る画像符号化装置の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of the image coding apparatus which concerns on the 1st Embodiment of this invention. 視覚感度レベルテーブルの例を示す図である。It is a figure which shows the example of a visual sensitivity level table. 視覚感度クラス分類の例を示す図である。It is a figure which shows the example of a visual sensitivity class classification | category. 第1の実施形態の画像符号化装置におけるグループ分割と符号量割り当ての関係を説明するための図である。It is a figure for demonstrating the relationship between the group division | segmentation and code amount allocation in the image coding apparatus of 1st Embodiment. 第1の実施形態の画像符号化装置における符号量割り当ての例を示す図である。It is a figure which shows the example of code amount allocation in the image coding apparatus of 1st Embodiment. 第1の実施形態の画像符号化装置における1ピクチャの符号量遷移を示す図である。It is a figure which shows the code amount transition of 1 picture in the image coding apparatus of 1st Embodiment. 本発明の第2の実施形態に係る画像符号化装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image coding apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第2の実施形態に係る画像符号化装置の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of the image coding apparatus which concerns on the 2nd Embodiment of this invention. 第2の実施形態における領域分割例を示す図である。It is a figure which shows the area | region division example in 2nd Embodiment.

Claims (9)

与えられた目標符号量内で入力ピクチャの符号化を行う画像符号化装置において、
前記入力ピクチャを構成する複数のブロックの各々に対し、人間の視覚特性と関連する複数の統計情報を検出する統計情報検出手段と、
前記複数の統計情報に基づいて、前記複数のブロックの各々を、視覚感度の高低に関して複数のクラスに分類する視覚感度クラス分類手段と、
前記入力ピクチャを、水平もしくは垂直方向の一方向に複数の第1の領域に分割し、当該第1の領域毎に、当該第1の領域に含まれる前記ブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第1の計数手段と、
前記目標符号量及び前記第1の計数手段の計数結果に応じて、前記第1の領域毎の目標符号量を割り当てる第1の符号量割り当て手段と、
前記第1の領域の各々を、水平もしくは垂直方向の他方向に複数の第2の領域に分割し、当該第2の領域毎に、当該第2の領域に含まれる前記ブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第2の計数手段と、
前記第1の領域に対する目標符号量及び前記第2の計数手段の計数結果に応じて、前記第2の領域毎に目標符号量を割り当てる第2の符号量割り当て手段と、
前記第2の領域の目標符号量及び前記統計情報とから、符号化パラメータを算出する符号化パラメータ算出手段と、
前記符号化パラメータに応じて入力ピクチャを符号化する符号化手段と
を備えることを特徴とする画像符号化装置。
In an image encoding device that encodes an input picture within a given target code amount,
Statistical information detecting means for detecting a plurality of statistical information related to human visual characteristics for each of a plurality of blocks constituting the input picture;
Visual sensitivity class classification means for classifying each of the plurality of blocks into a plurality of classes with respect to the level of visual sensitivity based on the plurality of statistical information;
The input picture is divided into a plurality of first areas in one direction in the horizontal or vertical direction, and for each of the first areas, a predetermined visual sensitivity of the blocks included in the first area is determined. A first counting means for counting blocks classified into a higher class;
First code amount assigning means for assigning a target code amount for each of the first areas according to the target code amount and the counting result of the first counting means;
Each of the first regions is divided into a plurality of second regions in other directions in the horizontal or vertical direction, and predetermined among the blocks included in the second region for each second region. A second counting means for counting blocks classified into a class having high visual sensitivity;
Second code amount assigning means for assigning a target code amount for each of the second regions according to a target code amount for the first region and a counting result of the second counting means;
Coding parameter calculating means for calculating a coding parameter from the target code amount of the second region and the statistical information;
An image coding apparatus comprising: coding means for coding an input picture according to the coding parameter.
前記符号化パラメータ算出手段が、前記第2の領域に対する目標符号量を前記第2の領域に含まれる複数のブロックに対して均等に割り付け、割り付けられた符号量と、個々のブロックに対する前記統計情報とから、前記符号化パラメータを算出することを特徴とする請求項1記載の画像符号化装置。   The encoding parameter calculation means assigns a target code amount for the second region equally to a plurality of blocks included in the second region, and the assigned code amount and the statistical information for each block The image encoding apparatus according to claim 1, wherein the encoding parameter is calculated from 与えられた目標符号量内で入力ピクチャの符号化を行う画像符号化装置において、
前記入力ピクチャを構成する複数のブロックの各々に対し、人間の視覚特性と関連する複数の統計情報を検出する統計情報検出手段と、
前記複数の統計情報に基づいて、前記複数のブロックの各々を、視覚感度の高低に関して複数のクラスに分類する視覚感度クラス分類手段と、
前記入力ピクチャを、水平もしくは垂直方向の一方向に複数の第1の領域に分割し、当該第1の領域毎に、当該第1の領域に含まれる前記ブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第1の計数手段と、
前記目標符号量及び前記第1の計数手段の計数結果に応じて、前記第1の領域毎の目標符号量を割り当てる第1の符号量割り当て手段と、
前記入力ピクチャを、水平もしくは垂直方向の他方向に複数の第2の領域に分割し、当該第2の領域毎に、当該第2の領域に含まれる前記ブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第2の計数手段と、
前記目標符号量及び前記第2の計数手段の計数結果に応じて、前記第2の領域毎に目標符号量を割り当てる第2の符号量割り当て手段と、
前記第1の領域に対する目標符号量、前記第2の領域に対する目標符号量及び前記統計情報とから、符号化パラメータを算出する符号化パラメータ算出手段と、
前記符号化パラメータに応じて入力ピクチャを符号化する符号化手段と
を備えることを特徴とする画像符号化装置。
In an image encoding device that encodes an input picture within a given target code amount,
Statistical information detecting means for detecting a plurality of statistical information related to human visual characteristics for each of a plurality of blocks constituting the input picture;
Visual sensitivity class classification means for classifying each of the plurality of blocks into a plurality of classes with respect to the level of visual sensitivity based on the plurality of statistical information;
The input picture is divided into a plurality of first areas in one direction in the horizontal or vertical direction, and for each of the first areas, a predetermined visual sensitivity of the blocks included in the first area is determined. A first counting means for counting blocks classified into a higher class;
First code amount assigning means for assigning a target code amount for each of the first areas according to the target code amount and the counting result of the first counting means;
The input picture is divided into a plurality of second areas in other directions in the horizontal or vertical direction, and for each second area, a predetermined visual sensitivity of the blocks included in the second area is determined. A second counting means for counting blocks classified into a higher class;
Second code amount assigning means for assigning a target code amount for each second region in accordance with the target code amount and the counting result of the second counting means;
Encoding parameter calculation means for calculating an encoding parameter from the target code amount for the first region, the target code amount for the second region, and the statistical information;
An image coding apparatus comprising: coding means for coding an input picture according to the coding parameter.
前記符号化パラメータ算出手段が、前記第1及び第2の領域に対する目標符号量に基づいて各ブロックに対する符号量を割り付け、割り付けられた符号量と、個々のブロックに対する前記統計情報とから、前記符号化パラメータを算出することを特徴とする請求項3記載の画像符号化装置。   The encoding parameter calculation means allocates a code amount for each block based on a target code amount for the first and second regions, and the code amount is allocated from the allocated code amount and the statistical information for each block. 4. The image encoding apparatus according to claim 3, wherein an encoding parameter is calculated. 前記符号化パラメータ算出手段が、前記ブロックごとのアクティビティを前記統計情報として用いることを特徴とする請求項1乃至請求項4のいずれか1項に記載の画像符号化装置。   The image coding apparatus according to any one of claims 1 to 4, wherein the coding parameter calculation unit uses an activity for each block as the statistical information. 前記符号化パラメータが量子化スケールであることを特徴とする請求項1乃至請求項5のいずれか1項に記載の画像符号化装置。   The image coding apparatus according to claim 1, wherein the coding parameter is a quantization scale. 与えられた目標符号量内で入力ピクチャの符号化を行う画像符号化方法であって、
前記入力ピクチャを構成する複数のブロックの各々に対し、人間の視覚特性と関連する複数の統計情報を検出する統計情報検出ステップと、
前記複数の統計情報に基づいて、前記複数のブロックの各々を、視覚感度の高低に関して複数のクラスに分類する視覚感度クラス分類ステップと、
前記入力ピクチャを、水平もしくは垂直方向の一方向に複数の第1の領域に分割し、当該第1の領域毎に、当該第1の領域に含まれる前記ブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第1の計数ステップと、
前記目標符号量及び前記第1の計数ステップの計数結果に応じて、前記第1の領域毎の目標符号量を割り当てる第1の符号量割り当てステップと、
前記第1の領域の各々を、水平もしくは垂直方向の他方向に複数の第2の領域に分割し、当該第2の領域毎に、当該第2の領域に含まれる前記ブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第2の計数ステップと、
前記第1の領域に対する目標符号量及び前記第2の計数ステップの計数結果に応じて、前記第2の領域毎に目標符号量を割り当てる第2の符号量割り当てステップと、
前記第2の領域の目標符号量及び前記統計情報とから、符号化パラメータを算出する符号化パラメータ算出ステップと、
前記符号化パラメータに応じて入力ピクチャを符号化する符号化ステップと
を備えることを特徴とする画像符号化方法。
An image encoding method for encoding an input picture within a given target code amount,
A statistical information detecting step for detecting a plurality of statistical information related to human visual characteristics for each of a plurality of blocks constituting the input picture;
Visual sensitivity class classification step for classifying each of the plurality of blocks into a plurality of classes with respect to high or low visual sensitivity based on the plurality of statistical information;
The input picture is divided into a plurality of first areas in one direction in the horizontal or vertical direction, and a predetermined visual sensitivity of the blocks included in the first area is determined for each first area. A first counting step for counting blocks classified into a higher class;
A first code amount assigning step for assigning a target code amount for each of the first regions in accordance with the target code amount and the counting result of the first counting step;
Each of the first regions is divided into a plurality of second regions in other directions in the horizontal or vertical direction, and predetermined among the blocks included in the second region for each second region. A second counting step for counting blocks classified into a class having high visual sensitivity;
A second code amount assigning step for assigning a target code amount for each second region in accordance with a target code amount for the first region and a counting result of the second counting step;
An encoding parameter calculating step for calculating an encoding parameter from the target code amount of the second region and the statistical information;
And a coding step of coding an input picture in accordance with the coding parameter.
与えられた目標符号量内で入力ピクチャの符号化を行う画像符号化方法であって、
前記入力ピクチャを構成する複数のブロックの各々に対し、人間の視覚特性と関連する複数の統計情報を検出する統計情報検出ステップと、
前記複数の統計情報に基づいて、前記複数のブロックの各々を、視覚感度の高低に関して複数のクラスに分類する視覚感度クラス分類ステップと、
前記入力ピクチャを、水平もしくは垂直方向の一方向に複数の第1の領域に分割し、当該第1の領域毎に、当該第1の領域に含まれる前記ブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第1の計数ステップと、
前記目標符号量及び前記第1の計数ステップの計数結果に応じて、前記第1の領域毎の目標符号量を割り当てる第1の符号量割り当てステップと、
前記入力ピクチャを、水平もしくは垂直方向の他方向に複数の第2の領域に分割し、当該第2の領域毎に、当該第2の領域に含まれる前記ブロックのうち、予め定めた視覚感度の高いクラスに分類されたブロックを計数する第2の計数ステップと、
前記目標符号量及び前記第2の計数ステップの計数結果に応じて、前記第2の領域毎に目標符号量を割り当てる第2の符号量割り当てステップと、
前記第1の領域に対する目標符号量、前記第2の領域に対する目標符号量及び前記統計情報とから、符号化パラメータを算出する符号化パラメータ算出ステップと、
前記符号化パラメータに応じて入力ピクチャを符号化する符号化ステップと
を備えることを特徴とする画像符号化方法。
An image encoding method for encoding an input picture within a given target code amount,
A statistical information detecting step for detecting a plurality of statistical information related to human visual characteristics for each of a plurality of blocks constituting the input picture;
Visual sensitivity class classification step for classifying each of the plurality of blocks into a plurality of classes with respect to high or low visual sensitivity based on the plurality of statistical information;
The input picture is divided into a plurality of first areas in one direction in the horizontal or vertical direction, and for each of the first areas, a predetermined visual sensitivity of the blocks included in the first area is determined. A first counting step for counting blocks classified into a higher class;
A first code amount assigning step for assigning a target code amount for each of the first regions according to the target code amount and the counting result of the first counting step;
The input picture is divided into a plurality of second areas in other directions in the horizontal or vertical direction, and for each second area, a predetermined visual sensitivity of the blocks included in the second area is determined. A second counting step for counting blocks classified into a higher class;
A second code amount assigning step for assigning a target code amount for each of the second regions in accordance with the target code amount and the counting result of the second counting step;
An encoding parameter calculating step for calculating an encoding parameter from the target code amount for the first region, the target code amount for the second region, and the statistical information;
An image encoding method comprising: an encoding step of encoding an input picture in accordance with the encoding parameter.
請求項7又は請求項8記載の画像符号化方法をコンピュータに実現させるプログラム。   The program which makes a computer implement | achieve the image coding method of Claim 7 or Claim 8.
JP2005291764A 2005-10-04 2005-10-04 Device and method for image encoding Withdrawn JP2007104342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005291764A JP2007104342A (en) 2005-10-04 2005-10-04 Device and method for image encoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005291764A JP2007104342A (en) 2005-10-04 2005-10-04 Device and method for image encoding

Publications (1)

Publication Number Publication Date
JP2007104342A true JP2007104342A (en) 2007-04-19

Family

ID=38030835

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005291764A Withdrawn JP2007104342A (en) 2005-10-04 2005-10-04 Device and method for image encoding

Country Status (1)

Country Link
JP (1) JP2007104342A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009165124A (en) * 2007-12-31 2009-07-23 Ceva Dsp Ltd Method and system for real-time adaptive quantization control
CN111935486A (en) * 2020-07-29 2020-11-13 Oppo广东移动通信有限公司 Image processing method and device, computer readable storage medium and electronic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009165124A (en) * 2007-12-31 2009-07-23 Ceva Dsp Ltd Method and system for real-time adaptive quantization control
CN111935486A (en) * 2020-07-29 2020-11-13 Oppo广东移动通信有限公司 Image processing method and device, computer readable storage medium and electronic device
CN111935486B (en) * 2020-07-29 2022-11-29 Oppo广东移动通信有限公司 Image processing method and device, computer readable storage medium and electronic device

Similar Documents

Publication Publication Date Title
US9479786B2 (en) Complexity allocation for video and image coding applications
US10291925B2 (en) Techniques for hardware video encoding
JP4203707B2 (en) A moving picture coding apparatus, a moving picture coding method, and a program using the prior analysis.
US20220191520A1 (en) Information processing apparatus and method
CN104885455A (en) Content adaptive bitrate and quality control by using frame hierarchy sensitive quantization for high efficiency next generation video coding
JP2009033423A (en) Image compression method and image processing device
KR950035430A (en) Image encoding method and apparatus
US20200267396A1 (en) Human visual system adaptive video coding
CN103188493A (en) Image encoding apparatus and image encoding method
US11025913B2 (en) Encoding video using palette prediction and intra-block copy
CN102754440B (en) Method for encoding images, picture coding device and camera system
KR20030065588A (en) Method of performing video encoding rate control using bit budget
JP2005229404A (en) Device and method for encoding moving image
US20050135788A1 (en) Image encoder and recorder
JPH10336654A (en) Image encoder
JP7426989B2 (en) Profit-based bitrate allocation for video coding
JP2007104342A (en) Device and method for image encoding
JP5236332B2 (en) Encoding apparatus, encoding method, and encoding program
JPH0970041A (en) Variable bit rate coder
JP4534106B2 (en) Video encoding system and method
JP2019102861A (en) Moving image encoding device, moving image encoding method, and moving image encoding program
US20130142249A1 (en) Method and apparatus for performing video and image compression using a video encoder
JP4153454B2 (en) Moving picture coding apparatus, moving picture coding method, moving picture coding program, and computer-readable recording medium recording the program
JP4747109B2 (en) Calculation amount adjustment device
JP2008098980A (en) Moving image encoding apparatus

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20090106