[go: up one dir, main page]

CN105245888A - Image compression method and image compression device - Google Patents

Image compression method and image compression device Download PDF

Info

Publication number
CN105245888A
CN105245888A CN201410258090.4A CN201410258090A CN105245888A CN 105245888 A CN105245888 A CN 105245888A CN 201410258090 A CN201410258090 A CN 201410258090A CN 105245888 A CN105245888 A CN 105245888A
Authority
CN
China
Prior art keywords
pixel
pixel set
index value
continuous print
coding unit
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
CN201410258090.4A
Other languages
Chinese (zh)
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to CN201410258090.4A priority Critical patent/CN105245888A/en
Publication of CN105245888A publication Critical patent/CN105245888A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The invention provides an image compression method and an image compression device. The image compression method comprises the steps of scanning each pixel in an image coding unit, and acquiring a plurality of pixel sets; distributing a unique index value for a gray value set of each pixel set, and generating an index table, wherein two pixel sets with a symmetry characteristic are identical in index value, and identification information is added to the two pixel sets with the symmetry characteristic so as to differentiate pixel sets with a forward order or a reverse order; and carrying out entropy coding on the coding unit according to the index value of each pixel set in the index table and the image coding unit, wherein if the reverse order of M continuous pixels is matched with other M continuous pixels, the M continuous pixels and the other M continuous pixels are determined to have the symmetry characteristic. The technical scheme provided by the invention utilizes the symmetry characteristics of characters in coding, thereby being capable of reducing the amount of data for expressing an image, reducing the space occupation of data, and improving the data transmission efficiency.

Description

图像压缩方法和图像压缩装置Image compression method and image compression device

技术领域technical field

本发明涉及图像处理技术领域,具体而言,涉及图像压缩方法和图像压缩装置。The present invention relates to the technical field of image processing, in particular, to an image compression method and an image compression device.

背景技术Background technique

图像压缩用于减少表示数字图像时需要的数据量,图像之所以能被压缩,是因为数据中存在这冗余,数据压缩的目的就是通过去除这些数据冗余来减少表示数据所需的比特数。由于图像数据量庞大,在存储、传输、处理时较苦难,因此图像数据的压缩显得非常重要。图像压缩可以是有损数据压缩,也可以是无损数据压缩。但无论是无损数据压缩还是有损数据压缩,目前的图像压缩方法均没有考虑到字符中存在的对称性特征。Image compression is used to reduce the amount of data required to represent digital images. The reason why images can be compressed is because there is redundancy in the data. The purpose of data compression is to reduce the number of bits required to represent data by removing these data redundancies. . Due to the huge amount of image data, it is more difficult to store, transmit, and process, so image data compression is very important. Image compression can be either lossy or lossless data compression. However, whether it is lossless data compression or lossy data compression, the current image compression methods do not take into account the symmetry characteristics of characters.

发明内容Contents of the invention

有鉴于此,本发明提出了一种新的图像压缩技术,利用字符中存在的对称性特征进行图像编码,进一步减少了图像压缩量。In view of this, the present invention proposes a new image compression technology, which utilizes the symmetry feature existing in characters to encode images, further reducing the amount of image compression.

有鉴于此,根据本发明的一个方面,提供了一种图像压缩方法,包括:扫描图像编码单元中的每一像素,得到多个像素集合;为每一像素集合的灰度值集合分配唯一索引值,生成索引表,其中,具有对称性特征的两个像素集合的索引值相同,在所述具有对称性特征的两个像素集合中添加标识信息,以区分正向顺序或逆向顺序的像素集合;根据所述索引表和所述图像编码单元中每一像素集合的索引值对所述编码单元进行熵编码,其中,若一连续的M个像素的逆顺序与另一连续的M个像素匹配,则确定所述一连续的M个像素与所述另一连续的M个像素之间具有对称性特征。In view of this, according to one aspect of the present invention, an image compression method is provided, including: scanning each pixel in the image coding unit to obtain multiple pixel sets; assigning a unique index to the gray value set of each pixel set value, generate an index table, wherein the index values of the two pixel sets with symmetry characteristics are the same, and add identification information to the two pixel sets with symmetry characteristics to distinguish the pixel sets in the forward order or reverse order ; Perform entropy coding on the coding unit according to the index table and the index value of each pixel set in the image coding unit, wherein, if the reverse order of one consecutive M pixels matches another consecutive M pixels , it is determined that there is a symmetry feature between the one continuous M pixel and the other continuous M pixel.

根据本发明的另一方面,还提供了一种图像压缩装置,包括:扫描单元,扫描图像编码单元中的每一像素,得到多个像素集合;索引表生成单元,为每一像素集合的灰度值集合分配唯一索引值,生成索引表,其中,具有对称性特征的两个像素集合的索引值相同,在所述具有对称性特征的两个像素集合中添加标识信息,以区分正向顺序或逆向顺序的像素集合;编码单元,根据所述索引表和所述图像编码单元中每一像素集合的索引值对所述编码单元进行熵编码,其中,若一连续的M个像素的逆顺序与另一连续的M个像素匹配,则确定所述一连续的M个像素与所述另一连续的M个像素之间具有对称性特征。According to another aspect of the present invention, an image compression device is also provided, including: a scanning unit that scans each pixel in the image coding unit to obtain a plurality of pixel sets; The degree value set is assigned a unique index value, and an index table is generated, wherein the index values of the two pixel sets with symmetry characteristics are the same, and identification information is added to the two pixel sets with symmetry characteristics to distinguish the forward order Or a set of pixels in reverse order; the coding unit performs entropy coding on the coding unit according to the index table and the index value of each pixel set in the image coding unit, wherein, if the reverse order of a consecutive M pixels If matched with another consecutive M pixels, then it is determined that there is a symmetry feature between the one consecutive M pixels and the other consecutive M pixels.

根据本发明的再一个方面,还提供了一种电子设备,该电子设备包括如上所述的图像压缩装置。According to still another aspect of the present invention, there is also provided an electronic device, which includes the above-mentioned image compression device.

根据本发明的又一个方面,还提供了一种存储有机器可读取的指令代码的程序产品,上述程序产品在执行时能够使上述机器执行如上所述的图像压缩方法。According to still another aspect of the present invention, there is also provided a program product storing machine-readable instruction codes. When the program product is executed, the above-mentioned machine can execute the above-mentioned image compression method.

此外,根据本发明的其他方面,还提供了一种计算机可读存储介质,其上存储有如上所述的程序产品。In addition, according to other aspects of the present invention, there is also provided a computer-readable storage medium on which the above-mentioned program product is stored.

上述根据本发明实施例的图像压缩装置、图像压缩方法以及电子设备,对编码单元进行扫描,生成索引表,在索引表中具有对称性特征的两个像素集合的索引值相同,能够至少实现以下有益效果之一:减少索引值的数量,并进一步减少表示图像的数据量;特别适用于对计算机生成的图像或截屏图像进行压缩。The above-mentioned image compression device, image compression method, and electronic equipment according to the embodiments of the present invention scan the encoding unit to generate an index table. In the index table, the index values of two sets of pixels with symmetry characteristics are the same, and can at least achieve the following One of the beneficial effects: reducing the number of index values and further reducing the amount of data representing images; it is especially suitable for compressing computer-generated images or screenshot images.

通过以下结合附图对本发明的最佳实施例的详细说明,本发明的这些以及其他优点将更加明显。These and other advantages of the present invention will be more apparent through the following detailed description of the preferred embodiments of the present invention with reference to the accompanying drawings.

附图说明Description of drawings

本发明可以通过参考下文中结合附图所给出的描述而得到更好的理解,其中在所有附图中使用了相同或相似的附图标记来表示相同或者相似的部件。所述附图连同下面的详细说明一起包含在本说明书中并且形成本说明书的一部分,而且用来进一步举例说明本发明的优选实施例和解释本发明的原理和优点。在附图中:The present invention can be better understood by referring to the following description given in conjunction with the accompanying drawings, wherein the same or similar reference numerals are used throughout to designate the same or similar parts. The accompanying drawings, together with the following detailed description, are incorporated in and form a part of this specification, and serve to further illustrate preferred embodiments of the invention and explain the principles and advantages of the invention. In the attached picture:

图1示出了根据本发明的一个实施例的图像压缩方法的流程示意图;Fig. 1 shows a schematic flow chart of an image compression method according to an embodiment of the present invention;

图2示出了根据本发明的另一实施例的图像压缩方法的流程示意图;FIG. 2 shows a schematic flow diagram of an image compression method according to another embodiment of the present invention;

图3示出了一个具有对称性特征的字符示意图;Fig. 3 shows a schematic diagram of characters with symmetry features;

图4示出了另一具有对称性特征的字符示意图;Fig. 4 shows another schematic diagram of characters with symmetry features;

图5示出了根据本发明的一个实施例的图像压缩装置的框图;Fig. 5 shows a block diagram of an image compression device according to an embodiment of the present invention;

图6A示出了图5所示的图像压缩装置中索引表生成单元的一个实施例的示意图;FIG. 6A shows a schematic diagram of an embodiment of an index table generation unit in the image compression device shown in FIG. 5;

图6B示出了图5所示的图像压缩装置中索引表生成单元的另一实施例的示意图。FIG. 6B shows a schematic diagram of another embodiment of the index table generation unit in the image compression device shown in FIG. 5 .

具体实施方式detailed description

为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.

在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明并不限于下面公开的具体实施例的限制。In the following description, many specific details are set forth in order to fully understand the present invention, but the present invention can also be implemented in other ways different from those described here, therefore, the present invention is not limited to the specific embodiments disclosed below limit.

图1示出了根据本发明的一个实施例的图像压缩方法的流程示意图。Fig. 1 shows a schematic flowchart of an image compression method according to an embodiment of the present invention.

如图1所示,根据本发明的实施例的图像压缩方法可以包括以下步骤:As shown in Figure 1, the image compression method according to an embodiment of the present invention may include the following steps:

步骤102,扫描图像编码单元中的每一像素,得到多个像素集合;Step 102, scanning each pixel in the image coding unit to obtain a plurality of pixel sets;

步骤104,为每一像素集合的灰度值集合分配唯一索引值,生成索引表,其中,具有对称性特征的两个像素集合的索引值相同,在具有对称性特征的两个像素集合中添加标识信息,以区分正向顺序或逆向顺序的像素集合;Step 104, assign a unique index value to the gray value set of each pixel set, and generate an index table, wherein, the index values of the two pixel sets with symmetry characteristics are the same, and add Identification information to distinguish between forward-ordered and reverse-ordered sets of pixels;

步骤106,根据索引表和图像编码单元中每一像素集合的索引值对编码单元进行熵编码,Step 106, perform entropy coding on the coding unit according to the index table and the index value of each pixel set in the image coding unit,

其中,若一连续的M个像素的逆顺序与另一连续的M个像素匹配,则确定一连续的M个像素与另一连续的M个像素之间具有对称性特征。Wherein, if the reverse order of one consecutive M pixels matches another consecutive M pixels, it is determined that there is a symmetry feature between one consecutive M pixels and another consecutive M pixels.

根据本发明的技术方案在编码时利用了字符的对称性特征,可能够大大减少表示图像的数据量,减少数据占用空间,并提高数据传输效率。According to the technical scheme of the present invention, the symmetry feature of the characters is utilized during coding, which can greatly reduce the amount of data representing images, reduce the space occupied by data, and improve the efficiency of data transmission.

在上述步骤104中,所述索引表的生成过程包括:In the above step 104, the generation process of the index table includes:

扫描所述编码单元,若连续的M个像素具有不同的灰度值,且在索引表中未查找到与所述连续的M个像素具有对称性特征的像素集合,则将所述M个像素作为一个像素集合;Scanning the encoding unit, if the M consecutive pixels have different gray values, and no set of pixels having symmetry characteristics with the M consecutive pixels is found in the index table, then the M pixels are as a collection of pixels;

在所述索引表中保存所述M个像素的灰度值集合,以及为所述灰度值集合分配唯一索引值;saving the gray value set of the M pixels in the index table, and assigning a unique index value to the gray value set;

若在索引表中查找到与所述连续的M个像素具有对称性特征的像素集合,则使用所述索引表中与查找出的像素集合对应的索引值作为所述连续的M个像素的索引值。If a pixel set having symmetry characteristics with the continuous M pixels is found in the index table, then use the index value corresponding to the found pixel set in the index table as the index of the continuous M pixels value.

例如,按照光栅扫描顺序从上往下逐行扫描,像素1、2、3为连续的并且像素值不相同的三个像素,于是将1、2、3作为一个像素集合并保存在索引表中,为该像素集合分配索引值A,接着扫描像素4、5、6,同样发现其为连续的并且像素值不相同的三个像素,于是判断该组像素4、5、6是否与索引表中已保存的像素集合具有对称性特征,如果没有找到,则继续保存该组像素,并为其分配唯一索引值B。接着扫描像素6、5、4,发现像素集合6、5、4与索引表中已保存的像素集合4、5、6具有对称性特征,于是将像素集合4、5、6的索引值B作为像素集合4、5、6的索引值,使像素集合6、5、4与像素集合4、5、6的索引值相同。以此类推,从而完成索引值的分配。For example, scan row by row from top to bottom in raster scan order, pixels 1, 2, and 3 are three consecutive pixels with different pixel values, so 1, 2, and 3 are regarded as a set of pixels and stored in the index table , assign an index value A to the set of pixels, then scan pixels 4, 5, and 6, and find three consecutive pixels with different pixel values, then judge whether the set of pixels 4, 5, and 6 are consistent with the index table The saved pixel set has symmetry characteristics, if not found, continue to save this group of pixels and assign a unique index value B to it. Then scan pixels 6, 5, and 4, and find that pixel sets 6, 5, and 4 have symmetry characteristics with the pixel sets 4, 5, and 6 saved in the index table, so the index value B of pixel sets 4, 5, and 6 is used as The index values of the pixel sets 4, 5, and 6 make the index values of the pixel sets 6, 5, and 4 the same as those of the pixel sets 4, 5, and 6. By analogy, the allocation of index values is completed.

在判断两个像素集合是否具有对称性特征时,可将其中一个像素集合进行逆顺序处理,将经过重新排序后的像素集合与另一像素集合进行比对,如果两个像素集合相同,则说明原来的两个像素集合具有对称性特征。When judging whether two pixel sets have symmetry characteristics, one of the pixel sets can be processed in reverse order, and the reordered pixel set is compared with the other pixel set. If the two pixel sets are the same, it means The original two sets of pixels are characterized by symmetry.

此外,为了准确还原图像,在编码时,需增加标识信息,以表示哪个像素集合是正顺序,哪个像素集合是逆顺序。当然,也可以只增加一个标识信息,没有增加标识信息的像素集合为默认为相反。In addition, in order to accurately restore the image, identification information needs to be added during encoding to indicate which pixel set is in the forward order and which pixel set is in the reverse order. Of course, it is also possible to add only one identification information, and the set of pixels without identification information is defaulted to be the opposite.

在上述步骤104中,所述索引表的生成过程也可以包括:In the above step 104, the generation process of the index table may also include:

在第一方向上以M个像素为步长扫描所述编码单元,在第二方向上以M个像素为步长扫描所述编码单元,其中,所述第一方向与所述第二方向相反;Scanning the coding unit in a first direction with a step size of M pixels, and scanning the coding unit in a second direction with a step size of M pixels, wherein the first direction is opposite to the second direction ;

将在第一方向上的扫描结果与在第二方向上的扫描结果进行比对,若两个像素集合相同,则确定所述两个像素集合是具有对称性特征的两个像素集合;Comparing the scanning result in the first direction with the scanning result in the second direction, if the two pixel sets are the same, then determining that the two pixel sets are two pixel sets with symmetric characteristics;

为每一像素集合分配唯一索引值,其中,对具有对称性特征的两个像素集合赋予相同的索引值。A unique index value is assigned to each pixel set, wherein the same index value is assigned to two pixel sets with symmetric features.

例如,在第一次扫描时,以4个像素为一组进行扫描,并在从左往右扫描,这样就得到多个像素集合,在第二次扫描时,仍以4个像素为一组进行扫描,并从右往左扫描,同样得到多个像素集合。For example, in the first scan, scan in groups of 4 pixels, and scan from left to right, so that multiple sets of pixels are obtained, and in the second scan, still in groups of 4 pixels Scan, and scan from right to left, also get a plurality of pixel sets.

将这两次的扫描结合进行比对,原本是具有对称性特征的两个像素集合,经过上述方式的扫描之后,可得到两个相同的像素集合,因此如果在扫描结果中发现两个像素集合相同,则说明这两个初始像素集合具有对称性特征。Combining the two scans for comparison, originally two sets of pixels with symmetric characteristics, after scanning in the above way, two identical sets of pixels can be obtained, so if two sets of pixels are found in the scan results If they are the same, it means that the two initial pixel sets have symmetry characteristics.

最后,如果对于没有对称性特征的像素集合,采用调色板编码或差值编码进行编码,以进一步减少压缩数据量。Finally, for a pixel set without symmetry features, palette coding or difference coding is used for coding to further reduce the amount of compressed data.

图2示出了根据本发明的另一实施例的图像压缩方法的流程示意图。Fig. 2 shows a schematic flowchart of an image compression method according to another embodiment of the present invention.

如图2所示,根据本发明的实施例的图像压缩方法,可以包括以下步骤:As shown in Figure 2, the image compression method according to an embodiment of the present invention may include the following steps:

步骤202,按照光栅扫描顺序扫描每一编码单元。Step 202, scan each coding unit in raster scan order.

步骤204,如果多个像素是连续的并且具有不同的像素值,则将该多个像素作为一个像素集合并将其保存在索引表中,每一像素集合分配一个索引值。Step 204, if the multiple pixels are continuous and have different pixel values, the multiple pixels are regarded as a pixel set and stored in the index table, and each pixel set is assigned an index value.

步骤206,继续扫描编码单元,判断后续的符合条件的多个像素是否在索引表中可找到具有对此性特征的像素集合,如果能找到,则进入步骤210,如果不能找到,则进入步骤208。Step 206, continue to scan the encoding unit, and judge whether the subsequent plurality of pixels that meet the conditions can find a set of pixels with corresponding characteristics in the index table, if found, go to step 210, if not, go to step 208 .

步骤208,对于不具有对称性特征的像素采用差值编码或调色板编码。Step 208, use difference coding or palette coding for pixels that do not have symmetric features.

步骤210,使具有对称性特征的两个像素集合的索引值保持相同,并添加标识信息,以区分正顺序和逆顺序。在还原成图像时,能够根据标识信息正确确定像素顺序,得到准确的图像。Step 210, keep the index values of the two pixel sets with symmetry characteristics the same, and add identification information to distinguish the forward order and the reverse order. When restoring to an image, the sequence of pixels can be correctly determined according to the identification information, and an accurate image can be obtained.

步骤212,根据索引表和各像素集合对应的索引值对编码单元进行熵编码。Step 212: Perform entropy coding on the coding unit according to the index table and the index value corresponding to each pixel set.

图3示出了根据本发明的一个实施例的具有对称性特征的字符示意图。Fig. 3 shows a schematic diagram of characters with symmetrical features according to an embodiment of the present invention.

在复杂的图像中,特别是屏幕截图或计算机生成的图像,存在大量的字符,例如中文、英文。对于中文来说,至少有8.74%的字符存在对称性特征,对于英文来说,至少有50%的字符存在对称性特征。如果采用本发明提供的方式对这部分字符进行压缩处理,则能够大大减少表示图像的数据量。In complex images, especially screenshots or computer-generated images, there are a large number of characters, such as Chinese, English. For Chinese, at least 8.74% of the characters have symmetrical features, and for English, at least 50% of the characters have symmetrical features. If the method provided by the present invention is used to compress these characters, the amount of data representing the image can be greatly reduced.

如图3所示,示出了一个具有对称性特征的英文字符“O”,根据本发明的图像压缩方法扫描编码单元中的每一像素,按照光栅扫描顺序扫描逐行扫描编码单元,例如以4个像素为步长进行像素分析,在图3中,每一行像素可得到4个像素集合,例如第一行的第1个像素集合中,各像素的像素值相同,因此不考虑该像素集合;在第2个像素集合中,各像素的像素值不相同,因此将其保存在索引表中,并为其分配一个索引值,例如m;在第3个像素集合中,各像素的像素值不相同,于是在索引表中查找,判断在索引表中是否有与该第3个像素集合具有对称性特征,发现索引表中已保存的第2个像素集合与该第3个像素集合之间具有对称性特征(在判断时,可将第3个像素集合进行逆顺序处理,然后将处理结果与第2个像素集合进行比对,如果相同,则说明第3个像素集合与第2个像素集合具有对称性特征),于是将第2个像素集合的索引值作为第3个像素集合的索引值,使具有对称性特征的两个像素集合的索引值相同;第4个像素集合中的4个像素的像素值相同,于是不对该像素集合进行处理。在扫描到第二行时,按照上述方式进行对称性特征判断,以此类推,在此不再赘述。As shown in FIG. 3 , an English character "O" with symmetrical features is shown. According to the image compression method of the present invention, each pixel in the coding unit is scanned, and the progressive scanning coding unit is scanned in raster scanning order, for example, in 4 pixels are the step length for pixel analysis. In Figure 3, each row of pixels can obtain 4 pixel sets. For example, in the first pixel set of the first row, the pixel values of each pixel are the same, so this pixel set is not considered ;In the second pixel set, the pixel values of each pixel are different, so it is stored in the index table and assigned an index value, such as m; in the third pixel set, the pixel value of each pixel They are not the same, so look up in the index table to determine whether there is a symmetry feature with the third pixel set in the index table, and find that there is a gap between the second pixel set saved in the index table and the third pixel set Symmetrical features (when judging, the third pixel set can be processed in reverse order, and then the processing result is compared with the second pixel set, if they are the same, it means that the third pixel set and the second pixel set set has symmetry characteristics), so the index value of the second pixel set is used as the index value of the third pixel set, so that the index values of the two pixel sets with symmetry characteristics are the same; 4 in the fourth pixel set The pixel values of the pixels are the same, so the pixel set is not processed. When the second row is scanned, the symmetry feature is judged in the above manner, and so on, which will not be repeated here.

上述仅仅举了一个例子,应理解,扫描方向还可以从上往下扫描,也可以从下往上逐行扫描,也可以从左至右逐列扫描。扫描步长可以是2个像素到6个像素之间,像素越多,可能处理速度越快,像素越少,可能处理结果越精确。The above is just an example, and it should be understood that the scanning direction can also be scanned from top to bottom, row by row from bottom to top, or row by column from left to right. The scanning step can be between 2 pixels and 6 pixels. The more pixels, the faster the processing speed may be, and the fewer pixels may be, the more accurate the processing result may be.

在本实施例中,根据本发明的图像压缩方法被应用在每一编码单元中,编码单元的尺寸可以是从8×8到64×64之间。In this embodiment, the image compression method according to the present invention is applied in each coding unit, and the size of the coding unit may be from 8×8 to 64×64.

又例如图4所示的中文字符“品”,该“品”从整体上述也具有对称性特征,采用本发明的图像压缩方法可大大缩减这类图像的数据量,因此对于中文字符也可以按照上述处理过程进行压缩处理。经过上述扫描判断之后,可得到如下表所示的索引表:Another example is the Chinese character "品" shown in Figure 4. This "品" also has a symmetrical feature as a whole. The image compression method of the present invention can greatly reduce the data volume of this type of image. Therefore, Chinese characters can also be processed according to The above processing process performs compression processing. After the above scanning and judgment, the index table shown in the following table can be obtained:

索引值index value 像素集合值pixel set value 00 {240,230,225,250}{240,230,225,250} 11 {230,200,220,255}{230,200,220,255} 77

对于不具有对称性特征的像素,可采用差值编码或调色板编码对这些像素进行编码,以进一步减少表示图像的数据量。For pixels that do not have symmetric features, difference coding or palette coding can be used to code these pixels to further reduce the amount of data representing the image.

接下来结合图5至图6B说明根据本发明的图像压缩装置的结构。Next, the structure of the image compression device according to the present invention will be described with reference to FIG. 5 to FIG. 6B .

图5示出了根据本发明的实施例的图像压缩装置的示意图。Fig. 5 shows a schematic diagram of an image compression device according to an embodiment of the present invention.

如图5所示,根据本发明的实施例图像压缩装置400包括:As shown in FIG. 5, an image compression device 400 according to an embodiment of the present invention includes:

扫描单元502,扫描图像编码单元中的每一像素,得到多个像素集合;A scanning unit 502, scanning each pixel in the image encoding unit to obtain a plurality of pixel sets;

索引表生成单元504,为每一像素集合的灰度值集合分配唯一索引值,生成索引表,其中,具有对称性特征的两个像素集合的索引值相同,在所述具有对称性特征的两个像素集合中添加标识信息,以区分正向顺序或逆向顺序的像素集合;The index table generation unit 504 assigns a unique index value to the gray value set of each pixel set, and generates an index table, wherein the index values of the two pixel sets with symmetry characteristics are the same, and the index values of the two pixel sets with symmetry characteristics are the same. Add identification information to a set of pixels to distinguish the set of pixels in forward order or reverse order;

编码单元506,根据所述索引表和所述图像编码单元中每一像素集合的索引值对所述编码单元进行熵编码,The coding unit 506 is configured to perform entropy coding on the coding unit according to the index table and the index value of each pixel set in the image coding unit,

其中,若一连续的M个像素的逆顺序与另一连续的M个像素匹配,则确定所述一连续的M个像素与所述另一连续的M个像素之间具有对称性特征。Wherein, if the reverse sequence of one consecutive M pixels matches another consecutive M pixels, it is determined that there is a symmetry feature between the one consecutive M pixels and the other consecutive M pixels.

根据本发明的技术方案在编码时利用了字符的对称性特征,可能够大大减少表示图像的数据量,减少数据占用空间,并提高数据传输效率。According to the technical scheme of the present invention, the symmetry feature of the characters is utilized during coding, which can greatly reduce the amount of data representing images, reduce the space occupied by data, and improve the efficiency of data transmission.

在一个实施例中,如图6A所示,所述索引表生成单元504包括:In one embodiment, as shown in FIG. 6A, the index table generating unit 504 includes:

第一判断单元5042,扫描所述编码单元,若连续的M个像素具有不同的灰度值,且在索引表中未查找到与所述连续的M个像素具有对称性特征的像素集合,则将所述M个像素作为一个像素集合,以及若在索引表中查找到与所述连续的M个像素具有对称性特征的像素集合,则使用所述索引表中与查找出的像素集合对应的索引值作为所述连续的M个像素的索引值;第一分配单元5044,在所述索引表中保存所述M个像素的灰度值集合,以及为所述灰度值集合分配索引值。The first judging unit 5042 scans the encoding unit, if the M consecutive pixels have different gray values, and no pixel set with symmetry characteristics with the M consecutive pixels is found in the index table, then Taking the M pixels as a set of pixels, and if a set of pixels having symmetry characteristics with the continuous M pixels is found in the index table, use the set of pixels corresponding to the set of pixels found in the index table The index value is used as the index value of the M consecutive pixels; the first allocation unit 5044 saves the gray value set of the M pixels in the index table, and assigns the index value to the gray value set.

进一步的,所述第一判断单元5042在判断所述索引表中是否保存与所述连续的M个像素具有对称性特征的像素集合时,对所述连续的M个像素进行逆顺序处理,将处理结果与所述索引表中已保存的像素集合进行比对,根据比对结果确定是否有具有对此性特征的像素集合。Further, when the first judging unit 5042 judges whether a set of pixels having symmetry characteristics with the consecutive M pixels is stored in the index table, the consecutive M pixels are processed in reverse order, and the The processing result is compared with the pixel set saved in the index table, and it is determined whether there is a pixel set with this characteristic according to the comparison result.

在另一实施例中,所述扫描单元502在第一方向上以M个像素为步长扫描所述编码单元,在第二方向上以M个像素为步长扫描所述编码单元,其中,所述第一方向与所述第二方向相反;In another embodiment, the scanning unit 502 scans the coding unit in the first direction with a step size of M pixels, and scans the coding unit in the second direction with a step size of M pixels, wherein, the first direction is opposite to the second direction;

如图6B所示,所述索引表生成单元504包括:As shown in FIG. 6B, the index table generating unit 504 includes:

第二判断单元5046,将在第一方向上的扫描结果与在第二方向上的扫描结果进行比对,若两个像素集合相同,则确定所述两个像素集合是具有对称性特征的两个像素集合;第二分配单元5044,为每一像素集合分配唯一索引值,其中,对具有对称性特征的两个像素集合赋予相同的索引值。The second judging unit 5046 compares the scanning result in the first direction with the scanning result in the second direction, and if the two sets of pixels are the same, it is determined that the two sets of pixels are two sets of symmetrical features. pixel sets; the second assigning unit 5044 assigns a unique index value to each pixel set, where the same index value is assigned to two pixel sets with symmetry features.

所述编码单元506采用调色板编码或差值编码对不具有对称性特征的像素集合进行编码。The coding unit 506 uses palette coding or difference coding to code a set of pixels that do not have symmetric features.

以上结合附图详细说明了根据本发明的技术方案,本发明在编码时利用了字符的对称性特征,可能够大大减少表示图像的数据量,减少数据占用空间,并提高数据传输效率,特别适用与对复杂的图像进行压缩处理,例如屏幕截图、计算机生成的图。此外,根据本发明的图像压缩技术能够兼容现有的压缩方法和标准,例如H.264和HEVC。The technical solution according to the present invention has been described in detail above in conjunction with the accompanying drawings. The present invention utilizes the symmetry feature of characters in encoding, which can greatly reduce the amount of data representing images, reduce the space occupied by data, and improve the efficiency of data transmission. It is especially suitable for and compress complex images, such as screenshots, computer-generated diagrams. In addition, the image compression technology according to the present invention is compatible with existing compression methods and standards, such as H.264 and HEVC.

此外,本发明的实施例还提供了一种电子设备,该电子设备包括如上的基于图像的目标对象计数装置。在根据本发明的实施例的上述电子设备的具体实现方式中,上述电子设备可以是以下设备中的任意一种设备:计算机;平板电脑;个人数字助理;多媒体播放设备;手机以及电纸书等等。其中,该电子设备具有上述用于基于图像的目标对象计数装置的各种功能和技术效果,这里不再赘述。In addition, an embodiment of the present invention also provides an electronic device, which includes the above apparatus for counting target objects based on an image. In the specific implementation of the above-mentioned electronic device according to the embodiment of the present invention, the above-mentioned electronic device can be any one of the following devices: computer; tablet computer; personal digital assistant; multimedia playback device; mobile phone and electronic paper book, etc. Wait. Wherein, the electronic device has various functions and technical effects of the above-mentioned apparatus for counting objects based on an image, which will not be repeated here.

上述根据本发明的实施例的基于图像的目标对象计数装置中的各个组成单元、子单元、模块等可以通过软件、固件、硬件或其任意组合的方式进行配置。在通过软件或固件实现的情况下,可从存储介质或网络向具有专用硬件结构的机器安装构成该软件或固件的程序,该机器在安装有各种程序时,能够执行上述各组成单元、子单元的各种功能。Each constituent unit, subunit, module, etc. of the image-based object counting apparatus according to the embodiment of the present invention may be configured by software, firmware, hardware or any combination thereof. In the case of realization by software or firmware, the program constituting the software or firmware can be installed from a storage medium or a network to a machine with a dedicated hardware structure, and when the machine is installed with various programs, it can execute the above-mentioned constituent units and sub-units. Various functions of the unit.

此外,本发明还提出了一种存储有机器可读取的指令代码的程序产品。上述指令代码由机器读取并执行时,可执行上述根据本发明的实施例的基于图像的目标对象计数方法。相应地,用于承载这种程序产品的例如磁盘、光盘、磁光盘、半导体存储器等的各种存储介质也包括在本发明的公开中。In addition, the present invention also proposes a program product storing machine-readable instruction codes. When the above instruction code is read and executed by a machine, the image-based target object counting method according to the embodiment of the present invention can be executed. Accordingly, various storage media such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc. for carrying such program products are also included in the disclosure of the present invention.

此外,本发明的各实施例的方法不限于按照说明书中描述的或者附图中示出的时间顺序来执行,也可以按照其他的时间顺序、并行地或独立地执行。因此,本说明书中描述的方法的执行顺序不对本发明的技术范围构成限制。In addition, the methods in the various embodiments of the present invention are not limited to being executed in the time sequence described in the description or shown in the drawings, and may also be executed in other time sequences, in parallel or independently. Therefore, the execution order of the methods described in this specification does not limit the technical scope of the present invention.

此外,显然,根据本发明的上述方法的各个操作过程也可以以存储在各种机器可读的存储介质中的计算机可执行程序的方式实现。In addition, obviously, each operation process of the above method according to the present invention can also be implemented in the form of computer executable programs stored in various machine-readable storage media.

而且,本发明的目的也可以通过下述方式实现:将存储有上述可执行程序代码的存储介质直接或者间接地提供给系统或设备,并且该系统或设备中的计算机或者中央处理单元读出并执行上述程序代码。Moreover, the purpose of the present invention can also be achieved in the following manner: the storage medium storing the above-mentioned executable program code is directly or indirectly provided to a system or device, and the computer or central processing unit in the system or device reads and Execute the above program code.

此时,只要该系统或者设备具有执行程序的功能,则本发明的实施方式不局限于程序,并且该程序也可以是任意的形式,例如,目标程序、解释器执行的程序或者提供给操作系统的脚本程序等。At this time, as long as the system or device has the function of executing the program, the embodiment of the present invention is not limited to the program, and the program can also be in any form, for example, an object program, a program executed by an interpreter, or a program provided to an operating system. script programs, etc.

上述这些机器可读存储介质包括但不限于:各种存储器和存储单元,半导体设备,磁盘单元例如光、磁和磁光盘,以及其它适于存储信息的介质等。The above-mentioned machine-readable storage media include, but are not limited to: various memories and storage units, semiconductor devices, magnetic disk units such as optical, magnetic and magneto-optical disks, and other media suitable for storing information, and the like.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

综上,在根据本发明的实施例中,本发明提供了如下方案但不限于此:To sum up, in the embodiments according to the present invention, the present invention provides the following solutions but not limited thereto:

附记1.一种图像压缩方法,包括:Additional Note 1. An image compression method, comprising:

扫描图像编码单元中的每一像素,得到多个像素集合;scanning each pixel in the image coding unit to obtain multiple pixel sets;

为每一像素集合的灰度值集合分配唯一索引值,生成索引表,其中,具有对称性特征的两个像素集合的索引值相同,在所述具有对称性特征的两个像素集合中添加标识信息,以区分正向顺序或逆向顺序的像素集合;Assign a unique index value to the gray value set of each pixel set, and generate an index table, wherein the index values of the two pixel sets with symmetry characteristics are the same, and add identification to the two pixel sets with symmetry characteristics information to distinguish between forward-ordered and reverse-ordered sets of pixels;

根据所述索引表和所述图像编码单元中每一像素集合的索引值对所述编码单元进行熵编码,performing entropy coding on the coding unit according to the index table and the index value of each pixel set in the image coding unit,

其中,若一连续的M个像素的逆顺序与另一连续的M个像素匹配,则确定所述一连续的M个像素与所述另一连续的M个像素之间具有对称性特征。Wherein, if the reverse sequence of one consecutive M pixels matches another consecutive M pixels, it is determined that there is a symmetry feature between the one consecutive M pixels and the other consecutive M pixels.

附记2.根据附记1所述的图像压缩方法,其中,所述索引表的生成过程包括:Additional note 2. according to the image compression method described in additional note 1, wherein, the generation process of described index table comprises:

扫描所述编码单元,若连续的M个像素具有不同的灰度值,且在索引表中未查找到与所述连续的M个像素具有对称性特征的像素集合,则将所述M个像素作为一个像素集合;Scanning the encoding unit, if the M consecutive pixels have different gray values, and no set of pixels having symmetry characteristics with the M consecutive pixels is found in the index table, then the M pixels are as a collection of pixels;

在所述索引表中保存所述M个像素的灰度值集合,以及为所述灰度值集合分配唯一索引值;saving the gray value set of the M pixels in the index table, and assigning a unique index value to the gray value set;

若在索引表中查找到与所述连续的M个像素具有对称性特征的像素集合,则使用所述索引表中与查找出的像素集合对应的索引值作为所述连续的M个像素的索引值。If a pixel set having symmetry characteristics with the continuous M pixels is found in the index table, then use the index value corresponding to the found pixel set in the index table as the index of the continuous M pixels value.

附记3.根据附记2所述的图像压缩方法,其中,在判断所述索引表中是否保存与所述连续的M个像素具有对称性特征的像素集合时,对所述连续的M个像素进行逆顺序处理,将处理结果与所述索引表中已保存的像素集合进行比对,根据比对结果确定是否有具有对此性特征的像素集合。Supplement 3. The image compression method according to Supplement 2, wherein, when judging whether to store a set of pixels having symmetry characteristics with the M consecutive pixels in the index table, the M consecutive The pixels are processed in reverse order, the processing result is compared with the pixel set saved in the index table, and whether there is a pixel set with this characteristic is determined according to the comparison result.

附记4.根据附记2所述的图像压缩方法,其中,所述索引表的生成过程包括:Additional note 4. according to the image compression method described in additional note 2, wherein, the generation process of described index table comprises:

在第一方向上以M个像素为步长扫描所述编码单元,在第二方向上以M个像素为步长扫描所述编码单元,其中,所述第一方向与所述第二方向相反;Scanning the coding unit in a first direction with a step size of M pixels, and scanning the coding unit in a second direction with a step size of M pixels, wherein the first direction is opposite to the second direction ;

将在第一方向上的扫描结果与在第二方向上的扫描结果进行比对,若两个像素集合相同,则确定所述两个像素集合是具有对称性特征的两个像素集合;Comparing the scanning result in the first direction with the scanning result in the second direction, if the two pixel sets are the same, then determining that the two pixel sets are two pixel sets with symmetric characteristics;

为每一像素集合分配唯一索引值,其中,对具有对称性特征的两个像素集合赋予相同的索引值。A unique index value is assigned to each pixel set, wherein the same index value is assigned to two pixel sets with symmetric features.

附记5.根据附记3所述的图像压缩方法,采用调色板编码或差值编码对不具有对称性特征的像素集合进行编码。Supplementary Note 5. According to the image compression method described in Supplementary Note 3, palette coding or difference coding is used to code a set of pixels that do not have symmetric features.

附记6.根据附记1至4中任一项所述的图像压缩方法,所述编码单元是截屏图像或计算机生成的图像中的编码单元。Supplement 6. The image compression method according to any one of Supplements 1 to 4, wherein the coding unit is a coding unit in a screenshot image or a computer-generated image.

附记7.一种图像压缩装置,包括:Additional note 7. An image compression device, comprising:

扫描单元,扫描图像编码单元中的每一像素,得到多个像素集合;a scanning unit, scanning each pixel in the image encoding unit to obtain multiple pixel sets;

索引表生成单元,为每一像素集合的灰度值集合分配唯一索引值,生成索引表,其中,具有对称性特征的两个像素集合的索引值相同,在所述具有对称性特征的两个像素集合中添加标识信息,以区分正向顺序或逆向顺序的像素集合;The index table generation unit assigns a unique index value to the gray value set of each pixel set, and generates an index table, wherein the index values of the two pixel sets with symmetry characteristics are the same, and the index values of the two pixel sets with symmetry characteristics are the same. Add identification information to the pixel set to distinguish the pixel set in forward order or reverse order;

编码单元,根据所述索引表和所述图像编码单元中每一像素集合的索引值对所述编码单元进行熵编码,a coding unit, performing entropy coding on the coding unit according to the index table and the index value of each pixel set in the image coding unit,

其中,若一连续的M个像素的逆顺序与另一连续的M个像素匹配,则确定所述一连续的M个像素与所述另一连续的M个像素之间具有对称性特征。Wherein, if the reverse sequence of one consecutive M pixels matches another consecutive M pixels, it is determined that there is a symmetry feature between the one consecutive M pixels and the other consecutive M pixels.

附记8.根据附记7所述的图像压缩装置,其中,所述索引表生成单元包括:Supplement 8. The image compression device according to Supplement 7, wherein the index table generation unit includes:

第一判断单元,扫描所述编码单元,若连续的M个像素具有不同的灰度值,且在索引表中未查找到与所述连续的M个像素具有对称性特征的像素集合,则将所述M个像素作为一个像素集合,以及若在索引表中查找到与所述连续的M个像素具有对称性特征的像素集合,则使用所述索引表中与查找出的像素集合对应的索引值作为所述连续的M个像素的索引值;The first judging unit scans the encoding unit, if the M consecutive pixels have different gray values, and no set of pixels having symmetry characteristics with the M consecutive pixels is found in the index table, then the The M pixels are used as a set of pixels, and if a set of pixels having symmetry characteristics with the continuous M pixels is found in the index table, an index corresponding to the set of pixels found in the index table is used value as the index value of the continuous M pixels;

第一分配单元,在所述索引表中保存所述M个像素的灰度值集合,以及为所述灰度值集合分配索引值。A first allocating unit, saving the gray value set of the M pixels in the index table, and assigning an index value to the gray value set.

附记9.根据附记8述的图像压缩装置,所述第一判断单元在判断所述索引表中是否保存与所述连续的M个像素具有对称性特征的像素集合时,对所述连续的M个像素进行逆顺序处理,将处理结果与所述索引表中已保存的像素集合进行比对,根据比对结果确定是否有具有对此性特征的像素集合。Supplement 9. According to the image compression device described in Supplement 8, when the first judging unit judges whether a set of pixels having symmetry characteristics with the continuous M pixels is stored in the index table, the continuous The M pixels are processed in reverse order, the processing result is compared with the pixel set saved in the index table, and whether there is a pixel set with this characteristic is determined according to the comparison result.

附记10.根据附记8所述的图像压缩装置,所述扫描单元在第一方向上以M个像素为步长扫描所述编码单元,在第二方向上以M个像素为步长扫描所述编码单元,其中,所述第一方向与所述第二方向相反;Supplement 10. The image compression device according to Supplement 8, wherein the scanning unit scans the encoding unit in the first direction with a step of M pixels, and scans in the second direction with a step of M pixels The encoding unit, wherein the first direction is opposite to the second direction;

所述索引表生成单元包括:The index table generation unit includes:

第二判断单元,将在第一方向上的扫描结果与在第二方向上的扫描结果进行比对,若两个像素集合相同,则确定所述两个像素集合是具有对称性特征的两个像素集合;The second judging unit compares the scanning result in the first direction with the scanning result in the second direction, and if the two pixel sets are the same, it is determined that the two pixel sets are two symmetrical features. collection of pixels;

第二分配单元,为每一像素集合分配唯一索引值,其中,对具有对称性特征的两个像素集合赋予相同的索引值。The second allocation unit allocates a unique index value for each pixel set, wherein the same index value is assigned to two pixel sets with symmetry characteristics.

附记11.根据附记9所述的图像压缩装置,所述编码单元采用调色板编码或差值编码对不具有对称性特征的像素集合进行编码。Supplement 11. The image compression device according to Supplement 9, wherein the coding unit uses palette coding or difference coding to code a set of pixels that do not have symmetric features.

附记12.根据附记7至11中任一项所述的图像压缩装置,所述编码单元是截屏图像或计算机生成的图像中的编码单元。Supplement 12. The image compression device according to any one of Supplements 7 to 11, wherein the coding unit is a coding unit in a screenshot image or a computer-generated image.

附记13.一种电子设备,包括如上述附记7至12中任一项的图像压缩装置。Supplement 13. An electronic device, comprising the image compression device according to any one of Supplements 7 to 12 above.

Claims (10)

1. a method for compressing image, comprising:
Each pixel in scan image coding unit, obtains multiple pixel set;
For the gray value set of each pixel set distributes unique index value, generating indexes table, wherein, the index value with two pixel set of symmetric characteristics is identical, described have in two pixel set of symmetric characteristics add identification information, to distinguish the pixel set of forward sequence or reverse order;
Index value according to each pixel set in described concordance list and described image coding unit carries out entropy code to described coding unit,
Wherein, if the opposite sequence of a continuous print M pixel and another continuous print M pixel matching, then determine, between a described continuous print M pixel and another continuous print described M pixel, there is symmetric characteristics.
2. method for compressing image according to claim 1, wherein, the generative process of described concordance list comprises:
Scan described coding unit, if a continuous print M pixel has different gray values, and in concordance list, do not find the pixel set with a described continuous print M pixel with symmetric characteristics, then using a described M pixel as a pixel set;
In described concordance list, preserve the gray value set of a described M pixel, and be that described gray value set distributes unique index value;
If find the pixel set with a described continuous print M pixel with symmetric characteristics in concordance list, then use index value corresponding with the pixel set found out in described concordance list as the index value of a described continuous print M pixel.
3. method for compressing image according to claim 2, wherein, judge whether to preserve in described concordance list with a described continuous print M pixel, there is the pixel set of symmetric characteristics time, opposite sequence process is carried out to a described continuous print M pixel, the pixel set of having preserved in result and described concordance list is compared, determines whether that there is the pixel set to this property feature according to comparison result.
4. method for compressing image according to claim 2, wherein, the generative process of described concordance list comprises:
In a first direction with M pixel for coding unit described in step scan, in a second direction with M pixel for coding unit described in step scan, wherein, described first direction is contrary with described second direction;
Scanning result in a first direction and scanning result are in a second direction compared, if two pixel set are identical, then determines that described two pixel set are two pixel set with symmetric characteristics;
For each pixel set distributes unique index value, wherein, give identical index value to two pixel set with symmetric characteristics.
5. the method for compressing image according to claim 3 or 4, adopts palette coding or differential coding to encode to the pixel set without symmetric characteristics.
6. an image compressing device, comprising:
Scanning element, each pixel in scan image coding unit, obtains multiple pixel set;
Concordance list generation unit, for the gray value set of each pixel set distributes unique index value, generating indexes table, wherein, the index value with two pixel set of symmetric characteristics is identical, described have in two pixel set of symmetric characteristics add identification information, to distinguish the pixel set of forward sequence or reverse order;
Coding unit, the index value according to each pixel set in described concordance list and described image coding unit carries out entropy code to described coding unit,
Wherein, if the opposite sequence of a continuous print M pixel and another continuous print M pixel matching, then determine, between a described continuous print M pixel and another continuous print described M pixel, there is symmetric characteristics.
7. image compressing device according to claim 6, wherein, described concordance list generation unit comprises:
First judging unit, scan described coding unit, if a continuous print M pixel has different gray values, and in concordance list, do not find the pixel set with a described continuous print M pixel with symmetric characteristics, then using a described M pixel as a pixel set, if and in concordance list, find the pixel set with a described continuous print M pixel with symmetric characteristics, then use index value corresponding with the pixel set found out in described concordance list as the index value of a described continuous print M pixel;
First allocation units, preserve the gray value set of a described M pixel in described concordance list, and are described gray value set allocation index value.
8. image compressing device according to claim 7, described first judging unit judge whether to preserve in described concordance list with a described continuous print M pixel, there is the pixel set of symmetric characteristics time, opposite sequence process is carried out to a described continuous print M pixel, the pixel set of having preserved in result and described concordance list is compared, determines whether that there is the pixel set to this property feature according to comparison result.
9. image compressing device according to claim 7, described scanning element in a first direction with M pixel for coding unit described in step scan, in a second direction with M pixel for coding unit described in step scan, wherein, described first direction is contrary with described second direction;
Described concordance list generation unit comprises:
Second judging unit, compares scanning result in a first direction and scanning result in a second direction, if two pixel set are identical, then determines that described two pixel set are two pixel set with symmetric characteristics;
Second allocation units, for each pixel set distributes unique index value, wherein, give identical index value to two pixel set with symmetric characteristics.
10. image compressing device according to claim 8 or claim 9, described coding unit adopts palette coding or differential coding to encode to the pixel set without symmetric characteristics.
CN201410258090.4A 2014-06-11 2014-06-11 Image compression method and image compression device Pending CN105245888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410258090.4A CN105245888A (en) 2014-06-11 2014-06-11 Image compression method and image compression device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410258090.4A CN105245888A (en) 2014-06-11 2014-06-11 Image compression method and image compression device

Publications (1)

Publication Number Publication Date
CN105245888A true CN105245888A (en) 2016-01-13

Family

ID=55043345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410258090.4A Pending CN105245888A (en) 2014-06-11 2014-06-11 Image compression method and image compression device

Country Status (1)

Country Link
CN (1) CN105245888A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019865A (en) * 2017-09-08 2019-07-16 北京京东尚科信息技术有限公司 Mass picture processing method, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08204957A (en) * 1995-01-26 1996-08-09 Dainippon Screen Mfg Co Ltd Image processing method
CN1197251A (en) * 1996-10-24 1998-10-28 松下电器产业株式会社 Filling method of image signal, its coding device and decoding device
JP2000197052A (en) * 1998-12-29 2000-07-14 Sony Corp Wavelet coder, its method, decoder and its method
US20040095996A1 (en) * 2001-03-21 2004-05-20 Gerd Mossakowski Method for compressing and decompressing video data
US20040114822A1 (en) * 2002-12-17 2004-06-17 Ali Tabesh Method and system for image compression using image symmetry
CN101252686A (en) * 2008-03-20 2008-08-27 上海交通大学 Method and system for lossless encoding and decoding in video frames based on interleaved prediction

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08204957A (en) * 1995-01-26 1996-08-09 Dainippon Screen Mfg Co Ltd Image processing method
CN1197251A (en) * 1996-10-24 1998-10-28 松下电器产业株式会社 Filling method of image signal, its coding device and decoding device
JP2000197052A (en) * 1998-12-29 2000-07-14 Sony Corp Wavelet coder, its method, decoder and its method
US20040095996A1 (en) * 2001-03-21 2004-05-20 Gerd Mossakowski Method for compressing and decompressing video data
US20040114822A1 (en) * 2002-12-17 2004-06-17 Ali Tabesh Method and system for image compression using image symmetry
CN101252686A (en) * 2008-03-20 2008-08-27 上海交通大学 Method and system for lossless encoding and decoding in video frames based on interleaved prediction

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019865A (en) * 2017-09-08 2019-07-16 北京京东尚科信息技术有限公司 Mass picture processing method, device, electronic equipment and storage medium
CN110019865B (en) * 2017-09-08 2021-01-26 北京京东尚科信息技术有限公司 Mass image processing method and device, electronic equipment and storage medium
US11395010B2 (en) 2017-09-08 2022-07-19 Beijing Jingdong Shangke Information Technology Co., Ltd. Massive picture processing method converting decimal element in matrices into binary element

Similar Documents

Publication Publication Date Title
CN113475083B (en) Method and device for encoding and decoding inter-frame point cloud attribute
CN103886623B (en) A kind of method for compressing image, equipment and system
AU2012332327B2 (en) Method and apparatus for image compression storing encoding parameters in 2D matrices
CN107886560B (en) Animation resource processing method and device
US8611617B1 (en) Similar image selection
CN103237216B (en) The decoding method and coding and decoding device of depth image
CN104081775B (en) Method and device for image encoding/decoding
CN106878752B (en) A kind of video coding mode encoding and decoding method and device
CN111918065B (en) Information compression/decompression method and device
TWI706371B (en) Picture generation method and device
GB2539488A (en) Encoder, decoder and method employing palette utilization and compression
CN105335989A (en) Image coding method and image coding apparatus
CN105850132A (en) Method and device for color index prediction
CN108933941A (en) Image encoding method and device and picture decoding method and device
CN117014618B (en) A block division method, system and electronic device based on image compression
US20150261990A1 (en) Method and apparatus for compressing dna data based on binary image
CN103839061B (en) Image processing apparatus
CN110662080B (en) Machine-Oriented Universal Coding Methods
CN110636334B (en) Data transmission method and system
CN107483961A (en) Predict and go here and there position encoded data compression method and device using arcuate scanning string
CN107770553A (en) Using the data compression method and device of multiclass match parameter and parameter storage address
CN105245888A (en) Image compression method and image compression device
Conci et al. Fractal coding based on image local fractal dimension
KR102264920B1 (en) Image identification apparatus, method thereof and computer readable medium having computer program recorded therefor
CN107172425B (en) Thumbnail generation method and device and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160113

WD01 Invention patent application deemed withdrawn after publication