JP3811727B2 - Image encoding / decoding method and apparatus thereof - Google Patents
Image encoding / decoding method and apparatus thereof Download PDFInfo
- Publication number
- JP3811727B2 JP3811727B2 JP24343997A JP24343997A JP3811727B2 JP 3811727 B2 JP3811727 B2 JP 3811727B2 JP 24343997 A JP24343997 A JP 24343997A JP 24343997 A JP24343997 A JP 24343997A JP 3811727 B2 JP3811727 B2 JP 3811727B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- series
- image
- target pixel
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
【0001】
【発明の属する技術分野】
本発明は、2値画像を符号化する画像符号化方法及び装置並びに符号化された2値画像を復号化する画像復号化方法及び装置に関する。
【0002】
【従来の技術】
近年、マルチメディアを実現する重要技術として情報圧縮技術が注目を浴びている。この情報圧縮技術は、ITU−T(International Telecommunication Union −Telecommunication Standardization Sector;国際電気通信連合−電気通信標準化部門)およびISO/IEC(International Organization for Standardization/International Electrotechnical Commission ;国際標準化機構/国際電気標準会議)により国際標準化が行われている。
静止画像の国際標準はITU−T勧告T.81およびT.83|ISO/IEC標準10918、いわゆるJPEG(Joint Photographic Coding Experts Group )により規定されているが、特に、2値画像の国際標準はITU−T勧告T.82|ISO/IEC標準11544、いわゆるJBIG(Joint Bi-level Image Coding Experts Group )により規定されている。
【0003】
JBIGでは、エントロピー符号化方式として算術符号化方式が採用されている。算術符号化は、符号化の対象とする2値データ系列をそのデータの出現確率に応じて分割された確率数直線上にマッピングし、その位置を2進小数で表現して符号系列とするものである。
2値シンボルを0、1とし、走査順に抽出された長さNの2値データ系列を
SN =S1S2・・・・SN,(i=1,2,・・・・,N)
と表すものとする。着目画素Siの符号化を行う場合、まず、符号化される着目画素Siより前に出現した複数の参照画素からなるテンプレートの状態から、着目画素Siがシンボル0である条件付き確率
P(Si=0|テンプレートの状態)
および着目画素Siがシンボル1である条件付き確率
P(Si=1|テンプレートの状態)
が推定される。テンプレートの画素数をMとすると、テンプレートの状態は2M 個存在し、推定処理はこれら2M 個の状態毎に独立に行われる。
そして、求められた条件付き確率Pを符号化パラメータとして、対象となるシンボル系列SN に対する数直線の分割選択処理が行われ、算術符号が構成される。
【0004】
【発明が解決しようとする課題】
しかしながら、従来の算術符号化方式を採用した画像符号化技術および画像復号化技術にあっては、着目画素が参照するテンプレートの形状が固定的であり、着目画素が走査方向に移動すると、テンプレートも走査方向に移動する。このため、着目画素を移動する度に参照画素を画像メモリにアクセスする必要があり、頻繁なメモリアクセスを必要としていた。また、各着目画素毎にそれぞれのテンプレート内の画素パターンの予測状態を演算するので、演算量が膨大になってしまう。
さらに、画像メモリのアクセス量を削減するため、参照画素をバイト単位でアクセスすると、複数のバイト情報からビット単位の情報を切り出すマスク操作が必要となるため、処理が複雑になってしまう。
このように、従来の画像符号化技術および画像復号化技術は、メモリアクセス量および演算量が膨大であるため、符号化および復号化の処理時間がかかってしまい、リアルタイム処理の点から満足できるものではなかった。
【0005】
【課題を解決するための手段】
本発明は以上の点を解決するため次の構成を採用する。
〈構成1〉
複数の画素からなる2値画像を符号化する方法であり、上記2値画像を記憶する画像記憶部を準備するステップと、符号化すべき着目画素の予測状態を既に符号化済みの複数の画素からなる第1参照画素系列に基づいて算出する予測状態算出ステップと、上記予測状態算出ステップにより算出された予測状態に基づいて着目画素のシンボル出現確率を推定するシンボル出現確率推定ステップと、上記シンボル出現確率推定ステップにより推定されたシンボル出現確率を符号化パラメータとして着目画素の算術符号を構成する算術符号構成ステップとを含む画像符号化方法であって、上記画像記憶部より高速なデータアクセス速度を有する高速アクセス記憶部を準備するステップと、順次に着目画素となる複数の画素からなる着目画素系列を設定する着目画素系列設定ステップと、上記着目画素系列設定ステップにより設定された着目画素系列に対し、既に符号化済みの複数の画素を含む上記着目画素系列以前の複数の画素からなる第2参照画素系列を設定する第2参照画素系列設定ステップと、上記着目画素系列設定ステップにより設定された着目画素系列及び上記第2参照画素系列設定ステップにより設定された第2参照画素系列を上記画像記憶部から一括して読み出し、上記高速アクセス記憶部に記憶する記憶制御ステップと、上記高速アクセス記憶部に記憶された上記着目画素系列及び第2参照画素系列内において、上記着目画素系列内の各着目画素に対応するそれぞれの上記第1参照画素系列を、上記着目画素系列内の着目画素の移動に応じて相対位置を変化させて設定する第1参照画素系列設定ステップとを含み、上記シンボル出現確率推定ステップは、上記第1参照系列設定ステップで設定された第1参照画像系列の状態毎に異なる確率推定論理を選択するステップを含むことを特徴とする画像符号化方法。
【0006】
〈構成2〉
算術符号化された2値画像データを復号化する方法であり、復号化された2値画像を記憶する復号画像記憶部を準備するステップと、復号化すべき着目画素の予測状態を既に復号化済みの複数の画素からなる第1参照画素系列に基づいて算出する予測状態算出ステップと、上記予測状態算出ステップにより算出された予測状態に基づいて着目画素のシンボル出現確率を推定するシンボル出現確率推定ステップと、上記シンボル出現確率推定ステップにより推定されたシンボル出現確率を復号化パラメータとして着目画素を復号化する算術符号復号化ステップとを含む画像復号化方法であって、上記復号画像記憶部のデータアクセス速度より高速なデータアクセス速度を有し、上記復号画像記憶部に記憶された画像の一部および上記算術符号復号化ステップにより復号化された複数の画素を一時的に記憶する高速アクセス記憶部を準備するステップと、順次に着目画素となる複数の画素からなる着目画素系列を設定する着目画素系列設定ステップと、上記着目画素系列設定ステップにより設定された着目画素系列に対し、既に復号化済みの複数の画素からなる第2参照画素系列を設定する第2参照画素系列設定ステップと、上記第2参照画素系列設定ステップにより設定された第2参照画素系列を上記復号画像記憶部から一括して読み出し、上記高速アクセス記憶部に記憶する記憶制御ステップと、上記記憶制御ステップにより上記高速アクセス記憶部に記憶された第2参照画素系列および上記着目画素系列設定ステップにより設定された着目画素系列のうち上記算術符号復号化ステップにより復号化されて上記高速アクセス記憶部に記憶された画素を結合して第3参照画素系列を設定する第3参照画素系列設定ステップと、上記第3参照画素系列設定ステップにより設定された第3参照画素系列内において、上記着目画素系列内の各着目画素に対応するそれぞれの上記第1参照画素系列を、上記着目画素系列内の着目画素の移動に応じて相対位置を変化させて設定する第1参照画素系列設定ステップとを含み、上記シンボル出現確率推定ステップは、上記第1参照系列設定ステップで設定された第1参照画像系列の状態毎に異なる確率推定論理を選択するステップを含むことを特徴とする画像復号化方法。
【0007】
〈構成3〉
構成1の画像符号化方法と構成2の画像復号化方法とを組み合わせたことを特徴とする画像符号化復号化方法。
【0008】
〈構成4〉
複数の画素からなる2値画像を符号化する装置であり、上記2値画像を記憶する画像記憶部と、符号化すべき着目画素の予測状態を既に符号化済みの複数の画素からなる第1参照画素系列に基づいて算出する予測状態算出部と、上記予測状態算出部により算出された予測状態に基づいて着目画素のシンボル出現確率を推定するシンボル出現確率推定部と、上記シンボル出現確率推定部により推定されたシンボル出現確率を符号化パラメータとして着目画素の算術符号を構成する算術符号構成部とを備えた画像符号化装置において、上記画像記憶部より高速なデータアクセス速度を有する高速アクセス記憶部と、順次に着目画素となる複数の画素からなる着目画素系列を設定する着目画素系列設定部と、上記着目画素系列設定部により設定された着目画素系列に対し、既に符号化済みの複数の画素を含む上記着目画素系列以前の複数の画素からなる第2参照画素系列を設定する第2参照画素系列設定部と、上記着目画素系列設定部により設定された着目画素系列及び上記第2参照画素系列設定部により設定された第2参照画素系列を上記画像記憶部から一括して読み出し、上記高速アクセス記憶部に記憶する記憶制御部と、上記高速アクセス記憶部に記憶された着目画素系列及び第2参照画素系列内において、上記着目画素系列内の各着目画素に対応するそれぞれの上記第1参照画素系列を、上記着目画素系列内の着目画素の移動に応じて相対位置を変化させて設定する第1参照画素系列設定部とを備え、上記シンボル出現確率推定部は、上記第1参照系列設定部で設定された第1参照画像系列の状態毎に異なる確率推定論理を選択することを特徴とする画像符号化装置。
【0009】
〈構成5〉
構成4において、上記第2参照画素系列は、上記着目画素系列内の着目画素の移動に応じて上記着目画素系列内に設定される上記第1参照画素系列の画素数と、上記第2参照画素系列に設定される上記第1参照画素系列の画素数とが変化することを特徴とする画像符号化装置。
【0010】
〈構成6〉
構成4において、上記第1参照画素系列設定部は、上記第1参照画像系列設定部は、移動前の着目画素に対応する上記第1参照画像系列に対し、少なくとも移動前の着目画素を結合して移動後の着目画素に対応する上記第1参照画素系列を設定することを特徴とする画像符号化装置。
【0011】
〈構成7〉
算術符号化された2値画像データを復号化する装置であり、復号化すべき着目画素の予測状態を既に復号化済みの複数の画素からなる第1参照画素系列に基づいて算出する予測状態算出部と、上記予測状態算出部により算出された予測状態に基づいて着目画素のシンボル出現確率を推定するシンボル出現確率推定部と、上記シンボル出現確率推定部により推定されたシンボル出現確率を復号化パラメータとして着目画素を復号化する算術符号復号化部と、算術符号復号化部により復号化された2値画像を記憶する復号画像記憶部とを備えた画像復号化装置において、上記復号画像記憶部のデータアクセス速度より高速なデータアクセス速度を有し、上記復号画像記憶部に記憶された画像の一部および上記算術符号復号化部により復号化された複数の画素を一時的に記憶する高速アクセス記憶部と、順次に着目画素となる複数の画素からなる着目画素系列を設定する着目画素系列設定部と、上記着目画素系列設定部により設定された着目画素系列に対し、既に復号化済みの複数の画素からなる第2参照画素系列を設定する第2参照画素系列設定部と、上記第2参照画素系列設定部により設定された第2参照画素系列を上記復号画像記憶部から一括して読み出し、上記高速アクセス記憶部に記憶する記憶制御部と、上記記憶制御部により上記高速アクセス記憶部に記憶された第2参照画素系列および上記着目画素系列設定部により設定された着目画素系列のうち上記算術符号復号化部により復号化されて上記高速アクセス記憶部に記憶された画素を結合して第3参照画素系列を設定する第3参照画素系列設定部と、上記第3参照画素系列設定部により設定された第3参照画素系列内において、上記着目画素系列内の各着目画素に対応するそれぞれの上記第1参照画素系列を、上記着目画素系列内の着目画素の移動に応じて相対位置を変化させて設定する第1参照画素系列設定部とを備え、上記シンボル出現確率推定部は、上記第1参照系列設定部で設定された第1参照画像系列の状態毎に異なる確率推定論理を選択することを特徴とする画像復号化装置。
【0012】
〈構成8〉
構成4〜6の何れかの画像符号化装置と構成7の画像復号化装置とを組み合わせたことを特徴とする画像符号化復号化装置。
【0013】
【発明の実施の形態】
以下、本発明の実施の形態を具体例を用いて説明する。
《具体例》
図1は本発明に係る一具体例の画像符号化方法の概略を説明する説明図である。
画像符号化方法は、2値画像をその走査線順に従った画素のシンボル系列とし、確率数直線を符号化すべき着目画素のシンボル出現確率に応じて分割し、シンボル系列に対応する部分区間を選択していくことで、2値画像を算術符号化するものである。着目画素のシンボル出現確率は、既に符号化済みの複数の画素からなる参照画素系列(テンプレート)の予測状態に基づいて推定される。
図1において、着目画素系列1は、2値画像内の任意のラインに含まれる画素I8 〜I15の8画素からなる画素系列である。着目画素系列1内の各画素は、走査線順に符号化すべき着目画素となる。
前ライン画素系列2は、着目画素系列1の直前のラインの同位置の画素I0 〜I7 の8画素からなる画素系列であり、着目画素系列1および前ライン画素系列2により符号化ブロック3を構成する。
【0014】
画像符号化方法は、着目画素系列1内の各着目画素がその予測状態を算出する際に参照する参照画素系列(テンプレート)を、符号化ブロック3内の画素系列により設定するものであり、着目画素系列1内の画素の位置に応じて各画素が参照する参照画素系列の形状を変化させている。
着目画素I8 の参照画素系列T0 は、画素I0 〜I7 の8画素の画素系列である。着目画素I9 の参照画素系列T1 は、着目画素I8 の参照画素系列T0 に画素I8 を結合させた画素I0 〜I8 の9画素の画素系列である。着目画素I10の参照画素系列T2 は、着目画素I9 の参照画素系列T1 に画素I9 を結合させた画素I0 〜I9 の10画素の画素系列である。
着目画素I11の参照画素系列T3 は、着目画素I10の参照画素系列T2 に画素I10を結合させた画素I0 〜I10の11画素の画素系列である。以降の着目画素I12〜I15の参照画素系列T4 〜T7 は、着目画素が1画素分、主走査方向にシフトするのに伴い、前の着目画素の参照画素系列を1画素分、主走査方向にシフトした11画素の画素系列である。
図1から理解されるように、着目画素I15を除く各着目画素は、後の着目画素の参照画素となる。着目画素I8 を除く各着目画素は、図中、左隣の直前の画素を参照することで、予測効率を向上させている。
【0015】
このように、具体例の画像符号化方法によれば、着目画素系列1および前ライン画素系列2により符号化ブロック3を構成し、着目画素系列1内の各着目画素のそれぞれの参照画素系列を符号化ブロック3内に設定する。このため、2値画像を記憶する画像メモリから符号化ブロック3を一括して読み出し各着目画素の予測状態を算出することができる。従来の画像符号化方法のように、着目画素が主走査方向に移動する度に画像メモリから参照画素系列を構成する画素を読み出す必要がない。したがって、画像メモリへのメモリアクセス回数を低減することができるので、符号化処理を高速化することができる。
【0016】
また、着目画素系列1および前ライン画素系列2により符号化ブロック3を構成している。このことは、着目画素系列1内の各画素が参照する参照画素を含む画素系列内に着目画素系列1を含むことを意味する。このため、着目画素系列1および着目画素系列1の各着目画素が参照するそれぞれの参照画素系列を含む画素系列を1クロックの命令で同時に読み出すことができる。
なお、着目画素系列1内の各着目画素は、必ずしも着目画素系列1内の画素を参照画素とせずともよい。着目画素系列1および着目画素系列1内の各着目画素が参照する複数の参照画素系列を含む画素系列をそれぞれ別々に読み出してもよい。この場合、2クロックの命令が必要となる。
また、着目画素系列1および前ライン画素系列2をそれぞれ走査方向に連続する8画素、すなわちバイト単位で構成しているので、容易に符号化ブロック3を読み出すことができる。情報処理装置のバス幅に適合し、効率の良い処理が可能となるからである。
【0017】
さらに、着目画素系列1内の前後の着目画素に対し、前の着目画素の参照画素系列の後端の画素に、後続する画素を結合して後の参照画素系列を設定するように構成している。このため、前の着目画素の参照画素系列の一部を利用して次の着目画素の参照画素系列を構成することができるので、参照画素系列の予測状態の算出を簡素化することが可能となる。したがって、予測状態の演算量を低減することができるので、符号化処理を高速化することができる。
【0018】
〈画像符号化装置〉
次に上記画像符号化方法を実施する画像符号化装置を説明する。
図2は本発明に係る一具体例の画像符号化装置の構成を示すブロック図である。
図2に示すように、画像符号化装置は、画像メモリ11、高速メモリ12、画像データアクセス制御部13、予測状態算出部14、シンボル出現確率推定部15、算術符号構成部16および符号メモリ17を備えている。
【0019】
画像メモリ11は、例えばDRAM(dynamic random access memory)やハードディスクからなり、符号化すべき2値画像を記憶する。
高速メモリ12は、例えばSRAM(static random access memory )のような画像メモリ11よりも高速なアクセス速度を有するメモリからなり、図1に示された符号化ブロック3を記憶し、2値画像を符号化する際の作業用メモリとなる。
画像データアクセス制御部13は、画像メモリ11および高速メモリ12の動作を制御するものであり、符号化ブロック設定部13aを有する。
符号化ブロック設定部13aは、図1に示された符号化ブロック3を設定するものであり、画像メモリ11に記憶された2値画像の各ライン毎に、8画素の着目画素系列1を設定し、設定された着目画素系列1に対し符号化ブロック3を設定する。画像データアクセス制御部13は、符号化ブロック設定部13aにより設定された符号化ブロック3を、画像メモリ11から1クロックで一括して読み出し、高速メモリ12に記憶する。高速メモリ12に記憶されている符号化済みの符号化ブロック3は、新たに転送された符号化ブロック3に順次に書き換えられる。
【0020】
予測状態算出部14は、画像データアクセス制御部13により高速メモリ12に記憶された着目画素系列1内の各着目画素の予測状態を算出するものであり、図1に示された着目画素I8 〜I15の参照画素系列T0 〜T7 を設定する参照画素系列設定部14aを有する。
参照画素系列設定部14aは、参照画素系列T0 〜T7 をそれぞれ数値0〜7の3ビットのインデックスで表す。
図1に示すように、T0 のインデックスは000であり、T1 のインデックスは001であり、T7 のインデックスは111で表される。
予測状態算出部14は、着目画素I8 〜I15の予測状態
st(i) , (i=0,1,2,・・・,7)
を参照画素系列設定部14aにより設定された参照画素系列T0 〜T7 に基づいて算出する。
【0021】
着目画素I8 の予測状態st(0)は、画素I0 〜I7 の8ビットの整数値
I7 I6 I5 I4 I3 I2 I1 I0
である。
着目画素I9 の予測状態st(1)は、画素I0 〜I8 の9ビットの整数値であり、
st(1) = st(0)+ (I8 <<8)
により求められる。ここで、<<nは、nビット左シフトする(値を2n 倍する)ことを表す。すなわち、st(1)は、st(0)のMSB(most significant bit)側に画素I8
を結合することで得られる。
着目画素I10の予測状態st(2)は、画素I0 〜I9 の10ビットの整数値であり、
st(2) = st(1)+ (I9 <<9)
により得られ、
着目画素I11の予測状態st(3)は、画素I0 〜I10 の11ビットの整数値であり、
st(3) = st(3)+ (I10<<10 )
により得られる。
【0022】
着目画素I12の予測状態st(4)は、画素I1 〜I11 の11ビットの整数値であり、
st(4)=(st(3)+(I11<<11))>>1
により得られる。ここで、>>nは、nビット右シフトする(値を2−n倍する)ことを表し、小数部(下位1ビット)が無視される。
同様に、着目画素I13〜I15の予測状態st(5)〜st(7)は、それぞれ
st(5) = (st(4) + (I12<<11))>>1
st(6) = (st(5) + (I13<<11))>>1
st(7) = (st(6) + (I14<<11))>>1
により求められる。
予測状態算出部14は、求められた予測状態S(i)のMSB側に参照画素系列のインデックスを結合し、最終的な予測状態をシンボル出現確率推定部15に出力する。
【0023】
シンボル出現確率推定部15は、予測状態算出部14により算出された着目画素の予測状態毎に、着目画素が0であるシンボル出現確率P(0|予測状態)および着目画素がシンボル1であるシンボル出現確率P(1|予測状態)を算出するものであり、確率推定テーブル15aを有する。
確率推定テーブル15aは、予測状態算出部14により算出された予測状態毎に、既に符号化済みの画素の0および1のシンボル出現頻度を計数するものである。
シンボル出現確率推定部15は、確率推定テーブル15aにより計数された各予測状態の着目画素のシンボル出現頻度に基づいて着目画素のシンボル出現確率を推定する。
算術符号構成部16は、シンボル出現確率推定部15により算出されたシンボル出現確率P(0|予測状態)およびP(1|予測状態)に従って確率数直線上の区間を分割し、分割された区間を選択して算術符号を構成する。
符号メモリ17は、例えばDRAMやハードディスクからなり、算術符号構成部16により符号化された算術符号を記憶する。また、符号メモリ17は、データ通信の際には、送受信時のバッファメモリとなる。
【0024】
図3は図2に示された画像符号化装置の動作を示すフローチャートである。
なお、着目画素系列1内の着目画素I8 〜I15が参照する参照画素系列T0 〜T7 は参照画素系列設定部14aにより予め設定されているものとする。
ステップS1において、算術符号構成部16の符号化パラメータが初期化されるとともに、確率推定テーブル15aの各予測状態のそれぞれ出現頻度が初期化される。
ステップS2において、符号化ブロック設定部13aにより着目画素系列1が設定され、対応する符号化ブロック3が設定され、ステップS3において、画像データアクセス制御部13により符号化ブロック3が画像メモリ11から読み出され、高速メモリ12に書き込まれる。
【0025】
ステップS4において、予測状態算出部14により着目画素系列1内の1画素が着目画素に設定され、着目画素の予測状態が算出される。ステップS5において、シンボル出現確率推定部15により確率推定テーブル15a内の予測状態に対応する出現頻度に基づいて着目画素のシンボル出現確率が推定される。
ステップS6において、算術符号構成部16によりシンボル出現確率に基づいて算術符号化処理が行われる。ステップS7において、符号化された着目画素に基づいて確率推定テーブル15aの該当する予測状態の出現頻度が更新される。
【0026】
ステップS8において、着目画素系列1内の次の着目画素が有る場合、ステップS4に戻る。一方、ステップS8において、着目画素系列1内の次の着目画素が無い場合、ステップS9に進み、次の着目画素系列1が有る場合、ステップS2に戻る。一方、ステップS9において、次の着目画素系列1が無い場合、符号化処理を終了する。
【0027】
以上のように、具体例の画像符号化装置によれば、符号化ブロック設定部13aにより着目画素系列1およびその符号化ブロック3を設定し、画像データアクセス制御部13により符号化ブロック3を画像メモリ11から1クロックで一括して読み出し、高速メモリ12に記憶する。次いで、予測状態算出部14により符号化ブロック3内に着目画素系列1内の各着目画素のそれぞれの参照画素系列を設定し、予測状態を算出する。
したがって、従来の画像符号化装置のように、着目画素が主走査方向に移動する度に画像メモリから参照画素系列を構成する画素を読み出す必要がなく、画像メモリへのメモリアクセス回数を低減することができるので、符号化処理を高速化することができる。
【0028】
また、参照画素系列設定部14aにより、前の着目画素の参照画素系列の後端の画素に、後続する画素を結合して後の参照画素系列を設定し、予測状態算出部14により前の着目画素の予測状態をシフト演算することで後の着目画素の予測状態を算出する。
したがって、予測状態の演算処理を簡素化し、その演算量を低減することができるので、符号化処理を高速化することができる。
【0029】
〈画像復号化装置〉
次に図2に示された画像符号化装置により符号化された算術符号を復号化する画像復号化装置を説明する。
図4は本発明に係る一具体例の画像復号化装置の構成を示すブロック図である。
図4に示すように、画像復号化装置は、符号メモリ21、算術符号復号化部22、高速メモリ23、画像メモリ24、画像データアクセス制御部25、予測状態算出部26およびシンボル出現確率推定部27を備えている。
【0030】
符号メモリ21は、例えばDRAMやハードディスクからなり、算術符号化された2値画像データを記憶する。
算術符号復号化部22は、符号メモリ21に記憶された符号データを読み出し、算術符号化処理の逆演算を行って2値画像を復号化するものである。
予測状態算出部26およびシンボル出現確率推定部27は、図2に示された画像符号化装置の予測状態算出部14およびシンボル出現確率推定部15と同様の構成であり、復号化の際には、画像符号化装置の予測状態算出部14およびシンボル出現確率推定部15の符号化時の演算処理と同様の演算処理を実行する。
【0031】
算術符号復号化部22により復号化された2値画像は、高速メモリ23を介して画像メモリ24に記憶される。画像メモリ24は、DRAMやハードディスクからなる。高速メモリ23は、例えばSRAMのような画像メモリ24よりも高速なアクセス速度を有するメモリからなり、2値画像を復号化する際の作業用メモリとなる。
画像データアクセス制御部25は、高速メモリ23および画像メモリ24の動作を制御するものであり、復号化ブロック設定部25aを有する。
復号化ブロック設定部25aは、復号化すべき2値画像の各ライン毎に、着目画素系列1を設定し、設定された着目画素系列1に対し符号化ブロック3を設定する。画像データアクセス制御部25は、復号化ブロック設定部25aにより設定された符号化ブロック3に基づいて着目画素系列1に対応する既に復号化済みの前ライン画素系列2を画像メモリ24から1クロックで一括して読み出し、高速メモリ23に記憶する。
高速メモリ23には、前ライン画素系列2とともに、算術符号復号化部22により復号化された着目画素系列1の画素が順次に記憶され、着目画素系列1の全画素が復号化されたとき、一括して画像メモリ24に転送されて記憶される。
【0032】
図5は図4に示された画像復号化装置の動作を示すフローチャートである。
なお、着目画素系列1内の着目画素I8 〜I15が参照する参照画素系列T0 〜T7 は参照画素系列設定部26aにより予め設定されているものとする。
ステップS11において、算術符号復号化部22の復号化パラメータが初期化されるとともに、確率推定テーブル27aの各予測状態のそれぞれ出現頻度が初期化される。
ステップS12において、復号化ブロック設定部25aにより着目画素系列1が設定され、対応する符号化ブロック3が設定され、ステップS13において、画像データアクセス制御部13により前ライン画素系列2が画像メモリ24から読み出され、高速メモリ23に書き込まれる。
【0033】
ステップS14において、予測状態算出部26により着目画素系列1内の画素が着目画素に設定され、着目画素の予測状態が算出される。ステップS15において、シンボル出現確率推定部27により確率推定テーブル27a内の予測状態に対応する出現頻度に基づいて着目画素のシンボル出現確率が推定される。
ステップS16において、算術符号復号化部22によりシンボル出現確率に基づいて算術復号化処理が行われる。ステップS17において、復号化された画素が高速メモリ12に書き込まれ、ステップS18において、確率推定テーブル27aの該当する予測状態の出現頻度が更新される。
【0034】
ステップS19において、着目画素系列1内の次の着目画素が有る場合、ステップS14に戻る。一方、ステップS19において、着目画素系列1内の次の着目画素が無い場合、ステップS20において、着目画素系列1が画像メモリ24に転送されて記憶される。ステップS21において、次の着目画素系列1が有る場合、ステップS12に戻る。一方、ステップS21において、次の着目画素系列1が無い場合、復号化処理を終了する。
【0035】
以上のように、具体例の画像復号化装置によれば、復号化ブロック設定部25aにより着目画素系列1およびその符号化ブロック3を設定し、画像データアクセス制御部25により前ライン画素系列2を画像メモリ24から1クロックで一括して読み出し、高速メモリ23に記憶する。次いで、予測状態算出部26により復号化すべき着目画素系列1内の各着目画素のそれぞれの参照画素系列を設定し、予測状態を算出する。
したがって、従来の画像復号化装置のように、着目画素が主走査方向に移動する度に画像メモリから参照画素系列を構成する画素を読み出す必要がなく、画像メモリへのメモリアクセス回数を低減することができるので、復号化処理を高速化することができる。
【0036】
また、参照画素系列設定部26aにより、前の着目画素の参照画素系列の後端の画素に、後続する画素を結合して後の参照画素系列を設定し、予測状態算出部26により前の着目画素の予測状態をシフト演算することで後の着目画素の予測状態を算出する。
したがって、予測状態の演算処理を簡素化し、その演算量を低減することができるので、復号化処理を高速化することができる。
【0037】
なお、上記具体例では、符号化ブロック3を16画素の画素系列、すなわち2バイトにより構成しているが、符号化ブロック3のサイズはこれに限るものではなく、例えば3バイトでもよい。着目画素系列1内の各着目画素のそれぞれの参照画素系列の形状も限定されるものではない。参照画素系列の画素数は、データの圧縮率と処理速度とのバランスを考慮して決定するとよい。画素数を多くすると、データ圧縮率は向上するが、処理時間がかかり、両者はトレードオフの関係にあるからである。
また、上記具体例の画像符号化装置および画像復号化装置の動作を実行するプログラムをそれぞれ作成し、フレキシブルディスクやCD−ROM等の記録媒体に記録することができる。これらのプログラムをコンピュータにより実行すれば、画像符号化装置および画像復号化装置を安価に提供することができる。
【0038】
図2に示された本発明の画像符号化装置とJPEG、JBIGに適用される従来のQMコーダとの符号化処理時間を実験により比較した。
図6はQMコーダの着目画素が参照するテンプレートを示す図である。
なお、本発明の画像符号化装置のシンボル出現確率推定部15および算術符号構成部16は、それぞれQMコーダの確率推定部および符号構成部により構成した。
実験条件
画像:CCITT(ITU−T)No.1
コンピュータ:サンマイクロシステムズ製 Sun4
実験結果
従来の画像符号化装置の処理時間 :7.39sec
本発明の画像符号化装置の処理時間:4.16sec
となり、処理時間が半分近くに短縮された。
【図面の簡単な説明】
【図1】本発明に係る一具体例の画像符号化方法の概略を説明する説明図である。
【図2】本発明に係る一具体例の画像符号化装置の構成を示すブロック図である。
【図3】図3に示された画像符号化装置の動作を示すフローチャートである。
【図4】本発明に係る一具体例の画像復号化装置の構成を示すブロック図である。
【図5】図4に示された画像復号化装置の動作を示すフローチャートである。
【図6】従来のQMコーダの着目画素が参照するテンプレートを示す図である。
【符号の説明】
1 着目画素系列
2 前ライン画素系列
3 符号化ブロック
11 画像メモリ
12 高速メモリ
13 画像データアクセス制御部
13a 符号化ブロック設定部
14 予測状態算出部
14a 参照画素系列設定部
15 シンボル出現確率推定部
15a 確率推定テーブル
16 算術符号構成部
17 符号メモリ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image encoding method and apparatus for encoding a binary image, and an image decoding method and apparatus for decoding an encoded binary image.
[0002]
[Prior art]
In recent years, information compression technology has attracted attention as an important technology for realizing multimedia. This information compression technology includes ITU-T (International Telecommunication Union-Telecommunication Standardization Sector) and ISO / IEC (International Organization for Standardization / International Electrotechnical Commission; International Organization for Standardization / International Electrotechnical Commission). ) Is being standardized.
The international standard for still images is ITU-T recommendation T.264. 81 and T.W. 83 | ISO / IEC standard 10918, which is defined by so-called JPEG (Joint Photographic Coding Experts Group). In particular, the international standard for binary images is ITU-T recommendation T.83. 82 | ISO / IEC standard 11544, so-called JBIG (Joint Bi-level Image Coding Experts Group).
[0003]
In JBIG, an arithmetic coding method is adopted as an entropy coding method. In arithmetic coding, a binary data sequence to be encoded is mapped onto a probability number line divided according to the appearance probability of the data, and the position is expressed by a binary decimal to obtain a code sequence. It is.
A binary data sequence of length N extracted with a binary symbol of 0 and 1 and extracted in the scanning order
SN = S1S2.... SN, (I = 1,2, ..., N)
It shall be expressed as When encoding the pixel of interest Si, first, a conditional probability that the pixel of interest Si is a
P (Si = 0 | template state)
And the conditional probability that the pixel of interest Si is
P (Si = 1 | template state)
Is estimated. If the number of pixels in the template is M, the template state is 2M There are two estimation processes.M This is done independently for each state.
Then, using the obtained conditional probability P as an encoding parameter, the target symbol sequence SN A number line division selection process is performed on, and an arithmetic code is constructed.
[0004]
[Problems to be solved by the invention]
However, in the image coding technique and the image decoding technique that employ the conventional arithmetic coding method, the shape of the template referred to by the pixel of interest is fixed, and when the pixel of interest moves in the scanning direction, the template is also changed. Move in the scanning direction. For this reason, every time the target pixel is moved, the reference pixel needs to be accessed to the image memory, and frequent memory access is required. Moreover, since the prediction state of the pixel pattern in each template is calculated for each pixel of interest, the amount of calculation becomes enormous.
Furthermore, when the reference pixel is accessed in byte units in order to reduce the access amount of the image memory, a mask operation for cutting out information in bit units from a plurality of byte information is necessary, and the processing becomes complicated.
As described above, the conventional image encoding technology and image decoding technology are enormous in terms of real-time processing because of the enormous amount of memory access and the amount of computation, which takes time for encoding and decoding. It wasn't.
[0005]
[Means for Solving the Problems]
The present invention adopts the following configuration in order to solve the above points.
<
A method of encoding a binary image composed of a plurality of pixels, comprising: preparing an image storage unit for storing the binary image; and predicting a target pixel to be encoded from a plurality of already encoded pixels A prediction state calculation step that is calculated based on the first reference pixel series, a symbol appearance probability estimation step that estimates a symbol appearance probability of the pixel of interest based on the prediction state calculated by the prediction state calculation step, and the symbol appearance An image coding method including an arithmetic code construction step for constructing an arithmetic code of a pixel of interest using the symbol appearance probability estimated by the probability estimation step as a coding parameter, and having a higher data access speed than the image storage unit A step of preparing a high-speed access storage unit, and a target pixel series composed of a plurality of pixels that are sequentially set as the target pixel are set. And a second reference pixel sequence including a plurality of pixels before the target pixel sequence including a plurality of already encoded pixels with respect to the target pixel sequence set by the target pixel sequence setting step. A second reference pixel series setting step for setting the target pixel series, a target pixel series set by the target pixel series setting step, and a second reference pixel series set by the second reference pixel series setting step from the image storage unit. And corresponding to each pixel of interest in the pixel-of-interest sequence in the pixel-of-interest sequence and the second reference pixel sequence stored in the high-speed-access storage unit. The first reference pixel series to be set is set by changing the relative position according to the movement of the target pixel in the target pixel series. Including a first reference pixel sequence setting stepThus, the symbol appearance probability estimation step includes a step of selecting different probability estimation logic for each state of the first reference image sequence set in the first reference sequence setting step.An image encoding method characterized by the above.
[0006]
<
A method for decoding arithmetically encoded binary image data, comprising a step of preparing a decoded image storage unit for storing a decoded binary image, and a prediction state of a target pixel to be decoded has already been decoded A prediction state calculation step for calculating based on a first reference pixel series consisting of a plurality of pixels, and a symbol appearance probability estimation step for estimating the symbol appearance probability of the pixel of interest based on the prediction state calculated by the prediction state calculation step And an arithmetic code decoding step of decoding the pixel of interest using the symbol appearance probability estimated by the symbol appearance probability estimation step as a decoding parameter, wherein the data access of the decoded image storage unit A part of the image stored in the decoded image storage unit and the arithmetic code decoding. A step of preparing a high-speed access storage unit that temporarily stores a plurality of pixels decoded by the conversion step, a pixel-of-interest setting step of setting a pixel-of-interest series composed of a plurality of pixels that are sequentially the pixel of interest, For the target pixel series set by the target pixel series setting step,RecoveryA second reference pixel sequence setting step for setting a second reference pixel sequence composed of a plurality of encoded pixels, and a second reference pixel sequence set by the second reference pixel sequence setting step from the decoded image storage unit. A storage control step for reading the data collectively and storing it in the high-speed access storage unit; a second reference pixel series stored in the high-speed access storage unit by the storage control step; and a target pixel set by the target pixel series setting step A third reference pixel series setting step for setting a third reference pixel series by combining pixels decoded in the arithmetic code decoding step and stored in the fast access storage unit in the series; and the third reference pixel In the third reference pixel series set by the series setting step, each upper pixel corresponding to each target pixel in the target pixel series is set. A first reference pixel series, and a first reference pixel series setting step of setting by changing the relative position in response to movement of the target pixel of the target pixel in the series includingThus, the symbol appearance probability estimation step includes a step of selecting different probability estimation logic for each state of the first reference image sequence set in the first reference sequence setting step.An image decoding method characterized by the above.
[0007]
<
An image encoding / decoding method characterized by combining the image encoding method of
[0008]
<
A device that encodes a binary image composed of a plurality of pixels, an image storage unit that stores the binary image, and a first reference that includes a plurality of pixels that have already been encoded with a predicted state of a pixel of interest to be encoded A prediction state calculation unit that calculates based on a pixel series, a symbol appearance probability estimation unit that estimates a symbol appearance probability of a pixel of interest based on the prediction state calculated by the prediction state calculation unit, and the symbol appearance probability estimation unit A high-speed access storage unit having a data access speed higher than that of the image storage unit in an image encoding device including an arithmetic code configuration unit that configures an arithmetic code of a pixel of interest using the estimated symbol appearance probability as an encoding parameter; The target pixel series setting unit that sets a target pixel series composed of a plurality of pixels that are sequentially the target pixel, and the target pixel series setting unit. A second reference pixel series setting unit for setting a second reference pixel series including a plurality of pixels before the target pixel series including a plurality of already encoded pixels with respect to the target pixel series; and the target pixel series setting unit A storage control unit that collectively reads out the pixel sequence of interest set by the second reference pixel sequence set by the second reference pixel sequence setting unit and the second reference pixel sequence setting unit from the image storage unit, and stores them in the high-speed access storage unit; In the target pixel series and the second reference pixel series stored in the high-speed access storage unit, the first reference pixel series corresponding to each target pixel in the target pixel series is represented as the target pixel in the target pixel series. A first reference pixel series setting unit configured to change and set the relative position according to the movement ofThe symbol appearance probability estimation unit selects a different probability estimation logic for each state of the first reference image sequence set by the first reference sequence setting unit.An image encoding apparatus characterized by that.
[0009]
<
In
[0010]
<
In
[0011]
<Configuration 7>
A prediction state calculation unit that decodes arithmetically encoded binary image data and calculates a prediction state of a pixel of interest to be decoded based on a first reference pixel sequence that includes a plurality of already decoded pixels A symbol appearance probability estimation unit that estimates the symbol appearance probability of the pixel of interest based on the prediction state calculated by the prediction state calculation unit, and the symbol appearance probability estimated by the symbol appearance probability estimation unit as a decoding parameter In the image decoding apparatus, comprising: an arithmetic code decoding unit that decodes a pixel of interest; and a decoded image storage unit that stores a binary image decoded by the arithmetic code decoding unit. It has a data access speed higher than the access speed, and is decoded by a part of the image stored in the decoded image storage unit and the arithmetic code decoding unit A high-speed access storage unit that temporarily stores a number of pixels, a target pixel series setting unit that sequentially sets a target pixel series that includes a plurality of pixels that are target pixels, and a target that is set by the target pixel series setting unit For pixel series alreadyRecoveryA second reference pixel series setting unit for setting a second reference pixel series composed of a plurality of encoded pixels, and a second reference pixel series set by the second reference pixel series setting unit from the decoded image storage unit. A storage control unit that collectively reads out and stores in the high-speed access storage unit, a second reference pixel series stored in the high-speed access storage unit by the storage control unit, and a target pixel set by the target pixel series setting unit A third reference pixel sequence setting unit that sets a third reference pixel sequence by combining pixels that are decoded by the arithmetic code decoding unit and stored in the fast access storage unit in the sequence; and the third reference pixel In the third reference pixel series set by the series setting unit, each of the first reference pixel series corresponding to each target pixel in the target pixel series is set as the target image in the target pixel series. Bei a first reference pixel sequence setting unit that sets by changing the relative position in response to movement ofThe symbol appearance probability estimation unit selects a different probability estimation logic for each state of the first reference image sequence set by the first reference sequence setting unit.An image decoding apparatus characterized by that.
[0012]
<
An image encoding / decoding device, wherein the image encoding device according to any one of
[0013]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described using specific examples.
"Concrete example"
FIG. 1 is an explanatory diagram for explaining an outline of an image coding method according to a specific example of the present invention.
The image encoding method uses a binary image as a symbol series of pixels according to the scanning line order, divides the probability number line according to the symbol appearance probability of the pixel of interest to be encoded, and selects a partial section corresponding to the symbol series By doing so, the binary image is arithmetically encoded. The symbol appearance probability of the pixel of interest is estimated based on the prediction state of a reference pixel series (template) composed of a plurality of already encoded pixels.
In FIG. 1, a
The previous
[0014]
In the image encoding method, a reference pixel sequence (template) that is referred to when each target pixel in the
Pixel of interest I8 Reference pixel series T0 Is the pixel I0 ~ I7 This is a pixel series of 8 pixels. Pixel of interest I9 Reference pixel series T1 Is the pixel of interest I8 Reference pixel series T0 Pixel I8 Pixel I combined0 ~ I8 This is a pixel series of 9 pixels. Pixel of interest ITenReference pixel series T2 Is the pixel of interest I9 Reference pixel series T1 Pixel I9 Pixel I combined0 ~ I9 This is a pixel series of 10 pixels.
Pixel of interest I11Reference pixel series TThree Is the pixel of interest ITenReference pixel series T2 Pixel ITenPixel I combined0 ~ ITenThis is a pixel series of 11 pixels. Subsequent pixel of interest I12~ I15Reference pixel series TFour ~ T7 Is a pixel series of 11 pixels, in which the reference pixel series of the previous target pixel is shifted by one pixel in the main scanning direction as the target pixel shifts by one pixel in the main scanning direction.
As can be understood from FIG. 1, the pixel of interest I15Each pixel of interest except for becomes a reference pixel of the subsequent pixel of interest. Pixel of interest I8 For each pixel of interest excluding, the prediction efficiency is improved by referring to the immediately preceding pixel on the left in the figure.
[0015]
As described above, according to the image coding method of the specific example, the
[0016]
The
Note that each target pixel in the
In addition, since the
[0017]
Further, for the target pixels before and after in the
[0018]
<Image encoding device>
Next, an image encoding apparatus that implements the image encoding method will be described.
FIG. 2 is a block diagram showing a configuration of an image coding apparatus according to a specific example of the present invention.
As shown in FIG. 2, the image encoding device includes an
[0019]
The
The high-
The image data
The encoding block setting unit 13a sets the
[0020]
The prediction
The reference pixel series setting unit 14a0 ~ T7 Is represented by a 3-bit index of
As shown in FIG.0 Has an index of 000 and T1 Index is 001 and T7 The index of is represented by 111.
The predicted
st (i), (i = 0,1,2, ..., 7)
The reference pixel series T set by the reference pixel series setting unit 14a0 ~ T7 Calculate based on
[0021]
The prediction state st (0) of the target pixel I8 is an 8-bit integer value of the pixels I0 to I7.
I7 I6 I5 I4 I3 I2 I1 I0
It is.
The prediction state st (1) of the pixel of interest I9 is a 9-bit integer value of the pixels I0 to I8.
st (1) = st (0) + (I8 << 8)
Is required. Here, << n represents shifting left by n bits (multiplying the value by 2n). That is, st (1) is a pixel I8 on the MSB (most significant bit) side of st (0).
Can be obtained by combining
The prediction state st (2) of the pixel of interest I10 is a 10-bit integer value of the pixels I0 to I9.
st (2) = st (1) + (I9 << 9)
Obtained by
The prediction state st (3) of the pixel of interest I11 is pixels I0 to I.10 11-bit integer value of
st (3) = st (3) + (I10 << 10)
Is obtained.
[0022]
The prediction state st (4) of the pixel of interest I12 is the pixel I1 ~ I11 11-bit integer value of
st (4) = (st (3) + (I11 << 11)) >> 1
Is obtained. Here, >> n represents shifting right by n bits (multiplying the value by 2-n), and the fractional part (lower 1 bit) is ignored.
Similarly, the prediction states st (5) to st (7) of the target pixels I13 to I15 are respectively
st (5) = (st (4) + (I12 << 11)) >> 1
st (6) = (st (5) + (I13 << 11)) >> 1
st (7) = (st (6) + (I14 << 11)) >> 1
Is required.
The prediction
[0023]
For each prediction state of the target pixel calculated by the prediction
The probability estimation table 15a counts the 0 and 1 symbol appearance frequencies of already encoded pixels for each prediction state calculated by the prediction
The symbol appearance
The arithmetic
The
[0024]
FIG. 3 is a flowchart showing the operation of the image encoding apparatus shown in FIG.
Note that the target pixel I in the
In step S1, the coding parameters of the arithmetic
In step S2, the
[0025]
In step S4, the prediction
In step S6, the
[0026]
If there is a next target pixel in the
[0027]
As described above, according to the image coding apparatus of the specific example, the
Therefore, unlike the conventional image encoding device, it is not necessary to read out the pixels constituting the reference pixel series from the image memory every time the pixel of interest moves in the main scanning direction, and the number of memory accesses to the image memory is reduced. Therefore, the encoding process can be speeded up.
[0028]
Further, the reference pixel series setting unit 14a sets the subsequent reference pixel series by combining the subsequent pixels with the rear end pixels of the reference pixel series of the previous target pixel, and the prediction
Therefore, the calculation process of the prediction state can be simplified and the calculation amount can be reduced, so that the encoding process can be speeded up.
[0029]
<Image decoding device>
Next, an image decoding apparatus for decoding the arithmetic code encoded by the image encoding apparatus shown in FIG. 2 will be described.
FIG. 4 is a block diagram showing a configuration of an image decoding apparatus according to a specific example of the present invention.
As shown in FIG. 4, the image decoding apparatus includes a
[0030]
The
The arithmetic
The prediction
[0031]
The binary image decoded by the arithmetic
The image data
The decoding block setting unit 25a sets the
The high-
[0032]
FIG. 5 is a flowchart showing the operation of the image decoding apparatus shown in FIG.
Note that the target pixel I in the
In step S11, the decoding parameters of the arithmetic
In step S12, the
[0033]
In step S <b> 14, the prediction
In step S16, arithmetic decoding processing is performed by the arithmetic
[0034]
If there is a next target pixel in the
[0035]
As described above, according to the image decoding apparatus of the specific example, the
Therefore, unlike the conventional image decoding apparatus, it is not necessary to read out the pixels constituting the reference pixel series from the image memory every time the pixel of interest moves in the main scanning direction, and the number of memory accesses to the image memory is reduced. Therefore, the decoding process can be speeded up.
[0036]
Further, the reference pixel series setting unit 26a sets the subsequent reference pixel series by combining the subsequent pixels with the rear end pixels of the reference pixel series of the previous target pixel, and the prediction
Therefore, the calculation process of the prediction state can be simplified and the calculation amount can be reduced, so that the decoding process can be speeded up.
[0037]
In the above specific example, the
In addition, it is possible to create programs for executing the operations of the image encoding device and the image decoding device according to the specific example and record them on a recording medium such as a flexible disk or a CD-ROM. If these programs are executed by a computer, an image encoding device and an image decoding device can be provided at low cost.
[0038]
The encoding processing times of the image encoding apparatus of the present invention shown in FIG. 2 and the conventional QM coder applied to JPEG and JBIG were compared by experiments.
FIG. 6 is a diagram showing a template referred to by the target pixel of the QM coder.
Note that the symbol appearance
Experimental conditions
Image: CCITT (ITU-T) No. 1
Computer: Sun Microsystems Sun4
Experimental result
Processing time of conventional image encoding device: 7.39 sec
Processing time of the image coding apparatus of the present invention: 4.16 sec
As a result, the processing time was reduced to nearly half.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram for explaining an outline of an image coding method according to one specific example of the present invention.
FIG. 2 is a block diagram illustrating a configuration of an image encoding device according to a specific example of the present invention.
FIG. 3 is a flowchart showing an operation of the image encoding device shown in FIG. 3;
FIG. 4 is a block diagram illustrating a configuration of an image decoding apparatus according to a specific example of the present invention.
FIG. 5 is a flowchart showing an operation of the image decoding apparatus shown in FIG. 4;
FIG. 6 is a diagram showing a template referred to by a pixel of interest of a conventional QM coder.
[Explanation of symbols]
1 Pixel series of interest
2 Previous line pixel series
3 Coding block
11 Image memory
12 High-speed memory
13 Image data access controller
13a Coding block setting unit
14 Predicted state calculation unit
14a Reference pixel series setting unit
15 Symbol appearance probability estimation unit
15a probability estimation table
16 Arithmetic code component
17 Code memory
Claims (8)
前記画像記憶部より高速なデータアクセス速度を有する高速アクセス記憶部を準備するステップと、
順次に着目画素となる複数の画素からなる着目画素系列を設定する着目画素系列設定ステップと、
前記着目画素系列設定ステップにより設定された着目画素系列に対し、既に符号化済みの複数の画素を含む前記着目画素系列以前の複数の画素からなる第2参照画素系列を設定する第2参照画素系列設定ステップと、
前記着目画素系列設定ステップにより設定された着目画素系列及び前記第2参照画素系列設定ステップにより設定された第2参照画素系列を前記画像記憶部から一括して読み出し、前記高速アクセス記憶部に記憶する記憶制御ステップと、
前記高速アクセス記憶部に記憶された前記着目画素系列及び第2参照画素系列内において、前記着目画素系列内の各着目画素に対応するそれぞれの前記第1参照画素系列を、前記着目画素系列内の着目画素の移動に応じて相対位置を変化させて設定する第1参照画素系列設定ステップとを含み、
前記シンボル出現確率推定ステップは、前記第1参照系列設定ステップで設定された第1参照画像系列の状態毎に異なる確率推定論理を選択するステップを含むことを特徴とする画像符号化方法。A method of encoding a binary image composed of a plurality of pixels, comprising: preparing an image storage unit for storing the binary image; and predicting a target pixel to be encoded from a plurality of already encoded pixels A prediction state calculation step that is calculated based on the first reference pixel series, a symbol appearance probability estimation step that estimates a symbol appearance probability of the pixel of interest based on the prediction state calculated by the prediction state calculation step, and the symbol appearance An image encoding method including an arithmetic code constructing step for constructing an arithmetic code of a pixel of interest using the symbol appearance probability estimated by the probability estimating step as an encoding parameter,
Preparing a high-speed access storage unit having a higher data access speed than the image storage unit;
A pixel-of-interest setting step for setting a pixel-of-interest sequence consisting of a plurality of pixels that are sequentially the pixel of interest;
A second reference pixel series for setting a second reference pixel series including a plurality of pixels before the target pixel series including a plurality of already encoded pixels with respect to the target pixel series set by the target pixel series setting step. Configuration steps;
The target pixel series set by the target pixel series setting step and the second reference pixel series set by the second reference pixel series setting step are collectively read from the image storage unit and stored in the fast access storage unit A memory control step;
The first reference pixel series corresponding to each target pixel in the target pixel series in the target pixel series and the second reference pixel series stored in the high-speed access storage unit is stored in the target pixel series. look including a first reference pixel series setting step of setting by changing the relative position in response to movement of the target pixel,
The symbol appearance probability estimation step includes a step of selecting a different probability estimation logic for each state of the first reference image sequence set in the first reference sequence setting step .
前記復号画像記憶部のデータアクセス速度より高速なデータアクセス速度を有し、前記復号画像記憶部に記憶された画像の一部および前記算術符号復号化ステップにより復号化された複数の画素を一時的に記憶する高速アクセス記憶部を準備するステップと、
順次に着目画素となる複数の画素からなる着目画素系列を設定する着目画素系列設定ステップと、
前記着目画素系列設定ステップにより設定された着目画素系列に対し、既に復号化済みの複数の画素からなる第2参照画素系列を設定する第2参照画素系列設定ステップと、
前記第2参照画素系列設定ステップにより設定された第2参照画素系列を前記復号画像記憶部から一括して読み出し、前記高速アクセス記憶部に記憶する記憶制御ステップと、
前記記憶制御ステップにより前記高速アクセス記憶部に記憶された第2参照画素系列および前記着目画素系列設定ステップにより設定された着目画素系列のうち前記算術符号復号化ステップにより復号化されて前記高速アクセス記憶部に記憶された画素を結合して第3参照画素系列を設定する第3参照画素系列設定ステップと、
前記第3参照画素系列設定ステップにより設定された第3参照画素系列内において、前記着目画素系列内の各着目画素に対応するそれぞれの前記第1参照画素系列を、前記着目画素系列内の着目画素の移動に応じて相対位置を変化させて設定する第1参照画素系列設定ステップとを含み、
前記シンボル出現確率推定ステップは、前記第1参照系列設定ステップで設定された第 1参照画像系列の状態毎に異なる確率推定論理を選択するステップを含むことを特徴とする画像復号化方法。A method for decoding arithmetically encoded binary image data, comprising a step of preparing a decoded image storage unit for storing a decoded binary image, and a prediction state of a target pixel to be decoded has already been decoded A prediction state calculation step of calculating based on a first reference pixel series consisting of a plurality of pixels, and a symbol appearance probability estimation step of estimating the symbol appearance probability of the pixel of interest based on the prediction state calculated by the prediction state calculation step And an arithmetic code decoding step for decoding the pixel of interest using the symbol appearance probability estimated by the symbol appearance probability estimation step as a decoding parameter,
The data access speed is higher than the data access speed of the decoded image storage unit, and a part of the image stored in the decoded image storage unit and a plurality of pixels decoded by the arithmetic code decoding step are temporarily stored Preparing a high-speed access storage unit for storage in
A pixel-of-interest setting step for setting a pixel-of-interest sequence consisting of a plurality of pixels that are sequentially the pixel of interest;
The relative target pixel sequence set by the target pixel sequence setting step, the previously second reference pixel series setting step of setting a second reference pixel series comprising a plurality of pixels of decrypt previously,
A storage control step of collectively reading out the second reference pixel series set in the second reference pixel series setting step from the decoded image storage unit and storing it in the high-speed access storage unit;
Of the second reference pixel series stored in the high-speed access storage unit by the storage control step and the target pixel series set by the target pixel series setting step, the fast-access storage is decoded by the arithmetic code decoding step. A third reference pixel series setting step for setting the third reference pixel series by combining the pixels stored in the unit;
In the third reference pixel series set by the third reference pixel series setting step, each of the first reference pixel series corresponding to each target pixel in the target pixel series is set as the target pixel in the target pixel series. look including a first reference pixel series setting step of setting by changing the relative position in response to the movement,
The symbol appearance probability estimation step includes a step of selecting a different probability estimation logic for each state of the first reference image sequence set in the first reference sequence setting step .
前記画像記憶部より高速なデータアクセス速度を有する高速アクセス記憶部と、
順次に着目画素となる複数の画素からなる着目画素系列を設定する着目画素系列設定部と、
前記着目画素系列設定部により設定された着目画素系列に対し、既に符号化済みの複数の画素を含む前記着目画素系列以前の複数の画素からなる第2参照画素系列を設定する第2参照画素系列設定部と、
前記着目画素系列設定部により設定された着目画素系列及び前記第2参照画素系列設定部により設定された第2参照画素系列を前記画像記憶部から一括して読み出し、前記高速アクセス記憶部に記憶する記憶制御部と、
前記高速アクセス記憶部に記憶された着目画素系列及び第2参照画素系列内において、前記着目画素系列内の各着目画素に対応するそれぞれの前記第1参照画素系列を、前記着目画素系列内の着目画素の移動に応じて相対位置を変化させて設定する第1参照画素系列設定部とを備え、
前記シンボル出現確率推定部は、前記第1参照系列設定部で設定された第1参照画像系列の状態毎に異なる確率推定論理を選択することを特徴とする画像符号化装置。An apparatus for encoding a binary image composed of a plurality of pixels, an image storage unit for storing the binary image, and a first reference composed of a plurality of pixels that have already been encoded with a predicted state of a pixel of interest to be encoded A prediction state calculation unit that calculates based on a pixel series, a symbol appearance probability estimation unit that estimates a symbol appearance probability of a pixel of interest based on the prediction state calculated by the prediction state calculation unit, and the symbol appearance probability estimation unit In an image encoding device including an arithmetic code configuration unit that configures an arithmetic code of a pixel of interest using an estimated symbol appearance probability as an encoding parameter,
A high-speed access storage unit having a higher data access speed than the image storage unit;
A pixel-of-interest setting unit that sets a pixel-of-interest sequence consisting of a plurality of pixels that are sequentially target pixels;
Second reference pixel series for setting a second reference pixel series including a plurality of pixels before the target pixel series including a plurality of already encoded pixels with respect to the target pixel series set by the target pixel series setting unit A setting section;
The target pixel series set by the target pixel series setting unit and the second reference pixel series set by the second reference pixel series setting unit are collectively read from the image storage unit and stored in the fast access storage unit A storage controller;
In the target pixel series and the second reference pixel series stored in the high-speed access storage unit, the first reference pixel series corresponding to each target pixel in the target pixel series is set as the target in the target pixel series. e Bei a first reference pixel sequence setting unit that sets by changing the relative position in response to movement of the pixel,
The image encoding apparatus , wherein the symbol appearance probability estimation unit selects different probability estimation logic for each state of the first reference image sequence set by the first reference sequence setting unit .
前記復号画像記憶部のデータアクセス速度より高速なデータアクセス速度を有し、前記復号画像記憶部に記憶された画像の一部および前記算術符号復号化部により復号化された複数の画素を一時的に記憶する高速アクセス記憶部と、
順次に着目画素となる複数の画素からなる着目画素系列を設定する着目画素系列設定部と、
前記着目画素系列設定部により設定された着目画素系列に対し、既に復号化済みの複数の画素からなる第2参照画素系列を設定する第2参照画素系列設定部と、
前記第2参照画素系列設定部により設定された第2参照画素系列を前記復号画像記憶部から一括して読み出し、前記高速アクセス記憶部に記憶する記憶制御部と、
前記記憶制御部により前記高速アクセス記憶部に記憶された第2参照画素系列および前記着目画素系列設定部により設定された着目画素系列のうち前記算術符号復号化部により復号化されて前記高速アクセス記憶部に記憶された画素を結合して第3参照画素系列を設定する第3参照画素系列設定部と、
前記第3参照画素系列設定部により設定された第3参照画素系列内において、前記着目画素系列内の各着目画素に対応するそれぞれの前記第1参照画素系列を、前記着目画素系列内の着目画素の移動に応じて相対位置を変化させて設定する第1参照画素系列設定部とを備え、
前記シンボル出現確率推定部は、前記第1参照系列設定部で設定された第1参照画像系列の状態毎に異なる確率推定論理を選択することを特徴とする画像復号化装置。A prediction state calculation unit that decodes arithmetically encoded binary image data and calculates a prediction state of a pixel of interest to be decoded based on a first reference pixel sequence that includes a plurality of already decoded pixels A symbol appearance probability estimation unit that estimates the symbol appearance probability of the pixel of interest based on the prediction state calculated by the prediction state calculation unit, and the symbol appearance probability estimated by the symbol appearance probability estimation unit as a decoding parameter In an image decoding device including an arithmetic code decoding unit that decodes a pixel of interest, and a decoded image storage unit that stores a binary image decoded by the arithmetic code decoding unit,
The data access speed is higher than the data access speed of the decoded image storage unit, and a part of the image stored in the decoded image storage unit and a plurality of pixels decoded by the arithmetic code decoding unit are temporarily stored A high-speed access storage unit for storing;
A pixel-of-interest setting unit that sets a pixel-of-interest sequence consisting of a plurality of pixels that are sequentially target pixels;
The relative target pixel sequence set by the target pixel sequence setting unit, and the second reference pixel series setting unit for setting a second reference pixel series already composed of a plurality of pixels of decrypt previously,
A storage control unit that collectively reads out the second reference pixel series set by the second reference pixel series setting unit from the decoded image storage unit and stores the same in the high-speed access storage unit;
Of the second reference pixel sequence stored in the high-speed access storage unit by the storage control unit and the target pixel sequence set by the target pixel sequence setting unit, the arithmetic code decoding unit decodes the second reference pixel sequence and the high-speed access storage A third reference pixel series setting unit that sets the third reference pixel series by combining the pixels stored in the unit;
In the third reference pixel series set by the third reference pixel series setting unit, the first reference pixel series corresponding to each target pixel in the target pixel series is set as the target pixel in the target pixel series. Bei example a first reference pixel sequence setting unit that sets by changing the relative position in response to the movement,
The image decoding apparatus , wherein the symbol appearance probability estimation unit selects different probability estimation logic for each state of the first reference image sequence set by the first reference sequence setting unit .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24343997A JP3811727B2 (en) | 1997-08-25 | 1997-08-25 | Image encoding / decoding method and apparatus thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24343997A JP3811727B2 (en) | 1997-08-25 | 1997-08-25 | Image encoding / decoding method and apparatus thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH1169171A JPH1169171A (en) | 1999-03-09 |
JP3811727B2 true JP3811727B2 (en) | 2006-08-23 |
Family
ID=17103901
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24343997A Expired - Fee Related JP3811727B2 (en) | 1997-08-25 | 1997-08-25 | Image encoding / decoding method and apparatus thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3811727B2 (en) |
-
1997
- 1997-08-25 JP JP24343997A patent/JP3811727B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH1169171A (en) | 1999-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100459715C (en) | Inter-block interpolation prediction coder, decoder, coding method and decoding method | |
US6038258A (en) | Encoding and decoding system of motion image containing arbitrary object | |
JP3364074B2 (en) | Bit plane coding device | |
US20090168889A1 (en) | Inter-frame predicted image synthesizing method | |
JP2798172B2 (en) | Image encoding / decoding device | |
US7515761B2 (en) | Encoding device and method | |
JP3466162B2 (en) | Image decoding apparatus and image decoding method | |
US7148822B2 (en) | Decoder and decoding method | |
JPH0721391A (en) | Method for encoding of position of change at inside of sequence of video image | |
JP3811727B2 (en) | Image encoding / decoding method and apparatus thereof | |
JP3269359B2 (en) | Data encoding device and method, and data decoding device and method | |
US6526178B1 (en) | Picture mapping apparatus and picture mapping method, and picture generation apparatus and picture generation method | |
JP3434088B2 (en) | Image data conversion device and its inverse conversion device | |
JPH07193809A (en) | Coding and decoding method for picture data | |
JP4514666B2 (en) | Video encoding device | |
JP3778661B2 (en) | Image encoding / decoding method and apparatus thereof | |
JP3632993B2 (en) | Electronic zoom device and electronic zoom method | |
JP3859325B2 (en) | Image iterative transform decoding apparatus and method, and recording medium | |
JP2003198858A (en) | Encoder and decoder | |
JP2000299866A (en) | Method for encoding image | |
JP4293175B2 (en) | Code amount control method | |
JP3882828B2 (en) | Electronic zoom device and electronic zoom method | |
JPH11103463A (en) | Picture encoding method and storage medium | |
JP2003134346A (en) | Coding/decoding method an apparatus thereof | |
JPS63132573A (en) | Halftone image coding circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050823 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050906 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20051107 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20051206 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060206 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20060314 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060413 |
|
R150 | Certificate of patent (=grant) or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090609 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100609 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100609 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110609 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120609 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130609 Year of fee payment: 7 |
|
LAPS | Cancellation because of no payment of annual fees |