[go: up one dir, main page]

JP4319333B2 - Compressed image data restoration device, compressed image data restoration method, and medium recorded with compressed image data restoration program - Google Patents

Compressed image data restoration device, compressed image data restoration method, and medium recorded with compressed image data restoration program Download PDF

Info

Publication number
JP4319333B2
JP4319333B2 JP2000202737A JP2000202737A JP4319333B2 JP 4319333 B2 JP4319333 B2 JP 4319333B2 JP 2000202737 A JP2000202737 A JP 2000202737A JP 2000202737 A JP2000202737 A JP 2000202737A JP 4319333 B2 JP4319333 B2 JP 4319333B2
Authority
JP
Japan
Prior art keywords
image data
point
compressed image
breakage
damage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2000202737A
Other languages
Japanese (ja)
Other versions
JP2002027254A (en
Inventor
輝基 鈴木
Original Assignee
有限会社ルミネ
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 有限会社ルミネ filed Critical 有限会社ルミネ
Priority to JP2000202737A priority Critical patent/JP4319333B2/en
Publication of JP2002027254A publication Critical patent/JP2002027254A/en
Application granted granted Critical
Publication of JP4319333B2 publication Critical patent/JP4319333B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、圧縮画像データ修復装置、圧縮画像データ修復方法および圧縮画像データ修復プログラムを記録した媒体に関する。
【0002】
【従来の技術】
近年、写真をコンピュータ上で処理する際、ファイル容量を低減させるために圧縮処理が利用されている。その一例として、JPEG画像と呼ばれるものは、8×8画素の領域を一単位として所定のパターンに置き換えて符号化している。
【0003】
一方、このような圧縮画像データはハードディスクを始めとして、各種の記録媒体に保存されることが多いが、記録媒体での読み書き、および保存時に、オペレーティングシステムなどのファイルエラー訂正機能で訂正しきれないエラーが生じることも増えてきている。
エラーが一画像につき、数バイト連続して発生するのは希であり、通常は1バイトが独立して生じる程度である。画像データも未圧縮であれば単にエラーが生じた一画素について再現がおかしくなるだけで済むが、圧縮しているとエラーが生じた画素以降に影響が出る。また、画像は先頭から順次画像状況に即して圧縮されていくので、エラーが発生したデータを特定するのは極めて難しい。さらに、ファイルの先頭からエラー箇所を探していくとしても、エラーを修復できたか否かを自動的に判別する手段がないので、人手を介して作業することとなり、極めて長時間を要してしまう。
【0004】
【発明が解決しようとする課題】
上述したように、従来は、圧縮画像データにエラーが生じたとしてもエラー箇所を特定することができないため、ファイルの先頭位置から修正を試みざるを得ない。しかし、ファイルが大きくなってきている今日においては極めて長時間を要してしまい、実質的に不可能であるという課題があった。
本発明は、上記課題にかんがみてなされたもので、短時間に圧縮画像データを修復することが可能な圧縮画像データ修復装置、圧縮画像データ修復方法および圧縮画像データ修復プログラムを記録した媒体の提供を目的とする。
【0005】
【課題を解決するための手段】
上記目的を達成するため、請求項1にかかる発明は、圧縮画像データを復元して表示し、画像破損点の指示操作を受け付ける指示操作手段と、指示された上記画像破損点の復元画像データにおける相対的な位置情報に対応して圧縮画像データ内における破損推定点を設定する初期設定手段と、上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合と元の圧縮画像データに基づいて復元処理した場合との相違点を検出して上記破損推定点を検証する第一の破損点検証手段と、上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合における上記画像破損点を基準とした破損画像領域と未破損画像領域との境界での画像の変位状況に基づいて上記破損推定点を検証する第二の破損点検証手段と、上記第一の破損点検証手段と上記第二の破損点検証手段を制御し、その検証結果に基づいて上記破損推定点を本来の破損点に近づかせる破損点再設定手段とを具備する構成としてある。
【0006】
上記のように構成した請求項1にかかる発明においては、指示操作手段が圧縮画像データを復元して表示したら、操作者は画像破損点を指示し、当該指示操作手段が指示操作を受け付けると、初期設定手段は、指示された上記画像破損点の復元画像データにおける相対的な位置情報に対応して圧縮画像データ内における破損推定点を設定する。ここで、第一の破損点検証手段は上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合と元の圧縮画像データに基づいて復元処理した場合との相違点を検出して上記破損推定点を検証するし、第二の破損点検証手段は上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合における上記画像破損点を基準とした破損画像領域と未破損画像領域との境界での画像の変位状況に基づいて上記破損推定点を検証する。従って、破損点再設定手段は、上記第一の破損点検証手段と上記第二の破損点検証手段を適宜制御し、その検証結果に基づいて上記破損推定点を本来の破損点に近づかせる。
【0007】
例えば、第一の破損点検証手段を利用した場合、変更後の圧縮画像データに基づいて復元処理した場合と元の圧縮画像データに基づいて復元処理した場合との相違点を検出するので、破損推定点が本来の破損点よりも前方側であるのか後方側であるのかを大まかに把握できる。
しかし、第一の破損点検証手段を利用しても、破損推定点と本来の破損点との相違を見つけることはできても、正しいデータは検証できない。
【0008】
これに対し、第二の破損点検証手段を利用した場合、変更後の圧縮画像データに基づいて復元処理した場合における上記画像破損点を基準とした破損画像領域と未破損画像領域との境界での画像の変位状況を検出するため、この変位が少ないときの破損推定点および変更データが本来の正しいデータであることまで分かる。
ただし、第二の破損点検証手段は作業負荷が大きいので、あてのないままファイルの先頭から検証していくのは効率的でない。
【0009】
このような両特性を鑑みた結果、請求項2にかかる発明は、上記請求項1に記載の圧縮画像データ修復装置において、上記破損点再設定手段は、上記破損推定点と本来の破損点とが遠い場合に上記第一の破損点検証手段を実施し、近い場合に上記第二の破損点検証手段を実施させる構成としてある。
上記のように構成した請求項2にかかる発明においては、上記破損推定点と本来の破損点とが遠い場合に上記第一の破損点検証手段を実施することにより、軽い負荷で破損推定点を本来の破損点へと近づけ、近くなってから、上記第二の破損点検証手段で本来の破損点と正しいデータを突き止めることになる。
【0010】
ところで、圧縮画像データは、本来の画像の状況に応じて先頭から圧縮しているため、データを変更したときの影響結果がどのように反映されるかは一義的ではない。すなわち、ファイルの先頭寄りのデータを変更したときに復元した画像データの先頭寄りの部分が変化するとは限らないので、ある破損推定点のデータを変更したときに本来の破損点よりも後方側でデータが変化したからといって破損推定点の方が前方側であるとは断言できない。
【0011】
このため、請求項3にかかる発明は、上記請求項1または請求項2のいずれかに記載の圧縮画像データ修復装置において、上記第一の破損点検証手段は、破損推定点を基準とする複数点における圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合と元の圧縮画像データに基づいて復元処理した場合との相違点を検出して上記破損推定点を検証する構成としてある。
上記のように構成した請求項3にかかる発明においては、破損推定点を基準とする複数点における圧縮画像データを変更する。例えば、破損推定点を基準としてファイルの後方側の数画素について圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理する。この場合、一般的には後の画素について変更したものの方が元の圧縮画像データに基づいて復元処理した場合よりも後方側で相違点が生じる傾向にあるものの、一部の画素では逆転する可能性もある。そして、そのような食い違いが生じるとしても数画素の結果を総合的に考慮すれば、破損推定点が本来の破損点よりも前方側か後方側かは正しく判断できる。
【0012】
また、第二の破損点検証手段は破損画像領域と未破損画像領域との境界での画像の変位状況を検出するが、境界全部で詳しく検証しようとすれば正確に判断できる反面、負荷が極端に大きくなる。これに対して、少しの境界領域だけで判断すれば処理速度が向上する反面、検証精度は低下する。
このため、請求項4にかかる発明は、上記請求項1〜請求項3のいずれかに記載の圧縮画像データ修復装置において、上記第二の破損点検証手段は、検証モードを指定可能であり、同検証モードに対応して破損画像領域と未破損画像領域との境界での検出密度を変化させる構成としてある。
【0013】
上記のように構成した請求項4にかかる発明においては、検証モードを選択して破損画像領域と未破損画像領域との境界での検出密度を変化させることができるので、精度と速度の調和を図ることができる。
また、圧縮画像データの性質上、必ずしも任意の点でデータを変更したときに圧縮画像を復元できるとは限らないし、逆に復元できなければ確実にその破損点と変更データの組み合わせは正しくないといえる。このため、請求項5にかかる発明は、上記請求項1〜請求項4のいずれかに記載の圧縮画像データ修復装置において、上記破損点再設定手段は、上記第一の破損点検証手段と上記第二の破損点検証手段にて上記破損推定点の圧縮画像データを変更した場合に、変更後の圧縮画像データに基づいて復元不能であれば上記破損点を再設定させる構成としてある。
【0014】
上記のように構成した請求項5にかかる発明においては、上記第一の破損点検証手段と上記第二の破損点検証手段にて上記破損推定点の圧縮画像データを変更したとしても、変更後の圧縮画像データに基づいて復元不能であればそのデータは正しくないはずであるので検証を進めることなく上記破損点を再設定する。
さらに、請求項6にかかる発明は、上記請求項1〜請求項5のいずれかに記載の圧縮画像データ修復装置において、上記破損点再設定手段は、上記破損推定点と本来の破損点の手前から近接するように上記破損推定点を再設定させる構成としてある。
【0015】
上記のように構成した請求項6にかかる発明においては、上記破損推定点を本来の破損点に近接させていくに際し、ファイルの先頭側である手前側から上記破損推定点を再設定していく。
圧縮画像データは各種のものに適用可能であるが、請求項7にかかる発明は、上記請求項1〜請求項6のいずれかに記載の圧縮画像データ修復装置において、上記圧縮画像データとして静止画圧縮画像を対象としており、請求項8にかかる発明は、上記請求項1〜請求項6のいずれかに記載の圧縮画像データ修復装置において、上記圧縮画像データとして動画圧縮画像を対象としている。
【0016】
一方、以上のような手法で破損を修復するのみならず、他の破損パターンに対して修復可能な構成とすることも可能であり、その一例として請求項9にかかる発明においては、上記請求項1〜請求項8のいずれかに記載の圧縮画像データ修復装置において、上記指示操作手段は、破損した圧縮画像データを表示する際に表示が不能であれば所定のデータを置き換えて画像の表示を行えるようにする構成としてある。
【0017】
上記のように構成した請求項9にかかる発明においては、破損した圧縮画像データを表示する際に表示が不能であれば指示操作手段が所定のデータを置き換えて画像の表示を行えるようにする。例えば、ファイルのヘッダ部分のように定型部分での破損については画像の種類などを別の手段で判別して定型的なデータに置き換えてしまうことにより、表示が可能になることもある。また、ヘッダ部分に限らず予め分かっているパターンでの破損であればある一定の範囲のデータだけを調べてデータの置き換えを試みるということも可能である。
【0018】
また、画像破損点の指示操作は人間が行うのが簡単確実ではあるが、自動化が不可能なわけではない。その一例として、請求項10にかかる発明においては、上記請求項1〜請求項9のいずれかに記載の圧縮画像データ修復装置において、上記指示操作手段は、上記圧縮画像データを復元して表示する際に画像破損点の有無を検出し、検出できた場合に上記指示操作を受け付けたものとする構成としてある。
【0019】
上記のように構成した請求項10に係る発明においては、指示操作を受け付ける前に上記指示操作手段が上記圧縮画像データを復元するが、この際に画像破損点の有無を検出してみる。圧縮画像データには破損の典型的なパターンが比較的容易に検出できる場合もあるので、既存のパターンでの破損点の検出を試み、検出できた場合に上記指示操作を受け付けたものとして残りの処理へ移行する。
このように、圧縮画像データについて破損点の推定と本来のデータの解明を探る手法は必ずしも実体のある装置に限られる必要はなく、その方法としても機能することは容易に理解できる。このため、請求項11にかかる発明は、圧縮画像データを復元して表示し、画像破損点の指示操作を受け付ける指示操作工程と、指示された上記画像破損点の復元画像データにおける相対的な位置情報に対応して圧縮画像データ内における破損推定点を設定する初期設定工程と、上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合と元の圧縮画像データに基づいて復元処理した場合との相違点を検出して上記破損推定点を検証する第一の破損点検証工程と、上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合における上記画像破損点を基準とした破損画像領域と未破損画像領域との境界での画像の変位状況に基づいて上記破損推定点を検証する第二の破損点検証工程と、上記第一の破損点検証工程と上記第二の破損点検証工程の実行を制御し、その検証結果に基づいて上記破損推定点を本来の破損点に近づかせる破損点再設定工程とを具備する構成としてある。
【0020】
すなわち、必ずしも実体のある装置に限らず、その方法としても有効であることに相違はない。
ところで、このような圧縮画像データ修復装置は単独で存在する場合もあるし、ある機器に組み込まれた状態で利用されることもあるなど、発明の思想としてはこれに限らず、各種の態様を含むものである。従って、ソフトウェアであったりハードウェアであったりするなど、適宜、変更可能である。
【0021】
発明の思想の具現化例として圧縮画像データ修復装置のソフトウェアとなる場合には、かかるソフトウェアを記録した記録媒体上においても当然に存在し、利用されるといわざるをえない。
その一例として、請求項12にかかる発明は、コンピュータにて圧縮画像データを修復させる圧縮画像データ修復プログラムを記録した媒体であって、圧縮画像データを復元して表示し、画像破損点の指示操作を受け付ける指示操作機能と、指示された上記画像破損点の復元画像データにおける相対的な位置情報に対応して圧縮画像データ内における破損推定点を設定する初期設定機能と、上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合と元の圧縮画像データに基づいて復元処理した場合との相違点を検出して上記破損推定点を検証する第一の破損点検証機能と、上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合における上記画像破損点を基準とした破損画像領域と未破損画像領域との境界での画像の変位状況に基づいて上記破損推定点を検証する第二の破損点検証機能と、上記第一の破損点検証機能と上記第二の破損点検証機能の実行を制御し、その検証結果に基づいて上記破損推定点を本来の破損点に近づかせる破損点再設定機能とを具備する構成としてある。
【0022】
むろん、その記録媒体は、磁気記録媒体であってもよいし光磁気記録媒体であってもよいし、今後開発されるいかなる記録媒体においても全く同様に考えることができる。また、一次複製品、二次複製品などの複製段階については全く問う余地無く同等である。その他、供給方法として通信回線を利用して行なう場合でも本発明が利用されていることにはかわりない。
さらに、一部がソフトウェアであって、一部がハードウェアで実現されている場合においても発明の思想において全く異なるものではなく、一部を記録媒体上に記憶しておいて必要に応じて適宜読み込まれるような形態のものとしてあってもよい。
【0023】
本発明をソフトウェアで実現する場合、ハードウェアやオペレーティングシステムを利用する構成とすることも可能であるし、これらと切り離して実現することもできる。例えば、補間処理するために画像データを入力する処理といっても、その実現方法はオペレーティングシステムにおける所定の関数を呼び出して処理することも可能であれば、このような関数を呼び出すことなくハードウェアから入力することも可能である。そして、実際にはオペレーティングシステムの介在のもとで実現するとしても、プログラムが媒体に記録されて流通される過程においては、このプログラムだけで本発明を実施できるものと理解することができる。
【0024】
また、本発明をソフトウェアで実施する場合、発明がプログラムを記録した媒体として実現されるのみならず、本発明がプログラム自体として実現されるのは当然であり、プログラム自体も本発明に含まれる。
【0025】
【発明の効果】
以上説明したように本発明は、従来は到底不可能であった破損した圧縮画像データを短時間で修復することが可能な圧縮画像データ修復装置を提供することができる。
【0026】
また、請求項2にかかる発明によれば、第一の破損点検証手段と第二の破損点検証手段を効率よく使い分けて短時間で修復することができる。
さらに、請求項3にかかる発明によれば、破損推定点の検証を偶然に左右されることなく精度良く短時間に行うことができる。
さらに、請求項4にかかる発明によれば、目的に応じて精度と処理時間を調和させることができる。
さらに、請求項5にかかる発明によれば、復元不能な破損推定点には早期に見切りを付け、処理時間を短縮させることができる。
【0027】
さらに、請求項6にかかる発明によれば、破損推定点を本来の手前から近接させることにより、例えば複数の破損推定点に基づいて処理をしている場合などに前の判断結果を利用でき、効率をよくすることができる。
さらに、請求項7にかかる発明によれば、静止画を修復することが可能となる。
さらに、請求項8にかかる発明によれば、動画を修復することが可能となる。
さらに、請求項9にかかる発明によれば、表示すら不能な圧縮画像も修復できる可能性が生じる。
【0028】
さらに、請求項10にかかる発明によれば、人間による画像破損点の指示操作を省略できる可能性が生じる。
さらに、請求項11にかかる発明によれば、同様の効果を奏することが可能な圧縮画像データ修復方法を提供でき、請求項12にかかる発明によれば、圧縮画像データ修復プログラムを記録した媒体を提供できる。
【0029】
【発明の実施の形態】
以下、図面に基づいて本発明の実施形態を説明する。
図1は、本発明の圧縮画像データ修復装置を表すクレーム対応図である。
ディジタルスチルカメラなどで撮影したディジタル写真画像は、JPEGなどの圧縮画像データファイルとして保存される。本圧縮画像データ修復装置はこのような圧縮画像データファイルの一部が意図しないデータに書き換えられてしまった場合に修復するものであり、指示操作手段C1では復元した画像における破損点の指示操作を受け付け、初期設定手段C2は指示した破損点の復元画像上における相対位置から圧縮画像データにおける破損推定点を割り出し、異なる手法で破損推定点の検証を行う第一の破損点検証手段C3と第二の破損点検証手段C4とを破損点再設定手段C5が適宜清書して圧縮画像データにおける本来の破損点を突き止める。
【0030】
本実施形態においてはこのような圧縮画像データ修復装置を実現するハードウェアの一例としてコンピュータシステム10を採用している。
図2は、同コンピュータシステム10をブロック図により示している。
本コンピュータシステム10は、画像入力デバイスとして、スキャナ11aとデジタルスチルカメラ11bとビデオカメラ11cとを備えており、コンピュータ本体12に接続されている。それぞれの入力デバイスは画像をドットマトリクス状の画素で表現した画像データを生成してコンピュータ本体12に出力可能となっており、ここで同画像データはRGBの三原色においてそれぞれ256階調表示することにより、約1670万色を表現可能となっている。
【0031】
コンピュータ本体12には、外部補助記憶装置としてのフロッピーディスクドライブ13aとハードディスク13bとCD−ROMドライブ13cとが接続されており、ハードディスク13bにはシステム関連の主要プログラムが記録されており、フロッピーディスクやCD−ROMなどから適宜必要なプログラムなどを読み込み可能となっている。
また、コンピュータ本体12を外部のネットワークなどに接続するための通信デバイスとしてモデム14aが接続されており、外部のネットワークに同公衆通信回線を介して接続し、ソフトウェアやデータをダウンロードして導入可能となっている。この例ではモデム14aにて電話回線を介して外部にアクセスするようにしているが、LANアダプタを介してネットワークに対してアクセスする構成とすることも可能である。この他、コンピュータ本体12の操作用にキーボード15aやマウス15bも接続されている。
【0032】
さらに、画像出力デバイスとして、ディスプレイ17aとカラープリンタ17bとを備えている。ディスプレイ17aについては水平方向に800画素と垂直方向に600画素の表示エリアを備えており、各画素毎に上述した1670万色の表示が可能となっている。むろん、この解像度は一例に過ぎず、640×480画素であったり、1024×768画素であるなど、適宜、変更可能である。
【0033】
一方、このような画像入力デバイスを使用して画像を入力しつつ、画像出力デバイスに表示あるいは出力するため、コンピュータ本体12内では所定のプログラムが実行されることになる。そのうち、基本プログラムとして稼働しているのはオペレーティングシステム(OS)12aであり、このオペレーティングシステム12aにはディスプレイ17aでの表示を行わせるディスプレイドライバ(DSP DRV)12bとカラープリンタ17bに印刷出力を行わせるプリンタドライバ(PRT DRV)12cが組み込まれている。これらのドライバ12b,12cの類はディスプレイ17aやカラープリンタ17bの機種に依存しており、それぞれの機種に応じてオペレーティングシステム12aに対して追加変更可能である。また、機種に依存して標準処理以上の付加機能を実現することもできるようになっている。すなわち、オペレーティングシステム12aという標準システム上で共通化した処理体系を維持しつつ、許容される範囲内での各種の追加的処理を実現できる。
【0034】
この基本プログラムとしてのオペレーティングシステム12a上でアプリケーション12dが実行される。アプリケーション12dの処理内容は様々であり、操作デバイスとしてのキーボード15aやマウス15bの操作を監視し、操作された場合には各種の外部機器を適切に制御して対応する演算処理などを実行し、さらには、処理結果をディスプレイ17aに表示したり、カラープリンタ17bに出力したりすることになる。
【0035】
かかるコンピュータシステム10では、画像入力デバイスであるデジタルスチルカメラ11bなどで圧縮画像データを取得し、アプリケーション12dによる所定の画像処理を実行した後、画像出力デバイスとしてのディスプレイ17aやカラープリンタ17bに表示出力することが可能である。
圧縮画像データの一部が破損しているとすると、本来の画像通りには復元できず、表示や印刷もままならない。ただ、一部が破損するとしても通常は1バイトのデータエラーが希に生じる程度であり、ファイルの多くのデータが欠落して復元できないような場合まで圧縮画像データを修復できるわけではない。ただ、圧縮画像データが全く表示できない場合でも、1バイト程度なら、ファイルの先頭から総アタックを行うことで表示できる場合もあるので、本発明で修復できる可能性がある。
【0036】
特に、ファイルの破損のタイプによっては修復が比較的簡易に行えてしまうこともある。例えば、圧縮画像データファイルのタイプを示すデータが破損することがある。JPEG画像の例で示すと、ファイルの先頭部分に当該データファイルがJPEG圧縮されていることを示すデータが書き込まれているが、その1バイトでも破損しているとJPEG圧縮されていることすら不明となって復元の対象から除外されてしまう。しかしながら、破損圧縮画像として操作者が指摘した以上は画像データファイルであることが強く推測できるし、さらにはファイルの拡張子などからもJPEG圧縮されていることを推測できることも多い。このような場合にはデータファイルの定型部分について破損データを他のデータに置き換え、画像を表示できるようにしてから他の部分の破損データの修復を試みればよい。むろん、この定型部分だけの修復で画像を完全に表示できるようになる場合にはこれで修復を終了すればよい。むろん、このようなデータの置き換えは指示操作手段C1が行うことになる。なお、必ずしも定型部分でなくてもデータファイルにおける所定の範囲でデータを置き換えてみて表示の可否を試みるようにしてもよい。
【0037】
図3は、上記アプリケーション12dとしての圧縮画像データ修復プログラムをフローチャートにより示している。
本圧縮画像データ修復プログラムが起動されると、まず、ステップ100にて圧縮画像データファイルを指定する。すなわち、プログラムではオペレーティングシステム12aを介して操作者によるキーボード15aやマウス15bの操作を監視し、圧縮画像データの選択を待機する処理である。そして、ファイルオープンダイアログやイクスプローラなどで所定の圧縮画像データファイルの指定操作を行うと、ステップ200にて同圧縮画像データファイルをビットマップイメージに復元し、ディスプレイ17aにて表示させるとともに、この時点における復元したビットマップイメージをハードディスク13bに保存する。ハードディスク13bに保存するのは後の工程でこのビットマップイメージを繰り返し参照するためであり、必要に応じてRAMディスクエリアなどを指定して保存するようにしても良い。
【0038】
次いで、ステップ300にて破損ブロックの位置を指示する操作を入力する。図4は一般的なJPEG圧縮画像データファイルで1バイトに破損が生じた場合のディスプレイ17a上での表示例を示している。図中、上半分の未破損画像領域17a1と下半分の破損画像領域17a2とに分かれて示しているが、上半分の未破損画像領域17a1は正常に表示され、下半分の破損画像領域17a2が正常に表示されていないものとする。図5は表示が正常に行われなくなりはじめた破損ブロック17a5の近辺を拡大表示している。JPEG画像は8×8画素ごとのブロック領域を単位として圧縮されるとともに、左上から右方向に向け、かつ、順次下方向に向かって圧縮されるため、破損点を含む破損ブロック17a5の右側および下方の領域が正常に表示されなくなる。
【0039】
操作者はマウス15bを操作し、アローポインタ17a3にて破損点が含まれる破損ブロック17a5を指示してクリック操作する。この際、アローポインタ17a3にて指示される8×8画素の領域17a4を反転表示させ、操作者が正しくアローポインタ17a3で表示上の破損領域を指示できるようにしている。なお、この操作を受け付けるステップ300のソフトウェア処理および関連するハードウェアが指示操作手段C1を構成する。本実施形態においては、マウス15bで領域を指示するようにしたが、カーソルで8×8画素の領域を移動させたり、予め欄外に示した領域表示(A,B,C…、1,2,3…)を文字入力(例えば、「B−4」というように)できるようにしても良い。
【0040】
これに加えて指示操作をさらに自動的にすることも可能である。上述したようにJPEG画像であればその破損パターンとしてある画素から水平方向右方向の上側の領域と下側の領域とで突然色の傾向が変わり、さらに、8画素下方の画素を基準とした水平方向左方向の上側の領域と下側の領域とで突然色の傾向が変わる。従って、予めこのような特徴的な破損の有無を検出し、破損を検出できたら上述した破損領域の指示があったものとして以下の処理を実行するようにしても良い。この意味で、指示操作手段C1は破損領域指示の自動化をも含むものとして構成することが可能である。
【0041】
図3に戻ると、ステップ400では指示された破損領域の表示画像上での相対的な位置情報から破損推定点を算出する。本来、画像の状況に応じてファイルの前方から徐々に圧縮画像データが生成されていくため、破損領域の表示画像上での相対的な位置情報が得られたとしても画像の状況次第でデータファイル上での該当位置は不明のはずである。特に、ストリーム配信技術を採用してデータ配信中でもできるだけ見栄えが良くなるようにしようとするとその傾向はさらに強調される。
【0042】
ただし、変動はあるとしても概略の傾向がつかめることも多い。図6はデータファイルの一部を書き換えたときに画像を復元して得られる変化位置の相対関係を示している。図中、横軸はデータを変化させる位置情報であってデータファイル中における最初の破損推定点を基準として示しており、縦軸は最初の破損推定点に対応した破損位置を基準として変化が生じた画素の位置情報を示している。実際には画像によって同じサイズのデータファイルを使用して同じ位置のデータを変更したとしても表示画面に生じる変化位置は変動する。しかしながら、このグラフ表示から明らかなように概略の推定は可能である。本実施形態においては、最小二乗近似関数として
Y=0.003507*X**2−1.425665*X
が得られており、ステップ300にて同計算式を利用して破損推定点を算出する。なお、本計算式で完全な答えを求めるのは無理であり、計算式をより簡易な一次式に変更したり、予めテーブルを作成しておいて単純な早見表として利用することも可能である。いずれにしても、以上のようにして指示された破損領域の表示画像上での相対的な位置情報から破損推定点を算出するソフトウェア処理および関連するハードウェアが初期設定手段C2を構成する。
【0043】
続いてステップ500では以上のようにして算出された破損推定点を本来の破損点に近づけていく処理を行う。図7はその詳細なフローチャートを示している。ステップ502ではワークエリアを介して上記算出された破損推定点を取得し、ワーク用の破損推定点にセットする。続いてステップ504ではこの破損推定点のデータを変更し、ステップ506で変更後のデータファイルを利用してビットマップイメージの復元を試みる。
【0044】
ただし、任意の位置のデータを変更しているので、必ずしも復元が可能であるとは限らず、復元可能である場合にのみステップ508の判断を経てステップ510にて復元したビットマップイメージとステップ200で保存しておいたイメージとを比較し、相違位置を判別する。すなわち、ある点を破損推定点としてそのデータを変更したとすると、そのデータファイルを利用して復元したビットマップイメージは変更前のものとどこかで相違するはずである。ビットマップイメージ上での破損領域はマウス15bで指示して判別されているから、その位置との比較で上記相違位置が前方か後方かが分かる。相違位置の方が後方側であるとしたら、図6に示す関係から推定して破損推定点の方が破損点よりもデータファイル中で後方側であるといえる。
【0045】
ステップ512とステップ514では相違位置が破損点に対してどのような位置関係にあるかを判別して破損推定点を移動させる。すなわち、破損推定点よりも後方であればステップ512の判断を経てステップ518で破損推定点をより前方へ戻してしまう。また、破損推定点よりも手前であるが、まだ破損推定点よりも遠ければステップ512とステップ514の判断を経てステップ516で破損推定点を少し後方へ移動させる。通常は、破損推定点を前方から徐々に破損点に近づけていくようにするため、ステップ512〜ステップ516の処理を繰り返していくことになる。そして、いよいよ破損推定点が破損点に近づいてきたらステップ514の判断を経てこの破損点近接化処理を終了する。
【0046】
このように、ある点を破損推定点としてそのデータを変更してから復元したビットマップイメージと変更前のビットマップイメージとの相違位置に基づいて上記破損推定点が破損点よりも手前か否かを判断するソフトウェア処理および関連するハードウェアが第一の破損点検証手段C3を構成する。
この例では変更後のデータファイルに基づいて最後までビットマップイメージを復元しているが、相違位置が破損点よりも遠くにあることが分かった時点で処理を中止することもできる。また、破損推定点を基準として複数点を予め設定し、同時に処理をすることもできる。例えば、ある破損推定点を設定してビットマップイメージを復元していき、破損推定点のデータを変更して復元したところ、それによってビットマップイメージが変化した破損位置がマウス15bで指示した破損位置よりも手前であって近くなければ、上記破損推定点のデータを元のデータに戻しつつ、破損推定点をさらに前方に設定する。このとき、さらにそれまで復元したビットマップイメージはそのまま利用する。このようにすれば、破損推定点を変化させるごとに復元のための計算を繰り返す必要が無くなるので、処理を速くさせることができる。この意味で、破損推定点の設定は常に手前側から近接させていく方にメリットがある。むろん、以上の処理が可能であるか否かは圧縮画像データの性質によるため、必ずしも全ての場合において実現可能なわけではない。
【0047】
また、破損推定点を後方に移動させれば必ずしも上記相違位置が後方移動されるとも限らないため、複数のポイントを利用して総合的に判断する方が正しい結果を得られることも多い。従って、破損推定点を基準とした複数点を利用して検証する意義がある。
破損点近接化処理を終了したら、図3に示すようにステップ600にて総アタックモードを開始する。図8はこの総アタックモードをより詳細に示しており、ステップ602にて最後に設定された破損推定点を所定のワーク用の破損推定点にセットし、ステップ616で順次破損推定点を一バイトずつ移動させながらステップ604とステップ614との間で破損推定点のデータを「0」〜「255」の範囲で変化させて画像が正しく復元されたか否かを判断する。
【0048】
画像が正しく復元されたか否かは、ステップ606にて破損推定点のデータを変更してビットマップイメージを復元させた後、ステップ608にて破損領域の周辺で画像のなめらかさを判別して行っている。図9はこの画像のなめらかさの判別処理を詳細に示しており、図10は判断に利用する境界を示している。
この例では、ステップ620〜ステップ626にて破損ブロック17a5と上半分の未破損画像領域17a1との境界部分を検証し、ステップ628とステップ630にて上半分の未破損画像領域17a1と下半分の破損画像領域17a2との境界を検証する。
【0049】
まず、ステップ620では破損ブロック17a5の境界にポインタを設定する。本来であれば全ての境界画素でなめらかさを判別しても良いが、それだけ処理量は増える。従って、処理速度と精度とのバランスで全画素について行なうか間引きして行なうかを決定する。むろん、操作者に選択させるようにしても良い。ステップ622ではポインタ位置での色変化量を算出する。図10において、境界を挟む4画素についてそれぞれの未破損画像領域17a1と破損画像領域17a2での2画素ずつの色の平均を算出し、さらに、それぞれの平均値の差を色変化量として保存・積算する。そして、ステップ624にてポインタを移動させ、ステップ626にて境界を全て終了したと判断するまで繰り返す。図を参照すると、破損ブロック17a5と上半分の未破損画像領域17a1との境界は16画素(=8画素+8画素)あり、全画素について演算する場合には16画素での色変化量が積算されることになる。
【0050】
その後、ステップ628では破損ブロック17a5の上辺を後方に延長した境界で同様の計算を行う。ただし、この境界は長いことが予想されるので、10画素おきであるとか、20画素おきというように間引きして演算を実行する。また、ステップ630では破損ブロック17a5の下辺を前方に延長した境界で同様の計算を行う。
ステップ632ではそれぞれの境界で保存・積算しておいた色変化量を用いてなめらかさを算出する。ここでのなめらかさは単純にパラメータとして利用するだけであり、特別な計算式を必要とするものではない。例えば、演算した画素の和で積算量を除した平均値でも良いし、単なる積算量でもよい。さらに、色変化量自体についても上半分の未破損画像領域17a1の2画素の変化傾向と下半分の破損画像領域17a2の2画素の変化傾向とをそれぞれ算出してその差をとってもよい。例えば、上の2画素では徐々に明るくなっていくとすると、下の2画素でも徐々に明るくなっていく傾向が見られることが多いと考えられる。そして、上述したような変化傾向をとっていれば、この場合は両者が一致することになる。むろん、2画素を利用すること自体も任意であり、その画素数を増減させることも可能である。
【0051】
ステップ610ではこのようにして算出されたなめらかさを利用して基準値を下回ったか否かを判断し、下回った時点でステップ618にてそのときの破損推定点と変更したデータを保存して総アタックモードを終了する。
以上のようにして破損推定点を一バイトずつずらしていったときに、各バイトごとでとりうる「0」〜「255」の全ての値について未破損画像領域17a1と破損画像領域17a2との境界で画像がなめらかに接しているか否かを判断するソフトウェア処理および関連するハードウェアが第二の破損点検証手段C4を構成する。
【0052】
なお、本実施形態においては色変化量を利用して境界での画像の変位状況を判別しているが、未破損画像領域17a1と破損画像領域17a2とがなめらかに接続したか否かを判断する手法は様々である。図11は他の手法を概略的に示すものであり、この例では上半分の未破損画像領域17a1に道路17a6が写っているが、この道路17a6が破損画像領域17a2において表示されなくなっている。しかしながら、実際に道路が寸断されているとは考えにくく、道路のような既知の物体が撮影された状況では、その物体の性質から、図11のように破損場所の道路形状を推測することが可能である。破損推定点でデータを変化させたとき、道路が推測に即した形状に修復されているかを、なめらかさで判断する情報と合わせて画像修復の判断基準にすると、さらに精度の高いデータ修復が見込まれる。
【0053】
また、処理の順序として先に破損点近接化処理を実施するとともに、その際に上述した第一の破損点検証手段C3の検証結果に基づいて破損点を再設定していったり、破損推定点が本来の破損点の手前に近づいたときから総アタックモードへ移行して破損推定点を一バイトずつずらしながら第二の破損点検証手段C4の検証結果に基づいて画像が復元されたか否かを判断しているが、このようにして破損推定点を設定する処理の流れおよび関連するハードウェアが破損点再設定手段C5を構成する。むろん、ソフトウェアによって同様の処理を異なる手順で実行することも可能であり、上述した本実施形態の処理手順は一例に過ぎない。
【0054】
また、上述した実施形態においては、静止画だけを扱ってきているが、動画についても全く同様に検討することができる。図12は動画の場合にデータが破損したときにどのように表れるかを示している。1コマ目は正常に表示されているが、2コマ目には突然意味不明の画像が表示され、3コマ目にも同じように表示されている。しかしながら、4コマ目には突然消えている。
このような場合、動画をコマ表示させて異常が生じたコマを画像破損点としてマウス15bで指示する。そして、コマ数単位で全データファイルにおける当該画像破損点の相対的な位置を調べてデータファイルの破損推定点を設定し、同破損推定点のデータを書き換えてみる。書き換えたデータファイルに基づいて再度コマ単位での画像を復元し、最初の画像との相違点がどの時点で表れるか調べる。指示した画像破損点よりも後方側であれば破損推定点をデータファイルの前方側へ移動させるし、指示した画像破損点よりも前方側であれば破損推定点を徐々に後方側に移動させる。
【0055】
そして、異常が生じたコマに近づいてきた時点で総アタックモードとなり、コマ単位で画像の変位状況を判別する。動画の場合、破損した領域の周辺を調べても良いし、突然の画像変化の有無を調べても良い。自然界においては画像の変化には制限があるので、それを越える画像の変化の有無を判別するのである。また、動画の場合は変化した画像の分だけデータが送られることが多いため、破損したデータの影響は同じ箇所に複数コマにわたって生じる。従って、破損画像として指定した全てのコマだけで画像に変化が生じればデータが復元されたと判断して良い可能性も高い。
【0056】
このように、破損画像を指示させた上で、破損推定点を設定しつつ同破損推定点のデータを変更して圧縮画像を復元を試み、元のイメージデータとの相違位置から同破損推定点と本来の破損点との相対的なずれを判別したり、破損推定点が破損点に近づいてきた時点で破損推定点のデータを変化させたときの破損画像領域富破損画像領域との境界の状況を調べることにより、破損した圧縮画像データを自動的に短時間で修復することができるようになった。
【図面の簡単な説明】
【図1】本発明の一実施形態にかかる圧縮画像データ修復装置を表すクレーム対応図である。
【図2】圧縮画像データ修復装置を実現するハードウェアの一例としてのコンピュータシステムのブロック図である。
【図3】圧縮画像データの修復手順を示すフローチャートである。
【図4】破損した圧縮画像データを復元して破損ブロックを指示する際の画面表示を示す図である。
【図5】破損ブロック近辺の拡大図である。
【図6】データファイルの変更位置と復元画像の変化位置との相関関係を示す図である。
【図7】破損点近接化処理のフローチャートである。
【図8】総アタックモードのフローチャートである。
【図9】画像のなめらかさ判別処理のフローチャートである。
【図10】画像のなめらかさ判別処理で参照する境界部分を拡大して示す図である。
【図11】画像の変位状況を検出する他の手法を示す図である。
【図12】動画の場合の圧縮画像データを修復する場合に生じる画像変化を示す図である。
【符号の説明】
C1…指示操作手段
C2…初期設定手段
C3…破損点検証手段
C4…破損点検証手段
C5…破損点再設定手段
10…コンピュータシステム
11a…スキャナ
11b…デジタルスチルカメラ
11c…ビデオカメラ
12…コンピュータ本体
12a…オペレーティングシステム
12b…プリンタドライバ
12c…ディスプレイドライバ
12d…アプリケーション
13a…フロッピーディスクドライブ
13b…ハードディスク
13c…CD−ROMドライブ
14a…モデム
15a…キーボード
15b…マウス
17a…ディスプレイ
17a1…未破損画像領域
17a2…破損画像領域
17a3…アローポインタ
17a4…領域
17a5…破損ブロック
17a6…道路
17b…カラープリンタ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a compressed image data restoration device, a compressed image data restoration method, and a medium on which a compressed image data restoration program is recorded.
[0002]
[Prior art]
In recent years, when a photograph is processed on a computer, compression processing is used to reduce the file capacity. As an example, what is called a JPEG image is encoded by replacing an 8 × 8 pixel area as a unit with a predetermined pattern.
[0003]
On the other hand, such compressed image data is often stored in various recording media such as a hard disk, but cannot be corrected by a file error correction function such as an operating system at the time of reading / writing and storing in the recording medium. The number of errors is increasing.
It is rare for an error to occur several consecutive bytes per image, and usually only one byte occurs independently. If the image data is also uncompressed, it is only necessary to reproduce the one pixel in which an error has occurred. However, if the image data is compressed, the pixel after the error has an effect. Also, since images are sequentially compressed from the top according to the image status, it is extremely difficult to identify data in which an error has occurred. Furthermore, even if the error location is searched from the beginning of the file, there is no means to automatically determine whether or not the error has been repaired, so it is necessary to work manually, which takes a very long time. .
[0004]
[Problems to be solved by the invention]
As described above, conventionally, even if an error occurs in the compressed image data, the error location cannot be specified, so correction must be attempted from the beginning position of the file. However, today, when files are getting larger, it takes a very long time, and there is a problem that it is practically impossible.
The present invention has been made in view of the above problems, and provides a compressed image data restoration device, a compressed image data restoration method, and a medium recorded with a compressed image data restoration program capable of restoring compressed image data in a short time. With the goal.
[0005]
[Means for Solving the Problems]
In order to achieve the above object, the invention according to claim 1 is directed to an instruction operation means for restoring and displaying compressed image data and receiving an instruction operation for an image breakage point, and for the restored image data of the designated image breakage point. Initial setting means for setting the estimated damage point in the compressed image data corresponding to the relative position information, and when the compressed image data of the damaged estimated point is changed and restored based on the changed compressed image data A first breakage point verification means for detecting the difference between the case where the restoration process is performed based on the original compressed image data and verifying the damage estimated point, and changing the compressed image data of the damage estimated point The estimated damage point is determined based on the displacement of the image at the boundary between the damaged image region and the undamaged image region based on the image damaged point when the restoration processing is performed based on the later compressed image data. The second breakage point verification means, the first breakage point verification means, and the second breakage point verification means to be verified, and the breakage point approaching the original breakage point based on the verification result And a point resetting means.
[0006]
In the invention according to claim 1 configured as described above, when the instruction operation unit restores and displays the compressed image data, the operator instructs the image breakage point, and when the instruction operation unit accepts the instruction operation, The initial setting means sets a damage estimation point in the compressed image data corresponding to the relative position information in the restored image data of the specified image damage point. Here, the first breakage point verification means changes the compressed image data of the breakage estimation point, and when restored based on the compressed image data after the change and when restored based on the original compressed image data The second damage point verification means changes the compressed image data of the damage estimation point and restores based on the compressed image data after the change. The estimated damage point is verified based on the displacement state of the image at the boundary between the damaged image area and the undamaged image area based on the image damaged point. Therefore, the breakage point resetting unit appropriately controls the first breakage point verification unit and the second breakage point verification unit, and brings the breakage estimation point closer to the original breakage point based on the verification result.
[0007]
For example, when the first breakage point verification means is used, the difference between the case where the restoration process is performed based on the compressed image data after the change and the case where the restoration process is performed based on the original compressed image data is detected. It is possible to roughly grasp whether the estimated point is on the front side or the rear side of the original breakage point.
However, even if the first breakage point verification means is used, even if the difference between the breakage estimation point and the original breakage point can be found, correct data cannot be verified.
[0008]
On the other hand, when the second breakage point verification means is used, at the boundary between the damaged image area and the undamaged image area based on the image breakage point when the restoration process is performed based on the compressed image data after the change. In order to detect the displacement state of the image, it can be seen that the estimated damage point and the change data when the displacement is small are the original correct data.
However, since the second breakage point verification means has a large work load, it is not efficient to verify from the beginning of the file without any address.
[0009]
As a result of considering both of these characteristics, the invention according to claim 2 is the compressed image data restoration device according to claim 1, wherein the breakage point resetting means includes the breakage estimation point and the original breakage point. When the distance is far, the first breakage point verification means is implemented, and when the distance is close, the second breakage point verification means is implemented.
In the invention according to claim 2 configured as described above, the estimated damage point can be obtained with a light load by performing the first damaged point verification means when the estimated damage point is far from the original damaged point. After approaching and close to the original breakage point, the second breakage point verification means locates the original breakage point and correct data.
[0010]
By the way, since the compressed image data is compressed from the head in accordance with the state of the original image, it is not unambiguous how the influence result when the data is changed is reflected. That is, when the data near the beginning of the file is changed, the portion near the beginning of the restored image data does not always change, so when the data at a certain damage estimation point is changed, it is behind the original damage point. Just because the data has changed, we cannot say that the damage estimation point is ahead.
[0011]
Therefore, according to a third aspect of the present invention, in the compressed image data restoration device according to the first or second aspect, the first breakage point verification means includes a plurality of breakage estimation points as a reference. The compressed image data at the point is changed, the difference between the case where the restoration process is performed based on the compressed image data after the change and the case where the restoration process is performed based on the original compressed image data is detected, and the damage estimation point is verified. As a configuration.
In the invention according to claim 3 configured as described above, the compressed image data at a plurality of points based on the estimated damage point is changed. For example, the compressed image data is changed for several pixels on the back side of the file with reference to the estimated damage point, and the restoration process is performed based on the changed compressed image data. In this case, in general, a change in a later pixel tends to produce a difference on the rear side compared to a case where restoration processing is performed based on the original compressed image data, but it is possible to reverse some pixels. There is also sex. Even if such a discrepancy occurs, if the result of several pixels is comprehensively considered, it can be correctly determined whether the damage estimation point is ahead or behind the original damage point.
[0012]
The second breakage point verification means detects the image displacement state at the boundary between the damaged image area and the non-damaged image area. Although it can be accurately determined if detailed verification is made at the entire boundary, the load is extremely high. Become bigger. On the other hand, if the judgment is made with only a few boundary regions, the processing speed is improved, but the verification accuracy is lowered.
Therefore, the invention according to claim 4 is the compressed image data restoration device according to any one of claims 1 to 3, wherein the second breakage point verification means can designate a verification mode, Corresponding to the verification mode, the detection density at the boundary between the damaged image region and the non-damaged image region is changed.
[0013]
In the invention according to claim 4 configured as described above, it is possible to change the detection density at the boundary between the damaged image region and the undamaged image region by selecting the verification mode. You can plan.
Also, due to the nature of the compressed image data, it is not always possible to restore the compressed image when the data is changed at an arbitrary point. If the data cannot be restored, the combination of the damaged point and the changed data is not correct. I can say that. Therefore, according to a fifth aspect of the present invention, in the compressed image data restoration device according to any one of the first to fourth aspects, the breakage point resetting means includes the first breakage point verification means and the first breakage point verification means. When the compressed image data of the estimated damage point is changed by the second damaged point verification means, if the restoration is impossible based on the compressed image data after the change, the damaged point is reset.
[0014]
In the invention according to claim 5 configured as described above, even if the compressed image data of the estimated damage point is changed by the first damaged point verification unit and the second damaged point verification unit, If the data cannot be restored based on the compressed image data, the data should be incorrect, and the damaged point is reset without proceeding with the verification.
Further, the invention according to claim 6 is the compressed image data restoration device according to any one of claims 1 to 5, wherein the breakage point resetting means is located before the breakage estimation point and the original breakage point. The damage estimation point is reset so as to be close to each other.
[0015]
In the invention according to claim 6 configured as described above, when the estimated damage point is brought close to the original damaged point, the estimated damage point is reset from the front side of the file. .
Although the compressed image data can be applied to various types, the invention according to claim 7 is the compressed image data restoration device according to any one of claims 1 to 6, wherein the compressed image data is a still image. The invention according to claim 8 is directed to a compressed moving image as the compressed image data in the compressed image data restoration device according to any one of claims 1 to 6.
[0016]
On the other hand, it is possible not only to repair the damage by the above-described method, but also to be able to repair other damage patterns. As an example, the invention according to claim 9 includes the above-mentioned claim. The compressed image data restoration device according to any one of claims 1 to 8, wherein the instruction operation means replaces predetermined data and displays an image if display is impossible when displaying damaged compressed image data. It is configured so that it can be performed.
[0017]
In the invention according to claim 9 configured as described above, if display is impossible when displaying damaged compressed image data, the instruction operation means replaces predetermined data so that an image can be displayed. For example, the damage in a fixed part such as a header part of a file may be displayed by discriminating the type of image with another means and replacing it with standard data. In addition, if the damage is not limited to the header portion but in a known pattern, it is possible to examine only a certain range of data and try to replace the data.
[0018]
In addition, although it is easy and reliable for a human to perform an instruction operation for an image breakage point, it is not impossible to perform automation. As an example, in the invention according to claim 10, in the compressed image data restoration device according to any one of claims 1 to 9, the instruction operation means restores and displays the compressed image data. At this time, the presence or absence of an image breakage point is detected, and when it is detected, the instruction operation is accepted.
[0019]
In the invention according to claim 10 configured as described above, the instruction operation means restores the compressed image data before receiving the instruction operation. At this time, the presence or absence of an image breakage point is detected. In some cases, a typical pattern of damage can be detected relatively easily in compressed image data. Transition to processing.
As described above, it is not always necessary that the method for searching for the estimation of the breakage point and the elucidation of the original data of the compressed image data is limited to a substantial device, and it can be easily understood that the method also functions as a method. For this reason, the invention according to claim 11 restores and displays the compressed image data, and receives an instruction operation step for receiving an instruction operation for an image breakage point, and a relative position of the instructed image breakage point in the restored image data An initial setting step for setting a damage estimation point in the compressed image data corresponding to the information, and a case where the compressed image data of the damage estimation point is changed and restored based on the compressed image data after the change and the original compression A first breakage point verification step for detecting a difference from the case of restoration processing based on image data and verifying the breakage estimation point; and changing the compressed image data of the breakage estimation point and changing the compressed image after the change Secondly, the damage estimation point is verified based on a displacement state of the image at the boundary between the damaged image area and the undamaged image area based on the image damage point when the restoration process is performed based on the data. Control of execution of the failure point verification step, the first failure point verification step, and the second failure point verification step, and based on the verification results, the failure point re-establishment approaches the original failure point. And a setting step.
[0020]
That is, it is not necessarily limited to a substantial apparatus, and there is no difference that the method is also effective.
By the way, such a compressed image data restoration device may exist alone, or may be used in a state of being incorporated in a certain device. Is included. Therefore, it can be changed as appropriate, such as software or hardware.
[0021]
When the software of the compressed image data restoration apparatus is implemented as an embodiment of the idea of the invention, it naturally exists on a recording medium on which such software is recorded and must be used.
As an example, the invention according to claim 12 is a medium on which a compressed image data restoration program for restoring compressed image data by a computer is recorded, the compressed image data is restored and displayed, and an image breakage point instruction operation is performed. An instruction operation function for accepting an image, an initial setting function for setting a damage estimation point in the compressed image data corresponding to the relative position information in the restored image data of the specified image damage point, and compression of the damage estimation point First, the image data is changed to detect the difference between the case where the restoration processing is performed based on the compressed image data after the change and the case where the restoration processing is performed based on the original compression image data, and the above damage estimation point is verified. Based on the damaged point verification function and the image damaged point when the compressed image data of the estimated damage point is changed and restored based on the changed compressed image data. A second damage point verification function for verifying the damage estimation point based on a displacement state of an image at a boundary between the damaged image area and the undamaged image area, the first damage point verification function, and the second And a break point resetting function for controlling the execution of the breakage point verification function and bringing the estimated breakage point closer to the original breakage point based on the verification result.
[0022]
Of course, the recording medium may be a magnetic recording medium, a magneto-optical recording medium, or any recording medium that will be developed in the future. In addition, the duplication stages such as the primary duplication product and the secondary duplication product are equivalent without any question. In addition, even when the communication method is used as a supply method, the present invention is not changed.
Further, even when a part is software and a part is realized by hardware, the idea of the invention is not completely different, and a part is stored on a recording medium and is appropriately changed as necessary. It may be in the form of being read.
[0023]
When the present invention is realized by software, a configuration using hardware or an operating system may be used, or may be realized separately from these. For example, even if it is a process of inputting image data to perform an interpolation process, if the implementation method can call and process a predetermined function in the operating system, the hardware can be called without calling such a function. It is also possible to input from. It can be understood that the present invention can be implemented only by this program in the process in which the program is recorded on the medium and distributed even though it is actually realized under the intervention of the operating system.
[0024]
When the present invention is implemented by software, the present invention is not only realized as a medium storing a program, but the present invention is naturally realized as a program itself, and the program itself is also included in the present invention.
[0025]
【The invention's effect】
As described above, the present invention can provide a compressed image data restoration device that can repair damaged compressed image data, which has been impossible in the past, in a short time.
[0026]
Further, according to the invention of claim 2, the first breakage point verification means and the second breakage point verification means can be used efficiently and repaired in a short time.
Furthermore, according to the third aspect of the present invention, it is possible to accurately verify the estimated damage point in a short time without being influenced by chance.
Furthermore, according to the invention concerning Claim 4, a precision and processing time can be harmonized according to the objective.
Furthermore, according to the fifth aspect of the present invention, it is possible to quickly give up to the estimated damage points that cannot be restored and to shorten the processing time.
[0027]
Furthermore, according to the invention according to claim 6, by making the estimated damage point close to the original position, the previous determination result can be used, for example, when processing is performed based on a plurality of estimated damage points, Efficiency can be improved.
Furthermore, according to the seventh aspect of the present invention, it is possible to restore a still image.
Furthermore, according to the invention concerning Claim 8, it becomes possible to restore | restore a moving image.
Furthermore, according to the invention of claim 9, there is a possibility that a compressed image that cannot be displayed can be repaired.
[0028]
Furthermore, according to the tenth aspect of the present invention, there is a possibility that an instruction operation for an image breakage point by a human can be omitted.
Furthermore, the invention according to claim 11 can provide a compressed image data restoration method capable of producing the same effect. According to the invention according to claim 12, a medium on which a compressed image data restoration program is recorded can be provided. Can be provided.
[0029]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram corresponding to a claim showing a compressed image data restoration apparatus of the present invention.
Digital photograph images taken with a digital still camera or the like are stored as compressed image data files such as JPEG. This compressed image data restoration device restores when a part of such a compressed image data file is rewritten to unintended data, and the instruction operation means C1 performs an instruction operation of a damaged point in the restored image. Receiving and initial setting means C2 calculates the damage estimated point in the compressed image data from the relative position of the instructed damaged point on the restored image, and the first damaged point verifying means C3 and the second that verify the estimated damage point by different methods. The breakage point resetting means C5 appropriately clears the breakage point verification means C4 to find the original breakage point in the compressed image data.
[0030]
In the present embodiment, a computer system 10 is employed as an example of hardware that realizes such a compressed image data restoration apparatus.
FIG. 2 is a block diagram showing the computer system 10.
The computer system 10 includes a scanner 11a, a digital still camera 11b, and a video camera 11c as image input devices, and is connected to a computer main body 12. Each input device can generate image data in which an image is expressed by a dot matrix pixel and output the image data to the computer main body 12. Here, the image data is displayed in 256 gradations for each of the three primary colors of RGB. About 16.7 million colors can be expressed.
[0031]
A floppy disk drive 13a, a hard disk 13b, and a CD-ROM drive 13c as external auxiliary storage devices are connected to the computer main body 12, and main programs related to the system are recorded on the hard disk 13b. Necessary programs and the like can be read from a CD-ROM or the like as appropriate.
In addition, a modem 14a is connected as a communication device for connecting the computer main body 12 to an external network or the like, and it can be connected to an external network via the public communication line, and can be installed by downloading software and data. It has become. In this example, the modem 14a accesses the outside via a telephone line, but it is also possible to adopt a configuration where the network is accessed via a LAN adapter. In addition, a keyboard 15a and a mouse 15b are also connected for operating the computer main body 12.
[0032]
Furthermore, a display 17a and a color printer 17b are provided as image output devices. The display 17a has a display area of 800 pixels in the horizontal direction and 600 pixels in the vertical direction, and the above-described display of 16.7 million colors can be performed for each pixel. Of course, this resolution is only an example, and can be changed as appropriate, such as 640 × 480 pixels or 1024 × 768 pixels.
[0033]
On the other hand, in order to display or output to the image output device while inputting an image using such an image input device, a predetermined program is executed in the computer main body 12. Among them, an operating system (OS) 12a is operating as a basic program, and the operating system 12a performs a print output to a display driver (DSP DRV) 12b for displaying on the display 17a and a color printer 17b. A printer driver (PRT DRV) 12c is installed. These types of drivers 12b and 12c depend on the models of the display 17a and the color printer 17b, and can be added to and changed from the operating system 12a according to the respective models. In addition, depending on the model, additional functions beyond standard processing can be realized. That is, various additional processes within an allowable range can be realized while maintaining a common processing system on the standard system called the operating system 12a.
[0034]
The application 12d is executed on the operating system 12a as the basic program. The processing contents of the application 12d are various. The operation of the keyboard 15a and the mouse 15b as operation devices is monitored, and when operated, various external devices are appropriately controlled to execute corresponding arithmetic processing, Furthermore, the processing result is displayed on the display 17a or output to the color printer 17b.
[0035]
In such a computer system 10, compressed image data is acquired by a digital still camera 11 b or the like which is an image input device, predetermined image processing is executed by an application 12 d, and then displayed on a display 17 a or a color printer 17 b as an image output device. Is possible.
If a part of the compressed image data is damaged, it cannot be restored to the original image, and display and printing will not remain. However, even if a part of the file is damaged, a 1-byte data error is rarely generated. The compressed image data cannot be restored until a large amount of data in the file is lost and cannot be restored. However, even if the compressed image data cannot be displayed at all, if it is about 1 byte, it may be displayed by performing a total attack from the beginning of the file, so there is a possibility that it can be restored by the present invention.
[0036]
In particular, depending on the type of file corruption, the repair may be relatively simple. For example, data indicating the type of the compressed image data file may be damaged. In the example of a JPEG image, data indicating that the data file is JPEG-compressed is written at the beginning of the file, but even if one byte of the data file is damaged, it is unclear that it is JPEG-compressed. And will be excluded from restoration. However, it can be strongly inferred that the image data file is more than the operator has pointed out as a damaged compressed image, and it can often be presumed that JPEG compression is performed from the extension of the file. In such a case, the damaged data may be replaced with other data in the fixed part of the data file so that an image can be displayed, and then repair of the damaged data in the other part may be attempted. Of course, when the image can be completely displayed by repairing only the fixed portion, the repair is completed. Of course, such replacement of data is performed by the instruction operation means C1. It should be noted that even if it is not necessarily a fixed portion, it may be attempted to display or not by replacing data within a predetermined range in the data file.
[0037]
FIG. 3 is a flowchart showing the compressed image data restoration program as the application 12d.
When the compressed image data restoration program is activated, first, in step 100, a compressed image data file is designated. That is, the program is a process of monitoring the operation of the keyboard 15a and mouse 15b by the operator via the operating system 12a and waiting for selection of compressed image data. When a specified operation for specifying a predetermined compressed image data file is performed using a file open dialog or an explorer, the compressed image data file is restored to a bitmap image in step 200 and displayed on the display 17a. The restored bitmap image is stored in the hard disk 13b. The hard disk 13b is saved because the bitmap image is repeatedly referred to in later steps, and the RAM disk area or the like may be designated and saved as necessary.
[0038]
Next, in step 300, an operation for instructing the position of the damaged block is input. FIG. 4 shows a display example on the display 17a when one byte is damaged in a general JPEG compressed image data file. In the drawing, the upper half of the unbroken image area 17a1 and the lower half of the damaged image area 17a2 are shown separately. However, the upper half of the unbroken image area 17a1 is displayed normally, and the lower half of the damaged image area 17a2 is displayed. It is assumed that it is not displayed normally. FIG. 5 is an enlarged view of the vicinity of the damaged block 17a5 that has started not to be displayed normally. The JPEG image is compressed in units of block areas of every 8 × 8 pixels, and is compressed from the upper left to the right and sequentially downward, so the right side and the lower side of the damaged block 17a5 including the damaged point Area is not displayed properly.
[0039]
The operator operates the mouse 15b to point to the broken block 17a5 including the broken point with the arrow pointer 17a3, and clicks. At this time, an 8 × 8 pixel area 17a4 indicated by the arrow pointer 17a3 is displayed in reverse so that the operator can correctly indicate a damaged area on the display by the arrow pointer 17a3. Note that the software processing in step 300 for accepting this operation and related hardware constitute the instruction operation means C1. In the present embodiment, the mouse 15b is used to indicate the area. However, the area of 8 × 8 pixels is moved by the cursor, or the area display (A, B, C,. 3 ...) may be input (for example, "B-4").
[0040]
In addition to this, the instruction operation can be further automatically performed. As described above, in the case of a JPEG image, the tendency of a color suddenly changes from a certain pixel as a damaged pattern to an upper region and a lower region in the right direction in the horizontal direction. The tendency of the color suddenly changes between the upper area and the lower area in the left direction. Therefore, the presence / absence of such characteristic breakage is detected in advance, and if breakage is detected, the following processing may be executed assuming that the above-described breakage area instruction has been given. In this sense, the instruction operation means C1 can be configured to include automation of a damaged area instruction.
[0041]
Returning to FIG. 3, in step 400, an estimated damage point is calculated from the relative position information on the display image of the specified damaged area. Originally, compressed image data is gradually generated from the front of the file according to the image status, so even if the relative position information on the display image of the damaged area is obtained, the data file depends on the image status. The corresponding position above should be unknown. In particular, the tendency is further emphasized when the stream distribution technology is adopted so as to improve the appearance as much as possible even during data distribution.
[0042]
However, even if there are fluctuations, an approximate trend can often be grasped. FIG. 6 shows the relative relationship between the change positions obtained by restoring the image when a part of the data file is rewritten. In the figure, the horizontal axis is the position information that changes the data and shows the first damage estimated point in the data file as a reference, and the vertical axis changes based on the damage position corresponding to the first damage estimated point The pixel position information is shown. Actually, even if data of the same position is changed using a data file of the same size depending on the image, the change position generated on the display screen varies. However, as is apparent from this graph display, rough estimation is possible. In this embodiment, the least square approximation function is
Y = 0.003507 * X ** 2-1.425665 * X
In step 300, a damage estimation point is calculated using the same calculation formula. Note that it is impossible to obtain a complete answer with this calculation formula, and it is possible to change the calculation formula to a simpler primary formula, or to create a table in advance and use it as a simple quick reference table. . In any case, the software processing for calculating the estimated damage point from the relative position information on the display image of the damaged area designated as described above and the related hardware constitute the initial setting means C2.
[0043]
Subsequently, in step 500, a process for bringing the estimated damage point calculated as described above closer to the original damaged point is performed. FIG. 7 shows a detailed flowchart thereof. In step 502, the calculated estimated damage point is obtained through the work area and set to the estimated damage point for the work. Subsequently, in step 504, the data of the estimated damage point is changed, and in step 506, restoration of the bitmap image is attempted using the changed data file.
[0044]
However, since the data at an arbitrary position has been changed, the restoration is not always possible, and only when the restoration is possible, the bitmap image restored in step 510 and the step 200 after the judgment in step 508 are performed. Compare the image saved in step 1 to determine the difference position. That is, if the data is changed with a certain point as a damage estimation point, the bitmap image restored using the data file should be different from the one before the change. Since the damaged area on the bitmap image is determined by pointing with the mouse 15b, it can be determined whether the position of the difference is forward or backward by comparing with the position. If the different position is on the rear side, it can be said that the estimated damage point is on the rear side in the data file rather than the damaged point, as estimated from the relationship shown in FIG.
[0045]
In step 512 and step 514, the positional relationship between the different positions and the breakage point is determined, and the breakage estimation point is moved. That is, if it is behind the estimated damage point, the estimated damage point is returned further forward in step 518 after the determination in step 512. If it is nearer than the estimated damage point but is still farther than the estimated damage point, the estimated damage point is moved slightly backward in step 516 through the determination in step 512 and step 514. Normally, the processing from step 512 to step 516 is repeated so that the estimated damage point gradually approaches the damaged point from the front. When the estimated damage point finally approaches the damaged point, the determination of step 514 is followed to end the damaged point approaching process.
[0046]
In this way, whether or not the above-mentioned damage estimation point is before the damage point based on the difference position between the bitmap image restored after changing the data with a certain point as the damage estimation point and the restored bitmap image. The software processing and the related hardware for determining the first breakage point verification means C3.
In this example, the bitmap image is restored to the end based on the changed data file, but the processing can be stopped when it is found that the difference position is far from the breakage point. It is also possible to set a plurality of points on the basis of the estimated damage points and perform processing simultaneously. For example, when a certain damage estimation point is set and the bitmap image is restored, and the data of the damage estimation point is changed and restored, the damage position at which the bitmap image has changed thereby indicates the damage position indicated by the mouse 15b. If it is nearer and not closer than the above, the damage estimation point is set further forward while returning the data of the damage estimation point to the original data. At this time, the bitmap image restored until then is used as it is. In this way, it is not necessary to repeat the calculation for restoration each time the estimated damage point is changed, so that the processing can be speeded up. In this sense, the setting of the damage estimation point has an advantage in the case of always approaching from the near side. Of course, whether or not the above processing is possible depends on the nature of the compressed image data, and is not necessarily realizable in all cases.
[0047]
Further, if the estimated damage point is moved backward, the above-mentioned different position is not necessarily moved backward, so that it is often possible to obtain a correct result by comprehensively judging using a plurality of points. Therefore, it is meaningful to verify using a plurality of points based on the estimated damage point.
When the breakpoint approaching process is completed, the total attack mode is started in step 600 as shown in FIG. FIG. 8 shows this total attack mode in more detail. The damage estimation point set last in step 602 is set as a damage estimation point for a predetermined workpiece, and in step 616, the damage estimation point is sequentially set to one byte. While moving each step, the data of the estimated damage point is changed between “0” to “255” between step 604 and step 614 to determine whether or not the image has been correctly restored.
[0048]
Whether or not the image has been correctly restored is determined by changing the data of the estimated damage point in step 606 to restore the bitmap image, and then determining the smoothness of the image around the damaged area in step 608. ing. FIG. 9 shows in detail the smoothness determination process of this image, and FIG. 10 shows the boundaries used for the determination.
In this example, the boundary portion between the damaged block 17a5 and the upper half of the undamaged image area 17a1 is verified in Step 620 to Step 626, and the upper half of the undamaged image area 17a1 and the lower half of the upper half of the image are damaged. The boundary with the damaged image area 17a2 is verified.
[0049]
First, in step 620, a pointer is set at the boundary of the damaged block 17a5. Originally, smoothness may be determined for all boundary pixels, but the amount of processing increases accordingly. Accordingly, it is determined whether to perform the process for all the pixels or to perform the thinning process based on the balance between the processing speed and the accuracy. Of course, the operator may be allowed to select. In step 622, the color change amount at the pointer position is calculated. In FIG. 10, the average of the colors of two pixels in each of the undamaged image area 17a1 and the damaged image area 17a2 is calculated for the four pixels across the boundary, and the difference between the respective average values is stored as a color change amount. Accumulate. In step 624, the pointer is moved, and the process is repeated until it is determined in step 626 that all the boundaries have been completed. Referring to the figure, the boundary between the damaged block 17a5 and the upper half of the undamaged image area 17a1 is 16 pixels (= 8 pixels + 8 pixels), and when calculating for all the pixels, the color change amount at 16 pixels is integrated. Will be.
[0050]
Thereafter, in step 628, the same calculation is performed at the boundary where the upper side of the damaged block 17a5 is extended backward. However, since this boundary is expected to be long, the calculation is executed by thinning out every 10 pixels or every 20 pixels. In step 630, the same calculation is performed at the boundary where the lower side of the damaged block 17a5 is extended forward.
In step 632, smoothness is calculated using the color change amount stored and integrated at each boundary. The smoothness here is simply used as a parameter and does not require a special formula. For example, an average value obtained by dividing the integrated amount by the sum of the calculated pixels may be used, or a simple integrated amount may be used. Furthermore, regarding the color change amount itself, the change tendency of the two pixels in the upper half of the undamaged image area 17a1 and the change tendency of the two pixels in the lower half of the damaged image area 17a2 may be calculated and the difference may be taken. For example, if the upper two pixels become gradually brighter, it is often considered that the lower two pixels tend to become gradually brighter. And if the change tendency as mentioned above is taken, both will correspond in this case. Of course, the use of two pixels is arbitrary, and the number of pixels can be increased or decreased.
[0051]
In step 610, the smoothness calculated in this way is used to determine whether or not the reference value has been exceeded. In step 618, in step 618, the estimated damage point at that time and the changed data are stored and stored. Exit attack mode.
When the damage estimation point is shifted byte by byte as described above, the boundary between the undamaged image area 17a1 and the damaged image area 17a2 for all values “0” to “255” that can be taken for each byte. The software processing for determining whether or not the image touches smoothly and the related hardware constitute the second breakage point verification means C4.
[0052]
In the present embodiment, the displacement state of the image at the boundary is determined using the color change amount, but it is determined whether or not the undamaged image area 17a1 and the damaged image area 17a2 are smoothly connected. There are various methods. FIG. 11 schematically shows another method. In this example, the road 17a6 is shown in the upper half of the unbroken image area 17a1, but the road 17a6 is not displayed in the damaged image area 17a2. However, it is unlikely that the road is actually broken, and in the situation where a known object such as a road is photographed, it is possible to infer the road shape of the damaged place from the property of the object as shown in FIG. Is possible. When the data is changed at the estimated damage point, if the road is restored to a shape that fits the guess, along with the information that determines the smoothness, the criteria for image restoration can be used to expect more accurate data restoration. It is.
[0053]
In addition, the break point approaching process is performed first as the processing order, and at that time, the break point is reset based on the verification result of the first break point verification means C3 described above, Whether or not the image has been restored based on the verification result of the second breakage point verification means C4 while shifting to the total attack mode and shifting the breakage estimated point by 1 byte from when the image approaches the point before the original breakage point Although it is determined, the processing flow for setting the estimated damage point and the related hardware constitute the damaged point resetting means C5. Of course, it is possible to execute the same processing in different procedures depending on software, and the processing procedure of the present embodiment described above is merely an example.
[0054]
In the above-described embodiment, only a still image is handled, but a moving image can be considered in the same manner. FIG. 12 shows how data appears when data is damaged in the case of a moving image. Although the first frame is normally displayed, an image of meaninglessness is suddenly displayed on the second frame, and the same image is displayed on the third frame. However, it disappears suddenly in the fourth frame.
In such a case, a moving image is displayed as a frame and an abnormal frame is indicated by the mouse 15b as an image breakage point. Then, the relative position of the image breakage point in all data files is checked in frame number units to set the damage estimation point of the data file, and the data of the damage estimation point is rewritten. Based on the rewritten data file, the frame-by-frame image is restored again, and it is examined at which point the difference from the first image appears. If it is behind the instructed image damage point, the damage estimation point is moved to the front side of the data file, and if it is in front of the instructed image damage point, the damage estimation point is gradually moved to the rear side.
[0055]
Then, when approaching the frame where an abnormality has occurred, the total attack mode is set, and the displacement state of the image is determined for each frame. In the case of a moving image, the periphery of the damaged area may be checked, or the presence or absence of a sudden image change may be checked. In the natural world, there is a limit to the change of the image, so it is determined whether or not the image has changed beyond that. In addition, in the case of a moving image, data is often sent for the changed image, so the influence of the damaged data occurs over a plurality of frames at the same location. Therefore, if there is a change in the image only in all the frames designated as damaged images, there is a high possibility that it may be determined that the data has been restored.
[0056]
In this way, after instructing the damaged image, try to restore the compressed image by changing the data of the damage estimation point while setting the damage estimation point, and from the position different from the original image data, the damage estimation point Of the boundary between the damaged image area and the damaged image area when the data of the estimated damage point is changed when the estimated damage point approaches the damaged point. By examining the situation, it has become possible to automatically repair damaged compressed image data in a short time.
[Brief description of the drawings]
FIG. 1 is a claim correspondence diagram showing a compressed image data restoration device according to an embodiment of the present invention.
FIG. 2 is a block diagram of a computer system as an example of hardware for realizing a compressed image data restoration device.
FIG. 3 is a flowchart showing a procedure for restoring compressed image data.
FIG. 4 is a diagram showing a screen display when restoring damaged image data and indicating a damaged block.
FIG. 5 is an enlarged view near a damaged block.
FIG. 6 is a diagram illustrating a correlation between a change position of a data file and a change position of a restored image.
FIG. 7 is a flowchart of breakage point approach processing.
FIG. 8 is a flowchart of a total attack mode.
FIG. 9 is a flowchart of image smoothness determination processing;
FIG. 10 is an enlarged view of a boundary portion referred to in image smoothness determination processing.
FIG. 11 is a diagram illustrating another method for detecting a displacement state of an image.
FIG. 12 is a diagram illustrating an image change that occurs when the compressed image data in the case of a moving image is restored.
[Explanation of symbols]
C1 ... Instruction operation means
C2 ... Initial setting means
C3 ... Damage point verification means
C4 ... Broken point verification means
C5 ... Broken point resetting means
10. Computer system
11a ... Scanner
11b ... Digital still camera
11c ... Video camera
12 ... Computer body
12a ... Operating system
12b ... Printer driver
12c ... Display driver
12d Application
13a ... floppy disk drive
13b ... Hard disk
13c ... CD-ROM drive
14a ... modem
15a ... Keyboard
15b ... Mouse
17a ... Display
17a1 ... Undamaged image area
17a2 ... Damaged image area
17a3 ... Arrow pointer
17a4 ... area
17a5 ... Damaged block
17a6 ... Road
17b ... Color printer

Claims (12)

圧縮画像データを復元して表示し、画像破損点の指示操作を受け付ける指示操作手段と、
指示された上記画像破損点の復元画像データにおける相対的な位置情報に対応して圧縮画像データ内における破損推定点を設定する初期設定手段と、
上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合と元の圧縮画像データに基づいて復元処理した場合との相違点を検出して上記破損推定点を検証する第一の破損点検証手段と、
上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合における上記画像破損点を基準とした破損画像領域と未破損画像領域との境界での画像の変位状況に基づいて上記破損推定点を検証する第二の破損点検証手段と、
上記第一の破損点検証手段と上記第二の破損点検証手段を制御し、その検証結果に基づいて上記破損推定点を本来の破損点に近づかせる破損点再設定手段とを具備することを特徴とする圧縮画像データ修復装置。
Instruction operation means for restoring and displaying the compressed image data and receiving an instruction operation for an image breakage point;
Initial setting means for setting a damage estimation point in the compressed image data corresponding to the relative position information in the restored image data of the indicated image damage point;
The damage estimation point is detected by detecting a difference between the case where the compressed image data of the damage estimation point is changed and the restoration process is performed based on the compressed image data after the change and the restoration process is performed based on the original compression image data. A first breakage point verification means for verifying,
Displacement of the image at the boundary between the damaged image area and the undamaged image area when the compressed image data at the estimated damage point is changed and restored based on the compressed image data after the change A second breakage point verification means for verifying the breakage estimation point based on the situation;
A failure point resetting unit for controlling the first breakage point verification unit and the second breakage point verification unit and bringing the breakage estimation point closer to the original breakage point based on the verification result; A compressed image data restoration device characterized.
上記請求項1に記載の圧縮画像データ修復装置において、上記破損点再設定手段は、上記破損推定点と本来の破損点とが遠い場合に上記第一の破損点検証手段を実施し、近い場合に上記第二の破損点検証手段を実施させることを特徴とする圧縮画像データ修復装置。  The compressed image data restoration device according to claim 1, wherein the breakage point resetting unit performs the first breakage point verification unit when the breakage estimation point and the original breakage point are far from each other. A compressed image data restoration device characterized in that the second breakage point verification means is implemented. 上記請求項1または請求項2のいずれかに記載の圧縮画像データ修復装置において、上記第一の破損点検証手段は、破損推定点を基準とする複数点における圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合と元の圧縮画像データに基づいて復元処理した場合との相違点を検出して上記破損推定点を検証することを特徴とする圧縮画像データ修復装置。  3. The compressed image data restoration device according to claim 1, wherein the first breakage point verification unit changes the compressed image data at a plurality of points based on the breakage estimated point, and after the change A compressed image data restoration device that detects a difference between a case where restoration processing is performed based on the compressed image data and a case where restoration processing is performed based on the original compression image data, and verifies the estimated damage point. 上記請求項1〜請求項3のいずれかに記載の圧縮画像データ修復装置において、上記第二の破損点検証手段は、検証モードを指定可能であり、同検証モードに対応して破損画像領域と未破損画像領域との境界での検出密度を変化させることを特徴とする圧縮画像データ修復装置。  The compressed image data restoration device according to any one of claims 1 to 3, wherein the second breakage point verification means can designate a verification mode, and a damaged image region and A compressed image data restoration device characterized by changing a detection density at a boundary with an undamaged image region. 上記請求項1〜請求項4のいずれかに記載の圧縮画像データ修復装置において、上記破損点再設定手段は、上記第一の破損点検証手段と上記第二の破損点検証手段にて上記破損推定点の圧縮画像データを変更した場合に、変更後の圧縮画像データに基づいて復元不能であれば上記破損点を再設定させることを特徴とする圧縮画像データ修復装置。  The compressed image data restoration device according to any one of claims 1 to 4, wherein the breakage point resetting means includes the breakage by the first breakage point verification means and the second breakage point verification means. A compressed image data restoration device which, when the compressed image data at the estimated point is changed, resets the damaged point if the restoration is impossible based on the changed compressed image data. 上記請求項1〜請求項5のいずれかに記載の圧縮画像データ修復装置において、上記破損点再設定手段は、上記破損推定点と本来の破損点の手前から近接するように上記破損推定点を再設定させることを特徴とする圧縮画像データ修復装置。  The compressed image data restoration device according to any one of claims 1 to 5, wherein the breakage point resetting unit sets the breakage estimation point so as to be close to the breakage estimation point and the original breakage point. A compressed image data restoration device characterized by being reset. 上記請求項1〜請求項6のいずれかに記載の圧縮画像データ修復装置において、上記圧縮画像データは静止画圧縮画像であることを特徴とする圧縮画像データ修復装置。  7. The compressed image data restoration device according to claim 1, wherein the compressed image data is a still image compressed image. 上記請求項1〜請求項6のいずれかに記載の圧縮画像データ修復装置において、上記圧縮画像データは動画圧縮画像であることを特徴とする圧縮画像データ修復装置。  The compressed image data restoration device according to any one of claims 1 to 6, wherein the compressed image data is a moving image compressed image. 上記請求項1〜請求項8のいずれかに記載の圧縮画像データ修復装置において、上記指示操作手段は、破損した圧縮画像データを表示する際に表示が不能であれば所定のデータを置き換えて画像の表示を行えるようにすることを特徴とする圧縮画像データ修復装置。  9. The compressed image data restoration apparatus according to claim 1, wherein the instruction operation unit replaces predetermined data if display is impossible when displaying damaged compressed image data. A compressed image data restoration device characterized in that it is possible to display. 上記請求項1〜請求項9のいずれかに記載の圧縮画像データ修復装置において、上記指示操作手段は、上記圧縮画像データを復元して表示する際に画像破損点の有無を検出し、検出できた場合に上記指示操作を受け付けたものとすることを特徴とする圧縮画像データ修復装置。  The compressed image data restoration device according to any one of claims 1 to 9, wherein the instruction operation unit can detect and detect the presence or absence of an image breakage point when the compressed image data is restored and displayed. The compressed image data restoration device, wherein the instruction operation is accepted when the image data is received. 圧縮画像データを復元して表示し、画像破損点の指示操作を受け付ける指示操作工程と、
指示された上記画像破損点の復元画像データにおける相対的な位置情報に対応して圧縮画像データ内における破損推定点を設定する初期設定工程と、
上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合と元の圧縮画像データに基づいて復元処理した場合との相違点を検出して上記破損推定点を検証する第一の破損点検証工程と、
上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合における上記画像破損点を基準とした破損画像領域と未破損画像領域との境界での画像の変位状況に基づいて上記破損推定点を検証する第二の破損点検証工程と、
上記第一の破損点検証工程と上記第二の破損点検証工程の実行を制御し、その検証結果に基づいて上記破損推定点を本来の破損点に近づかせる破損点再設定工程とを具備することを特徴とする圧縮画像データ修復方法。
An instruction operation process for restoring and displaying the compressed image data and receiving an instruction operation for an image breakage point;
An initial setting step for setting a damage estimation point in the compressed image data corresponding to the relative position information in the restored image data of the instructed image damage point;
The damage estimation point is detected by detecting a difference between the case where the compressed image data of the damage estimation point is changed and the restoration process is performed based on the compressed image data after the change and the restoration process is performed based on the original compression image data. A first failure point verification process for verifying,
Displacement of the image at the boundary between the damaged image area and the undamaged image area when the compressed image data at the estimated damage point is changed and restored based on the compressed image data after the change A second failure point verification step for verifying the damage estimation point based on the situation;
A failure point resetting step for controlling execution of the first breakage point verification step and the second breakage point verification step, and bringing the breakage estimation point closer to the original breakage point based on the verification result; A compressed image data restoration method characterized by the above.
コンピュータにて圧縮画像データを修復させる圧縮画像データ修復プログラムを記録した媒体であって、
圧縮画像データを復元して表示し、画像破損点の指示操作を受け付ける指示操作機能と、
指示された上記画像破損点の復元画像データにおける相対的な位置情報に対応して圧縮画像データ内における破損推定点を設定する初期設定機能と、
上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合と元の圧縮画像データに基づいて復元処理した場合との相違点を検出して上記破損推定点を検証する第一の破損点検証機能と、
上記破損推定点の圧縮画像データを変更し、変更後の圧縮画像データに基づいて復元処理した場合における上記画像破損点を基準とした破損画像領域と未破損画像領域との境界での画像の変位状況に基づいて上記破損推定点を検証する第二の破損点検証機能と、
上記第一の破損点検証機能と上記第二の破損点検証機能の実行を制御し、その検証結果に基づいて上記破損推定点を本来の破損点に近づかせる破損点再設定機能とを具備することを特徴とする圧縮画像データ修復プログラムを記録した媒体。
A recording medium storing a compressed image data restoration program for restoring compressed image data by a computer,
An instruction operation function that restores and displays the compressed image data and accepts an instruction operation for an image breakage point,
An initial setting function for setting a damage estimation point in the compressed image data corresponding to the relative position information in the restored image data of the instructed image damage point;
The damage estimation point is detected by detecting a difference between the case where the compressed image data of the damage estimation point is changed and the restoration process is performed based on the compressed image data after the change and the restoration process is performed based on the original compression image data. The first breakage point verification function to verify,
Displacement of the image at the boundary between the damaged image area and the undamaged image area when the compressed image data at the estimated damage point is changed and restored based on the compressed image data after the change A second breakage point verification function for verifying the breakage estimation point based on the situation;
A failure point reset function for controlling execution of the first breakage point verification function and the second breakage point verification function and bringing the breakage estimation point closer to the original breakage point based on the verification result; A medium on which a compressed image data restoration program is recorded.
JP2000202737A 2000-07-04 2000-07-04 Compressed image data restoration device, compressed image data restoration method, and medium recorded with compressed image data restoration program Expired - Fee Related JP4319333B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000202737A JP4319333B2 (en) 2000-07-04 2000-07-04 Compressed image data restoration device, compressed image data restoration method, and medium recorded with compressed image data restoration program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000202737A JP4319333B2 (en) 2000-07-04 2000-07-04 Compressed image data restoration device, compressed image data restoration method, and medium recorded with compressed image data restoration program

Publications (2)

Publication Number Publication Date
JP2002027254A JP2002027254A (en) 2002-01-25
JP4319333B2 true JP4319333B2 (en) 2009-08-26

Family

ID=18700222

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000202737A Expired - Fee Related JP4319333B2 (en) 2000-07-04 2000-07-04 Compressed image data restoration device, compressed image data restoration method, and medium recorded with compressed image data restoration program

Country Status (1)

Country Link
JP (1) JP4319333B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4947364B2 (en) * 2007-06-22 2012-06-06 ソニー株式会社 Information processing system and method, information processing apparatus and method, and program
JP2016076761A (en) * 2014-10-03 2016-05-12 株式会社ニコン Image processing apparatus and image processing program

Also Published As

Publication number Publication date
JP2002027254A (en) 2002-01-25

Similar Documents

Publication Publication Date Title
US6868189B1 (en) Image processing apparatus, an image processing method, and a computer readable medium having recorded thereon a processing program for permitting a computer to perform image processing routines
CN110660354B (en) Apparatus and method for setting display driver
US8259350B2 (en) Job-specific print defect management
JP6465569B2 (en) Image processing method and image processing apparatus
JPH07111552A (en) Remote diagnosis of copy quality defect
US20250054427A1 (en) Frozen screen detection method and apparatus, electronic device, and vehicle
JP4319333B2 (en) Compressed image data restoration device, compressed image data restoration method, and medium recorded with compressed image data restoration program
EP1211639A2 (en) Method and apparatus for extracting object from video image
JP2009272723A (en) Image processing apparatus, method and program
JP2018197692A (en) Damage state processing system
JP7479528B2 (en) Image processing device, image processing method, and program
US20110193975A1 (en) Image inputting apparatus, image inputting program product, camera, and image processing system
WO2022259910A1 (en) Information processing device, information processing method, and program
JP4336492B2 (en) Image data processing device
US9721160B2 (en) Manually-assisted detection of redeye artifacts
US20250005735A1 (en) Image analysis apparatus, control method for image analysis apparatus, and storage medium
JPH07234885A (en) Drawing display system in cad system
CN120104509B (en) CAD-oriented interactive and parametric modeling automatic testing method and system
US20020101424A1 (en) Method of testing graphic accelerator in DOS mode
CN114125344A (en) Video processing apparatus and method, monitor device, computer device, and medium
US20220254041A1 (en) Image processing device, storage medium, and image processing method
CN115941496B (en) LED display system equipment topology editing method and device and electronic equipment
CN111679777B (en) Panorama generating method and system and object model generating method and system
JP5505953B2 (en) Image discrimination system, method and program
JP3268084B2 (en) Form reading system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070516

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090430

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090513

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090528

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

Free format text: PAYMENT UNTIL: 20120605

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150605

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees