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

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

Info

Publication number
JP2007329662A
JP2007329662A JP2006158611A JP2006158611A JP2007329662A JP 2007329662 A JP2007329662 A JP 2007329662A JP 2006158611 A JP2006158611 A JP 2006158611A JP 2006158611 A JP2006158611 A JP 2006158611A JP 2007329662 A JP2007329662 A JP 2007329662A
Authority
JP
Japan
Prior art keywords
color
region
image
pixel
line width
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006158611A
Other languages
Japanese (ja)
Other versions
JP4498316B2 (en
Inventor
Makoto Otsu
誠 大津
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 JP2006158611A priority Critical patent/JP4498316B2/en
Publication of JP2007329662A publication Critical patent/JP2007329662A/en
Application granted granted Critical
Publication of JP4498316B2 publication Critical patent/JP4498316B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor and an image processing method that can improve reproducibility of characters by improving precision of color decision making by employing different color decision systems according to whether the characters are wide or narrow in line width, to provide an image forming apparatus equipped with the image processor, and to provide a computer program for achieving the image processor. <P>SOLUTION: Based upon an input RGB signal, a mask which includes a pixel of interest and its peripheral pixels is set for each pixel. When the line width is decided to be narrow, a first color deciding unit 43 makes a color decision based upon a mean value of pixel information in the mask as a feature quantity and when the line width is decided to be wide, a second color deciding unit 44 decides a color decision based upon the difference between color components having a maximum value of the pixel information in the mask as a feature quantity. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、入力画像内の注目画素が複数の領域分類のうち何れに属するかを近傍の画素情報に基づいて判定する際に、線幅の広狭により色判定手段を選択することで領域分類に適した画像処理を行う画像処理装置、画像処理方法、前記画像処理装置を備える画像形成装置、及び画像処理装置を実現するためのコンピュータプログラムに関する。   In the present invention, when determining which pixel of interest in an input image belongs to among a plurality of region classifications based on neighboring pixel information, the color determination means is selected depending on the width of the line width, thereby selecting the region classification. The present invention relates to an image processing apparatus that performs suitable image processing, an image processing method, an image forming apparatus including the image processing apparatus, and a computer program for realizing the image processing apparatus.

近年のデジタル画像処理技術の進展によって、カラー画像を高画質で再現するデジタルカラー複写機又はカラーデジタル複合機等の画像形成装置が製品化されている。電子写真プロセス又はインクジェット方式を用いた複写機等の画像形成装置は、従来のアナログ方式に代え、入力画像情報をデジタル化して種々の加工を施した上で出力するようにしており、現在、このような製品が普及する傾向にある。   With the recent development of digital image processing technology, image forming apparatuses such as digital color copying machines or color digital multifunction peripherals that reproduce color images with high image quality have been commercialized. An image forming apparatus such as a copying machine using an electrophotographic process or an ink jet method is designed to output input after digitizing input image information and performing various processing instead of a conventional analog method. Such products tend to become popular.

これらの画像形成装置を用いて複写される原稿画像は、文字、線画若しくは写真、又はそれらが混在した原稿である場合がある。良好な再現画像を得るためには、文字の部分には鮮鋭強調処理、又は写真の部分には平滑化処理等、領域毎に種別に適した画像処理を行うことが要求される。   Document images copied using these image forming apparatuses may be characters, line drawings or photographs, or a document in which they are mixed. In order to obtain a good reproducible image, it is required to perform image processing suitable for each type, such as sharpening processing for character portions or smoothing processing for photo portions.

原稿の構成種別に応じて最適な処理を行うためには、原稿画像全体又は原稿画像中の各領域が何れの構成種別であるのかを判別することが必要となる。この判別をするために、原稿画像を注目画素とその近傍画素とからなる所定の領域に区分けし、該所定の領域に含まれる画素値に基づいて文字領域、網点領域、又はその他の領域(写真領域:印画紙写真)に判別する領域判別処理がある。   In order to perform optimum processing according to the document configuration type, it is necessary to determine the configuration type of the entire document image or each region in the document image. In order to make this determination, the document image is divided into a predetermined area consisting of the pixel of interest and its neighboring pixels, and a character area, halftone dot area, or other area (based on the pixel value included in the predetermined area) There is an area discrimination process for discriminating to “photo area: photographic paper photograph”.

一般に、スキャナなどのカラー画像入力装置により読み込まれた画像情報は、注目画素とその近傍画素からなるブロックに区分けされ、注目画素毎又はブロック毎に、文字領域、網点領域、又はその他の領域の何れに属するかが夫々判定され、判定結果を総合して領域種別に判別される。また、文字領域に属するか否かを判定する場合には、単にエッジ領域があるか否かの検出を行うだけではなく、文字が無彩色領域に属するか又は有彩色領域に属するかが判定される。判定対象のブロックが文字領域に属し且つ無彩色領域に属すると判定された場合は、該ブロックを黒文字領域と判別し、該ブロックには墨生成量を増加して強調処理を行う。一方、文字領域に属し且つ有彩色領域に属すると判定された場合は、判定対象のブロックを色文字領域と判別し、該ブロックには墨生成量を増加せずに単に強調処理を行う。このように文字領域に文字色によって適した画像処理を行うことにより、読み込んだ原稿を出力する際には、文字のくっきり感及び画質の再現性を向上させることができる。   In general, image information read by a color image input device such as a scanner is divided into blocks each including a pixel of interest and its neighboring pixels, and a character area, a halftone dot area, or other area is divided for each pixel of interest or for each block. Which one belongs to each other is determined, and the determination results are combined to determine the region type. Further, when determining whether or not it belongs to the character area, it is not only detected whether or not there is an edge area, but it is also determined whether the character belongs to an achromatic area or a chromatic area. The If it is determined that the block to be determined belongs to the character area and belongs to the achromatic area, the block is determined to be a black character area, and the black generation amount is increased for the block and enhancement processing is performed. On the other hand, if it is determined that it belongs to the character area and belongs to the chromatic color area, the block to be determined is determined to be a color character area, and the block is simply subjected to enhancement processing without increasing the black generation amount. By performing image processing suitable for the character color in the character area as described above, the sharpness of the character and the reproducibility of the image quality can be improved when outputting the read original.

無彩色領域に属するか又は有彩色領域に属するかの判定は、無彩色領域に属する場合は注目画素の各色成分間の濃度等の画素情報が等しいか、又はほとんど差がなく、有彩色領域に属する場合は注目画素の各色成分間の画素情報はその色の特性に従って異なるという特徴を利用して行う。具体的には、注目画素での各色成分間での画素情報の最大値と最小値との差分が所定の閾値以上である場合は、有彩色領域に属すると判定される。   Whether the image belongs to the achromatic color region or the chromatic color region is determined.If the pixel information belongs to the achromatic color region, the pixel information such as the density between the respective color components of the target pixel is equal or almost the same, and there is almost no difference. In the case of belonging, the pixel information between the color components of the pixel of interest is performed using the feature that it differs according to the color characteristics. Specifically, when the difference between the maximum value and the minimum value of the pixel information between each color component in the target pixel is equal to or greater than a predetermined threshold value, it is determined that the pixel belongs to the chromatic color region.

ところが、スキャナの原稿の読み取り精度によっては、黒文字又は黒線を読み取る際に同一位置の各色成分の画素情報が異なる位置の色成分の画素情報であると検知される現象、つまり画素情報が色成分間で位置をずらして検知される画素ずれが発生することがある。画素ずれが発生した場合、エッジ部に位置する注目画素の画素情報には各色成分間で差異が生じる。また、文字のエッジの立ち上がり又は立ち下がりの勾配が急であるほど、画素ずれが発生した場合のエッジ部に位置する注目画素の各色成分間での画素情報の差異は大きい。しかし、エッジ部の注目画素に対する、上述の各色成分間での画素情報の最大値と最小値との差分による判定では、各色成分間での画素情報の差異が、注目画素が現実に有彩色領域に属することによる各色成分間の差異であるか又は画素ずれによる各色成分間の差異であるかの区別をすることができない。従って、実際は黒文字領域に属する画素を誤って有彩色領域に属する画素と判別し、黒文字に適した画像処理を行うことができずに画質劣化を発生させることとなる。   However, depending on the reading accuracy of the original of the scanner, a phenomenon that pixel information of each color component at the same position is detected as pixel information of a color component at a different position when reading a black character or a black line, that is, the pixel information is a color component. A pixel shift detected by shifting the position between them may occur. When a pixel shift occurs, there is a difference between the color components in the pixel information of the target pixel located at the edge portion. In addition, the steepest rising or falling gradient of the edge of the character is, the greater the difference in pixel information between the color components of the pixel of interest located at the edge when a pixel shift occurs. However, in the determination based on the difference between the maximum value and the minimum value of the pixel information between the color components described above with respect to the target pixel in the edge portion, the difference in the pixel information between the color components is actually the chromatic color region It is not possible to distinguish between the difference between the color components due to belonging to the color difference or the difference between the color components due to pixel shift. Therefore, in actuality, a pixel belonging to the black character region is erroneously determined as a pixel belonging to the chromatic color region, and image processing suitable for the black character cannot be performed, resulting in image quality degradation.

そこで、仮に注目画素が有彩色領域に属すると判定された場合であっても、注目画素とその近傍画素とからなる所定の領域内で無彩色領域に属する画素が所定の数以上含まれる場合は、無彩色領域に属すると判定し直す技術が開示されている(特許文献1)。これにより、読み取る際に画素ずれが発生した黒文字領域に属する画素を、誤って色文字領域に属すると判別することを回避することが可能である。
特許第3048158号公報
Therefore, even if it is determined that the target pixel belongs to the chromatic color area, if a predetermined number or more of pixels belonging to the achromatic color area are included in the predetermined area including the target pixel and its neighboring pixels, A technique for re-determining that the image belongs to an achromatic region is disclosed (Patent Document 1). Thereby, it is possible to avoid erroneously determining that a pixel belonging to a black character area in which a pixel shift occurs during reading belongs to a color character area.
Japanese Patent No. 3048158

ところで、注目画素の各色成分の画素情報は、画素ずれ以外にスキャナ等の画像入力装置のMTF(Modulation Transfer Function:変調伝達関数)の差によって色のバランスが崩れることがある。この場合、注目画素が実際は黒文字領域に属する場合であっても、エッジ部の画素情報が各色成分間でバランスを崩して検知される。黒文字領域の線幅が狭い場合は、下地領域から黒文字領域へのエッジの立ち上がり部と黒文字領域から下地領域へのエッジの立ち下がり部との幅が狭いために、エッジ部でのMTFの差による各色成分間でのバランスの崩れの影響が顕著になる。また、線幅が狭い場合はエッジ部以外の黒文字領域に属する画素の数が元来少ない。そのため、注目画素の近傍で、各色成分間の画素情報が等しく無彩色領域に属する画素であると判定される画素の数が所定の数に至らない。   By the way, the pixel information of each color component of the pixel of interest may be out of color balance due to a difference in MTF (Modulation Transfer Function) of an image input device such as a scanner in addition to pixel shift. In this case, even when the target pixel actually belongs to the black character region, the pixel information of the edge portion is detected with the balance being lost among the color components. When the line width of the black character area is narrow, the width of the rising edge of the edge from the background area to the black character area and the falling edge of the edge from the black character area to the background area is narrow, and therefore, due to the difference in MTF at the edge area. The effect of the loss of balance among the color components becomes significant. When the line width is narrow, the number of pixels belonging to the black character area other than the edge part is originally small. For this reason, the number of pixels that are determined to be pixels that belong to the achromatic color region in which the pixel information between the respective color components is equal in the vicinity of the target pixel does not reach a predetermined number.

従って、特許文献1で開示された技術では、MTFの差によって各色成分間の画素情報にバランスの崩れがある場合は、無彩色領域に属すると判定し直されずに有彩色領域として判定され、色文字領域と判別される。そのため、本来墨生成量を増加して強調処理をし文字を鮮鋭化してくっきり感を出すべきところ、墨生成量を増加せずに強調処理がされることとなり、文字色がはっきりとした黒ではなく濁った色で形成され、ぼんやりとした文字で表現されてしまう場合がある。   Therefore, in the technique disclosed in Patent Document 1, when there is a loss of balance in pixel information between each color component due to the difference in MTF, it is determined as a chromatic color region without being determined again as belonging to the achromatic region, It is determined as a color character area. For this reason, it should be emphasized by increasing the amount of ink generated and sharpening the characters, so that the emphasis processing is performed without increasing the amount of ink generated. In some cases, it is formed in a turbid color and is expressed with blurred characters.

また、エッジ部の注目画素での色成分間の画素情報の差異は、画素ずれによる差異とMTFの差による差異とでは、線幅の広狭により特徴が異なる。線幅が狭い場合の画素ずれ及びMTFの差による色成分間での差異による判定を、線幅が広い場合に適応すると、黒文字領域に属する注目画素を誤って有彩色領域に属すると判定してしまう場合がある。   Also, the difference in pixel information between color components at the pixel of interest at the edge portion differs in characteristics depending on the line width between the difference due to pixel shift and the difference due to the difference in MTF. If the determination based on the difference between the color components due to the pixel shift and MTF difference when the line width is narrow is applied to the case where the line width is wide, the target pixel belonging to the black character area is erroneously determined to belong to the chromatic color area. May end up.

本発明は斯かる事情を鑑みてなされたものであり、文字の線幅の広狭により異なる色判定方式を用いて、色判定の精度向上を実現し、文字の再現性を高めることのできる画像処理装置、画像処理方法、前記画像処理装置を備える画像形成装置、及び画像処理装置を実現するためのコンピュータプログラムを提供することにある。   The present invention has been made in view of such circumstances, and image processing capable of improving the accuracy of color determination and improving the reproducibility of characters by using different color determination methods depending on the line width of the characters. An apparatus, an image processing method, an image forming apparatus including the image processing apparatus, and a computer program for realizing the image processing apparatus are provided.

また、本発明の他の目的は、文字の線幅が狭い場合にずれが顕著になる、各色成分間でのMTFの差によって各色成分のバランスが崩れた場合でも、バランスの崩れを吸収して色判定の精度向上を実現し、文字の再現性を高めることのできる画像処理装置、画像処理方法、前記画像処理装置を備える画像形成装置、及び画像処理装置を実現するためのコンピュータプログラムを提供することにある。   Another object of the present invention is to absorb the loss of balance even when the balance of each color component is lost due to the difference in MTF between the color components, which is noticeable when the line width of the character is narrow. Provided are an image processing apparatus, an image processing method, an image forming apparatus provided with the image processing apparatus, and a computer program for realizing the image processing apparatus capable of improving the accuracy of color determination and improving the reproducibility of characters. There is.

また、本発明の他の目的は、文字の線幅が広い場合にずれが顕著になる画素ずれが発生した場合でも、画素ずれを吸収して色判定の精度向上を実現し、文字の再現性を高めることのできる画像処理装置、画像処理方法、前記画像処理装置を備える画像形成装置、及び画像処理装置を実現するためのコンピュータプログラムを提供することにある。   Another object of the present invention is to improve the accuracy of color determination by absorbing the pixel shift even when a pixel shift that causes a significant shift when the line width of the character is wide is achieved, and the character reproducibility is improved. An image processing apparatus, an image processing method, an image forming apparatus including the image processing apparatus, and a computer program for realizing the image processing apparatus.

本発明に係る画像処理装置は、複数の色成分で表される複数の画素からなる入力画像内の何れか一つの画素を注目画素として、注目画素が文字領域に属するか否かを近傍の画素情報に基づいて判定し、入力画像を複数の領域分類に判別する領域判別手段を備え、判別した領域毎に領域分類に適した処理を入力画像に行う画像処理装置において、前記領域判別手段は、文字の線幅を検出する手段と、検出した線幅の広狭を判定する手段と、注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定する複数の色判定手段と、線幅の広狭により、前記複数の色判定手段のうち何れかを選択する手段とを備えることを特徴とする。   The image processing apparatus according to the present invention uses any one pixel in an input image composed of a plurality of pixels represented by a plurality of color components as a target pixel, and determines whether the target pixel belongs to a character area or not. In the image processing apparatus that includes a region determination unit that determines based on information and determines an input image into a plurality of region classifications, and performs processing suitable for the region classification for each determined region on the input image, the region determination unit includes: Means for detecting the line width of the character; means for determining the width of the detected line width; a plurality of color determining means for determining whether the pixel of interest belongs to the achromatic region or the chromatic region; and the line width And means for selecting one of the plurality of color determination means.

本発明に係る画像処理装置は、前記色判定手段の一は、注目画素及び近傍画素の濃度の平均値を各色成分毎に算出する手段と、算出した平均値の色成分間での最大差を特徴量として算出する手段とを備え、前記特徴量から注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定するようにしてあることを特徴とする。   In the image processing apparatus according to the present invention, one of the color determination means is a means for calculating an average value of the densities of the target pixel and neighboring pixels for each color component, and a maximum difference between the calculated average values of the color components. Means for calculating as a feature amount, and determining whether the target pixel belongs to an achromatic region or a chromatic region from the feature amount.

本発明に係る画像処理装置は、前記色判定手段の一は、注目画素及び近傍画素の濃度の最小値又は最大値を各色成分毎に算出する手段と、算出した最小値又は最大値の色成分間での最大差を特徴量として算出する手段とを備え、前記特徴量から注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定するようにしてあることを特徴とする。   In the image processing apparatus according to the present invention, one of the color determination means includes a means for calculating the minimum value or the maximum value of the density of the target pixel and the neighboring pixel for each color component, and the calculated minimum or maximum color component. Means for calculating a maximum difference between them as a feature amount, and determining whether the target pixel belongs to an achromatic color region or a chromatic color region from the feature amount.

本発明に係る画像処理方法は、複数の色成分で表される複数の画素からなる入力画像内の何れか一つの画素を注目画素として、注目画素が文字領域に属するか否かを近傍の画素情報に基づいて判定し、入力画像を複数の領域分類に判別し、判別した領域毎に領域分類に適した処理を入力画像に行う画像処理方法において、文字の線幅を検出し、検出した線幅の広狭を判定し、線幅の広狭により、注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定する複数の色判定方式から何れかを選択し、選択した色判定方式での判定により、注目画素が無彩色文字領域に属するか又は有彩色文字領域に属するかを判別することを特徴とする。   The image processing method according to the present invention uses any one pixel in an input image composed of a plurality of pixels represented by a plurality of color components as a target pixel, and determines whether the target pixel belongs to a character area or not. In an image processing method for determining based on information, determining an input image into a plurality of region classifications, and performing processing suitable for the region classification on the input image for each of the determined regions, the line width of the character is detected, and the detected line Determine whether the width is wide or narrow, select one of multiple color determination methods to determine whether the pixel of interest belongs to the achromatic color region or the chromatic color region, and select the selected color determination method. In this determination, it is determined whether the target pixel belongs to an achromatic character region or a chromatic character region.

本発明に係る画像処理方法は、前記色判定方式の一は、注目画素及び近傍画素の濃度の平均値を各色成分毎に算出し、算出した平均値の色成分間での最大差を特徴量として算出し、算出した特徴量により注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定することを特徴とする。   In the image processing method according to the present invention, according to one of the color determination methods, the average value of the density of the target pixel and the neighboring pixel is calculated for each color component, and the maximum difference between the color components of the calculated average value is a feature amount. And determining whether the pixel of interest belongs to the achromatic color region or the chromatic color region based on the calculated feature amount.

本発明に係る画像処理方法は、前記色判定方式の一は、注目画素及び近傍画素の濃度の最小値又は最大値を各色成分毎に算出し、算出した最小値又は最大値の色成分間での最大差を特徴量として算出し、算出した特徴量により注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定することを特徴とする。   In the image processing method according to the present invention, one of the color determination methods is to calculate the minimum value or the maximum value of the density of the target pixel and neighboring pixels for each color component, and between the calculated minimum value or maximum value color components. Is calculated as a feature amount, and it is determined based on the calculated feature amount whether the target pixel belongs to an achromatic color region or a chromatic color region.

本発明に係る画像形成装置は、前述の本発明の何れか一つの画像処理装置と、該画像処理装置で処理された入力画像に基づいて画像の形成を行う画像形成手段とを備えることを特徴とする。   An image forming apparatus according to the present invention includes any one of the above-described image processing apparatuses according to the present invention and an image forming unit that forms an image based on an input image processed by the image processing apparatus. And

本発明に係るコンピュータプログラムは、複数の色成分で表される複数の画素からなる入力画像内の何れか一つの画素を注目画素として、注目画素が文字領域に属するか否かを近傍の画素情報に基づいて判定するステップと、入力画像を複数の領域分類に判別するステップとをコンピュータに実行させるコンピュータプログラムにおいて、前記コンピュータに、文字の線幅を検出するステップと、検出した線幅の広狭を判定するステップと、注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定する複数の色判定ステップと、線幅の広狭により、前記複数の色判定ステップから何れかを選択するステップとを実行させることを特徴とする。   The computer program according to the present invention uses any one pixel in an input image composed of a plurality of pixels represented by a plurality of color components as a target pixel, and determines whether or not the target pixel belongs to a character area. In the computer program for causing a computer to execute the step of determining based on the step and the step of determining the input image into a plurality of region classifications, the computer detects the line width of the character and the width of the detected line width. A step of determining, a plurality of color determination steps for determining whether the target pixel belongs to an achromatic color region or a chromatic color region, and a step of selecting one of the plurality of color determination steps according to the line width Are executed.

本発明に係るコンピュータプログラムは、前記色判定ステップの一は、注目画素及び近傍画素の濃度の平均値を各色成分毎に算出するステップと、算出した平均値の色成分間での最大差を特徴量として算出するステップと、算出した特徴量により注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定するステップとを実行させることを特徴とする。   The computer program according to the present invention is characterized in that one of the color determination steps is a step of calculating an average value of densities of a target pixel and a neighboring pixel for each color component and a maximum difference between the calculated average values of the color components. And a step of determining whether the pixel of interest belongs to an achromatic color region or a chromatic color region based on the calculated feature amount.

本発明に係るコンピュータプログラムは、前記色判定ステップの一は、注目画素及び近傍画素の濃度の最小値又は最大値を各色成分毎に算出するステップと、算出した最小値又は最大値の色成分間での最大差を特徴量として算出するステップと、算出した特徴量により注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定するステップとを実行させることを特徴とする。   In the computer program according to the present invention, one of the color determination steps is to calculate a minimum value or a maximum value of the density of the target pixel and neighboring pixels for each color component, and between the calculated minimum value or maximum value color components. And a step of determining whether the target pixel belongs to an achromatic color region or a chromatic color region based on the calculated feature amount.

本発明にあっては、入力された画像情報を構成する各画素のうち、注目画素が文字領域に属する場合は、文字の線幅の広狭を判定し、文字の線幅の広狭によって異なる、各色成分間の画素情報のずれ方に適合した色判定方式が選択される。   In the present invention, when the pixel of interest belongs to the character area among the pixels constituting the input image information, the line width of the character is determined, and each color varies depending on the width of the character line width. A color determination method is selected that suits how pixel information is shifted between components.

本発明にあっては、注目画素において画素ずれの発生及びMTFの差によって本来等しい各色成分間での画像情報がずれた場合であっても、文字の線幅が狭い場合は、線幅全体を覆う所定の領域内の濃度の平均値を算出し、注目画素の画素情報の各色成分間でのずれを吸収する色判定方式によって有彩色領域に属するか又は無彩色領域に属するかの判定をする。   In the present invention, even when the image information between the originally equal color components is shifted due to occurrence of pixel shift and MTF difference in the target pixel, if the line width of the character is narrow, the entire line width is reduced. The average value of the density in the predetermined area to be covered is calculated, and it is determined whether it belongs to the chromatic color area or the achromatic color area by the color determination method that absorbs the shift between the color components of the pixel information of the target pixel. .

本発明にあっては、注目画素において画素ずれの発生及びMTFの差によって本来等しい各色成分間での画素情報がずれた場合であっても、文字の線幅の広い場合は、近傍画素のうちずれの影響が少ない位置での濃度の差分を算出し、注目画素の画素情報の各色成分間でのずれを吸収する色判定方式によって有彩色領域に属するか又は無彩色領域に属するかの判定をする。   In the present invention, even if the pixel information between each color component that is essentially equal is shifted due to the occurrence of pixel shift and the MTF difference in the target pixel, if the line width of the character is wide, The density difference at the position where the influence of the shift is small is calculated, and it is determined whether it belongs to the chromatic color area or the achromatic color area by the color determination method that absorbs the shift between the color components of the pixel information of the target pixel. To do.

本発明による場合は、黒文字の線幅の広狭により異なる、原稿画像を読み取る際の各色成分間での画素情報のずれ方に適した色判定の手段を選択し、注目画素が無彩色領域に属するか又は有彩色領域に属するかの色判定の精度向上を実現し、文字の再現性を高めることができる。   In the case of the present invention, a color determination unit that is suitable for the shift of pixel information between color components when reading a document image, which varies depending on the line width of a black character, is selected, and the target pixel belongs to the achromatic region Therefore, it is possible to improve the accuracy of color determination as to whether the color belongs to a chromatic color region and to improve the reproducibility of characters.

本発明による場合は、黒文字の線幅が狭い場合は、原稿画像を読み取る際の各色成分間でのMTFの差によるバランスの崩れ方に適した色判定の手段を選択し、線幅が狭い場合に顕著になるMTFの差による各色成分のバランスの崩れ方を吸収して注目画素が無彩色領域に属するか又は有彩色領域に属するかの色判定の精度向上を実現し、文字の再現性を高めることができる。   In the case of the present invention, when the line width of the black character is narrow, the color determination means suitable for how to lose the balance due to the difference in MTF between the color components when reading the original image is selected, and the line width is narrow To improve the accuracy of color determination whether the pixel of interest belongs to the achromatic region or the chromatic region by absorbing the way the balance of each color component is lost due to the MTF difference that becomes noticeable. Can be increased.

本発明による場合は、黒文字の線幅が広い場合は、原稿画像を読み取る際の各色成分間での画素ずれに適した色判定の手段を選択し、線幅が広い場合に顕著になる画素ずれによる各色成分間での画像情報のずれを吸収して、注目画素が無彩色領域に属するか又は有彩色領域に属するかの色判定の精度向上を実現し、文字の再現性を高めることができる。   According to the present invention, when the line width of black characters is wide, a color determination means suitable for pixel shift between each color component when reading an original image is selected, and pixel shift that becomes noticeable when the line width is wide By absorbing the image information shift between each color component, the accuracy of color determination as to whether the target pixel belongs to the achromatic color area or the chromatic color area can be improved, and the reproducibility of the characters can be improved. .

(実施の形態1)
以下本発明をその実施の形態を示す図面に基づき具体的に説明する。
(Embodiment 1)
Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof.

図1は本発明に係る画像処理装置を備える画像形成装置の構成を示すブロック図である。画像形成装置は、原稿画像を読み取るカラー画像入力装置11と、入力された画像情報に所定の処理を施す画像処理装置10と、処理を施した画像情報をシート上に形成するカラー画像出力装置12と、ユーザの操作を受け付ける操作パネル13とを備える。   FIG. 1 is a block diagram illustrating a configuration of an image forming apparatus including an image processing apparatus according to the present invention. The image forming apparatus includes a color image input device 11 that reads a document image, an image processing device 10 that performs predetermined processing on the input image information, and a color image output device 12 that forms the processed image information on a sheet. And an operation panel 13 for receiving user operations.

カラー画像入力装置11は、例えばCCD(Charge Coupled Device)を備えたスキャナであり、原稿へ白色光を投射し、原稿からの反射光像をR(赤)G(緑)B(青)夫々のフィルタを介してCCDで受光し、RGBの各色成分のアナログ信号として読み取り、画像処理装置10へ出力する。画像処理装置10では、RGBの各アナログ信号に対して以下に説明する所定の処理を行い、C(シアン)M(マゼンダ)Y(イエロー)K(黒)のデジタルカラー信号へ変換してカラー画像出力装置12へ出力する。カラー画像出力装置12は、画像処理装置10から入力されたCMYKのデジタルカラー信号に基づいて画像をシート上に形成する電子写真方式又はインクジェット方式等のプリンタである。また、カラー画像出力装置12は、ディスプレイ等の表示装置であってもよい。   The color image input device 11 is a scanner having, for example, a CCD (Charge Coupled Device), projects white light onto a document, and reflects reflected light images from the document to R (red), G (green), and B (blue). Light is received by the CCD through the filter, read as analog signals of RGB color components, and output to the image processing apparatus 10. The image processing apparatus 10 performs predetermined processing described below on each analog signal of RGB, and converts it into a digital color signal of C (cyan) M (magenta) Y (yellow) K (black) to produce a color image. Output to the output device 12. The color image output device 12 is an electrophotographic or inkjet printer that forms an image on a sheet based on CMYK digital color signals input from the image processing device 10. The color image output device 12 may be a display device such as a display.

操作パネル13は、例えばタッチパネル方式の液晶表示装置、及びテンキー並びに各種設定釦等の各種キーを備え、ユーザは操作パネル13を介して画像形成装置の動作を制御することが可能である。ユーザは、読み取り原稿の種類が文字原稿であるか、文字と写真で構成される原稿であるか、又は写真原稿であるか等により、画像形成するシートの種類と、画像処理装置10での処理とを選択することが可能である。また、操作パネル13は、画像形成装置の動作状態又はユーザに対するメッセージ等を表示する。   The operation panel 13 includes, for example, a touch panel type liquid crystal display device and various keys such as a numeric keypad and various setting buttons. The user can control the operation of the image forming apparatus via the operation panel 13. The user determines the type of sheet on which an image is to be formed and the processing in the image processing apparatus 10 depending on whether the type of the read original is a text original, an original composed of characters and photos, or a photo original. And can be selected. The operation panel 13 displays an operation state of the image forming apparatus or a message to the user.

画像処理装置10は、A/D(アナログ/デジタル)変換部1と、シェーディング補正部2と、入力階調補正部3と、領域判別処理部4と、色補正部5と、黒生成下色除去部6と、空間フィルタ処理部7と、出力階調補正部8と、階調再現処理部9と各部を制御するCPU101とを有する例えばASIC(Application Specific Integrated Circuit;特定用途集積回路)で構成される。CPU101は、カラー画像入力装置11でラインを走査する都度取得されて入力される画像情報を、水平同期信号に同期させてライン毎に順次前記各構成部へ入出力し、パイプライン制御による逐次処理を行う。   The image processing apparatus 10 includes an A / D (analog / digital) conversion unit 1, a shading correction unit 2, an input tone correction unit 3, an area determination processing unit 4, a color correction unit 5, and a black generation lower color. Consists of, for example, an ASIC (Application Specific Integrated Circuit) having a removal unit 6, a spatial filter processing unit 7, an output tone correction unit 8, a tone reproduction processing unit 9, and a CPU 101 that controls each unit. Is done. The CPU 101 sequentially inputs / outputs image information obtained and input every time the line is scanned by the color image input device 11 to each of the components in synchronization with a horizontal synchronization signal, and sequentially processes by pipeline control. I do.

画像処理装置10に入力されたRGBのアナログ信号は、まず、A/D変換部1に入力され、デジタル信号に変換される。デジタル信号に変換されたRGB信号はシェーディング補正部2に入力される。シェーディング補正部2は、入力されたRGBのデジタル信号をカラー画像入力装置11の照明系、結像系、及び撮像系で生じる各種の歪みを取り除く処理を施し、処理後のRGB信号は入力階調補正部3に入力される。   RGB analog signals input to the image processing apparatus 10 are first input to the A / D converter 1 and converted into digital signals. The RGB signal converted into the digital signal is input to the shading correction unit 2. The shading correction unit 2 performs processing for removing various distortions generated in the illumination system, the imaging system, and the imaging system of the color image input device 11 from the input RGB digital signal. Input to the correction unit 3.

入力階調補正部3は、入力されたRGB信号(RGBの反射率信号)を画像処理装置10で採用されている画像処理方法で扱い易い信号に変換するとともに、カラーバランスを整え、下地濃度の除去又はコントラストの調整等の画質調整処理を施す。処理後のRGB信号は領域判別処理部4に入力される。   The input tone correction unit 3 converts the input RGB signal (RGB reflectance signal) into a signal that can be easily handled by the image processing method employed in the image processing apparatus 10, adjusts the color balance, and adjusts the background density. Image quality adjustment processing such as removal or contrast adjustment is performed. The processed RGB signal is input to the region discrimination processing unit 4.

領域判別処理部4は、入力されたRGB信号に基づき、入力画像中の各画素を黒文字領域、色文字領域、網点領域、又は何れの領域にも属さないその他の領域と判別する。領域判別処理部4からは、判別結果に基づき、画素が何れの領域に属するかを示す領域識別信号が、色補正部5、黒生成下色除去部6、空間フィルタ処理部7、及び階調再現処理部9に入力される。また、領域判別処理部4では、入力されたRGB信号がそのまま出力され、色補正部5に入力される。   The area discrimination processing unit 4 discriminates each pixel in the input image from a black character area, a color character area, a halftone dot area, or another area that does not belong to any area based on the input RGB signal. An area identification signal indicating which area the pixel belongs to is output from the area discrimination processing unit 4 based on the discrimination result to the color correction unit 5, the black generation and under color removal unit 6, the spatial filter processing unit 7, and the gradation. Input to the reproduction processing unit 9. In the region discrimination processing unit 4, the input RGB signal is output as it is and input to the color correction unit 5.

色補正部5は、入力されたRGB信号を印刷用の加法混色のCMY信号に変換する。同時に、領域判別処理部4から入力される領域識別信号に基づいて、忠実に色を再現するため不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行う。処理後のCMY信号は黒生成下色除去部6に入力される。   The color correction unit 5 converts the input RGB signal into an additive color mixing CMY signal for printing. At the same time, processing for removing color turbidity based on the spectral characteristics of the CMY color materials including unnecessary absorption components is performed to faithfully reproduce the color based on the region identification signal input from the region determination processing unit 4. The processed CMY signal is input to the black generation and under color removal unit 6.

黒生成下色除去部6は、色補正後のCMY信号から、CMY信号の何れもが重なり合う位置の色をK信号(黒)に置き換えて、新たにCMYK信号に変換する処理を行う。CMY信号のCMY夫々の濃度が均等で黒色に該当する場合、又は領域判別処理部4から入力される領域識別信号で黒文字領域であると判別された場合はK信号を生成し、元のCMY信号から生成したK信号に対応する信号を差し引く処理を行う。処理後のCMYK信号は空間フィルタ処理部7へ入力される。   The black generation and under color removal unit 6 performs a process of replacing the color at the position where all of the CMY signals overlap with the K signal (black) from the CMY signal after color correction, and newly converting it to a CMYK signal. If the density of each CMY of the CMY signals is equal and corresponds to black, or if the area identification signal input from the area determination processing unit 4 determines that the area is a black character area, a K signal is generated and the original CMY signal is generated. The processing corresponding to the K signal generated from the above is subtracted. The processed CMYK signal is input to the spatial filter processing unit 7.

黒生成下色除去部6での処理の一例であるUCR(Under Color Removal)処理を示す。黒生成カーブの入力特性をy=f(x)とし、入力されるデータをC,M,Yとし、出力されるデータをC’,M’,Y’,K’とし、UCR率をα(0<α<1)とすると、黒生成下色除去処理により出力されるデータ夫々は、K’=f{min(C,M,Y)}、C’=C−αK’、M’=M−αK’、Y’=Y−αK’で表される。   A UCR (Under Color Removal) process which is an example of a process in the black generation and under color removal unit 6 will be described. The input characteristic of the black generation curve is y = f (x), the input data is C, M, Y, the output data is C ′, M ′, Y ′, K ′, and the UCR rate is α ( If 0 <α <1), the data output by the black generation and under color removal processing are K ′ = f {min (C, M, Y)}, C ′ = C−αK ′, and M ′ = M. −αK ′, Y ′ = Y−αK ′.

空間フィルタ処理部7は、入力されたCMYK信号に対して、同時に領域判別処理部4から入力される領域識別信号に基づいてデジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正することによりカラー画像出力装置12での出力画像のぼやけ又は粒状性劣化を防止する。領域判別処理部4により黒文字領域又は色文字領域と判別された領域には、鮮鋭強調処理が行われ高周波成分が強調される。領域判別処理部4により網点領域と判別された領域には、ローパスフィルタ処理が行われ、入力網点成分が除去される。また、領域判別処理部4により、その他の領域と判別された領域には、鮮鋭度を落とさない程度のローパスフィルタ処理が行われ、ノイズが除去される。処理後のCMYK信号は、出力階調補正部8へ入力される。   The spatial filter processing unit 7 performs spatial filter processing using a digital filter on the input CMYK signal simultaneously based on the region identification signal input from the region discrimination processing unit 4, and corrects the spatial frequency characteristics to obtain color. Blur or graininess deterioration of the output image in the image output device 12 is prevented. The region determined to be a black character region or a color character region by the region determination processing unit 4 is subjected to sharp emphasis processing to emphasize high frequency components. A low-pass filter process is performed on the area determined as the halftone dot area by the area determination processing unit 4 to remove the input halftone dot component. Further, the region discriminated by the region discriminating unit 4 is subjected to low-pass filter processing that does not reduce the sharpness, and noise is removed. The processed CMYK signal is input to the output tone correction unit 8.

出力階調補正部8は、入力されたCMYK信号をカラー画像出力装置12の特性値である網点面積率に変換する出力階調補正処理を行う。処理後のCMYK信号は階調再現処理部9に入力される。   The output tone correction unit 8 performs output tone correction processing for converting the input CMYK signal into a halftone dot area ratio that is a characteristic value of the color image output device 12. The processed CMYK signal is input to the gradation reproduction processing unit 9.

階調再現処理部9は、入力されたCMYK信号に対し、同時に領域判別処理部4から入力される領域識別信号を基に夫々の階調を再現できるように処理する階調再現処理(中間調生成)を画素毎に行う。例えば、領域識別信号により黒文字領域と判別される領域には、カラー画像出力装置12の階調再現性に適するように二値化処理を行う。   The gradation reproduction processing unit 9 performs gradation reproduction processing (halftone processing) for processing the input CMYK signal so that each gradation can be reproduced based on the region identification signal input from the region determination processing unit 4 at the same time. Generation) is performed for each pixel. For example, binarization processing is performed on an area determined as a black character area by the area identification signal so as to be suitable for the gradation reproducibility of the color image output device 12.

上述の各処理が施され最終的に階調再現処理部9から出力されたCMYK信号の画像情報は、図示しない画像バッファメモリに一旦記憶され、所定のタイミングで読み出されてカラー画像出力装置12に入力される。   The image information of the CMYK signal that has been subjected to the above-described processes and is finally output from the gradation reproduction processing unit 9 is temporarily stored in an image buffer memory (not shown), and is read out at a predetermined timing to be read out by the color image output device 12. Is input.

次に、領域判別処理部4における領域判別処理について説明する。図2は、実施の形態1における画像処理装置10の領域判別処理部4の構成を示すブロック図である。領域判別処理部4は、少なくとも、文字判定部41と、線幅判定部42と、第一色判定部43と、第二色判定部44と、総合文字判定部45と、網点判定部46と、総合判定部47とを備える。   Next, the area determination process in the area determination processing unit 4 will be described. FIG. 2 is a block diagram illustrating a configuration of the area determination processing unit 4 of the image processing apparatus 10 according to the first embodiment. The area determination processing unit 4 includes at least a character determination unit 41, a line width determination unit 42, a first color determination unit 43, a second color determination unit 44, a comprehensive character determination unit 45, and a halftone dot determination unit 46. And a comprehensive determination unit 47.

文字判定部41は、文字領域では画素信号レベルの最大値と最小値の差が大きく、濃度も高い特徴を有することを利用して文字領域に属するか否かを判定する。文字判定部41は、入力されたRGB信号に基づいて、注目画素及びその近傍画素を含むM×Nのマスク(例えば3×3)を設定し、該マスク内においてRGBの各色成分に対して以下の判定を行う。   The character determination unit 41 determines whether or not the character area belongs to the character area by utilizing the feature that the difference between the maximum value and the minimum value of the pixel signal level is large and the density is high in the character area. The character determination unit 41 sets an M × N mask (for example, 3 × 3) including the target pixel and its neighboring pixels based on the input RGB signal, and performs the following for each RGB color component in the mask. Judgment is made.

3×3画素からなるマスク内の9画素に対して平均画素信号レベルDave、最大画素信号レベルDmax、最小画素信号レベルDmin、最大画素信号レベルと最小画素信号レベルとの差分Dsubを求める。PA ,PB ,PC を夫々所定の閾値として平均画素レベル等上述で求めた値と比較し、Dmax>PA、Dmin<PB 、又はDsub>PC の何れか一つを満たす場合は、文字領域に属すると判定する。文字判定部41は、判定結果を示す判定信号を総合文字判定部45へ出力する。例えば、文字領域に属すると判定した場合は「1」を出力し、文字領域に属さないと判定した場合は「0」を出力する。 An average pixel signal level Dave, a maximum pixel signal level Dmax, a minimum pixel signal level Dmin, and a difference Dsub between the maximum pixel signal level and the minimum pixel signal level are obtained for 9 pixels in a mask composed of 3 × 3 pixels. When P A , P B , and P C are respectively compared with the values obtained as described above, such as the average pixel level, as predetermined threshold values, and any one of Dmax> P A , Dmin <P B , or Dsub> P C is satisfied Is determined to belong to the character area. The character determination unit 41 outputs a determination signal indicating the determination result to the comprehensive character determination unit 45. For example, “1” is output when it is determined that it belongs to the character area, and “0” is output when it is determined that it does not belong to the character area.

線幅判定部42は、文字又は線画の線幅が狭い場合は、画素信号レベルの大きな変化の立ち上がりと立ち下がりの何れもが小領域内に存在する特徴を利用して、線幅の広狭を判定する。線幅判定部42は、入力されたRGB信号に基づいて、注目画素及びその近傍画素を含むM×Nのマスク(例えば5×5)を設定し、該マスク内においてRGB信号からG信号の濃度を抽出して以下の判定を行う。   When the line width of the character or line drawing is narrow, the line width determination unit 42 uses the feature that both the rising edge and the falling edge of the large change in the pixel signal level exist in the small region, and thereby the line width is narrowed. judge. The line width determination unit 42 sets an M × N mask (for example, 5 × 5) including the target pixel and its neighboring pixels based on the input RGB signal, and the density of the G signal from the RGB signal in the mask. Is extracted and the following determination is made.

図3は、実施の形態1における画像処理装置10の線幅判定部42で設定するマスクの例を示す模式図である。図3(a)は、線幅の狭い文字領域のエッジ部にマスクが一致した場合であり、図3(b)は、線幅の広い文字領域にマスクが一致した場合を示す。線幅判定部42は、注目画素(i,j)を含む5×5のマスク内の左上隅の画素(i−2,j−2)を起点として水平方向の5画素(i−2,j−2),(i−1,j−2),(i,j−2),(i+1,j−2),(i+2,j−2)分の濃度和sumx (0)を算出し、同様にマスク内の行毎に同様に濃度和sumx (l)を夫々l=0,1,…,4について算出する(式1)。同様にマスク内の左上隅の画素(i−2,j−2)を起点として列毎に濃度和sumy (l)を夫々l=0,1,…,4について算出する(式2)。 FIG. 3 is a schematic diagram illustrating an example of a mask set by the line width determination unit 42 of the image processing apparatus 10 according to the first embodiment. FIG. 3A shows a case where the mask matches the edge portion of the character area having a narrow line width, and FIG. 3B shows a case where the mask matches the character area having a wide line width. The line width determination unit 42 uses the pixel (i−2, j−2) at the upper left corner in the 5 × 5 mask including the target pixel (i, j) as a starting point, the five pixels (i−2, j) in the horizontal direction. -2), (i-1, j-2), (i, j-2), (i + 1, j-2), (i + 2, j-2) and the concentration sum sum x (0) is calculated, Similarly, the density sum sum x (l) is similarly calculated for l = 0, 1,..., 4 for each row in the mask (Equation 1). Similarly, the density sum sum y (l) is calculated for each column for l = 0, 1,..., 4 starting from the pixel (i−2, j−2) at the upper left corner in the mask (Formula 2).

Figure 2007329662
Figure 2007329662

次に、線幅判定部42は、前記各行及び各列の濃度和に基づいて、隣り合う行毎の濃度和の差分及び隣り合う列毎の濃度和の差分を算出する。j−2の行とj−1の行との間の濃度和の差分は、diffx (0)=sumx (1)−sumx (0)と算出し、同様に隣り合う行毎に濃度和の差分diffx (m)を夫々m=0,1,2,3について算出する(式3)。同様に各列についても算出する。i−2の列とi−1の列との間の濃度和の差分はdiffy (0)=sumy (1)−sumy (0)と算出し、同様に隣り合う列毎に画素濃度和の差分diffy (m)を夫々m=0,1,2,3について算出する。(式4) Next, the line width determination unit 42 calculates a difference in density sum for each adjacent row and a difference in density sum for each adjacent column based on the density sum of each row and each column. The difference of the density sum between the j-2 row and the j-1 row is calculated as diff x (0) = sum x (1) −sum x (0), and similarly, the density is calculated for each adjacent row. The sum difference diff x (m) is calculated for m = 0, 1, 2, 3, respectively (Equation 3). Similarly, each column is calculated. pixel density for each column difference density sum and the calculated diff y (0) = sum y (1) -sum y (0), adjacent to the same between the i-2 column and i-1 column The sum difference diff y (m) is calculated for m = 0, 1, 2, 3 respectively. (Formula 4)

Figure 2007329662
Figure 2007329662

画素信号レベルの変化の立ち上がり及び立ち下がりの有無は上述の算出結果に基づいて以下のように判定する。実際にマスク内に文字のエッジ部の立ち上がり及び立ち下がりが存在する場合は、濃度の変化量は、一定量以上の値であるはずである。そこで、変化分の閾値をTwidth として設定し、前記差分diffx (m)又はdiffy (m)夫々の絶対値が閾値Twidth より大きいか否かを夫々m=0,1,2,3について及び水平成分並びに垂直成分夫々について判定し、マスク内の立ち上がりの数及び立ち下がりの数を計数する。注目画素(i,j)のマスク内の立ち上がり数及び立ち下がり数をcntUPx (i,j),cntUPy (i,j),cntDOWNx (i,j),cntDOWNy (i,j)とし、夫々に初期値0を代入しておく。 The presence / absence of rise and fall of the change in the pixel signal level is determined as follows based on the above calculation result. If there are actually rising and falling edges of the character in the mask, the amount of change in density should be a certain amount or more. Therefore, by setting a threshold of variation as T width, the difference diff x (m) or diff y (m), respectively 's absolute value respectively whether the threshold T width greater than m = 0, 1, 2, 3 And the horizontal component and the vertical component, respectively, and the number of rising edges and falling edges in the mask are counted. Let cntUP x (i, j), cntUP y (i, j), cntDOWN x (i, j), cntDOWN y (i, j) be the number of rising and falling edges in the mask of the pixel of interest (i, j). The initial value 0 is substituted for each.

閾値Twidth を例えば75と設定し、diffx (m)≧75を満たす場合は、マスク内に画素信号レベルの変化の立ち上がりが存在すると判定され、立ち上がり数cntUPx (i,j)に1を加算し、diffx (m)≧75を満たさない場合は加算しない(式5)。diffx (m)≦−75を満たす場合は、マスク内に画素信号レベルの変化の立ち下がりが存在すると判定され、立ち下がり数cntDOWNx (i,j)に1を加算し、diffx (m)≦−75を満たさない場合は加算しない(式6)。同様に垂直方向diffy についても夫々判定し、垂直方向の立ち上がり数cntUPy (i,j)、立ち下がり数cntDOWNy (i,j)を計数する(式7、8)。 For example, when the threshold T width is set to 75 and diff x (m) ≧ 75 is satisfied, it is determined that there is a rising edge of the pixel signal level change in the mask, and 1 is set to the rising number cntUP x (i, j). Addition is not performed when diff x (m) ≧ 75 is not satisfied (Formula 5). When diff x (m) ≦ −75 is satisfied, it is determined that there is a falling edge of the change in the pixel signal level in the mask, and 1 is added to the falling number cntDOWN x (i, j), and diff x (m ) ≦ −75 is not satisfied, it is not added (Formula 6). Similarly, the vertical direction diff y is also determined, and the number of rising edges cntUP y (i, j) and the number of falling edges cntDOWN y (i, j) are counted (Equations 7 and 8).

Figure 2007329662
Figure 2007329662

Figure 2007329662
Figure 2007329662

実際にマスク内に文字のエッジ部の立ち上がり及び立ち下がりが存在する場合は、文字のエッジは文字の輪郭に沿い連続して存在しているため連続的に変化しているはずである。そこで、立ち上がり数及び立ち下がり数を計数した上で、閾値としてTup-down を設定し、前記立ち上がり数及び立ち下がり数が閾値以上であるか否かで判断することにより、偶発的な立ち上がり、立ち下がりによる計数を排除する。従って、立ち上がり及び立ち下がりの有無の判定は、水平方向の立ち上がり及び立ち下がりの有無を表すフラグをflag_upx ,flag_downx とし、垂直方向の立ち上がり及び立ち下がりの有無を表すフラグをflag_upy ,flag_downy として、以下のように判定する。 In fact, when the rising and falling edges of the character edge are present in the mask, the edge of the character should be continuously changing because it exists continuously along the contour of the character. Therefore, after counting the number of rising edges and the number of falling edges, T up-down is set as a threshold, and by judging whether the number of rising edges and the number of falling are equal to or greater than the threshold, Eliminate counting due to falling. Accordingly, the presence / absence of rising and falling is determined by flag_up x and flag_down x indicating the presence or absence of rising and falling in the horizontal direction, and flag_up y and flag_down y indicating the presence or absence of vertical rising and falling. Is determined as follows.

注目画素(i,j)について水平方向の立ち上がり数cntUPx (i,j)がTup-down 以上の値である場合は、注目画素(i,j)のマスク内には立ち上がりが存在していると判定され、flag_upx はtrueとされる。Tup-down 未満である場合はflag_upx はfalseとされる(式9)。同様に水平方向の立ち下がり数cntDOWNx (i,j)がTup-down 以上の値である場合は、注目画素(i,j)のマスク内には立ち下がりが存在していると判定され、flag_downx はtrueとされる。Tup-down 未満である場合はflag_downx はfalseとされる(式10)。線幅判定部42は同様に、垂直方向についてもflag_upy 及びflag_downy について判定する(式11、12)。 When the horizontal rising number cntUP x (i, j) is greater than or equal to T up-down for the pixel of interest (i, j), there is a rising edge in the mask of the pixel of interest (i, j). Flag_up x is set to true. If it is less than T up-down , flag_up x is set to false (Formula 9). Similarly, when the number of falling edges cntDOWN x (i, j) in the horizontal direction is equal to or greater than T up-down, it is determined that there is a falling edge in the mask of the pixel of interest (i, j). , Flag_down x is set to true. If it is less than T up-down , flag_down x is set to false (Formula 10). Similarly, the line width determination unit 42 determines flag_up y and flag_down y in the vertical direction (Equations 11 and 12).

Figure 2007329662
Figure 2007329662

次に、線幅判定部42は、線幅の広狭を判定する。実際に線幅が狭い場合は、小領域内に輪郭がほぼ平行に存在するため、小領域内で同方向上に立ち上がり及び立ち下がりの両方が存在する(図3(a))。一方、線幅が広い場合は、立ち上がり又は立ち下がりのどちらか一方のみが画像マスクに現れる(図3(b))。従って、注目画素(i,j)について水平方向成分又は垂直方向成分、又はその何れにも、同方向上の立ち上がり及び立ち下がりの両方がマスク内に存在する場合は、文字又は線画の線幅が狭いと判定する。即ち、flag_upx 及びflag_downx が何れもtrueである場合、若しくはflag_upy 及びflag_downy が何れもtrueである場合、又はflag_upx 及びflag_downx が何れもtrueであり、且つflag_upy 及びflag_downy が何れもtrueである場合は線幅が狭いと判定する。線幅判定部4
2は、判定結果を示す判定信号を総合判定部47へ出力する。例えば、線幅が狭いと判定した場合は「0」を出力し、線幅が広いと判定された場合は「1」を出力する。
Next, the line width determination unit 42 determines whether the line width is wide or narrow. When the line width is actually narrow, since the contours exist almost in parallel in the small region, both rising and falling are present in the same direction in the small region (FIG. 3A). On the other hand, when the line width is wide, only one of the rising edge and the falling edge appears in the image mask (FIG. 3B). Therefore, when the rising edge and falling edge in the horizontal direction component and / or the vertical direction component of the target pixel (i, j) are both present in the mask, the line width of the character or line drawing is narrow. Is determined. That is, when Flag_up x and Flag_down x are both true, then or if Flag_up y and Flag_down y are both true, the or Flag_up x and Flag_down x is any is true, and Flag_up y and Flag_down y is any Is true, it is determined that the line width is narrow. Line width determination unit 4
2 outputs a determination signal indicating the determination result to the comprehensive determination unit 47. For example, “0” is output when it is determined that the line width is narrow, and “1” is output when it is determined that the line width is wide.

次に色判定について説明する。本発明では、文字の線幅が狭い場合と広い場合とで異なる処理で色判定する。実施の形態1では、ASICでの高速処理のために二つの異なる処理を並列に行い、二つの処理の結果の何れを採用するかを文字の線幅の広狭の判定結果で選択する構成とする。   Next, color determination will be described. In the present invention, the color is determined by different processing depending on whether the line width of the character is narrow or wide. In the first embodiment, two different processes are performed in parallel for high-speed processing in the ASIC, and which of the two processing results is used is selected based on the determination result of the character line width. .

まず、文字の線幅が狭い場合の色判定の処理について説明する。図4は、線幅の狭い黒文字での各色成分間で生じるずれを示す分布図である。夫々の横軸は領域内の任意の位置を示し、縦軸は各色成分間の濃度を255から0の値で示す。濃度は、数値が255である場合が最も薄くて白を表し、数値が0である場合が最も濃い。図4(a)は、線幅の狭い黒文字の実際の各色成分の濃度を示す。無彩色の場合は、何れの位置でもRGBの各色成分間で濃度は等しい。線幅が狭いので領域内で濃度の立ち上がり及び立ち下がりの両方が現れている。図4(d)は、比較のため線幅の狭い色文字の各色成分の濃度を示す。有彩色の場合は、RGBの各色成分の濃度は、その文字の色の特性によって異なる。   First, the color determination process when the line width of a character is narrow will be described. FIG. 4 is a distribution diagram showing a shift that occurs between each color component in a black character with a narrow line width. Each horizontal axis represents an arbitrary position in the region, and the vertical axis represents the density between the color components as a value from 255 to 0. The density is the lightest when the numerical value is 255 and white, and the darkest when the numerical value is 0. FIG. 4A shows the actual density of each color component of a black character having a narrow line width. In the case of an achromatic color, the density is equal among the RGB color components at any position. Since the line width is narrow, both rising and falling of the density appear in the region. FIG. 4D shows the density of each color component of a color character having a narrow line width for comparison. In the case of a chromatic color, the density of each color component of RGB varies depending on the color characteristics of the character.

図4(b)は、カラー画像入力装置11での原稿の読み取りの際に画素ずれが発生した場合の黒文字の各色成分の濃度を示す。RGBの各色成分の濃度は等しいものの、本来は同位置で検出されるべき各色成分の濃度のピーク位置が、R信号は左側へ、B信号は右側へ位置をずらして検出される。そのため、本来黒又はグレーの画素が、左側では赤みがかった画素と判定され、右側では青みがかった画素と判定されることとなる。線幅が狭いために画素ずれの影響が大きく、濃度が均等となる部分が失われており無彩色と判定できる画素がないため、有彩色領域に属すると誤って判定される。   FIG. 4B shows the density of each color component of the black character when a pixel shift occurs when the color image input apparatus 11 reads the document. Although the density of each RGB color component is equal, the peak position of the density of each color component that should be detected at the same position is detected by shifting the position of the R signal to the left and the B signal to the right. Therefore, an original black or gray pixel is determined to be a reddish pixel on the left side, and is determined to be a bluish pixel on the right side. Since the line width is narrow, the influence of pixel shift is large, the portion where the density is uniform is lost, and there is no pixel that can be determined as an achromatic color, so that it is erroneously determined to belong to the chromatic color region.

図4(c)は、カラー画像入力装置11のMTFに差がある場合の黒文字の各色成分の濃度を示す。RGBの各色成分の濃度のピークは同位置で検出されるものの、本来は等しい濃度のピーク値が異なる値で検出される。図4(c)で例示する場合では、R信号はG信号と比較してピーク幅が広がっており、ピーク値が低くなっている。B信号は更にピーク幅が広がっておりピーク値が低くなっている。そのため、実際は黒又はグレーの画素が、色バランスを崩して検出される。黒画素として検出される画素がほぼ存在しないため、有彩色領域に属すると誤って判定される場合がある。   FIG. 4C shows the density of each color component of the black character when there is a difference in the MTF of the color image input device 11. Although the peak of the density of each color component of RGB is detected at the same position, the peak value of the same density is originally detected as a different value. In the case illustrated in FIG. 4C, the R signal has a wider peak width and a lower peak value than the G signal. The B signal has a wider peak width and a lower peak value. Therefore, in actuality, black or gray pixels are detected with the color balance lost. Since there are almost no pixels detected as black pixels, it may be erroneously determined to belong to the chromatic color region.

第一色判定部43では、上述のように線幅が狭い場合に対応する処理が行われる。第1色判定部43は、注目画素(i,j)を中心とした7×7の大きさである矩形のマスクを設定して(式13)、該マスクに含まれる画素の濃度を用いて色判定を行う。線幅が狭い場合は、無彩色領域では、実際のRGB信号の濃度のピーク値及びピーク幅は等しい(図4(a))。画素ずれが発生した場合もピーク位置がずれているのみであるため(図4(b))、そのピーク値及びピーク幅は等しい。MTFに差がある場合は、ピーク値が低くなりピーク幅が広くなるため(図4(c))、ピーク全体の濃度の積分量は他の色成分とほぼ等しい。   The first color determination unit 43 performs processing corresponding to the case where the line width is narrow as described above. The first color determination unit 43 sets a rectangular mask having a size of 7 × 7 with the target pixel (i, j) as the center (Equation 13), and uses the density of the pixels included in the mask. Perform color determination. When the line width is narrow, the actual RGB signal density peak value and peak width are the same in the achromatic region (FIG. 4A). Even when a pixel shift occurs, only the peak position is shifted (FIG. 4B), so the peak value and the peak width are equal. When there is a difference in MTF, the peak value becomes lower and the peak width becomes wider (FIG. 4C), so that the integrated amount of the density of the entire peak is substantially equal to the other color components.

Figure 2007329662
Figure 2007329662

この特徴を利用し、第一色判定部43は、まず、マスクに含まれる49画素のRGB信号の各色成分の平均値を算出する(式14)。無彩色領域に属する場合は、マスク内のRGB信号の平均値は各色成分間で等しくなるはずであるため、各色成分間の差分は0又は微小であるはずである。一方、有彩色領域に属する場合は、マスク内のRGB信号の平均値は、色彩によって異なるはずであるため各色成分間の差分は微小ではない値であるはずである。従って、第一色判定部43では、平均値のRGBの各色成分間での最大値と、平均値のRGBの色成分間での最小値との差分を特徴量Para1 として算出する(式15)。 Using this feature, the first color determination unit 43 first calculates the average value of each color component of the 49-pixel RGB signal included in the mask (Formula 14). In the case of belonging to the achromatic color region, the average value of the RGB signals in the mask should be equal between the respective color components, so the difference between the respective color components should be 0 or very small. On the other hand, when belonging to the chromatic color region, the average value of the RGB signals in the mask should be different depending on the color, so the difference between each color component should be a non-small value. Therefore, the first color determination unit 43 calculates the difference between the maximum value between the RGB components of the average value and the minimum value between the RGB components of the average value as the feature value Para 1 (Formula 15). ).

Figure 2007329662
Figure 2007329662

Figure 2007329662
Figure 2007329662

第一色判定部43は、算出した特徴量Para1 に対して閾値Tcolor1 を設定し、Para1 が閾値Tcolor1 以上である場合は、有彩色領域に属すると判定し、またPara1 が閾値Tcolor1 未満である場合は、無彩色領域に属すると判定する(式16)。第一色判定部43は、判定結果を総合文字判定部45へ出力する。例えば、有彩色領域に属すると判定した場合は「1」を出力し、無彩色領域に属すると判定した場合は「0」を出力する。 The first color determination unit 43 sets a threshold value T color1 for the calculated feature amount Para 1 and determines that it belongs to a chromatic color region if Para 1 is equal to or greater than the threshold value T color 1. If it is less than Tcolor1 , it is determined that it belongs to the achromatic region (Formula 16). The first color determination unit 43 outputs the determination result to the comprehensive character determination unit 45. For example, “1” is output when it is determined that it belongs to the chromatic color area, and “0” is output when it is determined that it belongs to the achromatic color area.

Figure 2007329662
Figure 2007329662

注目画素のみで局所的に色成分間での最大値と、最小値との差分を用いて判定する場合は、画素ずれ及びMTFの差による注目画素での色成分間での差分が大きくなり、実際は黒文字領域である領域を、色文字領域と誤って判別してしまう場合があった。しかし、上述の特徴量による判定をすることにより、画素ずれによる位置方向のずれについては、ずれた線幅をも全体を覆って算出することが可能であるために、画素ずれを吸収することができる。また、MTFの差も、濃度のピーク幅の広がりをも含めて算出が可能であるために、MTFの差によるずれを吸収することができる。従って、画素ずれ及びMTFの差を吸収し、色判定の精度を向上することが可能である。   When the determination is made using the difference between the maximum value and the minimum value between the color components locally with only the target pixel, the difference between the color components at the target pixel due to the pixel shift and the difference in MTF becomes large. In some cases, an area that is actually a black character area is mistakenly identified as a color character area. However, by making the determination based on the above-described feature amount, the displacement in the position direction due to the pixel displacement can be calculated so as to cover the entire line width as well, so that the pixel displacement can be absorbed. it can. Further, since the difference in MTF can be calculated including the broadening of the peak width of the concentration, the deviation due to the difference in MTF can be absorbed. Accordingly, it is possible to absorb the pixel shift and the difference between the MTFs and improve the accuracy of color determination.

一方、文字の線幅が広い場合の色判定の処理について説明する。図5は、線幅の広い黒文字での各色成分間で生じるずれを示す分布図である。夫々の横軸は領域内の任意の位置を示し、縦軸は各色成分間の濃度を255から0の値で示す。濃度が255である場合が最も薄く、白を表す。濃度が0である場合が最も濃い。図5(a)は、線幅の広い黒文字のエッジ部の実際の各色成分の濃度を示す。無彩色の場合は、何れの位置でもRGBの各色成分の濃度は等しい。線幅が広いので領域内で濃度の立ち上がりのみが現れている。図5(d)は、比較のため線幅の広い色文字の各色成分の濃度を示す。   On the other hand, a color determination process when the line width of a character is wide will be described. FIG. 5 is a distribution diagram showing a shift that occurs between each color component in a black character having a wide line width. Each horizontal axis represents an arbitrary position in the region, and the vertical axis represents the density between the color components as a value from 255 to 0. A density of 255 is the lightest and represents white. The darkest case is 0. FIG. 5A shows the actual density of each color component at the edge of a black character having a wide line width. In the case of an achromatic color, the density of each color component of RGB is equal at any position. Since the line width is wide, only the rise of density appears in the region. FIG. 5D shows the density of each color component of a color character having a wide line width for comparison.

図5(b)は、カラー画像入力装置11での原稿の読み取りの際に画素ずれが発生した場合の黒文字の各色成分の濃度を示す。本来は同位置で検出されるべき各色成分の立ち上がり位置が、R信号は左側へ、B信号は右側へ位置をずらして検出される。そのため、本来グレーの画素が、赤みがかった画素と判定され、有彩色領域に属すると誤って判定される場合がある。   FIG. 5B shows the density of each color component of the black character when a pixel shift occurs when the original is read by the color image input device 11. Originally, the rising position of each color component to be detected at the same position is detected by shifting the position of the R signal to the left side and the B signal to the right side. For this reason, an originally gray pixel may be determined to be a reddish pixel and erroneously determined to belong to a chromatic color region.

図5(c)は、カラー画像入力装置11のMTFに差がある場合の黒文字の各色成分の濃度を示す。濃度のピーク幅が広がっているために、その立ち上がり部分では、実際は濃度が等しくグレーの画素が、マスク全体に渡り色バランスを崩して検出される。無彩色の画素として検出される画素がほぼ存在しないため、有彩色領域に属すると誤って判定される場合がある。   FIG. 5C shows the density of each color component of the black character when there is a difference in the MTF of the color image input device 11. Since the peak width of the density is widened, at the rising portion, gray pixels that are actually equal in density are detected with the color balance lost over the entire mask. Since there are almost no pixels detected as achromatic pixels, it may be erroneously determined to belong to the chromatic color region.

第二色判定部44では、上述のように線幅が広い場合に対応する処理が行われる。第二色判定部44は、注目画素(i,j)を中心とした7×7の大きさである矩形のマスクを設定して、該マスクに含まれる画素の濃度を用いて色判定を行う。線幅が広い場合は、無彩色領域では、実際のRGB信号の濃度は、立ち上がりの部分全体に渡って等しい(図5(a))。画素ずれが発生した場合は、濃度の立ち上がりの曲線がそのまま位置をずらしており、文字のエッジのように濃度の立ち上がりの勾配が急であるほど、その位置のずれが濃度に大きな影響を及ぼす(図5(b))。しかし、画素ずれではピーク値は等しいためにピーク値に近い立ち上がり曲線の勾配が緩い部分は、濃度の差は少ない(図5(b))。同様に、立ち上がりの曲線の立ち上がり始めの部分は勾配が緩いため、画素ずれによる濃度の差が少ない。MTFに差がある場合は、濃度の立ち上がり及び立ち下がりの勾配が鈍るため、位置によっては実際の濃度とのずれは大きいが(図5(c))、ピーク値に近づくにつれて実際の濃度とのずれは小さくなる。   The second color determination unit 44 performs processing corresponding to the case where the line width is wide as described above. The second color determination unit 44 sets a rectangular mask having a size of 7 × 7 with the target pixel (i, j) as the center, and performs color determination using the density of the pixels included in the mask. . When the line width is wide, in the achromatic region, the actual RGB signal density is the same over the entire rising portion (FIG. 5A). When a pixel shift occurs, the position of the density rising curve is shifted as it is, and as the gradient of the density rising becomes steep as in the edge of a character, the shift in the position has a greater effect on the density ( FIG. 5B). However, since the peak values are equal in pixel shift, the difference in density is small in the portion where the slope of the rising curve close to the peak value is gentle (FIG. 5B). Similarly, since the slope at the beginning of the rising curve is gentle, there is little difference in density due to pixel shift. When there is a difference in MTF, the gradient of the rise and fall of the concentration is dull, so the deviation from the actual concentration is large depending on the position (FIG. 5 (c)), but the difference from the actual concentration becomes closer to the peak value. Deviation is reduced.

この特徴を利用し、第二色判定部44は、まず、マスクに含まれる49画素のRGB信号の各色成分の最小値つまり濃度の最大値を抽出する(式17)。無彩色領域に属する場合は、信号の最小値は各色成分間で等しくなるため、色成分間の差分は0又は微小であるはずである。一方、有彩色領域に属する場合は、マスク内のRGB信号の最小値は、色彩によって異なるため、各色成分間の差分は微小ではない値である。従って、第二色判定部44では、最小値のRGBの各色成分間での最大値と、最小値のRGBの各色成分間での最小値との差分を特徴量Para2 として算出する(式18)。 Using this feature, the second color determination unit 44 first extracts the minimum value of each color component of the RGB signal of 49 pixels included in the mask, that is, the maximum value of density (Equation 17). When belonging to the achromatic color region, the minimum value of the signal is equal between the color components, so the difference between the color components should be 0 or very small. On the other hand, when belonging to the chromatic color region, the minimum value of the RGB signal in the mask differs depending on the color, and therefore the difference between the color components is not a small value. Therefore, the second color determination unit 44 calculates a difference between the maximum value between the RGB color components having the minimum value and the minimum value between the RGB color components having the minimum value as the feature amount Para 2 (Formula 18). ).

Figure 2007329662
Figure 2007329662

Figure 2007329662
Figure 2007329662

第二色判定部44は、算出した特徴量Para2 に対して閾値Tcolor2 を設定し、Para2 が閾値Tcolor2 以上である場合は、有彩色領域に属すると判定し、またPara2 が閾値Tcolor2 未満である場合は、無彩色領域に属すると判定する(式19)。第二色判定部44は、判定結果を総合文字判定部45へ出力する。例えば、有彩色領域に属すると判定した場合は「1」を出力し、無彩色領域に属すると判定した場合は「0」を出力する。 The second color determination unit 44 sets a threshold value T color2 for the calculated feature amount Para 2 , and determines that it belongs to a chromatic color region when Para 2 is equal to or greater than the threshold value T color 2 , and Para 2 is a threshold value If it is less than Tcolor2 , it is determined that it belongs to the achromatic region (Formula 19). The second color determination unit 44 outputs the determination result to the comprehensive character determination unit 45. For example, “1” is output when it is determined that it belongs to the chromatic color area, and “0” is output when it is determined that it belongs to the achromatic color area.

Figure 2007329662
Figure 2007329662

注目画素のみで局所的に各色成分間での最大値と、最小値との差分を用いて判定する場合は、画素ずれ及びMTFの差による注目画素での各色成分間の差分が大きくなり、実際は黒文字領域である領域を、色文字領域に属すると誤って判別してしまう場合があった。しかし、上述の特徴量による判定をすることにより、無彩色領域での画素ずれ及びMTFの差の影響を受けずに判定をし、色判定の精度を向上することが可能である。   When the determination is made by using the difference between the maximum value and the minimum value between each color component locally only by the pixel of interest, the difference between the color components at the pixel of interest due to the pixel shift and the difference in MTF increases. In some cases, a black character area is erroneously determined to belong to a color character area. However, by performing the determination based on the above-described feature amount, it is possible to perform the determination without being affected by the pixel shift and the MTF difference in the achromatic color region, and to improve the accuracy of the color determination.

総合文字判定部45は、文字判定部41から入力される文字領域か否かの判定結果と、線幅判定部42から入力される線幅が狭いか広いかの判定結果と、第一色判定部43及び第二色判定部44から入力される有彩色であるか無彩色であるかの判定結果とに基づいて、注目画素が黒文字領域に属するか、色文字領域に属するか、又は文字領域以外であるかを判定する。総合文字判定部45は、線幅判定部42で線幅が狭いと判定された場合は第一色判定部43からの判定結果を採用し、線幅判定部42で線幅が広いと判定された場合は第二色判定部44からの判定結果を採用する。   The comprehensive character determination unit 45 determines whether or not the character area is input from the character determination unit 41, determines whether the line width input from the line width determination unit 42 is narrow or wide, and determines the first color. The target pixel belongs to the black character region, the color character region, or the character region based on the chromatic color or achromatic color determination result input from the unit 43 and the second color determination unit 44 It is determined whether it is other than. The comprehensive character determination unit 45 adopts the determination result from the first color determination unit 43 when the line width determination unit 42 determines that the line width is narrow, and the line width determination unit 42 determines that the line width is wide. In such a case, the determination result from the second color determination unit 44 is adopted.

図6は、総合文字判定部45での判定例を示す説明図である。文字判定部41で、文字領域でないと判断された場合は(文字判定部結果:「0」)、線幅判定部42、第一色判定部43、第二色判定部44の結果に関わらず文字領域以外の領域に属すると判定される。文字判定部41で文字領域であると判定された場合で(文字判定部結果:「1」)、線幅判定部42で文字の線幅が狭いと判定されたときは(線幅判定部結果:「0」)、第一色判定部43の結果を採用し、第一色判定部43の結果が無彩色であるときは(第一色判定部結果:「0」)、黒文字領域に属すると判定され、第一色判定部43の結果が有彩色であるときは(第一色判定部結果:「1」)、色文字領域に属すると判定される。また、文字判定部41で文字領域であると判定された場合で(文字判定部結果:「1」)、線幅判定部42で文字の線幅が広いと判定されたときは(線幅判定部結果:「1」)、第二色判定部44の結果を採用し、第二色判定部44の結果が無彩色であるときは(第二色判定部結果:「0」)、黒文字領域に属すると判定され、第二色判定部44の結果が有彩色であるときは(第二色判定部結果:「1」)、色文字領域に属すると判定される。総合文字判定部45での判定結果は、例えば黒文字領域に属する場合は2進数で「010」、色文字領域に属する場合は「011」、文字領域以外である場合は「000」と3ビットの信号として生成され、総合判定部47に入力される。   FIG. 6 is an explanatory diagram showing a determination example in the comprehensive character determination unit 45. When the character determination unit 41 determines that the region is not a character region (character determination unit result: “0”), regardless of the results of the line width determination unit 42, the first color determination unit 43, and the second color determination unit 44. It is determined that it belongs to an area other than the character area. When it is determined that the character area is a character area (character determination unit result: “1”) and the line width determination unit 42 determines that the line width of the character is narrow (line width determination unit result) : “0”), the result of the first color determination unit 43 is adopted, and when the result of the first color determination unit 43 is an achromatic color (first color determination unit result: “0”), it belongs to the black character region When the result of the first color determination unit 43 is a chromatic color (first color determination unit result: “1”), it is determined that it belongs to the color character area. Further, when the character determination unit 41 determines that the character area is included (character determination unit result: “1”), and the line width determination unit 42 determines that the line width of the character is wide (line width determination). Part result: “1”), when the result of the second color determination unit 44 is adopted and the result of the second color determination unit 44 is an achromatic color (second color determination unit result: “0”), the black character area When the result of the second color determination unit 44 is a chromatic color (second color determination unit result: “1”), it is determined that it belongs to the color character area. The determination result by the comprehensive character determination unit 45 is, for example, a binary number “010” when belonging to the black character region, “011” when belonging to the color character region, and “000” when other than the character region. A signal is generated and input to the comprehensive determination unit 47.

網点判定部46は、網点領域では小領域における画素信号の変動が大きいこと、又は背景に比べて濃度が高いことを利用して網点領域に属するか否かを判定する。網点判定部46は、文字判定部41同様、入力されたRGB信号に基づいて、注目画素及びその近傍画素を含むM×Nのマスク(例えば3×3)を設定し、該マスク内においてRGBの各色成分に対して以下の判定を行う。   The halftone dot determination unit 46 determines whether or not the halftone dot region belongs to the halftone dot region using the fact that the pixel signal variation in the small region is large or the density is higher than the background. Similar to the character determination unit 41, the halftone dot determination unit 46 sets an M × N mask (for example, 3 × 3) including the pixel of interest and its neighboring pixels based on the input RGB signal, and within the mask, RGB The following determination is performed for each color component.

3×3画素からなるマスク内の9画素に対して平均画素信号レベルDave、最大画素信号レベルDmax、最小画素信号レベルDminを求め、平均画素信号レベルDaveを用いてマスク内の各画素を1又は0に二値化する。二値化されたデータに対して主走査方向(水平方向)及び副走査方向(垂直方向)で夫々0から1への変化点数及び1から0への変化点数を計数し、Kh,Kvとして求める。求めたKh,Kvに対しTh,Tvを夫々所定の閾値として比較し、Kh,Kvが夫々Th,Tvを共に上回った場合は網点領域に属すると判定する。また、下地を網点領域に属する画像であると誤判定することを防ぐために、B1,B2を所定の閾値とし、Dmax,Dminが平均値Daveから夫々閾値B1,B2以上離れている場合は網点領域に属すると判定する。つまり、Kh>Th,Kv>Tv,Dmax−Dave>B1、且つDave−Dmin>B2を満たす場合は、網点領域に属すると判定する。網点判定部46は、判定結果を示す判定信号を総合判定部47へ出力する。例えば、網点領域に属すると判定した場合は「1」を出力し、網点領域に属さないと判定した場合は「0」を出力する。   The average pixel signal level Dave, the maximum pixel signal level Dmax, and the minimum pixel signal level Dmin are obtained for 9 pixels in the mask composed of 3 × 3 pixels, and each pixel in the mask is set to 1 or by using the average pixel signal level Dave. Binarize to 0. With respect to the binarized data, the number of change points from 0 to 1 and the number of change points from 1 to 0 are counted in the main scanning direction (horizontal direction) and the sub-scanning direction (vertical direction), respectively, and obtained as Kh and Kv. . Th and Tv are compared with the obtained Kh and Kv as predetermined threshold values, respectively, and when both Kh and Kv exceed Th and Tv, respectively, it is determined that they belong to the halftone dot region. In order to prevent erroneous determination that the background is an image belonging to a halftone dot area, B1 and B2 are set as predetermined threshold values, and when Dmax and Dmin are separated from the average value Dave by more than the threshold values B1 and B2, respectively, It is determined that it belongs to a point area. That is, when Kh> Th, Kv> Tv, Dmax-Dave> B1 and Dave-Dmin> B2 are satisfied, it is determined to belong to the halftone dot region. The halftone dot determination unit 46 outputs a determination signal indicating the determination result to the comprehensive determination unit 47. For example, “1” is output when it is determined that it belongs to the halftone area, and “0” is output when it is determined that it does not belong to the halftone area.

総合判定部47は、総合文字判定部45及び網点判定部46から入力される判定結果に基づいて、注目画素が黒文字領域に属するか若しくは色文字領域に属するか、網点領域に属するか、又はその他の領域に属するかを判定する。図7は、総合判定部47での判定例を示す説明図である。判定結果は、例えば黒文字領域に属する場合は2進数で「010」、色文字領域に属する場合は「011」、網点領域に属する場合は「100」、その他の領域に属する場合は「000」と夫々3ビットの領域識別信号として、色補正部5、黒生成下色除去部6、空間フィルタ処理部7、及び階調再現処理部9へ入力される。   Based on the determination results input from the comprehensive character determination unit 45 and the halftone dot determination unit 46, the comprehensive determination unit 47 determines whether the target pixel belongs to the black character region, the color character region, or the halftone dot region, Alternatively, it is determined whether it belongs to another area. FIG. 7 is an explanatory diagram illustrating an example of determination by the comprehensive determination unit 47. The determination result is, for example, a binary number “010” if it belongs to a black character area, “011” if it belongs to a color character area, “100” if it belongs to a halftone area, and “000” if it belongs to another area. Are input to the color correction unit 5, the black generation and under color removal unit 6, the spatial filter processing unit 7, and the gradation reproduction processing unit 9 as 3-bit region identification signals.

実施の形態1の画像処理装置10は、前記各処理を原稿画像全体に対して行う。以上のような構成とすることにより、原稿の文字領域に属する画素に対しては、文字の線幅により色判定方法の結果を適宜採用し、マスク等の局所部分で、線幅の広狭によって異なる特徴を有した色成分分布が現れることに対応した色判定をすることができる。実施の形態1では、線幅が狭い場合は、MTFの差によって各色成分のバランスが崩れることによる影響を受け易いが、そのMTFの差による影響を吸収する色判定方法の判定結果を採用するため、色判定の精度を向上することが可能である。また、線幅が狭い場合に採用されるMTFの差による影響を吸収する色判定方法は、線幅が広い場合は適さず、画素ずれの影響を大きく受ける。従って、線幅が広い場合は、画素ずれの影響を避けることが可能である色判定方法の判定結果を採用し、色判定の精度を向上することが可能である。尚、他に、線幅の広狭による特徴に適した色判定の方式を採用してもよい。   The image processing apparatus 10 according to the first embodiment performs the above processes on the entire document image. By adopting the above configuration, for the pixels belonging to the character area of the document, the result of the color determination method is appropriately adopted depending on the line width of the character, and varies depending on the line width in the local portion such as a mask. Color determination corresponding to the appearance of a color component distribution having characteristics can be performed. In the first embodiment, when the line width is narrow, it is easily affected by the balance of each color component being lost due to the difference in MTF, but the determination result of the color determination method that absorbs the influence due to the difference in MTF is adopted. It is possible to improve the accuracy of color determination. Also, the color determination method that absorbs the influence due to the difference in MTF adopted when the line width is narrow is not suitable when the line width is wide, and is greatly affected by pixel shift. Therefore, when the line width is wide, it is possible to adopt the determination result of the color determination method that can avoid the influence of pixel shift and improve the accuracy of color determination. In addition, a color determination method suitable for the feature depending on the line width may be adopted.

尚、実施の形態1では、高速処理のために線幅判定部42、第一色判定部43、及び第二色判定部44を並列に設けて、夫々の判定結果に基づいて総合文字判定部45で、注目画素が黒文字領域に属するか、色文字領域に属するか、又は文字領域以外であるかを判定したが、線幅判定部42での判定結果に基づいて、第一色判定部43又は第二色判定部44の何れで色判定を行うかを選択した後に色判定処理を行う構成としてもよい。   In the first embodiment, the line width determination unit 42, the first color determination unit 43, and the second color determination unit 44 are provided in parallel for high-speed processing, and the comprehensive character determination unit is based on the respective determination results. In 45, it is determined whether the target pixel belongs to the black character region, the color character region, or a region other than the character region. Based on the determination result in the line width determination unit 42, the first color determination unit 43 is determined. Alternatively, the color determination process may be performed after selecting which of the second color determination units 44 performs the color determination.

(実施の形態2)
実施の形態1でのASICでの処理を、コンピュータで実行可能なコンピュータプログラムとして構成し、該コンピュータプログラムに基づいてコンピュータのCPUが同様の処理を実行することも可能である。図8は、実施の形態2におけるコンピュータシステムのブロック図である。
(Embodiment 2)
The processing in the ASIC in the first embodiment can be configured as a computer program that can be executed by a computer, and the CPU of the computer can execute similar processing based on the computer program. FIG. 8 is a block diagram of a computer system according to the second embodiment.

実施の形態2におけるコンピュータシステムは画像処理装置20と、カラー画像入力装置30と、カラー画像出力装置50とで構成される。画像処理装置20は、カラー画像出力装置50を制御するためのプリンタドライバ231を記憶しており、カラー画像入力装置30で読み取った画像情報を受け付け、プリンタドライバ231に基づいて画像情報をカラー画像出力装置50に出力し、カラー画像出力装置50は入力された画像情報に基づいて画像をシートに形成する。   The computer system according to the second embodiment includes an image processing device 20, a color image input device 30, and a color image output device 50. The image processing apparatus 20 stores a printer driver 231 for controlling the color image output apparatus 50, receives image information read by the color image input apparatus 30, and outputs the image information based on the printer driver 231 as a color image output. The color image output device 50 forms an image on a sheet based on the input image information.

画像処理装置20は、PC(Personal Computer)であり、少なくとも、各種制御を行うCPU21と、各種ハードウェア間を接続する内部バス22と、各種ハードウェアを制御するための各種ドライバを記憶する記憶部23と、CPU21の演算処理の過程で一時的に発生する情報を記憶する一時記憶領域24と、カラー画像入力装置30と接続され画像データの入力を受け付ける入力部25と、モニタを有する表示部26と、カラー画像出力装置50と通信する通信ポート27とを備える。   The image processing apparatus 20 is a PC (Personal Computer), and stores at least a CPU 21 that performs various controls, an internal bus 22 that connects various hardware, and various drivers that control various hardware. 23, a temporary storage area 24 for storing information temporarily generated in the course of arithmetic processing by the CPU 21, an input unit 25 connected to the color image input device 30 and receiving input of image data, and a display unit 26 having a monitor And a communication port 27 that communicates with the color image output device 50.

カラー画像入力装置30は、CCDを備えるフラットベッドスキャナであり、A/D変換部、シェーディング補正部、及び入力階調補正部を備え、読み込んだ画像情報をカラー画像入力装置30の特性に基づいて補正したRGBのデジタル信号を出力する。カラー画像出力装置50は電子写真方式又はインクジェット方式等のプリンタであり、画像処理装置20から入力されたデジタルカラー信号に基づいてシート上に画像を形成する。   The color image input device 30 is a flatbed scanner including a CCD, and includes an A / D conversion unit, a shading correction unit, and an input tone correction unit, and reads the read image information based on the characteristics of the color image input device 30. The corrected RGB digital signal is output. The color image output device 50 is a printer such as an electrophotographic system or an inkjet system, and forms an image on a sheet based on a digital color signal input from the image processing apparatus 20.

プリンタドライバ231は、CPU21がカラー画像出力装置50を制御するためのソフトウェアプログラムである。CPU21は、プリンタドライバ231に基づく処理を行うことで、カラー画像出力装置50の性能及び階調再現性等に適した処理を施した画像情報を、カラー画像出力装置50へ出力することができる。   The printer driver 231 is a software program for the CPU 21 to control the color image output device 50. The CPU 21 can output to the color image output device 50 image information that has been subjected to processing suitable for the performance and gradation reproducibility of the color image output device 50 by performing processing based on the printer driver 231.

プリンタドライバ231は、領域判別処理部232と、色補正部233と、空間フィルタ処理部234と、階調再現処理部235と、プリンタ言語翻訳部236とを有している。   The printer driver 231 includes an area determination processing unit 232, a color correction unit 233, a spatial filter processing unit 234, a gradation reproduction processing unit 235, and a printer language translation unit 236.

領域判別処理部232は、入力画像のRGB信号に基づき、入力画像中の各画素を黒文字領域、色文字領域、網点領域、又は何れの領域にも属さないその他の領域として判別する。CPU21は領域判別処理部232で求めた判別結果に基づき、画素が何れの領域に属するかを示す領域識別情報を一時記憶として記憶し、色補正部233、空間フィルタ処理部234、及び階調再現処理部235に入力する。   Based on the RGB signal of the input image, the region determination processing unit 232 determines each pixel in the input image as a black character region, a color character region, a halftone dot region, or any other region that does not belong to any region. Based on the determination result obtained by the region determination processing unit 232, the CPU 21 stores region identification information indicating which region the pixel belongs to as a temporary storage, the color correction unit 233, the spatial filter processing unit 234, and the gradation reproduction. Input to the processing unit 235.

色補正部233は、入力画像のRGB信号と、前記領域識別情報とに基づいて、印刷用の加法混色のCMY信号に変換し、忠実に色を再現するため、カラー画像出力装置50の不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行う。更に、色補正部233は、変換したCMY信号から黒色を生成した新たなCMYK信号へ変換する。CPU21は、色補正部233にRGB信号及び前記領域識別情報を入力することで、処理後のCMYK信号を得る。   Based on the RGB signal of the input image and the region identification information, the color correction unit 233 converts the color mixture into an additive color mixture CMY signal for printing, and faithfully reproduces the color. A process of removing color turbidity based on the spectral characteristics of the CMY color material including the component is performed. Further, the color correction unit 233 converts the converted CMY signal into a new CMYK signal that generates black. The CPU 21 obtains a processed CMYK signal by inputting the RGB signal and the region identification information to the color correction unit 233.

空間フィルタ処理部234は、入力されたCMYK信号と、前記領域識別情報とに基づいて、デジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正することによりカラー画像出力装置50での出力画像のぼやけ又は粒状性劣化を防止する。CPU21は、色補正部233で処理を施したCMYK信号を空間フィルタ処理部234に入力することで、処理後のCMYK信号を得る。   The spatial filter processing unit 234 performs spatial filter processing using a digital filter based on the input CMYK signal and the region identification information, and corrects the spatial frequency characteristics to correct the output image of the color image output device 50. Prevent blurring or graininess degradation. The CPU 21 inputs the CMYK signal processed by the color correction unit 233 to the spatial filter processing unit 234 to obtain a processed CMYK signal.

階調再現処理部235は、入力されたCMYK信号と、前記領域識別情報とに基づいて、カラー画像出力装置50に適合して夫々の階調を再現できるように処理する階調再現処理(中間調生成)を行う。CPU21は、空間フィルタ処理部234で処理を施したCMYK信号を階調再現処理部235に与えることで、処理後のCMYK信号を得る。   The gradation reproduction processing unit 235 performs gradation reproduction processing (intermediate processing) based on the input CMYK signal and the region identification information so as to be adapted to the color image output device 50 and reproduce each gradation. Key generation). The CPU 21 gives the processed CMYK signal by giving the CMYK signal processed by the spatial filter processing unit 234 to the gradation reproduction processing unit 235.

CPU21は、カラー画像入力装置30で読み込んだ画像情報を入力部25を介して取得し、プリンタドライバ231に基づいて上述の各処理を行う。プリンタドライバ231の各処理がされた画像情報を、プリンタドライバ231のプリンタ言語翻訳部236を介してプリンタ言語に変換する。CPU21は、通信ポートドライバ237を介して通信ポート27を制御し、変換後の画像情報をカラー画像出力装置50に出力する。   The CPU 21 acquires image information read by the color image input device 30 via the input unit 25 and performs the above-described processes based on the printer driver 231. The image information processed by the printer driver 231 is converted into a printer language via the printer language translation unit 236 of the printer driver 231. The CPU 21 controls the communication port 27 via the communication port driver 237 and outputs the converted image information to the color image output device 50.

次に、領域判別処理部232における領域判別処理について説明する。実施の形態2における領域判別処理部232は、実施の形態1における領域判別処理部4での処理をコンピュータプログラムで実現するものである。従って、実施の形態1同様に図示しない文字判定部、線幅判定部、第一色判定部、第二色判定部、及び網点判定部を有し、各画素毎に処理を行う。実施の形態2では、コンピュータプログラムとして実現するため、各判定部にRGB信号を同時に入力して判定結果を総合文字判定部及び総合判定部で併せて文字領域を判定するのではなく、各判定部で順番に判定をして文字領域を判定する。図9は、実施の形態2における画像処理装置20のCPU21が、記憶したプリンタドライバ231に基づいて領域判別を行う処理手順を示すフローチャートである。   Next, the area determination process in the area determination processing unit 232 will be described. The area discrimination processing unit 232 according to the second embodiment implements the processing in the area discrimination processing unit 4 according to the first embodiment with a computer program. Therefore, similarly to the first embodiment, the image forming apparatus includes a character determination unit, a line width determination unit, a first color determination unit, a second color determination unit, and a halftone determination unit that are not shown, and performs processing for each pixel. In the second embodiment, in order to be realized as a computer program, RGB signals are simultaneously input to each determination unit, and the determination result is not determined by the comprehensive character determination unit and the comprehensive determination unit. In order, the character area is determined. FIG. 9 is a flowchart illustrating a processing procedure in which the CPU 21 of the image processing apparatus 20 according to the second embodiment performs area determination based on the stored printer driver 231.

CPU21は、入力された画像情報のRGB信号について、各画素に対し注目画素及び近傍画素を含む3×3のマスクを設定し、網点判定部に基づいて注目画素が網点領域に属するか否かを判定する(ステップS11)。網点領域に属する場合は(S11:YES)、領域識別情報を網点領域を示す3ビット二進数「100」と設定し、次の画素について処理をすべく画像全体について処理が終了したか否かを判断する(ステップS16)。網点領域に属さない場合は(S11:NO)、注目画素が文字領域に属するか否かを文字判定部に基づいて判定する(ステップS12)。文字領域に属さない場合は(S12:NO)、領域識別情報をその他領域を示す「001」と設定し、次の画素について処理をすべく画像全体について処理が終了したか否かを判断する(S16)。   The CPU 21 sets a 3 × 3 mask including the target pixel and neighboring pixels for each pixel in the input RGB signal of the image information, and whether the target pixel belongs to the halftone dot area based on the halftone dot determination unit. Is determined (step S11). If it belongs to the halftone dot area (S11: YES), whether or not the process has been completed for the entire image to set the area identification information as a 3-bit binary number “100” indicating the halftone dot area and to process the next pixel. Is determined (step S16). If it does not belong to the halftone dot region (S11: NO), it is determined based on the character determination unit whether or not the pixel of interest belongs to the character region (step S12). If it does not belong to the character area (S12: NO), the area identification information is set to “001” indicating the other area, and it is determined whether or not the process has been completed for the entire image to process the next pixel ( S16).

文字領域に属する場合は(S12:YES)、文字の線幅が狭いか否かを線幅判定部に基づいて判定する(ステップS13)。線幅が狭い場合は(S13:YES)、第一色判定部に基づいて有彩色領域に属するか又は無彩色領域に属するかの色判定をし(ステップS14)、線幅が広い場合は(S13:NO)、第二色判定部に基づいて有彩色領域に属するか又は無彩色領域に属するかの色判定をする(ステップS15)。ステップS14又はステップS15により、無彩色領域に属すると判定された場合は、CPU21は、領域識別情報を黒文字領域を示す「010」に設定し、有彩色領域に属すると判定された場合は、領域識別情報を色文字領域を示す「011」に設定し、次の画素について処理をすべく画像全体について処理が終了したか否かを判断する(S16)。画像全体について処理が終了していない場合は(S16:NO)、CPU21は、処理をステップS11へ戻し、次の画素について各判定処理を行う。画像全体について処理が終了した場合は(S16:YES)、処理を終了する。   If it belongs to the character area (S12: YES), it is determined based on the line width determination unit whether or not the line width of the character is narrow (step S13). If the line width is narrow (S13: YES), it is determined whether the color belongs to the chromatic color region or the achromatic color region based on the first color determination unit (step S14), and if the line width is wide ( S13: NO), based on the second color determination unit, color determination is made as to whether it belongs to the chromatic color region or the achromatic color region (step S15). If it is determined in step S14 or step S15 that the image belongs to an achromatic region, the CPU 21 sets the region identification information to “010” indicating a black character region, and if it is determined that the image belongs to a chromatic color region, the region The identification information is set to “011” indicating the color character area, and it is determined whether or not the processing has been completed for the entire image in order to process the next pixel (S16). If the process has not been completed for the entire image (S16: NO), the CPU 21 returns the process to step S11 and performs each determination process for the next pixel. If the process has been completed for the entire image (S16: YES), the process ends.

プリンタドライバ231に基づく上述の処理により、CPU21は、入力画像の文字領域に属する画素に対して、文字の線幅により、色判定方法を適宜選択することができ、画素ずれ及びMTFの差による影響を吸収して色判定の精度を向上させることができる。従って、CPU21は、カラー画像出力装置50の階調再現性に適する処理を入力画像に施すことができ、文字の再現性の高い出力結果を得ることが可能である。実施の形態2における領域判別処理部232の各判定部での詳細な判定方法については、実施の形態1と同様であるため説明を省く。   Through the above-described processing based on the printer driver 231, the CPU 21 can appropriately select a color determination method for the pixels belonging to the character area of the input image according to the line width of the character, and the influence of pixel deviation and MTF difference. And the accuracy of color determination can be improved. Therefore, the CPU 21 can perform processing suitable for the gradation reproducibility of the color image output device 50 on the input image, and can obtain an output result with high character reproducibility. Since the detailed determination method in each determination unit of the region determination processing unit 232 in the second embodiment is the same as that in the first embodiment, the description thereof is omitted.

実施の形態2においては、予め記憶部に記憶されたプリンタドライバに基づいてCPUが実行する構成としたが、予めプログラムが記憶されたマイクロコンピュータであってもよいし、ROMのようなプログラムメディアであってもよい。   In the second embodiment, the CPU executes a configuration based on a printer driver stored in advance in a storage unit. However, a microcomputer in which a program is stored in advance may be used, or a program medium such as a ROM may be used. There may be.

また、プリンタドライバは、外部記憶装置に記録されており、画像処理装置であるコンピュータが外部記憶装置から取得する構成としてもよい。この場合、外部記憶装置は、プリンタドライバが記憶されている記録媒体であり、磁気テープ若しくはカセットテープ等のテープ媒体、又はフレキシブルディスク若しくはハードディスク等の磁気ディスク、又はCD−ROM、MO、MD、若しくはDVD等の光ディスク、又はマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electorically Erasable Programmable Read Only Memory)、若しくはフラッシュROM等の半導体メモリであってもよい。また、プリンタドライバは、通信ネットワークを介して特定のサーバからダウンロードすることによりコンピュータが取得可能である構成としてもよい。   Further, the printer driver may be recorded in an external storage device and acquired by the computer as the image processing device from the external storage device. In this case, the external storage device is a recording medium in which a printer driver is stored, a tape medium such as a magnetic tape or a cassette tape, a magnetic disk such as a flexible disk or a hard disk, or a CD-ROM, MO, MD, or It may be an optical disc such as a DVD, or a semiconductor memory such as a mask ROM, an EPROM (Erasable Programmable Read Only Memory), an EEPROM (Electrically Erasable Programmable Read Only Memory), or a flash ROM. Further, the printer driver may be configured to be acquired by a computer by downloading from a specific server via a communication network.

また、実施の形態2では、画像を読み取るカラー画像入力装置をフラットベッドスキャナとする構成としたが、フィルムスキャナ又はデジタルカメラとする構成でもよい。また、コンピュータで処理済の画像情報に基づいて画像を形成するカラー画像出力装置をプリンタとする構成としたが、プリンタ機能のほかにコピー機能及びファックス機能を有するデジタル複合機とする構成でもよいし、ディスプレイ等の表示装置であってもよい。   In the second embodiment, the color image input device for reading an image is configured as a flat bed scanner, but may be configured as a film scanner or a digital camera. In addition, the color image output device that forms an image based on image information processed by a computer is configured as a printer, but may be configured as a digital multi-function peripheral having a copy function and a fax function in addition to the printer function. A display device such as a display may be used.

実施の形態2では、入力画像の領域判別処理をPCである画像処理装置で行う構成としたが、画像処理装置で行う各処理をスキャナ等の画像読取装置で行う構成としてもよい。その場合、画像読取装置は、カラー画像入力装置と、A/D変換部と、シェーディング補正部と、入力階調補正部と、領域判別処理部とを備え、読み込んだ画像情報のRGB信号等と領域判別信号とを出力し、色補正部以降の各構成部を備える画像処理装置又はカラー画像出力装置に入力される構成とするのでもよい。   In the second embodiment, the input image region determination process is performed by an image processing apparatus that is a PC. However, each process performed by the image processing apparatus may be performed by an image reading apparatus such as a scanner. In this case, the image reading device includes a color image input device, an A / D conversion unit, a shading correction unit, an input tone correction unit, and an area discrimination processing unit, and an RGB signal or the like of the read image information An area determination signal may be output and input to an image processing apparatus or a color image output apparatus including each component after the color correction unit.

尚、実施の形態1及び2では、線幅判定の際、マスクの大きさを5×5としたが、大きさを変化させることにより線幅の広狭を判定する基準を調整することが可能である。つまり、マスクの大きさを5×5より小さくした場合は、線幅はより狭い場合を狭いと判定し、それまで狭いと判定していた線幅に対しても広いと判定する。5×5より大きくした場合は、線幅はより広い場合を広いと判定し、それまで広いと判定していた線幅に対しても、狭いと判定する。   In the first and second embodiments, the mask size is set to 5 × 5 when determining the line width. However, it is possible to adjust the reference for determining the width of the line width by changing the size. is there. That is, when the size of the mask is smaller than 5 × 5, the case where the line width is narrower is determined to be narrow, and it is determined to be wider than the line width that has been determined to be narrow so far. When the line width is larger than 5 × 5, it is determined that the line width is wider, and it is determined to be narrower than the line width that has been previously determined to be wide.

実施の形態1及び2では、前記各判定部でのマスクの大きさを夫々例示しているが、夫々異なる大きさのマスクとしてもよいことは勿論であり、M×Nの矩形のマスクと限るものではない。また、実施の形態1又は2では、線幅の広狭は所定の範囲内での画素信号レベル変化の立ち上がりと立ち下がりの有無を検知し、立ち上がりと立ち下がりの両者が所定範囲内で存在しているか否かにより判定したが、判定の方法はこれに限るものではない。   In the first and second embodiments, the size of the mask in each of the determination units is illustrated. However, it is of course possible to use masks having different sizes, and the mask is limited to an M × N rectangular mask. It is not a thing. Further, in the first or second embodiment, the width of the line width is detected by detecting the rising or falling of the pixel signal level change within a predetermined range, and both the rising and falling are present within the predetermined range. The determination method is not limited to this.

本発明に係る画像処理装置を備える画像形成装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus including an image processing apparatus according to the present invention. 実施の形態1における画像処理装置の領域判別処理部の構成を示すブロック図である。3 is a block diagram illustrating a configuration of an area determination processing unit of the image processing apparatus according to Embodiment 1. FIG. 実施の形態1における画像処理装置の線幅判定部で設定するマスクの例を示す模式図である。6 is a schematic diagram illustrating an example of a mask set by a line width determination unit of the image processing apparatus according to Embodiment 1. FIG. 線幅の狭い黒文字での各色成分間で生じるずれを示す分布図である。It is a distribution diagram which shows the shift | offset | difference which arises between each color component in the black character with a narrow line | wire width. 線幅の広い黒文字での各色成分間で生じるずれを示す分布図である。It is a distribution diagram which shows the shift | offset | difference which arises between each color component in a black character with a wide line width. 総合文字判定部での判定例を示す説明図である。It is explanatory drawing which shows the example of a determination in a comprehensive character determination part. 総合判定部での判定例を示す説明図である。It is explanatory drawing which shows the example of a determination in a comprehensive determination part. 実施の形態2におけるコンピュータシステムのブロック図である。FIG. 10 is a block diagram of a computer system in a second embodiment. 実施の形態2における画像処理装置のCPUが、記憶したプリンタドライバに基づいて領域判別を行う処理手順を示すフローチャートである。10 is a flowchart illustrating a processing procedure in which the CPU of the image processing apparatus according to the second embodiment performs area determination based on a stored printer driver.

符号の説明Explanation of symbols

10,20 画像処理装置
4,232 領域判別処理部
41 文字判定部
42 線幅判定部
43 第一色判定部
44 第二色判定部
45 総合文字判定部
46 網点判定部
47 総合判定部
21 CPU
231 プリンタドライバ
DESCRIPTION OF SYMBOLS 10,20 Image processing apparatus 4,232 Area | region discrimination | determination process part 41 Character determination part 42 Line width determination part 43 1st color determination part 44 2nd color determination part 45 Comprehensive character determination part 46 Halftone dot determination part 47 Comprehensive determination part 21 CPU
231 Printer Driver

Claims (10)

複数の色成分で表される複数の画素からなる入力画像内の何れか一つの画素を注目画素として、注目画素が文字領域に属するか否かを近傍の画素情報に基づいて判定し、入力画像を複数の領域分類に判別する領域判別手段を備え、判別した領域毎に領域分類に適した処理を入力画像に行う画像処理装置において、
前記領域判別手段は、
文字の線幅を検出する手段と、
検出した線幅の広狭を判定する手段と、
注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定する複数の色判定手段と、
線幅の広狭により、前記複数の色判定手段のうち何れかを選択する手段とを備えること
を特徴とする画像処理装置。
Using any one pixel in the input image composed of a plurality of pixels represented by a plurality of color components as the target pixel, it is determined whether the target pixel belongs to the character area based on neighboring pixel information, and the input image In an image processing apparatus that includes a region discriminating unit that discriminates a plurality of region classifications, and performs processing suitable for the region classification on the input image for each discriminated region,
The region discriminating means
Means for detecting the line width of the character;
Means for determining the width of the detected line width;
A plurality of color determination means for determining whether the target pixel belongs to an achromatic color region or a chromatic color region;
An image processing apparatus comprising: means for selecting one of the plurality of color determination means according to the line width.
前記色判定手段の一は、
注目画素及び近傍画素の濃度の平均値を各色成分毎に算出する手段と、
算出した平均値の色成分間での最大差を特徴量として算出する手段とを備え、
前記特徴量から注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定するようにしてあること
を特徴とする請求項1に記載の画像処理装置。
One of the color determination means is
Means for calculating an average value of the densities of the target pixel and the neighboring pixels for each color component;
Means for calculating, as a feature amount, a maximum difference between color components of the calculated average value,
The image processing apparatus according to claim 1, wherein it is determined whether the target pixel belongs to an achromatic color region or a chromatic color region from the feature amount.
前記色判定手段の一は、
注目画素及び近傍画素の濃度の最小値又は最大値を各色成分毎に算出する手段と、
算出した最小値又は最大値の色成分間での最大差を特徴量として算出する手段とを備え、
前記特徴量から注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定するようにしてあること
を特徴とする請求項1に記載の画像処理装置。
One of the color determination means is
Means for calculating the minimum value or the maximum value of the density of the target pixel and the neighboring pixels for each color component;
Means for calculating the maximum difference between the calculated minimum or maximum color components as a feature amount,
The image processing apparatus according to claim 1, wherein it is determined whether the target pixel belongs to an achromatic color region or a chromatic color region from the feature amount.
複数の色成分で表される複数の画素からなる入力画像内の何れか一つの画素を注目画素として、注目画素が文字領域に属するか否かを近傍の画素情報に基づいて判定し、入力画像を複数の領域分類に判別し、判別した領域毎に領域分類に適した処理を入力画像に行う画像処理方法において、
文字の線幅を検出し、
検出した線幅の広狭を判定し、
線幅の広狭により、注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定する複数の色判定方式から何れかを選択し、
選択した色判定方式での判定により、注目画素が無彩色文字領域に属するか又は有彩色文字領域に属するかを判別すること
を特徴とする画像処理方法。
Using any one pixel in the input image composed of a plurality of pixels represented by a plurality of color components as the target pixel, whether the target pixel belongs to the character area is determined based on neighboring pixel information, and the input image In an image processing method for determining a plurality of region classifications and performing processing suitable for the region classification on the input image for each of the determined regions,
Detect the line width of the text
Determine the width of the detected line width,
Select one of a plurality of color determination methods for determining whether the pixel of interest belongs to an achromatic color region or a chromatic color region depending on the line width.
An image processing method comprising: discriminating whether a pixel of interest belongs to an achromatic character region or a chromatic character region based on determination by a selected color determination method.
前記色判定方式の一は、
注目画素及び近傍画素の濃度の平均値を各色成分毎に算出し、
算出した平均値の色成分間での最大差を特徴量として算出し、
算出した特徴量により注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定すること
を特徴とする請求項4に記載の画像処理方法。
One of the color determination methods is
Calculate the average density of the target pixel and neighboring pixels for each color component,
The maximum difference between the calculated average color components is calculated as a feature value.
The image processing method according to claim 4, wherein it is determined whether the target pixel belongs to an achromatic region or a chromatic region based on the calculated feature amount.
前記色判定方式の一は、
注目画素及び近傍画素の濃度の最小値又は最大値を各色成分毎に算出し、
算出した最小値又は最大値の色成分間での最大差を特徴量として算出し、
算出した特徴量により注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定すること
を特徴とする請求項4に記載の画像処理方法。
One of the color determination methods is
Calculate the minimum value or maximum value of the density of the target pixel and neighboring pixels for each color component,
Calculate the maximum difference between the calculated minimum or maximum color components as the feature amount,
The image processing method according to claim 4, wherein it is determined whether the target pixel belongs to an achromatic region or a chromatic region based on the calculated feature amount.
請求項1乃至3の何れか一つに記載の画像処理装置と、該画像処理装置で処理された入力画像に基づいて画像の形成を行う画像形成手段とを備えること
を特徴とする画像形成装置。
An image forming apparatus comprising: the image processing apparatus according to claim 1; and an image forming unit that forms an image based on an input image processed by the image processing apparatus. .
複数の色成分で表される複数の画素からなる入力画像内の何れか一つの画素を注目画素として、注目画素が文字領域に属するか否かを近傍の画素情報に基づいて判定するステップと、入力画像を複数の領域分類に判別するステップとをコンピュータに実行させるコンピュータプログラムにおいて、
前記コンピュータに、
文字の線幅を検出するステップと、
検出した線幅の広狭を判定するステップと、
注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定する複数の色判定ステップと、
線幅の広狭により、前記複数の色判定ステップから何れかを選択するステップと
を実行させることを特徴とするコンピュータプログラム。
Determining, based on neighboring pixel information, whether any one pixel in an input image composed of a plurality of pixels represented by a plurality of color components is the target pixel, and whether the target pixel belongs to the character region; In a computer program for causing a computer to execute a step of discriminating an input image into a plurality of region classifications,
In the computer,
Detecting the line width of the character;
Determining the width of the detected line width;
A plurality of color determination steps for determining whether the target pixel belongs to an achromatic color region or a chromatic color region;
And a step of selecting one of the plurality of color determination steps depending on whether the line width is wide or narrow.
前記色判定ステップの一は、
注目画素及び近傍画素の濃度の平均値を各色成分毎に算出するステップと、
算出した平均値の色成分間での最大差を特徴量として算出するステップと、
算出した特徴量により注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定するステップと
を実行させることを特徴とする請求項8に記載のコンピュータプログラム。
One of the color determination steps is
Calculating an average value of the densities of the target pixel and neighboring pixels for each color component;
Calculating a maximum difference between color components of the calculated average value as a feature amount;
The computer program according to claim 8, further comprising: determining whether the target pixel belongs to an achromatic color region or a chromatic color region based on the calculated feature amount.
前記色判定ステップの一は、
注目画素及び近傍画素の濃度の最小値又は最大値を各色成分毎に算出するステップと、
算出した最小値又は最大値の色成分間での最大差を特徴量として算出するステップと、
算出した特徴量により注目画素が無彩色領域に属するか又は有彩色領域に属するかを判定するステップと
を実行させることを特徴とする請求項8に記載のコンピュータプログラム。
One of the color determination steps is
Calculating a minimum value or a maximum value of the density of the target pixel and neighboring pixels for each color component;
Calculating the maximum difference between the calculated minimum or maximum color components as a feature amount; and
The computer program according to claim 8, further comprising: determining whether the target pixel belongs to an achromatic color region or a chromatic color region based on the calculated feature amount.
JP2006158611A 2006-06-07 2006-06-07 Image processing apparatus, image processing method, image forming apparatus, and computer program Expired - Fee Related JP4498316B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006158611A JP4498316B2 (en) 2006-06-07 2006-06-07 Image processing apparatus, image processing method, image forming apparatus, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006158611A JP4498316B2 (en) 2006-06-07 2006-06-07 Image processing apparatus, image processing method, image forming apparatus, and computer program

Publications (2)

Publication Number Publication Date
JP2007329662A true JP2007329662A (en) 2007-12-20
JP4498316B2 JP4498316B2 (en) 2010-07-07

Family

ID=38929845

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006158611A Expired - Fee Related JP4498316B2 (en) 2006-06-07 2006-06-07 Image processing apparatus, image processing method, image forming apparatus, and computer program

Country Status (1)

Country Link
JP (1) JP4498316B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012138861A (en) * 2010-12-27 2012-07-19 Ricoh Co Ltd Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002271646A (en) * 2001-03-13 2002-09-20 Ricoh Co Ltd Thin-line pixel chromatic/achromatic decision method and recording medium
JP2003224718A (en) * 2002-01-30 2003-08-08 Sharp Corp Image processing method and image processor
JP2004214908A (en) * 2002-12-27 2004-07-29 Sharp Corp Image processing apparatus and image forming apparatus provided with the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002271646A (en) * 2001-03-13 2002-09-20 Ricoh Co Ltd Thin-line pixel chromatic/achromatic decision method and recording medium
JP2003224718A (en) * 2002-01-30 2003-08-08 Sharp Corp Image processing method and image processor
JP2004214908A (en) * 2002-12-27 2004-07-29 Sharp Corp Image processing apparatus and image forming apparatus provided with the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012138861A (en) * 2010-12-27 2012-07-19 Ricoh Co Ltd Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium

Also Published As

Publication number Publication date
JP4498316B2 (en) 2010-07-07

Similar Documents

Publication Publication Date Title
US7773776B2 (en) Image processing apparatus, image forming apparatus, image reading process apparatus, image processing method, image processing program, and computer-readable storage medium
JP4495197B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program
JP4166744B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP4170353B2 (en) Image processing method, image processing apparatus, image reading apparatus, image forming apparatus, program, and recording medium
JP4496239B2 (en) Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium
US8411322B2 (en) Image processing apparatus, image forming apparatus, image processing method and recording medium on which image processing program is recorded
US8345310B2 (en) Halftone frequency determination method and printing apparatus
US20070236707A1 (en) Image processing apparatus, image processing method and image processing program
JP4402090B2 (en) Image forming apparatus, image forming method, program, and recording medium
US20060152765A1 (en) Image processing apparatus, image forming apparatus, image reading process apparatus, image processing method, image processing program, and computer-readable storage medium
JP4437825B2 (en) Image processing method, image processing apparatus, image forming apparatus, program, and recording medium
JP2005286571A (en) Image processing apparatus, image forming apparatus provided with image processing apparatus, image processing method, image processing program, and recording medium with image processing program recorded thereon
JP4596964B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP4545766B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing program, and recording medium
JP7123752B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP4549227B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP4498316B2 (en) Image processing apparatus, image processing method, image forming apparatus, and computer program
JP4740913B2 (en) Image processing apparatus, image processing method, image forming apparatus and program, and recording medium
JP4080252B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4545167B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP3933941B2 (en) Image processing method, image processing apparatus, and image forming apparatus
JP4958626B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4808282B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP2011015172A (en) Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080806

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100114

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100119

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100316

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100413

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

Free format text: PAYMENT UNTIL: 20130423

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees