JP3464658B2 - Image decoding method, image decoding device, and recording medium storing image decoding program - Google Patents

Image decoding method, image decoding device, and recording medium storing image decoding program

Info

Publication number
JP3464658B2
JP3464658B2 JP2001341201A JP2001341201A JP3464658B2 JP 3464658 B2 JP3464658 B2 JP 3464658B2 JP 2001341201 A JP2001341201 A JP 2001341201A JP 2001341201 A JP2001341201 A JP 2001341201A JP 3464658 B2 JP3464658 B2 JP 3464658B2
Authority
JP
Japan
Prior art keywords
block
coding
mode
decoding
codeword
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2001341201A
Other languages
Japanese (ja)
Other versions
JP2002165215A (en
Inventor
泰輔 松本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2001341201A priority Critical patent/JP3464658B2/en
Publication of JP2002165215A publication Critical patent/JP2002165215A/en
Application granted granted Critical
Publication of JP3464658B2 publication Critical patent/JP3464658B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/004Predictors, e.g. intraframe, interframe coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、符号化したディジ
タル画像を復号化する画像復号化方法及び画像復号化装
置並びにそれをソフトウェアによって実現するためのプ
ログラムが記録された記録媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image decoding method and an image decoding apparatus for decoding an encoded digital image, and a recording medium on which a program for realizing the same by software is recorded.

【0002】[0002]

【従来の技術】従来より可逆性が必要とされる画像符号
化方法としては、ファクシミリで使用されているMMR (M
odified Modified Read)が有名である。しかしながらMM
Rは、入力された1フレーム全体で処理を行なうため、I
TU-T H.261やISO/IEC MPEGなどで採用されている1フレ
ームを複数のブロックに分割し、ブロック単位で処理を
行なう符号化方法との親和性が問題である。そこでこの
MMRをさらに改良したMMMR (Modified MMR)がMPEG4の評
価モデルとして採用されている(ISO/IECJTC/SC29/WG11
N1277, July 1996)。
2. Description of the Related Art Conventionally, as an image coding method which needs reversibility, MMR (M
odified Modified Read) is famous. However MM
Since R processes the entire input frame, I
There is a problem with compatibility with an encoding method that divides one frame adopted in TU-T H.261 or ISO / IEC MPEG into a plurality of blocks and performs processing in block units. So this
MMMR (Modified MMR), which is an improved version of MMR, is adopted as an evaluation model for MPEG4 (ISO / IECJTC / SC29 / WG11
N1277, July 1996).

【0003】このような複数の画素からなる2次元のブ
ロックに分割されたディジタル画像をブロック毎に符号
化する方式では、ブロック毎にブロックの動き補償の有
無や直交変換係数の有無、また入力画像が物体の形状や
合成の比率を表す形状画像である場合はブロックの有意
性などを示し、ブロック内の画素値データの符号化方法
を示す符号化モード情報とブロック内の画素値に関する
データに分けて符号化される。
In the method of coding a digital image divided into two-dimensional blocks composed of a plurality of pixels on a block-by-block basis, the presence / absence of motion compensation for each block, the presence / absence of an orthogonal transform coefficient, and the input image If is a shape image that represents the shape of the object or the ratio of synthesis, it indicates the significance of the block, etc., and is divided into coding mode information indicating the coding method of pixel value data in the block and data related to the pixel value Is encoded.

【0004】[0004]

【発明が解決しようとする課題】上記のようなブロック
の符号化モード情報と、ブロック内の画素値に関するデ
ータに分けて符号化する方法では、1フレーム内で動き
の情報や直交変換係数、有意な形状等が存在しないブロ
ックが増加すると、生成された符号化信号中にブロック
のモード情報の占める割合が相対的に増加し、符号化効
率が劣化する。
In the method of separately coding the coding mode information of the block and the data relating to the pixel value in the block as described above, the motion information, the orthogonal transform coefficient, and the significant transform coefficient are significant in one frame. When the number of blocks having no such shape increases, the ratio of the mode information of the block to the generated coded signal relatively increases, and the coding efficiency deteriorates.

【0005】本発明は、この様な画像符号化、復号化装
置において、モード情報の符号化効率を改善し、1フレ
ーム全体の符号量の削減を行うことを目的とする。
An object of the present invention is to improve the coding efficiency of mode information and reduce the code amount of one frame in such an image coding / decoding device.

【0006】[0006]

【課題を解決するための手段】本発明の画像復号化方法
は、符号化画像信号を入力し2次元のブロック毎にディ
ジタル画像を復号化する画像復号化方法であって、符号
化画像信号から符号化モードに関する符号語とブロック
データに関する符号語を分離し出力するステップと、前
記符号化モードに関する符号語から復号化対象ブロック
周辺の復号化済みブロックの符号化モードの組合せに対
応させて符号語を定めた符号語表を切り換え復号化対象
ブロックの符号化モードを再生するステップと、前記復
号化対象ブロックの符号化モードに基づいて、前記分離
された復号化対象ブロックデータに関する符号語からブ
ロック内の画素データを再生するステップと、を具備す
るものである。
The image decoding method of the present invention is an image decoding method for receiving a coded image signal and decoding a digital image for each two-dimensional block. A step of separating and outputting a codeword relating to a coding mode and a codeword relating to block data; and a codeword corresponding to a combination of coding modes of a decoded block around a block to be decoded from the codeword relating to the coding mode A step of reproducing the coding mode of the decoding target block by switching the code word table defining the above, and based on the coding mode of the decoding target block, from the code word relating to the separated decoding target block data And reproducing the pixel data of.

【0007】また本発明の画像復号化装置は、符号化画
像信号を入力し2次元のブロック毎にディジタル画像を
復号化する画像復号化装置であって、符号化画像信号か
ら符号化モードに関する符号語とブロックデータに関す
る符号語を分離し出力する逆多重化手段と、前記符号化
モードに関する符号語から復号化対象ブロック周辺の復
号化済みブロックの符号化モードの組合せに対応させて
符号語を定めた符号語表を切り換え復号化対象ブロック
の符号化モードを再生するモード情報復号化手段と、前
記復号化対象ブロックの符号化モードに基づいて、前記
逆多重化手段からの復号化対象ブロックデータに関する
符号語からブロック内の画素データを再生するブロック
データ復号化手段と、を具備するものである。
Further, the image decoding apparatus of the present invention is an image decoding apparatus for inputting a coded image signal and decoding a digital image for each two-dimensional block, and a code relating to a coding mode from the coded image signal. Demultiplexing means for separating and outputting a code word relating to a word and block data, and the code word is determined corresponding to the combination of the coding mode of the decoded block around the block to be decoded from the code word relating to the coding mode. Mode information decoding means for switching the code word table to reproduce the coding mode of the decoding target block, and decoding target block data from the demultiplexing means based on the coding mode of the decoding target block Block data decoding means for reproducing the pixel data in the block from the code word.

【0008】また本発明の記録媒体は、符号化画像信号
を入力し2次元のブロック毎にディジタル画像を復号化
する手順を実行させる画像復号化プログラムを記録した
記録媒体であって、前記画像復号化プログラムは、符号
化画像信号から符号化モードに関する符号語とブロック
データに関する符号語を分離し出力する手順と、前記符
号化モードに関する符号語から復号化対象ブロック周辺
の復号化済みブロックの符号化モードの組合せに対応さ
せて符号語を定めた符号語表を切り換え復号化対象ブロ
ックの符号化モードを再生する手順と、前記復号化対象
ブロックの符号化モードに基づいて、前記分離された復
号化対象ブロックデータに関する符号語からブロック内
の画素データを再生する手順と、を含むものである。
The recording medium of the present invention is a recording medium recording an image decoding program for inputting a coded image signal and executing a procedure of decoding a digital image for each two-dimensional block. The encoding program separates and outputs a codeword relating to an encoding mode and a codeword relating to block data from an encoded image signal, and encoding of a decoded block around a block to be decoded from the codeword relating to the encoding mode. A procedure for switching a codeword table in which codewords are determined corresponding to a combination of modes and reproducing the coding mode of the decoding target block, and the separated decoding based on the coding mode of the decoding target block And a procedure for reproducing pixel data in a block from a codeword relating to target block data.

【0009】[0009]

【発明の実施の形態】本発明の画像符号化方法は、複数
の画素からなる2次元のブロックに分割されたディジタ
ル画像をブロック毎に符号化する際に、各ブロックの符
号化方法を決定し、モード情報を出力する行程と、前記
モード情報にしたがってブロック内のデータを符号化す
る行程と、前記モード情報を周辺のすでに符号化済みの
ブロックのモード情報から予測し符号化する行程とを具
備する。
BEST MODE FOR CARRYING OUT THE INVENTION The image coding method of the present invention determines a coding method for each block when coding a digital image divided into two-dimensional blocks each having a plurality of pixels for each block. , A step of outputting the mode information, a step of encoding the data in the block according to the mode information, and a step of predicting and encoding the mode information from the mode information of surrounding already encoded blocks. To do.

【0010】上記構成により、モード情報の符号化を行
う際に、すでに符号化されている周辺ブロックのモード
情報から符号化対象ブロックの符号化モードを予測し、
予測の的中率に応じて符号語を定めた符号語表を切り替
えることによりモード情報の符号化効率の向上が達成で
きる。
With the above configuration, when encoding the mode information, the encoding mode of the encoding target block is predicted from the mode information of the already encoded peripheral block,
It is possible to improve the coding efficiency of the mode information by switching the codeword table in which the codeword is determined according to the prediction hit rate.

【0011】また本発明の画像符号化方法は、複数の画
素からなる2次元のブロックに分割されたディジタル画
像をブロック毎に符号化する際に、各ブロックの符号化
方法を決定し、モード情報を出力する行程と、前記モー
ド情報を1フレーム内のすべてのブロック分まとめて符
号化する行程と、前記モード情報にしたがって各ブロッ
クのデータを順次符号化する行程とを具備することを特
徴とする画像符号化方法である。
Further, according to the image coding method of the present invention, when a digital image divided into a two-dimensional block composed of a plurality of pixels is coded for each block, the coding method of each block is determined and the mode information is set. Is output, a step of collectively encoding the mode information for all blocks in one frame, and a step of sequentially encoding the data of each block according to the mode information. This is an image encoding method.

【0012】上記構成により、複数のブロックに分割さ
れたディジタル画像の各ブロックの符号化のモード情報
を1フレーム分まとめて符号化することにより、モード
情報のブロック間の相関を利用した符号化が容易に行
え、符号化効率の向上が達成できる。
With the above configuration, the coding mode information of each block of the digital image divided into a plurality of blocks is collectively coded for one frame, so that the coding using the correlation between the blocks of the mode information can be performed. This can be done easily and improvement in coding efficiency can be achieved.

【0013】また本発明の画像復号化方法は、符号化信
号を入力として複数の画素からなる2次元のブロック毎
に画像を再生し、そのブロック内の画素値を並べ換える
ことによってディジタル画像を復号化する際に、すでに
復号化済みの周辺ブロックのモード情報より復号化対象
ブロックのモード情報を予測し復号化する行程と、前記
復号化されたモード情報にしたがってブロック内のデー
タを復号化する行程とを具備する。
In the image decoding method of the present invention, a coded signal is input to reproduce an image for each two-dimensional block consisting of a plurality of pixels, and pixel values in the block are rearranged to decode a digital image. When decoding, the process of predicting and decoding the mode information of the block to be decoded from the mode information of the already decoded peripheral block, and the process of decoding the data in the block according to the decoded mode information And.

【0014】上記構成により、モード情報の復号化を行
なう際に、すでに復号化されている周辺ブロックのモー
ド情報から、復号化対象ブロックの符号化モードを予測
し、予測の的中率に応じて符号語を定めた符号語表を切
換えることによって正しくモード情報を復号化できる。
With the above configuration, when the mode information is decoded, the coding mode of the block to be decoded is predicted from the mode information of the peripheral block that has already been decoded, and the prediction mode is determined according to the prediction hit rate. The mode information can be correctly decoded by switching the codeword table defining the codeword.

【0015】また本発明の画像復号化方法は、符号化信
号を入力として複数の画素からなる2次元のブロック毎
に画像を再生し、そのブロック内の画素値を並べ換える
ことによってディジタル画像を再生する際に、1フレー
ム内のすべてのブロックのモード情報を復号化しモード
情報を出力する行程と、前記復号化されたモード情報に
したがって各ブロックのデータを順次復号化する行程と
を具備する。
Further, according to the image decoding method of the present invention, a coded signal is input, an image is reproduced for each two-dimensional block consisting of a plurality of pixels, and pixel values in the block are rearranged to reproduce a digital image. In this case, the process includes a step of decoding the mode information of all blocks in one frame and outputting the mode information, and a step of sequentially decoding the data of each block according to the decoded mode information.

【0016】上記構成により、1フレーム分のモード情
報に関する符号語をまとめて復号化することによりモー
ド情報のブロック間の相関を利用した復号化が容易に行
え、かつ正しくモード情報を復号化できる。
With the above configuration, by collectively decoding the code words relating to the mode information for one frame, the decoding can be easily performed by utilizing the correlation between the blocks of the mode information, and the mode information can be correctly decoded.

【0017】また本発明の画像符号化装置は、複数の画
素からなる2次元のブロックに分割されたディジタル画
像をブロック毎に符号化する際に、各ブロックの符号化
方式を決定する符号化モード決定手段と、前記符号化モ
ード決定手段によって決定されたモード情報にしたがっ
てブロック内のデータを符号化するブロックデータ符号
化手段と、前記符号化モード決定手段によって決定され
たモード情報を周辺のすでに符号化済みのブロックのモ
ード情報から予測し符号化するモード情報符号化手段を
具備する。
Further, the image coding apparatus of the present invention is a coding mode for deciding a coding method of each block when coding a digital image divided into two-dimensional blocks composed of a plurality of pixels for each block. Deciding means, block data coding means for coding data in a block according to the mode information decided by the coding mode deciding means, and mode information decided by the coding mode deciding means for the surrounding codes. A mode information coding unit for predicting and coding from the mode information of the converted block is provided.

【0018】上記構成により、モード情報の符号化を行
う際に、すでに符号化されている周辺ブロックのモード
情報から符号化対象ブロックの符号化モードを予測し、
予測の的中率に応じて符号語を定めた符号語表を切り替
えることによりモード情報の符号化効率の向上が達成で
きる。
With the above configuration, when encoding the mode information, the encoding mode of the encoding target block is predicted from the mode information of the already encoded peripheral blocks,
It is possible to improve the coding efficiency of the mode information by switching the codeword table in which the codeword is determined according to the prediction hit rate.

【0019】また本発明の画像符号化装置は、複数の画
素からなる2次元のブロックに分割されたディジタル画
像をブロック毎に符号化する際に、各ブロックの符号化
方法を決定する符号化モード決定手段と、前記符号化モ
ード決定手段によって決定されたモード情報を1フレー
ム内のすべてのブロック分まとめて符号化するモード情
報符号化手段と、前記モード情報にしたがって各ブロッ
クのデータを順次符号化するブロックデータ符号化手段
を具備する。
Further, the image coding apparatus of the present invention is a coding mode for determining a coding method of each block when coding a digital image divided into a two-dimensional block composed of a plurality of pixels for each block. Determining means, mode information encoding means for collectively encoding the mode information determined by the encoding mode determining means for all blocks in one frame, and sequentially encoding data of each block according to the mode information. And block data encoding means.

【0020】上記構成により、複数のブロックに分割さ
れたディジタル画像の各ブロックの符号化のモード情報
を1フレーム分まとめて符号化することにより、モード
情報のブロック間の相関を利用した符号化が容易に行
え、符号化効率の向上が達成できる。
With the above configuration, the coding mode information of each block of the digital image divided into a plurality of blocks is coded together for one frame, and coding using the correlation between the blocks of the mode information is performed. This can be done easily and improvement in coding efficiency can be achieved.

【0021】また本発明の画像復号化装置は、符号化信
号を入力として複数の画素からなる2次元のブロック毎
に画像を再生し、そのブロック内の画素値を並べ換える
ことによってディジタル画像を再生する際に、すでに復
号化済みの周辺ブロックのモード情報より復号化対象ブ
ロックのモード情報を予測し復号化するモード情報復号
化手段と、前記モード情報復号化手段により再生された
モード情報にしたがってブロック内のデータを復号化す
るブロックデータ復号化手段を具備する。
Further, the image decoding apparatus of the present invention reproduces an image for each two-dimensional block consisting of a plurality of pixels by inputting a coded signal, and reproduces a digital image by rearranging pixel values in the block. In doing so, the mode information decoding means for predicting and decoding the mode information of the decoding target block from the mode information of the already decoded peripheral block, and the block according to the mode information reproduced by the mode information decoding means Block data decoding means for decoding the data in the block.

【0022】上記構成により、モード情報の復号化を行
なう際に、すでに復号化されている周辺ブロックのモー
ド情報から、復号化対象ブロックの符号化モードを予測
し、予測の的中率に応じて符号語を定めた符号語表を切
換えることによって正しくモード情報を復号化できる。
With the above configuration, when the mode information is decoded, the coding mode of the block to be decoded is predicted from the mode information of the peripheral block that has already been decoded, and the prediction mode is determined according to the prediction hit rate. The mode information can be correctly decoded by switching the codeword table defining the codeword.

【0023】また本発明の画像復号化装置は、符号化信
号を入力として複数の画素からなる2次元のブロック毎
に画像を再生し、そのブロック内の画素値を並べ換える
ことによってディジタル画像を再生する際に、1フレー
ム内のすべてのブロックのモード情報を復号化しモード
情報を出力するモード情報復号化手段と、前記モード情
報に基づいて各ブロックのデータを順次復号化するデー
タ復号化手段を具備する。
Further, the image decoding apparatus of the present invention reproduces a digital image by reproducing an image for each two-dimensional block consisting of a plurality of pixels by inputting a coded signal and rearranging pixel values in the block. In this case, a mode information decoding unit that decodes the mode information of all blocks in one frame and outputs the mode information, and a data decoding unit that sequentially decodes the data of each block based on the mode information are provided. To do.

【0024】上記構成により、1フレーム分のモード情
報に関する符号語をまとめて復号化することによりモー
ド情報のブロック間の相関を利用した復号化が容易に行
え、かつ正しくモード情報を復号化できる。
With the above configuration, by collectively decoding the code words relating to the mode information for one frame, the decoding using the correlation between the blocks of the mode information can be easily performed, and the mode information can be correctly decoded.

【0025】また本発明の画像符号化装置は、プログラ
ムされたコンピュータによって複数の画素からなる2次
元のブロックに分割されたディジタル画像をブロック毎
に符号化する装置であって、各ブロックの符号化方式を
決定する符号化モード決定手段と、前記符号化モード決
定手段によって決定されたモード情報にしたがってブロ
ック内のデータを符号化するブロックデータ符号化手段
と、前記符号化モード決定手段によって決定されたモー
ド情報を周辺のすでに符号化済みのブロックのモード情
報から予測し符号化するモード情報符号化手段を具備す
る。
The image encoding apparatus of the present invention is an apparatus for encoding, for each block, a digital image divided into a two-dimensional block consisting of a plurality of pixels by a programmed computer, and encoding each block. A coding mode determining means for determining a method, a block data encoding means for encoding data in a block according to the mode information determined by the encoding mode determining means, and a determination for the encoding mode determining means. A mode information coding means for predicting and coding the mode information from the mode information of the surrounding already coded blocks is provided.

【0026】上記構成により、プログラムされたコンピ
ュータによって複数の画素からなる2次元のブロックに
分割されたディジタル画像をブロック毎に符号化する際
に、モード情報の符号化を行う際に、すでに符号化され
ている周辺ブロックのモード情報から符号化対象ブロッ
クの符号化モードを予測し、予測の的中率に応じて符号
語を定めた符号語表を切り替えることによりモード情報
の符号化効率の向上が達成できる。
With the above configuration, when the digital image divided into the two-dimensional block composed of a plurality of pixels by the programmed computer is encoded for each block, the encoding is already performed when the mode information is encoded. The coding efficiency of the mode information is improved by predicting the coding mode of the target block to be coded from the mode information of the neighboring blocks that have been coded and switching the codeword table that defines the codeword according to the prediction accuracy. Can be achieved.

【0027】また本発明の画像復号化装置は、プログラ
ムされたコンピュータによって符号化信号を入力として
複数の画素からなる2次元のブロック毎に画像を再生
し、そのブロック内の画素値を並べ換えることによって
ディジタル画像を再生する装置であって、すでに復号化
済みの周辺ブロックのモード情報より復号化対象ブロッ
クのモード情報を予測し復号化するモード情報復号化手
段と、前記モード情報復号化手段により再生されたモー
ド情報にしたがってブロック内のデータを復号化するブ
ロックデータ復号化手段を具備する。
The image decoding apparatus of the present invention receives an encoded signal as an input by a programmed computer, reproduces an image for each two-dimensional block composed of a plurality of pixels, and rearranges pixel values in the block. A device for reproducing a digital image by means of a mode information decoding means for predicting and decoding the mode information of a decoding target block from the mode information of the already decoded peripheral block, and reproducing by the mode information decoding means. Block data decoding means for decoding the data in the block according to the mode information.

【0028】上記構成により、プログラムされたコンピ
ュータによって符号化信号を入力として複数の画素から
なる2次元のブロック毎に画像を再生し、そのブロック
内の画素値を並べ換えることによってディジタル画像を
再生する際に、複数のブロックに分割されたディジタル
画像の各ブロックの符号化のモード情報を1フレーム分
まとめて符号化することにより、モード情報のブロック
間の相関を利用した符号化が容易に行え、符号化効率の
向上が達成できる。
With the above configuration, a coded signal is input by a programmed computer, an image is reproduced for each two-dimensional block consisting of a plurality of pixels, and pixel values in the block are rearranged to reproduce a digital image. At this time, by collectively encoding the mode information for encoding each block of the digital image divided into a plurality of blocks, one frame can be easily encoded using the correlation between the blocks of the mode information, An improvement in coding efficiency can be achieved.

【0029】また本発明の画像符号化方法は、プログラ
ムされたコンピュータによって複数の画素からなる2次
元のブロックに分割されたディジタル画像をブロック毎
に符号化する方法であって、各ブロックの符号化方法を
決定し、モード情報を出力する行程と、前記モード情報
にしたがってブロック内のデータを符号化する行程と、
前記モード情報を周辺のすでに符号化済みのブロックの
モード情報から予測し符号化する行程とを具備する。
The image coding method of the present invention is a method of coding a digital image divided into two-dimensional blocks consisting of a plurality of pixels by a programmed computer for each block, and coding each block. Determining the method, outputting the mode information, and the step of encoding the data in the block according to the mode information,
And a step of predicting and encoding the mode information from the mode information of surrounding already encoded blocks.

【0030】上記構成により、プログラムされたコンピ
ュータによって複数の画素からなる2次元のブロックに
分割されたディジタル画像をブロック毎に符号化する際
に、モード情報の符号化を行う際に、すでに符号化され
ている周辺ブロックのモード情報から符号化対象ブロッ
クの符号化モードを予測し、予測の的中率に応じて符号
語を定めた符号語表を切り替えることによりモード情報
の符号化効率の向上が達成できる。
With the above configuration, when the digital image divided into the two-dimensional block consisting of a plurality of pixels by the programmed computer is encoded for each block, the encoding is already performed when the mode information is encoded. The coding efficiency of the mode information is improved by predicting the coding mode of the target block to be coded from the mode information of the neighboring blocks that have been coded and switching the codeword table that defines the codeword according to the prediction accuracy. Can be achieved.

【0031】また本発明の画像復号化方法は、プログラ
ムされたコンピュータによって符号化信号を入力として
複数の画素からなる2次元のブロック毎に画像を再生
し、そのブロック内の画素値を並べ換えることによって
ディジタル画像を再生する方法であって、すでに復号化
済みの周辺ブロックのモード情報より復号化対象ブロッ
クのモード情報を予測し復号化する行程と、前記復号化
されたモード情報にしたがってブロック内のデータを復
号化する行程とを具備する。
In the image decoding method of the present invention, a coded signal is input by a programmed computer to reproduce an image for each two-dimensional block consisting of a plurality of pixels, and the pixel values in the block are rearranged. A method of reproducing a digital image by the method, the step of predicting and decoding the mode information of the decoding target block from the mode information of the already decoded peripheral block, and the step of And the step of decrypting the data.

【0032】上記構成により、プログラムされたコンピ
ュータによって符号化信号を入力として複数の画素から
なる2次元のブロック毎に画像を再生し、そのブロック
内の画素値を並べ換えることによってディジタル画像を
再生する際に、モード情報の復号化を行なう際に、すで
に復号化されている周辺ブロックのモード情報から、復
号化対象ブロックの符号化モードを予測し、予測の的中
率に応じて符号語を定めた符号語表を切換えることによ
って正しくモード情報を復号化できる。
With the above configuration, a coded signal is input by a programmed computer, an image is reproduced for each two-dimensional block consisting of a plurality of pixels, and pixel values in the block are rearranged to reproduce a digital image. At this time, when decoding the mode information, the coding mode of the decoding target block is predicted from the mode information of the peripheral blocks that have already been decoded, and the code word is determined according to the prediction hit rate. Mode information can be correctly decoded by switching the code word table.

【0033】また本発明の画像符号化プログラムを記録
した記録媒体は、コンピュータによって複数の画素から
なる2次元のブロックに分割されたディジタル画像をブ
ロック毎に符号化する画像符号化プログラムを記録した
記録媒体であって、該画像符号化プログラムはコンピュ
ータに各ブロックの符号化方法を決定し、モード情報を
出力し、前記モード情報にしたがってブロック内のデー
タを符号化するし、前記モード情報を周辺のすでに符号
化済みのブロックのモード情報から予測し符号化するこ
とを特徴とする画像符号化プログラムを記録したもので
ある。
The recording medium recording the image encoding program of the present invention records an image encoding program for encoding a digital image divided into two-dimensional blocks composed of a plurality of pixels by a computer for each block. In the medium, the image coding program determines a coding method of each block to a computer, outputs mode information, codes data in the block according to the mode information, The image coding program is characterized by predicting from the mode information of the already coded block and coding.

【0034】上記構成により、コンピュータの記録媒体
であり、この記録媒体を移送することにより他の独立し
たコンピュータにおいて、複数の画素からなる2次元の
ブロックに分割されたディジタル画像をブロック毎に符
号化する画像符号化プログラムを実行し、高効率な符号
化ができる。
With the above-mentioned structure, the computer is a recording medium, and by transferring this recording medium, a digital image divided into a two-dimensional block composed of a plurality of pixels is encoded for each block in another independent computer. By executing the image coding program that performs the above, highly efficient coding can be performed.

【0035】また本発明の画像復号化プログラムを記録
した記録媒体は、コンピュータよって符号化信号を入力
として複数の画素からなる2次元のブロック毎に画像を
再生し、そのブロック内の画素値を並べ換えることによ
ってディジタル画像を復号化する画像復号化プログラム
を記録した記録媒体であって、該画像復号化プログラム
はコンピュータにすでに復号化済みの周辺ブロックのモ
ード情報より復号化対象ブロックのモード情報を予測し
復号化し、前記復号化されたモード情報にしたがってブ
ロック内のデータを復号化する画像復号化プログラムを
記録したものである。
In the recording medium recording the image decoding program of the present invention, the image is reproduced for each two-dimensional block composed of a plurality of pixels by inputting the encoded signal by the computer, and the pixel values in the block are rearranged. A recording medium recording an image decoding program for decoding a digital image by predicting the mode information of a decoding target block from the mode information of peripheral blocks already decoded by a computer. And an image decoding program for decoding the data in the block according to the decoded mode information.

【0036】上記構成により、コンピュータの記録媒体
であり、この記録媒体を移送することにより他の独立し
たコンピュータにおいて、符号化信号を入力として複数
の画素からなる2次元のブロック毎に画像を再生し、そ
のブロック内の画素値を並べ換えることによってディジ
タル画像を復号化する画像復号化プログラムを実行し、
正確な再生ができる。
With the above-mentioned structure, it is a recording medium of a computer, and by transferring this recording medium, an image is reproduced for each two-dimensional block consisting of a plurality of pixels by inputting a coded signal in another independent computer. , Run an image decoding program that decodes the digital image by rearranging the pixel values in that block,
Accurate reproduction is possible.

【0037】以下、本発明の実施の形態について図1か
ら図16を用いて説明する。
Embodiments of the present invention will be described below with reference to FIGS. 1 to 16.

【0038】(実施の形態1)図1は本発明の実施の形
態1における画像符号化装置のブロック図である。同図
において、1はブロックの符号化モードを決定する符号
化モード判定手段、2は符号化モード判定手段1が決定
したブロックの符号化モード情報から符号化モード情報
に関する符号語を生成するモード情報符号化手段、3は
符号化モード判定手段1が決定したブロックの符号化モ
ード情報にしたがってブロック内の画素値を符号化し符
号語を生成するブロックデータ符号化手段、4はモード
情報符号化手段2が出力する符号化モード情報に関する
符号語とブロックデータ符号化手段3が出力する画素値
データに関する符号語を多重化し符号化画像信号を生成
する多重化手段である。なお、11は図中に示されない
ブロック分割手段によって分割されたディジタル入力画
像のブロックの画素値信号、12はブロックの符号化モ
ード情報、13は符号化モード情報に関する符号語、1
4はブロックデータに関する符号語、15はブロック分
割されたディジタル入力画像の符号化画像信号を示すも
のである。
(Embodiment 1) FIG. 1 is a block diagram of an image coding apparatus according to Embodiment 1 of the present invention. In the figure, reference numeral 1 is a coding mode determining means for determining a coding mode of a block, and 2 is mode information for generating a code word relating to the coding mode information from the coding mode information of the block determined by the coding mode determining means 1. Encoding means 3, block data encoding means for encoding pixel values in the block according to the encoding mode information of the block determined by the encoding mode determination means 1 to generate a code word, 4 is mode information encoding means 2 Is a multiplexing means for generating a coded image signal by multiplexing the code word relating to the coding mode information outputted by the block data and the code word relating to the pixel value data outputted by the block data coding means 3. In addition, 11 is a pixel value signal of a block of a digital input image divided by a block dividing unit (not shown), 12 is coding mode information of the block, 13 is a code word relating to the coding mode information, 1
Reference numeral 4 is a code word related to block data, and 15 is a coded image signal of a block-divided digital input image.

【0039】以上のように構成された実施の形態1の画
像符号化装置について、以下その動作を説明する。
The operation of the image coding apparatus of Embodiment 1 configured as above will be described below.

【0040】まず、ディジタル入力画像は、図2に示す
ように横M画素、縦Nラインで1フレームが構成された
通常のカラー信号や物体の形状または合成の比率を表す
形状情報である。入力画素値信号11は、図中に示され
ていないブロック分割手段によって横m画素、縦nライ
ンから構成される複数のブロックに分割される。分割さ
れたブロックの入力画素値信号11は、符号化モード判
定手段1とブロックデータ符号化手段3へ入力される。
First, as shown in FIG. 2, the digital input image is a normal color signal in which one frame is composed of horizontal M pixels and vertical N lines, or shape information representing the shape of an object or the ratio of composition. The input pixel value signal 11 is divided into a plurality of blocks composed of horizontal m pixels and vertical n lines by a block dividing means (not shown). The input pixel value signal 11 of the divided block is input to the coding mode determination means 1 and the block data coding means 3.

【0041】符号化モード判定手段1では、位置(i,j)
(以下POS(i,j)と記す)のブロックの画素値データよりブ
ロックの符号化モードを決定する。通常のカラー信号の
場合は、動き補償の有無や直交変換係数の有無、また形
状信号の場合は有意形状の有無等を決める。(POS(i,j)
のブロックの符号化モードを以下MODE(i,j)と記す。符
号化モード判定手段1は、決定したMODE(i,j)をモード
情報符号化手段2及びブロックデータ符号化手段3へそ
れぞれ出力する。
In the coding mode determination means 1, the position (i, j)
The coding mode of the block is determined from the pixel value data of the block (hereinafter referred to as POS (i, j)). In the case of a normal color signal, the presence / absence of motion compensation and the presence / absence of an orthogonal transform coefficient are determined. (POS (i, j)
The coding mode of the block is described as MODE (i, j) below. The coding mode determination means 1 outputs the determined MODE (i, j) to the mode information coding means 2 and the block data coding means 3, respectively.

【0042】図3を用いて、符号化モード判定手段1に
ついて具体的に説明する。図3(b)に、説明の都合上
4×4のブロックに分割したデジタル入力画像を示す。
符号化モード判定手段1は、図3(b)に示すデジタル
入力画像の各ブロックにおいて、図3(a)に示すよう
にブロック内の画素が全て”0”の場合はA、ブロック
内の画素に”0”と”1”が存在する場合はB、ブロッ
ク内の画素が全て”1”の場合はCとそれぞれ符号化モ
ードを付与するものである。図3(b)のデジタル入力
画像に、3種類の符号化モードを付与した結果、図3
(c)となる。
The coding mode determination means 1 will be described in detail with reference to FIG. FIG. 3B shows a digital input image divided into 4 × 4 blocks for convenience of explanation.
In each block of the digital input image shown in FIG. 3B, the coding mode determination means 1 is A when the pixels in the block are all “0” as shown in FIG. When "0" and "1" are present, the coding mode is added as B, and when all the pixels in the block are "1" as C, the coding mode is added. As a result of adding three types of coding modes to the digital input image of FIG.
(C).

【0043】次に、モード情報符号化手段2は、符号化
モード判定手段1で各ブロックに付与した符号化モード
を、図4に示す符号語表テーブルよりMODE(i,j)に対応
する符号語を選択して符号化モードに関する符号語とし
て出力する。
Next, the mode information coding means 2 codes the coding mode assigned to each block by the coding mode determination means 1 from the code word table shown in FIG. 4 to a code corresponding to MODE (i, j). A word is selected and output as a code word related to the encoding mode.

【0044】モード情報符号化手段2は、符号化対象ブ
ロックの符号化モードをMODE(i,j)とすると、図5に示
す周辺のすでに符号化済みの符号化モードMODE(i-1,
j)、MODE(i-1,j-1)、MODE(i,j-1)からMODE(i,j)を予測
することが出来る。すなわち、符号化モードとしてA、
B、Cの3通りのモードである場合、MODE(i-1,j)、MOD
E(i-1,j-1)、MODE(i,j-1)がすべてAであればMODE(i,j)
もAである確率が高いといった統計的性質を基に、確率
の高いものには情報量の少ない符号語(例えば”0”:
1ビット)を与えるように生成し、図4に示すような符
号語表テーブルを用いて適応的に符号語表を切換えるこ
とによって符号化モードに関する符号化効率の向上を達
成することが出来る。
When the coding mode of the block to be coded is MODE (i, j), the mode information coding means 2 shows the already coded coding modes MODE (i-1, j) around the periphery shown in FIG.
It is possible to predict MODE (i, j) from j), MODE (i-1, j-1), and MODE (i, j-1). That is, the encoding mode is A,
In case of 3 modes of B and C, MODE (i-1, j), MOD
If E (i-1, j-1) and MODE (i, j-1) are all A, MODE (i, j)
Also, based on the statistical property that there is a high probability that A is also A, a code word with a small amount of information (for example, “0”:
(1 bit) is generated, and the codeword table is adaptively switched by using the codeword table as shown in FIG. 4, whereby the improvement of the coding efficiency in the coding mode can be achieved.

【0045】具体的には、周辺ブロックの符号化モード
がAに偏っている場合、符号化モードAの符号語は0
(符号語長=1ビット)、符号化モードBの符号語は1
0(符号語長=2ビット)、符号化モードCの符号語は
11(符号語長=2ビット)に設定している。周辺ブロ
ックの符号化モードにBが多く含まれている場合、周辺
ブロックの符号化モードにCが多く含まれている場合
も、それぞれ同様に優勢な符号化モードの符号語長を短
くしている。この場合は、3種類の符号語セットの中か
ら周辺の符号語により選択するようにしたものである。
ただし、図3(c)に示すように周辺のブロックは、例
えば周辺ブロックの符号化モードを仮に”A”として、
周辺の各ブロックの符号化モードを符号化するものであ
る。
Specifically, when the coding mode of the peripheral block is biased to A, the code word of the coding mode A is 0.
(Codeword length = 1 bit), codeword in coding mode B is 1
0 (codeword length = 2 bits) and the codeword of the coding mode C are set to 11 (codeword length = 2 bits). Even when the encoding mode of the peripheral block includes a large amount of B and when the encoding mode of the peripheral block includes a large amount of C, the code word length of the dominant encoding mode is similarly shortened. . In this case, the codewords are selected from the three types of codeword sets according to the peripheral codewords.
However, as shown in FIG. 3C, for the peripheral blocks, for example, if the encoding mode of the peripheral blocks is “A”,
The encoding mode of each peripheral block is encoded.

【0046】次に、モード情報符号化手段2について、
図6に詳細ブロック図を示し説明する。
Next, regarding the mode information encoding means 2,
A detailed block diagram is shown in FIG. 6 and will be described.

【0047】モード情報符号化手段2では、符号化対象
ブロックの周辺ブロックの符号化モードの情報を容易に
取得できるようにするため、符号化モード判定手段1か
ら送られてくる符号化モードを符号化モード格納部10
1へ保存する。ブロックの符号化モードは1フレーム内
での当該ブロックのブロック位置に対応づけられた位置
に格納される。
The mode information encoding means 2 encodes the encoding mode sent from the encoding mode determining means 1 in order to easily obtain the information on the encoding mode of the peripheral block of the encoding target block. Conversion mode storage unit 10
Save to 1. The coding mode of a block is stored in a position associated with the block position of the block in one frame.

【0048】符号化モード読出し部102は、符号化対
象ブロックのブロック位置POS(i,j)が入力すると、符号
化対象ブロックの周辺ブロックのブロック位置POS(i-1,
j-1),POS(i,j-1),POS(i-1,j)の符号化モードMODE(i-1,
j)、MODE(i-1,j-1)、MODE(i,j-1)を符号化モード格納部
101から読み出して符号語表選択部104へ与える。
When the block position POS (i, j) of the coding target block is input, the coding mode reading unit 102 receives the block position POS (i-1, j) of the peripheral block of the coding target block.
j-1), POS (i, j-1), POS (i-1, j) coding mode MODE (i-1,
j), MODE (i-1, j-1), and MODE (i, j-1) are read from the coding mode storage unit 101 and given to the codeword table selection unit 104.

【0049】符号語表選択部104は、周辺ブロックの
符号化モードMODE(i-1,j)、MODE(i-1,j-1)、MODE(i,j-
1)の組合せと一致する組合わせに関連付けて設定されて
いる符号語表を符号語表テーブル103から選択する。
例えば、周辺ブロックの符号化モードが(A、A、
A)、(A、A、B)、(A、A、C)、(B、A、
A)、(C、A、A)、(A、B、A)、(A、C、
A)の場合は、(A=0,B=10、C=11)の符号
語表を選択する。上記した例は周辺ブロックの符号化モ
ードAが優勢の場合である。また、周辺ブロックの符号
化モードBが優勢の場合は、(A=10,B=0、C=
11)の符号語表が選択され、周辺ブロックの符号化モ
ードCが優勢の場合は、(A=10,B=11、C=
0)の符号語表が選択される。周辺ブロックのモード状
態に応じて選択された符号語表は符号化部105へ与え
られる。
The code word table selection unit 104 encodes the coding modes MODE (i-1, j), MODE (i-1, j-1) and MODE (i, j- of the peripheral blocks.
The codeword table set in association with the combination that matches the combination of 1) is selected from the codeword table 103.
For example, the coding modes of the peripheral blocks are (A, A,
A), (A, A, B), (A, A, C), (B, A,
A), (C, A, A), (A, B, A), (A, C,
In the case of A), the code word table of (A = 0, B = 10, C = 11) is selected. The above example is the case where the coding mode A of the peripheral block is dominant. When the coding mode B of the peripheral block is dominant, (A = 10, B = 0, C =
When the code word table of 11) is selected and the coding mode C of the peripheral block is dominant, (A = 10, B = 11, C =
The code word table of 0) is selected. The codeword table selected according to the mode state of the peripheral block is provided to the encoding unit 105.

【0050】このように本実施の形態1ではモード情報
の符号化に用いられる符号語表が周辺ブロックの符号化
モードの状態に応じて適応的に切替えられる。
As described above, in the first embodiment, the codeword table used for coding the mode information is adaptively switched according to the coding mode state of the peripheral blocks.

【0051】符号化部105は、符号化対象ブロックの
符号化モードを選択された符号語表に基づいて符号化す
る。いま、符号化モード判定手段1から入力した符号化
モードがAで、符号語表選択部104から入力した符号
語表が(A=0,B=10、C=11)であれば、符号
語=0を出力することになる。図3(c)の符号化モー
ドを符号化した結果を図3(d)に示す。
Encoding section 105 encodes the encoding mode of the encoding target block based on the selected code word table. If the coding mode input from the coding mode determination means 1 is A and the code word table input from the code word table selecting unit 104 is (A = 0, B = 10, C = 11), the code word is = 0 will be output. The result of encoding the encoding mode of FIG.3 (c) is shown in FIG.3 (d).

【0052】したがって、符号化対象ブロックの周辺ブ
ロックに優勢モードが含まれていて、符号化対象ブロッ
クのモードがその優勢モードと一致する場合は短い符号
語長の符号語が生成される。
Therefore, when the dominant block is included in the peripheral block of the block to be coded and the mode of the block to be coded matches the dominant mode, a code word having a short code word length is generated.

【0053】一方、ブロックデータ符号化手段3は、符
号化モード判定手段1からPOS(i,j)のブロックに関する
符号化モードとしてAまたはCが入力した場合は、符号
化対象ブロックの画素値符号化を停止させる。符号化モ
ードA、Cの場合は、ブロック内の全画素が黒又は白で
あるので、符号化モードのみでブロックの復号化が可能
であるためである。符号化モードCの場合は、符号化対
象ブロックの画素値を符号化してブロックデータに関す
る符号語を出力する。
On the other hand, the block data coding means 3 receives the pixel value code of the coding target block when A or C is inputted from the coding mode determination means 1 as the coding mode for the block of POS (i, j). Stop conversion. This is because, in the case of the coding modes A and C, all the pixels in the block are black or white, so that the block can be decoded only in the coding mode. In the case of the coding mode C, the pixel value of the block to be coded is coded to output the code word relating to the block data.

【0054】最後に、多重化手段4においては、符号化
モードに関する符号語とブロックデータに関する符号語
を多重化して符号化画像信号を出力する。図7に多重化
する際のビットストリームの一例を示すが、ブロック内
の画素が全て”0”や”1”の場合は、符号化モードの
符号語701のみとし、ブロック内の画素に”0”と”
1”が存在するときのみ符号化モードの符号語701と
ブロックデータの符号語702を出力することになる。
Finally, the multiplexing means 4 multiplexes the code word relating to the coding mode and the code word relating to the block data and outputs the coded image signal. FIG. 7 shows an example of a bit stream for multiplexing. When all the pixels in the block are “0” or “1”, only the code word 701 in the encoding mode is set and “0” is set for the pixel in the block. "When"
The codeword 701 of the encoding mode and the codeword 702 of the block data are output only when 1 ″ exists.

【0055】このように本実施の形態は、個々の符号化
モードを符号語に変換するための符号語表を周辺ブロッ
クの符号化モードの状態に関連付けて複数用意し、且つ
周辺ブロックに多く含まれている優勢モードには符号語
長の短い符号語を割付け、周辺ブロックの符号化モード
の状態に応じて符号語表を適応的に切替えるようにし
た。
As described above, in the present embodiment, a plurality of code word tables for converting each coding mode into a code word are prepared in association with the coding mode states of the peripheral blocks, and are included in many peripheral blocks. A codeword with a short codeword length is assigned to the dominant mode, and the codeword table is adaptively switched according to the state of the coding mode of the peripheral blocks.

【0056】なお、符号語表選択部104が選択した符
号語表の内容を符号化部105へ渡すのではなく、選択
した符号語表の番号だけを符号化部105へ通知して、
符号化部105が符号語表テーブル103から番号で指
示された符号語表の内容を取込むようにしても良い。
Note that the contents of the codeword table selected by the codeword table selection unit 104 are not passed to the encoding unit 105, but only the number of the selected codeword table is notified to the encoding unit 105.
The encoding unit 105 may take in the contents of the code word table designated by the number from the code word table table 103.

【0057】(実施の形態2)図8は、本発明の実施の
形態2における画像復号化装置のブロック図である。同
図において図1に示す実施の形態1と同一の手段および
信号については同じ番号を付し説明を省略する。
(Second Embodiment) FIG. 8 is a block diagram of an image decoding apparatus according to the second embodiment of the present invention. In the figure, the same means and signals as those of the first embodiment shown in FIG.

【0058】同図において、21は符号化画像信号から
符号化モードに関する符号語とブロックデータに関する
符号語を分離し出力する逆多重化手段、22は逆多重化
手段21が出力する符号化モードに関する符号語からブ
ロックの符号化モードを再生するモード情報復号化手
段、23はモード情報復号化手段22が出力するブロッ
クの符号化モードに基づいて逆多重化手段21が出力す
るブロックデータに関する符号語からブロック内の画素
値を再生するブロックデータ復号化手段、31は再生さ
れたブロック内のディジタル画素値信号を示すものであ
る。
In the figure, 21 is a demultiplexing means for separating and outputting a codeword relating to the coding mode and a codeword relating to block data from the coded image signal, and 22 is relating to the coding mode outputted by the demultiplexing means 21. The mode information decoding means for reproducing the coding mode of the block from the code word, 23 is based on the coding mode of the block output by the mode information decoding means 22, and based on the code word relating to the block data output by the demultiplexing means 21 Block data decoding means 31 for reproducing the pixel value in the block, 31 represents the reproduced digital pixel value signal in the block.

【0059】以上のように構成された実施の形態2の画
像復号化装置について、以下その動作を説明する。
The operation of the image decoding apparatus of the second embodiment having the above configuration will be described below.

【0060】まず、逆多重化手段21では、符号化画像
信号を受け取り符号化モードに関する符号語13とブロ
ックデータに関する符号語14に分離し出力する。
First, the demultiplexing means 21 receives a coded image signal, separates it into a codeword 13 relating to a coding mode and a codeword 14 relating to block data, and outputs it.

【0061】モード情報復号化手段22では、符号化モ
ードに関する符号語13を受け取り符号語表テーブルか
ら対応するブロックの符号化モード情報12を再生し出
力する。
The mode information decoding means 22 receives the code word 13 relating to the coding mode and reproduces and outputs the coding mode information 12 of the corresponding block from the code word table table.

【0062】モード情報復号化手段22での復号化対象
がPOS(i,j)のブロックであるとすると、図5に示したMO
DE(i-1,j)、MODE(i-1,j-1)、MODE(i,j-1)はすでに再生
されており、MODE(i,j)はMODE(i-1,j)、MODE(i-1,j-
1)、MODE(i,j-1)の符号化モードの状態から図4に基づ
いて符号語表テーブルを切り換えることによって、実施
の形態1によって符号化された符号化モードに関する符
号語から復号化対象ブロックの符号化モードを正しく再
生することができる。
If the object to be decoded by the mode information decoding means 22 is a POS (i, j) block, the MO shown in FIG.
DE (i-1, j), MODE (i-1, j-1), MODE (i, j-1) have already been played, and MODE (i, j) is MODE (i-1, j) , MODE (i-1, j-
1), decoding from the codeword relating to the coding mode coded according to the first embodiment by switching the codeword table table based on FIG. 4 from the state of the coding mode of MODE (i, j-1) The coding mode of the target block can be reproduced correctly.

【0063】次に、図9にモード情報復号化手段22の
詳細ブロック図を示し、説明する。
Next, a detailed block diagram of the mode information decoding means 22 is shown in FIG. 9 and will be described.

【0064】復号化部110が符号化モードの符号語を
復号化すると、復号化した符号化モードを符号化モード
格納部111の当該画素ブロック位置に書き込む。
When the decoding unit 110 decodes the code word of the coding mode, the decoded coding mode is written in the pixel block position of the coding mode storage unit 111.

【0065】符号化モード読出し部112には復号化対
象ブロックの1フレーム内での位置情報が入力される。
符号化モード読出し部112は、復号化対象ブロックの
位置情報に基づいて復号化対象ブロック周辺の復号化済
みブロックの符号化モードを符号化モード格納部111
から読み出して、符号語表選択部114へ入力する。
The position information of the block to be decoded within one frame is input to the coding mode reading section 112.
The coding mode reading unit 112 sets the coding modes of the decoded blocks around the decoding target block based on the position information of the decoding target block.
Read out from and input to the code word table selection unit 114.

【0066】符号語表選択部114は、復号化対象ブロ
ックの周辺ブロックの符号化モードの状態に基づいて符
号語表予測テーブル113から符号化時の符号語表と同
じ符号語表を取出す。符号語表テーブル113から取出
された符号語表は復号化部110へ渡される。
The codeword table selection unit 114 extracts the same codeword table as the codeword table at the time of encoding from the codeword table prediction table 113 based on the state of the coding mode of the peripheral blocks of the block to be decoded. The code word table extracted from the code word table table 113 is passed to the decoding unit 110.

【0067】復号化部110は、符号語表選択部114
から渡された符号語表を用いて復号化対象ブロックの符
号化モードに関する符号語を復号化する。
The decoding unit 110 has a codeword table selecting unit 114.
The codeword relating to the coding mode of the block to be decoded is decoded using the codeword table passed from.

【0068】復号化された符号化モードは、符号化モー
ド格納部111に格納される一方で、ブロックデータ復
号化手段23へ入力される。
The decoded coding mode is input to the block data decoding means 23 while being stored in the coding mode storage unit 111.

【0069】ブロックデータ復号化手段23は、ブロッ
クデータに関する符号語14を受け取り、符号化モード
情報12に示された符号化モードに対応する復号化処理
を行うことによってブロック内のディジタル画素値信号
31を再生し出力する。
The block data decoding means 23 receives the code word 14 relating to the block data and performs a decoding process corresponding to the coding mode indicated in the coding mode information 12 to obtain the digital pixel value signal 31 in the block. Play and output.

【0070】なお、上記実施の形態1および実施の形態
2においては符号化対象ブロックの符号化モードの予測
に3つの周辺ブロックの符号化モードを用いたが、さら
に参照ブロックの数を増やすことは可能である。
Although the coding modes of the three peripheral blocks are used for predicting the coding mode of the coding target block in the first and second embodiments, it is possible to further increase the number of reference blocks. It is possible.

【0071】また、上記実施例では符号化モードが3種
類(A、B、C)である場合について述べているが、さ
らに状態数を多くしても同様の処理を行なうことは可能
である。
Further, although the above embodiment describes the case where there are three kinds of encoding modes (A, B, C), the same processing can be performed even if the number of states is further increased.

【0072】また、上記実施の形態では、符号化モード
情報の符号化に図4に示した符号語表を用いたが、算術
符号化手法を用い、符号化対象ブロックの符号化モード
情報の予測値によって算術符号化に用いる確率モデルを
切り換えることは可能である。
Further, in the above embodiment, the code word table shown in FIG. 4 is used for coding the coding mode information, but the arithmetic coding method is used to predict the coding mode information of the current block. It is possible to switch the probabilistic model used for arithmetic coding depending on the value.

【0073】なお、実施の形態1の画像符号化装置と実
施の形態2の画像復号化装置とを組み合わせることで、
符号化/復号化装置の実現が可能である。 (実施の形態3)図10は本発明の実施の形態3におけ
る画像符号化装置のブロック図である。同図において、
図1に示す実施の形態1と同一の手段および信号につい
ては同じ番号を付し説明を省略する。
By combining the image coding apparatus according to the first embodiment and the image decoding apparatus according to the second embodiment,
It is possible to realize an encoding / decoding device. (Embodiment 3) FIG. 10 is a block diagram of an image coding apparatus according to Embodiment 3 of the present invention. In the figure,
The same means and signals as those in the first embodiment shown in FIG.

【0074】図10において、41は符号化モード判定
手段1から出力されるブロック毎の符号化モード情報を
保持し1フレーム分をまとめて出力するメモリ、42は
メモリ41から出力される1フレーム分の符号化モード
情報をまとめて符号化し符号語を作成するモード情報符
号化手段、43はブロックデータ符号化手段3において
作成されたブロック毎のブロックデータに関する符号語
を保持し1フレーム分まとめて出力するメモリ、44は
メモリ43が出力する1フレーム分のモード情報に関す
る符号語とメモリ43が出力する1フレーム分のブロッ
クデータに関する符号語を多重化し符号化画像信号を生
成する多重化手段である。なお、51は12フレーム分
の符号化モード情報、52は1フレーム分のモード情報
に関する符号語、53は1フレーム分のブロックデータ
に関する符号語、54はディジタル入力画像の符号化画
像信号を示すものである。
In FIG. 10, reference numeral 41 is a memory for holding the coding mode information for each block output from the coding mode determination means 1 and collectively outputting one frame, and 42 is one frame output from the memory 41. Mode information coding means for collectively coding the coding mode information of 4 to create a code word, and 43 holds the code words relating to the block data for each block created in the block data coding means 3 and collectively outputs one frame. The memory 44 is a multiplexing unit that multiplexes a code word relating to one frame of mode information output from the memory 43 and a code word relating to one frame of block data output from the memory 43 to generate a coded image signal. In addition, 51 is coding mode information for 12 frames, 52 is a code word for mode information for 1 frame, 53 is a code word for block data for 1 frame, and 54 is a coded image signal of a digital input image. Is.

【0075】以上のように構成された実施の形態3の画
像符号化装置について、以下その動作を説明する。
The operation of the image coding apparatus of the third embodiment having the above configuration will be described below.

【0076】まず、ディジタル入力画像信号11は、実
施の形態1と同様に符号化モード判定手段1によってPO
S(i,j)のブロックの符号化モードMODE(i,j)が決定され
る。決定されたMODE(i,j)はメモリ41によって保持さ
れ1フレーム分のすべての符号化モードMODE(1,1),MODE
(1,2),...MODE(2,1),..MODE(X,Y)としてモード情報符号
化手段42へ入力される。
First, the digital input image signal 11 is output to the PO mode by the coding mode determination means 1 as in the first embodiment.
The coding mode MODE (i, j) of the block of S (i, j) is determined. The determined MODE (i, j) is held in the memory 41 and all the encoding modes for one frame MODE (1,1), MODE
(1,2), ... MODE (2,1), .. MODE (X, Y) is input to the mode information encoding means 42.

【0077】次に、モード情報符号化手段42では、1
フレーム分のモード情報を符号化し符号語52を出力す
る。ブロック内の画素データは、実施の形態1と同様に
ブロックデータ符号化手段3によって符号化されたブロ
ックデータに関する符号語がメモリ43によって保持さ
れ1フレーム分すべてのブロックデータに関する符号語
53にまとめられる。モード情報符号化手段42での符
号化動作について具体的に説明する。
Next, in the mode information encoding means 42, 1
The mode information for the frame is encoded and the code word 52 is output. As for the pixel data in the block, the code word relating to the block data encoded by the block data encoding means 3 is held in the memory 43 as in the case of the first embodiment, and is combined into the code word 53 relating to all the block data for one frame. . The encoding operation of the mode information encoding means 42 will be specifically described.

【0078】モード情報 符号化手段42は、複数のブ
ロックの符号化モードを一度に符号化するための符号語
表(表1)を備えている。この符号語表は、3種類の符
号化モード(A,B,C)を2個づつ組合せた全組合せ
に対して固有の符号語がそれぞれ割り付けられている。
特に、同一符号化モードの組合せ(A,A)、(B,
B)、(C,C)について他の組み合わせよりも符号語
長が相対的に短くなるようにしている。
Mode Information Encoding means 42 has a code word table (Table 1) for encoding the encoding modes of a plurality of blocks at once. In this codeword table, unique codewords are assigned to all combinations of two combinations of three types of encoding modes (A, B, C).
In particular, combinations of identical coding modes (A, A), (B,
For B) and (C, C), the code word length is relatively shorter than other combinations.

【0079】[0079]

【表1】 [Table 1]

【0080】いま、1フレーム分の符号化モードとして
図11(a)に示すような内容の1フレーム分の符号化
モードがモード情報符号化手段42へ転送されてきたも
のとする。
Now, it is assumed that the coding mode for one frame having the contents shown in FIG. 11A has been transferred to the mode information coding means 42 as the coding mode for one frame.

【0081】ラインの先頭から順番に2ブロックづつ符
号化モードを切り出す。図11(a)に示す場合であれ
ば(A,B)(B,B)(A,A)といった順番で、水
平方向に連続する2個づつの符号化モードが1単位とし
て符号化の対象となる。
The coding mode is cut out every two blocks in order from the beginning of the line. In the case shown in FIG. 11A, in the order of (A, B) (B, B) (A, A), two consecutive encoding modes in the horizontal direction are set as one unit and are to be encoded. Becomes

【0082】図11(a)に示す1フレーム分の符号化
モードを、(表1)の符号語表で符号化した結果を図1
1(b)に示す。同じモードが連続する領域は符号語長
の短い符号語となっている事が分かる。
FIG. 1 shows the result of encoding the encoding mode for one frame shown in FIG. 11A with the codeword table of (Table 1).
1 (b). It can be seen that the region where the same mode continues has a short codeword length.

【0083】一方、画素ブロックの画素データは、実施
の形態1と同様にブロックデータ符号化手段3によって
符号化され、ブロックデータに関する符号語がメモリ4
3によって保持され1フレーム分すべてのブロックデー
タに関する符号語53にまとめられる。
On the other hand, the pixel data of the pixel block is coded by the block data coding means 3 as in the first embodiment, and the code word relating to the block data is stored in the memory 4.
3 is stored in the code word 53 for all the block data for one frame.

【0084】そして、多重化手段44では符号化モード
に関する符号語52と1フレーム分すべてのブロックデ
ータに関する符号語53を多重化して符号化画像信号5
4を出力する。
Then, the multiplexing means 44 multiplexes the code word 52 relating to the coding mode and the code word 53 relating to all the block data for one frame to obtain the coded image signal 5
4 is output.

【0085】このように実施の形態3は、1フレーム分
の画素ブロックの符号化モードをメモリに蓄積してか
ら、複数の符号化モードを一度に符号化するようにして
いる。複数の符号化モードを一度に符号化するための符
号語表には同一符号化モードの組合せに対して符号語長
の短い符号語を割り当てるように設定している。
As described above, in the third embodiment, the coding modes of the pixel block for one frame are accumulated in the memory, and then the plural coding modes are coded at once. In a codeword table for encoding a plurality of encoding modes at once, a codeword having a shorter codeword length is assigned to a combination of the same encoding modes.

【0086】(実施の形態4)図12は本発明の実施の
形態4における画像復号化装置のブロック図である。同
図において図8に示す実施の形態2と同一の信号には同
じ番号を付し、説明を省略する。
(Embodiment 4) FIG. 12 is a block diagram of an image decoding apparatus according to Embodiment 4 of the present invention. In the figure, the same signals as those in the second embodiment shown in FIG. 8 are designated by the same reference numerals, and description thereof will be omitted.

【0087】同図において、61は符号化信号から符号
化モードに関する符号語列とブロックデータに関する符
号語列とを分離する逆多重化手段、62は逆多重化手段
61が出力する符号化モードに関する符号語列からモー
ド情報を得るモード情報復号化手段、63はモード情報
復号化手段62が出力する1フレーム分のすべてのブロ
ックのモード情報を保持するメモリ、23はメモリ63
が出力するブロックの符号化モードにしたがって逆多重
化手段61が出力する対応するブロックデータに関する
符号語列から画素値を再生するブロックデータ復号化手
段である。なお、31は再生されたディジタル画像信号
を示すものである。
In the figure, reference numeral 61 is a demultiplexing means for separating a codeword string related to the coding mode and a codeword string related to block data from the coded signal, and 62 is related to the coding mode output by the demultiplexing means 61. Mode information decoding means for obtaining mode information from the code word string, 63 is a memory for holding the mode information of all blocks for one frame output by the mode information decoding means 62, and 23 is a memory 63.
Is a block data decoding unit that reproduces a pixel value from a codeword string relating to the corresponding block data output by the demultiplexing unit 61 according to the block encoding mode output by the. The numeral 31 indicates a reproduced digital image signal.

【0088】以上のように構成された実施の形態4の画
像復号化装置について、以下その動作を説明する。
The operation of the image decoding apparatus according to the fourth embodiment having the above configuration will be described below.

【0089】まず、逆多重化手段61では符号化信号5
4を受けとり、1フレーム分のすべてのブロックの符号
化モードに関する符号語列および各ブロックのブロック
データに関する符号語列に分離し出力する。
First, in the demultiplexing means 61, the encoded signal 5
4 is received and separated into a codeword string relating to the coding mode of all blocks for one frame and a codeword string relating to the block data of each block, and output.

【0090】次に、モード情報復号化手段62では、実
施の形態3での符号化とは逆の手順で符号語表(表1)
を使用して、1フレーム分の符号化モードに関する符号
語列52から1フレーム内のすべてのブロックの符号化
モードを復号化する。そして、メモリ63では1フレー
ム内のすべてのブロックの符号化モードを保持し、ブロ
ックデータ復号化手段23からの要求にしたがってPOS
(i,j)位置のブロックの符号化モードMODE(i,j)を出力す
る。
Next, in the mode information decoding means 62, the code word table (Table 1) is processed in the reverse order of the encoding in the third embodiment.
Is used to decode the coding modes of all the blocks in one frame from the codeword string 52 related to the coding mode of one frame. Then, the memory 63 holds the coding modes of all the blocks in one frame, and POS is performed in accordance with the request from the block data decoding means 23.
Outputs the coding mode MODE (i, j) of the block at the (i, j) position.

【0091】最後に、ブロックデータ復号化手段23は
逆多重化手段61によって分離され出力されたPOS(i,j)
位置のブロックのブロックデータに関する符号語列14
とメモリ63より出力されたブロックの符号化モードMO
DE(i,j)を受けとり、MODE(i,j)にしたがってブロック内
の画素値を再生し出力する。
Finally, the block data decoding means 23 is separated by the demultiplexing means 61 and output POS (i, j).
Codeword string 14 regarding the block data of the block at the position
And the coding mode MO of the block output from the memory 63
It receives DE (i, j), reproduces and outputs the pixel value in the block according to MODE (i, j).

【0092】さらに出力されたブロック毎の画素値を図
中に示していない適当な並べ変え手段によって走査順に
並べ換えることによってディジタル画像信号を再生す
る。
Further, the output pixel values for each block are rearranged in the scanning order by an appropriate rearranging means not shown in the figure to reproduce the digital image signal.

【0093】上記に説明した実施の形態では、モード情
報復号化手段62において復号化された1フレーム内の
すべてのブロックの符号化モードをメモリ63に保持
し、ブロックデータ復号化手段23の要求にしたがって
再生しようとする対象ブロックの符号化モードMODE(i,
j)が得られるようにすることによって、実施の形態3で
示した画像符号化装置によって符号化された符号化画像
信号を正しく再生することが出来る。
In the embodiment described above, the coding modes of all the blocks in one frame decoded by the mode information decoding means 62 are held in the memory 63, and the block data decoding means 23 requests them. Therefore, the coding mode MODE (i,
By obtaining j), the coded image signal coded by the image coding apparatus shown in the third embodiment can be correctly reproduced.

【0094】なお、上記実施の形態3および実施の形態
4においては2つの連続する画素ブロックの符号化モー
ドをまとめて符号化したが、さらに多くの画素ブロック
の符号化モードをまとめて符号化することも可能であ
る。また、水平方向に連続する複数の画素ブロックを符
号化の対象としているが、垂直方向に連続する複数の画
素ブロックや、2次元方向に連続する画素ブロックをま
とめて符号化の対象にすることもできる。この場合は、
まとめて符号化の対象となるブロックの組合わせ対応し
た符号語表が必要となる。
In the third and fourth embodiments, the coding modes of two consecutive pixel blocks are collectively coded, but the coding modes of more pixel blocks are collectively coded. It is also possible. Further, although a plurality of pixel blocks continuous in the horizontal direction are targeted for encoding, a plurality of pixel blocks continuous in the vertical direction or pixel blocks continuous in a two-dimensional direction may be collectively targeted for encoding. it can. in this case,
A codeword table corresponding to a combination of blocks to be collectively encoded is required.

【0095】また、上記実施の形態では、モード情報の
符号化を示した(表1)の符号語表を用いたが、算術符
号化手法など他の符号化手法を用いることも可能であ
る。なお、本実施の形態4における復号化装置は、実施
の形態3の符号化装置と組み合わせることで、符号化/
復号化装置の実現が可能である。
Further, in the above embodiment, the code word table of (Table 1) showing the coding of the mode information is used, but it is also possible to use another coding method such as an arithmetic coding method. The decoding device according to the fourth embodiment is combined with the encoding device according to the third embodiment to perform encoding / decoding.
It is possible to realize a decoding device.

【0096】(実施の形態5)本発明は実施の形態1、
2、3、4に示した構成をプログラムによってソフト的
に実現し、これをフロッピー(R)ディスク等の記録媒
体に記録して移送することにより、独立した他のコンピ
ュータシステムで容易に実施することができる。
(Embodiment 5) The present invention is based on Embodiment 1,
To realize easily by another independent computer system by realizing the configuration shown in 2, 3, 4 as a software by a program, recording it on a recording medium such as a floppy (R) disk and transferring it. You can

【0097】図14にコンピュータシステムのブロック
構成図を示し、以下に説明する。120はTV信号、V
TR、DVD等からの動画像を再生し入力する動画像入
力装置、121はメモリ、122はプログラムによって
画像符号化処理または画像復号化処理を行うCPU(中
央演算装置)、123はCPU122に指示を与えるキ
ーボードやディスプレイおよびFD(フロッピー(R)
ディスク)、ICカード、CD−ROM等のプログラム
を記憶した記憶媒体を読みとる装置からなる入出力装
置、124はCPU122が処理した結果を表示するデ
ィスプレイ、125はCPU122が処理した結果を記
憶する外部記憶装置である。
FIG. 14 shows a block diagram of a computer system, which will be described below. 120 is a TV signal, V
A moving image input device for reproducing and inputting moving images from TRs, DVDs, etc., 121 is a memory, 122 is a CPU (central processing unit) for performing image encoding processing or image decoding processing by a program, and 123 is an instruction to the CPU 122. Give keyboard and display and FD (floppy (R)
Disk), IC card, CD-ROM, and other input / output devices configured to read a storage medium storing a program, 124 is a display for displaying the results processed by the CPU 122, and 125 is an external memory for storing the results processed by the CPU 122. It is a device.

【0098】まず、処理に先立ち、入出力装置123の
指示により予め画像符号化プログラムまたは画像復号化
プログラムがFDやCD−ROM等の記録媒体を読みと
る装置を介してCPU122にインストールされてお
り、さらに入出力装置123により画像符号化プログラ
ムまたは画像復号化プログラムが起動しているものとす
る。
First, prior to the processing, an image encoding program or an image decoding program is installed in the CPU 122 in advance by an instruction of the input / output device 123 through a device that reads a recording medium such as an FD or a CD-ROM. It is assumed that the image encoding program or the image decoding program is activated by the input / output device 123.

【0099】上記のように構成されたコンピュータシス
テムにおいて、プログラムされたコンピュータによって
複数の画素からなる2次元のブロックに分割されたディ
ジタル画像をブロック毎に符号化する画像符号化装置に
ついて、図15の処理フローに沿って説明する。
In the computer system configured as described above, an image coding apparatus for coding a digital image divided into two-dimensional blocks consisting of a plurality of pixels by the programmed computer for each block is shown in FIG. A description will be given along the processing flow.

【0100】ステップ200は、入出力装置123の指
示により動画像入力装置120から画像信号をCPU1
22を介してメモり121に記録される。画像信号は、
1フレーム単位または複数フレーム単位であっても良
い。
In step 200, an image signal is sent from the moving image input device 120 to the CPU 1 according to an instruction from the input / output device 123.
It is recorded in the memory 121 via 22. The image signal is
It may be one frame unit or a plurality of frame units.

【0101】ステップ201は、メモリ121の1フレ
ームの画像信号を複数のブロックに分割し、ブロックP
(i,j)の画素値を取り出す。
In step 201, the image signal of one frame in the memory 121 is divided into a plurality of blocks, and a block P
The pixel value of (i, j) is taken out.

【0102】ステップ202は、ブロック内の画素値か
ら符号化モードA(ブロック内全て”0”)、B(ブロ
ック内に”0”と”1”が存在)、C(ブロック内全
て”1”)を決定する。ステップ203は、符号化モー
ドが”B”のみ、メモリ121からのブロックデータを
符号語に変換する。ステップ204は、周辺の符号化モ
ードから符号語表テーブルに従って、対象ブロックの符
号化モードを符号語に変換する。
In step 202, from the pixel values in the block, the coding modes A (all "0" in the block), B ("0" and "1" exist in the block), C (all "1" in the block) are selected. ) Is determined. Step 203 converts the block data from the memory 121 into a code word only when the coding mode is "B". In step 204, the coding mode of the target block is converted into a code word from the surrounding coding modes according to the code word table table.

【0103】ステップ205は、符号化モードの符号語
とブロックデータの符号語を多重化する。ステップ20
6は、次のブロック位置に移動する。ステップ208
は、処理が終了かどうかを判断し、NOの場合は、ステ
ップ201からステップ206を繰り返し行う。YES
の場合は、ステップ208に進み、多重化により構成さ
れた符号化画像信号を外部記憶装置125に録画する。
なお、ブロック単位で外部記憶装置125に録画しても
何ら差し支えない。
In step 205, the code word of the coding mode and the code word of the block data are multiplexed. Step 20
6 moves to the next block position. Step 208
Determines whether or not the processing is completed. If NO, repeats steps 201 to 206. Yes
In the case of, the process proceeds to step 208 and the coded image signal formed by multiplexing is recorded in the external storage device 125.
It should be noted that there is no problem even if the image is recorded in the external storage device 125 in block units.

【0104】次に、プログラムされたコンピュータによ
って符号化画像信号を入力として複数の画素からなる2
次元のブロック毎に画像を再生し、そのブロック内の画
素値を並べ換えることによってディジタル画像を再生す
る画像復号化装置について、図16の処理フローに沿っ
て説明する。
Next, a coded image signal is input by the programmed computer to a plurality of pixels 2
An image decoding apparatus that reproduces an image for each dimensional block and rearranges pixel values in the block to reproduce a digital image will be described with reference to the processing flow of FIG.

【0105】ステップ220は、動画像入力装置120
から符号化画像信号をCPU122を介してメモり12
1に入力する。
In step 220, the moving image input device 120 is used.
The encoded image signal from the memory 12 via the CPU 122.
Enter 1.

【0106】ステップ221は、多重化された符号化画
像信号を、ブロック単位で読み出し、対象ブロックP(i,
j)に対して符号化モードの符号語とブロックデータの符
号語を分離する。ステップ222は、対象ブロックの符
号化モードを、周辺の復号化済みのブロックの符号化モ
ードと符号化表テーブルにより、符号化モードを再生す
る。ステップ223は、再生された符号化モードに従っ
てブロックデータを復号化する。ステップ224は、対
象ブロックのブロックデータをメモリ121に記憶す
る。
In step 221, the multiplexed encoded image signal is read in block units, and the target block P (i,
For j), the code word of the coding mode and the code word of the block data are separated. In step 222, the coding mode of the target block is reproduced based on the coding modes of the surrounding decoded blocks and the coding table table. Step 223 decodes the block data according to the reproduced coding mode. Step 224 stores the block data of the target block in the memory 121.

【0107】ステップ225は、次のブロック位置に移
動する。ステップ226は、処理が終了かどうかを判断
するもので、NOの場合は、ステップ221からステッ
プ226の処理を繰り返し行う。YESの場合は、ステ
ップ227に進み、復号化されたデジタル画像信号を外
部記憶装置125に録画またはディスプレイ124に出
力する。
Step 225 moves to the next block position. In step 226, it is determined whether or not the processing is completed. If NO, the processing from step 221 to step 226 is repeated. If YES, the process proceeds to step 227, and the decoded digital image signal is recorded in the external storage device 125 or output to the display 124.

【0108】図13に記録媒体の例としてフロッピー
(R)ディスクを示す。
FIG. 13 shows a floppy (R) disk as an example of the recording medium.

【0109】なお、この実施の形態においては、記録媒
体としてフロッピー(R)ディスクを示したが、ICカー
ドやCD-ROM、磁気テープ等プログラムを記録できるもの
であれば、同様に実施することができる。
Although a floppy (R) disk is shown as a recording medium in this embodiment, the same operation can be performed as long as a program such as an IC card, a CD-ROM, or a magnetic tape can be recorded. it can.

【0110】本発明は、上述した各実施の形態に限定さ
れるものではなく、本発明の要旨を逸脱しない範囲で種
々変形実施可能であり、それらは本発明の範囲に含まれ
るものである。
The present invention is not limited to the above-described embodiments, but various modifications can be made without departing from the gist of the present invention, which are included in the scope of the present invention.

【0111】[0111]

【発明の効果】以上のように、本発明の効果としては、
ディジタル画像をブロック分割し、ブロック毎にブロッ
クの符号化モードとブロックデータに分けて符号化した
データを復号化する画像復号化装置/方法において、符
号化モードに関する符号語の符号化効率の向上が図ら
れ、より少ないビット数で符号化できるという顕著な効
果が得られる。
As described above, the effects of the present invention are as follows.
In an image decoding apparatus / method for dividing a digital image into blocks, and decoding the encoded data by dividing each block into a block encoding mode and block data, it is possible to improve the encoding efficiency of codewords related to the encoding mode. As a result, it is possible to obtain a remarkable effect that encoding can be performed with a smaller number of bits.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施の形態1における画像符号化装置
のブロック図
FIG. 1 is a block diagram of an image encoding device according to a first embodiment of the present invention.

【図2】同実施の形態1におけるディジタル入力画像の
ブロック分割を示す概念図
FIG. 2 is a conceptual diagram showing block division of a digital input image according to the first embodiment.

【図3】同実施の形態1における符号化モード判定手段
を説明する図
FIG. 3 is a diagram for explaining a coding mode determination means according to the first embodiment.

【図4】同実施の形態1における画像符号化装置の符号
語表テーブルを示す図
FIG. 4 is a diagram showing a code word table table of the image coding apparatus according to the first embodiment.

【図5】同実施の形態1における対象ブロックと周辺ブ
ロックを示す概念図
FIG. 5 is a conceptual diagram showing a target block and peripheral blocks according to the first embodiment.

【図6】同実施の形態1における画像符号化装置のモー
ド情報符号化手段の詳細ブロック図
FIG. 6 is a detailed block diagram of mode information coding means of the image coding apparatus according to the first embodiment.

【図7】同実施の形態1における画像符号化装置のビッ
トストリームを説明する図
FIG. 7 is a diagram illustrating a bitstream of the image coding apparatus according to the first embodiment.

【図8】本発明の実施の形態2における画像復号化装置
のブロック結線図
FIG. 8 is a block connection diagram of an image decoding device according to a second embodiment of the present invention.

【図9】同実施の形態2における画像復号化装置のモー
ド情報復号化手段の詳細ブロック図
FIG. 9 is a detailed block diagram of mode information decoding means of the image decoding apparatus according to the second embodiment.

【図10】本発明の実施の形態3における画像符号化装
置のブロック図
FIG. 10 is a block diagram of an image coding apparatus according to Embodiment 3 of the present invention.

【図11】同実施の形態3における符号化モードの符号
化で隣接ブロックを組みとする一例
FIG. 11 is an example in which adjacent blocks are combined in encoding in the encoding mode according to the third embodiment.

【図12】本発明の実施の形態4における画像復号化装
置のブロック図
FIG. 12 is a block diagram of an image decoding apparatus according to Embodiment 4 of the present invention.

【図13】本発明の実施の形態5における記録媒体の例
としてフロッピー(R)ディスクの平面図
FIG. 13 is a plan view of a floppy (R) disk as an example of a recording medium according to a fifth embodiment of the present invention.

【図14】同実施の形態5におけるコンピュータシステ
ムのブロック構成図
FIG. 14 is a block diagram of a computer system according to the fifth embodiment.

【図15】同実施の形態5におけるコンピュータによる
画像符号化装置の動作フロー図
FIG. 15 is an operation flowchart of the image encoding device by the computer in the fifth embodiment.

【図16】同実施の形態5におけるコンピュータによる
画像復号化装置の動作フロー図
FIG. 16 is an operation flowchart of the image decoding device by the computer in the fifth embodiment.

【符号の説明】[Explanation of symbols]

1 符号化モード判定手段 2、42 モード情報符号化手段 3 ブロックデータ符号化手段 4、44 多重化手段 21、61 逆多重化手段 22、62 モード情報復号化手段 23 ブロックデータ復号化手段 41、43、63 メモリ 101 符号化モード格納部 102 符号化モード読出し部 103 符号語表テーブル 104 符号語表選択部 105 符号化部 110 復号化部 111 符号化モード格納部 112 符号化モード読出し部 113 符号語表テーブル 114 符号語表選択部 120 動画像入力装置 121 メモリ 122 CPU 123 入出力装置 124 ディスプレイ 125 外部記憶装置 701 符号化モードの符号語 702 ブロックデータの符号語 1 Encoding mode determination means 2,42 Mode information coding means 3 block data encoding means 4,44 Multiplexing means 21, 61 Demultiplexing means 22, 62 Mode information decoding means 23 block data decoding means 41, 43, 63 memory 101 encoding mode storage unit 102 encoding mode reading unit 103 codeword table table 104 codeword table selection unit 105 encoder 110 Decoding unit 111 encoding mode storage unit 112 Encoding Mode Reading Unit 113 codeword table 114 codeword table selection unit 120 Video input device 121 memory 122 CPU 123 I / O device 124 display 125 external storage device 701 encoding mode codeword 702 Block data codeword

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/413 H03M 7/36 H04N 7/24 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) H04N 1/413 H03M 7/36 H04N 7/24

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 符号化画像信号を入力し2次元のブロッ
ク毎にディジタル画像を復号化する画像復号化方法であ
って、 符号化画像信号から符号化モードに関する符号語とブロ
ックデータに関する符号語を分離し出力するステップ
と、 前記符号化モードに関する符号語から復号化対象ブロッ
ク周辺の復号化済みブロックの符号化モードの組合せに
対応させて符号語を定めた符号語表を切り換え復号化対
象ブロックの符号化モードを再生するステップと、 前記復号化対象ブロックの符号化モードに基づいて、前
記分離された復号化対象ブロックデータに関する符号語
からブロック内の画素データを再生するステップと、を
具備することを特徴とする画像復号化方法。
1. An image decoding method for inputting a coded image signal and decoding a digital image for each two-dimensional block, wherein a codeword relating to a coding mode and a codeword relating to block data are generated from the coded image signal. A step of separating and outputting, and switching the codeword table defining the codeword corresponding to the combination of the coding modes of the decoded blocks around the decoding target block from the codeword related to the coding mode of the decoding target block Reproducing a coding mode; and reproducing pixel data in a block from a codeword relating to the separated decoding target block data based on the coding mode of the decoding target block. An image decoding method characterized by:
【請求項2】 符号化画像信号を入力し2次元のブロッ
ク毎にディジタル画像を復号化する画像復号化装置であ
って、 符号化画像信号から符号化モードに関する符号語とブロ
ックデータに関する符号語を分離し出力する逆多重化手
段と、 前記符号化モードに関する符号語から復号化対象ブロッ
ク周辺の復号化済みブロックの符号化モードの組合せに
対応させて符号語を定めた符号語表を切り換え復号化対
象ブロックの符号化モードを再生するモード情報復号化
手段と、 前記復号化対象ブロックの符号化モードに基づいて、前
記逆多重化手段からの復号化対象ブロックデータに関す
る符号語からブロック内の画素データを再生するブロッ
クデータ復号化手段と、を具備する画像復号化装置。
2. An image decoding apparatus for inputting a coded image signal and decoding a digital image for each two-dimensional block, wherein a codeword relating to a coding mode and a codeword relating to block data are generated from the coded image signal. Demultiplexing means for separating and outputting, and switching and decoding a codeword table in which codewords are determined corresponding to a combination of coding modes of decoded blocks around a decoding target block from the codewords related to the coding mode Mode information decoding means for reproducing the coding mode of the target block, and pixel data in the block from the code word relating to the decoding target block data from the demultiplexing means based on the coding mode of the decoding target block And a block data decoding means for reproducing the image.
【請求項3】 符号化画像信号を入力し2次元のブロッ
ク毎にディジタル画像を復号化する手順を実行させる画
像復号化プログラムを記録した記録媒体であって、 前記画像復号化プログラムは、 符号化画像信号から符号化モードに関する符号語とブロ
ックデータに関する符号語を分離し出力する手順と、 前記符号化モードに関する符号語から復号化対象ブロッ
ク周辺の復号化済みブロックの符号化モードの組合せに
対応させて符号語を定めた符号語表を切り換え復号化対
象ブロックの符号化モードを再生する手順と、 前記復号化対象ブロックの符号化モードに基づいて、前
記分離された復号化対象ブロックデータに関する符号語
からブロック内の画素データを再生する手順と、を含む
ことを特徴とする機械読みとり可能な記録媒体。
3. A recording medium recording an image decoding program for receiving a coded image signal and executing a procedure of decoding a digital image for each two-dimensional block, wherein the image decoding program is Corresponding to a procedure of separating and outputting a code word related to the coding mode and a code word related to the block data from the image signal, and a combination of the coding mode of the decoded block around the decoding target block And a procedure for reproducing the coding mode of the decoding target block by switching the codeword table defining the codeword, and a codeword relating to the separated decoding target block data based on the coding mode of the decoding target block. And a procedure for reproducing pixel data in a block from a machine-readable recording medium.
JP2001341201A 1996-11-07 2001-11-06 Image decoding method, image decoding device, and recording medium storing image decoding program Expired - Lifetime JP3464658B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001341201A JP3464658B2 (en) 1996-11-07 2001-11-06 Image decoding method, image decoding device, and recording medium storing image decoding program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP29473796 1996-11-07
JP8-294737 1996-11-07
JP2001341201A JP3464658B2 (en) 1996-11-07 2001-11-06 Image decoding method, image decoding device, and recording medium storing image decoding program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2000063115A Division JP3527454B2 (en) 1996-11-07 2000-03-08 Image decoding method, image decoding device, and recording medium storing image decoding program

Publications (2)

Publication Number Publication Date
JP2002165215A JP2002165215A (en) 2002-06-07
JP3464658B2 true JP3464658B2 (en) 2003-11-10

Family

ID=26559965

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001341201A Expired - Lifetime JP3464658B2 (en) 1996-11-07 2001-11-06 Image decoding method, image decoding device, and recording medium storing image decoding program

Country Status (1)

Country Link
JP (1) JP3464658B2 (en)

Also Published As

Publication number Publication date
JP2002165215A (en) 2002-06-07

Similar Documents

Publication Publication Date Title
KR100425615B1 (en) Encoding method and encoding apparatus and decoding method and decoding apparatus
JP3208101B2 (en) Image encoding method, image encoding device, and recording medium recording image encoding program
ES2299787T3 (en) IMPROVED VIDEO CODING USING ADAPTIVE CODING OF BLOCK PARAMETERS FOR CODED / UNCODED BLOCKS.
JP3037407B2 (en) Digital signal processing system
JPH11317720A (en) Embedding and extracting method for additional data of encoded data stream
KR100883602B1 (en) Method and apparatus for encoding/decoding video signal using reference pictures
JP3527454B2 (en) Image decoding method, image decoding device, and recording medium storing image decoding program
JP2002232887A (en) Image encoding method and image encoder, and image decoding method and image decoder
JP3464660B2 (en) Image encoding method, image encoding device, image decoding method, and image decoding device
JP3464658B2 (en) Image decoding method, image decoding device, and recording medium storing image decoding program
JP3464659B2 (en) Image decoding method, image decoding device, and recording medium storing image decoding program
JP3222875B2 (en) Image encoding method, image encoding device, and recording medium recording image encoding program
JP3222876B2 (en) Image encoding method, image encoding device, and recording medium recording image encoding program
JP3370468B2 (en) Optical disk recording method, optical disk reproducing method and reproducing apparatus, and optical disk
JP4372137B2 (en) Video information recording method and video information recording medium
JPH11285023A (en) Transmitting, recording, and reproducing device for image information
JP3902698B2 (en) Lossless compression encoding apparatus and lossless decompression decoding apparatus for moving images
JP4409517B2 (en) Optical disc recording method, optical disc, optical disc reproducing method, and optical disc reproducing apparatus
JP3776079B2 (en) Optical disc recording method, optical disc, optical disc reproducing method, and optical disc reproducing apparatus
JP2004242275A (en) Moving picture encoding method, moving picture decoding method, moving picture encoding program, moving picture decoding program, moving picture encoder, and moving picture decoder
JP2002300364A (en) Electronic watermark information embedding device, electronic watermark information reproducing device and recording medium
JPH09214888A (en) Video signal recording device and video signal reproducing device
JP2004297528A (en) Coding decoding system
JP2001069509A (en) Image processing unit and method therefor
JP2000020731A (en) Method and device for encoding/decoding linear moving image and recording medium recording linear moving image encoding/decoding program

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070822

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080822

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080822

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100822

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110822

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110822

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120822

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130822

Year of fee payment: 10

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S131 Request for trust registration of transfer of right

Free format text: JAPANESE INTERMEDIATE CODE: R313135

SZ02 Written request for trust registration

Free format text: JAPANESE INTERMEDIATE CODE: R313Z02

SZ02 Written request for trust registration

Free format text: JAPANESE INTERMEDIATE CODE: R313Z02

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term