JP2003309725A - Image processing method, image processing apparatus, and image forming apparatus provided therewith - Google Patents

Image processing method, image processing apparatus, and image forming apparatus provided therewith

Info

Publication number
JP2003309725A
JP2003309725A JP2002115415A JP2002115415A JP2003309725A JP 2003309725 A JP2003309725 A JP 2003309725A JP 2002115415 A JP2002115415 A JP 2002115415A JP 2002115415 A JP2002115415 A JP 2002115415A JP 2003309725 A JP2003309725 A JP 2003309725A
Authority
JP
Japan
Prior art keywords
pixel
edge
processing
emphasis
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002115415A
Other languages
Japanese (ja)
Inventor
Hiroshi Kono
浩史 河野
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 JP2002115415A priority Critical patent/JP2003309725A/en
Publication of JP2003309725A publication Critical patent/JP2003309725A/en
Pending legal-status Critical Current

Links

Landscapes

  • Color, Gradation (AREA)
  • Control Or Security For Electrophotography (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image forming apparatus capable of preventing occurrence of color missing, pseudo contour and color blur caused around black letters and color letters attendant on emphasis processing by an emphasis filter and avoiding void characters from being deformed. <P>SOLUTION: Whether or not a target pixel indicates a character edge is discriminated on the basis of pixel information in a block (S1), when the character edge is discriminated (S2), emphasis discrimination filter processing is applied to the target pixel and whether or not the emphasis filter processing is applied to the target pixel is discriminated on the basis of the result (S3). When it is discriminated that no emphasis processing by the emphasis filter is performed as the result of applying the emphasis discrimination filter processing to the target pixel, a difference between the density of the target pixel and the density of the target pixel subjected to the emphasis processing by the emphasis filter is obtained and the difference is distributed pixels around the target pixel (S10, S11). <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタルカラー
複写機やファクシミリ等の画像形成装置に用いられる画
像処理方法、及び画像処理装置に関するものであり、特
に、画像の黒文字及び色文字領域の検出を行い、その検
出結果に基づいて、適切な処理を行う画像処理方法、画
像処理装置、及びそれを備えた画像形成装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and an image processing apparatus used in an image forming apparatus such as a digital color copying machine or a facsimile, and more particularly to detecting black character and color character areas of an image. The present invention relates to an image processing method, an image processing apparatus, and an image forming apparatus including the same, which performs appropriate processing based on the detection result.

【0002】[0002]

【従来の技術】近年、OA機器のディジタル化が急速に
進展し、またカラー画像出力の需要が増してきたことに
より、ディジタルカラー複写機やカラーレーザプリンタ
等の画像形成装置が広く一般に普及してきている。
2. Description of the Related Art In recent years, digitalization of OA equipment has progressed rapidly, and the demand for color image output has increased, so that image forming apparatuses such as digital color copying machines and color laser printers have become widely popular. There is.

【0003】これらの画像形成装置において、高画質化
や高機能化を実現する上で、画像処理技術は重要な位置
を占めている。ディジタルカラー複写機においては、カ
ラー原稿をR(レッド)・G(グリーン)・B(ブルー)の3
色に分解して読み取り、種々の画像処理を施してC(シ
アン)・M(マゼンタ)・Y(イエロー)及びK(ブラック)
の4色の画像データに変換し、記録媒体にカラー画像を
形成する。
In these image forming apparatuses, the image processing technology occupies an important position in realizing high image quality and high functionality. In the digital color copying machine, color originals are R (red), G (green), and B (blue).
Colors are separated and read, and various image processing is applied to C (cyan), M (magenta), Y (yellow) and K (black).
4 color image data is converted to form a color image on the recording medium.

【0004】ここで、K信号を追加する理由は、黒色等
の無彩色を再現する場合にC・M・Yの3色を重ね合わ
せて表現すると、色濁りや色ずれが生じるためである。
Here, the reason why the K signal is added is that, when reproducing an achromatic color such as black, when three colors C, M, and Y are superimposed and expressed, color turbidity and color shift occur.

【0005】上記の色濁りや色ずれの問題を改善するた
めに、黒生成/下地除去が行われる。しかし、このよう
な処理を行っても、100%の下地除去が行われるわけ
ではないので、黒文字が黒く再現されず、またその周囲
に色にじみが生じてしまうという問題がある。
In order to solve the above problems of color turbidity and color shift, black generation / background removal is performed. However, even if such a process is performed, 100% of the background is not removed, so that black characters are not reproduced as black and there is a problem that a color blur occurs around the black characters.

【0006】これを改善するために、原稿中に存在する
黒文字領域を検出し、強調フィルタ処理や黒強調処理等
の文字の再現性を高める処理を施し、画質を向上させる
方法が提案されている。
In order to improve this, there has been proposed a method of detecting a black character area existing in a document and performing processing such as an emphasis filter processing and a black emphasis processing to enhance the reproducibility of the character to improve the image quality. .

【0007】例えば、特開平9−139843号公報
(公開日1997年5月27日)には、有彩色成分及び
無彩色成分にて構成される原稿の画像データから1次微
分フィルタ及び2次微分フィルタを用いて黒文字のエッ
ジ部を検出し、そのエッジ部の外側部分と内側部分とを
識別して、外側部分の有彩色・無彩色データ及び内側部
分の有彩色データをそれぞれ注目画素とその周辺画素の
中で最も小さな値に置き換え、内側部分の無彩色データ
に対してはエッジ強調処理を行う画像処理装置が開示さ
れている。
For example, Japanese Laid-Open Patent Publication No. 9-139843 (published on May 27, 1997) discloses a first-order differential filter and a second-order differential filter from image data of a document composed of chromatic color components and achromatic color components. The edge part of the black character is detected using the filter, the outer part and the inner part of the edge part are identified, and the chromatic / achromatic color data of the outer part and the chromatic color data of the inner part are respectively detected and the peripheral pixel. An image processing device is disclosed which replaces the smallest value among pixels and performs edge enhancement processing on the achromatic color data of the inner portion.

【0008】また、別のアプローチとして、特開200
0−316097号公報(公開日2000年11月14
日)では、カラー画像入力データにおける複数色成分・
エッジ部検出手段によりエッジ領域を検出し、エッジ領
域と判定されたデータ部分の複数色成分に対して強調判
定処理を行い、その処理結果と予め定められた閾値とを
比較し、前記カラー画像入力データの各画素における複
数色成分に対して強調処理を施すか否かの判定を行い、
強調処理を施すと判定された画素はそのまま強調処理を
行い、強調処理を施さないと判定された画素については
前記カラー画像入力データの複数色成分の平均値を用い
て対象画素を無彩色として置き換える画像処理方法が開
示されている。
Further, as another approach, Japanese Patent Laid-Open No.
No. 0-316097 (Published November 14, 2000)
In Japanese), multiple color components in the color image input data
An edge area is detected by the edge part detecting means, emphasis determination processing is performed on a plurality of color components of the data portion determined to be the edge area, the processing result is compared with a predetermined threshold value, and the color image input is performed. It is determined whether or not to perform emphasis processing on the multiple color components in each pixel of the data,
Pixels that are determined to be subjected to the enhancement process are directly subjected to the enhancement process, and for pixels that are determined not to be subjected to the enhancement process, the target pixel is replaced as an achromatic color by using the average value of the multiple color components of the color image input data. An image processing method is disclosed.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上記従
来の特開平9−139843号公報で提案されている技
術では、エッジ部の外側及び内側の識別を行い、外側部
分は所定の最小値に置き換え、内側部分にのみエッジ強
調処理を行うことによって、文字周辺の白抜け発生を防
ぎかつ黒文字が太ることを防いでいる。
However, in the technique proposed in the above-mentioned Japanese Laid-Open Patent Publication No. 9-139843, the outside and inside of the edge portion are identified and the outside portion is replaced with a predetermined minimum value. By performing the edge enhancement processing only on the inner portion, it is possible to prevent the occurrence of blank areas around the characters and prevent the black characters from becoming thick.

【0010】しかし、このように、注目画素のデータを
所定の最小値に置き換えると、黒文字周辺の色にじみが
残る可能性が大きく、さらに、小さな文字や細い線につ
いては削除されてしまうおそれがある。また、この従来
技術では、2次微分フィルタの係数の正負によりエッジ
部の内側及び外側の識別を行っているため、例えエッジ
部の内側と識別された場合であっても、強調フィルタ処
理を行うことにより下地濃度よりも薄くなり、文字周辺
に輪郭が生じる可能性がある。
However, if the data of the pixel of interest is replaced with a predetermined minimum value in this way, there is a large possibility that color blur around the black characters will remain, and further, small characters and thin lines may be deleted. . Further, in this conventional technique, the inside and outside of the edge portion are discriminated by the positive / negative of the coefficient of the second-order differential filter. Therefore, even when the inside portion of the edge portion is discriminated, the emphasis filter processing is performed. As a result, the density becomes lower than the background density, and a contour may occur around the character.

【0011】したがって、エッジ部の外側部分及び内側
部分を識別して処理を切り替える方法では、小さな文字
や細い線が削除されたり、また、文字周辺に色にじみや
輪郭が発生したりして、画質を低下させるという問題を
有している。
Therefore, in the method of distinguishing the outer part and the inner part of the edge portion and switching the processing, small characters and thin lines are deleted, and color fringing and contours occur around the characters, resulting in image quality. It has a problem of decreasing.

【0012】また、特開2000−316097号公報
にて提案されている技術では、対象画素を中心に所定範
囲のマスク内で強調判定のための強調処理を行い、この
処理結果と所定基準値との閾値比較が行われる。ここ
で、例えば、基準値を画像の下地を基に設定することに
より、強調処理結果が下地よりも低い値となって、文字
周辺の白抜けが発生する可能性のある画素では強調処理
を施さないように処理を切り替えるとともに、対象画素
の複数色成分の平均値を算出し、対象画素の複数色成分
の前記平均値を用いて無彩色に置き換えることによって
色にじみの発生を防ぐことを示唆している。
Further, in the technique proposed in Japanese Patent Application Laid-Open No. 2000-316097, emphasis processing for emphasis judgment is performed within a mask in a predetermined range centering on a target pixel, and the processing result and a predetermined reference value are set. Threshold comparison is performed. Here, for example, by setting the reference value based on the background of the image, the emphasis processing result becomes a value lower than that of the background, and the emphasis processing is performed on the pixels in which white voids around the characters may occur. It suggests to prevent the occurrence of color fringing by switching the processing so that it does not exist, calculating the average value of the multiple color components of the target pixel, and replacing it with an achromatic color using the average value of the multiple color components of the target pixel. ing.

【0013】しかしながら、当技術においては、強調判
定処理結果に基づき、同じエッジ領域であると判定され
た部分であっても、強調処理を施した部分と強調処理を
施さずに無彩色に置き換えた部分とに分岐されるため
に、2つの部分間で強調度のギャップが生じる可能性が
ある。
However, according to the present technique, even a portion determined to be in the same edge area based on the result of the enhancement determination processing is replaced with the portion subjected to the enhancement processing and the achromatic color without performing the enhancement processing. Because of the divergence into parts, there may be a gap in emphasis between the two parts.

【0014】また、エッジの中には、通常の背景や下地
の上に配置された黒文字、色文字、及び連続階調や写真
部の輪郭線以外に、高濃度の背景や下地に比較して低濃
度でえぐり抜かれたような状態となる白抜き文字や色抜
き文字も存在する。このような抜き文字に対して強調処
理した場合、特に細い抜き文字の場合は周辺の高濃度の
背景や下地に引きずられて文字が潰れてしまうことがあ
る。
Further, in the edge, in addition to the black character, the color character, and the continuous tone and the contour line of the photograph portion which are arranged on the usual background or background, the edge is compared with the background or background of high density. There are also white letters and color letters that are hollowed out at low density. When such a blank character is emphasized, particularly in the case of a thin blank character, the character may be crushed by being dragged by the surrounding high-density background or background.

【0015】本発明は、上記従来の問題点に鑑みなされ
たものであって、その目的は、強調フィルタでの強調処
理に伴う黒文字や色文字の周辺に生じる色抜けや擬似輪
郭、及び色にじみの発生を防止し、抜き文字の潰れを防
止し得る画像処理方法、画像処理装置、及びそれを備え
た画像形成装置を提供することにある。
The present invention has been made in view of the above-mentioned conventional problems, and an object of the present invention is to eliminate color loss, pseudo contours, and color blurring around black characters and colored characters associated with the emphasis processing by the emphasis filter. It is an object of the present invention to provide an image processing method, an image processing apparatus, and an image forming apparatus including the image processing method, which can prevent the occurrence of the occurrence of characters and the collapse of a blank character.

【0016】[0016]

【課題を解決するための手段】本発明の画像処理方法
は、上記課題を解決するために、複数の色成分からなる
入力画像データより注目画素を含む複数の画素からなる
ブロックを抽出し、ブロック内の画素情報より注目画素
が文字エッジであるか否かの判定を行い、文字エッジで
あると判定された場合、注目画素に強調判定フィルタ処
理を施し、その結果に基づいて上記注目画素に強調フィ
ルタ処理を施すか否か判定を行う画像処理方法におい
て、上記注目画素に強調判定フィルタ処理を施した結
果、強調フィルタでの強調処理を行わないと判定された
ときには、注目画素の濃度値と該注目画素に強調フィル
タでの強調処理を施した場合の濃度値との差分を求め、
この差分を注目画素の周辺の画素に配分することを特徴
としている。
In order to solve the above-mentioned problems, an image processing method of the present invention extracts a block consisting of a plurality of pixels including a target pixel from input image data consisting of a plurality of color components, If the pixel of interest is a character edge based on the pixel information in the above, and if it is determined to be a character edge, the pixel of interest is subjected to emphasis determination filter processing, and based on the result, the pixel of interest is emphasized. In the image processing method for determining whether or not to apply the filter processing, when the result of performing the emphasis determination filter processing on the target pixel is determined not to perform the emphasis processing by the emphasis filter, the density value of the target pixel and the Find the difference from the density value when the pixel of interest is enhanced by the enhancement filter,
The feature is that this difference is distributed to pixels around the pixel of interest.

【0017】すなわち、注目画素が文字エッジである場
合に、強調フィルタでの強調処理を行うことにより下地
濃度よりも薄くなり、文字周辺に輪郭が生じる可能性が
ある。したがって、エッジ部の外側部分及び内側部分を
識別して処理を切り替える方法では、小さな文字や細い
線が削除されたり、また、文字周辺に色にじみや輪郭が
発生したりして、画質を低下させるという問題を有して
いる。
That is, when the pixel of interest is the character edge, the emphasizing processing by the emphasizing filter may make the density lower than the background density, and the contour may occur around the character. Therefore, in the method of switching the processing by identifying the outer portion and the inner portion of the edge portion, small characters and thin lines are deleted, and color blurring and contours occur around the characters, which deteriorates the image quality. I have a problem.

【0018】また、強調判定処理結果に基づき、同じエ
ッジ領域であると判定された部分であっても、強調フィ
ルタでの強調処理を施した部分と強調処理を施さずに無
彩色に置き換えた部分とに分岐されるために、2つの部
分間で強調度のギャップが生じる可能性がある。
Further, even in a portion determined to be the same edge area based on the result of the enhancement determination processing, a portion subjected to the enhancement processing by the enhancement filter and a portion replaced with an achromatic color without performing the enhancement processing. Due to the branching into and, there may be a gap in emphasis between the two parts.

【0019】この点、本発明では、注目画素に強調判定
フィルタ処理を施した結果、強調フィルタでの強調処理
を行わないと判定されたときには、注目画素の濃度値と
該注目画素に強調フィルタでの強調処理を施した場合の
濃度値との差分を求め、この差分を注目画素の周辺の画
素に配分する。
With respect to this point, in the present invention, when it is determined that the enhancement processing by the enhancement filter is not performed as a result of performing the enhancement determination filter process on the target pixel, the density value of the target pixel and the enhancement filter are applied to the target pixel. The difference with the density value when the enhancement processing of is performed is calculated, and this difference is distributed to the pixels around the pixel of interest.

【0020】したがって、まず、注目画素に強調判定フ
ィルタ処理を施した結果、強調フィルタでの強調処理を
行うと上記の黒文字や色文字の周辺に生じる色抜けや擬
似輪郭、及び色にじみ等が発生するおそれがあることに
鑑み、強調フィルタでの強調処理を行わないと判定す
る。
Therefore, first, as a result of performing the emphasis determination filter processing on the pixel of interest, when the emphasis processing by the emphasis filter is performed, color loss, pseudo contour, color blurring and the like that occur around the above black characters and color characters occur. Considering that there is a possibility that this will occur, it is determined that the enhancement processing by the enhancement filter is not performed.

【0021】ただし、この場合、強調フィルタでの強調
処理を行わないので、文字の強調ができないことにな
る。
However, in this case, since the emphasis processing by the emphasis filter is not performed, the characters cannot be emphasized.

【0022】そこで、本発明では、強調フィルタでの強
調処理を行わないと判定されたときには、注目画素の濃
度値と該注目画素に強調フィルタでの強調処理を施した
場合の濃度値との差分を求め、この差分を注目画素の周
辺の画素に配分する。この方法により、実質的に、文字
等を周辺の画素に対して強調することができる。
Therefore, in the present invention, when it is determined that the enhancement processing by the enhancement filter is not performed, the difference between the density value of the pixel of interest and the density value when the enhancement processing by the enhancement filter is performed on the pixel of interest. And the difference is distributed to pixels around the pixel of interest. By this method, characters and the like can be substantially emphasized with respect to surrounding pixels.

【0023】この結果、強調フィルタでの強調処理に伴
う黒文字エッジ周辺の白抜けや色にじみ、また、小さな
抜き文字の潰れを防止し、適切に黒文字・色文字・抜き
文字・白抜き文字それぞれのエッジ部を適切に強調する
ことができる。
As a result, it is possible to prevent white spots and color bleeding around the black character edge caused by the highlighting process by the highlighting filter, and to prevent small blank characters from being crushed, and to properly select black letters, colored letters, blank letters, and blank letters. The edge part can be appropriately emphasized.

【0024】したがって、強調フィルタでの強調処理に
伴う黒文字や色文字の周辺に生じる色抜けや擬似輪郭、
及び色にじみの発生を防止し得る画像処理方法を提供す
ることができる。
Therefore, a color dropout or a pseudo contour generated around a black character or a color character due to the emphasis processing by the emphasis filter,
Also, it is possible to provide an image processing method capable of preventing the occurrence of color fringing.

【0025】また、本発明の画像処理方法は、上記の画
像処理方法において、前記注目画素が黒文字エッジであ
ると判断された場合に、入力画像データにおける黒成分
以外の色成分の平均値を求めて注目画素の濃度値を無彩
色に置き換えるとともに、黒成分を表す画像データに対
して、注目画素の濃度値と該注目画素に強調処理を施し
た場合の濃度値との差分を求め、この差分を注目画素の
周辺の画素に配分することを特徴としている。
Further, in the image processing method of the present invention, in the above image processing method, when it is determined that the pixel of interest is a black character edge, an average value of color components other than the black component in the input image data is obtained. And replaces the density value of the pixel of interest with an achromatic color, and for image data representing the black component, obtains the difference between the density value of the pixel of interest and the density value of when the pixel of interest is emphasized, and the difference is calculated. Is distributed to pixels around the pixel of interest.

【0026】上記の発明によれば、注目画素が黒文字エ
ッジであると判断された場合に、黒成分を表す画像デー
タに対して、注目画素の濃度値と該注目画素に強調処理
を施した場合の濃度値との差分を求め、この差分を注目
画素の周辺の画素に配分する。これにより、前述したよ
うに、実質的に、黒文字を周辺の画素に対して強調する
ことができる。
According to the above invention, when it is determined that the pixel of interest is a black character edge, the density value of the pixel of interest and the emphasis process are applied to the image data representing the black component. The difference from the density value of is calculated, and this difference is distributed to the pixels around the pixel of interest. As a result, as described above, the black character can be substantially emphasized with respect to the peripheral pixels.

【0027】また、本発明では、このとき、入力画像デ
ータにおける黒成分以外の色成分の平均値を求めて注目
画素の濃度値を無彩色に置き換える。ここで、平均値に
置き換えるのは、C・M・Y等の各色成分間の濃度差を
なくして無彩色(黒)に近づけるためである。これによっ
て、文字周辺の色にじみを防ぎながら、黒文字を強調す
ることができる。
Further, in the present invention, at this time, the average value of the color components other than the black component in the input image data is obtained and the density value of the pixel of interest is replaced with an achromatic color. Here, the reason why the average value is replaced is to eliminate the density difference between the respective color components such as C, M, and Y, and bring it closer to an achromatic color (black). As a result, black characters can be emphasized while preventing color fringing around the characters.

【0028】したがって、判定の結果、注目画素が黒文
字エッジであると判断された場合に、強調フィルタでの
強調処理を行わないとした場合でも、強調処理の効果と
強調処理に伴う画質劣化の要因軽減を両立させることが
できる。
Therefore, when it is determined that the pixel of interest is a black character edge as a result of the determination, even if the enhancement process is not performed by the enhancement filter, the effect of the enhancement process and the factor of image quality deterioration associated with the enhancement process Both reduction can be achieved.

【0029】また、本発明の画像処理方法は、上記の画
像処理方法において、前記注目画素に強調判定フィルタ
処理を施した結果、強調フィルタでの強調処理を行わな
いと判定された場合に、注目画素が抜き文字のエッジで
あるか否かの判定を行い、抜き文字のエッジであると判
断されたときには、注目画素の濃度値と該注目画素に強
調フィルタでの強調処理を施した場合の濃度値との差分
を注目画素における周辺の画素の濃度値から減算するこ
とにより配分する一方、抜き文字のエッジではないと判
断されたときには、上記差分を注目画素における周辺の
画素の濃度値に加算することにより配分することを特徴
としている。
In the image processing method of the present invention, in the above image processing method, when it is determined that the enhancement processing by the enhancement filter is not performed as a result of performing the enhancement determination filter processing on the target pixel, the attention processing is performed. It is determined whether or not the pixel is the edge of the extracted character. When it is determined that the pixel is the edge of the extracted character, the density value of the pixel of interest and the density when the emphasis process is performed on the pixel of interest by the emphasis filter. The difference from the value is distributed by subtracting it from the density values of the peripheral pixels of the pixel of interest, while the difference is added to the density values of the peripheral pixels of the pixel of interest when it is determined that it is not the edge of the extracted character. It is characterized by allocating by doing so.

【0030】すなわち、エッジの中には、通常の背景や
下地の上に配置された黒文字、色文字、及び連続階調や
写真部の輪郭線以外に、高濃度の背景や下地に比較して
低濃度でえぐり抜かれたような状態となる白抜き文字や
色抜き文字が存在する。このような抜き文字に対して強
調フィルタでの強調処理した場合、特に細い抜き文字の
場合は周辺の高濃度の背景や下地に引きずられて文字が
潰れてしまうことがある。
That is, in the edge, in addition to the black character, the color character, and the continuous gradation and the outline of the photo area which are arranged on the normal background or the background, the background is compared with the high density background or the background. There are white letters and color letters that are hollowed out at low density. When such an extraction character is emphasized by an emphasis filter, particularly in the case of a thin extraction character, the character may be crushed by being dragged by the surrounding high density background or background.

【0031】この点、本発明では、抜き文字のエッジで
あると判断されたときには、注目画素の濃度値と該注目
画素に強調フィルタでの強調処理を施した場合の濃度値
との差分を注目画素における周辺の画素の濃度値から減
算することにより配分する。
With respect to this point, in the present invention, when it is determined that the edge is an outline character, the difference between the density value of the target pixel and the density value when the target pixel is subjected to the enhancement processing by the enhancement filter is noted. The pixel is distributed by subtracting it from the density values of surrounding pixels.

【0032】このように、抜き文字のエッジではエッジ
での強調フィルタの効果を周辺の画素の濃度に対して常
に減少方向に働かせることにより、エッジの濃度が周辺
の背景画素の濃度(高濃度の背景画素)に比べて必要以
上に高くなってしまうことによる文字の潰れの発生を防
止して、実質的に抜き文字を強調することができる。
As described above, at the edge of the extracted character, the effect of the enhancement filter at the edge is always exerted in the decreasing direction with respect to the density of the peripheral pixels, so that the density of the edge is higher than that of the background pixel in the peripheral (high density It is possible to prevent the characters from being crushed due to an unnecessarily high height compared to the background pixels) and to substantially emphasize the extracted characters.

【0033】一方、抜き文字のエッジではないと判断さ
れたときには、上記差分を注目画素における周辺の画素
の濃度値に加算することにより配分する。
On the other hand, when it is judged that the edge is not the edge of the extracted character, the difference is distributed by adding it to the density values of the peripheral pixels of the target pixel.

【0034】このように、抜き文字のエッジではないと
き、つまり通常エッジ領域の場合には、エッジでの強調
フィルタの効果を周辺の画素に対して常に増加方向に働
かせることにより、エッジの濃度が周辺の背景画素の濃
度(濃度が薄い背景画素)に比べて低くなってしまうこ
とによる白抜けや色にじみが発生するのを防止して、実
質的に通常エッジを強調することができる。
As described above, when the edge is not the outline character, that is, in the case of the normal edge area, the effect of the emphasis filter on the edge is always exerted on the peripheral pixels in the increasing direction, so that the edge density is increased. It is possible to prevent white spots and color fringing from occurring due to the density being lower than the density of background pixels in the vicinity (background pixels having a low density), and substantially normal edges can be emphasized.

【0035】したがって、白抜けや色にじみが発生する
可能性のある通常エッジ領域での処理方法と、文字の潰
れが発生する可能性がある抜き文字とで、それぞれに適
した処理を行うことによって、より強調フィルタに起因
する画質低下の影響を最小限に抑えることができる。
Therefore, by performing the processing suitable for each of the processing method in the normal edge area where white spots and color bleeding may occur and the non-extracting character where the character collapse may occur. , It is possible to further minimize the influence of the image quality deterioration caused by the enhancement filter.

【0036】この結果、強調フィルタでの強調処理に伴
う黒文字や色文字の周辺に生じる色抜けや擬似輪郭、及
び色にじみの発生を防止し、かつ抜き文字の潰れを防止
し得る画像処理方法を提供することができる。
As a result, there is provided an image processing method capable of preventing the occurrence of color dropouts, pseudo contours, and color bleeding around black characters and color characters associated with the emphasis processing by the emphasis filter, and preventing the collapse of the omitted characters. Can be provided.

【0037】本発明の画像処理装置は、上記課題を解決
するために、複数の色成分からなる入力画像データより
注目画素を含む複数の画素よりなるブロックを抽出し、
注目画素が文字エッジであるか否かの判定を行う文字エ
ッジ判別部と、注目画素に強調判定フィルタ処理を施
し、その結果に基づいて上記注目画素に強調フィルタで
の強調処理を施すか否か判定を行う強調処理切り替え判
定部とを含む文字エッジ判定手段を備える画像処理装置
において、上記強調処理切り替え判定部により、注目画
素に強調判定フィルタ処理を施した結果、強調フィルタ
での強調処理を行わないと判定されたときに、注目画素
の濃度値と注目画素に強調フィルタでの強調処理を施し
た場合の濃度値との差分を求め、この差分を注目画素の
周辺の画素に配分する空間フィルタ手段が設けられてい
ることを特徴としている。
In order to solve the above problems, the image processing apparatus of the present invention extracts a block composed of a plurality of pixels including a target pixel from input image data composed of a plurality of color components,
A character edge determination unit that determines whether or not the pixel of interest is a character edge, and whether or not to perform emphasis determination filter processing on the pixel of interest and whether or not to perform emphasis processing by the emphasis filter on the pixel of interest based on the result. In an image processing apparatus including a character edge determination unit that includes an enhancement processing switching determination unit that performs determination, as a result of performing enhancement determination filtering processing on a pixel of interest by the enhancement processing switching determination unit, the enhancement processing by the enhancement filter is performed. When it is determined that there is no such difference, the difference between the density value of the target pixel and the density value when the target pixel is subjected to the enhancement processing by the enhancement filter is calculated, and the difference is distributed to the pixels around the target pixel. It is characterized in that means are provided.

【0038】上記の発明によれば、強調処理切り替え判
定部により、注目画素に強調判定フィルタ処理を施した
結果、強調フィルタでの強調処理を行わないと判定され
たときに、空間フィルタ手段は、注目画素の濃度値と注
目画素に強調フィルタでの強調処理を施した場合の濃度
値との差分を求め、この差分を注目画素の周辺の画素に
配分する。
According to the above invention, when the emphasis processing switching judgment unit judges that the emphasis processing by the emphasis filter is not performed as a result of performing the emphasis judgment filter processing on the pixel of interest, the spatial filter means The difference between the density value of the target pixel and the density value when the target pixel is subjected to the enhancement processing by the enhancement filter is calculated, and this difference is distributed to the pixels around the target pixel.

【0039】したがって、強調フィルタでの強調処理に
伴う黒文字エッジ周辺の白抜けや色にじみ、また、小さ
な抜き文字の潰れを防止し、適切に黒文字・色文字・抜
き文字・白抜き文字、それぞれのエッジ部を適切に強調
することができる。
Therefore, it is possible to prevent black spots and color bleeding around the black character edge caused by the highlighting processing by the highlighting filter, and to prevent the small blank characters from being crushed, and to appropriately select black letters, colored letters, blank letters, and blank letters. The edge part can be appropriately emphasized.

【0040】また、本発明の画像処理装置は、上記の画
像処理装置において、上記文字エッジ判定手段には、注
目画素が抜き文字のエッジであるか否かの判定を行う抜
きエッジ判定部が備えられていることを特徴としてい
る。
Further, in the image processing apparatus of the present invention, in the above-mentioned image processing apparatus, the character edge determination means is provided with an extraction edge determination section for determining whether or not the pixel of interest is an edge of an extraction character. It is characterized by being.

【0041】すなわち、通常エッジは注目画素が周辺画
素より高濃度であることが多く、普通に強調フィルタで
の強調処理を行うと、周辺の色抜けや色にじみの問題を
起こす一方、抜きエッジは注目画素が周辺画素より低濃
度であることが多く、小文字での潰れの問題を発生し易
い。
That is, in the normal edge, the target pixel often has a higher density than the peripheral pixels, and when the enhancement processing is normally performed by the enhancement filter, the peripheral color loss and the color blurring occur, while the blank edge is The target pixel often has a lower density than the peripheral pixels, and the problem of collapsing in small letters is likely to occur.

【0042】この点、本発明によれば、文字エッジ判定
手段には抜きエッジ判定部が設けられており、この抜き
エッジ判定部は、注目画素が抜き文字のエッジであるか
否かの判定を行う。
In this respect, according to the present invention, the character edge determining means is provided with the extracted edge determining section, and the extracted edge determining section determines whether or not the pixel of interest is the edge of the extracted character. To do.

【0043】したがって、文字エッジを通常のエッジと
抜き文字とに場合分けをすることによって、それぞれの
エッジ部を適切に強調することができる。
Therefore, by dividing the character edge into a normal edge and a blank character, the respective edge portions can be appropriately emphasized.

【0044】本発明の画像形成装置は、上記課題を解決
するために、上記の画像処理装置を備えることを特徴と
している。
An image forming apparatus of the present invention is characterized by including the above image processing apparatus in order to solve the above problems.

【0045】上記の発明によれば、強調フィルタでの強
調処理に伴う黒文字エッジ周辺の白抜けや色にじみ、ま
た、小さな抜き文字の潰れを防止し、黒文字・色文字・
抜き文字・白抜き文字で場合分けを行うことにより、そ
れぞれのエッジ部を適切に強調することができるので、
品質の良い画像を出力することができる画像形成装置を
提供することができる。
According to the above-mentioned invention, it is possible to prevent white spots and color bleeding around the edges of black characters due to the emphasis processing by the emphasis filter, and to prevent the collapse of small blank characters.
By dividing the case with blank characters and white characters, you can properly emphasize each edge part,
An image forming apparatus that can output a high quality image can be provided.

【0046】[0046]

【発明の実施の形態】本発明の実施の一形態について図
1ないし図22に基づいて説明すれば、以下の通りであ
る。なお、本実施の形態では、本画像処理方法を適用
し、及び本画像処理装置を備える画像形成装置として、
ディジタルカラー複写機についての説明を行うが、画像
形成装置は必ずしもこれに限らず、例えば、ファクシミ
リ等の画像形成装置にも適用可能である。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below with reference to FIGS. In the present embodiment, as an image forming apparatus to which the present image processing method is applied and which includes the present image processing apparatus,
Although the digital color copying machine will be described, the image forming apparatus is not necessarily limited to this, and can be applied to an image forming apparatus such as a facsimile.

【0047】本実施の形態の画像形成装置としてのディ
ジタルカラー複写機に用いられる画像処理装置は、図2
に示すように、A/D(アナログ・ディジタル)変換部
2、シェーディング補正部3、入力階調補正部4、色補
正部5、黒生成/下色除去部6、文字エッジ判定手段と
しての文字エッジ判定部10、空間フィルタ手段として
の空間フィルタ部7、及び中間調生成部8を備えてい
る。そして、上記画像処理装置に、例えばスキャナから
なる画像入力装置1と画像出力装置9とが接続されてデ
ィジタルカラー複写機が構成されている。
The image processing apparatus used in the digital color copying machine as the image forming apparatus of this embodiment is shown in FIG.
As shown in FIG. 3, an A / D (analog / digital) conversion unit 2, a shading correction unit 3, an input gradation correction unit 4, a color correction unit 5, a black generation / undercolor removal unit 6, and characters as character edge determination means. An edge determination unit 10, a spatial filter unit 7 as a spatial filter unit, and a halftone generation unit 8 are provided. Then, the image processing apparatus is connected to the image input apparatus 1 and the image output apparatus 9 which are, for example, a scanner, thereby forming a digital color copying machine.

【0048】上記画像処理装置では、画像入力装置1に
て原稿をスキャンすることにより入力されたカラー画像
信号(RGBアナログ信号)は、A/D(アナログ・デ
ィジタル)変換部2にてディジタル信号に変換される。
次に、シェーディング補正部3にて画像入力装置1の照
明系・結像系・撮像系で生じる各種の歪みが取り除かれ
る。
In the image processing apparatus, a color image signal (RGB analog signal) input by scanning an original with the image input apparatus 1 is converted into a digital signal by the A / D (analog / digital) conversion section 2. To be converted.
Next, the shading correction unit 3 removes various distortions generated in the illumination system, imaging system, and imaging system of the image input apparatus 1.

【0049】入力階調補正部4では、カラーバランスが
整えられるのと同時に、入力されたカラー画像信号は反
射率信号つまり露光ランプにより原稿から反射された反
射光量に比例した信号であるので、画像処理に適した濃
度信号に変換される。
In the input gradation correction section 4, the color balance is adjusted, and at the same time, the input color image signal is a reflectance signal, that is, a signal proportional to the amount of reflected light reflected from the original by the exposure lamp. It is converted into a density signal suitable for processing.

【0050】次に、色補正部5にて色再現の忠実化実現
のために色濁りを取り除く処理が施され、黒生成/下色
除去部6にてカラー画像をCMYK4色で再現するため
の処理がなされる。このとき、文字・写真混在原稿にお
ける黒文字・色文字の再現性を高めるために、文字エッ
ジ判定部10にて文字エッジ部の検出が行われ、さらに
所定の判定結果を基に用意されているいくつかの強調処
理の中から最も適正であると考えられる強調処理が選択
される。詳細については後述する。
Next, the color correction unit 5 performs a process for removing color turbidity in order to realize faithful color reproduction, and the black generation / undercolor removal unit 6 reproduces a color image with four CMYK colors. Processing is done. At this time, in order to improve the reproducibility of black characters / colored characters in a mixed character / photo document, the character edge determination unit 10 detects the character edge portion, and the number of prepared ones is further determined based on a predetermined determination result. The enhancement process considered to be most appropriate is selected from those enhancement processes. Details will be described later.

【0051】その結果は、黒生成/下色除去部6、空間
フィルタ部7、及び中間調生成部8に出力され、全ての
文字エッジ部に対して適正な強調処理が施される。
The result is output to the black generation / undercolor removal unit 6, the spatial filter unit 7, and the halftone generation unit 8 and appropriate emphasis processing is applied to all character edge portions.

【0052】ここで、上記文字エッジ判定部10は、図
3に示すように、大別すると、文字エッジ検出・色判定
部20、特徴量算出・判定部30、強調処理切り替え判
定部40、及び抜きエッジ判定部50にて構成されてい
る。なお、上記文字エッジ検出・色判定部20及び特徴
量算出・判定部30は、本発明の文字エッジ判別部を構
成している。
Here, as shown in FIG. 3, the character edge determination unit 10 is roughly classified into a character edge detection / color determination unit 20, a feature amount calculation / determination unit 30, an emphasis process switching determination unit 40, and The removal edge determination unit 50 is configured. The character edge detection / color determination unit 20 and the feature amount calculation / determination unit 30 constitute a character edge determination unit of the present invention.

【0053】上記文字エッジ判定部10では、まず、4
本のラインメモリを用いて、色補正処理が施された入力
画像データ(CMY信号)から、図4に示すように、注目
画素Pを中心とする5×5マスクが形成され各部に入力
される。なお、本実施の形態では5×5マスクを形成し
ているが、マスクの大きさはこれに限定されるものでは
ない。
In the character edge determination unit 10, first, 4
As shown in FIG. 4, a 5 × 5 mask centered on the pixel of interest P is formed from the input image data (CMY signal) that has been subjected to the color correction processing using the line memory of the book, and is input to each unit. . Although a 5 × 5 mask is formed in this embodiment, the size of the mask is not limited to this.

【0054】次に、文字エッジ検出・色判定部20で
は、ゾーベルフィルタにてエッジを検出するとともに色
判定を行い、黒エッジ判定信号Bk、又は色エッジ判定信
号Colが出力される。特徴量算出・判定部20は、マス
ク内の特徴量を算出し、文字エッジか否かの判定を行
い、文字エッジ判定信号EDGEを出力する。そして、
AND回路11・12にて、両信号の論理積がとられ、
黒文字エッジ判定信号BkEDGE及び色文字エッジ判定
信号ColEDGEとして出力される。
Next, in the character edge detection / color determination unit 20, the edge is detected by the Sobel filter and the color determination is performed, and the black edge determination signal Bk or the color edge determination signal Col is output. The feature amount calculation / judgment unit 20 calculates the feature amount in the mask, determines whether or not it is a character edge, and outputs a character edge determination signal EDGE. And
AND signals 11 and 12 take the logical product of both signals,
The black character edge determination signal BkEDGE and the color character edge determination signal ColEDGE are output.

【0055】また、強調処理切り替え判定部40では、
強調判定処理によって文字周辺に白抜けや輪郭が発生す
る可能性があるか否かの判定がなされ、強調切り替え判
定信号EMPが出力される。また、抜きエッジ判定部5
0では、マスク内におけるエッジが、薄い背景上に比較
的高濃度として存在する通常のエッジであるか、又は濃
い背景上に比較的低濃度でえぐり抜いた状態になる抜き
エッジであるかの判定がなされ、抜きエッジ判定信号B
GCが出力される。
Further, in the emphasis processing switching determination section 40,
By the emphasis determination process, it is determined whether or not there is a possibility that a blank area or a contour will occur around the character, and an emphasis switching determination signal EMP is output. In addition, the removal edge determination unit 5
At 0, it is determined whether the edge in the mask is a normal edge that exists as a relatively high density on a light background or a cut edge that is in a dug state with a relatively low density on a dark background. Is performed, and the extraction edge determination signal B
GC is output.

【0056】以下、この4つの判定処理について詳細に
説明する。
The four determination processes will be described in detail below.

【0057】最初に、文字エッジ検出・色判定部20に
ついて、図5に基づいて、エッジ検出並びに色判定の処
理の流れについて説明する。
First, with respect to the character edge detection / color determination unit 20, the flow of processing of edge detection and color determination will be described with reference to FIG.

【0058】上記文字エッジ検出・色判定部20は、同
図に示すように、エッジ検出回路21、色判定回路2
2、及びAND回路23・24にて構成される。先ず、
エッジ判定回路21について説明する。
The character edge detection / color determination unit 20 includes an edge detection circuit 21 and a color determination circuit 2 as shown in FIG.
2 and AND circuits 23 and 24. First,
The edge determination circuit 21 will be described.

【0059】エッジ判定回路21では、図6(a)に示
すように、ラインメモリから読み出される注目画素Pを
中心とした5×5マスクから、注目画素Pを中心とする
3×3画素マスクが抽出され、主走査方向ゾーベルフィ
ルタ部21aと副走査方向ゾーベルフィルタ部21bと
にそれぞれ入力される。主走査方向ゾーベルフィルタ部
21aでは、前記3×3画素マスクに、例えば図6
(b)に示すように、主走査方向ゾーベルフィルタMF
が畳み込まれる一方、副走査方向ゾーベルフィルタ部2
1bでは、図6(c)に示すように、副走査方向ゾーベ
ルフィルタSFが畳み込まれる。注目画素Pに対して上
記各ゾーベルフィルタMF・SFが畳み込まれた結果
は、絶対値算出部21c・21cにてそれぞれの絶対値
が求められ、その結果は加算器(ADD)21dにより
加算される。ここで、絶対値を求めるのは各ゾーベルフ
ィルタMF・SFに負の係数が存在するためであり、加
算するのは主走査方向と副走査方向との双方の結果を考
慮に入れるためである。この両方向の加算結果は、次の
比較器21eに入力されて閾値edgeTHと比較され、加
算結果が閾値edgeTH以上ならば「1」、それ以外なら
「0」が出力される。
In the edge determination circuit 21, as shown in FIG. 6A, a 5 × 5 mask centered on the target pixel P read from the line memory is changed to a 3 × 3 pixel mask centered on the target pixel P. It is extracted and input to the main scanning direction Sobel filter unit 21a and the sub scanning direction Sobel filter unit 21b. In the main scanning direction Sobel filter portion 21a, the 3 × 3 pixel mask is formed, for example, as shown in FIG.
As shown in (b), the main scanning direction Sobel filter MF
While being folded, the Sobel filter unit 2 in the sub-scanning direction
In 1b, as shown in FIG. 6C, the sub-scanning direction Sobel filter SF is convoluted. The absolute values of the results obtained by convoluting the Sobel filters MF and SF with respect to the pixel of interest P are obtained by absolute value calculation units 21c and 21c, and the results are added by an adder (ADD) 21d. To be done. Here, the absolute value is obtained because there is a negative coefficient in each Sobel filter MF · SF, and the addition is to take into consideration the results in both the main scanning direction and the sub scanning direction. . The addition results in both directions are input to the next comparator 21e and compared with the threshold edgeTH. If the addition result is equal to or greater than the threshold edgeTH, "1" is output, and "0" is output otherwise.

【0060】以上の処理がC・M・Y各色に対して施さ
れる。そして、注目画素Pに対する3色の出力信号は加
算器(ADD)21fで足し合わされた後、比較器21g
で閾値addTHと比較され、エッジならば「1」、エッ
ジでなければ「0」というエッジ検出信号が出力され
る。例えば、3色のエッジが重なっているときのみその
注目画素Pをエッジと判定する場合には閾値edgeTH=
3、1色でもエッジが検出されればその注目画素Pをエ
ッジと判定する場合には閾値edgeTH=1と設定され
る。
The above processing is applied to each of C, M and Y colors. Then, the output signals of the three colors for the pixel of interest P are added up by the adder (ADD) 21f, and then the comparator 21g.
Is compared with the threshold value addTH, and an edge detection signal of "1" is output if it is an edge and "0" if it is not an edge. For example, when the target pixel P is determined to be an edge only when the edges of the three colors overlap, the threshold edgeTH =
If an edge is detected even in 3 or 1 color and the pixel of interest P is determined to be an edge, a threshold value edgeTH = 1 is set.

【0061】次に、色判定回路22では、最大値検出部
22a及び最小値検出部22bにて注目画素Pにおける
C・M・Y信号の最大値と最小値とが検出され、差分器
(SUB)22cにてその差が求められる。次に、その結
果は、比較器22dにて閾値subTHと比較されて、有
彩色か無彩色かの判定がなされる。すなわち、注目画素
PにおけるC・M・Yの差異が所定の範囲(閾値subT
H)よりも大きい場合は有彩色と判定され、所定の範囲
以内の場合は無彩色と判定される。この処理によって無
彩色つまり黒なら「1」、それ以外なら「0」という色
判定信号が出力される。
Next, in the color judgment circuit 22, the maximum value detection unit 22a and the minimum value detection unit 22b detect the maximum value and the minimum value of the C, M, Y signals in the target pixel P, and the difference unit
The difference is obtained at (SUB) 22c. Next, the result is compared with the threshold value subTH by the comparator 22d to determine whether it is a chromatic color or an achromatic color. That is, the difference between C, M, and Y in the pixel of interest P is within a predetermined range (threshold value subT
If it is larger than H), it is determined to be a chromatic color, and if it is within a predetermined range, it is determined to be an achromatic color. By this processing, a color determination signal of "1" is output for an achromatic color, that is, black, and "0" otherwise.

【0062】上述した処理により出力されたエッジ検出
信号と色判定信号とは、AND回路23にて論理積が求
められ、黒エッジ判定信号Bkが得られる。つまり、エッ
ジとして検出され、なおかつ色判定結果が黒となる画素
のみ、黒エッジ画素として判定される。また、同時に、
エッジ検出信号と色判定信号の否定信号との論理積もA
ND回路24により求められ、色エッジ判定信号Colが
得られる。黒エッジ判定信号のときと同様、エッジとし
て検出され、なおかつ色判定結果が黒ではない、つまり
有彩色である画素のみが色エッジ画素として判定され
る。
The AND circuit 23 obtains the logical product of the edge detection signal and the color determination signal output by the above-described processing, and the black edge determination signal Bk is obtained. That is, only pixels that are detected as edges and whose color determination result is black are determined as black edge pixels. At the same time,
The logical product of the edge detection signal and the negative signal of the color determination signal is also A
The color edge determination signal Col obtained by the ND circuit 24 is obtained. Similar to the case of the black edge determination signal, only pixels which are detected as edges and whose color determination result is not black, that is, chromatic color are determined as color edge pixels.

【0063】次に、特徴量算出・判定部30について説
明する。
Next, the characteristic amount calculation / determination unit 30 will be described.

【0064】図7に示すように、特徴量算出・判定部3
0は、第1の特徴量算出回路31と、第2の特徴量算出
回路32と、判定回路33と、AND回路34とから構
成される。なお、本実施の形態では、M信号のみを用い
て処理を行っているが、ここでの参照信号はM信号に限
定されるものではない。
As shown in FIG. 7, the feature amount calculation / determination unit 3
0 is composed of a first characteristic amount calculation circuit 31, a second characteristic amount calculation circuit 32, a determination circuit 33, and an AND circuit 34. In this embodiment, the processing is performed using only the M signal, but the reference signal here is not limited to the M signal.

【0065】上記第1の特徴量算出回路31では、ま
ず、ラインメモリから読み出される5×5マスクにおい
て、最大値検出部31aにてマスク内の最大濃度が算出
される一方、最小値検出部31bでは最小濃度が算出さ
れ、差分器(SUB)31cにてその差(最大濃度差)が算
出される。これらの値、すなわち、最大濃度・最小濃度
・最大濃度差は、後段の判定回路において、それぞれ比
較器33a・33b・33c毎に設定される閾値THma
x・THmin・THdiffとそれぞれ比較され、その比較結
果はAND回路34にて論理積が求められる。そして、
文字エッジなら「1」、それ以外なら「0」という信号
が出力される。これが文字エッジ判定信号EDGEであ
る。
In the first feature amount calculating circuit 31, first, in the 5 × 5 mask read from the line memory, the maximum value detecting unit 31a calculates the maximum density in the mask, while the minimum value detecting unit 31b. Then, the minimum density is calculated, and the difference (maximum density difference) is calculated by the difference unit (SUB) 31c. These values, that is, the maximum density / minimum density / maximum density difference, are determined by the threshold value THma set for each of the comparators 33a, 33b, 33c in the determination circuit in the subsequent stage.
x.THmin.THdiff are compared with each other, and the comparison result is ANDed by the AND circuit 34. And
A signal "1" is output for a character edge, and a signal "0" is output otherwise. This is the character edge determination signal EDGE.

【0066】このとき用いられる3つの閾値THmax・
THmin・THdiff は、第2の特徴量算出回路32にお
いて、5×5マスクから算出される、以下に示す特徴量
により決定される。
Three threshold values THmax used at this time
THmin · THdiff is determined by the following feature amount calculated from the 5 × 5 mask in the second feature amount calculating circuit 32.

【0067】一般に、原稿上の文字は同一濃度であって
も、CCD(Charge Coupled Device)にて読み取られて
入力として与えられる濃度値は、その文字の大きさによ
って異なる。このことを考慮し、文字の大きさに基づい
て閾値THmax・THmin・THdiffが切り替えられる。
閾値THmax・THmin・THdiffを切り替えるための特
徴量としては、5×5マスク内を2値化したときに得ら
れる面積及び反転回数が用いられる。
Generally, even if characters on a document have the same density, the density value read by a CCD (Charge Coupled Device) and given as an input varies depending on the size of the character. In consideration of this, the thresholds THmax, THmin, and THdiff are switched based on the size of the character.
As the feature amount for switching the threshold values THmax, THmin, and THdiff, the area and the number of inversions obtained when binarizing the inside of the 5 × 5 mask are used.

【0068】まず、5×5マスクが2値化部32aにて
2値化される。例えば、各画素の濃度がマスク内平均濃
度よりも大きければ「1」、それ以外なら「0」とする
ことにより2値のマスクが得られる。低濃度の背景の上
に文字があるとき、文字領域は「1」に相当し背景領域
は「0」に相当する。また、高濃度の背景の上に抜き文
字があるときは、文字領域は「0」に相当し背景領域は
「1」に相当する。
First, the 5 × 5 mask is binarized by the binarizing unit 32a. For example, a binary mask is obtained by setting "1" if the density of each pixel is higher than the average density in the mask and "0" otherwise. When there is a character on a low-density background, the character area corresponds to "1" and the background area corresponds to "0". When there is a blank character on the high-density background, the character area corresponds to "0" and the background area corresponds to "1".

【0069】次に、この2値マスクから、面積と最大反
転回数とが算出される。このとき「1」の画素数が
「0」の画素数よりも多い場合と、「0」の画素数が
「1」の画素数よりも多い場合、つまり通常文字か抜き
文字かによって判定手順が異なるが、以下では通常文字
の場合を想定して説明する。
Next, the area and the maximum number of inversions are calculated from this binary mask. At this time, when the number of pixels of "1" is larger than the number of pixels of "0" and when the number of pixels of "0" is larger than the number of pixels of "1", that is, whether the character is a normal character or a blank character, the determination procedure is Although different, the description will be made below assuming a normal character.

【0070】すなわち、面積の算出は、面積計数部32
bにおいて、2値マスク内の「1」の画素数をカウント
して面積area1が出力され、「0」の画素数をカウント
して面積area0が出力される。最大反転回数の算出は、
最大反転計数部32cにおいて主走査・副走査方向の各
ラインにおいて「1」と「0」とが反転する回数がカウ
ントされ、その最大反転回数値changeが出力される。例
えば、図8に示す2値マスクの場合、面積area1=1
5、面積area0=10、及び最大反転回数値change=3が
得られる。これら3つの特徴量である面積area1・面積
area0、最大反転回数値changeを基に、閾値選択部35
にて上記閾値THmax・THmin・THdiffの切り替えが
行われる。
That is, the area is calculated by the area counting unit 32.
In b, the area area1 is output by counting the number of "1" pixels in the binary mask, and the area area0 is output by counting the number of "0" pixels. Calculate the maximum number of inversions
The maximum inversion counter 32c counts the number of times "1" and "0" are inverted in each line in the main scanning and sub-scanning directions, and outputs the maximum inversion number value change. For example, in the case of the binary mask shown in FIG. 8, the area area1 = 1
5, area area0 = 10, and maximum inversion count value change = 3 are obtained. Area area1 and area, which are these three features
Based on area0 and the maximum inversion count value change, the threshold selection unit 35
At the threshold value THmax / THmin / THdiff is switched.

【0071】次に、閾値選択部35について、図9に基
づいて説明する。
Next, the threshold selection section 35 will be described with reference to FIG.

【0072】この閾値選択部35では、最大濃度・最小
濃度・最大濃度差に対して、それぞれ厳しい閾値maxH
・minL・diffHとゆるい閾値maxL・minH・diffLと
が予め定められており、それぞれ[maxH,maxL]・
[minL,minH]・[diffH,diffL]の組み合せで各
セレクタに設定されている。また、各セレクタの前段に
は、面積area1・面積area0、及び2値マスク内の
「1」の画素数である面積area1を最大反転回数値chan
geで割った値を除算器A/B35aにて演算し、それぞ
れに対応して予め定められた閾値a1TH・a0TH・chT
Hとを比較する比較器35b・35c・35dが備えら
れている。
The threshold selection unit 35 has strict thresholds maxH for maximum density, minimum density, and maximum density difference.
-MinL-diffH and a loose threshold value maxL-minH-diffL are predetermined, and each is [maxH, maxL]-
A combination of [minL, minH] and [diffH, diffL] is set for each selector. Further, in the preceding stage of each selector, the area area1, the area area0, and the area area1, which is the number of pixels of "1" in the binary mask, are set to the maximum inversion count value chan.
The value divided by ge is calculated by the divider A / B 35a, and the threshold values a1TH, a0TH, and chT are set in advance corresponding to the respective values.
Comparators 35b, 35c and 35d for comparing with H are provided.

【0073】以下、閾値THmax・THmin・THdiffの
選択方法について説明する。
The method of selecting the thresholds THmax, THmin and THdiff will be described below.

【0074】まず、文字領域の面積area1がある程度大
きいとき(面積area1>閾値a1TH)は、最大濃度を感
知し易いので閾値THmaxとして厳しい閾値maxHがセレ
クタ35eにて選択され、それ以外のときはゆるい閾値
maxLが選択される。背景領域の面積area0がある程度
大きいとき(面積area0>閾値a0TH)は、最小濃度を
感知し易いので閾値THminとして厳しい閾値minLがセ
レクタ35fにより選択され、それ以外のときはゆるい
閾値minHが選択される。また、小さい文字は面積area
1が小さくなるか又は最大反転回数値changeが大きくな
る。逆に、大きい文字は面積area1が大きくなるか又は
最大反転回数値changeが小さくなる。
First, when the area area1 of the character area is large to some extent (area area1> threshold a1TH), the maximum density is easy to be sensed, so the strict threshold maxH is selected as the threshold THmax by the selector 35e, otherwise it is loose. Threshold
maxL is selected. When the area area0 of the background region is large to some extent (area area0> threshold a0TH), the minimum density is easy to be sensed, so the strict threshold minL is selected by the selector 35f as the threshold THmin, and otherwise the loose threshold minH is selected. . Also, small letters are area
1 becomes smaller or the maximum inversion number value change becomes larger. Conversely, for large characters, the area area1 increases or the maximum inversion count value change decreases.

【0075】そこで、面積area1を最大反転回数値chan
geで割った値がある程度大きいとき((面積area1/最
大反転回数値change)>閾値chTH)は、最大濃度差を
感知し易いので閾値THdiffとして厳しい閾値diffHが
セレクタ35gにて選択され、それ以外のときはゆるい
閾値diffLが選択される。
Therefore, the area area1 is set to the maximum inversion number value chan.
When the value divided by ge is large to some extent ((area area1 / maximum inversion count value change)> threshold chTH), it is easy to detect the maximum density difference, so the strict threshold diffH is selected as the threshold THdiff by the selector 35g, and other than that. , A loose threshold value diffL is selected.

【0076】以上の説明は、通常エッジの場合であり、
抜きエッジの場合は面積area0と面積area1との扱いが
逆になるが、判定手順は同一のため、省略する。
The above description is for a normal edge,
In the case of a punched edge, the handling of the area area0 and the area area1 is reversed, but the determination procedure is the same and therefore omitted.

【0077】以上述べたように、2値マスクの特徴量を
用いて、3つの閾値THmax・THmin・THdiffが切り
替えられる。本実施の形態では、厳しい閾値とゆるい閾
値との2段階を設けたが、さらに数段階の閾値を設けて
選択することができるのはもちろんである。
As described above, the three thresholds THmax, THmin and THdiff are switched using the feature amount of the binary mask. In the present embodiment, two stages of a strict threshold and a loose threshold are provided, but it goes without saying that thresholds of several stages can be provided for selection.

【0078】次に、図3に示す抜きエッジ判定部50に
ついて、図10に基づいて詳細に説明する。
Next, the cut edge determining section 50 shown in FIG. 3 will be described in detail with reference to FIG.

【0079】上記抜きエッジ判定部50は、同図に示す
ように、有彩色/無彩判定部51と、濃度判定部52
と、AND回路53と、加算回路(ADD)54とから
構成される。
As shown in the figure, the above-mentioned cut edge determining section 50 includes a chromatic / achromatic determining section 51 and a density determining section 52.
And an AND circuit 53 and an adder circuit (ADD) 54.

【0080】上記有彩色/無彩判定部51では、まずラ
インメモリから読み出される5×5マスク内の任意の画
素での色成分C、M、Yの組に対して差分絶対値|C−
M|、差分絶対値|M−Y|、及び差分絶対値|Y−C
|が算出され、これら差分絶対値の組の中から最も絶対
値が大きな値となる組を求め、そのときの差分絶対値と
閾値BkTHとが比較され、差分絶対値が閾値BkTHより
も小さいときには当該画素は無彩色であるとして「1」
の判定信号が出力され、差分絶対値が閾値BkTH以上の
ときには当該画素は有彩色であるとして「0」の判定信
号が出力される。
In the chromatic / achromatic judging section 51, the absolute difference value | C− for the set of color components C, M, and Y at any pixel in the 5 × 5 mask read from the line memory is first calculated.
M |, absolute difference value | MY |, and absolute difference value | Y-C
| Is calculated, a pair having the largest absolute value is obtained from the pair of difference absolute values, the difference absolute value at that time is compared with the threshold value BkTH, and when the difference absolute value is smaller than the threshold value BkTH. "1" as the pixel is achromatic
Is output, and when the absolute difference value is equal to or greater than the threshold value BkTH, the pixel is determined to be a chromatic color, and the determination signal of “0” is output.

【0081】上記濃度判定部52では、色成分C、M、
Yのうちのいずれか(ここではM)の濃度値と閾値whT
Hとが比較され、M濃度値が閾値whTHよりも大きいと
きには「1」が濃度判定信号として出力され、M濃度値
が閾値whTH以内のときには「0」が濃度判定信号とし
て出力される。そして、有彩色/無彩判定信号と濃度判
定信号とはAND回路53にて論理積が求められ、高濃
度で無彩色、つまり黒色の場合は「1」という信号が出
力され、それ以外は「0」という信号が出力される。
In the density determining section 52, the color components C, M,
The density value of any one of Y (here, M) and the threshold value whT
H is compared, and when the M density value is larger than the threshold value whTH, "1" is output as the density determination signal, and when the M density value is within the threshold value whTH, "0" is output as the density determination signal. Then, a logical product of the chromatic / achromatic judgment signal and the density judgment signal is obtained by the AND circuit 53, and a signal of "1" is output in the case of high density and achromatic color, that is, black, and otherwise " The signal "0" is output.

【0082】以上の判定が5×5マスク内の全ての画素
に適用され、加算器(ADD)54により5×5マスク
内での黒色であると判定された画素数が算出される。こ
の黒色画素数と閾値bgTHが比較され、黒色画素数が閾
値bgTHよりも多ければ「1」の信号が出力され、黒色
画素数が閾値bgTHよりも少なければ「0」の信号が出
力される。これが抜きエッジ判定信号BGCとなり、抜
きエッジ判定信号BGCが「1」のときは背景又は下地
が黒色であると判定され、対象画素が文字エッジである
場合には、該エッジは抜きエッジである可能性が高いと
いえる。
The above determination is applied to all the pixels in the 5 × 5 mask, and the adder (ADD) 54 calculates the number of pixels determined to be black in the 5 × 5 mask. The number of black pixels is compared with the threshold value bgTH, and a signal of "1" is output when the number of black pixels is larger than the threshold value bgTH, and a signal of "0" is output when the number of black pixels is smaller than the threshold value bgTH. This is the extracted edge determination signal BGC. When the extracted edge determination signal BGC is "1", it is determined that the background or background is black, and when the target pixel is a character edge, the edge may be an extracted edge. It can be said that it is highly effective.

【0083】次に、図3に示す強調処理切り替え判定部
40について、図11及び図12に基づいて説明する。
Next, the emphasis process switching determination section 40 shown in FIG. 3 will be described with reference to FIGS. 11 and 12.

【0084】一般に、図12(a)に示すように、低濃
度の背景の上に黒文字がある場合、黒文字エッジ全体に
強調フィルタ処理を行うと、図12(b)に示すよう
に、文字周辺に白抜けや下地(背景)よりも低い濃度の
輪郭が発生する。また、図12(c)に示すように、高
濃度の背景の上に白(抜き)文字がある場合、白抜き文
字エッジ全体に強調処理を行うと、特に抜き文字が細線
の場合は、図12(d)に示すように、文字が潰れてし
まう可能性が存在する。これらを防ぐことを目的に、強
調切り替え判定を行う。
In general, when there is a black character on a low-density background as shown in FIG. 12A, if emphasis filter processing is performed on the entire black character edge, as shown in FIG. White spots and outlines of lower density than the background (background) occur. Further, as shown in FIG. 12C, when there is a white (blank) character on a high-density background, if emphasis processing is performed on the entire white character edge, especially when the blank character is a thin line, As shown in FIG. 12 (d), there is a possibility that the characters will be crushed. The emphasis switching determination is performed for the purpose of preventing these.

【0085】黒文字エッジ及び白抜き文字エッジでは、
判定処理の流れは同じであるため、以降の説明は詳細と
して黒文字エッジを対象に行う。
At the black character edge and the white character edge,
Since the flow of the determination process is the same, the following description will be given in detail for the black character edge.

【0086】まず、図11に示すように、ラインメモリ
から読み出されるC・M・Y各色の5×5マスクは、そ
れぞれ強調判定フィルタ手段としての強調判定フィルタ
部41…に入力され、例えば、図13に示す強調判定フ
ィルタEJFが畳み込まれる。なお、このときに使用す
る強調判定フィルタEJFは、強調フィルタの一種であ
り、必ずしも図13のものに限定されるものではない。
後段の処理で行われる実際の強調フィルタパラメータが
既に決定しているのであれば、それをそのまま流用すれ
ばより好適である。
First, as shown in FIG. 11, the 5 × 5 masks of C, M, and Y colors read from the line memory are input to the emphasis determination filter section 41 ... The emphasis determination filter EJF shown in 13 is convoluted. The emphasis determination filter EJF used at this time is a kind of emphasis filter, and is not necessarily limited to the one shown in FIG.
If the actual enhancement filter parameter to be performed in the subsequent processing has already been determined, it is more suitable to use it as it is.

【0087】例えば、図14(a)に示す文字領域の濃
度分布を有する文字領域に強調判定フィルタEJFを畳
み込むと、図14(b)に示すように、文字エッジ部に
負の値を示す部分が現れることがある。このように、強
調フィルタの一種をかけたときに負の値を示す部分は、
文字周辺に発生する白抜けの要因となり得る。したがっ
て、この部分を予め検出しておくことにより、白抜けの
発生を防止することができる。さらに、黒文字周辺には
色にじみが存在することが多いので、この部分のデータ
を黒に近いデータに置き換えれば、黒文字周辺に発生す
る色にじみを防ぐことができる。また、黒に近いデータ
に置き換えると、小さな文字や細い線が消えることがな
い。また、厳密には色文字の周辺にも色にじみは発生し
ているが、色文字周辺の色にじみはそれが色にじみであ
るのか、それとも色文字の一部分であるのかは一般的に
は判別が困難であり、また黒文字に比べて視覚上の画質
劣化の要因にはならないので、ここでは問題にしない。
For example, when the emphasizing judgment filter EJF is convoluted into the character area having the density distribution of the character area shown in FIG. 14A, as shown in FIG. 14B, a portion showing a negative value in the character edge portion. May appear. In this way, the part that shows a negative value when applying one type of emphasis filter is
It may be a factor of white spots around the characters. Therefore, by detecting this portion in advance, it is possible to prevent the occurrence of blank areas. Furthermore, since color bleeding often exists around black characters, color bleeding around black characters can be prevented by replacing the data in this portion with data close to black. Also, when replaced with data close to black, small characters and thin lines will not disappear. Strictly speaking, color fringing also occurs around the color letters, but it is generally impossible to determine whether the color fringing around the color letters is a color fringing or a part of the color letters. This is not a problem here because it is difficult and does not cause visual deterioration of image quality as compared with black characters.

【0088】上記強調判定フィルタEJFを畳み込んだ
C・M・Y各色の5×5マスク結果の値は、図11に示
すように、比較手段としての各比較器42…にて予め定
められた基準値(基準値C・基準値M・基準値Y)と比
較され、基準値よりも大きい場合には「1」が出力さ
れ、小さい場合には「0」が出力される。ここで、上記
基準値としては、例えば出力「0」、すなわち、強調判
定フィルタEJFを畳み込んだ結果の正負の符号が用い
られる。この正負の符号を基に判定することにより文字
周辺の白抜けを防止することが可能である。
As shown in FIG. 11, the value of the 5 × 5 mask result of each of C, M, and Y colors obtained by convolving the above-described emphasis determination filter EJF is predetermined by each comparator 42 as a comparison means. It is compared with the reference value (reference value C / reference value M / reference value Y). If it is larger than the reference value, "1" is output, and if it is smaller, "0" is output. Here, as the reference value, for example, the output “0”, that is, the positive / negative sign of the result obtained by convolving the emphasis determination filter EJF is used. By making a determination based on the positive and negative signs, it is possible to prevent blank areas around the characters.

【0089】一方、基準値として下地濃度値を用いるこ
とも可能である。下地濃度としては、例えば5×5マス
ク内の各色の最小値が使用される。基準値として下地濃
度値を用いれば、文字周辺の白抜けだけでなく、図14
(b)に示すように、下地よりも低い濃度値の輪郭が発
生することも防ぐことが可能である。強調判定フィルタ
処理を行った結果、判定結果の符号が正であったとして
も、その部分の値が下地濃度よりも低い場合、一様に強
調処理が施されると、文字周辺に輪郭として生じる要因
となり得るためである。
On the other hand, it is also possible to use the background density value as the reference value. As the background density, for example, the minimum value of each color in the 5 × 5 mask is used. If the background density value is used as the reference value, not only white spots around the character but also
As shown in (b), it is possible to prevent a contour having a density value lower than that of the background. As a result of performing the emphasis determination filter process, even if the sign of the determination result is positive, if the value of that part is lower than the background density, if the emphasis process is uniformly applied, it occurs as a contour around the character. This is because it can be a factor.

【0090】次に、図11に示すように、各色の比較結
果はそれぞれ加算器(ADD)43にて加算されて注目画
素Pの特徴量が求められた後、信号生成手段としての比
較器44にて閾値empTHと比較されて、「0」又は
「1」の信号が基準値判定信号として出力される。上記
閾値empTHは、3色とも基準値より大きいと判断され
た時のみ強調処理を施すので「3」に設定されている。
Next, as shown in FIG. 11, the comparison results of the respective colors are added by the adder (ADD) 43 to obtain the feature amount of the pixel of interest P, and then the comparator 44 as the signal generating means. Is compared with the threshold value empTH, and a signal of "0" or "1" is output as a reference value determination signal. The threshold value empTH is set to "3" because emphasis processing is performed only when it is determined that all three colors are larger than the reference value.

【0091】また、各色の強調判定フィルタEJFを畳
み込んだ処理結果と基準値との差(以降、「基準差値」
と記す。)が差分器(SUB)45…によって算出さ
れ、各色の基準差値が加算器(ADD)46にて加算さ
れ、次いで、基準差値の合計と閾値ovTHとが比較器4
7にて比較され、基準差値の合計が閾値ovTH未満の場
合は「1」が基準差値判定信号として出力され、基準差
値の合計が閾値ovTH以上の場合は「0」が基準差値判
定信号として出力される。これは強調処理を行った際に
濃度の変化度がどのくらいの尺度で生じているかを示す
ものであり、基準値判定の結果が負であったとしても、
基準差値が小さい場合は、色抜けや色にじみの影響も視
覚的には小さいと考えられる。このときの閾値ovTHと
しては、視覚的に明らかに差を感じる濃度として20〜
30×3色として、例えば60〜90を設定する。
Further, the difference between the processing result obtained by convoluting the emphasis judgment filter EJF of each color and the reference value (hereinafter, "reference difference value").
Is written. ) Is calculated by the difference unit (SUB) 45 ..., The reference difference value of each color is added by the adder (ADD) 46, and then the sum of the reference difference values and the threshold value ovTH are compared.
7, when the total of the reference difference values is less than the threshold ovTH, "1" is output as the reference difference value determination signal, and when the total of the reference difference values is greater than or equal to the threshold ovTH, "0" is the reference difference value. It is output as a determination signal. This shows how much the degree of change in density occurs when emphasis processing is performed, and even if the result of the reference value determination is negative,
When the reference difference value is small, it is considered that the effect of color loss or color fringing is visually small. At this time, the threshold value ovTH is 20 to 20 as a density at which a clear difference is visually felt.
For example, 60 to 90 are set as 30 × 3 colors.

【0092】次いで、上記基準値判定信号と基準差値判
定信号とはビット結合され、最終的に強調切り替え判定
信号EMPが得られる。強調切り替え判定信号EMP=
“11“又は”10“の画素は通常の強調処理を施すこ
とができる。強調切り替え判定信号EMP=”01“の
画素は白抜け・輪郭・色にじみの問題が発生する可能性
があるが、視覚的には問題のないレベルでの発生と考え
られるため、強調処理してもよい。また、強調切り替え
判定信号EMP=”00“の画素は、白抜け・輪郭・色
にじみが視覚的にも問題のあるレベルまで発生すること
を示しているため、強調処理は行わない。
Next, the reference value determination signal and the reference difference value determination signal are bit-combined, and finally the emphasis switching determination signal EMP is obtained. Emphasis switching determination signal EMP =
Pixels of "11" or "10" can be subjected to normal enhancement processing. Pixels with the emphasis switching determination signal EMP = "01" may have problems such as white spots, outlines, and color bleeding, but they are considered to occur at a level at which there is no problem visually. Good. In addition, since the pixels of the emphasis switching determination signal EMP = “00” indicate that white spots, outlines, and color bleeding occur to a visually problematic level, the emphasis process is not performed.

【0093】抜き文字の場合は、処理の流れは通常文字
の場合と同じであるが、判定結果の分岐が異なる。すな
わち、強調切り替え判定信号EMP=“00”又は“0
1”の画素は強調処理を施すことができる。強調切り替
え判定信号EMP=“11”の画素は文字潰れが発生す
る可能性があるが、視覚的には問題のないレベルだと考
えられるため、強調処理してもよい。強調切り替え判定
信号EMP=“10”の画素は文字潰れが視覚的にも問
題のあるレベルまで発生する可能性があるため、強調処
理は行わない。
In the case of a blank character, the flow of processing is the same as in the case of a normal character, but the branching of the judgment result is different. That is, the emphasis switching determination signal EMP = “00” or “0”
The pixel of 1 ”can be subjected to the emphasis process. The pixel of the emphasis switching determination signal EMP =“ 11 ”may cause character collapse, but it is considered to be a level that does not have a visual problem. The pixel of the emphasis switching determination signal EMP = “10” may not be emphasized because the character collapse may occur up to a visually problematic level.

【0094】上記強調切り替え判定信号に基づき強調処
理を行わないと判定された画素については、強調処理を
行う前の濃度値と強調処理を行った後の濃度値の変化分
を対象画素の周辺に存在する画素に割り振ることにな
る。このとき、対象画素が通常エッジである場合は、周
辺画素に対して減算を行うと白抜けの原因になる(図1
2(b)参照)ため濃度変化分を加算(+)方向に割り
振り、反対に対象画素が抜きエッジである場合には、周
辺画素に対して加算を行うと文字潰れの原因になる(図
12(d))ため濃度変化分を減算(−)方向に割り振
ることになる。
As for the pixels determined not to perform the enhancement processing based on the enhancement switching determination signal, the change in the density value before the enhancement processing and the change in the density value after the enhancement processing are performed around the target pixel. It will be allocated to existing pixels. At this time, when the target pixel is a normal edge, subtraction with respect to peripheral pixels causes white spots (see FIG. 1).
2 (b)), the density change amount is allocated in the addition (+) direction, and conversely, when the target pixel is the extraction edge, addition to peripheral pixels causes a character collapse (FIG. 12). Because of (d)), the density change amount is allocated in the subtraction (-) direction.

【0095】次に、上記画像処理方法における全体の処
理の流れを、図1に示すフローチャートに基づいて説明
する。
Next, the flow of the entire processing in the above image processing method will be described based on the flowchart shown in FIG.

【0096】先ず、文字エッジ判定部10の文字エッジ
検出・色判定部20及び特徴量算出・判定部30におい
て、注目画素Pに対して文字エッジ判定処理がなされ
(S1,S2)、黒文字エッジ判定信号BkEDGE又は
色文字エッジ判定信号ColEDGEが生成される。エッ
ジ部(黒文字エッジ又は色文字エッジ)であると判定さ
れた画素については、強調処理切り替え判定部40に
て、注目画素Pに対する強調切り替え判定が行われる
(S3,S4)。
First, in the character edge detection / color judgment unit 20 and the feature amount calculation / judgment unit 30 of the character edge judgment unit 10, a character edge judgment process is performed on the pixel of interest P (S1, S2), and a black character edge judgment is made. The signal BkEDGE or the color character edge determination signal ColEDGE is generated. With respect to the pixel determined to be the edge portion (black character edge or color character edge), the emphasis processing switching determination unit 40 performs the emphasis switching determination on the target pixel P (S3, S4).

【0097】注目画素Pは、強調処理切り替え判定部4
0にて強調判定フィルタ処理が施され各色毎に定められ
た基準値と比較される。各色の処理結果値と基準値との
差である基準差値と閾値ovTHとが比較され、基準差値
判定信号が求められるとともに、各色の比較結果は加算
された後、閾値empTHと比較されて基準値判定信号が
求まる。これによって得られた基準差値判定信号と基準
値判定信号とから最終的な強調切り替え判定信号EMP
が生成される。抜きエッジ判定部50では、注目画素P
を含む周辺領域での黒色画素数の発生頻度から抜きエッ
ジ判定信号BGCが生成される。
The pixel of interest P is selected by the emphasis process switching determination unit 4
At 0, the emphasis determination filter processing is performed and compared with the reference value determined for each color. The reference difference value which is the difference between the processing result value of each color and the reference value is compared with the threshold value ovTH to obtain the reference difference value determination signal, and the comparison result of each color is added and then compared with the threshold value empTH. The reference value determination signal is obtained. From the reference difference value determination signal and the reference value determination signal thus obtained, the final emphasis switching determination signal EMP
Is generated. In the extraction edge determination unit 50, the target pixel P
The extraction edge determination signal BGC is generated from the frequency of occurrence of the number of black pixels in the peripheral region including the.

【0098】これらの黒文字エッジ判定信号BkEDG
E、強調切り替え判定信号EMP、及び抜きエッジ判定
信号BGCに基づいて、黒生成/下色除去処理(S5,
S6)、強調フィルタ処理(S7)、有彩色を無彩色に
置き換える処理(S8)、スルー処理(S9)、空間フ
ィルタ部での濃度変化分加算方向振り分け(S10)、
空間フィルタ部での濃度変化分減算方向振り分け(S1
1)、エッジ以外の領域用中間調生成処理(S12)、
及びエッジ領域用中間調生成処理(S13)が選択され
処理される。なお、S6の下の二重線、及びS8、S1
0、S11の下の二重線は並列処理を示すものである。
These black character edge determination signals BkEDG
Based on E, the emphasis switching determination signal EMP, and the extraction edge determination signal BGC, black generation / undercolor removal processing (S5,
S6), emphasis filter process (S7), process of replacing chromatic color with achromatic color (S8), through process (S9), distribution of density change amount addition direction in spatial filter section (S10),
Sorting in the subtraction direction by the density change in the spatial filter (S1
1), halftone generation processing for areas other than edges (S12),
The edge area halftone generation processing (S13) is selected and processed. The double line below S6 and S8 and S1
Double lines below 0 and S11 indicate parallel processing.

【0099】上記処理の詳細内容について図15〜図2
0を用いて以下に説明する。
Detailed contents of the above processing will be described with reference to FIGS.
It will be described below using 0.

【0100】まず、黒生成処理は黒色の再現性の向上と
トナーやインクの使用総量の節約を目的としてCMYカ
ラーをCMYK4色で再現するための処理であり、例え
ば、図15(a)(b)に示すように、任意の画素を構
成するC・M・Yのうち、最も低い濃度をもつ色(同図で
はC)の濃度分をKに置き換えるとともに、元のC・M・
Yの濃度からKの濃度分を差し引いた濃度を新たなC・
M・Yの濃度としてC・M・Y・K4色を生成する。今回は
簡易的に、C・M・Yの組の最小濃度をそのまま100%
Kに置き換えているが、実際には100%全てをKに置
き換えてしまうと彩度が落ちてしまうため、最小濃度の
何%分かをKに置き換えることが普通である。
First, the black generation process is a process for reproducing CMY colors with four CMYK colors for the purpose of improving the reproducibility of black and saving the total amount of toner and ink used. For example, FIGS. ), The density of the color having the lowest density (C in the figure) of C, M, and Y forming an arbitrary pixel is replaced with K, and the original C, M, and
The concentration obtained by subtracting the concentration of K from the concentration of Y is newly calculated as C.
C, M, Y, and K four colors are generated as the density of M and Y. This time, simply set the minimum density of the C, M and Y pairs to 100%.
Although it is replaced with K, in reality, if 100% of all is replaced with K, the saturation decreases, so it is common to replace some of the minimum density with K.

【0101】例えば、図16(b)〜(e)に示すよう
に、3×3サイズからなる画素領域と、図16(a)に
示す強調フィルタを想定する。図16(b)〜(e)に
示す中央画素(網掛けしてある画素)が処理対象の画素で
あり、この画素を中心とした画素領域に図16(a)に
示す強調処理を行う。 (1)対象画素が文字でないと判断された場合 この場合は、対象画素に対しての黒生成/下色除去及び
強調フィルタ処理は行われることなく、後段の中間調生
成部に送られ、階調を重視するようなハーフトーンスク
リーンによる2値化又は多値化処理が行われる。 (2)対象画素が黒文字で、強調処理が可能と判断され
た場合 この場合は、対象画素に対して黒生成/下色除去が行わ
れ、色補正後のC・M・Y信号から最小濃度を検出し、
この最小濃度をもってK(黒)信号を生成し、元のC・
M・Y信号から、このK信号を差し引いて新たなC・M
・Y信号を生成する。これらの信号のうち、K信号に、
図16(a)に示すフィルタ係数による強調処理が行わ
れる。これらの処理の前後での対象画素における濃度変
化の様子を図17(a)(b)に示す。処理結果は、後
段の中間調生成部に送られ、解像度を重視するようなハ
ーフトーンスクリーンによる2値化又は多値化処理が行
われる。 (3)対象画素が黒文字で、強調処理は不可と判断され
た場合 この場合は、図18(a)に示すように、対象画素に対
して(2)の場合と同様の黒生成/下色除去により新た
なC・M・Y・K信号が生成され、これらの信号のうち
C・M・Y信号に対しては、図18(b)に示すよう
に、有彩色を無彩色に置き換える処理が行われる。これ
は、C・M・Yの3信号の平均値を算出し、この平均値
をもって新たなC・M・Y信号とする処理となる。ここ
で平均値に置き換えるのは、C・M・Y各色間の濃度差
をなくして無彩色(黒)に近づけるためである。これによ
って、文字周辺の色にじみを防ぎながら、黒文字を強調
することができる。
For example, as shown in FIGS. 16 (b) to 16 (e), a pixel region of 3 × 3 size and the enhancement filter shown in FIG. 16 (a) are assumed. The central pixel (hatched pixel) shown in FIGS. 16B to 16E is the pixel to be processed, and the emphasis processing shown in FIG. 16A is performed on the pixel area centered on this pixel. (1) When it is determined that the target pixel is not a character In this case, black generation / undercolor removal and enhancement filter processing are not performed on the target pixel, and the target pixel is sent to the halftone generation unit in the subsequent stage, Binarization or multi-value conversion processing by a halftone screen that emphasizes the key is performed. (2) When the target pixel is black characters and it is determined that enhancement processing is possible In this case, black generation / undercolor removal is performed on the target pixel, and the minimum density is obtained from the C, M, Y signals after color correction. Detect
The K (black) signal is generated with this minimum density, and the original C
This K signal is subtracted from the M ・ Y signal to create a new C ・ M
Generate a Y signal. Of these signals, the K signal
The emphasis process is performed using the filter coefficient illustrated in FIG. 17 (a) and 17 (b) show how the density of the target pixel changes before and after these processes. The processing result is sent to the halftone generating unit in the subsequent stage, and binarized or multivalued processing is performed by a halftone screen that emphasizes resolution. (3) When the target pixel is a black character and it is determined that the enhancement processing is not possible In this case, as shown in FIG. 18A, the same black generation / undercolor as the case of (2) is performed on the target pixel. A new C, M, Y, K signal is generated by the removal, and for these C, M, Y signals, a process of replacing the chromatic color with an achromatic color as shown in FIG. 18B. Is done. This is a process of calculating an average value of three C, M, and Y signals and using this average value as a new C, M, and Y signal. The reason why the average value is replaced here is to eliminate the density difference between the C, M, and Y colors and bring it closer to an achromatic color (black). As a result, black characters can be emphasized while preventing color fringing around the characters.

【0102】K信号に対しては、本来、強調処理を行っ
た場合の処理前後の濃度変化分を周辺画素に振り分け
る。なお、この処理は空間フィルタ部7にて行われる。
本来、強調処理を行った場合、K信号の濃度は、図17
(b)に示すように、“100”となり、図17(a)
に示すように、強調処理を行わない場合の濃度の“5
0”に対して“100−50=50”の差分が生じるた
め、この濃度差分を対象画素の周辺画素に割り振ってい
く。
For the K signal, the amount of density change before and after the processing when the enhancement processing is originally performed is distributed to the peripheral pixels. Note that this processing is performed by the spatial filter unit 7.
Originally, when the emphasis processing was performed, the density of the K signal was as shown in FIG.
As shown in FIG. 17B, it becomes “100”, and FIG.
As shown in, the density of “5
Since a difference of "100-50 = 50" occurs with respect to 0 ", this density difference is allocated to the peripheral pixels of the target pixel.

【0103】割り振り方法としては、本実施の形態で
は、周辺画素全てに均等に差分を割り振っていくことと
し、周辺画素数は8画素であるから、図18(c)
(d)に示すように、“50/8=6(小数点以下四捨
五入)”が割り振り濃度となる。
As the allocating method, in the present embodiment, the difference is evenly allocated to all the peripheral pixels, and the number of peripheral pixels is eight. Therefore, FIG.
As shown in (d), “50/8 = 6 (rounded up to the right of the decimal point)” is the assigned density.

【0104】具体的には、抜きエッジ判定部50での対
象画素の判定結果が通常エッジであると判定されている
場合は、図18(c)に示すように、この割り振り濃度
を加算(+)方向に周辺画素に割り振っていき、抜きエ
ッジであると判定されている場合は、図18(d)に示
すように、この割り振り濃度を減算(−)方向に割り振
っていく。ただし、濃度にマイナス以下はないので、振
り分け後の処理結果が0以下でも結果的には0になる。
Specifically, when the determination result of the target pixel in the extraction edge determination unit 50 is determined to be a normal edge, this allocation density is added (+) as shown in FIG. 18C. ) Direction is allocated to the peripheral pixels, and when it is determined that the pixel is a cut edge, the allocated density is allocated in the subtraction (-) direction as shown in FIG. 18D. However, since the density is not less than minus, even if the processing result after sorting is 0 or less, the result is 0.

【0105】処理結果は、後段の中間調生成部8に送ら
れ、解像度を重視するようなハーフトーンスクリーンに
よる2値化又は多値化処理が行われる。 (4)対象画素が色文字で、強調可と判断された場合 この場合は,対象画素に対しての黒生成/下色除去処理
は行われずに、C・M・Y信号に対して、前記図16
(a)に示すフィルタ係数による強調処理が行われる。
The processing result is sent to the halftone generating section 8 in the subsequent stage, and binarized or multivalued processing is performed by a halftone screen that emphasizes resolution. (4) When it is determined that the target pixel is a color character and can be emphasized In this case, the black generation / undercolor removal processing is not performed on the target pixel, and FIG.
The enhancement process is performed using the filter coefficient shown in (a).

【0106】処理前後での対象画素における濃度変化の
様子を図19に示す。本実施の形態での濃度範囲は1色
当たり8ビットとし、最大255であるので、処理結果
が255を超えていても255に丸め込まれる。処理結
果は、後段の中間調生成部に送られ、解像度を重視する
ようなハーフトーンスクリーンによる2値化又は多値化
処理が行われる。 (5)対象画素が色文字で、強調不可と判断された場合 この場合は、対象画素に対して黒生成/下色除去及び強
調フィルタ処理は行われない。C・M・Y信号に対して
は、本来、強調処理を行った場合の処理前後の濃度変化
分を周辺画素に振り分ける。本来、強調処理を行った場
合、C・M・Y信号の濃度は、図19に示すように、
“80、170、255”となり、図20(a)に示す
スルー処理結果に対して、それぞれ“80−50=3
0、170−100=70、255−200=55”の
濃度差分が生じるため、図20(b)(c)に示すよう
に、この差分を(3)の場合同様、周辺8画素に加算方
向又は減算方向に割り振っていく。
FIG. 19 shows how the density of the target pixel changes before and after the processing. In the present embodiment, the density range is 8 bits per color, and the maximum is 255. Therefore, even if the processing result exceeds 255, it is rounded to 255. The processing result is sent to the halftone generating unit in the subsequent stage, and binarized or multivalued processing is performed by a halftone screen that emphasizes resolution. (5) When it is determined that the target pixel is a color character and cannot be emphasized In this case, black generation / undercolor removal and emphasis filter processing are not performed on the target pixel. For the C, M, Y signals, the density change amount before and after the processing when the emphasis processing is performed is originally distributed to the peripheral pixels. Originally, when the emphasizing process is performed, the density of the C, M, Y signals is as shown in FIG.
“80, 170, 255”, which is “80-50 = 3” for the through processing result shown in FIG.
Since a density difference of 0, 170-100 = 70, 255-200 = 55 "occurs, as shown in FIGS. 20B and 20C, as in the case of (3), this difference is added to the peripheral 8 pixels in the addition direction. Or, allocate in the subtraction direction.

【0107】処理結果は、後段の中間調生成部に送ら
れ、解像度を重視するようなハーフトーンスクリーンに
よる2値化又は多値化処理が行われる。 (6)割り振り画素に判定信号を考慮した場合 前述の処理例での(3)及び(5)では強調処理前後に
おける変化分を周辺全画素に均等に割り振っていたが、
この割り振り対象の画素を領域判定信号に基づいて選択
する方法も考えられる。
The processing result is sent to the halftone generating unit in the subsequent stage, and binarized or multivalued by a halftone screen that emphasizes resolution. (6) When the determination signal is taken into consideration for the allocated pixels In (3) and (5) in the above-described processing example, the change amount before and after the emphasis process is evenly allocated to all the surrounding pixels.
A method of selecting the allocation target pixel based on the area determination signal is also conceivable.

【0108】対象画素及び周辺画素は、図22(a)に
示すモデルとし、このときの対象画素及び周辺画素9画
素の領域判定が、図21(a)に示すようになっている
ものとする。ここでは、処理の簡易化のために、割り振
り選択の基準として、黒文字か色文字か、通常エッジか
抜きエッジか、に注目し、強調処理が可能か否かの強調
判定信号は考えないものとする。
The target pixel and the peripheral pixels are modeled as shown in FIG. 22 (a), and the area determination of the target pixel and the peripheral pixels 9 pixels at this time is as shown in FIG. 21 (a). . Here, for simplification of processing, attention is paid to black characters or color characters, normal edges or blank edges as a criterion for allocation selection, and an emphasis determination signal indicating whether or not emphasis processing is possible is not considered. To do.

【0109】一連の処理のうち、黒生成/下色除去、有
彩色を無彩色に置き換える処理については処理例(3)
と同じであり、強調処理前後での濃度変化分は120と
なるため、これを判定信号に応じて、図22(d)に示
すように、選択された画素に割り振っていく。処理対象
画素は黒文字・通常エッジであり、割り振る画素につい
ても黒文字・通常エッジである画素を選択することと
し、図21(b)に示すように、薄網掛けされている部
分が割り振り対象画素となる。
Of the series of processes, the black generation / undercolor removal and the process of replacing the chromatic color with the achromatic color are the processing examples (3).
Since the amount of change in density before and after the emphasis processing is 120, this is allocated to the selected pixels as shown in FIG. 22D according to the determination signal. The processing target pixel is a black character / normal edge, and the pixel to be allocated is also a black character / normal edge. As shown in FIG. 21B, the thinly shaded area is the allocation target pixel. Become.

【0110】割り振り対象画素は2画素あるから、“1
20/2=60”を、この2画素に対して加算する。も
し仮に、周辺画素に割り振り対象となる領域判定をもつ
画素が全く存在しない場合、図22(e)に示すよう
に、割り振りは行われない。また、その際に次ブロック
への差分値の伝播も行われない。以上の処理の計算結果
を、図22(b)〜(e)に示す。
Since there are two pixels to be allocated, "1"
20/2 = 60 ″ is added to these two pixels. If there is no pixel having a region determination to be allocated to the peripheral pixels, as shown in FIG. 22B is not performed, and the difference value is not propagated to the next block at that time.The calculation results of the above processing are shown in FIGS.

【0111】ここでは、処理対象画素が黒文字・通常エ
ッジの場合を考えたが、処理対象画素が黒文字・抜きエ
ッジ、色文字・通常エッジ、色文字・抜きエッジの場合も
同様の手順で考えられるため割愛する。
Here, the case where the processing target pixel is a black character / normal edge is considered, but the same procedure can be considered when the processing target pixel is a black character / blank edge, a color character / normal edge, and a color character / blank edge. I will omit it.

【0112】なお、本実施の形態では、強調処理の前後
濃度差を周辺全画素に均等に割り振り、又は、対象画素
と同じ領域判定をもつ画素に均等に割り振ったが、必ず
しもこれに限らず、これを非均等、例えば、対象画素と
同じ領域判定をもつものとそうでないものとで重み付け
を変える等の割り振り方法を行っても構わない。
In the present embodiment, the density difference before and after the emphasizing process is equally allocated to all the peripheral pixels or to the pixels having the same area determination as the target pixel, but the invention is not limited to this. A non-uniform allocation method, such as different weighting depending on whether or not the target pixel has the same area determination as that of the target pixel, may be used.

【0113】また、本実施の形態では、処理の簡易化の
ために領域判定信号のうち強調判定信号は反映させなか
ったが、さらに強調判定信号を含めての周辺画素での割
り振り対象画素を選択してもよい。
Further, in the present embodiment, the emphasis judgment signal of the area judgment signal is not reflected for simplification of the process, but the allocation target pixel among the peripheral pixels including the emphasis judgment signal is further selected. You may.

【0114】さらに、ブロック内で割り振るための画素
が存在しない場合は、次ブロックへ割り振るべき濃度差
を伝播、又は、さらに広い範囲にブロックを拡張する方
法も考えられる。
Further, when there is no pixel to be allocated in a block, a method of propagating the density difference to be allocated to the next block or expanding the block to a wider range can be considered.

【0115】以上の処理により、文字周辺に白抜けや輪
郭が生じることを防ぎながら、文字エッジ部に対してよ
り適正な強調フィルタをかけることが可能になる。
With the above processing, it is possible to apply a more appropriate emphasis filter to the character edge portion while preventing the occurrence of white spots and outlines around the character.

【0116】中間調生成処理では、最終的に画像を出力
するために、画像を画素に分割して、それぞれを階調が
再現できるようにする組識的ディザ法等の処理が施され
る。中間調生成処理では、図1に示すように、強調切り
替え判定信号とは関係なく、黒文字エッジ判定信号を参
照することによって、階調重視又は解像度重視の中間調
処理の切り替えがなされる。このような処理を施すこと
により、文字領域と写真等その他の領域に対して、適正
な中間調生成処理を施すことが可能になる。
In the halftone generation process, in order to finally output the image, the image is divided into pixels, and a process such as an organic dither method is performed so that the gradation can be reproduced for each pixel. In the halftone generation processing, as shown in FIG. 1, regardless of the emphasis switching determination signal, by referring to the black character edge determination signal, the grayscale or resolution-oriented halftone processing is switched. By performing such processing, it is possible to perform appropriate halftone generation processing on the character area and other areas such as photographs.

【0117】このように、黒文字エッジ判定信号BkED
GE又は色文字エッジ判定信号ColEDGEと強調切り
替え判定信号EMPを参照して、適切な黒生成/下色除
去処理・空間フィルタ処理・中間調生成処理がなされる
と一連の処理は終了し、画像出力装置にて画像が出力さ
れる。
Thus, the black character edge determination signal BkED
GE or color character edge determination signal ColEDGE and emphasis switching determination signal EMP are referred to, and when a suitable black generation / undercolor removal processing / spatial filter processing / halftone generation processing is performed, a series of processing ends, and image output The device outputs an image.

【0118】なお、本実施の形態ではエッジを文字エッ
ジとして一連の流れを説明したが、より端的に連続階調
図や写真の輪郭を含めた広義的なエッジとして処理して
も無論構わない。
In the present embodiment, a series of flows are described by using edges as character edges. However, it is of course possible to process the edges as broad edges including continuous tone diagrams and photograph outlines.

【0119】このように、本実施の形態の画像処理方法
では、注目画素Pに強調判定フィルタ処理を施した結
果、強調フィルタでの強調処理を行うと上記の黒文字や
色文字の周辺に生じる色抜けや擬似輪郭、及び色にじみ
等が発生するおそれがあることに鑑み、そのような場合
には、強調フィルタでの強調処理を行わないと判定す
る。この場合、強調フィルタでの強調処理を行わないの
で、文字の強調ができないことになる。
As described above, in the image processing method according to the present embodiment, as a result of performing the emphasis determination filter processing on the pixel of interest P, when the emphasis processing by the emphasis filter is performed, the color generated around the black character or the color character is generated. In such a case, it is determined that the emphasis processing by the emphasis filter is not performed in consideration of the possibility that the omission, the false contour, and the color blur may occur. In this case, since the emphasis processing is not performed by the emphasis filter, the character cannot be emphasized.

【0120】そこで、本実施の形態では、強調フィルタ
での強調処理を行わないと判定されたときには、注目画
素Pの濃度値と該注目画素に強調フィルタでの強調処理
を施した場合の濃度値との差分を求め、この差分を注目
画素Pの周辺の画素に配分する。この方法により、実質
的に、文字等を周辺の画素に対して強調することができ
る。
Therefore, in this embodiment, when it is determined that the emphasis processing by the emphasis filter is not performed, the density value of the pixel of interest P and the density value when the emphasis process by the emphasis filter is performed on the pixel of interest. And the difference is distributed to the pixels around the pixel of interest P. By this method, characters and the like can be substantially emphasized with respect to surrounding pixels.

【0121】この結果、強調フィルタでの強調処理に伴
う黒文字エッジ周辺の白抜けや色にじみ、また、小さな
抜き文字の潰れを防止し、適切に黒文字・色文字・抜き
文字・白抜き文字それぞれのエッジ部を適切に強調する
ことができる。
As a result, it is possible to prevent white spots and color bleeding around the black character edge caused by the highlighting process by the highlighting filter, and to prevent small blank characters from being crushed properly, and to appropriately select black letters, colored letters, blank letters, and blank letters. The edge part can be appropriately emphasized.

【0122】したがって、強調フィルタでの強調処理に
伴う黒文字や色文字の周辺に生じる色抜けや擬似輪郭、
及び色にじみの発生を防止し得る画像処理方法を提供す
ることができる。
Therefore, a color dropout or a pseudo contour generated around a black character or a color character due to the emphasis processing by the emphasis filter,
Also, it is possible to provide an image processing method capable of preventing the occurrence of color fringing.

【0123】また、本実施の形態の画像処理方法は、注
目画素Pが黒文字エッジであると判断された場合に、黒
成分を表す画像データに対して、注目画素Pの濃度値と
該注目画素Pに強調処理を施した場合の濃度値との差分
を求め、この差分を注目画素Pの周辺の画素に配分す
る。これにより、前述したように、実質的に、黒文字を
周辺の画素に対して強調することができる。
Further, according to the image processing method of the present embodiment, when it is determined that the target pixel P is a black character edge, the density value of the target pixel P and the target pixel P are determined for the image data representing the black component. The difference from the density value when P is subjected to the emphasis process is obtained, and this difference is distributed to the pixels around the pixel of interest P. As a result, as described above, the black character can be substantially emphasized with respect to the peripheral pixels.

【0124】また、本実施の形態では、このとき、入力
画像データにおける黒成分以外の色成分の平均値を求め
て注目画素Pの濃度値を無彩色に置き換える。ここで、
平均値に置き換えるのは、C・M・Y等の各色成分間の
濃度差をなくして無彩色(黒)に近づけるためである。こ
れによって、文字周辺の色にじみを防ぎながら、黒文字
を強調することができる。
Further, in this embodiment, at this time, the average value of the color components other than the black component in the input image data is obtained and the density value of the pixel of interest P is replaced with an achromatic color. here,
The reason why the average value is replaced is to eliminate the density difference between the respective color components such as C, M, and Y, and bring it closer to an achromatic color (black). As a result, black characters can be emphasized while preventing color fringing around the characters.

【0125】したがって、判定の結果、注目画素Pが黒
文字エッジであると判断された場合に、強調フィルタで
の強調処理を行わないとした場合でも、強調処理の効果
と強調処理に伴う画質劣化の要因軽減を両立させること
ができる。
Therefore, when it is determined that the pixel of interest P is a black character edge as a result of the determination, even if the enhancement process is not performed by the enhancement filter, the effect of the enhancement process and the image quality deterioration due to the enhancement process occur. Factors can be reduced at the same time.

【0126】また、本実施の形態の画像処理方法は、抜
き文字のエッジであると判断されたときには、注目画素
Pの濃度値と該注目画素Pに強調フィルタでの強調処理
を施した場合の濃度値との差分を注目画素Pにおける周
辺の画素の濃度値から減算することにより配分する。
Further, according to the image processing method of the present embodiment, when it is determined that the edge of the extracted character, the density value of the pixel of interest P and the pixel of interest P are subjected to the emphasis process by the emphasis filter. The difference with the density value is distributed by subtracting it from the density values of the peripheral pixels in the target pixel P.

【0127】このように、抜き文字のエッジでは、エッ
ジでの強調フィルタの効果を周辺の画素の濃度に対して
常に減少方向に働かせることにより、エッジの濃度が周
辺の背景画素の濃度(高濃度の背景画素)に比べて必要
以上に高くなってしまうことによる文字の潰れの発生を
防止して、実質的に抜き文字を強調することができる。
As described above, at the edge of the blank character, the effect of the enhancement filter at the edge is always exerted in the decreasing direction with respect to the density of the peripheral pixels, so that the density of the edge is higher than that of the peripheral background pixels (high density). It is possible to prevent the characters from being crushed due to an excessively higher value than the background pixels) and to substantially enhance the extracted characters.

【0128】一方、抜き文字のエッジではないと判断さ
れたときには、上記差分を注目画素Pにおける周辺の画
素の濃度値に加算することにより配分する。
On the other hand, when it is determined that the edge is not the edge of the omitted character, the difference is distributed by adding it to the density values of the peripheral pixels of the target pixel P.

【0129】このように、抜き文字のエッジではないと
きには、つまり通常エッジ領域の場合には、エッジでの
強調フィルタの効果を周辺の画素に対して常に増加方向
に働かせることにより、エッジの濃度が周辺の背景画素
の濃度(濃度が薄い背景画素)に比べて低くなってしま
うことによる白抜けや色にじみが発生するのを防止し
て、実質的に通常エッジを強調することができる。
As described above, when it is not the edge of the blank character, that is, in the case of the normal edge region, the effect of the emphasis filter at the edge is always exerted on the peripheral pixels in the increasing direction, so that the edge density is increased. It is possible to prevent white spots and color fringing from occurring due to the density being lower than the density of background pixels in the vicinity (background pixels having a low density), and substantially normal edges can be emphasized.

【0130】したがって、白抜けや色にじみが発生する
可能性のある通常エッジ領域での処理方法と、文字の潰
れが発生する可能性がある抜き文字とで、それぞれに適
した処理を行うことによって、より強調フィルタに起因
する画質低下の影響を最小限に抑えることができる。
Therefore, by performing the processing suitable for each of the processing method in the normal edge area where white spots and color bleeding may occur and the void character where the character collapse may occur. , It is possible to further minimize the influence of the image quality deterioration caused by the enhancement filter.

【0131】この結果、強調フィルタでの強調処理に伴
う黒文字や色文字の周辺に生じる色抜けや擬似輪郭、及
び色にじみの発生を防止し、かつ抜き文字の潰れを防止
し得る画像処理方法を提供することができる。
As a result, there is provided an image processing method capable of preventing the occurrence of color dropouts, pseudo contours, and color bleeding around black characters and color characters, which are caused by the emphasis processing by the emphasis filter, and prevent the collapse of the omitted characters. Can be provided.

【0132】本実施の形態の画像処理装置は、複数の色
成分からなる入力画像データより注目画素Pを含む複数
の画素よりなるブロックを抽出し、注目画素Pが文字エ
ッジであるか否かの判定を行う文字エッジ検出・色判定
部20及び特徴量算出・判定部30と、注目画素Pに強
調判定フィルタ処理を施し、その結果に基づいて上記注
目画素Pに強調フィルタでの強調処理を施すか否か判定
を行う強調処理切り替え判定部40とを含む文字エッジ
判定部10を備える。
The image processing apparatus of the present embodiment extracts a block composed of a plurality of pixels including the target pixel P from the input image data composed of a plurality of color components, and determines whether or not the target pixel P is a character edge. The character edge detection / color determination unit 20 and the feature amount calculation / determination unit 30 that perform the determination, the target pixel P are subjected to the emphasis determination filter processing, and the target pixel P is subjected to the emphasis processing by the emphasis filter based on the result. The character edge determination unit 10 includes an emphasis process switching determination unit 40 that determines whether or not to perform the processing.

【0133】そして、強調処理切り替え判定部40によ
り、注目画素Pに強調判定フィルタ処理を施した結果、
強調フィルタでの強調処理を行わないと判定されたとき
に、注目画素Pの濃度値と注目画素Pに強調フィルタで
の強調処理を施した場合の濃度値との差分を求め、この
差分を注目画素Pの周辺の画素に配分する空間フィルタ
部7が設けられている。
Then, as a result of the emphasis determination filter processing being performed on the target pixel P by the emphasis processing switching judgment unit 40,
When it is determined that the emphasis processing by the emphasis filter is not performed, the difference between the density value of the pixel of interest P and the density value when the emphasis process by the emphasis filter is performed on the pixel of interest P is calculated, and this difference is noted. A spatial filter unit 7 that distributes to pixels around the pixel P is provided.

【0134】したがって、強調フィルタでの強調処理に
伴う黒文字エッジ周辺の白抜けや色にじみ、また、小さ
な抜き文字の潰れを防止し、適切に黒文字・色文字・抜
き文字・白抜き文字、それぞれのエッジ部を適切に強調
することができる。
Therefore, it is possible to prevent white spots and color bleeding around the black character edge caused by the highlighting process by the highlighting filter, and to prevent small blank characters from being crushed, and to appropriately select black letters, colored letters, blank letters, and blank letters. The edge part can be appropriately emphasized.

【0135】また、本実施の形態の画像処理装置では、
文字エッジ判定部10には、注目画素Pが抜き文字のエ
ッジであるか否かの判定を行う抜きエッジ判定部50が
備えられている。
Further, in the image processing apparatus of this embodiment,
The character edge determination unit 10 is provided with an extraction edge determination unit 50 that determines whether or not the pixel of interest P is an edge of an extraction character.

【0136】すなわち、通常エッジは注目画素Pが周辺
画素より高濃度であることが多く、普通に強調フィルタ
での強調処理を行うと、周辺の色抜けや色にじみの問題
を起こす一方、抜きエッジは注目画素Pが周辺画素より
低濃度であることが多く、小文字での潰れの問題を発生
し易い。
That is, in the normal edge, the target pixel P often has a higher density than the peripheral pixels, and when the enhancement processing is normally performed by the enhancement filter, the peripheral color loss and the color blurring are caused, while the extracted edge is eliminated. In many cases, the target pixel P has a lower density than the peripheral pixels, and the problem of collapsing in small letters is likely to occur.

【0137】この点、本実施の形態によれば、文字エッ
ジ判定部10に設けられた抜きエッジ判定部50が、注
目画素Pが抜き文字のエッジであるか否かの判定を行
う。
In this respect, according to the present embodiment, the blank edge determining unit 50 provided in the character edge determining unit 10 determines whether or not the pixel of interest P is the edge of the blank character.

【0138】したがって、文字エッジを通常のエッジと
抜き文字とに場合分けをすることによって、それぞれの
エッジ部を適切に強調することができる。
Therefore, by separating the character edge into a normal edge and a blank character, each edge portion can be appropriately emphasized.

【0139】また、本実施の形態のディジタルカラー複
写機は、上記の画像処理装置を備える。したがって、強
調フィルタでの強調処理に伴う黒文字エッジ周辺の白抜
けや色にじみ、また、小さな抜き文字の潰れを防止し、
黒文字・色文字・抜き文字・白抜き文字で場合分けを行
うことにより、それぞれのエッジ部を適切に強調するこ
とができるので、品質の良い画像を出力することができ
る画像形成装置を提供することができる。
The digital color copying machine of the present embodiment is equipped with the above image processing device. Therefore, it prevents white spots and color bleeding around the black character edge due to the emphasizing process by the emphasizing filter, and prevents the collapse of a small blank character
By classifying black characters, colored characters, blank characters, and blank characters, respective edge portions can be appropriately emphasized, and an image forming apparatus capable of outputting a high quality image is provided. You can

【0140】[0140]

【発明の効果】本発明の画像処理方法は、以上のよう
に、注目画素に強調判定フィルタ処理を施した結果、強
調フィルタでの強調処理を行わないと判定されたときに
は、注目画素の濃度値と該注目画素に強調フィルタでの
強調処理を施した場合の濃度値との差分を求め、この差
分を注目画素の周辺の画素に配分する方法である。
As described above, according to the image processing method of the present invention, when it is determined that the enhancement processing by the enhancement filter is not performed as a result of performing the enhancement determination filter processing on the attention pixel, the density value of the attention pixel is Is obtained by calculating a difference between the target pixel and the density value when the enhancement process is performed by the enhancement filter, and distributing the difference to pixels around the target pixel.

【0141】すなわち、強調フィルタでの強調処理に伴
う黒文字や色文字の周辺に生じる色抜けや擬似輪郭、及
び色にじみの発生を防止するために、強調フィルタでの
強調処理を行わない場合には、文字の強調ができない。
That is, in order to prevent the occurrence of color dropouts, pseudo contours, and color fringing around black characters and color characters that accompany the emphasis processing by the emphasis filter, when the emphasis processing by the emphasis filter is not performed, , Characters cannot be emphasized.

【0142】そこで、本発明では、強調フィルタでの強
調処理を行わないと判定されたときには、注目画素の濃
度値と該注目画素に強調フィルタでの強調処理を施した
場合の濃度値との差分を求め、この差分を注目画素の周
辺の画素に配分する。この方法により、実質的に、文字
等を周辺の画素に対して強調することができる。
Therefore, in the present invention, when it is determined that the enhancement processing by the enhancement filter is not performed, the difference between the density value of the target pixel and the density value when the enhancement processing by the enhancement filter is performed on the target pixel. And the difference is distributed to pixels around the pixel of interest. By this method, characters and the like can be substantially emphasized with respect to surrounding pixels.

【0143】したがって、強調フィルタでの強調処理に
伴う黒文字や色文字の周辺に生じる色抜けや擬似輪郭、
及び色にじみの発生を防止し得る画像処理方法を提供す
ることができるという効果を奏する。
Therefore, there are missing colors and pseudo contours around black characters and colored characters that accompany the emphasizing processing by the emphasizing filter.
Further, it is possible to provide an image processing method capable of preventing the occurrence of color fringing.

【0144】また、本発明の画像処理方法は、上記の画
像処理方法において、前記注目画素が黒文字エッジであ
ると判断された場合に、入力画像データにおける黒成分
以外の色成分の平均値を求めて注目画素の濃度値を無彩
色に置き換えるとともに、黒成分を表す画像データに対
して、注目画素の濃度値と該注目画素に強調処理を施し
た場合の濃度値との差分を求め、この差分を注目画素の
周辺の画素に配分する方法である。
Further, in the image processing method of the present invention, in the above image processing method, when it is determined that the pixel of interest is a black character edge, an average value of color components other than the black component in the input image data is obtained. And replaces the density value of the pixel of interest with an achromatic color, and for image data representing the black component, obtains the difference between the density value of the pixel of interest and the density value of when the pixel of interest is emphasized, and the difference is calculated. Is distributed to pixels around the pixel of interest.

【0145】それゆえ、注目画素の濃度値と該注目画素
に強調処理を施した場合の濃度値との差分を注目画素の
周辺の画素に配分する。これにより、前述したように、
実質的に、黒文字を周辺の画素に対して強調することが
できる。
Therefore, the difference between the density value of the target pixel and the density value when the target pixel is emphasized is distributed to the pixels around the target pixel. As a result, as described above,
In effect, black characters can be emphasized with respect to surrounding pixels.

【0146】また、本発明では、このとき、入力画像デ
ータにおける黒成分以外の色成分の平均値を求めて注目
画素の濃度値を無彩色に置き換える。平均値に置き換え
るのは、C・M・Y等の各色成分間の濃度差をなくして
無彩色(黒)に近づけるためである。これによって、文字
周辺の色にじみを防ぎながら、黒文字を強調することが
できる。
Further, in the present invention, at this time, the average value of the color components other than the black component in the input image data is obtained and the density value of the pixel of interest is replaced with an achromatic color. The reason why the average value is replaced is to eliminate the density difference between the respective color components such as C, M, and Y, and bring it closer to an achromatic color (black). As a result, black characters can be emphasized while preventing color fringing around the characters.

【0147】したがって、判定の結果、注目画素が黒文
字エッジであると判断された場合に、強調フィルタでの
強調処理を行わないとした場合でも、強調処理の効果と
強調処理に伴う画質劣化の要因軽減を両立させることが
できるという効果を奏する。
Therefore, when it is determined that the pixel of interest is a black character edge as a result of the determination, even if the enhancement processing is not performed by the enhancement filter, the effect of the enhancement processing and the factor of image quality deterioration due to the enhancement processing are caused. The effect that both reductions can be achieved is achieved.

【0148】また、本発明の画像処理方法は、上記の画
像処理方法において、前記注目画素に強調判定フィルタ
処理を施した結果、強調フィルタでの強調処理を行わな
いと判定された場合に、注目画素が抜き文字のエッジで
あるか否かの判定を行い、抜き文字のエッジであると判
断されたときには、注目画素の濃度値と該注目画素に強
調フィルタでの強調処理を施した場合の濃度値との差分
を注目画素における周辺の画素の濃度値から減算するこ
とにより配分する一方、抜き文字のエッジではないと判
断されたときには、上記差分を注目画素における周辺の
画素の濃度値に加算することにより配分する方法であ
る。
Further, in the image processing method of the present invention, in the above image processing method, when it is determined that the enhancement processing by the enhancement filter is not performed as a result of performing the enhancement determination filter processing on the target pixel, the attention processing is performed. It is determined whether or not the pixel is the edge of the extracted character. When it is determined that the pixel is the edge of the extracted character, the density value of the pixel of interest and the density when the emphasis process is performed on the pixel of interest by the emphasis filter. The difference from the value is distributed by subtracting it from the density values of the peripheral pixels of the pixel of interest, while the difference is added to the density values of the peripheral pixels of the pixel of interest when it is determined that it is not the edge of the extracted character. It is a method of allocating by doing so.

【0149】それゆえ、抜き文字のエッジを周辺の画素
に対して、エッジでの強調フィルタの効果を周辺の画素
の濃度に対して常に減少方向に働かせることにより、エ
ッジの濃度が周辺の背景画素の濃度(高濃度の背景画
素)に比べて必要以上に高くなってしまうことによる文
字の潰れの発生を防止して、実質的に抜き文字を強調す
ることができる。一方、抜き文字のエッジではないとき
には、つまり通常エッジ領域の場合には、通常エッジを
周辺の画素に対して、エッジでの強調フィルタの効果を
周辺の画素に対して常に増加方向に働かせることによ
り、エッジの濃度が周辺の背景画素の濃度(濃度が薄い
背景画素)に比べて低くなってしまうことによる白抜け
や色にじみが発生するのを防止して、実質的に通常エッ
ジを強調することができる。
Therefore, by making the edge of the extracted character with respect to the peripheral pixels, the effect of the emphasis filter at the edge always works in the decreasing direction with respect to the density of the peripheral pixels, so that the edge density is It is possible to prevent the characters from being crushed due to an excessively higher density than the background density (high density background pixel) and to substantially enhance the blank characters. On the other hand, when the edge is not the outline character, that is, in the case of the normal edge region, the normal edge is applied to the peripheral pixels, and the effect of the enhancement filter at the edge is always applied to the peripheral pixels in the increasing direction. , To prevent white spots and color fringing from occurring due to the edge density becoming lower than the density of surrounding background pixels (background pixels with low density), and to substantially enhance the normal edge. You can

【0150】したがって、白抜けや色にじみが発生する
可能性のある通常エッジ領域での処理方法と、文字の潰
れが発生する可能性がある抜き文字とで、それぞれに適
した処理を行うことによって、より強調フィルタに起因
する画質低下の影響を最小限に抑えることができるとい
う効果を奏する。
Therefore, by performing the processing suitable for each of the processing method in the normal edge area where white spots and color bleeding may occur and the blank character where the character collapse may occur. Thus, the effect of further reducing the image quality due to the enhancement filter can be minimized.

【0151】本発明の画像処理装置は、以上のように、
強調処理切り替え判定部により、注目画素に強調判定フ
ィルタ処理を施した結果、強調フィルタでの強調処理を
行わないと判定されたときに、注目画素の濃度値と注目
画素に強調フィルタでの強調処理を施した場合の濃度値
との差分を求め、この差分を注目画素の周辺の画素に配
分する空間フィルタ手段が設けられているものである。
The image processing apparatus of the present invention, as described above,
As a result of performing the emphasis determination filter processing on the target pixel by the emphasis processing switching determination unit, when it is determined that the emphasis processing by the emphasis filter is not performed, the density value of the target pixel and the emphasis processing by the emphasis filter by the emphasis filter are performed. Spatial filter means is provided for obtaining a difference from the density value in the case of applying the difference and distributing the difference to pixels around the pixel of interest.

【0152】それゆえ、強調フィルタでの強調処理に伴
う黒文字エッジ周辺の白抜けや色にじみ、また、小さな
抜き文字の潰れを防止し、適切に黒文字・色文字・抜き
文字・白抜き文字、それぞれのエッジ部を適切に強調す
ることができるという効果を奏する。
Therefore, it is possible to prevent black spots and color bleeding around the black character edge due to the highlighting processing by the highlighting filter, and to prevent small blank characters from being crushed properly, and to appropriately fill black characters, colored characters, blank characters, and blank characters, respectively. This has the effect of being able to appropriately emphasize the edge portion of.

【0153】また、本発明の画像処理装置は、上記の画
像処理装置において、上記文字エッジ判定手段には、注
目画素が抜き文字のエッジであるか否かの判定を行う抜
きエッジ判定部が備えられているものである。
Further, in the image processing apparatus of the present invention, in the above-mentioned image processing apparatus, the character edge determination means is provided with an extraction edge determination section for determining whether or not the pixel of interest is an edge of an extraction character. It is what has been.

【0154】それゆえ、文字エッジを通常のエッジと抜
き文字とに場合分けをすることによって、それぞれのエ
ッジ部を適切に強調することができるという効果を奏す
る。
Therefore, by dividing the character edge into a normal edge and a blank character, each edge portion can be appropriately emphasized.

【0155】本発明の画像形成装置は、以上のように、
上記の画像処理装置を備えるものである。
The image forming apparatus of the present invention, as described above,
The image processing apparatus described above is provided.

【0156】それゆえ、強調フィルタでの強調処理に伴
う黒文字エッジ周辺の白抜けや色にじみ、また、小さな
抜き文字の潰れを防止し、黒文字・色文字・抜き文字・
白抜き文字で場合分けを行うことにより、それぞれのエ
ッジ部を適切に強調することができるので、品質の良い
画像を出力することができる画像形成装置を提供するこ
とができるという効果を奏する。
Therefore, it is possible to prevent white spots and color bleeding around the black character edge caused by the highlighting process by the highlighting filter, and to prevent the small blank characters from being crushed.
By dividing the case into white characters, the respective edge portions can be appropriately emphasized, so that it is possible to provide an image forming apparatus capable of outputting a high-quality image.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の画像形成装置に備えられた画像処理装
置の画像処理方法における実施の一形態を示すものであ
り、黒文字/色文字エッジ判定信号と強調切り替え判定
信号とを参照して画像処理を行う際の処理を示すフロー
チャートである。
FIG. 1 is a diagram showing an embodiment of an image processing method of an image processing apparatus provided in an image forming apparatus of the present invention, and an image is obtained by referring to a black character / color character edge determination signal and an emphasis switching determination signal. It is a flow chart which shows processing at the time of performing processing.

【図2】上記画像処理装置の全体構成図を示すブロック
図である。
FIG. 2 is a block diagram showing an overall configuration diagram of the image processing apparatus.

【図3】上記画像処理装置の文字エッジ判定部の概略構
成を示すブロック図である。
FIG. 3 is a block diagram showing a schematic configuration of a character edge determination unit of the image processing apparatus.

【図4】上記文字エッジ判定部の処理に使用される、注
目画素を中心とする5×5のマスクを示す図である。
FIG. 4 is a diagram showing a 5 × 5 mask centered on a pixel of interest, which is used in the processing of the character edge determination unit.

【図5】上記文字エッジ判定部を構成する文字エッジ検
出・色判定部の具体的な構成例を示すブロック図であ
る。
FIG. 5 is a block diagram showing a specific configuration example of a character edge detection / color determination unit that constitutes the character edge determination unit.

【図6】(a)は上記文字エッジ判定部の文字エッジ検
出・色判定部の処理に使用される、注目画素を中心とす
る3×3画素マスクを示す図であり、(b)は当該文字
エッジ検出・色判定部の処理に使用される、主走査方向
ゾーベルフィルタの一例を示す図であり、(c)は当該
文字エッジ検出・色判定部の処理に使用される、副走査
方向ゾーベルフィルタの一例を示す図である。
FIG. 6A is a diagram showing a 3 × 3 pixel mask centered on a pixel of interest, which is used in the processing of the character edge detection / color determination unit of the character edge determination unit, and FIG. It is a figure which shows an example of the main scanning direction Sobel filter used for the process of a character edge detection / color determination part, (c) is a subscanning direction used for the process of the said character edge detection / color determination part. It is a figure which shows an example of a Sobel filter.

【図7】上記文字エッジ判定部を構成する特徴量算出・
判定部の具体的な構成例を示すブロック図である。
FIG. 7: Feature amount calculation that constitutes the character edge determination unit
It is a block diagram showing a concrete example of composition of a judgment part.

【図8】上記特徴量算出・判定部の処理に使用される2
値マスクの例を示す図である。
FIG. 8 is used for the processing of the feature amount calculation / determination unit 2
It is a figure which shows the example of a value mask.

【図9】上記特徴量算出・判定部を構成する閾値選択部
の具体的な構成例を示すブロック図である。
FIG. 9 is a block diagram showing a specific configuration example of a threshold value selection unit that constitutes the feature amount calculation / determination unit.

【図10】上記文字エッジ判定部における抜きエッジ判
定部の構成を示すブロック図である。
FIG. 10 is a block diagram showing a configuration of a cut edge determination unit in the character edge determination unit.

【図11】上記文字エッジ判定部における強調処理切り
替え判定部の構成を示すブロック図である。
FIG. 11 is a block diagram showing a configuration of an emphasis processing switching determination unit in the character edge determination unit.

【図12】(a)は低濃度の背景の上にあるエッジの模
式図であり、(b)は(a)のエッジ全体に強調判定フ
ィルタをかけたときに文字周辺に発生する輪郭を説明す
るための模式図であり、(c)は高濃度の背景の上にあ
る抜きエッジの模式図であり、(d)は(c)のエッジ
全体に強調判定フィルタをかけたときに文字周辺が潰れ
ていく様子を説明するための模式図である。
FIG. 12A is a schematic diagram of an edge on a low-density background, and FIG. 12B illustrates a contour generated around a character when an emphasis determination filter is applied to the entire edge of FIG. FIG. 4C is a schematic diagram for doing so, FIG. 6C is a schematic diagram of a cut edge on a high-density background, and FIG. It is a schematic diagram for demonstrating how it is crushed.

【図13】上記文字エッジ判定部における強調処理切り
替え判定部に適用される強調判定フィルタの一例を示す
図である。
FIG. 13 is a diagram illustrating an example of an emphasis determination filter applied to an emphasis process switching determination unit in the character edge determination unit.

【図14】(a)は文字領域の濃度分布を示した図であ
り、(b)は(a)に強調判定フィルタ処理を施した結
果を示す図である。
FIG. 14A is a diagram showing a density distribution of a character area, and FIG. 14B is a diagram showing a result of performing the emphasis determination filter processing on FIG.

【図15】(a)(b)は、黒生成の原理を示すもので
あり、黒生成/下色除去の処理前後での濃度変化の模式
図である。
15A and 15B are diagrams showing the principle of black generation and are schematic diagrams of density changes before and after black generation / undercolor removal processing.

【図16】(a)〜(e)は、図1に示したフローチャ
ートの具体例を説明する濃度の組を示す図である。
16 (a) to (e) are diagrams showing a set of densities for explaining a specific example of the flowchart shown in FIG.

【図17】(a)(b)は、強調処理可と判定された黒
文字エッジでの処理前後の濃度変化を示した図である。
17 (a) and 17 (b) are diagrams showing a density change before and after processing at a black character edge for which emphasis processing is determined to be possible.

【図18】(a)〜(d)は、強調処理不可と判定され
た黒文字エッジでの処理前後の濃度変化を示した図であ
る。
18A to 18D are diagrams showing density changes before and after processing at a black character edge that is determined to be incapable of emphasis processing.

【図19】強調処理可と判定された色文字エッジでの強
調フィルタ処理結果を示す図である。
FIG. 19 is a diagram showing a result of an emphasis filter process at a color character edge determined to be capable of an emphasis process.

【図20】(a)〜(c)は、強調処理不可と判定され
た色文字エッジでの処理前後の濃度変化を示した図であ
る。
20A to 20C are diagrams showing a density change before and after processing on a color character edge determined to be incapable of emphasis processing.

【図21】(a)(b)は、割り振り画素に判定信号を
考慮した場合の具体例を説明する図である。
21 (a) and 21 (b) are diagrams illustrating a specific example in which a determination signal is considered for allocated pixels.

【図22】(a)〜(e)は、割り振り画素に判定信号
を考慮した場合の黒文字エッジでの処理前後の濃度変化
を示した図である。
22A to 22E are diagrams showing density changes before and after processing at a black character edge when a determination signal is taken into consideration in assigned pixels.

【符号の説明】[Explanation of symbols]

6 黒生成/下色除去部 7 空間フィルタ部(空間フィルタ手段) 10 文字エッジ判定部(文字エッジ判定手段) 20 文字エッジ検出・色判定部(文字エッジ判定手
段、文字エッジ判別部) 21 エッジ検出回路 22 色判定回路 30 特徴量算出・判定部(文字エッジ判定手段、文字
エッジ判別部) 31 第1の特徴量算出回路 32 第2の特徴量算出回路 33 判定回路33 34 AND回路 40 強調処理切り替え判定部 41 強調判定フィルタ部 42 比較器 43 加算器(ADD) 44 比較器 45 差分器(SUB) 46 加算器(ADD) 47 比較器 50 抜きエッジ判定部 51 有彩色/無彩判定部 52 濃度判定部 53 AND回路 54 加算回路(ADD)
6 Black Generation / Under Color Removal Section 7 Spatial Filter Section (Spatial Filter Means) 10 Character Edge Judgment Section (Character Edge Judgment Section) 20 Character Edge Detection / Color Judgment Section (Character Edge Judgment Section, Character Edge Judgment Section) 21 Edge Detection Circuit 22 Color determination circuit 30 Feature amount calculation / determination unit (character edge determination means, character edge determination unit) 31 First feature amount calculation circuit 32 Second feature amount calculation circuit 33 Judgment circuit 33 34 AND circuit 40 Switching emphasis process Judgment unit 41 Emphasis judgment filter unit 42 Comparator 43 Adder (ADD) 44 Comparator 45 Difference device (SUB) 46 Adder (ADD) 47 Comparator 50 Extracted edge judgment unit 51 Chromatic color / achromatic judgment unit 52 Density judgment Unit 53 AND circuit 54 Adder circuit (ADD)

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 1/46 H04N 1/40 F 1/60 B41J 3/00 A Fターム(参考) 2C262 AB11 AB13 BA05 BA07 BA12 BA13 BB03 BB08 BB15 BC11 DA02 DA03 DA09 DA13 EA07 2H027 DB01 EA18 EB02 EC11 EC20 5B057 AA11 BA30 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CE03 CE06 CE11 CE12 CH04 CH09 CH18 DA12 DA17 DB02 DB06 DB09 DC04 DC16 5C077 LL02 LL05 LL08 LL19 MP06 MP07 MP08 PP03 PP25 PP27 PP28 PP32 PP33 PP39 PP51 PP68 PQ08 PQ12 PQ24 TT06 5C079 HB01 HB03 HB12 LA02 LA03 LA06 LA15 LA21 LA24 LA31 LB12 MA03 MA11 NA02 NA07 PA02 ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 7 Identification code FI theme code (reference) H04N 1/46 H04N 1/40 F 1/60 B41J 3/00 AF term (reference) 2C262 AB11 AB13 BA05 BA07 BA12 BA13 BB03 BB08 BB15 BC11 DA02 DA03 DA09 DA13 EA07 2H027 DB01 EA18 EB02 EC11 EC20 5B057 AA11 BA30 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CE03 CE06 CE11 CE12 CH04 CH04 CH12 DA12 DA17 DB02 DB06 DB02 DB06 DB09 DB04 DB07 DB02 DB06 DB0 DB02 DB06 DB09 DB04 PP03 PP25 PP27 PP28 PP32 PP33 PP39 PP51 PP68 PQ08 PQ12 PQ24 TT06 5C079 HB01 HB03 HB12 LA02 LA03 LA06 LA15 LA21 LA24 LA31 LB12 MA03 MA11 NA02 NA07 PA02

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】複数の色成分からなる入力画像データより
注目画素を含む複数の画素からなるブロックを抽出し、
ブロック内の画素情報より注目画素が文字エッジである
か否かの判定を行い、文字エッジであると判定された場
合、注目画素に強調判定フィルタ処理を施し、その結果
に基づいて上記注目画素に強調フィルタ処理を施すか否
か判定を行う画像処理方法において、 上記注目画素に強調判定フィルタ処理を施した結果、強
調フィルタでの強調処理を行わないと判定されたときに
は、注目画素の濃度値と該注目画素に強調フィルタでの
強調処理を施した場合の濃度値との差分を求め、この差
分を注目画素の周辺の画素に配分することを特徴とする
画像処理方法。
1. A block composed of a plurality of pixels including a target pixel is extracted from input image data composed of a plurality of color components,
Based on the pixel information in the block, it is determined whether the pixel of interest is a character edge. If it is determined that the pixel of interest is a character edge, the pixel of interest is subjected to emphasis determination filter processing, and the pixel of interest is selected based on the result. In the image processing method for determining whether or not to perform the enhancement filter processing, when it is determined that the enhancement processing by the enhancement filter is not performed as a result of performing the enhancement determination filter processing on the target pixel, the density value of the target pixel and the An image processing method, characterized in that a difference from a density value when an enhancement process is performed on the pixel of interest is calculated, and the difference is distributed to pixels around the pixel of interest.
【請求項2】前記注目画素が黒文字エッジであると判断
された場合に、入力画像データにおける黒成分以外の色
成分の平均値を求めて注目画素の濃度値を無彩色に置き
換えるとともに、黒成分を表す画像データに対して、注
目画素の濃度値と該注目画素に強調処理を施した場合の
濃度値との差分を求め、この差分を注目画素の周辺の画
素に配分することを特徴とする請求項1記載の画像処理
方法。
2. When the pixel of interest is determined to be a black character edge, the average value of color components other than the black component in the input image data is calculated to replace the density value of the pixel of interest with an achromatic color, and the black component The difference between the density value of the pixel of interest and the density value when the pixel of interest is emphasized is calculated for the image data representing, and the difference is distributed to the pixels around the pixel of interest. The image processing method according to claim 1.
【請求項3】前記注目画素に強調判定フィルタ処理を施
した結果、強調フィルタでの強調処理を行わないと判定
された場合に、注目画素が抜き文字のエッジであるか否
かの判定を行い、抜き文字のエッジであると判断された
ときには、注目画素の濃度値と該注目画素に強調フィル
タでの強調処理を施した場合の濃度値との差分を注目画
素における周辺の画素の濃度値から減算することにより
配分する一方、抜き文字のエッジではないと判断された
ときには、上記差分を注目画素における周辺の画素の濃
度値に加算することにより配分することを特徴とする請
求項1又は2記載の画像処理方法。
3. As a result of performing the emphasis determination filter processing on the target pixel, when it is determined that the emphasis processing by the emphasis filter is not performed, it is determined whether the target pixel is the edge of the extracted character. , When it is determined to be the edge of the omitted character, the difference between the density value of the target pixel and the density value when the target pixel is subjected to the enhancement processing by the enhancement filter is calculated from the density values of the peripheral pixels in the target pixel. 3. The distribution is made by subtraction, while the distribution is made by adding the difference to the density values of the peripheral pixels in the target pixel when it is determined that the edge is not the outline character. Image processing method.
【請求項4】複数の色成分からなる入力画像データより
注目画素を含む複数の画素よりなるブロックを抽出し、
注目画素が文字エッジであるか否かの判定を行う文字エ
ッジ判別部と、注目画素に強調判定フィルタ処理を施
し、その結果に基づいて上記注目画素に強調フィルタで
の強調処理を施すか否か判定を行う強調処理切り替え判
定部とを含む文字エッジ判定手段を備える画像処理装置
において、 上記強調処理切り替え判定部により、注目画素に強調判
定フィルタ処理を施した結果、強調フィルタでの強調処
理を行わないと判定されたときに、注目画素の濃度値と
注目画素に強調フィルタでの強調処理を施した場合の濃
度値との差分を求め、この差分を注目画素の周辺の画素
に配分する空間フィルタ手段が設けられていることを特
徴とする画像処理装置。
4. A block composed of a plurality of pixels including a target pixel is extracted from input image data composed of a plurality of color components,
A character edge determination unit that determines whether or not the pixel of interest is a character edge, and whether or not to perform emphasis determination filter processing on the pixel of interest and whether or not to perform emphasis processing by the emphasis filter on the pixel of interest based on the result. In an image processing apparatus including a character edge determination unit that includes an enhancement processing switching determination unit that performs determination, as a result of performing the enhancement determination filtering process on the pixel of interest by the enhancement processing switching determination unit, the enhancement processing by the enhancement filter is performed. When it is determined that there is no such difference, the difference between the density value of the target pixel and the density value when the target pixel is subjected to the enhancement processing by the enhancement filter is calculated, and the difference is distributed to the pixels around the target pixel. An image processing apparatus comprising means.
【請求項5】前記文字エッジ判定手段には、注目画素が
抜き文字のエッジであるか否かの判定を行う抜きエッジ
判定部が備えられていることを特徴とする請求項4記載
の画像処理装置。
5. The image processing according to claim 4, wherein the character edge determination means includes a cut edge determination unit that determines whether or not the pixel of interest is an edge of a cut character. apparatus.
【請求項6】請求項4又は5記載の画像処理装置を備え
ることを特徴とする画像形成装置。
6. An image forming apparatus comprising the image processing apparatus according to claim 4.
JP2002115415A 2002-04-17 2002-04-17 Image processing method, image processing apparatus, and image forming apparatus provided therewith Pending JP2003309725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002115415A JP2003309725A (en) 2002-04-17 2002-04-17 Image processing method, image processing apparatus, and image forming apparatus provided therewith

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002115415A JP2003309725A (en) 2002-04-17 2002-04-17 Image processing method, image processing apparatus, and image forming apparatus provided therewith

Publications (1)

Publication Number Publication Date
JP2003309725A true JP2003309725A (en) 2003-10-31

Family

ID=29396751

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002115415A Pending JP2003309725A (en) 2002-04-17 2002-04-17 Image processing method, image processing apparatus, and image forming apparatus provided therewith

Country Status (1)

Country Link
JP (1) JP2003309725A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006311381A (en) * 2005-04-28 2006-11-09 Sharp Corp Image processor, image forming apparatus, image processing method, computer program and recording medium
JP2008061136A (en) * 2006-09-01 2008-03-13 Canon Inc Image processor and method thereof
EP1965266A2 (en) * 2007-03-02 2008-09-03 Samsung Electronics Co., Ltd. Method of controlling a colour image forming apparatus
US7679796B2 (en) 2007-02-02 2010-03-16 Kabushiki Kaisha Toshiba Image processing apparatus and image processing method
JP2011207136A (en) * 2010-03-30 2011-10-20 Brother Industries Ltd Image data processor, liquid ejection device and program
US8049908B2 (en) 2007-02-02 2011-11-01 Kabushiki Kaisha Toshiba Image processing apparatus and image processing method
WO2016136541A1 (en) * 2015-02-27 2016-09-01 京セラドキュメントソリューションズ株式会社 Image-processing device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006311381A (en) * 2005-04-28 2006-11-09 Sharp Corp Image processor, image forming apparatus, image processing method, computer program and recording medium
JP4549227B2 (en) * 2005-04-28 2010-09-22 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP2008061136A (en) * 2006-09-01 2008-03-13 Canon Inc Image processor and method thereof
US7679796B2 (en) 2007-02-02 2010-03-16 Kabushiki Kaisha Toshiba Image processing apparatus and image processing method
US8049908B2 (en) 2007-02-02 2011-11-01 Kabushiki Kaisha Toshiba Image processing apparatus and image processing method
EP1965266A2 (en) * 2007-03-02 2008-09-03 Samsung Electronics Co., Ltd. Method of controlling a colour image forming apparatus
EP1965266A3 (en) * 2007-03-02 2014-06-11 Samsung Electronics Co., Ltd. Method of controlling a colour image forming apparatus
JP2011207136A (en) * 2010-03-30 2011-10-20 Brother Industries Ltd Image data processor, liquid ejection device and program
WO2016136541A1 (en) * 2015-02-27 2016-09-01 京セラドキュメントソリューションズ株式会社 Image-processing device
CN107211070A (en) * 2015-02-27 2017-09-26 京瓷办公信息系统株式会社 Image processing apparatus
JPWO2016136541A1 (en) * 2015-02-27 2017-11-24 京セラドキュメントソリューションズ株式会社 Image processing device
CN107211070B (en) * 2015-02-27 2019-01-15 京瓷办公信息系统株式会社 Image processing apparatus

Similar Documents

Publication Publication Date Title
US5331442A (en) Identification of graphic and character areas in color image processor
US20040017579A1 (en) Method and apparatus for enhancement of digital image quality
JPH03208467A (en) Picture area identification system for picture processing unit
JP2003309725A (en) Image processing method, image processing apparatus, and image forming apparatus provided therewith
JP4264051B2 (en) Image processing device
JP4228466B2 (en) Image processing apparatus, image processing method, and computer-readable storage medium storing image processing procedure
JP3334047B2 (en) IMAGE PROCESSING APPARATUS, IMAGE READING APPARATUS AND IMAGE FORMING APPARATUS EQUIPPED WITH THE SAME, IMAGE PROCESSING METHOD, AND COMPUTER-READABLE STORAGE MEDIUM CONTAINING IMAGE PROCESSING PROCEDURE
JP2972172B2 (en) Halftone area detection method
JP3988970B2 (en) Image processing apparatus, image processing method, and storage medium
JPS6359272A (en) Picture processor
JPH01227576A (en) Image processing unit
JP3789243B2 (en) Image processing apparatus and method
JP2558928B2 (en) Area identification device, line drawing correction method, and image processing device using the same
JP3255085B2 (en) Image area determination method and apparatus, image processing apparatus
JP2003162716A (en) Image processing method, image processor, image forming device, image discriminating method, image discrimination program, and computer-readable recording medium
JP2003224718A (en) Image processing method and image processor
JP2702133B2 (en) Image processing method
JP2000357237A (en) Image processor, image reading device and image forming device mounted with the processor, image processing method, and computer-readable storage medium stored with image processing procedure
JP2008124693A (en) Image processor, copier and image processing program for whiteboard
JP2006203939A (en) Image processing apparatus
KR100514734B1 (en) Method and apparatus for improvement of digital image quality
JPH0457274B2 (en)
JP2005039484A (en) Image processor
JP3070174B2 (en) Image forming device
JP2002232704A (en) Image processor and image forming device