JP2006246374A - Image compressor, image compression method, and image compression program - Google Patents

Image compressor, image compression method, and image compression program Download PDF

Info

Publication number
JP2006246374A
JP2006246374A JP2005062707A JP2005062707A JP2006246374A JP 2006246374 A JP2006246374 A JP 2006246374A JP 2005062707 A JP2005062707 A JP 2005062707A JP 2005062707 A JP2005062707 A JP 2005062707A JP 2006246374 A JP2006246374 A JP 2006246374A
Authority
JP
Japan
Prior art keywords
rectangular block
colors
compression
type
color
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.)
Granted
Application number
JP2005062707A
Other languages
Japanese (ja)
Other versions
JP4649237B2 (en
Inventor
Shinsho Ri
新肖 李
Tasuku Aoki
翼 青木
Nobuo Shimizu
伸夫 清水
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2005062707A priority Critical patent/JP4649237B2/en
Publication of JP2006246374A publication Critical patent/JP2006246374A/en
Application granted granted Critical
Publication of JP4649237B2 publication Critical patent/JP4649237B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image compression system that can compress image data mixedly containing text, photographs, figures, and the like with high compressibility and without damaging the features of an original image, and causes a small load to a reception terminal whose processing capability is low. <P>SOLUTION: A rectangular block extraction section 12 divides image data for extracting as a plurality of rectangular blocks. A compression mode determination section 13 determines the number of colors for indicating the number of colors contained in each rectangular block and an edge rate for indicating the rate of an edge image. The rectangular blocks are sorted into A type rectangular blocks, where the color number is 1, B type rectangular blocks, where the color number is less than a threshold th1, C type rectangular blocks, where the color number is a threshold th1 or higher and the edge rate is less than the threshold th2, and D type rectangular blocks, where the color number is the threshold th1 or higher and the edge rate is the threshold th2 or higher. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像データを量子化及び符号化してそのデータ量を削減する画像圧縮方法及び画像圧縮装置に関し、特にコンピュータの画面等に表示される、写真、図形、文字等が混在した画像の圧縮に用いて好適な画像圧縮装置、画像圧縮方法及び画像圧縮プログラムに関する。   The present invention relates to an image compression method and an image compression apparatus that quantize and encode image data to reduce the amount of the data, and in particular, compresses an image that is displayed on a computer screen or the like and that includes photographs, figures, characters, and the like. The present invention relates to an image compressing apparatus, an image compressing method, and an image compressing program suitable for use in the above.

画像データの保存、通信の際、そのデータ量を削減するため、画像圧縮技術が一般的に利用されている。画像圧縮が行われることにより、限られた記憶容量を有する端末、例えば携帯電話端末等に画像データを格納したり、伝送レートの低い伝送経路を介して画像データを送信したりすることも可能になる。画像圧縮方式としては様々な方式が提案されており、それぞれに長所・短所があり、画像の性質によって方式を使い分ける必要がある。例えば、JPEGベースラインでは、離散コサイン変換(DCT)等を用いて高周波成分を削減した非可逆的圧縮方式が用いられている。この方式は色数が多く濃度変化が緩やかな写真画像等には好適であるが、高周波成分が削減されるため、図形や文字等のエッジが明確な画像に適用するとエッジがなまってボケた画像となり不適切である。   In order to reduce the amount of data when storing and communicating image data, an image compression technique is generally used. By performing image compression, it is possible to store image data in a terminal having a limited storage capacity, such as a mobile phone terminal, or to transmit image data via a transmission path with a low transmission rate. Become. Various image compression methods have been proposed, each having advantages and disadvantages, and it is necessary to use different methods depending on the nature of the image. For example, the JPEG baseline uses an irreversible compression method in which high-frequency components are reduced using discrete cosine transform (DCT) or the like. This method is suitable for photographic images with a large number of colors and a gradual change in density, but because high-frequency components are reduced, images that are blurred when edges are applied to images with clear edges such as figures and characters. It is inappropriate.

エッジを含む画像の特徴を失わせない画像圧縮の方法として、減色処理も利用されているが(例えば、特許文献1参照)、原画像の色の特徴が毀損される場合も多い。このように、各種の画像圧縮方式にはそれぞれ長所、短所があるため、テキスト、写真、図形等が混在する画像データに単一の画像圧縮方式を適用すると、例えば画像中のある部分は適切にかつ高い圧縮率で圧縮されるが、他の部分は画像の特徴が毀損されたり適当な圧縮率が得られない、といったことが生じやすい。
特開平10−341347号公報
A color reduction process is also used as an image compression method that does not lose the characteristics of an image including an edge (see, for example, Patent Document 1), but the color characteristics of an original image are often damaged. As described above, since various image compression methods have advantages and disadvantages, if a single image compression method is applied to image data in which text, photographs, graphics, etc. are mixed, for example, a certain part in an image is appropriately displayed. In addition, the image is compressed at a high compression rate, but the other portions are likely to have image characteristics deteriorated or an appropriate compression rate cannot be obtained.
JP-A-10-341347

本発明は、テキスト、写真、図形等が混在する画像データを、高い圧縮率で且つ原画像の特徴を毀損することなく圧縮することができ、処理能力の低い受信端末における負荷も少ない画像圧縮装置及び画像圧縮方法を提供することを目的とする。   The present invention is an image compression apparatus capable of compressing image data in which text, photos, graphics, and the like are mixed, at a high compression rate and without damaging the characteristics of the original image, and reducing the load on the receiving terminal with low processing capability. An object of the present invention is to provide an image compression method.

本発明の一の態様に係る画像圧縮装置は、画像データを色に基づいて分割して複数の矩形ブロックとして抽出する矩形ブロック抽出部と、前記矩形ブロックのそれぞれに含まれる色の数を示す色数、及びエッジ画素の割合を示すエッジ率を判定し、前記色数が単数である前記矩形ブロックを第1種矩形ブロック、前記色数が所定値未満である前記矩形ブロックを第2種矩形ブロック、前記色数が所定値以上であって前記エッジ率が所定値未満である前記矩形ブロックを第3種矩形ブロック、前記色数が所定値以上であって前記エッジ率が所定値以上である前記矩形ブロックを第4種矩形ブロックとしてそれぞれ分類する判定部と、前記第2種矩形ブロックの画像データにパレット圧縮を施すパレット圧縮部と、前記第3種矩形ブロックの画像データに非可逆的なデータ圧縮を施す非可逆圧縮符号化部と、前記第4種矩形ブロックの色数に基づいて重要色数を予測し前記第4種矩形ブロックに含まれる色を予測された重要色数まで削減する減色処理を施す減色処理部とを備えたことを特徴とする。   An image compression apparatus according to an aspect of the present invention includes a rectangular block extraction unit that divides image data based on colors and extracts the plurality of rectangular blocks, and a color indicating the number of colors included in each of the rectangular blocks And the edge ratio indicating the ratio of edge pixels is determined, the rectangular block having the single color number is the first type rectangular block, and the rectangular block having the color number less than the predetermined value is the second type rectangular block. The rectangular block whose number of colors is a predetermined value or more and the edge rate is less than a predetermined value is a third type rectangular block, and the number of colors is a predetermined value or more and the edge rate is a predetermined value or more. A determination unit that classifies each rectangular block as a fourth type rectangular block, a palette compression unit that applies palette compression to the image data of the second type rectangular block, and an image of the third type rectangular block An irreversible compression encoding unit that performs irreversible data compression on the data, predicts the number of important colors based on the number of colors of the fourth type rectangular block, and predicts the colors included in the fourth type rectangular block. And a color reduction processing unit that performs color reduction processing to reduce the number of important colors.

本発明の一の態様に係る画像圧縮方法は、画像データを色に基づいて分割して複数の矩形ブロックを抽出するステップと、前記矩形ブロックのそれぞれに含まれる色の数を示す色数、及びエッジ画素の割合を示すエッジ率を判定するステップと、前記色数が単数である前記矩形ブロックを第1種矩形ブロック、前記色数が所定値未満である前記矩形ブロックを第2種矩形ブロック、前記色数が所定値以上であって前記エッジ率が所定値未満である前記矩形ブロックを第3種矩形ブロック、前記色数が所定値以上であって前記エッジ率が所定値以上である前記矩形ブロックを第4種矩形ブロックとしてそれぞれ分類するステップと、前記第2種矩形ブロックの画像データにパレット圧縮を施すステップと、前記第3種矩形ブロックの画像データに非可逆的なデータ圧縮を施すステップと、前記第4種矩形ブロックの色数に基づいて重要色数を予測し前記第4種矩形ブロックに含まれる色を予測された重要色数まで削減する減色処理を施すステップとを備えたことを特徴とするを特徴とする。   An image compression method according to an aspect of the present invention includes a step of dividing image data based on colors to extract a plurality of rectangular blocks, a number of colors indicating the number of colors included in each of the rectangular blocks, and A step of determining an edge rate indicating a ratio of edge pixels; the rectangular block having a single color number is a first type rectangular block; the rectangular block having a color number less than a predetermined value is a second type rectangular block; The rectangular block in which the number of colors is equal to or greater than a predetermined value and the edge rate is less than a predetermined value is a third type rectangular block, and the rectangle in which the number of colors is equal to or greater than a predetermined value and the edge rate is equal to or greater than a predetermined value Classifying each block as a fourth type rectangular block, performing palette compression on the image data of the second type rectangular block, and image data of the third type rectangular block A step of performing irreversible data compression, and a color reduction for predicting the number of important colors based on the number of colors of the fourth type rectangular block and reducing the number of colors included in the fourth type rectangular block to the predicted number of important colors And a step of performing processing.

また、本発明の一の態様に係る画像圧縮プログラムは、上記画像圧縮方法をコンピュータで実行可能に構成されたことを特徴とする。   According to another aspect of the present invention, there is provided an image compression program configured such that the image compression method can be executed by a computer.

また、本発明の別の態様に係る画像圧縮装置は、画像データを色に基づいて分割して複数の矩形ブロックを抽出する矩形ブロック抽出部と、前記矩形ブロックのそれぞれに含まれる色の数を示す色数を求め、前記色数が単数である矩形ブロックを第1矩形ブロック、前記色数が複数である矩形ブロックを第2矩形ブロックとして、少なくとも分類する判定部と、前記第2矩形ブロックについて、その色数および画像のエッジ率に関連した画像圧縮方法を選択的に施す画像圧縮部と、を備えたことを特徴とする。   An image compression apparatus according to another aspect of the present invention includes a rectangular block extraction unit that divides image data based on colors and extracts a plurality of rectangular blocks, and the number of colors included in each of the rectangular blocks. A determination unit that at least classifies a rectangular block having a single number of colors as a first rectangular block, a rectangular block having a plurality of colors as a second rectangular block, and the second rectangular block; An image compression unit that selectively performs an image compression method related to the number of colors and the edge rate of the image.

この発明によれば、テキスト、写真、図形等が混在する画像データを、高い圧縮率で且つ原画像の特徴を毀損することなく圧縮することができ、処理能力の低い受信端末における負荷も少ない画像圧縮装置及び画像圧縮方法を提供することができる。   According to the present invention, image data in which text, photographs, graphics, and the like are mixed can be compressed with a high compression rate and without damaging the characteristics of the original image, and an image with low load on a receiving terminal with low processing capability. A compression device and an image compression method can be provided.

次に、本発明の実施の形態に係る画像圧縮装置を、図面を参照して詳細に説明する。   Next, an image compression apparatus according to an embodiment of the present invention will be described in detail with reference to the drawings.

[第一の実施の形態] 本発明の第一の実施の形態に係る画像圧縮装置の全体構成を、図1のブロック図を参照して説明する。この画像圧縮装置は、図1のブロック図に示すように、カラー画像入力装置11、矩形ブロック抽出部12、圧縮モード判定部13、非可逆符号化部14、重要色数予測部15、減色処理部16、パレット圧縮部17、ブロックグループ化部18、可逆符号化部19及びデータシャッフル部20とから構成され、これら構成要素はコンピュータとコンピュータプログラムによっても実現可能である。カラー画像中の各部分に関して最適な圧縮形式が、複数の圧縮形式の中から判定され、異なる圧縮方式が各部分に適用される構成とされている。以下、各要素について説明する。   First Embodiment The overall configuration of an image compression apparatus according to a first embodiment of the present invention will be described with reference to the block diagram of FIG. As shown in the block diagram of FIG. 1, the image compression apparatus includes a color image input device 11, a rectangular block extraction unit 12, a compression mode determination unit 13, an irreversible encoding unit 14, an important color number prediction unit 15, a color reduction process, and the like. 16, a palette compression unit 17, a block grouping unit 18, a lossless encoding unit 19, and a data shuffle unit 20, and these components can be realized by a computer and a computer program. The optimum compression format for each part in the color image is determined from a plurality of compression formats, and a different compression method is applied to each part. Hereinafter, each element will be described.

カラー画像入力装置11は、圧縮前の原画像であるカラー画像、例えばRGB3色を各8ビットで表現した1677万色のフルカラー画像等を入力するための装置であり、例えば、スキャナ等である。RGB系でなく、LUV系、HSV系で表現された画像でも構わない。   The color image input device 11 is a device for inputting a color image, which is an original image before compression, for example, a 16.77 million full color image in which 3 colors of RGB are expressed by 8 bits each, and is, for example, a scanner. An image expressed in the LUV system or the HSV system instead of the RGB system may be used.

矩形ブロック抽出部12は、入力されたカラー画像の中の部分画像を、その性質に応じた矩形ブロックに分割して抽出する機能を有するものである。コンピュータ画面は、例えば図2に示すように、文字、アイコン等の図形、写真等の部分画像が混在的に表示され、これらの隙間に単色の領域も存在する。この実施の形態での矩形ブロック抽出部12は、これらの部分画像を、単色矩形ブロックと、そうでない矩形ブロック(標記矩形ブロック)とに分割して抽出するものであるが、これに限定されるものではなく、分割の手法は発明の趣旨を逸脱しない範囲で様々に変更が可能である。   The rectangular block extraction unit 12 has a function of extracting a partial image in the input color image by dividing it into rectangular blocks according to the properties thereof. For example, as shown in FIG. 2, the computer screen displays a graphic image such as a character, an icon, or a partial image such as a photograph, and a monochromatic area also exists in the gap. The rectangular block extracting unit 12 in this embodiment extracts these partial images by dividing them into a single-color rectangular block and a rectangular block (noted rectangular block) that is not, but is limited to this. However, the dividing method can be variously changed without departing from the gist of the invention.

圧縮モード判定部13は、抽出された複数の矩形ブロックに適した圧縮方式を、含まれる色の色数Nc、及びエッジ画像の割合を示すエッジ率Ehに基づいて判定するものである。この実施の形態では、単色矩形ブロックをタイプA矩形ブロックと判定する。タイプAブロックは、単色のカラー値、矩形ブロックのサイズと位置だけで表現することができ、圧縮操作は不要である。   The compression mode determination unit 13 determines a compression method suitable for the plurality of extracted rectangular blocks based on the number Nc of colors included and the edge rate Eh indicating the ratio of edge images. In this embodiment, the monochromatic rectangular block is determined as a type A rectangular block. A type A block can be expressed only by a single color value and the size and position of a rectangular block, and does not require a compression operation.

一方、標記矩形ブロックは、色数Ncが閾値th1(ここではth1=8とする)より大きいか否か、エッジ率Ehが閾値th2より大きいか否かで、タイプB、C、Dと判定される。すなわち、標記矩形ブロックのうち、色数Ncが閾値th1(ここでは、th1=8と推奨する)より小さい矩形ブロックは、タイプB矩形ブロックと判定される。標記矩形ブロックのうち、色数Ncが閾値th1以上で、エッジ率Ehが閾値th2未満である矩形ブロックは、タイプC矩形ブロックと判定される。タイプC矩形ブロックは、典型的には写真画像であるが、これに限るものではない。標記矩形ブロックのうち、色数Ncがth1以上で、エッジ率Ehが閾値th2以上であるブロックは、タイプD矩形ブロックとして分類される。タイプDブロックは、典型的には多数色でエッジを明確に描かれたアイコン等の画像であるが、これに限るものではない。   On the other hand, the title rectangular block is determined as type B, C, or D depending on whether the number of colors Nc is larger than a threshold th1 (here, th1 = 8) and whether the edge rate Eh is larger than a threshold th2. The That is, a rectangular block whose number of colors Nc is smaller than a threshold th1 (here, th1 = 8 is recommended) among the title rectangular blocks is determined as a type B rectangular block. Among the title rectangular blocks, rectangular blocks having the number of colors Nc equal to or greater than the threshold th1 and the edge rate Eh less than the threshold th2 are determined to be type C rectangular blocks. The type C rectangular block is typically a photographic image, but is not limited thereto. Among the title rectangular blocks, blocks whose color number Nc is equal to or greater than th1 and whose edge rate Eh is equal to or greater than the threshold th2 are classified as type D rectangular blocks. The type D block is typically an image such as an icon in which edges are clearly drawn in many colors, but is not limited thereto.

非可逆符号化部14は、タイプA〜Dのうち、タイプC矩形ブロックの圧縮を行うためのものであり、画質の部分的損失を伴う圧縮方式により、高い圧縮率を担保するものである。ここでの圧縮方式の一例は、画像データを種々の周波数成分の和に変換・符号化して高周波成分を削減し、相関性の高い低周波成分のみを符号化する離散コサイン変換(DCT)であるが、これに限定されるものではない。   The lossy encoding unit 14 is for compressing a type C rectangular block among the types A to D, and guarantees a high compression rate by a compression method with a partial loss of image quality. An example of the compression method here is a discrete cosine transform (DCT) that converts and encodes image data into a sum of various frequency components to reduce high-frequency components and encodes only low-frequency components with high correlation. However, the present invention is not limited to this.

重要色数予測部15は、タイプA〜Dのうち、タイプD矩形ブロックの圧縮を行うためのものであり、減色処理部16による減色処理の前処理を行うものである。すなわち、重要色数予測部15は、タイプD矩形ブロック中の実際に含まれる色の色数Ncのうち重要と思われる色の色数(予測重要色数)Nicを予測するものである。減色処理部16は、重要色数予測部15で予測された予測重要色数Nicに基づいてタイプD矩形ブロックの減色処理を実行する機能を有する。具体的には、タイプD矩形ブロック中に含まれる色の中から、所定の基準に基づいて予測重要色数Nicの数だけ重要色を選択すると共に、重要色でない画素に対しては、選ばれたNic個の重要色のうち最も近い色の画素に置き換える処理を行う。   The important color number prediction unit 15 is for compressing the type D rectangular block among the types A to D, and performs preprocessing of the color reduction processing by the color reduction processing unit 16. In other words, the important color number prediction unit 15 predicts the number of colors that are considered to be important (predicted important color number) Nic among the color numbers Nc of the colors actually included in the type D rectangular block. The color reduction processing unit 16 has a function of executing color reduction processing of a type D rectangular block based on the predicted important color number Nic predicted by the important color number prediction unit 15. Specifically, important colors are selected from the colors included in the type D rectangular block by the number of predicted important colors Nic based on a predetermined criterion, and are selected for pixels that are not important colors. Then, a process of replacing the pixel with the closest color among the Nic important colors is performed.

パレット圧縮部17は、タイプA〜Dのうち、タイプB矩形ブロックの圧縮に対しパレット圧縮を施す機能を有する。すなわち、パレット圧縮部17は、タイプB矩形ブロックに含まれる色の数に対応するパレットを用意し、各パレットを特定するための番号と、各色を示すカラー値とが対応付けて記憶するものである。色数Ncが例えば8未満と少ない場合には、情報の削減をすることなく大きな圧縮率が得られる。また、この実施の形態では、パレットデータの作成の際、各パレットを画素数の多い順に整列させる。この整列を行うことにより、複数の矩形ブロックの関連性を高めることができ、後に行われるブロックグループ化の工程において、圧縮率を更に向上させることが可能となる。   The palette compression unit 17 has a function of performing palette compression on the compression of the type B rectangular block among the types A to D. That is, the palette compressing unit 17 prepares a palette corresponding to the number of colors included in the type B rectangular block, and stores a number for specifying each palette and a color value indicating each color in association with each other. is there. When the number of colors Nc is as small as less than 8, for example, a large compression rate can be obtained without reducing information. In this embodiment, when creating palette data, the palettes are arranged in descending order of the number of pixels. By performing this alignment, the relevance of a plurality of rectangular blocks can be increased, and the compression rate can be further improved in the block grouping process to be performed later.

ブロックグループ化部18は、減色処理部16による減色処理後のタイプD矩形ブロックと、パレット圧縮部17によるパレット圧縮後のタイプB矩形ブロックとを、同様の色数を有するブロックごとにグループ化する機能を有するものである。また、可逆符号化部19は、このグループ化された矩形ブロックに対し、可逆的符号化方式を適用して圧縮率を更に高める機能を有するものである。ここでいう可逆的符号化方式は、画像の冗長度を抑圧して情報量を削減するものであり、例えばランレングス符号化、ハフマン符号化、LZW、JBIG、MMR等が考えられるが、これに限るものではない。   The block grouping unit 18 groups the type D rectangular block after the color reduction processing by the color reduction processing unit 16 and the type B rectangular block after the palette compression by the palette compression unit 17 for each block having the same number of colors. It has a function. The lossless encoding unit 19 has a function of further increasing the compression rate by applying a lossless encoding method to the grouped rectangular blocks. The lossless encoding method here is a method for reducing the amount of information by suppressing the redundancy of the image. For example, run-length encoding, Huffman encoding, LZW, JBIG, MMR, etc. can be considered. It is not limited.

データシャッフル部20は、タイプA矩形ブロック、及び圧縮処理されたタイプB〜D矩形ブロックを示すデータを、通信回路での通信及び記憶媒体でのデータ格納に適したデータ構造に変換する機能を有する。タイプA矩形ブロックは、前述のように、圧縮操作を施されることなく、データシャッフル部20に直接入力されている。   The data shuffle unit 20 has a function of converting data indicating a type A rectangular block and compressed type B to D rectangular blocks into a data structure suitable for communication in a communication circuit and data storage in a storage medium. . As described above, the type A rectangular block is directly input to the data shuffle unit 20 without being subjected to a compression operation.

このように、本実施の形態では、タイプA〜D矩形ブロックのうち、タイプD矩形ブロックについては、予測重要色数に基づく減色処理が行われる。離散コサイン変換などの画像圧縮方法においては、画像圧縮を行う送信端末と、画像を復号化する受信端末とにおいて同様の計算処理が必要とされる。このため、圧縮符号化を行う送信側端末において圧縮率を高めるため圧縮符号化処理を複雑にすると、その分伸長復号化を行う受信端末においても、復号化のための複雑なデータ処理が必要となる。携帯電話端末などの処理能力が小さい端末に画像データを送信する場合においては、処理能力に限界があるため、複雑な圧縮処理を施した画像データを復号化することは困難である。   As described above, in the present embodiment, among the type A to D rectangular blocks, the color reduction processing based on the predicted number of important colors is performed for the type D rectangular block. In an image compression method such as discrete cosine transform, similar calculation processing is required in a transmission terminal that performs image compression and a reception terminal that decodes an image. For this reason, if the compression encoding process is complicated in order to increase the compression rate at the transmission side terminal that performs compression encoding, the reception terminal that performs decompression decoding accordingly requires complicated data processing for decoding. Become. In a case where image data is transmitted to a terminal having a small processing capability such as a mobile phone terminal, it is difficult to decode the image data subjected to a complicated compression process because the processing capability is limited.

本実施の形態においては、タイプD矩形ブロックについて実行される減色処理が非対称処理であって、データ伸長を行う受信端末側での処理(逆量子化等)が不要である。この分、データ伸長側の受信端末における負荷が軽減されている。   In the present embodiment, the color reduction processing executed for the type D rectangular block is asymmetric processing, and processing on the receiving terminal side that performs data decompression (such as inverse quantization) is unnecessary. Accordingly, the load on the receiving terminal on the data decompression side is reduced.

[矩形ブロック抽出] 次に、図1に示す各部の作用を説明する。まず、矩形ブロック抽出部12の作用を、図3のフローチャートを参照して説明する。矩形ブロック抽出部12による矩形ブロックの抽出は、最初に単色矩形ブロック(後にタイプA矩形ブロックと特定されるブロックである)を最大限抽出し(S11〜S14)、残った部分を、単色でない、何らかの図形、文字、模様、写真等が標記されている「標記矩形ブロック」(後にタイプB、C又はD矩形ブロックと特定される)として抽出されることにより行われる。   [Rectangular Block Extraction] Next, the operation of each unit shown in FIG. 1 will be described. First, the operation of the rectangular block extraction unit 12 will be described with reference to the flowchart of FIG. The rectangular block extraction by the rectangular block extraction unit 12 first extracts a single-color rectangular block (which will be identified later as a type A rectangular block) to the maximum (S11 to S14), and the remaining portion is not a single color. This is performed by extracting as a “marked rectangular block” (later specified as a type B, C, or D rectangular block) in which some figure, character, pattern, photograph or the like is marked.

単色矩形ブロック抽出の手順を説明する。原画像のコンピュータ画面に対して左上から右下へジグザグスキャンを開始し(S11)、16×16ドットの最小単色矩形ブロックを探す(S12)。16×16ドットの最小単色矩形ブロックを見つけたら(S12のYES)、上下左右の四つの方向に1行/列ずつ最大限まで拡張する(S13)。ここで「最大限」としているのは、単色でない領域の境界の近傍まで単色矩形ブロックを拡張し、データ圧縮率を高める趣旨である。拡張の手順としては、3つの方法が考えられる。一つ目の方法は、図4Aに示すような単色領域があった場合に、図4Bに示すように、最小単色矩形ブロックをまず左右方向に最大限まで拡張してから、続いて上下に最大限まで拡張する方法である。二つ目の方法は、図4Cに示すように、上下方向に最大限まで拡張してから、続いて左右方向に最大限まで拡張する方法である。三つ目の方法は、図4Dに示すように、左右方向と上下方向を交互に最大限まで拡張する方法である。   A procedure for extracting a monochrome rectangular block will be described. A zigzag scan is started from the upper left to the lower right with respect to the computer screen of the original image (S11), and a minimum single color rectangular block of 16 × 16 dots is searched (S12). When a 16 × 16 dot minimum single-color rectangular block is found (YES in S12), it is expanded to the maximum by one row / column in four directions, up, down, left, and right (S13). Here, “maximum” is intended to increase the data compression rate by extending the monochrome rectangular block to the vicinity of the boundary of the non-monochromatic region. There are three possible methods for expansion. In the first method, when there is a monochromatic area as shown in FIG. 4A, as shown in FIG. 4B, the minimum monochromatic rectangular block is first expanded to the maximum in the left-right direction, and then the maximum up and down. It is a method of extending to the limit. As shown in FIG. 4C, the second method is a method in which the image is expanded up to the maximum in the vertical direction and then expanded in the horizontal direction to the maximum. As shown in FIG. 4D, the third method is a method in which the horizontal direction and the vertical direction are alternately expanded to the maximum.

引き出された単色矩形ブロックの部分は矩形ブロック抽出の処理済み領域とする(S14)。単色矩形ブロックをすべて切り出し、新たな16×16ドットの最小単色矩形ブロックが見つからなくなったら(S12のNO)、単色矩形ブロックの抽出ステップは終了し、単色矩形ブロックで分断された残りの領域は、分断された領域毎に標記矩形ブロックとして抽出されることとなる(S15)。   The portion of the single color rectangular block that has been extracted is set as a processed area of rectangular block extraction (S14). When all the single color rectangular blocks are cut out and no new 16 × 16 dot minimum single color rectangular block is found (NO in S12), the extraction step of the single color rectangular block ends, and the remaining area divided by the single color rectangular block is Each divided area is extracted as a title rectangular block (S15).

なお、上記の例では最小単色矩形ブロックのサイズを16×16ドットと説明したが、これに限られるものではない。ただし、この最小単色矩形ブロックのサイズが原画像に含まれる文字の行間距離、文字間距離より小さくなると、画面の分割が多すぎることになり、逆に総圧縮率が低くなる可能性がある。従って、最小単色矩形ブロックの大きさは、テキスト文字のサイズを目安にして設定するのが好ましい。また、単色矩形ブロックの拡張は1行1列ずつ行うようにしてもよいが、処理のスピードを高めるために、複数行/列ずつ拡張するようにしてもよい。   In the above example, the size of the minimum single-color rectangular block has been described as 16 × 16 dots. However, the present invention is not limited to this. However, if the size of the minimum single-color rectangular block is smaller than the inter-character distance and inter-character distance of the characters included in the original image, the screen is divided too much, and conversely, the total compression rate may be lowered. Therefore, the size of the minimum single-color rectangular block is preferably set with the text character size as a guide. Further, the expansion of the monochromatic rectangular block may be performed for each row and column, but may be performed for a plurality of rows / columns in order to increase the processing speed.

続いて、単色矩形ブロック以外の残りの部分である標記矩形ブロックをジグザグスキャンして標記矩形ブロックの画素を探し(S16)、画素が見つかったら、画像の最後に達しない限り(S17のNO)この画素を含む領域を、単色矩形ブロックの拡張の場合と同様に、上下左右の4方向に1行/1列ずつ(又は複数行/列ずつ)最大限まで拡張していく(S18)。拡張が終了したら、この拡張した領域を標記矩形ブロックとして処理済みとする(S19)。画像の最後に達した場合には(S17のYES)、すべての領域が単色矩形ブロック又は標記矩形ブロックとして処理されたとして抽出処理を終了する(S20)。   Subsequently, the remaining rectangular block other than the monochrome rectangular block is zigzag scanned to search for the pixel of the rectangular block (S16). If a pixel is found, unless it reaches the end of the image (NO in S17), As in the case of the expansion of the monochrome rectangular block, the region including the pixels is expanded to the maximum by one row / one column (or by a plurality of rows / columns) in four directions, up, down, left, and right (S18). When the expansion is completed, it is assumed that the expanded area has been processed as a title rectangular block (S19). If the end of the image has been reached (YES at S17), the extraction process is terminated (S20), assuming that all areas have been processed as single-color rectangular blocks or marked rectangular blocks.

[圧縮モード判定] 次に、圧縮モード判定部13の作用を、図5のフローチャートを参照して説明する。矩形ブロックの抽出が矩形ブロック抽出部12によって完了すると(S21)、圧縮モード判定部13は、各矩形ブロックの色数Ncをカウントする(S22)。色数Ncが1である場合、すなわち矩形ブロックが単色矩形ブロックである場合、その矩形ブロックはタイプA矩形ブロックと判定される(S23、S24)。色数Ncが1より大きく、閾値th1よりも小さい場合には(S25のYES)、その矩形ブロックはタイプBブロックと判定される(S26)。色数Ncが閾値th1以上である場合には(S25のNO)、その矩形ブロックの水平・垂直方向のエッジ率Ehが計算される(S27)。水平方向、垂直方向いずれかのエッジ率Ehが閾値th2よりも小さい場合(S28のYES)、その矩形ブロックはタイプCブロックと判定される(S29)。エッジ率Ehが閾値th2以上である場合(S28のNO)、その矩形ブロックはタイプDブロックと判定される(S30)。   [Compression Mode Determination] Next, the operation of the compression mode determination unit 13 will be described with reference to the flowchart of FIG. When the rectangular block extraction is completed by the rectangular block extraction unit 12 (S21), the compression mode determination unit 13 counts the number of colors Nc of each rectangular block (S22). When the number of colors Nc is 1, that is, when the rectangular block is a monochromatic rectangular block, the rectangular block is determined as a type A rectangular block (S23, S24). When the number of colors Nc is larger than 1 and smaller than the threshold th1 (YES in S25), the rectangular block is determined as a type B block (S26). When the number of colors Nc is equal to or greater than the threshold th1 (NO in S25), the edge ratio Eh in the horizontal and vertical directions of the rectangular block is calculated (S27). When the edge rate Eh in either the horizontal direction or the vertical direction is smaller than the threshold th2 (YES in S28), the rectangular block is determined as a type C block (S29). When the edge rate Eh is equal to or greater than the threshold th2 (NO in S28), the rectangular block is determined as a type D block (S30).

S27のエッジ率の計算の一例を、図6を参照して説明する。矩形ブロック内の画像を3×3の画素群に分けて、3×3画素群内の9個の画素の各々が、エッジに属する画素か、そうでない画素かを判定する。判定は、各画素のカラー値と隣接する画素のカラー値の差分に基づいて行うことができる。そして、エッジに属する画素の数が設定数より大きい(例えば3)は、その3×3画素群全体をエッジ領域と判定し、所定数未満である場合には3×3画素群全体を非エッジ領域と判定する。このようにして、矩形ブロック内のすべての3×3画素群について上記の判定を行い、エッジ領域と判定された3×3画素群の割合をエッジ率Ehとして算出する。   An example of the calculation of the edge rate in S27 will be described with reference to FIG. The image in the rectangular block is divided into 3 × 3 pixel groups, and it is determined whether each of the nine pixels in the 3 × 3 pixel group belongs to an edge or not. The determination can be made based on the difference between the color value of each pixel and the color value of an adjacent pixel. If the number of pixels belonging to the edge is larger than the set number (for example, 3), the entire 3 × 3 pixel group is determined as an edge region, and if it is less than the predetermined number, the entire 3 × 3 pixel group is determined as a non-edge. It is determined as an area. In this way, the above determination is performed for all the 3 × 3 pixel groups in the rectangular block, and the ratio of the 3 × 3 pixel groups determined to be edge regions is calculated as the edge rate Eh.

[圧縮符号化処理] このようにしてタイプA〜D矩形ブロックへの分類がなされると、そのタイプに適した圧縮符号化処理が各ブロックに対して施される。非可逆符号化部14は、例えばJPEGベースライン方式で用いられる離散コサイン変換(DCT)を実行し、DCT係数を量子化し、これをエントロピー符号化することにより非可逆符号化を実行して、タイプC矩形ブロックの画像を圧縮符号化する。タイプC矩形ブロックは、色数Ncが閾値th1以上であるがエッジ率Ehは閾値th2未満であるので、DCT等によって高周波成分が削減されても、画質の低下は見た目上は小さいものとなる。   [Compression encoding processing] When classification into type A to D rectangular blocks is performed in this way, compression encoding processing suitable for the type is performed on each block. The lossy encoding unit 14 performs discrete cosine transform (DCT) used in, for example, the JPEG baseline method, quantizes the DCT coefficient, performs entropy encoding, and performs lossy encoding. The image of the C rectangular block is compression encoded. In the type C rectangular block, the number of colors Nc is greater than or equal to the threshold th1, but the edge rate Eh is less than the threshold th2. Therefore, even if the high frequency component is reduced by DCT or the like, the degradation in image quality is small.

パレット圧縮部17は、公知のパレット圧縮を用いて、タイプB矩形ブロックの画像データを圧縮符号化する。タイプB矩形ブロックは、例えば色数Ncが8未満のブロックであるので、高い圧縮率を得ることができる。   The palette compressing unit 17 compresses and encodes the image data of the type B rectangular block using a known palette compression. Since the type B rectangular block is, for example, a block having a color number Nc of less than 8, a high compression rate can be obtained.

[重要色数予測] タイプD矩形ブロックに対して、減色処理部16による減色処理の前段階として重要色数予測部15により実行される予測重要色数の予測手順の一例について、図7を参照して説明する。この例の重要色数予測部15は、実際に矩形ブロック中に含まれる色の色数Ncと、予測重要色数Nicとの対応関係(図7)を示すルックアップテーブル(図示せず)を備え、これを参照して予測重要色数Nicを決定する。重要色数予測の基本的な考え方は、矩形ブロックに実際に含まれる色数Ncが多い場合には少ない場合に比べて減色の割合(減色処理後の色数の、減色処理前に実際に含まれていた色の色数に対する比率)を高くすることができる、ということである。このため、本例では、図7に示すように、色数Ncが閾値th1以上N2未満である場合には、グラフの傾きk1を大きくして、減色の割合を小さくする。一方、色数NcがN2以上N3未満の場合には、傾きk2をk1よりも小さくして、減色の割合を若干高くする。色数Ncが多い分、減色の割合を高くしても、原画像の特徴が失われにくいと考えられるからである。そして、色数NcがN3以上である場合には、傾きをゼロとし、予測重要色数Nicに上限を設定する。色数Ncが閾値th1未満である場合には、タイプA又はタイプB矩形ブロックと判定されるので、重要色数予測の対象とはならない。なお、図7では、グラフが折れ線となっているものを示したが、これに限定されるものではなく、階段状のグラフや、傾きが自然曲線状に変化するグラフであってもよい。   [Important Color Number Prediction] Refer to FIG. 7 for an example of the prediction important color number prediction procedure executed by the important color number prediction unit 15 as a pre-stage of the color reduction processing by the color reduction processing unit 16 for the type D rectangular block. To explain. The important color number prediction unit 15 in this example uses a look-up table (not shown) indicating the correspondence (FIG. 7) between the color number Nc of the colors actually included in the rectangular block and the predicted important color number Nic. The number of predicted important colors Nic is determined with reference to this. The basic concept of predicting the number of important colors is that when the number of colors Nc actually included in the rectangular block is large, the ratio of color reduction (the number of colors after color reduction processing is actually included before color reduction processing) The ratio of the number of colors to the number of colors) can be increased. Therefore, in this example, as shown in FIG. 7, when the number of colors Nc is greater than or equal to the threshold th1 and less than N2, the graph slope k1 is increased to reduce the color reduction ratio. On the other hand, when the number of colors Nc is greater than or equal to N2 and less than N3, the slope k2 is made smaller than k1 to slightly increase the rate of color reduction. This is because, since the number of colors Nc is large, it is considered that the characteristics of the original image are hardly lost even if the color reduction ratio is increased. If the number of colors Nc is equal to or greater than N3, the gradient is set to zero and an upper limit is set for the predicted important number of colors Nic. When the number of colors Nc is less than the threshold th1, it is determined as a type A or type B rectangular block, and thus is not a target for predicting the number of important colors. In FIG. 7, the graph is shown as a polygonal line, but the graph is not limited to this, and may be a stepped graph or a graph in which the slope changes to a natural curve.

[減色処理] 次に、減色処理部16による減色処理の手順を、図8のフローチャートを参照して説明する。予測重要色数Nicが決定されると(S31)、まず、減色処理部16は、実際にタイプD矩形ブロック内に含まれる各色の画素数を縦軸に示すヒストグラム(図9)を作成した後、このヒストグラムを、出力された予測重要色数Nicの数に等しい数の色区間セルに区分する(S32)。ここでは、出力された予測重要色数Nicが3であるとして、A、C、及びDの3つの色区間セルに区分するものとする。最初に、ヒストグラムの形状の特徴に基づき、AセルとBセルに区分し、さらにBセルをCセルとDセルとの2つに区分することにより、予測重要色数Nicに等しい数(3つ)の色区間セルA、C、及びDを得る。   [Color Reduction Processing] Next, the procedure of color reduction processing by the color reduction processing unit 16 will be described with reference to the flowchart of FIG. When the predicted important color number Nic is determined (S31), the color reduction processing unit 16 first creates a histogram (FIG. 9) that shows the number of pixels of each color actually included in the type D rectangular block on the vertical axis. Then, this histogram is divided into a number of color interval cells equal to the number of predicted important color numbers Nic output (S32). Here, it is assumed that the number of predicted important colors Nic output is 3, and the cells are divided into three color interval cells A, C, and D. First, based on the characteristics of the shape of the histogram, by dividing into A cell and B cell, and further dividing B cell into two, C cell and D cell, a number equal to the predicted important color number Nic (three ) Color interval cells A, C, and D.

次に、色区間セルA、C、及びDを、画素数の大きい順に整列させて、セル番号を付与する(S33)。ここでは、A、C、及びDの順に画素数が多いため、{A、C、D}=(0、1、2)とセル番号を付与する(図10)。この整列を行うことにより、複数の矩形ブロックの関連性を高めることができ、後に行われるブロックグループ化の工程において、圧縮率を更に向上させることが可能となる。   Next, the color interval cells A, C, and D are arranged in descending order of the number of pixels, and cell numbers are assigned (S33). Here, since the number of pixels increases in the order of A, C, and D, {A, C, D} = (0, 1, 2) and a cell number are assigned (FIG. 10). By performing this alignment, the relevance of a plurality of rectangular blocks can be increased, and the compression rate can be further improved in the block grouping process to be performed later.

続いて、各色区間セルA、C、及びD内のカラーの平均値を計算する(S34)。セル番号と、計算された各色区間セルA、C、及びDのカラーの平均値を関連付けたパレットデータを作成し、このパレットデータを元に、各画素のカラー値を変換する(S35)ことで、減色処理が行われる。減色処理されたタイプD矩形ブロックのデータと、パレット圧縮されたタイプB矩形ブロックのデータとは、フォーマットが同一であるため、次段のブロックグループ化部18によりグループ化される。なお、図9のヒストグラムは、カラー区間を一次元で説明したが、RGB区間など多次元の色区間で表現する場合にも同様のアルゴリズムを適応できる。   Subsequently, the average value of the colors in the color section cells A, C, and D is calculated (S34). Pallet data that associates the cell number with the calculated average color values of the color section cells A, C, and D is created, and the color value of each pixel is converted based on this palette data (S35). Then, a color reduction process is performed. Since the format-reduced type D rectangular block data and the palette-compressed type B rectangular block data have the same format, they are grouped by the block grouping unit 18 in the next stage. In the histogram of FIG. 9, the color section is described in one dimension, but the same algorithm can be applied to the case where the color section is expressed by a multidimensional color section such as an RGB section.

[ブロックグループ化] 次に、ブロックグループ化部18により実行されるブロックグループ化について、図11及び12を参照して説明する。ここにいうブロックグループ化は、減色処理部16による減色処理又はパレット圧縮部17によるパレット圧縮を受けたタイプB又はD矩形ブロックのうち、含まれる色の色数等の特徴が略同じである矩形ブロックのデータ同士を束ねて、データ圧縮を行うものである。例えば、図11に示すように、2色矩形ブロック1〜3を1つのグループに束ねると共に、4色矩形ブロック1,2を1つのグループに束ねることができる。   [Block Grouping] Next, block grouping executed by the block grouping unit 18 will be described with reference to FIGS. 11 and 12. The block grouping referred to here is a rectangle having substantially the same characteristics such as the number of colors in the type B or D rectangular blocks subjected to the color reduction processing by the color reduction processing unit 16 or the palette compression by the palette compression unit 17. Data is compressed by bundling block data. For example, as shown in FIG. 11, two-color rectangular blocks 1 to 3 can be bundled into one group, and four-color rectangular blocks 1 and 2 can be bundled into one group.

図12はブロックグループ化で矩形ブロックを四つのグループ(G1〜G4)に区分する場合の例を示す。2色矩形ブロックは1ビット/ピクセルで表示できるため、一つのグループG1に分ける。色数3〜N1の矩形ブロックはグループG2に、色数N1+1〜N2の矩形ブロックはグループG3に、色数N2+1以上の矩形ブロックはグループG4に分ける。たとえば、N1=4、N2=16にすれば、グループG2はデータを2ビット/ピクセルで、グループG3はデータを4ビット/ピクセルでそれぞれ表示させることができる。   FIG. 12 shows an example of dividing a rectangular block into four groups (G1 to G4) by block grouping. Since the two-color rectangular block can be displayed at 1 bit / pixel, it is divided into one group G1. Rectangular blocks with 3 to N1 colors are divided into group G2, rectangular blocks with N1 + 1 to N2 colors are divided into group G3, and rectangular blocks with N2 + 1 or more colors are divided into group G4. For example, if N1 = 4 and N2 = 16, the group G2 can display data at 2 bits / pixel and the group G3 can display data at 4 bits / pixel.

前述したように、タイプB矩形ブロックのパレット圧縮で得られたパレットデータはカラーの対応する画素数の大きい順に整列させ、タイプD矩形ブロックも同様である。このため、タイプB矩形ブロック、タイプD矩形ブロックは、同じフォーマットのデータをとるので、カラー値が共通するのであれば、同一のグループに分類することが可能である。この整列を行うことにより、画素数の多い色を同じパレットに束ねることができ、圧縮率を高めることができる。タイプA矩形ブロック、及びタイプC矩形ブロックは、ブロックグループ化部20によるグループ化の対象ではないが、それぞれグループG0、G5に分類される(図12参照)。なお、図12でブロックグループ化において矩形ブロックを四つのグループに分けると説明したが、たとえば、グループを少なめに分ける、または、グループをさらに多く分けるなどの形態も可能である。   As described above, the palette data obtained by palette compression of the type B rectangular block is arranged in descending order of the number of pixels corresponding to the color, and the type D rectangular block is the same. For this reason, since the type B rectangular block and the type D rectangular block take data of the same format, they can be classified into the same group as long as the color values are common. By performing this alignment, colors with a large number of pixels can be bundled in the same palette, and the compression rate can be increased. The type A rectangular block and the type C rectangular block are not subject to grouping by the block grouping unit 20, but are classified into groups G0 and G5, respectively (see FIG. 12). In FIG. 12, it has been described that the rectangular blocks are divided into four groups in the block grouping. However, for example, it is possible to divide the groups into smaller groups, or to divide the groups into more groups.

[データシャッフル] 次に、データシャッフル部20によるデータシャッフルの工程を、図13を参照して説明する。ここでは、ブロックグループ化部20等によりグループ化されたグループG0〜G5のデータを順に整列させたデータ構造を採用している。グループG0〜G5には、区分用マック、矩形ブロック数(Num)の他、各矩形ブロックのサイズ、画像中の位置、パレット列、圧縮データなどが含まれている。   [Data Shuffle] Next, the data shuffling process by the data shuffle unit 20 will be described with reference to FIG. Here, a data structure is used in which the data of the groups G0 to G5 grouped by the block grouping unit 20 and the like are sequentially arranged. The groups G0 to G5 include the size of each rectangular block, the position in the image, the palette row, the compressed data, and the like in addition to the sorting mac and the number of rectangular blocks (Num).

グループG0(図13の(b))は単色矩形ブロックであるタイプA矩形ブロックのグループである。「カラー列」は、各タイプA矩形ブロックの色情報を示すデータ列である。カラー列のデータ数は矩形ブロック数Numに等しい。グループG1(図13の(c))はタイプB、又はD矩形ブロックを減色処理又はパレット圧縮した結果としての2色矩形ブロックのグループであり、図13の(c)の圧縮サイズと圧縮データはグループG1内すべての矩形ブロックのパレット化データを束ねて圧縮したものである。グループG2〜G4は、タイプB、又はD矩形ブロックを減色処理又はパレット圧縮した結果としての3〜N1色矩形ブロック、N1+1〜N2色矩形ブロック、N2+1色以上の色矩形ブロックのグループである。データ構造は、いずれも図13の(d)に示す通りである。G2〜G4は、矩形ブロックごとの色数の特定のため、色数データを矩形ブロックごとに有している。   The group G0 ((b) in FIG. 13) is a group of type A rectangular blocks which are monochromatic rectangular blocks. The “color column” is a data column indicating color information of each type A rectangular block. The number of data in the color column is equal to the number of rectangular blocks Num. The group G1 ((c) in FIG. 13) is a group of two-color rectangular blocks as a result of color reduction processing or palette compression of a type B or D rectangular block. The compressed size and compressed data in (c) of FIG. The palletized data of all rectangular blocks in the group G1 are bundled and compressed. The groups G2 to G4 are groups of 3 to N1 color rectangular blocks, N1 + 1 to N2 color rectangular blocks, and N2 + 1 or more color rectangular blocks as a result of color reduction processing or palette compression of the type B or D rectangular blocks. The data structure is as shown in (d) of FIG. G2 to G4 have color number data for each rectangular block in order to specify the number of colors for each rectangular block.

G5は、タイプC矩形ブロックに対し非可逆符号化が行われた結果としての矩形ブロックのグループである。色数がブロックごとにまちまちであるため、矩形ブロックのデータをグループ化して圧縮するのではなく、個々の矩形ブロックのデータ毎に圧縮を行う。   G5 is a group of rectangular blocks as a result of lossy encoding performed on a type C rectangular block. Since the number of colors varies from block to block, the rectangular block data is not grouped and compressed, but compressed for each rectangular block data.

なお、図13ではグループG0からG5の順序でデータを整列させる例を説明したが、これに限られず、様々な順序でデータを整列させることが可能である。また、各グループG0〜G5内のデータアイテムの整列の順序も、様々に変更することが可能である。   In addition, although the example which arranges data in the order of groups G0 to G5 was demonstrated in FIG. 13, it is not restricted to this, It is possible to arrange data in various orders. In addition, the arrangement order of the data items in each group G0 to G5 can be variously changed.

[第二の実施の形態] 次に、本発明の第二の実施の形態に係る画像圧縮装置を、図14を参照して説明する。第一の実施の形態と同様の構成要素については同一の番号を付し、その詳細な説明は省略する。この実施の形態は、タイプC又はD矩形ブロックの判別をより的確に行うため、圧縮モード判定部13の作用が異なっていると共に、圧縮モード追加判定部13Aが設けられている点において、第一の実施の形態と異なっている。   Second Embodiment Next, an image compression apparatus according to a second embodiment of the present invention will be described with reference to FIG. Constituent elements similar to those of the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted. In this embodiment, in order to more accurately discriminate the type C or D rectangular block, the operation of the compression mode determination unit 13 is different and the compression mode addition determination unit 13A is provided. This is different from the embodiment.

第一の実施の形態では、タイプC矩形ブロックとタイプD矩形ブロックとの分類を、エッジ率Ehが閾値th2より大きいか否かを判定することにより行っていた。しかし、閾値th2をどの程度の大きさに設定するかは難しい問題であり、閾値th2付近のエッジ率の場合、減色処理によるのが適当か、非可逆符号化処理によるのが適当かの判断は難しい場合もある。   In the first embodiment, the type C rectangular block and the type D rectangular block are classified by determining whether or not the edge rate Eh is larger than the threshold th2. However, how large the threshold th2 is to be set is a difficult problem. In the case of an edge rate in the vicinity of the threshold th2, it is difficult to determine whether the color reduction process is appropriate or the lossy encoding process is appropriate. It can be difficult.

そこで、この第二の実施の形態では、圧縮モード判定部13において、閾値がth2付近のth2±αである矩形ブロックについては、非可逆符号化部14による処理と、重要色数予測部15及び減色処理16による処理との両方を施す。この2種類の処理のうち、どちらがより高い圧縮率を提供するかを、圧縮モード追加判定部13Aにより判定し、その矩形ブロックをタイプC又はDのいずれと判定するのが適当かを決定する。すなわち、非可逆符号化部14による処理結果(1)と減色処理部16による処理後、可逆符号化部19Bにより符号化した処理結果(2)の圧縮率を比較し、前者の方が高い圧縮率である場合には、処理結果(1)をそのまま出力する。後者の方が高い圧縮率である場合には、減色処理部16による処理結果を、ブロックグループ化部18によりブロックグループ化し、可逆符号化部19Bにより可逆符号化した結果である処理結果(3)を出力する。   Therefore, in the second embodiment, in the compression mode determination unit 13, for the rectangular block whose threshold is th2 ± α near th2, the processing by the lossy encoding unit 14, the important color number prediction unit 15, and Both the processing by the color reduction processing 16 are performed. Which of the two types of processing provides the higher compression rate is determined by the compression mode addition determination unit 13A, and it is determined whether it is appropriate to determine the rectangular block as type C or D. That is, the compression rate of the processing result (1) by the lossy encoding unit 14 and the processing result (2) encoded by the lossless encoding unit 19B after the processing by the color reduction processing unit 16 are compared. If it is a rate, the processing result (1) is output as it is. When the latter is a higher compression rate, the processing result (3) is the result of the block grouping unit 18 grouping the processing results by the color reduction processing unit 16 and lossless encoding by the lossless encoding unit 19B. Is output.

[第三の実施の形態] 次に、本発明の第三の実施の形態に係る画像圧縮装置を、図15を参照して説明する。第一の実施の形態と同様の構成要素については同一の番号を付し、その詳細な説明は省略する。この実施の形態では、減色処理部16により減色処理された矩形ブロックの中から、更に細かな単色矩形ブロック及び少数色の矩形ブロックを矩形ブロック抽出部12Aにより抽出し、抽出された矩形ブロックの種別(単色、2色以上)を圧縮モード判定部13Bにより判定して分類するようにしている点で、第一の実施の形態と異なっている。タイプD矩形ブロックが減色処理された時、矩形ブロックの色数の減少に従い、矩形ブロック内の単色領域と少ない色数の領域が増えると予想されるので、このような処理が行われることにより、更なる圧縮率の向上が期待できる。矩形ブロック抽出部12Aの動作は、矩形ブロック抽出部12と略同様であるので、詳細な説明は省略する。   [Third Embodiment] Next, an image compression apparatus according to a third embodiment of the present invention will be described with reference to FIG. Constituent elements similar to those of the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted. In this embodiment, from the rectangular blocks subjected to the color reduction processing by the color reduction processing unit 16, a finer single color rectangular block and a small number of rectangular blocks are extracted by the rectangular block extraction unit 12A, and the type of the extracted rectangular block This is different from the first embodiment in that (single color, two or more colors) is determined and classified by the compression mode determination unit 13B. When a color reduction process is performed on a type D rectangular block, it is expected that a single color area and a small color area in the rectangular block will increase as the number of colors in the rectangular block decreases. Further improvement in compression rate can be expected. Since the operation of the rectangular block extraction unit 12A is substantially the same as that of the rectangular block extraction unit 12, a detailed description thereof will be omitted.

圧縮モード判定部13Bは、抽出された矩形ブロック内の色数Ncをカウントし(S131)、Nc=1である場合(S132のYES)、その矩形ブロックをタイプA矩形ブロックと判定し、そのままデータシャッフル部20に出力する。Nc>1である場合(S132のNO)、その矩形ブロックをタイプB矩形ブロックと判定し、圧縮モード判定部13でタイプB矩形ブロックと判定された矩形ブロックと共に、パレット圧縮部17によるパレット圧縮の対象とする。   The compression mode determination unit 13B counts the number of colors Nc in the extracted rectangular block (S131). When Nc = 1 (YES in S132), the compression mode determination unit 13B determines that the rectangular block is a type A rectangular block, and the data Output to the shuffle unit 20. If Nc> 1 (NO in S132), the rectangular block is determined to be a type B rectangular block, and the palette compression unit 17 performs palette compression together with the rectangular block determined to be the type B rectangular block by the compression mode determination unit 13. set to target.

以上、発明の実施の形態を説明したが、本発明はこれらに限定されるものではなく、発明の趣旨を逸脱しない範囲内において、種々の変更、追加等が可能である。例えば、第3の実施の形態(図15)において、矩形ブロック抽出部12A圧縮モード判定部13Bを別途設ける代わりに、減色処理部16の出力を矩形ブロック抽出部12にフィードバックさせ、矩形ブロック抽出部12、13に12A、13Bの役割を兼用させるようにしてもよい。   Although the embodiments of the invention have been described above, the present invention is not limited to these embodiments, and various modifications and additions can be made without departing from the spirit of the invention. For example, in the third embodiment (FIG. 15), instead of separately providing the rectangular block extraction unit 12A compression mode determination unit 13B, the output of the color reduction processing unit 16 is fed back to the rectangular block extraction unit 12, and the rectangular block extraction unit 12 and 13 may also serve as the roles of 12A and 13B.

本発明の第一の実施の形態に係る画像圧縮装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image compression apparatus which concerns on 1st embodiment of this invention. 図1の画像圧縮装置の処理対象であるコンピュータ画面の一例を示す。2 shows an example of a computer screen that is a processing target of the image compression apparatus in FIG. 1. 矩形ブロック抽出部12の作用を説明するフローチャートである。5 is a flowchart for explaining the operation of a rectangular block extraction unit 12. 単色矩形ブロックの拡張の方法を説明する。A method for expanding a monochrome rectangular block will be described. 単色矩形ブロックの拡張の方法を説明する。A method for expanding a monochrome rectangular block will be described. 単色矩形ブロックの拡張の方法を説明する。A method for expanding a monochrome rectangular block will be described. 単色矩形ブロックの拡張の方法を説明する。A method for expanding a monochrome rectangular block will be described. 圧縮モード判定部13の作用を説明するフローチャートである。5 is a flowchart for explaining the operation of a compression mode determination unit 13. 図5のフローチャートにおけるエッジ率の判定方法の一例を説明する。An example of the edge rate determination method in the flowchart of FIG. 5 will be described. 予測重要色数の判定方法を説明する。A method for determining the number of predicted important colors will be described. 図1の減色処理部16による減色処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the color reduction process by the color reduction process part 16 of FIG. 図8のフローチャートのS32の具体例を説明する。A specific example of S32 in the flowchart of FIG. 8 will be described. 図8のフローチャートのS33の具体例を説明する。A specific example of S33 in the flowchart of FIG. 8 will be described. ブロックグループ化部18の動作を示す概念図である。FIG. 5 is a conceptual diagram showing the operation of the block grouping unit 18. ブロックグループ化部18におけるグループ化の方法の一例を説明する。An example of a grouping method in the block grouping unit 18 will be described. データシャッフル部20におけるデータシャッフルの工程の一例を説明する。An example of a data shuffling process in the data shuffle unit 20 will be described. 本発明の第二の実施の形態に係る画像圧縮装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image compression apparatus which concerns on 2nd embodiment of this invention. 本発明の第三の実施の形態に係る画像圧縮装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image compression apparatus which concerns on 3rd embodiment of this invention. 図15の圧縮モード判定部13Bの動作を説明する。The operation of the compression mode determination unit 13B in FIG. 15 will be described.

符号の説明Explanation of symbols

1・・・カラー画像入力装置、 12・・・矩形ブロック抽出部、 13・・・圧縮モード判定部、 14・・・非可逆符号化部、 15・・・重要色数予測部、 16・・・減色処理部、 17・・・パレット圧縮部、 18・・・ブロックグループ化部、 19・・・可逆符号化部、 20・・・データシャッフル部。   DESCRIPTION OF SYMBOLS 1 ... Color image input device, 12 ... Rectangular block extraction part, 13 ... Compression mode determination part, 14 ... Lossy encoding part, 15 ... Important color number prediction part, 16 ... -Color reduction processing unit, 17 ... palette compression unit, 18 ... block grouping unit, 19 ... lossless encoding unit, 20 ... data shuffle unit.

Claims (14)

画像データを色に基づいて分割して複数の矩形ブロックを抽出する矩形ブロック抽出部と、
前記矩形ブロックのそれぞれに含まれる色の数を示す色数、及びエッジ画素の割合を示すエッジ率を判定し、前記色数が単数である前記矩形ブロックを第1種矩形ブロック、前記色数が所定値未満である前記矩形ブロックを第2種矩形ブロック、前記色数が所定値以上であって前記エッジ率が所定値未満である前記矩形ブロックを第3種矩形ブロック、前記色数が所定値以上であって前記エッジ率が所定値以上である前記矩形ブロックを第4種矩形ブロックとしてそれぞれ分類する判定部と、
前記第2種矩形ブロックの画像データにパレット圧縮を施すパレット圧縮部と、
前記第3種矩形ブロックの画像データに非可逆的なデータ圧縮を施す非可逆圧縮符号化部と、
前記第4種矩形ブロックの色数に基づいて重要色数を予測し前記第4種矩形ブロックに含まれる色を予測された重要色数まで削減する減色処理を施す減色処理部と
を備えたことを特徴とする画像圧縮装置。
A rectangular block extraction unit that divides image data based on colors and extracts a plurality of rectangular blocks;
The number of colors indicating the number of colors included in each of the rectangular blocks and the edge rate indicating the ratio of edge pixels are determined, the rectangular block having the single number of colors is designated as a first type rectangular block, and the number of colors is The rectangular block that is less than a predetermined value is a second type rectangular block, the number of colors is equal to or greater than a predetermined value, and the rectangular block that is less than a predetermined value is a third type rectangular block, and the number of colors is a predetermined value A determination unit that classifies the rectangular blocks having the edge ratio equal to or higher than a predetermined value as fourth type rectangular blocks,
A palette compression unit that applies palette compression to the image data of the second type rectangular block;
An irreversible compression encoding unit that performs irreversible data compression on the image data of the third type rectangular block;
A color reduction processing unit that predicts the number of important colors based on the number of colors of the fourth type rectangular block and performs a color reduction process to reduce the number of colors included in the fourth type rectangular block to the predicted number of important colors. An image compression apparatus characterized by the above.
前記矩形ブロック抽出部は、所定の大きさを有する単色矩形ブロックを画像データ中で検索し、検索された単色矩形ブロックの隣接行又は隣接列の色が同一である場合に該単色矩形ブロックを拡張することにより前記第1種矩形ブロックを最大化するものである請求項1記載の画像圧縮装置。   The rectangular block extraction unit searches the image data for a single-color rectangular block having a predetermined size, and expands the single-color rectangular block when adjacent rows or adjacent columns have the same color. The image compression apparatus according to claim 1, wherein the first type rectangular block is maximized by doing so. 前記パレット圧縮部又は前記減色処理部により圧縮された圧縮画像同士を、含まれる色の色数に応じてグループ化するグループ化部を更に備えた請求項1記載の画像圧縮装置。   The image compression apparatus according to claim 1, further comprising a grouping unit that groups the compressed images compressed by the palette compression unit or the color reduction processing unit according to the number of colors included. 前記非可逆圧縮符号化部は、直交変換を用いて画像データを空間周波数領域に変換する変換符号化によるデータ圧縮を施すものである請求項1記載の画像圧縮装置。   The image compression apparatus according to claim 1, wherein the lossy compression coding unit performs data compression by transform coding that transforms image data into a spatial frequency domain using orthogonal transform. 前記判定部は、ある矩形ブロックの前記エッジ率が前記所定値に近似する値である場合、前記非可逆圧縮符号化部による圧縮率と前記減色処理部による圧縮率とを比較し、前者が後者より大きい場合、その矩形ブロックを第3種矩形ブロックに分類する一方、後者が前者より大きい場合、その矩形ブロックを第4種矩形ブロックに分類する請求項1記載の画像圧縮装置。   The determination unit compares the compression rate by the lossy compression encoding unit and the compression rate by the color reduction processing unit when the edge rate of a rectangular block approximates the predetermined value, and the former is the latter 2. The image compression apparatus according to claim 1, wherein when it is larger, the rectangular block is classified as a third type rectangular block, while when the latter is larger than the former, the rectangular block is classified as a fourth type rectangular block. 前記矩形ブロック抽出部は、前記減色処理部による減色処理後の矩形ブロックを更に微少の矩形ブロックに分類し、前記圧縮モード判定部は、この微少の矩形ブロックを、前記第1種乃至第4種矩形ブロックに分類するものである請求項1記載の画像圧縮装置。   The rectangular block extraction unit further classifies the rectangular blocks after the color reduction processing by the color reduction processing unit into fine rectangular blocks, and the compression mode determination unit converts the fine rectangular blocks into the first type to the fourth type. The image compression apparatus according to claim 1, wherein the image compression apparatus is classified into rectangular blocks. 画像データを色に基づいて分割して複数の矩形ブロックを抽出するステップと、
前記矩形ブロックのそれぞれに含まれる色の数を示す色数、及びエッジ画素の割合を示すエッジ率を判定するステップと、
前記色数が単数である前記矩形ブロックを第1種矩形ブロック、前記色数が所定値未満である前記矩形ブロックを第2種矩形ブロック、前記色数が所定値以上であって前記エッジ率が所定値未満である前記矩形ブロックを第3種矩形ブロック、前記色数が所定値以上であって前記エッジ率が所定値以上である前記矩形ブロックを第4種矩形ブロックとしてそれぞれ分類するステップと、
前記第2種矩形ブロックの画像データにパレット圧縮を施すステップと、
前記第3種矩形ブロックの画像データに非可逆的なデータ圧縮を施すステップと、
前記第4種矩形ブロックの色数に基づいて重要色数を予測し前記第4種矩形ブロックに含まれる色を予測された重要色数まで削減する減色処理を施すステップと
を備えたことを特徴とする画像圧縮方法。
Dividing the image data based on color to extract a plurality of rectangular blocks;
Determining the number of colors indicating the number of colors included in each of the rectangular blocks, and the edge rate indicating the ratio of edge pixels;
The rectangular block having the singular color is a first type rectangular block, the rectangular block having the number of colors less than a predetermined value is the second type rectangular block, the number of colors is equal to or greater than a predetermined value, and the edge rate is Classifying the rectangular block having a value less than a predetermined value as a third type rectangular block, and classifying the rectangular block having the number of colors equal to or greater than a predetermined value and the edge rate as a fourth value as a fourth type rectangular block;
Applying palette compression to the image data of the second type rectangular block;
Performing irreversible data compression on the image data of the third type rectangular block;
Applying a color reduction process for predicting the number of important colors based on the number of colors of the fourth type rectangular block and reducing the number of colors included in the fourth type rectangular block to the predicted number of important colors. Image compression method.
画像データを分割して複数の矩形ブロックとして抽出するステップは、所定の大きさを有する単色矩形ブロックを画像データ中で検索し、検索された単色矩形ブロックの隣接行又は隣接列の色が同一である場合に該単色矩形ブロックを拡張することにより前記第1種矩形ブロックを最大化するものである請求項7記載の画像圧縮方法。   In the step of dividing the image data and extracting it as a plurality of rectangular blocks, a single-color rectangular block having a predetermined size is searched in the image data, and the color of the adjacent row or adjacent column of the searched single-color rectangular block is the same. 8. The image compression method according to claim 7, wherein the first-type rectangular block is maximized by expanding the single-color rectangular block in some cases. 前記パレット圧縮又は前記減色処理により圧縮された圧縮画像同士を、含まれる色の色数に応じてグループ化するステップを更に備えた請求項7記載の画像圧縮方法。   The image compression method according to claim 7, further comprising a step of grouping the compressed images compressed by the palette compression or the color reduction processing according to the number of colors included. 前記分類するステップは、ある矩形ブロックの前記エッジ率が前記所定値に近似する値である場合、前記非可逆的なデータ圧縮による圧縮率と前記減色処理による圧縮率とを比較し、前者が後者より大きい場合、その矩形ブロックを第3種矩形ブロックに分類する一方、後者が前者より大きい場合、その矩形ブロックを第4種矩形ブロックに分類するものである請求項7記載の画像圧縮方法。   The classifying step compares the compression rate by the irreversible data compression and the compression rate by the color reduction processing when the edge rate of a rectangular block is a value approximate to the predetermined value, and the former is the latter 8. The image compression method according to claim 7, wherein when the size is larger, the rectangular block is classified as a third type rectangular block, while when the latter is larger than the former, the rectangular block is classified as a fourth type rectangular block. 前記減色処理による減色処理後の矩形ブロックを更に微少の矩形ブロックに分類し、この微少の矩形ブロックを、前記第1種乃至第4種矩形ブロックに分類するステップを更に備えた請求項7記載の画像圧縮方法。   8. The method according to claim 7, further comprising the step of classifying the rectangular blocks after the color reduction processing by the color reduction processing into fine rectangular blocks, and classifying the small rectangular blocks into the first type to fourth type rectangular blocks. Image compression method. 画像データを色に基づいて分割して複数の矩形ブロックを抽出するステップと、
前記矩形ブロックのそれぞれに含まれる色の数を示す色数、及びエッジ画素の割合を示すエッジ率を判定するステップと、
前記色数が単数である前記矩形ブロックを第1種矩形ブロック、前記色数が所定値未満である前記矩形ブロックを第2種矩形ブロック、前記色数が所定値以上であって前記エッジ率が所定値未満である前記矩形ブロックを第3種矩形ブロック、前記色数が所定値以上であって前記エッジ率が所定値以上である前記矩形ブロックを第4種矩形ブロックとしてそれぞれ分類するステップと、
前記第2種矩形ブロックの画像データにパレット圧縮を施すステップと、
前記第3種矩形ブロックの画像データに非可逆的なデータ圧縮を施すステップと、
前記第4種矩形ブロックの色数に基づいて重要色数を予測し前記第4種矩形ブロックに含まれる色を予測された重要色数まで削減する減色処理を施すステップと
をコンピュータに実行させるように構成された画像圧縮プログラム。
Dividing the image data based on color to extract a plurality of rectangular blocks;
Determining the number of colors indicating the number of colors included in each of the rectangular blocks, and the edge rate indicating the ratio of edge pixels;
The rectangular block having the singular color is a first type rectangular block, the rectangular block having the number of colors less than a predetermined value is the second type rectangular block, the number of colors is equal to or greater than a predetermined value, and the edge rate is Classifying the rectangular block having a value less than a predetermined value as a third type rectangular block, and classifying the rectangular block having the number of colors equal to or greater than a predetermined value and the edge rate as a fourth value as a fourth type rectangular block;
Applying palette compression to the image data of the second type rectangular block;
Performing irreversible data compression on the image data of the third type rectangular block;
Causing the computer to execute a color reduction process for predicting the number of important colors based on the number of colors of the fourth type rectangular block and reducing the number of colors included in the fourth type rectangular block to the predicted number of important colors. An image compression program configured in
画像データを色に基づいて分割して複数の矩形ブロックを抽出する矩形ブロック抽出部と、
前記矩形ブロックのそれぞれに含まれる色の数を示す色数を求め、前記色数が単数である矩形ブロックを第1矩形ブロック、前記色数が複数である矩形ブロックを第2矩形ブロックとして、少なくとも分類する判定部と、
前記第2矩形ブロックについて、その色数および画像のエッジ率に関連した画像圧縮方法を選択的に施す画像圧縮部と、
を備えたことを特徴とする画像圧縮装置。
A rectangular block extraction unit that divides image data based on colors and extracts a plurality of rectangular blocks;
The number of colors indicating the number of colors included in each of the rectangular blocks is obtained, and the rectangular block having a single number of colors is defined as a first rectangular block, and the rectangular block having a plurality of colors is defined as a second rectangular block. A determination unit for classification;
For the second rectangular block, an image compression unit that selectively performs an image compression method related to the number of colors and the edge rate of the image;
An image compression apparatus comprising:
前記画像圧縮部は、第2矩形ブロックに関して複数の画像圧縮方法による圧縮率を求め、当該矩形ブロックで圧縮率が最も高い画像圧縮方法を選択する手段を有することを特徴とする請求項13記載の画像圧縮装置。
The said image compression part has a means to obtain | require the compression rate by a several image compression method regarding a 2nd rectangular block, and to select the image compression method with the highest compression rate in the said rectangular block, The said compression unit is characterized by the above-mentioned. Image compression device.
JP2005062707A 2005-03-07 2005-03-07 Image compression apparatus, image compression method, and image compression program Expired - Fee Related JP4649237B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005062707A JP4649237B2 (en) 2005-03-07 2005-03-07 Image compression apparatus, image compression method, and image compression program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005062707A JP4649237B2 (en) 2005-03-07 2005-03-07 Image compression apparatus, image compression method, and image compression program

Publications (2)

Publication Number Publication Date
JP2006246374A true JP2006246374A (en) 2006-09-14
JP4649237B2 JP4649237B2 (en) 2011-03-09

Family

ID=37052266

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005062707A Expired - Fee Related JP4649237B2 (en) 2005-03-07 2005-03-07 Image compression apparatus, image compression method, and image compression program

Country Status (1)

Country Link
JP (1) JP4649237B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009130467A (en) * 2007-11-20 2009-06-11 Canon Inc Image encoding apparatus and method of controlling the same
JP2009141479A (en) * 2007-12-04 2009-06-25 Seiko Epson Corp Image processor, image forming apparatus, image processing method, program
JP2010039507A (en) * 2008-07-31 2010-02-18 Canon Inc Information processor, information processing method, information processing system, and program
US8238437B2 (en) 2007-09-20 2012-08-07 Canon Kabushiki Kaisha Image encoding apparatus, image decoding apparatus, and control method therefor
CN113808225A (en) * 2021-09-27 2021-12-17 东华理工大学南昌校区 Lossless coding method for image

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04139960A (en) * 1990-09-30 1992-05-13 Canon Inc Picture coder
JPH04236574A (en) * 1991-01-18 1992-08-25 Ricoh Co Ltd Picture coding system
JPH04316279A (en) * 1991-04-16 1992-11-06 Canon Inc Color picture encoder
JPH1188700A (en) * 1997-09-04 1999-03-30 Hitachi Ltd Coding method of color image signal, and decoding method and color image processor thereof
JPH11161782A (en) * 1997-11-27 1999-06-18 Seiko Epson Corp Method and device for encoding color picture, and method and device for decoding color picture
JP2000013605A (en) * 1998-06-18 2000-01-14 Minolta Co Ltd Image processor, method and record medium recording image processing program
JP2000333017A (en) * 1999-03-12 2000-11-30 Seiko Epson Corp Image processor for compression and expansion and electronic printer utilizing the same
JP2001333281A (en) * 2000-05-22 2001-11-30 Matsushita Electric Ind Co Ltd Device and method for encoding image, device and method for decoding image, recording medium for recording image encoding program and recording medium for recording decoding program
JP2002165105A (en) * 2000-11-27 2002-06-07 Canon Inc Image processing device, its method, and recording medium
JP2003309727A (en) * 2002-04-17 2003-10-31 Canon Inc Image encoder and image encoding method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04139960A (en) * 1990-09-30 1992-05-13 Canon Inc Picture coder
JPH04236574A (en) * 1991-01-18 1992-08-25 Ricoh Co Ltd Picture coding system
JPH04316279A (en) * 1991-04-16 1992-11-06 Canon Inc Color picture encoder
JPH1188700A (en) * 1997-09-04 1999-03-30 Hitachi Ltd Coding method of color image signal, and decoding method and color image processor thereof
JPH11161782A (en) * 1997-11-27 1999-06-18 Seiko Epson Corp Method and device for encoding color picture, and method and device for decoding color picture
JP2000013605A (en) * 1998-06-18 2000-01-14 Minolta Co Ltd Image processor, method and record medium recording image processing program
JP2000333017A (en) * 1999-03-12 2000-11-30 Seiko Epson Corp Image processor for compression and expansion and electronic printer utilizing the same
JP2001333281A (en) * 2000-05-22 2001-11-30 Matsushita Electric Ind Co Ltd Device and method for encoding image, device and method for decoding image, recording medium for recording image encoding program and recording medium for recording decoding program
JP2002165105A (en) * 2000-11-27 2002-06-07 Canon Inc Image processing device, its method, and recording medium
JP2003309727A (en) * 2002-04-17 2003-10-31 Canon Inc Image encoder and image encoding method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8238437B2 (en) 2007-09-20 2012-08-07 Canon Kabushiki Kaisha Image encoding apparatus, image decoding apparatus, and control method therefor
JP2009130467A (en) * 2007-11-20 2009-06-11 Canon Inc Image encoding apparatus and method of controlling the same
JP2009141479A (en) * 2007-12-04 2009-06-25 Seiko Epson Corp Image processor, image forming apparatus, image processing method, program
US8280159B2 (en) 2007-12-04 2012-10-02 Seiko Epson Corporation Methods and devices for compressing an image
JP2010039507A (en) * 2008-07-31 2010-02-18 Canon Inc Information processor, information processing method, information processing system, and program
US8451478B2 (en) 2008-07-31 2013-05-28 Canon Kabushiki Kaisha Information processing apparatus, method of information processing, and storage medium for performing scaling processing on image data
CN113808225A (en) * 2021-09-27 2021-12-17 东华理工大学南昌校区 Lossless coding method for image
CN113808225B (en) * 2021-09-27 2023-09-19 东华理工大学南昌校区 Lossless coding method for image

Also Published As

Publication number Publication date
JP4649237B2 (en) 2011-03-09

Similar Documents

Publication Publication Date Title
US5956425A (en) Image processing apparatus and method
JP2621747B2 (en) Image processing device
US8270716B2 (en) Selectively compressing picture and text areas of an image to maintain highest quality and effective compaction
JPH03165181A (en) High quality compression method of binary text picture
JP3848443B2 (en) Compressed digital data processing method
US8452112B2 (en) Image encoding apparatus and method of controlling the same
US20130128958A1 (en) Video data encoding and decoding
US7248735B2 (en) Compression and decompression method of image data
US20100118947A1 (en) Decoder for selectively decoding predetermined data units from a coded bit stream
JP2008178108A (en) Method and device for effectively compressing and restoring binary image
JPH1175069A (en) Picture processing device and method therefor
US20090303505A1 (en) Subtractive color method, subtractive color processing apparatus, image forming apparatus, and computer-readable storage medium for computer program
JP4649237B2 (en) Image compression apparatus, image compression method, and image compression program
US8023756B2 (en) Image encoding apparatus and method of controlling same
JP4627670B2 (en) Image forming apparatus, image forming method, and computer-readable storage medium storing program for executing the method
US8750607B2 (en) Image processing apparatus capable of efficiently compressing an original image
US6272251B1 (en) Fully automatic pasting of images into compressed pre-collated documents
JP3108133B2 (en) Adaptive coding of color document images
Saraswat et al. A study on size optimization of scanned textual documents
JP5757904B2 (en) Image compression device
EP1345449A1 (en) Digital image compression and decompression using block coding
JP2010028796A (en) Image forming apparatus, image converting device, and image forming method
JP2009260747A (en) Image encoding device, and control method thereof
JP2001103315A (en) Image coding method and image coder
Ahmed DCT Image Compression by Run-Length and Shift Coding Techniques.

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080229

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100520

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100831

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101025

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: 20101116

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: 20101213

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

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees