JP2019029802A - Encoding apparatus, encoding method, and program - Google Patents
Encoding apparatus, encoding method, and program Download PDFInfo
- Publication number
- JP2019029802A JP2019029802A JP2017146798A JP2017146798A JP2019029802A JP 2019029802 A JP2019029802 A JP 2019029802A JP 2017146798 A JP2017146798 A JP 2017146798A JP 2017146798 A JP2017146798 A JP 2017146798A JP 2019029802 A JP2019029802 A JP 2019029802A
- Authority
- JP
- Japan
- Prior art keywords
- subband
- determined
- quantization parameter
- coefficient
- quantization
- 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.)
- Granted
Links
Images
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
本発明は、符号化装置、符号化方法、及び、プログラムに関する。 The present invention relates to an encoding device, an encoding method, and a program.
高効率な画像圧縮を実現するために様々な符号化手法が提案されている。代表的な画像の符号化方式として、JPEG2000がある。このJPEG2000では、DWT(離散ウェーブレット変換:Discrete Wavelet Transform)と呼ばれる周波数変換手法を用いて画像を複数の周波数成分に分割し、周波数成分毎に量子化して符号化する。こうした周波数変換を用いた符号化方式では、一般的に、視覚的な劣化の目立ちにくい高周波成分の符号量を削減することで高い符号化効率を得ている。特許文献1は周波数変換を用いた符号化において、視覚周波数特性に基づく量子化制御によって符号化効率を高める方法を提案している。
Various encoding methods have been proposed to realize highly efficient image compression. A representative image encoding method is JPEG2000. In JPEG2000, an image is divided into a plurality of frequency components using a frequency conversion method called DWT (Discrete Wavelet Transform), and each frequency component is quantized and encoded. In such an encoding method using frequency conversion, generally, high encoding efficiency is obtained by reducing the amount of high-frequency component codes that are hardly noticeable visually.
しかし、特許文献1の提案手法では、高周波成分に含まれるエッジ成分に対しても他の高周波成分と同様な量子化処理が実行されてしまう。一般的にエッジは視覚的な劣化が目立ちやすい箇所であるため、エッジに対する量子化処理は他の高周波成分と比べて細かいステップで実行することが望ましい。
However, in the proposed method of
そこで本発明は、周波数変換を用いた画像符号化処理において、エッジの画質劣化を抑えつつ符号化効率を高めることを可能とする技術を提供する。 In view of this, the present invention provides a technique that can improve encoding efficiency while suppressing deterioration in image quality of edges in image encoding processing using frequency conversion.
上記課題を解決するための本発明は、符号化装置であって、
画像から複数のサブバンドデータを生成する生成手段と、
前記複数のサブバンドデータに含まれる各サブバンド係数に割り当てる量子化パラメータを決定する決定手段と、
前記決定手段が決定した前記量子化パラメータを用いて前記複数のサブバンドデータを量子化する量子化手段と、
前記量子化手段における量子化結果を符号化する符号化手段と
を備え、
前記決定手段は、前記サブバンド係数がエッジ部に分類される場合に、前記サブバンド係数がエッジ部に分類されない場合よりも値が小さくなるように、前記割り当てる量子化パラメータを決定することを特徴とする。
The present invention for solving the above problems is an encoding device,
Generating means for generating a plurality of subband data from an image;
Determining means for determining a quantization parameter to be assigned to each subband coefficient included in the plurality of subband data;
Quantization means for quantizing the plurality of subband data using the quantization parameter determined by the determination means;
Encoding means for encoding the quantization result in the quantization means,
The determining means determines the quantization parameter to be assigned so that the value is smaller when the subband coefficient is classified into an edge portion than when the subband coefficient is not classified into an edge portion. And
本発明によれば、周波数変換を用いた画像符号化処理において、エッジの画質劣化を抑えつつ符号化効率を高めることができる。 According to the present invention, in an image encoding process using frequency conversion, it is possible to increase encoding efficiency while suppressing deterioration in image quality of edges.
[実施形態1]
まず、発明の第1の実施形態について説明する。発明の実施形態に対応する符号化装置100の構成及び処理の流れについて図面を参照しながら説明を行う。まず、図1(A)に示す符号化装置100は、例えばデジタルカメラ、デジタルビデオカメラとして実現することができる。また、それ以外に、例えばパーソナルコンピュータ、携帯電話、スマートフォン、PDA、タブレット端末、携帯型メディアプレーヤなどの任意の情報処理端末或いは撮像装置として実現することもできる。なお、図1(A)は、デジタルカメラ等として機能する場合を考慮して、画像を取得するための構成として撮像部102を含む例を示した。しかし、発明の実施形態として、例えば記録媒体109に記録されている非圧縮のRAWデータを処理対象の画像として取得し、これを圧縮・記録することが可能な画像符号化装置、画像記録装置、画像圧縮装置等として、撮像部102を有しない構成で実現してもよい。
[Embodiment 1]
First, a first embodiment of the invention will be described. The configuration and processing flow of the
図1(A)の符号化装置100において、各ブロックは専用ロジック回路やメモリを用いてハードウェア的に構成されてもよい。或いは、メモリに記憶されている処理プログラムをCPU等のコンピュータが実行することにより、ソフトウェア的に構成されてもよい。
In the
図1(A)に示す符号化装置100において、制御部101は、符号化装置100を構成する各処理部を制御する。撮像部102は、光学レンズ、絞り、フォーカス制御及びレンズ駆動部を含む光学ズームが可能なレンズ光学系とレンズ光学系からの光情報を電気信号に変換するCCDイメージセンサ又は、CMOSセンサなどの撮像素子を含む。撮像部102は、撮像素子により得られた電気信号をディジタル信号に変換したRAWデータをプレーン変換部103へ出力する。なお、RAWデータは、ベイヤー配列のR(赤)、G1(緑)、G2(緑)、B(青)の4つの色要素で構成されるものとして説明する。
In the
プレーン変換部103は、撮像部102から入力されたRAWデータを読み出し、4つの独立したプレーンデータに変換する。ここで、プレーンデータへの変換例を図1(B)に示す。図1(B)の例では、ベイヤー配列をR、G1、G2、Bに分離して、4つの画素プレーンデータを生成する。そして、生成した4つのプレーンデータを周波数変換部104に出力する。
The
周波数変換部104は、プレーン変換部103から出力されたプレーンデータを読み出してそれぞれに対して周波数変換を施して、それぞれがサブバンド係数からなる複数のサブバンドデータを生成する。そして、得た変換係数をメモリ105に出力する。本実施形態の周波数変換では、分解レベル1のサブバンド分割処理に関わるウェーブレット変換を実施するものとして説明する。図2(A)は、lev=1のサブバンド分割処理に関わる離散ウェーブレット変換を実現するためのフィルタバンク構成を示しており、離散ウェーブレット変換処理を水平、垂直方向に実行した結果、図2(B)に示すように1つの低周波成分係数(LL)と3つの高周波成分係数(HL、LH、HH)からなる4種類のサブバンド係数で構成されるサブバンドデータへ分割される。図2(A)に示すローパスフィルタ(以降、lpfと呼ぶ)及びハイパスフィルタ(以降、hpfと呼ぶ)の伝達関数をそれぞれ下式1,2に示す。
lpf(z)=(−z-2+2z-1+6+2z−z2)/8 式1
hpf(z)=(−z-1+2−z)/2 式2
The
lpf (z) = (− z −2 + 2z −1 + 6 + 2z−z 2 ) / 8
hpf (z) = (− z −1 + 2−z) / 2
また、「↓2」は2対1のダウンサンプリングを表す。従って、水平方向と垂直方向とで1回ずつのダウンサンプリングが実行されるので、サブバンドのサイズは元のサイズの1/4となる。levが1よりも大きい場合には、低周波成分係数(LL)に対して階層的にサブバンド分割が実行されてもよい。ここでは離散ウェーブレット変換は上記式1、2に示すように5タップのlpfと3タップのhpfで構成しているが、これとは異なるタップ数及び異なる係数のフィルタ構成であっても良い。
“↓ 2” represents 2-to-1 downsampling. Accordingly, since downsampling is performed once in the horizontal direction and in the vertical direction, the size of the subband is ¼ of the original size. When lev is larger than 1, subband division may be executed hierarchically on the low frequency component coefficient (LL). Here, the discrete wavelet transform is composed of 5-tap lpf and 3-tap hpf as shown in the
メモリ105は、周波数変換部104から出力される各プレーンデータの変換係数を格納するための例えば揮発性メモリで構成される記憶領域である。量子化制御部106は、メモリ105に格納される高周波成分係数(HL、LH、HH)を用いた画像の複雑度の算出とエッジ検出による特徴分類を行い、分類結果に応じて量子化部107で使用する、各サブバンドデータのサブバンド係数に割り当てられる量子化パラメータを決定する。量子化パラメータの決定方法の詳細は後述する。量子化部107は、メモリ105に格納される変換係数を読み出し、量子化制御部106から入力される量子化パラメータを用いて量子化処理を実行し、量子化後の係数をエントロピー符号化部108に出力する。
The
エントロピー符号化部108は、量子化部107における量子化結果として得られた係数を圧縮符号化し、符号化データを記録媒体109に出力する。この圧縮符号化は、例えば、ハフマン符号化、ゴロム符号化等のエントロピー符号化方式を用いて実施する。記録媒体109は、例えば不揮発性メモリで構成される記録メディアである。エントロピー符号化部108が出力した符号化データを保持する。
The
次に、量子化制御部106が行う量子化パラメータ決定処理について、図3に示すフローチャートを用いて説明する。該フローチャートに対応する処理は、例えば、量子化制御部106として動作・機能する専用ロジック回路、または、量子化制御部106として動作・機能する1以上のプロセッサが対応するプログラム(ROM等に格納)を実行すること、により実現できる。
Next, the quantization parameter determination process performed by the
まずS301において、量子化制御部106は、メモリ105に格納した各プレーンデータを周波数変換して得られた高周波成分係数(HL、LH、HH)を読み出して、画像の複雑度を算出する。画像の複雑度とは、画像にどの程度の高周波成分が含まれるかを示す指標であって、例えば、空間的に同一位置にあるHLサブバンド係数、LHサブバンド係数、HHサブバンド係数、それぞれを絶対値化した3係数の平均であり、算出した複雑度はサブバンド間共通の評価値となる。本実施形態の複雑度は、絶対値化した3係数の平均値として説明するが、絶対値化した3係数の最大値であってもよい。また、これらに限定されるものではない。
First, in S301, the
次にS302では、量子化制御部106はS301で算出した複雑度の高さに基づいて、各プレーンのサブバンド係数を複雑部と非複雑部に分類する。分類においては、例えば、複雑度の閾値を予め設けておき、閾値との大小関係によって分類すればよい。具体的には、複雑度の値が閾値より大きい場合は複雑度が高いとして「複雑部」と分類し、閾値以下となる場合は複雑度が高くないとして「非複雑部」と分類することができる。複雑部と判定された部分は、高周波成分が多く含まれており、視覚的な劣化の目立ち難いといえる。一方、非複雑部と判定された部分は、低周波成分が多く含まれており、視覚的な劣化の目立ちやすいといえる。本実施形態では複雑部に分類されたサブバンド係数の量子化パラメータをエッジ検出結果に応じて調整するため、複雑部に分類される場合は、処理はS303に進む。一方、非複雑部に分類される場合は、処理はS307に進む。
Next, in S302, the
続くS303では、量子化制御部106はS302で複雑部に分類された高周波成分係数に対して垂直エッジ検出を行う。ここで、垂直エッジ検出方法を図4を参照して説明する。垂直エッジ検出に用いる高周波成分を図4(A)に示す。垂直エッジは水平方向に対する高周波成分であるため、水平方向に対する高周波成分に関連するHLサブバンドの係数をメモリ105から読み出して垂直エッジ検出を行う。また、垂直エッジ検出では、振幅強度の連続性からエッジの有無を判定するため、判定対象の係数の近傍の係数もメモリ105から読み出す。
In subsequent S303, the
本実施形態では、判定対象の係数と同一方向に隣接して連続する左右2係数(エッジ検出対象係数の水平座標を起点nとして、1係数ずれた位置にある係数はn±1、2係数ずれた位置にある係数は±2)による垂直エッジの有無を判定する例を示す。次に、垂直エッジ有りと判定する係数の並びを図4(B)に示す。図4(B)の水平軸は水平座標、垂直軸は各水平座標の係数値であり、水平座標については図4(A)と対応付けている。 In this embodiment, the left and right two coefficients that are adjacent to each other in the same direction as the determination target coefficient (the coefficient at the position shifted by one coefficient starting from the horizontal coordinate of the edge detection target coefficient is n ± 1, 2 coefficient shift. The coefficient at the specified position shows an example of determining the presence or absence of a vertical edge according to ± 2). Next, FIG. 4B shows an array of coefficients determined as having a vertical edge. The horizontal axis in FIG. 4B is the horizontal coordinate, the vertical axis is the coefficient value of each horizontal coordinate, and the horizontal coordinate is associated with FIG.
まず、係数毎に振幅の強度を判定する。判定においては、予め係数の閾値を設け、閾値より大きい場合は振幅値大、閾値以下の場合は振幅値小と分類すれば良い。そして、振幅値の大小分類の並びから垂直エッジの有無を判定する。図4(B)に示す通り、エッジ有りと判定される振幅値の関係は以下の2通りである。
[条件1]n−2:振幅値小、n−1:振幅値小、n:振幅値大
[条件2]n:振幅値大、n+1:振幅値小、n+2:振幅値小
First, the amplitude intensity is determined for each coefficient. In the determination, a threshold value of a coefficient is set in advance, and the amplitude value may be classified as large when it is larger than the threshold value and small as the amplitude value when smaller than the threshold value. Then, the presence / absence of a vertical edge is determined from the arrangement of magnitude classifications of amplitude values. As shown in FIG. 4B, the relationship between the amplitude values determined as having edges is as follows.
[Condition 1] n-2: small amplitude value, n-1: small amplitude value, n: large amplitude value [Condition 2] n: large amplitude value, n + 1: small amplitude value, n + 2: small amplitude value
条件1と条件2を満たす場合は、判定対象の係数nにおいて、閾値を跨いだ振幅値の変化が発生しており、振幅値に急峻な変化があって連続性が保たれないケースに該当するため、垂直エッジ有りと判定する。一方、判定対象の係数nにおいて閾値を跨いだ振幅値の変化が発生していない場合は垂直エッジ無しと判定する。そして、空間的に同一位置にあるLLサブバンド係数、LHサブバンド係数、HHサブバンド係数に対して、エッジ有無の判定結果を共通して付加する。
When the
続くS304では、量子化制御部106はS303の垂直エッジ検出によるエッジ有無の判定結果に基づいて、各サブバンド係数をエッジ部と非エッジ部に分類する。S303で垂直エッジ有りと判定されたサブバンド係数はエッジ部として、処理はS305に進む。一方、垂直エッジ無しと判定されたサブバンド係数は非エッジ部として、処理はS306に進む。
In subsequent S304, the
S305、S306、S307は、S302における複雑部であるか否かの判定結果と、S304でのエッジ部であるか否かの判定結果に応じて、各サブバンド係数に対して割り当てる量子化パラメータを決定する。本実施形態では、各サブバンド係数に対して割り当てる候補となる量子化パラメータを量子化マトリクス(量子化テーブル)として予め用意しておき、判定結果に従っていずれか1つの量子化パラメータを選択する。 In S305, S306, and S307, the quantization parameter to be assigned to each subband coefficient is determined according to the determination result of whether it is a complex part in S302 and the determination result of whether it is an edge part in S304. decide. In this embodiment, a quantization parameter that is a candidate to be assigned to each subband coefficient is prepared in advance as a quantization matrix (quantization table), and any one quantization parameter is selected according to the determination result.
図5(A)は、本実施形態に対応する量子化マトリクスのデータ構成の一例を示す図である。量子化マトリクス500には非複雑部、エッジ部、非エッジ部の各分類について、LL、HL、LH、HHのサブバンド係数毎の量子化パラメータの値が登録されている。非複雑部に分類される場合の量子化パラメータは、A0(LL)、A1(HL)、A2(LH)、A3(HH)である。また、エッジ部に分類される場合の量子化パラメータは、B0(LL)、B1(HL)、B2(LH)、B3(HH)である。さらに、非エッジ部に分類される場合の量子化パラメータは、C0(LL)、C1(HL)、C2(LH)、C3(HH)とする。
FIG. 5A is a diagram illustrating an example of a data configuration of a quantization matrix corresponding to the present embodiment. In the
このとき、非複雑部と複雑部では、非複雑部の量子化パラメータの方が小さくなるようにする。但し、エッジ部と判定されたサブバンド係数については、非複雑部と同等の量子化パラメータとしてもよい。その場合、分類間の量子化パラメータの大小関係は、例えばA≦B<C(非複雑部≦エッジ部<非エッジ部)と表現することができる。また、サブバンド間の関係については、低周波成分が多いほど視覚的な劣化が目立ちやすくなるので量子化パラメータを小さくする。そこでサブバンド間では「LL≦HL=LH≦HH」の大小関係を満たすように量子化パラメータが設定される。 At this time, the quantization parameter of the non-complex part is made smaller in the non-complex part and the complex part. However, the subband coefficient determined to be the edge portion may be a quantization parameter equivalent to that of the non-complex portion. In that case, the magnitude relationship of the quantization parameter between classifications can be expressed as, for example, A ≦ B <C (non-complex portion ≦ edge portion <non-edge portion). As for the relationship between the subbands, the visual parameter is more noticeable as the number of low-frequency components is larger, so the quantization parameter is reduced. Accordingly, the quantization parameter is set so as to satisfy the magnitude relationship of “LL ≦ HL = LH ≦ HH” between the subbands.
S305、S306、S307では、判定対象のサブバンド係数が属する分類と、該サブバンド係数の種類に応じて、量子化マトリクス500に登録されているいずれかの量子化パラメータが選択される。S305では、量子化制御部106は、サブバンド係数に対する量子化パラメータを、上述したエッジ部の量子化パラメータB0からB3のいずれかに決定する。例えば、エッジ部のHLについては、S305において量子化パラメータB1が選択される。S306では、量子化制御部106はサブバンド係数に対する量子化パラメータを、上述した非エッジ部用の量子化パラメータC0からC3のいずれかに決定する。S307は、量子化制御部106はサブバンド係数に対する量子化パラメータを、上述した非複雑部用の量子化パラメータA0からA3のいずれかに決定する。
In S305, S306, and S307, one of the quantization parameters registered in the
上記処理は、RAWデータを変換して得られたR、G1、G2、Bの各プレーンについて実行する。その際、4つのプレーンのサブバンド係数について並列に処理を実行してもよいし、プレーン毎の処理を4回繰り返すようにしてもよい。 The above process is executed for each of the R, G1, G2, and B planes obtained by converting the RAW data. At this time, the processing may be executed in parallel for the subband coefficients of the four planes, or the processing for each plane may be repeated four times.
なお、上記の実施形態においては、プレーンに含まれる全てのサブバンド係数について複雑部か非複雑部かを判定して、量子化パラメータの調整を行ったが、これ以外にも量子化パラメータの調整は以下のように行ってもよい。例えば、複雑部か非複雑部か判定を所定サイズの画素領域に相当するブロック単位に行うこととし、複雑部と判定されたブロックに属するサブバンド係数についてエッジ検出結果に応じた量子化パラメータの調整を行ってもよい。具体的に、RAWデータがR、G1、G2、Bに分離され4つの画素プレーンデータで処理される場合、1画素プレーンにつき所定サイズのブロックが処理対象となる。ブロックサイズは、例えば要求される画質等に応じた任意の大きさとすることができる。このとき、ブロック単位の複雑度は、例えばブロック内に含まれる高周波成分のサブバンド係数の平均値、最大値、最大値と最小値との差分、又は、分散として算出することができる。また、複雑部と非複雑部とのいずれに属するかは、算出した複雑度と所定の閾値との比較により判定することができる。 In the above embodiment, the quantization parameter is adjusted by determining whether all the subband coefficients included in the plane are the complex part or the non-complex part, but the quantization parameter is adjusted in addition to this. May be performed as follows. For example, it is determined whether it is a complex part or a non-complex part for each block corresponding to a pixel area of a predetermined size, and the quantization parameter is adjusted according to the edge detection result for subband coefficients belonging to the block determined to be a complex part May be performed. Specifically, when RAW data is separated into R, G1, G2, and B and processed with four pixel plane data, a block of a predetermined size is processed for each pixel plane. The block size can be set to an arbitrary size according to, for example, required image quality. At this time, the complexity in units of blocks can be calculated as, for example, an average value, a maximum value, a difference between the maximum value and the minimum value, or a variance of high-frequency components included in the block. In addition, whether it belongs to a complex part or a non-complex part can be determined by comparing the calculated complexity with a predetermined threshold value.
また、量子化パラメータを調整する単位はブロック単位でなくてもよい。例えば、高周波成分のサブバンド係数で所定の閾値以上の値を有する係数を包含する領域を設定することで、高周波成分がより多く含まれる領域を特定する。そして、当該領域に含まれるサブバンド係数についてエッジ検出結果に応じた量子化パラメータの調整を行ってもよい。 The unit for adjusting the quantization parameter may not be a block unit. For example, by setting a region that includes a coefficient having a value equal to or higher than a predetermined threshold among the subband coefficients of the high-frequency component, a region that includes more high-frequency components is specified. Then, the quantization parameter may be adjusted according to the edge detection result for the subband coefficients included in the region.
これらの変形例では、複雑度の高い部分においてエッジ部と非エッジ部とで量子化パラメータを切替えて量子化処理を実行することで画質の劣化を抑制しつつ、複雑部か否かの判定処理の負荷を軽減することができる。 In these modified examples, processing for determining whether or not a complex part is present while suppressing deterioration in image quality by switching the quantization parameter between the edge part and the non-edge part in a highly complex part and executing the quantization process. Can reduce the load.
上記の実施形態では、量子化パラメータ決定処理において、画像の特徴の分類結果やエッジ部か否かの判定結果に基づき固定的に量子化パラメータを決定する場合を説明した。この場合、割り当てられる量子化パラメータは固定されているので、先に実行された符号化処理で発生した符号量が多かった場合に、符号量の収束性を考慮して後の符号化処理で使用する量子化パラメータを調整し発生符号量を下げることができない。この場合、上記実施形態の変形例として、量子化パラメータ自体を保持しておくのではなく、画像特徴やエッジの有無に応じた量子化パラメータの補正値をマトリクスとして予め保持しておくことができる。この場合、符号量制御に基づく可変の量子化パラメータに対して補正を実行することで、符号量の収束性を考慮しつつ、エッジの画質劣化を抑えることができる。 In the above-described embodiment, the case has been described in which the quantization parameter is fixedly determined based on the classification result of image features and the determination result of whether or not the image is an edge portion in the quantization parameter determination process. In this case, since the assigned quantization parameter is fixed, if the amount of code generated by the previously executed encoding process is large, it is used in the subsequent encoding process considering the convergence of the code amount. The amount of generated code cannot be reduced by adjusting the quantization parameter. In this case, as a modification of the above-described embodiment, the quantization parameter correction value corresponding to the image feature or the presence / absence of the edge can be held in advance as a matrix, instead of holding the quantization parameter itself. . In this case, by performing correction on the variable quantization parameter based on the code amount control, it is possible to suppress edge image quality degradation while considering the convergence of the code amount.
図5(B)は、量子化パラメータ補正値のマトリクスの一例を示す。マトリクスに登録される各補正値は、図5(A)の各量子化パラメータの相対的関係に対応した値とすることができる。図5(B)においては、非複雑部LL成分を基準となる量子化パラメータとしている。よって、非複雑部LLであるサブバンド係数以外の他のサブバンド係数のための他の量子化パラメータは、非複雑部LL成分の量子化パラメータの値との差分に基づく補正値として表すことができる。まず、非複雑部のLL成分は補正値0となる。マトリクスの横方向は、HL、LHの補正値を等しくし、HHの補正値が最大となるようにしている。また、縦方向については、下に行くほど、補正値が大きくなるようにしている。これにより、符号量制御を行なう場合であっても、エッジの画質劣化を抑えつつ符号化効率を高めることが可能となる。 FIG. 5B shows an example of a matrix of quantization parameter correction values. Each correction value registered in the matrix can be a value corresponding to the relative relationship of each quantization parameter in FIG. In FIG. 5B, the non-complex portion LL component is used as a reference quantization parameter. Therefore, other quantization parameters for subband coefficients other than the subband coefficient that is the non-complex part LL can be expressed as correction values based on the difference from the quantization parameter value of the non-complex part LL component. it can. First, the LL component of the non-complex portion has a correction value of 0. In the horizontal direction of the matrix, the correction values of HL and LH are made equal, and the correction value of HH is maximized. In the vertical direction, the correction value increases as it goes down. As a result, even when the code amount control is performed, it is possible to increase the encoding efficiency while suppressing the deterioration of the image quality of the edge.
また、符号量制御に基づく可変の量子化パラメータについては、例えば以下のようにして算出することができる。まず、量子化制御部106は、符号化対象のサブバンドを複数の領域に分割し、領域毎にLL成分の量子化パラメータを決定する。領域の分割方法は、例えば、サブバンドをそれぞれ垂直方向に所定のラインごとに分割することができるが、これに限定されないものであって、より細かく分割してもよいし、より粗く分割してもよい。次に量子化制御部106は、分割により得られた各領域に目標符号量を割り当てる。目標符号量は、各領域に対して均一に割り当ててもよいし、或いは、画像の特徴に応じて、例えば高周波成分の多い領域により多くの目標符号量を割り当ててもよい。
The variable quantization parameter based on the code amount control can be calculated as follows, for example. First, the
次に、量子化制御部106は、処理対象の領域に対応する目標符号量と発生符号量とを比較し、次の処理対象の領域の符号化処理における発生符号量を目標発生符号量に近づけるようにフィードバック制御を行い、各サブバンドに共通の量子化パラメータを生成する。このときの符号量の制御は、例えば以下の式3に従って実行することができる。
Next, the
Qp(i)=Qp(0)+r×Σ{S(i−1)−T(i−1)} 式3
Qp(0) : 初期量子化パラメータ
Qp(i):i番目の量子化パラメータ(i>0)
r:制御感度
S:発生符号量
T:目標符号量
Qp (i) = Qp (0) + r × Σ {S (i−1) −T (i−1)} Equation 3
Qp (0): Initial quantization parameter Qp (i): i-th quantization parameter (i> 0)
r: Control sensitivity
S: Generated code amount
T: Target code amount
式3では、サブバンドデータに設定された各領域のうちの先頭の領域に対して設定した初期量子化パラメータを基準とし、発生符号量と目標符号量との差分の大きさに応じて当該初期量子化パラメータを調整する。具体的に、先頭領域以降に発生した符号量の合計(総発生符号量)と、対応する目標符号量の合計(総目標符号量)との符号量差分が小さくなるように初期量子化パラメータの値を調整して、処理対象の領域のための量子化パラメータを決定する。先頭領域に対して設定される初期量子化パラメータは、圧縮率などに基づいて量子化制御部106が決定したパラメータを用いることができる。
In Expression 3, the initial quantization parameter set for the first area among the areas set in the subband data is used as a reference, and the initial quantization parameter is set according to the difference between the generated code quantity and the target code quantity. Adjust the quantization parameter. Specifically, the initial quantization parameter value is set so that the code amount difference between the total code amount generated after the head region (total generated code amount) and the corresponding target code amount (total target code amount) becomes small. Adjust the value to determine the quantization parameter for the region to be processed. As the initial quantization parameter set for the head region, a parameter determined by the
以上のように、本実施形態では、画像が有する複雑度や垂直エッジ有無の特徴に応じた量子化パラメータを選択するので、複雑度の高い部分においても、エッジ部と非エッジ部とで量子化パラメータを切替えて量子化処理を実行することができる。これにより、エッジの画質劣化を抑えつつ符号化効率を高めることが可能となる。 As described above, in this embodiment, since the quantization parameter is selected according to the complexity of the image and the feature of the presence or absence of the vertical edge, the quantization is performed between the edge portion and the non-edge portion even in a high complexity portion. The quantization process can be executed by switching parameters. As a result, it is possible to increase the encoding efficiency while suppressing the deterioration of the edge image quality.
[実施形態2]
次に、発明の第2の実施形態を説明する。上述の実施形態1では、垂直エッジ検出によってエッジ有無を判定して量子化パラメータを決定していたが、本実施形態では、水平エッジ検出によってエッジ有無を判定して量子化パラメータを決定する方法について説明する。本実施形態に係る符号化装置の構成は、図1(A)に示す符号化装置100と同じであるため、構成に関する説明は省略する。
[Embodiment 2]
Next, a second embodiment of the invention will be described. In the first embodiment described above, the quantization parameter is determined by determining the presence / absence of an edge by vertical edge detection. However, in this embodiment, a method for determining the quantization parameter by determining the presence / absence of an edge by horizontal edge detection. explain. The configuration of the encoding apparatus according to this embodiment is the same as that of
次に、図6に示すフローチャートに基づいて、本実施形態における量子化制御部106が行う量子化パラメータ決定手順について説明する。該フローチャートに対応する処理は、例えば、量子化制御部106として動作・機能する専用ロジック回路、または、量子化制御部106として動作・機能する1以上のプロセッサが対応するプログラム(ROM等に格納)を実行すること、により実現できる。なお、本実施形態は、実施形態1の処理を包含しており、実施形態1と同様の処理に関しては詳細な説明を省略する。
Next, a quantization parameter determination procedure performed by the
まずS601において、量子化制御部106は、メモリ105に格納されている各プレーンデータを周波数変換して得られた高周波成分係数(HL、LH、HH)を読み出して、複雑度を算出する。当該処理は、実施形態1のS301に相当する。続くS602では、量子化制御部106はS601で算出した複雑度に基づいて、各プレーンのサブバンド係数を複雑部と非複雑部に分類する。当該処理は、実施形態1のS302に相当する。複雑部に分類される場合、処理はS603に進み、非複雑部に分類される場合、処理はS607に進む。
First, in step S <b> 601, the
続くS603は、量子化制御部106はS602で複雑部に分類された高周波成分係数に対して水平エッジ検出を行う。ここで、水平エッジ検出方法を図7を参照して説明する。水平エッジ検出に用いる高周波成分を図7(A)に示す。水平エッジは垂直方向に対する高周波成分であるため、垂直方向に対する高周波成分に関連するLHサブバンドの係数をメモリ105から読み出して水平エッジ検出を行う。また、水平エッジ検出では、振幅強度の連続性からエッジの有無を判定するため、判定対象の係数の近傍の係数もメモリ105から読み出す。
In subsequent S603, the
本実施形態では、判定対象の係数と同一方向に隣接して連続する上下2係数(エッジ検出対象係数の垂直座標を起点nとして、1係数ずれた位置にある係数はn±1、2係数ずれた位置にある係数は±2)による水平エッジの有無を判定する例を示す。次に、水平エッジ有りと判定する係数の並びを図7(B)に示す。図7(B)の水平軸は垂直座標、垂直軸は各垂直座標の係数値であり、垂直座標については図7(A)と対応付けている。 In this embodiment, the upper and lower two coefficients adjacent to each other in the same direction as the determination target coefficient (the coefficient at the position shifted by one coefficient starting from the vertical coordinate of the edge detection target coefficient is n ± 1, 2 coefficient shift. The coefficient at the specified position shows an example of determining the presence or absence of a horizontal edge according to ± 2). Next, FIG. 7B shows an array of coefficients determined as having a horizontal edge. In FIG. 7B, the horizontal axis is the vertical coordinate, the vertical axis is the coefficient value of each vertical coordinate, and the vertical coordinate is associated with FIG. 7A.
まず、係数毎に振幅の強度を判定する。判定においては、予め係数の閾値を設け、閾値より大きい場合は振幅値大、閾値以下の場合は振幅値小と分類すれば良い。そして、振幅値の大小分類の並びから垂直エッジの有無を判定する。図7(B)に示す通り、エッジ有りと判定される振幅値の関係は以下の2通りである。
[条件1]n−2:振幅値小、n−1:振幅値小、n:振幅値大
[条件2]n:振幅値大、n+1:振幅値小、n+2:振幅値小
First, the amplitude intensity is determined for each coefficient. In the determination, a threshold value of a coefficient is set in advance, and the amplitude value may be classified as large when it is larger than the threshold value and small as the amplitude value when smaller than the threshold value. Then, the presence / absence of a vertical edge is determined from the arrangement of magnitude classifications of amplitude values. As shown in FIG. 7B, there are the following two relationships between the amplitude values determined as having edges.
[Condition 1] n-2: small amplitude value, n-1: small amplitude value, n: large amplitude value [Condition 2] n: large amplitude value, n + 1: small amplitude value, n + 2: small amplitude value
条件1と条件2を満たす場合は、判定対象の係数nの前後において、閾値を跨いだ振幅の変化が発生しており、振幅値に急峻な変化があって連続性が保たれないケースに該当するため、水平エッジ有りと判定する。一方、判定対象の係数nの前後において、閾値を跨いだ振幅の変化が発生していない場合は水平エッジ無しと判定する。そして、空間的に同一位置にあるLLサブバンド係数、HLサブバンド係数、HHサブバンド係数に対して、エッジ有無の判定結果を共通して付加する。
When
続くS604では、量子化制御部106はS603の水平エッジ検出によるエッジ有無の判定結果に基づいて、各サブバンド係数をエッジ部と非エッジ部に分類する。当該処理は、実施形態1のS304に相当する。S603で垂直エッジ有りと判定されたサブバンド係数はエッジ部として、処理はS605に進む。一方、垂直エッジ無しと判定されたサブバンド係数は非エッジ部として、処理はS606に進む。
In subsequent S604, the
S605、S606、S607では、S602における複雑部であるか否かの判定結果と、S604でのエッジ部であるか否かの判定結果に応じて、各サブバンド係数に対して割り当てる量子化パラメータを決定する。これらのステップにおける処理は、それぞれ実施形態1のS305、S306、S307に対応する。本実施形態でも、各サブバンド係数に対して割り当てる候補となる量子化パラメータを量子化マトリクスとして予め用意しておき、判定結果に従っていずれか1つの量子化パラメータを選択することができる。 In S605, S606, and S607, the quantization parameter to be assigned to each subband coefficient is determined according to the determination result of whether it is a complex part in S602 and the determination result of whether it is an edge part in S604. decide. The processes in these steps correspond to S305, S306, and S307 of the first embodiment, respectively. Also in this embodiment, a quantization parameter that is a candidate to be assigned to each subband coefficient is prepared in advance as a quantization matrix, and any one quantization parameter can be selected according to the determination result.
S605、S606、S607では、それぞれ処理対象のサブバンド係数が属する分類と、サブバンド係数の種類に応じて、量子化マトリクス500に登録されているいずれかの量子化パラメータが選択される。S605では、量子化制御部106は、サブバンド係数に対する量子化パラメータを、上述したエッジ部の量子化パラメータB0からB3のいずれかに決定する。S606では、量子化制御部106はサブバンド係数に対する量子化パラメータを、上述した非エッジ部用の量子化パラメータC0からC3のいずれかに決定する。S607は、量子化制御部106はサブバンド係数に対する量子化パラメータを、上述した非複雑部用の量子化パラメータA0からA3のいずれかに決定する。
In S605, S606, and S607, any quantization parameter registered in the
また、本実施形態でも実施形態1と同様に、符号量の収束性を考慮し、画像の特徴に応じた量子化パラメータの補正値をマトリクスとして予め保持しておき、符号量制御に基づく可変の量子化パラメータに対して補正を実行する構成としてもよい。また、本実施形態においても実施形態1と同様に、量子化パラメータの調整を、所定サイズのブロック単位、或いは、高周波成分がより多く含まれると判定された領域について行ってもよい。 Also in the present embodiment, in the same way as in the first embodiment, in consideration of the convergence of the code amount, the correction values of the quantization parameters corresponding to the features of the image are stored in advance as a matrix so that the variable based on the code amount control can be changed. A configuration may be adopted in which correction is performed on the quantization parameter. Also in the present embodiment, as in the first embodiment, the quantization parameter may be adjusted for a block unit of a predetermined size or an area that is determined to contain more high frequency components.
以上のように、本実施形態では、画像が有する複雑度や水平エッジ有無の特徴に応じた量子化パラメータを選択するので、複雑度の高い部分においても、エッジ部と非エッジ部とで量子化パラメータを切替えて量子化処理を実行することができる。これにより、エッジの画質劣化を抑えつつ符号化効率を高めることが可能となる。 As described above, in this embodiment, since the quantization parameter is selected according to the complexity of the image and the feature of the presence / absence of the horizontal edge, the quantization is performed between the edge portion and the non-edge portion even in a high complexity portion. The quantization process can be executed by switching parameters. As a result, it is possible to increase the encoding efficiency while suppressing the deterioration of the edge image quality.
[実施形態3]
次に、発明の第3の実施形態を説明する。上述の実施形態1では垂直エッジ検出、実施形態2では水平エッジ検出によってエッジ有無を判定して量子化パラメータを決定していたが、本実施形態では、水平エッジ検出と垂直エッジ検出の両方を用いてエッジ有無を判定して量子化パラメータを決定する方法について説明する。本実施形態に係る符号化装置の構成は、図1(A)に示す符号化装置100と同じであるため、構成に関する説明は省略する。
[Embodiment 3]
Next, a third embodiment of the invention will be described. In the first embodiment, the vertical edge detection is performed, and in the second embodiment, the presence / absence of the edge is determined by the horizontal edge detection to determine the quantization parameter. However, in this embodiment, both the horizontal edge detection and the vertical edge detection are used. A method for determining the presence or absence of an edge and determining a quantization parameter will be described. The configuration of the encoding apparatus according to this embodiment is the same as that of
次に、図8に示すフローチャートに基づいて、本実施形態における量子化制御部106が行う量子化パラメータ決定手順について説明する。該フローチャートに対応する処理は、例えば、量子化制御部106として動作・機能する専用ロジック回路、または、量子化制御部106として動作・機能する1以上のプロセッサが対応するプログラム(ROM等に格納)を実行すること、により実現できる。なお、本実施形態は、実施形態1及び実施形態2の処理を包含しており、実施形態1及び実施形態2と同様の処理に関しては詳細な説明を省略する。
Next, a quantization parameter determination procedure performed by the
まず、S801において、量子化制御部106は、メモリ105に格納されている各プレーンデータを周波数変換して得られた高周波成分係数(HL、LH、HH)を読み出して、画像の複雑度を算出する。当該処理は、実施形態1のS301、実施形態2のS601に相当する。続くS802では、量子化制御部106はS801で算出した複雑度に基づいて、各プレーンのサブバンド係数を複雑部と非複雑部に分類する。当該処理は、実施形態1のS302、実施形態2のS602に相当する。複雑部に分類される場合、処理はS803に進み、非複雑部に分類される場合、処理はS808に進む。
First, in step S <b> 801, the
S803は、量子化制御部106はS802で複雑部に分類された高周波成分係数に対して垂直エッジ検出を行う。当該処理は実施形態1のS303に相当する。続くS804では、量子化制御部106はS802で複雑部に分類された高周波成分係数に対して水平エッジ検出を行う。当該処理は、実施形態2のS603に相当する。続くS805では、量子化制御部106はS803の垂直エッジ検出によるエッジ有無の判定結果と、S804の水平エッジ検出によるエッジ有無の判定結果に基づいて、処理対象のサブバンド係数をエッジ部と非エッジ部に分類する。ここでは、垂直エッジ、水平エッジの少なくともいずれかが有ると判定されたサブバンド係数はエッジ部として、処理はS806に進む。一方、垂直エッジ、水平エッジ、いずれも無いと判定された係数は、非エッジ部として処理はS807に進む。
In step S803, the
S806、S807、S808では、S802における複雑部であるか否かの判定結果と、S805でのエッジ部であるか否かの判定結果に応じて、各サブバンド係数に対して割り当てる量子化パラメータを決定する。これらのステップにおける処理は、それぞれ実施形態1のS305、S306、S307、実施形態2のS605、S606、S607に対応する。本実施形態でも、各サブバンド係数に対して割り当てる候補となる量子化パラメータを量子化マトリクスとして予め用意しておき、判定結果に従っていずれか1つの量子化パラメータを選択することができる。 In S806, S807, and S808, the quantization parameter to be assigned to each subband coefficient is determined according to the determination result of whether it is a complex part in S802 and the determination result of whether it is an edge part in S805. decide. The processes in these steps correspond to S305, S306, and S307 in the first embodiment and S605, S606, and S607 in the second embodiment, respectively. Also in this embodiment, a quantization parameter that is a candidate to be assigned to each subband coefficient is prepared in advance as a quantization matrix, and any one quantization parameter can be selected according to the determination result.
S806、S807、S808では、それぞれ処理対象のサブバンド係数が属する分類と、サブバンド係数の種類に応じて、量子化マトリクス500に登録されているいずれかの量子化パラメータが選択される。S806では、量子化制御部106は、サブバンド係数に対する量子化パラメータを、上述したエッジ部の量子化パラメータB0からB3のいずれかに決定する。S807では、量子化制御部106はサブバンド係数に対する量子化パラメータを、上述した非エッジ部用の量子化パラメータC0からC3のいずれかに決定する。S808は、量子化制御部106はサブバンド係数に対する量子化パラメータを、上述した非複雑部用の量子化パラメータA0からA3のいずれかに決定する。
In S806, S807, and S808, any quantization parameter registered in the
なお、本実施形態でも実施形態1と同様に、符号量の収束性を考慮し、画像の特徴に応じた量子化パラメータの補正値をマトリクスとして予め保持しておき、符号量制御に基づく可変の量子化パラメータに対して補正を実行するような構成としてもよい。また、本実施形態においても実施形態1と同様に、量子化パラメータの調整を、所定サイズのブロック単位、或いは、高周波成分がより多く含まれると判定された領域について行ってもよい。 Note that, in the present embodiment as well, in the same way as in the first embodiment, in consideration of the convergence of the code amount, the correction values of the quantization parameters corresponding to the image characteristics are stored in advance as a matrix, and the variable based on the code amount control is changed. A configuration may be adopted in which correction is performed on the quantization parameter. Also in the present embodiment, as in the first embodiment, the quantization parameter may be adjusted for a block unit of a predetermined size or an area that is determined to contain more high frequency components.
以上のように、本実施形態では、画像が有する複雑度、エッジ有無の特徴に応じた量子化パラメータを選択するので、複雑度の高い部分においても、エッジ部と非エッジ部とで量子化パラメータを切替えて量子化処理を実行することができる。特に、本実施形態では垂直エッジ検出と水平エッジ検出の両方を用いてエッジ有無の判定を行うことで、より高い精度でエッジと非エッジを分類することが可能となり、画質劣化の目立ちやすいエッジの画質を保護することができる。これにより、エッジの画質劣化を更に抑えつつ符号化効率を高めることが可能となる。 As described above, in the present embodiment, the quantization parameter is selected according to the complexity of the image and the characteristics of the presence / absence of the edge. Therefore, the quantization parameter between the edge portion and the non-edge portion even in the high complexity portion. The quantization process can be executed by switching between the two. In particular, in this embodiment, by using both vertical edge detection and horizontal edge detection to determine the presence / absence of an edge, it becomes possible to classify edges and non-edges with higher accuracy, and edge quality that tends to be noticeable for image quality degradation. Image quality can be protected. As a result, it is possible to increase the encoding efficiency while further suppressing the deterioration of the image quality of the edge.
(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other examples)
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
100:符号化装置、101:制御部、102:撮像部、103:プレーン変換部、104:周波数変換部、105:メモリ、106:量子化制御部、107:量子化部、108:エントロピー符号化部、109:記録媒体 DESCRIPTION OF SYMBOLS 100: Coding apparatus, 101: Control part, 102: Imaging part, 103: Plane conversion part, 104: Frequency conversion part, 105: Memory, 106: Quantization control part, 107: Quantization part, 108: Entropy coding Part, 109: recording medium
Claims (19)
前記複数のサブバンドデータに含まれる各サブバンド係数に割り当てる量子化パラメータを決定する決定手段と、
前記決定手段が決定した前記量子化パラメータを用いて前記複数のサブバンドデータを量子化する量子化手段と、
前記量子化手段における量子化結果を符号化する符号化手段と
を備え、
前記決定手段は、前記サブバンド係数がエッジ部に分類される場合に、前記サブバンド係数がエッジ部に分類されない場合よりも値が小さくなるように、前記割り当てる量子化パラメータを決定する
ことを特徴とする符号化装置。 Generating means for generating a plurality of subband data from an image;
Determining means for determining a quantization parameter to be assigned to each subband coefficient included in the plurality of subband data;
Quantization means for quantizing the plurality of subband data using the quantization parameter determined by the determination means;
Encoding means for encoding the quantization result in the quantization means,
The determining means determines the quantization parameter to be assigned so that the value is smaller when the subband coefficient is classified into an edge portion than when the subband coefficient is not classified into an edge portion. An encoding device.
前記複数のサブバンドデータに含まれるサブバンド係数のうち、高周波成分を含むサブバンド係数に基づき、画像の複雑度を判定し、
前記判定により前記複雑度が高いと判定されたサブバンド係数について、該サブバンド係数が前記エッジ部に分類される場合に、前記エッジ部に分類されない場合よりも値が小さくなるように、前記割り当てる量子化パラメータを決定することを特徴とする請求項1に記載の符号化装置。 The determining means includes
Of the subband coefficients included in the plurality of subband data, determine the complexity of the image based on the subband coefficients including high-frequency components,
The subband coefficients determined to have a high degree of complexity as a result of the determination are assigned so that the value is smaller when the subband coefficient is classified into the edge part than when the subband coefficient is not classified into the edge part. The encoding apparatus according to claim 1, wherein a quantization parameter is determined.
前記決定手段は、
前記画像の複雑度を前記所定サイズのブロックを単位として判定し、
前記判定により前記複雑度が高いと判定されたブロックに含まれるサブバンド係数を、前記複雑度が高いと判定されたサブバンド係数として、前記エッジ部に分類されるか否かを更に判定することを特徴とする請求項2に記載の符号化装置。 The image is divided into blocks of a predetermined size,
The determining means includes
Determining the complexity of the image in units of the block of the predetermined size;
It is further determined whether or not a subband coefficient included in a block determined to have a high complexity by the determination is classified as the edge portion as a subband coefficient determined to have a high complexity. The encoding device according to claim 2.
前記画像において複雑度の高い領域を特定し、
前記複雑度が高いと判定された領域に含まれるサブバンド係数を、前記複雑度が高いと判定されたサブバンド係数として、前記エッジ部に分類されるか否かを更に判定することを特徴とする請求項2に記載の符号化装置。 The determining means includes
Identify high complexity areas in the image,
It is further determined whether or not a subband coefficient included in a region determined to have high complexity is classified into the edge portion as a subband coefficient determined to have high complexity. The encoding device according to claim 2.
前記複数のサブバンドデータに含まれるサブバンド係数のうち、水平方向に対する高周波成分に関連するサブバンド係数から垂直エッジを検出するか、
前記複数のサブバンドデータに含まれるサブバンド係数のうち、垂直方向に対する高周波成分に関連するサブバンド係数から水平エッジを検出するか、または
前記垂直エッジ及び前記水平エッジの両方を検出する
ことによりエッジ検出を行い、
前記エッジ検出の結果に基づいて前記複雑度が高いと判定されたサブバンド係数が前記エッジ部に分類されるかどうかを判定することを特徴とする請求項2から7のいずれか1項に記載の符号化装置。 The determining means includes
Among the subband coefficients included in the plurality of subband data, a vertical edge is detected from subband coefficients related to a high frequency component in the horizontal direction, or
Of the subband coefficients included in the plurality of subband data, a horizontal edge is detected from a subband coefficient related to a high frequency component in a vertical direction, or an edge is detected by detecting both the vertical edge and the horizontal edge. Detection
8. The method according to claim 2, wherein it is determined whether or not a subband coefficient determined to have a high complexity based on a result of the edge detection is classified into the edge portion. 9. Encoding device.
前記エッジ検出の結果に基づき、同一方向に連続するエッジの振幅値が、前記エッジ部に分類されるかどうかの判定対象のサブバンド係数で急峻に変化している場合に、前記判定対象のサブバンド係数をエッジ部に分類することを特徴とする請求項8に記載の符号化装置。 The determining means includes
Based on the result of the edge detection, when the amplitude value of the edge that continues in the same direction changes sharply in the subband coefficient that is the target of determination as to whether or not the edge portion is classified, 9. The encoding apparatus according to claim 8, wherein the band coefficient is classified into an edge portion.
前記同一方向に連続するエッジの振幅値を閾値と比較し、前記判定対象のサブバンド係数で前記閾値を跨いだ変化が発生している場合に、前記判定対象のサブバンド係数を前記エッジ部に分類することを特徴とする請求項9に記載の符号化装置。 The determining means includes
When the amplitude value of the edge that continues in the same direction is compared with a threshold value, and the change of the determination target subband coefficient across the threshold value occurs, the determination target subband coefficient is set in the edge portion. The encoding apparatus according to claim 9, wherein classification is performed.
前記複雑度が高いと判定されていない低周波成分の前記サブバンド係数以外の他のサブバンド係数を前記補正値により補正することにより、前記割り当てる量子化パラメータを決定することを特徴とする請求項14に記載の符号化装置。 The determining means assigns the reference quantization parameter to a subband coefficient of a low frequency component that has not been determined to be high in complexity,
The quantization parameter to be assigned is determined by correcting a subband coefficient other than the subband coefficient of a low-frequency component that has not been determined to be high in complexity with the correction value. 14. The encoding device according to 14.
画像から複数のサブバンドデータを生成する生成工程と、
前記複数のサブバンドデータに含まれる各サブバンド係数に割り当てる量子化パラメータを決定する決定工程と、
前記決定工程において決定された前記量子化パラメータを用いて前記複数のサブバンドデータを量子化する量子化工程と、
前記量子化工程における量子化結果を符号化する符号化工程と
を含み、
前記決定工程では、前記サブバンド係数がエッジ部に分類される場合に、前記サブバンド係数がエッジ部に分類されない場合よりも値が小さくなるように、前記割り当てる量子化パラメータが決定される
ことを特徴とする符号化方法。 An encoding method executed by an encoding device, comprising:
Generating a plurality of subband data from the image;
A determination step of determining a quantization parameter to be assigned to each subband coefficient included in the plurality of subband data;
A quantization step of quantizing the plurality of subband data using the quantization parameter determined in the determination step;
An encoding step of encoding a quantization result in the quantization step,
In the determining step, the quantization parameter to be assigned is determined so that the value is smaller when the subband coefficient is classified into an edge portion than when the subband coefficient is not classified into an edge portion. Characteristic encoding method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017146798A JP7001383B2 (en) | 2017-07-28 | 2017-07-28 | Coding device, coding method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017146798A JP7001383B2 (en) | 2017-07-28 | 2017-07-28 | Coding device, coding method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019029802A true JP2019029802A (en) | 2019-02-21 |
JP7001383B2 JP7001383B2 (en) | 2022-01-19 |
Family
ID=65476658
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017146798A Active JP7001383B2 (en) | 2017-07-28 | 2017-07-28 | Coding device, coding method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7001383B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021034846A (en) * | 2019-08-22 | 2021-03-01 | キヤノン株式会社 | Encoder and control method therefor |
JP7419044B2 (en) | 2019-12-02 | 2024-01-22 | キヤノン株式会社 | Encoding device, imaging device, control method, and program |
JP7469865B2 (en) | 2019-10-25 | 2024-04-17 | キヤノン株式会社 | Image processing device and image processing method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4045913B2 (en) | 2002-09-27 | 2008-02-13 | 三菱電機株式会社 | Image coding apparatus, image coding method, and image processing apparatus |
JP4124436B2 (en) | 2002-11-13 | 2008-07-23 | 株式会社リコー | Motion estimation device, program, storage medium, and motion estimation method |
JP4895044B2 (en) | 2007-09-10 | 2012-03-14 | 富士フイルム株式会社 | Image processing apparatus, image processing method, and program |
JP5954514B1 (en) | 2016-04-18 | 2016-07-20 | 株式会社Jvcケンウッド | Image decoding apparatus, image decoding method, and image decoding program, and receiving apparatus, receiving method, and receiving program |
-
2017
- 2017-07-28 JP JP2017146798A patent/JP7001383B2/en active Active
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021034846A (en) * | 2019-08-22 | 2021-03-01 | キヤノン株式会社 | Encoder and control method therefor |
JP7387333B2 (en) | 2019-08-22 | 2023-11-28 | キヤノン株式会社 | Encoding device and its control method |
JP7469865B2 (en) | 2019-10-25 | 2024-04-17 | キヤノン株式会社 | Image processing device and image processing method |
JP7419044B2 (en) | 2019-12-02 | 2024-01-22 | キヤノン株式会社 | Encoding device, imaging device, control method, and program |
Also Published As
Publication number | Publication date |
---|---|
JP7001383B2 (en) | 2022-01-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2022036084A (en) | Encoding device, decoding device, encoding method, and decoding method | |
US10032252B2 (en) | Image processing apparatus, image capturing apparatus, image processing method, and non-transitory computer readable storage medium | |
US10771785B2 (en) | Image encoding apparatus, method of controlling the same, and storage medium | |
US10776956B2 (en) | Image coding apparatus, image decoding apparatus, image coding method, image decoding method, and non-transitory computer-readable storage medium | |
US11928843B2 (en) | Signal processing apparatus and signal processing method | |
US10609393B2 (en) | Image encoding apparatus and method of controlling the same | |
JP7001383B2 (en) | Coding device, coding method, and program | |
US11082698B2 (en) | Image capturing apparatus having a function for encoding raw image control method therof, and non-transitory computer-readable storage medium | |
JP6065613B2 (en) | Video encoding device | |
US20150062371A1 (en) | Encoding apparatus and method | |
US10897615B2 (en) | Image encoding apparatus and control method therefor | |
US10497093B2 (en) | Image processing apparatus for minimizing deterioration of image quality of a raw image | |
US20180035091A1 (en) | Imaging apparatus and control method thereof | |
US11140392B2 (en) | Image encoding apparatus, image decoding apparatus, control methods thereof, and non- transitory computer-readable storage medium | |
US20230133895A1 (en) | Image encoding apparatus and method for controlling the same and non-transitory computer-readable storage medium | |
US10306226B2 (en) | Image encoding apparatus, image decoding apparatus, and control methods therefor | |
JP2018088652A (en) | Imaging apparatus, image processing method, and program | |
US10419775B2 (en) | Moving image encoding apparatus, image capturing apparatus, moving image encoding method, and non-transitory computer readable storage medium | |
US10951891B2 (en) | Coding apparatus capable of recording raw image, control method therefor, and storage medium storing control program therefor | |
US9942569B2 (en) | Image encoding apparatus and control method of the same | |
US11508036B2 (en) | Image processing apparatus and image processing method for decoding raw image data encoded with lossy encoding scheme | |
US11032547B2 (en) | Image encoding apparatus, control method thereof, and non-transitory computer-readable storage medium | |
US20220256127A1 (en) | Image encoding apparatus, method for controlling the same, and non-transitory computer-readable storage medium | |
JP7387333B2 (en) | Encoding device and its control method | |
JP6812214B2 (en) | Image coding device, image coding method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200602 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20210103 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210113 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210729 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210827 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20211021 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20211126 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20211224 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 7001383 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |