JP4440487B2 - Color image color classification method and color image processing apparatus - Google Patents
Color image color classification method and color image processing apparatus Download PDFInfo
- Publication number
- JP4440487B2 JP4440487B2 JP2001079486A JP2001079486A JP4440487B2 JP 4440487 B2 JP4440487 B2 JP 4440487B2 JP 2001079486 A JP2001079486 A JP 2001079486A JP 2001079486 A JP2001079486 A JP 2001079486A JP 4440487 B2 JP4440487 B2 JP 4440487B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- color
- black
- achromatic
- determination
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Color, Gradation (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、カラー画像色分類方法およびカラー画像処理装置に関し、特に、カラー原稿をデジタル的に走査して読み取られたカラー画像の画素を有彩色画素/無彩色画素に分類する方法と、そのような分類のための機構を含むカラー画像処理装置に関する。
【0002】
【従来の技術】
例えばカラー複写機においては、黒文字や黒細線は、その輪郭が鮮明に見えるよう黒単色のインクで打ち、その他のカラー中間調の部分はC,M,Y,Kのインクを組み合わせて打たなければならないが、そのためには予め画像中の黒文字、黒線の部分を検出する必要がある。通常、エッジ検出と有彩色/無彩色判定を組み合わせ、エッジ検出で検出したベタの色および黒のエッジのうち、有彩色/無彩色判定で無彩色とされた部分だけを黒文字、黒線の部分と判定している。
【0003】
なお、有彩色部分には、ベタの色文字などの他に、C,M,Y,Kの網点で表現されたカラー中間調部分があるので、画素値のみで有彩色/無彩色画素を判定することは難しいため、図1に示すような注目画素とその近傍を含む小領域の平均的な彩度に基づいて、有彩色/無彩色判定が行なわれる。
【0004】
ところで、スキャナによって黒文字や黒線などを含むカラー原稿をデジタル的に走査して読み取ると、例えば図2、図3に示すように黒エッジの周囲に色にじみが発生し、その部分の無彩色画素が有彩色画素と判定される結果、黒単色で鮮明に打てないという問題がある。
【0005】
特開平4−90673号公報に述べられているように、注目画素の近傍に所定量以上の黒成分が含まれている場合には、たとえ注目画素が、その平均彩度から有彩色と判定されたとしても、その判定を無彩色に補正する方法によれば、上に述べた黒文字などのエッジ部分に生じる色にじみ領域の無彩色画素を有彩色画素と誤判定するという問題を解消できる。
【0006】
【発明が解決しようとする課題】
しかしながら、上記従来方法では、平均的に黒成分を含む彩度の低い網点領域の画素をも無彩色画素と誤判定することがある。
【0007】
大きな網点領域については、別途行う網点検出によって網点と判定されてカラー中間調用のC,M,Y,Kのインクの組み合わせにより打たれるので、その有彩色画素が無彩色画素と誤判定されても不都合はない。
【0008】
しかし、網文字(網点で表現されたカラーまたはグレーの文字)のような小領域の網点部分では、網点の特徴の抽出が困難で十分な網点検出精度を期待できないため、本来中間調部分でありながら文字と判定される部分が生じる。そして、その部分がある程度黒を含んだ彩度の低めの色であると、近傍に黒成分を含有しているために、明らかに色の付いた部分でありながら無彩色と判定されて黒単色で打たれる結果、色文字のところどころが黒く打たれ低品質の文字が出力されてしまうという不都合が起きる。
そこで、本発明者は、有彩判定された注目画素を中心とする所定の領域内で、黒領域が局在するかまたは注目画素を挟んで黒領域と白領域が存在する場合に、黒エッジ周囲の色にじみ画素と判定し、有彩判定を無彩判定に補正する有彩/無彩領域判定方法および装置を開発している。この方法および装置によれば、平均的に黒成分を含む彩度の低い網点領域まで無彩色判定に補正してしまうことなく、黒エッジ周囲の色にじみ画素のみを無彩色判定とすることができる。
【0009】
本発明は、上記の本発明者が開発した方法および装置の一層の改良を図ることを目的としてなされたものであり、ハードウェア規模を増大させることなく、より大きな色にじみ幅の黒エッジなどの色にじみを無彩判定することができるカラー画像色分類方法およびカラー画像処理装置提供することを目的とする。
【0010】
【課題を解決するための手段】
本発明に係るカラー画像色分類方法は、カラー原稿をデジタル的に走査して得られた入力カラー画像信号の各成分信号から入力画像信号の有彩色と無彩色を画素ごとに判定するカラー画像色分類方法において、注目画素を中心とする所定の領域内で黒領域が局在するか、または注目画素を挟んで黒領域と白領域が存在する場合に、注目画素をスキャナ入力時の色ずれによる黒エッジの色にじみ画素と判定し、無彩色画素に確定するとともに、所定の領域内で黒領域から対向する非黒領域へ向かう方向へ注目画素から所定の画素数だけ延長した注目画素の周辺の画素を無彩判定とすることを特徴とする。
【0011】
また、上記のカラー画像色分類方法を実現するために、本発明に係るカラー画像処理装置の発明は、注目画素をスキャナ入力時の色ずれによる黒エッジの色にじみ画素と判定し、無彩色画素に確定する第1の判定手段と、所定の領域内で黒領域から対向する非黒領域へ向かう方向へ注目画素から所定の画素数だけ延長した注目画素の周辺の画素を無彩判定とする第2の判定手段とを有することを特徴とする。
【0012】
本発明の上記の構成により、注目画素を含むより大きな領域をみるときに、判定処理に必要なラインメモリの大きさが増大する等のハードウェア規模の増大を伴うことなく、より大きな色にじみ幅の黒エッジなどの色にじみによる有彩色判定を無彩色判定に補正することができ、カラー複写機などの読みとり原稿の出力において、原稿走査時に黒エッジなどの色にじみがあっても、色づくことなくこれらを黒単色で再生することができる。
【0013】
また、本発明に係るカラー画像色分類方法およびカラー画像処理装置において、無彩判定化の延長を、所定の方向に行うと、色にじみの大きく発生する方向が既知の場合、黒エッジの色にじみ判定画素の無彩判定の延長をその方向にのみ限定することにより、従来有彩判定できていた平均的に黒成分を含む彩度の低い網点領域を誤って無彩判定にしないようにすることができる。
【0014】
また、本発明に係るカラー画像色分類方法およびカラー画像処理装置において、無彩判定化の延長の画素数を、原稿の変倍率に応じて変更すると、変倍率が高い場合に、黒エッジの色にじみ判定画素の無彩判定の延長の画素数を大きくすることにより、変倍率が高くない場合に従来有彩判定できていた平均的に黒成分を含む彩度の低い網点領域を誤って無彩判定にしないようにすることができる。
【0015】
【発明の実施の形態】
本発明に係るカラー画像色分類方法およびカラー画像処理装置の好適な実施の形態(以下、本実施の形態例という。)について、図を参照して、以下に説明する。
図4に本発明の実施例の概略ブロック構成図を示す。
図1において入力画像信号である RGB信号(各8bit)は色変換部1においてYMC信号(各1bit)に変換され、それぞれ有彩色/無彩色判定部2と黒エッジ色にじみ判定部3に入力される。
【0016】
有彩色/無彩色判定部2からは画素単位に第1次の有彩色/無彩色判定結果が補正部4へと出力される。
【0017】
黒エッジ色にじみ判定部3は、第1の判定手段3aおよび第2の判定手段3bで構成される。第1の判定手段3aから画素単位に黒エッジ色にじみ画素であるか否かの判定結果が、また、第2の判定手段3bからその延長上の画素についての判断結果が、それぞれ補正部4へと出力される。
【0018】
このとき、第1の判定手段3aでは、注目画素を中心とする所定の領域内で黒領域が局在するか、または注目画素を挟んで黒領域と白領域が存在する場合に、注目画素をスキャナ入力時の色ずれによる黒エッジの色にじみ画素と判定する。
【0019】
また、第2の判定手段3bでは、注目画素から、所定の領域内で黒領域から対向する非黒領域へ向かう方向へ所定の画素数だけ延長した注目画素の周辺の画素について判定する。また、第2の判定手段3bでは、無彩判定化の延長を、所定の方向に行う。また、第2の判定手段3bでは、無彩判定化の延長の画素数を、原稿の変倍率に応じて変更する。
【0020】
補正部4では、有彩色/無彩色判定部2で有彩色判定された画素について、黒エッジ色にじみ判定画素またはその延長画素の場合のみ、無彩色判定へと判定結果を補正し、最終的な有彩色/無彩色判定結果が確定され、補正部より出力される。なお、有彩色/無彩色判定部2で有彩色判定された画素について、黒エッジ色にじみ画素と判定されない場合は、有彩色判定が確定される。また、有彩色/無彩色判定部2で無彩色判定された画素については、黒エッジ色にじみ画素と判定されるか否かに関わらず無彩色判定に確定される。
【0021】
色変換部1および有彩色/無彩色判定部2についてさらに説明する。
【0022】
本実施例では、RGB信号(各8bit)からYMC信号(各1bit)への変換は、RGB信号により、画素単位に Y,R,M,B,C,G の色相のいずれに含まれるかを判定し、各色相ごとに設けた閾値とRGB 信号値の最大、最小値の差の比較により、各色相において、有彩色/無彩色判定する。たとえば色相でRed に含まれると判定された場合、赤用の閾値 th_R とRGB 信号値の最大、最小値の差の比較により、有彩色判定する。この結果有彩色判定されれば Y=M=1, C=0 とする。他の色相に判定された場合も同様にして、各々の色相用の閾値(th_Y,th_M,th_B,th_C,th_G)を用いて有彩色判定し、この結果と色相に応じてY、M、Cの1/0を出力する。(Y:Y=1,M=0,C=0, M:Y=0,M=1,C=0, B:Y=0,M=1,C=1, C:Y=0,M=0,C=1, G:Y=1,M=0,C=1)次に有彩色/無彩色判定部2では、CMY信号(各1bit)に変換された画像信号を用いて、網点の色領域も有彩色/無彩色判定するために注目画素を中心に近傍も含めた小ブロック領域(NxN画素領域)での平均的な彩度を計算し、注目画素に対する有彩色/無彩色を判定する。これには小ブロック領域内のY、M、Cが1である画素数を各々計数し、これの最大、最小数の差を所定の閾値と比較することで、閾値を越えていれば有彩色、そうでなければ無彩色と判定する。
【0023】
つぎに黒エッジ色にじみ判定部3の第1の判定手段3aについて説明する。 本実施例ではN=5の5×5画素ブロックを用いて色にじみ領域を判定する。
【0024】
図5は、上記の判定アルゴリズムのための第1の判定手段3aのブロック図である。図5において、参照符号11 〜14はカウンタ、参照符号15 〜38は比較器、参照符号39〜54はAND回路、参照符号55はOR回路である。このOR回路55の出力が第1の判定手段3aの判定出力となる。
【0025】
カウンタ11は、注目画素を中心とした5 ×5画素の小領域を図6に示すように分割した各分割領域A ,B において、C =1 の画素数、M =1 の画素数、Y =1 の画素数をそれぞれ計数し、最小の計数値(0LQ A1 ,0LQ B1 )と最大の計数値(0D[ A1 ,0D[ B1 )を求める。黒画素ではC=M=Y=1であるから、最小の計数値(0LQ A1 ,0LQ B1 )は分割領域A ,B内における黒画素数とほぼ等しいため、黒成分の尺度として利用できる。また、白画素ではC=M=Y=0であるので、最大の計数値(0D[ A1 ,0D[ B1 )を分割領域の総画素数(ここでは15)から減じた値は、分割領域A ,B内の白画素数とほぼ等しく、白成分の尺度として利用できる。
【0026】
同様に、カウンタ12 は、注目画素を中心とした5 ×5画素の小領域を図7に示すように分割した各分割領域A ,Bにおいて、C=1の画素数、M=1の画素数、Y=1の画素数をそれぞれ計数し、最小の計数値(0LQ A2 ,0LQ B2 )と最大の計数値(0D[ A2 ,0D[ B2 )を求める。カウンタ13は、注目画素を中心とした5 ×5 画素の小領域を図8に示すように分割した各分割領域A ,B において、C =1 の画素数、M =1の画素数、Y=1の画素数をそれぞれ計数し、最小の計数値(0LQ A3 ,0LQ B3 )と最大の計数値(0D[ A3 ,0D[ B3 )を求める。カウンタ14 は、注目画素を中心とした5×5画素の小領域を図9に示すように分割した各分割領域A ,Bにおいて、C=1の画素数、M=1の画素数、Y=1の画素数をそれぞれ計数し、最小の計数値(0LQ A4 ,0LQ B4 )と最大の計数値(0D[ A4 ,0D[ B4 )を求める。
【0027】
比較器15〜20とAND回路39 〜42は、カウンタ11の出力値に基づいて、図6に示す分割領域A,Bに関して前述の条件判定を行う部分である。すなわち、比較器16,19は、最小値0LQ A1 ,0LQ B1 すなわち領域A,Bの黒成分が所定の閾値th _K を越えるときに、分割領域A,Bをそれぞれ黒領域と判定して1 を出力し、そうでなけれは非黒領域と判定して0を出力する。比較器17,18は分割領域A ,Bの黒成分の比率に関する判定を行うためのものであり、比較器17は0LQ A1に所定の閾値th _r(0より大きく、1より小さい)を乗じた値より0LQ B1が小さいときに1を出力し、比較器18は0LQ B1に所定の閾値th _rを乗じた値より0LQ A1が小さいときに1を出力する。したがって、分割領域Aが黒領域で、その黒成分に対する分割領域Bの黒成分の比率が所定値以下であるときにAND回路40の出力が1になり、よってOR回路55の出力すなわち第1の判定手段3aの判定出力が1になる。同様に、分割領域Bが黒領域で、その黒成分に対する分割領域Aの黒成分の比率が所定値以下であるときにAND回路41の出力が1になり、したがって第1の判定手段3aの判定出力が1 になる。比較器15は、分割領域Bの総画素数Rから0D[ B1を減じた値、すなわち分割領域Bの白成分が所定の閾値th _W を越えるときに分割領域Bを白領域と判定し、1を出力する。同様に、比較器20は、分割領域Aの総画素数Rから0D[A1を減じた値、すなわち分割領域A の白成分が所定の閾値th _W を越えるときに分割領域Aを白領域と判定し、1を出力する。したがって、分割領域Aが黒領域で分割領域Bが白領域であるときにはAND回路39の出力が1になり、その結果、第1の判定手段3aの判定出力は1になる。同様に、分割領域Bが黒領域で分割領域Aが白領域であるときにはAND回路42の出力が1になり、第1の判定手段3aの判定出力は1になる。
【0028】
比較器21 〜26とAND回路43〜46は、カウンタ12の出力値に基づいて、図7に示す分割領域A,Bに関して同様の条件判定を行う部分である。比較器27〜32とAND回路47〜50は、カウンタ13 の出力値に基づいて、図8に示す分割領域A,Bに関して同様の条件判定を行う部分である。比較器33〜38とAND回路51〜54は、カウンタ14の出力値に基づいて、図9に示す分割領域A,Bに関して同様の条件判定を行う部分である。
【0029】
以上の説明をまとめると、有彩色と判定された画素を中心とする入力画像信号の小ブロック領域(5×5画素ブロック)内を、水平(図6の分割パターン#1)、垂直(図7の分割パターン#2)または45°斜め方向(図8の分割パターン#3、図9の分割パターン#4)に、中心画素を含む1列分の画素を重なって含んで、対称な2つの5x3画素領域(A、B)に2分し、2分された領域の少なくとも片方が所定の閾値以上の黒成分が含まれる黒領域と判定され、かつこの黒領域の黒成分と、対向する他方の領域の黒成分の比率が閾値以下である場合または、2分された領域の少なくとも片方が所定の閾値以上の黒成分が含まれる黒領域でかつ他方の対向領域が所定の第2の閾値以上の白成分が含まれる白領域である場合に、色にじみ領域と判定する。図6〜9の分割パターンは、N=5の例を示しているが、Nは他の奇数でも同様である。
次に、第2の判定手段3bについて説明する。
【0030】
まず、第2の判定手段3bでは、注目画素から、所定の領域内で黒領域から対向する非黒領域へ向かう方向へ所定の画素数だけ延長した注目画素の周辺の画素について判定する。
無彩判定の延長方向は、本実施例の場合、図6〜9の2領域分割パターンの一方(黒領域)から他方(非黒領域または白領域)へ向かう方向であり、図10に矢印で示すように、注目画素から、上、下、左、右、斜め右上、斜め右下、斜め左上、斜め左下の8隣接画素方向のいずれかになる。
【0031】
具体的には、図6に対応した図11の例では、無彩判定の延長方向は、下となる。この場合、注目画素が無彩判定されると、1つ下側の隣接する画素がさらに無彩判定される。そして、黒エッジ色にじみ判定された注目画素に加えて、延長された画素についても、次段の補正部で、有彩色/無彩色判定部2の第1次判定結果が強制的に無彩色判定に補正される。
【0032】
また、第2の判定手段3bでは、無彩判定化の延長を、所定の方向に行う。
例えば、大きな色にじみの発生する方向が、副走査方向(上または下)に限定されていることが既知のとき、上記延長方向が、上または下の2方向のいずれかの場合にのみ、黒エッジ色にじみ判定による無彩判定化の延長を実施する。
【0033】
また、第2の判定手段3bでは、無彩判定化の延長の画素数を、原稿の変倍率に応じて変更する。
例えば、無彩判定化の延長の画素数を、変倍率 200% までは0、300% では1、400%では2と設定することができる。なお、これに限らず、延長画素数は、固定してもよい。
【0034】
以上、注目画素を挟んで黒領域と白領域が存在する場合における判定方法(カラー画像色分類方法)について説明したが、注目画素を中心とする所定の領域内で黒領域が局在する場合についても同様の方法により行うことができる。
【0035】
【発明の効果】
本発明に係るカラー画像色分類方法およびカラー画像処理装置によれば、注目画素を中心とする所定の領域内で黒領域が局在するか、または注目画素を挟んで黒領域と白領域が存在する場合に、注目画素をスキャナ入力時の色ずれによる黒エッジの色にじみ画素と判定し、無彩色画素に確定するとともに、所定の領域内で黒領域から対向する非黒領域へ向かう方向へ注目画素から所定の画素数だけ延長した注目画素の周辺の画素を無彩判定とするため、注目画素を含むより大きな領域をみるときに、判定処理に必要なラインメモリの大きさが増大する等のハードウェア規模の増大を伴うことなく、より大きな色にじみ幅の黒エッジなどの色にじみによる有彩色判定を無彩色判定に補正することができ、カラー複写機などの読みとり原稿の出力において、原稿走査時に黒エッジなどの色にじみがあっても、色づくことなくこれらを黒単色で再生することができる。
【0036】
また、本発明に係るカラー画像色分類方法およびカラー画像処理装置によれば、無彩判定化の延長を、所定の方向に行うため、色にじみの大きく発生する方向が既知の場合、黒エッジの色にじみ判定画素の無彩判定の延長をその方向にのみ限定することにより、従来有彩判定できていた平均的に黒成分を含む彩度の低い網点領域を誤って無彩判定にしないようにすることができる。
【0037】
また、本発明に係るカラー画像色分類方法およびカラー画像処理装置によれば、無彩判定化の延長の画素数を、原稿の変倍率に応じて変更するため、変倍率が高い場合に、黒エッジの色にじみ判定画素の無彩判定の延長の画素数を大きくすることにより、変倍率が高くない場合に従来有彩判定できていた平均的に黒成分を含む彩度の低い網点領域を誤って無彩判定にしないようにすることができる。
【図面の簡単な説明】
【図1】 黒を含む彩度の低い網点部分での黒画素の分布の例を示す図である。
【図2】 黒エッジの色にじみ部分での黒画素の分布の例を示す図である。
【図3】 黒エッジの色にじみ部分での黒画素の分布の他の例(黒エッジが入りくんだ部分)を示す図である。
【図4】 本発明の実施の一形態を示すブロック図である。
【図5】 第1の判定手段のブロック図である。
【図6】 5×5画素領域の第1の分割パターンを示す図である。
【図7】 5×5画素領域の第2の分割パターンを示す図である。
【図8】 5×5画素領域の第3の分割パターンを示す図である。
【図9】 5×5画素領域の第4の分割パターンを示す図である。
【図10】 本発明の無彩判定の延長方向を説明するための図である。
【図11】 1画素分下側に延長した画素を無彩判定することを説明するための図である。
【符号の説明】
1 色変換部
2 有彩色/無彩色判定部
3 黒エッジ色にじみ判定部
3a 第1の判定手段
3b 第2の判定手段
4 補正部
11〜14 カウンタ
15〜38 比較器
39〜54 AND回路
55 OR回路[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a color image color classification method and a color image processing apparatus, and more particularly to a method of classifying pixels of a color image read by digitally scanning a color original into chromatic / achromatic pixels, and so on. The present invention relates to a color image processing apparatus including a mechanism for proper classification.
[0002]
[Prior art]
For example, in a color copier, black letters and black thin lines must be hit with a single black ink so that the outline can be seen clearly, and other color halftone parts must be hit with a combination of C, M, Y, and K inks. In order to do so, it is necessary to detect black characters and black lines in the image in advance. Normally, the combination of edge detection and chromatic / achromatic color determination is combined with black characters and black lines for the solid color and black edges detected by edge detection, and only those portions that are achromatic by chromatic / achromatic color determination. It is determined.
[0003]
The chromatic color portion includes a color halftone portion expressed by C, M, Y, and K halftone dots in addition to a solid color character and the like. Since it is difficult to determine, chromatic / achromatic color determination is performed based on the average saturation of the target pixel as shown in FIG.
[0004]
By the way, when a color original containing black characters or black lines is digitally scanned and read by a scanner, for example, as shown in FIG. 2 and FIG. 3, color blur occurs around the black edge, and the achromatic pixel in that portion. As a result of determining that the pixel is a chromatic color pixel, there is a problem that it cannot be clearly printed with a single black color.
[0005]
As described in Japanese Patent Laid-Open No. 4-90673, when a black component of a predetermined amount or more is included in the vicinity of the target pixel, the target pixel is determined to be a chromatic color based on the average saturation. Even so, according to the method of correcting the determination to an achromatic color, it is possible to solve the problem of erroneously determining an achromatic pixel in a color blur area generated in an edge portion such as a black character as a chromatic color pixel.
[0006]
[Problems to be solved by the invention]
However, in the above-described conventional method, a pixel in a low-saturation halftone dot region that includes a black component on average may be erroneously determined as an achromatic pixel.
[0007]
A large halftone dot region is determined as a halftone dot by separately performing halftone dot detection, and is hit by a combination of C, M, Y, and K inks for color halftones. Therefore, the chromatic color pixel is mistaken for an achromatic color pixel. Even if it is determined, there is no inconvenience.
[0008]
However, halftone dots in small areas such as halftone characters (color or gray characters expressed by halftone dots) are difficult to extract halftone dot characteristics and cannot be expected to have sufficient halftone dot detection accuracy. A part that is determined to be a character is generated although it is a key part. And if that part is a low-saturation color that contains black to some extent, it contains a black component in the vicinity, so it is clearly a colored part, but it is judged as an achromatic color and black only As a result, the inconvenience that the colored characters are printed in black and low quality characters are output.
Therefore, the present inventor has determined that a black edge is located when a black region is localized or a black region and a white region are present across the target pixel within a predetermined region centered on the target pixel determined to be chromatic. We have developed a chromatic / achromatic region determination method and apparatus that determines a pixel that blurs the surrounding color and corrects the chromatic determination to an achromatic determination. According to this method and apparatus, it is possible to determine only the pixels that bleed around the black edge as an achromatic color without correcting to a halftone area having a low saturation including an average black component. it can.
[0009]
The present invention has been made for the purpose of further improving the above-described method and apparatus developed by the present inventors, such as a black edge having a larger color fringe width without increasing the hardware scale. An object of the present invention is to provide a color image color classification method and a color image processing apparatus capable of determining a color blur achromatic.
[0010]
[Means for Solving the Problems]
The color image color classification method according to the present invention is a color image color that determines, for each pixel, a chromatic color and an achromatic color of an input image signal from each component signal of the input color image signal obtained by digitally scanning a color original. In the classification method, when a black region is localized within a predetermined region centered on the pixel of interest, or when a black region and a white region exist with the pixel of interest in between, the pixel of interest is caused by a color shift at the time of scanner input. The pixel is determined to be a black edge color blur pixel and is determined to be an achromatic pixel, and the pixel around the target pixel is extended by a predetermined number of pixels from the target pixel in the direction from the black region to the opposite non-black region within the predetermined region. The pixel is determined to be achromatic.
[0011]
In order to realize the color image color classification method described above, the invention of the color image processing apparatus according to the present invention determines that the pixel of interest is a black edge color blur pixel due to color shift at the time of scanner input, and achromatic pixel A first determination means that is fixed to the first pixel, and a pixel around the target pixel that is extended from the target pixel by a predetermined number of pixels in a direction from the black region to the opposing non-black region in the predetermined region 2 determination means.
[0012]
With the above configuration of the present invention, when viewing a larger area including the target pixel, a larger color blur width without increasing the hardware scale such as an increase in the size of the line memory necessary for the determination process Chromatic color judgment due to color blurs such as black edges can be corrected to achromatic color judgments, and even if there are color blurs such as black edges when scanning originals when reading originals from color copiers, etc. These can be reproduced in black.
[0013]
Further, in the color image color classification method and color image processing apparatus according to the present invention, when the extension of the achromatic determination is performed in a predetermined direction, the color blur of the black edge is known when the direction in which the color blur is generated is known. By limiting the extension of the achromatic determination of the judgment pixel only to that direction, the halftone dot area that contains the black component on the average and that has been able to be chromatically determined in the past is not erroneously determined as achromatic. be able to.
[0014]
Further, in the color image color classification method and color image processing apparatus according to the present invention, when the number of pixels for achromatic determination extension is changed according to the magnification ratio of the original, the color of the black edge when the magnification ratio is high By increasing the number of pixels for the achromatic determination extension of the blur determination pixels, a halftone area with a low saturation that includes black components on average, which was previously chromatically determined when the scaling ratio is not high, is erroneously excluded. It is possible not to make the color determination.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
A preferred embodiment (hereinafter referred to as this embodiment) of a color image color classification method and a color image processing apparatus according to the present invention will be described below with reference to the drawings.
FIG. 4 shows a schematic block diagram of an embodiment of the present invention.
In FIG. 1, an RGB signal (8 bits each) as an input image signal is converted into a YMC signal (1 bit each) by a
[0016]
From the chromatic / achromatic color determination unit 2, a primary chromatic / achromatic color determination result is output to the correction unit 4 in units of pixels.
[0017]
The black edge color
[0018]
At this time, in the first determination unit 3a, when the black region is localized within a predetermined region centered on the target pixel, or when the black region and the white region exist with the target pixel in between, the target pixel is determined. It is determined that the pixel has a black edge color blur due to color shift at the time of scanner input.
[0019]
Further, the
[0020]
The correction unit 4 corrects the determination result to the achromatic color determination only in the case of the black edge color blur determination pixel or its extension pixel with respect to the pixel for which the chromatic color determination is performed by the chromatic / achromatic color determination unit 2. The chromatic / achromatic color determination result is determined and output from the correction unit. In addition, when the chromatic / achromatic color determination unit 2 determines that the chromatic color is not determined to be a black edge color blur pixel, the chromatic color determination is finalized. In addition, the pixel for which the achromatic color is determined by the chromatic / achromatic color determination unit 2 is determined to be the achromatic color determination regardless of whether the pixel is determined to be a black edge color blur pixel.
[0021]
The
[0022]
In this embodiment, whether the conversion from RGB signals (8 bits each) to YMC signals (1 bit each) is included in the hue of Y, R, M, B, C, or G for each pixel by the RGB signal. A chromatic color / achromatic color is determined for each hue by comparing the difference between the threshold value provided for each hue and the maximum and minimum RGB signal values. For example, when it is determined that the hue is included in Red, the chromatic color is determined by comparing the difference between the red threshold th_R and the maximum and minimum RGB signal values. As a result, if chromatic color is determined, Y = M = 1, C = 0. Similarly, when the hue is determined to be other hues, chromatic colors are determined using the threshold values for each hue (th_Y, th_M, th_B, th_C, th_G), and Y, M, C are determined according to the result and hue.
[0023]
Next, the first determination unit 3a of the black edge color
[0024]
FIG. 5 is a block diagram of the first determination means 3a for the above determination algorithm. In FIG. 5, reference numerals 11 to 14 are counters,
[0025]
The counter 11 has a pixel count of C = 1, a pixel count of M = 1, and a pixel count of Y = 1 in each of the divided areas A 1 and B 2 obtained by dividing a small area of 5 × 5 pixels centered on the target pixel as shown in FIG. 1 is counted, and the minimum count value (0LQ A1, 0LQ B1) and the maximum count value (0D [A1, 0D [B1) are obtained. Since C = M = Y = 1 for the black pixels, the minimum count values (0LQ A1, 0LQ B1) are almost equal to the number of black pixels in the divided areas A 1, B, and can be used as a scale for the black component. In addition, since C = M = Y = 0 in the white pixel, the value obtained by subtracting the maximum count value (0D [A1, 0D [B1) from the total number of pixels in the divided area (here, 15) is the divided area A. , B is approximately equal to the number of white pixels in B, and can be used as a measure of the white component.
[0026]
Similarly, the
[0027]
The
[0028]
The comparators 21 to 26 and the AND
[0029]
Summarizing the above description, horizontal (
Next, the 2nd determination means 3b is demonstrated.
[0030]
First, the
In the case of the present embodiment, the extension direction of the achromatic determination is a direction from one (black region) to the other (non-black region or white region) of the two-region divided patterns in FIGS. As shown, the pixel direction is any one of eight adjacent pixel directions of up, down, left, right, diagonal upper right, diagonal lower right, diagonal upper left, and diagonal lower left.
[0031]
Specifically, in the example of FIG. 11 corresponding to FIG. 6, the extension direction of the achromatic determination is downward. In this case, when the target pixel is determined to be achromatic, the adjacent pixel on the lower side is further determined to be achromatic. In addition to the target pixel determined to be blurred by the black edge color, the primary determination result of the chromatic / achromatic color determination unit 2 is forcibly determined by the correction unit in the next stage for the extended pixel as well. It is corrected to.
[0032]
The second determination means 3b extends the achromatic determination in a predetermined direction.
For example, when it is known that the direction in which large color bleeding occurs is limited to the sub-scanning direction (up or down), black is only applied when the extension direction is one of the two directions up or down. Extending the achromatic determination by edge color blur determination.
[0033]
Further, the second determination means 3b changes the number of pixels for extending the achromatic determination according to the magnification of the document.
For example, the number of pixels for achromatic determination extension can be set to 0 for magnification up to 200%, 1 for 300%, and 2 for 400%. The number of extended pixels is not limited to this, and may be fixed.
[0034]
As described above, the determination method (color image color classification method) in the case where the black region and the white region exist with the target pixel in between has been described. However, the case where the black region is localized in a predetermined region centered on the target pixel. Can also be performed by the same method.
[0035]
【The invention's effect】
According to the color image color classification method and the color image processing apparatus according to the present invention, the black region is localized within a predetermined region centered on the target pixel, or the black region and the white region exist with the target pixel interposed therebetween. In this case, the target pixel is determined to be a black edge color blur pixel due to color misalignment at the time of scanner input, and is determined to be an achromatic pixel, and attention is paid in the direction from the black region to the opposite non-black region within a predetermined region. Since the surrounding pixels of the target pixel extended by a predetermined number of pixels from the pixel are determined as achromatic, when the larger area including the target pixel is viewed, the size of the line memory necessary for the determination process increases. Without increasing the hardware scale, it is possible to correct chromatic color determination due to color blur such as a black edge with a larger color fringe width to achromatic color determination, and output a scanned original such as a color copier Oite, even if bleeding colors such as black edge when document scanning, it is possible to reproduce them in black monochrome without browned.
[0036]
Further, according to the color image color classification method and the color image processing apparatus according to the present invention, since the achromatic determination is extended in a predetermined direction, if the direction in which the color blur is generated is known, the black edge By limiting the extension of the achromatic determination of the color blur determination pixel only in that direction, the halftone area with low saturation that contains the black component on average, which was previously able to be determined as chromatic, is not erroneously determined as achromatic. Can be.
[0037]
In addition, according to the color image color classification method and the color image processing apparatus according to the present invention, the number of pixels for the extension of achromatic determination is changed according to the magnification of the document. By increasing the number of pixels that extend the achromatic determination of the edge color blur determination pixel, a halftone area with low saturation that includes black components on average, which was previously determined to be chromatic when the scaling ratio is not high, can be obtained. It is possible not to make an achromatic determination accidentally.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating an example of black pixel distribution in a halftone dot portion including black and having low saturation.
FIG. 2 is a diagram illustrating an example of black pixel distribution in a color blur portion of a black edge;
FIG. 3 is a diagram illustrating another example of a black pixel distribution in a black-bleeded portion (a portion in which a black edge is embedded);
FIG. 4 is a block diagram showing an embodiment of the present invention.
FIG. 5 is a block diagram of first determination means.
FIG. 6 is a diagram illustrating a first division pattern of a 5 × 5 pixel region.
FIG. 7 is a diagram illustrating a second division pattern of a 5 × 5 pixel region.
FIG. 8 is a diagram illustrating a third division pattern of a 5 × 5 pixel region.
FIG. 9 is a diagram illustrating a fourth division pattern of a 5 × 5 pixel region.
FIG. 10 is a diagram for explaining an extending direction of achromatic determination according to the present invention.
FIG. 11 is a diagram for explaining achromatic determination of a pixel extended downward by one pixel.
[Explanation of symbols]
1 color conversion unit 2 chromatic / achromatic
Claims (6)
注目画素を中心とする所定の画素領域内を、注目画素を含む1列分の画素を重なって含んで対称な2つの画素領域とに2分し、
2分された画素領域の少なくとも片方の画素領域が第1の閾値以上の黒成分が含まれる黒領域と判定され、かつ当該黒領域の黒成分と、対向する他方の画素領域の黒成分との比率が第2の閾値以下である場合、
または2分された領域の少なくとも片方が第1の閾値以上の黒成分が含まれる黒領域と判定され、かつ他方の対向領域が第3の閾値以上の白成分が含まれる白領域である場合に、
注目画素をスキャナ入力時の色ずれによる黒エッジの色にじみ画素と判定し、無彩色画素に確定するとともに、
所定の画素領域内で黒領域から対向する非黒領域へ向かう方向へ注目画素から所定の画素数だけ延長した注目画素の周辺の画素を無彩判定とすることを特徴とするカラー画像色分類方法。In a color image color classification method for determining, for each pixel, a chromatic color and an achromatic color of an input image signal from each component signal of the input color image signal obtained by digitally scanning a color original,
Dividing the predetermined pixel area centered on the target pixel into two symmetrical pixel areas that overlap and include one column of pixels including the target pixel ,
At least one of the bisected pixel regions is determined to be a black region including a black component equal to or greater than the first threshold, and the black component of the black region and the black component of the other pixel region facing each other If the ratio is less than or equal to the second threshold,
Alternatively, when at least one of the bisected areas is determined to be a black area including a black component equal to or greater than the first threshold, and the other facing area is a white area including a white component equal to or greater than the third threshold. ,
The pixel of interest is determined to be a black edge color blur pixel due to color misalignment at the time of scanner input, and determined as an achromatic pixel
Color image color classification method characterized in that a pixel surrounding a target pixel extended by a predetermined number of pixels from the target pixel in a direction from the black region to the opposing non-black region in the predetermined pixel region is determined as achromatic .
注目画素を中心とする所定の画素領域内を、注目画素を含む1列分の画素を重なって含んで対称な2つの画素領域とに2分し、
2分された画素領域の少なくとも片方の画素領域が第1の閾値以上の黒成分が含まれる黒領域と判定され、かつ当該黒領域の黒成分と、対向する他方の画素領域の黒成分との比率が第2の閾値以下である場合、
または2分された領域の少なくとも片方が第1の閾値以上の黒成分が含まれる黒領域と判定され、かつ他方の対向領域が第3の閾値以上の白成分が含まれる白領域である場合に、
注目画素をスキャナ入力時の色ずれによる黒エッジの色にじみ画素と判定し、無彩色画素に確定する第1の判定手段と、
所定の画素領域内で黒領域から対向する非黒領域へ向かう方向へ注目画素から所定の画素数だけ延長した注目画素の周辺の画素を無彩判定とする第2の判定手段とを有することを特徴とするカラー画像処理装置。In a color image processing apparatus that determines, for each pixel, a chromatic color and an achromatic color of an input image signal from each component signal of the input color image signal obtained by digitally scanning a color original.
Dividing the predetermined pixel area centered on the target pixel into two symmetrical pixel areas that overlap and include one column of pixels including the target pixel ,
At least one of the bisected pixel regions is determined to be a black region including a black component equal to or greater than the first threshold, and the black component of the black region and the black component of the other pixel region facing each other If the ratio is less than or equal to the second threshold,
Alternatively, when at least one of the bisected areas is determined to be a black area including a black component equal to or greater than the first threshold, and the other facing area is a white area including a white component equal to or greater than the third threshold. ,
A first determination unit that determines a pixel of interest as a black edge color blur pixel due to color misregistration at the time of scanner input, and confirms the pixel as an achromatic color pixel;
And a second determination unit configured to make achromatic determination of pixels around the target pixel extended by a predetermined number of pixels from the target pixel in a direction from the black region to the opposing non-black region in the predetermined pixel region. A featured color image processing apparatus.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001079486A JP4440487B2 (en) | 2001-03-19 | 2001-03-19 | Color image color classification method and color image processing apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001079486A JP4440487B2 (en) | 2001-03-19 | 2001-03-19 | Color image color classification method and color image processing apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002281335A JP2002281335A (en) | 2002-09-27 |
| JP4440487B2 true JP4440487B2 (en) | 2010-03-24 |
Family
ID=18935928
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001079486A Expired - Fee Related JP4440487B2 (en) | 2001-03-19 | 2001-03-19 | Color image color classification method and color image processing apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4440487B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5724377B2 (en) * | 2010-12-27 | 2015-05-27 | 株式会社リコー | Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium |
| JP5360131B2 (en) * | 2011-05-13 | 2013-12-04 | 富士ゼロックス株式会社 | Image processing apparatus and program |
| CN117894489A (en) * | 2024-01-18 | 2024-04-16 | 深圳云医创想科技有限公司 | A method and system for implementing MDT mode |
-
2001
- 2001-03-19 JP JP2001079486A patent/JP4440487B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2002281335A (en) | 2002-09-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101197919B (en) | Image forming apparatus and image quality improving method thereof | |
| JP3399486B2 (en) | Color image processing apparatus and method | |
| US8243330B2 (en) | Apparatus, method, and computer-readable recording medium for performing color material saving process | |
| JPH0722330B2 (en) | Image region identification method for image processing apparatus | |
| US7880927B2 (en) | Image forming apparatus, image forming method, program, and recording medium | |
| KR100994644B1 (en) | Image processing apparatus and method | |
| JPH1127542A (en) | Color type discriminator | |
| US6972866B1 (en) | Detecting process neutral colors | |
| JP3599367B2 (en) | Image processing apparatus and method | |
| JP4440487B2 (en) | Color image color classification method and color image processing apparatus | |
| JP3767878B2 (en) | Image processing apparatus with output correction inside character | |
| JP3847565B2 (en) | Image processing apparatus, image forming apparatus including the same, and image processing method | |
| JP3224172B2 (en) | Color image processing equipment | |
| JPH01200964A (en) | Apparatus for forming color image | |
| JPH078007B2 (en) | Color image processing method | |
| JP2002232704A (en) | Image processing apparatus and image forming apparatus | |
| JP3449502B2 (en) | Image processing device | |
| JPH0541796A (en) | Copying machine | |
| JP3944032B2 (en) | Image processing apparatus and method | |
| JP3767210B2 (en) | Document type determination device and image processing device | |
| JP3153221B2 (en) | Color image processing equipment | |
| JP3715747B2 (en) | Image processing apparatus and image processing method | |
| JP3064896B2 (en) | Image processing device | |
| JP4228515B2 (en) | Image processing device | |
| JPH09247481A (en) | Image processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080317 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090527 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090609 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090728 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20100105 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100107 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130115 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140115 Year of fee payment: 4 |
|
| LAPS | Cancellation because of no payment of annual fees |