JP2006352214A - Coding device, decoding device, coding method, decoding method and their programs - Google Patents
Coding device, decoding device, coding method, decoding method and their programs Download PDFInfo
- Publication number
- JP2006352214A JP2006352214A JP2005172038A JP2005172038A JP2006352214A JP 2006352214 A JP2006352214 A JP 2006352214A JP 2005172038 A JP2005172038 A JP 2005172038A JP 2005172038 A JP2005172038 A JP 2005172038A JP 2006352214 A JP2006352214 A JP 2006352214A
- Authority
- JP
- Japan
- Prior art keywords
- image
- binary
- value
- encoding
- binary 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
Links
Images
Abstract
Description
本発明は、符号化された文書の改ざん痕を検知する符号化装置及び復号化装置に関する。 The present invention relates to an encoding device and a decoding device that detect tampering of an encoded document.
文書は、文書の内容が確認されうる程度の見読性を保ちつつ適切に圧縮されて、利用者が扱いやすい態様とされることが求められている。一方では、企業の情報、個人情報を含む文書の改ざんを防ぐことが求められている。このため、見読性と改ざん防止とを両立することが重要になっている。
特許文献1は、カラーの入力画像に対して、画像の劣化を抑えながら、下地色や裏写り等の不要画像部を除去する方法を開示する。
特許文献2は、下地が網点領域の場合においても、孤立点を残すことなく下地を除去する方法を開示する。
しかしながら、これらの方法のいずれにおいても、改ざん痕を検知することは考慮されていない。
また、特許文献3は、ユーザにより提供された電子文書を、暗号関数を用いて認定し、文書フィンガープリントを作成する方法を開示する。
しかしながら、改ざん痕検知に必要な下地部分は、高い圧縮率で符号化されると消滅しやすい。
The document is required to be appropriately compressed while maintaining the legibility so that the content of the document can be confirmed, so that the user can easily handle the document. On the other hand, it is required to prevent falsification of documents including company information and personal information. For this reason, it is important to achieve both readability and prevention of tampering.
However, none of these methods considers the detection of tamper marks.
However, the background portion necessary for tampering detection is likely to disappear when encoded at a high compression rate.
本発明は、上述した背景からなされたものであり、改ざん痕を検知しうる程度に効果的に文書を符号化及び復号化する符号化装置及び復号化装置を提供することを目的とする。 The present invention has been made from the above-described background, and an object thereof is to provide an encoding device and a decoding device that effectively encode and decode a document to such an extent that tampering can be detected.
上記目的を達成するために、本発明にかかる第1の符号化装置は、入力された多値画像から2値画像を生成する2値画像生成手段と、前記2値画像生成手段により生成された2値画像と、多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成手段とを有する。 In order to achieve the above object, a first encoding apparatus according to the present invention is generated by a binary image generating unit that generates a binary image from an input multi-valued image, and the binary image generating unit. Code generation means for generating code data by encoding a binary image and a multi-value image using different methods.
好適には、前記符号生成手段は、前記2値画像生成手段により生成された2値画像を符号化する2値画像符号化手段と、多値画像を符号化する多値画像符号化手段とを有する。
好適には、前記2値画像符号化手段は、JBIG2に規定されるテキスト領域符号化又はジェネリック領域符号化を適用する。
好適には、前記多値画像符号化手段は、多値画像に対して、JBIG2に規定されるハーフトーン領域符号化を適用する。
Preferably, the code generation means includes: a binary image encoding means for encoding the binary image generated by the binary image generation means; and a multi-value image encoding means for encoding a multi-value image. Have.
Preferably, the binary image encoding means applies text region encoding or generic region encoding defined in JBIG2.
Preferably, the multi-level image encoding means applies halftone region encoding defined in JBIG2 to the multi-level image.
本発明にかかる第2の符号化装置は、入力された多値画像から2値画像を生成する2値画像生成手段と、この多値画像から、当該多値画像とは異なる多値画像を生成する多値画像生成手段と、前記2値画像生成手段により生成された2値画像と、前記多値画像生成手段により生成された多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成手段とを有する。 The second encoding device according to the present invention includes a binary image generating unit that generates a binary image from an input multi-valued image, and generates a multi-valued image different from the multi-valued image from the multi-valued image. The multi-value image generation means, the binary image generated by the binary image generation means, and the multi-value image generated by the multi-value image generation means are encoded using different methods to generate code data. Code generation means for generating.
また、本発明にかかる第3の符号化装置は、入力された多値画像から2値画像を生成する2値画像生成手段と、この多値画像を2値画像に変換する多値2値変換手段と、前記2値画像生成手段により生成された2値画像と、前記多値2値変換手段により変換された2値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成手段とを有する。 The third encoding apparatus according to the present invention includes a binary image generating means for generating a binary image from an input multi-valued image, and a multi-value binary conversion for converting the multi-valued image into a binary image. Code generation for generating code data by encoding the binary image generated by the means, the binary image generation means, and the binary image converted by the multi-value binary conversion means using different methods Means.
好適には、前記符号生成手段は、前記多値2値変換手段により変換された2値画像を、多値画像に変換した後に符号化して符号データを生成する。
好適には、前記符号生成手段は、前記多値2値変換手段により変換された2値画像を、この2値画像が変換される前の多値画像と同一の多値画像に変換する。
Preferably, the code generation unit generates a code data by converting the binary image converted by the multi-level binary conversion unit into a multi-level image and then encoding the binary image.
Preferably, the code generation unit converts the binary image converted by the multi-level binary conversion unit into the same multi-level image as the multi-level image before the binary image is converted.
本発明にかかる第4の符号化装置は、入力された多値画像から2値画像を生成する2値画像生成手段と、この多値画像から、当該多値画像とは異なる多値画像を生成する多値画像生成手段と、複数の層で構成される画像において、前記2値画像生成手段により生成された2値画像を第1の層に割り当て、前記多値画像生成手段により生成された多値画像を第2の層に割り当てる割当手段と、前記割当手段により第1の層に割り当てられた2値画像と、前記割当手段により第2の層に割り当てられた多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成手段とを有する。 A fourth encoding device according to the present invention includes a binary image generating means for generating a binary image from an input multi-valued image, and generates a multi-valued image different from the multi-valued image from the multi-valued image. In the multi-value image generating means and the image composed of a plurality of layers, the binary image generated by the binary image generating means is assigned to the first layer, and the multi-value image generated by the multi-value image generating means An assigning means for assigning a value image to the second layer, a binary image assigned to the first layer by the assigning means, and a multi-value image assigned to the second layer by the assigning means are different. And code generation means for generating code data by encoding using.
本発明にかかる第1の復号化装置は、異なる手法を適用して符号化された2値画像と多値画像とを含む符号データを受け付ける受付手段と、前記受付手段により受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して画像データを生成する画像生成手段とを有する。 A first decoding apparatus according to the present invention includes: a receiving unit that receives code data including a binary image and a multi-valued image that are encoded by applying different methods; and the code data received by the receiving unit. Image generating means for decoding at least a multi-valued image among the included images and generating image data.
好適には、前記画像生成手段は、JBIG2に規定されるハーフトーン領域復号化を適用して、多値画像を復号化する。 Preferably, the image generation means decodes a multi-valued image by applying halftone region decoding defined in JBIG2.
本発明にかかる第2の復号化装置は、異なる手法を適用して符号化された2値画像と多値画像とを含む符号データを受け付ける受付手段と、前記受付手段により受け付けられた符号データに含まれる多値画像を復号化し、この多値画像に基づいて、2値画像を生成する画像生成手段と、前記画像生成手段により生成された2値画像を、多値画像に変換する2値多値手段とを有する。 A second decoding apparatus according to the present invention includes: a receiving unit that receives code data including a binary image and a multi-valued image that are encoded by applying different methods; and the code data received by the receiving unit. An image generating unit that decodes a multi-valued image included and generates a binary image based on the multi-valued image, and a binary multi-value that converts the binary image generated by the image generating unit into a multi-valued image Value means.
また、本発明にかかる第3の復号化装置は、複数の層で構成され、2値画像と多値画像とを異なる層に含む画像の符号データを受け付ける受付手段と、前記受付手段により受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して多値画像データを生成する画像生成手段とを有する。 The third decoding apparatus according to the present invention comprises a plurality of layers, accepting means for accepting code data of an image including a binary image and a multivalued image in different layers, and accepted by the accepting means. Image generating means for decoding at least the multi-valued image of the images included in the encoded data and generating multi-valued image data.
好適には、前記画像生成は、前記受付手段により受け付けられた符号データに含まれる画像のうち、2値画像をさらに復号化して2値画像データを生成する。 Preferably, the image generation further generates a binary image data by further decoding a binary image among the images included in the code data received by the receiving unit.
本発明にかかる第1の符号化方法は、入力された多値画像から2値画像を生成し、前記生成された2値画像と、多値画像とを、異なる手法を用いて符号化して符号データを生成する。 A first encoding method according to the present invention generates a binary image from an input multi-valued image, encodes the generated binary image and the multi-valued image using different methods, and performs encoding. Generate data.
本発明にかかる第2の符号化方法は、入力された多値画像から2値画像を生成し、この多値画像から、当該多値画像とは異なる多値画像を生成し、前記生成された2値画像と、前記生成された多値画像とを、異なる手法を用いて符号化して符号データを生成する。 The second encoding method according to the present invention generates a binary image from an input multi-value image, generates a multi-value image different from the multi-value image from the multi-value image, and generates the generated multi-value image. Code data is generated by encoding the binary image and the generated multi-value image using different methods.
本発明にかかる第3の符号化方法は、入力された多値画像から2値画像を生成し、この多値画像を2値画像に変換し、前記生成された2値画像と、前記変換された2値画像とを、異なる手法を用いて符号化して符号データを生成する。 A third encoding method according to the present invention generates a binary image from an input multi-valued image, converts the multi-valued image to a binary image, and generates the generated binary image and the converted image. The binary image is encoded using a different method to generate code data.
本発明にかかる第4の符号化方法は、入力された多値画像から2値画像を生成し、この多値画像から、当該多値画像とは異なる多値画像を生成し、複数の層で構成される画像において、前記生成された2値画像を第1の層に割り当て、前記生成された多値画像を第2の層に割り当て、前記第1の層に割り当てられた2値画像と、前記第2の層に割り当てられた多値画像とを、異なる手法を用いて符号化して符号データを生成する。 A fourth encoding method according to the present invention generates a binary image from an input multi-value image, generates a multi-value image different from the multi-value image from the multi-value image, and includes a plurality of layers. In the configured image, the generated binary image is assigned to a first layer, the generated multi-valued image is assigned to a second layer, and the binary image assigned to the first layer; The multi-valued image assigned to the second layer is encoded using a different method to generate code data.
本発明にかかる第1の復号化方法は、異なる手法を適用して符号化された2値画像と多値画像とを含む符号データを受け付け、前記受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して画像データを生成する。 A first decoding method according to the present invention receives code data including a binary image and a multi-value image that are encoded by applying different methods, and includes at least one of images included in the received code data. The multi-valued image is decoded to generate image data.
本発明にかかる第2の復号化方法は、異なる手法を適用して符号化された2値画像と多値画像とを含む符号データを受け付け、前記受け付けられた符号データに含まれる多値画像を復号化し、この多値画像に基づいて、2値画像を生成し、前記生成された2値画像を、多値画像に変換する。 The second decoding method according to the present invention receives code data including a binary image and a multi-value image encoded by applying different methods, and receives a multi-value image included in the received code data. Decoding is performed to generate a binary image based on the multi-valued image, and the generated binary image is converted into a multi-valued image.
本発明にかかる第3の復号化方法は、複数の層で構成され、2値画像と多値画像とを異なる層に含む画像の符号データを受け付け、前記受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して多値画像データを生成する。 A third decoding method according to the present invention includes a plurality of layers, accepts code data of an image including a binary image and a multi-value image in different layers, and stores the image data included in the received code data. Of these, at least the multi-value image is decoded to generate multi-value image data.
本発明にかかる第1のプログラムは、コンピュータを含む符号化装置において、入力された多値画像から2値画像を生成する2値画像生成ステップと、前記生成された2値画像と、多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成ステップとを前記符号化装置に実行させる。 A first program according to the present invention includes: a binary image generation step of generating a binary image from an input multivalued image in the encoding device including a computer; the generated binary image; and the multivalued image And a code generation step of generating code data by encoding using different methods.
本発明にかかる第2のプログラムは、コンピュータを含む符号化装置において、入力された多値画像から2値画像を生成する2値画像生成ステップと、この多値画像から、当該多値画像とは異なる多値画像を生成する多値画像生成ステップと、前記生成された2値画像と、前記生成された多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成ステップとを前記符号化装置に実行させる。 The second program according to the present invention includes a binary image generation step of generating a binary image from an input multivalued image in an encoding device including a computer, A multi-value image generation step for generating different multi-value images; a code generation step for generating code data by encoding the generated binary image and the generated multi-value image using different methods; Is executed by the encoding device.
本発明にかかる第3のプログラムは、コンピュータを含む符号化装置において、入力された多値画像から2値画像を生成する2値画像生成ステップと、この多値画像を2値画像に変換する多値2値変換ステップと、前記生成された2値画像と、前記変換された2値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成ステップとを前記符号化装置に実行させる。 A third program according to the present invention includes a binary image generation step for generating a binary image from an input multilevel image and a multi-level image for converting the multilevel image into a binary image in an encoding device including a computer. A value binary conversion step, and a code generation step for generating code data by encoding the generated binary image and the converted binary image using different methods are executed in the encoding device. Let
本発明にかかる第4のプログラムは、コンピュータを含む符号化装置において、入力された多値画像から2値画像を生成する2値画像生成ステップと、この多値画像から、当該多値画像とは異なる多値画像を生成する多値画像生成ステップと、複数の層で構成される画像において、前記生成された2値画像を第1の層に割り当て、前記生成された多値画像を第2の層に割り当てる割当ステップと、前記第1の層に割り当てられた2値画像と、前記第2の層に割り当てられた多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成ステップとを前記符号化装置に実行させる。 According to a fourth program of the present invention, in a coding apparatus including a computer, a binary image generating step for generating a binary image from an input multivalued image, and the multivalued image from the multivalued image are: In a multi-value image generation step for generating different multi-value images and an image composed of a plurality of layers, the generated binary image is assigned to a first layer, and the generated multi-value image is assigned to a second layer A code for generating code data by encoding a binary image assigned to the first layer and a multi-valued image assigned to the second layer using different methods; And generating the encoding step.
また、本発明にかかる第5のプログラムは、コンピュータを含む復号化装置において、異なる手法を適用して符号化された2値画像と多値画像とを含む符号データを受け付ける受付ステップと、前記受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して画像データを生成する画像生成ステップとを前記復号化装置に実行させる。 A fifth program according to the present invention includes a receiving step of receiving code data including a binary image and a multi-valued image encoded by applying different methods in a decoding device including a computer, and the receiving The decoding apparatus is caused to execute an image generation step of decoding at least a multi-value image among images included in the encoded data and generating image data.
また、本発明にかかる第6のプログラムは、コンピュータを含む復号化装置において、異なる手法を適用して符号化された2値画像と多値画像とを含む符号データを受け付ける受付ステップと、前記受け付けられた符号データに含まれる多値画像を復号化し、この多値画像に基づいて、2値画像を生成する画像生成ステップと、前記生成された2値画像を、多値画像に変換する2値多値ステップとを前記復号化装置に実行させる。 In addition, a sixth program according to the present invention includes a receiving step of receiving code data including a binary image and a multi-valued image encoded by applying different methods in a decoding device including a computer, and the receiving An image generation step of decoding a multi-value image included in the encoded data and generating a binary image based on the multi-value image; and a binary for converting the generated binary image into a multi-value image A multi-value step is executed by the decoding device.
さらに、本発明にかかる第7のプログラムは、コンピュータを含む復号化装置において、複数の層で構成され、2値画像と多値画像とを異なる層に含む画像の符号データを受け付ける受付ステップと、前記受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して多値画像データを生成する画像生成ステップとを前記復号化装置に実行させる。 Furthermore, a seventh program according to the present invention is a decoding step that includes a computer, and includes a reception step of receiving code data of an image that includes a plurality of layers and includes a binary image and a multi-value image in different layers; The decoding apparatus is caused to execute an image generation step of decoding at least a multi-value image among images included in the received code data to generate multi-value image data.
本発明の符号化装置及び復号化装置によれば、改ざん痕を検知しうる程度に効果的に文書を符号化及び復号化することができる。 According to the encoding device and the decoding device of the present invention, it is possible to effectively encode and decode a document to such an extent that tampering can be detected.
本発明の第1の実施形態にかかる符号化装置2及び復号化装置3を説明する。
図1は、本発明にかかる符号化方法及び復号化方法が適応される符号化装置2及び復号化装置3のハードウェア構成を、制御装置20を中心に例示する図である。
図1に例示するように、符号化装置2等は、CPU202及びメモリ204などを含む制御装置20、通信装置22、HDD・CD装置などの記録装置24、及びLCD表示装置あるいはCRT表示装置並びにキーボード・タッチパネルなどを含むユーザインターフェース装置(UI装置)26を有する。
An
FIG. 1 is a diagram illustrating a hardware configuration of an
As illustrated in FIG. 1, the
符号化装置2及び復号化装置3は、例えば、後述する符号化プログラム4及び復号化プログラム5がプリンタドライバの一部としてインストールされた汎用コンピュータである。符号化装置2は、通信装置22又は記録装置24を介して入力された多値の画像データに対して所定の符号化処理を施して、改ざん痕を検知しうる符号データを生成する。復号化装置3は、図示しないネットワークを介して通信装置22より符号データを取得し、又は記録装置24に記憶されている符号データを取得し、復号化処理を施して、文書が改ざんされているか否かを検知しうるデータを抽出する。
The
図2は、制御装置20により実行され、本発明にかかる符号化方法を実現する符号化プログラム4の機能構成を示す図である。
図2に示すように、符号化プログラム4は、多値画像受付部40、閲覧画像生成部42、検知画像生成部44及び符号生成部46を含み、符号生成部46は、閲覧画像符号化部460及び検知画像符号化部462を含む。
なお、符号化プログラム4の全部又は一部の機能は、プリンタ装置10に設けられた例えばASICなどのハードウェアにより実現されてもよい。また、以降のプログラムも、同様にして実現されうる。
FIG. 2 is a diagram showing a functional configuration of the
As shown in FIG. 2, the
Note that all or some of the functions of the
符号化プログラム4において、多値画像受付部40は、通信装置22又は記録装置24などを介して取得された多値の画像データを入力する。多値画像受付部40は、受け付けられた入力画像の画像データを各色成分のラスタデータ(色成分画像)に変換し、このラスタデータにスクリーン処理を施して、閲覧画像生成部42及び検知画像生成部44に対して出力する。
In the
閲覧画像生成部42は、多値画像受付部40から入力された多値画像から、2値画像を生成する。閲覧画像生成部42は、例えば、多値画像の所定の範囲内の画素値の濃度(階調値)に応じて、2値化のしきい値を変動させて、多値画像に対して浮動2値化処理を施す。閲覧画像生成部42は、変動されたしきい値に従って、各画素値を黒又は白に2値化して、2値画像を生成する。閲覧画像生成部42は、例えば5×5画素の画像領域に含まれる画素の画素値に基づいて、しきい値を上下に変動させる。閲覧画像生成部42は、符号生成部46に対して、生成された2値画像を出力する。
The browsing
なお、閲覧画像生成部42は、固定されたしきい値に従って、多値画像から2値画像を生成してもよいし、多値画像の所定の範囲内の画素値の濃度に応じて、2値の網点画像を生成してもよい。
また、閲覧画像生成部42による2値化処理については、後で詳述する。
The browsing
Further, the binarization processing by the browsing
検知画像生成部44は、多値画像受付部40から入力された多値画像から、当該多値画像とは異なる多値画像を生成する。検知画像生成部44は、例えば、画像の作成日時等を示すタイムスタンプ情報を多値画像に埋め込む。検知画像生成部44は、タイムスタンプ情報に基づいて、人間には視覚されない画像パターンを生成し、改ざん検知データとして多値画像の下地等に埋め込む。検知画像生成部44は、符号生成部46に対して、生成された多値画像を出力する。
The detection
なお、検知画像生成部44は、多値画像受付部40から入力された多値画像を、符号生成部46に対して、そのまま出力してもよい。また、多値画像受付部40は、入力された多値画像を、検知画像生成部44を介さず、符号生成部46に対して直接出力してもよい。
The detected
符号生成部46は、閲覧画像生成部42により生成された2値画像と、検知画像生成部44により生成された多値画像とを、異なる手法を用いて符号化する。より具体的には、符号生成部46は、JBIG2に規定されるテキスト領域符号化あるいはジェネリック領域符号化を適用して、2値画像を符号化し、JBIG2に規定されるハーフトーン領域符号化を適用して、多値画像を符号化する。符号生成部46は、これらの符号化されたデータから符号データを生成して、通信装置22に対して出力し、又は記録装置24に保存する。
なお、テキスト領域符号化、ハーフトーン領域符号化等は、後で詳述する。
The
Text area coding, halftone area coding, etc. will be described in detail later.
符号生成部46の閲覧画像符号化部460は、JBIG2に規定されるテキスト領域符号化あるいはジェネリック領域符号化を適用して、2値画像を符号化する。
検知画像符号化部462は、JBIG2に規定されるハーフトーン領域符号化を適用して、多値画像を符号化する。
The browsing
The detected
図3は、閲覧画像生成部42によりなされる2値化処理を説明する図であって、図3(A)は、入力画素値と浮動しきい値及び固定しきい値との関係を例示し、図3(B)は、固定しきい値を用いた場合に生成される2値画像を例示し、図3(C)は、浮動しきい値を用いた場合に生成される2値画像を例示し、図3(D)は、2値網点化処理がなされた場合に生成される2値画像を例示する。
図3(A)に例示するように、固定しきい値の場合には、閲覧画像生成部42は、画素値と固定しきい値とを比較して、画素値を2値化する。浮動しきい値の場合には、閲覧画像生成部42は、走査方向に従って入力される画素値に従って、しきい値を上下に変動させる。この場合、閲覧画像生成部42は、所定の範囲に含まれる画素の画素値の例えば平均値に応じて、浮動しきい値を変動させるので、浮動しきい値は、入力画素値の明暗に追従するように、上下に変動する。
FIG. 3 is a diagram for explaining the binarization processing performed by the browsing
As illustrated in FIG. 3A, in the case of a fixed threshold value, the browsing
図3(B)に例示するように、固定しきい値の場合、わずかな画素値の明暗、細い線等が除去される。
一方、図3(C)に例示するように、浮動しきい値の場合、細い線等が残され、わずかな画素値の明暗も、黒と白とにより表現されて残される。
As illustrated in FIG. 3B, in the case of a fixed threshold value, slight brightness and dark lines, thin lines, and the like of pixel values are removed.
On the other hand, as illustrated in FIG. 3C, in the case of the floating threshold value, a thin line or the like is left, and a slight contrast of the pixel value is also expressed by black and white.
図3(D)に例示するように、2値網点化処理が用いられた場合には、閲覧画像生成部42は、多値画像の所定の範囲の濃度値(階調値)に対応する2値の網点画像に基づいて、多値画像から擬似的に階調表現しうる2値の網点画像を構成して、2値画像を生成する。ここで、網点の大きさは、濃度値に対応している。
As illustrated in FIG. 3D, when the binary halftone processing is used, the browsing
図4は、閲覧画像符号化部460によりなされるテキスト領域の符号化処理を説明する図であって、図4(A)は、閲覧画像符号化部460に入力される2値画像を例示し、図4(B)は、閲覧画像符号化部460により作成される画像辞書を例示し、図4(C)は、テキスト領域符号化後のデータを例示する。
図4(A)に例示するように、2値画像は、黒と白の2値で構成され、細線等は、除去されている。
FIG. 4 is a diagram for explaining the encoding process of the text area performed by the browsing
As illustrated in FIG. 4A, the binary image is composed of binary values of black and white, and fine lines and the like are removed.
図4(B)に例示するように、閲覧画像符号化部460は、2値画像に含まれる類型的なパターンを画像辞書に登録し、パターンそれぞれに対して、これらのパターンを識別するインデクスを付与して、画像辞書を完成させる。
図4(C)に例示するように、閲覧画像符号化部460は、登録されたパターンと、2値画像の各色成分画像に含まれるパターンとを比較して、インデクスと位置とを対応させたデータを生成し、符号化する。
As illustrated in FIG. 4B, the browsing
As illustrated in FIG. 4C, the browsing
また、閲覧画像符号化部460は、JBIG2に規定されるジェネリック領域符号化により、図4(A)に例示される2値画像を符号化してもよい。ジェネリック領域符号化は、2値画像を、画像辞書等を作成することなく符号化する方式である。より具体的には、ジェネリック領域符号化は、局所的な画素の並びの統計(例えば、コンテクスト)を利用して、入力画像を符号化する。
Moreover, the browsing
図5は、ハーフトーン領域の符号化処理を説明する図であり、図5(A)は、符号化対象である多値画像を例示し、図5(B)は、ハーフトーン領域符号化処理において作成される画像辞書を例示し、図5(C)は、この画像辞書を用いて生成された符号データを例示する。
図5(A)に例示するように、本発明にかかる符号化装置2は、多値画像を、直接符号化する。閲覧画像符号化部460は、多値画像の画素毎の濃度値(階調値)を画像辞書に登録して符号化する。
FIG. 5 is a diagram for explaining the encoding process of the halftone region, FIG. 5A illustrates a multi-value image to be encoded, and FIG. 5B illustrates the halftone region encoding process. FIG. 5C illustrates code data generated using this image dictionary.
As illustrated in FIG. 5A, the
図5(B)に例示するように、閲覧画像符号化部460は、多値画像の濃度値を、インデクスに対応づけて、画像辞書に登録する。インデクスは、それぞれの濃度値を一意に識別する識別情報である。
この画像辞書を用いて、多値画像が符号化されると、図5(C)に例示するような符号データが生成される。符号データは、多値画像における各領域の濃度値(すなわち、インデクス)と、この濃度値が存在する位置を示す位置情報とで構成される。
As illustrated in FIG. 5B, the browsing
When a multi-valued image is encoded using this image dictionary, code data as illustrated in FIG. 5C is generated. The code data is composed of density values (that is, indexes) of the respective areas in the multi-valued image and position information indicating positions where the density values exist.
図6は、符号化プログラム4による符号化処理(S10)を示すフローチャートである。
図6に示すように、ステップ100(S100)において、多値画像受付部40は、多値画像データが入力されると、多値画像データを各色成分のラスタデータに変換し、このラスタデータにスクリーン処理を施して、閲覧画像生成部42及び検知画像生成部44に対して出力する。
閲覧画像生成部42は、多値画像受付部40から入力された多値画像につき、例えば、所定の範囲内の画素値の濃度に応じて、2値化のしきい値を変動させて、多値画像に対して2値化処理を施し、2値画像を生成する。閲覧画像生成部42は、符号生成部46の閲覧画像符号化部460に対して、生成された閲覧用2値画像を出力する。
FIG. 6 is a flowchart showing the encoding process (S10) by the
As shown in FIG. 6, in step 100 (S100), when multi-value image data is input, the multi-value
For the multi-valued image input from the multi-valued
ステップ102(S102)において、検知画像生成部44は、多値画像受付部40から入力された多値画像の下地に、タイムスタンプ情報を埋め込んで、入力された多値画像とは異なる多値画像を生成する。検知画像生成部44は、符号生成部46の検知画像符号化部462に対して、生成された多値画像を出力する。なお、検知画像生成部44は、多値画像受付部40から入力された多値画像を、検知画像符号化部462に対してそのまま出力してもよい。
In step 102 (S102), the detection
ステップ104(S104)において、閲覧画像符号化部460は、テキスト領域符号化あるいはジェネリック領域符号化を適用して、2値画像を符号化する。
ステップ106(S106)において、検知画像符号化部462は、ハーフトーン領域符号化を適用して、多値画像を符号化する。
ステップ108(S108)において、符号生成部46は、閲覧画像符号化部460及び検知画像符号化部462により符号化されたデータそれぞれを含む符号データを生成して、通信装置22に対して出力し、又は記録装置24に保存する。
In step 104 (S104), the browsing
In step 106 (S106), the detected
In step 108 (S108), the
図7は、制御装置20により実行され、本発明にかかる復号化方法を実現する復号化プログラム5の機能構成を示す図である。
図7に示すように、復号化プログラム5は、符号データ受付部50及び画像生成部52を含み、画像生成部52は、閲覧画像復号化部520及び検知画像復号化部522を含む。
FIG. 7 is a diagram showing a functional configuration of the decryption program 5 that is executed by the
As illustrated in FIG. 7, the decoding program 5 includes a code
復号化プログラム5において、符号データ受付部50は、通信装置22又は記録装置24を介して、異なる手法を適用して符号化された2値画像と多値画像とを含む符号データを受け付け、画像生成部52に対して、これらの画像データを出力する。より具体的には、符号データ受付部50は、画像生成部52の閲覧画像復号化部520に対して2値画像を出力し、検知画像復号化部522に対して多値画像を出力する。ここで、2値画像は、JBIG2に規定されるテキスト領域又はジェネリック領域で符号化された画像であり、多値画像は、ハーフトーン領域で符号化された画像である。
In the decoding program 5, the code
画像生成部52は、符号データ受付部50から入力された画像のうち少なくとも多値画像を復号化して画像データを生成する。画像生成部52は、テキスト領域復号化又はジェネリック領域復号化を適用して、2値画像を復号化し、ハーフトーン領域復号化を適用して、多値画像を復号化する。
なお、画像生成部52は、画像の閲覧及び改ざん検知等に応じて、2値画像のみを復号化してもよいし、2値画像及び多値画像の両方を復号化してもよい。
The
Note that the
画像生成部52の閲覧画像復号化部520は、画像生成部52の制御により、テキスト領域復号化又はジェネリック領域復号化を適用して、符号データ受付部50から入力された2値画像を復号化する。閲覧画像復号化部520は、復号化された2値画像を、通信装置22に対して出力し、又は記録装置24に保存する。
The browsing
検知画像復号化部522は、画像生成部52の制御により、ハーフトーン領域復号化を適用して、多値画像を復号化する。検知画像復号化部522は、多値画像を、直接、通信装置22に対して出力し、又は記録装置24に保存する。
The detected
図8は、復号化プログラム5による復号化処理(S20)を示すフローチャートである。
図8に示すように、ステップ200(S200)において、符号データ受付部50は、符号化された2値画像と多値画像とを含む符号データを受け付け、閲覧画像復号化部520に対して2値画像を出力し、検知画像復号化部522に対して多値画像を出力する。
FIG. 8 is a flowchart showing the decryption process (S20) by the decryption program 5.
As shown in FIG. 8, in step 200 (S200), the code
ステップ202(S202)において、閲覧画像復号化部520は、テキスト領域復号化又はジェネリック領域復号化を適用して、符号データ受付部50から入力された2値画像を復号化し、記録装置24等に対して2値画像を出力する。
ステップ204(S204)において、検知画像復号化部522は、ハーフトーン領域復号化を適用して、多値画像を復号化し、記録装置24等に対して確認画像を出力する。
In step 202 (S202), the browsing
In step 204 (S204), the detected
以上説明したように、本実施形態にかかる符号化装置2は、入力された多値画像から2値画像を生成し、多値画像と生成された2値画像とを異なる手法を用いて符号化して符号データを生成するので、文書の見読性と改ざん検知性とを備えた文書を、効率よく符号化することができる。また、符号化装置2は、入力された多値画像から、当該多値画像とは異なる多値画像を生成して符号データを生成するので、改ざん検知性が向上された符号データを生成することができる。特に、符号化装置2は、多値画像に、タイムスタンプ情報を埋め込むので、効果的な改ざん検知がなされる符号データを生成することができる。さらに、符号化装置2は、JBIG2に規定されるテキスト領域符号化又はジェネリック領域符号化を適用して、2値画像を符号化し、ハーフトーン領域符号化を適用して、多値画像を符号化するので、効率よくかつ高速に、符号化処理を行うことができる。
As described above, the
また、本実施形態にかかる復号化装置3は、異なる手法を適用して符号化された2値画像と多値画像とを含む符号データを受け付け、この符号データに含まれる画像のうち少なくとも多値画像を復号化して画像データを生成するので、改ざん検知時の処理速度を向上させることができる。また、復号化装置3は、符号データに含まれる画像のうち2値画像のみを符号化して画像データを生成してもよいので、閲覧時の処理速度を向上させることができる。また、復号化装置3は、受け付けられた符号データに含まれる2値画像及び多値画像を復号化し、見読性に優れた2値画像を生成し、改ざん検知がなされうる多値画像を生成するので、見読性と改ざん検知性とを両立することができる。さらに、復号化装置3は、JBIG2に規定されるテキスト領域復号化又はジェネリック領域復号化を適用して、2値画像を復号化し、ハーフトーン領域復号化を適用して、多値画像を復号化するので、効率よくかつ高速に復号化処理を行うことができる。
In addition, the
次に、本発明の第2の実施形態にかかる符号化装置2及び復号化装置3を説明する。
図9は、本実施形態にかかる符号化方法を実現する符号化プログラム6の機能構成を示す図である。
図9に示すように、符号化プログラム6は、多値画像受付部40、閲覧画像生成部42、検知画像生成部44、多値2値変換部60及び符号生成部66を含む。符号生成部66は、閲覧画像符号化部460及び検知画像符号化部660を含み、検知画像符号化部660は、2値多値変換部662、多値画像符号化部664及び2値パターン符号化部666を含む。本実施形態にかかる符号化プログラム6は、改ざん検知用の多値画像を2値画像に変換した後に符号化する点で、第1の実施形態にかかる符号化プログラム4と異なる。
なお、図9に示された各構成のうち、図2に示された構成と実質的に同一のものには同一の符号が付されている。
Next, an
FIG. 9 is a diagram illustrating a functional configuration of the encoding program 6 that realizes the encoding method according to the present embodiment.
As shown in FIG. 9, the encoding program 6 includes a multi-value
9 that are substantially the same as those shown in FIG. 2 are denoted by the same reference numerals.
多値2値変換部60は、検知画像生成部44から入力された多値画像を2値画像に変換して、符号生成部66に対して出力する。多値2値変換部60は、多値画像の画素それぞれを、この画素値に応じた所定の2値パターンに置き換えて、多値画像を2値画像に変換する。例えば、多値2値変換部60は、多値画像の画素それぞれを、4×4画素の2値パターンに置き換える。
なお、多値画像受付部40は、検知画像生成部44を介さずに、多値2値変換部60に対して多値画像を直接出力し、多値2値変換部60は、多値画像受付部40から入力された多値画像を2値画像に変換してもよい。
The multilevel
The multi-value
符号生成部66は、閲覧画像生成部42により生成された2値画像と、多値2値変換部60により変換された2値画像とを、異なる手法を用いて符号化して符号データを生成する。より具体的には、符号生成部66は、JBIG2に規定されるテキスト領域符号化あるいはジェネリック領域符号化を適用して、閲覧画像生成部42により生成された2値画像を符号化し、JBIG2に規定されるハーフトーン領域符号化を適用して、多値2値変換部60により変換された2値画像を符号化する。符号生成部66は、これらの符号化されたデータから符号データを生成して、通信装置22に対して出力し、又は記録装置24に保存する。
The code generation unit 66 encodes the binary image generated by the browsing
検知画像符号化部660は、JBIG2に規定されるハーフトーン領域符号化を適用して、2値画像を符号化する。より具体的には、検知画像符号化部660は、多値2値変換部60により変換された2値画像を、多値画像に変換した後に符号化して符号データを生成する。また、検知画像符号化部660は、2値画像を、この2値画像が変換される前の多値画像と同一の多値画像に変換して、この多値画像及び多値化パラメータを符号化する。
なお、検知画像符号化部660によるハーフトーン領域の符号化処理は、後で詳述する。
The detected image encoding unit 660 encodes the binary image by applying the halftone area encoding specified in JBIG2. More specifically, the detected image encoding unit 660 generates code data by converting the binary image converted by the multi-level
The halftone area encoding process performed by the detected image encoding unit 660 will be described in detail later.
検知画像符号化部660の2値多値変換部662は、多値2値変換部60から入力された2値画像を、この2値画像が変換される前の多値画像と同一の多値画像に変換する。例えば、2値多値変換部662は、所定の範囲の2値パターンを、この2値パターンに応じて定められている多値に変換する。検知画像符号化部660は、多値画像符号化部664に対して、変換後の多値画像を出力し、2値パターン符号化部666に対して、2値パターンと多値との組み合わせ(多値化パラメータ)を出力する。
The binary
多値画像符号化部664は、ハーフトーン領域符号化を適用して、2値多値変換部662から入力された多値画像を符号化する。
2値パターン符号化部666は、エントロピー符号化等(ハフマン符号化、算術符号化又はLZ符号化など)により、多値化パラメータを符号化する。
The multilevel
The binary
図10は、ハーフトーン領域の符号化処理を説明する図であり、図10(A)は、ハーフトーン領域符号化処理において作成される画像辞書を例示し、図10(B)は、この画像辞書を用いて生成された符号データ及びその復号画像を例示する。
図10(A)に例示するように、2値画像において、所定の2値パターンが所定の範囲内に存在する場合、それぞれの2値パターンが、インデクス(濃度値)に対応付けられて画像辞書に登録される。
FIG. 10 is a diagram for explaining the encoding process of the halftone area. FIG. 10A illustrates an image dictionary created in the halftone area encoding process, and FIG. 10B illustrates this image. The code data produced | generated using the dictionary and its decoded image are illustrated.
As illustrated in FIG. 10A, in a binary image, when a predetermined binary pattern exists within a predetermined range, each binary pattern is associated with an index (density value) in the image dictionary. Registered in
この画像辞書を用いて、画像が符号化されると、図10(B)に例示するような符号データが生成される。符号データは、2値画像における各領域の濃度値(すなわち、インデクス)と、この濃度値が存在する位置を示す位置情報(格子状の位置)とで構成される。この符号データが復号化されると、画像辞書が参照されて、復号画像が生成される。より具体的には、符号データから復号化された濃度値に基づいて、画像辞書に登録されている2値パターンが選択され、選択された2値パターンが符号データから復号化された位置情報に応じて配置されて、復号画像が生成される。 When an image is encoded using this image dictionary, code data as illustrated in FIG. 10B is generated. The code data is composed of density values (that is, indexes) of respective regions in the binary image and position information (grid-like positions) indicating positions where the density values exist. When this code data is decoded, the image dictionary is referred to and a decoded image is generated. More specifically, based on the density value decoded from the code data, a binary pattern registered in the image dictionary is selected, and the selected binary pattern is converted into position information decoded from the code data. Accordingly, the decoded image is generated.
図11は、符号化プログラム6による符号化処理(S30)を示すフローチャートである。なお、図11に示された各処理のうち、図6に示された処理と実質的に同一の処理には同一の符号が付されている。
図11に示すように、S100〜S104の処理で、閲覧用2値画像及び改ざん検知用の多値画像が、入力された多値画像から生成される。生成された2値画像は、テキスト領域符号化あるいはジェネリック領域符号化が適用されて、符号生成部66の閲覧画像符号化部460により符号化される。また、生成された多値画像は、多値2値変換部60に対して出力される。なお、入力された多値画像が、多値画像受付部40により、多値2値変換部60に対して出力されてもよい。
FIG. 11 is a flowchart showing the encoding process (S30) by the encoding program 6. Of the processes shown in FIG. 11, processes that are substantially the same as the processes shown in FIG. 6 are denoted by the same reference numerals.
As shown in FIG. 11, a binary image for browsing and a multi-value image for tampering detection are generated from the input multi-value image in the processing of S100 to S104. The generated binary image is encoded by the browse
ステップ300(S300)において、多値2値変換部60は、検知画像生成部44から入力された多値画像を2値画像に変換して、符号生成部66に対して出力する。
ステップ306(S306)において、符号生成部66の検知画像符号化部660は、ハーフトーン領域符号化を適用して、多値2値変換部60から入力された2値画像を符号化する。より具体的には、2値多値変換部662は、多値2値変換部60から入力された2値画像を、この2値画像が変換される前の多値画像と同一の多値画像に変換して、多値画像符号化部664に対して出力する。また、2値多値変換部662は、2値パターン符号化部666に対して、多値化パラメータを出力する。多値画像符号化部664は、多値画像を符号化して多値画像符号データを生成し、2値パターン符号化部666は、多値化パラメータを符号化して2値パターン符号データを生成する。
In step 300 (S300), the multi-value
In step 306 (S306), the detected image encoding unit 660 of the code generation unit 66 applies the halftone region encoding to encode the binary image input from the multi-level
ステップ308(S308)において、符号生成部66は、閲覧画像符号化部460により生成された2値画像符号データ、多値画像符号化部664により生成された多値画像符号データ、及び2値パターン符号化部666により生成された2値パターン符号データを含む符号データを生成して、通信装置22に対して出力し、又は記録装置24に保存する。
In step 308 (S308), the code generation unit 66 includes the binary image code data generated by the browsing
図12は、本実施形態にかかる復号化方法を実現する復号化プログラム7の機能構成を示す図である。
図12に示すように、復号化プログラム7は、符号データ受付部50、画像生成部72及び2値多値変換部74を含む。画像生成部72は、閲覧画像復号化部520及び検知画像復号化部720を含み、検知画像復号化部720は、多値画像復号部722、2値パターン復号部724及び2値画像復号部726を含む。
なお、図12に示された各構成のうち、図7に示された構成と実質的に同一のものには同一の符号が付されている。
FIG. 12 is a diagram showing a functional configuration of the decryption program 7 for realizing the decryption method according to the present embodiment.
As illustrated in FIG. 12, the decoding program 7 includes a code
12 that are substantially the same as those shown in FIG. 7 are denoted by the same reference numerals.
復号化プログラム7において、画像生成部72は、符号データ受付部50から入力された符号データに含まれる多値画像を復号化し、この多値画像に基づいて、2値画像を生成して、2値多値変換部74に対して出力する。より具体的には、画像生成部72の検知画像復号化部720は、画像生成部72の制御により、ハーフトーン領域復号化を適用して、符号化された多値画像を復号化し、符号化された2値パターンを復号化し、復号化されたデータに基づいて、2値画像を生成する。
In the decoding program 7, the image generation unit 72 decodes the multilevel image included in the code data input from the code
検知画像復号化部720の多値画像復号部722は、符号化された多値画像を復号化し、2値パターンと位置との対応データを抽出して、2値画像復号部726に対して出力する。
2値パターン復号部724は、符号化された多値化パラメータを復号化し、図10(A)に示される画像辞書を抽出して、2値画像復号部726に対して出力する。
2値画像復号部726は、画像辞書を参照して、画像のそれぞれの位置に2値パターンを配置し、2値画像を生成して、2値多値変換部74に対して出力する。
The multi-value
The binary
The binary
2値多値変換部74は、検知画像復号化部720から入力された2値画像を、多値画像に変換する。2値多値変換部74は、符号化プログラム6の2値多値変換部662(図9)と実質的に同一の処理を行うことにより、多値画像復号部722により生成された多値画像と同一の多値画像を生成する。2値多値変換部74は、生成された多値画像を、通信装置22に対して出力し、又は記録装置24に保存する。
The binary
図13は、復号化プログラム7による復号化処理(S40)を示すフローチャートである。なお、図13に示された各処理のうち、図8に示された処理と実質的に同一の処理には同一の符号が付されている。
図13に示すように、S200〜S202の処理で、符号データが受け付けられ、画像生成部72の閲覧画像復号化部520が、テキスト領域復号化あるいはジェネリック領域復号化を適用して、符号データに含まれている2値画像を復号化し、記録装置24等に対して2値画像を出力する。
FIG. 13 is a flowchart showing the decryption process (S40) by the decryption program 7. Of the processes shown in FIG. 13, processes that are substantially the same as those shown in FIG. 8 are denoted by the same reference numerals.
As shown in FIG. 13, code data is received in the processes of S200 to S202, and the browsing
ステップ400(S400)において、画像生成部72の検知画像復号化部720は、ハーフトーン領域復号化を適用して、符号データに含まれている多値画像を復号化し、この多値画像に基づいて、2値画像を生成して、2値多値変換部74に対して出力する。
ステップ402(S402)において、2値多値変換部74は、検知画像復号化部720から入力された2値画像を、多値画像に変換して、記録装置24等に対して確認画像を出力する。
In step 400 (S400), the detected image decoding unit 720 of the image generation unit 72 applies halftone region decoding to decode a multi-value image included in the code data, and based on this multi-value image. Thus, a binary image is generated and output to the binary
In step 402 (S402), the binary
以上説明したように、本実施形態にかかる符号化装置2は、入力された多値画像から2値画像を生成し、入力された多値画像を2値画像に変換し、生成された2値画像と前記多値2値変換手段により変換された2値画像とを異なる手法を用いて符号化して符号データを生成する。このため、符号化装置2は、JBIG2に規定されるハーフトーン領域の符号化処理を、効率よく行うことができる。
また、本実施形態にかかる復号化装置3は、異なる手法を適用して符号化された2値画像と多値画像とを含む符号データを受け付け、受け付けられた符号データに含まれる多値画像を復号化し、この多値画像に基づいて2値画像を生成し、この2値画像を多値画像に変換する。このため、復号化装置3は、JBIG2に規定されるハーフトーン領域の復号化処理を、効率よく行うことができる。
As described above, the
In addition, the
次に、本発明の第3の実施形態にかかる符号化装置2及び復号化装置3を説明する。
図14は、本実施形態にかかる符号化方法を実現する符号化プログラム8の機能構成を示す図である。
図14に示すように、符号化プログラム8は、多値画像受付部40、閲覧画像生成部42、検知画像生成部44、割当部80及び符号生成部86を含み、符号生成部86は、閲覧画像符号化部860及び検知画像符号化部862を含む。本実施形態にかかる符号化プログラム8は、生成された2値画像を、複数の層で構成される画像の第1の層に割り当て、生成された多値画像を、第2の層に割り当て、それぞれの層の画像を、異なる手法を用いて符号化する点で、第1の実施形態にかかる符号化プログラム4と異なる。
なお、図14に示された各構成のうち、図2に示された構成と実質的に同一のものには同一の符号が付されている。
Next, an
FIG. 14 is a diagram showing a functional configuration of the
As shown in FIG. 14, the
14 that are substantially the same as those shown in FIG. 2 are denoted by the same reference numerals.
符号化プログラム8において、割当部80は、複数の層で構成される画像において、閲覧画像生成部42により生成された2値画像を第1の層に割り当て、検知画像生成部44により生成された多値画像を第2の層に割り当てる。複数の層で構成される画像は、MRC(Mixed Raster Content)形式の画像であり、割当部80は、入力された画像からMRC形式の画像を生成して、符号生成部86に対して出力する。
In the
符号生成部86は、割当部80によりMRC形式の画像の第1の層に割り当てられた2値画像と第2の層に割り当てられた多値画像とを、異なる手法を用いて符号化して符号データを生成する。
閲覧画像符号化部860は、符号生成部86の制御により、例えばJBIG2に規定されるテキスト領域符号化あるいはジェネリック領域符号化を適用して、第1の層に割り当てられている2値画像を符号化する。
検知画像符号化部862は、符号生成部86の制御により、例えばJPEG2000に基づいた符号化手法を適用して、第2の層に割り当てられている多値画像を符号化する。
The
The browsing
The detected
図15は、符号化プログラム8による符号化処理(S50)を示すフローチャートである。なお、図15に示された各処理のうち、図6に示された処理と実質的に同一の処理には同一の符号が付されている。
図15に示すように、S100〜S102の処理で、閲覧用2値画像及び改ざん検知用の多値画像が、入力された多値画像から生成される。生成された画像それぞれは、割当部80に対して出力される。なお、入力された多値画像が、多値画像受付部40により、割当部80に対して、直接出力されてもよい。
FIG. 15 is a flowchart showing the encoding process (S50) by the
As shown in FIG. 15, in the processes of S <b> 100 to S <b> 102, a browsing binary image and a tampering detection multi-value image are generated from the input multi-value image. Each of the generated images is output to the assigning
ステップ500(S500)において、割当部80は、2値画像を第1の層に割り当て、多値画像を第2の層に割り当て、MRC形式の画像を生成して、符号生成部86に対して出力する。
ステップ504(S504)において、符号生成部86の閲覧画像符号化部860は、例えばJBIG2に規定されるテキスト領域符号化あるいはジェネリック領域符号化を適用して、第1の層に割り当てられている2値画像を符号化する。
ステップ506(S506)において、符号生成部86の検知画像符号化部862は、例えばJPEG2000に基づいた符号化手法を適用して、第2の層に割り当てられている多値画像を符号化する。
In step 500 (S500), the assigning
In step 504 (S504), the browse
In step 506 (S506), the detected
ステップ508(S508)において、符号生成部86は、閲覧画像符号化部860により生成された2値画像符号データ、検知画像符号化部862により生成された多値画像符号データを含む符号データを生成して、通信装置22に対して出力し、又は記録装置24に保存する。
In step 508 (S508), the
図16は、本実施形態にかかる復号化方法を実現する復号化プログラム9の機能構成を示す図である。
図16に示すように、復号化プログラム9は、符号データ受付部50、画像生成部92及び合成部90を含み、画像生成部92は、閲覧画像復号化部920及び検知画像復号化部922を含む。
なお、図16に示された各構成のうち、図7に示された構成と実質的に同一のものには同一の符号が付されている。
FIG. 16 is a diagram illustrating a functional configuration of the decryption program 9 that realizes the decryption method according to the present embodiment.
As illustrated in FIG. 16, the decoding program 9 includes a code
16 that are substantially the same as those shown in FIG. 7 are denoted by the same reference numerals.
復号化プログラム9において、画像生成部92は、複数の層で構成される符号データであって、2値画像と多値画像とを異なる層に含む画像の符号データに含まれる画像のうち少なくとも多値画像を復号化して多値画像を生成する。さらに、画像生成部92は、この符号データに含まれる画像のうち、2値画像をさらに復号化して2値画像を生成してもよい。画像生成部92は、画像が閲覧される場合には、2値画像のみを生成してもよいし、画像の改ざん検知がなされる場合には、多値画像のみを生成してもよい。画像生成部92は、合成部90に対して、生成された2値画像及び多値画像を出力し、さらに、通信装置22に対して出力し、又は記録装置24に保存する。
In the decoding program 9, the
閲覧画像復号化部920は、画像生成部92の制御により、例えばJBIG2に規定されるテキスト領域復号化あるいはジェネリック領域復号化を適用して、2値画像を復号化する。
検知画像復号化部922は、画像生成部92の制御により、例えばJPEG2000に基づいた復号化手法を適用して、多値画像を復号化する。
The browsing
The detected
合成部90は、画像生成部92から入力された2値画像と多値画像とを、MRC形式の画像の異なる層に割り当てて、MRC形式の画像(合成画像)を生成して、通信装置22に対して出力し、又は記録装置24に保存する。
The synthesizing
図17は、復号化プログラム9による復号化処理(S60)を示すフローチャートである。なお、図17に示された各処理のうち、図8に示された処理と実質的に同一の処理には同一の符号が付されている。
図17に示すように、S200の処理で、符号データが受け付けられて、画像生成部92に対して出力される。
FIG. 17 is a flowchart showing the decryption process (S60) by the decryption program 9. Of the processes shown in FIG. 17, processes that are substantially the same as the processes shown in FIG. 8 are denoted by the same reference numerals.
As shown in FIG. 17, in the process of S <b> 200, code data is accepted and output to the
ステップ602(S602)において、画像生成部92の閲覧画像復号化部920は、例えばJBIG2に規定されるテキスト領域復号化あるいはジェネリック領域復号化を適用して、2値画像を復号化する。画像生成部92は、合成部90に対して、生成された2値画像を出力し、さらに、通信装置22に対して出力し、又は記録装置24に保存する。
ステップ604(S602)において、画像生成部92の検知画像復号化部922は、例えばJPEG2000に基づいた復号化手法を適用して、多値画像を復号化する。画像生成部92は、合成部90に対して、生成された多値画像を出力し、さらに、通信装置22に対して出力し、又は記録装置24に保存する。
In step 602 (S602), the browsing
In step 604 (S602), the detected
ステップ606(S606)において、合成部90は、画像生成部92から入力された2値画像と多値画像とを、MRC形式の画像の異なる層に割り当てて、MRC形式の画像(合成画像)を生成して、通信装置22に対して出力し、又は記録装置24に保存する。
なお、画像それぞれは、記録装置24に記憶された場合には、適宜読み出され、復号化装置3のUI装置26に表示され、又はプリンタ装置10に出力されて記録媒体に印刷される。
In step 606 (S606), the synthesizing
In addition, when each image is stored in the
以上説明したように、本実施形態にかかる符号化装置2は、入力された多値画像から2値画像を生成し、この多値画像から当該多値画像とは異なる多値画像を生成し、複数の層で構成される画像において、生成された2値画像を第1の層に割り当て、生成された多値画像を第2の層に割り当て、第1の層に割り当てられた2値画像と第2の層に割り当てられた多値画像とを、異なる手法を用いて符号化して符号データを生成する。このため、符号化装置2は、閲覧時及び改ざん検知時の処理が高速になされうる符号データを生成することができる。
また、本実施形態にかかる復号化装置3は、複数の層で構成され、2値画像と多値画像とを異なる層に含む画像の符号データを受け付け、受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して多値画像を生成するので、改ざん検知時の処理を高速に行うことができる。さらに、復号化装置3は、符号データに含まれる画像のうち2値画像のみを復号化して2値画像を生成するので、閲覧時の処理を高速に行うことができる。
As described above, the
In addition, the
2・・・符号化装置
10・・・プリンタ装置
20・・・制御装置
202・・・CPU
204・・・メモリ
22・・・通信装置
24・・・記録装置
26・・・UI装置
3・・・復号化装置
4・・・符号化プログラム
40・・・多値画像受付部
42・・・閲覧画像生成部
44・・・検知画像生成部
46・・・符号生成部
460・・・閲覧画像符号化部
462・・・検知画像符号化部
5・・・復号化プログラム
50・・・符号データ受付部
52・・・画像生成部
520・・・閲覧画像復号化部
522・・・検知画像復号化部
6・・・符号化プログラム
60・・・多値2値変換部
66・・・符号生成部
660・・・検知画像符号化部
662・・・2値多値変換部
664・・・多値画像符号化部
666・・・2値パターン符号化部
7・・・復号化プログラム
72・・・画像生成部
720・・・検知画像復号化部
722・・・多値画像復号部
724・・・2値パターン復号部
726・・・2値画像復号部
74・・・2値多値変換部
8・・・符号化プログラム
80・・・割当部
86・・・符号生成部
860・・・閲覧画像符号化部
862・・・検知画像符号化部
9・・・復号化プログラム
90・・・合成部
92・・・画像生成部
920・・・閲覧画像復号化部
922・・・検知画像復号化部
2 ...
204 ...
Claims (28)
前記2値画像生成手段により生成された2値画像と、多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成手段と
を有する符号化装置。 Binary image generating means for generating a binary image from the input multi-valued image;
An encoding apparatus comprising: a code generation unit that encodes a binary image generated by the binary image generation unit and a multi-level image using different methods to generate code data.
前記2値画像生成手段により生成された2値画像を符号化する2値画像符号化手段と、
多値画像を符号化する多値画像符号化手段と
を有する
請求項1に記載の符号化装置。 The code generation means includes
Binary image encoding means for encoding the binary image generated by the binary image generation means;
The encoding apparatus according to claim 1, further comprising: a multi-level image encoding unit that encodes the multi-level image.
請求項2に記載の符号化装置。 The encoding apparatus according to claim 2, wherein the binary image encoding means applies text region encoding or generic region encoding specified in JBIG2.
請求項2又は3に記載の符号化装置。 The encoding device according to claim 2 or 3, wherein the multi-level image encoding means applies halftone region encoding defined in JBIG2 to the multi-level image.
この多値画像から、当該多値画像とは異なる多値画像を生成する多値画像生成手段と、
前記2値画像生成手段により生成された2値画像と、前記多値画像生成手段により生成された多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成手段と
を有する符号化装置。 Binary image generating means for generating a binary image from the input multi-valued image;
A multi-value image generating means for generating a multi-value image different from the multi-value image from the multi-value image;
Code generation means for generating code data by encoding the binary image generated by the binary image generation means and the multi-value image generated by the multi-value image generation means using different methods. Encoding device.
この多値画像を2値画像に変換する多値2値変換手段と、
前記2値画像生成手段により生成された2値画像と、前記多値2値変換手段により変換された2値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成手段と
を有する符号化装置。 Binary image generating means for generating a binary image from the input multi-valued image;
Multi-value binary conversion means for converting the multi-value image into a binary image;
Code generation means for generating code data by encoding the binary image generated by the binary image generation means and the binary image converted by the multi-value binary conversion means using different methods. An encoding device having.
請求項6に記載の符号化装置。 The encoding device according to claim 6, wherein the code generation unit generates code data by encoding the binary image converted by the multi-level binary conversion unit after converting the binary image into a multi-level image.
請求項7に記載の符号化装置。 The code generation means converts the binary image converted by the multi-value binary conversion means into a multi-value image identical to the multi-value image before the binary image is converted. Encoding device.
この多値画像から、当該多値画像とは異なる多値画像を生成する多値画像生成手段と、
複数の層で構成される画像において、前記2値画像生成手段により生成された2値画像を第1の層に割り当て、前記多値画像生成手段により生成された多値画像を第2の層に割り当てる割当手段と、
前記割当手段により第1の層に割り当てられた2値画像と、前記割当手段により第2の層に割り当てられた多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成手段と
を有する符号化装置。 Binary image generating means for generating a binary image from the input multi-valued image;
A multi-value image generating means for generating a multi-value image different from the multi-value image from the multi-value image;
In an image composed of a plurality of layers, the binary image generated by the binary image generating means is assigned to the first layer, and the multi-value image generated by the multi-value image generating means is assigned to the second layer. Assigning means to assign;
Code generation for generating code data by encoding the binary image assigned to the first layer by the assigning means and the multi-valued image assigned to the second layer by the assigning means using different methods And a coding device.
前記受付手段により受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して画像データを生成する画像生成手段と
を有する復号化装置。 Receiving means for receiving code data including a binary image and a multi-value image encoded by applying different methods;
A decoding apparatus comprising: an image generation unit configured to decode at least a multi-valued image among images included in the code data received by the reception unit and generate image data.
請求項10に記載の復号化装置。 The decoding device according to claim 10, wherein the image generation means decodes a multi-valued image by applying halftone region decoding defined in JBIG2.
前記受付手段により受け付けられた符号データに含まれる多値画像を復号化し、この多値画像に基づいて、2値画像を生成する画像生成手段と、
前記画像生成手段により生成された2値画像を、多値画像に変換する2値多値手段と
を有する復号化装置。 Receiving means for receiving code data including a binary image and a multi-value image encoded by applying different methods;
Image generating means for decoding a multi-valued image included in the code data received by the receiving means, and generating a binary image based on the multi-valued image;
A decoding apparatus comprising: binary multi-value means for converting the binary image generated by the image generation means into a multi-value image.
前記受付手段により受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して多値画像データを生成する画像生成手段と
を有する復号化装置。 A receiving unit configured to receive code data of an image including a plurality of layers and including a binary image and a multi-valued image in different layers;
A decoding device comprising: image generation means for decoding at least a multi-value image among images included in the code data received by the reception means to generate multi-value image data.
請求項13に記載の復号化装置。 The decoding apparatus according to claim 13, wherein the image generation further generates a binary image data by further decoding a binary image among images included in the code data received by the receiving unit.
前記生成された2値画像と、多値画像とを、異なる手法を用いて符号化して符号データを生成する
符号化方法。 Generate a binary image from the input multi-valued image,
An encoding method for generating code data by encoding the generated binary image and the multi-valued image using different methods.
この多値画像から、当該多値画像とは異なる多値画像を生成し、
前記生成された2値画像と、前記生成された多値画像とを、異なる手法を用いて符号化して符号データを生成する
符号化方法。 Generate a binary image from the input multi-valued image,
From this multi-value image, a multi-value image different from the multi-value image is generated,
An encoding method for generating code data by encoding the generated binary image and the generated multi-valued image using different methods.
この多値画像を2値画像に変換し、
前記生成された2値画像と、前記変換された2値画像とを、異なる手法を用いて符号化して符号データを生成する
符号化方法。 Generate a binary image from the input multi-valued image,
Convert this multi-valued image into a binary image,
An encoding method for generating code data by encoding the generated binary image and the converted binary image using different methods.
この多値画像から、当該多値画像とは異なる多値画像を生成し、
複数の層で構成される画像において、前記生成された2値画像を第1の層に割り当て、前記生成された多値画像を第2の層に割り当て、
前記第1の層に割り当てられた2値画像と、前記第2の層に割り当てられた多値画像とを、異なる手法を用いて符号化して符号データを生成する
符号化方法。 Generate a binary image from the input multi-valued image,
From this multi-value image, a multi-value image different from the multi-value image is generated,
In an image composed of a plurality of layers, the generated binary image is assigned to a first layer, the generated multi-valued image is assigned to a second layer,
An encoding method for generating code data by encoding a binary image assigned to the first layer and a multi-value image assigned to the second layer using different methods.
前記受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して画像データを生成する
復号化方法。 Accepts encoded data including a binary image and a multi-valued image encoded by applying different methods;
A decoding method for generating image data by decoding at least a multi-valued image of images included in the received code data.
前記受け付けられた符号データに含まれる多値画像を復号化し、この多値画像に基づいて、2値画像を生成し、
前記生成された2値画像を、多値画像に変換する
復号化方法。 Accepts encoded data including a binary image and a multi-valued image encoded by applying different methods;
Decoding a multi-value image included in the received code data, and generating a binary image based on the multi-value image;
A decoding method for converting the generated binary image into a multi-valued image.
前記受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して多値画像データを生成する
復号化方法。 Accepts code data of an image composed of a plurality of layers and including a binary image and a multi-value image in different layers,
A decoding method for generating multi-value image data by decoding at least a multi-value image among images included in the received code data.
入力された多値画像から2値画像を生成する2値画像生成ステップと、
前記生成された2値画像と、多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成ステップと
を前記符号化装置に実行させるプログラム。 In an encoding device including a computer,
A binary image generation step of generating a binary image from the input multi-valued image;
A program that causes the encoding apparatus to execute a code generation step of generating code data by encoding the generated binary image and multi-valued image using different methods.
入力された多値画像から2値画像を生成する2値画像生成ステップと、
この多値画像から、当該多値画像とは異なる多値画像を生成する多値画像生成ステップと、
前記生成された2値画像と、前記生成された多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成ステップと
を前記符号化装置に実行させるプログラム。 In an encoding device including a computer,
A binary image generation step of generating a binary image from the input multi-valued image;
A multi-value image generation step for generating a multi-value image different from the multi-value image from the multi-value image,
A program that causes the encoding device to execute a code generation step of generating code data by encoding the generated binary image and the generated multi-valued image using different methods.
入力された多値画像から2値画像を生成する2値画像生成ステップと、
この多値画像を2値画像に変換する多値2値変換ステップと、
前記生成された2値画像と、前記変換された2値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成ステップと
を前記符号化装置に実行させるプログラム。 In an encoding device including a computer,
A binary image generation step of generating a binary image from the input multi-valued image;
A multi-value binary conversion step for converting the multi-value image into a binary image;
A program that causes the encoding apparatus to execute a code generation step of generating code data by encoding the generated binary image and the converted binary image using different methods.
入力された多値画像から2値画像を生成する2値画像生成ステップと、
この多値画像から、当該多値画像とは異なる多値画像を生成する多値画像生成ステップと、
複数の層で構成される画像において、前記生成された2値画像を第1の層に割り当て、前記生成された多値画像を第2の層に割り当てる割当ステップと、
前記第1の層に割り当てられた2値画像と、前記第2の層に割り当てられた多値画像とを、異なる手法を用いて符号化して符号データを生成する符号生成ステップと
を前記符号化装置に実行させるプログラム。 In an encoding device including a computer,
A binary image generation step of generating a binary image from the input multi-valued image;
A multi-value image generation step for generating a multi-value image different from the multi-value image from the multi-value image,
An assigning step of assigning the generated binary image to a first layer and assigning the generated multi-valued image to a second layer in an image composed of a plurality of layers;
A code generation step of generating code data by encoding the binary image assigned to the first layer and the multi-value image assigned to the second layer using different methods; A program to be executed by a device.
異なる手法を適用して符号化された2値画像と多値画像とを含む符号データを受け付ける受付ステップと、
前記受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して画像データを生成する画像生成ステップと
を前記復号化装置に実行させるプログラム。 In a decoding device including a computer,
A reception step of receiving code data including a binary image and a multi-value image encoded by applying different methods;
A program that causes the decoding device to execute an image generation step of decoding at least a multi-value image among images included in the received code data to generate image data.
異なる手法を適用して符号化された2値画像と多値画像とを含む符号データを受け付ける受付ステップと、
前記受け付けられた符号データに含まれる多値画像を復号化し、この多値画像に基づいて、2値画像を生成する画像生成ステップと、
前記生成された2値画像を、多値画像に変換する2値多値ステップと
を前記復号化装置に実行させるプログラム。 In a decoding device including a computer,
A reception step of receiving code data including a binary image and a multi-value image encoded by applying different methods;
An image generation step of decoding a multi-valued image included in the received code data and generating a binary image based on the multi-valued image;
A program that causes the decoding device to execute a binary multi-value step of converting the generated binary image into a multi-value image.
複数の層で構成され、2値画像と多値画像とを異なる層に含む画像の符号データを受け付ける受付ステップと、
前記受け付けられた符号データに含まれる画像のうち少なくとも多値画像を復号化して多値画像データを生成する画像生成ステップと
を前記復号化装置に実行させるプログラム。 In a decoding device including a computer,
An accepting step for receiving code data of an image composed of a plurality of layers and including a binary image and a multi-valued image in different layers;
A program that causes the decoding apparatus to execute an image generation step of decoding at least a multi-value image among images included in the received code data to generate multi-value image data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005172038A JP2006352214A (en) | 2005-06-13 | 2005-06-13 | Coding device, decoding device, coding method, decoding method and their programs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005172038A JP2006352214A (en) | 2005-06-13 | 2005-06-13 | Coding device, decoding device, coding method, decoding method and their programs |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006352214A true JP2006352214A (en) | 2006-12-28 |
Family
ID=37647627
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005172038A Pending JP2006352214A (en) | 2005-06-13 | 2005-06-13 | Coding device, decoding device, coding method, decoding method and their programs |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006352214A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004072484A (en) * | 2002-08-07 | 2004-03-04 | Canon Inc | Image processing method and image processor |
JP2004341090A (en) * | 2003-05-14 | 2004-12-02 | Fuji Xerox Co Ltd | Data processor, image data file, data processing method, and program |
JP2004363990A (en) * | 2003-06-05 | 2004-12-24 | Ricoh Co Ltd | Image falsification detecting apparatus and restoring method of storage data thereof |
-
2005
- 2005-06-13 JP JP2005172038A patent/JP2006352214A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004072484A (en) * | 2002-08-07 | 2004-03-04 | Canon Inc | Image processing method and image processor |
JP2004341090A (en) * | 2003-05-14 | 2004-12-02 | Fuji Xerox Co Ltd | Data processor, image data file, data processing method, and program |
JP2004363990A (en) * | 2003-06-05 | 2004-12-24 | Ricoh Co Ltd | Image falsification detecting apparatus and restoring method of storage data thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Lee et al. | High-payload image hiding with quality recovery using tri-way pixel-value differencing | |
US6694041B1 (en) | Halftone watermarking and related applications | |
JP4187749B2 (en) | Halftone watermarking and related applications | |
US20070127771A1 (en) | Image processing apparatus and method | |
US8595503B2 (en) | Method of self-authenticating a document while preserving critical content in authentication data | |
US7545938B2 (en) | Digital watermarking which allows tampering to be detected on a block-specific basis | |
WO2005094058A1 (en) | Printing medium quality adjusting system, examining watermark medium output device, watermark quality examining device, adjusted watermark medium output device, printing medium quality adjusting method, and examining watermark medium | |
JP2002325170A (en) | Image processing unit and its method, and program code, storage medium | |
CN110766594A (en) | Information hiding method and device, detection method and device and anti-counterfeiting tracing method | |
US7760399B2 (en) | Method and system for encoding color images to black-and-white bitmaps and decoding color images | |
Hel-Or | Watermarking and copyright labeling of printed images | |
JP2004173072A (en) | Code generator, image processor, code generation program, image processing program, and storage medium | |
JP4595014B2 (en) | Digital watermark embedding device and detection device | |
US7006256B2 (en) | Watermarked image generator and method of embedding watermarks into an input image | |
JP2008153824A (en) | Image processor, determination device, change device, and image processing method | |
JP4687263B2 (en) | Encoding device, decoding device, encoding method, decoding method, and programs thereof | |
JP2007194934A (en) | Image formation system, encoded data embedding system, printer, printed matter, image forming program, and recording medium | |
Roche et al. | Image watermarking based on the fractal transform: a draft demonstration | |
JP2007074362A (en) | Coding apparatus, decoding apparatus, coding method, decoding method, and program for them | |
JP2006352214A (en) | Coding device, decoding device, coding method, decoding method and their programs | |
JP2007081595A (en) | Encoder, decoder, encoding method, decoding method and their program | |
JP4735806B2 (en) | Encoding device, decoding device, and programs thereof | |
JP4753007B2 (en) | Image encoding apparatus, image decoding apparatus, and programs thereof | |
JP4465654B2 (en) | Image dictionary creation device, encoding device, encoding method and program thereof | |
JP4753006B2 (en) | Image encoding apparatus, image decoding apparatus, and programs thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080317 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20091119 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20091126 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100122 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20100127 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100412 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100611 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20101008 |