JP4353986B2 - Image composition apparatus, image composition method, image composition program, and computer-readable recording medium on which image composition program is recorded - Google Patents

Image composition apparatus, image composition method, image composition program, and computer-readable recording medium on which image composition program is recorded Download PDF

Info

Publication number
JP4353986B2
JP4353986B2 JP2007077637A JP2007077637A JP4353986B2 JP 4353986 B2 JP4353986 B2 JP 4353986B2 JP 2007077637 A JP2007077637 A JP 2007077637A JP 2007077637 A JP2007077637 A JP 2007077637A JP 4353986 B2 JP4353986 B2 JP 4353986B2
Authority
JP
Japan
Prior art keywords
image data
quantization table
data
image
quantization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007077637A
Other languages
Japanese (ja)
Other versions
JP2007184982A5 (en
JP2007184982A (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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2007077637A priority Critical patent/JP4353986B2/en
Publication of JP2007184982A publication Critical patent/JP2007184982A/en
Publication of JP2007184982A5 publication Critical patent/JP2007184982A5/ja
Application granted granted Critical
Publication of JP4353986B2 publication Critical patent/JP4353986B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

この発明は、画像合成装置、画像合成方法、画像合成プログラムおよび画像合成プログラムを記録したコンピュータ読取可能な記録媒体に関し、特に符号化された複数の画像を合成するための画像合成装置、画像合成方法、画像合成プログラムおよび画像合成プログラムを記録したコンピュータ読取可能な記録媒体に関する。   The present invention relates to an image synthesizing apparatus, an image synthesizing method, an image synthesizing program, and a computer-readable recording medium on which an image synthesizing program is recorded, and in particular, an image synthesizing apparatus and an image synthesizing method for synthesizing a plurality of encoded images. The present invention relates to an image composition program and a computer-readable recording medium on which the image composition program is recorded.

近年、テレビ放送のデジタル化や、インターネットでの動画配信、デジタルカメラ、デジタルビデオカメラの普及等により、符号化された動画データおよび静止画データを利用する機会が増えている。それに伴い、符号化画像データの編集も、広く行なわれるようになってきている。動画や静止画の画像データの空間領域から周波数領域への直交変換処理、量子化処理および符号化処理がこの順で実行される非可逆符号化方式が利用される場合が多い。また符号化された画像データを空間領域まで復号するには、係数の復号処理、逆量子化処理および周波数領域から空間領域への直交逆変換処理がこの順で実行される。直交変換処理は、離散コサイン変換(DCT)やカルーネン/レーベ変換(KLT)等の直交変換技術が用いられている。この直交変換技術を用いた非可逆符号化方式の符号化画像データを容易に編集・加工するニーズが近年増してきている。   In recent years, opportunities for using encoded moving image data and still image data are increasing due to the digitization of television broadcasting, the distribution of moving images on the Internet, the spread of digital cameras and digital video cameras, and the like. Along with this, editing of encoded image data has been widely performed. In many cases, an irreversible encoding method is used in which orthogonal transform processing, quantization processing, and encoding processing of moving image data or still image data from the spatial domain to the frequency domain are executed in this order. In addition, in order to decode the encoded image data up to the spatial domain, a coefficient decoding process, an inverse quantization process, and an orthogonal inverse transform process from the frequency domain to the spatial domain are executed in this order. For the orthogonal transformation process, an orthogonal transformation technique such as discrete cosine transformation (DCT) or Karoonen / Labe transformation (KLT) is used. In recent years, there has been an increasing need for easy editing and processing of encoded image data of an irreversible encoding method using this orthogonal transformation technique.

現在広く用いられている離散コサイン変換(DCT)等の直交変換を利用した画像符号化方式は、直交変換処理、量子化処理、ハフマン符号化等の可逆符号化処理により符号化を行うものである。   An image encoding method using orthogonal transform such as discrete cosine transform (DCT) that is widely used at present performs encoding by lossless encoding processing such as orthogonal transformation processing, quantization processing, and Huffman coding. .

ここでは、空間領域の画素データで表現された画像データを空間領域画像データと定義し、空間領域画像データを直交変換処理して得られた量子化されていない画像データを直交変換領域画像データと定義する。また、直交変換領域画像データを量子化した画像データを量子化直交変換領域画像データと定義し、量子化直交変換画像データを符号化処理して得られる画像データを直交変換領域符号化画像データと定義する。   Here, image data expressed by pixel data in the spatial domain is defined as spatial domain image data, and unquantized image data obtained by orthogonal transformation processing of the spatial domain image data is defined as orthogonal transformation domain image data. Define. Also, image data obtained by quantizing the orthogonal transform area image data is defined as quantized orthogonal transform area image data, and image data obtained by encoding the quantized orthogonal transform image data is defined as orthogonal transform area encoded image data. Define.

ここで、直交変換領域符号化画像データの合成について説明する。図16は、複数の画像データの合成処理を説明するための図である。図16(A)は第1直交変換領域符号化画像データを示し、図16(B)は第2直交変換領域符号化画像データを示し、図16(C)は合成後の直交変換領域符号化画像データを示す。第1直交変換領域符号化画像データ101内に、第2直交変換領域符号化画像データ102の一部分(点線で囲まれた部分)を貼り付けて、新たな合成直交変換領域符号化画像データ103を作成する場合を示している。   Here, synthesis of orthogonal transform region encoded image data will be described. FIG. 16 is a diagram for explaining a process of combining a plurality of image data. 16A shows the first orthogonal transform region encoded image data, FIG. 16B shows the second orthogonal transform region encoded image data, and FIG. 16C shows the orthogonal transform region encoded after synthesis. Image data is shown. A part of the second orthogonal transformation region encoded image data 102 (portion surrounded by a dotted line) is pasted into the first orthogonal transformation region encoded image data 101, and a new combined orthogonal transformation region encoded image data 103 is obtained. The case of creating is shown.

従来の合成処理では次の手順で合成処理が行なわれていた。
(1)第1直交変換領域符号化画像データ101および第2直交変換領域符号化画像データ102をそれぞれ復号処理し、第1量子化直交変換領域画像データおよび第2量子化直交変換領域画像データを作成する。
In the conventional synthesizing process, the synthesizing process is performed in the following procedure.
(1) The first orthogonal transform region encoded image data 101 and the second orthogonal transform region encoded image data 102 are respectively decoded, and the first quantized orthogonal transform region image data and the second quantized orthogonal transform region image data are converted into create.

(2)第1量子化直交変換領域画像データおよび第2量子化直交変換領域画像データをそれぞれ逆量子化処理し、第1直交変換領域画像データおよび第2直交変換領域画像データを作成する。   (2) The first quantized orthogonal transform region image data and the second quantized orthogonal transform region image data are inversely quantized to generate first orthogonal transform region image data and second orthogonal transform region image data.

(3)第1直交変換領域画像データおよび第2直交変換領域画像データを直交逆変換を行い、第1空間領域画像データおよび第2空間領域画像データを作成する。   (3) Orthogonal inverse transform is performed on the first orthogonal transformation region image data and the second orthogonal transformation region image data to create first spatial region image data and second spatial region image data.

(4)第2空間領域画像データの図16の102の点線で囲まれた部分を切取り、第1空間領域画像データの図16の101に貼付けて、合成空間領域画像データを作成する。   (4) The portion surrounded by the dotted line 102 in FIG. 16 in the second spatial area image data is cut out and pasted to 101 in FIG. 16 in the first spatial area image data to create composite spatial area image data.

(5)合成空間領域画像データを直交変換処理し、合成直交変換領域画像データを作成する。   (5) The composite space area image data is subjected to orthogonal transform processing to generate composite orthogonal transform area image data.

(6)合成直交変換領域画像データを指定した量子化テーブルを用いて量子化処理し、合成量子化直交変換領域画像データを作成する。   (6) Quantization processing is performed using a quantization table in which the synthesized orthogonal transform area image data is designated, and synthesized quantized orthogonal transform area image data is created.

(7)合成量子化直交変換領域画像データを可逆符号化処理し、合成直交変換領域符号化画像データ103を作成する。   (7) The composite quantized orthogonal transform area image data is losslessly encoded to generate composite orthogonal transform area encoded image data 103.

しかしながら、この従来の画像データの合成方法には以下の3つの問題がある。
(1)処理速度の問題
空間領域で画像を合成するため、合成に用いる直交変換領域符号化画像データを、空間領域画像データまで変換するための処理、および空間領域で作成された合成空間領域画像データから、合成直交変換領域符号化画像データまで変換するための処理が必要であり、処理に多大な時間を要する。このため、処理速度が遅くなるといった問題がある。特に画像データが動画像の場合には、リアルタイムで合成したい場合など、時間的な制限があるため、装置に高い処理能力が要求される。
However, this conventional method for synthesizing image data has the following three problems.
(1) Processing speed problem In order to synthesize an image in the spatial domain, a process for transforming the orthogonal transform domain encoded image data used for the synthesis into the spatial domain image data, and a synthesized spatial domain image created in the spatial domain A process for converting from data to composite orthogonal transform area encoded image data is necessary, and the process takes a lot of time. For this reason, there exists a problem that processing speed becomes slow. In particular, when the image data is a moving image, there is a time limit when, for example, it is desired to synthesize in real time.

(2)適正画質決定に時間がかかる
合成空間領域画像データの符号化方式は非可逆符号化方式なので、画質の劣化は避けられない。画質は、一旦符号化した合成直交変換領域符号化画像データを復号した合成空間領域画像データを実際に目視で確認し、所望の画質かどうかを判断する必要がある。確認した結果、所望の画質に達していない場合は、量子化ステップ等のパラメータを変えて、再度合成空間領域画像データ以降の符号化に伴う一連の処理を行わなければならない。また、これを、所望の画質が得られるまで繰返して行う必要があり、時間と労力が必要となる。
(2) Appropriate image quality determination takes time Since the encoding method of the composite space area image data is an irreversible encoding method, deterioration in image quality is inevitable. As for the image quality, it is necessary to visually check the synthesized spatial domain image data obtained by decoding the synthesized orthogonal transform domain encoded image data once encoded, and determine whether or not the desired image quality is obtained. As a result of confirmation, if the desired image quality is not reached, parameters such as the quantization step must be changed, and a series of processing associated with encoding after the synthesized space area image data must be performed again. In addition, it is necessary to repeat this until a desired image quality is obtained, which requires time and labor.

(3)圧縮率低下の問題
第1画像データを量子化するために用いられた量子化ステップ、第2画像データを量子化するために用いられた量子化ステップ、合成画像データを量子化するための量子化ステップがそれぞれ独立して決定される。このため、符号化合成画像データの容量が画質の割に大きくなってしまう場合がある。
(3) The problem of reduction in compression rate To quantize the quantization step used to quantize the first image data, the quantization step used to quantize the second image data, and the synthesized image data The quantization steps are determined independently. For this reason, the capacity of the encoded combined image data may become large for the image quality.

これら問題点のうち(2)適正画質決定に時間がかかる問題を解決するための技術が、特開平7−184199号公報(特許文献1)に記載されている。特開平7−184199号公報には、固定長符号化方式で画像データに対し符号化および復号処理を複数回繰返して符号化または復号処理を行うものであって、画像データおよび符号データを、符号データおよび画像データ間で変化が起こらない可逆状態に収束させるためのデータ収束手段と、初期の画像データと可逆状態に収束した後の画素データとの間の平均自乗誤差が所定のレベル以下であることを確認するデータ収束確認手段とを設け、準可逆符号化方式による収束データを復号データとして用いることが記載されている。   Among these problems, (2) a technique for solving the problem that it takes time to determine an appropriate image quality is described in Japanese Patent Laid-Open No. 7-184199 (Patent Document 1). Japanese Patent Laid-Open No. 7-184199 discloses encoding and decoding processing by repeatedly encoding and decoding image data a plurality of times using a fixed-length encoding method. The mean square error between the data convergence means for converging to a reversible state in which no change occurs between data and image data, and the initial image data and the pixel data after converging to the reversible state is below a predetermined level It is described that a data convergence confirmation means for confirming this is provided, and convergent data by a quasi-reversible encoding method is used as decoded data.

しかしながら、特開平7−184199号公報に記載の画像データ符号化回路では、目視で確認するための労力を減らすことはできるが、量子化処理を含む符号化処理および逆量子化を含む復号処理を複数回実行することになるため、処理に時間がかかるか装置に高い処理能力が要求される。また、画質を所望のレベルとすることができるが、符号化後のデータ量が、大きくなってしまうこともある。
特開平7−184199号公報
However, in the image data encoding circuit described in Japanese Patent Laid-Open No. 7-184199, it is possible to reduce labor for visual confirmation, but encoding processing including quantization processing and decoding processing including inverse quantization are performed. Since the process is executed a plurality of times, it takes time for the process or a high processing capacity is required for the apparatus. In addition, the image quality can be set to a desired level, but the amount of data after encoding may increase.
Japanese Patent Laid-Open No. 7-184199

この発明は上述した問題点を解決するためになされたもので、この発明の目的の1つは、合成画像を生成する際の画質の劣化および圧縮率の低下を防止することが可能な画像合成装置を提供することである。   The present invention has been made to solve the above-described problems, and one of the objects of the present invention is to perform image synthesis that can prevent deterioration in image quality and compression rate when generating a composite image. Is to provide a device.

この発明の他の目的は、符号化画像を合成する装置の負荷を低減させることが可能な画像合成装置を提供することである。   Another object of the present invention is to provide an image synthesizing apparatus capable of reducing the load on the apparatus for synthesizing an encoded image.

この発明のさらに他の目的は、合成画像を生成する際の画質の劣化および圧縮率の低下を防止することが可能な画像合成方法を提供することである。   Still another object of the present invention is to provide an image composition method capable of preventing deterioration in image quality and reduction in compression rate when a composite image is generated.

この発明のさらに他の目的は、装置の負荷を低減させることが可能な画像合成方法を提供することである。   Still another object of the present invention is to provide an image composition method capable of reducing the load on the apparatus.

この発明の他の目的は、合成画像を生成する際の画質の劣化および圧縮率の低下を防止することが可能な画像合成プログラム、そのプログラムを記録したコンピュータ読取可能な記録媒体を提供することである。   Another object of the present invention is to provide an image composition program capable of preventing deterioration in image quality and reduction in compression rate when generating a composite image, and a computer-readable recording medium on which the program is recorded. is there.

この発明のさらに他の目的は、コンピュータの負荷を低減させることが可能な画像合成プログラム、そのプログラムを記録したコンピュータ読取可能な記録媒体を提供することである。   Still another object of the present invention is to provide an image composition program capable of reducing the load on the computer and a computer-readable recording medium on which the program is recorded.

上述した目的を達成するためにこの発明のある局面によれば、画像合成装置は、空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む一つまたは複数の画像データと一つまたは複数の画像データそれぞれに対応する量子化テーブルと合成量子化テーブルとを入力する入力手段と、入力された一つまたは複数の画像データから複数の領域を抽出する抽出手段と、抽出された複数の領域を合成した合成データを生成する合成手段と、抽出された複数の領域それぞれの関数変換係数値を、該領域に対応する量子化テーブルおよび合成量子化テーブルに基づいて変換する変換手段とを備える。   In order to achieve the above object, according to one aspect of the present invention, an image synthesizing apparatus converts a function transform and a quantized function from a spatial domain into a data represented by a function transform coefficient value by a set of basis functions. Input means for inputting one or a plurality of image data including a transform coefficient value, a quantization table corresponding to each of the one or a plurality of image data, and a combined quantization table, and the input one or a plurality of image data Extracting means for extracting a plurality of regions from the combining means, combining means for generating combined data obtained by combining the plurality of extracted regions, and function transform coefficient values of each of the plurality of extracted regions are quantized corresponding to the regions Conversion means for converting based on the table and the synthetic quantization table.

この発明に従えば、一つまたは複数の画像データから抽出された複数の領域を合成する。抽出された複数の領域それぞれの関数変換係数値が、該領域に対応する量子化テーブルおよび合成量子化テーブルに基づいて変換される。この変換は、たとえば、量子化された複数の領域ごとに量子化に用いた量子化テーブルを用いて逆量子化した後に、逆量子化された複数の領域に単一の合成量子化テーブルを用いて量子化する処理である。このため、各領域の関数変換係数値を量子化することにより発生する誤差を少なくすることができる。その結果、合成画像を生成する際の画質の劣化および圧縮率の低下を防止することが可能な画像合成装置を提供することができる。   According to the present invention, a plurality of regions extracted from one or a plurality of image data are synthesized. The function conversion coefficient values of each of the plurality of extracted regions are converted based on the quantization table and the synthesized quantization table corresponding to the regions. This conversion is performed by, for example, using a quantization table used for quantization for each of a plurality of quantized regions, and then using a single composite quantization table for the plurality of inverse quantized regions. This is the process of quantization. For this reason, the error which generate | occur | produces by quantizing the function conversion coefficient value of each area | region can be reduced. As a result, it is possible to provide an image composition device capable of preventing deterioration in image quality and reduction in compression rate when generating a composite image.

この発明の他の局面によれば、画像合成装置は、空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む一つまたは複数の画像データと前記一つまたは複数の画像データそれぞれに対応する量子化テーブルを入力する入力手段と、入力された一つまたは複数の画像データから複数の領域を抽出する抽出手段と、抽出された複数の領域を合成した合成データを生成する合成手段と、少なくとも抽出された複数の領域に対応する量子化テーブルに基づいて、合成量子化テーブルを作成する合成量子化テーブル作成処理手段と、抽出された複数の領域それぞれの関数変換係数値を、該領域に対応する量子化テーブルおよび合成量子化テーブルに基づいて変換する変換手段とを備える。   According to another aspect of the present invention, an image synthesizing apparatus includes a function transform that converts data from a spatial domain into data represented by a function transform coefficient value by a set of basis functions, and a quantized function transform coefficient value. Or an input means for inputting a plurality of image data and a quantization table corresponding to each of the one or more image data; an extraction means for extracting a plurality of regions from the input one or more image data; A synthesis unit that generates synthesized data obtained by synthesizing the plurality of regions, a synthesis quantization table creation processing unit that creates a synthesis quantization table based on at least the quantization table corresponding to the plurality of extracted regions, Transform means for transforming the function transform coefficient values of each of the plurality of extracted regions based on a quantization table and a synthetic quantization table corresponding to the regions; Obtain.

この発明に従えば、複数の領域それぞれに対応する量子化テーブルに基づいて合成量子化テーブルを決定するので、量子化により発生する誤差の少ない合成量子化テーブルを決定することができる。このため、復号された画像データを目視で確認する必要がないので、復号処理および符号化処理を複数回繰返す必要がない。その結果、符号化画像を合成する装置の負荷を低減させることが可能な画像合成装置を提供することができる。   According to the present invention, since the synthetic quantization table is determined based on the quantization table corresponding to each of the plurality of regions, it is possible to determine the synthetic quantization table with a small error caused by quantization. For this reason, since it is not necessary to visually confirm the decoded image data, it is not necessary to repeat the decoding process and the encoding process a plurality of times. As a result, it is possible to provide an image synthesizing apparatus that can reduce the load on the apparatus that synthesizes encoded images.

好ましくは、変換手段は、抽出された複数の領域それぞれの関数変換係数値を、該領域の量子化テーブルの対応する要素と合成量子化テーブルの対応する要素とに基づいて変換する。   Preferably, the conversion unit converts the function conversion coefficient value of each of the plurality of extracted regions based on a corresponding element of the quantization table of the region and a corresponding element of the combined quantization table.

この発明のさらに他の局面によれば、画像合成装置は、空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数を含む一つまたは複数の画像データと一つまたは複数の画像データそれぞれに対応する量子化テーブルと合成量子化テーブルとを入力する入力手段と、入力された一つまたは複数の画像データから複数の領域を抽出する抽出手段と、抽出された複数の領域を合成した合成データを生成する合成手段と、抽出された複数の領域の関数係数値それぞれを、該領域に対応する量子化テーブルを用いて逆量子化する逆量子化手段と、合成量子化テーブルを用いて、合成データの逆量子化された関数変換係数値を量子化する量子化手段とを備える。   According to still another aspect of the present invention, an image synthesizing apparatus includes a function transform that converts data from a spatial domain to a data represented by a function transform coefficient value by a set of basis functions, and a quantized function transform coefficient Alternatively, input means for inputting a plurality of image data, a quantization table corresponding to each of the one or more image data, and a combined quantization table, and extracting a plurality of regions from the input one or more image data Extraction means, synthesis means for generating synthesized data obtained by synthesizing the plurality of extracted areas, and function coefficient values of the extracted areas are inversely quantized using a quantization table corresponding to the areas. Inverse quantization means, and quantization means for quantizing a function transform coefficient value obtained by inverse quantization of the synthesized data using the synthesized quantization table.

この発明に従えば、一つまたは複数の画像データから抽出された複数の領域を合成して合成データが生成される。複数の領域の関数係数値それぞれは、該領域に対応する量子化テーブルを用いて逆量子化され、合成量子化テーブルを用いて、合成データの逆量子化された関数変換係数値が量子化される。このため、各領域の関数変換係数値を量子化することにより発生する誤差を少なくすることができる。その結果、合成画像を生成する際の画質の劣化および圧縮率の低下を防止することが可能な画像合成装置を提供することができる。   According to the present invention, a plurality of regions extracted from one or a plurality of image data are combined to generate combined data. Each of the function coefficient values of the plurality of regions is inversely quantized using the quantization table corresponding to the region, and the inversely quantized function transform coefficient value of the synthesized data is quantized using the combined quantization table. The For this reason, the error which generate | occur | produces by quantizing the function conversion coefficient value of each area | region can be reduced. As a result, it is possible to provide an image composition device capable of preventing deterioration in image quality and reduction in compression rate when generating a composite image.

この発明のさらに他の局面によれば、画像合成装置は、空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数を含む一つまたは複数の画像データと一つまたは複数の画像データそれぞれに対応する量子化テーブルとを入力する入力手段と、入力された一つまたは複数の画像データから複数の領域を抽出する抽出手段と、抽出された複数の領域を合成した合成データを生成する合成手段と、少なくとも抽出された複数の領域の前記関数係数値それぞれを、該領域に対応する量子化テーブルを用いて逆量子化する逆量子化手段と、複数の領域それぞれに対応する量子化テーブルに基づいて合成量子化テーブルを作成する合成量子化テーブル作成処理手段と、作成された合成量子化テーブルを用いて、合成データの逆量子化された関数変換係数値を量子化する量子化手段とを備える。   According to still another aspect of the present invention, an image synthesizing apparatus includes a function transform that converts data from a spatial domain to a data represented by a function transform coefficient value by a set of basis functions, and a quantized function transform coefficient. Alternatively, an input unit that inputs a plurality of image data and a quantization table corresponding to each of the one or more image data, an extraction unit that extracts a plurality of regions from the input one or more image data, and an extraction A synthesis means for generating synthesized data obtained by synthesizing the plurality of regions, and inverse quantization for inversely quantizing each of the function coefficient values of at least the plurality of regions extracted using a quantization table corresponding to the region Means, a synthetic quantization table creation processing means for creating a synthetic quantization table based on a quantization table corresponding to each of a plurality of regions, and the created synthetic quantization Using Buru, and a quantizing means for quantizing the dequantized function conversion coefficient value of combined data.

この発明に従えば、複数の領域を量子化する際に用いた量子化テーブルに基づいて合成量子化テーブルが決定されるので、合成量子化テーブルを用いて各領域の関数変換係数値を量子化することにより発生する誤差を少なくすることができる。また、復号処理および符号化処理を複数回繰返す必要がないので、装置の負荷を低減させることが可能な画像合成装置を提供することができる。   According to the present invention, since the synthesized quantization table is determined based on the quantization table used when quantizing a plurality of regions, the function transform coefficient value of each region is quantized using the synthesized quantization table. By doing so, errors that occur can be reduced. In addition, since it is not necessary to repeat the decoding process and the encoding process a plurality of times, it is possible to provide an image composition apparatus that can reduce the load on the apparatus.

好ましくは、合成量子化テーブル作成処理手段は、複数の領域それぞれに対応する量子化テーブルの対応する要素の比率に基づき合成量子化テーブルを決定する。   Preferably, the synthetic quantization table creation processing unit determines a synthetic quantization table based on a ratio of corresponding elements of the quantization table corresponding to each of the plurality of regions.

好ましくは、合成量子化テーブル作成処理手段は、合成量子化テーブルの各要素を、複数の領域それぞれに対応する量子化テーブルの対応する要素の公約数とする。   Preferably, the synthesized quantization table creation processing means sets each element of the synthesized quantization table as a common divisor of the corresponding elements of the quantization table corresponding to each of the plurality of regions.

好ましくは、合成量子化テーブル作成処理手段は、合成量子化テーブルの各要素を、複数の領域それぞれに対応する量子化テーブルの対応する要素の最大公約数とする。   Preferably, the synthesized quantization table creation processing unit sets each element of the synthesized quantization table as the greatest common divisor of the corresponding elements of the quantization table corresponding to each of the plurality of regions.

この発明に従えば、量子化により発生する誤差をより少なくすることができる。
この発明のさらに他の局面によれば、画像合成方法は、空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む一つまたは複数の画像データと一つまたは複数の画像データそれぞれに対応する量子化テーブルと合成量子化テーブルとを入力するステップと、入力された一つまたは複数の画像データから複数の領域を抽出するステップと、抽出された複数の領域を合成した合成データを生成するステップと、抽出された複数の領域それぞれの関数変換係数値を、該領域に対応する量子化テーブルおよび合成量子化テーブルに基づいて変換するステップとを含む。
According to the present invention, errors generated by quantization can be further reduced.
According to still another aspect of the present invention, an image composition method includes a function transform for transforming data from a spatial domain into a data represented by a function transform coefficient value by a set of basis functions, and a quantized function transform coefficient value. Inputting one or a plurality of image data, a quantization table corresponding to each of the one or a plurality of image data, and a synthetic quantization table, and extracting a plurality of regions from the input one or a plurality of image data A step, a step of generating synthesized data obtained by synthesizing the plurality of extracted regions, and a function conversion coefficient value of each of the extracted regions based on a quantization table corresponding to the region and a synthesized quantization table Converting.

この発明に従えば、合成画像を生成する際の画質の劣化および圧縮率の低下を防止することが可能な画像合成方法を提供することができる。   According to the present invention, it is possible to provide an image composition method capable of preventing deterioration in image quality and reduction in compression rate when generating a composite image.

この発明のさらに他の局面によれば、画象合成方法は、空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む一つまたは複数の画像データと一つまたは複数の画像データそれぞれに対応する量子化テーブルを入力するステップと、入力された一つまたは複数の画像データから複数の領域を抽出するステップと、抽出された複数の領域を合成した合成データを生成するステップと、少なくとも抽出された複数の領域に対応する量子化テーブルに基づいて、合成量子化テーブルを作成するステップと、抽出された複数の領域それぞれの関数変換係数値を、該領域に対応する量子化テーブルおよび合成量子化テーブルに基づいて変換するステップとを含む。   According to still another aspect of the present invention, an image synthesis method includes a function transform for transforming data from a spatial domain into data represented by a function transform coefficient value by a set of basis functions, and a quantized function transform coefficient value. A step of inputting one or a plurality of image data and a quantization table corresponding to each of the one or a plurality of image data; a step of extracting a plurality of regions from the input one or a plurality of image data; Generating synthesized data obtained by synthesizing the plurality of areas, creating a synthesized quantization table based on at least the quantization table corresponding to the extracted areas, and each of the extracted areas Transforming the function transform coefficient value based on a quantization table corresponding to the region and a synthesized quantization table.

この発明に従えば、画質の劣化および圧縮率の低下を防止することが可能な画像合成方法を提供することができる。また、装置の負荷を低減させることが可能な画像合成方法を提供することができる。   According to the present invention, it is possible to provide an image composition method capable of preventing deterioration in image quality and reduction in compression rate. Further, it is possible to provide an image composition method that can reduce the load on the apparatus.

この発明のさらに他の局面によれば、画像合成方法は、空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換と量子化された関数変換係数値を含む一つまたは複数の画像データおよび一つまたは複数の画像データそれぞれに対応する量子化テーブルと合成量子化テーブルとを入力するステップと、入力された一つまたは複数の画像データから複数の領域を抽出するステップと、抽出された複数の領域を合成した合成データを生成するステップと、抽出された複数の領域の関数係数値それぞれを、該領域に対応する量子化テーブルを用いて逆量子化するステップと、合成量子化テーブルを用いて、合成データの逆量子化された関数変換係数値を量子化するステップとを含む。   According to still another aspect of the present invention, an image composition method includes a function transform for transforming data from a spatial domain into data represented by a function transform coefficient value by a set of basis functions, and a quantized function transform coefficient value. Inputting one or a plurality of image data and a quantization table corresponding to each of the one or a plurality of image data and a synthetic quantization table, and extracting a plurality of regions from the input one or a plurality of image data A step of generating combined data obtained by combining the plurality of extracted regions, and a step of inversely quantizing each of the function coefficient values of the extracted regions using a quantization table corresponding to the regions; And quantizing the function transform coefficient value obtained by dequantizing the synthesized data using the synthesized quantization table.

この発明に従えば、合成画像を生成する際の画質の劣化および圧縮率の低下を防止することが可能な画像合成方法を提供することができる。   According to the present invention, it is possible to provide an image composition method capable of preventing deterioration in image quality and reduction in compression rate when generating a composite image.

この発明のさらに他の局面によれば、画像合成方法は、空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数を含む一つまたは複数の画像データと一つまたは複数の画像データそれぞれに対応する量子化テーブルとを入力するステップと、入力された一つまたは複数の画像データから複数の領域を抽出するステップと、抽出された複数の領域を合成した合成データを生成するステップと、少なくとも抽出された複数の領域の関数係数値それぞれを、該領域に対応する量子化テーブルを用いて逆量子化するステップと、複数の領域それぞれに対応する量子化テーブルに基づいて合成量子化テーブルを作成するステップと、作成された合成量子化テーブルを用いて、合成データの逆量子化された関数変換係数値を量子化するステップとを含む。   According to still another aspect of the present invention, an image composition method includes a function transform for transforming data from a spatial domain into a data represented by a function transform coefficient value by a set of basis functions and a quantized function transform coefficient. Or inputting a plurality of image data and a quantization table corresponding to each of the one or more image data, extracting a plurality of regions from the input one or more image data, and Generating composite data by combining a plurality of areas, dequantizing at least the extracted function coefficient values of the plurality of areas using a quantization table corresponding to the areas, and each of the plurality of areas A step of creating a synthetic quantization table based on a quantization table corresponding to, and using the created synthetic quantization table, And a step of quantizing the function conversion coefficients quantized.

この発明に従えば、画質の劣化および圧縮率の低下を防止することが可能な画像合成方法を提供することができる。また、装置の負荷を低減させることが可能な画像合成方法を提供することができる。   According to the present invention, it is possible to provide an image composition method capable of preventing deterioration in image quality and reduction in compression rate. Further, it is possible to provide an image composition method that can reduce the load on the apparatus.

この発明のさらに他の局面によれば、画像合成プログラムは、上記画像合成方法の各ステップをコンピュータに実行させる。   According to still another aspect of the present invention, an image composition program causes a computer to execute each step of the image composition method.

この発明に従えば、画質の劣化および圧縮率の低下を防止することが可能な画像合成プログラムを提供することができる。また、コンピュータの負荷を低減させることが可能な画像合成プログラムを提供することができる。   According to the present invention, it is possible to provide an image composition program capable of preventing image quality deterioration and compression rate reduction. Further, it is possible to provide an image composition program that can reduce the load on the computer.

この発明のさらに他の局面によれば、上記画像合成プログラムを記録したコンピュータ読取可能な記録媒体である。   According to still another aspect of the present invention, there is provided a computer-readable recording medium on which the image composition program is recorded.

この発明に従えば、画質の劣化および圧縮率の低下を防止することが可能な画像合成プログラムを記録したコンピュータ読取可能な記録媒体を提供することができる。また、コンピュータの負荷を低減させることが可能な画像合成プログラムを記録したコンピュータ読取可能な記録媒体を提供することができる。   According to the present invention, it is possible to provide a computer-readable recording medium on which an image composition program capable of preventing image quality deterioration and compression rate reduction is recorded. Further, it is possible to provide a computer-readable recording medium that records an image composition program that can reduce the load on the computer.

以下、本発明の実施の形態について図面を参照して説明する。以下の説明では、同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがってそれらについての詳細な説明は繰返さない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

本実施の形態における画像合成装置は、関数変換を用いた画像符号化方式で符号化された符号化画像データの合成を行う。ここで、関数変換とは、基底関数の組による、空間領域からの変換をいう。また、空間領域に対し関数変換された領域を関数変換領域という。関数変換には、DCT(離散コサイン変換)、DFT(離散フーリエ変換)、ウォルシュ・アダマール変換(WHT)、離散サイン変換(DST)、ハール変換、スラント変換、カルーネン/レーベ変換(KLT)、直交ウェーブレット変換に代表される直交変換にとどまらず、非直交ウェーブレット等の非直交変換も含まれる。   The image synthesizing apparatus according to the present embodiment synthesizes encoded image data encoded by an image encoding method using function conversion. Here, function conversion refers to conversion from the spatial domain using a set of basis functions. An area that is function-converted with respect to the space area is referred to as a function conversion area. Function transformation includes DCT (Discrete Cosine Transform), DFT (Discrete Fourier Transform), Walsh Hadamard Transform (WHT), Discrete Sine Transform (DST), Haar Transform, Slant Transform, Karhunen / Labe Transform (KLT), Orthogonal Wavelet It is not limited to orthogonal transformation represented by transformation, and non-orthogonal transformation such as non-orthogonal wavelet is also included.

ここで、本明細書で用いるその他の用語について定義しておく。まず、空間領域で表現された画像データを空間領域画像データという。関数変換によって得られる画像データを関数変換領域画像データといい、その係数を関数変換係数という。また、関数変換係数の値を関数変換係数値という。   Here, other terms used in this specification are defined. First, image data expressed in the spatial domain is referred to as spatial domain image data. Image data obtained by function conversion is called function conversion area image data, and its coefficient is called function conversion coefficient. The value of the function conversion coefficient is referred to as a function conversion coefficient value.

また、関数変換領域画像データの関数変換係数が量子化されている画像データを量子化関数変換領域画像データといい、その係数を量子化関数変換係数という。また、量子化関数変換領域画像データをハフマン符号化等の可逆符号化されているデータを符号化画像データという。   Also, image data in which the function conversion coefficient of the function conversion area image data is quantized is referred to as quantization function conversion area image data, and the coefficient is referred to as a quantization function conversion coefficient. Also, the quantization function transform area image data that is losslessly encoded such as Huffman encoding is referred to as encoded image data.

また、画像データとは、空間領域画像データ、関数変換領域画像データ、量子化関数変換領域画像データ、符号化画像データなど、全ての画像を表現するデータを包含したものであるとする。   The image data includes data representing all images, such as spatial domain image data, function transformation domain image data, quantization function transformation domain image data, and encoded image data.

また、関数変換領域から、空間領域への基底関数の組による変換を関数逆変換という。
ここで、図16を用いて、本実施の形態の画像合成装置について、説明する。本実施の形態の画像合成装置は、空間領域から関数変換領域に変換する関数変換処理は例えば(8画素×8画素)のブロック単位で行なう。また、画像データの各種係数および画素値の切取および貼り付けは前記ブロック単位で行う。なお、ブロックの大きさは、任意で構わない。関数変換がN画素×M画素のブロック単位でなされる場合は、N×Mのブロック単位で各種係数および画素値の切取、および貼り付けを行えばよい。
In addition, conversion from a function conversion area to a space area by a set of basis functions is called function inversion.
Here, the image composition apparatus of the present embodiment will be described with reference to FIG. In the image composition apparatus according to the present embodiment, the function conversion processing for converting from the space area to the function conversion area is performed in units of blocks (8 pixels × 8 pixels), for example. Also, various coefficients and pixel values of image data are cut and pasted in units of the blocks. The size of the block may be arbitrary. When function conversion is performed in units of blocks of N pixels × M pixels, various coefficients and pixel values may be cut and pasted in units of N × M blocks.

<第1の実施の形態>
図1は、第1の実施の形態における画像合成装置の機能の概略を示す機能ブロック図である。画像合成装置1004は、一般的なコンピュータで実現することができる。コンピュータのハード構成は周知であるのでここでは説明を繰返さない。
<First Embodiment>
FIG. 1 is a functional block diagram illustrating an outline of functions of the image composition apparatus according to the first embodiment. The image composition device 1004 can be realized by a general computer. Since the hardware configuration of a computer is well known, description thereof will not be repeated here.

図1を参照して、画像合成装置1004は、第1画像入力装置1001、第2画像入力装置1002、合成マップ入力装置1003および符号化合成画像データ出力装置1005と接続される。画像合成装置1004には、第1画像入力装置1001から第1符号化画像データが入力され、第2画像入力装置1002から第2符号化画像データが入力され、合成マップ入力装置1003から合成マップデータが入力される。第1符号化画像データは、量子化幅を表現した第1量子化テーブルをヘッダ情報に含んだデータである。第2符号化画像データは、量子化幅を表現した第2量子化テーブルをヘッダ情報に含んだデータである。   Referring to FIG. 1, an image composition device 1004 is connected to a first image input device 1001, a second image input device 1002, a composite map input device 1003, and an encoded composite image data output device 1005. The image composition apparatus 1004 receives the first encoded image data from the first image input apparatus 1001, the second encoded image data from the second image input apparatus 1002, and the composition map data from the composition map input apparatus 1003. Is entered. The first encoded image data is data including a first quantization table expressing a quantization width in header information. The second encoded image data is data including the second quantization table expressing the quantization width in the header information.

画像合成装置1004は、第1符号化画像データと、第2符号化画像データと、合成マップデータとに基づき、符号化合成画像データを生成し、符号化合成画像データ出力装置1005に出力する。   The image synthesis device 1004 generates encoded composite image data based on the first encoded image data, the second encoded image data, and the composite map data, and outputs the encoded composite image data to the encoded composite image data output device 1005.

画像合成装置1004には、CD−ROM(Compact Disc Read Only Memory)1021が装着可能である。画像合成装置1004は、CD−ROM等の記録媒体に記録された画像合成プログラムをCPU(Central Processing Unit)により実行するようにしてもよい。一般的にこうした画像合成プログラムは、CD−ROMドライブなどにより記録媒体から読取られてハードディスクに一旦格納される。さらにハードディスクからランダムアクセスメモリ(RAM)に読出されてCPUにより実行される。   A CD-ROM (Compact Disc Read Only Memory) 1021 can be attached to the image composition device 1004. The image composition device 1004 may execute an image composition program recorded on a recording medium such as a CD-ROM by a CPU (Central Processing Unit). Generally, such an image composition program is read from a recording medium by a CD-ROM drive or the like and temporarily stored in a hard disk. Further, it is read from the hard disk to a random access memory (RAM) and executed by the CPU.

なお、記録媒体としては、CD−ROM、ハードディスクに限られず、フレキシブルディスク、カセットテープ、光ディスク(MO(Magnetic Optical Disc)/MD(Mini Disc)/DVD(Digital Versatile Disc)、ICカード(メモリカードを含む)、光カード、マスクROM、EPROM、EEPROM、フラッシュROMなどの半導体メモリ等の固定的にプログラムを担持する媒体でもよい。   Recording media are not limited to CD-ROMs and hard disks, but are flexible disks, cassette tapes, optical disks (MO (Magnetic Optical Disc) / MD (Mini Disc) / DVD (Digital Versatile Disc)), IC cards (memory cards). Medium) that carries a fixed program, such as a semiconductor memory such as an optical card, mask ROM, EPROM, EEPROM, flash ROM, or the like.

ここでいうプログラムとは、CPUにより直接実行可能なプログラムだけでなく、ソースプログラム形式のプログラム、圧縮処理されたプログラム、暗号化されたプログラム等を含む。   The program here includes not only a program directly executable by the CPU but also a program in a source program format, a compressed program, an encrypted program, and the like.

ここで合成マップデータについて説明する。合成マップデータは、合成画像の生成方法を定義するデータである。合成画像は、1つまたは複数の画像の少なくとも一部の領域を配置して定まる。したがって、合成マップデータは、合成の元となる画像中の合成の対象となる領域の位置およびその領域の合成画像中の位置とを定義する。具体的には、第1画像データ中の合成画像に用いられる領域の位置およびその領域の合成画像中の位置と、第2画像データ中の合成画像に用いる領域の位置およびその領域の合成画像中の位置とを定義する。   Here, the composite map data will be described. The composite map data is data that defines a method for generating a composite image. The composite image is determined by arranging at least a partial region of one or a plurality of images. Therefore, the composite map data defines the position of the region to be combined in the image that is the source of the combination and the position of the region in the combined image. Specifically, the position of the region used for the composite image in the first image data and the position of the region in the composite image, the position of the region used for the composite image in the second image data, and the composite image of the region Define the position of.

図2は、合成マップデータの一例を示す図である。図2を参照して、合成マップデータについての説明を行う。合成マップデータは、ヘッダ部とデータ部からなる。データ部は、第1画像切取領域データと、第2画像切取領域データと、合成画像貼付領域データとを含む。ヘッダ部は、各領域データのオフセット値を定義するためのデータである。ヘッダ部に定義されたオフセット値に基づいて、各領域データにアクセス可能となる。   FIG. 2 is a diagram illustrating an example of the composite map data. The composite map data will be described with reference to FIG. The composite map data includes a header part and a data part. The data portion includes first image cut area data, second image cut area data, and composite image pasting area data. The header part is data for defining an offset value of each area data. Each area data can be accessed based on the offset value defined in the header part.

ここで、図16に示した複数の画像データの合成処理に対応する合成マップデータについて説明する。図3は第1画像切取領域データを示す図である。図4は第2画像切取領域データを示す図、図5は合成画像貼付領域データを示す図である。第1画像切取領域データは、第1直交変換領域符号化画像データ101に対応し、第1直交変換領域符号化画像データ101と同じサイズである。第2画像切取領域データは、第2直交変換領域符号化画像データ102に対応し、第2直交変換領域符号化画像データ102と同じサイズである。合成画像貼付領域データは、合成直交変換領域符号化画像データ103に対応し、合成直交変換領域符号化画像データ103と同じサイズである。第1画像切取領域データの斜線部201と合成画像貼付領域データの斜線部401とはすべて同じ値(例えば1)であることを示している。第2画像切取領域データの斜線部301と合成画像貼付領域データの斜線部402とは、斜線部201と斜線部401とは異なる値ですべて同じ値(例えば2)であることを示している。第1画像切取領域データの空白領域202および第2画像切取領域データの空白領域302はすべて同じ値(例えば0)であることを示している。   Here, composite map data corresponding to the composite processing of a plurality of image data shown in FIG. 16 will be described. FIG. 3 is a diagram showing the first image cut-out area data. 4 is a diagram showing the second image cut-out region data, and FIG. 5 is a diagram showing the composite image pasting region data. The first image cut region data corresponds to the first orthogonal transform region encoded image data 101 and has the same size as the first orthogonal transform region encoded image data 101. The second image cut-out area data corresponds to the second orthogonal transform area encoded image data 102 and has the same size as the second orthogonal transform area encoded image data 102. The combined image pasting area data corresponds to the combined orthogonal transform area encoded image data 103 and has the same size as the combined orthogonal transform area encoded image data 103. The hatched portion 201 of the first image cut-out region data and the shaded portion 401 of the composite image pasting region data all indicate the same value (for example, 1). The hatched portion 301 of the second image cut-out region data and the shaded portion 402 of the composite image pasting region data indicate that the hatched portion 201 and the hatched portion 401 are different values and all have the same value (for example, 2). The blank area 202 of the first image cut-out area data and the blank area 302 of the second image cut-out area data all indicate the same value (for example, 0).

合成画像貼付領域データ中の領域401は第1画像切取領域データ中の斜線部201に対応し、合成画像貼付領域データ中の領域402は第2画像切取領域データ中の斜線部301に対応し、それぞれ合成時に用いる領域を示している。第1画像切取領域データ中の空白領域202と、第2画像切取領域データ中の空白領域302とは、合成に用いない領域を示す。   The area 401 in the composite image pasting area data corresponds to the hatched portion 201 in the first image cut-out area data, the area 402 in the composite image pasting area data corresponds to the hatched section 301 in the second image cut-out area data, Each region used in the synthesis is shown. A blank area 202 in the first image cut-out area data and a blank area 302 in the second image cut-out area data indicate areas that are not used for composition.

第1画像切取領域データは、第1符号化画像データ中で合成に用いる領域(斜線部201)の位置を定義する。第2画像切取領域データは、第2符号化画像データ中の合成に用いる領域(斜線部301)の位置を定義する。合成画像貼付領域データは、第1符号化画像データ中の合成に用いる領域(斜線部201)と第2符号化画像データ中の合成に用いる領域(斜線部301)との合成画像中の位置を定義する。具体的には、第1画像切取領域データ中の斜線部201に対応する第1符号化画像データの領域は、その符号化合成画像データ中の位置が、斜線部201と同じ値を有する合成画像貼付領域データ中の領域401で定義される。第2画像切取領域データ中の斜線部301に対応する第2符号化画像データの領域は、その符号化合成画像データ中の位置が、斜線部301と同じ値を有する合成画像貼付領域データ中の領域402で定義される。   The first image cut-out area data defines the position of an area (shaded portion 201) used for synthesis in the first encoded image data. The second image cut-out area data defines the position of an area (shaded portion 301) used for composition in the second encoded image data. The composite image pasting area data indicates the position in the composite image of the area (shaded portion 201) used for composition in the first encoded image data and the region (shaded section 301) used for composition in the second encoded image data. Define. Specifically, the region of the first encoded image data corresponding to the shaded portion 201 in the first image cut-out region data is a composite image in which the position in the encoded composite image data has the same value as the shaded portion 201. It is defined by an area 401 in the pasting area data. The region of the second encoded image data corresponding to the hatched portion 301 in the second image cut-out region data is the same as the region in the combined image pasting region data whose position in the encoded combined image data has the same value as the hatched portion 301. It is defined in area 402.

図6は、画像合成処理の別の例を説明するための図である。図6(A)は、第1符号化画像データを示し、図6(B)は第2符号化画像データを示し、図6(C)は符号化合成画像データを示す。図7は第1画像切取領域データを示す別の図である。図8は第2画像切取領域データを示す別の図である。図9は合成画像貼付領域データを示す別の図である。   FIG. 6 is a diagram for explaining another example of the image composition process. 6A shows the first encoded image data, FIG. 6B shows the second encoded image data, and FIG. 6C shows the encoded combined image data. FIG. 7 is another diagram showing the first image cut-out area data. FIG. 8 is another diagram showing the second image cut-out area data. FIG. 9 is another diagram showing the composite image pasting area data.

第1画像切取領域データは、図6(A)に示す第1符号化画像データに対応し、第1符号化画像データと同じサイズである。第2画像切取領域データは、図6(B)に示す第2符号化画像データに対応し、第2符号化画像データと同じサイズである。合成画像貼付領域データは、図6(C)に示す符号化合成画像データに対応し、符号化合成画像データと同じサイズである。第1画像切取領域データの斜線部601と合成画像貼付領域データの斜線部801とはすべて同じ値(例えば1)であることを示している。第2画像切取領域データの斜線部701と合成画像貼付領域データの斜線部802とは、斜線部602と斜線部801とは異なる値ですべて同じ値(例えば2)であることを示している。第1画像切取領域データの空白領域601および第2画像切取領域データの空白領域702はすべて同じ値(例えば0)であることを示している。   The first image cut-out area data corresponds to the first encoded image data shown in FIG. 6A and has the same size as the first encoded image data. The second image cut-out area data corresponds to the second encoded image data shown in FIG. 6B and has the same size as the second encoded image data. The composite image pasting area data corresponds to the encoded composite image data shown in FIG. 6C and has the same size as the encoded composite image data. The hatched portion 601 of the first image cut-out region data and the shaded portion 801 of the composite image pasting region data all indicate the same value (for example, 1). The hatched portion 701 of the second image cut-out region data and the hatched portion 802 of the composite image pasting region data indicate that the hatched portion 602 and the hatched portion 801 are different values and all have the same value (for example, 2). The blank area 601 of the first image cut-out area data and the blank area 702 of the second image cut-out area data all indicate the same value (for example, 0).

合成画像貼付領域データ中の領域801は第1画像切取領域データ中の斜線部602に対応し、合成画像貼付領域データ中の領域802は第2画像切取領域データ中の斜線部701に対応し、それぞれ合成時に用いる領域を示している。第1画像切取領域データ中の空白領域601と、第2画像切取領域データ中の空白領域702とは、合成に用いない領域を示す。   The area 801 in the composite image pasting area data corresponds to the hatched part 602 in the first image cut-out area data, the area 802 in the composite image pasting area data corresponds to the hatched part 701 in the second image cut-out area data, Each region used in the synthesis is shown. A blank area 601 in the first image cut-out area data and a blank area 702 in the second image cut-out area data indicate areas that are not used for composition.

第1画像切取領域データは、第1符号化画像データ中で合成に用いる領域(斜線部602)の位置を定義する。第2画像切取領域データは、第2符号化画像データ中の合成に用いる領域(斜線部701)の位置を定義する。合成画像貼付領域データは、第1符号化画像データ中の合成に用いる領域(斜線部602)と第2符号化画像データ中の合成に用いる領域(斜線部701)との合成符号化画像データ中の位置を定義する。具体的には、第1画像切取領域データ中の斜線部602に対応する第1符号化画像データの領域は、その符号化合成画像データ中の位置が、斜線部602と同じ値を有する合成画像貼付領域データ中の領域801で定義される。第2画像切取領域データ中の斜線部701に対応する第2画像符号化データの領域は、その符号化合成画像データ中の位置が、斜線部701と同じ値を有する合成画像貼付領域データ中の領域802で定義される。   The first image cut-out area data defines the position of an area (shaded portion 602) used for synthesis in the first encoded image data. The second image cut-out area data defines the position of an area (shaded portion 701) used for composition in the second encoded image data. The composite image pasting region data is included in the composite encoded image data of the region (shaded portion 602) used for composition in the first encoded image data and the region (shaded portion 701) used for composition in the second encoded image data. Define the position of. Specifically, the region of the first encoded image data corresponding to the hatched portion 602 in the first image cut-out region data is a composite image in which the position in the encoded combined image data has the same value as the hatched portion 602. It is defined by an area 801 in the pasting area data. The region of the second image encoded data corresponding to the hatched portion 701 in the second image cut-out region data is the same as the region in the combined image pasting region data whose position in the encoded combined image data has the same value as the hatched portion 701. It is defined in area 802.

なお、合成マップデータは、切取る領域と、その切取る領域を合成符号化画像データのどの位置に貼り付けるかが一意に規定されれば、どのような形式のものでもかまわない。   The composite map data may be in any format as long as the area to be clipped and the position where the clipped area is pasted in the composite encoded image data are uniquely defined.

図1に戻って、画像合成装置1004は、第1画像データ入力装置1001から入力された第1符号化画像データを記憶する第1符号化画像データバッファ1006と、第2画像データ入力装置1002から入力された第2符号化画像データを記憶する第2符号化画像データバッファ1007と、合成マップ入力装置1003から入力された合成マップデータを記憶する合成マップデータバッファ1008と、第1および第2符号化画像データを復号し、復号後の量子化関数変換領域画像データの各量子化関数変換係数を、第1量子化関数変換係数データおよび第2量子化関数変換係数データとして取出す量子化関数変換係数取得処理部1009と、取出された第1および第2量子化関数変換係数データそれぞれを記憶するための第1および第2量子化関数変換係数データバッファ1011,1013と、第1および第2符号化画像データから第1および第2量子化テーブルを取出す量子化テーブル取得処理部1010と、取出された量子化テーブルを記憶するための第1および第2量子化テーブルバッファ1012,1015と、第1および第2量子化テーブルから合成量子化テーブルを作成する合成量子化テーブル作成処理部1017と、第1および第2量子化関数変換係数データをそれぞれ変換して第1および第2量子化関数変換係数データを作成するための合成量子化関数変換係数データ作成処理部1014と、作成された合成量子化関数変換係数データを記憶するための合成量子化関数変換データバッファ1016と、合成量子化関数変換係数データおよび合成量子化テーブルとから符号化合成画像データを作成する符号化合成画像データ作成処理部1019と、符号化合成画像データを記憶するための符号化合成画像データバッファ1020とを含む。   Returning to FIG. 1, the image composition device 1004 receives the first encoded image data buffer 1006 for storing the first encoded image data input from the first image data input device 1001 and the second image data input device 1002. A second encoded image data buffer 1007 for storing the input second encoded image data; a composite map data buffer 1008 for storing the composite map data input from the composite map input device 1003; and first and second codes Quantization function transform coefficient that decodes quantized image data and takes out each quantized function transform coefficient of the decoded quantized function transform area image data as first quantized function transform coefficient data and second quantized function transform coefficient data An acquisition processing unit 1009 and first and second storage units for storing the extracted first and second quantization function transform coefficient data, respectively; 2 quantization function transform coefficient data buffers 1011 and 1013, a quantization table acquisition processing unit 1010 that extracts the first and second quantization tables from the first and second encoded image data, and stores the extracted quantization tables First and second quantization table buffers 1012 and 1015, a synthesized quantization table creation processing unit 1017 that creates a synthesized quantization table from the first and second quantization tables, and first and second quantizations A synthesized quantization function transformation coefficient data creation processing unit 1014 for creating the first and second quantization function transformation coefficient data by converting the function transformation coefficient data, respectively, and storing the created synthesized quantization function transformation coefficient data A synthesized quantization function transform data buffer 1016, a synthesized quantization function transform coefficient data, and a synthesized quantization data Includes a coded composite image data creation processing unit 1019 for creating a coded composite image data from the table, the encoded composite image data buffer 1020 for storing the encoded composite image data.

第1符号化画像データバッファ1006、第2符号化画像データバッファ1007、合成マップデータバッファ1008、第1および第2量子化関数変換係数データバッファ1011,1013、第1および第2量子化テーブルバッファ1012,1015、合成量子化テーブルバッファ1018、合成量子化関数変換係数データバッファ1016、符号化合成画像データバッファ1020は、フラッシュメモリ、ハードディスク等のRAM(ランダムアクセスメモリ)によって実現される。   First encoded image data buffer 1006, second encoded image data buffer 1007, composite map data buffer 1008, first and second quantization function transform coefficient data buffers 1011 and 1013, and first and second quantization table buffer 1012 , 1015, the combined quantization table buffer 1018, the combined quantization function transform coefficient data buffer 1016, and the encoded combined image data buffer 1020 are realized by a random access memory (RAM) such as a flash memory or a hard disk.

量子化関数変換係数取得処理部1009、量子化テーブル取得処理部1010、合成量子化テーブル作成処理部1017、合成量子化関数変換係数データ作成処理部1014、符号化合成画像データ作成処理部1019は、例えばそれぞれ独立した回路によって実現される。また、例えばコンピュータ等の演算処理回路によって実現される仮想回路とされてもよい。   A quantization function conversion coefficient acquisition processing unit 1009, a quantization table acquisition processing unit 1010, a synthetic quantization table creation processing unit 1017, a synthetic quantization function transformation coefficient data creation processing unit 1014, and an encoded synthesized image data creation processing unit 1019 For example, each is realized by an independent circuit. Further, for example, a virtual circuit realized by an arithmetic processing circuit such as a computer may be used.

量子化関数変換係数取得処理部1009は、第1符号化画像データバッファ1006から第1符号化画像データを読込み復号し、第1量子化関数変換係数データが取得される。そして、第1量子化関数変換係数データを第1量子化関数変換係数データバッファ1011に格納する。また、量子化関数変換係数取得処理部1009は、第2符号化画像データバッファ1007から第2符号化画像データを読込み復号する。これにより、第2符号化画像データが復号されて第2量子化関数変換係数データが取得される。そして、第2量子化関数変換係数データを第2量子化関数変換係数データバッファ1013に格納する。   The quantization function transform coefficient acquisition processing unit 1009 reads and decodes the first encoded image data from the first encoded image data buffer 1006, and the first quantization function transform coefficient data is acquired. Then, the first quantization function conversion coefficient data is stored in the first quantization function conversion coefficient data buffer 1011. The quantization function transform coefficient acquisition processing unit 1009 reads the second encoded image data from the second encoded image data buffer 1007 and decodes it. As a result, the second encoded image data is decoded and second quantization function transform coefficient data is acquired. Then, the second quantization function conversion coefficient data is stored in the second quantization function conversion coefficient data buffer 1013.

量子化テーブル取得処理部1010は、第1符号化画像データバッファ1006から第1符号化画像データを読込み、第1量子化テーブルを取出す。そして、取出した第1量子化テーブルを第1量子化テーブルバッファ1012に格納する。また、量子化テーブル取得処理部1010は、第2符号化画像データバッファ1007から第2符号化画像データを読込み、第2量子化テーブルを取出す。そして、取出した第2量子化テーブルを第2量子化テーブルバッファ1015に格納する。   The quantization table acquisition processing unit 1010 reads the first encoded image data from the first encoded image data buffer 1006 and extracts the first quantization table. Then, the extracted first quantization table is stored in the first quantization table buffer 1012. Also, the quantization table acquisition processing unit 1010 reads the second encoded image data from the second encoded image data buffer 1007 and extracts the second quantization table. Then, the extracted second quantization table is stored in the second quantization table buffer 1015.

合成量子化テーブル作成処理部1017は、第1量子化テーブルバッファ1012から第1量子化テーブルを、第2量子化テーブルバッファ1015から第2量子化テーブルを読込み、合成量子化テーブルを作成する。そして、作成した合成量子化テーブルを合成量子化テーブルバッファ1018に格納する。合成量子化テーブル作成処理部1017で作成する合成量子化テーブルは、各要素がその要素に対応する第1量子化テーブルと第2量子化テーブルの要素の公約数とするのが好ましい。より好ましくは、最大公約数である。   The synthetic quantization table creation processing unit 1017 reads the first quantization table from the first quantization table buffer 1012 and the second quantization table from the second quantization table buffer 1015 to create a synthetic quantization table. Then, the generated synthesized quantization table is stored in the synthesized quantization table buffer 1018. The synthesized quantization table created by the synthesized quantization table creation processing unit 1017 is preferably a common divisor of the elements of the first quantization table and the second quantization table, each element corresponding to the element. More preferably, it is the greatest common divisor.

合成量子化関数変換係数データ作成処理部1014は、第1量子化関数変換係数データバッファ1011から第1量子化関数変換係数データを、第2量子化関数変換係数データバッファ1013から第2量子化関数変換係数データを、第1量子化テーブルバッファから第1量子化テーブルを、第2量子化テーブルバッファから第2量子化テーブルを、合成量子化テーブルバッファ1018から合成量子化テーブルを読込む。そして、合成量子化関数変換係数データ作成処理部1014は、合成マップデータの第1画像切取領域データで特定される第1領域を第1量子化関数変換係数データから切取り、第2画像切取領域データで特定される第2領域を第2量子化関数変換係数データから切取る。そして、第1領域と第2領域それぞれを合成マップデータの合成画像貼り付け領域データで特定される領域にブロック単位で貼り付ける。この貼り付けの際に、第1量子化関数変換係数データについては、それに対応する第1量子化データと合成量子化データとに基づいて変換し、第2量子化関数変換係数データについてはそれに対応する第2量子化データと合成量子化データとに基づいて変換する。   The synthetic quantization function conversion coefficient data creation processing unit 1014 receives the first quantization function conversion coefficient data from the first quantization function conversion coefficient data buffer 1011 and the second quantization function from the second quantization function conversion coefficient data buffer 1013. The transformation coefficient data is read from the first quantization table buffer, the first quantization table, the second quantization table buffer from the second quantization table, and the synthesized quantization table buffer 1018 from the synthesized quantization table. Then, the synthetic quantization function transform coefficient data creation processing unit 1014 cuts out the first region specified by the first image cut-out region data of the composite map data from the first quantization function transform coefficient data, and the second image cut-out region data. The second region specified by (2) is cut out from the second quantization function transform coefficient data. Then, each of the first area and the second area is pasted in a block unit to the area specified by the composite image pasting area data of the composite map data. At the time of this pasting, the first quantization function conversion coefficient data is converted based on the corresponding first quantization data and synthesized quantization data, and the second quantization function conversion coefficient data is corresponding to it. Conversion is performed based on the second quantized data and the synthesized quantized data.

符号化合成画像データ作成処理部1019は、合成量子化関数変換係数データバッファ1016から合成量子化関数変換係数データを、合成量子化テーブルバッファ1018から合成量子化テーブルを読込む。符号化合成画像データ作成処理部1019は、読込んだ合成量子化関数変換係数データに対してハフマン符号化等の可逆符号化処理する。そして、合成量子化テーブルと画像サイズ情報等とをヘッダ情報に含んだ合成量子化関数変換係数データを可逆符号化処理して得たデータを含む符号化合成画像データを作成する。ここでは、符号化合成画像データが、合成量子化テーブルと画像サイズ情報等とを含んだヘッダ情報を持つ例を示すが、これに限定されず符号化画像データとしてのフォーマットに即したデータであればよい。符号化合成画像データ作成処理部1019は、作成した符号化合成画像データを符号化合成画像データバッファ1020に格納する。   The encoded combined image data creation processing unit 1019 reads the combined quantization function conversion coefficient data from the combined quantization function conversion coefficient data buffer 1016 and the combined quantization table from the combined quantization table buffer 1018. The encoded combined image data creation processing unit 1019 performs lossless encoding processing such as Huffman encoding on the read combined quantization function transform coefficient data. Then, encoded combined image data including data obtained by performing lossless encoding processing on the combined quantization function transform coefficient data including the combined quantization table and the image size information in the header information is created. Here, an example is shown in which the encoded combined image data has header information including a combined quantization table and image size information. However, the present invention is not limited to this, and may be data conforming to the format as encoded image data. That's fine. The encoded combined image data creation processing unit 1019 stores the generated encoded combined image data in the encoded combined image data buffer 1020.

ここで、合成量子化テーブルの具体例を説明する。図10は、第1量子化テーブルの一例を示す図である。図11は、第2量子化テーブルの一例を示す図である。図12は、合成量子化テーブルの一例を示す図である。合成量子化テーブルは、各要素がその要素に対応する第1量子化テーブルと第2量子化テーブルの要素の最大公約数となっている。   Here, a specific example of the synthetic quantization table will be described. FIG. 10 is a diagram illustrating an example of the first quantization table. FIG. 11 is a diagram illustrating an example of the second quantization table. FIG. 12 is a diagram illustrating an example of the synthetic quantization table. In the synthesized quantization table, each element is the greatest common divisor of the elements of the first quantization table and the second quantization table corresponding to the element.

次に、合成量子化関数変換係数データ作成処理部1014で実行する変換処理について説明する。合成量子化関数変換係数データ作成処理部1014は、第1量子化関数変換係数データの各ブロックの要素を次式(1)を用いて、第2量子化関数変換係数データの各ブロックの要素を次式(2)を用いて要素値を変換する。   Next, the conversion process executed by the synthetic quantization function conversion coefficient data creation processing unit 1014 will be described. The synthesized quantization function transform coefficient data creation processing unit 1014 converts the elements of each block of the first quantization function transform coefficient data into the elements of each block of the second quantization function transform coefficient data using the following equation (1). The element value is converted using the following equation (2).

第1量子化関数変換係数データの各ブロックの要素値=(第1量子化関数変換係数データの各ブロックの元の要素値)×(第1量子化テーブルデータの対応する要素値)/(合成量子化テーブルの対応する要素値) … (1)
第2量子化関数変換係数データの各ブロックの要素値=(第2量子化関数変換係数データの各ブロックの元の要素値)×(第2量子化テーブルデータの対応する要素値)/(合成量子化テーブルの対応する要素値) … (2)
上述したように、合成量子化テーブル作成処理部1017で作成する合成量子化テーブルは、各要素がその要素に対応する第1量子化テーブルと第2量子化テーブルの要素の公約数、より好ましくは最大公約数であった。公約数とすることにより、上記式(1)および式(2)は割り切れることになる。すなわち、合成量子化関数変換係数データ作成処理部1014で計算誤差(量子化誤差)が全く生じない。このため、符号化合成画像データは全く劣化しないことになる。また、最大公約数とすることにより、符号化合成画像データを全く劣化させないという条件下で合成量子化関数変換領域画像データの量子化関数変換係数を最小にすることができる。これにより、量子化関数変換係数は低い値にシフトする。一般に量子化関数変換係数値の可逆符号化は、低い値の出現率が高い場合に圧縮率が高まるように設定されることが多く、係数値が低いことは、圧縮率の向上につながる。
Element value of each block of first quantization function transform coefficient data = (original element value of each block of first quantization function transform coefficient data) × (corresponding element value of first quantization table data) / (synthesis Corresponding element value of quantization table) (1)
Element value of each block of second quantization function transform coefficient data = (original element value of each block of second quantization function transform coefficient data) × (corresponding element value of second quantization table data) / (synthesis Corresponding element value of quantization table) (2)
As described above, the synthetic quantization table created by the synthetic quantization table creation processing unit 1017 is a common divisor of elements of the first quantization table and the second quantization table, each element corresponding to the element, more preferably It was the greatest common divisor. By setting the common divisor, the above formulas (1) and (2) are divisible. That is, no calculation error (quantization error) occurs in the synthetic quantization function transform coefficient data creation processing unit 1014. For this reason, the encoded combined image data is not deteriorated at all. Further, by setting the greatest common divisor, the quantization function transform coefficient of the synthesized quantization function transform region image data can be minimized under the condition that the coded synthesized image data is not deteriorated at all. As a result, the quantization function transform coefficient is shifted to a low value. In general, lossless encoding of quantization function transform coefficient values is often set so that the compression rate increases when the appearance rate of low values is high, and a low coefficient value leads to an improvement in compression rate.

図13は、第1の実施の形態における画像合成装置1004で実行される処理の流れを示すフローチャートである。図13を参照して、画像合成装置1004は、第1画像入力装置1001から入力された第1符号化画像データを第1符号化画像データバッファ1006に格納する(S1102)。そして、第2画像入力装置1002から入力された第2符号化画像データを第2符号化画像データバッファ1007に格納する(S1103)。さらに、合成マップ入力装置1003から入力された合成マップデータを合成マップデータバッファ1008に格納する(S1104)。   FIG. 13 is a flowchart illustrating a flow of processing executed by the image composition device 1004 according to the first embodiment. Referring to FIG. 13, the image composition device 1004 stores the first encoded image data input from the first image input device 1001 in the first encoded image data buffer 1006 (S1102). Then, the second encoded image data input from the second image input device 1002 is stored in the second encoded image data buffer 1007 (S1103). Further, the composite map data input from the composite map input device 1003 is stored in the composite map data buffer 1008 (S1104).

次に、量子化関数変換係数取得処理部1009は、第1符号化画像データバッファ1006から第1符号化画像データを読込み復号する(S1105)。第1符号化画像データを復号することにより第1量子化関数変換係数データが取得される。取出された第1量子化関数変換係数データは、第1量子化関数変換係数データバッファ1011に格納される(S1106)。量子化テーブル取得処理部1010は、第1符号化画像データバッファ1006から第1符号化画像データを読込み、第1量子化テーブルを取出す(S1107)。そして、取出した第1量子化テーブルを第1量子化テーブルバッファ1012に格納する(S1108)。   Next, the quantization function transform coefficient acquisition processing unit 1009 reads and decodes the first encoded image data from the first encoded image data buffer 1006 (S1105). The first quantized function transform coefficient data is obtained by decoding the first encoded image data. The extracted first quantization function transform coefficient data is stored in the first quantization function transform coefficient data buffer 1011 (S1106). The quantization table acquisition processing unit 1010 reads the first encoded image data from the first encoded image data buffer 1006 and extracts the first quantization table (S1107). The extracted first quantization table is stored in the first quantization table buffer 1012 (S1108).

量子化関数変換係数取得処理部1009は、さらに、第2符号化画像データバッファ1007から第2符号化画像データを読込み復号する(S1109)。第2符号化画像データを復号することにより第2量子化関数変換係数データが取得される。取出された第2量子化関数変換係数データは、第2量子化関数変換係数データバッファ1013に格納される(S1110)。量子化テーブル取得処理部1010は、第2符号化画像データバッファ1007から第2符号化画像データを読込み、第2量子化テーブルを取出す(S1111)。そして、取出した第2量子化テーブルを第2量子化テーブルバッファ1015に格納する(S1112)。   The quantization function transform coefficient acquisition processing unit 1009 further reads and decodes the second encoded image data from the second encoded image data buffer 1007 (S1109). By decoding the second encoded image data, second quantization function transform coefficient data is obtained. The extracted second quantization function transform coefficient data is stored in the second quantization function transform coefficient data buffer 1013 (S1110). The quantization table acquisition processing unit 1010 reads the second encoded image data from the second encoded image data buffer 1007 and extracts the second quantization table (S1111). Then, the extracted second quantization table is stored in the second quantization table buffer 1015 (S1112).

次に、合成量子化テーブル作成処理部1017は、第1量子化テーブルバッファ1012から第1量子化テーブルを、第2量子化テーブルバッファ1015から第2量子化テーブルを読込み、それらから合成量子化テーブルを作成する(S1113)。ここでは、合成量子化テーブルの各要素は、第1量子化テーブルと第2量子化テーブルの対応する要素の最大公約数とされる。作成した合成量子化テーブルは、合成量子化テーブルバッファ1018に格納される(S1114)。   Next, the synthesized quantization table creation processing unit 1017 reads the first quantization table from the first quantization table buffer 1012 and the second quantization table from the second quantization table buffer 1015, and uses them as a synthesized quantization table. Is created (S1113). Here, each element of the synthesized quantization table is the greatest common divisor of the corresponding elements of the first quantization table and the second quantization table. The created synthetic quantization table is stored in the synthetic quantization table buffer 1018 (S1114).

そして、合成量子化関数変換係数データ作成処理部1014は、合成量子化関数変換係数データを作成する(S1115)。合成量子化関数変換係数データ作成処理部1014は、合成マップデータの第1画像切取領域データで特定される第1領域を第1量子化関数変換係数データから切取り、第2画像切取領域データで特定される第2領域を第2量子化関数変換係数データから切取る。そして、第1領域と第2領域それぞれを合成マップデータの合成画像貼付領域データで特定される領域にブロック単位で貼付ける。この貼付けの際に、第1量子化関数変換係数データについては上記式(1)にしたがって変換し、第2量子化関数変換係数データについては上記式(2)にしたがって変換する。これにより第1量子化関数変換係数データのうち第1領域であって量子化関数変換係数が変換されたデータと、第2量子化関数変換係数データのうち第2領域であって変換されたデータとからなる合成量子化関数変換係数データが作成される。   Then, the synthesized quantization function transform coefficient data creation processing unit 1014 creates synthesized quantization function transform coefficient data (S1115). The synthetic quantization function conversion coefficient data creation processing unit 1014 cuts out the first area specified by the first image cut area data of the composite map data from the first quantization function conversion coefficient data and specifies the second image cut area data. The second region to be processed is cut out from the second quantization function transform coefficient data. Then, each of the first area and the second area is pasted in block units to the area specified by the composite image pasting area data of the composite map data. At the time of this pasting, the first quantization function conversion coefficient data is converted according to the above equation (1), and the second quantization function conversion coefficient data is converted according to the above equation (2). As a result, the first quantized function transform coefficient data in the first area and the quantized function transform coefficient converted data, and the second quantized function transform coefficient data in the second area and transformed data. Synthetic quantization function transform coefficient data consisting of

そして、作成された合成量子化関数変換係数データが合成量子化関数変換係数データバッファ1016に格納される(S1116)。符号化合成画像データ作成処理部1019は、合成量子化関数変換係数データバッファ1016から合成量子化関数係数データを読込み、合成量子化関数変換係数データに対してハフマン符号化等の可逆符号化処理する。そして、合成量子化テーブルと画像サイズ情報等のヘッダ情報と、合成量子化関数変換係数データを可逆符号化処理して得たデータとを含む符号化合成画像データを作成する(S1117)。符号化合成画像データは、符号化された符号化画像データとしてのフォーマットに即したデータであれば如何なる形式でもよい。そして、作成された符号化合成画像データは、符号化合成画像データバッファ1020に格納される(S1118)。   The generated synthesized quantization function transform coefficient data is stored in the synthesized quantization function transform coefficient data buffer 1016 (S1116). The encoded synthesized image data creation processing unit 1019 reads the synthesized quantization function coefficient data from the synthesized quantization function transform coefficient data buffer 1016, and performs lossless coding processing such as Huffman coding on the synthesized quantization function transform coefficient data. . Then, encoded combined image data including a combined quantization table, header information such as image size information, and data obtained by lossless encoding processing of the combined quantization function transform coefficient data is created (S1117). The encoded composite image data may be in any format as long as the data conforms to the format of the encoded encoded image data. The generated encoded combined image data is stored in the encoded combined image data buffer 1020 (S1118).

<3枚以上の符号化画像を合成する場合>
上述した画像合成装置1004は、説明を簡略にするため、2つの符号化画像データを合成する例を説明したが、複数枚の符号化画像データを合成する場合も、同様に合成することができる。N枚の符号化画像データ(Image1,Image2,Image3,Image4,…,ImageN)を合成する場合、合成量子化テーブルデータは、N枚の符号化画像データそれぞれの量子化テーブルを取得し、N個の量子化テーブルの各要素の公約数(好ましくは最大公約数)をその要素とすればよい。
<When combining three or more encoded images>
The image synthesizing apparatus 1004 described above has described an example in which two pieces of encoded image data are combined for the sake of simplicity. However, when a plurality of pieces of encoded image data are combined, they can be combined similarly. . When N pieces of encoded image data (Image1, Image2, Image3, Image4,..., ImageN) are combined, the combined quantization table data is obtained by obtaining a quantization table for each of the N pieces of encoded image data. The common divisor (preferably the greatest common divisor) of each element of the quantization table may be the element.

また、符号化画像データ(n)に含まれる量子化関数変換係数データ(n)の変換は、その符号化画像データ(n)に対応する量子化テーブル(n)を用いた次式(3)が用いられる。   Further, the conversion of the quantization function conversion coefficient data (n) included in the encoded image data (n) is performed by the following equation (3) using the quantization table (n) corresponding to the encoded image data (n). Is used.

(Image(n)の量子化関数変換係数の各ブロックの要素値)=(Image(n)の量子化関数変換係数データの各ブロックの元の要素値)×(Image(n)の量子化テーブルデータ(n)の対応する要素値)/(合成量子化テーブル(n)の対応する要素値) … (3)
<合成する画像の中に符号化されていない画像が含まれている場合>
合成する画像の中に符号化されていない画像データが含まれていた場合は、合成量子化テーブル作成処理部1017は、符号化されている画像の量子化テーブルから合成量子化テーブルを作成する。符号化されていない画像の量子化関数変換係数は、関数変換後に合成量子化テーブルを用いて作成すればよい。また、1枚の符号化画像データと1枚以上の符号化されていない画像データとの合成の場合、合成量子化テーブルは、符号化画像データの量子化テーブルをそのまま使えばよい。
(Element value of each block of quantization function transform coefficient of Image (n)) = (Original element value of each block of quantization function transform coefficient data of Image (n)) × (Quantization table of Image (n)) Corresponding element value of data (n) / (corresponding element value of synthetic quantization table (n)) (3)
<If the image to be combined contains an uncoded image>
When unencoded image data is included in the image to be combined, the combined quantization table creation processing unit 1017 creates a combined quantization table from the coded image quantization table. What is necessary is just to produce the quantization function conversion coefficient of the image which is not encoded using a synthetic | combination quantization table after function conversion. In the case of synthesizing one piece of encoded image data and one or more pieces of unencoded image data, the synthesized quantization table may be the same as the quantization table of encoded image data.

以上説明したように第1の実施の形態における画像合成装置1004は、複数の符号化画像データの量子化された関数変換係数を、関数変換を施した領域単位でコピーすることで符号化合成画像データを作成するものである。量子化関数変換係数を、関数変換を施した領域単位でコピーする際に、コピー元の符号化画像データに対応する量子化テーブルとコピー先の符号化合成画像データに対応する合成量子化テーブルとに基づき変換する。関数変換領域で合成処理するため、逆量子化、関数逆変換、合成画像データの量子化、関数変換処理といった処理が必要なく、処理数を減らして画像合成装置1004の負荷を低減することができる。また、複数の異なる量子化テーブルで繰返して量子化することが原因となって圧縮率が低下することがない。   As described above, the image synthesis apparatus 1004 according to the first embodiment copies a coded function transform coefficient of a plurality of coded image data in units of regions subjected to function transformation, thereby encoding a synthesized image. Create data. When the quantization function transform coefficient is copied in units of regions subjected to function transformation, a quantization table corresponding to the copy source encoded image data and a synthesis quantization table corresponding to the copy destination encoded composite image data; Convert based on Since the composition processing is performed in the function transformation region, processing such as inverse quantization, inverse function transformation, synthesized image data quantization, and function transformation processing is not required, and the number of processes can be reduced to reduce the load on the image composition device 1004. . Further, the compression rate does not decrease due to repeated quantization with a plurality of different quantization tables.

さらに、合成後の符号化合成画像データに対応する量子化テーブルの各要素は、合成に用いる複数の符号化画像データに対応する量子化テーブルの対応する要素の公約数(特に最大公約数が望ましい)とする。このため、合成後の符号化合成画像データは、合成前の符号化画像データと比較して画質の劣化が全く起こらないので、量子化により発生する誤差の少ない合成量子化テーブルを決定することができる。特に、最大公約数を用いると関数変換係数の量子化後の値が、量子化によるデータ損失のない条件下で最小となる。このため、量子化後の係数を格納するのに要するビット数を減らすことができ、圧縮率を高めることができる。また、各係数の値が全て低い値域に範囲が狭まり、特に係数をまたがったデータ列を可逆符号化する場合に、エントロピー的に有利となる。   Furthermore, each element of the quantization table corresponding to the encoded combined image data after combining is a common divisor of the corresponding elements of the quantization table corresponding to a plurality of encoded image data used for combining (in particular, the greatest common divisor is desirable). ). For this reason, since the encoded combined image data after combining does not cause any deterioration in image quality as compared with the encoded image data before combining, it is possible to determine a combined quantization table with less errors caused by quantization. it can. In particular, when the greatest common divisor is used, the quantized value of the function transform coefficient is minimized under the condition that there is no data loss due to quantization. For this reason, the number of bits required to store the quantized coefficients can be reduced, and the compression rate can be increased. Further, the range is narrowed to a range where all the values of the coefficients are all low, and this is advantageous in entropy particularly when a data string across the coefficients is losslessly encoded.

さらに、復号された画像データを目視で確認する必要がないので、復号処理および符号処理を複数回繰返す必要がない。   Furthermore, since it is not necessary to visually check the decoded image data, there is no need to repeat the decoding process and the encoding process a plurality of times.

また、図1の1022の箇所が本実施の形態の画像符号化装置1004の中心部分であり、1022を画像符号化装置としてもよい。このとき、画像符号化装置の入力が、第1量子化関数変換係数データ、第2量子化関数変換係数データと、それぞれに対応する量子化テーブルおよび、合成マップデータである。また、量子化関数変換係数データとそれに対応する量子化テーブルは、量子化関数変換係数データとして与えても良いのは明らかである。   Further, the portion 1022 in FIG. 1 is the central portion of the image coding apparatus 1004 of the present embodiment, and 1022 may be the image coding apparatus. At this time, the input of the image coding apparatus is the first quantization function transform coefficient data, the second quantization function transform coefficient data, the corresponding quantization table, and the composite map data. It is obvious that the quantization function conversion coefficient data and the corresponding quantization table may be given as quantization function conversion coefficient data.

<第2の実施の形態>
図14は、第2の実施の形態における画像合成装置1504の機能の概略を示す機能ブロック図である。第2の実施の形態における画像合成装置1504は、第1画像データ入力装置1001から入力された第1符号化画像データと、第2画像データ入力装置1002から入力された第2符号化画像データと、合成マップ入力装置1003から入力された合成マップデータとに基づき、符号化合成画像データを生成し、符号化合成画像データ出力装置1005に出力する。
<Second Embodiment>
FIG. 14 is a functional block diagram illustrating an outline of functions of the image composition device 1504 according to the second embodiment. The image composition device 1504 in the second embodiment includes first encoded image data input from the first image data input device 1001, second encoded image data input from the second image data input device 1002, and Based on the composite map data input from the composite map input device 1003, encoded composite image data is generated and output to the encoded composite image data output device 1005.

画像合成装置1504は、第1画像入力装置1001から入力された第1符号化画像データを記憶する第1データバッファ1006と、第2画像入力装置1002から入力された第2符号化画像データを記憶する第2符号化画像データバッファ1007と、合成マップ入力装置1003から入力された合成マップデータを記憶する合成マップデータバッファ1008と、第1および第2符号化画像データを復号して第1および第2空間領域画像データを取出す画像復号処理部1509と、取出された第1および第2空間領域画像データを記憶するための第1および第2空間領域画像データバッファ1511,1513と、第1および第2符号化画像データから第1および第2量子化テーブルを取出す量子化テーブル取得処理部1010と、取出された量子化テーブルを記憶するための第1および第2量子化テーブルバッファ1012,1015と、第1および第2量子化テーブルから合成量子化テーブルを作成する合成量子化テーブル作成処理部1017と、第1および第2空間領域画像データを合成した空間領域合成画像データを作成するための空間領域合成画像データ作成処理部1514と、作成された空間領域合成画像データを記憶するための空間領域合成画像データバッファ1516と、空間領域合成画像データおよび合成量子化テーブルとから符号化合成画像データを作成する画像符号化処理部1519と、符号化合成画像データを記憶するための符号化合成画像データバッファ1020とを含む。   The image composition device 1504 stores a first data buffer 1006 that stores first encoded image data input from the first image input device 1001, and second encoded image data input from the second image input device 1002. The second encoded image data buffer 1007, the composite map data buffer 1008 for storing the composite map data input from the composite map input device 1003, and the first and second encoded image data by decoding the first and second encoded image data. An image decoding processing unit 1509 for extracting the two spatial area image data; first and second spatial area image data buffers 1511 and 1513 for storing the extracted first and second spatial area image data; A quantization table acquisition processing unit 1010 that extracts the first and second quantization tables from the two encoded image data; First and second quantization table buffers 1012 and 1015 for storing the generated quantization table, a synthesized quantization table creation processing unit 1017 for creating a synthesized quantization table from the first and second quantization tables, A spatial region composite image data creation processing unit 1514 for creating spatial region composite image data obtained by combining the first and second spatial region image data, and a spatial region composite image for storing the created spatial region composite image data A data buffer 1516, an image encoding processing unit 1519 for generating encoded composite image data from the spatial domain composite image data and the composite quantization table, and an encoded composite image data buffer 1020 for storing the encoded composite image data Including.

第1空間領域画像データバッファ1511、第2空間領域画像データバッファ1513および空間領域合成画像データバッファ1516は、フラッシュメモリ、ハードディスク等のRAM(ランダムアクセスメモリ)によって実現される。   The first space area image data buffer 1511, the second space area image data buffer 1513, and the space area composite image data buffer 1516 are realized by a RAM (Random Access Memory) such as a flash memory or a hard disk.

画像復号処理部1509、空間量領域合成画像データ作成処理部1514は、例えばそれぞれ独立した回路によって実現される。また、例えばコンピュータ等の演算処理回路によって実現される仮想回路とされてもよい。   The image decoding processing unit 1509 and the space amount region combined image data creation processing unit 1514 are realized by, for example, independent circuits. Further, for example, a virtual circuit realized by an arithmetic processing circuit such as a computer may be used.

画像復号処理部1509は、第1符号化画像データバッファ1006から第1符号化画像データを読込み、第1符号化画像データに対して復号処理、逆量子化処理および関数逆変換処理して第1空間領域画像データを生成する。逆量子化処理では、第1符号化画像データに含まれる第1量子化テーブルが用いられる。生成した第1空間領域画像データは、第1空間領域画像データバッファ1511に格納される。また、画像復号処理部1509は、第2符号化画像データバッファ1007から第2符号化画像データを読込み、第2符号化画像データに対して復号処理、逆量子化処理および関数逆変換処理して第2空間領域画像データを生成する。逆量子化処理では、第2符号化画像データに含まれる第2量子化テーブルが用いられる。生成した第2空間領域画像データは、第2空間領域画像データバッファ1513に格納される。   The image decoding processing unit 1509 reads the first encoded image data from the first encoded image data buffer 1006, performs decoding processing, inverse quantization processing, and function inverse transformation processing on the first encoded image data, and performs first processing. Spatial area image data is generated. In the inverse quantization process, the first quantization table included in the first encoded image data is used. The generated first spatial region image data is stored in the first spatial region image data buffer 1511. In addition, the image decoding processing unit 1509 reads the second encoded image data from the second encoded image data buffer 1007, performs a decoding process, an inverse quantization process, and a function inverse transform process on the second encoded image data. Second spatial region image data is generated. In the inverse quantization process, the second quantization table included in the second encoded image data is used. The generated second space area image data is stored in the second space area image data buffer 1513.

空間領域合成画像データ作成処理部1514は、合成マップデータバッファ1008から合成マップデータと、第1空間領域画像データバッファ1511から第1空間領域画像データと、第2空間領域画像データバッファ1513から第2空間領域画像データとを読込む。そして、空間領域合成画像データ作成処理部1514は、合成マップデータに従って空間領域合成画像データを作成する。空間領域合成画像データ作成処理部1514は、合成マップデータの第1画像切取領域データで特定される第1領域を第1空間領域画像データから切取り、第2画像切取領域データで特定される第2領域を第2空間領域画像データから切取る。そして、第1領域と第2領域それぞれを合成マップデータの合成画像貼付領域データで特定される領域にブロック単位で貼り付ける。これにより空間領域合成画像データが作成される。空間領域合成画像データ作成処理部1514は、作成した空間領域合成画像データを空間領域合成画像データバッファ1516に格納する。すなわち、空間領域合成画像データ作成処理部1514は、第1空間領域画像データと第2空間領域画像データとから空間領域合成画像データを空間領域で作成する。   The spatial area composite image data creation processing unit 1514 receives composite map data from the composite map data buffer 1008, first spatial area image data from the first spatial area image data buffer 1511, and second from the second spatial area image data buffer 1513. Read the spatial domain image data. Then, the spatial domain composite image data creation processing unit 1514 creates spatial domain composite image data according to the composite map data. The spatial region composite image data creation processing unit 1514 cuts the first region specified by the first image cut region data of the composite map data from the first spatial region image data, and the second region specified by the second image cut region data. A region is cut out from the second spatial region image data. Then, each of the first area and the second area is pasted in block units to the area specified by the composite image pasting area data of the composite map data. As a result, spatial domain composite image data is created. The spatial region composite image data creation processing unit 1514 stores the created spatial region composite image data in the spatial region composite image data buffer 1516. In other words, the spatial region composite image data creation processing unit 1514 creates spatial region composite image data in the spatial region from the first spatial region image data and the second spatial region image data.

画像符号化処理部1519は、空間領域合成画像データバッファ1516から空間領域合成画像データを、合成量子化テーブルバッファ1018から合成量子化テーブルをそれぞれ読込む。そして、空間領域合成画像データに対して関数変換処理、量子化処理、ハフマン符号化等の可逆符号化処理を行う。符号化画像処理部1519は、合成量子化テーブルと画像サイズ情報等を含んだヘッダ情報と、空間領域合成画像データを関数変換処理、量子化処理および符号化処理して得たデータとを含む符号化合成画像データを作成する。ここでは、符号化合成画像データを、合成量子化テーブルと画像サイズ情報等とをヘッダ情報とする例を示すが、これに限定されず画像データとしてのフォーマットに即したデータであればよい。画像符号化処理部1519は、作成した符号化合成画像データを符号化合成画像データバッファ1020に格納する。   The image encoding processing unit 1519 reads the spatial domain synthesized image data from the spatial domain synthesized image data buffer 1516 and the synthesized quantization table from the synthesized quantization table buffer 1018, respectively. Then, lossless encoding processing such as function conversion processing, quantization processing, and Huffman encoding is performed on the spatial domain composite image data. The encoded image processing unit 1519 includes a header information including a composite quantization table and image size information, and a code including data obtained by performing function conversion processing, quantization processing, and encoding processing on the spatial domain composite image data. Creates synthesized image data. Here, an example is shown in which the encoded combined image data uses the combined quantization table, image size information, and the like as header information. The image encoding processing unit 1519 stores the generated encoded combined image data in the encoded combined image data buffer 1020.

図15は、第2の実施の形態における画像合成装置で実行される画像合成処理の流れを示すフローチャートである。図15を参照して、ステップS1602〜S1604は図13におけるステップS1102〜S1104と、ステップS1605〜S1608は図13におけるステップS1107〜S1110と、ステップS1610は図13におけるステップS1114と同じ処理である。したがって、ここでは説明を繰返さない。   FIG. 15 is a flowchart illustrating a flow of image composition processing executed by the image composition apparatus according to the second embodiment. Referring to FIG. 15, steps S1602 to S1604 are the same as steps S1102 to S1104 in FIG. 13, steps S1605 to S1608 are the same as steps S1107 to S1110 in FIG. 13, and step S1610 is the same as step S1114 in FIG. Therefore, description will not be repeated here.

画像復号処理部1509が、第1データバッファ1006から第1符号化画像データを読込み、第1符号化画像データを復号して第1空間領域画像データを生成する(S1611)。そして、生成した第1空間領域画像データを第1空間領域画像データバッファ1511に格納する(S1612)。   The image decoding processing unit 1509 reads the first encoded image data from the first data buffer 1006, decodes the first encoded image data, and generates first spatial region image data (S1611). Then, the generated first spatial area image data is stored in the first spatial area image data buffer 1511 (S1612).

次に、画像復号処理部1509は、第2データバッファ1007から第2符号化画像データを読込み、第2符号化画像データを復号して第2空間領域画像データを生成する(S1613)。そして、生成した第2空間領域画像データを第2空間領域画像データバッファ1513に格納する(S1614)。   Next, the image decoding processing unit 1509 reads the second encoded image data from the second data buffer 1007, decodes the second encoded image data, and generates second spatial region image data (S1613). Then, the generated second space area image data is stored in the second space area image data buffer 1513 (S1614).

そして、空間領域合成画像データ作成処理部1514は、合成マップデータバッファ1508から合成マップデータを、第1空間領域画像データバッファ1511から第1空間領域画像データを、第2空間領域画像データバッファ1513から第2空間領域画像データを読込み、合成マップデータに従って、空間領域合成画像データを作成する(S1615)。そして、作成した合成画像データを空間領域合成画像データバッファ1516に格納する(S1616)。   Then, the spatial region composite image data creation processing unit 1514 receives the composite map data from the composite map data buffer 1508, the first spatial region image data from the first spatial region image data buffer 1511, and the second spatial region image data buffer 1513. The second spatial region image data is read, and spatial region composite image data is created according to the composite map data (S1615). Then, the generated composite image data is stored in the spatial domain composite image data buffer 1516 (S1616).

画像符号化処理部1519は、空間領域合成画像データバッファ1516から空間領域合成画像データを、合成量子化テーブルバッファ1018から合成量子化テーブルをそれぞれ読込み、符号化合成画像データを作成する(S1617)。具体的には、空間領域合成画像データを関数変換により、合成関数変換係数を生成し、合成量子化テーブルを用いた合成関数変換係数の量子化により、量子化関数変換係数を生成し、量子化関数変換係数を符号化する。そして、作成した符号化合成画像データを符号化合成画像データバッファ1020に格納する(S1618)。   The image encoding processing unit 1519 reads the spatial domain composite image data from the spatial domain composite image data buffer 1516 and the composite quantization table from the composite quantization table buffer 1018, and creates encoded composite image data (S1617). More specifically, a function conversion is performed on the spatial domain composite image data to generate a composite function conversion coefficient, and a quantization function conversion coefficient is generated by quantization of the composite function conversion coefficient using the composite quantization table. Encode function transform coefficients. The generated encoded composite image data is stored in the encoded composite image data buffer 1020 (S1618).

<3枚以上の符号化画像を合成する場合>
上述した第2の実施の形態における画像合成装置1504は、説明を簡略にするため、2つの符号化画像データを合成する例を説明したが、3枚以上の符号化画像データを合成する場合も、同様に合成することができる。N枚の符号化画像データ(Image1,Image2,Image3,Image4,…,ImageN)を合成する場合、合成量子化テーブルデータは、N枚の符号化画像それぞれの量子化テーブルを取得し、N個の量子化テーブルの各要素の公約数(好ましくは最大公約数)をその要素とすればよい。
<When combining three or more encoded images>
The image synthesizing apparatus 1504 in the second embodiment described above has been described with respect to an example in which two encoded image data are combined to simplify the description, but there may be a case where three or more encoded image data are combined. Can be synthesized similarly. When N pieces of encoded image data (Image1, Image2, Image3, Image4,..., ImageN) are combined, the combined quantization table data obtains a quantization table for each of the N encoded images, and N pieces of encoded table data are obtained. The common divisor (preferably the greatest common divisor) of each element of the quantization table may be the element.

<合成する画像の中に符号化されていない画像が含まれている場合>
合成する画像の中に符号化されていない画像データが含まれていた場合は、合成量子化テーブル作成処理部1017は、符号化されている画像の量子化テーブルから合成量子化テーブルを作成する。符号化されていない画像の量子化関数変換係数は、関数変換後に合成量子化テーブルを用いて作成すればよい。また、1枚の符号化画像データと1枚以上の符号化されていない画像データの合成の場合、合成量子化テーブルは、符号化画像データの量子化テーブルをそのまま使えばよい。
<If the image to be combined contains an uncoded image>
When unencoded image data is included in the image to be combined, the combined quantization table creation processing unit 1017 creates a combined quantization table from the coded image quantization table. What is necessary is just to produce the quantization function conversion coefficient of the image which is not encoded using a synthetic | combination quantization table after function conversion. Further, in the case of combining one piece of encoded image data and one or more pieces of unencoded image data, the quantization table of encoded image data may be used as it is as the combined quantization table.

以上説明したように第2の実施の形態における画像合成装置1504は、第1および第2符号化画像データを一旦復号し、空間領域で画像を合成し、合成して得られる空間領域合成画像データを関数変換処理、量子化処理および符号化処理する。量子化処理で使用する合成量子化テーブルは、第1および第2符号化画像データそれぞれに対応する量子化テーブルの各対応する要素の公約数(特に最大公約数が望ましい)としたものである。このため、合成画像データは第1および第2画像データと比較して、原理的には画質劣化を伴わない。実際には符号化、復号処理の計算誤差により、若干の画質劣化を生じる可能性はあるが、画質劣化の問題を緩和することができる。   As described above, the image synthesizing device 1504 in the second embodiment decodes the first and second encoded image data, synthesizes the images in the spatial domain, and the spatial domain synthesized image data obtained by synthesizing. Are subjected to function conversion processing, quantization processing, and encoding processing. The combined quantization table used in the quantization process is a common divisor (particularly, the greatest common divisor is desirable) of each corresponding element of the quantization table corresponding to each of the first and second encoded image data. For this reason, compared with the first and second image data, the synthesized image data is not accompanied by image quality deterioration in principle. Actually, there is a possibility that slight image quality degradation may occur due to calculation errors in encoding and decoding processes, but the problem of image quality degradation can be alleviated.

さらに、量子化処理で使用する合成量子化テーブルは、第1および第2符号化画像データそれぞれに対応する量子化テーブルの各対応する要素の公約数(特に最大公約数が望ましい)としたものなので、原理的には量子化によるデータ損失はゼロになる。特に、最大公約数を用いると関数変換係数の量子化後の値が、量子化によるデータ損失のない条件下で最小となる。このため、量子化後の係数を格納するために要するビット数を減らすことができ、圧縮率を高めることができる。また、各係数の値が全て低い値域に範囲が狭まり、特に係数をまたがったデータ列を可逆符号化する場合に、エントロピー的に有利となる。   Furthermore, the synthesized quantization table used in the quantization process is a common divisor (particularly, the greatest common divisor is desirable) of each corresponding element of the quantization table corresponding to each of the first and second encoded image data. In principle, data loss due to quantization is zero. In particular, when the greatest common divisor is used, the quantized value of the function transform coefficient is minimized under the condition that there is no data loss due to quantization. For this reason, the number of bits required to store the quantized coefficients can be reduced, and the compression rate can be increased. Further, the range is narrowed to a range where all the values of the coefficients are all low, and this is advantageous in entropy particularly when a data string across the coefficients is losslessly encoded.

さらに、復号された画像データを目視で確認する必要がないので、復号処理および符号化処理を複数回繰返す必要がない。このため画像合成装置の負荷を低減することができる。   Furthermore, since it is not necessary to visually check the decoded image data, there is no need to repeat the decoding process and the encoding process a plurality of times. For this reason, the load of the image composition device can be reduced.

なお、第1または第2の実施の形態における画像合成装置1004,1504は、関数変換を用いた画像符号化方式であれば適用可能である。また、動画の画像符号化方式も、関数変換、量子化および符号化する点で静止画像の符号化技術と同様の技術である。このため、第1および第2の実施の形態における画像合成装置1004、1504は、動画の合成にもそのまま適用可能である。したがって、例えば、JPEG画像符号化方式、MPEG(Motion Picture Expert Group)1、MPEG2符号化方式等の画像符号化方式で作成された符号化画像データの合成にも適用可能である。   Note that the image composition apparatuses 1004 and 1504 in the first or second embodiment are applicable as long as they are image coding systems using function conversion. In addition, the moving image coding method is the same as the still image coding technique in terms of function conversion, quantization, and coding. For this reason, the image synthesizing apparatuses 1004 and 1504 in the first and second embodiments can be directly applied to the synthesis of moving images. Therefore, for example, the present invention can also be applied to synthesis of encoded image data created by an image encoding method such as a JPEG image encoding method, MPEG (Motion Picture Expert Group) 1, MPEG2 encoding method or the like.

さらに、第1または第2の実施の形態における画像合成装置1004,1504は、量子化テーブルを符号化データ内部に持っていることを前提に記載しているが、量子化テーブルがデータ内になくても対応付けられていればよい。また、量子化テーブルは、厳密な意味でテーブルの形態である必要はなく、関数変換係数の量子化幅を規定する役割を有していればよい。   Furthermore, although the image synthesis apparatuses 1004 and 1504 in the first or second embodiment are described on the assumption that the quantization table is included in the encoded data, the quantization table is not included in the data. However, it only needs to be associated. In addition, the quantization table does not need to be in the form of a table in a strict sense, and may have a role for defining the quantization width of the function conversion coefficient.

上述した画像合成装置は次のものを含む。
(1)空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換と、量子化および符号化された一つまたは複数の画像データと、前記一つまたは複数の画像データそれぞれに対応する量子化テーブルと、合成量子化テーブルとを入力する入力手段と、
前記入力された複数の画像データを復号する復号手段と、
前記復号された一つまたは複数の画像データから複数の領域を抽出する抽出手段と、
前記抽出された複数の領域を合成した合成データを生成する合成手段と、
前記抽出された複数の領域それぞれの関数変換係数値を、該領域に対応する量子化テーブルおよび前記合成量子化テーブルに基づいて変換する変換手段と、
前記変換された複数の領域が合成された合成データを符号化する符号化手段と、
前記符号化された合成データと前記合成量子化テーブルとを関連付けて出力する出力手段を備えた、画像合成装置である。
The above-described image composition apparatus includes the following.
(1) Function transformation for transforming from a spatial domain into data represented by a function transformation coefficient value by a set of basis functions, one or more image data quantized and encoded, and the one or more images An input means for inputting a quantization table corresponding to each data and a synthetic quantization table;
Decoding means for decoding the plurality of input image data;
Extraction means for extracting a plurality of regions from the decoded one or more image data;
A synthesizing unit that generates synthetic data obtained by synthesizing the plurality of extracted regions;
Transform means for transforming the function transform coefficient value of each of the plurality of extracted regions based on a quantization table corresponding to the region and the combined quantization table;
Encoding means for encoding combined data in which the plurality of converted regions are combined;
An image synthesizing apparatus comprising output means for associating and outputting the encoded synthesized data and the synthesized quantization table.

(2)空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換、量子化および符号化された一つまたは複数の画像データおよび前記一つまたは複数の画像データそれぞれに対応する量子化テーブルを入力する入力手段と、
前記入力された複数の画像データを復号する復号手段と、
前記復号された一つまたは複数の画像データから複数の領域を抽出する抽出手段と、
前記抽出された複数の領域を合成した合成データを生成する合成手段と、
少なくとも前記抽出された複数の領域に対応する量子化テーブルに基づいて、合成量子化テーブルを作成する合成量子化テーブル作成処理手段と、
前記抽出された複数の領域それぞれの関数変換係数値を、該領域に対応する量子化テーブルおよび前記合成量子化テーブルに基づいて変換する変換手段と、
前記変換された複数の領域が合成された合成データを符号化する符号化手段と、
前記符号化された合成データと前記合成量子化テーブルとを関連付けて出力する出力手段を備えた、画像合成装置である。
(2) one or a plurality of image data and one or a plurality of image data that have been transformed, quantized and encoded by a function transform that transforms from a spatial domain into data represented by a function transform coefficient value by a set of basis functions Input means for inputting a quantization table corresponding to
Decoding means for decoding the plurality of input image data;
Extraction means for extracting a plurality of regions from the decoded one or more image data;
A synthesizing unit that generates synthetic data obtained by synthesizing the plurality of extracted regions;
Synthetic quantization table creation processing means for creating a synthetic quantization table based on at least the quantization tables corresponding to the plurality of extracted regions;
Transform means for transforming the function transform coefficient value of each of the plurality of extracted regions based on a quantization table corresponding to the region and the combined quantization table;
Encoding means for encoding combined data in which the plurality of converted regions are combined;
An image synthesizing apparatus comprising output means for associating and outputting the encoded synthesized data and the synthesized quantization table.

(3)空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換、量子化および符号化された一つまたは複数の画像データと、前記一つまたは複数の画像データそれぞれに対応する量子化テーブルと、合成量子化テーブルとを入力する入力手段と、
前記入力された複数の画像データを復号する復号手段と、
前記復号された一つまたは複数の画像データから複数の領域を抽出する抽出手段と、
前記抽出された複数の領域それぞれを、該領域に対応する量子化テーブルを用いて逆量子化する逆量子化手段と、
前記抽出された複数の領域を合成した合成データを生成する合成手段と、
前記合成量子化テーブルを用いて、前記合成データを量子化する量子化手段と、
前記量子化された合成データを符号化する符号化手段と、
前記符号化された合成データと前記合成量子化テーブルとを関連付けて出力する出力手段を備えた、画像合成装置である。
(3) one or a plurality of image data that has been transformed, quantized and encoded by a function transform that converts from a spatial domain into data represented by a function transform coefficient value by a set of basis functions, and the one or more image data An input means for inputting a quantization table corresponding to each and a synthetic quantization table;
Decoding means for decoding the plurality of input image data;
Extraction means for extracting a plurality of regions from the decoded one or more image data;
Inverse quantization means for inversely quantizing each of the extracted plurality of regions using a quantization table corresponding to the region;
A synthesizing unit that generates synthetic data obtained by synthesizing the plurality of extracted regions;
Quantization means for quantizing the synthesized data using the synthesized quantization table;
Encoding means for encoding the quantized composite data;
An image synthesizing apparatus comprising output means for associating and outputting the encoded synthesized data and the synthesized quantization table.

(4)空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換、量子化および符号化された一つまたは複数の画像データと、前記一つまたは複数の画像データそれぞれに対応する量子化テーブルとを入力する入力手段と、
前記入力された複数の画像データを復号する復号手段と、
前記復号された一つまたは複数の画像データから複数の領域を抽出する抽出手段と、
前記抽出された複数の領域それぞれを、該領域に対応する量子化テーブルを用いて逆量子化する逆量子化手段と、
前記抽出された複数の領域を合成した合成データを生成する合成手段と、
前記複数の領域それぞれに対応する量子化テーブルに基づいて合成量子化テーブルを作成する合成量子化テーブル作成処理手段と、
前記作成された合成量子化テーブルを用いて、前記合成データを量子化する量子化手段と、
前記量子化された合成データを符号化する符号化手段と、
前記符号化された合成データと前記合成量子化テーブルとを関連付けて出力する出力手段を備えた、画像合成装置である。
(4) One or a plurality of image data that has been transformed, quantized and encoded by function transformation for converting from a spatial domain to data represented by a function transformation coefficient value by a set of basis functions, and the one or more image data Input means for inputting a quantization table corresponding to each;
Decoding means for decoding the plurality of input image data;
Extraction means for extracting a plurality of regions from the decoded one or more image data;
Inverse quantization means for inversely quantizing each of the extracted plurality of regions using a quantization table corresponding to the region;
A synthesizing unit that generates synthetic data obtained by synthesizing the plurality of extracted regions;
A synthetic quantization table creation processing means for creating a synthetic quantization table based on a quantization table corresponding to each of the plurality of regions;
Quantization means for quantizing the synthesized data using the created synthesized quantization table;
Encoding means for encoding the quantized composite data;
An image synthesizing apparatus comprising output means for associating and outputting the encoded synthesized data and the synthesized quantization table.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

本発明の第1の実施の形態における画像合成装置の機能の概略を示す機能ブロック図である。It is a functional block diagram which shows the outline of the function of the image composition apparatus in the 1st Embodiment of this invention. 合成マップデータの一例を示す図である。It is a figure which shows an example of synthetic | combination map data. 第1画像切取領域データを示す図である。It is a figure which shows 1st image cutting area data. 第2画像切取領域データを示す図である。It is a figure which shows 2nd image cutting area data. 合成画像貼付領域データを示す図である。It is a figure which shows synthetic image sticking area | region data. 画像合成処理の別の例を説明するための図である。It is a figure for demonstrating another example of an image composition process. 第1画像切取領域データを示す別の図である。It is another figure which shows 1st image cutting area data. 第2画像切取領域データを示す別の図である。It is another figure which shows 2nd image cutting area data. 合成画像貼付領域データを示す別の図である。It is another figure which shows synthetic image sticking area | region data. 第1量子化テーブルの一例を示す図である。It is a figure which shows an example of a 1st quantization table. 第2量子化テーブルの一例を示す図である。It is a figure which shows an example of a 2nd quantization table. 合成量子化テーブルの一例を示す図である。It is a figure which shows an example of a synthetic | combination quantization table. 第1の実施の形態における画像合成装置で実行される処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process performed with the image composition apparatus in 1st Embodiment. 第2の実施の形態における画像合成装置の機能の概略を示す機能ブロック図である。It is a functional block diagram which shows the outline of the function of the image synthesizing | combining apparatus in 2nd Embodiment. 第2の実施の形態における画像合成装置で実行される画像合成処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the image composition process performed with the image composition apparatus in 2nd Embodiment. 複数の画像データの合成処理を説明するための図である。It is a figure for demonstrating the synthetic | combination process of several image data.

符号の説明Explanation of symbols

1001,1002 画像入力装置、1003 合成マップ入力装置、1004,1504 画像合成装置、1005 符号化合成画像データ出力装置、1006,1007 データバッファ、1008 合成マップデータバッファ、1009 量子化関数変換係数取得処理部、1010 量子化テーブル取得処理部、1011,1013 量子化関数変換係数データバッファ、1012,1015 量子化テーブルバッファ、1014 合成量子化関数係数データ作成処理部、1016 合成量子化関数変換係数データバッファ、1017 合成量子化テーブル作成処理部、1018 合成量子化テーブルバッファ、1019 符号化合成画像データ作成処理部、1020 符号化合成画像データバッファ、1508 合成マップデータバッファ、1509 画像復号処理部、1511,1513 画像データバッファ、1514 合成画像データ作成処理部、1516 合成画像データバッファ、1018 合成量子化テーブルバッファ、1519 符号化画像処理部。   1001, 1002 Image input device, 1003 Composition map input device, 1004, 1504 Image composition device, 1005 Coding composition image data output device, 1006, 1007 Data buffer, 1008 Composition map data buffer, 1009 Quantization function transform coefficient acquisition processing unit 1010 Quantization table acquisition processing unit, 1011, 1013 Quantization function conversion coefficient data buffer, 1012, 1015 Quantization table buffer, 1014 Synthesis quantization function coefficient data creation processing unit, 1016 Synthesis quantization function conversion coefficient data buffer, 1017 Synthesis quantization table creation processing unit, 1018 synthesis quantization table buffer, 1019 coded synthesized image data creation processing unit, 1020 coded synthesized image data buffer, 1508 synthesis map data buffer, 15 09 image decoding processing unit, 1511, 1513 image data buffer, 1514 synthesized image data creation processing unit, 1516 synthesized image data buffer, 1018 synthesized quantization table buffer, 1519 encoded image processing unit.

Claims (16)

空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む一つまたは複数の画像データと前記一つまたは複数の画像データそれぞれに対応する量子化テーブルを入力する入力手段と、
前記入力された一つまたは複数の画像データの複数の領域にそれぞれ対応する複数の量子化テーブルに基づいて、合成量子化テーブルを作成する合成量子化テーブル作成処理手段と、
前記複数の領域を、それぞれの関数変換係数値を該領域に対応する量子化テーブルおよび前記合成量子化テーブルに基づいて変換する変換手段と、
変換された前記複数の領域を合成して合成データを生成する合成データ生成手段とを備えた、画像合成装置。
One or a plurality of image data including a function transform and a quantized function transform coefficient value converted from the spatial domain into data represented by a function transform coefficient value by a set of basis functions, and each of the one or more image data Input means for inputting a quantization table corresponding to
Based on a plurality of quantization tables respectively corresponding to a plurality of regions of the input one or a plurality of image data, a synthesized quantization table creating processing means for creating a synthesized quantization table;
Transform means for transforming the plurality of regions based on the respective function transform coefficient values based on the quantization table corresponding to the region and the combined quantization table;
An image synthesizing apparatus, comprising: synthesized data generating means for generating synthesized data by synthesizing the plurality of converted areas.
前記変換手段は、前記複数の領域それぞれの関数変換係数値を、該領域の量子化テーブルの対応する要素と前記合成量子化テーブルの対応する要素とに基づいて変換する、請求項1に記載の画像合成装置。   2. The conversion unit according to claim 1, wherein the conversion unit converts the function conversion coefficient value of each of the plurality of regions based on a corresponding element of the quantization table of the region and a corresponding element of the combined quantization table. Image composition device. 空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む複数の第1画像データと前記複数の第1画像データそれぞれに対応する量子化テーブルを入力する第1入力手段と、
空間領域に規定された空間領域画像データからなる一つまたは複数の第2画像データを入力する第2入力手段と、
前記複数の第1画像データにそれぞれ対応する複数の量子化テーブルに基づいて、合成量子化テーブルを作成する合成量子化テーブル作成処理手段と、
前記入力された第1画像データおよび第2画像データの複数の領域のうち、前記第1画像データの領域それぞれの関数変換係数値を該領域に対応する量子化テーブルおよび前記合成量子化テーブルに基づいて変換するとともに、前記複数の領域のうち前記第2画像データの領域に対応する空間領域画像データを基底関数の組により関数変換係数値に変換する変換処理手段と、
変換された関数変換係数値を、さらに前記合成量子化テーブルに基づいて量子化した上で、前記複数の領域を合成して合成データを生成する合成データ生成手段とを備えた、画像合成装置。
Corresponding to each of a plurality of first image data and a plurality of first image data including a function transform for converting from a spatial domain to data represented by a function transform coefficient value by a set of basis functions and a quantized function transform coefficient value First input means for inputting a quantization table to be
A second input means for inputting one or a plurality of second image data composed of spatial area image data defined in the spatial area;
Based on a plurality of quantization tables respectively corresponding to the plurality of first image data, a synthesized quantization table creating processing means for creating a synthesized quantization table;
Of the plurality of regions of the input first image data and second image data, function conversion coefficient values of the regions of the first image data are based on the quantization table corresponding to the region and the combined quantization table. Conversion processing means for converting spatial region image data corresponding to the region of the second image data out of the plurality of regions into a function conversion coefficient value by a set of basis functions,
An image synthesizing apparatus comprising: synthesized data generating means for further synthesizing the converted function transform coefficient value based on the synthesized quantization table and then synthesizing the plurality of regions to generate synthesized data.
前記変換手段は、前記第1画像データから前記複数の領域それぞれの関数変換係数値を、該領域の量子化テーブルの対応する要素と前記合成量子化テーブルの対応する要素とに基づいて変換する、請求項3に記載の画像合成装置。   The converting means converts the function conversion coefficient value of each of the plurality of regions from the first image data based on a corresponding element of the quantization table of the region and a corresponding element of the combined quantization table. The image composition device according to claim 3. 空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む複数の第1画像データと前記複数の第1画像データそれぞれに対応する量子化テーブルを入力する第1入力手段と、
空間領域に規定された空間領域画像データからなる一つまたは複数の第2画像データを入力する第2入力手段と、
前記複数の第1画像データそれぞれを空間領域画像データに復号する復号手段と、
前記入力された第1画像データおよび第2画像データの複数の領域に対応する前記第1画像データを復号した空間領域画像データおよび前記第2画像データを合成した空間領域合成画像データを生成する合成手段と、
前記複数の第1画像データに対応する複数の量子化テーブルに基づいて、合成量子化テーブルを作成する合成量子化テーブル作成処理手段と、
前記空間領域合成画像データを前記関数変換した上で、前記合成量子化テーブルを用いて量子化して符号化合成画像データを生成する符号化手段とを備えた、画像合成装置。
Corresponding to each of a plurality of first image data and a plurality of first image data including a function transform for converting from a spatial domain to data represented by a function transform coefficient value by a set of basis functions and a quantized function transform coefficient value First input means for inputting a quantization table to be
A second input means for inputting one or a plurality of second image data composed of spatial area image data defined in the spatial area;
Decoding means for decoding each of the plurality of first image data into spatial domain image data;
Composition for generating spatial region image data obtained by decoding the first image data corresponding to a plurality of regions of the input first image data and second image data, and spatial region synthesized image data obtained by synthesizing the second image data. Means,
Based on a plurality of quantization tables corresponding to the plurality of first image data, a synthesized quantization table creating processing means for creating a synthesized quantization table;
An image synthesizing apparatus comprising: an encoding unit configured to generate the encoded synthesized image data by performing the function conversion on the spatial domain synthesized image data and then quantizing using the synthesized quantization table.
空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む複数の画像データと前記複数の画像データそれぞれに対応する量子化テーブルを入力する入力手段と、A plurality of image data including a function transform for converting from a spatial domain to data represented by a function transform coefficient value by a set of basis functions and a quantized function transform coefficient value, and a quantization table corresponding to each of the plurality of image data An input means for inputting
前記入力された複数の画像データの各々から少なくとも1つの領域を抽出する抽出手段と、Extracting means for extracting at least one region from each of the plurality of input image data;
前記複数の量子化テーブルに基づいて、合成量子化テーブルを作成する合成量子化テーブル作成処理手段と、Based on the plurality of quantization tables, a synthetic quantization table creation processing means for creating a synthetic quantization table;
前記抽出された各領域について、各領域に対応する関数変換係数値を該領域の抽出元の画像データに対応する量子化テーブルおよび前記合成量子化テーブルに基づいて変換した上で、変換後の各領域のデータを合成して合成データを生成する合成データ生成手段とを備えた、画像合成装置。For each extracted region, the function conversion coefficient value corresponding to each region is converted based on the quantization table corresponding to the image data from which the region is extracted and the combined quantization table, and then each converted region is converted. An image synthesizing apparatus comprising: synthesized data generating means for generating synthesized data by synthesizing region data.
前記合成データ生成手段は、前記抽出された各領域の関数変換係数値を、該領域の量子化テーブルの対応する要素と前記合成量子化テーブルの対応する要素とに基づいて変換する、請求項6に記載の画像合成装置。The composite data generation means converts the extracted function conversion coefficient value of each region based on a corresponding element of the quantization table of the region and a corresponding element of the composite quantization table. The image composition device described in 1. 前記合成量子化テーブル作成処理手段は、前記合成量子化テーブルの各要素を、前記複数の量子化テーブルのそれぞれにおいて対応する要素間の公約数とする、請求項1〜のいずれかに記載の画像合成装置。 The combined quantized table creation processing means, each element of the combined quantized table, a common divisor between the corresponding elements in each of the plurality of quantization tables, according to any one of claims 1-7 Image composition device. 前記合成量子化テーブル作成処理手段は、前記合成量子化テーブルの各要素を、前記複数の量子化テーブルのそれぞれにおいて対応する要素の最大公約数とする、請求項1〜のいずれかに記載の画像合成装置。 The combined quantized table creation processing means, each element of the combined quantized table, the greatest common divisor of the corresponding element in each of said plurality of quantization tables, according to any one of claims 1-7 Image composition device. 空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む一つまたは複数の画像データと前記一つまたは複数の画像データそれぞれに対応する量子化テーブルを入力するステップと、
前記入力された一つまたは複数の画像データの複数の領域にそれぞれ対応する複数の量子化テーブルに基づいて、合成量子化テーブルを作成するステップと、
前記複数の領域を、それぞれの関数変換係数値を該領域に対応する量子化テーブルおよび前記合成量子化テーブルに基づいて変換するステップと、
変換された前記複数の領域を合成して合成データを生成するステップとを含む、画像合成方法。
One or a plurality of image data including a function transform and a quantized function transform coefficient value converted from the spatial domain into data represented by a function transform coefficient value by a set of basis functions, and each of the one or more image data Inputting a quantization table corresponding to
Creating a composite quantization table based on a plurality of quantization tables respectively corresponding to a plurality of regions of the input one or more image data;
Transforming the plurality of regions based on respective function transform coefficient values based on a quantization table corresponding to the region and the combined quantization table;
Combining the plurality of converted regions to generate composite data.
空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む複数の第1画像データと前記複数の第1画像データそれぞれに対応する量子化テーブルを入力するステップと、
空間領域に規定された空間領域画像データからなる一つまたは複数の第2画像データを入力するステップと、
前記複数の第1画像データにそれぞれ対応する複数の量子化テーブルに基づいて、合成量子化テーブルを作成するステップと、
前記入力された第1画像データおよび第2画像データの複数の領域のうち、前記第1画像データの領域それぞれの関数変換係数値を該領域に対応する量子化テーブルおよび前記合成量子化テーブルに基づいて変換するとともに、前記複数の領域のうち前記第2画像データの領域に対応する空間領域画像データを基底関数の組により関数変換係数値に変換するステップと、
変換された関数変換係数値を、さらに前記合成量子化テーブルに基づいて量子化した上で、前記抽出された複数の領域を合成して合成データを生成するステップとを含む、画像合成方法。
Corresponding to each of a plurality of first image data and a plurality of first image data including a function transform for converting from a spatial domain to data represented by a function transform coefficient value by a set of basis functions and a quantized function transform coefficient value Inputting a quantization table to be
Inputting one or a plurality of second image data composed of spatial region image data defined in the spatial region;
Creating a synthetic quantization table based on a plurality of quantization tables respectively corresponding to the plurality of first image data;
Of the plurality of regions of the input first image data and second image data, function conversion coefficient values of the regions of the first image data are based on the quantization table corresponding to the region and the combined quantization table. Converting the spatial area image data corresponding to the area of the second image data out of the plurality of areas into a function conversion coefficient value by a set of basis functions;
And further comprising: quantizing the converted function transform coefficient value based on the synthesized quantization table, and synthesizing the extracted plurality of regions to generate synthesized data.
空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む複数の第1画像データと前記複数の第1画像データそれぞれに対応する量子化テーブルを入力するステップと、
空間領域に規定された空間領域画像データからなる一つまたは複数の第2画像データを入力するステップと、
前記複数の第1画像データそれぞれを空間領域画像データに復号するステップと、
前記入力された第1画像データおよび第2画像データの複数の領域に対応する前記第1画像データを復号した空間領域画像データおよび前記第2画像データを合成した空間領域合成画像データを生成する合成ステップと、
前記複数の第1画像データに対応する複数の量子化テーブルに基づいて、合成量子化テーブルを作成するステップと、
前記空間領域合成画像データを前記関数変換した上で、前記合成量子化テーブルを用いて量子化して符号化合成画像データを生成するステップとを含む、画像合成方法。
Corresponding to each of a plurality of first image data and a plurality of first image data including a function transform for converting from a spatial domain to data represented by a function transform coefficient value by a set of basis functions and a quantized function transform coefficient value Inputting a quantization table to be
Inputting one or a plurality of second image data composed of spatial region image data defined in the spatial region;
Decoding each of the plurality of first image data into spatial domain image data;
Composition for generating spatial region image data obtained by decoding the first image data corresponding to a plurality of regions of the input first image data and second image data, and spatial region synthesized image data obtained by synthesizing the second image data. Steps,
Creating a synthetic quantization table based on a plurality of quantization tables corresponding to the plurality of first image data;
And performing the function conversion on the spatial domain composite image data and then quantizing using the composite quantization table to generate encoded composite image data.
空間領域から基底関数の組により関数変換係数値で表されるデータに変換する関数変換および量子化された関数変換係数値を含む複数の画像データと前記複数の画像データそれぞれに対応する量子化テーブルを入力する入力ステップと、A plurality of image data including a function transform for converting from a spatial domain to data represented by a function transform coefficient value by a set of basis functions and a quantized function transform coefficient value, and a quantization table corresponding to each of the plurality of image data An input step for entering
前記入力された複数の画像データの各々から領域を抽出する抽出ステップと、An extraction step of extracting a region from each of the plurality of input image data;
前記複数の量子化テーブルに基づいて、合成量子化テーブルを作成する合成量子化テーブル作成処理ステップと、Based on the plurality of quantization tables, a synthetic quantization table creation processing step of creating a synthetic quantization table;
前記抽出された各領域について、各領域に対応する関数変換係数値を該領域の抽出元の画像データに対応する量子化テーブルおよび前記合成量子化テーブルに基づいて変換した上で、変換後の各領域のデータを合成して合成データを生成する合成データ生成ステップとを備えた、画像合成方法。For each extracted region, after converting the function conversion coefficient value corresponding to each region based on the quantization table corresponding to the image data from which the region is extracted and the combined quantization table, An image synthesizing method, comprising: a synthesized data generation step of synthesizing region data to generate synthesized data.
前記合成データ生成ステップは、前記抽出された各領域の関数変換係数値を、該領域の量子化テーブルの対応する要素と前記合成量子化テーブルの対応する要素とに基づいて変換する、請求項13に記載の画像合成方法。The combined data generation step converts the extracted function conversion coefficient value of each area based on a corresponding element of the quantization table of the area and a corresponding element of the combined quantization table. The image composition method described in 1. 請求項1014のいずれかに記載の画像合成方法の各ステップをコンピュータに実行させる、画像合成プログラム。 An image composition program for causing a computer to execute each step of the image composition method according to any one of claims 10 to 14 . 請求項15に記載の画像合成プログラムを記録したコンピュータ読取可能な記録媒体。 A computer-readable recording medium on which the image composition program according to claim 15 is recorded.
JP2007077637A 2007-03-23 2007-03-23 Image composition apparatus, image composition method, image composition program, and computer-readable recording medium on which image composition program is recorded Expired - Fee Related JP4353986B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007077637A JP4353986B2 (en) 2007-03-23 2007-03-23 Image composition apparatus, image composition method, image composition program, and computer-readable recording medium on which image composition program is recorded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007077637A JP4353986B2 (en) 2007-03-23 2007-03-23 Image composition apparatus, image composition method, image composition program, and computer-readable recording medium on which image composition program is recorded

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2004248797A Division JP3954052B2 (en) 2004-08-27 2004-08-27 Image composition apparatus, image composition method, image composition program, and computer-readable recording medium on which image composition program is recorded

Publications (3)

Publication Number Publication Date
JP2007184982A JP2007184982A (en) 2007-07-19
JP2007184982A5 JP2007184982A5 (en) 2008-07-10
JP4353986B2 true JP4353986B2 (en) 2009-10-28

Family

ID=38340613

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007077637A Expired - Fee Related JP4353986B2 (en) 2007-03-23 2007-03-23 Image composition apparatus, image composition method, image composition program, and computer-readable recording medium on which image composition program is recorded

Country Status (1)

Country Link
JP (1) JP4353986B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038426A (en) * 2017-11-29 2018-05-15 阿博茨德(北京)科技有限公司 The method and device of chart-information in a kind of extraction document

Also Published As

Publication number Publication date
JP2007184982A (en) 2007-07-19

Similar Documents

Publication Publication Date Title
JP4702928B2 (en) Moving picture encoding apparatus and decoding apparatus, control method therefor, computer program, and computer-readable storage medium
JP3320389B2 (en) Data processing method, system, device, and program storage device
JP3320390B2 (en) Digital processing method, system, device, and program storage device
JP3464767B2 (en) Wavelet decoding apparatus and method
JP2007235759A (en) Image encoding apparatus and method of controlling sane
US6563946B2 (en) Image processing apparatus and method
KR100357658B1 (en) Reduced-error processing of transformed digital data
JP2000341689A (en) Wavelet inverse converting device and its method and wavelet decoding device and its method
JP2006093958A (en) Progressive jpeg decoding system
US7565025B2 (en) Image recording method for image data having image components of three channels and a transmission ratio component of one channel, apparatus and computer readable recording medium storing program
JP4353986B2 (en) Image composition apparatus, image composition method, image composition program, and computer-readable recording medium on which image composition program is recorded
JP3954052B2 (en) Image composition apparatus, image composition method, image composition program, and computer-readable recording medium on which image composition program is recorded
JP4328727B2 (en) Image compression / decompression method, image compression apparatus, and image expansion apparatus
JPH05227519A (en) Encoder and decoder for picture data
JP3029354B2 (en) Digital video signal encoding device and decoding device
JPH1188183A (en) Wavelet converter, its method, wavelet inverse converter, its method, image coder, its method, image decoder and its method
JP4274187B2 (en) Display data decompression method, display data compression / decompression method, display data decompression device, and display data compression / decompression device
JP4218728B2 (en) Image recording / reproducing method, image recording / reproducing apparatus, and image recording / reproducing program
JP3065393B2 (en) Image data restoration method and image data restoration device
JP2006109051A (en) Image encoder, image encoding method, image encoding program and computer readable recording medium which records image encoding program
JP4218727B2 (en) Image reproduction method, image reproduction apparatus, and image reproduction program
US20080137975A1 (en) Decoder, decoding method and computer readable medium
JP2004135107A (en) Image processing apparatus and method
JPH11112979A (en) Coder and method therefor, decoder and method therefor, and record medium
JPH05207288A (en) Picture coder and picture decoder

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070823

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071005

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080522

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090728

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120807

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120807

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130807

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees