JP3911784B2 - Image compression apparatus and image compression method - Google Patents
Image compression apparatus and image compression method Download PDFInfo
- Publication number
- JP3911784B2 JP3911784B2 JP24150897A JP24150897A JP3911784B2 JP 3911784 B2 JP3911784 B2 JP 3911784B2 JP 24150897 A JP24150897 A JP 24150897A JP 24150897 A JP24150897 A JP 24150897A JP 3911784 B2 JP3911784 B2 JP 3911784B2
- Authority
- JP
- Japan
- Prior art keywords
- image signal
- image
- circuit
- quantization
- value
- 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
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、画像信号を圧縮符号化する画像圧縮装置及び画像圧縮方法に関する。
【0002】
【従来の技術】
従来より、画像信号を圧縮する動画像圧縮装置では、同一フィールドで2次元離散コサイン変換(以下、「DCT変換」という。)を行うか同一フレームでDCT変換を行うかを判定するためのフレーム/フィールド判定回路を備えるものがある。
【0003】
上記フレーム/フィールド判定回路は、奇数ラインと偶数ラインの画像信号のデータ量の絶対値差分和V1と、隣合う奇数ライン間の絶対値差分と隣合う偶数ライン間の絶対値差分との和V2とを求め、これらの値に基づいてフィールド又はフレームでDCT変換を行うかを判定している。
【0004】
【発明が解決しようとする課題】
ところで、上記動画像圧縮装置では、画像信号の動きを検出して圧縮するための動きベクトル検出回路が設けられている。かかる動きベクトル検出回路では、回路規模を削減するために、原画像に対してサンプリングを施して低域成分を抽出し、この低域成分画像で大まかな動きベクトルを求めてから原画像上で補正を行う方式(以下、「階層サーチ方式」という。)がよく用いられる。なお、この階層サーチ方式は、本願出願人により、特開平8−182001号公報等により既に開示されている。
【0005】
しかし、階層サーチ方式には、回路規模が小さくなるものの演算精度が悪くなるという問題点がある。この問題点を解決するため、予め大まかな動きベクトルを求めるとときに、低域成分画像に加えてアクティビティ成分画像を求める方式が知られている。ところが、この方式は、演算速度を向上させることができるが、アクティビティ成分を求めるための回路が必要になり、回路規模が大きくなるという問題がある。
【0006】
また、上述の動画像圧縮装置では、画像信号を所定のブロックに分割して、各ブロックの画像の特徴量を示すパラメータから量子化係数を算出するために量子化回路,量子化制御回路が設けられている。かかる量子化制御回路は、特徴量を示すパラメータを求めるための回路を必要とするため、回路規模が大きくなっている。
【0007】
このように、フレーム/フィールド判定回路、動きベクトル検出回路、量子化制御回路は、それぞれに必要なパラメータを算出するのに個別の回路が必要となり、装置全体の回路規模が大きくなるという問題が生じた。
【0008】
本発明は、このような実情に鑑みて提案されたものであり、各回路に必要なパラメータを生成する回路を共通化して装置全体の回路規模を小さくすることのできる画像圧縮装置及び画像圧縮方法を提供することを目的とする。
【0009】
【課題を解決するための手段】
上述の課題を解決するために、本発明に係る画像圧縮装置は、動きベクトル検出用パラメータに基づいて大まかな動きベクトルを検出し、この大まかな動きベクトルの値をサーチ範囲の中心として、入力画像信号と候補画像信号とから動きベクトルを検出する動き検出手段と、検出された動きベクトルに基づいて画像信号の動き補償を行う動き補償手段と、入力画像信号と動き補償された画像信号との差分を演算して出力する演算手段と、上記演算手段からの画像信号、入力画像信号、上記候補画像信号に基づいて第1及び第2の判定係数、量子化制御パラメータ、動きベクトル検出用パラメータを生成するパラメータ生成手段と、入力画像信号又は上記演算手段からの画像信号を、上記第1及び第2の判定係数に基づいてフレーム分割又はフィールド分割するフレーム/フィールド分割手段と、分割された画像信号に離散コサイン変換処理を施して離散コサイン変換係数を生成する離散コサイン変換処理手段と、上記量子化制御パラメータによって量子化幅を制御する量子化制御手段と、上記量子化幅に基づいて上記離散コサイン変換係数を量子化することにより圧縮データを出力する量子化手段とを備え、上記パラメータ生成手段では、上記第1の判定係数として、1フレームにおける奇数ラインと偶数ラインとの差分絶対値和を、上記第2の判定係数として、1フレームにおける奇数ライン間の差分と偶数ライン間の差分との差分絶対値和を生成し、上記動きベクトル検出用パラメータとして、画像信号から順次抜き出された所定数画素のブロック内の画素の平均値にて示される低域成分縮小画像と、上記ブロック内の各画素と上記平均値との差分絶対値和にて示されるアクティビティ成分画像を生成するとともに、上記低域成分縮小画像とアクティビティ成分画像に基づいて、上記量子化制御パラメータとして、上記低域成分縮小画像の和を示すDC成分値、上記アクティビティ成分画像の最小値を示すフラットネス値、上記アクティビティ成分画像の和を示すアクティビティ値を生成し、上記量子化制御手段は、上記パラメータ生成手段により上記量子化制御パラメータとして生成された上記DC成分値、フラットネス値及びアクティビティ値に応じて、上記量子化手段における上記離散コサイン変換係数の量子化幅を制御することを特徴とする。
【0010】
また、本発明に係る画像圧縮方法は、動きベクトル検出用パラメータに基づいて大まかな動きベクトルを検出し、この大まかな動きベクトルの値をサーチ範囲の中心として、入力画像信号と候補画像信号とから動きベクトルを検出する動き検出ステップと、上記動き検出ステップにおいて検出された動きベクトルに基づいて画像信号の動き補償を行う動き補償ステップと、入力画像信号と上記動き補償ステップにおいて動き補償された画像信号との差分を演算する演算ステップと、上記演算ステップにおいて演算された画像信号、入力画像信号、上記候補画像信号に基づいて第1及び第2の判定係数、量子化制御パラメータ、動きベクトル検出用パラメータを生成するパラメータ生成ステップと、入力画像信号又は上記演算ステップにおいて演算された画像信号を、上記第1及び第2の判定係数に基づいてフレーム分割又はフィールド分割するフレーム/フィールド分割ステップと、上記フレーム/フィールド分割ステップにおいて分割された画像信号に離散コサイン変換処理を施して離散コサイン変換係数を生成する離散コサイン変換処理ステップと、上記量子化制御パラメータによって量子化幅を制御する量子化制御ステップと、上記量子化制御ステップにおいて制御された量子化幅で上記離散コサイン変換係数を量子化することにより圧縮データを出力する量子化ステップとを備え、上記パラメータ生成ステップでは、上記第1の判定係数として、1フレームにおける奇数ラインと偶数ラインとの差分絶対値和を、上記第2の判定係数として、1フレームにおける奇数ライン間の差分と偶数ライン間の差分との差分絶対値和を生成し、上記動きベクトル検出用パラメータとして、画像信号から順次抜き出された所定数画素のブロック内の画素の平均値にて示される低域成分縮小画像と、上記ブロック内の各画素と上記平均値との差分絶対値和にて示されるアクティビティ成分画像を生成するとともに、上記低域成分縮小画像とアクティビティ成分画像に基づいて、上記量子化制御パラメータとして、上記低域成分縮小画像の和を示すDC成分値、上記アクティビティ成分画像の最小値を示すフラットネス値、上記アクティビティ成分画像の和を示すアクティビティ値を生成し、上記量子化制御ステップでは、上記パラメータ生成ステップにおいて上記量子化制御パラメータとして生成された上記DC成分値、フラットネス値及びアクティビティ値に応じて、量子化幅を制御することを特徴とする。
【0011】
【発明の実施の形態】
以下、本発明の実施の形態について、図面を参照しながら説明する。本発明は、例えば図1に示す構成の画像圧縮装置1に適用される。上記画像圧縮装置1は、フレーム/フィールド分割の判定、量子化制御、動き検出の時に用いられるパラメータをまとめて生成することのできるパラメータ生成回路14を備えたものである。
【0012】
具体的には、上記画像圧縮装置1は、入力画像信号に所定の演算を行って差分画像信号(以下、単に「画像信号」と略す。)を得る演算器12と、入力画像信号又は演算器12からの画像信号を切換出力する切換回路13と、パラメータを生成するパラメータ生成回路14と、フレーム分割をするかフィールド分割を行うかを判定するフレーム/フィールド判定回路15と、判定した結果に基づいて分割処理を行うフレーム/フィールド分割回路16と、DCT演算処理を行うDCT回路17と、量子化処理を行う量子化回路18と、例えばハフマン符号化処理を行う符号化回路19と、符号化されたデータを一時蓄積するバッファ20と、量子化ステップを制御する量子化制御回路22とを備える。
【0013】
演算器12は、入力端子11から入力される画像信号を加算信号とし、後述する動き補償回路28からの画像信号を減算信号として演算処理を行い、算出された画像信号を切換回路13の端子aに供給する。
【0014】
切換回路13は、PピクチャやBピクチャを圧縮するときのように動き補償を行うときは端子aに設定され、Iピクチャを圧縮するときのように動き補償を行わないときは端子bに設定される。なお、この端子bは、入力端子11に接続されている。そして、切換回路13は、端子a又は端子bに供給される画像信号をパラメータ生成回路14及びフレーム/フィールド分割回路16に供給する。
【0015】
パラメータ生成回路14は、入力端子11からの画像信号,切換回路13からの画像信号,後述する加算器25からの画像信号に基づいてパラメータV1,V2,f,g,D,A,Fを生成する。パラメータ生成回路14は、パラメータV1,V2をフレーム/フィールド判定回路15に、パラメータD,A,Fを量子化制御回路22に、パラメータf,gを後述する動き検出回路27に供給する。
【0016】
ここで、パラメータ生成回路14は、図2に示すように、入力信号の切換を行う切換回路34と、低域成分縮小画像fmnを生成する低域成分縮小画像生成回路35と、アクティビティ成分画像gmn等を生成するアクティビティ成分画像生成回路36と、量子化制御回路22で用いるパラメータを生成する量子化制御パラメータ生成回路37とを備える。
【0017】
切換回路34の端子aには、端子32を介して図1に示す入力端子11からの画像信号が供給される。また、切換回路34の端子bには、端子33を介して図1に示す加算器25からの画像信号が供給される。切換回路34は、所定期間毎に切換設定され、端子a又は端子bに供給された画像信号を低域成分縮小画像生成回路35及びアクティビティ成分画像生成回路36に供給する。
【0018】
低域成分縮小画像生成回路35は、図3に示すように、画像信号から4画素×4画素のブロックを順次抜き出し、このブロックを構成する画素aijの平均値(低域成分縮小画像fmn)を算出する。この算出式は、式(1)で表される。
【0019】
【数1】
【0020】
そして、低域成分縮小画像生成回路35は、各低域成分縮小画像fmnをアクティビティ成分画像生成回路36及び量子化制御パラメータ生成回路37に供給するとともに、端子41を介して出力する。
【0021】
アクティビティ成分画像生成回路36には、切換回路34からの画像信号及び低域成分縮小画像fmnの他に、端子31を介して、図1に示す切換回路13からの画像信号が供給される。
【0022】
アクティビティ成分画像生成回路36は、図4に示すように、図2に示す端子31からの画像信号から16画素×16画素のブロックを順次抜き出し、これらのブロックに基づいてフレーム/フィールド判定係数(以下、「判定係数」という。)V1,V2を生成する。また、アクティビティ成分画像生成回路36は、図5に示すように、図2に示す切換回路34からの画像信号から4画素×4画素のブロックを順次抜き出して、このブロックとこのブロックに対応する低域成分縮小画像fmnとに基づいて、アクティビティ成分画像gmnを生成する。
【0023】
ここで、アクティビティ成分画像生成回路36は、具体的には図6に示すように、16個のスイッチ51〜66と、8個の差分絶対値加算器67〜74と、8個の加算器75〜82と、レジスタ83とを備える。
【0024】
さらに、上記アクティビティ成分画像生成回路36は、16個のスイッチ91〜106と、8個の差分絶対値加算器107〜114と、8個の加算器115〜122と、レジスタ123と、加算器124と、除算器125とを備える。
【0025】
最初に、判定係数V1,V2を求める場合は、スイッチ51〜66及びスイッチ91〜106は端子aに設定され、レジスタ83,123の値は0に設定される。
【0026】
差分絶対値加算器67〜74は、それぞれai0とai1,ai2とai3,・・・,ai12とai13,ai14とai15の差分の絶対値を出力する。そして、これらの差分の絶対値は加算器75〜81によって合計され、これらの合計値は加算器82を介してレジスタ83に入力される。このとき、レジスタ83には、上述の図4に示すように、i列における奇数ラインと偶数ラインの差分の絶対値の和の値が入力される。
【0027】
そして、各列においてこのような処理が行われると、レジスタ83には、1フレームにおける奇数ラインと偶数ラインの差分の絶対値の和の値が入力される。この和の値をフレーム/フィールド係数V1とすると、V1の算出式は式(2)で表される。
【0028】
【数2】
【0029】
一方、差分絶対値加算器107〜114は、それぞれai0とai2,ai1とai3,・・・,ai12とai14,ai13とai15の差分の絶対値を出力する。そして、これらの差分の絶対値は加算器115〜121によって合計され、これらの合計値は加算器122を介してレジスタ123に入力される。このとき、レジスタ123には、上述の図4に示すように、i列における奇数ライン間の差分及び偶数ライン間の差分の絶対値の和の値が入力される。
【0030】
そして、各列においてこのような処理が行われると、レジスタ123には、1フレームにおける奇数ライン間の差分と偶数ライン間の差分の絶対値の和の値が入力される。この和の値をフレーム/フィールド係数V2とすると、V2の算出式は式(3)で表される。
【0031】
【数3】
【0032】
つぎに、アクティビティ成分画像gmnを生成する場合、スイッチ51〜66及びスイッチ91〜106は端子bに設定される。
【0033】
差分絶対値加算器67〜74,91〜106は、それぞれap,qとap/4,q/4、ap+1,qとap/4,q/4、・・・、ap+3,q+3とap/4,q/4との差分の絶対値を出力する。これらの差分の絶対値は加算器75〜81,115〜121,124によって合計される。除算器125は、この合計値を16で除してアクティビティ成分画像gp/4,q/4を生成して出力する。このアクティビティ成分画像gp/4,q/4(=gmn)の算出式は、式(4)によって表される。
【0034】
【数4】
【0035】
このように、上記アクティビティ成分画像生成回路36は、スイッチ51〜66及びスイッチ91〜106を端子aに設定することによって判定係数V1,V2を算出し、また、スイッチ51〜66及びスイッチ91〜106を端子bに設定することによって容易にアクティビティ成分画像gmnも生成することができる。
【0036】
そして、アクティビティ成分画像生成回路36は、判定係数V1,V2を、図2に示す端子38,39を介して出力し、低域成分縮小画像fmnを量子化制御パラメータ生成回路37に供給し、さらに端子41を介して出力する。
【0037】
量子化制御パラメータ生成回路37は、低域成分縮小画像fmn及びアクティビティ成分画像gmnに基づいて式(5),式(6),式(7)の演算を行うことによって、DC成分値D,フラットネス値F,アクティビティ値Aを生成する。
【0038】
【数5】
【0039】
以上のように、パラメータ生成回路14は、動きベクトル検出に必要な低域成分縮小画像fmn及びこれに基づいてアクティビティ成分画像gmnを生成し、これらの値を用いて、量子化制御に必要なDC成分値D,フラットネス値F,アクティビティ値Aを生成することができる。すなわち、パラメータ生成回路14は、フレーム/フィールド判定回路15及び量子化制御回路22で用いられ、かつ、互いに関連のあるパラメータをまとめて生成することができる。また、パラメータ生成回路14は、図6に示すスイッチ51等を端子aに設定することによって、フレーム/フィールド判定に必要な判定係数V1,V2を容易に生成することもできる。
【0040】
フレーム/フィールド判定回路15は、上記判定係数V1,V2に基づいてフレームをDCTブロック分割するか、フィールドをDCTブロック分割するかを判定する。具体的には、式(8)が成り立つかを判定する。
【0041】
【数6】
【0042】
ここで、判定係数V1は、図7に示すように、隣合う奇数ラインと偶数ラインとの差分の絶対値を合計した値である。また、判定係数V2は、隣合う奇数ライン間及び隣合う偶数ライン間の差分の絶対値を合計した値である。
【0043】
そして、フレーム/フィールド判定回路15は、V1≦V2+offsetが成り立つときはフレーム分割を、V1≦V2+offsetが成り立たないときはフィールド分割を行うようにフレーム/フィールド分割回路16を制御する。なお、Iピクチャのように動き補償を行わない場合はoffset=4096であり、PピクチャやBピクチャのように動き補償を行う場合はoffset=0である。
【0044】
フレーム/フィールド分割回路16は、上述の判定に基づいて、切換回路13からの画像信号に対してフレームをDCTブロック分割したり、フィールドをDCTブロック分割する。フレーム/フィールド分割回路16は、図8に示すように、1フレームを分割して得られたDCTブロック又は1フィールドを分割して得られたDCTブロックをDCT回路17に供給する。
【0045】
DCT回路17は、上記DCTブロックにDCT変換処理を行って量子化回路18に供給する。量子化回路18は、量子化係数を算出し、この量子化係数を符号化回路19及び逆量子化回路23に供給する。符号化回路19は、例えばハフマン符号化を行ってバッファ回路20に供給する。
【0046】
バッファ回路20は、符号化されたデータを一時蓄積してこの蓄積量の情報を量子化制御回路22に供給するとともに、所定のビットレートでビットストリームを出力端子21を介して出力する。
【0047】
量子化制御回路22は、パラメータ生成回路14からのパラメータD,A,F及びバッファ回路20のデータの蓄積量に基づいて、表1に示すように、量子化回路18のデータ発生量を制御する。
【0048】
【表1】
【0049】
例えば、量子化制御回路22は、直流成分パラメータDの値が大きくなると量子化回路18で発生する量子化係数Qの値を小さくし、直流成分パラメータDの値が小さくなると量子化係数Qの値は大きくなるようにする。また、フラットネス・パラメータFの値が大きくなると量子化係数Qの値を大きくし、直流成分パラメータDの値が小さくなると量子化係数Qの値を小さくする。また、アクティビティ値Aが大きくなると量子化係数Qの値を大きくし、アクティビティ値Aが小さくなると量子化係数Qの値は小さくなる。そして、量子化制御回路22は、これらのパラメータD,F,Aの組合せによって、量子化回路18の量子化係数の大きさを制御する。
【0050】
また、上記画像圧縮装置1は、逆量子化処理を行う逆量子化回路23と、逆DCT処理を行う逆DCT回路24と、加算器25と、フレームメモリ26と、原画像に対してサンプリングを施して低域成分を抽出し、この低域成分画像で大まかな動きベクトルを求めてから原画像上で補正を行う方式(以下、「階層サーチ方式」という。)の動き検出回路27と、検出された動きベクトルに基づいて動き補償を行う動き補償回路28と、切換回路29とを備える。
【0051】
逆量子化回路23は、量子化回路18から供給される量子化係数に逆量子化処理を施して、DCT係数を逆DCT回路24に供給する。逆DCT回路24は、逆量子化回路23から供給されるDCT係数に対して逆DCT変換を行うことによって画像信号を復号して、この画像信号を加算器25に供給する。
【0052】
加算器25は、逆DCT回路24から供給される画像信号と動き補償回路28で動き補償された画像信号とを加算合成し、この合成された画像信号をフレームメモリ26に供給する。
【0053】
フレームメモリ26は、加算器25から供給されるブロック毎の画像信号を記憶して、1フレーム毎にこの画像信号を動き検出回路27及び動き補償回路28に供給する。
【0054】
動き検出回路27は、入力端子11及びフレームメモリ26から供給される信号に基づいて2次元の動きベクトルを検出して、この検出結果を動き補償回路28に供給する。
【0055】
ここで、動き検出回路27は、具体的には図9に示すように、切換回路134と、フレームメモリ135と、縮小画像ブロックマッチング演算回路136と、原画像ブロックマッチング演算回路137と、ハーフペル演算回路138とを備える。
【0056】
切換回路134には、端子131を介してパラメータ生成回路14からのパラメータf,gが供給される。切換回路134は、所定時間毎に端子a又は端子bに切換設定され、パラメータf,gをフレームメモリ135又は縮小画像ブロックマッチング演算回路136に供給する。
【0057】
縮小画像ブロックマッチング演算回路136は、フレームメモリ135から予測画像の縮小画像と切換回路134からの予測画像の縮小画像ともマッチング処理を行い、これらの画像から動きベクトルの大まかな値を算出して原画像ブロックマッチング演算回路137に供給する。
【0058】
原画像ブロックマッチング演算回路137は、図1に示す入力端子11からの画像信号と図1に示すフレームメモリ26からの画像信号とを用いて、縮小画像ブロックマッチング演算回路136からの大まかな動きベクトルの値をサーチ範囲の中心として、端子132からの候補画像信号と端子133からの入力画像信号とから高精度の動きベクトルの値を画素単位で求めることができる。
【0059】
ハーフペル演算回路138は、上記入力端子11からの画像信号と上記フレームメモリ26からの画像信号とを用いて、原画像ブロックマッチング演算回路137で求められた画素単位の動きベクトルの近傍における1/2画素単位の動きベクトルを算出し、かかる動きベクトルを端子139を介して動き補償回路28に供給する。
【0060】
動き補償回路28は、上記動きベクトルに基づいて、フレームメモリ26から読み出された1フレーム分の画像信号に所定の動き補償を行うことによって予測画像信号を得て、この画像信号を上述した演算器12及び切換回路29の端子aに供給する。
【0061】
切換回路29は、例えばPピクチャやBピクチャのように動き補償を行う必要があるときは端子aに設定され、Iピクチャのように動き補償を行う必要がないときは端子bに設定される。そして、切換回路29は、端子aに設定されているときに、動き補償回路28からの画像信号を加算器25に供給する。
【0062】
これにより、例えばIピクチャの場合は、切換回路12,29は共に端子bに設定される。Iピクチャの画像信号は、量子化回路18,符号化回路19で圧縮符号化されて端子21を介して出力されるとともに、フレームメモリ26に蓄積される。
【0063】
Pピクチャの場合は、切換回路13,29は共に端子aに設定される。動き検出回路27は、入力端子11からのPピクチャとフレームメモリ26からのIピクチャとに基づいて動きベクトルを検出し、動き補償回路28は、上記動きベクトルに基づいてフレームメモリ26からのIピクチャに動き補償を行って、予測画像信号を演算器12及び切換回路29に供給する。よって、演算器12は、入力端子11からの入力画像信号と予測画像信号との差分を出力する。これにより、Pピクチャは、量子化回路18,符号化回路19を介して圧縮符号化されて出力される。
【0064】
Bピクチャの場合は、切換回路13,29は共に端子aに設定される。加算器25は、逆量子化回路24から供給される上述のPピクチャの差分画像信号と、動き補償回路28から供給される予測画像信号とを加算合成し、これにより生成されるPピクチャの画像信号をフレームメモリ26を介して動き検出回路27及び動き補償回路28に供給する。動き検出回路27は、入力端子11からのBピクチャとフレームメモリ26からのPピクチャとに基づいて動きベクトルを検出し、動き補償回路28は、上記動きベクトルに基づいてフレームメモリ26からのPピクチャに動き補償を行って、予測画像信号を演算器12及び切換回路29に供給する。よって、演算器12は、入力端子11からのBピクチャの入力画像信号とBピクチャの予測画像信号との差分を出力する。これにより、Bピクチャは、量子化回路18,符号化回路19を介して圧縮符号化されて出力される。
【0065】
以上のように、上記画像圧縮装置1は、フレーム/フィールド判定回路15及び量子化制御回路22で用いられる互いに関連性の高いパラメータや、階層サーチ方式の動き検出回路27において用いられるパラメータを、容易に生成することのできるパラメータ生成回路14を備えることにより、これらのそれぞれの回路でパラメータを生成するのに比べて回路規模を小さくすることができる。
【0066】
【発明の効果】
以上詳細に説明したように、本発明に係る画像圧縮装置装置及び画像圧縮方法によれば、判定係数、量子化制御パラメータ、動きベクトル検出用パラメータをまとめて生成することによって、各回路で必要なそれぞれのパラメータを一括して生成することができ、回路規模の小型化を図ることができる。
【図面の簡単な説明】
【図1】本発明を適用した画像圧縮装置の具体的な構成を示すブロック図である。
【図2】上記画像圧縮装置のパラメータ生成回路の構成を示すブロック図である。
【図3】上記パラメータ生成回路によって生成されるパラメータを説明するための図である。
【図4】上記パラメータ生成回路によって演算されるフレーム/フィールド判定係数を説明するための図である。
【図5】上記パラメータ生成回路によって演算されるアクティビティ成分画像を説明するための図である。
【図6】上記パラメータ生成回路内に設けられたアクティビティ成分画像生成回路の構成を示すブロック図である。
【図7】フレーム/フィールド判定係数を用いてフレーム/フィールド判定することを説明するための図である。
【図8】画像信号をフレーム分割又はフィールド分割することを説明するための図である。
【図9】上記動画像圧縮装置の動き検出回路の構成を示すブロック図である。
【符号の説明】
1 画像圧縮装置、14 パラメータ生成回路、15 フレーム/フィールド判定回路、16 フレーム/フィールド分割回路、18 量子化回路、22 量子化制御回路、27 動き検出回路、28 動き補償回路[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image compression apparatus and an image compression method for compressing and encoding an image signal.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, in a moving image compression apparatus that compresses an image signal, a frame / determining whether to perform two-dimensional discrete cosine transform (hereinafter referred to as “DCT transform”) in the same field or DCT transform in the same frame. Some have a field determination circuit.
[0003]
The frame / field determination circuit calculates the sum V2 of the absolute value difference V1 of the data amount of the image signal of the odd line and the even line, and the sum V2 of the absolute value difference between the adjacent odd lines and the absolute value difference between the adjacent even lines. Based on these values, it is determined whether to perform DCT conversion in the field or frame.
[0004]
[Problems to be solved by the invention]
By the way, the moving image compression apparatus is provided with a motion vector detection circuit for detecting and compressing the motion of the image signal. In such a motion vector detection circuit, in order to reduce the circuit scale, sampling is performed on the original image to extract a low-frequency component, a rough motion vector is obtained from the low-frequency component image, and then corrected on the original image. Is often used (hereinafter referred to as “hierarchical search method”). This hierarchical search method has already been disclosed by the applicant of the present application, such as in Japanese Patent Laid-Open No. 8-182001.
[0005]
However, the hierarchical search method has a problem that although the circuit scale is reduced, the calculation accuracy is deteriorated. In order to solve this problem, there is known a method for obtaining an activity component image in addition to a low-frequency component image when a rough motion vector is obtained in advance. However, although this method can improve the calculation speed, there is a problem that a circuit for obtaining an activity component is required and the circuit scale becomes large.
[0006]
In the above-described moving image compression apparatus, a quantization circuit and a quantization control circuit are provided to divide an image signal into predetermined blocks and calculate a quantization coefficient from a parameter indicating an image feature amount of each block. It has been. Since such a quantization control circuit requires a circuit for obtaining a parameter indicating a feature amount, the circuit scale is large.
[0007]
As described above, the frame / field determination circuit, the motion vector detection circuit, and the quantization control circuit calculate the necessary parameters for each. Individual A circuit was required, and there was a problem that the circuit scale of the entire apparatus was increased.
[0008]
The present invention has been proposed in view of such circumstances, and an image compression apparatus and an image compression method capable of reducing the circuit scale of the entire apparatus by sharing a circuit that generates parameters necessary for each circuit. The purpose is to provide.
[0009]
[Means for Solving the Problems]
In order to solve the above-described problem, an image compression apparatus according to the present invention detects a rough motion vector based on a motion vector detection parameter, and uses the value of this rough motion vector as the center of a search range to input an image. Motion detection means for detecting a motion vector from the signal and the candidate image signal, motion compensation means for performing motion compensation of the image signal based on the detected motion vector, and a difference between the input image signal and the motion compensated image signal Based on the calculation means for calculating and outputting the image signal, the input image signal from the calculation means, and the candidate image signal First and second Parameter generation means for generating a determination coefficient, a quantization control parameter, a motion vector detection parameter, and an input image signal or an image signal from the calculation means, First and second Frame / field dividing means for frame division or field division based on a determination coefficient, discrete cosine transform processing means for performing discrete cosine transform processing on the divided image signal to generate discrete cosine transform coefficients, and the quantization control parameter The quantization control means for controlling the quantization width by means of, and the quantization means for outputting the compressed data by quantizing the discrete cosine transform coefficient based on the quantization width, the parameter generation means, As the first determination coefficient, the sum of absolute differences between odd lines and even lines in one frame is used, and as the second determination coefficient, the absolute difference between the difference between odd lines and the difference between even lines in one frame is used. Generate a sum of values, above As a motion vector detection parameter, a low-frequency component reduced image indicated by an average value of pixels in a block of a predetermined number of pixels sequentially extracted from an image signal, and the above In block Generating an activity component image indicated by a sum of absolute differences between each pixel and the average value, and based on the low-frequency component reduced image and the activity component image, as the quantization control parameter, DC component value indicating the sum of the low-frequency component reduced images, flatness value indicating the minimum value of the activity component image, An activity value indicating a sum of activity component images is generated, and the quantization control unit is configured to generate the activity value according to the DC component value, flatness value, and activity value generated as the quantization control parameter by the parameter generation unit. The quantization width of the discrete cosine transform coefficient in the quantization means is controlled.
[0010]
The image compression method according to the present invention detects a rough motion vector based on a motion vector detection parameter, and uses the value of this rough motion vector as the center of a search range from an input image signal and a candidate image signal. A motion detection step for detecting a motion vector, a motion compensation step for performing motion compensation of an image signal based on the motion vector detected in the motion detection step, an input image signal, and an image signal motion-compensated in the motion compensation step A calculation step for calculating the difference between the image signal, the image signal calculated in the calculation step, the input image signal, and the candidate image signal First and second A parameter generation step for generating a determination coefficient, a quantization control parameter, and a motion vector detection parameter; and the input image signal or the image signal calculated in the calculation step, First and second Frame / field division step for frame division or field division based on determination coefficient, and discrete cosine transformation processing step for generating discrete cosine transformation coefficient by subjecting the image signal divided in the frame / field division step to discrete cosine transformation processing And a quantization control step for controlling the quantization width by the quantization control parameter, In the quantization control step A quantization step of outputting compressed data by quantizing the discrete cosine transform coefficient with a controlled quantization width, and in the parameter generation step, As the first determination coefficient, the sum of absolute differences between odd lines and even lines in one frame is used, and as the second determination coefficient, the absolute difference between the difference between odd lines and the difference between even lines in one frame is used. Generate a sum of values, above As a motion vector detection parameter, a low-frequency component reduced image indicated by an average value of pixels in a block of a predetermined number of pixels sequentially extracted from an image signal, and the above In block Generating an activity component image indicated by a sum of absolute differences between each pixel and the average value, and based on the low-frequency component reduced image and the activity component image, as the quantization control parameter, DC component value indicating the sum of the low-frequency component reduced images, flatness value indicating the minimum value of the activity component image, An activity value indicating the sum of activity component images is generated. In the quantization control step, a quantum value is generated according to the DC component value, flatness value, and activity value generated as the quantization control parameter in the parameter generation step. The control width is controlled.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. The present invention is applied to, for example, the
[0012]
Specifically, the
[0013]
Computing unit 12 performs arithmetic processing using an image signal input from the
[0014]
The
[0015]
The
[0016]
Where
[0017]
The image signal from the
[0018]
As shown in FIG. 3, the low-frequency component reduced
[0019]
[Expression 1]
[0020]
Then, the low-frequency component reduced
[0021]
The activity component
[0022]
As shown in FIG. 4, the activity component
[0023]
Here, as shown in FIG. 6, the activity component
[0024]
Further, the activity component
[0025]
First, when obtaining the determination coefficients V1 and V2, the
[0026]
The difference
[0027]
When such processing is performed in each column, the
[0028]
[Expression 2]
[0029]
On the other hand, the difference
[0030]
When such processing is performed in each column, the register 123 receives the sum of the absolute values of the difference between odd lines and the difference between even lines in one frame. When this sum value is a frame / field coefficient V2, the calculation formula of V2 is expressed by Formula (3).
[0031]
[Equation 3]
[0032]
Next, activity component image g mn , The
[0033]
The difference
[0034]
[Expression 4]
[0035]
Thus, the activity component
[0036]
And activity component
[0037]
The quantization control
[0038]
[Equation 5]
[0039]
As described above, the
[0040]
The frame /
[0041]
[Formula 6]
[0042]
Here, as shown in FIG. 7, the determination coefficient V1 is a value obtained by summing up absolute values of differences between adjacent odd lines and even lines. The determination coefficient V2 is a value obtained by summing up absolute values of differences between adjacent odd lines and adjacent even lines.
[0043]
The frame /
[0044]
Based on the above determination, the frame /
[0045]
The
[0046]
The
[0047]
The
[0048]
[Table 1]
[0049]
For example, when the value of the DC component parameter D increases, the
[0050]
The
[0051]
The inverse quantization circuit 23 performs an inverse quantization process on the quantization coefficient supplied from the
[0052]
The
[0053]
The
[0054]
The
[0055]
Here, as shown in FIG. 9, the
[0056]
The parameters f and g from the
[0057]
The reduced image block
[0058]
The original image block matching
[0059]
The half-
[0060]
The
[0061]
The switching
[0062]
Thus, for example, in the case of an I picture, both the switching
[0063]
In the case of P picture, switching
[0064]
In case of B picture, switching
[0065]
As described above, the
[0066]
【The invention's effect】
As described above in detail, according to the image compression apparatus and the image compression method according to the present invention, the determination coefficient, the quantization control parameter, and the motion vector detection parameter are generated together, thereby being necessary for each circuit. Each parameter can be generated collectively, and the circuit scale can be reduced.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a specific configuration of an image compression apparatus to which the present invention is applied.
FIG. 2 is a block diagram showing a configuration of a parameter generation circuit of the image compression apparatus.
FIG. 3 is a diagram for explaining parameters generated by the parameter generation circuit.
FIG. 4 is a diagram for explaining a frame / field determination coefficient calculated by the parameter generation circuit.
FIG. 5 is a diagram for explaining an activity component image calculated by the parameter generation circuit.
FIG. 6 is a block diagram showing a configuration of an activity component image generation circuit provided in the parameter generation circuit.
FIG. 7 is a diagram for explaining frame / field determination using a frame / field determination coefficient.
FIG. 8 is a diagram for explaining frame division or field division of an image signal.
FIG. 9 is a block diagram illustrating a configuration of a motion detection circuit of the moving image compression apparatus.
[Explanation of symbols]
DESCRIPTION OF
Claims (4)
検出された動きベクトルに基づいて画像信号の動き補償を行う動き補償手段と、
入力画像信号と動き補償された画像信号との差分を演算して出力する演算手段と、
上記演算手段からの画像信号、入力画像信号、上記候補画像信号に基づいて第1及び第2の判定係数、量子化制御パラメータ、動きベクトル検出用パラメータを生成するパラメータ生成手段と、
入力画像信号又は上記演算手段からの画像信号を、上記第1及び第2の判定係数に基づいてフレーム分割又はフィールド分割するフレーム/フィールド分割手段と、
分割された画像信号に離散コサイン変換処理を施して離散コサイン変換係数を生成する離散コサイン変換処理手段と、
上記量子化制御パラメータによって量子化幅を制御する量子化制御手段と、
上記量子化幅に基づいて上記離散コサイン変換係数を量子化することにより圧縮データを出力する量子化手段とを備え、
上記パラメータ生成手段では、上記第1の判定係数として、1フレームにおける奇数ラインと偶数ラインとの差分絶対値和を、上記第2の判定係数として、1フレームにおける奇数ライン間の差分と偶数ライン間の差分との差分絶対値和を生成し、上記動きベクトル検出用パラメータとして、画像信号から順次抜き出された所定数画素のブロック内の画素の平均値にて示される低域成分縮小画像と、上記ブロック内の各画素と上記平均値との差分絶対値和にて示されるアクティビティ成分画像を生成するとともに、上記低域成分縮小画像とアクティビティ成分画像に基づいて、上記量子化制御パラメータとして、上記低域成分縮小画像の和を示すDC成分値、上記アクティビティ成分画像の最小値を示すフラットネス値、上記アクティビティ成分画像の和を示すアクティビティ値を生成し、
上記量子化制御手段は、上記パラメータ生成手段により上記量子化制御パラメータとして生成された上記DC成分値、フラットネス値及びアクティビティ値に応じて、上記量子化手段における上記離散コサイン変換係数の量子化幅を制御することを特徴とする画像圧縮装置。A motion detection unit that detects a rough motion vector based on the motion vector detection parameter, detects a motion vector from the input image signal and the candidate image signal with the value of the rough motion vector as a center of the search range;
Motion compensation means for performing motion compensation of the image signal based on the detected motion vector;
A computing means for computing and outputting the difference between the input image signal and the motion compensated image signal;
Parameter generation means for generating first and second determination coefficients, quantization control parameters, motion vector detection parameters based on the image signal from the calculation means, the input image signal, and the candidate image signal;
Frame / field dividing means for frame-dividing or field-dividing the input image signal or the image signal from the arithmetic means based on the first and second determination coefficients;
Discrete cosine transform processing means for performing discrete cosine transform processing on the divided image signal to generate discrete cosine transform coefficients;
Quantization control means for controlling a quantization width by the quantization control parameter;
Quantizing means for outputting compressed data by quantizing the discrete cosine transform coefficient based on the quantization width;
In the parameter generation means, as the first determination coefficient, the sum of absolute differences between odd lines and even lines in one frame is used, and as the second determination coefficient, the difference between odd lines and even lines in one frame is used. A low-frequency component reduced image indicated by an average value of pixels in a block of a predetermined number of pixels sequentially extracted from the image signal as the motion vector detection parameter. and generates an activity component image shown in sum of absolute differences between each pixel and the average value in the block, based on the low-frequency component reduced image and activity component image, as the quantization control parameter, the DC component value that indicates the sum of the low-frequency component reduced image flatness value indicating the minimum value of the activity component image, the activity Generating an activity value indicating the sum of the partial images,
The quantization control means is a quantization width of the discrete cosine transform coefficient in the quantization means according to the DC component value, flatness value and activity value generated as the quantization control parameter by the parameter generation means. An image compression apparatus for controlling the image.
上記動き検出ステップにおいて検出された動きベクトルに基づいて画像信号の動き補償を行う動き補償ステップと、
入力画像信号と上記動き補償ステップにおいて動き補償された画像信号との差分を演算する演算ステップと、
上記演算ステップにおいて演算された画像信号、入力画像信号、上記候補画像信号に基づいて第1及び第2の判定係数、量子化制御パラメータ、動きベクトル検出用パラメータを生成するパラメータ生成ステップと、
入力画像信号又は上記演算ステップにおいて演算された画像信号を、上記第1及び第2の判定係数に基づいてフレーム分割又はフィールド分割するフレーム/フィールド分割ステップと、
上記フレーム/フィールド分割ステップにおいて分割された画像信号に離散コサイン変換処理を施して離散コサイン変換係数を生成する離散コサイン変換処理ステップと、
上記量子化制御パラメータによって量子化幅を制御する量子化制御ステップと、
上記量子化制御ステップにおいて制御された量子化幅で上記離散コサイン変換係数を量子化することにより圧縮データを出力する量子化ステップとを備え、
上記パラメータ生成ステップでは、上記第1の判定係数として、1フレームにおける奇数ラインと偶数ラインとの差分絶対値和を、上記第2の判定係数として、1フレームにおける奇数ライン間の差分と偶数ライン間の差分との差分絶対値和を生成し、上記動きベクトル検出用パラメータとして、画像信号から順次抜き出された所定数画素のブロック内の画素の平均値にて示される低域成分縮小画像と、上記ブロック内の各画素と上記平均値との差分絶対値和にて示されるアクティビティ成分画像を生成するとともに、上記低域成分縮小画像とアクティビティ成分画像に基づいて、上記量子化制御パラメータとして、上記低域成分縮小画像の和を示すDC成分値、上記アクティビティ成分画像の最小値を示すフラットネス値、上記アクティビティ成分画像の和を示すアクティビティ値を生成し、
上記量子化制御ステップでは、上記パラメータ生成ステップにおいて上記量子化制御パラメータとして生成された上記DC成分値、フラットネス値及びアクティビティ値に応じて、量子化幅を制御することを特徴とする画像圧縮方法。A motion detection step of detecting a rough motion vector based on the motion vector detection parameter and detecting a motion vector from the input image signal and the candidate image signal with the value of the rough motion vector as the center of the search range;
A motion compensation step for performing motion compensation of the image signal based on the motion vector detected in the motion detection step;
A calculation step for calculating a difference between the input image signal and the image signal subjected to motion compensation in the motion compensation step;
A parameter generation step for generating first and second determination coefficients, quantization control parameters, and motion vector detection parameters based on the image signal calculated in the calculation step, the input image signal, and the candidate image signal;
A frame / field division step for frame-dividing or field-dividing the input image signal or the image signal calculated in the calculation step based on the first and second determination coefficients;
A discrete cosine transform processing step for generating a discrete cosine transform coefficient by performing a discrete cosine transform process on the image signal divided in the frame / field division step;
A quantization control step for controlling the quantization width by the quantization control parameter;
A quantization step of outputting compressed data by quantizing the discrete cosine transform coefficient with a quantization width controlled in the quantization control step,
In the parameter generation step, as the first determination coefficient, the sum of absolute differences between odd lines and even lines in one frame is used, and as the second determination coefficient, the difference between odd lines and even lines in one frame is used. A low-frequency component reduced image indicated by an average value of pixels in a block of a predetermined number of pixels sequentially extracted from the image signal as the motion vector detection parameter. and generates an activity component image shown in sum of absolute differences between each pixel and the average value in the block, based on the low-frequency component reduced image and activity component image, as the quantization control parameter, the DC component value that indicates the sum of the low-frequency component reduced image flatness value indicating the minimum value of the activity component image, the activity Generating an activity value indicating the sum of the I component image,
In the quantization control step, a quantization width is controlled in accordance with the DC component value, flatness value, and activity value generated as the quantization control parameter in the parameter generation step. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24150897A JP3911784B2 (en) | 1997-09-05 | 1997-09-05 | Image compression apparatus and image compression method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24150897A JP3911784B2 (en) | 1997-09-05 | 1997-09-05 | Image compression apparatus and image compression method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH1188895A JPH1188895A (en) | 1999-03-30 |
JP3911784B2 true JP3911784B2 (en) | 2007-05-09 |
Family
ID=17075382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24150897A Expired - Fee Related JP3911784B2 (en) | 1997-09-05 | 1997-09-05 | Image compression apparatus and image compression method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3911784B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4829951B2 (en) * | 2008-11-10 | 2011-12-07 | 日本電信電話株式会社 | Intraframe predictive coding control method, intraframe predictive coding control apparatus, intraframe predictive coding control program, and computer-readable recording medium storing the program |
-
1997
- 1997-09-05 JP JP24150897A patent/JP3911784B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH1188895A (en) | 1999-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8233543B2 (en) | Method of coding and decoding image | |
EP0679034B1 (en) | Apparatus and method for detecting motion vectors | |
JP2000508127A (en) | Video encoder and decoder using motion-based segmentation and merging | |
US11863783B2 (en) | Artificial intelligence-based image encoding and decoding apparatus and method | |
JPH10322705A (en) | Motion detection and motion compensation prediction circuit | |
JP3283159B2 (en) | Image coding method by software | |
JPH09182082A (en) | Movement compensation prediction encoding method for moving image and device therefor | |
JPS6028392A (en) | Movement interpolation system of dynamic picture signal | |
JP3911784B2 (en) | Image compression apparatus and image compression method | |
JP3355964B2 (en) | Adaptive orthogonal transform mode determination method | |
US6141449A (en) | Coding mode determination system | |
KR20030034923A (en) | Motion vector estimation method and apparatus thereof | |
JP3495040B1 (en) | Digital image encoding / decoding method and digital image encoding / decoding apparatus using the same | |
JPH1023420A (en) | Method and device for detecting movement | |
Erol et al. | Implementation of a fast H. 263+ encoder/decoder | |
KR0152014B1 (en) | Motion Estimation Method in Image Data Compression and Its Apparatus | |
JP3513214B2 (en) | Motion vector detection device | |
JPH09261664A (en) | Current frame prediction device and video signal coding system using the device | |
JPS6239920A (en) | Method and apparatus for forecast coding and decoding of dynamic compensation inter-frame of picture signal | |
JP2574572B2 (en) | Image encoding method and image encoding device | |
JP3230285B2 (en) | Motion vector detection and / or motion compensation device | |
JP2596352B2 (en) | Decimal precision motion vector search device | |
KR100226685B1 (en) | Apparatus for compensating a motion of macroblock by scaling a dc of a macroblock | |
KR970010096B1 (en) | Two-Layer Motion Estimator for Compression Coding of Image Data and Its Method | |
JPH10191347A (en) | Motion detection device, motion detection method, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040108 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060621 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060704 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060904 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20061003 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061130 |
|
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: 20070109 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070122 |
|
LAPS | Cancellation because of no payment of annual fees |