WO2010037262A1 - Dot array page compressing method and apparatus - Google Patents

Dot array page compressing method and apparatus Download PDF

Info

Publication number
WO2010037262A1
WO2010037262A1 PCT/CN2009/001080 CN2009001080W WO2010037262A1 WO 2010037262 A1 WO2010037262 A1 WO 2010037262A1 CN 2009001080 W CN2009001080 W CN 2009001080W WO 2010037262 A1 WO2010037262 A1 WO 2010037262A1
Authority
WO
WIPO (PCT)
Prior art keywords
compression
page
dot matrix
compression mode
mode
Prior art date
Application number
PCT/CN2009/001080
Other languages
French (fr)
Chinese (zh)
Inventor
康俊杰
杨斌
赵晖
Original Assignee
北大方正集团有限公司
北京大学
北京北大方正电子有限公司
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 北大方正集团有限公司, 北京大学, 北京北大方正电子有限公司 filed Critical 北大方正集团有限公司
Publication of WO2010037262A1 publication Critical patent/WO2010037262A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/40062Discrimination between different image types, e.g. two-tone, continuous tone

Definitions

  • the present invention relates to the field of computer image processing, and in particular, to a dot matrix page compression method and apparatus therefor. Background technique
  • Raster Image Processor In the field of computer graphics image processing, Raster Image Processor (RIP, Raster Image Processor) is a kind of programming language such as PS (PostScript, a description language used to describe page content, whose specification is developed by Adobe Corporation of the United States) Format or PDF
  • Portable Document Format an electronic document format used to describe the content of a page, whose specification is developed by Adobe, USA.
  • the page described by the format is converted into a device of a dot matrix page.
  • a raster imaging device is usually used.
  • imagesetters, computer-to-plate platesetters, printers, etc. print out the dot matrix pages generated by the conversion, and before the printout, the dot matrix pages are often compressed to save storage space and processing time.
  • the compression ratio the original size of the dot matrix page / the compressed file obtained by compressing the dot matrix page
  • the compression rate will be relatively small; if a compression rate is large, compression is performed.
  • the method compresses the dot matrix page, although the compression rate becomes larger, but the compression ratio is lower.
  • a dot matrix page there are often text elements, graphic elements, and image elements.
  • blank areas that do not contain any text, graphics, and images.
  • the pixels in the blank area do not contain color information, for example. Any kind of information such as gray scale information, and therefore the element type of the pixel in the blank area is called a "blank element".
  • the portion of the image element will have a higher complexity, while the portion of the graphic element, blank element, or text element will have a lower The complexity.
  • the embodiment of the invention provides a method and a device for compressing a dot matrix page, which are used to solve the problem that the compression of the entire dot matrix page is performed by using the same compression mode in the prior art, and the compression ratio and the compression rate are not well relieved. Contradictory issues.
  • a dot matrix page compression method includes: dividing a bitmap page to be compressed into at least two dot matrix page portions; and performing the following processing on each of the lattice page portions obtained by the division:
  • the corresponding compression mode is selected to compress the page portion of the dot matrix.
  • determining the type of the element that has the largest proportion in the page portion of the dot matrix comprises:
  • the number of identifier values of each element type is separately counted, wherein the element type identifier value is a different element in the bitmap page in the process of rasterizing the page content into a dot matrix page.
  • the element type identification value respectively assigned by the type; according to the number of identification values of each element type obtained by the statistics, the element type having the largest proportion in the dot matrix page is determined.
  • a dot matrix page compression device comprising: a dividing unit, configured to divide a dot matrix page to be compressed into at least two dot matrix page portions; and a determining unit, configured to divide each dot matrix page portion obtained by the dividing unit, respectively Determining an element type that has the largest proportion in the bitmap page portion; and selecting a unit, configured to compress the bitmap page portion according to the element type that has the largest proportion determined by the determining unit, and select a corresponding compression manner.
  • the determining unit specifically includes a statistic module, configured to calculate, according to each bitmap page portion obtained by dividing the unit, the number of each element type identifier value in each bitmap page portion, wherein the element type identifier value is In the process of rasterizing page content into a dot matrix page, respectively, respectively, a unique identifier value respectively assigned to different element types in the dot matrix page; a determining module, configured to identify values of each element type according to statistics module statistics Number, determines the type of element that has the largest proportion of each dot matrix page.
  • a statistic module configured to calculate, according to each bitmap page portion obtained by dividing the unit, the number of each element type identifier value in each bitmap page portion, wherein the element type identifier value is In the process of rasterizing page content into a dot matrix page, respectively, respectively, a unique identifier value respectively assigned to different element types in the dot matrix page
  • a determining module configured to identify values of each element type according to statistics module statistics Number, determines the
  • a dot matrix page compression method includes: determining an element type included in a dot matrix page to be compressed; and selecting different compression modes to respectively compress a page portion where different element types are located according to the determination result.
  • a dot matrix page compressing device comprising: a determining unit, configured to determine an element type included in a dot matrix page to be compressed; and a selecting unit, configured to select different compression modes for different element types according to the determining result of the determining unit The portion of the page where it is located is compressed.
  • the dot matrix page to be compressed is divided into at least two dot matrix page portions; and for each dot matrix page portion obtained by the partitioning, the element type having the largest proportion in the dot matrix page portion is determined. And according to the determined element type with the largest proportion, the corresponding compression mode is selected to compress the page portion of the dot matrix, so that the contradiction between the compression ratio and the compression rate can be well relieved.
  • Figure 1 is a schematic diagram of a dot matrix page containing various types of elements
  • FIG. 2 is a schematic flowchart of a dot matrix page compression method according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a specific implementation process of a dot matrix page compression method according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a dot matrix page for generating an intermediate format from an original page according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of the element type identification value in the element type dot matrix corresponding to the pixel point in the dot matrix page;
  • FIG. 6 is a schematic structural diagram of a dot matrix page compression apparatus according to an embodiment of the present invention
  • FIG. 7 is a schematic flowchart of another method for compressing a dot matrix page according to an embodiment of the present disclosure
  • FIG. 8 is a schematic structural diagram of another dot matrix page compression apparatus according to an embodiment of the present disclosure.
  • Figure 9 is a diagram showing portions of two dot matrix pages obtained by dividing a CMYK dot matrix page in an embodiment of the present invention. detailed description
  • the embodiment of the present invention provides a dot matrix page compression scheme, which is used to solve the problem that the compression of the entire dot matrix page is performed by using the same compression mode in the prior art, and the problem of the contradiction between the compression ratio and the compression rate cannot be well relieved.
  • FIG. 1 it is a schematic diagram of a dot matrix page, which includes various element types such as blank elements, text elements, graphic elements, and image elements, for example, the letters in the figure.
  • Arabic numerals are text elements; stars and hexagons are graphic elements; landscape pictures are called image elements; and blank areas except text, graphics, and images are blank elements.
  • the complexity of a dot matrix page can be represented by the proportion of each of the above elements in the page, for example, when the proportion of each element type in a dot matrix page is: blank element 50 %, text elements account for 30%, graphic elements account for 15%, image elements account for 5%, you can judge the dot matrix page is less complex; and when a dot matrix page, the proportion of each element is: Image elements account for 70%, text elements for 10%, graphic elements for 15%, and blank elements for 5%, which can be judged to be more complex.
  • the embodiment of the present invention provides a dot matrix page compression method, and the specific process schematic diagram of the method is as shown in FIG. 2, including:
  • Step 21 dividing the dot matrix page to be compressed into at least two dot matrix page portions; Step 22, respectively determining the proportion of each dot matrix page portion obtained by the partitioning Large element type;
  • Step 23 According to the determined element type with the largest proportion, respectively, select a corresponding compression mode to compress each bitmap page portion.
  • the method proposed in this embodiment can be
  • the dot matrix page of the intermediate format determines the element type of each pixel in the generated dot matrix page, and further determines the element type that has the largest proportion among the divided dot matrix page parts, and selects the corresponding compression mode pair point.
  • the page portion is compressed.
  • the specific process diagram of this process is shown in FIG. 3, including: Step 31: Input the original page of the PS or PDF format description into the RIP, and the RIP is set to: According to the original page input, 600 output per inch is required.
  • Pixel point (600DPI) for printing four color separation (CMYK, Cyan - Cyan, Magenta - Magenta, Yellow - Yel low, Black - Black) dot matrix page, where the output of the dot matrix page
  • Each pixel needs to use 1 byte to represent the information of one of the four color separations, that is, the four color divisions of each pixel need to be represented by 4 bytes;
  • Step 32 Assign a unique element type identifier value to different element types, for example, may, but is not limited to, assign an element identifier value 1 to a pixel point whose element type is an image type, and assign an element identifier to a pixel point whose element type is a non-image type. a value of 0, or, respectively, assigning element identification values 11, 10, 01, 00 to pixel points whose element type is image type, graphic type, text type, and blank type;
  • Step 33 The RIP converts the original page into a dot matrix page of an intermediate format represented by a gray value of the pixel, and generates an element type dot matrix corresponding to the dot matrix page of the intermediate format according to the assigned element type identification value;
  • Step 34 The RIP further generates a CMYK dot matrix page based on the dot matrix page of the intermediate format according to the color information in the original page;
  • Step 35 Divide the generated CMYK dot matrix page into at least two dot matrix page parts. For example, each part of the dot matrix page output by the RIP segment may be used as a part of the divided dot matrix page, as shown in FIG. Dividing a dot matrix into two segments, so that two threads can be used simultaneously to process the two lattice portions, thereby doubling the conversion speed; Step 36, the lattice of the element types generated in step 33 Have the same element type The number of pixels is counted to determine the type of the element that has the largest proportion in the page portion of each dot matrix. When counting the pixels with the same element type, the point-by-point statistical method may be used, or 8 The neighborhood is a unit for statistical calculation. For example, when the element type of a pixel is an image element, the image is calculated according to the 8 pixel points in the 8 fields adjacent to the pixel. Statistical methods can speed up statistics and improve statistical efficiency;
  • Step 37 Select a corresponding compression mode according to the determined element type having the largest proportion in each dot matrix page portion, and respectively compress each dot matrix page portion.
  • the RIP interprets and forms the corresponding contour vector description according to the contour description of the image, the graphic and the text in the original page, and then fills the area formed by the contour by using the filling algorithm, so that the original page is converted into grayscale.
  • the dot matrix page of the intermediate format indicated by the value when filling, the area of the image outline can be filled according to the gray value of the pixel point of 255, and the area formed by the graphic outline, the area composed of the text outline, and the rest of the blank The area is not filled; the area of the image outline can be filled according to the gray value of the pixel point of 255, and the area formed by the outline of the image is filled according to the gray value of the pixel point of 170, and the area formed by the outline of the text is The gray value of the pixel is filled with 85, and the remaining blank areas are not filled, as shown in FIG. 4, which is a schematic diagram of the dot matrix page generated by the original page in the process;
  • an element type dot matrix corresponding to the element type of each pixel point is further generated, for example, when the image is not
  • the element type identifier value of the type is set to 0, and when the element type identifier value of the image type is set to 1, the dot matrix page of the intermediate format obtained after the filling may be correspondingly generated to represent each pixel point element in the page.
  • the type of element type dot matrix is the schematic diagram of the element type identifier value in the generated element type dot matrix corresponding to the pixel point in the dot matrix page of the intermediate format.
  • the element type point The element types of the pixels in the matrix and the dot matrix page are in one-to-one correspondence, and in the dot matrix, the element type for representing the pixel point only needs 1/8 byte, and therefore, the storage space occupied by the dot matrix Compared to a CMYK dot matrix page with a 4-byte representation of a pixel, the dot matrix occupies less storage space and generates an element type dot matrix The interval is only about 1% of the time of generating CMYK dot matrix. Similarly, when the element type is image type, graphic type, text type, and blank type, the pixel identification values are set to 11, 10, 01, 00. At the same time, it is also possible to generate a corresponding element type dot matrix, which is only required to represent the pixel point element type in only 1/4 byte.
  • the above step 37 can be implemented by, but not limited to, the following two ways:
  • the first way regards the graphic element, the text element and the blank element as non-image elements, so that only the image elements are included in the dot matrix page.
  • non-image elements the two element types, therefore, when the determined largest element type is the image element, the first compression mode is selected to compress the bitmap page portion; and the determined proportion is the largest
  • the second compression mode is selected to compress the bitmap page portion; wherein the compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, or the compression ratio of the second compression mode
  • the compression rate is greater than the first compression mode.
  • the first compression mode may be, but not limited to, a run-length compression algorithm
  • the second compression mode may be, but not limited to, a ZLIB compression algorithm.
  • the second mode the element type of the dot matrix page includes an image element, a graphic element, a text element, and a blank element.
  • the first compression mode is selected for the dot matrix.
  • the page portion is compressed; when the determined largest element type is a graphic element, the second compression mode is selected to compress the bitmap page portion; when the determined largest proportion of the element type is a text element, Selecting a third compression mode to compress the bitmap page portion; when the determined largest element type is a blank element, selecting a fourth compression manner to compress the bitmap page portion;
  • the compression method satisfies: the compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, the compression ratio of the second compression mode is higher than the compression ratio of the third compression mode, and the compression ratio of the third compression mode is high.
  • the compression ratio of the fourth compression mode or the compression ratio of the fourth compression mode is greater than the compression of the third compression mode Rate
  • compression rate of compression is greater than the third rate of compression of the second compression mode
  • the compression rate of the second embodiment is greater than the compression rate of compression of the first compression method.
  • the method of determining the compression mode according to the proportion of any one or more element types in the dot matrix page is within the protection scope of the present invention.
  • the compression ratio threshold or the compression rate threshold may be preset, so that the compression ratio of the subsequently selected compression mode must be greater than the preset compression ratio threshold, or the compression rate of the selected compression mode must be greater than the preset.
  • the compression rate threshold and so on.
  • the proportional threshold can also be set in advance, for example, setting the image element.
  • the ratio threshold is 40%, and when the ratio of the image element to the entire page portion of the dot matrix reaches 40%, the compression method with a larger compression ratio is selected to compress the page portion of the dot matrix.
  • the parallel parallel compression processing may be performed on each of the divided page portions.
  • the embodiment of the present invention further provides a dot matrix page compression device, which is used to solve the compression of the entire dot matrix page by using the same compression mode in the prior art, and the compression ratio and the compression rate are not well relieved.
  • a dot matrix page compression device which is used to solve the compression of the entire dot matrix page by using the same compression mode in the prior art, and the compression ratio and the compression rate are not well relieved.
  • a dividing unit 61 configured to divide the dot matrix page to be compressed into at least two dot matrix page portions
  • a determining unit 62 configured to determine, according to each of the bitmap page portions obtained by the dividing unit 61, the element type that has the largest proportion in the bitmap page portion;
  • the selecting unit 63 is configured to compress the bitmap page portion according to the element type with the largest proportion determined by the determining unit 62 and select a corresponding compression manner.
  • the determining unit 62 specifically includes: when the determining unit 62 uses the statistic element type identifier value to determine the element type that has the largest proportion in each dot matrix page, as shown in FIG.
  • the statistic module 621 is configured to calculate, according to each bitmap page portion obtained by the dividing unit 61, the number of identifier values of each element type in each bitmap page portion, where
  • the element type identifier value is a unique element type identifier value respectively assigned to different element types in the dot matrix page in the process of rasterizing the page content into a dot matrix page;
  • the determining module 622 is configured to determine the element type that has the largest proportion in each dot matrix page according to the number of identification values of each element type obtained by the statistical module 621.
  • the statistics module 621 a process of generating an element type identifier value for a different element type, and generating an element type dot matrix according to an intermediate format dot matrix page in the process of rasterizing the page content into a dot matrix page The process of description is similar and will not be described again.
  • the bitmap image compression scheme provided by the present invention is determined by dividing the dot matrix page to be compressed into at least two dot matrix page portions; and determining, for each bitmap page portion obtained by the partitioning, The type of the element having the largest proportion in the page portion of the dot matrix; and compressing the portion of the dot matrix page by selecting a corresponding compression mode according to the determined type of the largest component, which can solve the prior art
  • the same compression method compresses the entire dot matrix page, which does not relieve the contradiction between the compression ratio and the compression rate.
  • the present invention also provides another dot matrix page compression method, which can be solved without dividing the dot matrix page.
  • the same compression method is used to compress the entire dot matrix page, which does not well alleviate the contradiction between the compression ratio and the compression rate.
  • FIG. 7 A specific flow chart of another dot matrix page compression method provided by the embodiment of the present invention is as shown in FIG. 7 , including:
  • Step 71 Determine an element type included in the bitmap page to be compressed.
  • Step 72 According to the determination result, different compression modes are selected to respectively compress the page parts where different element types are located.
  • the foregoing step 72 can be implemented in the following two ways:
  • the first method the graphic element, the text element, and the blank element are regarded as non-image elements, so that only the image elements and non-images are included in the dot matrix page.
  • the image element has two element types. Therefore, when the determined element type having the largest proportion is the image element, the first compression mode is selected to compress the bitmap page portion; and the determined proportion is the largest.
  • the second compression mode is selected to compress the bitmap page portion; wherein the compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, or the second compression mode
  • the compression rate is greater than the compression rate of the first compression mode.
  • the first compression mode may be, but not limited to, a run-length compression algorithm
  • the second compression mode may be, but not limited to, a ZLIB compression algorithm.
  • the second mode the element type of the dot matrix page includes an image element, a graphic element, a text element, and a blank element.
  • the first compression mode is selected for the dot matrix.
  • the page portion is compressed; when the determined largest element type is a graphic element, the second compression mode is selected to compress the bitmap page portion; when the determined largest proportion of the element type is a text element, Selecting a third compression mode to compress the bitmap page portion; when the determined largest element type is a blank element, selecting a fourth compression manner to compress the bitmap page portion;
  • the compression mode satisfies: the compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, the compression ratio of the second compression mode is higher than the compression ratio of the third compression mode, and the compression ratio of the third compression mode is higher than The compression ratio of the fourth compression mode; or the compression ratio of the fourth compression mode is greater than the compression of the third compression mode Rate, compression rate of compression is greater than the third rate of compression of the second compression
  • the method of determining the compression mode according to the proportion of any one or more element types in the dot matrix page is within the protection scope of the present invention.
  • the embodiment of the present invention further provides a dot matrix page compression device, and a specific structural diagram thereof is shown in FIG.
  • the determining unit 81 is configured to determine an element type included in the dot matrix page to be compressed
  • the selecting unit 82 is configured to: according to the determining result of the determining unit 81, select different compression modes to respectively compress the page portion where the different element type is located .
  • the selection unit 82 selects different compression modes, and the process of compressing the page portions of the different element types is similar to the related description of the foregoing method embodiments, and therefore will not be described again.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

A method for compressing dot array pages is provided, which comprises the following steps: dividing the dot matrix pages to be compressed into at least two dot matrix page parts; processing each dot matrix page part obtained after division; determining the element type with the largest proportion in the dot matrix page part; and selecting a corresponding compressing mode to compress the dot matrix page part according to the determined element type with the largest proportion. Accordingly, an apparatus for dot array page compressing is provided. The technical proposal disclosed by the present invention can solve the problem that the same compressing method is applied to compress the whole dot matrix page in the prior art, so that the contradiction between compressing proportion and compressing rate can not be well relieved.

Description

点阵页面压缩方法及其装置 技术领域  Dot matrix page compression method and device thereof
本发明涉及计算机图像处理领域, 尤其涉及一种点阵页面压缩方 法及其装置。 背景技术  The present invention relates to the field of computer image processing, and in particular, to a dot matrix page compression method and apparatus therefor. Background technique
在计算机图形图像处理领域中, 光栅图像处理器 (RIP, Raster Image Processor ) 是一种用于将诸如 PS ( PostScript , 一种用来描述 页面内容的编程语言, 其规范由美国的 Adobe 公司制定) 格式或 PDF In the field of computer graphics image processing, Raster Image Processor (RIP, Raster Image Processor) is a kind of programming language such as PS (PostScript, a description language used to describe page content, whose specification is developed by Adobe Corporation of the United States) Format or PDF
( Portable Document Format , 一种用来描述页面内容的电子文档格 式, 其规范由美国的 Adobe 公司制定) 格式描述的页面转化成为点阵 页面的设备, 在后续的处理过程中, 通常采用光栅成像设备, 比如照 排机、 计算机直接制版机、 打印机等对转化生成的点阵页面进行打印 输出, 而在打印输出前, 往往需要对点阵页面进行压缩, 以节省存储 空间和处理时间。 (Portable Document Format, an electronic document format used to describe the content of a page, whose specification is developed by Adobe, USA). The page described by the format is converted into a device of a dot matrix page. In the subsequent processing, a raster imaging device is usually used. For example, imagesetters, computer-to-plate platesetters, printers, etc. print out the dot matrix pages generated by the conversion, and before the printout, the dot matrix pages are often compressed to save storage space and processing time.
在对点阵页面进行压縮时, 采用的压缩方式往往存在着压缩速率 和压缩比例之间的矛盾 (其中, 压缩比例=点阵页面的原始大小 /对点 阵页面进行压缩后得的压缩文件的大小) , 简单地说就是, 对同一幅 点阵页面进行压缩时, 如果采用压缩比例高的压缩方式对该点阵页面 进行压缩, 则压缩速率会比较小; 而如果采用压缩速率大的压缩方式 对该点阵页面进行压缩, 虽然压縮速率会变大, 但压缩比例却比较低。  When compressing a dot matrix page, the compression method used often has a contradiction between the compression rate and the compression ratio (wherein the compression ratio = the original size of the dot matrix page / the compressed file obtained by compressing the dot matrix page) In other words, when compressing the same dot matrix page, if the dot matrix page is compressed by a compression method with a high compression ratio, the compression rate will be relatively small; if a compression rate is large, compression is performed. The method compresses the dot matrix page, although the compression rate becomes larger, but the compression ratio is lower.
一般地, 在选择压缩方式对点阵页面进行压缩时, 会选择压缩比 例较高, 但压縮速率相对较低的压縮方式对复杂度较高的点阵页面进 行压缩; 而对于复杂度较低的点阵页面, 则会选择压缩速率较大, 而 压缩比例相对较低的压缩方式对其进行压縮。  Generally, when the compression mode is selected to compress the dot matrix page, a compression method with a higher compression ratio but a relatively lower compression rate is selected to compress the dot matrix page with higher complexity; A low dot matrix page will compress the compression rate with a relatively low compression ratio.
在一幅点阵页面中, 往往会存在文字元素、 图形元素、 图像元素, 此外, 还会存在不包含任何文字、 图形以及图像的空白区域, 该空白 区域中的像素点不包含比如颜色信息、 灰度信息等任何一种信息, 因 此该空白区域中的像素点具有的元素类型被称为 "空白元素" 。 在同 时存在有空白元素、 文字元素、 图形元素以及图像元素的点阵页面中, 图像元素所在的部分会具有较高的复杂度, 而图形元素、 空白元素或 文字元素所在的部分则会具有较低的复杂度。 在现有技术中, 针对一 幅点阵页面进行压縮时是采用同一种压縮方式对整个点阵页面进行压 缩的, 这样就忽略了点阵页面中各种元素的差异, 从而也就不能很好 地缓解上述关于压缩比例和压缩速率之间矛盾的问题。 发明内容 In a dot matrix page, there are often text elements, graphic elements, and image elements. In addition, there are blank areas that do not contain any text, graphics, and images. The pixels in the blank area do not contain color information, for example. Any kind of information such as gray scale information, and therefore the element type of the pixel in the blank area is called a "blank element". In the same In a dot matrix page with blank elements, text elements, graphic elements, and image elements, the portion of the image element will have a higher complexity, while the portion of the graphic element, blank element, or text element will have a lower The complexity. In the prior art, when compressing a dot matrix page, the same dot matrix page is compressed by the same compression method, thereby ignoring the difference of various elements in the dot matrix page, and thus cannot The above contradictory problems between the compression ratio and the compression rate are well alleviated. Summary of the invention
本发明实施例提供一种点阵页面压縮方法及装置, 用于解决现有 技术中采用同一种压縮方式对整个点阵页面进行压缩, 不能很好地缓 解压縮比例与压缩速率之间矛盾的问题。  The embodiment of the invention provides a method and a device for compressing a dot matrix page, which are used to solve the problem that the compression of the entire dot matrix page is performed by using the same compression mode in the prior art, and the compression ratio and the compression rate are not well relieved. Contradictory issues.
为此, 本发明采用以下技术方案:  To this end, the present invention adopts the following technical solutions:
一种点阵页面压縮方法, 包括: 将待压缩的点阵页面划分为至少 两个点阵页面部分; 以及针对划分得到的每个点阵页面部分进行如下 处理:  A dot matrix page compression method includes: dividing a bitmap page to be compressed into at least two dot matrix page portions; and performing the following processing on each of the lattice page portions obtained by the division:
确定在所述点阵页面部分中所占比例最大的元素类型;  Determining the type of element that has the largest proportion in the bitmap page portion;
根据确定的所占比例最大的元素类型, 选择对应的压縮方式对所 述点阵页面部分进行压缩。  According to the determined element type with the largest proportion, the corresponding compression mode is selected to compress the page portion of the dot matrix.
较佳地, 确定在所述点阵页面部分中所占比例最大的元素类型, 具体包括:  Preferably, determining the type of the element that has the largest proportion in the page portion of the dot matrix comprises:
在所述点阵页面部分中, 分别统计每种元素类型标识值的数目, 其中元素类型标识值是在将页面内容光栅化为点阵页面的过程中, 分 别为该点阵页面中的不同元素类型分别赋予的元素类型标识值; 根据 统计得到的每种元素类型标识值的数目, 确定在所述点阵页面中所占 比例最大的元素类型。  In the bitmap page portion, the number of identifier values of each element type is separately counted, wherein the element type identifier value is a different element in the bitmap page in the process of rasterizing the page content into a dot matrix page. The element type identification value respectively assigned by the type; according to the number of identification values of each element type obtained by the statistics, the element type having the largest proportion in the dot matrix page is determined.
一种点阵页面压缩装置, 包括划分单元, 用于将待压縮的点阵页 面划分为至少两个点阵页面部分; 确定单元, 用于针对划分单元划分 得到的各个点阵页面部分, 分别确定所述点阵页面部分中所占比例最 大的元素类型; 选择单元, 用于根据确定单元确定的所占比例最大的 元素类型, 选择对应的压缩方式对所述点阵页面部分进行压縮。 较佳地, 所述确定单元具体包括统计模块, 用于针对划分单元划 分得到的各个点阵页面部分, 分别统计各个点阵页面部分中每种元素 类型标识值的数目, 其中元素类型标识值是在将页面内容光栅化为点 阵页面的过程中, 分别为该点阵页面中的不同元素类型分别赋予的唯 一标识值; 确定模块, 用于根据统计模块统计得到的每种元素类型标 识值的数目, 确定在各个点阵页面中所占比例最大的元素类型。 A dot matrix page compression device, comprising: a dividing unit, configured to divide a dot matrix page to be compressed into at least two dot matrix page portions; and a determining unit, configured to divide each dot matrix page portion obtained by the dividing unit, respectively Determining an element type that has the largest proportion in the bitmap page portion; and selecting a unit, configured to compress the bitmap page portion according to the element type that has the largest proportion determined by the determining unit, and select a corresponding compression manner. Preferably, the determining unit specifically includes a statistic module, configured to calculate, according to each bitmap page portion obtained by dividing the unit, the number of each element type identifier value in each bitmap page portion, wherein the element type identifier value is In the process of rasterizing page content into a dot matrix page, respectively, respectively, a unique identifier value respectively assigned to different element types in the dot matrix page; a determining module, configured to identify values of each element type according to statistics module statistics Number, determines the type of element that has the largest proportion of each dot matrix page.
一种点阵页面压缩方法, 包括: 确定待压縮的点阵页面中包含的 元素类型; 根据确定结果, 选择不同的压縮方式分别对不同元素类型 所在的页面部分进行压縮。  A dot matrix page compression method includes: determining an element type included in a dot matrix page to be compressed; and selecting different compression modes to respectively compress a page portion where different element types are located according to the determination result.
一种点阵页面压缩装置, 包括确定单元, 用于确定待压縮的点阵 页面中包含的元素类型; 选择单元, 用于根据确定单元的确定结果, 选择不同的压缩方式分别对不同元素类型所在的页面部分进行压缩。  A dot matrix page compressing device, comprising: a determining unit, configured to determine an element type included in a dot matrix page to be compressed; and a selecting unit, configured to select different compression modes for different element types according to the determining result of the determining unit The portion of the page where it is located is compressed.
本发明实施例通过将待压缩的点阵页面划分为至少两个点阵页面 部分; 以及针对划分得到的每个点阵页面部分, 确定在所述点阵页面 部分中所占比例最大的元素类型; 并根据确定的所占比例最大的元素 类型, 选择对应的压縮方式对所述点阵页面部分进行压缩, 从而能够 很好地缓解压縮比例与压缩速率之间矛盾的问题。 附图说明  In the embodiment of the present invention, the dot matrix page to be compressed is divided into at least two dot matrix page portions; and for each dot matrix page portion obtained by the partitioning, the element type having the largest proportion in the dot matrix page portion is determined. And according to the determined element type with the largest proportion, the corresponding compression mode is selected to compress the page portion of the dot matrix, so that the contradiction between the compression ratio and the compression rate can be well relieved. DRAWINGS
图 1为包含了各种不同元素类型的点阵页面示意图;  Figure 1 is a schematic diagram of a dot matrix page containing various types of elements;
图 2为本发明实施例提供的一种点阵页面压缩方法的具体流程示 意图;  2 is a schematic flowchart of a dot matrix page compression method according to an embodiment of the present invention;
图 3为本发明实施例提供的点阵页面压缩方法的具体实现流程示 意图;  FIG. 3 is a schematic flowchart of a specific implementation process of a dot matrix page compression method according to an embodiment of the present invention; FIG.
图 4为本发明实施例中由原始页面生成中间格式的点阵页面示意 图;  4 is a schematic diagram of a dot matrix page for generating an intermediate format from an original page according to an embodiment of the present invention;
图 5为元素类型点阵中的元素类型标识值与点阵页面中的像素点 相对应的示意图;  5 is a schematic diagram of the element type identification value in the element type dot matrix corresponding to the pixel point in the dot matrix page;
图 6为本发明实施例提供的一种点阵页面压缩装置的具体结构示 意图; 图 7为本发明实施例提供的另一种点阵页面压縮方法的具体流程 示意图; FIG. 6 is a schematic structural diagram of a dot matrix page compression apparatus according to an embodiment of the present invention; FIG. 7 is a schematic flowchart of another method for compressing a dot matrix page according to an embodiment of the present disclosure;
图 8为本发明实施例提供的另一种点阵页面压縮装置的具体结构 示意图;  FIG. 8 is a schematic structural diagram of another dot matrix page compression apparatus according to an embodiment of the present disclosure;
图 9是本发明实施例中划分 CMYK点阵页面而获得的 2个点阵页面 部分的示意图。 具体实施方式  Figure 9 is a diagram showing portions of two dot matrix pages obtained by dividing a CMYK dot matrix page in an embodiment of the present invention. detailed description
本发明实施例提供一种点阵页面压缩方案, 用以解决现有技术中 采用同一种压缩方式对整个点阵页面进行压缩, 不能很好地缓解压缩 比例与压缩速率之间矛盾的问题。  The embodiment of the present invention provides a dot matrix page compression scheme, which is used to solve the problem that the compression of the entire dot matrix page is performed by using the same compression mode in the prior art, and the problem of the contradiction between the compression ratio and the compression rate cannot be well relieved.
下面结合各个附图对本发明实施例技术方案的主要实现原理、 具 体实施方式及其对应能够达到的有益效果进行详细的阐述。  The main implementation principles, the specific embodiments, and the corresponding beneficial effects that can be achieved by the technical solutions of the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
如图 1所示, 为一幅点阵页面的示意图, 在该点阵页面中, 包含 了空白元素、 文字元素、 图形元素、 图像元素等各种不同的元素类型, 比如, 图中的英文字母以及阿拉伯数字为文字元素; 星形与六边形为 图形元素; 风景图片被称为图像元素; 而除文字、 图形、 图像外的空 白区域部分则为空白元素。  As shown in FIG. 1 , it is a schematic diagram of a dot matrix page, which includes various element types such as blank elements, text elements, graphic elements, and image elements, for example, the letters in the figure. And Arabic numerals are text elements; stars and hexagons are graphic elements; landscape pictures are called image elements; and blank areas except text, graphics, and images are blank elements.
一般地, 一幅点阵页面的复杂度能够通过上述各个元素分别在该 页面中所占的比例进行体现, 比如当一幅点阵页面中各元素类型所占 的比例分别为: 空白元素占 50%, 文字元素占 30%, 图形元素占 15%, 图像元素占 5%, 则可以判断该点阵页面的复杂度较低; 而当一幅点阵 页面中各元素所占的比例分别为: 图像元素占 70%, 文字元素占 10%, 图形元素占 15%, 空白元素占 5%, 则可以判断该点阵页面的复杂度较 高。  Generally, the complexity of a dot matrix page can be represented by the proportion of each of the above elements in the page, for example, when the proportion of each element type in a dot matrix page is: blank element 50 %, text elements account for 30%, graphic elements account for 15%, image elements account for 5%, you can judge the dot matrix page is less complex; and when a dot matrix page, the proportion of each element is: Image elements account for 70%, text elements for 10%, graphic elements for 15%, and blank elements for 5%, which can be judged to be more complex.
因此, 根据点阵页面中元素类型的比例与点阵页面的复杂度的对 应关系, 本发明实施例提供了一种点阵页面压缩方法, 该方法的具体 流程示意图如图 2所示, 包括:  Therefore, according to the correspondence between the proportion of the element type in the dot matrix page and the complexity of the dot matrix page, the embodiment of the present invention provides a dot matrix page compression method, and the specific process schematic diagram of the method is as shown in FIG. 2, including:
步骤 21, 将待压缩的点阵页面划分为至少两个点阵页面部分; 步骤 22, 分别确定在划分得到的各个点阵页面部分中所占比例最 大的元素类型; Step 21, dividing the dot matrix page to be compressed into at least two dot matrix page portions; Step 22, respectively determining the proportion of each dot matrix page portion obtained by the partitioning Large element type;
步骤 23, 根据确定的所占比例最大的元素类型, 分别选择对应的 压縮方式对各个点阵页面部分进行压缩。  Step 23: According to the determined element type with the largest proportion, respectively, select a corresponding compression mode to compress each bitmap page portion.
由于在 RIP将诸如 PS或 PDF格式描述的原始页面转化成为点阵页 面的过程中, 会生成由像素的灰度值表示的中间格式的点阵页面, 因 此, 本实施例提出的方法可以根据该中间格式的点阵页面, 来确定生 成的点阵页面中各个像素的元素类型, 进而确定在划分得到的各个点 阵页面部分中所占比例最大的元素类型, 并选择相应的压縮方式对点 阵页面部分进行压缩。 这一过程的具体流程示意图如图 3所示, 包括: 步骤 31, 将 PS或 PDF格式描述的原始页面输入到 RIP中, 该 RIP 被设置为: 根据输入的原始页面, 需要输出每英寸 600 个像素点 ( 600DPI )的用于印刷的四分色(CMYK,青—— Cyan, 品红—— Magenta, 黄—— Yel low, 黑—— Black)点阵页面, 其中, 输出的点阵页面中每 个像素点需用 1 个字节分别表示四分色中的一种分色的信息, 即每个 像素点的四分色共需 4字节进行表示;  Since the RIP generates an intermediate format dot matrix page represented by the gray value of the pixel in the process of converting the original page such as the PS or PDF format into a dot matrix page, the method proposed in this embodiment can be The dot matrix page of the intermediate format determines the element type of each pixel in the generated dot matrix page, and further determines the element type that has the largest proportion among the divided dot matrix page parts, and selects the corresponding compression mode pair point. The page portion is compressed. The specific process diagram of this process is shown in FIG. 3, including: Step 31: Input the original page of the PS or PDF format description into the RIP, and the RIP is set to: According to the original page input, 600 output per inch is required. Pixel point (600DPI) for printing four color separation (CMYK, Cyan - Cyan, Magenta - Magenta, Yellow - Yel low, Black - Black) dot matrix page, where the output of the dot matrix page Each pixel needs to use 1 byte to represent the information of one of the four color separations, that is, the four color divisions of each pixel need to be represented by 4 bytes;
步骤 32,分别为不同元素类型分配唯一的元素类型标识值, 比如, 可以但不限于为元素类型为图像类型的像素点分配元素标识值 1,为元 素类型为非图像类型的像素点分配元素标识值 0, 或者, 为元素类型为 图像类型、 图形类型、 文字类型以及空白类型的像素点分别分配元素 标识值 11、 10、 01、 00;  Step 32: Assign a unique element type identifier value to different element types, for example, may, but is not limited to, assign an element identifier value 1 to a pixel point whose element type is an image type, and assign an element identifier to a pixel point whose element type is a non-image type. a value of 0, or, respectively, assigning element identification values 11, 10, 01, 00 to pixel points whose element type is image type, graphic type, text type, and blank type;
步骤 33, RIP将原始页面转化为由像素的灰度值表示的中间格式 的点阵页面, 并且, 根据分配的元素类型标识值, 生成与中间格式的 点阵页面对应的元素类型点阵;  Step 33: The RIP converts the original page into a dot matrix page of an intermediate format represented by a gray value of the pixel, and generates an element type dot matrix corresponding to the dot matrix page of the intermediate format according to the assigned element type identification value;
步骤 34, RIP根据原始页面中的颜色信息, 在中间格式的点阵页 面基础上进一步生成 CMYK点阵页面;  Step 34: The RIP further generates a CMYK dot matrix page based on the dot matrix page of the intermediate format according to the color information in the original page;
步骤 35, 将生成的 CMYK点阵页面至少划分为 2个点阵页面部分, 比如, 可以将 RIP 分段输出的每一部分点阵页面作为划分得到的点阵 页面部分, 如图 9所示, RIP将一页的点阵划分为两段, 这样可同时使 用两个线程来处理这两个点阵部分, 从而可使转换的速度提高一倍; 步骤 36, 对步骤 33 中生成的元素类型点阵中具有相同元素类型 的像素点个数进行统计, 从而确定各个点阵页面部分中所占比例最大 的元素类型, 其中, 对具有相同元素类型的像素点进行统计时, 可以 采用逐点统计的方式, 也可以采用以 8 邻域为单位进行统计的方式, 比如, 当某像素的元素类型为图像元素时, 则按照与该像素相邻的 8 领域中的 8 个像素点都为图像元素进行统计, 可见, 采用后者的统计 方式能够加快统计速度, 提高统计效率; Step 35: Divide the generated CMYK dot matrix page into at least two dot matrix page parts. For example, each part of the dot matrix page output by the RIP segment may be used as a part of the divided dot matrix page, as shown in FIG. Dividing a dot matrix into two segments, so that two threads can be used simultaneously to process the two lattice portions, thereby doubling the conversion speed; Step 36, the lattice of the element types generated in step 33 Have the same element type The number of pixels is counted to determine the type of the element that has the largest proportion in the page portion of each dot matrix. When counting the pixels with the same element type, the point-by-point statistical method may be used, or 8 The neighborhood is a unit for statistical calculation. For example, when the element type of a pixel is an image element, the image is calculated according to the 8 pixel points in the 8 fields adjacent to the pixel. Statistical methods can speed up statistics and improve statistical efficiency;
步骤 37, 根据确定的各个点阵页面部分中所占比例最大的元素类 型, 选择相应的压缩方式, 分别对各个点阵页面部分进行压缩。  Step 37: Select a corresponding compression mode according to the determined element type having the largest proportion in each dot matrix page portion, and respectively compress each dot matrix page portion.
其中, 上述步骤 33的具体实现过程如下:  The specific implementation process of the foregoing step 33 is as follows:
首先, RIP 分别根据原始页面中的图像、 图形以及文字的轮廓描 述, 解释并形成对应的轮廓矢量描述, 然后利用填充算法对该轮廓构 成的区域进行填充, 使该部分原始页面转化为由灰度值表示的中间格 式的点阵页面, 在进行填充时, 可以将图像轮廓构成的区域按照像素 点的灰度值为 255 进行填充, 而将图形轮廓构成的区域、 文字轮廓构 成的区域以及其余空白区域则不进行填充; 也可以将图像轮廓的区域 按照像素点的灰度值为 255 进行填充, 将图形轮廓构成的区域按照像 素点的灰度值为 170 进行填充, 将文字轮廓构成的区域按照像素点的 灰度值为 85进行填充, 而对其余空白区域不进行填充, 如图 4所示, 为该过程中由原始页面生成中间格式的点阵页面的示意图;  First, the RIP interprets and forms the corresponding contour vector description according to the contour description of the image, the graphic and the text in the original page, and then fills the area formed by the contour by using the filling algorithm, so that the original page is converted into grayscale. The dot matrix page of the intermediate format indicated by the value, when filling, the area of the image outline can be filled according to the gray value of the pixel point of 255, and the area formed by the graphic outline, the area composed of the text outline, and the rest of the blank The area is not filled; the area of the image outline can be filled according to the gray value of the pixel point of 255, and the area formed by the outline of the image is filled according to the gray value of the pixel point of 170, and the area formed by the outline of the text is The gray value of the pixel is filled with 85, and the remaining blank areas are not filled, as shown in FIG. 4, which is a schematic diagram of the dot matrix page generated by the original page in the process;
通过上述过程生成中间格式的点阵页面后,根据步骤 32中为每种 元素类型分配的元素标识值, 进一步生成与各个像素点具有的元素类 型相对应的元素类型点阵, 比如, 当非图像类型的元素类型标识值被 设置为 0, 而图像类型的元素类型标识值被设置为 1时, 则可以针对填 充后得到的中间格式的点阵页面, 对应生成用于表示页面中各个像素 点元素类型的元素类型点阵, 如图 5 所示, 即为生成的元素类型点阵 中的元素类型标识值与中间格式的点阵页面中的像素点相对应的示意 图, 可以看出, 元素类型点阵与点阵页面中像素点的元素类型是一一 对应的, 且在该点阵中, 用于表示像素点元素类型仅需 1/8 个字节, 因此, 该点阵所占的存储空间相比于一个像素点需 4字节表示的 CMYK 点阵页面, 该点阵占据的存储空间较小, 并且生成元素类型点阵的时 间仅为生成 CMYK点阵页面时间的 1%左右, 同理, 当元素类型为图像类 型、 图形类型、 文字类型以及空白类型的像素点被设置的元素标识值 分别为 11、 10、 01、 00时, 也可以生成对应的元素类型点阵, 此时用 于表示像素点元素类型仅需 1/4个字节。 After the dot matrix page of the intermediate format is generated by the above process, according to the element identification value assigned to each element type in step 32, an element type dot matrix corresponding to the element type of each pixel point is further generated, for example, when the image is not The element type identifier value of the type is set to 0, and when the element type identifier value of the image type is set to 1, the dot matrix page of the intermediate format obtained after the filling may be correspondingly generated to represent each pixel point element in the page. The type of element type dot matrix, as shown in Figure 5, is the schematic diagram of the element type identifier value in the generated element type dot matrix corresponding to the pixel point in the dot matrix page of the intermediate format. It can be seen that the element type point The element types of the pixels in the matrix and the dot matrix page are in one-to-one correspondence, and in the dot matrix, the element type for representing the pixel point only needs 1/8 byte, and therefore, the storage space occupied by the dot matrix Compared to a CMYK dot matrix page with a 4-byte representation of a pixel, the dot matrix occupies less storage space and generates an element type dot matrix The interval is only about 1% of the time of generating CMYK dot matrix. Similarly, when the element type is image type, graphic type, text type, and blank type, the pixel identification values are set to 11, 10, 01, 00. At the same time, it is also possible to generate a corresponding element type dot matrix, which is only required to represent the pixel point element type in only 1/4 byte.
此外, 上述的步骤 37可以但不限于采用以下两种方式来实现: 第一种方式: 将图形元素、 文字元素及空白元素都看作非图像元 素, 这样, 在点阵页面中只包含图像元素和非图像元素这两种元素类 型, 因此, 在确定的所占比例最大的元素类型为图像元素时, 选择第 一压缩方式对所述点阵页面部分进行压缩; 而在确定的所占比例最大 的元素类型为非图像元素时, 选择第二压缩方式对所述点阵页面部分 进行压缩; 其中第一压缩方式的压缩比例高于第二压缩方式的压缩比 例, 或第二压缩方式的压缩速率大于第一压縮方式的压縮速率, 比如, 这里的第一压缩方式可以但不限于为游程压缩算法, 而第二压缩方式 则可以但不限于为 ZLIB压缩算法。  In addition, the above step 37 can be implemented by, but not limited to, the following two ways: The first way: regards the graphic element, the text element and the blank element as non-image elements, so that only the image elements are included in the dot matrix page. And non-image elements, the two element types, therefore, when the determined largest element type is the image element, the first compression mode is selected to compress the bitmap page portion; and the determined proportion is the largest When the element type is a non-image element, the second compression mode is selected to compress the bitmap page portion; wherein the compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, or the compression ratio of the second compression mode The compression rate is greater than the first compression mode. For example, the first compression mode may be, but not limited to, a run-length compression algorithm, and the second compression mode may be, but not limited to, a ZLIB compression algorithm.
第二种方式: 点阵页面的元素类型包括图像元素、 图形元素、 文 字元素以及空白元素, 在确定的所占比例最大的元素类型为图像元素 时, 选择第一压縮方式对所述点阵页面部分进行压缩; 在确定的所占 比例最大的元素类型为图形元素时, 选择第二压缩方式对所述点阵页 面部分进行压缩; 在确定的所占比例最大的元素类型为文字元素时, 选择第三压缩方式对所述点阵页面部分进行压縮; 在确定的所占比例 最大的元素类型为空白元素时, 选择第四压缩方式对所述点阵页面部 分进行压縮; 其中, 各种压缩方式满足: 第一压缩方式的压縮比例高 于第二压缩方式的压缩比例, 第二压缩方式的压缩比例高于第三压缩 方式的压缩比例, 第三压縮方式的压縮比例高于第四压缩方式的压缩 比例; 或第四压縮方式的压缩速率大于第三压縮方式的压縮速率, 第 三压縮方式的压缩速率大于第二压缩方式的压縮速率, 第二压缩方式 的压縮速率大于第一压縮方式的压缩速率。  The second mode: the element type of the dot matrix page includes an image element, a graphic element, a text element, and a blank element. When the determined element type having the largest proportion is an image element, the first compression mode is selected for the dot matrix. The page portion is compressed; when the determined largest element type is a graphic element, the second compression mode is selected to compress the bitmap page portion; when the determined largest proportion of the element type is a text element, Selecting a third compression mode to compress the bitmap page portion; when the determined largest element type is a blank element, selecting a fourth compression manner to compress the bitmap page portion; The compression method satisfies: the compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, the compression ratio of the second compression mode is higher than the compression ratio of the third compression mode, and the compression ratio of the third compression mode is high. The compression ratio of the fourth compression mode; or the compression ratio of the fourth compression mode is greater than the compression of the third compression mode Rate, compression rate of compression is greater than the third rate of compression of the second compression mode, the compression rate of the second embodiment is greater than the compression rate of compression of the first compression method.
除上述的两种方式外, 根据点阵页面中任意一种或多种元素类型 所占比例来确定压缩方式的方法, 均在本发明的保护范围之内。  In addition to the above two methods, the method of determining the compression mode according to the proportion of any one or more element types in the dot matrix page is within the protection scope of the present invention.
由于压缩得到的点阵页面会受到存储空间大小的限制, 并且, 在 0 对点阵页面进行压縮时, 还会受到预先规定的压縮效率要求的限制, 因此当采用上述两种方式选择压缩方式时, 还需要考虑到类似的限制 因素。 为此, 可以预先设定压縮比例阈值或者压縮速率阈值, 这样就 可以规定后续选择的压缩方式的压缩比例必须大于预设的压缩比例阈 值, 或者选择的压缩方式的压缩速率必须大于预设的压缩速率阈值等。 Since the bitmap page obtained by compression is limited by the size of the storage space, and 0 When compressing a dot matrix page, it is also subject to the pre-specified compression efficiency requirements. Therefore, when the compression method is selected in the above two ways, similar limiting factors need to be considered. To this end, the compression ratio threshold or the compression rate threshold may be preset, so that the compression ratio of the subsequently selected compression mode must be greater than the preset compression ratio threshold, or the compression rate of the selected compression mode must be greater than the preset. The compression rate threshold and so on.
此外, 当图像元素与非图像元素所占的比例较接近时, 比如在一 个点阵页面部分中图像元素所占的比例为 49%,而非图像元素所占的比 例为 51%时,也可以选择压縮比例较大的压縮方式对点阵页面部分进行 压縮, 因此, 在根据各种元素所占比例值选择对应的压缩方式时, 也 可以预先设定比例阈值, 比如, 设置图像元素的比例阈值为 40%, 则当 图像元素占整个点阵页面部分的比例达到 40%时,选择压縮比例较大的 压縮方式对该点阵页面部分进行压缩。  In addition, when the ratio of image elements to non-image elements is relatively close, for example, in a dot matrix page portion, the proportion of image elements is 49%, and the ratio of non-image elements is 51%. Select a compression method with a large compression ratio to compress the portion of the dot matrix. Therefore, when selecting the corresponding compression method according to the proportion of the various elements, the proportional threshold can also be set in advance, for example, setting the image element. The ratio threshold is 40%, and when the ratio of the image element to the entire page portion of the dot matrix reaches 40%, the compression method with a larger compression ratio is selected to compress the page portion of the dot matrix.
需要说明的是, 为了达到加快压缩速度, 提高压缩效率的目的, 本发明提供的该方法中, 可以对划分得到的每个点阵页面部分进行同 步并行压缩处理。  It should be noted that, in order to achieve the purpose of speeding up the compression speed and improving the compression efficiency, in the method provided by the present invention, the parallel parallel compression processing may be performed on each of the divided page portions.
相应地, 本发明实施例还提供了一种点阵页面压縮装置, 用以解 决现有技术中采用同一种压缩方式对整个点阵页面进行压縮, 不能很 好地缓解压缩比例与压缩速率之间矛盾的问题, 该装置的具体结构示 意图如图 6所示, 具体包括:  Correspondingly, the embodiment of the present invention further provides a dot matrix page compression device, which is used to solve the compression of the entire dot matrix page by using the same compression mode in the prior art, and the compression ratio and the compression rate are not well relieved. The contradictory problem, the specific structure of the device is shown in Figure 6, specifically including:
划分单元 61, 用于将待压缩的点阵页面划分为至少两个点阵页面 部分;  a dividing unit 61, configured to divide the dot matrix page to be compressed into at least two dot matrix page portions;
确定单元 62, 用于针对划分单元 61 划分得到的各个点阵页面部 分, 分别确定所述点阵页面部分中所占比例最大的元素类型;  a determining unit 62, configured to determine, according to each of the bitmap page portions obtained by the dividing unit 61, the element type that has the largest proportion in the bitmap page portion;
选择单元 63, 用于根据确定单元 62确定的所占比例最大的元素 类型, 选择对应的压缩方式对所述点阵页面部分进行压縮。  The selecting unit 63 is configured to compress the bitmap page portion according to the element type with the largest proportion determined by the determining unit 62 and select a corresponding compression manner.
其中,当确定单元 62采用通过统计元素类型标识值来确定各个点 阵页面中所占比例最大的元素类型时, 如图 6所示, 所述确定单元 62 具体包括:  The determining unit 62 specifically includes: when the determining unit 62 uses the statistic element type identifier value to determine the element type that has the largest proportion in each dot matrix page, as shown in FIG.
统计模块 621, 用于针对划分单元 61划分得到的各个点阵页面部 分, 分别统计各个点阵页面部分中每种元素类型标识值的数目, 其中 元素类型标识值是在将页面内容光栅化为点阵页面的过程中, 分别为 该点阵页面中的不同元素类型分别赋予的唯一元素类型标识值; The statistic module 621 is configured to calculate, according to each bitmap page portion obtained by the dividing unit 61, the number of identifier values of each element type in each bitmap page portion, where The element type identifier value is a unique element type identifier value respectively assigned to different element types in the dot matrix page in the process of rasterizing the page content into a dot matrix page;
确定模块 622, 用于根据统计模块 621 统计得到的每种元素类型 标识值的数目, 确定在各个点阵页面中所占比例最大的元素类型。  The determining module 622 is configured to determine the element type that has the largest proportion in each dot matrix page according to the number of identification values of each element type obtained by the statistical module 621.
在统计模块 621 中, 由于为不同元素类型分配元素类型标识值, 以及将页面内容光栅化为点阵页面的过程中根据中间格式的点阵页面 生成元素类型点阵的过程与上述方法实施例中描述的过程类似, 因此 不再赘述。  In the statistics module 621, a process of generating an element type identifier value for a different element type, and generating an element type dot matrix according to an intermediate format dot matrix page in the process of rasterizing the page content into a dot matrix page The process of description is similar and will not be described again.
通过上述的实施例可知, 采用本发明提供的点阵图像压缩方案, 通过将待压縮的点阵页面划分为至少两个点阵页面部分; 以及针对划 分得到的每个点阵页面部分, 确定在所述点阵页面部分中所占比例最 大的元素类型; 并根据确定的所占比例最大的元素类型, 选择对应的 压缩方式对所述点阵页面部分进行压缩, 能够解决现有技术中采用同 一种压缩方式对整个点阵页面进行压縮, 不能很好地缓解压縮比例与 压缩速率之间矛盾的问题。  According to the foregoing embodiment, the bitmap image compression scheme provided by the present invention is determined by dividing the dot matrix page to be compressed into at least two dot matrix page portions; and determining, for each bitmap page portion obtained by the partitioning, The type of the element having the largest proportion in the page portion of the dot matrix; and compressing the portion of the dot matrix page by selecting a corresponding compression mode according to the determined type of the largest component, which can solve the prior art The same compression method compresses the entire dot matrix page, which does not relieve the contradiction between the compression ratio and the compression rate.
此外, 由于通常在点阵页面中, 具有相同元素类型的像素点一般 都是集中分布的, 因此, 本发明还提供另一种点阵页面压缩方法, 无 需对点阵页面进行划分, 就能够解决现有技术中采用同一种压缩方式 对整个点阵页面进行压縮, 不能很好地缓解压縮比例与压縮速率之间 矛盾的问题。  In addition, since pixel points having the same element type are generally distributed in a dot matrix page, the present invention also provides another dot matrix page compression method, which can be solved without dividing the dot matrix page. In the prior art, the same compression method is used to compress the entire dot matrix page, which does not well alleviate the contradiction between the compression ratio and the compression rate.
本发明实施例提供的另一种点阵页面压縮方法的具体流程示意图 如图 7所示, 包括:  A specific flow chart of another dot matrix page compression method provided by the embodiment of the present invention is as shown in FIG. 7 , including:
步骤 71, 确定待压縮的点阵页面中包含的元素类型;  Step 71: Determine an element type included in the bitmap page to be compressed.
步骤 72, 根据确定结果, 选择不同的压缩方式分别对不同元素类 型所在的页面部分进行压缩。  Step 72: According to the determination result, different compression modes are selected to respectively compress the page parts where different element types are located.
其中, 上述步骤 72可以但不限于采用以下两种方式实现: 第一种方式: 将图形元素、 文字元素及空白元素都看作非图像元 素, 这样, 在点阵页面中只包含图像元素和非图像元素这两种元素类 型, 因此, 在确定的所占比例最大的元素类型为图像元素时, 选择第 一压缩方式对所述点阵页面部分进行压縮; 而在确定的所占比例最大 的元素类型为非图像元素时, 选择第二压缩方式对所述点阵页面部分 进行压缩; 其中第一压缩方式的压缩比例高于第二压縮方式的压缩比 例, 或第二压縮方式的压缩速率大于第一压缩方式的压缩速率, 比如, 这里的第一压缩方式可以但不限于为游程压缩算法, 而第二压缩方式 则可以但不限于为 ZLIB压縮算法。 The foregoing step 72 can be implemented in the following two ways: The first method: the graphic element, the text element, and the blank element are regarded as non-image elements, so that only the image elements and non-images are included in the dot matrix page. The image element has two element types. Therefore, when the determined element type having the largest proportion is the image element, the first compression mode is selected to compress the bitmap page portion; and the determined proportion is the largest. When the element type is a non-image element, the second compression mode is selected to compress the bitmap page portion; wherein the compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, or the second compression mode The compression rate is greater than the compression rate of the first compression mode. For example, the first compression mode may be, but not limited to, a run-length compression algorithm, and the second compression mode may be, but not limited to, a ZLIB compression algorithm.
第二种方式: 点阵页面的元素类型包括图像元素、 图形元素、 文 字元素以及空白元素, 在确定的所占比例最大的元素类型为图像元素 时, 选择第一压縮方式对所述点阵页面部分进行压缩; 在确定的所占 比例最大的元素类型为图形元素时, 选择第二压缩方式对所述点阵页 面部分进行压缩; 在确定的所占比例最大的元素类型为文字元素时, 选择第三压缩方式对所述点阵页面部分进行压縮; 在确定的所占比例 最大的元素类型为空白元素时, 选择第四压縮方式对所述点阵页面部 分进行压缩; 其中, 各种压缩方式满足: 第一压缩方式的压缩比例高 于第二压縮方式的压缩比例, 第二压縮方式的压缩比例高于第三压缩 方式的压缩比例, 第三压缩方式的压缩比例高于第四压縮方式的压缩 比例; 或第四压缩方式的压缩速率大于第三压缩方式的压缩速率, 第 三压缩方式的压縮速率大于第二压缩方式的压縮速率, 第二压缩方式 的压缩速率大于第一压缩方式的压缩速率。  The second mode: the element type of the dot matrix page includes an image element, a graphic element, a text element, and a blank element. When the determined element type having the largest proportion is an image element, the first compression mode is selected for the dot matrix. The page portion is compressed; when the determined largest element type is a graphic element, the second compression mode is selected to compress the bitmap page portion; when the determined largest proportion of the element type is a text element, Selecting a third compression mode to compress the bitmap page portion; when the determined largest element type is a blank element, selecting a fourth compression manner to compress the bitmap page portion; The compression mode satisfies: the compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, the compression ratio of the second compression mode is higher than the compression ratio of the third compression mode, and the compression ratio of the third compression mode is higher than The compression ratio of the fourth compression mode; or the compression ratio of the fourth compression mode is greater than the compression of the third compression mode Rate, compression rate of compression is greater than the third rate of compression of the second compression mode, the compression rate of the second embodiment is greater than the compression rate of compression of the first compression method.
除上述的两种方式外, 根据点阵页面中任意一种或多种元素类型 所占比例来确定压缩方式的方法, 均在本发明的保护范围之内。  In addition to the above two methods, the method of determining the compression mode according to the proportion of any one or more element types in the dot matrix page is within the protection scope of the present invention.
相应地, 本发明实施例还提供一种点阵页面压缩装置, 其具体结 构示意图如图 8所示, 包括:  Correspondingly, the embodiment of the present invention further provides a dot matrix page compression device, and a specific structural diagram thereof is shown in FIG.
确定单元 81, 用于确定待压缩的点阵页面中包含的元素类型; 选择单元 82, 用于根据确定单元 81 的确定结果, 选择不同的压 縮方式分别对不同元素类型所在的页面部分进行压缩。  The determining unit 81 is configured to determine an element type included in the dot matrix page to be compressed, and the selecting unit 82 is configured to: according to the determining result of the determining unit 81, select different compression modes to respectively compress the page portion where the different element type is located .
其中, 选择单元 82选择不同的压缩方式, 分别对不同元素类型所 在的页面部分进行压縮的过程与上述方法实施例的相关描述类似, 因 此不再赘述。  The selection unit 82 selects different compression modes, and the process of compressing the page portions of the different element types is similar to the related description of the foregoing method embodiments, and therefore will not be described again.
显然, 本领域的技术人员可以对本发明进行各种改动和变型而不 脱离本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于 本发明权利要求及其等同技术的范围之内, 则本发明也意图包含这些 改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, if these modifications and variations of the invention belong to The invention is also intended to cover such modifications and variations within the scope of the appended claims.
1  1

Claims

权 利 要 求 书 Claim
1、 一种点阵页面压縮方法, 其特征在于, 包括: A dot matrix page compression method, comprising:
将待压縮的点阵页面划分为至少两个点阵页面部分; 以及 针对划分得到的每个点阵页面部分进行如下处理- 确定在所述点阵页面部分中所占比例最大的元素类型; 根据确定的所占比例最大的元素类型, 选择对应的压缩方式对所 述点阵页面部分进行压缩。  Dividing the dot matrix page to be compressed into at least two dot matrix page portions; and performing, for each of the lattice page portions obtained by the partitioning, a method of determining the largest proportion of elements in the dot matrix page portion; According to the determined element type with the largest proportion, the corresponding compression mode is selected to compress the bitmap page portion.
2、 如权利要求 1所述的方法, 其特征在于, 确定在所述点阵页面 部分中所占比例最大的元素类型, 具体包括- 在所述点阵页面部分中, 分别统计每种元素类型标识值的数目, 其中元素类型标识值是在将页面内容光栅化为点阵页面的过程中, 分 别为该点阵页面中的不同元素类型分别赋予的元素类型标识值; 2. The method according to claim 1, wherein determining an element type that has the largest proportion in the dot page portion, specifically comprising - separately counting each element type in the dot page portion The number of identifier values, wherein the element type identifier value is an element type identifier value respectively assigned to a different element type in the bitmap page in the process of rasterizing the page content into a dot matrix page;
根据统计得到的每种元素类型标识值的数目, 确定在所述点阵页 面中所占比例最大的元素类型。  Based on the number of statistically identified values for each element type, the type of element that has the largest proportion in the bitmap page is determined.
3、 如权利要求 1所述的方法, 其特征在于, 所述元素类型包括图 像元素和非图像元素; 以及 3. The method of claim 1, wherein the element type comprises an image element and a non-image element;
根据确定的所占比例最大的元素类型, 选择对应的压缩方式对所 述点阵页面部分进行压缩, 具体包括:  According to the determined element type with the largest proportion, the corresponding compression mode is selected to compress the page portion of the dot matrix, which specifically includes:
在确定的所占比例最大的元素类型为图像元素时, 选择第一压縮 方式对所述点阵页面部分进行压缩;  When the determined largest element type is an image element, the first compression mode is selected to compress the bitmap page portion;
在确定的所占比例最大的元素类型为非图像元素时, 选择第二压 缩方式对所述点阵页面部分进行压縮;  When the determined largest element type is a non-image element, the second compression mode is selected to compress the bitmap page portion;
其中第一压缩方式的压缩比例高于第二压缩方式的压缩比例, 或 第二压缩方式的压缩速率大于第一压縮方式的压缩速率。  The compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, or the compression rate of the second compression mode is greater than the compression rate of the first compression mode.
4、 如权利要求 1所述的方法, 其特征在于, 所述元素类型包括图 像元素、 图形元素、 文字元素以及空白元素; 根据确定的所占比例最大的元素类型, 选择对应的压縮方式对所 述点阵页面部分进行压縮, 具体包括: 4. The method according to claim 1, wherein the element type comprises an image element, a graphic element, a text element, and a blank element; The part of the dot matrix page is compressed according to the determined type of the largest element, and the corresponding compression mode is selected, which includes:
在确定的所占比例最大的元素类型为图像元素时, 选择第一压縮 方式对所述点阵页面部分进行压缩;  When the determined largest element type is an image element, the first compression mode is selected to compress the bitmap page portion;
在确定的所占比例最大的元素类型为图形元素时, 选择第二压缩 方式对所述点阵页面部分进行压缩;  When the determined largest element type is a graphic element, the second compression mode is selected to compress the bitmap page portion;
在确定的所占比例最大的元素类型为文字元素时, 选择第三压缩 方式对所述点阵页面部分进行压缩;  When the determined largest element type is a text element, the third compression mode is selected to compress the bitmap page portion;
在确定的所占比例最大的元素类型为空白元素时, 选择第四压缩 方式对所述点阵页面部分进行压縮;  When the determined largest element type is a blank element, the fourth compression mode is selected to compress the bitmap page portion;
其中第一压缩方式的压縮比例高于第二压缩方式的压縮比例, 第 二压缩方式的压缩比例高于第三压缩方式的压縮比例, 第三压缩方式 的压缩比例高于第四压縮方式的压缩比例; 或  The compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, the compression ratio of the second compression mode is higher than the compression ratio of the third compression mode, and the compression ratio of the third compression mode is higher than the fourth compression mode. The compression ratio of the shrink mode; or
第四压縮方式的压縮速率大于第三压缩方式的压缩速率, 第三压 縮方式的压缩速率大于第二压缩方式的压縮速率, 第二压缩方式的压 缩速率大于第一压缩方式的压缩速率。  The compression rate of the fourth compression mode is greater than the compression rate of the third compression mode, the compression rate of the third compression mode is greater than the compression rate of the second compression mode, and the compression rate of the second compression mode is greater than that of the first compression mode. rate.
5、 如权利要求 1所述的方法, 其特征在于, 同步对划分得到的每 个点阵页面部分进行处理。 The method according to claim 1, wherein the processing is performed on each of the divided page portions obtained by the division.
6、 一种点阵页面压縮装置, 其特征在于, 包括- 划分单元, 用于将待压缩的点阵页面划分为至少两个点阵页面部 分; A dot matrix page compression device, comprising: a dividing unit, configured to divide a dot matrix page to be compressed into at least two dot matrix page portions;
确定单元, 用于针对划分单元划分得到的各个点阵页面部分, 分 别确定所述点阵页面部分中所占比例最大的元素类型;  a determining unit, configured to determine, for each partitioned page portion obtained by dividing the unit, the element type having the largest proportion in the dot page portion;
选择单元, 用于根据确定单元确定的所占比例最大的元素类型, 选择对应的压缩方式对所述点阵页面部分进行压缩。  And a selecting unit, configured to compress the bitmap page portion according to the element type with the largest proportion determined by the determining unit, and selecting a corresponding compression manner.
7、 如权利要求 6所述的装置, 其特征在于, 所述确定单元具体包 括: 统计模块, 用于针对划分单元划分得到的各个点阵页面部分, 分 别统计各个点阵页面部分中每种元素类型标识值的数目, 其中元素类 型标识值是在将页面内容光栅化为点阵页面的过程中, 分别为该点阵 页面中的不同元素类型分别赋予的唯一标识值; The device according to claim 6, wherein the determining unit specifically includes: The statistics module is configured to calculate, according to each bitmap page part obtained by dividing the unit, the number of identifier values of each element type in each bitmap page part, wherein the element type identifier value is to rasterize the page content into a dot matrix page. In the process, respectively, a unique identifier value respectively assigned to different element types in the dot matrix page;
确定模块, 用于根据统计模块统计得到的每种元素类型标识值的 数目, 确定在各个点阵页面中所占比例最大的元素类型。  The determining module is configured to determine the type of the element that has the largest proportion in each dot matrix page according to the number of identification values of each element type obtained by the statistical module.
8、 一种点阵页面压缩方法, 其特征在于, 包括: 8. A dot matrix page compression method, comprising:
确定待压縮的点阵页面中包含的元素类型;  Determining the type of elements contained in the bitmap page to be compressed;
根据确定结果, 选择不同的压缩方式分别对不同元素类型所在的 页面部分进行压缩。  According to the determination result, different compression modes are selected to compress the page parts where different element types are located.
9、 如权利要求 8所述的方法, 其特征在于, 所述元素类型包括图 像元素和非图像元素; 以及 9. The method of claim 8, wherein the element type comprises an image element and a non-image element;
选择第一压缩方式对图像元素所在的页面部分进行压縮, 以及选 择第二压缩方式对非图像元素所在的页面部分进行压縮,  Selecting the first compression method to compress the portion of the page where the image element is located, and selecting the second compression method to compress the portion of the page where the non-image element is located,
其中第一压缩方式的压缩比例高于第二压缩方式的压縮比例, 或 第二压缩方式的压缩速率大于第一压縮方式的压缩速率。  The compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, or the compression rate of the second compression mode is greater than the compression rate of the first compression mode.
10、 如权利要求 8所述的方法, 其特征在于, 所述元素类型包括 图像元素、 图形元素、 文字元素以及空白元素; 以及 10. The method of claim 8, wherein the element type comprises an image element, a graphic element, a text element, and a blank element;
选择第一压缩方式对图像元素所在的页面部分进行压缩, 选择第 二压缩方式对图形元素所在的页面部分进行压缩, 选择第三压縮方式 对文字元素所在的页面部分进行压縮, 以及选择第四压缩方式对空白 元素所在的页面部分进行压缩;  Selecting the first compression method to compress the page portion where the image element is located, selecting the second compression method to compress the page portion where the graphic element is located, selecting the third compression method to compress the page portion where the text element is located, and selecting the first The four compression method compresses the portion of the page where the blank element is located;
其中第一压缩方式的压缩比例高于第二压縮方式的压縮比例, 第 二压缩方式的压缩比例高于第三压縮方式的压缩比例, 第三压缩方式 的压缩比例高于第四压缩方式的压縮比例; 或  The compression ratio of the first compression mode is higher than the compression ratio of the second compression mode, the compression ratio of the second compression mode is higher than the compression ratio of the third compression mode, and the compression ratio of the third compression mode is higher than the fourth compression mode. The compression ratio of the mode; or
第四压缩方式的压缩速率大于第三压缩方式的压缩速率, 第三压 縮方式的压缩速率大于第二压缩方式的压缩速率, 第二压缩方式的压 缩速率大于第一压缩方式的压縮速率。 The compression rate of the fourth compression mode is greater than the compression rate of the third compression mode, the compression rate of the third compression mode is greater than the compression rate of the second compression mode, and the compression of the second compression mode. The shrink rate is greater than the compression rate of the first compression mode.
11、 一种点阵页面压縮装置, 其特征在于, 包括: 11. A dot matrix page compression device, comprising:
确定单元, 用于确定待压縮的点阵页面中包含的元素类型; 选择单元, 用于根据确定单元的确定结果, 选择不同的压缩方式 分别对不同元素类型所在的页面部分进行压縮。  a determining unit, configured to determine an element type included in the bitmap page to be compressed; and a selecting unit, configured to select different compression modes according to the determining result of the determining unit, respectively compressing the page portion where the different element types are located.
PCT/CN2009/001080 2008-09-26 2009-09-25 Dot array page compressing method and apparatus WO2010037262A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810223362.1 2008-09-26
CNA2008102233621A CN101394461A (en) 2008-09-26 2008-09-26 Dot array page compression method and apparatus thereof

Publications (1)

Publication Number Publication Date
WO2010037262A1 true WO2010037262A1 (en) 2010-04-08

Family

ID=40494524

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/001080 WO2010037262A1 (en) 2008-09-26 2009-09-25 Dot array page compressing method and apparatus

Country Status (2)

Country Link
CN (1) CN101394461A (en)
WO (1) WO2010037262A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394461A (en) * 2008-09-26 2009-03-25 北大方正集团有限公司 Dot array page compression method and apparatus thereof
CN104427203B (en) * 2013-08-29 2018-04-27 北大方正集团有限公司 Page dot matrix self-adapting compressing, restoring method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1425247A (en) * 1999-12-20 2003-06-18 宾杰·威布股份株式会社 Image data compressing method and restoring method
US20040095601A1 (en) * 2002-11-05 2004-05-20 Konica Minolta Business Technologies, Inc. Image processing device, image processing method, image processing program and computer-readable recording medium on which the program is recorded
WO2006055587A2 (en) * 2004-11-15 2006-05-26 Smith Micro Software, Inc. System and method for lossless compression of already compressed files
CN1838725A (en) * 2005-03-23 2006-09-27 富士施乐株式会社 Log data recording device and log data recording method
CN101394461A (en) * 2008-09-26 2009-03-25 北大方正集团有限公司 Dot array page compression method and apparatus thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1425247A (en) * 1999-12-20 2003-06-18 宾杰·威布股份株式会社 Image data compressing method and restoring method
US20040095601A1 (en) * 2002-11-05 2004-05-20 Konica Minolta Business Technologies, Inc. Image processing device, image processing method, image processing program and computer-readable recording medium on which the program is recorded
WO2006055587A2 (en) * 2004-11-15 2006-05-26 Smith Micro Software, Inc. System and method for lossless compression of already compressed files
CN1838725A (en) * 2005-03-23 2006-09-27 富士施乐株式会社 Log data recording device and log data recording method
CN101394461A (en) * 2008-09-26 2009-03-25 北大方正集团有限公司 Dot array page compression method and apparatus thereof

Also Published As

Publication number Publication date
CN101394461A (en) 2009-03-25

Similar Documents

Publication Publication Date Title
US9891875B2 (en) Host device for transmitting print data to printer and method of rendering print data via host device
US8237727B2 (en) Image processing apparatus and method
US5835685A (en) Page printer, resolution converting method, and variable-length reversible compression process
JP4375449B2 (en) Image processing apparatus, image processing program, and image processing method
US9158485B2 (en) Image processing device that performs image processing for variable printing and host data generating device
JP4781198B2 (en) Image processing apparatus and method, computer program, and computer-readable storage medium
US20090110313A1 (en) Device for performing image processing based on image attribute
JP5212294B2 (en) Image processing apparatus and image processing method
JP2008311792A (en) Device for encoding image and control method therefor
US8014030B2 (en) Image processing and formation with line thininng by reducing intensity of target pixel based on extracted contour pixel and area connectedness information
JP4761566B2 (en) Image processing apparatus and method, program and medium
WO2010037262A1 (en) Dot array page compressing method and apparatus
JP5020998B2 (en) Image processing apparatus and image processing method
US20160173727A1 (en) Image processing apparatus, and storage medium
CN102572203B (en) Compression method and device for latticed page
US8824011B2 (en) Method for processing rasterized image data
JP6613732B2 (en) Image processing apparatus and image processing program
JP4656457B2 (en) Image processing system
JPH09167222A (en) Image processor
JP7049292B2 (en) Image processing equipment, image processing methods and programs
JP2005045342A (en) Image processing apparatus and image processing program for allowing computer to perform image processing
JP7543023B2 (en) Image processing device, image processing method, and program
JP4741317B2 (en) Data compression apparatus and data compression program
JP2023111408A (en) Image processing apparatus and control method thereof and program
JP2006168051A (en) Printing device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09817176

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09817176

Country of ref document: EP

Kind code of ref document: A1