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

JPS5916464B2 - Color figure encoding/decoding method and device - Google Patents

Color figure encoding/decoding method and device

Info

Publication number
JPS5916464B2
JPS5916464B2 JP52001796A JP179677A JPS5916464B2 JP S5916464 B2 JPS5916464 B2 JP S5916464B2 JP 52001796 A JP52001796 A JP 52001796A JP 179677 A JP179677 A JP 179677A JP S5916464 B2 JPS5916464 B2 JP S5916464B2
Authority
JP
Japan
Prior art keywords
code
signal
length
run
run length
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
Application number
JP52001796A
Other languages
Japanese (ja)
Other versions
JPS5387121A (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.)
NTT Inc
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP52001796A priority Critical patent/JPS5916464B2/en
Publication of JPS5387121A publication Critical patent/JPS5387121A/en
Publication of JPS5916464B2 publication Critical patent/JPS5916464B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)

Description

【発明の詳細な説明】 本発明は、カラー画像信号を効率的にランレングス符号
化しかつ復号化する方法及びその実施に使用する装置に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for efficiently run-length encoding and decoding color image signals, and apparatus for use in its implementation.

従来、カラー画像信号をデイジタル符号化する方式とし
ては、PCM,ΔM,DPCM等が一般的であつた。
Conventionally, PCM, ΔM, DPCM, etc. have been common as methods for digitally encoding color image signals.

これらの方式では、多階調を有するカラー自然画像(風
景、人物等)をデイジタル符号化することができるが、
これをメモリに蓄えるには、最も効率の良いDPCMで
も1画面当り約1.6X106ビツトと、膨大なメモリ
量が必要となる。近年、電子計算機を使用してプログラ
ム学習を行なうCAI(COmputerAssist
edInstru一CtiOn)が注目されつつあるが
、この場合、学習者に提示される画面は、使用される色
が限定され、かつ比較的簡単なカラー図形から構成され
ることが多い。このような画面に対しては、フアクシミ
リにおける帯域圧縮技術として一般に知られているラン
レングス符号化法を応用すると、大幅な情報量の圧縮(
DPCMの1/5以上)が達成されるものと期待される
。しかし、このような方式ではカラー図形が文字等のよ
うなランレングスの短い情程を多く含む場合、一般に情
報圧縮率が低下する傾向がある。本発明はこれらの欠点
を除去するためになされたもので、文字、線画などのよ
うなランレングスの短いものは白抜きまたは黒抜きの無
彩色で表わされることが多く、また人間の色に対する視
覚特性からランレングスの短いものは色度信号を除いて
輝度信号のみとしても実際上あまり問題とならない事実
を利用して短ランレングスの画像信号についてはランレ
ングスと輝度信号のみを符号化すると共に、長ランレン
グス信号についてもランレングスが固定長符号で符号化
できる範囲を越えた場合または短ランレングス信号によ
り中断された場合には画像信号を改めて符号化せずに残
りのランレングスのみを符号化することによつて符号長
の短縮を図るようにしたことを特徴とし、以下図面につ
いて詳細に説明する。
These methods can digitally encode color natural images (landscapes, people, etc.) with multiple gradations;
To store this in memory, even the most efficient DPCM requires a huge amount of memory, about 1.6 x 106 bits per screen. In recent years, CAI (Computer Assistant), which performs program learning using electronic computers, has become popular.
edInstru-CtiOn) is attracting attention, but in this case, the screen presented to the learner is often limited in the colors used and is composed of relatively simple color graphics. For such screens, applying the run-length encoding method, which is generally known as a band compression technique in facsimile, can significantly compress the amount of information (
It is expected that more than 1/5 of DPCM) will be achieved. However, in such a method, when a color graphic includes many elements with short run lengths such as characters, the information compression rate generally tends to decrease. The present invention was made in order to eliminate these drawbacks, and objects with short run lengths such as letters and line drawings are often represented in achromatic colors with white or black outlines, and the human visual sense of color is Taking advantage of the fact that it does not actually cause much of a problem if only the luminance signal is used, excluding the chromaticity signal, for short run length image signals, only the run length and luminance signals are encoded for short run length image signals. For long run length signals, if the run length exceeds the range that can be encoded with a fixed length code or if it is interrupted by a short run length signal, only the remaining run length is encoded without recoding the image signal. The present invention is characterized in that the code length is shortened by doing so, and the drawings will be described in detail below.

第1図は本発明による符号化方法の原理説明図である。FIG. 1 is a diagram explaining the principle of the encoding method according to the present invention.

いま第1図aの如きカラー図形について、カラーテレビ
ジヨン信号をランレングス符号化する場合を考え、長ラ
ンレングス信号については輝度信号Y1色度信号1,Q
を各2ビツトで符号化し、短ランレングス信号について
は輝度信号Yのみを2ビツトで符号化するものとする。
第1図aにおいて、AB間の画像信号が長ランレングス
信号である場合、Y,I,Q各信号を2ビツトで符号化
して、例えば″101、″11″ ″01″とし、ラン
レングス(RL)が80ドツトとすると、AB間のラン
レングス符号化情報は第1図bのように1バイト8ビツ
ト構成で2バイトにより表わされる。ここで、上位2ビ
ツトは長ランレングスコード(以下カラーコードと称す
)を示すコード識別符号で該上位2ビツトが″00″で
あれば、以下の6ビツトはデイジタル符号化された画像
信号を表わし、次の1バイトは画像信号のランレングス
を表わすものとする。またBC間の画像信号が短ランレ
ングス信号である場合には、輝度信号Yのみを2ビツト
で符号化し、例えば″101とし、ランレングス(RL
)が2ビツトとすると、BC間のランレングス符号化情
報は第1図cのように1バイトで表わされる。ここで上
位2ビツトは短ランレングスコード(以下輝度コードと
称す)を示すコード識別符号で、該上位2ビツトが01
であれば、以下の2ビツトはデイジタル符号化された輝
度信号を表わし、次の4ビツトは輝度信号のランレング
スを表わすものとする。次にCD間のランレングスが8
0ドツトで、画像信号はAB間と同じである場合には、
ランレングスのみ符号化し、CD間の画像信号のランレ
ングス符号化情報は第1図dのように1バイトで表わし
、これをランレングスコードと称する。ここで上位1ビ
ツトはランレングスコードを示すコード識別符号で、該
上位1ビツトが″1″であれば、以下の7ビツトは中断
された長ランレングス信号のランレングス(RL)を表
わし、この区間の画像信号は短ランレングス信号が挿入
される前の画像信号と同一のものとする。またAB間の
ランレングスが長くカラーコードの8ビツトのランレン
グス符号では符号化できずオーバーフローするときは、
ランレングスコードによりオーバーフロー分がランレン
グスのみ符号化しカラーコードに連結する。このときオ
ーバーフロー分がかなり長く、ランレングスコードの7
ビツトのランレングス符号を付加してもオーバーフロー
するときはランレングスコードをさらに1個、計2個の
ランレングスコードをカラーコードに付加しなければな
らない。しかしこの場合は2個のランレングスコード(
計2バイト)の代わりに8ビツトのランレングス符号を
有するカラーコード(2バイト)を用いても符号化情報
量は等しいので、ランレングスコードを特に用いる必要
はない。このことは前述のCD間における短ランレング
ス信号により中断された長ランレングス信号のランレン
グスコードによる符号化につても言える。後述の符号化
回路の実施例ではランレングスコードが2個必要な場合
にはカラーコードで符号化する構成を示している。もつ
ともランレングスコードを9ビツトで構成(このうち1
ビツトはコード識別符号)すれば、明らかにカラーコー
ドを1つ用いるよりランレングスコードを1つ用いた方
が符号化情報量としては縮小される。以上の説明ではバ
イト単位に符号化する例を述べたが、勿論、カラー信号
、輝度信号及びランレングスに与えるビツト数はこれに
限定されるものでなく、他のビツト構成を採用できるこ
とは云うまでもない。また色度信号としてはI,Q信号
以外に、色相、彩度など色度信号の他の表現法も用いる
ことができる。第2図に本発明の方法を適用した符号化
装置の一実施例を示す。
Now consider the case where a color television signal is run-length encoded for a color figure as shown in FIG.
are encoded with 2 bits each, and for short run length signals, only the luminance signal Y is encoded with 2 bits.
In FIG. 1a, if the image signal between AB is a long run length signal, each Y, I, and Q signal is encoded with 2 bits, for example, as "101,""11" and "01", and the run length ( RL) is 80 dots, the run length encoded information between AB is represented by 2 bytes with 1 byte consisting of 8 bits as shown in Figure 1b.Here, the upper 2 bits are the long run length code (hereinafter referred to as color code). If the upper 2 bits of the code identification code are "00", the following 6 bits represent a digitally encoded image signal, and the next 1 byte represents the run length of the image signal. In addition, when the image signal between BC is a short run length signal, only the luminance signal Y is encoded with 2 bits, for example, "101", and the run length (RL
) is 2 bits, the run-length encoding information between BC is represented by 1 byte as shown in FIG. 1c. Here, the upper two bits are a code identification code indicating a short run length code (hereinafter referred to as the brightness code), and the upper two bits are 01.
If so, the next two bits represent the digitally encoded luminance signal, and the next four bits represent the run length of the luminance signal. Next, the run length between CDs is 8.
If there is 0 dot and the image signal is the same between A and B,
Only the run length is encoded, and the run length encoded information of the image signal between CDs is expressed in one byte as shown in FIG. 1d, and this is called a run length code. Here, the upper 1 bit is a code identification code indicating a run length code, and if the upper 1 bit is "1", the following 7 bits represent the run length (RL) of the interrupted long run length signal, and this The image signal of the section is assumed to be the same as the image signal before the short run length signal is inserted. Also, when the run length between AB is long and cannot be encoded with the 8-bit run length code of the color code and overflow occurs,
The run length code encodes only the run length of the overflow and connects it to the color code. At this time, the overflow portion is quite long, and the run length code is 7.
If an overflow occurs even after adding a bit run-length code, one more run-length code must be added to the color code, making a total of two run-length codes. However, in this case, two run-length codes (
Even if a color code (2 bytes) having an 8-bit run-length code is used instead of a total of 2 bytes), the amount of encoded information is the same, so there is no particular need to use a run-length code. This also applies to the above-mentioned encoding of long run length signals interrupted by short run length signals between CDs using run length codes. In the embodiment of the encoding circuit described later, a configuration is shown in which when two run-length codes are required, encoding is performed using a color code. Naturally, the run length code consists of 9 bits (of which 1
(bits are code identification codes), it is clear that the amount of encoded information is smaller when one run-length code is used than when one color code is used. In the above explanation, an example of encoding is given in byte units, but of course the number of bits given to the color signal, luminance signal, and run length is not limited to this, and it goes without saying that other bit configurations can be adopted. Nor. In addition to the I and Q signals, other methods of expressing chromaticity signals such as hue and saturation can also be used as chromaticity signals. FIG. 2 shows an embodiment of an encoding device to which the method of the present invention is applied.

図において、1はカラー図形であり、これは例えばカラ
ーテレビカメラ、カラーフライングスポツトスキヤナ一
等からなる3の撮像装置で撮像され、カラー信号R,G
,Bの電気信号に変換される。2は撮像装置3に同期信
号を供給する同期信号発生器である。
In the figure, 1 is a color figure, which is imaged by an imaging device 3 consisting of a color television camera, a color flying spot scanner, etc., and color signals R, G, etc.
, B into electrical signals. 2 is a synchronization signal generator that supplies a synchronization signal to the imaging device 3.

撮像装置3で得られたR,G,B信号は、4のマトリツ
クス回路で、Y,I,Q信号に変換された後、5のアナ
ログーデイジタル変換器に入力され、6のクロツク発振
器の出力クロツクで決定される標本化周波数でデイジタ
ル信号に変換される。図では、クロツク発振器6の出力
クロツクを同期信号発生器2にも供給し、クロツク発振
器6と同期信号発生器2とを同期させているが、エツジ
ビジネス等の悪影響が生じることをあまり考慮する必要
がない場合は、両者を非同期で動作させてもよい。アナ
ログーデイジタル変換器5でデイジタル化された信号は
、7のランレングス符号器に入力されると共に8の変化
検出回路にも入力される。なお、第1図B,c,dに示
した各コードの符号構成に見られるように、画像信号を
少数ビツト(第1図の例では各分離信号について2ビツ
ト)で符号化する場合には、少数レベルによる量子化の
影響として粒子性雑音が発生しやすく、特にI,Q信号
は正負の値をとるため量子化レベルが不足し、I,Q信
号が零近傍の値をとる無彩色信号については符号化が不
可能となる。
The R, G, and B signals obtained by the imaging device 3 are converted into Y, I, and Q signals by the matrix circuit 4, and then input to the analog-to-digital converter 5, which outputs the clock oscillator 6. It is converted into a digital signal at a sampling frequency determined by a clock. In the figure, the output clock of the clock oscillator 6 is also supplied to the synchronization signal generator 2, and the clock oscillator 6 and the synchronization signal generator 2 are synchronized, but it is necessary to take into account the negative effects of edge business, etc. If not, both may be operated asynchronously. The signal digitized by the analog-to-digital converter 5 is input to a run length encoder 7 and also to a change detection circuit 8. Furthermore, as seen in the code structure of each code shown in Figure 1B, c, and d, when encoding an image signal with a small number of bits (2 bits for each separated signal in the example of Figure 1), , particulate noise is likely to occur as a result of quantization due to a small number of levels, and in particular, the I and Q signals take positive and negative values, so the quantization level is insufficient, and the I and Q signals take values near zero, making it an achromatic signal. cannot be encoded.

そこで画像信号を少数ビツトで符号化する場合には、ア
ナログーデイジタル変換器5の構成としては、まず多数
ビツト(例えば各分離信号について4ビツト)でアナロ
グーデイジタル変換を行ない、次いで布線論理により各
分離信号の多数ビツト符号を少数ビツト(例えば各分離
信号について2ビツト)符号に変換して出力する非線形
量子化機能を有する構成とすることが望ましい。復号時
には逆に少数ビツト符号を多数ビツト符号に布線論理に
より変換し、次いでデイジタルーアナログ変換するデイ
ジタルーアナログ変換器が必要となる。このような非線
形量子を伴う少数ビツトによる符号化・復号化技術につ
いては、本発明者により既に特許出願されている(特願
昭51−105021、昭和51年9月3日)。本発明
の実施例に含まれるアナログーデイジタル変換器および
デイジタルーアナログ変換器については上記の非線形量
子化機能を有するものも対象としている。ランレングス
はクロツク発振器6からのクロツクパルスを9のカウン
タで計数することにより与えられ、ランレングス計数値
はランレングス符号器7に入力される。
Therefore, when encoding an image signal using a small number of bits, the configuration of the analog-to-digital converter 5 first performs analog-to-digital conversion using a large number of bits (for example, 4 bits for each separated signal), and then performs analog-to-digital conversion using wiring logic. It is desirable that the configuration has a nonlinear quantization function that converts the multi-bit code of each separated signal into a small-bit code (for example, 2 bits for each separated signal) and outputs the code. At the time of decoding, a digital-to-analog converter is required, which converts a small-bit code into a multi-bit code using wiring logic, and then performs digital-to-analog conversion. The present inventor has already filed a patent application for encoding/decoding technology using a small number of bits involving such nonlinear quanta (Japanese Patent Application No. 105021-1971, September 3, 1978). The analog-to-digital converters and digital-to-analog converters included in the embodiments of the present invention are also intended to have the above-mentioned nonlinear quantization function. The run length is given by counting the clock pulses from the clock oscillator 6 with a counter 9, and the run length count value is input to the run length encoder 7.

短ランレングス信号と長ランレングス信号を分離するた
めの基準となるランレングスについては一般には有彩色
と無彩色とで異なる。
The run length, which is a standard for separating short run length signals and long run length signals, generally differs between chromatic colors and achromatic colors.

有彩色については眼の視覚特性から、あるいはカラーテ
レビジヨン放送方式における色度信号の帯域制限から色
彩表示可能なランレングスが決まり、色彩表示可能な最
小ランレングスを基準にして短ランレングス信号と長ラ
ンレングス信号を分離する。無彩色については情報は輝
度信号のみであるから、ランレングスの基準としては輝
度コードにおけるランレングス符号化ビツト数(第1図
cの例では4ビツト)で決まるランレングス(第1図c
の例では15ドツト)を基準にとれば良い。以上に述べ
たように有彩色と無彩色とで基準ランレングスを切換え
る必要があるため、第2図の実施例では無彩色信号の生
起を検出する回路プロツクとして無彩色検出回路10を
有している。無彩色検出回路10の詳細を第3図に示す
。I,Q信号はまず2乗回路101,102でそれぞれ
2乗された後、加算回路103で加算される。加算出力
12+Q2は比較回路104で基準電圧と比較され、基
準電圧以下であれば無彩色とみなし、第2図に示す基準
ランレングスを切換えるゲート回路20,2『に無彩色
信号の生起を通知する制御信号を送出する。レジスタ1
8には有彩色の基準ランレングスが、レジスタ18′に
は無彩色の基準ランレングスがそれぞれ設定される。な
お無彩色信号の検出法としては、上記のように色度信号
1,Qのアナログ信号を検出する方法以外に、アナログ
ーデイジタル変換器5のY,I,Q信号に対するデイジ
タル符号化出力から、比較器を用いて無彩色信号のデイ
ジタル符号を検出するデイジタル検出方式を採用するこ
ともできる。変化検出回路8は、Y,I,Q信号の何れ
か1つでも変化があれば、変化検出信号を出力する。
For chromatic colors, the run length that can display colors is determined by the visual characteristics of the eye or the band limit of the chromaticity signal in the color television broadcasting system, and short run length signals and long run lengths are determined based on the minimum run length that can display colors. Separate run-length signals. For achromatic colors, the information is only the luminance signal, so the run length standard is the run length determined by the number of run length encoding bits in the luminance code (4 bits in the example in Figure 1 c).
In this example, 15 dots) may be used as the standard. As mentioned above, since it is necessary to switch the reference run length between chromatic colors and achromatic colors, the embodiment shown in FIG. 2 has an achromatic color detection circuit 10 as a circuit block for detecting the occurrence of an achromatic color signal. There is. Details of the achromatic color detection circuit 10 are shown in FIG. The I and Q signals are first squared in squaring circuits 101 and 102, respectively, and then added in an adding circuit 103. The addition output 12+Q2 is compared with a reference voltage in a comparator circuit 104, and if it is less than the reference voltage, it is regarded as an achromatic color, and the gate circuits 20 and 2', which switch the reference run length shown in FIG. 2, are notified of the occurrence of an achromatic signal. Send control signals. register 1
A reference run length for chromatic colors is set in register 8, and a reference run length for achromatic colors is set in register 18'. In addition to the method of detecting the analog signals of the chromaticity signals 1 and Q as described above, the achromatic color signal can be detected by using the digitally encoded output of the Y, I, and Q signals of the analog-to-digital converter 5. It is also possible to adopt a digital detection method in which a comparator is used to detect the digital code of the achromatic signal. The change detection circuit 8 outputs a change detection signal if there is a change in any one of the Y, I, and Q signals.

19は比較器で、ランレングスカウンタ9のランレング
ス計数値とレジスタ18または18bランレングス基準
値を比較し、ランレングス計数値が基準値より大きいと
き、すなわち長ランレングス信号であるとき論理出力″
1″を出力し、AND回路11を開いて変化検出信号を
ランレングス符号器7の長ランレングス信号符号化制御
端子Lに伝達し、カラーコードによる符号化を制御する
A comparator 19 compares the run length count value of the run length counter 9 with the run length reference value of the register 18 or 18b, and when the run length count value is greater than the reference value, that is, it is a long run length signal, a logic output is provided.
1'', opens the AND circuit 11, transmits the change detection signal to the long run length signal encoding control terminal L of the run length encoder 7, and controls encoding using the color code.

逆にランレングス計数値が基準値以下であるとき、比較
器9は論理出力″O″を出力し、AND回路12を開い
て変化検出信号をランレングス符号器7の短ランレング
ス信号符号化制御端子Sに伝達し、輝度コードによる符
号化を制御する。ランレングスカウンタ9は変化検出信
号がランレングス符号器7に送出されると同時に、同信
号により0R回路15を介してりセツトされる。ランレ
ングスカウンタ9は、第1図b−dの符号構成の下では
8ビツト符号化可能な最大ランレングス255ドツトを
越えるランレングスに対してオーバーフローする。
Conversely, when the run length count value is less than the reference value, the comparator 9 outputs a logic output "O", opens the AND circuit 12, and sends the change detection signal to the short run length signal encoding control of the run length encoder 7. The signal is transmitted to the terminal S to control encoding using the luminance code. The run length counter 9 is reset by the change detection signal via the 0R circuit 15 at the same time as the change detection signal is sent to the run length encoder 7. The run length counter 9 overflows for run lengths exceeding the maximum run length of 255 dots that can be encoded in 8 bits under the code structure shown in FIGS. 1b-d.

オーバーフロー信号は変化検出信号と見なされ、0R回
路13を経てランレングス符号器7の長ランレングス信
号符号化制御端子Lに入力されカラーコードによる符号
化を制御する。オーバーフロー後の符号化はオーバーフ
ローしたランレングスが第1図dに示されたランレング
スコードの7ビツトの符号で表わされるランレソグスの
大きさ127ドツト以下であるとき、比較器19′の出
力は論理“O”となりAND回路20の出力は論理″1
1となりランレングス符号器7のランレングスコード制
御端子Rに入力が生じる。ここで1Ff′はレジスタで
基準ランレングス127ドツトが設定され、21は0R
回路である。このとき再び制御端子LまたはSに変化検
出信号が生じると、端子Rに制御信号入力があるため、
第1図dに示すランレングスコードによる符号化が行な
われる。もし、オーバーフロー後、変化検出信号が制御
端子Lに生じた時点でランレングスが127より大きく
、比較器19′の出力が論理″1″であるときはAND
回路20の出力は論理″01となるから、端子Rには入
力が生ぜず、制御端子Lに入力する変化検出信号の制御
によりカラーコード(第1図b)による符号化が行なわ
れる。16,16′はレジスタ、17は比較器、22は
0R回路で、これらの回路は短ランレングス信号により
中断された長ランレングス信号を、ランレングスコード
(第1図d)により効率よく符号化するための制御を行
なう。
The overflow signal is regarded as a change detection signal, and is inputted to the long run length signal encoding control terminal L of the run length encoder 7 via the 0R circuit 13 to control encoding using the color code. In the encoding after overflow, when the overflowed run length is less than or equal to the run length size 127 dots represented by the 7-bit code of the run length code shown in FIG. O” and the output of the AND circuit 20 is logic “1”.
1, and an input is generated at the run-length code control terminal R of the run-length encoder 7. Here, 1Ff' is set to a reference run length of 127 dots in the register, and 21 is 0R.
It is a circuit. At this time, if a change detection signal occurs again at the control terminal L or S, since there is a control signal input at the terminal R,
Encoding is performed using the run-length code shown in FIG. 1d. If the run length is greater than 127 and the output of the comparator 19' is logic "1" at the time when the change detection signal is generated at the control terminal L after overflow, then the AND
Since the output of the circuit 20 becomes logic "01," no input is generated at the terminal R, and encoding is performed using the color code (FIG. 1b) under the control of the change detection signal input to the control terminal L.16. 16' is a register, 17 is a comparator, and 22 is an 0R circuit. These circuits are used to efficiently encode a long run length signal interrupted by a short run length signal using a run length code (Fig. 1d). control.

レジスタ16は0R回路22を介して得られる短ランレ
ングス信号検出出力(AND回路12の出力)または長
ランレングス信号検出出力(AND回路11の出力)に
よつてタイミング信号を得て、そのときのアナログーデ
イジタル変換器5の出力信号を1時記憶する。一方、レ
ジスタ16′は0R回路13の出力である長ランレング
ス信号符号化制御端子Lの入力信号をタイミング信号と
してレジスタ16より長ランレングス信号のみを読取り
1時記憶する。端子Lまたは端子Sに入力信号が生じる
とき、アナログ−デイジタル変換器5の出力とレジスタ
16′の長ランレングス信号の内容が一致するとき、該
長ランレングス信号が一度短ランレングス信号により中
断された後、再び該長ランレングス信号の続き信号が発
生したものと解釈し、ランレングスコードによる符号化
を行なう。この制御は、アナログーデイジタル変換器5
の出力とレジスタ16ゝの内容の一致を比較器17によ
りとり、一致が生じた場合は比較器17の出力は論理″
1〃となり、0R回路21を介してAND回路20を開
いて端子Rに制御信号を与え、ランレングスコードによ
る符号化を行なう。なおランレングスが長く、レジスタ
18〃の設定値を越えるときは、AND回路20は比較
器19′の出力により閉塞され、端子Rには制御信号は
生ぜず、端子Lに制御信号が生ずるのみであり、カラー
コードによる符号化が行なわれる。第2図において、1
4はバツフアメモリ、2Tは磁気デイスク装置のような
大容量デイジタルメモリである。符号器7で符号化され
た情報は一度バツフアメモリ14に書込まれた後に、デ
イジタルメモリ27に蓄積される。次にランレングス符
号器Tについて、実施例に従い詳細に述べる。
The register 16 obtains a timing signal from the short run length signal detection output (output of the AND circuit 12) or the long run length signal detection output (output of the AND circuit 11) obtained via the 0R circuit 22, and receives the timing signal at that time. The output signal of the analog-to-digital converter 5 is temporarily stored. On the other hand, the register 16' reads only the long run length signal from the register 16 using the input signal of the long run length signal encoding control terminal L, which is the output of the 0R circuit 13, as a timing signal and stores it for one time. When an input signal occurs at terminal L or terminal S, when the output of the analog-to-digital converter 5 and the content of the long run length signal in the register 16' match, the long run length signal is once interrupted by the short run length signal. After that, it is interpreted that a continuation signal of the long run-length signal has been generated again, and encoding is performed using a run-length code. This control is performed by analog-to-digital converter 5.
The comparator 17 checks whether the output of the register 16 matches the contents of the register 16, and if a match occurs, the output of the comparator 17 becomes a logic
1, the AND circuit 20 is opened via the 0R circuit 21, a control signal is applied to the terminal R, and encoding is performed using a run-length code. Note that when the run length is long and exceeds the set value of the register 18, the AND circuit 20 is blocked by the output of the comparator 19', and no control signal is generated at the terminal R, but only a control signal is generated at the terminal L. Yes, and encoding is performed using a color code. In Figure 2, 1
4 is a buffer memory, and 2T is a large capacity digital memory such as a magnetic disk device. The information encoded by the encoder 7 is once written into the buffer memory 14 and then stored in the digital memory 27. Next, the run-length encoder T will be described in detail according to an embodiment.

第4図はランレングス符号器7の詳細を示す図である。
ランレングス符号器7は第2図の制御回路25からのス
タート信号により符号化を開始し、終了信号により1フ
レーム分の符号化を終了する。
FIG. 4 is a diagram showing details of the run-length encoder 7.
The run-length encoder 7 starts encoding in response to a start signal from the control circuit 25 shown in FIG. 2, and ends encoding for one frame in response to an end signal.

スタート信号および終了信号は同期信号発生器2の同期
信号から作成される。第4図において、先ず制御回路2
5より制御線721を介してスタート信号がゲート回路
701に加えられると、制御線722,123,124
あるいは725に加わる信号に従い、レジスタTO2,
lO3あるいは704の内容を信号FfB7l6を介し
てバツフアメモリ14に書込めるように用意する。以下
、カラーコード、輝度コードおよびランレングスコード
による各符号化についで、ランレングス符号器7の動作
を説明する。最初に長ランレングス信号をカラーコード
により符号化する場合について説明する。
The start signal and end signal are generated from the synchronization signal of the synchronization signal generator 2. In FIG. 4, first, the control circuit 2
5 to the gate circuit 701 via the control line 721, the control lines 722, 123, 124
Or according to the signal applied to 725, register TO2,
The contents of IO3 or 704 are prepared so as to be written into buffer memory 14 via signal FfB7l6. Hereinafter, the operation of the run-length encoder 7 will be explained regarding each encoding using a color code, a luminance code, and a run-length code. First, a case will be described in which a long run length signal is encoded using a color code.

信号線Tl2,7l3,7l4を介してデイジタル符号
化されたカラー信号Y,I,Qを、信号線715を介し
てランレングスの値をカラーコード用ビツト編集回路7
05に取り込み、第1図bに示したビツト編集を行ない
、レジスタ102に書込む。いま制御線724(端子R
)に制御信号(AND回路20の出力)がないと、制御
線722(端子L)に加わる0R回路13(第2図)の
変化点検出信号出力がAND回路TO8を介してゲート
回路701に加えられ、レジスタ702の内容が信号線
116を介してバツフアメモリ14に書込まれる。次に
短ランレングス信号を輝度コードにより符号化する場合
について説明する。信号線712を介してデイジタル符
号化された輝度信号Yを、信号線115を介してランレ
ングスの値を、輝度コード用ビツト編集回路TO6に取
り込み、第1図cに示したビツト編集を行ない、レジス
タ103に書込む。カラーコードによる符号化の場合と
同様に、制御線724(端子R)に制御信号(AND回
路20の出力)がないと、制御線T23(端子S)に加
わるAND回路12の変化点検出信号出力がAND回路
709を介してゲート回路701に加えられ、レジスタ
703の内容が信号線Tl6を介してバツフアメモリ1
4に書き込まれる。最後に、ランレングスがオーバーフ
ローした長ランレングス信号および短ランレングス信号
により中断された長ランレングス信号をランレングスコ
ードにより符号化する場合について説明する。信号線7
15を介してランレングスの値をランレングスコード用
ビツト編集回路707に取り込み第1図dに示したビツ
ト編集を行ない、レジスタ104に書き込む。第2図の
AND回路20のランレングスコード符号化制御信号出
力が制御線724(端子R)に加わると、AND回路T
IOは開かれ、制御線722(端子L)または制衝線T
23(端子S)に加わる変化点検出信号がAND回路7
10を通つてゲート回路701に加えられ、レジスタ7
04の内容が信号線Tl6を介してバツフアメモリ14
に書込まれる。符号化を終了するときは制御回路25よ
り制御線721を介して終了信号がゲート回路701に
加えられ、該ゲート回路が閉じることによつてランレン
グス符号化情報がバツフアメモリ14に書込まれなくな
ることによつて符号化が終わる。
The digitally encoded color signals Y, I, and Q are sent to the color code bit editing circuit 7 via the signal lines Tl2, 7l3, and 7l4, and the run length values are sent to the color code bit editing circuit 7 via the signal line 715.
05, performs the bit editing shown in FIG. Now the control line 724 (terminal R
), if there is no control signal (output of AND circuit 20), the change point detection signal output of 0R circuit 13 (Fig. 2) applied to control line 722 (terminal L) is applied to gate circuit 701 via AND circuit TO8. The contents of register 702 are written to buffer memory 14 via signal line 116. Next, a case will be described in which a short run length signal is encoded using a luminance code. The digitally encoded luminance signal Y is inputted via the signal line 712, and the run length value is inputted via the signal line 115 to the luminance code bit editing circuit TO6, and the bit editing shown in FIG. 1c is carried out. Write to register 103. As in the case of color code encoding, if there is no control signal (output of the AND circuit 20) on the control line 724 (terminal R), the change point detection signal output of the AND circuit 12 applied to the control line T23 (terminal S) is applied to the gate circuit 701 via the AND circuit 709, and the contents of the register 703 are sent to the buffer memory 1 via the signal line Tl6.
Written to 4. Finally, a case will be described in which a long run length signal whose run length overflows and a long run length signal interrupted by a short run length signal are encoded by a run length code. signal line 7
The run length value is taken into the run length code bit editing circuit 707 via the bit editing circuit 15, where the bit editing shown in FIG. When the run-length code encoding control signal output of the AND circuit 20 in FIG. 2 is applied to the control line 724 (terminal R), the AND circuit T
IO is open and the control line 722 (terminal L) or the control line T
23 (terminal S) is applied to the AND circuit 7.
10 to the gate circuit 701 and register 7
The contents of 04 are transferred to the buffer memory 14 via the signal line Tl6.
written to. When the encoding is terminated, a termination signal is applied from the control circuit 25 to the gate circuit 701 via the control line 721, and as the gate circuit is closed, run-length encoded information is no longer written to the buffer memory 14. Encoding ends with .

上述の動作がカラー図形第1図aの各走査線に対して行
なわれ、そのランレングス符号化された情報は順次バツ
フアメモリ14に蓄えられ、1フレーム分の符号化が終
了すると、27のデイジタルメモリ(例えばデイジタル
磁気デイスク)に転送される。このようにして、大容量
デイジタルメモリ27には多数の画面が効率よくランレ
ングス符号化され蓄積されることになる。こへで、第2
図および第4図に従いブランキング期間の取り扱いにつ
いて述べる。
The above-mentioned operation is performed for each scanning line of the color figure FIG. (for example, a digital magnetic disk). In this way, a large number of screens are efficiently run-length encoded and stored in the large-capacity digital memory 27. Here, the second
The handling of the blanking period will be described with reference to FIG.

同期信号発生器2から負極性を有するブランキング信号
BLが0R回路15に加えられると、カウンタ9はりセ
ツトされ、かつBL信号はAND回路26にも加えられ
るためクロツク発振器6からのクロツクパルスはカウン
タ9に伝達されず、カウンタ9の出力は″O”のままで
あり、ランレングス符号器7には信号線715を介して
″O″が入力される。またBL信号は制御線725(端
子B)を介してランレングス符号器7のカラーコード用
ビツト編集回路705にも入力され、ブランキング期間
は、Y,I,Q信号が全て″O″になり、1ワード全て
″O〃の符号がレジスタ702に書込まれる。またBL
信号は制御線725を介してグート回路701にも導か
れており、BL信号が入力されるとゲート回路701を
開き、レジスタTO2の内容を信号線716を介してバ
ツフアメモリ14に書込む。つまり、BL信号が入力さ
れると、1ワード全てが“0゛である符号化情報がバツ
フアメモl月4に書込まれる。次に、デイジタルメモリ
27にランレングス符号化されて記録されているカラー
図形の情報を復号して表示端末に表示する手順について
説明する。
When the blanking signal BL having a negative polarity is applied from the synchronization signal generator 2 to the 0R circuit 15, the counter 9 is reset, and the BL signal is also applied to the AND circuit 26, so that the clock pulse from the clock oscillator 6 is applied to the counter 9. The output of the counter 9 remains at "O", and "O" is input to the run-length encoder 7 via the signal line 715. The BL signal is also input to the color code bit editing circuit 705 of the run-length encoder 7 via the control line 725 (terminal B), and during the blanking period, the Y, I, and Q signals are all "O". , the sign of "O" for all one word is written to the register 702. Also, BL
The signal is also led to the gate circuit 701 via the control line 725, and when the BL signal is input, the gate circuit 701 is opened and the contents of the register TO2 are written to the buffer memory 14 via the signal line 716. In other words, when the BL signal is input, coded information in which all one word is "0" is written to the buffer memory 14.Next, the color code that is run-length coded and recorded in the digital memory 27 is written to the buffer memory 27. A procedure for decoding graphic information and displaying it on a display terminal will be explained.

第5図はこの場合の一実施例である。図において、30
のバツフアメモリは、デイジタルメモリ27から1フレ
ーム分のランレングス符号化された情報を読取り記憶し
ている。このバツフアメモリ30に記憶されたランレン
グス符号化情報は31の読出し制御回路により読取られ
、上位2ビツトが″00”であれば、該情報が32のカ
ラーコード解読回路で解読さへ“00″に続く6ビツト
は33のデイジタルーアナログ変換器に送出されると共
に、次の1バイトで構成されるランレングスビツトは0
R回路34を介して35のカウンタに送出される。上位
2ビツトが″01〃であれば、36の輝度コード解読回
路で該情報が解読され、″01″に読く輝度Yを表わす
2ビツトは37のデイジタルーアナログ変換器に送出さ
れると共に、1バイトの中の残りの4ビツトで構成され
るランレングスビツトは0R回路34を介してカウンタ
35に送出される。上位1ビツトが″1″であれば、4
2のランレングスコード解読回路で、該情報が解読され
、次の7ビツトで構成されるランレングスビツトは0R
回路34を介してカウンタ35に送出される。カウンタ
35はダウンカウンタであり、ランレングスビツトで表
わされる値に初期設定し、38のクロツク発振器からク
ロツクパルスが入力される毎に1ずつ減少させ、39の
零検出回路で“0゛を確認するまでデイジタルーアナロ
グ変換器33あるいは37の出力を一定値に保持する。
尚、デイジタルーアナログ変換器37のI,Qの出力は
常に0Vである。デイジタルーアナログ変換器33,3
Tの出力はゲート回路43に入力され、カラーコード解
読回路32およびランレングスコード解読回路42に出
力が生じた場合は、アナログーデイジタル変換器33の
出力を、輝度コード解読回路36に出力が生じた場合は
アナログーデイジタル変換器37の出力を、カラーエン
コーダ41に送出する。零検出回路39に出力が生じる
と、この出力は0R回路40を介して読出し制御回路3
1に加えられ、バツフアメモリ30より次の情報を読取
り上述の手順を1フレーム分の復号が完了するまで繰り
返えす。
FIG. 5 shows an example of this case. In the figure, 30
The buffer memory reads and stores one frame's worth of run-length encoded information from the digital memory 27. The run length encoded information stored in the buffer memory 30 is read by the read control circuit 31, and if the upper two bits are "00", the information is decoded by the color code decoding circuit 32 and becomes "00". The next 6 bits are sent to 33 digital-to-analog converters, and the run length bits consisting of the next byte are 0.
It is sent to counter 35 via R circuit 34. If the upper 2 bits are "01", the information is decoded by the luminance code decoding circuit 36, and the 2 bits representing the luminance Y read as "01" are sent to the digital-to-analog converter 37. The run length bit consisting of the remaining 4 bits in 1 byte is sent to the counter 35 via the 0R circuit 34. If the upper 1 bit is "1", the run length bit is 4 bits.
The information is decoded by the run length code decoding circuit No. 2, and the next run length bit consisting of 7 bits is 0R.
It is sent to a counter 35 via a circuit 34. The counter 35 is a down counter, which is initially set to a value represented by a run length bit, and is decremented by 1 each time a clock pulse is input from the clock oscillator 38 until the zero detection circuit 39 confirms "0". The output of the digital-to-analog converter 33 or 37 is held at a constant value.
Note that the I and Q outputs of the digital-to-analog converter 37 are always 0V. Digital to analog converter 33,3
The output of T is input to the gate circuit 43, and when the output is generated to the color code decoding circuit 32 and the run length code decoding circuit 42, the output of the analog-digital converter 33 is input to the luminance code decoding circuit 36. If so, the output of the analog-to-digital converter 37 is sent to the color encoder 41. When an output is generated in the zero detection circuit 39, this output is sent to the readout control circuit 3 via the 0R circuit 40.
1, the next information is read from the buffer memory 30, and the above procedure is repeated until decoding for one frame is completed.

カラーエンコーダ41は、Y,I,Q信号を入力とし、
カラー複合映像信号(例えばNTSCカラー信号)を出
力する。
The color encoder 41 receives Y, I, and Q signals as input,
A color composite video signal (eg, NTSC color signal) is output.

カラーエンコーダ41は44の同期信号発生器の出力信
号で駆動されている。ここでは、同期信号発生器44は
クロツク発振器38に同期させているが、非同期でもよ
い。カラーエンコーダ41の出力信号であるカラー複合
映像信号は47のリフレツシユメモリに記録され、繰り
返し再生することにより、48の表示端末をリフレツシ
ユする。次に、ブランキング(BL)期間の復号化につ
いて述べる。
The color encoder 41 is driven by the output signal of 44 synchronizing signal generators. Here, the synchronization signal generator 44 is synchronized with the clock oscillator 38, but it may be asynchronous. The color composite video signal, which is the output signal of the color encoder 41, is recorded in a refresh memory 47, and is repeatedly reproduced to refresh the display terminal 48. Next, decoding during the blanking (BL) period will be described.

45はブランキング情報解読回路で、1ワード全て″0
〃であるBL情報を解読すると出力が生じる。
45 is a blanking information decoding circuit, and all one word is "0"
Deciphering the BL information that is 〃 produces an output.

この出力はAND回路46に加えられ、同期信号発生器
44よりBL終了信号が入力されると直ちにAND回路
46に出力が生じることが可能となる。この時、カウン
タ35の値は0であり、零検出回路39には出力が生じ
ないため、読出し制御回路31は次の符号化情報をバツ
フアメモリ30より読出すことはない。BL終了信号が
AND回路46に入力されるとAND回路46に出力が
生じる。この信号は0R回路40を介して読出し制御回
路31に入力され、次の走査線のランレングス符号情報
をバツフアメモリ30より読取る。同時に、0R回路4
0の出力はブランキング情報解読回路45に入力され、
その出力を″0″にする。ブランキング期間を挿入する
他の方法は、符号化の段階ではBL情報を挿入せず、復
号化の段階でランレングスをカウントし、ある値(1水
平走査期間)になるとBL期間を挿入する方法等がある
が、何れの方法を用いても、本発明の範囲を逸脱するも
のではない。
This output is applied to the AND circuit 46, and as soon as the BL end signal is input from the synchronization signal generator 44, an output can be generated in the AND circuit 46. At this time, the value of the counter 35 is 0 and no output is generated in the zero detection circuit 39, so the read control circuit 31 does not read the next encoded information from the buffer memory 30. When the BL end signal is input to the AND circuit 46, an output is generated from the AND circuit 46. This signal is input to the read control circuit 31 via the 0R circuit 40, and the run length code information of the next scanning line is read from the buffer memory 30. At the same time, 0R circuit 4
The output of 0 is input to the blanking information decoding circuit 45,
Set the output to "0". Another method of inserting a blanking period is to not insert BL information at the encoding stage, count the run length at the decoding stage, and insert a BL period when a certain value (one horizontal scanning period) is reached. However, any method used does not depart from the scope of the present invention.

実施例では、デイジタル符号化された情報をデイジタル
メモリ(図形フアイル装置)に記録する場合について述
べたが、勿論、本発明はデイジタル伝送路を使つて画像
を伝送する場合の帯域圧縮符号化法としても適用でき、
この場合は1バイト単位で取り扱う必要はなく、任意の
ビツト構成でランレングス符号化することができる。
In the embodiment, a case has been described in which digitally encoded information is recorded in a digital memory (graphic file device), but of course the present invention is also applicable as a band compression encoding method when transmitting an image using a digital transmission path. can also be applied,
In this case, it is not necessary to treat data in units of bytes, and run-length encoding can be performed with any bit configuration.

以上説明したように本発明によれば、短ランレングスの
画像信号についてはランレングスと輝度信号のみを符号
化し、長ランレングスの画像信号についてはランレング
スが固定長符号で符号化できる範囲内の場合にはランレ
ングスと輝度信号と色度信号を符号化し、ランレングス
が固定長符号で符号化できる範囲を起えた場合または短
ランレングスの画像信号により中断された場合には画像
信号中の輝度信号及び色度信号を改めて符号化せずにそ
れぞれの場合において残りのランレングスのみを符号化
するようになしたので、従来の個々の画像信号のランレ
ングスのみに注目して短ランレングスの画像信号につい
てはランレングスと輝度信号を符号化し、長ランレング
スの画像信号についてはランレングスと輝度信号と魚度
信号を符号化するようになしたものに比較して、長ラン
レングスの画像信号のうちの固定長符号で符号化できる
範囲を起えたオーバーフロー分、及び短ランレングスの
画像信号により中断された残りの分に関する輝度信号と
色度信号について符号化情報を圧縮でき、効率の良いカ
ラー図形の蓄積や伝送を行なうことができる等の利点が
ある。
As explained above, according to the present invention, for a short run length image signal, only the run length and luminance signal are encoded, and for a long run length image signal, the run length is within the range that can be encoded with a fixed length code. In this case, the run length, luminance signal, and chroma signal are encoded, and if the run length exceeds the range that can be encoded with a fixed length code, or if interrupted by a short run length image signal, the luminance signal in the image signal is encoded. Since only the remaining run lengths are encoded in each case without recoding the signals and chromaticity signals, short run length images can be created by focusing only on the run lengths of individual image signals as in the past. For signals, the run length and luminance signal are encoded, and for the long run length image signal, the run length, luminance signal, and fishiness signal are encoded. It is possible to compress the encoded information for the luminance signal and chroma signal regarding the overflow that occurs in the range that can be encoded by the fixed-length code and the remaining portion that is interrupted by the short run length image signal, making it possible to compress the encoded information for efficient color graphics. It has advantages such as being able to store and transmit information.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図A,b,c,d,eは本発明による符号化方法の
原理説明図、第2図は本発明の方法に用いられる符号化
装置の一実施例の構成図、第3図は無彩色検出回路の一
実施例の構成図、第4図はランレングス符号器の一実施
例の構成図、第5図は本発明の方法に用いられる復号化
装置の一実施例の構成図である。
1A, b, c, d, and e are diagrams explaining the principle of the encoding method according to the present invention, FIG. 2 is a block diagram of an embodiment of the encoding device used in the method of the present invention, and FIG. FIG. 4 is a block diagram of an embodiment of an achromatic color detection circuit, FIG. 4 is a block diagram of an embodiment of a run-length encoder, and FIG. 5 is a block diagram of an embodiment of a decoding device used in the method of the present invention. be.

Claims (1)

【特許請求の範囲】 1 コード識別符号と輝度信号と色度信号とランレング
ス符号とからなるカラーコード、コード識別符号と輝度
信号とランレングス符号とからなる輝度コード、および
コード識別符号とランレングス符号とからなるランレン
グスコードを用い、符号化に際し、カラー図形をラスタ
走査して得られるカラー画像信号を輝度信号と色度信号
とに分離し、輝度または色度の変化を検出して上記カラ
ー画像信号を複数のランレングス信号に分解し、予め設
定したランレングスの基準値を越える長ランレングス信
号についてはカラーコードで符号化し、ランレングスの
基準値以下の短ランレングス信号については輝度コード
で符号化し、ランレングスが非常に長く1つのカラーコ
ードで符号化できない長ランレングス信号についてはカ
ラーコードとランレングスコードの組合せにより符号化
し、また短ランレングス信号により中断された長ランレ
ングス信号の再生起信号については該短ランレングス信
号の輝度コードによる符号化に続いてランレングスのみ
をランレングスコードにより符号化するようにし、復号
化に際し、上記カラーコード、輝度コード、およびラン
レングスコードをコード識別符号により分離解読して、
カラーコードとランレングスコードから長ランレングス
信号を復号化し、輝度コードから短ランレングス信号を
復号化し、それらを合成してカラー画像信号を再生する
ことを特徴とするカラー図形の符号化・復号化方法。 2 カラー図形をラスタ走査して順次カラー画像信号を
得る手段と、該カラー画像信号を輝度信号と色度信号に
分離する手段と、該分離した輝度信号と色度信号をディ
ジタル信号に変換する手段と、該ディジタル信号の変化
を検出しその間のランレングスを計数する手段と、該ラ
ンレングスの計数値を予め設定したランレングスの基準
値と比較してカラー画像信号を該基準値を越える長ラン
レングス信号と該基準値以下の短ランレングス信号に分
解する手段と、長ランレングス信号はコード識別符号と
輝度信号と色度信号とランレングス符号とからなるカラ
ーコードおよびコード識別符号とランレングス符号とか
らなるランレングスコードにより符号化し、また短ラン
レングス信号はコード識別符号と輝度信号とランレング
ス符号とからなる輝度コードにより符号化する手段と、
上記長ランレングス信号のランレングスが1つのカラー
コードにより符号化可能なランレングスの最大値を超過
したことを検出する手段と、短ランレングス信号により
中断された長ランレングス信号を識別する手段とを具備
していることを特徴とするカラー図形の符号化装置。 3 コード識別符号と輝度信号と色度信号とランレング
ス符号とからなるカラーコード、コード識別符号と輝度
信号とランレングス符号とからなる輝度コード、および
コード識別符号とランレングス符号とからなるランレン
グスコードより構成されたカラー図形の符号化情報を、
そのコード識別符号を解読して上記カラーコード、輝度
コード、およびランレングスコードに分離する手段と、
カラーコードを輝度、色度を有する画像信号に復号化す
る手段と、輝度コードを輝度のみを有する画像信号に復
号化する手段と、ランレングスコードをその直前のカラ
ーコードと同一の輝度、色度を有する画像信号に復号化
する手段と、上記画像信号を合成してカラー画像信号を
得る手段とを具備していることを特徴とするカラー図形
の復号化装置。
[Claims] 1. A color code consisting of a code identification code, a luminance signal, a chromaticity signal, and a run-length code, a luminance code consisting of a code identification code, a luminance signal, and a run-length code, and a code identification code and a run-length code. During encoding, a color image signal obtained by raster scanning a color figure is separated into a luminance signal and a chromaticity signal, and changes in luminance or chromaticity are detected to detect the color image signal. The image signal is decomposed into multiple run length signals, and long run length signals that exceed a preset run length reference value are encoded with a color code, and short run length signals that are less than the run length reference value are encoded with a brightness code. A long run length signal whose run length is too long to be encoded with one color code is encoded by a combination of a color code and a run length code, and a long run length signal interrupted by a short run length signal is reproduced. Regarding the signal, after encoding the short run-length signal using the luminance code, only the run length is encoded using the run-length code, and during decoding, the color code, luminance code, and run-length code are code-identified. Separate and decipher by code,
Encoding and decoding of color graphics characterized by decoding long run length signals from color codes and run length codes, decoding short run length signals from luminance codes, and reproducing color image signals by combining them. Method. 2. Means for sequentially obtaining color image signals by raster scanning a color figure, means for separating the color image signal into a luminance signal and chromaticity signal, and means for converting the separated luminance signal and chromaticity signal into digital signals. a means for detecting a change in the digital signal and counting the run length during that time; and comparing the counted value of the run length with a preset run length reference value to determine whether the color image signal has a long run exceeding the reference value. means for decomposing the long run length signal into a length signal and a short run length signal that is less than the reference value; and means for encoding the short run-length signal with a luminance code consisting of a code identification code, a luminance signal, and a run-length code;
means for detecting that the run length of said long run length signal exceeds a maximum run length that can be encoded by one color code; and means for identifying a long run length signal interrupted by a short run length signal. A color graphic encoding device comprising: 3. A color code consisting of a code identification code, a luminance signal, a chromaticity signal, and a run-length code, a luminance code consisting of a code identification code, a luminance signal, and a run-length code, and a run-length code consisting of a code identification code and a run-length code. Encoding information of color figures composed of codes,
means for decoding the code identification code and separating it into the color code, brightness code, and run length code;
means for decoding a color code into an image signal having luminance and chromaticity; means for decoding the luminance code into an image signal having only luminance; 1. A color graphic decoding device comprising: means for decoding an image signal into an image signal having an image signal; and means for synthesizing the image signals to obtain a color image signal.
JP52001796A 1977-01-11 1977-01-11 Color figure encoding/decoding method and device Expired JPS5916464B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52001796A JPS5916464B2 (en) 1977-01-11 1977-01-11 Color figure encoding/decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52001796A JPS5916464B2 (en) 1977-01-11 1977-01-11 Color figure encoding/decoding method and device

Publications (2)

Publication Number Publication Date
JPS5387121A JPS5387121A (en) 1978-08-01
JPS5916464B2 true JPS5916464B2 (en) 1984-04-16

Family

ID=11511523

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52001796A Expired JPS5916464B2 (en) 1977-01-11 1977-01-11 Color figure encoding/decoding method and device

Country Status (1)

Country Link
JP (1) JPS5916464B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5521603A (en) * 1978-08-02 1980-02-15 Hitachi Ltd Coding system of color diagram
JPS5682277A (en) * 1979-12-08 1981-07-04 Ricoh Co Ltd Driving method of heat sensitive recording head for color print
JPH0683357B2 (en) * 1983-03-17 1994-10-19 キヤノン株式会社 Image processing method
JPS621373A (en) * 1985-06-27 1987-01-07 Toshiba Corp Picture encoding system
CN1116455A (en) * 1993-11-18 1996-02-07 世嘉企业股份有限公司 Data compression method, image data storage, compressed data expansion method and device

Also Published As

Publication number Publication date
JPS5387121A (en) 1978-08-01

Similar Documents

Publication Publication Date Title
US5038202A (en) Image transmission system
US6771830B2 (en) Differential pulse code modulation image compression with varying levels of quantizers
US4868764A (en) Image encoding and decoding method and apparatus
JPH03500599A (en) Apparatus and method for compressing and decompressing digital color video data
EP0711487A1 (en) A method for specifying a video window's boundary coordinates to partition a video signal and compress its components
CA2204219C (en) Video transcoding with interim encoding format
EP0581594B1 (en) Display controlling apparatus
JPS61112485A (en) Method and device for video data recording and reproduction
KR100309359B1 (en) Encoding and Decoding Stations of Image Signals and Television Transceivers, Storage Media and Video Recorders
WO1995033336A1 (en) High resolution digital screen recorder and method
KR960020533A (en) Compression extension method of video information and video signal processing device
US20030235339A1 (en) Method and apparatus for differentially compressing images
JPS5916464B2 (en) Color figure encoding/decoding method and device
JP3231800B2 (en) Image encoding apparatus and image encoding method
US4271431A (en) Scan converter utilizing discrete differentially coded signals
NZ228806A (en) Decompression of run length and colour encoded video data
JPH02504099A (en) Color video data compression method and its system
KR930702862A (en) Coders and decoders for digital transmission and / or recording of color-coded color television signals by component
JP2925043B2 (en) Data decompression device
JPS5821985A (en) Transmitting and displaying system of picture information
JPS5840989A (en) Coding processing method and transmission controlling method of picture information
JPS5947914B2 (en) Color image encoding processing method
JPS62283776A (en) Color image input/output device
JPH02134074A (en) Compression and expansion device for character picture data
JPH0463064A (en) Hybrid picture encoding and decoding device