JP6481301B2 - Image processing apparatus and image processing program - Google Patents

Image processing apparatus and image processing program Download PDF

Info

Publication number
JP6481301B2
JP6481301B2 JP2014187377A JP2014187377A JP6481301B2 JP 6481301 B2 JP6481301 B2 JP 6481301B2 JP 2014187377 A JP2014187377 A JP 2014187377A JP 2014187377 A JP2014187377 A JP 2014187377A JP 6481301 B2 JP6481301 B2 JP 6481301B2
Authority
JP
Japan
Prior art keywords
module
quantization
block
image
feature
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.)
Active
Application number
JP2014187377A
Other languages
Japanese (ja)
Other versions
JP2016063282A (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 JP2014187377A priority Critical patent/JP6481301B2/en
Publication of JP2016063282A publication Critical patent/JP2016063282A/en
Application granted granted Critical
Publication of JP6481301B2 publication Critical patent/JP6481301B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

本発明は、画像処理装置及び画像処理プログラムに関する。   The present invention relates to an image processing apparatus and an image processing program.

特許文献1には、圧縮処理による画質劣化を抑えることを課題とし、画素毎に量子化の方法を決定し、当該決定した方法に従って画素単位で画像のデータを量子化し、当該量子化された画像のデータを量子化の方法に拘わらず画像メモリの同じBTC(Block Truncation Coding)プレーン領域に保持させるとともに、この量子化されたデータに対応して、用いた量子化の方法を識別するための識別データを画像メモリに保持させることが開示されている。   In Patent Document 1, it is an object to suppress degradation in image quality due to compression processing, a quantization method is determined for each pixel, image data is quantized in units of pixels according to the determined method, and the quantized image is determined. Is stored in the same BTC (Block Truncation Coding) plane area of the image memory regardless of the quantization method, and identification for identifying the quantization method used corresponding to the quantized data It is disclosed to store data in an image memory.

特開2009−094619号公報JP 2009-094619 A

先行技術では、画像の圧縮にあたってBTCプレーン領域情報を必要としていた。
本発明は、BTCプレーン領域情報を必要とせずに、画像を固定長符号化するようにした画像処理装置及び画像処理プログラムを提供することを目的としている。
In the prior art, BTC plane area information is required for image compression.
An object of the present invention is to provide an image processing apparatus and an image processing program that perform fixed-length encoding of an image without requiring BTC plane region information.

かかる目的を達成するための本発明の要旨とするところは、次の各項の発明に存する。
請求項1の発明は、画像をブロックに分割する分割手段と、前記ブロックを複数の方法で量子化する量子化手段と、前記ブロックの特徴を抽出する特徴抽出手段と、前記特徴に対応する前記量子化手段による量子化結果を選択する選択手段と、前記選択手段によって選択された量子化結果を固定長符号化する符号化手段を具備し、前記量子化手段は、量子化結果において解像度と階調とがトレードオフの関係になるように、複数の方法で量子化し、前記特徴抽出手段は、前記ブロックのダイナミックレンジと該ブロック内の色の数と該色の分布の型を特徴として抽出することを特徴とする画像処理装置である。
The gist of the present invention for achieving the object lies in the inventions of the following items.
The invention of claim 1 is a dividing means for dividing an image into blocks, a quantizing means for quantizing the block by a plurality of methods, a feature extracting means for extracting features of the block, and the features corresponding to the features Selection means for selecting a quantization result by the quantization means, and encoding means for fixed-length encoding the quantization result selected by the selection means , wherein the quantization means has a resolution and a scale in the quantization result. Quantization is performed by a plurality of methods so that the key is in a trade-off relationship, and the feature extraction unit extracts the dynamic range of the block, the number of colors in the block, and the type of color distribution as features. An image processing apparatus characterized by this.

請求項の発明は、前記量子化結果の型を抽出する抽出手段をさらに具備し、前記選択手段は、前記型と前記特徴に対応する前記量子化結果を選択することを特徴とする請求項1に記載の画像処理装置である。 The invention of claim 2 further comprises extraction means for extracting a type of the quantization result, and the selection means selects the quantization result corresponding to the type and the feature. The image processing apparatus according to 1 .

請求項の発明は、前記ブロックと前記量子化結果との間の距離を算出する算出手段をさらに具備し、前記選択手段は、前記距離と前記特徴に対応する前記量子化結果を選択することを特徴とする請求項1又は2に記載の画像処理装置である。 The invention of claim 3 further comprises a calculation means for calculating a distance between the block and the quantization result, and the selection means selects the quantization result corresponding to the distance and the feature. the image processing apparatus according to claim 1 or 2, characterized in.

請求項の発明は、コンピュータを、画像をブロックに分割する分割手段と、前記ブロックを複数の方法で量子化する量子化手段と、前記ブロックの特徴を抽出する特徴抽出手段と、前記特徴に対応する前記量子化手段による量子化結果を選択する選択手段と、前記選択手段によって選択された量子化結果を固定長符号化する符号化手段として機能させ、前記量子化手段は、量子化結果において解像度と階調とがトレードオフの関係になるように、複数の方法で量子化し、前記特徴抽出手段は、前記ブロックのダイナミックレンジと該ブロック内の色の数と該色の分布の型を特徴として抽出する画像処理プログラムである。 According to a fourth aspect of the present invention, there is provided a computer comprising: a dividing unit that divides an image into blocks; a quantizing unit that quantizes the block by a plurality of methods; a feature extracting unit that extracts features of the block; A selecting unit that selects a quantization result corresponding to the quantization unit; and a coding unit that performs fixed-length encoding on the quantization result selected by the selecting unit . Quantization is performed by a plurality of methods so that the resolution and gradation are in a trade-off relationship, and the feature extraction unit is characterized by the dynamic range of the block, the number of colors in the block, and the type of color distribution. Is an image processing program to be extracted .

請求項1の画像処理装置によれば、BTCプレーン領域情報を必要とせずに、画像を固定長符号化することができる。   According to the image processing apparatus of the first aspect, the image can be fixed-length encoded without requiring the BTC plane area information.

請求項の画像処理装置によれば、量子化結果の型とブロックの特徴に対応する量子化結果を選択することができる。 According to the image processing apparatus of the second aspect, the quantization result corresponding to the type of the quantization result and the feature of the block can be selected.

請求項の画像処理装置によれば、ブロックと量子化結果との間の距離とブロックの特徴に対応する量子化結果を選択することができる。 According to the image processing apparatus of the third aspect, it is possible to select the quantization result corresponding to the distance between the block and the quantization result and the feature of the block.

請求項の画像処理プログラムによれば、BTCプレーン領域情報を必要とせずに、画像を固定長符号化することができる。 According to the image processing program of the fourth aspect, the image can be fixed-length encoded without requiring the BTC plane area information.

第1の実施の形態の構成例についての概念的なモジュール構成図である。It is a conceptual module block diagram about the structural example of 1st Embodiment. 第1の実施の形態による処理例を示す説明図である。It is explanatory drawing which shows the process example by 1st Embodiment. 第1の実施の形態による処理例を示す説明図である。It is explanatory drawing which shows the process example by 1st Embodiment. 第1の実施の形態による処理例を示すフローチャートである。It is a flowchart which shows the process example by 1st Embodiment. 第1の実施の形態による処理例を示すフローチャートである。It is a flowchart which shows the process example by 1st Embodiment. 特徴・量子化ID対応テーブルのデータ構造例を示す説明図である。It is explanatory drawing which shows the example of a data structure of a characteristic and quantization ID corresponding table. 第1の実施の形態による処理例を示すフローチャートである。It is a flowchart which shows the process example by 1st Embodiment. 本実施の形態を利用したシステム構成例を示す説明図である。It is explanatory drawing which shows the system configuration example using this Embodiment. 第2の実施の形態の構成例についての概念的なモジュール構成図である。It is a conceptual module block diagram about the structural example of 2nd Embodiment. 第2の実施の形態による処理例を示す説明図である。It is explanatory drawing which shows the process example by 2nd Embodiment. 特徴・パターン対応テーブルのデータ構造例を示す説明図である。It is explanatory drawing which shows the example of a data structure of a feature and pattern correspondence table. 第3の実施の形態の構成例についての概念的なモジュール構成図である。It is a conceptual module block diagram about the structural example of 3rd Embodiment. 形状識別子・代表画素値定義テーブルのデータ構造例を示す説明図である。It is explanatory drawing which shows the example of a data structure of a shape identifier and representative pixel value definition table. 第4の実施の形態の構成例についての概念的なモジュール構成図である。It is a notional module block diagram about the structural example of 4th Embodiment. 本実施の形態を実現するコンピュータのハードウェア構成例を示すブロック図である。It is a block diagram which shows the hardware structural example of the computer which implement | achieves this Embodiment.

以下、図面に基づき本発明を実現するにあたっての好適な各種の実施の形態の例を説明する。
<<第1の実施の形態>>
図1は、第1の実施の形態の構成例についての概念的なモジュール構成図を示している。
なお、モジュールとは、一般的に論理的に分離可能なソフトウェア(コンピュータ・プログラム)、ハードウェア等の部品を指す。したがって、本実施の形態におけるモジュールはコンピュータ・プログラムにおけるモジュールのことだけでなく、ハードウェア構成におけるモジュールも指す。それゆえ、本実施の形態は、それらのモジュールとして機能させるためのコンピュータ・プログラム(コンピュータにそれぞれの手順を実行させるためのプログラム、コンピュータをそれぞれの手段として機能させるためのプログラム、コンピュータにそれぞれの機能を実現させるためのプログラム)、システム及び方法の説明をも兼ねている。ただし、説明の都合上、「記憶する」、「記憶させる」、これらと同等の文言を用いるが、これらの文言は、実施の形態がコンピュータ・プログラムの場合は、記憶装置に記憶させる、又は記憶装置に記憶させるように制御するの意である。また、モジュールは機能に一対一に対応していてもよいが、実装においては、1モジュールを1プログラムで構成してもよいし、複数モジュールを1プログラムで構成してもよく、逆に1モジュールを複数プログラムで構成してもよい。また、複数モジュールは1コンピュータによって実行されてもよいし、分散又は並列環境におけるコンピュータによって1モジュールが複数コンピュータで実行されてもよい。なお、1つのモジュールに他のモジュールが含まれていてもよい。また、以下、「接続」とは物理的な接続の他、論理的な接続(データの授受、指示、データ間の参照関係等)の場合にも用いる。「予め定められた」とは、対象としている処理の前に定まっていることをいい、本実施の形態による処理が始まる前はもちろんのこと、本実施の形態による処理が始まった後であっても、対象としている処理の前であれば、そのときの状況・状態に応じて、又はそれまでの状況・状態に応じて定まることの意を含めて用いる。「予め定められた値」が複数ある場合は、それぞれ異なった値であってもよいし、2以上の値(もちろんのことながら、すべての値も含む)が同じであってもよい。また、「Aである場合、Bをする」という意味を有する記載は、「Aであるか否かを判断し、Aであると判断した場合はBをする」の意味で用いる。ただし、Aであるか否かの判断が不要である場合を除く。
また、システム又は装置とは、複数のコンピュータ、ハードウェア、装置等がネットワーク(一対一対応の通信接続を含む)等の通信手段で接続されて構成されるほか、1つのコンピュータ、ハードウェア、装置等によって実現される場合も含まれる。「装置」と「システム」とは、互いに同義の用語として用いる。もちろんのことながら、「システム」には、人為的な取り決めである社会的な「仕組み」(社会システム)にすぎないものは含まない。
また、各モジュールによる処理毎に又はモジュール内で複数の処理を行う場合はその処理毎に、対象となる情報を記憶装置から読み込み、その処理を行った後に、処理結果を記憶装置に書き出すものである。したがって、処理前の記憶装置からの読み込み、処理後の記憶装置への書き出しについては、説明を省略する場合がある。なお、ここでの記憶装置としては、ハードディスク、RAM(Random Access Memory)、外部記憶媒体、通信回線を介した記憶装置、CPU(Central Processing Unit)内のレジスタ等を含んでいてもよい。
Hereinafter, examples of various preferred embodiments for realizing the present invention will be described with reference to the drawings.
<< First Embodiment >>
FIG. 1 is a conceptual module configuration diagram of a configuration example according to the first embodiment.
The module generally refers to components such as software (computer program) and hardware that can be logically separated. Therefore, the module in the present embodiment indicates not only a module in a computer program but also a module in a hardware configuration. Therefore, the present embodiment is a computer program for causing these modules to function (a program for causing a computer to execute each procedure, a program for causing a computer to function as each means, and a function for each computer. This also serves as an explanation of the program and system and method for realizing the above. However, for the sake of explanation, the words “store”, “store”, and equivalents thereof are used. However, when the embodiment is a computer program, these words are stored in a storage device or stored in memory. It is the control to be stored in the device. Modules may correspond to functions one-to-one, but in mounting, one module may be configured by one program, or a plurality of modules may be configured by one program, and conversely, one module May be composed of a plurality of programs. The plurality of modules may be executed by one computer, or one module may be executed by a plurality of computers in a distributed or parallel environment. Note that one module may include other modules. Hereinafter, “connection” is used not only for physical connection but also for logical connection (data exchange, instruction, reference relationship between data, etc.). “Predetermined” means that the process is determined before the target process, and not only before the process according to this embodiment starts but also after the process according to this embodiment starts. In addition, if it is before the target processing, it is used in accordance with the situation / state at that time or with the intention to be decided according to the situation / state up to that point. When there are a plurality of “predetermined values”, the values may be different from each other, or two or more values (of course, including all values) may be the same. In addition, the description having the meaning of “do B when it is A” is used in the meaning of “determine whether or not it is A and do B when it is judged as A”. However, the case where it is not necessary to determine whether or not A is excluded.
In addition, the system or device is configured by connecting a plurality of computers, hardware, devices, and the like by communication means such as a network (including one-to-one correspondence communication connection), etc., and one computer, hardware, device. The case where it implement | achieves by etc. is included. “Apparatus” and “system” are used as synonymous terms. Of course, the “system” does not include a social “mechanism” (social system) that is an artificial arrangement.
In addition, when performing a plurality of processes in each module or in each module, the target information is read from the storage device for each process, and the processing result is written to the storage device after performing the processing. is there. Therefore, description of reading from the storage device before processing and writing to the storage device after processing may be omitted. Here, the storage device may include a hard disk, a RAM (Random Access Memory), an external storage medium, a storage device via a communication line, a register in a CPU (Central Processing Unit), and the like.

本実施の形態である画像処理装置の圧縮装置100は、画像105を圧縮するものであって、図1の例に示すように、ブロック分割モジュール110、複数量子化モジュール115、特徴抽出モジュール120、選択モジュール125、固定長符号化モジュール130を有している。また、本実施の形態である画像処理装置の伸長装置150は、圧縮装置100によって圧縮された符号132を復号して画像195を生成するものであって、図1の例に示すように、固定長復号モジュール155、識別モジュール160、逆量子化モジュール165を有している。   The compression apparatus 100 of the image processing apparatus according to the present embodiment compresses an image 105. As shown in the example of FIG. 1, a block division module 110, a multiple quantization module 115, a feature extraction module 120, A selection module 125 and a fixed-length encoding module 130 are included. Further, the decompression device 150 of the image processing apparatus according to the present embodiment decodes the code 132 compressed by the compression apparatus 100 to generate an image 195, and is fixed as shown in the example of FIG. A long decoding module 155, an identification module 160, and an inverse quantization module 165 are provided.

圧縮装置100のブロック分割モジュール110は、複数量子化モジュール115、特徴抽出モジュール120と接続されており、画像105を受け付け、複数量子化モジュール115と特徴抽出モジュール120にブロック112を渡す。ブロック分割モジュール110は、画像105をブロックに分割する。画像を受け付けるとは、例えば、スキャナ、カメラ等で画像を読み込むこと、ファックス等で通信回線を介して外部機器から画像を受信すること、ハードディスク(コンピュータに内蔵されているものの他に、ネットワークを介して接続されているもの等を含む)等に記憶されている画像を読み出すこと、他の情報処理装置から印刷用の画像を受け付けること等が含まれる。画像は、多値画像(カラー画像を含む)である。受け付ける画像は、1枚であってもよいし、複数枚であってもよい。また、画像の内容として、ビジネスに用いられる文書、広告宣伝用のパンフレット等であってもよい。ブロックは、矩形であって、一般的には正方形であるが、これに限る必要はない。
図2(A)に示す例は、ブロック分割モジュール110の処理結果である。例えば、「階調:8bit−解像度(サブブロック):1×1」(以下、「8bit−1×1」と表現する)である。
The block division module 110 of the compression apparatus 100 is connected to the multiple quantization module 115 and the feature extraction module 120, receives the image 105, and passes the block 112 to the multiple quantization module 115 and the feature extraction module 120. The block division module 110 divides the image 105 into blocks. Accepting an image means, for example, reading an image with a scanner, a camera, etc., receiving an image from an external device via a communication line by fax, etc., a hard disk (in addition to what is built in a computer, via a network) And the like, and the like, and receiving print images from other information processing apparatuses. The image is a multivalued image (including a color image). One image may be received or a plurality of images may be received. Further, the contents of the image may be a document used for business, a pamphlet for advertisement, or the like. A block is rectangular and generally square, but need not be limited to this.
The example illustrated in FIG. 2A is a processing result of the block division module 110. For example, “gradation: 8 bits-resolution (subblock): 1 × 1” (hereinafter referred to as “8 bits−1 × 1”).

複数量子化モジュール115は、ブロック分割モジュール110、選択モジュール125と接続されており、ブロック分割モジュール110よりブロック112を受け取り、選択モジュール125に量子化結果117を渡す。複数量子化モジュール115は、ブロック分割モジュール110によって分割されたブロック112を複数の方法で量子化する。ここで「複数の方法」は、それぞれ異なっている。例えば、複数量子化モジュール115は、量子化結果において解像度と階調とがトレードオフの関係になるように、複数の方法で量子化するようにしてもよい。この場合、量子化結果117は、ブロック112を解像度と階調でトレードオフした複数の表現になる。ここで「トレードオフの関係」とは、二律背反の関係をいい、解像度を高めるためには、階調を低くする必要があり、逆に、階調を高めるためには、解像度を低くしなければならないという関係をいう。
図2(B)、(C)、(D)に示す例は、複数量子化モジュール115による複数(3つ)の処理結果を示す。例えば、図2(B)は、1bit−1×1(階調のbit数:1、解像度の大きさ:元の画素と同じ大きさ)であり、図2(C)は、4bit−2×2(階調のbit数:4、解像度の大きさ:元の画素の2(幅)×2(高さ)の大きさ)であり、図2(D)は、8bit−2×4(階調のbit数:8、解像度の大きさ:元の画素の2(幅)×4(高さ))である。
The multiple quantization module 115 is connected to the block division module 110 and the selection module 125, receives the block 112 from the block division module 110, and passes the quantization result 117 to the selection module 125. The multiple quantization module 115 quantizes the block 112 divided by the block division module 110 by a plurality of methods. Here, the “plurality of methods” are different. For example, the multiple quantization module 115 may perform the quantization by a plurality of methods so that the resolution and the gradation have a trade-off relationship in the quantization result. In this case, the quantization result 117 becomes a plurality of expressions obtained by trade-offing the block 112 by resolution and gradation. Here, the “trade-off relationship” means a trade-off relationship. To increase the resolution, it is necessary to lower the gradation. Conversely, to increase the gradation, the resolution must be decreased. It means the relationship of not becoming.
The examples shown in FIGS. 2B, 2 </ b> C, and 2 </ b> D show a plurality (three) of processing results by the plurality of quantization modules 115. For example, FIG. 2B shows 1 bit-1 × 1 (number of gradation bits: 1, resolution size: same size as the original pixel), and FIG. 2C shows 4 bits−2 × 2 (number of gradation bits: 4, resolution size: 2 (width) × 2 (height) size of the original pixel), FIG. 2D shows 8 bits-2 × 4 (floor The number of key bits is 8, and the resolution is 2 (width) × 4 (height) of the original pixel.

特徴抽出モジュール120は、ブロック分割モジュール110、選択モジュール125と接続されており、ブロック分割モジュール110よりブロック112を受け取り、選択モジュール125に特徴122を渡す。特徴抽出モジュール120は、ブロック分割モジュール110によって分割されたブロック112の特徴を抽出する。また、ブロック毎に特徴を抽出する。例えば、特徴抽出モジュール120は、ブロック112のダイナミックレンジを特徴として抽出するようにしてもよい。ダイナミックレンジとは、対象としているブロック内での画素値の幅(最大値と最小値によって定まる幅)をいう。   The feature extraction module 120 is connected to the block division module 110 and the selection module 125, receives the block 112 from the block division module 110, and passes the feature 122 to the selection module 125. The feature extraction module 120 extracts the features of the block 112 divided by the block division module 110. Also, features are extracted for each block. For example, the feature extraction module 120 may extract the dynamic range of the block 112 as a feature. The dynamic range refers to the width of a pixel value in a target block (a width determined by the maximum value and the minimum value).

選択モジュール125は、複数量子化モジュール115、特徴抽出モジュール120、固定長符号化モジュール130と接続されており、複数量子化モジュール115より量子化結果117を、特徴抽出モジュール120より特徴122を受け取り、固定長符号化モジュール130に「ID+量子化結果」127を渡す。選択モジュール125は、特徴抽出モジュール120によって抽出された特徴122に対応する複数量子化モジュール115による量子化結果117を選択する。つまり、複数の量子化結果から1つのブロックに対応するものを選択する。また、選択処理の結果として、量子化結果の他に、量子化方法又は量子化結果の表現方法を示す情報であるID(IDentification)を含めてもよい。   The selection module 125 is connected to the multiple quantization module 115, the feature extraction module 120, and the fixed length encoding module 130. The selection module 125 receives the quantization result 117 from the multiple quantization module 115 and the feature 122 from the feature extraction module 120. “ID + quantization result” 127 is passed to the fixed-length encoding module 130. The selection module 125 selects the quantization result 117 by the multiple quantization module 115 corresponding to the feature 122 extracted by the feature extraction module 120. That is, the one corresponding to one block is selected from a plurality of quantization results. In addition to the quantization result, an ID (IDentification) that is information indicating a quantization method or a method of expressing the quantization result may be included as a result of the selection process.

固定長符号化モジュール130は、選択モジュール125と接続されており、選択モジュール125より「ID+量子化結果」127を受け取り、符号132を出力する。固定長符号化モジュール130は、選択モジュール125によって選択された量子化結果を固定長符号化する。また、固定長符号化モジュール130は、選択モジュール125によって選択された「ID+量子化結果」127を固定長符号化してもよい。固定長符号化であるので、1つのブロックに対する符号132は、一定の長さとなる。固定長符号化は、既存の技術を用いればよい。固定長符号化モジュール130による処理結果例を図2(F)、(G)、(H)に示す。なお、図2(E)に示す例は、原画の1ブロックのビット表現を示したものであり、1画素8bitが16個(計128bit)連続している。図2(F)に示す例は、図2(B)に対応したビット表現を示したものであり、固定長符号化処理の結果として、代表値1画素1bitが16個連続しており、ID(ID0:00)として2bitを付加したものである(計18bit)。なお、IDのビット数は、種類数を表現できるビット数以上であればよい。この例では、ID0、ID1、ID2の3種類のため、2ビット用いることになる。図2(G)に示す例は、図2(C)に対応したビット表現を示したものであり、固定長符号化処理の結果として、代表値1画素4bitが4個連続しており、ID(ID1:01)として2bitを付加したものである(計18bit)。図2(H)に示す例は、図2(D)に対応したビット表現を示したものであり、固定長符号化処理の結果として、代表値1画素8bitが2個連続しており、ID(ID2:10)として2bitを付加したものである(計18bit)。なお、固定長符号化処理の結果とIDとの位置関係は、図示した以外のもの(例えば、先頭に挿入する等)であってもよい。   The fixed-length encoding module 130 is connected to the selection module 125, receives “ID + quantization result” 127 from the selection module 125, and outputs a code 132. The fixed length encoding module 130 performs fixed length encoding on the quantization result selected by the selection module 125. The fixed-length encoding module 130 may perform fixed-length encoding on the “ID + quantization result” 127 selected by the selection module 125. Since it is fixed length coding, the code 132 for one block has a fixed length. For the fixed-length encoding, an existing technique may be used. Examples of processing results by the fixed-length encoding module 130 are shown in FIGS. Note that the example shown in FIG. 2E shows a bit representation of one block of the original image, and 16 pixels of 8 bits (total 128 bits) are continuous. The example shown in FIG. 2 (F) shows a bit representation corresponding to FIG. 2 (B). As a result of the fixed-length encoding process, 16 representative values 1 pixel 1 bit are continuous, and ID 2 bits are added as (ID 0:00) (18 bits in total). It should be noted that the number of ID bits may be equal to or greater than the number of bits that can represent the number of types. In this example, since there are three types of ID0, ID1, and ID2, 2 bits are used. The example shown in FIG. 2 (G) shows a bit representation corresponding to FIG. 2 (C). As a result of the fixed-length encoding process, four representative values of one pixel and 4 bits are consecutive. 2 bits are added as (ID1: 01) (18 bits in total). The example shown in FIG. 2 (H) shows a bit representation corresponding to FIG. 2 (D). As a result of the fixed-length encoding process, two representative values of one pixel 8 bits are continuous, and the ID 2 bits are added as (ID2: 10) (18 bits in total). It should be noted that the positional relationship between the result of the fixed-length encoding process and the ID may be other than shown (for example, inserted at the head).

伸長装置150の固定長復号モジュール155は、識別モジュール160と接続されており、符号132を受け付け、識別モジュール160に「ID+量子化結果」157を渡す。固定長復号モジュール155は、符号132を復号する。もちろんのことながら、復号は、固定長符号化に対応するものである。復号結果は量子化結果となる。また、前述のIDが符号132に含まれている場合は、「ID+量子化結果」157が復号結果となる。
識別モジュール160は、固定長復号モジュール155、逆量子化モジュール165と接続されており、固定長復号モジュール155より「ID+量子化結果」157を受け取り、逆量子化モジュール165に量子化結果162を渡す。識別モジュール160は、「ID+量子化結果」157から前述のIDを取り出す。
The fixed-length decoding module 155 of the decompression device 150 is connected to the identification module 160, accepts the code 132, and passes “ID + quantization result” 157 to the identification module 160. The fixed length decoding module 155 decodes the code 132. Of course, decoding corresponds to fixed length coding. The decoding result is a quantization result. When the above-described ID is included in the code 132, “ID + quantization result” 157 is a decoding result.
The identification module 160 is connected to the fixed length decoding module 155 and the inverse quantization module 165, receives the “ID + quantization result” 157 from the fixed length decoding module 155, and passes the quantization result 162 to the inverse quantization module 165. . The identification module 160 extracts the ID described above from “ID + quantization result” 157.

逆量子化モジュール165は、識別モジュール160と接続されており、識別モジュール160より量子化結果162を受け取り、画像195を出力する。逆量子化モジュール165は、量子化結果162を逆量子化し、元の画像を復元する。また、前述のIDが含まれている場合は、そのIDに応じて、量子化結果162を逆量子化し、元の画像を復元する。ここでの逆量子化方法は、選択モジュール125に選択された量子化結果を生成する量子化方法に対応するものである。
図2(I)、(J)、(K)に示す例は、逆量子化モジュール165がいずれかを識別モジュール160による識別結果によって選択して逆量子化に用いるものである。図2(I)は図2(B)に対応し、図2(J)は図2(C)に対応し、図2(K)は図2(D)に対応する。
図2(L)に示す例は、逆量子化モジュール165による処理結果である。
このように、ブロックの特徴に応じて解像度と階調でトレードオフした固定長表現を選択する。これにより、例えば、IDは2bitであり、量子化結果は16bitであり、符号132として合計18bit[block](16×8/18=7.11)の符号化ができている(前述した図2(F)、(G)、(H)に示す例を参照)。
なお、逆量子化モジュール165は復元した画像195を出力する。画像を出力するとは、例えば、プリンタ等の印刷装置で印刷すること、ディスプレイ等の表示装置に表示すること、ファックス等の画像送信装置で画像を送信すること、画像データベース等の画像記憶装置へ画像を書き込むこと、メモリーカード等の記憶媒体に記憶すること、他の情報処理装置へ渡すこと等が含まれる。
The inverse quantization module 165 is connected to the identification module 160, receives the quantization result 162 from the identification module 160, and outputs an image 195. The inverse quantization module 165 inversely quantizes the quantization result 162 and restores the original image. If the above-mentioned ID is included, the quantization result 162 is inversely quantized according to the ID to restore the original image. The inverse quantization method here corresponds to a quantization method for generating the quantization result selected by the selection module 125.
In the example shown in FIGS. 2I, 2J, and 2K, the inverse quantization module 165 selects one of them based on the identification result by the identification module 160 and uses it for the inverse quantization. 2I corresponds to FIG. 2B, FIG. 2J corresponds to FIG. 2C, and FIG. 2K corresponds to FIG. 2D.
The example illustrated in FIG. 2L is a processing result by the inverse quantization module 165.
In this way, a fixed-length expression traded off between resolution and gradation is selected according to the block characteristics. Thus, for example, the ID is 2 bits, the quantization result is 16 bits, and a total of 18 bits [block] (16 × 8/18 = 7.11) is encoded as the code 132 (FIG. 2 described above). (See examples shown in (F), (G), (H)).
The inverse quantization module 165 outputs the restored image 195. To output an image is, for example, printing on a printing device such as a printer, displaying on a display device such as a display, transmitting an image on an image transmission device such as a fax, or image to an image storage device such as an image database. , Storing in a storage medium such as a memory card, passing to another information processing apparatus, and the like.

図3の例を用いて、実施の形態の原理を説明する。
対象としているブロック毎に、解像度と階調軸に沿ってそのままトレードオフさせると、原画を十分に再現できることが、発明者の研究によって判明した。本実施の形態では、これを利用し、ブロック毎に解像度(平坦表現するサブブロックの大きさ)と階調(ビット数)をトレードオフさせた固定長表現を行う。
図3の例の1行目では、原画のブロックを示している。これは128bitの符号量である。符号化していないので(情報量が削減されていないので)、文字、グレイ文字(階調がある文字)、グラデーション(写真等を含む)を再現した場合は、それぞれ1行目の例に示すようになる。
図3の例の2行目では、1行目の原画のブロックに対して、高解像で低階調(白黒の2値)となる量子化例を示している。これは16bit(1bitの階調×16)の符号量である。この場合、文字に対して適用した場合の再現では画質の問題はない。ただし、グレイ文字に対して適用した場合、色変わり、一部分の消去が生じる場合が多い。また、グラデーションに適用した場合、階調段差が生じる場合が多い。
図3の例の3行目では、1行目の原画のブロックに対して、中解像で中階調となる量子化例を示している。これは16bit(4bitの階調×4)の符号量である。この場合、グレイ文字に対して適用した場合の再現では画質の問題はない。ただし、文字に対して適用した場合、つぶれが生じる場合が多い。また、グラデーションに適用した場合、階調段差が生じる場合が多い。
図3の例の4行目では、1行目の原画のブロックに対して、低解像で高階調となる量子化例を示している。これは16bit(8bitの階調×2)の符号量である。この場合、グラデーションに対して適用した場合の再現では画質の問題はない。ただし、文字に対して適用した場合、つぶれが生じる場合が多い。また、グレイ文字に適用した場合、つぶれが生じる場合が多い。
つまり、量子化によって、文字、グレイ文字、グラデーションのすべてに画質上対応できるものはないが、高解像で低階調、中解像で中階調、低解像で高階調の量子化を行うと、いずれかで画質上対応できる。ブロックの特徴に応じて、これらを使い分けるようにしている。なお、もちろんのことながら、図3に挙げた例(高解像で低階調、中解像で中階調、低解像で高階調)以外の量子化を採用してもよい。
The principle of the embodiment will be described using the example of FIG.
The inventor's research has revealed that the original image can be sufficiently reproduced if the target blocks are traded off as they are along the resolution and gradation axes. In the present embodiment, this is used to perform fixed-length representation in which resolution (size of sub-block to be expressed flatly) and gradation (number of bits) are traded off for each block.
The first line in the example of FIG. 3 shows an original picture block. This is a 128-bit code amount. Since it is not encoded (because the amount of information has not been reduced), characters, gray characters (characters with gradation), and gradations (including photos etc.) are reproduced as shown in the first line example. become.
The second row in the example of FIG. 3 shows a quantization example in which the original image block in the first row has high resolution and low gradation (monochrome binary). This is a code amount of 16 bits (1 bit gradation × 16). In this case, there is no problem with image quality in reproduction when applied to characters. However, when applied to gray characters, there are many cases where the color changes and a part of the erasure occurs. In addition, when applied to gradation, gradation steps often occur.
The third line in the example of FIG. 3 illustrates a quantization example in which the original image block in the first line has a medium gradation with medium resolution. This is a code amount of 16 bits (4 bit gradation × 4). In this case, there is no image quality problem in reproduction when applied to gray characters. However, when applied to characters, collapse often occurs. In addition, when applied to gradation, gradation steps often occur.
The fourth line in the example of FIG. 3 shows an example of quantization that achieves a high gradation with low resolution for the original block in the first line. This is a code amount of 16 bits (8-bit gradation × 2). In this case, there is no problem with image quality in reproduction when applied to gradation. However, when applied to characters, collapse often occurs. In addition, when applied to gray characters, there are many cases where collapse occurs.
In other words, none of the text, gray text, and gradation can be handled by quantization. However, high resolution low gradation, medium resolution medium gradation, and low resolution high gradation quantization. If you do it, you can deal with image quality either way. These are used properly according to the characteristics of the block. Of course, quantization other than the example shown in FIG. 3 (high resolution, low gradation, medium resolution, medium gradation, low resolution, high gradation) may be employed.

図4は、第1の実施の形態による処理例を示すフローチャートである。
ステップS402では、ブロック分割モジュール110は、画像105を受け付ける。
ステップS404では、ブロック分割モジュール110は、画像105をブロッキングする。
ステップS406では、複数量子化モジュール115は、ブロック112に対して、解像度と階調でトレードオフした複数の表現に量子化する。詳細な処理例について図5を用いて後述する。
ステップS408では、特徴抽出モジュール120は、ブロック112の特徴122を抽出する。
ステップS410では、選択モジュール125は、特徴122に応じて、複数の量子化結果117の中から選択する。詳細な処理例について図6を用いて後述する。
ステップS412では、固定長符号化モジュール130は、符号化処理を行う。
ステップS414では、固定長符号化モジュール130は、符号132を伸長装置150に送信する。
FIG. 4 is a flowchart illustrating a processing example according to the first exemplary embodiment.
In step S402, the block division module 110 receives the image 105.
In step S404, the block division module 110 blocks the image 105.
In step S406, the multiple quantization module 115 quantizes the block 112 into a plurality of representations traded off in resolution and gradation. A detailed processing example will be described later with reference to FIG.
In step S408, the feature extraction module 120 extracts the feature 122 of the block 112.
In step S <b> 410, the selection module 125 selects from a plurality of quantization results 117 according to the feature 122. A detailed processing example will be described later with reference to FIG.
In step S412, the fixed length encoding module 130 performs an encoding process.
In step S414, the fixed-length encoding module 130 transmits the code 132 to the decompression device 150.

図5は、第1の実施の形態(複数量子化モジュール115)による処理例を示す2種類のフローチャートである。この例は、中階調で中解像の量子化を行うものである。
図5(A)に示す例は、ブロック分割モジュール110による処理結果であり、原画像の1ブロックを示している。左のフローチャート(ステップS522、ステップS524)はサブサンプリング/量子化を利用したものであり、右のフローチャート(ステップS532、ステップS534)は平均値/量子化を利用したものである。
ステップS522では、サブサンプリング処理を行う。図5(B)に示す例は、ステップS522による処理結果を示している。図5(A)に示す例から画素を選択したものである。
ステップS524では、階調を単純量子化する。図5(C)に示す例は、ステップS524による処理結果を示している。図5(C)に示す例の画素値を量子化したものである。
ステップS532では、サブブロックの平均値を算出する。図5(D)に示す例は、ステップS532による処理結果を示している。図5(A)に示す例から4つの画素の平均値を算出したものである。
ステップS534では、階調を単純量子化する。図5(E)に示す例は、ステップS534による処理結果を示している。図5(D)に示す例の画素値を量子化したものである。
低解像で高階調の量子化も同等の処理で行うことができる。
高解像で低階調の量子化は、既存の2値化処理を行えばよい。
FIG. 5 is two types of flowcharts showing an example of processing according to the first embodiment (multiple quantization module 115). In this example, medium resolution quantization is performed with medium gradation.
The example shown in FIG. 5A is a processing result by the block division module 110, and shows one block of the original image. The left flowchart (step S522, step S524) uses subsampling / quantization, and the right flowchart (step S532, step S534) uses average value / quantization.
In step S522, sub-sampling processing is performed. The example shown in FIG. 5B shows the processing result in step S522. Pixels are selected from the example shown in FIG.
In step S524, the gradation is simply quantized. The example shown in FIG. 5C shows the processing result of step S524. The pixel values in the example shown in FIG. 5C are quantized.
In step S532, the average value of the sub blocks is calculated. The example shown in FIG. 5D shows the processing result in step S532. The average value of four pixels is calculated from the example shown in FIG.
In step S534, the gradation is simply quantized. The example shown in FIG. 5E shows the processing result in step S534. This is a quantized pixel value of the example shown in FIG.
Low resolution and high gradation quantization can be performed by the same processing.
For high-resolution and low-gradation quantization, an existing binarization process may be performed.

図6は、特徴・量子化ID対応テーブル600のデータ構造例を示す説明図である。特徴・量子化ID対応テーブル600は、Dレンジ欄610、ID欄620を有している。Dレンジ欄610は、ダイナミックレンジを記憶している。ID欄620は、そのダイナミックレンジに対応するID(量子化方法又は量子化結果の表現方法を示す情報)を記憶している。
特徴・量子化ID対応テーブル600の1行目は、ダイナミックレンジが255である場合は高解像・低階調(白黒)を示しており(図2(B)参照)、2行目は、ダイナミックレンジが16〜254である場合は中解像・中階調を示しており(図2(C)参照)、3行目は、ダイナミックレンジが16未満である場合は低解像・高階調を示している(図2(D)参照)。もちろんのことながら、この数値は例示であり、3つのIDも例示である。また、特徴抽出モジュール120がダイナミックレンジ以外の特徴を抽出する場合は、その特徴の値に応じてIDを対応させる。
選択モジュール125は、特徴122に対応するDレンジ欄610を検索し、それに対応するID欄620を抽出する。そのIDにしたがって、複数の量子化結果117のいずれか1つを選択する。
FIG. 6 is an explanatory diagram showing an example of the data structure of the feature / quantization ID correspondence table 600. The feature / quantization ID correspondence table 600 includes a D range column 610 and an ID column 620. The D range column 610 stores a dynamic range. The ID column 620 stores an ID (information indicating a quantization method or a quantization result expression method) corresponding to the dynamic range.
The first line of the feature / quantization ID correspondence table 600 indicates high resolution / low gradation (black and white) when the dynamic range is 255 (see FIG. 2B). When the dynamic range is 16 to 254, medium resolution / medium gradation is shown (see FIG. 2C). The third line shows low resolution / high gradation when the dynamic range is less than 16. (See FIG. 2D). Of course, this numerical value is an example, and three IDs are also examples. Further, when the feature extraction module 120 extracts a feature other than the dynamic range, an ID is associated with the feature value.
The selection module 125 searches the D range column 610 corresponding to the feature 122 and extracts the ID column 620 corresponding thereto. One of the plurality of quantization results 117 is selected according to the ID.

図7は、第1の実施の形態(伸長装置150)による処理例を示すフローチャートである。
ステップS702では、固定長復号モジュール155は、符号132を受け付ける。
ステップS704では、固定長復号モジュール155は、復号処理を行う。
ステップS706では、識別モジュール160は、逆量子化のIDを識別する。
ステップS708では、逆量子化モジュール165は、逆量子化する。前述の特徴・量子化ID対応テーブル600を用いて、IDにしたがった逆量子化を行う。
ステップS710では、逆量子化モジュール165は、画像195を出力する。
FIG. 7 is a flowchart illustrating a processing example according to the first exemplary embodiment (decompression apparatus 150).
In step S702, the fixed length decoding module 155 receives the code 132.
In step S704, the fixed length decoding module 155 performs a decoding process.
In step S706, the identification module 160 identifies the ID of inverse quantization.
In step S708, the inverse quantization module 165 performs inverse quantization. Using the above-described feature / quantization ID correspondence table 600, inverse quantization according to the ID is performed.
In step S710, the inverse quantization module 165 outputs the image 195.

図8は、本実施の形態を利用した2つのシステム構成例を示す説明図である。
図8(A)に示す例は、プリンタに利用した例を示している。描画装置810、圧縮装置100、記憶装置820、伸長装置150、印刷器830によって構成している。
描画装置810は、圧縮装置100と接続されている。描画装置810は、印刷すべき画像を生成する。
圧縮装置100は、描画装置810、記憶装置820と接続されている。圧縮装置100は、画像を圧縮する。
記憶装置820は、圧縮装置100、伸長装置150と接続されている。記憶装置820は、圧縮装置100によって圧縮された結果である符号を記憶する。
伸長装置150は、記憶装置820、印刷器830と接続されている。伸長装置150は、記憶装置820内の符号を伸長して、画像を復元する。
印刷器830は、伸長装置150と接続されている。印刷器830は、伸長装置150によって復元された画像を印刷する。
例えば、印刷器830が連帳プリンタである場合、ロール紙を停止することができないので、印刷の速度に遅れることなくデータを伝送し続けねばならない。そのため、圧縮率の保証と圧縮/伸長速度が求められる。圧縮(符号化)には可変長符号化と固定長符号化の2種類あるが、高解像(例えば、1200dpi等)の連帳プリンタでは、高速度(例えば、数[GB/s]程度)が求められるため、可変長符号化での圧縮率保証は現実的ではない。つまり、可変長符号化は試行しないと符号量が決定しないため、圧縮率を保障するのが困難であり、伸長の際の符号切り出しも困難である。そのため、高速プリンタでは、固定長符号化の処理を行う場合が多い。
FIG. 8 is an explanatory diagram showing two system configuration examples using this embodiment.
The example shown in FIG. 8A shows an example used for a printer. The drawing device 810, the compression device 100, the storage device 820, the decompression device 150, and the printer 830 are configured.
The drawing device 810 is connected to the compression device 100. The drawing device 810 generates an image to be printed.
The compression device 100 is connected to a drawing device 810 and a storage device 820. The compression device 100 compresses an image.
The storage device 820 is connected to the compression device 100 and the decompression device 150. The storage device 820 stores a code that is a result of compression by the compression device 100.
The expansion device 150 is connected to the storage device 820 and the printer 830. The decompressing device 150 decompresses the code in the storage device 820 and restores the image.
The printer 830 is connected to the expansion device 150. The printer 830 prints the image restored by the decompression device 150.
For example, when the printer 830 is a continuous-book printer, the roll paper cannot be stopped, and therefore data must be continuously transmitted without delaying the printing speed. Therefore, the guarantee of the compression rate and the compression / decompression speed are required. There are two types of compression (encoding): variable-length encoding and fixed-length encoding, but a high resolution (for example, about several [GB / s]) in a high resolution (for example, 1200 dpi) continuous printer. Therefore, guaranteeing the compression rate in variable length coding is not realistic. In other words, since the code amount is not determined unless variable length coding is tried, it is difficult to guarantee the compression rate, and it is also difficult to cut out the code when decompressing. For this reason, high-speed printers often perform fixed-length encoding processing.

図8(B)に示す例は、画像の送信に利用した例を示している。
圧縮装置100A、圧縮装置100B、伸長装置150A、伸長装置150B、伸長装置150C、伸長装置150Dは、通信回線890を介してそれぞれ接続されている。通信回線890は、無線、有線、これらの組み合わせであってもよく、例えば、通信インフラとしてのインターネット等であってもよい。伸長装置150として、例えば、モバイル端末、PC、プリンタ等があり、圧縮装置100で圧縮された画像を再現する。
The example shown in FIG. 8B shows an example used for image transmission.
The compression device 100A, the compression device 100B, the expansion device 150A, the expansion device 150B, the expansion device 150C, and the expansion device 150D are connected via a communication line 890, respectively. The communication line 890 may be wireless, wired, or a combination thereof, for example, the Internet as a communication infrastructure. Examples of the decompression device 150 include a mobile terminal, a PC, a printer, and the like, and reproduce an image compressed by the compression device 100.

<<第2の実施の形態>>
図9は、第2の実施の形態の構成例についての概念的なモジュール構成図である。
圧縮装置900は、ブロック分割モジュール110、複数量子化モジュール115、パターン抽出モジュール920、特徴抽出モジュール120、選択モジュール125、固定長符号化モジュール130を有している。なお、前述の実施の形態と同種の部位には同一符号を付し重複した説明を省略する(以下、同様)。また、圧縮装置900に対応する伸長装置は、第1の実施の形態の伸長装置150と同等の構成である。
第2の実施の形態の圧縮装置900は、ID選択の精度を上げるため、量子化後の画素値パターンを用いる。例えば、ID=1はID=2より解像度を重視した表現(階調を犠牲にして)であるが、状況によっては高解像とならない場合がある。これを防止するために、圧縮装置900ではダイナミックレンジと量子化後のパターン(ヒストグラム)の組み合わせを用いて選択する。
<< Second Embodiment >>
FIG. 9 is a conceptual module configuration diagram of a configuration example according to the second embodiment.
The compression apparatus 900 includes a block division module 110, a multiple quantization module 115, a pattern extraction module 920, a feature extraction module 120, a selection module 125, and a fixed length encoding module 130. In addition, the same code | symbol is attached | subjected to the site | part of the same kind as the above-mentioned embodiment, and the overlapping description is abbreviate | omitted (hereinafter the same). An expansion device corresponding to the compression device 900 has the same configuration as the expansion device 150 according to the first embodiment.
The compression apparatus 900 according to the second embodiment uses a quantized pixel value pattern in order to increase the accuracy of ID selection. For example, ID = 1 is an expression in which resolution is more important than ID = 2 (at the expense of gradation), but depending on the situation, the resolution may not be high. In order to prevent this, the compression apparatus 900 selects using a combination of a dynamic range and a pattern (histogram) after quantization.

複数量子化モジュール115は、ブロック分割モジュール110、選択モジュール125、パターン抽出モジュール920と接続されており、ブロック分割モジュール110よりブロック112を受け取り、パターン抽出モジュール920、選択モジュール125に量子化結果117を渡す。
パターン抽出モジュール920は、複数量子化モジュール115、選択モジュール125と接続されており、複数量子化モジュール115より量子化結果117を受け取り、選択モジュール125に量子化後のパターン922を渡す。パターン抽出モジュール920は、複数量子化モジュール115による量子化結果117の型(以下、パターンともいう)を抽出する。
選択モジュール125は、複数量子化モジュール115、パターン抽出モジュール920、特徴抽出モジュール120、固定長符号化モジュール130と接続されており、複数量子化モジュール115より量子化結果117を、パターン抽出モジュール920より量子化後のパターン922を、特徴抽出モジュール120より特徴122を受け取り、固定長符号化モジュール130に「ID+量子化結果」127を渡す。選択モジュール125は、パターン抽出モジュール920によって抽出された量子化後のパターン922と特徴抽出モジュール120によって抽出された特徴122に対応する量子化結果117を選択する。
The multiple quantization module 115 is connected to the block division module 110, the selection module 125, and the pattern extraction module 920, receives the block 112 from the block division module 110, and sends the quantization result 117 to the pattern extraction module 920 and the selection module 125. hand over.
The pattern extraction module 920 is connected to the multiple quantization module 115 and the selection module 125, receives the quantization result 117 from the multiple quantization module 115, and passes the quantized pattern 922 to the selection module 125. The pattern extraction module 920 extracts the type (hereinafter also referred to as a pattern) of the quantization result 117 obtained by the multiple quantization module 115.
The selection module 125 is connected to the multiple quantization module 115, the pattern extraction module 920, the feature extraction module 120, and the fixed length encoding module 130, and the quantization result 117 is received from the multiple quantization module 115 and the pattern extraction module 920 is used. The quantized pattern 922 receives the feature 122 from the feature extraction module 120 and passes “ID + quantization result” 127 to the fixed-length encoding module 130. The selection module 125 selects the quantized pattern 922 extracted by the pattern extraction module 920 and the quantization result 117 corresponding to the feature 122 extracted by the feature extraction module 120.

図10は、第2の実施の形態による処理例を示す説明図である。
パターンとして、量子化結果内の画素値が1色、2色、3色、4色と分類することができる。さらに、2色については、全体を等分に分けるもの(図10の例では「向上しない」の右側の例)と市松模様のもの(対角の値が同等であるもの、図10の例では2色市松)がある。
図10(A)の例は、第1の実施の形態のように、特徴122だけで判断した場合は、ID1を選択するパターンの例を示している。そこで、仮にID2を適用した場合と比較して、「ID1(図2(C)参照)はID2(図2(D)参照)よりも解像度が高いか」について検討すると、「向上しない」の場合、「向上する可能性あり」の場合、「向上する」の場合があることを示している。つまり、ID1は4つに分けており、ID2は2つに分けているので、一般的には、ID1が解像度は高いはずである。しかし、全体が1色である場合、2色で全体を等分に分けるもの(図10の例では「向上しない」の2つの例)については、ID1にしたとしても解像度は高くならず、ID2で扱う方が階調面で明らかに有利である。また、2色(2色で全体を等分に分けるもの、市松模様を除く、図10の例では「向上する可能性あり」の左側の例)は、向上する可能性が高く、一方、3色(図10の例では「向上する可能性あり」の右側の例)は、向上する可能性は低い。また、市松模様、4色の場合は、向上する。そこで、図10(B)の例に示すように、閾値Sで、ID1とID2を適用するものを分けている。
FIG. 10 is an explanatory diagram illustrating a processing example according to the second exemplary embodiment.
As a pattern, pixel values in the quantization result can be classified as one color, two colors, three colors, and four colors. Furthermore, for the two colors, the whole is divided equally (the example on the right side of “not improved” in the example of FIG. 10) and the checkered pattern (the diagonal values are equivalent, in the example of FIG. 10) Two-color checkered).
The example of FIG. 10A shows an example of a pattern for selecting ID1 when it is determined only by the feature 122 as in the first embodiment. Therefore, in comparison with the case where ID2 is applied, if “ID1 (see FIG. 2C) has a higher resolution than ID2 (see FIG. 2D)”, the case of “not improved” , “Possibility of improvement” indicates that there is a case of “improvement”. That is, since ID1 is divided into four and ID2 is divided into two, in general, ID1 should have a high resolution. However, in the case where the whole is one color, the resolution is not high even if ID1 is used for the one that divides the whole into two equal parts (two examples of “not improved” in the example of FIG. 10), and ID2 Is clearly advantageous in terms of gradation. In addition, two colors (one that divides the whole into two equal parts, excluding the checkered pattern, the example on the left side of “potentially improved” in the example of FIG. 10) are highly likely to improve, while 3 The color (the example on the right side of “possibly improved” in the example of FIG. 10) is unlikely to improve. In the case of a checkered pattern and four colors, it improves. Therefore, as shown in the example of FIG. 10B, the threshold value S is divided into those to which ID1 and ID2 are applied.

例えば、具体的には、選択モジュール125は、特徴・パターン対応テーブル1100を用いて判断する。図11は、特徴・パターン対応テーブル1100のデータ構造例を示す説明図である。特徴・パターン対応テーブル1100は、Dレンジ欄1110、1色欄1120、2色ID2同欄1130、2色欄1140、市松欄1150、3色欄1160、4色欄1170を有している。Dレンジ欄1110は、ダイナミックレンジを記憶している。1色欄1120は、1色の場合のパターンを記憶している。2色ID2同欄1130は、2色ID2同(2色で全体を等分に分けるもの)の場合のパターンを記憶している。2色欄1140は、2色の場合のパターンを記憶している。市松欄1150は、市松模様の場合のパターンを記憶している。3色欄1160は、3色の場合のパターンを記憶している。4色欄1170は、4色の場合のパターンを記憶している。つまり、特徴122と量子化後のパターン922によって、IDを選択するためのテーブルとなっている。
この特徴・パターン対応テーブル1100の例では、ダイナミックレンジが16〜254の場合(第1の実施の形態では、特徴・量子化ID対応テーブル600によってID1が選択されることとなる)、パターンによってID1又はID2に分かれることになる。
For example, specifically, the selection module 125 makes a determination using the feature / pattern correspondence table 1100. FIG. 11 is an explanatory diagram showing an example of the data structure of the feature / pattern correspondence table 1100. The feature / pattern correspondence table 1100 has a D range column 1110, a 1 color column 1120, a 2 color ID2 same column 1130, a 2 color column 1140, a checkered column 1150, a 3 color column 1160, and a 4 color column 1170. The D range column 1110 stores a dynamic range. The one color column 1120 stores a pattern for one color. The two-color ID2 same column 1130 stores a pattern in the case of two-color ID2 same (the two colors are divided into equal parts). The two-color column 1140 stores a pattern for two colors. The checkered column 1150 stores a pattern in the case of a checkered pattern. A three-color column 1160 stores a pattern for three colors. The 4-color column 1170 stores a pattern for four colors. That is, the table is used to select an ID based on the feature 122 and the pattern 922 after quantization.
In the example of the feature / pattern correspondence table 1100, when the dynamic range is 16 to 254 (in the first embodiment, ID1 is selected by the feature / quantization ID correspondence table 600), the ID1 depends on the pattern. Or it will be divided into ID2.

<<第3の実施の形態>>
図12は、第3の実施の形態の構成例についての概念的なモジュール構成図である。
圧縮装置1200は、ブロック分割モジュール110、複数量子化モジュール115、距離計算モジュール1220、特徴抽出モジュール120、選択モジュール125、固定長符号化モジュール130を有している。
第3の実施の形態の圧縮装置1200は、同じ階調であっても解像度を表現する形状を変えるようにしたものである。図13の例に示すように、第1の実施の形態のIDにID3を加える。そして、ID2とID3の識別に距離を利用する。バリエーションを増やすことでさらなる高画質化ができる。
複数量子化モジュール115は、ブロック分割モジュール110、選択モジュール125、距離計算モジュール1220と接続されており、ブロック分割モジュール110よりブロック112を受け取り、距離計算モジュール1220と選択モジュール125に量子化結果117を渡す。
距離計算モジュール1220は、ブロック分割モジュール110、複数量子化モジュール115、選択モジュール125と接続されており、ブロック分割モジュール110よりブロック112を、複数量子化モジュール115より量子化結果117を受け取り、選択モジュール125に距離1222を渡す。距離計算モジュール1220は、ブロック分割モジュール110によって分割されたブロック112と複数量子化モジュール115による量子化結果117との間の距離を算出する。例えば、式(1)を用いて、多値画像の距離を算出する。ここでPは原画像の画素値を、Qは量子化結果の画素値をインデックスiは画素の座標位置を表している。

Figure 0006481301
選択モジュール125は、複数量子化モジュール115、距離計算モジュール1220、特徴抽出モジュール120、固定長符号化モジュール130と接続されており、複数量子化モジュール115より量子化結果117を、距離計算モジュール1220より距離1222を、特徴抽出モジュール120より特徴122を受け取り、固定長符号化モジュール130に「ID+量子化結果」127を渡す。選択モジュール125は、距離計算モジュール1220によって算出された距離1222と特徴抽出モジュール120によって抽出された特徴122に対応する量子化結果117を選択する。例えば、具体的には、第1の実施の形態と同等の処理を行い、同じ解像度のIDが選択された場合は、ID2とID3の場合の距離Eを比較して、小さい値となるIDを選択すればよい。 << Third Embodiment >>
FIG. 12 is a conceptual module configuration diagram of an exemplary configuration according to the third embodiment.
The compression device 1200 includes a block division module 110, a multiple quantization module 115, a distance calculation module 1220, a feature extraction module 120, a selection module 125, and a fixed length encoding module 130.
The compression apparatus 1200 according to the third embodiment is configured to change the shape expressing the resolution even with the same gradation. As shown in the example of FIG. 13, ID3 is added to the ID of the first embodiment. The distance is used to identify ID2 and ID3. Increasing the variation can improve the image quality.
The multiple quantization module 115 is connected to the block division module 110, the selection module 125, and the distance calculation module 1220, receives the block 112 from the block division module 110, and sends the quantization result 117 to the distance calculation module 1220 and the selection module 125. hand over.
The distance calculation module 1220 is connected to the block division module 110, the multiple quantization module 115, and the selection module 125. The distance calculation module 1220 receives the block 112 from the block division module 110 and the quantization result 117 from the multiple quantization module 115. The distance 1222 is passed to 125. The distance calculation module 1220 calculates the distance between the block 112 divided by the block division module 110 and the quantization result 117 by the multiple quantization module 115. For example, the distance of the multi-valued image is calculated using Expression (1). Here, P represents the pixel value of the original image, Q represents the pixel value of the quantization result, and the index i represents the coordinate position of the pixel.
Figure 0006481301
The selection module 125 is connected to the multiple quantization module 115, the distance calculation module 1220, the feature extraction module 120, and the fixed length encoding module 130, and the quantization result 117 from the multiple quantization module 115 and the distance calculation module 1220. The feature 122 is received from the feature extraction module 120 as the distance 1222, and “ID + quantization result” 127 is passed to the fixed-length encoding module 130. The selection module 125 selects the quantization result 117 corresponding to the distance 1222 calculated by the distance calculation module 1220 and the feature 122 extracted by the feature extraction module 120. For example, specifically, the same processing as in the first embodiment is performed, and when an ID with the same resolution is selected, the distance E in the case of ID2 and ID3 is compared, and an ID that becomes a small value is obtained. Just choose.

第2の実施の形態と第3の実施の形態を組み合わせてもよい。つまり、圧縮装置900に距離計算モジュール1220を付加してもよい。
また、その場合、距離計算モジュール1220による処理を行うか否かを形状識別子・代表画素値定義テーブル1300によって判断するようにしてもよい。図13は、形状識別子・代表画素値定義テーブル1300のデータ構造例を示す説明図である。形状識別子・代表画素値定義テーブル1300は、ID欄1310、形状欄1320を有している。ID欄1310は、IDを記憶している。形状欄1320は、そのIDにおける量子化の形状を記憶している。つまり、量子化結果内は同じ個数である(例えば、ID2とID3)が、形状が異なるものがあるか否かを判断し、ある場合(例えば、ID2とID3がある場合)は、距離計算モジュール1220の処理を行い、選択モジュール125は、距離1222も加えた判断を行うようにしてもよい。ない場合は、距離計算モジュール1220に処理は行わせずに、選択モジュール125は、特徴122と量子化後のパターン922によって判断を行うようにしてもよい。
You may combine 2nd Embodiment and 3rd Embodiment. That is, the distance calculation module 1220 may be added to the compression apparatus 900.
In this case, it may be determined by the shape identifier / representative pixel value definition table 1300 whether or not the processing by the distance calculation module 1220 is performed. FIG. 13 is an explanatory diagram showing an example of the data structure of the shape identifier / representative pixel value definition table 1300. The shape identifier / representative pixel value definition table 1300 has an ID column 1310 and a shape column 1320. The ID column 1310 stores an ID. The shape column 1320 stores the quantization shape in the ID. In other words, it is determined whether there are different shapes in the same number of quantization results (for example, ID2 and ID3), and if there are (for example, there are ID2 and ID3), the distance calculation module. The processing of 1220 may be performed, and the selection module 125 may make a determination including the distance 1222 as well. If not, the selection module 125 may make a determination based on the feature 122 and the quantized pattern 922 without performing processing in the distance calculation module 1220.

<<第4の実施の形態>>
図14は、第4の実施の形態の構成例についての概念的なモジュール構成図である。前述の実施の形態では、量子化した後に選択したが、量子化する前に選択処理を行い、その選択した量子化方法で量子化するようにしてもよい。
圧縮装置1400は、ブロック分割モジュール1410、特徴抽出モジュール1415、選択モジュール1420、量子化モジュール1425、固定長符号化モジュール1430を有している。
ブロック分割モジュール1410は、特徴抽出モジュール1415、量子化モジュール1425と接続されており、画像1405を受け付け、特徴抽出モジュール1415と量子化モジュール1425にブロック1412を渡す。ブロック分割モジュール1410は、ブロック分割モジュール110と同等の処理を行う。つまり、画像1405をブロックに分割する。
特徴抽出モジュール1415は、ブロック分割モジュール1410、選択モジュール1420と接続されており、ブロック分割モジュール1410よりブロック1412を受け取り、選択モジュール1420に特徴1417を渡す。特徴抽出モジュール1415は、特徴抽出モジュール120と同等の処理を行う。つまり、ブロック1412の特徴を抽出する。
選択モジュール1420は、特徴抽出モジュール1415、量子化モジュール1425と接続されており、特徴抽出モジュール1415より特徴1417を受け取り、量子化モジュール1425にID1422を渡す。選択モジュール1420は、特徴抽出モジュール1415によって抽出された特徴1417に対応する量子化手法(ID)を選択する。量子化結果において解像度と階調とがトレードオフの関係になるような複数の量子化手法の中から選択する。前述の選択モジュール125と同等の選択処理を行う。ただし、選択対象は、量子化結果ではなく、量子化手法である。
<< Fourth Embodiment >>
FIG. 14 is a conceptual module configuration diagram of a configuration example according to the fourth embodiment. In the above-described embodiment, the selection is made after the quantization. However, the selection process may be performed before the quantization, and the quantization may be performed by the selected quantization method.
The compression device 1400 includes a block division module 1410, a feature extraction module 1415, a selection module 1420, a quantization module 1425, and a fixed length encoding module 1430.
The block division module 1410 is connected to the feature extraction module 1415 and the quantization module 1425, receives the image 1405, and passes the block 1412 to the feature extraction module 1415 and the quantization module 1425. The block division module 1410 performs the same processing as the block division module 110. That is, the image 1405 is divided into blocks.
The feature extraction module 1415 is connected to the block division module 1410 and the selection module 1420, receives the block 1412 from the block division module 1410, and passes the feature 1417 to the selection module 1420. The feature extraction module 1415 performs the same processing as the feature extraction module 120. That is, the feature of the block 1412 is extracted.
The selection module 1420 is connected to the feature extraction module 1415 and the quantization module 1425, receives the feature 1417 from the feature extraction module 1415, and passes the ID 1422 to the quantization module 1425. The selection module 1420 selects a quantization technique (ID) corresponding to the feature 1417 extracted by the feature extraction module 1415. A plurality of quantization methods are selected so that the resolution and gradation have a trade-off relationship in the quantization result. A selection process equivalent to that of the selection module 125 described above is performed. However, the selection target is not a quantization result but a quantization method.

量子化モジュール1425は、ブロック分割モジュール1410、選択モジュール1420、固定長符号化モジュール1430と接続されており、ブロック分割モジュール1410よりブロック1412を、選択モジュール1420よりID1422を受け取り、固定長符号化モジュール1430に「ID+量子化結果」1427を渡す。量子化モジュール1425は、ブロック分割モジュール1410によって分割されたブロック1412を、選択モジュール1420によって選択された量子化手法(ID1422)によって量子化する。
固定長符号化モジュール1430は、量子化モジュール1425と接続されており、量子化モジュール1425より「ID+量子化結果」1427を受け取り、符号1432を出力する。固定長符号化モジュール1430は、固定長符号化モジュール130と同等の処理を行う。つまり、量子化モジュール1425による「ID+量子化結果」1427を固定長符号化して、符号1432を出力する。
The quantization module 1425 is connected to the block division module 1410, the selection module 1420, and the fixed length encoding module 1430. The quantization module 1425 receives the block 1412 from the block division module 1410 and the ID 1422 from the selection module 1420 and receives the fixed length encoding module 1430. "ID + quantization result" 1427 is passed. The quantization module 1425 quantizes the block 1412 divided by the block division module 1410 by the quantization method (ID 1422) selected by the selection module 1420.
The fixed-length encoding module 1430 is connected to the quantization module 1425, receives “ID + quantization result” 1427 from the quantization module 1425, and outputs a code 1432. The fixed length encoding module 1430 performs processing equivalent to that of the fixed length encoding module 130. That is, “ID + quantization result” 1427 by the quantization module 1425 is fixed-length encoded, and a code 1432 is output.

図15を参照して、本実施の形態の画像処理装置のハードウェア構成例について説明する。図15に示す構成は、例えばパーソナルコンピュータ(PC)等によって構成されるものであり、スキャナ等のデータ読み取り部1517と、プリンタ等のデータ出力部1518を備えたハードウェア構成例を示している。   A hardware configuration example of the image processing apparatus according to the present embodiment will be described with reference to FIG. The configuration shown in FIG. 15 is configured by a personal computer (PC), for example, and shows a hardware configuration example including a data reading unit 1517 such as a scanner and a data output unit 1518 such as a printer.

CPU(Central Processing Unit)1501は、前述の実施の形態において説明した各種のモジュール、すなわち、ブロック分割モジュール110、複数量子化モジュール115、特徴抽出モジュール120、選択モジュール125、固定長符号化モジュール130、固定長復号モジュール155、識別モジュール160、逆量子化モジュール165、パターン抽出モジュール920、距離計算モジュール1220、ブロック分割モジュール1410、特徴抽出モジュール1415、選択モジュール1420、量子化モジュール1425、固定長符号化モジュール1430等の各モジュールの実行シーケンスを記述したコンピュータ・プログラムにしたがった処理を実行する制御部である。   A CPU (Central Processing Unit) 1501 includes various modules described in the above-described embodiments, that is, a block division module 110, a multiple quantization module 115, a feature extraction module 120, a selection module 125, a fixed length encoding module 130, Fixed-length decoding module 155, identification module 160, inverse quantization module 165, pattern extraction module 920, distance calculation module 1220, block division module 1410, feature extraction module 1415, selection module 1420, quantization module 1425, fixed-length encoding module The control unit executes processing according to a computer program describing an execution sequence of each module such as 1430.

ROM(Read Only Memory)1502は、CPU1501が使用するプログラムや演算パラメータ等を格納する。RAM(Random Access Memory)1503は、CPU1501の実行において使用するプログラムや、その実行において適宜変化するパラメータ等を格納する。これらはCPUバス等から構成されるホストバス1504により相互に接続されている。   A ROM (Read Only Memory) 1502 stores programs used by the CPU 1501, calculation parameters, and the like. A RAM (Random Access Memory) 1503 stores programs used in the execution of the CPU 1501, parameters that change as appropriate during the execution, and the like. These are connected to each other by a host bus 1504 including a CPU bus or the like.

ホストバス1504は、ブリッジ1505を介して、PCI(Peripheral Component Interconnect/Interface)バス等の外部バス1506に接続されている。   The host bus 1504 is connected to an external bus 1506 such as a PCI (Peripheral Component Interconnect / Interface) bus via a bridge 1505.

キーボード1508、マウス等のポインティングデバイス1509は、操作者により操作される入力デバイスである。ディスプレイ1510は、液晶表示装置又はCRT(Cathode Ray Tube)等があり、各種情報をテキストやイメージ情報として表示する。   A keyboard 1508 and a pointing device 1509 such as a mouse are input devices operated by an operator. The display 1510 includes a liquid crystal display device or a CRT (Cathode Ray Tube), and displays various types of information as text or image information.

HDD(Hard Disk Drive)1511は、ハードディスクを内蔵し、ハードディスクを駆動し、CPU1501によって実行するプログラムや情報を記録又は再生させる。ハードディスクには、画像105、ブロック112、量子化結果117、特徴122、「ID+量子化結果」127、符号132、「ID+量子化結果」157、量子化結果162、画像195等が格納される。さらに、その他の各種のデータ処理プログラム等、各種コンピュータ・プログラムが格納される。   An HDD (Hard Disk Drive) 1511 includes a hard disk, drives the hard disk, and records or reproduces a program executed by the CPU 1501 and information. The hard disk stores an image 105, a block 112, a quantization result 117, a feature 122, an “ID + quantization result” 127, a code 132, an “ID + quantization result” 157, a quantization result 162, an image 195, and the like. Further, various computer programs such as various other data processing programs are stored.

ドライブ1512は、装着されている磁気ディスク、光ディスク、光磁気ディスク、又は半導体メモリ等のリムーバブル記録媒体1513に記録されているデータ又はプログラムを読み出して、そのデータ又はプログラムを、インタフェース1507、外部バス1506、ブリッジ1505、及びホストバス1504を介して接続されているRAM1503に供給する。リムーバブル記録媒体1513も、ハードディスクと同様のデータ記録領域として利用可能である。   The drive 1512 reads out data or a program recorded on a removable recording medium 1513 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, and the data or program is read out as an interface 1507 and an external bus 1506. , To the RAM 1503 connected via the bridge 1505 and the host bus 1504. The removable recording medium 1513 can also be used as a data recording area similar to the hard disk.

接続ポート1514は、外部接続機器1515を接続するポートであり、USB、IEEE1394等の接続部を持つ。接続ポート1514は、インタフェース1507、及び外部バス1506、ブリッジ1505、ホストバス1504等を介してCPU1501等に接続されている。通信部1516は、通信回線に接続され、外部とのデータ通信処理を実行する。データ読み取り部1517は、例えばスキャナであり、ドキュメントの読み取り処理を実行する。データ出力部1518は、例えばプリンタであり、ドキュメントデータの出力処理を実行する。   The connection port 1514 is a port for connecting the external connection device 1515 and has a connection unit such as USB and IEEE1394. The connection port 1514 is connected to the CPU 1501 and the like via an interface 1507, an external bus 1506, a bridge 1505, a host bus 1504, and the like. The communication unit 1516 is connected to a communication line and executes data communication processing with the outside. The data reading unit 1517 is a scanner, for example, and executes document reading processing. The data output unit 1518 is, for example, a printer, and executes document data output processing.

なお、図15に示す画像処理装置のハードウェア構成は、1つの構成例を示すものであり、本実施の形態は、図15に示す構成に限らず、本実施の形態において説明したモジュールを実行可能な構成であればよい。例えば、一部のモジュールを専用のハードウェア(例えば特定用途向け集積回路(Application Specific Integrated Circuit:ASIC)等)で構成してもよく、一部のモジュールは外部のシステム内にあり通信回線で接続しているような形態でもよく、さらに図15に示すシステムが複数互いに通信回線によって接続されていて互いに協調動作するようにしてもよい。また、複写機、ファックス、スキャナ、プリンタ、複合機(スキャナ、プリンタ、複写機、ファックス等のいずれか2つ以上の機能を有している画像処理装置)等に組み込まれていてもよい。   Note that the hardware configuration of the image processing apparatus shown in FIG. 15 shows one configuration example, and the present embodiment is not limited to the configuration shown in FIG. 15, and the modules described in the present embodiment are executed. Any configuration is possible. For example, some modules may be configured with dedicated hardware (for example, Application Specific Integrated Circuit (ASIC), etc.), and some modules are in an external system and connected via a communication line In addition, a plurality of systems shown in FIG. 15 may be connected to each other via communication lines so as to cooperate with each other. Further, it may be incorporated in a copying machine, a fax machine, a scanner, a printer, a multifunction machine (an image processing apparatus having any two or more functions such as a scanner, a printer, a copying machine, and a fax machine).

なお、説明したプログラムについては、記録媒体に格納して提供してもよく、また、そのプログラムを通信手段によって提供してもよい。その場合、例えば、前記説明したプログラムについて、「プログラムを記録したコンピュータ読み取り可能な記録媒体」の発明として捉えてもよい。
「プログラムを記録したコンピュータ読み取り可能な記録媒体」とは、プログラムのインストール、実行、プログラムの流通等のために用いられる、プログラムが記録されたコンピュータで読み取り可能な記録媒体をいう。
なお、記録媒体としては、例えば、デジタル・バーサタイル・ディスク(DVD)であって、DVDフォーラムで策定された規格である「DVD−R、DVD−RW、DVD−RAM等」、DVD+RWで策定された規格である「DVD+R、DVD+RW等」、コンパクトディスク(CD)であって、読出し専用メモリ(CD−ROM)、CDレコーダブル(CD−R)、CDリライタブル(CD−RW)等、ブルーレイ・ディスク(Blu−ray(登録商標) Disc)、光磁気ディスク(MO)、フレキシブルディスク(FD)、磁気テープ、ハードディスク、読出し専用メモリ(ROM)、電気的消去及び書換可能な読出し専用メモリ(EEPROM(登録商標))、フラッシュ・メモリ、ランダム・アクセス・メモリ(RAM)、SD(Secure Digital)メモリーカード等が含まれる。
そして、前記のプログラム又はその一部は、前記記録媒体に記録して保存や流通等させてもよい。また、通信によって、例えば、ローカル・エリア・ネットワーク(LAN)、メトロポリタン・エリア・ネットワーク(MAN)、ワイド・エリア・ネットワーク(WAN)、インターネット、イントラネット、エクストラネット等に用いられる有線ネットワーク、又は無線通信ネットワーク、さらにこれらの組み合わせ等の伝送媒体を用いて伝送させてもよく、また、搬送波に乗せて搬送させてもよい。
さらに、前記のプログラムは、他のプログラムの一部分であってもよく、又は別個のプログラムと共に記録媒体に記録されていてもよい。また、複数の記録媒体に分割して記録されていてもよい。また、圧縮や暗号化等、復元可能であればどのような態様で記録されていてもよい。
The program described above may be provided by being stored in a recording medium, or the program may be provided by communication means. In that case, for example, the above-described program may be regarded as an invention of a “computer-readable recording medium recording the program”.
The “computer-readable recording medium on which a program is recorded” refers to a computer-readable recording medium on which a program is recorded, which is used for program installation, execution, program distribution, and the like.
The recording medium is, for example, a digital versatile disc (DVD), which is a standard established by the DVD Forum, such as “DVD-R, DVD-RW, DVD-RAM,” and DVD + RW. Standard “DVD + R, DVD + RW, etc.”, compact disc (CD), read-only memory (CD-ROM), CD recordable (CD-R), CD rewritable (CD-RW), Blu-ray disc ( Blu-ray (registered trademark) Disc), magneto-optical disk (MO), flexible disk (FD), magnetic tape, hard disk, read-only memory (ROM), electrically erasable and rewritable read-only memory (EEPROM (registered trademark)) )), Flash memory, Random access memory (RAM) SD (Secure Digital) memory card and the like.
The program or a part of the program may be recorded on the recording medium for storage or distribution. Also, by communication, for example, a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a wired network used for the Internet, an intranet, an extranet, or a wireless communication It may be transmitted using a transmission medium such as a network or a combination of these, or may be carried on a carrier wave.
Furthermore, the program may be a part of another program, or may be recorded on a recording medium together with a separate program. Moreover, it may be divided and recorded on a plurality of recording media. Further, it may be recorded in any manner as long as it can be restored, such as compression or encryption.

100…圧縮装置
105…画像
110…ブロック分割モジュール
112…ブロック
115…複数量子化モジュール
117…量子化結果
120…特徴抽出モジュール
122…特徴
125…選択モジュール
127…ID+量子化結果
130…固定長符号化モジュール
132…符号
150…伸長装置
155…固定長復号モジュール
157…ID+量子化結果
160…識別モジュール
162…量子化結果
165…逆量子化モジュール
195…画像
810…描画装置
820…記憶装置
830…印刷器
890…通信回線
900…圧縮装置
920…パターン抽出モジュール
922…量子化後のパターン
1200…圧縮装置
1220…距離計算モジュール
1222…距離
1400…圧縮装置
1405…画像
1410…ブロック分割モジュール
1412…ブロック
1415…特徴抽出モジュール
1417…特徴
1420…選択モジュール
1422…ID
1425…量子化モジュール
1427…ID+量子化結果
1430…固定長符号化モジュール
1432…符号
DESCRIPTION OF SYMBOLS 100 ... Compression apparatus 105 ... Image 110 ... Block division module 112 ... Block 115 ... Multiple quantization module 117 ... Quantization result 120 ... Feature extraction module 122 ... Feature 125 ... Selection module 127 ... ID + quantization result 130 ... Fixed-length encoding Module 132 ... Code 150 ... Expansion device 155 ... Fixed length decoding module 157 ... ID + quantization result 160 ... Identification module 162 ... Quantization result 165 ... Inverse quantization module 195 ... Image 810 ... Drawing device 820 ... Storage device 830 ... Printer 890 ... Communication line 900 ... Compressor 920 ... Pattern extraction module 922 ... Pattern after quantization 1200 ... Compressor 1220 ... Distance calculation module 1222 ... Distance 1400 ... Compressor 1405 ... Image 1410 ... Block division module 1412 ... Block 1415 ... Feature extraction module 1417 ... Feature 1420 ... Selection module 1422 ... ID
1425: Quantization module 1427 ... ID + quantization result 1430 ... Fixed-length encoding module 1432 ... Code

Claims (4)

画像をブロックに分割する分割手段と、
前記ブロックを複数の方法で量子化する量子化手段と、
前記ブロックの特徴を抽出する特徴抽出手段と、
前記特徴に対応する前記量子化手段による量子化結果を選択する選択手段と、
前記選択手段によって選択された量子化結果を固定長符号化する符号化手段
を具備し、
前記量子化手段は、量子化結果において解像度と階調とがトレードオフの関係になるように、複数の方法で量子化し、
前記特徴抽出手段は、前記ブロックのダイナミックレンジと該ブロック内の色の数と該色の分布の型を特徴として抽出する
ことを特徴とする画像処理装置。
A dividing means for dividing the image into blocks;
Quantization means for quantizing the block in a plurality of ways;
Feature extraction means for extracting features of the block;
Selection means for selecting a quantization result by the quantization means corresponding to the feature;
Encoding means for fixed-length encoding the quantization result selected by the selection means ,
The quantization means quantizes by a plurality of methods so that the resolution and gradation are in a trade-off relationship in the quantization result,
The image processing apparatus is characterized in that the feature extraction means extracts the dynamic range of the block, the number of colors in the block, and the type of color distribution as features .
前記量子化結果の型を抽出する抽出手段
をさらに具備し、
前記選択手段は、前記型と前記特徴に対応する前記量子化結果を選択する
ことを特徴とする請求項1に記載の画像処理装置。
An extraction unit for extracting the type of the quantization result;
The image processing apparatus according to claim 1, wherein the selection unit selects the quantization result corresponding to the type and the feature.
前記ブロックと前記量子化結果との間の距離を算出する算出手段
をさらに具備し、
前記選択手段は、前記距離と前記特徴に対応する前記量子化結果を選択する
ことを特徴とする請求項1又は2に記載の画像処理装置。
A calculation means for calculating a distance between the block and the quantization result;
It said selection means, the image processing apparatus according to claim 1 or 2, characterized in that selecting the quantization result corresponding to the characteristic and the distance.
コンピュータを、
画像をブロックに分割する分割手段と、
前記ブロックを複数の方法で量子化する量子化手段と、
前記ブロックの特徴を抽出する特徴抽出手段と、
前記特徴に対応する前記量子化手段による量子化結果を選択する選択手段と、
前記選択手段によって選択された量子化結果を固定長符号化する符号化手段
として機能させ
前記量子化手段は、量子化結果において解像度と階調とがトレードオフの関係になるように、複数の方法で量子化し、
前記特徴抽出手段は、前記ブロックのダイナミックレンジと該ブロック内の色の数と該色の分布の型を特徴として抽出する
画像処理プログラム。
Computer
A dividing means for dividing the image into blocks;
Quantization means for quantizing the block in a plurality of ways;
Feature extraction means for extracting features of the block;
Selection means for selecting a quantization result by the quantization means corresponding to the feature;
Functioning as encoding means for fixed-length encoding the quantization result selected by the selection means ,
The quantization means quantizes by a plurality of methods so that the resolution and gradation are in a trade-off relationship in the quantization result,
The feature extraction means is an image processing program that extracts the dynamic range of the block, the number of colors in the block, and the type of color distribution as features .
JP2014187377A 2014-09-16 2014-09-16 Image processing apparatus and image processing program Active JP6481301B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014187377A JP6481301B2 (en) 2014-09-16 2014-09-16 Image processing apparatus and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014187377A JP6481301B2 (en) 2014-09-16 2014-09-16 Image processing apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2016063282A JP2016063282A (en) 2016-04-25
JP6481301B2 true JP6481301B2 (en) 2019-03-13

Family

ID=55798286

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014187377A Active JP6481301B2 (en) 2014-09-16 2014-09-16 Image processing apparatus and image processing program

Country Status (1)

Country Link
JP (1) JP6481301B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3117091B2 (en) * 1990-08-23 2000-12-11 富士ゼロックス株式会社 Image coding device

Also Published As

Publication number Publication date
JP2016063282A (en) 2016-04-25

Similar Documents

Publication Publication Date Title
JP4600491B2 (en) Image processing apparatus and image processing program
JP5558767B2 (en) Image processing apparatus and processing method thereof
JP5132517B2 (en) Image processing apparatus and image processing method
JP5206503B2 (en) Image processing apparatus and image processing program
US20120002877A1 (en) Non-transitory computer readable storage medium, marker creating apparatus, restoration apparatus, and marker creating method
JP2006050551A (en) Image processing apparatus, image processing method, program and storage medium
JP6481301B2 (en) Image processing apparatus and image processing program
US20110064305A1 (en) Image processing apparatus, image processing method and computer readable medium
JP5742283B2 (en) Image processing apparatus and image processing program
JP4135656B2 (en) Image region determination method, image processing apparatus, and program
US10567767B2 (en) Image processing apparatus and non-transitory computer readable medium
JP5206468B2 (en) Image processing apparatus and image processing program
JP4894664B2 (en) Image processing system and image processing program
JP2005204206A (en) Image processing apparatus, image processing program, and storage medium
JP4720633B2 (en) Image processing system and image processing program
JP3062224B2 (en) Image coding method
JP5407582B2 (en) Image processing apparatus and image processing program
JP6596837B2 (en) Image processing apparatus and image processing program
JP4383187B2 (en) Image processing apparatus, image processing program, and storage medium
JP7185451B2 (en) Image processing device, image processing method, and program
JP2006093880A (en) Image processing apparatus and control method thereof, computer program, and computer-readable storage medium
CN102984432A (en) Image processing apparatus and image processing method
JP5457853B2 (en) Image encoding apparatus, image encoding method, program, and storage medium
JP3791129B2 (en) Image identification device
JP2005303506A (en) Image processing apparatus, image processing method, image processing program, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170905

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180709

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180724

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180918

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190128

R150 Certificate of patent or registration of utility model

Ref document number: 6481301

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350