JP4795166B2 - Image compression apparatus, method and program, recording apparatus and method, image decompression apparatus, method and program, and recording medium - Google Patents

Image compression apparatus, method and program, recording apparatus and method, image decompression apparatus, method and program, and recording medium Download PDF

Info

Publication number
JP4795166B2
JP4795166B2 JP2006223820A JP2006223820A JP4795166B2 JP 4795166 B2 JP4795166 B2 JP 4795166B2 JP 2006223820 A JP2006223820 A JP 2006223820A JP 2006223820 A JP2006223820 A JP 2006223820A JP 4795166 B2 JP4795166 B2 JP 4795166B2
Authority
JP
Japan
Prior art keywords
data
image
representative
pixel
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006223820A
Other languages
Japanese (ja)
Other versions
JP2008048302A (en
Inventor
嘉浩 長田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Mita Corp
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 Kyocera Mita Corp filed Critical Kyocera Mita Corp
Priority to JP2006223820A priority Critical patent/JP4795166B2/en
Publication of JP2008048302A publication Critical patent/JP2008048302A/en
Application granted granted Critical
Publication of JP4795166B2 publication Critical patent/JP4795166B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、画像データを圧縮する画像圧縮に関する。そして、圧縮された画像データの解凍に関する。   The present invention relates to image compression for compressing image data. The present invention relates to decompression of compressed image data.

プリンタ、複写機及びファクシミリ或いはこれらの機能を合わせ持つ複合機等の画像形成装置には、画像形成に電子写真方式が採用されている。このような画像形成装置では、まず、当該画像形成装置自体又は他の画像読取装置等によって読み取られた原稿画像の画像データに基づいてレーザ光が感光体ドラムに走査されながら照射されることによって、感光体ドラムの周面に静電潜像が形成される。次に、この静電潜像が現像装置で現像されることによって感光体ドラムの周面にトナー像が形成される。次に、このトナー像が用紙等の転写材に転写され、そして、定着されることによって、画像が形成される。また、シアン(C)、マゼンダ(M)、イエロー(Y)及びブラック(K)の各色成分に応じたトナー像が形成され、これら各トナー像が重畳されながら転写材に転写され、定着されることによって、フルカラーの画像形成が可能となっている。   In an image forming apparatus such as a printer, a copier, a facsimile machine, or a multifunction machine having these functions, an electrophotographic system is adopted for image formation. In such an image forming apparatus, first, laser light is irradiated while being scanned on the photosensitive drum based on the image data of the original image read by the image forming apparatus itself or another image reading apparatus or the like. An electrostatic latent image is formed on the peripheral surface of the photosensitive drum. Next, the electrostatic latent image is developed by a developing device, whereby a toner image is formed on the peripheral surface of the photosensitive drum. Next, the toner image is transferred to a transfer material such as paper and fixed, thereby forming an image. In addition, toner images corresponding to the respective color components of cyan (C), magenta (M), yellow (Y), and black (K) are formed, and these toner images are transferred and fixed onto the transfer material while being superimposed. As a result, full-color image formation is possible.

近年、画像形成装置によって画像を印刷する場合に、画質の向上が求められている。この高画質化を図る一手法として、スクリーン処理が知られている。このスクリーン処理では、多値のデータが2値のデータに変換され、スクリーン周波数を低く(スクリーン線数を少なく)することによって、階調数が大きく、滑らかな階調の画像が形成され、スクリーン周波数を高く(スクリーン線数を多く)することによって、解像度の高い画像が形成される。   In recent years, there has been a demand for improvement in image quality when printing an image with an image forming apparatus. Screen processing is known as one technique for improving the image quality. In this screen processing, multi-value data is converted into binary data, and by reducing the screen frequency (reducing the number of screen lines), an image with a large number of gradations and a smooth gradation is formed. By increasing the frequency (increasing the number of screen lines), an image with high resolution is formed.

画像形成装置によって印刷する場合、スクリーン処理等の画像処理が行われるが、その場合に、画像データを記憶素子に展開する必要があり、比較的大容量の記憶素子が必要である。   When printing is performed by the image forming apparatus, image processing such as screen processing is performed. In this case, it is necessary to develop image data in a storage element, and a storage element having a relatively large capacity is required.

また、スキャナやディジタルカメラ等で生成した画像データは、近年の高解像度化やカラー化等によって大容量化が進んでいる。このため、この画像データを保存するために、大容量の記録媒体が必要となる。   In addition, image data generated by a scanner, a digital camera, or the like has been increased in capacity due to recent high resolution and colorization. For this reason, a large-capacity recording medium is required to store the image data.

これらのために、画像データの容量を小さくする圧縮技術が要望されている。圧縮技術には、例えばハフマン符号化やラン・レングス符号化やLZ(Lempel-Ziv)符号化等のように、圧縮した画像データを解凍することによって得られた解凍後の画像が圧縮前の画像に完全に戻る可逆圧縮(可逆符号化)と、例えばJPEG(Joint Photograph Experts Group)等のように、解凍後の画像が圧縮前の画像に完全には戻らない非可逆圧縮(非可逆符号化)とがある。   For these reasons, there is a demand for a compression technique for reducing the capacity of image data. The compression technique includes an uncompressed image obtained by decompressing compressed image data, such as Huffman coding, run length coding, LZ (Lempel-Ziv) coding, and the like. Lossless compression (reversible encoding) that completely returns to, and lossy compression (irreversible encoding), such as JPEG (Joint Photograph Experts Group), where the decompressed image does not return completely to the image before compression There is.

このような圧縮技術として、例えば、特許文献1に開示の技術や特許文献2に開示の技術がある。この特許文献1に開示の圧縮技術では、入力された画像データがイメージデータとして展開される際に、その画像データが第1の解像度(低解像度)で2値のイメージデータとして展開されて記憶手段に記憶された後に、その2値のイメージデータが多値のイメージデータに変換され、その変換された多値のイメージデータが階調性を向上させるために第1の解像度よりも高い第2の解像度(高解像度)に変換され、更にその第2の解像度に変換されたイメージデータが2値のイメージデータに変換される。このため、イメージデータを記憶するための記憶手段(メモリ)の記憶容量が少なくなる。また、特許文献2に開示の圧縮技術では、単一の画像データが複数のビットプレーンに分離され、複数のビットプレーンを構成する同位置のビットデータが近傍位置に配列されることによって単一のビットプレーンが合成され、このビットプレーンが画像圧縮される。このため、多値画像圧縮の際に圧縮容量が減少される。
特開2000−255120号公報 特開2001−069505号公報
As such a compression technique, for example, there is a technique disclosed in Patent Document 1 and a technique disclosed in Patent Document 2. In the compression technique disclosed in Patent Document 1, when input image data is expanded as image data, the image data is expanded as binary image data at a first resolution (low resolution) and stored in storage means. The binary image data is converted into multi-valued image data, and the converted multi-valued image data has a second resolution higher than the first resolution in order to improve gradation. The image data converted into the resolution (high resolution) and further converted into the second resolution is converted into binary image data. For this reason, the storage capacity of the storage means (memory) for storing the image data is reduced. Further, in the compression technique disclosed in Patent Document 2, single image data is separated into a plurality of bit planes, and the bit data at the same position constituting the plurality of bit planes is arranged in the vicinity position to obtain a single image data. Bit planes are combined and the bit planes are compressed. For this reason, the compression capacity is reduced during multi-valued image compression.
JP 2000-255120 A JP 2001-0669505 A

ところで、画像は、例えば写真画像及びイメージ等のイメージ画や、例えばテキスト文字、色文字、線及び図形等の線画等の様々な種類の画像がある。イメージ画では、例えば8bpp(bits per pixel)等のように、階調が高い方が好ましいが、解像度は、必ずしも高い必要がなく、例えば300dpi(dots per inch)程度でも充分である。一方、線画では、例えば1200dpi等のように、解像度が高い方が好ましいが、階調は、必ずしも高い必要がなく、例えば1bppでもよい。よって、イメージ画が圧縮される場合には、解凍後の画像と圧縮前の画像とにおいて階調が保存されるように圧縮される方が好ましく、一方、線画が圧縮される場合には、解凍後の画像と圧縮前の画像とにおいて解像度が保存されるように圧縮される方が好ましい。   By the way, there are various types of images such as image images such as photographic images and images, and line images such as text characters, color characters, lines and figures. In an image, for example, a higher gradation is preferable, such as 8 bpp (bits per pixel), but the resolution does not necessarily have to be high, and for example, about 300 dpi (dots per inch) is sufficient. On the other hand, in a line drawing, it is preferable that the resolution is high, for example, 1200 dpi, but the gradation is not necessarily high, and may be 1 bpp, for example. Therefore, when the image image is compressed, it is preferable to compress the image so that the gradation is preserved in the uncompressed image and the uncompressed image. On the other hand, when the line image is compressed, the decompression is performed. It is preferable to perform compression so that the resolution is preserved in the later image and the image before compression.

しかしながら、上記特許文献1に開示の技術及び特許文献2に開示の技術は、圧縮対象の画像におけるこのような特性に応じて階調及び解像度の何れか一方を優先的に保存して圧縮対象の画像を圧縮することができないという不都合がある。   However, the technique disclosed in Patent Document 1 and the technique disclosed in Patent Document 2 preferentially store either the gradation or the resolution according to such characteristics in the image to be compressed, and There is a disadvantage that the image cannot be compressed.

一方、仮に、圧縮対象の画像における上記特性に応じて階調及び解像度の何れか一方を優先的に保存して圧縮対象の画像を圧縮する圧縮技術があったとしても、圧縮対象の画像がイメージ画と線画とを含む画像である場合には、階調を優先的に保存すればこのような画像における線画の領域が適切に圧縮されず、また、解像度を優先的に保存すればこのような画像におけるイメージ画の領域が適切に圧縮されないという不都合が生じる。   On the other hand, even if there is a compression technique that preferentially stores either the gradation or the resolution according to the characteristics of the image to be compressed and compresses the image to be compressed, the image to be compressed is an image. In the case of an image including a line drawing and a line drawing, if the gradation is preferentially stored, the area of the line drawing in such an image is not properly compressed, and if the resolution is preferentially saved, There is a disadvantage that the area of the image in the image is not properly compressed.

本発明は、上述の事情に鑑みて為された発明であり、圧縮対象の画像における上記特性に応じて階調及び解像度を適切に保存して圧縮対象の画像の画像データを圧縮することができる画像圧縮装置、画像圧縮方法、画像圧縮プログラム及び画像圧縮プログラムを記録した記録媒体を提供することを目的とする。本発明は、圧縮された圧縮画像データを記録媒体に記録する記録装置及び記録方法を提供することを目的とする。本発明は、圧縮された圧縮画像データを記録した記録媒体を提供することを目的とする。本発明は、圧縮された画像データを記録媒体に記録するための圧縮画像フォーマットを提供することを目的とする。そして、本発明は、圧縮された圧縮画像データを解凍する画像解凍装置、画像解凍方法、画像解凍プログラム及び画像解凍プログラムを記録した記録媒体を提供することを目的とする。   The present invention has been made in view of the above circumstances, and can appropriately store the gradation and resolution in accordance with the above-described characteristics in the image to be compressed and compress the image data of the image to be compressed. An object of the present invention is to provide an image compression apparatus, an image compression method, an image compression program, and a recording medium on which the image compression program is recorded. An object of the present invention is to provide a recording apparatus and a recording method for recording compressed compressed image data on a recording medium. An object of this invention is to provide the recording medium which recorded the compressed image data compressed. An object of the present invention is to provide a compressed image format for recording compressed image data on a recording medium. An object of the present invention is to provide an image decompression apparatus, an image decompression method, an image decompression program, and a recording medium on which an image decompression program is recorded, which decompresses compressed compressed image data.

本発明者は、種々検討した結果、上記目的は、以下の本発明により達成されることを見出した。即ち、本発明の一態様に係る画像圧縮装置は、多値のデータが割り付けられた画素を複数備えた画像データを、複数の画素から成る複数のブロックに分割するブロック化部と、前記データが取り得る値の範囲のうちから複数の代表値を選定すると共に、前記代表値を指し示すインデックスを前記複数の代表値にそれぞれ付与するタグ情報生成部と、前記ブロックにおける各画素のデータについて、前記複数の代表値と前記画素のデータとに基づいて前記インデックスに前記画素のデータを変換する符号化部とを備え、前記タグ情報生成部は、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値を選定すると共に、前記代表値を指し示すインデックスを前記複数の代表値にそれぞれ付与することを特徴とする。そして、本発明の他の一態様に係る画像圧縮方法は、多値のデータが割り付けられた画素を複数備えた画像データを、複数の画素から成る複数のブロックに分割するステップと、前記データが取り得る値の範囲のうちから複数の代表値を選定するステップと、前記代表値を指し示すインデックスを前記複数の代表値にそれぞれ付与するステップと、前記ブロックにおける各画素のデータについて、前記複数の代表値と前記画素のデータとに基づいて前記インデックスに前記画素のデータを変換するステップとを備え、前記複数の代表値を選定するステップは、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値を選定することを特徴とする。 As a result of various studies, the present inventor has found that the above object is achieved by the present invention described below. That is, an image compression apparatus according to an aspect of the present invention includes a blocking unit that divides image data including a plurality of pixels to which multi-value data is allocated into a plurality of blocks including a plurality of pixels, and the data includes A plurality of representative values are selected from a range of possible values, and a tag information generation unit that assigns an index indicating the representative value to each of the plurality of representative values, and the data of each pixel in the block An encoding unit that converts the pixel data into the index based on the representative value of the pixel and the pixel data, and the tag information generation unit includes a value of the pixel data in the compression target block. equal with selecting a plurality of representative values number in descending order of the data, to grant each index that points to the representative value to the plurality of representative values Turkey The features. An image compression method according to another aspect of the present invention includes a step of dividing image data including a plurality of pixels to which multi-value data is allocated into a plurality of blocks including a plurality of pixels, and the data is Selecting a plurality of representative values from a range of possible values; assigning an index indicating the representative value to each of the plurality of representative values; and data for each pixel in the block. Converting the pixel data into the index based on the value and the pixel data, and selecting the plurality of representative values includes: the number of data equal to said that you select a plurality of representative values in descending order of the.

この構成によれば、まず、画像データが複数の画像から成る複数のブロックに分割され、データが取り得る値の範囲のうちから複数の代表値が選定され、代表値を指し示すインデックスがこの選定された複数の代表値にそれぞれ付与される。このインデックスは、代表値を識別し特定するための識別子でもある。インデックスは、任意の符号でよいが、データ容量を少なくする観点から、少ないビット数で表現される符号が好適である。そして、ブロックごとに、ブロックの各画素のデータが複数の代表値と当該画素のデータとに基づいてインデックスに変換される。このため、ブロックの画像データは、各画素において、当該画素のデータがインデックスにそれぞれ変換されることによって生成された複数のインデックスから成る符号化画像データと、複数の代表値と複数の代表値に対応付けられている複数のインデックスとから成るタグ情報とに圧縮される。そして、各ブロックがこのように圧縮されることによって、画像データは、この圧縮されたブロックの画像データの集合として圧縮される。従って、圧縮対象の画像の画像データは、上記特性に応じて階調及び解像度を適切に保存して圧縮され得る。そして、上記構成によれば、複数の代表値は、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定される。このため、ブロックにおける各画素のデータがインデックスに変換される際に、当該画素のデータの値にさらにより近い代表値が選択可能となり、そして、この選択された代表値を指し示すインデックスに当該画素のデータが変換される。従って、この構成によれば、可逆性がさらにより向上するAccording to this configuration, first, the image data is divided into a plurality of blocks composed of a plurality of images, a plurality of representative values are selected from a range of values that the data can take, and an index indicating the representative value is selected. Are assigned to a plurality of representative values. This index is also an identifier for identifying and specifying the representative value. The index may be an arbitrary code, but a code expressed by a small number of bits is preferable from the viewpoint of reducing the data capacity. For each block, the data of each pixel of the block is converted into an index based on the plurality of representative values and the data of the pixel. For this reason, the image data of the block includes, in each pixel, encoded image data including a plurality of indexes generated by converting the pixel data into indexes, a plurality of representative values, and a plurality of representative values. It is compressed into tag information composed of a plurality of associated indexes. Then, by compressing each block in this way, the image data is compressed as a set of image data of the compressed block. Therefore, the image data of the image to be compressed can be compressed by appropriately storing the gradation and resolution according to the above characteristics. According to the above configuration, the plurality of representative values are selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. For this reason, when the data of each pixel in the block is converted into an index, a representative value that is even closer to the value of the data of the pixel can be selected, and the index of the pixel is assigned to the index indicating the selected representative value. Data is converted. Therefore, according to this configuration, the reversibility is further improved .

また、本発明の他の一態様に係る、コンピュータに実行させるための画像圧縮プログラムは、多値のデータが割り付けられた画素を複数備えた画像データを、複数の画素から成る複数のブロックに分割するステップと、前記データが取り得る値の範囲のうちから複数の代表値を選定するステップと、前記代表値を指し示すインデックスを前記複数の代表値にそれぞれ付与するステップと、前記ブロックにおける各画素のデータについて、前記複数の代表値と前記画素のデータとに基づいて前記インデックスに前記画素のデータを変換するステップとを備え、前記複数の代表値を選定するステップは、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値を選定することを特徴とする。さらに、本発明の他の一態様に係る、コンピュータに実行させるための画像圧縮プログラムが記録されたコンピュータに読み取り可能な記録媒体において、前記画像圧縮プログラムは、多値のデータが割り付けられた画素を複数備えた画像データを、複数の画素から成る複数のブロックに分割するステップと、前記データが取り得る値の範囲のうちから複数の代表値を選定するステップと、前記代表値を指し示すインデックスを前記複数の代表値にそれぞれ付与するステップと、前記ブロックにおける各画素のデータについて、前記複数の代表値と前記画素のデータとに基づいて前記インデックスに前記画素のデータを変換するステップとを備え、前記複数の代表値を選定するステップは、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値を選定することを特徴とする。 An image compression program for causing a computer to execute according to another aspect of the present invention divides image data including a plurality of pixels to which multi-value data is allocated into a plurality of blocks each including a plurality of pixels. Selecting a plurality of representative values from a range of values that can be taken by the data, assigning an index indicating the representative value to each of the plurality of representative values, and each pixel in the block Converting the pixel data into the index based on the plurality of representative values and the pixel data, and selecting the plurality of representative values for each pixel in the block to be compressed of the data, characterized that you select a plurality of representative values in the order number of the data is greater equal value. Furthermore, in a computer-readable recording medium on which an image compression program to be executed by a computer according to another aspect of the present invention is recorded, the image compression program includes pixels assigned with multi-value data. Dividing the plurality of image data into a plurality of blocks made up of a plurality of pixels, selecting a plurality of representative values from a range of values that the data can take, and an index indicating the representative value a step of applying to a plurality of representative values, the data of each pixel in the block, and a step of converting the data of the pixels in the index based on the data of the pixel and the plurality of representative values, the The step of selecting a plurality of representative values includes the step of selecting data of each pixel in the block to be compressed. Characterized that you select a plurality of representative values in the order equal number of data is large values.

この構成によれば、画像圧縮プログラムは、画像データを複数の画像から成る複数のブロックに分割し、データが取り得る値の範囲のうちから複数の代表値を選定し、代表値を指し示すインデックスをこの選定された複数の代表値にそれぞれ付与し、そして、ブロックごとに、ブロックの各画素のデータを複数の代表値と当該画素のデータとに基づいてインデックスに変換する。各ブロックがこのように圧縮されることによって、画像データは、この圧縮されたブロックの画像データの集合として圧縮される。従って、この構成によれば、圧縮対象の画像の画像データをその上記特性に応じて階調及び解像度を適切に保存して圧縮する画像圧縮プログラムが提供され、また、この画像圧縮プログラムを記録した記録媒体が提供される。そして、上記構成によれば、複数の代表値は、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定される。このため、ブロックにおける各画素のデータがインデックスに変換される際に、当該画素のデータの値にさらにより近い代表値が選択可能となり、そして、この選択された代表値を指し示すインデックスに当該画素のデータが変換される。従って、この構成によれば、可逆性がさらにより向上する画像圧縮プログラムが提供され、また、この画像圧縮プログラムを記録した記録媒体が提供されるAccording to this configuration, the image compression program divides the image data into a plurality of blocks composed of a plurality of images, selects a plurality of representative values from a range of values that the data can take, and an index indicating the representative value. Each of the selected representative values is assigned to each block, and for each block, the data of each pixel of the block is converted into an index based on the plurality of representative values and the data of the pixel. By compressing each block in this way, the image data is compressed as a set of image data of the compressed block. Therefore, according to this configuration, an image compression program is provided that compresses image data of an image to be compressed by appropriately storing gradation and resolution in accordance with the characteristics described above, and recording the image compression program A recording medium is provided. According to the above configuration, the plurality of representative values are selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. For this reason, when the data of each pixel in the block is converted into an index, a representative value that is even closer to the value of the data of the pixel can be selected, and the index of the pixel is assigned to the index indicating the selected representative value. Data is converted. Therefore, according to this configuration, an image compression program in which the reversibility is further improved is provided, and a recording medium on which the image compression program is recorded is provided .

また、上述の画像圧縮において、タグ情報の生成では、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値が選定されると共に、前記代表値を指し示すインデックスが前記複数の代表値にそれぞれ付与されることが好ましい。   In the image compression described above, in the generation of tag information, among the data of each pixel in the block to be compressed, a plurality of representative values are selected in descending order of the number of data having the same value, and the representative value is indicated. It is preferable that an index is assigned to each of the plurality of representative values.

この構成によれば、複数の代表値は、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定される。このため、ブロックにおける各画素のデータがインデックスに変換される際に、当該画素のデータの値にさらにより近い代表値が選択可能となり、そして、この選択された代表値を指し示すインデックスに当該画素のデータが変換される。従って、この構成によれば、可逆性がさらにより向上する。   According to this configuration, the plurality of representative values are selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. For this reason, when the data of each pixel in the block is converted into an index, a representative value that is even closer to the value of the data of the pixel can be selected, and the index of the pixel is assigned to the index indicating the selected representative value. Data is converted. Therefore, according to this configuration, the reversibility is further improved.

さらに、上述の画像圧縮において、タグ情報の生成では、まず、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値が選定される。次に、前記複数の代表値に選定されなかった前記画素のデータが前記複数の代表値のうちから最も近い代表値に割り振られる。次に、この画素のデータが割り振られた代表値と当該画素のデータとの平均値でこの代表値が修正される。そして、前記代表値を指し示すインデックスが前記複数の代表値にそれぞれ付与される。このようにタグ情報の生成が処理されることが好ましい。   Furthermore, in the above-described image compression, when generating tag information, first, a plurality of representative values are selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. Next, the pixel data not selected as the plurality of representative values is assigned to the closest representative value among the plurality of representative values. Next, the representative value is corrected by an average value of the representative value to which the pixel data is allocated and the pixel data. An index indicating the representative value is assigned to each of the plurality of representative values. It is preferable that the generation of tag information is processed in this way.

この構成によれば、複数の代表値は、まず、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定される。そして、代表値は、代表値に選定されなかった画素のデータが複数の代表値のうちから最も近い代表値に割り振られ、これら画素のデータと代表値との平均値で修正される。このため、ブロックにおける各画素のデータがインデックスに変換される際に、当該画素のデータの値にさらにより近い代表値が選択可能となり、そして、この選択された代表値を指し示すインデックスに当該画素のデータが変換される。従って、この構成によれば、可逆性がさらにより向上する。   According to this configuration, the plurality of representative values are first selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. The representative value is corrected to the average value of the pixel data and the representative value by assigning the pixel data not selected as the representative value to the representative value closest to the representative value. For this reason, when the data of each pixel in the block is converted into an index, a representative value that is even closer to the value of the data of the pixel can be selected, and the index of the pixel is assigned to the index indicating the selected representative value. Data is converted. Therefore, according to this configuration, the reversibility is further improved.

そして、これら上述の画像圧縮において、符号化では、ブロックにおける各画素のデータについて、複数の代表値のうちから前記画素のデータに最も近い代表値が選ばれ、この選ばれた代表値のインデックスに前記画素のデータが変換されることが好ましい。   In the above image compression, in encoding, for each pixel data in the block, a representative value closest to the pixel data is selected from among a plurality of representative values, and an index of the selected representative value is used. The pixel data is preferably converted.

この構成によれば、ブロックにおける各画素のデータがインデックスに変換される際に、複数の代表値のうちから画素のデータに最も近い代表値が選ばれ、そして、この選ばれた代表値を指し示すインデックスに画素のデータが変換される。このため、この構成によれば、可逆性がより向上する。   According to this configuration, when the data of each pixel in the block is converted into an index, a representative value closest to the pixel data is selected from among a plurality of representative values, and the selected representative value is indicated. Pixel data is converted into an index. For this reason, according to this structure, reversibility improves more.

さらに、これら上述の画像圧縮において、複数のブロックにおける各サイズが等しく、かつ、複数のブロックにおける各代表値の数が等しいことが好ましい。   Further, in the above-described image compression, it is preferable that the sizes in the plurality of blocks are equal and the number of the representative values in the plurality of blocks is equal.

この構成によれば、複数のブロックにおける各サイズが等しく、かつ、複数のブロックにおける各代表値の数が等しいので、圧縮された各ブロックのデータ容量が等しくなる。このため、記憶素子や記録媒体に圧縮された各ブロックを保存する場合に、等間隔に保存されるので、任意の圧縮されたブロックのデータを容易に読み出すことができる。よって、任意の圧縮されたブロックのデータを解凍することができる。   According to this configuration, since the sizes in the plurality of blocks are equal and the number of representative values in the plurality of blocks is equal, the data capacities of the compressed blocks are equal. For this reason, when each compressed block is stored in the storage element or the recording medium, it is stored at equal intervals, so that data of any compressed block can be easily read out. Therefore, the data of any compressed block can be decompressed.

そして、本発明の他の一態様では、多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを記録媒体に記録する記録装置である。また、本発明の他の一態様では、多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを記録媒体に記録する記録方法である。 In another aspect of the present invention, compression target image data including a plurality of pixels to which multi-value data is allocated is divided into a plurality of blocks each including a plurality of pixels, and each of the plurality of blocks is A plurality of representative values selected from a range of values that can be taken by the data, and a plurality of representative values selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. A coded image composed of a plurality of indices each associated with a value, the plurality of representative values and indicating the representative value, and a plurality of indexes associated with the plurality of pixels and converted from the pixel data It is a recording device that records data on a recording medium. In another aspect of the present invention, image data to be compressed including a plurality of pixels to which multi-value data is allocated is divided into a plurality of blocks each including a plurality of pixels, and each of the plurality of blocks is A plurality of representative values selected from a range of values that can be taken by the data, and a plurality of representative values selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. A coded image composed of a plurality of indices each associated with a value, the plurality of representative values and indicating the representative value, and a plurality of indexes associated with the plurality of pixels and converted from the pixel data This is a recording method for recording data on a recording medium.

この構成によれば、圧縮対象の画像データが分割された各ブロックのそれぞれについて、データが取り得る値の範囲のうちから選定された複数の代表値と、複数の代表値にそれぞれ対応付けられ、代表値を指し示す複数のインデックスと、複数の画素にそれぞれ対応付けられ、画素のデータが変換された複数のインデックスから成る符号化画像データとが記録媒体に記録される。このため、圧縮対象の画像データが、その上記特性に応じて階調及び解像度を適切に保存され、そして、圧縮されて、記録媒体に記録される。そして、その容量は、圧縮対象の画像データの容量より小さいので、このような構成の記録装置及び記憶方法は、圧縮対象の画像データをそのまま保存する場合よりも小さい容量で記録媒体に保存することができる。そして、上記構成によれば、複数の代表値は、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定される。このため、ブロックにおける各画素のデータがインデックスに変換される際に、当該画素のデータの値にさらにより近い代表値が選択可能となり、そして、この選択された代表値を指し示すインデックスに当該画素のデータが変換される。従って、この構成によれば、可逆性がさらにより向上するAccording to this configuration, each block obtained by dividing the image data to be compressed is associated with a plurality of representative values selected from a range of values that the data can take, and a plurality of representative values, A plurality of indexes indicating the representative value and encoded image data composed of a plurality of indexes corresponding to the plurality of pixels and converted from the pixel data are recorded on the recording medium. For this reason, the image data to be compressed is appropriately stored in gradation and resolution in accordance with the characteristics, and is compressed and recorded on the recording medium. Since the capacity is smaller than the capacity of the image data to be compressed, the recording apparatus and the storage method having such a configuration can store the image data to be compressed on the recording medium with a smaller capacity than when the image data to be compressed is stored as it is. Can do. According to the above configuration, the plurality of representative values are selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. For this reason, when the data of each pixel in the block is converted into an index, a representative value that is even closer to the value of the data of the pixel can be selected, and the index of the pixel is assigned to the index indicating the selected representative value. Data is converted. Therefore, according to this configuration, the reversibility is further improved .

さらに、本発明の他の一態様に係る、圧縮画像データが記録されたコンピュータに読み取り可能な記録媒体において、前記圧縮画像データは、多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを備えることを特徴とする。 Furthermore, in a computer-readable recording medium on which compressed image data is recorded according to another aspect of the present invention, the compressed image data is a compression target including a plurality of pixels to which multi-value data is allocated. The image data is divided into a plurality of blocks composed of a plurality of pixels, and for each of the plurality of blocks, a plurality of representative values selected from a range of values that the data can take , the block to be compressed A plurality of representative values selected in descending order of the number of pieces of data having the same value, a plurality of indexes respectively corresponding to the plurality of representative values, and indicating the representative value; And encoded image data composed of a plurality of indexes each associated with a pixel and converted from the pixel data. That.

この構成によれば、圧縮画像データは、圧縮対象の画像データが分割された各ブロックのそれぞれについて、データが取り得る値の範囲のうちから選定された複数の代表値と、複数の代表値にそれぞれ対応付けられ、代表値を指し示す複数のインデックスと、複数の画素にそれぞれ対応付けられ、画素のデータが変換された複数のインデックスから成る符号化画像データとを備える。このため、圧縮画像データには、圧縮対象の画像データがその上記特性に応じて階調及び解像度を適切に保存されて圧縮されている。そして、圧縮画像データの容量は、圧縮対象の画像データの容量より小さいので、圧縮画像データは、圧縮対象の画像データをそのまま保存する場合よりも小さい容量の記憶素子又は記録媒体に保存され得る。そして、上記構成によれば、複数の代表値は、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定される。このため、ブロックにおける各画素のデータがインデックスに変換される際に、当該画素のデータの値にさらにより近い代表値が選択可能となり、そして、この選択された代表値を指し示すインデックスに当該画素のデータが変換される。従って、この構成によれば、可逆性がさらにより向上するAccording to this configuration, the compressed image data includes a plurality of representative values selected from a range of values that the data can take and a plurality of representative values for each of the blocks into which the image data to be compressed is divided. A plurality of indexes that are associated with each other and indicate representative values, and encoded image data that is associated with each of a plurality of pixels and includes a plurality of indexes obtained by converting pixel data. For this reason, in the compressed image data, the image data to be compressed is compressed with the gradation and resolution appropriately stored in accordance with the characteristics. Since the volume of the compressed image data is smaller than the volume of the image data to be compressed, the compressed image data can be stored in a storage element or recording medium having a smaller capacity than when the image data to be compressed is stored as it is. According to the above configuration, the plurality of representative values are selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. For this reason, when the data of each pixel in the block is converted into an index, a representative value that is even closer to the value of the data of the pixel can be selected, and the index of the pixel is assigned to the index indicating the selected representative value. Data is converted. Therefore, according to this configuration, the reversibility is further improved .

また、本発明の他の一態様では、多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを備えた圧縮画像データを解凍する画像解凍装置において、前記符号化画像データにおける各インデックスについて、前記インデックスが指し示す代表値に前記インデックスを変換する復号化部を備えることを特徴とする。さらに、本発明の他の一態様では、多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを備えた圧縮画像データを解凍する画像解凍方法において、前記符号化画像データにおける各インデックスについて、前記インデックスが指し示す代表値に前記インデックスを変換するステップを備えることを特徴とする。 In another aspect of the present invention, image data to be compressed including a plurality of pixels to which multi-value data is allocated is divided into a plurality of blocks each including a plurality of pixels, and each of the plurality of blocks is A plurality of representative values selected from a range of values that can be taken by the data, and a plurality of representative values selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. A coded image composed of a plurality of indices each associated with a value, the plurality of representative values and indicating the representative value, and a plurality of indexes associated with the plurality of pixels and converted from the pixel data In the image decompression apparatus for decompressing compressed image data comprising data, the index for each index in the encoded image data Scan, characterized in that it comprises a decoding unit for converting the index representative value pointed to. Furthermore, in another aspect of the present invention, image data to be compressed including a plurality of pixels to which multi-value data is allocated is divided into a plurality of blocks each including a plurality of pixels, and each of the plurality of blocks is A plurality of representative values selected from a range of values that can be taken by the data, and a plurality of representative values selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. A coded image composed of a plurality of indices each associated with a value, the plurality of representative values and indicating the representative value, and a plurality of indexes associated with the plurality of pixels and converted from the pixel data In the image decompression method for decompressing compressed image data comprising data, for each index in the encoded image data, the index Characterized in that it comprises the step of converting the index to a representative value box pointed.

この構成によれば、符号化画像データにおける各インデックスについて、インデックスが指し示す代表値に当該インデックスが変換される。このため、圧縮画像データが適切に解凍され得る。   According to this configuration, for each index in the encoded image data, the index is converted into a representative value indicated by the index. For this reason, the compressed image data can be appropriately decompressed.

そして、本発明の他の一態様では、多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを備えた圧縮画像データを解凍する画像解凍処理をコンピュータに実行させるための画像解凍プログラムにおいて、前記符号化画像データにおける各インデックスについて、前記インデックスが指し示す代表値に前記インデックスを変換するステップを備えることを特徴とする。さらに、本発明の他の一態様では、多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを備えた圧縮画像データを解凍する画像解凍処理をコンピュータに実行させるための画像解凍プログラムが記録されたコンピュータに読み取り可能な記録媒体において、前記符号化画像データにおける各インデックスについて、前記インデックスが指し示す代表値に前記インデックスを変換するステップを備えることを特徴とする。 In another aspect of the present invention, compression target image data including a plurality of pixels to which multi-value data is allocated is divided into a plurality of blocks each including a plurality of pixels, and each of the plurality of blocks is A plurality of representative values selected from a range of values that can be taken by the data, and a plurality of representative values selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. A coded image composed of a plurality of indices each associated with a value, the plurality of representative values and indicating the representative value, and a plurality of indexes associated with the plurality of pixels and converted from the pixel data In an image decompression program for causing a computer to execute an image decompression process for decompressing compressed image data comprising data, the encoded image For each index in the data, characterized in that it comprises the step of converting the index to a representative value the index points to. Furthermore, in another aspect of the present invention, image data to be compressed including a plurality of pixels to which multi-value data is allocated is divided into a plurality of blocks each including a plurality of pixels, and each of the plurality of blocks is A plurality of representative values selected from a range of values that can be taken by the data, and a plurality of representative values selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. A coded image composed of a plurality of indices each associated with a value, the plurality of representative values and indicating the representative value, and a plurality of indexes associated with the plurality of pixels and converted from the pixel data And an image decompression program for causing the computer to execute an image decompression process for decompressing the compressed image data. A recording medium readable for each index in the encoded image data, characterized by comprising the step of converting the index to a representative value the index points to.

この構成によれば、画像解凍プログラムは、符号化画像データにおける各インデックスについて、インデックスが指し示す代表値に当該インデックスを変換する。従って、この構成によれば、圧縮画像データを適切に解凍する画像解凍プログラムが提供され、また、この画像解凍プログラムを記録した記録媒体が提供される。   According to this configuration, the image decompression program converts each index in the encoded image data into a representative value indicated by the index. Therefore, according to this configuration, an image decompression program for appropriately decompressing compressed image data is provided, and a recording medium on which the image decompression program is recorded is provided.

本発明に係る画像圧縮装置、画像圧縮方法、画像圧縮プログラム及びこの画像圧縮プログラムを記録した記録媒体は、圧縮対象の画像における上記特性に応じて階調及び解像度を適切に保存して圧縮対象の画像の画像データを圧縮することができ、可逆性がさらにより向上する。 An image compression apparatus, an image compression method, an image compression program, and a recording medium on which the image compression program according to the present invention is recorded, appropriately store gradation and resolution according to the above characteristics in the image to be compressed, and it is possible to compress the image data of the image, is that to further improve than reversibility.

本発明に係る記録装置及び記録方法は、圧縮対象の画像における上記特性に応じて階調及び解像度を適切に保存し可逆性をさらにより向上させて圧縮対象の画像の画像データが圧縮された圧縮画像データを記録媒体に記録することができる。そして、本発明では、このような圧縮画像データを記録した記録媒体が提供され得る A recording apparatus and a recording method according to the present invention are compression in which image data of a compression target image is compressed by appropriately storing gradation and resolution according to the above characteristics in the compression target image and further improving reversibility. Image data can be recorded on a recording medium. In the present invention, a recording medium on which such compressed image data is recorded can be provided .

本発明に係る画像解凍装置、画像解凍方法、画像解凍プログラム及びこの画像解凍プログラムを記録した記録媒体は、上記圧縮画像データを適切に解凍することができる。   The image decompression apparatus, the image decompression method, the image decompression program, and the recording medium recording the image decompression program according to the present invention can appropriately decompress the compressed image data.

以下、本発明に係る実施形態を図面に基づいて説明する。なお、各図において同一の符号を付した構成は、同一の構成であることを示し、その説明を省略する。   Embodiments according to the present invention will be described below with reference to the drawings. In addition, the structure which attached | subjected the same code | symbol in each figure shows that it is the same structure, The description is abbreviate | omitted.

本発明に係る画像圧縮装置、画像圧縮方法、画像解凍装置、画像解凍方法、記録装置及び記録方法は、プリンタ、複写機、ファクシミリ及び複合機等の電子写真方式によって画像を形成する画像形成装置、スキャナ等の画像を読み取って画像データを生成する画像読取装置、並びに、画像データを生成するディジタルカメラ、画像データの画像処理や画像データの保存等を実行するコンピュータ等に適用することができるが、一例として、カラープリンタに適用した場合について以下に説明する。この場合では、以下の説明から分かるように、本発明に係る画像圧縮プログラムを記録した記録媒体、画像解凍プログラムを記録した記録媒体及び圧縮画像データを記録した記録媒体は、カラープリンタの記憶素子として実現される。そして、本発明に係る画像圧縮プログラム及び画像解凍プログラムは、カラープリンタの記憶素子に保持され、CPU(Central Processing Unit)によって実行される。また、本発明に係る圧縮画像フォーマットは、カラープリンタの記憶素子上に実現される。本発明が他の画像形成装置、画像読取装置、ディジタルカメラ及びコンピュータ等に適用される場合も同様である。   An image compression apparatus, an image compression method, an image decompression apparatus, an image decompression method, a recording apparatus, and a recording method according to the present invention include an image forming apparatus that forms an image by an electrophotographic method such as a printer, a copier, a facsimile machine, and a multifunction machine, It can be applied to an image reading apparatus that reads an image such as a scanner and generates image data, a digital camera that generates image data, a computer that performs image processing of image data, storage of image data, and the like. As an example, a case where the present invention is applied to a color printer will be described below. In this case, as will be understood from the following description, the recording medium on which the image compression program according to the present invention is recorded, the recording medium on which the image decompression program is recorded, and the recording medium on which the compressed image data is recorded are used as storage elements of a color printer. Realized. The image compression program and the image decompression program according to the present invention are held in a storage element of a color printer and executed by a CPU (Central Processing Unit). The compressed image format according to the present invention is realized on a storage element of a color printer. The same applies when the present invention is applied to other image forming apparatuses, image reading apparatuses, digital cameras, computers and the like.

図1は、実施形態におけるカラープリンタの機械的構成を主として示す概略断面図である。図2は、実施形態におけるカラープリンタの電気的構成を主として示すブロック図である。   FIG. 1 is a schematic sectional view mainly showing a mechanical configuration of a color printer in the embodiment. FIG. 2 is a block diagram mainly showing an electrical configuration of the color printer in the embodiment.

図1及び図2において、カラープリンタCPは、用紙貯留部10と、転写部20と、定着部30と、排紙部40と、用紙搬送路50と、制御部60と、インタフェース部(以下、「IF部」と略記する。)70とを備え、用紙貯留部10、転写部20、定着部30、用紙搬送路50、制御部60及びIF部70は、略箱形の装置本体1に内装され、排紙部40は、装置本体1の頂部に設けられている。   1 and 2, the color printer CP includes a paper storage unit 10, a transfer unit 20, a fixing unit 30, a paper discharge unit 40, a paper conveyance path 50, a control unit 60, and an interface unit (hereinafter, referred to as “printing unit”). The sheet storage unit 10, the transfer unit 20, the fixing unit 30, the sheet conveyance path 50, the control unit 60, and the IF unit 70 are provided in the substantially box-shaped apparatus main body 1. The paper discharge unit 40 is provided at the top of the apparatus main body 1.

用紙貯留部10は、印刷処理に供する転写材の一例としての用紙Pを貯留し、制御部60の制御により用紙Pを繰り出て給紙するものである。用紙貯留部10には、所定数(本実施形態では1つ)の用紙カセット11が装置本体1に対して挿脱自在に設けられている。用紙カセット11の上流端(図1に示す例では用紙カセット11の左上方)には、用紙束から用紙Pを1枚ずつ繰り出させるピックアップローラ12が設けられている。このピックアップローラ12の駆動によって用紙カセット11から繰り出された用紙Pは、用紙搬送路50に給紙されるようになっている。   The paper storage unit 10 stores paper P as an example of a transfer material used for printing processing, and feeds out the paper P under the control of the control unit 60. A predetermined number (one in this embodiment) of paper cassettes 11 is provided in the paper storage unit 10 so as to be detachable from the apparatus main body 1. At the upstream end of the paper cassette 11 (upper left of the paper cassette 11 in the example shown in FIG. 1), a pickup roller 12 that feeds the paper P from the paper bundle one by one is provided. The paper P fed out of the paper cassette 11 by driving the pickup roller 12 is fed to the paper transport path 50.

転写部20は、制御部60の制御によって、他のコンピュータ等からIF部70で受信した画像信号に基づき、用紙貯留部10に貯留された用紙束から繰り出された1枚ずつの用紙Pに対して画像の転写処理を施すものである。転写部20は、トナー像を形成する画像形成ユニット21と、この画像形成ユニット21で形成されたトナー像を用紙Pに転写する転写装置27とを備えて構成されている。   Under the control of the control unit 60, the transfer unit 20 controls the sheet P that is fed out from the sheet bundle stored in the sheet storage unit 10 based on the image signal received by the IF unit 70 from another computer or the like. The image is transferred. The transfer unit 20 includes an image forming unit 21 that forms a toner image, and a transfer device 27 that transfers the toner image formed by the image forming unit 21 to a sheet P.

画像形成ユニット21は、上流側(図1の紙面の右側)から下流側へ向けて順次に略水平方向に配設されたイエロー用ユニット21Y、マゼンダ用ユニット21M、シアン用ユニット21C及びブラック用ユニット21Kと、これら各ユニットの下部位置に配設された露光ユニット24とを備える。これら各ユニット21Y、21M、21C、21Kは、同様の構成であり、装置本体1内における各機器に対して所定の相対的な位置関係で位置決めされて装着されている。なお、本明細書において、総称する場合には添え字を省略した参照符号で示し、個別の構成を指す場合には添え字を付した参照符号で示す。   The image forming unit 21 includes a yellow unit 21Y, a magenta unit 21M, a cyan unit 21C, and a black unit that are sequentially arranged in a substantially horizontal direction from the upstream side (the right side of the paper surface in FIG. 1) to the downstream side. 21K and an exposure unit 24 disposed at the lower position of each unit. Each of these units 21Y, 21M, 21C, and 21K has the same configuration, and is positioned and attached to each device in the apparatus main body 1 with a predetermined relative positional relationship. In the present specification, when referring generically, it is indicated by a reference symbol without a suffix, and when referring to an individual configuration, it is indicated by a reference symbol with a suffix.

これら各ユニット21Y、21M、21C、21Kは、それぞれ、感光体ドラム(像担持体)22と、帯電器23と、現像装置25と、クリーニング装置26とを備え、感光体ドラム22は、前後方向(図1の紙面と直交する方向)に延びるドラム軸回りに回転可能に設けられ、当該感光体ドラム22の周面に沿うように当該感光体ドラム22の直下位置から、当該感光体ドラム22の回転方向である反時計方向に向けて、帯電器23、現像装置25及びクリーニング装置26が配設されている。   Each of these units 21Y, 21M, 21C, and 21K includes a photosensitive drum (image carrier) 22, a charger 23, a developing device 25, and a cleaning device 26. The photosensitive drum 22 is arranged in the front-rear direction. 1 is provided so as to be rotatable around a drum shaft extending in a direction (perpendicular to the paper surface of FIG. 1), and from the position directly below the photoconductive drum 22 along the peripheral surface of the photoconductive drum 22, A charger 23, a developing device 25, and a cleaning device 26 are arranged in the counterclockwise direction that is the rotational direction.

感光体ドラム22は、周面に静電潜像及びこの静電潜像に従ったトナー像(可視像)を形成させるためのものである。帯電器23は、ドラム軸回り反時計方向に回転している感光体ドラム22の周面に一様な電荷を形成させるものであり、例えば、周面が感光体ドラム22の周面と当接しながら従動回転しつつ当該感光体ドラム22へ電荷を付与する帯電ローラを備えて構成されている。現像装置25は、感光体ドラム22の周面にトナーを供給することによって周面の静電潜像が形成された部分にトナーを付着させ、これによって感光体ドラム22の周面にトナー像を形成するものである。本実施形態では、カラーに対応するために、イエロー用ユニット21Yの現像装置25Yには、イエロー(Y)のトナーが収容され、マゼンダ用ユニット21Mの現像装置25Mには、マゼンダ(M)のトナーが収容され、シアン用ユニット21Cの現像装置25Cには、シアン(C)のトナーが収容され、そして、ブラック用ユニット21Kの現像装置25Kには、ブラック(K)のトナーが収容されている。クリーニング装置26は、転写処理後の感光体ドラム22の周面に残留しているトナーを取り除いてクリーニングするためのものである。このクリーニング装置26によってクリーニングされた感光体ドラム22の周面は、次の画像形成処理のために再び帯電器23へ向かうことになる。   The photosensitive drum 22 is for forming an electrostatic latent image and a toner image (visible image) according to the electrostatic latent image on the peripheral surface. The charger 23 forms a uniform charge on the peripheral surface of the photosensitive drum 22 rotating counterclockwise around the drum axis. For example, the peripheral surface abuts on the peripheral surface of the photosensitive drum 22. However, it is configured to include a charging roller that applies electric charges to the photosensitive drum 22 while being driven to rotate. The developing device 25 supplies toner to the peripheral surface of the photosensitive drum 22 to attach the toner to the portion where the electrostatic latent image is formed on the peripheral surface, and thereby the toner image is formed on the peripheral surface of the photosensitive drum 22. To form. In the present embodiment, in order to cope with color, yellow (Y) toner is stored in the developing device 25Y of the yellow unit 21Y, and magenta (M) toner is stored in the developing device 25M of the magenta unit 21M. The cyan (C) toner is accommodated in the developing device 25C of the cyan unit 21C, and the black (K) toner is accommodated in the developing device 25K of the black unit 21K. The cleaning device 26 is for removing the toner remaining on the peripheral surface of the photosensitive drum 22 after the transfer process and cleaning it. The peripheral surface of the photosensitive drum 22 cleaned by the cleaning device 26 is again directed to the charger 23 for the next image forming process.

露光ユニット24は、画像データに基づき強弱の付与されたレーザ光を、回転している感光体ドラム22の周面に帯電器23と現像装置25との間において照射することによって、当該感光体ドラム22の周面に静電潜像を形成するものである。露光ユニット24は、カラーに対応するために、イエロー、マゼンダ、シアン及びブラックの各色にそれぞれ対応した各レーザ光を各ユニット21Y、21M、21C、21Kにおける各感光ドラム22Y、22M、22C、22Kに照射するように構成されている。帯電した感光体ドラム22の周面にレーザ光が照射されると、その照射された部分の電荷がレーザ光の強度に応じて消去され、これによって当該感光体ドラム22の周面に静電潜像が形成される。画像データは、IF部70で受信されたコンピュータ等の外部機器からの画像信号に公知の色補正処理やスクリーン処理等の画像処理を施すことによって制御部60が生成した現像色のイエロー、マゼンダ、シアン及びブラックの各画像データ(ラスタデータ)である。各画像データは、各画素に多値のデータとして階調データが割り付けられている。   The exposure unit 24 irradiates the peripheral surface of the rotating photosensitive drum 22 between the charger 23 and the developing device 25 with a laser beam to which intensity is applied based on the image data, thereby the photosensitive drum. An electrostatic latent image is formed on the peripheral surface 22. The exposure unit 24 applies the laser beams corresponding to the colors yellow, magenta, cyan, and black to the photosensitive drums 22Y, 22M, 22C, and 22K in the units 21Y, 21M, 21C, and 21K in order to correspond to the colors. It is configured to irradiate. When the peripheral surface of the charged photoconductor drum 22 is irradiated with laser light, the charged portion of the irradiated portion is erased in accordance with the intensity of the laser light. An image is formed. The image data includes yellow, magenta, developed colors generated by the control unit 60 by performing image processing such as known color correction processing and screen processing on an image signal from an external device such as a computer received by the IF unit 70. Each image data (raster data) of cyan and black. In each image data, gradation data is assigned to each pixel as multi-value data.

転写装置27は、感光体ドラム22の周面に形成されたトナー像を用紙Pに転写するための装置であって、中間転写ベルト271、一次転写ローラ272、駆動ローラ273、従動ローラ274及び二次転写ローラ275を備えている。中間転写ベルト271は、無端状であり、一次転写ローラ272、駆動ローラ273及び従動ローラ274によって各ユニット21Y、21M、21C、21Kの直上位置に張架されており、駆動ローラ273の回転駆動力によって時計方向に回転可能となっている。   The transfer device 27 is a device for transferring the toner image formed on the peripheral surface of the photosensitive drum 22 onto the paper P, and includes an intermediate transfer belt 271, a primary transfer roller 272, a driving roller 273, a driven roller 274, and a second roller. A next transfer roller 275 is provided. The intermediate transfer belt 271 is endless, and is stretched to a position immediately above the units 21Y, 21M, 21C, and 21K by the primary transfer roller 272, the drive roller 273, and the driven roller 274, and the rotational driving force of the drive roller 273 Can be rotated clockwise.

一次転写ローラ272は、各ユニット21Y、21M、21C、21Kの各感光ドラム22Y、22M、22C、22Kに対応するようにそれぞれ設けられ、中間転写ベルト271を押さえ感光体ドラム22から中間転写ベルト271が浮き上がるのを防止するように配置されている。二次転写ローラ275は、中間転写ベルト271の外周面において駆動ローラ273に対向する位置に配置されている。駆動ローラ273は、接地されている。一次転写ローラ272は、画像領域におけるトナー像が感光体ドラム22から中間転写ベルト271へ一次転写される間、トナーの帯電極性と逆極性の電圧が一次転写バイアスとして印加されるようになっている。また、二次転写ローラ275は、中間転写ベルト271上のトナー像が用紙Pへ二次転写される間、トナーの帯電極性と逆極性の電圧が二次転写バイアスとして印加されるようになっている。このように本実施形態に係るカラープリンタCPは、間接転写方式が採用されている。   The primary transfer roller 272 is provided so as to correspond to the photosensitive drums 22Y, 22M, 22C, and 22K of the units 21Y, 21M, 21C, and 21K, and holds the intermediate transfer belt 271 from the photosensitive drum 22 to the intermediate transfer belt 271. Is arranged to prevent the floating. The secondary transfer roller 275 is disposed at a position facing the drive roller 273 on the outer peripheral surface of the intermediate transfer belt 271. The drive roller 273 is grounded. The primary transfer roller 272 is configured to apply a voltage having a polarity opposite to that of the toner as a primary transfer bias while the toner image in the image area is primarily transferred from the photosensitive drum 22 to the intermediate transfer belt 271. . The secondary transfer roller 275 is configured to apply a voltage having a polarity opposite to that of the toner as a secondary transfer bias while the toner image on the intermediate transfer belt 271 is secondarily transferred to the paper P. Yes. As described above, the color printer CP according to the present embodiment employs the indirect transfer method.

そして、従動ローラ274の紙面右側には、中間転写ベルト用クリーニング装置276が設けられており、用紙Pへトナー像を転写処理した後における中間転写ベルト271の表面に残留しているトナーがこの中間転写ベルト用クリーニング装置276によって取り除かれ、これによって清浄化した中間転写ベルト271が感光体ドラム22へ供給されるようになっている。   An intermediate transfer belt cleaning device 276 is provided on the right side of the driven roller 274 in the drawing, and the toner remaining on the surface of the intermediate transfer belt 271 after the toner image is transferred to the paper P is intermediate. The intermediate transfer belt 271 removed by the transfer belt cleaning device 276 and cleaned thereby is supplied to the photosensitive drum 22.

定着部30は、制御部60の制御により、転写部20によって転写処理の施された用紙Pのトナー像に、加熱による定着処理を施すものであり、内部に通電発熱体が装着されたヒートローラ31と、このヒートローラ31と対向して周面同士が対向配置された加圧ローラ32とを備えている。そして、転写処理後の用紙Pは、ローラ軸回りに時計方向に向けて駆動回転しているヒートローラ31と、ローラ軸回りに反時計方向に向けて従動回転している加圧ローラ32との間のニップ部を通過することによって、ヒートローラ31からの熱を得て定着処理が施されるようになっている。定着処理の施された用紙Pは、用紙搬送路50によって排紙部40へ排出される。   The fixing unit 30 performs a fixing process by heating on the toner image of the paper P subjected to the transfer process by the transfer unit 20 under the control of the control unit 60, and a heat roller having an energized heating element mounted therein. 31 and a pressure roller 32 which is opposed to the heat roller 31 and whose peripheral surfaces are arranged to face each other. Then, the paper P after the transfer process is composed of a heat roller 31 that is driven to rotate clockwise around the roller axis, and a pressure roller 32 that is driven to rotate counterclockwise around the roller axis. By passing through the nip portion between them, heat from the heat roller 31 is obtained and fixing processing is performed. The paper P subjected to the fixing process is discharged to the paper discharge unit 40 through the paper conveyance path 50.

排紙部40は、定着部30で定着処理の施された用紙Pが排紙され、この排紙された用紙Pを貯留するものである。排紙部40は、装置本体1の頂部が凹没されることによって形成され、この凹没した凹部の底部に排紙された用紙Pを受ける排紙トレイ41が形成されている。   The paper discharge unit 40 discharges the paper P that has been subjected to the fixing process by the fixing unit 30 and stores the discharged paper P. The paper discharge unit 40 is formed by recessing the top of the apparatus main body 1, and a paper discharge tray 41 for receiving the discharged paper P is formed at the bottom of the concave recess.

用紙搬送路50は、制御部60の制御により、用紙貯留部10から給紙された用紙Pを転写部20及び定着部30を介して排紙部40まで搬送するものである。   The sheet conveyance path 50 conveys the sheet P fed from the sheet storage unit 10 to the sheet discharge unit 40 via the transfer unit 20 and the fixing unit 30 under the control of the control unit 60.

制御部60は、用紙貯留部10、転写部20、定着部30、用紙搬送路50及びIF部70に接続され、これらを当該機能に従って制御することにより、カラープリンタCPの各部の制御を司るものであり、例えば、CPU(Central Processing Unit)61、CPU61によって実行される種々のプログラムやその実行に必要なデータ等を予め記憶すると共にCPU61のいわゆるワーキングメモリとなる記憶素子62及びその周辺回路等を備えたマイクロコンピュータによって構成される。   The control unit 60 is connected to the paper storage unit 10, the transfer unit 20, the fixing unit 30, the paper conveyance path 50, and the IF unit 70, and controls these units according to the function, thereby controlling each unit of the color printer CP. For example, a CPU (Central Processing Unit) 61, various programs executed by the CPU 61, data necessary for the execution, and the like are stored in advance, and a storage element 62 that serves as a so-called working memory of the CPU 61 and its peripheral circuits, etc. It is composed of a microcomputer equipped.

制御部60の記憶素子62は、例えば、不揮発性の記憶素子であるROM(Read Only Memory)、書き換え可能な不揮発性の記憶素子であるEEPROM(Electrically Erasable Programmable Read Only Memory)及び揮発性の記憶素子であるRAM(Random Access Memory)等を備えて構成される。そして、記憶素子62は、機能的に、画像データを記憶する画像記憶部621と、圧縮された画像データ(圧縮画像データ)を記憶する圧縮画像記憶部622とを備える。圧縮画像記憶部622は、複数の代表値と複数の代表値にそれぞれ対応付けられたインデックスとから成るタグ情報を記憶するタグ情報記憶部6221と、ブロックにおける複数の画素にそれぞれ対応付けられ、画素のデータが変換された複数のインデックスから成る符号化画像データを記憶する符号化画像記憶部6222とを備える。代表値は、階調データが取り得る値の範囲のうちから選定された値である。インデックスは、代表値を指し示す符号であり、代表値を識別し特定するための識別子でもある。任意の符号を用いることができるが、インデックスのデータ容量を少なくする観点から、少ないビット数で表現される符号が好適である。本実施形態では、後述するように、番号が用いられる。ブロックは、複数の画素を備えた圧縮対象の画像データから分割された小さな領域であり、複数の画素から成る。もちろん、ブロックの画素数は、圧縮対象の画像データの画素数よりも少ない。   The storage element 62 of the control unit 60 includes, for example, a ROM (Read Only Memory) that is a nonvolatile storage element, an EEPROM (Electrically Erasable Programmable Read Only Memory) that is a rewritable nonvolatile storage element, and a volatile storage element. And a RAM (Random Access Memory). The storage element 62 functionally includes an image storage unit 621 that stores image data, and a compressed image storage unit 622 that stores compressed image data (compressed image data). The compressed image storage unit 622 is associated with a tag information storage unit 6221 that stores tag information including a plurality of representative values and indexes associated with the plurality of representative values, and a plurality of pixels in the block. And an encoded image storage unit 6222 for storing encoded image data composed of a plurality of indexes into which the data is converted. The representative value is a value selected from a range of values that the gradation data can take. The index is a code indicating the representative value, and is also an identifier for identifying and specifying the representative value. Any code can be used, but a code expressed by a small number of bits is preferable from the viewpoint of reducing the data capacity of the index. In this embodiment, numbers are used as will be described later. The block is a small area divided from the image data to be compressed including a plurality of pixels, and includes a plurality of pixels. Of course, the number of pixels of the block is smaller than the number of pixels of the image data to be compressed.

そして、制御部60のCPU61は、画像処理を行う画像処理プログラム、画像データを圧縮する画像圧縮プログラム及び圧縮画像データを解凍する画像解凍プログラム等が実行されることにより、機能的に、色補正処理やスクリーン処理等の画像処理を施す画像処理部611と、画像データを圧縮する圧縮部612と、圧縮画像データを解凍する解凍部613とを備える。圧縮部612は、圧縮対象の画像データからブロックごとに画像データを読み出すことによって、圧縮対象の画像データを複数のブロックに分割するブロック読出し部6121と、複数の代表値を選定すると共にインデックスを複数の代表値にそれぞれ付与することによって、タグ情報を生成するタグ情報生成部6122と、ブロックにおける各画素のデータについて、複数の代表値と画素のデータとに基づいてインデックスに画素のデータを変換することによって、符号化画像データを生成する符号化部6123と、ブロックの圧縮画像データを圧縮画像記憶部622に保存する圧縮画像書込み部6124とを備える。ブロック読出し部6121は、請求項のブロック化部の一例に相当する。解凍部613は、ブロックの圧縮画像データを圧縮画像記憶部622から読み出す圧縮画像読出し部6131と、符号化画像データにおける各インデックスについて、インデックスが指し示す代表値にインデックスを変換する復号化部6132と、代表値に変換されたブロックの画像データを、圧縮前の画像データ(圧縮対象の画像データ)に再構築されるように、画像記憶部621における所定の記憶領域に書き込むブロック書込み部6133とを備える。   The CPU 61 of the control unit 60 executes a color correction process functionally by executing an image processing program for performing image processing, an image compression program for compressing image data, an image decompression program for decompressing compressed image data, and the like. And an image processing unit 611 that performs image processing such as screen processing, a compression unit 612 that compresses image data, and a decompression unit 613 that decompresses compressed image data. The compression unit 612 reads out image data for each block from the image data to be compressed, thereby selecting a plurality of representative values and a plurality of indexes as well as a block reading unit 6121 that divides the image data to be compressed into a plurality of blocks. The tag information generation unit 6122 for generating tag information and the pixel data in each block are converted into an index based on a plurality of representative values and pixel data. Thus, an encoding unit 6123 that generates encoded image data and a compressed image writing unit 6124 that stores the compressed image data of the block in the compressed image storage unit 622 are provided. The block reading unit 6121 corresponds to an example of a blocking unit in the claims. The decompressing unit 613 includes a compressed image reading unit 6131 that reads the compressed image data of the block from the compressed image storage unit 622, a decoding unit 6132 that converts the index into the representative value indicated by each index in the encoded image data, A block writing unit 6133 that writes the image data of the block converted into the representative value into a predetermined storage area in the image storage unit 621 so that the image data before compression (image data to be compressed) is reconstructed. .

IF部70は、コンピュータ等の外部機器にLAN(Local Area Network)やUSB(Universal Serial Bus)ケーブル等を介して接続され、制御部60と例えばコンピュータ等の外部機器との間で種々の信号を送受信する回路であり、例えば、ネットワークインタフェース(10/100Base−TX)やUSBインタフェース等が用いられる。   The IF unit 70 is connected to an external device such as a computer via a LAN (Local Area Network) or a USB (Universal Serial Bus) cable, and transmits various signals between the control unit 60 and an external device such as a computer. For example, a network interface (10 / 100Base-TX) or a USB interface is used.

このような構成のカラープリンタCPにおける画像形成動作について概説すると、まず、帯電器23によって感光体ドラム22に帯電が行われた後、露光ユニット24によって露光が行われ、静電潜像が感光体ドラム22の表面に形成される。この静電潜像は、現像装置25でトナー像化され、感光体ドラム22の表面に形成されたこのトナー像は、一次転写ローラ272に印加された転写バイアスによって中間転写ベルト271上に転写される。そして、中間転写ベルト271に転写されずに感光体ドラム22に残留した残留トナーは、クリーニング装置26によってクリーニングされ、図略の回収ボトルへ収容される。このような露光、現像及び転写の動作がイエロー、マゼンダ、シアン及びブラックの各現像色に対して順次に行われ、中間転写ベルト271の表面には、各色のトナー像が重ねられ、中間転写ベルト271上にフルカラーのトナー像が形成される。   An outline of the image forming operation in the color printer CP having such a configuration will be described. First, after charging the photosensitive drum 22 by the charger 23, exposure is performed by the exposure unit 24, and the electrostatic latent image is transferred to the photosensitive member. It is formed on the surface of the drum 22. The electrostatic latent image is converted into a toner image by the developing device 25, and the toner image formed on the surface of the photosensitive drum 22 is transferred onto the intermediate transfer belt 271 by the transfer bias applied to the primary transfer roller 272. The Then, the residual toner remaining on the photosensitive drum 22 without being transferred to the intermediate transfer belt 271 is cleaned by the cleaning device 26 and stored in a collection bottle (not shown). Such exposure, development, and transfer operations are sequentially performed on the development colors of yellow, magenta, cyan, and black, and the toner images of the respective colors are superimposed on the surface of the intermediate transfer belt 271 so that the intermediate transfer belt. A full-color toner image is formed on 271.

フルカラーのトナー像が中間転写ベルト271に形成されると、二次転写ローラ275が中間転写ベルト271に当接され、タイミングを合わせて用紙貯留部10から用紙搬送路50によって転写位置まで搬送された用紙Pに、二次転写ローラ275に印加された二次転写バイアスにより中間転写ベルト271に形成されたフルカラーのトナー像が転写される。そして、用紙Pに転写されたフルカラーのトナー像は、定着部30による加熱及び加圧によって用紙Pに定着され、用紙Pは、排紙部40に排出される。なお、中間転写ベルト271に残留したトナーは、中間転写ベルト271の中間転写ベルト用クリーニング装置276を二次転写後の中間転写ベルト271に当接させることによってクリーニングされ、図略の回収ボトルに収容される。   When the full-color toner image is formed on the intermediate transfer belt 271, the secondary transfer roller 275 is brought into contact with the intermediate transfer belt 271, and is conveyed from the sheet storage unit 10 to the transfer position by the sheet conveyance path 50 in time. The full color toner image formed on the intermediate transfer belt 271 is transferred onto the paper P by the secondary transfer bias applied to the secondary transfer roller 275. The full color toner image transferred to the paper P is fixed to the paper P by heating and pressurization by the fixing unit 30, and the paper P is discharged to the paper discharge unit 40. The toner remaining on the intermediate transfer belt 271 is cleaned by bringing the intermediate transfer belt cleaning device 276 of the intermediate transfer belt 271 into contact with the intermediate transfer belt 271 after the secondary transfer, and is stored in a collection bottle (not shown). Is done.

ここで、感光体ドラム22の周面に静電潜像を形成する際に、露光ユニット24がレーザ光に強弱を付与するために用いる画像データは、次のように生成される。   Here, when the electrostatic latent image is formed on the peripheral surface of the photosensitive drum 22, the image data used by the exposure unit 24 to impart intensity to the laser light is generated as follows.

図3は、実施形態のカラープリンタにおける圧縮の動作を示すフローチャートである。図4は、実施形態のカラープリンタにおける解凍の動作を示すフローチャートである。図5は、画像データを複数のブロックに分割する動作を説明するための図である。図5の各矩形は、ブロックを表し、矢印線は、分割の順序を示す。図6は、実施形態のカラープリンタにおける圧縮及び解凍の動作を説明するための図である。図6Aは、圧縮前におけるブロックの画像データを示し、図6Bは、圧縮後におけるブロックの画像データ(符号化画像データ)を示し、図6Cは、解凍後のブロックの画像データを示す。図6A、図6B左側及び図6Cの各矩形は、画素を表し、図6B右側は、代表値と代表値に割り振られたインデックスとから成るタグ情報を表す。図6A及び図6Cの矩形における数値は、当該画素の階調データを表し、図6B左側の矩形における数値は、当該画素のインデックスを表す。図7は、各ブロックにおける代表値、インデックス及び符号化画像データの記憶素子への格納状態(圧縮画像フォーマット)を説明するための図である。   FIG. 3 is a flowchart showing the compression operation in the color printer of the embodiment. FIG. 4 is a flowchart showing the decompression operation in the color printer of the embodiment. FIG. 5 is a diagram for explaining an operation of dividing image data into a plurality of blocks. Each rectangle in FIG. 5 represents a block, and an arrow line indicates a division order. FIG. 6 is a diagram for explaining compression and decompression operations in the color printer of the embodiment. 6A shows the image data of the block before compression, FIG. 6B shows the image data (encoded image data) of the block after compression, and FIG. 6C shows the image data of the block after decompression. Each of the rectangles in FIGS. 6A, 6B, and 6C represents a pixel, and the right side of FIG. 6B represents tag information including a representative value and an index assigned to the representative value. The numerical values in the rectangles in FIGS. 6A and 6C represent the gradation data of the pixel, and the numerical values in the left rectangle in FIG. 6B represent the index of the pixel. FIG. 7 is a diagram for explaining a storage state (compressed image format) of a representative value, an index, and encoded image data in a storage element in each block.

まず、画像読取装置、ディジタルカメラ及びコンピュータ等の外部機器からの画像信号がIF部70で受信され、制御部60のCPU61によって、この画像信号に基づいて画像データが生成され、原画データとして画像記憶部621に記憶される。原画データは、外部機器からの画像信号に基づいて生成された画像データであって、印刷出力に当たって例えば色補正処理やスクリーン処理等の画像処理が施される前の画像データである。   First, an image signal from an external device such as an image reading device, a digital camera, or a computer is received by the IF unit 70, and image data is generated based on the image signal by the CPU 61 of the control unit 60, and the image data is stored as original image data. Stored in the unit 621. The original image data is image data generated based on an image signal from an external device, and is image data before image processing such as color correction processing or screen processing is performed for print output.

図3において、1ブロック分以上の原画データが画像記憶部621に記憶されると、圧縮部612のブロック読出し部6121は、1ブロック分の原画データを画像記憶部621から読み出す(S11)。この1ブロック分の原画データの読み出しは、予め設定された所定の規則に基づいて実行される。例えば、この読み出しは、図5に示すように、原画像の先端の一方端から他方端に向かって順次に行われ、他方端に到達すると、次段の一方端に戻る。このような順序の読み出しが原画像の先端から後端まで行われる。原画像は、原画データによって表される画像である。これによって原画像の原画データは、複数のブロックB1、B2、B3、・・・、Bn−1、Bnに分割されることになる。   In FIG. 3, when the original image data for one block or more is stored in the image storage unit 621, the block reading unit 6121 of the compression unit 612 reads the original image data for one block from the image storage unit 621 (S11). The reading of the original image data for one block is executed based on a predetermined rule set in advance. For example, as shown in FIG. 5, this reading is sequentially performed from one end of the leading end of the original image toward the other end, and when it reaches the other end, it returns to one end of the next stage. Reading in this order is performed from the leading edge to the trailing edge of the original image. An original image is an image represented by original image data. As a result, the original image data of the original image is divided into a plurality of blocks B1, B2, B3,..., Bn−1, Bn.

次に、圧縮部612のタグ情報生成部6122は、画素に割り付けられたデータが取り得る値の範囲のうちから複数の代表値を予め設定された個数だけ選定する(S12)。本実施形態では、画素に割り付けられたデータは、階調を表す階調データである。この選定される代表値の個数は、仕様等により適宜に設定されるが、代表値の個数が多いと圧縮率が低くなり、代表値の個数が少ないと圧縮率が高くなる。   Next, the tag information generation unit 6122 of the compression unit 612 selects a predetermined number of representative values from a range of values that can be taken by the data allocated to the pixels (S12). In the present embodiment, the data assigned to the pixels is gradation data representing gradation. The number of representative values to be selected is set as appropriate according to specifications and the like, but the compression rate decreases when the number of representative values is large, and the compression rate increases when the number of representative values is small.

これら複数の代表値は、例えば、圧縮対象のブロックにおける各画素の階調データのうちから選定される。後述するように、処理S14で各画素の階調データが代表値で置き換えられるが、このように代表値が選定されると、代表値に選定された階調データを持つ画素は、その階調データがその階調データの通りの代表値で置き換えられるので、可逆性が向上する。また例えば、これら複数の代表値は、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値が選定されてもよい。このように代表値が選定されると、当該画素が持つ階調データの通りに代表値に置き換えられる画素の個数が増えるので、より可逆性が向上する。本実施形態では、さらに可逆性を向上するために、まず、タグ情報生成部6122は、圧縮対象のブロックにおける各画素の階調データのうち、値の等しい階調データの個数が多い順に複数の代表値を予め設定された個数だけ仮に選定する(S121)。そして、次に、タグ情報生成部6122は、この処理S121で複数の代表値に選定されなかった画素の階調データを、この処理S121で仮に選定された複数の代表値のうちから最も近い代表値に割り振り、この割り振った画素の階調データとこの割り振られた代表値との平均値でこの割り振られた代表値を修正する(S122)。本実施形態では、このように代表値が選定される。このように代表値が選定されると、代表値に選定されなかった階調データもより近い値の代表値に置き換え可能となるので、さらに可逆性が向上される。   The plurality of representative values are selected from, for example, gradation data of each pixel in the compression target block. As will be described later, the gradation data of each pixel is replaced with a representative value in step S14. When the representative value is selected in this way, the pixel having the gradation data selected as the representative value is displayed in the gradation. Since the data is replaced with the representative value as the gradation data, the reversibility is improved. Further, for example, as the plurality of representative values, a plurality of representative values may be selected in descending order of the number of data having the same value among the data of each pixel in the block to be compressed. When the representative value is selected in this way, the number of pixels that can be replaced with the representative value increases according to the gradation data of the pixel, so that the reversibility is further improved. In the present embodiment, in order to further improve the reversibility, first, the tag information generation unit 6122 includes a plurality of pieces of gradation data having the same value among the gradation data of each pixel in the compression target block. Temporarily selecting a representative number of representative values (S121). Next, the tag information generation unit 6122 displays the gradation data of the pixels that were not selected as the plurality of representative values in this process S121, from the plurality of representative values temporarily selected in this process S121. The assigned representative value is corrected by an average value of the gradation data of the assigned pixel and the assigned representative value (S122). In the present embodiment, the representative value is selected in this way. When the representative value is selected in this way, the gradation data that has not been selected as the representative value can be replaced with a representative value having a closer value, thereby further improving the reversibility.

例えば、図6Aに示すように、階調データが3である1個の画素と、階調データが6である1個の画素と、階調データが8である2個の画素と、階調データが67である4個の画素と、階調データが153である5個の画素と、階調データが255である3個の画素とから成る4×4の正方形ブロックの場合について、より具体的に処理S12(処理S121、処理122)を説明すると、次のようになる。なお、各画素には、8bppの階調データが割り付けられている。このため、階調データが取り得る値の範囲は、0〜255の整数値である。   For example, as shown in FIG. 6A, one pixel whose gradation data is 3, one pixel whose gradation data is 6, two pixels whose gradation data is 8, More specifically, in the case of a 4 × 4 square block composed of 4 pixels with data 67, 5 pixels with gradation data 153, and 3 pixels with gradation data 255. Specifically, processing S12 (processing S121, processing 122) will be described as follows. It should be noted that 8bpp gradation data is assigned to each pixel. For this reason, the range of values that the gradation data can take is an integer value of 0 to 255.

値の等しい階調データの個数が多い順に階調データを並べると、153、67、255、8、6、3となる。仕様等により代表値が例えば4個だけ選定されるとすると、処理S121において、複数の代表値として、153、67、255及び8が仮に選定される。そして、処理S122において、まず、処理S121で選定されなかった階調データである6及び3がこの仮に選定された153、67、255及び8のうちから最も近い値の代表値である8に割り振られる。次に、この割り振った階調データである6及び3と、この割り振られた代表値である8との平均値6(≒(8×2+6×1+3×1)/(2+1+1))が演算される。なお、階調データは、整数値であるので、少数点以下が四捨五入され、平均値も整数値とされる。そして、この平均値である6で代表値である8が置き換えられることによって代表値である8が修正される。このように処理S121及び処理S122が実行されることによって図6Aに示す画素数が16のブロックについて、代表値6、153、67及び255が選定される。   If the gradation data are arranged in the order of the number of gradation data having the same value, 153, 67, 255, 8, 6, 3 are obtained. If, for example, only four representative values are selected according to the specification or the like, 153, 67, 255, and 8 are temporarily selected as a plurality of representative values in step S121. In the process S122, first, the gradation data 6 and 3 which are not selected in the process S121 are allocated to the closest representative value 8 among the temporarily selected 153, 67, 255 and 8. It is. Next, an average value 6 (≈ (8 × 2 + 6 × 1 + 3 × 1) / (2 + 1 + 1)) of the allocated gradation data 6 and 3 and the allocated representative value 8 is calculated. . Since the gradation data is an integer value, the decimal point is rounded off and the average value is also an integer value. Then, the representative value 8 is corrected by replacing the representative value 8 with the average value 6. By executing the processing S121 and the processing S122 in this way, representative values 6, 153, 67, and 255 are selected for the block with 16 pixels shown in FIG. 6A.

図3に戻って、次に、タグ情報生成部6122は、代表値を指し示すインデックスを、処理S12で選定した複数の代表値にそれぞれ付与する(S13)。   Returning to FIG. 3, next, the tag information generation unit 6122 gives an index indicating the representative value to each of the plurality of representative values selected in the process S12 (S13).

図6に示す例では、図6Bの右側に示すように、処理S12で選定された代表値6、153、67及び255のそれぞれにインデックス0、1、2及び3が付与される。   In the example shown in FIG. 6, as shown on the right side of FIG. 6B, indexes 0, 1, 2, and 3 are assigned to the representative values 6, 153, 67, and 255 selected in the process S12, respectively.

図3に戻って、次に、圧縮部612の符号化部6123は、ブロックにおける各画素の階調データについて、処理S12で選定された複数の代表値と当該画素の階調データとに基づいて、処理S13で付与されたインデックスに当該画素の階調データを変換する(S14)。より具体的には、例えば、符号化部6123は、ブロックにおける各画素の階調データについて、処理S12で選定された複数の代表値のうちから当該画素の階調データに最も近い代表値を選び、この選んだ代表値のインデックスに当該画素の階調データを変換する。これによってブロックにおける各画素の階調データが代表値のインデックスにそれぞれ変換される結果、ブロックにおける複数の画素にそれぞれ対応付けられ、画素の階調データが変換された複数のインデックスから成る符号化画像データが生成される。   Returning to FIG. 3, next, the encoding unit 6123 of the compression unit 612 determines the gradation data of each pixel in the block based on the plurality of representative values selected in the processing S12 and the gradation data of the pixel. Then, the gradation data of the pixel is converted into the index assigned in the process S13 (S14). More specifically, for example, for the gradation data of each pixel in the block, the encoding unit 6123 selects the representative value closest to the gradation data of the pixel from the plurality of representative values selected in the process S12. Then, the gradation data of the pixel is converted into the index of the selected representative value. As a result, the gradation data of each pixel in the block is converted into a representative value index. As a result, the encoded image is composed of a plurality of indexes corresponding to the plurality of pixels in the block and converted from the pixel gradation data. Data is generated.

図6に示す例では、図6Bの左側に示すように、階調データが3、6及び8である画素には、インデックスの0が割り振られ、階調データが153である画素には、インデックスの1が割り振られ、階調データが67である画素には、インデックスの2が割り振られ、そして、階調データが255である画素には、インデックスの3が割り振られる。この結果、ブロックにおける各画素の階調データがインデックスにそれぞれ変換され、図6Aに示すブロックは、図6Bの左側に示す符号化画像データとなる。   In the example shown in FIG. 6, as shown on the left side of FIG. 6B, an index of 0 is assigned to pixels whose gradation data is 3, 6 and 8, and an index of 0 is assigned to a pixel whose gradation data is 153 1 is assigned to the pixel whose gradation data is 67, and the index 2 is assigned to the pixel whose gradation data is 255. As a result, the gradation data of each pixel in the block is converted into an index, and the block shown in FIG. 6A becomes the encoded image data shown on the left side of FIG. 6B.

図3に戻って、そして、圧縮部612の圧縮画像書込み部6124は、代表値と、インデックスと、符号化画像データとから成る1ブロック分の原画の圧縮画像データを記憶素子62の圧縮画像記憶部622に記憶する(S15)。   Returning to FIG. 3, the compressed image writing unit 6124 of the compression unit 612 stores the compressed image data of the original image for one block including the representative value, the index, and the encoded image data in the compressed image storage of the storage element 62. The information is stored in the unit 622 (S15).

より具体的には、例えば、図7に示すように、記憶素子62のメモリ領域における所定の領域に圧縮画像記憶部622が設定されており、代表値及びインデックスと符号化画像データとがこの順でこの所定の領域にメモリアドレス順に記憶される。これによって代表値及びインデックスと符号化画像データとが対応付けられて記憶される。   More specifically, for example, as shown in FIG. 7, the compressed image storage unit 622 is set in a predetermined area in the memory area of the storage element 62, and the representative value and index and the encoded image data are in this order. Thus, the predetermined areas are stored in the order of memory addresses. As a result, the representative value and index and the encoded image data are stored in association with each other.

そして、例えば、代表値と当該代表値を指し示すインデックスとが組となって記憶されることによって、インデックスが代表値と対応付けられて記憶される。図6Bに示す例では、6015316722553と記憶される。また例えば、複数の代表値がまず記憶され、代表値が記憶された順に従って当該代表値に対応するインデックスが記憶される。図6Bに示す例では、6153672550123と記憶される。   Then, for example, by storing a representative value and an index indicating the representative value as a set, the index is stored in association with the representative value. In the example shown in FIG. 6B, 6015167722553 is stored. Further, for example, a plurality of representative values are first stored, and an index corresponding to the representative value is stored in the order in which the representative values are stored. In the example shown in FIG. 6B, it is stored as 6153672550123.

さらに、例えば、各画素のインデックスが画素の順に従ってメモリアドレス順に記憶されることによって、各画素にそれぞれ対応付けられて各インデックスが記憶される。   Further, for example, the indices of the respective pixels are stored in the order of the memory addresses according to the order of the pixels, so that the respective indexes are stored in association with the respective pixels.

このような処理S11乃至処理S15が原画の画像データにブロックごとに順次に実行されることによって、原画の画像データがブロックごとに順次に圧縮され、原画の圧縮画像データがブロックごとに順次に、記憶素子62の圧縮画像記憶部622にメモリアドレス順に記憶される。   Such processing S11 to S15 are sequentially performed on the original image data for each block, so that the original image data is sequentially compressed for each block, and the original compressed image data is sequentially converted for each block. The compressed images are stored in the compressed image storage unit 622 of the storage element 62 in the order of memory addresses.

この結果、図7に示すように、ブロックB1の原画の圧縮画像データがアドレスaから記憶素子62に記憶され、ブロックB2の原画の圧縮画像データがアドレスbから記憶素子62に記憶され、ブロックB3の原画の圧縮画像データがアドレスcから記憶素子62に記憶され、・・・、そして、ブロックBnの原画の圧縮画像データがアドレスnから記憶素子62に記憶される。そして、各ブロックの原画の圧縮画像データを記憶している各領域では、上述したように、代表値及びインデックスと符号化画像データとがアドレス順に記憶されている。各ブロックの原画の圧縮画像データにおける代表値及びインデックスを記憶している領域がタグ情報記憶部6221を構成し、各ブロックの原画の圧縮画像データにおける符号化画像データを記憶している領域が符号化画像記憶部6222を構成している。このように記憶素子62は、複数の代表値と、これら複数の代表値に対応付けられた複数のインデックスと、複数の画素にそれぞれ対応付けられた複数のインデックスから成る符号化画像データとが配置されている。   As a result, as shown in FIG. 7, the compressed image data of the original image of the block B1 is stored in the storage element 62 from the address a, the compressed image data of the original image of the block B2 is stored in the storage element 62 from the address b, and the block B3 The compressed image data of the original image is stored in the storage element 62 from the address c,..., And the compressed image data of the original image of the block Bn is stored in the storage element 62 from the address n. In each area storing the original compressed image data of each block, as described above, the representative value, the index, and the encoded image data are stored in the order of addresses. The area storing the representative value and index in the compressed image data of the original image of each block constitutes the tag information storage unit 6221, and the area storing the encoded image data in the compressed image data of the original image of each block is encoded. A converted image storage unit 6222 is configured. As described above, the storage element 62 includes a plurality of representative values, a plurality of indexes associated with the plurality of representative values, and encoded image data including a plurality of indexes respectively associated with the plurality of pixels. Has been.

このように動作することによって、外部機器からの画像信号がIF部70で受信され、制御部60のCPU61によって、この画像信号に基づいて生成された原画データは、ブロックごとに圧縮され、ブロックごとにブロック順に従って圧縮画像記憶部622にメモリアドレス順に記憶される。   By operating in this way, the image signal from the external device is received by the IF unit 70, and the original image data generated based on this image signal by the CPU 61 of the control unit 60 is compressed for each block, and for each block. Are stored in the compressed image storage unit 622 in the order of memory addresses.

図6に示す例では、圧縮前の原画データが8bppであり、ブロックが4×4の正方形であり、符号化画像データが2bppであり、代表値の個数が4であるので、圧縮率は、0.75となる。   In the example shown in FIG. 6, since the original image data before compression is 8 bpp, the block is a 4 × 4 square, the encoded image data is 2 bpp, and the number of representative values is 4, the compression rate is 0.75.

そして、感光体ドラム22の周面に静電潜像を形成する際には、図4に示すように、まず、解凍部613の圧縮画像読出し部6131は、ブロック順に従って1ブロック分の圧縮画像データを記憶素子62の圧縮画像記憶部622から読み出す(S21)。   When an electrostatic latent image is formed on the peripheral surface of the photosensitive drum 22, first, the compressed image reading unit 6131 of the decompressing unit 613 performs a compressed image for one block according to the block order as shown in FIG. Data is read from the compressed image storage unit 622 of the storage element 62 (S21).

次に、解凍部613の復号化部6132は、符号化画像データの各画素について、当該画素に対応付けられているインデックスを、当該インデックスが指し示す代表値で置き換えることによって、1ブロック分の圧縮画像データを復号する(S22)。これによって1ブロック分の圧縮画像データが解凍され、1ブロック分の画像データ(原画データ)になる。   Next, the decoding unit 6132 of the decompression unit 613 replaces the index associated with the pixel for each pixel of the encoded image data with a representative value indicated by the index, thereby compressing the compressed image for one block. The data is decrypted (S22). As a result, the compressed image data for one block is decompressed to become image data (original image data) for one block.

図6に示す例では、図6Cに示すように、インデックスが0である画素には、その階調データとして代表値の6が割り振られ、インデックスが1である画素には、その階調データとして代表値の153が割り振られ、インデックスが2である画素には、その階調データとして代表値の67が割り振られ、そして、インデックスが3である画素には、その階調データとして代表値の255が割り振られる。この結果、ブロックにおける各画素のインデックスが代表値に変換され、図6Bの左側に示す符号化画像データは、図6Cに示す画像データになる。   In the example illustrated in FIG. 6, as illustrated in FIG. 6C, a pixel having an index of 0 is assigned a representative value of 6 as its gradation data, and a pixel having an index of 1 is represented as its gradation data. A pixel with a representative value 153 and an index of 2 is assigned a representative value of 67 as its gradation data, and a pixel with an index of 3 has a representative value of 255 as its gradation data. Is allocated. As a result, the index of each pixel in the block is converted into a representative value, and the encoded image data shown on the left side of FIG. 6B becomes the image data shown in FIG. 6C.

図4に戻って、そして、解凍部613のブロック書込み部6133は、解凍した1ブロック分の画像データ(原画データ)を、露光ユニット24がレーザ光に強弱を付与するために用いる画像データを展開する画像記憶部621にブロック順に従って書き込む(S23)。   Returning to FIG. 4, the block writing unit 6133 of the decompression unit 613 develops the image data (original image data) for one decompressed image data used by the exposure unit 24 to add intensity to the laser beam. Is written in the image storage unit 621 in accordance with the block order (S23).

そして、制御部60は、この画像記憶部621に書き込まれた原画データを用いて露光ユニット24が照射するレーザ光に強弱を付与し、露光ユニット24によって感光体ドラム22の周面に静電潜像を形成する。   Then, the control unit 60 gives the intensity of the laser light emitted by the exposure unit 24 using the original image data written in the image storage unit 621, and the exposure unit 24 applies electrostatic latent image to the circumferential surface of the photosensitive drum 22. Form an image.

ここで、露光ユニット24が感光体ドラム22のドラム軸方向にレーザ光を走査することによって1ライン分の静電潜像を形成した後に、感光体ドラム22が1ライン分だけ回転し、露光ユニット24が次の1ライン分の静電潜像を形成する。これによって静電潜像が感光体ドラム22の周面に形成される。このため、全てのブロックを一度に解凍して画像記憶部621に展開する必要はなく、例えば、露光ユニット24が1ライン分の静電潜像を形成するために必要とされる原画データのブロックだけ解凍すればよい。従って、画像記憶部621の記憶容量を少なくすることができる。   Here, after the exposure unit 24 scans the laser beam in the drum axis direction of the photosensitive drum 22 to form an electrostatic latent image for one line, the photosensitive drum 22 rotates by one line, and the exposure unit 24 forms an electrostatic latent image for the next one line. As a result, an electrostatic latent image is formed on the peripheral surface of the photosensitive drum 22. For this reason, it is not necessary to decompress all the blocks at once and develop them in the image storage unit 621. For example, the blocks of original image data required for the exposure unit 24 to form an electrostatic latent image for one line. You just need to thaw. Therefore, the storage capacity of the image storage unit 621 can be reduced.

図8は、線画及びイメージ画の場合におけるブロックを説明するための図である。図8Aは、線画の場合におけるブロックの一例を示し、図8B及びCは、イメージ画の場合におけるブロックの一例を示す。   FIG. 8 is a diagram for explaining blocks in the case of a line drawing and an image drawing. FIG. 8A shows an example of a block in the case of a line drawing, and FIGS. 8B and 8C show an example of a block in the case of an image drawing.

線画の階調データは、一般に、原稿の地に当たる例えば0の値と、線の部分に当たる例えば255の値との2値で構成される。このため、図8Aに示すように、1ブロック内における各画素の階調データが取り得る値は、これら0と255との2値となる。従って、ブロックが4×4の正方形であり、代表値の個数が2であり、圧縮対象の画像データが1200dpiで8bppである場合、上述の処理S11乃至処理S15によって画像データを圧縮すると、符号化画像データが1bppとなって、1200dpiのままで、圧縮率が0.25で圧縮される。しかも、画素の階調データは、その階調データの通りの代表値で置き換えられるので、可逆圧縮される。このため、解像度が高く階調(色数)の少ない部分は、上述の処理S11乃至処理S15が実行されることによって、解像度を保存して圧縮される。   The gradation data of the line drawing is generally composed of two values, for example, a value of 0 corresponding to the ground of the document and a value of 255 corresponding to the line portion. For this reason, as shown in FIG. 8A, the values that the gradation data of each pixel in one block can take are binary values of 0 and 255. Therefore, if the block is a 4 × 4 square, the number of representative values is 2, and the image data to be compressed is 1200 dpi and 8 bpp, the image data is compressed by the above-described processing S11 to processing S15. The image data becomes 1 bpp and is compressed at a compression rate of 0.25 while maintaining 1200 dpi. In addition, the gradation data of the pixel is replaced with a representative value as the gradation data, so that it is reversibly compressed. For this reason, a portion with a high resolution and a small number of gradations (number of colors) is compressed by storing the resolution by executing the above-described processing S11 to S15.

一方、イメージ画の場合では、例えば300dpiでは、1200dpiの場合における4×4の16画素が1画素とみなすことが可能である。このため、図8Bに示すように、1ブロック内における各画素の階調データが取り得る値は、例えば65の1つの値であったり、図8Cに示すように、1ブロック内における各画素の階調データが取り得る値は、例えば65と78の2値であったりするので、1ブロック内における各画素の階調データが取り得る値の数は、あまり多くない。従って、ブロックが4×4の正方形であり、代表値の個数が2であり、圧縮対象の画像データが300dpiで8bppである場合、上述の処理S11乃至処理S15によって画像データを圧縮すると、符号化画像データが1bppとなって、300dpiのままで、圧縮率が0.25で圧縮される。しかも、画素の階調データは、その階調データの通りの代表値で置き換えられる可能性が高いので、高い可逆性で圧縮され得る(図8B及びCに示し例では可逆圧縮される)。このため、階調(色数)の多い部分は、上述の処理S11乃至処理S15が実行されることによって、階調(色数)を保存して圧縮される。   On the other hand, in the case of an image, for example, at 300 dpi, 16 pixels of 4 × 4 in the case of 1200 dpi can be regarded as one pixel. For this reason, as shown in FIG. 8B, the gradation data of each pixel in one block can be, for example, one value of 65, or as shown in FIG. 8C, for each pixel in one block. Since the values that the gradation data can take are, for example, the binary values 65 and 78, the number of values that the gradation data of each pixel can take in one block is not very large. Therefore, when the block is a 4 × 4 square, the number of representative values is 2, and the image data to be compressed is 300 dpi and 8 bpp, the image data is compressed by the above-described processing S11 to processing S15. The image data becomes 1 bpp and is compressed at a compression rate of 0.25 while maintaining 300 dpi. Moreover, since the gradation data of the pixel is highly likely to be replaced with the representative value as the gradation data, it can be compressed with high reversibility (in the example shown in FIGS. 8B and C, it is reversibly compressed). For this reason, the portion having a large number of gradations (number of colors) is compressed by storing the gradation (number of colors) by executing the above-described processing S11 to S15.

このように上述の処理S11乃至処理S15で圧縮することによって、圧縮対象の画像における上記特性に応じて階調及び解像度を適切に保存して圧縮対象の画像の画像データが圧縮され得る。特に、本実施形態における圧縮及び解凍は、線画やイメージ画を印刷するプリンタに好適である。   By compressing in the above-described processing S11 to processing S15 as described above, the image data of the compression target image can be compressed while appropriately storing the gradation and the resolution according to the characteristics of the compression target image. In particular, the compression and decompression in the present embodiment is suitable for a printer that prints a line image or an image image.

また、上述の実施形態では、各ブロックにおける各サイズが4×4で等しく、かつ、各ブロックにおける各代表値の数が4で等しい。このため、各ブロックの圧縮画像データにおける各データ容量が互いに等しくなる。このため、各ブロックの圧縮画像データは、図7に示すように記憶素子62の圧縮画像記憶部622にメモリアドレス上において等間隔に保存されるので、任意のブロックの圧縮画像データを容易に読み出すことができる。よって、任意のブロックの圧縮画像データを解凍することができる。   Further, in the above-described embodiment, each size in each block is equal to 4 × 4, and the number of representative values in each block is equal to four. For this reason, the data capacities in the compressed image data of each block are equal to each other. Therefore, the compressed image data of each block is stored at equal intervals on the memory address in the compressed image storage unit 622 of the storage element 62 as shown in FIG. 7, so that the compressed image data of an arbitrary block can be easily read out. be able to. Therefore, the compressed image data of an arbitrary block can be decompressed.

なお、上述の実施形態では、ブロックは、正方形であるが、全ての画像データをブロックに分割可能であれば、任意の形状でよい。例えば、ブロックは、三角形、菱形及び六角形等でもよい。   In the above-described embodiment, the block is a square, but may be any shape as long as all image data can be divided into blocks. For example, the block may be a triangle, a diamond, a hexagon, or the like.

また、上述の実施形態では、図7に示すように、タグ情報及び符号化画像データは、ブロックごとに纏められて圧縮画像記憶部622に記憶されたが、各ブロックのタグ情報が纏められて圧縮画像記憶部622に記憶されると共に、各ブロックの符号化画像データが纏められて圧縮画像記憶部622に記憶されてもよい。このような場合でも、各ブロックのタグ情報と各ブロックの符号化画像データとは、例えばこれらがブロック順に従って圧縮画像記憶部622にメモリアドレス順でそれぞれ記憶されることによって、互いに対応付けることができる。   In the above-described embodiment, as shown in FIG. 7, the tag information and the encoded image data are collected for each block and stored in the compressed image storage unit 622. However, the tag information for each block is collected. While being stored in the compressed image storage unit 622, the encoded image data of each block may be collected and stored in the compressed image storage unit 622. Even in such a case, the tag information of each block and the encoded image data of each block can be associated with each other by, for example, storing them in the compressed image storage unit 622 in the memory address order according to the block order. .

さらに、上述の実施形態では、圧縮画像データは、記憶素子62に保存されたが、例えば、フレキシブルディスク、CD−R(Compact Disc Recordable)、DVD−RW(Digital Versatile Disc Read Write)、USBメモリ等の記録媒体に記録されてもよい。   Further, in the above-described embodiment, the compressed image data is stored in the storage element 62. For example, a flexible disk, a CD-R (Compact Disc Recordable), a DVD-RW (Digital Versatile Disc Read Write), a USB memory, etc. May be recorded on the other recording medium.

そして、上述の実施形態において、制御部60が実行する、画像圧縮プログラムや画像解凍プログラム等のプログラムは、ROM或いはCD−ROM(Compact Disc Read Only Memory)等の記録媒体を通じて供給することも、ネットワーク等の伝送媒体を通じて供給することも可能である。伝送媒体は、有線の伝送媒体に限らず無線の伝送媒体であってもよい。また、伝送媒体には、通信線路のみでなく、通信線路を中継する中継装置、例えばルータ等をも含む。   In the above-described embodiment, a program such as an image compression program or an image decompression program executed by the control unit 60 may be supplied through a recording medium such as a ROM or a CD-ROM (Compact Disc Read Only Memory). It is also possible to supply through a transmission medium such as The transmission medium is not limited to a wired transmission medium, and may be a wireless transmission medium. The transmission medium includes not only a communication line but also a relay device that relays the communication line, such as a router.

プログラムがROMを通じて供給される場合には、当該プログラムが記録されたROMを制御部60に搭載することによって、制御部60による実行に供することができる。プログラムがCD−ROMを通じて供給される場合には、CD−ROM読取装置を接続し、当該プログラムを例えばEEPROM或いはハードディスク装置(HDD、Hard Disk Drive)へ一旦格納しておくことによって、制御部60による実行に供することができる。また、プログラムが伝送媒体を通じて供給される場合には、ネットワークを介して受信したプログラムを例えばEEPROM或いはHDDへ一旦格納しておくことによって、制御部60による実行に供することができる。   When the program is supplied through the ROM, the ROM in which the program is recorded is mounted on the control unit 60 and can be used for execution by the control unit 60. When the program is supplied through a CD-ROM, the controller 60 connects the CD-ROM reader and temporarily stores the program in, for example, an EEPROM or a hard disk device (HDD, Hard Disk Drive). Can be used for execution. When the program is supplied through a transmission medium, the program received via the network can be stored in, for example, an EEPROM or an HDD, and can be used for execution by the control unit 60.

本発明を表現するために、上述において図面を参照しながら実施形態を通して本発明を適切且つ十分に説明したが、当業者であれば上述の実施形態を変更及び/又は改良することは容易に為し得ることであると認識すべきである。従って、当業者が実施する変更形態又は改良形態が、請求の範囲に記載された請求項の権利範囲を離脱するレベルのものでない限り、当該変更形態又は当該改良形態は、当該請求項の権利範囲に包括されると解釈される。   In order to express the present invention, the present invention has been properly and fully described through the embodiments with reference to the drawings. However, those skilled in the art can easily change and / or improve the above-described embodiments. It should be recognized that this is possible. Accordingly, unless the modifications or improvements implemented by those skilled in the art are at a level that departs from the scope of the claims recited in the claims, the modifications or improvements are not limited to the scope of the claims. To be construed as inclusive.

実施形態におけるカラープリンタの機械的構成を主として示す概略断面図である。1 is a schematic cross-sectional view mainly showing a mechanical configuration of a color printer in an embodiment. 実施形態におけるカラープリンタの電気的構成を主として示すブロック図である。1 is a block diagram mainly showing an electrical configuration of a color printer in an embodiment. FIG. 実施形態のカラープリンタにおける圧縮の動作を示すフローチャートである。3 is a flowchart illustrating a compression operation in the color printer of the embodiment. 実施形態のカラープリンタにおける解凍の動作を示すフローチャートである。6 is a flowchart illustrating an operation of decompression in the color printer of the embodiment. 画像データを複数のブロックに分割する動作を説明するための図である。It is a figure for demonstrating the operation | movement which divides | segments image data into a some block. 実施形態のカラープリンタにおける圧縮及び解凍の動作を説明するための図である。It is a figure for demonstrating the operation | movement of compression and decompression | decompression in the color printer of embodiment. 各ブロックにおける代表値、インデックス及び符号化画像データの記憶素子への格納状態(圧縮画像フォーマット)を説明するための図である。It is a figure for demonstrating the storage state (compressed image format) to the storage element of the representative value in each block, an index, and encoding image data. 線画及びイメージ画の場合におけるブロックを説明するための図である。It is a figure for demonstrating the block in the case of a line drawing and an image drawing.

符号の説明Explanation of symbols

CP カラープリンタ
60 制御部
61 CPU
62 記憶素子
70 インタフェース部
611 画像処理部
612 圧縮部
613 解凍部
621 画像記憶部
622 圧縮画像記憶部
6121 ブロック読出し部
6122 タグ情報生成部
6123 符号化部
6124 圧縮画像書込み部
6131 圧縮画像読出し部
6132 復号化部
6133 ブロック書込み部
6221 タグ情報記憶部
6222 符号化画像記憶部
CP color printer 60 controller 61 CPU
62 storage element 70 interface unit 611 image processing unit 612 compression unit 613 decompression unit 621 image storage unit 622 compressed image storage unit 6121 block reading unit 6122 tag information generation unit 6123 encoding unit 6124 compressed image writing unit 6131 compressed image reading unit 6132 decoding Conversion unit 6133 block writing unit 6221 tag information storage unit 6222 encoded image storage unit

Claims (14)

多値のデータが割り付けられた画素を複数備えた画像データを、複数の画素から成る複数のブロックに分割するブロック化部と、
前記データが取り得る値の範囲のうちから複数の代表値を選定すると共に、前記代表値を指し示すインデックスを前記複数の代表値にそれぞれ付与するタグ情報生成部と、
前記ブロックにおける各画素のデータについて、前記複数の代表値と前記画素のデータとに基づいて前記インデックスに前記画素のデータを変換する符号化部とを備え、
前記タグ情報生成部は、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値を選定すると共に、前記代表値を指し示すインデックスを前記複数の代表値にそれぞれ付与すること
を特徴とする画像圧縮装置。
A blocking unit that divides image data including a plurality of pixels to which multi-value data is allocated into a plurality of blocks each including a plurality of pixels;
A tag information generation unit that selects a plurality of representative values from a range of values that can be taken by the data, and assigns an index indicating the representative value to each of the plurality of representative values;
For each pixel data in the block, an encoding unit that converts the pixel data into the index based on the plurality of representative values and the pixel data,
The tag information generation unit selects a plurality of representative values in descending order of the number of data having the same value among the data of each pixel in the block to be compressed, and sets an index indicating the representative value as the plurality of representative values. image compression apparatus characterized that you grant, respectively.
前記タグ情報生成部は、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値を選定し、前記複数の代表値に選定されなかった前記画素のデータを前記複数の代表値のうちから最も近い代表値に割り振り、該割り振った画素のデータと該割り振られた代表値との平均値で該割り振られた代表値を修正すると共に、前記代表値を指し示すインデックスを前記複数の代表値にそれぞれ付与すること
を特徴とする請求項1に記載の画像圧縮装置。
The tag information generation unit selects a plurality of representative values in descending order of the number of data having the same value among the data of each pixel in the block to be compressed, and data of the pixels not selected as the plurality of representative values Is assigned to the nearest representative value from among the plurality of representative values, and the assigned representative value is corrected by an average value of the data of the assigned pixels and the assigned representative value, and the representative value is indicated. The image compression apparatus according to claim 1 , wherein an index is assigned to each of the plurality of representative values.
前記符号化部は、前記ブロックにおける各画素のデータについて、前記複数の代表値のうちから前記画素のデータに最も近い代表値を選び、該選んだ代表値のインデックスに前記画素のデータを変換すること
を特徴とする請求項1または請求項2に記載の画像圧縮装置。
The encoding unit selects a representative value closest to the pixel data from the plurality of representative values for the data of each pixel in the block, and converts the pixel data to an index of the selected representative value. The image compression apparatus according to claim 1, wherein the image compression apparatus is an image compression apparatus.
前記複数のブロックにおける各サイズが等しく、かつ、前記複数のブロックにおける各代表値の数が等しいこと
を特徴とする請求項1乃至請求項3の何れか1項に記載の画像圧縮装置。
The equal respective sizes of a plurality of blocks, and the image compression apparatus according to any one of claims 1 to 3, wherein the number of the representative value of the plurality of blocks are equal.
多値のデータが割り付けられた画素を複数備えた画像データを、複数の画素から成る複数のブロックに分割するステップと、
前記データが取り得る値の範囲のうちから複数の代表値を選定するステップと、
前記代表値を指し示すインデックスを前記複数の代表値にそれぞれ付与するステップと、
前記ブロックにおける各画素のデータについて、前記複数の代表値と前記画素のデータとに基づいて前記インデックスに前記画素のデータを変換するステップとを備え、
前記複数の代表値を選定するステップは、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値を選定すること
を特徴とする画像圧縮方法。
Dividing image data including a plurality of pixels to which multi-valued data is assigned into a plurality of blocks each including a plurality of pixels;
Selecting a plurality of representative values from a range of values that the data can take;
Providing each of the plurality of representative values with an index indicating the representative value;
Converting the pixel data into the index based on the plurality of representative values and the pixel data for each pixel data in the block, and
Step, among the data of each pixel in the block to be compressed, the image compression method comprising that you select a plurality of representative values in the order number of the data is greater equal a value for selecting a plurality of representative values.
コンピュータに実行させるための画像圧縮プログラムにおいて、
多値のデータが割り付けられた画素を複数備えた画像データを、複数の画素から成る複数のブロックに分割するステップと、
前記データが取り得る値の範囲のうちから複数の代表値を選定するステップと、
前記代表値を指し示すインデックスを前記複数の代表値にそれぞれ付与するステップと、
前記ブロックにおける各画素のデータについて、前記複数の代表値と前記画素のデータとに基づいて前記インデックスに前記画素のデータを変換するステップとを備え、
前記複数の代表値を選定するステップは、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値を選定すること
を特徴とする画像圧縮プログラム。
In an image compression program to be executed by a computer,
Dividing image data including a plurality of pixels to which multi-valued data is assigned into a plurality of blocks each including a plurality of pixels;
Selecting a plurality of representative values from a range of values that the data can take;
Providing each of the plurality of representative values with an index indicating the representative value;
Converting the pixel data into the index based on the plurality of representative values and the pixel data for each pixel data in the block, and
Step, among the data of each pixel in the block to be compressed, the image compression program characterized that you select a plurality of representative values in the order number of the data is greater equal a value for selecting a plurality of representative values.
コンピュータに実行させるための画像圧縮プログラムが記録されたコンピュータに読み取り可能な記録媒体において、
前記画像圧縮プログラムは、
多値のデータが割り付けられた画素を複数備えた画像データを、複数の画素から成る複数のブロックに分割するステップと、
前記データが取り得る値の範囲のうちから複数の代表値を選定するステップと、
前記代表値を指し示すインデックスを前記複数の代表値にそれぞれ付与するステップと、
前記ブロックにおける各画素のデータについて、前記複数の代表値と前記画素のデータとに基づいて前記インデックスに前記画素のデータを変換するステップとを備え、
前記複数の代表値を選定するステップは、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に複数の代表値を選定すること
を特徴とする記録媒体。
In a computer-readable recording medium on which an image compression program to be executed by a computer is recorded,
The image compression program is:
Dividing image data including a plurality of pixels to which multi-valued data is assigned into a plurality of blocks each including a plurality of pixels;
Selecting a plurality of representative values from a range of values that the data can take;
Providing each of the plurality of representative values with an index indicating the representative value;
Converting the pixel data into the index based on the plurality of representative values and the pixel data for each pixel data in the block, and
Wherein the plurality of steps of selecting a representative value among the data of each pixel in a block of compressed recording medium characterized that you select a plurality of representative values in the order number of the data is greater equal value.
多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを記録媒体に記録する記録装置。 Image data to be compressed including a plurality of pixels to which multi-valued data is assigned is divided into a plurality of blocks each consisting of a plurality of pixels, and for each of the plurality of blocks, a range of values that the data can take A plurality of representative values selected from the above, each of the pixel values in the block to be compressed corresponding to the plurality of representative values selected in descending order of the number of data having the same value A recording apparatus for recording on a recording medium a plurality of indexes attached and indicating the representative value, and encoded image data made up of a plurality of indexes associated with the plurality of pixels and converted from the data of the pixels. 多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを記録媒体に記録する記録方法。 Image data to be compressed including a plurality of pixels to which multi-valued data is assigned is divided into a plurality of blocks each consisting of a plurality of pixels, and for each of the plurality of blocks, a range of values that the data can take A plurality of representative values selected from the above, each of the pixel values in the block to be compressed corresponding to the plurality of representative values selected in descending order of the number of data having the same value A recording method for recording, on a recording medium, a plurality of indexes attached and indicating the representative value and encoded image data composed of a plurality of indexes corresponding to the plurality of pixels and converted from the data of the pixels. 多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを備えた圧縮画像データが記録されたコンピュータに読み取り可能な記録媒体。 Image data to be compressed including a plurality of pixels to which multi-valued data is assigned is divided into a plurality of blocks each consisting of a plurality of pixels, and for each of the plurality of blocks, a range of values that the data can take A plurality of representative values selected from the above, each of the pixel values in the block to be compressed corresponding to the plurality of representative values selected in descending order of the number of data having the same value And compressed image data including a plurality of indexes indicating the representative value and encoded image data including a plurality of indexes corresponding to the plurality of pixels and converted from the pixel data, respectively. A computer-readable recording medium. 多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを備えた圧縮画像データを解凍する画像解凍装置において、
前記符号化画像データにおける各インデックスについて、前記インデックスが指し示す代表値に前記インデックスを変換する復号化部を備えること
を特徴とする画像解凍装置。
Image data to be compressed including a plurality of pixels to which multi-valued data is assigned is divided into a plurality of blocks each consisting of a plurality of pixels, and for each of the plurality of blocks, a range of values that the data can take A plurality of representative values selected from the above, each of the pixel values in the block to be compressed corresponding to the plurality of representative values selected in descending order of the number of data having the same value And decompressing compressed image data including a plurality of indexes indicating the representative value and encoded image data including a plurality of indexes corresponding to the plurality of pixels and converted from the pixel data. In the image decompression device,
An image decompression apparatus comprising: a decoding unit that converts each index in the encoded image data into a representative value indicated by the index.
多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを備えた圧縮画像データを解凍する画像解凍方法において、
前記符号化画像データにおける各インデックスについて、前記インデックスが指し示す代表値に前記インデックスを変換するステップを備えること
を特徴とする画像解凍方法。
Image data to be compressed including a plurality of pixels to which multi-valued data is assigned is divided into a plurality of blocks each consisting of a plurality of pixels, and for each of the plurality of blocks, a range of values that the data can take A plurality of representative values selected from the above, each of the pixel values in the block to be compressed corresponding to the plurality of representative values selected in descending order of the number of data having the same value And decompressing compressed image data including a plurality of indexes indicating the representative value and encoded image data including a plurality of indexes corresponding to the plurality of pixels and converted from the pixel data. In the image decompression method,
An image decompression method comprising: for each index in the encoded image data, converting the index into a representative value indicated by the index.
多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを備えた圧縮画像データを解凍する画像解凍処理をコンピュータに実行させるための画像解凍プログラムにおいて、
前記符号化画像データにおける各インデックスについて、前記インデックスが指し示す代表値に前記インデックスを変換するステップを備えること
を特徴とする画像解凍プログラム。
Image data to be compressed including a plurality of pixels to which multi-valued data is assigned is divided into a plurality of blocks each consisting of a plurality of pixels, and for each of the plurality of blocks, a range of values that the data can take A plurality of representative values selected from the above, each of the pixel values in the block to be compressed corresponding to the plurality of representative values selected in descending order of the number of data having the same value And decompressing compressed image data including a plurality of indexes indicating the representative value and encoded image data including a plurality of indexes corresponding to the plurality of pixels and converted from the pixel data. In an image decompression program for causing a computer to execute image decompression processing,
An image decompression program comprising: converting each index into a representative value indicated by the index for each index in the encoded image data.
多値のデータが割り付けられた画素を複数備えた圧縮対象の画像データが、複数の画素から成る複数のブロックに分割され、前記複数のブロックのそれぞれについて、前記データが取り得る値の範囲のうちから選定された複数の代表値であって、圧縮対象のブロックにおける各画素のデータのうち、値の等しいデータの個数が多い順に選定された複数の代表値と、前記複数の代表値にそれぞれ対応付けられ、前記代表値を指し示す複数のインデックスと、前記複数の画素にそれぞれ対応付けられ、前記画素のデータが変換された複数のインデックスから成る符号化画像データとを備えた圧縮画像データを解凍する画像解凍処理をコンピュータに実行させるための画像解凍プログラムが記録されたコンピュータに読み取り可能な記録媒体において、
前記符号化画像データにおける各インデックスについて、前記インデックスが指し示す代表値に前記インデックスを変換するステップを備えること
を特徴とする記録媒体。
Image data to be compressed including a plurality of pixels to which multi-valued data is assigned is divided into a plurality of blocks each consisting of a plurality of pixels, and for each of the plurality of blocks, a range of values that the data can take A plurality of representative values selected from the above, each of the pixel values in the block to be compressed corresponding to the plurality of representative values selected in descending order of the number of data having the same value And decompressing compressed image data including a plurality of indexes indicating the representative value and encoded image data including a plurality of indexes corresponding to the plurality of pixels and converted from the pixel data. In a computer-readable recording medium on which an image decompression program for causing a computer to execute image decompression processing is recorded ,
A recording medium comprising the step of converting the index into a representative value indicated by the index for each index in the encoded image data.
JP2006223820A 2006-08-21 2006-08-21 Image compression apparatus, method and program, recording apparatus and method, image decompression apparatus, method and program, and recording medium Expired - Fee Related JP4795166B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006223820A JP4795166B2 (en) 2006-08-21 2006-08-21 Image compression apparatus, method and program, recording apparatus and method, image decompression apparatus, method and program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006223820A JP4795166B2 (en) 2006-08-21 2006-08-21 Image compression apparatus, method and program, recording apparatus and method, image decompression apparatus, method and program, and recording medium

Publications (2)

Publication Number Publication Date
JP2008048302A JP2008048302A (en) 2008-02-28
JP4795166B2 true JP4795166B2 (en) 2011-10-19

Family

ID=39181578

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006223820A Expired - Fee Related JP4795166B2 (en) 2006-08-21 2006-08-21 Image compression apparatus, method and program, recording apparatus and method, image decompression apparatus, method and program, and recording medium

Country Status (1)

Country Link
JP (1) JP4795166B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5218302B2 (en) 2009-07-07 2013-06-26 コニカミノルタビジネステクノロジーズ株式会社 Image processing apparatus, image processing system, image processing method, and image processing program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6374267A (en) * 1986-09-17 1988-04-04 Fujitsu Ltd Image data compression system
JPH01231489A (en) * 1988-03-10 1989-09-14 Nec Corp Coding system of picture signal and its device
JP3237582B2 (en) * 1997-08-28 2001-12-10 富士ゼロックス株式会社 Image processing apparatus and image processing method

Also Published As

Publication number Publication date
JP2008048302A (en) 2008-02-28

Similar Documents

Publication Publication Date Title
JP4854309B2 (en) Data storage control device
JP5523031B2 (en) Image forming apparatus and control method thereof
JP4165706B2 (en) Document reading apparatus and image forming apparatus
US20100103435A1 (en) Image processing apparatus and image processing method for processing screen-processed image
JP4203520B2 (en) Image data processing apparatus, image forming apparatus including the same, image data processing program, and image data processing method
JP3989472B2 (en) Image data processing circuit and image processing apparatus comprising the same
JP4386080B2 (en) Image processing apparatus and program
JP4795166B2 (en) Image compression apparatus, method and program, recording apparatus and method, image decompression apparatus, method and program, and recording medium
JP5643045B2 (en) Method of rearranging print data of a plurality of lines in multi-beam line order used in multi-beam printing engine, image forming apparatus, and medium
JP5264412B2 (en) Image processing apparatus and image processing method
JP2009269341A (en) Apparatus and method for processing image
JP4901692B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP2008023959A (en) Image processor, image processing method and program
JP4674100B2 (en) Image processing device
JP4822052B2 (en) Image forming system, terminal device, and image forming apparatus
CN103576491B (en) Type printer and control method
JP2012147330A (en) Image processing device and image processing method
JP4774914B2 (en) Image processing apparatus and image processing method
JP3712189B2 (en) Multifunction color copier
JP4968172B2 (en) Image information compression processing method, image information compression processing program, and image information compression processing apparatus
JP4056338B2 (en) Image data compression apparatus and method
JP5262882B2 (en) Image processing apparatus and image processing method
JP2020003606A (en) Image formation apparatus
JP2009147820A (en) Image forming device, image forming method, and program
JP2008017196A (en) Image processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090724

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110517

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110524

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110708

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110726

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110727

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140805

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140805

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140805

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees