JP2016119528A - Image processor, program and method - Google Patents

Image processor, program and method Download PDF

Info

Publication number
JP2016119528A
JP2016119528A JP2014256850A JP2014256850A JP2016119528A JP 2016119528 A JP2016119528 A JP 2016119528A JP 2014256850 A JP2014256850 A JP 2014256850A JP 2014256850 A JP2014256850 A JP 2014256850A JP 2016119528 A JP2016119528 A JP 2016119528A
Authority
JP
Japan
Prior art keywords
attribute
unit
color information
image processing
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2014256850A
Other languages
Japanese (ja)
Inventor
祐輔 逸見
Yusuke Itsumi
祐輔 逸見
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data 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 Oki Data Corp filed Critical Oki Data Corp
Priority to JP2014256850A priority Critical patent/JP2016119528A/en
Publication of JP2016119528A publication Critical patent/JP2016119528A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable the generation of a compressed image of high quality by reducing a deterioration in the image quality of a boundary of attributes during performing compression by an irreversible compression system.SOLUTION: The image processor performs compression processing of color information of each attribute by the irreversible compression system, and performs compression processing of attribute information by a reversible compression system and includes an attribute information detection part for detecting prescribed attribute information from image data, a color information separation part for separating color information from the image data in each attribute, a block extraction part for dividing the color information of each attribute into prescribed image processing units, a replacement determination part for determining whether to replace the color information of each attribute in each image processing unit about the color information of each attribute, and a replacement part for replacing the color information of each attribute in each image processing unit with a prescribed value obtained from color information of the same attribute in the image processing unit.SELECTED DRAWING: Figure 1

Description

本発明は、画像処理装置、プログラム及び方法に関し、例えば、画像データに対して圧縮処理を施して圧縮画像を生成する画像処理装置、プログラム及び方法に適用し得るものである。   The present invention relates to an image processing device, a program, and a method, and can be applied to, for example, an image processing device, a program, and a method that generate a compressed image by performing compression processing on image data.

画像データは情報量が大きいため、画像データを圧縮して情報量を削減する種々の画像圧縮技術がある。近年、PDF(Portable Document Format)ファイルの普及と標準化(ISO32000−1)に伴い、MRC(Mixed Raster Content)を利用して、画像データを圧縮してPDFファイルに生成する画像圧縮処理がある。これは、画像データを高圧縮率で圧縮するために、画像を多層構造のレイヤに分離し、圧縮率の異なる画像圧縮方式を用いてレイヤ毎に圧縮し、圧縮後の各レイヤを合成して圧縮画像を得るものである。   Since image data has a large amount of information, there are various image compression techniques for compressing image data to reduce the amount of information. In recent years, along with the popularization and standardization (ISO 32000-1) of PDF (Portable Document Format) files, there is an image compression process that uses MRC (Mixed Raster Content) to compress image data and generate PDF files. In order to compress the image data at a high compression rate, the image is separated into layers of a multilayer structure, compressed for each layer using an image compression method having a different compression rate, and the compressed layers are combined. A compressed image is obtained.

従来の画像処理装置は、画像データの各画素の画素値に基づいて、文字や線図等の文字領域に属する画素を文字属性とし、非文字領域に属する画素を非文字属性として分離している。そして、画像データを高圧縮率で圧縮するために、文字属性の色情報又は非文字属性の色情報のそれぞれに対して、非可逆圧縮方式で圧縮している。また、従来の画像処理装置は、各色情報に対して非可逆圧縮方式による圧縮を施す際、それぞれの属性のブロック内の全画素の画素値を代表値等に置き換えている(特許文献1参照)。   A conventional image processing apparatus separates pixels belonging to a character region such as characters and diagrams as character attributes and pixels belonging to a non-character region as non-character attributes based on the pixel value of each pixel of image data. . In order to compress the image data at a high compression rate, the character attribute color information or the non-character attribute color information is compressed by the lossy compression method. In addition, when a conventional image processing apparatus compresses each color information by a lossy compression method, the pixel values of all the pixels in each attribute block are replaced with representative values or the like (see Patent Document 1). .

特開2014−072556号公報JP 2014-072556 A

しかしながら、各画素の属性情報が適切に検出なされないことも生じ得るため、非可逆圧縮方式で圧縮を施した色情報画像を合成して圧縮画像を生成したときに、例えば文字属性と非文字属性との間の境目で画質の劣化が生じ得ることがあった。   However, since the attribute information of each pixel may not be detected properly, when a color information image compressed by the lossy compression method is combined to generate a compressed image, for example, the character attribute and the non-character attribute In some cases, the image quality may deteriorate at the boundary between the two.

そのため、非可逆圧縮方式で圧縮する際に、属性の境目の画質の劣化を軽減して、高画質の圧縮画像を生成することができる画像処理装置、プログラム及び方法が求められている。   For this reason, there is a need for an image processing apparatus, program, and method that can reduce deterioration in image quality at the boundary between attributes and generate a high-quality compressed image when compression is performed using a lossy compression method.

かかる課題を解決するために、第1の本発明に係る画像処理装置は、(1)画像データから所定の属性情報を検出する属性情報検出部と、(2)画像データから色情報を属性毎に分離する色情報分離部と、(3)色情報分離部により分離された属性毎の色情報のそれぞれを、所定の画像処理単位に区分するブロック抽出部と、(4)属性毎の色情報のそれぞれについて、画像処理単位毎に、各画像処理単位内の属性毎の色情報を、所定値に置換するか否かを判定する置換判定部と、(5)属性毎の色情報のそれぞれについて、置換判定部の置換判定結果に応じて、画像処理単位毎に、各画像処理単位内の属性毎の色情報を、当該画像処理単位内の同一の属性の色情報から得られる所定値に置き換える置換部と、(6)置換部により得られた属性毎の色情報のそれぞれを、非可逆圧縮方式で圧縮処理を行なう非可逆圧縮部と、(7)属性情報検出部により得られた前記属性情報を可逆圧縮方式で圧縮処理を行なう可逆圧縮部とを備えることを特徴とする。   In order to solve this problem, an image processing apparatus according to a first aspect of the present invention includes (1) an attribute information detection unit that detects predetermined attribute information from image data, and (2) color information from the image data for each attribute. A color information separating unit that separates the color information into a predetermined image processing unit; and (4) color information for each attribute. For each of the image processing units, for each image processing unit, a replacement determination unit that determines whether or not the color information for each attribute in each image processing unit is replaced with a predetermined value, and (5) each of the color information for each attribute The color information for each attribute in each image processing unit is replaced with a predetermined value obtained from the color information of the same attribute in the image processing unit for each image processing unit according to the replacement determination result of the replacement determination unit. A substitution part, and (6) a genus obtained by the substitution part A irreversible compression unit that performs compression processing on each color information by a lossy compression method; and (7) a lossless compression unit that performs compression processing on the attribute information obtained by the attribute information detection unit by a lossless compression method. It is characterized by providing.

第2の本発明に係る画像処理プログラムは、コンピュータを、(1)画像データから所定の属性情報を検出する属性情報検出部と、(2)画像データから色情報を属性毎に分離する色情報分離部と、(3)色情報分離部により分離された属性毎の色情報のそれぞれを、所定の画像処理単位に区分するブロック抽出部と、(4)属性毎の色情報のそれぞれについて、画像処理単位毎に、各画像処理単位内の属性毎の色情報を、所定値に置換するか否かを判定する置換判定部と、(5)属性毎の色情報のそれぞれについて、置換判定部の置換判定結果に応じて、画像処理単位毎に、各画像処理単位内の属性毎の色情報を、当該画像処理単位内の同一の属性の色情報から得られる所定値に置き換える置換部と、(6)置換部により得られた属性毎の色情報のそれぞれを、非可逆圧縮方式で圧縮処理を行なう非可逆圧縮部と、(7)属性情報検出部により得られた属性情報を可逆圧縮方式で圧縮処理を行なう可逆圧縮部として機能させることを特徴とする。   An image processing program according to a second aspect of the present invention includes: (1) an attribute information detection unit that detects predetermined attribute information from image data; and (2) color information that separates color information from image data for each attribute. A separation unit; (3) a block extraction unit that divides each color information for each attribute separated by the color information separation unit into predetermined image processing units; and (4) an image for each color information for each attribute. For each processing unit, a replacement determination unit that determines whether or not the color information for each attribute in each image processing unit is replaced with a predetermined value, and (5) the replacement determination unit for each color information for each attribute. A replacement unit that replaces the color information for each attribute in each image processing unit with a predetermined value obtained from the color information of the same attribute in the image processing unit, for each image processing unit, according to the replacement determination result; 6) For each attribute obtained by the replacement part Each of the information is made to function as an irreversible compression unit that performs compression processing by the irreversible compression method, and (7) a lossless compression unit that performs compression processing by the lossless compression method on the attribute information obtained by the attribute information detection unit. Features.

第3の本発明に係る画像処理方法は、(1)属性情報検出部が、画像データから所定の属性情報を検出し、(2)色情報分離部が、画像データから色情報を属性毎に分離し、(3)ブロック抽出部が、色情報分離部により分離された属性毎の色情報のそれぞれを、所定の画像処理単位に区分し、(4)置換判定部が、属性毎の色情報のそれぞれについて、画像処理単位毎に、各画像処理単位内の属性毎の色情報を、所定値に置換するか否かを判定し、(5)置換部が、属性毎の色情報のそれぞれについて、置換判定部の置換判定結果に応じて、画像処理単位毎に、各画像処理単位内の属性毎の色情報を、当該画像処理単位内の同一の属性の色情報から得られる所定値に置き換え、(6)非可逆圧縮部が、置換部により得られた属性毎の色情報のそれぞれを、非可逆圧縮方式で圧縮処理を行ない、(7)可逆圧縮部が、属性情報検出部により得られた属性情報を可逆圧縮方式で圧縮処理を行なうことを特徴とする。   In the image processing method according to the third aspect of the present invention, (1) the attribute information detection unit detects predetermined attribute information from the image data, and (2) the color information separation unit extracts color information from the image data for each attribute. (3) The block extraction unit divides each color information for each attribute separated by the color information separation unit into predetermined image processing units, and (4) the replacement determination unit performs color information for each attribute. For each of the image processing units, it is determined whether or not the color information for each attribute in each image processing unit is replaced with a predetermined value, and (5) the replacement unit is configured for each piece of color information for each attribute. The color information for each attribute in each image processing unit is replaced with a predetermined value obtained from the color information of the same attribute in the image processing unit for each image processing unit according to the replacement determination result of the replacement determination unit. (6) Color information for each attribute obtained by the irreversible compression unit by the replacement unit Each performs compression process with lossy compression method, (7) a reversible compression unit, characterized in that the attribute information obtained by the attribute information detection unit performs compression processing by the reversible compression method.

本発明によれば、非可逆圧縮方式で圧縮する際に、属性の境目の画質の劣化を軽減して、高画質の圧縮画像を生成することができる。   ADVANTAGE OF THE INVENTION According to this invention, when compressing by an irreversible compression system, deterioration of the image quality of an attribute boundary can be reduced and a high quality compressed image can be produced | generated.

第1の実施形態に係る画像処理装置の機能的な構成を示すブロック図である。It is a block diagram which shows the functional structure of the image processing apparatus which concerns on 1st Embodiment. 第1の実施形態に係る属性情報のデータの例を示す図である。It is a figure which shows the example of the data of the attribute information which concerns on 1st Embodiment. 第1の実施形態に係る画像処理装置における圧縮処理の動作を示すフローチャートである。4 is a flowchart illustrating an operation of compression processing in the image processing apparatus according to the first embodiment. 第1の実施形態に係る置換判定処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the replacement determination process which concerns on 1st Embodiment. 第1の実施形態に係る各ブロック内の分離領域の有無を説明する説明図である。It is explanatory drawing explaining the presence or absence of the separation area | region in each block which concerns on 1st Embodiment. 第1の実施形態に係る置換判定処理を説明する説明図である。It is explanatory drawing explaining the replacement determination process which concerns on 1st Embodiment. 従来の画像処理装置による画像圧縮、伸張及び合成を説明する説明する説明図である。It is explanatory drawing explaining the image compression, expansion | extension, and composition by the conventional image processing apparatus. 第1の実施形態に係る画像処理装置による画像圧縮、伸張及び合成を説明する説明図である。It is explanatory drawing explaining the image compression by the image processing apparatus which concerns on 1st Embodiment, expansion | extension, and a synthesis | combination.

(A)第1の実施形態
以下では、本発明に係る画像処理装置、プログラム及び方法の第1の実施形態を、図面を参照しながら詳細に説明する。
(A) First Embodiment Hereinafter, a first embodiment of an image processing apparatus, a program, and a method according to the present invention will be described in detail with reference to the drawings.

(A−1)第1の実施形態の構成
図1は、第1の実施形態に係る画像処理装置の機能的な構成を示すブロック図である。図1において、第1の実施形態に係る画像処理装置100は、画像データを入力する入力部としてのスキャナ200と、画像データに基づく画像を出力する出力部としてのディスプレイ300とに接続している。また、画像処理装置100は、大別して、記憶部400、圧縮部500、伸張部600を有する。
(A-1) Configuration of First Embodiment FIG. 1 is a block diagram illustrating a functional configuration of an image processing apparatus according to the first embodiment. In FIG. 1, an image processing apparatus 100 according to the first embodiment is connected to a scanner 200 as an input unit for inputting image data and a display 300 as an output unit for outputting an image based on the image data. . The image processing apparatus 100 includes a storage unit 400, a compression unit 500, and an expansion unit 600.

画像処理装置100は、スキャナ200から供給される読取信号に基づく画像データを圧縮して圧縮画像を生成したり、又圧縮した画像データを伸張してディスプレイ300に表示したりする。   The image processing apparatus 100 compresses the image data based on the read signal supplied from the scanner 200 to generate a compressed image, or decompresses the compressed image data and displays it on the display 300.

画像処理装置100は、ハードウェア的に、CPU、ROM、RAM、EEPROM、入出力インタフェース部等を有する制御装置等とすることができ、例えば、スキャナ200と物理的に一体となったスキャナ装置であって良いし、又例えば、画像データを読み取るスキャナ200によるスキャニング機能の他に、印刷機能、コピー機能、電子メール機能等を有する複合機(MFP:Multiple Function Peripheral)などを適用することができる。   The image processing apparatus 100 may be a control device having a CPU, a ROM, a RAM, an EEPROM, an input / output interface unit, and the like in hardware. For example, the image processing apparatus 100 is a scanner device physically integrated with the scanner 200. For example, in addition to the scanning function by the scanner 200 that reads image data, a multi-function peripheral (MFP) having a printing function, a copying function, an electronic mail function, and the like can be applied.

また、画像処理装置100は、信号処理を行なう回路の一部又は組合せとして画像処理機能を実現するようにしても良いし、又は汎用コンピュータで動作するソフトウェアにより画像処理機能を実現するようにしても良い。さらに、例えばPCやワークステーション等のコンピュータに、画像処理プログラムをインストールすることにより画像処理機能が構築されるようにしても良い。   Further, the image processing apparatus 100 may realize the image processing function as a part or combination of circuits for performing signal processing, or may realize the image processing function by software operating on a general-purpose computer. good. Furthermore, an image processing function may be constructed by installing an image processing program in a computer such as a PC or a workstation.

記憶部400は、画像処理プログラム、画像処理に必要なデータ、画像データ、圧縮処理後の画像データ等を記憶するものである。記憶部400は、例えば揮発性メモリのRAMを有し、入力部であるスキャナ200から入力された画像データや、圧縮部500により圧縮された画像データを記憶する。   The storage unit 400 stores an image processing program, data necessary for image processing, image data, image data after compression processing, and the like. The storage unit 400 includes, for example, a volatile memory RAM, and stores image data input from the scanner 200 as an input unit and image data compressed by the compression unit 500.

圧縮部500は、スキャナ200から入力された画像データ又は記憶部400に記憶されている画像データに対して、所定の画像圧縮処理を施すものである。圧縮部500は、属性検出部501、色情報分離部502、ブロック抽出部503、第1置換判定部504、第1置換部506、第1非可逆圧縮部508、第2置換判定部505、第2置換部507、第2非可逆圧縮部509、可逆圧縮部510を有する。   The compression unit 500 performs a predetermined image compression process on the image data input from the scanner 200 or the image data stored in the storage unit 400. The compression unit 500 includes an attribute detection unit 501, a color information separation unit 502, a block extraction unit 503, a first replacement determination unit 504, a first replacement unit 506, a first lossy compression unit 508, a second replacement determination unit 505, 2 replacement unit 507, second irreversible compression unit 509, and reversible compression unit 510.

属性検出部501は、記憶部400から読み出した画像データから、文字や線画等の文字領域と、文字や線画等以外の非文字領域とを分離し、画像データの各画素に対して属性情報を付与する。   The attribute detection unit 501 separates character regions such as characters and line drawings from non-character regions other than characters and line drawings from the image data read from the storage unit 400, and sets attribute information for each pixel of the image data. Give.

ここで、属性情報は、画像データの各画素の属する領域が文字領域であるか又は非文字領域であるかを示す情報である。「文字属性」とは、画像中の領域が文字や線画の領域であることを示す属性をいう。また「非文字属性」とは、画像中の領域が文字や線画以外の領域であることを示す属性をいい、例えば、写真領域、自然画領域、下地領域等がある。   Here, the attribute information is information indicating whether the area to which each pixel of the image data belongs is a character area or a non-character area. “Character attribute” refers to an attribute indicating that an area in an image is an area of a character or a line drawing. The “non-character attribute” refers to an attribute indicating that an area in an image is an area other than a character or a line drawing, and includes, for example, a photograph area, a natural image area, and a background area.

図2は、第1の実施形態に係る属性情報のデータの例を示す図である。図2では、縦12画素×横12画素の画像データにおける各画素の属性情報を例示している。属性情報は、例えば1ビットの2値データとすることができ、図2では「1」が文字属性を示し、「0」が非文字属性を示している。   FIG. 2 is a diagram illustrating an example of attribute information data according to the first embodiment. FIG. 2 exemplifies attribute information of each pixel in the image data of vertical 12 pixels × horizontal 12 pixels. The attribute information can be, for example, 1-bit binary data. In FIG. 2, “1” indicates a character attribute, and “0” indicates a non-character attribute.

色情報分離部502は、属性検出部501により検出された属性情報に基づいて、記憶部400に記憶された画像データから、文字属性用の色情報を示す画像データ(以下、文字用画像データとも呼ぶ。)と、非文字属性用の色情報を示す画像データ(以下、非文字用画像データとも呼ぶ。)と、を生成する。   Based on the attribute information detected by the attribute detection unit 501, the color information separation unit 502 uses image data indicating character attribute color information (hereinafter referred to as character image data) from the image data stored in the storage unit 400. And image data indicating color information for non-character attributes (hereinafter also referred to as non-character image data).

ここで、「色情報」とは、各画素の色を表す情報である。例えば、画像データがカラー画像データであって、RGB表色系のR(赤)、G(緑)、B(青)の各色を256階調で各画素の色情報を表す場合、各画素の色情報は、それぞれの色の階調を8ビットのデータで表したものである。より具体的に、画素の色情報が輝度最大の赤の場合、当該画素の色情報を示す画素値は、R(赤)、G(緑)、B(青)の順で「255,0,0」というデータとなる。また例えば、画像データがモノクロ画像データである場合、黒色と白色の明度を示すデータ(例えば8ビットのデータ)とすることができる。   Here, “color information” is information representing the color of each pixel. For example, when the image data is color image data, and each color of R (red), G (green), and B (blue) of the RGB color system is expressed with 256 gradations, the color information of each pixel is expressed. The color information represents the gradation of each color as 8-bit data. More specifically, when the color information of the pixel is red with the maximum luminance, the pixel value indicating the color information of the pixel is “255, 0,” in the order of R (red), G (green), and B (blue). The data is “0”. Further, for example, when the image data is monochrome image data, it can be data indicating brightness of black and white (for example, 8-bit data).

ブロック抽出部503は、属性検出部501により検出された各画素の属性情報と、色情報分離部502により生成された文字用画像データ及び非文字用画像データのそれぞれに対して、所定の画像処理単位に区分するものである。   The block extraction unit 503 performs predetermined image processing on the attribute information of each pixel detected by the attribute detection unit 501 and the character image data and non-character image data generated by the color information separation unit 502. Divide into units.

ここで、ブロック抽出部503により区分される所定の画像処理単位は、例えば、縦m画素×横n画素のブロック(領域)とすることができる。この実施形態では、縦8画素×横8画素のブロックとする場合を例示するが、画像処理単位を示すブロックサイズは特に限定されるものではない。   Here, the predetermined image processing unit divided by the block extraction unit 503 can be, for example, a block (area) of vertical m pixels × horizontal n pixels. In this embodiment, a case of 8 × 8 blocks is exemplified, but the block size indicating the image processing unit is not particularly limited.

第1置換判定部504、第1置換部506及び第1非可逆圧縮部508は、文字用画像データに対する画像処理を行なう処理部であり、第2置換判定部505、第2置換部507及び第2非可逆圧縮部509は、非文字用画像データに対する画像処理を行なう処理部である。   The first replacement determination unit 504, the first replacement unit 506, and the first irreversible compression unit 508 are processing units that perform image processing on the character image data, and the second replacement determination unit 505, the second replacement unit 507, and the second replacement unit 507. The 2 lossy compression unit 509 is a processing unit that performs image processing on non-character image data.

第1置換判定部504は、属性検出部501により検出された属性情報に基づいて、ブロック抽出部503により抽出された全ブロックに対して、文字用画像データの各ブロック内の画素の画素値を、当該ブロック内における文字属性に属する画素の画素値の代表値または平均値に置換してよいか否かを判定する。なお、第1置換判定部504による置換判定方法の詳細な説明は、動作の項で詳細に説明する。   Based on the attribute information detected by the attribute detection unit 501, the first replacement determination unit 504 calculates pixel values of pixels in each block of the character image data for all blocks extracted by the block extraction unit 503. Then, it is determined whether or not the pixel value of the pixel belonging to the character attribute in the block may be replaced with a representative value or an average value. The detailed description of the replacement determination method by the first replacement determination unit 504 will be described in detail in the operation section.

第2置換判定部505は、属性検出部501により検出された属性情報に基づいて、ブロック抽出部503により抽出された全ブロックに対して、非文字用画像データの各ブロック内の画素の画素値を、当該画素ブロック内における非文字属性に属する画素の画素値の代表値または平均値に置換してよいか否かを判定する。なお、第2置換判定部505による置換判定方法の詳細な説明についても、動作の項で詳細に説明する。   Based on the attribute information detected by the attribute detection unit 501, the second replacement determination unit 505 performs pixel values of pixels in each block of the non-character image data for all blocks extracted by the block extraction unit 503. Is replaced with a representative value or an average value of pixel values of pixels belonging to the non-character attribute in the pixel block. Note that the detailed description of the replacement determination method by the second replacement determination unit 505 will also be described in detail in the operation section.

第1置換部506は、文字用画像データの全ブロックについて、第1置換判定部504による置換判定結果に応じて、文字用画像データの各ブロック内の画素の画素値を、当該ブロック内における文字属性に属する画素の画素値の代表値または平均値に置換するものである。   The first replacement unit 506 sets the pixel values of the pixels in each block of the character image data for all the blocks of the character image data in accordance with the replacement determination result by the first replacement determination unit 504. The pixel value is replaced with a representative value or an average value of the pixel values belonging to the attribute.

つまり、第1置換判定部504により置換すると判定された場合、第1置換部506は、文字用画像データの各ブロック内の画素の画素値を、前記代表値または前記平均値に置換する。一方、第1置換判定部504により置換しないと判定された場合、第1置換部506は、文字用画像データの各ブロック内の画素の画素値を、前記代表値または前記平均値に置換しない。   That is, when it is determined by the first replacement determination unit 504 that the replacement is performed, the first replacement unit 506 replaces the pixel value of the pixel in each block of the character image data with the representative value or the average value. On the other hand, when the first replacement determining unit 504 determines not to replace, the first replacing unit 506 does not replace the pixel value of the pixel in each block of the character image data with the representative value or the average value.

第2置換部507は、非文字用画像データの全ブロックについて、第2置換判定部505による置換判定結果に応じて、非文字用画像データの各ブロック内の画素の画素値を、当該ブロック内における非文字属性に属する画素の画素値の代表値または平均値に置換するものである。   The second replacement unit 507 sets the pixel values of the pixels in each block of the non-character image data in all the blocks of the non-character image data according to the replacement determination result by the second replacement determination unit 505. Are replaced with a representative value or an average value of pixel values of pixels belonging to the non-character attribute.

つまり、第2置換判定部505により置換すると判定された場合、第2置換部507は、非文字用画像データの各ブロック内の画素の画素値を、前記代表値または前記平均値に置換する。一方、第2置換判定部505により置換しないと判定された場合、第2置換部507は、非文字用画像データの各ブロック内の画素の画素値を、前記代表値または前記平均値に置換しない。   That is, when it is determined by the second replacement determination unit 505 that the replacement is performed, the second replacement unit 507 replaces the pixel value of the pixel in each block of the non-character image data with the representative value or the average value. On the other hand, when the second replacement determining unit 505 determines not to replace, the second replacing unit 507 does not replace the pixel value of the pixel in each block of the non-character image data with the representative value or the average value. .

第1非可逆圧縮部508は、第1置換部505により置換された文字用画像データの全ブロックに対して、非可逆圧縮方式で圧縮処理を施し、圧縮処理後のデータを記憶部400に記憶する。ここで、非可逆圧縮方式は、圧縮後のデータと伸張後のデータとが完全には一致しないが、可逆圧縮方式に比べて圧縮率の高い圧縮方式であり、例えば、JPEG等を用いることができる。   The first irreversible compression unit 508 performs compression processing on all blocks of the character image data replaced by the first replacement unit 505 by the irreversible compression method, and stores the compressed data in the storage unit 400. To do. Here, the lossy compression method is a compression method in which the compressed data and the decompressed data do not completely match, but the compression rate is higher than that of the lossless compression method. For example, JPEG or the like may be used. it can.

第2非可逆圧縮部509は、第2置換部506により置換された非文字用画像データの全ブロックに対して、非可逆圧縮方式で圧縮処理を施し、圧縮処理後のデータを記憶部400に記憶する。第2非可逆圧縮部509も、第1非可逆圧縮部508と同様に、JPEG等を用いることができる。   The second lossy compression unit 509 performs compression processing on all blocks of the non-character image data replaced by the second replacement unit 506 using the lossy compression method, and stores the compressed data in the storage unit 400. Remember. Similarly to the first irreversible compression unit 508, the second irreversible compression unit 509 can use JPEG or the like.

可逆圧縮部510は、属性検出部501により検出された属性情報に対して、可逆圧縮方式で圧縮処理を施し、可逆圧縮処理後のデータを記憶部400に記憶する。ここで、可逆圧縮方式は、非可逆圧縮方式に比べて圧縮率は低いが、圧縮後のデータと伸張後のデータとが一致させることができる圧縮方式である。この実施形態では、可逆圧縮方式として、MMR(Modified Modified READ)等を用いる場合を例示する。   The lossless compression unit 510 performs compression processing on the attribute information detected by the attribute detection unit 501 using the lossless compression method, and stores the data after the lossless compression processing in the storage unit 400. Here, the lossless compression method is a compression method in which the compression rate is lower than that of the lossy compression method, but the compressed data and the decompressed data can be matched. In this embodiment, the case where MMR (Modified Modified READ) etc. are used as a reversible compression system is illustrated.

伸張部600は、記憶部400に記憶されている圧縮処理が施されている、文字用画像データ、非文字用画像データ及び属性情報のデータのそれぞれを伸張し、それら伸張した各データを合成して画像データを生成するものである。伸張部400は、生成した画像データを記憶部400に記憶する。図1に示すように、伸張部600は、第1非可逆伸張部601、第2非可逆伸張部602、可逆伸張部603、合成部604を有する。   The decompression unit 600 decompresses each of the character image data, the non-character image data, and the attribute information data that has been subjected to the compression processing stored in the storage unit 400, and combines the decompressed data. Image data is generated. The decompression unit 400 stores the generated image data in the storage unit 400. As illustrated in FIG. 1, the decompression unit 600 includes a first irreversible decompression unit 601, a second irreversible decompression unit 602, a reversible decompression unit 603, and a synthesis unit 604.

第1非可逆伸張部601は、第1非可逆圧縮部508により圧縮処理されたデータに対して、伸張処理を施すものである。   The first irreversible decompression unit 601 performs a decompression process on the data compressed by the first irreversible compression unit 508.

第2非可逆伸張部602は、第2非可逆圧縮部508により圧縮処理されたデータに対して、伸張処理を施すものである。   The second lossy decompression unit 602 performs decompression processing on the data compressed by the second lossy compression unit 508.

可逆伸張部603は、可逆圧縮部510により圧縮処理されたデータに対して、伸張処理を施すものである。   The lossless decompression unit 603 performs decompression processing on the data compressed by the lossless compression unit 510.

合成部604は、可逆伸張部603により伸張された属性情報に基づいて、各画素の属性が文字属性であるか又は非文字属性であるかを判別し、第1非可逆伸張部601又は第2非可逆伸張部602により伸張された文字属性又は非文字属性の画素値を画素毎に選択し、画像データを合成するものである。また、合成部604は、合成した画像データを記憶部400に記憶する。   The synthesizing unit 604 determines whether the attribute of each pixel is a character attribute or a non-character attribute based on the attribute information expanded by the reversible expansion unit 603, and the first irreversible expansion unit 601 or second The pixel value of the character attribute or non-character attribute expanded by the irreversible expansion unit 602 is selected for each pixel, and the image data is synthesized. Further, the synthesis unit 604 stores the synthesized image data in the storage unit 400.

ディスプレイ300は、画像処理装置100の記憶部400に記憶されている伸張部600を読み出し、その画像データに基づく画像を表示画面に出力する。   The display 300 reads the decompression unit 600 stored in the storage unit 400 of the image processing apparatus 100 and outputs an image based on the image data to the display screen.

なお、図1には図示していないが、画像処理装置100は通信ネットワークに接続されその通信ネットワークに接続されたほかの装置とデータ通信を行うネットワークインターフェースを備えるようにしてもよい。画像処理装置100は、他の装置から送信された画像データを、ネットワークインターフェースを介して受信し、受信した画像データに対して圧縮処理を実行するようにしても良い。   Although not shown in FIG. 1, the image processing apparatus 100 may include a network interface that is connected to a communication network and performs data communication with other apparatuses connected to the communication network. The image processing apparatus 100 may receive image data transmitted from another apparatus via a network interface, and execute a compression process on the received image data.

(A−2)第1の実施形態の動作
図3は、第1の実施形態に係る画像処理装置100における圧縮処理の動作を示すフローチャートである。
(A-2) Operation of the First Embodiment FIG. 3 is a flowchart showing the operation of compression processing in the image processing apparatus 100 according to the first embodiment.

まず、画像処理装置100において、圧縮部500は画像データに対して圧縮処理の要求があるか否かを判断する。そして、圧縮処理の要求がある場合、圧縮部500は、記憶部400に記憶されている画像データに対して圧縮処理を実行する。以下では、圧縮部500が圧縮処理を行なう画像データを原画像データと呼んで説明する。   First, in the image processing apparatus 100, the compression unit 500 determines whether there is a request for compression processing on image data. If there is a request for compression processing, the compression unit 500 executes compression processing on the image data stored in the storage unit 400. Hereinafter, the image data that the compression unit 500 performs compression processing will be referred to as original image data.

[ステップS100]
圧縮部500において、属性検出部501は、記憶部400に記憶されている原画像データを読み出し、その読み出した原画像データから既知の領域分離アルゴリズムに基づいて、文字や線画等の文字領域と、文字や線画以外の非文字領域とを検出して分離する。そして、属性検出部501は、原画像データの各画素に文字属性又は非文字属性のいずれかを示す属性情報を付与する(図2参照)。
[Step S100]
In the compression unit 500, the attribute detection unit 501 reads the original image data stored in the storage unit 400, and based on a known region separation algorithm from the read original image data, character regions such as characters and line drawings, Detect and separate non-character areas other than characters and line drawings. Then, the attribute detection unit 501 assigns attribute information indicating either a character attribute or a non-character attribute to each pixel of the original image data (see FIG. 2).

ここで、属性検出部501による文字領域(文字属性)と非文字領域(非文字属性)との検出・分離方法は、種々の方法を適用する。例えば、モノクロ画像の場合、ある画素の画素値と閾値とを比較し、画素値が閾値を超える場合には当該画素が文字領域に属し、画素値が閾値以下の場合には当該画素が非文字領域に属すると判断するようにしても良い。また例えば、当該画素の画素値と、当該画素に隣接する画素の画素値又は当該画素の周辺に位置している周辺画素の画素値(例えば周辺画素の画素値の平均値等)との差分をとり、その差分値が閾値を超える場合には、当該画素が文字領域に属すると判断し、差分値が閾値以下の場合、当該画素が非文字領域に属する判断するようにしても良い。   Here, various methods are applied to the method for detecting and separating the character area (character attribute) and the non-character area (non-character attribute) by the attribute detection unit 501. For example, in the case of a monochrome image, the pixel value of a certain pixel is compared with a threshold value. If the pixel value exceeds the threshold value, the pixel belongs to the character area, and if the pixel value is less than the threshold value, the pixel is a non-character. You may make it judge that it belongs to an area | region. In addition, for example, the difference between the pixel value of the pixel and the pixel value of the pixel adjacent to the pixel or the pixel value of the peripheral pixel located around the pixel (for example, the average value of the pixel values of the peripheral pixels) is calculated. On the other hand, when the difference value exceeds the threshold value, it may be determined that the pixel belongs to the character area, and when the difference value is equal to or less than the threshold value, it may be determined that the pixel belongs to the non-character area.

[ステップS200]
色情報分離部502は、ステップS100で読み出した原画像データを、属性検出部501により付与された属性情報に基づき、文字用画像データと非文字用画像データとを生成する。ここで、例えば、文字用画像データ及び非文字用画像データは、ステップS100で読み出した原画像データと同じ画像データであっても良いし、また例えば、既知の画像加工処理により原画像データに対して所定の加工処理を施した画像データであってもよい。
[Step S200]
The color information separation unit 502 generates character image data and non-character image data from the original image data read in step S <b> 100 based on the attribute information given by the attribute detection unit 501. Here, for example, the character image data and the non-character image data may be the same image data as the original image data read in step S100, or the original image data may be processed by known image processing, for example. Alternatively, the image data may be subjected to predetermined processing.

[ステップS300]
ブロック検出部503は、ステップS200で生成した文字用画像データと、非文字用画像データを、例えば縦8画素×横8画素の画像サイズのブロックに区分する。また、ブロック検出部503は、属性検出部501により生成された各画素の属性情報に対しても、上記区分したブロックのサイズ(8×8画素)の画像サイズに区分する。このブロック区分を前画素に対して行う。
[Step S300]
The block detection unit 503 classifies the character image data and the non-character image data generated in step S200 into blocks each having an image size of, for example, 8 pixels vertically × 8 pixels horizontally. Also, the block detection unit 503 classifies the attribute information of each pixel generated by the attribute detection unit 501 into the image size of the segmented block size (8 × 8 pixels). This block division is performed on the previous pixel.

[ステップS400]
第1置換判定部504は、ブロック抽出部503により得られたブロック区分された属性情報に基づき、文字用画像データのブロック内の各画素の画素値を、文字属性に属する各画素の画素値から得られる代表値または平均値に置き換えるか否かを判定する。ステップS400の処理は、ブロック抽出部503により抽出された全てのブロックに対して行なわれる。
[Step S400]
The first replacement determination unit 504 determines the pixel value of each pixel in the block of the character image data from the pixel value of each pixel belonging to the character attribute based on the block-divided attribute information obtained by the block extraction unit 503. It is determined whether or not to replace the obtained representative value or average value. The process of step S400 is performed on all the blocks extracted by the block extraction unit 503.

ここで、代表値とは、画像データ(例えば、文字用画像データ)の各画素の画素値の最大値又は最小値であっても良いし、又は、画像データに関係なく、予め設定された値であっても良い。平均値とは、画像データのブロック内の各画素の画素値を相加平均した平均値であっても良い。   Here, the representative value may be the maximum value or the minimum value of the pixel values of each pixel of the image data (for example, character image data), or a preset value regardless of the image data. It may be. The average value may be an average value obtained by arithmetically averaging the pixel values of each pixel in the block of image data.

[ステップS450]
第2置換判定部505は、ブロック抽出部503により得られたブロック区分された属性情報に基づき、非文字用画像データのブロック内の各画素の画素値を、非文字属性に属する各画素の画素値から得られる代表値または平均値に置き換えるか否かを判定する。ステップS450の処理は、ブロック抽出部503により抽出された全てのブロックに対して行なわれる。
[Step S450]
The second replacement determination unit 505 determines the pixel value of each pixel in the block of the non-character image data based on the block-divided attribute information obtained by the block extraction unit 503, and the pixel value of each pixel belonging to the non-character attribute. It is determined whether or not the value is replaced with a representative value or an average value obtained from the value. The process of step S450 is performed on all the blocks extracted by the block extraction unit 503.

[ステップS500]
第1置換部506は、ステップS400で得られた置換判定結果に基づき置換するという判定の場合は、ステップS200で得られた文字用画像データの各ブロック内の文字属性に属する画素の画素値から、文字用画像データの当該ブロック内の代表値または平均値を算出する。そして、第1置換部506は、文字用画像データの当該ブロックの各画素の画素値を、その算出した代表値または平均値に置き換える。これにより、加工された文字用画像データを得ることができる。
[Step S500]
If it is determined that the replacement is performed based on the replacement determination result obtained in step S400, the first replacement unit 506 uses the pixel value of the pixel belonging to the character attribute in each block of the character image data obtained in step S200. The representative value or average value in the block of the character image data is calculated. Then, the first replacement unit 506 replaces the pixel value of each pixel of the block of the character image data with the calculated representative value or average value. Thereby, the processed character image data can be obtained.

また同様に、第2置換部507は、ステップS450で得られた置換判定結果に基づき置換するという場合は、ステップS200で得られた非文字用画像データの各ブロック内の非文字属性に属する画素の画素値から、非文字用画像データの当該ブロック内の非文字属性に属する画素の画素値の代表値または平均値を算出する。そして、第2置換部507は、非文字用画像データの当該ブロックの各画素の画素値を、その算出した代表値または平均値に置き換える。これにより、加工された非文字用画像データを得ることができる。   Similarly, when the second replacement unit 507 performs replacement based on the replacement determination result obtained in step S450, the pixel belonging to the non-character attribute in each block of the non-character image data obtained in step S200. From the pixel value, a representative value or an average value of the pixel values of the pixels belonging to the non-character attribute in the block of the non-character image data is calculated. Then, the second replacement unit 507 replaces the pixel value of each pixel of the block of the non-character image data with the calculated representative value or average value. Thus, processed non-character image data can be obtained.

[ステップS600]
第1非可逆圧縮部508は、ステップS500で得られた加工された文字用画像データに対してJPEG圧縮処理を行う。これによりJPEG圧縮された文字用画像データを生成することができ、第1非可逆圧縮部508は、生成したJPEG圧縮された文字用画像データを記憶部400に記憶する。
[Step S600]
The first lossy compression unit 508 performs JPEG compression processing on the processed character image data obtained in step S500. As a result, JPEG-compressed character image data can be generated, and the first lossy compression unit 508 stores the generated JPEG-compressed character image data in the storage unit 400.

第2非可逆圧縮部509は、ステップS500で得られた加工された非文字用画像データに対してJPEG圧縮処理を行う。これによりJPEG圧縮された非文字用画像データを生成することができ、第2非可逆圧縮部509は、生成したJPEG圧縮された非文字用画像データを記憶部400に記憶する。   The second lossy compression unit 509 performs JPEG compression processing on the processed non-character image data obtained in step S500. Thus, JPEG-compressed non-character image data can be generated, and the second lossy compression unit 509 stores the generated JPEG-compressed non-character image data in the storage unit 400.

可逆圧縮部510は、ステップS100で得られた属性情報に対してMMR圧縮処理を行う。これによりMMR圧縮された属性情報を生成することができ、可逆圧縮部510は、生成したMMR圧縮された属性情報を記憶部400に記憶する。この実施形態では、可逆圧縮方式としてMMR圧縮を用いたが、JB1G2など、2値データを可逆圧縮する手法であれば、種々の可逆圧縮方式を適用することができる。   The lossless compression unit 510 performs MMR compression processing on the attribute information obtained in step S100. Thereby, attribute information compressed by MMR can be generated, and the lossless compression unit 510 stores the generated attribute information compressed by MMR in the storage unit 400. In this embodiment, MMR compression is used as the lossless compression method, but various lossless compression methods can be applied as long as the method is a lossless compression method for binary data such as JB1G2.

図4は、第1の実施形態に係る置換判定処理の動作を示すフローチャートである。第1置換判定部504及び第2置換判定部505はいずれも、基本的には図4に例示する処理を行なう。以下では、非文字用画像データに対して画素値の置換を行うか否かを判定する第2置換判定部505の処理を例示して説明する。   FIG. 4 is a flowchart showing the operation of the replacement determination process according to the first embodiment. Both the first replacement determination unit 504 and the second replacement determination unit 505 basically perform the processing illustrated in FIG. Hereinafter, the processing of the second replacement determination unit 505 that determines whether or not to perform pixel value replacement on non-character image data will be described as an example.

[ステップS401]
まず、第2置換判定部505は、ブロック抽出部503により区分された各ブロックにおいて、各画素の属性情報に基づいて、非文字属性に属する画素の領域が2個以上の領域に分離されているか否かを判定する。非文字属性に属する画素の領域が2個以上ある場合(2個以上の分離領域がある場合)、処理はS404に移行し、そうでない場合、処理はS402に移行する。
[Step S401]
First, the second replacement determination unit 505 determines in each block divided by the block extraction unit 503 whether the pixel region belonging to the non-character attribute is separated into two or more regions based on the attribute information of each pixel. Determine whether or not. When there are two or more pixel regions belonging to the non-character attribute (when there are two or more separation regions), the process proceeds to S404, and otherwise, the process proceeds to S402.

図5は、第1の実施形態に係る各ブロック内の分離領域の有無を説明する説明図である。図5では、説明を容易にするために、縦8画素×横8画素のブロックにおいて、属性情報「1:文字属性」を「黒色」で表し、属性情報「0:非文字属性」を「白色」で表している。   FIG. 5 is an explanatory diagram illustrating the presence / absence of a separation region in each block according to the first embodiment. In FIG. 5, in order to facilitate the description, in a block of 8 vertical pixels × 8 horizontal pixels, the attribute information “1: character attribute” is represented by “black”, and the attribute information “0: non-character attribute” is represented by “white”. ".

図5(A)は、分離領域が2個以上ない場合を例示している。図5(A)に示すように、非文字属性に属する画素(白色の画素)は周辺の画素の属性情報が同じであり、当該ブロック内において非文字属性に属する画素領域が連結している。一方、図5(B)は、2個以上の文意領域がある場合を例示している。図5(B)に示すように、非文字属性に属する白色画素(白色の画素)は当該ブロック内において分離領域BL1と分離領域BL2の2個以上に分離している。   FIG. 5A illustrates a case where there are no two or more separation regions. As shown in FIG. 5A, pixels belonging to non-character attributes (white pixels) have the same attribute information of surrounding pixels, and pixel areas belonging to non-character attributes are connected in the block. On the other hand, FIG. 5B illustrates a case where there are two or more textual areas. As shown in FIG. 5B, a white pixel (white pixel) belonging to a non-character attribute is separated into two or more of a separation region BL1 and a separation region BL2 in the block.

[ステップS402]
非文字属性に属する領域(分離領域)が2個以上分離している場合、第2置換判定部505は、それぞれの分離領域に属する画素の画素値の平均値を求める。また、第2置換判定部505は、各分離領域の画素値の平均値の差分をとり、その差分値と閾値とを比較する。そして、前記差分値が閾値より大きい場合、処理をS403に移行し、前記差分値が閾値以下の場合、処理をS404に移行する。つまり、第2置換判定部505は、互いに連結して分離領域に属する全ての画素の画素値の平均値を求め、分離領域間の画素値の平均値の差分値が閾値を超えているか否かを判定する。
[Step S402]
When two or more regions (separation regions) belonging to the non-character attribute are separated, the second replacement determination unit 505 obtains an average value of the pixel values of the pixels belonging to each separation region. In addition, the second replacement determination unit 505 takes the difference between the average values of the pixel values in each separation region, and compares the difference value with a threshold value. If the difference value is greater than the threshold value, the process proceeds to S403. If the difference value is equal to or less than the threshold value, the process proceeds to S404. That is, the second replacement determination unit 505 obtains the average value of the pixel values of all the pixels that are connected to each other and belong to the separation region, and whether or not the difference value of the average value of the pixel values between the separation regions exceeds the threshold value. Determine.

図6は、第1の実施形態に係る置換判定処理を説明する説明図である。図6では、原画像データから縦8画素×横8画素のブロックを取り出し、取り出したブロックにおける属性情報と、その属性情報のブロックに対応する非文字属性画像データを表している。   FIG. 6 is an explanatory diagram for explaining the replacement determination process according to the first embodiment. In FIG. 6, a block of 8 vertical pixels × 8 horizontal pixels is extracted from the original image data, and attribute information in the extracted block and non-character attribute image data corresponding to the attribute information block are shown.

この例の場合、原画像データは、図6(a)に示すように、白色の下地に、黒色の太文字の「E」であるとするモノクロ画像としている。また、ブロック抽出部503により抽出されたブロックは、図6(b)のように、文字「E」のエッジ部分であるとする。また、文字属性に属する画素を黒色で表しており、非文字属性に属する画素を白色で表している。   In this example, as shown in FIG. 6A, the original image data is a monochrome image that is “E”, which is a black bold letter, on a white background. Further, the block extracted by the block extraction unit 503 is assumed to be an edge portion of the character “E” as shown in FIG. Also, pixels belonging to the character attribute are represented in black, and pixels belonging to the non-character attribute are represented in white.

このとき、属性検出部501は、原画像データから抽出したブロック(図6(b)参照)から、図6(c)に示すような各画素の属性情報を検出したものとする。   At this time, it is assumed that the attribute detection unit 501 detects attribute information of each pixel as shown in FIG. 6C from a block (see FIG. 6B) extracted from the original image data.

つまり、本来であれば、図6(b)の縦8画素×横8画素のブロックのように、左から第4列目〜第8列目の領域が文字属性であることを検出されるべきである。しかし、ここでは、図6(c)のように、第4列目及び第5列目の領域が文字属性であり、第6列目〜第8列目の領域が非文字属性であると検出されたものとする。これは、属性検出部501が、当該画素の画素値と当該画素に隣接する又は周辺の画素の画素値との差分値と、閾値との比較により属性情報を決定しているため、差分値の大きさによって、正しく属性情報が検出されないことが生じ得るためである。   That is, normally, it should be detected that the area from the fourth column to the eighth column from the left is a character attribute, as in the block of 8 vertical pixels × 8 horizontal pixels in FIG. It is. However, here, as shown in FIG. 6C, it is detected that the areas in the fourth and fifth columns have character attributes and the areas in the sixth to eighth columns have non-character attributes. It shall be assumed. This is because the attribute detection unit 501 determines the attribute information by comparing the difference value between the pixel value of the pixel and the pixel value of the pixel adjacent to or around the pixel and the threshold value. This is because the attribute information may not be detected correctly depending on the size.

また、図6(d)は、色情報分離部502により生成された非文字用画像データを示している。   FIG. 6D shows the non-character image data generated by the color information separation unit 502.

第2置換判定部505は、図6(c)の属性情報に基づいて、左から第1列目〜第3列目の領域BL1と第6列目〜第8列目の領域BL2とが、非文字属性の分離領域であると判断する。そのため、第2置換判定部505は、分離領域BL1に属する全画素の画素値の平均値と、分離領域BL2に属する全画素の画素値の平均値とを求める。   Based on the attribute information of FIG. 6C, the second replacement determination unit 505 determines that the region BL1 in the first column to the third column and the region BL2 in the sixth column to the eighth column from the left are Judged as a non-character attribute separation region. Therefore, the second replacement determination unit 505 obtains the average value of the pixel values of all the pixels belonging to the separation region BL1 and the average value of the pixel values of all the pixels belonging to the separation region BL2.

そして、第2置換判定部505は、分離領域BL1の画素値の平均値と、分離領域BL2の画素値の平均値との差分をとり、その差分値が閾値より大きいか否かを判断する。   Then, the second replacement determination unit 505 calculates a difference between the average value of the pixel values in the separation region BL1 and the average value of the pixel values in the separation region BL2, and determines whether or not the difference value is larger than the threshold value.

ここで、分離領域の画素値の平均値を説明する。例えば、原画像データがカラーデータの場合、(すなわち非文字用画像データがカラーデータの場合)、分離領域に属する画素の画素値(RGBの3チャネルの画素値)のそれぞれの平均値を求める。分離領域間で、3チャネルの画素値の平均値の差分値と閾値との比較をチャネル毎に行ない、1チャネルでも差分値が閾値より大きい場合は、分離領域間の画素値の差が大きいとする。一方、モノクロデータの場合は、1チャネルのみの画素値の平均値を求め、平均値の差分値と閾値とを比較し、その差分値が閾値より大きい場合は、分離領域間の画素値の差が大きいものとする。   Here, the average value of the pixel values in the separation region will be described. For example, when the original image data is color data (that is, when the non-character image data is color data), the average value of the pixel values (RGB three-channel pixel values) of the pixels belonging to the separation region is obtained. When the difference value of the average value of the pixel values of the three channels and the threshold value are compared for each channel between the separation regions, and the difference value is larger than the threshold value even in one channel, the difference in the pixel value between the separation regions is large. To do. On the other hand, in the case of monochrome data, the average value of the pixel values of only one channel is obtained, the difference value of the average value is compared with the threshold value, and if the difference value is greater than the threshold value, the difference in pixel value between the separation regions Is assumed to be large.

[ステップS403]
ステップS402で、画素値の平均値の差分値が閾値より大きい場合、第2置換判定部505は、画素ブロックに対して、置換しないとの判定結果を与える。判定結果を与えたら、ステップS400の処理を終了させる。
[Step S403]
If the difference value of the average value of the pixel values is larger than the threshold value in step S402, the second replacement determination unit 505 gives a determination result that the pixel block is not replaced. If the determination result is given, the process of step S400 is terminated.

[ステップS404]
ステップS401で非文字属性が分離してない場合、またはステップS402で分離領域間の非文字用画像データの画素値の平均値の差分値が閾値より小さい場合、第2置換判定部505は、画素ブロックに対して置換するとの判定結果を与える。判定結果を与えたらステップS400の処理を終了させる。
[Step S404]
If the non-character attribute is not separated in step S401, or if the difference value of the average value of the pixel values of the non-character image data between the separated regions is smaller than the threshold value in step S402, the second replacement determination unit 505 Gives the result of the replacement for the block. If the determination result is given, the process of step S400 is terminated.

図4及び図3のステップ450の処理は、1個のブロックに注目して置換判定処理の動作を説明した。しかし、第1置換判定部504及び第2置換判定部505は、原画像データから抽出した全てブロックに対して、置換判定結果を行う。   In the process of step 450 in FIGS. 4 and 3, the operation of the replacement determination process has been described focusing on one block. However, the first replacement determination unit 504 and the second replacement determination unit 505 perform replacement determination results for all blocks extracted from the original image data.

次に、第1の実施形態に係る伸張部600による画像伸張処理の動作を説明する。   Next, the operation of image expansion processing by the expansion unit 600 according to the first embodiment will be described.

伸張部600は伸張処理の要求があった場合、圧縮部500により圧縮された画像データに対して伸張部600は伸張処理を施す。   When there is a request for decompression processing, the decompression unit 600 performs decompression processing on the image data compressed by the compression unit 500.

第1非可逆伸張部601は、ステップS600で得られたJPEG圧縮された文字用画像データに対してJPEG伸張処理を行う。これにより、JPEG伸張された文字用画像データを生成することができる。   The first lossy decompression unit 601 performs JPEG decompression processing on the JPEG-compressed character image data obtained in step S600. Thereby, JPEG decompressed character image data can be generated.

第2非可逆伸張部602は、ステップS600で得られたJPEG圧縮された非文字用画像データに対してJPEG伸張処理を行う。これにより、JPEG伸張された非文字用画像データを生成することができる。   The second lossy decompression unit 602 performs JPEG decompression processing on the JPEG-compressed non-character image data obtained in step S600. As a result, JPEG decompressed non-character image data can be generated.

MMR伸張部603は、ステップS600で得られた圧縮された属性情報に対してMMR伸張処理を行う。これにより、MMR伸張された属性情報を生成することができる。   The MMR decompression unit 603 performs an MMR decompression process on the compressed attribute information obtained in step S600. Thereby, the attribute information expanded by MMR can be generated.

合成部604は、伸張された属性情報に基づいて、伸張された文字用画像データと非文字用画像データとを合成して1枚の画像データを出力する。   The combining unit 604 combines the expanded character image data and non-character image data based on the expanded attribute information, and outputs one piece of image data.

ここで、合成部604による合成方法は、属性情報に基づいて当該画素が文字属性である場合、伸張された文字用画像データの対応する画素の画素値を取り出し、また当該画素が非文字属性であった場合、伸張された非文字用画像データの対応する画素の画素値を取り出して、その画素値を、対応する画素に用いることで1枚の画像を生成する。このように生成した合成画像データは記憶部400に記憶される。   Here, in the composition method by the composition unit 604, when the pixel has the character attribute based on the attribute information, the pixel value of the corresponding pixel of the expanded character image data is extracted, and the pixel has the non-character attribute. If there is, the pixel value of the corresponding pixel of the decompressed non-character image data is extracted, and one image is generated by using the pixel value for the corresponding pixel. The composite image data generated in this way is stored in the storage unit 400.

また、ディスプレイ300は記憶部400に記憶された合成画像データを画面に表示させる。   Further, the display 300 displays the composite image data stored in the storage unit 400 on the screen.

図7は、従来の画像処理装置による画像圧縮、伸張及び合成を説明する説明する説明図であり、図8は、この実施形態に係る画像処理装置100による画像圧縮、伸張及び合成を説明する説明図である。   FIG. 7 is an explanatory diagram for explaining image compression, decompression, and composition by a conventional image processing apparatus, and FIG. 8 is an explanation for explaining image compression, decompression, and composition by the image processing apparatus 100 according to this embodiment. FIG.

ここでは、第1の実施形態に係る画像処理に従って圧縮、伸張、合成処理を施した場合に生成する画像データと、従来の画像処理に従って生成する画像データとを比較する。   Here, image data generated when compression, expansion, and composition processing is performed according to the image processing according to the first embodiment is compared with image data generated according to conventional image processing.

図7及び図8では、図6の例と同様に、ブロックにおける画素の属性情報が正しく検出されなかった場合を例示している(図7(c)、図8(c)参照)。   7 and 8 exemplify a case where the pixel attribute information in the block is not correctly detected, as in the example of FIG. 6 (see FIGS. 7C and 8C).

図7の従来の画像処理では、文字用画像データは、代表値又は平均値(以下代表値等と呼ぶ。)である黒色画素(文字属性)に置換される(図7(d1)及び図7(d2)参照)。また、非文字用画像データについても、代表値等である白色画素(非文字属性)に置換される(図7(e1)及び図7(e2))。このように、画素ブロック内の画素値を一様な画素値に置換することにより、JPEG圧縮した際には圧縮効果は高い。しかし、その反面、図7(f)及び図7(g)に示すように、合成処理した際、文字「E」の内側が白抜けしてしまうという致命的な画質の劣化が生じてしまう。   In the conventional image processing of FIG. 7, the character image data is replaced with black pixels (character attributes) which are representative values or average values (hereinafter referred to as representative values) (FIG. 7 (d1) and FIG. 7). (See (d2)). Further, the non-character image data is also replaced with white pixels (non-character attributes) which are representative values and the like (FIG. 7 (e1) and FIG. 7 (e2)). Thus, by replacing the pixel values in the pixel block with uniform pixel values, the compression effect is high when JPEG compression is performed. However, as shown in FIGS. 7F and 7G, on the other hand, when the composition process is performed, a fatal image quality deterioration occurs in which the inside of the character “E” is blanked out.

一方、図8において、第1の実施形態に係る画像処理装置100は、第1置換判定部504により文字用画像データの各画素の画素値の置換をしても良いと判定し、第1置換部506が文字用画像データの各画素の画素値を代表値等に置換する。これに対して、第2置換判定部505は、属性情報の分離領域間の画素値の平均値の差分値が閾値より大きいと判断したときには、置換をしないと判定する。従って、第2置換部507は代表値等の置換を行なわない。そのため、図8(e2)に示すように、圧縮処理された非文字用画像データにおいて、各画素は置換されていない画素値が維持されることになる。これにより、合成処理した際、文字「E」の内側で、白抜けが発生しない画像を得ることができる。   On the other hand, in FIG. 8, the image processing apparatus 100 according to the first embodiment determines that the pixel value of each pixel of the character image data may be replaced by the first replacement determination unit 504 and performs the first replacement. A unit 506 replaces the pixel value of each pixel of the character image data with a representative value or the like. On the other hand, the second replacement determination unit 505 determines that the replacement is not performed when it is determined that the difference value of the average value of the pixel values between the separation regions of the attribute information is larger than the threshold value. Therefore, the second replacement unit 507 does not replace the representative value or the like. Therefore, as shown in FIG. 8 (e2), in the non-character image data that has been subjected to the compression process, the pixel value in which each pixel is not replaced is maintained. As a result, it is possible to obtain an image in which white spots do not occur inside the character “E” when the composition processing is performed.

(A−3)第1の実施形態の効果
以上のように、第1の実施形態によれば、画素値の置換を行う際に置換判定を行うことにより、従来のように、属性情報の境目で生じ得る致命的な画質の劣化が生じなくなり、画質の向上の効果が得られる。
(A-3) Effects of the First Embodiment As described above, according to the first embodiment, by performing replacement determination when performing pixel value replacement, the boundary between attribute information as in the past is achieved. Thus, the fatal image quality degradation that may occur is not generated, and the effect of improving the image quality is obtained.

(B)他の実施形態
上述した実施形態においても種々の変形実施形態を言及したが、本発明は以下の変形実施形態にも適用することができる。
(B) Other Embodiments Although various modified embodiments have been mentioned in the above-described embodiments, the present invention can also be applied to the following modified embodiments.

上述した実施形態では、第1置換判定部及び第2置換判定部が、ブロック内で分離領域があるか否かを判定し、各分離領域に属する画素の画素値の平均値を求め、分離領域間の平均値の差分値が閾値より大きいか否かを判定する場合を例示した。これは、分離領域の画素が文字領域又は非文字領域かを判定するためである。この変形実施形態として、各分離領域の画素値の平均値のそれぞれと、文字領域又は非文字領域を分別する閾値とを比較して、分離領域毎に文字領域又は非文字領域であるかを判定するようにしても良い。この場合、複数の分離領域のいずれかが閾値を超える場合に、第1置換判定部又は第2置換判定部が置換しないと判定するようにしても良い。   In the embodiment described above, the first replacement determination unit and the second replacement determination unit determine whether or not there is a separation region in the block, obtain an average value of pixel values of pixels belonging to each separation region, and separate the separation region The case where it is determined whether or not the difference value of the average value between them is larger than the threshold value is illustrated. This is to determine whether the pixel in the separation area is a character area or a non-character area. In this modified embodiment, the average value of the pixel values of each separation area is compared with a threshold value for separating the character area or the non-character area to determine whether each separation area is a character area or a non-character area. You may make it do. In this case, when any of the plurality of separation regions exceeds the threshold, the first replacement determination unit or the second replacement determination unit may determine that the replacement is not performed.

100…画像処理装置、200…スキャナ、300…ディスプレイ、500…圧縮部、501…属性検出部、502…色情報分離部、503…ブロック抽出部、504…第1置換判定部、505…第2置換判定部、506…第1置換部、507…第2置換部、508…第1非可逆圧縮部、509…第2非可逆圧縮部、510…可逆圧縮部、600…伸張部、601…第1非可逆伸張部、602…第2非可逆伸張部、603…可逆伸張部、604…合成部。   DESCRIPTION OF SYMBOLS 100 ... Image processing apparatus, 200 ... Scanner, 300 ... Display, 500 ... Compression part, 501 ... Attribute detection part, 502 ... Color information separation part, 503 ... Block extraction part, 504 ... 1st replacement determination part, 505 ... 2nd Replacement determination unit, 506... First replacement unit, 507... Second replacement unit, 508... First lossy compression unit, 509... Second lossy compression unit, 510. 1 irreversible decompression unit, 602... Second irreversible decompression unit, 603... Reversible decompression unit, 604.

Claims (9)

画像データから所定の属性情報を検出する属性情報検出部と、
前記画像データから色情報を属性毎に分離する色情報分離部と、
前記色情報分離部により分離された属性毎の色情報のそれぞれを、所定の画像処理単位に区分するブロック抽出部と、
前記属性毎の色情報のそれぞれについて、前記画像処理単位毎に、各画像処理単位内の属性毎の色情報を、所定値に置換するか否かを判定する置換判定部と、
前記属性毎の色情報のそれぞれについて、前記置換判定部の置換判定結果に応じて、前記画像処理単位毎に、各画像処理単位内の属性毎の色情報を、当該画像処理単位内の同一の属性の色情報から得られる所定値に置き換える置換部と、
前記置換部により得られた属性毎の色情報のそれぞれを、非可逆圧縮方式で圧縮処理を行なう非可逆圧縮部と、
前記属性情報検出部により得られた前記属性情報を可逆圧縮方式で圧縮処理を行なう可逆圧縮部と
を備えることを特徴とする画像処理装置。
An attribute information detector for detecting predetermined attribute information from the image data;
A color information separation unit that separates color information from the image data for each attribute;
A block extraction unit that divides each color information for each attribute separated by the color information separation unit into predetermined image processing units;
For each of the color information for each attribute, for each image processing unit, a replacement determination unit that determines whether or not to replace the color information for each attribute in each image processing unit with a predetermined value;
For each color information for each attribute, the color information for each attribute in each image processing unit is the same in the image processing unit for each image processing unit according to the replacement determination result of the replacement determination unit. A replacement unit for replacing with a predetermined value obtained from the color information of the attribute;
Each of the color information for each attribute obtained by the replacement unit, a lossy compression unit that performs compression processing in a lossy compression method,
An image processing apparatus comprising: a lossless compression unit that compresses the attribute information obtained by the attribute information detection unit using a lossless compression method.
前記置換判定部が、
前記画像処理単位毎に、前記属性情報に基づいて、同一の属性に属する領域が当該画像処理単位内で分離しているか否かを判定し、
前記同一の属性に属する領域が分離している場合に、それぞれの分離領域に属する当該属性の色情報の平均値を分離領域毎に求め、分離領域間の平均値の差分値が所定の閾値より大きいか否かを判定する
ことを特徴とする請求項1に記載の画像処理装置。
The replacement determination unit
For each image processing unit, based on the attribute information, determine whether or not areas belonging to the same attribute are separated within the image processing unit,
When areas belonging to the same attribute are separated, the average value of the color information of the attribute belonging to each separation area is obtained for each separation area, and the difference value of the average value between the separation areas is greater than a predetermined threshold value. It is determined whether it is large. The image processing apparatus of Claim 1 characterized by the above-mentioned.
前記置換判定部は、
前記分離領域間の平均値の差分値が所定の閾値より大きいとき、当該画像処理単位内の当該属性の色情報を前記所定値に置換しないと判定し、
前記分離領域間の平均値の差分値が所定の閾値以下のとき、当該画像処理単位内の当該属性の色情報を前記所定値に置換すると判定する
ことを特徴とする請求項2に記載の画像処理装置。
The replacement determination unit
When the difference value of the average value between the separation regions is larger than a predetermined threshold, it is determined not to replace the color information of the attribute in the image processing unit with the predetermined value,
3. The image according to claim 2, wherein when the difference value of the average value between the separation regions is equal to or less than a predetermined threshold value, it is determined that the color information of the attribute in the image processing unit is replaced with the predetermined value. Processing equipment.
前記属性情報が、文字属性又は非文字属性を含むものであり、
前記置換部が、
前記ブロック抽出部により区分された文字属性の色情報について、前記画像処理単位内の各画素の画素値を、当該画像処理単位内の文字属性に属する各画素の画素値に基づいて算出した代表値に置換し、
前記ブロック抽出部により区分された非文字属性の色情報について、前記画像処理単位内の各画素の画素値を、当該画像処理単位内の非文字属性に属する各画素の画素値に基づいて算出した代表値に置換する
ことを特徴とする請求項1〜3のいずれかに記載の画像処理装置。
The attribute information includes a character attribute or a non-character attribute;
The replacement unit is
For the color information of the character attribute segmented by the block extraction unit, the representative value calculated from the pixel value of each pixel in the image processing unit based on the pixel value of each pixel belonging to the character attribute in the image processing unit Is replaced with
For the non-character attribute color information divided by the block extraction unit, the pixel value of each pixel in the image processing unit is calculated based on the pixel value of each pixel belonging to the non-character attribute in the image processing unit. The image processing apparatus according to claim 1, wherein the image processing apparatus substitutes a representative value.
前記代表値が、前記各画像処理単位内の文字属性又は非文字属性に属する各画素の画素値の平均値であることを特徴とする請求項4に記載の画像処理装置。   The image processing apparatus according to claim 4, wherein the representative value is an average value of pixel values of pixels belonging to a character attribute or a non-character attribute in each image processing unit. 前記非可逆圧縮部が、前記置換部により得られた属性毎の色情報を、JPEG方式で圧縮処理を行なうことを特徴とする請求項1〜5のいずれかに記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the irreversible compression unit compresses the color information for each attribute obtained by the replacement unit using a JPEG method. 前記非可逆圧縮部により圧縮された属性毎の色情報をそれぞれ伸張する非可逆伸張部と、
前記可逆圧縮部により圧縮された前記属性情報を伸張する可逆伸張部と、
前記可逆伸張部により伸張された前記属性情報に基づいて各画素の属性を判別し、判別した属性に応じて画素毎に前記非可逆伸張部により伸張した色情報を選択して合成する合成部と
をさらに備えることを特徴とする請求項1〜6のいずれかに記載の画像処理装置。
An irreversible decompression unit that decompresses color information for each attribute compressed by the irreversible compression unit;
A lossless decompression unit that decompresses the attribute information compressed by the lossless compression unit;
A combining unit that determines an attribute of each pixel based on the attribute information expanded by the lossless expansion unit, and selects and combines color information expanded by the irreversible expansion unit for each pixel according to the determined attribute; The image processing apparatus according to claim 1, further comprising:
コンピュータを
画像データから所定の属性情報を検出する属性情報検出部と、
前記画像データから色情報を属性毎に分離する色情報分離部と、
前記色情報分離部により分離された属性毎の色情報のそれぞれを、所定の画像処理単位に区分するブロック抽出部と、
前記属性毎の色情報のそれぞれについて、前記画像処理単位毎に、各画像処理単位内の属性毎の色情報を、所定値に置換するか否かを判定する置換判定部と、
前記属性毎の色情報のそれぞれについて、前記置換判定部の置換判定結果に応じて、前記画像処理単位毎に、各画像処理単位内の属性毎の色情報を、当該画像処理単位内の同一の属性の色情報から得られる所定値に置き換える置換部と、
前記置換部により得られた属性毎の色情報のそれぞれを、非可逆圧縮方式で圧縮処理を行なう非可逆圧縮部と、
前記属性情報検出部により得られた前記属性情報を可逆圧縮方式で圧縮処理を行なう可逆圧縮部と
して機能させることを特徴とする画像処理プログラム。
An attribute information detection unit for detecting predetermined attribute information from image data;
A color information separation unit that separates color information from the image data for each attribute;
A block extraction unit that divides each color information for each attribute separated by the color information separation unit into predetermined image processing units;
For each of the color information for each attribute, for each image processing unit, a replacement determination unit that determines whether or not to replace the color information for each attribute in each image processing unit with a predetermined value;
For each color information for each attribute, the color information for each attribute in each image processing unit is the same in the image processing unit for each image processing unit according to the replacement determination result of the replacement determination unit. A replacement unit for replacing with a predetermined value obtained from the color information of the attribute;
Each of the color information for each attribute obtained by the replacement unit, a lossy compression unit that performs compression processing in a lossy compression method,
An image processing program that causes the attribute information obtained by the attribute information detection unit to function as a lossless compression unit that performs compression processing using a lossless compression method.
属性情報検出部が、画像データから所定の属性情報を検出し、
色情報分離部が、前記画像データから色情報を属性毎に分離し、
ブロック抽出部が、前記色情報分離部により分離された属性毎の色情報のそれぞれを、所定の画像処理単位に区分し、
置換判定部が、前記属性毎の色情報のそれぞれについて、前記画像処理単位毎に、各画像処理単位内の属性毎の色情報を、所定値に置換するか否かを判定し、
置換部が、前記属性毎の色情報のそれぞれについて、前記置換判定部の置換判定結果に応じて、前記画像処理単位毎に、各画像処理単位内の属性毎の色情報を、当該画像処理単位内の同一の属性の色情報から得られる所定値に置き換え、
非可逆圧縮部が、前記置換部により得られた属性毎の色情報のそれぞれを、非可逆圧縮方式で圧縮処理を行ない、
可逆圧縮部が、前記属性情報検出部により得られた前記属性情報を可逆圧縮方式で圧縮処理を行なう
ことを特徴とする画像処理装方法。
The attribute information detection unit detects predetermined attribute information from the image data,
A color information separating unit for separating color information for each attribute from the image data;
The block extraction unit divides each color information for each attribute separated by the color information separation unit into predetermined image processing units,
For each of the color information for each attribute, a replacement determination unit determines, for each image processing unit, whether to replace the color information for each attribute in each image processing unit with a predetermined value,
For each of the color information for each attribute, the replacement unit converts the color information for each attribute in each image processing unit for each image processing unit according to the replacement determination result of the replacement determination unit. Replace with the predetermined value obtained from the color information of the same attribute in
The irreversible compression unit performs compression processing of each color information for each attribute obtained by the replacement unit in an irreversible compression method,
An image processing method, wherein a lossless compression unit compresses the attribute information obtained by the attribute information detection unit by a lossless compression method.
JP2014256850A 2014-12-19 2014-12-19 Image processor, program and method Pending JP2016119528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014256850A JP2016119528A (en) 2014-12-19 2014-12-19 Image processor, program and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014256850A JP2016119528A (en) 2014-12-19 2014-12-19 Image processor, program and method

Publications (1)

Publication Number Publication Date
JP2016119528A true JP2016119528A (en) 2016-06-30

Family

ID=56243170

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014256850A Pending JP2016119528A (en) 2014-12-19 2014-12-19 Image processor, program and method

Country Status (1)

Country Link
JP (1) JP2016119528A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10523843B2 (en) 2017-11-14 2019-12-31 Ricoh Company, Ltd. Image processing apparatus, image processing method, and non-transitory computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10523843B2 (en) 2017-11-14 2019-12-31 Ricoh Company, Ltd. Image processing apparatus, image processing method, and non-transitory computer-readable storage medium

Similar Documents

Publication Publication Date Title
US7970225B2 (en) Image processing device, image processing method, image processing program and computer-readable recording medium on which the program is recorded
Jung et al. A new histogram modification based reversible data hiding algorithm considering the human visual system
JP5132530B2 (en) Image coding apparatus, image processing apparatus, and control method thereof
JP5875637B2 (en) Image processing apparatus and image processing method
US8503036B2 (en) System and method of improving image quality in digital image scanning and printing by reducing noise in output image data
JP5132517B2 (en) Image processing apparatus and image processing method
KR100669251B1 (en) Apparatus and method for automatically analyzing digital image quality
US20060115169A1 (en) Apparatus for compressing document and method thereof
US8395813B2 (en) Subtractive color method, subtractive color processing apparatus, image forming apparatus, and computer-readable storage medium for computer program
JP6743092B2 (en) Image processing apparatus, image processing control method, and program
JP6939449B2 (en) Image processing equipment, image processing method and image processing program
US8620081B2 (en) Image processing apparatus, method, and storage medium for determining attributes
US8971647B2 (en) Image compression apparatus, image compression method, and storage medium
JP2020114028A (en) Image processing apparatus, image processing method, and program
US8810877B2 (en) Image processing apparatus, image processing method, and storage medium for eliminating blurring of scanned image
JP6370080B2 (en) Image processing apparatus, image processing method, and program.
JP2022030055A (en) Image processing apparatus, image processing method, and program
JP2016119528A (en) Image processor, program and method
JP6091400B2 (en) Image processing device
JP5757904B2 (en) Image compression device
JP4375106B2 (en) Image processing device
JP6641982B2 (en) Image processing apparatus, image processing method, and program
JP2015088910A (en) Image processing device
US11924390B2 (en) Apparatus, method, and storage medium for performing color reduction processing
JP2007335983A (en) Image processor