JP3877427B2 - Image data compression apparatus and image data expansion apparatus - Google Patents

Image data compression apparatus and image data expansion apparatus Download PDF

Info

Publication number
JP3877427B2
JP3877427B2 JP11912398A JP11912398A JP3877427B2 JP 3877427 B2 JP3877427 B2 JP 3877427B2 JP 11912398 A JP11912398 A JP 11912398A JP 11912398 A JP11912398 A JP 11912398A JP 3877427 B2 JP3877427 B2 JP 3877427B2
Authority
JP
Japan
Prior art keywords
image data
image
data
difference
compression
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
JP11912398A
Other languages
Japanese (ja)
Other versions
JPH11313326A (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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP11912398A priority Critical patent/JP3877427B2/en
Publication of JPH11313326A publication Critical patent/JPH11313326A/en
Application granted granted Critical
Publication of JP3877427B2 publication Critical patent/JP3877427B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、画像データの圧縮装置および伸張装置に関し、特に、監視カメラで撮影した画像を表す画像データの圧縮/伸張に用いることに好適な圧縮装置および伸張装置に関する。
【0002】
【従来の技術】
複数フレームの画像データを電話回線で伝送したり記録装置に記録したりする場合には、原画像のままではデータ量が多すぎるため、圧縮符号化方式を用いてデータ量を削減することが多い。動画像データの符号化方式としては、例えば、H.261方式やMPEG方式などがある。
【0003】
これらの符号化方式では、画像を適当なブロックに分割し、DCT(ディスクリート・コサイン変換)を用いて画像圧縮するフレーム内符号化する手法や、隣接するフレームの間で、ある画像ブロックが次のフレームではどの位置に移動したかを計算して動きベクトルを求め、これを符号化する動き補償によるフレーム間予測符号化を用いる手法が用いられている。
【0004】
【発明が解決しようとする課題】
しかしながら、動き補償によるフレーム間予測符号化では、符号化後の圧縮データの速度としてある程度高いビットレートが確保されていないと、画像のうちの動きのある領域の画像ブロックのみが符号化されるため、動きのある領域はなめらかな画像となるが、背景の動きのない静止した領域の画像ブロックのデータが更新されにくくなる。このため、再生画像は、ブロック状の歪みの目立つ劣化したものとなる。
【0005】
また、このフレーム間予測符号化では、動きベクトルを得るための画像ブロック同士の比較などの演算を行うため、計算量が膨大となる。この機能を実現する装置は、高速な演算処理が必要となり、実現コストが高くなる。
【0006】
そこで、本発明の目的は、動画像の画像データを少ない演算量で高い圧縮効率が得られるように圧縮でき、画像内の静止した領域や動いている領域の有無による画質の劣化を小さく抑えることが可能な画像データ圧縮装置および画像データ伸張装置を提供することにある。
【0007】
【課題を解決するための手段】
上記の問題を解決するため、本発明では、画素単位の画像データを入力され、該画像データを圧縮処理したものである圧縮データを出力する画像データ圧縮装置において、前記入力される画像データから選択された、基準画像を表す画像データが格納される画像記憶手段と、前記入力される画像データと、該画像データと共通の画素に対応する、前記画像記憶手段に格納されている画像データとの間の差分値を表す差分データを求める減算手段と、減算手段で得られる差分データを、前記画像データと共通のデータ形式の差分画像データに変換する差分変換手段と、前記入力される画像データと、差分変換手段で得られる差分画像データとに対し、選択的に圧縮符号化を行って、圧縮データを出力する圧縮手段とを備えることを特徴とする画像データ圧縮装置を提供する。
【0008】
また、本発明では、基準画像を表す画像データを圧縮符号化して得られた圧縮データと、前記基準画像に対する差分の画像を表す差分画像データを圧縮符号化して得られた圧縮データとを入力され、元の画像データを復元する画像データ伸張装置において、入力される圧縮データを伸張復号化して、圧縮符号化前のデータを復元する伸張手段と、伸張復号化により復元された基準画像を表す画像データが格納される画像記憶手段と、伸張復号化により復元された差分画像データを、前記画像データ間の差分値と共通のデータ形式の差分データに変換する変換手段と、変換手段で変換のなされた差分データと、該データと同じ画素に対応する、前記画像記憶手段に格納されている画像データとを加算する加算手段とを備えることを特徴とする画像データ伸張装置を提供する。
【0009】
【発明の実施の形態】
まず、本発明の第1の実施形態に係る圧縮装置および伸張装置について、図1〜図12を用いて説明する。
【0010】
図1は、本発明の第1の実施形態に係る圧縮装置11の構成を示すブロック図である。図示のように、この圧縮装置11は、画像データ入力端子101、画像データが1フレーム分格納される画像メモリ102、基準となる画像(基準画像)の画像データが1フレーム分格納される基準画像メモリ103、画像データ間の差分値を表す差分データを算出する減算器201と、差分データを画像データと共通のデータ形式のデータ(差分画像データ)に変換する差分変換器104、JPEGなどのフレーム内圧縮符号化を行う画像圧縮器105、圧縮データ出力端子106、スイッチ107および108、および、図示しない制御回路を有する。
【0011】
画像データ入力端子101は、例えば、監視カメラに接続され、監視カメラの撮像画像を表す画像データを入力される。この画像データは、画素単位のデータであり、一定の期間毎に1フレーム分入力される。ここで、1フレーム分の画像データは、例えば480行・704列の画素配列や、240行・320列の画素配列などからなる1枚の画像を表す。
【0012】
画像メモリ102は、画像データ入力端子101に入力される画像データを順次に格納され、1フレーム分の画像データを保持する。この格納データは、順次に読み出され、画素単位に出力される。なお、格納データの読み出しは、画像圧縮器105の符号化方式により定まる順序でなされる。
【0013】
基準画像メモリ103は、スイッチ102がON状態の時に、画像メモリ102から読み出された画像データを順次に格納され、1フレーム分の画像データを保持する。この格納データは、順次に読み出され、画素単位に出力される。
【0014】
減算器201は、画像メモリ102から読み出された画像データの値から、基準画像メモリ103から読み出された画像データ(基準画像データ)の値を減算し、その結果を差分データとして出力する。ここで、演算対象となる2つの画像データは、フレーム上で共通の画素に対応するものとなる。
【0015】
なお、図示しない制御回路は、画像データ入力端子101に入力される画像データの同期信号を受けて、画像メモリ102および103、スイッチ107および108、差分変換器104および画像圧縮器105を制御する。画像圧縮器105は、制御回路から入力されるタイミング信号に従い、画像データの取り込みおよび圧縮符号化を行う。
【0016】
この圧縮装置11では、基準画像メモリ103における基準画像の更新を、画像メモリ102から読み出される画像データの各フレーム毎に行う第1の動作モードと、基準画像の更新を一定のフレーム間隔を空けて行う第2の動作モードとを実施することができる。もちろん、いずれか一方の動作モードだけを実施するようにしてもよい。
【0017】
まず、第1の動作モードについて説明する。
【0018】
この動作モードでは、スイッチ108がON状態に保たれ、基準画像の更新が連続的になされる。また、スイッチ107は、最初の1フレーム目の画像データの出力期間のみA側とされ、その後B側に切り替えられる。
【0019】
第1の動作モードにおいて、画像メモリ103から読み出される1フレーム目の画像データは、スイッチ108を通って基準画像メモリ103に格納されるとともに、スイッチ107を通って画像圧縮器105に入力され、圧縮符号化をなされる。そして、圧縮符号化のなされた1フレーム目(基準画像)の圧縮データは、圧縮データ出力端子106から外部に出力される。
【0020】
読み出される2フレーム目の画像データは、スイッチ107を通って減算器201に入力され、基準画像メモリ103内の1フレーム目の対応する画像データとの差分値を計算される。この差分データは、差分変換器104での差分変換処理により差分画像データに変換された後、画像圧縮器105で圧縮符号化をなされる。これと並行して、2フレーム目の画像データは、1フレーム目の対応する画像データの読み出しに続いて、基準画像メモリ103に格納される。そして、圧縮符号化のなされた2フレーム目(差分画像)の圧縮データは、圧縮データ出力端子106から外部に出力される。
【0021】
3フレーム目以降の各フレームの画像データは、2フレーム目の画像データと同様に、基準画像との差分値計算、差分変換処理および圧縮符号化をなされるとともに、基準画像メモリ103に格納されて次のフレームの基準画像となる。そして、圧縮データとなって、圧縮データ出力端子106から外部に出力される。
【0022】
次に、第2の動作モードについて説明する。
【0023】
この動作モードでは、スイッチ108が一定の周期でON状態とOFF状態を繰り返し、ON状態の時に基準画像の更新がなされる。また、スイッチ107は、基準画像の更新がなされる期間にA側とされ、他の期間にはB側に切り替えられる。
【0024】
第2の動作モードにおいて、画像メモリ102から読み出される1フレーム目の画像データは、スイッチ108を通って基準画像メモリ103に格納されるとともに、スイッチ107を通って画像圧縮器105に入力され、圧縮符号化をなされる。以降の一定期間、基準画像メモリ103に格納された画像データは、2フレーム目以降の画像に対する基準画像となる。そして、圧縮符号化のなされた1フレーム目(基準画像)の圧縮データは、圧縮データ出力端子106から出力される。
【0025】
読み出される2フレーム目の画像データは、スイッチ107を通って減算器201に入力され、基準画像メモリ103内の1フレーム目の対応する画像データとの差分値を計算される。この差分データは、差分変換器104での差分変換処理により差分画像データに変換された後、画像圧縮器105で圧縮符号化をなされる。そして、圧縮符号化のなされた2フレーム目(差分画像)の圧縮データは、圧縮データ出力端子106から出力される。
【0026】
3フレーム目以降の各フレームの画像データは、2フレーム目の画像データと同様に、基準画像との差分値計算、差分変換処理および圧縮符号化をなされ、圧縮データとなって、圧縮データ出力端子106より出力される。
【0027】
また、第2の動作モードでは、一定の周期(例えば10個のフレームの読み出しがなされる周期)で基準画像の更新を行う。更新に用いる基準画像がnフレーム目の画像であるとすると、読み出されるnフレーム目の画像データは、上述の1フレーム目の画像データと同様に、画像圧縮器105で圧縮符号化をなされるとともに、基準画像メモリ103に格納されてn+1フレーム目以降の画像に対する基準画像となる。n+1フレーム目以降の各フレームの画像データは、基準画像メモリ103内のnフレーム目の画像データに対する差分値計算、差分変換処理および圧縮符号化をなされ、圧縮データ出力端子106から出力される。
【0028】
次に、差分変換器104について詳しく説明する。
【0029】
差分変換器104は、差分データの値の変化範囲を、画像データの変化範囲に一致させるための差分変換処理を行う。これにより、圧縮装置11では、基準画像および差分画像の圧縮符号化を、共通の画像圧縮器105で少ない画質劣化で行えるようにしている。差分変換器104としては、図2、図4、図9に示す構成による実現が可能である。以下、各構成について順次説明する。
【0030】
図2は、差分変換器104の第1の構成例を示すブロック図である。
【0031】
図中、差分変換器104は、減算器201から出力される差分値を所定のビット幅に正規化する除算器202と、除算器202から出力されたデータに所定のオフセット値を加算して、加算結果を出力するオフセット加算器203とを有する。なお、以下では、画像データの1画素あたりのデータ幅が8ビットであるものとする。
【0032】
画像データのデータ幅が8ビットである場合、画像メモリ102および基準画像メモリ103から出力されるデータは、0から255の範囲の値をとる。一方、減算器201から出力される差分データは、−255から255の範囲の値をとり、データ幅が9ビットとなる。
【0033】
除算器202は、入力された差分データを1ビット右へシフトするなどして2の除算を行う。図5に、除算器202の入力−出力特性を示す。横軸は減算器201から出力される差分値、縦軸は除算器202の出力値である。この除算器202により、差分データは、−127から127の範囲となる8ビットのデータに正規化される。
【0034】
オフセット加算器203は、除算器202で正規化したデータに所定のオフセット値(ここでは127)を加算し、その結果を差分画像データとして出力する。これにより、変化範囲が0〜255の8ビットの差分画像データが得られる。
【0035】
ところで、画像メモリ102内の画像データと、基準画像メモリ103内の画像データとがほぼ同一の画像から得られたものである場合、差分データのヒストグラムは、差分値の0付近がピークとなる分布になる。例えば図3に示すように、差分データは、0付近の正の値と負の値とがランダムに現れるデータになる。ここで、8ビットデータは、符号つきの場合の負の範囲である−127から−1が、符号無しの場合の129から255となるため、正規化した差分データは、画像圧縮器105において、0付近と255付近の値がランダムに現れるデータとして認識されることになる。このような値の画像は、画像の複雑さが大きいデータであり、DCTを用いたJPEGなどの圧縮符号化を行った場合に、画像の劣化が大きくなる。
【0036】
しかし、上述のように圧縮装置11では、画像圧縮器105に入力する差分画像データが0から255の範囲となり、ストグラムにおいて128付近にデータ値が多く分布した画像となるため、画像圧縮器105で圧縮符号化しても、画像(差分画像データ)の劣化が小さく抑えられる。
【0037】
なお、図2の例では、減算処理、正規化処理、オフセット値加算処理の順で処理を行っているが、同等の結果を得られる範囲で処理の順序は任意に入れ替えることができる。
【0038】
図4は、差分変換器104の第2の構成例を示すブロック図である。
【0039】
図示の差分変換器104は、変換テーブル401と、変換器402と、オフセット加算器203とを有する。変換テーブル401には、差分値と、これに対する出力値とが予め登録されている。変換器402は、減算器201から入力された差分値に対応する出力値を変換テーブル401から読み出してオフセット加算器203に出力する。オフセット加算器203は、図2で説明したものと同じ機能を持つ。
【0040】
例えば、画像データ入力端子101に入力される画像データは、アナログビデオ信号をデジタルデータ化したものである場合、元の映像が静止したものであっても、A/D変換の誤差などによりフレームごとにデータ値に微妙なばらつきが生じる。このばらつきは、差分画像データの圧縮符号化により得られる圧縮データの冗長度を大きくする。このため、図4の差分変換器104では、小さい誤差成分を抑圧できるように、変換テーブル401の登録値を定めている。
【0041】
図6に、変換テーブル401に登録される変換器402の入力−出力特性の第1の例を示す。図中、横軸は減算器201から入力される差分値、縦軸は出力値を示している。図6の特性では、入力値が−2以上+2以下の時、出力値が0となるため、ノイズによる入力値の変動を抑圧することができる。これにより、図4の差分変換器から出力される差分画像データは、図2の差分変換器に比べ、画像の複雑さが小さくなり、画像圧縮により得られる圧縮データのデータサイズが低減される。
【0042】
図7に、変換テーブル401の入力−出力特性の第2の例を示す。なお、図7の特性も、図6と同様に出力値が離散的に変化するが、図には簡略化のため、特性を平均的な変化を示す直線で示している。図7の特性では、入力値が0を中心とする所定の範囲−limから+limにある時の出力値の平均的な傾きが、−limから+limよりも外側の範囲に比べて小さくなっている。つまり、この特性によれば、−limから+limの範囲における画像の変化分が差分画像データに現れにくくなる。したがって、limの値を適切に定めることによって、変化が気にならない程度の小さい画像変化分が差分画像データに現れるのを抑制することができる。また、これにより、図7の変換テーブルで得た差分画像データは、図6による差分画像データよりも、画像圧縮を行ったときの圧縮データのサイズを小さくすることができる。
【0043】
図8に、変換テーブル401の入力−出力特性の第3の例を示す。図示の特性では、差分値が所定の入力範囲−limから+limの時には、出力値が0となり、画像変化分が差分画像データに反映されない。これにより、この範囲内の画像変化分は、画像圧縮時に生成される符号量が少なくなるので圧縮データのサイズを小さくすることができる。
【0044】
図9は、差分変換器104の第3の構成例を示すブロック図である。
【0045】
図示の差分変換器104は、オフセット付変換テーブル901と、変換器402とからなる。オフセット付変換テーブル901では、差分値と組で登録される出力値が、オフセット値(例えば127)を予め加算されたものとなっている。つまり、変換器402からはオフセット値加算後の差分画像データが出力されることになる。
【0046】
次に、画像圧縮器105について説明する。
【0047】
画像圧縮器105は、画像データの圧縮率を切り替える機能を有する。そして、入力される画像データが基準画像であるか否かによって圧縮率を切り替える。この切替は、スイッチ107の切替と同期して行われる。
【0048】
基準画像と新規入力画像とから求めた差分画像データは、上記画像間の変化部分において画像の複雑さが大きくなる。このため、差分画像データは、基準画像の画像データよりも画像の複雑さが大きくなりやすい。そして、画像圧縮器で差分画像データを圧縮するときに、基準画像と同程度の圧縮率で圧縮を行うと、画像の変化部分での画像の劣化が大きくなる。
【0049】
これを改善するため、画像圧縮器105では、差分画像データを圧縮するときの圧縮率を、基準画像を圧縮するときの圧縮率よりも小さくすることにより、画像圧縮による画質劣化が小さくなるようにする。
【0050】
DCTを用いた画像圧縮では、DCT演算によって得た各周波数成分の係数値を所定の量子化テーブルによって量子化した後に符号化を行う。例えば、JPEG方式による画像圧縮では、この量子化テーブルの値が大きいほど、量子化が粗くなり画像データの圧縮率は高くなるが、画質の劣化は大きくなる。
【0051】
画像圧縮器105の圧縮方式としてDCTを用いている場合には、基準画像用と差分画像用にそれぞれ量子化テーブルを用意して、量子化テーブルの係数値は、差分画像用の係数値の方が、基準画像用の対応する係数値よりも小さくなるようにする。これにより、差分画像では基準画像よりも全周波数成分で細かく量子化されるようになり、量子化誤差による画像の劣化を小さくすることができる。
【0052】
1つの量子化テーブルを用いて上記の機能を実現することもできる。この場合には、量子化テーブルを基準画像データの圧縮用として用い、その各係数値に例えば50%など1よりも小さい所定の比率を乗算したものを差分画像データ用の系数値として用いるようにする。この手法には、必要な量子化テーブルが1つで済むという利点がある。
【0053】
次に、本発明の第1の実施形態に係る伸張装置について説明する。
【0054】
図10は、図1に示した圧縮装置11で生成された圧縮データを復元するための伸張装置12の構成を示すブロック図である。図示のように、この伸張装置12は、圧縮データ入力端子1001、画像伸張器1002、1フレーム分の画像データが格納される画像メモリ1003、基準画像を表す画像データが1フレーム分格納される基準画像メモリ1004、画像データの合成を行う合成演算器1005、画像データ出力端子1006、スイッチ1007、108および109、および、図示しない制御回路を有する。
【0055】
圧縮データ入力端子1001には、図1の圧縮装置11で生成された圧縮データが入力される。なお、入力される圧縮データは、例えば、電話回線などの通信路や通信装置を介して受信されたものや、記録媒体で再生されたものである。
【0056】
画像伸張器1002は、圧縮データ入力端子1001に入力される圧縮データに対し伸張復号化を行い、図1の画像圧縮器105で圧縮される前の基準画像データおよび差分画像データを復元する。
【0057】
基準画像メモリ1004には、基準画像を表す画像データが格納される。この画像データは、画像伸張器1002で復元されたもの、または、合成演算器1005で合成されたものである。そして、この格納データは、伸張装置12の出力を取り込む装置により決る順序で読み出され、出力される。
【0058】
画像メモリ103には、画像伸張器1002で復元された差分画像を表す差分画像データを順次に格納される。そして、この格納データは読み出され、出力される。
【0059】
合成演算器1005は、画像メモリ1003から出力される差分画像の画像データと、基準画像メモリ1004から出力される基準画像の画像データとを用いて合成演算処理を行い、演算結果の画像データを出力する。ここで、合成演算に用いる2つの画像データは、フレーム上の同じ画素位置に対応したものとなる。
【0060】
なお、図示しない制御回路は、画像伸長器1002から受けるタイミング信号に応じて、画像メモリ1003および1004、スイッチ1008および1009、合成演算器1005を制御する。
【0061】
伸張装置12では、図1の圧縮装置11と逆の手順で元の画像データの復元がなされる。また、この伸張装置12では、圧縮装置11の各動作モードに対応する2種類の動作を行う。
【0062】
入力される圧縮データが圧縮装置11の第1の動作モードで生成されたものである場合、伸張装置12は以下の動作を行う。
【0063】
画像伸張器1002から1フレーム目の画像データ(基準画像データ)が出力される場合には、スイッチ1007および1008が共にA側に切り替えられ、スイッチ1009がOFF状態とされる。これにより、1フレーム目の画像データは、基準メモリ1004に順次格納されるとともに、画像データ出力端子1006から外部に出力される。
【0064】
1フレーム目の画像データの出力が終了すると、スイッチ1007および1008が共にB側に切り替えられ、スイッチ1009がON状態とされる。これにより、画像伸張器1002から出力される2フレーム目の画像データ(差分画像データ)は、画像メモリ1003に順次格納される。続いて、基準画像メモリ1004内の1フレーム目の基準画像データと、画像メモリ1003内の2フレーム目の差分画像データとが読み出され、画素毎に合成演算器1005に入力される。そして、合成演算器1005の処理により、圧縮装置11に入力された元の画像データが復元される。復元された画像データは、画像データ出力端子1006から出力されるとともに、スイッチ1009を通して基準メモリ1004に順次格納され、3フレーム目の差分画像に対する基準画像となる。
【0065】
3フレーム目以降の各フレームの画像データは、2フレーム目の画像データと同様に、画像メモリ1003に一旦格納されてから、基準画像との合成演算処理をなされる。そして、合成演算処理で復元された画像データは、画像データ出力端子1006に出力されるとともに、基準メモリ1004に順次格納され、次のフレームの差分画像に対する基準画像となる。
【0066】
入力される圧縮データが図1の圧縮装置の第2の動作モードで生成されたものである場合、伸張装置は以下の動作を行う。この動作では、スイッチ1009がOFF状態固定とされる。
【0067】
画像伸張器1002から基準画像を表す画像データのフレームが出力される場合には、スイッチ1007および1008が共にA側に切り替えられ、この画像データは、基準メモリ1004に順次格納されるとともに、画像データ出力端子1006から出力される。
【0068】
画像伸張器1002から差分画像データのフレームが出力される場合には、スイッチ1007および1008が共にB側に切り替えられ、この差分画像の画像データは、画像メモリ1003に順次格納される。続いて、基準画像メモリ1004に格納されている基準画像データと、画像メモリ1003に格納されている差分画像データとが順次読み出され、画素単位に合成演算器1005に入力される。そして、合成演算器1005の処理により、元の画像データが復元され、スイッチ1008を通って画像データ出力端子1006から出力される。
【0069】
ここで、圧縮データ入力端子1001に入力される圧縮データが基準画像データおよび差分画像データのいずれに対応するものであるかは、圧縮装置11が、出力する圧縮データのフレームの先頭部分などに付加する識別データにより識別される。伸張装置12はこの識別データを検出して動作の切り替えを行う。
【0070】
次に、伸張装置11の合成演算器1005について詳しく説明する。合成演算器1005では、図1の減算器201および差分変換器104でなされる処理と逆の手順で画像データの復元を行う。
【0071】
図11は、伸張装置11の合成演算器1005の第1の構成例を示すブロック図である。
【0072】
図11の合成演算器1005は、入力端子1101および1102、オフセット値を減算するオフセット減算器1103、2倍の演算を行う乗算器1104、加算器1105、および、制限器1106から構成される。
【0073】
入力端子1101には基準画像メモリ1004から読み出された基準画像データが入力され、入力端子1102には画像メモリ1003から読み出された差分画像データが入力される。
【0074】
オフセット減算器1103は、入力端子1102の差分画像データから、圧縮装置の差分変換器104で加算された所定のオフセット値(例えば128)を減算して、減算結果である差分値を出力する。
【0075】
乗算器1104は、オフセット減算器1103からの差分値を1ビット左にシフトするなどして、2倍の値とすることで、圧縮装置11の除算器202あるいは変換テーブル401により1/2倍される前の差分値を復元し、出力する。
【0076】
加算器1105は、乗算器1104から出力される差分値と、入力端子1101に入力される基準画像データとを加算して、加算結果の画像データを出力する。
【0077】
ここで、画像圧縮器105の圧縮方式がJPEGなど非可逆圧縮である場合、画像伸張処理後の画像データには劣化が生じており、加算器1105で基準画像と差分画像とを合成したときに、画像データは0よりも小さい値や、255よりも大きい値となる場合がある。
【0078】
このため、制限器1106では、加算器1105から出力される画像データの値の範囲を正規のビット数の範囲に制限する処理を行う。具体的には、制限器1106は、入力された値が0から255の範囲内の場合はその値をそのまま出力し、入力された値が0よりも小さい場合は0を出力し、255よりも大きい場合は255を出力する。
【0079】
なお、図11の例では、減算処理の後、正規化処理、オフセット値加算処理を行っているが、同等な結果を得られる範囲で演算処理の順序は入れ替えることができる。
【0080】
図12は、図10の合成演算器1005の第2の構成例を示すブロック図である。
【0081】
図示の合成演算器1005は、入力端子1101および1102、逆変換テーブル1203、変換器1204、加算器1105、および、制限器1106により構成される。
【0082】
逆変換テーブル1203には、入力される差分画像データの値と、それに対応する差分値とが予め登録されている。変換器1204は、入力端子1102に入力される差分画像データの値に対応する差分値を、変換テーブル1203から読み出して出力する。
【0083】
逆変換テーブル1203の登録により定まる入力−出力特性は、図1の圧縮装置11の差分変換器104の入力−出力特性と逆の特性となる。これにより、変換器1204からは、差分変換器104に入力される前の差分値を復元した値のデータが出力されることになる。
【0084】
変換器1204から出力される差分値は、図11の構成と同様に、加算器1105で、対応する画素の基準画像データと加算された後、制限器1106で値を制限され、出力される。
【0085】
以上で説明したように、本実施形態の圧縮装置11および伸張装置12によれば、動画像の画像データを少ない演算量で高い圧縮効率が得られるように画像圧縮でき、画像内の静止した領域や動いている領域の有無による画質の劣化を小さく抑えることが可能となる。また、差分変換器104によるデータ変換により、減算器201の出力する差分値を直接圧縮符号化する場合に比べて、圧縮データのデータサイズを小さくすることができる。
【0086】
次に、本発明の第2の実施形態について、図13および図14を用いて説明する。
【0087】
上述の第1の実施形態(図1、図10)では、入力端子101に入力される画像データがそのまま圧縮装置11の基準画像とされ、伸張装置12ではその基準画像データを圧縮および伸張した結果が基準画像とされる。画像圧縮器105の圧縮方式が非可逆圧縮方式である場合、伸張装置12で画像を伸張したときに画像の劣化が生じるため、圧縮装置11で使用する基準画像と、伸張装置12で使用する基準画像とは同一とならなくなり、画像伸張装置で差分画像の伸張および合成を行った場合に若干の画像劣化が生じる。また、第1の実施形態の伸張装置12では、基準画像の生成を差分画像データを用いた合成演算により生成する場合に基準画像の劣化が累積され易くなる。
【0088】
そこで、本実施形態(図13、図14)では、圧縮装置にさらに画像伸張器を設け、入力される画像データを画像圧縮器および画像伸張器で処理した結果を基準画像として登録するようにしている。これにより、圧縮装置側と伸張装置側とでそれぞれ使用する基準画像が同一となり、基準画像の違いによる画質の劣化は起らなくなる。
【0089】
また、本実施形態では、伸張装置では伸張したデータの内、基準画像に対応するものだけを基準画像として登録するようにし、圧縮装置では基準画像の更新タイミングを判定する手段を設けて、必要に応じて基準画像の更新を行うようにする。これにより、伸張装置における基準画像の劣化の累積も起らなくなる。
【0090】
図13は、本実施形態の圧縮装置21の構成を示すブロック図である。図示のように、この圧縮装置21は、画像データ入力端子1301、画像メモリ1302、基準画像メモリ1303、減算器1312、差分変換器1304、画像圧縮器1305、画像伸張器1306、圧縮データ出力端子1307、スイッチ1308および1309、カウンタ回路1310、および、検出器1311を有する。
【0091】
これらの構成要素は、第1の実施形態(図1)で説明した同名称のものと同じ機能を有する。画像伸張器1306としては、対応する伸張装置(図14)のものと同じものを用いる。また、差分変換器1304としては、例えば、図2、図4または図9に示したものを使用する。
【0092】
カウンタ回路1310および検出器1311は、画像圧縮器1305に接続され、基準画像の更新タイミングを判定する。そして、判定結果に応じてスイッチ1308および1309を切り替える制御を行う。カウンタ回路1310は、圧縮符号化したデータのフレーム数を計数する機能を有し、検出器1311は、圧縮符号化した圧縮データのデータサイズを取得する機能を有する。
【0093】
まず、圧縮装置21での基準画像を圧縮する手順について説明する。
【0094】
基準画像を圧縮する場合には、スイッチ1308がA側に切り替えられ、スイッチ1309がONとされる。画像データ入力端子1301から入力された画像データは、画像メモリ1302に順次に格納され、圧縮符号化で定めている順序で順次に読み出される。画像メモリ1302から読み出された画像データは、スイッチ1308を通って画像圧縮器1305に入力され、圧縮符号化されて圧縮データとなる。この圧縮データは、圧縮データ出力端子1307に出力されるとともに、スイッチ1309を通って画像伸張器1306に入力され、ここで伸張復号化されて画像データに戻される。そして、伸張した画像データは、新たな基準画像として、基準画像メモリ1303に格納される。以上の動作は、少なくとも1フレーム目の画像データについて実施される。
【0095】
次に、圧縮装置21における差分画像を圧縮する手順について説明する。
【0096】
差分画像を圧縮する場合には、上述の手順で基準画像メモリ1303に基準画像が格納されていることになる。まず、スイッチ1308はB側に切り替えられ、スイッチ1309はOFFにされる。画像データ入力端子1301から入力された画像データは画像メモリ1302に順次に格納され、圧縮符号化で定めている順序で順次に読み出される。画像メモリ102から読み出された画像データは、スイッチ1308を通って減算器201に入力される。これと並行して、該画像データと共通の画素に対応する基準画像メモリ103内の基準画像データが読み出され、減算器1312に入力される。減算器1312では、基準画像データと、画像メモリ102から読み出された画像データとの間で減算を行って、その差分値を差分データとして出力する。この差分データは、差分変換器104で画像データと同じ形式のデータに変換され、差分画像データとして出力される。そして、差分画像データは、画像圧縮器1305で圧縮符号化され、圧縮データとして圧縮データ出力端子1307に出力される。以降、基準画像の更新がなされるまで、新たなフレームに対し以上の動作が実施される。
【0097】
次に、カウンタ回路1310および検出器1304による基準画像の更新方法について説明する。
【0098】
カウンタ回路1310は、画像圧縮器1305で圧縮符号化した差分画像データのフレーム数を計数する。差分画像データが1フレーム圧縮される毎に1ずつカウント値を大きくし、基準画像の画像データが圧縮される時にカウント値をゼロにクリアする。そして、カウンタ回路1310は、カウント値が予め定めた値(例えば9)になると、スイッチ1308をA側に切り替え、スイッチ1309をONにして、画像メモリ1302から読み出される新たなフレームに対し、上述の基準画像を圧縮する手順の動作がなされるようにする。基準画像メモリ1303の基準画像の更新が終了すると、カウンタ回路1310は、カウント値を0にし、スイッチ1308をBに切り替え、スイッチ1309をOFFに戻して、上述の基準画像を圧縮する手順の動作がなされるようにする。
【0099】
検出器1304は、基準画像の圧縮がなされる毎に圧縮データのデータサイズを画像圧縮器1305から読み出して記憶する。また、検出器1304は、差分画像データが圧縮されると圧縮データのデータサイズを画像圧縮器1305から読み出す。そして、差分画像の圧縮データのサイズと、記憶している基準画像の圧縮データのサイズとを比較する。差分画像の圧縮データのサイズの方が大きい場合、検出器1304は、画像圧縮器1305に格納されている出力前の圧縮データを消去し、スイッチ1308をAに切り替え、スイッチ1309をONにして、画像メモリ1302内の画像データが再び先頭から読み出されるようにする制御を行う。そして、これにより読み出される画像データに対し、上述の基準画像を圧縮する手順の動作がなされ、基準画像メモリ1303の基準画像が更新される。基準画像の更新が終了すると、検出器1304は、カウンタ回路1310のカウンタ回路値を0にクリアすると共に、スイッチ1308をB側、スイッチ1309をOFFに切り替えて、上述の差分画像データを圧縮する手順の動作がなされるようにする。
【0100】
なお、差分画像の圧縮データサイズが基準画像の圧縮データサイズよりも大きいことを検出した時には、画像圧縮器1305内の圧縮データはそのまま圧縮データ出力端子1307に出力し、次に読み出されるフレームの画像データに対して、上述の基準画像を圧縮する手順の動作を行うようにしてもよい。
【0101】
画像メモリ1302から読み出される画像の変化が、基準画像に対してある程度以上大きくなると、差分変換器1304により得た差分画像データを圧縮したときのデータサイズは、差分をとらずに元の画像をそのまま画像圧縮器1305で直接圧縮したときのデータサイズよりも大きくなってしまう。本実施形態の圧縮器21では、上記の検出器1311を用いた制御により、この問題を解消し、圧縮データのデータサイズを小さく抑えることができる。
【0102】
図14は、図13の圧縮装置で生成された圧縮データを元に戻す伸張装置22の構成を示すブロック図である。
【0103】
図示のように、この伸張装置22は、圧縮データ入力端子1401、画像伸張器1402、画像メモリ1403、基準画像メモリ1404、合成演算器1405、画像データ出力端子1406、スイッチ1407および1408を有する。これらは、第1の実施形態で説明したもの(図10)と同じ機能を有する。合成演算器1402としては、図11または図12に示したものを使用する。
【0104】
ただし、本実施形態の伸張装置22では、画像伸張器1402で伸張された画像データの内、基準画像を表すもののみを用いて、基準画像メモリ1303の基準画像を更新する。
【0105】
この画像伸張装置22では、圧縮データが基準画像データを圧縮したものである場合は、スイッチ1407およびスイッチ1408を共にA側に切り替える。そして、圧縮データ入力端子1401から入力された圧縮データを画像伸張器1402により伸張して元の画像に復元し、基準画像メモリ1404に記憶するとともに、画像データ出力端子1406へ出力する。
【0106】
圧縮データが差分画像データを圧縮したものである場合は、スイッチ1407およびスイッチ1408を共にB側に切り替える。そして、圧縮データ入力端子1401から入力された圧縮データを画像伸張器1402により伸張して、画像メモリ1403に記憶する。続いて、基準画像メモリ1404に記憶されている基準画像データと画像メモリ1403に記憶されているデータとを順次読み出して合成演算器1405に入力して両画像を合成して元の画像に復元し、画像データ出力端子1406へ出力する。
【0107】
ここで、圧縮データ入力端子1401に入力される圧縮データが基準画像データおよび差分画像データのいずれに対応するものであるかは、圧縮装置21が、出力する圧縮データのフレームの先頭部分などに付加する識別データにより識別される。伸張装置22はこの識別データを検出して動作の切り替えを行う。
【0108】
【発明の効果】
以上で説明したように、本発明によれば、動画像の画像データを少ない演算量で高い圧縮効率が得られるように圧縮でき、画像内の静止した領域や動いている領域の有無による画質の劣化を小さく抑えることが可能な画像データ圧縮装置および画像データ伸張装置を提供することができる。
【図面の簡単な説明】
【図1】本発明の実施形態に係る圧縮装置の構成を示すブロック図。
【図2】差分演算器の第1の構成例を示すブロック図。
【図3】差分演算器の除算器の出力する差分データの一例を示す図。
【図4】差分演算器の第2の構成例を示すブロック図。
【図5】図2の差分演算器の入力−出力特性を示した図。
【図6】図4の差分演算器の入力−出力特性の第1の例を示した図。
【図7】図4の差分演算器の入力−出力特性の第2の例を示した図。
【図8】図4の差分演算器の入力−出力特性の第3の例を示した図。
【図9】差分演算器の第3の構成例を示すブロック図。
【図10】本発明の第1の実施形態に係る伸張装置の構成を示すブロック図。
【図11】合成演算器の第1の構成例を示すブロック図。
【図12】合成演算器の第2の構成例を示すブロック図。
【図13】本発明の第2の実施形態に係る圧縮装置の構成を示すブロック図。
【図14】本発明の第2の実施形態に係る伸張装置の構成を示すブロック図。
【符号の説明】
11、21…圧縮装置、12、22…伸長装置、102、1003、1302、1403…画像メモリ、103、1004、1303、1404…基準画像メモリ、104、1304…差分変換器、105、1305…画像圧縮器、1005、1405…合成演算器、1002、1306…画像伸張器、201、1312…減算器、202、1104…除算器、1105…加算器、203…オフセット加算器、901…オフセット付変換テーブル、401…変換テーブル、402…変換器、1103…オフセット減算器、1203…逆変換テーブル、1106…制限器。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image data compression apparatus and expansion apparatus, and more particularly to a compression apparatus and expansion apparatus suitable for use in compression / expansion of image data representing an image taken by a surveillance camera.
[0002]
[Prior art]
When transmitting multiple frames of image data over a telephone line or recording on a recording device, the amount of data is too large if it is the original image, so the amount of data is often reduced using a compression encoding method. . As an encoding method of moving image data, for example, H.264 is used. There are the H.261 system and the MPEG system.
[0003]
In these encoding methods, an image is divided into appropriate blocks, and an intra-frame encoding method that compresses an image using DCT (discrete cosine transform), or an image block between the adjacent frames is A method using inter-frame predictive coding based on motion compensation that calculates a motion vector by calculating a position in a frame and obtains a motion vector is used.
[0004]
[Problems to be solved by the invention]
However, in inter-frame predictive coding based on motion compensation, if a bit rate that is high to some extent is not secured as the speed of the compressed data after coding, only the image block in the moving area of the image is coded. The moving area becomes a smooth image, but the data of the image block in the stationary area where the background does not move is difficult to be updated. For this reason, the reproduced image is a noticeably deteriorated block-shaped distortion.
[0005]
In addition, in this inter-frame predictive coding, calculation such as comparison between image blocks for obtaining a motion vector is performed, so that the calculation amount becomes enormous. An apparatus that realizes this function requires high-speed arithmetic processing, resulting in high realization costs.
[0006]
Therefore, an object of the present invention is to compress image data of moving images so as to obtain a high compression efficiency with a small amount of calculation, and to suppress deterioration in image quality due to the presence or absence of a stationary region or a moving region in the image. It is an object of the present invention to provide an image data compression device and an image data expansion device capable of performing the above.
[0007]
[Means for Solving the Problems]
In order to solve the above problems, in the present invention, an image data compression apparatus that receives image data in pixel units and outputs compressed data obtained by compressing the image data is selected from the input image data. Image storage means for storing image data representing a reference image, input image data, and image data stored in the image storage means corresponding to pixels common to the image data. Subtraction means for obtaining difference data representing a difference value therebetween, difference conversion means for converting difference data obtained by the subtraction means into difference image data in a data format common to the image data, and the input image data And a compression means for selectively compressing and encoding the difference image data obtained by the difference conversion means and outputting the compressed data. To provide a data compression apparatus.
[0008]
In the present invention, compressed data obtained by compressing and encoding image data representing a reference image and compressed data obtained by compressing and encoding differential image data representing a difference image with respect to the reference image are input. In an image data decompression device for restoring original image data, decompression means for decompressing input compressed data and restoring data before compression coding, and an image representing a reference image restored by decompression decoding Image storage means for storing data, conversion means for converting difference image data restored by decompression decoding into difference data in a common data format with a difference value between the image data, and conversion performed by the conversion means And an addition means for adding the difference data and the image data stored in the image storage means corresponding to the same pixel as the data. To provide a data expansion apparatus.
[0009]
DETAILED DESCRIPTION OF THE INVENTION
First, a compression device and a decompression device according to a first embodiment of the present invention will be described with reference to FIGS.
[0010]
FIG. 1 is a block diagram showing a configuration of a compression apparatus 11 according to the first embodiment of the present invention. As shown in the figure, the compression device 11 includes an image data input terminal 101, an image memory 102 for storing image data for one frame, and a reference image for storing image data of a reference image (reference image) for one frame. Memory 103, subtractor 201 for calculating difference data representing a difference value between image data, difference converter 104 for converting difference data into data (difference image data) in a data format common to image data, frames such as JPEG It has an image compressor 105 that performs internal compression encoding, a compressed data output terminal 106, switches 107 and 108, and a control circuit (not shown).
[0011]
The image data input terminal 101 is connected to, for example, a surveillance camera and receives image data representing a captured image of the surveillance camera. This image data is data in units of pixels, and is input for one frame every fixed period. Here, the image data for one frame represents one image having a pixel arrangement of 480 rows and 704 columns, a pixel arrangement of 240 rows and 320 columns, and the like, for example.
[0012]
The image memory 102 sequentially stores image data input to the image data input terminal 101 and holds image data for one frame. This stored data is read sequentially and output in units of pixels. The stored data is read in an order determined by the encoding method of the image compressor 105.
[0013]
The reference image memory 103 sequentially stores image data read from the image memory 102 when the switch 102 is in an ON state, and holds image data for one frame. This stored data is read sequentially and output in units of pixels.
[0014]
The subtracter 201 subtracts the value of the image data (reference image data) read from the reference image memory 103 from the value of the image data read from the image memory 102, and outputs the result as difference data. Here, the two pieces of image data to be calculated correspond to the common pixels on the frame.
[0015]
A control circuit (not shown) controls the image memories 102 and 103, the switches 107 and 108, the difference converter 104, and the image compressor 105 in response to the synchronization signal of the image data input to the image data input terminal 101. The image compressor 105 takes in image data and performs compression encoding in accordance with a timing signal input from the control circuit.
[0016]
In the compression apparatus 11, the reference image is updated in the reference image memory 103 for each frame of the image data read from the image memory 102, and the reference image is updated at a certain frame interval. The second operation mode to be performed can be performed. Of course, only one of the operation modes may be performed.
[0017]
First, the first operation mode will be described.
[0018]
In this operation mode, the switch 108 is kept in the ON state, and the reference image is continuously updated. The switch 107 is set to the A side only during the output period of the first frame of image data, and then switched to the B side.
[0019]
In the first operation mode, the image data of the first frame read from the image memory 103 is stored in the reference image memory 103 through the switch 108 and input to the image compressor 105 through the switch 107 for compression. Encoded. Then, the compressed data of the first frame (reference image) subjected to compression encoding is output to the outside from the compressed data output terminal 106.
[0020]
The read image data of the second frame is input to the subtractor 201 through the switch 107, and a difference value with the corresponding image data of the first frame in the reference image memory 103 is calculated. The difference data is converted into difference image data by difference conversion processing in the difference converter 104, and then compressed and encoded in the image compressor 105. In parallel with this, the image data of the second frame is stored in the reference image memory 103 following the reading of the corresponding image data of the first frame. The compressed data of the second frame (difference image) that has been compression-encoded is output to the outside from the compressed data output terminal 106.
[0021]
Similar to the image data of the second frame, the image data of each frame after the third frame is subjected to difference value calculation, difference conversion processing, and compression coding, and stored in the reference image memory 103. This is the reference image for the next frame. Then, the compressed data is output to the outside from the compressed data output terminal 106.
[0022]
Next, the second operation mode will be described.
[0023]
In this operation mode, the switch 108 repeats the ON state and the OFF state at regular intervals, and the reference image is updated when the switch 108 is in the ON state. The switch 107 is set to the A side during the period when the reference image is updated, and is switched to the B side during other periods.
[0024]
In the second operation mode, the image data of the first frame read from the image memory 102 is stored in the reference image memory 103 through the switch 108 and input to the image compressor 105 through the switch 107 for compression. Encoded. The image data stored in the reference image memory 103 for a certain period thereafter becomes a reference image for the second and subsequent frames. The compressed data of the first frame (reference image) that has been compression-encoded is output from the compressed data output terminal 106.
[0025]
The read image data of the second frame is input to the subtractor 201 through the switch 107, and a difference value with the corresponding image data of the first frame in the reference image memory 103 is calculated. The difference data is converted into difference image data by difference conversion processing in the difference converter 104, and then compressed and encoded in the image compressor 105. Then, the compressed data of the second frame (difference image) subjected to the compression encoding is output from the compressed data output terminal 106.
[0026]
Similarly to the image data of the second frame, the image data of each frame after the third frame is subjected to difference value calculation, difference conversion processing and compression encoding with the reference image, and becomes compressed data, which is a compressed data output terminal. 106.
[0027]
In the second operation mode, the reference image is updated at a constant cycle (for example, a cycle in which 10 frames are read). Assuming that the reference image used for the update is the nth frame image, the read nth frame image data is compressed and encoded by the image compressor 105 in the same manner as the first frame image data described above. The reference image is stored in the reference image memory 103 and becomes a reference image for images after the (n + 1) th frame. The image data of each frame after the (n + 1) th frame is subjected to difference value calculation, difference conversion processing and compression encoding with respect to the image data of the nth frame in the reference image memory 103, and is output from the compressed data output terminal 106.
[0028]
Next, the difference converter 104 will be described in detail.
[0029]
The difference converter 104 performs difference conversion processing for making the change range of the difference data value coincide with the change range of the image data. As a result, the compression device 11 can perform compression encoding of the reference image and the difference image with little image quality degradation by the common image compressor 105. The difference converter 104 can be realized by the configuration shown in FIGS. 2, 4, and 9. Hereinafter, each configuration will be sequentially described.
[0030]
FIG. 2 is a block diagram illustrating a first configuration example of the difference converter 104.
[0031]
In the figure, the difference converter 104 normalizes the difference value output from the subtractor 201 to a predetermined bit width, and adds a predetermined offset value to the data output from the divider 202. And an offset adder 203 that outputs the addition result. In the following, it is assumed that the data width per pixel of the image data is 8 bits.
[0032]
When the data width of the image data is 8 bits, the data output from the image memory 102 and the reference image memory 103 takes a value in the range of 0 to 255. On the other hand, the difference data output from the subtracter 201 takes a value in the range of −255 to 255, and the data width is 9 bits.
[0033]
The divider 202 divides 2 by shifting the input difference data to the right by 1 bit. FIG. 5 shows the input-output characteristics of the divider 202. The horizontal axis represents the difference value output from the subtractor 201, and the vertical axis represents the output value of the divider 202. The divider 202 normalizes the difference data into 8-bit data in the range of −127 to 127.
[0034]
The offset adder 203 adds a predetermined offset value (127 here) to the data normalized by the divider 202, and outputs the result as difference image data. Thereby, 8-bit difference image data having a change range of 0 to 255 is obtained.
[0035]
By the way, when the image data in the image memory 102 and the image data in the reference image memory 103 are obtained from substantially the same image, the histogram of the difference data has a distribution in which the vicinity of 0 of the difference value has a peak. become. For example, as shown in FIG. 3, the difference data is data in which a positive value near 0 and a negative value appear randomly. Here, since 8-bit data has a negative range of -127 to -1 in the case of being signed and 129 to 255 in the case of being unsigned, the normalized difference data is 0 in the image compressor 105. The values near and around 255 are recognized as data that appear at random. An image having such a value is data having a large image complexity, and when the compression encoding such as JPEG using DCT is performed, the image is greatly deteriorated.
[0036]
However, as described above, in the compression device 11, the difference image data input to the image compressor 105 is in the range of 0 to 255, and an image in which many data values are distributed in the vicinity of 128 in the strogram is generated. Even with compression encoding, degradation of an image (difference image data) can be suppressed to a small level.
[0037]
In the example of FIG. 2, processing is performed in the order of subtraction processing, normalization processing, and offset value addition processing. However, the processing order can be arbitrarily changed as long as an equivalent result can be obtained.
[0038]
FIG. 4 is a block diagram illustrating a second configuration example of the difference converter 104.
[0039]
The illustrated difference converter 104 includes a conversion table 401, a converter 402, and an offset adder 203. In the conversion table 401, a difference value and an output value corresponding to the difference value are registered in advance. The converter 402 reads out an output value corresponding to the difference value input from the subtracter 201 from the conversion table 401 and outputs it to the offset adder 203. The offset adder 203 has the same function as that described in FIG.
[0040]
For example, when the image data input to the image data input terminal 101 is an analog video signal converted into digital data, even if the original video is still, even if the original video is still, it is different for each frame due to an A / D conversion error, etc. There are subtle variations in data values. This variation increases the redundancy of the compressed data obtained by compressing the differential image data. For this reason, in the difference converter 104 of FIG. 4, the registered value of the conversion table 401 is determined so that a small error component can be suppressed.
[0041]
FIG. 6 shows a first example of input-output characteristics of the converter 402 registered in the conversion table 401. In the figure, the horizontal axis indicates the difference value input from the subtractor 201, and the vertical axis indicates the output value. In the characteristics shown in FIG. 6, when the input value is −2 or more and +2 or less, the output value becomes 0. Therefore, fluctuation of the input value due to noise can be suppressed. Thereby, the difference image data output from the difference converter in FIG. 4 is less complex than the difference converter in FIG. 2, and the data size of the compressed data obtained by image compression is reduced.
[0042]
FIG. 7 shows a second example of the input-output characteristics of the conversion table 401. Note that the output values of the characteristics in FIG. 7 also change discretely in the same manner as in FIG. 6, but for the sake of simplicity, the characteristics are indicated by straight lines indicating average changes. In the characteristic of FIG. 7, the average slope of the output value when the input value is in the predetermined range −lim to + lim centered at 0 is smaller than the range outside −lim to + lim. . That is, according to this characteristic, the change in the image in the range from −lim to + lim is unlikely to appear in the difference image data. Therefore, by appropriately determining the value of lim, it is possible to suppress a small image change amount that does not bother the change from appearing in the difference image data. Accordingly, the difference image data obtained by the conversion table of FIG. 7 can be made smaller in size of the compressed data when image compression is performed than the difference image data of FIG.
[0043]
FIG. 8 shows a third example of input-output characteristics of the conversion table 401. In the illustrated characteristics, when the difference value is within a predetermined input range −lim to + lim, the output value is 0, and the image change is not reflected in the difference image data. As a result, the amount of code generated during image compression is reduced for the image change within this range, so that the size of the compressed data can be reduced.
[0044]
FIG. 9 is a block diagram illustrating a third configuration example of the difference converter 104.
[0045]
The illustrated difference converter 104 includes a conversion table with offset 901 and a converter 402. In the conversion table with offset 901, the output value registered as a pair with the difference value is obtained by adding an offset value (for example, 127) in advance. That is, the converter 402 outputs the difference image data after adding the offset value.
[0046]
Next, the image compressor 105 will be described.
[0047]
The image compressor 105 has a function of switching the compression rate of image data. Then, the compression rate is switched depending on whether or not the input image data is a reference image. This switching is performed in synchronization with the switching of the switch 107.
[0048]
In the difference image data obtained from the reference image and the new input image, the complexity of the image increases at the change portion between the images. For this reason, the difference image data tends to have a larger image complexity than the image data of the reference image. When the difference image data is compressed by the image compressor, if the compression is performed at the same compression rate as that of the reference image, the deterioration of the image at the changed portion of the image becomes large.
[0049]
In order to improve this, the image compressor 105 reduces the compression rate when compressing the difference image data to be smaller than the compression rate when compressing the reference image so that the image quality deterioration due to the image compression is reduced. To do.
[0050]
In image compression using DCT, the coefficient value of each frequency component obtained by DCT calculation is quantized using a predetermined quantization table and then encoded. For example, in JPEG image compression, the larger the quantization table value, the coarser the quantization and the higher the compression rate of the image data, but the greater the image quality degradation.
[0051]
When DCT is used as the compression method of the image compressor 105, a quantization table is prepared for each of the reference image and the difference image, and the coefficient value of the quantization table is equal to the coefficient value for the difference image. Is smaller than the corresponding coefficient value for the reference image. As a result, the difference image is more finely quantized with all frequency components than the reference image, and image degradation due to quantization errors can be reduced.
[0052]
The above function can also be realized by using one quantization table. In this case, the quantization table is used for compression of the reference image data, and each coefficient value multiplied by a predetermined ratio smaller than 1 such as 50% is used as the system value for the difference image data. To do. This method has the advantage that only one quantization table is required.
[0053]
Next, the decompression apparatus according to the first embodiment of the present invention will be described.
[0054]
FIG. 10 is a block diagram showing a configuration of the decompressing device 12 for restoring the compressed data generated by the compressing device 11 shown in FIG. As shown in the figure, this decompression device 12 includes a compressed data input terminal 1001, an image decompressor 1002, an image memory 1003 in which image data for one frame is stored, and a reference in which image data representing a reference image is stored for one frame. It has an image memory 1004, a composition calculator 1005 for synthesizing image data, an image data output terminal 1006, switches 1007, 108 and 109, and a control circuit (not shown).
[0055]
Compressed data generated by the compression device 11 of FIG. 1 is input to the compressed data input terminal 1001. The input compressed data is, for example, data received via a communication path such as a telephone line or a communication device, or data reproduced on a recording medium.
[0056]
The image decompressor 1002 performs decompression decoding on the compressed data input to the compressed data input terminal 1001, and restores the reference image data and the difference image data before being compressed by the image compressor 105 in FIG.
[0057]
The reference image memory 1004 stores image data representing the reference image. This image data is restored by the image decompressor 1002 or synthesized by the synthesis calculator 1005. Then, the stored data is read out and output in an order determined by a device that captures the output of the decompression device 12.
[0058]
In the image memory 103, differential image data representing the differential image restored by the image expander 1002 is sequentially stored. This stored data is read out and output.
[0059]
The composition calculator 1005 performs composition calculation processing using the image data of the difference image output from the image memory 1003 and the image data of the reference image output from the reference image memory 1004, and outputs the image data of the calculation result. To do. Here, the two image data used for the composition calculation correspond to the same pixel position on the frame.
[0060]
A control circuit (not shown) controls the image memories 1003 and 1004, the switches 1008 and 1009, and the composition calculator 1005 in accordance with the timing signal received from the image decompressor 1002.
[0061]
The decompression device 12 restores the original image data in the reverse procedure to the compression device 11 in FIG. The decompressing device 12 performs two types of operations corresponding to the respective operation modes of the compressing device 11.
[0062]
If the input compressed data is generated in the first operation mode of the compression device 11, the decompression device 12 performs the following operation.
[0063]
When image data (reference image data) of the first frame is output from the image expander 1002, both the switches 1007 and 1008 are switched to the A side, and the switch 1009 is turned off. As a result, the image data of the first frame is sequentially stored in the reference memory 1004 and is output to the outside from the image data output terminal 1006.
[0064]
When the output of the first frame of image data is completed, both the switches 1007 and 1008 are switched to the B side, and the switch 1009 is turned on. As a result, the second frame of image data (difference image data) output from the image expander 1002 is sequentially stored in the image memory 1003. Subsequently, the reference image data of the first frame in the reference image memory 1004 and the difference image data of the second frame in the image memory 1003 are read out and input to the synthesis calculator 1005 for each pixel. Then, the original image data input to the compression device 11 is restored by the processing of the composition calculator 1005. The restored image data is output from the image data output terminal 1006 and is sequentially stored in the reference memory 1004 through the switch 1009 and becomes a reference image for the difference image of the third frame.
[0065]
Similarly to the image data of the second frame, the image data of each frame after the third frame is temporarily stored in the image memory 1003 and then subjected to a composition calculation process with the reference image. Then, the image data restored by the synthesis calculation process is output to the image data output terminal 1006 and is sequentially stored in the reference memory 1004, and becomes a reference image for the difference image of the next frame.
[0066]
When the input compressed data is generated in the second operation mode of the compression apparatus of FIG. 1, the decompression apparatus performs the following operation. In this operation, the switch 1009 is fixed to the OFF state.
[0067]
When a frame of image data representing the reference image is output from the image expander 1002, both the switches 1007 and 1008 are switched to the A side, and the image data is sequentially stored in the reference memory 1004 and the image data Output from the output terminal 1006.
[0068]
When a frame of difference image data is output from the image expander 1002, both the switches 1007 and 1008 are switched to the B side, and the image data of the difference image is sequentially stored in the image memory 1003. Subsequently, the reference image data stored in the reference image memory 1004 and the difference image data stored in the image memory 1003 are sequentially read out and input to the composition calculator 1005 in units of pixels. Then, the original image data is restored by the processing of the composition calculator 1005, and is output from the image data output terminal 1006 through the switch 1008.
[0069]
Here, whether the compressed data input to the compressed data input terminal 1001 corresponds to the reference image data or the difference image data is added to the head portion of the frame of the compressed data to be output by the compression device 11 or the like. Identified by the identification data. The decompression device 12 detects this identification data and switches the operation.
[0070]
Next, the composition calculator 1005 of the decompression apparatus 11 will be described in detail. The composition calculator 1005 restores the image data in the reverse procedure to the processing performed by the subtractor 201 and the difference converter 104 in FIG.
[0071]
FIG. 11 is a block diagram illustrating a first configuration example of the composition calculator 1005 of the decompression apparatus 11.
[0072]
11 includes input terminals 1101 and 1102, an offset subtractor 1103 that subtracts an offset value, a multiplier 1104 that performs a double operation, an adder 1105, and a limiter 1106.
[0073]
The reference image data read from the reference image memory 1004 is input to the input terminal 1101, and the difference image data read from the image memory 1003 is input to the input terminal 1102.
[0074]
The offset subtractor 1103 subtracts a predetermined offset value (for example, 128) added by the difference converter 104 of the compression device from the difference image data at the input terminal 1102, and outputs a difference value as a subtraction result.
[0075]
The multiplier 1104 is doubled by the divider 202 or the conversion table 401 of the compression device 11 by shifting the difference value from the offset subtractor 1103 to the left by 1 bit, for example, to make it a double value. Restore the difference value before output.
[0076]
The adder 1105 adds the difference value output from the multiplier 1104 and the reference image data input to the input terminal 1101, and outputs the addition result image data.
[0077]
Here, when the compression method of the image compressor 105 is irreversible compression such as JPEG, the image data after the image expansion processing has deteriorated, and when the adder 1105 combines the reference image and the difference image. The image data may have a value smaller than 0 or a value larger than 255.
[0078]
For this reason, the limiter 1106 performs processing for limiting the range of the value of the image data output from the adder 1105 to the range of the normal number of bits. Specifically, the limiter 1106 outputs the value as it is when the input value is in the range of 0 to 255, outputs 0 when the input value is smaller than 0, and outputs more than 255. If larger, 255 is output.
[0079]
In the example of FIG. 11, normalization processing and offset value addition processing are performed after the subtraction processing, but the order of the arithmetic processing can be changed within a range where an equivalent result can be obtained.
[0080]
FIG. 12 is a block diagram illustrating a second configuration example of the composition calculator 1005 of FIG.
[0081]
The illustrated composition calculator 1005 includes input terminals 1101 and 1102, an inverse conversion table 1203, a converter 1204, an adder 1105, and a limiter 1106.
[0082]
In the inverse conversion table 1203, the value of the input difference image data and the corresponding difference value are registered in advance. The converter 1204 reads the difference value corresponding to the value of the difference image data input to the input terminal 1102 from the conversion table 1203 and outputs the difference value.
[0083]
The input-output characteristic determined by the registration of the inverse conversion table 1203 is opposite to the input-output characteristic of the differential converter 104 of the compression device 11 in FIG. As a result, the converter 1204 outputs data of a value obtained by restoring the difference value before being input to the difference converter 104.
[0084]
The difference value output from the converter 1204 is added to the reference image data of the corresponding pixel by the adder 1105 in the same manner as in the configuration of FIG.
[0085]
As described above, according to the compression device 11 and the decompression device 12 of the present embodiment, image data of a moving image can be compressed so that high compression efficiency can be obtained with a small amount of computation, and a static region in the image It is possible to suppress degradation of image quality due to the presence or absence of moving areas. Also, the data size of the compressed data can be reduced by the data conversion by the difference converter 104, compared to the case where the difference value output from the subtracter 201 is directly compressed and encoded.
[0086]
Next, a second embodiment of the present invention will be described with reference to FIGS.
[0087]
In the first embodiment (FIGS. 1 and 10) described above, the image data input to the input terminal 101 is directly used as the reference image of the compression device 11, and the expansion device 12 compresses and expands the reference image data. Is a reference image. When the compression method of the image compressor 105 is an irreversible compression method, image degradation occurs when the image is decompressed by the decompression device 12, and therefore, the reference image used by the compression device 11 and the reference used by the decompression device 12. The image is not the same as the image, and a slight image deterioration occurs when the difference image is expanded and combined by the image expansion device. Further, in the decompression device 12 of the first embodiment, when the reference image is generated by the synthesis operation using the difference image data, the deterioration of the reference image is likely to be accumulated.
[0088]
Therefore, in this embodiment (FIGS. 13 and 14), an image expander is further provided in the compression device, and the result of processing input image data by the image compressor and the image expander is registered as a reference image. Yes. As a result, the reference images used on the compression device side and the decompression device side are the same, and image quality deterioration due to the difference in the reference images does not occur.
[0089]
In this embodiment, the decompression device registers only the decompressed data corresponding to the reference image as the reference image, and the compression device provides means for determining the update timing of the reference image. Accordingly, the reference image is updated. As a result, the accumulation of deterioration of the reference image in the decompression apparatus does not occur.
[0090]
FIG. 13 is a block diagram illustrating a configuration of the compression device 21 according to the present embodiment. As shown in the figure, the compression device 21 includes an image data input terminal 1301, an image memory 1302, a reference image memory 1303, a subtractor 1312, a difference converter 1304, an image compressor 1305, an image expander 1306, and a compressed data output terminal 1307. , Switches 1308 and 1309, a counter circuit 1310, and a detector 1311.
[0091]
These components have the same functions as those having the same names described in the first embodiment (FIG. 1). As the image decompressor 1306, the same one as that of the corresponding decompression device (FIG. 14) is used. Further, as the differential converter 1304, for example, the one shown in FIG. 2, FIG. 4 or FIG. 9 is used.
[0092]
The counter circuit 1310 and the detector 1311 are connected to the image compressor 1305 and determine the update timing of the reference image. And control which switches switch 1308 and 1309 according to a determination result is performed. The counter circuit 1310 has a function of counting the number of frames of compression-encoded data, and the detector 1311 has a function of acquiring the data size of the compression-encoded compressed data.
[0093]
First, a procedure for compressing the reference image in the compression device 21 will be described.
[0094]
When compressing the reference image, the switch 1308 is switched to the A side and the switch 1309 is turned ON. Image data input from the image data input terminal 1301 is sequentially stored in the image memory 1302 and sequentially read out in the order determined by compression encoding. The image data read from the image memory 1302 is input to the image compressor 1305 through the switch 1308, and is compressed and encoded to become compressed data. The compressed data is output to a compressed data output terminal 1307 and is input to an image expander 1306 through a switch 1309, where it is decompressed and decoded and returned to image data. The expanded image data is stored in the reference image memory 1303 as a new reference image. The above operation is performed on at least the first frame of image data.
[0095]
Next, a procedure for compressing the difference image in the compression device 21 will be described.
[0096]
When the difference image is compressed, the reference image is stored in the reference image memory 1303 by the above-described procedure. First, the switch 1308 is switched to the B side, and the switch 1309 is turned OFF. The image data input from the image data input terminal 1301 is sequentially stored in the image memory 1302 and sequentially read out in the order determined by the compression encoding. Image data read from the image memory 102 is input to the subtractor 201 through the switch 1308. In parallel with this, the reference image data in the reference image memory 103 corresponding to the pixels common to the image data is read and input to the subtractor 1312. The subtractor 1312 performs subtraction between the reference image data and the image data read from the image memory 102, and outputs the difference value as difference data. The difference data is converted into data in the same format as the image data by the difference converter 104 and output as difference image data. The difference image data is compression-encoded by the image compressor 1305 and is output to the compressed data output terminal 1307 as compressed data. Thereafter, the above operation is performed on a new frame until the reference image is updated.
[0097]
Next, a reference image updating method using the counter circuit 1310 and the detector 1304 will be described.
[0098]
The counter circuit 1310 counts the number of frames of difference image data compressed and encoded by the image compressor 1305. Each time the difference image data is compressed by one frame, the count value is increased by one, and the count value is cleared to zero when the image data of the reference image is compressed. Then, when the count value reaches a predetermined value (for example, 9), the counter circuit 1310 switches the switch 1308 to the A side, turns on the switch 1309, and performs the above-described processing for the new frame read from the image memory 1302. The operation of the procedure for compressing the reference image is performed. When the update of the reference image in the reference image memory 1303 is completed, the counter circuit 1310 sets the count value to 0, switches the switch 1308 to B, returns the switch 1309 to OFF, and performs the above-described procedure of compressing the reference image. To be made.
[0099]
Each time the reference image is compressed, the detector 1304 reads the data size of the compressed data from the image compressor 1305 and stores it. Further, when the differential image data is compressed, the detector 1304 reads the data size of the compressed data from the image compressor 1305. Then, the size of the compressed data of the difference image is compared with the size of the stored compressed data of the reference image. When the size of the compressed data of the difference image is larger, the detector 1304 deletes the compressed data before output stored in the image compressor 1305, switches the switch 1308 to A, turns on the switch 1309, Control is performed so that the image data in the image memory 1302 is read again from the top. Then, the above-described procedure for compressing the reference image is performed on the image data read out, and the reference image in the reference image memory 1303 is updated. When the update of the reference image is completed, the detector 1304 clears the counter circuit value of the counter circuit 1310 to 0, and switches the switch 1308 to the B side and the switch 1309 to OFF to compress the above-described difference image data. So that
[0100]
When it is detected that the compressed data size of the difference image is larger than the compressed data size of the reference image, the compressed data in the image compressor 1305 is output to the compressed data output terminal 1307 as it is, and the image of the next frame to be read out You may make it perform the operation | movement of the procedure which compresses the above-mentioned reference | standard image with respect to data.
[0101]
When the change in the image read from the image memory 1302 becomes larger than the reference image, the data size when the difference image data obtained by the difference converter 1304 is compressed is the same as the original image without taking the difference. It becomes larger than the data size when directly compressed by the image compressor 1305. In the compressor 21 of the present embodiment, this problem can be solved and the data size of the compressed data can be reduced by control using the detector 1311 described above.
[0102]
FIG. 14 is a block diagram showing a configuration of the decompression device 22 that restores the compressed data generated by the compression device of FIG.
[0103]
As shown in the figure, the decompressing device 22 has a compressed data input terminal 1401, an image decompressing device 1402, an image memory 1403, a reference image memory 1404, a compositing calculator 1405, an image data output terminal 1406, and switches 1407 and 1408. These have the same functions as those described in the first embodiment (FIG. 10). As the compositing calculator 1402, the one shown in FIG. 11 or FIG. 12 is used.
[0104]
However, in the decompression device 22 of the present embodiment, the reference image in the reference image memory 1303 is updated using only the image data decompressed by the image decompressor 1402 that represents the reference image.
[0105]
In this image expansion device 22, when the compressed data is compressed reference image data, both the switch 1407 and the switch 1408 are switched to the A side. The compressed data input from the compressed data input terminal 1401 is decompressed by the image decompressor 1402 and restored to the original image, stored in the reference image memory 1404, and output to the image data output terminal 1406.
[0106]
When the compressed data is the compressed difference image data, both the switch 1407 and the switch 1408 are switched to the B side. Then, the compressed data input from the compressed data input terminal 1401 is decompressed by the image decompressor 1402 and stored in the image memory 1403. Subsequently, the reference image data stored in the reference image memory 1404 and the data stored in the image memory 1403 are sequentially read out and input to the composition calculator 1405 to combine both images and restore the original image. And output to the image data output terminal 1406.
[0107]
Here, whether the compressed data input to the compressed data input terminal 1401 corresponds to the reference image data or the difference image data is added to the head portion of the frame of the compressed data to be output by the compression device 21 or the like. Identification data. The decompression device 22 detects this identification data and switches the operation.
[0108]
【The invention's effect】
As described above, according to the present invention, it is possible to compress moving image data so that high compression efficiency can be obtained with a small amount of computation, and image quality depending on the presence or absence of a stationary region or a moving region in the image. It is possible to provide an image data compression device and an image data expansion device capable of suppressing deterioration to a small extent.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a compression apparatus according to an embodiment of the present invention.
FIG. 2 is a block diagram showing a first configuration example of a difference calculator.
FIG. 3 is a diagram illustrating an example of difference data output from a divider of a difference calculator.
FIG. 4 is a block diagram showing a second configuration example of the difference calculator.
FIG. 5 is a diagram showing input-output characteristics of the difference calculator of FIG. 2;
6 is a diagram showing a first example of input-output characteristics of the difference calculator of FIG. 4;
7 is a diagram showing a second example of input-output characteristics of the difference calculator of FIG. 4;
FIG. 8 is a diagram showing a third example of input-output characteristics of the difference calculator of FIG. 4;
FIG. 9 is a block diagram showing a third configuration example of the difference calculator.
FIG. 10 is a block diagram showing a configuration of a decompression apparatus according to the first embodiment of the present invention.
FIG. 11 is a block diagram showing a first configuration example of a composition calculator.
FIG. 12 is a block diagram showing a second configuration example of the composition calculator.
FIG. 13 is a block diagram showing a configuration of a compression device according to a second embodiment of the present invention.
FIG. 14 is a block diagram showing a configuration of a decompression apparatus according to a second embodiment of the present invention.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 11, 21 ... Compression apparatus, 12, 22 ... Decompression apparatus, 102, 1003, 1302, 1403 ... Image memory, 103, 1004, 1303, 1404 ... Reference image memory, 104, 1304 ... Difference converter, 105, 1305 ... Image Compressor, 1005, 1405 ... composite computing unit, 1002, 1306 ... image decompressor, 201, 1312 ... subtractor, 202, 1104 ... divider, 1105 ... adder, 203 ... offset adder, 901 ... conversion table with offset , 401 ... conversion table, 402 ... converter, 1103 ... offset subtractor, 1203 ... inverse conversion table, 1106 ... limiter.

Claims (12)

画素単位の画像データを入力され、該画像データを圧縮処理したものである圧縮データを出力する画像データ圧縮装置において、
前記入力される画像データから選択された、基準画像を表す画像データが格納される画像記憶手段と、
前記入力される画像データと、該画像データと共通の画素に対応する、前記画像記憶手段に格納されている画像データとの間の差分値を表す差分データを求める減算手段と、
減算手段で得られる差分データを、該差分データのデータ幅と変化範囲が、前記画像データのデータ幅と変化範囲に一致する差分画像データに変換する差分変換手段と、
前記入力される画像データと、差分変換手段で得られる差分画像データとに対し、選択的に圧縮符号化を行って、圧縮データを出力する圧縮手段と、を備え、
前記差分変換手段は、減算手段で得られた差分値を正規化して予め定めたビット幅の値とする正規化手段と、正規化した値に予め定めたオフセット値を加算するオフセット加算手段とを有すること、を特徴とする画像データ圧縮装置。
In an image data compression apparatus that receives image data in pixel units and outputs compressed data obtained by compressing the image data.
Image storage means for storing image data representing a reference image selected from the input image data;
Subtracting means for obtaining difference data representing a difference value between the input image data and image data stored in the image storage means corresponding to a pixel common to the image data;
Difference conversion means for converting difference data obtained by the subtraction means into difference image data in which the data width and change range of the difference data match the data width and change range of the image data;
Compression means that selectively compresses and encodes the input image data and the difference image data obtained by the difference conversion means, and outputs compressed data ;
The difference converting means includes a normalizing means for normalizing the difference value obtained by the subtracting means to obtain a predetermined bit width value, and an offset adding means for adding a predetermined offset value to the normalized value. And an image data compression device.
画素単位の画像データを入力され、該画像データを画像圧縮処理したものである圧縮データを出力する画像データ圧縮装置において、
基準画像を表す画像データが格納される画像記憶手段と、
前記入力される画像データと、該画像データと共通の画素に対応する、前記画像記憶手段に格納されている画像データとの間の差分値を表す差分データを求める減算手段と、
減算手段で得られる差分データを、該差分データのデータ幅と変化範囲が、前記画像データのデータ幅と変化範囲に一致する差分画像データに変換する差分変換手段と、
前記入力される画像データと、差分変換手段で得られる差分画像データとに対し、選択的に圧縮符号化を行って、圧縮データを出力する圧縮手段と、
基準画像を表す画像データを圧縮符号化したものである圧縮データの伸張復号化を行う伸張手段と、を備え、
前記差分変換手段は、減算手段で得られた差分値を正規化して予め定めたビット幅の値とする正規化手段と、正規化した値に予め定めたオフセット値を加算するオフセット加算手段と、を有し、
前記画像記憶手段には、前記伸張復号化をなされた画像データが格納される
ことを特徴とする画像データ圧縮装置。
In an image data compression device that receives image data in pixel units and outputs compressed data that is an image compression process of the image data.
Image storage means for storing image data representing a reference image;
Subtracting means for obtaining difference data representing a difference value between the input image data and image data stored in the image storage means corresponding to a pixel common to the image data;
Difference conversion means for converting difference data obtained by the subtraction means into difference image data in which the data width and change range of the difference data match the data width and change range of the image data;
Compression means for selectively compressing and encoding the input image data and the difference image data obtained by the difference conversion means, and outputting compressed data;
Decompression means for performing decompression decoding of compressed data that is compression-encoded image data representing a reference image,
The difference converting means normalizes the difference value obtained by the subtracting means to obtain a predetermined bit width value, offset adding means for adding a predetermined offset value to the normalized value, Have
An image data compression apparatus, wherein the image storage means stores the image data subjected to the decompression decoding.
請求項1または2記載の画像データ圧縮装置において、
前記正規化手段は、入力値とそれに対応する出力値とが予め登録されている変換テーブルと、減算手段で得られた差分値を入力値として、前記変換テーブルから対応する出力値を読み出し、出力する変換手段とを有することを特徴とする画像データ圧縮装置。
The image data compression apparatus according to claim 1 or 2,
The normalizing means reads out the corresponding output value from the conversion table using the conversion table in which the input value and the corresponding output value are registered in advance, and the difference value obtained by the subtracting means as the input value, and outputs it. And an image data compression apparatus.
請求項記載の画像データ圧縮装置において、
前記変換テーブル内の入力値と出力値との対応関係の特性は、入力値の変化に対する出力値の変化量が、0を中心とする入力値の所定の範囲に比べ、他の範囲の方が大きくなることを特徴とする画像データ圧縮装置。
The image data compression apparatus according to claim 3 .
The characteristic of the correspondence relationship between the input value and the output value in the conversion table is that the change amount of the output value with respect to the change of the input value is more in the other range than the predetermined range of the input value centered on 0. An image data compression apparatus characterized by being enlarged.
請求項1記載の画像データ圧縮装置において、
前記圧縮手段は、画像データの圧縮率を切り替える機能を有し、前記圧縮手段で圧縮符号化をなされるデータが基準画像を表す画像データであるか否かを検出し、基準画像を表すものでない場合には、前記圧縮手段の圧縮率が小さくなるように制御する手段をさらに備えることを特徴とする画像データ圧縮装置。
The image data compression apparatus according to claim 1.
The compression means has a function of switching the compression rate of image data, detects whether the data subjected to compression encoding by the compression means is image data representing a reference image, and does not represent a reference image In such a case, the image data compression apparatus further comprises means for controlling the compression means to reduce the compression rate.
請求項記載の画像データ圧縮装置において、
前記圧縮手段は、DCT(ディスクリート・コサイン変換)による圧縮符号化を行うものであり、圧縮符号化する画像データが基準画像を表すものでない場合には、DCTで使用する量子化テーブルの係数値として、基準画像を表すものである場合よりも小さい係数値を使用することを特徴とする画像データ圧縮装置。
The image data compression apparatus according to claim 5 .
The compression means performs compression coding by DCT (discrete cosine transform), and when the image data to be compression-coded does not represent a reference image, as a coefficient value of a quantization table used in DCT An image data compression apparatus using a smaller coefficient value than that representing a reference image.
請求項1または2記載の画像データ圧縮装置において、
圧縮符号化を行った差分画像データのフレームの連続数を計数するカウント手段をさらに有し、前記連続数が予め定めた値となった場合に、画像記憶手段に格納する画像データの更新が行われることを特徴とする画像データ圧縮装置。
The image data compression apparatus according to claim 1 or 2,
The image processing apparatus further includes a counting unit that counts the number of consecutive frames of differential image data that has been subjected to compression encoding, and updates the image data stored in the image storage unit when the number of consecutive frames reaches a predetermined value. An image data compression apparatus.
請求項1または2記載の画像データ圧縮装置において、
圧縮符号化を行った差分画像データのデータサイズが、圧縮符号化を行った画像データのデータサイズよりも大きくなったことを検出する検出手段をさらに有し、圧縮符号化を行った差分画像データのデータサイズが、圧縮符号化を行った画像データのデータサイズよりも大きくなった場合に、画像記憶手段に格納する画像データの更新が行われることを特徴とする画像データ圧縮装置。
The image data compression apparatus according to claim 1 or 2,
The differential image data that has further been subjected to the compression encoding, further comprising detection means for detecting that the data size of the differential image data that has been subjected to the compression encoding is larger than the data size of the image data that has been subjected to the compression encoding. The image data compression apparatus is characterized in that the image data stored in the image storage means is updated when the data size becomes larger than the data size of the image data subjected to compression encoding.
基準画像を現す画像データを圧縮符号化して得られた圧縮データと、前記基準画像の画像データと他の画像データとの差分値を表すデータを、該データのデータ幅と変化範囲が、前記画像データのデータ幅と変化範囲に一致するように変換したものを圧縮符号化して得られた圧縮データと、を入力され、元の画像データを復元する画像データ伸張装置において、
入力される圧縮データを伸張復号化して、圧縮符号化前のデータを復元する伸張手段と、
伸張復号化により復元された基準画像を表す画像データが格納される画像記憶手段と、
伸張復号化により復元された差分画像データを、該差分画像データのデータ幅と変化範囲が、前記基準画像の画像データと前記他の画像データの差分値を表すデータのデータ幅と変化範囲と一致する差分データに変換する変換手段と
変換手段で変換のなされた差分データと、該データと同じ画素に対応する、前記画像記憶手段に格納されている画像データと、を加算する加算手段と、を備え
前記変換手段は、入力される画像データから予め定めたオフセット値を減算するオフセット減算手段と、オフセット減算手段の減算結果に、予め定めた値を乗算する乗算手段とを有することを特徴とする画像データ伸張装置。
Compressed data obtained by compressing and encoding image data representing a reference image, and data representing a difference value between image data of the reference image and other image data, the data width and change range of the data being the image In an image data decompression device that receives compressed data obtained by compressing and encoding data that has been converted to match the data width and change range, and restores the original image data,
Decompression means for decompressing and decoding input compressed data and restoring data before compression encoding;
Image storage means for storing image data representing a reference image restored by decompression decoding;
The difference image data restored by decompression decoding has the same data width and change range as the difference image data and the data width and change range of the data representing the difference value between the image data of the reference image and the other image data. Conversion means for converting to difference data, and addition means for adding the difference data converted by the conversion means and the image data stored in the image storage means corresponding to the same pixel as the data, Prepared ,
The conversion means includes an offset subtraction means for subtracting a predetermined offset value from input image data, and a multiplication means for multiplying a subtraction result of the offset subtraction means by a predetermined value. Data decompressor.
請求項記載の伸長装置において、
前記画像記憶手段の格納データは、前記加算手段の加算結果の画像データに更新されることを特徴とする画像データ伸張装置。
The expansion device according to claim 9 , wherein
The image data decompression apparatus, wherein the data stored in the image storage means is updated to image data as a result of addition by the addition means.
請求項または10記載の画像データ伸張装置において、
前記加算手段の加算結果の画像データに対し、データ値の変化範囲を予め定めた範囲に制限する処理を行う制限手段をさらに備えることを特徴とする画像データ伸張装置。
The image data expansion device according to claim 9 or 10 ,
An image data decompressing apparatus, further comprising a limiting unit that performs a process of limiting a change range of a data value to a predetermined range for the image data obtained as a result of the addition by the adding unit.
請求項または10記載の画像データ伸張装置において、前記変換手段は、入力値とそれに対応する出力値とが予め登録されている変換テーブルと、オフセッ ト減算手段の減算結果を入力値として、前記変換テーブルから対応する出力値を読み出し、出力する変換手段とを有することを特徴とする画像データ伸長装置。11. The image data decompression apparatus according to claim 9 or 10 , wherein the conversion means uses the conversion table in which input values and corresponding output values are registered in advance and the subtraction result of the offset subtraction means as input values. An image data decompression apparatus comprising: a conversion unit that reads out and outputs a corresponding output value from a conversion table.
JP11912398A 1998-04-28 1998-04-28 Image data compression apparatus and image data expansion apparatus Expired - Fee Related JP3877427B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11912398A JP3877427B2 (en) 1998-04-28 1998-04-28 Image data compression apparatus and image data expansion apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11912398A JP3877427B2 (en) 1998-04-28 1998-04-28 Image data compression apparatus and image data expansion apparatus

Publications (2)

Publication Number Publication Date
JPH11313326A JPH11313326A (en) 1999-11-09
JP3877427B2 true JP3877427B2 (en) 2007-02-07

Family

ID=14753516

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11912398A Expired - Fee Related JP3877427B2 (en) 1998-04-28 1998-04-28 Image data compression apparatus and image data expansion apparatus

Country Status (1)

Country Link
JP (1) JP3877427B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006074339A (en) 2004-09-01 2006-03-16 Fuji Xerox Co Ltd Encoder, decoder, encoding method, decoding method, and program for them
JP2010050616A (en) * 2008-08-20 2010-03-04 Sony Corp Recording device and recording method, reproduction device and reproduction method, program, and recording/reproducing device
WO2012086203A1 (en) * 2010-12-22 2012-06-28 パナソニック株式会社 Image encoding apparatus, image decoding apparatus, image encoding method, and image decoding method
JP2013055615A (en) * 2011-09-06 2013-03-21 Toshiba Corp Moving image coding device, method of the same, moving image decoding device, and method of the same
JP6919542B2 (en) * 2017-12-08 2021-08-18 トヨタ自動車株式会社 Control device

Also Published As

Publication number Publication date
JPH11313326A (en) 1999-11-09

Similar Documents

Publication Publication Date Title
CN108769682B (en) Video encoding method, video decoding method, video encoding apparatus, video decoding apparatus, computer device, and storage medium
CN108848381B (en) Video encoding method, decoding method, device, computer device and storage medium
CN108924553B (en) Video encoding method, video decoding method, video encoding apparatus, video decoding apparatus, computer device, and storage medium
EP1359770B1 (en) Signaling for fading compensation in video encoding
CN108833917B (en) Video encoding method, video decoding method, video encoding apparatus, video decoding apparatus, computer device, and storage medium
EP0451545A1 (en) Apparatus and method for adaptively compressing successive blocks of digital video
CN108848377B (en) Video encoding method, video decoding method, video encoding apparatus, video decoding apparatus, computer device, and storage medium
US20100086048A1 (en) System and Method for Video Image Processing
JPH07203449A (en) Dynamic image coding device
JP3877427B2 (en) Image data compression apparatus and image data expansion apparatus
JPH057356A (en) Image recording/reproducing device
JPH06268997A (en) Moving image compression device
JP2000165875A (en) Moving image resolution converting and encoding/ decoding device with a little memory capacity
JP3495040B1 (en) Digital image encoding / decoding method and digital image encoding / decoding apparatus using the same
JP4880868B2 (en) Video compression method and apparatus for improving performance
JPH07336684A (en) Picture signal decoding device
JPS63284974A (en) Picture compression system
JPH0951538A (en) Encoding method for image signal
EP1298937A1 (en) Video encoding or decoding using recompression of reference frames
JP3169263B2 (en) Video data encoding device
JP2916027B2 (en) Image coding device
JPH05308662A (en) High efficiency encoder
JPH1066092A (en) Video data compressor and its method
JP3507042B2 (en) Video compression device
JP2900815B2 (en) Method and device for adaptive coring

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050616

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050628

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050829

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060419

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: 20061024

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061031

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101110

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101110

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111110

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111110

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121110

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees