JPH07250254A - Method and device for compressing signal - Google Patents

Method and device for compressing signal

Info

Publication number
JPH07250254A
JPH07250254A JP6041618A JP4161894A JPH07250254A JP H07250254 A JPH07250254 A JP H07250254A JP 6041618 A JP6041618 A JP 6041618A JP 4161894 A JP4161894 A JP 4161894A JP H07250254 A JPH07250254 A JP H07250254A
Authority
JP
Japan
Prior art keywords
signal
input
bits
input signal
output
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.)
Pending
Application number
JP6041618A
Other languages
Japanese (ja)
Inventor
Hiroshi Suzuki
宏 鈴木
Yasuhiro Wada
康弘 和田
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 JP6041618A priority Critical patent/JPH07250254A/en
Publication of JPH07250254A publication Critical patent/JPH07250254A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To provide a method and device for compressing signal with which the number of bits in the data of chrominance signals can be reduced, further, gradations can be made multiple, and the capacity of a data memory corresponding to this number of gradations can be decreased. CONSTITUTION:When respective input signals 101, 102 and 103 to which numbers up to the third order are applied are composed of three bits and provided with five kinds of values, the respective input signals 101, 102 and 103 are handled as quinary numeral, and the second input signal 102 is increased five-fold by a multiplier 104. Then, the first input signal 101 and an intermediate signal 105 as the multiplied result of the second input signal 102 are added to each other by an adder 106, the third input signal 103 is added to this added result, and a resultant output signal 108 of eight bits is outputted.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、多値階調の出力デバイ
スへの入力信号のデータを圧縮する信号圧縮方法および
信号圧縮装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a signal compression method and a signal compression apparatus for compressing data of an input signal to an output device of multi-value gradation.

【0002】[0002]

【従来の技術】多くの階調表現ができない出力デバイス
においては、いろいろな手法で階調間を補い、視覚的な
多階調化を行う。
2. Description of the Related Art In an output device that cannot express many gradations, various methods are used to compensate for the gradations so that a visual gradation can be obtained.

【0003】ディスプレイで表示している色の数は16
色から256色程度で、自然の色合いに比べると少な
い。しかし、ディスプレイ上の狭い範囲(画素の集ま
り)は十分遠くから見ると各画素の色が混じったように
見えるため、その範囲内の画素の色を平均化した色にな
り、視覚的には本来のディスプレイで表現できる階調以
上の色が表現でき、階調が増えたように見える。この原
理を応用したものの一つがディザリングである。
The number of colors displayed on the display is 16
From 256 colors to less than natural colors. However, the narrow range (collection of pixels) on the display appears to be a mixture of the colors of each pixel when viewed from a sufficient distance, so the colors of the pixels within that range are averaged, and visually It is possible to express more colors than the gradation can be displayed on the display, and it seems that the gradation has increased. One of the applications of this principle is dithering.

【0004】図6に、白黒(0,1)の2値しか扱えな
い出力デバイスに用いられる2値のディザリング法の概
念を示す。図6中の、301は入力信号、302はディ
ザマトリクス、303は出力信号である。また、入力信
号301およびディザマトリクス302のマトリクス
は、出力デバイスの1ピクセルに対応していて、中の数
字は各ピクセルにおけるデータの階調である。入力信号
301は入力手段から入力された信号で、通常0から使
用ソフトなどに制限される最大色数までの階調を持ちえ
る。ディザマトリクス302は、0から入力信号301
のもてる最大階調までの値を持ち、あるパターンを持っ
ている。入力信号301を、ディザマトリクス302と
比較し、各ピクセルにおいて入力信号301の方が大き
ければ1を小さければ0を出力し、0,1の2値しか持
たない出力信号303を得る。この出力信号303は、
十分に遠くから見ることにより、滑らかな階調変化とな
って表れる。
FIG. 6 shows a concept of a binary dithering method used for an output device which can handle only binary values of black and white (0, 1). In FIG. 6, 301 is an input signal, 302 is a dither matrix, and 303 is an output signal. Further, the matrix of the input signal 301 and the matrix of the dither matrix 302 corresponds to one pixel of the output device, and the number in the inside is the gradation of the data in each pixel. The input signal 301 is a signal input from the input means, and can normally have gradations from 0 to the maximum number of colors limited by the software used. The dither matrix 302 is from 0 to the input signal 301.
It has a value up to the maximum gradation and has a certain pattern. The input signal 301 is compared with the dither matrix 302, and if the input signal 301 is larger in each pixel, 1 is output, and 0 is output, and an output signal 303 having only two values of 0 and 1 is obtained. This output signal 303 is
When viewed from a sufficient distance, a smooth gradation change appears.

【0005】次に、多値のディザリング法を図7に示
す。図7中の、401はmビットの入力信号、402は
入力信号401の上位nビットからなる上位信号、40
3は入力信号401の下位(m−n)ビットからなる下
位信号、404は(m−n)ビットのディザマトリク
ス、405はディザマトリクス404と下位信号403
との比較装置、406は比較装置405から出力された
比較結果、407は上位信号402と比較結果406の
加算装置、408は加算装置407からの出力信号を示
す。まず、mビットの入力信号401を、必要な階調数
(2n +1)に合わせて、上位信号402(nビット)
と下位信号403(m−nビット)に分ける。下位信号
403の(m−n)ビットに対して、ディザマトリクス
404を用い比較装置405で図6に示した2値のディ
ザリングを行い、1ビットの比較結果406(0または
1)を得る。加算装置407で、上位信号402のnビ
ットに比較結果406の1ビットを加算することによ
り、出力信号408の生成を行う。このとき、上位信号
402がnビットで2n 値を持ち比較結果406は1ビ
ットで0または1であるので、出力信号408は(n+
1)ビットで(2n +1)値を持つことができる。そこ
でこのディザリングを、(2n +1)階調のディザリン
グという。また、ディザリングは、下位信号403の
(m−n)ビットのデータが比較結果406の1ビット
になるため、mビットの入力信号401に対し(n+
1)ビットの出力信号が得られるデータ圧縮になる。
Next, FIG. 7 shows a multi-valued dithering method. In FIG. 7, 401 is an m-bit input signal, 402 is a higher-order signal composed of higher-order n bits of the input signal 401, 40
3 is a lower signal composed of lower (mn) bits of the input signal 401, 404 is a (m-n) bit dither matrix, 405 is a dither matrix 404 and lower signal 403.
And 406, a comparison result output from the comparison device 405, 407 an addition device for the higher-level signal 402 and the comparison result 406, and 408 an output signal from the addition device 407. First, the m-bit input signal 401 is adjusted to the required number of gray levels (2 n +1), and the upper signal 402 (n bits)
And lower-order signal 403 (mn bits). For the (mn) bits of the lower signal 403, the dither matrix 404 is used to perform the binary dithering shown in FIG. 6 by the comparator 405 to obtain a 1-bit comparison result 406 (0 or 1). The adder 407 generates the output signal 408 by adding 1 bit of the comparison result 406 to n bits of the higher-order signal 402. At this time, since the higher-order signal 402 has n bits and 2 n values and the comparison result 406 is 1-bit 0 or 1, the output signal 408 is (n +
It can have (2 n +1) values in 1) bits. Therefore, this dithering is referred to as (2 n +1) gradation dithering. Further, in dithering, since (m−n) -bit data of the lower signal 403 becomes 1 bit of the comparison result 406, (n +) is applied to the m-bit input signal 401.
1) The data is compressed to obtain a bit output signal.

【0006】上記のようにして得られた出力信号は、8
ビット(一般に8ビットを1バイトと表現する)の整数
倍(8,16,32ビットなど)単位で取り扱われる。
図8に、ディザリングより得られた色情報信号を出力デ
バイスへ出力する従来例を示す。ここで、ディザリング
より得られる色情報は、赤緑青(以後それぞれをRGB
と称す)に分解されたものである。図中の501,50
2,503はそれぞれR,G,Bの各入力信号を示し、
504は出力信号を示す。従来の方法では、入力信号5
01,502,503を各2ビットで与え、それらを合
わせて合計6ビットの出力信号504を出力デバイスに
与えていた。つまり、三種類の2ビット信号を用いるこ
とにより、出力信号を1バイト内の信号とし、RGB各
3値の階調を用いて階調表現を行ってきた。
The output signal obtained as described above is 8
It is handled in units of integer multiples (8, 16, 32 bits, etc.) of bits (generally expressing 8 bits as 1 byte).
FIG. 8 shows a conventional example in which a color information signal obtained by dithering is output to an output device. Here, the color information obtained by dithering is red, green, blue (hereinafter, RGB
It is decomposed into. 501,50 in the figure
Reference numerals 2, 503 denote R, G, B input signals,
Reference numeral 504 indicates an output signal. In the conventional method, the input signal 5
01, 502, and 503 are given by 2 bits each, and a total of 6 bits of output signal 504 is given to the output device. That is, by using three types of 2-bit signals, the output signal is a signal in one byte, and gradation expression is performed using gradations of each of the RGB three values.

【0007】別の方法としては、RGB各3ビット以上
の入力信号を用い、2バイト以上にまたがる出力信号を
生成することが考えられる。これは、多くのメモリを必
要とし、8ビットのデータバスの場合2度以上のアクセ
スが必要となり、信号数によっては無駄なメモリを多く
含むというデメリットがある。
As another method, it is conceivable to use an input signal of 3 bits or more for each of RGB and generate an output signal extending over 2 bytes or more. This requires a large amount of memory, requires two or more accesses in the case of an 8-bit data bus, and has the disadvantage of including a large amount of wasted memory depending on the number of signals.

【0008】[0008]

【発明が解決しようとする課題】上記に示したように、
従来は多値の階調表現ができ階調数の多い出力デバイス
に対しても、色信号に対するデータのビット数を少なく
するために、ディザリングによって、RGBの3種類の
色信号の階調を各2ビット(3値)の合計6ビットで表
現していた。つまり、色信号のデータを1バイト内のデ
ータにして、少ない階調(各色2ビットの3値)を用い
ての階調表現を行ってきた。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention As shown above,
Conventionally, even for an output device capable of multi-valued gradation expression and having a large number of gradations, in order to reduce the number of bits of data for a color signal, the gradations of three types of RGB color signals are dithered. It was represented by a total of 6 bits of 2 bits (3 values). That is, the data of the color signal is converted into the data within 1 byte, and the gradation expression is performed using a small number of gradations (3 values of 2 bits for each color).

【0009】また逆に、多値階調の出力デバイスに対し
て、色信号を従来より多い各3ビット以上のデータとし
て与えようとする場合には、このデータが1バイトを超
えてしまい、データのアクセスに倍の手間がかかるう
え、色信号データ用としてより多くのメモリ量が必要と
なるという問題点があった。
On the other hand, when it is attempted to give a color signal to the multi-value gradation output device as data of 3 bits or more, which is larger than in the conventional case, the data exceeds 1 byte, and However, there is a problem in that it requires twice as much time to access and requires a larger amount of memory for color signal data.

【0010】本発明は、上記の問題点を解決し、多値の
階調表現ができる出力デバイスに対して、この出力デバ
イスに対応したビット数の多い階調で表現される色信号
を、このデータのビット数を少なくしたうえで与えるこ
とができ、出力デバイスにおいて豊かな階調表現がで
き、また、階調数に対する色信号データ用のメモリ量を
従来に比べて減少させることができる信号圧縮方法およ
び信号圧縮装置を提供することを目的とする。
The present invention solves the above-mentioned problems, and provides an output device capable of multi-value gradation expression with a color signal represented by gradation having a large number of bits corresponding to the output device. Signal compression that can be given after reducing the number of bits of data, rich gradation expression can be performed in the output device, and the amount of memory for color signal data with respect to the number of gradations can be reduced compared to the conventional method. It is an object to provide a method and a signal compression device.

【0011】[0011]

【課題を解決するための手段】上記の目的を達成するた
めに、本発明の信号圧縮方法に基づく信号圧縮装置は、
m(m=正の整数)ビットの信号がそれぞれ入力され、
q(q=正の整数)までの番号が与えられた複数の入力
手段と、前記mビットの信号の種類数がn(n=正の整
数、n<2m )である場合に、前記複数の入力手段の各
入力手段に対応して、入力された前記mビットの信号を
それぞれnp (p=q−1)倍する乗算手段と、前記各
入力手段に対応して前記乗算手段から出力された各信号
を加算する加算手段とを有し、前記各入力手段を、この
各入力手段に入力される前記mビットの信号をn進数と
して扱うよう構成する。
In order to achieve the above object, a signal compression apparatus based on the signal compression method of the present invention comprises:
m (m = positive integer) bit signals are input respectively,
a plurality of input means given numbers up to q (q = a positive integer), and the number of types of the m-bit signal is n (n = a positive integer, n <2 m ) Corresponding to each input means of the input means, multiplying means for multiplying the input m-bit signal by n p (p = q−1), and output from the multiplying means corresponding to each input means. And adding means for adding each of the generated signals, and each of the input means is configured to handle the m-bit signal input to each of the input means as an n-ary number.

【0012】[0012]

【作用】以上の構成によると、q(q=正の整数)まで
の番号が与えられた入力信号の各信号が、mビットで構
成され種類数がn(n=正の整数、n<2m )である場
合には、入力信号に対して各信号をn進数として扱い、
入力信号の各信号ごとに、信号の番号に対応して、この
信号にそれぞれnp (p=q−1)を乗算する。入力信
号の各信号ごとの乗算結果を加算して出力する。以上に
より、出力信号として入力信号のビット数を圧縮して出
力する。
According to the above configuration, each signal of the input signals given numbers up to q (q = positive integer) is composed of m bits and the number of types is n (n = positive integer, n <2. m ), treat each signal as an n-ary number with respect to the input signal,
For each signal of the input signal, this signal is multiplied by n p (p = q−1) corresponding to the signal number. The multiplication result of each signal of the input signal is added and output. As described above, the number of bits of the input signal is compressed and output as the output signal.

【0013】[0013]

【実施例】以下、本発明の一実施例の信号圧縮方法に基
づく信号圧縮装置について、図を参照しながら説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A signal compression apparatus based on a signal compression method according to an embodiment of the present invention will be described below with reference to the drawings.

【0014】図1は本実施例の信号圧縮方法に基づく信
号圧縮装置の構成図である。図中の101,102,1
03は、それぞれ入力手段としての入力端子A,B,C
に入力された入力信号(R信号,G信号,B信号)、1
04は乗算手段としての乗算装置、105は乗算装置1
04より出力される中間信号、106は加算手段として
の加算装置、107は加算装置106から出力される中
間信号、108は最終的な出力信号を示す。入力信号
(R信号,G信号,B信号)101,102,103
は、図7に示すディザリングを施した後の信号であり、
従来例で示したように(n+1)ビットのとき(2n
1)値を持つことができる。つまり、入力信号101,
102,103は、従来より信号数を増やした3ビット
を用いるので、0から4までの5値を持っている。
FIG. 1 is a block diagram of a signal compression apparatus based on the signal compression method of this embodiment. 101, 102, 1 in the figure
Reference numeral 03 designates input terminals A, B, C as input means, respectively.
Input signals (R signal, G signal, B signal) input to 1
Reference numeral 04 is a multiplication device as multiplication means, and 105 is a multiplication device 1.
The intermediate signal output from 04, 106 is an adding device as an adding unit, 107 is an intermediate signal output from the adding device 106, and 108 is a final output signal. Input signals (R signal, G signal, B signal) 101, 102, 103
Is the signal after the dithering shown in FIG.
As shown in the conventional example, when there are (n + 1) bits, (2 n +
1) Can have a value. That is, the input signal 101,
Since 102 and 103 use 3 bits in which the number of signals is increased from the conventional one, they have 5 values from 0 to 4.

【0015】ここで、R信号,G信号,B信号の各入力
信号が5値しか持たないことを利用する。通常、3ビッ
トの信号は、0から7までの8値を持つことができるの
で、0から4までの5値しか持たないデータを扱うには
無駄が生じる。
Here, it is used that each input signal of R signal, G signal, and B signal has only five values. Normally, a 3-bit signal can have 8 values from 0 to 7, so there is waste in handling data having only 5 values from 0 to 4.

【0016】そこで、8進法ではなく5進法としてデー
タを考慮することにより、メモリ量の減少が実施でき
る。つまり、図1に示す実施例においては、入力信号1
01を5進法の1桁目、入力信号102を5進法の2桁
目と考えて、入力信号102を乗算装置104を用いて
5倍(×5)する。この乗算装置104の内部構成を図
2に示す。
Therefore, the memory amount can be reduced by considering the data as a quinary system instead of an octal system. That is, in the embodiment shown in FIG.
Considering 01 as the first digit of the quinary system and the input signal 102 as the second digit of the quinary system, the input signal 102 is multiplied by 5 (× 5) using the multiplication device 104. The internal configuration of the multiplication device 104 is shown in FIG.

【0017】図2において、201は乗算装置104へ
の入力信号(図1の入力信号102)、202はシフト
装置、203はシフト装置202から出力される中間信
号、204は加算装置、205は乗算装置104からの
出力信号(図1の中間信号105)を示す。シフト装置
202で、入力信号201(0,1,2,3,4の5
値)を2ビットシフト(2bit shift)するこ
とにより、入力信号201を4倍(×4)した中間信号
203(0,4,8,12,16の5値)を得る。次
に、加算装置204で、この中間信号203に入力信号
201を加算し、入力信号201を5倍した出力信号2
05(0,5,10,15,20の5値)を得る。この
ようにして、図1の中間信号105を得る。
In FIG. 2, 201 is an input signal to the multiplication device 104 (input signal 102 in FIG. 1), 202 is a shift device, 203 is an intermediate signal output from the shift device 202, 204 is an addition device, and 205 is multiplication. The output signal from the device 104 (the intermediate signal 105 in FIG. 1) is shown. In the shift device 202, the input signal 201 (5 of 0, 1, 2, 3, 4
By shifting the value) by 2 bits (2 bit shift), an intermediate signal 203 (five values of 0, 4, 8, 12, 16) obtained by quadrupling (× 4) the input signal 201 is obtained. Next, the adder 204 adds the input signal 201 to the intermediate signal 203 and outputs the output signal 2 obtained by multiplying the input signal 201 by five.
05 (5 values of 0, 5, 10, 15, 20) is obtained. In this way, the intermediate signal 105 of FIG. 1 is obtained.

【0018】図1において、加算装置106で、上記の
中間信号105に入力信号101を加算し、中間信号1
07を得る。ここで得られる中間信号107の組み合わ
せを図3に示す。図3の縦は入力信号101、横の上段
は入力信号102、横の下段は中間信号105の値を示
す。ここで見られるように、中間信号107は0から2
4までの整数値となり、入力信号101および入力信号
102の全ての組合せが5ビット(0〜32)で表現さ
れるようになる。この5ビットの中間信号107に3ビ
ットの入力信号103をあわせて8ビット(1バイト)
となる。
In FIG. 1, the adder 106 adds the input signal 101 to the intermediate signal 105 and outputs the intermediate signal 1
I get 07. The combination of the intermediate signals 107 obtained here is shown in FIG. In FIG. 3, the vertical axis represents the input signal 101, the horizontal upper row represents the input signal 102, and the horizontal lower row represents the intermediate signal 105. As can be seen here, the intermediate signal 107 is 0 to 2
It becomes an integer value up to 4, and all combinations of the input signal 101 and the input signal 102 are represented by 5 bits (0 to 32). This 5-bit intermediate signal 107 and 3-bit input signal 103 are combined to make 8 bits (1 byte).
Becomes

【0019】以上の方法により、出力信号として、入力
信号のビット数を圧縮して出力することができ、従来に
比べてより多いビット数の色信号のデータでも8ビット
(1バイト)内のデータにして、多値階調の出力デバイ
スに与えることができる。そのため、出力デバイスにお
いて豊かな階調表現ができる。また、階調数に対する色
信号データ用のメモリ量を従来に比べて減少させること
ができる。
By the above method, the number of bits of the input signal can be compressed and output as the output signal, and even if the color signal data has a larger number of bits than the conventional one, the data within 8 bits (1 byte). Then, it can be applied to an output device having multi-value gradation. Therefore, rich gradation expression can be performed in the output device. Further, the amount of memory for color signal data with respect to the number of gradations can be reduced as compared with the conventional case.

【0020】上記の実施例では、8ビット(1バイト)
内のデータとするための回路を組んでいるが、図4に示
すように、上記の実施例を発展させた発展型も実施でき
る。図4は信号圧縮装置を直列に組んだ場合の回路図で
ある。図4の701から704はそれぞれ1番目からq
番目の入力信号、705から707はそれぞれの入力信
号に対応した乗算装置、708から710はそれぞれ加
算装置、711は出力信号を示す。
In the above embodiment, 8 bits (1 byte)
However, as shown in FIG. 4, it is also possible to implement a development type obtained by developing the above embodiment. FIG. 4 is a circuit diagram when the signal compression devices are assembled in series. 701 to 704 in FIG. 4 are the first to q
Th input signal, 705 to 707 are multiplication devices corresponding to the respective input signals, 708 to 710 are addition devices, and 711 is an output signal.

【0021】入力信号701から入力信号704はそれ
ぞれmビットのデータ巾を持ち、使用されるデータはm
ビットのデータ巾で表現できる全ての種類の数より未満
の種類の数(n種類)しか持たない。また、乗算装置7
05から乗算装置707は、それぞれの入力信号に、入
力信号の番号より一つ小さい数だけnを自乗した分の乗
算をする。ここで、q−1をpとすると、q番目の入力
信号704に対応する乗算装置707は、入力信号70
4をnp 倍(×np )する乗算回路となる。その結果、
入力信号702は乗算装置705でn倍(×n1 =×
n)され演算結果は加算装置709への入力であるの
で、この結果と入力信号703、乗算装置706、加算
装置709を用いて前述の演算が行われる。つまり、入
力信号701をn進数の1桁目、入力信号702をn進
数の2桁目、と続き入力信号704をn進数のq桁目と
して出力信号711が得られる。
Each of the input signals 701 to 704 has a data width of m bits, and the data used is m
The number of types (n types) is less than the number of all types that can be represented by the data width of bits. Also, the multiplication device 7
From 05, the multiplication device 707 multiplies each input signal by the power of n squared by one less than the number of the input signal. Here, when q−1 is p, the multiplication device 707 corresponding to the qth input signal 704 is
4 becomes n p times (× n p ). as a result,
The input signal 702 is multiplied by n in the multiplier 705 (× n 1 = ×
Since n) the calculated result is an input to the adder 709, the above-mentioned calculation is performed using this result and the input signal 703, the multiplier 706, and the adder 709. That is, the output signal 711 is obtained with the input signal 701 as the first digit of the n-ary number, the input signal 702 as the second digit of the n-ary number, and the subsequent input signal 704 as the q-th digit of the n-ary number.

【0022】さらに、図5に示すように構成しても図4
と同様なことが実施できる。図5は信号圧縮装置を並列
に組んだ場合の回路図である。図5の801から804
はそれぞれ1番目からq番目の入力信号、805から8
07はそれぞれの入力信号に対応した乗算装置、808
は加算装置、809は出力信号を示す。入力信号801
から入力信号804は、図4の入力信号701から入力
信号704と同様の形式を持つ。また、乗算装置805
から乗算装置807は、図4の乗算装置705から70
7と同様の演算を行う。その結果、入力信号802は乗
算装置805でn倍(×n1 =×n)され、入力信号8
03は乗算装置806でn2 倍(×n2)され、入力信
号804は乗算装置807でnP 倍(×np )される。
これらの演算結果のすべてが加算装置808で加算され
て出力信号809が得られる。この実施例の場合も、図
4の出力信号711と同様に、入力信号801をn進数
の1桁目、入力信号802をn進数の2桁目、入力信号
804をn進数のq桁目として出力信号809が得られ
る。
Further, even if the structure shown in FIG.
The same can be done with. FIG. 5 is a circuit diagram when the signal compression devices are assembled in parallel. 801 to 804 in FIG.
Are the 1st to qth input signals, 805 to 8
Reference numeral 07 denotes a multiplication device corresponding to each input signal, 808
Is an adder, and 809 is an output signal. Input signal 801
To input signal 804 has the same format as input signal 701 to input signal 704 of FIG. Also, the multiplication device 805
From multipliers 807 to multipliers 705 to 70 of FIG.
The same calculation as in 7 is performed. As a result, the input signal 802 is multiplied by n (× n 1 = × n) in the multiplier 805, and the input signal 8
03 is multiplied by n 2 (× n 2 ) by the multiplier 806, and the input signal 804 is multiplied by n P (× n p ) by the multiplier 807.
All of these calculation results are added by the adder 808 to obtain the output signal 809. Also in this embodiment, similarly to the output signal 711 in FIG. 4, the input signal 801 is the first digit of the n-ary number, the input signal 802 is the second digit of the n-ary number, and the input signal 804 is the q-th digit of the n-ary number. The output signal 809 is obtained.

【0023】[0023]

【発明の効果】以上のように本発明によれば、q(q=
正の整数)までの番号が与えられた入力信号の各信号
が、mビットで構成され種類数がn(n=正の整数、n
<2m )である場合には、入力信号に対して各信号をn
進数として扱い、乗算手段により、入力信号の各信号ご
とに、信号の番号に対応して、この信号にそれぞれnp
(p=q−1)を乗算することができる。そして、入力
信号の各信号ごとの乗算結果を加算して出力することが
できる。以上により、出力信号として、入力信号のビッ
ト数を圧縮して出力することができる。
As described above, according to the present invention, q (q =
Each of the input signals given numbers up to a positive integer) is composed of m bits and the number of types is n (n = a positive integer, n
<2 m ), each signal is n
It is treated as a base number, and the multiplication means corresponds to each signal of the input signal by n p corresponding to the signal number.
It can be multiplied by (p = q-1). Then, the multiplication result of each signal of the input signal can be added and output. As described above, the number of bits of the input signal can be compressed and output as the output signal.

【0024】そのため、多値の階調表現ができる出力デ
バイスに対して、この出力デバイスに対応したビット数
の多い階調で表現される色信号を、このデータのビット
数を少なくしたうえで与えることができる。その結果、
出力デバイスにおいて豊かな階調表現ができる。
Therefore, a color signal represented by a gradation having a large number of bits corresponding to this output device is given to an output device capable of expressing a multi-value gradation after reducing the number of bits of this data. be able to. as a result,
Rich gradation expression is possible in the output device.

【0025】また、階調数に対する色信号データ用のメ
モリ量を従来に比べて減少させることができる。
Further, the amount of memory for color signal data with respect to the number of gradations can be reduced as compared with the conventional one.

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

【図1】本発明の一実施例の信号圧縮装置の構成図FIG. 1 is a configuration diagram of a signal compression device according to an embodiment of the present invention.

【図2】同実施例の乗算装置の内部構成図FIG. 2 is an internal configuration diagram of a multiplication device of the same embodiment.

【図3】同実施例の加算装置の動作説明図FIG. 3 is an operation explanatory diagram of the adding device of the embodiment.

【図4】別の実施例の信号圧縮装置の構成図FIG. 4 is a block diagram of a signal compression device according to another embodiment.

【図5】さらに別の実施例の信号圧縮装置の構成図FIG. 5 is a block diagram of a signal compression device according to still another embodiment.

【図6】2値のディザリング法の概念図FIG. 6 is a conceptual diagram of a binary dithering method.

【図7】多値のディザリング法による回路の構成図FIG. 7 is a block diagram of a circuit based on a multivalued dithering method.

【図8】従来のRGB信号の出力方法の説明図FIG. 8 is an explanatory diagram of a conventional RGB signal output method.

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

104 乗算装置 106 加算装置 A,B,C 入力端子 104 Multiplier 106 Adder A, B, C input terminals

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 // G06T 5/00 G06F 15/68 320 A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location // G06T 5/00 G06F 15/68 320 A

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 m(m=正の整数)ビットで構成された
信号で、q(q=正の整数)までの番号が与えられた複
数の信号からなる入力信号に対して、前記mビットで構
成された信号の種類数がn(n=正の整数、n<2m
である場合には、前記入力信号の各信号をn進数として
扱い、前記入力信号の各信号に対応して、この信号にそ
れぞれnp (p=q−1)を乗算し、これらの乗算結果
を加算し、前記加算による信号に基づく出力信号を出力
する信号圧縮方法。
1. A signal composed of m (m = positive integer) bits, wherein the m bits are for an input signal composed of a plurality of signals given numbers up to q (q = positive integer). The number of types of signals configured by is n (n = positive integer, n <2 m ).
, Each signal of the input signal is treated as an n-ary number, each signal of the input signal is multiplied by n p (p = q−1), and the result of the multiplication is calculated. And a signal compression method for outputting an output signal based on the signal obtained by the addition.
【請求項2】 m(m=正の整数)ビットの信号がそれ
ぞれ入力され、q(q=正の整数)までの番号が与えら
れた複数の入力手段と、前記mビットの信号の種類数が
n(n=正の整数、n<2m )である場合に、前記複数
の入力手段の各入力手段に対応して、入力された前記m
ビットの信号をそれぞれnp (p=q−1)倍する乗算
手段と、前記各入力手段に対応して前記乗算手段から出
力された各信号を加算する加算手段とを有し、前記各入
力手段を、この各入力手段に入力される前記mビットの
信号をn進数として扱うよう構成した信号圧縮装置。
2. A plurality of input means to which signals of m (m = positive integer) bits are respectively input and are given numbers up to q (q = positive integer), and the number of kinds of the m-bit signals. Is n (n = positive integer, n <2 m ), the m input corresponding to each input means of the plurality of input means is input.
Each of the input means has multiplication means for multiplying the bit signal by n p (p = q−1) and addition means for adding each signal output from the multiplication means corresponding to each input means. A signal compression device, wherein the means is configured to handle the m-bit signal input to each of the input means as an n-ary number.
JP6041618A 1994-03-14 1994-03-14 Method and device for compressing signal Pending JPH07250254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6041618A JPH07250254A (en) 1994-03-14 1994-03-14 Method and device for compressing signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6041618A JPH07250254A (en) 1994-03-14 1994-03-14 Method and device for compressing signal

Publications (1)

Publication Number Publication Date
JPH07250254A true JPH07250254A (en) 1995-09-26

Family

ID=12613335

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6041618A Pending JPH07250254A (en) 1994-03-14 1994-03-14 Method and device for compressing signal

Country Status (1)

Country Link
JP (1) JPH07250254A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1079600B1 (en) * 1999-08-27 2011-03-02 Canon Kabushiki Kaisha Image processing apparatus and method, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1079600B1 (en) * 1999-08-27 2011-03-02 Canon Kabushiki Kaisha Image processing apparatus and method, and storage medium

Similar Documents

Publication Publication Date Title
US5734369A (en) Method and apparatus for dithering images in a digital display system
US5742405A (en) Method and system for forming multi-level halftone images from an input digital image
US7808510B2 (en) Image processing apparatus, image transmission apparatus, display, image processing method, and image transmission method
KR100258919B1 (en) Dithering circuit and method
JPH09163162A (en) Image processing method and device
US8325387B2 (en) Method and apparatus for dithering a pixel value in image
US8107756B2 (en) Digital image tone remapping method and apparatus
US7623270B2 (en) Method of processing a digital image by means of ordered dithering technique description
US5768425A (en) Method and system for improved threshold based screening
JP3016016B2 (en) Color LCD drive
JPH07250254A (en) Method and device for compressing signal
JP2905106B2 (en) Method of creating threshold matrix and method of binarizing color image
JPH0324673A (en) Method for processing image data
CN100573632C (en) By the method and apparatus of combined error diffusion with another dithering process video data
KR100809348B1 (en) Method and apparatus for modulating sub-pixel in grayscale display
Goldschneider et al. Embedded color error diffusion
JP3576612B2 (en) Color conversion processor
JPH1198343A (en) Image processor and image processing method
KR100304659B1 (en) Method and circuit for color correction
JPH02153676A (en) Halftone processing circuit
JP2868852B2 (en) Binary compression of multi-valued image data
JP2003162713A (en) Device and method for converting color
JP2952329B2 (en) Image processing method
JPH02170192A (en) Image color compressing device
JPH08289164A (en) Color image processing method and device therefor