[go: up one dir, main page]

JP3911784B2 - Image compression apparatus and image compression method - Google Patents

Image compression apparatus and image compression method Download PDF

Info

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
Application number
JP24150897A
Other languages
Japanese (ja)
Other versions
JPH1188895A (en
Inventor
安弘 橋本
誠 山田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP24150897A priority Critical patent/JP3911784B2/en
Publication of JPH1188895A publication Critical patent/JPH1188895A/en
Application granted granted Critical
Publication of JP3911784B2 publication Critical patent/JP3911784B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

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】

Figure 0003911784
【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】
Figure 0003911784
【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】
Figure 0003911784
【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】
Figure 0003911784
【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】
Figure 0003911784
【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】
Figure 0003911784
【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】
Figure 0003911784
【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 image compression apparatus 1 having the configuration shown in FIG. The image compression apparatus 1 includes a parameter generation circuit 14 that can collectively generate parameters used for frame / field division determination, quantization control, and motion detection.
[0012]
Specifically, the image compression apparatus 1 includes a calculator 12 that performs a predetermined calculation on an input image signal to obtain a differential image signal (hereinafter simply referred to as “image signal”), and an input image signal or calculator. A switching circuit 13 that switches and outputs the image signal from 12, a parameter generation circuit 14 that generates parameters, a frame / field determination circuit 15 that determines whether to perform frame division or field division, and a result of the determination A frame / field division circuit 16 that performs division processing, a DCT circuit 17 that performs DCT calculation processing, a quantization circuit 18 that performs quantization processing, and an encoding circuit 19 that performs Huffman coding processing, for example. A buffer 20 for temporarily storing the data and a quantization control circuit 22 for controlling the quantization step.
[0013]
Computing unit 12 performs arithmetic processing using an image signal input from the input terminal 11 as an addition signal, an image signal from a motion compensation circuit 28 described later as a subtraction signal, and supplies the calculated image signal to the terminal a of the switching circuit 13. To do.
[0014]
The switching circuit 13 is set to the terminal a when motion compensation is performed as when compressing a P picture or B picture, and is set to terminal b when motion compensation is not performed as when compressing an I picture. The The terminal b is connected to the input terminal 11. Then, the switching circuit 13 supplies the image signal supplied to the terminal a or the terminal b to the parameter generation circuit 14 and the frame / field division circuit 16.
[0015]
The parameter generation circuit 14 generates parameters V1, V2, f, g, D, A, and F based on an image signal from the input terminal 11, an image signal from the switching circuit 13, and an image signal from an adder 25 described later. To do. The parameter generation circuit 14 sets the parameters V1 and V2 to the frame. /field The determination circuit 15 is supplied with parameters D, A and F to the quantization control circuit 22 and parameters f and g are supplied to a motion detection circuit 27 which will be described later.
[0016]
Where parameter generation circuit 14 As shown in FIG. 2, the switching circuit 34 for switching the input signal and the low-frequency component reduced image f mn The Generate low-frequency component reduced image generation circuit 35 and activity component image g mn Quantization control parameters for generating parameters to be used in the activity component image generation circuit 36 for generating etc. and the quantization control circuit 22 Generator circuit 37.
[0017]
The image signal from the input terminal 11 shown in FIG. 1 is supplied to the terminal a of the switching circuit 34 via the terminal 32. Further, the image signal from the adder 25 shown in FIG. 1 is supplied to the terminal b of the switching circuit 34 via the terminal 33. The switching circuit 34 is switched and set every predetermined period, and the image signal supplied to the terminal a or the terminal b is converted into a low-frequency component reduced image generation circuit. 35 And the activity component image generation circuit 36.
[0018]
As shown in FIG. 3, the low-frequency component reduced image generation circuit 35 sequentially extracts a block of 4 pixels × 4 pixels from the image signal, and a pixel a constituting the block ij Average value (low-frequency component reduced image f mn ) Is calculated. This calculation formula is represented by Formula (1).
[0019]
[Expression 1]
Figure 0003911784
[0020]
Then, the low-frequency component reduced image generation circuit 35 receives each low-frequency component reduced image f. mn Are supplied to the activity component image generation circuit 36 and the quantization control parameter generation circuit 37 and output through the terminal 41.
[0021]
The activity component image generation circuit 36 includes an image signal from the switching circuit 34 and a low-frequency component reduced image f. mn In addition, an image signal is supplied from the switching circuit 13 shown in FIG.
[0022]
As shown in FIG. 4, the activity component image generation circuit 36 sequentially extracts blocks of 16 pixels × 16 pixels from the image signal from the terminal 31 shown in FIG. 2, and based on these blocks, frame / field determination coefficients (hereinafter referred to as “frame / field determination coefficient”). , Referred to as “determination coefficient”) V1 and V2 are generated. Further, as shown in FIG. 5, the activity component image generation circuit 36 sequentially extracts blocks of 4 pixels × 4 pixels from the image signal from the switching circuit 34 shown in FIG. Band component reduced image f mn And activity component image g mn Is generated.
[0023]
Here, as shown in FIG. 6, the activity component image generation circuit 36 specifically includes 16 switches 51 to 66, 8 difference absolute value adders 67 to 74, and 8 adders 75. To 82 and a register 83.
[0024]
Further, the activity component image generation circuit 36 includes 16 switches 91 to 106, 8 difference absolute value adders 107 to 114, 8 adders 115 to 122, a register 123, and an adder 124. And a divider 125.
[0025]
First, when obtaining the determination coefficients V1 and V2, the switches 51 to 66 and the switches 91 to 106 are set to the terminal a, and the values of the registers 83 and 123 are set to 0.
[0026]
The difference absolute value adders 67 to 74 are respectively a i0 And a i1 , A i2 And a i3 , ..., a i12 And a i13 , A i14 And a i15 Output the absolute value of the difference. The absolute values of these differences are summed by the adders 75 to 81, and these sum values are input to the register 83 via the adder 82. At this time, as shown in FIG. 4 described above, the register 83 receives the sum of the absolute values of the differences between the odd and even lines in the i column.
[0027]
When such processing is performed in each column, the register 83 receives the sum of the absolute values of the differences between the odd and even lines in one frame. When this sum value is a frame / field coefficient V1, the calculation formula of V1 is expressed by Formula (2).
[0028]
[Expression 2]
Figure 0003911784
[0029]
On the other hand, the difference absolute value adders 107 to 114 are respectively a i0 And a i2 , A i1 And a i3 , ..., a i12 And a i14 , A i13 And a i15 Output the absolute value of the difference. The absolute values of these differences are summed by the adders 115 to 121, and these sum values are input to the register 123 via the adder 122. At this time, as shown in FIG. 4 described above, the register 123 receives the sum of the absolute values of the difference between odd lines and the difference between even lines in the i column.
[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]
Figure 0003911784
[0032]
Next, activity component image g mn , The switches 51 to 66 and the switches 91 to 106 are set to the terminal b.
[0033]
The difference absolute value adders 67 to 74 and 91 to 106 are respectively a p, q And a p / 4, q / 4 , A p + 1, q And a p / 4, q / 4 ... a p + 3, q + 3 And a p / 4, q / 4 The absolute value of the difference between and is output. The absolute values of these differences are summed by adders 75-81, 115-121, 124. The divider 125 divides this total value by 16 to obtain the activity component image g p / 4, q / 4 Is generated and output. This activity component image g p / 4, q / 4 (= G mn ) Is expressed by equation (4).
[0034]
[Expression 4]
Figure 0003911784
[0035]
Thus, the activity component image generation circuit 36 Calculate the determination coefficients V1 and V2 by setting the switches 51 to 66 and the switches 91 to 106 to the terminal a, and easily set the switches 51 to 66 and the switches 91 to 106 to the terminal b. Component image g mn Can also be generated.
[0036]
And activity component image generation circuit 36 Outputs the determination coefficients V1 and V2 via the terminals 38 and 39 shown in FIG. mn Is supplied to the quantization control parameter generation circuit 37 and is further output through the terminal 41.
[0037]
The quantization control parameter generation circuit 37 generates a low-frequency component reduced image f. mn And activity component image g mn The DC component value D, the flatness value F, and the activity value A are generated by performing calculations of Expression (5), Expression (6), and Expression (7) based on the above.
[0038]
[Equation 5]
Figure 0003911784
[0039]
As described above, the parameter generation circuit 14 has the low-frequency component reduced image f necessary for motion vector detection. mn And activity component image g based on this mn Using these values, a DC component value D, a flatness value F, and an activity value A necessary for quantization control can be generated. That is, the parameter generation circuit 14 is used in the frame / field determination circuit 15 and the quantization control circuit 22 and can collectively generate parameters related to each other. Further, the parameter generation circuit 14 can easily generate the determination coefficients V1 and V2 necessary for frame / field determination by setting the switch 51 shown in FIG. 6 to the terminal a.
[0040]
The frame / field determination circuit 15 determines whether the frame is divided into DCT blocks or the field is divided into DCT blocks based on the determination coefficients V1 and V2. Specifically, it is determined whether Expression (8) holds.
[0041]
[Formula 6]
Figure 0003911784
[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 / field determination circuit 15 performs frame division when V1 ≦ V2 + offset holds, and performs frame division when V1 ≦ V2 + offset does not hold. 16 To control. Note that when motion compensation is not performed as in an I picture, offset = 4096, and when motion compensation is performed as in a P picture or B picture, offset = 0.
[0044]
Based on the above determination, the frame / field division circuit 16 divides a frame into DCT blocks and divides a field into DCT blocks for the image signal from the switching circuit 13. As shown in FIG. 8, the frame / field division circuit 16 supplies a DCT block obtained by dividing one frame or a DCT block obtained by dividing one field to the DCT circuit 17.
[0045]
The DCT circuit 17 performs DCT conversion processing on the DCT block and supplies it to the quantization circuit 18. The quantization circuit 18 calculates a quantization coefficient and supplies the quantization coefficient to the encoding circuit 19 and the inverse quantization circuit 23. The encoding circuit 19 performs, for example, Huffman encoding and supplies it to the buffer circuit 20.
[0046]
The buffer circuit 20 temporarily stores the encoded data, supplies the information on the storage amount to the quantization control circuit 22, and outputs a bit stream through the output terminal 21 at a predetermined bit rate.
[0047]
The quantization control circuit 22 controls the data generation amount of the quantization circuit 18 based on the parameters D, A, and F from the parameter generation circuit 14 and the data storage amount of the buffer circuit 20 as shown in Table 1. .
[0048]
[Table 1]
Figure 0003911784
[0049]
For example, when the value of the DC component parameter D increases, the quantization control circuit 22 18 When the value of the quantization coefficient Q generated in step S1 is reduced and the value of the DC component parameter D is reduced, the value of the quantization coefficient Q is increased. When the flatness parameter F is increased, the quantization coefficient Q is increased. When the DC component parameter D is decreased, the quantization coefficient Q is decreased. Further, when the activity value A increases, the value of the quantization coefficient Q is increased, and when the activity value A decreases, the value of the quantization coefficient Q decreases. The quantization control circuit 22 controls the magnitude of the quantization coefficient of the quantization circuit 18 by a combination of these parameters D, F, and A.
[0050]
The image compression apparatus 1 also performs sampling on the inverse quantization circuit 23 that performs inverse quantization processing, the inverse DCT circuit 24 that performs inverse DCT processing, an adder 25, a frame memory 26, and an original image. And a motion detection circuit 27 of a method (hereinafter referred to as “hierarchical search method”) in which a low-frequency component is extracted and a rough motion vector is obtained from the low-frequency component image and then corrected on the original image. A motion compensation circuit 28 that performs motion compensation based on the motion vector thus generated and a switching circuit 29 are provided.
[0051]
The inverse quantization circuit 23 performs an inverse quantization process on the quantization coefficient supplied from the quantization circuit 18 and supplies the DCT coefficient to the inverse DCT circuit 24. The inverse DCT circuit 24 decodes the image signal by performing inverse DCT transform on the DCT coefficient supplied from the inverse quantization circuit 23, and supplies the image signal to the adder 25.
[0052]
The adder 25 adds and synthesizes the image signal supplied from the inverse DCT circuit 24 and the image signal motion-compensated by the motion compensation circuit 28, and supplies the synthesized image signal to the frame memory 26.
[0053]
The frame memory 26 stores the image signal for each block supplied from the adder 25 and supplies the image signal to the motion detection circuit 27 and the motion compensation circuit 28 for each frame.
[0054]
The motion detection circuit 27 detects a two-dimensional motion vector based on signals supplied from the input terminal 11 and the frame memory 26 and supplies the detection result to the motion compensation circuit 28.
[0055]
Here, as shown in FIG. 9, the motion detection circuit 27 specifically includes a switching circuit 134, a frame memory 135, a reduced image block matching calculation circuit 136, an original image block matching calculation circuit 137, and a half-pel calculation. A circuit 138.
[0056]
The parameters f and g from the parameter generation circuit 14 are supplied to the switching circuit 134 via the terminal 131. The switching circuit 134 is switched to the terminal a or the terminal b every predetermined time, and supplies the parameters f and g to the frame memory 135 or the reduced image block matching arithmetic circuit 136.
[0057]
The reduced image block matching operation circuit 136 performs a matching process on the reduced image of the predicted image from the frame memory 135 and the reduced image of the predicted image from the switching circuit 134, calculates a rough value of the motion vector from these images, and calculates the original value. The image block matching operation circuit 137 is supplied.
[0058]
The original image block matching calculation circuit 137 uses the image signal from the input terminal 11 shown in FIG. 1 and the image signal from the frame memory 26 shown in FIG. 1 to perform a rough motion vector from the reduced image block matching calculation circuit 136. With the value of as the center of the search range, a highly accurate motion vector value can be obtained in pixel units from the candidate image signal from the terminal 132 and the input image signal from the terminal 133.
[0059]
The half-pel operation circuit 138 uses the image signal from the input terminal 11 and the image signal from the frame memory 26 to ½ in the vicinity of the motion vector in pixel units obtained by the original image block matching operation circuit 137. A motion vector for each pixel is calculated, and the motion vector is supplied to the motion compensation circuit 28 via the terminal 139.
[0060]
The motion compensation circuit 28 obtains a predicted image signal by performing predetermined motion compensation on the image signal for one frame read from the frame memory 26 based on the motion vector, and obtains the predicted image signal by the above-described calculation. Is supplied to the terminal 12 of the switch 12 and the switching circuit 29.
[0061]
The switching circuit 29 is set to the terminal a when it is necessary to perform motion compensation such as P picture or B picture, and performs motion compensation like I picture. No need Is set to terminal b. The switching circuit 29 supplies the image signal from the motion compensation circuit 28 to the adder 25 when the terminal a is set.
[0062]
Thus, for example, in the case of an I picture, both the switching circuits 12 and 29 are set to the terminal b. The image signal of the I picture is compression encoded by the quantization circuit 18 and the encoding circuit 19 and is output through the terminal 21 and is stored in the frame memory 26.
[0063]
In the case of P picture, switching circuit 13 29 are set to the terminal a. The motion detection circuit 27 detects a motion vector based on the P picture from the input terminal 11 and the I picture from the frame memory 26, and the motion compensation circuit 28 detects the I picture from the frame memory 26 based on the motion vector. Motion compensation and the predicted image signal In the arithmetic unit 12 and the switching circuit 29 Supply. Therefore, the calculator 12 outputs the difference between the input image signal from the input terminal 11 and the predicted image signal. As a result, the P picture is compression encoded via the quantization circuit 18 and the encoding circuit 19 and is output.
[0064]
In case of B picture, switching circuit 13 29 are set to the terminal a. The adder 25 adds and synthesizes the above-described P picture difference image signal supplied from the inverse quantization circuit 24 and the predicted image signal supplied from the motion compensation circuit 28, and generates a P picture image generated thereby. The signal is supplied to the motion detection circuit 27 and the motion compensation circuit 28 via the frame memory 26. The motion detection circuit 27 detects a motion vector based on the B picture from the input terminal 11 and the P picture from the frame memory 26, and the motion compensation circuit 28 detects the P picture from the frame memory 26 based on the motion vector. Motion compensation and the predicted image signal In the arithmetic unit 12 and the switching circuit 29 Supply. Therefore, the arithmetic unit 12 outputs the difference between the input picture signal of the B picture from the input terminal 11 and the predicted picture signal of the B picture. As a result, the B picture is compressed and output via the quantization circuit 18 and the encoding circuit 19 and is output.
[0065]
As described above, the image compression apparatus 1 can easily set parameters used in the frame / field determination circuit 15 and the quantization control circuit 22 and parameters used in the hierarchical search method motion detection circuit 27. By providing the parameter generation circuit 14 that can generate the circuit, the circuit scale can be reduced as compared with the case where the parameter is generated by each of these circuits.
[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 SYMBOLS 1 Image compression apparatus, 14 parameter generation circuit, 15 frame / field determination circuit, 16 frame / field division circuit, 18 quantization circuit, 22 quantization control circuit, 27 motion detection circuit, 28 motion compensation circuit

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記載の画像圧縮装置。In the parameter generation unit, by switching the input of the common processing means, characterized by performing the arithmetic processing for determining the first and second determination coefficient, the calculation processing for generating the activity component image The image compression apparatus according to claim 1 . 動きベクトル検出用パラメータに基づいて大まかな動きベクトルを検出し、この大まかな動きベクトルの値をサーチ範囲の中心として、入力画像信号と候補画像信号とから動きベクトルを検出する動き検出ステップと、
上記動き検出ステップにおいて検出された動きベクトルに基づいて画像信号の動き補償を行う動き補償ステップと、
入力画像信号と上記動き補償ステップにおいて動き補償された画像信号との差分を演算する演算ステップと、
上記演算ステップにおいて演算された画像信号、入力画像信号、上記候補画像信号に基づいて第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. .
上記パラメータ生成ステップでは、共通の演算処理手段を用い、当該演算手段への入力を切り替えることによって、上記第1及び第2の判定係数を求める演算処理と、上記アクティビティ成分画像の生成するための演算処理を行うことを特徴とする請求項3記載の画像圧縮方法。In the parameter generation step, by using a common arithmetic processing means and switching the input to the arithmetic means, arithmetic processing for obtaining the first and second determination coefficients, and arithmetic for generating the activity component image 4. The image compression method according to claim 3, wherein processing is performed.
JP24150897A 1997-09-05 1997-09-05 Image compression apparatus and image compression method Expired - Fee Related JP3911784B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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