Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6793499B2 - Image coding device and its control method - Google Patents
[go: Go Back, main page]

JP6793499B2 - Image coding device and its control method - Google Patents

Image coding device and its control method Download PDF

Info

Publication number
JP6793499B2
JP6793499B2 JP2016165074A JP2016165074A JP6793499B2 JP 6793499 B2 JP6793499 B2 JP 6793499B2 JP 2016165074 A JP2016165074 A JP 2016165074A JP 2016165074 A JP2016165074 A JP 2016165074A JP 6793499 B2 JP6793499 B2 JP 6793499B2
Authority
JP
Japan
Prior art keywords
tile
coefficient data
conversion coefficient
adjacent
encoded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016165074A
Other languages
Japanese (ja)
Other versions
JP2017085548A (en
JP2017085548A5 (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to US15/299,073 priority Critical patent/US10003821B2/en
Publication of JP2017085548A publication Critical patent/JP2017085548A/en
Publication of JP2017085548A5 publication Critical patent/JP2017085548A5/ja
Application granted granted Critical
Publication of JP6793499B2 publication Critical patent/JP6793499B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

本発明は画像データの符号化技術に関するものである。 The present invention relates to an image data coding technique.

昨今、デジタルカメラやデジタルカムコーダー等のデジタル撮像装置の発展に伴い、様々な画像データの圧縮符号化方式が検討されている。 Recently, with the development of digital imaging devices such as digital cameras and digital camcorders, various image data compression coding methods are being studied.

代表的な圧縮符号化方式としてはJPEG(Joint Photograph Experts Group)2000が挙げられる。JPEG2000では、符号化対象の画像は少なくとも1以上のタイルに分割される。そしてタイルを単位に、ウェーブレット変換、量子化、エントロピー符号化が行われる。ウェーブレット変換は、例えば可逆5/3タップフィルタが用いられる。このフィルタでは、連続する3個の画素から1個のハイパス係数を生成し、連続する5個の画素から1個のローパス係数を生成する。従って、タイルの境界の画素をフィルタ処理する場合には、そのタイル外の画素を必要とする。タイル外の画素として、タイル内の画素を代用する提案が知られている(特許文献1)。この特許文献1は、着目タイルの境界の画素の位置を折り返し位置とし、タイル外の画素や係数データとして、タイル内の画素や係数データを利用するものである。 As a typical compression coding method, JPEG (Joint Photograph Experts Group) 2000 can be mentioned. In JPEG2000, the image to be encoded is divided into at least one or more tiles. Then, wavelet transform, quantization, and entropy coding are performed for each tile. For the wavelet transform, for example, a reversible 5/3 tap filter is used. In this filter, one high-pass coefficient is generated from three consecutive pixels, and one low-pass coefficient is generated from five consecutive pixels. Therefore, when filtering the pixels at the boundary of the tile, the pixels outside the tile are required. There is known a proposal to substitute a pixel inside a tile as a pixel outside the tile (Patent Document 1). In Patent Document 1, the position of the pixel at the boundary of the tile of interest is set as the folding position, and the pixel or coefficient data in the tile is used as the pixel or coefficient data outside the tile.

しかし、着目タイル外の現実に存在する画素や係数データを参照してフィルタ処理するわけではない。それ故、タイル境界の量子化後の係数データは、実際にタイル外の画素を参照した場合の係数データとの間は差が生じる。この差は、復号して得られる画像におけるタイルの連続性が失われることを意味し、結果的に、タイル境界にノイズとなって現れる。 However, it does not filter by referring to the pixels and coefficient data that actually exist outside the tile of interest. Therefore, the coefficient data after the quantization of the tile boundary is different from the coefficient data when actually referring to the pixels outside the tile. This difference means that the continuity of the tiles in the decoded image is lost, resulting in noise at the tile boundaries.

かかる問題に対し、特許文献2は、着目タイルを符号化するとき、その着目タイルに隣接するタイル内の画素も含めて、符号化処理を行う技術を開示している。この特許文献2によれば、着目タイルの復号処理では、その着目タイルの画素と、その隣接タイルの境界近傍の画素が得られる。それ故、隣接タイルの画素を除去した結果を、着目タイルの復号結果の画像とする。この特許文献2によれば、隣り合うタイルの連続性が維持されるのでタイル境界でのノイズの発生を抑制できる。 In response to this problem, Patent Document 2 discloses a technique for encoding a tile of interest, including pixels in a tile adjacent to the tile of interest. According to Patent Document 2, in the decoding process of the tile of interest, the pixels of the tile of interest and the pixels in the vicinity of the boundary of the adjacent tiles are obtained. Therefore, the result of removing the pixels of the adjacent tile is used as the image of the decoding result of the tile of interest. According to Patent Document 2, since the continuity of adjacent tiles is maintained, the generation of noise at the tile boundary can be suppressed.

特開2007−142615号公報JP-A-2007-142615 特開2004−56213号公報Japanese Unexamined Patent Publication No. 2004-56213

しかしながら、上記特許文献2は画質劣化を抑制できるものの、着目タイルを符号化する際には、その隣接タイルの画素を含めて符号化する必要がある。それ故、特許文献2で生成される符号化データ量は、特許文献1のそれよりも無視できないくらい多くなる。つまり、特許文献2の技術を用いて、特許文献1と同等の符号量とするためには、特許文献2における量子化ステップを、特許文献1のそれよりも大きくしなければならない。しかし、量子化ステップが大きいほど、画質劣化が大きい。 However, although the above-mentioned Patent Document 2 can suppress the deterioration of image quality, when encoding the tile of interest, it is necessary to include the pixels of the adjacent tile. Therefore, the amount of coded data generated in Patent Document 2 is not negligible as that in Patent Document 1. That is, in order to use the technique of Patent Document 2 to obtain the same code amount as that of Patent Document 1, the quantization step in Patent Document 2 must be larger than that of Patent Document 1. However, the larger the quantization step, the greater the deterioration of image quality.

本発明は、係る点に鑑みなされたものであり、タイル分割をした際のタイルの連続性が維持され、かつ、生成する符号量も特許文献2よりは遥かに少なくすることを可能にする技術を提供しようとするものである。 The present invention has been made in view of the above points, and is a technique capable of maintaining the continuity of tiles when tiles are divided and generating a code amount much smaller than that of Patent Document 2. Is intended to provide.

上記の課題を解決するため、例えば本発明の画像符号化装置は以下の構成を備える。すなわち、
画像データを複数のタイルに分割し、タイルごとに符号化する画像符号化装置であって、
タイルごとにウェーブレット変換を行い、変換係数データを得る変換手段と、
タイルごとに、該変換手段で得られた変換係数データを符号化する符号化手段と、を備え、
符号化対象のタイルに対して、隣接する隣接タイルが存在する場合は、
前記変換手段は、前記符号化対象のタイルの画素データと、前記隣接タイルのうち前記符号化対象のタイルと隣接する複数の画素データと、を参照して、前記ウェーブレット変換を行うことにより、変換係数データを取得し、
前記符号化手段は、前記隣接タイルの前記複数の画素データを参照して得られた前記隣接タイルに対応する変換係数データのうち、逆ウェーブレット変換により変換係数データから画素データを取得する際に自タイルの画素データを取得するために必要となる変換係数データを符号化し、前記隣接タイルに対応する変換係数データの一部は符号化しないことを特徴とする。
In order to solve the above problems, for example, the image coding apparatus of the present invention has the following configuration. That is,
An image coding device that divides image data into a plurality of tiles and encodes each tile.
A conversion means that performs wavelet transform for each tile to obtain conversion coefficient data,
For each tile, a coding means for encoding the conversion coefficient data obtained by the conversion means is provided.
If there are adjacent tiles adjacent to the tile to be encoded,
The conversion means converts by performing the wavelet transform with reference to the pixel data of the tile to be encoded and a plurality of pixel data of the adjacent tiles adjacent to the tile to be encoded. Get the coefficient data,
The coding means itself when acquiring pixel data from the conversion coefficient data by the inverse wavelet transform among the conversion coefficient data corresponding to the adjacent tiles obtained by referring to the plurality of pixel data of the adjacent tiles. The conversion coefficient data required for acquiring the pixel data of the tile is encoded, and a part of the conversion coefficient data corresponding to the adjacent tile is not encoded.

本発明によれば、タイル分割による符号量の増加を抑えつつ、タイル境界の画質劣化を抑えることができる。 According to the present invention, it is possible to suppress deterioration of image quality at the tile boundary while suppressing an increase in the amount of code due to tile division.

第1の実施形態における画像符号化部のブロック構成図。The block block diagram of the image coding part in 1st Embodiment. 第1の実施形態におけるタイル入力法を説明するための図。The figure for demonstrating the tile input method in 1st Embodiment. 第1の実施形態におけるウェーブレット変換処理を示す図。The figure which shows the wavelet transform processing in 1st Embodiment. 第1の実施形態におけるウェーブレット変換を3回行う場合の実行法を説明するための図。The figure for demonstrating the execution method at the time of performing the wavelet transform three times in the 1st Embodiment. 第1の実施形態における符号化処理の手順を示すフローチャート。The flowchart which shows the procedure of the coding process in 1st Embodiment. 第1の実施形態における復号部のブロック構成図。The block block diagram of the decoding part in 1st Embodiment. 第1の実施形態における逆ウェーブレット変換法を説明するための図。The figure for demonstrating the inverse wavelet transform method in 1st Embodiment. 第2の実施形態における画像符号化部のブロック構成図。The block block diagram of the image coding part in 2nd Embodiment. 第2の実施形態における符号化装置の処理手順を示すフローチャート。The flowchart which shows the processing procedure of the coding apparatus in 2nd Embodiment. ウェーブレット変換を3回を行う場合の隣接タイルからオーバーラップして入力される画素数との関係を示す図。The figure which shows the relationship with the number of pixels input overlapping from the adjacent tile when the wavelet transform is performed three times. , , , , , , , ウェーブレット変換を3回を行う場合の実行法を説明するための図。The figure for demonstrating the execution method when the wavelet transform is performed three times.

以下、添付図面に従って本発明に係る実施形態を詳細に説明する。なお、以下説明する実施形態は、本発明を具体的に実施した場合の例を示すもので、特許請求の範囲に記載した構成の具体的な実施形態の一つである。 Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings. The embodiment described below is an example of a specific embodiment of the present invention, and is one of the specific embodiments of the configuration described in the claims.

[第1の実施形態]
本第1の実施形態は、デジタルカメラ等の撮像装置に適用した例を説明する。図1は、撮像装置における画像符号化部100のブロック構成図である。
[First Embodiment]
The first embodiment describes an example applied to an imaging device such as a digital camera. FIG. 1 is a block configuration diagram of an image coding unit 100 in an imaging device.

画像符号化部100は、図示のように、フレームメモリ101、データ入力制御部102、ウェーブレット変換部103、量子化部104、エントロピー符号化部105、設定部106を有する。なお、第1実施形態では、符号化方式の一例としてJPEG2000を用いた例を説明するが、特に符号化方式については問わない。以下、図1の構成に基づき、符号化処理の処理手順を説明する。ここで、設定部106は、不図示の操作部からの指示に従い、符号化対象の画像データをいくつのタイルに分割するか、さらには、ウェーブレット変換を何回行うか(分解レベル数いくつにするか)を決定する。そして、設定部106は、1タイルのサイズや、詳細は後述するが、オーバーラップ画素数、量子化対象の変換係数データを決定する。 As shown in the figure, the image coding unit 100 includes a frame memory 101, a data input control unit 102, a wavelet transform unit 103, a quantization unit 104, an entropy coding unit 105, and a setting unit 106. In the first embodiment, an example using JPEG2000 as an example of the coding method will be described, but the coding method is not particularly limited. Hereinafter, the processing procedure of the coding process will be described based on the configuration of FIG. Here, the setting unit 106 follows an instruction from an operation unit (not shown), how many tiles the image data to be encoded is divided into, and how many times the wavelet transform is performed (how many resolution levels are set). Or) is decided. Then, the setting unit 106 determines the size of one tile and the number of overlapping pixels and the conversion coefficient data to be quantized, although the details will be described later.

本実施形態では、タイルの分割数や、分解レベル数を、操作部からの指示に従って決定するものとするが、撮像装置のシステム制御部(不図示)が、所定の条件に基づいて自動的に決定するようにしてもよい。 In the present embodiment, the number of tile divisions and the number of decomposition levels are determined according to the instructions from the operation unit, but the system control unit (not shown) of the imaging device automatically determines the number of tile divisions and the number of decomposition levels based on predetermined conditions. You may decide.

また、本実施形態において、タイルとは、1つのフレーム画像を複数に分割した際の、分割画像を示している。 Further, in the present embodiment, the tile indicates a divided image when one frame image is divided into a plurality of pieces.

不図示の操作部から記録の開始指示があると、フレームメモリ101には、不図示の撮像部で撮像した画像データが撮像順に入力され、格納される。データ入力制御部102は、フレームメモリ101に格納された1フレームの画像データを複数のタイルに分割する。このタイルの分割数並びに各タイルのサイズは、設定部106からの設定に依存する。以降、分割されたタイルが表す部分画像データをタイル画像データという。データ入力制御部102は、各タイル画像データを、予め定められた順序に従いウェーブレット変換部103に供給する。詳細は後述するが、入力データ制御部102は、或る着目タイル画像データをウェーブレット変換部103に供給する際には、その着目タイル画像データだけでなく、タイル境界から予め設定された距離内に位置する隣接タイル画像データ内の画素データも供給する。以降、隣接タイル画像データ内の、タイル境界から予め設定された距離内に位置する画素データを、タイル周辺画素データという。上記の通りなので、入力データ制御部102からウェーブレット変換部103に供給される各画像データは、互いオーバーラップしている。 When a recording start instruction is given from an operation unit (not shown), the image data captured by the image pickup unit (not shown) is input to and stored in the frame memory 101 in the order of imaging. The data input control unit 102 divides the image data of one frame stored in the frame memory 101 into a plurality of tiles. The number of divisions of the tiles and the size of each tile depend on the setting from the setting unit 106. Hereinafter, the partial image data represented by the divided tiles is referred to as tile image data. The data input control unit 102 supplies each tile image data to the wavelet transform unit 103 in a predetermined order. Although the details will be described later, when the input data control unit 102 supplies a certain attention tile image data to the wavelet transform unit 103, not only the attention tile image data but also within a preset distance from the tile boundary. It also supplies the pixel data in the adjacent tile image data that is located. Hereinafter, pixel data located within a preset distance from the tile boundary in the adjacent tile image data will be referred to as tile peripheral pixel data. As described above, the image data supplied from the input data control unit 102 to the wavelet transform unit 103 overlap each other.

ウェーブレット変換部103は、フレームメモリ101から入力されたタイル画像データとタイル周辺画素データに対して、ウェーブレット変換を実行して得た変換係数データを量子化部104に送る。ただし、このウェーブレット変換の具体的な実行方法については後述する。 The wavelet transform unit 103 sends the conversion coefficient data obtained by executing the wavelet transform to the quantization unit 104 with respect to the tile image data and the pixel peripheral pixel data input from the frame memory 101. However, the specific execution method of this wavelet transform will be described later.

量子化部104は、ウェーブレット変換部103から送られた変換係数データを、量子化パラメータを用いて量子化し、エントロピー符号化部105に送る。この際、タイル画像の間で、同一サブバンドに与える量子化パラメータを同一あるいは近い値にしておく。こうすることでタイル画像間における画質劣化を均一化し、タイル境界における画質劣化を目立たなくすることができる。 The quantization unit 104 quantizes the conversion coefficient data sent from the wavelet transform unit 103 using the quantization parameter, and sends it to the entropy coding unit 105. At this time, the quantization parameters given to the same subband are set to the same or close values between the tile images. By doing so, the image quality deterioration between the tile images can be made uniform, and the image quality deterioration at the tile boundary can be made inconspicuous.

エントロピー符号化部105は、量子化部104による量子化後の変換係数データを、サブバンドごとに、エントロピー符号化を行い、その符号化データを出力する。エントロピー符号化としては、EBCOT(Embedded Block Coding with Optimized Truncation)などのエントロピー符号化を施して、符号化データとして出力する。 The entropy coding unit 105 performs entropy coding on the conversion coefficient data after quantization by the quantization unit 104 for each subband, and outputs the coded data. As the entropy encoding, entropy encoding such as EBCOT (Embedded Block Coding with Optimized Truncation) is performed, and the data is output as encoded data.

次に、ウェーブレット変換部103に供給される、タイル画像データとタイル周辺画素データの関係を図2を用いて説明する。 Next, the relationship between the tile image data and the tile peripheral pixel data supplied to the wavelet transform unit 103 will be described with reference to FIG.

図2(a)は1フレームの画像データを水平方向3分割、垂直方向3分割することで、1フレームから9つのタイル画像データA〜Iを生成する例を示している。データ入力制御部102は、タイル画像データA→B→C→D→…→Iと、タイルを単位とするラスタースキャン順にウェーブレット変換部103に供給する。また、既に説明したように、ウェーブレット変換部102は、1つのタイル画像データをウェーブレット変換部103に供給する際、そのタイル周辺画素データもウェーブレット変換部103に供給する。 FIG. 2A shows an example in which nine tile image data A to I are generated from one frame by dividing the image data of one frame into three in the horizontal direction and three in the vertical direction. The data input control unit 102 supplies the tile image data A → B → C → D → ... → I to the wavelet transform unit 103 in the order of raster scan in tile units. Further, as described above, when the wavelet transform unit 102 supplies one tile image data to the wavelet transform unit 103, the wavelet transform unit 102 also supplies the tile peripheral pixel data to the wavelet transform unit 103.

ここで図2(b)のタイル画像データAを例に挙げ、タイル周辺画素データとの関係を説明する。タイル画像データAは、フレーム画像中の左上に位置している。それ故、タイル画像データAの隣接するタイル画像データは、タイル画像データB,D,Eとなる。そこでデータ入力制御部102はタイル画像データAをウェーブレット変換部103に供給する際、図2(b)の斜線Pで示した部分の画素データをタイル周辺画素データとしてウェーブレット変換部102に入力する。同様の考えをタイル画像データA〜I全てのタイルで当てはめると、各タイル画像データに対するタイル周辺画素データは図2(c)の斜線Qで示される。なお、タイル周辺画素データPの水平、垂直方向の距離(画素数)は、ウェーブレット変換の回数、着目タイル画像データのサイズと、隣接するタイル画像の位置によって異なる。また、タイル周辺画素データPの水平、垂直方向の画素数を、オーバーラップ画素数と呼ぶ。 Here, the tile image data A of FIG. 2B will be taken as an example to explain the relationship with the pixel data around the tile. The tile image data A is located at the upper left in the frame image. Therefore, the adjacent tile image data of the tile image data A becomes the tile image data B, D, and E. Therefore, when the data input control unit 102 supplies the tile image data A to the wavelet transform unit 103, the data input control unit 102 inputs the pixel data of the portion indicated by the shaded line P in FIG. 2B to the wavelet transform unit 102 as the pixel peripheral pixel data of the tile. Applying the same idea to all tiles of tile image data A to I, the pixel data around the tile for each tile image data is indicated by the diagonal line Q in FIG. 2 (c). The horizontal and vertical distances (number of pixels) of the pixel data P around the tile differ depending on the number of wavelet transforms, the size of the tile image data of interest, and the position of the adjacent tile image. Further, the number of pixels in the horizontal and vertical directions of the tile peripheral pixel data P is referred to as the number of overlapping pixels.

ウェーブレット変換を3回までの行う場合の、オーバーラップ画素数と、着目タイルの端の画素を復号するのに必要な隣接タイルの変換係数データの数の関係を図10(a)、(b)に示す。 The relationship between the number of overlapping pixels and the number of conversion coefficient data of adjacent tiles required to decode the pixels at the edge of the tile of interest when the wavelet transform is performed up to 3 times is shown in FIGS. 10 (a) and 10 (b). Shown in.

図10(a),(b)には、隣接タイルの画素を加えてウェーブレット変換した際に取得した隣接タイルの変換係数データのうち、符号化対象の着目タイルの画素を復号する際に必要となる変換係数データの数を、サブサブバンド毎に記載している。本実施形態では、ウェーブレット変換が1回の場合は、サブバンド1H,1Lの変換係数データが生成され、サブバンド1H、1Lの変換係数データが符号化される。ウェーブレット変換が2回の場合は、サブバンド1H、1L、2H、2Lの変換係数データが生成され、サブバンド1H、2H、2Lの変換係数データが符号化される。ウェーブレット変換が3回の場合は、サブバンド1H、1L、2H、2L、3H、3Lの変換係数データが生成され、サブバンド1H、2H、3H、3Lの変換係数データが符号化される。そのため、生成されないサブバンドや、符号化を行わないサブバンドについては、データ数を記載せずに、グレーにしている。 10 (a) and 10 (b) show that among the conversion coefficient data of the adjacent tiles acquired when the pixels of the adjacent tiles are added and the wavelet transform is performed, it is necessary to decode the pixels of the tile of interest to be encoded. The number of conversion coefficient data is described for each sub-sub band. In the present embodiment, when the wavelet transform is performed once, the conversion coefficient data of the subbands 1H and 1L is generated, and the conversion coefficient data of the subbands 1H and 1L are encoded. When the wavelet transform is performed twice, the conversion coefficient data of the subbands 1H, 1L, 2H and 2L is generated, and the conversion coefficient data of the subbands 1H, 2H and 2L are encoded. When the wavelet transform is performed three times, the conversion coefficient data of the subbands 1H, 1L, 2H, 2L, 3H and 3L is generated, and the conversion coefficient data of the subbands 1H, 2H, 3H and 3L are encoded. Therefore, the subbands that are not generated and the subbands that are not encoded are grayed out without describing the number of data.

図10(a)は、着目タイルの上、または、左に隣接タイルが位置する場合の、ウェーブレット変換回数と、オーバーラップ画素数と、着目タイルの上端、または、左端の画素を復号するのに必要な隣接タイルの変換係数データの数との関係を示している。 FIG. 10A shows the number of wavelet transforms, the number of overlapping pixels, and the upper end or leftmost pixel of the tile of interest when the adjacent tile is located on or to the left of the tile of interest. It shows the relationship with the number of conversion coefficient data of the required adjacent tiles.

本実施形態では、ウェーブレット変換は、整数型5/3タップフィルタを用いる。1つのタイル画像データをウェーブレット変換する場合、そのタイル画像データの左上隅を開始位置として変換を開始する。それ故、着目タイル画像データがいかなるサイズであっても、上、左に隣接するタイル画像データからは、ウェブレート変換の回数に応じた固定のオーバーラップ画素数の画素が参照される。図示のように、ウェーブレット変換を1回のみ行う場合、上、または、左に隣接するタイル画像データのオーバーラップ画素数は“2”となる。また、ウェーブレット変換を2回行う場合の隣接タイルとのオーバーラップ画素数は“8”となる。そして、ウェーブレット変換を3回行う場合の隣接タイルとのオーバーラップ画素数は“16”となる。 In this embodiment, the wavelet transform uses an integer type 5/3 tap filter. When wavelet transforming one tile image data, the conversion is started with the upper left corner of the tile image data as the start position. Therefore, regardless of the size of the tile image data of interest, the tile image data adjacent to the upper and left sides refers to pixels having a fixed number of overlapping pixels according to the number of web rate conversions. As shown in the figure, when the wavelet transform is performed only once, the number of overlapping pixels of the tile image data adjacent to the upper or left side is “2”. Further, when the wavelet transform is performed twice, the number of overlapping pixels with the adjacent tile is "8". Then, when the wavelet transform is performed three times, the number of overlapping pixels with the adjacent tile is "16".

図10(b)は、着目タイル画像の下、または、右に隣接タイルが位置する場合の、ウェーブレット変換回数と、オーバーラップ画素数と、着目タイルの画素を復号するのに必要な隣接タイルの変換係数データの数との関係を示している。隣接タイル画像データが、着目タイル画像データの下または右に位置する場合、オーバーラップ画素数は、着目タイル画像データのサイズに依存したものとなる。正確には、着目タイル画像データの水平、垂直方向の画素数を“8”で除算した余りに依存する。例えば、着目タイル画像データの水平または垂直方向の画素数を“8”で除算した余りが0であるとする。この場合、ウェーブレット変換を1回のみ行う場合、下、または、右に隣接するタイル画像データのオーバーラップ画素数は“3”となる。また、ウェーブレット変換を3回行う場合には、オーバーラップ画素数は“15”となる。 FIG. 10B shows the number of wavelet transforms, the number of overlapping pixels, and the adjacent tiles required to decode the pixels of the tile of interest when the adjacent tiles are located below or to the right of the tile image of interest. The relationship with the number of conversion coefficient data is shown. When the adjacent tile image data is located below or to the right of the tile image data of interest, the number of overlapping pixels depends on the size of the tile image data of interest. To be precise, it depends on the remainder obtained by dividing the number of pixels in the horizontal and vertical directions of the tile image data of interest by "8". For example, it is assumed that the remainder obtained by dividing the number of pixels in the horizontal or vertical direction of the tile image data of interest by "8" is 0. In this case, when the wavelet transform is performed only once, the number of overlapping pixels of the tile image data adjacent to the bottom or the right is "3". Further, when the wavelet transform is performed three times, the number of overlapping pixels is "15".

ウェーブレット変換部103による前述の可逆5/3タップフィルタを用いたウェーブレット変換を1回実行するためのリフティング構造を図3に示す。ウェーブレット変換を1回実行するわけであるから、得られる変換係数データのレベルは1となる。 FIG. 3 shows a lifting structure for executing the wavelet transform once by the wavelet transform unit 103 using the above-mentioned reversible 5/3 tap filter. Since the wavelet transform is executed once, the level of the obtained transform coefficient data is 1.

図3の符号a〜iは、画像データのタイル境界付近の1ラインの画素データを示している。図示は、画素dとeの間にタイル境界がある例を示し、画素e〜iがウェーブレット変換対象となる着目タイル画像データに属し、画素a〜dが左に位置する隣接タイル画像データに属する例である。5/3タップフィルタを用いてウェーブレット変換を行う場合、連続する3画素を参照して高周波成分を示す変換係数データが算出される。図示の、b’、d’、f’、h’が、分解レベル1の高周波成分の変換係数(1H)を示している。また、連続する5画素を参照して低周波成分を示す変換係数データが算出される。図示のc”、e”、g”が、分解レベル1の低周波成分を示す変換係数データ(1L)を示している。 Reference numerals a to i in FIG. 3 indicate one line of pixel data near the tile boundary of the image data. The illustration shows an example in which there is a tile boundary between pixels d and e, pixels e to i belong to the tile image data of interest to be wavelet-transformed, and pixels a to d belong to adjacent tile image data located on the left. This is an example. When wavelet transform is performed using a 5/3 tap filter, conversion coefficient data indicating a high frequency component is calculated with reference to three consecutive pixels. In the figure, b', d', f', and h'indicate the conversion coefficient (1H) of the high frequency component of the decomposition level 1. In addition, conversion coefficient data indicating a low frequency component is calculated with reference to five consecutive pixels. The c ", e", and g "in the figure indicate the conversion coefficient data (1 L) indicating the low frequency component of the decomposition level 1.

ここで、着目タイル画像データにおけるタイル境界に最近接する画素eを復号する場合を考察する。画素eを復号するためには、図示のように、高周波変換係数データd’,f’と、低周波変換係数データe”の3つがあればよい。このうち、着目タイル画像データに隣接するタイルに属するのは、高周波変換係数データd’である。そして、この高周波変換係数d’は、着目タイル内の画素eと、隣接タイルの画素c、dの2つの計3つから算出される。そのため、ウェーブレット変換を1回行う場合に、左に隣接するタイル画像のオーバーラップ画素数は“2”となる。 Here, a case where the pixel e closest to the tile boundary in the tile image data of interest is decoded will be considered. In order to decode the pixel e, as shown in the figure, there are only three high-frequency conversion coefficient data d'and f'and low-frequency conversion coefficient data e ". Of these, tiles adjacent to the tile image data of interest The high-frequency conversion coefficient data d'belongs to. The high-frequency conversion coefficient d'is calculated from a total of three pixels e in the tile of interest and pixels c and d of the adjacent tiles. Therefore, when the wavelet conversion is performed once, the number of overlapping pixels of the tile image adjacent to the left is “2”.

このように、ウェーブレット変換部103は、隣接タイルの位置が左の場合にウェーブレット変換を1回のみ行う場合には、着目タイル画像データに加えて、隣接タイル画像データからオーバーラップ画素数“2”に対応する画素c、dを入力し、ウェーブレット変換を行う。そして、ウェーブレット変換部103は、着目タイル画像データから得られた変換係数データに加えて、隣接タイル画像データから得られた変換係数データd’を量子化部104に供給する。 As described above, when the wavelet transform unit 103 performs the wavelet transform only once when the position of the adjacent tile is on the left, the number of overlapping pixels is “2” from the adjacent tile image data in addition to the attention tile image data. The pixels c and d corresponding to are input to perform wavelet transform. Then, the wavelet transform unit 103 supplies the transform coefficient data d'obtained from the adjacent tile image data to the quantization unit 104 in addition to the transform coefficient data obtained from the tile image data of interest.

先に示した特許文献2の技術によれば、着目タイル画像データの符号化データを生成するために、隣接タイル画像のc、dを復元するのに必要な符号化データを生成する。つまり、特許文献2に開示された技術では、着目タイル画像の符号化する際には、隣接タイルの変換係数b’、c”、d’を含めて量子化し、符号化が行われる。これに対し、本実施形態では、隣接タイルで必要な変換係数データはd’だけでよくなり、符号化効率を更に高くできる。 According to the technique of Patent Document 2 described above, in order to generate the coded data of the tile image data of interest, the coded data necessary for restoring the c and d of the adjacent tile image is generated. That is, in the technique disclosed in Patent Document 2, when the tile image of interest is encoded, the conversion coefficients b', c ", and d'of the adjacent tiles are included in the quantization and the coding is performed. On the other hand, in the present embodiment, the conversion coefficient data required for the adjacent tiles is only d', and the coding efficiency can be further increased.

なお、図2(a)のタイル画像データAのように、その上や左に隣接タイルがない場合には、従来のJPEG2000などと同様にミラー処理を行ってタイル外の画素を生成し、ウェーブレット変換を行う。 When there are no adjacent tiles on or to the left as in the tile image data A in FIG. 2A, mirror processing is performed in the same manner as in conventional JPEG2000 to generate pixels outside the tiles, and wavelets are generated. Perform the conversion.

また、ウェーブレット変換の回数が増えるほど(分解レベルが増えるほど)特許文献2の場合に比べ、削減できる符号量は増加するため、本第1の実施形態による発生符号量削減効果が大きく表れる。図4は、可逆5/3タップフィルタを用いて分解レベル3までの変換係数を得るためのリフティング構造を示している。 Further, as the number of wavelet transforms increases (as the decomposition level increases), the amount of code that can be reduced increases as compared with the case of Patent Document 2, so that the effect of reducing the amount of generated code by the first embodiment is greatly exhibited. FIG. 4 shows a lifting structure for obtaining conversion coefficients up to decomposition level 3 using a reversible 5/3 tap filter.

ウェーブレット変換を1回実行する図3の場合には、着目タイル内の左端の画素を復号するのに必要な変換係数を生成するために、隣接タイルからオーバーラップして入力する画素は既に図3を用いて説明したように2画素であった。一方、ウェーブレット変換を3回行う場合は、図4のように隣接タイル画像データから16画素を入力する必要がある。
特許文献2の場合、16画素分の変換係数データである、変換係数データ(1H)の8係数、変換係数データ(2H)の4係数、変換係数データ(3H)の2係数、変換係数データ(3L)の2係数)を量子化、符号化する必要がある。それ故、符号量は無視できないほど大きなものとなる。
In the case of FIG. 3 in which the wavelet transform is executed once, the pixels to be input overlapping from the adjacent tiles in order to generate the conversion coefficient required to decode the leftmost pixel in the tile of interest are already shown in FIG. It was 2 pixels as explained using. On the other hand, when the wavelet transform is performed three times, it is necessary to input 16 pixels from the adjacent tile image data as shown in FIG.
In the case of Patent Document 2, conversion coefficient data for 16 pixels, 8 coefficients of conversion coefficient data (1H), 4 coefficients of conversion coefficient data (2H), 2 coefficients of conversion coefficient data (3H), conversion coefficient data ( It is necessary to quantize and encode the 2 coefficients) of 3L). Therefore, the amount of code becomes so large that it cannot be ignored.

一方、本第1の実施形態の場合、着目タイル画像データの端に位置する画素を復号するのに必要な、隣接タイル画像データから生成された変換係数データは、図示の丸で囲った変換係数となる。つまり、分解レベル1の変換係数データ(1H)の1係数、分解レベル2の変換係数データ(2H)の1係数、分解レベル3の変換係数データ(3H)の1係数の計3係数だけである。よって、隣接タイル画像データから得られた変換係数データのうち、これら3係数を量子化、符号化すれば良い。つまり、特許文献2と比較し、符号化対象の変換係数の個数は大幅に削減できる。 On the other hand, in the case of the first embodiment, the conversion coefficient data generated from the adjacent tile image data required to decode the pixel located at the end of the tile image data of interest is the conversion coefficient circled in the figure. It becomes. That is, there are only three coefficients in total: one coefficient of the conversion coefficient data (1H) of the decomposition level 1, one coefficient of the conversion coefficient data (2H) of the decomposition level 2, and one coefficient of the conversion coefficient data (3H) of the decomposition level 3. .. Therefore, of the conversion coefficient data obtained from the adjacent tile image data, these three coefficients may be quantized and encoded. That is, as compared with Patent Document 2, the number of conversion coefficients to be encoded can be significantly reduced.

図4からもわかるように、隣接タイルの位置が上または左の場合、第1の実施形態における、ウェーブレット変換の回数と、着目タイル内の端の画素を復元するために隣接タイルから生成された変換係数データのうちの利用する変換係数データとの関係は次のようになる。
ウェーブレット変換回数が1回: 変換係数データ(1H)の1係数
ウェーブレット変換回数が2回: 変換係数データ(1H)、(2H)の2係数
ウェーブレット変換回数が3回: 変換係数データ(1H)、(2H)、(3H)の3係数

ここで、ウェーブレット変換の実行回数をNとする。この場合、ウェーブレット変換部103は、隣接タイルから生成された各分解レベルの高周波の変換係数データのうち、タイル境界に最も近い変換係数データ1H,2H,…、NHのN個を量子化部104に供給すればよい、と言うことができる。
As can also be seen from FIG. 4, when the position of the adjacent tile is up or left, it was generated from the adjacent tile in order to restore the number of wavelet transforms and the pixels at the edges in the tile of interest in the first embodiment. The relationship between the conversion coefficient data to be used and the conversion coefficient data to be used is as follows.
Wavelet transform count is 1 time: 1-coefficient wavelet transform count of conversion coefficient data (1H) is 2 times: 2-coefficient wavelet transform count of conversion factor data (1H) and (2H) is 3 times: Conversion factor data (1H), 3 coefficients of (2H) and (3H):
Here, let N be the number of times the wavelet transform is executed. In this case, the wavelet transform unit 103 quantizes N of the conversion coefficient data 1H, 2H, ..., NH closest to the tile boundary among the high-frequency conversion coefficient data of each decomposition level generated from the adjacent tiles. It can be said that it should be supplied to.

次に、隣接タイルの位置が下または右であって、ウェーブレット変換を3回行う場合に、隣接タイルから生成された変換係数データのうち、着目タイルの端の画素を復元するために必要となる変換係数データについて、図11A〜11Hを参照して説明する。 Next, when the position of the adjacent tile is down or right and the wavelet transform is performed three times, it is necessary to restore the pixel at the end of the tile of interest in the conversion coefficient data generated from the adjacent tile. The conversion coefficient data will be described with reference to FIGS. 11A to 11H.

なお、ウェーブレット変換を3回行った場合、変換係数データ1H、変換係数データ2H、変換係数データ3H、変換係数データ3Lが、量子化及び符号化される。つまり、変換係数データ1L、変換係数データ2Lは符号化されない。変換係数データ1Lは、変換係数データ2Hと変換係数データ2Lとから生成可能であり、また、変換係数データ2Lは、変換係数データ3Hと変換係数データ3Lとから生成可能であるためである。つまり、ウェーブレット変換をN回行った場合、変換係数データ1H,2H,…、NHと、変換係数データNLとが符号化され、変換係数データ1L,2L,…、(N−1)Lは符号化されず記録されないことになる。 When the wavelet transform is performed three times, the conversion coefficient data 1H, the conversion coefficient data 2H, the conversion coefficient data 3H, and the conversion coefficient data 3L are quantized and encoded. That is, the conversion coefficient data 1L and the conversion coefficient data 2L are not encoded. This is because the conversion coefficient data 1L can be generated from the conversion coefficient data 2H and the conversion coefficient data 2L, and the conversion coefficient data 2L can be generated from the conversion coefficient data 3H and the conversion coefficient data 3L. That is, when the wavelet transform is performed N times, the conversion coefficient data 1H, 2H, ..., NH and the conversion coefficient data NL are encoded, and the conversion coefficient data 1L, 2L, ..., (N-1) L are codes. It will not be converted and will not be recorded.

上記は、着目タイル、隣接タイルに対して共通のものである。以下、かかる点を踏まえ、隣接タイル内で生成される変換係数データにおける符号化対象となる変換係数データについて説明する。図11Aは、符号化対象の着目タイルの水平または垂直方向の画素数(着目タイル幅)を“8”で除算した余りが“0”の場合に、ウェーブレット変換を3回行った場合を示している。つまり、着目タイルの水平方向又は垂直方向の画素数が8の整数倍である。 The above is common to the tile of interest and the adjacent tile. Hereinafter, based on this point, the conversion coefficient data to be encoded in the conversion coefficient data generated in the adjacent tile will be described. FIG. 11A shows a case where the wavelet transform is performed three times when the remainder of dividing the number of pixels (tile width of interest) in the horizontal or vertical direction of the tile of interest to be encoded by “8” is “0”. There is. That is, the number of pixels in the horizontal direction or the vertical direction of the tile of interest is an integral multiple of 8.

符号化対象の着目タイルの端の画素dを復号するには、画素c、変換係数データ1Hd、画素eのデータが必要となる。しかし、画素eは、変換係数データ1Hd、変換係数データ1Le、変換係数データ1Hfとから、生成することができる。ここで、変換係数データ1Leは、1Lの変換係数データであり、記録しないデータであり、変換係数データ2Hc、変換係数データ2Le、変換係数データ2Hgとから生成できる。さらに、変換係数データ2Leは記録されないデータであり、変換係数データ3Ha、変換係数データ3Le、変換係数データ3Hiとから生成できる。つまり、符号化対象の着目タイルの端の画素dを復号するには、隣接タイルにおける境界に近い、図示の実線で囲った変換係数データ1Hf、変換係数データ2Hg、変換係数データ3Hi、変換係数データ3Leがあれば十分である。この変換係数データがあれば、着目タイル内の隣接タイル側の端の画素まで復号できる。そのため、符号化対象の着目タイル内の1H、2H、3H、3Lの変換係数データに加えて、隣接タイルの変換係数データ{1Hf、2Hg、3Hi、3Le}を符号化する。 In order to decode the pixel d at the end of the tile of interest to be encoded, the data of the pixel c, the conversion coefficient data 1Hd, and the pixel e are required. However, the pixel e can be generated from the conversion coefficient data 1Hd, the conversion coefficient data 1Le, and the conversion coefficient data 1Hf. Here, the conversion coefficient data 1Le is 1L of conversion coefficient data, which is not recorded, and can be generated from the conversion coefficient data 2Hc, the conversion coefficient data 2Le, and the conversion coefficient data 2Hg. Further, the conversion coefficient data 2Le is data that is not recorded, and can be generated from the conversion coefficient data 3Ha, the conversion coefficient data 3Le, and the conversion coefficient data 3Hi. That is, in order to decode the pixel d at the end of the tile of interest to be encoded, the conversion coefficient data 1Hf, the conversion coefficient data 2Hg, the conversion coefficient data 3Hi, and the conversion coefficient data surrounded by the solid line shown in the figure near the boundary in the adjacent tile. 3Le is enough. With this conversion coefficient data, it is possible to decode up to the pixel at the end on the adjacent tile side in the tile of interest. Therefore, in addition to the conversion coefficient data of 1H, 2H, 3H, and 3L in the tile of interest to be encoded, the conversion coefficient data {1Hf, 2Hg, 3Hi, 3Le} of the adjacent tile is encoded.

また、これらの変換係数データを算出するためには、隣接タイルの15画素を必要とする。そのため、着目タイルに加えて少なくとも隣接タイルの15画素を入力してウェーブレット変換を3回行う。そして、符号化する際には、ウェーブレット変換により得られた隣接タイルの変換係数データ全てを符号化せずに、符号化対象の着目タイルの端部のデータを復号するのに必要となる変換係数データを符号化する。もちろん、符号化対象の着目タイル内については、1H、2H、3H、3Lの変換係数データを全て符号化する。 Further, in order to calculate these conversion coefficient data, 15 pixels of adjacent tiles are required. Therefore, in addition to the tile of interest, at least 15 pixels of adjacent tiles are input and the wavelet transform is performed three times. Then, when encoding, the conversion coefficient required to decode the data at the end of the tile of interest to be encoded without encoding all the conversion coefficient data of the adjacent tiles obtained by the wavelet transform. Encode the data. Of course, all the conversion coefficient data of 1H, 2H, 3H, and 3L are encoded in the tile of interest to be encoded.

つまり、着目タイル内の端の画素を復元するために隣接タイルから生成された変換係数データのうちの利用する変換係数データは、サブバンド1H:1係数、サブバンド2H:1係数、サブバンド3H:1係数、サブバンド3L:1係数、の合計4係数となる。 That is, the conversion coefficient data used among the conversion coefficient data generated from the adjacent tiles for restoring the edge pixels in the tile of interest are subband 1H: 1 coefficient, subband 2H: 1 coefficient, and subband 3H. There are a total of 4 coefficients, 1 coefficient and 3L of subband: 1 coefficient.

図11Bは、符号化対象の着目タイルの水平または垂直方向の画素数(着目タイル幅)を“8”で除算した余りが“1”の場合に、ウェーブレット変換を3回行った場合を示している。 FIG. 11B shows a case where the wavelet transform is performed three times when the remainder of dividing the number of pixels (tile width of interest) in the horizontal or vertical direction of the tile of interest to be encoded by “8” is “1”. There is.

符号化対象の着目タイルの端の画素eを復号するためには、着目タイルの端部の1Lの変換係数データ1Leおよび着目タイル内の1Hの変換係数データ1Hd,及び、隣接タイルの1Hの変換係数データ1Hfが必要となる。変換係数1Leは、着目タイル内の変換係数2Hc,2Le,及び隣接タイル内の変換係数データ2Hgから算出できる。また、変換係数2Leは、着目タイル内の変換係数3Ha,3Le.及び、隣接タイルの変換係数データ3Hiから算出できる。従って、結局のところ、図11Bに示すように、着目タイル内のデータに加えて、隣接タイル内の変換係数データ1Hf、変換係数データ2Hg、変換係数データ3Hiがあれば十分となる。この変換係数データがあれば、着目タイル内の隣接タイル側の端の画素まで復号できる。また、これらの変換係数データを算出するためには、隣接タイルの14画素を必要とする。そのため、“着目タイル幅/8”の余りが1となる場合は、着目タイルに加えて少なくとも隣接タイルの14画素を入力してウェーブレット変換を3回行う。そして、符号化する際には、隣接タイルの変換係数データについては、ウェーブレット変換で得られた全ての変換係数でなく、着目タイルの端部の画素eおよび端部の変換係数データを復号するのに必要となる変換係数データ{1Hf、2Hg、3Hi}を符号化する。 In order to decode the pixel e at the end of the tile of interest to be encoded, the conversion coefficient data 1Le of 1L at the end of the tile of interest, the conversion coefficient data 1Hd of 1H in the tile of interest, and the conversion of 1H of the adjacent tile Coefficient data 1Hf is required. The conversion coefficient 1Le can be calculated from the conversion coefficients 2Hc and 2Le in the tile of interest and the conversion coefficient data 2Hg in the adjacent tile. Further, the conversion coefficient 2Le is the conversion coefficient 3Ha, 3Le. In the tile of interest. And, it can be calculated from the conversion coefficient data 3Hi of the adjacent tile. Therefore, after all, as shown in FIG. 11B, in addition to the data in the tile of interest, the conversion coefficient data 1Hf, the conversion coefficient data 2Hg, and the conversion coefficient data 3Hi in the adjacent tile are sufficient. With this conversion coefficient data, it is possible to decode up to the pixel at the end on the adjacent tile side in the tile of interest. Further, in order to calculate these conversion coefficient data, 14 pixels of adjacent tiles are required. Therefore, when the remainder of "width of interest tile / 8" is 1, at least 14 pixels of adjacent tiles are input in addition to the tile of interest, and wavelet transform is performed three times. Then, when encoding, the conversion coefficient data of the adjacent tiles is not all the conversion coefficients obtained by the wavelet transform, but the pixel e at the end of the tile of interest and the conversion coefficient data at the end are decoded. The conversion coefficient data {1Hf, 2Hg, 3Hi} required for the above is encoded.

つまり、着目タイル内の端の画素を復元するために隣接タイルから生成された変換係数データのうちの利用する変換係数データは、サブバンド1H:1係数、サブバンド2H:1係数、サブバンド3H:1係数、サブバンド3L:0係数、の合計3係数となる。 That is, the conversion coefficient data used among the conversion coefficient data generated from the adjacent tiles for restoring the edge pixels in the tile of interest are subband 1H: 1 coefficient, subband 2H: 1 coefficient, and subband 3H. There are a total of 3 coefficients, 1 coefficient and 3L of subband: 0 coefficient.

図11Cは、符号化対象の着目タイルの水平または垂直方向の画素数(着目タイル幅)を“8”で除算した余りが“2”の場合に、ウェーブレット変換を3回行った場合を示している。 FIG. 11C shows a case where the wavelet transform is performed three times when the remainder of dividing the number of pixels (tile width of interest) in the horizontal or vertical direction of the tile of interest to be encoded by “8” is “2”. There is.

着目タイルの端の画素fを復号するためには、着目タイルの画素e、着目タイルの1Hの変換係数データ1Hf,および、画素gが必要となる。画素gを復号するには、着目タイル内の1Hの変換係数データ1Hf、隣接タイル内の1Lの変換係数データ1Lg、および、隣接タイル内の1Hの変換係数データ1Hfが必要となる。このうち、1Lの変換係数データ1Lgは記録されないので、生成する必要がある。変換係数データ1Lgは、着目タイル内の変換係数1Le,及び隣接タイル内の変換係数データ2Hg,1Liから算出できる。1Lの変換係数データ1Le,1Liは記録されないので算出する必要がある。変換係数データ1Leは、着目タイル内の変換係数データ2Hc、2Le、隣接タイル内の2Hg~算出できる。記録されない2Lの変換係数データである2Leは、着目タイル内の2Ha、3Le、および、隣接タイル内の3Hiから算出できる。また、変換係数データ1Liは、隣接タイル内の変換係数データ2Hg,2Li、2Hkから算出できる。記録されない2Lの変換係数データである2Liは、着目タイル内の変換係数データ2Le、および、隣接タイル内の3Hi、2Lmから算出できる。また、記録されない2Lの変換係数データである2Lmは、隣接タイル内の変換係数データ3Hi,3Lm,3Hqから算出できる。従って、結局のところ、図11Cに示すように、符号化対象の着目タイル内のデータに加えて、隣接タイルの変換係数データ1Hh、変換係数データ2Hg、変換係数データ2Hk、変換係数データ3Hi、変換係数データ3Hq、変換係数データ3Lmがあれば十分となる。この変換係数データがあれば、着目タイル内の隣接タイル側の端の画素まで復号できる。また、これらの変換係数データを算出するためには、隣接タイルの21画素を必要とする。そのため、“着目タイル幅/8”の余りが2となる場合は、着目タイルに加えて少なくとも隣接タイルの21画素を入力してウェーブレット変換を行う。そして、符号化する際には、隣接タイルの変換係数データについては、ウェーブレット変換で得られた全ての変換係数でなく、変換係数データ{1Hh、2Hg、2Hk、3Hi、3Hq、3Lm}を符号化する。 In order to decode the pixel f at the edge of the tile of interest, the pixel e of the tile of interest, the conversion coefficient data 1Hf of 1H of the tile of interest, and the pixel g are required. In order to decode the pixel g, 1H conversion coefficient data 1Hf in the tile of interest, 1L conversion coefficient data 1Lg in the adjacent tile, and 1H conversion coefficient data 1Hf in the adjacent tile are required. Of these, 1 L of conversion coefficient data 1 Lg is not recorded, so it is necessary to generate it. The conversion coefficient data 1Lg can be calculated from the conversion coefficient 1Le in the tile of interest and the conversion coefficient data 2Hg and 1Li in the adjacent tile. Since 1L of conversion coefficient data 1Le and 1Li are not recorded, they need to be calculated. The conversion coefficient data 1Le can be calculated from the conversion coefficient data 2Hc and 2Le in the tile of interest and 2Hg in the adjacent tile. The 2L conversion coefficient data that is not recorded, 2Le, can be calculated from 2Ha and 3Le in the tile of interest and 3Hi in the adjacent tile. Further, the conversion coefficient data 1Li can be calculated from the conversion coefficient data 2Hg, 2Li, 2Hk in the adjacent tile. The 2L conversion coefficient data that is not recorded, 2Li, can be calculated from the conversion coefficient data 2Le in the tile of interest and 3Hi and 2Lm in the adjacent tile. Further, 2Lm, which is 2L of conversion coefficient data that is not recorded, can be calculated from the conversion coefficient data 3Hi, 3Lm, 3Hq in the adjacent tile. Therefore, after all, as shown in FIG. 11C, in addition to the data in the tile of interest to be encoded, the conversion coefficient data 1Hh of the adjacent tile, the conversion coefficient data 2Hg, the conversion coefficient data 2Hk, the conversion coefficient data 3Hi, and the conversion Coefficient data 3Hq and conversion coefficient data 3Lm are sufficient. With this conversion coefficient data, it is possible to decode up to the pixel at the end on the adjacent tile side in the tile of interest. Further, in order to calculate these conversion coefficient data, 21 pixels of adjacent tiles are required. Therefore, when the remainder of "width of interest tile / 8" is 2, at least 21 pixels of adjacent tiles are input in addition to the tile of interest to perform wavelet transform. Then, when encoding, the conversion coefficient data {1Hh, 2Hg, 2Hk, 3Hi, 3Hq, 3Lm} is encoded instead of all the conversion coefficients obtained by the wavelet transform for the conversion coefficient data of the adjacent tiles. To do.

つまり、着目タイル内の端の画素を復元するために隣接タイルから生成された変換係数データのうちの利用する変換係数データは、サブバンド1H:1係数、サブバンド2H:2係数、サブバンド3H:2係数、サブバンド3L:1係数、の合計6係数となる。 That is, the conversion coefficient data used among the conversion coefficient data generated from the adjacent tiles for restoring the edge pixels in the tile of interest are subband 1H: 1 coefficient, subband 2H: 2 coefficient, and subband 3H. : 2 coefficients, subband 3L: 1 coefficient, total 6 coefficients.

図11Dは、符号化対象の着目タイルの水平または垂直方向の画素数(着目タイル幅)を“8”で除算した余りが“3”の場合に、ウェーブレット変換を3回行った場合を示している。 FIG. 11D shows a case where the wavelet transform is performed three times when the remainder of dividing the number of pixels (tile width of interest) in the horizontal or vertical direction of the tile of interest to be encoded by “8” is “3”. There is.

着目タイルの端の画素gを復号するためには、着目タイルの端部の1Hの変換係数データ1Hf,1Lの変換係数データ1Lg、および隣接タイル内の1Hの変換係数データ1Hhが必要となる。このうち、1Lの変換係数データ1Lgは記録されないので、他の変換係数データから算出する必要がある。変換係数データ1Lgは、着目タイル内の1Le、2Hg、及び、隣接タイル内の1Liから算出できる。1Lの変換係数データである1Le、1Liは記録されないので、他の変換係数データから算出する必要がある。変換係数データ1Leは、着目タイル内の変換係数データ2Hc、2Le、2Hgから算出できる。記録されない2Lの変換係数データである2Leは、着目タイル内の変換係数データ3Ha、3Le、及び、隣接タイル内の変換係数データ3Hiから算出できる。また、変換係数データ1Liは、着目タイル内の変換係数データ2Hg、及び、隣接タイル内の変換係数データ2Li,2Hkから算出できる。記録されない2Lの変換係数データである2Liは、着目タイル内の変換係数データ2Le及び。隣接タイル内の3Hi、2Lmから算出できる。記録されない2Lの変換係数データである2Lmは、隣接タイル内の変換係数データ3Hi,3Lm,3Hqから算出できる。したがって、結局のところ、図11Dに示すように、符号化対象の着目タイル内のデータに加えて、隣接タイルの変換係数データ1Hh、変換係数データ2Hk、変換係数データ3Hi、変換係数データ3Hq、変換係数データ3Lmがあれば十分となる。この変換係数データがあれば、着目タイル内の隣接タイル側の端の画素まで復号できる。また、これらの変換係数データを算出するためには、隣接タイルの20画素を必要とする。そのため、“着目タイル幅/8”の余りが3となる場合は、着目タイルに加えて少なくとも隣接タイルの20画素を入力してウェーブレット変換を行う。そして、符号化する際には、隣接タイルの変換係数データについては、ウェーブレット変換で得られた全ての変換係数でなく、着目タイルの端部の画素gおよび端部の変換係数データを復号するのに必要となる変換係数データ{1Hh、2Hk、3Hi、3Hq、3Lm}を符号化する。 In order to decode the pixel g at the end of the tile of interest, the conversion coefficient data 1Hf of 1H at the end of the tile of interest, the conversion coefficient data 1Lg of 1L, and the conversion coefficient data 1Hh of 1H in the adjacent tile are required. Of these, 1 L of conversion coefficient data 1 Lg is not recorded, so it is necessary to calculate from other conversion coefficient data. The conversion coefficient data 1Lg can be calculated from 1Le and 2Hg in the tile of interest and 1Li in the adjacent tile. Since 1Le and 1Li, which are 1L conversion coefficient data, are not recorded, it is necessary to calculate from other conversion coefficient data. The conversion coefficient data 1Le can be calculated from the conversion coefficient data 2Hc, 2Le, and 2Hg in the tile of interest. The 2L conversion coefficient data that is not recorded, 2Le, can be calculated from the conversion coefficient data 3Ha and 3Le in the tile of interest and the conversion coefficient data 3Hi in the adjacent tile. Further, the conversion coefficient data 1Li can be calculated from the conversion coefficient data 2Hg in the tile of interest and the conversion coefficient data 2Li, 2Hk in the adjacent tile. 2Li, which is the conversion coefficient data of 2L that is not recorded, is the conversion coefficient data 2Le and the conversion coefficient data in the tile of interest. It can be calculated from 3Hi and 2Lm in the adjacent tile. 2Lm, which is 2L of conversion coefficient data that is not recorded, can be calculated from the conversion coefficient data 3Hi, 3Lm, 3Hq in the adjacent tile. Therefore, after all, as shown in FIG. 11D, in addition to the data in the tile of interest to be encoded, the conversion coefficient data 1Hh of the adjacent tile, the conversion coefficient data 2Hk, the conversion coefficient data 3Hi, the conversion coefficient data 3Hq, and the conversion A coefficient data of 3 Lm is sufficient. With this conversion coefficient data, it is possible to decode up to the pixel at the end on the adjacent tile side in the tile of interest. Further, in order to calculate these conversion coefficient data, 20 pixels of adjacent tiles are required. Therefore, when the remainder of "width of interest tile / 8" is 3, at least 20 pixels of adjacent tiles are input in addition to the tile of interest to perform wavelet transform. Then, when encoding, the conversion coefficient data of the adjacent tiles is not all the conversion coefficients obtained by the wavelet transform, but the pixel g at the end of the tile of interest and the conversion coefficient data at the end are decoded. The conversion coefficient data {1Hh, 2Hk, 3Hi, 3Hq, 3Lm} required for the above is encoded.

つまり、着目タイル内の端の画素を復元するために隣接タイルから生成された変換係数データのうちの利用する変換係数データは、サブバンド1H:1係数、サブバンド2H:1係数、サブバンド3H:2係数、サブバンド3L:1係数、の合計5係数となる。 That is, the conversion coefficient data used among the conversion coefficient data generated from the adjacent tiles for restoring the edge pixels in the tile of interest are subband 1H: 1 coefficient, subband 2H: 1 coefficient, and subband 3H. : 2 coefficients, subband 3L: 1 coefficient, total 5 coefficients.

図11Eは、符号化対象の着目タイルの水平または垂直方向の画素数(着目タイル幅)を“8”で除算した余りが“4”の場合に、ウェーブレット変換を3回行った場合を示している。 FIG. 11E shows a case where the wavelet transform is performed three times when the remainder of dividing the number of pixels (tile width of interest) in the horizontal or vertical direction of the tile of interest to be encoded by “8” is “4”. There is.

着目タイルの端の画素hを復号するためには、着目タイル内の画素g、着目タイル内の変換係数データ1Hh、隣接タイル内の画素iが必要となる。画素iを復号するには、着目タイル内の変換係数データ1Hh、隣接タイル内の変換係数データ1Li,1Hjが必要となる。記録されない1Lの変換係数データである1Liは、着目タイル内の変換係数データ2Hg、隣接タイル内の変換係数データ2Li、2Hkから算出できる。記録されない2Lの変換係数データである2Liは、着目タイル内の変換係数データ2Le、及び、隣接タイル内の変換係数データ3Hi、2Lmから算出できる。変換係数データ2Leは、変換係数データ3Ha、3Le、3Hiから算出できる。記録されない2Lの変換係数データである2Lmは、隣接タイル内の変換係数データ3Hi,3Lm、3Hqから算出できる。したがって、結局のところ、図11Eに示すように、符号化対象の着目タイル内のデータに加えて、隣接タイルの変換係数データ1Hj、変換係数データ2Hk、変換係数データ3Hi、変換係数データ3Hq、変換係数データ3Lmがあれば十分となる。この変換係数データがあれば、着目タイル内の隣接タイル側の端の画素まで復号できる。また、これらの変換係数データを算出するためには、隣接タイルの19画素を必要とする。そのため、“着目タイル幅/8”の余りが4となる場合は、着目タイルに加えて少なくとも隣接タイルの19画素を入力してウェーブレット変換を行う。そして、符号化する際には、隣接タイルの変換係数データについては、ウェーブレット変換で得られた全ての変換係数でなく、着目タイルの端部の画素hおよび端部の変換係数データを復号するのに必要となる変換係数データ{1Hj、2Hk、3Hi、3Hq、3Lm}を符号化する。 In order to decode the pixel h at the edge of the tile of interest, the pixel g in the tile of interest, the conversion coefficient data 1Hh in the tile of interest, and the pixel i in the adjacent tile are required. In order to decode the pixel i, the conversion coefficient data 1Hh in the tile of interest and the conversion coefficient data 1Li, 1Hj in the adjacent tile are required. The 1L conversion coefficient data that is not recorded, 1Li, can be calculated from the conversion coefficient data 2Hg in the tile of interest and the conversion coefficient data 2Li, 2Hk in the adjacent tile. The 2L conversion coefficient data that is not recorded, 2Li, can be calculated from the conversion coefficient data 2Le in the tile of interest and the conversion coefficient data 3Hi and 2Lm in the adjacent tile. The conversion coefficient data 2Le can be calculated from the conversion coefficient data 3Ha, 3Le, and 3Hi. The 2L conversion coefficient data that is not recorded, 2Lm, can be calculated from the conversion coefficient data 3Hi, 3Lm, and 3Hq in the adjacent tile. Therefore, after all, as shown in FIG. 11E, in addition to the data in the tile of interest to be encoded, the conversion coefficient data 1Hj of the adjacent tile, the conversion coefficient data 2Hk, the conversion coefficient data 3Hi, the conversion coefficient data 3Hq, and the conversion A coefficient data of 3 Lm is sufficient. With this conversion coefficient data, it is possible to decode up to the pixel at the end on the adjacent tile side in the tile of interest. Further, in order to calculate these conversion coefficient data, 19 pixels of adjacent tiles are required. Therefore, when the remainder of "width of interest tile / 8" is 4, at least 19 pixels of adjacent tiles are input in addition to the tile of interest to perform wavelet transform. Then, when encoding, the conversion coefficient data of the adjacent tiles is not all the conversion coefficients obtained by the wavelet transform, but the pixel h at the end of the tile of interest and the conversion coefficient data at the end are decoded. The conversion coefficient data {1Hj, 2Hk, 3Hi, 3Hq, 3Lm} required for the above is encoded.

つまり、着目タイル内の端の画素を復元するために隣接タイルから生成された変換係数データのうちの利用する変換係数データは、サブバンド1H:1係数、サブバンド2H:1係数、サブバンド3H:2係数、サブバンド3L:1係数、の合計5係数となる。 That is, the conversion coefficient data used among the conversion coefficient data generated from the adjacent tiles for restoring the edge pixels in the tile of interest are subband 1H: 1 coefficient, subband 2H: 1 coefficient, and subband 3H. : 2 coefficients, subband 3L: 1 coefficient, total 5 coefficients.

図11Fは、符号化対象の着目タイルの水平または垂直方向の画素数(着目タイル幅)を“8”で除算した余りが“5”の場合に、ウェーブレット変換を3回行った場合を示している。 FIG. 11F shows a case where the wavelet transform is performed three times when the remainder of dividing the number of pixels (tile width of interest) in the horizontal or vertical direction of the tile of interest to be encoded by “8” is “5”. There is.

着目タイルの端の画素iを復号するためには、着目タイルの変換係数データ1Hh,1Li、隣接タイルの変換係数データ1Hjが必要となる。変換係数データ1Liは、着目タイルの変換係数データ2Hg、2Li、隣接タイルの変換係数データ2Hkから算出できる。変換係数データ2Liは、着目タイルの変換係数データ2Le、3Hi、及び、隣接タイルの変換係数データ2Lmから算出できる。変換係数データ2Lmは、着目タイルの変換係数データ3Hiおよび隣接タイルの変換係数データ3Lm,3Hqが必要となる。したがって、結局のところ、図11Fに示すように、符号化対象の着目タイル内のデータに加えて、隣接タイルの変換係数データ1Hj、変換係数データ2Hk、変換係数データ3Hq、変換係数データ3Lmがあれば十分となる。この変換係数データがあれば、着目タイル内の隣接タイル側の端の画素まで復号できる。また、これらの変換係数データを算出するためには、隣接タイルの18画素を必要とする。そのため、“着目タイル幅/8”の余りが5となる場合は、着目タイルに加えて少なくとも隣接タイルの18画素を入力してウェーブレット変換を行う。そして、符号化する際には、隣接タイルの変換係数データについては、ウェーブレット変換で得られた全ての変換係数でなく、着目タイルの端部の画素iおよび端部の変換係数データを復号するのに必要となる変換係数データ{1Hj、2Hk、3Hq、3Lm}を符号化する。 In order to decode the pixel i at the edge of the tile of interest, the conversion coefficient data 1Hh and 1Li of the tile of interest and the conversion coefficient data 1Hj of the adjacent tile are required. The conversion coefficient data 1Li can be calculated from the conversion coefficient data 2Hg and 2Li of the tile of interest and the conversion coefficient data 2Hk of the adjacent tile. The conversion coefficient data 2Li can be calculated from the conversion coefficient data 2Le and 3Hi of the tile of interest and the conversion coefficient data 2Lm of the adjacent tile. The conversion coefficient data 2Lm requires the conversion coefficient data 3Hi of the tile of interest and the conversion coefficient data 3Lm and 3Hq of the adjacent tiles. Therefore, after all, as shown in FIG. 11F, in addition to the data in the tile of interest to be encoded, there are conversion coefficient data 1Hj, conversion coefficient data 2Hk, conversion coefficient data 3Hq, and conversion coefficient data 3Lm of the adjacent tile. Is enough. With this conversion coefficient data, it is possible to decode up to the pixel at the end on the adjacent tile side in the tile of interest. Further, in order to calculate these conversion coefficient data, 18 pixels of adjacent tiles are required. Therefore, when the remainder of "width of interest tile / 8" is 5, at least 18 pixels of adjacent tiles are input in addition to the tile of interest to perform wavelet transform. Then, when encoding, the conversion coefficient data of the adjacent tiles is not all the conversion coefficients obtained by the wavelet transform, but the pixel i at the end of the tile of interest and the conversion coefficient data at the end are decoded. The conversion coefficient data {1Hj, 2Hk, 3Hq, 3Lm} required for the above is encoded.

つまり、着目タイル内の端の画素を復元するために隣接タイルから生成された変換係数データのうちの利用する変換係数データは、サブバンド1H:1係数、サブバンド2H:1係数、サブバンド3H:1係数、サブバンド3L:1係数、の1係数、の合計4係数となる
図11Gは、符号化対象の着目タイルの水平または垂直方向の画素数(着目タイル幅)を“8”で除算した余りが“6”の場合に、ウェーブレット変換を3回行った場合を示している。
That is, the conversion coefficient data used among the conversion coefficient data generated from the adjacent tiles for restoring the edge pixels in the tile of interest are subband 1H: 1 coefficient, subband 2H: 1 coefficient, and subband 3H. In FIG. 11G, the number of pixels in the horizontal or vertical direction of the tile of interest to be encoded (the width of the tile of interest) is divided by "8", which is a total of four coefficients, one coefficient of one coefficient and one coefficient of subband 3L: one coefficient. It shows the case where the wavelet transform is performed three times when the remainder is "6".

着目タイルの端の画素jを復号するためには、着目タイル内の画素i、変換係数データ1Hj、隣接タイルの画素kが必要となる。隣接タイルの画素kを復号するためには、着目タイル内の変換係数データ1Hj、隣接タイル内の変換係数データ1Lk、1Hlが必要となる。変換係数データ1Lkは、着目タイル内の変換係数データ1Li、及び、隣接タイル内の変換係数データ2Hk,1Lmから算出できる。変換係数データ1Lmは、隣接タイル内の変換係数データ2Hk,2Lm、2Hoから算出できる。変換係数データ2Lmは、着目タイル内の変換係数データ3Hi、及び、隣接タイル内の変換係数データ3Lm,3Hqから算出できる。なお、着目タイル内の記録されない変換係数データ1Li、2Liについては、着目タイル内の記録される変換係数と、隣接タイル内の変換係数2Hk、2Lmにより算出できる。従って、結局のところ、図11Gに示すように、符号化対象の着目タイル内のデータに加えて、隣接タイルの変換係数データ1Hl、変換係数データ2Hk、変換係数データ2Ho、変換係数データ3Hq、変換係数データ3Lmがあれば十分となる。この変換係数データがあれば、着目タイル内の隣接タイル側の端の画素まで復号できる。また、これらの変換係数データを算出するためには、隣接タイルの17画素を必要とする。そのため、“着目タイル幅/8”の余りが6となる場合は、着目タイルに加えて少なくとも隣接タイルの17画素を入力してウェーブレット変換を行う。そして、符号化する際には、隣接タイルの変換係数データについては、ウェーブレット変換で得られた全ての変換係数でなく、着目タイルの端部の画素jおよび端部の変換係数データを復号するのに必要となる変換係数データ{1Hl、2Hk、2Ho、3Hq、3Lm}を符号化する。 In order to decode the pixel j at the end of the tile of interest, the pixel i in the tile of interest, the conversion coefficient data 1Hj, and the pixel k of the adjacent tile are required. In order to decode the pixel k of the adjacent tile, the conversion coefficient data 1Hj in the tile of interest and the conversion coefficient data 1Lk and 1Hl in the adjacent tile are required. The conversion coefficient data 1Lk can be calculated from the conversion coefficient data 1Li in the tile of interest and the conversion coefficient data 2Hk, 1Lm in the adjacent tile. The conversion coefficient data 1Lm can be calculated from the conversion coefficient data 2Hk, 2Lm, 2Ho in the adjacent tile. The conversion coefficient data 2Lm can be calculated from the conversion coefficient data 3Hi in the tile of interest and the conversion coefficient data 3Lm, 3Hq in the adjacent tile. The conversion coefficient data 1Li and 2Li that are not recorded in the tile of interest can be calculated from the conversion coefficient recorded in the tile of interest and the conversion coefficients 2Hk and 2Lm in the adjacent tile. Therefore, after all, as shown in FIG. 11G, in addition to the data in the tile of interest to be encoded, the conversion coefficient data 1Hl, the conversion coefficient data 2Hk, the conversion coefficient data 2Ho, the conversion coefficient data 3Hq, and the conversion of the adjacent tiles are converted. A coefficient data of 3 Lm is sufficient. With this conversion coefficient data, it is possible to decode up to the pixel at the end on the adjacent tile side in the tile of interest. Further, in order to calculate these conversion coefficient data, 17 pixels of adjacent tiles are required. Therefore, when the remainder of "width of interest tile / 8" is 6, at least 17 pixels of adjacent tiles are input in addition to the tile of interest to perform wavelet transform. Then, when encoding, the conversion coefficient data of the adjacent tiles is not all the conversion coefficients obtained by the wavelet transform, but the pixel j at the end of the tile of interest and the conversion coefficient data at the end are decoded. The conversion coefficient data {1Hl, 2Hk, 2Ho, 3Hq, 3Lm} required for the above is encoded.

つまり、着目タイル内の端の画素を復元するために隣接タイルから生成された変換係数データのうちの利用する変換係数データは、サブバンド1H:1係数、サブバンド2H:2係数、サブバンド3H:1係数、サブバンド3L:1係数、の合計5係数となる
図11Hは、符号化対象の着目タイルの水平または垂直方向の画素数(着目タイル幅)を“8”で除算した余りが“7”の場合に、ウェーブレット変換を3回行った場合を示している。
That is, the conversion coefficient data used among the conversion coefficient data generated from the adjacent tiles for restoring the edge pixels in the tile of interest are subband 1H: 1 coefficient, subband 2H: 2 coefficient, and subband 3H. In FIG. 11H, which is a total of 5 coefficients of 1 coefficient and 3L of subbands: 1 coefficient, the remainder obtained by dividing the number of pixels in the horizontal or vertical direction (width of the tile of interest) of the tile to be encoded by “8” is “ In the case of 7 ”, the case where the wavelet transform is performed three times is shown.

着目タイルの端の画素kを復号するためには、着目タイル内の変換係数データ1Hj,1Lk、及び、隣接タイル内の変換係数データ1Hlが必要となる。変換係数データ1Lkは、着目タイル内の変換係数データ1Li,2Hk、及び、隣接タイル内の変換係数データ1Lmから算出できる。変換係数データ1Lmは、着目タイル内の変換係数データ2Hk、および、隣接タイル内の変換係数データ2Lm、2Hoから算出できる。変換係数データ2Lmは、着目タイル内の変換係数データ3Hi、及び、隣接タイル内の変換係数データ3Lm、3Hqから算出できる。また、詳しい説明は省略するが、着目タイル内の記録されない1L、2Lの端部の変換係数データについても、着目タイル内の記録される変換係数データと、隣接タイル内の変換係数データ1Lm、2Lmとから算出できる。従って、結局のところ、図11Hに示すように、符号化対象の着目タイル内のデータに加えて、隣接タイルの変換係数データ1Hl、変換係数データ2Ho、変換係数データ3Hi、変換係数データ3Hq、変換係数データ3Lmがあれば十分となる。この変換係数データがあれば、着目タイル内の隣接タイル側の端の画素まで復号できる。また、これらの変換係数データを算出するためには、隣接タイルの16画素を必要とする。そのため、“着目タイル幅/8”の余りが7となる場合は、着目タイルに加えて少なくとも隣接タイルの16画素を入力してウェーブレット変換を行う。そして、符号化する際には、隣接タイルの変換係数データについては、ウェーブレット変換で得られた全ての変換係数でなく、着目タイルの端部の画素kおよび端部の変換係数データを復号するのに必要となる変換係数データ{1Hl、2Ho、3Hq、3Lm}を符号化する。 In order to decode the pixel k at the edge of the tile of interest, the conversion coefficient data 1Hj, 1Lk in the tile of interest and the conversion coefficient data 1Hl in the adjacent tile are required. The conversion coefficient data 1Lk can be calculated from the conversion coefficient data 1Li, 2Hk in the tile of interest and the conversion coefficient data 1Lm in the adjacent tile. The conversion coefficient data 1Lm can be calculated from the conversion coefficient data 2Hk in the tile of interest and the conversion coefficient data 2Lm, 2Ho in the adjacent tile. The conversion coefficient data 2Lm can be calculated from the conversion coefficient data 3Hi in the tile of interest and the conversion coefficient data 3Lm and 3Hq in the adjacent tile. Further, although detailed description is omitted, regarding the conversion coefficient data of the ends of 1L and 2L that are not recorded in the tile of interest, the conversion coefficient data recorded in the tile of interest and the conversion coefficient data 1Lm and 2Lm in the adjacent tile are also obtained. It can be calculated from. Therefore, after all, as shown in FIG. 11H, in addition to the data in the tile of interest to be encoded, the conversion coefficient data 1Hl of the adjacent tile, the conversion coefficient data 2Ho, the conversion coefficient data 3Hi, the conversion coefficient data 3Hq, and the conversion A coefficient data of 3 Lm is sufficient. With this conversion coefficient data, it is possible to decode up to the pixel at the end on the adjacent tile side in the tile of interest. Further, in order to calculate these conversion coefficient data, 16 pixels of adjacent tiles are required. Therefore, when the remainder of "width of interest tile / 8" is 7, at least 16 pixels of adjacent tiles are input in addition to the tile of interest to perform wavelet transform. Then, when encoding, the conversion coefficient data of the adjacent tiles is not all the conversion coefficients obtained by the wavelet transform, but the pixel k at the end of the tile of interest and the conversion coefficient data at the end are decoded. The conversion coefficient data {1Hl, 2Ho, 3Hq, 3Lm} required for the above is encoded.

つまり、着目タイル内の端の画素を復元するために隣接タイルから生成された変換係数データのうちの利用する変換係数データは、サブバンド1H:1係数、サブバンド2H:1係数、サブバンド3H:1係数、サブバンド3L:1係数、の合計4係数となる
このように、隣接タイルから生成された変換係数データのうち、着目タイル内の端の画素を復元するために必要となる変換係数データを求めていくと、図10(a),(b)の図のようになる。なお、隣接タイル内の変換係数データのうち、着目タイル側から図10に示す数分の変換係数データが、着目タイル内の端の画素を復元するために必要となることを示している。
That is, the conversion coefficient data used among the conversion coefficient data generated from the adjacent tiles for restoring the edge pixels in the tile of interest are subband 1H: 1 coefficient, subband 2H: 1 coefficient, and subband 3H. A total of 4 coefficients, 1 coefficient and 3L of subbands: 1 coefficient. Thus, of the conversion coefficient data generated from the adjacent tiles, the conversion coefficient required to restore the edge pixels in the tile of interest. When the data is obtained, it becomes as shown in FIGS. 10 (a) and 10 (b). It is shown that among the conversion coefficient data in the adjacent tiles, the conversion coefficient data for a few minutes shown in FIG. 10 from the tile of interest is required to restore the pixels at the edges in the tile of interest.

高周波成分のサブバンドの変換係数データについては、必ず1つ以上必要となり、変換係数データ1Hについては、ウェーブレット変換の回数にかかわらず、必ず1となる。1H以外の変換係数データの数は、着目タイル幅によって異なる。また、ウェーブレット変換回数がN回の場合に符号化される低周波成分のサブバンドの変換係数データ、つまり、変換係数データ(NL)については、着目タイルの端の画素を復元するのに必要となる変換係数データ(NL)の数は、0または1となり、着目タイル幅によって決まる。 One or more conversion coefficient data of the subband of the high frequency component is always required, and the conversion coefficient data 1H is always 1 regardless of the number of wavelet transforms. The number of conversion coefficient data other than 1H differs depending on the tile width of interest. Further, the conversion coefficient data of the subband of the low frequency component encoded when the wavelet conversion number is N times, that is, the conversion coefficient data (NL) is necessary to restore the pixel at the end of the tile of interest. The number of conversion coefficient data (NL) is 0 or 1, and is determined by the tile width of interest.

後述のフローのように、図10(a),(b)に示す数値で、オーバーラップ画素数でウェーブレット変換を行い、さらに、隣接タイル内の着目タイル側から、着目タイルの復号に必要な変換係数データの数分の変換係数データのみを符号化することにより、処理の高速化および符号量の削減を行うことができる。 As shown in the flow described later, the wavelet transform is performed by the number of overlapping pixels with the numerical values shown in FIGS. 10 (a) and 10 (b), and further, the transform required for decoding the attention tile from the attention tile side in the adjacent tile. By encoding only the conversion coefficient data for the number of coefficient data, the processing speed can be increased and the code amount can be reduced.

また、上述の説明で、隣接タイル内の変換係数データとは、隣接タイルの画素を参照して得られた変換係数データであって、着目タイルの画素と隣接タイルの画素との間をタイル境界として、このタイル境界により変換係数を着目タイル側と隣接タイル側とに分けた場合に、隣接タイル側に含まれる変換係数データのことを示している。 Further, in the above description, the conversion coefficient data in the adjacent tile is the conversion coefficient data obtained by referring to the pixels of the adjacent tile, and the tile boundary between the pixel of the tile of interest and the pixel of the adjacent tile. When the conversion coefficient is divided into the tile side of interest and the adjacent tile side by this tile boundary, the conversion coefficient data included in the adjacent tile side is shown.

上記は可逆5/3タップのフィルタを用いた例であるが、例えば非可逆9/7タップフィルタを用いてウェーブレット変換した場合には、特許文献2との差はさらに大きなものとすることができる。 The above is an example using a reversible 5/3 tap filter, but for example, when wavelet transform is performed using a lossy 9/7 tap filter, the difference from Patent Document 2 can be further increased. ..

ここで、上記の本第1の実施形態の画像符号化部100の処理を図5のフローチャートに従って説明する。 Here, the processing of the image coding unit 100 of the first embodiment described above will be described with reference to the flowchart of FIG.

設定部106は、ステップS1、S2にて、1フレーム画像の分割タイル数M、ウェーブレット変換回数N(or分解レベル数N)を設定する。そして、設定部106は、ステップS3にて、各タイルをウェーブレット変換する際のタイル周辺画素数を表すオーバーラップ画素数を決定する。設定部106は図10(a),(b)のようなテーブルを保持しており、オーバーラップ画素数は、ステップS2で設定されたウェーブレット変換回数N、および、タイル幅に応じて、図10(a),(b)Bのように決定され、隣接タイルが上または左の場合と、下または右の場合とでそれぞれオーバーラップ画素数が決定される。また、符号化対象の着目タイル幅によって隣接タイルが下または右の場合のオーバーラップ画素数は異なるため、図5のように全タイルでまとめてオーバーラップ画素数を決定せずに、着目タイル毎にオーバーラップ画素数を決定してもよい。また、タイル幅が全て同じ場合は一括で決定し、タイル毎にタイル幅が異なる場合は着目タイル毎に決定するように、処理を切り換えるようにしてもよい。 In steps S1 and S2, the setting unit 106 sets the number of divided tiles M and the number of wavelet transforms N (or the number of decomposition levels N) of the one-frame image. Then, in step S3, the setting unit 106 determines the number of overlapping pixels representing the number of pixels around the tile when wavelet transforming each tile. The setting unit 106 holds a table as shown in FIGS. 10A and 10B, and the number of overlapping pixels is set in FIG. 10 according to the wavelet transform number N set in step S2 and the tile width. The number of overlapping pixels is determined as in (a) and (b) B, and the number of overlapping pixels is determined depending on whether the adjacent tile is on the top or left and on the bottom or right. Further, since the number of overlapping pixels when the adjacent tile is below or to the right differs depending on the width of the tile of interest to be encoded, the number of overlapping pixels is not determined collectively for all tiles as shown in FIG. The number of overlapping pixels may be determined. Further, if all the tile widths are the same, the processing may be switched collectively so that if the tile widths are different for each tile, the tiles of interest are determined.

この後、ステップS4にて、入力データ制御部102は、ステップS1、S3で決定した情報に基づき、フレームメモリ101から、着目タイル画像データとそのタイル周辺画素データ(隣接タイルの着目タイル側の端の画素データ)を読み出し、ウェーブレット変換部103に供給する。ウェーブレット変換部103は、ステップS5にて、設定された回数だけウェーブレット変換を実行し、変換係数データを生成する。そして、ウェーブレット変換部103は、ステップS6にて、着目タイル画像データから得られた、符号化対象のサブバンドの全変換係数データを量子化部104に供給する。また、ウェーブレット変換部103は、タイル周辺画素データから得られた変換係数データについて、タイル境界側の端部から、図10A,10Bに示す着目タイルの端の画素の復号に必要となる数の変換係数データを、分解量子化部104に供給する。量子化部104は、これを受けて量子化処理を実行する。図10A,10Bに示されているように、着目タイルのタイル幅や、ウェーブレット変換の回数によって、量子化部104に供給される変換係数データの数は異なっており、サブバンド毎に、量子化部104に供給される変換係数データの数が定義されている。 After that, in step S4, the input data control unit 102 receives the attention tile image data and the tile peripheral pixel data (the end of the adjacent tile on the attention tile side) from the frame memory 101 based on the information determined in steps S1 and S3. The pixel data) is read out and supplied to the wavelet transform unit 103. In step S5, the wavelet transform unit 103 executes the wavelet transform a set number of times to generate conversion coefficient data. Then, in step S6, the wavelet transform unit 103 supplies the quantization coefficient data of all the subbands to be encoded, which is obtained from the tile image data of interest, to the quantization unit 104. Further, the wavelet transform unit 103 converts the conversion coefficient data obtained from the pixel data around the tile from the end on the tile boundary side to the number required for decoding the pixels at the end of the tile of interest shown in FIGS. 10A and 10B. The coefficient data is supplied to the decomposition quantization unit 104. The quantization unit 104 receives this and executes the quantization process. As shown in FIGS. 10A and 10B, the number of conversion coefficient data supplied to the quantization unit 104 differs depending on the tile width of the tile of interest and the number of wavelet transforms, and quantization is performed for each subband. The number of conversion coefficient data supplied to unit 104 is defined.

この後、ステップS7にて、エントロピー符号化部105は、量子化後の変換係数データをエントロピー符号化し、符号化データを生成する。そして、ステップS8にて、全タイルの符号化を終えるまで、データ入力制御部102ウェーブレット変換部103、量子化部104、エントロピー符号化部105による処理が繰り返される。 After that, in step S7, the entropy coding unit 105 entropy-encodes the quantized conversion coefficient data to generate the coded data. Then, in step S8, the processing by the data input control unit 102 wavelet transform unit 103, the quantization unit 104, and the entropy coding unit 105 is repeated until the coding of all the tiles is completed.

なお、動画像を符号化する場合には、ステップS4以降の処理を2つ目のフレーム以降で繰り返せばよい。 When encoding a moving image, the processes after step S4 may be repeated after the second frame.

本実施形態では、図10(a),(b)のような関係を用いて、着目タイルの符号化を行った。 In this embodiment, the tiles of interest are coded using the relationships shown in FIGS. 10 (a) and 10 (b).

つまり、隣接タイルの位置が下または右の場合、着目タイル幅とウェーブレット変換の回数に応じて、オーバーラップ画素数と、隣接タイルの変換係数データうち符号化する変換係数データを決定した。 That is, when the position of the adjacent tile is lower or right, the number of overlapping pixels and the conversion coefficient data to be encoded among the conversion coefficient data of the adjacent tile are determined according to the tile width of interest and the number of wavelet transforms.

しかし、以下のような変形例で着目タイル幅にかかわらず、オーバーラップ画素数と、隣接タイルの変換係数データうち符号化する変換係数データを決定するようにしてもよい。 However, in the following modification, the number of overlapping pixels and the conversion coefficient data to be encoded among the conversion coefficient data of the adjacent tiles may be determined regardless of the tile width of interest.

図10(a),(b)によると、ウェーブレット回数が1回の場合は、符号化するサブバンド(1H,1L)のうち、着目タイル内の端の画素を復元するために必要となる変換係数データの数は0〜1で、オーバーラップ画素数は2〜3となっている。そのため、ウェーブレット回数が1回の場合は、オーバーラップ画素数:3、符号化する隣接タイルの変換係数データの数:1とする。 According to FIGS. 10 (a) and 10 (b), when the number of wavelets is 1, the transform required to restore the pixel at the end of the subband (1H, 1L) to be encoded in the tile of interest. The number of coefficient data is 0 to 1, and the number of overlapping pixels is 2 to 3. Therefore, when the number of wavelets is one, the number of overlapping pixels is set to 3, and the number of conversion coefficient data of adjacent tiles to be encoded is set to 1.

ウェーブレット回数が2回の場合は、符号化するサブバンド(1H、2H、2L)のうち、着目タイル内の端の画素を復元するために必要となる変換係数データの数は、1Hは1、2Hは1〜2、2Lは0〜1で、オーバーラップ画素数は6〜9となっている。そのため、ウェーブレット回数が2回の場合は、オーバーラップ画素数:9、符号化する隣接タイルの変換係数データの数は、1H:1、2H:2、2L:1とする。または、符号化する隣接タイルの変換係数データの数については、符号化する全サブバンド(1H、2H、2L)について2としてもよい。 When the number of wavelets is 2, the number of conversion coefficient data required to restore the end pixels in the tile of interest in the coded subbands (1H, 2H, 2L) is 1 for 1H. 2H is 1 to 2, 2L is 0 to 1, and the number of overlapping pixels is 6 to 9. Therefore, when the number of wavelets is 2, the number of overlapping pixels is 9, and the number of conversion coefficient data of adjacent tiles to be encoded is 1H: 1, 2H: 2, 2L: 1. Alternatively, the number of conversion coefficient data of adjacent tiles to be encoded may be 2 for all the subbands (1H, 2H, 2L) to be encoded.

ウェーブレット回数が3回の場合は、符号化するサブバンド(1H、2H、3H、3L)のうち、着目タイル内の端の画素を復元するために必要となる変換係数データの数は、1Hは1、2Hは1〜2、3Hは1〜2、3Lは0〜1で、オーバーラップ画素数は14〜21となっている。そのため、ウェーブレット回数が3回の場合は、オーバーラップ画素数:21、符号化する隣接タイルの変換係数データの数は、1H:1、2H:2、3H:2、3L:1とする。または、符号化する隣接タイルの変換係数データの数については、符号化する全サブバンド(1H、2H、3H、3L)について2としてもよい。 When the number of wavelets is 3, the number of conversion coefficient data required to restore the pixel at the end in the tile of interest in the coded subbands (1H, 2H, 3H, 3L) is 1H. 1, 2H is 1 to 2, 3H is 1 to 2, 3L is 0 to 1, and the number of overlapping pixels is 14 to 21. Therefore, when the number of wavelets is 3, the number of overlapping pixels is 21, and the number of conversion coefficient data of adjacent tiles to be encoded is 1H: 1, 2H: 2, 3H: 2, 3L: 1. Alternatively, the number of conversion coefficient data of adjacent tiles to be encoded may be 2 for all the subbands (1H, 2H, 3H, 3L) to be encoded.

本変形例では、第1の実施形態の図10(a),(b)よりも、符号化量は増加してしまうが、ウェーブレット変換により得られた隣接タイルの変換係数データであっても、符号化しない係数データがある。そのため、ウェーブレット変換により得られた隣接タイルの全ての変換係数データを符号化するよりも、データ量を削減することができる。 In this modification, the amount of coding is larger than that in FIGS. 10A and 10B of the first embodiment, but even if the conversion coefficient data of the adjacent tiles obtained by the wavelet transform is obtained, There is unencoded coefficient data. Therefore, the amount of data can be reduced as compared with encoding all the conversion coefficient data of the adjacent tiles obtained by the wavelet transform.

次に、第1の実施形態を用いて得られた符号化データの復号について図6を用いながら説明する。図6は、第1の実施形態における復号部600のブロック構成図である。この復号部600は、撮像装置内に設けられることになる。 Next, the decoding of the coded data obtained by using the first embodiment will be described with reference to FIG. FIG. 6 is a block configuration diagram of the decoding unit 600 according to the first embodiment. The decoding unit 600 will be provided in the image pickup apparatus.

復号部600は、エントロピー復号部601、逆量子化部602、逆ウェーブレット変換部603を有する。 The decoding unit 600 includes an entropy decoding unit 601, an inverse quantization unit 602, and an inverse wavelet transform unit 603.

エントロピー復号部601は、EBCOT(Embedded Block Coding with Optimized Truncation)などでエントロピー符号化されたデータをタイル単位に入力し、復号する。そして、エントロピー復号部601は復号して得られた、量子化後の変換係数データ、量子化パラメータを逆量子化部602に供給する。 The entropy decoding unit 601 inputs and decodes entropy-encoded data in tile units by EBCOT (Embedded Block Coding with Optimized Truncation) or the like. Then, the entropy decoding unit 601 supplies the quantized conversion coefficient data and the quantization parameter obtained by decoding to the inverse quantization unit 602.

逆量子化部602は、エントロピー復号部601から送られた変換係数データを、復号して得られた量子化パラメータを乗算して、量子化前の変換係数データを算出する。そして、逆量子化部602は、算出した変換係数データを逆ウェーブレット変換部603に供給する。 The inverse quantization unit 602 calculates the conversion coefficient data before quantization by multiplying the conversion coefficient data sent from the entropy decoding unit 601 by the quantization parameter obtained by decoding. Then, the inverse quantization unit 602 supplies the calculated conversion coefficient data to the inverse wavelet conversion unit 603.

逆ウェーブレット変換部603は、逆量子化部602から送られた変換係数データを逆ウェーブレット変換を実行し、タイル画像データを復元する。 The inverse wavelet transform unit 603 executes the inverse wavelet transform on the conversion coefficient data sent from the inverse quantize unit 602, and restores the tile image data.

ここで、前述の可逆5/3タップフィルタを用いてウェーブレット変換をリフティング構造を用いて符号化した場合の復号部600の復号処理を図7を用いて説明する。 Here, the decoding process of the decoding unit 600 when the wavelet transform is encoded by using the lifting structure using the above-mentioned reversible 5/3 tap filter will be described with reference to FIG. 7.

図7は、図3を用いて説明したウェーブレット変換で生成した係数をリフティング構造を用いて逆ウェーブレット変換する様を示す図である。図7のd’、e”、f’、g”は、図3のd’、e”、f’、g”に対応する。つまり、d’,f’は分解レベル1の高周波の変換係数データ(1H)であり、e”、g”は分解レベル1の低周波の変換係数データ(1L)を示している。このうち、変換係数データd’は、隣接タイル画像に属するものである。係数データd’、e”、f’から、着目タイルの端の画素eを生成することができる。 FIG. 7 is a diagram showing how the coefficients generated by the wavelet transform described with reference to FIG. 3 are subjected to the inverse wavelet transform using the lifting structure. The d', e ", f', g" in FIG. 7 correspond to the d', e ", f', g" in FIG. That is, d'and f'are high frequency conversion coefficient data (1H) of decomposition level 1, and e "and g" are low frequency conversion coefficient data (1L) of decomposition level 1. Of these, the conversion coefficient data d'belongs to the adjacent tile image. From the coefficient data d', e ", f', the pixel e at the end of the tile of interest can be generated.

このように、第1の実施形態では、タイル境界の画素データeを生成する際に、図7のように予め符号化されている復号タイル対象外の隣接タイルに属するウェーブレット係数d’を用いて復号する。このため、隣接するタイル間の連続性が保たれタイル境界での画質劣化の発生を防止することが可能になる。 As described above, in the first embodiment, when the pixel data e of the tile boundary is generated, the wavelet coefficient d'belonging to the adjacent tiles that are not subject to the decoding tile, which is pre-coded as shown in FIG. Decrypt. Therefore, the continuity between adjacent tiles is maintained, and it is possible to prevent the occurrence of image quality deterioration at the tile boundary.

[第2の実施形態]
図8は、第2の実施形態における画像符号化部800のブロック構成図である。本第2の実施形態における画像符号化部800は、第1の実施形態における図1の設定部106に変えて設定部801を設けた点、並びに、符号量調整部802を有する点が異なる。また、データ入力制御部102及びウェーブレット変換部103の動作が図1とも異なる。なお、第2の実施形態における設定部801は、図1の設定部106の機能に加えて、不図示の操作部からの指示に従った圧縮率を入力し、それに従い、データ入力制御部102、符号量調整部802を制御する。図9は、本第2の実施形態における処理手順を示すフローチャートである。以下、図8の各構成要素の処理を、図9のフローチャートに従って説明する。
[Second Embodiment]
FIG. 8 is a block configuration diagram of the image coding unit 800 according to the second embodiment. The image coding unit 800 in the second embodiment is different in that the setting unit 801 is provided instead of the setting unit 106 in FIG. 1 in the first embodiment, and the code amount adjusting unit 802 is provided. Further, the operations of the data input control unit 102 and the wavelet transform unit 103 are different from those in FIG. In addition to the function of the setting unit 106 in FIG. 1, the setting unit 801 in the second embodiment inputs a compression rate according to an instruction from an operation unit (not shown), and the data input control unit 102 accordingly. , Controls the code amount adjusting unit 802. FIG. 9 is a flowchart showing a processing procedure according to the second embodiment. Hereinafter, the processing of each component of FIG. 8 will be described with reference to the flowchart of FIG.

設定部801は、入力した圧縮率が予め設定された閾値より小さい場合、タイル境界のウェーブレット変換をミラー処理で実施するようデータ入力制御部102に指示する(S1001、S1002)。一方、圧縮率が閾値以上の場合には、タイル境界のウェーブレット変換を隣接タイルの画素までオーバーラップして実施するようデータ入力制御部102に指示する(S1001、S1003)。また、いずれの方式で符号化されたのか示すフラグ(圧縮率と閾値との大小判定結果を示すフラグ)を符号化ストリームのヘッダに格納する。圧縮率によって処理を切り換えるのは以下の理由による。 When the input compression ratio is smaller than the preset threshold value, the setting unit 801 instructs the data input control unit 102 to perform the wavelet transform of the tile boundary by the mirror processing (S1001, S1002). On the other hand, when the compression rate is equal to or higher than the threshold value, the data input control unit 102 is instructed to perform the wavelet transform of the tile boundary so as to overlap the pixels of the adjacent tiles (S1001, S1003). In addition, a flag indicating which method was encoded (a flag indicating the magnitude determination result of the compression rate and the threshold value) is stored in the header of the encoded stream. The reason why the processing is switched according to the compression rate is as follows.

圧縮率が閾値より小さい場合には、符号量は多くなるものの、量子化ステップが小さいので、量子化誤差も小さくなり、タイル境界における画質劣化が発生しにくい。従って、ミラー処理を選択したとしても、オーバーラップによる余分な符号化対象係数の増加を防ぐように制御する。 When the compression rate is smaller than the threshold value, the code amount is large, but the quantization step is small, so that the quantization error is small and the image quality deterioration at the tile boundary is unlikely to occur. Therefore, even if mirror processing is selected, control is performed so as to prevent an increase in the extra coding target coefficient due to overlap.

一方、圧縮率が大きい場合には、量子化誤差は無視できなくなり、タイル境界における画質劣化が目立つ。それ故、第1の実施形態と同様に、タイル周辺画素データを参照した符号化処理を実行する。なお、実際の符号量の調整は、符号量調整部802が行うが、その詳細は後述する。 On the other hand, when the compression ratio is large, the quantization error cannot be ignored, and the image quality deterioration at the tile boundary is conspicuous. Therefore, as in the first embodiment, the coding process with reference to the pixel data around the tile is executed. The actual code amount adjustment is performed by the code amount adjustment unit 802, the details of which will be described later.

データ入力制御部102は設定部801から指定されたウェーブレット変換処理方法に従い、画像データを所定のサイズのタイルに分割し、予め定められた順序でタイルをフレームメモリ101から読み出し、ウェーブレット変換部103に供給する。 The data input control unit 102 divides the image data into tiles of a predetermined size according to the wavelet transform processing method specified by the setting unit 801 and reads the tiles from the frame memory 101 in a predetermined order to the wavelet transform unit 103. Supply.

例えば、タイル境界のウェーブレット変換をミラー処理で実施する方法が選択されていた場合には、隣接タイルの画素は入力せずに符号化対象タイルの画素のみを入力する(S1004)。一方、ウェーブレット変換を隣接タイルの画素までオーバーラップして実施する方式が選択されていれば、先に説明した第1実施形態に示したタイル入力方法を実施する(S1005)。なお、その際、設定部801で指定されたウェーブレット変換処理方法もウェーブレット変換部103に送信する。 For example, when the method of performing the wavelet transform of the tile boundary by mirror processing is selected, only the pixels of the tile to be encoded are input without inputting the pixels of the adjacent tile (S1004). On the other hand, if a method of performing the wavelet transform overlapping the pixels of adjacent tiles is selected, the tile input method shown in the first embodiment described above is carried out (S1005). At that time, the wavelet transform processing method specified by the setting unit 801 is also transmitted to the wavelet transform unit 103.

ウェーブレット変換部103はデータ制御入力部102から送信されるウェーブレット変換方式に従ってウェーブレット変換を実行する。例えば、タイル境界のウェーブレット変換をミラー処理で実施する方法が選択されていた場合には、タイル境界の画素をミラー処理で生成し、ウェーブレット変換を行う(S1006)。 The wavelet transform unit 103 executes the wavelet transform according to the wavelet transform method transmitted from the data control input unit 102. For example, when the method of performing the wavelet transform of the tile boundary by the mirror processing is selected, the pixels of the tile boundary are generated by the mirror processing and the wavelet transform is performed (S1006).

一方、ウェーブレット変換を隣接タイルの画素までオーバーラップして実施する方式が選択されている場合、ウェーブレット変換部103は、着目タイル画像データとそのタイル周辺画素データを用いてウェーブレット変換を実行する(S1007)。この際、量子化部104に供給する変換係数データの取捨選択は、第1の実施形態と同じである。 On the other hand, when the method of performing the wavelet transform by overlapping the pixels of the adjacent tiles is selected, the wavelet transform unit 103 executes the wavelet transform using the tile image data of interest and the pixel data around the tile (S1007). ). At this time, the selection of the conversion coefficient data supplied to the quantization unit 104 is the same as that of the first embodiment.

次に、本第2の実施形態における符号量調整部802の処理を説明する。 Next, the processing of the code amount adjusting unit 802 in the second embodiment will be described.

1フレーム画像あたりの目標符号量は、圧縮率で決定される。そこで、この目標符号量をA_Targetとする。エントロピー符号化部105は、量子化後の各変換係数データの同一ビット位置で構成されるビットプレーンをエントロピー符号化するものとする。ビットiのプレーンの符号化データをCiと表し、その符号量をA(Ci)と表す。このとき、エントロピー符号化部105で生成された符号化データの1フレームの総符号量C_Totalは、次式の通りである。
C_Total=ΣA(Ci)(i=0,1、…、MSB)
従って、着目フレームの符号量を目標符号量A_Target以下とするために、次式を満たすkの最小値を求める。
C_total−ΣA(Ck)≦A_Target
kが求まれば、ビット0からビットkまでのビットプレーンの符号化データを破棄すれば良い。
The target code amount per frame image is determined by the compression rate. Therefore, let this target code amount be A_Target. The entropy encoding unit 105 entropy-encodes a bit plane composed of the same bit positions of each conversion coefficient data after quantization. The coded data of the plane of bit i is represented by Ci, and the code amount thereof is represented by A (Ci). At this time, the total code amount C_Total of one frame of the coded data generated by the entropy coding unit 105 is as follows.
C_Total = ΣA (Ci) (i = 0, 1, ..., MSB)
Therefore, in order to make the code amount of the frame of interest equal to or less than the target code amount A_Target, the minimum value of k that satisfies the following equation is obtained.
C_total-ΣA (Ck) ≤ A_Target
If k is obtained, the coded data of the bit plane from bit 0 to bit k may be discarded.

なお、本第2の実施形態で符号化されたストリームを復号する際には、ストリームヘッダに記録されているいずれの方式が選択されたのかを示すフラグを参照すればよい。フラグを参照することで、符号化データが、タイル境界を隣接タイルの係数までオーバーラップして実施して得られたものか、あるいは、タイル境界で折り返すミラー処理を経て生成されたものか判断できる。 When decoding the stream encoded in the second embodiment, it is sufficient to refer to the flag indicating which method recorded in the stream header is selected. By referring to the flag, it can be determined whether the coded data is obtained by overlapping the tile boundaries to the coefficients of adjacent tiles or by mirroring the tile boundaries. ..

以上説明したように、本第2の実施形態によれば、圧縮率に応じて、タイル画像データの符号化処理時に、ミラー処理を行うか、タイル周辺画素データを参照するかを選択する。この結果、特に高い圧縮率が設定された場合に、タイル境界でのノイズの発生をこれまで以上に抑制できるようになる。 As described above, according to the second embodiment, it is selected whether to perform mirror processing or to refer to the tile peripheral pixel data at the time of coding processing of the tile image data, depending on the compression rate. As a result, the generation of noise at the tile boundary can be suppressed more than ever, especially when a high compression ratio is set.

(その他の実施例)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other Examples)
The present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiment is supplied to the system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or device reads the program. This is the process to be executed.

100…画像符号化部、101…フレームメモリ、102…データ入力制御部、103…ウェーブレット変換部、104…量子化部、105…エントロピー符号化部、106…設定部 100 ... image coding unit, 101 ... frame memory, 102 ... data input control unit, 103 ... wavelet transforming unit, 104 ... quantization unit, 105 ... entropy coding unit, 106 ... setting unit

Claims (14)

画像データを複数のタイルに分割し、タイルごとに符号化する画像符号化装置であって、
タイルごとにウェーブレット変換を行い、変換係数データを得る変換手段と、
タイルごとに、該変換手段で得られた変換係数データを符号化する符号化手段と、を備え、
符号化対象のタイルに対して、隣接する隣接タイルが存在する場合は、
前記変換手段は、前記符号化対象のタイルの画素データと、前記隣接タイルのうち前記符号化対象のタイルと隣接する複数の画素データと、を参照して、前記ウェーブレット変換を行うことにより、変換係数データを取得し、
前記符号化手段は、前記隣接タイルの前記複数の画素データを参照して得られた前記隣接タイルに対応する変換係数データのうち、逆ウェーブレット変換により変換係数データから画素データを取得する際に自タイルの画素データを取得するために必要となる変換係数データを符号化し、前記隣接タイルに対応する変換係数データの一部は符号化しない
ことを特徴とする画像符号化装置。
An image coding device that divides image data into a plurality of tiles and encodes each tile.
A conversion means that performs wavelet transform for each tile to obtain conversion coefficient data,
For each tile, a coding means for encoding the conversion coefficient data obtained by the conversion means is provided.
If there are adjacent tiles adjacent to the tile to be encoded,
The conversion means converts by performing the wavelet transform with reference to the pixel data of the tile to be encoded and a plurality of pixel data of the adjacent tiles adjacent to the tile to be encoded. Get the coefficient data,
The coding means itself when acquiring pixel data from the conversion coefficient data by the inverse wavelet transform among the conversion coefficient data corresponding to the adjacent tiles obtained by referring to the plurality of pixel data of the adjacent tiles. An image coding device characterized in that the conversion coefficient data required for acquiring the pixel data of a tile is encoded, and a part of the conversion coefficient data corresponding to the adjacent tile is not encoded.
前記符号化手段は、前記変換手段で得られた変換係数データを量子化し、量子化後の係数データを符号化することを特徴とする請求項1に記載の画像符号化装置。 The image coding apparatus according to claim 1, wherein the coding means quantizes the conversion coefficient data obtained by the conversion means and encodes the quantized coefficient data. 前記変換手段は、複数回ウェーブレット変換を行って、複数のサブバンドの変換係数データを取得し、
前記符号化手段は、前記複数のサブバンドのうち、分解レベルが最上位の低周波成分のサブバンドと、高周波成分のサブバンドとを符号化することを特徴とする請求項1に記載の画像符号化装置。
The conversion means performs wavelet transform a plurality of times to acquire conversion coefficient data of a plurality of subbands, and obtains the conversion coefficient data.
The image according to claim 1, wherein the coding means encodes a subband of a low frequency component having the highest decomposition level and a subband of a high frequency component among the plurality of subbands. Encoding device.
前記符号化手段は、前記隣接タイル内の変換係数データのうち、前記符号化対象のタイルとのタイル境界に隣接する変換係数データを、前記符号化対象のタイルの垂直または水平方向の画素数に応じた数、符号化することを特徴とする請求項1に記載の画像符号化装置。 Among the conversion coefficient data in the adjacent tile, the coding means converts the conversion coefficient data adjacent to the tile boundary with the coded target tile into the number of pixels in the vertical or horizontal direction of the coded target tile. The image coding apparatus according to claim 1, wherein the image coding apparatus is encoded by a corresponding number. 前記符号化手段は、前記隣接タイル内の変換係数データのうち、前記符号化対象のタイルとのタイル境界に隣接する変換係数データを、前記変換手段によるウェーブレット変換の回数に応じた数、符号化することを特徴とする請求項1に記載の画像符号化装置。 Among the conversion coefficient data in the adjacent tiles, the coding means encodes the conversion coefficient data adjacent to the tile boundary with the tile to be coded by the number corresponding to the number of wavelet transforms by the conversion means. The image coding apparatus according to claim 1, wherein the image coding apparatus is used. 前記符号化対象のタイルの水平または垂直方向の画素数に応じて、前記符号化対象のタイルと共に前記変換手段によりウェーブレット変換を行う前記隣接タイルの画素数が決定されることを特徴とする請求項1に記載の画像符号化装置。 The claim is characterized in that the number of pixels of the adjacent tile for which wavelet transform is performed by the conversion means together with the tile to be encoded is determined according to the number of pixels in the horizontal or vertical direction of the tile to be encoded. The image coding apparatus according to 1. 前記符号化対象のタイルの水平または垂直方向の画素数を所定の数で割ったときの余りに応じて、前記符号化対象のタイルと共に前記変換手段によりウェーブレット変換を行う前記隣接タイルの画素数が決定されることを特徴とする請求項に記載の画像符号化装置。 The number of pixels of the adjacent tile to be wavelet-transformed by the conversion means together with the tile to be encoded is determined according to the remainder when the number of pixels in the horizontal or vertical direction of the tile to be encoded is divided by a predetermined number. The image coding apparatus according to claim 6 , wherein the image coding apparatus is used. 前記符号化対象のタイルの水平または垂直方向の画素数に応じて、前記符号化手段により符号化する前記隣接タイル内の変換係数データが決定されることを特徴とする請求項1に記載の画像符号化装置。 The image according to claim 1, wherein the conversion coefficient data in the adjacent tile to be encoded by the coding means is determined according to the number of pixels in the horizontal or vertical direction of the tile to be encoded. Encoding device. 前記符号化対象のタイルの水平または垂直方向の画素数を所定の数で割ったときの余りに応じて、前記符号化手段により符号化する前記隣接タイル内の変換係数データが決定されることを特徴とする請求項に記載の画像符号化装置。 The conversion coefficient data in the adjacent tile to be encoded by the coding means is determined according to the remainder when the number of pixels in the horizontal or vertical direction of the tile to be coded is divided by a predetermined number. The image coding apparatus according to claim 8 . さらに前記ウェーブレット変換で得る変換係数データの解像度レベル数、及び、圧縮率を設定する設定手段を有し、
前記変換手段は、前記設定手段で設定された圧縮率が予め設定された閾値より小さい場合、前記符号化対象のタイルに対してウェーブレット変換を行う際に、前記符号化対象のタイル外には当該符号化対象のタイル内の画素が折り返し存在するものとして、前記設定手段で設定した解像度レベルの変換係数データを得るためのウェーブレット変換を行い、前記符号化対象のタイル内から生成された変換係数データを量子化手段に供給し、
前記設定手段で設定された圧縮率が予め設定された閾値以上の場合、前記設定手段で設定した解像度レベルの変換係数データを得るため、前記符号化対象のタイルおよび前記符号化対象のタイルに隣接する隣接タイルの画素データを参照してウェーブレット変換を行い、
前記隣接タイルから得られた変換係数データのうち前記符号化対象のタイルと前記隣接タイルとの境界に最近接する各解像度レベルの変換係数データと、前記符号化対象のタイルから得られた変換係数データとを、前記符号化対象のタイルに対応する量子化対象の変換係数データとして前記量子化手段に供給する、
ことを特徴とする請求項1に記載の画像符号化装置。
Further, it has a setting means for setting the number of resolution levels of the conversion coefficient data obtained by the wavelet transform and the compression rate.
When the compression ratio set by the setting means is smaller than the preset threshold value, the conversion means is said to be outside the coding target tile when performing wavelet transform on the coding target tile. Assuming that the pixels in the tile to be encoded are folded back, wavelet transform is performed to obtain the conversion coefficient data of the resolution level set by the setting means, and the conversion coefficient data generated from the tile to be encoded is performed. To the quantization means,
When the compression rate set by the setting means is equal to or higher than a preset threshold value, the tile to be encoded and the tile to be encoded are adjacent to each other in order to obtain the conversion coefficient data of the resolution level set by the setting means. Wavelet transform is performed with reference to the pixel data of adjacent tiles.
Among the conversion coefficient data obtained from the adjacent tiles, the conversion coefficient data of each resolution level closest to the boundary between the tile to be encoded and the adjacent tile, and the conversion coefficient data obtained from the tile to be encoded. Is supplied to the quantization means as conversion coefficient data of the quantization target corresponding to the tile to be encoded.
The image coding apparatus according to claim 1.
前記設定手段で設定された圧縮率と前記閾値との比較の結果を示す情報を、符号化ストリームのヘッダに格納して出力することを特徴とする請求項10に記載の画像符号化装置。 The image coding apparatus according to claim 10 , wherein information indicating a result of comparison between the compression rate set by the setting means and the threshold value is stored in a header of a coded stream and output. 前記変換手段は、5/3タップフィルタを用いてウェーブレット変換を行い、
前記隣接タイルから得られた変換係数データのうち、各解像度レベルの高周波の変換係数データを前記量子化手段に供給することを特徴とする請求項10に記載の画像符号化装置。
The conversion means performs wavelet transform using a 5/3 tap filter.
The image coding apparatus according to claim 10 , wherein among the conversion coefficient data obtained from the adjacent tiles, high-frequency conversion coefficient data of each resolution level is supplied to the quantization means.
画像データを複数のタイルに分割し、タイルごとに符号化する画像符号化装置の制御方法であって、
変換手段が、タイルごとにウェーブレット変換を行い、変換係数データを得る変換工程と、
符号化手段が、タイルごとに、該変換手段で得られた変換係数データを符号化する符号化工程と、を備え、
符号化対象のタイルに対して、隣接する隣接タイルが存在する場合は、
前記変換工程では、前記符号化対象のタイルの画素データと、前記隣接タイルのうち前記符号化対象のタイルと隣接する複数の画素データと、を参照して、前記ウェーブレット変換を行うことにより、変換係数データを取得し、
前記符号化工程では、前記隣接タイルの前記複数の画素データを参照して得られた前記隣接タイルに対応する変換係数データのうち、逆ウェーブレット変換により変換係数データから画素データを取得する際に自タイルの画素データを取得するために必要となる変換係数データを符号化し、前記隣接タイルに対応する変換係数データの一部は符号化しない
ことを特徴とする画像符号化装置の制御方法。
It is a control method of an image coding device that divides image data into a plurality of tiles and encodes each tile.
The conversion process performs wavelet transform for each tile to obtain conversion coefficient data, and
The coding means includes, for each tile, a coding step of coding the conversion coefficient data obtained by the conversion means.
If there are adjacent tiles adjacent to the tile to be encoded,
In the conversion step, conversion is performed by performing the wavelet transform with reference to the pixel data of the tile to be encoded and a plurality of pixel data of the adjacent tiles adjacent to the tile to be encoded. Get the coefficient data,
In the coding step, among the conversion coefficient data corresponding to the adjacent tiles obtained by referring to the plurality of pixel data of the adjacent tiles, the pixel data is acquired from the conversion coefficient data by the inverse wavelet transform. A control method of an image coding apparatus, characterized in that the conversion coefficient data required for acquiring the pixel data of a tile is encoded, and a part of the conversion coefficient data corresponding to the adjacent tile is not encoded.
コンピュータが読み込み実行することで、前記コンピュータを、請求項1乃至12のいずれか1項に記載の画像符号化装置の各手段として機能させるためのプログラム。 A program for causing the computer to function as each means of the image coding apparatus according to any one of claims 1 to 12 , when the computer reads and executes the computer.
JP2016165074A 2015-10-27 2016-08-25 Image coding device and its control method Active JP6793499B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/299,073 US10003821B2 (en) 2015-10-27 2016-10-20 Image encoding apparatus and method of controlling same

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015211107 2015-10-27
JP2015211107 2015-10-27

Publications (3)

Publication Number Publication Date
JP2017085548A JP2017085548A (en) 2017-05-18
JP2017085548A5 JP2017085548A5 (en) 2019-09-12
JP6793499B2 true JP6793499B2 (en) 2020-12-02

Family

ID=58711389

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016165074A Active JP6793499B2 (en) 2015-10-27 2016-08-25 Image coding device and its control method

Country Status (1)

Country Link
JP (1) JP6793499B2 (en)

Also Published As

Publication number Publication date
JP2017085548A (en) 2017-05-18

Similar Documents

Publication Publication Date Title
JP4656190B2 (en) Information processing apparatus and method
JP4702928B2 (en) Moving picture encoding apparatus and decoding apparatus, control method therefor, computer program, and computer-readable storage medium
JP4780172B2 (en) Information processing apparatus and method
KR101645544B1 (en) Methods of encoding and decoding using multi-level prediction and apparatuses for using the same
US20210136394A1 (en) Encoding apparatus and encoding method, and decoding apparatus and decoding method
JP2017085247A (en) Encoding method, encoding device, imaging apparatus and program
JP3789836B2 (en) Image coding apparatus and method
US10897615B2 (en) Image encoding apparatus and control method therefor
US20170118492A1 (en) Image encoding apparatus and method of controlling same
US10356408B2 (en) Image encoding apparatus and method of controlling the same
US11140392B2 (en) Image encoding apparatus, image decoding apparatus, control methods thereof, and non- transitory computer-readable storage medium
US8279932B2 (en) Information processing apparatus and method
JP5817125B2 (en) Image processing apparatus and method
JP4841504B2 (en) Image coding apparatus and method
JP2004048607A (en) Digital image coding device and method thereof
JP6793499B2 (en) Image coding device and its control method
US12069306B2 (en) Image encoding apparatus and method for controlling the same and non-transitory computer-readable storage medium
JP5642105B2 (en) Image processing apparatus and image forming apparatus
JP6813991B2 (en) Image coding device and its control method and program
JP3853708B2 (en) Digital image encoding apparatus, encoding method, and program
JP2019068385A (en) Encoder, control method thereof, and control program, and imaging apparatus
CN103313050A (en) Image processing device and image processing method
JP6564314B2 (en) Image encoding apparatus, control method thereof, program, and storage medium
JP4514464B2 (en) Image encoding apparatus and image decoding apparatus, and image display apparatus and method using them
JP2005223852A (en) Image-encoding device and method, and image-decoding device and method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190805

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190805

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200716

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200731

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200924

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201110

R151 Written notification of patent or utility model registration

Ref document number: 6793499

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151