JP2004236226A - Method and apparatus for image decompressing, program, and storage medium - Google Patents

Method and apparatus for image decompressing, program, and storage medium Download PDF

Info

Publication number
JP2004236226A
JP2004236226A JP2003025132A JP2003025132A JP2004236226A JP 2004236226 A JP2004236226 A JP 2004236226A JP 2003025132 A JP2003025132 A JP 2003025132A JP 2003025132 A JP2003025132 A JP 2003025132A JP 2004236226 A JP2004236226 A JP 2004236226A
Authority
JP
Japan
Prior art keywords
code
program
image
decoding program
new image
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.)
Pending
Application number
JP2003025132A
Other languages
Japanese (ja)
Inventor
Hiroshi Kakii
弘 柿井
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2003025132A priority Critical patent/JP2004236226A/en
Publication of JP2004236226A publication Critical patent/JP2004236226A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image decompressing method capable of dealing with decompressing a compressed code which have been compressed by various image standards, even if the image file does not have image data of a plurality of image formats. <P>SOLUTION: When it is determined that the compressed codes to be decompressed is of a new image standard which cannot be decompressed by the existing decoding program on the basis of code-relating information managed by a marker segment (Y in S2), a decoding program corresponding to the new image standard is obtained (S3) according to the program location information indicating the location of the decoding program for applying decompression to the compressed codes included in the code-related information, and the compressed codes compressed by the new image standard are decompressed by using the decoding program corresponding to the obtained new image standard (S4). In this way, the decompression of the compressed codes compressed by various image standards can be dealt with, even if the image file does not have image data of a plurality of image formats. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、画像伸長方法、画像伸長装置、プログラム及び記憶媒体に関する。
【0002】
【従来の技術】
画像入力技術およびその出力技術の進歩により、画像に対して高精細化の要求が、近年非常に高まっている。例えば、画像入力装置として、デジタルカメラ(Digital Camera)を例にあげると、300万以上の画素数を持つ高性能な電荷結合素子(CCD:Charge Coupled Device)の低価格化が進み、普及価格帯の製品においても広く用いられるようになってきた。そして、500万画素の製品の登場も間近である。そして、このピクセル数の増加傾向は、なおしばらくは続くと言われている。
【0003】
一方、画像出力・表示装置に関しても、例えば、レーザプリンタ、インクジェットプリンタ、昇華型プリンタ等のハード・コピー分野における製品、そして、CRTやLCD(液晶表示デバイス)、PDP(プラズマ表示デバイス)等のフラットパネルディスプレイのソフト・コピー分野における製品の高精細化・低価格化は目を見張るものがある。
【0004】
こうした高性能・低価格な画像入出力製品の市場投入効果によって、高精細画像の大衆化が始まっており、今後はあらゆる場面で、高精細画像の需要が高まると予想されている。実際、パーソナルコンピュータ(Personal Computer)やインターネットをはじめとするネットワークに関連する技術の発達は、こうしたトレンドをますます加速させている。特に最近は、携帯電話やノートパソコン等のモバイル機器の普及速度が非常に大きく、高精細な画像を、あらゆる地点から通信手段を用いて伝送あるいは受信する機会が急増している。
【0005】
これらを背景に、高精細画像の取扱いを容易にする画像圧縮伸長技術に対する高性能化あるいは多機能化の要求は、今後ますます強くなっていくことは必至と思われる。
【0006】
そこで、近年においては、こうした要求を満たす画像圧縮方式の一つとして、高圧縮率でも高画質な画像を復元可能なJPEG2000という新しい方式が規格化されつつある。かかるJPEG2000においては、画像を矩形領域(タイル)に分割することにより、少ないメモリ環境下で圧縮伸長処理を行うことが可能である。すなわち、個々のタイルが圧縮伸長プロセスを実行する際の基本単位となり、圧縮伸長動作はタイル毎に独立に行うことができる。
【0007】
ところが、このようなJPEG2000という新しい方式で圧縮符号化された画像データを伸長する手段を持たない装置では、JPEG2000方式で圧縮符号化された画像を表示することができないという問題がある。
【0008】
また、JPEG2000方式で圧縮符号化された画像データであってもそのバージョンが異なる場合には、古いバージョンのJPEG2000方式にしか対応していない装置では、新しいバージョンのJPEG2000方式で圧縮符号化された画像を表示することができないという事態も生じ得る。
【0009】
そこで、このような問題を解決すべく、一つの画像ファイルの中に二つの画像フォーマットを有する方式が提案されている。より具体的には、JPEG2000画像ファイルの中にJPEG画像を包含することによって、JPEG2000のデコード機能を持たない端末でも画像の表示を可能としているものである(例えば、特許文献1参照)。
【0010】
【特許文献1】
特開2002−44663公報
【0011】
【発明が解決しようとする課題】
しかしながら、特許文献1に提案されている技術によれば、一つの画像ファイルの中に二つの画像フォーマット(JPEG2000画像フォーマット及びJPEG画像フォーマット)の画像データを有するため、メモリ容量を多く消費してしまうという問題がある。
【0012】
本発明の目的は、一つの画像ファイルの中に複数の画像フォーマットの画像データを有さなくとも、各種の画像規格で圧縮された圧縮符号の伸長処理に対応することができる画像伸長方法、画像伸長装置、プログラム及び記憶媒体を提供することである。
【0013】
【課題を解決するための手段】
請求項1記載の発明の画像伸長方法は、画像を符号化した圧縮符号をデコードプログラムを用いて伸長する画像伸長方法であって、前記圧縮符号の圧縮に際し、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理するステップと、伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定するステップと、前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムを取得するステップと、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長するステップと、を含む。
【0014】
したがって、伸長対象の圧縮符号が既存のデコードプログラムにより伸長不可能な新規の画像規格であるとマーカセグメントで管理されている符号関連情報に基づいて判定された場合には、符号関連情報に含まれる当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報に従い、新規の画像規格に対応したデコードプログラムが取得され、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格で圧縮された圧縮符号が伸長される。これにより、既存のデコードプログラムにより伸長不可能な新規の画像規格で圧縮された圧縮符号について、新規の画像規格に対応したデコードプログラムを取得してから当該圧縮符号を伸長することが可能になるので、一つの画像ファイルの中に複数の画像フォーマットの画像データを有さなくとも、各種の画像規格で圧縮された圧縮符号の伸長処理に対応することが可能になる。
【0015】
請求項2記載の発明は、請求項1記載の画像伸長方法において、符号フォーマットはJPEG2000の符号フォーマットであって、前記符号関連情報を管理する前記マーカセグメントはCOMマーカである。
【0016】
したがって、ファイルの互換性を維持することが可能になり、汎用性を有することになる。
【0017】
請求項3記載の発明は、請求項1または2記載の画像伸長方法において、前記プログラム所在情報は、プログラム保管装置に保管されている新規の画像規格に対応したデコードプログラムを特定するURL(Uniform Resource Locator)である。
【0018】
したがって、画像ファイルのサイズは、本来の画像ファイルのサイズと略同じサイズでありながら、最新版のデコードプログラムを使用して伸長処理を実行することが可能になる。
【0019】
請求項4記載の発明の画像伸長装置は、画像を符号化した圧縮符号であって、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理した前記圧縮符号を、デコードプログラムを用いて伸長する画像伸長装置において、伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定する画像規格判定手段と、前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得するプログラム取得手段と、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長する画像伸長手段と、を備える。
【0020】
したがって、伸長対象の圧縮符号が既存のデコードプログラムにより伸長不可能な新規の画像規格であるとマーカセグメントで管理されている符号関連情報に基づいて判定された場合には、符号関連情報に含まれる当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報に従い、新規の画像規格に対応したデコードプログラムがネットワークを介して接続されたプログラム保管装置から取得され、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格で圧縮された圧縮符号が伸長される。これにより、既存のデコードプログラムにより伸長不可能な新規の画像規格で圧縮された圧縮符号について、新規の画像規格に対応したデコードプログラムを取得してから当該圧縮符号を伸長することが可能になるので、一つの画像ファイルの中に複数の画像フォーマットの画像データを有さなくとも、各種の画像規格で圧縮された圧縮符号の伸長処理に対応することが可能になる。
【0021】
請求項5記載の発明は、請求項4記載の画像伸長装置において、符号フォーマットはJPEG2000の符号フォーマットであって、前記符号関連情報を管理する前記マーカセグメントはCOMマーカである。
【0022】
したがって、ファイルの互換性を維持することが可能になり、汎用性を有することになる。
【0023】
請求項6記載の発明は、請求項4または5記載の画像伸長装置において、前記プログラム所在情報は、プログラム保管装置に保管されている新規の画像規格に対応したデコードプログラムを特定するURL(Uniform Resource Locator)である。
【0024】
したがって、画像ファイルのサイズは、本来の画像ファイルのサイズと略同じサイズでありながら、最新版のデコードプログラムを使用して伸長処理を実行することが可能になる。
【0025】
請求項7記載の発明のプログラムは、画像を符号化した圧縮符号であって、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理した前記圧縮符号を、デコードプログラムを用いて伸長する画像伸長装置が有するコンピュータにインストールされるか、あるいは解釈されて実行されるプログラムであって、伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定する画像規格判定機能と、前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得するプログラム取得機能と、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長する画像伸長機能と、を前記コンピュータに実行させる。
【0026】
したがって、伸長対象の圧縮符号が既存のデコードプログラムにより伸長不可能な新規の画像規格であるとマーカセグメントで管理されている符号関連情報に基づいて判定された場合には、符号関連情報に含まれる当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報に従い、新規の画像規格に対応したデコードプログラムがネットワークを介して接続されたプログラム保管装置から取得され、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格で圧縮された圧縮符号が伸長される。これにより、既存のデコードプログラムにより伸長不可能な新規の画像規格で圧縮された圧縮符号について、新規の画像規格に対応したデコードプログラムを取得してから当該圧縮符号を伸長することが可能になるので、一つの画像ファイルの中に複数の画像フォーマットの画像データを有さなくとも、各種の画像規格で圧縮された圧縮符号の伸長処理に対応することが可能になる。
【0027】
請求項8記載の発明の記憶媒体は、画像を符号化した圧縮符号であって、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理した前記圧縮符号を、デコードプログラムを用いて伸長する画像伸長装置が有するコンピュータにインストールされるか、あるいは解釈されて実行されるプログラムを記憶する記憶媒体であって、伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定する画像規格判定機能と、前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得するプログラム取得機能と、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長する画像伸長機能と、を前記コンピュータに実行させるプログラムを記憶する。
【0028】
したがって、伸長対象の圧縮符号が既存のデコードプログラムにより伸長不可能な新規の画像規格であるとマーカセグメントで管理されている符号関連情報に基づいて判定された場合には、符号関連情報に含まれる当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報に従い、新規の画像規格に対応したデコードプログラムがネットワークを介して接続されたプログラム保管装置から取得され、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格で圧縮された圧縮符号が伸長される。これにより、既存のデコードプログラムにより伸長不可能な新規の画像規格で圧縮された圧縮符号について、新規の画像規格に対応したデコードプログラムを取得してから当該圧縮符号を伸長することが可能になるので、一つの画像ファイルの中に複数の画像フォーマットの画像データを有さなくとも、各種の画像規格で圧縮された圧縮符号の伸長処理に対応することが可能になる。
【0029】
【発明の実施の形態】
最初に、本実施の形態の前提となる「階層符号化アルゴリズム」及び「JPEG2000アルゴリズム」の概要について説明する。
【0030】
図1は、JPEG2000方式の基本となる階層符号化アルゴリズムを実現するシステムの機能ブロック図である。このシステムは、色空間変換・逆変換部101、2次元ウェーブレット変換・逆変換部102、量子化・逆量子化部103、エントロピー符号化・復号化部104、タグ処理部105の各機能ブロックにより構成されている。
【0031】
このシステムが従来のJPEGアルゴリズムと比較して最も大きく異なる点の一つは変換方式である。JPEGでは離散コサイン変換(DCT:Discrete Cosine Transform)を用いているのに対し、この階層符号化アルゴリズムでは、2次元ウェーブレット変換・逆変換部102において、離散ウェーブレット変換(DWT:Discrete Wavelet Transform)を用いている。DWTはDCTに比べて、高圧縮領域における画質が良いという長所を有し、この点が、JPEGの後継アルゴリズムであるJPEG2000でDWTが採用された大きな理由の一つとなっている。
【0032】
また、他の大きな相違点は、この階層符号化アルゴリズムでは、システムの最終段に符号形成を行うために、タグ処理部105の機能ブロックが追加されていることである。このタグ処理部105で、画像の圧縮動作時には圧縮データが符号列データとして生成され、伸長動作時には伸長に必要な符号列データの解釈が行われる。そして、符号列データによって、JPEG2000は様々な便利な機能を実現できるようになった。例えば、ブロック・ベースでのDWTにおけるオクターブ分割に対応した任意の階層(デコンポジション・レベル)で、静止画像の圧縮伸長動作を自由に停止させることができるようになる(後述する図3参照)。
【0033】
原画像の入出力部分には、色空間変換・逆変換101が接続される場合が多い。例えば、原色系のR(赤)/G(緑)/B(青)の各コンポーネントからなるRGB表色系や、補色系のY(黄)/M(マゼンタ)/C(シアン)の各コンポーネントからなるYMC表色系から、YUVあるいはYCbCr表色系への変換又は逆変換を行う部分がこれに相当する。
【0034】
次に、JPEG2000アルゴリズムについて説明する。
【0035】
カラー画像は、一般に、図2に示すように、原画像の各コンポーネント111(ここではRGB原色系)が、矩形をした領域によって分割される。この分割された矩形領域は、一般にブロックあるいはタイルと呼ばれているものであるが、JPEG2000では、タイルと呼ぶことが一般的であるため、以下、このような分割された矩形領域をタイルと記述することにする(図2の例では、各コンポーネント111が縦横4×4、合計16個の矩形のタイル112に分割されている)。このような個々のタイル112(図2の例で、R00,R01,…,R15/G00,G01,…,G15/B00,B01,…,B15)が、画像データの圧縮伸長プロセスを実行する際の基本単位となる。従って、画像データの圧縮伸長動作は、コンポーネントごと、また、タイル112ごとに、独立に行われる。
【0036】
画像データの符号化時には、各コンポーネント111の各タイル112のデータが、図1の色空間変換・逆変換部101に入力され、色空間変換を施された後、2次元ウェーブレット変換部102で2次元ウェーブレット変換(順変換)が施されて、周波数帯に空間分割される。
【0037】
図3には、デコンポジション・レベル数が3の場合の、各デコンポジション・レベルにおけるサブバンドを示している。すなわち、原画像のタイル分割によって得られたタイル原画像(0LL)(デコンポジション・レベル0)に対して、2次元ウェーブレット変換を施し、デコンポジション・レベル1に示すサブバンド(1LL,1HL,1LH,1HH)を分離する。そして引き続き、この階層における低周波成分1LLに対して、2次元ウェーブレット変換を施し、デコンポジション・レベル2に示すサブバンド(2LL,2HL,2LH,2HH)を分離する。順次同様に、低周波成分2LLに対しても、2次元ウェーブレット変換を施し、デコンポジション・レベル3に示すサブバンド(3LL,3HL,3LH,3HH)を分離する。図3では、各デコンポジション・レベルにおいて符号化の対象となるサブバンドを、網掛けで表してある。例えば、デコンポジション・レベル数を3としたとき、網掛けで示したサブバンド(3HL,3LH,3HH,2HL,2LH,2HH,1HL,1LH,1HH)が符号化対象となり、3LLサブバンドは符号化されない。
【0038】
次いで、指定した符号化の順番で符号化の対象となるビットが定められ、図1に示す量子化・逆量子化部103で対象ビット周辺のビットからコンテキストが生成される。
【0039】
この量子化の処理が終わったウェーブレット係数は、個々のサブバンド毎に、「プレシンクト」と呼ばれる重複しない矩形に分割される。これは、インプリメンテーションでメモリを効率的に使うために導入されたものである。図4に示したように、一つのプレシンクトは、空間的に一致した3つの矩形領域からなっている。更に、個々のプレシンクトは、重複しない矩形の「コード・ブロック」に分けられる。これは、エントロピー・コーディングを行う際の基本単位となる。
【0040】
ウェーブレット変換後の係数値は、そのまま量子化し符号化することも可能であるが、JPEG2000では符号化効率を上げるために、係数値を「ビットプレーン」単位に分解し、画素あるいはコード・ブロック毎に「ビットプレーン」に順位付けを行うことができる。
【0041】
ここで、図5はビットプレーンに順位付けする手順の一例を示す説明図である。図5に示すように、この例は、原画像(32×32画素)を16×16画素のタイル4つで分割した場合で、デコンポジション・レベル1のプレシンクトとコード・ブロックの大きさは、各々8×8画素と4×4画素としている。プレシンクトとコード・ブロックの番号は、ラスター順に付けられており、この例では、プレンシクトが番号0から3まで、コード・ブロックが番号0から3まで割り当てられている。タイル境界外に対する画素拡張にはミラーリング法を使い、可逆(5,3)フィルタでウェーブレット変換を行い、デコンポジション・レベル1のウェーブレット係数値を求めている。
【0042】
また、タイル0/プレシンクト3/コード・ブロック3について、代表的な「レイヤ」構成の概念の一例を示す説明図も図5に併せて示す。変換後のコード・ブロックは、サブバンド(1LL,1HL,1LH,1HH)に分割され、各サブバンドにはウェーブレット係数値が割り当てられている。
【0043】
レイヤの構造は、ウェーブレット係数値を横方向(ビットプレーン方向)から見ると理解し易い。1つのレイヤは任意の数のビットプレーンから構成される。この例では、レイヤ0,1,2,3は、各々、1,3,1,3のビットプレーンから成っている。そして、LSB(Least Significant Bit:最下位ビット)に近いビットプレーンを含むレイヤ程、先に量子化の対象となり、逆に、MSB(Most Significant Bit:最上位ビット)に近いレイヤは最後まで量子化されずに残ることになる。LSBに近いレイヤから破棄する方法はトランケーションと呼ばれ、量子化率を細かく制御することが可能である。このように、ビットプレーン(又はサブビットプレーン)を削っていない状態の符号から所定の圧縮率になるまで符号を破棄する処理はポスト量子化と呼ばれており、JPEG2000アルゴリズムの最も大きな特徴である。
【0044】
図1に示すエントロピー符号化・復号化部104では、コンテキストと対象ビットから確率推定によって、各コンポーネント111のタイル112に対する符号化を行う。こうして、原画像の全てのコンポーネント111について、タイル112単位で符号化処理が行われる。最後にタグ処理部105は、エントロピー符号化・復号化部104からの全符号化データを1本の符号列データ(コードストリーム)に結合するとともに、それにタグを付加する処理を行う。
【0045】
一方、復号化時には、画像データの符号化時とは逆に、各コンポーネント111の各タイル112の符号列データから画像データを生成する。この場合、タグ処理部105は、外部より入力した符号列データに付加されたタグ情報を解釈し、符号列データを各コンポーネント111の各タイル112の符号列データに分解し、その各コンポーネント111の各タイル112の符号列データ毎に復号化処理(伸長処理)を行う。このとき、符号列データ内のタグ情報に基づく順番で復号化の対象となるビットの位置が定められるとともに、量子化・逆量子化部103で、その対象ビット位置の周辺ビット(既に復号化を終えている)の並びからコンテキストが生成される。エントロピー符号化・復号化部104で、このコンテキストと符号列データから確率推定によって復号化を行い、対象ビットを生成し、それを対象ビットの位置に書き込む。このようにして復号化されたデータは周波数帯域毎に空間分割されているため、これを2次元ウェーブレット変換・逆変換部102で2次元ウェーブレット逆変換を行うことにより、画像データの各コンポーネントの各タイルが復元される。復元されたデータは色空間変換・逆変換部101によって元の表色系の画像データに変換される。
【0046】
以上が、「JPEG2000アルゴリズム」の概要である。
【0047】
以下、本発明の実施の一形態について説明する。なお、ここでは、JPEG2000を代表とする画像圧縮伸長技術に関する例について説明するが、言うまでもなく、本発明は以下の説明の内容に限定されるものではない。
【0048】
図6は、本発明が適用される画像伸長装置1を含むシステムを示すシステム構成図である。図6に示すように、本発明が適用される画像伸長装置1は、例えばパーソナルコンピュータであり、インターネットであるネットワーク5を介して各種画像データを記憶保持するサーバコンピュータSに接続可能とされている。また、サーバコンピュータSは、後述するデコードプログラムを保管するプログラム保管装置としても機能する。
【0049】
本実施の形態においては、サーバコンピュータSに記憶保持されている画像データは、「JPEG2000アルゴリズム」に従って生成された圧縮符号である。図7は、JPEG2000の符号フォーマットの概略構成を示すものである。符号フォーマットは、符号データの始まりを示すSOC(Start of Codestream)マーカで始まる。SOCマーカの後には符号化のパラメータや量子化のパラメータ等を記述したタグ情報であるメインヘッダ(Main Header)が続き、その後に実際の符号データが続く。実際の符号データは、SOT(Start of Tile−part)マーカで始まり、タグ情報であるタイルヘッダ(Tile Header)、SOD(Start of data)マーカ、タイルデータ(符号:bit stream)で構成される。これら画像全体に相当する符号データの後に、符号の終了を示すタグ情報であるEOC(End of Codestream)マーカが付加される。上述したようなメインヘッダ及びタイルヘッダには、当該圧縮符号に関連する符号関連情報を記述可能なコメントマーカ(COMマーカ)を備えることができる。
【0050】
本実施の形態においては、メインヘッダのコメントマーカには、図8に示すように、当該圧縮符号の画像規格、その画像規格のバージョン、当該圧縮符号を処理するためのデコードプログラムの在処(ここでは、デコードプログラムが保管されているWEBサーバのURL(Uniform Resource Locator))、画像を作成したツール名(プログラム名)、メーカー名等の当該圧縮符号に関連する符号関連情報が記述されている。
【0051】
図9は、画像伸長装置1のハードウェア構成を概略的に示すブロック図である。図9に示すように、画像伸長装置1は、情報処理を行うCPU(Central Processing Unit)6、情報を格納するROM(Read Only Memory)7及びRAM(Random Access Memory)8等の一次記憶装置、ネットワーク5を介してサーバコンピュータSからダウンロードした圧縮符号(図7参照)を記憶する記憶部であるHDD(Hard Disk Drive)10、情報を保管したり外部に情報を配布したり外部から情報を入手するためのCD−ROMドライブ12、ネットワーク5を介して外部の他のコンピュータと通信により情報を伝達するための通信制御装置13、処理経過や結果等を操作者に表示するCRT(Cathode Ray Tube)やLCD(Liquid Crystal Display)等の表示装置15、並びに操作者がCPU6に命令や情報等を入力するためのキーボードやマウス等の入力装置14等から構成されており、これらの各部間で送受信されるデータをバスコントローラ9が調停して動作する。
【0052】
RAM8は、各種データを書換え可能に記憶する性質を有していることから、CPU6の作業エリアとして機能し、例えば後述する画像表示処理におけるバッファメモリ等の役割を果たす。
【0053】
このような画像伸長装置1では、ユーザが電源を投入するとCPU6がROM7内のローダーというプログラムを起動させ、HDD10よりオペレーティングシステムというコンピュータのハードウェアとソフトウェアとを管理するプログラムをRAM8に読み込み、このオペレーティングシステムを起動させる。このようなオペレーティングシステムは、ユーザの操作に応じてプログラムを起動したり、情報を読み込んだり、保存を行ったりする。オペレーティングシステムのうち代表的なものとしては、Windows(登録商標)、UNIX(登録商標)等が知られている。これらのオペレーティングシステム上で走る動作プログラムをアプリケーションプログラムと呼んでいる。
【0054】
ここで、画像伸長装置1は、アプリケーションプログラムとして、デコードプログラムを含む画像処理プログラムをHDD10に記憶している。この意味で、HDD10は、プログラムを記憶する記憶媒体として機能する。
【0055】
また、一般的には、画像伸長装置1のHDD10にインストールされる動作プログラムは、CD−ROM11やDVD−ROM等の光情報記録メディアやFD等の磁気メディア等に記録され、この記録された動作プログラムがHDD10にインストールされる。このため、CD−ROM11等の光情報記録メディアやFD等の磁気メディア等の可搬性を有する記憶媒体も、画像処理プログラムを記憶する記憶媒体となり得る。さらには、画像処理プログラムは、例えば通信制御装置13を介して外部から取り込まれ、HDD10にインストールされても良い。
【0056】
画像伸長装置1は、オペレーティングシステム上で動作する画像処理プログラムが起動すると、この画像処理プログラムに従い、CPU6が各種の演算処理を実行して各部を集中的に制御する。画像伸長装置1のCPU6が実行する各種の演算処理のうち、本実施の形態の特長的な処理について以下に説明する。
【0057】
ここでは、画像処理プログラムに従いCPU6によって実行される画像表示処理のうち、コメントマーカに記述されている圧縮符号に関連する符号関連情報を用いた画像表示処理について説明する。図10は、画像表示処理の流れを概略的に示すフローチャートである。図10に示すように、画像伸長装置1のCPU6は、例えばネットワーク5を介してサーバコンピュータSから画像ファイルに係る圧縮符号を取得すると(ステップS1のY)、新規の画像規格か否かをコメントマーカに記述されている符号関連情報である当該圧縮符号の画像規格に基づいて判定する(ステップS2:画像規格判定手段)。
【0058】
取得した圧縮符号が新規の画像規格でない場合には(ステップS2のN)、そのままステップS4に進み、当該圧縮符号に対して「JPEG2000アルゴリズム」に従った伸長処理(デコード処理)を実行し、表示装置15に表示する。ここに、画像伸長手段の機能が実行される。圧縮符号の「JPEG2000アルゴリズム」に従った伸長処理(デコード処理)については、図1で示した空間変換・逆変換部101、2次元ウェーブレット変換・逆変換部102、量子化・逆量子化部103、エントロピー符号化・復号化部104、タグ処理部105の説明において前述したので、ここでの説明は省略する。
【0059】
一方、取得した圧縮符号が新規の画像規格である場合には(ステップS2のY)、ステップS3に進む。ここで、取得した圧縮符号が新規の画像規格である場合としては、「JPEG2000」のバージョンが新しく、画像伸長装置1のHDD10にインストールされているデコードプログラムがこの「JPEG2000」のバージョンに対応していない場合が考えられる。
【0060】
ここで、ステップS3におけるプログラム取得処理について図11を参照しつつ説明する。取得した圧縮符号が新規の画像規格である場合(ステップS2のY)、画像伸長装置1のCPU6は、コメントマーカに記述されているURLにネットワーク5を介してアクセスする。ここでは、コメントマーカに記述されているURLは当該圧縮符号を処理するためのデコードプログラムの所在を示すものであり、デコードプログラムが保管されているWEBサーバはサーバコンピュータSであるとする。
【0061】
サーバコンピュータSとのアクセスが確立すると、画像伸長装置1のCPU6は、サーバコンピュータSに対し、ネットワーク5を介してコメントマーカに記述されている当該圧縮符号の画像規格及びその画像規格のバージョンを送信する。
【0062】
画像伸長装置1から圧縮符号の画像規格及びその画像規格のバージョンを受信したサーバコンピュータSは、画像伸長装置1に対し、ネットワーク5を介して該当するデコードプログラムを送信する。
【0063】
そして、画像伸長装置1のCPU6は、サーバコンピュータSから送信されたデコードプログラム(アプレットやEXEファイル)をダウンロードする。これにより、画像伸長装置1のHDD10にインストールされているデコードプログラムが新しい「JPEG2000」のバージョンに対応することになる。
【0064】
以上により、ステップS3のプログラム取得処理が終了する。ここに、プログラム取得手段の機能が実行される。
【0065】
続いてステップS4に進み、取得した圧縮符号に対して新しい「JPEG2000」のバージョンに対応するデコードプログラムに基づく伸長処理(デコード処理)を実行し、表示装置15に表示する。
【0066】
ここに、伸長対象の圧縮符号が既存のデコードプログラムにより伸長不可能な新規の画像規格であるとマーカセグメントで管理されている符号関連情報に基づいて判定された場合には、符号関連情報に含まれる当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワーク5を介して接続されたプログラム保管装置であるサーバコンピュータSから取得し、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格で圧縮された圧縮符号を伸長する。これにより、既存のデコードプログラムにより伸長不可能な新規の画像規格で圧縮された圧縮符号について、新規の画像規格に対応したデコードプログラムを取得してから当該圧縮符号を伸長することができるので、一つの画像ファイルの中に複数の画像フォーマットの画像データを有さなくとも、各種の画像規格で圧縮された圧縮符号の伸長処理に対応することができる。
【0067】
また、プログラム所在情報は、プログラム保管装置であるサーバコンピュータSに保管されている新規の画像規格に対応したデコードプログラムを特定するURLであることにより、画像ファイルのサイズは、本来の画像ファイルのサイズと略同じサイズでありながら、最新版のデコードプログラムを使用して伸長処理を実行することができる。
【0068】
なお、本実施の形態においては、本発明の画像伸長装置1をパーソナルコンピュータに適用した例を説明したが、画像伸長装置1を携帯情報端末装置(PDA)、携帯電話などの情報端末装置に適用することもできる。
【0069】
【発明の効果】
請求項1記載の発明の画像伸長方法によれば、画像を符号化した圧縮符号をデコードプログラムを用いて伸長する画像伸長方法であって、前記圧縮符号の圧縮に際し、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理するステップと、伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定するステップと、前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムを取得するステップと、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長するステップと、を含み、伸長対象の圧縮符号が既存のデコードプログラムにより伸長不可能な新規の画像規格であるとマーカセグメントで管理されている符号関連情報に基づいて判定された場合には、符号関連情報に含まれる当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報に従い、新規の画像規格に対応したデコードプログラムを取得し、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格で圧縮された圧縮符号を伸長することにより、既存のデコードプログラムにより伸長不可能な新規の画像規格で圧縮された圧縮符号について、新規の画像規格に対応したデコードプログラムを取得してから当該圧縮符号を伸長することができるので、一つの画像ファイルの中に複数の画像フォーマットの画像データを有さなくとも、各種の画像規格で圧縮された圧縮符号の伸長処理に対応することができる。
【0070】
請求項2記載の発明によれば、請求項1記載の画像伸長方法において、符号フォーマットはJPEG2000の符号フォーマットであって、前記符号関連情報を管理する前記マーカセグメントはCOMマーカであることにより、ファイルの互換性を維持することができ、汎用性を有することができる。
【0071】
請求項3記載の発明によれば、請求項1または2記載の画像伸長方法において、前記プログラム所在情報は、プログラム保管装置に保管されている新規の画像規格に対応したデコードプログラムを特定するURL(Uniform Resource Locator)であることにより、画像ファイルのサイズは、本来の画像ファイルのサイズと略同じサイズでありながら、最新版のデコードプログラムを使用して伸長処理を実行することができる。
【0072】
請求項4記載の発明の画像伸長装置によれば、画像を符号化した圧縮符号であって、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理した前記圧縮符号を、デコードプログラムを用いて伸長する画像伸長装置において、伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定する画像規格判定手段と、前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得するプログラム取得手段と、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長する画像伸長手段と、を備え、伸長対象の圧縮符号が既存のデコードプログラムにより伸長不可能な新規の画像規格であるとマーカセグメントで管理されている符号関連情報に基づいて判定された場合には、符号関連情報に含まれる当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得し、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格で圧縮された圧縮符号を伸長することにより、既存のデコードプログラムにより伸長不可能な新規の画像規格で圧縮された圧縮符号について、新規の画像規格に対応したデコードプログラムを取得してから当該圧縮符号を伸長することができるので、一つの画像ファイルの中に複数の画像フォーマットの画像データを有さなくとも、各種の画像規格で圧縮された圧縮符号の伸長処理に対応することができる。
【0073】
請求項5記載の発明によれば、請求項4記載の画像伸長装置において、符号フォーマットはJPEG2000の符号フォーマットであって、前記符号関連情報を管理する前記マーカセグメントはCOMマーカであることにより、ファイルの互換性を維持することができ、汎用性を有することができる。
【0074】
請求項6記載の発明によれば、請求項4または5記載の画像伸長装置において、前記プログラム所在情報は、プログラム保管装置に保管されている新規の画像規格に対応したデコードプログラムを特定するURL(Uniform Resource Locator)であることにより、画像ファイルのサイズは、本来の画像ファイルのサイズと略同じサイズでありながら、最新版のデコードプログラムを使用して伸長処理を実行することができる。
【0075】
請求項7記載の発明のプログラムによれば、画像を符号化した圧縮符号であって、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理した前記圧縮符号を、デコードプログラムを用いて伸長する画像伸長装置が有するコンピュータにインストールされるか、あるいは解釈されて実行されるプログラムであって、伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定する画像規格判定機能と、前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得するプログラム取得機能と、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長する画像伸長機能と、を前記コンピュータに実行させ、伸長対象の圧縮符号が既存のデコードプログラムにより伸長不可能な新規の画像規格であるとマーカセグメントで管理されている符号関連情報に基づいて判定された場合には、符号関連情報に含まれる当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得し、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格で圧縮された圧縮符号を伸長することにより、既存のデコードプログラムにより伸長不可能な新規の画像規格で圧縮された圧縮符号について、新規の画像規格に対応したデコードプログラムを取得してから当該圧縮符号を伸長することができるので、一つの画像ファイルの中に複数の画像フォーマットの画像データを有さなくとも、各種の画像規格で圧縮された圧縮符号の伸長処理に対応することができる。
【0076】
請求項8記載の発明の記憶媒体によれば、画像を符号化した圧縮符号であって、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理した前記圧縮符号を、デコードプログラムを用いて伸長する画像伸長装置が有するコンピュータにインストールされるか、あるいは解釈されて実行されるプログラムを記憶する記憶媒体であって、伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定する画像規格判定機能と、前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得するプログラム取得機能と、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長する画像伸長機能と、を前記コンピュータに実行させるプログラムを記憶し、伸長対象の圧縮符号が既存のデコードプログラムにより伸長不可能な新規の画像規格であるとマーカセグメントで管理されている符号関連情報に基づいて判定された場合には、符号関連情報に含まれる当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得し、取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格で圧縮された圧縮符号を伸長することにより、既存のデコードプログラムにより伸長不可能な新規の画像規格で圧縮された圧縮符号について、新規の画像規格に対応したデコードプログラムを取得してから当該圧縮符号を伸長することができるので、一つの画像ファイルの中に複数の画像フォーマットの画像データを有さなくとも、各種の画像規格で圧縮された圧縮符号の伸長処理に対応することができる。
【図面の簡単な説明】
【図1】本発明の前提となるJPEG2000方式の基本となる階層符号化アルゴリズムを実現するシステムの機能ブロック図である。
【図2】原画像の各コンポーネントの分割された矩形領域を示す説明図である。
【図3】デコンポジション・レベル数が3の場合の、各デコンポジション・レベルにおけるサブバンドを示す説明図である。
【図4】プレシンクトを示す説明図である。
【図5】ビットプレーンに順位付けする手順の一例を示す説明図である。
【図6】本発明の実施の一形態の画像処理装置を含むシステムを示すシステム構成図である。
【図7】JPEG2000の符号フォーマットの概略構成を示す説明図である。
【図8】メインヘッダのコメントマーカに記述されているデータの一例を示す説明図である。
【図9】画像処理装置のハードウェア構成を概略的に示すブロック図である。
【図10】画像表示処理の流れを概略的に示すフローチャートである。
【図11】プログラム取得処理の流れを示すチャートである。
【符号の説明】
1 画像伸長装置
5 ネットワーク
10,11 記憶媒体
S プログラム保管装置
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image decompression method, an image decompression device, a program, and a storage medium.
[0002]
[Prior art]
2. Description of the Related Art Due to advances in image input technology and output technology thereof, demands for higher definition of images have been extremely increased in recent years. For example, taking a digital camera (Digital Camera) as an example of an image input device, the price of a high-performance charge coupled device (CCD: Charge Coupled Device) having more than 3 million pixels has been reduced, and the price range has become widespread. Products have come to be widely used. And a product with 5 million pixels is coming soon. It is said that this increasing tendency of the number of pixels will continue for a while.
[0003]
On the other hand, with regard to image output / display devices, for example, products in the hard copy field such as laser printers, ink jet printers and sublimation printers, and flat devices such as CRTs, LCDs (liquid crystal display devices), and PDPs (plasma display devices). The high definition and low price of products in the field of soft copy of panel displays are remarkable.
[0004]
Due to the effect of bringing high-performance, low-cost image input / output products to the market, the popularization of high-definition images has begun, and it is expected that demand for high-definition images will increase in all scenes in the future. Indeed, the development of technologies related to networks, such as personal computers and the Internet, is accelerating these trends. In particular, recently, mobile devices such as mobile phones and notebook personal computers have become very popular, and opportunities to transmit or receive high-definition images from any point using communication means have been rapidly increasing.
[0005]
Against this background, the demand for higher performance or multifunctional image compression / decompression technology that facilitates the handling of high-definition images will inevitably increase in the future.
[0006]
Therefore, in recent years, a new method called JPEG2000, which can restore a high-quality image even at a high compression ratio, is being standardized as one of the image compression methods satisfying such demands. In JPEG2000, by dividing an image into rectangular areas (tiles), it is possible to perform compression / expansion processing in a small memory environment. That is, each tile is a basic unit when executing the compression / decompression process, and the compression / decompression operation can be performed independently for each tile.
[0007]
However, an apparatus having no means for expanding image data compressed and encoded by the new method of JPEG2000 cannot display an image compressed and encoded by the JPEG2000 method.
[0008]
If the version of the image data is different even if the image data is compressed and encoded by the JPEG2000 system, the image data compressed and encoded by the new version of the JPEG2000 system may be used in an apparatus that supports only the old version of the JPEG2000 system. May not be displayed.
[0009]
In order to solve such a problem, a method in which one image file has two image formats has been proposed. More specifically, by including a JPEG image in a JPEG2000 image file, an image can be displayed even on a terminal having no JPEG2000 decoding function (for example, see Patent Document 1).
[0010]
[Patent Document 1]
JP-A-2002-44663
[0011]
[Problems to be solved by the invention]
However, according to the technique proposed in Patent Document 1, since one image file has image data of two image formats (JPEG2000 image format and JPEG image format), a large amount of memory capacity is consumed. There is a problem.
[0012]
An object of the present invention is to provide an image decompression method and an image decompression method capable of coping with decompression processing of a compression code compressed by various image standards without having image data of a plurality of image formats in one image file. An object of the present invention is to provide a decompression device, a program, and a storage medium.
[0013]
[Means for Solving the Problems]
An image decompression method according to the first aspect of the present invention is an image decompression method for decompressing a compressed code obtained by encoding an image by using a decoding program, wherein the compression code is decompressed at least when the compressed code is compressed. Managing the code-related information including the program location information indicating the location of the decoding program in a predetermined marker segment defined by a code format; and a method in which the compressed code to be expanded cannot be expanded by the existing decoding program. Determining whether or not the image standard is based on the code-related information managed by the marker segment; and, when the compressed code is determined to be a new image standard, managing by the marker segment. According to the program location information included in the code-related information, Including by obtaining a decoding program, a step of extending said compressed code is a new image standards using the decoding program corresponding to the acquired new image standard,.
[0014]
Therefore, when it is determined based on the code-related information managed by the marker segment that the compression code to be expanded is a new image standard that cannot be expanded by the existing decoding program, it is included in the code-related information. According to the program location information indicating the location of the decoding program for decompressing the compression code, a decoding program corresponding to the new image standard is obtained, and a new image is generated using the obtained decoding program corresponding to the new image standard. A compression code compressed according to the standard is decompressed. This makes it possible to decompress a compressed code compressed by a new image standard that cannot be decompressed by an existing decoding program after obtaining a decoding program corresponding to the new image standard. Even if one image file does not have image data of a plurality of image formats, it is possible to cope with the decompression processing of a compression code compressed by various image standards.
[0015]
According to a second aspect of the present invention, in the image decompression method according to the first aspect, the code format is a JPEG2000 code format, and the marker segment for managing the code related information is a COM marker.
[0016]
Therefore, it is possible to maintain the compatibility of the files, and to have versatility.
[0017]
According to a third aspect of the present invention, in the image decompression method according to the first or second aspect, the program location information is a URL (Uniform Resource) that specifies a decoding program corresponding to a new image standard stored in a program storage device. Locator).
[0018]
Therefore, it is possible to execute the decompression process using the latest version of the decoding program while the size of the image file is substantially the same as the size of the original image file.
[0019]
According to a fourth aspect of the present invention, in the image decompression apparatus, code-related information which is a compression code obtained by encoding an image and includes at least a program location information indicating a location of a decoding program for decompressing the compression code is encoded. In an image decompression device that decompresses the compressed code managed by the predetermined marker segment specified in the above using a decoding program, the decompression target compressed code is a new image standard that cannot be decompressed by the existing decoding program. An image standard determining unit that determines whether or not the compressed code is a new image standard based on the code related information managed in the marker segment; According to the program location information included in the code related information, Program acquisition means for acquiring a code program from a program storage device connected via a network, and image decompression means for decompressing the compression code, which is a new image standard, using a decoding program corresponding to the acquired new image standard And.
[0020]
Therefore, when it is determined based on the code-related information managed by the marker segment that the compression code to be expanded is a new image standard that cannot be expanded by the existing decoding program, it is included in the code-related information. According to the program location information indicating the location of the decoding program for decompressing the compression code, a decoding program corresponding to the new image standard is acquired from a program storage device connected via a network, and the acquired new image standard is acquired. The compressed code compressed according to the new image standard is expanded by using a decoding program corresponding to. This makes it possible to decompress a compressed code compressed by a new image standard that cannot be decompressed by an existing decoding program after obtaining a decoding program corresponding to the new image standard. Even if one image file does not have image data of a plurality of image formats, it is possible to cope with the decompression processing of a compression code compressed by various image standards.
[0021]
According to a fifth aspect of the present invention, in the image decompression apparatus according to the fourth aspect, the code format is a JPEG2000 code format, and the marker segment for managing the code related information is a COM marker.
[0022]
Therefore, it is possible to maintain the compatibility of the files, and to have versatility.
[0023]
According to a sixth aspect of the present invention, in the image decompression apparatus according to the fourth or fifth aspect, the program location information is a URL (Uniform Resource) that specifies a decoding program corresponding to a new image standard stored in a program storage device. Locator).
[0024]
Therefore, it is possible to execute the decompression process using the latest version of the decoding program while the size of the image file is substantially the same as the size of the original image file.
[0025]
According to a seventh aspect of the present invention, there is provided a program for specifying, in a code format, code-related information that is a compressed code obtained by encoding an image and includes program location information indicating at least the location of a decoding program for decompressing the compressed code. A program installed or interpreted and executed in a computer of an image decompression device that decompresses the compressed code managed by the predetermined marker segment by using a decoding program, and An image standard judging function for judging whether or not a code is a new image standard which cannot be decompressed by the existing decoding program based on the code related information managed by the marker segment; and If it is determined to be a standard, it is managed by the marker segment In accordance with the program location information included in the code-related information, a program acquisition function for acquiring a decoding program corresponding to a new image standard from a program storage device connected via a network, and a function corresponding to the acquired new image standard. An image decompression function for decompressing the compression code, which is a new image standard, using a decoding program is executed by the computer.
[0026]
Therefore, when it is determined based on the code-related information managed by the marker segment that the compression code to be expanded is a new image standard that cannot be expanded by the existing decoding program, it is included in the code-related information. According to the program location information indicating the location of the decoding program for decompressing the compression code, a decoding program corresponding to the new image standard is acquired from a program storage device connected via a network, and the acquired new image standard is acquired. The compressed code compressed according to the new image standard is expanded by using a decoding program corresponding to. This makes it possible to decompress a compressed code compressed by a new image standard that cannot be decompressed by an existing decoding program after obtaining a decoding program corresponding to the new image standard. Even if one image file does not have image data of a plurality of image formats, it is possible to cope with the decompression processing of a compression code compressed by various image standards.
[0027]
The storage medium according to the invention of claim 8 is a storage medium in which code-related information, which is a compression code obtained by encoding an image and includes program location information indicating at least the location of a decoding program for decompressing the compression code, is stored in a code format. A storage medium that stores a program that is installed in a computer of an image decompression device that decompresses the compression code managed by a prescribed marker segment using a decoding program or that is interpreted and executed. An image standard determination function for determining whether or not the compression code to be expanded is a new image standard that cannot be expanded by the existing decoding program, based on the code related information managed in the marker segment; If the compression code is determined to be a new image standard, the marker segment A program acquisition function of acquiring a decoding program corresponding to a new image standard from a program storage device connected via a network in accordance with the program location information included in the managed code-related information; and a new acquired image. A program for causing the computer to execute an image decompression function of decompressing the compression code, which is a new image standard, using a decoding program corresponding to the standard is stored.
[0028]
Therefore, when it is determined based on the code-related information managed by the marker segment that the compression code to be expanded is a new image standard that cannot be expanded by the existing decoding program, it is included in the code-related information. According to the program location information indicating the location of the decoding program for decompressing the compression code, a decoding program corresponding to the new image standard is acquired from a program storage device connected via a network, and the acquired new image standard is acquired. The compressed code compressed according to the new image standard is expanded by using a decoding program corresponding to. This makes it possible to decompress a compressed code compressed by a new image standard that cannot be decompressed by an existing decoding program after obtaining a decoding program corresponding to the new image standard. Even if one image file does not have image data of a plurality of image formats, it is possible to cope with the decompression processing of a compression code compressed by various image standards.
[0029]
BEST MODE FOR CARRYING OUT THE INVENTION
First, an overview of the “hierarchical encoding algorithm” and the “JPEG2000 algorithm” which are the premise of the present embodiment will be described.
[0030]
FIG. 1 is a functional block diagram of a system for realizing a hierarchical coding algorithm which is a basic of the JPEG2000 system. This system includes a color space conversion / inverse transformation unit 101, a two-dimensional wavelet transformation / inverse transformation unit 102, a quantization / inverse quantization unit 103, an entropy coding / decoding unit 104, and a tag processing unit 105. It is configured.
[0031]
One of the biggest differences between this system and the conventional JPEG algorithm is the conversion method. In JPEG, discrete cosine transform (DCT: Discrete Cosine Transform) is used, whereas in the hierarchical coding algorithm, a two-dimensional wavelet transform / inverse transform unit 102 uses discrete wavelet transform (DWT: Discrete Wavelet Transform). ing. DWT has an advantage that the image quality in a high compression area is better than DCT, and this is one of the main reasons why DWT was adopted in JPEG2000 which is a successor algorithm of JPEG.
[0032]
Another major difference is that in the hierarchical coding algorithm, a functional block of the tag processing unit 105 is added in order to form a code at the last stage of the system. The tag processing unit 105 generates compressed data as code string data at the time of image compression operation, and interprets code string data required for decompression at the time of decompression operation. The JPEG2000 can realize various convenient functions by using the code string data. For example, the compression / expansion operation of a still image can be freely stopped at an arbitrary layer (decomposition level) corresponding to octave division in a DWT on a block basis (see FIG. 3 described later).
[0033]
In many cases, a color space conversion / inverse conversion 101 is connected to the input / output portion of the original image. For example, an RGB color system composed of R (red) / G (green) / B (blue) components of a primary color system, and Y (yellow) / M (magenta) / C (cyan) components of a complementary color system The conversion or inverse conversion from the YMC color system to the YUV or YCbCr color system corresponds to this.
[0034]
Next, the JPEG2000 algorithm will be described.
[0035]
Generally, in a color image, as shown in FIG. 2, each component 111 (here, the RGB primary color system) of the original image is divided by a rectangular area. The divided rectangular area is generally called a block or a tile. In JPEG2000, it is generally called a tile. Hereinafter, such a divided rectangular area is referred to as a tile. (In the example of FIG. 2, each component 111 is divided into a total of 16 rectangular tiles 112, 4 × 4 vertically and horizontally.) When such individual tiles 112 (in the example of FIG. 2, R00, R01,..., R15 / G00, G01,..., G15 / B00, B01,. Is the basic unit of Therefore, the compression / decompression operation of the image data is performed independently for each component and for each tile 112.
[0036]
At the time of encoding image data, the data of each tile 112 of each component 111 is input to the color space conversion / inverse conversion unit 101 of FIG. 1 and subjected to color space conversion. A dimensional wavelet transform (forward transform) is performed, and spatial division into frequency bands is performed.
[0037]
FIG. 3 shows subbands at each decomposition level when the number of decomposition levels is three. That is, a two-dimensional wavelet transform is performed on the tile original image (0LL) (decomposition level 0) obtained by dividing the original image into tiles, and the subbands (1LL, 1HL, 1LH) indicated by the decomposition level 1 are obtained. , 1HH). Subsequently, two-dimensional wavelet transform is performed on the low-frequency component 1LL in this layer to separate the subbands (2LL, 2HL, 2LH, 2HH) shown in the decomposition level 2. Similarly, two-dimensional wavelet transform is performed on the low-frequency component 2LL in the same manner to separate the sub-bands (3LL, 3HL, 3LH, 3HH) shown in the decomposition level 3. In FIG. 3, the subbands to be coded at each decomposition level are shaded. For example, when the number of decomposition levels is 3, the subbands (3HL, 3LH, 3HH, 2HL, 2LH, 2HH, 1HL, 1LH, 1HH) indicated by shading are to be encoded, and the 3LL subbands are encoded. Is not converted.
[0038]
Next, bits to be encoded are determined in the designated order of encoding, and the quantization / inverse quantization unit 103 shown in FIG. 1 generates a context from bits around the target bits.
[0039]
The wavelet coefficients after the quantization process are divided into non-overlapping rectangles called “precincts” for each subband. This was introduced to make efficient use of memory in the implementation. As shown in FIG. 4, one precinct is formed of three spatially coincident rectangular areas. Further, each precinct is divided into non-overlapping rectangular "code blocks". This is a basic unit when performing entropy coding.
[0040]
The coefficient value after wavelet transform can be quantized and encoded as it is. However, in JPEG2000, in order to increase the encoding efficiency, the coefficient value is decomposed into “bit plane” units, and each pixel or code block is decomposed. "Bit planes" can be ranked.
[0041]
Here, FIG. 5 is an explanatory diagram showing an example of a procedure for prioritizing bit planes. As shown in FIG. 5, in this example, the original image (32 × 32 pixels) is divided into four 16 × 16 pixel tiles, and the size of the precinct of the decomposition level 1 and the size of the code block are as follows. Each has 8 × 8 pixels and 4 × 4 pixels. The numbers of precincts and code blocks are assigned in raster order. In this example, the precincts are assigned numbers 0 to 3, and the code blocks are assigned numbers 0 to 3. The pixel expansion outside the tile boundary is performed by using a mirroring method, performing a wavelet transform using a reversible (5, 3) filter, and obtaining a wavelet coefficient value of decomposition level 1.
[0042]
FIG. 5 also shows an explanatory diagram showing an example of a typical “layer” configuration concept of tile 0 / precinct 3 / code block 3. The converted code block is divided into subbands (1LL, 1HL, 1LH, 1HH), and each subband is assigned a wavelet coefficient value.
[0043]
The layer structure is easy to understand when the wavelet coefficient value is viewed from the horizontal direction (bit plane direction). One layer is composed of an arbitrary number of bit planes. In this example, layers 0, 1, 2, and 3 are made up of 1, 3, 1, and 3 bit planes, respectively. A layer including a bit plane closer to LSB (Least Significant Bit: Least Significant Bit) is subject to quantization first, and conversely, a layer closer to MSB (Most Significant Bit: Most Significant Bit) is quantized to the end. It will remain without being. A method of discarding from a layer close to the LSB is called truncation, and it is possible to finely control the quantization rate. The process of discarding a code from a code in which a bit plane (or a sub-bit plane) is not deleted until a predetermined compression rate is obtained is called post-quantization, and is the most significant feature of the JPEG2000 algorithm. .
[0044]
The entropy encoding / decoding unit 104 shown in FIG. 1 performs encoding on the tile 112 of each component 111 by probability estimation from the context and the target bit. In this way, the encoding process is performed on all the components 111 of the original image in tile 112 units. Finally, the tag processing unit 105 performs a process of combining all the encoded data from the entropy encoding / decoding unit 104 into one piece of code string data (code stream) and adding a tag thereto.
[0045]
On the other hand, at the time of decoding, the image data is generated from the code string data of each tile 112 of each component 111, contrary to the case of encoding the image data. In this case, the tag processing unit 105 interprets the tag information added to the code string data input from the outside, decomposes the code string data into code string data of each tile 112 of each component 111, and A decoding process (decompression process) is performed for each code string data of each tile 112. At this time, the positions of the bits to be decoded are determined in the order based on the tag information in the code string data, and the quantization / dequantization unit 103 sets the peripheral bits of the target bit position (the A context is generated from the sequence of (finished). The entropy coding / decoding unit 104 performs decoding by probability estimation from the context and the code string data, generates a target bit, and writes it to the position of the target bit. Since the data decoded in this way is spatially divided for each frequency band, the two-dimensional wavelet transform / inverse transform unit 102 performs an inverse two-dimensional wavelet transform on the data to obtain each component of the image data. The tile is restored. The restored data is converted by the color space conversion / inverse conversion unit 101 into the original color system image data.
[0046]
The above is the outline of the “JPEG2000 algorithm”.
[0047]
Hereinafter, an embodiment of the present invention will be described. Here, an example relating to an image compression / decompression technique represented by JPEG2000 will be described, but needless to say, the present invention is not limited to the content of the following description.
[0048]
FIG. 6 is a system configuration diagram showing a system including the image decompression device 1 to which the present invention is applied. As shown in FIG. 6, the image decompression device 1 to which the present invention is applied is, for example, a personal computer, and can be connected to a server computer S that stores and holds various image data via a network 5 that is the Internet. . The server computer S also functions as a program storage device that stores a decoding program described later.
[0049]
In the present embodiment, the image data stored and held in the server computer S is a compression code generated according to the “JPEG2000 algorithm”. FIG. 7 shows a schematic configuration of a JPEG2000 code format. The code format starts with an SOC (Start of Codestream) marker indicating the start of the code data. After the SOC marker, a main header (Main Header), which is tag information describing coding parameters and quantization parameters, follows, followed by actual code data. Actual code data starts with an SOT (Start of Tile-part) marker, and includes a tile header (Tile Header) as tag information, a SOD (Start of data) marker, and tile data (code: bit stream). After the code data corresponding to the entire image, an EOC (End of Codestream) marker, which is tag information indicating the end of the code, is added. The main header and the tile header as described above may include a comment marker (COM marker) capable of describing code-related information related to the compression code.
[0050]
In the present embodiment, as shown in FIG. 8, the comment marker of the main header includes the image standard of the compression code, the version of the image standard, and the location of the decoding program for processing the compression code (here, In addition, code-related information related to the compression code, such as a URL (Uniform Resource Locator) of the WEB server where the decoding program is stored, a tool name (program name) that created the image, and a manufacturer name are described.
[0051]
FIG. 9 is a block diagram schematically illustrating a hardware configuration of the image decompression device 1. As shown in FIG. 9, the image decompression apparatus 1 includes a CPU (Central Processing Unit) 6 for performing information processing, a ROM (Read Only Memory) 7 for storing information, and a primary storage device such as a RAM (Random Access Memory) 8. A hard disk drive (HDD) 10, which is a storage unit for storing a compression code (see FIG. 7) downloaded from the server computer S via the network 5, storing information, distributing information to the outside, and obtaining information from the outside CD-ROM drive 12, a communication control device 13 for transmitting information to another external computer via the network 5, and a CRT (Cathode Ray Tube) for displaying the progress and results of processing to the operator. And LCD (Liquid C A display 15 such as an external display, and an input device 14 such as a keyboard and a mouse for the operator to input commands, information, and the like to the CPU 6. The data transmitted and received between these units is transmitted via a bus. The controller 9 operates by arbitration.
[0052]
Since the RAM 8 has a property of storing various data in a rewritable manner, the RAM 8 functions as a work area of the CPU 6 and plays a role of, for example, a buffer memory in an image display process described later.
[0053]
In such an image decompression apparatus 1, when the user turns on the power, the CPU 6 activates a program called a loader in the ROM 7, reads a program called an operating system, which manages computer hardware and software, from the HDD 10 into the RAM 8, and executes the operating system. Start the system. Such an operating system starts a program, reads information, and saves information in response to a user operation. As typical operating systems, Windows (registered trademark), UNIX (registered trademark), and the like are known. The operation programs running on these operating systems are called application programs.
[0054]
Here, the image decompression device 1 stores an image processing program including a decode program in the HDD 10 as an application program. In this sense, the HDD 10 functions as a storage medium for storing a program.
[0055]
In general, an operation program installed in the HDD 10 of the image decompression apparatus 1 is recorded on an optical information recording medium such as a CD-ROM 11 or a DVD-ROM, or a magnetic medium such as an FD, and the recorded operation program. The program is installed on the HDD 10. Therefore, a portable storage medium such as an optical information recording medium such as the CD-ROM 11 or a magnetic medium such as an FD can be a storage medium for storing the image processing program. Further, the image processing program may be fetched from outside via the communication control device 13 and installed in the HDD 10, for example.
[0056]
In the image decompression apparatus 1, when an image processing program running on an operating system is started, the CPU 6 executes various arithmetic processes according to the image processing program to centrally control each unit. Among the various types of arithmetic processing executed by the CPU 6 of the image decompression device 1, the characteristic processing of the present embodiment will be described below.
[0057]
Here, among the image display processes executed by the CPU 6 according to the image processing program, an image display process using code related information related to a compression code described in a comment marker will be described. FIG. 10 is a flowchart schematically showing the flow of the image display processing. As shown in FIG. 10, when the CPU 6 of the image decompression apparatus 1 obtains a compression code related to an image file from the server computer S via the network 5 (Y in step S1), a comment is issued as to whether or not the image standard is new. The determination is made based on the image standard of the compression code, which is the code-related information described in the marker (step S2: image standard determination means).
[0058]
If the acquired compression code does not conform to the new image standard (N in step S2), the process directly proceeds to step S4, where the compression code is subjected to a decompression process (decoding process) according to the “JPEG2000 algorithm” and displayed. It is displayed on the device 15. Here, the function of the image decompression means is executed. Regarding the decompression process (decoding process) of the compression code according to the “JPEG2000 algorithm”, the spatial transform / inverse transform unit 101, the two-dimensional wavelet transform / inverse transform unit 102, and the quantization / inverse quantize unit 103 shown in FIG. , The entropy encoding / decoding unit 104 and the tag processing unit 105 have been described above, and a description thereof will be omitted.
[0059]
On the other hand, if the acquired compression code is a new image standard (Y in step S2), the process proceeds to step S3. Here, when the acquired compression code is a new image standard, the version of “JPEG2000” is new, and the decoding program installed in the HDD 10 of the image decompression device 1 corresponds to this version of “JPEG2000”. There may be no case.
[0060]
Here, the program acquisition process in step S3 will be described with reference to FIG. If the acquired compression code is a new image standard (Y in step S2), the CPU 6 of the image decompression apparatus 1 accesses the URL described in the comment marker via the network 5. Here, the URL described in the comment marker indicates the location of a decoding program for processing the compression code, and it is assumed that the web server storing the decoding program is the server computer S.
[0061]
When the access to the server computer S is established, the CPU 6 of the image decompression apparatus 1 transmits the image standard of the compression code described in the comment marker and the version of the image standard to the server computer S via the network 5. I do.
[0062]
The server computer S that has received the image standard of the compression code and the version of the image standard from the image decompression device 1 transmits the corresponding decoding program to the image decompression device 1 via the network 5.
[0063]
Then, the CPU 6 of the image decompression device 1 downloads the decoding program (applet or EXE file) transmitted from the server computer S. As a result, the decoding program installed in the HDD 10 of the image decompression device 1 corresponds to the new version of “JPEG2000”.
[0064]
With the above, the program acquisition processing in step S3 ends. Here, the function of the program acquisition means is executed.
[0065]
Subsequently, the process proceeds to step S4, where the acquired compression code is subjected to a decompression process (decoding process) based on a decoding program corresponding to the new version of “JPEG2000”, and displayed on the display device 15.
[0066]
Here, if it is determined based on the code related information managed by the marker segment that the compressed code to be expanded is a new image standard that cannot be expanded by the existing decoding program, it is included in the code related information. In accordance with the program location information indicating the location of the decoding program for expanding the compression code, a decoding program corresponding to the new image standard is obtained from the server computer S which is a program storage device connected via the network 5. Then, the compressed code compressed by the new image standard is decompressed by using the acquired decoding program corresponding to the new image standard. Thus, for a compressed code compressed by a new image standard that cannot be decompressed by an existing decoding program, a decoding program corresponding to the new image standard can be obtained and then the compressed code can be decompressed. Even if one image file does not have image data of a plurality of image formats, it is possible to cope with the decompression processing of a compression code compressed according to various image standards.
[0067]
Further, the program location information is a URL for specifying a decoding program corresponding to a new image standard stored in the server computer S as a program storage device, so that the size of the image file is equal to the size of the original image file. Decompression processing can be executed using the latest version of the decoding program while having substantially the same size as.
[0068]
In the present embodiment, an example has been described in which the image decompression device 1 of the present invention is applied to a personal computer. However, the image decompression device 1 is applied to an information terminal device such as a personal digital assistant (PDA) and a mobile phone. You can also.
[0069]
【The invention's effect】
According to the image decompression method of the first aspect of the present invention, there is provided an image decompression method for decompressing a compressed code obtained by encoding an image by using a decoding program. Managing the code-related information including the program location information indicating the location of the decoding program to be performed using a predetermined marker segment defined in a code format, and the compression code to be expanded cannot be expanded by the existing decoding program. Determining whether or not the image code is a new image standard based on the code related information managed by the marker segment; and, if the compressed code is determined to be a new image standard, the marker segment A new image standard according to the program location information contained in the code-related information managed in Acquiring a decoding program corresponding to the new image standard, and decompressing the compression code which is a new image standard using the acquired decoding program corresponding to the new image standard. If it is determined by the decoding program based on the code-related information managed in the marker segment that the new image standard cannot be decompressed, the compression code included in the code-related information is decompressed. According to the program location information indicating the location of the decoding program, a decoding program corresponding to the new image standard is obtained according to the program location information, and the compressed code compressed according to the new image standard is decompressed using the obtained decoding program corresponding to the new image standard. This allows compression with new image standards that cannot be decompressed by existing decoding programs. The obtained compressed code can be decompressed after obtaining a decoding program corresponding to the new image standard, so that even if one image file does not have image data of a plurality of image formats, It is possible to cope with a decompression process of a compression code compressed by various image standards.
[0070]
According to the second aspect of the present invention, in the image decompression method according to the first aspect, the code format is a JPEG2000 code format, and the marker segment for managing the code related information is a COM marker. Can be maintained, and versatility can be provided.
[0071]
According to a third aspect of the present invention, in the image decompression method according to the first or second aspect, the program location information includes a URL (URL) for specifying a decode program corresponding to a new image standard stored in a program storage device. By being a Uniform Resource Locator, the size of the image file is substantially the same as the size of the original image file, but the decompression process can be executed using the latest version of the decoding program.
[0072]
According to the image decompression device of the fourth aspect of the present invention, the code-related information including the program location information indicating the location of a decode program for decompressing the compressed code, which is a code obtained by encoding the image, is obtained. In an image decompression device that decompresses the compressed code managed by a predetermined marker segment defined by a code format using a decoding program, a new image in which the compressed code to be decompressed cannot be decompressed by an existing decoding program An image standard determining unit that determines whether or not the standard is based on the code related information managed by the marker segment; and, when the compressed code is determined to be a new image standard, According to the program location information included in the managed code related information, a new image standard Acquisition means for acquiring the obtained decoding program from a program storage device connected via a network, and image decompression for decompressing the compression code, which is a new image standard, using a decoding program corresponding to the obtained new image standard. Means for decompressing, when it is determined based on the code-related information managed in the marker segment that the compression code to be decompressed is a new image standard that cannot be decompressed by an existing decoding program, According to the program location information indicating the location of the decoding program for decompressing the compression code included in the information, the decoding program corresponding to the new image standard is obtained from the program storage device connected via the network, and the obtained decoding program is obtained. New using a decoding program that supports new image standards By decompressing a compression code compressed by an image standard, for a compression code compressed by a new image standard that cannot be decompressed by an existing decoding program, a decoding program corresponding to the new image standard is obtained and then Since the compression code can be expanded, it is possible to cope with expansion processing of a compression code compressed according to various image standards without having image data of a plurality of image formats in one image file.
[0073]
According to the fifth aspect of the present invention, in the image decompression apparatus according to the fourth aspect, the code format is a JPEG2000 code format, and the marker segment for managing the code related information is a COM marker. Can be maintained, and versatility can be provided.
[0074]
According to a sixth aspect of the present invention, in the image decompression apparatus according to the fourth or fifth aspect, the program location information includes a URL (URL) for specifying a decoding program corresponding to a new image standard stored in a program storage device. By being a Uniform Resource Locator, the size of the image file is substantially the same as the size of the original image file, but the decompression process can be executed using the latest version of the decoding program.
[0075]
According to the program of the invention described in claim 7, code related information which is a compressed code obtained by encoding an image and includes program location information indicating at least the location of a decoding program for expanding the compressed code is encoded. A program that is installed or interpreted and executed on a computer of an image decompression device that decompresses the compressed code managed by a predetermined marker segment defined by An image standard judging function for judging whether or not the compressed code is a new image standard that cannot be decompressed by the existing decoding program based on the code related information managed by the marker segment; If it is determined that the image standard is the A program acquisition function for acquiring a decoding program corresponding to a new image standard from a program storage device connected via a network according to the program location information included in the code-related information, and supporting the acquired new image standard An image decompression function of decompressing the compression code, which is a new image standard, using the decoded program, and causing the computer to execute the decompression target compression code in a new image standard that cannot be decompressed by the existing decoding program. If it is determined based on the code-related information managed by the marker segment, a new location is determined according to the program location information indicating the location of the decode program for expanding the compressed code included in the code-related information. Decoding programs that support image standards via a network By using a decoding program corresponding to the new image standard obtained from the connected program storage device and expanding the compression code compressed according to the new image standard, a new code that cannot be expanded by the existing decoding program With regard to a compression code compressed according to the image standard of the above, it is possible to decompress the compression code after obtaining a decoding program corresponding to the new image standard, so that image data of a plurality of image formats can be stored in one image file. , It is possible to cope with decompression processing of a compression code compressed by various image standards.
[0076]
According to the storage medium of the eighth aspect of the present invention, the code-related information, which is a compression code obtained by encoding an image and includes program location information indicating at least the location of a decoding program for expanding the compression code, is encoded. A storage medium that stores a program that is installed in a computer of an image decompression device that decompresses the compressed code managed by a predetermined marker segment defined by a format using a decoding program, or that is interpreted and executed. An image standard determination function for determining whether or not the compressed code to be expanded is a new image standard that cannot be expanded by the existing decoding program based on the code related information managed in the marker segment; If the compression code is determined to be a new image standard, the marker segment A program acquisition function for acquiring a decoding program corresponding to a new image standard from a program storage device connected via a network in accordance with the program location information included in the code-related information managed by the client; An image decompression function of decompressing the compression code, which is a new image standard, using a decoding program corresponding to the image standard, and a program for causing the computer to execute the compression code. If it is determined based on the code-related information managed by the marker segment that the new image standard cannot be decompressed, the location of a decoding program for decompressing the compression code included in the code-related information is located. According to the program location information indicating the new An existing decoding program is obtained by acquiring a loaded program from a program storage device connected via a network, and decompressing a compressed code compressed according to the new image standard using a decoding program corresponding to the acquired new image standard. For a compressed code compressed by a new image standard that cannot be decompressed by a program, a decoding program corresponding to the new image standard can be acquired and then the compressed code can be decompressed. Even without having image data of a plurality of image formats, it is possible to cope with the expansion processing of a compression code compressed by various image standards.
[Brief description of the drawings]
FIG. 1 is a functional block diagram of a system for realizing a hierarchical coding algorithm which is a basis of the JPEG2000 system on which the present invention is based.
FIG. 2 is an explanatory diagram showing a divided rectangular area of each component of an original image.
FIG. 3 is an explanatory diagram showing subbands at each decomposition level when the number of decomposition levels is three.
FIG. 4 is an explanatory diagram showing a precinct.
FIG. 5 is an explanatory diagram showing an example of a procedure for ranking bit planes.
FIG. 6 is a system configuration diagram showing a system including an image processing apparatus according to an embodiment of the present invention.
FIG. 7 is an explanatory diagram showing a schematic configuration of a JPEG2000 code format.
FIG. 8 is an explanatory diagram showing an example of data described in a comment marker of a main header.
FIG. 9 is a block diagram schematically illustrating a hardware configuration of the image processing apparatus.
FIG. 10 is a flowchart schematically showing a flow of an image display process.
FIG. 11 is a chart showing a flow of a program acquisition process.
[Explanation of symbols]
1 Image expansion device
5 Network
10,11 storage media
S program storage device

Claims (8)

画像を符号化した圧縮符号をデコードプログラムを用いて伸長する画像伸長方法であって、
前記圧縮符号の圧縮に際し、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理するステップと、
伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定するステップと、
前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムを取得するステップと、
取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長するステップと、
を含むことを特徴とする画像伸長方法。
An image decompression method for decompressing a compressed code obtained by encoding an image using a decoding program,
When compressing the compression code, managing code related information including program location information indicating the location of at least a decoding program for expanding the compression code with a predetermined marker segment defined in a code format,
Determining whether the compression code to be decompressed is a new image standard that cannot be decompressed by the existing decoding program, based on the code related information managed in the marker segment,
When the compression code is determined to be a new image standard, a decoding program corresponding to the new image standard is obtained according to the program location information included in the code related information managed by the marker segment. Steps to
Decompressing the compression code, which is a new image standard, using a decoding program corresponding to the obtained new image standard,
An image decompression method comprising:
符号フォーマットはJPEG2000の符号フォーマットであって、前記符号関連情報を管理する前記マーカセグメントはCOMマーカであることを特徴とする請求項1記載の画像伸長方法。2. The image decompression method according to claim 1, wherein the code format is a JPEG2000 code format, and the marker segment for managing the code related information is a COM marker. 前記プログラム所在情報は、プログラム保管装置に保管されている新規の画像規格に対応したデコードプログラムを特定するURL(Uniform Resource Locator)であることを特徴とする請求項1または2記載の画像伸長方法。3. The image decompression method according to claim 1, wherein the program location information is a URL (Uniform Resource Locator) for specifying a decoding program compliant with a new image standard stored in a program storage device. 画像を符号化した圧縮符号であって、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理した前記圧縮符号を、デコードプログラムを用いて伸長する画像伸長装置において、
伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定する画像規格判定手段と、
前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得するプログラム取得手段と、
取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長する画像伸長手段と、
を備えることを特徴とする画像伸長装置。
A compressed code obtained by encoding an image, wherein code-related information including program location information indicating the location of at least a decoding program for expanding the compressed code is managed by a predetermined marker segment defined by a code format. In an image decompression device that decompresses a compression code using a decoding program,
Image standard determining means for determining whether the compressed code to be expanded is a new image standard that cannot be expanded by the existing decoding program based on the code related information managed by the marker segment;
If the compression code is determined to be a new image standard, a decoding program corresponding to the new image standard is sent to the network according to the program location information included in the code related information managed by the marker segment. Program acquisition means for acquiring from a program storage device connected via
Image decompression means for decompressing the compression code, which is a new image standard, using a decoding program corresponding to the obtained new image standard,
An image decompression device comprising:
符号フォーマットはJPEG2000の符号フォーマットであって、前記符号関連情報を管理する前記マーカセグメントはCOMマーカであることを特徴とする請求項4記載の画像伸長装置。The image decompression device according to claim 4, wherein the code format is a JPEG2000 code format, and the marker segment for managing the code related information is a COM marker. 前記プログラム所在情報は、プログラム保管装置に保管されている新規の画像規格に対応したデコードプログラムを特定するURL(Uniform Resource Locator)であることを特徴とする請求項4または5記載の画像伸長装置。6. The image decompression device according to claim 4, wherein the program location information is a URL (Uniform Resource Locator) for specifying a decoding program corresponding to a new image standard stored in the program storage device. 画像を符号化した圧縮符号であって、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理した前記圧縮符号を、デコードプログラムを用いて伸長する画像伸長装置が有するコンピュータにインストールされるか、あるいは解釈されて実行されるプログラムであって、
伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定する画像規格判定機能と、
前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得するプログラム取得機能と、
取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長する画像伸長機能と、
を前記コンピュータに実行させることを特徴とするプログラム。
A compressed code obtained by encoding an image, wherein code-related information including program location information indicating the location of at least a decoding program for expanding the compressed code is managed by a predetermined marker segment defined by a code format. A program to be installed or interpreted and executed on a computer having an image decompression device that decompresses a compression code using a decoding program,
An image standard determination function for determining whether or not the compression code to be expanded is a new image standard that cannot be expanded by the existing decoding program based on the code related information managed by the marker segment;
If the compression code is determined to be a new image standard, a decoding program corresponding to the new image standard is sent to the network according to the program location information included in the code related information managed by the marker segment. Program acquisition function to acquire from a program storage device connected via
An image decompression function for decompressing the compression code, which is a new image standard, using a decoding program corresponding to the obtained new image standard,
For causing the computer to execute.
画像を符号化した圧縮符号であって、少なくとも当該圧縮符号を伸長処理するためのデコードプログラムの所在を示すプログラム所在情報を含む符号関連情報を符号フォーマットで規定された所定のマーカセグメントで管理した前記圧縮符号を、デコードプログラムを用いて伸長する画像伸長装置が有するコンピュータにインストールされるか、あるいは解釈されて実行されるプログラムを記憶する記憶媒体であって、
伸長対象の前記圧縮符号が既存の前記デコードプログラムにより伸長不可能な新規の画像規格か否かを前記マーカセグメントで管理されている前記符号関連情報に基づいて判定する画像規格判定機能と、
前記圧縮符号が新規の画像規格であると判定された場合には、前記マーカセグメントで管理されている前記符号関連情報に含まれる前記プログラム所在情報に従い、新規の画像規格に対応したデコードプログラムをネットワークを介して接続されたプログラム保管装置から取得するプログラム取得機能と、
取得した新規の画像規格に対応したデコードプログラムを用いて新規の画像規格である前記圧縮符号を伸長する画像伸長機能と、
を前記コンピュータに実行させるプログラムを記憶することを特徴とする記憶媒体。
A compressed code obtained by encoding an image, wherein code-related information including program location information indicating the location of at least a decoding program for expanding the compressed code is managed by a predetermined marker segment defined by a code format. A storage medium for storing a program that is installed in a computer having an image decompression device that decompresses a compression code using a decoding program, or that is interpreted and executed,
An image standard determination function for determining whether or not the compression code to be expanded is a new image standard that cannot be expanded by the existing decoding program based on the code related information managed by the marker segment;
If the compression code is determined to be a new image standard, a decoding program corresponding to the new image standard is sent to the network according to the program location information included in the code related information managed by the marker segment. Program acquisition function to acquire from a program storage device connected via
An image decompression function for decompressing the compression code, which is a new image standard, using a decoding program corresponding to the obtained new image standard,
A program for causing a computer to execute the above.
JP2003025132A 2003-01-31 2003-01-31 Method and apparatus for image decompressing, program, and storage medium Pending JP2004236226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003025132A JP2004236226A (en) 2003-01-31 2003-01-31 Method and apparatus for image decompressing, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003025132A JP2004236226A (en) 2003-01-31 2003-01-31 Method and apparatus for image decompressing, program, and storage medium

Publications (1)

Publication Number Publication Date
JP2004236226A true JP2004236226A (en) 2004-08-19

Family

ID=32953489

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003025132A Pending JP2004236226A (en) 2003-01-31 2003-01-31 Method and apparatus for image decompressing, program, and storage medium

Country Status (1)

Country Link
JP (1) JP2004236226A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006237966A (en) * 2005-02-24 2006-09-07 Ricoh Co Ltd Image processing device
EP3627834A1 (en) 2018-09-18 2020-03-25 Canon Kabushiki Kaisha Image decompressing apparatus, control method thereof, and computer program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006237966A (en) * 2005-02-24 2006-09-07 Ricoh Co Ltd Image processing device
JP4728661B2 (en) * 2005-02-24 2011-07-20 株式会社リコー Image processing device
EP3627834A1 (en) 2018-09-18 2020-03-25 Canon Kabushiki Kaisha Image decompressing apparatus, control method thereof, and computer program
US10803368B2 (en) 2018-09-18 2020-10-13 Canon Kabushiki Kaisha Image decompressing apparatus, control method thereof, and non-transitory computer-readable storage medium

Similar Documents

Publication Publication Date Title
JP3922919B2 (en) Still image expansion apparatus and still image expansion method
JP2004221836A (en) Image processor, program, storage medium, and code expanding method
JP2004128948A (en) Client computer, server computer, program, storage medium, image data processing system, and image data processing method
JP2004194152A (en) Image processing apparatus, program, storage medium, and image editing method
JP2004147142A (en) Image processor, program, and storage medium
JP2004254298A (en) Image processing device, program, and storage medium
JP3952459B2 (en) Image processing apparatus, program, storage medium, and image processing method
JP2003169333A (en) Code string forming apparatus, picture expansion system, picture expander, picture providing system, code string forming method, program and recording medium
JP2004214828A (en) Image processing apparatus, image processing method, computer program for image processing, and storage medium for storing the image processing computer program
JP2004172957A (en) Image processor, program and storage medium
JP2004221633A (en) Image processing apparatus, image processing program, and storage medium
JP2007014002A (en) Image processing apparatus, image processing program and recording medium
JP2004236226A (en) Method and apparatus for image decompressing, program, and storage medium
JP4489474B2 (en) Image processing apparatus, program, and recording medium
JP2002369202A (en) Image compression device, image expansion device, image compressing method, image expanding method, program and recording medium stored with the program
JP2004096695A (en) Image processing apparatus, image display device, program, storage medium, and image processing method
JP2004056260A (en) Image decoder, image processor, program, recording medium and image decoding method
JP4361755B2 (en) Moving image processing apparatus, program, storage medium, and moving image processing method
JP2004201048A (en) Image information processing method
JP2004133443A (en) Image processing device, image display, program, storage medium, method of processing image and image display system
JP4323178B2 (en) Search object restriction device, image processing apparatus, program, storage medium, and search object restriction method
JP3987425B2 (en) Image decompression apparatus, program, storage medium, and image decompression method
JP4280508B2 (en) Misalignment correction apparatus, image processing apparatus, program, storage medium, and misalignment correction method
JP4093870B2 (en) Image processing apparatus, program, and storage medium
JP2004112566A (en) Image processor, image processing method, image processing program, and storage medium for storing the image processing program

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20041008

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051116

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20051021

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20060905

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071025

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071030

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071228

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080205