JP2004320447A - Image processing apparatus, image processing method, and program for execution by computer - Google Patents

Image processing apparatus, image processing method, and program for execution by computer Download PDF

Info

Publication number
JP2004320447A
JP2004320447A JP2003111601A JP2003111601A JP2004320447A JP 2004320447 A JP2004320447 A JP 2004320447A JP 2003111601 A JP2003111601 A JP 2003111601A JP 2003111601 A JP2003111601 A JP 2003111601A JP 2004320447 A JP2004320447 A JP 2004320447A
Authority
JP
Japan
Prior art keywords
smoothing
color
signal
image signal
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2003111601A
Other languages
Japanese (ja)
Other versions
JP4141310B2 (en
Inventor
Kazunari Tonami
一成 戸波
Etsuro Morimoto
悦朗 森本
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 JP2003111601A priority Critical patent/JP4141310B2/en
Publication of JP2004320447A publication Critical patent/JP2004320447A/en
Application granted granted Critical
Publication of JP4141310B2 publication Critical patent/JP4141310B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus capable of applying the chromatic / achromatic discrimination of a color image signal to various images with high accuracy. <P>SOLUTION: The image processing apparatus is provided with: a scanner 100 for receiving a color image signal of a color original; a smoothing section 103 for smoothing the color image signal received from the scanner 100; an achromatic color discrimination section 105 for discriminating an achromatic color region of the color image signal smoothed by the smoothing section 103; a character separation section 101 for identifying a character region of the color image signal received from the scanner 100; and a smoothing filter selection section 102 for switching the smoothing strength of the smoothing section 103 in response to the result of identification identified by the character separation section 101. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、画像処理装置、画像処理方法、およびコンピュータが実行するためのプログラムに関し、詳細には、カラー画像信号の有彩/無彩を判定する画像処理装置、画像処理方法、およびコンピュータが実行するためのプログラムに関する。
【0002】
【従来の技術】
カラー複写機等の画像形成装置では、文字・線画の鮮鋭度を向上させるために、カラースキャナで読取られた画像に対してエッジ強調処理を行なう。このエッジ強調処理の方法には各種の方法があるが、一般的に、黒文字などの無彩色領域に対しては、色付きを発生させないために、色差成分を強調せずに、輝度成分のみを強調することが望ましい。他方、色文字などの有彩色領域に対しては、輝度成分のみを強調すると色が濁ってしまうため、輝度成分の強調を抑えることが望ましい。このように、画像が無彩色領域であるか否かでエッジ強調の方法が変わるため、画像の無彩色領域を判定する必要が生じる。
【0003】
例えば、特許文献1では、平滑化された入力カラー画像信号から無彩色領域の判定を行なう技術が開示されている。同文献によれば、これにより、スキャナ読み取り時に色ずれが起こった場合にも、白地上の黒文字エッジを無彩色領域と判定することができる旨が記載されている。
【0004】
しかしながら、かかる方法では、白地上の黒文字エッジに対する色ずれの影響は緩和されるが、白地上の色細線では平滑化により下地の無彩画素の影響を受けて彩度が下がりるため、無彩色と誤って判定され易くなるという問題がある。
【0005】
仮に、スキャナ読み取り時の色ずれが小さければ、平滑化を弱くすることでこれらをある程度両立させることが可能である。しかしながら、印刷原稿のように網点で構成されている画像では、網点の起伏が平滑化された状態でないと、正確な有彩/無彩判定ができない。例えば、CMY3色からなるグレー網点は巨視的には無彩色であるが、平滑化が弱い場合には、画素毎に見ると彩度が高くなるため、有彩色と判定されてしまう。また、単色網点では、谷の部分が白画素に近いため、平滑化が弱い場合には彩度が非常に低くなり、有彩色の網点画像でも無彩色と判定されてしまう。網点の起伏を平滑化するためにはある程度強い平滑化が必要であり、結果として、白地上の色細線と網点画像の両方を高精度に有彩/無彩判定することはできない。
【0006】
また、特許文献2では、細線画素判定を行ない、細線画素については、注目画素を通り細線を横切る方向の画素列に対して、色差ベクトルの累積ベクトルの大きさを用いて有彩無彩の判定を行なう技術が開示されている。同文献では、これにより、白地上黒文字エッジ、白地上細線、網点画像に対して高精度な有彩/無彩判定を行なうことができる旨が記載されている。
【0007】
しかしながら、同文献の方法では、細線を横切る5画素の色差ベクトルを累計するため、有彩色上の黒細線に対しては、下地の有彩画素の色差ベクトルも累計されてしまい、有彩色と誤って判定されてしまうという問題がある。
【0008】
【特許文献1】
特許第3048158号公報
【特許文献2】
特開2002−271646号公報
【0009】
【発明が解決しようとする課題】
本発明は、上記に鑑みてなされたものであり、各種の画像に対して、高精度にカラー画像信号の有彩/無彩判定を行なうことが可能な画像処理装置、画像処理方法、およびコンピュータが実行するためのプログラムを提供することを目的とする。
【0010】
【課題を解決するための手段】
上記課題を解決するために、請求項1にかかる発明は、カラー画像信号を入力する画像入力手段と、前記画像入力手段から入力されるカラー画像信号を平滑化する平滑化手段と、前記平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、前記画像入力手段から入力されるカラー画像信号の画像特徴を識別する画像特徴識別手段と、前記画像特徴識別手段で識別された画像特徴に応じて、前記平滑化手段の平滑化の強度を切り換える切換手段と、を備えたことを特徴とする。
【0011】
上記発明によれば、画像入力手段はカラー画像信号を入力し、平滑化手段は、画像入力手段から入力されるカラー画像信号を平滑化し、無彩色領域判定手段は、平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定し、画像特徴識別手段は、画像入力手段から入力されるカラー画像信号の画像特徴を識別し、切換手段は、画像特徴識別手段で識別された画像特徴に応じて平滑化手段の平滑化の強度を切り換える。
【0012】
また、請求項2にかかる発明は、請求項1にかかる発明において、前記画像特徴識別手段は、前記画像特徴として前記カラー画像信号の文字領域を識別することを特徴とする。
【0013】
上記発明によれば、画像特徴識別手段は、画像特徴としてカラー画像信号の文字領域を識別する。
【0014】
また、請求項3にかかる発明は、請求項1にかかる発明において、前記画像特徴識別手段は、前記画像特徴として前記カラー画像信号の細線領域を識別することを特徴とする。
【0015】
上記発明によれば、画像特徴識別手段は、画像特徴としてカラー画像信号の細線領域を識別する。
【0016】
また、請求項4にかかる発明は、画像読取手段で読み取られたカラー原稿のカラー画像信号の無彩/有彩を判定する画像処理装置において、前記画像読取手段で読み取られたカラー原稿のカラー画像信号を平滑化する平滑化手段と、前記平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、前記画像読取手段の色ずれ度合いを示す色ずれ度合い信号に応じて、前記平滑化手段の平滑化の強度を切り換える切換手段と、を備えたことを特徴とする。
【0017】
上記発明によれば、平滑化手段は、画像読取手段で読み取られたカラー原稿のカラー画像信号を平滑化し、無彩色領域判定手段は、平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定し、切換手段は、画像読取手段の色ずれ度合いを示す色ずれ度合い信号に応じて、平滑化手段の平滑化の強度を切り換える。
【0018】
また、請求項5にかかる発明は、画像読取手段で指定された倍率で読み取られたカラー原稿のカラー画像信号の無彩/有彩を判定する画像処理装置において、前記カラー画像信号を平滑化する平滑化手段と、前記平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、前記倍率に応じて、前記平滑化手段の平滑化の強度を切り換える切換手段と、を備えたことを特徴とする。
【0019】
上記発明によれば、平滑化手段はカラー画像信号を平滑化し、無彩色領域判定手段は、平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定し、切換手段は、読取倍率に応じて、平滑化手段の平滑化の強度を切り換える。
【0020】
また、請求項6にかかる発明は、請求項5にかかる発明において、前記切換手段は、前記倍率が大きいほど、前記平滑化手段の平滑化の強度を高くすることを特徴とする。
【0021】
上記発明によれば、前記切換手段は、前記倍率が大きいほど、前記平滑化手段の平滑化の強度を高くする。
【0022】
また、請求項7にかかる発明は、カラー画像信号を入力する画像入力手段と、前記画像入力手段から入力されるカラー画像信号の注目画素を含む所定領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力する彩度算出手段と、前記彩度算出手段から出力される彩度信号に基づいて、前記入力手段から入力されるカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、を備えたことを特徴とする。
【0023】
上記発明によれば、画像入力手段はカラー画像信号を入力し、彩度算出手段は、画像入力手段から入力されるカラー画像信号の注目画素を含む所定領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力し、無彩色領域判定手段は、画像入力手段から入力されるカラー画像信号の無彩色領域を判定する。
【0024】
また、請求項8にかかる発明は、請求項7にかかる発明において、彩度算出手段は、カラー画像信号の注目画素を含む所定領域内で輝度が所定値以下である画素のうち、最も彩度が低い画素の彩度を当該注目画素の彩度信号として出力する。
【0025】
上記発明によれば、彩度算出手段は、カラー画像信号の注目画素を含む所定領域内で輝度が所定値以下である画素のうち、最も彩度が低い画素の彩度を当該注目画素の彩度信号として出力する。
【0026】
また、請求項9にかかる発明は、請求項7にかかる発明において、前記彩度算出手段は、前記カラー画像信号の注目画素を含む所定画素領域内で輝度が最も低い画素の彩度を注目画素の彩度信号として出力することを特徴とする。
【0027】
上記発明によれば、彩度算出手段は、前記カラー画像信号の注目画素を含む所定画素領域内で輝度が最も低い画素の彩度を注目画素の彩度信号として出力する。
【0028】
また、請求項10にかかる発明は、カラー画像信号を入力する入力工程と、前記入力されるカラー画像信号を平滑化する平滑化工程と、前記平滑化工程で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、前記入力されるカラー画像信号の画像特徴を識別する画像特徴識別工程と、前記判定された画像特徴に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を含むことを特徴とする。
【0029】
上記発明によれば、カラー画像信号を入力し、入力されるカラー画像信号を平滑化し、平滑化されたカラー画像信号の無彩色領域を判定し、入力されるカラー画像信号の画像特徴を識別し、識別された画像特徴に応じて平滑化の強度を切り換える。
【0030】
また、請求項11にかかる発明は、画像入力手段から入力されるカラー画像信号を平滑化フィルタを用いて平滑化する平滑化工程と、前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、前記画像入力手段の色ずれ度合いを示す色ずれ度合い信号に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を含むことを特徴とする。
【0031】
上記発明によれば、画像入力手段から入力されるカラー画像信号を平滑化し、平滑化されたカラー画像信号の無彩色領域を判定し、画像入力手段の色ずれ度合いを示す色ずれ度合い信号に応じて前記平滑化の強度を切り換える。
【0032】
また、請求項12にかかる発明は、画像入力手段で、指定される倍率で読み取られて入力されるカラー画像信号を平滑化する平滑化工程と、前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、前記倍率に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を含むことを特徴とする。
【0033】
上記発明によれば、画像入力手段で指定される倍率で読み取られて入力されるカラー画像信号を平滑化し、平滑化されたカラー画像信号の無彩色領域を判定し、前記倍率に応じて前記平滑化の強度を切り換える。
【0034】
また、請求項13にかかる発明は、画像入力手段から入力されるカラー画像信号の注目画素を含む所定画素領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力する彩度算出工程と、前記彩度信号に基づいて、前記カラー画像信号の無彩色領域を判定する無彩色領域判定工程と、を含むことを特徴とする。
【0035】
上記発明によれば、画像入力手段から入力されるカラー画像信号の注目画素を含む所定画素領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力し、彩度信号に基づいて、前記カラー画像信号の無彩色領域を判定する。
【0036】
また、請求項14にかかる発明は、コンピュータが実行するためのプログラムにおいて、カラー画像信号を入力する入力工程と、前記入力されるカラー画像信号を平滑化する平滑化工程と、前記平滑化工程で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、前記入力されるカラー画像信号の画像特徴を識別する画像特徴識別工程と、前記判定された画像特徴に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、をコンピュータに実行させることを特徴とする。
【0037】
上記発明によれば、コンピュータでプログラムを実行することにより、カラー画像信号を入力する入力工程と、前記入力されるカラー画像信号を平滑化する平滑化工程と、前記平滑化工程で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、前記入力されるカラー画像信号の画像特徴を識別する画像特徴識別工程と、前記判定された画像特徴に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を実現する。
【0038】
また、請求項15にかかる発明は、コンピュータが実行するためのプログラムにおいて、画像入力手段から入力されるカラー画像信号を平滑化フィルタを用いて平滑化する平滑化工程と、前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、前記画像入力手段の色ずれ度合いを示す色ずれ度合い信号に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、をコンピュータに実行させることを特徴とする。
【0039】
上記発明によれば、コンピュータでプログラムを実行することにより、画像入力手段から入力されるカラー画像信号を平滑化フィルタを用いて平滑化する平滑化工程と、前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、前記画像入力手段の色ずれ度合いを示す色ずれ度合い信号に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を実現する。
【0040】
また、請求項16にかかる発明は、コンピュータが実行するためのプログラムにおいて、画像入力手段でカラー原稿が指定される倍率で読み取られて入力されるカラー画像信号を平滑化する平滑化工程と、前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、前記倍率に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、をコンピュータに実行させることを特徴とする。
【0041】
上記発明によれば、コンピュータでプログラムを実行することにより、画像入力手段でカラー原稿が指定される倍率で読み取られて入力されるカラー画像信号を平滑化する平滑化工程と、前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、前記倍率に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を実現する。
【0042】
また、請求項17にかかる発明は、コンピュータが実行するためのプログラムにおいて、画像入力手段から入力されるカラー画像信号の注目画素を含む所定画素領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力する彩度算出工程と、前記彩度信号に基づいて、前記カラー画像信号の無彩色領域を判定する無彩色領域判定工程と、をコンピュータに実行させることを特徴とする。
【0043】
上記発明によれば、コンピュータでプログラムを実行することにより、画像入力手段から入力されるカラー画像信号の注目画素を含む所定画素領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力する彩度算出工程と、前記彩度信号に基づいて、前記カラー画像信号の無彩色領域を判定する無彩色領域判定工程と、を実現する。
【0044】
【発明の実施の形態】
以下、図面を参照して、本発明にかかる画像処理装置、画像処理方法、およびコンピュータが実行するためのプログラムの好適な実施の形態を、(実施の形態1)、(実施の形態2)、(実施の形態3)、(実施の形態4)、(実施の形態5)の順に詳細に説明する。
【0045】
(実施の形態1)
実施の形態1にかかる画像処理装置を図1〜図3を参照して説明する。図1は、実施の形態1にかかる画像処理装置の構成を示すブロック図である。実施の形態1にかかる画像処理装置は、図1に示すように、スキャナ100と、文字分離部101と、平滑化フィルタ選択部102と、平滑化部103と、彩度算出部104と、無彩色判定部105とを備えている。
【0046】
スキャナ100は、カラー原稿を読み取ってデジタルのRGB信号を文字分離部101および平滑化部103に出力する。文字分離部101は、スキャナ100から入力されるRGB信号から文字領域を抽出して、文字領域かそれ以外の領域かを示す属性信号(文字領域の場合「1」、他の領域の場合「0」)を平滑化フィルタ選択部102に出力する。ここでの文字分離の方法は、例えば、「文字/絵柄(網点,写真)混在画像の像域分離方式」(電子情報通信学会論文誌 Vol.J75−D−II No.1 pp.39−47 1992年1月)に記載された技術など公知の技術を用いることができる。
【0047】
平滑化フィルタ選択部102は、文字分離部101から入力される属性信号に応じて平滑化部103で使用する平滑化フィルタを選択して、その選択信号を平滑化部103に出力する。図2は平滑化部103で使用する平滑化フィルタの一例を示す図である。同図(a)は、属性信号が文字領域を示す場合に選択する平滑化フィルタであり、同図(b)は、属性信号がその他の領域を示す信号の場合に選択する平滑化フィルタである。
【0048】
平滑化部103は、平滑化フィルタ選択部102から入力される選択信号に応じて、平滑化フィルタ選択部102で選択された平滑化フィルタを用いて、スキャナ100から入力されるRGB信号を平滑化して、平滑化したRGB信号Sm_RGBを彩度算出部104に出力する。このように、平滑化フィルタ選択部102は、平滑化部103のRGB信号に対する平滑化の強度(=度合い)の切換を行う。
【0049】
彩度算出部104は、平滑化部103から入力される平滑化されたRGB信号Sm_RGBに基づいて、彩度信号Sを算出して無彩色判定部105に出力する。彩度信号Sは、下式(1)により算出する。
【0050】
彩度信号S=MAX(R,G,B)−MIN(R,G,B)・・・(1)
【0051】
無彩色判定部105は、彩度算出部104から入力される彩度信号Sに基づいて、各画素のRGB信号が無彩色領域か否かを判定して無彩色領域/有彩色領域を示す無彩色判定信号(無彩色領域「1」、有彩色領域「0」)を出力する。この無彩色領域/有彩色領域の判定は下式(2)により行う。
【0052】
S>Thrのとき有彩領域
S≦Thrのとき無彩領域 ・・・(2)
ただし、Thrは定数
【0053】
図3は、図2の平滑化フィルタの周波数特性を示す図であり、図3(a)は、図3(a)の平滑化フィルタの周波数特性、図3(b)は、図2(b)の平滑化フィルタの周波数特性を示している。図3において、横軸は周波数、縦軸はgainを示している。
【0054】
図3に示すように、文字領域で選択されるフィルタ(a)は、その他の領域で選択されるフィルタ(b)に比して、平滑化度合いの弱いフィルタとしている。これは、文字領域に対しては、スキャナ読み取り時の黒文字エッジの色ずれを緩和できる程度の平滑化フィルタであれば良く、一般的に、あまり強い平滑化を行なう必要はないからである。(a)に示すような平滑化フィルタの場合は、細い色文字(白地上の色細線)も下地の影響をあまり受けないため、有彩領域として判定することができる。
【0055】
他方、その他の領域には網点画像が含まれるため、ある程度強い平滑化を行なわなければ、網点の起伏を平滑化することはできない。そのため、平滑化度合いの強い(b)に示すようなフィルタを用いることで、網点画像に対しても正確な有彩/無彩判定を行なうことができる。
【0056】
以上説明したように、実施の形態1の画像処理装置によれば、文字領域か否かを示す属性信号に基づいて平滑化フィルタを選択してRGB信号の平滑化を行ない、その平滑化したRGB信号に基づいて彩度判定を行なうこととしたので、各種の画像に対して、高精度な有彩/無彩判定を行なうことが可能となる。
【0057】
なお、属性情報は文字領域か否かを示す信号でなく、網点領域であるか否かを示す信号でも同じ効果を得ることができる。この場合は、網点以外の領域を文字領域と判定する。
【0058】
また、彩度信号Sは、上記式(1)以外の算出式によって算出することにしても良い。また、無彩色判定部105では、有彩/無彩の2値的な判定でなく、有彩/中間彩度/無彩といった多値的な判定を行なうことにしても良い。
【0059】
ここで、無彩色判定部105で、有彩/中間彩度/無彩の3段階の判定を行う方法を説明する。無彩色判定部105は、彩度算出部104からの彩度信号Sに基づいて、下式(4)により、有彩/中間彩度/無彩の判定を行う。
【0060】
S<Thr1 のとき 無彩領域
Thr1≦S<Thr2のとき 中間彩度領域
Thr2≦S のとき 有彩領域 ・・・(4)
ただし、Thr1,Thr2は定数であり、Thr1<Thr2である。
【0061】
(実施の形態2)
実施の形態2にかかる画像処理装置を図4を参照して説明する。実施の形態1の画像処理装置では、白地上の黒文字エッジ、白地上の色細線、網点画像に対して高精度な有彩/無彩判定を行なうことが可能であるが、有彩色上の黒細線は文字領域と判定されずに強い平滑化が行なわれて黒細線が有彩と判定されてしまうことがある。また、実施の形態1の画像処理装置では、スキャナ読み取り時の色ずれが大きい場合には、文字領域に対する平滑化フィルタの平滑化度合いを強める必要があるため、その場合には白地上の色細線が無彩色領域と誤判定されやすくなってしまう。
【0062】
そこで、実施の形態2にかかる画像処理装置では、画像の細線領域を検出して、色ずれや下地の影響を受けずに無彩色判定を精度良く行う構成としたものである。
【0063】
図4は、実施の形態2にかかる画像処理装置の構成を示すブロック図である。図4において、図1と同等機能を有する部位には同一符号を付し、共通する部分の説明は省略し、異なる構成についてのみ説明する。実施の形態2にかかる画像処理装置は、図4に示すように、実施の形態1(図1)の文字分離部101の替わりに細線検出部201を使用するものである。
【0064】
細線検出部201は、スキャナ100からRGB信号が入力されると、RGB信号から細線領域を検出して、細線領域であるかその他の領域であるかを示す属性信号(「1」:細線領域、「0」:他の領域)を平滑化フィルタ選択部102に出力する。
【0065】
細線検出部201の細線領域の具体的な判定方法を図5を参照して説明する。図5は、細線検出フィルタの一例を示す図である。
【0066】
細線検出部201は、まず、図5(a)〜(c)に示す細線検出フィルタを用いて、縦・横・斜めの各方向のエッジ量を算出する。ここで、(c)のフィルタは右下がりの斜め線に対しては正の値、左下がりの斜め線に対しては負の値をとるので、(c)のフィルタに対してのみエッジ量を算出した後に絶対値を算出する。つぎに、細線検出部201は、(a)〜(c)のエッジ量の最大エッジ量を算出し、算出した最大エッジ量が所定の閾値以上であれば、その画素を細線領域であると判定し、最大エッジ量が所定の閾値未満の場合は細線以外の領域と判定する。
【0067】
平滑化フィルタ選択部102は、細線検出部201から入力される細線領域かその他の領域であるかを示す属性信号に基づいて、平滑化部103で使用する平滑化フィルタを選択してその選択信号を平滑化部103に出力する。具体的には、細線領域の場合には、図2(a)の平滑化フィルタ、細線以外の領域の場合には図2(b)の平滑化フィルタを選択する。
【0068】
平滑化部103は、平滑化フィルタ選択部102から入力される選択信号に応じて、平滑化フィルタ選択部102で選択された平滑化フィルタを用いて、スキャナ100から入力されるRGB信号を平滑化して、平滑化したRGB信号Sm_RGBを彩度算出部104に出力する。
【0069】
この後は、実施の形態1と同様に、彩度算出部104は、平滑化部103から入力される平滑化されたRGB信号Sm_RGBに基づいて、彩度信号Sを算出して無彩色判定部105に出力する。そして、無彩色判定部105は、彩度算出部104から入力される彩度信号Sに基づいて、各画素の画像データが無彩色領域か有彩色領域かを判定して無彩色領域か有彩色領域かを示す無彩色判定信号を出力する。
【0070】
以上説明したように、本実施の形態2の画像処理装置では、細線領域である否かに応じて平滑化フィルタを切り替えているので、黒文字エッジに対しては平滑化の度合いの強い平滑化フィルタ(図2(b)の平滑化フィルタ)を適用することができ、スキャナ読み取り時の色ずれが大きい場合にも黒文字エッジを正確に無彩判定することが可能となる。また、白地上の色細線や有彩色上の黒細線は、細線領域として検出されるため、平滑化度合いの弱い平滑化フィルタ(図2(a)の平滑化フィルタ)を適用することができ、下地の影響を受けずに正確な有彩/無彩判定を行うことが可能となる。
【0071】
なお、属性情報を細線領域か否かという2値的な信号ではなく、細線の程度を示す多値的な信号として、多段階に平滑化フィルタを切り替えることにしても良い。
【0072】
また、細線検出は、RGB信号の全ての信号を使用しないで、G信号のみを用いた検出やR信号とG信号を平均化した信号を用いて検出することにしても良い。さらに、本実施の形態1のような細線検出フィルタを用いた細線検出ではなく、パターンマッチングを用いた細線検出など、その他の方法を用いても良い。
【0073】
ここで、細線検出部201が、パターンマッチングを用いた細線検出を行う場合を説明する。図6は、細線検出に用いるマッチングパターンの一例を示している。細線検出部201は、RGB各信号を所定の閾値で2値化し、図6(a)〜(d)に示すマッチングパターンの少なくとも1つに一致した場合には細線と判定する。
【0074】
(実施の形態3)
実施の形態3にかかる画像処理装置を図7〜図9を参照して説明する。実施の形態1,2では、画像特徴に応じて平滑化フィルタを選択して、スキャナ読み取り時の色ずれの影響を緩和し、正確な有彩/無彩判定を行なっている。しかしながら、スキャナの読み取り時の色ずれ度合いは機器によって異なるため、それぞれの機器のスキャナの色ずれ度合いに応じて、平滑化フィルタを切り替えることが望ましい。
【0075】
そこで、実施の形態3では、スキャナの色ずれ度合いに応じて平滑化フィルタを切り換える構成について説明する。図7は、実施の形態3にかかる画像処理装置の構成を示すブロック図である。図7において、図1と同等機能を有する部位には同一符号を付し、共通する部分の説明は省略し、異なる構成についてのみ説明する。実施の形態3にかかる画像処理装置は、図7に示すように、実施の形態1(図1)の文字分離部101の替わりに色ずれ度合い算出部301を使用したものである。
【0076】
色ずれ度合い算出部301は、スキャナ100の読取時の色ずれの度合いを示す色ずれ度合い信号を生成して、平滑化フィルタ選択部102に出力する。ここで、スキャナの色ずれ度合いの測定方法の一例を図8を参照して説明する。図8は、スキャナの色ずれ度合いの測定方法を説明するためのフローチャートである。
【0077】
図8において、まず、測定チャートをスキャナ100で読み込んでデジタルのRGB信号を入力する(ステップS1)。この測定チャートは、黒文字エッジ部分の色ずれ量を測定するためのものであるので、黒単色の太線が入っているような画像であれば如何なるチャートでも良い。
【0078】
つぎに、色ずれ度合い算出部301は、この測定チャートのRGB信号の各画素に対して、彩度算出部104で用いる彩度算出式(上記式(1)など)を用いて彩度を算出する(ステップS2)。そして、色ずれ度合い算出部301は、RGB信号の全画素中の最大彩度Smaxを算出し(ステップS3)、この最大彩度Smaxから色ずれ度合いを示す色ずれ度合い信号を生成する(ステップS4)。
【0079】
色ずれ度合い信号としては、2値の信号(「0」:色ずれ小、「1」:色ずれ大)を出力する場合には、下式(5)により色ずれ度合い信号を算出する。
【0080】
Smax<Thrのとき 色ずれ度合い=0(色ずれ小)
Smax≧Thrのとき 色ずれ度合い=1(色ずれ大) ・・・(5)
ただし、Thrは定数
【0081】
なお、色ずれ度合い信号の算出は、スキャナ100で画像を読み込む毎に毎回行う必要はなく、特別なモードを設けて、当該モードで工場出荷時や週一/または月一等で行うことにしても良い。
【0082】
平滑化フィルタ選択部102は、色ずれ度合い算出部301から入力される色ずれ度合い信号に基づいて、平滑化部103で使用する平滑化フィルタを選択して、する。具体的には、平滑化フィルタ選択部102は、スキャナ色ずれ度合いが大きい場合には、平滑化度合いの大きなフィルタ(図2(a)のフィルタ)を選択し、スキャナ色ずれ度合いが小さい場合には、平滑化度合いの小さなフィルタ(図2(b)のフィルタ)を選択する。
【0083】
平滑化部103は、平滑化フィルタ選択部102から入力される選択信号に応じて、平滑化フィルタ選択部102で選択された平滑化フィルタを用いて、スキャナ1から入力されるRGB信号を平滑化して、平滑化したRGB信号Sm_RGBを彩度算出部104に出力する。
【0084】
この後は、実施の形態1と同様に、彩度算出部104は、平滑化部103から入力される平滑化されたRGB信号Sm_RGBに基づいて、彩度信号Sを算出して無彩色判定部105に出力する。そして、無彩色判定部105は、彩度算出部104から入力される彩度信号Sに基づいて、各画素のRGB信号が無彩色領域か有彩色領域かを判定して無彩色領域/有彩色領域を示す無彩色判定信号(無彩色領域「1」、有彩色領域「0」)を出力する。
【0085】
以上説明したように、実施の形態3によれば、スキャナの色ずれ度合いに応じた平滑化フィルタを用いることができるので、スキャナの色ずれ度合いの大小に拘わらず正確な有彩/無彩判定を行なうことが可能となる。
【0086】
なお、本実施の形態3では、画像処理装置にスキャナを搭載して、当該搭載されたスキャナの色ずれ度合いに応じて、平滑化フィルタを切り換える構成としたが、外部装置からRGB信号が入力される場合にも本発明は適用可能である。この場合は、外部装置からRGB信号と色ずれ度合い信号を入力する構成とする。
【0087】
また、色ずれ度合い算出部301では、上述したような、色ずれの度合い大/色ずれの度合い小といった2値的な判定でなく、色ずれの度合い大/色ずれの度合い中/色ずれの度合い小といった多値的な判定を行なうことにしても良い。
【0088】
ここで、色ずれ度合い算出部301で、色ずれの度合い大/色ずれの度合い中/色ずれの度合い小の3段階の判定を行う方法を説明する。色ずれ度合い算出部301は、3段階の色ずれ度合い信号(「0」:色ずれ小、「1」:色ずれ中、「2」:色ずれ大)を下式(6)により算出する。
【0089】

Figure 2004320447
ただし、Thr1,Thr2は定数でThr1<Thr2
【0090】
なお、実施の形態2の細線検出に応じて平滑化フィルタを選択する構成と、本実施の形態4のスキャナ色ずれ度合いによる平滑化フィルタを選択する構成とを組み合わせた構成とすることにしても良い。図9は、細線検出に応じて平滑化フィルタを選択する構成と、本実施の形態4のスキャナ色ずれ度合いによる平滑化フィルタを選択する構成とを組み合わせた画像処理装置の構成を示す図である。
【0091】
この場合、平滑化フィルタ選択部102では、色ずれ度合い信号が3段階の信号であれば、細線領域と細線以外の領域に対する平滑化フィルタの組を3組保持しておき、色ずれ度合い信号に応じてその中から1組の平滑化フィルタを選択し、さらに細線か細線以外の領域かで、平滑化部103で用いる平滑化フィルタを選択する。
【0092】
(実施の形態4)
実施の形態4にかかる画像処理装置を図10〜図12を参照して説明する。カラースキャナなどで画像データを読取る際には、拡大または縮小して読取る場合がある。そこで、実施の形態4では、拡大または縮小して読取られた画像に対しても正確な有彩/無彩判定を行なう構成について説明する。
【0093】
図10は、実施の形態4にかかる画像処理装置の構成を示すブロック図である。図10において、図1と同等機能を有する部位には同一符号を付し、共通する部分の説明は省略し、異なる構成についてのみ説明する。
【0094】
スキャナ100によりカラー原稿が指定された読み取り倍率で読取られ、RGB信号として入力される。平滑化フィルタ選択部102は、指定された読み取り倍率に応じて平滑化部103で使用する平滑化フィルタを選択する。
【0095】
平滑化部103は、平滑化フィルタ選択部102で選択された平滑化フィルタを用いて、入力されるスキャナ等で読み取られたRGB信号を平滑化して、平滑化したRGB信号Sm_RGBを彩度算出部104に出力する。
【0096】
この後は、実施の形態1と同様に、彩度算出部104は、平滑化部103から入力される平滑化されたRGB信号Sm_RGBに基づいて、彩度信号Sを算出して無彩色判定部105に出力する。そして、無彩色判定部105は、彩度算出部104から入力される彩度信号Sに基づいて、各画素の画像データが無彩色領域か有彩色領域かを判定して無彩色領域/有彩色領域を示す無彩色判定信号(無彩色領域の場合「1」、有彩色領域の場合「0」)を出力する。
【0097】
図11は、平滑化部103で使用される平滑化フィルタの一例を示す図である。平滑化フィルタ選択部102は、読み取り倍率が75%未満の場合は、(a)の平滑化フィルタ、読み取り倍率が75%以上125%未満の場合は、(b)の平滑化フィルタ、読み取り倍率が125%以上の場合は(c)の平滑化フィルタを選択する。
【0098】
縮小して読取る場合には、等倍時と同じ平滑化フィルタを使用すると、下地の影響が大きくなり細線に対して正確な判定を行うことができない。そこで、縮小時には、平滑化度合いの小さいフィルタを使用する。これに対して、拡大して読取る場合には、色ずれも大きくなる可能性があるため、平滑化度合いの大きなフィルタを使用する。
【0099】
なお、本実施の形態4では、画像処理装置にスキャナを搭載して、当該搭載されたスキャナの読み取り倍率に応じて、平滑化フィルタを切り換える構成としたが、外部装置からRGB信号が入力される場合にも本発明は適用可能である。その場合は、外部装置からRGB信号とスキャナの読み取り倍率を入力する構成とする。
【0100】
なお、スキャナで読み取り時に副走査方向のみ変倍して読み取るような場合には、図12に示すような副走査方向のみ平滑化の度合いが変わるフィルタを使用することにすれば良い。
【0101】
(実施の形態5)
実施の形態5にかかる画像処理装置を図13〜図15を参照して説明する。実施の形態5では、画像信号を平滑化をせずにその有彩/無彩判定を行なう構成について説明する。
【0102】
図13は、実施の形態5にかかる画像処理装置の構成を示すブロック図である。図13において、図1と同等機能を有する部位には同一符号を付し、共通する部分の説明は省略し、異なる構成についてのみ説明する。
【0103】
RGB→YUV変換部501は、スキャナ100から入力されるRGB画像データを輝度色差信号であるYUV信号に変換して、彩度算出部104に出力する。RGBからYUVへの変換式は、下式(7)を使用することができる。
【0104】
Y=0.299×R+0.587×G+0.114×B
U=−0.147×R−0.289×G+0.436×B
V=0.615×R−0.515×G−0.100×B ・・・(7)
【0105】
彩度算出部104は、RGB→YUV変換部501から入力されるYUV信号に基づいて彩度信号Sを算出する。彩度算出部1041202の彩度信号Sの算出方法を図14を参照して説明する。図14は、参照領域(5×5画素)の一例を示す図である。
【0106】
まず、注目画素を含む所定領域の画素のうち輝度Yが所定値以下の画素を検出する。図14(a)は、注目画素を含む5×5画素領域であり、この領域内の輝度Yが所定値(Thr_w)以下の画素が図14(b)の斜線の画素であるとする。
【0107】
この場合、所定値(Thr_w)を下地の白画素が除外される程度の値に設定することで、図14(b)の斜線の画素には下地が含まれないことになる。つぎに、輝度Yが所定値以下の各画素(斜線の画素)に対して、彩度Siを下式(8)により算出し、そのうち最も低い彩度を彩度信号Sとして、無彩色判定部105に出力する。
【0108】
Si=|U|+|V|・・・(8)
【0109】
図14(b)の場合には、12画素の彩度Siが算出され、この彩度Siのうち最も低い彩度を彩度信号Sとして出力される。
【0110】
無彩色判定部105は、彩度算出部104から入力される彩度信号Sに基づいて、各画素の画像信号が無彩色領域か有彩色領域かを判定して無彩色領域か有彩色領域かを示す無彩色判定信号を出力する。
【0111】
つぎに、本実施の形態5の有彩/無彩判定方法で、正確な有彩/無彩判定が可能となる理由を図15を参照して説明する。図15は、実施の形態5の有彩/無彩判定方法を説明するための説明図である。図15において、(a)は黒文字エッジ、(b)は白地上の色細線、(c)は有彩色上の黒細線を示している。
【0112】
図15において、まず、(a)の黒文字エッジに対しては、色ずれした領域A1が注目画素の場合にも、エッジ以外の黒文字部分A2が参照領域Aに含まれるので、彩度信号Sはエッジ以外の黒文字部分A2の彩度、すなわち低い彩度が出力されることになる。
【0113】
また、(b)の白地上の色細線A3に対しては、下地の白画素は輝度Yが所定値以下という条件を満たしていないので除外される。このため、彩度信号Sとして細線部分の高い彩度が出力されることになる。
【0114】
また、(c)の有彩色上A5の黒細線A4に対しては、全ての画素が輝度Yが所定値以下という条件を満たすが、彩度信号Sは黒細線部分A4の低い彩度が出力されることになる。
【0115】
このように、いずれの画像に対しても正確な有彩/無彩判定を行なうことが可能となる。また、実施の形態5の構成では、平滑化部103が必要ないため、回路規模を小さくすることができるという効果を奏する。
【0116】
なお、実施の形態5では、輝度色差信号としてYUV信号を用いた例を示したが、本発明はこれに限られるものではなく、他の輝度色差系の信号を用いても良く、また、彩度算出部104の彩度の算出式も上記(8)以外の式を使用することにしても良い。
【0117】
以下に、彩度算出部104における彩度信号Sの他の算出方法を説明する。彩度算出部104は、RGB→YUV変換部501からYUV信号が入力されると、注目画素を含む所定領域(例えば第14図(a)に示した5×5画素領域)の画素のうち輝度Yが最小の画素を検出する。この輝度Yが最小の画素の彩度を上記(8)式によって算出し、注目画素の彩度信号Sとして出力する。
【0118】
この場合は、図15(a)の黒文字エッジに対しては、色ずれ領域A1よりも黒文字部分A2の方が輝度Yが低いので、黒文字部分A2の画素のいずれかの画素の彩度、つまり低い彩度が彩度信号Sとして出力される。また、図15(b)の白地上の色細線A3に対しては、輝度Yが最小となるのは細線部分のいずれかの画素であるので、高い彩度が彩度信号Sとして出力される。また、図15(c)の有彩色上A5の黒細線A4に対しては、下地の有彩色部分よりも黒細線部分の方が輝度Yが低いので、黒細線部分の低い彩度が彩度信号Sとして出力される。この方法によっても、正確な有彩/無彩判定を行なうことが可能となる。
【0119】
なお、上記した実施の形態1〜5では、画像処理装置に搭載したスキャナで読み取られたRGB信号が入力されることとしたが、RGB信号はスキャナから入力される場合に限られるものではなく、通信インターフェースを設けて、PC等の外部装置から直接またはネットワークを介して入力されるRGB信号についても本発明は適用可能である。
【0120】
また、本発明の画像処理装置は、複数の機器(例えば、ホストコンピュータ、インターフェイス機器、スキャナ、プリンタ等)から構成されるシステムに適用しても、一つの機器から構成される装置(ホストコンピュータ等)に適用しても良い。
【0121】
また、本発明の目的は、上述した画像処理装置の機能を実現するソフトウエアのプログラムコードを記録した記録媒体を、システムまたは装置に供給し、そのシステムまたは装置のコンピュータ(または、CPU、MPU、DSP)が記録媒体に格納されたプログラムコードを実行することによっても達成することが可能である。この場合、記録媒体から読み出されたプログラムコード自体が前述した画像処理装置の機能を実現することになり、そのプログラムコードまたはそのプログラムを記憶した記録媒体は本発明を構成することになる。プログラムコードを供給するための記録媒体としては、FD、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリ、ROMなどの光記録媒体、磁気記録媒体、光磁気記録媒体、半導体記録媒体を使用することができる。
【0122】
また、コンピュータが読み出したプログラムコードを実行することにより、前述した画像評価装置の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した画像評価装置の機能が実現される場合も含まれること言うまでもない。
【0123】
また、記録媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した画像処理装置の機能が実現される場合も含まれることは言うまでもない。
【0124】
本発明は、上記した実施の形態に限定されるものではなく、発明の要旨を変更しない範囲で適宜変形して実施可能である。
【0125】
【発明の効果】
以上説明したように、請求項1にかかる画像処理装置によれば、カラー画像信号を入力する画像入力手段と、前記画像入力手段から入力されるカラー画像信号を平滑化する平滑化手段と、前記平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、前記画像入力手段から入力されるカラー画像信号の画像特徴を識別する画像特徴識別手段と、前記画像特徴識別手段で識別された画像特徴に応じて、前記平滑化手段の平滑化の強度を切り換える切換手段と、を備えたこととしたので、各種の画像に対して、高精度にカラー画像信号の有彩/無彩判定を行なうことが可能となる。
【0126】
また、請求項2にかかる画像処理装置によれば、請求項1にかかる発明において、前記画像特徴識別手段は、前記画像特徴として前記カラー画像信号の文字領域を識別することとしたので、白地上の黒文字エッジ、白地上の色細線、網点画像に対して、高精度な有彩/無彩判定を行なうことが可能となる。
【0127】
また、請求項3にかかる画像処理装置によれば、請求項1にかかる発明において、前記画像特徴識別手段は、前記画像特徴として前記カラー画像信号の細線領域を識別することとしたので、色ずれや下地の影響を受けずに無彩色判定を精度良く行うことが可能となる。
【0128】
また、請求項4にかかる画像処理装置によれば、画像読取手段で読み取られたカラー原稿のカラー画像信号の無彩/有彩を判定する画像処理装置において、前記画像読取手段で読み取られたカラー原稿のカラー画像信号を平滑化する平滑化手段と、前記平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、前記画像読取手段の色ずれ度合いを示す色ずれ度合い信号に応じて、前記平滑化手段の平滑化の強度を切り換える切換手段と、を備えたことしたので、スキャナの色ずれ度合いの大小に拘わらず正確な有彩/無彩判定を行なうことが可能となる。
【0129】
また、請求項5にかかる画像処理装置によれば、画像読取手段で指定された倍率で読み取られたカラー原稿のカラー画像信号の無彩/有彩を判定する画像処理装置において、前記カラー画像信号を平滑化する平滑化手段と、前記平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、前記倍率に応じて、前記平滑化手段の平滑化の強度を切り換える切換手段と、を備えたこととしたので、拡大または縮小して読取られた画像に対しても正確な有彩/無彩判定を行なうことが可能となる。
【0130】
また、請求項6にかかる画像処理装置によれば、請求項5にかかる発明において、前記切換手段は、前記倍率が大きいほど、前記平滑化手段の平滑化の強度を高くすることとしたので、色ずれや下地の影響を受けることなく、高精度に拡大または縮小して読み取られた画像に対しても正確な有彩/無彩判定を行うことが可能となる。
【0131】
また、請求項7にかかる画像処理装置によれば、カラー画像信号を入力する画像入力手段と、前記画像入力手段から入力されるカラー画像信号の注目画素を含む所定領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力する彩度算出手段と、前記彩度算出手段から出力される彩度信号に基づいて、前記入力手段から入力されるカラー画像信号の無彩色領域を判定する無彩色領域判定手段とを備えたこととしたので、簡単な構成で各種の画像に対して、高精度にカラー画像信号の有彩/無彩判定を行なうことが可能となる。
【0132】
また、請求項8にかかる画像処理装置によれば、請求項7にかかる発明において、前記彩度算出手段は、前記カラー画像信号の注目画素を含む所定領域内で輝度が所定値以下である画素のうち、最も彩度が低い画素の彩度を当該注目画素の彩度信号として出力することとしたので、簡単な方法で精度の良い彩度信号を出力することが可能となる。
【0133】
また、請求項9にかかる画像処理装置によれば、請求項7にかかる発明において、前記彩度算出手段は、前記カラー画像信号の注目画素を含む所定画素領域内で輝度が最も低い画素の彩度を注目画素の彩度信号として出力することとしたので、簡単な方法で精度の良い彩度信号を出力することが可能となる。
【0134】
また、請求項10にかかる画像処理方法によれば、カラー画像信号を入力する入力工程と、前記入力されるカラー画像信号を平滑化する平滑化工程と、前記平滑化工程で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、前記入力されるカラー画像信号の画像特徴を識別する画像特徴識別工程と、前記判定された画像特徴に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を含むこととしたので、各種の画像に対して、高精度にカラー画像信号の有彩/無彩判定を行なうことが可能となる。
【0135】
また、請求項11にかかる画像処理方法によれば、画像入力手段から入力されるカラー画像信号を平滑化フィルタを用いて平滑化する平滑化工程と、前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、前記画像入力手段の色ずれ度合いを示す色ずれ度合い信号に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を含むこととしたので、スキャナの色ずれ度合いの大小に拘わらず正確な有彩/無彩判定を行なうことが可能となる。
【0136】
また、請求項12にかかる画像処理方法によれば、画像入力手段で、指定される倍率で読み取られて入力されるカラー画像信号を平滑化する平滑化工程と、前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、前記倍率に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を含むこととしたので、拡大または縮小して読取られた画像に対しても正確な有彩/無彩判定を行なうことが可能となる。
【0137】
また、請求項13にかかる画像処理方法によれば、画像入力手段から入力されるカラー画像信号の注目画素を含む所定画素領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力する彩度算出工程と、前記彩度信号に基づいて、前記カラー画像信号の無彩色領域を判定する無彩色領域判定工程と、を含むこととしたので、簡単な構成で高精度にカラー画像信号の有彩/無彩判定を行なうことが可能となる。
【0138】
また、請求項14にかかるコンピュータが実行するためのプログラムによれば、コンピュータでプログラムを実行することにより、カラー画像信号を入力する入力工程と、前記入力されるカラー画像信号を平滑化する平滑化工程と、前記平滑化工程で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、前記入力されるカラー画像信号の画像特徴を識別する画像特徴識別工程と、前記判定された画像特徴に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を実現することとしたので、各種の画像に対して高精度にカラー画像信号の有彩/無彩判定を行なうことが可能となる。
【0139】
また、請求項15にかかるコンピュータが実行するためのプログラムによれば、コンピュータでプログラムを実行することにより、画像入力手段から入力されるカラー画像信号を平滑化フィルタを用いて平滑化する平滑化工程と、前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、前記画像入力手段の色ずれ度合いを示す色ずれ度合い信号に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を実現することとしたので、スキャナの色ずれ度合いの大小に拘わらず正確な有彩/無彩判定を行なうことが可能となる。
【0140】
また、請求項16にかかるコンピュータが実行するためのプログラムによれば、コンピュータでプログラムを実行することにより、画像入力手段でカラー原稿が指定される倍率で読み取られて入力されるカラー画像信号を平滑化する平滑化工程と、前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、前記倍率に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、を実現することとしたので、拡大または縮小して読取られた画像に対しても正確な有彩/無彩判定を行なうことが可能となる。
【0141】
また、請求項17にかかるコンピュータが実行するためのプログラムによれば、コンピュータでプログラムを実行することにより、画像入力手段から入力されるカラー画像信号の注目画素を含む所定画素領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力する彩度算出工程と、前記彩度信号に基づいて、前記カラー画像信号の無彩色領域を判定する無彩色領域判定工程と、を実現することとしたので、簡単な構成で各種の画像に対して、高精度にカラー画像信号の有彩/無彩判定を行なうことが可能となる。
【図面の簡単な説明】
【図1】実施の形態1にかかる画像処理装置の構成を示すブロック図である。
【図2】図1の平滑化部で使用する平滑化フィルタの一例を示す図である。
【図3】図2の平滑化フィルタの周波数特性を示す図である。
【図4】実施の形態2にかかる画像処理装置の構成を示すブロック図である。
【図5】細線検出フィルタの一例を示す図である。
【図6】細線検出に用いるマッチングパターンの一例を示す図である。
【図7】実施の形態3にかかる画像処理装置の構成を示すブロック図である。
【図8】スキャナ色ずれ度合いの測定方法を説明するためのフローチャートである。
【図9】実施の形態3にかかる画像処理装置の変形例を示す図である。
【図10】実施の形態4にかかる画像処理装置の構成を示すブロック図である。
【図11】平滑化部で使用される平滑化フィルタの一例を示す図である。
【図12】平滑化フィルタの他の例を示す図である。
【図13】実施の形態5にかかる画像処理装置の構成を示すブロック図である。
【図14】参照領域(5×5画素)の一例を示す図である。
【図15】実施の形態5の有彩/無彩判定方法を説明するための説明図である。
【符号の説明】
100 スキャナ
101 文字分離部
102 平滑化フィルタ選択部
103 平滑化部
104 彩度算出部
105 無彩色判定部
201 細線検出部
301 色ずれ度合い算出部
501 RGB→YUV変換部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus, an image processing method, and a program to be executed by a computer, and more particularly, to an image processing apparatus, an image processing method, and a computer that determine whether a color image signal is chromatic or achromatic. About the program to do.
[0002]
[Prior art]
2. Description of the Related Art An image forming apparatus such as a color copier performs an edge enhancement process on an image read by a color scanner in order to improve the sharpness of characters and line drawings. There are various methods for this edge enhancement processing.Generally, for achromatic regions such as black characters, only the luminance component is emphasized without emphasizing the color difference component in order to prevent coloring. It is desirable to do. On the other hand, in a chromatic color region such as a color character, if only the luminance component is enhanced, the color becomes turbid. Therefore, it is desirable to suppress the enhancement of the luminance component. As described above, since the method of edge enhancement changes depending on whether the image is an achromatic region, it is necessary to determine the achromatic region of the image.
[0003]
For example, Patent Literature 1 discloses a technique for determining an achromatic region from a smoothed input color image signal. According to this document, it is described that a black character edge on a white background can be determined as an achromatic region even when color misregistration occurs at the time of scanner reading.
[0004]
However, in this method, the effect of color shift on the black character edge on the white background is reduced, but the saturation of the fine color lines on the white background is reduced by the effect of the achromatic pixel on the background due to the smoothing. Is likely to be erroneously determined.
[0005]
If the color misregistration at the time of reading by the scanner is small, it is possible to make them compatible to some extent by weakening the smoothing. However, in an image composed of halftone dots such as a printed document, accurate chromatic / achromatic determination cannot be performed unless the undulation of the halftone dots is smoothed. For example, gray dots consisting of three CMY colors are macroscopically achromatic, but if the smoothing is weak, the saturation becomes high when viewed from pixel to pixel, and thus it is determined to be a chromatic color. In the case of a single-color halftone dot, since the valley portion is close to a white pixel, if the smoothing is weak, the saturation becomes extremely low, and even a chromatic halftone dot image is determined to be achromatic. In order to smooth the undulations of the halftone dots, a certain degree of strong smoothing is required. As a result, it is impossible to determine with high precision both chromatic / achromatic color thin lines on a white background and halftone images.
[0006]
In Patent Document 2, thin-line pixel determination is performed. For a thin-line pixel, a chromatic / achromatic determination is performed on a pixel row in a direction passing through a target pixel and crossing a thin line by using the magnitude of a cumulative vector of color difference vectors. Is disclosed. The document describes that this makes it possible to perform highly accurate chromatic / achromatic determination on black character edges on white ground, fine lines on white ground, and halftone dot images.
[0007]
However, according to the method of the document, the color difference vectors of five pixels crossing the thin line are accumulated, so that for the black thin line on the chromatic color, the color difference vector of the underlying chromatic pixel is also accumulated, and the chromatic color is mistakenly determined. Is determined.
[0008]
[Patent Document 1]
Japanese Patent No. 3048158
[Patent Document 2]
JP 2002-271646 A
[0009]
[Problems to be solved by the invention]
The present invention has been made in view of the above, and has an image processing apparatus, an image processing method, and a computer capable of performing chromatic / achromatic determination of a color image signal with high accuracy for various images. Aims to provide a program for execution.
[0010]
[Means for Solving the Problems]
In order to solve the above problem, the invention according to claim 1 includes an image input unit that inputs a color image signal, a smoothing unit that smoothes a color image signal input from the image input unit, and the smoothing unit. Achromatic region determining means for determining an achromatic region of a color image signal smoothed by the means; image characteristic identifying means for identifying image characteristics of the color image signal input from the image input means; Switching means for switching the smoothing intensity of the smoothing means in accordance with the image feature identified by the means.
[0011]
According to the above invention, the image input unit inputs a color image signal, the smoothing unit smoothes the color image signal input from the image input unit, and the achromatic color region determination unit is smoothed by the smoothing unit. The image feature identifying means identifies the image feature of the color image signal input from the image input means, and the switching means determines the image feature identified by the image feature identifying means. The smoothing intensity of the smoothing means is switched accordingly.
[0012]
According to a second aspect of the present invention, in the first aspect of the present invention, the image feature identifying means identifies a character area of the color image signal as the image feature.
[0013]
According to the present invention, the image feature identification unit identifies a character area of a color image signal as an image feature.
[0014]
According to a third aspect of the present invention, in the first aspect of the invention, the image feature identifying unit identifies a thin line region of the color image signal as the image feature.
[0015]
According to the present invention, the image feature identification means identifies a thin line region of a color image signal as an image feature.
[0016]
According to a fourth aspect of the present invention, there is provided an image processing apparatus for judging achromatic / chromatic of a color image signal of a color document read by an image reading means, wherein the color image of the color document read by the image reading means is provided. A smoothing means for smoothing a signal, an achromatic color area determining means for determining an achromatic color area of the color image signal smoothed by the smoothing means, and a color shift degree signal indicating a color shift degree of the image reading means. Switching means for switching the smoothing intensity of the smoothing means in accordance with
[0017]
According to the invention, the smoothing means smoothes the color image signal of the color original read by the image reading means, and the achromatic color area determination means makes the achromatic color area of the color image signal smoothed by the smoothing means. And the switching means switches the smoothing intensity of the smoothing means in accordance with the color misregistration signal indicating the color misregistration of the image reading means.
[0018]
According to a fifth aspect of the present invention, there is provided an image processing apparatus for judging achromatic / chromatic of a color image signal of a color document read at a magnification designated by an image reading means, wherein the color image signal is smoothed. Smoothing means, achromatic color area determining means for determining an achromatic color area of the color image signal smoothed by the smoothing means, and switching means for switching the smoothing intensity of the smoothing means according to the magnification. And characterized in that:
[0019]
According to the above invention, the smoothing unit smoothes the color image signal, the achromatic region determining unit determines the achromatic region of the color image signal smoothed by the smoothing unit, and the switching unit determines the reading magnification. In response, the smoothing intensity of the smoothing means is switched.
[0020]
According to a sixth aspect of the present invention, in the invention according to the fifth aspect, the switching unit increases the smoothing intensity of the smoothing unit as the magnification increases.
[0021]
According to the invention, the switching unit increases the smoothing intensity of the smoothing unit as the magnification increases.
[0022]
Further, according to a seventh aspect of the present invention, there is provided an image input unit for inputting a color image signal, and a color gamut of a pixel satisfying a predetermined condition in a predetermined area including a target pixel of the color image signal input from the image input unit. Saturation calculating means for outputting the degree as a saturation signal of the pixel of interest, and determining an achromatic region of the color image signal input from the input means based on the saturation signal output from the saturation calculating means. And an achromatic color region determining means.
[0023]
According to the above invention, the image input unit inputs a color image signal, and the saturation calculation unit sets the pixels of the color image signal input from the image input unit that satisfy a predetermined condition in a predetermined area including the target pixel. The saturation is output as the saturation signal of the pixel of interest, and the achromatic region determination unit determines the achromatic region of the color image signal input from the image input unit.
[0024]
According to an eighth aspect of the present invention, in the invention according to the seventh aspect, the saturation calculating means is configured such that, among the pixels whose luminance is equal to or less than a predetermined value in a predetermined area including the target pixel of the color image signal, Is output as the saturation signal of the pixel of interest.
[0025]
According to the above invention, the saturation calculating unit determines the saturation of the pixel having the lowest saturation among the pixels having the brightness equal to or less than the predetermined value in the predetermined region including the target pixel of the color image signal, by using the saturation of the target pixel. Output as a degree signal.
[0026]
According to a ninth aspect of the present invention, in the invention according to the seventh aspect, the saturation calculating means determines the saturation of a pixel having the lowest luminance in a predetermined pixel area including the target pixel of the color image signal. Is output as a saturation signal.
[0027]
According to the invention, the saturation calculation means outputs the saturation of the pixel having the lowest luminance in the predetermined pixel region including the target pixel of the color image signal as the saturation signal of the target pixel.
[0028]
Further, the invention according to claim 10 is an input step of inputting a color image signal, a smoothing step of smoothing the input color image signal, and a step of outputting the color image signal smoothed in the smoothing step. An achromatic region determining step of determining a chromatic region; an image feature identifying step of identifying an image feature of the input color image signal; and a smoothing intensity of the smoothing step according to the determined image feature. And a switching step of switching
[0029]
According to the above invention, a color image signal is input, an input color image signal is smoothed, an achromatic region of the smoothed color image signal is determined, and an image feature of the input color image signal is identified. The smoothing intensity is switched according to the identified image feature.
[0030]
According to an eleventh aspect of the present invention, there is provided a smoothing step of smoothing a color image signal input from an image input means using a smoothing filter, and determining an achromatic region of the smoothed color image signal. An achromatic color region determining step; and a switching step of switching a smoothing intensity of the smoothing step in accordance with a color shift degree signal indicating a color shift degree of the image input means.
[0031]
According to the invention, the color image signal input from the image input means is smoothed, an achromatic region of the smoothed color image signal is determined, and the color image signal is determined according to the color shift degree signal indicating the color shift degree of the image input means. To switch the intensity of the smoothing.
[0032]
According to a twelfth aspect of the present invention, in the image input means, a smoothing step of smoothing a color image signal read and input at a specified magnification, and an achromatic color area of the smoothed color image signal And a switching step of switching the smoothing intensity of the smoothing step according to the magnification.
[0033]
According to the invention, the color image signal read and input at the magnification specified by the image input means is smoothed, the achromatic region of the smoothed color image signal is determined, and the smoothing is performed according to the magnification. Switch the intensity of the conversion.
[0034]
According to a thirteenth aspect of the present invention, in a predetermined pixel area including a target pixel of a color image signal input from an image input means, a saturation of a pixel satisfying a predetermined condition is output as a saturation signal of the target pixel. And an achromatic color area determination step of determining an achromatic color area of the color image signal based on the saturation signal.
[0035]
According to the invention, in a predetermined pixel area including a target pixel of a color image signal input from the image input unit, the saturation of a pixel satisfying a predetermined condition is output as a saturation signal of the target pixel, and An achromatic region of the color image signal is determined based on the signal.
[0036]
According to a fourteenth aspect of the present invention, in the program to be executed by a computer, an input step of inputting a color image signal, a smoothing step of smoothing the input color image signal, and a smoothing step. An achromatic region determining step of determining an achromatic region of a smoothed color image signal, an image feature identifying step of identifying an image feature of the input color image signal, and, according to the determined image feature, And a switching step of switching the smoothing intensity in the smoothing step.
[0037]
According to the invention, by executing a program on a computer, an input step of inputting a color image signal, a smoothing step of smoothing the input color image signal, and a smoothing step performed in the smoothing step An achromatic region determining step of determining an achromatic region of a color image signal; an image feature identifying step of identifying an image feature of the input color image signal; and the smoothing step according to the determined image feature. And a switching step of switching the smoothing strength of the above.
[0038]
Further, according to a fifteenth aspect of the present invention, in a program executed by a computer, a smoothing step of smoothing a color image signal input from an image input means using a smoothing filter; An achromatic color area determining step of determining an achromatic color area of an image signal; and a switching step of switching the smoothing intensity of the smoothing step according to a color shift degree signal indicating a color shift degree of the image input unit. It is characterized by being executed by a computer.
[0039]
According to the invention, by executing a program on a computer, a smoothing step of smoothing a color image signal input from the image input means using a smoothing filter, An achromatic color area determining step of determining a chromatic area and a switching step of switching the smoothing intensity of the smoothing step in accordance with a color shift degree signal indicating a color shift degree of the image input unit are realized.
[0040]
A computer-executable program according to a sixteenth aspect, wherein a color original is read by an image input unit at a specified magnification and a color image signal input thereto is smoothed, and And causing the computer to execute an achromatic region determining unit that determines an achromatic region of the smoothed color image signal, and a switching step of switching a smoothing intensity of the smoothing step according to the magnification. And
[0041]
According to the invention, by executing a program on a computer, a smoothing step of smoothing a color image signal which is read and input at a designated magnification by a color original by an image input means, and An achromatic color area determining unit for determining an achromatic color area of a color image signal and a switching step of switching a smoothing intensity of the smoothing step according to the magnification are realized.
[0042]
According to a seventeenth aspect of the present invention, in a program executed by a computer, a saturation of a pixel satisfying a predetermined condition in a predetermined pixel region including a target pixel of a color image signal input from an image input unit is determined. Causing a computer to execute a saturation calculation step of outputting the saturation signal of the pixel of interest as a saturation signal, and an achromatic area determination step of determining an achromatic area of the color image signal based on the saturation signal. And
[0043]
According to the invention described above, by executing a program on a computer, the saturation of a pixel satisfying a predetermined condition in a predetermined pixel region including a target pixel of a color image signal input from an image input unit is set to the saturation of the target pixel. A saturation calculating step of outputting as a saturation signal, and an achromatic region determining step of determining an achromatic region of the color image signal based on the saturation signal are realized.
[0044]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, preferred embodiments of an image processing apparatus, an image processing method, and a program to be executed by a computer according to the present invention will be described with reference to the drawings (Embodiment 1), (Embodiment 2), (Embodiment 3), (Embodiment 4) and (Embodiment 5) will be described in detail in this order.
[0045]
(Embodiment 1)
An image processing apparatus according to a first embodiment will be described with reference to FIGS. FIG. 1 is a block diagram illustrating a configuration of the image processing apparatus according to the first embodiment. The image processing apparatus according to the first embodiment includes a scanner 100, a character separation unit 101, a smoothing filter selection unit 102, a smoothing unit 103, a saturation calculation unit 104, A color determination unit 105.
[0046]
The scanner 100 reads a color original and outputs digital RGB signals to the character separation unit 101 and the smoothing unit 103. The character separation unit 101 extracts a character area from the RGB signal input from the scanner 100 and outputs an attribute signal indicating whether the area is a character area or another area (“1” for a character area, “0” for another area). )) To the smoothing filter selection unit 102. The method of character separation here is, for example, “Image area separation method of mixed image of characters / patterns (dots, photos)” (Transactions of the Institute of Electronics, Information and Communication Engineers, Vol. J75-D-II No. 1 pp. 39- 47 Jan. 1992) can be used.
[0047]
Smoothing filter selecting section 102 selects a smoothing filter to be used in smoothing section 103 according to the attribute signal input from character separating section 101, and outputs the selected signal to smoothing section 103. FIG. 2 is a diagram illustrating an example of a smoothing filter used in the smoothing unit 103. FIG. 2A shows a smoothing filter selected when the attribute signal indicates a character area, and FIG. 2B shows a smoothing filter selected when the attribute signal indicates a signal indicating another area. .
[0048]
The smoothing unit 103 smoothes the RGB signals input from the scanner 100 using the smoothing filter selected by the smoothing filter selection unit 102 according to the selection signal input from the smoothing filter selection unit 102. Then, the smoothed RGB signal Sm_RGB is output to the saturation calculation unit 104. As described above, the smoothing filter selecting unit 102 switches the smoothing strength (= degree) of the RGB signals of the smoothing unit 103.
[0049]
Saturation calculation section 104 calculates saturation signal S based on smoothed RGB signal Sm_RGB input from smoothing section 103 and outputs the signal to achromatic color determination section 105. The saturation signal S is calculated by the following equation (1).
[0050]
Saturation signal S = MAX (R, G, B) -MIN (R, G, B) (1)
[0051]
The achromatic color determination unit 105 determines whether the RGB signal of each pixel is an achromatic region based on the saturation signal S input from the saturation calculation unit 104, and determines whether the RGB signal of each pixel is an achromatic region / chromatic region. A chromatic determination signal (achromatic region “1”, chromatic region “0”) is output. The determination of the achromatic color area / chromatic color area is performed by the following equation (2).
[0052]
Chromatic region when S> Thr
Achromatic region when S ≦ Thr (2)
Where Thr is a constant
[0053]
3A and 3B are diagrams showing the frequency characteristics of the smoothing filter of FIG. 2. FIG. 3A shows the frequency characteristics of the smoothing filter of FIG. 3A, and FIG. 3) shows the frequency characteristics of the smoothing filter. In FIG. 3, the horizontal axis represents frequency, and the vertical axis represents gain.
[0054]
As shown in FIG. 3, the filter (a) selected in the character area is a filter having a lower smoothing degree than the filter (b) selected in other areas. This is because, for the character area, a smoothing filter that can alleviate the color shift of the black character edge at the time of reading by the scanner may be used, and generally it is not necessary to perform strong smoothing. In the case of the smoothing filter shown in (a), thin colored characters (thin colored lines on a white background) are not significantly affected by the background, and can be determined as chromatic regions.
[0055]
On the other hand, since the other areas include the halftone image, the undulation of the halftone dots cannot be smoothed unless strong smoothing is performed to some extent. Therefore, accurate chromatic / achromatic determination can be performed even for a halftone image by using a filter as shown in FIG.
[0056]
As described above, according to the image processing apparatus of the first embodiment, the RGB signal is smoothed by selecting the smoothing filter based on the attribute signal indicating whether or not the area is a character area. Since the saturation determination is performed based on the signal, it is possible to perform highly accurate chromatic / achromatic determination on various images.
[0057]
It should be noted that the same effect can be obtained with a signal indicating whether or not the attribute information is a halftone dot area, instead of a signal indicating whether or not the attribute area is a character area. In this case, an area other than the halftone dot is determined as a character area.
[0058]
Further, the saturation signal S may be calculated by a calculation formula other than the above formula (1). Further, the achromatic color determination unit 105 may perform a multi-valued determination such as chromatic / intermediate saturation / achromatic instead of a binary determination of chromatic / achromatic.
[0059]
Here, a description will be given of a method in which the achromatic color determination unit 105 performs three-stage determination of chromatic / intermediate saturation / achromatic. The achromatic color determination unit 105 determines chromaticity / intermediate saturation / achromaticity by the following equation (4) based on the saturation signal S from the saturation calculation unit 104.
[0060]
When S <Thr1 Achromatic region
When Thr1 ≦ S <Thr2 Intermediate saturation region
When Thr2 ≦ S Chromatic region (4)
Here, Thr1 and Thr2 are constants, and Thr1 <Thr2.
[0061]
(Embodiment 2)
An image processing apparatus according to the second embodiment will be described with reference to FIG. The image processing apparatus according to the first embodiment can perform a highly accurate chromatic / achromatic determination on a black character edge on a white background, a thin color line on a white background, and a halftone image. The black thin line may not be determined to be a character area, but may be strongly smoothed, and the black thin line may be determined to be chromatic. Further, in the image processing apparatus according to the first embodiment, when the color shift at the time of scanner reading is large, it is necessary to increase the degree of smoothing of the smoothing filter for the character area. Is likely to be erroneously determined to be an achromatic region.
[0062]
Therefore, the image processing apparatus according to the second embodiment has a configuration in which a thin line region of an image is detected, and an achromatic color determination is accurately performed without being affected by a color shift or a background.
[0063]
FIG. 4 is a block diagram illustrating a configuration of the image processing apparatus according to the second embodiment. 4, parts having the same functions as those in FIG. 1 are denoted by the same reference numerals, the description of the common parts is omitted, and only different configurations will be described. The image processing apparatus according to the second embodiment uses a thin line detection unit 201 instead of the character separation unit 101 of the first embodiment (FIG. 1), as shown in FIG.
[0064]
When the RGB signal is input from the scanner 100, the fine line detection unit 201 detects a fine line region from the RGB signal, and indicates an attribute signal (“1”: fine line region, “0”: another area) is output to the smoothing filter selecting unit 102.
[0065]
A specific method of determining a thin line region by the thin line detection unit 201 will be described with reference to FIG. FIG. 5 is a diagram illustrating an example of the fine line detection filter.
[0066]
The thin line detection unit 201 first calculates the edge amount in each of the vertical, horizontal, and diagonal directions by using the thin line detection filters shown in FIGS. Here, the filter of (c) takes a positive value for the diagonal line falling to the right, and takes a negative value for the diagonal line of falling left. Therefore, the edge amount is set only for the filter of (c). After the calculation, the absolute value is calculated. Next, the thin line detection unit 201 calculates the maximum edge amount of the edge amounts (a) to (c), and if the calculated maximum edge amount is equal to or greater than a predetermined threshold, determines that the pixel is a thin line region. However, if the maximum edge amount is less than the predetermined threshold, it is determined that the area is other than the thin line.
[0067]
The smoothing filter selection unit 102 selects a smoothing filter to be used in the smoothing unit 103 based on an attribute signal indicating whether the region is a thin line region or another region input from the thin line detection unit 201 and outputs a selection signal. Is output to the smoothing unit 103. Specifically, in the case of a thin line region, the smoothing filter of FIG. 2A is selected, and in the case of a region other than the thin line region, the smoothing filter of FIG. 2B is selected.
[0068]
The smoothing unit 103 smoothes the RGB signals input from the scanner 100 using the smoothing filter selected by the smoothing filter selection unit 102 according to the selection signal input from the smoothing filter selection unit 102. Then, the smoothed RGB signal Sm_RGB is output to the saturation calculation unit 104.
[0069]
Thereafter, as in the first embodiment, the saturation calculation unit 104 calculates the saturation signal S based on the smoothed RGB signals Sm_RGB input from the smoothing unit 103, and calculates the achromatic color determination unit. Output to 105. The achromatic color determination unit 105 determines whether the image data of each pixel is an achromatic region or a chromatic region based on the saturation signal S input from the saturation calculation unit 104, and determines whether the image data is an achromatic region or a chromatic region. An achromatic color determination signal indicating an area is output.
[0070]
As described above, in the image processing apparatus according to the second embodiment, the smoothing filter is switched according to whether or not the region is a thin line region. (The smoothing filter in FIG. 2B) can be applied, and even if the color shift at the time of reading by the scanner is large, it is possible to accurately determine the black character edge as achromatic. In addition, since a thin color line on a white background or a thin black line on a chromatic color is detected as a thin line region, a smoothing filter having a low degree of smoothing (the smoothing filter in FIG. 2A) can be applied. Accurate chromatic / achromatic determination can be performed without being affected by the background.
[0071]
It should be noted that the smoothing filter may be switched in multiple stages as the multilevel signal indicating the degree of the fine line, instead of the binary signal indicating whether the attribute information is the fine line area.
[0072]
Further, the thin line detection may be performed by not using all the RGB signals but using only the G signal or using an average signal of the R signal and the G signal. Further, instead of the thin line detection using the thin line detection filter as in the first embodiment, other methods such as thin line detection using pattern matching may be used.
[0073]
Here, a case where the thin line detection unit 201 performs thin line detection using pattern matching will be described. FIG. 6 shows an example of a matching pattern used for fine line detection. The thin line detection unit 201 binarizes each of the RGB signals with a predetermined threshold value, and determines that the signal is a thin line when the signal matches at least one of the matching patterns shown in FIGS.
[0074]
(Embodiment 3)
An image processing apparatus according to a third embodiment will be described with reference to FIGS. In the first and second embodiments, a smoothing filter is selected according to an image feature to mitigate the effect of a color shift at the time of scanner reading, and an accurate chromatic / achromatic determination is performed. However, since the degree of color misregistration at the time of reading by the scanner differs depending on the device, it is desirable to switch the smoothing filter according to the degree of color misregistration of the scanner of each device.
[0075]
Therefore, in a third embodiment, a configuration in which the smoothing filter is switched according to the degree of color misregistration of the scanner will be described. FIG. 7 is a block diagram illustrating a configuration of the image processing apparatus according to the third embodiment. 7, parts having the same functions as those in FIG. 1 are denoted by the same reference numerals, description of common parts is omitted, and only different configurations will be described. As shown in FIG. 7, the image processing apparatus according to the third embodiment uses a color misregistration degree calculation unit 301 in place of the character separation unit 101 of the first embodiment (FIG. 1).
[0076]
The color shift degree calculation unit 301 generates a color shift degree signal indicating the degree of color shift at the time of reading by the scanner 100, and outputs the signal to the smoothing filter selecting unit 102. Here, an example of a method of measuring the degree of color misregistration of the scanner will be described with reference to FIG. FIG. 8 is a flowchart for explaining a method of measuring the degree of color misregistration of the scanner.
[0077]
In FIG. 8, first, the measurement chart is read by the scanner 100, and a digital RGB signal is input (step S1). Since this measurement chart is for measuring the amount of color misregistration at the edge portion of a black character, any chart may be used as long as it is an image including a thick black monochromatic line.
[0078]
Next, the color misregistration degree calculation unit 301 calculates the saturation of each pixel of the RGB signals of this measurement chart using the saturation calculation formula (the above equation (1) or the like) used by the saturation calculation unit 104. (Step S2). Then, the color shift degree calculating unit 301 calculates the maximum chroma Smax of all the pixels of the RGB signal (step S3), and generates a color shift degree signal indicating the color shift degree from the maximum chroma Smax (step S4). ).
[0079]
When a binary signal (“0”: small color shift, “1”: large color shift) is output as the color shift degree signal, the color shift degree signal is calculated by the following equation (5).
[0080]
When Smax <Thr Color shift degree = 0 (small color shift)
When Smax ≧ Thr Color shift degree = 1 (large color shift) (5)
Where Thr is a constant
[0081]
Note that the calculation of the color misregistration degree signal does not need to be performed every time an image is read by the scanner 100, but a special mode is provided, and the color misregistration signal is calculated at the time of factory shipment, weekly / monthly, or the like. Is also good.
[0082]
The smoothing filter selecting unit 102 selects a smoothing filter to be used by the smoothing unit 103 based on the color shift degree signal input from the color shift degree calculation unit 301. Specifically, the smoothing filter selecting unit 102 selects a filter having a large smoothing degree (the filter of FIG. 2A) when the degree of scanner color misalignment is large, and Selects a filter with a small degree of smoothing (the filter in FIG. 2B).
[0083]
The smoothing unit 103 smoothes the RGB signals input from the scanner 1 using the smoothing filter selected by the smoothing filter selection unit 102 according to the selection signal input from the smoothing filter selection unit 102. Then, the smoothed RGB signal Sm_RGB is output to the saturation calculation unit 104.
[0084]
Thereafter, as in the first embodiment, the saturation calculation unit 104 calculates the saturation signal S based on the smoothed RGB signals Sm_RGB input from the smoothing unit 103, and calculates the achromatic color determination unit. Output to 105. The achromatic color determination unit 105 determines whether the RGB signal of each pixel is an achromatic region or a chromatic region based on the saturation signal S input from the saturation calculation unit 104, and An achromatic color determination signal indicating the region (achromatic region “1”, chromatic region “0”) is output.
[0085]
As described above, according to the third embodiment, it is possible to use a smoothing filter in accordance with the degree of color misregistration of the scanner, so that accurate chromatic / achromatic determination can be performed regardless of the degree of color misregistration of the scanner. Can be performed.
[0086]
In the third embodiment, a scanner is mounted on the image processing apparatus, and the smoothing filter is switched according to the degree of color misregistration of the mounted scanner. However, an RGB signal is input from an external apparatus. The present invention can be applied to such cases. In this case, an RGB signal and a color shift degree signal are input from an external device.
[0087]
In addition, the color shift degree calculating unit 301 does not perform the binary determination such as the large color shift degree / small color shift degree as described above, but the large color shift degree / medium color shift degree / color shift degree. A multi-valued determination such as a small degree may be performed.
[0088]
Here, a method will be described in which the color misregistration degree calculation unit 301 performs a three-stage determination of large color misregistration degree / medium color misregistration degree / small color misregistration degree. The color shift degree calculating unit 301 calculates three levels of color shift degree signals (“0”: small color shift, “1”: medium color shift, “2”: large color shift) by the following equation (6).
[0089]
Figure 2004320447
However, Thr1 and Thr2 are constants and Thr1 <Thr2
[0090]
It should be noted that a configuration in which the configuration for selecting a smoothing filter in accordance with the thin line detection according to the second embodiment and the configuration for selecting a smoothing filter based on the degree of scanner color misregistration according to the fourth embodiment are combined. good. FIG. 9 is a diagram illustrating a configuration of an image processing apparatus in which a configuration for selecting a smoothing filter in accordance with thin line detection and a configuration for selecting a smoothing filter based on the degree of scanner color shift according to the fourth embodiment are combined. .
[0091]
In this case, if the color misregistration degree signal is a three-stage signal, the smoothing filter selection unit 102 holds three sets of smoothing filters for the thin line area and the area other than the thin line, and stores Accordingly, a set of smoothing filters is selected from among them, and further, a smoothing filter used by the smoothing unit 103 is selected according to the thin line or the region other than the thin line.
[0092]
(Embodiment 4)
An image processing apparatus according to a fourth embodiment will be described with reference to FIGS. When reading image data with a color scanner or the like, the image data may be read after being enlarged or reduced. Thus, in a fourth embodiment, a configuration will be described in which accurate chromatic / achromatic determination is performed even on an image that has been read in an enlarged or reduced manner.
[0093]
FIG. 10 is a block diagram illustrating a configuration of the image processing apparatus according to the fourth embodiment. 10, parts having the same functions as those in FIG. 1 are denoted by the same reference numerals, description of common parts is omitted, and only different configurations will be described.
[0094]
The color original is read by the scanner 100 at the specified reading magnification, and is input as RGB signals. The smoothing filter selecting unit 102 selects a smoothing filter to be used in the smoothing unit 103 according to the designated reading magnification.
[0095]
The smoothing unit 103 uses the smoothing filter selected by the smoothing filter selection unit 102 to smooth the input RGB signals read by a scanner or the like, and converts the smoothed RGB signals Sm_RGB into a saturation calculation unit. Output to 104.
[0096]
Thereafter, as in the first embodiment, the saturation calculation unit 104 calculates the saturation signal S based on the smoothed RGB signals Sm_RGB input from the smoothing unit 103, and calculates the achromatic color determination unit. Output to 105. The achromatic color determination unit 105 determines whether the image data of each pixel is an achromatic region or a chromatic region based on the saturation signal S input from the saturation calculation unit 104, and An achromatic color determination signal indicating an area (“1” for an achromatic area, “0” for a chromatic area) is output.
[0097]
FIG. 11 is a diagram illustrating an example of a smoothing filter used in the smoothing unit 103. When the reading magnification is less than 75%, the smoothing filter selecting unit 102 sets the smoothing filter (a), and when the reading magnification is 75% or more and less than 125%, the (b) smoothing filter and the reading magnification If it is 125% or more, the smoothing filter of (c) is selected.
[0098]
In the case of reading in reduced size, if the same smoothing filter as in the case of the same magnification is used, the influence of the background becomes large and accurate determination cannot be performed on a thin line. Therefore, at the time of reduction, a filter having a small degree of smoothing is used. On the other hand, when reading in an enlarged manner, there is a possibility that the color misregistration becomes large. Therefore, a filter having a high degree of smoothing is used.
[0099]
In the fourth embodiment, a scanner is mounted on the image processing apparatus, and the smoothing filter is switched according to the reading magnification of the mounted scanner. However, RGB signals are input from an external apparatus. In this case, the present invention is applicable. In that case, an RGB signal and a reading magnification of the scanner are input from an external device.
[0100]
In the case where the image is read by changing the magnification only in the sub-scanning direction at the time of reading by the scanner, a filter whose degree of smoothing is changed only in the sub-scanning direction as shown in FIG. 12 may be used.
[0101]
(Embodiment 5)
An image processing apparatus according to a fifth embodiment will be described with reference to FIGS. In the fifth embodiment, a configuration will be described in which chromatic / achromatic determination is performed without smoothing an image signal.
[0102]
FIG. 13 is a block diagram illustrating a configuration of the image processing apparatus according to the fifth embodiment. 13, parts having the same functions as those in FIG. 1 are denoted by the same reference numerals, the description of the common parts will be omitted, and only different configurations will be described.
[0103]
The RGB → YUV conversion unit 501 converts the RGB image data input from the scanner 100 into a YUV signal that is a luminance / color difference signal, and outputs the YUV signal to the saturation calculation unit 104. The following equation (7) can be used as a conversion equation from RGB to YUV.
[0104]
Y = 0.299 × R + 0.587 × G + 0.114 × B
U = −0.147 × R−0.289 × G + 0.436 × B
V = 0.615 × R−0.515 × G−0.100 × B (7)
[0105]
The saturation calculation unit 104 calculates a saturation signal S based on the YUV signal input from the RGB → YUV conversion unit 501. A method of calculating the saturation signal S by the saturation calculation unit 1041202 will be described with reference to FIG. FIG. 14 is a diagram illustrating an example of the reference area (5 × 5 pixels).
[0106]
First, a pixel whose luminance Y is equal to or less than a predetermined value among pixels in a predetermined area including a target pixel is detected. FIG. 14A shows a 5 × 5 pixel area including a pixel of interest, and a pixel in which the luminance Y is equal to or less than a predetermined value (Thr_w) is a hatched pixel in FIG.
[0107]
In this case, by setting the predetermined value (Thr_w) to a value that excludes the white pixels on the background, the shaded pixels in FIG. 14B do not include the background. Next, for each pixel (hatched pixel) whose luminance Y is equal to or less than a predetermined value, the saturation Si is calculated by the following equation (8), and the lowest saturation is set as the saturation signal S, and the achromatic color determination unit is used. Output to 105.
[0108]
Si = | U | 2 + | V | 2 ... (8)
[0109]
In the case of FIG. 14B, the saturation Si of 12 pixels is calculated, and the lowest saturation among the saturations Si is output as the saturation signal S.
[0110]
The achromatic color determination unit 105 determines whether the image signal of each pixel is an achromatic region or a chromatic region based on the saturation signal S input from the saturation calculation unit 104, and determines whether the image signal is an achromatic region or a chromatic region. Is output.
[0111]
Next, the reason why the chromatic / achromatic determination method according to the fifth embodiment enables accurate chromatic / achromatic determination will be described with reference to FIG. FIG. 15 is an explanatory diagram for describing a chromatic / achromatic determination method according to the fifth embodiment. 15A shows a black character edge, FIG. 15B shows a thin color line on a white background, and FIG. 15C shows a fine black line on a chromatic color.
[0112]
In FIG. 15, first, for the black character edge (a), even when the color-shifted area A1 is the target pixel, the black character portion A2 other than the edge is included in the reference area A. The saturation of the black character portion A2 other than the edge, that is, low saturation is output.
[0113]
In addition, the white pixel on the background is excluded from the fine white line A3 on the white background because the luminance Y does not satisfy the condition that the luminance Y is equal to or less than the predetermined value. For this reason, the high saturation of the thin line portion is output as the saturation signal S.
[0114]
Further, for the black fine line A4 of the chromatic color A5 in (c), all the pixels satisfy the condition that the luminance Y is equal to or less than a predetermined value, but the chroma signal S outputs low chroma of the black fine line portion A4. Will be done.
[0115]
In this manner, accurate chromatic / achromatic determination can be performed for any image. Further, in the configuration of the fifth embodiment, since the smoothing unit 103 is not required, there is an effect that the circuit scale can be reduced.
[0116]
In the fifth embodiment, an example is described in which a YUV signal is used as a luminance / color difference signal. However, the present invention is not limited to this, and other luminance / color difference signals may be used. Expressions other than the above (8) may be used as the expression for calculating the saturation of the degree calculator 104.
[0117]
Hereinafter, another method of calculating the saturation signal S in the saturation calculation unit 104 will be described. When the YUV signal is input from the RGB → YUV conversion unit 501, the saturation calculation unit 104 calculates the luminance among the pixels in a predetermined area (for example, the 5 × 5 pixel area shown in FIG. 14A) including the target pixel. Y detects the smallest pixel. The saturation of the pixel having the minimum luminance Y is calculated by the above equation (8), and is output as the saturation signal S of the pixel of interest.
[0118]
In this case, since the luminance Y of the black character portion A2 is lower than that of the color misregistration region A1 with respect to the black character edge of FIG. 15A, the saturation of one of the pixels of the black character portion A2, that is, The low saturation is output as the saturation signal S. In addition, as for the color thin line A3 on the white background in FIG. 15B, since the luminance Y becomes the minimum in any of the pixels in the thin line portion, a high chroma is output as the chroma signal S. . Further, as for the black fine line A4 of the upper chromatic color A5 in FIG. 15C, the luminance Y is lower in the black fine line portion than in the chromatic color portion of the base, so that the lower chroma of the black fine line portion is higher in the saturation. It is output as a signal S. This method also enables accurate chromatic / achromatic determination.
[0119]
In the first to fifth embodiments, the RGB signals read by the scanner mounted on the image processing apparatus are input. However, the RGB signals are not limited to those input from the scanner. The present invention is also applicable to an RGB signal input directly from an external device such as a PC or via a network by providing a communication interface.
[0120]
Further, the image processing apparatus of the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a scanner, a printer, and the like), but can be applied to a device including a single device (such as a host computer). ) May be applied.
[0121]
Another object of the present invention is to provide a system or an apparatus with a recording medium that records software program codes for realizing the functions of the image processing apparatus described above, and to provide a computer (or CPU, MPU, DSP can execute the program code stored in the recording medium. In this case, the program code itself read from the recording medium realizes the function of the image processing apparatus described above, and the program code or the recording medium storing the program constitutes the present invention. Recording media for supplying the program code include optical recording media such as FDs, hard disks, optical disks, magneto-optical disks, CD-ROMs, CD-Rs, magnetic tapes, non-volatile memories, ROMs, magnetic recording media, and optical recording media. A magnetic recording medium and a semiconductor recording medium can be used.
[0122]
When the computer executes the readout program code, not only the functions of the image evaluation apparatus described above are realized, but also an OS (Operating System) running on the computer based on the instructions of the program code. Performs part or all of the actual processing, and the processing realizes the function of the image evaluation apparatus described above.
[0123]
Also, after the program code read from the recording medium is written to a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that a CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the image processing apparatus described above.
[0124]
The present invention is not limited to the above-described embodiment, and can be implemented with appropriate modifications without departing from the spirit of the invention.
[0125]
【The invention's effect】
As described above, according to the image processing apparatus according to claim 1, an image input unit that inputs a color image signal, a smoothing unit that smoothes a color image signal input from the image input unit, An achromatic region determining unit that determines an achromatic region of the color image signal smoothed by the smoothing unit; an image feature identifying unit that identifies an image feature of the color image signal input from the image input unit; Switching means for switching the smoothing intensity of the smoothing means in accordance with the image feature identified by the feature identifying means. It is possible to perform chromatic / achromatic determination.
[0126]
According to the image processing apparatus of the second aspect, in the invention of the first aspect, the image feature identification unit identifies a character area of the color image signal as the image feature. High-accuracy chromatic / achromatic determination can be performed on black character edges, color thin lines on a white background, and halftone dot images.
[0127]
According to the image processing apparatus of the third aspect, in the invention of the first aspect, the image feature identifying unit identifies a thin line region of the color image signal as the image feature. The achromatic color determination can be performed with high accuracy without being affected by the background or the background.
[0128]
According to the image processing apparatus of the fourth aspect, in the image processing apparatus for determining achromatic / chromatic of a color image signal of a color document read by the image reading unit, the color read by the image reading unit is used. Smoothing means for smoothing a color image signal of a document, achromatic area determining means for determining an achromatic area of the color image signal smoothed by the smoothing means, and a color shift degree of the image reading means. A switching means for switching the smoothing intensity of the smoothing means in accordance with the color misregistration signal, so that accurate chromatic / achromatic determination is performed regardless of the magnitude of the color misregistration of the scanner. It becomes possible.
[0129]
According to the image processing apparatus of the present invention, in the image processing apparatus for determining achromatic / chromatic of a color image signal of a color document read at a magnification designated by an image reading means, A smoothing means for smoothing the color image signal, an achromatic color area determining means for determining an achromatic color area of the color image signal smoothed by the smoothing means, and an intensity of smoothing of the smoothing means according to the magnification. And a switching unit for switching between the two, so that accurate chromatic / achromatic determination can be performed even on an image read in an enlarged or reduced manner.
[0130]
According to the image processing apparatus of the sixth aspect, in the invention of the fifth aspect, the switching unit increases the smoothing intensity of the smoothing unit as the magnification increases. It is possible to perform accurate chromatic / achromatic determination even on an image that has been read in an enlarged or reduced state with high accuracy, without being affected by color shift or a background.
[0131]
Further, according to the image processing apparatus of the present invention, the image input means for inputting the color image signal and the predetermined condition in the predetermined area including the target pixel of the color image signal input from the image input means, A saturation calculating unit that outputs the saturation of the pixel that satisfies the pixel as a saturation signal of the pixel of interest, and a color image signal that is input from the input unit based on the saturation signal that is output from the saturation calculation unit. The provision of the achromatic color region determining means for determining the chromatic color region enables the chromatic / achromatic determination of the color image signal to be performed with high accuracy on various images with a simple configuration. .
[0132]
Further, according to the image processing apparatus of the eighth aspect, in the invention of the seventh aspect, the saturation calculation unit includes a pixel whose luminance is equal to or less than a predetermined value in a predetermined area including the target pixel of the color image signal. Of these, the saturation of the pixel with the lowest saturation is determined to be output as the saturation signal of the pixel of interest, so that a highly accurate saturation signal can be output by a simple method.
[0133]
Further, according to the image processing apparatus of the ninth aspect, in the invention of the seventh aspect, the saturation calculation means may include a color saturation of a pixel having the lowest luminance in a predetermined pixel area including a target pixel of the color image signal. Since the degree is output as the saturation signal of the pixel of interest, it is possible to output an accurate saturation signal by a simple method.
[0134]
According to the image processing method of the present invention, an input step of inputting a color image signal, a smoothing step of smoothing the input color image signal, and a color smoothed in the smoothing step An achromatic color region determining step of determining an achromatic color region of the image signal; an image characteristic identifying step of identifying an image characteristic of the input color image signal; and, in accordance with the determined image characteristic, Since a switching step of switching the smoothing intensity is included, it is possible to perform chromatic / achromatic determination of a color image signal on various images with high accuracy.
[0135]
According to the image processing method of the eleventh aspect, a smoothing step of smoothing the color image signal input from the image input means using a smoothing filter, and an achromatic color of the smoothed color image signal An achromatic color area determining step of determining an area, and a switching step of switching the smoothing intensity of the smoothing step in accordance with a color shift degree signal indicating a color shift degree of the image input means, are included. In addition, accurate chromatic / achromatic determination can be performed regardless of the degree of color misregistration of the scanner.
[0136]
According to the image processing method of the twelfth aspect, a smoothing step of smoothing a color image signal read and input at a specified magnification by an image input means, and the smoothed color image signal And a switching step of switching the smoothing intensity of the smoothing step in accordance with the magnification. Accurate chromatic / achromatic determination can be performed on an image.
[0137]
According to the image processing method of the present invention, in a predetermined pixel area including a target pixel of a color image signal input from the image input means, the saturation of a pixel satisfying a predetermined condition is determined by the saturation of the target pixel. A saturation calculation step of outputting as a degree signal, and an achromatic area determination step of determining an achromatic area of the color image signal based on the saturation signal. The chromatic / achromatic determination of the color image signal can be performed in a short time.
[0138]
Further, according to a program for execution by a computer according to claim 14, an input step of inputting a color image signal by executing the program on the computer, and a smoothing step of smoothing the input color image signal An achromatic area determining step of determining an achromatic area of the color image signal smoothed in the smoothing step; an image feature identifying step of identifying an image feature of the input color image signal; And a switching step of switching the smoothing intensity of the smoothing step in accordance with the image characteristics obtained. Therefore, the chromatic / achromatic determination of the color image signal for various images can be performed with high accuracy. Can be performed.
[0139]
Further, according to a program executed by a computer according to claim 15, a smoothing step of smoothing a color image signal input from the image input means using a smoothing filter by executing the program on the computer. An achromatic color region determining step of determining an achromatic color region of the smoothed color image signal; and Since the switching step of switching the intensity is realized, accurate chromatic / achromatic determination can be performed regardless of the degree of color misregistration of the scanner.
[0140]
Further, according to the program for execution by a computer according to claim 16, by executing the program on the computer, the color input signal is read by the image input means at the designated magnification and smoothed. A smoothing step, an achromatic area determining unit that determines an achromatic area of the smoothed color image signal, and a switching step of switching the smoothing intensity of the smoothing step according to the magnification. Is realized, accurate chromatic / achromatic determination can be performed even on an image read in an enlarged or reduced manner.
[0141]
According to the program executed by a computer according to the seventeenth aspect, by executing the program on the computer, a predetermined pixel area including a target pixel of a color image signal input from the image input unit is specified. A saturation calculating step of outputting the saturation of the pixel satisfying the condition as a saturation signal of the pixel of interest, and an achromatic area determining step of determining an achromatic area of the color image signal based on the saturation signal, Is realized, it is possible to perform chromatic / achromatic judgment of a color image signal with high accuracy on various images with a simple configuration.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment;
FIG. 2 is a diagram illustrating an example of a smoothing filter used in the smoothing unit in FIG. 1;
FIG. 3 is a diagram illustrating frequency characteristics of the smoothing filter of FIG. 2;
FIG. 4 is a block diagram illustrating a configuration of an image processing apparatus according to a second embodiment;
FIG. 5 is a diagram illustrating an example of a fine line detection filter.
FIG. 6 is a diagram illustrating an example of a matching pattern used for thin line detection.
FIG. 7 is a block diagram illustrating a configuration of an image processing apparatus according to a third embodiment;
FIG. 8 is a flowchart for explaining a method of measuring the degree of scanner color misregistration.
FIG. 9 is a diagram illustrating a modification of the image processing apparatus according to the third embodiment;
FIG. 10 is a block diagram illustrating a configuration of an image processing apparatus according to a fourth embodiment;
FIG. 11 is a diagram illustrating an example of a smoothing filter used in the smoothing unit.
FIG. 12 is a diagram illustrating another example of the smoothing filter.
FIG. 13 is a block diagram illustrating a configuration of an image processing apparatus according to a fifth embodiment;
FIG. 14 is a diagram illustrating an example of a reference area (5 × 5 pixels).
FIG. 15 is an explanatory diagram for describing a chromatic / achromatic determination method according to a fifth embodiment.
[Explanation of symbols]
100 scanner
101 Character separation unit
102 Smoothing filter selection unit
103 smoothing unit
104 Saturation Calculation Unit
105 Achromatic judgment unit
201 Fine line detector
301 Color shift degree calculation unit
501 RGB → YUV converter

Claims (17)

カラー画像信号を入力する画像入力手段と、
前記画像入力手段から入力されるカラー画像信号を平滑化する平滑化手段と、
前記平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、
前記画像入力手段から入力されるカラー画像信号の画像特徴を識別する画像特徴識別手段と、
前記画像特徴識別手段で識別された画像特徴に応じて、前記平滑化手段の平滑化の強度を切り換える切換手段と、
を備えたことを特徴とする画像処理装置。
Image input means for inputting a color image signal,
Smoothing means for smoothing a color image signal input from the image input means,
An achromatic region determining unit that determines an achromatic region of the color image signal smoothed by the smoothing unit;
An image feature identification unit that identifies an image feature of a color image signal input from the image input unit,
Switching means for switching the smoothing intensity of the smoothing means according to the image feature identified by the image feature identification means,
An image processing apparatus comprising:
前記画像特徴識別手段は、前記画像特徴として前記カラー画像信号の文字領域を識別することを特徴とする請求項1に記載の画像処理装置。2. The image processing apparatus according to claim 1, wherein the image feature identification unit identifies a character area of the color image signal as the image feature. 前記画像特徴識別手段は、前記画像特徴として前記カラー画像信号の細線領域を識別することを特徴とする請求項1に記載の画像処理装置。2. The image processing apparatus according to claim 1, wherein the image feature identification unit identifies a thin line region of the color image signal as the image feature. 画像読取手段で読み取られたカラー原稿のカラー画像信号の無彩/有彩を判定する画像処理装置において、
前記画像読取手段で読み取られたカラー原稿のカラー画像信号を平滑化する平滑化手段と、
前記平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、
前記画像読取手段の色ずれ度合いを示す色ずれ度合い信号に応じて、前記平滑化手段の平滑化の強度を切り換える切換手段と、
を備えたことを特徴とする画像処理装置。
In an image processing apparatus for determining achromatic / chromatic of a color image signal of a color document read by an image reading unit,
Smoothing means for smoothing a color image signal of a color original read by the image reading means,
An achromatic region determining unit that determines an achromatic region of the color image signal smoothed by the smoothing unit;
Switching means for switching the smoothing intensity of the smoothing means according to a color misalignment degree signal indicating the color misalignment degree of the image reading means;
An image processing apparatus comprising:
画像読取手段で指定された倍率で読み取られたカラー原稿のカラー画像信号の無彩/有彩を判定する画像処理装置において、
前記カラー画像信号を平滑化する平滑化手段と、
前記平滑化手段で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、
前記倍率に応じて、前記平滑化手段の平滑化の強度を切り換える切換手段と、
を備えたことを特徴とする画像処理装置。
An image processing apparatus for determining achromatic / chromatic of a color image signal of a color document read at a magnification specified by an image reading unit,
Smoothing means for smoothing the color image signal,
An achromatic region determining unit that determines an achromatic region of the color image signal smoothed by the smoothing unit;
Switching means for switching the smoothing intensity of the smoothing means according to the magnification;
An image processing apparatus comprising:
前記切換手段は、前記倍率が大きいほど、前記平滑化手段の平滑化の強度を高くすることを特徴とする請求項5に記載の画像処理装置。The image processing apparatus according to claim 5, wherein the switching unit increases the smoothing intensity of the smoothing unit as the magnification increases. カラー画像信号を入力する画像入力手段と、
前記画像入力手段から入力されるカラー画像信号の注目画素を含む所定領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力する彩度算出手段と、
前記彩度算出手段から出力される彩度信号に基づいて、前記入力手段から入力されるカラー画像信号の無彩色領域を判定する無彩色領域判定手段と、
を備えたことを特徴とする画像処理装置。
Image input means for inputting a color image signal,
In a predetermined area including a target pixel of a color image signal input from the image input unit, a saturation calculation unit that outputs a saturation of a pixel satisfying a predetermined condition as a saturation signal of the target pixel,
An achromatic region determining unit that determines an achromatic region of a color image signal input from the input unit based on a saturation signal output from the saturation calculating unit;
An image processing apparatus comprising:
前記彩度算出手段は、前記カラー画像信号の注目画素を含む所定領域内で輝度が所定値以下である画素のうち、最も彩度が低い画素の彩度を当該注目画素の彩度信号として出力することを特徴とする請求項7に記載の画像処理装置。The saturation calculating means outputs, as a saturation signal of the pixel of interest, a saturation of a pixel having the lowest saturation among pixels whose luminance is equal to or less than a predetermined value in a predetermined region including the pixel of interest of the color image signal. The image processing apparatus according to claim 7, wherein: 前記彩度算出手段は、前記カラー画像信号の注目画素を含む所定画素領域内で輝度が最も低い画素の彩度を当該注目画素の彩度信号として出力することを特徴とする請求項7に記載の画像処理装置。9. The color saturation calculation unit according to claim 7, wherein the saturation calculation unit outputs the saturation of a pixel having the lowest luminance in a predetermined pixel region including the pixel of interest of the color image signal as a saturation signal of the pixel of interest. Image processing device. カラー画像信号を入力する入力工程と、
前記入力されるカラー画像信号を平滑化する平滑化工程と、
前記平滑化工程で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、
前記入力されるカラー画像信号の画像特徴を識別する画像特徴識別工程と、
前記判定された画像特徴に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、
を含むことを特徴とする画像処理方法。
An input step of inputting a color image signal;
A smoothing step of smoothing the input color image signal,
An achromatic region determining step of determining an achromatic region of the color image signal smoothed in the smoothing step;
An image feature identification step of identifying an image feature of the input color image signal,
A switching step of switching a smoothing intensity of the smoothing step according to the determined image feature;
An image processing method comprising:
画像入力手段から入力されるカラー画像信号を平滑化フィルタを用いて平滑化する平滑化工程と、
前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、
前記画像入力手段の色ずれ度合いを示す色ずれ度合い信号に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、
を含むことを特徴とする画像処理方法。
A smoothing step of smoothing the color image signal input from the image input means using a smoothing filter,
An achromatic region determining step of determining an achromatic region of the smoothed color image signal;
A switching step of switching a smoothing intensity of the smoothing step according to a color shift degree signal indicating a color shift degree of the image input unit;
An image processing method comprising:
画像入力手段で、指定される倍率で読み取られて入力されるカラー画像信号を平滑化する平滑化工程と、
前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、
前記倍率に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、
を含むことを特徴とする画像処理方法。
A smoothing step of smoothing a color image signal read and input at a specified magnification by the image input means;
An achromatic region determining step of determining an achromatic region of the smoothed color image signal;
A switching step of switching the smoothing intensity of the smoothing step according to the magnification;
An image processing method comprising:
画像入力手段から入力されるカラー画像信号の注目画素を含む所定画素領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力する彩度算出工程と、
前記彩度信号に基づいて、前記カラー画像信号の無彩色領域を判定する無彩色領域判定工程と、
を含むことを特徴とする画像処理方法。
A saturation calculation step of outputting, as a saturation signal of the pixel of interest, a saturation of a pixel satisfying a predetermined condition in a predetermined pixel region including the pixel of interest of the color image signal input from the image input unit;
An achromatic region determining step of determining an achromatic region of the color image signal based on the saturation signal;
An image processing method comprising:
コンピュータが実行するためのプログラムにおいて、
カラー画像信号を入力する入力工程と、
前記入力されるカラー画像信号を平滑化する平滑化工程と、
前記平滑化工程で平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、
前記入力されるカラー画像信号の画像特徴を識別する画像特徴識別工程と、
前記判定された画像特徴に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、
をコンピュータに実行させることを特徴とするコンピュータが実行するためのプログラム。
In a program to be executed by a computer,
An input step of inputting a color image signal;
A smoothing step of smoothing the input color image signal,
An achromatic region determining step of determining an achromatic region of the color image signal smoothed in the smoothing step;
An image feature identification step of identifying an image feature of the input color image signal,
A switching step of switching a smoothing intensity of the smoothing step according to the determined image feature;
A program for causing a computer to execute the program.
コンピュータが実行するためのプログラムにおいて、
画像入力手段から入力されるカラー画像信号を平滑化フィルタを用いて平滑化する平滑化工程と、
前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、
前記画像入力手段の色ずれ度合いを示す色ずれ度合い信号に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、
をコンピュータに実行させることを特徴とするコンピュータが実行するためのプログラム。
In a program to be executed by a computer,
A smoothing step of smoothing the color image signal input from the image input means using a smoothing filter,
An achromatic region determining step of determining an achromatic region of the smoothed color image signal;
A switching step of switching a smoothing intensity of the smoothing step according to a color shift degree signal indicating a color shift degree of the image input unit;
A program for causing a computer to execute the program.
コンピュータが実行するためのプログラムにおいて、
画像入力手段でカラー原稿が指定される倍率で読み取られて入力されるカラー画像信号を平滑化する平滑化工程と、
前記平滑化されたカラー画像信号の無彩色領域を判定する無彩色領域判定工程と、
前記倍率に応じて、前記平滑化工程の平滑化の強度を切り換える切換工程と、
をコンピュータに実行させることを特徴とするコンピュータが実行するためのプログラム。
In a program to be executed by a computer,
A smoothing step of smoothing a color image signal which is read and input at a specified magnification by a color original by the image input means,
An achromatic region determining step of determining an achromatic region of the smoothed color image signal;
A switching step of switching the smoothing intensity of the smoothing step according to the magnification;
A program for causing a computer to execute the program.
コンピュータが実行するためのプログラムにおいて、
画像入力手段から入力されるカラー画像信号の注目画素を含む所定画素領域内で、所定の条件を満たす画素の彩度を当該注目画素の彩度信号として出力する彩度算出工程と、
前記彩度信号に基づいて、前記カラー画像信号の無彩色領域を判定する無彩色領域判定工程と、
をコンピュータに実行させることを特徴とするコンピュータが実行するためのプログラム。
In a program to be executed by a computer,
A saturation calculation step of outputting, as a saturation signal of the pixel of interest, a saturation of a pixel satisfying a predetermined condition in a predetermined pixel region including the pixel of interest of the color image signal input from the image input unit;
An achromatic region determining step of determining an achromatic region of the color image signal based on the saturation signal;
A program for causing a computer to execute the program.
JP2003111601A 2003-04-16 2003-04-16 Image processing apparatus, image processing method, and program executed by computer Expired - Fee Related JP4141310B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003111601A JP4141310B2 (en) 2003-04-16 2003-04-16 Image processing apparatus, image processing method, and program executed by computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003111601A JP4141310B2 (en) 2003-04-16 2003-04-16 Image processing apparatus, image processing method, and program executed by computer

Publications (2)

Publication Number Publication Date
JP2004320447A true JP2004320447A (en) 2004-11-11
JP4141310B2 JP4141310B2 (en) 2008-08-27

Family

ID=33472103

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003111601A Expired - Fee Related JP4141310B2 (en) 2003-04-16 2003-04-16 Image processing apparatus, image processing method, and program executed by computer

Country Status (1)

Country Link
JP (1) JP4141310B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008035499A (en) * 2006-06-30 2008-02-14 Canon Inc Image processing apparatus, image processing method, program, and recording medium
JP2008269509A (en) * 2007-04-25 2008-11-06 Hitachi Omron Terminal Solutions Corp Image processing program and image processor
US7916352B2 (en) 2006-06-30 2011-03-29 Canon Kabushiki Kaisha Image processing apparatus, image processing method, program, and recording medium
US8599456B2 (en) 2009-10-30 2013-12-03 Sharp Kabushiki Kaisha Image processing apparatus, image forming apparatus, image processing method, and computer-readable recording medium on which image processing program is recorded
EP2955909A1 (en) 2014-06-11 2015-12-16 Canon Kabushiki Kaisha Image processing apparatus and image processing method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008035499A (en) * 2006-06-30 2008-02-14 Canon Inc Image processing apparatus, image processing method, program, and recording medium
US7916352B2 (en) 2006-06-30 2011-03-29 Canon Kabushiki Kaisha Image processing apparatus, image processing method, program, and recording medium
JP4659789B2 (en) * 2006-06-30 2011-03-30 キヤノン株式会社 Image processing apparatus, image processing method, program, and recording medium
JP2008269509A (en) * 2007-04-25 2008-11-06 Hitachi Omron Terminal Solutions Corp Image processing program and image processor
KR101461233B1 (en) * 2007-04-25 2014-11-12 히타치 오므론 터미널 솔루션즈 가부시키가이샤 Image processing device, image processing method and recording medium
US8599456B2 (en) 2009-10-30 2013-12-03 Sharp Kabushiki Kaisha Image processing apparatus, image forming apparatus, image processing method, and computer-readable recording medium on which image processing program is recorded
EP2955909A1 (en) 2014-06-11 2015-12-16 Canon Kabushiki Kaisha Image processing apparatus and image processing method
US9531912B2 (en) 2014-06-11 2016-12-27 Canon Kabushiki Kaisha Image processing apparatus and image processing method

Also Published As

Publication number Publication date
JP4141310B2 (en) 2008-08-27

Similar Documents

Publication Publication Date Title
US7227990B2 (en) Color image processing device and color image processing method
JP3399486B2 (en) Color image processing apparatus and method
US7667711B2 (en) Image processing system, a method thereof, and a recording medium thereof
US20080137159A1 (en) Image forming apparatus and image quality improving method thereof
JP2005293555A (en) Identification of skin area in image
US7146042B2 (en) Image processing apparatus and colorimetric system conversion method
JPH0722330B2 (en) Image region identification method for image processing apparatus
US20110234858A1 (en) Image processing apparatus and method, and image processing program
JP4907060B2 (en) Priority PDL segmentation to generate a 2-bit selector
JP4771428B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP4141310B2 (en) Image processing apparatus, image processing method, and program executed by computer
JP2000236441A (en) Image processor
US7269294B2 (en) Foreground erosion method and system for Multiple Raster Content (MRC) representation of documents
US7456982B2 (en) Segmentation method and system for multiple raster content (MRC) representation of documents
JP4453979B2 (en) Image reproducing apparatus, image reproducing method, program, and recording medium
JP2010119006A (en) Image processing apparatus,and image processing method
JP4569785B2 (en) Binarization device and binarization processing program
JP3838981B2 (en) Image processing apparatus, image processing method, and image processing program
JPH11136505A (en) Picture processor and picture processing method
JP3737230B2 (en) Color image processing device
JPH07184075A (en) Color image processor
JP5118171B2 (en) Segmentation method and system for multi-raster content (MRC) representation of documents
JP3834484B2 (en) Image processing method, image processing apparatus, image forming apparatus, and computer-readable recording medium
JPH1042151A (en) Image processing unit and its method
JP2001346057A (en) Method for classifying chromatic color and achromatic color, color picture processor and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050630

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070131

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070320

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070518

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070918

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071119

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

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

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

Free format text: PAYMENT UNTIL: 20110620

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120620

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130620

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees