[go: up one dir, main page]

CN100574435C - Image Compression Method - Google Patents

Image Compression Method Download PDF

Info

Publication number
CN100574435C
CN100574435C CN 200610140264 CN200610140264A CN100574435C CN 100574435 C CN100574435 C CN 100574435C CN 200610140264 CN200610140264 CN 200610140264 CN 200610140264 A CN200610140264 A CN 200610140264A CN 100574435 C CN100574435 C CN 100574435C
Authority
CN
China
Prior art keywords
bits
binary value
significant bit
bit
format
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 - Fee Related
Application number
CN 200610140264
Other languages
Chinese (zh)
Other versions
CN1976459A (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.)
Industrial Technology Research Institute ITRI
Original Assignee
Industrial Technology Research Institute ITRI
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 Industrial Technology Research Institute ITRI filed Critical Industrial Technology Research Institute ITRI
Priority to CN 200610140264 priority Critical patent/CN100574435C/en
Publication of CN1976459A publication Critical patent/CN1976459A/en
Application granted granted Critical
Publication of CN100574435C publication Critical patent/CN100574435C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The invention relates to a method for processing sub-image data of an image. The method comprises the following steps: providing the object of the sub-image, forming a binary bitmap of the object, determining whether the number of bits having the first binary value in the binary bitmap is greater than the number of bits having the second bit value. The method further comprises: determining whether the binary bitmap needs to be converted such that the number of bits having the first binary value in the converted binary bitmap is smaller than the number of bits having the second binary value, and determining a compression rule by determining the most significant two bits of a segment of consecutive bits in the binary bitmap or the converted binary bitmap.

Description

Image compressing method
Technical field
The present invention relates to a kind of method of process image data, relate in particular to a kind of method and record format of execution length of the subimage information that is used for compressing image.
Background technology
Digital processing technology sustainable development, message and compression of video data efficient are also significantly promoted in recent years.For example, the compressed format standard of mpeg (MPEG, " Motion Picture Experts Group ") evolves to MPEG 4 by MPEG 1.But the compression efficiency of the sub-image data of playing an important role in the presenting of multimedia programming does not improve.Moreover the size of data of subimage image increases along with the increase in demand of the multimedia programming of high-resolution.The compression efficiency that is provided by compression method commonly used can't satisfy the demand of handling the high resolution multimedia program.An example of compression method commonly used is found in the United States Patent (USP) that the people proposed numberings 6,009,202 such as Kikuchi, and its name is called " image information coding/decoding system " (Image Information Encoding/DecodingSystem).Kikuchi discloses a kind of coding method of sub-image data, and it comprises the reduced rule 1 to 6 to Fig. 5 F about its Fig. 5 A, and about the reduced rule 11 to 15 of its Fig. 6 A to Fig. 6 E.The burden of the data record of these reduced rules is very big, and data format can not be adjusted for the content characteristic that adapts to different sub-image data.
Therefore, need a kind of energy high efficiency of compression sub-image data, and can handle the method for high-resolution video disc.Simultaneously, also need a kind of data compression method, it can adjust compression parameters so that better compression ratio to be provided according to the content characteristic elasticity of inferior image data.
Summary of the invention
Example of the present invention provides a kind of method of handling the sub-image data of image.This method can comprise: the object that this subimage is provided, form the binary system bit figure of this object, decision has the one or the two bit number that advances value whether greater than having the two or the two bit number that advances value in this binary system bit figure, whether decision has needs this binary system bit figure of conversion so that advance the bit number of value less than having the two or two having the one or the two bit number that advances value in the binary system bit figure of conversion, and judge this binary system bit figure or should binary system bit figure through changing in the highest effective two bits of one section continuous bit to determine reduced rule.
Example of the present invention also provides the another kind of method of handling the sub-image data of image.This method can comprise: the object that this subimage is provided, form the binary system bit figure of this object, the highest effective two bits of decision one section continuous bit in this binary system bit figure, have the one or two and advance after this highest significant position unit of value for having the two or two to advance second highest significant position of value and compress this paragraph with first form when first if be connected on, record has the two or two number (n1) that advances the continuous bit of value after this highest significant position unit in the N1 position, and wherein N1 is for satisfying n1≤2 N1-1 smallest positive integral, have the one or two and advance after this highest significant position unit of value for having the one or two to advance second highest significant position of value and compress this paragraph with second form when first if be connected on, and record has the one or two number (n2) that advances the continuous bit of value after this highest significant position unit in the N2 position, and wherein N2 is for satisfying n2≤2 N2-1 smallest positive integral.
Examples more of the present invention also can provide a kind of data compression of the subimage that carries out image and the method for decompression, it comprises the object that determines this subimage, form the binary system bit figure of this object, the decision reduced rule, its the highest effective two bits by the decision paragraph are compressed in one section continuous bit of this binary system bit figure, compress the continuous bit of this section according to this reduced rule and form the compression paragraph, and with the parameter of data format record corresponding to this reduced rule, wherein this parameter determines the length of this compression paragraph.
Example of the present invention can provide data format again, it can write down the compressed information of the object of subimage, wherein comprise first field, be used for writing down parameter corresponding to the reduced rule of the one section continuous bit of binary system bit figure that compresses this object, and second field, be used for record and compress this section formed compression section of bit continuously according to this reduced rule, wherein this parameter determines the length of this compression paragraph.
Will be appreciated that above summary description and detailed description hereinafter all only are made for illustration and explanation, the invention that it does not limit this paper is advocated.
Description of drawings
When and when reading with each accompanying drawing, the summary that discloses before can better understanding the present invention and above describing in detail.For reaching illustration purpose of the present invention, expression has each preferable specific embodiment of existing genus in each accompanying drawing.Should be appreciated that so the present invention is not limited to represented accurate row and puts mode and apparatus.
In each accompanying drawing:
Figure 1A is the schematic diagram that comprises the image of subimage;
Figure 1B and Fig. 1 C are the schematic diagram of object that meets the subimage of example of the present invention;
Fig. 2 A is the schematic diagram of structure that meets the image of example of the present invention;
Fig. 2 B is the schematic diagram at the image header shown in Fig. 2 A;
Fig. 2 C is the schematic diagram in the structure of the object shown in Fig. 2 A;
Fig. 3 A is the bit figure that meets the object of example of the present invention;
Fig. 3 B is the bit figure through conversion that meets the object shown in Fig. 3 A of example of the present invention;
Fig. 3 C is the bit figure through conversion at the object shown in Fig. 3 A that meets another example of the present invention;
Fig. 4 is the flow chart that meets the compression method of example of the present invention;
Fig. 5 A is the flow chart that meets the compression method of example of the present invention to Fig. 5 D;
Fig. 6 A is the schematic diagram that meets the record format of example of the present invention to Fig. 6 D;
Fig. 7 A is the schematic diagram that meets the compression method of another example of the present invention to Fig. 7 H;
Fig. 8 A is the schematic diagram of bit element flow after the compression;
Fig. 8 B is the flow chart that meets the decompression method of example of the present invention;
Fig. 9 A is the experimental result picture of English alphabet;
Fig. 9 B is the experimental result picture of one group of Chinese text; And
Figure 10 is the block diagram that meets the compression method of example of the present invention.
The main element description of symbols
10 images
12 subimages
The 12-1 object
The 12-2 subimage
31 bit figure
32 bit figure
33 bit figure
70 bit figure
80 bit element flows
121 word segments
122 background parts
Embodiment
Now will be in detail with reference to the specific embodiment of the invention, its example is illustrated among the accompanying drawing.Most its possibility will be according to the similar elements mark to represent identical or similar elements in institute's drawings attached.
Figure 1A is the schematic diagram that comprises the image 10 of subimage 12.Please refer to Figure 1A, the main image of image 10 expression films, its two dimension size multiply by Y (pixel) for X (pixel).Subimage 12 is illustrated in this film captions or lteral data shown on the image 10, and it can comprise the multilingual literal, comprises for example English words and middle literal.In this example, first row of subimage 12 comprises 8 middle literal and 3 English alphabets, and it is the Chinese version at " the Welcome to the FVD Team " of second row.In some example, subimage can be single line text or the multirow literal that comprises same-language or different language.
Figure 1B and Fig. 1 C meet the schematic diagram of object of the subimage of example of the present invention as example for first row that uses Figure 1A.Subimage comprises at least one object.Please refer to Figure 1B, the first style of writing word in the subimage shown in Figure 1A 12 can be considered object 12-1.Therefore, object 12-1 is big or small identical with subimage 12, i.e. X 1Multiply by Y 1Please refer to Fig. 1 C, each word promptly is considered as an object 12-2 in subimage 12.Each object 12-2 all has identical big or small X 2Multiply by Y 2, comprise word segment 121 and background parts 122.In different application, can use the object that varies in size.
Fig. 2 A is the schematic diagram of structure that meets the image of example of the present invention.Please refer to Fig. 2 A, the structure of image comprises the image header, is a plurality of object structure then.In this example, after the image header, provide n object structure altogether.Each object structure comprises the object header, and is right after the object data unit after the object header.Parameter of collecting during compression is handled and packed data system are stored in respectively in object header and the object data unit.
Fig. 2 B is the schematic diagram in the structure of the image header shown in Fig. 2 A.Please refer to Fig. 2 B, the structure of this image header has been specified cell size in the unit flag, for example is a pixel or four pixels, image size, object size, and the object number in image.
Fig. 2 C is the schematic diagram in the structure of the object shown in Fig. 2 A.Please refer to Fig. 2 C, the structure of object comprises the object header, and the object data unit after being connected on.The object header comprises XOR (exclusive or, XOR) flag, color field and object size information field.Whether the XOR flag is used to specify will carry out XOR, and this part please hold the back and further describe.Color field is used to specify the colouring information with respect to the word segment of the object of background parts.In according with example of the present invention, when color field is set at " 1 ", is to specify two to advance the pixel that value " 1 " is given word segment, and specifies two to advance the pixel that value " 0 " is given background parts.The object header comprises the compressed information among parameter N 1, N2, N3 and the N4 in addition, and it has write down each length value that is stored in the data in the object unit according to each reduced rule of correspondence respectively.These reduced rules and parameter N 1, N2, N3 and N4 will further go through again.
Fig. 3 A is the bitmap 31 that meets the object of example of the present invention.Please refer to Fig. 3 A, its scanning has the object of the word segment of " H " shape.If color field is set at 1, promptly specifies two to advance the pixel that value " 1 " is given this word segment, and specify two to advance the pixel that value " 0 " is given background.In order to compress, when this color field was set at " 1 ", two numbers that advance value " 1 " can be less than two numbers that enter value " 0 ", and vice versa.Moreover, in according with example of the present invention,,, promptly carry out XOR in order to reduce by two numbers that enter value " 1 " if when two numbers that advance value " 0 " are advanced the outnumbering of value " 1 " by two.The XOR computing can be listed as to next column one row ground by the top and carry out, and is referred to as downward XOR; Or be listed as to previous column one row ground by a bottom and carry out, be referred to as upwards XOR.The XOR computing can also be carried out to the right line by line by left is capable, is referred to as XOR to the right; Or, be referred to as XOR left by the execution line by line left of right-hand row.The XOR computing is the logical operation that two operators are carried out, and it only has and if only if one of operator, but not two operators have numerical value " very " time cause logical value " very ".
Fig. 3 B meets the bit Figure 32 through conversion of this object shown in Fig. 3 A of example of the present invention.Please refer to Fig. 3 A and Fig. 3 B, when carrying out downward XOR, first row of bit Figure 31 are promptly as these first row through bit Figure 32 of conversion.Carry out XOR between first row of bit Figure 31 and secondary series, wherein first of first of the bit Figure 31 row with the secondary series of bit Figure 31 first is XOR, second of first row of bit Figure 31 with the secondary series of bit Figure 31 second is XOR, and the rest may be inferred.The result of XOR computing can be written to the secondary series through bit Figure 32 of conversion.In XOR computing downwards, first row of the bit Figure 31 shown in Fig. 3 A are written to first row of bit Figure 32, and the n of bit Figure 31 is listed as (n+1) row that are written to bit Figure 32 of conversion with the result of (n+1) the XOR computing of row.After the XOR computing, can be at two numbers that advance value " 1 " in bit Figure 32 of conversion less than two numbers that enter value " 0 ".
Fig. 3 C is the bit Figure 33 through conversion at this object shown in Fig. 3 A that meets another example of the present invention.Please refer to Fig. 3 C, bit Figure 33 carries out the upwards result of XOR computing for the bit Figure 31 shown in Fig. 3 A.In the XOR computing that makes progress, last row of the bit Figure 31 shown in Fig. 3 A are written to first row of bit Figure 33, and (n+1) row of bit Figure 31 are listed as with the n that the result of the XOR computing of n row is written to bit Figure 32 of conversion.Note that about the XOR computing shown in Fig. 3 B and Fig. 3 C and only be exemplary in nature.Therefore also can use other method advances the bit figure of value " 1 " and is converted into and has the bit figure that plurality purpose two is advanced value " 0 " will have plurality purpose two.For example, in example, can carry out inverse operation (inverse operation) and change two and advance value " 1 " and become two and advance value " 0 ", and change two and advance value " 0 " and become two and advance value " 1 ", so that bitmap is after conversion, its two number that advances value " 1 " is less than two numbers that enter value " 0 ".
Fig. 4 is the flow chart that meets the compression method of the present invention's one example.Please refer to Fig. 4, step 41 provides the image that comprises subimage.This subimage comprises at least one object.Step 42 is judged the size of each object in this at least one object.Next, appointment the or two is advanced value and the two or two and is advanced to be worth the word segment of each object in this at least one object and the pixel of background parts in step 43, to form the bit figure of each object in this at least one object.Then, whether this bit of step 44 decision figure needs conversion.Suppose that color field is set at " 1 ",, then carry out the XOR computing to obtain bit figure through conversion in step 45 if when two numbers that advance value " 1 " advance the number of value " 0 " greater than two.Yet step 44 and 45 is nonessential step.That is to say that even it is more to have a number of pixels of numerical value " 1 ", compression is handled and still can be continued to carry out and do not need to carry out any conversion.
Then will determine whether can use first reduced rule, second reduced rule, the 3rd reduced rule or the 4th reduced rule front end paragraph to bitmap.In case determined wherein a kind of reduced rule, can determine whether can use the front end paragraph of this reduced rule to the remainder of this bit figure.This compression processing can continue to carry out to be compressed into bit element flow up to this bit figure.The front end paragraph can comprise the row of this bitmap or the continuous part of several continuation columns.Especially, step 51 will determine whether can use the front end paragraph of first reduced rule to bitmap, no matter be the bitmap or the bit figure of unconverted still through conversion.If confirm, promptly in step 61, implement first rule, it adds discussion again with reference to Fig. 5 A.If not, then in step 52, determine whether can use second reduced rule to this front end paragraph.If confirm, promptly in step 62, implement this second rule, it adds discussion again with reference to Fig. 5 B.If not, then in step 53, determine whether can use the 3rd reduced rule to this paragraph.If confirm, promptly in step 63, implement three sigma rule, it adds discussion again with reference to Fig. 5 C.If not, promptly implement the 4th reduced rule in step 54, it adds discussion again with reference to Fig. 5 D.In the step 64 step 61,62,63 and 54 output are collected in the bit element flow.This processing program will continue to determine whether that a rule in this first, second, third and the 4th reduced rule may be used on the subsequent paragraph of this bitmap, all be compressed up to whole all bit figure.
Fig. 5 A is the flow chart that meets the compression method of example of the present invention to Fig. 5 D.Please refer to Fig. 5 A and Fig. 4, suppose that this color flag is set at " 1 ", judge in the step 510 whether preceding two positions of the paragraph of this bit figure are respectively " 1 " and " 0 ".If confirm that step 611 is promptly calculated the number (n1) in " 0 " that first bit " 1 " is followed afterwards continuously.Then, record count n1 in the N1 bit of step 612 in first form shown in Fig. 6 A.N1 is for satisfying n1≤2 N1-1 smallest positive integral.Then, shown in Fig. 2 C, step 613 is record count N1 in first field of object header.
Please refer to Fig. 5 B and Fig. 4, whether two bits were respectively " 1 " and " 1 " before step 520 was judged the paragraph of this bit figure.If confirm that step 621 is promptly calculated the number (n2) in " 1 " that first bit " 1 " is followed afterwards continuously.Then, record count n2 in the N2 bit of step 622 in second form shown in Fig. 6 B.N2 is for satisfying n2≤2 N2-1 smallest positive integral.Then, shown in Fig. 2 C, step 623 is record count N2 in second field of object header.
Please refer to Fig. 5 C and Fig. 4, whether step 530 decision has in bitmap has the two continuous bits that advance value " 0 " and is listed as.If confirm, step 631 is promptly calculated two and is advanced the columns (n3) of value for the continuation column of " 0 ".Then, record count n3 in the N3 position of step 632 in the 3rd form shown in Fig. 6 C.N3 is for satisfying n3≤2 N3-1 smallest positive integral.Then, shown in Fig. 2 C, step 633 is record count N3 in the 3rd field of object header.
Please refer to Fig. 5 D and Fig. 4, step 541 is calculated the number (n4) of continuous " 0 " in one of bit figure row.Then, record count n4 in the N4 bit of step 542 in the 4th form shown in Fig. 6 D.N4 is for satisfying n4≤2 N4-1 smallest positive integral.Then, shown in Fig. 2 C, step 543 is record count N4 in the 4th field of object header.
Fig. 6 A is the schematic diagram that meets the record format of example of the present invention to Fig. 6 D.Please refer to Fig. 6 A, preceding two positions point out that first bit is " 1 ", and are thereafter continuously several " 0 ".Then point out to be connected on continuously the actual number of first bit " 1 " " 0 " afterwards in the ensuing N1 bit.Whole (N1+2) bit is stored in the object data unit, and is collected in the bit element flow.If there is more than one paragraph can satisfy first rule, and therefore existence surpasses one n1, then only writes down the numerical value corresponding to the N1 of maximum n1 in this object header.
Please refer to Fig. 6 B, similarly, preceding two positions point out that first bit is " 1 ", and are thereafter continuously several " 1 ".Then point out to be connected on continuously the actual number of first bit " 1 " " 1 " afterwards in the ensuing N2 bit.Whole (N2+2) position is stored in this object data unit, and is collected in this bit element flow.If there is more than one paragraph can satisfy second rule, and therefore existence surpasses one n2, then only writes down the numerical value corresponding to the N2 of maximum n2 in this object header.
Please refer to Fig. 6 C, preceding two bits are pointed out " 0 " of continuous several row.And the actual number of this continuation column is pointed out in ensuing N3 bit.Whole (N3+2) bit is stored in this object data unit, and is collected in this bit element flow.If there is more than one paragraph can satisfy three sigma rule, and therefore existence surpasses one n3, then only writes down the numerical value corresponding to the N3 of maximum n3 in this object header.
Please refer to Fig. 6 D, the representative of preceding two positions has some continuous " 0 " to appear in the row but and vacant permutation.The actual number of those continuous " 0 " is specified in following N4 position.Whole (N4+2) bit is stored in this object data unit, and is collected in this bit element flow.If there is more than one paragraph can satisfy the 4th rule, then in this object header, only write down numerical value corresponding to the N4 of maximum n4.
Fig. 7 A is the flow chart that meets the compression method of another example of the present invention to Fig. 7 H.Fig. 7 A is for wanting the bitmap 70 of compressed object.Please refer to Fig. 7 B, first reduced rule is judged as and may be used on first paragraph, and it is the front end paragraph of this bit Figure 70.Moreover the numerical value decision of n1 is 5, because in first paragraph, first bit " 1 " has 5 continuous " 0 " afterwards.Simultaneously, the decision of the numerical value of N1 is 3.The numerical value of n1 and N1 respectively with first format record in first field of object data unit and object header.
Please refer to Fig. 7 C, second reduced rule is judged as second paragraph that may be used on after first paragraph of bit Figure 70.Moreover the numerical value decision of n2 is 4, because first bit " 1 " has 4 continuous " 1 " afterwards in second paragraph.Simultaneously, the decision of the numerical value of N2 is 3.The numerical value of n2 and N2 is recorded in respectively in second field of second form and this object header.
Please refer to Fig. 7 D, the 3rd reduced rule is judged as the 3rd paragraph that may be used on after second paragraph of bit Figure 70.Moreover numerical value n3 decision is 8, because occurred 8 row " 0 " continuously.The numerical value of N3 also determines to be 4.The numerical value of n3 and N3 is recorded in respectively in the 3rd field of the 3rd form and this object header.
Please refer to Fig. 7 E, the 4th reduced rule is judged as the 4th paragraph that may be used on after the 3rd paragraph of bit Figure 70.Moreover the numerical value decision of n4 is 4, because occur 4 " 0 " continuously in the row in the 3rd paragraph.The numerical value of N4 also determines to be 3.The numerical value of n4 and N4 is recorded in respectively in the 4th field of the 4th form and this object header.
Please refer to Fig. 7 F, second reduced rule is judged as the 5th paragraph that may be used on after the 4th paragraph of bit Figure 70.Moreover the numerical value decision of n2 is 4, because first bit " 1 " has 4 " 1 " afterwards continuously in the 5th paragraph.But, because the n2 value among Fig. 7 F equals the n2 value among Fig. 7 C, the required n2 value of the 5th paragraph be with second format record in the N2 position.
Please refer to Fig. 7 G, the 4th reduced rule is judged as the 6th paragraph that may be used on after the 5th paragraph of bit Figure 70.Moreover the numerical value decision of n4 is 2, because occur 2 " 0 " in the row in the 6th paragraph continuously.Because the n4 value of Fig. 7 G (being 2) is less than the n4 value (being 4) of Fig. 7 E, the required n4 value of the 6th paragraph promptly with the 4th format record in the N4 position.
Please refer to Fig. 7 H, the 3rd reduced rule is judged as the 7th paragraph that may be used on being right after after the 6th paragraph of bit Figure 70.Moreover the numerical value decision of n3 is 2, because occur two row " 0 " continuously in the 7th paragraph.Because the n3 value (n3=2) among Fig. 7 H is less than the n3 value (n3=8) among Fig. 7 D, the required n3 value of the 7th paragraph promptly with the 3rd format record in the N3 position.
Abovely only be exemplary in nature to the compression algorithm of four reduced rules that Fig. 7 H discussed with reference to Fig. 7 A.According to another example of the present invention, compression algorithm comprises following reduced rule:
(1) judges in bit figure that continuously whether the highest effective two bits of the paragraph of position are that two to advance value " 1 " then be two to advance value " 0 " afterwards.If determine, calculate and in this paragraph, have two numbers that advance the continuous bit of value " 0 " after the Must Significant Bit unit.Be same as first reduced rule of being discussed to Fig. 7 H with reference to Fig. 7 A about this regular record format and packed data, and it does not discuss.
(2) judge in bit figure that continuously whether the highest effective two bits of the paragraph of position are that two to advance value " 1 " then be that another two advances value " 1 " afterwards.If determine, calculate and in this paragraph, have two numbers that advance the continuous bit of value " 1 " after the Must Significant Bit unit.Be same as second reduced rule of being discussed to Fig. 7 H with reference to Fig. 7 A about this regular record format and packed data, and it does not discuss.
(3) judge in bit figure that continuously whether the highest effective two bits of the paragraph of position are that two to advance value " 0 " then be two to advance value " 1 " afterwards.If determine, calculate and in this paragraph, have two numbers that advance the continuous bit of value " 1 " after the highest significant position unit.Be similar to first reduced rule that Fig. 7 A is discussed to Fig. 7 H about this regular record format and packed data, will not give unnecessary details herein.
(4) judge in bit figure that continuously whether the highest effective two bits of the paragraph of bit are that to advance value " 0 " two then be that another two advances value " 0 " afterwards.If determine, calculate and in this paragraph, have two numbers that advance the continuous bit of value " 0 " after the highest significant position unit.Be similar to first reduced rule of being discussed to Fig. 7 H with reference to Fig. 7 A about this regular record format and packed data, will not give unnecessary details herein.
Fig. 8 A is the schematic diagram of bit element flow 80 after the compression.Please refer to Fig. 8 A, for instance, bit element flow 80 is by being formed to the method shown in Fig. 7 H as Fig. 7 A.For the bit element flow 80 that decompresses, need to use Fig. 7 B numerical value n1 that each paragraph write down in the bitmap 70 shown in Fig. 7 H to n4, and N1 is to N4.When looking a bit and be a unit, bit element flow 80 promptly comprises 37 positions.Compression ratio, promptly the ratio of the bit number after bit number before compression and the compression is calculated as follows.
Compression ratio=(10x12)/(37)
When decompressing beginning, consider the front end paragraph of bit element flow 80 earlier.Because two bits are that " 1 " reaches " 0 " before the bit element flow 80, it is represented during compression is handled and has used first reduced rule, and it is the number (n1) of " 0 " afterwards continuously that following N1 bit is used for having specified at first bit " 1 " by decision.Moreover because the value of N1 is 3, the value of n1 is advanced value by two of preceding two bits " 10 " three bits " 101 " afterwards and is calculated, and promptly equals 5, and first paragraph that causes binary system bit figure is 100000.Therefore, the length of first paragraph of bit element flow 80 is determined by the value of (N1+2), and first paragraph itself comprises about this bitmap reduced rule information (can use preceding two bits to represent), and about the bit number (can represent by the numerical value of ensuing N1 bit) of this reduced rule.Therefore, can be pursuant to the numerical analysis bit element flow 80 of N1, the N2, N3 and the N4 that write down during compression is handled to each paragraph.
Fig. 8 B is the flow chart that meets the decompression method of example of the present invention.Please refer to Fig. 8 B, the bit element flow that decompress is provided in the step 81.Form before this bit element flow ties up to and decompresses, be stored in the object data unit by compression binary system bit figure, and can by access in this object data unit it.Next, provide in the step 82 about compressing the information of reduced rule collected during this bitmap.The information that comprises N1, N2, N3 and N4 has been recorded in the object header, and can by access wherein it.Step 83 holds one section one section ground of paragraph to analyze this bit element flow according to this information before by this bit element flow.Step 84 is by two bit decision bit pattern formulas before each bit element flow paragraph.Then, the bit number that is connected in this bit figure pattern is closed in decision in the step 85.When each paragraph in above-mentioned these bit element flow paragraphs that decompress, can form binary system bit figure then.And then to deciphering corresponding to the object of this bit figure.
The result of Fig. 9 A for English alphabet is experimentized.Please refer to Fig. 9 A, by English alphabet A is implemented method according to the invention to Z, can be found to letter " I " and have maximum compression ratio, approximately is 180, and it mainly is owing to have the quite high symmetry and the form of simplification.And similarly be " G ", " Q " reaches " S " and waits letter, and owing to their symmetry is lower and complicated in form, its compression ratio is less relatively.
The result of Fig. 9 B for one group of Chinese characters is experimentized.Please refer to Fig. 9 B, " worker " be quite high compression ratio owing to symmetry on its font and the property simplified have.On average, Chinese characters can comprise curve, bent angle and corner, and the complexity of its form is higher, and its compression ratio also so often low than English words.
Figure 10 is the block diagram that meets the compression method of example of the present invention.Please refer to Figure 10, the subimage that comprises at least one object is provided in the step 101.Then, form the bit figure of this object in the step 102.In the step 103, whether convertible this bit figure is to promote compression effectiveness with decision to analyze the content (include two advance to be worth bit " 1 " reach " 0 ") of this object.In an example according to the present invention, if in this bit figure, two numbers that advance to be worth bit " 1 " promptly are listed as or carry out line by line the XOR computing to this bit figure one greater than two numbers that enter to be worth bit " 0 ".In another example, then carry out inverse operation for ground, position of this bit figure.The conversion of this bit figure can be undertaken by XOR computing, inverse operation or other suitable computing, and the promptly feasible plurality purpose two that comprises in the bit figure of conversion advances to be worth bit " 0 ".For instance, if change, be about to two and advance in the conversion flag that value " 1 " is written to record format 108.On the contrary, if do not carry out conversion, then advance value " 0 " and be written to this conversion flag two.
Then, in step 104, select to be used for compressing the algorithm of this bitmap.Can select appropriate algorithm according to the content of bit figure.For example, advance value " 0 ", can use to comprise that being similar to Fig. 7 A compresses to the algorithm of the described reduced rule of Fig. 7 H if bit figure comprises two of ordered series of numbers.In another example, then use the algorithm comprise in one of aforesaid four kinds of reduced rules based on the highest effective two bits to compress.Then, to through changing or the bit figure of unconverted implements to carry out length (run-length) compression, promptly carry out according to selected compression algorithm in step 105.Resulting parameter and packed data promptly are recorded in this record format 108 between compression period.Then, can obtain the bit element flow of compression in the step 106 by the packed data that connects this record.
The person of ordinary skill in the field should promptly understand and can change above-mentioned every specific embodiment, and unlikely inventive concepts departing from its broad sense.Therefore, should be appreciated that the present invention is not limited to the certain specific embodiments that this specification discloses, and be the improvement of containing in ownership defined spirit of the present invention of claim and the scope.
In addition, when explanation representative specific embodiment of the present invention, this specification can be shown specific order of steps with method of the present invention and/or activity list; But, because the scope of this method or operation is not limited to the specific order of steps that this paper proposes, so this method or operation should not be subject to described particular step order.Also is feasible as the person of ordinary skill in the field when understanding other order of steps.So, the particular step order that this specification proposed should be considered as restriction to claim.In addition, also the claim of relevant method of the present invention and/or operation only should be limited in enforcement with written contained order of steps, the person of ordinary skill in the field is easy to understand, but the also change of above-mentioned these order, and still be covered by within spirit of the present invention and the category.

Claims (37)

1.一种用于处理图像的子图像数据的方法,其特征是包含:1. A method for processing sub-image data of an image, characterized in that it comprises: 提供该子图像的对象;the object providing the subimage; 形成该对象的二进制位元图;form a bitmap of the object; 决定该二进制位元图中具有二进值1的位元数目是否大于具有二进值0的位元数目;determining whether the number of bits with binary value 1 in the bitmap is greater than the number of bits with binary value 0; 若上述决定之二进值1的位元数目大于二进值0的位元数目,则进行一转换动作转换该二进制位元图成为经转换的二进制位元图,以使得该经转换的二进制位元图中具有该二进值1的位元数目小于具有该二进值0的位元数目;以及If the number of bits of the binary value 1 determined above is greater than the number of bits of the binary value 0, a conversion operation is performed to convert the bitmap into a converted bitmap such that the converted bitmap the number of bits having the binary value 1 in the metamap is less than the number of bits having the binary value 0; and 判断在该二进制位元图或该经转换的二进制位元图中一段连续位段落中的最高有效两个位元以决定压缩规则。Determining the most significant two bits in the bitmap or the converted bitmap for a contiguous segment of bits to determine a compression rule. 2.根据权利要求1所述的用于处理图像的子图像数据的方法,其特征是:2. The method for processing sub-image data of an image according to claim 1, characterized in that: 在决定需要转换该二进制元图成为一经转换的二进制元图之后,该转换动作对于该二进制元图之每两个连续列之间执行一异或的运算。After determining that the binmap needs to be transformed into a transformed binmap, the transforming action performs an XOR operation between every two consecutive columns of the binmap. 3.根据权利要求1所述的用于处理图像的子图像数据的方法,其特征是另包含:3. The method for processing sub-image data of an image according to claim 1, further comprising: 在决定需要转换该二进制元图成为一经转换的二进制元图之后,该转换动作对于该二进制元图各个位执行一非运算。After determining that the binmap needs to be transformed into a transformed binmap, the transform action performs a NOT operation on each bit of the binmap. 4.根据权利要求1所述的用于处理图像的子图像数据的方法,其特征是另包含:4. The method for processing sub-image data of an image according to claim 1, further comprising: 在记录形式的字段中指定是否对该二进制位元图执行转换。Specify whether to perform conversion on this bitmap in the field of the record form. 5.根据权利要求1所述的用于处理图像的子图像数据的方法,其特征是另包含:5. The method for processing sub-image data of an image according to claim 1, further comprising: 在判断完上述最高有效两个位之后,当该最高有效两个位元为二进值1之后接着二进值0时,应用第一压缩规则;以及After the above-mentioned most significant two bits are judged, when the most significant two bits are binary value 1 followed by binary value 0, the first compression rule is applied; and 计算在该最高有效位元之后的具有该二进值0的连续位元的数目。The number of consecutive bits having the binary value 0 following the most significant bit is counted. 6.根据权利要求5所述的用于处理图像的子图像数据的方法,其特征是另包含:6. The method for processing sub-image data of an image according to claim 5, further comprising: 在N1位中记录在该最高有效位元之后具有该二进值0的连续位元的数目n1,其中N1为满足n1≤2N1-1的最小整数。The number n1 of consecutive bits having the binary value 0 after the most significant bit is recorded in N1 bits, where N1 is the smallest integer satisfying n1≤2 N1 -1. 7.根据权利要求6所述的用于处理图像的子图像数据的方法,其特征是另包含:7. The method for processing sub-image data of an image according to claim 6, further comprising: 在N1+2位中,以第一格式记录该二进制位元图的该段落,其中该第一格式的最高有效位元具有该二进值1,该第一格式的第二高有效位元具有该二进值0,以及该第一格式的最低有效N1个位元的数值等于n1。In N1+2 bits, the segment of the bitmap is recorded in a first format, wherein the most significant bit of the first format has the binary value 1 and the second most significant bit of the first format has The binary value 0, and the value of the least significant N1 bits of the first format equal to n1. 8.根据权利要求1所述的用于处理图像的子图像数据的方法,其特征是另包含:8. The method for processing sub-image data of an image according to claim 1, further comprising: 在判断完上述最高有效两个位之后,当该最高有效两个位元为二进值1之后接着另一二进值1时,应用第二压缩规则;以及After the above-mentioned most significant two bits are judged, when the most significant two bits are binary value 1 followed by another binary value 1, the second compression rule is applied; and 计算在该最高有效位元之后的具有该二进值1的连续位元的数目。The number of consecutive bits having the binary value 1 following the most significant bit is counted. 9.根据权利要求8所述的用于处理图像的子图像数据的方法,其特征是另包含:9. The method for processing sub-image data of an image according to claim 8, further comprising: 在N2位中记录在该最高有效位元之后具有该二进值1的连续位元的数目n2,其中N2为满足n2≤2N2-1的最小整数。The number n2 of consecutive bits having the binary value 1 after the most significant bit is recorded in N2 bits, where N2 is the smallest integer satisfying n2≤2 N2 −1. 10.根据权利要求9所述的用于处理图像的子图像数据的方法,其特征是另包含:10. The method for processing sub-image data of an image according to claim 9, further comprising: 在N2+2位中,以第二格式记录该二进制位元图的该段落,其中该第二格式的最高有效位元具有该二进值1,该第二格式的第二高有效位元具有该二进值1,以及该第二格式的最低有效N2个位元的数值等于n2。In N2+2 bits, the segment of the bitmap is recorded in a second format, wherein the most significant bit of the second format has the binary value 1, and the second most significant bit of the second format has The binary value 1, and the value of the least significant N2 bits of the second format are equal to n2. 11.根据权利要求1所述的用于处理图像的子图像数据的方法,其特征是另包含:11. The method for processing sub-image data of an image according to claim 1, further comprising: 在判断完上述最高有效两个位之后,当该最高有效两个位元为二进值0之后接着二进值1时,应用第三压缩规则;以及After the above-mentioned most significant two bits are judged, when the most significant two bits are binary value 0 followed by binary value 1, the third compression rule is applied; and 计算在该最高有效位元之后的具有该二进值1的连续位元的数目。The number of consecutive bits having the binary value 1 following the most significant bit is counted. 12.根据权利要求11所述的用于处理图像的子图像数据的方法,其特征是另包含:12. The method for processing sub-image data of an image according to claim 11, further comprising: 在N3位中记录在该最高有效位元之后具有该二进值1的连续位元的数目n3,其中N3为满足n1≤2N3-1的最小整数。The number n3 of consecutive bits having the binary value 1 after the most significant bit is recorded in N3 bits, where N3 is the smallest integer satisfying n1≤2 N3 -1. 13.根据权利要求12所述的用于处理图像的子图像数据的方法,其特征是另包含:13. The method for processing sub-image data of an image according to claim 12, further comprising: 在N3+2位中,以第三格式记录该二进制位元图的该段落,其中该第三格式的最高有效位元具有该二进值0,该第三格式的第二高有效位元具有该二进值1,以及该第三格式的最低有效N3个位元的数值等于n3。In N3+2 bits, the segment of the bitmap is recorded in a third format, wherein the most significant bit of the third format has the binary value 0 and the second most significant bit of the third format has The binary value 1, and the value of the least significant N3 bits of the third format equal to n3. 14.根据权利要求1所述的用于处理图像的子图像数据的方法,其特征是另包含:14. The method for processing sub-image data of an image according to claim 1, further comprising: 在判断完上述最高有效两个位之后,当该最高有效两个位元为二进值0之后接着另一二进值0时,应用第四压缩规则;以及After the above-mentioned most significant two bits are judged, when the most significant two bits are binary value 0 followed by another binary value 0, the fourth compression rule is applied; and 计算在该最高有效位元之后的具有该二进值0的连续位元的数目。The number of consecutive bits having the binary value 0 following the most significant bit is counted. 15.根据权利要求14所述的用于处理图像的子图像数据的方法,其特征是另包含:15. The method for processing sub-image data of an image according to claim 14, further comprising: 在N4位中记录在该最高有效位元之后具有该二进值0的连续位元的数目n4,其中N4为满足n1≤2N4-1的最小整数。The number n4 of consecutive bits having the binary value 0 after the most significant bit is recorded in N4 bits, where N4 is the smallest integer satisfying n1≤2 N4 −1. 16.根据权利要求15所述的用于处理图像的子图像数据的方法,其特征是另包含:16. The method for processing sub-image data of an image according to claim 15, further comprising: 在N4+2位中,以第四格式记录该二进制位元图的段落,其中该第四格式的最高有效位元具有该二进值0,该第四格式的第二高有效位元具有该二进值0,以及该第四格式的最低有效N4个位元的数值等于n4。In N4+2 bits, a segment of the bitmap is recorded in a fourth format, wherein the most significant bit of the fourth format has the binary value 0 and the second most significant bit of the fourth format has the Binary value 0, and the value of the least significant N4 bits of the fourth format equal to n4. 17.根据权利要求1所述的用于处理图像的子图像数据的方法,其特征是另包含:17. The method for processing sub-image data of an image according to claim 1, further comprising: 在判断完上述最高有效两个位之后,当该最高有效两个位元为二进值0之后接着另一二进值0时,应用第三压缩规则;以及After the above-mentioned most significant two bits are judged, when the most significant two bits are binary value 0 followed by another binary value 0, the third compression rule is applied; and 计算在该最高有效位元之后的具有该二进值0的连续位元列的数目。Count the number of consecutive bit columns having the binary value 0 following the most significant bit. 18.根据权利要求17所述的用于处理图像的子图像数据的方法,其特征是另包含:18. The method for processing sub-image data of an image according to claim 17, further comprising: 在N3位元中记录在该最高有效位元之后具有该二进值0的连续位元列的数目n3,其中N3为满足n3≤2N3-1的最小整数。The number n3 of consecutive bit columns having the binary value 0 after the most significant bit is recorded in the N3 bit, where N3 is the smallest integer satisfying n3≦2 N3 −1. 19.根据权利要求18所述的用于处理图像的子图像数据的方法,其特征是另包含:19. The method for processing sub-image data of an image according to claim 18, further comprising: 在N3+2位中,以第三格式记录该二进制位元图的该段落,其中该第三格式的最高有效位元具有该二进值0,该第三格式的第二高有效位元具有该二进值1,而该第三格式的最低有效N3个位元的数值等于n3。In N3+2 bits, the segment of the bitmap is recorded in a third format, wherein the most significant bit of the third format has the binary value 0 and the second most significant bit of the third format has The binary value is 1, and the value of the least significant N3 bits of the third format is equal to n3. 20.根据权利要求1所述的用于处理图像的子图像数据的方法,其特征是另包含:20. The method for processing sub-image data of an image according to claim 1, further comprising: 在判断完上述最高有效两个位之后,当该最高有效两个位元为二进值0之后接着另一二进值0时,应用第三压缩规则;以及After the above-mentioned most significant two bits are judged, when the most significant two bits are binary value 0 followed by another binary value 0, the third compression rule is applied; and 计算在该二进制位元图的列中,接在该最高有效位元之后的具有该二进值0的连续位元的数目。Count the number of consecutive bits having the binary value 0 following the most significant bit in the column of the bitmap. 21.根据权利要求20所述的用于处理图像的子图像数据的方法,其特征是另包含:21. The method for processing sub-image data of an image according to claim 20, further comprising: 在N4位中记录在该二进制位元图的列中,接在该最高有效位元之后的具有该二进值0的连续位元的数目n4,其中N4为满足n4≤2N4-1的最小整数。The number n4 of consecutive bits with the binary value 0 following the most significant bit in the column of the binary bitmap recorded in N4 bits, where N4 is the minimum satisfying n4≤2 N4 -1 integer. 22.根据权利要求21所述的用于处理图像的子图像数据的方法,其特征是另包含:22. The method for processing sub-image data of an image according to claim 21, further comprising: 在N4+2位中,以第四格式记录该二进制位元图的该段落,其中该第一格式的最高有效位元具有该二进值0,该第一格式的第二高有效位元具有该二进值0,以及该第一格式的最低有效N4个位元的数值等于n4。In N4+2 bits, the segment of the bitmap is recorded in a fourth format in which the most significant bit of the first format has the binary value 0 and the second most significant bit of the first format has The binary value 0, and the value of the least significant N4 bits of the first format are equal to n4. 23.一种用于处理图像的子图像数据的方法,其特征是包含:23. A method for processing sub-image data of an image, characterized by comprising: 提供该子图像的对象;the object providing the subimage; 形成该对象的二进制位元图;form a bitmap of the object; 判断在该二进制位元图中一段连续位段落中的最高有效两个位元以决定压缩规则,determine the most significant two bits in a continuous bit segment in the bitmap to determine the compression rule, 其中如果该最高有效位元具有二进值1,以及接在该最高有效位元后的第二高有效位元具有二进值0,即以第一格式压缩该段落,wherein if the most significant bit has a binary value of 1 and the second most significant bit following the most significant bit has a binary value of 0, the paragraph is compressed in the first format, 并于N1位中记录在该最高有效位元之后的具有该二进值0的连续位元的数目n1,且N1为满足n1≤2N1-1的最小整数,以及And record the number n1 of consecutive bits with the binary value 0 after the most significant bit in the N1 bit, and N1 is the smallest integer satisfying n1≤2 N1 -1, and 如果该最高有效位元具有二进值1,以及接在该最高有效位元后的第二高有效位元具有该二进值1,即以第二格式压缩该段落,if the most significant bit has the binary value 1, and the second most significant bit following the most significant bit has the binary value 1, compressing the paragraph in the second format, 并于N2位元中记录在该最高有效位元之后的具有该二进值1的连续位元的数目n2,且N2为满足n2≤2N2-1的最小整数。And record the number n2 of consecutive bits with the binary value 1 after the most significant bit in the N2 bit, and N2 is the smallest integer satisfying n2≤2 N2 −1. 24.根据权利要求23所述的用于处理图像的子图像数据的方法,其特征是另包含:24. The method for processing sub-image data of an image according to claim 23, further comprising: 决定在该二进制位元图中具有二进值1的位元数目是否大于具有二进值0的位元数目;以及determining whether the number of bits having a binary value of 1 is greater than the number of bits having a binary value of 0 in the bitmap; and 转换该二进制位元图,以使得具有该二进值1的位元数目小于具有该二进值0的位元数目。The bitmap is transformed such that the number of bits having the binary value 1 is less than the number of bits having the binary value 0. 25.根据权利要求24所述的用于处理图像的子图像数据的方法,其特征是另包含:25. The method for processing sub-image data of an image according to claim 24, further comprising: 该二进制位元图的第m列与第m+1列间执行异或运算,其中m为自然数;以及Exclusive OR operation is performed between column m and column m+1 of the binary bitmap, wherein m is a natural number; and 将该异或运算的结果写入另一二进制位元图的第m+1列。The result of the XOR operation is written into the m+1th column of another bitmap. 26.根据权利要求23所述的用于处理图像的子图像数据的方法,其特征是另包含:26. The method for processing sub-image data of an image according to claim 23, further comprising: 在记录形式的字段中指定是否对该二进制位元图执行转换。Specify whether to perform conversion on this bitmap in the field of the record form. 27.根据权利要求23所述的用于处理图像的子图像数据的方法,其特征是另包含:27. The method for processing sub-image data of an image according to claim 23, further comprising: 如果该最高有效位元具有二进值0,以及接在该最高有效位元后的第二高有效位元具有二进值1,即以第三格式压缩该段落;以及if the most significant bit has a binary value of 0, and the second most significant bit following the most significant bit has a binary value of 1, the paragraph is compressed in the third format; and 在N3位中记录在该最高有效位元之后的具有该二进值1的连续位元的数目n3,其中N3为满足n3≤2N3-1的最小整数。The number n3 of consecutive bits having the binary value 1 following the most significant bit is recorded in N3 bits, where N3 is the smallest integer satisfying n3≤2 N3 -1. 28.根据权利要求23所述的用于处理图像的子图像数据的方法,其特征是另包含:28. The method for processing sub-image data of an image according to claim 23, further comprising: 如果该最高有效位元具有二进值0,以及接在该最高有效位元后的第二高有效位元具有该二进值0,即以第四格式压缩该段落;以及if the most significant bit has the binary value 0, and the second most significant bit following the most significant bit has the binary value 0, then compress the paragraph in the fourth format; and 在N4位中记录在该最高有效位元之后的具有该二进值0的连续位元的数目n4,其中N4为满足n4≤2N4-1的最小整数。The number n4 of consecutive bits with the binary value 0 following the most significant bit is recorded in N4 bits, where N4 is the smallest integer satisfying n4≤2 N4 −1. 29.根据权利要求23所述的用于处理图像的子图像数据的方法,其特征是另包含:29. The method for processing sub-image data of an image according to claim 23, further comprising: 如果该最高有效位元具有二进值0,以及接在该最高有效位元后的连续位元列具有该二进值0,即以第三格式压缩该段落;以及compressing the paragraph in the third format if the most significant bit has the binary value 0, and the consecutive column of bits following the most significant bit has the binary value 0; and 在N3位中记录在该最高有效位元之后的具有该二进值0的连续位元列的数目n3,其中N3为满足n3≤2N3-1的最小整数。The number n3 of consecutive bit columns having the binary value 0 following the most significant bit is recorded in N3 bits, where N3 is the smallest integer satisfying n3≦2 N3 -1. 30.根据权利要求23所述的用于处理图像的子图像数据的方法,其特征是另包含:30. The method for processing sub-image data of an image according to claim 23, further comprising: 如果该最高有效位元具有二进值0,以及接在该最高有效位元后的该二进制位元图列的连续位元具有该二进值0,即以第四格式压缩该段落;以及if the most significant bit has a binary value of 0, and consecutive bits of the bitmap sequence following the most significant bit have the binary value 0, compressing the paragraph in the fourth format; and 在N4位中记录在该最高有效位元之后的二进制元图的列中具有该二进值0的连续位元的数目n4,其中N4为满足n4≤2N4-1的最小整数。The number n4 of consecutive bits having the binary value 0 in the column of the binary map following the most significant bit is recorded in N4 bits, where N4 is the smallest integer satisfying n4≤2 N4 -1. 31.一种能够对于图像的子图像进行数据压缩的方法,其特征是包含:31. A method capable of performing data compression on a sub-image of an image, characterized by comprising: 提供该子图像的对象;the object providing the subimage; 形成该对象的二进制位元图;form a bitmap of the object; 决定该段落的最高有效两个位元,以决定能够压缩该二进制位元图中一段连续位元的压缩规则;determine the most significant two bits of the segment to determine a compression rule capable of compressing a segment of consecutive bits in the bitmap; 根据该压缩规则压缩该段连续位元以形成经压缩的段落;以及compressing the segment of consecutive bits according to the compression rule to form a compressed segment; and 以数据格式记录对应于该压缩规则的参数,其中该参数决定该经压缩段落的长度。A parameter corresponding to the compression rule is recorded in a data format, wherein the parameter determines the length of the compressed segment. 32.根据权利要求31所述的对于图像的子图像进行数据压缩的方法,其特征是另包含:32. The method for performing data compression on sub-images of an image according to claim 31, further comprising: 以该数据格式记录对应于第一压缩规则的一第一参数N1,其中该第一参数N1决定记录在该段落中,接在具有二进值1的该最高有效位元之后的具有二进值0的连续位元的数目n1所需要的位元数目。A first parameter N1 corresponding to the first compression rule is recorded in the data format, wherein the first parameter N1 is determined to be recorded in the paragraph following the most significant bit with binary value 1 with binary value The number of consecutive bits of 0 n1 is the number of bits required. 33.根据权利要求31所述的对于图像的子图像进行数据压缩的方法,其特征是另包含:33. The method for performing data compression on sub-images of an image according to claim 31, further comprising: 以该数据格式记录对应于第二压缩规则的第二参数N2,其中该第二参数N2决定记录在该段落中,接在具有二进值1的该最高有效位元之后的具有该二进值1的连续位元的数目n2所需要的位元数目。A second parameter N2 corresponding to a second compression rule is recorded in the data format, wherein the second parameter N2 determines to be recorded in the paragraph following the most significant bit with binary value 1 with the binary value The number of consecutive bits n2 of 1 is the number of bits required. 34.根据权利要求31所述的对于图像的子图像进行数据压缩的方法,其特征是另包含:34. The method for performing data compression on sub-images of an image according to claim 31, further comprising: 以该数据格式记录对应于第三压缩规则的第三参数N3,其中该第三参数N3决定记录在该段落中,接在具有二进值0的该最高有效位元之后的具有二进值1的连续位元的数目n3所需要的位元数目。A third parameter N3 corresponding to a third compression rule is recorded in the data format, wherein the third parameter N3 determines to be recorded in the paragraph following the most significant bit with binary value 0 with binary value 1 The number of bits required for the number of consecutive bits n3. 35.根据权利要求31所述的对于图像的子图像进行数据压缩的方法,其特征是另包含:35. The method for performing data compression on a sub-image of an image according to claim 31, further comprising: 以该数据格式记录对应于第四压缩规则的第四参数N4,其中该第四参数N4决定记录在该段落中,具有二进值0的该最高有效位元之后的具有该二进值0的连续位元的数目n4所需要的位元数目。Record the fourth parameter N4 corresponding to the fourth compression rule in the data format, wherein the fourth parameter N4 determines to record in the paragraph, the most significant bit with the binary value 0 followed by the bit with the binary value 0 The number of consecutive bits n4 is the number of bits required. 36.根据权利要求31所述的对于图像的子图像进行数据压缩的方法,其特征是另包含:36. The method for performing data compression on sub-images of an image according to claim 31, further comprising: 以该数据格式记录对应于第三压缩规则的一第三参数N3,其中该第三参数N3决定记录在该段落中,具有二进值0的该最高有效位元之后的具有该二进值0的连续位元列的数目n3所需要的位元数目。A third parameter N3 corresponding to a third compression rule is recorded in the data format, wherein the third parameter N3 determines to record in the paragraph, the most significant bit with binary value 0 following the most significant bit with binary value 0 The number of bits required for the number n3 of consecutive bit columns. 37.根据权利要求31所述的对于图像的子图像进行数据压缩的方法,其特征是另包含:37. The method for compressing data of a sub-image of an image according to claim 31, further comprising: 以该数据格式记录对应于第四压缩规则的第四参数N4,其中该第四参数N4决定记录在该段落的列中,具有二进值0的该最高有效位元之后的具有该二进值0的连续位元的数目n4所需要的位元数目。A fourth parameter N4 corresponding to a fourth compression rule is recorded in the data format, wherein the fourth parameter N4 decides to record in the column of the paragraph, the most significant bit having the binary value 0 following the binary value The number of consecutive bits n4 of 0 is the number of bits required.
CN 200610140264 2005-10-20 2006-10-20 Image Compression Method Expired - Fee Related CN100574435C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610140264 CN100574435C (en) 2005-10-20 2006-10-20 Image Compression Method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200510114341 2005-10-20
CN200510114341.2 2005-10-20
CN 200610140264 CN100574435C (en) 2005-10-20 2006-10-20 Image Compression Method

Publications (2)

Publication Number Publication Date
CN1976459A CN1976459A (en) 2007-06-06
CN100574435C true CN100574435C (en) 2009-12-23

Family

ID=38126200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610140264 Expired - Fee Related CN100574435C (en) 2005-10-20 2006-10-20 Image Compression Method

Country Status (1)

Country Link
CN (1) CN100574435C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815875B (en) * 2016-12-06 2020-02-07 腾讯科技(深圳)有限公司 Method and device for encoding and decoding information bitmap

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5721720A (en) * 1994-12-28 1998-02-24 Kabushiki Kaisha Toshiba Optical recording medium recording pixel data as a compressed unit data block
US6009202A (en) * 1994-12-28 1999-12-28 Kabushiki Kaisha Toshiba Image information encoding/decoding system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5721720A (en) * 1994-12-28 1998-02-24 Kabushiki Kaisha Toshiba Optical recording medium recording pixel data as a compressed unit data block
US6009202A (en) * 1994-12-28 1999-12-28 Kabushiki Kaisha Toshiba Image information encoding/decoding system
US6044175A (en) * 1994-12-28 2000-03-28 Kabushiki Kaisha Toshiba Image information encoding/decoding system

Also Published As

Publication number Publication date
CN1976459A (en) 2007-06-06

Similar Documents

Publication Publication Date Title
US8019166B2 (en) Image data compression method and apparatuses, image display method and apparatuses
US8213727B2 (en) Image encoding apparatus and image decoding apparatus, and control method thereof
US8902992B2 (en) Decoder for selectively decoding predetermined data units from a coded bit stream
JPH04298162A (en) Method for compressing neighboring-block estimating bit
US5528003A (en) Data compression for pen stroke input
CN103024393B (en) A kind of compression for single image and decompressing method
US20030184809A1 (en) Grayscale and binary image data compression
EP2787738A1 (en) Tile-based compression and decompression for graphic applications
CN101516007A (en) single bit plane compression system
CN102224727A (en) Image processing apparatus, image processing method and program
KR100823498B1 (en) Methods for Compressing Images
CN112118449A (en) Method and device for compressing and decompressing image
CN100574435C (en) Image Compression Method
CN112036290B (en) A complex scene text recognition method and system based on class label encoding representation
US7259891B2 (en) Image compression method, decompression method thereof and program therefor
JPH0215782A (en) Picture encoding system
JPH06217110A (en) Image converting method
US20020081038A1 (en) Graphic image coding
CN101266775B (en) Compression storage method and decompression method for lattice word library
US20050018910A1 (en) Method and apparatus for reducing the bandwidth required to transmit image data
CN101489018A (en) Static image compression method and computer readable storage apparatus
Nagarajan et al. An enhanced approach in run length encoding scheme (EARLE)
Koval et al. A lossless image compression algorithm based on group encoding
JP4001482B2 (en) Image compression method, decompression method and program
JPS61184648A (en) Storing system for character data and image data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091223

Termination date: 20151020

EXPY Termination of patent right or utility model