JP2008072237A - Image processing method, image processor, image forming apparatus and computer program - Google Patents

Image processing method, image processor, image forming apparatus and computer program Download PDF

Info

Publication number
JP2008072237A
JP2008072237A JP2006247187A JP2006247187A JP2008072237A JP 2008072237 A JP2008072237 A JP 2008072237A JP 2006247187 A JP2006247187 A JP 2006247187A JP 2006247187 A JP2006247187 A JP 2006247187A JP 2008072237 A JP2008072237 A JP 2008072237A
Authority
JP
Japan
Prior art keywords
image
character
area
region
shadow
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
JP2006247187A
Other languages
Japanese (ja)
Inventor
Tsuyoshi Owaku
剛志 大和久
Hiromichi Nakayama
裕理 中山
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2006247187A priority Critical patent/JP2008072237A/en
Publication of JP2008072237A publication Critical patent/JP2008072237A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing method for executing processing to an image wherein a plurality of regions coexist, an image processor, an image forming apparatus and a computer program. <P>SOLUTION: Region separating processing is performed for input image data (S11), and an input image is separated into a character region, the shadow region of shadowed characters and the other region. Then, whether or not the block of a judgement object is the character region is judged (S12), and in the case of judging that it is not the character region (S12:NO), dither processing of 7×7 is executed (S13). Also, in the case of judging that it is the character region (S12:YES), whether or not the character region is the shadow region of the shadowed characters is judged (S14), the dither processing of 1×1 is executed (S15) in the case that it is not the shadow region (S14:NO), and the dither processing of 5×5 is executed (S16) in the case that it is the shadow region (S14:YES). <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、複数の領域が混在する画像に対して処理を施す画像処理方法、画像処理装置、画像形成装置、及びコンピュータプログラムに関する。   The present invention relates to an image processing method, an image processing apparatus, an image forming apparatus, and a computer program for performing processing on an image in which a plurality of areas are mixed.

複写機、又は複写機能、ファクシミリ機能及びプリント機能等を備えるデジタル複合機等の従来の画像処理装置には、原稿から読み取って生成した又は外部装置から入力された処理対象の画像データ(以下、原画像データという)から文字領域を検出し、検出した文字領域の画素データに画像処理を施した画像データ(以下、処理画像データという)を出力した際に、出力画像の文字再現性を高めることができるものがある。文字を鮮明に濃く再現するための一般的な画像処理としては、文字領域の画素データを2値化して出力する方法、又はガンマ補正を行って濃度を調整することによりコントラストを上げて出力する方法等が用いられている(例えば、特許文献1参照)。   2. Description of the Related Art Conventional image processing apparatuses such as a copying machine or a digital multifunction machine having a copying function, a facsimile function, a printing function, and the like include image data to be processed (hereinafter referred to as an original) generated by reading from an original or input from an external device. When a character area is detected from image data) and image data obtained by performing image processing on the pixel data of the detected character area (hereinafter referred to as processed image data) is output, character reproducibility of the output image is improved. There is something you can do. As general image processing for reproducing characters vividly and darkly, a method of binarizing and outputting pixel data of a character region, or a method of increasing the contrast by adjusting the density by performing gamma correction and outputting the data Etc. are used (for example, refer to Patent Document 1).

特許文献1には、原画像データから文字領域を検出して2値化する例が開示されている。詳しくは、原画像データの所定領域に含まれる画素データをそのRGB値によって分類し、分類した画素データの内、2番目に多い画素データの数が規定値の範囲である場合に、1番多い画素データの領域を背景領域、2番目に多い画素データの領域を文字領域として識別し、更に識別した背景領域の明度が高い場合は、背景領域と背景領域以外の領域(文字領域)とに分類し、逆に識別した文字領域の明度が高い場合は、文字領域と文字領域以外の領域(背景領域)とに分類することで2値化を行うことが開示されている。
特開平11−213090号公報
Patent Document 1 discloses an example in which a character area is detected from original image data and binarized. Specifically, pixel data included in a predetermined area of the original image data is classified according to its RGB values, and when the number of pixel data that is the second largest among the classified pixel data is within a specified value range, the largest number is obtained. Identify the pixel data area as the background area, the second most pixel data area as the character area, and if the identified background area has high brightness, classify it as a background area and an area other than the background area (character area) On the contrary, when the brightness of the identified character region is high, binarization is performed by classifying the character region into a region other than the character region (background region).
Japanese Patent Laid-Open No. 11-213090

しかしながら、影付き文字を含む原画像に対応する原画像データの画像処理に特許文献1に開示されている方法を適用した場合、影に該当する領域の画素データも文字領域として分類されるので、文字領域(=文字部分+影部分)と背景領域とに2値化されることになる。特に明るい(明度が高い)背景の上に暗い(明度が低い)影付き文字が重複している原画像の場合、背景は白に置換され、文字部分と影部分とは共に黒に置換されるため、出力画像は文字が潰れて読解できなくなるという問題がある。   However, when the method disclosed in Patent Document 1 is applied to image processing of original image data corresponding to an original image including a shadowed character, pixel data of a region corresponding to a shadow is also classified as a character region. It is binarized into a character area (= character part + shadow part) and a background area. In particular, in the case of an original image in which dark (low lightness) shadow characters overlap on a bright (high lightness) background, the background is replaced with white, and both the character part and the shadow part are replaced with black. Therefore, the output image has a problem that characters are crushed and cannot be read.

本発明は斯かる事情に鑑みてなされたものであり、文字を構成する画素からなる文字領域と文字の影を構成する画素からなる影領域とを画像から抽出し、抽出した文字領域と影領域との間に階調差を生じさせる処理を施す構成とすることにより、影付き文字の影の部分が潰れることなく、文字部分と影部分との階調差を表現することができる画像処理方法、画像処理装置、画像形成装置、及びコンピュータプログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and extracts a character region composed of pixels constituting a character and a shadow region composed of pixels constituting a shadow of the character from an image, and the extracted character region and shadow region Image processing method capable of expressing the gradation difference between the character part and the shadow part without causing the shadow part of the shaded character to be crushed by performing a process for generating a gradation difference between An object of the present invention is to provide an image processing apparatus, an image forming apparatus, and a computer program.

本発明に係る画像処理方法は、複数の画素からなる画像から特定の領域を抽出し、抽出した領域に対して処理を施す画像処理方法において、文字を構成する画素からなる文字領域、及び前記文字の影を構成する画素からなる影領域を前記画像から抽出するステップと、抽出した文字領域と影領域との間に階調差を生じさせる処理を施すステップとを有することを特徴とする。   An image processing method according to the present invention is a method of extracting a specific area from an image composed of a plurality of pixels and performing processing on the extracted area. The character area including pixels constituting a character, and the character The method includes a step of extracting a shadow area composed of pixels constituting the shadow of the image from the image, and a step of performing a process of generating a gradation difference between the extracted character area and the shadow area.

本発明にあっては、文字を構成する画素からなる文字領域と文字の影を構成する画素からなる影領域とを画像から抽出し、抽出した文字領域と影領域との間に階調差を生じさせる処理を施すため、影付き文字の影の部分が潰れることを防止することができ、影付き文字の再現性が向上する。   In the present invention, a character area consisting of pixels constituting a character and a shadow area consisting of pixels constituting a character shadow are extracted from the image, and a gradation difference is extracted between the extracted character area and shadow area. Since the process to generate is performed, it is possible to prevent the shadow portion of the shaded character from being crushed, and the reproducibility of the shaded character is improved.

本発明に係る画像処理方法は、前記画像に含まれる画素について輝度値の分布を算出するステップと、該ステップにより算出した分布に3つのピークが含まれるか否かを判定するステップと、3つのピークが含まれると判定した場合、ピーク値に対応する輝度値に基づき、前記画像を輝度値に関して3つの領域に分類するステップと、分類した3つの領域のうち、最も輝度値が低い領域を文字領域、中間の輝度値を有する領域を影領域、最も輝度値が高い領域をその他の領域として抽出するステップとを有することを特徴とする。   An image processing method according to the present invention includes a step of calculating a luminance value distribution for pixels included in the image, a step of determining whether or not three peaks are included in the distribution calculated by the step, If it is determined that a peak is included, the step of classifying the image into three regions with respect to the luminance value based on the luminance value corresponding to the peak value, and the region with the lowest luminance value among the three classified regions is a character Extracting a region having an intermediate luminance value as a shadow region and a region having the highest luminance value as another region.

本発明にあっては、輝度値の分布に3つのピークが含まれている場合、ピーク値に対応する輝度値に基づいて3つの領域に分類する。影付き文字の領域は、文字の部分、影の部分、及び背景の部分の3つの構成要素からなり、それぞれの明るさが大別できるという特徴を有する。よって、輝度値の分布からピークの情報を用いることにより、それぞれの領域が精度良く抽出される。   In the present invention, when three peaks are included in the distribution of luminance values, the three regions are classified based on the luminance values corresponding to the peak values. The shaded character area is composed of three components, that is, a character portion, a shadow portion, and a background portion, and has a feature that the brightness of each can be roughly divided. Therefore, by using the peak information from the luminance value distribution, each region is extracted with high accuracy.

本発明に係る画像処理方法は、前記処理はディザ処理であり、前記文字領域に対する処理と前記影領域に対する処理との間で異なるサイズのディザ行列を用いることを特徴とする。   In the image processing method according to the present invention, the process is a dither process, and a dither matrix having a different size is used between the process for the character area and the process for the shadow area.

本発明にあっては、文字領域に対するディザ処理と影領域に対するディザ処理との間で異なるサイズのディザ行列を用いることにより、例えば、文字領域に対して解像度を重視した中間調処理、影領域に対して階調性を重視した中間調処理を施すことができ、抽出した文字領域と影領域との間に階調差が生じる。   In the present invention, by using a dither matrix having a different size between the dither processing for the character region and the dither processing for the shadow region, for example, halftone processing that emphasizes resolution for the character region, On the other hand, halftone processing that emphasizes gradation can be performed, and a gradation difference is generated between the extracted character area and shadow area.

本発明に係る画像処理装置は、複数の画素からなる画像から特定の領域を抽出し、抽出した領域に対して処理を施す画像処理装置において、文字を構成する画素からなる文字領域、及び前記文字の影を構成する画素からなる影領域を前記画像から抽出する手段と、抽出した文字領域と影領域との間に階調差を生じさせる処理を施す手段とを備えることを特徴とする。   An image processing apparatus according to the present invention extracts a specific region from an image composed of a plurality of pixels, and performs processing on the extracted region. In the image processing device, a character region composed of pixels constituting a character, and the character And a means for extracting a shadow area composed of pixels constituting the shadow from the image and a means for performing a process for generating a gradation difference between the extracted character area and the shadow area.

本発明にあっては、文字を構成する画素からなる文字領域と文字の影を構成する画素からなる影領域とを画像から抽出し、抽出した文字領域と影領域との間に階調差を生じさせる処理を施すため、影付き文字の影の部分が潰れることを防止することができ、影付き文字の再現性が向上する。   In the present invention, a character area consisting of pixels constituting a character and a shadow area consisting of pixels constituting a character shadow are extracted from the image, and a gradation difference is extracted between the extracted character area and shadow area. Since the process to generate is performed, it is possible to prevent the shadow portion of the shaded character from being crushed, and the reproducibility of the shaded character is improved.

本発明に係る画像処理装置は、前記画像に含まれる画素について輝度値の分布を算出する手段と、該手段により算出した分布に3つのピークが含まれるか否かを判定する手段と、3つのピークが含まれると判定した場合、ピーク値に対応する輝度値に基づき、前記画像を輝度値に関して3つの領域に分類する手段と、分類した3つの領域のうち、最も輝度値が低い領域を文字領域、中間の輝度値を有する領域を影領域、最も輝度値が高い領域をその他の領域として抽出する手段とを備えることを特徴とする。   The image processing apparatus according to the present invention includes a means for calculating a distribution of luminance values for the pixels included in the image, a means for determining whether or not three peaks are included in the distribution calculated by the means, and three When it is determined that a peak is included, a means for classifying the image into three regions with respect to the luminance value based on a luminance value corresponding to the peak value, and a region having the lowest luminance value among the three classified regions is a character And a means for extracting a region having an intermediate luminance value as a shadow region and a region having the highest luminance value as another region.

本発明にあっては、輝度値の分布に3つのピークが含まれている場合、ピーク値に対応する輝度値に基づいて3つの領域に分類する。影付き文字の領域は、文字の部分、影の部分、及び背景の部分の3つの構成要素からなり、それぞれの明るさが大別できるという特徴を有する。よって、輝度値の分布からピークの情報を用いることにより、それぞれの領域が精度良く抽出される。   In the present invention, when three peaks are included in the distribution of luminance values, the three regions are classified based on the luminance values corresponding to the peak values. The shaded character area is composed of three components, that is, a character portion, a shadow portion, and a background portion, and has a feature that the brightness of each can be roughly divided. Therefore, by using the peak information from the luminance value distribution, each region is extracted with high accuracy.

本発明に係る画像処理装置は、前記処理はディザ処理であり、前記文字領域に対する処理と前記影領域に対する処理との間で異なるサイズのディザ行列を用いることを特徴とする。   In the image processing apparatus according to the present invention, the process is a dither process, and a dither matrix having a different size is used between the process for the character area and the process for the shadow area.

本発明にあっては、文字領域に対するディザ処理と影領域に対するディザ処理との間で異なるサイズのディザ行列を用いることにより、例えば、文字領域に対して解像度を重視した中間調処理、影領域に対して階調性を重視した中間調処理を施すことができ、抽出した文字領域と影領域との間に階調差が生じる。   In the present invention, by using a dither matrix having a different size between the dither processing for the character region and the dither processing for the shadow region, for example, halftone processing that emphasizes resolution for the character region, On the other hand, halftone processing that emphasizes gradation can be performed, and a gradation difference is generated between the extracted character area and shadow area.

本発明に係る画像形成装置は、前述した発明の何れか1つに記載の画像処理装置と、該画像処理装置により処理された画像をシート上に形成する手段とを備えることを特徴とする。   An image forming apparatus according to the present invention includes the image processing apparatus according to any one of the above-described inventions, and a unit that forms an image processed by the image processing apparatus on a sheet.

本発明にあっては、前述した画像処理装置により処理された画像をシート上に形成するため、影付き文字の再現性を良く表現することができる。   In the present invention, since the image processed by the above-described image processing apparatus is formed on the sheet, the reproducibility of the shaded character can be expressed well.

本発明に係るコンピュータプログラムは、コンピュータに、複数の画素からなる画像から特定の領域を抽出させ、抽出させた領域に対して処理を施させるコンピュータプログラムにおいて、コンピュータに、文字を構成する画素からなる文字領域、及び前記文字の影を構成する画素からなる影領域を前記画像から抽出させるステップと、コンピュータに、抽出した文字領域と影領域との間に階調差を生じさせる処理を施させるステップとを有することを特徴とする。   A computer program according to the present invention is a computer program that causes a computer to extract a specific area from an image composed of a plurality of pixels and to perform processing on the extracted area. The computer program includes pixels that constitute characters. A step of extracting a character region and a shadow region composed of pixels constituting the shadow of the character from the image, and a step of causing a computer to perform a process of generating a gradation difference between the extracted character region and the shadow region It is characterized by having.

本発明にあっては、文字を構成する画素からなる文字領域と文字の影を構成する画素からなる影領域とを画像から抽出し、抽出した文字領域と影領域との間に階調差を生じさせる処理を施すため、影付き文字の影の部分が潰れることを防止することができ、影付き文字の再現性が向上する。   In the present invention, a character area consisting of pixels constituting a character and a shadow area consisting of pixels constituting a character shadow are extracted from the image, and a gradation difference is extracted between the extracted character area and shadow area. Since the process to generate is performed, it is possible to prevent the shadow portion of the shaded character from being crushed, and the reproducibility of the shaded character is improved.

本発明による場合は、文字を構成する画素からなる文字領域と文字の影を構成する画素からなる影領域とを画像から抽出し、抽出した文字領域と影領域との間に階調差を生じさせる処理を施す。したがって、影付き文字の影の部分が潰れることを防止することができ、それぞれの領域を再現性良く表現することができる。   According to the present invention, a character area composed of pixels constituting a character and a shadow area composed of pixels constituting a character shadow are extracted from the image, and a gradation difference is generated between the extracted character area and shadow area. Apply the process to be. Therefore, it is possible to prevent the shadow portion of the shaded character from being crushed, and each region can be expressed with good reproducibility.

本発明による場合は、輝度値の分布に3つのピークが含まれている場合、ピーク値に対応する輝度値に基づいて3つの領域に分類する。影付き文字の領域は、文字の部分、影の部分、及び背景の部分の3つの構成要素からなり、それぞれの明るさが大別できるという特徴を有する。したがって、輝度値の分布からピークの情報を用いることにより、影付き文字の構成を精度良く抽出することができる。   According to the present invention, when three peaks are included in the luminance value distribution, the three regions are classified based on the luminance value corresponding to the peak value. The shaded character area is composed of three components, that is, a character portion, a shadow portion, and a background portion, and has a feature that the brightness of each can be roughly divided. Therefore, by using the peak information from the luminance value distribution, the structure of the shaded character can be extracted with high accuracy.

本発明による場合は、文字領域に対するディザ処理と影領域に対するディザ処理との間で異なるサイズのディザ行列を用いることにより、例えば、文字領域に対して解像度を重視した中間調処理、影領域に対して階調性を重視した中間調処理を施すことができ、抽出した文字領域と影領域との間に階調差が生じさせることができ、影付き文字を再現性良く表現することができる。   According to the present invention, by using a dither matrix having a different size between the dither processing for the character region and the dither processing for the shadow region, for example, halftone processing that emphasizes resolution for the character region, Thus, halftone processing can be performed with emphasis on gradation, a gradation difference can be generated between the extracted character area and shadow area, and a shaded character can be expressed with good reproducibility.

本発明による場合は、前述した画像処理装置により処理された画像をシート上に形成するため、影付き文字の再現性を良く表現することができる。   In the case of the present invention, since the image processed by the above-described image processing apparatus is formed on the sheet, the reproducibility of the shaded character can be expressed well.

以下、本発明をその実施の形態を示す図面に基づいて具体的に説明する。
実施の形態1.
図1は本発明に係る画像処理装置の内部構成を示すブロック図である。本発明に係る画像処理装置は、操作部1、画像入力部3、画像処理部5、及び画像出力部7を備える。
Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof.
Embodiment 1 FIG.
FIG. 1 is a block diagram showing an internal configuration of an image processing apparatus according to the present invention. The image processing apparatus according to the present invention includes an operation unit 1, an image input unit 3, an image processing unit 5, and an image output unit 7.

操作部1は、利用者に対して報知すべき情報を表示する表示装置、利用者による操作指示、選択操作などを受付ける各種スイッチ、ボタン等を備える。   The operation unit 1 includes a display device that displays information to be notified to the user, various switches that accept operation instructions and selection operations by the user, buttons, and the like.

画像入力部3は、原稿の画像を光学的に読取る手段であり、読取用の原稿に光を照射する光源、CCD(Charge Coupled Device)のようなイメージセンサ等を備えている。画像入力部3では、所定の読取位置にセットされた原稿からの反射光像を当該イメージセンサに結像させ、RGB(R : Red, G : Green, B : Blue)のアナログ電気信号を出力する。画像入力部3が出力したアナログ電気信号は画像処理部5へ入力される。   The image input unit 3 is a unit that optically reads an image of a document, and includes a light source that irradiates light to a document for reading, an image sensor such as a CCD (Charge Coupled Device), and the like. In the image input unit 3, a reflected light image from a document set at a predetermined reading position is formed on the image sensor, and RGB (R: Red, G: Green, B: Blue) analog electrical signals are output. . The analog electrical signal output from the image input unit 3 is input to the image processing unit 5.

画像処理部5は、画像入力部3から出力されるアナログ電気信号をデジタル電気信号に変換した後、原稿種別に応じた画像処理を行って出力用の画像信号を生成する。生成した画像信号は画像出力部7へ出力される。本実施の形態では、出力用の画像信号としてCMYK信号(C:Cyan, M:Magenta, Y:Yellow, K:Black)を生成するようにしている。なお、画像処理部5の内部構成、動作等については後に詳述することとする。   The image processing unit 5 converts the analog electrical signal output from the image input unit 3 into a digital electrical signal, and then performs image processing according to the document type to generate an output image signal. The generated image signal is output to the image output unit 7. In the present embodiment, CMYK signals (C: Cyan, M: Magenta, Y: Yellow, K: Black) are generated as image signals for output. The internal configuration and operation of the image processing unit 5 will be described in detail later.

画像出力部7は、画像処理部5が出力する画像信号に基づいて用紙、OHPフィルム等のシート上に画像形成を行う手段である。そのため、画像出力部7は、感光体ドラムを所定の電位に帯電させる帯電器、外部から受付けた画像データに応じてレーザ光を発して感光体ドラム上に静電潜像を生成させるレーザ書込装置、感光体ドラム表面に形成された静電潜像にトナーを供給して顕像化する現像器、感光体ドラム表面に形成されたトナー像を用紙上に転写する転写器等(不図示)を備えており、電子写真方式にて利用者が所望する画像を用紙上に形成する。なお、レーザ書込装置を用いた電子写真方式により画像形成を行う他、インクジェット方式、熱転写方式、昇華方式等により画像形成を行う構成であってもよい。   The image output unit 7 is a unit that forms an image on a sheet such as paper or an OHP film based on the image signal output from the image processing unit 5. Therefore, the image output unit 7 is a charger that charges the photosensitive drum to a predetermined potential, and laser writing that generates an electrostatic latent image on the photosensitive drum by emitting laser light in accordance with image data received from the outside. An apparatus, a developing device that supplies toner to the electrostatic latent image formed on the surface of the photosensitive drum to make it visible, a transfer device that transfers the toner image formed on the surface of the photosensitive drum onto paper (not shown), etc. And an image desired by the user is formed on a sheet by electrophotography. In addition to image formation by an electrophotographic method using a laser writing apparatus, an image formation may be performed by an inkjet method, a thermal transfer method, a sublimation method, or the like.

なお、画像入力部3を画像読取手段として構成し、画像出力部7を画像形成手段として構成したが、外部から画像データを受信する手段、外部に画像データを送信する手段として構成するようにしてもよく、それらを適宜に組み合わせた構成であってもよい。例えば、画像入力部3が画像読取手段、画像出力部7が画像データの送信手段である場合には、本発明はスキャナ装置として動作することとなり、画像入力部3が画像データの受信手段、画像出力部7が画像形成手段である場合には、本発明はプリンタ装置(画像形成装置)として動作することとなる。また、画像の読取手段、画像形成手段、画像データの送受信手段を備えるデジタル複合機にも適用できることは勿論のことである。   Although the image input unit 3 is configured as an image reading unit and the image output unit 7 is configured as an image forming unit, the image input unit 3 is configured as a unit that receives image data from the outside and a unit that transmits image data to the outside. Alternatively, a configuration in which they are appropriately combined may be used. For example, when the image input unit 3 is an image reading unit and the image output unit 7 is an image data transmission unit, the present invention operates as a scanner device. The image input unit 3 is an image data receiving unit, When the output unit 7 is an image forming unit, the present invention operates as a printer device (image forming device). Needless to say, the present invention can also be applied to a digital multi-function peripheral including an image reading unit, an image forming unit, and an image data transmitting / receiving unit.

以下、画像処理部5の内部構成の詳細について説明する。画像処理部5は、AD変換部51、シェーディング補正部52、入力処理部53、領域分離処理部54、色補正部55、黒生成下色除去部56、空間フィルタ処理部57、中間調生成部58を備える。   Details of the internal configuration of the image processing unit 5 will be described below. The image processing unit 5 includes an AD conversion unit 51, a shading correction unit 52, an input processing unit 53, a region separation processing unit 54, a color correction unit 55, a black generation and under color removal unit 56, a spatial filter processing unit 57, and a halftone generation unit. 58.

AD変換部51は、画像入力部3から入力されたRGBアナログ信号をデジタル信号に変換する。シェーディング補正部52は、AD変換部51から出力されたデジタル形式のRGB信号に対して、画像入力部3の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施す。入力処理部53においてRGB信号のそれぞれに対してガンマを補正する処理を施す。   The AD conversion unit 51 converts the RGB analog signal input from the image input unit 3 into a digital signal. The shading correction unit 52 performs a process of removing various distortions generated in the illumination system, the imaging system, and the imaging system of the image input unit 3 on the digital RGB signal output from the AD conversion unit 51. The input processing unit 53 performs processing for correcting gamma for each of the RGB signals.

領域分離処理部54は、入力画像中の各画素が属する領域を分離する。例えば、網点領域では縦方向(副走査方向)、横方向(主走査方向)の両方において濃度変化が大きく、文字領域では、どちらかについてのみ濃度変化が大きくなる傾向があるため、領域分離処理部54では、このことを利用して文字領域、網点領域、写真領域に分離することができる。領域分離処理部54は、分離結果に基づき、画素がどの領域に属しているかを示す領域識別信号を後段の黒生成下色除去部56、空間フィルタ処理部57、及び中間調生成部58へ出力すると共に、入力処理部53からの入力信号をそのまま後段の色補正部55へ出力する。   The region separation processing unit 54 separates a region to which each pixel in the input image belongs. For example, the density change tends to be large in both the vertical direction (sub-scanning direction) and the horizontal direction (main scanning direction) in the halftone area, and the density change tends to increase only in one of the character areas. Using this, the unit 54 can separate the character area, the halftone dot area, and the photograph area. Based on the separation result, the region separation processing unit 54 outputs a region identification signal indicating to which region the pixel belongs to the subsequent black generation and under color removal unit 56, the spatial filter processing unit 57, and the halftone generation unit 58. In addition, the input signal from the input processing unit 53 is output to the subsequent color correction unit 55 as it is.

色補正部55は、色再現の忠実化再現のために、不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行うものである。黒生成下色除去部56は、色補正後のCMYの3色信号から黒(K)信号を生成する黒生成、元のCMY信号から黒生成で得たK信号を差し引いた新たなCMY信号を生成する処理を行う。この処理によってCMYの3色信号はCMYKの4色信号に変換される。   The color correction unit 55 performs processing for removing color turbidity based on the spectral characteristics of the CMY color material including unnecessary absorption components in order to faithfully reproduce color reproduction. The black generation and under color removal unit 56 generates black (K) signals from the CMY three-color signals after color correction, and generates a new CMY signal obtained by subtracting the K signal obtained by black generation from the original CMY signals. Generate the process. By this processing, the CMY three-color signal is converted into a CMYK four-color signal.

空間フィルタ処理部57は、黒生成下色除去部56より入力されるCMYK信号の画像データに対して、領域識別信号を基にデジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正することによって出力画像のぼやけや粒子状劣化を防ぐ処理を行う。   The spatial filter processing unit 57 performs spatial filter processing by a digital filter on the image data of the CMYK signal input from the black generation and under color removal unit 56 based on the region identification signal, thereby correcting the spatial frequency characteristics. Performs processing to prevent blurring and particulate deterioration of the output image.

中間調生成部58は、領域分離処理部54から出力される領域識別信号に応じた適切な処理の切替えを行う。本発明では、特に影付き文字の可読性を向上させるために、通常の文字部分(文字領域)、影付き文字の影部分(影領域)、その他の領域に応じたディザ処理を施す。   The halftone generation unit 58 performs appropriate process switching according to the region identification signal output from the region separation processing unit 54. In the present invention, in order to improve the readability of a shaded character in particular, a dither process is performed according to a normal character portion (character region), a shaded character shadow portion (shadow region), and other regions.

次に、領域分離処理部54での処理内容について説明する。図2は領域分離処理部54の構成を説明するブロック図である。領域分離処理部54は、信号変換部541、最大値算出部542、最小値算出部543、最大濃度差判定部544、反転回数算出部545、反転回数判定部546、判定部547、及び影付き文字領域判定部548を備える。   Next, processing contents in the region separation processing unit 54 will be described. FIG. 2 is a block diagram illustrating the configuration of the region separation processing unit 54. The region separation processing unit 54 includes a signal conversion unit 541, a maximum value calculation unit 542, a minimum value calculation unit 543, a maximum density difference determination unit 544, an inversion number calculation unit 545, an inversion number determination unit 546, a determination unit 547, and a shaded area. A character area determination unit 548 is provided.

信号変換部541は、入力RGB画像中のM×Nの複数の画素からなるブロック(例えば、7×7のブロック)において、RGB信号をLab信号に変換する。Lab信号は、Lが輝度を表す信号、aが赤色/緑色のバランスを表す信号、bが黄色/青色のバランスを表す信号によって一つの色を示す信号である。RGB信号からLab信号への変換は、以下の式により表される。   The signal converter 541 converts an RGB signal into a Lab signal in a block (for example, a 7 × 7 block) composed of a plurality of M × N pixels in the input RGB image. The Lab signal is a signal that indicates one color by a signal that L represents luminance, a signal that represents a red / green balance, and b a signal that represents a yellow / blue balance. Conversion from RGB signals to Lab signals is expressed by the following equation.

Figure 2008072237
Figure 2008072237

最大値算出部542及び最小値算出部543は、信号変換部541が出力するLab信号に基づき、輝度を表す信号Lの最大値Lmax及び最小値Lminをそれぞれ算出する。   The maximum value calculation unit 542 and the minimum value calculation unit 543 calculate the maximum value Lmax and the minimum value Lmin of the signal L representing the luminance based on the Lab signal output from the signal conversion unit 541, respectively.

最大濃度差判定部544は、最大値Lmax及び最小値Lminの差を算出し、算出した差Lmax−Lminと予め記憶している閾値TH1(例えば、TH1=150)とを比較する。Lmax−Lmin>TH1である場合、すなわち、ブロック内における輝度値の変化が大きい場合、出力信号S1(=0)を出力する。また、Lmax−Lmin≦TH1である場合、すなわち、ブロック内における輝度の変化が小さい場合、出力信号S1(=1)を出力する。   The maximum density difference determination unit 544 calculates a difference between the maximum value Lmax and the minimum value Lmin, and compares the calculated difference Lmax−Lmin with a threshold TH1 (for example, TH1 = 150) stored in advance. When Lmax−Lmin> TH1, that is, when the change of the luminance value in the block is large, the output signal S1 (= 0) is output. Further, when Lmax−Lmin ≦ TH1, that is, when the change in luminance in the block is small, the output signal S1 (= 1) is output.

反転回数算出部545は、M×Nブロック内において各画素の平均輝度信号レベルで2値化(0又は1に変換)し、主走査方向又は副走査方向における連続する画素間で0,1の変化の回数のブロック内での合計Kh,Kvを求める。   The inversion number calculation unit 545 binarizes the average luminance signal level of each pixel in the M × N block (converts it to 0 or 1), and 0 or 1 between consecutive pixels in the main scanning direction or the sub-scanning direction. The total Kh and Kv in the block of the number of changes is obtained.

反転回数判定部546は、Lmax−Lmin>TH1であるブロックについて、Kh,Kvのぞれぞれの値を閾値TH2(例えば、TH2=15)と比較する。Kh≧TH2かつKv≧TH2である場合、すなわち、主走査方向、副走査方向共に輝度変化が激しい場合、出力信号S2(=0)を出力する。また、Kh<TH2又はKv<TH2である場合、すなわち、主走査方向、副走査方向の何れか一方について輝度変化が激しい場合、出力信号S2(=1)を出力する。   The inversion number determination unit 546 compares each value of Kh and Kv with a threshold value TH2 (for example, TH2 = 15) for a block with Lmax−Lmin> TH1. When Kh ≧ TH2 and Kv ≧ TH2, that is, when the luminance change is significant in both the main scanning direction and the sub-scanning direction, an output signal S2 (= 0) is output. When Kh <TH2 or Kv <TH2, that is, when the luminance change is severe in either the main scanning direction or the sub-scanning direction, the output signal S2 (= 1) is output.

判定部547は、最大濃度差判定部544から出力される出力信号S1の値、及び反転回数判定部546から出力される出力信号S2の値に基づき、文字領域、網点領域、その他の領域(連続階調の写真領域、下地領域などを含めて、その他の領域とする)の何れかに判定し、第1の領域識別信号SEG1を影付き文字領域判定部548へ出力する。図3は判定部547が領域判定を行う際に使用するテーブルの一例を示す図表である。このテーブルでは、写真領域(連続階調領域)は階調性を有しており、下地領域は濃度がほぼ均一であるので、ブロック内の最大濃度差は小さくなり、また、網点領域では、網点が周期的に配列され、濃度の高い画素が空間的に分散されているという特徴を用いている。   Based on the value of the output signal S1 output from the maximum density difference determination unit 544 and the value of the output signal S2 output from the inversion number determination unit 546, the determination unit 547 determines a character region, a dot region, and other regions ( The first region identification signal SEG 1 is output to the shaded character region determination unit 548. FIG. 3 is a chart illustrating an example of a table used when the determination unit 547 performs region determination. In this table, the photographic area (continuous gradation area) has gradation, and the background area has a substantially uniform density, so the maximum density difference in the block is small, and in the halftone area, The feature is that halftone dots are arranged periodically and pixels with high density are spatially dispersed.

影付き文字領域判定部548は、判定部547において文字領域と判定された場合、輝度値Lの分布から影付き文字領域を分離する処理を行う。図4は影付き文字領域判定部548の内部構成を示すブロック図である。影付き文字領域判定部548は、ヒストグラム作成部548A及び領域判定部548Bを備える。ヒストグラム作成部548Aは、各画素の輝度値Lを集計してヒストグラムを作成し、領域判定部548Bは、作成されたヒストグラムに3つのピークが含まれているか否かを判定することにより影付き文字を含んだ領域であるか否かを判定する。   When the determination unit 547 determines that the shaded character area is a character area, the shadowed character area determination unit 548 performs a process of separating the shaded character area from the distribution of the luminance values L. FIG. 4 is a block diagram showing the internal configuration of the shaded character area determination unit 548. The shadowed character area determination unit 548 includes a histogram creation unit 548A and an area determination unit 548B. The histogram creation unit 548A creates a histogram by summing up the luminance values L of each pixel, and the region determination unit 548B determines whether or not the created histogram includes three peaks, thereby determining the shaded character. It is determined whether or not the region includes.

3つのピークが含まれていないと判定した場合、領域判定部548Bは、その領域が影付きでない通常の文字領域と判定し、前述した判定部547から出力されたSEG1を最終の領域識別信号SEGとして出力する。3つのピークが含まれると判定した場合は影付き文字領域と判定し、ピークに対応した輝度値PeaK_L1,PeaK_L2,PeaK_L3を用いて2つの閾値TH_L1,TH_L2を設定する。例えば、閾値TH_L1は2つの輝度値PeaK_L1,PeaK_L2の中央値、閾値TH_L2は2つの輝度値PeaK_L2,PeaK_L3の中央値として設定することができる。そして、閾値TH_L1,TH_L2を用いて3つの領域に分割し、輝度値が小さい方から順に、影付き文字の文字部分(文字領域)、影付き文字の影部分(影領域)、その他の領域と判定し、この判定結果を領域識別信号SEGとして出力する。   If it is determined that the three peaks are not included, the region determination unit 548B determines that the region is a normal character region that is not shaded, and uses SEG1 output from the determination unit 547 described above as the final region identification signal SEG. Output as. If it is determined that three peaks are included, it is determined as a shaded character region, and two threshold values TH_L1 and TH_L2 are set using the brightness values PeaK_L1, PeaK_L2, and PearK_L3 corresponding to the peaks. For example, the threshold value TH_L1 can be set as the median value of the two luminance values PeaK_L1 and PeaK_L2, and the threshold value TH_L2 can be set as the median value of the two luminance values PeaK_L2 and PeaK_L3. Then, it is divided into three regions using threshold values TH_L1 and TH_L2, and the character portion (character region) of the shaded character, the shadow portion (shadow region) of the shaded character, The determination result is output as a region identification signal SEG.

図5はヒストグラム作成部548Aにより作成されたヒストグラムの一例を示す模式図である。判定対象のブロックの各画素について輝度値を集計した結果、図5に示すヒストグラムが得られた場合、すなわち、Peak_L1=30、Peak_L2=80、Peak_L3=150にピーク値を持つ3つのピークを含んだ分布が得られた場合、領域判定部548Bは、2つの閾値をTH_L1=55、TH_L2=115に設定し、輝度値Lが0≦L<55の領域を文字領域、輝度値Lが55≦L<115の領域を影領域、輝度値Lが115≦L<255の領域をその他の領域として判定する。   FIG. 5 is a schematic diagram showing an example of a histogram created by the histogram creation unit 548A. When the histogram shown in FIG. 5 is obtained as a result of summing up the luminance values for each pixel of the determination target block, that is, three peaks having peak values at Peak_L1 = 30, Peak_L2 = 80, and Peak_L3 = 150 are included. When the distribution is obtained, the region determination unit 548B sets two threshold values as TH_L1 = 55 and TH_L2 = 115, a region where the luminance value L is 0 ≦ L <55, and a character region, and the luminance value L is 55 ≦ L. The region <115 is determined as a shadow region, and the region where the luminance value L is 115 ≦ L <255 is determined as another region.

以上の判定結果を3ビットの信号で表した場合、「000」を網点領域、「001」を文字領域、「01*」をその他の領域(*は、0又は1)、「101」を影付き文字の影領域として表すことができる。   When the above determination result is represented by a 3-bit signal, “000” is a halftone dot area, “001” is a character area, “01 *” is another area (* is 0 or 1), and “101” is It can be expressed as a shadow area of a shadowed character.

次に、中間調生成部58での処理内容について説明する。中間調生成部58では、領域分離処理部54より出力された領域識別信号SEGに基づき、各領域(ブロック)に対して最適なディザ処理を施す。例えば、網点領域又はその他の領域は色の階調性を重視した7×7のディザ処理、文字領域については解像度を重視した1×1のディザ処理、影付き文字の影部分については文字部分と階調差を出すために5×5のディザ処理を施す。   Next, processing contents in the halftone generation unit 58 will be described. The halftone generation unit 58 performs an optimal dither process on each region (block) based on the region identification signal SEG output from the region separation processing unit 54. For example, the halftone dot area or other areas are 7 × 7 dither processing that emphasizes color gradation, the character area is 1 × 1 dither processing that emphasizes resolution, and the shadow portion of a shaded character is a character portion. 5 × 5 dither processing is performed in order to obtain a gradation difference.

ディザ処理は、例えば、集中ドット型の組織的ディザを用いる。図6は集中ドット型の組織的ディザの一例を示す模式図である。一つのディザマトリクスの大きさを5×5、各画素がとる出力画素値を0,1の2値としたとき、階調数は0から25までの26階調となる。入力画像データのRGB信号はそれぞれ0から255までの値である。5×5のディザマトリクスにはそれぞれ閾値が設定されており(閾値マトリクス)、入力画素値xと閾値yとを比較し、x≧yである場合、出力画素値は「1」、x<yである場合、出力画素値は「0」とする。以上の処理により、中間調を生成する。   The dither processing uses, for example, a concentrated dot type systematic dither. FIG. 6 is a schematic diagram showing an example of a concentrated dot type systematic dither. When the size of one dither matrix is 5 × 5 and the output pixel value taken by each pixel is a binary value of 0 and 1, the number of gradations is 26 gradations from 0 to 25. The RGB signals of the input image data are values from 0 to 255, respectively. Each of the 5 × 5 dither matrices has a threshold value (threshold matrix), and the input pixel value x and the threshold value y are compared. When x ≧ y, the output pixel value is “1”, x <y In this case, the output pixel value is “0”. A halftone is generated by the above processing.

実施の形態2.
実施の形態1では、各処理をハードウェアにより実現する構成としたが、ソフトウェアの処理により本発明の画像処理を実現する構成としてもよい。
Embodiment 2. FIG.
In the first embodiment, each processing is realized by hardware. However, the image processing according to the present invention may be realized by software processing.

図7は本発明のコンピュータプログラムがインストールされた画像処理装置の内部構成を説明するブロック図である。図中100は、本実施の形態に係る画像処理装置であり、具体的にはパーソナルコンピュータ、ワークステーション等である。画像処理装置100はCPU101を備えており、CPU101にはROM103、RAM104、ハードディスク105、外部記憶部106、入力部107、表示部108、通信ポート109等のハードウェアがバス102を介して接続されている。CPU101は、ROM103に予め格納された制御プログラムに従って前述のハードウェア各部の制御を行う。   FIG. 7 is a block diagram illustrating the internal configuration of the image processing apparatus in which the computer program of the present invention is installed. In the figure, reference numeral 100 denotes an image processing apparatus according to the present embodiment, specifically a personal computer, a workstation, or the like. The image processing apparatus 100 includes a CPU 101, and hardware such as a ROM 103, a RAM 104, a hard disk 105, an external storage unit 106, an input unit 107, a display unit 108, and a communication port 109 is connected to the CPU 101 via a bus 102. Yes. The CPU 101 controls the above-described hardware units according to a control program stored in advance in the ROM 103.

RAM104は前述の制御プログラム、又は本発明に係るコンピュータプログラムの実行中に生成される各種データを一時的に記憶する揮発性のメモリである。ハードディスク105は、磁気記録媒体を有する記憶手段であり、本発明のコンピュータプログラム、処理対象の画像データ等が記憶される。外部記憶部106は、本発明のコンピュータプログラムを記録した記録媒体Mからコンピュータプログラムを読取るための読取装置を備えている。記録媒体Mとしては、FD(Flexible Disk)、CD−ROM等を用いることができる。外部記憶部106によって読取られたコンピュータプログラムはハードディスク105に格納される。CPU101はハードディスク105に格納された本発明に係るコンピュータプログラムをRAM104上にロードして実行することにより、実施の形態1で説明したような本発明に係る画像処理方法を実現する。   The RAM 104 is a volatile memory that temporarily stores various data generated during execution of the control program described above or the computer program according to the present invention. The hard disk 105 is a storage unit having a magnetic recording medium, and stores the computer program of the present invention, image data to be processed, and the like. The external storage unit 106 includes a reading device for reading the computer program from the recording medium M on which the computer program of the present invention is recorded. As the recording medium M, an FD (Flexible Disk), a CD-ROM, or the like can be used. The computer program read by the external storage unit 106 is stored in the hard disk 105. The CPU 101 loads the computer program according to the present invention stored in the hard disk 105 onto the RAM 104 and executes it, thereby realizing the image processing method according to the present invention as described in the first embodiment.

入力部107は、外部から画像データを取得するためのインタフェースとして機能する。入力部107には、例えば、カラースキャナ装置などが接続される。表示部108は、処理対象の画像データ、画像処理中の画像データ、画像処理後の画像データ等を表示するためのインタフェースとして機能する。表示部108に液晶ディスプレイ装置などの外部表示装置を接続して画像データを表示する構成であってもよく、表示部108自身が表示装置を備え、画像データを表示する構成であってもよい。通信ポート109は、外部にプリンタ150を接続するためのインタフェースである。画像処理された画像データをプリンタ150にて印刷する場合、画像処理装置100は、前記画像データを基にプリンタ150にてデコード可能なプリントデータを生成し、生成したプリントデータをプリンタ150へ送信する。   The input unit 107 functions as an interface for acquiring image data from the outside. For example, a color scanner device or the like is connected to the input unit 107. The display unit 108 functions as an interface for displaying image data to be processed, image data during image processing, image data after image processing, and the like. The display unit 108 may be configured to display image data by connecting an external display device such as a liquid crystal display device, or the display unit 108 may include a display device and display image data. The communication port 109 is an interface for connecting the printer 150 to the outside. When printing image data that has undergone image processing by the printer 150, the image processing apparatus 100 generates print data that can be decoded by the printer 150 based on the image data, and transmits the generated print data to the printer 150. .

図8は実施の形態2に係る画像処理装置100により実行される処理の手順を説明するフローチャートである。画像処理装置100のCPU101は、まず、入力部107を通じて取込んだ画像データについて領域分離処理を行う(ステップS11)。このとき、実施の形態1で説明した手法と同様の手法を用いることにより、判定対象の領域を文字領域、影付き文字の影領域、その他の領域の3つに分離する。   FIG. 8 is a flowchart for explaining a procedure of processing executed by the image processing apparatus 100 according to the second embodiment. First, the CPU 101 of the image processing apparatus 100 performs a region separation process on the image data captured through the input unit 107 (step S11). At this time, by using a method similar to the method described in the first embodiment, the determination target region is separated into three regions: a character region, a shadow region of a shaded character, and other regions.

領域分離処理での処理結果に基づき、CPU101は、文字対象のブロックが文字領域であるか否かを判断する(ステップS12)。文字領域でないと判断した場合(S12:NO)、すなわち、網点領域又はその他の領域であると判断した場合、CPU101は、色の階調性を重視した7×7のディザ処理を実行する(ステップS13)。   Based on the processing result in the region separation processing, the CPU 101 determines whether or not the character target block is a character region (step S12). When it is determined that the area is not a character area (S12: NO), that is, when it is determined that the area is a halftone dot area or other area, the CPU 101 executes a 7 × 7 dither process that emphasizes color gradation (see FIG. Step S13).

文字領域であると判断した場合(S12:YES)、CPU101は、その文字領域が影付き文字の影領域であるか否かを判断する(ステップS14)。影領域でないと判断した場合(S14:NO)、すなわち、通常の文字領域又は影付き文字の文字領域であると判断した場合、解像度を重視した1×1のディザ処理を行い(ステップS15)、影付き文字の影領域であると判断した場合(S14:YES)、影付き文字の影部分と文字部分との階調差を出すために5×5のディザ処理を行う(ステップS16)。   When determining that it is a character area (S12: YES), the CPU 101 determines whether or not the character area is a shadow area of a shaded character (step S14). When it is determined that the area is not a shadow area (S14: NO), that is, when it is determined that the area is a normal character area or a character area with a shadow, 1 × 1 dither processing is performed with emphasis on resolution (step S15). If it is determined that it is a shadow area of a shadowed character (S14: YES), a 5 × 5 dither process is performed in order to obtain a gradation difference between the shadow portion of the shadowed character and the character portion (step S16).

なお、本実施の形態では、各種演算をCPU101が実行する構成としたが、画像処理に係る演算を行う専用のチップを別途設け、CPU101からの指示により演算を行う構成としてもよい。   In the present embodiment, the CPU 101 performs various calculations. However, a dedicated chip for performing calculations related to image processing may be separately provided and calculations may be performed according to instructions from the CPU 101.

また、本発明に係るコンピュータプログラムを記録する記録媒体Mとしては、前述したFD及びCD−ROMの他に、MO、MD、DVD等の光ディスク、ハードディスク等の磁気記録媒体、ICカード、メモリカード、光カード等のカード型記録媒体、マスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリの利用も可能である。また、インターネットを含む通信ネットワークを接続可能なシステム構成であることから、通信ネットワークから本発明に係るコンピュータプログラムをダウンロードするようにしてもよい。   As the recording medium M for recording the computer program according to the present invention, in addition to the FD and CD-ROM described above, optical recording media such as MO, MD, DVD, magnetic recording media such as hard disks, IC cards, memory cards, It is also possible to use a semiconductor memory such as a card-type recording medium such as an optical card, mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash ROM, or the like. In addition, since the system configuration allows connection to a communication network including the Internet, the computer program according to the present invention may be downloaded from the communication network.

また、本発明のコンピュータプログラムは、単体のアプリケーションプログラム、ユーティリティプログラムとして提供される形態であってもよく、他のアプリケーションプログラム、ユーティリティプログラムに組み込み、そのプログラムの一部の機能として提供する形態であってもよい。例えば、その一形態としてプリンタドライバに組み込んで提供する形態が考えられる。   In addition, the computer program of the present invention may be provided as a single application program or utility program, or may be incorporated into another application program or utility program and provided as a partial function of the program. May be. For example, as one form, a form provided by being incorporated in a printer driver is conceivable.

本発明に係る画像処理装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the image processing apparatus which concerns on this invention. 領域分離処理部の構成を説明するブロック図である。It is a block diagram explaining the structure of an area | region separation process part. 判定部が領域判定を行う際に使用するテーブルの一例を示す図表である。It is a graph which shows an example of the table used when a determination part performs area | region determination. 影付き文字領域判定部の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of a character area determination part with a shadow. ヒストグラム作成部により作成されたヒストグラムの一例を示す模式図である。It is a schematic diagram which shows an example of the histogram created by the histogram creation part. 集中ドット型の組織的ディザの一例を示す模式図である。It is a schematic diagram which shows an example of a systematic dither of a concentrated dot type. 本発明のコンピュータプログラムがインストールされた画像処理装置の内部構成を説明するブロック図である。It is a block diagram explaining the internal structure of the image processing apparatus in which the computer program of this invention was installed. 実施の形態2に係る画像処理装置により実行される処理の手順を説明するフローチャートである。10 is a flowchart for describing a procedure of processing executed by the image processing apparatus according to the second embodiment.

符号の説明Explanation of symbols

1 操作部
3 画像入力部
5 画像処理部
7 画像出力部
51 AD変換部
52 シェーディング補正部
53 入力処理部
54 領域分離処理部
55 色補正部
56 黒生成下色除去部
57 空間フィルタ処理部
58 中間調生成部
541 信号変換部
542 最大値算出部
543 最小値算出部
544 最大濃度差判定部
545 反転回数算出部
546 反転回数判定部
547 判定部
548 影付き文字領域判定部
DESCRIPTION OF SYMBOLS 1 Operation part 3 Image input part 5 Image processing part 7 Image output part 51 AD conversion part 52 Shading correction part 53 Input processing part 54 Area separation processing part 55 Color correction part 56 Black generation under color removal part 57 Spatial filter processing part 58 Intermediate Key generation unit 541 Signal conversion unit 542 Maximum value calculation unit 543 Minimum value calculation unit 544 Maximum density difference determination unit 545 Inversion number calculation unit 546 Inversion number determination unit 547 Determination unit 548 Shaded character area determination unit

Claims (8)

複数の画素からなる画像から特定の領域を抽出し、抽出した領域に対して処理を施す画像処理方法において、
文字を構成する画素からなる文字領域、及び前記文字の影を構成する画素からなる影領域を前記画像から抽出するステップと、抽出した文字領域と影領域との間に階調差を生じさせる処理を施すステップとを有することを特徴とする画像処理方法。
In an image processing method for extracting a specific area from an image composed of a plurality of pixels and processing the extracted area,
A step of extracting a character area composed of pixels constituting a character and a shadow area composed of pixels constituting a shadow of the character from the image, and a process for generating a gradation difference between the extracted character area and the shadow area And an image processing method.
前記画像に含まれる画素について輝度値の分布を算出するステップと、該ステップにより算出した分布に3つのピークが含まれるか否かを判定するステップと、3つのピークが含まれると判定した場合、ピーク値に対応する輝度値に基づき、前記画像を輝度値に関して3つの領域に分類するステップと、分類した3つの領域のうち、最も輝度値が低い領域を文字領域、中間の輝度値を有する領域を影領域、最も輝度値が高い領域をその他の領域として抽出するステップとを有することを特徴とする請求項1に記載の画像処理方法。   When calculating the luminance value distribution for the pixels included in the image, determining whether the distribution calculated by the step includes three peaks, and determining that the three peaks are included, A step of classifying the image into three regions with respect to the luminance value based on a luminance value corresponding to the peak value, and a region having the lowest luminance value among the three classified regions is a character region and a region having an intermediate luminance value 2. The image processing method according to claim 1, further comprising: extracting as a shadow region and a region having the highest luminance value as another region. 前記処理はディザ処理であり、前記文字領域に対する処理と前記影領域に対する処理との間で異なるサイズのディザ行列を用いることを特徴とする請求項1又は請求項2に記載の画像処理方法。   The image processing method according to claim 1, wherein the process is a dither process, and a dither matrix having a different size is used between the process for the character area and the process for the shadow area. 複数の画素からなる画像から特定の領域を抽出し、抽出した領域に対して処理を施す画像処理装置において、
文字を構成する画素からなる文字領域、及び前記文字の影を構成する画素からなる影領域を前記画像から抽出する手段と、抽出した文字領域と影領域との間に階調差を生じさせる処理を施す手段とを備えることを特徴とする画像処理装置。
In an image processing apparatus that extracts a specific area from an image composed of a plurality of pixels and performs processing on the extracted area.
Means for extracting, from the image, a character area comprising pixels constituting a character and a shadow area comprising pixels constituting a shadow of the character, and processing for generating a gradation difference between the extracted character area and the shadow area And an image processing apparatus.
前記画像に含まれる画素について輝度値の分布を算出する手段と、該手段により算出した分布に3つのピークが含まれるか否かを判定する手段と、3つのピークが含まれると判定した場合、ピーク値に対応する輝度値に基づき、前記画像を輝度値に関して3つの領域に分類する手段と、分類した3つの領域のうち、最も輝度値が低い領域を文字領域、中間の輝度値を有する領域を影領域、最も輝度値が高い領域をその他の領域として抽出する手段とを備えることを特徴とする請求項4に記載の画像処理装置。   A means for calculating a distribution of luminance values for the pixels included in the image, a means for determining whether the distribution calculated by the means includes three peaks, and a case where it is determined that three peaks are included, Means for classifying the image into three regions with respect to the luminance value based on the luminance value corresponding to the peak value, and among the three classified regions, the region having the lowest luminance value is a character region and the region having an intermediate luminance value 5. The image processing apparatus according to claim 4, further comprising: means for extracting as a shadow region and a region having the highest luminance value as another region. 前記処理はディザ処理であり、前記文字領域に対する処理と前記影領域に対する処理との間で異なるサイズのディザ行列を用いることを特徴とする請求項4又は請求項5に記載の画像処理装置。   The image processing apparatus according to claim 4, wherein the process is a dither process, and a dither matrix having a different size is used between the process for the character area and the process for the shadow area. 請求項4乃至請求項6の何れか1つに記載の画像処理装置と、該画像処理装置により処理された画像をシート上に形成する手段とを備えることを特徴とする画像形成装置。   An image forming apparatus comprising: the image processing apparatus according to claim 4; and a unit that forms an image processed by the image processing apparatus on a sheet. コンピュータに、複数の画素からなる画像から特定の領域を抽出させ、抽出させた領域に対して処理を施させるコンピュータプログラムにおいて、
コンピュータに、文字を構成する画素からなる文字領域、及び前記文字の影を構成する画素からなる影領域を前記画像から抽出させるステップと、コンピュータに、抽出した文字領域と影領域との間に階調差を生じさせる処理を施させるステップとを有することを特徴とするコンピュータプログラム。
In a computer program that causes a computer to extract a specific area from an image composed of a plurality of pixels and to perform processing on the extracted area,
Causing the computer to extract from the image a character area composed of pixels constituting a character and a shadow area comprising pixels constituting the shadow of the character; and causing the computer to store a hierarchy between the extracted character area and the shadow area. A computer program comprising a step of performing a process for generating a tone difference.
JP2006247187A 2006-09-12 2006-09-12 Image processing method, image processor, image forming apparatus and computer program Pending JP2008072237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006247187A JP2008072237A (en) 2006-09-12 2006-09-12 Image processing method, image processor, image forming apparatus and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006247187A JP2008072237A (en) 2006-09-12 2006-09-12 Image processing method, image processor, image forming apparatus and computer program

Publications (1)

Publication Number Publication Date
JP2008072237A true JP2008072237A (en) 2008-03-27

Family

ID=39293466

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006247187A Pending JP2008072237A (en) 2006-09-12 2006-09-12 Image processing method, image processor, image forming apparatus and computer program

Country Status (1)

Country Link
JP (1) JP2008072237A (en)

Similar Documents

Publication Publication Date Title
JP4495197B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program
JP4496239B2 (en) Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium
JP4912270B2 (en) Image processing apparatus and control method thereof
US7903872B2 (en) Image-processing apparatus and method, computer program, and storage medium
JP2006115425A (en) Image processing apparatus, image forming apparatus, image processing method, computer program and recording medium
US7916352B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP2006121674A (en) Image forming apparatus, image processing apparatus and image generating program
JP4402090B2 (en) Image forming apparatus, image forming method, program, and recording medium
JP4465377B2 (en) Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium
JP4280404B2 (en) Image processing apparatus and method
JP4884305B2 (en) Image processing apparatus, image forming apparatus, computer program, and recording medium
JP2006121266A (en) Image processing apparatus, and image processing program
JP6882083B2 (en) Image processing device, image forming device, image processing method and program
JP5344231B2 (en) Image processing apparatus, image processing method, program, and recording medium
JPH10304200A (en) Image processor
JP4958626B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP2005072635A (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, image processing program, and computer-readable recording medium stored with the image processing program
JPH0541796A (en) Copying machine
JP2008072237A (en) Image processing method, image processor, image forming apparatus and computer program
JP2005191890A (en) Image processing device, image processing method, image processing program, recording medium stored with image processing program and image forming apparatus with image processor
JP4808282B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP5122507B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP5361556B2 (en) Image processing apparatus and method, and computer program and storage medium
JP2009055121A (en) Image processing device, image processing method, image forming apparatus and program, recording medium
JP2004104625A (en) Image processing, reading and forming device and color copying machine