JP4669645B2 - Image encoding apparatus, image encoding method, program, and recording medium - Google Patents
Image encoding apparatus, image encoding method, program, and recording medium Download PDFInfo
- Publication number
- JP4669645B2 JP4669645B2 JP2001289626A JP2001289626A JP4669645B2 JP 4669645 B2 JP4669645 B2 JP 4669645B2 JP 2001289626 A JP2001289626 A JP 2001289626A JP 2001289626 A JP2001289626 A JP 2001289626A JP 4669645 B2 JP4669645 B2 JP 4669645B2
- Authority
- JP
- Japan
- Prior art keywords
- coefficient
- coefficients
- encoding
- image
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Color Television Systems (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、画像符号化装置、画像符号化方法、プログラム、及び記録媒体に関し、より詳細には、アプリケーションプログラム,プリンタドライバ等のデバイスドライバ,その他画像を扱う機器に応用可能な、係数間引きによってレートコントロールをする画像符号化装置、画像符号化方法、プログラム、及び記録媒体に関する。
【0002】
【従来の技術】
一般に画像の符号化は、色変換→周波数領域の係数への変換→係数の量子化→エントロピー符号化という手順をとる。しかし、種々の画像に対して同一の量子化を実行した場合、圧縮率が画像毎によって一定でなくなるという問題が生じる。そのため、デジタルカメラのメモリに対して枚数を保証したり、DVDなどの一定の記憶容量をもつ記憶媒体にある一定の動画を記憶させたりする際に、ある一定の圧縮率を保つ必要が生じる。一定の圧縮率を保つためには、符号化後の符号量を所定のサイズに調整する、所謂レートコントロールを行う必要がある。
【0003】
従来、JPEG方式の量子化は量子化の分母を、符号量が所定のサイズになるまで何回も変化させ、レートコントロールを行う。その結果、レートコントロールを行う際、量子化と符号化を繰り返さなければならないという問題が生じる。
【0004】
そこで例えば、係数を重要度順に分類し、その分類毎に符号化し、符号化後に重要でない係数を捨てることが考えられる。このような構成にすれば、量子化と符号化を繰り返すことなく、レートコントロールを簡易に行うことができる。
【0005】
しかしながら、上述した分類は、画質への影響を考慮して行う必要がある。ウェーブレット符号化に代表されるサブバンド符号化は、画像を周波数毎のサブバンドに変換するが、周波数と画質とは密接な関係があるため、分類にあたってはサブバンドの利用等を考慮するのが1つの手法である。
【0006】
図17は、サブバンドを説明するための図で、図17(A)は3回のサブバンド分割により得られた係数を、図17(B)はそのコードストリームを、それぞれ示す図である。サブバンドとは、例えば3回のサブバンド分割を行った場合、図17に示されているような、それぞれの分割によって得られた3LL,3LH,3HL,3HH,2LH,2HL,2HH,1LH,1HL,1HHのことである。3回のサブバンド分割を行った場合、3LL,3LH,3HL,3HH,2LH,2HL,2HH,1LH,1HL,1HHを同一グループとし、図17(B)のように、重要度順(3LL,3LH,3HL,3HH,2LH,2HL,2HH,1LH,1HL,1HH)に並べ、順に符号化していく。そして、レートコントロールを行う際には、重要度の低いサブバンドの係数から(列の最後)順にまるごと捨てていくといった方法も考えられる。
【0007】
特開2000−323992号公報には、画像データをウェーブレット変換により分割し、分割されたサブバンドを水平もしくは垂直方向に間引きする画像データ処理装置および画像データ処理方法が記載されている。しかしながら、この間引きは、より圧縮率を上げる、またはより画質を向上させる等、それぞれの場合に応じて対応できないという問題がある。
【0008】
【発明が解決しようとする課題】
本発明は、上述のごとき実状に鑑みてなされたものであり、量子化と符号化を繰り返すことなく、また、画質への影響を最小限に抑えながらレートコントロールを簡易に行うことが可能な、画像符号化装置、画像符号化方法、プログラム、及び記録媒体を提供することをその目的とする。
【0009】
かかる目的を達成するために、本発明は、以下の特徴を有する。
本発明にかかる画像符号化装置は、
周波数領域に変換された画像データの係数を符号化する画像符号化装置であって、
同一種類の係数のうちの少なくとも1種類を2つ以上の係数グループに分類する係数分類手段と、
前記画像データの係数を、前記係数分類手段で分類された係数グループの種類ごとに配列する係数配列手段と、
前記係数配列手段で配列された係数を符号化する係数符号化手段と、
前記係数符号化手段により生成された符号から、該符号の量が所定以下となるように、少なくとも1つの係数グループに対応する符号を破棄する符号破棄手段と、を有し、
前記係数分類手段は、
前記変換がサブバンド分割による変換である場合に、少なくとも1つのサブバンドに対し、前記係数を他のサブバントとロケーションが異なるような係数グループに分類することを特徴とする。
【0010】
本発明にかかる画像符号化装置は、
周波数領域に変換された画像データの係数を符号化する画像符号化装置であって、
前記画像データの係数を量子化する係数量子化手段と、
前記係数量子化手段で量子化された係数である量子化係数に対し、同一種類の量子化係数のうちの少なくとも1種類を2つ以上の係数グループに分類する係数分類手段と、
前記量子化係数を、前記係数分類手段で分類された係数グループの種類ごとに配列する係数配列手段と、
前記係数配列手段で配列された量子化係数を符号化する係数符号化手段と、
前記係数符号化手段により生成された符号から、該符号の量が所定以下となるように、少なくとも1つの係数グループに対応する符号を破棄する符号破棄手段と、を有し、
前記係数分類手段は、
前記変換がサブバンド分割による変換である場合に、少なくとも1つのサブバンドに対し、前記量子化係数を他のサブバントとロケーションが異なるような係数グループに分類することを特徴とする。
【0011】
本発明にかかる画像符号化方法は、
周波数領域に変換された画像データの係数を符号化する画像符号化方法であって、
同一種類の係数のうちの少なくとも1種類を2つ以上の係数グループに分類する係数分類工程と、
前記画像データの係数を、前記係数分類工程で分類された係数グループの種類ごとに配列する係数配列工程と、
前記係数配列工程で配列された係数を符号化する係数符号化工程と、
前記係数符号化工程により生成された符号から、該符号の量が所定以下となるように、少なくとも1つの係数グループに対応する符号を破棄する符号破棄工程と、を有し、
前記係数分類工程は、
前記変換がサブバンド分割による変換である場合に、少なくとも1つのサブバンドに対し、前記係数を他のサブバントとロケーションが異なるような係数グループに分類することを特徴とする。
【0012】
本発明にかかる画像符号化方法は、
周波数領域に変換された画像データの係数を符号化する画像符号化方法であって、
前記画像データの係数を量子化する係数量子化工程と、
前記係数量子化工程で量子化された係数である量子化係数に対し、同一種類の量子化係数のうちの少なくとも1種類を2つ以上の係数グループに分類する係数分類工程と、
前記量子化係数を、前記係数分類工程で分類された係数グループの種類ごとに配列する係数配列工程と、
前記係数配列工程で配列された量子化係数を符号化する係数符号化工程と、
前記係数符号化工程により生成された符号から、該符号の量が所定以下となるように、少なくとも1つの係数グループに対応する符号を破棄する符号破棄工程と、を有し、
前記係数分類工程は、
前記変換がサブバンド分割による変換である場合に、少なくとも1つのサブバンドに対し、前記量子化係数を他のサブバントとロケーションが異なるような係数グループに分類することを特徴とする。
【0013】
本発明にかかるプログラムは、
上記記載の画像符号化方法をコンピュータに実行させるためのプログラムであることを特徴とする。
【0014】
本発明にかかる記録媒体は、
上記記載のプログラムを記録したコンピュータ読み取り可能な記録媒体であることを特徴とする。
【0039】
【発明の実施の形態】
本発明は、量子化と符号化を繰り返すことなく、レートコントロールを簡易に行うために、周波数領域に変換された画像データの係数を符号化する際、係数を重要度順に画質への影響を考慮しながら分類し、その分類毎に符号化し、符号化後に重要でない係数を捨てることが可能な構成としている。その概要としてウェーブレット符号化に代表されるサブバンド符号化を例に説明すると、重要度の低いサブバンドの係数からまるごと捨てていくのではなく、例えば、1HL,1LH,1HHをそれぞれ奇数行と偶数行に分類し、並べ方を、3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HLの奇数行,1LHの奇数行,1HHの奇数行,1HLの偶数行,1LHの偶数行,1HHの偶数行とし、レートコントロールを行うほうが、重要度の低いサブバンドから順にまるごと捨てていくよりも画質への影響が少ない。
【0040】
図1は、本発明の一実施形態に係る画像符号化装置の構成を説明するための図である。
本実施形態の画像符号化装置10は、周波数領域に変換された画像データの係数を符号化する画像符号化装置であり、係数分類手段11,係数配列手段12,係数符号化手段13を備えるものとする。
【0041】
係数分類手段11では、同一種類の係数のうちの少なくとも1種類を2つ以上の係数グループに分類する。係数グループへの分類例は後述する。係数配列手段12では、画像データの係数を、係数分類手段11で分類された係数グループの種類(分類の種類)ごとに配列する。係数符号化手段13では、係数配列手段12で配列された係数を符号化する。重要度の低い係数を多く捨てるような係数グループに分類するようにすればよい。本実施形態によれば、係数をうまく並べることによって、レートコントロールを簡易にすることが可能となる。
【0042】
本発明の他の実施形態として、上述の実施形態において係数量子化手段を備えてもよい。ただし、本実施形態における係数量子化手段は、図1の係数分類手段11の前段に設けられるべき手段であり、周波数領域に変換された画像データの係数を量子化する。そして、係数分類手段11により、係数量子化手段で量子化された係数である量子化係数に対し、同一種類の量子化係数のうちの少なくとも1種類を2つ以上の係数グループに分類する。係数配列手段12において、量子化係数を、係数分類手段11で分類された係数グループの種類ごとに配列し、係数符号化手段13において、係数配列手段12で配列された量子化係数を符号化する。本実施形態によれば、画像データを最初に一度適度に量子化しておくことで、トランケート時に大幅な画質劣化を抑えつつ、圧縮率を稼ぐことが可能となる。
【0043】
図2は、本発明の他の実施形態に係る画像符号化装置の構成を説明するための図である。
本実施形態に係る画像符号化装置は、図1で説明した画像符号化装置10において、さらに符号破棄手段14を備えたものとする。符号破棄手段14では、係数符号化手段13により生成された符号から、その符号の量が所定以下となるように、少なくとも1つの係数グループに対応する符号を破棄する。本実施形態によれば、係数をうまく並べ、分類グループ単位で破棄することによって、レートコントロールをより簡易にすることが可能となる。
【0044】
本発明の他の実施形態として、画像符号化装置における変換はサブバンド分割による変換であるものとしてもよい。さらに、係数分類手段11は、各サブバンドに対し、係数を該係数のロケーションに応じて係数グループに分類する。なお、本明細書中、ロケーションとは、実際の画像の空間位置に対応した係数の空間位置を指すものとする。本実施形態によれば、サブバンドごとに、かつロケーションごとの係数グループすることで、レートコントロールを簡易にすることが可能となる。
【0045】
図3は、本発明の他の実施形態に係る画像符号化装置における処理を説明するための図で、図3(A)はサブバンド分割後に分類した係数グループの一例を説明するための図、図3(B)はその係数グループに基づき係数を配列した様子を示す図である。図4は、図3の処理を説明するためのフロー図である。
本発明の他の実施形態として、係数分類手段11は、すべてのサブバンドに対し、係数をロケーションが同じになるような係数グループに分類してもよく、すべてのサブバンドにおいて位置を同じにすることで、レートコントロールを簡易にすることが可能となる。図3及び図4はその例を示している。
【0046】
この例では、画像データを3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL,1LH,1HHの3つのサブバンドに分割し、サブバンド分割データ30を作成する(ステップS1)。次に、最外周である1HL,1LH,1HHをそれぞれ同じロケーションをもつ奇数列と偶数列の係数グループに分類する(ステップS2)。この分類の結果、1HL係数は奇数列31及び偶数列31′に、1LH係数は奇数列32及び偶数列32′に、1HH係数は奇数列33及び偶数列33′に、それぞれ分類されたこととなる。すなわち、分割データ30が、3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL奇数列31,1LH奇数列32,1HH奇数列33からなる係数グループと、その他の係数31′,32′,33′からなる係数グループに分類されたともいえる。画像データの係数(図2の実施形態を適用する場合には量子化係数であるが、以下この説明は省略する)を、この分類された係数グループの種類ごとに配列する(ステップS3)ことにより、図3(B)の係数配列(3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL奇数列31,1LH奇数列32,1HH奇数列33,1HL偶数列31′,1LH偶数列32′,1HH偶数列33′の順)となる。これを全画像に対して行い(ステップS4)、処理を終了する。この画像データの係数を符号化して転送すればよい。重要度が最も低い最外周のサブバンド内を分類する際、それぞれのロケーションを列ごとまたは行ごとで同じに分類し、重要度順に並べることで、重要度の低いグループの係数から順に捨てることができるため、レートコントロールを簡易にすることができる。
【0047】
図5は、本発明の他の実施形態に係る画像符号化装置における処理を説明するための図で、図5(A)はサブバンド分割後に分類した係数グループの一例を説明するための図、図5(B)はその係数グループに基づき係数を配列した様子を示す図である。図6は、図5の処理を説明するためのフロー図である。
本発明の他の実施形態として、係数分類手段11は、少なくとも1つのサブバンドに対し、係数を他のサブバントとロケーションが異なるような係数グループに分類するようにしてもよい。本実施形態によれば、すべてのサブバンドにおいて同じにするよりも、画質を保ち易くすることが可能となる。
【0048】
この例では、画像データを3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL,1LH,1HHの3つのサブバンドに分割し、サブバンド分割データ40を作成する(ステップS11)。次に、最外周である1HL,1HHをそれぞれ奇数行と偶数行の係数グループに分類し、1LHをロケーションの異なる奇数列と偶数列の係数グループに分類する(ステップS12)。この分類の結果、1HL係数は奇数行41及び偶数行41′に、1LH係数は奇数列42及び偶数列42′に、1HH係数は奇数行43及び偶数行43′に、それぞれ分類されたこととなる。すなわち、分割データ40が、3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL奇数行41,1LH奇数列42,1HH奇数行43からなる係数グループと、その他の係数41′,42′,43′からなる係数グループに分類されたともいえる。画像データの係数を、この分類された係数グループの種類ごとに配列する(ステップS13)ことにより、図5(B)の係数配列(3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL奇数行41,1LH奇数列42,1HH奇数行43,1HL偶数行41′,1LH偶数列42′,1HH偶数行43′の順)となる。これを全画像に対して行い(ステップS14)、処理を終了する。この画像データの係数を符号化して転送すればよい。
【0049】
図7は、本発明の他の実施形態に係る画像符号化装置における処理を説明するための図で、図7(A)はサブバンド分割後に分類した係数グループの一例を説明するための図、図7(B)はその係数グループに基づき係数を配列した様子を示す図である。図8は、図7の処理を説明するためのフロー図である。
本発明の他の実施形態として、係数分類手段11は、水平方向ごと,垂直方向ごと,市松模様のいずれか1のロケーションに基づいて分類するようにしてもよい。図7及び図8では、水平・垂直方向ごとのロケーションは既に説明しており、市松模様のロケーションに基づいた分類を代表として説明する。本実施形態によれば、係数を簡易に並べつつ、画質を保ち易くすることが可能となる。なお、図5で説明したように全てのサブバンドで同じロケーションをとらないようにする場合には、いずれか1のサブバンドに対し、水平方向ごと,垂直方向ごと,市松模様のいずれか1のロケーションに基づいて分類するしてもよい。本実施形態によれば、すべてのサブバンドにおいて同じにするよりも、画質の良い時を多くすることが可能となる。
【0050】
この例では、画像データを3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL,1LH,1HHの3つのサブバンドに分割し、サブバンド分割データ50を作成する(ステップS21)。次に、最外周である1HL,1LH,1HHをそれぞれ同じロケーションをもつ市松模様の黒部分と白部分に対応する係数グループに分類する(ステップS22)。この分類の結果、1HL係数は白51及び黒51′に、1LH係数は白52及び黒52′に、1HH係数は白3及び黒3′に、それぞれ分類されたこととなる。すなわち、分割データ50が、3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HLの白(図では1HLaと表記)51,1LHの白(図では1LHaと表記)52,1HHの白(図では1HHaと表記)53からなる係数グループと、その他の係数1HLの黒(1HLbで表記)51′,1HLの黒(1LHbで表記)52′,1HHの黒(1HHbで表記)53′からなる係数グループに分類されたともいえる。画像データの係数(図2の実施形態を適用する場合には量子化係数であるが、以下この説明は省略する)を、この分類された係数グループの種類ごとに配列する(ステップS23)ことにより、図7(B)の係数配列(3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HLa51,1LHa52,1HHa53,1HLb51′,1HLb52′,1HHb53′の順)となる。これを全画像に対して行い(ステップS24)、処理を終了する。この画像データの係数を符号化して転送すればよい。
【0051】
図9は、本発明の他の実施形態に係る画像符号化装置における処理を説明するための図で、図9(A)はサブバンド分割後に分類した係数グループの一例を説明するための図、図9(B)はその係数グループに基づき係数を配列した様子を示す図である。図10は、図9の処理を説明するためのフロー図である。
本発明の他の実施形態として、変換がサブバンド分割による変換であり、前記係数分類手段11が、係数グループに含まれる係数の個数の比率がサブバンドごとに異なるように係数を分類するようにしてもよい。本実施形態によれば、サブバンドごとに比率を異ならせることで、レートコントロールを簡易にしつつ、画質を保つことが可能となる。比率としては、HH係数に比べ、HL係数,LH係数の方が小さいようにすることで、レートコントロールを簡易にしつつ、または圧縮率を上げつつ、画質を保つことが可能となる。
【0052】
この例では、画像データを3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL,1LH,1HHの3つのサブバンドに分割し、サブバンド分割データ60を作成する(ステップS31)。次に、最外周である1HLを奇数行と偶数行の係数グループに、同じく最外周である1LHを奇数列と偶数列の係数グループに、それぞれ分類する(ステップS32)。この分類の結果、1HL係数は奇数行61及び偶数行61′に、1LH係数は奇数列62及び偶数列62′に、それぞれ分類されたこととなる。すなわち、分割データ40が、3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL奇数行61,1LH奇数列62からなる係数グループと、その他の係数61′,62′,63′からなる係数グループに分類されたともいえる。なお、この例では比率を異ならせる係数を1HHとしており、1HH63′は結果的に破棄されるグループのみとなる。画像データの係数を、この分類された係数グループの種類ごとに配列する(ステップS33)ことにより、図9(B)の係数配列(3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL奇数行61,1LH奇数列62,1HL偶数行61′,1LH偶数列62′,1HH63′の順)となる。これを全画像に対して行い(ステップS34)、処理を終了する。この画像データの係数を符号化して転送すればよい。一般にLH,HLよりもHHは画質に影響しにくいことが知られており、係数の分類を最外周のサブバンド間で異なる量とすることによって、よりレートコントロールを簡易にしつつ、画質を保つことができる。
【0053】
図11は、本発明の他の実施形態に係る画像符号化装置における処理を説明するための図で、図11(A)はサブバンド分割後に分類した係数グループの一例を説明するための図、図11(B)はその係数グループに基づき係数を配列した様子を示す図である。図12は、図11の処理を説明するためのフロー図である。
本発明の他の実施形態として、変換がサブバンド分割による変換であり、係数分類手段11が、係数を各レゾリューションレベルに対し、異なる該係数のロケーションに応じて係数グループに分類するようにしてもよい。ここで、レゾリューションレベルとは、サブバンド分割を行った場合の解像度レベルである。例えば3回のサブバンド分割を行った場合、レゾリューションレベル0は3LL、レゾリューションレベル1は3HL,3LH,3HH,レゾリューションレベル2は2HL,2LH,2HH,レゾリューションレベル3は1HL,1LH,1HHと定義される。本実施形態によれば、レゾリューションごとに位置を異ならせることで、同じときよりも画質を良くすることが可能となる。これは、レゾリューションレベルによって解像度が変わってくるためである。
【0054】
この例では、画像データを3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL,1LH,1HHの3つのサブバンドに分割し、サブバンド分割データ70を作成する(ステップS41)。次に、最外周である1HL,1LH,1HHを奇数列と偶数列の係数グループに、最外周に続く外周である2HL,2LH,2HHを奇数行と偶数行の係数グループに、それぞれ分類する(ステップS42)。この分類の結果、2HL係数は奇数行71′及び偶数行71に、2LH係数は奇数行72′及び偶数行72に、2HH係数は奇数行73′及び偶数行73に、1HL係数は奇数列74′及び偶数列74′に、1LH係数は奇数列75′及び偶数列75に、1HH係数は奇数列76′及び偶数列76に、それぞれ分類されたこととなる。すなわち、分割データ70が、3LL,3HL,3LH,3HH,2HL偶数行71,2LH偶数行72,2HH偶数行73,1HL偶数列74,1LH偶数列75,1HH偶数列76からなる係数グループと、その他の係数71′,72′,73′,74′,75′,76′からなる係数グループに分類されたともいえる。画像データの係数を、この分類された係数グループの種類ごとに配列する(ステップS43)ことにより、図11(B)の係数配列(3LL,3HL,3LH,3HH,2HL偶数行71,2LH偶数行72,2HH偶数行73,1HL偶数列74,1LH偶数列75,1HH偶数列76,2HL奇数行71′,2LH奇数行72′,2HH奇数行73′,1HL奇数列74′,1LH奇数列75′,1HH奇数列76′の順)となる。これを全画像に対して行い(ステップS44)、処理を終了する。この画像データの係数を符号化して転送すればよい。
【0055】
本発明の他の実施形態として、変換がサブバンド分割による変換であり、係数分類手段11が、係数グループに含まれる係数の個数の比率がレゾリューションごとに異なるように係数を分類するようにしてもよい。本実施形態によれば、レゾリューションごとに量を異ならせることで、レートコントロールを簡易にしつつ、画質を保つことが可能となる。比率としては、レゾリューションレベルが高くなる程、多くなるようにすることで、すなわち重要度の低い係数を多く捨てるような係数グループに分類することで、よりレートコントロールを簡易にしつつ、圧縮率を上げつつ、画質を保つことが可能となる。
【0056】
本発明の他の実施形態として、係数分類手段11が、係数を各コンポーネントに対し、異なる該係数のロケーションに応じて係数グループに分類するようにしてもよい。すなわち、コンポーネントごとにかつロケーションごとのグループに分類し、それらロケーションを異ならせる。本実施形態によれば、コンポーネントごとに位置を異ならせることで、同じときよりも画質を良くすることが可能となる。また、色差Cb成分と色差Cr成分との間で、後に破棄する係数のロケーションを異ならせるよう係数を分類してもよい。本実施形態によれば、位置が同じときよりも画質を良くすることが可能となる。
【0057】
ここで、コンポーネントとは明度信号と色差信号のことであり、RGBデータからの変換方法には、例えば、JPEGで広く使用されている以下の色変換が知られている。
輝度Y成分 = 0.29R + 0.587G + 0.114B
色差Cr成分 = − 0.1687R − 0.3313G + 0.5B
色差Cb成分 = 0.5R − 0.4187G − 0.01813B
【0058】
さらに、JPEG2000の可逆モードで使用される以下の色変換も知られている。
輝度Y成分 = 0.25R + 0.5G + 0.25B
色差U成分 = R − G
色差V成分 = B − G
【0059】
また、他の実施形態として、係数分類手段11が、係数グループに含まれる係数の個数の比率がコンポーネントごとに異なるように係数を分類するようにしてもよい。本実施形態によれば、コンポーネントごとに量を異ならせることで、レートコントロールを簡易にしつつ、画質を保つことが可能となる。さらに、コンポーネントは、輝度Y成分,色差Cb成分,色差Cr成分、又は、輝度Y成分,色差V成分,色差U成分の組み合わせからなり、比率としては、輝度Y成分に比べ、他の2成分の方が大きいようにしてもよい。本実施形態によれば、それぞれの成分特性に合わせて、量を異ならせることで、レートコントロールを簡易にしつつ、または圧縮率を上げつつ、画質を保つことが可能となる。これは、人間の目がYCbCr成分については輝度Y成分のほうが色差Cb,Cr成分よりも敏感であり、また、YUV成分については輝度Y成分のほうが色差V成分,色差U成分より敏感である。
【0060】
以上、本発明の実施形態として、係数配列手段をもち、係数を配列後、符号化し、その後で重要度の低い係数を多く捨てるような係数グループを破棄することが可能な画像符号化装置を中心に説明してきたが、本発明は、次に説明する間引き処理にも関わる。ここでは、画像を圧縮する際、簡易な方法として、周波数領域に変換された画像データの係数を間引く。
【0061】
図13は、本発明の他の実施形態に係る画像符号化装置の構成を説明するための図である。
本実施形態の画像符号化装置80は、周波数領域に変換された画像データの係数を符号化する画像符号化装置であり、係数間引手段81,係数符号化手段82を備えるものとする。係数間引き手段81では、周波数領域に変換された画像データの係数に対し、間引き処理を施す。係数符号化手段82では、係数間引き手段81で間引き処理を施された後の画像データの係数を符号化する。なお、係数間引き手段81において、実際には上述した各実施形態における係数分類手段で係数グループに分類する処理に類似した抽出する処理が必要となる。間引きのロケーションや間引きの量(比率)をレゾリューション間やコンポーネント間で変化させることで、画質を保ちつつ、圧縮率を上げることが可能になる。
【0062】
まず、取り扱う係数が、サブバンド分割により周波数領域に変換された画像データの係数である場合に関し、説明する。
図14は、本発明の他の実施形態に係る画像符号化装置における間引き処理を説明するためのフロー図である。
係数間引き手段81において、サブバンドごとに間引く係数の個数の比率が異なるよう係数を間引くようにしてもよい。本実施形態によれば、サブバンドごとに間引く量を異ならせることで、圧縮率を上げつつ画質を保つことをが可能となる。比率としては、HH係数に比べ、HL係数,LH係数の方が小さいようにすることにより、HHを多くすることで、レートコントロールを簡易にしつつ、または圧縮率を上げつつ、画質を保つことが可能となる。
【0063】
ここでは、3回のサブバンド分割を行い、レゾリューションレベル3のみを間引くとする。図9も併せて参照して説明すると、この例では、画像データを3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL,1LH,1HHの3つのサブバンドに分割し、サブバンド分割データ60を作成する(ステップS51)。次に、最外周である1HLの偶数行の係数グループ、同じく最外周である1LHの偶数列の係数グループ、同じく最外周である1HHの係数すべての部分、のそれぞれを間引く(ステップS52)。この間引き処理の結果、分割データ60が、3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL奇数行61,1LH奇数列62のみの配列となったことになる。図示しないが、図9(B)の配列において、後ろ3つの係数グループ61′,62′,63′がない状態の配列となる。これを全画像に対して行い(ステップS53)、処理を終了する。この画像データの係数を符号化して転送すればよい。一般にLH,HLよりもHHは画質に影響しにくいことが知られており、係数の分類を最外周のサブバンド間で異なる量とすることによって、よりレートコントロールを簡易にしつつ、画質を保つことができる。
【0064】
図15は、本発明の他の実施形態に係る画像符号化装置における間引き処理を説明するためのフロー図である。
本発明の他の実施形態では、係数間引き手段81において、レゾリューションごとに間引く係数のロケーションが異なるよう係数を間引くようにしてもよい。本実施形態によれば、レゾリューションごとに間引く位置を異ならせることで、より画質を保つことが可能となる。また、係数間引き手段81において、レゾリューションごとに間引く係数の個数の比率(ここでは個数でよい)が異なるよう係数を間引くようにしてもよい。本実施形態によれば、レゾリューションごとに間引く量を異ならせることで、圧縮率をあげつつ画質を保つことが可能となる。
比率としては、レゾリューションレベルが高くなる程、多くなるようにしてもよい。
【0065】
ここでは、3回のサブバンド分割を行い、レゾリューションレベル1と2のものを間引くとする。図11も併せて参照して説明すると、この例では、画像データを3LL,3HL,3LH,3HH,2HL,2LH,2HH,1HL,1LH,1HHの3つのサブバンドに分割し、サブバンド分割データ70を作成する(ステップS61)。次に、最外周である1HL,1LH,1HHのそれぞれの奇数列と、2HL,2LH,2HHのそれぞれの奇数行とを間引く(ステップS62)。この間引き処理の結果、分割データ70が、3LL,3HL,3LH,3HH,2HL偶数行71,2LH偶数行72,2HH偶数行73,1HL偶数列74,1LH偶数列75,1HH偶数列76のみの配列となったことになる。図示しないが、図11(B)の配列において、後ろ3つの係数グループ71′,72′,73′,74′,75′,76′がない状態の配列となる。これを全画像に対して行い(ステップS63)、処理を終了する。この画像データの係数を符号化して転送すればよい。
【0066】
なお、図13の画像符号化装置80における間引き処理の例として図9,図11を再度参照して説明したように、図3,図5,図7を再度参照することで同様の説明が可能となる。
【0067】
本発明の他の実施形態として、係数間引手段81において、コンポーネントごとに間引く係数のロケーションが異なるよう係数を間引くようにしてもよい。本実施形態によれば、コンポーネントごとに間引く位置を異ならせることで、同じときよりも画質を保つことが可能となる。また、係数間引手段81において、コンポーネントごとに間引く係数の個数の比率が異なるよう係数を間引くようにしてもよく、圧縮率をあげつつ画質を保つことが可能となる。さらに、係数間引き手段81において、色差Cb成分と色差Cr成分との間で、間引く係数のロケーションを異ならせるよう係数を間引くようにすることにより、位置が同じときよりも画質を良くすることが可能となる。
【0068】
他の実施形態として、コンポーネントは、輝度Y成分,色差Cb成分,色差Cr成分、又は、輝度Y成分,色差V成分,色差U成分の組み合わせからなるものとし、比率としては、輝度Y成分に比べ、他の2成分の方が大きいようにしてもよい。本実施形態によれば、それぞれの成分特性に合わせて、量を異ならせることで、レートコントロールを簡易にしつつ、または圧縮率を上げつつ、画質を保つことが可能となる。上述したように、人間の目がYCbCr成分,YUV成分について輝度Y成分の方が他の成分より敏感である。
【0069】
以上、本発明に係る画像符号化装置に関し、説明してきたが、本発明は、上述した各実施形態に係る画像符号化装置によって符号化された符号を、復号化する手段を有する画像復号化装置としても形態も挙げられる。伸長する際に、例えば破棄或いは間引きされた部分に0を埋めて行えばよい。特に、図1で説明したような係数破棄手段がない画像符号化装置10に対し、その画像符号化装置10で符号化された符号から、その符号の量が所定以下となるように、少なくとも1つの係数グループに対応する符号を破棄する符号破棄手段21を設け、破棄後の符号を符号復号化手段22で復号するような画像復号化装置20とすればよい。
【0070】
ここで上述した各実施形態に適用可能な装置の構成を説明する。
図16は、本発明に係る画像符号化・復号化装置の構成例を示す図である。
ここで説明する画像符号化・復号化装置は、データバス93を介して、PC内のRAM91,PC内のCPU92,HDD94,プリンタ95が接続された構成となっている。オリジナル画像のプリントアウトに際し、画像の圧縮がなされ、圧縮後のデータがプリンタ95に送信される。プリンタ95への送信データ量が低減されるため、送信時間が短縮され、圧縮・伸張に要する時間を加味しても、高速なプリントが可能になる。
【0071】
HDD94上に記録されたオリジナル画像は、CPU92からの命令によってRAM91上に読み込まれる(i)。次に、圧縮ステップとして、CPU92は、RAM91上の画像を読み込み圧縮を行う(ii)。CPU92は、圧縮後のデータをRAM91上の別の領域に書き込む(iii)。CPU92からの命令によって、圧縮後のデータがプリンタ95内のRAM97上に記録される(iv)。伸張ステップとして、プリンタ95内のCPU96は、圧縮後のデータを読み込み、復号値を得て、画像の伸張を行う(v)。CPU96は、伸張後のデータをRAM97上に書き込む(vi)。その後プリンタ95は、伸張されたデータを所定の手順[変倍がかかる]でプリントアウトする。
【0072】
以上、本発明の画像符号化装置及び画像復号化装置を中心に各実施形態を説明してきたが、本発明は、それら装置における処理の手順を実行する画像符号化方法や画像復号化方法としての形態も採りうる。その一例のみを説明するが上述した各実施形態の画像符号化(復号化)装置における処理を実行する方法のすべてが形態として採りうる。
【0073】
ここで説明する画像符号化方法は、周波数領域に変換された画像データの係数を符号化する方法であって、同一種類の係数又は同一種類の量子化された係数のうちの少なくとも1種類を2つ以上の係数グループに分類し、画像データの係数を、分類された係数グループの種類ごとに配列し、配列された係数を符号化し、生成された符号から、その符号の量が所定以下となるように、少なくとも1つの係数グループに対応する符号を破棄する。係数をうまく並べ、分類単位で破棄することによって、レートコントロールをより簡易にできる。
【0074】
また、他の画像符号化方法として、サブバンド分割により周波数領域に変換された画像データの係数に対し、レゾリューションごとに間引く係数の個数の比率が異なるよう間引き処理を施し、間引き処理を施された後の画像データの係数を符号化するようにしてもよい。レゾリューションごとに間引く量を異ならせることで、圧縮率をあげつつ画質を保つことが可能となる。
【0075】
さらに、他の画像符号化方法としては、周波数領域に変換された画像データの係数に対し、コンポーネントごとに間引く係数の個数の比率が異なるよう間引き処理を施し、間引き処理を施された後の画像データの係数を符号化するようにしてもよい。コンポーネントごとに間引く量を異ならせることで、圧縮率をあげつつ画質を保つことが可能となる。
また、これらの画像符号化方法で符号化され、生成された符号を復号化する画像復号化方法としての形態も採りうる。
【0076】
以上、本発明の画像符号化装置及び画像復号化装置及びそれら方法を中心に各実施形態を説明してきたが、コンピュータをそれら装置として又はそれらの装置の各手段として機能させるための、或いはコンピュータにそれら方法を実行させるためのプログラム(それらの処理内容が実装されているコンピュータプログラム)としても、或いは、そのプログラムを記録したコンピュータ読み取り可能な記録媒体(それらの処理内容が記録されているコンピュータ読み取り可能な情報記録媒体)としての形態も可能である。このプログラムにより、上述の各実施形態に対応した処理によって、レートコントロールを簡易にする、または圧縮率を上げることが可能なシステムを提供することが可能となる。また、この記録媒体により、上述の各実施形態に対応した構成で、レートコントロールを簡易にする、または圧縮率を上げることが可能なシステムを提供することが可能となる。
【0077】
本発明による画像符号化・復号化の機能を実現するためのプログラムやデータを記憶した記録媒体の実施形態を説明する。記録媒体としては、具体的には、CD−ROM、光磁気ディスク、DVD−ROM、FD、フラッシュメモリ、及びその他各種ROMやRAM等が想定でき、これら記録媒体に上述した本発明の各実施形態に係る機能をコンピュータに実行させ、画像符号化・復号化の機能を実現するためのプログラムを記録して流通させることにより、当該機能の実現を容易にする。そしてコンピュータ等の情報処理装置に上記のごとくの記録媒体を装着して情報処理装置によりプログラムを読み出すか、若しくは情報処理装置が備えている記憶媒体に当該プログラムを記憶させておき、必要に応じて読み出すことにより、本発明に関わる画像符号化・復号化の機能を実行することができる。
【0078】
【発明の効果】
本発明によれば、量子化と符号化を繰り返すことなく、また、画質への影響を最小限に抑えながらレートコントロールを簡易に行うことが可能となる。
【図面の簡単な説明】
【図1】 本発明の一実施形態に係る画像符号化装置の構成を説明するための図である。
【図2】 本発明の他の実施形態に係る画像符号化装置の構成を説明するための図である。
【図3】 本発明の他の実施形態に係る画像符号化装置における処理を説明するための図である。
【図4】 図3の処理を説明するためのフロー図である。
【図5】 本発明の他の実施形態に係る画像符号化装置における処理を説明するための図である。
【図6】 図5の処理を説明するためのフロー図である。
【図7】 本発明の他の実施形態に係る画像符号化装置における処理を説明するための図である。
【図8】 図7の処理を説明するためのフロー図である。
【図9】 本発明の他の実施形態に係る画像符号化装置における処理を説明するための図である。
【図10】 図9の処理を説明するためのフロー図である。
【図11】 本発明の他の実施形態に係る画像符号化装置における処理を説明するための図である。
【図12】 図11の処理を説明するためのフロー図である。
【図13】 本発明の他の実施形態に係る画像符号化装置の構成を説明するための図である。
【図14】 本発明の他の実施形態に係る画像符号化装置における間引き処理を説明するためのフロー図である。
【図15】 本発明の他の実施形態に係る画像符号化装置における間引き処理を説明するためのフロー図である。
【図16】 本発明に係る画像符号化・復号化装置の構成例を示す図である。
【図17】 サブバンドを説明するための図である。
【符号の説明】
10,10′,80…画像符号化装置、11…係数分類手段、12…係数配列手段、13,82…係数符号化手段、14,21…符号破棄手段、20…画像復号化装置、22…符号復号化手段。[0001]
BACKGROUND OF THE INVENTION
The present inventionImage encoding apparatus, image encoding method, program, and recording mediumMore specifically, rate control is performed by coefficient thinning, which can be applied to application programs, device drivers such as printer drivers, and other devices that handle images.Image encoding apparatus, image encoding method, program, and recording mediumAbout.
[0002]
[Prior art]
In general, an image is encoded by a procedure of color conversion → conversion to a frequency domain coefficient → coefficient quantization → entropy encoding. However, when the same quantization is performed on various images, there arises a problem that the compression rate is not constant for each image. For this reason, it is necessary to maintain a certain compression rate when guaranteeing the number of sheets for the memory of the digital camera or storing a certain moving image in a storage medium having a certain storage capacity such as a DVD. In order to maintain a constant compression rate, it is necessary to perform so-called rate control in which the encoded code amount is adjusted to a predetermined size.
[0003]
Conventionally, in JPEG quantization, rate control is performed by changing the denominator of the quantization many times until the code amount reaches a predetermined size. As a result, there is a problem that quantization and encoding must be repeated when performing rate control.
[0004]
Therefore, for example, it is conceivable to classify the coefficients in order of importance, encode each class, and discard the unimportant coefficients after encoding. With such a configuration, rate control can be easily performed without repeating quantization and encoding.
[0005]
However, the above classification needs to be performed in consideration of the influence on the image quality. Subband coding typified by wavelet coding transforms an image into subbands for each frequency. However, since the frequency and image quality are closely related, the use of subbands and other factors should be considered in classification. This is one method.
[0006]
FIG. 17 is a diagram for explaining subbands. FIG. 17A shows coefficients obtained by three subband divisions, and FIG. 17B shows a code stream thereof. For example, when the sub-band division is performed three times, the sub-bands are 3LL, 3LH, 3HL, 3HH, 2LH, 2HL, 2HH, 1LH obtained by the respective divisions as shown in FIG. 1HL, 1HH. When subband division is performed three times, 3LL, 3LH, 3HL, 3HH, 2LH, 2HL, 2HH, 1LH, 1HL, and 1HH are grouped in the same group, and in order of importance (3LL, 3LH, 3HL, 3HH, 2LH, 2HL, 2HH, 1LH, 1HL, 1HH) and sequentially encoding. When rate control is performed, there may be a method of discarding the entire subband coefficients from the least important (in the last column) in order.
[0007]
Japanese Patent Application Laid-Open No. 2000-323992 describes an image data processing apparatus and an image data processing method that divide image data by wavelet transform and thin out the divided subbands in the horizontal or vertical direction. However, there is a problem that this thinning cannot be dealt with depending on each case, such as increasing the compression rate or improving the image quality.
[0008]
[Problems to be solved by the invention]
The present invention has been made in view of the actual situation as described above, and it is possible to easily perform rate control without repeating the quantization and encoding and minimizing the influence on the image quality.Image encoding apparatus, image encoding method, program, and recording mediumThe purpose is to provide.
[0009]
In order to achieve this object, the present invention has the following features.
An image encoding apparatus according to the present invention includes:
An image encoding device that encodes coefficients of image data converted into a frequency domain,
Coefficient classifying means for classifying at least one of the same type of coefficients into two or more coefficient groups;
Coefficient arrangement means for arranging the coefficients of the image data for each type of coefficient group classified by the coefficient classification means;
Coefficient encoding means for encoding the coefficients arranged by the coefficient arrangement means;
Code discarding means for discarding a code corresponding to at least one coefficient group from the code generated by the coefficient encoding means so that the amount of the code is equal to or less than a predetermined value;
The coefficient classification means includes
When the transform is a transform by subband division, the coefficients are classified into coefficient groups having different locations from other subbands for at least one subband.
[0010]
An image encoding apparatus according to the present invention includes:
An image encoding device that encodes coefficients of image data converted into a frequency domain,
Coefficient quantization means for quantizing the coefficient of the image data;
Coefficient classifying means for classifying at least one of the same type of quantized coefficients into two or more coefficient groups for the quantized coefficient that is quantized by the coefficient quantizing means;
Coefficient arrangement means for arranging the quantized coefficients for each type of coefficient group classified by the coefficient classification means;
Coefficient encoding means for encoding the quantized coefficients arranged by the coefficient arrangement means;
Code discarding means for discarding a code corresponding to at least one coefficient group from the code generated by the coefficient encoding means so that the amount of the code is equal to or less than a predetermined value;
The coefficient classification means includes
When the transform is a transform by subband division, the quantized coefficients are classified into coefficient groups having different locations from other subbands for at least one subband.
[0011]
An image encoding method according to the present invention includes:
An image encoding method for encoding a coefficient of image data converted into a frequency domain,
A coefficient classification step of classifying at least one of the same type of coefficients into two or more coefficient groups;
A coefficient arrangement step of arranging the coefficients of the image data for each type of coefficient group classified in the coefficient classification step;
A coefficient encoding step for encoding the coefficients arranged in the coefficient arrangement step;
A code discarding step of discarding a code corresponding to at least one coefficient group from the code generated by the coefficient encoding step so that the amount of the code is equal to or less than a predetermined amount,
The coefficient classification step includes
When the transform is a transform by subband division, the coefficients are classified into coefficient groups having different locations from other subbands for at least one subband.
[0012]
An image encoding method according to the present invention includes:
An image encoding method for encoding a coefficient of image data converted into a frequency domain,
A coefficient quantization step for quantizing the coefficients of the image data;
A coefficient classification step of classifying at least one of the same types of quantized coefficients into two or more coefficient groups for the quantized coefficients that are quantized in the coefficient quantization step;
A coefficient arrangement step of arranging the quantized coefficients for each type of coefficient group classified in the coefficient classification step;
A coefficient encoding step for encoding the quantized coefficients arranged in the coefficient arrangement step;
A code discarding step of discarding a code corresponding to at least one coefficient group from the code generated by the coefficient encoding step so that the amount of the code is equal to or less than a predetermined amount,
The coefficient classification step includes
When the transform is a transform by subband division, the quantized coefficients are classified into coefficient groups having different locations from other subbands for at least one subband.
[0013]
The program according to the present invention is:
It is a program for causing a computer to execute the image coding method described above.
[0014]
The recording medium according to the present invention is
It is a computer-readable recording medium on which the program described above is recorded.
[0039]
DETAILED DESCRIPTION OF THE INVENTION
The present invention considers the influence of the coefficients on the image quality in order of importance when encoding the coefficients of the image data converted to the frequency domain in order to easily perform rate control without repeating quantization and encoding. Classification, encoding for each classification, and discarding unimportant coefficients after encoding. As an outline, subband coding typified by wavelet coding will be described as an example. Rather than discarding all the subband coefficients of low importance, for example, 1HL, 1LH, and 1HH are odd rows and even numbers, respectively. It is classified into rows and arranged in 3LL, 3HL, 3LH, 3HH, 2HL, 2LH, 2HH, and 1HL odd rows, 1LH odd rows, 1HH odd rows, 1HL even rows, 1LH even rows, and 1HH even rows. When the rate control is performed in a row, the influence on the image quality is less than when the entire subbands with lower importance are discarded in sequence.
[0040]
FIG. 1 is a diagram for explaining the configuration of an image encoding device according to an embodiment of the present invention.
An image encoding device 10 according to the present embodiment is an image encoding device that encodes coefficients of image data converted into a frequency domain, and includes a
[0041]
The coefficient classification means 11 classifies at least one of the same types of coefficients into two or more coefficient groups. An example of classification into coefficient groups will be described later. The
[0042]
As another embodiment of the present invention, coefficient quantization means may be provided in the above-described embodiment. However, the coefficient quantization means in this embodiment is a means that should be provided before the coefficient classification means 11 in FIG. 1, and quantizes the coefficients of the image data converted to the frequency domain. Then, the
[0043]
FIG. 2 is a diagram for explaining the configuration of an image encoding device according to another embodiment of the present invention.
The image encoding apparatus according to the present embodiment is assumed to further include
[0044]
As another embodiment of the present invention, the conversion in the image encoding device may be conversion by subband division. Further, the
[0045]
FIG. 3 is a diagram for explaining processing in an image encoding device according to another embodiment of the present invention, and FIG. 3A is a diagram for explaining an example of coefficient groups classified after subband division. FIG. 3B is a diagram showing a state in which the coefficients are arranged based on the coefficient group. FIG. 4 is a flowchart for explaining the processing of FIG.
As another embodiment of the present invention, the
[0046]
In this example, the image data is divided into three subbands 3LL, 3HL, 3LH, 3HH, 2HL, 2LH, 2HH, 1HL, 1LH, and 1HH to create subband division data 30 (step S1). Next, 1HL, 1LH, and 1HH which are the outermost circumferences are classified into coefficient groups of odd columns and even columns each having the same location (step S2). As a result of this classification, the 1HL coefficient is classified into the
[0047]
FIG. 5 is a diagram for explaining processing in an image encoding device according to another embodiment of the present invention, and FIG. 5A is a diagram for explaining an example of coefficient groups classified after subband division. FIG. 5B is a diagram illustrating a state in which the coefficients are arranged based on the coefficient group. FIG. 6 is a flowchart for explaining the processing of FIG.
As another embodiment of the present invention, the
[0048]
In this example, the image data is divided into three subbands 3LL, 3HL, 3LH, 3HH, 2HL, 2LH, 2HH, 1HL, 1LH, and 1HH to create subband division data 40 (step S11). Next, the outermost 1HL and 1HH are classified into odd-numbered and even-numbered coefficient groups, respectively, and 1LH is classified into odd-numbered and even-numbered coefficient groups having different locations (step S12). As a result of this classification, 1HL coefficients are classified into odd-numbered
[0049]
FIG. 7 is a diagram for explaining processing in an image encoding device according to another embodiment of the present invention, and FIG. 7A is a diagram for explaining an example of coefficient groups classified after subband division. FIG. 7B is a diagram showing a state in which the coefficients are arranged based on the coefficient group. FIG. 8 is a flowchart for explaining the processing of FIG.
As another embodiment of the present invention, the
[0050]
In this example, the image data is divided into three subbands 3LL, 3HL, 3LH, 3HH, 2HL, 2LH, 2HH, 1HL, 1LH, and 1HH, and
[0051]
FIG. 9 is a diagram for explaining processing in an image encoding device according to another embodiment of the present invention, and FIG. 9A is a diagram for explaining an example of coefficient groups classified after subband division; FIG. 9B shows a state in which the coefficients are arranged based on the coefficient group. FIG. 10 is a flowchart for explaining the processing of FIG.
As another embodiment of the present invention, the transform is a transform by subband division, and the coefficient classification means 11 classifies the coefficients so that the ratio of the number of coefficients included in the coefficient group is different for each subband. May be. According to the present embodiment, it is possible to maintain the image quality while simplifying the rate control by changing the ratio for each subband. As the ratio, by making the HL coefficient and the LH coefficient smaller than the HH coefficient, it is possible to maintain the image quality while simplifying the rate control or increasing the compression rate.
[0052]
In this example, the image data is divided into three subbands 3LL, 3HL, 3LH, 3HH, 2HL, 2LH, 2HH, 1HL, 1LH, and 1HH to create subband division data 60 (step S31). Next, the outermost 1HL is classified into odd-numbered and even-numbered coefficient groups, and the outermost 1LH is classified into odd-numbered and even-numbered coefficient groups, respectively (step S32). As a result of this classification, the 1HL coefficients are classified into odd-numbered
[0053]
FIG. 11 is a diagram for explaining processing in an image encoding device according to another embodiment of the present invention, and FIG. 11 (A) is a diagram for explaining an example of coefficient groups classified after subband division; FIG. 11B is a diagram illustrating a state in which the coefficients are arranged based on the coefficient group. FIG. 12 is a flowchart for explaining the processing of FIG.
As another embodiment of the present invention, the transform is a transform by subband division, and the coefficient classification means 11 classifies the coefficients into coefficient groups according to the locations of the coefficients different for each resolution level. May be. Here, the resolution level is a resolution level when subband division is performed. For example, when subband division is performed three times, resolution level 0 is 3LL,
[0054]
In this example, the image data is divided into three subbands 3LL, 3HL, 3LH, 3HH, 2HL, 2LH, 2HH, 1HL, 1LH, and 1HH, and
[0055]
In another embodiment of the present invention, the transform is a transform by subband division, and the
[0056]
As another embodiment of the present invention, the
[0057]
Here, the components are a lightness signal and a color difference signal, and the following color conversion widely used in JPEG is known as a conversion method from RGB data, for example.
Luminance Y component = 0.29R + 0.587G + 0.114B
Color difference Cr component = −0.1687R−0.3313G + 0.5B
Color difference Cb component = 0.5R-0.4187G-0.01813B
[0058]
Further, the following color conversion used in the reversible mode of JPEG2000 is also known.
Luminance Y component = 0.25R + 0.5G + 0.25B
Color difference U component = R-G
Color difference V component = B-G
[0059]
As another embodiment, the
[0060]
As described above, an embodiment of the present invention is centered on an image encoding apparatus that has coefficient arraying means, can encode coefficients after arranging the coefficients, and then discard coefficient groups that discard a large number of less important coefficients. As described above, the present invention also relates to the thinning process described below. Here, when compressing the image, as a simple method, the coefficient of the image data converted into the frequency domain is thinned out.
[0061]
FIG. 13 is a diagram for explaining a configuration of an image encoding device according to another embodiment of the present invention.
The
[0062]
First, the case where the coefficient to be handled is the coefficient of the image data converted into the frequency domain by subband division will be described.
FIG. 14 is a flowchart for explaining thinning-out processing in an image encoding device according to another embodiment of the present invention.
The coefficient thinning means 81 may thin the coefficients so that the ratio of the number of coefficients to be thinned is different for each subband. According to the present embodiment, it is possible to maintain the image quality while increasing the compression rate by varying the thinning amount for each subband. As the ratio, by making the HL coefficient and the LH coefficient smaller than the HH coefficient, by increasing the HH, it is possible to maintain the image quality while simplifying the rate control or increasing the compression ratio. It becomes possible.
[0063]
Here, it is assumed that subband division is performed three times and
[0064]
FIG. 15 is a flowchart for explaining the thinning-out process in the image encoding device according to another embodiment of the present invention.
In another embodiment of the present invention, the coefficient thinning unit 81 may thin the coefficients so that the locations of the thinned coefficients differ for each resolution. According to the present embodiment, it is possible to maintain higher image quality by changing the thinning position for each resolution. Further, the coefficient thinning unit 81 may thin out the coefficients so that the ratio of the number of coefficients to be thinned out for each resolution (here, the number may be sufficient) is different. According to the present embodiment, it is possible to maintain the image quality while increasing the compression rate by changing the amount to be thinned out for each resolution.
The ratio may be increased as the resolution level increases.
[0065]
Here, it is assumed that the subband division is performed three times, and the
[0066]
In addition, as described with reference to FIGS. 9 and 11 again as an example of the thinning process in the
[0067]
As another embodiment of the present invention, the coefficient thinning unit 81 may thin the coefficient so that the location of the coefficient to be thinned is different for each component. According to the present embodiment, it is possible to maintain higher image quality than the same time by changing the thinning position for each component. Further, the coefficient thinning unit 81 may thin the coefficients so that the ratio of the number of coefficients to be thinned is different for each component, and the image quality can be maintained while increasing the compression rate. Further, in the coefficient thinning means 81, it is possible to improve the image quality than when the positions are the same by thinning the coefficients so that the locations of the thinned coefficients are different between the color difference Cb component and the color difference Cr component. It becomes.
[0068]
As another embodiment, the component is composed of a luminance Y component, a color difference Cb component, a color difference Cr component, or a combination of a luminance Y component, a color difference V component, and a color difference U component. The other two components may be larger. According to the present embodiment, it is possible to maintain the image quality while simplifying the rate control or increasing the compression rate by varying the amounts according to the component characteristics. As described above, the human eye is more sensitive to the YCbCr component and the YUV component in the luminance Y component than in the other components.
[0069]
The image encoding apparatus according to the present invention has been described above, but the present invention is an image decoding apparatus having means for decoding the code encoded by the image encoding apparatus according to each embodiment described above. As well as the form. When decompressing, for example, the discarded or thinned portion may be filled with 0. In particular, with respect to the image coding apparatus 10 without the coefficient discarding unit as described with reference to FIG. 1, at least 1 so that the amount of the code is less than or equal to a predetermined value from the codes encoded by the image coding apparatus 10. A code discard
[0070]
Here, a configuration of an apparatus applicable to each of the above-described embodiments will be described.
FIG. 16 is a diagram illustrating a configuration example of an image encoding / decoding device according to the present invention.
The image encoding / decoding apparatus described here has a configuration in which a
[0071]
The original image recorded on the
[0072]
As mentioned above, although each embodiment was described centering on the image coding apparatus and image decoding apparatus of this invention, this invention is as an image coding method and an image decoding method which perform the procedure of the process in those apparatuses. Forms can also be taken. Although only an example will be described, all the methods for executing the processing in the image encoding (decoding) apparatus of each embodiment described above can be adopted as forms.
[0073]
The image encoding method described here is a method of encoding coefficients of image data converted into a frequency domain, and at least one of the same type of coefficients or the same type of quantized coefficients is 2. It classifies into one or more coefficient groups, arranges the coefficients of the image data for each type of the classified coefficient group, encodes the arranged coefficients, and the amount of the code is less than a predetermined value from the generated code Thus, the code corresponding to at least one coefficient group is discarded. By arranging the coefficients well and discarding them by classification unit, rate control can be made easier.
[0074]
As another image encoding method, a thinning process is performed on the coefficients of the image data converted into the frequency domain by subband division so that the ratio of the number of coefficients to be thinned is different for each resolution. The coefficients of the image data after being processed may be encoded. By varying the thinning amount for each resolution, it is possible to maintain the image quality while increasing the compression rate.
[0075]
Further, as another image encoding method, the image data after the thinning process is performed by performing the thinning process on the coefficient of the image data converted into the frequency domain so that the ratio of the number of coefficients to be thinned is different for each component. Data coefficients may be encoded. By varying the thinning amount for each component, it is possible to maintain the image quality while increasing the compression rate.
Further, it is possible to adopt a form as an image decoding method for decoding a generated code encoded by these image encoding methods.
[0076]
As described above, the embodiments have been described focusing on the image encoding device, the image decoding device, and the method thereof according to the present invention. However, the computer is caused to function as the device or each unit of the device, or to the computer. Either as a program for executing these methods (computer program in which the processing content is implemented) or a computer-readable recording medium in which the program is recorded (computer-readable in which the processing content is recorded) (Information recording medium) is also possible. With this program, it is possible to provide a system that can simplify rate control or increase the compression rate by processing corresponding to each of the above-described embodiments. Also, with this recording medium, it is possible to provide a system that can simplify rate control or increase the compression rate with a configuration corresponding to each of the above-described embodiments.
[0077]
An embodiment of a recording medium storing a program and data for realizing an image encoding / decoding function according to the present invention will be described. As the recording medium, specifically, a CD-ROM, a magneto-optical disk, a DVD-ROM, an FD, a flash memory, and various other ROMs and RAMs can be assumed. By causing a computer to execute the function according to the above and recording and distributing a program for realizing the image encoding / decoding function, the function can be easily realized. Then, the recording medium as described above is mounted on an information processing apparatus such as a computer and the program is read by the information processing apparatus, or the program is stored in a storage medium provided in the information processing apparatus. By reading out, the image encoding / decoding functions according to the present invention can be executed.
[0078]
【The invention's effect】
According to the present invention, it is possible to easily perform rate control without repeating quantization and encoding and minimizing the influence on image quality.
[Brief description of the drawings]
FIG. 1 is a diagram for explaining a configuration of an image encoding device according to an embodiment of the present invention.
FIG. 2 is a diagram for explaining a configuration of an image encoding device according to another embodiment of the present invention.
FIG. 3 is a diagram for explaining processing in an image encoding device according to another embodiment of the present invention.
4 is a flowchart for explaining the processing of FIG. 3; FIG.
FIG. 5 is a diagram for explaining processing in an image encoding device according to another embodiment of the present invention.
FIG. 6 is a flowchart for explaining the processing of FIG. 5;
FIG. 7 is a diagram for explaining processing in an image encoding device according to another embodiment of the present invention.
FIG. 8 is a flowchart for explaining the processing of FIG. 7;
FIG. 9 is a diagram for explaining processing in an image encoding device according to another embodiment of the present invention.
FIG. 10 is a flowchart for explaining the process of FIG. 9;
FIG. 11 is a diagram for explaining processing in an image encoding device according to another embodiment of the present invention.
FIG. 12 is a flowchart for explaining the processing of FIG. 11;
FIG. 13 is a diagram for explaining a configuration of an image encoding device according to another embodiment of the present invention.
FIG. 14 is a flowchart for explaining thinning-out processing in an image encoding device according to another embodiment of the present invention.
FIG. 15 is a flowchart for explaining thinning-out processing in an image encoding device according to another embodiment of the present invention.
FIG. 16 is a diagram illustrating a configuration example of an image encoding / decoding device according to the present invention.
FIG. 17 is a diagram for explaining subbands;
[Explanation of symbols]
DESCRIPTION OF
Claims (8)
同一種類の係数のうちの少なくとも1種類を2つ以上の係数グループに分類する係数分類手段と、
前記画像データの係数を、前記係数分類手段で分類された係数グループの種類ごとに配列する係数配列手段と、
前記係数配列手段で配列された係数を符号化する係数符号化手段と、
前記係数符号化手段により生成された符号から、該符号の量が所定以下となるように、少なくとも1つの係数グループに対応する符号を破棄する符号破棄手段と、を有し、
前記係数分類手段は、
前記変換がサブバンド分割による変換である場合に、少なくとも1つのサブバンドに対し、前記係数を他のサブバントとロケーションが異なるような係数グループに分類することを特徴とする画像符号化装置。 An image encoding device that encodes coefficients of image data converted into a frequency domain ,
Coefficient classifying means for classifying at least one of the same type of coefficients into two or more coefficient groups ;
A coefficient array means to arrange the coefficients of the image data, for each type of classified coefficient group by the coefficient classifying means,
A coefficient encoding means for encoding the coefficients which are arranged in the coefficient array means,
Code discarding means for discarding a code corresponding to at least one coefficient group from the code generated by the coefficient encoding means so that the amount of the code is equal to or less than a predetermined value;
The coefficient classification means includes
When the transform is a transform by subband division, the coefficient is classified into a coefficient group having a location different from other subbands for at least one subband.
前記画像データの係数を量子化する係数量子化手段と、
前記係数量子化手段で量子化された係数である量子化係数に対し、同一種類の量子化係数のうちの少なくとも1種類を2つ以上の係数グループに分類する係数分類手段と、
前記量子化係数を、前記係数分類手段で分類された係数グループの種類ごとに配列する係数配列手段と、
前記係数配列手段で配列された量子化係数を符号化する係数符号化手段と、
前記係数符号化手段により生成された符号から、該符号の量が所定以下となるように、少なくとも1つの係数グループに対応する符号を破棄する符号破棄手段と、を有し、
前記係数分類手段は、
前記変換がサブバンド分割による変換である場合に、少なくとも1つのサブバンドに対し、前記量子化係数を他のサブバントとロケーションが異なるような係数グループに分類することを特徴とする画像符号化装置。 An image encoding device that encodes coefficients of image data converted into a frequency domain ,
Coefficient quantization means for quantizing the coefficient of the image data ;
Relative to the coefficient by the quantization means is quantized coefficients quantized coefficients, a coefficient classifying means for classifying into two or more coefficient group at least one of the same type of quantized coefficient,
A coefficient array means to arrange the quantized coefficients for each type of classified coefficient group by the coefficient classifying means,
A coefficient encoding means for encoding the quantized coefficients arranged in the coefficient array means,
Code discarding means for discarding a code corresponding to at least one coefficient group from the code generated by the coefficient encoding means so that the amount of the code is equal to or less than a predetermined value;
The coefficient classification means includes
When the transform is a transform by subband division, the quantized coefficients are classified into coefficient groups having different locations from other subbands for at least one subband.
同一種類の係数のうちの少なくとも1種類を2つ以上の係数グループに分類する係数分類工程と、
前記画像データの係数を、前記係数分類工程で分類された係数グループの種類ごとに配列する係数配列工程と、
前記係数配列工程で配列された係数を符号化する係数符号化工程と、
前記係数符号化工程により生成された符号から、該符号の量が所定以下となるように、少なくとも1つの係数グループに対応する符号を破棄する符号破棄工程と、を有し、
前記係数分類工程は、
前記変換がサブバンド分割による変換である場合に、少なくとも1つのサブバンドに対し、前記係数を他のサブバントとロケーションが異なるような係数グループに分類することを特徴とする画像符号化方法。 An image encoding method for encoding a coefficient of image data converted into a frequency domain ,
A coefficient classification step of classifying at least one of the same type of coefficients into two or more coefficient groups ;
A coefficient sequence step for arranging the coefficients of the image data, for each type of classified coefficient group by the coefficient classification step,
A coefficient encoding step for encoding the coefficients arranged in the coefficient arrangement step ;
A code discarding step of discarding a code corresponding to at least one coefficient group from the code generated by the coefficient encoding step so that the amount of the code is equal to or less than a predetermined amount ,
The coefficient classification step includes
When the transform is a transform by subband division, the coefficient is classified into a coefficient group having a location different from that of other subbands for at least one subband.
前記画像データの係数を量子化する係数量子化工程と、 A coefficient quantization step for quantizing the coefficients of the image data;
前記係数量子化工程で量子化された係数である量子化係数に対し、同一種類の量子化係数のうちの少なくとも1種類を2つ以上の係数グループに分類する係数分類工程と、 A coefficient classification step of classifying at least one of the same type of quantized coefficients into two or more coefficient groups with respect to the quantized coefficient that is quantized in the coefficient quantization step;
前記量子化係数を、前記係数分類工程で分類された係数グループの種類ごとに配列する係数配列工程と、 A coefficient arrangement step of arranging the quantized coefficients for each type of coefficient group classified in the coefficient classification step;
前記係数配列工程で配列された量子化係数を符号化する係数符号化工程と、 A coefficient encoding step for encoding the quantized coefficients arranged in the coefficient arrangement step;
前記係数符号化工程により生成された符号から、該符号の量が所定以下となるように、少なくとも1つの係数グループに対応する符号を破棄する符号破棄工程と、を有し、 A code discarding step of discarding a code corresponding to at least one coefficient group from the code generated by the coefficient encoding step so that the amount of the code is equal to or less than a predetermined amount,
前記係数分類工程は、 The coefficient classification step includes
前記変換がサブバンド分割による変換である場合に、少なくとも1つのサブバンドに対し、前記量子化係数を他のサブバントとロケーションが異なるような係数グループに分類することを特徴とする画像符号化方法。 An image coding method, wherein, when the transform is a transform by subband division, the quantized coefficients are classified into coefficient groups having different locations from other subbands for at least one subband.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001289626A JP4669645B2 (en) | 2001-09-21 | 2001-09-21 | Image encoding apparatus, image encoding method, program, and recording medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001289626A JP4669645B2 (en) | 2001-09-21 | 2001-09-21 | Image encoding apparatus, image encoding method, program, and recording medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2003102011A JP2003102011A (en) | 2003-04-04 |
| JP4669645B2 true JP4669645B2 (en) | 2011-04-13 |
Family
ID=19112089
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001289626A Expired - Fee Related JP4669645B2 (en) | 2001-09-21 | 2001-09-21 | Image encoding apparatus, image encoding method, program, and recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4669645B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4425221B2 (en) * | 2004-02-18 | 2010-03-03 | 株式会社日立超エル・エス・アイ・システムズ | Data processing method and data processing apparatus |
| CN112087627B (en) * | 2020-08-04 | 2024-09-17 | 西安万像电子科技有限公司 | Image coding control method, device, equipment and storage medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09307898A (en) * | 1996-05-09 | 1997-11-28 | Fuji Photo Film Co Ltd | Image data compression processing method |
| JP3213582B2 (en) * | 1997-05-29 | 2001-10-02 | シャープ株式会社 | Image encoding device and image decoding device |
| JP3614361B2 (en) * | 1997-09-19 | 2005-01-26 | シャープ株式会社 | Image decoding device |
| JP2000323992A (en) * | 1999-05-14 | 2000-11-24 | Matsushita Electric Ind Co Ltd | Device and method for image data processing |
| JP2001045475A (en) * | 1999-07-27 | 2001-02-16 | Matsushita Electric Ind Co Ltd | Video signal hierarchical coding apparatus, video signal hierarchical decoding apparatus, and program recording medium |
-
2001
- 2001-09-21 JP JP2001289626A patent/JP4669645B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2003102011A (en) | 2003-04-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0888689B1 (en) | Data compression using hybrid lossless entropy encoding of run-length codes | |
| US8098947B2 (en) | Method and apparatus for processing image data by rearranging wavelet transform data | |
| JP4365957B2 (en) | Image processing method and apparatus and storage medium | |
| JP4114534B2 (en) | Image coding apparatus and method | |
| TWI436287B (en) | Image coding method and device | |
| JP2000184204A (en) | Image processing apparatus and method, and storage medium | |
| US7120306B2 (en) | Image processing method and image coding apparatus utilizing the image processing method | |
| US7302105B2 (en) | Moving image coding apparatus, moving image decoding apparatus, and methods therefor | |
| JP2003319185A (en) | Image encoding apparatus and method, and image decoding apparatus and method | |
| US20240196014A1 (en) | Encoder and method of encoding a sequence of frames | |
| US20040228534A1 (en) | Image compression method capable of reducing tile boundary distortion | |
| US20020171743A1 (en) | Electronic device and digital still camera | |
| JP4449400B2 (en) | Image encoding apparatus and method, program, and recording medium | |
| US20110091121A1 (en) | Coding apparatus and method | |
| US7313284B2 (en) | Image coding apparatus, program, storage medium and image coding method | |
| US7239754B2 (en) | Method, apparatus and system for compressing still images in multipurpose compression systems | |
| US11140392B2 (en) | Image encoding apparatus, image decoding apparatus, control methods thereof, and non- transitory computer-readable storage medium | |
| JP4669645B2 (en) | Image encoding apparatus, image encoding method, program, and recording medium | |
| KR100529540B1 (en) | image compression method using wavelet transform | |
| JP4003628B2 (en) | Image encoding apparatus and method, and program | |
| JP2010135912A (en) | Compressing method of video data | |
| JP4189956B2 (en) | Image data generation apparatus and image data generation method | |
| JP2002176561A (en) | Image processing apparatus and method, computer readable memory | |
| JP4189957B2 (en) | Image data generation apparatus and image data generation method | |
| JP4174254B2 (en) | Moving picture encoding apparatus, moving picture decoding apparatus, and methods thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080730 |
|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20090210 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20090306 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100513 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100518 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100701 |
|
| 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: 20110111 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110117 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140121 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |