JP3880958B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP3880958B2
JP3880958B2 JP2003374847A JP2003374847A JP3880958B2 JP 3880958 B2 JP3880958 B2 JP 3880958B2 JP 2003374847 A JP2003374847 A JP 2003374847A JP 2003374847 A JP2003374847 A JP 2003374847A JP 3880958 B2 JP3880958 B2 JP 3880958B2
Authority
JP
Japan
Prior art keywords
edge
area
circuit
pixel
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003374847A
Other languages
Japanese (ja)
Other versions
JP2004048814A (en
Inventor
健 武藤
節也 小林
孝行 雨貝
誠司 小橋川
隆広 大道
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2003374847A priority Critical patent/JP3880958B2/en
Publication of JP2004048814A publication Critical patent/JP2004048814A/en
Application granted granted Critical
Publication of JP3880958B2 publication Critical patent/JP3880958B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

本発明は、ディジタルカラー複写機やカラースキャナなどにおいて、入力された多値画像データに対して、最適な画像処理を行うために画像領域を判別する画像処理装置および画像処理方法に関するものである。   The present invention relates to an image processing apparatus and an image processing method for discriminating an image area in order to perform optimum image processing on input multi-value image data in a digital color copying machine, a color scanner, or the like.

従来から、ディジタル複写機やファクシミリ装置などの画像処理装置では、原稿をCCD(charge coupled device )センサ等で読み取って得られた画像信号に対して、画質を向上させるための画像処理が施される。すなわち、原稿に含まれる網点領域、銀鉛写真領域、文字領域をそれぞれ判別し、各領域の画像の特性に応じた画像処理を施すことにより画質を向上させている。例えば、網点領域にはモアレを抑制するために平滑化処理を施し、文字領域には文字をくっきり表示するために強調処理を施すことが行われている。   Conventionally, in an image processing apparatus such as a digital copying machine or a facsimile machine, image processing for improving image quality is performed on an image signal obtained by reading a document with a CCD (charge coupled device) sensor or the like. . That is, the image quality is improved by discriminating the halftone dot area, silver lead photograph area, and character area included in the document, and performing image processing according to the image characteristics of each area. For example, a smoothing process is performed on the halftone dot area to suppress moire, and an emphasis process is performed on the character area to clearly display characters.

このような画質向上のための画像処理において行われる画像領域判別方法としては、以下の方法が知られている。   The following methods are known as image region discrimination methods performed in such image processing for improving image quality.

特許文献1には、黒文字の処理方法が開示されている。この方法は、画像を各所定ブロックに分割し、文字や網点の画像の性質を表す特徴パラメータを用いて各領域を判別する。すなわち、注目画素を含む所定領域内において、その平均値を求めて閾値とし、平均値と注目画素値との差を求めて、閾値と比較して二値化し、その値から文字判定を行う。また、注目画素と隣接する8画素から黒文字を判別して、網点との差異を抽出する。   Patent Document 1 discloses a black character processing method. In this method, an image is divided into predetermined blocks, and each region is discriminated using a feature parameter representing the character of a character or halftone dot image. That is, in a predetermined area including the target pixel, the average value is obtained as a threshold value, the difference between the average value and the target pixel value is obtained, binarized by comparison with the threshold value, and character determination is performed from the value. Further, a black character is discriminated from 8 pixels adjacent to the target pixel, and a difference from a halftone dot is extracted.

特許文献2には、CMYの画像データより、色分布の違いによって、文字/線画領域、網点領域、および写真領域を判別する方法が開示されている。   Patent Document 2 discloses a method for discriminating a character / line drawing area, a halftone dot area, and a photographic area from CMY image data according to a difference in color distribution.

特許文献3には、特定領域内の平均値、最大値等を算出し、閾値と比較することによって、文字領域と写真領域とを判別する方法が開示されている。
特開平9−163166号公報(公開日:平成9年6月20日) 特開平8−56287号公報(公開日:平成8年2月27日) 特開平6−54180号公報(公開日:平成6年2月25日)
Patent Document 3 discloses a method of determining a character area and a photograph area by calculating an average value, a maximum value, and the like in a specific area and comparing them with a threshold value.
JP 9-163166 A (publication date: June 20, 1997) JP-A-8-56287 (Publication date: February 27, 1996) Japanese Unexamined Patent Publication No. 6-54180 (Publication date: February 25, 1994)

しかしながら、上記従来の方法では、文字/線画領域、網点領域、および写真領域を判別するには精度が十分でなく、誤って判別される可能性があるという問題が生ずる。   However, the above-described conventional method has a problem that the accuracy is not sufficient for determining the character / line drawing area, the halftone dot area, and the photographic area, and there is a possibility that they are erroneously determined.

また、上記従来の方法では、カラー画像の判別は可能ではあるが、特に色文字に対し、エッジ抽出・強調処理を施した場合、エッジ部の色が本来のものと異なる可能性があるという問題が生じる。   In addition, although the above-described conventional method can distinguish a color image, there is a problem that the color of the edge portion may be different from the original color particularly when edge extraction / enhancement processing is performed on a color character. Occurs.

本発明は、上記の問題点を解決するためになされたもので、その目的は、多値画像データの画素が属している領域に対して、黒文字領域と線画領域との判別を高精度に行うことができる画像処理装置および画像処理方法を提供することにある。   The present invention has been made to solve the above-described problems, and an object of the present invention is to determine a black character area and a line drawing area with high accuracy for an area to which pixels of multi-value image data belong. Another object of the present invention is to provide an image processing apparatus and an image processing method.

本発明の画像処理装置は、上記の課題を解決するために、色成分ごとの画像データ中の注目画素と、該注目画素の近傍の画素とからなる第一エリア内の画素について、黒色の部分を検出する色検出手段と、該第一エリア内の画素について、黒色および黒色以外の色の画素数をそれぞれカウントするカウント手段と、該注目画素で色が急激に変化するか否かを検出するエッジ判別手段とを備えるとともに、これら色検出手段、カウント手段、およびエッジ判別手段の出力結果に基づいて、該注目画素が黒文字領域と線画領域との何れに属しているかを検出する黒色検出手段を備えていることを特徴としている。 In order to solve the above-described problem, the image processing apparatus of the present invention provides a black portion for a pixel in the first area including a target pixel in the image data for each color component and a pixel in the vicinity of the target pixel. Color detecting means for detecting color, counting means for counting the number of black and non-black pixels for each pixel in the first area, and detecting whether or not the color of the pixel of interest changes abruptly And a black detection means for detecting whether the pixel of interest belongs to a black character area or a line drawing area based on the output results of the color detection means, the count means, and the edge determination means. It is characterized by having.

上記の構成により、色判定手段によって、色成分ごとの画像データの注目画素と隣接した近傍の画素とからなる第一エリアに対し、画像上における注目画素が黒か否かを判別することにより、黒色領域として最適な画像処理が可能となる。また、エッジ判別手段によって、第一エリア内の画像データに対し、画像上における注目画素が黒文字エッジ領域に属するか否かを判別することにより、黒文字や黒線画等のエッジ部として最適な画像処理が可能となる。そして、これらの結果と、カウント手段によって求めた第一エリア内の黒色および黒色以外の色の画素数とに基づいて、画像データの画素が属している領域に対して、黒文字領域と線画領域との判別を高精度に行うことができる。   With the above configuration, by determining whether or not the pixel of interest on the image is black with respect to the first area composed of the pixel of interest of the image data for each color component and adjacent pixels adjacent to each other by the color determination unit, Image processing that is optimal for a black region is possible. In addition, by determining whether or not the pixel of interest on the image belongs to the black character edge region with respect to the image data in the first area by the edge determining means, it is possible to perform optimum image processing as an edge portion of a black character or a black line drawing. Is possible. Then, based on these results and the number of black and non-black pixels in the first area obtained by the counting means, the black character area and the line drawing area with respect to the area to which the pixels of the image data belong Can be determined with high accuracy.

したがって、画像上における注目画素が属している領域に最適な画像処理が可能となり、高画質化が達成できる。ゆえに、従来のように、色文字に対し、エッジ抽出・強調処理を施した場合に、エッジ部の色が本来のものと異なることはない。   Therefore, it is possible to perform image processing optimal for the region to which the target pixel belongs on the image, and achieve high image quality. Therefore, when edge extraction / enhancement processing is performed on a color character as in the prior art, the color of the edge portion does not differ from the original color.

本発明の画像処理装置は、上記の構成に加えて、上記第一エリア内の画像データに基づいて、該第一エリアの特性を示す特徴量を抽出する色特徴量抽出手段を備えるとともに、該色特徴量抽出手段の出力結果に基づいて、上記の色検出手段およびカウント手段が処理を行うことを特徴としている。 The image processing apparatus of the present invention, in addition to the above configuration, based on the image data of the first area, provided with a color feature extracting means for extracting a feature amount indicating a characteristic of the first area, the Based on the output result of the color feature amount extraction means, the color detection means and the count means perform processing.

上記の構成により、色成分ごとの画像データに対し、第一エリアから特徴量を抽出し、その結果に基づいて画像上における注目画素が属している領域に最適な画像処理が可能となり、高画質化が達成できる。 With the above configuration , feature values are extracted from the first area for image data for each color component, and based on the result, optimal image processing can be performed for the region to which the target pixel belongs on the image. Can be achieved.

本発明の画像処理装置は、上記の構成に加えて、上記色特徴量抽出手段は、上記第一エリア内の画素の濃度レベルについて、最大値を求める最大値算出手段と、最小値を求める最小値算出手段と、最大濃度差を求める最大濃度差算出手段と、平均値を求める濃度平均値算出手段と、主走査方向に隣接する画素間の濃度レベル差の絶対値の総和と副走査方向に隣接する画素間の濃度レベル差の絶対値の総和との和を求める濃度差総和算出手段とを備えていることを特徴としている。 In the image processing apparatus according to the present invention , in addition to the above configuration, the color feature amount extraction unit includes a maximum value calculation unit that calculates a maximum value and a minimum value that calculates a minimum value for the density level of the pixels in the first area. A value calculating means, a maximum density difference calculating means for obtaining a maximum density difference, a density average value calculating means for obtaining an average value, a sum of absolute values of density level differences between adjacent pixels in the main scanning direction, and a sub scanning direction. It is characterized by comprising density difference sum calculating means for obtaining the sum of absolute values of density level differences between adjacent pixels.

上記の構成により、色特徴量として、第一エリア内の画素の濃度レベルの最大値、最小値、最大濃度差、平均値、および主走査方向に隣接する画素間の濃度レベル差の絶対値の総和と副走査方向に隣接する画素間の濃度レベル差の絶対値の総和との和を求めることができる。 With the above configuration , the color feature amount includes the maximum value, the minimum value, the maximum density difference, the average value, and the absolute value of the density level difference between adjacent pixels in the main scanning direction. The sum of the sum and the sum of absolute values of density level differences between pixels adjacent in the sub-scanning direction can be obtained.

よって、色特徴量の算出が容易であるとともに、黒色識別精度をさらに向上させることが可能である。   Therefore, the calculation of the color feature amount is easy, and the black identification accuracy can be further improved.

本発明の画像処理装置は、上記の構成に加えて、上記エッジ判別手段は、上記第一エリア内の画素に対して、エッジ抽出のためのマスクフィルタをたたみ込むことによって、上記注目画素のエッジ検出を行うエッジ検出手段を備えていることを特徴としている。 The image processing apparatus of the present invention, in addition to the above configuration, the edge determination unit, to the pixels of the first area, by convolving a mask filter for edge extraction, edge of the pixel of interest It is characterized by comprising edge detection means for performing detection.

上記の構成により、エッジ検出手段によって、高精度な黒文字エッジ部の抽出ができ、黒文字エッジ部として最適な画像処理が可能となり、さらなる高画質化が達成できる。 With the above configuration, by or falling edge of edge detection means can extract a high precision black character edge portion enables optimum image processing as black character edge, higher image quality can be achieved.

本発明の画像処理装置は、上記の構成に加えて、上記エッジ判別手段は、上記第一エリアを包含する第二エリア内の画素を濃度レベルの所定の閾値によって二値化し、二値化された画素の主走査方向および副走査方向のラインごとの反転回数に基づいて、主エッジ閾値選択信号を生成するエッジ閾値選択手段と、該第一エリアおよび第二エリアについて、包含される画素の濃度レベルの最大値、最小値、最大濃度差を求めるとともに、該第一エリアの画素の濃度レベルの標準偏差を求め、これらの結果と該主エッジ閾値選択信号とに基づいて、上記エッジ検出手段のエッジ検出結果を検証するエッジ判別信号を生成するエッジ特徴量抽出手段とを備えていることを特徴としている。 The image processing apparatus of the present invention, in addition to the above configuration, the edge determination means, a pixel of the second area including the first area is binarized by a predetermined threshold density level, it is binarized Edge threshold selection means for generating a main edge threshold selection signal based on the number of inversions of each pixel in the main scanning direction and sub-scanning direction, and the density of the pixels included in the first area and the second area The maximum value, the minimum value, and the maximum density difference of the level are obtained, and the standard deviation of the density level of the pixel in the first area is obtained. Based on these results and the main edge threshold selection signal, the edge detection means And an edge feature quantity extracting means for generating an edge discrimination signal for verifying the edge detection result.

上記の構成により、エッジ特徴量抽出手段によって、第一エリアおよび第二エリアに包含される画素の濃度レベルの最大値、最小値、最大濃度差と、第一エリアの画素の濃度レベルの標準偏差と、エッジ閾値選択手段で求めた主エッジ閾値選択信号とに基づいて、黒文字エッジ部を判別するエッジ判別信号を生成することができる。 With the above configuration, by or falling edge of di feature extraction means, the maximum value of the density level of the pixel encompassed in the first area and second area, minimum, maximum density difference and, the density level of the pixel of the first area Based on the standard deviation and the main edge threshold selection signal obtained by the edge threshold selection means, an edge determination signal for determining the black character edge portion can be generated.

よって、エッジ検出手段によって求めたエッジ検出結果を、エッジ判別信号により検証することができるため、エッジ部の誤認識を防止して、検出精度の向上を図ることが可能である。   Therefore, since the edge detection result obtained by the edge detection means can be verified by the edge discrimination signal, it is possible to prevent erroneous recognition of the edge portion and improve detection accuracy.

したがって、高精度な黒文字エッジ部の抽出が可能となり、黒文字エッジ部に対して最適な画像処理を行うことができるため、さらなる高画質化が達成できる。   Therefore, it is possible to extract a black character edge portion with high accuracy and perform optimal image processing on the black character edge portion, so that a higher image quality can be achieved.

本発明の画像処理方法は、上記の課題を解決するために、色成分ごとの画像データ中の注目画素と、該注目画素の近傍の画素とからなる第一エリア内の画素について、黒色の部分を検出する色検出工程と、該第一エリア内の画素について、黒色および黒色以外の色の画素数をそれぞれカウントするカウント工程と、該注目画素で色が急激に変化するか否かを検出するエッジ判別工程とを有するとともに、上記の色検出工程、カウント工程、およびエッジ判別工程の出力結果に基づいて、上記注目画素が黒文字領域と線画領域との何れに属しているかを検出する黒色検出工程を有することを特徴としている。 In order to solve the above-described problem, the image processing method of the present invention provides a black portion for a pixel in a first area including a target pixel in image data for each color component and a pixel in the vicinity of the target pixel. A color detection step for detecting color, a count step for counting the number of pixels of black and a color other than black for each pixel in the first area, and detecting whether or not the color suddenly changes in the target pixel And a black detection step for detecting whether the pixel of interest belongs to a black character region or a line drawing region based on output results of the color detection step, the counting step, and the edge determination step It is characterized by having.

上記の構成により、色判定工程において、色成分ごとの画像データの注目画素と隣接した近傍の画素とからなる第一エリアに対し、画像上における注目画素が黒か否かを判別することにより、黒色領域として最適な画像処理が可能となる。また、エッジ判別工程において、第一エリア内の画像データに対し、画像上における注目画素が黒文字エッジ領域に属するか否かを判別することにより、黒文字や黒線画等のエッジ部として最適な画像処理が可能となる。そして、これらの結果と、カウント工程において求めた第一エリア内の黒色および黒色以外の色の画素数とに基づいて、画像データの画素が属している領域に対して、黒文字領域と線画領域との判別を高精度に行うことができる。   With the above configuration, in the color determination step, by determining whether or not the pixel of interest on the image is black with respect to the first area composed of the pixel of interest of the image data for each color component and the neighboring pixels adjacent thereto, Image processing that is optimal for a black region is possible. Also, in the edge discrimination process, it is possible to determine whether the target pixel on the image belongs to the black character edge region or not for the image data in the first area, and thus optimal image processing as an edge portion for black characters, black line drawings, etc. Is possible. Based on these results and the number of black and non-black pixels in the first area obtained in the counting step, the black character region and the line drawing region are compared with the region to which the pixel of the image data belongs. Can be determined with high accuracy.

したがって、画像上における注目画素が属している領域に最適な画像処理が可能となり、高画質化が達成できる。ゆえに、従来のように、色文字に対し、エッジ抽出・強調処理を施した場合に、エッジ部の色が本来のものと異なることはない。   Therefore, it is possible to perform image processing optimal for the region to which the target pixel belongs on the image, and achieve high image quality. Therefore, when edge extraction / enhancement processing is performed on a color character as in the prior art, the color of the edge portion does not differ from the original color.

発明の画像処理装置は、以上のように、色成分ごとの画像データ中の注目画素と、該注目画素の近傍の画素とからなる第一エリア内の画素について、黒色の部分を検出する色検出手段と、該第一エリア内の画素について、黒色および黒色以外の色の画素数をそれぞれカウントするカウント手段と、該注目画素で色が急激に変化するか否かを検出するエッジ判別手段とを備えるとともに、これら色検出手段、カウント手段、およびエッジ判別手段の出力結果に基づいて、該注目画素が黒文字領域と線画領域との何れに属しているかを検出する黒色検出手段を備えている構成である。 As described above, the image processing apparatus according to the present invention detects the black portion of the pixels in the first area including the target pixel in the image data for each color component and the pixels in the vicinity of the target pixel. Detecting means, counting means for counting the number of pixels of black and non-black colors for the pixels in the first area, and edge discriminating means for detecting whether or not the color of the pixel of interest changes abruptly; And black detection means for detecting whether the pixel of interest belongs to a black character area or a line drawing area based on the output results of the color detection means, the count means, and the edge determination means It is.

それゆえ、画像データの画素が属している領域に対して、黒文字領域と線画領域との判別を高精度に行うことができるという効果を奏する。したがって、画像上における注目画素が属している領域に最適な画像処理が可能となり、高画質化が達成できるという効果を奏する。   Therefore, the black character area and the line drawing area can be discriminated with high accuracy for the area to which the pixel of the image data belongs. Therefore, it is possible to perform optimal image processing for the region to which the target pixel belongs on the image, and it is possible to achieve high image quality.

発明の画像処理装置は、上記の構成に加えて、上記第一エリア内の画像データに基づいて、該第一エリアの特性を示す特徴量を抽出する色特徴量抽出手段を備えるとともに、該色特徴量抽出手段の出力結果に基づいて、上記の色検出手段およびカウント手段が処理を行う構成である。 The image processing apparatus of the present invention, in addition to the above configuration, based on the image data of the first area, provided with a color feature extracting means for extracting a feature amount indicating a characteristic of the first area, the Based on the output result of the color feature amount extraction means, the color detection means and the counting means perform processing.

それゆえ、画像上における注目画素が属している領域に最適な画像処理が可能となり、高画質化が達成できるという効果を奏する。 Therefore, it is possible to optimum image processing on the area to which the pixel of interest belongs on images, an effect that high image quality can be achieved.

発明の画像処理装置は、上記の構成に加えて、上記色特徴量抽出手段は、上記第一エリア内の画素の濃度レベルについて、最大値を求める最大値算出手段と、最小値を求める最小値算出手段と、最大濃度差を求める最大濃度差算出手段と、平均値を求める濃度平均値算出手段と、主走査方向に隣接する画素間の濃度レベル差の絶対値の総和と副走査方向に隣接する画素間の濃度レベル差の絶対値の総和との和を求める濃度差総和算出手段とを備えている構成である。 Minimum image processing apparatus of the present invention, in addition to the above configuration, the color feature extraction means is for determining the concentration levels of the pixels of the first area, the maximum value calculating means for determining a maximum value, a minimum value A value calculating means, a maximum density difference calculating means for obtaining a maximum density difference, a density average value calculating means for obtaining an average value, a sum of absolute values of density level differences between adjacent pixels in the main scanning direction, and a sub scanning direction. A density difference sum calculating means for obtaining a sum of absolute values of density level differences between adjacent pixels is provided.

そえゆえ、色特徴量の算出が容易であるとともに、黒色識別精度をさらに向上させることが可能であるという効果を奏する。 Therefore , it is possible to easily calculate the color feature amount and to further improve the black discrimination accuracy.

発明の画像処理装置は、上記の構成に加えて、上記エッジ判別手段は、上記第一エリア内の画素に対して、エッジ抽出のためのマスクフィルタをたたみ込むことによって、上記注目画素のエッジ検出を行うエッジ検出手段を備えている構成である。 The image processing apparatus of the present invention, in addition to the above configuration, the edge determination unit, to the pixels of the first area, by convolving a mask filter for edge extraction, edge of the pixel of interest It is the structure provided with the edge detection means which performs a detection.

それゆえ、高精度な黒文字エッジ部の抽出ができ、黒文字エッジ部として最適な画像処理が可能となり、さらなる高画質化が達成できるという効果を奏する。 Therefore , the black character edge portion can be extracted with high accuracy, and the optimum image processing can be performed as the black character edge portion, so that the image quality can be further improved.

発明の画像処理装置は、上記の構成に加えて、上記エッジ判別手段は、上記第一エリアを包含する第二エリア内の画素を濃度レベルの所定の閾値によって二値化し、二値化された画素の主走査方向および副走査方向のラインごとの反転回数に基づいて、主エッジ閾値選択信号を生成するエッジ閾値選択手段と、該第一エリアおよび第二エリアについて、包含される画素の濃度レベルの最大値、最小値、最大濃度差を求めるとともに、該第一エリアの画素の濃度レベルの標準偏差を求め、これらの結果と該主エッジ閾値選択信号とに基づいて、上記エッジ検出手段のエッジ検出結果を検証するエッジ判別信号を生成するエッジ特徴量抽出手段とを備えている構成である。 The image processing apparatus of the present invention, in addition to the above configuration, the edge determination means, a pixel of the second area including the first area is binarized by a predetermined threshold density level, it is binarized Edge threshold selection means for generating a main edge threshold selection signal based on the number of inversions of each pixel in the main scanning direction and sub-scanning direction, and the density of the pixels included in the first area and the second area The maximum value, the minimum value, and the maximum density difference of the level are obtained, and the standard deviation of the density level of the pixel in the first area is obtained. Based on these results and the main edge threshold selection signal, the edge detection means An edge feature amount extraction unit that generates an edge determination signal for verifying an edge detection result is provided.

それゆえ、エッジ検出手段によって求めたエッジ検出結果を、エッジ判別信号により検証することができるため、エッジ部の誤認識を防止して、検出精度の向上を図ることが可能であるという効果を奏する。 Therefore, the edge detection result obtained by or falling edge of edge detection means, it is possible to verify by the edge determination signal effect to prevent erroneous recognition of the edge portion, it is possible to improve the detection accuracy Play.

したがって、高精度な黒文字エッジ部の抽出が可能となり、黒文字エッジ部に対して最適な画像処理を行うことができるため、さらなる高画質化が達成できるという効果を奏する。   Therefore, it is possible to extract a black character edge portion with high accuracy, and it is possible to perform optimum image processing on the black character edge portion.

発明の画像処理方法は、以上のように、色成分ごとの画像データ中の注目画素と、該注目画素の近傍の画素とからなる第一エリア内の画素について、黒色の部分を検出する色検出工程と、該第一エリア内の画素について、黒色および黒色以外の色の画素数をそれぞれカウントするカウント工程と、該注目画素で色が急激に変化するか否かを検出するエッジ判別工程とを有するとともに、上記の色検出工程、カウント工程、およびエッジ判別工程の出力結果に基づいて、上記注目画素が黒文字領域と線画領域との何れに属しているかを検出する黒色検出工程を有する構成である。 As described above, the image processing method of the present invention detects a black portion of a pixel in a first area composed of a pixel of interest in image data for each color component and pixels in the vicinity of the pixel of interest. A detection step, a counting step for counting the number of pixels of black and a color other than black for each pixel in the first area, and an edge determination step for detecting whether the color changes abruptly at the target pixel, And a black detection step for detecting whether the pixel of interest belongs to a black character region or a line drawing region based on the output results of the color detection step, the counting step, and the edge determination step. is there.

それゆえ、画像データの画素が属している領域に対して、黒文字領域と線画領域との判別を高精度に行うことができるという効果を奏する。したがって、画像上における注目画素が属している領域に最適な画像処理が可能となり、高画質化が達成できるという効果を奏する。   Therefore, the black character area and the line drawing area can be discriminated with high accuracy for the area to which the pixel of the image data belongs. Therefore, it is possible to perform optimal image processing for the region to which the target pixel belongs on the image, and it is possible to achieve high image quality.

〔実施の形態1〕
本発明の一実施の形態について図1から図17に基づいて説明すれば、以下のとおりである。なお、図1から図17中の線幅の太い信号線は、多ビットを並列に伝達可能な信号線を示している。
[Embodiment 1]
One embodiment of the present invention will be described below with reference to FIGS. Note that the thick signal lines in FIGS. 1 to 17 indicate signal lines that can transmit multiple bits in parallel.

まず、本実施の形態にかかる画像処理装置の概要について説明する。本実施の形態にかかる画像処理装置は、入力された多値画像データに最適な画像処理を施すために、多値画像データの画素が属している領域に対して、高精度な領域判別を行うことができる。   First, an outline of the image processing apparatus according to the present embodiment will be described. The image processing apparatus according to the present embodiment performs high-precision area determination on an area to which pixels of multi-valued image data belong in order to perform optimal image processing on input multi-valued image data. be able to.

特に、高密度性特徴パラメータ、粒状性特徴パラメータ、および周期性特徴パラメータを抽出して得られた複数要素から判定するとともに、その判定結果をブロック補正することにより、より確実に文字、網点、写真領域を判別することができる。   In particular, it is determined from a plurality of elements obtained by extracting the high density characteristic parameter, the granularity characteristic parameter, and the periodic characteristic parameter, and the determination result is subjected to block correction, so that the character, halftone dot, The photograph area can be discriminated.

ここで、高密度性特徴パラメータとは、ある定めた領域内に色ドットがどの位存在するかを判定するものである。粒状性特徴パラメータとは、色ドットが点なのか、線なのか、面なのかを判定するものである。周期性特徴パラメータとは、色のドットが存在する周期を判定するものである。そして、ブロック補正とは、前記の三つの特徴パラメータで検出できなかった判定を補正することにより、判定の確実性を向上させるものである。   Here, the high density characteristic parameter is used to determine how many color dots exist in a predetermined region. The graininess characteristic parameter is used to determine whether a color dot is a point, a line, or a surface. The periodicity characteristic parameter is used to determine the period in which color dots exist. The block correction is to improve the certainty of the determination by correcting the determination that could not be detected by the three characteristic parameters.

本実施の形態にかかる画像処理装置は、原稿を走査して得られる色成分ごとの多値画像データ(例えば、シアン,マゼンタ,イエローよりなる画像データ)から、画像上における各画素が属している領域が文字領域であるのか、網点領域であるのかを判別するカラー画像領域判別処理を行う。なお、黒文字領域と線画領域との判別については、実施の形態2において説明する。   In the image processing apparatus according to the present embodiment, each pixel on an image belongs from multi-value image data (for example, image data composed of cyan, magenta, and yellow) for each color component obtained by scanning a document. Color image area discrimination processing is performed for discriminating whether the area is a character area or a halftone dot area. The discrimination between the black character area and the line drawing area will be described in the second embodiment.

まず、図6に示すように、上記画像処理装置は、入力部1と、画像処理部2と、記録部4とを少なくとも備えて構成されている。   First, as shown in FIG. 6, the image processing apparatus includes at least an input unit 1, an image processing unit 2, and a recording unit 4.

上記入力部1は、原稿画像を走査して原稿の画像データのディジタル信号を得る入力装置である。具体的には、入力部1は、シアン、マゼンタ、イエローの各色成分ごとにCCD(charge coupled device) センサ(CCDセンサ1C、CCDセンサ1M、CCDセンサ1Y)を備えており、得られたディジタル画像の画像データC,M,Yを各色ごとに画像処理部2へ出力する。なお、多値画像データの入力装置はCCDセンサに限るものではない。また、以下では、シアン、マゼンタ、イエローをそれぞれC、M、Yと記すことがある。   The input unit 1 is an input device that scans a document image and obtains a digital signal of document image data. Specifically, the input unit 1 includes a CCD (charge coupled device) sensor (CCD sensor 1C, CCD sensor 1M, CCD sensor 1Y) for each color component of cyan, magenta, and yellow, and the obtained digital image. The image data C, M, and Y are output to the image processing unit 2 for each color. The multi-value image data input device is not limited to the CCD sensor. In the following, cyan, magenta, and yellow are sometimes referred to as C, M, and Y, respectively.

上記画像処理部2は、ディジタル画像を処理する前処理として画像領域を判別する画像領域判別部3を備えている。この画像領域判別部3には、第一画像領域判別回路3aおよび第二画像領域判別回路3bが少なくとも設けられている。また、画像処理部2には、画像領域判別部3における前処理の結果を受けて、ディジタル画像の後処理(フィルタ処理)を行う処理部(図示しない)が設けられている。   The image processing unit 2 includes an image area determination unit 3 that determines an image area as preprocessing for processing a digital image. The image area determination unit 3 includes at least a first image area determination circuit 3a and a second image area determination circuit 3b. In addition, the image processing unit 2 is provided with a processing unit (not shown) that performs post-processing (filter processing) of the digital image in response to the result of the pre-processing in the image region determination unit 3.

上記記録部4は、画像処理部2において処理されたディジタル画像を記録する記憶装置である。   The recording unit 4 is a storage device that records the digital image processed in the image processing unit 2.

本実施の形態では、画像領域が文字領域であるのか、網点領域であるのかを判別する上記第一画像領域判別回路3aについて説明する。なお、画像領域が黒文字領域であるのか、線画領域であるのかを判別する上記第二画像領域判別回路3bについては、実施の形態2において説明する。   In the present embodiment, the first image area discrimination circuit 3a for discriminating whether an image area is a character area or a halftone dot area will be described. The second image area discriminating circuit 3b for discriminating whether the image area is a black character area or a line drawing area will be described in the second embodiment.

図1を用いて、上記第一画像領域判別回路3aの構成の概略について説明する。上記第一画像領域判別回路3aは、シアン、マゼンタ、イエローの各色ごとに第一検査回路10(10C,10M,10Y)および第二検査回路20(20C,20M,20Y)を備えるとともに、特徴量抽出回路30と、補正回路40とを備えている。これら第一検査回路10、第二検査回路20、特徴量抽出回路30、補正回路40は、この順で直列に配設されている。   The outline of the configuration of the first image area discrimination circuit 3a will be described with reference to FIG. The first image area discrimination circuit 3a includes a first inspection circuit 10 (10C, 10M, 10Y) and a second inspection circuit 20 (20C, 20M, 20Y) for each color of cyan, magenta, and yellow, and a feature amount. An extraction circuit 30 and a correction circuit 40 are provided. The first inspection circuit 10, the second inspection circuit 20, the feature amount extraction circuit 30, and the correction circuit 40 are arranged in series in this order.

第一画像領域判別回路3aは、入力部1の各色ごとにCCDセンサ1C,1M,1Yで得られたディジタル画像の画像データC,M,Yを、入力として、網点判別結果MESHを出力する。   The first image region discriminating circuit 3a receives the image data C, M, Y of the digital image obtained by the CCD sensors 1C, 1M, 1Y for each color of the input unit 1 and outputs a halftone discriminating result MESH. .

そして、画像処理部2における後処理(フィルタ処理)に入力され、網点領域にはモアレを抑制するために平滑化処理を施し、文字領域には文字をくっきり表示するために強調処理を施すことによって、画質を向上させる。   Then, it is input to post-processing (filter processing) in the image processing unit 2, smoothing processing is performed on the halftone dot region to suppress moire, and emphasis processing is performed on the character region to display characters clearly. To improve the image quality.

上記第一検査回路10は、各色ごとに、画素濃度の極大・極小を検出することにより高密度性特徴パラメータを算出するとともに、ランレングスおよび繁雑度を検出することにより粒状性特徴パラメータを算出する。   The first inspection circuit 10 calculates a high density characteristic parameter by detecting the maximum / minimum pixel density for each color, and calculates a granularity characteristic parameter by detecting run length and complexity. .

なお、第一検査回路10C(図2(a))、第一検査回路10M(図2(b))、第一検査回路10Y(図2(c))は構成が同一であるため、以下では第一検査回路10Cについてのみ説明する。   The first inspection circuit 10C (FIG. 2A), the first inspection circuit 10M (FIG. 2B), and the first inspection circuit 10Y (FIG. 2C) have the same configuration. Only the first inspection circuit 10C will be described.

図2(a)に示すように、上記第一検査回路10Cは、ラインメモリ11Cと、極大・極小画素算出回路(極大・極小画素算出手段、極大・極小画素算出工程)12Cと、極大・極小画素周辺情報検出回路(極大・極小画素周辺情報検出手段、極大・極小画素周辺情報検出工程)13Cとを備えて構成されている。   As shown in FIG. 2A, the first inspection circuit 10C includes a line memory 11C, a maximum / minimum pixel calculation circuit (maximum / minimum pixel calculation means, maximum / minimum pixel calculation step) 12C, and a maximum / minimum. And a pixel peripheral information detection circuit (maximum / minimum pixel peripheral information detection means, local maximum / minimum pixel peripheral information detection step) 13C.

上記ラインメモリ11Cは、mライン並列に並んだラインメモリである。ラインメモリ11Cは、入力部1のCCDセンサ1Cにより原稿画像を走査して得られたシアンの8ビットの画像データCを、システムクロックに同期した状態で格納するとともに、常にm+1ラインの画像データCを並列に出力する。   The line memory 11C is a line memory arranged in m lines in parallel. The line memory 11C stores the cyan 8-bit image data C obtained by scanning the original image by the CCD sensor 1C of the input unit 1 in a state synchronized with the system clock, and always stores the image data C of m + 1 lines. Are output in parallel.

上記極大・極小画素算出回路12Cは、ラインメモリ11Cから出力された画像データCの画素濃度を入力とし、シアンの極大判定値PDATAC、極小判定値DDATAC、濃度平均値AVECを極大・極小画素周辺情報検出回路13Cへ出力するとともに、濃度平均値AVECを閾値を比較した結果であるフラグ信号AVEKCを第二検査回路20Cへ出力する。ここで、極大判定値PDATAC、極小判定値DDATAC、濃度平均値AVECが、シアンの高密度性特徴パラメータに相当する。   The maximum / minimum pixel calculation circuit 12C receives the pixel density of the image data C output from the line memory 11C, and uses the cyan maximum determination value PDATAC, the minimum determination value DDATAC, and the average density value AVEC as local maximum / minimum pixel peripheral information. While outputting to the detection circuit 13C, the flag signal AVEKC, which is the result of comparing the threshold value of the density average value AVEC, is output to the second inspection circuit 20C. Here, the maximum determination value PDATAC, the minimum determination value DDATAC, and the density average value AVEC correspond to cyan high-density characteristic parameters.

極大・極小画素算出回路12Cにおける処理の内容は以下のとおりである。なお、以下に説明する特定領域範囲、マトリクス、算出エリアなどのすべての要素領域は変更可能であり、あらゆる領域に対応可能である。また、ここでは、画像データCについて説明するが、画像データM,Yも同様に処理される。   The contents of processing in the maximum / minimum pixel calculation circuit 12C are as follows. Note that all element regions such as a specific region range, a matrix, and a calculation area described below can be changed, and can correspond to any region. Although the image data C will be described here, the image data M and Y are processed in the same manner.

ここで、以下の演算および判定式に用いられるすべての任意による設定値(閾値)は、−255〜+255の範囲の整数であり、画像処理部2のCPU(図示しない)によりレジスタ値として設定される。なお、これら任意による設定値も、使用する画像データの形式および出力装置などに応じて変更可能である。   Here, all arbitrarily set values (threshold values) used in the following calculations and determination formulas are integers in the range of −255 to +255, and are set as register values by the CPU (not shown) of the image processing unit 2. The These arbitrarily set values can also be changed according to the format of the image data to be used and the output device.

上記の各高密度性特徴パラメータは、(m+1)×nの特定判定ブロック内において算出される。したがって、高密度性特徴パラメータに基づいて、(m+1)×nの特定判定ブロック内に色ドットがどの位存在するかを判定することができる。   Each of the above high density characteristic parameters is calculated within a specific determination block of (m + 1) × n. Therefore, it is possible to determine how many color dots exist in the (m + 1) × n specific determination block based on the high density characteristic parameter.

本実施の形態では、図7に示す特定領域範囲、すなわち、中心画素P0を中心とする7画素×13画素のブロック(ラインメモリ6段に相当)において、高密度性特徴パラメータを算出する。図7中の中心列が注目画素P、中心の画素が中心画素P0である。中心画素P0を中心とした7画素×9画素のシアンの濃度平均値AVECを求める。   In the present embodiment, the high-density feature parameter is calculated in the specific region range shown in FIG. 7, that is, a block of 7 pixels × 13 pixels centered on the center pixel P0 (corresponding to 6 stages of line memory). The center column in FIG. 7 is the target pixel P, and the center pixel is the center pixel P0. A cyan density average AVEC of 7 pixels × 9 pixels centered on the central pixel P0 is obtained.

また、極大・極小画素を注目画素Pを中心に、図8のような3×3マトリクスA、5×5マトリクスBを用いて算出する。このとき、取りうるマトリクス画素は、注目画素Pの位置によりその数、種類が異なる。   Further, the maximum and minimum pixels are calculated using the 3 × 3 matrix A and the 5 × 5 matrix B as shown in FIG. At this time, the number and types of matrix pixels that can be taken differ depending on the position of the target pixel P.

図8(a)に示すように、3×3マトリクスAには、7画素が縦に並んだ注目画素のうち上端の画素に対応する1個の2×3マトリクスAaと、下端の画素に対応する1個の2×3マトリクスAcと、その間の画素に対応する5個の3×3マトリクスAbが含まれる。また、図8(b)に示すように、5×5マトリクスBには、7画素が縦に並んだ注目画素のうち上端の画素に対応する1個の3×5マトリクスBaと、上から2番目の画素に対応する1個の4×5マトリクスBbと、下端の画素に対応する1個の3×5マトリクスBeと、下から2番目の画素に対応する1個の4×5マトリクスBdと、その間の画素に対応する3個の5×5マトリクスBcが含まれる。   As shown in FIG. 8A, the 3 × 3 matrix A corresponds to one 2 × 3 matrix Aa corresponding to the uppermost pixel among the pixels of interest in which seven pixels are vertically arranged, and to the lowermost pixel. One 2 × 3 matrix Ac and five 3 × 3 matrices Ab corresponding to the pixels in between are included. Further, as shown in FIG. 8B, the 5 × 5 matrix B includes one 3 × 5 matrix Ba corresponding to the uppermost pixel among the pixels of interest in which 7 pixels are vertically arranged, and 2 from the top. One 4 × 5 matrix Bb corresponding to the first pixel, one 3 × 5 matrix Be corresponding to the lowermost pixel, and one 4 × 5 matrix Bd corresponding to the second pixel from the bottom, , Three 5 × 5 matrices Bc corresponding to the pixels in between are included.

そして、図8(a),(b)の注目画素Pと周辺画素Pijの差分絶対値の総和であるシアンの濃度差総和PSCを求める。さらに、注目画素Pと同じ濃度値を有する周辺画素Pijの数をカウントして、シアンの濃度一致画素数EQCとする。   Then, the cyan density difference sum PSC, which is the sum of the absolute differences between the target pixel P and the peripheral pixels Pij in FIGS. 8A and 8B, is obtained. Further, the number of peripheral pixels Pij having the same density value as the target pixel P is counted to obtain the cyan density matching pixel number EQC.

ここで得られたシアンの濃度平均値AVEC, 濃度差総和PSC,濃度一致画素数EQCを、以下に示す条件式(A),(B),(C)の濃度平均値AVE,濃度差総和PS,濃度一致画素数EQにそれぞれあてはめることにより、注目画素Pが極大・極小であるかの判定、および領域内の密度の度合いの判定を行う。判定の結果、極大・極小画素算出回路12Cからシアンの極大判定値PDATAC、極小判定値DDATAC、フラグ信号AVEKCがそれぞれ1ビットの信号で出力される。   The cyan density average value AVEC, density difference total PSC, and density matching pixel number EQC obtained here are the density average value AVE and density difference total PS of the following conditional expressions (A), (B), (C). , Density matching pixel numbers EQ are respectively applied to determine whether the target pixel P is maximum or minimum, and to determine the degree of density in the region. As a result of the determination, the maximum / minimum pixel calculation circuit 12C outputs the cyan maximum determination value PDATAC, the minimum determination value DDATAC, and the flag signal AVEKC as 1-bit signals.

注目画素極大判定の条件式(A)
(P>AVE-AK1 and P≧Pij and PS>C3 and EQ<THEQ3)[3×3マトリクス] or
(P>AVE-AK1 and P≧Pij and PS>C5 and EQ<THEQ3)[3×3マトリクス] or
(P>AVE-AK1 and P≧Pij and PS>C5 and EQ<THEQ5)[5×5マトリクス]
注目画素極小判定の条件式(B)
(P>AVE+AK2 and P≦Pij and PS>C3 and EQ<THEQ3)[3×3マトリクス] or
(P>AVE+AK2 and P≦Pij and PS>C5 and EQ<THEQ3)[3×3マトリクス] or
(P>AVE+AK2 and P≦Pij and PS>C5 and EQ<THEQ5)[5×5マトリクス]
領域内の密度の度合い判定の条件式(C)
AVE>THAVE
ただし、
AK1:符号付き8bit
AK2:符号付き8bit
C3: TH3M×COUNT3
C5: TH5M×COUNT5
TH3M=THMM3(AVE>THMM1)
=THMM5(AVE>THMM2)
=THMM7(上記以外)
TH5M=THMM4(AVE>THMM1)
=THMM6(AVE>THMM2)
=THMM8(上記以外)
THMM1〜9:閾値(レジスタによる設定値:任意)
THMM3<THMM4,THMM5<THMM6,THMM7<THMM8
COUNT3:5or8(図3のマトリクスにおいて周辺画素数により決定)
COUNT5:10or13or16(図3のマトリクスにおいて周辺画素数により決定)
THAVE:閾値(レジスタによる設定値:任意)
ここで、上記の条件式(A)が満たされれば、注目画素Pは極大値と判定されて、シアンの極大判定値PDATACとして「1」が出力される。これに対して、上記の条件式(B)が満たされれば、注目画素Pは極小値と判定されて、シアンの極小判定値DDATACとして「1」が出力される。それ以外の場合は、極大判定値PDATACおよび極小判定値DDATACには「0」が出力される。また、上記の条件式(C)が満たされれば、シアンのフラグ信号AVEKCとして「1」が出力される。
Conditional expression (A) for determining the target pixel maximum
(P> AVE-AK1 and P ≧ Pij and PS> C3 and EQ <THEQ3) [3 × 3 matrix] or
(P> AVE-AK1 and P ≧ Pij and PS> C5 and EQ <THEQ3) [3 × 3 matrix] or
(P> AVE-AK1 and P ≧ Pij and PS> C5 and EQ <THEQ5) [5 × 5 matrix]
Conditional expression (B) for determining minimum pixel of interest
(P> AVE + AK2 and P ≦ Pij and PS> C3 and EQ <THEQ3) [3 × 3 matrix] or
(P> AVE + AK2 and P ≦ Pij and PS> C5 and EQ <THEQ3) [3 × 3 matrix] or
(P> AVE + AK2 and P ≦ Pij and PS> C5 and EQ <THEQ5) [5 × 5 matrix]
Conditional expression for determining degree of density in region (C)
AVE> THAVE
However,
AK1: Signed 8bit
AK2: Signed 8bit
C3: TH3M × COUNT3
C5: TH5M × COUNT5
TH3M = THMM3 (AVE> THMM1)
= THMM5 (AVE> THMM2)
= THMM7 (other than above)
TH5M = THMM4 (AVE> THMM1)
= THMM6 (AVE> THMM2)
= THMM8 (other than above)
THMM1 to 9: Threshold (Set value by register: Any)
THMM3 <THMM4, THMM5 <THMM6, THMM7 <THMM8
COUNT3: 5or8 (determined by the number of surrounding pixels in the matrix in Fig. 3)
COUNT5: 10or13or16 (determined by the number of surrounding pixels in the matrix of FIG. 3)
THAVE: Threshold (Set value by register: Arbitrary)
If the conditional expression (A) is satisfied, the target pixel P is determined to be a maximum value, and “1” is output as the cyan maximum determination value PDATAC. On the other hand, if the conditional expression (B) is satisfied, the target pixel P is determined to be a minimum value, and “1” is output as the cyan minimum determination value DDATAC. In other cases, “0” is output to the maximum determination value PDATAC and the minimum determination value DDATAC. If the conditional expression (C) is satisfied, “1” is output as the cyan flag signal AVEKC.

つぎに、上記極大・極小画素周辺情報検出回路13Cは、極大・極小画素算出回路12Cから出力されたシアンの極大判定値PDATAC、極小判定値DDATAC、濃度平均値AVECを入力として、シアンのランレングスPRUNC、繁雑度PBUSYCを算出して、第二検査回路20Cへ出力する。ここで、ランレングスPRUNCおよび繁雑度PBUSYCが、シアンの粒状性特徴パラメータに相当する。   Next, the maximum / minimum pixel peripheral information detection circuit 13C receives the cyan maximum determination value PDATAC, the minimum determination value DDATAC, and the density average value AVEC output from the maximum / minimum pixel calculation circuit 12C as inputs, and the cyan run length. PRUNC and the degree of congestion PBUSYC are calculated and output to the second inspection circuit 20C. Here, the run length PRUNC and the degree of congestion PBUSYC correspond to the cyan graininess characteristic parameter.

極大・極小画素周辺情報検出回路13Cにおける処理の内容は以下のとおりである。ここでは、画像データCについて説明するが、画像データM,Yも同様に処理される。   The contents of processing in the local maximum / minimum pixel peripheral information detection circuit 13C are as follows. Here, the image data C will be described, but the image data M and Y are similarly processed.

極大・極小画素周辺情報検出回路13Cは、極大・極小画素算出回路12Cで得られた極大判定値PDATAC、極小判定値DDATAC、濃度平均値AVECを用いて、特定処理領域(図7)内において、注目画素Pに対するランレングス(周辺情報)PRUNCを算出し、出力する。   The local maximum / minimum pixel peripheral information detection circuit 13C uses the local maximum determination value PDATAC, the local minimum determination value DDATAC, and the density average value AVEC obtained by the local maximum / minimum pixel calculation circuit 12C, in the specific processing area (FIG. 7). The run length (peripheral information) PRUNC for the pixel of interest P is calculated and output.

図9に示すように、主走査方向は一定だが、副走査方向は注目画素Pの位置によってランレングスPRUN(シアンのランレングスPRUNC、マゼンタのランレングスPRUNM、イエローのランレングスPRUNY)の取りうる方向とその数が変化する。ランレングスPRUNの取り方は、各注目画素に対して図9(a)〜(g)の7通りあるが、最大値は6(図9(a),(g))である。   As shown in FIG. 9, the main scanning direction is constant, but the sub-scanning direction is a direction that run length PRUN (cyan run length PRUNC, magenta run length PRUNM, yellow run length PRUNY) can take depending on the position of the target pixel P. And its number changes. There are seven ways of taking run length PRUN in FIGS. 9A to 9G for each target pixel, but the maximum value is 6 (FIGS. 9A and 9G).

具体的な判定方法は、極大・極小画素算出回路12Cで得られたシアンの濃度平均値AVECを、以下に示す条件式(D)の濃度平均値AVEにあてはめて、条件式(D)が成立するまで、主走査方向および副走査方向の4方向(図9(b)に示す方向1〜方向4)について、それぞれの画素数をRUN1,RUN2,RUN3,RUN4としてカウントし、その最大値をシアンのランレングス(周辺情報)PRUNCとして出力する。   Specifically, the cyan density average value AVEC obtained by the maximum / minimum pixel calculation circuit 12C is applied to the density average value AVE of the following conditional expression (D), and the conditional expression (D) is established. Until then, the number of pixels is counted as RUN1, RUN2, RUN3, and RUN4 in the four directions of the main scanning direction and the sub-scanning direction (direction 1 to direction 4 shown in FIG. 9B), and the maximum value is cyan. Run length (peripheral information) PRUNC is output.

ランレングス判定の条件式(D)
Pij≦AVE ±BK1(PDATA=1 のとき)
Pij>AVE ±BK2(DDATA=1 のとき)
ただし、
BK1,BK2:閾値(レジスタによる設定値:任意)
PRUN=MAX(RUN1,RUN2,RUN3,RUN4)
RUN1,RUN2,RUN3,RUN4:4方向の画素数
さらに、極大・極小画素周辺情報検出回路13Cは、主走査方向および副走査方向の4方向について、ランレングスに含まれる各画素と注目画素Pとの差分絶対値の総和をBUSY1,BUSY2,BUSY3,BUSY4として求め、そのうちランレングスの最大値をなすランレングスPRUNCについての値を、繁雑度(ビジー)PBUSYCとして出力する。
繁雑度判定の条件式(E)
PBUSY=PBUSY1(PRUN=RUN1のとき)
=PBUSY2(PRUN=RUN2のとき)
=PBUSY3(PRUN=RUN3のとき)
=PBUSY4(PRUN=RUN4のとき)
ただし、ランレングスPRUNCに等しい値が複数ある場合は、差分絶対値の総和の最小値を繁雑度(ビジー)PBUSYCとして出力する。例えば、方向1および方向2のランレングスが同一で共に最大値であるときは、両方向のランレングスについての繁雑度のうち最小値となるものを繁雑度PBUSYCとして出力する。また、すべての方向のランレングスが0であるときは、繁雑度PBUSYCに0を出力する。
例)PBUSY=MIN(BUSY1,BUSY2)(PRUN=RUN1=RUN2 のとき)
PBUSY=0(PRUN=0のとき)
以上のように、第一検査回路10は、各色ごとに、入力部1の各CCDセンサ1からの画像データC,M,Yを入力として、フラグ信号AVEKC,AVEKM,AVEKY、ランレングスPRUNC,PRUNM,PRUNY、繁雑度PBUSYC,PBUSYM,PBUSYYを、第二検査回路20へ出力する。また、その過程中、極大・極小画素算出回路(極大・極小画素算出手段、極大・極小画素算出工程)12において、高密度性特徴パラメータを算出する。極大・極小画素周辺情報検出回路(極大・極小画素周辺情報検出手段、極大・極小画素周辺情報検出工程)13において、ランレングスPRUNおよび繁雑度PBUSYを求め、粒状性特徴パラメータを算出する。
Conditional expression for run length determination (D)
Pij ≦ AVE ± BK1 (when PDATA = 1)
Pij> AVE ± BK2 (when DDATA = 1)
However,
BK1, BK2: Threshold value (Register setting value: Any)
PRUN = MAX (RUN1, RUN2, RUN3, RUN4)
RUN1, RUN2, RUN3, RUN4: Number of pixels in four directions Further, the maximum / minimum pixel peripheral information detection circuit 13C is configured to detect each pixel included in the run length and the target pixel P in four directions of the main scanning direction and the sub-scanning direction. Are calculated as BUSY1, BUSY2, BUSY3, and BUSY4, and the value of the run length PRUNC having the maximum run length is output as the busyness PBUSYC.
Conditional expression for determining the degree of congestion (E)
PBUSY = PBUSY1 (when PRUN = RUN1)
= PBUSY2 (when PRUN = RUN2)
= PBUSY3 (when PRUN = RUN3)
= PBUSY4 (when PRUN = RUN4)
However, if there are a plurality of values equal to the run length PRUNC, the minimum value of the sum of absolute difference values is output as the busyness (BUSY) PBUSYC. For example, when the run lengths in the direction 1 and the direction 2 are the same and are both the maximum value, the congestion degree for the run lengths in both directions and the minimum value is output as the congestion degree PBUSYC. When run lengths in all directions are 0, 0 is output as the congestion degree PBUSYC.
Example) PBUSY = MIN (BUSY1, BUSY2) (when PRUN = RUN1 = RUN2)
PBUSY = 0 (when PRUN = 0)
As described above, the first inspection circuit 10 receives the image data C, M, and Y from the CCD sensors 1 of the input unit 1 for each color, and inputs the flag signals AVEKC, AVEKM, AVEKY, run lengths PRUNC, PRUNM. , PRUNY, and congestion levels PBUSYC, PBUSYM, and PBUSYY are output to the second inspection circuit 20. Further, during the process, the maximum / minimum pixel calculation circuit (maximum / minimum pixel calculation means, maximum / minimum pixel calculation step) 12 calculates the high density characteristic parameter. In the local maximum / minimum pixel peripheral information detection circuit (local maximum / minimum pixel peripheral information detection means, local maximum / minimum pixel peripheral information detection step) 13, the run length PRUN and the degree of complexity PBUSY are obtained, and the granularity characteristic parameter is calculated.

上記第二検査回路20は、重み割合を設定し、周期性を検出する。なお、第二検査回路20C(図3(a))、第二検査回路20M(図3(b))、第二検査回路20Y(図3(c))は、構成が同一であるため、以下では第二検査回路20Cについてのみ説明する。   The second inspection circuit 20 sets a weight ratio and detects periodicity. The second inspection circuit 20C (FIG. 3A), the second inspection circuit 20M (FIG. 3B), and the second inspection circuit 20Y (FIG. 3C) have the same configuration, so Only the second inspection circuit 20C will be described.

図3(a)に示すように、上記第二検査回路20Cは、画素重み切換信号算出回路(画素重み切換信号算出手段)21Cと、重み割合設定回路22Cと、第一周期性検出回路(周期性算出手段、周期性算出工程)23Cと、第二周期性検出回路(周期性算出手段、周期性算出工程)24Cとを備えて構成されている。   As shown in FIG. 3A, the second inspection circuit 20C includes a pixel weight switching signal calculation circuit (pixel weight switching signal calculation means) 21C, a weight ratio setting circuit 22C, and a first periodicity detection circuit (period Periodicity calculating means, periodicity calculating step) 23C and a second periodicity detecting circuit (periodicity calculating means, periodicity calculating step) 24C.

上記画素重み切換信号算出回路21Cは、第一検査回路10Cから出力されたシアンの画像データCについてのフラグ信号AVEKC、ランレングスPRUNC、繁雑度PBUSYCを入力として、画素重み切換信号WSCを算出して出力する。   The pixel weight switching signal calculation circuit 21C receives the flag signal AVEKC, the run length PRUNC, and the congestion degree PBUSYC for the cyan image data C output from the first inspection circuit 10C, and calculates the pixel weight switching signal WSC. Output.

具体的には、画素重み切換信号算出回路21Cでは、シアンの極大判定値PDATAC、極小判定値DDATAC、ランレングスPRUNC、繁雑度PBUSYCを、以下に示す式の極大判定値PDATA、極小判定値DDATA、ランレングスPRUN、繁雑度PBUSYにそれぞれあてはめることにより、シアンの画素重み切換信号WSCを求め、重み割合設定回路22Cおよび特徴量抽出回路30の重み切換信号カウント回路31へ出力する。なお、ここでは、画像データCについて説明するが、画像データM,Yも同様に処理される。   Specifically, in the pixel weight switching signal calculation circuit 21C, the cyan maximum determination value PDATAC, the minimum determination value DDATAC, the run length PRUNC, and the congestion degree PBUSYC are expressed as the maximum determination value PDATA, the minimum determination value DDATA, The cyan pixel weight switching signal WSC is obtained by applying it to the run length PRUN and the congestion degree PBUSY, and is output to the weight ratio setting circuit 22C and the weight switching signal count circuit 31 of the feature amount extraction circuit 30. Although the image data C will be described here, the image data M and Y are similarly processed.

画素重み切換信号判定の条件式(F)
WS=0(PDATA=0 or DDATA=0 のとき)
=1(PDATA=1 and PRUN>THPRO and PB<THPB0のとき)
=1(PDATA=1 and PRUN>THPR1 and PB<THPB1のとき)
=1(PDATA=1 and PRUN>THPR2 and PB<THPB2のとき)
=2(PDATA=1 and PRUN<THPR3 and PB>THPB3のとき)
=2(PDATA=1 and PRUN<THPR4 and PB>THPB4のとき)
=2(PDATA=1 and PRUN<THPR5 and PB>THPB5のとき)
=3(PDATA=1で、かつ上記以外のとき)
=4(DDATA=1 and PRUN>THPR6 and PB<THPB6のとき)
=4(DDATA=1 and PRUN>THPR7 and PB<THPB7のとき)
=4(DDATA=1 and PRUN>THPR8 and PB<THPB8のとき)
=5(DDATA=1 and PRUN<THPR9 and PB>THPB9のとき)
=5(DDATA=1 and PRUN<THPR10 and PB>THPB10のとき)
=5(DDATA=1 and PRUN<THPR11 and PB>THPB11のとき)
=6(DDATA=1で、かつ上記以外のとき)
ただし、
PB="100000000"(PRUN=0 のとき)[2進数表記]
=PBUSY(PRUN=1 のとき)
=PBUSY/2(PRUN=2)
=PBUSY×(1/4+1/16+1/64)(PRUN=3のとき)
=PBUSY/4(PRUN=4 のとき)
=PBUSY×(1/8+1/16+1/64)(PRUN=5のとき)
=PBUSY×(1/8+1/32+1/64)(PRUN=6のとき)
THPB0〜11,THPR0〜11:閾値(レジスタによる設定値:任意)
THPB3>THPB4>THPB0>THPB1>THPB2>THPB5
THPB9>THPB10>THPB6>THPB7>THPB8>THPB11
THPR0>THPR1>THPR2>THPR3>THPR4>THPR5
THPR6>THPR7>THPR8>THPR9>THPR10>THPR11
つぎに、上記重み割合設定回路22Cは、画素重み切換信号算出回路21Cから出力されたシアンの画素重み切換信号WSCを入力として、以下に示す式(G)によって、シアンについての網点分類フラグPDWECを求め、第一周期性検出回路23C、第二周期性検出回路24C、および特徴量抽出回路30のOR回路33へ出力する。また、画像データM,Yについても、重み割合設定回路22M,22Yにおいて同様に処理される。
Conditional expression for determining pixel weight switching signal (F)
WS = 0 (when PDATA = 0 or DDATA = 0)
= 1 (when PDATA = 1 and PRUN> THPRO and PB <THPB0)
= 1 (when PDATA = 1 and PRUN> THPR1 and PB <THPB1)
= 1 (when PDATA = 1 and PRUN> THPR2 and PB <THPB2)
= 2 (when PDATA = 1 and PRUN <THPR3 and PB> THPB3)
= 2 (when PDATA = 1 and PRUN <THPR4 and PB> THPB4)
= 2 (when PDATA = 1 and PRUN <THPR5 and PB> THPB5)
= 3 (when PDATA = 1 and other than above)
= 4 (when DDATA = 1 and PRUN> THPR6 and PB <THPB6)
= 4 (when DDATA = 1 and PRUN> THPR7 and PB <THPB7)
= 4 (when DDATA = 1 and PRUN> THPR8 and PB <THPB8)
= 5 (when DDATA = 1 and PRUN <THPR9 and PB> THPB9)
= 5 (when DDATA = 1 and PRUN <THPR10 and PB> THPB10)
= 5 (when DDATA = 1 and PRUN <THPR11 and PB> THPB11)
= 6 (DDATA = 1 and other than above)
However,
PB = "100000000" (when PRUN = 0) [binary notation]
= PBUSY (when PRUN = 1)
= PBUSY / 2 (PRUN = 2)
= PBUSY × (1/4 + 1/16 + 1/64) (when PRUN = 3)
= PBUSY / 4 (when PRUN = 4)
= PBUSY × (1/8 + 1/16 + 1/64) (when PRUN = 5)
= PBUSY × (1/8 + 1/32 + 1/64) (when PRUN = 6)
THPB0 to 11, THPR0 to 11: Threshold value (Register setting value: Any)
THPB3>THPB4>THPB0>THPB1>THPB2> THPB5
THPB9>THPB10>THPB6>THPB7>THPB8> THPB11
THPR0>THPR1>THPR2>THPR3>THPR4> THPR5
THPR6>THPR7>THPR8>THPR9>THPR10> THPR11
Next, the weight ratio setting circuit 22C receives the cyan pixel weight switching signal WSC output from the pixel weight switching signal calculation circuit 21C as an input, and uses the following equation (G) to represent the halftone dot classification flag PDWEC for cyan. Is output to the first periodicity detection circuit 23C, the second periodicity detection circuit 24C, and the OR circuit 33 of the feature amount extraction circuit 30. The image data M and Y are similarly processed in the weight ratio setting circuits 22M and 22Y.

すなわち、図10(a)に示す各色のプレーンにおいて、画素重み切換信号WS(WSC,WSM,WSY)>0となる極大又は極小である画素の個数、および画素重み切換信号WS=2or5となる網点により近い画素の個数をそれぞれ求め、以下の示す条件式(G)によって、網点分類フラグPDWE(PDWEC,PDWEM,PDWEY)を求める。   That is, in each color plane shown in FIG. 10A, the number of pixels that are maximum or minimum where the pixel weight switching signal WS (WSC, WSM, WSY)> 0, and the network where the pixel weight switching signal WS = 2 or 5 is satisfied. The number of pixels closer to the point is obtained, and the halftone dot classification flag PDWE (PDWEC, PDWEM, PDWEY) is obtained by the following conditional expression (G).

重み割合判定の条件式(G)
PDWEC=1((WSC=2or5 の個数)×64>(WSC=0の個数)×THWS0Cのとき)
=0(上記以外のとき)
PDWEM=1((WSM=2or5 の個数)×64>(WSM=0の個数)×THWS0Mのとき)
=0(上記以外のとき)
PDWEY=1((WSY=2or5 の個数)×64>(WSY=0の個数)×THWS0Yのとき)
=0(上記以外のとき)
ただし、
PDWEC=0(WSC>0の個数<THWS1のとき)
PDWEM=0(WSM>0の個数<THWS1のとき)
PDWEY=0(WSY>0の個数<THWS1のとき)
THWS0,1:閾値(レジスタによる設定値:任意)
さらに、極大・極小画素算出回路12C,12M,12Yで得られたAVEK=1のとき、(WSC,WSM,WSY=2or5の個数)は0となる。また、(WSC,WSM,WSY=2or5の個数)は127を上限とし、それ以上の値は127に収束することとする。
Conditional expression for weight ratio determination (G)
PDWEC = 1 ((Number of WSC = 2or5) × 64> (Number of WSC = 0) × THWS0C)
= 0 (other than above)
PDWEM = 1 ((Number of WSM = 2or5) × 64> (Number of WSM = 0) × THWS0M)
= 0 (other than above)
PDWEY = 1 ((Number of WSY = 2or5) × 64> (Number of WSY = 0) × THWS0Y)
= 0 (other than above)
However,
PDWEC = 0 (when the number of WSC> 0 <THWS1)
PDWEM = 0 (when the number of WSM> 0 <THWS1)
PDWEY = 0 (when the number of WSY> 0 <THWS1)
THWS0,1: Threshold (value set by register: arbitrary)
Further, when AVEK = 1 obtained by the maximum / minimum pixel calculation circuits 12C, 12M, and 12Y, the number of (WSC, WSM, WSY = 2or5) is zero. Further, (the number of WSC, WSM, WSY = 2or5) has an upper limit of 127, and values higher than that converge to 127.

つぎに、上記第一周期性検出回路23Cは、画素重み切換信号WSCを用いて、色ドットの周期性Aを算出する。第一周期性検出回路23Cは、重み割合設定回路22Cからのシアンについての網点分類フラグPDWECを入力として、シアンについての周期性A算出結果P1Cを求め、特徴量抽出回路30のOR回路32Cへ出力する。   Next, the first periodicity detection circuit 23C calculates the periodicity A of the color dots using the pixel weight switching signal WSC. The first periodicity detection circuit 23C receives the halftone dot classification flag PDWEC for cyan from the weight ratio setting circuit 22C, obtains the periodicity A calculation result P1C for cyan, and sends it to the OR circuit 32C of the feature amount extraction circuit 30. Output.

上記の「色ドットの周期性A」とは、狭い領域での網点判別を行うパラメータのことである。なお、以下では、画像データCについて説明するが、画像データM,Yも同様に処理される。   The “color dot periodicity A” is a parameter for performing halftone dot discrimination in a narrow area. In the following, the image data C will be described, but the image data M and Y are similarly processed.

ここで、図11に示すような算出エリアを設定する。注目画素Pを中央とする横31画素×縦7画素の領域をエリアAS1とする。同じ大きさで注目画素Pの左に隣接する領域をエリアAS0、右に隣接する領域をエリアAS2とする。よって、エリアAS1の左の15画素はエリアAS0の右の15画素であり、エリアAS1の右の15画素はエリアAS2の左の15画素である。   Here, a calculation area as shown in FIG. 11 is set. An area of 31 horizontal pixels × 7 vertical pixels centered on the target pixel P is defined as an area AS1. An area having the same size and adjacent to the left of the target pixel P is referred to as area AS0, and an area adjacent to the right is referred to as area AS2. Therefore, the 15 pixels on the left of the area AS1 are the 15 pixels on the right of the area AS0, and the 15 pixels on the right of the area AS1 are the 15 pixels on the left of the area AS2.

さらに、図12に示すように、周期性Aの特徴量算出のために、エリアAS1中に縦2段横8列で配したエリア(算出エリア)C0〜C15を設定する。エリアC0は隣接するエリアと右・下1画素分を共有する縦4画素×縦5画素のエリア、エリアC1〜C6は隣接するエリアと右・左・下1画素分を共有する縦4画素×縦6画素のエリア、エリアC7は隣接するエリアと左・下1画素分を共有する縦4画素×縦4画素のエリア、エリアC8は隣接するエリアと右・上1画素分を共有する縦4画素×縦5画素のエリア、エリアC9〜C14は隣接するエリアと右・左・上1画素分を共有する縦4画素×縦6画素のエリア、エリアC15は隣接するエリアと左・上1画素分を共有する縦4画素×縦4画素のエリアである。   Furthermore, as shown in FIG. 12, for calculating the feature quantity of periodicity A, areas (calculation areas) C0 to C15 arranged in two vertical rows and eight horizontal rows are set in area AS1. Area C0 is an area of 4 vertical pixels × 5 vertical pixels sharing the right and lower 1 pixel with the adjacent area, and areas C1 to C6 are 4 vertical pixels sharing the right, left, and lower 1 pixel with the adjacent area. An area of 6 pixels in length, area C7 is an area of 4 pixels in length × 4 pixels sharing the left and lower pixels with the adjacent area, and area C8 is 4 pixels in length sharing the right and upper 1 pixels with the adjacent area. Pixel x 5 pixels area, areas C9 to C14 are 4 pixels x 6 pixels area sharing the right, left and top 1 pixels with the adjacent area, area C15 is the adjacent area and left and top 1 pixels This is an area of vertical 4 pixels × vertical 4 pixels sharing the minutes.

第一周期性検出回路23Cにおける処理の内容は以下のとおりである。まず、エリアAS1中の各エリアC0〜C15(図12)において、画素重み切換信号WSC=2or3(極大)を満たす画素数CSP0〜CSP15、および画素重み切換信号WSC=5or6(極小)を満たす画素数CSD0〜CSD15を求める。そして、以下に示す条件式(H)によって、各エリアC0〜C15に対する極大値API(I=0〜15)(AP0〜AP15)、極小値ADI(I=0〜15)(AD0〜AD15)を算出する。   The contents of processing in the first periodicity detection circuit 23C are as follows. First, in each area C0 to C15 (FIG. 12) in the area AS1, the number of pixels CSP0 to CSP15 satisfying the pixel weight switching signal WSC = 2or3 (maximum) and the number of pixels satisfying the pixel weight switching signal WSC = 5or6 (minimum). CSD0 to CSD15 are obtained. Then, the maximum value API (I = 0 to 15) (AP0 to AP15) and the minimum value ADI (I = 0 to 15) (AD0 to AD15) for the areas C0 to C15 are expressed by the conditional expression (H) shown below. calculate.

極値存在判定の条件式(H)
API=1(CSPI>0 and CSPI<CW0 のとき)(I=0〜15)
=0(上記以外のとき)
ADI=1(CSDI>0 and CSDI<CW0 のとき)(I=0〜15)
=0(上記以外のとき)
ただし、
CW0:閾値(レジスタによる設定値:任意)
つぎに、各エリアAS0,AS1,AS2ごとに、極大値API、極小値ADI(I=0〜15)の総和を求める。
Conditional expression for determination of extreme value existence (H)
API = 1 (when CSPI> 0 and CSPI <CW0) (I = 0 to 15)
= 0 (other than above)
ADI = 1 (when CSDI> 0 and CSDI <CW0) (I = 0 to 15)
= 0 (other than above)
However,
CW0: Threshold value (Register setting value: Any)
Next, the sum of the maximum value API and the minimum value ADI (I = 0 to 15) is obtained for each area AS0, AS1, AS2.

Figure 0003880958
Figure 0003880958

つづいて、次式により周期性Aを算出し、周期性A算出結果P1(1ビット)を出力する。   Subsequently, the periodicity A is calculated by the following equation, and the periodicity A calculation result P1 (1 bit) is output.

Figure 0003880958
Figure 0003880958

以上の演算結果である周期性A算出結果P1を、画像データC,M,Yに対してそれぞれ出力する。ただし、網点の周期性の可否を判定する極大時についてのパラメータRPJ=1(J=0,1,2)のとき、画像データC,M,Yに対してそれぞれ得られた極大値総和ASPJ=0(J=0,1,2)となり、網点の周期性の可否を判定する極小時についてのパラメータRDJ=1(J=0,1,2)のとき、極小値総和ASDJ=0(J=0,1,2)となる。また、網点の周期性の可否を判定する極値時についてのパラメータRJ=1(J=0,1,2)の時、ASPJ=ASDJ=0(J=0,1,2)となるが、画像データC,M,Yの全出力値に対してASPJ=ASDJ=0とする。なお、上記の各パラメータRPJ,RDJ,RJの算出方法に関しては後述する。   The periodicity A calculation result P1, which is the above calculation result, is output for each of the image data C, M, and Y. However, the maximum value sum ASPJ obtained for the image data C, M, and Y, respectively, when the parameter RPJ = 1 (J = 0, 1, 2) for the maximum for determining whether or not the halftone dot is periodic. = 0 (J = 0, 1, 2), and when the parameter RDJ = 1 (J = 0, 1, 2) for determining whether the halftone dot is periodic, the sum of the minimum values ASDJ = 0 ( J = 0, 1, 2). Further, when the parameter RJ = 1 (J = 0, 1, 2) for the extreme value for determining whether or not the halftone dot is periodic, ASPJ = ASDJ = 0 (J = 0, 1, 2). , ASPJ = ASDJ = 0 for all output values of the image data C, M, Y. A method for calculating each of the parameters RPJ, RDJ, and RJ will be described later.

つづいて、上記第二周期性検出回路24Cは、画素重み切換信号WSCを用いて、色ドットの周期性Bを算出する。第二周期性検出回路24Cは、重み割合設定回路22Cからのシアンについての網点分類フラグPDWECを入力として、シアンについての周期性B算出結果P2Cを求め、特徴量抽出回路30のOR回路32Cへ出力する。   Subsequently, the second periodicity detection circuit 24C calculates the periodicity B of the color dots using the pixel weight switching signal WSC. The second periodicity detection circuit 24C receives the halftone dot classification flag PDWEC for cyan from the weight ratio setting circuit 22C, obtains the periodicity B calculation result P2C for cyan, and sends it to the OR circuit 32C of the feature amount extraction circuit 30. Output.

上記の「色ドットの周期性B」とは、広い領域での網点判別を行うパラメータのことである。なお、以下では、画像データCについて説明するが、画像データM,Yも同様に処理される。   The “color dot periodicity B” is a parameter for performing halftone dot discrimination in a wide area. In the following, the image data C will be described, but the image data M and Y are similarly processed.

ここで、図13(a)に示すように、エリアAS1中にエリア(算出エリア)D0〜C3を設定する。エリアD0〜D3により、エリアAS1は4つに分割されている。エリアD0〜D2は、横8画素×縦7画素の領域であり、エリアAS1の左端から順に配されている。エリアD3は、横7画素×縦7画素の領域であり、エリアAS1の右端に、エリアD2に隣接して配されている。よって、注目画素PはエリアD1の右端に位置する。なお、このようにエリアD0〜D3が配された領域をエリアBS1と記すこととし、あわせてエリアBS1と領域の半分を共有する左右の領域をそれぞれエリアBS0,BS2と記すこととする。   Here, as shown in FIG. 13A, areas (calculation areas) D0 to C3 are set in the area AS1. Area AS1 is divided into four by areas D0 to D3. Areas D0 to D2 are areas of horizontal 8 pixels × vertical 7 pixels, and are arranged in order from the left end of area AS1. The area D3 is a region of horizontal 7 pixels × vertical 7 pixels, and is arranged at the right end of the area AS1 and adjacent to the area D2. Therefore, the target pixel P is located at the right end of the area D1. Note that the area in which the areas D0 to D3 are arranged in this manner is referred to as an area BS1, and the left and right areas that share a half of the area with the area BS1 are also referred to as areas BS0 and BS2, respectively.

また、図13(b)に示すように、エリアAS1中にエリア(算出エリア)E0〜E2を設定する。エリアE0〜E2は、横8画素×縦7画素の領域であり、エリアAS1の左端より4画素あけた位置から順に配されている。よって、エリアE2の右端とエリアAS1の右端との間には、3画素のあきがある。なお、このようにエリアE0〜E2が配された領域をエリアCS1と記すこととし、あわせてエリアCS1と領域の半分を共有する左右の領域をそれぞれエリアCS0,CS2と記すこととする。   Further, as shown in FIG. 13B, areas (calculation areas) E0 to E2 are set in the area AS1. Areas E0 to E2 are areas of horizontal 8 pixels × vertical 7 pixels, and are arranged in order from a position 4 pixels away from the left end of area AS1. Therefore, there is a space of 3 pixels between the right end of the area E2 and the right end of the area AS1. Note that the area in which the areas E0 to E2 are arranged in this manner is referred to as an area CS1, and the left and right areas sharing the half of the area with the area CS1 are also referred to as areas CS0 and CS2, respectively.

第二周期性検出回路24Cにおける処理の内容は以下のとおりである。まず、エリアBS1中の各エリアD0〜D3(図13(a))において、画素重み切換信号WSC=2or3(極大)を満たす画素数DSP0〜DSP3、および画素重み切換信号WSC=5or6(極小)を満たす画素数DSD0〜DSD3を求める。   The contents of processing in the second periodicity detection circuit 24C are as follows. First, in each area D0 to D3 (FIG. 13A) in the area BS1, the number of pixels DSP0 to DSP3 that satisfy the pixel weight switching signal WSC = 2or3 (maximum) and the pixel weight switching signal WSC = 5or6 (minimum) are set. The number of pixels DSD0 to DSD3 to be satisfied is obtained.

同様に、エリアCS1中の各エリアE0〜E2(図13(b))において、画素重み切換信号WSC=2or3(極大)を満たす画素数ESP0〜ESP2、および画素重み切換信号WSC=5or6(極小)を満たす画素数ESD0〜ESD2を求める。   Similarly, in each of the areas E0 to E2 in the area CS1 (FIG. 13B), the number of pixels ESP0 to ESP2 satisfying the pixel weight switching signal WSC = 2 or 3 (maximum) and the pixel weight switching signal WSC = 5 or 6 (minimum). The number of pixels ESD0 to ESD2 satisfying the above is obtained.

つづいて、以下の式(I)により、エリア内の極大画素の存在を検知した極大画素検知フラグBSP,CSP、およびエリア内の極小画素の存在を検知した極小画素検知フラグBSD,CSDを求める。
極値存在判定の条件式(I)
BSPI=1(DSPI>0 and DSPI<CW2のとき)(I=0〜3)
=0(上記以外のとき)
BSDI=1(DSDI>0 and DSDI<CW2のとき)(I=0〜3)
=0(上記以外のとき)
CSPI=1(ESPI>0 and ESPI<CW2のとき)(I=0〜2)
=0(上記以外のとき)
CSDI=1(ESDI>0 and ESDI<CW2のとき)(I=0〜2)
=0(上記以外のとき)
Subsequently, maximum pixel detection flags BSP and CSP that detect the presence of the maximum pixel in the area and minimum pixel detection flags BSD and CSD that detect the presence of the minimum pixel in the area are obtained by the following equation (I).
Conditional Expression for Existence of Extreme Value (I)
BSPI = 1 (when DSPI> 0 and DSPI <CW2) (I = 0 to 3)
= 0 (other than above)
BSDI = 1 (when DSDI> 0 and DSDI <CW2) (I = 0 to 3)
= 0 (other than above)
CSPI = 1 (when ESPI> 0 and ESPI <CW2) (I = 0 ~ 2)
= 0 (other than above)
CSDI = 1 (when ESDI> 0 and ESDI <CW2) (I = 0 to 2)
= 0 (other than above)

Figure 0003880958
Figure 0003880958

つぎに、上記の式(I)により算出された各エリアBS0〜BS2,CS0〜CS2の和BSP,BSDを用いて、以下の式(J)によって、極大画素のフラグ数SSP、極小画素のフラグ数SSD、エリアD0〜D3でのエリア数NNP、エリアE0〜E2でのエリア数NNDを求める。   Next, using the sum BSP and BSD of the areas BS0 to BS2 and CS0 to CS2 calculated by the above formula (I), the maximum pixel flag number SSP and the minimum pixel flag are calculated by the following formula (J). The number SSD, the area number NNP in the areas D0 to D3, and the area number NND in the areas E0 to E2 are obtained.

図13(a),(b)のどちらの領域を選択するかの判定の条件式(J)
SPJ=BSPJ,NPJ=4(BSPJ>CSPJのとき)
SPJ=CSPJ,NPJ=3(BSPJ ≦CSPJのとき)
SDJ=BSDJ,NDJ=4(BSDJ>CSDJのとき)
SDJ=CSDJ,NDJ=3(BSDJ ≦CSDJのとき)
ただし、
J=0,1,2
Conditional expression (J) for determining which area in FIGS. 13A and 13B is to be selected
SPJ = BSPJ, NPJ = 4 (when BSPJ> CSPJ)
SPJ = CSPJ, NPJ = 3 (when BSPJ ≤ CSPJ)
SDJ = BSDJ, NDJ = 4 (when BSDJ> CSDJ)
SDJ = CSDJ, NDJ = 3 (when BSDJ ≤ CSDJ)
However,
J = 0,1,2

Figure 0003880958
Figure 0003880958

そして、次式(K)により周期性Bを算出して、周期性B算出結果P2(1ビット)を出力する。   Then, the periodicity B is calculated by the following equation (K), and the periodicity B calculation result P2 (1 bit) is output.

周期性判定の条件式(K)
P2=1((SSP×16>THBS×NNP)or(SSD×16>THBS×NND)のとき)
P2=0(上記以外のとき)
ただし、
THBS:閾値(レジスタによる設定値:任意)
また、RPJ=1(J=0,1,2)のとき、SPJ=0,NPJ=4(J=0,1,2)となり、RDJ=1(J=0,1,2)のとき、SDJ=0,NDJ=4(J=0,1,2)となる。さらに、RJ=1(J=0,1,2) のとき、SPJ=SDJ=0,NPJ=NDJ=4(J=0,1,2)となるが、C,M,Yの全出力値に対してSPJ=SDJ=0,NPJ=NDJ=4 とする。
Conditional expression for periodicity determination (K)
P2 = 1 (when (SSP × 16> THBS × NNP) or (SSD × 16> THBS × NND))
P2 = 0 (Other than above)
However,
THBS: Threshold (Set value by register: Arbitrary)
When RPJ = 1 (J = 0,1,2), SPJ = 0, NPJ = 4 (J = 0,1,2) and when RDJ = 1 (J = 0,1,2), SDJ = 0, NDJ = 4 (J = 0,1,2). Furthermore, when RJ = 1 (J = 0,1,2), SPJ = SDJ = 0, NPJ = NDJ = 4 (J = 0,1,2), but all output values of C, M, Y In contrast, SPJ = SDJ = 0, NPJ = NDJ = 4.

ここで、上記の演算で用いた極大時についてのパラメータRPJ、極小時についてのパラメータRDJ、極値時についてのパラメータRJの算出方法を説明する。まず、上記のパラメータRPJ,RDJは、画像データC,M,Yの各プレーンに対して、以下の条件式(L)によって算出される。   Here, a calculation method of the parameter RPJ for the maximum time, the parameter RDJ for the minimum time, and the parameter RJ for the extreme value used in the above calculation will be described. First, the parameters RPJ and RDJ are calculated by the following conditional expression (L) for each plane of the image data C, M, and Y.

周期性可否判定の条件式(L)
RPJ=1((WS=2,3 の個数)×64<THRU×(WS=1,2,3の個数) のとき)
=0(上記以外のとき)
RDJ=1((WS=4,5 の個数)×64<THRU×(WS=4,5,6の個数) のとき)
=0(上記以外のとき)
ただし、
J=0,1,2
THRU: 閾値(レジスタによる設定値:任意)
また、上記パラメータRJは、つぎのように算出される。まず、図14より画像データC,M,Yの各プレーンにおいてWS=1,2,3(極大時),WS=4,5,6(極小時)を満たすものが1つでもあれば、CP=1(極大時)、CD=1(極小時)とする。
Conditional expression for determining periodicity (L)
RPJ = 1 (when (number of WS = 2,3) × 64 <THRU × (number of WS = 1,2,3))
= 0 (other than above)
RDJ = 1 ((number of WS = 4,5) x 64 <THRU x (number of WS = 4, 5, 6))
= 0 (other than above)
However,
J = 0,1,2
THRU: Threshold (Set value by register: Any)
The parameter RJ is calculated as follows. First, as shown in FIG. 14, if at least one of the planes of the image data C, M, Y satisfies WS = 1, 2, 3 (maximum) and WS = 4, 5, 6 (minimum), CP = 1 (maximum), CD = 1 (minimum).

ここで、図15(a),(b)に示すような、RJ算出エリアを設定する。図15(a)は、特定領域範囲(図2)が、エリアCU0〜CU3の4つの領域に分割されている。エリアCU0〜CU2は、縦1画素×横31画素の領域であり、この順序で特定領域範囲の上端側から配されている。エリアCU3は、縦4画素×横31画素の領域であり、特定領域範囲の下端にエリアCU2に隣接して配されている。図15(a)に示した分割は、画像下部の網点判別の誤判定を防ぐことができる分割になっている。また、図15(b)は、特定領域範囲(図2)が、エリアCT0〜CT3の4つの領域に分割されている。エリアCT0〜CT2は、縦1画素×横31画素の領域であり、この順序で特定領域範囲の下端側から配されている。エリアCT3は、縦4画素×横31画素の領域であり、特定領域範囲の上端にエリアCT2に隣接して配されている。図15(b)に示した分割は、画像上部の網点判別の誤判定を防ぐことができる分割になっている。   Here, an RJ calculation area as shown in FIGS. 15A and 15B is set. In FIG. 15A, the specific area range (FIG. 2) is divided into four areas of areas CU0 to CU3. The areas CU0 to CU2 are areas of 1 vertical pixel × 31 horizontal pixels, and are arranged in this order from the upper end side of the specific area range. The area CU3 is an area of 4 vertical pixels × 31 horizontal pixels, and is arranged adjacent to the area CU2 at the lower end of the specific area range. The division shown in FIG. 15A is a division that can prevent erroneous determination of halftone dot determination at the bottom of the image. In FIG. 15B, the specific area range (FIG. 2) is divided into four areas of areas CT0 to CT3. The areas CT0 to CT2 are areas of 1 vertical pixel × 31 horizontal pixels, and are arranged in this order from the lower end side of the specific area range. The area CT3 is an area of 4 vertical pixels × 31 horizontal pixels, and is arranged adjacent to the area CT2 at the upper end of the specific area range. The division shown in FIG. 15B is a division that can prevent erroneous determination of halftone dot discrimination at the top of the image.

そして、図15に示すエリアに対して以下の条件処理を行い、上記のパラメータRPJ,RDJを算出する。   Then, the following condition processing is performed on the area shown in FIG. 15, and the parameters RPJ and RDJ are calculated.

極値存在判定の条件式(M)
極大時
つぎの条件を満たすときは、RPJ=1(J=0,1,2)
(CTP0>THCT0 and CTP1<THCT1 and CTP2<THCT2 and CTP3<THCT3) or
(CUP0>THCU0 and CUP1<THCU1 and CUP2<THCU2 and CUP3<THCU3)
それ以外のときは、RPJ=0(J=0,1,2)
極小時
つぎの条件を満たすときは、RDJ=1(J=0,1,2)
(CTD0>THCT0 and CTD1<THCT1 and CTD2<THCT2 and CTD3<THCT3) or
(CUD0>THCU0 and CUD1<THCU1 and CUD2<THCU2 and CUD3<THCU3)
それ以外のときは、RDJ=0(J=0,1,2)
ただし、
CTP0〜3:CT0〜3領域におけるCP=1の数
CTD0〜3:CT0〜3領域におけるCD=1の数
CUP0〜3:CU0〜3領域におけるCP=1の数
CUD0〜3:CU0〜3領域におけるCD=1の数
THCT0〜3:閾値(レジスタによる設定値:任意)
THCU0〜3:閾値(レジスタによる設定値:任意)
つぎに、得られた結果から、上記パラメータRJは、パラメータRPJとパラメータRDJの論理和として、OR回路により演算される。
Conditional expression for extreme value existence determination (M)
Maximum When RPJ = 1 (J = 0,1,2)
(CTP0> THCT0 and CTP1 <THCT1 and CTP2 <THCT2 and CTP3 <THCT3) or
(CUP0> THCU0 and CUP1 <THCU1 and CUP2 <THCU2 and CUP3 <THCU3)
Otherwise, RPJ = 0 (J = 0,1,2)
When the following conditions are met, RDJ = 1 (J = 0,1,2)
(CTD0> THCT0 and CTD1 <THCT1 and CTD2 <THCT2 and CTD3 <THCT3) or
(CUD0> THCU0 and CUD1 <THCU1 and CUD2 <THCU2 and CUD3 <THCU3)
Otherwise, RDJ = 0 (J = 0,1,2)
However,
CTP0-3: Number of CP = 1 in CT0-3 region
CTD0-3: Number of CD = 1 in CT0-3 region
CUP0-3: Number of CP = 1 in CU0-3 region
CUD0-3: Number of CD = 1 in CU0-3 region
THCT0 to 3: Threshold (Set value by register: Any)
THCU0 to 3: Threshold value (Register setting value: Any)
Next, from the obtained result, the parameter RJ is calculated by an OR circuit as a logical sum of the parameter RPJ and the parameter RDJ.

RJ=(RPJ)OR(RDJ)
以上のように、第二検査回路20は、各色ごとに、第一検査回路10Cの極大・極小画素算出回路12および極大・極小画素周辺情報検出回路13からのフラグ信号AVEK、ランレングスPRUN、繁雑度PBUSYを入力として、周期性A算出結果P1、周期性B算出結果P2、画素重み切換信号WS、網点分類フラグPDWEを特徴量抽出回路30へ出力する。また、その過程において、画素重み切換信号算出回路21Cで、重み割合WSをカウントして、周期性Aおよび周期性Bを求めることによって、周期性特徴パラメータを算出する。
RJ = (RPJ) OR (RDJ)
As described above, for each color, the second inspection circuit 20 uses the flag signal AVEK, run length PRUN, and complicated from the maximum / minimum pixel calculation circuit 12 and the maximum / minimum pixel peripheral information detection circuit 13 of the first inspection circuit 10C. Using the degree PBUSY as an input, the periodicity A calculation result P1, the periodicity B calculation result P2, the pixel weight switching signal WS, and the halftone dot classification flag PDWE are output to the feature amount extraction circuit 30. In the process, the pixel weight switching signal calculation circuit 21C counts the weight ratio WS to obtain the periodicity A and the periodicity B, thereby calculating the periodic characteristic parameter.

図4に示すように、上記特徴量抽出回路30は、重み切換信号カウント回路31と、OR回路32Cと、OR回路32Mと、OR回路32Yと、OR回路33と、OR回路34とを備えて構成されている。   As shown in FIG. 4, the feature quantity extraction circuit 30 includes a weight switching signal count circuit 31, an OR circuit 32C, an OR circuit 32M, an OR circuit 32Y, an OR circuit 33, and an OR circuit 34. It is configured.

上記特徴量抽出回路30は、第二検査回路20C,20M,20Yから出力された周期性A算出結果P1、周期性B算出結果P2、画素重み切換信号WS、網点分類フラグPDWEを入力として、網点判別結果フラグSCRFLGを求めて補正回路40へ出力する。   The feature amount extraction circuit 30 receives the periodicity A calculation result P1, the periodicity B calculation result P2, the pixel weight switching signal WS, and the halftone dot classification flag PDWE output from the second inspection circuits 20C, 20M, and 20Y. A halftone discrimination result flag SCRFLG is obtained and output to the correction circuit 40.

上記重み切換信号カウント回路31は、図10に示すように、第二検査回路20の画素重み切換信号算出回路(画素重み切換信号算出手段)21(21C,21M,21Y)で各プレーンごとに得られた画素重み切換信号WS(WSC,WSM,WSY)(図10(a))より、以下の条件式(N)にしたがって、各プレーンごとに画素重みW(WC,WM,WY)を求め(図10(b))、その最大値を画素重みWMAXとして1プレーンで表す。なお、各プレーンの左上角の四角は、画素重み切換信号WSや画素重みWの値を有する1画素の単位を示している。   As shown in FIG. 10, the weight switching signal count circuit 31 is obtained for each plane by the pixel weight switching signal calculation circuit (pixel weight switching signal calculation means) 21 (21C, 21M, 21Y) of the second inspection circuit 20. From the obtained pixel weight switching signal WS (WSC, WSM, WSY) (FIG. 10A), the pixel weight W (WC, WM, WY) is obtained for each plane according to the following conditional expression (N) ( In FIG. 10B, the maximum value is represented by one plane as the pixel weight WMAX. The square at the upper left corner of each plane indicates a unit of one pixel having the pixel weight switching signal WS and the pixel weight W value.

画素重み判定の条件式(N)
WMAX=MAX(WC,WM,WY)
ただし、
W=0(WS=0のとき)
W=0(WS=1or4 のとき)
W=3(WS=2or5 のとき)
W=1(WS=3or6 のとき)
さらに、重み切換信号カウント回路31は、図11に示すエリアAS0,AS1,AS2に対して、副走査方向(縦方向)に連続する7画素の画素重みがW=0となる最大連続ライン数NRUNをそれぞれ求める。そして、以下の条件式(O)により、網点結果を示す網点判別フラグKOUT(1ビット)を求めて、OR回路34へ出力する。
Conditional expression for pixel weight determination (N)
WMAX = MAX (WC, WM, WY)
However,
W = 0 (when WS = 0)
W = 0 (when WS = 1or4)
W = 3 (when WS = 2or5)
W = 1 (when WS = 3or6)
Furthermore, the weight switching signal count circuit 31 has the maximum number of continuous lines NRUN at which the pixel weight of 7 pixels continuous in the sub-scanning direction (vertical direction) becomes W = 0 with respect to the areas AS0, AS1, and AS2 shown in FIG. For each. Then, a halftone dot discrimination flag KOUT (1 bit) indicating a halftone dot result is obtained by the following conditional expression (O), and is output to the OR circuit 34.

重み切換信号カウントフラグ判定の条件式(O)
NRUN≦THRUNの時
PDSUM0=AREA0のW=1の個数/Ks( ただし、PDSUM0≧128時、PDSUM0=127)
PDSUM1=AREA1のW=1の個数/Ks( ただし、PDSUM1≧128時、PDSUM1=127)
PDSUM2=AREA2のW=1の個数/Ks( ただし、PDSUM2≧128時、PDSUM2=127)
NRUN>THRUNの時
PDSUM0=AREA0のW=1の個数/Ks(ただし、PDSUM0≧128時、PDSUM0=127)
PDSUM1=AREA1のW=1の個数/Ks(ただし、PDSUM1≧128時、PDSUM1=127)
PDSUM2=AREA2のW=1の個数/Ks(ただし、PDSUM2≧128時、PDSUM2=127)
ただし、
Ks=2or4(レジスタの設定値)
PDSUM=(PDSUM0+PDSUM1*X+PDSUM2)
X=2or3or4(レジスタの設定値)
KOUT=1(PDSUM>THCSUM のとき)
=0(上記以外のとき)
上記OR回路32C,32M,32Yは、各プレーンごとに、第一周期性検出回路(周期性算出手段、周期性算出工程)23C,23M,23Yおよび第二周期性検出回路(周期性算出手段、周期性算出工程)24C,24M,24Yからそれぞれ入力される周期性A算出結果P1C,P1M,P1Yおよび周期性B算出結果P2C,P2M,P2Yの論理和LPC,LPM,LPYを求め、OR回路34へ出力する。
Conditional expression for weight switching signal count flag determination (O)
When NRUN ≦ THRUN
PDSUM0 = Number of AREA0 W = 1 / Ks (However, PDSUM0 = 128, PDSUM0 = 127)
PDSUM1 = AREA1 W = 1 count / Ks (However, PDSUM1 ≧ 128, PDSUM1 = 127)
PDSUM2 = Number of AREA2 W = 1 / Ks (However, PDSUM2 = 128, PDSUM2 = 127)
When NRUN> THRUN
PDSUM0 = Number of AREA0 W = 1 / Ks (However, PDSUM0 = 128, PDSUM0 = 127)
PDSUM1 = AREA1 W = 1 count / Ks (However, PDSUM1 = 128, PDSUM1 = 127)
PDSUM2 = Number of AREA2 W = 1 / Ks (However, PDSUM2 = 128, PDSUM2 = 127)
However,
Ks = 2or4 (register setting value)
PDSUM = (PDSUM0 + PDSUM1 * X + PDSUM2)
X = 2or3or4 (register setting value)
KOUT = 1 (when PDSUM> THCSUM)
= 0 (other than above)
The OR circuits 32C, 32M, and 32Y include a first periodicity detection circuit (periodicity calculation means, periodicity calculation step) 23C, 23M, and 23Y and a second periodicity detection circuit (periodicity calculation means, Periodicity calculation step) The logical sums LPC, LPM, and LPY of the periodicity A calculation results P1C, P1M, and P1Y and the periodicity B calculation results P2C, P2M, and P2Y respectively input from 24C, 24M, and 24Y are obtained, and the OR circuit 34 Output to.

上記OR回路33は、重み割合設定回路22C,22M,22Yから各プレーンごとに入力される網点分類フラグPDWEC,PDWEM,PDWEYの論理和LPDWEを求め、OR回路34へ出力する。   The OR circuit 33 obtains a logical sum LPDWE of halftone dot classification flags PDWEC, PDWEM, and PDWEY inputted for each plane from the weight ratio setting circuits 22C, 22M, and 22Y, and outputs the logical sum LPDWE to the OR circuit 34.

上記OR回路34は、重み切換信号カウント回路31からの網点判別フラグKOUTと、OR回路32C,32M,32Yからの論理和LPC,LPM,LPYと、OR回路33からの論理和LPDWEとを入力として、これらの論理和である網点判別結果フラグSCRFLG(1ビット)を求め、補正回路40へ出力する。   The OR circuit 34 receives the halftone dot discrimination flag KOUT from the weight switching signal count circuit 31, the logical sums LPC, LPM, LPY from the OR circuits 32C, 32M, 32Y, and the logical sum LPDWE from the OR circuit 33. The halftone dot discrimination result flag SCRFLG (1 bit) which is the logical sum of these is obtained and output to the correction circuit 40.

なお、特徴量抽出回路30の信号線上にセレクタを挿入することにより、領域判別に使用する特徴量の数・種類を、画像データや画像処理装置の仕様により、変えることができる。   Note that by inserting a selector on the signal line of the feature quantity extraction circuit 30, the number and type of feature quantities used for region discrimination can be changed according to the specifications of the image data and the image processing apparatus.

以上のように、特徴量抽出回路30は、第二検査回路20の画素重み切換信号算出回路21と、重み割合設定回路22と、第一周期性検出回路23と、第二周期性検出回路24とからの周期性A算出結果P1、周期性B算出結果P2、画素重み切換信号WS、網点分類フラグPDWEを入力として、網点判別結果フラグSCRFLGを求め、補正回路40へ出力する。   As described above, the feature amount extraction circuit 30 includes the pixel weight switching signal calculation circuit 21, the weight ratio setting circuit 22, the first periodicity detection circuit 23, and the second periodicity detection circuit 24 of the second inspection circuit 20. The halftone dot determination result flag SCRFLG is obtained by inputting the periodicity A calculation result P1, the periodicity B calculation result P2, the pixel weight switching signal WS, and the halftone dot classification flag PDWE from the above and output to the correction circuit 40.

上記補正回路40は、高密度性特徴パラメータ、粒状性特徴パラメータ、および周期性特徴パラメータを抽出し、各要素により得られた画像領域判別結果をブロック補正する。補正回路40を設けることにより、最終的な画像領域判別の誤った判断を軽減することができる。   The correction circuit 40 extracts a high density characteristic parameter, a granularity characteristic parameter, and a periodic characteristic parameter, and performs block correction on the image region discrimination result obtained by each element. Providing the correction circuit 40 can reduce erroneous determination of final image region determination.

図5に示すように、上記補正回路40は、FIFOメモリ41と、網点ブロック補正回路42とを備えて構成されている。   As shown in FIG. 5, the correction circuit 40 includes a FIFO memory 41 and a halftone block correction circuit 42.

上記網点ブロック補正回路42は、FIFOメモリ41からの網点判別結果フラグSCRFLGを入力とし、網点判別結果MESHを求めて、出力する。ここで、網点ブロック補正回路42には、上記FIFOメモリ41からの信号とリアルタイムで入力される信号とがバスとして入力されている。   The halftone dot block correction circuit 42 receives the halftone dot discrimination result flag SCRFLG from the FIFO memory 41, obtains a halftone dot discrimination result MESH, and outputs it. Here, to the halftone block correction circuit 42, the signal from the FIFO memory 41 and the signal inputted in real time are inputted as a bus.

ここで、図16(a)〜(c)および図17(a)〜(c)に示すような、網点ブロック補正エリアが設定されており、網点ブロック補正回路42の処理において利用される。網点ブロック補正エリアとしては、2種のマトリクスのモードがあり、それぞれ3種類のエリアを含んでいる(図16,図17)。   Here, halftone dot block correction areas as shown in FIGS. 16A to 16C and FIGS. 17A to 17C are set and used in the processing of the halftone block correction circuit 42. . As the halftone dot block correction area, there are two types of matrix modes, each including three types of areas (FIGS. 16 and 17).

図16(a)〜(c)は、18×61画素のマトリクスにおいてのブロック補正であるモードの網点ブロック補正エリアである。図16(a)は、主走査方向の網点ブロック補正をするように分割されたエリアである。図16(b)は、副走査方向の網点ブロック補正をするように分割されたエリアである。図16(c)は、主走査方向および副走査方向を加味した網点ブロック補正をするように分割されたエリアである。   FIGS. 16A to 16C show halftone block correction areas in a mode that is block correction in a matrix of 18 × 61 pixels. FIG. 16A shows an area divided so as to perform halftone block correction in the main scanning direction. FIG. 16B shows an area divided so as to perform halftone block correction in the sub-scanning direction. FIG. 16C shows an area divided so as to perform halftone block correction in consideration of the main scanning direction and the sub-scanning direction.

図17(a)〜(c)は、14×61画素のマトリクスにおいてのブロック補正であるモードの網点ブロック補正エリアである。図17(a)は、主走査方向の網点ブロック補正をするように分割されたエリアである。図17(b)は、副走査方向の網点ブロック補正をするように分割されたエリアである。図17(c)は、主走査方向および副走査方向を加味した網点ブロック補正をするように分割されたエリアである。   17A to 17C show halftone block correction areas in a mode that is block correction in a matrix of 14 × 61 pixels. FIG. 17A shows an area divided so as to perform halftone block correction in the main scanning direction. FIG. 17B shows an area divided so as to perform halftone dot block correction in the sub-scanning direction. FIG. 17C shows an area which is divided so as to perform halftone block correction in consideration of the main scanning direction and the sub-scanning direction.

網点ブロック補正回路42は、網点ブロック補正を実際に行う際、2種類のマトリクスのモードについて(図16,図17)、処理速度と高画質とのどちらを優先するかを基準に、何れか一方を選択して使用する。選択されたモードの網点ブロック補正エリアに含まれる3種類のエリアにおいて、網点判別結果フラグSCRFLG=1である画素の個数を求める。そして、以下の条件式(P)を満たす場合には網点判別結果MESHを「1」とし、それ以外の場合には「0」として、最終出力結果とする。すなわち、網点判別結果MESH=1のとき、その画素は網点であると判断される。   The halftone dot block correction circuit 42 determines which of the two matrix modes (FIGS. 16 and 17) is prioritized between processing speed and high image quality when halftone block correction is actually performed. Select either one to use. In the three types of areas included in the halftone block correction area of the selected mode, the number of pixels having a halftone discrimination result flag SCRFLG = 1 is obtained. When the following conditional expression (P) is satisfied, the halftone discrimination result MESH is set to “1”, and otherwise, “0” is set as the final output result. That is, when the halftone dot discrimination result MESH = 1, the pixel is determined to be a halftone dot.

網点判別の条件式(P)
(MC0>THMC0 and MC1>THMC1 and MC2>THMC2 and MC3>THMC3)
or (MC4>THMC4 and MC5>THMC5 and MC6>THMC6)
or (SC0>THSC0 and SC1>THSC1 and SC2>THSC2 and SC3>THSC3)
or (SC16>THSC16 and SC17>THSC17 and SC18>THSC18 and SC19>THSC19)
or (CC1>THCC1 and CC2>THCC2 and CC3>THCC3 and CC4>THCC4)
ただし、
THMC0〜6:閾値(レジスタによる設定値:任意)
THSC0〜3,16〜19:閾値(レジスタによる設定値:任意)
THCC1〜4:閾値(レジスタによる設定値:任意)
したがって、補正回路40は、特徴量抽出回路30のOR回路34からの網点判別結果フラグSCRFLGを入力として、網点判別結果MESHを画像処理部2へ出力する。
Conditional expression for halftone dot discrimination (P)
(MC0> THMC0 and MC1> THMC1 and MC2> THMC2 and MC3> THMC3)
or (MC4> THMC4 and MC5> THMC5 and MC6> THMC6)
or (SC0> THSC0 and SC1> THSC1 and SC2> THSC2 and SC3> THSC3)
or (SC16> THSC16 and SC17> THSC17 and SC18> THSC18 and SC19> THSC19)
or (CC1> THCC1 and CC2> THCC2 and CC3> THCC3 and CC4> THCC4)
However,
THMC0 to 6: Threshold (Set value by register: Any)
THSC 0 to 3, 16 to 19: Threshold value (Register setting value: Any)
THCC1 to 4: Threshold (setting value by register: arbitrary)
Therefore, the correction circuit 40 receives the halftone dot discrimination result flag SCRFLG from the OR circuit 34 of the feature quantity extraction circuit 30 and outputs the halftone dot discrimination result MESH to the image processing unit 2.

以上のように、本実施の形態にかかる画像処理装置は、原稿を走査して得られる多値画像データC,M,Yから、画像上における各画素が属している領域特性を判別する際に、高密度性特徴パラメータ、粒状性特徴パラメータ、および周期性特徴パラメータを抽出し、各要素により画像領域判別を行う。   As described above, the image processing apparatus according to the present embodiment determines the region characteristics to which each pixel on the image belongs from the multi-value image data C, M, and Y obtained by scanning the document. Then, a high density characteristic parameter, a granularity characteristic parameter, and a periodic characteristic parameter are extracted, and an image area is determined based on each element.

これにより、上記画像処理装置は、CCDセンサ等により原稿を走査して得られたC,M,Yそれぞれの多値画像データに対し、注目画素と隣接した近傍画素からなる特定領域から各特徴パラメータを抽出し、それらに基づいて画像上における注目画素が属している領域を、文字領域、網点領域、写真領域の何れであるのかをより確実に判別することができる。よって、より最適な画像処理が可能となり、高画質化が達成できる。   As a result, the image processing apparatus can obtain each feature parameter from a specific area composed of neighboring pixels adjacent to the target pixel for C, M, and Y multivalued image data obtained by scanning a document with a CCD sensor or the like. Based on these, it is possible to more reliably determine whether the region to which the target pixel belongs on the image is a character region, a dot region, or a photographic region. Therefore, more optimal image processing is possible, and high image quality can be achieved.

また、上記画像処理装置は、原稿画像を走査して得られた入力多値画像データから各色成分C,M,Yごとに極大・極小画素を検出する極大・極小検出回路を有し、高密度性特徴パラメータを算出する。これにより、上記画像処理装置は、各色成分が画像データC,M,Yごとに、極大・極小画素を検出し、高密度性特徴パラメータに基づいて、文字、網点、写真領域を判別することができる。   The image processing apparatus has a maximum / minimum detection circuit for detecting a maximum / minimum pixel for each color component C, M, Y from input multivalued image data obtained by scanning a document image, and has a high density. Sex characteristic parameters are calculated. As a result, the image processing apparatus detects maximum / minimum pixels for each color component for each of the image data C, M, and Y, and discriminates characters, halftone dots, and photographic regions based on the high-density characteristic parameters. Can do.

また、上記画像処理装置は、極大・極小検出回路から得られた極大・極小画素から各色成分の画像データC,M,Yごとにランレングスおよび繁雑度を抽出する極大・極小画素周辺情報算出回路を有し、粒状性特徴パラメータを算出する。これにより、上記画像処理装置は、極大・極小画素から各色成分の画像データC,M,Yごとにランレングスおよび繁雑度を抽出し、粒状性特徴パラメータに基づいて、網点領域とそれ以外(連続した点、線)の領域とを判別することができる。   Further, the image processing apparatus includes a local maximum / minimum pixel peripheral information calculation circuit that extracts a run length and a complexity for each image data C, M, Y of each color component from the local maximum / minimum pixel obtained from the local maximum / minimum detection circuit. The graininess feature parameter is calculated. As a result, the image processing apparatus extracts the run length and the complexity for each color component image data C, M, and Y from the maximum and minimum pixels, and based on the granularity feature parameter, the halftone dot region and others ( It is possible to discriminate between a continuous point and line area.

また、上記画像処理装置は、極大・極小画素周辺情報算出回路から得られたランレングスおよび繁雑度から各色成分の画像データC,M,Yごとに画素重み切換信号を抽出する画素重み切換信号算出回路を有する。   The image processing apparatus calculates a pixel weight switching signal for extracting a pixel weight switching signal for each image data C, M, and Y of each color component from the run length and complexity obtained from the local maximum / minimum pixel peripheral information calculation circuit. It has a circuit.

これにより、上記画像処理装置は、ランレングスおよび繁雑度から、各色成分の画像データC,M,Yごとに、画素重み切換信号を抽出し、重みの割合をある領域内でカウントすることによって、画像データの特徴量を抽出し、文字、網点、写真領域を判別することができる。   Thus, the image processing apparatus extracts a pixel weight switching signal for each image data C, M, and Y of each color component from the run length and the complexity, and counts the weight ratio within a certain region. A feature amount of image data can be extracted, and a character, a halftone dot, and a photograph area can be discriminated.

また、上記画像処理装置は、画素重み切換信号算出回路から得られた画素重み切換信号の各色成分の画像データC,M,Yごとの周期性を抽出する周期性算出回路を有し、周期性特徴パラメータを算出する。   The image processing apparatus has a periodicity calculation circuit that extracts the periodicity for each of the image data C, M, and Y of each color component of the pixel weight switching signal obtained from the pixel weight switching signal calculation circuit. A feature parameter is calculated.

これにより、上記画像処理装置は、画素重み切換信号の各色成分の画像データC,M,Yごとの周期性を抽出し、周期性特徴パラメータを算出することにより、網点であれば周期性を確認でき、文字、網点、写真領域を判別することができる。   As a result, the image processing apparatus extracts periodicity for each of the image data C, M, and Y of each color component of the pixel weight switching signal, and calculates the periodicity characteristic parameter. It is possible to confirm and distinguish characters, halftone dots, and photo areas.

また、上記画像処理装置は、各色成分の画像データC,M,Yごとに画素重み切換信号算出回路から得られた画素重み切換信号を合成する画素重み付け回路を有し、領域判別のための特徴量を抽出する。   The image processing apparatus includes a pixel weighting circuit that synthesizes a pixel weight switching signal obtained from the pixel weight switching signal calculation circuit for each of the color component image data C, M, and Y. Extract the amount.

これにより、上記画像処理装置は、画素重み切換信号を合成し、領域判別のための特徴量を抽出することにより、文字、網点、写真領域を判別することができる。   As a result, the image processing apparatus can discriminate characters, halftone dots, and photographic regions by synthesizing pixel weight switching signals and extracting feature amounts for region discrimination.

また、上記画像処理装置は、原稿を走査して得られる多値画像データから、画像上における各画素が属している領域特性を判別する際に、高密度性特徴パラメータ、粒状性特徴パラメータ、および周期性特徴パラメータを抽出し、各要素を画像データに応じて画像領域の判別に利用するパラメー夕を選択することができる。   Further, the image processing apparatus, when determining the region characteristics to which each pixel on the image belongs from multi-valued image data obtained by scanning a document, a high density characteristic parameter, a granularity characteristic parameter, and Periodic feature parameters are extracted, and parameters that use each element for image region discrimination can be selected according to image data.

これにより、上記画像処理装置は、画像領域の判別に利用するパラメー夕を画像データに応じて選択することができるため、様々な画像データに対して効率よく高速に文字、網点、写真領域を判別することができる。   As a result, the image processing apparatus can select the parameter to be used for the determination of the image area according to the image data, so that characters, halftone dots, and photographic areas can be efficiently and quickly applied to various image data. Can be determined.

また、上記画像処理装置は、原稿を走査して得られる多値画像データから、画像上における各画素が属している領域特性を判別する際に、高密度性特徴パラメータ、粒状性特徴パラメータ、および周期性特徴パラメータを抽出し、各要素により得られた画像領域判別結果をブロック補正する補正回路を有する。   Further, the image processing apparatus, when determining the region characteristics to which each pixel on the image belongs from multi-valued image data obtained by scanning a document, a high density characteristic parameter, a granularity characteristic parameter, and It has a correction circuit that extracts periodic characteristic parameters and performs block correction on the image region discrimination result obtained by each element.

これにより、上記画像処理装置は、各パラメータを抽出し、各要素により得られた画像領域判別結果をブロック補正することにより、最終的な画像領域判別の誤った判断を軽減することができる。   Accordingly, the image processing apparatus can reduce erroneous determination of final image region determination by extracting each parameter and performing block correction on the image region determination result obtained by each element.

〔実施の形態2〕
本発明の他の実施の形態について図6、および図18から図32に基づいて説明すれば、以下のとおりである。なお、説明の便宜上、前記の実施の形態1において示した部材と同一の機能を有する部材には、同一の符号を付し、その説明を省略する。また、図18,図19,図22から図27中の線幅の太い信号線は、多ビットを並列に伝達可能な信号線を示している。
[Embodiment 2]
The following will describe another embodiment of the present invention with reference to FIG. 6 and FIGS. For convenience of explanation, members having the same functions as those shown in the first embodiment are given the same reference numerals, and explanation thereof is omitted. In addition, the thick signal lines in FIGS. 18, 19, and 22 to 27 indicate signal lines that can transmit multiple bits in parallel.

本実施の形態にかかる画像処理装置は、原稿を走査して得られるCMYおのおのの多値画像データから、画像上における各画素が属している領域が黒文字領域であるか否かのカラー画像領域判別処理を行う。   The image processing apparatus according to the present embodiment performs color image region determination based on multi-valued image data obtained by scanning a document to determine whether or not the region to which each pixel on the image belongs is a black character region. Process.

本実施の形態では、図6に示す画像領域判別部3に設けられている第二画像領域判別回路3bについて説明する。   In the present embodiment, the second image region determination circuit 3b provided in the image region determination unit 3 shown in FIG. 6 will be described.

図18を用いて、上記第二画像領域判別回路3bの構成の概略について説明する。上記第二画像領域判別回路3bは、ラインメモリ101と、色判定回路102と、エッジ判別回路(エッジ判別手段、エッジ判別工程)103と、判定処理回路104とを備えて構成されている。   The outline of the configuration of the second image region discrimination circuit 3b will be described with reference to FIG. The second image area determination circuit 3b includes a line memory 101, a color determination circuit 102, an edge determination circuit (edge determination means, edge determination step) 103, and a determination processing circuit 104.

第二画像領域判別回路3bは、入力部1のCCDセンサ1C,1M,1Yでシアン、マゼンタ、イエローの各色ごとに得られた画像データC,M,Yが、それぞれラインメモリ101C,101M,101Yへ入力され、各色7ライン8ビットの形式に変換されて、色判定回路102およびエッジ判別回路103に入力される。エッジ判別回路103ではエッジ検出信号S134およびエッジ判別信号S136が求められ、これらに基づいて判定処理回路104にてエッジ判別結果EDGEが算出され、色判定回路102に入力される。色判定回路102は、ラインメモリ101C,101M,101Yからの画像データC,M,Yと、判定処理回路104からのエッジ判別結果EDGEとを入力として、黒文字判別結果BLACKを出力する。   The second image area discriminating circuit 3b receives line data 101C, 101M, and 101Y from the image data C, M, and Y obtained for each color of cyan, magenta, and yellow by the CCD sensors 1C, 1M, and 1Y of the input unit 1, respectively. Is converted into a 7-line 8-bit format for each color and input to the color determination circuit 102 and the edge determination circuit 103. The edge determination circuit 103 obtains the edge detection signal S134 and the edge determination signal S136, and based on these, the determination processing circuit 104 calculates the edge determination result EDGE and inputs it to the color determination circuit 102. The color determination circuit 102 receives the image data C, M, Y from the line memories 101C, 101M, 101Y and the edge determination result EDGE from the determination processing circuit 104, and outputs a black character determination result BLACK.

上記ラインメモリ101(101C,101M,101Y)は、6ライン並列に並んだラインメモリである。ラインメモリ101は、入力部1のCCDセンサ1(1C,1M,1Y)(図6)によって、原稿画像を走査して得られた原稿画像データである、各色8ビットの画像データC,M,Yを、システムクロックに同期した状態で6ライン並列に並べて格納するとともに、常に7ラインの画像データC,M,Yを並列に出力する。例えば、A3、600dpiの各色8ビットの画像データの場合、1ライン当り約7Kバイトの容量が必要になる。なお、本実施の形態では、特定領域が7画素×7画素の場合を例として示すが、これに限定するものではない。よって、ラインメモリ101の形態もこれに限定されるものではない。   The line memory 101 (101C, 101M, 101Y) is a line memory arranged in 6 lines in parallel. The line memory 101 is 8-bit image data C, M, 8 bits of each color, which is document image data obtained by scanning a document image by the CCD sensor 1 (1C, 1M, 1Y) (FIG. 6) of the input unit 1. Y is stored in parallel in 6 lines in synchronization with the system clock, and 7 lines of image data C, M, Y are always output in parallel. For example, in the case of 8-bit image data for each color of A3 and 600 dpi, a capacity of about 7 Kbytes per line is required. In the present embodiment, a case where the specific area is 7 pixels × 7 pixels is shown as an example, but the present invention is not limited to this. Therefore, the form of the line memory 101 is not limited to this.

このように、ラインメモリ101C,101M,101Yは、CCDセンサ1C,1M,1Yからの各色8ビットの画像データC,M,Yを、各色7ライン8ビットの形式に変換して、後述する色判定回路102およびエッジ判別回路103に出力する。   As described above, the line memories 101C, 101M, and 101Y convert the 8-bit image data C, M, and Y from the CCD sensors 1C, 1M, and 1Y into a format of 7 lines and 8 bits for each color to be described later. The data is output to the determination circuit 102 and the edge determination circuit 103.

上記色判定回路102は、各色7ライン8ビットの画像データC,M,Yと、判定処理回路104からのエッジ判別結果EDGEとを入力として、これを統合処理し、黒文字判別結果BLACKを出力する。   The color determination circuit 102 receives the 7-line 8-bit image data C, M, and Y of each color and the edge determination result EDGE from the determination processing circuit 104, integrates them, and outputs a black character determination result BLACK. .

図19に示すように、上記色判定回路102は、色特徴量抽出回路(色特徴量抽出手段)121と、色検出回路(色検出手段、色検出工程)122と、カウント回路(カウント手段、カウント工程)123と、黒色検出回路(黒色検出手段、黒色検出工程)124とを備えて構成されている。   As shown in FIG. 19, the color determination circuit 102 includes a color feature amount extraction circuit (color feature amount extraction means) 121, a color detection circuit (color detection means, color detection step) 122, and a count circuit (count means, (Counting step) 123 and a black detection circuit (black detection means, black detection step) 124.

上記色特徴量抽出回路121は、最大値算出回路(最大値算出手段)121aと、最小値算出回路(最小値算出手段)121bと、最大濃度差算出回路(最大濃度差算出手段)121cと、濃度平均値算出回路(濃度平均値算出手段)121dと、濃度差総和算出回路(濃度差総和算出手段)121eとを備えて構成されている。   The color feature quantity extraction circuit 121 includes a maximum value calculation circuit (maximum value calculation means) 121a, a minimum value calculation circuit (minimum value calculation means) 121b, a maximum density difference calculation circuit (maximum density difference calculation means) 121c, A density average value calculating circuit (density average value calculating means) 121d and a density difference total calculating circuit (density difference total calculating means) 121e are provided.

上記の最大値算出回路121a、最小値算出回路121b、最大濃度差算出回路121c、濃度平均値算出回路121d、濃度差総和算出回路121eは、特定領域内のC,M,Yそれぞれ同一座標に位置する画像データについて、最大値特徴量MAX、最小値特徴量MIN、最大濃度差特徴量SUB、濃度差平均値特徴量AVE、濃度差総和特徴量PLUSをそれぞれ算出する。   The maximum value calculating circuit 121a, the minimum value calculating circuit 121b, the maximum density difference calculating circuit 121c, the density average value calculating circuit 121d, and the density difference sum calculating circuit 121e are located at the same coordinates in C, M, and Y in the specific area. For the image data to be processed, a maximum value feature amount MAX, a minimum value feature amount MIN, a maximum density difference feature amount SUB, a density difference average value feature amount AVE, and a density difference total feature amount PLUS are calculated.

ここで、最大値算出回路121a、最小値算出回路121b、最大濃度差算出回路121cは、各画像データC,M,Yにおける注目画素を中心とした特定領域内において、全画素中の濃度レベルの最大値、最小値、それらの最大濃度差を求める。濃度平均値算出回路121dは、特定領域内の全画素中の濃度レベルの平均値を求める。濃度差総和算出回路121eは、特定領域内の主走査方向に隣接する画素間の濃度レベル差の絶対値の総和と副走査方向に隣接する画素間の濃度レベル差の絶対値の総和との和を求める。   Here, the maximum value calculation circuit 121a, the minimum value calculation circuit 121b, and the maximum density difference calculation circuit 121c have density levels in all the pixels in a specific area centered on the target pixel in each of the image data C, M, and Y. The maximum value, the minimum value, and the maximum density difference are obtained. The density average value calculation circuit 121d calculates an average value of density levels in all pixels in the specific area. The density difference sum calculation circuit 121e is the sum of the absolute value of the density level difference between pixels adjacent in the main scanning direction within the specific area and the sum of the absolute value of the density level difference between pixels adjacent in the sub-scanning direction. Ask for.

ここで、上記の各特徴量MAX,MIN,SUB,AVE,PLUSは、各色ごとの7画素×7画素の領域の同一座標の画像データC,M,Yを互いに比較、算出することにより求められる。よって、上記の各特徴量は、それぞれ49個(7×7)ずつ求められることになる。   Here, the above-described feature amounts MAX, MIN, SUB, AVE, and PLUS are obtained by comparing and calculating image data C, M, and Y having the same coordinates in a 7 pixel × 7 pixel region for each color. . Therefore, 49 (7 × 7) pieces of each feature amount are obtained.

上記色検出回路122は、色特徴量抽出回路121の各算出回路121a〜121eで算出された各特徴量と画像データC,M,Yとを入力として、それぞれに対して設定された閾値とを比較することにより、第一色検出結果COLORおよび第二色検出結果信号S126をカウント回路123と黒色検出回路124とへ出力する。   The color detection circuit 122 receives the feature amounts calculated by the calculation circuits 121a to 121e of the color feature amount extraction circuit 121 and the image data C, M, and Y, and sets a threshold value set for each of the feature amounts. By comparing, the first color detection result COLOR and the second color detection result signal S126 are output to the count circuit 123 and the black color detection circuit 124.

上記色検出回路122は、図19に示すように、第一色検出回路125と、第二色検出回路126とを備えて構成されている。   As shown in FIG. 19, the color detection circuit 122 includes a first color detection circuit 125 and a second color detection circuit 126.

図20に示すように、上記第一色検出回路125は、7個の比較器201〜207と、2個のセレクタ208,209と、組み合わせ回路210と、OR回路211と、AND回路212とを備えて構成されている。   As shown in FIG. 20, the first color detection circuit 125 includes seven comparators 201 to 207, two selectors 208 and 209, a combinational circuit 210, an OR circuit 211, and an AND circuit 212. It is prepared for.

上記比較器201は、最小値算出回路121bで算出された最小値特徴量MINを閾値THMINと比較し、最小値特徴量MINが閾値THMIN以上である場合には「1」を、それ以外の場合には「0」を、信号S201として組み合わせ回路210へ出力する。   The comparator 201 compares the minimum value feature value MIN calculated by the minimum value calculation circuit 121b with the threshold value THMIN, and when the minimum value feature value MIN is equal to or greater than the threshold value THMIN, "1" is set otherwise. "0" is output to the combinational circuit 210 as a signal S201.

上記比較器202は、濃度差総和算出回路121eで算出された濃度差総和特徴量PLUSを閾値THPLUSと比較し、濃度差総和特徴量PLUSが閾値THPLUSより大きい場合には「1」を、それ以外の場合には「0」を、信号S202として組み合わせ回路210へ出力する。   The comparator 202 compares the density difference total feature amount PLUS calculated by the density difference total calculation circuit 121e with the threshold value THPLUS, and when the density difference total feature amount PLUS is larger than the threshold value THPLUS, “1” is set otherwise. In this case, “0” is output to the combinational circuit 210 as the signal S202.

上記比較器203は、最大濃度差算出回路121cで算出された最大濃度差特徴量SUBを閾値THSUBと比較し、最大濃度差特徴量SUBが閾値THSUBより小さい場合には「1」を、それ以外の場合には「0」を、信号S203として組み合わせ回路210へ出力する。   The comparator 203 compares the maximum density difference feature quantity SUB calculated by the maximum density difference calculation circuit 121c with the threshold value THSUB. When the maximum density difference feature quantity SUB is smaller than the threshold value THSUB, “1” is set. In this case, “0” is output to the combinational circuit 210 as the signal S203.

上記組み合わせ回路210は、各比較器201〜203からの信号S201,S202,S203を入力として、すべてが「1」である場合には「01(2ビット)」を、それ以外の場合には「10(2ビット)」を、信号S210としてセレクタ208へ出力する。   The combinational circuit 210 receives the signals S201, S202, and S203 from the comparators 201 to 203 and inputs “01 (2 bits)” when all are “1”, and “ 10 (2 bits) "is output to the selector 208 as the signal S210.

上記比較器204は、濃度平均値算出回路121dで算出された濃度平均値特徴量AVEを閾値THAVEと比較し、濃度平均値特徴量AVEが閾値THAVEより小さい場合には「1」を、それ以外の場合には「0」を、信号S204としてセレクタ208およびAND回路212へ出力する。   The comparator 204 compares the density average value feature value AVE calculated by the density average value calculation circuit 121d with the threshold value THAVE. If the density average value feature value AVE is smaller than the threshold value THAVE, “1” is set. In this case, “0” is output to the selector 208 and the AND circuit 212 as the signal S204.

上記セレクタ208は、比較器204からの信号S204を制御信号として、信号S204が「0」である場合には組み合わせ回路210からの信号S210である「01」あるいは「10」を、それ以外の場合には「00」を、2ビットの信号S208としてセレクタ209へ出力する。   The selector 208 uses the signal S204 from the comparator 204 as a control signal, and when the signal S204 is “0”, the signal S210 from the combinational circuit 210 is “01” or “10”, otherwise "00" is output to the selector 209 as a 2-bit signal S208.

上記比較器205は、画素の画像データCを閾値THCと比較し、画像データCが閾値THC以上である場合には「1」を、それ以外の場合には「0」を、信号S205としてOR回路211へ出力する。   The comparator 205 compares the pixel image data C with the threshold value THC, and if the image data C is greater than or equal to the threshold value THC, “1” is obtained, otherwise “0” is obtained as the signal S205. Output to the circuit 211.

上記比較器206は、画素の画像データMを閾値THMと比較し、画像データMが閾値THM以上である場合には「1」を、それ以外の場合には「0」を、信号S206としてOR回路211へ出力する。   The comparator 206 compares the image data M of the pixel with the threshold value THM. If the image data M is equal to or greater than the threshold value THM, “1” is set as the signal S206. Output to the circuit 211.

上記比較器207は、画素の画像データYを閾値THYと比較し、画像データYが閾値THY以上である場合には「1」を、それ以外の場合には「0」を、信号S207としてOR回路211へ出力する。   The comparator 207 compares the image data Y of the pixel with the threshold value THY. If the image data Y is equal to or greater than the threshold value THY, “1” is set as the signal S207. Output to the circuit 211.

上記OR回路211は、各比較器205〜207からの信号S205,S206,S207の論理和を演算し、結果を信号S211としてAND回路212へ出力する。   The OR circuit 211 calculates the logical sum of the signals S205, S206, and S207 from the comparators 205 to 207, and outputs the result to the AND circuit 212 as a signal S211.

上記AND回路212は、比較器204からの信号S204とOR回路211からの信号S211との論理積を演算し、結果を信号S212としてセレクタ209へ出力する。   The AND circuit 212 calculates a logical product of the signal S204 from the comparator 204 and the signal S211 from the OR circuit 211, and outputs the result to the selector 209 as a signal S212.

上記セレクタ209は、AND回路212からの信号S212を制御信号として、信号S212が「1」である場合にはセレクタ208からの信号S208である「01(2ビット)」を、それ以外の場合には「10(2ビット)」を、第一色検出回路125の出力である第一色検出結果COLORとしてカウント回路123および黒色検出回路124へ出力する。   The selector 209 uses the signal S212 from the AND circuit 212 as a control signal, and when the signal S212 is “1”, the signal S208 from the selector 208 is “01 (2 bits)”, otherwise. Outputs “10 (2 bits)” to the count circuit 123 and the black detection circuit 124 as the first color detection result COLOR which is the output of the first color detection circuit 125.

以上の構成により、第一色検出回路125は、特定領域内の同一座標における最小値特徴量MIN、最大濃度差特徴量SUB、濃度差平均値特徴量AVE、濃度差総和特徴量PLUSおよび画像データC,M,Yと、それぞれに対して設定された閾値とを比較し、組み合わせにしたがって、第一色検出結果COLORを3通りに出力する。すなわち、第一色検出結果COLORが「01」である場合には「黒文字領域(強調処理が必要)」を意味し、「10」である場合には「黒文字領域(強調処理は不要)」を意味し、「00」である場合には「黒文字領域以外の領域」を意味する。つまり、第一色検出結果COLORは黒色の部分を検出している。   With the above configuration, the first color detection circuit 125 has the minimum value feature value MIN, the maximum density difference feature value SUB, the density difference average value feature value AVE, the density difference total feature value PLUS, and the image data at the same coordinates in the specific area. C, M, and Y are compared with the threshold values set for each, and the first color detection result COLOR is output in three ways according to the combination. That is, when the first color detection result COLOR is “01”, it means “black character region (emphasis processing is required)”, and when it is “10”, “black character region (no enhancement processing is required)”. In this case, “00” means “an area other than a black character area”. That is, the first color detection result COLOR detects a black portion.

図21に示すように、上記第二色検出回路126は、2個の比較器221,222と、AND回路223とを備えて構成されている。   As shown in FIG. 21, the second color detection circuit 126 includes two comparators 221, 222 and an AND circuit 223.

上記比較器221は、最大値算出回路121a(図19)で算出された最大値特徴量MAXを閾値THMAXと比較し、最大値特徴量MAXが閾値THMAX以上である場合には「1」を、それ以外の場合には「0」を、信号S221としてAND回路223へ出力する。   The comparator 221 compares the maximum value feature amount MAX calculated by the maximum value calculation circuit 121a (FIG. 19) with the threshold value THMAX, and when the maximum value feature amount MAX is equal to or greater than the threshold value THMAX, In other cases, “0” is output to the AND circuit 223 as the signal S221.

上記比較器222は、最大濃度差算出回路121c(図19)で算出された最大濃度差特徴量SUBを閾値THSUBと比較し、最大濃度差特徴量SUBが閾値THSUB以上である場合には「1」を、それ以外の場合には「0」を、信号S222としてAND回路223へ出力する。   The comparator 222 compares the maximum density difference feature quantity SUB calculated by the maximum density difference calculation circuit 121c (FIG. 19) with the threshold value THSUB, and when the maximum density difference feature quantity SUB is equal to or greater than the threshold value THSUB, “1”. ", Otherwise," 0 "is output to the AND circuit 223 as the signal S222.

上記AND回路223は、比較器221,222からの信号S221,S222の論理積を演算し、結果を第二色検出回路126の出力である第二色検出結果信号S126としてカウント回路123とへ出力する。   The AND circuit 223 calculates the logical product of the signals S221 and S222 from the comparators 221 and 222, and outputs the result to the count circuit 123 as a second color detection result signal S126 that is an output of the second color detection circuit 126. To do.

以上の構成により、第二色検出回路126は、特定領域内の同一座標における最大値特徴量MAXおよび最大濃度差特徴量SUBと、それぞれに対して設定された閾値とを比較し、第二色検出結果信号S126を2通りに出力する。すなわち、第二色検出結果信号S126が「1」である場合には「濃色領域」を意味し、「0」である場合は「濃色領域以外の領域」を意味する。   With the above configuration, the second color detection circuit 126 compares the maximum value feature amount MAX and the maximum density difference feature amount SUB at the same coordinates in the specific region with the threshold values set for each, and the second color The detection result signal S126 is output in two ways. That is, when the second color detection result signal S126 is “1”, it means “dark region”, and when it is “0”, it means “region other than the dark region”.

ここで、第一色検出回路125および第二色検出回路126で設定する各閾値の最適値を以下に示す。なお、値はすべて10進表記である。また、数値の範囲等については、10ビット信号である閾値THPLUSを除いて、すべて8ビット(0〜255)内で設定可能である。設定の基準は、画像処理装置の状態(CCDなど)によって変化する。   Here, the optimum value of each threshold value set by the first color detection circuit 125 and the second color detection circuit 126 is shown below. All values are in decimal notation. In addition, the numerical range and the like can be set within 8 bits (0 to 255) except for the threshold value THPLUS which is a 10-bit signal. The setting reference varies depending on the state of the image processing apparatus (CCD or the like).

THMIN=26,THPLUS=73,THSUB=25,THAVE=88,TH(THC,THM,THY)=25,THMAX=60
上記カウント回路123(図19)は、特定領域内の第一色検出結果COLORおよび第二色検出結果信号S126の総数をカウントし、カウント結果COUNTとして黒色検出回路124へ出力する。すなわち、カウント結果COUNTは、黒色と黒以外の色の数を表している。
THMIN = 26, THPLUS = 73, THSUB = 25, THAVE = 88, TH (THC, THM, THY) = 25, THMAX = 60
The count circuit 123 (FIG. 19) counts the total number of the first color detection result COLOR and the second color detection result signal S126 in the specific area, and outputs the count result COUNT to the black color detection circuit 124. That is, the count result COUNT represents the number of colors other than black and black.

上記黒色検出回路124(図19)は、第一色検出回路125からの第一色検出結果COLORと、カウント回路123からのカウント結果COUNTと、後述する判定処理回路104からのエッジ判別結果EDGEとを入力として、注目画素に対する黒文字判別結果BLACKを第二画像領域判別回路3bの結果として出力する。   The black detection circuit 124 (FIG. 19) includes a first color detection result COLOR from the first color detection circuit 125, a count result COUNT from the count circuit 123, and an edge determination result EDGE from the determination processing circuit 104 described later. Is input, and the black character discrimination result BLACK for the target pixel is output as the result of the second image area discrimination circuit 3b.

図22に示すように、黒色検出回路124は、3個の組み合わせ回路231〜233と、4個のセレクタ234〜237と、比較器238とを備えて構成されている。   As shown in FIG. 22, the black color detection circuit 124 includes three combinational circuits 231 to 233, four selectors 234 to 237, and a comparator 238.

上記組み合わせ回路231は、2ビット並列に伝達されるエッジ判別結果EDGEおよび第一色検出結果COLORを入力として、EDGE=01かつCOLOR=01である場合には「1」を、それ以外の場合には「0」を、1ビットの信号S231としてセレクタ234へ出力する。   The combinational circuit 231 receives the edge discrimination result EDGE and the first color detection result COLOR transmitted in parallel in 2 bits, and inputs “1” when EDGE = 01 and COLOR = 01, and otherwise. Outputs “0” to the selector 234 as a 1-bit signal S231.

上記組み合わせ回路232は、2ビット並列に伝達されるエッジ判別結果EDGEおよび第一色検出結果COLORを入力として、EDGE=10かつCOLOR=01である場合には「1」を、それ以外の場合には「0」を、1ビットの信号S232としてセレクタ235へ出力する。   The combinational circuit 232 receives the edge discrimination result EDGE and the first color detection result COLOR transmitted in 2-bit parallel, and inputs “1” when EDGE = 10 and COLOR = 01, and otherwise. Outputs “0” to the selector 235 as a 1-bit signal S232.

上記組み合わせ回路233は、2ビット並列に伝達されるエッジ判別結果EDGEおよび第一色検出結果COLORを入力として、「EDGE=01かつCOLOR=10」あるいは「EDGE=10かつCOLOR=10」である場合には「1」を、それ以外の場合には「0」を、1ビットの信号S233としてセレクタ236へ出力する。   The combination circuit 233 receives “EDGE = 01 and COLOR = 10” or “EDGE = 10 and COLOR = 10” with the edge determination result EDGE and the first color detection result COLOR transmitted in parallel in 2 bits as inputs. “1” is output to the selector 236 as a 1-bit signal S233.

上記セレクタ234は、組み合わせ回路231からの信号S231を制御信号として、信号S231が「1」である場合には「01(2ビット)」を、それ以外の場合には「00(2ビット)」を、信号S234としてセレクタ235へ出力する。   The selector 234 uses the signal S231 from the combinational circuit 231 as a control signal, and “01 (2 bits)” when the signal S231 is “1”, and “00 (2 bits)” otherwise. Is output to the selector 235 as a signal S234.

上記セレクタ235は、組み合わせ回路232からの信号S232を制御信号として、信号S232が「1」である場合には「10(2ビット)」を、それ以外の場合にはセレクタ234からの信号S234である「01」あるいは「00」を、信号S235としてセレクタ236へ出力する。   The selector 235 uses the signal S232 from the combinational circuit 232 as a control signal, and when the signal S232 is “1”, it is “10 (2 bits)”, otherwise it is the signal S234 from the selector 234. A certain “01” or “00” is output to the selector 236 as a signal S235.

上記セレクタ236は、組み合わせ回路233からの信号S233を制御信号として、信号S233が「1」である場合には「10(2ビット)」を、それ以外の場合にはセレクタ235からの信号S235である「10」,「01」,「00」の何れかを、信号S236としてセレクタ237へ出力する。   The selector 236 uses the signal S233 from the combinational circuit 233 as a control signal. When the signal S233 is “1”, the selector 236 uses “10 (2 bits)”; otherwise, the selector 236 uses the signal S235 from the selector 235. Any one of “10”, “01”, and “00” is output to the selector 237 as a signal S236.

上記比較器238は、カウント結果COUNTを閾値THCOUNTと比較して、カウント結果COUNTが閾値THCOUNT以上である場合には「1」を、それ以外の場合には「0」を、信号S238としてセレクタ237へ出力する。   The comparator 238 compares the count result COUNT with the threshold value THCOUNT. When the count result COUNT is equal to or greater than the threshold value THCOUNT, “1” is set, and “0” is set otherwise, and the selector 237 is set as the signal S238. Output to.

上記セレクタ237は、比較器238からの信号S238を制御信号として、信号S238が「1」である場合には「00(2ビット)」を、それ以外の場合にはセレクタ236からの信号S236である「10」,「01」,「00」の何れかを、黒色検出回路124の出力である黒文字判別結果BLACKとして出力する。   The selector 237 uses the signal S238 from the comparator 238 as a control signal, and when the signal S238 is “1”, “00 (2 bits)”; otherwise, the selector 237 uses the signal S236 from the selector 236. Any one of “10”, “01”, and “00” is output as the black character discrimination result BLACK which is the output of the black color detection circuit 124.

以上の構成により、黒色検出回路124は、色の変化が急激に発生する箇所を検出したエッジ判別結果EDGEと、黒色の部分を検出した第一色検出結果COLORと、黒色と黒以外の色の数をカウントしたカウント結果COUNTとの組み合わせにより、黒文字の検出、特に黒文字のエッジ部分の検出を行う。   With the above configuration, the black detection circuit 124 detects the edge determination result EDGE that detects the location where the color change suddenly occurs, the first color detection result COLOR that detects the black portion, and the colors other than black and black. Detection of black characters, particularly detection of edge portions of black characters, is performed in combination with the count result COUNT obtained by counting the number.

ここで、比較器238で設定する閾値THCOUNTは、10から20の範囲の数値が好ましく、最適値は14(10進表記)である。なお、数値の範囲等については、8ビット(0〜255)内で設定可能である。設定の基準は、画像処理装置の状態(CCDなど)によって変化する。   Here, the threshold value THCOUNT set by the comparator 238 is preferably a numerical value in the range of 10 to 20, and the optimum value is 14 (decimal notation). In addition, about the range of a numerical value etc., it can set within 8 bits (0-255). The setting reference varies depending on the state of the image processing apparatus (CCD or the like).

黒文字判別結果BLACKは、第二画像領域判別回路3bから画像処理部2における後処理(フィルタ処理)のプログラムに入力され、画像にエッジ強調処理が施される。   The black character discrimination result BLACK is input from the second image region discrimination circuit 3b to a post-processing (filtering) program in the image processing unit 2, and edge enhancement processing is performed on the image.

図18に示すように、上記エッジ判別回路103は、ラインメモリ101からの各色7ライン8ビットの画像データC,M,Yを入力として、注目画素がエッジであるか否かを検出した、後述するエッジ検出信号S134およびエッジ判別信号S136を判定処理回路104へ出力する。そして、判定処理回路104は、入力されたエッジ検出信号S134およびエッジ判別信号S136に基づいて、エッジ判別結果EDGEを決定し、色判定回路102へ出力する。   As shown in FIG. 18, the edge determination circuit 103 receives image data C, M, and Y of 7 colors and 8 bits from each line memory 101 and detects whether or not the pixel of interest is an edge, which will be described later. The edge detection signal S134 and the edge determination signal S136 to be output are output to the determination processing circuit 104. Then, the determination processing circuit 104 determines the edge determination result EDGE based on the input edge detection signal S134 and the edge determination signal S136, and outputs it to the color determination circuit 102.

上記エッジ判別回路103は、図23に示すように、各色ごとに設けられたエッジ判別前処理回路130C,130M,130Yと、第一LUT(look up table )133と、第二エッジ検出回路134と、第二エッジ閾値選択回路(エッジ閾値選択手段)135と、エッジ特徴量抽出回路(エッジ特徴量抽出手段)136とを備えて構成されている。   As shown in FIG. 23, the edge discrimination circuit 103 includes edge discrimination pre-processing circuits 130C, 130M, and 130Y provided for each color, a first LUT (look up table) 133, a second edge detection circuit 134, and the like. The second edge threshold selection circuit (edge threshold selection means) 135 and the edge feature quantity extraction circuit (edge feature quantity extraction means) 136 are provided.

上記エッジ判別前処理回路130C,130M,130Yは、同一の構成を有するため、以下ではエッジ判別前処理回路130Cを例として説明する。   Since the edge determination preprocessing circuits 130C, 130M, and 130Y have the same configuration, the edge determination preprocessing circuit 130C will be described below as an example.

上記エッジ判別前処理回路130Cは、第一エッジ検出回路131Cを備えており、ラインメモリ101Cからの7ライン8ビットの画像データCを入力として、エッジ抽出のためのマスクフィルタMF(後述)とのたたみ込み演算を行うことによって、画像データCのエッジ検出結果信号S131Cを求め、第一LUT133へ出力する。なお、上記エッジ判別前処理回路130M,130Yも同様に、第一エッジ検出回路131M,131Yを備えている。   The edge discrimination pre-processing circuit 130C includes a first edge detection circuit 131C, and receives 7-line 8-bit image data C from the line memory 101C as an input and a mask filter MF (described later) for edge extraction. By performing a convolution operation, an edge detection result signal S131C of the image data C is obtained and output to the first LUT 133. Similarly, the edge discrimination preprocessing circuits 130M and 130Y include first edge detection circuits 131M and 131Y.

また、上記エッジ判別前処理回路130Cは、第一エッジ閾値選択回路(エッジ閾値選択手段)132Cを備えており、ラインメモリ101Cからの7ライン8ビットの画像データCを入力として、注目画素を中心とする領域の画像データCを二値化して、二値化画像データS132Cを第二エッジ閾値選択回路135へ出力する。なお、上記エッジ判別前処理回路130M,130Yも同様に、第一エッジ閾値選択回路(エッジ閾値選択手段)132M,132Yを備えている。   Further, the edge discrimination pre-processing circuit 130C includes a first edge threshold selection circuit (edge threshold selection means) 132C, and receives the 7-line 8-bit image data C from the line memory 101C as the input, and focuses on the target pixel. The binarized image data C of the area to be binarized and outputs the binarized image data S132C to the second edge threshold selection circuit 135. Similarly, the edge discrimination preprocessing circuits 130M and 130Y include first edge threshold selection circuits (edge threshold selection means) 132M and 132Y.

図24に示すように、上記第一エッジ検出回路131Cは、ラインメモリ101Cからの7ライン8ビットの画像データCを入力として、特定領域内の注目画素P0(斜線部分)を中心とする9画素(3画素×3画素)の画像データCに対しエッジ抽出のためのマスクフィルタMFをたたみ込み、得られた値と閾値THCONVCとの比較結果を画像データCのエッジ検出結果信号S131Cとして、第一LUT133へ出力する。   As shown in FIG. 24, the first edge detection circuit 131C receives 7 lines and 8 bits of image data C from the line memory 101C, and inputs 9 pixels centered on the pixel of interest P0 (shaded portion) in the specific area. A mask filter MF for edge extraction is convolved with the (3 pixels × 3 pixels) image data C, and the comparison result between the obtained value and the threshold value THCONVC is used as an edge detection result signal S131C of the image data C. Output to the LUT 133.

ここで、第一エッジ検出回路131Cは、2本の演算系317h,317vと、加算器315と、比較器316とを備えて構成されている。   Here, the first edge detection circuit 131C includes two arithmetic systems 317h and 317v, an adder 315, and a comparator 316.

上記演算系317hは、3個の減算器301〜303と、3個の積算器304〜306と、加算器307とを備えて構成されている。また、上記演算系317vは、3個の減算器308〜310と、3個の積算器311〜313と、加算器314とを備えて構成されている。なお、演算系317hと演算系317vとは、ほぼ同一の構成であり、演算過程での画素の組み合わせの方向が異なるのみである。   The arithmetic system 317h includes three subtracters 301 to 303, three integrators 304 to 306, and an adder 307. The arithmetic system 317v includes three subtracters 308 to 310, three integrators 311 to 313, and an adder 314. Note that the calculation system 317h and the calculation system 317v have substantially the same configuration, and only the direction of pixel combination in the calculation process is different.

具体的には、演算系317hでは、まず、画像データCについて、画素Pの画素値とマスクフィルタMFのフィルタ係数W(図31(a))とを、マトリクスの対応する位置ごとに掛け合わせる。つづいて、減算器301にて(m−1,n−1)の値と(m+1,n−1)の値を減算した結果と、減算器302にて(m−1,n+1)の値と(m+1,n+1)の値を減算した結果と、積算器304,305にてそれぞれに2が乗じられた(m−1,n)の値と(m+1,n)の値とを減算器303にて減算した結果とを、加算器307にて加算する。積算器306にて、加算器307の結果を自乗して加算器315へ出力する。   Specifically, the arithmetic system 317h first multiplies the image data C by the pixel value of the pixel P and the filter coefficient W of the mask filter MF (FIG. 31A) for each corresponding position in the matrix. Subsequently, the subtracter 301 subtracts the value of (m−1, n−1) and the value of (m + 1, n−1), and the subtractor 302 calculates the value of (m−1, n + 1). The result of subtracting the value of (m + 1, n + 1), the value of (m−1, n) and the value of (m + 1, n) each multiplied by 2 in the integrators 304 and 305 are sent to the subtractor 303. The adder 307 adds the results of the subtraction. The accumulator 306 squares the result of the adder 307 and outputs the result to the adder 315.

同様に、演算系317vでは、まず、画像データCについて、画素Pの画素値とマスクフィルタMFのフィルタ係数W(図31(a))とを、マトリクスの対応する位置ごとに掛け合わせる。つづいて、減算器308にて(m−1,n−1)の値と(m−1,n+1)の値を減算した結果と、減算器309にて(m+1,n−1)の値と(m+1,n+1)の値を減算した結果と、積算器311,312にてそれぞれに2が乗じられた(m,n−1)の値と(m,n+1)の値とを減算器310にて減算した結果とを、加算器314にて加算する。積算器313にて、加算器314の結果を自乗して加算器315へ出力する。   Similarly, the arithmetic system 317v first multiplies the image data C by the pixel value of the pixel P and the filter coefficient W of the mask filter MF (FIG. 31A) for each corresponding position in the matrix. Subsequently, the subtracter 308 subtracts the value of (m−1, n−1) and the value of (m−1, n + 1), and the subtractor 309 calculates the value of (m + 1, n−1). The result of subtracting the value of (m + 1, n + 1), the value of (m, n−1) and the value of (m, n + 1) multiplied by 2 respectively in the integrators 311, 312 are sent to the subtractor 310. The result of subtraction is added by the adder 314. The accumulator 313 squares the result of the adder 314 and outputs it to the adder 315.

上記加算器315は、演算系317h,317vの結果を加算することによって、マスクフィルタMFのたたみ込み演算の最終結果を算出し、たたみ込み演算結果信号S315として比較器316へ出力する。   The adder 315 calculates the final result of the convolution operation of the mask filter MF by adding the results of the operation systems 317h and 317v, and outputs the result to the comparator 316 as the convolution operation result signal S315.

上記のように、本実施の形態で用いるマスクフィルタMFは、3×3のマトリクス状にフィルタ係数が配されているマスクフィルタである。例えば、マスクフィルタMFには、図32(a)〜(d)に示すようなフィルタ係数を有するマスクフィルタを使用することができる。なお、図32(a)〜(d)は、それぞれ0°方向,45°方向,90°方向,135°方向のエッジ検出のためのマスクフィルタである。   As described above, the mask filter MF used in the present embodiment is a mask filter in which filter coefficients are arranged in a 3 × 3 matrix. For example, a mask filter having filter coefficients as shown in FIGS. 32A to 32D can be used as the mask filter MF. 32A to 32D are mask filters for edge detection in the 0 ° direction, 45 ° direction, 90 ° direction, and 135 ° direction, respectively.

上記比較器316は、加算器315で算出されたたたみ込み演算結果信号S315を閾値THCONVCと比較し、たたみ込み演算結果信号S315が閾値THCONVCより大きい場合には「1」を、それ以外の場合には「0」を、画像データCのエッジ検出結果信号S131Cとして、第一LUT133へ出力する。   The comparator 316 compares the convolution calculation result signal S315 calculated by the adder 315 with the threshold value THCONVC, and sets “1” when the convolution calculation result signal S315 is greater than the threshold value THCONVC, otherwise. Outputs “0” to the first LUT 133 as the edge detection result signal S131C of the image data C.

ここで、上記閾値THCONVCは、設定範囲が21ビットである。そして、閾値THCONVCは、20000から25000の範囲の数値が好ましく、最適値は24025(10進表記)である。しかし、閾値THCONVCの設定基準は、画像処理装置のCCDセンサ1などの状態により変化する。   Here, the threshold value THCONVC has a setting range of 21 bits. The threshold value THCONVC is preferably a numerical value in the range of 20000 to 25000, and the optimum value is 24025 (decimal notation). However, the threshold THCONVC setting criterion varies depending on the state of the CCD sensor 1 of the image processing apparatus.

上記第一LUT133は、第一エッジ検出回路131C,131M,131Yにおいて、各色ごとに画像データC,M,Yから求めたエッジ検出結果信号S131C,S131M,S131Yを入力として、これらの組み合わせて応じた値(例えば、「0」または「1」)を、RAMなどにあらかじめ設定記憶された数値表より抽出し、エッジ情報信号S133として第二エッジ検出回路134へ出力する。   The first LUT 133 receives the edge detection result signals S131C, S131M, and S131Y obtained from the image data C, M, and Y for each color in the first edge detection circuits 131C, 131M, and 131Y. A value (for example, “0” or “1”) is extracted from a numerical table preliminarily set and stored in a RAM or the like, and is output to the second edge detection circuit 134 as an edge information signal S133.

これにより、第一LUT133からは、エッジ検出結果信号S131C,S131M,S131Yの内、2つ以上の入力が「1」である場合には「1」が、それ以外の場合には「0」が、第二エッジ検出回路134へ出力されることになる。   As a result, the first LUT 133 receives “1” when two or more of the edge detection result signals S131C, S131M, and S131Y are “1”, and “0” otherwise. Are output to the second edge detection circuit 134.

上記第二エッジ検出回路134(図23)は、第一LUT133で得られた注目画素P0およびその周辺画素のエッジ情報信号S133を入力として、これらの組み合わせにより、注目画素P0のエッジ判別結果EDGEを求め、エッジ検出信号S134として判定処理回路104へ出力する。   The second edge detection circuit 134 (FIG. 23) receives the edge information signal S133 of the pixel of interest P0 and its surrounding pixels obtained by the first LUT 133 as an input, and determines the edge determination result EDGE of the pixel of interest P0 by combining them. Obtained and output to the determination processing circuit 104 as the edge detection signal S134.

図25に示すように、第二エッジ検出回路134は、2個の加算器321,322と、最大値算出器323と、比較器324と、OR回路325と、第二LUT326とを備えて構成されている。   As shown in FIG. 25, the second edge detection circuit 134 includes two adders 321, 322, a maximum value calculator 323, a comparator 324, an OR circuit 325, and a second LUT 326. Has been.

第二エッジ検出回路134における演算では、まず、図30(a)に示すように、特定領域の注目画素P0に対して、注目画素P0を中心とする9画素からなる十字型領域ACONVを設定する。すなわち、十字型領域ACONVは、図31(b)に示すように、注目画素P0=P(i,j)を中心として、j行上の画素P(i−2,j),P(i−1,j),P(i+1,j),P(i+2,j)と、i列上の画素P(i,j−2),P(i,j−1),P(i,j+1),P(i,j+2)とからなる。   In the calculation in the second edge detection circuit 134, first, as shown in FIG. 30A, a cross-shaped region ACONV including nine pixels centered on the target pixel P0 is set for the target pixel P0 in the specific region. . That is, as shown in FIG. 31B, the cross-shaped region ACONV is centered on the pixel of interest P0 = P (i, j), and the pixels P (i−2, j), P (i−) on the jth row. 1, j), P (i + 1, j), P (i + 2, j), and pixels P (i, j-2), P (i, j-1), P (i, j + 1), i columns, P (i, j + 2).

そして、注目画素P0のエッジ検出信号S134は、注目画素P0を中心とする十字型領域ACONVに含まれる9画素すべての各画素Pについて、第一LUT133にて求められたエッジ情報信号S133に基づいて求められる。   The edge detection signal S134 of the target pixel P0 is based on the edge information signal S133 obtained in the first LUT 133 for each of all nine pixels P included in the cross-shaped area ACONV centered on the target pixel P0. Desired.

具体的には、エッジ情報信号S133について、つぎのような演算が行われる。j行上の画素P(i−2,j),P(i−1,j),P(i,j),P(i+1,j),P(i+2,j)の値を加算器321にて加算した結果、およびi列上の画素P(i,j−2),P(i,j−1),P(i,j),P(i,j+1),P(i,j+2)の値を加算器322にて加算した結果のうち、大きな方の値を最大値算出器323にて求める。そして、比較器324にて、最大値算出器323の結果を閾値THCSMAXと比較し、最大値算出器323の結果が閾値THCSMAXより小さい場合には「1」を、それ以外の場合には「0」を、信号Xとして第二LUT326へ出力する。   Specifically, the following calculation is performed on the edge information signal S133. The values of the pixels P (i−2, j), P (i−1, j), P (i, j), P (i + 1, j), and P (i + 2, j) on the j row are added to the adder 321. Of the pixels P (i, j-2), P (i, j-1), P (i, j), P (i, j + 1), and P (i, j + 2) on the i column. Of the results of adding the values by the adder 322, the larger value is obtained by the maximum value calculator 323. Then, the comparator 324 compares the result of the maximum value calculator 323 with the threshold value THCSMAX. If the result of the maximum value calculator 323 is smaller than the threshold value THCSMAX, “1” is set. Otherwise, “0” is set. Is output to the second LUT 326 as the signal X.

また、OR回路325にて十字型領域ACONVに含まれるすべての画素Pの値の論理和を演算し、結果を信号Yとして第二LUT326へ出力する。さらに、注目画素P0の値を信号Zとして第二LUT326へ出力する。   Further, the OR circuit 325 calculates the logical sum of the values of all the pixels P included in the cross-shaped area ACONV, and outputs the result as a signal Y to the second LUT 326. Further, the value of the target pixel P0 is output to the second LUT 326 as a signal Z.

第二LUT326は、入力された信号X,Y,Zの組み合わせに応じた値(例えば、「0」または「1」)を、RAMなどにあらかじめ設定記憶された数値表より抽出し、エッジ判別回路103の結果であるエッジ検出信号S134として判定処理回路104へ出力する。   The second LUT 326 extracts a value (for example, “0” or “1”) corresponding to the combination of the input signals X, Y, and Z from a numerical table preliminarily set and stored in a RAM or the like, and an edge determination circuit 103 is output to the determination processing circuit 104 as an edge detection signal S134 as a result of 103.

以上のように、第一エッジ検出回路131C,131M,131Yと、第一LUT133と、第二エッジ検出回路134とにより、注目画素P0が色の変化が急激に発生している画素であるか否かを検出し、エッジ検出信号S134として出力することができる。   As described above, whether or not the pixel of interest P0 is a pixel in which the color change is abruptly generated by the first edge detection circuits 131C, 131M, and 131Y, the first LUT 133, and the second edge detection circuit 134 is determined. Can be detected and output as an edge detection signal S134.

すなわち、特定領域の注目画素P0に対して、十字型領域ACONVを設定し(図30(a))、十字型領域ACONVに含まれるすべての画素Pについて、3×3のマスクフィルタMF(図31(a))とのたたみ込み演算を行い、各画素のエッジ情報信号S133を求める。具体的には、画素P(i,j)のエッジ検出信号S134を求めるために、図30(b)に示すように、画素P(i,j−2)とマスクフィルタMFの中心であるフィルタ係数W(m,n)とが対応するようにマスクフィルタMFを設定してたたみ込み演算を行い、画素P(i,j−2)のエッジ情報信号S133を求める。そして、十字型領域ACONV内の9画素すべてのエッジ情報信号S133に基づいて、第二LUT326を参照し、エッジ検出信号S134を抽出することになる。   That is, the cross-shaped area ACONV is set for the pixel of interest P0 in the specific area (FIG. 30A), and the 3 × 3 mask filter MF (FIG. 31) is set for all the pixels P included in the cross-shaped area ACONV. The edge information signal S133 of each pixel is obtained by performing a convolution operation with (a)). Specifically, in order to obtain the edge detection signal S134 of the pixel P (i, j), as shown in FIG. 30B, a filter that is the center of the pixel P (i, j-2) and the mask filter MF. A convolution operation is performed by setting the mask filter MF so that the coefficient W (m, n) corresponds to the edge information signal S133 of the pixel P (i, j-2). Then, based on the edge information signal S133 of all nine pixels in the cross-shaped region ACONV, the second LUT 326 is referred to extract the edge detection signal S134.

上記エッジ特徴量抽出回路136(図23)は、ラインメモリ101からの各色ごとの画像データC,M,Yを入力として、注目画素を中心とする7画素×7画素領域(第一エリアA1)および7画素×31画素領域(第二エリアA2)について、最大値、最小値、最大濃度差、標準偏差(第一エリアA1のみ)の総和を求め、これをエッジ情報として、後述する第二エッジ閾値選択回路135(図28)にて算出された主エッジ閾値選択信号S135により選択されたエッジ閾値と比較することにより、エッジ判別信号S136を求めて、エッジ判別回路103の結果として判定処理回路104へ出力する。   The edge feature amount extraction circuit 136 (FIG. 23) receives the image data C, M, and Y for each color from the line memory 101 and inputs a 7 pixel × 7 pixel region (first area A1) centered on the target pixel. And the sum of the maximum value, the minimum value, the maximum density difference, and the standard deviation (only the first area A1) is obtained for the 7 pixel × 31 pixel region (second area A2), and this is used as edge information to be described later as a second edge By comparing with the edge threshold value selected by the main edge threshold value selection signal S135 calculated by the threshold value selection circuit 135 (FIG. 28), the edge determination signal S136 is obtained, and the determination processing circuit 104 is obtained as a result of the edge determination circuit 103. Output to.

図26に示すように、エッジ特徴量抽出回路136は、各色ごとに設けられた第一算出回路331C,331M,331Yおよび第二算出回路332C,332M,332Yと、総和算出回路336と、エッジ判定回路337とを備えて構成されている。   As shown in FIG. 26, the edge feature quantity extraction circuit 136 includes first calculation circuits 331C, 331M, 331Y and second calculation circuits 332C, 332M, 332Y provided for each color, a sum calculation circuit 336, and edge determination. And a circuit 337.

上記第一算出回路331C,331M,331Yおよび第二算出回路332C,332M,332Yは、画像データC,M,Yごとに同一の構成で設けられている。よって、以下では画像データCの演算を行う第一算出回路331Cおよび第二算出回路332Cについてのみ説明する。   The first calculation circuits 331C, 331M, 331Y and the second calculation circuits 332C, 332M, 332Y are provided in the same configuration for each of the image data C, M, Y. Therefore, only the first calculation circuit 331C and the second calculation circuit 332C that perform the calculation of the image data C will be described below.

上記第一算出回路331Cは、ラインメモリ101Cからの画像データCを入力として、注目画素を中心とする7画素×7画素の第一エリアA1および7画素×31画素の第二エリアA2について、最大値、最小値、最大濃度差を算出し、総和算出回路336へ32ビットの第一エッジ情報信号S331Cとして出力する。   The first calculation circuit 331C receives the image data C from the line memory 101C as an input, and outputs a maximum of 7 pixels × 7 pixels first area A1 and 7 pixels × 31 pixels second area A2 centered on the target pixel. The value, minimum value, and maximum density difference are calculated and output to the sum calculation circuit 336 as a 32-bit first edge information signal S331C.

上記第二算出回路332Cは、ラインメモリ101Cからの画像データCを入力として、注目画素を中心とする7画素×7画素の第一エリアA1について、標準偏差を算出し、総和算出回路336へ14ビットの第二エッジ情報信号S332Cとして出力する。   The second calculation circuit 332C receives the image data C from the line memory 101C as an input, calculates a standard deviation for the first area A1 of 7 pixels × 7 pixels centered on the pixel of interest, and sends it to the total calculation circuit 336. The bit is output as the second edge information signal S332C.

上記総和算出回路336は、第一算出回路331C,331M,331Yおよび第二算出回路332C,332M,332Yによって各色ごとにそれぞれ算出された第一エッジ情報信号S331C,S331M,S331Y(最大値、最小値、最大濃度差)および第二エッジ情報信号S332C,S332M,S332Y(標準偏差)の総和を求めて、エッジ判定回路337へ出力する。   The sum calculation circuit 336 includes first edge information signals S331C, S331M, S331Y (maximum value, minimum value) calculated for each color by the first calculation circuits 331C, 331M, 331Y and the second calculation circuits 332C, 332M, 332Y, respectively. , Maximum density difference) and second edge information signals S332C, S332M, and S332Y (standard deviation) are obtained and output to the edge determination circuit 337.

そして、上記総和算出回路336は、7×31最大値総和回路333aと、7×31最小値総和回路333bと、7×31最大濃度差総和回路333cと、7×7最大値総和回路334aと、7×7最小値総和回路334bと、7×7最大濃度差総和回路334cと、7×7標準偏差総和回路335とを備えて構成されている。   The total calculation circuit 336 includes a 7 × 31 maximum value total circuit 333a, a 7 × 31 minimum value total circuit 333b, a 7 × 31 maximum density difference total circuit 333c, a 7 × 7 maximum value total circuit 334a, A 7 × 7 minimum value summation circuit 334b, a 7 × 7 maximum density difference summation circuit 334c, and a 7 × 7 standard deviation summation circuit 335 are provided.

上記7×31最大値総和回路333a、7×31最小値総和回路333b、7×31最大濃度差総和回路333cは、第一算出回路331C,331M,331Yによって、画像データC,M,Yごとに求められた、注目画素を中心とする7画素×31画素の第二エリアA2の最大値、最小値、最大濃度差をそれぞれ入力として、各値の総和を算出し、7×31最大値総和信号p1、7×31最小値総和信号p2、7×31最大濃度差総和信号p3としてエッジ判定回路337へ出力する。   The 7 × 31 maximum value summation circuit 333a, the 7 × 31 minimum value summation circuit 333b, and the 7 × 31 maximum density difference summation circuit 333c are respectively calculated for the image data C, M, and Y by the first calculation circuits 331C, 331M, and 331Y. The sum of the respective values is calculated by inputting the obtained maximum value, minimum value, and maximum density difference of the second area A2 of 7 pixels × 31 pixels centered on the target pixel, and the 7 × 31 maximum value total signal The p1, 7 × 31 minimum value sum signal p2, and the 7 × 31 maximum density difference sum signal p3 are output to the edge determination circuit 337.

同様に、上記7×7最大値総和回路334a、7×7最小値総和回路334b、7×7最大濃度差総和回路334cは、第一算出回路331C,331M,331Yによって、画像データC,M,Yごとに求められた、注目画素を中心とする7画素×7画素の第一エリアA1の最大値、最小値、最大濃度差をそれぞれ入力として、各値の総和を算出し、7×7最大値総和信号p4、7×7最小値総和信号p5、7×7最大濃度差総和信号p6としてエッジ判定回路337へ出力する。   Similarly, the 7 × 7 maximum value summation circuit 334a, the 7 × 7 minimum value summation circuit 334b, and the 7 × 7 maximum density difference summation circuit 334c are imaged by the first calculation circuits 331C, 331M, and 331Y, respectively. The maximum value, minimum value, and maximum density difference of the first area A1 of 7 pixels × 7 pixels centered on the pixel of interest obtained for each Y are input, and the sum of each value is calculated to obtain the maximum of 7 × 7 The value sum signal p4, 7 × 7 minimum value sum signal p5, and 7 × 7 maximum density difference sum signal p6 are output to the edge determination circuit 337.

上記7×7標準偏差総和回路335は、第二算出回路332C,332M,332Yによって、画像データC,M,Yごとに求められた、注目画素を中心とする7画素×7画素の第一エリアA1の標準偏差を入力として、総和を算出し、7×7標準偏差総和信号p7としてエッジ判定回路337へ出力する。   The 7 × 7 standard deviation summation circuit 335 is a first area of 7 pixels × 7 pixels centered on the pixel of interest obtained by the second calculation circuits 332C, 332M, and 332Y for each of the image data C, M, and Y. The sum total is calculated by using the standard deviation of A1 as an input, and is output to the edge determination circuit 337 as a 7 × 7 standard deviation sum signal p7.

上記エッジ判定回路337は、エッジ情報である総和算出回路336からの各総和信号p1〜p7と、後述する第二エッジ閾値選択回路135(図28)にて算出された主エッジ閾値選択信号S135とを入力として、各総和信号p1〜p7と、所定のエッジ閾値および主エッジ閾値選択信号S135により選択されたエッジ閾値とを比較することにより、エッジ判別信号S136を求めて、エッジ判別回路103の結果として判定処理回路104へ出力する。   The edge determination circuit 337 includes summation signals p1 to p7 from the summation calculation circuit 336, which is edge information, and a main edge threshold selection signal S135 calculated by a second edge threshold selection circuit 135 (FIG. 28) described later. Is input to each of the sum signals p1 to p7 and the edge threshold selected by the predetermined edge threshold and the main edge threshold selection signal S135 to obtain an edge determination signal S136, and the result of the edge determination circuit 103 is obtained. To the determination processing circuit 104.

上記エッジ判定回路337は、選択回路341と、6個の比較器342a,342b,343a,343b,344,345と、2個のAND回路346,347と、OR回路348とを備えて構成されている。   The edge determination circuit 337 includes a selection circuit 341, six comparators 342a, 342b, 343a, 343b, 344, 345, two AND circuits 346, 347, and an OR circuit 348. Yes.

上記選択回路341は、総和算出回路336の各総和回路333a〜333cによって算出された、注目画素を中心とする7画素×31画素の第二エリアA2の最大値、最小値、最大濃度差の各総和である総和信号p1〜p3と、後述する第二エッジ閾値選択回路135(図28)からの主エッジ閾値選択信号S135とを入力として、各総和信号p1〜p3と、主エッジ閾値選択信号S135により選択されたエッジ閾値とを比較することにより、信号S341a,S341b,S341cを求めOR回路348へ出力する。   The selection circuit 341 calculates each of the maximum value, the minimum value, and the maximum density difference of the second area A2 of 7 pixels × 31 pixels centered on the pixel of interest, which is calculated by the total circuits 333a to 333c of the total calculation circuit 336. Sum signals p1 to p3, which are sums, and a main edge threshold selection signal S135 from a second edge threshold selection circuit 135 (FIG. 28), which will be described later, are input, and each sum signal p1 to p3 and main edge threshold selection signal S135 are input. Are compared with the edge threshold value selected in step S341, signals S341a, S341b, and S341c are obtained and output to the OR circuit 348.

図27に示すように、上記選択回路341は、3個のセレクタ351〜353と、3個の比較器354〜356とを備えて構成されている。ここで、主エッジ閾値選択信号S135は、選択信号S135e,S135f,S135gを含む信号であり、選択回路341内ではそれぞれ分離して伝達される。   As shown in FIG. 27, the selection circuit 341 includes three selectors 351 to 353 and three comparators 354 to 356. Here, the main edge threshold selection signal S135 is a signal including selection signals S135e, S135f, and S135g, and is transmitted separately in the selection circuit 341.

上記セレクタ351は、選択信号S135e,S135gの組み合わせに応じて、入力信号である三つのエッジ閾値THMAX3A,THMAX3B,THMAX3Cから、一つを選択し、信号S351として比較器354へ出力する。そして、比較器354は、7×31最大値総和回路333aからの7×31最大値総和信号p1を、セレクタ351からの信号S351(エッジ閾値THMAX3A〜3C)と比較し、7×31最大値総和信号p1が信号S351より小さい場合には「0」を、それ以外の場合には「1」を信号S341aとしてOR回路348へ出力する。   The selector 351 selects one of the three edge thresholds THMAX3A, THMAX3B, and THMAX3C, which are input signals, according to the combination of the selection signals S135e and S135g, and outputs the selected signal to the comparator 354 as a signal S351. The comparator 354 compares the 7 × 31 maximum value sum signal p1 from the 7 × 31 maximum value summation circuit 333a with the signal S351 (edge threshold values THMAX3A to 3C) from the selector 351, and the 7 × 31 maximum value summation. If the signal p1 is smaller than the signal S351, “0” is output to the OR circuit 348 as “0”, otherwise “1” is output as the signal S341a.

上記セレクタ352は、選択信号S135e,S135gの組み合わせに応じて、入力信号である二つのエッジ閾値THMIN3A,THMIN3Bから、一つを選択し、信号S352として比較器355へ出力する。そして、比較器355は、7×31最小値総和回路333bからの7×31最小値総和信号p2を、セレクタ352からの信号S352(エッジ閾値THMIN3A,3B)と比較して、7×31最小値総和信号p2が信号S352より大きい場合には「0」を、それ以外の場合には「1」を信号S341bとしてOR回路348へ出力する。   The selector 352 selects one of the two edge thresholds THMIN3A and THMIN3B, which are input signals, according to the combination of the selection signals S135e and S135g, and outputs the selected signal to the comparator 355 as a signal S352. Then, the comparator 355 compares the 7 × 31 minimum value sum signal p2 from the 7 × 31 minimum value summation circuit 333b with the signal S352 (edge threshold value THMIN3A, 3B) from the selector 352, thereby comparing the 7 × 31 minimum value. When the sum signal p2 is larger than the signal S352, “0” is output to the OR circuit 348 as “0”, and “1” is output as the signal S341b.

上記セレクタ353は、選択信号S135e,S135f,S135gの組み合わせに応じて、入力信号である三つのエッジ閾値THMDIFA,THMDIFB,THMDIFCから、一つを選択し、信号S353として比較器356へ出力する。そして、比較器356は、7×31最大濃度差総和回路333cからの7×31最大濃度差総和信号p3を、セレクタ353からの信号S353(エッジ閾値THMDIFA〜C)と比較し、7×31最大濃度差総和信号p3が信号S353より小さい場合には「0」を、それ以外の場合には「1」を信号S341cとしてOR回路348へ出力する。   The selector 353 selects one of the three edge thresholds THMDIFA, THMDIFB, and THMDIFC that are input signals according to the combination of the selection signals S135e, S135f, and S135g, and outputs the selected signal to the comparator 356 as a signal S353. Then, the comparator 356 compares the 7 × 31 maximum density difference sum signal p3 from the 7 × 31 maximum density difference summation circuit 333c with the signal S353 (edge threshold value THMDIFA to C) from the selector 353, and the 7 × 31 maximum density difference summation signal p3. If the density difference sum signal p3 is smaller than the signal S353, “0” is output to the OR circuit 348 as “0”, and “1” is output as the signal S341c otherwise.

これにより、選択回路341からは、7×31領域において注目画素が文字領域に含まれている場合には「0」であり、それ以外の場合には「1」である信号S342a〜S342cが出力される。そのために、エッジ閾値THMAX3A〜3Cは、7×31領域の最大濃度値からエッジ判定を行う値に設定される。エッジ閾値THMIN3A,3Bは、7×31領域の最小濃度値からエッジ判定を行う値に設定される。エッジ閾値THMDIFA〜Cは、7×31領域の最大濃度差からエッジ判定を行う値に設定される。   Thus, the selection circuit 341 outputs signals S342a to S342c that are “0” when the pixel of interest is included in the character region in the 7 × 31 region, and “1” in other cases. Is done. Therefore, the edge thresholds THMAX3A to 3C are set to values for performing edge determination from the maximum density value of the 7 × 31 region. The edge thresholds THMIN3A and 3B are set to values for performing edge determination from the minimum density value of the 7 × 31 region. The edge threshold values THMDIFA to C are set to values for performing edge determination from the maximum density difference of the 7 × 31 region.

上記比較器342aは、7×7最大値総和回路334aからの7×7最大値総和信号p4を、あらかじめ設定されたエッジ閾値THMAX1と比較して、7×7最大値総和信号p4がエッジ閾値THMAX1より小さい場合には「0」を、それ以外の場合には「1」を信号S342aとしてAND回路347へ出力する。   The comparator 342a compares the 7 × 7 maximum value sum signal p4 from the 7 × 7 maximum value sum circuit 334a with a preset edge threshold value THMAX1, and the 7 × 7 maximum value sum signal p4 is compared with the edge threshold value THMAX1. If it is smaller, “0” is output to the AND circuit 347 as a signal S342a.

上記比較器343aは、7×7最小値総和回路334bからの7×7最小値総和信号p5を、あらかじめ設定されたエッジ閾値THMIN1と比較して、7×7最小値総和信号p5がエッジ閾値THMIN1より大きい場合には「0」を、それ以外の場合には「1」を信号S343aとしてAND回路347へ出力する。   The comparator 343a compares the 7 × 7 minimum value sum signal p5 from the 7 × 7 minimum value sum circuit 334b with a preset edge threshold value THMIN1, and the 7 × 7 minimum value sum signal p5 is compared with the edge threshold value THMIN1. If it is larger, “0” is output to the AND circuit 347 as a signal S343a.

そして、上記AND回路347は、比較器342a,343aからの信号S342a,S343aを入力として、これらの論理積を演算し、信号S347としてOR回路348へ出力する。   The AND circuit 347 receives the signals S342a and S343a from the comparators 342a and 343a, calculates a logical product of these signals, and outputs the logical product as a signal S347 to the OR circuit 348.

同様に、上記比較器342bは、7×7最大値総和回路334aからの7×7最大値総和信号p4を、あらかじめ設定されたエッジ閾値THMAX2と比較して、7×7最大値総和信号p4がエッジ閾値THMAX2より小さい場合には「0」を、それ以外の場合には「1」を信号S342bとしてAND回路346へ出力する。   Similarly, the comparator 342b compares the 7 × 7 maximum value sum signal p4 from the 7 × 7 maximum value sum circuit 334a with a preset edge threshold value THMAX2, and the 7 × 7 maximum value sum signal p4 is obtained. If it is smaller than the edge threshold value THMAX2, “0” is output to the AND circuit 346 as a signal S342b otherwise “1”.

上記比較器343bは、7×7最小値総和回路334bからの7×7最小値総和信号p5を、あらかじめ設定されたエッジ閾値THMIN2と比較して、7×7最小値総和信号p5がエッジ閾値THMIN2より大きい場合には「0」を、それ以外の場合には「1」を信号S343bとしてAND回路346へ出力する。   The comparator 343b compares the 7 × 7 minimum value sum signal p5 from the 7 × 7 minimum value sum circuit 334b with a preset edge threshold value THMIN2, and the 7 × 7 minimum value sum signal p5 is compared with the edge threshold value THMIN2. If it is larger, “0” is output to the AND circuit 346 as a signal S343b.

上記比較器344は、7×7最大濃度差総和回路334cからの7×7最大濃度差総和信号p6を、あらかじめ設定されたエッジ閾値THMDと比較して、7×7最大濃度差総和信号p6がエッジ閾値THMDより小さい場合には「0」を、それ以外の場合には「1」を信号S344としてAND回路346へ出力する。   The comparator 344 compares the 7 × 7 maximum density difference sum signal p6 from the 7 × 7 maximum density difference sum circuit 334c with a preset edge threshold value THMD to obtain a 7 × 7 maximum density difference sum signal p6. If it is smaller than the edge threshold THMD, “0” is output to the AND circuit 346 as a signal S344, and “1” is output otherwise.

上記比較器345は、7×7標準偏差総和回路335からの7×7標準偏差総和信号p7を、あらかじめ設定されたエッジ閾値THSDと比較して、7×7標準偏差総和信号p7がエッジ閾値THSDより小さい場合には「0」を、それ以外の場合には「1」を信号S345としてAND回路346へ出力する。   The comparator 345 compares the 7 × 7 standard deviation sum signal p7 from the 7 × 7 standard deviation sum circuit 335 with a preset edge threshold value THSD, and the 7 × 7 standard deviation sum signal p7 is compared with the edge threshold value THSD. If it is smaller, “0” is output to the AND circuit 346 as a signal S345.

そして、上記AND回路346は、比較器342b,343b,344,345からの信号S342b,S343b,S344,S345を入力として、これらの論理積を演算し、信号S346としてOR回路348へ出力する。   The AND circuit 346 receives the signals S342b, S343b, S344, and S345 from the comparators 342b, 343b, 344, and 345, calculates a logical product of these signals, and outputs the logical product as a signal S346 to the OR circuit 348.

これにより、AND回路346,347からは、7×7領域において注目画素が文字領域に含まれている場合には「0」であり、それ以外の場合には「1」である信号S346,347が出力される。そのために、エッジ閾値THMAX1,2は、7×7領域の最大濃度値からエッジ判定を行う値に設定される。エッジ閾値THMIN1,2は、7×7領域の最小濃度値からエッジ判定を行う値に設定される。エッジ閾値THMDは、7×7領域の最大濃度差からエッジ判定を行う値に設定される。エッジ閾値THSDは、7×7領域の標準偏差値からエッジ判定を行う値に設定される。   As a result, the AND circuits 346 and 347 indicate that the signals S346 and 347 are “0” when the pixel of interest is included in the character region in the 7 × 7 region and “1” otherwise. Is output. Therefore, the edge thresholds THMAX1 and THMAX2 are set to values for performing edge determination from the maximum density value of the 7 × 7 region. The edge threshold values THMIN 1 and 2 are set to values for performing edge determination from the minimum density value of the 7 × 7 area. The edge threshold value THMD is set to a value for performing edge determination from the maximum density difference of the 7 × 7 region. The edge threshold value THSD is set to a value for performing edge determination from the standard deviation value of the 7 × 7 area.

上記OR回路348は、選択回路341からの信号S341a〜S341cと、AND回路346,347からの信号S346,S347とを入力として、これらの論理和を演算し、エッジ特徴量抽出回路136の結果出力であるエッジ判別信号S136として判定処理回路104へ出力する。   The OR circuit 348 receives the signals S341a to S341c from the selection circuit 341 and the signals S346 and S347 from the AND circuits 346 and 347, calculates a logical sum of them, and outputs the result of the edge feature quantity extraction circuit 136. Is output to the determination processing circuit 104 as an edge determination signal S136.

これにより、OR回路348は、注目画素が文字領域である場合に「0」となり、非文字領域である場合に「1」となる1ビット信号を判定処理回路104へ出力できる。   Thus, the OR circuit 348 can output to the determination processing circuit 104 a 1-bit signal that is “0” when the target pixel is a character region and “1” when the target pixel is a non-character region.

ここで、エッジ判定回路337で設定する各閾値の最適値を以下に示す。なお、値はすべて10進表記である。また、数値の範囲等については、THSDのみ16ビットであって、他のすべては10ビット(0〜1023)内で設定可能である。設定値は画像処理装置の状態(CCDなど)によって変化する。   Here, the optimum value of each threshold set by the edge determination circuit 337 is shown below. All values are in decimal notation. As for the range of numerical values, only THSD is 16 bits, and all others can be set within 10 bits (0 to 1023). The set value varies depending on the state of the image processing apparatus (CCD or the like).

THMIN1=330,THMIN2=45,THMAX1=432,THMAX2=339,THMD=330,THSD=1800,
THMAX3A=147,THMAX3B=210,THMAX3C=420,THMIN3A=330,THMIN3B=135,
THMDIFA=135,THMDIFB=210,THMDIFC=225
つぎに、図23に示すように、エッジ特徴量抽出回路136への主エッジ閾値選択信号S135は、エッジ判別前処理回路130C,130M,130Yの第一エッジ閾値選択回路132C,132M,132Yと、第二エッジ閾値選択回路135とから算出される。
THMIN1 = 330, THMIN2 = 45, THMAX1 = 432, THMAX2 = 339, THMD = 330, THSD = 1800,
THMAX3A = 147, THMAX3B = 210, THMAX3C = 420, THMIN3A = 330, THMIN3B = 135,
THMDIFA = 135, THMDIFB = 210, THMDIFC = 225
Next, as shown in FIG. 23, the main edge threshold value selection signal S135 to the edge feature quantity extraction circuit 136 includes first edge threshold value selection circuits 132C, 132M, and 132Y of the edge discrimination preprocessing circuits 130C, 130M, and 130Y, Calculated from the second edge threshold selection circuit 135.

上記第一エッジ閾値選択回路132C,132M,132Yは、同一の構成を有し、それぞれエッジ判別前処理回路130C,130M,130Yに設けられている。よって、以下では画像データCの演算を行う第一エッジ閾値選択回路132Cについてのみ説明する。   The first edge threshold selection circuits 132C, 132M, and 132Y have the same configuration and are provided in the edge determination pre-processing circuits 130C, 130M, and 130Y, respectively. Therefore, only the first edge threshold selection circuit 132C that performs the calculation of the image data C will be described below.

第一エッジ閾値選択回路132Cは、ラインメモリ101Cからの7ライン8ビットの画像データCを入力とし、注目画素を中心とする7画素×7画素領域(第一エリアA1)内の画像データCの平均値を二値化閾値として、注目画素を中心とする7画素×31画素領域(第二エリアA2)内の画像データCを二値化する。   The first edge threshold selection circuit 132C receives the 7-line 8-bit image data C from the line memory 101C and receives the image data C in the 7 pixel × 7 pixel region (first area A1) centered on the target pixel. Using the average value as the binarization threshold, the image data C in the 7 pixel × 31 pixel region (second area A2) centered on the target pixel is binarized.

図28に示すように、第一エッジ閾値選択回路132Cは、二値化閾値算出回路361Cと、二値化回路362Cと、7×31反転回数算出回路363Cとを備えて構成されている。   As shown in FIG. 28, the first edge threshold selection circuit 132C includes a binarization threshold calculation circuit 361C, a binarization circuit 362C, and a 7 × 31 inversion count calculation circuit 363C.

上記二値化閾値算出回路361Cは、ラインメモリ101Cからの画像データCを入力として、第一エリアA1内の画像データCの平均値を求め、二値化閾値信号S361Cとして二値化回路362Cへ出力する。   The binarization threshold value calculation circuit 361C receives the image data C from the line memory 101C, obtains an average value of the image data C in the first area A1, and supplies the binarization threshold value signal S361C to the binarization circuit 362C. Output.

上記二値化回路362Cは、ラインメモリ101Cからの画像データCを入力として、第二エリアA2内の画像データCを、二値化閾値算出回路361Cからの二値化閾値信号S361Cと比較し、第二エリアA2内の画像データCが二値化閾値信号S361Cより小さい場合には「1」に、それ以外の場合には「0」に二値化し、二値化信号S362Cとして7×31反転回数算出回路363Cへ出力する。   The binarization circuit 362C receives the image data C from the line memory 101C, compares the image data C in the second area A2 with the binarization threshold signal S361C from the binarization threshold calculation circuit 361C, If the image data C in the second area A2 is smaller than the binarization threshold signal S361C, it is binarized to “1”, otherwise it is binarized to “0”, and 7 × 31 inversion as the binarization signal S362C Output to the number calculation circuit 363C.

上記7×31反転回数算出回路363Cは、二値化回路362Cからの二値化信号S362Cを入力として、第二エリアA2内の二値化された画像データCの主走査、副走査の各ラインごとに「0」,「1」の反転回数を算出し、第一エッジ閾値選択回路132Cの結果出力である反転回数信号S132Cとして第二エッジ閾値選択回路135へ出力する。   The 7 × 31 inversion number calculating circuit 363C receives the binarized signal S362C from the binarizing circuit 362C and inputs the main scanning and sub scanning lines of the binarized image data C in the second area A2. Each time, the number of inversions of “0” and “1” is calculated and output to the second edge threshold selection circuit 135 as an inversion number signal S132C which is a result output of the first edge threshold selection circuit 132C.

上記第二エッジ閾値選択回路135は、第一エッジ閾値選択回路132C,132M,132Yからの反転回数信号S132C,S132M,S132Yを入力として、主エッジ閾値選択信号S135を算出し、エッジ特徴量抽出回路136へ出力する。   The second edge threshold selection circuit 135 receives the inversion frequency signals S132C, S132M, and S132Y from the first edge threshold selection circuits 132C, 132M, and 132Y, calculates a main edge threshold selection signal S135, and generates an edge feature quantity extraction circuit. To 136.

図28に示すように、第二エッジ閾値選択回路135は、白黒画素最大数算出回路371と、閾値選択回路372とを備えて構成されている。   As shown in FIG. 28, the second edge threshold selection circuit 135 is configured to include a monochrome pixel maximum number calculation circuit 371 and a threshold selection circuit 372.

上記白黒画素最大数算出回路371は、第一エッジ閾値選択回路132C,132M,132Yからの、第二エリアA2内で各色ごとに二値化された画像データの反転回数を主走査、副走査の各ラインごとに算出した反転回数信号S132C,S132M,S132Yを入力として、第二エリアA2内の二値化後の各色ごとの白画素数の最大値および黒画素数の最大値を求め、それぞれ白画素数最大値信号S371wおよび黒画素数最大値信号S371bとして閾値選択回路372へ出力する。   The black-and-white pixel maximum number calculation circuit 371 determines the number of inversions of the image data binarized for each color in the second area A2 from the first edge threshold selection circuits 132C, 132M, and 132Y. The maximum number of white pixels and the maximum number of black pixels for each color after binarization in the second area A2 are obtained by using the inversion number signals S132C, S132M, and S132Y calculated for each line, respectively. The pixel number maximum value signal S371w and the black pixel number maximum value signal S371b are output to the threshold selection circuit 372.

上記閾値選択回路372は、白黒画素最大数算出回路371からの白画素数最大値信号S371wおよび黒画素数最大値信号S371bを入力として、あらかじめ設定された閾値THSELに基づき、主エッジ閾値選択信号S135を算出して、第二エッジ閾値選択回路135の結果出力としてエッジ特徴量抽出回路136へ出力する。なお、主エッジ閾値選択信号S135は、三つの選択信号S135e,S135f,S135gを含む信号である。また、閾値THSELには四つの閾値(TP1,TP30,TP31,TME)が含まれている。   The threshold selection circuit 372 receives the white pixel maximum value signal S371w and the black pixel maximum value signal S371b from the monochrome pixel maximum number calculation circuit 371 as input, and based on a preset threshold THSEL, the main edge threshold selection signal S135. Is output to the edge feature quantity extraction circuit 136 as a result output of the second edge threshold selection circuit 135. The main edge threshold selection signal S135 is a signal including three selection signals S135e, S135f, and S135g. The threshold value THSEL includes four threshold values (TP1, TP30, TP31, TME).

閾値選択回路372の具体的な処理内容は、つぎのとおりである。5×5領域の反転回数を閾値TP1と比較して大きい場合には「1」(それ以外の場合には「0」)とする比較結果と、7×7領域の平均値を閾値TMEと比較して大きい場合には「1」(それ以外の場合には「0」)とする比較結果との論理積を演算し、選択信号S135eとして出力する。31×7領域の反転回数と閾値TP31との積をCMYの31×7領域の白画素数の最大値(白画素数最大値信号S371w)と比較して、大きい場合には「1」(それ以外の場合には「0」)を、選択信号S135fとして出力する。31×7領域の反転回数と閾値TP30との積をCMYの31×7領域の黒画素数の最大値(黒画素数最大値信号S371b)と比較して、大きい場合には「1」(それ以外の場合には「0」)を、選択信号S135gとして出力する。   The specific processing contents of the threshold selection circuit 372 are as follows. When the number of inversions of the 5 × 5 area is larger than the threshold value TP1, the comparison result is “1” (otherwise “0”), and the average value of the 7 × 7 area is compared with the threshold value TME. If it is larger, a logical product with the comparison result “1” (otherwise “0”) is calculated and output as the selection signal S135e. The product of the number of inversions in the 31 × 7 area and the threshold value TP31 is compared with the maximum value of the number of white pixels in the 31 × 7 area of CMY (white pixel number maximum value signal S371w). Otherwise, “0”) is output as the selection signal S135f. The product of the number of inversions of the 31 × 7 area and the threshold value TP30 is compared with the maximum value of black pixels in the 31 × 7 area of CMY (black pixel number maximum value signal S371b). Otherwise, “0”) is output as the selection signal S135g.

これにより、閾値選択回路372からは、入力の組み合わせに応じて、選択回路341内の閾値(THMAX3A〜3C,THMIN3A,3B,THMDIFA〜C)を選択するための主エッジ閾値選択信号S135が出力される。そのために、閾値THSEL(TP1,TP30,TP31,TME)は、C,M,Yの各画像領域からエッジ判定するために最適な閾値を決定することができる値に設定される。   As a result, the threshold selection circuit 372 outputs a main edge threshold selection signal S135 for selecting thresholds (THMAX3A to 3C, THMIN3A, 3B, and THMDIFA to C) in the selection circuit 341 according to the combination of inputs. The Therefore, the threshold value THSEL (TP1, TP30, TP31, TME) is set to a value that can determine an optimum threshold value for edge determination from the C, M, and Y image regions.

具体的には、閾値TP1は、4ビット内で設定可能であり、1から10の範囲の数値が好ましく、最適値は4である。閾値TP30は、8ビット内で設定可能であり、30から70の範囲の数値が好ましく、最適値は40である。閾値TP31は、8ビット内で設定可能であり、30から70の範囲の数値が好ましく、最適値は50である。閾値TMEは、8ビット内で設定可能であり、20から50の範囲の数値が好ましく、最適値は38である。なお、上記の数値はすべて10進表記である。また、それぞれの設定値は画像処理装置の状態(CCDなど)によって変化する。   Specifically, the threshold value TP1 can be set within 4 bits, a numerical value in the range of 1 to 10 is preferable, and the optimum value is 4. The threshold value TP30 can be set within 8 bits, a numerical value in the range of 30 to 70 is preferable, and an optimal value is 40. The threshold value TP31 can be set within 8 bits, a numerical value in the range of 30 to 70 is preferable, and the optimum value is 50. The threshold value TME can be set within 8 bits, is preferably a numerical value in the range of 20 to 50, and the optimum value is 38. All the above numerical values are in decimal notation. Each set value varies depending on the state of the image processing apparatus (CCD or the like).

以上のように、第一エッジ閾値選択回路132C,132M,132Yと、第二エッジ閾値選択回路135と、エッジ特徴量抽出回路136とにより、注目画素(中心画素)が文字領域に属しているか否かを検出し、注目画素が文字領域である場合に「0」、非文字領域である場合に「1」である1ビットのエッジ判別信号S136を判定処理回路104へ出力することができる。   As described above, whether or not the target pixel (center pixel) belongs to the character region is determined by the first edge threshold selection circuits 132C, 132M, and 132Y, the second edge threshold selection circuit 135, and the edge feature amount extraction circuit 136. It is possible to output to the determination processing circuit 104 a 1-bit edge determination signal S136 that is “0” when the target pixel is a character region and “1” when the target pixel is a non-character region.

なお、第一エリアA1は注目画素を中心とした狭い範囲であればよい。一方、第二エリアA2は第一エリアA1に対して広い範囲であればよい。しかし、第一エリアA1としては注目画素を中心とする7画素×7画素領域が、第二エリアA2としては注目画素を中心とする7画素×31画素領域が、それぞれ判別精度および回路規模において最適な領域である。   The first area A1 may be a narrow range centered on the target pixel. On the other hand, the second area A2 only needs to be wider than the first area A1. However, the 7 pixel × 7 pixel region centered on the target pixel is optimal for the first area A1, and the 7 pixel × 31 pixel region centered on the target pixel is optimal for the second area A2, respectively. This is an important area.

図18に示すように、上記判定処理回路104は、エッジ判別回路103からのエッジ検出信号S134およびエッジ判別信号S136とを入力として、これらの組み合わせにより、注目画素で色が急激に変化するか否かを示すエッジ判別結果EDGEを色判定回路102へ出力する。そして、色判定回路102では、黒色検出のために、エッジ判別結果EDGEを含めた統合処理が行われる。   As shown in FIG. 18, the determination processing circuit 104 receives the edge detection signal S134 and the edge determination signal S136 from the edge determination circuit 103 as input, and whether or not the color changes abruptly at the target pixel due to the combination thereof. The edge determination result EDGE indicating this is output to the color determination circuit 102. The color determination circuit 102 performs integration processing including the edge determination result EDGE for black detection.

図29に示すように、上記判定処理回路104は、強調切り換え回路400と、第3LUT420とを備えて構成されている。   As shown in FIG. 29, the determination processing circuit 104 includes an enhancement switching circuit 400 and a third LUT 420.

上記強調切り換え回路400は、注目画素P0(i,j)を中心とした5×5エリアにおいて、注目画素P0の強調処理の要否を判別する回路である。具体的には、強調切り換え回路400は、C,M,Yそれぞれに設けられた強調切り換え前処理回路411C,411M,411Yと、2個のAND回路407,409と、OR回路410とを備えて構成されている。   The emphasis switching circuit 400 is a circuit that determines whether or not the emphasis processing of the target pixel P0 is necessary in a 5 × 5 area centered on the target pixel P0 (i, j). Specifically, the emphasis switching circuit 400 includes emphasis switching pre-processing circuits 411C, 411M, and 411Y provided in C, M, and Y, two AND circuits 407 and 409, and an OR circuit 410, respectively. It is configured.

上記強調切り換え前処理回路411C,411M,411Yは、同一の構成を有するため、以下では強調切り換え前処理回路411Cを例として説明する。   Since the emphasis switching pre-processing circuits 411C, 411M, and 411Y have the same configuration, the emphasis switching pre-processing circuit 411C will be described below as an example.

上記強調切り換え前処理回路411Cは、4個の減算器401〜404と、加算器405と、2個の比較器406,408とを備えて構成されている。   The emphasis switching pre-processing circuit 411C includes four subtracters 401 to 404, an adder 405, and two comparators 406 and 408.

上記減算器401は、シアンのテーブル別の注目画素P0(i,j)を中心とした5×5エリアにおいて、注目画素P0と画素P(i−2,j−2)との絶対差分値を演算し、信号S401として加算器405へ出力する。同様に、減算器402,403,404は、注目画素P0と画素P(i+2,j−2)、注目画素P0と画素P(i+2,j+2)、注目画素P0と画素P(i−2,j+2)との差分絶対値をそれぞれ演算し、信号S402,S403,S404として加算器405へそれぞれ出力する。   The subtractor 401 calculates an absolute difference value between the pixel of interest P0 and the pixel P (i-2, j-2) in a 5 × 5 area centered on the pixel of interest P0 (i, j) for each cyan table. Calculate and output to the adder 405 as a signal S401. Similarly, the subtracters 402, 403, and 404 are the target pixel P0 and the pixel P (i + 2, j-2), the target pixel P0 and the pixel P (i + 2, j + 2), and the target pixel P0 and the pixel P (i-2, j + 2). ) And outputs the signals to the adder 405 as signals S402, S403, and S404, respectively.

上記加算器405は、減算器401〜404からの信号S401〜S404を入力として、これらの総和を演算し、信号S405として比較器406へ出力する。   The adder 405 receives the signals S401 to S404 from the subtractors 401 to 404, calculates the sum of these signals, and outputs the sum as a signal S405 to the comparator 406.

上記比較器406は、注目画素P0を中心とする差分絶対値の総和である信号S405を、閾値THETと比較し、信号S405が閾値THETよりも小さい場合には「1」を、それ以外の場合には「0」を、強調切り換え前処理回路411Cの結果である信号S406C(1ビット)としてAND回路407へ出力する。なお、閾値THETは、10から50の範囲の値が望ましく、最適値は15(以上すべて10進表記)である。   The comparator 406 compares the signal S405, which is the sum of the absolute difference values centered on the pixel of interest P0, with the threshold value THET. If the signal S405 is smaller than the threshold value THET, "1" is set otherwise. Is output to the AND circuit 407 as a signal S406C (1 bit) as a result of the emphasis switching pre-processing circuit 411C. Note that the threshold value THET is desirably a value in the range of 10 to 50, and the optimum value is 15 (all decimal values are described above).

また、上記比較器408は、注目画素P0を閾値である0と比較して、注目画素P0の方が小さい場合には「1」を、それ以外の場合には「0」を、強調切り換え前処理回路411Cの結果である信号S408C(1ビット)としてAND回路409へ出力する。   Further, the comparator 408 compares the target pixel P0 with 0 which is a threshold value. When the target pixel P0 is smaller, “1” is displayed, and “0” is displayed otherwise. The signal is output to the AND circuit 409 as a signal S408C (1 bit) as a result of the processing circuit 411C.

このように、C,M,Yごとに設けられた強調切り換え前処理回路411C,411M,411Yからは、それぞれ2つの信号が出力される。すなわち、信号S406C,S406M,S406Yが、AND回路407へ出力される。また、信号S408C,S408M,S408Yが、AND回路409へ出力される。   In this way, two signals are output from the emphasis switching pre-processing circuits 411C, 411M, and 411Y provided for C, M, and Y, respectively. That is, signals S406C, S406M, and S406Y are output to AND circuit 407. Also, signals S408C, S408M, and S408Y are output to AND circuit 409.

つづいて、上記AND回路407は、入力された信号S406C,S406M,S406Yの論理積を演算し、信号S407(1ビット)としてOR回路410へ出力する。   Subsequently, the AND circuit 407 calculates a logical product of the input signals S406C, S406M, and S406Y, and outputs the logical product to the OR circuit 410 as a signal S407 (1 bit).

一方、上記AND回路409は、入力された信号S408C,S408M,S408Yの論理積を演算し、信号S409(1ビット)としてOR回路410へ出力する。   On the other hand, the AND circuit 409 calculates the logical product of the input signals S408C, S408M, and S408Y, and outputs the logical product to the OR circuit 410 as a signal S409 (1 bit).

上記OR回路410は、AND回路407,409から入力された信号S407,S409の論理和を演算し、強調切り換え回路400の結果である強調切り換え信号S400として第3LUT420へ出力する。   The OR circuit 410 calculates the logical sum of the signals S407 and S409 input from the AND circuits 407 and 409, and outputs the logical sum to the third LUT 420 as the enhancement switching signal S400 that is the result of the enhancement switching circuit 400.

上記第3LUT420は、強調切り換え回路400からの強調切り換え信号S400と、エッジ判別回路103(図18)からのエッジ検出信号S134およびエッジ判別信号S136とを入力として、これらの組み合わせて応じた値(2ビットの「00」,「01」,「10」)を、RAMなどにあらかじめ設定記憶された数値表より抽出し、エッジ判別結果EDGEとして色判定回路102へ出力する。なお、エッジ判別結果EDGEは、「01」のとき「エッジ領域(強調処理が必要)」を意味し、「10」のとき「エッジ領域(強調処理は不要)」を意味し、「00」のとき「エッジ領域以外の領域」を意味する。   The third LUT 420 receives the emphasis switching signal S400 from the emphasis switching circuit 400, the edge detection signal S134 and the edge determination signal S136 from the edge discrimination circuit 103 (FIG. 18), and inputs a value (2 Bits “00”, “01”, and “10”) are extracted from a numerical table preliminarily set and stored in a RAM or the like and output to the color determination circuit 102 as an edge determination result EDGE. When the edge discrimination result EDGE is “01”, it means “edge region (emphasis processing is required)”, and when it is “10”, it means “edge region (emphasis processing is not required)” and “00”. Sometimes it means “an area other than an edge area”.

以上のように、本実施の形態にかかる画像処理装置は、原稿を走査して得られるC,M,Yそれぞれの多値画像データから、画像上における各画素が属している領域が黒文字領域であるか否かを判別する際に、判別を行おうとする注目画素と、注目画素の周囲に位置する複数の近傍画素とを含む特定領域内の全画像データに基づいて、注目画素が属している領域の特性を示す特徴量を抽出し、各特徴量に基づいて上記注目画素の属している領域の判別を行う。   As described above, in the image processing apparatus according to the present embodiment, the area to which each pixel on the image belongs is a black character area from the C, M, and Y multivalued image data obtained by scanning the document. When determining whether or not there is a target pixel, the target pixel belongs based on all image data in a specific area including the target pixel to be determined and a plurality of neighboring pixels located around the target pixel. A feature amount indicating the characteristics of the region is extracted, and the region to which the target pixel belongs is determined based on each feature amount.

これにより、上記画像処理装置は、CCDセンサ等により原稿を走査して得られたC,M,Yそれぞれの多値画像データに対し、注目画素と隣接した近傍画素からなる特定領域から特徴量を識別信号として出力し、その結果に基づいて画像上における上記注目画素が属している領域に最適な画像処理が可能となり、高画質化が達成できる。   As a result, the image processing apparatus obtains a feature amount from a specific area composed of neighboring pixels adjacent to the target pixel with respect to C, M, and Y multi-valued image data obtained by scanning a document with a CCD sensor or the like. Based on the result of the output as an identification signal, it is possible to perform optimal image processing for the region to which the pixel of interest belongs on the image, and high image quality can be achieved.

また、上記画像処理装置は、原稿を走査して得られるC,M,Yそれぞれの多値画像データから、画像上における各画素が黒か否かを判別する色判定回路を備えている。   The image processing apparatus includes a color determination circuit that determines whether each pixel on the image is black or not from multi-value image data of C, M, and Y obtained by scanning a document.

これにより、上記画像処理装置は、入力されたC,M,Yそれぞれの多値画像データに対し、色判定回路において画像上における注目画素が黒か否かを判別し、黒エリアとして最適な画像処理が可能となり、さらなる高画質化が達成できる。   As a result, the image processing apparatus determines whether or not the pixel of interest on the image is black in the color determination circuit with respect to the input multivalued image data of C, M, and Y, so that the optimum image as a black area Processing becomes possible, and higher image quality can be achieved.

また、上記画像処理装置は、原稿を走査して得られるC,M,Yそれぞれの多値画像データから、画像上における各画素が属する領域が黒文字エッジ領域(黒文字、黒線画等のエッジ部)に属するか否かを判別するエッジ判別回路を備えている。   In the image processing apparatus, from C, M, and Y multivalued image data obtained by scanning a document, an area to which each pixel on the image belongs is a black character edge region (an edge portion of a black character, a black line image, or the like). An edge discriminating circuit for discriminating whether it belongs to or not.

これにより、上記画像処理装置は、入力されたC,M,Yそれぞれの多値画像データに対し、エッジ判別回路において画像上における注目画素が黒文字エッジ領域に属するか否かを判別し、黒文字、黒線画等のエッジ部として最適な画像処理が可能となり、さらなる高画質化が達成できる。   Thus, the image processing apparatus determines whether or not the pixel of interest on the image belongs to the black character edge region in the edge determination circuit with respect to the input multivalued image data of C, M, and Y, and the black character, Optimum image processing is possible as an edge portion of a black line image or the like, and further image quality can be achieved.

また、上記画像処理装置は、上記色判定回路が、C,M,Y各画像データにおける注目画素を中心とした特定領域内において全画素中の濃度レベルの最大値、最小値および最大濃度差を求める各算出回路と、特定領域内の全画素中の濃度レベルの平均値を求める濃度平均値算出回路と、特定領域内の主走査方向に隣接する画素間の濃度レベル差の絶対値の総和と副走査方向に隣接する画素間の濃度レベル差の絶対値の総和との和を求める濃度差総和算出回路の結果より注目画素が属している領域の色特徴量を抽出する色特徴量抽出回路とを備え、色特徴量より色判定結果を求める。これにより、上記画像処理装置は、さらに黒色識別精度の向上が可能である。   Further, in the image processing apparatus, the color determination circuit determines the maximum value, the minimum value, and the maximum density difference of density levels in all pixels within a specific area centered on the target pixel in each of the C, M, and Y image data. Each calculation circuit to be calculated; a density average value calculation circuit for calculating an average value of density levels in all pixels in the specific area; and a sum of absolute values of density level differences between adjacent pixels in the main scanning direction in the specific area; A color feature amount extraction circuit for extracting a color feature amount of an area to which the pixel of interest belongs from a result of a density difference sum calculation circuit for obtaining a sum of absolute values of density level differences between adjacent pixels in the sub-scanning direction; The color determination result is obtained from the color feature amount. Thereby, the image processing apparatus can further improve the black discrimination accuracy.

また、上記画像処理装置は、上記色特徴量抽出回路より求められた結果に対し、所定の閾値で注目画素の色判別結果を出力する色検出回路を備えている。これにより、上記画像処理装置は、より一層高精度な黒色判定が可能である。   In addition, the image processing apparatus includes a color detection circuit that outputs a color discrimination result of the pixel of interest with a predetermined threshold with respect to the result obtained from the color feature amount extraction circuit. Thereby, the image processing apparatus can perform black determination with higher accuracy.

また、上記画像処理装置は、上記エッジ判別回路が、C,M,Y各画像データにおける特定領域内の各画素に対しフィルタをたたみ込むことによってエッジ検出を行うエッジ検出回路と、注目画素を中心とした一あるいは複数の特定領域内の全画素中の濃度レベルの最大値、最小値およびそれらの比較差分値を求める各算出回路と、特定領域内の全画素中の濃度レベルの平均値と各画像データとから標準偏差を求める標準偏差算出回路と、二値化回路により求められた閾値からエッジ判別結果を求めるエッジ判別回路を備えている。   Further, the image processing apparatus includes an edge detection circuit in which the edge determination circuit performs edge detection by convolving a filter with respect to each pixel in a specific area in each of the C, M, and Y image data, and the target pixel. Calculation circuits for obtaining the maximum value, minimum value and comparison difference value of density levels in all pixels in one or a plurality of specific areas, and the average value and each of density levels in all pixels in the specific area A standard deviation calculating circuit for obtaining a standard deviation from image data and an edge discriminating circuit for obtaining an edge discriminating result from a threshold obtained by a binarizing circuit are provided.

これにより、上記画像処理装置は、各算出結果および上記の色判定結果より、黒文字エッジ判別結果を求めることができる。それゆえ、高精度な黒文字エッジ部の抽出ができ、黒文字エッジエリアとして最適な画像処理が可能となり、さらなる高画質化が達成できる。   Accordingly, the image processing apparatus can obtain a black character edge discrimination result from each calculation result and the color determination result. Therefore, it is possible to extract a black character edge portion with high accuracy, and it is possible to perform an optimal image processing as a black character edge area, and it is possible to achieve further higher image quality.

また、上記画像処理装置は、上記二値化回路において、注目画素を中心とした1ないし複数の特定領域内の画素の値を所定の閾値で二値化し、主走査、副走査の各ラインごとに二値信号の反転回数を求める反転数算出回路を備えている。これにより、上記画像処理装置は、より一層高精度なエッジ部検出を行うことができる。   Further, the image processing apparatus binarizes the values of pixels in one or more specific regions centered on the pixel of interest with a predetermined threshold in the binarization circuit, and performs each main scanning and sub-scanning each line. Is provided with an inversion number calculating circuit for obtaining the inversion number of the binary signal. Thereby, the image processing apparatus can perform edge part detection with higher accuracy.

また、上記画像処理装置は、上記二値化回路において、二値化後の白画素数の最大値を求める最大白画素数算出回路と、二値化後の黒画素数の最大値を求める最大黒画素数算出回路とを備えている。これにより、上記画像処理装置は、エッジ部の誤認識を防ぐなど検出精度の向上を図ることが可能である。   In the binarization circuit, the image processing apparatus includes a maximum white pixel number calculation circuit that calculates a maximum value of the number of white pixels after binarization, and a maximum that calculates a maximum value of the number of black pixels after binarization. And a black pixel number calculation circuit. As a result, the image processing apparatus can improve detection accuracy such as preventing erroneous recognition of the edge portion.

〔実施の形態3〕
なお、前記の実施の形態1,2は本発明の範囲を限定するものではなく、本発明の範囲内で種々の変更が可能であり、例えば、以下のように構成することができる。
[Embodiment 3]
The first and second embodiments do not limit the scope of the present invention, and various modifications are possible within the scope of the present invention. For example, the first and second embodiments can be configured as follows.

本発明は、複数の機器(例えばホストコンピュータ,インタフェース機器,リーダ,プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機,ファクシミリ装置など)に適用してもよい。   The present invention can be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.) or an apparatus composed of a single device (for example, a copier, a facsimile machine, etc.). May be.

また、本発明の目的は、前述した実施の形態1,2の機能を実現するソフトウェアのプログラムコードをコンピュータで読み取り可能に記録した記録媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、達成可能である。この場合、記憶媒体から読出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。プログラムコードを供給するための記憶媒体としては、例えば、フロッピディスク,ハードディスク,磁気テープ,光ディスク,光磁気ディスク,CD−ROM,CD−R,MD,不揮発性のメモリカード,ROM,RAMなどを用いることができる。   Another object of the present invention is to supply a recording medium in which a program code of software that realizes the functions of the first and second embodiments described above is readable by a computer, to the system or apparatus, and the computer of the system or apparatus This can also be achieved by (or CPU or MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. As a storage medium for supplying the program code, for example, a floppy disk, hard disk, magnetic tape, optical disk, magneto-optical disk, CD-ROM, CD-R, MD, nonvolatile memory card, ROM, RAM, or the like is used. be able to.

また、コンピュータが読出したプログラムコードを実行することにより、前述した実施の形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOSなどが実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能1,2が実現される場合も含まれる。   Further, by executing the program code read out by the computer, not only the functions of the above-described embodiments are realized, but also the OS running on the computer based on the instruction of the program code performs the actual processing. In some cases, the functions 1 and 2 of the above-described embodiment are realized by performing part or all of the above.

さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施の形態1,2の機能が実現される場合も含まれる。   Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. This includes a case where the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the functions of the first and second embodiments described above are realized by the processing.

また、本発明の画像処理装置は、上記の課題を解決するために、色成分ごとの画像データ中の注目画素と、該注目画素の近傍の画素とからなる特定領域内の画素の濃度値について、該特定領域内の画素の濃度平均値と、該注目画素と該特定領域内で抽出された周辺画素との差分絶対値の総和である濃度差総和と、該注目画素と同じ濃度値を有する該周辺画素の数である濃度一致画素数とを求めることにより、該注目画素の濃度値が極大値あるいは極小値であるか否かを判定する極大・極小画素算出手段を備えていることを特徴としている。   Further, in order to solve the above-described problem, the image processing apparatus of the present invention relates to the density value of a pixel in a specific region including a target pixel in image data for each color component and a pixel in the vicinity of the target pixel. The density average value of the pixels in the specific area, the density difference sum that is the sum of absolute differences between the target pixel and the peripheral pixels extracted in the specific area, and the same density value as the target pixel It is provided with a maximum / minimum pixel calculation means for determining whether the density value of the target pixel is a maximum value or a minimum value by obtaining the number of density matching pixels which is the number of the peripheral pixels. It is said.

上記の構成により、極大・極小画素算出手段によって、入力された画像データに対し、注目画素と隣接した近傍画素とからなる特定領域から、濃度平均値、濃度差総和、濃度一致画素数を抽出して、注目画素の濃度値が極大値あるいは極小値であるか否かを判定することができる。   With the above configuration, the average / minimum pixel calculation means extracts the average density value, the total density difference, and the number of density matching pixels from the specified area consisting of the target pixel and neighboring pixels for the input image data. Thus, it can be determined whether or not the density value of the target pixel is a maximum value or a minimum value.

よって、画像上の注目画素が属している領域が文字領域、網点領域、写真領域の何れであるのかを、高精度に判別することができる。それゆえ、画像上における注目画素が属している領域に最適な画像処理が可能となり、高画質化を達成することができる。   Therefore, it is possible to determine with high accuracy whether the region to which the target pixel belongs in the image is a character region, a halftone dot region, or a photo region. Therefore, it is possible to perform image processing optimal for the region to which the target pixel belongs on the image, and achieve high image quality.

また、本発明の画像処理装置は、上記の課題を解決するために、上記の構成に加えて、上記極大・極小画素算出手段によって得られた、上記特定領域内で濃度値の極大値あるいは極小値を有する注目画素から、上記濃度平均値に基づく基準値以上あるいは基準値以下の濃度値を有する画素が、主走査方向あるいは副走査方向に連続する画素数の最大値であるランレングスと、該ランレングスをなす各画素と該注目画素との差分絶対値の総和である繁雑度とを算出する極大・極小画素周辺情報検出手段を備えていてもよい。   Further, in order to solve the above problems, the image processing apparatus of the present invention provides a maximum value or a minimum value of the density value within the specific region obtained by the maximum / minimum pixel calculation means in addition to the above configuration. A run length in which a pixel having a density value equal to or higher than the reference value based on the average density value or lower than the reference value from the target pixel having a value is a maximum value of the number of pixels that are continuous in the main scanning direction or the sub-scanning direction; There may be provided local maximum / minimum pixel peripheral information detection means for calculating a degree of complexity that is a sum of absolute differences between each pixel having a run length and the target pixel.

上記の構成により、極大・極小画素周辺情報検出手段によって、各色成分ごとの画像データの極大・極小画素に基づいて、ランレングスおよび繁雑度を抽出することができる。   With the above configuration, the run length and the degree of complexity can be extracted by the local maximum / minimum pixel peripheral information detection unit based on the local maximum / minimum pixel of the image data for each color component.

よって、画像上の注目画素が属している領域が網点領域であるのか、連続した点や線などの網点以外の領域であるのかを、高精度に判別することができる。それゆえ、画像上における注目画素が属している領域に最適な画像処理が可能となり、さらに高画質化を達成することができる。   Therefore, it can be determined with high accuracy whether the region to which the target pixel belongs in the image is a halftone dot region or a region other than a halftone dot such as a continuous dot or line. Therefore, it is possible to perform optimal image processing for the region to which the target pixel belongs on the image, and to achieve higher image quality.

また、本発明の画像処理装置は、上記の課題を解決するために、上記の構成に加えて、上記の極大・極小画素算出手段および極大・極小画素周辺情報検出手段によって得られた、上記特定領域内で濃度値の極大値あるいは極小値を有する注目画素のランレングスおよび繁雑度に基づいて、各色成分ごとに画素重み切換信号を抽出する画素重み切換信号算出手段と、該画素重み切換信号に基づく基準値以上あるいは基準値以下の画素を所定の算出エリア内でカウントすることにより、画像データの網点の周期性を検出する周期性算出手段とを備えていてもよい。   Further, in order to solve the above problems, the image processing apparatus of the present invention, in addition to the above-described configuration, includes the above-mentioned specific information obtained by the above-mentioned maximum / minimum pixel calculation means and maximum / minimum pixel peripheral information detection means. A pixel weight switching signal calculating means for extracting a pixel weight switching signal for each color component based on the run length and the complexity of the pixel of interest having a maximum or minimum density value in the region; Periodicity calculation means for detecting the periodicity of the halftone dots of the image data by counting pixels in the predetermined calculation area that are equal to or greater than the reference value based on the reference value may be provided.

上記の構成により、画素重み切換信号算出手段によって、ランレングスおよび繁雑度から、各色成分の画像データごとに、画素重み切換信号を抽出し、重みの割合をある領域内でカウントすることによって、画像データの特徴量を抽出し、文字、網点、写真領域を判別することができる。さらに、周期性算出手段によって、画素重み切換信号の各色成分の画像データごとの周期性を抽出することができる。   With the above configuration, the pixel weight switching signal calculation means extracts the pixel weight switching signal for each image data of each color component from the run length and the complexity, and counts the weight ratio within a certain area, thereby obtaining an image. The feature amount of the data can be extracted, and characters, halftone dots, and photo areas can be discriminated. Furthermore, the periodicity calculation means can extract the periodicity for each image data of each color component of the pixel weight switching signal.

よって、画像上の注目画素が属している領域が網点領域であるのかを、高精度に判別することができる。それゆえ、画像上における注目画素が属している領域に最適な画像処理が可能となり、さらに高画質化を達成することができる。   Therefore, it can be determined with high accuracy whether the region to which the pixel of interest belongs in the image is a halftone dot region. Therefore, it is possible to perform optimal image processing for the region to which the target pixel belongs on the image, and to achieve higher image quality.

また、本発明の画像処理方法は、上記の課題を解決するために、色成分ごとの画像データ中の注目画素と、該注目画素の近傍の画素とからなる特定領域内の画素の濃度値について、該特定領域内の画素の濃度平均値と、該注目画素と該特定領域内で抽出された周辺画素との差分絶対値の総和である濃度差総和と、該注目画素と同じ濃度値を有する該周辺画素の数である濃度一致画素数とを求めることにより、該注目画素の濃度値が極大値あるいは極小値であるか否かを判定する極大・極小画素算出工程と、上記極大・極小画素算出工程によって得られた、上記特定領域内で濃度値の極大値あるいは極小値を有する注目画素から、上記濃度平均値に基づく基準値以上あるいは基準値以下の濃度値を有する画素が、主走査方向あるいは副走査方向に連続する画素数の最大値であるランレングスと、該ランレングスをなす各画素と該注目画素との差分絶対値の総和である繁雑度とを算出する極大・極小画素周辺情報検出工程と、上記の極大・極小画素算出工程および極大・極小画素周辺情報検出工程によって得られた、上記特定領域内で濃度値の極大値あるいは極小値を有する注目画素のランレングスおよび繁雑度に基づいて、各色成分ごとに画素重み切換信号を抽出するとともに、該画素重み切換信号に基づく基準値以上あるいは基準値以下の画素を所定の算出エリア内でカウントすることにより、画像データの網点の周期性を検出する周期性算出工程とを有することを特徴としている。   Further, in order to solve the above-described problem, the image processing method of the present invention relates to the density value of a pixel in a specific area including a target pixel in image data for each color component and a pixel in the vicinity of the target pixel. The density average value of the pixels in the specific area, the density difference sum that is the sum of absolute differences between the target pixel and the peripheral pixels extracted in the specific area, and the same density value as the target pixel A maximum / minimum pixel calculating step for determining whether or not the density value of the target pixel is a maximum value or a minimum value by obtaining a density matching pixel number that is the number of the peripheral pixels, and the maximum / minimum pixel From the target pixel having the maximum value or the minimum value of the density value in the specific region obtained by the calculation step, a pixel having a density value greater than or less than the reference value based on the average density value is changed in the main scanning direction. Or sub-scanning direction Maximum / minimum pixel peripheral information detection step for calculating the run length that is the maximum value of the number of consecutive pixels, and the degree of complexity that is the sum of absolute differences between each pixel that forms the run length and the target pixel, and Each color component based on the run length and complexity of the pixel of interest having a maximum or minimum density value in the specific area obtained by the local maximum / minimum pixel calculation step and the local maximum / minimum pixel peripheral information detection step The pixel weight switching signal is extracted for each pixel, and the periodicity of the halftone dots of the image data is detected by counting pixels that are greater than or less than the reference value based on the pixel weight switching signal within a predetermined calculation area. And a periodicity calculating step.

上記の構成により、極大・極小画素算出工程において、入力された画像データに対し、注目画素と隣接した近傍画素とからなる特定領域から、濃度平均値、濃度差総和、濃度一致画素数を抽出して、注目画素の濃度値が極大値あるいは極小値であるか否かを判定することができる。極大・極小画素周辺情報検出工程において、各色成分ごとの画像データの極大・極小画素に基づいて、ランレングスおよび繁雑度を抽出することができる。画素重み切換信号算出工程において、ランレングスおよび繁雑度から、各色成分の画像データごとに、画素重み切換信号を抽出し、重みの割合をある領域内でカウントすることによって、画像データの特徴量を抽出し、文字、網点、写真領域を判別することができる。さらに、周期性算出工程において、画素重み切換信号の各色成分の画像データごとの周期性を抽出することができる。   With the above configuration, in the maximum / minimum pixel calculation process, for the input image data, the density average value, the density difference sum, and the number of density matching pixels are extracted from the specific area consisting of the target pixel and neighboring pixels adjacent to it. Thus, it can be determined whether or not the density value of the target pixel is a maximum value or a minimum value. In the local maximum / minimum pixel peripheral information detection step, the run length and the degree of complexity can be extracted based on the local maximum / minimum pixels of the image data for each color component. In the pixel weight switching signal calculation step, the pixel weight switching signal is extracted for each image data of each color component from the run length and the degree of complexity, and the weight ratio is counted within a certain area, thereby calculating the feature amount of the image data. Extraction can be performed to distinguish characters, halftone dots, and photo areas. Furthermore, in the periodicity calculation step, the periodicity for each image data of each color component of the pixel weight switching signal can be extracted.

よって、画像上の注目画素が属している領域が文字領域、網点領域、写真領域の何れであるのかを、高精度に判別することができる。それゆえ、画像上における注目画素が属している領域に最適な画像処理が可能となり、高画質化を達成することができる。また、画像領域の判別に利用するパラメー夕を画像データに応じて選択することができるため、様々な画像データに対して効率よく高速に文字、網点、写真領域を判別することができる。   Therefore, it is possible to determine with high accuracy whether the region to which the target pixel belongs in the image is a character region, a halftone dot region, or a photo region. Therefore, it is possible to perform image processing optimal for the region to which the target pixel belongs on the image, and achieve high image quality. In addition, since the parameters used for discriminating the image area can be selected according to the image data, it is possible to discriminate characters, halftone dots, and photographic areas efficiently and quickly from various image data.

図6に示す画像処理装置に備えられる第一画像領域判別回路の構成の概略を示すブロック図である。FIG. 7 is a block diagram illustrating an outline of a configuration of a first image region determination circuit provided in the image processing apparatus illustrated in FIG. 6. 図1に示す第一画像領域判別回路の第一検査回路の構成の概略を示すブロック図であり、図2(a),(b),(c)はそれぞれシアン,マゼンタ,イエローに対応する。FIG. 2 is a block diagram showing an outline of a configuration of a first inspection circuit of the first image region discrimination circuit shown in FIG. 1, and FIGS. 2A, 2B, and 2C correspond to cyan, magenta, and yellow, respectively. 図1に示す第一画像領域判別回路の第二検査回路の構成の概略を示すブロック図であり、図3(a),(b),(c)はそれぞれシアン,マゼンタ,イエローに対応する。FIG. 3 is a block diagram showing an outline of a configuration of a second inspection circuit of the first image area discrimination circuit shown in FIG. 1, and FIGS. 3A, 3B, and 3C correspond to cyan, magenta, and yellow, respectively. 図1に示す第一画像領域判別回路の特徴量抽出回路の構成の概略を示すブロック図である。FIG. 2 is a block diagram illustrating an outline of a configuration of a feature amount extraction circuit of the first image region determination circuit illustrated in FIG. 1. 図1に示す第一画像領域判別回路の補正回路の構成の概略を示すブロック図である。FIG. 2 is a block diagram showing an outline of a configuration of a correction circuit of the first image region discrimination circuit shown in FIG. 1. 本発明の実施の形態にかかる画像処理装置の構成の概略を示すブロック図である。It is a block diagram which shows the outline of a structure of the image processing apparatus concerning embodiment of this invention. 図1に示す第一画像領域判別回路で用いられる特定領域範囲を示す説明図である。It is explanatory drawing which shows the specific area range used with the 1st image area discrimination circuit shown in FIG. 図1に示す第一画像領域判別回路で行われる極大・極小画素検出に用いられるマトリクスであり、(a)は3×3マトリクス、(b)は5×5マトリクスを示す説明図である。FIG. 4 is a matrix used for maximum / minimum pixel detection performed by the first image region discrimination circuit shown in FIG. 1, wherein (a) is a 3 × 3 matrix, and (b) is an explanatory diagram showing a 5 × 5 matrix. 図9(a)から(g)は、図1に示す第一画像領域判別回路で行われるランレングス検出における主・副走査方向のランレングスの長さおよび方向を示す説明図である。FIGS. 9A to 9G are explanatory views showing the lengths and directions of run lengths in the main and sub-scanning directions in the run length detection performed by the first image region discrimination circuit shown in FIG. 図1に示す第一画像領域判別回路で行われる重み割合設定におけるプレーンごとの画素重み振り分けを示す説明図である。It is explanatory drawing which shows pixel weight distribution for every plane in the weight ratio setting performed by the 1st image area discrimination circuit shown in FIG. 図1に示す第一画像領域判別回路で用いられる特徴量の算出エリアを示す説明図である。It is explanatory drawing which shows the calculation area of the feature-value used with the 1st image area discrimination circuit shown in FIG. 図1に示す第一画像領域判別回路で行われる周期性検出に用いられる算出エリアを示す説明図である。It is explanatory drawing which shows the calculation area used for the periodicity detection performed with the 1st image area discrimination circuit shown in FIG. 図13(a)および(b)は、図1に示す第一画像領域判別回路で行われる他の周期性検出に用いられる算出エリアを示す説明図である。FIGS. 13A and 13B are explanatory diagrams showing calculation areas used for other periodicity detection performed by the first image region discrimination circuit shown in FIG. 図1に示す第一画像領域判別回路で行われる周期性検出に用いられるパラメータRJの算出方法を示す説明図である。It is explanatory drawing which shows the calculation method of parameter RJ used for the periodicity detection performed with the 1st image area discrimination circuit shown in FIG. 図15(a)および(b)は、図1に示す第一画像領域判別回路で行われる周期性検出に用いられるパラメータRJの算出エリアを示す説明図である。FIGS. 15A and 15B are explanatory diagrams showing calculation areas of the parameter RJ used for periodicity detection performed by the first image region discrimination circuit shown in FIG. 図16(a)から(c)は、図1に示す第一画像領域判別回路で行われる網点ブロック補正に用いられる特徴量の算出エリアを示す説明図である。FIGS. 16A to 16C are explanatory diagrams showing calculation areas of feature amounts used for halftone dot block correction performed by the first image area discrimination circuit shown in FIG. 図17(a)から(c)は、図1に示す第一画像領域判別回路で行われる網点ブロック補正に用いられる特徴量の他の算出エリアを示す説明図である。FIGS. 17A to 17C are explanatory views showing other calculation areas of feature amounts used for the halftone block correction performed by the first image region discrimination circuit shown in FIG. 図6に示す画像処理装置に備えられる第二画像領域判別回路の構成の概略を示すブロック図である。FIG. 7 is a block diagram illustrating an outline of a configuration of a second image region determination circuit provided in the image processing apparatus illustrated in FIG. 6. 図18に示す第二画像領域判別回路の色判定回路の構成の概略を示すブロック図である。It is a block diagram which shows the outline of a structure of the color determination circuit of the 2nd image area determination circuit shown in FIG. 図19に示す色判定回路の第一色検出回路の構成の概略を示すブロック図である。It is a block diagram which shows the outline of a structure of the 1st color detection circuit of the color determination circuit shown in FIG. 図19に示す色判定回路の第二色検出回路の構成の概略を示すブロック図である。It is a block diagram which shows the outline of a structure of the 2nd color detection circuit of the color determination circuit shown in FIG. 図19に示す色判定回路の黒色検出回路の構成の概略を示すブロック図である。It is a block diagram which shows the outline of a structure of the black detection circuit of the color determination circuit shown in FIG. 図18に示す第二画像領域判別回路のエッジ判別回路の構成の概略を示すブロック図である。It is a block diagram which shows the outline of a structure of the edge discrimination circuit of the 2nd image area discrimination circuit shown in FIG. 図23に示すエッジ判別回路の第一エッジ検出回路および第一LUTの構成の概略を示すブロック図である。FIG. 24 is a block diagram showing an outline of a configuration of a first edge detection circuit and a first LUT of the edge determination circuit shown in FIG. 23. 図23に示すエッジ判別回路の第二エッジ検出回路の構成の概略を示すブロック図である。FIG. 24 is a block diagram illustrating an outline of a configuration of a second edge detection circuit of the edge determination circuit illustrated in FIG. 23. 図23に示すエッジ判別回路のエッジ特徴量抽出回路の構成の概略を示すブロック図である。FIG. 24 is a block diagram showing an outline of a configuration of an edge feature quantity extraction circuit of the edge determination circuit shown in FIG. 23. 図26に示すエッジ特徴量抽出回路のエッジ判定回路に設けられる選択回路の構成の概略を示すブロック図である。FIG. 27 is a block diagram showing an outline of a configuration of a selection circuit provided in an edge determination circuit of the edge feature quantity extraction circuit shown in FIG. 26. 図23に示すエッジ判別回路の第一エッジ閾値選択回路および第二エッジ閾値選択回路の構成の概略を示すブロック図である。FIG. 24 is a block diagram showing an outline of a configuration of a first edge threshold selection circuit and a second edge threshold selection circuit of the edge determination circuit shown in FIG. 23. 図18に示す第二画像領域判別回路の判定処理回路の構成の概略を示すブロック図である。It is a block diagram which shows the outline of a structure of the determination process circuit of the 2nd image area discrimination circuit shown in FIG. (a)は図25に示す第二エッジ検出回路の処理範囲である十字型領域の説明図であり、(b)は図24に示す第一エッジ検出回路におけるマスクフィルタのたたみ込みを示す説明図である。(A) is explanatory drawing of the cross-shaped area | region which is a processing range of the 2nd edge detection circuit shown in FIG. 25, (b) is explanatory drawing which shows convolution of the mask filter in the 1st edge detection circuit shown in FIG. It is. (a)は図24に示す第一エッジ検出回路で用いられるマスクフィルタの説明図であり、(b)は図25に示す第二エッジ検出回路の処理範囲である十字型領域の説明図である。(A) is explanatory drawing of the mask filter used by the 1st edge detection circuit shown in FIG. 24, (b) is explanatory drawing of the cross-shaped area | region which is a process range of the 2nd edge detection circuit shown in FIG. . 図24に示す第一エッジ検出回路で用いられるマスクフィルタのフィルタ係数の例であり、(a)〜(d)は、それぞれ0°方向,45°方向,90°方向,135°方向のエッジ検出のためのマスクフィルタである。25 is an example of filter coefficients of a mask filter used in the first edge detection circuit shown in FIG. 24, and (a) to (d) are edge detections in 0 ° direction, 45 ° direction, 90 ° direction, and 135 ° direction, respectively. It is a mask filter for.

符号の説明Explanation of symbols

12(12C,12M,12Y) 極大・極小画素算出回路
(極大・極小画素算出手段、極大・極小画素算出工程)
13(13C,13M,13Y) 極大・極小画素周辺情報検出回路
(極大・極小画素周辺情報検出手段、極大・極小画素周辺情報検出工程)
21(21C,21M,21Y)
画素重み切換信号算出回路(画素重み切換信号算出手段)
23(23C,23M,23Y)
第一周期性検出回路(周期性算出手段、周期性算出工程)
24(24C,24M,24Y)
第二周期性検出回路(周期性算出手段、周期性算出工程)
AVE(AVEC,AVEM,AVEY) 濃度平均値
C0〜C15,D0〜D3,E0〜E2 エリア(算出エリア)
EQ(EQC,EQM,EQY) 濃度一致画素数
P,P0 注目画素
Pij 周辺画素
PBUSY(PBUSYC,PBUSYM,PBUSYY) 繁雑度
PRUN(PRUNC,PRUNM,PRUNY) ランレングス
PS(PSC,PSM,PSY) 濃度差総和
WS(WSC,WSM,WSY) 画素重み切換信号
103 エッジ判別回路(エッジ判別手段、エッジ判別工程)
121 色特徴量抽出回路(色特徴量抽出手段)
121a 最大値算出回路(最大値算出手段)
121b 最小値算出回路(最小値算出手段)
121c 最大濃度差算出回路(最大濃度差算出手段)
121d 濃度平均値算出回路(濃度平均値算出手段)
121e 濃度差総和算出回路(濃度差総和算出手段)
122 色検出回路(色検出手段、色検出工程)
123 カウント回路(カウント手段、カウント工程)
124 黒色検出回路(黒色検出手段、黒色検出工程)
132C,132M,132Y
第一エッジ閾値選択回路(エッジ閾値選択手段)
135 第二エッジ閾値選択回路(エッジ閾値選択手段)
136 エッジ特徴量抽出回路(エッジ特徴量抽出手段)
S135 主エッジ閾値選択信号
S136 エッジ判別信号
A1 第一エリア
A2 第二エリア
C,M,Y 画像データ
MF マスクフィルタ
12 (12C, 12M, 12Y) Maximum / minimum pixel calculation circuit
(Maximum / minimum pixel calculation means, maximum / minimum pixel calculation process)
13 (13C, 13M, 13Y) Maximum / minimum pixel peripheral information detection circuit (maximum / minimum pixel peripheral information detection means, maximum / minimum pixel peripheral information detection step)
21 (21C, 21M, 21Y)
Pixel weight switching signal calculation circuit (pixel weight switching signal calculation means)
23 (23C, 23M, 23Y)
First periodicity detection circuit (periodicity calculating means, periodicity calculating step)
24 (24C, 24M, 24Y)
Second periodicity detection circuit (periodicity calculating means, periodicity calculating step)
AVE (AVEC, AVEM, AVEY) density average values C0 to C15, D0 to D3, E0 to E2 area (calculation area)
EQ (EQC, EQM, EQY) Number of density matching pixels P, P0 Pixel of interest Pij Peripheral pixel PBUSY (PBUSYC, PBUSYM, PBUSYY) Congestion level PRUN (PRUNC, PRUNM, PRUNY) Run length PS (PSC, PSM, PSY) Density difference Total WS (WSC, WSM, WSY) Pixel weight switching signal 103 Edge discrimination circuit (edge discrimination means, edge discrimination step)
121 color feature quantity extraction circuit (color feature quantity extraction means)
121a Maximum value calculation circuit (maximum value calculation means)
121b Minimum value calculation circuit (minimum value calculation means)
121c Maximum density difference calculation circuit (maximum density difference calculation means)
121d Density average value calculation circuit (density average value calculation means)
121e Density difference sum calculation circuit (density difference sum calculation means)
122 color detection circuit (color detection means, color detection process)
123 Count circuit (counting means, counting process)
124 Black detection circuit (black detection means, black detection step)
132C, 132M, 132Y
First edge threshold selection circuit (edge threshold selection means)
135 Second edge threshold selection circuit (edge threshold selection means)
136 Edge feature extraction circuit (edge feature extraction means)
S135 Main edge threshold selection signal S136 Edge discrimination signal A1 First area A2 Second area C, M, Y Image data MF Mask filter

Claims (8)

色成分ごとの画像データ中の注目画素と、該注目画素の近傍の画素とからなる第一エリア内の画素について、黒色の部分を検出する色検出手段と、
該第一エリア内の画素について、黒色および黒色以外の色の画素数をそれぞれカウントするカウント手段と、
該注目画素で色が急激に変化するか否かを検出するエッジ判別手段とを備えるとともに、
これら色検出手段、カウント手段、およびエッジ判別手段の出力結果に基づいて、該注目画素が黒文字領域と線画領域との何れに属しているかを検出する黒色検出手段を備えており、
上記エッジ判別手段は、
上記第一エリアを包含する第二エリア内の画素を濃度レベルの所定の閾値によって二値化し、二値化された画素の主走査方向および副走査方向のラインごとの反転回数に基づいて、主エッジ閾値選択信号を生成するエッジ閾値選択手段と、
該第一エリアおよび第二エリアについて、包含される画素の濃度レベルの最大値、最小値、最大濃度差を求めるとともに、該第一エリアの画素の濃度レベルの標準偏差を求め、これらの結果と該主エッジ閾値選択信号とに基づいて、上記注目画素が文字領域であるか非文字領域であるかを示すエッジ判別信号を生成するエッジ特徴量抽出手段とを備えていることを特徴とする画像処理装置。
Color detection means for detecting a black portion of a pixel in a first area composed of a target pixel in image data for each color component and a pixel in the vicinity of the target pixel;
Counting means for counting the number of pixels of black and a color other than black for the pixels in the first area,
Edge discriminating means for detecting whether or not the color changes rapidly at the target pixel, and
Based on the output results of these color detection means, counting means, and edge determination means, it is provided with black detection means for detecting whether the target pixel belongs to a black character area or a line drawing area ,
The edge discrimination means is
The pixels in the second area including the first area are binarized by a predetermined threshold of density level, and the main pixels are binned based on the number of inversions for each line in the main scanning direction and the sub scanning direction. Edge threshold selection means for generating an edge threshold selection signal;
For the first area and the second area, the maximum value, the minimum value, and the maximum density difference of the density levels of the included pixels are obtained, and the standard deviation of the density level of the pixels in the first area is obtained. An image comprising: an edge feature amount extraction unit that generates an edge determination signal indicating whether the pixel of interest is a character region or a non-character region based on the main edge threshold selection signal. Processing equipment.
上記第一エリア内の画像データに基づいて、該第一エリアの特性を示す特徴量を抽出する色特徴量抽出手段を備えるとともに、
該色特徴量抽出手段の出力結果に基づいて、上記の色検出手段およびカウント手段が処理を行うことを特徴とする請求項1記載の画像処理装置。
Based on the image data in the first area, provided with a color feature amount extraction means for extracting a feature amount indicating the characteristics of the first area,
The image processing apparatus according to claim 1, wherein the color detection unit and the counting unit perform processing based on an output result of the color feature amount extraction unit.
上記色特徴量抽出手段は、上記第一エリア内の画素の濃度レベルについて、最大値を求める最大値算出手段と、最小値を求める最小値算出手段と、最大濃度差を求める最大濃度差算出手段と、平均値を求める濃度平均値算出手段と、主走査方向に隣接する画素間の濃度レベル差の絶対値の総和と副走査方向に隣接する画素間の濃度レベル差の絶対値の総和との和を求める濃度差総和算出手段とを備えていることを特徴とする請求項2記載の画像処理装置。   The color feature amount extraction means includes a maximum value calculation means for obtaining a maximum value, a minimum value calculation means for obtaining a minimum value, and a maximum density difference calculation means for obtaining a maximum density difference for the density levels of the pixels in the first area. A density average value calculating means for obtaining an average value, and a sum of absolute values of density level differences between pixels adjacent in the main scanning direction and a sum of absolute values of density level differences between pixels adjacent in the sub-scanning direction. 3. The image processing apparatus according to claim 2, further comprising density difference sum total calculating means for obtaining a sum. 上記エッジ判別手段は、上記第一エリア内の画素に対して、エッジ抽出のためのマスクフィルタをたたみ込むことによって、上記注目画素のエッジ検出を行うエッジ検出手段を備えていることを特徴とする請求項3記載の画像処理装置。   The edge determination means includes edge detection means for performing edge detection of the pixel of interest by convolving a mask filter for edge extraction with respect to the pixels in the first area. The image processing apparatus according to claim 3. 色成分ごとの画像データ中の注目画素で色が急激に変化するか否かを検出するエッジ判別手段を備えた画像処理装置であって、An image processing apparatus including an edge determination unit that detects whether or not a color changes rapidly at a target pixel in image data for each color component,
上記エッジ判別手段は、The edge discrimination means is
上記第一エリアを包含する第二エリア内の画素を濃度レベルの所定の閾値によって二値化し、二値化された画素の主走査方向および副走査方向のラインごとの反転回数に基づいて、主エッジ閾値選択信号を生成するエッジ閾値選択手段と、The pixels in the second area including the first area are binarized by a predetermined threshold of density level, and the main pixels are binned based on the number of inversions for each line in the main scanning direction and the sub scanning direction. Edge threshold selection means for generating an edge threshold selection signal;
該第一エリアおよび第二エリアについて、包含される画素の濃度レベルの最大値、最小値、最大濃度差を求めるとともに、該第一エリアの画素の濃度レベルの標準偏差を求め、これらの結果と該主エッジ閾値選択信号とに基づいて、上記注目画素が文字領域であるか非文字領域であるかを示すエッジ判別信号を生成するエッジ特徴量抽出手段とを備えていることを特徴とする画像処理装置。For the first area and the second area, the maximum value, the minimum value, and the maximum density difference of the density levels of the included pixels are obtained, and the standard deviation of the density level of the pixels in the first area is obtained. An image comprising: an edge feature amount extraction unit that generates an edge determination signal indicating whether the pixel of interest is a character region or a non-character region based on the main edge threshold selection signal. Processing equipment.
上記エッジ判別手段は、上記第一エリア内の画素に対して、エッジ抽出のためのマスクフィルタをたたみ込むことによって、上記注目画素のエッジ検出を行うエッジ検出手段を備えていることを特徴とする請求項5に記載の画像処理装置。The edge determination means includes edge detection means for performing edge detection of the pixel of interest by convolving a mask filter for edge extraction with respect to the pixels in the first area. The image processing apparatus according to claim 5. 色成分ごとの画像データ中の注目画素と、該注目画素の近傍の画素とからなる第一エリア内の画素について、黒色の部分を検出する色検出工程と、
該第一エリア内の画素について、黒色および黒色以外の色の画素数をそれぞれカウントするカウント工程と、
該注目画素で色が急激に変化するか否かを検出するエッジ判別工程とを有するとともに、
上記の色検出工程、カウント工程、およびエッジ判別工程の出力結果に基づいて、上記注目画素が黒文字領域と線画領域との何れに属しているかを検出する黒色検出工程を有し、
上記エッジ判別工程は、
上記第一エリアを包含する第二エリア内の画素を濃度レベルの所定の閾値によって二値化し、二値化された画素の主走査方向および副走査方向のラインごとの反転回数に基づいて、主エッジ閾値選択信号を生成するエッジ閾値選択工程と、
該第一エリアおよび第二エリアについて、包含される画素の濃度レベルの最大値、最小値、最大濃度差を求めるとともに、該第一エリアの画素の濃度レベルの標準偏差を求め、これらの結果と該主エッジ閾値選択信号とに基づいて、上記注目画素が文字領域であるか非文字領域であるかを示すエッジ判別信号を生成するエッジ特徴量抽出工程とを有することを特徴とする画像処理方法。
A color detection step of detecting a black portion of a pixel in a first area including a target pixel in image data for each color component and a pixel in the vicinity of the target pixel;
For the pixels in the first area, a counting step of counting the number of pixels of black and a color other than black,
An edge determination step for detecting whether or not the color changes rapidly at the target pixel,
Based on the output results of the color detection step, the counting step, and the edge determination step, the black detection step of detecting whether the pixel of interest belongs to a black character region or a line drawing region,
The edge discrimination step is
The pixels in the second area including the first area are binarized by a predetermined threshold of density level, and the main pixels are binned based on the number of inversions for each line in the main scanning direction and the sub scanning direction. An edge threshold selection step for generating an edge threshold selection signal;
For the first area and the second area, the maximum value, the minimum value, and the maximum density difference of the density levels of the included pixels are obtained, and the standard deviation of the density level of the pixels in the first area is obtained. An image processing method comprising: an edge feature amount extraction step of generating an edge determination signal indicating whether the pixel of interest is a character region or a non-character region based on the main edge threshold selection signal .
色成分ごとの画像データ中の注目画素で色が急激に変化するか否かを検出するエッジ判別工程を有する画像処理方法であって、An image processing method including an edge determination step for detecting whether or not a color changes rapidly at a target pixel in image data for each color component,
上記エッジ判別方法は、The edge discrimination method is as follows:
上記第一エリアを包含する第二エリア内の画素を濃度レベルの所定の閾値によって二値化し、二値化された画素の主走査方向および副走査方向のラインごとの反転回数に基づいて、主エッジ閾値選択信号を生成するエッジ閾値選択工程と、The pixels in the second area including the first area are binarized by a predetermined threshold of density level, and the main pixels are binned based on the number of inversions for each line in the main scanning direction and the sub scanning direction. An edge threshold selection step for generating an edge threshold selection signal;
該第一エリアおよび第二エリアについて、包含される画素の濃度レベルの最大値、最小値、最大濃度差を求めるとともに、該第一エリアの画素の濃度レベルの標準偏差を求め、これらの結果と該主エッジ閾値選択信号とに基づいて、上記注目画素が文字領域であるか非文字領域であるかを示すエッジ判別信号を生成するエッジ特徴量抽出工程とを有することを特徴とする画像処理方法。For the first area and the second area, the maximum value, the minimum value, and the maximum density difference of the density levels of the included pixels are obtained, and the standard deviation of the density level of the pixels in the first area is obtained. An image processing method comprising: an edge feature amount extraction step of generating an edge determination signal indicating whether the pixel of interest is a character region or a non-character region based on the main edge threshold selection signal .
JP2003374847A 2003-11-04 2003-11-04 Image processing apparatus and image processing method Expired - Fee Related JP3880958B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003374847A JP3880958B2 (en) 2003-11-04 2003-11-04 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003374847A JP3880958B2 (en) 2003-11-04 2003-11-04 Image processing apparatus and image processing method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP28705398A Division JP3558893B2 (en) 1998-10-08 1998-10-08 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2004048814A JP2004048814A (en) 2004-02-12
JP3880958B2 true JP3880958B2 (en) 2007-02-14

Family

ID=31712944

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003374847A Expired - Fee Related JP3880958B2 (en) 2003-11-04 2003-11-04 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP3880958B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007158844A (en) * 2005-12-06 2007-06-21 Ricoh Co Ltd Image processor
US8280157B2 (en) * 2007-02-27 2012-10-02 Sharp Laboratories Of America, Inc. Methods and systems for refining text detection in a digital image

Also Published As

Publication number Publication date
JP2004048814A (en) 2004-02-12

Similar Documents

Publication Publication Date Title
JP3558893B2 (en) Image processing apparatus and image processing method
JP3207690B2 (en) Image processing device
JPH05227425A (en) Improvement in automatic image segmentation
JPH05252388A (en) Noise removing device
JPH1084475A (en) Image area discrimination method and image-processing unit
EP0902585B1 (en) Method and apparatus for image processing
US6272249B1 (en) Image processing device
JP3880958B2 (en) Image processing apparatus and image processing method
JPH10294862A (en) Image processor
JPH03276966A (en) Dot area separator
JPH0654180A (en) Method and device for image area separation
JPH0818785A (en) Image output device
JP4007134B2 (en) Image processing device
JPH06284281A (en) Picture processor
JPS6359272A (en) Picture processor
JP3183787B2 (en) Halftone area determination device
JPH11136505A (en) Picture processor and picture processing method
JP3216963B2 (en) Halftone area determination device
JP4324532B2 (en) Image processing apparatus and storage medium
JPH08251403A (en) Device for discriminating attribute of image area
JP3245586B2 (en) Pole pixel detection device
JPH05292312A (en) Dot area separator
JPH03153167A (en) Character area separation system
JP3434374B2 (en) Image forming device
JP3136650B2 (en) Image processing device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060523

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060721

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060721

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061108

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20091117

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20101117

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111117

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111117

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121117

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121117

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20131117

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees