JP4683375B2 - Encoding device, decoding device, encoding method, decoding method, and programs thereof - Google Patents

Encoding device, decoding device, encoding method, decoding method, and programs thereof Download PDF

Info

Publication number
JP4683375B2
JP4683375B2 JP2005072568A JP2005072568A JP4683375B2 JP 4683375 B2 JP4683375 B2 JP 4683375B2 JP 2005072568 A JP2005072568 A JP 2005072568A JP 2005072568 A JP2005072568 A JP 2005072568A JP 4683375 B2 JP4683375 B2 JP 4683375B2
Authority
JP
Japan
Prior art keywords
density
shape
image
pattern
binary
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
JP2005072568A
Other languages
Japanese (ja)
Other versions
JP2006261740A (en
Inventor
雅則 関野
俊一 木村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2005072568A priority Critical patent/JP4683375B2/en
Publication of JP2006261740A publication Critical patent/JP2006261740A/en
Application granted granted Critical
Publication of JP4683375B2 publication Critical patent/JP4683375B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、入力された多値画像を構成する複数の画像要素とこの画像要素の識別情報とを互いに対応付ける画像辞書を作成し、作成された画像辞書を符号化処理に適用する符号化装置及び符号化方法に関する。   The present invention creates an image dictionary that associates a plurality of image elements constituting an input multi-valued image with identification information of the image elements, and applies the created image dictionary to an encoding process, and The present invention relates to an encoding method.

例えば、非特許文献1は、画像要素を効率的に符号化するJBIG2を開示する。JBIG2では、ジェネリック領域(Generic Region)の符号化処理に加えて、テキスト領域(Text Region)の符号化処理等が規定されている。
しかしながら、非特許文献1に開示された方法は、重なり合う複数の画像要素の符号化処理及び符号化方法を考慮していない。
For example, Non-Patent Document 1 discloses JBIG2 that efficiently encodes image elements. In JBIG2, in addition to encoding processing of a generic region (Generic Region), encoding processing of a text region (Text Region) is defined.
However, the method disclosed in Non-Patent Document 1 does not consider the encoding process and encoding method for a plurality of overlapping image elements.

ITU-T Recommendation T.88 (02/00),「Lossy/lossless coding of bi-level images」,[online」,平成11年,ITU−T,[平成17年2月21日検索],インターネット<URL:http://www.itu.int/rec/recommendation.asp?type=folders&lang=e&parent=T-REC-T.88>ITU-T Recommendation T.88 (02/00), “Lossy / lossless coding of bi-level images”, [online], 1999, ITU-T, [searched on February 21, 2005], Internet < URL: http://www.itu.int/rec/recommendation.asp?type=folders&lang=e&parent=T-REC-T.88>

本発明は、上述した背景からなされたものであり、重なり合う複数の画像要素を、画質劣化を抑えて符号化する符号化装置及び符号化方法を提供することを目的とする。   The present invention has been made from the above-described background, and an object thereof is to provide an encoding apparatus and an encoding method for encoding a plurality of overlapping image elements while suppressing deterioration in image quality.

上記目的を達成するために、本発明にかかる第1の符号化装置は、二値の画素から構成される形状パターンと、濃度値に対応して網点が規則正しく配置された二値濃度パターンとから構成された画像要素であって、該画像要素を複数受け付ける受付手段と、前記受付手段により受け付けられた複数の画像要素の形状パターンを符号化する形状符号化手段と、前記受付手段により受け付けられた複数の画像要素が互いに重なる場合、いずれかの画像要素について、形状パターンを構成する二値の画素の値を反転する形状反転手段と、前記受付手段により受け付けられた複数の画像要素の二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記受付手段により受け付けられた複数の画像要素の二値濃度パターンを符号化する濃度符号化手段とを有する。 In order to achieve the above object, a first encoding device according to the present invention includes a shape pattern composed of binary pixels, a binary density pattern in which halftone dots are regularly arranged corresponding to density values, and an image element consists of a receiving means for receiving a plurality of said image elements, the shape coding means for coding the shape pattern of a plurality of image elements received by said receiving means is accepted by said accepting means When a plurality of image elements overlap each other, for any one of the image elements, a shape reversing unit that inverts the value of a binary pixel constituting the shape pattern, and a binary of the plurality of image elements received by the receiving unit and density pattern, by using the binary density pattern identification information and each other the associated concentrations dictionary that identifies a plurality of images received by said receiving means And a concentration encoding means for encoding the binary density pattern of the unit.

本発明にかかる第2の符号化装置は、二値の画素から構成される形状パターンと、濃度値に対応して網点が規則正しく配置された二値濃度パターンとから構成された画像要素であって、該画像要素を複数受け付ける受付手段と、前記受付手段により受け付けられた複数の画像要素の形状パターンを符号化する形状符号化手段と、前記受付手段により受け付けられた複数の画像要素の二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記受付手段により受け付けられた複数の画像要素の二値濃度パターンを符号化する濃度符号化手段と、前記受付手段により受け付けられた複数の画像要素が互いに重なる場合、いずれかの画像要素について、二値濃度パターンを反転する濃度反転手段とを有する。 A second encoding device according to the present invention is an image element composed of a shape pattern composed of binary pixels and a binary density pattern in which halftone dots are regularly arranged corresponding to the density values. Te, a receiving means for receiving a plurality of said image elements, the shape coding means for coding the shape pattern of a plurality of image elements received by the receiving unit, the two values of a plurality of image elements received by said receiving means Density coding for encoding binary density patterns of a plurality of image elements received by the accepting means using a density dictionary in which density patterns and identification information for identifying the binary density patterns are associated with each other If a unit, a plurality of image elements received by said receiving means overlap each other, for any image element, density inversion hand for inverting the binary density pattern With the door.

本発明にかかる第1の復号化装置は、複数の画像要素に関する形状情報と濃度情報とを含む符号データを受け付ける受付手段と、前記受付手段により受け付けられた符号データに含まれる形状情報を復号化し、前記複数の画像要素それぞれについて、二値の画素から構成される形状パターン又はこの形状パターンを構成する二値の画素の値を反転した反転形状パターンを取得する形状復号化手段と、画像要素の濃度値に対応して網点が規則正しく配置された二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記複数の画像要素それぞれについて、前記受付手段により受け付けられた符号データに含まれる濃度情報を復号化し、前記複数の画像要素それぞれの濃度値に対応する二値濃度パターンを取得する濃度復号化手段と、前記形状復号化手段により復号化された形状情報と、前記濃度復号化手段により復号化された濃度情報とを用いて、前記複数の画像要素それぞれの画像データを生成するデータ生成手段とを有する。 A first decoding device according to the present invention includes a receiving unit that receives code data including shape information and density information related to a plurality of image elements, and decodes shape information included in the code data received by the receiving unit. , For each of the plurality of image elements, a shape decoding means for obtaining a shape pattern composed of binary pixels or an inverted shape pattern obtained by inverting the values of the binary pixels constituting the shape pattern; and For each of the plurality of image elements , using a density dictionary in which binary density patterns in which halftone dots are regularly arranged corresponding to density values and identification information for identifying the binary density patterns are associated with each other , Decoding density information included in the code data received by the receiving means, and binary corresponding to the density values of each of the plurality of image elements A density decoding means for obtaining a degree pattern, and shape information decoded by the shape decoding means, wherein by using the decoded density information by the concentration decoding means, said plurality of image elements each image Data generating means for generating data.

好適には、前記データ生成手段は、前記形状復号化手段により復号化された反転形状パターンと、前記濃度復号化手段により取得された複数の二値濃度パターンのいずれかとを用いて、前記複数の画像要素のいずれかの画像データを生成する。
好適には、前記データ生成手段は、前記データ生成手段は、前記形状復号化手段により復号化された形状パターンと、前記濃度復号化手段により取得された複数の二値濃度パターンのいずれかとを用いて、前記複数の画像要素のうち第1の画像要素の画像データを生成し、前記形状復号化手段により復号化された反転形状パターンと、前記濃度復号化手段により取得された複数の二値濃度パターンの他のいずれかとを用いて、前記複数の画像要素のうち第2の画像要素の画像データを生成する。
Preferably, the data generation means uses the inverted shape pattern decoded by the shape decoding means and any of the plurality of binary density patterns acquired by the density decoding means. Generate image data of any of the image elements.
Preferably, the data generation means uses the shape pattern decoded by the shape decoding means and any one of a plurality of binary density patterns acquired by the density decoding means. The image data of the first image element among the plurality of image elements is generated, and the inverted shape pattern decoded by the shape decoding unit and the plurality of binary densities acquired by the density decoding unit Image data of a second image element among the plurality of image elements is generated using any other pattern.

好適には、前記データ生成手段は、前記濃度復号化手段により取得された複数の二値濃度パターンのいずれかを少なくとも2回用いて画像要素の画像データを生成する。
好適には、前記データ生成手段は、前記受付手段により受け付けられた符号データに対応する画像データと、前記濃度復号化手段により取得された複数の二値濃度パターンのうち第1の二値濃度パターンとを排他的論理和演算し、この排他的論理和演算後の画像データと、前記形状復号化手段により復号化されたパターンのうち前記第1の二値濃度パターンに対応する画像要素の形状パターンとを積演算し、この積演算後の画像データと、前記濃度復号化手段により取得された複数の二値濃度パターンのうち第2の二値濃度パターンとを排他的論理和演算し、この排他的論理和演算後の画像データと、前記形状復号化手段により復号化されたパターンのうち前記第2の二値濃度パターンに対応する画像要素の反転形状パターンとを積演算し、この積演算後の画像データと、前記第2の二値濃度パターンとを排他的論理和演算する。
Preferably, the data generation unit generates image data of an image element using any one of a plurality of binary density patterns acquired by the density decoding unit at least twice.
Preferably, the data generating means includes image data corresponding to the code data received by the receiving means, and a first binary density pattern among a plurality of binary density patterns acquired by the density decoding means. The shape pattern of the image element corresponding to the first binary density pattern among the image data after the exclusive OR operation and the pattern decoded by the shape decoding means And performing exclusive OR operation on the image data after the product operation and the second binary density pattern among the plurality of binary density patterns acquired by the density decoding means. Product operation of the image data after the logical OR operation and the inverted shape pattern of the image element corresponding to the second binary density pattern among the patterns decoded by the shape decoding means, And image data after product operation, XORing said second binary density pattern.

本発明にかかる第2の復号化装置は、複数の画像要素に関する形状情報と濃度情報とを含む符号データを受け付ける受付手段と、前記受付手段により受け付けられた符号データに含まれる形状情報を復号化し、前記複数の画像要素それぞれについて、二値の画素から構成される画像要素の形状パターン又はこの形状パターンを構成する二値の画素の値を反転した反転形状パターンを取得する形状復号化手段と、画像要素の濃度値に対応して網点が規則正しく配置された二値濃度パターンと、この二値濃度パターンを反転した反転二値濃度パターンと、これらのパターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記複数の画像要素それぞれについて、前記受付手段により受け付けられた符号データに含まれる濃度情報を復号化し、前記複数の画像要素それぞれの濃度値に対応する二値濃度パターン又は反転二値濃度パターンを取得する濃度復号化手段と、前記形状復号化手段により復号化された形状情報と、前記濃度復号化手段により復号化された濃度情報とを用いて、前記複数の画像要素それぞれの画像データを生成するデータ生成手段とを有する。 A second decoding device according to the present invention includes a receiving unit that receives code data including shape information and density information related to a plurality of image elements, and decodes shape information included in the code data received by the receiving unit. , For each of the plurality of image elements, shape decoding means for obtaining an image element shape pattern composed of binary pixels or an inverted shape pattern obtained by inverting the values of binary pixels constituting the shape pattern; A binary density pattern in which halftone dots are regularly arranged corresponding to the density values of image elements, an inverted binary density pattern obtained by inverting the binary density pattern, and identification information for identifying these patterns are associated with each other. was using the density dictionary, for each of the plurality of image elements, density information included in the code data received by said receiving means Density decoding means for decoding and obtaining binary density patterns or inverted binary density patterns corresponding to density values of each of the plurality of image elements, shape information decoded by the shape decoding means, and the density Data generation means for generating image data of each of the plurality of image elements using density information decoded by the decoding means.

本発明にかかる第1のプログラムは、コンピュータを含む符号化装置において、二値の画素から構成される形状パターンと、濃度値に対応して網点が規則正しく配置された二値濃度パターンとから構成された画像要素であって、該画像要素複数受け付ける受付ステップと、前記受け付けられた複数の画像要素の形状パターンを符号化する形状符号化ステップと、前記受け付けられた複数の画像要素が互いに重なる場合、いずれかの画像要素について、形状パターンを構成する二値の画素の値を反転する形状反転ステップと、前記受け付けられた複数の画像要素の二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記受け付けられた複数の画像要素の二値濃度パターンを符号化する濃度符号化ステップとを前記符号化装置のコンピュータに実行させる。 A first program according to the present invention includes a shape pattern composed of binary pixels and a binary density pattern in which halftone dots are regularly arranged corresponding to density values in an encoding apparatus including a computer. an image element is an accepting step of accepting a plurality of the image elements, the shape encoding step for encoding the shape pattern of a plurality of image elements that are accepted, the plurality of image elements accepted overlap each other In this case, for any one of the image elements, a shape inversion step for inverting the values of the binary pixels constituting the shape pattern, the binary density patterns of the plurality of received image elements, and the binary density pattern are identified. using the density dictionary identification information is associated with each other to, to encode the binary density pattern of a plurality of image elements the accepted To perform the concentration encoding step to the computer of the encoding device.

本発明にかかる第2のプログラムは、コンピュータを含む符号化装置において、二値の画素から構成される形状パターンと、濃度値に対応して網点が規則正しく配置された二値濃度パターンとから構成された画像要素であって、該画像要素複数受け付ける受付ステップと、前記受け付けられた複数の画像要素の形状パターンを符号化する形状符号化ステップと、前記受け付けられた複数の画像要素の二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記受け付けられた複数の画像要素の二値濃度パターンを符号化する濃度符号化ステップと、前記受け付けられた複数の画像要素が互いに重なる場合、いずれかの画像要素について、二値濃度パターンを反転する濃度反転ステップとを前記符号化装置のコンピュータに実行させる。 A second program according to the present invention includes, in an encoding device including a computer, a shape pattern composed of binary pixels and a binary density pattern in which halftone dots are regularly arranged corresponding to density values. an image element is an accepting step of accepting a plurality of the image elements, the shape encoding step of encoding the shape pattern of a plurality of image elements in which the accepted, binary plurality of image elements the accepted A density encoding step for encoding binary density patterns of the plurality of received image elements using a density dictionary in which density patterns and identification information for identifying the binary density patterns are associated with each other; If multiple image elements the accepted overlap each other, for any image element, density inversion step of inverting the binary density pattern The causing a computer to execute the encoding device.

本発明にかかる第3のプログラムは、コンピュータを含む復号化装置において、コンピュータを含む復号化装置において、複数の画像要素に関する形状情報と濃度情報とを含む符号データを受け付ける受付ステップと、前記受け付けられた符号データに含まれる形状情報を復号化し、前記複数の画像要素それぞれについて、二値の画素から構成される形状パターン又はこの形状パターンを構成する二値の画素の値を反転した反転形状パターンを取得する形状復号化ステップと、画像要素の濃度値に対応して網点が規則正しく配置された二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記複数の画像要素それぞれについて、前記受付手段により受け付けられた符号データに含まれる濃度情報を復号化し、前記複数の画像要素それぞれの濃度値に対応する二値濃度パターンを取得する濃度復号化ステップと、前記復号化された形状情報と、前記復号化された濃度情報とを用いて、前記複数の画像要素それぞれの画像データを生成するデータ生成ステップを前記復号化装置のコンピュータに実行させる。 According to a third program of the present invention, in a decoding device including a computer, in the decoding device including the computer, a reception step of receiving code data including shape information and density information regarding a plurality of image elements; The shape information included in the encoded data is decoded, and for each of the plurality of image elements, a shape pattern constituted by binary pixels or an inverted shape pattern obtained by inverting the values of the binary pixels constituting the shape pattern is obtained. A density dictionary in which a shape decoding step to be acquired, a binary density pattern in which halftone dots are regularly arranged corresponding to density values of image elements, and identification information for identifying the binary density pattern are associated with each other. using, for each of the plurality of image elements, included in the code data received by said receiving means A density decoding step for decoding density information and obtaining a binary density pattern corresponding to each density value of the plurality of image elements, the decoded shape information, and the decoded density information are used. And causing the computer of the decoding device to execute a data generation step of generating image data of each of the plurality of image elements.

本発明にかかる第4のプログラムは、コンピュータを含む復号化装置において、複数の画像要素に関する形状情報と濃度情報とを含む符号データを受け付ける受付ステップと、前記受け付けられた符号データに含まれる形状情報を復号化し、前記複数の画像要素それぞれについて、二値の画素から構成される画像要素の形状パターン又はこの形状パターンを構成する二値の画素の値を反転した反転形状パターンを取得する形状復号化ステップと、画像要素の濃度値に対応して網点が規則正しく配置された二値濃度パターンと、この二値濃度パターンを反転した反転二値濃度パターンと、これらのパターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記複数の画像要素それぞれについて、前記受け付けられた符号データに含まれる濃度情報を復号化し、前記複数の画像要素それぞれの濃度値に対応する二値濃度パターン又は反転二値濃度パターンを取得する濃度復号化ステップと、前記復号化された形状情報と、前記復号化された濃度情報とを用いて、前記複数の画像要素それぞれの画像データを生成するデータ生成ステップとを前記復号化装置のコンピュータに実行させる。 According to a fourth program of the present invention, in a decoding device including a computer, a reception step of receiving code data including shape information and density information regarding a plurality of image elements, and shape information included in the received code data Decoding for each of the plurality of image elements to obtain a shape pattern of an image element constituted by binary pixels or an inverted shape pattern obtained by inverting the values of binary pixels constituting the shape pattern A step, a binary density pattern in which halftone dots are regularly arranged corresponding to the density values of the image elements, an inverted binary density pattern obtained by inverting the binary density pattern, and identification information for identifying these patterns with the associated concentrations dictionary together, for each of the plurality of image elements, the accepted code data A density decoding step of decoding density information included and obtaining a binary density pattern or an inverted binary density pattern corresponding to density values of each of the plurality of image elements; the decoded shape information; and the decoding Using the converted density information, the computer of the decoding apparatus executes a data generation step of generating image data of each of the plurality of image elements.

本発明の符号化装置によれば、重なり合う複数の画像要素を含む画像の符号データを、高画質かつ高圧縮率で生成することができる。   According to the encoding apparatus of the present invention, code data of an image including a plurality of overlapping image elements can be generated with high image quality and high compression rate.

まず、本発明の理解を助けるために、その背景及び概略を説明する。
図1は、JBIG2に基づく符号化処理及び復号化処理を例示する図であり、図1(A)は、符号化処理を示し、図1(B)は、復号化処理を示す。
図1(A)に示すように、多値の入力画像は、形状情報と濃度情報とに分離され、形状情報及び濃度情報がそれぞれ符号化される。入力画像が二値化されると、この入力画像に含まれる各画像要素(オブジェクト)は、面積階調法により擬似的に階調表現された二値画像となる。
このような擬似階調表現された二値画像の濃度情報は、JBIG2のハーフトーン領域符号化により符号化される。中間調の画像要素(本例では、丸及び三角)は、濃度値(階調値)に応じた複数の網点画像(二値)で構成され、擬似的に階調表現される。網点画像の大きさは、濃度値(階調値)に対応している。JBIG2のハーフトーン領域符号化処理は、これら網点画像を濃度値に対応付けて画像辞書に登録し、網点パターンで構成された二値画像を符号化する。符号データは、入力画像における各領域の濃度値と、この濃度値が存在する位置を示す位置情報とで構成される。
First, in order to help understanding of the present invention, its background and outline will be described.
FIG. 1 is a diagram illustrating an encoding process and a decoding process based on JBIG2. FIG. 1 (A) illustrates the encoding process, and FIG. 1 (B) illustrates the decoding process.
As shown in FIG. 1A, the multi-value input image is separated into shape information and density information, and the shape information and density information are encoded respectively. When the input image is binarized, each image element (object) included in the input image becomes a binary image expressed in a pseudo gradation by the area gradation method.
The density information of such a binary image expressed in pseudo gradation is encoded by JBIG2 halftone area encoding. A halftone image element (in this example, a circle and a triangle) is composed of a plurality of halftone images (binary values) corresponding to density values (tone values), and is expressed in a pseudo gradation. The size of the halftone image corresponds to the density value (tone value). In the halftone area encoding process of JBIG2, these halftone images are registered in the image dictionary in association with density values, and a binary image composed of a halftone pattern is encoded. The code data includes a density value of each region in the input image and position information indicating a position where the density value exists.

各画像要素の形状情報は、JBIG2のテキスト領域符号化又はジェネリック領域符号化により符号化される。テキスト領域符号化処理では、入力画像において出現する類型的な画像パターンを、この画像パターンを識別するインデクスに対応付けて画像辞書に登録し、この画像辞書を用いて、入力画像を符号化する。また、ジェネリック領域符号化は、入力画像を、画像辞書等を作成することなく符号化する方式である。より具体的には、ジェネリック領域符号化は、局所的な画素の並びの統計(例えば、コンテクスト)を利用して、入力画像を符号化する。   The shape information of each image element is encoded by JBIG2 text area encoding or generic area encoding. In the text area encoding process, a typical image pattern appearing in an input image is registered in an image dictionary in association with an index for identifying the image pattern, and the input image is encoded using the image dictionary. Generic region coding is a method of coding an input image without creating an image dictionary or the like. More specifically, generic region encoding encodes an input image using local pixel array statistics (for example, context).

図1(B)に示すように、復号化処理は、論理和(OR)演算と論理積(AND)演算とによりなされる。復号化処理は、濃度情報の符号データに基づいて、濃度辞書に登録された網点画像を論理和演算により配置して、形状情報の符号データに基づいて、画像要素の形状を示す画像形状を作成し、生成される画像に対して画像形状を積演算することによりなされる。しかしながら、複数の画像要素を復号化する場合には、画像要素が重なる領域が白抜き領域となってしまうことがある。   As shown in FIG. 1B, the decoding process is performed by a logical sum (OR) operation and a logical product (AND) operation. In the decoding process, the halftone image registered in the density dictionary is arranged by logical sum operation based on the code data of the density information, and the image shape indicating the shape of the image element is obtained based on the code data of the shape information. This is done by calculating the product of the image shape for the generated image. However, when decoding a plurality of image elements, an area where the image elements overlap may become a white area.

[第1実施形態]
本発明にかかる画像処理装置2の第1の実施形態を説明する。
図2は、本実施形態における符号化処理及び復号化処理の概略を説明する図であり、図2(A)は、符号化処理を示し、図2(B)は、復号化処理を示す。
図2(A)に示すように、本実施形態における画像処理装置2は、入力画像を構成する画像要素を、その形状情報と、濃度情報とに分離し、形状情報に基づいて画像形状と、少なくとも1つの画像形状の値を反転した反転画像形状とを符号化し、濃度情報に基づいてそれぞれの網点画像を符号化する。反転画像形状は、画像形状と同様に、テキスト領域符号化又はジェネリック領域符号化により符号化される。
[First Embodiment]
A first embodiment of an image processing apparatus 2 according to the present invention will be described.
2A and 2B are diagrams for explaining the outline of the encoding process and the decoding process in the present embodiment. FIG. 2A shows the encoding process, and FIG. 2B shows the decoding process.
As shown in FIG. 2 (A), the image processing apparatus 2 in the present embodiment separates the image elements constituting the input image into its shape information and density information, and based on the shape information, The inverted image shape obtained by inverting the value of at least one image shape is encoded, and each halftone image is encoded based on the density information. Similar to the image shape, the inverted image shape is encoded by text region encoding or generic region encoding.

図2(B)に示すように、画像要素の復号化処理は、排他的論理和(XOR)演算と論理積演算とによりなされる。復号化処理は、画像要素が重ねて描画される場合には、少なくとも2回の排他的論理和演算を行うことによりなされる。このように、複数の画像要素が形状情報と濃度情報とを分離して符号化され、排他的論理和演算を用いて復号化されるので、画像要素が重なり合う場合においても、画像要素は高い圧縮率で符号化され、適切に復号化されうる。   As shown in FIG. 2B, the image element decoding process is performed by an exclusive OR (XOR) operation and an AND operation. The decoding process is performed by performing at least two exclusive OR operations when image elements are drawn in an overlapping manner. In this way, since a plurality of image elements are encoded by separating shape information and density information and decoded using exclusive OR operation, the image elements are highly compressed even when they overlap. It can be coded at a rate and decoded appropriately.

[ハードウェア構成]
本実施形態における画像処理装置2のハードウェア構成を説明する。
図3は、本発明にかかる符号化方法及び復号化方法が適応される画像処理装置2のハードウェア構成を、制御装置20を中心に例示する図である。
図3に例示するように、画像処理装置2は、CPU202及びメモリ204などを含む制御装置20、通信装置22、HDD・CD装置などの記憶装置24、並びに、LCD表示装置あるいはCRT表示装置およびキーボード・タッチパネルなどを含むユーザインターフェース装置(UI装置)26を有する。
画像処理装置2は、例えば、後述する符号化プログラム4及び復号化プログラム5がプリンタドライバの一部としてインストールされた汎用コンピュータであり、通信装置22又は記憶装置24などを介して画像データを取得し、取得された画像データを符号化又は復号化してプリンタ装置10に送信する。また、画像処理装置2は、プリンタ装置10のスキャナ機能より光学的に読み取られた画像データを取得し、取得された画像データを符号化してもよい。
[Hardware configuration]
A hardware configuration of the image processing apparatus 2 in the present embodiment will be described.
FIG. 3 is a diagram illustrating the hardware configuration of the image processing apparatus 2 to which the encoding method and the decoding method according to the present invention are applied, centering on the control apparatus 20.
As illustrated in FIG. 3, the image processing apparatus 2 includes a control device 20 including a CPU 202 and a memory 204, a communication device 22, a storage device 24 such as an HDD / CD device, an LCD display device or a CRT display device, and a keyboard. A user interface device (UI device) 26 including a touch panel and the like is included.
The image processing device 2 is, for example, a general-purpose computer in which an encoding program 4 and a decoding program 5 described later are installed as part of a printer driver, and acquires image data via the communication device 22 or the storage device 24. The obtained image data is encoded or decoded and transmitted to the printer apparatus 10. Further, the image processing apparatus 2 may acquire image data optically read by the scanner function of the printer apparatus 10 and encode the acquired image data.

[符号化プログラム]
図4は、制御装置20(図3)により実行され、本発明にかかる符号化方法を実現する符号化プログラム4の機能構成を例示する図である。
図4に例示するように、符号化プログラム4は、ラスタ生成部400、画像辞書作成部420及び符号生成部440を有する。また、画像辞書作成部420は、形状抽出部422、網点画像抽出部424、インデクス付与部426及び形状反転部428を含み、符号生成部440は、形状情報符号化部442及び濃度情報符号化部444を含む。
なお、符号化プログラム4の全部又は一部の機能は、プリンタ装置10に設けられたASICなどにより実現されてもよい。
[Encoding program]
FIG. 4 is a diagram illustrating a functional configuration of the encoding program 4 that is executed by the control device 20 (FIG. 3) and implements the encoding method according to the present invention.
As illustrated in FIG. 4, the encoding program 4 includes a raster generation unit 400, an image dictionary creation unit 420, and a code generation unit 440. The image dictionary creation unit 420 includes a shape extraction unit 422, a halftone image extraction unit 424, an index assignment unit 426, and a shape inversion unit 428. The code generation unit 440 includes a shape information encoding unit 442 and a density information encoding unit. Part 444.
Note that all or some of the functions of the encoding program 4 may be realized by an ASIC provided in the printer apparatus 10 or the like.

符号化プログラム4において、ラスタ生成部400は、通信装置22又は記憶装置24などを介して取得されたPDL(Page Description Language)形式の画像データ(入力画像)を取得し、取得された入力画像の画像データを各色成分のラスタデータ(色成分画像)に変換し、このラスタデータにスクリーン処理を施して画像辞書作成部420及び符号生成部440に出力する。また、ラスタ生成部400は、PDL形式の画像データに基づいて、入力画像に含まれる画像要素(オブジェクト)の形状情報、位置情報及び画像要素の重畳情報を特定し、特定された画像要素の形状情報、位置情報及び重畳情報を画像辞書作成部420に対して出力する。
なお、符号化プログラム4は、スキャナなどにより光学的に読み取られた画像データ等のように予めラスタライズされた入力画像が入力される場合に、パターンマッチングなどにより画像要素の形状情報、位置情報及び重畳情報を特定してもよい。
In the encoding program 4, the raster generation unit 400 acquires image data (input image) in PDL (Page Description Language) format acquired via the communication device 22 or the storage device 24, and the acquired input image The image data is converted into raster data (color component image) of each color component, the raster data is subjected to screen processing, and output to the image dictionary creation unit 420 and the code generation unit 440. Further, the raster generation unit 400 specifies shape information, position information, and superimposition information of the image element included in the input image based on the image data in the PDL format, and the shape of the specified image element Information, position information, and superimposition information are output to the image dictionary creation unit 420.
Note that the encoding program 4 receives shape information, position information, and superimposition of image elements by pattern matching or the like when an input image rasterized in advance such as image data optically read by a scanner or the like is input. Information may be specified.

画像辞書作成部420は、ラスタ生成部400から入力された入力画像、画像要素の形状情報、位置情報及び重畳情報に基づいて、濃度情報の符号化処理に適用される濃度辞書710(図5を参照して後述)、及び、形状情報の符号化処理に適用する形状辞書720(図6を参照して後述)を作成し、作成された濃度辞書710及び形状辞書720を符号生成部440に出力する。
より具体的には、形状抽出部422は、ラスタ生成部400から入力された画像要素の形状情報及び重畳情報に基づいて、各色成分画像で出現する画像要素の形状を形状パターンとして抽出し、重なり合う画像要素であって上位に描画されるべき画像要素の形状を、形状反転部428に反転させて反転形状パターンを抽出する。本例の形状パターンは、形状(例えば、エッジ情報)のみからなり、濃度情報及び色情報を含まない。
形状反転部428は、形状抽出部422の制御により、画像要素の形状パターンの値を反転して、反転形状パターンを生成し、形状抽出部422に対して出力する。
The image dictionary creation unit 420 is based on the input image, shape information, position information, and superimposition information of the image element input from the raster generation unit 400, and a density dictionary 710 (see FIG. 5) applied to the density information encoding process. And a shape dictionary 720 (described later with reference to FIG. 6) to be applied to the shape information encoding process, and the generated density dictionary 710 and shape dictionary 720 are output to the code generation unit 440. To do.
More specifically, the shape extraction unit 422 extracts the shape of the image element appearing in each color component image as a shape pattern based on the shape information and superimposition information of the image element input from the raster generation unit 400 and overlaps them. The shape reversing unit 428 inverts the shape of the image element that is an image element to be drawn on the upper side, and extracts a reversed shape pattern. The shape pattern of this example consists only of a shape (for example, edge information) and does not include density information and color information.
The shape reversing unit 428 generates a reversed shape pattern by inverting the value of the shape pattern of the image element under the control of the shape extracting unit 422, and outputs it to the shape extracting unit 422.

網点画像抽出部424は、ラスタ生成部400から入力された入力画像(スクリーン処理が施された二値画像)に基づいて、各色成分画像で出現する網点パターンを抽出する。網点画像抽出部424により抽出される網点パターンは、画像要素の濃度値に対応した網点パターンであり、エッジ領域に存在するものを含まない。
インデクス付与部426は、形状抽出部422により抽出された形状パターン(反転形状パターンも含む)、及び、網点画像抽出部424により抽出された網点パターンに対して、それぞれのパターンを識別するインデクスを付与する。すなわち、インデクス付与部426は、形状パターンにインデクスを対応付けて形状辞書720(図6)を生成し、網点パターンにインデクス(濃度値など)を対応付けて濃度辞書710(図5)を生成する。インデクスは、例えば、入力画像毎に個別に生成される識別情報であり、入力画像から画像パターンが抽出される順番でその画像パターンに付与されるシリアル番号等であってもよい。
The halftone dot image extraction unit 424 extracts a halftone dot pattern that appears in each color component image based on the input image (binary image subjected to screen processing) input from the raster generation unit 400. The halftone dot pattern extracted by the halftone dot image extraction unit 424 is a halftone dot pattern corresponding to the density value of the image element, and does not include those existing in the edge region.
The index assigning unit 426 is an index for identifying each pattern with respect to the shape pattern (including the inverted shape pattern) extracted by the shape extracting unit 422 and the halftone dot pattern extracted by the halftone dot image extracting unit 424. Is granted. That is, the index assigning unit 426 generates a shape dictionary 720 (FIG. 6) by associating an index with a shape pattern, and generates a density dictionary 710 (FIG. 5) by associating an index (density value, etc.) with a halftone dot pattern. To do. The index is, for example, identification information generated individually for each input image, and may be a serial number assigned to the image pattern in the order in which the image pattern is extracted from the input image.

符号生成部440は、画像辞書作成部420から入力された濃度辞書710及び形状辞書720に基づいて、入力画像に含まれる画像要素を符号化し、符号化された画像要素の符号データ及び画像辞書(濃度辞書710及び形状辞書720)を記憶装置24(図3)又はプリンタ装置10(図3)などに出力する。
より具体的には、形状情報符号化部442は、形状辞書720に登録された形状パターンと、各色成分画像に含まれる部分画像とを比較して、いずれかの画像パターンと一致又は類似する部分画像のデータを、この形状パターンに対応するインデクス及びこの部分画像の位置情報で置換する。さらに、形状情報符号化部442は、部分画像と置き換えられたインデクス及び位置情報並びに形状辞書720等をエントロピー符号化(ハフマン符号化、算術符号化又はLZ符号化など)により符号化してもよい。また、形状情報符号化部442は、画像の重畳情報に基づいて、画像要素が重なり合う場合には、この画像要素の値を反転した画像要素を符号化する。
The code generation unit 440 encodes the image elements included in the input image based on the density dictionary 710 and the shape dictionary 720 input from the image dictionary creation unit 420, and the encoded image element code data and image dictionary ( The density dictionary 710 and the shape dictionary 720) are output to the storage device 24 (FIG. 3) or the printer device 10 (FIG. 3).
More specifically, the shape information encoding unit 442 compares the shape pattern registered in the shape dictionary 720 with the partial images included in each color component image, and matches or resembles any image pattern. The image data is replaced with the index corresponding to the shape pattern and the position information of the partial image. Furthermore, the shape information encoding unit 442 may encode the index and position information replaced with the partial image, the shape dictionary 720, and the like by entropy encoding (Huffman encoding, arithmetic encoding, LZ encoding, or the like). Further, based on the superimposition information of the image, the shape information encoding unit 442 encodes an image element obtained by inverting the value of the image element when the image elements overlap.

濃度情報符号化部444は、濃度辞書710に登録された網点パターン(濃度値)及びインデクスに基づいて、各色成分画像に含まれる部分画像の濃度情報を符号化する。例えば、濃度情報符号化部444は、部分画像の濃度情報の符号データとして、この部分画像の領域を示す位置情報と、この部分画像の濃度値(すなわち、インデクス)とを互いに対応付けて出力する。   The density information encoding unit 444 encodes the density information of the partial image included in each color component image based on the halftone dot pattern (density value) and the index registered in the density dictionary 710. For example, the density information encoding unit 444 outputs position information indicating the area of the partial image and the density value (that is, index) of the partial image in association with each other as code data of the density information of the partial image. .

図5は、濃度情報の符号化処理を説明する図であり、図5(A)は、入力画像600を例示し、図5(B)は、この入力画像600に対応する濃度辞書710を例示し、図5(C)は、この入力画像600の濃度情報の符号データを例示する。
図5(A)に例示するように、入力画像600には、複数の中間調濃度値が含まれる場合がある。本例では、画像要素「三角」の中間調濃度値と、画像要素「丸」の中間調濃度値とが互いに異なる。このような場合に、網点画像抽出部424(図4)は、それぞれの中間調濃度値に対応する網点パターンを抽出する。すなわち、網点画像抽出部424は、入力画像600において、互いに大きさの異なる網点パターン(エッジ領域の網点パターンを除く)が存在する場合に、図5(B)に例示するように、それぞれの網点パターンを抽出し濃度辞書710に登録する。また、網点パターンの形状は色成分画像毎に異なる場合もあるため、網点画像抽出部424は、入力画像600(複数の色成分画像)において、互いに形状の異なる網点パターン(エッジ領域の網点パターンを除く)が存在する場合に、それぞれの網点パターンを抽出し濃度辞書710に登録する。
5A and 5B are diagrams for explaining density information encoding processing. FIG. 5A illustrates an input image 600, and FIG. 5B illustrates a density dictionary 710 corresponding to the input image 600. FIG. 5C illustrates the code data of the density information of the input image 600.
As illustrated in FIG. 5A, the input image 600 may include a plurality of halftone density values. In this example, the halftone density value of the image element “triangle” and the halftone density value of the image element “circle” are different from each other. In such a case, the halftone image extraction unit 424 (FIG. 4) extracts a halftone pattern corresponding to each halftone density value. That is, when the halftone dot image extraction unit 424 has halftone dot patterns (except for the halftone dot pattern of the edge region) having different sizes in the input image 600, as illustrated in FIG. Each halftone dot pattern is extracted and registered in the density dictionary 710. In addition, since the shape of the halftone dot pattern may be different for each color component image, the halftone dot image extraction unit 424 uses a halftone dot pattern (edge region region) having different shapes in the input image 600 (a plurality of color component images). If a dot pattern is excluded, each dot pattern is extracted and registered in the density dictionary 710.

インデクス付与部426(図4)は、図5(B)に例示するように、網点画像抽出部424により抽出される各網点パターンに対して、これらの網点パターンを識別するインデクス(識別情報)を付与して濃度辞書710を完成させる。
濃度情報符号化部444(図4)は、上記のように作成された濃度辞書710に基づいて、入力画像の濃度情報を符号化する。具体的には、図5(C)に例示するように、濃度情報符号化部444は、濃度辞書710に登録されている網点パターン(すなわち、濃度値)を有する領域を特定し、特定された領域の位置情報と、この領域の網点パターンに対応するインデクスとの対を、濃度情報の符号データとする。
As illustrated in FIG. 5B, the index assigning unit 426 (FIG. 4), for each halftone dot pattern extracted by the halftone dot image extracting unit 424, identifies an index (identification). Information) is added to complete the density dictionary 710.
The density information encoding unit 444 (FIG. 4) encodes the density information of the input image based on the density dictionary 710 created as described above. Specifically, as illustrated in FIG. 5C, the density information encoding unit 444 specifies and specifies an area having a halftone dot pattern (that is, a density value) registered in the density dictionary 710. A pair of the position information of the area and the index corresponding to the halftone dot pattern of this area is used as code data of the density information.

図6は、形状情報の符号化処理を説明する図であり、図6(A)は、入力画像600を例示し、図6(B)は、この入力画像600に対応する形状辞書720を例示し、図6(C)は、この入力画像600の形状情報の符号データを例示する。
図6(A)に例示するように、入力画像600には、形状の異なる複数の画像要素が含まれる場合がある。本例では、画像要素「三角」の形状と、画像要素「丸」の形状とが互いに異なる。
形状抽出部422(図4)は、それぞれの画像形状を示す形状パターンを抽出する。すなわち、形状抽出部422は、入力画像600において、互いに輪郭形状の異なる画像要素が複数存在する場合に、図6(B)に例示するように、それぞれの画像要素の形状を形状パターンとして抽出し形状辞書720に登録する。また、形状抽出部422は、重畳情報に基づいて、第1の画像要素「三角」の形状と重なる第2の画像要素「丸」の画像形状を、形状反転部428に反転させて反転形状パターンを抽出し、形状辞書720に登録する。形状反転部428は、形状抽出部422の制御により、画像要素「丸」の形状パターンを反転し、形状抽出部422に対して出力する。
なお、カラー画像を構成する複数の色成分画像の間では、共通の画像形状が存在する場合があり(例えば、画像要素「三角」がカラー画像である場合に、C色の画像要素「三角」、M色の画像要素「三角」、Y色の画像要素「三角」、及び、K色の画像要素「三角」が存在しうる)、形状抽出部422は、複数の色成分画像で共通する画像形状を1つの形状パターンとして形状辞書720に登録する。
6A and 6B are diagrams illustrating the encoding process of shape information. FIG. 6A illustrates an input image 600, and FIG. 6B illustrates a shape dictionary 720 corresponding to the input image 600. FIG. 6C illustrates the code data of the shape information of the input image 600.
As illustrated in FIG. 6A, the input image 600 may include a plurality of image elements having different shapes. In this example, the shape of the image element “triangle” is different from the shape of the image element “circle”.
The shape extraction unit 422 (FIG. 4) extracts a shape pattern indicating each image shape. That is, when there are a plurality of image elements having different contour shapes in the input image 600, the shape extraction unit 422 extracts the shape of each image element as a shape pattern as illustrated in FIG. 6B. Register in the shape dictionary 720. In addition, the shape extraction unit 422 causes the shape inversion unit 428 to invert the image shape of the second image element “circle” that overlaps the shape of the first image element “triangle” based on the superposition information, so that the inverted shape pattern Are extracted and registered in the shape dictionary 720. The shape inversion unit 428 inverts the shape pattern of the image element “circle” under the control of the shape extraction unit 422, and outputs it to the shape extraction unit 422.
Note that there may be a common image shape among a plurality of color component images constituting a color image (for example, when the image element “triangle” is a color image, the C color image element “triangle”). , M-color image element “triangle”, Y-color image element “triangle”, and K-color image element “triangle” may exist), and the shape extraction unit 422 is an image common to a plurality of color component images The shape is registered in the shape dictionary 720 as one shape pattern.

インデクス付与部426(図4)は、図6(B)に例示するように、形状抽出部422により抽出される各形状パターン(「三角」及び「丸」)に対して、これらの形状パターンを識別するインデクス(識別情報)を付与して形状辞書720を完成させる。
形状情報符号化部442(図4)は、上記のように作成された形状辞書720に基づいて、入力画像の形状情報を符号化する。具体的には、図6(C)に例示するように、形状情報符号化部442は、形状辞書720に登録されている形状パターンと形状が略一致する画像要素を入力画像600で発見した場合に、この画像要素の領域を示す位置情報と、この画像要素と形状が一致する形状パターンのインデクスとの対を、形状情報の符号データとする。
As illustrated in FIG. 6B, the index assigning unit 426 (FIG. 4) applies these shape patterns to each shape pattern (“triangle” and “circle”) extracted by the shape extraction unit 422. An identification index (identification information) is assigned to complete the shape dictionary 720.
The shape information encoding unit 442 (FIG. 4) encodes the shape information of the input image based on the shape dictionary 720 created as described above. Specifically, as illustrated in FIG. 6C, when the shape information encoding unit 442 finds in the input image 600 an image element whose shape substantially matches the shape pattern registered in the shape dictionary 720. In addition, a pair of position information indicating the region of the image element and an index of a shape pattern whose shape matches that of the image element is used as code data of the shape information.

図7は、符号化プログラム4により生成される符号データ900を例示する図である。
図7に例示するように、符号データ900は、データの属性情報などが含まれたヘッダと、濃度辞書710及び形状辞書720からなる画像辞書と、第1の画像要素(三角)の濃度情報の符号データに相当するハーフトーン領域符号と、第1の画像要素(三角)の形状情報の符号データに相当するテキスト領域符号(又はジェネリック領域符号)と、第2の画像要素(丸)のハーフトーン領域符号と、第2の画像要素(丸)の反転形状情報の符号データに相当するテキスト領域符号(又はジェネリック領域符号)と、2回目の第2の画像要素(丸)のハーフトーン領域符号とを含む。
濃度辞書710には、入力画像に含まれる網点パターンとこれらの網点パターンを識別するインデクス(濃度値など)とが互いに対応付けて登録されている。形状辞書720には、入力画像に含まれる画像要素の輪郭に相当する形状パターンと、この形状パターンを識別するインデクスとが互いに対応付けて登録されている。
FIG. 7 is a diagram illustrating code data 900 generated by the encoding program 4.
As illustrated in FIG. 7, the code data 900 includes a header including data attribute information, an image dictionary including a density dictionary 710 and a shape dictionary 720, and density information of the first image element (triangle). A halftone area code corresponding to code data, a text area code (or generic area code) corresponding to code data of shape information of the first image element (triangle), and a halftone of the second image element (circle) An area code, a text area code (or generic area code) corresponding to code data of the inverted shape information of the second image element (circle), and a second halftone area code of the second image element (circle) including.
In the density dictionary 710, halftone dot patterns included in the input image and indexes (density values and the like) for identifying these halftone dot patterns are registered in association with each other. In the shape dictionary 720, a shape pattern corresponding to the contour of an image element included in the input image and an index for identifying the shape pattern are registered in association with each other.

第1の画像要素及び第2の画像要素のハーフトーン領域符号には、入力画像に含まれる網点パターンに対応するインデクス(すなわち、濃度値)と、これらの網点パターン(濃度値)が存在する領域を示す位置情報との対が含まれている。
第1の画像要素のテキスト領域符号(又はジェネリック領域符号)には、入力画像に含まれる画像要素の形状に対応する形状パターンのインデクスと、これらの画像要素が存在する位置を示す位置情報との対が含まれている。
また、第2の画像要素のテキスト領域符号(又はジェネリック領域符号)には、入力画像に含まれる画像要素の形状の値を反転した反転形状パターンのインデクスと、これらの画像要素が存在する位置を示す位置情報との対が含まれている。
The halftone area codes of the first image element and the second image element have an index (that is, a density value) corresponding to the halftone dot pattern included in the input image and these halftone dot patterns (density values). A pair with position information indicating a region to be performed is included.
The text region code (or generic region code) of the first image element includes an index of a shape pattern corresponding to the shape of the image element included in the input image, and position information indicating a position where these image elements exist. A pair is included.
Further, the text area code (or generic area code) of the second image element includes an index of an inverted shape pattern obtained by inverting the shape value of the image element included in the input image, and a position where these image elements exist. A pair with the position information shown is included.

[符号化動作]
図8は、符号化プログラム4による符号化処理(S10)を示すフローチャートである。
図8に示すように、ステップ100(S100)において、ラスタ生成部400は、PDLファイルが入力画像600として入力されると、入力されたPDLファイルに基づいて、入力画像600に含まれる画像要素の形状情報、位置情報及び重畳情報を特定し、特定された画像要素の形状情報、位置情報及び重畳情報を画像辞書作成部420に対して出力する。
画像辞書作成部420の形状抽出部422は、ラスタ生成部400から入力された画像要素の形状情報、位置情報及び重畳情報に基づいて、入力画像600(複数の色成分画像)に存在する画像要素の輪郭に対応する形状パターンを決定する。また、形状抽出部422は、画像要素が重なって描画される場合には、画像要素の形状を反転した形状パターンを形状反転部428に抽出させる。
なお、本例の形状抽出部422は、PDLファイルに基づいて特定された形状情報を用いて、形状パターンを決定するが、これに限定されるものではなく、例えば、ラスタライズされた多値画像を既定の閾値で単純二値化することにより、形状パターンを決定してもよい。
[Encoding operation]
FIG. 8 is a flowchart showing the encoding process (S10) by the encoding program 4.
As shown in FIG. 8, in step 100 (S100), when the PDL file is input as the input image 600, the raster generation unit 400, based on the input PDL file, the image elements included in the input image 600. Shape information, position information, and superimposition information are specified, and shape information, position information, and superimposition information of the specified image element are output to the image dictionary creation unit 420.
The shape extraction unit 422 of the image dictionary creation unit 420 includes image elements existing in the input image 600 (a plurality of color component images) based on the shape information, position information, and superimposition information of the image elements input from the raster generation unit 400. The shape pattern corresponding to the contour of the is determined. In addition, when the image elements are drawn with overlapping image elements, the shape extraction unit 422 causes the shape inversion unit 428 to extract a shape pattern obtained by inverting the shape of the image element.
Note that the shape extraction unit 422 of this example determines the shape pattern using the shape information specified based on the PDL file, but is not limited to this. For example, a rasterized multi-value image is obtained. The shape pattern may be determined by simple binarization with a predetermined threshold.

また、ラスタ生成部400は、入力された入力画像600の画像データを各色成分のラスタデータに変換し、このラスタデータにスクリーン処理を施して画像辞書作成部420及び符号生成部440に出力する。   The raster generation unit 400 converts the input image data of the input image 600 into raster data of each color component, performs screen processing on the raster data, and outputs the raster data to the image dictionary creation unit 420 and the code generation unit 440.

ステップ102(S102)において、網点画像抽出部424は、ラスタ生成部400から入力された入力画像のラスタデータ(二値画像)の中から、網点パターンを抽出する。より具体的には、網点画像抽出部424は、複数の色成分画像のラスタデータ(スクリーン処理が施されたもの)の中から、エッジ領域の網点パターンを除去し、残った網点パターン群の中から、形状又は大きさの異なる網点パターンを選択する。   In step 102 (S102), the halftone image extraction unit 424 extracts a halftone dot pattern from the raster data (binary image) of the input image input from the raster generation unit 400. More specifically, the halftone dot image extraction unit 424 removes the halftone dot pattern of the edge region from the raster data (screen-processed) of a plurality of color component images, and the remaining halftone dot pattern. A halftone dot pattern having a different shape or size is selected from the group.

ステップ104(S104)において、インデクス付与部426は、形状抽出部422により抽出された形状パターン(反転形状パターンを含む)に対して、それぞれの形状パターンを識別するインデクスを付与することにより、形状辞書720を完成させる。
また、インデクス付与部426は、網点画像抽出部424により抽出された網点パターンに対して、それぞれの網点パターンを識別するインデクスを付与することにより、濃度辞書710を完成させる。
完成した形状辞書720は、形状情報符号化部442に入力され、完成した濃度辞書710は、濃度情報符号化部444に入力される。
In step 104 (S104), the index assigning unit 426 assigns an index for identifying each shape pattern to the shape pattern (including the inverted shape pattern) extracted by the shape extracting unit 422, thereby obtaining a shape dictionary. 720 is completed.
Further, the index assigning unit 426 completes the density dictionary 710 by assigning an index for identifying each halftone dot pattern to the halftone dot pattern extracted by the halftone dot image extracting unit 424.
The completed shape dictionary 720 is input to the shape information encoding unit 442, and the completed density dictionary 710 is input to the concentration information encoding unit 444.

ステップ106(S106)において、形状情報符号化部442は、形状辞書720に登録された形状パターンと、各色成分画像に含まれる画像要素とを比較して、いずれかの形状パターンと形状が一致又は類似する画像要素の形状情報として、この形状パターンに対応するインデクス及びこの画像要素の位置情報を出力する。   In step 106 (S106), the shape information encoding unit 442 compares the shape pattern registered in the shape dictionary 720 with the image element included in each color component image, and matches any shape pattern or shape. As the shape information of similar image elements, an index corresponding to the shape pattern and position information of the image elements are output.

ステップ108(S108)において、濃度情報符号化部444は、濃度辞書710に登録された各網点パターンに対応する濃度値それぞれの存在領域を特定し、各濃度値の存在領域を示す位置情報と、各濃度値に対応するインデクスとを、濃度情報として出力する。   In step 108 (S108), the density information encoding unit 444 specifies the existence area of each density value corresponding to each halftone dot pattern registered in the density dictionary 710, and includes position information indicating the existence area of each density value. The index corresponding to each density value is output as density information.

ステップ110(S110)において、符号生成部440は、形状情報符号化部442から出力された形状情報(形状パターン又は反転形状パターンに対応するインデクス及び位置情報)、濃度情報符号化部444から出力された濃度情報(濃度値に対応するインデクス及び位置情報)、形状辞書720、及び、濃度辞書710に対応するハフマン符号等を生成し、生成された符号データ(図7)を、形状情報、濃度情報、形状辞書720及び濃度辞書710の符号データとして出力する。   In step 110 (S110), the code generation unit 440 outputs the shape information (index and position information corresponding to the shape pattern or the inverted shape pattern) output from the shape information encoding unit 442 and the density information encoding unit 444. Density information (index and position information corresponding to the density value), a shape dictionary 720, a Huffman code corresponding to the density dictionary 710, and the like, and the generated code data (FIG. 7) as shape information, density information The code data of the shape dictionary 720 and the density dictionary 710 are output.

[復号化プログラム]
図9は、制御装置20(図3)により実行され、本発明にかかる復号化方法を実現する復号化プログラム5の機能構成を例示する図である。
図9に例示するように、復号化プログラム5は、復号処理部500、濃度復号部510、形状復号部520及び復号画像生成部530を有する。
なお、復号化プログラム5の全部又は一部の機能は、プリンタ装置10に設けられたASICなどにより実現されてもよい。
[Decryption program]
FIG. 9 is a diagram illustrating a functional configuration of the decryption program 5 that is executed by the control device 20 (FIG. 3) and implements the decryption method according to the present invention.
As illustrated in FIG. 9, the decoding program 5 includes a decoding processing unit 500, a density decoding unit 510, a shape decoding unit 520, and a decoded image generation unit 530.
Note that all or some of the functions of the decryption program 5 may be realized by an ASIC provided in the printer apparatus 10 or the like.

復号化プログラム5において、復号処理部500は、入力された符号データ900(図7)を、インデクス及び位置情報のセット及び画像辞書(濃度辞書710及び形状辞書720)等に復号化し、濃度情報のインデクス及び位置情報(すなわち、ハーフトーン領域符号)と、濃度辞書710とを濃度復号部510に出力し、形状情報のインデクス及び位置情報(すなわち、テキスト領域符号又はジェネリック領域符号)と、形状辞書720を形状復号部520に出力する。   In the decoding program 5, the decoding processing unit 500 decodes the input code data 900 (FIG. 7) into a set of indexes and position information, an image dictionary (a density dictionary 710 and a shape dictionary 720), and the like. The index and position information (that is, halftone area code) and the density dictionary 710 are output to the density decoding unit 510, the shape information index and position information (that is, text area code or generic area code), and the shape dictionary 720. Is output to the shape decoding unit 520.

濃度復号部510は、復号処理部500から入力された濃度情報のインデクス及び位置情報並びに濃度辞書710に基づいて、入力画像の濃度情報を復号化する。より具体的には、濃度復号部510は、復号処理部500から入力された濃度情報のインデクス及び位置情報に応じて、濃度辞書710に登録されている網点パターンを配置して、図2に例示するような網点画像を生成する。   The density decoding unit 510 decodes the density information of the input image based on the density information index and position information input from the decoding processing unit 500 and the density dictionary 710. More specifically, the density decoding unit 510 arranges the halftone dot patterns registered in the density dictionary 710 in accordance with the index of the density information and the position information input from the decoding processing unit 500, so that FIG. A halftone dot image as illustrated is generated.

形状復号部520は、復号処理部500から入力された形状情報のインデクス及び位置情報並びに形状辞書720に基づいて、入力画像に含まれる画像要素の形状情報を復号化する。より具体的には、形状復号部520は、復号処理部500から入力された形状情報のインデクス及び位置情報に応じて、形状辞書720に登録されている形状パターン(反転形状パターンを含む)を配置して、図2に例示するような画像形状を作成する。   The shape decoding unit 520 decodes the shape information of the image elements included in the input image based on the shape information index and position information input from the decoding processing unit 500 and the shape dictionary 720. More specifically, the shape decoding unit 520 arranges the shape patterns (including the inverted shape pattern) registered in the shape dictionary 720 according to the index and position information of the shape information input from the decoding processing unit 500. Then, an image shape as illustrated in FIG. 2 is created.

復号画像生成部530は、濃度復号部510により復号化された濃度情報と、形状復号部520により復号化された形状情報とに基づいて、入力画像600の符号データを復号化し、復号画像を生成する。より具体的には、復号画像生成部530は、まず、濃度復号部510により作成された第1の網点画像(インデクス及び位置情報に応じて、例えば排他的論理和演算により、配置された網点パターン)と、形状復号部520により作成された第1の画像形状(インデクス及び位置情報に応じて配置された形状パターン)とを結合演算(例えば、積演算)することにより、第1の画像要素(図2に示される「三角」)を生成する。さらに、復号画像生成部530は、この生成された画像に対して第2の網点画像を排他的論理和演算をし、次に、この排他的論理和演算後の画像に対して第2の画像形状を積演算し、その後、この積演算後の画像に対して第2の網点画像を、再び、排他的論理和演算することにより、第2の画像要素(図2に示される「丸」)を生成する。   Based on the density information decoded by the density decoding unit 510 and the shape information decoded by the shape decoding unit 520, the decoded image generation unit 530 decodes the code data of the input image 600 and generates a decoded image. To do. More specifically, the decoded image generation unit 530 first selects the first halftone image created by the density decoding unit 510 (a network arranged by, for example, an exclusive OR operation according to the index and position information). The first image is obtained by performing a join operation (for example, a product operation) between the point pattern) and the first image shape (the shape pattern arranged according to the index and position information) created by the shape decoding unit 520. An element (“triangle” shown in FIG. 2) is generated. Further, the decoded image generation unit 530 performs an exclusive OR operation on the second halftone image on the generated image, and then performs a second OR operation on the image after the exclusive OR operation. A product operation is performed on the image shape, and then the second halftone image is again subjected to an exclusive OR operation on the image after the product operation, thereby obtaining a second image element ("circle" )).

[復号化動作]
図10は、復号化プログラム5による復号化処理(S20)を示すフローチャートである。
図10に示すように、ステップ200(S200)において、復号処理部500(図9)は、入力された符号データ900(図7)を、ハーフトーン領域符号(濃度情報のインデクス及び位置情報のセット)、テキスト領域符号又はジェネリック領域符号(形状情報のインデクス及び位置情報のセット)、及び画像辞書(濃度辞書710及び形状辞書720)に復号化し、濃度情報のインデクス及び位置情報並びに濃度辞書710を濃度復号部510に出力し、形状情報のインデクス及び位置情報並びに形状辞書720を形状復号部520に出力する。
[Decryption operation]
FIG. 10 is a flowchart showing the decryption process (S20) by the decryption program 5.
As shown in FIG. 10, in step 200 (S200), the decoding processing unit 500 (FIG. 9) converts the input code data 900 (FIG. 7) into a halftone area code (index of density information and set of position information). ), Text region code or generic region code (shape information index and position information set), and image dictionary (density dictionary 710 and shape dictionary 720), and density information index and position information and density dictionary 710 are The data is output to the decoding unit 510, and the shape information index and position information and the shape dictionary 720 are output to the shape decoding unit 520.

ステップ202(S202)において、濃度復号部510は、復号処理部500から入力された濃度情報のインデクス及び位置情報に基づいて、網点パターン1を濃度辞書710から抽出し、抽出された網点パターンをこの位置情報に示された領域に配置する。網点パターンが配置された画像は、網点画像1(図2)として復号画像生成部530に入力される。
復号画像生成部530は、濃度復号部510により作成された網点画像1と生成される画像とを排他的論理和演算して、画像を生成する。
In step 202 (S202), the density decoding unit 510 extracts the halftone pattern 1 from the density dictionary 710 based on the density information index and the position information input from the decoding processing unit 500, and extracts the extracted halftone pattern. Is placed in the area indicated by the position information. The image in which the halftone dot pattern is arranged is input to the decoded image generation unit 530 as the halftone image 1 (FIG. 2).
The decoded image generation unit 530 generates an image by performing an exclusive OR operation on the halftone image 1 created by the density decoding unit 510 and the generated image.

ステップ204(S204)において、形状復号部520は、復号処理部500から入力された画像形状1のインデクス及び位置情報に基づいて、インデクスに対応する形状パターンを形状辞書720から抽出し、抽出された形状パターンをこの位置情報に示された領域に配置する。形状パターンが配置された画像は、画像形状1(図2)として復号画像生成部530に入力される。
ステップ206(S206)において、復号画像生成部530は、形状復号部520により作成された画像形状1と、生成される画像とを積演算して、画像を生成する。
In step 204 (S204), the shape decoding unit 520 extracts the shape pattern corresponding to the index from the shape dictionary 720 based on the index and position information of the image shape 1 input from the decoding processing unit 500, and extracted. The shape pattern is arranged in the area indicated by the position information. The image in which the shape pattern is arranged is input to the decoded image generation unit 530 as the image shape 1 (FIG. 2).
In step 206 (S206), the decoded image generation unit 530 performs a product operation on the image shape 1 created by the shape decoding unit 520 and the generated image to generate an image.

ステップ208(S208)において、濃度復号部510は、復号処理部500から入力された濃度情報のインデクス及び位置情報に基づいて、網点パターン2を濃度辞書710から抽出し、抽出された網点パターンをこの位置情報に示された領域に配置する。網点パターンが配置された画像は、網点画像2(図2)として復号画像生成部530に入力される。
復号画像生成部530は、濃度復号部510により作成された網点画像2と生成される画像とを排他的論理和演算して、画像を生成する。
In step 208 (S208), the density decoding unit 510 extracts the halftone pattern 2 from the density dictionary 710 based on the density information index and the position information input from the decoding processing unit 500, and extracts the extracted halftone pattern. Is placed in the area indicated by the position information. The image in which the halftone dot pattern is arranged is input to the decoded image generation unit 530 as the halftone image 2 (FIG. 2).
The decoded image generation unit 530 generates an image by performing an exclusive OR operation on the halftone image 2 created by the density decoding unit 510 and the generated image.

ステップ210(S210)において、形状復号部520は、復号処理部500から入力された反転画像形状2のインデクス及び位置情報に基づいて、インデクスに対応する形状パターンを形状辞書720から抽出し、抽出された形状パターンをこの位置情報に示された領域に配置する。形状パターンが配置された画像は、反転画像形状2(図2)として復号画像生成部530に入力される。
ステップ212(S212)において、復号画像生成部530は、形状復号部520により作成された反転画像形状2と、生成される画像とを積演算して、画像を生成する。
In step 210 (S210), the shape decoding unit 520 extracts a shape pattern corresponding to the index from the shape dictionary 720 based on the index and position information of the inverted image shape 2 input from the decoding processing unit 500, and is extracted. The shape pattern is arranged in the area indicated by the position information. The image in which the shape pattern is arranged is input to the decoded image generation unit 530 as the inverted image shape 2 (FIG. 2).
In step 212 (S212), the decoded image generation unit 530 performs a product operation on the inverted image shape 2 created by the shape decoding unit 520 and the generated image to generate an image.

ステップ214(S214)において、濃度復号部510は、網点パターン2を再び抽出して位置情報に示された領域に配置する。網点パターンが配置された画像は、網点画像2として復号画像生成部530に、再び入力される。
復号画像生成部530は、網点画像2と生成される画像とを、再び、排他的論理和演算して、復号画像(図2)を生成する。
In step 214 (S214), the density decoding unit 510 extracts the halftone dot pattern 2 again and arranges it in the region indicated by the position information. The image on which the halftone dot pattern is arranged is input again to the decoded image generation unit 530 as the halftone image 2.
The decoded image generation unit 530 performs an exclusive OR operation on the halftone image 2 and the generated image again to generate a decoded image (FIG. 2).

以上説明したように、本実施形態における画像処理装置2は、形状情報と濃度情報とを分離して符号化することにより、画像要素のエッジ情報を保持した状態で、網点パターンで構成された二値画像を効率よく符号化することができる。
また、画像処理装置2は、形状情報の冗長性と濃度情報の冗長性とをそれぞれ独立して削減することができるため、より高い圧縮率が期待できる。
さらに、画像処理装置2は、画像要素の形状の値を反転した反転画像形状情報を符号化し、復号される画像に対して、反転画像形状を用い、網点画像を少なくとも2回排他的論理和演算するので、複数の画像要素を適切に重ねて描画することができる。
As described above, the image processing apparatus 2 according to the present embodiment is configured with a halftone dot pattern in a state in which edge information of image elements is held by separating and encoding shape information and density information. A binary image can be efficiently encoded.
Further, since the image processing apparatus 2 can independently reduce the redundancy of the shape information and the redundancy of the density information, a higher compression rate can be expected.
Further, the image processing apparatus 2 encodes the inverted image shape information obtained by inverting the shape value of the image element, uses the inverted image shape for the decoded image, and performs the exclusive OR operation on the halftone image at least twice. Since the calculation is performed, a plurality of image elements can be appropriately overlapped and drawn.

[第2実施形態]
本発明にかかる画像処理装置2の第2の実施形態を説明する。
図11は、本実施形態における符号化処理及び復号化処理の概略を説明する図であり、図11(A)は、符号化処理を示し、図11(B)は、復号化処理を示す。
図11(A)に示すように、本実施形態における画像処理装置2は、入力画像を構成する画像要素を、その形状情報に基づいて画像形状を符号化し、濃度情報に基づいて網点画像と少なくとも1つの網点画像の値を反転した反転網点画像とを符号化する。反転網点画像は、網点画像と同様に、ハーフトーン領域符号化により符号化される。
図11(B)に示すように、画像要素の復号化処理は、排他的論理和の否定(XNOR)演算と論理和(OR)演算とによりなされる。復号化処理は、画像要素が重ねて描画される場合には、少なくとも2回の排他的論理和の否定演算を行うことによりなされる。このように、複数の画像要素が形状情報と濃度情報とを分離されて符号化されるので、画像要素は高い圧縮率で符号化されうる。また、少なくとも1つの網点画像が反転されて符号化され、排他的論理和の否定演算を用いて復号化されるので、画像要素が重なり合う場合においても、適切に復号化されうる。
[Second Embodiment]
A second embodiment of the image processing apparatus 2 according to the present invention will be described.
FIG. 11 is a diagram for explaining the outline of the encoding process and the decoding process in the present embodiment, FIG. 11A shows the encoding process, and FIG. 11B shows the decoding process.
As shown in FIG. 11A, the image processing apparatus 2 according to the present embodiment encodes the image elements constituting the input image based on the shape information and encodes the halftone image based on the density information. The inverted halftone image obtained by inverting the value of at least one halftone image is encoded. The inverted halftone image is encoded by halftone region encoding in the same manner as the halftone image.
As shown in FIG. 11B, the decoding process of the image element is performed by an exclusive logical sum negation (XNOR) operation and a logical sum (OR) operation. The decoding process is performed by performing an exclusive OR negation operation at least twice when image elements are drawn in an overlapping manner. Thus, since a plurality of image elements are encoded with shape information and density information separated, the image elements can be encoded with a high compression rate. In addition, since at least one halftone image is inverted and encoded, and is decoded using an exclusive OR negation operation, even when image elements overlap, it can be appropriately decoded.

[符号化プログラム]
図12は、制御装置20(図3)により実行され、本発明にかかる符号化方法を実現する符号化プログラム6の機能構成を例示する図である。
図12に例示するように、符号化プログラム6は、ラスタ生成部400、画像辞書作成部420及び符号生成部440を有する。また、画像辞書作成部420は、形状抽出部422、網点画像抽出部424、インデクス付与部426及び網点反転部602を含み、符号生成部440は、形状情報符号化部442及び濃度情報符号化部444を含む。符号化プログラム6は、符号化プログラム4(図4)から形状反転部428が削除され、網点反転部602が追加された構成である。なお、図12に示された各構成のうち、図4に示された構成と実質的に同一のものには同一の符号が付されている。
[Encoding program]
FIG. 12 is a diagram illustrating a functional configuration of the encoding program 6 which is executed by the control device 20 (FIG. 3) and implements the encoding method according to the present invention.
As illustrated in FIG. 12, the encoding program 6 includes a raster generation unit 400, an image dictionary creation unit 420, and a code generation unit 440. The image dictionary creation unit 420 includes a shape extraction unit 422, a halftone image extraction unit 424, an index assignment unit 426, and a halftone dot inversion unit 602. The code generation unit 440 includes a shape information encoding unit 442 and a density information code. Including a conversion unit 444 The encoding program 6 has a configuration in which the shape inversion unit 428 is deleted from the encoding program 4 (FIG. 4) and a halftone inversion unit 602 is added. 12 that are substantially the same as those shown in FIG. 4 are denoted by the same reference numerals.

符号化プログラム6において、形状抽出部422は、ラスタ生成部400から入力された画像要素の形状情報に基づいて、各色成分画像で出現する画像要素の形状を形状パターンとして抽出する。
網点画像抽出部424は、ラスタ生成部400から入力された入力画像(スクリーン処理が施された二値画像)に基づいて、各色成分画像で出現する網点パターンを抽出する。また、網点画像抽出部424は、ラスタ生成部400から入力される画像要素の重畳情報に基づいて、重なり合う画像要素であって上位に描画されるべき画像要素の網点パターンを、網点反転部602に反転させて反転網点パターンを抽出する。
網点反転部602は、網点画像抽出部424の制御により、網点パターンの値を反転して、反転網点パターンを生成し、網点画像抽出部424に対して出力する。
In the encoding program 6, the shape extraction unit 422 extracts the shape of the image element appearing in each color component image as a shape pattern based on the shape information of the image element input from the raster generation unit 400.
The halftone dot image extraction unit 424 extracts a halftone dot pattern that appears in each color component image based on the input image (binary image subjected to screen processing) input from the raster generation unit 400. Also, the halftone image extraction unit 424 converts the halftone dot pattern of the image elements that are overlapping image elements to be drawn on the upper side based on the superimposition information of the image elements input from the raster generation unit 400 into halftone dots. The inverted halftone dot pattern is extracted by inverting the part 602.
The halftone dot inversion unit 602 generates a reverse halftone dot pattern by inverting the value of the halftone dot pattern under the control of the halftone dot image extraction unit 424, and outputs it to the halftone dot image extraction unit 424.

図13は、符号化プログラム6により生成される符号データ910を例示する図である。
図13に例示するように、符号データ910は、データの属性情報などが含まれたヘッダと、濃度辞書710及び形状辞書720からなる画像辞書と、第1の画像要素(三角)の濃度情報の符号データに相当するハーフトーン領域符号と、第1の画像要素(三角)の形状情報の符号データに相当するテキスト領域符号(又はジェネリック領域符号)と、第2の画像要素(丸)の濃度情報(反転された網点パターンを含む)の符号データに相当するハーフトーン領域符号と、第2の画像要素(丸)の形状情報の符号データに相当するテキスト領域符号(又はジェネリック領域符号)と、2回目の第2の画像要素(丸)のハーフトーン領域符号とを含む。符号データ910は、第2の画像要素(丸)に関して反転された網点パターンと反転されていない形状情報とを含む点で、図7に示される符号データ900と異なる。
FIG. 13 is a diagram illustrating code data 910 generated by the encoding program 6.
As illustrated in FIG. 13, the code data 910 includes a header including data attribute information and the like, an image dictionary including a density dictionary 710 and a shape dictionary 720, and density information of the first image element (triangle). Halftone area code corresponding to code data, text area code (or generic area code) corresponding to code data of shape information of the first image element (triangle), and density information of the second image element (circle) A halftone area code corresponding to code data (including an inverted halftone dot pattern), a text area code (or generic area code) corresponding to code data of shape information of the second image element (circle), and And a second halftone region code of the second image element (circle). The code data 910 is different from the code data 900 shown in FIG. 7 in that it includes a halftone dot pattern inverted with respect to the second image element (circle) and non-inverted shape information.

[符号化動作]
図14は、符号化プログラム6による符号化処理(S30)を示すフローチャートである。
図14に示すように、S100において、ラスタ生成部400及び画像辞書作成部420の形状抽出部422により、画像要素の形状情報が取得される。
ステップ300(S300)において、網点画像抽出部424は、ラスタ生成部400から入力された入力画像のラスタデータ(二値画像)の中から、網点パターンを抽出する。また、網点画像抽出部424は、画像要素が重なり合う場合には、網点反転部602を制御して反転網点パターンを抽出する。
符号化プログラム6は、S104〜S110の処理において、濃度辞書710及び形状辞書720を作成し、形状情報及び濃度情報を符号化して、図13に示される符号データ910を出力する。
[Encoding operation]
FIG. 14 is a flowchart showing the encoding process (S30) by the encoding program 6.
As illustrated in FIG. 14, in S <b> 100, the shape information of the image element is acquired by the raster generation unit 400 and the shape extraction unit 422 of the image dictionary creation unit 420.
In step 300 (S300), the halftone image extraction unit 424 extracts a halftone dot pattern from the raster data (binary image) of the input image input from the raster generation unit 400. In addition, when the image elements overlap, the halftone image extraction unit 424 controls the halftone dot inversion unit 602 to extract the inverted halftone dot pattern.
In the processing of S104 to S110, the encoding program 6 creates a density dictionary 710 and a shape dictionary 720, encodes shape information and density information, and outputs code data 910 shown in FIG.

[復号化動作]
図15は、復号化プログラム7による復号化処理(S40)を示すフローチャートである。なお、復号化プログラム7は、図9に示される復号化プログラム5と実質的に同一の構成要素を有する。
図15に示すように、S200〜S206において、復号化プログラム7は、入力された符号データ910を復号化し、網点画像1と形状情報1とにより第1の画像要素(三角)を描画する。
[Decryption operation]
FIG. 15 is a flowchart showing the decryption process (S40) by the decryption program 7. Note that the decryption program 7 has substantially the same components as the decryption program 5 shown in FIG.
As shown in FIG. 15, in S <b> 200 to S <b> 206, the decoding program 7 decodes the input code data 910 and draws the first image element (triangle) by the halftone image 1 and the shape information 1.

ステップ400(S400)において、濃度復号部510は、復号処理部500から入力された濃度情報のインデクス及び位置情報に基づいて、反転網点パターン2を濃度辞書710から抽出し、抽出された反転網点パターンをこの位置情報に示された領域に配置する。反転網点パターンが配置された画像は、反転網点画像2(図11)として復号画像生成部530に入力される。
復号画像生成部530は、濃度復号部510により作成された反転網点画像2と生成される画像とを排他的論理和の否定演算して、画像を生成する。
In step 400 (S400), the density decoding unit 510 extracts the inverted halftone dot pattern 2 from the density dictionary 710 based on the density information index and position information input from the decoding processing unit 500, and extracts the extracted inverted network. The point pattern is arranged in the area indicated by the position information. The image on which the inverted halftone pattern is arranged is input to the decoded image generation unit 530 as the inverted halftone image 2 (FIG. 11).
The decoded image generation unit 530 generates an image by performing an exclusive OR operation on the inverted halftone image 2 generated by the density decoding unit 510 and the generated image.

ステップ402(S402)において、形状復号部520は、復号処理部500から入力された画像形状2のインデクス及び位置情報に基づいて、インデクスに対応する形状パターンを形状辞書720から抽出し、抽出された形状パターンをこの位置情報に示された領域に配置する。形状パターンが配置された画像は、画像形状2(図11)として復号画像生成部530に入力される。
ステップ212(S212)において、復号画像生成部530は、形状復号部520により作成された画像形状2と、生成される画像とを和演算して、画像を生成する。
In step 402 (S402), the shape decoding unit 520 extracts the shape pattern corresponding to the index from the shape dictionary 720 based on the index and position information of the image shape 2 input from the decoding processing unit 500, and extracted. The shape pattern is arranged in the area indicated by the position information. The image in which the shape pattern is arranged is input to the decoded image generation unit 530 as the image shape 2 (FIG. 11).
In step 212 (S212), the decoded image generation unit 530 adds up the image shape 2 created by the shape decoding unit 520 and the generated image to generate an image.

ステップ404(S404)において、濃度復号部510は、反転網点パターン2を再び抽出して位置情報に示された領域に配置する。反転網点パターンが配置された画像は、反転網点画像2として復号画像生成部530に、再び入力される。
復号画像生成部530は、反転網点画像2と生成される画像とを、再び、排他的論理和の否定演算して、復号画像(図11)を生成する。
In step 404 (S404), the density decoding unit 510 extracts the inverted halftone pattern 2 again and arranges it in the area indicated by the position information. The image in which the inverted halftone dot pattern is arranged is input again to the decoded image generation unit 530 as the inverted halftone image 2.
The decoded image generation unit 530 performs an exclusive OR operation on the inverted halftone image 2 and the generated image again to generate a decoded image (FIG. 11).

以上説明したように、本実施形態における画像処理装置2は、画像要素の濃度情報に対応する網点パターンの値を反転した反転網点パターンを符号化し、復号される画像に対して、この反転網点パターンを少なくとも2回排他的論理和の否定演算するので、複数の画像要素を適切に重ねて描画することができる。   As described above, the image processing apparatus 2 in the present embodiment encodes an inverted halftone dot pattern obtained by inverting the value of the halftone dot pattern corresponding to the density information of the image element, and this inversion is performed on the decoded image. Since the exclusive OR of the halftone dot pattern is performed at least twice, a plurality of image elements can be appropriately overlapped and drawn.

[第3実施形態]
本発明にかかる画像処理装置2の第3の実施形態を説明する。
本実施形態では、JBIG2の中間ハーフトーン領域及びリファインメント領域を利用する。まず、本発明の理解を助けるために、中間ハーフトーン領域及びリファインメント領域の概略を説明する。
JBIG2は、領域の復号結果である画像を置く2種類のバッファを規定する。バッファの1つはページバッファであり、復号器の出力となるバッファである。他方は補助バッファであり、中間的なデータを置くバッファである。
ハーフトーン領域、テキスト領域、ジェネリック領域など全ての領域は、「中間(intermediate)」属性を有することができる。領域が中間属性を有する場合、復号結果はページバッファではなく、補助バッファに配置される。補助バッファに配置された領域は、後述のリファインメント領域を使用することにより、ページバッファに描画されることができる。その際、補助バッファの領域は、ページバッファに単に描画されることもできるし、画像に変更を加えた上でページバッファに描画されることもできる。
[Third Embodiment]
A third embodiment of the image processing apparatus 2 according to the present invention will be described.
In this embodiment, the intermediate halftone area and refinement area of JBIG2 are used. First, in order to help understanding of the present invention, an outline of the intermediate halftone area and the refinement area will be described.
JBIG2 defines two types of buffers in which an image that is a decoding result of a region is placed. One of the buffers is a page buffer, which serves as an output of the decoder. The other is an auxiliary buffer, which is a buffer for placing intermediate data.
All regions, such as halftone regions, text regions, generic regions, can have an “intermediate” attribute. When the area has an intermediate attribute, the decoding result is placed not in the page buffer but in the auxiliary buffer. The area arranged in the auxiliary buffer can be drawn in the page buffer by using a refinement area described later. At this time, the area of the auxiliary buffer can be simply drawn in the page buffer, or can be drawn in the page buffer after changing the image.

図16は、復号におけるページバッファと補助バッファとの関係を説明する図であり、図16(A)は、テキスト領域の復号を示し、図16(B)は、中間テキスト領域の復号を示す。
図16(A)に示すように、テキスト領域が中間属性を有しない場合には、復号結果はページバッファに配置される。図16(B)に示すように、テキスト領域が中間属性を有する場合には、復号結果はページバッファではなく、補助バッファに配置される。ハーフトーン領域及びジェネリック領域においても、これらの領域が中間属性を有する場合には、復号結果は補助バッファに配置される。
FIGS. 16A and 16B are diagrams for explaining the relationship between the page buffer and the auxiliary buffer in decoding. FIG. 16A shows decoding of a text area, and FIG. 16B shows decoding of an intermediate text area.
As shown in FIG. 16A, when the text area has no intermediate attribute, the decoding result is arranged in the page buffer. As shown in FIG. 16B, when the text area has an intermediate attribute, the decoding result is arranged not in the page buffer but in the auxiliary buffer. Also in the halftone area and the generic area, if these areas have intermediate attributes, the decoding result is placed in the auxiliary buffer.

リファインメント領域は、既知の画像に変更を加え、この画像とは異なる画像を生成する領域である。リファインメント領域の既知画像として、補助バッファにある領域(すなわち、中間属性を有する領域)及びページバッファの任意の領域が利用されることができる。
図17は、リファインメント領域の復号を説明する図であり、図17(A)は、補助バッファの領域とリファインメント領域の復号との関係を示し、図17(B)は、ページバッファとリファインメント領域の復号との関係を示す。
図17(A)に示すように、補助バッファの領域に対してリファインメント領域の復号がなされると、補助バッファに配置される画像が利用されて、ページバッファに描画される。図17(B)に示すように、ページバッファに対してリファインメント領域の復号がなされると、ページバッファの画像が利用されてページバッファに描画される。また、補助バッファの領域は、画像を変更することなく利用されて、そのままページバッファに描画されることができる。
The refinement region is a region in which a known image is changed and an image different from this image is generated. As the known image of the refinement area, an area in the auxiliary buffer (that is, an area having an intermediate attribute) and an arbitrary area of the page buffer can be used.
FIG. 17 is a diagram for explaining the refinement area decoding. FIG. 17A shows the relationship between the auxiliary buffer area and the refinement area decoding, and FIG. 17B shows the page buffer and the refinement area. The relationship with the decryption of the comment area is shown.
As shown in FIG. 17A, when the refinement area is decoded with respect to the auxiliary buffer area, an image arranged in the auxiliary buffer is used and rendered in the page buffer. As shown in FIG. 17B, when the refinement area is decoded for the page buffer, the image in the page buffer is used and rendered in the page buffer. Also, the auxiliary buffer area can be used without changing the image and can be directly drawn in the page buffer.

[符号化プログラム]
図18は、本実施形態の符号化プログラム8により生成される符号データ920を例示する図である。なお、符号化プログラム8(不図示)は、符号化プログラム4(図4)と同一の構成要素を有する。
図18に例示するように、符号データ920は、符号化プログラム8により符号化されたデータであり、第2の画像要素(丸)の中間ハーフトーン領域符号(中間属性を有するハーフトーン領域)を含む。符号データ900(図7)は、同一の内容の複数個のハーフトーン領域符号を含むのに対して、符号データ920は、それぞれの濃度情報につき1つだけしか中間ハーフトーン領域符号を含まない。
このようにして、符号化プログラム8は、符号データの符号量を削減することができる。
[Encoding program]
FIG. 18 is a diagram illustrating code data 920 generated by the encoding program 8 of this embodiment. The encoding program 8 (not shown) has the same components as the encoding program 4 (FIG. 4).
As illustrated in FIG. 18, the code data 920 is data encoded by the encoding program 8 and represents the intermediate halftone area code (halftone area having an intermediate attribute) of the second image element (circle). Including. Code data 900 (FIG. 7) includes a plurality of halftone area codes of the same content, whereas code data 920 includes only one intermediate halftone area code for each density information.
In this way, the encoding program 8 can reduce the amount of code data.

[符号化動作]
図19は、符号化プログラム8による符号化処理(S50)示すフローチャートである。
図19に示すように、S100〜S106の処理において、符号化プログラム6は、入力画像から濃度辞書710及び形状辞書720を作成し、形状情報を符号化する。
ステップ500(S500)において、符号化プログラム8は、第1の画像要素(三角)の濃度情報をハーフトーン領域符号化により符号化し、第2の画像要素(丸)の濃度情報を中間属性を有するハーフトーン領域符号化により符号化する。
さらに、符号化プログラム8は、S110の処理において、図18に示される符号データ920を出力する。
[Encoding operation]
FIG. 19 is a flowchart showing the encoding process (S50) by the encoding program 8.
As shown in FIG. 19, in the processing of S100 to S106, the encoding program 6 creates a density dictionary 710 and a shape dictionary 720 from an input image, and encodes shape information.
In step 500 (S500), the encoding program 8 encodes the density information of the first image element (triangle) by halftone region encoding, and the density information of the second image element (circle) has an intermediate attribute. Encoding is performed by halftone area encoding.
Further, the encoding program 8 outputs the encoded data 920 shown in FIG. 18 in the process of S110.

[復号化動作]
図20は、復号化プログラム9による復号化処理(S60)示すフローチャートである。なお、復号化プログラム9(不図示)は、復号化プログラム5(図9)と同一の構成要素を有する。
図20に示すように、S200の処理において、復号化プログラム9は、入力された符号データ(図18)を復号化する。中間ハーフトーン領域は、復号されると補助バッファに置かれる。
ステップ600(S600)において、復号化プログラム9は、ページバッファに対してハーフトーン領域の復号を行い、網点画像1を生成する。
S202〜S206の処理において、復号化プログラム9は、網点画像1と画像形状1とを用いて、第1の画像要素(三角)を描画する。
[Decryption operation]
FIG. 20 is a flowchart showing the decryption process (S60) by the decryption program 9. The decryption program 9 (not shown) has the same components as the decryption program 5 (FIG. 9).
As shown in FIG. 20, in the process of S200, the decoding program 9 decodes the input code data (FIG. 18). When the intermediate halftone area is decoded, it is placed in the auxiliary buffer.
In step 600 (S600), the decoding program 9 decodes the halftone area of the page buffer to generate a halftone image 1.
In the processing of S202 to S206, the decoding program 9 draws the first image element (triangle) using the halftone image 1 and the image shape 1.

ステップ602(S602)において、復号化プログラム9は、網点画像2について、中間ハーフトーン領域を生成する。
復号化プログラム9は、補助バッファを利用してリファインメント領域を生成して、網点画像2を生成する。
S208〜S212の処理において、復号化プログラム9は、網点画像2と画像形状2とを用いて、第2の画像要素(丸)を描画する。
ステップ604(S604)において、復号化プログラム9は、補助バッファを利用して再びリファインメント領域を生成して、網点画像2を生成し、再び排他的論理和演算を行うことにより、復号画像を生成する。
このようにして、復号化プログラム9は、中間ハーフトーン領域を生成し、リファインメント領域を複数個生成することにより、網点画像2を生成する。網点画像2は、中間ハーフトーン領域を利用して符号化されているので、複数回符号化されていなくとも、適切に復号化されることができる。
In step 602 (S602), the decoding program 9 generates an intermediate halftone area for the halftone image 2.
The decoding program 9 generates a refinement region using an auxiliary buffer, and generates a halftone image 2.
In the processing of S208 to S212, the decoding program 9 draws the second image element (circle) using the halftone image 2 and the image shape 2.
In step 604 (S604), the decoding program 9 generates the refinement region again using the auxiliary buffer, generates the halftone image 2, and performs the exclusive OR operation again to obtain the decoded image. Generate.
In this way, the decoding program 9 generates a halftone image 2 by generating an intermediate halftone region and a plurality of refinement regions. Since the halftone image 2 is encoded using the intermediate halftone area, it can be appropriately decoded even if it is not encoded a plurality of times.

以上説明したように、本実施形態における画像処理装置2は、中間ハーフトーン領域を利用して符号化するので、符号データの符号量を削減することができる。また、画像処理装置2は、中間ハーフトーン領域を生成し、リファインメント領域を複数個生成するので、複数回符号化されていない画像要素についても、少なくとも2回の排他的論理演算を行うことができ、画像要素を適切に重ねて描画することができる。   As described above, since the image processing apparatus 2 according to the present embodiment performs encoding using the intermediate halftone area, the code amount of the code data can be reduced. In addition, since the image processing apparatus 2 generates an intermediate halftone region and a plurality of refinement regions, the image processing apparatus 2 can perform at least two exclusive logical operations on image elements that are not encoded a plurality of times. The image elements can be appropriately overlapped and drawn.

JBIG2に基づく符号化処理及び復号化処理を例示する図であり、図1(A)は、符号化処理を示し、図1(B)は、復号化処理を示す。It is a figure which illustrates the encoding process and decoding process based on JBIG2, FIG. 1 (A) shows an encoding process, FIG.1 (B) shows a decoding process. 第1の実施形態における符号化処理及び復号化処理の概略を説明する図であり、図2(A)は、符号化処理を示し、図2(B)は、復号化処理を示す。FIGS. 2A and 2B are diagrams for explaining the outline of an encoding process and a decoding process in the first embodiment, FIG. 2A shows the encoding process, and FIG. 2B shows the decoding process. 本発明にかかる符号化方法及び復号化方法が適応される画像処理装置2のハードウェア構成を、制御装置20を中心に例示する図である。It is a figure which illustrates the hardware constitutions of the image processing apparatus 2 with which the encoding method and decoding method concerning this invention are applied centering on the control apparatus 20. FIG. 本発明にかかる符号化方法を実現する符号化プログラム4の機能構成を例示する図である。It is a figure which illustrates the function structure of the encoding program 4 which implement | achieves the encoding method concerning this invention. 濃度情報の符号化処理を説明する図であり、図5(A)は、入力画像600を例示し、図5(B)は、この入力画像600に対応する濃度辞書710を例示し、図5(C)は、この入力画像600の濃度情報の符号データを例示する。FIG. 5A illustrates an input image 600, FIG. 5B illustrates a density dictionary 710 corresponding to the input image 600, and FIG. (C) illustrates the code data of the density information of the input image 600. 形状情報の符号化処理を説明する図であり、図6(A)は、入力画像600を例示し、図6(B)は、この入力画像600に対応する形状辞書720を例示し、図6(C)は、この入力画像600の形状情報の符号データを例示する。FIG. 6A illustrates an input image 600, FIG. 6B illustrates a shape dictionary 720 corresponding to the input image 600, and FIG. (C) illustrates the code data of the shape information of the input image 600. 符号化プログラム4により生成される符号データ900を例示する図である。It is a figure which illustrates the code data 900 produced | generated by the encoding program 4. FIG. 符号化プログラム4による符号化処理(S10)を示すフローチャートである。It is a flowchart which shows the encoding process (S10) by the encoding program 4. 本発明にかかる復号化方法を実現する復号化プログラム5の機能構成を例示する図である。It is a figure which illustrates the function structure of the decoding program 5 which implement | achieves the decoding method concerning this invention. 復号化プログラム5による復号化処理(S20)を示すフローチャートである。It is a flowchart which shows the decoding process (S20) by the decoding program 5. FIG. 第2の実施形態における符号化処理及び復号化処理の概略を説明する図であり、図11(A)は、符号化処理を示し、図11(B)は、復号化処理を示す。It is a figure explaining the outline of the encoding process and decoding process in 2nd Embodiment, FIG. 11 (A) shows an encoding process and FIG. 11 (B) shows a decoding process. 本発明にかかる符号化方法を実現する符号化プログラム6の機能構成を例示する図である。It is a figure which illustrates the function structure of the encoding program 6 which implement | achieves the encoding method concerning this invention. 符号化プログラム6により生成される符号データ910を例示する図である。It is a figure which illustrates the code data 910 produced | generated by the encoding program 6. FIG. 符号化プログラム6による符号化処理(S30)を示すフローチャートである。It is a flowchart which shows the encoding process (S30) by the encoding program 6. FIG. 復号化プログラム7による復号化処理(S40)を示すフローチャートである。It is a flowchart which shows the decoding process (S40) by the decoding program 7. FIG. 復号におけるページバッファと補助バッファとの関係を説明する図であり、図16(A)は、テキスト領域の復号を示し、図16(B)は、中間テキスト領域の復号を示す。It is a figure explaining the relationship between the page buffer and auxiliary buffer in decoding, FIG. 16 (A) shows decoding of a text area, FIG.16 (B) shows decoding of an intermediate text area. リファインメント領域の復号を説明する図であり、図17(A)は、補助バッファの領域とリファインメント領域の復号との関係を示し、図17(B)は、ページバッファとリファインメント領域の復号との関係を示す。FIG. 17A is a diagram for explaining the decoding of the refinement area. FIG. 17A shows the relationship between the auxiliary buffer area and the refinement area decoding, and FIG. 17B shows the page buffer and the refinement area decoding. Shows the relationship. 符号化プログラム8により生成される符号データ920を例示する図である。It is a figure which illustrates the code data 920 produced | generated by the encoding program 8. FIG. 符号化プログラム8による符号化処理(S50)示すフローチャートである。It is a flowchart which shows the encoding process (S50) by the encoding program 8. FIG. 復号化プログラム9による復号化処理(S60)示すフローチャートである。It is a flowchart which shows the decoding process (S60) by the decoding program 9. FIG.

符号の説明Explanation of symbols

2・・・画像処理装置
10・・・プリンタ装置
20・・・制御装置
202・・・CPU
204・・・メモリ
22・・・通信装置
24・・・記憶装置
4・・・符号化プログラム
400・・・ラスタ生成部
420・・・画像辞書作成部
422・・・形状抽出部
424・・・網点画像抽出部
426・・・インデクス付与部
428・・・形状反転部
440・・・符号生成部
442・・・形状情報符号化部
444・・・濃度情報符号化部
710・・・濃度辞書
720・・・形状辞書
5・・・復号化プログラム
500・・・復号処理部
510・・・濃度復号部
520・・・形状復号部
530・・・復号画像生成部
600・・・入力画像
900・・・符号データ
2 ... Image processing device 10 ... Printer device 20 ... Control device 202 ... CPU
204 ... Memory 22 ... Communication device 24 ... Storage device 4 ... Encoding program 400 ... Raster generation unit 420 ... Image dictionary creation unit 422 ... Shape extraction unit 424 ... Halftone dot image extraction unit 426 ... Index assignment unit 428 ... Shape inversion unit 440 ... Code generation unit 442 ... Shape information encoding unit 444 ... Density information encoding unit 710 ... Concentration dictionary 720 ... Shape dictionary 5 ... Decoding program 500 ... Decoding processing unit 510 ... Density decoding unit 520 ... Shape decoding unit 530 ... Decoded image generation unit 600 ... Input image 900 ..Code data

Claims (12)

二値の画素から構成される形状パターンと、濃度値に対応して網点が規則正しく配置された二値濃度パターンとから構成された画像要素であって、該画像要素を複数受け付ける受付手段と、
前記受付手段により受け付けられた複数の画像要素の形状パターンを符号化する形状符号化手段と、
前記受付手段により受け付けられた複数の画像要素が互いに重なる場合、いずれかの画像要素について、形状パターンを構成する二値の画素の値を反転する形状反転手段と、
前記受付手段により受け付けられた複数の画像要素の二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記受付手段により受け付けられた複数の画像要素の二値濃度パターンを符号化する濃度符号化手段と
を有する符号化装置。
An image element composed of a shape pattern composed of binary pixels and a binary density pattern in which halftone dots are regularly arranged corresponding to the density value, and receiving means for receiving a plurality of the image elements;
Shape encoding means for encoding shape patterns of a plurality of image elements received by the receiving means;
When a plurality of image elements received by the receiving unit overlap with each other, a shape inversion unit that inverts the value of a binary pixel constituting a shape pattern for any of the image elements ;
Using a density dictionary in which binary density patterns of a plurality of image elements received by the receiving unit and identification information for identifying the binary density patterns are associated with each other , An encoding device comprising: density encoding means for encoding a binary density pattern of an image element.
二値の画素から構成される形状パターンと、濃度値に対応して網点が規則正しく配置された二値濃度パターンとから構成された画像要素であって、該画像要素を複数受け付ける受付手段と、
前記受付手段により受け付けられた複数の画像要素の形状パターンを符号化する形状符号化手段と、
前記受付手段により受け付けられた複数の画像要素の二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記受付手段により受け付けられた複数の画像要素の二値濃度パターンを符号化する濃度符号化手段と、
前記受付手段により受け付けられた複数の画像要素が互いに重なる場合、いずれかの画像要素について、二値濃度パターンを反転する濃度反転手段と
を有する符号化装置。
An image element composed of a shape pattern composed of binary pixels and a binary density pattern in which halftone dots are regularly arranged corresponding to the density value, and receiving means for receiving a plurality of the image elements;
Shape encoding means for encoding shape patterns of a plurality of image elements received by the receiving means;
Using a density dictionary in which binary density patterns of a plurality of image elements received by the receiving unit and identification information for identifying the binary density patterns are associated with each other , Density encoding means for encoding binary density patterns of image elements;
An encoding apparatus comprising: a density inversion unit that inverts a binary density pattern for any one of the image elements when the plurality of image elements received by the reception unit overlap each other .
複数の画像要素に関する形状情報と濃度情報とを含む符号データを受け付ける受付手段と、
前記受付手段により受け付けられた符号データに含まれる形状情報を復号化し、前記複数の画像要素それぞれについて、二値の画素から構成される形状パターン又はこの形状パターンを構成する二値の画素の値を反転した反転形状パターンを取得する形状復号化手段と、
画像要素の濃度値に対応して網点が規則正しく配置された二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記複数の画像要素それぞれについて、前記受付手段により受け付けられた符号データに含まれる濃度情報を復号化し、前記複数の画像要素それぞれの濃度値に対応する二値濃度パターンを取得する濃度復号化手段と、
前記形状復号化手段により復号化された形状情報と、前記濃度復号化手段により復号化された濃度情報とを用いて、前記複数の画像要素それぞれの画像データを生成するデータ生成手段と
を有する復号化装置。
Receiving means for receiving code data including shape information and density information regarding a plurality of image elements;
The shape information included in the code data received by the receiving means is decoded, and for each of the plurality of image elements, a shape pattern constituted by binary pixels or a value of the binary pixels constituting this shape pattern is obtained. Shape decoding means for acquiring an inverted inverted shape pattern;
Using the density dictionary in which the binary density pattern in which halftone dots are regularly arranged corresponding to the density value of the image element and the identification information for identifying the binary density pattern are associated with each other, the plurality of image elements For each, density decoding means for decoding density information included in the code data received by the receiving means, and obtaining a binary density pattern corresponding to the density value of each of the plurality of image elements;
Decoding comprising: data generation means for generating image data for each of the plurality of image elements using the shape information decoded by the shape decoding means and the density information decoded by the density decoding means Device.
前記データ生成手段は、前記形状復号化手段により復号化された反転形状パターンと、前記濃度復号化手段により取得された複数の二値濃度パターンのいずれかとを用いて、前記複数の画像要素のいずれかの画像データを生成する
請求項に記載の復号化装置。
The data generation means uses any one of the plurality of image elements by using the inverted shape pattern decoded by the shape decoding means and any of the plurality of binary density patterns acquired by the density decoding means. The decoding device according to claim 3 , wherein the image data is generated.
前記データ生成手段は、前記形状復号化手段により復号化された形状パターンと、前記濃度復号化手段により取得された複数の二値濃度パターンのいずれかとを用いて、前記複数の画像要素のうち第1の画像要素の画像データを生成し、前記形状復号化手段により復号化された反転形状パターンと、前記濃度復号化手段により取得された複数の二値濃度パターンの他のいずれかとを用いて、前記複数の画像要素のうち第2の画像要素の画像データを生成する
請求項に記載の復号化装置。
The data generation means uses the shape pattern decoded by the shape decoding means and any one of the plurality of binary density patterns acquired by the density decoding means, among the plurality of image elements. Using the inverted shape pattern decoded by the shape decoding unit and one of the plurality of binary density patterns acquired by the density decoding unit, generating image data of one image element, The decoding device according to claim 3 , wherein image data of a second image element among the plurality of image elements is generated.
前記データ生成手段は、前記濃度復号化手段により取得された複数の二値濃度パターンのいずれかを少なくとも2回用いて画像要素の画像データを生成する
請求項3乃至5のいずれかに記載の復号化装置。
The decoding according to any one of claims 3 to 5 , wherein the data generation unit generates image data of an image element by using any one of a plurality of binary density patterns acquired by the density decoding unit at least twice. Device.
前記データ生成手段は、前記受付手段により受け付けられた符号データに対応する画像データと、前記濃度復号化手段により取得された複数の二値濃度パターンのうち第1の二値濃度パターンとを排他的論理和演算し、この排他的論理和演算後の画像データと、前記形状復号化手段により復号化されたパターンのうち前記第1の二値濃度パターンに対応する画像要素の形状パターンとを積演算し、この積演算後の画像データと、前記濃度復号化手段により取得された複数の二値濃度パターンのうち第2の二値濃度パターンとを排他的論理和演算し、この排他的論理和演算後の画像データと、前記形状復号化手段により復号化されたパターンのうち前記第2の二値濃度パターンに対応する画像要素の反転形状パターンとを積演算し、この積演算後の画像データと、前記第2の二値濃度パターンとを排他的論理和演算する
請求項に記載の復号化装置。
The data generating means exclusively outputs image data corresponding to the code data received by the receiving means and a first binary density pattern among a plurality of binary density patterns acquired by the density decoding means. Logical OR operation, product operation of the image data after the exclusive OR operation and the shape pattern of the image element corresponding to the first binary density pattern among the patterns decoded by the shape decoding means Then, an exclusive OR operation is performed on the image data after the product operation and the second binary density pattern among the plurality of binary density patterns acquired by the density decoding means, and this exclusive OR operation is performed. A product operation is performed on the subsequent image data and the inverted shape pattern of the image element corresponding to the second binary density pattern among the patterns decoded by the shape decoding means, and the product operation And image data decoding apparatus according to claim 6, exclusive OR operation and said second binary density pattern.
複数の画像要素に関する形状情報と濃度情報とを含む符号データを受け付ける受付手段と、
前記受付手段により受け付けられた符号データに含まれる形状情報を復号化し、前記複数の画像要素それぞれについて、二値の画素から構成される画像要素の形状パターン又はこの形状パターンを構成する二値の画素の値を反転した反転形状パターンを取得する形状復号化手段と、
画像要素の濃度値に対応して網点が規則正しく配置された二値濃度パターンと、この二値濃度パターンを反転した反転二値濃度パターンと、これらのパターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記複数の画像要素それぞれについて、前記受付手段により受け付けられた符号データに含まれる濃度情報を復号化し、前記複数の画像要素それぞれの濃度値に対応する二値濃度パターン又は反転二値濃度パターンを取得する濃度復号化手段と、
前記形状復号化手段により復号化された形状情報と、前記濃度復号化手段により復号化された濃度情報とを用いて、前記複数の画像要素それぞれの画像データを生成するデータ生成手段と
を有する復号化装置。
Receiving means for receiving code data including shape information and density information regarding a plurality of image elements;
The shape information included in the code data received by the receiving means is decoded, and for each of the plurality of image elements, the shape pattern of an image element composed of binary pixels or the binary pixels constituting this shape pattern Shape decoding means for acquiring an inverted shape pattern obtained by inverting the value of
A binary density pattern in which halftone dots are regularly arranged corresponding to the density values of image elements, an inverted binary density pattern obtained by inverting the binary density pattern, and identification information for identifying these patterns are associated with each other. For each of the plurality of image elements, the density information included in the code data received by the receiving unit is decoded using the density dictionary, and a binary density pattern corresponding to the density value of each of the plurality of image elements Or density decoding means for obtaining an inverted binary density pattern;
Decoding comprising: data generation means for generating image data for each of the plurality of image elements using the shape information decoded by the shape decoding means and the density information decoded by the density decoding means Device.
コンピュータを含む符号化装置において、二値の画素から構成される形状パターンと、濃度値に対応して網点が規則正しく配置された二値濃度パターンとから構成された画像要素であって、該画像要素複数受け付ける受付ステップと、
前記受け付けられた複数の画像要素の形状パターンを符号化する形状符号化ステップと、
前記受け付けられた複数の画像要素が互いに重なる場合、いずれかの画像要素について、形状パターンを構成する二値の画素の値を反転する形状反転ステップと、
前記受け付けられた複数の画像要素の二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記受け付けられた複数の画像要素の二値濃度パターンを符号化する濃度符号化ステップと
を前記符号化装置のコンピュータに実行させるプログラム。
In an encoding device including a computer, an image element including a shape pattern composed of binary pixels and a binary density pattern in which halftone dots are regularly arranged corresponding to density values, A reception step for receiving a plurality of elements ;
A shape encoding step of encoding a shape pattern of the accepted plurality of image elements;
A shape inversion step of inverting the value of a binary pixel constituting a shape pattern for any one of the image elements when the received plurality of image elements overlap each other ;
Using the density dictionary in which the binary density pattern of the received plurality of image elements and the identification information for identifying the binary density pattern are associated with each other, the binary density of the received plurality of image elements A program for causing a computer of the encoding apparatus to execute a density encoding step for encoding a pattern.
コンピュータを含む符号化装置において、二値の画素から構成される形状パターンと、濃度値に対応して網点が規則正しく配置された二値濃度パターンとから構成された画像要素であって、該画像要素複数受け付ける受付ステップと、
前記受け付けられた複数の画像要素の形状パターンを符号化する形状符号化ステップと、
前記受け付けられた複数の画像要素の二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記受け付けられた複数の画像要素の二値濃度パターンを符号化する濃度符号化ステップと、
前記受け付けられた複数の画像要素が互いに重なる場合、いずれかの画像要素について、二値濃度パターンを反転する濃度反転ステップと
を前記符号化装置のコンピュータに実行させるプログラム。
In an encoding device including a computer, an image element including a shape pattern composed of binary pixels and a binary density pattern in which halftone dots are regularly arranged corresponding to density values, A reception step for receiving a plurality of elements ;
A shape encoding step of encoding a shape pattern of the accepted plurality of image elements ;
Using the density dictionary in which the binary density pattern of the received plurality of image elements and the identification information for identifying the binary density pattern are associated with each other, the binary density of the received plurality of image elements A density encoding step for encoding the pattern;
A program that causes the computer of the encoding apparatus to execute a density inversion step of inverting a binary density pattern for any one of the image elements when the received plurality of image elements overlap each other .
コンピュータを含む復号化装置において、複数の画像要素に関する形状情報と濃度情報とを含む符号データを受け付ける受付ステップと、
前記受け付けられた符号データに含まれる形状情報を復号化し、前記複数の画像要素それぞれについて、二値の画素から構成される形状パターン又はこの形状パターンを構成する二値の画素の値を反転した反転形状パターンを取得する形状復号化ステップと、
画像要素の濃度値に対応して網点が規則正しく配置された二値濃度パターンと、この二値濃度パターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記複数の画像要素それぞれについて、前記受付手段により受け付けられた符号データに含まれる濃度情報を復号化し、前記複数の画像要素それぞれの濃度値に対応する二値濃度パターンを取得する濃度復号化ステップと、
前記復号化された形状情報と、前記復号化された濃度情報とを用いて、前記複数の画像要素それぞれの画像データを生成するデータ生成ステップ
を前記復号化装置のコンピュータに実行させるプログラム。
In a decoding apparatus including a computer, an accepting step of receiving code data including shape information and density information regarding a plurality of image elements;
The shape information included in the received code data is decoded, and for each of the plurality of image elements, a shape pattern composed of binary pixels or an inversion obtained by inverting the values of the binary pixels constituting the shape pattern A shape decoding step for obtaining a shape pattern;
Using the density dictionary in which the binary density pattern in which halftone dots are regularly arranged corresponding to the density value of the image element and the identification information for identifying the binary density pattern are associated with each other, the plurality of image elements For each, a density decoding step for decoding density information included in the code data received by the receiving means and obtaining a binary density pattern corresponding to the density value of each of the plurality of image elements;
A program that causes a computer of the decoding device to execute a data generation step of generating image data of each of the plurality of image elements using the decoded shape information and the decoded density information.
コンピュータを含む復号化装置において、複数の画像要素に関する形状情報と濃度情報とを含む符号データを受け付ける受付ステップと、
前記受け付けられた符号データに含まれる形状情報を復号化し、前記複数の画像要素それぞれについて、二値の画素から構成される画像要素の形状パターン又はこの形状パターンを構成する二値の画素の値を反転した反転形状パターンを取得する形状復号化ステップと、
画像要素の濃度値に対応して網点が規則正しく配置された二値濃度パターンと、この二値濃度パターンを反転した反転二値濃度パターンと、これらのパターンを識別する識別情報とが互いに対応付けられた濃度辞書を用いて、前記複数の画像要素それぞれについて、前記受け付けられた符号データに含まれる濃度情報を復号化し、前記複数の画像要素それぞれの濃度値に対応する二値濃度パターン又は反転二値濃度パターンを取得する濃度復号化ステップと、
前記復号化された形状情報と、前記復号化された濃度情報とを用いて、前記複数の画像要素それぞれの画像データを生成するデータ生成ステップと
を前記復号化装置のコンピュータに実行させるプログラム。
In a decoding apparatus including a computer, an accepting step of receiving code data including shape information and density information regarding a plurality of image elements;
The shape information included in the received code data is decoded, and for each of the plurality of image elements, a shape pattern of an image element composed of binary pixels or a value of a binary pixel constituting the shape pattern is obtained. A shape decoding step to obtain an inverted inverted shape pattern;
A binary density pattern in which halftone dots are regularly arranged corresponding to the density values of image elements, an inverted binary density pattern obtained by inverting the binary density pattern, and identification information for identifying these patterns are associated with each other. For each of the plurality of image elements, the density information included in the received code data is decoded using the density dictionary, and a binary density pattern or an inverted binary pattern corresponding to the density value of each of the plurality of image elements is decoded. A density decoding step for obtaining a value density pattern;
A program that causes a computer of the decoding apparatus to execute a data generation step of generating image data of each of the plurality of image elements using the decoded shape information and the decoded density information.
JP2005072568A 2005-03-15 2005-03-15 Encoding device, decoding device, encoding method, decoding method, and programs thereof Expired - Fee Related JP4683375B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005072568A JP4683375B2 (en) 2005-03-15 2005-03-15 Encoding device, decoding device, encoding method, decoding method, and programs thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005072568A JP4683375B2 (en) 2005-03-15 2005-03-15 Encoding device, decoding device, encoding method, decoding method, and programs thereof

Publications (2)

Publication Number Publication Date
JP2006261740A JP2006261740A (en) 2006-09-28
JP4683375B2 true JP4683375B2 (en) 2011-05-18

Family

ID=37100545

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005072568A Expired - Fee Related JP4683375B2 (en) 2005-03-15 2005-03-15 Encoding device, decoding device, encoding method, decoding method, and programs thereof

Country Status (1)

Country Link
JP (1) JP4683375B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002223347A (en) * 2001-01-25 2002-08-09 Dainippon Printing Co Ltd Print data compressing and transmitting method, compression encoding method, compression transmission system and rip device
JP2002354269A (en) * 2001-05-30 2002-12-06 Ricoh Co Ltd Image encoding device, its method, program, and recording medium recording the program
JP2003348358A (en) * 2002-05-23 2003-12-05 Fuji Xerox Co Ltd Image processing apparatus
JP2004021886A (en) * 2002-06-20 2004-01-22 Fuji Xerox Co Ltd Image processing device and image processing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10150575A (en) * 1996-11-20 1998-06-02 Toshiba Corp System and method for processing image
JPH10336643A (en) * 1997-05-29 1998-12-18 Sharp Corp Image coder and image decoder
JPH1188883A (en) * 1997-07-11 1999-03-30 Matsushita Electric Ind Co Ltd Digital image encoding method and digital image decoding method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002223347A (en) * 2001-01-25 2002-08-09 Dainippon Printing Co Ltd Print data compressing and transmitting method, compression encoding method, compression transmission system and rip device
JP2002354269A (en) * 2001-05-30 2002-12-06 Ricoh Co Ltd Image encoding device, its method, program, and recording medium recording the program
JP2003348358A (en) * 2002-05-23 2003-12-05 Fuji Xerox Co Ltd Image processing apparatus
JP2004021886A (en) * 2002-06-20 2004-01-22 Fuji Xerox Co Ltd Image processing device and image processing method

Also Published As

Publication number Publication date
JP2006261740A (en) 2006-09-28

Similar Documents

Publication Publication Date Title
JP3814456B2 (en) Image processing apparatus and method
JP2009225422A (en) Image encoding apparatus, image processing apparatus, and control method thereof
JP2007336226A (en) Information processor, control method, and computer program
US7760399B2 (en) Method and system for encoding color images to black-and-white bitmaps and decoding color images
JP4364809B2 (en) Image processing apparatus, image processing method, program, and recording medium
US20060182358A1 (en) Coding apparatus, decoding apparatus, data file, coding method, decoding method, and programs thereof
JPH11168632A (en) Binary expression processing method for dither image, method for uncompressing dither image expressed in compression binary representation and compression and uncompression system for dither image
JP4683374B2 (en) Encoding apparatus, encoding method, and program
JP4683375B2 (en) Encoding device, decoding device, encoding method, decoding method, and programs thereof
JP4371026B2 (en) Printing system and printer
Memon et al. Lossless compression of RGB color images
JP4635662B2 (en) Encoding apparatus, encoding method, and program
KR101454208B1 (en) Method and apparatus for encoding/decoding halftone image
JP4465654B2 (en) Image dictionary creation device, encoding device, encoding method and program thereof
JP4735806B2 (en) Encoding device, decoding device, and programs thereof
JP2003219187A (en) Image processing method and image processor
JP4446797B2 (en) Document restoration apparatus, document restoration method, document restoration program, and recording medium
JP4753006B2 (en) Image encoding apparatus, image decoding apparatus, and programs thereof
JP4753007B2 (en) Image encoding apparatus, image decoding apparatus, and programs thereof
JP4461481B2 (en) Image dictionary creation device, encoding device, data file, decoding device, encoding method, decoding method, and programs thereof
JPH10150575A (en) System and method for processing image
JP7185451B2 (en) Image processing device, image processing method, and program
JP4311663B2 (en) Document conversion apparatus, document conversion method, document conversion program, and recording medium
JP6855722B2 (en) Image processing equipment and programs
JP4382828B2 (en) Line image separation method, image compression method, and image processing apparatus using the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100809

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100811

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101008

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101027

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101224

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

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

Free format text: PAYMENT UNTIL: 20140218

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110130

LAPS Cancellation because of no payment of annual fees