JP6481301B2 - Image processing apparatus and image processing program - Google Patents
Image processing apparatus and image processing program Download PDFInfo
- 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
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
先行技術では、画像の圧縮にあたって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
請求項2の発明は、前記量子化結果の型を抽出する抽出手段をさらに具備し、前記選択手段は、前記型と前記特徴に対応する前記量子化結果を選択することを特徴とする請求項1に記載の画像処理装置である。
The invention of
請求項3の発明は、前記ブロックと前記量子化結果との間の距離を算出する算出手段をさらに具備し、前記選択手段は、前記距離と前記特徴に対応する前記量子化結果を選択することを特徴とする請求項1又は2に記載の画像処理装置である。
The invention of
請求項4の発明は、コンピュータを、画像をブロックに分割する分割手段と、前記ブロックを複数の方法で量子化する量子化手段と、前記ブロックの特徴を抽出する特徴抽出手段と、前記特徴に対応する前記量子化手段による量子化結果を選択する選択手段と、前記選択手段によって選択された量子化結果を固定長符号化する符号化手段として機能させ、前記量子化手段は、量子化結果において解像度と階調とがトレードオフの関係になるように、複数の方法で量子化し、前記特徴抽出手段は、前記ブロックのダイナミックレンジと該ブロック内の色の数と該色の分布の型を特徴として抽出する画像処理プログラムである。 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.
請求項2の画像処理装置によれば、量子化結果の型とブロックの特徴に対応する量子化結果を選択することができる。 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.
請求項3の画像処理装置によれば、ブロックと量子化結果との間の距離とブロックの特徴に対応する量子化結果を選択することができる。 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.
請求項4の画像処理プログラムによれば、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の実施の形態>>
図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
圧縮装置100のブロック分割モジュール110は、複数量子化モジュール115、特徴抽出モジュール120と接続されており、画像105を受け付け、複数量子化モジュール115と特徴抽出モジュール120にブロック112を渡す。ブロック分割モジュール110は、画像105をブロックに分割する。画像を受け付けるとは、例えば、スキャナ、カメラ等で画像を読み込むこと、ファックス等で通信回線を介して外部機器から画像を受信すること、ハードディスク(コンピュータに内蔵されているものの他に、ネットワークを介して接続されているもの等を含む)等に記憶されている画像を読み出すこと、他の情報処理装置から印刷用の画像を受け付けること等が含まれる。画像は、多値画像(カラー画像を含む)である。受け付ける画像は、1枚であってもよいし、複数枚であってもよい。また、画像の内容として、ビジネスに用いられる文書、広告宣伝用のパンフレット等であってもよい。ブロックは、矩形であって、一般的には正方形であるが、これに限る必要はない。
図2(A)に示す例は、ブロック分割モジュール110の処理結果である。例えば、「階調:8bit−解像度(サブブロック):1×1」(以下、「8bit−1×1」と表現する)である。
The
The example illustrated in FIG. 2A is a processing result of the
複数量子化モジュール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
The examples shown in FIGS. 2B, 2 </ b> C, and 2 </ b> D show a plurality (three) of processing results by the plurality of
特徴抽出モジュール120は、ブロック分割モジュール110、選択モジュール125と接続されており、ブロック分割モジュール110よりブロック112を受け取り、選択モジュール125に特徴122を渡す。特徴抽出モジュール120は、ブロック分割モジュール110によって分割されたブロック112の特徴を抽出する。また、ブロック毎に特徴を抽出する。例えば、特徴抽出モジュール120は、ブロック112のダイナミックレンジを特徴として抽出するようにしてもよい。ダイナミックレンジとは、対象としているブロック内での画素値の幅(最大値と最小値によって定まる幅)をいう。
The
選択モジュール125は、複数量子化モジュール115、特徴抽出モジュール120、固定長符号化モジュール130と接続されており、複数量子化モジュール115より量子化結果117を、特徴抽出モジュール120より特徴122を受け取り、固定長符号化モジュール130に「ID+量子化結果」127を渡す。選択モジュール125は、特徴抽出モジュール120によって抽出された特徴122に対応する複数量子化モジュール115による量子化結果117を選択する。つまり、複数の量子化結果から1つのブロックに対応するものを選択する。また、選択処理の結果として、量子化結果の他に、量子化方法又は量子化結果の表現方法を示す情報であるID(IDentification)を含めてもよい。
The
固定長符号化モジュール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-
伸長装置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-
The
逆量子化モジュール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
In the example shown in FIGS. 2I, 2J, and 2K, the
The example illustrated in FIG. 2L is a processing result by the
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
図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
In step S404, the
In step S406, the
In step S408, the
In step S <b> 410, the
In step S412, the fixed
In step S414, the fixed-
図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
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
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
The
図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
In step S704, the fixed
In step S706, the
In step S708, the
In step S710, the
図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
The
The
The
The
The
For example, when the
図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
<<第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
The
複数量子化モジュール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
The
The
図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
例えば、具体的には、選択モジュール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
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は画素の座標位置を表している。
FIG. 12 is a conceptual module configuration diagram of an exemplary configuration according to the third embodiment.
The
The
The
The
第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
In this case, it may be determined by the shape identifier / representative pixel value definition table 1300 whether or not the processing by the
<<第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
The
The
The
量子化モジュール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
The fixed-
図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
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
ホストバス1504は、ブリッジ1505を介して、PCI(Peripheral Component Interconnect/Interface)バス等の外部バス1506に接続されている。
The
キーボード1508、マウス等のポインティングデバイス1509は、操作者により操作される入力デバイスである。ディスプレイ1510は、液晶表示装置又はCRT(Cathode Ray Tube)等があり、各種情報をテキストやイメージ情報として表示する。
A keyboard 1508 and a
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
ドライブ1512は、装着されている磁気ディスク、光ディスク、光磁気ディスク、又は半導体メモリ等のリムーバブル記録媒体1513に記録されているデータ又はプログラムを読み出して、そのデータ又はプログラムを、インタフェース1507、外部バス1506、ブリッジ1505、及びホストバス1504を介して接続されているRAM1503に供給する。リムーバブル記録媒体1513も、ハードディスクと同様のデータ記録領域として利用可能である。
The
接続ポート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
なお、図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
1425:
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 .
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3117091B2 (en) * | 1990-08-23 | 2000-12-11 | 富士ゼロックス株式会社 | Image coding device |
-
2014
- 2014-09-16 JP JP2014187377A patent/JP6481301B2/en active Active
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 |