JP2004072245A - Image processor and image forming apparatus - Google Patents

Image processor and image forming apparatus Download PDF

Info

Publication number
JP2004072245A
JP2004072245A JP2002226141A JP2002226141A JP2004072245A JP 2004072245 A JP2004072245 A JP 2004072245A JP 2002226141 A JP2002226141 A JP 2002226141A JP 2002226141 A JP2002226141 A JP 2002226141A JP 2004072245 A JP2004072245 A JP 2004072245A
Authority
JP
Japan
Prior art keywords
edge
original
thinning
image
document
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
JP2002226141A
Other languages
Japanese (ja)
Inventor
Tatsuhiko Okada
岡田 達彦
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2002226141A priority Critical patent/JP2004072245A/en
Publication of JP2004072245A publication Critical patent/JP2004072245A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To apply black thinning processing to black characters and black lines when an original is a positive original, and apply white thinning processing to white characters and white lines when an original is a negative original. <P>SOLUTION: An original background gray level detection circuit 1 decides whether received image data indicate a positive original or a negative original, an edge detection circuit 2 detects whether or not surrounding pixels around a target pixel of the received image data depict an edge area, and a thinning processing circuit 3 applies black thinning processing to a target pixel decided to be an edge area when the image data are decided to be a positive original and applies white thinning processing to the target pixel decided to be the edge area when the image data are decided to be a negative original. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、デジタル画像処理を行う複写機・スキャナ・FAX等の画像形成装置において画像上の文字や線の細線化処理を行う画像処理装置及びこの画像処理装置を備えた画像形成装置に関する。
【0002】
【従来の技術】
モノクロデジタル複写機やスキャナ等の画像処理装置では、複写原稿をコピーした場合に(コピーのコピー)、原稿よりもコピー画像の文字や線がつぶれて太ってしまう場合がある。このような場合、画像処理により文字や線のエッジ部分を検出して細線化処理を施し、文字や線を細くして原稿により忠実に再現しようとしている。なお、この種の従来例としては、例えば特開平8−65520号公報などに開示されている。
【0003】
【発明が解決しようとする課題】
しかしながら、通常はポジ原稿(地肌が白で文字等が黒)の文字や黒線に対して細らせる処理であるため、ネガ原稿のような地肌が濃くて文字や線が白い原稿の場合の白文字や白線部分には細線化は行われず、逆に白い線が太る太線化処理となってしまうといった問題点がある。さらに通常のポジ原痛を白黒反転する場合に、細線検出及び細線化処理をするよりも前段に画像データの白黒反転処理をする回路構成の場合には、元画像の黒文字や黒線が白黒反転されて白文字や白線となり、白領域を太らせてしまうといった問題点があった。
【0004】
また細線化検出を行うマトリクスサイズが小さいと網点部分のエッジ部分も細線のエッジ部分と誤認織することがあり、網点部分の画像が見苦しくなり画質劣化を引き起こしていた。
【0005】
そこで本発明は、ポジ原稿であってもネガ画像であっても最適な細線化処理を施し、高品質の画像出力が可能な画像処理装置及び画像形成装置を提供することを目的とする。
【0006】
【課題を解決するための手段】
第1の手段の画像処理装置は上記目的を達成するために、入力された画像データがポジ原稿であるかネガ原稿であるか否かを判定する原稿判定手段と、入力された画像データの注目画素を中心とした周囲画素がエッジ領域であるか否かを検出するエッジ検出手段と、前記エッジ検出手段によりエッジ領域と判定された注目画素に対して、前記原稿判定手段の判定結果がポジ原稿であると判定された場合に黒細線化処理を行い、ネガ原稿であると判定された場合には白細線化処理を行う細線化処理手段とを備えたことを特徴とする。このように構成すると、ポジ原稿であった場合には黒文字や黒線に対して黒細線化処理を施し、またネガ原稿であった場合には白文字や白線に対して白細線化処理を施すため、原稿別に最適な細線化処理を行うことが可能になる。
【0007】
第2の手段は、第1の手段において前記エッジ検出手段がさらにエッジ量を検出し、前記細線化処理手段がさらに前記エッジ検出手段により検出されたエッジ量に応じて細線化の度合いを変更することを特徴とする。このように構成すると、エッジ判定を行う他にエッジ量も検出してそのエッジ量の大小を元に細線化の度合いのレベルを調整できるので、画像のエッジに最適な細線化処理を施すことが可能となる。
【0008】
第3の手段は、第1または第2の手段において、前記エッジ検出手段によってエッジ領域でないと判断されたときには、注目画素データをそのまま出力することを特徴とする。このように構成すると、エッジと判定された場合には細線化処理を行い、エッジでない(網点である)と判断された場合には細線化処理を行わないので、中間調部分、特に網点部分には細線化を行わないことができ、画質劣化を防止することが可能になる。
【0009】
第4の手段は、第1ないし第3の手段に係る画像処理装置と、この画像処理装置によって処理された画像データに基づいて記録紙上に画像を形成する画像形成手段とから画像形成装置を構成したことを特徴とする。このように構成すると、ポジ原稿である場合には黒文字や黒線に対して黒細線化処理を施し、ネガ原稿である場合には白文字や白細線に対して白細線化処理をすることが可能となり、画像に対して最適な細線化処理が施こされた画像を出力することができる。
【0010】
【発明の実施の形態】
以下、図面を参照して本発明の実施の形態について説明する。図1は本発明に係る画像処理装置の一実施形態を示すブロック図、図2は図1の周囲画素エッジ検出回路を詳しく示すブロック図、図3は図2のマトリクス生成部を詳しく示すブロック図、図4は図2のフィルタ処理部の係数を詳しく示す説明図、図5は図図1の細線化処理回路の処理を示す説明図、図6は図5の処理を詳しく示す説明図、図7は図1の細線化処理回路の処理をまとめて示す説明図、図8は入力画像例を示す説明図である。
【0011】
図1において、入力画像データは原稿の地肌を検出する原稿地肌濃度検出回路1と、注目画素周辺のエッジ検出及びエツジ量を算出するエッジ検出回路2と細線化処理回路3に印加される。本実施例の動作概要は次の通りである。まず、原稿地肌濃度検出回路1により入力画像データの地肌の濃度レベルが検出され、ポジ原稿であるかネガ原稿であるかを検出しておく。次に周囲画素エッジ検出回路2により注目画素周辺のエッジ判定を行い、さらにエッジ量の大小も算出しておく。
【0012】
そして細線化処理回路3では原稿地肌濃度検出回路1の検出結果により原稿がポジ原稿の場合は黒細線化処理すなわち細線化対象画素データに対してある値で除算して白データ側にする処理を行い、他方、原稿がネガ原稿の場合は白細線化処理すなわち細線化対象画素データにある値を加算して黒データ側にする処理を行う。ここで扱うデータは、多値の8ビットデータであり、白は0、黒は255としている。
【0013】
さらに細線化処理回路3では周囲画素エッジ検出回路2によるエッジ判定結果がエッジであると判定された場合には、周囲画素エッジ検出回路2からのエッジ量により、例えばポジ原稿であってエッジ量が大きいときは、細線化対象画素データに対し元のデータの25%まで落として細線化レベルを強くし、またポジ原稿であってエッジ量が小さいときは、細線化対象画素データに対して元データの75%まで落として細線化レベルを弱くする。またエッジ判定結果がエッジでないと判定された場合には、細線化処理回路3は細線化処理を行わない。
【0014】
次に各部の動作について説明する。まず、原稿地肌濃度検出回路1について説明する。原稿地肌濃度を検出する方法として、プレスキヤン動作を行わせて、事前の地肌濃度を確認しておく方法がある。これは原稿の各画素の濃度を検出し、濃度毎にその濃度の画素がいくつあるかを計数し、その結果を基にしてヒストグラムを作成し、地肌を代表する濃度を求める。その濃度とある閾値を比較して、ある閾値より小さい場合は、地肌濃度が白い(薄い)ポジ原稿であると判断し、ある閾値以上の場合には地肌濃度が黒い(濃い)ネガ原稿であると判断する。
【0015】
この方法はプレスキャンを前提としているが、スキャンライン単位あるいは画素ブロック単位で地肌濃度の検出を行って演算するようにしておけば、随時、地肌濃度の判定結果を更新することも可能である。その他、原稿地肌濃度検出方法には上記以外にも様々な方法が考えられ、これらの方法に本発明は制約を受けるものではない。
【0016】
次に周囲画素エッジ検出回路2について説明する。図2に示すように、エッジ検出回路2はマトリクス生成部201と、フィルタ処理部202とエッジ検出部203により構成されている。マトリクス生成部203は図3のように4つのランメモリ210〜213と各ラインの5個ずつ計25個のフリップフロツプ220により、5×5画素のマトリクスを形成している。
【0017】
フィルタ処理部202では、マトリクス生成部201からの5×5画素の各データに対して、図4(a)〜(d)のような各4種類の一次微分フィルタ処理を行う。エッジ検出部203では、フィルタ処理部202の処理後の4つのデータを絶対値化し、それらの最大値を求める。そしてあらかじめ設定しておいた3つの閾値=thO,thl,th2によりエッジ量を4値化し、2ビットのエッジ信号を得る。エッジ信号が0の時はエッジではないとし、1の時はエッジ量が小、2の時はエッジ量が中、3の時はエッジ量が大とする。ここで、エッジ量は2ビット化したが、さらに詳細に分割して多ビット化してもよい。なお、エッジ検出方法は、上記の方法以外にもさまざまな方法が考えられ これらの方法に本発明は制約を受けるものではない。
【0018】
次に細線化処理回路3について説明する。細線化処理は以下のような判定方法で検出を行う。図5のように注目画素xに対して3×3のマトリクスを形成する。マトリクス形成に関しては、前述のエッジ検出回路203の時と同様に行えばよいので省略する。主走査方向に関しては、注目画素xの左右の画素データDr及びDlと閾値ThA及びThBの関係が以下のように成立した場合に細線化処理を施す。
【0019】
(主走査方向)
Dr≧ThA かつ Dl≦ThB・・・(1)
または
Dr≦ThB かつ Dl≧ThA・・・(2)
式(1)を図示すると図6のようになる。
【0020】
副走査方向に関しても同様に、注目画素Xの上下の画素データDu及びDdと閾値ThA及びThBの関係が以下のように成立した場合に細線化処理を施す。
【0021】
(副走査方向)
Du≧ThA かつ Dd≦ThB・・・(3)
または
Du≦ThB かつ Dd≧ThA・・・(4)
上記の条件式(1)から(4)のいずれかが成立した注目画素は、原稿地肌濃度検出回路1からの出力とエッジ検出回路2からのエッジ量により細線化レベルを決定する。原稿地肌濃度検出回路1からの出力がポジ原稿である場合であって、エッジ検出回路2からのエッジ量が大(2ビット信号で3)の時には黒文字や黒線の細線化レベルを強くするために、注目画素を4で除算し、元データを25%にする。
【0022】
またエツジ量が中(2ビット信号で2)の時には、注目画素を2で除算し、元データを50%にする。またエッジ量が小(2ビット信号で1)の時には、細線化レベルを弱くするため、注目画素を4/3で除算し、元データを75%にする。またエッジでない(2ビット信号で0)と判定された時には、黒文字や黒線の細線化が行わなわれないようにするために、注目画素データをそのまま出力する。
【0023】
さらに原稿地肌濃度検出回路1からの出力がネガ原稿である場合であって、エッジ検出回路2からのエッジ量が大の時には白文字や白線の細線化レベルを強くするために、注目画素に128を加算する。またエッジ量が中の時には注目画素に64を加算する。またエッジ量が小の時には年目画素に32を加算する。またエッジでないと判定された時には、白文字や白線の細線化が行わなわれないようにするために、注目画素データをそのまま出力する(ここで扱うデータは多値8ビットデータであり、白は0、黒は255であるとしている。)。上記の内容をまとめると図7のようになる。
【0024】
次に具体例を挙げて説明する。まず、図8(a)のような5×5画素のデータの場合について演算する。このデータはほぼ縦エッジのデータの集まりである。これらをエッジ検出回路203によりエッジ量の算出を行う。それぞれ4つのフィルタ処理をして絶対値をとった結果は、
縦エッジ検出フィルタ処理後=1980
横エッジ検出フィルタ処理後=75
斜めエッジ1検出フィルタ処理後=1370
斜めエッジ2検出フィルタ処理後=1230
となる。
【0025】
これらのうちの最大値は、縦エッジ検出フィルタ処理後の1980となる。また8bitデータ(0から255)に直すために、10で割ると198となる。ここでエッジ量を4値化するための閾値をThO=64、Thl=128、Th2=192であるとすると、エッジ量は3となり、エッジ量は大となる。
【0026】
次に細線化処理の行うか否かの判定処理を行う。閾値はThAを200、ThBを50とすると、図8(a)のデータは条件式(1)が成立する。よって注目画素値=130に対して細線化処理を行う。原稿地肌濃度がポジ原稿のときは注目画素値(=130)×0.25=32.5=32(小数点以下切り捨て)となる。また原稿地肌濃度検出の結果がネガ原稿の時には注目画素(=130)+128=258=255となる(255以上は255に固定)。
【0027】
また次に図8(b)のような5×5画素のデータの場合について演算する。このデータは2×2の網点データであるる。これらをエッジ検出回路203によりエッジ量の算出を行う。それぞれ4つのフィルタ処理をして絶対値をとった結果は、
縦エッジ検出フィルタ処理後=180
横エッジ検出フィルタ処理後=180
斜めエッジ1検出フィルタ処理後=360
斜めエッジ2検出フィルタ処理後=0
となる。これらのうちの最大値は、斜めエッジ1検出フィルタ処理後の360となる。また8bitデータ(0から255)に直すために10で割ると36となる。ここでエッジ量を4値化するための閾値をTh0=64、Thl=128、Th2=192であるとすると、エッジ量は0となり、エッジでないと判定される。
【0028】
次に細線化処理の行うか杏かの判定処理を行う。閾値はThAを200、ThBを50とすると、図8(b)のデータは条件式(1)及び(4)が成立しているが、エッジ検出結果がエッジでないと判定されているので、原稿地肌濃度がポジ原稿でもネガ原稿でも注目画素の220はそのまま出力されることになる。
【0029】
このようにして画像処理装置で処理された画像データは、画像形成手段(プリンタエンジン)に出力され、プリンタエンジンで記録紙に画像が形成され、印字出力される。プリンタエンジンとしては、例えば電子写真プロセスによって画像を形成するものが使用される。なお、電子写真プロセスによって画像を形成するプリンタエンジン公知の技術であるので、ここでの詳細な説明は省略する。
【0030】
【発明の効果】
以上説明したように本発明によれば、ポジ原稿であった場合には黒文字や黒線に対して黒細線化処理を施し、またネガ原稿であった場合には白文字や白線に対して白細線化処理を施すので、ポジ原稿であってもネガ画像であっても最適な細線化処理が施され、高品質の画像出力が可能な画像処理装置及び画像形成装置を提供することができる。
【図面の簡単な説明】
【図1】本発明に係る画像処理装置の一実施形態を示すブロック図である。
【図2】図1の周囲画素エッジ検出回路を詳しく示すブロック図である。
【図3】図2のマトリクス生成部を詳しく示すブロック図である。
【図4】図2のフィルタ処理部の係数を詳しく示す説明図である。
【図5】図1の細線化処理回路の処理を示す説明図である。
【図6】図5の処理を詳しく示す説明図である。
【図7】図1の細線化処理回路の処理をまとめて示す説明図である。
【図8】入力画像例を示す説明図である。
【符号の説明】
1 原稿地肌濃度検出回路
2 エッジ検出回路
3 細線化処理回路
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus that performs thinning processing of characters and lines on an image in an image forming apparatus such as a copying machine, a scanner, and a facsimile that performs digital image processing, and an image forming apparatus including the image processing apparatus.
[0002]
[Prior art]
In an image processing apparatus such as a monochrome digital copying machine or a scanner, when a copy original is copied (copy copy), characters and lines of the copy image may be thinner and thicker than the original. In such a case, an edge portion of a character or a line is detected by image processing and a thinning process is performed, and the character or the line is thinned to reproduce the original more faithfully. A conventional example of this type is disclosed, for example, in Japanese Patent Application Laid-Open No. 8-65520.
[0003]
[Problems to be solved by the invention]
However, since it is a process for thinning the characters and black lines of a positive original (white background and black characters and the like), it is usually the case when the original is dark and the characters and lines are white such as a negative original. There is a problem that thinning is not performed on white characters and white line portions, and conversely, thickening processing is performed in which white lines are thickened. Furthermore, in the case of a circuit configuration that performs black-and-white reversal processing of image data before performing fine line detection and thinning processing when normal positive original pain is reversed, the black characters and black lines of the original image are reversed. As a result, there is a problem that white characters and white lines are formed, and the white area is thickened.
[0004]
In addition, if the matrix size for performing thinning detection is small, the edge portion of the halftone dot portion may be erroneously recognized as the edge portion of the thin line portion, and the image of the halftone dot portion becomes unsightly and causes deterioration in image quality.
[0005]
Therefore, an object of the present invention is to provide an image processing apparatus and an image forming apparatus capable of performing an optimal thinning process on a positive document or a negative image and outputting a high-quality image.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, an image processing apparatus according to a first means includes: a document determining means for determining whether input image data is a positive document or a negative document; Edge detection means for detecting whether or not a peripheral pixel centered on the pixel is an edge area; and a determination result of the document determination means for a target pixel determined to be an edge area by the edge detection means. And thinning processing means for performing white thinning processing when it is determined that the document is a negative original. With this configuration, if the original is a positive original, black thinning processing is performed on black characters and black lines, and if the original is a negative original, white thinning processing is performed on white characters and white lines. Therefore, it is possible to perform optimal thinning processing for each document.
[0007]
The second means is that, in the first means, the edge detecting means further detects an edge amount, and the thinning processing means further changes the degree of thinning according to the edge amount detected by the edge detecting means. It is characterized by the following. With this configuration, in addition to performing the edge determination, the edge amount can also be detected and the level of the degree of thinning can be adjusted based on the magnitude of the edge amount, so that the optimal thinning processing can be performed on the edges of the image. It becomes possible.
[0008]
The third means is characterized in that, in the first or second means, when the edge detection means determines that the area is not an edge area, the pixel data of interest is output as it is. With this configuration, the thinning processing is performed when it is determined to be an edge, and the thinning processing is not performed when it is determined to be not an edge (halftone dot). Thinning can not be performed on the portion, and it is possible to prevent image quality deterioration.
[0009]
The fourth means comprises an image processing apparatus according to the first to third means, and an image forming means for forming an image on recording paper based on image data processed by the image processing apparatus. It is characterized by having done. With this configuration, it is possible to perform black thinning processing on black characters and black lines in the case of a positive original, and perform white thinning processing on white characters and white thin lines in the case of a negative original. This makes it possible to output an image obtained by performing an optimal thinning process on the image.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of an image processing apparatus according to the present invention, FIG. 2 is a block diagram showing a peripheral pixel edge detection circuit of FIG. 1 in detail, and FIG. 3 is a block diagram showing a matrix generation unit of FIG. 4, FIG. 4 is an explanatory diagram showing the coefficients of the filter processing unit of FIG. 2 in detail, FIG. 5 is an explanatory diagram showing the processing of the thinning processing circuit of FIG. 1, and FIG. 6 is an explanatory diagram showing the processing of FIG. 7 is an explanatory diagram collectively showing the processing of the thinning processing circuit of FIG. 1, and FIG. 8 is an explanatory diagram showing an example of an input image.
[0011]
In FIG. 1, input image data is applied to a document background density detecting circuit 1 for detecting the background of the document, an edge detecting circuit 2 for detecting an edge around a pixel of interest and calculating an edge amount, and a thinning processing circuit 3. The outline of the operation of this embodiment is as follows. First, the background density detection circuit 1 detects the background density level of the input image data to detect whether the document is a positive document or a negative document. Next, the surrounding pixel edge detection circuit 2 determines an edge around the target pixel, and further calculates the magnitude of the edge amount.
[0012]
When the original is a positive original, the thinning processing circuit 3 performs black thinning processing, that is, processing for dividing the thinning target pixel data by a certain value to white data based on the detection result of the original background density detection circuit 1. On the other hand, if the original is a negative original, white thinning processing, that is, processing of adding a certain value to thinning target pixel data to make black data is performed. The data handled here is multi-valued 8-bit data, white is 0, and black is 255.
[0013]
Further, when the thinning processing circuit 3 determines that the edge determination result by the surrounding pixel edge detection circuit 2 is an edge, the edge amount from the surrounding pixel edge detection circuit 2 indicates that the edge amount is, for example, a positive document and the edge amount is When it is large, the thinning level is increased by dropping to 25% of the original data with respect to the thinning target pixel data. When it is a positive original and the edge amount is small, the original data is reduced with respect to the thinning target pixel data. And the line thinning level is reduced. Further, when it is determined that the edge determination result is not an edge, the thinning processing circuit 3 does not perform the thinning processing.
[0014]
Next, the operation of each unit will be described. First, the document background density detection circuit 1 will be described. As a method of detecting the background density of a document, there is a method in which a press-scan operation is performed to check the background density in advance. In this method, the density of each pixel of a document is detected, the number of pixels having that density is counted for each density, a histogram is created based on the result, and a density representative of the background is obtained. The density is compared with a certain threshold value. If the density is smaller than a certain threshold value, it is determined that the background density is a white (light) positive document. If the density is more than a certain threshold value, the background density is a black (dark) negative document. Judge.
[0015]
This method is premised on pre-scanning. However, if the calculation is performed by detecting the background density in units of scan lines or pixel blocks, the determination result of the background density can be updated at any time. In addition, various methods other than those described above are conceivable as the original background density detection method, and the present invention is not limited to these methods.
[0016]
Next, the surrounding pixel edge detection circuit 2 will be described. As shown in FIG. 2, the edge detection circuit 2 includes a matrix generation unit 201, a filter processing unit 202, and an edge detection unit 203. As shown in FIG. 3, the matrix generation unit 203 forms a matrix of 5 × 5 pixels by using four run memories 210 to 213 and five flip-flops 220 for each line, that is, a total of 25 flip-flops 220.
[0017]
The filter processing unit 202 performs four types of first-order differential filter processing on each of the 5 × 5 pixel data from the matrix generation unit 201 as shown in FIGS. The edge detection unit 203 converts the four data processed by the filter processing unit 202 into absolute values, and obtains the maximum value. Then, the edge amount is quaternized by three preset threshold values = thO, thl, and th2 to obtain a 2-bit edge signal. When the edge signal is 0, the edge is not an edge. When the edge signal is 1, the edge amount is small. When the edge signal is 2, the edge amount is medium. When the edge signal is 3, the edge amount is large. Here, the edge amount is set to 2 bits, but may be further divided into multiple bits. Various methods other than the above-described methods are conceivable as the edge detection method, and the present invention is not limited to these methods.
[0018]
Next, the thinning processing circuit 3 will be described. In the thinning processing, detection is performed by the following determination method. As shown in FIG. 5, a 3 × 3 matrix is formed for the target pixel x. The formation of the matrix may be performed in the same manner as in the case of the edge detection circuit 203 described above, and a description thereof will be omitted. In the main scanning direction, thinning processing is performed when the relationship between the left and right pixel data Dr and Dl of the target pixel x and the threshold values ThA and ThB is established as follows.
[0019]
(Main scanning direction)
Dr ≧ ThA and Dl ≦ ThB (1)
Or, Dr ≦ ThB and Dl ≧ ThA (2)
Equation (1) is illustrated in FIG.
[0020]
Similarly, in the sub-scanning direction, the thinning process is performed when the relationship between the pixel data Du and Dd above and below the target pixel X and the threshold values ThA and ThB is established as follows.
[0021]
(Sub scanning direction)
Du ≧ ThA and Dd ≦ ThB (3)
Or Du ≦ ThB and Dd ≧ ThA (4)
For the target pixel for which any of the conditional expressions (1) to (4) is satisfied, the thinning level is determined based on the output from the original background density detection circuit 1 and the edge amount from the edge detection circuit 2. When the output from the document background density detection circuit 1 is a positive document and the edge amount from the edge detection circuit 2 is large (3 for a 2-bit signal), the thinning level of black characters and black lines is increased. Then, the target pixel is divided by 4 to make the original data 25%.
[0022]
When the edge amount is medium (2 for a 2-bit signal), the target pixel is divided by 2 to make the original data 50%. When the edge amount is small (1 for a 2-bit signal), the target pixel is divided by 4/3 to reduce the thinning level, and the original data is set to 75%. When it is determined that the edge is not an edge (0 in a two-bit signal), the pixel data of interest is output as it is in order to prevent thinning of black characters and black lines.
[0023]
Further, when the output from the document background density detection circuit 1 is a negative document, and when the edge amount from the edge detection circuit 2 is large, 128 pixels are added to the target pixel in order to increase the thinning level of white characters and white lines. Is added. When the edge amount is medium, 64 is added to the target pixel. When the edge amount is small, 32 is added to the year pixel. If it is determined that the pixel is not an edge, the pixel data of interest is output as it is in order to prevent white characters and white lines from being thinned (data handled here is multi-valued 8-bit data. 0 and black are 255). The above contents are summarized in FIG.
[0024]
Next, a specific example will be described. First, calculation is performed for data of 5 × 5 pixels as shown in FIG. This data is a collection of data of almost vertical edges. The edge amount is calculated by the edge detection circuit 203. The result of taking the absolute value of each of the four filter processes is:
After vertical edge detection filter processing = 1980
After horizontal edge detection filter processing = 75
After oblique edge 1 detection filter processing = 1370
After oblique edge 2 detection filter processing = 1230
It becomes.
[0025]
The maximum value among these is 1980 after the vertical edge detection filter processing. In order to convert the data into 8-bit data (0 to 255), the result is divided by 10 to obtain 198. Here, assuming that the thresholds for quaternizing the edge amount are ThO = 64, Thl = 128, and Th2 = 192, the edge amount is 3, and the edge amount is large.
[0026]
Next, a process of determining whether or not to perform the thinning process is performed. Assuming that the thresholds are 200 for ThA and 50 for ThB, the conditional expression (1) holds for the data in FIG. Therefore, the thinning processing is performed on the target pixel value = 130. When the background density of the document is a positive document, the pixel value of interest (= 130) × 0.25 = 32.5 = 32 (rounded down to the decimal point). If the result of the original background density detection is a negative original, the target pixel (= 130) + 128 = 258 = 255 (255 or more is fixed to 255).
[0027]
Next, calculation is performed for data of 5 × 5 pixels as shown in FIG. This data is 2 × 2 dot data. The edge amount is calculated by the edge detection circuit 203. The result of taking the absolute value of each of the four filter processes is:
After vertical edge detection filter processing = 180
After horizontal edge detection filter processing = 180
After oblique edge 1 detection filter processing = 360
After oblique edge 2 detection filter processing = 0
It becomes. The maximum value among these is 360 after the oblique edge 1 detection filter processing. In addition, it is 36 when divided by 10 to convert it into 8-bit data (0 to 255). Here, assuming that the thresholds for quaternizing the edge amount are Th0 = 64, Thl = 128, and Th2 = 192, the edge amount is 0, and it is determined that the edge is not an edge.
[0028]
Next, it is determined whether thinning processing is to be performed or not. Assuming that the threshold value is 200 for ThA and 50 for ThB, the data in FIG. 8B satisfies the conditional expressions (1) and (4), but since the edge detection result is determined not to be an edge, the document Regardless of whether the background density is a positive document or a negative document, the target pixel 220 is output as it is.
[0029]
The image data processed by the image processing apparatus in this way is output to an image forming means (printer engine), where an image is formed on a recording sheet by the printer engine and printed out. As the printer engine, for example, one that forms an image by an electrophotographic process is used. It is to be noted that since this is a known technology of a printer engine for forming an image by an electrophotographic process, a detailed description is omitted here.
[0030]
【The invention's effect】
As described above, according to the present invention, black thinning processing is performed on black characters and black lines in the case of a positive original, and white thinning processing is performed on white characters and white lines in the case of a negative original. Since the thinning processing is performed, the optimum thinning processing is performed for both a positive document and a negative image, and an image processing apparatus and an image forming apparatus capable of outputting high-quality images can be provided.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating an embodiment of an image processing apparatus according to the present invention.
FIG. 2 is a block diagram illustrating a peripheral pixel edge detection circuit of FIG. 1 in detail;
FIG. 3 is a block diagram illustrating a matrix generating unit of FIG. 2 in detail;
FIG. 4 is an explanatory diagram showing in detail coefficients of a filter processing unit in FIG. 2;
FIG. 5 is an explanatory diagram showing the processing of the thinning processing circuit of FIG. 1;
FIG. 6 is an explanatory diagram showing the processing of FIG. 5 in detail;
FIG. 7 is an explanatory diagram collectively showing processing of the thinning processing circuit of FIG. 1;
FIG. 8 is an explanatory diagram showing an example of an input image.
[Explanation of symbols]
1 Document background density detection circuit 2 Edge detection circuit 3 Thinning processing circuit

Claims (4)

入力された画像データがポジ原稿であるかネガ原稿であるか否かを判定する原稿判定手段と、
入力された画像データの注目画素を中心とした周囲画素がエッジ領域であるか否かを検出するエッジ検出手段と、
前記エッジ検出手段によりエッジ領域と判定された注目画素に対して、前記原稿判定手段の判定結果がポジ原稿であると判定された場合に黒細線化処理を行い、ネガ原稿であると判定された場合には白細線化処理を行う細線化処理手段と
を備えた画像処理装置。
Document determining means for determining whether the input image data is a positive document or a negative document,
Edge detection means for detecting whether or not peripheral pixels around the pixel of interest of the input image data are edge regions;
When the determination result of the document determination unit is determined to be a positive document, black thinning processing is performed on the target pixel determined to be an edge region by the edge detection unit, and the pixel is determined to be a negative document. An image processing apparatus comprising: a thinning processing unit that performs white thinning processing in some cases.
前記エッジ検出手段はさらにエッジ量を検出し、前記細線化処理手段はさらに前記エッジ検出手段により検出されたエッジ量に応じて細線化の度合いを変更することを特徴とする請求項1に記載の画像処理装置。2. The apparatus according to claim 1, wherein the edge detecting means further detects an edge amount, and the thinning processing means further changes a degree of thinning according to the edge amount detected by the edge detecting means. Image processing device. 前記エッジ検出手段によってエッジ領域でないと判断されたときには、注目画素データをそのまま出力することを特徴とする請求項1または2記載の画像処理装置。3. The image processing apparatus according to claim 1, wherein the pixel data of interest is output as it is when the edge detection unit determines that the pixel is not an edge area. 請求項1ないし3のいずれか1項に記載の画像処理装置と、
この画像処理装置によって処理された画像データに基づいて記録紙上に画像を形成する画像形成手段と、
を備えた画像形成装置。
An image processing apparatus according to any one of claims 1 to 3,
Image forming means for forming an image on recording paper based on image data processed by the image processing apparatus;
An image forming apparatus comprising:
JP2002226141A 2002-08-02 2002-08-02 Image processor and image forming apparatus Pending JP2004072245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002226141A JP2004072245A (en) 2002-08-02 2002-08-02 Image processor and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002226141A JP2004072245A (en) 2002-08-02 2002-08-02 Image processor and image forming apparatus

Publications (1)

Publication Number Publication Date
JP2004072245A true JP2004072245A (en) 2004-03-04

Family

ID=32013580

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002226141A Pending JP2004072245A (en) 2002-08-02 2002-08-02 Image processor and image forming apparatus

Country Status (1)

Country Link
JP (1) JP2004072245A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016021664A (en) * 2014-07-14 2016-02-04 株式会社リコー Image forming apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016021664A (en) * 2014-07-14 2016-02-04 株式会社リコー Image forming apparatus

Similar Documents

Publication Publication Date Title
JP2005094740A (en) Image processing apparatus, image forming apparatus and image processing method
JPH04356869A (en) Image processor
JP4228466B2 (en) Image processing apparatus, image processing method, and computer-readable storage medium storing image processing procedure
JP2004072245A (en) Image processor and image forming apparatus
JP3789243B2 (en) Image processing apparatus and method
JPH10108012A (en) Image area separating device
JP2001119575A (en) Image processing unit
JP3183787B2 (en) Halftone area determination device
JP3158535B2 (en) Image processing device
JP3177508B2 (en) Image processing device
JP3064896B2 (en) Image processing device
JP3146517B2 (en) Image processing device
JP3146516B2 (en) Image processing device
JP3136650B2 (en) Image processing device
JP3118896B2 (en) Facsimile machine
JP2004282532A (en) Image processing apparatus
JPH08340447A (en) Image processor with through prevention function
JP3596962B2 (en) Image processing device
JPH04270561A (en) Picture processor
JP4154867B2 (en) Image area discrimination apparatus and image area discrimination program
JPH0382269A (en) Character region separation system
JPH099038A (en) Picture processor and picture processing method
JPH0832802A (en) Image processing unit
JP2004112534A (en) Image processing method
JPH0879513A (en) Binary error diffusion processor