JP2010278535A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2010278535A
JP2010278535A JP2009126560A JP2009126560A JP2010278535A JP 2010278535 A JP2010278535 A JP 2010278535A JP 2009126560 A JP2009126560 A JP 2009126560A JP 2009126560 A JP2009126560 A JP 2009126560A JP 2010278535 A JP2010278535 A JP 2010278535A
Authority
JP
Japan
Prior art keywords
image
pixel
character
layer image
character attribute
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
JP2009126560A
Other languages
Japanese (ja)
Other versions
JP5072907B2 (en
Inventor
Toshiaki Mutsuo
敏明 六尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Mita Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Mita Corp filed Critical Kyocera Mita Corp
Priority to JP2009126560A priority Critical patent/JP5072907B2/en
Publication of JP2010278535A publication Critical patent/JP2010278535A/en
Application granted granted Critical
Publication of JP5072907B2 publication Critical patent/JP5072907B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus capable of generating a plurality of different character attribute layer images from an input image without deteriorating picture quality and capable of generating a highly compressed image file in which color irregularity or blur is not generated in a boundary part between a line drawing and a pattern. <P>SOLUTION: The image processing apparatus includes: a storage processing part 27 for subjecting a character attribute layer image generated by a character attribute discrimination part 21 to reversible compression, subjecting an input image to non-reversible compression, storing respective compressed images in storage parts 6, 7, and extending the character attribute layer image or the input image stored in the storage part; and a correction processing part 26 for correcting the character attribute layer image based on the input image and the character attribute layer image stored in respective storage parts 6, 7. A resolution conversion part 23 separates the input image stored in the storage part into a character color layer image and a background color layer image based on the corrected character attribute layer image and converts respective layer images into respective predetermined resolutions. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、入力画像から文字領域と文字領域以外の背景領域を識別する文字属性レイヤ画像を生成する文字属性判別部と、文字属性レイヤ画像に基づいて入力画像から文字色レイヤ画像と背景色レイヤ画像に分離し、各レイヤ画像をそれぞれ所定の解像度に変換する解像度変換部と、解像度変換された文字属性レイヤ画像を可逆圧縮するとともに文字色レイヤ画像及び背景色レイヤ画像を非可逆圧縮する画像圧縮部と、圧縮された各レイヤ画像に基づいて高圧縮画像ファイルを生成するファイル生成部と、画像を記憶する記憶部とを備えている画像処理装置に関する。   The present invention relates to a character attribute determining unit that generates a character attribute layer image for identifying a character region and a background region other than the character region from the input image, and a character color layer image and a background color layer from the input image based on the character attribute layer image. A resolution conversion unit that separates each layer image into a predetermined resolution, and an image compression that performs lossless compression of the character attribute layer image after resolution conversion and lossy compression of the character color layer image and the background color layer image. The present invention relates to an image processing apparatus that includes a storage unit that stores a high-compression image file based on each of the compressed layer images, and a storage unit that stores the image.

特許文献1に記載されているように、文字等の線画と写真等の絵柄が混在した画像を、画質が劣化しないように高圧縮符号化するために、ITU−T勧告T.44に規定されるMRC(Mixed Raster Content)が注目されている。   As described in Japanese Patent Application Laid-Open No. H10-260260, an ITU-T recommendation T.264 is used for high-compression encoding of an image in which a line drawing such as a character and a design such as a photograph are mixed so that the image quality does not deteriorate. MRC (Mixed Raster Content) defined in No. 44 is drawing attention.

MRC(Mixed Raster Content)では、線画と連続階調の絵柄とが混在する画像データが、前景レイヤ、背景レイヤ、前景レイヤと背景レイヤの何れを選択するかを示す文字属性レイヤに分離され、各レイヤの特性に応じて個別に解像度変換された後に圧縮符号化される。   In MRC (Mixed Raster Content), image data in which a line drawing and a continuous tone pattern are mixed is separated into a character attribute layer indicating which of the foreground layer, the background layer, and the foreground layer and the background layer is selected. After the resolution is individually converted according to the characteristics of the layer, it is compressed and encoded.

前景レイヤは線画の色情報を表す多値画像であり、背景レイヤは線画領域以外の絵柄つまり背景の色情報を表す多値画像であり、文字属性レイヤは線画の形状を表す二値画像である。   The foreground layer is a multi-value image representing line drawing color information, the background layer is a multi-value image representing a pattern other than the line drawing area, that is, background color information, and the character attribute layer is a binary image representing the shape of the line drawing. .

前景レイヤと背景レイヤを例えばJPEG(Joint Photographic Experts Group)方式のような非可逆圧縮方式で圧縮符号化し、文字属性レイヤを例えばMMR(Modified Modified READ)方式のような可逆圧縮方式で圧縮符号化することにより、JPEG方式等単独で線画と絵柄が混在した画像データを圧縮する場合と比べて圧縮率及び圧縮画像品質を高く保つことができる。   The foreground layer and the background layer are compressed and encoded by a lossy compression method such as JPEG (Joint Photographic Experts Group), and the character attribute layer is compressed and encoded by a lossless compression method such as MMR (Modified Modified READ). As a result, the compression rate and the compressed image quality can be kept high as compared with the case of compressing image data in which a line drawing and a pattern are mixed by the JPEG method alone.

通常、符号化された画像を復号化して元の解像度に戻す場合に、バイリニア補間法やキュービック補間法が採用されるが、例えば、前景レイヤが補間処理されると、復号化された前景レイヤの線画の輪郭にボケや色の滲みが発生する。   Usually, when decoding an encoded image and returning it to the original resolution, bilinear interpolation or cubic interpolation is employed. For example, when the foreground layer is interpolated, the decoded foreground layer is decoded. Blur or color blur occurs in the outline of the line drawing.

前景レイヤの線画の輪郭部で領域外の画素値が補間処理で反映されるためであり、特にスキャナ等により読み取られた画像では、線画の輪郭にボケが生じているので、一層顕著になる。また、非可逆圧縮された前景レイヤを復号化すると、モスキートノイズやリンギングノイズが発生し、補間処理によりこれらのノイズ成分が取り込まれて、ボケや色の滲みの原因となる。   This is because pixel values outside the region are reflected by the interpolation processing in the outline portion of the line drawing in the foreground layer, and particularly in an image read by a scanner or the like, the outline of the line drawing is blurred, which becomes even more remarkable. In addition, when the lossy-compressed foreground layer is decoded, mosquito noise and ringing noise are generated, and these noise components are taken in by interpolation processing, which causes blurring and color blurring.

補間処理後の前景レイヤを文字属性レイヤでマスクしても、文字輪郭の色濁り部分やぼけ部分が再生画像に現れる。このような現象は、背景レイヤでも同様に発生する。   Even if the foreground layer after the interpolation process is masked with the character attribute layer, the portion of the character outline that is muddy or blurred appears in the reproduced image. Such a phenomenon similarly occurs in the background layer.

特に線画の場合、このような輪郭近傍の色濁りやぼけは、再生画像の見栄えを悪くし、更に細線部分を含む線画の場合、細線部分が太線部分と異なった色になってしまい、例えば一連の文字が途中で分離したように見える等の問題があった。   Particularly in the case of a line drawing, such color turbidity and blurring in the vicinity of the outline deteriorate the appearance of the reproduced image, and in the case of a line drawing including a thin line portion, the fine line portion becomes a color different from the thick line portion. There seemed to be problems such as the characters appearing to be separated on the way.

そこで、特許文献2には、以下のような画像処理装置が開示されている。つまり、当該画像処理装置は、図10(a)に示すように、オリジナル画像1000を、文字・線画の領域を表すマスクプレーン1040と、文字・線画の色情報を担う前景プレーン1042と、文字・線画以外の画像情報を持つ背景プレーン1044に分離する。そして、前景プレーン1042を低解像度化する際、マスクプレーン1040を参照し、低解像度化結果の各画素が文字・線画に属する画素か否かを判別し、文字・線画に属する画素は、元の前景プレーン1042の文字・線画に属する画素の値のみから補間する。低解像度化された縮小前景プレーン1052、縮小背景プレーン1054を高解像度化する場合も、縮小マスク1053,1055を参照して同様の補間を行なう。   Therefore, Patent Document 2 discloses the following image processing apparatus. That is, as shown in FIG. 10A, the image processing apparatus converts an original image 1000 into a mask plane 1040 representing a character / line drawing area, a foreground plane 1042 carrying character / line drawing color information, The background plane 1044 having image information other than the line drawing is separated. When the resolution of the foreground plane 1042 is reduced, the mask plane 1040 is referred to determine whether each pixel of the resolution reduction result is a pixel belonging to a character / line drawing. Interpolation is performed only from the values of pixels belonging to the character / line drawing on the foreground plane 1042. In the case of increasing the resolution of the reduced foreground plane 1052 and the reduced background plane 1054 that have been reduced in resolution, the same interpolation is performed with reference to the reduced masks 1053 and 1055.

このような画像処理装置は、図10(b)に示すように、MRCフォーマットのデータを受信する受信部152,フォーマット解凍部154,マスク伸長部156,マスク縮小部158,前景伸長部160,背景伸長部162,前景拡大部164,背景拡大部166,一層合成部168,画像出力部170を備えた構成となっている。   As shown in FIG. 10B, such an image processing apparatus includes a receiving unit 152 that receives MRC format data, a format decompression unit 154, a mask decompression unit 156, a mask reduction unit 158, a foreground decompression unit 160, and a background. The expansion unit 162, the foreground enlargement unit 164, the background enlargement unit 166, the single layer synthesis unit 168, and the image output unit 170 are provided.

以下に詳述する。フォーマット解凍部154は、受信部152で受信したMRCフォーマットのデータを各プレーン(圧縮データ)に分解し、マスク伸長部156は、フォーマット解凍部154から与えられる各プレーンの圧縮データを、対応する符号化方式に従ってデータ伸長して、マスクプレーン1040、縮小前景プレーン1052及び縮小背景プレーン1054を得る。   This will be described in detail below. The format decompression unit 154 decomposes the data in the MRC format received by the reception unit 152 into each plane (compressed data), and the mask decompression unit 156 converts the compressed data of each plane given from the format decompression unit 154 into the corresponding code. The data is expanded according to the conversion method to obtain a mask plane 1040, a reduced foreground plane 1052, and a reduced background plane 1054.

マスク縮小部158は、マスク伸長部156でデータ伸張されたマスクプレーン1040を再度縮小し、縮小前景プレーン1052、縮小背景プレーン1054の夫々の解像度に合わせた低解像度の縮小マスクプレーン1053,1055を作成し、前景拡大部164は、縮小前景プレーン1052を、縮小前の前景プレーン1042と同じ解像度になるまで拡大するにあたり、縮小マスクプレーン1053を参照しつつ拡大処理を実行し前景プレーン1062を得て、背景拡大部166は、縮小背景プレーン1054を、縮小前の背景プレーン1044と同じ解像度になるまで拡大するにあたり、縮小マスクプレーン1055を参照しつつ拡大処理を実行し背景プレーン1064を得る。   The mask reduction unit 158 reduces the mask plane 1040 whose data has been expanded by the mask expansion unit 156 again, and creates reduced-resolution reduced mask planes 1053 and 1055 that match the resolutions of the reduced foreground plane 1052 and the reduced background plane 1054, respectively. The foreground enlargement unit 164 obtains the foreground plane 1062 by performing enlargement processing with reference to the reduction mask plane 1053 when enlarging the reduced foreground plane 1052 to the same resolution as the foreground plane 1042 before reduction. When enlarging the reduced background plane 1054 to the same resolution as the background plane 1044 before reduction, the background enlargement unit 166 executes enlargement processing with reference to the reduced mask plane 1055 to obtain the background plane 1064.

このようにして得られた前景プレーン1062及び背景プレーン1064をマスク1040でマスクすることで、再生画像1070の文字と絵柄部分の輪郭部分の色濁りを防止または低減する構成となっている。   The foreground plane 1062 and the background plane 1064 obtained in this way are masked with a mask 1040, thereby preventing or reducing the color turbidity of the characters and the outline of the picture portion of the reproduced image 1070.

特開平11−122479号公報JP-A-11-122479 特開2004−187000号公報JP 2004-187000 A

スキャナ等の画像入力装置を介して得られる入力画像に対して文字属性判別部により生成される文字属性レイヤ画像には、領域分離アルゴリズムによっては、文字領域以外の絵柄領域のエッジがノイズとして抽出される場合があり、そのような場合に、ノイズを除去する必要がある。また、分離された文字領域のうち特定の文字領域、例えば、特定の色の文字領域を文字属性レイヤ画像として生成することが要求される場合もある。   Depending on the region separation algorithm, the edge of the pattern area other than the character area is extracted as noise in the character attribute layer image generated by the character attribute determination unit for the input image obtained via an image input device such as a scanner. In such a case, it is necessary to remove noise. Further, it may be required to generate a specific character region, for example, a character region of a specific color, as the character attribute layer image among the separated character regions.

そのような場合、再度、文字属性判別部により文字属性レイヤ画像を生成する必要があるが、通常、記憶容量の観点で入力画像を生のデータで保存することはなく、JPEG方式等を用いて非可逆圧縮した画像がメモリ6またはメモリ6を介してハードディスク7に格納されるため、圧縮後の入力画像を伸張処理する必要がある。   In such a case, it is necessary to generate the character attribute layer image again by the character attribute discriminating unit, but usually the input image is not saved as raw data from the viewpoint of the storage capacity, and the JPEG method or the like is used. Since the irreversibly compressed image is stored in the hard disk 7 via the memory 6 or the memory 6, it is necessary to decompress the input image after compression.

このような伸張画像は画質が劣化しているため、文字属性判別部21により伸張画像から文字属性レイヤ画像を生成すると、解像度の劣化が顕著な文字領域を適正に分離できないという問題があった。   Since such a decompressed image has deteriorated image quality, when a character attribute layer image is generated from the decompressed image by the character attribute discriminating unit 21, there has been a problem that a character region having a remarkable resolution deterioration cannot be properly separated.

また、上述の特許文献2に記載された画像処理装置では、縮小前景プレーン1052、縮小背景プレーン1054の解像度に合わせた低解像度の縮小マスクプレーン1053,1055を作成し、縮小前景プレーン1052、縮小背景プレーン1054を拡大するにあたり、縮小マスクプレーン1053,1055を参照しつつ拡大処理を実行する必要があるので、マスク縮小部158を備える必要があり、その処理も煩雑となる。   In the image processing apparatus described in Patent Document 2 described above, low-resolution reduced mask planes 1053 and 1055 that match the resolution of the reduced foreground plane 1052 and the reduced background plane 1054 are created, and the reduced foreground plane 1052 and the reduced background are generated. In enlarging the plane 1054, it is necessary to execute an enlarging process while referring to the reduced mask planes 1053 and 1055, so that it is necessary to provide the mask reducing unit 158, and the process becomes complicated.

さらに、マスクプレーン1040を、縮小前景プレーン1052や縮小背景プレーン1054と同じまで低解像度化すると文字の輪郭が崩れ、そのような崩れた文字の輪郭に基づいて縮小前景プレーン1052、縮小背景プレーン1054を拡大処理した前景プレーン1062、背景プレーン1064から再生画像1070を得ても、低解像度化前の文字の輪郭が正確に再現できないという問題がある点でさらなる改良が求められている。   Furthermore, when the resolution of the mask plane 1040 is reduced to the same level as that of the reduced foreground plane 1052 and the reduced background plane 1054, the outline of the character is broken, and the reduced foreground plane 1052 and the reduced background plane 1054 are changed based on the broken outline of the character. Further improvement is demanded in that there is a problem that even if the reproduced image 1070 is obtained from the foreground plane 1062 and the background plane 1064 that have been subjected to the enlargement process, the outline of the character before the resolution reduction cannot be accurately reproduced.

そこで、本発明の目的は、上述の問題に鑑み、入力画像から画質を劣化させずに異なる複数の文字属性レイヤ画像を生成可能にし、線画と絵柄の境界部に色ムラやボケが発生することの無い高圧縮画像ファイルを生成可能な画像処理装置を提供する点にある。   In view of the above problems, an object of the present invention is to enable generation of a plurality of different character attribute layer images from an input image without degrading the image quality, and to generate color unevenness and blur at the boundary between a line drawing and a pattern. An object of the present invention is to provide an image processing apparatus capable of generating a high-compression image file having no image.

上述の目的を達成するため、本発明による画像処理装置の第一の特徴構成は、特許請求の範囲の書類の請求項1に記載した通り、入力画像から文字領域と文字領域以外の背景領域を識別する文字属性レイヤ画像を生成する文字属性判別部と、文字属性レイヤ画像に基づいて入力画像から文字色レイヤ画像と背景色レイヤ画像に分離し、各レイヤ画像をそれぞれ所定の解像度に変換する解像度変換部と、解像度変換された文字属性レイヤ画像を可逆圧縮するとともに文字色レイヤ画像及び背景色レイヤ画像を非可逆圧縮する画像圧縮部と、圧縮された各レイヤ画像に基づいて高圧縮画像ファイルを生成するファイル生成部と、画像を記憶する記憶部とを備えている画像処理装置であって、文字属性判別部により生成された文字属性レイヤ画像を可逆圧縮するとともに、入力画像を非可逆圧縮してそれぞれ記憶部に記憶し、記憶部に記憶された文字属性レイヤ画像または入力画像を伸張処理する記憶処理部と、記憶部に記憶された入力画像と文字属性レイヤ画像とに基づいて文字属性レイヤ画像を補正する補正処理部を備え、解像度変換部は、補正された文字属性レイヤ画像に基づいて記憶部に記憶された入力画像から文字色レイヤ画像と背景色レイヤ画像に分離し、各レイヤ画像をそれぞれ所定の解像度に変換するように構成されている点にある。   In order to achieve the above-described object, a first characteristic configuration of an image processing apparatus according to the present invention includes a character region and a background region other than the character region from an input image, as described in claim 1 of the claims. A character attribute determination unit that generates a character attribute layer image to be identified, and a resolution that separates an input image into a character color layer image and a background color layer image based on the character attribute layer image, and converts each layer image to a predetermined resolution. A conversion unit, an image compression unit that losslessly compresses the character attribute layer image whose resolution has been converted and irreversibly compresses the character color layer image and the background color layer image, and a high-compression image file based on each compressed layer image An image processing apparatus comprising a file generation unit for generating and a storage unit for storing an image, wherein the character attribute layer image generated by the character attribute determination unit is In addition to inverse compression, the input image is irreversibly compressed and stored in the storage unit, and a storage processing unit that decompresses the character attribute layer image or the input image stored in the storage unit, and the input image stored in the storage unit And a correction processing unit that corrects the character attribute layer image based on the character attribute layer image, and the resolution conversion unit converts the character color layer image from the input image stored in the storage unit based on the corrected character attribute layer image. And the background color layer image, and each layer image is converted to a predetermined resolution.

記憶処理部によって記憶部に記憶された入力画像は非可逆圧縮されているため、伸張処理すると画質が低下する場合があるが、圧縮前の入力画像に基づいて生成された文字属性レイヤ画像は、可逆圧縮されているため伸張処理しても画質が低下することが無い。   Since the input image stored in the storage unit by the storage processing unit is irreversibly compressed, the image quality may deteriorate when the decompression process is performed, but the character attribute layer image generated based on the input image before compression is Since the image is reversibly compressed, the image quality does not deteriorate even when decompression is performed.

そこで、補正処理部は、伸張処理された入力画像に対して所定の処理を施した画像に基づいて文字属性レイヤ画像を補正することにより、文字属性レイヤ画像に含まれる不要な文字属性情報を除去することができる。   Accordingly, the correction processing unit removes unnecessary character attribute information included in the character attribute layer image by correcting the character attribute layer image based on an image obtained by performing predetermined processing on the decompressed input image. can do.

同第二の特徴構成は、同請求項2に記載した通り、上述の第一特徴構成に加えて、補正処理部は、記憶部に記憶された入力画像を、色相、彩度または輝度の何れかの画像に変換し、変換後の入力画像に基づいて文字属性レイヤ画像を補正する点にある。   In the second feature configuration, as described in claim 2, in addition to the first feature configuration described above, the correction processing unit converts the input image stored in the storage unit into one of hue, saturation, and luminance. The character attribute layer image is corrected based on the converted input image.

上述の構成によれば、例えば、入力画像を輝度変換すれば、黒文字が低輝度画像領域となり、絵柄領域が比較的高輝度画像領域となるため、輝度変換画像と文字属性レイヤ画像の画素間で論理演算を行なうことにより、文字属性レイヤ画像から低輝度領域のみを抽出すれば、絵柄領域のエッジノイズを除去することができる。同様に、彩度変換すれば、例えば、文字属性レイヤ画像から文字等の線画として使用されていない高彩度領域を除去することができる。   According to the above configuration, for example, if the luminance of the input image is converted, the black character becomes a low luminance image region and the pattern region becomes a relatively high luminance image region. Therefore, between the pixels of the luminance conversion image and the character attribute layer image. If only a low luminance area is extracted from the character attribute layer image by performing a logical operation, the edge noise of the picture area can be removed. Similarly, if saturation conversion is performed, for example, a high saturation region that is not used as a line drawing of characters or the like can be removed from the character attribute layer image.

同第三の特徴構成は、同請求項3に記載した通り、上述の第一または第二特徴構成に加えて、文字属性レイヤ画像に基づいて生成されるマスク画像に基づいて入力画像から文字色画素を抽出し、抽出された文字色画素から非有効画素を示すインデックス値と同値の画素をインデックス値と異なる画素値に変換した文字色レイヤ画像を生成するインデックス値置換処理部を備え、解像度変換部は、インデックス値置換処理部で処理された文字色レイヤ画像を解像度変換率に基づいて設定される所定画素数の画素ブロックに区分し、マスク画像を参照して、画素ブロックにマスク画像に属する画素が存在すると、当該画素の平均値を解像度変換後の画素値とし、画素ブロックにマスク画像に属する画素が存在しないと、インデックス値を解像度変換後の画素値とする処理を全画素ブロックに繰り返して縮小文字色レイヤ画像を生成し、インデックス値に基づいて判別される縮小文字色レイヤ画像の輪郭部を膨張処理するように構成されている点にある。   According to the third feature configuration, as described in claim 3, in addition to the first or second feature configuration described above, a character color from an input image based on a mask image generated based on a character attribute layer image. It is equipped with an index value replacement processing unit that extracts pixels and generates a character color layer image by converting pixels with the same value as the index value indicating ineffective pixels from the extracted character color pixels to a pixel value different from the index value, and resolution conversion The unit divides the character color layer image processed by the index value replacement processing unit into pixel blocks having a predetermined number of pixels set based on the resolution conversion rate, and refers to the mask image to belong to the mask image in the pixel block If a pixel exists, the average value of the pixel is used as the pixel value after resolution conversion. If there is no pixel belonging to the mask image in the pixel block, the index value is changed. It is configured to generate a reduced character color layer image by repeating the process of converting the pixel value later to all pixel blocks, and dilate the contour portion of the reduced character color layer image determined based on the index value. It is in.

上述の構成によれば、以下の特有の作用効果が奏される。
先ず、解像度変換部により生成される縮小文字色レイヤ画像は、所定画素数の画素ブロックの文字色のみの平均値に基づいて縮小されるので、バイリニア補間法やキュービック補間法を用いる場合に発生する輪郭画素の色の滲みが発生しない。
According to the above-described configuration, the following specific operational effects are exhibited.
First, the reduced character color layer image generated by the resolution conversion unit is reduced based on the average value of only the character colors of the pixel blocks having a predetermined number of pixels, and therefore occurs when the bilinear interpolation method or the cubic interpolation method is used. No blurring of the color of the contour pixel occurs.

しかも、文字属性に対応する領域の画素値が文字色を示す画素値となり、文字属性ではない背景色に対応する領域の画素値がインデックス値となるので、文字属性レイヤ画像を参照することなく、インデックス値に基づいて文字属性に対応する領域を膨張処理することができるようになる。しかも、解像度変換前に膨張処理するよりも著しい演算負荷の低減効果がある。   In addition, the pixel value of the area corresponding to the character attribute becomes a pixel value indicating the character color, and the pixel value of the area corresponding to the background color that is not the character attribute becomes the index value, so without referring to the character attribute layer image, An area corresponding to the character attribute can be expanded based on the index value. In addition, the calculation load is significantly reduced compared to the expansion processing before the resolution conversion.

また、文字色レイヤ画像は、文字色画素から非有効画素を示すインデックス値と同値の画素がインデックス値と異なる画素値に変換されているので、解像度変換部により生成された縮小文字色レイヤ画像の文字色画素が大きく変化するようなことが無く、文字色の画像の劣化を招くことが無い。   In addition, since the character color layer image has been converted from a character color pixel to a pixel value that is the same as the index value indicating an ineffective pixel, the pixel value is different from the index value. The character color pixel does not change greatly, and the character color image does not deteriorate.

さらに、ファイル生成部で生成された高圧縮画像ファイルを伸張した縮小文字色レイヤ画像が、元の解像度に拡大するように解像度変換される場合であっても、解像度変換部で膨張処理された画素の寄与度が大きくなるため、拡大後の文字色レイヤ画像の輪郭に発生するボケや滲みの程度が抑制され、文字属性レイヤ画像でマスクされた文字色レイヤ画像には殆ど影響が現れない。   Further, even if the reduced character color layer image obtained by expanding the highly compressed image file generated by the file generation unit is subjected to resolution conversion so as to expand to the original resolution, the pixel subjected to the expansion processing by the resolution conversion unit Therefore, the degree of blurring or blurring that occurs in the outline of the enlarged character color layer image is suppressed, and the character color layer image masked with the character attribute layer image has little effect.

同第四の特徴構成は、同請求項4に記載した通り、上述の第三の特徴構成に加えて、膨張処理は、膨張対象画素がインデックス値である場合に、膨張対象画素を中心画素とする所定数の画素ブロックのうち、インデックス値を示す画素以外の画素の平均値を膨張対象画素の画素値として生成し、膨張対象画素がインデックス値でない場合に、膨張対象画素を中心画素とする所定数の画素ブロックのうち、中心画素の画素値との差分が所定の閾値以内の画素値の平均値を膨張対象画素の画素値として生成するように構成されている点にある。   In the fourth feature configuration, as described in claim 4, in addition to the third feature configuration described above, when the expansion target pixel is an index value, the expansion processing uses the expansion target pixel as a central pixel. An average value of pixels other than the pixel indicating the index value is generated as the pixel value of the expansion target pixel among the predetermined number of pixel blocks to be processed, and when the expansion target pixel is not the index value, the predetermined value with the expansion target pixel as the central pixel Among the plurality of pixel blocks, an average value of pixel values whose difference from the pixel value of the central pixel is within a predetermined threshold is generated as the pixel value of the expansion target pixel.

解像度変換部で縮小された縮小文字色レイヤ画像または縮小背景色レイヤ画像の輪郭を膨張処理する際に、膨張対象画素がインデックス値である場合に、膨張対象画素の画素値が周辺の文字色または背景色の平均値として生成されるので、膨張対象画素の周辺の文字色または背景色と同等の色を確保することができ、膨張対象画素がインデックス値でない場合に、膨張対象画素の画素値が膨張対象画素の画素値との差分が所定の閾値以内の画素値の平均値として生成されるので、輪郭画素に異なる色の輪郭画素が隣接するような場合に混色を回避することができる。何れの場合でも、膨張対象画素に輪郭画素から急変するような不自然な色の変化が発生するようなことが無く、滑らかな膨張処理効果が得られる。   When expanding the outline of the reduced character color layer image or reduced background color layer image reduced by the resolution conversion unit, if the expansion target pixel is an index value, the pixel value of the expansion target pixel is the surrounding character color or Since it is generated as an average value of the background color, it is possible to secure a character color or background color around the expansion target pixel, and when the expansion target pixel is not an index value, the pixel value of the expansion target pixel is Since the difference from the pixel value of the expansion target pixel is generated as an average value of pixel values within a predetermined threshold, color mixing can be avoided when contour pixels of different colors are adjacent to the contour pixel. In any case, an unnatural color change that suddenly changes from the contour pixel to the expansion target pixel does not occur, and a smooth expansion processing effect can be obtained.

同第五の特徴構成は、同請求項4に記載した通り、上述の第三または第四の特徴構成に加えて、マスク画像が文字属性レイヤ画像の輪郭を収縮処理した画像である点にある。   The fifth feature configuration is that, as described in claim 4, in addition to the third or fourth feature configuration described above, the mask image is an image obtained by shrinking the outline of the character attribute layer image. .

領域分離部により、入力画像から文字色画素が抽出される際に、文字属性レイヤ画像の輪郭を収縮処理した画像がマスク画像として用いられると、入力画像に含まれる文字領域の輪郭部の色ムラを確実に排除することができるようになる。   When the region separation unit extracts character color pixels from the input image, if an image obtained by shrinking the contour of the character attribute layer image is used as a mask image, the color unevenness of the contour portion of the character region included in the input image Can be surely eliminated.

そして、その後の解像度変換部で膨張処理された縮小文字色レイヤ画像は、輪郭部に色ムラの無いくっきりとした画像となる。   Then, the reduced character color layer image expanded by the subsequent resolution conversion unit becomes a clear image with no color unevenness in the contour portion.

以上説明した通り、本発明によれば、入力画像から画質を劣化させずに異なる複数の文字属性レイヤ画像を生成可能にし、線画と絵柄の境界部に色ムラやボケが発生することの無い高圧縮画像ファイルを生成可能な画像処理装置を提供することができるようになった。   As described above, according to the present invention, it is possible to generate a plurality of different character attribute layer images from an input image without degrading image quality, and to prevent color unevenness and blurring from occurring at the boundary between a line drawing and a pattern. An image processing apparatus capable of generating a compressed image file can be provided.

ネットワークシステムの説明図Illustration of network system 複合機の斜視図Multi-function machine perspective view 複合機の主要な機能ブロックの説明図Illustration of the main functional blocks of the MFP 画像処理部周辺の機能ブロックの説明図Functional block diagram around the image processing unit 圧縮伸張画像生成部のブロック構成図Block diagram of the compression / decompression image generator 解像度変換率の説明図Illustration of resolution conversion rate 解像度変換テーブルの説明図Illustration of resolution conversion table 解像度変換手順の説明図Illustration of resolution conversion procedure 膨張処理手順の説明図Explanatory drawing of expansion processing procedure (a)は従来の画像処理装置での画像復元の説明図、(b)は従来の画像処理装置の機能ブロック図(A) is explanatory drawing of the image restoration in the conventional image processing apparatus, (b) is a functional block diagram of the conventional image processing apparatus

以下に、本発明による画像処理装置の一例である複合機について説明する。図1に示すように、複合機1は、PC(パーソナルコンピュータ)91,92、ネットワークプリンタ93、FAX94等が公衆回線やLAN(ローカルエリアネットワーク)等の通信回線95を介して、所定のネットワークプロトコルに従って接続されたネットワークシステムの一部を構成している。   Hereinafter, a multi-function machine which is an example of an image processing apparatus according to the present invention will be described. As shown in FIG. 1, a multifunction machine 1 includes PCs (personal computers) 91 and 92, a network printer 93, a FAX 94, and the like via a communication line 95 such as a public line or a LAN (local area network). Part of a network system connected according to

当該ネットワークシステムは、複合機1やFAX94に備えたスキャナによって読み取られた画像がPC91,92に送信され、PC91,92のアプリケーションで作成された画像がネットワークプリンタ93や複合機1で印刷されるように構成されている。   In the network system, an image read by a scanner provided in the multifunction device 1 or FAX 94 is transmitted to the PCs 91 and 92, and an image created by an application of the PCs 91 and 92 is printed by the network printer 93 or the multifunction device 1. It is configured.

複合機1は、図2,図3,図4に示すように、マンマシンインタフェースである操作部2と、原稿画像を読み取るスキャナ3と、スキャナ3から入力された画像を格納するメモリ6と、操作部2で設定されたコピー濃度などのコピー条件に基づいてメモリ6に格納された画像を処理して出力画像を生成する画像処理部14と、画像処理部14により生成された出力画像に基づいてトナー像を形成し、当該トナー像を用紙に転写、熱定着して当該用紙を出力するプリンタエンジン5と、画像処理部14により画像処理された画像データ等のコンテンツを格納するHDD(ハードディスクドライブ)7等の機能ブロックを備え、各機能ブロックを制御する制御部が設けられている。   2, 3, and 4, the multifunction device 1 includes an operation unit 2 that is a man-machine interface, a scanner 3 that reads a document image, a memory 6 that stores an image input from the scanner 3, An image processing unit 14 that processes an image stored in the memory 6 based on copy conditions such as copy density set in the operation unit 2 to generate an output image, and an output image generated by the image processing unit 14 A printer engine 5 that forms a toner image, transfers the toner image onto a sheet, heat-fixes and outputs the sheet, and an HDD (hard disk drive) that stores contents such as image data processed by the image processing unit 14 ) 7 and other functional blocks, and a control unit for controlling each functional block is provided.

具体的に、操作部2を制御する操作制御部12と、スキャナ3を制御するスキャナ制御部13と、メモリ6を制御するメモリ制御部16と、プリンタエンジン5を制御するプリンタエンジン制御部15と、通信回線95を介して接続されたPC91,92、ネットワークプリンタ93等との通信を制御するネットワークインタフェース回路8と、FAX94と画像データの送受信を行うためのFAXモデム90と、電子メール処理部80と、各制御部を統括制御するシステム制御部17を備え、互いに制御信号を送受信するコマンドバス18及び画像データを送受信する画像バス19を介して接続されている。   Specifically, an operation control unit 12 that controls the operation unit 2, a scanner control unit 13 that controls the scanner 3, a memory control unit 16 that controls the memory 6, and a printer engine control unit 15 that controls the printer engine 5, A network interface circuit 8 for controlling communication with the PCs 91 and 92, the network printer 93, etc. connected via the communication line 95, a FAX modem 90 for transmitting and receiving image data to and from the FAX 94, and an e-mail processing unit 80. Are connected via a command bus 18 for transmitting / receiving control signals to / from each other and an image bus 19 for transmitting / receiving image data.

システム制御部17は、CPUが組み込まれたマイクロコンピュータと、CPUにより実行される制御プログラムや制御用のテーブルデータが格納されたROMと、バスにより接続された上述の各機能ブロックを制御するための演算データや制御データが格納されるRAMを備え、操作部2での入力操作及びネットワーク上のPC91等からの入力操作により、ROMに記憶されているシステムプログラムや各種処理プログラムを読み出して実行することで複合機1を統括制御する。   The system control unit 17 controls the above-described functional blocks connected by a bus, a microcomputer incorporating a CPU, a ROM storing a control program executed by the CPU and table data for control. A RAM for storing calculation data and control data is provided, and system programs and various processing programs stored in the ROM are read and executed by an input operation on the operation unit 2 and an input operation from a PC 91 or the like on the network. To control the multifunction device 1 in an integrated manner.

操作制御部12、スキャナ制御部13、プリンタエンジン制御部15及びメモリ制御部16等は夫々、CPUとCPUの動作プログラムを格納したROMとCPUの作業領域であるRAMと周辺回路などを備えた基板で構成される。各CPUは、システム制御部17の指示に従い動作プログラムを夫々のROMから読み出して実行し、当該動作プログラムに規定されたアルゴリズムに従って動作する。   The operation control unit 12, the scanner control unit 13, the printer engine control unit 15, the memory control unit 16, and the like each include a ROM that stores a CPU and a CPU operation program, a RAM that is a work area of the CPU, a peripheral circuit, and the like. Consists of. Each CPU reads out and executes an operation program from each ROM in accordance with an instruction from the system control unit 17, and operates in accordance with an algorithm defined in the operation program.

スキャナ3は、複合機1の上面に設けられた原稿載置部に載置された原稿画像を光電変換して入力画像としてのデジタル画像を生成し、当該入力画像をメモリ6に格納する。   The scanner 3 photoelectrically converts a document image placed on a document placement unit provided on the upper surface of the multifunction device 1 to generate a digital image as an input image, and stores the input image in the memory 6.

プリンタエンジン5は、電子写真方式により用紙に画像を印刷して出力する機能ブロックで、感光体と、感光体表面を一様に帯電する帯電装置と、出力画像に基づきレーザビームを走査して感光体表面を露光し静電潜像を形成する露光装置と、形成された静電潜像をトナー像として顕像化する現像装置と、トナー像を用紙に転写する転写装置とを備えた画像形成部と、用紙に転写されたトナー像を溶融定着する熱定着装置と、用紙を搬送する搬送機構等を備え、プリンタエンジン制御部15からの指令に応じて各部が協働して印刷動作を実行する。   The printer engine 5 is a functional block that prints an image on paper by an electrophotographic method and outputs it. The photosensitive member, a charging device that uniformly charges the surface of the photosensitive member, a laser beam is scanned based on the output image, and the photosensitive member is scanned. Image forming apparatus comprising: an exposure device that exposes a body surface to form an electrostatic latent image; a developing device that visualizes the formed electrostatic latent image as a toner image; and a transfer device that transfers the toner image onto a sheet. A thermal fixing device that melts and fixes the toner image transferred to the paper, a transport mechanism that transports the paper, etc., and the respective parts cooperate to execute a printing operation in response to a command from the printer engine control unit 15 To do.

操作部2は、複合機1の動作モードを設定するモード設定キーと、各動作モードに応じて必要となる操作キーを表示するとともに、エラー情報等を表示するタッチパネル式の液晶表示部2aと、電源キー、スタートキー及びストップキー等の各種操作キー2bを備えている。   The operation unit 2 displays a mode setting key for setting the operation mode of the multifunction device 1, operation keys necessary for each operation mode, and a touch panel type liquid crystal display unit 2 a for displaying error information and the like, Various operation keys 2b such as a power key, a start key, and a stop key are provided.

モード設定キーには、スキャナ3で読み取られた画像をプリンタエンジン5で印刷するコピーモードを選択するコピーキー、スキャナ3で読み取られた画像をFAXモデム90を介して外部に送信するFAXキー、スキャナ3で読み取られた画像をハードディスク7に区画された記憶領域であるボックスに格納するボックスキー等が含まれる。   The mode setting key includes a copy key for selecting a copy mode in which an image read by the scanner 3 is printed by the printer engine 5, a FAX key for transmitting the image read by the scanner 3 to the outside via the FAX modem 90, and a scanner 3 includes a box key for storing the image read in 3 in a box which is a storage area partitioned in the hard disk 7.

何れのモードに設定されている場合であっても、ネットワークインタフェース回路8を介してPC91,92等から印刷要求され、或いは、FAXモデム90を介して外部のFAX94からの受信があれば、システム制御部17は、対応する画像がプリンタエンジン5により印刷出力され、或いはハードディスク7に格納されるように制御する。   Regardless of which mode is set, if there is a print request from the PC 91, 92 or the like via the network interface circuit 8 or reception from an external FAX 94 via the FAX modem 90, the system control is performed. The unit 17 controls so that the corresponding image is printed out by the printer engine 5 or stored in the hard disk 7.

ボックスキーが操作されて移行するボックスモードでは、ハードディスク7に画像を格納する入力モードと、ハードディスク7に格納された画像を利用する出力モードの何れかが選択され、入力モードが選択されるとスキャナ3で読み取られた画像がハードディスク7に区画された指定領域に画像ファイルとして格納され、出力モードが選択されるとハードディスク7に区画された指定領域の画像ファイルがプリンタエンジン5により印刷出力され、FAXモデム90から送信され、或いは電子メール処理部80から添付ファイルとして送信先に送信される。   In the box mode, which is shifted by operating the box key, either an input mode for storing an image on the hard disk 7 or an output mode using an image stored on the hard disk 7 is selected. When the input mode is selected, the scanner is selected. 3 is stored as an image file in a designated area partitioned on the hard disk 7, and when the output mode is selected, the image file in the designated area partitioned on the hard disk 7 is printed out by the printer engine 5. It is transmitted from the modem 90 or transmitted from the electronic mail processing unit 80 to the transmission destination as an attached file.

画像処理部14は、操作部12で設定された各動作モード及び各動作モードで液晶表示部2aを介して設定された画像処理情報に基づいて、設定メモリ6に格納された入力画像に対して所定の処理を実行し、処理後の画像をプリンタエンジン5に出力し、或いはメモリ6やハードディスク7に格納する画像処理用のASIC等で構成される回路ブロックを備えている。   The image processing unit 14 performs an operation on the input image stored in the setting memory 6 based on each operation mode set by the operation unit 12 and image processing information set via the liquid crystal display unit 2a in each operation mode. A circuit block including an ASIC for image processing or the like that executes predetermined processing and outputs the processed image to the printer engine 5 or stores it in the memory 6 or the hard disk 7 is provided.

画像処理部14は、出力画像生成部31と、圧縮伸張画像生成部20等を備えている。出力画像生成部31及び圧縮伸張画像生成部20のそれぞれは、メモリ6に格納されている原稿一枚分の画像から、所定の走査線数で構成されるブロック画像を読み出して、所定の処理を施した後に処理後のブロック画像を再度メモリ6に格納する処理を全ブロック画像にわたり繰り返し実行することにより所期の処理後の画像をメモリ6上に生成する。   The image processing unit 14 includes an output image generation unit 31, a compression / decompression image generation unit 20, and the like. Each of the output image generation unit 31 and the compression / decompression image generation unit 20 reads a block image composed of a predetermined number of scanning lines from an image of one original stored in the memory 6 and performs a predetermined process. After the processing, the process of storing the processed block image in the memory 6 again is repeatedly performed over all the block images, thereby generating the desired processed image on the memory 6.

出力画像生成部31は、スキャナ3、ネットワークインタフェース回路8、またはFAXモデム90から入力され、メモリ6に格納されたモノクロまたはRGBのカラー成分画素でなる入力画像を読み出して、所定の画像処理を施した画像をメモリ6に書き込み、プリンタエンジン5やFAXモデム90に出力する出力画像を生成するブロックで、カラー調整するカラー補正部31a、倍率変換する拡縮処理部31b、階調変換する階調補正部31c、RGBカラー成分を各トナー色成分に対応したYMCKカラー成分の出力画像に変換するカラー変換部31d等の回路ブロックを備えている。   The output image generation unit 31 reads an input image composed of monochrome or RGB color component pixels input from the scanner 3, the network interface circuit 8, or the FAX modem 90 and stored in the memory 6, and performs predetermined image processing. In this block, the generated image is written in the memory 6 and output to the printer engine 5 or the FAX modem 90. The color correction unit 31a for color adjustment, the enlargement / reduction processing unit 31b for magnification conversion, and the gradation correction unit for tone conversion 31c includes circuit blocks such as a color conversion unit 31d that converts RGB color components into an output image of YMCK color components corresponding to each toner color component.

操作部2の操作情報に基づいて、カラー補正部31a、拡縮処理部31b、階調補正部31c、カラー変換部31dのうちの何れかまたは複数を用いて出力画像が生成される。   Based on the operation information of the operation unit 2, an output image is generated using any one or more of the color correction unit 31a, the enlargement / reduction processing unit 31b, the gradation correction unit 31c, and the color conversion unit 31d.

圧縮伸張画像生成部20は、スキャナ3で読み取られ、或いはネットワークインタフェース回路8を介して入力され、メモリ6に格納された入力画像に基づいて、高圧縮画像ファイル例えば高圧縮PDFファイルを生成し、高圧縮画像ファイルを元の画像ファイルに展開するブロックである。   The compression / decompression image generation unit 20 generates a high-compression image file, for example, a high-compression PDF file, based on an input image read by the scanner 3 or input via the network interface circuit 8 and stored in the memory 6. This is a block for expanding a highly compressed image file into an original image file.

圧縮伸張画像生成部20により生成された高圧縮画像ファイルは、ボックスに保存され、或いは電子メール処理部80により電子メールの添付ファイルとして外部に送信される。   The highly compressed image file generated by the compressed / decompressed image generation unit 20 is stored in a box or transmitted to the outside as an attachment file of an e-mail by the e-mail processing unit 80.

図5に示すように、圧縮伸張画像生成部20は、文字属性判別部21と、インデックス値置換処理部22と、解像度変換部23と、画像圧縮・伸張部24と、ファイル生成部25と、補正処理部26と、記憶処理部27と、画像合成部28等の複数の回路ブロックを備えている。   As shown in FIG. 5, the compression / decompression image generation unit 20 includes a character attribute determination unit 21, an index value replacement processing unit 22, a resolution conversion unit 23, an image compression / decompression unit 24, a file generation unit 25, A plurality of circuit blocks such as a correction processing unit 26, a storage processing unit 27, and an image composition unit 28 are provided.

文字属性判別部21は、メモリ6に記憶された入力画像から、エッジ抽出処理等の公知の領域分離アルゴリズムに基づいて、文字領域と文字領域以外の背景領域を分離し、文字領域つまり文字や線画の領域と、非文字領域つまり絵柄や写真領域とを識別する文字属性レイヤ画像を生成する回路ブロックである。文字属性レイヤ画像は、文字領域を1、非文字領域を0とする二値画像である。   The character attribute discriminating unit 21 separates a character region and a background region other than the character region from the input image stored in the memory 6 based on a known region separation algorithm such as an edge extraction process, and the character region, that is, a character or line drawing. This is a circuit block that generates a character attribute layer image that identifies the area and the non-character area, i.e., the pattern or photo area. The character attribute layer image is a binary image in which the character area is 1 and the non-character area is 0.

尚、文字属性判別部21は、メモリ6に記憶された入力画像に含まれる文字領域において、全ての文字について文字属性レイヤ画像を生成してもよく、或いは、ユーザーが所望する文字についてのみ文字属性レイヤ画像を生成してもよい。例えば、黄色の文字についてのみ文字属性レイヤ画像を生成しないようにしたり、あるいは、黒(グレー)以外の文字については文字属性レイヤ画像を生成しないようにすることにより、文字属性レイヤ画像のファイルサイズを低減することが可能となる。   Note that the character attribute determination unit 21 may generate a character attribute layer image for all characters in the character area included in the input image stored in the memory 6, or character attributes only for characters desired by the user. A layer image may be generated. For example, the file size of the character attribute layer image can be reduced by not generating the character attribute layer image only for yellow characters, or by not generating the character attribute layer image for characters other than black (gray). It becomes possible to reduce.

インデックス値置換処理部22は、メモリ6に記憶された入力画像から所定の非有効画素を示すインデックス値と同値の画素を抽出し、抽出した画素をインデックス値と異なる画素値に変換する回路ブロックである。具体的に、RGBカラー成分が各8ビット階調で表される場合、カラー成分毎に、インデックス値として(0,0,0)の黒画素、(255,255,255)の白画素の何れかが採用される。   The index value replacement processing unit 22 is a circuit block that extracts a pixel having the same value as an index value indicating a predetermined ineffective pixel from the input image stored in the memory 6 and converts the extracted pixel to a pixel value different from the index value. is there. Specifically, when the RGB color components are represented by 8-bit gradations, for each color component, any one of (0, 0, 0) black pixels and (255, 255, 255) white pixels is used as an index value. Is adopted.

インデックス値置換処理部22は、インデックス値として(0,0,0)の黒画素が設定されると、入力画像に、(0,0,0)の黒画素が存在するか否かを探索して、(0,0,0)の黒画素が存在する場合には(1,1,1)に変換する。同様にRGB何れかの画素成分が0であれば1に変換する。   When a black pixel of (0, 0, 0) is set as an index value, the index value replacement processing unit 22 searches for whether or not a black pixel of (0, 0, 0) exists in the input image. If there is a black pixel of (0, 0, 0), it is converted to (1, 1, 1). Similarly, if any pixel component of RGB is 0, it is converted to 1.

インデックス値置換処理部22は、インデックス値として(255,255,255)の白画素が設定されると、入力画像に(255,255,255)の白画素が存在するか否かを探索して、(255,255,255)の白画素が存在する場合には(254,254,254)の画素値に変換する。同様にRGB何れかの画素成分が255であれば254に変換する。   When the white value of (255, 255, 255) is set as the index value, the index value replacement processing unit 22 searches for whether the white pixel of (255, 255, 255) exists in the input image. , (255, 255, 255), the pixel value of (254, 254, 254) is converted. Similarly, if any pixel component of RGB is 255, it is converted to 254.

このようにインデックス値置換処理部22は、インデックス値と同値の画素値を最も差分が小さい画素値で置換するので、入力画像の色合いは殆ど変化することはない。   As described above, the index value replacement processing unit 22 replaces the pixel value having the same value as the index value with the pixel value having the smallest difference, so that the hue of the input image hardly changes.

解像度変換部23は、文字属性レイヤ画像から生成されるマスク画像に基づいて、インデックス値置換処理部22で置換処理された入力画像から文字色画素を抽出した文字色レイヤ画像を生成し、抽出した文字色レイヤ画像が所定の解像度となるように解像度変換する回路ブロックを備えている。   Based on the mask image generated from the character attribute layer image, the resolution conversion unit 23 generates and extracts a character color layer image obtained by extracting character color pixels from the input image replaced by the index value replacement processing unit 22 A circuit block is provided for resolution conversion so that the character color layer image has a predetermined resolution.

詳述すると、解像度変換部23は、行及び列方向に配列された文字色レイヤ画像を解像度変換率に基づいて設定される所定画素数の画素ブロックに区分し、マスク画像を参照して、画素ブロックにマスク画像に属する画素が存在すると、当該画素の平均値を解像度変換後の画素値とし、画素ブロックにマスク画像に属する画素が存在しないと、インデックス値を解像度変換後の画素値とする処理を、画素の配列に沿って区分された全画素ブロックに繰り返して縮小文字色レイヤ画像を生成する。   More specifically, the resolution conversion unit 23 divides the character color layer image arranged in the row and column directions into pixel blocks having a predetermined number of pixels set based on the resolution conversion rate, and refers to the mask image to obtain pixels. If there is a pixel belonging to the mask image in the block, the average value of the pixel is the pixel value after resolution conversion, and if there is no pixel belonging to the mask image in the pixel block, the index value is the pixel value after resolution conversion. Is repeated for all the pixel blocks divided along the pixel arrangement to generate a reduced character color layer image.

図8に示すように、例えば、解像度が600DPIの入力画像から37.5DPIの文字色レイヤ画像を生成する場合には、解像度変換率が1/16となり、入力画像の16画素から解像度変換後の1画素を生成すべく、文字色レイヤ画像を4×4の画素ブロックに区分する。ここでは文字属性レイヤ画像自体がマスク画像となり、マスク画像の1に対応する画素が文字色レイヤ画像となり、マスク画像の0に対応する画素が文字領域以外を示す非有効画素となる。   As shown in FIG. 8, for example, when generating a 37.5 DPI character color layer image from an input image with a resolution of 600 DPI, the resolution conversion rate is 1/16, and the 16 pixels of the input image are subjected to resolution conversion. In order to generate one pixel, the character color layer image is divided into 4 × 4 pixel blocks. Here, the character attribute layer image itself is a mask image, a pixel corresponding to 1 of the mask image is a character color layer image, and a pixel corresponding to 0 of the mask image is an ineffective pixel indicating a region other than the character region.

尚、図8に示す0,1の画素はマスク画像を示しており、実際には各画素8ビットのR,G,Bの何れかの画素値に対して解像度変換される。従って、文字色レイヤ画像及び背景色レイヤ画像ともに、R,G,Bそれぞれの色に対応する三枚のレイヤで構成されており、解像度変換処理は各色のレイヤ画像に対して実行される。   Note that the pixels 0 and 1 shown in FIG. 8 indicate a mask image, and the resolution is actually converted for any pixel value of R, G, and B of 8 bits for each pixel. Therefore, both the character color layer image and the background color layer image are composed of three layers corresponding to the colors R, G, and B, and the resolution conversion process is executed for the layer image of each color.

4×4の画素ブロックにマスク画像に属する画素が存在する、つまりマスク画像の1に対応する画素が存在すると、それらの画素の平均値を解像度変換後の画素値とし、4×4の画素ブロックにマスク画像に属する画素が存在しない、つまりマスク画像の1に対応する画素が存在しないと、インデックス値を解像度変換後の画素値とするのである。このような処理を文字色レイヤ画像の全域に施すことにより縮小文字色レイヤ画像が生成される。尚、インデックス値は白画素または黒画素の何れであってもよい。   If there are pixels belonging to the mask image in the 4 × 4 pixel block, that is, there are pixels corresponding to 1 of the mask image, the average value of these pixels is used as the pixel value after resolution conversion, and the 4 × 4 pixel block If there is no pixel belonging to the mask image, that is, if there is no pixel corresponding to 1 in the mask image, the index value is used as the pixel value after resolution conversion. By applying such processing to the entire character color layer image, a reduced character color layer image is generated. The index value may be a white pixel or a black pixel.

つまり、置換処理された入力画像から文字色レイヤ画像を分離抽出しながら、同時に解像度変換される。   That is, resolution conversion is performed at the same time while separating and extracting the character color layer image from the replaced input image.

さらにその後、解像度変換部23は、縮小文字色レイヤ画像に対して、インデックス値に基づいて判別される縮小文字色レイヤ画像の輪郭部を膨張処理する。   Further, after that, the resolution conversion unit 23 performs an expansion process on the contour portion of the reduced character color layer image determined based on the index value with respect to the reduced character color layer image.

詳述すると、解像度変換部23は、行方向及び列方向に配列された縮小文字色レイヤ画像の各画素を中心画素とするn×n(nは正の奇数)サイズのフィルタ処理を画素の配列に沿って、つまり列方向、行方向に沿って全画素に対して実行する。   More specifically, the resolution conversion unit 23 performs an n × n (n is a positive odd number) size filter process with the pixel of the reduced character color layer image arranged in the row direction and the column direction as the center pixel. , That is, all pixels along the column direction and the row direction.

フィルタ処理では、膨張対象画素となる中心画素がインデックス値である場合に、フィルタサイズに相当する所定数つまりn×n画素の画素ブロックのうち、インデックス値を示す画素以外の画素つまり文字色画素の平均値を中心画素の画素値として生成し、中心画素がインデックス値でない場合つまり文字色画素である場合に、フィルタサイズに相当する所定数つまりn×n画素の画素ブロックのうち、中心画素の画素値との差分が所定の閾値以内の画素値の平均値を膨張対象画素の画素値として生成する。尚、画素ブロック全てがインデックス値である場合にはインデックス値を新たな画素値とする。   In the filter processing, when the central pixel that is the expansion target pixel is an index value, out of a predetermined number of pixel blocks corresponding to the filter size, that is, n × n pixel blocks, pixels other than the pixel indicating the index value, that is, character color pixels. When the average value is generated as the pixel value of the central pixel, and the central pixel is not an index value, that is, a character color pixel, the pixel of the central pixel in a predetermined number of pixel blocks corresponding to the filter size, that is, an n × n pixel block An average value of pixel values whose difference from the value is within a predetermined threshold is generated as the pixel value of the expansion target pixel. When all the pixel blocks are index values, the index value is set as a new pixel value.

図9には、その様子が例示されている。解像度変換部23は、行方向及び列方向に配列された縮小文字色レイヤ画像の各画素P(l,m),P(1,m+1),P(l,m+2),・・・を中心画素とする3×3サイズのフィルタ処理を画素の配列に沿って実行することにより、膨張処理及び平滑化処理を実行する。   FIG. 9 illustrates this situation. The resolution conversion unit 23 uses the pixels P (l, m), P (1, m + 1), P (l, m + 2),... Of the reduced character color layer image arranged in the row direction and the column direction as central pixels. The expansion process and the smoothing process are executed by executing the 3 × 3 size filter process as follows along the pixel array.

フィルタサイズを3×3に設定することが好ましく、縮小文字色レイヤ画像の文字色領域の境界が1画素膨張処理されるとともに、文字色領域が平滑化処理される。尚、2画素膨張させるためにはフィルタサイズを5×5に設定すればよい。   It is preferable to set the filter size to 3 × 3, and the boundary of the character color area of the reduced character color layer image is expanded by one pixel, and the character color area is smoothed. In order to expand two pixels, the filter size may be set to 5 × 5.

また、解像度変換部23は、文字属性レイヤ画像に基づいて生成される反転マスク画像に基づいて、インデックス値置換処理部で処理された入力画像から背景色画素を抽出した背景色レイヤ画像を生成し、抽出した背景色レイヤ画像が所定の解像度となるように解像度変換する回路ブロックを備えている。   Further, the resolution conversion unit 23 generates a background color layer image obtained by extracting background color pixels from the input image processed by the index value replacement processing unit, based on the inverted mask image generated based on the character attribute layer image. A circuit block for converting the resolution so that the extracted background color layer image has a predetermined resolution is provided.

詳述すると、解像度変換部23は、行方向及び列方向に配列された背景色レイヤ画像を解像度変換率に基づいて設定される所定画素数の画素ブロックに区分し、反転マスク画像を参照して、画素ブロックに反転マスク画像に属する画素が存在すると、当該画素の平均値を解像度変換後の画素値とし、画素ブロックに反転マスク画像に属する画素が存在しないと、インデックス値を解像度変換後の画素値とする処理を画素の配列に沿って区分された全画素ブロックに繰り返して縮小背景色レイヤ画像を生成する。   Specifically, the resolution conversion unit 23 divides the background color layer image arranged in the row direction and the column direction into pixel blocks having a predetermined number of pixels set based on the resolution conversion rate, and refers to the inverted mask image. If there is a pixel belonging to the inverted mask image in the pixel block, the average value of the pixel is the pixel value after resolution conversion, and if there is no pixel belonging to the inverted mask image in the pixel block, the index value is the pixel after resolution conversion. The reduced value background color layer image is generated by repeating the processing of values for all pixel blocks divided along the pixel array.

例えば、解像度が600DPIの入力画像から150DPIの背景色レイヤ画像を生成する場合には、解像度変換率が1/4となり、入力画像の4画素から解像度変換後の1画素を生成すべく、背景色レイヤ画像を2×2の画素ブロックに区分する。ここでは文字属性レイヤ画像を反転させた画像が反転マスク画像となり、反転マスク画像の1に対応する画素が背景色レイヤ画像となり、反転マスク画像の0に対応する画素が絵柄領域以外を示す非有効画素となる。   For example, when a background color layer image having a resolution of 150 DPI is generated from an input image having a resolution of 600 DPI, the resolution conversion rate is 1/4, and the background color is generated in order to generate one pixel after resolution conversion from four pixels of the input image. The layer image is divided into 2 × 2 pixel blocks. Here, an image obtained by inverting the character attribute layer image is an inverted mask image, a pixel corresponding to 1 of the inverted mask image is a background color layer image, and a pixel corresponding to 0 of the inverted mask image is ineffective indicating a region other than the design area. It becomes a pixel.

2×2の画素ブロックに反転マスク画像に属する画素が存在する、つまり反転マスク画像の1に対応する画素が存在すると、それらの画素の平均値を解像度変換後の画素値とし、2×2の画素ブロックに反転マスク画像に属する画素が存在しない、つまり反転マスク画像の1に対応する画素が存在しないと、インデックス値を解像度変換後の画素値とするのである。このような処理を背景色レイヤ画像の全域に施すことにより縮小背景色レイヤ画像が生成される。尚、インデックス値は白画素または黒画素の何れであってもよい。   If a pixel belonging to the inverted mask image exists in the 2 × 2 pixel block, that is, there is a pixel corresponding to 1 of the inverted mask image, the average value of these pixels is used as the pixel value after resolution conversion, and 2 × 2 If there is no pixel belonging to the inverted mask image in the pixel block, that is, there is no pixel corresponding to 1 of the inverted mask image, the index value is used as the pixel value after resolution conversion. By performing such processing on the entire background color layer image, a reduced background color layer image is generated. The index value may be a white pixel or a black pixel.

つまり、置換処理された入力画像から背景色レイヤ画像を分離抽出しながら、同時に解像度変換される。   That is, resolution conversion is performed at the same time while separating and extracting the background color layer image from the replaced input image.

さらにその後、解像度変換部23は、縮小背景色レイヤ画像に対して、インデックス値に基づいて判別される縮小背景色レイヤ画像の輪郭部を膨張処理する。ここでの膨張処理は上述した縮小文字色レイヤ画像に対する膨張処理と同様である。   Further, after that, the resolution conversion unit 23 performs an expansion process on the reduced background color layer image on the contour portion of the reduced background color layer image determined based on the index value. The expansion process here is the same as the expansion process for the reduced character color layer image described above.

更に、解像度変換部23は、文字属性レイヤ画像が所定の解像度となるように解像度変換する。詳述すると、解像度変換率に基づいて設定される所定画素数の画素ブロックに区分し、当該画素ブロックの平均値が所定の閾値より大であれば1に、小であれば0に変換する。   Further, the resolution conversion unit 23 converts the resolution so that the character attribute layer image has a predetermined resolution. More specifically, the pixel block is divided into pixel blocks having a predetermined number of pixels set based on the resolution conversion rate, and is converted to 1 if the average value of the pixel block is larger than a predetermined threshold, and to 0 if the average value is smaller.

例えば、解像度が600DPIの文字属性レイヤ画像から300DPIの文字属性レイヤ画像を生成する場合には、解像度変換率が1/2となり、入力画像の2画素から解像度変換後の1画素を生成すべく、背景色レイヤ画像を1×2または2×1の画素ブロックに区分して、対応する2画素の平均値が1であれば解像度変換後の画素を1に、平均値が0であれば解像度変換後の画素を0に、平均値が0.5であれば解像度変換後の画素を1に設定する。即ち閾値は0.5未満の値に設定されている。   For example, when generating a character attribute layer image with a resolution of 600 DPI from a character attribute layer image with a resolution of 600 DPI, the resolution conversion rate is halved, and one pixel after resolution conversion is generated from two pixels of the input image. The background color layer image is divided into 1 × 2 or 2 × 1 pixel blocks. If the average value of the corresponding two pixels is 1, the resolution-converted pixel is 1, and if the average value is 0, the resolution is converted. If the subsequent pixel is 0, and the average value is 0.5, the pixel after resolution conversion is set to 1. That is, the threshold value is set to a value less than 0.5.

縮小文字色レイヤ画像の解像度は、文字色が特定できればよいのでそれほど高い解像度は要求されないため37.5DPI程度が好ましく、縮小背景色レイヤ画像の解像度は、背景である絵柄が適正に再現できるように中程度の解像度である150DPI程度が好ましく、縮小文字属性レイヤ画像の解像度は、線画の再現性を確保するために比較的高い解像度が要求され、300DPI程度が好ましい。   The resolution of the reduced character color layer image is preferably about 37.5 DPI because the character color can be specified, and so high resolution is not required. The resolution of the reduced background color layer image is such that the background pattern can be properly reproduced. A medium resolution of about 150 DPI is preferable, and the resolution of the reduced character attribute layer image requires a relatively high resolution in order to ensure the reproducibility of the line drawing, and is preferably about 300 DPI.

しかし、これらの値に限るものではなく、入力画像の解像度と、最終の高圧縮画像ファイルのトータルの容量に基づいて適宜設定される値である。例えば、入力画像の解像度が300DPIであれば、文字属性レイヤ画像を等倍に解像度変換すればよく、実質的に解像度変換する必要はない。   However, the values are not limited to these values, and are values that are appropriately set based on the resolution of the input image and the total capacity of the final highly compressed image file. For example, if the resolution of the input image is 300 DPI, it is only necessary to convert the resolution of the character attribute layer image to the same magnification, and it is not necessary to substantially convert the resolution.

画像圧縮・伸張部24は、解像度変換部23で解像度変換された文字属性レイヤ画像を可逆圧縮するとともに、文字色レイヤ画像及び背景色レイヤ画像を非可逆圧縮する。既に縮小処理されているため、ことさら高い圧縮率が要求されるものではない。   The image compression / decompression unit 24 reversibly compresses the character attribute layer image whose resolution has been converted by the resolution conversion unit 23 and irreversibly compresses the character color layer image and the background color layer image. Since the reduction processing has already been performed, a particularly high compression rate is not required.

文字属性レイヤ画像に対する可逆圧縮方式として、MR方式、MMR方式、JBIG方式等を採用でき、文字色レイヤ画像及び背景色レイヤ画像に対する非可逆圧縮方式として、直交変換符号化方式であるJPEG方式等を採用できる。   As a lossless compression method for character attribute layer images, an MR method, an MMR method, a JBIG method, etc. can be adopted. As a lossy compression method for character color layer images and background color layer images, an orthogonal transform coding method such as JPEG method is used. Can be adopted.

ファイル生成部25は、圧縮された各レイヤ画像に基づいて高圧縮画像ファイルを生成する。つまり、ファイル名称、ファイル容量、各レイヤ画像の圧縮パレメータや解像度パラメータ、並びに各レイヤ画像の識別コード等含むヘッダ情報に続けて各レイヤ画像を配列した高圧縮画像ファイルを生成する。   The file generation unit 25 generates a highly compressed image file based on each compressed layer image. That is, a highly compressed image file in which each layer image is arranged following the header information including the file name, the file capacity, the compression parameter and resolution parameter of each layer image, and the identification code of each layer image is generated.

高圧縮画像ファイルは、圧縮伸張画像生成部20によりメモリ6上に生成され、当該高圧縮画像ファイルがボックスに格納される。   The high compression image file is generated on the memory 6 by the compression / decompression image generation unit 20, and the high compression image file is stored in the box.

ネットワークに接続されたPC等から入力され、或いは電子メール処理部で受信された高圧縮画像ファイルや、ボックスに格納された高圧縮画像ファイルに対応した画像をプリンタエンジンで印刷する場合には、上述と逆の手順で出力画像が生成される。   When a printer engine prints an image corresponding to a high-compression image file input from a PC or the like connected to a network or received by an e-mail processing unit or a high-compression image file stored in a box, An output image is generated in the reverse procedure.

つまり、ファイル生成部25で各レイヤ画像に分離され、各レイヤ画像が画像圧縮・伸張部24で縮小レイヤ画像に伸張処理され、解像度変換部23で高解像度に逆変換される。   In other words, each layer image is separated by the file generation unit 25, each layer image is expanded into a reduced layer image by the image compression / decompression unit 24, and reversely converted to a high resolution by the resolution conversion unit 23.

画像合成部28では、このようにして生成された文字属性レイヤ画像をマスク画像または反転マスク画像として、文字色レイヤ画像から文字領域の画素が切り出され、背景色レイヤ画像から絵柄領域の画素が切り出され、文字領域の画素と絵柄領域の画素が合成された出力画像が生成される。   In the image composition unit 28, the character attribute layer image generated in this way is used as a mask image or an inverted mask image, pixels in the character area are cut out from the character color layer image, and pixels in the pattern area are cut out from the background color layer image. As a result, an output image in which the pixels in the character area and the pixels in the picture area are combined is generated.

解像度変換部23で行なわれる拡大処理アルゴリズムとして、バイリニア補間法やキュービック補間法を採用することができる。このような高解像度への画像変換処理により、文字色レイヤ画像または背景色レイヤ画像の輪郭部に色ムラやボケが生じる場合もあるが、上述の膨張処理の結果、本来の輪郭部よりも膨張された領域に発生する色ムラやボケであり、文字属性レイヤ画像を参照して、文字色レイヤ画像及び背景色レイヤ画像から本来の文字色領域及び背景色領域が切り出されるため、そのようなノイズが再生画像に表れることがない。   A bilinear interpolation method or a cubic interpolation method can be employed as an enlargement processing algorithm performed by the resolution conversion unit 23. Such image conversion processing to high resolution may cause color unevenness or blurring in the contour portion of the character color layer image or the background color layer image. However, as a result of the expansion processing described above, expansion is performed more than the original contour portion. Color irregularities and blurs that occur in the specified area, and the original character color area and the background color area are cut out from the character color layer image and the background color layer image with reference to the character attribute layer image. Does not appear in the playback image.

さらに、上述した出力画像生成部31により、プリンタエンジン5に出力される画像が生成される。   Further, the output image generation unit 31 described above generates an image to be output to the printer engine 5.

解像度変換部23で使用される縮小処理のためのマスク画像または反転マスク画像として、文字属性判別部21で生成された文字属性レイヤ画像そのものが用いられる場合を示したが、マスク画像として、文字属性判別部21で生成された文字属性レイヤ画像の輪郭を収縮処理した画像を用いると、入力画像に内在する文字色領域の輪郭部のボケや色ムラを効果的に排除でき、その後の膨張処理により輪郭部がすっきりした画像を確保でき、反転マスク画像として、文字属性レイヤ画像の輪郭を膨張処理した後に反転した画像を用いると、入力画像に内在する背景色領域の輪郭部のボケや色ムラをも効果的に排除でき、その後の膨張処理により輪郭部がすっきりした画像を確保できる。特に、背景色領域内に文字色領域が混在する場合に効果的である。   The case where the character attribute layer image itself generated by the character attribute determination unit 21 is used as a mask image or a reversal mask image for reduction processing used in the resolution conversion unit 23 is shown. If an image obtained by shrinking the contour of the character attribute layer image generated by the determination unit 21 is used, blur and color unevenness in the contour portion of the character color area inherent in the input image can be effectively eliminated, and subsequent expansion processing can be performed. An image with a clear outline can be secured, and if an image obtained by inverting the outline of the character attribute layer image after being expanded is used as an inverted mask image, blurring and color unevenness in the outline of the background color area inherent in the input image are eliminated. Can be effectively eliminated, and an image with a clear outline can be secured by subsequent expansion processing. This is particularly effective when character color areas are mixed in the background color area.

つまり、解像度変換部23に、文字属性レイヤ画像を収縮処理する収縮処理回路ブロック、文字属性レイヤ画像を膨張処理する膨張処理回路ブロックを備えることにより実現できる。例えば、文字属性レイヤ画像の文字属性領域の最外縁の1画素を0に設定するような収縮処理回路ブロックや、文字属性領域の最外縁から外側の1画素を1に設定するような膨張処理回路ブロックを構成すればよい。   In other words, this can be realized by providing the resolution conversion unit 23 with a contraction processing circuit block for contracting the character attribute layer image and an expansion processing circuit block for expanding the character attribute layer image. For example, a contraction processing circuit block that sets one pixel at the outermost edge of the character attribute area of the character attribute layer image to 0, or an expansion processing circuit that sets one pixel outside the outermost edge of the character attribute area to 1 What is necessary is just to comprise a block.

圧縮伸張画像生成部20に設けられた補正処理部26は、メモリ6に記憶された入力画像と文字属性レイヤ画像とに基づいて文字属性レイヤ画像を補正する回路ブロックである。   The correction processing unit 26 provided in the compression / decompression image generation unit 20 is a circuit block that corrects the character attribute layer image based on the input image and the character attribute layer image stored in the memory 6.

記憶処理部27は、文字属性判別部21により生成された文字属性レイヤ画像をMMR方式やJBIG方式等を用いて可逆圧縮するとともに、入力画像をJPEG方式等を用いて非可逆圧縮して、それぞれメモリ6またはハードディスク7等の記憶部に格納し、記憶部に格納した文字属性レイヤ画像または入力画像を伸張処理してメモリ6に展開する回路ブロックである。   The storage processing unit 27 reversibly compresses the character attribute layer image generated by the character attribute determination unit 21 using the MMR method or the JBIG method, and irreversibly compresses the input image using the JPEG method or the like. This is a circuit block that is stored in a storage unit such as the memory 6 or the hard disk 7, expands the character attribute layer image or the input image stored in the storage unit, and expands it in the memory 6.

スキャナ3等を介した入力画像に対して文字属性判別部21により文字属性レイヤ画像が生成されるが、領域分離アルゴリズムによっては、文字領域以外の絵柄領域のエッジがノイズとして抽出される場合があり、そのような場合に、ノイズを除去する必要がある。また、分離された文字領域のうち特定の文字領域、例えば、特定の色の文字領域を文字属性レイヤ画像として生成することが要求される場合もある。   A character attribute layer image is generated by the character attribute determination unit 21 for an input image via the scanner 3 or the like, but depending on the region separation algorithm, an edge of a pattern region other than the character region may be extracted as noise. In such a case, it is necessary to remove noise. Further, it may be required to generate a specific character region, for example, a character region of a specific color, as the character attribute layer image among the separated character regions.

そのような場合、再度、文字属性判別部21により文字属性レイヤ画像が生成する必要があるが、通常、記憶容量の観点で入力画像を生のデータで保存することはなく、JPEG方式等を用いて非可逆圧縮した画像がメモリ6またはメモリ6を介してハードディスク7に格納されるため、圧縮後の入力画像を伸張処理する必要がある。   In such a case, it is necessary to generate the character attribute layer image again by the character attribute discriminating unit 21, but normally, the input image is not saved as raw data from the viewpoint of the storage capacity, and the JPEG method or the like is used. Since the irreversibly compressed image is stored in the hard disk 7 via the memory 6 or the memory 6, it is necessary to decompress the input image after compression.

このような伸張画像は画質が劣化しているため、文字属性判別部21により伸張画像から文字属性レイヤ画像を生成すると、解像度の劣化が顕著な文字領域を適正に分離できないという問題がある。   Since the image quality of such a decompressed image is degraded, there is a problem that when a character attribute layer image is generated from the decompressed image by the character attribute discriminating unit 21, a character region whose resolution is significantly degraded cannot be separated properly.

そこで、本来の入力画像から文字属性判別部21で生成された文字属性レイヤ画像を、記憶処理部27により可逆圧縮して記憶部に格納するように構成されている。   Therefore, the character attribute layer image generated by the character attribute determination unit 21 from the original input image is reversibly compressed by the storage processing unit 27 and stored in the storage unit.

補正処理部26は、そのような場合に対応して設けられており、メモリ6に記憶された入力画像、つまり記憶処理部27による圧縮保存後に伸張処理された入力画像を、色相、彩度または輝度の何れかの画像に変換する色相変換部、彩度変換部、輝度変換部を備えるとともに、記憶処理部27による圧縮保存後に伸張処理された文字属性レイヤ画像と、色相、彩度または輝度の何れかに変換された入力画像に基づいて文字属性レイヤ画像を補正する補正回路を備えている。   The correction processing unit 26 is provided corresponding to such a case, and the input image stored in the memory 6, that is, the input image decompressed after being stored by the storage processing unit 27 is converted into hue, saturation or The image processing apparatus includes a hue conversion unit, a saturation conversion unit, and a luminance conversion unit that convert to any one of luminance images, and a character attribute layer image that has been decompressed after being compressed and stored by the storage processing unit 27, and a hue, saturation, or luminance A correction circuit is provided for correcting the character attribute layer image based on the input image converted into any one of them.

例えば、彩度変換画像では、黒文字が低彩度画像領域となり、絵柄領域が比較的高彩度画像領域となるため、彩度変換画像と文字属性レイヤ画像の画素間で論理演算を行なうことにより、文字属性レイヤ画像から低彩度領域のみを抽出すれば、絵柄領域のエッジノイズを除去することができる。   For example, in a saturation conversion image, a black character becomes a low saturation image region and a pattern region becomes a relatively high saturation image region. Therefore, by performing a logical operation between the pixels of the saturation conversion image and the character attribute layer image, If only the low saturation area is extracted from the attribute layer image, the edge noise in the pattern area can be removed.

例えば、輝度変換画像では、黒文字が低輝度画像領域となり、絵柄領域が比較的高輝度画像領域となるため、輝度変換画像と文字属性レイヤ画像の画素間で論理演算を行なうことにより、文字属性レイヤ画像から低輝度領域のみを抽出すれば、絵柄領域のエッジノイズを除去することができる。   For example, in a luminance conversion image, a black character becomes a low luminance image region and a pattern region becomes a relatively high luminance image region. Therefore, by performing a logical operation between pixels of the luminance conversion image and the character attribute layer image, a character attribute layer is obtained. If only the low luminance region is extracted from the image, the edge noise in the pattern region can be removed.

例えば、文字属性レイヤ画像に含まれる文字属性領域から特定色の文字領域のみ抽出する必要がある場合には、色相変換部により特定の色相のみ抽出した色相変換画像と文字属性レイヤ画像の画素間で論理演算を行なうことにより、特定色の文字領域のみの文字属性レイヤ画像を生成することができる。   For example, when it is necessary to extract only the character area of a specific color from the character attribute area included in the character attribute layer image, between the pixels of the color conversion image extracted only by the hue conversion unit and the character attribute layer image. By performing the logical operation, it is possible to generate a character attribute layer image of only a character region of a specific color.

解像度変換部23は、補正処理部26で補正された文字属性レイヤ画像に基づいてメモリ6に記憶された伸張後の入力画像から文字色レイヤ画像と背景色レイヤ画像に分離し、各レイヤ画像をそれぞれ所定の解像度に変換するのである。   Based on the character attribute layer image corrected by the correction processing unit 26, the resolution conversion unit 23 separates the input image after decompression stored in the memory 6 into a character color layer image and a background color layer image, Each is converted to a predetermined resolution.

このような場合であっても、上述の解像度変換部23による膨張処理により、画質の劣化が抑制される。特に、マスク画像として、文字属性判別部21で生成された文字属性レイヤ画像の輪郭を収縮処理した画像を用い、反転マスク画像として、文字属性レイヤ画像の輪郭を膨張処理した後に反転した画像を用いると、画質の劣化が大幅に抑制される。   Even in such a case, degradation of image quality is suppressed by the expansion processing by the resolution conversion unit 23 described above. In particular, an image obtained by contracting the contour of the character attribute layer image generated by the character attribute discriminating unit 21 is used as the mask image, and an image that is inverted after the contour of the character attribute layer image is expanded is used as the inverted mask image. Degradation of image quality is greatly suppressed.

解像度変換部23で、文字属性レイヤ画像、文字色レイヤ画像、背景色レイヤ画像のそれぞれに対する解像度変換率は、ボックスモードで入力モードが選択されたときに、操作部2の液晶表示部2aに表示される選択キーにより選択される。   The resolution conversion unit 23 displays the resolution conversion rates for the character attribute layer image, the character color layer image, and the background color layer image on the liquid crystal display unit 2a of the operation unit 2 when the input mode is selected in the box mode. The selection key is selected.

具体的には、「低」、「中」、「高」、「自動」の四種類の選択キーが表示される。各キーに対応する解像度は、図6に示す通りである。「低」、「中」、「高」の何れの選択キーが選択されても、入力画像の解像度にかかわらずそれぞれ一定の解像度変換率に設定される。従って、解像度変換後の各レイヤ画像の容量は入力画像の解像度により変動する。   Specifically, four types of selection keys “low”, “medium”, “high”, and “automatic” are displayed. The resolution corresponding to each key is as shown in FIG. Regardless of the selection key of “low”, “medium”, or “high”, a constant resolution conversion rate is set regardless of the resolution of the input image. Accordingly, the capacity of each layer image after resolution conversion varies depending on the resolution of the input image.

「自動」の選択キーが選択されると、入力画像の解像度に応じて、解像度変換後の各レイヤ画像の容量が所定容量範囲に入るように解像度変換率が設定される。つまり、入力画像の解像度にかかわらず、解像度変換後の各レイヤ画像の容量が所定容量範囲に入るように、各レイヤ画像が解像度変換される。   When the “auto” selection key is selected, the resolution conversion rate is set so that the capacity of each layer image after resolution conversion falls within a predetermined capacity range in accordance with the resolution of the input image. That is, regardless of the resolution of the input image, the resolution of each layer image is converted so that the capacity of each layer image after resolution conversion falls within a predetermined capacity range.

つまり、図7に例示されているように、入力画像の解像度に応じて解像度変換後の各レイヤ画像の容量が所定容量範囲に入る解像度が設定された解像度変換テーブルを備え、解像度変換部は、解像度変換テーブルに基づいて、各レイヤ画像を解像度変換するように構成されている。   That is, as illustrated in FIG. 7, the resolution conversion unit includes a resolution conversion table in which the resolution of each layer image after resolution conversion is set in a predetermined capacity range according to the resolution of the input image. Based on the resolution conversion table, the resolution of each layer image is converted.

例えば、入力画像の解像度が600DPIであれば、文字属性レイヤ画像の解像度変換率が1/2、文字色レイヤ画像の解像度変換率が1/16、背景色レイヤ画像の解像度変換率が1/4に設定され、入力画像の解像度が300DPIであれば、文字属性レイヤ画像の解像度変換率が1、文字色レイヤ画像の解像度変換率が1/8、背景色レイヤ画像の解像度変換率が1/2に設定され、入力画像の解像度が1200DPIであれば、文字属性レイヤ画像の解像度変換率が1/4、文字色レイヤ画像の解像度変換率が1/32、背景色レイヤ画像の解像度変換率が1/8に設定される。   For example, if the resolution of the input image is 600 DPI, the resolution conversion rate of the character attribute layer image is 1/2, the resolution conversion rate of the character color layer image is 1/16, and the resolution conversion rate of the background color layer image is 1/4. If the resolution of the input image is 300 DPI, the resolution conversion rate of the character attribute layer image is 1, the resolution conversion rate of the character color layer image is 1/8, and the resolution conversion rate of the background color layer image is 1/2. If the resolution of the input image is 1200 DPI, the resolution conversion rate of the character attribute layer image is 1/4, the resolution conversion rate of the character color layer image is 1/32, and the resolution conversion rate of the background color layer image is 1. / 8 is set.

その結果、解像度変換後の文字属性レイヤ画像の解像度が300DPI、文字色レイヤ画像の解像度が37.5DPI、背景色レイヤ画像の解像度が150DPIと、それぞれ一定の解像度に変換される。   As a result, the resolution of the character attribute layer image after resolution conversion is converted to a constant resolution of 300 DPI, the resolution of the character color layer image is 37.5 DPI, and the resolution of the background color layer image is 150 DPI.

従って、「自動」の選択キーが選択されると、ファイル生成部25で生成された高圧縮画像ファイルは、常にほぼ一定容量のファイルとなる。解像度変換率を入力画像の解像度により変化させて、最終のファイル容量を一定に制限することにより、電子メール送信等により外部に高圧縮画像ファイルを送信する場合等の負荷の増大を回避することができるようになる。   Therefore, when the “automatic” selection key is selected, the high-compression image file generated by the file generation unit 25 is always a file having a substantially constant capacity. By changing the resolution conversion rate according to the resolution of the input image and limiting the final file capacity to a certain level, it is possible to avoid an increase in load when transmitting a highly compressed image file to the outside by e-mail transmission or the like. become able to.

以下、別実施形態を説明する。
上述した実施形態では、解像度変換部23により文字色レイヤ画像と背景色レイヤ画像の双方が膨張処理される例を説明したが、少なくとも文字色レイヤ画像のみに膨張処理を施せば、文字領域がすっきりした再生画像を得ることができる。
Hereinafter, another embodiment will be described.
In the above-described embodiment, the example in which both the character color layer image and the background color layer image are expanded by the resolution conversion unit 23 has been described. However, if at least the character color layer image is expanded, the character area becomes clear. The reproduced image can be obtained.

上述した実施形態では、本発明の画像処理装置の一例としての複合機について説明したが、本発明は複合機以外の画像処理装置である複写機やプリンタ等に対しても有効である。また、本発明による画像処理アルゴリズムを実現するソフトウェアをパーソナルコンピュータ等にインストールすることにより構成される画像処理装置にも適用できる。   In the above-described embodiment, the multifunction peripheral as an example of the image processing apparatus of the present invention has been described. However, the present invention is also effective for a copying machine, a printer, and the like which are image processing apparatuses other than the multifunction peripheral. The present invention can also be applied to an image processing apparatus configured by installing software that implements the image processing algorithm according to the present invention in a personal computer or the like.

上述した実施形態では、高圧縮画像ファイルがPDFファイルである場合を説明したが、高圧縮画像ファイルはPDFフォーマットの画像ファイルに限るものではなく、他のフォーマットの画像ファイルにも適用できる。   In the embodiment described above, the case where the high-compression image file is a PDF file has been described. However, the high-compression image file is not limited to an image file in the PDF format, and can be applied to an image file in another format.

上述した実施形態は何れも本発明の一実施例に過ぎず、当該記載により本発明の範囲が限定されるものではなく、各部の具体的構成は本発明による作用効果を奏する範囲において適宜変更設計することができることは言うまでもない。   Each of the above-described embodiments is merely an example of the present invention, and the scope of the present invention is not limited by the description. The specific configuration of each part is appropriately changed and designed within the scope of the effects of the present invention. It goes without saying that you can do it.

1:画像処理装置(複合機)
14:画像処理部
20:圧縮伸張画像生成部
21:文字属性判別部
22:インデックス値置換処理部
23:解像度変換部
24:画像圧縮・伸張部
25:ファイル生成部
26:補正処理部
27:記憶処理部
28:画像合成部
1: Image processing device (multifunction machine)
14: Image processing unit 20: Compression / decompression image generation unit 21: Character attribute determination unit 22: Index value replacement processing unit 23: Resolution conversion unit 24: Image compression / decompression unit 25: File generation unit 26: Correction processing unit 27: Storage Processing unit 28: Image composition unit

Claims (5)

入力画像から文字領域と文字領域以外の背景領域を識別する文字属性レイヤ画像を生成する文字属性判別部と、文字属性レイヤ画像に基づいて入力画像から文字色レイヤ画像と背景色レイヤ画像に分離し、各レイヤ画像をそれぞれ所定の解像度に変換する解像度変換部と、解像度変換された文字属性レイヤ画像を可逆圧縮するとともに文字色レイヤ画像及び背景色レイヤ画像を非可逆圧縮する画像圧縮部と、圧縮された各レイヤ画像に基づいて高圧縮画像ファイルを生成するファイル生成部と、画像を記憶する記憶部とを備えている画像処理装置であって、
文字属性判別部により生成された文字属性レイヤ画像を可逆圧縮するとともに、入力画像を非可逆圧縮してそれぞれ記憶部に記憶し、記憶部に記憶された文字属性レイヤ画像または入力画像を伸張処理する記憶処理部と、
記憶部に記憶された入力画像と文字属性レイヤ画像とに基づいて文字属性レイヤ画像を補正する補正処理部を備え、
解像度変換部は、補正された文字属性レイヤ画像に基づいて記憶部に記憶された入力画像から文字色レイヤ画像と背景色レイヤ画像に分離し、各レイヤ画像をそれぞれ所定の解像度に変換するように構成されている画像処理装置。
A character attribute discriminating unit for generating a character attribute layer image for identifying a character area and a background area other than the character area from the input image, and separating the character color layer image and the background color layer image from the input image based on the character attribute layer image A resolution conversion unit that converts each layer image to a predetermined resolution, an image compression unit that reversibly compresses the character attribute layer image whose resolution has been converted, and an irreversible compression of the character color layer image and the background color layer image, and compression An image processing apparatus including a file generation unit that generates a high-compression image file based on each layered image, and a storage unit that stores the image,
The character attribute layer image generated by the character attribute determination unit is reversibly compressed, the input image is irreversibly compressed and stored in the storage unit, and the character attribute layer image or the input image stored in the storage unit is decompressed. A storage processing unit;
A correction processing unit for correcting the character attribute layer image based on the input image and the character attribute layer image stored in the storage unit;
The resolution conversion unit separates the character color layer image and the background color layer image from the input image stored in the storage unit based on the corrected character attribute layer image, and converts each layer image to a predetermined resolution. Configured image processing apparatus.
補正処理部は、記憶部に記憶された入力画像を、色相、彩度または輝度の何れかの画像に変換し、変換後の入力画像に基づいて文字属性レイヤ画像を補正する請求項1記載の画像処理装置。   The correction processing unit converts the input image stored in the storage unit into an image of any one of hue, saturation, and luminance, and corrects the character attribute layer image based on the converted input image. Image processing device. 文字属性レイヤ画像に基づいて生成されるマスク画像に基づいて入力画像から文字色画素を抽出し、抽出された文字色画素から非有効画素を示すインデックス値と同値の画素をインデックス値と異なる画素値に変換した文字色レイヤ画像を生成するインデックス値置換処理部を備え、
解像度変換部は、インデックス値置換処理部で処理された文字色レイヤ画像を解像度変換率に基づいて設定される所定画素数の画素ブロックに区分し、マスク画像を参照して、画素ブロックにマスク画像に属する画素が存在すると、当該画素の平均値を解像度変換後の画素値とし、画素ブロックにマスク画像に属する画素が存在しないと、インデックス値を解像度変換後の画素値とする処理を全画素ブロックに繰り返して縮小文字色レイヤ画像を生成し、インデックス値に基づいて判別される縮小文字色レイヤ画像の輪郭部を膨張処理するように構成されている請求項1または2記載の画像処理装置。
A character color pixel is extracted from an input image based on a mask image generated based on a character attribute layer image, and a pixel value that is the same as the index value indicating an ineffective pixel is extracted from the extracted character color pixel. An index value replacement processing unit for generating a character color layer image converted into
The resolution conversion unit divides the character color layer image processed by the index value replacement processing unit into pixel blocks having a predetermined number of pixels set based on the resolution conversion rate, and refers to the mask image to generate a mask image in the pixel block. If there is a pixel belonging to the pixel block, the average value of the pixel is the pixel value after resolution conversion, and if there is no pixel belonging to the mask image in the pixel block, the index value is the pixel value after resolution conversion. 3. The image processing apparatus according to claim 1, wherein the image processing device is configured to generate a reduced character color layer image repeatedly and to expand the contour portion of the reduced character color layer image determined based on the index value.
膨張処理は、膨張対象画素がインデックス値である場合に、膨張対象画素を中心画素とする所定数の画素ブロックのうち、インデックス値を示す画素以外の画素の平均値を膨張対象画素の画素値として生成し、膨張対象画素がインデックス値でない場合に、膨張対象画素を中心画素とする所定数の画素ブロックのうち、中心画素の画素値との差分が所定の閾値以内の画素値の平均値を膨張対象画素の画素値として生成するように構成されている請求項3記載の画像処理装置。   In the expansion process, when the expansion target pixel has an index value, an average value of pixels other than the pixel indicating the index value is used as the pixel value of the expansion target pixel among a predetermined number of pixel blocks having the expansion target pixel as a central pixel. When the pixel to be expanded is not an index value, among the predetermined number of pixel blocks having the expansion target pixel as the central pixel, the average value of the pixel values whose difference from the pixel value of the central pixel is within the predetermined threshold is expanded The image processing apparatus according to claim 3, wherein the image processing apparatus is configured to generate a pixel value of a target pixel. マスク画像が文字属性レイヤ画像の輪郭を収縮処理した画像である請求項3または4記載の画像処理装置。   The image processing apparatus according to claim 3 or 4, wherein the mask image is an image obtained by performing contraction processing on an outline of a character attribute layer image.
JP2009126560A 2009-05-26 2009-05-26 Image processing device Expired - Fee Related JP5072907B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009126560A JP5072907B2 (en) 2009-05-26 2009-05-26 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009126560A JP5072907B2 (en) 2009-05-26 2009-05-26 Image processing device

Publications (2)

Publication Number Publication Date
JP2010278535A true JP2010278535A (en) 2010-12-09
JP5072907B2 JP5072907B2 (en) 2012-11-14

Family

ID=43425124

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009126560A Expired - Fee Related JP5072907B2 (en) 2009-05-26 2009-05-26 Image processing device

Country Status (1)

Country Link
JP (1) JP5072907B2 (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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH099071A (en) * 1995-06-16 1997-01-10 Minolta Co Ltd Image processor
JP2007129456A (en) * 2005-11-02 2007-05-24 Sharp Corp Image encoder, encoding method and program, and recording medium
JP2009017392A (en) * 2007-07-06 2009-01-22 Kyocera Mita Corp Image processing device and image forming apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH099071A (en) * 1995-06-16 1997-01-10 Minolta Co Ltd Image processor
JP2007129456A (en) * 2005-11-02 2007-05-24 Sharp Corp Image encoder, encoding method and program, and recording medium
JP2009017392A (en) * 2007-07-06 2009-01-22 Kyocera Mita Corp Image processing device and image forming apparatus

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

Also Published As

Publication number Publication date
JP5072907B2 (en) 2012-11-14

Similar Documents

Publication Publication Date Title
JP4549418B2 (en) Image processing apparatus, image processing method, image forming apparatus, program, and recording medium
JP4708460B2 (en) Display control apparatus, image forming apparatus, display device control method, control program, and recording medium
JP5540553B2 (en) Image processing apparatus, image forming apparatus, image processing method, and image processing program
JP4763027B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium
JPH1169164A (en) Image encoding method, image encoder, image decoder and image forming device
KR100757631B1 (en) Image processing apparatus and its method
JP2007060619A (en) Image processing unit, method and program for compressing image, and recording medium
JP4764938B2 (en) Image processing apparatus, image forming apparatus, image processing apparatus control method, program, and recording medium
JP4763026B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium
JP5293514B2 (en) Image processing apparatus and image processing program
JP5225201B2 (en) Image processing device
JP5021578B2 (en) Image processing apparatus and image processing method
JP2009141430A (en) Image processor
JP5052562B2 (en) Image processing device
JP4908382B2 (en) Image processing apparatus and image processing method
JP4628984B2 (en) Image processing device
JP4795406B2 (en) Image processing apparatus, image forming apparatus, image processing apparatus control method, control program, and recording medium
JP5072907B2 (en) Image processing device
JP2009212692A (en) Image processor and image forming apparatus
JP2001186356A (en) Picture compression device, picture compresion method and computer readable storage medium
JP5122507B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4974072B2 (en) Image processing device
JP2006157806A (en) Image processor
JP2006033726A (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer readable recording medium with image processing program recorded thereon
JP2005323133A (en) Communication terminal equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110822

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120711

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 5072907

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150831

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees