JPH0722342B2 - Color image coding method - Google Patents

Color image coding method

Info

Publication number
JPH0722342B2
JPH0722342B2 JP57141476A JP14147682A JPH0722342B2 JP H0722342 B2 JPH0722342 B2 JP H0722342B2 JP 57141476 A JP57141476 A JP 57141476A JP 14147682 A JP14147682 A JP 14147682A JP H0722342 B2 JPH0722342 B2 JP H0722342B2
Authority
JP
Japan
Prior art keywords
code
color
image
character
encoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP57141476A
Other languages
Japanese (ja)
Other versions
JPS5930367A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP57141476A priority Critical patent/JPH0722342B2/en
Publication of JPS5930367A publication Critical patent/JPS5930367A/en
Publication of JPH0722342B2 publication Critical patent/JPH0722342B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction

Description

【発明の詳細な説明】 この発明は、色彩画像を効率よく伝送するための符号化
方法(以下符号化方式と称す)に関するものである。
Description: TECHNICAL FIELD The present invention relates to an encoding method (hereinafter referred to as an encoding method) for efficiently transmitting a color image.

ここで対象とする色彩画像とは、文字や図形等を2種以
上の色により着色した様な画像である。またここで表記
する伝送には異なる場所間の伝送つまり通信、及び異な
る時刻への伝送、つまり記憶を含むものとする。また復
号化回路とは、伝送されてきた符号を復号化すると共
に、表示装置又は記録装置においてそれぞれ表示又は記
録可能なデータに変換する機能をも含むものとする。以
下の説明中のランとは、走査線方向に連続して同一の色
をもつ画素の集合であり、ランレングス(ラン長とも表
記する)とは、ランに含まれる画素の数である。またカ
ラーランレングスの符号化方式とは、ラン長をモディフ
ァイド・ハフマン符号(MH符号)等により符号化したラ
ン長符号に必要に応じてランの色を示す符号を付加する
符号化方式である。更に文字符号化方式とは、各文字に
一意的に対応する文字符号を割り当て、また文字に色彩
のある場合には文字符号に必要に応じて色を示す符号を
付加する符号化方式である。
Here, the target color image is an image in which characters and figures are colored with two or more kinds of colors. Further, the transmission described here includes transmission between different places, that is, communication, and transmission at different times, that is, storage. In addition, the decoding circuit includes a function of decoding the transmitted code and converting it into data that can be displayed or recorded in the display device or the recording device, respectively. A run in the following description is a set of pixels having the same color continuously in the scanning line direction, and a run length (also referred to as a run length) is the number of pixels included in the run. The color run length coding method is a coding method in which a code indicating a run color is added as necessary to a run length code obtained by coding a run length using a modified Huffman code (MH code) or the like. Further, the character encoding method is an encoding method in which a character code uniquely corresponding to each character is assigned, and when a character has a color, a code indicating a color is added to the character code as needed.

第1図は、色彩画像を符号化する際、画像のすべての構
成要素を単一の符号化方式(例えばカラーランレングス
符号化方式)により符号化する従来の色彩画像の符号化
方式の構成の例を示すブロック図で、図において、(1
1)はカラーランレングス符号化回路、(12)はカラー
ランレングス符号化復号化回路、(13)は色彩画像デー
タを記憶するメモリである。符号化回路(11)は入力さ
れた画像データをカラーランレングス符号に変換する。
復号化回路(12)は入力されたカラーランレングス符号
を復号化して符号化回路(11)に入力された画像データ
と同じ画像データに逆変換し、メモリ(13)に出力す
る。メモリ(13)は復元された画像データを記憶し、表
示装置において表示できる様な形式(一般に画素単位)
で読出して出力する。
FIG. 1 shows a configuration of a conventional color image encoding system in which all the constituent elements of an image are encoded by a single encoding system (for example, color run length encoding system) when encoding a color image. In the block diagram showing an example, (1
1) is a color run length encoding circuit, (12) is a color run length encoding / decoding circuit, and (13) is a memory for storing color image data. An encoding circuit (11) converts the input image data into a color run length code.
A decoding circuit (12) decodes the input color run length code, inversely converts it into the same image data as the image data input to the encoding circuit (11), and outputs it to the memory (13). The memory (13) stores the restored image data and can be displayed on a display device (generally pixel unit).
To read and output.

また第2図は複数の符号化方式を用いる色彩画像符号化
方式における従来の構成例を示すブロック図で、図にお
いて、(21)は色彩画像符号化回路であり、該回路(2
1)において(22)は文字を文字符号に変換する文字符
号化回路、(23)は図形等をカラーランレングス符号に
変換するカラーランレングス符号化回路である。また
(24)は色彩画像復号化回路であり、該回路(24)にお
いて、(25)は符号が文字符号であるかラン長符号であ
るかを識別する符号識別回路、(26)は文字符号を復号
化する文字符号復号化回路、(27)はラン長符号を復号
化するカラーランレングス符号復号化回路、(28),
(29)は復号された画像データを蓄積するメモリ、(3
0)はメモリ(28),(29)に蓄積されている画像デー
タを合成する画像合成回路である。
Further, FIG. 2 is a block diagram showing a conventional configuration example in a color image encoding system using a plurality of encoding systems. In the figure, (21) is a color image encoding circuit, and the circuit (2
In (1), (22) is a character encoding circuit for converting characters into character codes, and (23) is a color run length encoding circuit for converting figures and the like into color run length codes. Further, (24) is a color image decoding circuit, in the circuit (24), (25) is a code identification circuit for identifying whether the code is a character code or a run length code, and (26) is a character code. (27) is a color run length code decoding circuit for decoding a run length code, (28),
(29) is a memory that stores the decoded image data, (3
Reference numeral 0) is an image synthesizing circuit for synthesizing the image data stored in the memories (28) and (29).

色彩画像符号化回路(21)には文字と図形のデータが独
立に入力され、文字データは文字符号化回路(22)によ
り文字符号に変換され、また図形データはカラーランレ
ングス符号化回路(23)によりカラーランレングス符号
に変換される。色彩画像復号化回路(24)では、文字符
号及びカラーランレングス符号の混在した入力符号は、
符号識別回路(25)において文字符号及びカラーランレ
ングス符号に分けられ、それぞれ文字符号復号化回路
(26)及びカラーランレングス符号復号化回路(27)に
出力される。文字符号及びカラーランレングス符号はそ
れぞれ文字符号復号化回路(26)及びカラーランレング
ス符号復号化回路(27)において復号され、メモリ(2
8)及びメモリ(29)に出力される。メモリ(28)及び
メモリ(29)は第1図で説明したメモリ(13)と同様に
画像データを記憶し、表示装置において表示可能な形式
で画像データを出力する。メモリ(28)及びメモリ(2
9)はそれぞれ表示する際の優先順位が定められてお
り、この優先順位に従って両メモリ(28),(29)の出
力の画像データは画像合成回路(30)において、例え
ば、メモリ(28)の文字部分のデータがメモリ(29)の
図形データと重なる時は文字部分を優先して表示する様
に1画像の画像データとして合成され出力される。更に
メモリ(28)及びメモリ(29)と文字符号復号化回路
(26)及びカラーランレングス符号復号化回路(27)の
接続は切換え可能なものもある。上記第2図の色彩画像
符号化方式の装置構成は、画像データを文字符号化方式
及びカラーランレングス符号化方式の2符号化方式を用
いて符号化する例であるが、他に画像を幾何学的図形で
表現するグラフィクコマンド符号化方式またはディザ等
のテクスチャーを指定するテクスチャー符号化方式等を
用いることもあり、更に2符号化方式を用いるのみだけ
ではなく、3符号化方式以上を用いる場合もある。ここ
でグラフィックコマンド符号化方式を簡単に説明する
と、図形を幾何学的図形要素に分割し、各々の幾何学的
図形要素の種類と大きさや位置を表わす符号に変換する
ことにより符号化する符号化方式である。例えば直線は
始点及び終点により記述し、また曲線は、始点、終点及
び中間の点の3点により定まる円弧の接続されたものと
して記述する。
Character and graphic data are independently input to the color image encoding circuit (21), the character data is converted into a character code by the character encoding circuit (22), and the graphic data is converted to a color run length encoding circuit (23). ) Is converted into a color run length code. In the color image decoding circuit (24), the input code in which the character code and the color run length code are mixed is
It is divided into a character code and a color run length code in a code identification circuit (25) and output to a character code decoding circuit (26) and a color run length code decoding circuit (27), respectively. The character code and the color run-length code are decoded in the character code decoding circuit (26) and the color run-length code decoding circuit (27), respectively, and stored in the memory (2
8) and the memory (29). The memory (28) and the memory (29) store image data similarly to the memory (13) described with reference to FIG. 1, and output the image data in a format that can be displayed on the display device. Memory (28) and memory (2
9), the priority order for displaying each is set, and the image data output from both memories (28) and (29) is displayed in the image synthesizing circuit (30) according to this priority order, for example, in the memory (28). When the data of the character portion overlaps the graphic data of the memory (29), the character portion is combined and output as image data of one image so that the character portion is preferentially displayed. Further, the connection between the memory (28) and the memory (29) and the character code decoding circuit (26) and the color run length code decoding circuit (27) may be switched. The apparatus configuration of the color image coding system shown in FIG. 2 is an example in which image data is coded by using two coding systems of a character coding system and a color run length coding system. In some cases, a graphics command encoding method that expresses a geometric figure or a texture encoding method that specifies a texture such as dither may be used. Further, not only two encoding methods but also three or more encoding methods are used. There is also. The graphic command encoding system will be briefly described below. Encoding is performed by dividing a figure into geometric figure elements and converting the figure into a code indicating the type, size and position of each geometric figure element. It is a method. For example, a straight line is described by a start point and an end point, and a curve is described by connecting arcs defined by three points of a start point, an end point, and an intermediate point.

従来の色彩画像符号化方法には以下に述べる様な欠点が
ある。即ち、第1図で説明した単一の符号化方式を用い
て画像を符号化する方式では、例えばカラーランレング
ス符号化方式を用いて文字の多い画像を符号化する場合
の様に、画像の種類によっては伝送の効率が低くなるこ
とがあり、また文字符号化方式のみを用いた場合には一
般の図形を符号化することができない、という様に用い
る符号化方式によっては伝送することのできない画像が
生じる。また第2図で説明した複数の符号化方式を用い
る方式では、復号化回路に複数のメモリが必要となり、
装置価格が問題になる。また第1図及び第2図に用いる
図形の符号化方式において、既に伝送されている画像の
一部を変更する場合等には、例えばランレングス符号化
方式により走査線単位で符号化する方式では変更すべき
画像構成要素を含む走査線の情報は、変更しない画像構
成要素も含めてすべてを符号化しなければならない。更
にグラフィックコマンド符号化方式の様に幾何学的図形
要素に分割して符号化する符号化方式等において、複雑
な図形が簡単な図形要素の重畳等により構成されている
場合でも従来の方式では複雑な図形の各部を逐次符号化
しなければならない。
The conventional color image coding method has the following drawbacks. That is, in the method of encoding an image using the single encoding method described in FIG. 1, as in the case of encoding an image with many characters using the color run length encoding method, Depending on the type, the transmission efficiency may be low, and if only the character encoding method is used, general graphics cannot be encoded. It cannot be transmitted depending on the encoding method used. An image is produced. Further, in the method using the plurality of encoding methods described in FIG. 2, a plurality of memories are required in the decoding circuit,
Equipment price becomes a problem. Further, in the case of changing a part of the image already transmitted in the figure encoding method used in FIGS. 1 and 2, for example, in the method of encoding in scan line units by the run length encoding method. All scanline information, including image components to be modified, must be encoded, including image components that are not modified. Further, in a coding method such as a graphic command coding method that divides into geometric figure elements and performs coding, even when a complicated figure is configured by superimposing simple figure elements, etc., the conventional method is complicated. Each part of such a figure must be encoded sequentially.

この発明は、上記の様な従来の符号化方式の欠点を除去
し色彩画像を効率良く符号化し、復号化回路のメモリ容
量を削減し、復号化回路での色彩画像の合成の効率良く
行うことのできる色彩画像符号化方法を得ることを目的
とするものである。
The present invention eliminates the above-mentioned drawbacks of the conventional encoding method, efficiently encodes a color image, reduces the memory capacity of the decoding circuit, and efficiently performs the synthesis of the color image in the decoding circuit. It is an object of the present invention to obtain a color image coding method capable of performing.

上記目的を達成するため、本発明の符号化方式では符号
化を行う際画像構成要素の情報に復号化回路において表
示される際に、画像構成要素毎に変更可能性を有する優
先順位を示す情報を付加する。また画像構成要素の符号
に、復号化回路のメモリに蓄積されている画像データの
色に影響を与えない様な優先順位の常に最も低い色(以
下、無効色と表記する)の符号を含める。優先順位は、
複数の画像構成要素が重なり合う画像の各部分について
最終的に表示されるべき画像構成要素が最も高い優先順
位になる様に決定される。例えば、画像が文字とその背
景の図形から成る場合には、文字に図形よりも高い優先
順位を与えておけば、伝送の順序によらず文字が図形に
より隠されることなく表示される。また簡易アニメーシ
ョンの様に、画像が時を追って変化する様な画像では、
変化する部分の画像構成要素を高い優先順位とすればよ
い。
In order to achieve the above object, in the encoding method of the present invention, when the information is displayed in the decoding circuit in the information of the image constituent element at the time of encoding, the information indicating the priority order having the possibility of being changed for each image constituent element. Is added. Further, the code of the image constituent element includes the code of the lowest priority color (hereinafter referred to as an invalid color) which does not affect the color of the image data stored in the memory of the decoding circuit. The priority is
For each portion of the image where multiple image components overlap, the image component to be finally displayed is determined to have the highest priority. For example, when an image is composed of a character and a graphic in the background, if the character is given a higher priority than the graphic, the character is displayed without being obscured by the graphic regardless of the order of transmission. For images that change over time, such as simple animations,
The image components of the changing portion may be given high priority.

以下、本発明の一実施例を図について説明する。第3図
は色彩画像を文字と図形の2つの構成要素の種別に分
け、それぞれの符号化方式に文字符号化方式及びカラー
ランレングス符号化方式を用い、また復号化回路での表
示における画像データの優先順位を2段階にし、更に無
効色を用いる場合の一実施例の構成を示すブロック図で
あり、図において、(21)は色彩画像符号化回路であ
り、該回路(21)において、(22)は文字符号化回路、
(23)はカラーランレングス符号化回路である。また
(24)は色彩画像復号化回路であり、該回路(24)にお
いて、(25)は文字符号及びカラーランレングス符号を
識別する符号識別回路、(26)は文字符号復号化回路、
(27)はカラーランレングス符号複合化回路、(31)は
優先順位を判断して画像データを合成する優先順位判定
回路、(32)は画像データを優先順位に含み蓄積するメ
モリである。第3図において、色彩画像符号化回路(2
1)に入力される文字及び図形の画像データは、それぞ
れ文字符号化回路(22)及びカラーランレングス符号化
回路(23)に優先順位のデータと共に入力される。また
文字符号化回路(22)及びカラーランレングス符号化回
路(23)に入力された画像データ及び優先順位のデータ
は、優先順位の情報の付加された符号に変換される。色
彩画像復合化回路(24)に入力される文字符号及びカラ
ーランレングス符号混在の符号は符号識別回路(25)に
おいて文字符号及びカラーランレングス符号に分けら
れ、それぞれ文字符号復号化回路(26)及びカラーラン
レングス符号復号化回路(27)に出力される。文字符号
復号化回路(26)及びカラーランレングス符号復号化回
路(27)ではそれぞれに入力された符号を優先順位の情
報を含む画像データに変換する。優先順位判定回路(3
1)は、復合化回路(26),(27)から入力される画像
データとメモリ(32)内の対応するアドレスに蓄積され
ている画像データの優先順位を比較し、より優先順位の
高い画像データを選択してメモリ(32)に記憶する。た
だし、復号化回路(26),(27)の出力とメモリ(32)
内の画像データの優先順位が等しい場合には、復号化回
路(26),(27)の出力の画像データをメモリ(32)に
記憶する。ここで、メモリ(32)に蓄積される画像デー
タは、優先順位判定回路(31)での比較の容易さ及び表
示装置の表示の容易さのため画素単位に色や階調などの
データ値に優先順位を付加した形式とする。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 3 shows that a color image is divided into two types of components, that is, a character and a graphic, the character encoding method and the color run length encoding method are used for the respective encoding methods, and the image data in the display in the decoding circuit is used. 2 is a block diagram showing the configuration of an embodiment in which the priority order is set to two levels and further invalid colors are used. In the figure, (21) is a color image encoding circuit, and in the circuit (21), 22) is a character encoding circuit,
(23) is a color run length encoding circuit. Further, (24) is a color image decoding circuit, in the circuit (24), (25) is a code identification circuit for identifying a character code and a color run length code, (26) is a character code decoding circuit,
(27) is a color run length code composite circuit, (31) is a priority determination circuit for determining priority and combining image data, and (32) is a memory for storing image data in the priority order. In FIG. 3, a color image encoding circuit (2
The character and graphic image data input to 1) are input to the character encoding circuit (22) and the color run length encoding circuit (23) together with priority data. The image data and the priority data input to the character encoding circuit (22) and the color run length encoding circuit (23) are converted into codes to which priority information is added. A character code and a code of mixed color run length codes input to the color image decoding circuit (24) are divided into a character code and a color run length code in the code identification circuit (25), and each of them is a character code decoding circuit (26). And a color run length decoding circuit (27). The character code decoding circuit (26) and the color run length code decoding circuit (27) convert the codes respectively inputted into image data including priority information. Priority decision circuit (3
1) compares the priority of the image data input from the decoding circuits (26) and (27) with the image data stored in the corresponding address in the memory (32), and the image with the higher priority is compared. Select data and store in memory (32). However, the outputs of the decoding circuits (26) and (27) and the memory (32)
When the priority order of the image data is the same, the image data output from the decoding circuits (26) and (27) are stored in the memory (32). Here, the image data stored in the memory (32) is converted into data values such as colors and gradations in pixel units for ease of comparison in the priority determination circuit (31) and ease of display on the display device. The format with priority added.

次に第3図の色彩画像符号化回路(21)及び復号化回路
(24)において用いる符号の例を説明する。第4図
(a)は文字符号の例を示す図であり、第4図(b)は
カラーランレングス符号の例を示す図である。第4図
(a)及び(b)の文字識別符号CD及びラン識別符号RD
はそれぞれ次に文字及びラン長の符号列が続くことを示
す符号であり、文字識別符号CDはラン長符号列の色符号
CRと識別が可能であり、ラン識別符号RDは文字の符号列
の色符号CSと識別可能である。また文字符号はJIS漢字
コード等、またラン長符号はモディファイド・ハフマン
符号(MH符号)等を用いる。色符号は次に次く文字符号
CC及びラン長符号RCの色及び優先順位を示す符号であ
る。色符号のビット構成の例を第5図(a)に示してい
る。第5図(a)の小矩形内のP,R,G,Bはそれぞれ優先
順位、赤、緑、青を示し、従って優先順位は2段階で、
色は8色である。また第5図(a)の符号の中で、第5
図(b)に示すビット構成をもつものを優先順位の常に
最も低い色、つまり無効色の符号としている。ここで第
6図及び第7図に示す画像の例を用い、この発明による
符号化の効果を説明する。第6図及び第7図の画像の構
成要素の引き出し線により示されている数字は、第5図
に示した色の符号である。第6図(a)は文字画像であ
り、第6図(b)は図形の画像であり、それぞれ文字符
号及びカラーランレングス符号を用いて符号化される。
第6図(c)は第6図(a)及び(b)の画像が第3図
の色彩画像復号化回路(24)において復号化され合成さ
れた画像である。第6図(b)及び(c)の走査線mは
同一位置の走査線であり、文字と重なる走査線mは文字
の優先順位がより高いため、文字のないところの画素の
色のみを指定することにより、比較的長いランとなる。
これにより、文字により区切られた多くの短いランを符
号化する場合に比べて、カラーランレングス符号化の効
率が大きく改善される。また第7図は、特に無効色の効
果を示す図であり、第7図(a)は既に第3図のメモリ
(32)に蓄積されている画像であり、第7図(a)の画
像に第7図(b)の画像を重ね合せを行い第7図(c)
の画像を得る場合である。第7図(b)及び第7図
(c)の走査線nは同一位置の走査線であり、第7図
(b)の走査線n上の三角形以外のランは無効色のラン
としているため、第7図(a)の画像と第7図(b)の
画像との重ね合せを行う場合、第7図(b)の三角形以
外の第7図(a)の構成要素の色には何ら影響がない。
この様に無効色を用いると複数の画像の重ね合せを容易
に効率よく行うことのできる効果がある。
Next, an example of codes used in the color image encoding circuit (21) and the decoding circuit (24) in FIG. 3 will be described. FIG. 4 (a) is a diagram showing an example of a character code, and FIG. 4 (b) is a diagram showing an example of a color run length code. Character identification code CD and run identification code RD of FIGS. 4 (a) and (b)
Is a code that indicates that a character string and a run length code string follow, respectively.The character identification code CD is the color code of the run length code string.
It can be distinguished from CR, and the run identification code RD can be identified from the color code CS of the character code string. In addition, JIS kanji code etc. are used for the character code, and modified Huffman code (MH code) etc. are used for the run length code. Color code is next character code
It is a code indicating the color and priority of CC and run length code RC. An example of the bit configuration of the color code is shown in FIG. P, R, G, and B in the small rectangle in FIG. 5 (a) indicate priority, red, green, and blue, respectively, so the priority is two levels,
There are 8 colors. In addition, in the reference numeral of FIG.
The code having the bit configuration shown in FIG. 10B is always the lowest priority color, that is, the invalid color code. Here, the effect of the encoding according to the present invention will be described using the examples of images shown in FIGS. 6 and 7. The numbers shown by the leader lines of the components of the images in FIGS. 6 and 7 are the reference numerals of the colors shown in FIG. FIG. 6 (a) is a character image, and FIG. 6 (b) is a graphic image, which are encoded using a character code and a color run length code, respectively.
FIG. 6 (c) is an image in which the images of FIGS. 6 (a) and 6 (b) are decoded and combined in the color image decoding circuit (24) of FIG. The scanning lines m in FIGS. 6B and 6C are scanning lines at the same position, and the scanning line m overlapping the character has a higher priority of the character. Therefore, only the color of the pixel where there is no character is designated. This will result in a relatively long run.
This greatly improves the efficiency of color run length encoding compared to encoding many short runs separated by letters. Further, FIG. 7 is a diagram showing the effect of the invalid color in particular, and FIG. 7 (a) is an image already stored in the memory (32) of FIG. 3, and the image of FIG. 7 (a). The image of FIG. 7 (b) is superimposed on FIG. 7 (c).
This is the case when the image of is obtained. The scan lines n in FIGS. 7B and 7C are scan lines at the same position, and runs other than the triangles on the scan line n in FIG. 7B are invalid color runs. , When the image of FIG. 7 (a) and the image of FIG. 7 (b) are superposed, there is no difference in the colors of the constituent elements of FIG. 7 (a) other than the triangle of FIG. 7 (b). There is no effect.
As described above, the use of the invalid color has an effect that a plurality of images can be easily and efficiently superposed.

以上説明した例においては、色彩画像の画像構成要素の
種類を文字と図形とに分類し、文字には文字符号化方
式、また図形にはカラーランレングス符号化方式を用い
たが、図形等の場合にはグラフィックコマンド符号化方
式やテクスチャー符号化方式等の図形の符号化に使用で
きる任意の符号化方式を用いてもよい。また文字の符号
化に図形等で用いる符号化方式を用いても差し支えな
い。また更に第3図では画像データの符号化に文字符号
化方式及びカラーランレングス符号化方式の2種の方式
を用いているが、画像構成要素の種類に適応して1種類
のみや3種類以上の符号化方式を用いることも可能であ
る。多種類の符号化方式を用いればより複雑な画像を効
率良く符号化できる可能性がある。また復号化回路に優
先順位のついた複数の画像メモリを備えることにより簡
易アニメーションなど更に効果的な画像を効率よく符号
化できる。第8図は、符号化に用いる符号化方式を文字
符号化方式及びカラーランレングス符号化方式の他にグ
ラフィックコマンド符号化方式を用い、また復号化回路
(24)に画像メモリを2メモリ用いている符号化及び復
号化回路の構成を示すブロック図である。ここで用いら
れる符号には、優先順位を示す情報として2つのメモリ
(32)及びメモリ(33)のいずれかを選択する情報が含
まれており、復号化回路(26),(27)及び(35)にお
いて復号化された画像データは、優先順位判定回路(3
1)によって、メモリ(32)或いはメモリ(33)に出力
される。また画像合成回路(30)では、メモリ(32)及
びメモリ(33)の画像データを優先順位に従い、表示装
置が表示可能であるデータに合成する。以上の説明で
は、色の優先順位及びメモリの優先順位を固定していた
が、特殊な制御符号を伝送することによりこれらの優先
順位を任意に指定しなおすことを可能としてもよいし、
また優先順位が自動的に循環(ローティション)する様
にしてもよく、より複雑な画像を効率的に符号化でき
る。
In the example described above, the types of image constituent elements of the color image are classified into characters and figures, and the character encoding method is used for the characters and the color run length encoding method is used for the figures. In this case, any encoding method that can be used for encoding a graphic such as a graphic command encoding method or a texture encoding method may be used. In addition, an encoding method used for figures or the like may be used for encoding characters. Further, in FIG. 3, two kinds of methods, that is, a character encoding method and a color run length encoding method are used for encoding the image data, but only one type or three or more types are applied depending on the type of the image constituent element. It is also possible to use the encoding method of. There is a possibility that more complicated images can be efficiently coded by using various kinds of coding methods. Further, by providing the decoding circuit with a plurality of image memories having priorities, more effective images such as simple animation can be efficiently encoded. FIG. 8 shows that the encoding method used for encoding is a graphic command encoding method in addition to the character encoding method and the color run length encoding method, and two image memories are used for the decoding circuit (24). FIG. 3 is a block diagram showing the configuration of an encoding and decoding circuit that is present. The code used here includes information for selecting one of the two memories (32) and (33) as information indicating the priority order, and the decoding circuits (26), (27) and ( The image data decoded in 35) is processed by the priority determination circuit (3
It is output to the memory (32) or the memory (33) according to 1). The image composition circuit (30) composes the image data in the memory (32) and the memory (33) into data that can be displayed by the display device in accordance with the priority order. In the above description, the color priority order and the memory priority order are fixed, but it is also possible to arbitrarily respecify these priority orders by transmitting a special control code,
Further, the priority may be automatically rotated (rotated), so that a more complicated image can be efficiently coded.

第3図及び第8図においての画像データの符号化回路へ
の入力は、画像の構成要素の種類別に行われていたが、
第9図に示す様に文字及び図形の画像構成要素を自動的
に識別する文字図形認識回路(91)を備えることによ
り、文字図形混在の画像データを入力画像データとする
ことができる。第9図に示す文字図形認識回路(91)の
簡単な例としては、入力画像データの中で、定まった文
字の形(フォント)であるデータのみをパターンマッチ
ングにより認識して文字のデータとし、文字の部分を除
去した他のデータは図形のデータとする方法がある。文
字図形認識回路(91)は幾何学的図形要素の自動抽出な
ど、上記以外の認識方法を実行する回路であってもよ
い。また同一の図形によってもカラーランレングス符号
化方式とグラフィックコマンド符号化方式のそれぞれに
よる符号量は異なることが多い。このため第8図に示す
様に、カラーランレングス符号化方式による符号量とグ
ラフィックコマンド符号化方式による符号量を比較しよ
り少ない符号量の符号を選択する回路を付加することに
より、更に符号量を削減できる。第3図及び第8図にお
いて復号化回路に含まれているメモリ(32),(33)及
び画像合成回路(30)はこれらが表示装置に備えられて
いる場合には省略してもよい。また第3図及び第8図の
メモリ(32),(33)は、通常は画素単位で画像データ
を蓄積するメモリであるが、最終的に表示装置において
表示可能であれば如何なる形式でデータを蓄積するメモ
リであってもよい。
The input of the image data to the encoding circuit in FIGS. 3 and 8 is performed for each type of image constituent element.
As shown in FIG. 9, by providing a character / graphic recognition circuit (91) for automatically identifying image constituents of characters and graphics, image data in which character / graphics are mixed can be used as input image data. As a simple example of the character / figure recognition circuit (91) shown in FIG. 9, among input image data, only data having a fixed character shape (font) is recognized by pattern matching as character data, There is a method in which other data from which the character portion is removed is used as graphic data. The character / graphic recognition circuit (91) may be a circuit that executes a recognition method other than the above, such as automatic extraction of geometrical graphic elements. Also, even in the same figure, the code amounts of the color run length coding method and the graphic command coding method are often different. Therefore, as shown in FIG. 8, by adding a circuit for comparing the code amount by the color run length encoding system and the code amount by the graphic command encoding system and selecting a code with a smaller code amount, the code amount can be further increased. Can be reduced. The memories (32) and (33) and the image synthesizing circuit (30) included in the decoding circuit in FIGS. 3 and 8 may be omitted when these are provided in the display device. The memories (32) and (33) shown in FIGS. 3 and 8 are memories that normally store image data on a pixel-by-pixel basis. It may be a memory for storing.

第5図に示している色符号は優先順位1ビット及び色3
ビットから構成されているが、色符号のビット構成は、
符号化する画像の種類によって適当なビット構成を用い
てもよい。また更に色の出現頻度に応じた非定長の色符
号に変換してもよい。また上記の説明では、優先順位を
示す情報を色符号に含めていたが、構成要素の形状を表
わす符号つまり文字符号又はラン長符号等に含めてもよ
く、或いは独立した符号としてもよい。第4図に示して
ある符号列において、識別符号を用いることで文字符号
とラン長符号を識別しているが、文字符号及びラン長符
号がそれぞれ識別可能である様にし、識別符号を用いな
い様にしてもよく、第3図又は第8図の符号識別回路
(25)において入力される符号が識別可能であればよ
い。また第4図の符号列において色符号は文字符号及び
ラン長符号毎に付加されているが、第10図(a)に示す
文字符号列の例の様に文字の色が変化する時のみ色符号
を文字符号に付加する様にしたり、また第10図(b)に
示すラン長符号列の例の様に、色符号の付加されていな
いランは前の前のランの色と等しいとする等、文字また
はラン等画像構成要素の色を明確にすることの可能な符
号列であれば任意の符号列を用いることができる。
The color code shown in FIG. 5 is 1 bit for priority and 3 for color.
Although it is composed of bits, the bit structure of the color code is
An appropriate bit configuration may be used depending on the type of image to be encoded. Further, the color code may be converted into a non-fixed-length color code according to the appearance frequency of the color. Further, in the above description, the information indicating the priority order is included in the color code, but it may be included in the code indicating the shape of the component, that is, the character code or the run length code, or may be an independent code. In the code string shown in FIG. 4, the character code and the run length code are identified by using the identification code, but the character code and the run length code are made distinguishable, and the identification code is not used. The code input in the code identification circuit (25) of FIG. 3 or 8 may be identified. The color code is added for each character code and run length code in the code string of FIG. 4, but only when the color of the character changes, as in the example of the character code string shown in FIG. A code is added to a character code, or, as in the example of the run length code string shown in FIG. 10 (b), a run without a color code is equal to the color of the previous run. Any code string can be used as long as it is a code string that can clarify the color of the image constituent element such as characters or runs.

以上のようにこの発明による色彩画像符号化方法によれ
ば、色彩画像の構成要素の種類別に構成要素の性質に適
合する符号化方式を用いるとともに符号化を行う際画像
構成要素の情報に復号化回路において表示又は記録に適
した信号に変換する際に、画像構成要素毎に変更可能性
を有する優先順位を示す情報を付加したため、画像構成
要素を逐次合成して表示することができ、色彩画像を効
率よく符号化できる効果がある。
As described above, according to the color image encoding method of the present invention, an encoding method suitable for the property of each component of the color image is used, and when the encoding is performed, the information of the image component is decoded. When converting into a signal suitable for display or recording in the circuit, since information indicating the priority order that can be changed for each image constituent element is added, the image constituent elements can be sequentially synthesized and displayed. Can be efficiently encoded.

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

第1図及び第2図は従来の色彩画像符号化方式の装置構
成を示すブロック図、第3図はこの発明による色彩画像
符号化方式装置構成の一例を示すブロック図、第4図は
この発明による符号化方式の符号の形式の一例を示す
図、第5図はこの発明による符号化方式の色符号の構成
の一例を示す図、第6図及び第7図はこの発明による符
号化方式の効果の例を説明するための図、第8図はこの
発明による色彩画像符号化方式の装置構成の他の一例を
示すブロック図、第9図はこの発明による色彩画像符号
化方式の色彩画像符号化回路の構成の他の一例を示すブ
ロック図、第10図はこの発明による符号化方式の符号列
の他の形式の一例を示す図である。 (11),(21)……色彩画像符号化回路、(12),(2
4)……色彩画像復号化回路、(13),(28),(2
9),(32),(33)……メモリ、(22)……文字符号
化回路、(23)……カラーランレングス符号化回路、
(25)……符号識別回路、(26)……文字符号復号化回
路、(27)……カラーランレングス符号復号化回路、
(30)……画像合成回路、(31)……優先順位判定回
路、(34)……グラフィックコマンド符号化回路、(3
5)……グラフィックコマンド符号復号化回路、(36)
……文字図形認識回路。 なお図中同一符号は同一又は相当部分を示す。
1 and 2 are block diagrams showing the configuration of a conventional color image encoding system, FIG. 3 is a block diagram showing an example of the configuration of a color image encoding system according to the present invention, and FIG. 4 is this invention. FIG. 5 is a diagram showing an example of the code format of the encoding system according to the present invention, FIG. 5 is a diagram showing an example of the configuration of the color code of the encoding system according to the present invention, and FIGS. FIG. 8 is a block diagram showing another example of the device configuration of the color image coding system according to the present invention, and FIG. 9 is a color image code of the color image coding system according to the present invention. FIG. 10 is a block diagram showing another example of the configuration of the encoding circuit, and FIG. 10 is a diagram showing an example of another format of the code string of the encoding method according to the present invention. (11), (21) ... Color image coding circuit, (12), (2
4) ... Color image decoding circuit, (13), (28), (2
9), (32), (33) ... memory, (22) ... character encoding circuit, (23) ... color run length encoding circuit,
(25) ... code identification circuit, (26) ... character code decoding circuit, (27) ... color run length code decoding circuit,
(30) …… Image synthesis circuit, (31) …… Priority level judgment circuit, (34) …… Graphic command coding circuit, (3
5) ... Graphic command code decoding circuit, (36)
...... Character / figure recognition circuit. The same reference numerals in the drawings indicate the same or corresponding parts.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭54−120553(JP,A) 特開 昭56−143486(JP,A) 特公 昭57−33753(JP,B1) ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-54-120553 (JP, A) JP-A-56-143486 (JP, A) JP-B-57-33753 (JP, B1)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】画像構成要素の種類別に分けられた色彩画
像をこの画像構成要素の種類別に符号化する色彩画像符
号化方法において、復号化装置で表示又は記録する際の
優先順位を示す情報を、上記画像構成要素の符号に付加
することを特徴とする色彩画像符号化方法。
1. A color image coding method for coding a color image classified according to the type of image constituent element according to the kind of the image constituent element, wherein information indicating a priority order when displaying or recording by a decoding device is provided. A color image coding method, characterized in that the method is added to the code of the image constituent element.
【請求項2】上記画像構成要素の符号が、復号化装置に
おいて表示又は記録する際に他の要請要素の色に影響を
与えない様な優先順位の常に最も低い色の符号を含むこ
とを特徴とする特許請求の範囲第1項記載の色彩画像符
号化方法。
2. The code of the image constituent element includes a code of the lowest priority color which does not affect the color of other request elements when being displayed or recorded in the decoding device. The color image encoding method according to claim 1.
JP57141476A 1982-08-12 1982-08-12 Color image coding method Expired - Lifetime JPH0722342B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57141476A JPH0722342B2 (en) 1982-08-12 1982-08-12 Color image coding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57141476A JPH0722342B2 (en) 1982-08-12 1982-08-12 Color image coding method

Publications (2)

Publication Number Publication Date
JPS5930367A JPS5930367A (en) 1984-02-17
JPH0722342B2 true JPH0722342B2 (en) 1995-03-08

Family

ID=15292773

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57141476A Expired - Lifetime JPH0722342B2 (en) 1982-08-12 1982-08-12 Color image coding method

Country Status (1)

Country Link
JP (1) JPH0722342B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03247163A (en) * 1991-01-22 1991-11-05 Canon Inc Picture processing unit
JPH03247074A (en) * 1991-01-22 1991-11-05 Canon Inc Picture processing unit
US6744925B2 (en) 1996-03-19 2004-06-01 Mitsubishi Denki Kabushiki Kaisha Encoding apparatus, decoding apparatus, encoding method, and decoding method
AU1041097A (en) 1996-03-19 1997-10-10 Mitsubishi Denki Kabushiki Kaisha Encoder, decoder and methods used therefor
US6636641B1 (en) 1996-03-19 2003-10-21 Mitsubishi Denki Kabushiki Kaisha Encoding apparatus, decoding apparatus, encoding method and decoding method
JP2750115B2 (en) * 1996-09-24 1998-05-13 キヤノン株式会社 Image processing method and apparatus
US8823560B1 (en) * 2013-03-01 2014-09-02 Gurulogic Microsystems Oy Data encoder, data decoder and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS595904B2 (en) * 1978-03-10 1984-02-07 日本電信電話株式会社 Graphic synthesis processing device
JPS56143486A (en) * 1980-04-11 1981-11-09 Tokyo Shibaura Electric Co Animation display unit
JPS5733753A (en) * 1980-08-08 1982-02-23 Ritsukaa Kk Pneumatic solar heat collector

Also Published As

Publication number Publication date
JPS5930367A (en) 1984-02-17

Similar Documents

Publication Publication Date Title
US6542631B1 (en) Encoding method of a color image and its encoding device and a decoding method of the color image and its decoding device
US6803968B1 (en) System and method for synthesizing images
US4742558A (en) Image information retrieval/display apparatus
USRE33547E (en) Graded facsimile image signal coding system
US8385639B2 (en) Compressive coding device and visual display control device
US5070532A (en) Method for encoding color images
US20020012473A1 (en) Encoder, decoder, recording medium, encoding method, and decoding method
US5442739A (en) Image processing including cut and paste editing
US5247589A (en) Method for encoding color images
JPH05328142A (en) Picture data compression method and picture display device
JPH0722342B2 (en) Color image coding method
JPH1188700A (en) Coding method of color image signal, and decoding method and color image processor thereof
US5621819A (en) Multidimensional multi-valued color image compression and decompression method
KR900701128A (en) Method and system for compressing and decompressing statistically encoded digital color video data
JPH04270564A (en) Serial picture data compression system having color information
AU2003289325B2 (en) Image encoding device and method, and encoded image decoding device and method
JPH11308465A (en) Encoding method for color image, encoder therefor, decoding method for color image and decoder therefor
US5790128A (en) Method for the encoding of image memories
JPH0334777A (en) Picture signal encoder, picture signal decoder and picture signal display device
JPH0773287A (en) Image synthesizing circuit
JP3144788B2 (en) Color document image processing device
CN1214350C (en) Picture coding method and method and electronic device of structuring sub-picture data unit
JPS5821985A (en) Transmitting and displaying system of picture information
JPS6339186B2 (en)
JP2798025B2 (en) Video coding method and apparatus