JPS59152782A - Picture compressing system - Google Patents

Picture compressing system

Info

Publication number
JPS59152782A
JPS59152782A JP2685583A JP2685583A JPS59152782A JP S59152782 A JPS59152782 A JP S59152782A JP 2685583 A JP2685583 A JP 2685583A JP 2685583 A JP2685583 A JP 2685583A JP S59152782 A JPS59152782 A JP S59152782A
Authority
JP
Japan
Prior art keywords
image
pat
partial
memory
dot
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
JP2685583A
Other languages
Japanese (ja)
Inventor
Takayuki Fujita
孝行 藤田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2685583A priority Critical patent/JPS59152782A/en
Publication of JPS59152782A publication Critical patent/JPS59152782A/en
Pending 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
    • H04N1/411Bandwidth or redundancy reduction for the transmission or storage or reproduction of two-tone pictures, e.g. black and white pictures
    • H04N1/413Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information
    • H04N1/415Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information in which the picture-elements are subdivided or grouped into fixed one-dimensional or two-dimensional blocks

Abstract

PURPOSE:To store a picture with less capacity by dividing a picture until dots constituting the divided partial picture become all the identical value and representing the entire picture by the value of the dots constituting the partial picture. CONSTITUTION:A picture 1 of 64-bit constitution is divided into four, partial pictures of 21-24. Since the bits of the partial picture 21 are all ''0'', the partial picture 21 is represented by ''00''. The partial pictures 22-24 are divided further into four to obtain partial pictures 221-224, 231-234 and 241-244. The dot value of the partial pictures is identical except the pictures 223 and 232 and the partial pictures are represented by ''00'' or ''11''. The partial picture 223, 232 are divided further into four and they are represented by the dot ''00'' or ''11'' finally. Thus, the picture 1 of 64-bit constitution is represented by 36-bit and the storage capacity is saved remarkably.

Description

【発明の詳細な説明】 技術分野 本発明は、画像の圧縮に関するものである。[Detailed description of the invention] Technical field The present invention relates to image compression.

従来技術 ]ンピュータで扱う画像は一般にドツトのます目あるい
はマトリックスに分割し表現する。分割された各ます目
は一番単純な方法では黒色と白色に対応させ、情報が0
N(1)であるかOF F(0)であるかをもって表現
する。すなわち従来から画像を記憶する一番単純な方法
としては、各ドツトを1ビツトの記憶に対応させ、各ド
ツトかONかOFFかに応じて対応するビットをON 
(1)かOF F (0)にセットすることにより表現
してきた。この様にしておくと、記憶する画像の内容に
かかわらず画像のドツト数分のビットe3tの記憶を必
要とした。
[Prior art] Images handled by computers are generally expressed by dividing them into dot grids or matrices. In the simplest method, each divided square corresponds to black and white, and the information is 0.
It is expressed by whether it is N(1) or OFF(0). In other words, the simplest method for storing images has traditionally been to associate each dot with one bit of memory, and turn on the corresponding bit depending on whether each dot is ON or OFF.
It has been expressed by setting it to (1) or OF F (0). In this case, regardless of the contents of the image to be stored, it was necessary to store as many bits e3t as the number of dots in the image.

さらにカラー画像の場合であれば1色が8種類使用され
ているとすると、色の番司として0〜7までのイ直を割
伺け、1つのドツトは3ピツ)(o〜7までの値)に対
応させ記憶することができる。
Furthermore, in the case of a color image, if we assume that 8 types of one color are used, as a color manager, you can calculate the numbers from 0 to 7, and one dot is 3 dots) (from o to 7). value).

こうして色を含めた画面全体をドツトの集合として記憶
することができる。この場合も、白色の画像と同様に、
画像の内容にかかわらず、3×(画像のドツト数)分の
ビット数の記憶を必要と′した。しかし白黒の多くの画
像においては、画像のうち、ある部分は、ドツトがすべ
でON (1)でありある部分はドツトがすべてOF 
F (0)である場合が多い。カラー画像の場合には、
ある部分はすべて同じ色となる場合が多い。
In this way, the entire screen including colors can be stored as a collection of dots. In this case, as well as the white image,
Regardless of the content of the image, it is necessary to store the number of bits equal to 3 x (the number of dots in the image). However, in many black and white images, in some parts of the image, all dots are ON (1), and in other parts, all dots are OFF.
F (0) in many cases. For color images,
All parts are often the same color.

目的 本発明の目的は、上述の画像の特徴を生かして、画像を
内容が一定(すべてON又はOFFあるいは同じ色)に
なるまで部分で分割し、そのB1(分画像の集まりとし
て画像全体を記toすることしこより、画像を少ない記
憶容部、で記tQ画像の圧縮力式を提供するものである
Purpose The purpose of the present invention is to divide an image into parts until the contents are constant (all ON or OFF or the same color) by taking advantage of the above-mentioned image characteristics, and to record the entire image as a collection of B1 (partial images). This provides a compressive force formula for tQ images that allows the image to be stored in a smaller storage capacity.

実施例 以下実施例について説明する。Example Examples will be described below.

実施例では画像が2″′×2nのドツトで構成ぎれてい
て、画像は白黒であるとする。
In the embodiment, it is assumed that the image is composed of 2''×2n dots and is black and white.

第1図に画像分割の概念例を示す。ます、画像が一定(
すべてのドツトがON又はOF F)でない時、その画
像を4分割し、(分割されたものを部分画像と呼ぶ)分
割された各部分画像が一定でない時は更に4分割し、一
定になるまでこの部分画像分割をくり返して行き、部分
画像が一定になったとき、その部分画像をON又はOF
Fで表わし記憶する。第1図の場合1部分画像への分割
を111iiJ行うと1ドツトに到辻するから、n回以
内の分割で、必ず一定の部分画像を得ることができる。
FIG. 1 shows an example of the concept of image division. The image is constant (
When all dots are not ON or OFF, the image is divided into 4 parts (the divided images are called partial images).If each divided partial image is not constant, it is further divided into 4 parts, until the dots are constant. This partial image division is repeated, and when the partial image becomes constant, that partial image is turned ON or OFF.
Represent it as F and memorize it. In the case of FIG. 1, if the division into one partial image is performed 111iiJ times, one dot is reached, so a constant partial image can always be obtained by dividing the image up to n times.

さて、画像の情報をpat(n)という形で記述するこ
とを定め、BUF(/<ツカスナウア記法)に準じて、
超記号+1.=l+と″ 1”′を用いて:=゛°の左
辺の画像を右辺の1°゛で区切られているもののうちど
れか1つで表わすことを定め、ある画像pat(n)を
第1式の様に表わすことにする。
Now, we decided to describe the image information in the form pat(n), and according to BUF (/<Tsukasnauer notation),
Super symbol +1. Using =l+ and ``1''', it is determined that the image on the left side of =゛° is represented by one of the images separated by 1°'' on the right side, and a certain image pat(n) is expressed as the first Let us express it as follows.

pat(n)+=Ooffl 0onl 1pat(n
+11)  pat (n+12)pat(n+13)
pat(n+14)−= (1)(但しoff=o、o
n=1) すなわちpat(n)は、すべてoffであるが、すべ
てOnであるか、4分割された4つの部分画像の集合の
いずれかであることを意味する。
pat(n)+=Ooffl 0onl 1pat(n
+11) pat (n+12) pat (n+13)
pat(n+14)−=(1)(off=o, o
n=1) That is, pat(n) means that all are off, all are on, or a set of four partial images divided into four.

第(1)式を実際のビ・ント情報で表現すると第(2)
式のようになる。
Expressing equation (1) using actual bint information, equation (2)
It becomes like the expression.

pat(1) : = 00 l 01 I 1pat
(11:1nat(12)pat(13)pat(14
)         ・・・(2)とすることができる
。即ち最初のピントが0であれば、その部分画像は全ド
ツトが次のビットの0又は1の値を持った一定画像であ
り、最初のビットがlであれば続く4つの部分画像の集
まりにより表現する。
pat (1): = 00 l 01 I 1 pat
(11:1 nat (12) pat (13) pat (14
)...(2) can be done. That is, if the initial focus is 0, the partial image is a constant image in which all dots have the value of 0 or 1 of the next bit, and if the first bit is l, then the partial image is a constant image with the value of 0 or 1 of the next bit. express.

全画像をpat(n)とすると pat(n) = 00とは全画面OFF (白)の像
を意味し、pat(n)=’01とは全画面ON(黒)
の像を意味する。
If the entire image is pat(n), pat(n) = 00 means an image with the entire screen OFF (white), and pat(n) = '01 means an image with the entire screen ON (black).
means a statue of

第2図はドツト数の少ない像の例(ドラ)・数8×8)
である。これを第(1)式を用い、区切りの補助のため
にカッコを導入して表現すると第(3)弐〜第(28)
式のようになる。
Figure 2 is an example of an image with a small number of dots (dragon number 8 x 8)
It is. Expressing this using equation (1) and introducing parentheses to assist in delimiting results in equations (3) 2 to (28).
It becomes like the expression.

pat(1)= 1pat(21)pat(22)  
pat(23)pat(24)・・・ (3) 但し、  pat(21)  = 00       
   ・・・(4)pat(22)  = Ipat(
22+)pa’t(222)pat(223)pat(
224)・・・ (5) pat(22j) −00・・・ (6)pat(22
2) = 00                ・・
・ (7)pat(223’)= Ipat(2231
,)pat(2232)pat(2233)pat(2
234)           ・・・ (8)pat
(2231)= 00              ・
・・ (9)pat(2232)= 01      
       ・・・ (10)pat(2233)=
 01             ・・・ (11)p
at(2234)= 01             
・・・ (12)pat(224)= 00     
           ・・・ (13)pat(23
)  = Ipat(231)pat(232)pat
(233)pat(234)・・・ (14) pat(23+)= 00             
 ・・・ (15)pat(232) −1pat(2
321)pat(2322)pat(2323)pat
(2324)        ・・・ (16)pat
(232+)= 00            −  
(17)pat(2322)= 01        
    −  (18)pat(2323’)= 01
             ・”  (19)pat(
2324)  = 01            ・・
・ (20)pat(233)= 00       
        ・・・ (21)pat(234)=
 01               ・・・ (22
)pat(24)  = 1pat(241)pat(
242)pat(243)pat(244)・・・ (
23) pat(241)= 01             
  ・・・ (24)pat(242)= 00   
            ・・・ (25)pat(2
43)= 01              ・・・ 
(26)pat(244) = 00        
       ・・・ (27)従って、第(3)式は
次のようになる。
pat (1) = 1 pat (21) pat (22)
pat(23) pat(24)... (3) However, pat(21) = 00
...(4) pat(22) = Ipat(
22+) pa't (222) pat (223) pat (
224)... (5) pat(22j) -00... (6) pat(22
2) = 00...
・ (7) pat (223') = Ipat (2231
,) pat (2232) pat (2233) pat (2
234) ... (8) pat
(2231) = 00 ・
... (9) pat (2232) = 01
... (10) pat(2233)=
01...(11)p
at(2234) = 01
... (12) pat (224) = 00
... (13) pat(23
) = Ipat(231)pat(232)pat
(233) pat (234)... (14) pat (23+) = 00
... (15) pat (232) -1 pat (2
321) pat (2322) pat (2323) pat
(2324) ... (16) pat
(232+)=00-
(17) pat(2322) = 01
- (18) pat (2323') = 01
・” (19) pat(
2324) = 01...
・(20)pat(233)=00
... (21) pat (234) =
01... (22
) pat (24) = 1 pat (241) pat (
242) pat (243) pat (244)... (
23) pat(241)=01
... (24) pat (242) = 00
... (25) pat(2
43)=01...
(26) pat(244) = 00
... (27) Therefore, equation (3) becomes as follows.

・・・ (28)−(3) = 100100001000+0101001001
000101010001101000100    
        ・・・ (28)なお、(28) −
(1)〜(28) −(3)の下にカッコで書いである
数字は 上述の各式の番号と対応する。
... (28)-(3) = 100100001000+0101001001
000101010001101000100
... (28) Furthermore, (28) −
The numbers written in parentheses below (1) to (28) - (3) correspond to the numbers in each formula above.

従ってS2図は、従来ならばこれは、8×8=64ビツ
ト必要であったが、実施例に従えば、44ビツトで表現
できる。なおこの効果は、画面のドツト数が大きくなる
とより大きくなる。
Therefore, although diagram S2 conventionally required 8×8=64 bits, it can be expressed using 44 bits according to the embodiment. Note that this effect becomes greater as the number of dots on the screen increases.

第3図はメモリの節約の効果がより大となる表現方法で
ある。扱う画像は第1図と同じ2n×2nの白黒モデル
である。ここでは最終分割画像をp a、 tとして次
のように定める。
FIG. 3 shows an expression method that is more effective in saving memory. The image to be handled is the same 2n x 2n black and white model as in FIG. Here, the final divided images are defined as p a, t as follows.

pat(i+1):=OOl 01 l 1pat(i
)pat(i)pat(i)pat(i)      
  ・・・(29)但し、i=0.1 、・・・、n−
1 patO:=Ol ]           ・= (
30)即ち分割画像が最終分割の1ドツトであれば、ド
ツト情報が一様であることを示すための0のイ171を
取る最初の1ビツトを節約するものである。
pat(i+1):=OOl 01 l 1pat(i
) pat(i) pat(i) pat(i)
...(29) However, i=0.1, ..., n-
1 patO:=Ol ] ・= (
30) That is, if the divided image is one dot in the final division, the first one bit is saved by taking the 0 key 171 to indicate that the dot information is uniform.

この方式で第2図の画像を表現すると第3図のようにな
り、36ビツトで表現できる。即ち、pat n= 1
0010000101110010010111000
1101000100            ・・・
(3)次にメモリ節約の効率を第2図について考えてみ
る。
When the image shown in FIG. 2 is expressed using this method, it becomes as shown in FIG. 3, which can be expressed using 36 bits. That is, pat n= 1
0010000101110010010111000
1101000100...
(3) Next, let's consider the efficiency of memory saving with reference to Figure 2.

まず、最悪ケースを考えてみる。いま、すべての画像分
割が1ドツトに到達するまで一定の値を取らないとする
と、点かまったくばらばらに点在している画像となり、
これが最悪ケースとなる。
First, let's consider the worst case. Now, if we assume that all image divisions do not take a constant value until they reach one dot, the image will be dotted with dots or completely scattered,
This is the worst case.

実際にはこの様な画像になることはまれなことである。In reality, images like this are rare.

ここでp a t (i)の記憶部をD1ビットとする
と。
Here, let us assume that the storage section of p a t (i) is D1 bit.

’3 (’32)式が得られる。この漸化式を解くと、
n×nの全体像のビット数は第(32)式のようになる
'3 ('32) formula is obtained. Solving this recurrence formula, we get
The number of bits of the n×n overall image is as shown in equation (32).

Dn=   4    、 −1         (
32)従って全ドツトをビット対応で記憶するために必
要とする容量は、21 X2n 〜41であるからこれ
を計算すると、第(32)式は、通常の473倍の記憶
容量を必要とすることになる。
Dn=4, -1 (
32) Therefore, since the capacity required to store all dots in bit correspondence is 21 x 2n ~ 41, calculating this, formula (32) requires 473 times the normal storage capacity. become.

しかし、本発明の目的はこの様な画像を記憶するための
ものではなく、第(33)”式の値になることは、きわ
めて特殊な画像の場合である。
However, the purpose of the present invention is not to store such images, and the value of equation (33)'' is obtained only in the case of very special images.

さて、一般的画像をn゛回の画像分割する過程を考えて
みる。特に、各画像の分割過程に於ける部分画像の中で
174の部分画像が一定の値を取ることを平均的なケー
スと考えてみる。この場合も先と同様に第(34)式が
得られる。
Now, let us consider the process of dividing a general image n times. In particular, consider the average case in which 174 partial images take a constant value among the partial images in the process of dividing each image. In this case as well, equation (34) is obtained as before.

この漸化式を解くと第(35)式のようになる。Solving this recurrence equation yields equation (35).

Dn=3”−’X(45/8)−5/8   −、・(
35)   。
Dn=3”-'X(45/8)-5/8-,・(
35).

従って通常の記憶容量との比On/ 4 ”はf5 (
36)式のようになる。
Therefore, the ratio On/4'' with the normal storage capacity is f5 (
36) The equation is as follows.

ここて、n−8(ドツト数25[I X256)の場合
を考えてみると55(3B)式より、その値は0゜18
77となる。即ち、本発明によれば、従来のものに比べ
115.3程度の記憶容量で174の部分画像が一定の
4iを取る画像を記憶できることが解る。更に第(36
)式が示す様に、(3/4)”−’の効果によりnか大
きいほど、即ち対象とする画像を表現するためのドツト
数が多いほど、メモリ節約の効果が大きくなる。
Now, if we consider the case of n-8 (the number of dots is 25 [I x 256)], from equation 55 (3B), the value is 0°18
It will be 77. That is, according to the present invention, it is possible to store an image in which 174 partial images take a constant 4i with a storage capacity of about 115.3 compared to the conventional one. Furthermore, the 36th
) As shown by the equation (3/4)''-', the larger n is, that is, the larger the number of dots to represent the target image, the greater the memory saving effect.

次に画像圧縮方式を実現したハードウェア構成について
述べる。
Next, we will discuss the hardware configuration that realizes the image compression method.

第4図は本発明を実現するハードウェア構成の一例であ
る。図中GMは画像(画素)の1ドツトを1ビツトに対
応して記憶した画像メモリである。このメモリは1ビツ
トずつアドレス伺けされている。画像メモリGMの水平
方向のアドレス信−号線(0〜2” −1) はAhて
あ’J、Iil’+l力向(7)アドレス信号線(0〜
2n−1)はAvである。
FIG. 4 is an example of a hardware configuration for realizing the present invention. GM in the figure is an image memory that stores one dot of an image (pixel) corresponding to one bit. This memory is addressed one bit at a time. The horizontal address signal line (0~2''-1) of the image memory GM is the address signal line (0~2''-1)
2n-1) is Av.

画像メモリGMとのビット情報は信号線Dgを通して読
み書きできる。
Bit information can be read from and written to the image memory GM through the signal line Dg.

図中PMは、本発明により圧縮された画像情報を記憶す
る圧縮メモリである。このメモリはスタック方式で記憶
するもので、信号線Dgを通して1ビツトずつ読み書き
できる。書込動作は、スタックの最上位に新しい1ビッ
トを追加する。又読出動作はスタックの最上位の1ビツ
トを取出してくる。図中PUi±、上記画像メモリGM
中の画像情報を圧縮して圧縮メモリPMに詰めるPAC
K動作と圧縮メモリPM中の圧縮情報を従来の表現に戻
して画像メモリGMに格納するUNPA(:に動作の処
理フローである。pi(6図、第7図は画像を圧縮する
PA(J動作の処理フローである。次に上記の処理で使
われている第4図の処理装置PU中のメモリについて説
明する。
PM in the figure is a compression memory that stores image information compressed according to the present invention. This memory stores data in a stacked manner, and can be read and written one bit at a time through the signal line Dg. A write operation adds a new bit to the top of the stack. Also, a read operation takes out the most significant bit of the stack. In the figure, PUi±, the above image memory GM
PAC that compresses the image information inside and stores it in compressed memory PM
This is the processing flow of the K operation and the UNPA (:) operation that returns the compressed information in the compression memory PM to the conventional representation and stores it in the image memory GM. This is a processing flow of the operation.Next, the memory in the processing device PU shown in FIG. 4 used in the above processing will be explained.

第5図(a)はメインフローであ′す、ステップ(1)
のHPは画像ドツトの水平方向のアドレス(0〜2°−
1)を記憶することを示す。従って、第4図の画像メモ
リGMの水平方向のアドレスAhに対応する。同じく第
5図のステップ(1)のVPは画像ドツトの垂直方向の
アドレス(0〜2n−1)を記憶することを示す。従っ
て第4図の画像メモリGMの垂直方向のアドレスAvに
対応する。画像メモ50M中のアドレスは(HP。
Figure 5(a) shows the main flow, step (1)
HP is the horizontal address of the image dot (0~2°-
1) is stored. Therefore, it corresponds to the horizontal address Ah of the image memory GM in FIG. Similarly, VP in step (1) of FIG. 5 indicates that the vertical address (0 to 2n-1) of the image dot is stored. Therefore, it corresponds to the vertical address Av of the image memory GM in FIG. The address in the image memo 50M is (HP).

VP)で表わす。記憶部DCには、現在対象としている
ドツト数(2°、21 、・・・2n)を記憶する。第
51Δ(a)のメインフローがスタートすると、ステッ
プ(1)で、画像ドツトの水平アドレスHPと、垂直ア
トシスをO(ゼロ)にし、現在対象としているドラl−
数DCを21)にセットする。
VP). The number of dots (2°, 21, . . . 2n) currently targeted is stored in the storage unit DC. When the main flow of the 51st Δ(a) starts, in step (1), the horizontal address HP and vertical atsis of the image dot are set to O (zero), and the current target driver l-
Set the number DC to 21).

ステップ(2)で行われる操作((b) 参照)は圧縮
情報を第1ビットより順に記憶し、圧縮できるか否か、
又は圧縮されているか否かを判断する。
The operation performed in step (2) (see (b)) stores the compression information in order starting from the first bit, and determines whether it can be compressed or not.
Or judge whether it is compressed.

なお、第5図〜第7図で現われてくるDot及びDot
 l〜l1ot 4は画像ドツトの情報を一時的に記憶
する1ビットのメモリである。
Furthermore, the Dots and Dots that appear in Figures 5 to 7
1-11ot4 is a 1-bit memory that temporarily stores information about image dots.

ステップ(1)は初期設定を行うステップで画像全体を
対象として設定する。ステップ(2)で実際の処理を行
うサブルーチンUNPAC:KSを呼んでいる。なおサ
ブルーチンUNPACKSは再帰的プログラムである。
Step (1) is a step for performing initial settings, and settings are made for the entire image. In step (2), a subroutine UNPAC:KS that performs actual processing is called. Note that the subroutine UNPACKS is a recursive program.

サブルーチンUNPACKSのステップ(3)は最終段
階の1ドツトを圧縮していた場合の特殊処理の分岐で、
現在対象としているドツト数の記憶部DCを検査し、l
でなければステップ(4)へ進む。ステップ(4)では
圧縮メモリPMから1ビット取出しメモリのTe5tへ
蓄え、ステップ(5)で現在対象としている部分画像が
一定値か否か判断する。一定値でない場合には、Te5
tが1であるからステップ(6)5に進みさらに4分割
した部分画像を再現する様に対象ドツトeを半分にする
。ステップ(7L(8)、(+3)、(to)により各
4分割された部分画像に関してUNPACKSを行う。
Step (3) of the subroutine UNPACKS is a branch of special processing when one dot is compressed at the final stage.
Inspect the storage unit DC for the number of dots currently targeted, and l
Otherwise, proceed to step (4). In step (4), one bit is extracted from the compression memory PM and stored in the memory Te5t, and in step (5) it is determined whether or not the currently targeted partial image has a constant value. If it is not a constant value, Te5
Since t is 1, the process proceeds to step (6) 5, where the target dot e is further halved so as to reproduce a partial image divided into four parts. UNPACKS is performed on each partial image divided into four by step (7L(8), (+3), (to)).

ステップ(11)により水平アドレスHP、垂直アドレ
スvP、対象としているドツト数の記憶部DCをもとに
戻して終了する。一方ステップ(5)で部分画像が一定
値である場合及びステップ(3)で部分画像が1ドツト
であると判断された場合にはステップ(12)に進み、
その一定イセ(の値を圧縮メモリPMから取出しステッ
プ(13)でその情報を画像メモリGMに再現する。こ
うしてtlNPAcXsの処理は終る。
In step (11), the horizontal address HP, the vertical address vP, and the storage section DC for the number of dots to be processed are returned to their original values, and the process ends. On the other hand, if the partial image has a constant value in step (5) and if it is determined that the partial image is one dot in step (3), proceed to step (12);
The value of the constant value is taken out from the compression memory PM and in step (13) the information is reproduced in the image memory GM. Thus, the processing of tlNPAcXs is completed.

以上のようにして最後に(14)のENDに戻ってきた
時、PMの圧縮画像がGM上に再現されている。
As described above, when the program finally returns to END (14), the compressed image of PM has been reproduced on GM.

第6図は画像メモリGM上の画像を圧縮して圧縮メモリ
PM上に記憶する手順である。
FIG. 6 shows the procedure for compressing the image on the image memory GM and storing it on the compression memory PM.

ステップ(1)は初期設定で画像全体を対象として初期
設定する。ステップ(2)で実際の処理を行うサブルー
チンPACKSを呼んでいる。なおPACKSは再帰的
プログラムである。サブルーチンPACKSが呼ばれる
と、ステップ(3)で現在対象としてい゛る部分画像が
2×2の最終段階であるか否かを判断する。最終段階で
ない場合はステップ(4)へ、進みさらに4分割された
部分画像を扱う様に対象ドラh glを半分にする。ス
テップ(5)、 (8) 、 (?) 、 (8)によ
り各4分割された部分画像に関してPAC:KSを行う
。この時、第5図の画像再表現の場合と逆の順序で4つ
の部分画像を扱っている事に注目できる。すなわち、圧
縮メモリPMの構造がスタック構造になっている事に起
因している。ステップ(S)で対象としているドツト数
の記憶部DCをもとに戻す。この時水平アドレスHP、
垂直アドレスVPLt既にもとの値になっている。
In step (1), initial settings are made for the entire image. In step (2), a subroutine PACKS that performs actual processing is called. Note that PACKS is a recursive program. When the subroutine PACKS is called, it is determined in step (3) whether the currently targeted partial image is in the final stage of 2×2. If it is not the final stage, proceed to step (4) and further halve the target driver hgl so that the partial image divided into four parts is handled. PAC:KS is performed on each of the four divided partial images in steps (5), (8), (?), and (8). At this time, it can be noted that the four partial images are handled in the reverse order as in the case of image re-presentation in FIG. That is, this is due to the fact that the structure of the compressed memory PM is a stack structure. The storage unit DC for the number of dots targeted in step (S) is returned to its original state. At this time, the horizontal address HP,
Vertical address VPLt has already returned to its original value.

ステップ(10)では、圧縮メモリP、Mに記憶された
4つの81(分画像の集合がさらに圧縮できるか判断し
、さらに圧縮できるものならば圧縮する。
In step (10), it is determined whether the set of four 81 (minute images) stored in the compression memories P and M can be further compressed, and if it can be further compressed, it is compressed.

これについては第7図を用い後述する。一方86図のス
テップ(3)で部分画像か最終段階の2×2となった場
合には、ステップ(11)で、この4ドツトの情報を画
像メモリGMから読み出し、次のステップ(12)で呼
び出した4ドツトが全て一致するか判断し、一致しない
場合にはステップ(13)に移り、この4ドツトの情報
を圧縮メモリPMに詰め、ステップ(14)で圧縮でき
なかった事を示すビット“1″をさらに圧縮メモリPM
に詰める。一方ステップ(12)で4ドツトが全て一2
致した場合には、ステップ(15)に移り、その一定値
を示すドツトのみを圧縮メモリPMに詰めステップ(1
G)でさらに圧縮されている事を示すビット“0′を圧
縮メモリPMに詰める。こうしてPAC:KSは終Yす
る。
This will be described later using FIG. 7. On the other hand, if the partial image becomes 2x2 at the final stage in step (3) of Fig. 86, the information of these 4 dots is read out from the image memory GM in step (11), and in the next step (12). It is determined whether all the four dots called up match, and if they do not match, the process moves to step (13), the information of these four dots is packed into the compression memory PM, and the bit "" indicating that compression could not be performed is stored in step (14). 1″ further compressed memory PM
Fill it in. On the other hand, in step (12) all 4 dots are 12
If it is, the process moves to step (15), and only the dots showing the constant value are stored in the compressed memory PM, and step (15) is performed.
In G), a bit "0" indicating that the data has been further compressed is packed into the compression memory PM.In this way, PAC:KS ends.

以上のようにして最後に(17)のENDに戻ってきた
時には画像メモリGMの画像が圧縮メモリPM上に圧縮
されて記憶されている。
As described above, when the program finally returns to END (17), the image in the image memory GM is compressed and stored on the compression memory PM.

第7図は第6図の(10)で呼出される部分画像の後金
を圧縮する処理を示すフローである。処理1オ/]E 
1’(+メモリPMのスタックの上位の内容が“00θ
ooooo”の場合は4つの部分画像か全てOの場合で
あり、これを°00゛て置き替え、圧縮メモリPMの内
容が°01010101 ”の場合は4つの部分画像か
全て1の場合であり、これを01’で置き替える処理を
行う。−カド記以外の場合には4つの部分画像の集合が
一定値でなかった事を示す”1゜を圧縮メモリPMに追
加する処理を行う。
FIG. 7 is a flowchart showing the process of compressing the postage of the partial image called at (10) in FIG. Processing 1/]E
1' (+The upper content of the memory PM stack is “00θ
oooooo” means that all of the four partial images are O, and this is replaced with °00゛, and when the content of the compressed memory PM is “01010101”, it means that all of the four partial images are 1, Processing is performed to replace this with 01'. - In cases other than quadrants, a process is performed to add "1°" to the compression memory PM, which indicates that the set of four partial images is not a constant value.

第7図で、CHECKのプログラムが呼び出されるとま
ず、ステップ(1)でカウントをOにし、次にステップ
(2)て圧縮メモリPMから1ビツトTe5tへ取り出
す。ステップ(3)ては、Tes tのビットを判定し
、Oならば、ステップ(4)へ進む。ステップ(4)で
は圧縮メモリPMから1ピッ1−Dotへ取り出す。次
にステップ(5)にてカウントを1カウントアツプし、
次にステップ(6)で圧縮メモリPMからlビットTe
5tへ取り出す。ステップ(7)にてTe5tのビット
を判定し、0ならは、ステップ(8)にて圧縮メモリP
Mから1ヒツ1−Dot’lへ取り出す。次にステップ
(9)でDot 、!=Dot  1か′]′シいか否
かの判定を行い、等しければステップ(10)に進み、
カウントの値が3であるか否かを判定する。カラン)・
の値が3でなければステップ(5)へ戻りステップ(5
)〜ステップ(10)を繰り返す。ステップ(10)に
て、カウントの値か3ならば、圧縮メモリのビットが全
て等しかったことなので、ステップ(11)でDotの
ヒ゛ツトを圧1宿メモリPMに8古め更にステップ(’
12)にてピッ1− 。
In FIG. 7, when the CHECK program is called, first, in step (1), the count is set to 0, and then in step (2), 1 bit Te5t is taken out from the compressed memory PM. In step (3), the bit of Test t is determined, and if it is O, the process proceeds to step (4). In step (4), 1-pi 1-Dot is taken out from the compressed memory PM. Next, in step (5), increase the count by 1,
Next, in step (6), l bit Te is extracted from the compressed memory PM.
Take out to 5t. The bit of Te5t is determined in step (7), and if it is 0, the compressed memory P is determined in step (8).
Take out 1 human 1-Dot'l from M. Next, in step (9), Dot,! =Dot 1 or ']' is determined, and if they are equal, proceed to step (10),
Determine whether the count value is 3 or not. Karan)・
If the value of is not 3, return to step (5) and step (5
) to step (10) are repeated. In step (10), if the count value is 3, it means that all the bits in the compressed memory are equal, so in step (11), the bit of Dot is transferred to the compressed memory PM by 8 years old and then step ('
12) Pip 1-.

を圧縮メモリPMに詰め、完了し、ステップ(3)にて
Te5tが1ならば、ステップ(14)に移り、Te5
tのビットを圧縮メモリPMに詰める。ステップ(15
)にてカウントが0でなければ、ステップ(16)に移
る。
is packed into the compressed memory PM and completed, and if Te5t is 1 in step (3), the process moves to step (14) and Te5
Pack the bits of t into compressed memory PM. Step (15
), if the count is not 0, the process moves to step (16).

ステップ(16)てはDotのビ゛ットを圧翁6メモリ
PMに晶める。ステップ(17)にてビット0を圧1宿
ノモリPMに詰め、ステップ’(18)にてカウントの
(+i:iをカウントタウンし、ステップ(]5)へ移
る。
In step (16), the bits of Dot are stored in the memory PM. At step (17), bit 0 is packed into the memory PM, and at step '(18), the count (+i:i) is counted, and the process moves to step (5).

ステップ(15)にてカウントのイ直が0ならは°、圧
縮メモリPMの値を元に戻したことになるので、ステッ
プ(19)にて圧縮メモリに詰め、呼び出された所へ戻
る。
If the count value is 0 in step (15), this means that the value in the compressed memory PM has been returned to its original value, so in step (19) it is filled in the compressed memory and returns to the called place.

ステップ(7)にてTe5tが1の場合はパターンのビ
ットが等1〜くないことを示すので、ステップ(14)
に移り、前述の処理を行う。ステップ(8)にて、Do
tがDot 1と等しくない場合もパターンのビットが
等しくないことを示すので、Dot 1のビットを圧縮
メモリPMに詰めてステップ(14)へ移り、前述の処
理を行う。
If Te5t is 1 in step (7), it means that the pattern bits are equal to or less than 1, so step (14)
and perform the process described above. In step (8), Do
If t is not equal to Dot 1, it also indicates that the bits of the pattern are not equal, so the bits of Dot 1 are packed into the compressed memory PM and the process moves to step (14), where the above-mentioned processing is performed.

喚;jノ果 以上の説明、即ち本発明によれは、ドラl−数2ηX2
”の白黒画像を配子、aするのに、最少の場合2ビツト
、平均的に1/4の部分画像か−・定の値を取ると考え
ると、従来の全ドツトを記憶する方法と比較し、かなり
少ない記憶容量て画像を記憶することができる。更に本
発明によれば、画像を表現するドツト数の多い、大きい
画像を記憶する場合に記憶容量の節約効果は更に大きく
なる。
According to the above explanation, that is, according to the present invention, the number 2ηX2
Considering that it takes a constant value of 2 bits in the minimum case and a 1/4 partial image on average to store a black and white image of ``,'' compared to the conventional method of storing all dots. According to the present invention, the effect of saving storage capacity becomes even greater when storing a large image with a large number of dots representing the image.

本発明によれは、同じ記憶容量で、従来に比べ多くの画
像をディスク等に記憶しておくことができる。即ち、画
像のための記憶部分が節約でき、限定された記憶容量に
多くの画像を記憶できるという効果が得られる。
According to the present invention, more images can be stored on a disk or the like with the same storage capacity than before. That is, the storage area for images can be saved and a large number of images can be stored in a limited storage capacity.

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

第1[/は本発明の方式で記憶しようとする画像分’+
’;IIの概念例、 第2図はA、、発明による記憶方式を説明するための図
、 第3図は最終分割された部分画像が11’ツトである場
合の記憶を簡略化した例を示す図、第4図は本発明のハ
ードウェア構成例、第5図は圧縮画像を再表現するため
の処理を示すフローチャー1・、 第6図はJFE縮処理を示すフローチャート、第7図は
圧縮のビット操作を示すフローチャート図である。 ここて、l・・・全画像のドツトマトリックス。 20・・弓の分割を示す、21,22,23,24、・
・1の分割された部分画像、22o・・・22の分割を
示す、221,222.223.224・・・22の分
割された部分画像、2230・・・223の分;’!’
1を示す、2231.2232,2233.2234・
・・223の分割された部分画像、PU・・・処J1ト
・シ置、GM・・・画像メモリ、PM・・・圧”ii?
+メモリ、Ah・・・画像メモリの水平方向のアドレス
、AV・・・画像メモリの垂直力向のアドレス、I)g
、I)P・・・信シう線である。 特許出願人  キャノン株式会社 第3図 第4図 第5図 (a)    (1))
The first [/ is the part of the image to be stored using the method of the present invention'+
'; II conceptual example, Figure 2 is a diagram for explaining the storage method according to the invention, Figure 3 is an example of simplified storage when the final divided partial image is 11'. 4 is a hardware configuration example of the present invention, FIG. 5 is a flowchart 1 showing processing for re-expressing a compressed image, FIG. 6 is a flowchart showing JFE compression processing, and FIG. FIG. 3 is a flowchart diagram illustrating bit operations for compression. Here, l...dot matrix of all images. 20... Indicates the division of the bow, 21, 22, 23, 24,...
・1 divided partial image, 22o...22 divided partial images, 221, 222.223.224...22 divided partial images, 2230...223;'! '
1, 2231.2232, 2233.2234.
...223 divided partial images, PU...processing J1 location, GM...image memory, PM...pressure"ii?
+Memory, Ah...Address in the horizontal direction of the image memory, AV...Address in the vertical force direction of the image memory, I)g
, I) P... is a reliable line. Patent applicant: Canon Co., Ltd. Figure 3, Figure 4, Figure 5 (a) (1))

Claims (1)

【特許請求の範囲】 1、画像を表わすドツトマトリックスを部分に分割し、
分割された部分画像を構成するドツトが全て同じ値に達
するまで更に部分画像に分割し、部分画像を構成するド
ツトが全て同じ値に達したならば、それまでの分割手順
と、部分画像を構成するドツトの値をもって画像全体を
表わす様にしたことを特徴とする画像圧縮方式。 2、分割されたB1(分画像が1ドツトに達したものに
ついては、1ドツトをもって部分画像情報とするように
したことを特徴とする特許請求の@四節1項記載の画像
圧縮方式。
[Claims] 1. Divide a dot matrix representing an image into parts,
The image is further divided into partial images until all the dots that make up the divided partial image reach the same value, and when all the dots that make up the partial image reach the same value, the previous dividing procedure and the configuration of the partial image are repeated. An image compression method characterized in that the entire image is represented by the value of a dot. 2. The image compression method described in Section 4, Item 1 of the patent claim, characterized in that when the divided B1 image reaches one dot, one dot is treated as partial image information.
JP2685583A 1983-02-19 1983-02-19 Picture compressing system Pending JPS59152782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2685583A JPS59152782A (en) 1983-02-19 1983-02-19 Picture compressing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2685583A JPS59152782A (en) 1983-02-19 1983-02-19 Picture compressing system

Publications (1)

Publication Number Publication Date
JPS59152782A true JPS59152782A (en) 1984-08-31

Family

ID=12204887

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2685583A Pending JPS59152782A (en) 1983-02-19 1983-02-19 Picture compressing system

Country Status (1)

Country Link
JP (1) JPS59152782A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0219069A (en) * 1988-07-06 1990-01-23 Eiji Kawaguchi Binary picture coding system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0219069A (en) * 1988-07-06 1990-01-23 Eiji Kawaguchi Binary picture coding system

Similar Documents

Publication Publication Date Title
US6954204B2 (en) Programmable graphics system and method using flexible, high-precision data formats
US6959110B1 (en) Multi-mode texture compression algorithm
US6825847B1 (en) System and method for real-time compression of pixel colors
US7397946B2 (en) Color distribution for texture and image compression
US5377018A (en) Video compression and decompression using block selection and subdivision
CA1222081A (en) Method for rotating a binary image
US6618728B1 (en) Multi-process compression
EP1341151B1 (en) Method and apparatus for updating a color look-up table
CN105933708B (en) A kind of method and apparatus of data compression and decompression
TW200917228A (en) Compression of multiple-sample-anti-aliasing tile data in a graphics pipeline
US6342883B1 (en) Image display method and image display apparatus
JP2020519042A (en) Apply delta color compression to video
US7248744B2 (en) Vector quantization of images
TW260773B (en)
JP4189443B2 (en) Graphics image compression and decompression method
US6577320B1 (en) Method and apparatus for processing multiple types of pixel component representations including processes of premultiplication, postmultiplication, and colorkeying/chromakeying
US5900883A (en) Method for storing and retrieving a digital image across multiple storage media
JPS59152782A (en) Picture compressing system
US6747661B1 (en) Graphics data compression method and system
US6919898B2 (en) Method and apparatus for ascertaining and selectively requesting displayed data in a computer graphics system
JPS5938873A (en) Color data compressing device
JPH11112817A (en) Method for compressing color image data, its compressing device and compression processing storage medium
JP3134584B2 (en) Image data processing apparatus and method
JP2714926B2 (en) Image processing method and image processing apparatus
GB2353452A (en) Apparatus and method for compression of bit-mapped data