JP2000308054A - Picture encoding method, picture encoding device and recording medium recording picture encoding program - Google Patents

Picture encoding method, picture encoding device and recording medium recording picture encoding program

Info

Publication number
JP2000308054A
JP2000308054A JP2000063234A JP2000063234A JP2000308054A JP 2000308054 A JP2000308054 A JP 2000308054A JP 2000063234 A JP2000063234 A JP 2000063234A JP 2000063234 A JP2000063234 A JP 2000063234A JP 2000308054 A JP2000308054 A JP 2000308054A
Authority
JP
Japan
Prior art keywords
block
encoding
mode
mode information
image
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
JP2000063234A
Other languages
Japanese (ja)
Other versions
JP3222876B2 (en
Inventor
Taisuke Matsumoto
泰輔 松本
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 JP2000063234A priority Critical patent/JP3222876B2/en
Publication of JP2000308054A publication Critical patent/JP2000308054A/en
Application granted granted Critical
Publication of JP3222876B2 publication Critical patent/JP3222876B2/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

Abstract

PROBLEM TO BE SOLVED: To improve the encoding efficiency of mode information and to reduce the code quantity of one whole frame by encoding mode information of a block being the object of encoding through the use of a code word table and encoding picture element data of the block being the object of encoding in accordance with mode information. SOLUTION: The input picture element value signal 11 of a divided block is inputted to an encoding mode judgment means 1 and a block data encoding means 3. The encoding mode judgment means 1 decides the encoding mode of the block from picture element data of the block in a position. The decided encoding mode is outputted to a mode information encoding means 2 and the block data encoding means 3. The mode information encoding means 2 selects a code word corresponding to the encoding mode added to the respective blocks by the encoding mode judgment means 1 from the code word table and outputs it as the code word on the encoding mode. Thus, encoding efficiency on the encoding mode can be improved.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はディジタル画像を符
号化する画像符号化方法及び画像符号化装置並びにそれ
をソフトウェアによって実現するためのプログラムが記
録された記録媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding method and an image encoding apparatus for encoding a digital image, and a recording medium on which a program for realizing the image encoding method 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 requiring reversibility, MMR (M
odified Modified Read) is famous. However, MM
R performs processing on the entire input frame.
One of the problems is compatibility with an encoding method that divides one frame employed 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 a further improvement of MMR, has been adopted as an evaluation model for MPEG4 (ISO / IECJTC / SC29 / WG11
N1277, July 1996).

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

【0004】[0004]

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

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

【0006】[0006]

【課題を解決するための手段】本発明は上記目的を達成
するための以下のような手段を講じた。
According to the present invention, the following means are provided to achieve the above object.

【0007】請求項1記載の発明は、複数の画素からな
る2次元のブロックに分割されたディジタル画像をブロ
ック毎に符号化する画像符号化方法であって、符号化対
象ブロックの符号化モードを決定し、そのモード情報を
出力するステップと、各モード情報に対する符号語が定
められた符号語表を、符号化対象ブロック周辺の符号化
済みブロックのモード情報および符号化対象ブロックの
周辺ブロックが画像の外になる場合には仮のモード情報
に応じて切り換え、この切り換えられた符号語表を用い
て前記符号化対象ブロックのモード情報を符号化するス
テップと、前記符号化対象ブロックの画素データを当該
符号化対象ブロックのモード情報にしたがって符号化す
るステップと、を具備することを特徴とする画像符号化
方法である。
According to a first aspect of the present invention, there is provided an image encoding method for encoding a digital image divided into a two-dimensional block including a plurality of pixels for each block, wherein the encoding mode of the encoding target block is changed. Deciding and outputting the mode information. If the value is outside the range, the mode is switched according to the temporary mode information, and the mode information of the current block is encoded using the switched codeword table. Encoding according to the mode information of the current block to be encoded.

【0008】請求項2記載の発明は、複数の画素からな
る2次元のブロックに分割されたディジタル画像をブロ
ック毎に符号化する画像符号化装置であって、符号化対
象ブロックの符号化モードを決定し、そのモード情報を
出力するモード情報決定手段と、各モード情報に対する
符号語が定められた符号語表を、符号化対象ブロック周
辺の符号化済みブロックのモード情報および符号化対象
ブロックの周辺ブロックが画像の外になる場合には仮の
モード情報に応じて切り換え、この切り換えられた符号
語表を用いて前記符号化対象ブロックのモード情報を符
号化するモード情報符号化手段と、前記符号化対象ブロ
ックの画素データを当該符号化対象ブロックのモード情
報にしたがって符号化するブロックデータ符号化手段
と、を具備することを特徴とする画像符号化装置であ
る。
According to a second aspect of the present invention, there is provided an image encoding apparatus for encoding a digital image divided into a two-dimensional block consisting of a plurality of pixels for each block. Mode information determining means for determining and outputting the mode information, and a codeword table in which codewords for the respective mode information are determined are written in the mode information of the coded blocks around the current block and around the current block. If the block is outside the image, the mode is switched according to the temporary mode information, and mode information encoding means for encoding mode information of the encoding target block using the switched codeword table; Block data encoding means for encoding the pixel data of the encoding target block according to the mode information of the encoding target block. An image coding apparatus according to claim.

【0009】請求項3記載の発明は、コンピュータに、
複数の画素からなる2次元のブロックに分割されたディ
ジタル画像をブロック毎に符号化させる画像符号化プロ
グラムを機械読取り可能に記録した記録媒体であって、
前記画像符号化プログラムは、符号化対象ブロックの符
号化モードを決定し、そのモード情報を出力する手順
と、各モード情報に対する符号語が定められた符号語表
を、符号化対象ブロック周辺の符号化済みブロックのモ
ード情報および符号化対象ブロックの周辺ブロックが画
像の外になる場合には仮のモード情報に応じて切り換
え、この切り換えられた符号語表を用いて前記符号化対
象ブロックのモード情報を符号化する手順と、前記符号
化対象ブロックの画素データを当該符号化対象ブロック
のモード情報にしたがって符号化する手順と、を具備す
ることを特徴とする記録媒体である。
According to a third aspect of the present invention, a computer
A recording medium on which an image encoding program for encoding a digital image divided into two-dimensional blocks composed of a plurality of pixels for each block in a machine-readable manner,
The image coding program determines a coding mode of a block to be coded, and outputs a mode information of the coding mode. When the mode information of the converted block and the surrounding blocks of the coding target block are outside the image, switching is performed according to the provisional mode information, and the mode information of the coding target block is determined using the switched codeword table. And a procedure of encoding pixel data of the current block in accordance with mode information of the current block.

【0010】上記各構成により、各モード情報に対する
符号語が定められた符号語表を、符号化対象ブロック周
辺の符号化済みブロックのモード情報および符号化対象
ブロックの周辺ブロックが画像の外になる場合には仮の
モード情報に応じて切り換え、この切り換えられた符号
語表を用いて前記符号化対象ブロックのモード情報を符
号化するようにしたので、モード情報の符号化効率を改
善し、1フレーム全体の符号量の削減を行うことができ
る。
According to each of the above-described configurations, the code word table in which the code words for each mode information are determined is obtained by setting the mode information of the coded blocks around the current block and the peripheral blocks of the current block outside the image. In this case, the mode information is switched in accordance with the provisional mode information, and the mode information of the block to be encoded is encoded using the switched codeword table. The code amount of the entire frame can be reduced.

【0011】[0011]

【発明の実施の形態】本発明の第1の態様は、複数の画
素からなる2次元のブロックに分割されたディジタル画
像をブロック毎に符号化する際に、各ブロックの符号化
方法を決定し、モード情報を出力する行程と、前記モー
ド情報にしたがってブロック内のデータを符号化する行
程と、前記モード情報を周辺のすでに符号化済みのブロ
ックのモード情報から予測し符号化する行程とを具備す
ることを特徴とする画像符号化方法である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In a first aspect of the present invention, when a digital image divided into two-dimensional blocks consisting of a plurality of pixels is encoded for each block, an encoding method for each block is determined. A step of outputting mode information, a step of encoding data in a block according to the mode information, and a step of predicting and encoding the mode information from mode information of neighboring already-encoded blocks. This is an image encoding method characterized in that:

【0012】上記構成により、モード情報の符号化を行
う際に、すでに符号化されている周辺ブロックのモード
情報から符号化対象ブロックの符号化モードを予測し、
予測の的中率に応じてモード情報を符号化することによ
りモード情報の符号化効率の向上が達成できる。
According to the above configuration, when coding mode information, the coding mode of the block to be coded is predicted from the mode information of the already coded neighboring blocks.
By encoding the mode information in accordance with the prediction hit rate, the encoding efficiency of the mode information can be improved.

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

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

【0015】本発明の第3の態様は、符号化信号を入力
として複数の画素からなる2次元のブロック毎に画像を
再生し、そのブロック内の画素値を並べ換えることによ
ってディジタル画像を復号化する際に、すでに復号化済
みの周辺ブロックのモード情報より復号化対象ブロック
のモード情報を予測し復号化する行程と、前記復号化さ
れたモード情報にしたがってブロック内のデータを復号
化する行程とを具備することを特徴とする画像復号化方
法である。
A third aspect of the present invention is to decode a digital image by reproducing an image for each two-dimensional block composed of a plurality of pixels by using an encoded signal as an input, and rearranging the pixel values in the block. A step of predicting and decoding the mode information of the current block to be decoded from the mode information of the peripheral blocks that have already been decoded, and a step of decoding data in the block according to the decoded mode information. An image decoding method characterized by comprising:

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

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

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

【0019】本発明の第5の態様は、複数の画素からな
る2次元のブロックに分割されたディジタル画像をブロ
ック毎に符号化する際に、各ブロックの符号化方式を決
定する符号化モード決定手段と、前記符号化モード決定
手段によって決定されたモード情報にしたがってブロッ
ク内のデータを符号化するブロックデータ符号化手段
と、前記符号化モード決定手段によって決定されたモー
ド情報を周辺のすでに符号化済みのブロックのモード情
報から予測し符号化するモード情報符号化手段を具備す
る画像符号化装置である。
According to a fifth aspect of the present invention, when a digital image divided into a two-dimensional block composed of a plurality of pixels is encoded for each block, an encoding mode determination for determining an encoding method of each block is performed. Means, block data encoding means for encoding data in a block in accordance with the mode information determined by the encoding mode determining means, and mode information determined by the encoding mode determining means in the surrounding area. This is an image coding apparatus including mode information coding means for predicting and coding from mode information of a block already completed.

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

【0021】本発明の第6の態様は、複数の画素からな
る2次元のブロックに分割されたディジタル画像をブロ
ック毎に符号化する際に、各ブロックの符号化方法を決
定する符号化モード決定手段と、前記符号化モード決定
手段によって決定されたモード情報を1フレーム内のす
べてのブロック分まとめて符号化するモード情報符号化
手段と、前記モード情報にしたがって各ブロックのデー
タを順次符号化するブロックデータ符号化手段を具備す
る画像符号化装置である。
According to a sixth aspect of the present invention, when a digital image divided into two-dimensional blocks consisting of a plurality of pixels is encoded for each block, an encoding mode determination for determining an encoding method for each block is performed. 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. This is an image encoding device including block data encoding means.

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

【0023】本発明の第7の態様は、符号化信号を入力
として複数の画素からなる2次元のブロック毎に画像を
再生し、そのブロック内の画素値を並べ換えることによ
ってディジタル画像を再生する際に、すでに復号化済み
の周辺ブロックのモード情報より復号化対象ブロックの
モード情報を予測し復号化するモード情報復号化手段
と、前記モード情報復号化手段により再生されたモード
情報にしたがってブロック内のデータを復号化するブロ
ックデータ復号化手段を具備する画像復号化装置であ
る。
According to a seventh aspect of the present invention, an image is reproduced for each two-dimensional block composed of a plurality of pixels by using an encoded signal as an input, and a digital image is reproduced by rearranging the pixel values in the block. At this time, the mode information decoding means for predicting and decoding the mode information of the decoding target block from the mode information of the neighboring blocks which have already been decoded, and the mode information in the block according to the mode information reproduced by the mode information decoding means. Is an image decoding device including block data decoding means for decoding the data of FIG.

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

【0025】本発明の第8の態様は、符号化信号を入力
として複数の画素からなる2次元のブロック毎に画像を
再生し、そのブロック内の画素値を並べ換えることによ
ってディジタル画像を再生する際に、1フレーム内のす
べてのブロックのモード情報を復号化しモード情報を出
力するモード情報復号化手段と、前記モード情報に基づ
いて各ブロックのデータを順次復号化するデータ復号化
手段を具備する画像復号化装置である。
According to an eighth aspect of the present invention, an image is reproduced for each two-dimensional block composed of a plurality of pixels by using an encoded signal as an input, and a digital image is reproduced by rearranging the pixel values in the block. In this case, there are provided mode information decoding means for decoding mode information of all blocks in one frame and outputting mode information, and data decoding means for sequentially decoding data of each block based on the mode information. An image decoding device.

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

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

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

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

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

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

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

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

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

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

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

【0037】本発明の第14の態様は、コンピュータよ
って符号化信号を入力として複数の画素からなる2次元
のブロック毎に画像を再生し、そのブロック内の画素値
を並べ換えることによってディジタル画像を復号化する
画像復号化プログラムを記録した記録媒体であって、該
画像復号化プログラムはコンピュータにすでに復号化済
みの周辺ブロックのモード情報より復号化対象ブロック
のモード情報を予測し復号化し、前記復号化されたモー
ド情報にしたがってブロック内のデータを復号化するこ
とを特徴とする画像復号化プログラムを記録した記録媒
体である。
According to a fourteenth aspect of the present invention, a digital image is reproduced by reproducing an image for each two-dimensional block composed of a plurality of pixels by using a coded signal as an input and rearranging the pixel values in the block. A recording medium storing an image decoding program to be decoded, wherein the image decoding program predicts and decodes mode information of a decoding target block from mode information of peripheral blocks which have already been decoded by a computer, and performs decoding. A recording medium storing an image decoding program characterized in that data in a block is decoded according to converted mode information.

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

【0039】本発明の第15の態様は、第5または第9
の態様の画像符号化装置と第7または第10の態様の画
像復号化装置よりなる画像符号化/復号化装置である。
The fifteenth aspect of the present invention is directed to the fifth or ninth aspect.
An image encoding / decoding device including the image encoding device according to the aspect and the image decoding device according to the seventh or tenth aspect.

【0040】上記構成により、画像符号化装置と画像復
号化装置を組み合わせることにより画像符号化/復号化
装置の構成が可能である。
With the above configuration, the configuration of the image encoding / decoding device can be achieved by combining the image encoding device and the image decoding device.

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

【0042】(実施の形態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 denotes coding mode determining means for determining a coding mode of a block, and 2 denotes mode information for generating a codeword relating to coding mode information from coding mode information of a block determined by the coding mode determining means 1. Encoding means 3 is a block data encoding means for encoding a pixel value 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, and 4 is a mode information encoding means 2 Is a multiplexing unit that multiplexes a codeword related to the encoding mode information output by the unit and a codeword related to the pixel value data output by the block data coding unit 3 to generate a coded image signal. Reference numeral 11 denotes a pixel value signal of a block of a digital input image divided by a block dividing unit (not shown), 12 denotes coding mode information of the block, 13 denotes a code word relating to coding mode information,
Reference numeral 4 denotes a code word relating to block data, and reference numeral 15 denotes an encoded image signal of a digital input image divided into blocks.

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

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

【0045】符号化モード判定手段1では、位置(i,j)
(以下POS(i,j)と記す)のブロックの画素値データよりブ
ロックの符号化モードを決定する。通常のカラー信号の
場合は、動き補償の有無や直交変換係数の有無、また形
状信号の場合は有意形状の有無等を決める。(POS(i,j)
のブロックの符号化モードを以下MODE(i,j)と記す。符
号化モード判定手段1は、決定したMODE(i,j)をモード
情報符号化手段2及びブロックデータ符号化手段3へそ
れぞれ出力する。
In the encoding mode determining 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)
Hereinafter, the coding mode of the block is described as MODE (i, j). The encoding mode determination unit 1 outputs the determined MODE (i, j) to the mode information encoding unit 2 and the block data encoding unit 3, respectively.

【0046】図3を用いて、符号化モード判定手段1に
ついて具体的に説明する。図3(b)に、説明の都合上
4×4のブロックに分割したデジタル入力画像を示す。
符号化モード判定手段1は、図3(b)に示すデジタル
入力画像の各ブロックにおいて、図3(a)に示すよう
にブロック内の画素が全て”0”の場合はA、ブロック
内の画素に”0”と”1”が存在する場合はB、ブロッ
ク内の画素が全て”1”の場合はCとそれぞれ符号化モ
ードを付与するものである。図3(b)のデジタル入力
画像に、3種類の符号化モードを付与した結果、図3
(c)となる。
With reference to FIG. 3, the encoding mode determining means 1 will be specifically described. 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. 3 (b), the encoding mode determination means 1 sets A when the pixels in the block are all “0” as shown in FIG. Is assigned to a coding mode when B includes "0" and "1", and to C when all the pixels in the block are "1". As a result of adding three types of encoding modes to the digital input image of FIG.
(C).

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

【0048】モード情報符号化手段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に示すような符
号語表テーブルを用いて適応的に符号語表を切換えるこ
とによって符号化モードに関する符号化効率の向上を達
成することが出来る。
If the coding mode of the block to be coded is MODE (i, j), the mode information coding means 2 sets the surrounding coded mode MODE (i-1, j) shown in FIG.
MODE (i, j) can be predicted from j), MODE (i-1, j-1), and MODE (i, j-1). That is, A,
MODE (i-1, j), MOD
If E (i-1, j-1) and MODE (i, j-1) are all A, MODE (i, j)
A code word with a small amount of information (for example, “0”:
1 bit) and adaptively switch the codeword table using a codeword table as shown in FIG. 4 to improve the coding efficiency in the coding mode.

【0049】具体的には、周辺ブロックの符号化モード
が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 toward A, the code word of coding mode A is 0.
(Codeword length = 1 bit), codeword of coding mode B is 1
0 (codeword length = 2 bits), and the codeword of coding mode C is set to 11 (codeword length = 2 bits). Similarly, when the coding mode of the peripheral block includes a large amount of B, and when the coding mode of the peripheral block includes a large amount of C, the code word length of the dominant coding mode is similarly reduced. . In this case, a code word set is selected from peripheral code words from among three types of code word sets.
However, as shown in FIG. 3C, the surrounding blocks are assumed to be, for example, “A” in the coding mode of the surrounding blocks.
The encoding mode of each peripheral block is encoded.

【0050】次に、モード情報符号化手段2について、
図6に詳細ブロック図を示し説明する。
Next, regarding the mode information encoding means 2,
FIG. 6 shows a detailed block diagram for explanation.

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

【0052】符号化モード読出し部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 block to be coded is input, the coding mode reading unit 102 receives the block position POS (i-1,
j-1), POS (i, j-1), POS (i-1, j)) encoding mode MODE (i-
1, (1), MODE (i-1, j-1), and MODE (i, j-1) are read from the encoding mode storage unit 101 and provided to the codeword table selecting unit 104.

【0053】符号語表選択部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 codeword table selecting unit 104 generates encoding modes MODE (i-1, j), MODE (i-1, j-1), MODE (i, j-
A code word table set in association with a combination that matches the combination of 1) is selected from the code word table table 103.
For example, if the coding mode of the peripheral block is (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), a codeword table of (A = 0, B = 10, C = 11) is selected. The above example is a case where the encoding mode A of the peripheral block is dominant. When the encoding mode B of the peripheral block is dominant, (A = 10, B = 0, C =
When the codeword table of 11) is selected and the encoding mode C of the peripheral block is dominant, (A = 10, B = 11, C =
0) is selected. The codeword table selected according to the mode state of the peripheral block is provided to encoding section 105.

【0054】このように本発明では符号モードの符号化
に用いられる符号語表が周辺ブロックの符号化モードの
状態に応じて適応的に切替えられる。
As described above, in the present invention, the code word table used for coding in the coding mode is adaptively switched according to the state of the coding mode of the peripheral block.

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

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

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

【0058】最後に、多重化手段4においては、符号化
モードに関する符号語とブロックデータに関する符号語
を多重化して符号化画像信号を出力する。図7に多重化
する際のビットストリームの一例を示すが、ブロック内
の画素が全て”0”や”1”の場合は、符号化モードの
符号語701のみとし、ブロック内の画素に”0”と”
1”が存在するときのみモード情報の符号語701とブ
ロックデータの符号語702を出力することになる。
Finally, the multiplexing means 4 multiplexes the codeword relating to the encoding mode and the codeword relating to the block data and outputs a coded image signal. FIG. 7 shows an example of a bit stream at the time of 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 assigned to the pixel in the block. "When"
Only when 1 "exists, the code word 701 of the mode information and the code word 702 of the block data are output.

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

【0060】なお、符号語表選択部104が選択した符
号語表の内容を符号化部105へ渡すのではなく、選択
した符号語表の番号だけを符号化部105へ通知して、
符号化部105が符号語表テーブル103から番号で指
示された符号語表の内容を取込むようにしても良い。
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 fetch the contents of the codeword table specified by the number from the codeword table table 103.

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

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

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

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

【0065】モード情報復号化手段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 12 of the corresponding block from the code word table.

【0066】モード情報復号化手段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によって符号化された符号化モードに関する符
号語から復号化対象ブロックの符号化モードを正しく再
生することができる。
Assuming that the object to be decoded by the mode information decoding means 22 is a block of POS (i, j), 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) By switching the codeword table table based on FIG. 4 from the state of the encoding mode of MODE (i, j-1), decoding is performed from the codeword related to the encoding mode encoded according to the first embodiment. The coding mode of the target block can be correctly reproduced.

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

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

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

【0070】符号語表選択部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 encoding mode of the peripheral block 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.

【0071】復号化部110は、符号語表選択部114
から渡された符号語表を用いて復号化対象ブロックの符
号化モードに関する符号語を復号化する。
Decoding section 110 has code word table selecting section 114
Is decoded using the codeword table passed from.

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

【0073】ブロックデータ復号化手段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 shown in the coding mode 12 to thereby obtain the digital pixel value signal 31 in the block.
Play and output.

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

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

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

【0077】なお、実施の形態1の画像符号化装置と実
施の形態2の画像復号化装置とを組み合わせることで、
符号化/復号化装置の実現が可能である。 (実施の形態3)図10は本発明の実施の形態3におけ
る画像符号化装置のブロック図である。同図において、
図1に示す実施の形態1と同一の手段および信号につい
ては同じ番号を付し説明を省略する。
By combining the image encoding device of the first embodiment with the image decoding device of 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. 1 are denoted by the same reference numerals and description thereof will be omitted.

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

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

【0080】まず、ディジタル入力画像信号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, as in the first embodiment, the digital input image signal 11
The coding mode MODE (i, j) of the block of S (i, j) is determined. The determined MODE (i, j) is held by the memory 41 and all the encoding modes MODE (1,1), MODE for one frame are stored.
(1,2),... MODE (2,1),... MODE (X, Y) are input to the mode information encoding means 42.

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

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

【0083】[0083]

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

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

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

【0086】一方、画素ブロックの画素データは、第1
実施例と同様にブロックデータ符号化部3によって符号
化され、ブロックデータに関する符号語がメモリ43に
よって保持され1フレーム分すべてのブロックデータに
関する符号語53にまとめられる。
On the other hand, the pixel data of the pixel block
In the same manner as in the embodiment, the block data is encoded by the block data encoding unit 3, and the code words relating to the block data are held in the memory 43 and are collected into the code words 53 relating to all the block data for one frame.

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

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

【0089】(実施の形態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 denoted by the same reference numerals, and description thereof is omitted.

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

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

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

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

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

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

【0096】上記に説明した実施の形態では、モード情
報復号化手段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 coding mode of the block data decoding means 23 is Therefore, the coding mode MODE (i,
By obtaining j), the encoded image signal encoded by the image encoding device described in Embodiment 3 can be correctly reproduced.

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

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

【0099】(実施の形態5)本発明は実施の形態1、
2、3、4に示した構成をプログラムによってソフト的
に実現し、これをフロッピー(登録商標)ディスク等の
記録媒体に記録して移送することにより、独立した他の
コンピュータシステムで容易に実施することができる。
(Embodiment 5) The present invention relates to Embodiment 1,
The configurations shown in 2, 3, and 4 are realized by software using a program, and are recorded on a recording medium such as a floppy (registered trademark) disk and transferred, so that they can be easily implemented by another independent computer system. be able to.

【0100】図14にコンピュータシステムのブロック
構成図を示し、以下に説明する。120はTV信号、V
TR、DVD等からの動画像を再生し入力する動画像入
力装置、121はメモリ、122はプログラムによって
画像符号化処理または画像復号化処理を行うCPU(中
央演算装置)、123はCPU122に指示を与えるキ
ーボードやディスプレイおよびFD(フロッピィディス
ク)、ICカード、CD−ROM等のプログラムを記憶
した記憶媒体を読みとる装置からなる入出力装置、12
4は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 a moving image from a TR, a DVD or the like, 121 is a memory, 122 is a CPU (Central Processing Unit) that performs image encoding or image decoding by a program, and 123 is an instruction to the CPU 122. An input / output device including a keyboard, a display, and a device for reading a storage medium storing a program such as an FD (floppy disk), an IC card, and a CD-ROM;
Reference numeral 4 denotes a display for displaying the result processed by the CPU 122, and reference numeral 125 denotes an external storage device for storing the result processed by the CPU 122.

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

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

【0103】ステップ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 in accordance with an instruction from the input / output device 123.
The data is recorded in the memory 121 through the memory 22. The image signal is
One frame unit or a plurality of frame units may be used.

【0104】ステップ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,
Extract the pixel value of (i, j).

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

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

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

【0108】S220は、動画像記憶装置120から符
号化画像信号をCPU122を介してメモり121に入
力する。
In S 220, the coded image signal is input from the moving image storage device 120 to the memory 121 via the CPU 122.

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

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

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

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

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

【0114】[0114]

【発明の効果】以上のように、本発明の効果としては、
ディジタル画像をブロック分割し、ブロック毎にブロッ
クの符号化モードとブロックデータに分けて符号化する
画像符号化装置において、符号化モードに関する符号語
の符号化効率の向上が図られ、より少ないビット数で符
号化できるという顕著な効果が得られる。
As described above, the effects of the present invention include:
In an image encoding apparatus that divides a digital image into blocks and divides and encodes each block into a block coding mode and block data, the coding efficiency of the coding mode is improved, and the number of bits is reduced. Is obtained.

【図面の簡単な説明】[Brief description of the 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 view for explaining an encoding mode determining unit according to the first embodiment;

【図4】同実施の形態1における画像符号化装置の符号
語表テーブルを示す図
FIG. 4 is a diagram showing a codeword table of the image encoding 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 a mode information encoding unit of the image encoding device according to the first embodiment.

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

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

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

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

【図11】同実施の形態3における符号化モードの符号
化で隣接ブロックを組みとする一例
FIG. 11 is an example of combining adjacent blocks 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における記録媒体の例
としてフロッピーディスクの平面図
FIG. 13 is a plan view of a floppy disk as an example of a recording medium according to Embodiment 5 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 an image encoding device using a computer according to the fifth embodiment.

【図16】同実施の形態5におけるコンピュータによる
画像復号化装置の動作フロー図
FIG. 16 is an operation flowchart of an image decoding apparatus using a computer according to 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 ブロックデータの符号語 DESCRIPTION OF SYMBOLS 1 Encoding mode determination means 2, 42 Mode information encoding 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 coding mode storage unit 102 coding mode reading unit 103 code word table table 104 code word table selection unit 105 coding unit 110 decoding unit 111 coding mode storage unit 112 coding mode reading unit 113 code word table Table 114 Codeword table selection unit 120 Video input device 121 Memory 122 CPU 123 Input / output device 124 Display 125 External storage device 701 Codeword of encoding mode 702 Codeword of block data

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の画素からなる2次元のブロックに
分割されたディジタル画像をブロック毎に符号化する画
像符号化方法であって、 符号化対象ブロックの符号化モードを決定し、そのモー
ド情報を出力するステップと、 各モード情報に対する符号語が定められた符号語表を、
符号化対象ブロック周辺の符号化済みブロックのモード
情報および符号化対象ブロックの周辺ブロックが画像の
外になる場合には仮のモード情報に応じて切り換え、こ
の切り換えられた符号語表を用いて前記符号化対象ブロ
ックのモード情報を符号化するステップと、 前記符号化対象ブロック内の画素データを当該符号化対
象ブロックのモード情報にしたがって符号化するステッ
プと、を具備することを特徴とする画像符号化方法。
1. An image encoding method for encoding a digital image divided into two-dimensional blocks consisting of a plurality of pixels for each block, comprising: determining an encoding mode of an encoding target block; And a code word table in which code words for each mode information are determined.
When the mode information of the coded block around the block to be coded and the surrounding block of the block to be coded are outside the image, switching is performed according to the temporary mode information, and the switched codeword table is used by using the switched codeword table. Encoding the mode information of the encoding target block; and encoding the pixel data in the encoding target block according to the mode information of the encoding target block. Method.
【請求項2】 複数の画素からなる2次元のブロックに
分割されたディジタル画像をブロック毎に符号化する画
像符号化装置であって、 符号化対象ブロックの符号化モードを決定し、そのモー
ド情報を出力するモード情報決定手段と、 各モード情報に対する符号語が定められた符号語表を、
符号化対象ブロック周辺の符号化済みブロックのモード
情報および符号化対象ブロックの周辺ブロックが画像の
外になる場合には仮のモード情報に応じて切り換え、こ
の切り換えられた符号語表を用いて前記符号化対象ブロ
ックのモード情報を符号化するモード情報符号化手段
と、 前記符号化対象ブロック内の画素データを当該符号化対
象ブロックのモード情報にしたがって符号化するブロッ
クデータ符号化手段と、を具備することを特徴とする画
像符号化装置。
2. An image coding apparatus for coding a digital image divided into a two-dimensional block consisting of a plurality of pixels for each block, comprising: determining a coding mode of a block to be coded; And a code word table in which code words for each mode information are determined.
When the mode information of the coded block around the block to be coded and the surrounding block of the block to be coded are outside the image, switching is performed according to the temporary mode information, and the switched codeword table is used by using the switched codeword table. A mode information encoding unit that encodes mode information of the encoding target block; and a block data encoding unit that encodes pixel data in the encoding target block according to the mode information of the encoding target block. An image encoding device characterized by:
【請求項3】 コンピュータに、複数の画素からなる2
次元のブロックに分割されたディジタル画像をブロック
毎に符号化させる画像符号化プログラムを機械読取り可
能に記録した記録媒体であって、 前記画像符号化プログラムは、 符号化対象ブロックの符号化モードを決定し、そのモー
ド情報を出力する手順と、 各モード情報に対する符号語が定められた符号語表を、
符号化対象ブロック周辺の符号化済みブロックのモード
情報および符号化対象ブロックの周辺ブロックが画像の
外になる場合には仮のモード情報に応じて切り換え、こ
の切り換えられた符号語表を用いて前記符号化対象ブロ
ックのモード情報を符号化する手順と、 前記符号化対象ブロック内の画素データを当該符号化対
象ブロックのモード情報にしたがって符号化する手順
と、を具備することを特徴とする記録媒体。
3. A computer comprising a plurality of pixels 2
An image encoding program for encoding a digital image divided into two-dimensional blocks for each block in a machine-readable manner, wherein the image encoding program determines an encoding mode of an encoding target block. And a procedure for outputting the mode information, and a codeword table in which codewords for each mode information are defined,
When the mode information of the coded block around the block to be coded and the block around the block to be coded are outside the image, the mode is switched according to the temporary mode information, and the switched codeword table is used by using the switched codeword table. A recording medium comprising: a procedure of encoding mode information of a current block; and a procedure of encoding pixel data in the current block according to the mode information of the current block. .
JP2000063234A 1996-11-07 2000-03-08 Image encoding method, image encoding device, and recording medium recording image encoding program Expired - Lifetime JP3222876B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000063234A JP3222876B2 (en) 1996-11-07 2000-03-08 Image encoding method, image encoding device, and recording medium recording image encoding program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8-294737 1996-11-07
JP29473796 1996-11-07
JP2000063234A JP3222876B2 (en) 1996-11-07 2000-03-08 Image encoding method, image encoding device, and recording medium recording image encoding program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP30243697A Division JP3208101B2 (en) 1996-11-07 1997-11-05 Image encoding method, image encoding device, and recording medium recording image encoding program

Publications (2)

Publication Number Publication Date
JP2000308054A true JP2000308054A (en) 2000-11-02
JP3222876B2 JP3222876B2 (en) 2001-10-29

Family

ID=26559964

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000063234A Expired - Lifetime JP3222876B2 (en) 1996-11-07 2000-03-08 Image encoding method, image encoding device, and recording medium recording image encoding program

Country Status (1)

Country Link
JP (1) JP3222876B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003043347A1 (en) * 2001-11-16 2003-05-22 Ntt Docomo, Inc. Image encoding method, image decoding method, image encoder, image decode, program, computer data signal, and image transmission system
WO2003043346A1 (en) * 2001-11-16 2003-05-22 Ntt Docomo, Inc. Image encoding method, image decoding method, image encoder, image decode, program, computer data signal, and image transmission system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003043347A1 (en) * 2001-11-16 2003-05-22 Ntt Docomo, Inc. Image encoding method, image decoding method, image encoder, image decode, program, computer data signal, and image transmission system
WO2003043346A1 (en) * 2001-11-16 2003-05-22 Ntt Docomo, Inc. Image encoding method, image decoding method, image encoder, image decode, program, computer data signal, and image transmission system
US7251371B2 (en) 2001-11-16 2007-07-31 Ntt Docomo, Inc. Image encoding method, image decoding method, image encoder, image decoder, program, computer data signal, and image transmission system
US7336711B2 (en) 2001-11-16 2008-02-26 Ntt Docomo, Inc. Image encoding method, image decoding method, image encoder, image decode, program, computer data signal, and image transmission system
CN100499810C (en) * 2001-11-16 2009-06-10 株式会社Ntt都科摩 Image encoding method, image decoding method, image encoder, image decode, and image transmission system

Also Published As

Publication number Publication date
JP3222876B2 (en) 2001-10-29

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
KR101041823B1 (en) Method and apparatus for encoding/decoding video signal using reference pictures
KR100883602B1 (en) Method and apparatus for encoding/decoding video signal using reference pictures
JP2002232887A (en) Image encoding method and image encoder, and image decoding method and image decoder
JP3527454B2 (en) Image decoding method, image decoding device, and recording medium storing image decoding program
JP3222876B2 (en) Image encoding method, image encoding device, and recording medium recording image encoding program
JP3222875B2 (en) Image encoding method, image encoding device, and recording medium recording image encoding program
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
JP2000020731A (en) Method and device for encoding/decoding linear moving image and recording medium recording linear moving image encoding/decoding program
JPH09214888A (en) Video signal recording device and video signal reproducing device

Legal Events

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

Free format text: PAYMENT UNTIL: 20070817

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080817

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20080817

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090817

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090817

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100817

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110817

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110817

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120817

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130817

Year of fee payment: 12

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