JP2008079152A - Picture encoding and picture decoding methods - Google Patents

Picture encoding and picture decoding methods Download PDF

Info

Publication number
JP2008079152A
JP2008079152A JP2006257901A JP2006257901A JP2008079152A JP 2008079152 A JP2008079152 A JP 2008079152A JP 2006257901 A JP2006257901 A JP 2006257901A JP 2006257901 A JP2006257901 A JP 2006257901A JP 2008079152 A JP2008079152 A JP 2008079152A
Authority
JP
Japan
Prior art keywords
image
resolution
picture
resolution image
encoding
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.)
Granted
Application number
JP2006257901A
Other languages
Japanese (ja)
Other versions
JP2008079152A5 (en
JP4641995B2 (en
Inventor
Toshiyuki Kondo
敏志 近藤
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2006257901A priority Critical patent/JP4641995B2/en
Publication of JP2008079152A publication Critical patent/JP2008079152A/en
Publication of JP2008079152A5 publication Critical patent/JP2008079152A5/ja
Application granted granted Critical
Publication of JP4641995B2 publication Critical patent/JP4641995B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide picture encoding and decoding methods capable of substantially reducing a coding amount of input pictures by efficiently encoding input pictures. <P>SOLUTION: A picture encoder 1,000 comprises: an encoding control part 910 for judging whether to encode an encoding object picture as a high-resolution picture or to encode it as a low-resolution picture depending on the picture type of the encoding object picture; a picture reduction part 917 for making the encoding object picture judged to be encoded as a low resolution picture into low resolution; a picture reduction part 1,001 for making a reference picture encoded as a high-resolution picture into low resolution when the encoding object picture judged to be encoded as a low-resolution picture uses a picture encoded as a high-resolution picture as the reference picture; and a motion detection part 908, a mode selection part 909, a difference computing part 902 and a predictive residual encoding part 903 for encoding the encoding object picture made into low resolution by the picture reduction part 917, referring to the reference picture made into low resolution by the second image reduction means. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、参照関係にある低解像度画像間の動きから一方の低解像度画像に対応する高解像度画像を生成する画像処理方法、そしてこの画像処理方法を用いて高能率圧縮符号化する画像符号化方法および画像復号方法に関するものである。   The present invention relates to an image processing method for generating a high-resolution image corresponding to one low-resolution image from a motion between low-resolution images in a reference relationship, and image coding to perform high-efficiency compression encoding using this image processing method The present invention relates to a method and an image decoding method.

MPEGビデオ方式に代表される従来の画像符号化方式においては、画面を予め定められた単位に分割し、その分割単位で符号化を行う。例えば、MPEG−4 AVC(Advanced Video Coding)方式(非特許文献1)においては、画面(ピクチャ)をマクロブロックと呼ばれる16画素×16画素の単位に区分し、マクロブロック単位で符号化処理を行う。そして、動き補償を行う場合には、マクロブロックをさらに矩形のブロック(最小で4画素×4画素)に分割して、ブロック毎に異なる動きベクトルを用いて動き補償を行うことができる。   In a conventional image encoding method typified by the MPEG video method, a screen is divided into predetermined units, and encoding is performed in the divided units. For example, in the MPEG-4 AVC (Advanced Video Coding) method (Non-Patent Document 1), a screen (picture) is divided into units of 16 pixels × 16 pixels called macroblocks, and encoding processing is performed in units of macroblocks. . When performing motion compensation, the macroblock can be further divided into rectangular blocks (minimum 4 pixels × 4 pixels), and motion compensation can be performed using different motion vectors for each block.

このように、ブロック毎に異なる動きベクトルを用いて動き補償を行ったり、ブロック毎に参照可能なピクチャの枚数を増加させたりすることによって、より解像度の高い画像の符号化及び復号化を実現することができる。
ISO/IEC 14496-10 MPEG-4 Advanced Video Coding規格書
Thus, by performing motion compensation using different motion vectors for each block or increasing the number of pictures that can be referenced for each block, encoding and decoding of images with higher resolution can be realized. be able to.
ISO / IEC 14496-10 MPEG-4 Advanced Video Coding Standard

しかしながら、上記従来の方法では、より多くのブロックについて、各ブロックの動きベクトルや、各ブロックがどのピクチャを参照したかを示す情報などを、付加情報として符号化する必要がある。この結果、高解像度の画像を、画質の劣化を抑制しながら符号化する場合、符号量を低減することが困難であるという課題を有している。   However, in the conventional method, it is necessary to encode the motion vector of each block, information indicating which picture each block refers to, and the like as additional information for more blocks. As a result, when a high-resolution image is encoded while suppressing deterioration in image quality, there is a problem that it is difficult to reduce the code amount.

本発明は、上記従来の課題を解決するものであり、入力画像を効率よく符号化することによって、入力画像の符号量を大幅に削減することができる画像符号化方法および画像復号方法を提供することを目的とする。   The present invention solves the above-described conventional problems, and provides an image encoding method and an image decoding method capable of significantly reducing the amount of code of an input image by efficiently encoding the input image. For the purpose.

この課題を解決するために、本発明の画像符号化方法は、高解像度画像を入力とし、各ピクチャを高解像度または低解像度のいずれかで符号化する画像符号化方法であって、符号化対象ピクチャのピクチャタイプに応じて、前記符号化対象ピクチャを高解像度画像として符号化するか、低解像度画像として符号化するかを判定する符号化制御ステップと、前記符号化制御ステップによって低解像度画像として符号化すると判定された符号化対象ピクチャを低解像度化する第1の画像縮小ステップと、前記符号化制御ステップによって低解像度画像として符号化すると判定された符号化対象ピクチャが、高解像度画像として符号化されたピクチャを参照ピクチャとする場合、高解像度画像として符号化された前記参照ピクチャを低解像度化する第2の画像縮小ステップと、前記第1の画像縮小ステップによって低解像度化された符号化対象ピクチャを、前記第2の画像縮小ステップによって低解像度化された前記参照ピクチャを参照して符号化する符号化ステップとを含むことを特徴とする。   In order to solve this problem, an image encoding method of the present invention is an image encoding method in which a high-resolution image is input and each picture is encoded at either high resolution or low resolution, An encoding control step for determining whether to encode the encoding target picture as a high-resolution image or a low-resolution image according to the picture type of the picture, and a low-resolution image by the encoding control step A first image reduction step for reducing the resolution of the encoding target picture determined to be encoded, and the encoding target picture determined to be encoded as a low resolution image by the encoding control step are encoded as a high resolution image. When the converted picture is used as a reference picture, the reference picture encoded as a high-resolution image is reduced in resolution. A code for encoding the picture to be encoded whose resolution has been reduced by the second image reduction step and the first picture reduction step with reference to the reference picture whose resolution has been reduced by the second image reduction step And a step of converting.

また、前記符号化制御ステップでは、Bピクチャは他のピクチャから参照されないことを前提として、IピクチャとPピクチャとを高解像度画像として符号化し、Bピクチャを低解像度画像として符号化すると判定するとしてもよい。   In the encoding control step, it is assumed that the B picture is encoded as a high resolution image and the B picture is encoded as a low resolution image on the assumption that the B picture is not referred to by other pictures. Also good.

さらに、前記符号化制御ステップでは、Iピクチャのみ高解像度画像として符号化すると判定するとしてもよい。   Further, in the encoding control step, it may be determined that only the I picture is encoded as a high resolution image.

また、前記符号化制御ステップによって高解像度画像として符号化すると判定された符号化対象ピクチャが、低解像度画像として符号化されたピクチャを参照ピクチャとする場合、前記低解像度画像として符号化された前記参照ピクチャを高解像度化する画像処理ステップを含み、前記符号化ステップでは、前記画像処理ステップによって高解像度化された前記参照ピクチャを参照して、前記符号化対象ピクチャを符号化するとしてもよい。   When the encoding target picture determined to be encoded as a high resolution image by the encoding control step is a picture encoded as a low resolution image as a reference picture, the encoding target picture is encoded as the low resolution image. An image processing step for increasing the resolution of a reference picture may be included, and in the encoding step, the encoding target picture may be encoded with reference to the reference picture whose resolution has been increased by the image processing step.

さらに、前記画像処理ステップでは、前記参照ピクチャとされたピクチャであって低解像度画像として符号化された第1の低解像度画像につき、前記参照ピクチャが低解像度画像として符号化されるとき参照した第2の低解像度画像を探索して、1又は複数の画素単位で動きベクトルを検出し、検出された前記動きベクトルを用いて、前記第2の低解像度画像と同じ画像を表し解像度が異なる第2の高解像度画像の第1画素値を取得し、取得した第1画素値を前記画素の画素値とする、前記第1の低解像度画像と同じ画像を表し解像度が異なる第1の高解像度画像を生成し、前記符号化ステップでは、生成された前記第1の高解像度画像を参照して、前記符号化対象ピクチャを符号化するとしてもよい。   Further, in the image processing step, the first low-resolution image that is the picture that is the reference picture and is encoded as the low-resolution image is referred to when the reference picture is encoded as the low-resolution image. 2 low resolution images are searched, a motion vector is detected in units of one or a plurality of pixels, and a second image having the same image as the second low resolution image and having a different resolution is detected using the detected motion vector. The first pixel value of the high-resolution image is acquired, and the first high-resolution image representing the same image as the first low-resolution image and having a different resolution is obtained by using the acquired first pixel value as the pixel value of the pixel. In the encoding step, the encoding target picture may be encoded with reference to the generated first high-resolution image.

また、前記画像処理ステップでは、さらに、前記第1の高解像度画像の生成済みの画素を用いて、前記第2の高解像度画像を探索して、1又は複数の画素単位で動きベクトルを検出し、検出された前記動きベクトルを用いて、第2の高解像度画像の第2画素値を取得し、前記第1の高解像度画像内で同じ位置にある画素について取得された前記第1画素値と前記第2画素値との平均値を当該画素の画素値とするとしてもよい。   In the image processing step, the second high-resolution image is searched using the already generated pixels of the first high-resolution image, and a motion vector is detected in units of one or a plurality of pixels. A second pixel value of a second high-resolution image is obtained using the detected motion vector, and the first pixel value obtained for a pixel at the same position in the first high-resolution image; The average value of the second pixel value may be the pixel value of the pixel.

さらに、前記画像処理ステップでは、さらに、前記第1の低解像度画像と前記第1の高解像度画像の生成済みの画素につき、複数の前記第2の低解像度画像と複数の前記第2の高解像度画像とを探索して複数の動きベクトルを検出し、前記第1の低解像度画像に対応する複数の第1の高解像度画像を生成し、前記画像符号化方法は、さらに、前記画像処理ステップによって生成された複数の前記第1の高解像度画像のうち、1つの第1の高解像度画像を選択する選択ステップを含むとしてもよい。   Further, in the image processing step, a plurality of the second low resolution images and a plurality of the second high resolutions are further generated for the generated pixels of the first low resolution image and the first high resolution image. And a plurality of motion vectors are detected to generate a plurality of first high resolution images corresponding to the first low resolution image, and the image encoding method further includes: A selection step of selecting one first high-resolution image from among the plurality of generated first high-resolution images may be included.

また、本発明の画像復号化方法は、動画像中の各ピクチャが高解像度画像又は低解像度画像として符号化されている符号列を入力とし、前記符号列を復号化する画像復号化方法であって、前記符号列に符号化されている復号化対象ピクチャを復号化する復号化ステップと、前記復号化ステップによって復号化されたピクチャが低解像度画像である場合、前記低解像度画像を高解像度化して高解像度画像を生成する復号化画像処理ステップと、前記復号化画像処理ステップによって生成された高解像度画像を出力する出力ステップとを含むことを特徴とする。   Also, the image decoding method of the present invention is an image decoding method for decoding a code string that is input with a code string in which each picture in a moving image is encoded as a high-resolution image or a low-resolution image. A decoding step of decoding a decoding target picture encoded in the code string, and when the picture decoded by the decoding step is a low resolution image, the low resolution image is increased in resolution. And a decoded image processing step for generating a high-resolution image, and an output step for outputting the high-resolution image generated by the decoded image processing step.

また、前記復号化画像処理ステップは、前記復号化ステップによって復号化された第1の低解像度画像につき、前記第1の低解像度画像が低解像度画像として符号化されるとき参照した復号化済みの第2の低解像度画像を探索して、1又は複数の画素単位で動きベクトルを検出し、検出された前記動きベクトルを用いて、前記第2の低解像度画像に対応する第2の高解像度画像の画素値を取得し、前記第1の低解像度画像に対応する第1の高解像度画像を生成するとしてもよい。   In addition, the decoded image processing step includes a decoded image that is referred to when the first low resolution image is encoded as a low resolution image with respect to the first low resolution image decoded by the decoding step. A second low resolution image is searched, a motion vector is detected in units of one or a plurality of pixels, and a second high resolution image corresponding to the second low resolution image is detected using the detected motion vector. May be obtained to generate a first high-resolution image corresponding to the first low-resolution image.

なお、本発明は、このような画像符号化方法および画像復号方法として実現することができるだけでなく、このような画像符号化方法および画像復号方法が備える特徴的なステップを手段とする装置として実現したり、それらのステップをコンピュータに実行させるプログラムとして実現したりすることもできる。そして、そのようなプログラムは、CD−ROM等の記録媒体やインターネット等の伝送媒体を介して配信することができるのは言うまでもない。   The present invention can be realized not only as such an image encoding method and an image decoding method, but also as an apparatus using the characteristic steps of such an image encoding method and an image decoding method as means. It can also be realized as a program that causes a computer to execute these steps. Needless to say, such a program can be distributed via a recording medium such as a CD-ROM or a transmission medium such as the Internet.

以上の様に、本発明の画像符号化方法によれば、1つのストリームの中でピクチャタイプに応じて高解像度画像と低解像度画像とを切り替えて符号化するので、すべてのピクチャを高解像度画像で符号化する場合に比べて符号量を大幅に削減することができる。また、画像復号化装置では、画像処理部が低解像度画像を用いて画素単位で動きベクトルを検出し、検出された動きベクトルに従って前記低解像度画像と同じ参照画像を表す高解像度画像から、前記画素の位置に対応する画素値を抽出し高解像度画像を生成するので、すべてのピクチャが高解像度画像である動画像を再生することができる。従って、本発明の画像符号化方法および画像復号化方法によれば、入力画像を効率よく符号化することができ、その実用的価値が高い。   As described above, according to the image encoding method of the present invention, encoding is performed by switching between a high-resolution image and a low-resolution image in accordance with the picture type in one stream. The amount of codes can be greatly reduced as compared with the case of encoding with. Further, in the image decoding apparatus, the image processing unit detects a motion vector in units of pixels using the low resolution image, and the pixel from the high resolution image representing the same reference image as the low resolution image according to the detected motion vector. Since the pixel value corresponding to the position is extracted and a high-resolution image is generated, a moving image in which all the pictures are high-resolution images can be reproduced. Therefore, according to the image encoding method and the image decoding method of the present invention, an input image can be encoded efficiently, and its practical value is high.

以下、本発明の実施の形態について、図1から図19を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to FIGS.

(実施の形態1)
図1は、本発明の画像処理部100の構成を示すブロック図である。本実施の形態1の画像処理部100は、高解像度画像である入力画像を縮小して得られる低解像度画像と参照画像となる低解像度画像を用いて検出された動きベクトルと、前記参照画像となった低解像度画像に対応する高解像度画像とを用いて、入力画像に対応する動き補償画像を生成する処理部であって、動き補償部101、動き検出部102、および制御部103を備える。
(Embodiment 1)
FIG. 1 is a block diagram showing the configuration of the image processing unit 100 of the present invention. The image processing unit 100 according to the first embodiment includes a motion vector detected using a low-resolution image obtained by reducing an input image, which is a high-resolution image, and a low-resolution image serving as a reference image, the reference image, A processing unit that generates a motion compensated image corresponding to the input image using the high-resolution image corresponding to the low-resolution image, and includes a motion compensation unit 101, a motion detection unit 102, and a control unit 103.

動き検出部102には、参照画像となる低解像度画像RLと符号化対象を縮小した低解像度画像CLとが入力される。また、動き補償部101には参照画像となる高解像度画像RHが入力される。   The motion detection unit 102 receives a low-resolution image RL serving as a reference image and a low-resolution image CL obtained by reducing the encoding target. The motion compensation unit 101 receives a high-resolution image RH serving as a reference image.

図2は、低解像度画像と高解像度画像の関係を示す図である。低解像度画像RLと高解像度画像RHとは同じ画像から生成された画像である。例えば、低解像度画像RLは高解像度画像RHを縮小した画像である場合、低解像度画像RLと高解像度画像RHとはある画像を階層的画像符号化で符号化した画像のペアである場合、ある画像を異なる縮小率で縮小した画像が低解像度画像RLと高解像度画像RHとである場合、等が考えられる。図2では、低解像度画像と高解像度画像は、水平、垂直共に1:2の解像度比を持つ場合を示しているが、解像度比はこの比には限らない。   FIG. 2 is a diagram illustrating a relationship between a low resolution image and a high resolution image. The low resolution image RL and the high resolution image RH are images generated from the same image. For example, when the low resolution image RL is an image obtained by reducing the high resolution image RH, the low resolution image RL and the high resolution image RH may be a pair of images obtained by encoding a certain image by hierarchical image encoding. The case where the image which reduced the image by the different reduction ratio is the low resolution image RL and the high resolution image RH etc. can be considered. FIG. 2 shows a case where the low resolution image and the high resolution image have a resolution ratio of 1: 2 in both horizontal and vertical directions, but the resolution ratio is not limited to this ratio.

図1に示した動き検出部102では、低解像度画像CLの低解像度画像RLに対する動きを検出する。動き検出の際には、制御部503から動き検出の対象となるブロックの位置、探索を行う範囲、及びブロックの大きさなどが指定される。図3(a)は、低解像度画像を用いて画素毎に動きベクトルを検出する方法を示す図である。動き検出の方法について図3(a)を用いて説明する。ここでは制御部103から指定された動き検出の対象となるブロックの位置が(Cx,Cy)であり、ブロックの大きさが1画素×1画素であるとする。すなわち、低解像度画像CL内の位置(Cx,Cy)にある画素(×印の画素であり、この場合のブロックの画素数は1である。以降、この画素を対象画素と呼ぶ)の、低解像度画像RLに対する動きを求めることになる。対象画素の動きを求める際には、対象画素の周辺の画素も利用することができる。例えば、対象画素を含めた3画素×3画素の領域301を用いて低解像度画像RLを探索し、動き検出を行うことができる。動き検出の際の領域の大きさは、異なる画素数であっても良いし、元のブロックが複数画素で構成される場合には探索を行うための周辺画素を用いずに動き検出をしても良い。動き検出においてはコスト関数を設定し、そのコスト関数が最小となる低解像度画像RL内の位置を決定する。ここでコスト関数としては、低解像度画像CL内の領域301の画素値と、低解像度画像RL内の領域(領域301と同じ大きさを有する領域)の画素値の差分値(差分絶対値和や差分2乗値和)としても良い。また、画素値の差分値に更に、例えば、検出された動きベクトルと周辺画素または周辺ブロックの動きベクトルとの差の大きさに重み係数を乗算したものなどを加えた値をコスト関数としても良い。ここで対応画素間の差分値を計算する際には、画像の画素値をそのまま用いてもよいし、画素値にハニング窓等の窓関数を施して用いても良い。コスト関数が最小となる位置が領域303であるとすると、ここで求められた動き量は(Mx,My)となる。   The motion detection unit 102 illustrated in FIG. 1 detects the motion of the low resolution image CL with respect to the low resolution image RL. At the time of motion detection, the control unit 503 designates the position of a block that is a target of motion detection, a search range, a block size, and the like. FIG. 3A is a diagram illustrating a method for detecting a motion vector for each pixel using a low-resolution image. A motion detection method will be described with reference to FIG. Here, it is assumed that the position of the target block for motion detection designated by the control unit 103 is (Cx, Cy), and the size of the block is 1 pixel × 1 pixel. In other words, the pixel at the position (Cx, Cy) in the low-resolution image CL (the pixel of the x mark, and the number of pixels of the block in this case is 1. Hereinafter, this pixel is referred to as the target pixel). The motion with respect to the resolution image RL is obtained. When obtaining the movement of the target pixel, pixels around the target pixel can also be used. For example, a low-resolution image RL can be searched using a 3 × 3 pixel region 301 including the target pixel, and motion detection can be performed. The size of the area for motion detection may be a different number of pixels, or when the original block is composed of a plurality of pixels, motion detection is performed without using peripheral pixels for searching. Also good. In motion detection, a cost function is set, and a position in the low-resolution image RL that minimizes the cost function is determined. Here, as a cost function, a difference value (a sum of absolute differences or a difference between a pixel value of the region 301 in the low-resolution image CL and a pixel value of a region (region having the same size as the region 301) in the low-resolution image RL. (Sum of squared differences)). Further, for example, a value obtained by adding a weighting factor to the difference between the detected motion vector and the motion vector of the peripheral pixel or the peripheral block and the weighting coefficient may be used as the cost function. . Here, when calculating the difference value between the corresponding pixels, the pixel value of the image may be used as it is, or the pixel value may be used by applying a window function such as a Hanning window. If the position where the cost function is minimized is the region 303, the amount of motion obtained here is (Mx, My).

動き検出部102で検出された動き量は動きベクトルMVとして動き補償部101に入力される。動き補償部101には、高解像度画像RHと動きベクトルMVが入力される。動き補償部101では、制御部103から入力された位置情報、動き検出部102から入力された動きベクトルMVに基づいて、高解像度画像RHから高解像度(動き補償)画像MHを生成する。図4は、動き検出部102から入力された動きベクトルMVに基づいて、高解像度画像RHから高解像度(動き補償)画像MHを生成する方法を示す図である。この様子を、図4を用いて説明する。図2に示したように、低解像度画像と高解像度画像の解像度比は水平、垂直共に1:2であったので、低解像度画像CLの位置(Cx,Cy)の画素に対応する、高解像度画像MHの画素位置は(2Cx,2Cy)を左上端とする2画素×2画素の領域となる。また、高解像度画像間での動きベクトルは2MV(水平方向および垂直方向の両成分に対して2倍を施す)となる。したがって、高解像度画像MHの画素は、高解像度画像RHの(2Cx+2Mx,2Cy+2My)を左上端とする2画素×2画素の領域の画素となる。   The amount of motion detected by the motion detection unit 102 is input to the motion compensation unit 101 as a motion vector MV. The motion compensation unit 101 receives the high resolution image RH and the motion vector MV. The motion compensation unit 101 generates a high resolution (motion compensation) image MH from the high resolution image RH based on the position information input from the control unit 103 and the motion vector MV input from the motion detection unit 102. FIG. 4 is a diagram illustrating a method of generating a high resolution (motion compensation) image MH from the high resolution image RH based on the motion vector MV input from the motion detection unit 102. This will be described with reference to FIG. As shown in FIG. 2, since the resolution ratio between the low resolution image and the high resolution image is 1: 2 in both horizontal and vertical directions, the high resolution corresponding to the pixel at the position (Cx, Cy) of the low resolution image CL. The pixel position of the image MH is a 2 × 2 pixel area with (2Cx, 2Cy) as the upper left corner. Further, the motion vector between the high-resolution images is 2 MV (doubled for both the horizontal and vertical components). Accordingly, the pixels of the high-resolution image MH are pixels in a region of 2 × 2 pixels having (2Cx + 2Mx, 2Cy + 2My) of the high-resolution image RH as the upper left corner.

以降、同様の処理を低解像度画像CLに対する全領域に対して施し、対応する高解像度画像MHの全領域に対して動き補償を実施することにより、高解像度画像RHから動き補償して高解像度画像MHを生成する。これにより、低解像度画像RLには含まれない高周波成分を表す画素値を高解像度画像RHから抽出して高解像度画像MHを構成することができるので、高解像度画像RHと同程度の解像度を持つ高解像度画像MHを得ることができるという効果がある。従って、高解像度画像RHの代わりに、低解像度画像RLを画素補間により拡大して得られる画像から画素値を抽出してもこの効果を得ることはできない。   Thereafter, the same processing is performed on the entire region of the low-resolution image CL, and motion compensation is performed on the entire region of the corresponding high-resolution image MH, thereby performing motion compensation from the high-resolution image RH. MH is generated. As a result, pixel values representing high-frequency components not included in the low-resolution image RL can be extracted from the high-resolution image RH to form the high-resolution image MH, and therefore have the same resolution as the high-resolution image RH. There is an effect that a high-resolution image MH can be obtained. Therefore, this effect cannot be obtained by extracting pixel values from an image obtained by enlarging the low resolution image RL by pixel interpolation instead of the high resolution image RH.

なお、本実施の形態においては、動き検出部102で動き検出を行う際に低解像度画像CLと低解像度画像RLとを用いて動きを検出する場合について説明したが、これは低解像度画像RLと低解像度画像CLとを2倍に拡大した後に動き検出を行い、動きベクトルを求めても良い。この場合、高解像度画像MHを生成する際には1画素毎に高解像度画像RHから動き補償をすることができる。   In the present embodiment, the case where motion is detected using the low resolution image CL and the low resolution image RL when motion detection is performed by the motion detection unit 102 has been described. The motion vector may be obtained by performing motion detection after enlarging the low resolution image CL twice. In this case, when generating the high resolution image MH, motion compensation can be performed for each pixel from the high resolution image RH.

また、本実施の形態においては、動き検出部102で動き検出を行う際に、低解像度画像CLと低解像度画像RLとを用いて1画素精度の動きを検出する場合について説明したが、低解像度画像RLを拡大した後に動き検出を行い、1/4画素、1/8画素精度の動きベクトルを求めても良い。このような処理により、高解像度画像MHを生成する際には小数精度で高解像度画像RHから動き補償をすることができる。この場合には、高解像度画像RHを拡大(内挿)した後に動き補償すれば良い。   Further, in the present embodiment, a case has been described in which a motion with a one-pixel accuracy is detected using the low-resolution image CL and the low-resolution image RL when the motion detection unit 102 performs motion detection. Motion detection may be performed after enlarging the image RL, and a motion vector with 1/4 pixel and 1/8 pixel accuracy may be obtained. With such processing, when generating the high resolution image MH, motion compensation can be performed from the high resolution image RH with decimal accuracy. In this case, motion compensation may be performed after enlarging (interpolating) the high resolution image RH.

また、本実施の形態においては、動き検出および動き補償の参照画像が1枚である場合について説明したが、これは複数の画像を用いても良い。   In the present embodiment, the case where there is one reference image for motion detection and motion compensation has been described, but a plurality of images may be used.

また、本実施の形態においては、動き検出部102で動き検出を行う際に、低解像度画像CLと低解像度画像RLとを用いる方法について説明したが、これは高解像度画像RHと高解像度画像MHとを用いても良い。図3(b)は、低解像度画像CLと低解像度画像RLおよび高解像度画像RHと高解像度画像MHを用いて動き検出を行う方法を示す図である。図3(b)を用いてこの方法を説明する。この場合、高解像度画像MHには一部生成されていない画素が存在するため、低解像度画像CLの領域301の画素と高解像度画像MHの領域302の画素とを用いて低解像度画像RLと高解像度画像RHに対して動きを検出する。より具体的には、動き検出でのコスト関数における画素値の差分値として、
領域301の画素値と、低解像度画像RL内の領域(領域301と同じ大きさを有する領域)の画素値の差分値に加えて、領域302の画素値と、高解像度画像RH内の領域(領域302と同じ大きさと形状を有する領域)の画素値の差分値を考慮して、動きを検出する。この場合、そのようなコスト関数が最小となる動きベクトルを×印の画素の動きベクトルとする。
Further, in the present embodiment, the method of using the low resolution image CL and the low resolution image RL when performing motion detection in the motion detection unit 102 has been described. However, this is because the high resolution image RH and the high resolution image MH are used. And may be used. FIG. 3B is a diagram illustrating a method of performing motion detection using the low resolution image CL, the low resolution image RL, the high resolution image RH, and the high resolution image MH. This method will be described with reference to FIG. In this case, since some pixels are not generated in the high-resolution image MH, the low-resolution image RL and the high-resolution image RL using the pixels in the region 301 of the low-resolution image CL and the pixels in the region 302 of the high-resolution image MH. Motion is detected for the resolution image RH. More specifically, as the difference value of the pixel value in the cost function in motion detection,
In addition to the difference value between the pixel value of the region 301 and the pixel value of the region in the low resolution image RL (region having the same size as the region 301), the pixel value of the region 302 and the region in the high resolution image RH ( The motion is detected in consideration of the difference value of the pixel value of the region having the same size and shape as the region 302. In this case, a motion vector that minimizes such a cost function is set as a motion vector of a pixel marked with x.

また、参照画像として用いる高解像度画像RHは、予め得られている高解像度画像だけではなく、本実施の形態において生成した高解像度画像であっても良い。   The high resolution image RH used as the reference image is not limited to the high resolution image obtained in advance, but may be a high resolution image generated in the present embodiment.

(実施の形態1の変形例)
実施の形態1の変形例である画像処理部800について、図5を用いて説明する。図5は、実施の形態1の変形例である画像処理部800の構成を示すブロック図である。本変形例の画像処理部800は、図1を用いて説明した本発明の画像処理装置100に、選択部801を追加した構成となっている。実施の形態1では、生成したい高解像度画像MHに対応する低解像度画像CLが予め得られている条件の下で、参照画像となる低解像度画像RLに対する低解像度画像CLの動きを検出し(または低解像度画像RLおよび高解像度画像RHに対する低解像度画像CLおよび高解像度画像MHの動きを検出し)、検出された動きベクトルを元に高解像度画像RHを動き補償して高解像度画像MHを生成したが、本変形例では複数の方法で動きを検出した後に動き検出方法に応じた動き補償画像を生成し、それら複数の動き補償画像の中から、最適な動き補償画像を選択する点に特徴がある。
(Modification of Embodiment 1)
An image processing unit 800 which is a modification of the first embodiment will be described with reference to FIG. FIG. 5 is a block diagram illustrating a configuration of an image processing unit 800 which is a modification of the first embodiment. The image processing unit 800 of the present modification has a configuration in which a selection unit 801 is added to the image processing apparatus 100 of the present invention described with reference to FIG. In the first embodiment, the motion of the low resolution image CL with respect to the low resolution image RL serving as the reference image is detected under the condition that the low resolution image CL corresponding to the high resolution image MH to be generated is obtained in advance (or The motion of the low resolution image CL and the high resolution image MH with respect to the low resolution image RL and the high resolution image RH is detected), and the high resolution image RH is motion-compensated based on the detected motion vector to generate the high resolution image MH. However, the present modification is characterized in that after detecting motion by a plurality of methods, a motion compensation image corresponding to the motion detection method is generated, and an optimal motion compensation image is selected from the plurality of motion compensation images. is there.

ここで、動き検出部102および動き補償部101は、請求項でいう「さらに、前記第1の低解像度画像と前記第1の高解像度画像の生成済みの画素につき、複数の前記第2の低解像度画像と複数の前記第2の高解像度画像とを探索して複数の動きベクトルを検出し、前記第1の低解像度画像に対応する複数の第1の高解像度画像を生成する前記画像処理ステップ」を実行する手段に相当し、選択部801は、請求項でいう「前記画像処理ステップによって生成された複数の前記第1の高解像度画像のうち、1つの第1の高解像度画像を選択する選択ステップ」を実行する手段に相当する。   Here, the motion detection unit 102 and the motion compensation unit 101 are referred to in the claims as “a further plurality of the second low-resolution images for each of the generated pixels of the first low-resolution image and the first high-resolution image”. The image processing step of searching for a resolution image and a plurality of the second high resolution images to detect a plurality of motion vectors and generating a plurality of first high resolution images corresponding to the first low resolution image The selection unit 801 selects one first high-resolution image from among the plurality of first high-resolution images generated by the image processing step. This corresponds to means for executing the “selection step”.

動き検出部102は、参照画像となる低解像度画像RL、符号化対象である低解像度画像CL、参照画像となる高解像度画像RH、高解像度動き補償画像MHを生成する処理対象であり少なくとも一部が生成された高解像度画像MHが入力される。また、動き補償部101には高解像度画像RHが入力される。ここで、参照画像となる低解像度画像RL、高解像度画像RHはそれぞれ複数の画像である場合も含む。   The motion detection unit 102 is a processing target that generates a low-resolution image RL to be a reference image, a low-resolution image CL to be encoded, a high-resolution image RH to be a reference image, and a high-resolution motion compensation image MH, and at least a part thereof. The high-resolution image MH in which is generated is input. In addition, the high-resolution image RH is input to the motion compensation unit 101. Here, the low-resolution image RL and the high-resolution image RH that are reference images include a plurality of images.

動き検出部102では、異なる画像の組み合わせを用いて、動き検出を行う。図6は、複数の参照画像の組み合わせを用いて動き検出を行う一例を示す図である。図6に示すように参照画像が2枚ある場合には、例えば以下のような画像の組み合わせがある。   The motion detection unit 102 performs motion detection using a combination of different images. FIG. 6 is a diagram illustrating an example in which motion detection is performed using a combination of a plurality of reference images. When there are two reference images as shown in FIG. 6, for example, there are the following combinations of images.

A.低解像度画像CL(1304)←低解像度画像RL(1303)
B.低解像度画像CL(1304)と高解像度画像MH(1302)←低解像度画像RL(1303)と高解像度画像RH(1301)
C.低解像度画像CL(1304)と高解像度画像MH(1302)←低解像度画像RL(1306)と高解像度画像RH(1305)
D.高解像度画像MH(1302)←高解像度画像RH(1301)
E.高解像度画像MH(1302)←高解像度画像RH(1305)
F.低解像度画像CL(1304)と高解像度画像MH(1302)←低解像度画像RL(1303)、高解像度画像RH(1301)、低解像度画像RL(1306)、高解像度画像RH(1305)
G.高解像度画像MH(1302)←高解像度画像RH(1301)と高解像度画像RH(1305)
H.低解像度画像CL(1304)←低解像度画像RL(1306)
I.低解像度画像CL(1304)←低解像度画像RL(1303)と低解像度画像RL(1306)
A. Low resolution image CL (1304) <-Low resolution image RL (1303)
B. Low resolution image CL (1304) and high resolution image MH (1302) <-Low resolution image RL (1303) and High resolution image RH (1301)
C. Low resolution image CL (1304) and high resolution image MH (1302) <-Low resolution image RL (1306) and High resolution image RH (1305)
D. High resolution image MH (1302) <-High resolution image RH (1301)
E. High resolution image MH (1302) <-High resolution image RH (1305)
F. Low resolution image CL (1304) and high resolution image MH (1302) <-low resolution image RL (1303), high resolution image RH (1301), low resolution image RL (1306), high resolution image RH (1305)
G. High resolution image MH (1302) <-High resolution image RH (1301) and High resolution image RH (1305)
H. Low resolution image CL (1304) <-Low resolution image RL (1306)
I. Low resolution image CL (1304) <-Low resolution image RL (1303) and Low resolution image RL (1306)

ここで「X←Y」は画像Yを参照画像として画像Xの動きを検出することを意味する。また、「F」、「G」、「I」においては、2つの参照画像に対して動きを検出し、各参照画像から得られる動き補償画像の平均(または重み付け平均)を動き補償画像とすることを意味している。なお、2つの動き補償画像の平均をとるとは、2つの動き補償画像で同位置にある画素の画素値の平均を算出し、算出された画素値をその位置の画素の画素値とする動き補償画像を生成することを言う。重み付け平均とは、2つの動き補償画像の画素値にそれぞれ重み係数を乗算して加算平均することを言う。動き検出の方法は実施の形態1で説明した方法と同様であるので、説明は割愛する。   Here, “X ← Y” means that the movement of the image X is detected using the image Y as a reference image. In “F”, “G”, and “I”, motion is detected for two reference images, and an average (or weighted average) of motion compensation images obtained from each reference image is used as a motion compensation image. It means that. Note that taking the average of two motion compensation images means calculating the average of the pixel values of the pixels at the same position in the two motion compensation images and using the calculated pixel value as the pixel value of the pixel at that position. This refers to generating a compensation image. The weighted average means that the pixel values of two motion compensated images are multiplied by a weighting coefficient and added and averaged. Since the motion detection method is the same as the method described in the first embodiment, the description is omitted.

それぞれの方法で検出された動き量は、動きベクトルMVとして動き補償部101に入力される。動き補償部101では、動き検出部102で求めたそれぞれの動きベクトルを用いて動き補償画像を生成し、それを選択部801に対して出力する。動きベクトルMVを用いた動き補償画像の生成方法は、実施の形態1で説明した方法と同様であるので説明は割愛する。   The amount of motion detected by each method is input to the motion compensation unit 101 as a motion vector MV. The motion compensation unit 101 generates a motion compensated image using each motion vector obtained by the motion detection unit 102 and outputs it to the selection unit 801. A method for generating a motion compensated image using the motion vector MV is the same as the method described in the first embodiment, and thus description thereof is omitted.

選択部801には、低解像度画像CLと動き補償部101で生成された複数の動き補償画像とが入力される。選択部801では、入力された複数の動き補償画像の中から最適な動き補償画像を選択する。ここで選択の基準としては、例えば動き補償画像を低解像度画像CLと同じ解像度に縮小し、その縮小画像と低解像度画像CLとの差分値(差分絶対値和や差分二乗和)が最小となるものを選択する方法がある。または、動き補償画像と低解像度画像CLを周波数変換し、その低周波数成分同士の差分値(差分絶対値和や差分二乗和)が最小となるものを選択する方法がある。また、差分値が所定のしきい値よりも小さい値とならないような場合には、低解像度画像CLを動き補償画像と同じサイズに拡大した画像を選択しても良い。ここで、動き補償画像を選択する際には、例えば、4画素×4画素のブロック、8画素×8画素のブロック及びマクロブロックなどの正方形や長方形のブロック単位や領域単位で行う方法、全画面で行う方法がある。   The selection unit 801 receives the low resolution image CL and a plurality of motion compensated images generated by the motion compensation unit 101. The selection unit 801 selects an optimal motion compensation image from a plurality of input motion compensation images. Here, as a selection criterion, for example, the motion compensated image is reduced to the same resolution as that of the low resolution image CL, and the difference value (sum of absolute difference or sum of squared differences) between the reduced image and the low resolution image CL is minimized. There is a way to choose things. Alternatively, there is a method of frequency-converting the motion compensated image and the low-resolution image CL and selecting an image that minimizes the difference value (difference absolute value sum or difference square sum) between the low frequency components. If the difference value does not become smaller than a predetermined threshold value, an image obtained by enlarging the low resolution image CL to the same size as the motion compensated image may be selected. Here, when selecting a motion compensated image, for example, a method of performing a square or rectangular block unit or region unit such as a 4 pixel × 4 pixel block, an 8 pixel × 8 pixel block, or a macro block, or a full screen There is a way to do it.

選択された動き補償画像(または低解像度画像CLを動き補償画像と同じサイズに拡大した画像)は、動き補償画像MHとして出力される。   The selected motion compensated image (or an image obtained by enlarging the low resolution image CL to the same size as the motion compensated image) is output as a motion compensated image MH.

なお、本実施の形態の変形例においては、9つの方法で動き量を検出し、それぞれの動き量に応じた動き補償画像を生成する場合について説明したが、これは他の方法で動き量を検出しても構わないし、一部の方法のみを用いて動き量を検出しても良い。   In the modification of the present embodiment, the case has been described in which the amount of motion is detected by nine methods and a motion compensation image corresponding to each amount of motion is generated. It may be detected, or the amount of motion may be detected using only a part of the method.

以上のように、本発明の画像処理方法では、生成したい第1の高解像度画像に対応する第1の低解像度画像が予め得られている条件の下で、1枚または複数枚の参照画像となる第2の低解像度画像に対する第1の低解像度画像の動きを検出し(または第2の低解像度画像および第2の高解像度画像に対するそれぞれ第1の低解像度画像および第1の高解像度画像の動きを検出し)、検出された動きベクトルを元に第2の高解像度画像を動き補償して第1の高解像度画像を生成する。   As described above, in the image processing method of the present invention, one or more reference images and one or more reference images are obtained under the condition that the first low-resolution image corresponding to the first high-resolution image to be generated is obtained in advance. Detecting a motion of the first low resolution image relative to the second low resolution image (or of the first low resolution image and the first high resolution image, respectively, relative to the second low resolution image and the second high resolution image). Motion is detected), and the second high-resolution image is motion-compensated based on the detected motion vector to generate the first high-resolution image.

上記のような処理を1画素等の小さな領域を単位として施すことにより、高画質な第1の高解像度画像を生成することができる。またこの処理は、低解像度画像間の動き検出結果または既に生成された領域の高解像度画像間の動き検出結果を用いて行うので、画像データ以外の付加情報は全く不要である。   By performing the above processing in units of small areas such as one pixel, a first high-resolution image with high image quality can be generated. In addition, since this process is performed using a motion detection result between low-resolution images or a motion detection result between high-resolution images in an already generated region, no additional information other than image data is necessary.

(実施の形態2)
本発明の画像符号化装置について図7を用いて説明する。図7は、実施の形態1で説明した画像処理部100(または800)を用いて符号化対象高解像度画像の動き補償画像を生成する画像符号化装置の構成を示すブロック図である。この画像符号化装置では、すべてのピクチャを低解像度化して低解像度画像として符号化した上、低解像度画像の符号化の際に検出された動きベクトルを用いて高解像度画像の動き補償画像を生成する。同図に示すように、本実施の形態2の画像符号化装置は、フレームメモリ501、差分演算部502、予測誤差符号化部503、符号列生成部504、予測誤差復号部505、加算演算部506、フレームメモリ507、画面内予測/動きベクトル検出部508、モード選択部509、符号化制御部510、スイッチ514、515、画像縮小部516、フレームメモリ517、低解像度画像符号化部518、画像処理部100(または800)を備える。画像処理部100(800)は、実施の形態1で説明した図1の画像処理装置100、または実施の形態1の変形例で説明した図5の画像処理装置800、と同じ構成を有している。
(Embodiment 2)
The image coding apparatus of the present invention will be described with reference to FIG. FIG. 7 is a block diagram illustrating a configuration of an image encoding device that generates a motion compensated image of a high-resolution image to be encoded using the image processing unit 100 (or 800) described in the first embodiment. In this image encoding device, all pictures are reduced in resolution and encoded as low-resolution images, and motion-compensated images of high-resolution images are generated using the motion vectors detected when the low-resolution images are encoded. To do. As shown in the figure, the image coding apparatus according to the second embodiment includes a frame memory 501, a difference calculation unit 502, a prediction error coding unit 503, a code string generation unit 504, a prediction error decoding unit 505, and an addition calculation unit. 506, frame memory 507, intra prediction / motion vector detection unit 508, mode selection unit 509, encoding control unit 510, switches 514 and 515, image reduction unit 516, frame memory 517, low resolution image encoding unit 518, image A processing unit 100 (or 800) is provided. The image processing unit 100 (800) has the same configuration as the image processing apparatus 100 of FIG. 1 described in the first embodiment or the image processing apparatus 800 of FIG. 5 described in the modification of the first embodiment. Yes.

入力画像は時間順にピクチャ単位でフレームメモリ501に入力される。フレームメモリ501に入力された各ピクチャは、符号化制御部510により符号化順に並び替えられる。符号化順への並び替えは、ピクチャ間予測符号化における参照関係に基づいて行われる。すなわち、参照ピクチャとして用いられるピクチャが、それを参照ピクチャとして用いるピクチャよりも先に符号化されるように並び替えられる。   The input image is input to the frame memory 501 in units of pictures in time order. The pictures input to the frame memory 501 are rearranged in the encoding order by the encoding control unit 510. The rearrangement to the coding order is performed based on the reference relationship in the inter-picture predictive coding. That is, the picture used as the reference picture is rearranged so that it is encoded before the picture using it as the reference picture.

フレームメモリ501で並び替えが行われた各ピクチャは、順に符号化される。各ピクチャはまず画像縮小部516に入力される。画像縮小部516は、例えば、縦横を1/2の大きさに縮小することにより、入力されたピクチャを低解像度画像に変換する。低解像度画像は低解像度画像符号化部518でブロック単位で符号化される。低解像度画像符号化部518では、低解像度画像をJPEG方式やMPEG方式で符号化するものとする。低解像度画像符号化部518で生成された符号列には、低解像度画像を動き検出して得られた動きベクトルと、得られた動きベクトルに基づいて得られる動き補償画像との予測残差とが含まれる。低解像度画像符号化部518で生成された符号列は符号列生成部504に対して出力される。また、低解像度画像符号化部518で生成された局部復号画像(符号化対象低解像度画像を符号化し復号して得られる画像)はフレームメモリ517で保持される。   Each picture rearranged in the frame memory 501 is encoded in order. Each picture is first input to the image reduction unit 516. The image reduction unit 516 converts the input picture into a low-resolution image by reducing the vertical and horizontal sizes to ½, for example. The low resolution image is encoded by the low resolution image encoding unit 518 in units of blocks. The low resolution image encoding unit 518 encodes the low resolution image using the JPEG method or the MPEG method. The code string generated by the low resolution image encoding unit 518 includes a prediction residual between a motion vector obtained by detecting a motion of the low resolution image and a motion compensated image obtained based on the obtained motion vector. Is included. The code string generated by the low resolution image encoding unit 518 is output to the code string generation unit 504. Further, the locally decoded image generated by the low resolution image encoding unit 518 (the image obtained by encoding and decoding the encoding target low resolution image) is held in the frame memory 517.

続いてフレームメモリ501で並び替えが行われた各ピクチャは、高解像度画像として符号化される。この場合各ピクチャは、フレームメモリ501からマクロブロックの単位で読み出されるとする。ここでは、マクロブロックは水平16画素×垂直16画素の大きさであるとする。また、動き補償はブロック単位(ここでは8画素×8画素の大きさとする)単位で行うものとする。以下では、片方向予測符号化ピクチャ(Pピクチャ)として符号化を行うものとして、符号化処理を順に説明する。   Subsequently, each picture rearranged in the frame memory 501 is encoded as a high-resolution image. In this case, each picture is read from the frame memory 501 in units of macroblocks. Here, it is assumed that the macroblock has a size of horizontal 16 pixels × vertical 16 pixels. Also, motion compensation is performed in units of blocks (here, the size is 8 pixels × 8 pixels). Hereinafter, the encoding process will be described in order assuming that encoding is performed as a unidirectional predictive encoded picture (P picture).

符号化制御部510は、入力されたピクチャをどのタイプのピクチャ(I、PまたはBピクチャ)で符号化するかを決定し、そのピクチャタイプにより、スイッチ514、スイッチ515を制御する。ここで、ピクチャタイプの決定は、例えば、周期的にピクチャタイプを割り当てる方法が一般的に用いられる。ピクチャタイプの決定により、フレームメモリ501内でピクチャの符号化順序の入れ替えが行われる。   The encoding control unit 510 determines which type of picture (I, P, or B picture) to encode the input picture, and controls the switch 514 and the switch 515 according to the picture type. Here, for the determination of the picture type, for example, a method of periodically assigning a picture type is generally used. The picture coding order is changed in the frame memory 501 by determining the picture type.

Pピクチャの符号化においては、符号化制御部510は、スイッチ514、スイッチ515がオンになるように各スイッチを制御する。したがって、フレームメモリ501から読み出された符号化対象ピクチャのマクロブロックは、まず画面内予測/動きベクトル検出部508、モード選択部509、差分演算部502に入力される。   In encoding a P picture, the encoding control unit 510 controls each switch so that the switch 514 and the switch 515 are turned on. Accordingly, the macroblock of the current picture to be encoded read from the frame memory 501 is first input to the intra prediction / motion vector detection unit 508, the mode selection unit 509, and the difference calculation unit 502.

画面内予測/動きベクトル検出部508では、フレームメモリ507に蓄積された復号画像データを参照ピクチャとして用い、マクロブロック内の各ブロックに対して、画面内予測方法の決定または動きベクトルの検出を行う。ここで画面内予測とは、符号化対象ブロックの周辺画素を用いて予測画像を生成する方法である。決定された画面内予測方法または動きベクトル、および画面内予測により得られる画面内予測画像または動きベクトルにより参照画像から得られる動き補償画像は、モード選択部509に対して出力される。   The intra prediction / motion vector detection unit 508 uses the decoded image data stored in the frame memory 507 as a reference picture, and determines an intra prediction method or detects a motion vector for each block in the macroblock. . Here, intra-screen prediction is a method of generating a predicted image using peripheral pixels of the encoding target block. The determined intra prediction method or motion vector, and the motion compensated image obtained from the reference image by the intra prediction image or motion vector obtained by intra prediction are output to the mode selection unit 509.

一方、画像処理部100(800)には、フレームメモリ517から低解像度画像の参照画像RL、現在の符号化対象画像に対応する低解像度画像CLが入力され、フレームメモリ507から低解像度画像RLに対応する高解像度復号画像RHが入力される。そして画像処理部100(800)は、本発明の第1の実施の形態または第1の実施の形態の変形例で説明した方法と同様の処理により、動き補償画像MHを生成してモード選択部509に対して出力する。   On the other hand, the low-resolution image reference image RL and the low-resolution image CL corresponding to the current encoding target image are input from the frame memory 517 to the image processing unit 100 (800), and the low-resolution image RL is input from the frame memory 507. A corresponding high-resolution decoded image RH is input. Then, the image processing unit 100 (800) generates a motion compensated image MH by a process similar to the method described in the first embodiment of the present invention or the modification of the first embodiment, and a mode selection unit. 509 is output.

モード選択部509では、画面内予測/動きベクトル検出部508で検出した画面内予測方法または動きベクトルおよび取得した画面内予測画像または動き補償画像、画像処理部100(800)で生成された動き補償画像MHを用いて、マクロブロックの符号化モードを決定する。ここで符号化モードとは、マクロブロックをどのような方法で符号化するかを示すものである。例えば、Pピクチャの場合には、画面内予測符号化、動き検出部508で検出した動きベクトルにより得られる動き補償画像を用いるピクチャ間予測符号化、画像処理部100(800)で生成した動き補償画像を用いるピクチャ間予測符号化の中から、いずれの方法で符号化するかを決めることができるとする。符号化モードの決定においては、一般的には、より少ないビット量でより符号化誤差が小さくなる方法を選択する。動き検出部508で検出した動きベクトルにより得られる動き補償画像を用いるピクチャ間予測符号化の場合には、動き補償残差の符号以外に、動きベクトルの符号を符号列中に記述する必要がある。また動き補償画像は、8画素×8画素等の単位で求められた動きベクトルを用いて生成されている。画像処理部100(800)で生成した動き補償画像を用いるピクチャ間予測符号化の場合には、動き補償残差の符号のみを符号列に記述する。画像処理部100(800)で生成された動き補償画像は、低解像度画像を用いて最小1画素単位で求められた動き量を用いて生成されている。ここで、注意すべきことは、低解像度画像符号化部518では必ず低解像度画像を用いた符号化が行われ、符号列が生成されることである。本実施の形態の画像符号化装置では、低解像度画像符号化部518の処理に加えて、さらに、高解像度画像を用いた符号化が行われる。高解像度画像を用いた符号化では、モード選択部509により最も符号化効率の高い符号化が選択され、符号列が生成される。   In the mode selection unit 509, the intra-screen prediction method or motion vector detected by the intra-screen prediction / motion vector detection unit 508, the acquired intra-screen prediction image or motion compensation image, and the motion compensation generated by the image processing unit 100 (800). The coding mode of the macro block is determined using the image MH. Here, the encoding mode indicates how the macroblock is encoded. For example, in the case of a P picture, intra-picture prediction encoding, inter-picture prediction encoding using a motion compensated image obtained from a motion vector detected by the motion detection unit 508, motion compensation generated by the image processing unit 100 (800) It is assumed that it is possible to determine which method to encode from among inter-picture predictive encoding using an image. In determining the encoding mode, a method is generally selected in which the encoding error is reduced with a smaller amount of bits. In the case of inter-picture predictive coding using a motion compensated image obtained from the motion vector detected by the motion detection unit 508, it is necessary to describe the code of the motion vector in the code string in addition to the code of the motion compensation residual. . The motion compensated image is generated using a motion vector obtained in units of 8 pixels × 8 pixels or the like. In the case of inter-picture prediction encoding using a motion compensated image generated by the image processing unit 100 (800), only the code of the motion compensation residual is described in the code string. The motion-compensated image generated by the image processing unit 100 (800) is generated using a motion amount obtained in units of at least one pixel using a low-resolution image. Here, it should be noted that the low-resolution image encoding unit 518 always performs encoding using a low-resolution image and generates a code string. In the image encoding apparatus according to the present embodiment, in addition to the processing of the low resolution image encoding unit 518, encoding using a high resolution image is further performed. In encoding using a high-resolution image, the mode selection unit 509 selects the encoding with the highest encoding efficiency, and generates a code string.

モード選択部509で決定された符号化モードは符号列生成部504に対して出力される。また、動きベクトルは、モード選択部509から符号列生成部504に対して出力される。   The encoding mode determined by the mode selection unit 509 is output to the code string generation unit 504. The motion vector is output from the mode selection unit 509 to the code string generation unit 504.

次に、モード選択部509で決定された符号化モードに基づいた参照画像が、差分演算部502と加算演算部506とに出力される。   Next, a reference image based on the encoding mode determined by the mode selection unit 509 is output to the difference calculation unit 502 and the addition calculation unit 506.

以下では、モード選択部509でピクチャ間予測符号化が選択された場合について説明する。   Hereinafter, a case where inter-picture prediction coding is selected by the mode selection unit 509 will be described.

差分演算部502には、マクロブロックの画像データ以外に、モード選択部509から参照画像が入力される。差分演算部509では、マクロブロックの画像データと参照画像との差分を演算し、予測誤差画像を生成し出力する。   In addition to the image data of the macroblock, a reference image is input from the mode selection unit 509 to the difference calculation unit 502. The difference calculation unit 509 calculates the difference between the macroblock image data and the reference image, and generates and outputs a prediction error image.

予測誤差画像は予測誤差符号化部503に入力される。予測誤差符号化部503では、入力された予測誤差画像に対して周波数変換や量子化等の符号化処理を施すことにより、符号化データを生成して出力する。ここで例えば、周波数変換や量子化の処理は、水平8画素×垂直8画素の単位で行うことができる。予測誤差符号化部503から出力された符号化データは、符号列生成部504と予測誤差復号部505に入力される。   The prediction error image is input to the prediction error encoding unit 503. The prediction error encoding unit 503 generates and outputs encoded data by performing encoding processing such as frequency conversion and quantization on the input prediction error image. Here, for example, frequency conversion and quantization processing can be performed in units of 8 horizontal pixels × 8 vertical pixels. The encoded data output from the prediction error encoding unit 503 is input to the code string generation unit 504 and the prediction error decoding unit 505.

符号列生成部504では、入力された符号化データに対して、可変長符号化等を施し、さらにモード選択部509から入力された動きベクトルの情報、符号化モードの情報(具体的には、(1)画面内予測符号化、(2)画面間予測符号化、(3)本発明の低解像度画像を用いた高解像度画像生成による符号化のいずれで符号化を行ったかを示す情報)、その他のヘッダ情報、低解像度画像生成部518から入力された符号列、等を付加することにより符号列を生成する。またこの際に、ヘッダ情報として画像処理部100(800)でどのような処理方法を用いたのかを示すフラグ情報を記述しても良い。このフラグ情報は、例えば画像処理部100(800)でどのような方法で動きを検出したか、どのような方法で動き補償画像を生成し、その中からどの動き補償画像を選択したか、どのような基準で動き補償画像を選択したか、及び参照高解像度画像RH内での探索範囲をどれぐらいの範囲にするか等の情報を示すものである。図8は、画像処理部100(または800)でどのような画像処理方法を用いたのかを示すフラグ情報の記述例を示す図である。フラグ情報の記述位置の例を図8に示す。   The code string generation unit 504 performs variable-length coding or the like on the input encoded data, and further receives motion vector information and encoding mode information (specifically, input from the mode selection unit 509). (1) Intra-screen predictive coding, (2) Inter-screen predictive coding, (3) Information indicating whether encoding was performed by high-resolution image generation using the low-resolution image of the present invention), A code string is generated by adding other header information, a code string input from the low-resolution image generation unit 518, and the like. At this time, flag information indicating what processing method is used in the image processing unit 100 (800) may be described as header information. This flag information is, for example, how the motion is detected by the image processing unit 100 (800), how the motion compensated image is generated, which motion compensated image is selected, This shows information such as whether the motion compensation image is selected based on such a standard and how much the search range in the reference high-resolution image RH is set. FIG. 8 is a diagram illustrating a description example of flag information indicating what image processing method is used in the image processing unit 100 (or 800). An example of the description position of the flag information is shown in FIG.

予測誤差復号部505では、入力された符号化データに対して、逆量子化や逆周波数変換等の復号処理を施し、復号差分画像を生成して出力する。復号差分画像は加算演算部506において、予測画像と加算されることにより復号画像となり、フレームメモリ507に蓄積される。   The prediction error decoding unit 505 performs decoding processing such as inverse quantization and inverse frequency conversion on the input encoded data, and generates and outputs a decoded difference image. The decoded difference image is added to the predicted image in the addition operation unit 506 to become a decoded image, and is accumulated in the frame memory 507.

同様の処理により、符号化対象ピクチャの残りのマクロブロックに対して、符号化処理が行われる。   By the same process, the encoding process is performed on the remaining macroblocks of the encoding target picture.

以上のように本発明の画像符号化方法では、高解像度画像の符号化を行う際に、低解像度画像により求めた動きベクトルを用いて動き補償画像を生成する符号化モードを用いる。高解像度画像間の動きベクトルを用いて動き補償画像を生成する従来の符号化モードでは、動きベクトル情報を符号列中に記述する必要が生じる。また従来の符号化モードにおいて動き補償精度を向上させるためには、マクロブロック当たりの動きベクトル数を増加させる必要があるが、動きベクトル情報の符号量が更に増加することになる。本発明の符号化モードでは、動きベクトル情報を符号列中に記述する必要は全くない。したがって、動きベクトル数を増加させることにより動き補償精度を向上させ、それにより符号化効率を大きく向上させることができる。   As described above, the image encoding method of the present invention uses an encoding mode for generating a motion compensated image using a motion vector obtained from a low resolution image when encoding a high resolution image. In a conventional coding mode in which a motion compensation image is generated using a motion vector between high resolution images, it is necessary to describe motion vector information in a code string. In order to improve the motion compensation accuracy in the conventional coding mode, it is necessary to increase the number of motion vectors per macroblock, but the code amount of motion vector information further increases. In the coding mode of the present invention, there is no need to describe motion vector information in a code string. Therefore, the motion compensation accuracy can be improved by increasing the number of motion vectors, and thereby the coding efficiency can be greatly improved.

(実施の形態3)
本発明の画像復号装置の実施の形態について、図9を用いて説明する。図9は、実施の形態3の画像復号化装置の構成を示すブロック図である。本実施の形態3の画像復号化装置は、実施の形態2の画像符号化装置によって生成された符号列を復号化する画像復号化装置であって、符号列解析部701、予測誤差復号化部702、モード復号部703、画面内予測/動き補償復号部705、フレームメモリ707、加算演算部708、スイッチ711、低解像度画像復号部712、フレームメモリ713、画像処理部100(または800)を備える。以下では、Pピクチャの復号処理を一例として具体的に説明する。
(Embodiment 3)
An embodiment of the image decoding apparatus of the present invention will be described with reference to FIG. FIG. 9 is a block diagram illustrating a configuration of the image decoding apparatus according to the third embodiment. The image decoding apparatus according to the third embodiment is an image decoding apparatus that decodes a code string generated by the image encoding apparatus according to the second embodiment, and includes a code string analysis unit 701, a prediction error decoding unit, and the like. 702, a mode decoding unit 703, an intra prediction / motion compensation decoding unit 705, a frame memory 707, an addition operation unit 708, a switch 711, a low resolution image decoding unit 712, a frame memory 713, and an image processing unit 100 (or 800). . Hereinafter, the decoding process of the P picture will be specifically described as an example.

Pピクチャの符号列は符号列解析部701に入力される。符号列解析部701では、入力された符号列を低解像度画像の符号列と高解像度画像の符号列とに分離する。低解像度画像の符号列は、低解像度画像復号部712に対して出力され、低解像度画像復号部712で符号化方法に適した(JPEG方式やMPEG方式で)復号処理が施される。復号された低解像度画像はフレームメモリ713に蓄積される。   The code sequence of the P picture is input to the code sequence analysis unit 701. The code string analysis unit 701 separates the input code string into a low-resolution image code string and a high-resolution image code string. The low-resolution image code string is output to the low-resolution image decoding unit 712, and the low-resolution image decoding unit 712 performs a decoding process suitable for the encoding method (using the JPEG method or the MPEG method). The decoded low resolution image is stored in the frame memory 713.

一方、符号列解析部701で分離された高解像度画像の符号列からは、各種データが抽出される。ここで各種データとは、モード選択情報、動きベクトル情報、ヘッダ情報、等である。抽出されたモード選択の情報は、モード復号部703に対して出力される。また、抽出された動きベクトル情報は、画面内予測/動き補償復号部705に対して出力される。さらに、予測誤差符号化データは予測誤差復号部702に対して出力される。またこの際に、ヘッダ情報として符号化時に画像処理部100(800)でどのような処理方法を用いたのかを示すフラグ情報が記述されている場合、このフラグ情報を画像処理部100(800)に対して出力する。このフラグ情報は、例えば画像処理部100(800)でどのような方法で動きを検出したか、どのような方法で動き補償画像を生成し、その中からどの動き補償画像を選択したか、どのような基準で動き補償画像を選択したか、及び高解像度画像RH内での探索範囲をどれぐらいの範囲にするか等の情報を示すものである。   On the other hand, various data are extracted from the code string of the high-resolution image separated by the code string analysis unit 701. Here, the various data includes mode selection information, motion vector information, header information, and the like. The extracted mode selection information is output to mode decoding section 703. Also, the extracted motion vector information is output to the intra prediction / motion compensation decoding unit 705. Further, the prediction error encoded data is output to the prediction error decoding unit 702. At this time, when flag information indicating what kind of processing method is used in the image processing unit 100 (800) at the time of encoding is described as header information, this flag information is used as the image processing unit 100 (800). Output for. This flag information is, for example, how the motion is detected by the image processing unit 100 (800), how the motion compensated image is generated, which motion compensated image is selected, This shows information such as whether the motion compensation image has been selected based on such a criterion, and how much the search range in the high resolution image RH should be.

モード復号部703では、符号列から抽出されたモード選択の情報を参照し、スイッチ711の制御を行う。モード選択が符号列に記述された動きベクトル情報を用いるピクチャ間予測符号化である場合には、スイッチ711は端子fに接続するように制御する。またモード選択が(本発明の第1の実施の形態で説明した)低解像度画像を用いて求めた動きベクトルを用いたピクチャ間予測符号化である場合には、スイッチ711は端子eに接続するように制御する。   The mode decoding unit 703 controls the switch 711 with reference to the mode selection information extracted from the code string. When the mode selection is inter-picture prediction encoding using motion vector information described in the code string, the switch 711 controls to connect to the terminal f. When the mode selection is inter-picture predictive coding using a motion vector obtained using a low-resolution image (described in the first embodiment of the present invention), the switch 711 is connected to the terminal e. To control.

またモード復号部703では、モード選択が符号列に記述された動きベクトル情報を用いるピクチャ間予測符号化である場合には、モード選択の情報を画面内予測/動き補償復号部705に対して出力する。また、低解像度画像を用いて求めた動きベクトルを用いたピクチャ間予測符号化である場合には、モード選択の情報を画像処理部100(800)に対して出力する。   The mode decoding unit 703 outputs the mode selection information to the intra prediction / motion compensation decoding unit 705 when the mode selection is inter-picture prediction encoding using motion vector information described in the code string. To do. In addition, in the case of inter-picture predictive coding using a motion vector obtained using a low-resolution image, mode selection information is output to the image processing unit 100 (800).

予測誤差復号部702では、入力された予測誤差符号化データの復号を行い、予測誤差画像を生成する。生成された予測誤差画像は加算演算部708に対して出力される。   The prediction error decoding unit 702 decodes the input prediction error encoded data to generate a prediction error image. The generated prediction error image is output to the addition operation unit 708.

モード選択が符号列に記述された動きベクトル情報を用いたピクチャ間予測符号化である場合は、画面内予測/動き補償復号部705が処理を行う。画面内予測/動き補償復号部705は、符号列解析部701から入力された、符号化された動きベクトルに対して、復号処理を行う。そして、復号された参照ピクチャ番号と動きベクトルとに基づいて、フレームメモリ707から動き補償画像(ブロック)を取得する。このようにして生成された動き補償画像は加算演算部708に対して出力される。   When the mode selection is inter-picture prediction coding using motion vector information described in the code string, the intra-frame prediction / motion compensation decoding unit 705 performs processing. The intra-screen prediction / motion compensation decoding unit 705 performs a decoding process on the encoded motion vector input from the code string analysis unit 701. Then, a motion compensated image (block) is acquired from the frame memory 707 based on the decoded reference picture number and motion vector. The motion compensated image generated in this way is output to the addition operation unit 708.

モード選択が低解像度画像を用いて求めた動きベクトルを用いたピクチャ間予測符号化である場合には、画像処理部100(800)が処理を行う。画像処理部100(800)には、フレームメモリ713から低解像度画像の参照画像RL、現在の復号対象画像に対応する低解像度画像CLが入力され、フレームメモリ707から低解像度画像RLに対応する高解像度復号画像RHが入力される。そして画像処理部100(800)は、本発明の第1の実施の形態またはその変形例で説明した方法と同様の処理により動き補償画像MHを生成する。生成された動き補償画像MHは、スイッチ711を通して加算演算部708に対して出力される。   When the mode selection is inter-picture predictive coding using a motion vector obtained using a low-resolution image, the image processing unit 100 (800) performs processing. The low-resolution image reference image RL and the low-resolution image CL corresponding to the current decoding target image are input from the frame memory 713 to the image processing unit 100 (800), and the high-resolution image RL corresponding to the low-resolution image RL is input from the frame memory 707. The resolution decoded image RH is input. Then, the image processing unit 100 (800) generates the motion compensated image MH by a process similar to the method described in the first embodiment of the present invention or the modification thereof. The generated motion compensated image MH is output to the addition operation unit 708 through the switch 711.

加算演算部708では、入力された予測誤差画像と動き補償画像とを加算し、復号化画像を生成する。生成された復号化画像はフレームメモリ707に対して出力される。   The addition operation unit 708 adds the input prediction error image and the motion compensated image to generate a decoded image. The generated decoded image is output to the frame memory 707.

以上のようにして、Pピクチャのマクロブロックが順に復号される。復号対象ピクチャのマクロブロックがすべて復号されると、次のピクチャの復号処理が行われる。   As described above, the macroblocks of the P picture are sequentially decoded. When all the macroblocks of the decoding target picture are decoded, the decoding process for the next picture is performed.

以上のように本発明の画像復号方法では、低解像度画像と高解像度画像とが両方符号化された符号列から、低解像度画像を復号し、さらに高解像度画像の復号を行う際に、低解像度画像により画素単位で求めた動きベクトルを用いて動き補償画像を生成する符号化モードを用いる。高解像度画像間の動きベクトルを用いて動き補償画像を生成する従来の符号化モードでは、動きベクトル情報を符号列中に記述する必要が生じる。また従来の符号化モードにおいて動き補償精度を向上させるためには、マクロブロック当たりの動きベクトル数を増加させる必要があるが、動きベクトル情報の符号量が更に増加することになる。本発明の符号化モードでは、復号化された低解像度画像を用いて、画像符号化装置と画像復号化装置とで同じ方法により動きベクトルを検出するので、動きベクトル情報を符号列中に記述する必要は全くない。したがって、マクロブロック当たりの動きベクトル数を増加したとしても、符号量の増加を招くことがない。そして、低解像度画像を用いて画素単位で動きベクトルを検出することにより、動きベクトル数を増加させ、動き補償精度を向上させることができる。それにより本発明の画像符号化装置及び画像復号化装置は、符号量の増加を招くことなく動き補償の精度を向上し高解像度画像を得ることができるので、符号化効率を大きく向上させることができる。   As described above, in the image decoding method of the present invention, when a low resolution image is decoded from a code string in which both a low resolution image and a high resolution image are encoded, and further, a high resolution image is decoded, An encoding mode is used in which a motion compensated image is generated using a motion vector obtained for each pixel from an image. In a conventional coding mode in which a motion compensation image is generated using a motion vector between high resolution images, it is necessary to describe motion vector information in a code string. In order to improve the motion compensation accuracy in the conventional coding mode, it is necessary to increase the number of motion vectors per macroblock, but the code amount of motion vector information further increases. In the coding mode of the present invention, since the motion vector is detected by the same method in the image coding apparatus and the image decoding apparatus using the decoded low-resolution image, the motion vector information is described in the code string. There is no need. Therefore, even if the number of motion vectors per macroblock is increased, the code amount is not increased. Then, by detecting a motion vector for each pixel using a low-resolution image, the number of motion vectors can be increased, and motion compensation accuracy can be improved. As a result, the image coding apparatus and the image decoding apparatus according to the present invention can improve the accuracy of motion compensation and obtain a high-resolution image without causing an increase in the amount of codes, so that the coding efficiency can be greatly improved. it can.

(実施の形態4)
本発明の画像符号化装置について図10を用いて説明する。図10は、本実施の形態4の画像符号化装置900の構成を示すブロック図である。本実施の形態の画像符号化装置900は、入力画像のうちの一部の画像を縮小して符号化する際に、低解像度で符号化されたピクチャが高解像度で符号化されるピクチャに参照される場合に、実施の形態1で説明した方法で画像処理部100(または800)によって動き補償高解像度画像を生成する画像符号化装置であって、フレームメモリ901、差分演算部902、予測誤差符号化部903、符号列生成部904、予測誤差復号部905、加算演算部906、フレームメモリ907、画面内予測/動きベクトル検出部908、モード選択部909、符号化制御部910、スイッチ914〜917、画像縮小部918、画像縮小部919、画像処理部100(または800)を備える。画像処理部100(または800)は、実施の形態1で説明した図1の画像処理装置100、または実施の形態1の変形例で説明した図5の画像処理装置800と同じ構成を有している。
(Embodiment 4)
The image encoding apparatus of the present invention will be described with reference to FIG. FIG. 10 is a block diagram showing a configuration of image coding apparatus 900 according to the fourth embodiment. The image encoding apparatus 900 according to the present embodiment refers to a picture encoded at a low resolution as a picture encoded at a high resolution when a part of the input image is reduced and encoded. In this case, the image coding apparatus generates a motion-compensated high-resolution image by the image processing unit 100 (or 800) by the method described in Embodiment 1, and includes a frame memory 901, a difference calculation unit 902, a prediction error Encoding unit 903, code sequence generation unit 904, prediction error decoding unit 905, addition operation unit 906, frame memory 907, intra prediction / motion vector detection unit 908, mode selection unit 909, encoding control unit 910, switches 914 to 917, an image reduction unit 918, an image reduction unit 919, and an image processing unit 100 (or 800). The image processing unit 100 (or 800) has the same configuration as the image processing apparatus 100 in FIG. 1 described in the first embodiment or the image processing apparatus 800 in FIG. 5 described in the modification of the first embodiment. Yes.

同図において、符号化制御部910は、請求項でいう「符号化対象ピクチャのピクチャタイプに応じて、前記符号化対象ピクチャを高解像度画像として符号化するか、低解像度画像として符号化するかを判定する符号化制御手段」に相当し、画像縮小部917は、請求項でいう「前記符号化制御手段によって低解像度画像として符号化すると判定された符号化対象ピクチャを低解像度化する第1の画像縮小手段」に相当し、画像縮小部1001は、請求項でいう「前記符号化制御手段によって低解像度画像として符号化すると判定された符号化対象ピクチャが、高解像度画像として符号化されたピクチャを参照ピクチャとする場合、高解像度画像として符号化された前記参照ピクチャを低解像度化する第2の画像縮小手段」に相当し、動き検出部908、モード選択部909、差分演算部902及び予測残差符号化部903は、請求項でいう「前記第1の画像縮小手段によって低解像度化された符号化対象ピクチャを、前記第2の画像縮小手段によって低解像度化された前記参照ピクチャを参照して符号化する符号化手段」に相当する。   In this figure, the encoding control unit 910 refers to the claim “whether the encoding target picture is encoded as a high resolution image or a low resolution image according to the picture type of the encoding target picture. The image reduction unit 917 corresponds to the “encoding control means for determining the encoding target picture that is determined to be encoded as a low resolution image by the encoding control means” in the claims. The image reduction unit 1001 corresponds to the image reduction unit 1001 in the claims, and the encoding target picture determined to be encoded as a low resolution image by the encoding control unit is encoded as a high resolution image. When a picture is used as a reference picture, it corresponds to “second image reduction means for reducing the resolution of the reference picture encoded as a high-resolution image”, and motion detection is performed. The unit 908, the mode selection unit 909, the difference calculation unit 902, and the prediction residual encoding unit 903 are referred to in the claims as "the encoding target picture that has been reduced in resolution by the first image reduction unit, This corresponds to “encoding means for encoding with reference to the reference picture whose resolution has been reduced by the image reducing means”.

また、画像処理部100(または800)は、請求項でいう「前記符号化制御ステップによって高解像度画像として符号化すると判定された符号化対象ピクチャが、低解像度画像として符号化されたピクチャを参照ピクチャとする場合、前記低解像度画像として符号化された前記参照ピクチャを高解像度化する画像処理ステップ」を実行する手段に相当し、フレームメモリ907、画面内予測/動き検出部908、モード選択部909、差分演算部902及び予測誤差符号化部903は、請求項でいう「前記画像処理ステップによって高解像度化された前記参照ピクチャを参照して、前記符号化対象ピクチャを符号化する前記符号化ステップ」を実行する手段に相当する。   Further, the image processing unit 100 (or 800) refers to a picture in which an encoding target picture determined to be encoded as a high-resolution image by the encoding control step is encoded as a low-resolution image. In the case of a picture, it corresponds to means for executing an “image processing step for increasing the resolution of the reference picture encoded as the low-resolution image”, and includes a frame memory 907, an intra-screen prediction / motion detection unit 908, and a mode selection unit. 909, the difference calculation unit 902, and the prediction error encoding unit 903 are referred to in the claims as "the encoding that encodes the encoding target picture with reference to the reference picture that has been increased in resolution by the image processing step" It corresponds to a means for executing “step”.

さらに、画像処理部100(または800)は、請求項でいう「前記参照ピクチャとされたピクチャであって低解像度画像として符号化された第1の低解像度画像につき、前記参照ピクチャが低解像度画像として符号化されるとき参照した第2の低解像度画像を探索して、1又は複数の画素単位で動きベクトルを検出し、検出された前記動きベクトルを用いて、前記第2の低解像度画像に対応する第2の高解像度画像の画素値を取得し、前記第1の低解像度画像に対応する第1の高解像度画像を生成する前記画像処理ステップ」を実行する手段に相当する。   Furthermore, the image processing unit 100 (or 800) refers to “a reference picture in which the reference picture is a low-resolution image for a first low-resolution image encoded as a low-resolution image”. The second low-resolution image referred to when the image is encoded is searched, a motion vector is detected in units of one or a plurality of pixels, and the second low-resolution image is detected using the detected motion vector. This corresponds to a unit that acquires the pixel value of the corresponding second high-resolution image and generates the first high-resolution image corresponding to the first low-resolution image.

また、画像処理部100(または800)は、別の請求項でいう「さらに、前記第1の高解像度画像の生成済みの画素につき、第2の高解像度画像を探索して、1又は複数の画素単位で動きベクトルを検出し、検出された前記動きベクトルを用いて、第2の高解像度画像の画素値を取得し、前記第1の高解像度画像内で同じ位置にある画素について取得された画素値の平均値を当該画素の画素値とする前記画像処理ステップ」を実行する手段に相当する。   Further, the image processing unit 100 (or 800) says in another claim, “Furthermore, for the already generated pixels of the first high-resolution image, the second high-resolution image is searched and one or more A motion vector is detected in units of pixels, and a pixel value of the second high-resolution image is obtained using the detected motion vector, and obtained for pixels at the same position in the first high-resolution image. This corresponds to means for executing the “image processing step” using the average value of the pixel values as the pixel value of the pixel.

図11(a)は、高解像度画像からなる動画像の入力画像を示す図である。入力画像列の例を図11(a)に示す。ここで、各画像に付与した先頭の記号はピクチャタイプ(I:画面内予測符号化ピクチャ、P:一方向画面間予測符号化ピクチャ、B:二方向画面間予測符号化ピクチャ)を示し、数字は表示順番号を示す。   FIG. 11A is a diagram illustrating an input image of a moving image composed of a high resolution image. An example of the input image sequence is shown in FIG. Here, the head symbol given to each image indicates a picture type (I: intra prediction encoding picture, P: unidirectional inter prediction encoding picture, B: bi directional prediction encoding picture) Indicates a display order number.

入力画像は表示順にピクチャ単位でフレームメモリ901に入力される。フレームメモリ901に入力された各ピクチャは、符号化順に並び替えられる。符号化順への並び替えは、ピクチャ間予測符号化における参照関係に基づいて行われ、参照ピクチャとして用いられるピクチャが、参照ピクチャとして用いるピクチャよりも先に符号化されるように並び替える。例えば、Pピクチャは直前の一枚のIまたはPピクチャのみを参照し、Bピクチャは直前および直後に位置する一枚ずつのIまたはPピクチャを参照するとした場合、ピクチャの符号化順序は、I0、P3、B1、B2、P6、B4、B5、...のようになる。   The input image is input to the frame memory 901 in picture units in the display order. Each picture input to the frame memory 901 is rearranged in the encoding order. The rearrangement to the coding order is performed based on the reference relationship in the inter-picture predictive coding, and the rearrangement is performed so that the picture used as the reference picture is encoded before the picture used as the reference picture. For example, if the P picture refers to only the immediately preceding I or P picture and the B picture refers to the immediately preceding and immediately following I or P pictures, the encoding order of the pictures is I0 , P3, B1, B2, P6, B4, B5,. . . become that way.

フレームメモリ901で並び替えが行われた各ピクチャは順に符号化されるが、符号化に先立って特定のピクチャに対しては画像縮小部918において低解像度画像への変換が施される。図11(b)は、IピクチャとPピクチャとを高解像度画像として符号化する場合の解像度切替の例を示す図である。図11(c)は、Iピクチャのみを高解像度画像として符号化する場合の解像度切替の例を示す図である。ここでは図11(b)に示すように、I、Pピクチャにおいては解像度を変換せず、Bピクチャに対しては低解像度に変換を行うものとする。または図11(c)に示すように、Iピクチャにおいては解像度を変換せず、P、Bピクチャに対しては低解像度に変換を行うものとする。なお、どのピクチャタイプに対して低解像度で符号化を行い、どのピクチャタイプに対して高解像度で符号化を行うかは、あらかじめ符号化制御部910に記憶されており、符号化制御部910はその記憶内容に従って各ピクチャにつきいずれの解像度で符号化を行うかを制御するものとする。またここでは水平、垂直共に1/2の大きさに解像度変換している場合を示しているが、解像度変換の比は他の値であっても構わない。またピクチャタイプの決定は、符号化制御部910によりなされるものとする。   Each picture that has been rearranged in the frame memory 901 is encoded in order, but a specific picture is converted into a low-resolution image in the image reduction unit 918 prior to encoding. FIG. 11B is a diagram illustrating an example of resolution switching when an I picture and a P picture are encoded as high resolution images. FIG. 11C is a diagram illustrating an example of resolution switching when only an I picture is encoded as a high resolution image. Here, as shown in FIG. 11B, it is assumed that the resolution is not converted for the I and P pictures and the low resolution is converted for the B picture. Alternatively, as shown in FIG. 11C, it is assumed that the resolution is not converted for the I picture, and the conversion is made to the low resolution for the P and B pictures. Note that which picture type is to be encoded at a low resolution and which picture type is to be encoded at a high resolution is stored in advance in the encoding control unit 910, and the encoding control unit 910 It is assumed that at which resolution each picture is encoded according to the stored contents. Further, here, a case is shown in which the resolution conversion is performed to a size of ½ both in the horizontal and vertical directions, but the ratio of resolution conversion may be another value. The picture type is determined by the encoding control unit 910.

続いて、符号化対象の高解像度ピクチャはフレームメモリ901からマクロブロックの単位で読み出されるとする。ここでは、マクロブロックは例えば水平16画素×垂直16画素の大きさであるとする。   Subsequently, it is assumed that a high-resolution picture to be encoded is read from the frame memory 901 in units of macroblocks. Here, it is assumed that the macroblock has a size of, for example, horizontal 16 pixels × vertical 16 pixels.

フレームメモリ901から読み出された符号化対象高解像度ピクチャのマクロブロックは、まず動きベクトル検出部908、モード選択部909、差分演算部902に入力される。   The macroblock of the high-resolution picture to be encoded read from the frame memory 901 is first input to the motion vector detection unit 908, the mode selection unit 909, and the difference calculation unit 902.

画面内予測/動きベクトル検出部908では、フレームメモリ907に蓄積された高解像度復号画像データを参照ピクチャとして用い、マクロブロック内の各ブロックに対して、画面内予測または動きベクトル検出を行う。画面内予測方法または検出された動きベクトル、および画面内予測または動きベクトルにより参照高解像度画像から得られる動き補償高解像度画像は、モード選択部909に対して出力される。   The intra-screen prediction / motion vector detection unit 908 performs intra-screen prediction or motion vector detection for each block in the macroblock using the high-resolution decoded image data stored in the frame memory 907 as a reference picture. The motion compensation high-resolution image obtained from the reference high-resolution image by the intra-screen prediction method or the detected motion vector and the intra-screen prediction or motion vector is output to the mode selection unit 909.

モード選択部909では、画面内予測/動きベクトル検出部908で検出した画面内予測方法または動きベクトル、および取得した動き補償高解像度画像を用いて、マクロブロックの符号化モードを決定する。ここで符号化モードとは、マクロブロックをどのような方法で符号化するかを示すものである。例えば、Iピクチャの場合には画面内予測符号化が用いられるとする。P、Bピクチャの場合には、画面内予測符号化、動きベクトルにより得られる動き補償画像を用いるピクチャ間予測符号化、縮小された低解像度画像を用いる低解像度符号化の中から、いずれの方法で符号化するかを決めることができるとする。符号化モードの決定においては、一般的には、より少ないビット量でより符号化誤差が小さくなる方法を選択する。画面内予測符号化の場合には、画面内予測符号化方法を示す符号を符号列中に記述する必要がある。ピクチャ間予測符号化の場合には、低解像度でも高解像度でも動きベクトルを表す符号化データを符号列中に記述する必要がある。   The mode selection unit 909 determines a macroblock coding mode using the intra-screen prediction method or motion vector detected by the intra-screen prediction / motion vector detection unit 908 and the acquired motion compensated high resolution image. Here, the encoding mode indicates how the macroblock is encoded. For example, in the case of an I picture, it is assumed that intra prediction encoding is used. In the case of P and B pictures, any one of intra prediction encoding, inter picture predictive encoding using a motion compensated image obtained from a motion vector, and low resolution encoding using a reduced low resolution image is used. It is possible to decide whether to encode with. In determining the encoding mode, a method is generally selected in which the encoding error is reduced with a smaller amount of bits. In the case of intra prediction encoding, it is necessary to describe a code indicating an intra prediction encoding method in a code string. In the case of inter-picture predictive coding, coded data representing a motion vector needs to be described in a code string at both low resolution and high resolution.

モード選択部909で決定された符号化モードは符号列生成部904に対して出力される。また、画面内予測方法または動きベクトルは、モード選択部909から符号列生成部904に対して出力される。次に、モード選択部509で決定された符号化モードに基づいた参照画像が、差分演算部902とスイッチ909とに出力される。   The encoding mode determined by the mode selection unit 909 is output to the code string generation unit 904. Further, the intra-screen prediction method or motion vector is output from the mode selection unit 909 to the code string generation unit 904. Next, a reference image based on the encoding mode determined by the mode selection unit 509 is output to the difference calculation unit 902 and the switch 909.

差分演算部902には、マクロブロックの画像データ以外に、モード選択部909から参照画像が入力される。差分演算部909では、マクロブロックの画像データと参照画像との差分を演算し、予測誤差画像を生成し出力する。   In addition to the macroblock image data, a reference image is input from the mode selection unit 909 to the difference calculation unit 902. The difference calculation unit 909 calculates the difference between the macroblock image data and the reference image, and generates and outputs a prediction error image.

予測誤差画像は予測誤差符号化部903に入力される。予測誤差符号化部903では、入力された予測誤差画像に対して周波数変換や量子化等の符号化処理を施すことにより、符号化データを生成して出力する。ここで例えば、周波数変換や量子化の処理は、水平8画素×垂直8画素の単位で行うことができる。予測誤差符号化部903から出力された符号化データは、符号列生成部904とスイッチ915に入力される。   The prediction error image is input to the prediction error encoding unit 903. The prediction error encoding unit 903 generates and outputs encoded data by performing encoding processing such as frequency conversion and quantization on the input prediction error image. Here, for example, frequency conversion and quantization processing can be performed in units of 8 horizontal pixels × 8 vertical pixels. The encoded data output from the prediction error encoding unit 903 is input to the code string generation unit 904 and the switch 915.

符号列生成部904では、入力された符号化データに対して、可変長符号化等を施し、さらにモード選択部909から入力された符号化モードの情報、画面内予測方法または動きベクトルの情報、その他のヘッダ情報等を付加することにより符号列を生成する。   The code string generation unit 904 performs variable length coding or the like on the input encoded data, and further, the encoding mode information input from the mode selection unit 909, the intra prediction method or motion vector information, A code string is generated by adding other header information and the like.

符号化制御部910は、ピクチャタイプにより、スイッチ914、スイッチ915を制御する。他のピクチャの参照画像として用いられるI、Pピクチャの符号化においては、符号化制御部910は、スイッチ914、スイッチ915がオンになるように各スイッチを制御する。また、他のピクチャの参照画像として用いられないBピクチャの符号化においては、符号化制御部910は、スイッチ914、スイッチ915がオフになるように各スイッチを制御する。よって、ピクチャタイプがIまたはPピクチャである場合、以下の処理が行われる。   The encoding control unit 910 controls the switch 914 and the switch 915 according to the picture type. In encoding I and P pictures used as reference images for other pictures, the encoding control unit 910 controls each switch so that the switches 914 and 915 are turned on. Also, in encoding a B picture that is not used as a reference image for other pictures, the encoding control unit 910 controls each switch so that the switches 914 and 915 are turned off. Therefore, when the picture type is I or P picture, the following processing is performed.

予測誤差復号部905では、入力された符号化データに対して、逆量子化や逆周波数変換等の復号処理を施し、復号差分画像を生成して出力する。復号差分画像は加算演算部906において、予測画像と加算されることにより復号画像となり、スイッチ916に入力される。   The prediction error decoding unit 905 performs decoding processing such as inverse quantization and inverse frequency conversion on the input encoded data, and generates and outputs a decoded difference image. The decoded difference image is added to the predicted image in the addition operation unit 906 to become a decoded image, and is input to the switch 916.

符号化制御部910は、符号化対象ピクチャが画像縮小部918で解像度変換されている場合には、スイッチ916を端子lに、スイッチ917を端子jに接続する。この場合、スイッチ916に入力された画像は、画像処理部100(800)において本発明の第1の実施の形態または第1の実施の形態の変形例で説明した方法と同様の方法により処理され、入力画像INと同じ解像度に拡大されて動き補償画像MHとしてスイッチ917に対して出力される。ここで、高解像度画像の参照画像RHはフレームメモリ907から得られ、低解像度画像の参照画像RLは高解像度画像RHを画像縮小部919で解像度変換することにより得られ、低解像度画像CLはスイッチ916を介して得られる。例えば、図11(b)のピクチャB4を高解像度化する場合には、高解像度画像RHとしてピクチャI0、P3、P6のすべてまたは一部を用いれば良い。また、図11(c)のピクチャB4を高解像度化する場合には、高解像度画像RHとしてピクチャI0を用いれば良い。   The encoding control unit 910 connects the switch 916 to the terminal l and the switch 917 to the terminal j when the resolution of the encoding target picture is converted by the image reduction unit 918. In this case, the image input to the switch 916 is processed by the image processing unit 100 (800) by a method similar to the method described in the first embodiment of the present invention or the modification of the first embodiment. The image is enlarged to the same resolution as the input image IN and is output to the switch 917 as the motion compensated image MH. Here, the reference image RH of the high resolution image is obtained from the frame memory 907, the reference image RL of the low resolution image is obtained by converting the resolution of the high resolution image RH by the image reduction unit 919, and the low resolution image CL is the switch 916. For example, when the resolution of the picture B4 in FIG. 11B is increased, all or part of the pictures I0, P3, and P6 may be used as the high-resolution image RH. Further, when the resolution of the picture B4 in FIG. 11C is increased, the picture I0 may be used as the high-resolution image RH.

また、図示しない例でいえば、I0、P3、B1、B2の順で符号化されるピクチャのうち、ピクチャI0とピクチャB2とが高解像度で符号化され、ピクチャP3とピクチャB1とが低解像度で符号化されるとした場合について説明する。ピクチャI0は、高解像度入力画像のまま画面内予測符号化される。次にピクチャP3が画像縮小部918で縮小され、低解像度化される。このピクチャP3は、ピクチャI0を参照して符号化されるため、ピクチャP3の参照ピクチャとなるピクチャI0は、画像縮小部919で縮小されフレームメモリ907に格納される。ピクチャP3は画面内予測/動き検出部908で動き検出され、ピクチャP3の動き補償低解像度画像がモード選択部909を介して、差分演算部902に入力される。差分演算部902では低解像度化されたピクチャP3と動き補償低解像度画像との残差が求められ、予測残差符号化部903で符号化される。符号化された低解像度ピクチャP3の残差はスイッチ915を介して予測残差復号化部905で復号化され、復号化差分画像が生成される。符号化差分画像は、加算演算部906でピクチャP3の動き補償低解像度画像と加算され、局部復号画像が求められる。得られた局部復号画像はスイッチ916とスイッチ917とを介して、フレームメモリ907に蓄積される。   Further, in an example not shown, among pictures encoded in the order of I0, P3, B1, and B2, picture I0 and picture B2 are encoded with high resolution, and picture P3 and picture B1 are low resolution. A case will be described where encoding is performed in the above. The picture I0 is subjected to intra-frame predictive encoding with a high-resolution input image. Next, the picture P3 is reduced by the image reduction unit 918 to reduce the resolution. Since the picture P3 is encoded with reference to the picture I0, the picture I0 serving as the reference picture of the picture P3 is reduced by the image reduction unit 919 and stored in the frame memory 907. The motion of the picture P3 is detected by the in-screen prediction / motion detection unit 908, and the motion compensated low resolution image of the picture P3 is input to the difference calculation unit 902 via the mode selection unit 909. The difference calculation unit 902 obtains the residual between the low-resolution picture P3 and the motion compensated low-resolution image, and the prediction residual encoding unit 903 encodes the residual. The residual of the encoded low-resolution picture P3 is decoded by the prediction residual decoding unit 905 via the switch 915, and a decoded difference image is generated. The encoded difference image is added to the motion-compensated low-resolution image of the picture P3 by the addition calculation unit 906, and a local decoded image is obtained. The obtained locally decoded image is stored in the frame memory 907 via the switch 916 and the switch 917.

ここで、低解像度画像であるピクチャP3の局部復号画像は、高解像度で符号化されるピクチャB2に参照される。このため、ピクチャP3は画像処理部100(または800)で高解像度化されフレームメモリ907に格納される。この場合、低解像度画像CLであるピクチャP3の参照高解像度画像RHは、フレームメモリ907に蓄積されているピクチャI0である。また、ピクチャP3の参照低解像度画像RLは、フレームメモリから読み出されたピクチャI0を画像縮小部919で縮小して得られる。以下、実施の形態1で説明した方法により、これらの低解像度画像CL、参照低解像度画像RL及び参照高解像度画像RHを用いて、ピクチャP3の動き補償高解像度画像MHを得ることができる。この結果、高解像度で符号化されるピクチャB2は、フレームメモリ907に格納されている高解像度ピクチャI0と、高解像度ピクチャP3(動き補償高解像度画像MH)とを参照して、動き検出及び動き補償を行うことができる。   Here, the locally decoded image of the picture P3, which is a low-resolution image, is referred to by a picture B2 that is encoded at a high resolution. Therefore, the picture P3 is increased in resolution by the image processing unit 100 (or 800) and stored in the frame memory 907. In this case, the reference high resolution image RH of the picture P3 which is the low resolution image CL is the picture I0 stored in the frame memory 907. Further, the reference low resolution image RL of the picture P3 is obtained by reducing the picture I0 read from the frame memory by the image reduction unit 919. Hereinafter, the motion-compensated high-resolution image MH of the picture P3 can be obtained by using the low-resolution image CL, the reference low-resolution image RL, and the reference high-resolution image RH by the method described in the first embodiment. As a result, the picture B2 encoded with high resolution is referred to the high-resolution picture I0 stored in the frame memory 907 and the high-resolution picture P3 (motion-compensated high-resolution image MH). Compensation can be performed.

また符号化制御部910は、符号化対象ピクチャが画像縮小部918で解像度変換されていない場合には、スイッチ916を端子kに、スイッチ917を端子iに接続する。よってこの場合は、スイッチ916に入力された画像は何も処理されないままスイッチ917から出力される。   The encoding control unit 910 connects the switch 916 to the terminal k and the switch 917 to the terminal i when the resolution of the encoding target picture has not been converted by the image reduction unit 918. Therefore, in this case, the image input to the switch 916 is output from the switch 917 without any processing.

スイッチ917から出力された画像は、フレームメモリ907に蓄積される。
同様の処理により、符号化対象ピクチャの残りのマクロブロックに対して、符号化処理が行われる。
The image output from the switch 917 is stored in the frame memory 907.
By the same process, the encoding process is performed on the remaining macroblocks of the encoding target picture.

以上のように本発明の画像符号化方法では、高解像度画像の符号化を行う際に、一部の画像を低解像度化し符号化する。そして低解像度化して符号化した画像は、本発明の画像処理方法により高解像度化した後、他のピクチャを符号化する際の参照画像として用いられる。   As described above, in the image encoding method of the present invention, when encoding a high resolution image, a part of the image is reduced in resolution and encoded. Then, the image that has been reduced in resolution and encoded is used as a reference image when encoding another picture after the resolution is increased by the image processing method of the present invention.

本発明の画像符号化方法を用いることにより、入力画像を低解像度化するため符号量の大幅な削減を行うことができる。また、一度低解像度化した画像を復号後に本発明の画像処理方法により高画質な高解像度画像に変換するため、一度低解像度化された画像を参照画像として用いる場合でも低解像度化しない画像を参照画像として用いる場合と比較して、動き補償効率がほとんど低下しない。よって、総合的に符号化効率の大幅な向上を図ることができる。   By using the image encoding method of the present invention, the amount of code can be greatly reduced in order to reduce the resolution of an input image. In addition, since an image once reduced in resolution is converted into a high-resolution image with high image quality by the image processing method of the present invention after decoding, even when an image once reduced in resolution is used as a reference image, an image that does not reduce in resolution is referred to Compared with the case of using as an image, the motion compensation efficiency is hardly lowered. Therefore, it is possible to comprehensively improve the coding efficiency comprehensively.

なお、本実施の形態においては、他のピクチャを符号化する際の参照ピクチャとなるピクチャに対してのみ、スイッチ915をオンにして復号画像を生成する場合について説明したが、これは画像処理部100(800)において高解像度化処理を行う際の参照画像として用いられる画像についてもスイッチ915をオンにして復号画像を生成しても良い。   In the present embodiment, a case has been described in which a decoded image is generated by turning on the switch 915 only for a picture that becomes a reference picture when other pictures are encoded. The decoded image may be generated by turning on the switch 915 for an image used as a reference image when the resolution enhancement processing is performed at 100 (800).

(実施の形態4の変形例)
実施の形態4の変形例について図12を用いて説明する。図12は、本実施の形態4の変形例である画像符号化装置1000の構成を示すブロック図である。画像符号化装置1000は、図10の画像符号化装置900から、スイッチ917、918、画像処理部100(800)、画像縮小部919を取り除き、画像縮小部1001を追加した構成となっている。
(Modification of Embodiment 4)
A modification of the fourth embodiment will be described with reference to FIG. FIG. 12 is a block diagram showing a configuration of an image coding apparatus 1000 that is a modification of the fourth embodiment. The image encoding apparatus 1000 has a configuration in which the switches 917 and 918, the image processing unit 100 (800), and the image reducing unit 919 are removed from the image encoding apparatus 900 of FIG. 10 and an image reducing unit 1001 is added.

実施の形態4と異なる点は、この変形例では、高解像度画像として符号化されるピクチャが、低解像度画像として符号化されたピクチャを参照画像とすることがない点である。このため、低解像度で符号化され、局部復号された画像は高解像度化されることなく、フレームメモリ907に蓄積される。そして、高解像度画像として符号化されたピクチャが、低解像度画像として符号化されるピクチャの参照画像として用いられる場合には、フレームメモリ907に蓄積された復号画像は、画像縮小部1001で縮小処理を施されてフレームメモリ907に再度蓄積され、参照画像として用いられる。例えば、図11(b)のピクチャI0は、高解像度画像のままその復号画像がフレームメモリ907に一旦蓄積される。そしてピクチャP3の符号化の際には、ピクチャI0の復号画像は解像度変換を施さずに参照ピクチャとして用いられ、ピクチャP3の復号画像は高解像度画像のままフレームメモリ907に一旦蓄積される。ピクチャB1は低解像度に変換されて符号化されるので、ピクチャI0、P3の復号画像は画像縮小部1001で縮小処理を施されてからピクチャB1の参照画像として用いられる。図11(c)の場合も同様で、Iピクチャのみが高解像度画像として符号化され、Pピクチャ及びBピクチャは低解像度画像として符号化される。この場合も、Iピクチャが他のピクチャに参照されるときに低解像度化が必要であるだけで、ピクチャの高解像度化は不要となる。   The difference from the fourth embodiment is that in this modification, a picture encoded as a high-resolution image does not use a picture encoded as a low-resolution image as a reference image. For this reason, an image encoded at a low resolution and locally decoded is stored in the frame memory 907 without being increased in resolution. When a picture encoded as a high resolution image is used as a reference image of a picture encoded as a low resolution image, the decoded image stored in the frame memory 907 is reduced by the image reduction unit 1001. And stored again in the frame memory 907 and used as a reference image. For example, the decoded image of the picture I0 in FIG. 11B is temporarily stored in the frame memory 907 as a high-resolution image. When the picture P3 is encoded, the decoded picture of the picture I0 is used as a reference picture without performing resolution conversion, and the decoded picture of the picture P3 is temporarily stored in the frame memory 907 as a high-resolution picture. Since the picture B1 is converted to low resolution and encoded, the decoded images of the pictures I0 and P3 are used as a reference image of the picture B1 after being subjected to reduction processing by the image reduction unit 1001. Similarly in the case of FIG. 11C, only the I picture is encoded as a high resolution image, and the P picture and the B picture are encoded as a low resolution image. Also in this case, it is only necessary to reduce the resolution when the I picture is referred to by another picture, and it is not necessary to increase the resolution of the picture.

ここで、符号化制御部910は、請求項でいう「Bピクチャは他のピクチャから参照されないことを前提として、IピクチャとPピクチャとを高解像度画像として符号化し、Bピクチャを低解像度画像として符号化すると判定する前記符号化制御ステップ」を実行する手段に相当する。   Here, the encoding control section 910 encodes the I picture and the P picture as a high resolution image on the assumption that the B picture is not referred to by other pictures, and the B picture as a low resolution image. This corresponds to means for executing the “encoding control step of determining to encode”.

また、符号化制御部910は、別の請求項でいう「Iピクチャのみ高解像度画像として符号化すると判定する前記符号化制御ステップ」を実行する手段に相当する。   The encoding control unit 910 corresponds to means for executing the “encoding control step for determining that only an I picture is encoded as a high-resolution image” in another claim.

以上のように本発明の画像符号化方法では、高解像度画像の符号化を行う際に、一部の画像を低解像度化し符号化する。そして低解像度化して符号化する際に、参照画像が高解像度画像である場合には、その参照画像を低解像度化した後符号化を行う。   As described above, in the image encoding method of the present invention, when encoding a high resolution image, a part of the image is reduced in resolution and encoded. When the reference image is a high-resolution image when the resolution is reduced, the encoding is performed after the reference image is reduced in resolution.

本発明の画像符号化方法を用いることにより、入力画像の多くのピクチャが低解像度化されて符号化されるため、発生符号量の大幅な削減を行うことができる。   By using the image encoding method of the present invention, many pictures of the input image are encoded with a reduced resolution, so that the amount of generated codes can be greatly reduced.

(実施の形態5)
本発明の画像復号方法の実施の形態について、図13を用いて説明する。図13は、復号化の後処理として、復号化された低解像度画像を高解像度化して出力する画像復号化装置の構成を示すブロック図である。本実施の形態5の画像復号化装置は、低解像度画像として符号化されたピクチャを、復号化の後本発明の画像処理部を用いて高解像度化する画像復号化装置であって、符号列解析部701、予測誤差復号部702、モード復号部703、画面内予測/動き補償復号部705、フレームメモリ707、加算演算部708、画像縮小部1001、制御部1101、スイッチ1102、1103、画像処理部100(または800)を備える。以下では、Pピクチャの復号処理について説明する。
(Embodiment 5)
An embodiment of the image decoding method of the present invention will be described with reference to FIG. FIG. 13 is a block diagram illustrating a configuration of an image decoding apparatus that outputs a decoded low-resolution image with high resolution as post-decoding processing. The image decoding apparatus according to the fifth embodiment is an image decoding apparatus that increases the resolution of a picture encoded as a low resolution image using the image processing unit of the present invention after decoding. Analysis unit 701, prediction error decoding unit 702, mode decoding unit 703, intra prediction / motion compensation decoding unit 705, frame memory 707, addition operation unit 708, image reduction unit 1001, control unit 1101, switches 1102 and 1103, image processing Part 100 (or 800). Below, the decoding process of a P picture is demonstrated.

ここで、同図において、符号列解析部701、予測残差復号部702及び画面内予測/動き補償復号部705は、請求項でいう「前記符号列に符号化されている復号化対象ピクチャを復号化する復号化手段」に相当し、画像処理部100(または800)は、請求項でいう「前記復号化手段によって復号化されたピクチャが低解像度画像である場合、前記低解像度画像を高解像度化して高解像度画像を生成する復号化画像処理手段」に相当し、フレームメモリ707、スイッチ1102、スイッチ1103及び制御部1101は、請求項でいう「前記復号化画像処理手段によって生成された高解像度画像を出力する出力手段」に相当する。   Here, in the same figure, the code sequence analysis unit 701, the prediction residual decoding unit 702, and the intra prediction / motion compensation decoding unit 705 are referred to as “decoding target picture encoded in the code sequence” in the claims. The image processing unit 100 (or 800) corresponds to “decoding means for decoding”, and “the picture decoded by the decoding means is a low-resolution image when the picture decoded by the decoding means is a high-resolution image”. The frame memory 707, the switch 1102, the switch 1103, and the control unit 1101 correspond to the “decoded image processing unit that generates a high-resolution image by converting the resolution”. This corresponds to “output means for outputting a resolution image”.

また、画像処理部100(または800)は、請求項でいう「前記復号化ステップによって復号化された第1の低解像度画像につき、前記第1の低解像度画像が低解像度画像として符号化されるとき参照した復号化済みの第2の低解像度画像を探索して、1又は複数の画素単位で動きベクトルを検出し、検出された前記動きベクトルを用いて、前記第2の低解像度画像に対応する第2の高解像度画像の画素値を取得し、前記第1の低解像度画像に対応する第1の高解像度画像を生成する前記復号化画像処理ステップ」を実行する手段に相当する。   In addition, the image processing unit 100 (or 800) may claim that the first low-resolution image is encoded as a low-resolution image for the first low-resolution image decoded by the decoding step. The second low-resolution image that has been decoded and referenced is searched, a motion vector is detected in units of one or a plurality of pixels, and the second low-resolution image is supported using the detected motion vector This means corresponds to means for executing the “decoded image processing step” of acquiring the pixel value of the second high resolution image and generating the first high resolution image corresponding to the first low resolution image.

Pピクチャの符号列は符号列解析部701に入力される。符号列解析部701では、入力された符号列から各種データを抽出する。ここで各種データとは、モード選択情報、動きベクトル情報、ヘッダ情報、等である。抽出されたモード選択の情報は、モード復号部703に対して出力される。また、抽出された動きベクトル情報は、画面内予測/動き補償復号部705に対して出力される。さらに、予測誤差符号化データは予測誤差復号部702に対して出力される。またこの際に、ヘッダ情報として符号化時に画像処理部100(または800)でどのような処理方法を用いたのかを示すフラグ情報が記述されている場合、このフラグ情報を画像処理部100(または800)に対して出力する。このフラグ情報は、例えば画像処理部100(または800)でどのような方法で動きを検出したか、どのような方法で動き補償画像を生成し、その中からどの動き補償画像を選択したか、どのような基準で動き補償画像を選択したか、及び参照高解像度画像RH内での探索範囲をどれぐらいの範囲にするか等の情報を示すものである。   The code sequence of the P picture is input to the code sequence analysis unit 701. The code string analysis unit 701 extracts various data from the input code string. Here, the various data includes mode selection information, motion vector information, header information, and the like. The extracted mode selection information is output to mode decoding section 703. Also, the extracted motion vector information is output to the intra prediction / motion compensation decoding unit 705. Further, the prediction error encoded data is output to the prediction error decoding unit 702. At this time, when flag information indicating what kind of processing method is used in the image processing unit 100 (or 800) at the time of encoding is described as header information, this flag information is stored in the image processing unit 100 (or 800). This flag information is, for example, how the motion is detected by the image processing unit 100 (or 800), how the motion compensated image is generated, and which motion compensated image is selected from among the methods. It shows information such as what criteria the motion compensated image is selected and how much the search range in the reference high resolution image RH is set.

モード復号部703では、モード選択の情報を画面内予測/動き補償復号部705に対して出力する。   Mode decoding section 703 outputs mode selection information to intra prediction / motion compensation decoding section 705.

予測誤差復号部702では、入力された予測誤差符号化データの復号を行い、予測誤差画像を生成する。生成された予測誤差画像は加算演算部708に対して出力される。   The prediction error decoding unit 702 decodes the input prediction error encoded data to generate a prediction error image. The generated prediction error image is output to the addition operation unit 708.

画面内予測/動き補償復号部705は、符号列解析部701から入力された、画面内予測方法または動きベクトルに基づいて、フレームメモリ707から画面内予測画像または動き補償画像(ブロック)を取得する。このようにして生成された画面内予測画像または動き補償画像は加算演算部708に対して出力される。   The intra-screen prediction / motion compensation decoding unit 705 acquires the intra-screen prediction image or motion compensation image (block) from the frame memory 707 based on the intra-screen prediction method or motion vector input from the code string analysis unit 701. . The intra-screen prediction image or motion compensation image generated in this way is output to the addition operation unit 708.

加算演算部708では、入力された予測誤差画像と画面内予測画像または動き補償画像とを加算し、復号画像を生成する。生成された復号画像はフレームメモリ707に蓄積される。   The addition operation unit 708 adds the input prediction error image and the intra-screen prediction image or motion compensation image to generate a decoded image. The generated decoded image is stored in the frame memory 707.

フレームメモリ707に蓄積された復号画像が高解像度画像であり、かつ他のピクチャの復号に参照画像として用いられ、かつその他のピクチャが低解像度画像として符号化されている場合には、画像縮小部1001で縮小されて参照画像として用いられる。   When the decoded image stored in the frame memory 707 is a high-resolution image, is used as a reference image for decoding other pictures, and other pictures are encoded as low-resolution images, an image reduction unit The image is reduced at 1001 and used as a reference image.

また、フレームメモリ707に蓄積された復号画像は、スイッチ1102に入力される。スイッチ1102、スイッチ1103は制御部1101により制御される。   Further, the decoded image stored in the frame memory 707 is input to the switch 1102. The switches 1102 and 1103 are controlled by the control unit 1101.

制御部1101は、復号画像が縮小されずに符号化された画像である場合には、スイッチ1102を端子eに、スイッチ1103を端子gに接続し、フレームメモリ707に蓄積された復号画像はそのまま出力画像として出力される。例えば、図11(b)のように符号化されている場合には、IピクチャとPピクチャの場合がこの処理に相当する。図11(c)のように符号化されている場合には、Iピクチャの場合がこの処理に相当する。制御部1101がスイッチ1102、スイッチ1103をどのように制御するかは、例えばピクチャタイプや各ピクチャの画像サイズの情報から判断することができ、これらの情報は符号列解析部701から得ることができる。   When the decoded image is an image encoded without being reduced, the control unit 1101 connects the switch 1102 to the terminal e and the switch 1103 to the terminal g, and the decoded image stored in the frame memory 707 remains as it is. Output as an output image. For example, in the case of encoding as shown in FIG. 11B, the case of I picture and P picture corresponds to this process. In the case of encoding as shown in FIG. 11C, the case of an I picture corresponds to this process. How the control unit 1101 controls the switches 1102 and 1103 can be determined from, for example, information on the picture type and the image size of each picture, and these pieces of information can be obtained from the code string analysis unit 701. .

制御部1101は、復号画像が縮小されて符号化された画像である場合には、スイッチ1102を端子fに、スイッチ1103を端子hに接続する。この場合、フレームメモリ707に蓄積された復号画像は画像処理部100(800)に入力される。画像処理部100(800)には、フレームメモリ707から低解像度画像の参照画像RL、現在の復号対象画像に対応する低解像度画像CL、低解像度画像RLに対応する高解像度復号画像RHが入力される。低解像度画像CLまたはRLがフレームメモリ707に蓄積されていない場合には、対応する高解像度画像を画像縮小部1001により縮小して低解像度画像を生成する。そして画像処理部100(800)は、本発明の第1の実施の形態またはその変形例で説明した方法と同様の処理により動き補償画像MHを生成する。生成された動き補償画像MHは、スイッチ1103を通して出力画像として出力される。また、動き補償画像MHが他の画像の復号や高解像度化に用いられる場合には、フレームメモリ707に蓄積される。このようにして、図11(a)のような高解像度画像の復号画像列を得ることができる。   When the decoded image is a reduced and encoded image, the control unit 1101 connects the switch 1102 to the terminal f and the switch 1103 to the terminal h. In this case, the decoded image stored in the frame memory 707 is input to the image processing unit 100 (800). The image processing unit 100 (800) receives a reference image RL of a low resolution image, a low resolution image CL corresponding to the current decoding target image, and a high resolution decoded image RH corresponding to the low resolution image RL from the frame memory 707. The When the low resolution image CL or RL is not stored in the frame memory 707, the corresponding high resolution image is reduced by the image reduction unit 1001 to generate a low resolution image. Then, the image processing unit 100 (800) generates the motion compensated image MH by a process similar to the method described in the first embodiment of the present invention or the modification thereof. The generated motion compensated image MH is output as an output image through the switch 1103. In addition, when the motion compensated image MH is used for decoding other images or increasing the resolution, the motion compensated image MH is stored in the frame memory 707. In this way, a decoded image sequence of a high resolution image as shown in FIG. 11A can be obtained.

以上のように本発明の画像復号方法では、各ピクチャが低解像度画像または高解像度画像として符号化された符号列を復号し、低解像度画像として符号化された画像を復号した後、低解像度画像により求めた動きベクトルを用いて他の高解像度画像から動き補償画像を生成する。このような処理により、少ない符号量で低解像度画像として符号化されたピクチャを高解像度画像に変換することができるので、少ない符号量ですべてのピクチャを高解像度で再生することができ、符号化効率を大きく向上させることができる。   As described above, in the image decoding method of the present invention, each picture is decoded as a low-resolution image or a high-resolution image, and after decoding the low-resolution image, the low-resolution image is decoded. A motion compensated image is generated from another high-resolution image using the motion vector obtained by the above. With this process, pictures encoded as low-resolution images with a small amount of code can be converted into high-resolution images, so that all pictures can be played back with high resolution with a small amount of code. Efficiency can be greatly improved.

(実施の形態5の変形例)
実施の形態5の変形例について図14を用いて説明する。図14は、実施の形態5の変形例である画像復号化装置の構成を示すブロック図である。本変形例の画像復号化装置が実施の形態5の画像復号化装置と異なる点は、フレームメモリ707と画像処理部100(800)の順序が逆になっていることである。
(Modification of Embodiment 5)
A modification of the fifth embodiment will be described with reference to FIG. FIG. 14 is a block diagram showing a configuration of an image decoding apparatus which is a modification of the fifth embodiment. The difference between the image decoding apparatus of the present modification and the image decoding apparatus of the fifth embodiment is that the order of the frame memory 707 and the image processing unit 100 (800) is reversed.

加算演算部708から出力された復号画像は、スイッチ1102に入力される。復号画像は、実施の形態5の制御部1101、スイッチ1102、スイッチ1103、画像処理部100(800)と同様の処理により処理される。すなわち、復号画像が縮小されずに符号化された画像である場合には、そのままフレームメモリ707に蓄積され、復号画像が縮小されて符号化された画像である場合には、画像処理部100(800)で高解像度化されてフレームメモリに蓄積される。   The decoded image output from the addition operation unit 708 is input to the switch 1102. The decoded image is processed by the same processing as the control unit 1101, the switch 1102, the switch 1103, and the image processing unit 100 (800) of the fifth embodiment. That is, when the decoded image is an image that is encoded without being reduced, the image is stored in the frame memory 707 as it is. When the decoded image is an image that is reduced and encoded, the image processing unit 100 ( 800), the resolution is increased and stored in the frame memory.

フレームメモリ707に蓄積された復号画像は、出力画像として出力される。また、他の画像の復号処理または高解像度化に利用される。   The decoded image stored in the frame memory 707 is output as an output image. Further, it is used for decoding processing or increasing the resolution of other images.

以上のように本発明の画像復号装置では、低解像度画像または高解像度画像として符号化された各ピクチャの符号列を復号し、低解像度画像として符号化された画像を復号した後、低解像度画像により画素単位で求めた動きベクトルを用いて他の高解像度画像から動き補償画像を生成する。このような処理により、符号化効率を大きく向上させることができる。   As described above, the image decoding apparatus of the present invention decodes the code string of each picture encoded as a low resolution image or a high resolution image, decodes the image encoded as the low resolution image, and then decodes the low resolution image. A motion compensated image is generated from another high resolution image using the motion vector obtained in pixel units. By such processing, encoding efficiency can be greatly improved.

(実施の形態6)
さらに、上記各実施の形態で示した画像処理方法、画像符号化方法および画像復号方法を実現するためのプログラムを、フレキシブルディスク等の記録媒体に記録するようにすることにより、上記各実施の形態で示した処理を、独立したコンピュータシステムにおいて簡単に実施することが可能となる。
(Embodiment 6)
Furthermore, by recording the program for realizing the image processing method, the image encoding method, and the image decoding method shown in the above-described embodiments on a recording medium such as a flexible disk, the above-described embodiments. Can be easily executed in an independent computer system.

図15は、上記各実施の形態の画像処理方法、画像符号化方法および画像復号方法を、フレキシブルディスク等の記録媒体に記録されたプログラムを用いて、コンピュータシステムにより実施する場合の説明図である。   FIG. 15 is an explanatory diagram when the image processing method, the image encoding method, and the image decoding method of each of the above embodiments are implemented by a computer system using a program recorded on a recording medium such as a flexible disk. .

図15(b)は、フレキシブルディスクの正面からみた外観、断面構造、及びフレキシブルディスクを示し、図15(a)は、記録媒体本体であるフレキシブルディスクの物理フォーマットの例を示している。フレキシブルディスクFDはケースF内に内蔵され、該ディスクの表面には、同心円状に外周からは内周に向かって複数のトラックTrが形成され、各トラックは角度方向に16のセクタSeに分割されている。従って、上記プログラムを格納したフレキシブルディスクでは、上記フレキシブルディスクFD上に割り当てられた領域に、上記プログラムが記録されている。   FIG. 15B shows an appearance, a cross-sectional structure, and a flexible disk as viewed from the front of the flexible disk, and FIG. 15A shows an example of a physical format of the flexible disk that is a recording medium body. The flexible disk FD is built in the case F, and on the surface of the disk, a plurality of tracks Tr are formed concentrically from the outer periphery toward the inner periphery, and each track is divided into 16 sectors Se in the angular direction. ing. Therefore, in the flexible disk storing the program, the program is recorded in an area allocated on the flexible disk FD.

また、図15(c)は、フレキシブルディスクFDに上記プログラムの記録再生を行うための構成を示す。画像処理方法、画像符号化方法および画像復号方法を実現する上記プログラムをフレキシブルディスクFDに記録する場合は、コンピュータシステムCsから上記プログラムをフレキシブルディスクドライブを介して書き込む。また、フレキシブルディスク内のプログラムにより画像処理方法、画像符号化方法および画像復号方法を実現する上記画像処理方法、画像符号化方法および画像復号方法をコンピュータシステム中に構築する場合は、フレキシブルディスクドライブによりプログラムをフレキシブルディスクから読み出し、コンピュータシステムに転送する。   FIG. 15C shows a configuration for recording and reproducing the program on the flexible disk FD. When the program for realizing the image processing method, the image encoding method, and the image decoding method is recorded on the flexible disk FD, the program is written from the computer system Cs via the flexible disk drive. Further, when the image processing method, the image encoding method, and the image decoding method for realizing the image processing method, the image encoding method, and the image decoding method by a program in the flexible disk are constructed in a computer system, a flexible disk drive is used. Read the program from the flexible disk and transfer it to the computer system.

なお、上記説明では、記録媒体としてフレキシブルディスクを用いて説明を行ったが、光ディスクを用いても同様に行うことができる。また、記録媒体はこれに限らず、ICカード、ROMカセット等、プログラムを記録できるものであれば同様に実施することができる。   In the above description, a flexible disk is used as the recording medium, but the same can be done using an optical disk. Further, the recording medium is not limited to this, and any recording medium such as an IC card or a ROM cassette capable of recording a program can be similarly implemented.

(実施の形態7)
さらにここで、上記実施の形態で示した画像処理方法、画像符号化方法および画像復号方法の応用例とそれを用いたシステムを説明する。
(Embodiment 7)
Furthermore, application examples of the image processing method, the image encoding method, and the image decoding method described in the above embodiment and a system using the same will be described.

図16は、コンテンツ配信サービスを実現するコンテンツ供給システムex500の全体構成を示すブロック図である。通信サービスの提供エリアを所望の大きさに分割し、各セル内にそれぞれ固定無線局である基地局ex507〜ex510が設置されている。   FIG. 16 is a block diagram showing an overall configuration of a content supply system ex500 that implements a content distribution service. A communication service providing area is divided into desired sizes, and base stations ex507 to ex510, which are fixed wireless stations, are installed in each cell.

このコンテンツ供給システムex500は、例えば、インターネットex501にインターネットサービスプロバイダex502および電話網ex504、および基地局ex507〜ex510を介して、コンピュータex111、PDA(personal digital assistant)ex112、カメラex113、携帯電話ex114、カメラ付きの携帯電話ex115などの各機器が接続される。   This content supply system ex500 includes, for example, a computer ex111, a PDA (personal digital assistant) ex112, a camera ex113, a mobile phone ex114, a camera via the Internet ex501, the Internet service provider ex502, the telephone network ex504, and the base stations ex507 to ex510. Each device such as the attached mobile phone ex115 is connected.

しかし、コンテンツ供給システムex500は図16のような組合せに限定されず、いずれかを組み合わせて接続するようにしてもよい。また、固定無線局である基地局ex507〜ex510を介さずに、各機器が電話網ex504に直接接続されてもよい。   However, the content supply system ex500 is not limited to the combination as shown in FIG. 16, and any of the combinations may be connected. Further, each device may be directly connected to the telephone network ex504 without going through the base stations ex507 to ex510 which are fixed wireless stations.

カメラex113はデジタルビデオカメラ等の動画撮影が可能な機器である。また、携帯電話は、PDC(Personal Digital Communications)方式、CDMA(Code Division Multiple Access)方式、W−CDMA(Wideband-Code Division Multiple Access)方式、若しくはGSM(Global System for Mobile Communications)方式の携帯電話機、またはPHS(Personal Handyphone System)等であり、いずれでも構わない。   The camera ex113 is a device capable of shooting a moving image such as a digital video camera. The mobile phone is a PDC (Personal Digital Communications) system, a CDMA (Code Division Multiple Access) system, a W-CDMA (Wideband-Code Division Multiple Access) system, or a GSM (Global System for Mobile Communications) system mobile phone, Alternatively, PHS (Personal Handyphone System) or the like may be used.

また、ストリーミングサーバex503は、カメラex113から基地局ex509、電話網ex504を通じて接続されており、カメラex113を用いてユーザが送信する符号化処理されたデータに基づいたライブ配信等が可能になる。撮影したデータの符号化処理はカメラex113で行っても、データの送信処理をするサーバ等で行ってもよい。また、カメラ116で撮影した動画データはコンピュータex111を介してストリーミングサーバex503に送信されてもよい。カメラex116はデジタルカメラ等の静止画、動画が撮影可能な機器である。この場合、動画データの符号化はカメラex116で行ってもコンピュータex111で行ってもどちらでもよい。また、符号化処理はコンピュータex111やカメラex116が有するLSIex117において処理することになる。なお、画像符号化・復号化用のソフトウェアをコンピュータex111等で読み取り可能な記録媒体である何らかの蓄積メディア(CD−ROM、フレキシブルディスク、ハードディスクなど)に組み込んでもよい。さらに、カメラ付きの携帯電話ex115で動画データを送信してもよい。このときの動画データは携帯電話ex115が有するLSIで符号化処理されたデータである。   Further, the streaming server ex503 is connected from the camera ex113 through the base station ex509 and the telephone network ex504, and can perform live distribution based on the encoded data transmitted by the user using the camera ex113. The encoded processing of the captured data may be performed by the camera ex113 or may be performed by a server or the like that performs data transmission processing. The moving image data shot by the camera 116 may be transmitted to the streaming server ex503 via the computer ex111. The camera ex116 is a device that can shoot still images and moving images, such as a digital camera. In this case, the encoding of the moving image data may be performed by the camera ex116 or the computer ex111. The encoding process is performed in the LSI ex117 included in the computer ex111 and the camera ex116. Note that image encoding / decoding software may be incorporated into any storage medium (CD-ROM, flexible disk, hard disk, etc.) that is a recording medium readable by the computer ex111 or the like. Furthermore, you may transmit moving image data with the mobile telephone ex115 with a camera. The moving image data at this time is data encoded by the LSI included in the mobile phone ex115.

このコンテンツ供給システムex500では、ユーザがカメラex113、カメラex116等で撮影しているコンテンツ(例えば、音楽ライブを撮影した映像等)を上記実施の形態同様に符号化処理してストリーミングサーバex503に送信する一方で、ストリーミングサーバex503は要求のあったクライアントに対して上記コンテンツデータをストリーム配信する。クライアントとしては、上記符号化処理されたデータを復号化することが可能な、コンピュータex111、PDAex112、カメラex113、携帯電話ex114等がある。このようにすることでコンテンツ供給システムex500は、符号化されたデータをクライアントにおいて受信して再生することができ、さらにクライアントにおいてリアルタイムで受信して復号化し、再生することにより、個人放送をも実現可能になるシステムである。   In this content supply system ex500, the content (for example, video shot of music live) captured by the user with the camera ex113, camera ex116, etc. is encoded and transmitted to the streaming server ex503 in the same manner as in the above embodiment. On the other hand, the streaming server ex503 stream-distributes the content data to the requested client. Examples of the client include a computer ex111, a PDA ex112, a camera ex113, a mobile phone ex114, and the like that can decode the encoded data. In this way, the content supply system ex500 can receive and play back the encoded data at the client, and also realize personal broadcasting by receiving, decoding and playing back at the client in real time. It is a system that becomes possible.

このシステムを構成する各機器の符号化、復号には上記各実施の形態で示した画像符号化装置あるいは画像復号化装置を用いるようにすればよい。   The image encoding device or the image decoding device described in the above embodiments may be used for encoding and decoding of each device constituting this system.

その一例として携帯電話について説明する。
図17は、上記実施の形態で説明した画像処理方法、画像符号化方法および画像復号方法を用いた携帯電話ex115を示す図である。携帯電話ex115は、基地局ex510との間で電波を送受信するためのアンテナex201、CCDカメラ等の映像、静止画を撮ることが可能なカメラ部ex203、カメラ部ex203で撮影した映像、アンテナex201で受信した映像等が復号化されたデータを表示する液晶ディスプレイ等の表示部ex202、操作キーex204群から構成される本体部、音声出力をするためのスピーカ等の音声出力部ex208、音声入力をするためのマイク等の音声入力部ex205、撮影した動画もしくは静止画のデータ、受信したメールのデータ、動画のデータもしくは静止画のデータ等、符号化されたデータまたは復号化されたデータを保存するための記録メディアex207、携帯電話ex115に記録メディアex207を装着可能とするためのスロット部ex206を有している。記録メディアex207はSDカード等のプラスチックケース内に電気的に書換えや消去が可能な不揮発性メモリであるEEPROM(Electrically Erasable and Programmable Read Only Memory)の一種であるフラッシュメモリ素子を格納したものである。
A mobile phone will be described as an example.
FIG. 17 is a diagram illustrating the mobile phone ex115 using the image processing method, the image encoding method, and the image decoding method described in the above embodiment. The mobile phone ex115 includes an antenna ex201 for transmitting and receiving radio waves to and from the base station ex510, a video from a CCD camera, a camera unit ex203 capable of taking a still image, a video shot by the camera unit ex203, and an antenna ex201. A display unit ex202 such as a liquid crystal display for displaying data obtained by decoding received video and the like, a main body unit composed of a group of operation keys ex204, an audio output unit ex208 such as a speaker for audio output, and audio input To store encoded data or decoded data such as a voice input unit ex205 such as a microphone, captured video or still image data, received mail data, video data or still image data, etc. Recording medium ex207, and slot portion ex206 for enabling the recording medium ex207 to be attached to the mobile phone ex115. Have. The recording medium ex207 stores a flash memory element which is a kind of EEPROM (Electrically Erasable and Programmable Read Only Memory) which is a nonvolatile memory that can be electrically rewritten and erased in a plastic case such as an SD card.

さらに、携帯電話ex115について図18を用いて説明する。携帯電話ex115は表示部ex202及び操作キーex204を備えた本体部の各部を統括的に制御するようになされた主制御部ex311に対して、電源回路部ex350、操作入力制御部ex304、画像符号化部ex312、カメラインターフェース部ex303、LCD(Liquid Crystal Display)制御部ex302、画像復号化部ex309、多重分離部ex308、記録再生部ex307、変復調回路部ex306及び音声処理部ex305が同期バスex313を介して互いに接続されている。   Further, the cellular phone ex115 will be described with reference to FIG. A cellular phone ex115 controls a power supply circuit ex350, an operation input control unit ex304, and an image encoding for a main control unit ex311 configured to control the respective units of the main body unit including the display unit ex202 and the operation key ex204. Unit ex312, camera interface unit ex303, LCD (Liquid Crystal Display) control unit ex302, image decoding unit ex309, demultiplexing unit ex308, recording / reproducing unit ex307, modulation / demodulation circuit unit ex306, and audio processing unit ex305 via a synchronization bus ex313 Are connected to each other.

電源回路部ex350は、ユーザの操作により終話及び電源キーがオン状態にされると、バッテリパックから各部に対して電力を供給することによりカメラ付ディジタル携帯電話ex115を動作可能な状態に起動する。   When the end call and the power key are turned on by the user's operation, the power supply circuit unit ex350 activates the camera-equipped digital cellular phone ex115 by supplying power from the battery pack to each unit. .

携帯電話ex115は、CPU、ROM及びRAM等でなる主制御部ex311の制御に基づいて、音声通話モード時に音声入力部ex205で集音した音声信号を音声処理部ex305によってディジタル音声データに変換し、これを変復調回路部ex306でスペクトラム拡散処理し、送受信回路部ex301でディジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex201を介して送信する。また携帯電話機ex115は、音声通話モード時にアンテナex201で受信した受信信号を増幅して周波数変換処理及びアナログディジタル変換処理を施し、変復調回路部ex306でスペクトラム逆拡散処理し、音声処理部ex305によってアナログ音声信号に変換した後、これを音声出力部ex208を介して出力する。   The mobile phone ex115 converts the voice signal collected by the voice input unit ex205 in the voice call mode into digital voice data by the voice processing unit ex305 based on the control of the main control unit ex311 including a CPU, a ROM, a RAM, and the like. The modulation / demodulation circuit unit ex306 performs spread spectrum processing, and the transmission / reception circuit unit ex301 performs digital analog conversion processing and frequency conversion processing, and then transmits the result via the antenna ex201. In addition, the cellular phone ex115 amplifies the received signal received by the antenna ex201 in the voice call mode, performs frequency conversion processing and analog-digital conversion processing, performs spectrum despreading processing by the modulation / demodulation circuit unit ex306, and analog audio by the voice processing unit ex305. After being converted to a signal, this is output via the audio output unit ex208.

さらに、データ通信モード時に電子メールを送信する場合、本体部の操作キーex204の操作によって入力された電子メールのテキストデータは操作入力制御部ex304を介して主制御部ex311に送出される。主制御部ex311は、テキストデータを変復調回路部ex306でスペクトラム拡散処理し、送受信回路部ex301でディジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex201を介して基地局ex510へ送信する。   Further, when an e-mail is transmitted in the data communication mode, text data of the e-mail input by operating the operation key ex204 on the main body is sent to the main control unit ex311 via the operation input control unit ex304. The main control unit ex311 performs spread spectrum processing on the text data in the modulation / demodulation circuit unit ex306, performs digital analog conversion processing and frequency conversion processing in the transmission / reception circuit unit ex301, and then transmits the text data to the base station ex510 via the antenna ex201.

データ通信モード時に画像データを送信する場合、カメラ部ex203で撮像された画像データをカメラインターフェース部ex303を介して画像符号化部ex312に供給する。また、画像データを送信しない場合には、カメラ部ex203で撮像した画像データをカメラインターフェース部ex303及びLCD制御部ex302を介して表示部ex202に直接表示することも可能である。   When transmitting image data in the data communication mode, the image data captured by the camera unit ex203 is supplied to the image encoding unit ex312 via the camera interface unit ex303. When image data is not transmitted, the image data captured by the camera unit ex203 can be directly displayed on the display unit ex202 via the camera interface unit ex303 and the LCD control unit ex302.

画像符号化部ex312は、本願発明で説明した画像符号化装置を備えた構成であり、カメラ部ex203から供給された画像データを上記実施の形態で示した画像符号化装置に用いた符号化方法によって圧縮符号化することにより符号化画像データに変換し、これを多重分離部ex308に送出する。また、このとき同時に携帯電話機ex115は、カメラ部ex203で撮像中に音声入力部ex205で集音した音声を音声処理部ex305を介してディジタルの音声データとして多重分離部ex308に送出する。   The image encoding unit ex312 has a configuration including the image encoding device described in the present invention, and an encoding method using the image data supplied from the camera unit ex203 in the image encoding device described in the above embodiment. The encoded image data is converted into encoded image data by compression encoding, and sent to the demultiplexing unit ex308. At the same time, the cellular phone ex115 sends the sound collected by the audio input unit ex205 during imaging by the camera unit ex203 to the demultiplexing unit ex308 as digital audio data via the audio processing unit ex305.

多重分離部ex308は、画像符号化部ex312から供給された符号化画像データと音声処理部ex305から供給された音声データとを所定の方式で多重化し、その結果得られる多重化データを変復調回路部ex306でスペクトラム拡散処理し、送受信回路部ex301でディジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex201を介し
て送信する。
The demultiplexing unit ex308 multiplexes the encoded image data supplied from the image encoding unit ex312 and the audio data supplied from the audio processing unit ex305 by a predetermined method, and the multiplexed data obtained as a result is a modulation / demodulation circuit unit A spectrum spread process is performed at ex306, a digital-analog conversion process and a frequency conversion process are performed at the transmission / reception circuit unit ex301, and then transmitted through the antenna ex201.

データ通信モード時にホームページ等にリンクされた動画像ファイルのデータを受信する場合、アンテナex201を介して基地局ex510から受信した受信信号を変復調回路部ex306でスペクトラム逆拡散処理し、その結果得られる多重化データを多重分離部ex308に送出する。   When data of a moving image file linked to a home page or the like is received in the data communication mode, the received signal received from the base station ex510 via the antenna ex201 is subjected to spectrum despreading processing by the modulation / demodulation circuit unit ex306, and the resultant multiplexing is obtained. Is sent to the demultiplexing unit ex308.

また、アンテナex201を介して受信された多重化データを復号化するには、多重分離部ex308は、多重化データを分離することにより画像データの符号化ビットストリームと音声データの符号化ビットストリームとに分け、同期バスex313を介して当該符号化画像データを画像復号化部ex309に供給すると共に当該音声データを音声処理部ex305に供給する。   In addition, in order to decode the multiplexed data received via the antenna ex201, the demultiplexing unit ex308 separates the multiplexed data to generate an encoded bitstream of image data and an encoded bitstream of audio data. The encoded image data is supplied to the image decoding unit ex309 via the synchronization bus ex313, and the audio data is supplied to the audio processing unit ex305.

次に、画像復号化部ex309は、本願発明で説明した画像復号化装置を備えた構成であり、画像データの符号化ビットストリームを上記実施の形態で示した符号化方法に対応した復号化方法で復号することにより再生動画像データを生成し、これをLCD制御部ex302を介して表示部ex202に供給し、これにより、例えばホームページにリンクされた動画像ファイルに含まれる動画データが表示される。このとき同時に音声処理部ex305は、音声データをアナログ音声信号に変換した後、これを音声出力部ex208に供給し、これにより、例えばホームページにリンクされた動画像ファイルに含まる音声データが再生される。   Next, the image decoding unit ex309 is configured to include the image decoding device described in the present invention, and a decoding method corresponding to the encoding method described in the above embodiment for an encoded bit stream of image data. To generate playback moving image data, which is supplied to the display unit ex202 via the LCD control unit ex302, thereby displaying, for example, moving image data included in the moving image file linked to the homepage . At the same time, the audio processing unit ex305 converts the audio data into an analog audio signal, and then supplies the analog audio signal to the audio output unit ex208. Thus, for example, the audio data included in the moving image file linked to the home page is reproduced. The

なお、上記システムの例に限られず、最近は衛星、地上波によるディジタル放送が話題となっており、図19に示すようにディジタル放送用システムにも上記実施の形態の少なくとも画像符号化装置または画像復号化装置のいずれかを組み込むことができる。具体的には、放送局ex409では映像情報の符号化ビットストリームが電波を介して通信または放送衛星ex450に伝送される。これを受けた放送衛星ex450は、放送用の電波を発信し、この電波を衛星放送受信設備をもつ家庭のアンテナex406で受信し、テレビ(受信機)ex401またはセットトップボックス(STB)ex407などの装置により符号化ビットストリームを復号化してこれを再生する。また、記録媒体であるCDやDVD等の蓄積メディアex402に記録した符号化ビットストリームを読み取り、復号化する再生装置ex403にも上記実施の形態で示した画像復号化装置を実装することが可能である。この場合、再生された映像信号はモニタex404に表示される。また、ケーブルテレビ用のケーブルex405または衛星/地上波放送のアンテナex406に接続されたセットトップボックスex407内に画像復号化装置を実装し、これをテレビのモニタex408で再生する構成も考えられる。このときセットトップボックスではなく、テレビ内に画像復号化装置を組み込んでも良い。また、アンテナex411を有する車ex412で衛星ex450からまたは基地局ex507等から信号を受信し、車ex412が有するカーナビゲーションex413等の表示装置に動画を再生することも可能である。   Note that the present invention is not limited to the above-described system, and recently, digital broadcasting using satellites and terrestrial waves has become a hot topic. As shown in FIG. 19, the digital broadcasting system also includes at least the image encoding device or the image according to the above embodiment. Any of the decoding devices can be incorporated. Specifically, in the broadcasting station ex409, the encoded bit stream of the video information is transmitted to the communication or broadcasting satellite ex450 via radio waves. Receiving this, the broadcasting satellite ex450 transmits a radio wave for broadcasting, and receives the radio wave with a home antenna ex406 having a satellite broadcasting receiving facility, such as a television (receiver) ex401 or a set top box (STB) ex407. The device decodes the encoded bit stream and reproduces it. In addition, the image decoding apparatus described in the above embodiment can also be implemented in a playback apparatus ex403 that reads and decodes an encoded bitstream recorded on a storage medium ex402 such as a CD or DVD as a recording medium. is there. In this case, the reproduced video signal is displayed on the monitor ex404. Further, a configuration in which an image decoding device is mounted in a set-top box ex407 connected to a cable ex405 for cable television or an antenna ex406 for satellite / terrestrial broadcasting, and this is reproduced on the monitor ex408 of the television is also conceivable. At this time, the image decoding apparatus may be incorporated in the television instead of the set top box. In addition, a car ex412 having an antenna ex411 can receive a signal from the satellite ex450 or the base station ex507 and the like, and a moving image can be reproduced on a display device such as a car navigation ex413 that the car ex412 has.

更に、画像信号を上記実施の形態で示した画像符号化装置で符号化し、記録媒体に記録することもできる。具体例としては、DVDディスクex421に画像信号を記録するDVDレコーダや、ハードディスクに記録するディスクレコーダなどのレコーダex420がある。更にSDカードex422に記録することもできる。レコーダex420が上記実施の形態で示した画像復号化装置を備えていれば、DVDディスクex421やSDカードex422に記録した画像信号を再生し、モニタex408で表示することができる。   Further, the image signal can be encoded by the image encoding device shown in the above embodiment and recorded on a recording medium. As a specific example, there is a recorder ex420 such as a DVD recorder that records an image signal on a DVD disk ex421 or a disk recorder that records on a hard disk. Further, it can be recorded on the SD card ex422. If the recorder ex420 includes the image decoding device described in the above embodiment, the image signal recorded on the DVD disc ex421 or the SD card ex422 can be reproduced and displayed on the monitor ex408.

なお、カーナビゲーションex413の構成は例えば図18に示す構成のうち、カメラ部ex203とカメラインターフェース部ex303、画像符号化部ex312を除いた構成が考えられ、同様なことがコンピュータex111やテレビ(受信機)ex401等でも考えられる。   For example, the configuration of the car navigation ex413 may be a configuration excluding the camera unit ex203, the camera interface unit ex303, and the image encoding unit ex312 in the configuration illustrated in FIG. 18, and the same applies to the computer ex111 and the television (receiver). ) Ex401 can also be considered.

また、上記携帯電話ex114等の端末は、符号化器・復号化器を両方持つ送受信型の端末の他に、符号化器のみの送信端末、復号化器のみの受信端末の3通りの実装形式が考えられる。   In addition to the transmission / reception type terminal having both the encoder and the decoder, the terminal such as the mobile phone ex114 has three mounting formats: a transmitting terminal having only an encoder and a receiving terminal having only a decoder. Can be considered.

このように、上記実施の形態で示した画像処理方法、画像符号化方法および画像復号方法を上述したいずれの機器・システムに用いることは可能であり、そうすることで、上記実施の形態で説明した効果を得ることができる。   As described above, the image processing method, the image encoding method, and the image decoding method described in the above embodiment can be used in any of the above-described devices and systems, and as a result, described in the above embodiment. Effects can be obtained.

また、図1、図5、図7、図9、図10、図12〜図14に示したブロック図の各機能ブロックは典型的には集積回路であるLSIとして実現される。このLSIは1チップ化されても良いし、複数チップ化されても良い(例えばメモリ以外の機能ブロックが1チップ化されていても良い。)。ここでは、LSIとしたが、集積度の違いにより、IC、システムLSI、スーパーLSI、ウルトラLSIと呼称されることもある。   Each of the functional blocks in the block diagrams shown in FIGS. 1, 5, 7, 9, 10, and 12 to 14 is typically realized as an LSI that is an integrated circuit. This LSI may be made into one chip or a plurality of chips (for example, functional blocks other than the memory may be made into one chip). The name used here is LSI, but it may also be called IC, system LSI, super LSI, or ultra LSI depending on the degree of integration.

また、集積回路化の手法はLSIに限るものではなく、専用回路又は汎用プロセサで実現してもよい。LSI製造後に、プログラムすることが可能なFPGA(Field Programmable Gate Array)や、LSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサーを利用しても良い。   Further, the method of circuit integration is not limited to LSI, and implementation with a dedicated circuit or a general-purpose processor is also possible. An FPGA (Field Programmable Gate Array) that can be programmed after manufacturing the LSI or a reconfigurable processor that can reconfigure the connection and setting of the circuit cells inside the LSI may be used.

さらには、半導体技術の進歩又は派生する別技術によりLSIに置き換わる集積回路化の技術が登場すれば、当然、その技術を用いて機能ブロックの集積化を行ってもよい。バイオ技術の適応等が可能性としてありえる。   Further, if integrated circuit technology comes out to replace LSI's as a result of the advancement of semiconductor technology or a derivative other technology, it is naturally also possible to carry out function block integration using this technology. Biotechnology can be applied.

また、図1、図5、図7、図9、図10、図12〜図14に示したブロック図の各機能ブロックは、その中心的部分をプロセサおよびプログラムによって実現される。   Each of the functional blocks in the block diagrams shown in FIGS. 1, 5, 7, 9, 10, and 12 to 14 is realized by a processor and a program at the central part.

なお、本発明はかかる上記実施形態に限定されるものではなく、本発明の範囲を逸脱することなく種々の変形または修正が可能である。   It should be noted that the present invention is not limited to the above-described embodiment, and various changes and modifications can be made without departing from the scope of the present invention.

本発明にかかる画像処理方法、画像符号化方法および画像復号方法は、入力画像を高能率符号化する際に、符号量を大幅に削減することができるという効果を有し、蓄積、伝送、通信等における画像処理方法、画像符号化方法および画像復号方法として有用である。   The image processing method, the image encoding method, and the image decoding method according to the present invention have the effect that the amount of code can be greatly reduced when performing high-efficiency encoding of an input image, and store, transmit, and communicate It is useful as an image processing method, an image encoding method, and an image decoding method.

本発明の画像処理部100の構成を示すブロック図である。It is a block diagram which shows the structure of the image process part 100 of this invention. 低解像度画像と高解像度画像の関係を示す図である。It is a figure which shows the relationship between a low resolution image and a high resolution image. (a)は、低解像度画像を用いて画素毎に動きベクトルを検出する方法を示す図である。(b)は、低解像度画像CLと低解像度画像RLおよび高解像度画像RHと高解像度画像MHを用いて動き検出を行う方法を示す図である。(A) is a figure which shows the method of detecting a motion vector for every pixel using a low resolution image. (B) is a diagram illustrating a method of performing motion detection using the low resolution image CL, the low resolution image RL, the high resolution image RH, and the high resolution image MH. 動き検出部102から入力された動きベクトルMVに基づいて、高解像度画像RHから高解像度(動き補償)画像MHを生成する方法を示す図である。It is a figure which shows the method of producing | generating the high resolution (motion compensation) image MH from the high resolution image RH based on the motion vector MV input from the motion detection part 102. FIG. 実施の形態1の変形例である画像処理部800の構成を示すブロック図である。6 is a block diagram illustrating a configuration of an image processing unit 800 that is a modification of the first embodiment. FIG. 複数の参照画像の組み合わせを用いて動き検出を行う一例を示す図である。It is a figure which shows an example which performs a motion detection using the combination of a some reference image. 実施の形態1で説明した画像処理部100(または800)を用いて符号化対象高解像度画像の動き補償画像を生成する画像符号化装置の構成を示すブロック図である。3 is a block diagram illustrating a configuration of an image encoding device that generates a motion compensated image of a high-resolution image to be encoded using the image processing unit 100 (or 800) described in the first embodiment. FIG. 画像処理部100(または800)でどのような画像処理方法を用いたのかを示すフラグ情報の記述例を示す図である。It is a figure which shows the example of description of the flag information which shows what kind of image processing method was used in the image processing part 100 (or 800). 実施の形態3の画像復号化装置の構成を示すブロック図である。FIG. 10 is a block diagram illustrating a configuration of an image decoding device according to a third embodiment. 本実施の形態4の画像符号化装置900の構成を示すブロック図である。It is a block diagram which shows the structure of the image coding apparatus 900 of this Embodiment 4. (a)は、高解像度画像からなる動画像の入力画像を示す図である。(b)は、IピクチャとPピクチャとを高解像度画像として符号化する場合の解像度切替の例を示す図である。(c)は、Iピクチャのみを高解像度画像として符号化する場合の解像度切替の例を示す図である。(A) is a figure which shows the input image of the moving image which consists of a high-resolution image. (B) is a diagram illustrating an example of resolution switching when an I picture and a P picture are encoded as high-resolution images. (C) is a diagram showing an example of resolution switching when only an I picture is encoded as a high resolution image. 本実施の形態4の変形例である画像符号化装置1000の構成を示すブロック図である。It is a block diagram which shows the structure of the image coding apparatus 1000 which is a modification of this Embodiment 4. FIG. 復号化の後処理として、復号化された低解像度画像を高解像度化して出力する画像復号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image decoding apparatus which carries out the high resolution output of the decoded low resolution image as a post-process of decoding. 実施の形態5の変形例である画像復号化装置の構成を示すブロック図である。FIG. 10 is a block diagram showing a configuration of an image decoding apparatus that is a modification of the fifth embodiment. (a)、(b)及び(c)は、上記各実施の形態の画像処理方法、画像符号化方法および画像復号方法をコンピュータシステムにより実現するためのプログラムを格納するための記録媒体についての説明図である。(A), (b), and (c) are explanations about a recording medium for storing a program for realizing the image processing method, the image encoding method, and the image decoding method of each of the above embodiments by a computer system. FIG. コンテンツ供給システムの全体構成を示すブロック図である。It is a block diagram which shows the whole structure of a content supply system. 画像処理方法、画像符号化方法および画像復号方法を用いた携帯電話の例である。It is an example of a mobile phone using an image processing method, an image encoding method, and an image decoding method. 携帯電話のブロック図である。It is a block diagram of a mobile phone. ディジタル放送用システムの例である。It is an example of the system for digital broadcasting.

符号の説明Explanation of symbols

100、800 画像処理部
101 動き補償部
102 動き検出部
103 制御部
501、507、517、707、713 フレームメモリ
502 差分演算部
503 予測誤差符号化部
504 符号列生成部
505、702 予測誤差復号部
506、708 加算演算部
508 画面内予測/動き検出部
509 モード選択部
510 符号化制御部
514、515、711 スイッチ
516 画像縮小部
518 低解像度画像符号化部
701 符号列解析部
703 モード復号部
705 画面内予測/動き補償復号部
712 低解像度画像復号部
100, 800 Image processing unit 101 Motion compensation unit 102 Motion detection unit 103 Control unit 501, 507, 517, 707, 713 Frame memory 502 Difference calculation unit 503 Prediction error encoding unit 504 Code string generation unit 505, 702 Prediction error decoding unit 506, 708 Addition calculation unit 508 Intra-screen prediction / motion detection unit 509 Mode selection unit 510 Coding control unit 514, 515, 711 Switch 516 Image reduction unit 518 Low resolution image coding unit 701 Code sequence analysis unit 703 Mode decoding unit 705 Intra-screen prediction / motion compensation decoding unit 712 Low-resolution image decoding unit

Claims (15)

高解像度画像を入力とし、各ピクチャを高解像度または低解像度のいずれかで符号化する画像符号化方法であって、
符号化対象ピクチャのピクチャタイプに応じて、前記符号化対象ピクチャを高解像度画像として符号化するか、低解像度画像として符号化するかを判定する符号化制御ステップと、
前記符号化制御ステップによって低解像度画像として符号化すると判定された符号化対象ピクチャを低解像度化する第1の画像縮小ステップと、
前記符号化制御ステップによって低解像度画像として符号化すると判定された符号化対象ピクチャが、高解像度画像として符号化されたピクチャを参照ピクチャとする場合、高解像度画像として符号化された前記参照ピクチャを低解像度化する第2の画像縮小ステップと、
前記第1の画像縮小ステップによって低解像度化された符号化対象ピクチャを、前記第2の画像縮小ステップによって低解像度化された前記参照ピクチャを参照して符号化する符号化ステップと
を含むことを特徴とする画像符号化方法。
An image encoding method in which a high-resolution image is input and each picture is encoded with either high resolution or low resolution,
An encoding control step for determining whether to encode the encoding target picture as a high resolution image or a low resolution image according to the picture type of the encoding target picture;
A first image reduction step for reducing the resolution of the encoding target picture determined to be encoded as a low-resolution image by the encoding control step;
When the encoding target picture determined to be encoded as a low-resolution image by the encoding control step uses a picture encoded as a high-resolution image as a reference picture, the reference picture encoded as a high-resolution image is A second image reduction step for reducing the resolution;
Encoding a picture to be encoded whose resolution has been reduced by the first image reduction step with reference to the reference picture whose resolution has been reduced by the second image reduction step. A characteristic image encoding method.
前記符号化制御ステップでは、Bピクチャは他のピクチャから参照されないことを前提として、IピクチャとPピクチャとを高解像度画像として符号化し、Bピクチャを低解像度画像として符号化すると判定する
ことを特徴とする請求項1記載の画像符号化方法。
In the encoding control step, it is determined that the I picture and the P picture are encoded as a high resolution image and the B picture is encoded as a low resolution image on the assumption that the B picture is not referred to by other pictures. The image encoding method according to claim 1.
前記符号化制御ステップでは、Iピクチャのみ高解像度画像として符号化すると判定する
ことを特徴とする請求項1記載の画像符号化方法。
The image encoding method according to claim 1, wherein in the encoding control step, it is determined that only an I picture is encoded as a high resolution image.
前記画像符号化方法は、さらに、
前記符号化制御ステップによって高解像度画像として符号化すると判定された符号化対象ピクチャが、低解像度画像として符号化されたピクチャを参照ピクチャとする場合、前記低解像度画像として符号化された前記参照ピクチャを高解像度化する画像処理ステップを含み、
前記符号化ステップでは、前記画像処理ステップによって高解像度化された前記参照ピクチャを参照して、前記符号化対象ピクチャを符号化する
ことを特徴とする請求項1記載の画像符号化方法。
The image encoding method further includes:
When the encoding target picture determined to be encoded as a high-resolution image by the encoding control step is a picture encoded as a low-resolution image as a reference picture, the reference picture encoded as the low-resolution image Including an image processing step for increasing the resolution,
The image encoding method according to claim 1, wherein in the encoding step, the encoding target picture is encoded with reference to the reference picture whose resolution has been increased in the image processing step.
前記画像処理ステップでは、前記参照ピクチャとされたピクチャであって低解像度画像として符号化された第1の低解像度画像につき、前記参照ピクチャが低解像度画像として符号化されるとき参照した第2の低解像度画像を探索して、1又は複数の画素単位で動きベクトルを検出し、検出された前記動きベクトルを用いて、前記第2の低解像度画像と同じ画像を表し解像度が異なる第2の高解像度画像の第1画素値を取得し、取得した第1画素値を前記画素の画素値とする、前記第1の低解像度画像と同じ画像を表し解像度が異なる第1の高解像度画像を生成し、
前記符号化ステップでは、生成された前記第1の高解像度画像を参照して、前記符号化対象ピクチャを符号化する
ことを特徴とする請求項4記載の画像符号化方法。
In the image processing step, for the first low-resolution image that is the reference picture and is encoded as the low-resolution image, the second reference that is referred to when the reference picture is encoded as the low-resolution image A low-resolution image is searched, a motion vector is detected in units of one or a plurality of pixels, and a second high-resolution image representing the same image as the second low-resolution image is displayed using the detected motion vector. A first pixel value of a resolution image is acquired, and a first high-resolution image that represents the same image as the first low-resolution image and has a different resolution is generated using the acquired first pixel value as the pixel value of the pixel. ,
The image encoding method according to claim 4, wherein, in the encoding step, the encoding target picture is encoded with reference to the generated first high-resolution image.
前記画像処理ステップでは、さらに、前記第1の高解像度画像の生成済みの画素を用いて、前記第2の高解像度画像を探索して、1又は複数の画素単位で動きベクトルを検出し、検出された前記動きベクトルを用いて、第2の高解像度画像の第2画素値を取得し、前記第1の高解像度画像内で同じ位置にある画素について取得された前記第1画素値と前記第2画素値との平均値を当該画素の画素値とする
ことを特徴とする請求項5記載の画像符号化方法。
In the image processing step, the second high-resolution image is searched using the generated pixels of the first high-resolution image, and a motion vector is detected in units of one or a plurality of pixels. The second pixel value of the second high-resolution image is obtained using the motion vector thus obtained, and the first pixel value and the first pixel value obtained for the pixels at the same position in the first high-resolution image are obtained. The image encoding method according to claim 5, wherein an average value of the two pixel values is used as a pixel value of the pixel.
前記画像処理ステップでは、さらに、前記第1の低解像度画像と前記第1の高解像度画像の生成済みの画素につき、複数の前記第2の低解像度画像と複数の前記第2の高解像度画像とを探索して複数の動きベクトルを検出し、前記第1の低解像度画像に対応する複数の第1の高解像度画像を生成し、
前記画像符号化方法は、さらに、前記画像処理ステップによって生成された複数の前記第1の高解像度画像のうち、1つの第1の高解像度画像を選択する選択ステップ
を含むことを特徴とする請求項5記載の画像符号化方法。
In the image processing step, a plurality of the second low-resolution images, a plurality of the second high-resolution images, and a plurality of the second high-resolution images for the generated pixels of the first low-resolution image and the first high-resolution image And detecting a plurality of motion vectors to generate a plurality of first high resolution images corresponding to the first low resolution image;
The image encoding method further includes a selection step of selecting one first high-resolution image among the plurality of first high-resolution images generated by the image processing step. Item 6. The image encoding method according to Item 5.
動画像中の各ピクチャが高解像度画像又は低解像度画像として符号化されている符号列を入力とし、前記符号列を復号化する画像復号化方法であって、
前記符号列に符号化されている復号化対象ピクチャを復号化する復号化ステップと、
前記復号化ステップによって復号化されたピクチャが低解像度画像である場合、前記低解像度画像を高解像度化して高解像度画像を生成する復号化画像処理ステップと、
前記復号化画像処理ステップによって生成された高解像度画像を出力する出力ステップと
を含むことを特徴とする画像復号化方法。
An image decoding method for inputting a code sequence in which each picture in a moving image is encoded as a high-resolution image or a low-resolution image and decoding the code sequence,
A decoding step of decoding a decoding target picture encoded in the code string;
When the picture decoded by the decoding step is a low resolution image, a decoded image processing step of generating a high resolution image by increasing the resolution of the low resolution image;
An image decoding method comprising: an output step of outputting a high-resolution image generated by the decoded image processing step.
前記復号化画像処理ステップでは、
前記復号化ステップによって復号化された第1の低解像度画像につき、前記第1の低解像度画像が低解像度画像として符号化されるとき参照した復号化済みの第2の低解像度画像を探索して、1又は複数の画素単位で動きベクトルを検出し、検出された前記動きベクトルを用いて、前記第2の低解像度画像に対応する第2の高解像度画像の画素値を取得し、前記第1の低解像度画像に対応する第1の高解像度画像を生成する
ことを特徴とする請求項8記載の画像復号化方法。
In the decoded image processing step,
For the first low-resolution image decoded by the decoding step, a second low-resolution image that has been decoded that is referred to when the first low-resolution image is encoded as a low-resolution image is searched for A motion vector is detected in units of one or a plurality of pixels, and a pixel value of a second high-resolution image corresponding to the second low-resolution image is acquired using the detected motion vector, and the first The image decoding method according to claim 8, wherein a first high-resolution image corresponding to the low-resolution image is generated.
高解像度画像を入力とし、各ピクチャを高解像度または低解像度のいずれかで符号化する画像符号化装置であって、
符号化対象ピクチャのピクチャタイプに応じて、前記符号化対象ピクチャを高解像度画像として符号化するか、低解像度画像として符号化するかを判定する符号化制御手段と、
前記符号化制御手段によって低解像度画像として符号化すると判定された符号化対象ピクチャを低解像度化する第1の画像縮小手段と、
前記符号化制御手段によって低解像度画像として符号化すると判定された符号化対象ピクチャが、高解像度画像として符号化されたピクチャを参照ピクチャとする場合、高解像度画像として符号化された前記参照ピクチャを低解像度化する第2の画像縮小手段と、
前記第1の画像縮小手段によって低解像度化された符号化対象ピクチャを、前記第2の画像縮小手段によって低解像度化された前記参照ピクチャを参照して符号化する符号化手段と
を備えることを特徴とする画像符号化装置。
An image encoding device that receives a high resolution image and encodes each picture with either a high resolution or a low resolution,
Encoding control means for determining whether to encode the encoding target picture as a high resolution image or a low resolution image according to the picture type of the encoding target picture;
First image reduction means for reducing the resolution of the encoding target picture determined to be encoded as a low resolution image by the encoding control means;
When the encoding target picture determined to be encoded as a low-resolution image by the encoding control means uses a picture encoded as a high-resolution image as a reference picture, the reference picture encoded as a high-resolution image is used as the reference picture. A second image reduction means for reducing the resolution;
Encoding means for encoding a picture to be encoded whose resolution has been reduced by the first image reduction means with reference to the reference picture whose resolution has been reduced by the second image reduction means. An image encoding device.
動画像中の各ピクチャが高解像度画像又は低解像度画像として符号化されている符号列を入力とし、前記符号列を復号化する画像復号化装置であって、
前記符号列に符号化されている復号化対象ピクチャを復号化する復号化手段と、
前記復号化手段によって復号化されたピクチャが低解像度画像である場合、前記低解像度画像を高解像度化して高解像度画像を生成する復号化画像処理手段と、
前記復号化画像処理手段によって生成された高解像度画像を出力する出力手段と
を備えることを特徴とする画像復号化装置。
An image decoding apparatus that receives as input a code sequence in which each picture in a moving image is encoded as a high-resolution image or a low-resolution image, and decodes the code sequence,
Decoding means for decoding the decoding target picture encoded in the code string;
When the picture decoded by the decoding means is a low resolution image, the decoded image processing means for generating a high resolution image by increasing the resolution of the low resolution image;
An image decoding apparatus comprising: output means for outputting a high-resolution image generated by the decoded image processing means.
高解像度画像を入力とし、各ピクチャを高解像度または低解像度のいずれかで符号化する画像符号化装置のためのプログラムであって、コンピュータに、
符号化対象ピクチャのピクチャタイプに応じて、前記符号化対象ピクチャを高解像度画像として符号化するか、低解像度画像として符号化するかを判定する符号化制御ステップと、前記符号化制御ステップによって低解像度画像として符号化すると判定された符号化対象ピクチャを低解像度化する第1の画像縮小ステップと、前記符号化制御ステップによって低解像度画像として符号化すると判定された符号化対象ピクチャが、高解像度画像として符号化されたピクチャを参照ピクチャとする場合、高解像度画像として符号化された前記参照ピクチャを低解像度化する第2の画像縮小ステップと、前記第1の画像縮小ステップによって低解像度化された符号化対象ピクチャを、前記第2の画像縮小ステップによって低解像度化された前記参照ピクチャを参照して符号化する符号化ステップとを実行させるプログラム。
A program for an image encoding apparatus that receives a high resolution image and encodes each picture with either a high resolution or a low resolution.
According to the picture type of the encoding target picture, an encoding control step for determining whether the encoding target picture is encoded as a high resolution image or a low resolution image, and the encoding control step reduces the encoding target picture. A first image reduction step for reducing the resolution of the encoding target picture determined to be encoded as a resolution image, and an encoding target picture determined to be encoded as a low resolution image in the encoding control step When a picture encoded as an image is used as a reference picture, the resolution is reduced by a second image reduction step for reducing the resolution of the reference picture encoded as a high-resolution image and the first image reduction step. The reference that has been reduced in resolution by the second image reduction step Program for executing an encoding step of encoding with reference to puncturing.
動画像中の各ピクチャが高解像度画像又は低解像度画像として符号化されている符号列を入力とし、前記符号列を復号化する画像復号化装置のためのプログラムであって、コンピュータに
前記符号列に符号化されている復号化対象ピクチャを復号化する復号化ステップと、前記復号化ステップによって復号化されたピクチャが低解像度画像である場合、前記低解像度画像を高解像度化して高解像度画像を生成する復号化画像処理ステップと、前記復号化画像処理ステップによって生成された高解像度画像を出力する出力ステップとを実行させるプログラム。
A program for an image decoding apparatus that receives a code sequence in which each picture in a moving image is encoded as a high-resolution image or a low-resolution image and decodes the code sequence. A decoding step for decoding the current picture to be decoded, and when the picture decoded by the decoding step is a low resolution image, the low resolution image is increased in resolution to obtain a high resolution image. A program for executing a decoded image processing step to be generated and an output step for outputting a high-resolution image generated by the decoded image processing step.
高解像度画像を入力とし、各ピクチャを高解像度または低解像度のいずれかで符号化する画像符号化装置を実装する集積回路であって、
符号化対象ピクチャのピクチャタイプに応じて、前記符号化対象ピクチャを高解像度画像として符号化するか、低解像度画像として符号化するかを判定する符号化制御手段と、
前記符号化制御手段によって低解像度画像として符号化すると判定された符号化対象ピクチャを低解像度化する第1の画像縮小手段と、
前記符号化制御手段によって低解像度画像として符号化すると判定された符号化対象ピクチャが、高解像度画像として符号化されたピクチャを参照ピクチャとする場合、高解像度画像として符号化された前記参照ピクチャを低解像度化する第2の画像縮小手段と、
前記第1の画像縮小手段によって低解像度化された符号化対象ピクチャを、前記第2の画像縮小手段によって低解像度化された前記参照ピクチャを参照して符号化する符号化手段と
を備えることを特徴とする集積回路。
An integrated circuit that implements an image encoding device that receives a high-resolution image and encodes each picture with either a high resolution or a low resolution,
Encoding control means for determining whether to encode the encoding target picture as a high resolution image or a low resolution image according to the picture type of the encoding target picture;
First image reduction means for reducing the resolution of the encoding target picture determined to be encoded as a low resolution image by the encoding control means;
When the encoding target picture determined to be encoded as a low-resolution image by the encoding control means uses a picture encoded as a high-resolution image as a reference picture, the reference picture encoded as a high-resolution image is used as the reference picture. A second image reduction means for reducing the resolution;
Encoding means for encoding a picture to be encoded whose resolution has been reduced by the first image reduction means with reference to the reference picture whose resolution has been reduced by the second image reduction means. Characteristic integrated circuit.
動画像中の各ピクチャが高解像度画像又は低解像度画像として符号化されている符号列を入力とし、前記符号列を復号化する画像復号化装置を実装する集積回路であって、
前記符号列に符号化されている復号化対象ピクチャを復号化する復号化手段と、
前記復号化手段によって復号化されたピクチャが低解像度画像である場合、前記低解像度画像を高解像度化して高解像度画像を生成する復号化画像処理手段と、
前記復号化画像処理手段によって生成された高解像度画像を出力する出力手段と
を備えることを特徴とする集積回路。
An integrated circuit that mounts an image decoding apparatus that receives a code sequence in which each picture in a moving image is encoded as a high-resolution image or a low-resolution image and decodes the code sequence,
Decoding means for decoding the decoding target picture encoded in the code string;
When the picture decoded by the decoding means is a low resolution image, the decoded image processing means for generating a high resolution image by increasing the resolution of the low resolution image;
And an output means for outputting a high-resolution image generated by the decoded image processing means.
JP2006257901A 2006-09-22 2006-09-22 Image encoding method and image encoding apparatus Expired - Fee Related JP4641995B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006257901A JP4641995B2 (en) 2006-09-22 2006-09-22 Image encoding method and image encoding apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006257901A JP4641995B2 (en) 2006-09-22 2006-09-22 Image encoding method and image encoding apparatus

Publications (3)

Publication Number Publication Date
JP2008079152A true JP2008079152A (en) 2008-04-03
JP2008079152A5 JP2008079152A5 (en) 2009-10-15
JP4641995B2 JP4641995B2 (en) 2011-03-02

Family

ID=39350707

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006257901A Expired - Fee Related JP4641995B2 (en) 2006-09-22 2006-09-22 Image encoding method and image encoding apparatus

Country Status (1)

Country Link
JP (1) JP4641995B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011010304A (en) * 2009-06-25 2011-01-13 Arm Ltd Motion vector estimator
JP2012054791A (en) * 2010-09-01 2012-03-15 Nippon Hoso Kyokai <Nhk> Encoding device, decoding device and program
JP2012169765A (en) * 2011-02-10 2012-09-06 Canon Inc Encoder
JP2017220934A (en) * 2016-06-10 2017-12-14 アーム・リミテッド Video data processing system
WO2021245935A1 (en) * 2020-06-05 2021-12-09 株式会社ソシオネクスト Information processing device, information processing method, and program
JP2022546155A (en) * 2019-07-09 2022-11-04 アリババ・グループ・ホールディング・リミテッド Resolution adaptive video coding

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000050283A (en) * 1998-07-27 2000-02-18 Sony Corp Coding device and method
JP2000350197A (en) * 1999-06-02 2000-12-15 Hitachi Ltd Video transmission method and supervisory system employing the same
JP2007096709A (en) * 2005-09-28 2007-04-12 Matsushita Electric Ind Co Ltd Image processing method, image encoding method, and image decoding method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000050283A (en) * 1998-07-27 2000-02-18 Sony Corp Coding device and method
JP2000350197A (en) * 1999-06-02 2000-12-15 Hitachi Ltd Video transmission method and supervisory system employing the same
JP2007096709A (en) * 2005-09-28 2007-04-12 Matsushita Electric Ind Co Ltd Image processing method, image encoding method, and image decoding method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011010304A (en) * 2009-06-25 2011-01-13 Arm Ltd Motion vector estimator
GB2471323B (en) * 2009-06-25 2014-10-22 Advanced Risc Mach Ltd Motion vector estimator
US9407931B2 (en) 2009-06-25 2016-08-02 Arm Limited Motion vector estimator
JP2012054791A (en) * 2010-09-01 2012-03-15 Nippon Hoso Kyokai <Nhk> Encoding device, decoding device and program
JP2012169765A (en) * 2011-02-10 2012-09-06 Canon Inc Encoder
JP2017220934A (en) * 2016-06-10 2017-12-14 アーム・リミテッド Video data processing system
US11212540B2 (en) 2016-06-10 2021-12-28 Arm Limited Video data processing system
JP2022546155A (en) * 2019-07-09 2022-11-04 アリババ・グループ・ホールディング・リミテッド Resolution adaptive video coding
WO2021245935A1 (en) * 2020-06-05 2021-12-09 株式会社ソシオネクスト Information processing device, information processing method, and program

Also Published As

Publication number Publication date
JP4641995B2 (en) 2011-03-02

Similar Documents

Publication Publication Date Title
JP4594201B2 (en) Image coding method, image coding apparatus, program, and integrated circuit
JP4949028B2 (en) Decoding device, encoding device, decoding method, encoding method
JP5208157B2 (en) Decryption system
KR100976672B1 (en) Moving picture encoding method and moving picture decoding method
JP2008187734A (en) Filtering strength determination method
JP4313710B2 (en) Image encoding method and image decoding method
JP4641995B2 (en) Image encoding method and image encoding apparatus
JP4580626B2 (en) Filtering strength determination method, video encoding method, and video decoding method
JP4495013B2 (en) Video encoding device
JP2005159947A (en) Prediction image generation method, image encoding method and image decoding method
JP4580901B2 (en) Filtering strength determination method, video encoding method, and video decoding method
JP4580902B2 (en) Filtering strength determination method, video encoding method, and video decoding method
JP2004040512A (en) Image encoding method and image decoding method
JP2005130417A (en) Conversion encoding method and conversion decoding method
JP2005341545A (en) Moving image coding method,device, and program, and moving image decoding method,device, and program
JP2005278156A (en) Motion detecting method and dynamic image encoding method
JP4580903B2 (en) Filtering strength determination method, video encoding method, and video decoding method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090828

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090828

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101102

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101130

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20131210

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees