[go: up one dir, main page]

JP2004048305A - Data compression method of drawing data in printing device - Google Patents

Data compression method of drawing data in printing device Download PDF

Info

Publication number
JP2004048305A
JP2004048305A JP2002202042A JP2002202042A JP2004048305A JP 2004048305 A JP2004048305 A JP 2004048305A JP 2002202042 A JP2002202042 A JP 2002202042A JP 2002202042 A JP2002202042 A JP 2002202042A JP 2004048305 A JP2004048305 A JP 2004048305A
Authority
JP
Japan
Prior art keywords
data
difference
image
compression method
image data
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
JP2002202042A
Other languages
Japanese (ja)
Inventor
Manabu Haneda
羽田 学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2002202042A priority Critical patent/JP2004048305A/en
Publication of JP2004048305A publication Critical patent/JP2004048305A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

【課題】プリンタにおけるイメージ描画オブジェクトの省メモリ化。
【解決手段】階調を持っているイメージ描画データにおいて隣り合う画素の階調の差分を検出し、検出されたイメージデータの階調の差分データをハフマン符号化し、そのコード化されたイメージデータを描画オブジェクトとして扱うことにより上記目的を達成する。
【選択図】    図1
To save memory of an image drawing object in a printer.
Kind Code: A1 A difference in tone between adjacent pixels in image drawing data having a tone is detected, the difference data of the tone of the detected image data is Huffman-encoded, and the coded image data is converted into Huffman code. The above object is achieved by treating the object as a drawing object.
[Selection diagram] Fig. 1

Description

【0001】
【発明の属する技術分野】
本発明は、電子写真装置に関するものである。
【0002】
【従来の技術】
従来、プリンタにおけるイメージ画像の描画はホストよりイメージ画像を受信し受信したデータをそのまま描画データとして扱っている。
【0003】
またはそのままではデータ容量が大きすぎるためプリンタ側にてPackbits圧縮をおこない元データよりデータ量が小さくなるときには圧縮したデータを使用し描画している。
【0004】
【発明が解決しようとする課題】
しかしながら隣の画素の階調が同一となりやすいコンピュータグラフィック画像ではPackbits圧縮はよく効くが、自然画のように隣の画素との階調が同一なものがほとんどないものではPackbits圧縮ではほとんど圧縮率が上がらず逆に元データよりデータ量が多くなることもある。
【0005】
そこで本発明が解決しようとしている問題点は自然画のイメージ描画データの効率のよい圧縮の方法についてである。
【0006】
【課題を解決するための手段】
上記目的を達成するために本出願における発明は、イメージ画像データを従来のようなPackbits圧縮にて圧縮するのではなく、隣り合った画素との階調の差分をFBE(Fast Boundary Encoding)にて圧縮することにより、より効率のよいデータ圧縮を提供する。
【0007】
【発明の実施の形態】
(実施例1)
図1は本出願の発明の説明を行うための図画であり、同図において101はホストより送られてくる幅x高さが9x5サイズの8bit/pixelイメージ画像データであり、同図における102は1画素をあらわしており、103はこのイメージデータの総ビット数をあらわしている。
【0008】
図3はFBEのコードの意味を表した図であり、同図における301は隣り合った画素との差分が0であることを示しており、302は隣り合った画素との(絶対値)差分が1であることをしめしており、303は隣り合った画素との(絶対値)差分が2であることをしめしており、304は隣り合った画素との(絶対値)差分がn(n=3〜255)であることをしめしており、305は差分が負から正あるいは正から負に変化したときかつ(絶対値)差分が1のときをあらわしており、306は差分が負から正あるいは正から負に変化したときかつ(絶対値)差分がm(m=2〜255)のときをあらわしている。
【0009】
図4は図2によりコード化された101イメージ画像を図3の方法に従い2値かしたものであり、401はコード化した際の総ビット数を表している。
【0010】
図2は本出願における特徴を最もよくあらわしている図画であり、同図における201は図1における9x5の画素の並びを(X:Y)=(0:0)、(0:1)・・・(0:8)、(1:0)、(1:1)・・・(1:8)、(2:0)、(2,1)・・・(4:9)の順に並べ替えたものであり、同図における202は並び替えられた画素201の隣り合った画素同士の差分をあらわしており、203は図3FBEコードにしたがい201画素の並びをFBEコード化したものである。
【0011】
上記構成において、ホストより101画像データが送られてくるとプリンタコントローラは従来ならそのまま描画オブジェクトデータとしてメモリに格納するかPackbits圧縮してメモリに格納するが、本発明では図2のように隣り合った画素との階調の差分を検出し、その階調の差分を図3に照らし合わせFBEコード化する(図4)。以上により、元イメージデータのデータ量が360ビットであったのが180ビット、つまり50%になる。
【0012】
【発明の効果】
以上説明したように、本出願ようにホストより送られてくるイメージ描画データの諧調の差分を正から負,負から正の傾きの概念を持ったハフマン符号化することにより、Packbits圧縮よりデータ容量が小さくなるため描画処理が行いやすくなる。
【図面の簡単な説明】
【図1】ホストより送られてくるイメージ画像の例である。
【図2】本発明を最もよくあらわす図画である。
【図3】FBEコードを説明する図画である。
【図4】本発明を説明する図画である。
【符号の説明】
101・・・9x5サイズ イメージ画像例(8bit/pixel)
102・・・1画素をあらわしている。
103・・・101画像の総ビット数
201・・・101画像を1列に並びかえたもの
202・・・(n+1)画素目の階調−n画素目の階調の値
203・・・201画素の並びをFBEコード化したもの
301〜306・・・FBEコード
401・・・FBE圧縮後の総ビット数
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an electrophotographic apparatus.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, when drawing an image in a printer, the image is received from a host and the received data is treated as drawing data as it is.
[0003]
Alternatively, since the data capacity is too large as it is, Packbits compression is performed on the printer side, and when the data amount is smaller than the original data, drawing is performed using the compressed data.
[0004]
[Problems to be solved by the invention]
However, Packbits compression works well for computer graphic images in which the gradation of neighboring pixels is likely to be the same, but the compression ratio of Packbits compression is almost uncompressed for those in which almost no gradations of neighboring pixels are the same as in natural images. On the contrary, the data amount may be larger than the original data without increasing.
[0005]
Accordingly, a problem to be solved by the present invention relates to a method for efficiently compressing image drawing data of a natural image.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, the invention of the present application does not compress the image image data by the conventional Packbits compression, but uses FBE (Fast Boundary Encoding) to calculate the difference in gradation between adjacent pixels. The compression provides more efficient data compression.
[0007]
BEST MODE FOR CARRYING OUT THE INVENTION
(Example 1)
FIG. 1 is a diagram for explaining the invention of the present application. In FIG. 1, reference numeral 101 denotes 8-bit / pixel image data having a width x height of 9 × 5 and sent from a host. One pixel is represented, and 103 represents the total number of bits of the image data.
[0008]
FIG. 3 is a diagram showing the meaning of the FBE code. In FIG. 3, reference numeral 301 denotes that the difference between adjacent pixels is 0, and reference numeral 302 denotes the (absolute value) difference between adjacent pixels. Is 1; 303 indicates that the (absolute value) difference between adjacent pixels is 2; 304 indicates that the (absolute value) difference between adjacent pixels is n (n = 3 to 255), 305 indicates when the difference changes from negative to positive or from positive to negative, and the (absolute value) difference is 1, and 306 indicates that the difference changes from negative to positive. Alternatively, it represents the case where the value changes from positive to negative and the (absolute value) difference is m (m = 2 to 255).
[0009]
FIG. 4 is a diagram in which the 101 image image coded according to FIG. 2 is binarized according to the method of FIG. 3, and 401 indicates the total number of bits when coded.
[0010]
FIG. 2 is a drawing that best illustrates the features of the present application. In FIG. 2, reference numeral 201 denotes the arrangement of 9 × 5 pixels in FIG. 1 as (X: Y) = (0: 0), (0: 1). -(0: 8), (1: 0), (1: 1) ... (1: 8), (2: 0), (2,1) ... (4: 9) In FIG. 3, reference numeral 202 denotes a difference between adjacent pixels of the rearranged pixels 201, and reference numeral 203 denotes an FBE code obtained by converting the arrangement of 201 pixels according to the FBE code shown in FIG.
[0011]
In the above configuration, when the 101 image data is sent from the host, the printer controller conventionally stores it as it is in the memory as drawing object data or compresses and stores it in the memory as a drawing object data. Then, a difference between the gradations of the pixel and the detected gradation is detected, and the difference between the gradations is compared with FIG. 3 to form an FBE code (FIG. 4). As described above, the data amount of the original image data is 360 bits instead of 360 bits, that is, 50%.
[0012]
【The invention's effect】
As described above, as described in the present application, the gradation difference of the image drawing data sent from the host is Huffman-encoded with the concept of positive to negative and negative to positive slope, so that the data capacity can be reduced by Packbits compression. Is smaller, so that the drawing process can be easily performed.
[Brief description of the drawings]
FIG. 1 is an example of an image sent from a host.
FIG. 2 is a drawing that best illustrates the invention.
FIG. 3 is a diagram illustrating an FBE code.
FIG. 4 is a diagram illustrating the present invention.
[Explanation of symbols]
101 ... 9x5 size image image example (8bit / pixel)
102... Represents one pixel.
103... 101 total bit number of image 201... 101 images arranged in one row 202... (N + 1) th pixel grayscale−nth pixel grayscale value 203. FBE code 301 to 306... FBE code 401... Total number of bits after FBE compression

Claims (2)

隣り合ったイメージ画像データの階調の差分を検出する手段、検出した差分が0をまたぐ地点を検出する手段、上記手段にて検出された差分および地点をハフマン符号化する手段を持つことを特徴としたイメージデータ画像の圧縮方法。A means for detecting a difference in gradation between adjacent image data, a means for detecting a point at which the detected difference crosses zero, and a means for Huffman encoding the difference and the point detected by the means. Compression method of image data image. 上記請求項1の圧縮方法により圧縮されたイメージデータを描画オブジェクトとして扱う電子写真装置。An electrophotographic apparatus that handles image data compressed by the compression method according to claim 1 as a drawing object.
JP2002202042A 2002-07-11 2002-07-11 Data compression method of drawing data in printing device Pending JP2004048305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002202042A JP2004048305A (en) 2002-07-11 2002-07-11 Data compression method of drawing data in printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002202042A JP2004048305A (en) 2002-07-11 2002-07-11 Data compression method of drawing data in printing device

Publications (1)

Publication Number Publication Date
JP2004048305A true JP2004048305A (en) 2004-02-12

Family

ID=31708339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002202042A Pending JP2004048305A (en) 2002-07-11 2002-07-11 Data compression method of drawing data in printing device

Country Status (1)

Country Link
JP (1) JP2004048305A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7515762B2 (en) 2003-05-27 2009-04-07 Zaxel Systems, Inc. Method and apparatus for lossless data transformation with preprocessing by adaptive compression, multidimensional prediction, multi-symbol decoding enhancement enhancements

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7515762B2 (en) 2003-05-27 2009-04-07 Zaxel Systems, Inc. Method and apparatus for lossless data transformation with preprocessing by adaptive compression, multidimensional prediction, multi-symbol decoding enhancement enhancements

Similar Documents

Publication Publication Date Title
US8553301B2 (en) Image processing apparatus, method, and program product to perform color-reduction processing for a block
EP1102209B1 (en) Image processing
JP3848443B2 (en) Compressed digital data processing method
CN102223463B (en) Multi-function printer
JPH0640660B2 (en) Apparatus for performing binary bit data compression representing pixels of a dithered image in a digital image processing process.
JP3461309B2 (en) Huffman coded data compression device
US8406517B2 (en) Image processing apparatus and image processing method
EP1725040A3 (en) Image encoding apparatus and method, computer program, and computer-readable storage medium
JP3343104B2 (en) Image processing apparatus and image processing method
JPH07322074A (en) Equipment and method for data processing to process 2 level image file that a dither ring happened
US8023756B2 (en) Image encoding apparatus and method of controlling same
JPH1070654A (en) Image processor
JP2004048305A (en) Data compression method of drawing data in printing device
JPH08139936A (en) Encoding method
JP3866568B2 (en) Image compression method
JPH04356873A (en) Adaptive encoding method for color document images
JP2009111821A (en) Image encoding device, image decoding device, image data processing device, image encoding method, and image decoding method
US20060227996A1 (en) Electronic watermark generating apparatus, method, and program for generating electronic watermark
JP3375079B2 (en) Image compression device
JPH08265755A (en) Image processing apparatus and image processing method
JP4699654B2 (en) Image compression apparatus and image compression method
JP2002354233A (en) Image reduction device, image reduction method, and storage medium therefor
JPH07170410A (en) Color image data compression method
US7450775B2 (en) Image processing apparatus for efficient storage of variable block length data
JPH06103928B2 (en) Image data encoding method