JP2015146557A - Image processing apparatus, image processing method, and program - Google Patents
Image processing apparatus, image processing method, and program Download PDFInfo
- Publication number
- JP2015146557A JP2015146557A JP2014019478A JP2014019478A JP2015146557A JP 2015146557 A JP2015146557 A JP 2015146557A JP 2014019478 A JP2014019478 A JP 2014019478A JP 2014019478 A JP2014019478 A JP 2014019478A JP 2015146557 A JP2015146557 A JP 2015146557A
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- determination
- color
- image data
- threshold
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
Description
本発明は、入力画像がカラー画像なのかモノクロ画像なのかを識別するための画像処理に関する。 The present invention relates to image processing for identifying whether an input image is a color image or a monochrome image.
スキャン機能を有するMFP(Multi Function Peripheral)等の画像形成装置においては、原稿をカラーでスキャンする際に、デジタル的に読み取って得られた画像の各画素に対して、有彩色であるか無彩色であるかの判定を行っている。具体的には、各画素の彩度と予め定めた彩度閾値とを比較することで、有彩色もしくは無彩色の判定を行い、有彩色と判定された画素の連結数を元に、読取対象である原稿がカラー原稿であるかモノクロ原稿であるかを判定している。このようなカラー判定技術は、一般にACS(Auto Color Select)と呼ばれる。そして、このACS技術によってカラー原稿であると判定された場合にはカラー画像が、モノクロ原稿であると判定された場合にはモノクロ画像がユーザに対して提供されることになる。 In an image forming apparatus such as an MFP (Multi Function Peripheral) having a scanning function, each pixel of an image obtained by digital reading when a document is scanned in color is chromatic or achromatic. It is determined whether or not. Specifically, the chromatic color or achromatic color is determined by comparing the saturation of each pixel with a predetermined saturation threshold, and the reading target is based on the number of connected pixels determined to be chromatic. It is determined whether the original is a color original or a monochrome original. Such a color determination technique is generally called ACS (Auto Color Select). When it is determined that the document is a color document by the ACS technology, a color image is provided to the user when it is determined that the document is a monochrome document.
しかしながら、ACS技術も万能ではなく、判定に失敗するケースがあった。例えば、古紙を100%用いた再生紙等の低品質な用紙をスキャンした場合である。これら低品質な用紙は、高品質な用紙と比べて、用紙内に含有される不純物の出現頻度が高まる特徴を持っている。そうした低品質な用紙の場合、その不純物が有彩であるせいで、不純物に対応する画素が有彩画素と判定され、その結果、本来はモノクロ原稿と判定されるべき原稿がカラー原稿であると判定されてしまうケースがあった。 However, ACS technology is not universal, and there are cases where the judgment fails. For example, this is a case where low-quality paper such as recycled paper using 100% used paper is scanned. These low-quality papers have a feature that the appearance frequency of impurities contained in the paper is higher than that of high-quality papers. In the case of such low-quality paper, because the impurity is chromatic, the pixel corresponding to the impurity is determined to be a chromatic pixel, and as a result, the original that should be determined as a monochrome original is a color original. There was a case where it was judged.
上記のような誤判定の対策として、比較に用いる彩度閾値を変更して、各画素を無彩色であると判定しやすくするような対策も考えられる。しかし、こうした対策を取ると、今度はカラー原稿と判定されるべき原稿をモノクロ原稿であると誤って判定してしまうケースが出てくる。 As a countermeasure against the erroneous determination as described above, a countermeasure that makes it easy to determine that each pixel is an achromatic color by changing the saturation threshold value used for comparison is also conceivable. However, if such measures are taken, there are cases where a document that should be determined to be a color document is erroneously determined to be a monochrome document.
特にモノクロ原稿と誤判定されやすいのが、カラーのハイライト網点原稿である。当該ハイライト網点原稿に含まれるカラー網点の一つ一つは小さいため、それを読み取って得られた読取画像の各画素の彩度は、比較的低くなっている。そのため、彩度閾値を変更して各画素を無彩色であると判定しやすくすると、こうしたカラー網点に対応する画素を誤って無彩色であると判定してしまうことになる。 In particular, color highlight halftone originals are easily mistaken for monochrome originals. Since each of the color halftone dots included in the highlight halftone document is small, the saturation of each pixel of the read image obtained by reading it is relatively low. Therefore, if it is easy to determine that each pixel is an achromatic color by changing the saturation threshold, a pixel corresponding to such a color halftone dot is erroneously determined to be an achromatic color.
ちなみに、カラー画像の濃度が中濃度から高濃度の領域(例えば、Notハイライト網点領域)やカラーの文字領域では、鮮やかなカラー画素群が存在する。そのため、これらの領域では、彩度閾値をどのように設定しようと有彩画素がたくさん見つかり、カラー原稿であると正しく判定できることになる。 Incidentally, a vivid color pixel group exists in an area where the density of a color image is medium to high (for example, a Not highlight halftone dot area) or a color character area. Therefore, in these areas, a large number of chromatic pixels are found no matter how the saturation threshold is set, and it can be correctly determined that the original is a color document.
以上の点を踏まえ、ハイライト網点領域の各画素については有彩色であると判定されやすい彩度閾値を用い、それ以外の領域(不純物領域を含む)の各画素については無彩色であると判定されやすい彩度閾値を用いることが必要となってくる。
なお、特許文献1は、網点領域の各画素については無彩色であると判定されやすい彩度閾値を用いているので、本願とは逆である。
Based on the above points, a saturation threshold that is easily determined to be chromatic is used for each pixel in the highlight halftone dot region, and an achromatic color is used for each pixel in other regions (including the impurity region). It is necessary to use a saturation threshold that is easy to determine.
Note that Patent Document 1 uses a saturation threshold value that is easily determined to be an achromatic color for each pixel in the halftone dot region, and is the reverse of this application.
本発明に係る画像処理装置は、画像データから孤立点を検出する検出手段と、前記検出手段で検出された孤立点の数を、注目画素を含む所定の領域でカウントする計数手段と、前記計数手段でカウントされた前記孤立点の数が第1の閾値を超えたかどうかを判定する判定手段と、前記判定手段における判定結果に応じて、前記注目画素が有彩色か無彩色かを判定する際の第2の閾値を設定する設定手段と、を有し、前記計数手段でカウントされた前記孤立点の数が前記第1の閾値を超えたと前記判定手段で判定された場合に前記設定手段によって設定される前記第2の閾値は、前記計数手段でカウントされた前記孤立点の数が前記第1の閾値を超えなかったと前記判定手段で判定された場合に前記設定手段によって設定される前記第2の閾値よりも、注目画素が有彩色と判定されやすい閾値であることを特徴とする。 An image processing apparatus according to the present invention includes a detection unit that detects isolated points from image data, a counting unit that counts the number of isolated points detected by the detection unit in a predetermined region including a target pixel, and the counting Determining means for determining whether the number of isolated points counted by the means exceeds a first threshold, and determining whether the pixel of interest is a chromatic color or an achromatic color according to a determination result in the determining means Setting means for setting the second threshold value of the second threshold value, and when the determination means determines that the number of the isolated points counted by the counting means exceeds the first threshold value, The second threshold value set is the second threshold value set by the setting means when the determination means determines that the number of isolated points counted by the counting means does not exceed the first threshold value. Threshold of 2 Remote, wherein the pixel of interest is the more likely to be determined as chromatic color threshold.
本発明によれば、精度の高いACS処理を容易に実現できる。 According to the present invention, highly accurate ACS processing can be easily realized.
以下、添付図面を参照して、本発明を好適な実施例に従って詳細に説明する。なお、以下の実施例において示す構成は一例にすぎず、本発明は図示された構成に限定されるものではない。 Hereinafter, the present invention will be described in detail according to preferred embodiments with reference to the accompanying drawings. In addition, the structure shown in the following Examples is only an example, and this invention is not limited to the structure shown in figure.
以下、本発明を実施するための形態について図面を用いて説明する。 Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.
図1は、本実施例に係る画像形成装置としてのMFPの構成の一例を示すブロック図である。 FIG. 1 is a block diagram illustrating an example of the configuration of an MFP as an image forming apparatus according to the present embodiment.
MFP100は、内部バス109で相互に接続されたCPU101、メモリ102、HDD103、スキャナ部104、画像処理部105、プリンタ部106、表示部107で構成され、ネットワークI/F108を介してネットワーク110と接続されている。
The MFP 100 includes a
CPU101は、MFP100を統括的に制御するプロセッサであって、内部バス109を介して接続された各部を制御する。
The
メモリ102は、CPU101がMFP100を制御するために実行する各種命令(アプリケーションプログラム含む)や各種データを記憶するROMと、CPU101のワークエリアとして機能するRAMで構成される。
The
スキャナ部104は、不図示の原稿台等にセットされた原稿を光学的に読み取り、スキャン画像データを取得する機能を有し、ここでは最大600dpiの解像度で原稿を読み取ることが可能であるものとする。
The
画像処理部105は、スキャナ部104で取得されたスキャン画像データ等に対し、必要な画像処理を行う。画像処理部105の詳細については後述する。
The
プリンタ部106は、紙等の記録媒体上に画像を印刷する機能を有する。
The
HDD103は、スキャナ部104で取得されたスキャン画像データ等を一時保存する。
The HDD 103 temporarily stores scanned image data acquired by the
表示部107は、タッチスクリーン機能を有する液晶パネルなどで構成され、種々の情報が表示される他、ユーザは、表示部107に表示される画面を介してスキャン指示などを行う。
The
ネットワークインタフェース108は、LANやインターネット等のネットワーク110を介して接続されているPC(不図示)との間で、印刷データの送受信などの通信を行うためのインタフェースである。
The
なお、画像形成装置の構成要素は上述の内容に限定されない。例えば、タッチスクリーンに代えてユーザが各種操作を行うためのマウスやキーボードなどで構成される入力部を設けるなどしてもよく、画像形成装置の構成は、その用途等に応じて適宜追加・変更され得るものである。 Note that the components of the image forming apparatus are not limited to those described above. For example, instead of the touch screen, an input unit including a mouse and a keyboard for performing various operations by the user may be provided. The configuration of the image forming apparatus may be appropriately added or changed according to the application. It can be done.
図2は、画像処理部105の内部構成を示す機能ブロック図である。画像処理部105は、像域分離処理部201、第1色変換処理部202、ACS処理部203、フィルタ処理部204、下地飛ばし処理部205、第2色変換処理部206、階調補正処理部207、中間調処理部208で構成される。
FIG. 2 is a functional block diagram showing the internal configuration of the
像域分離処理部201は、入力画像としてのスキャン画像の属性(文字、網点など)を画素毎に判定して像域情報を生成する処理を行なう。本実施例における像域情報には、画素毎にハイライト網点であるかどうかを示す1bit(ハイライト網点であれば「1」、ハイライト網点でなければ「0」)のデータを含むものとする。最終的に出来上がる像域情報としては、文字判定処理なども行なった上でそれらの判定結果を含んだ任意のbit数のデータとすればよい。像域分離処理の詳細については後述する。
The image area
第1色変換処理部202は、入力側デバイス(スキャナ)に依存する色空間(ここではRGB色空間)の画像データを、デバイスに依存しない色空間(例えばL*a*b*やLch)の画像データに変換する。
The first color
ACS処理部203は、デバイス非依存の色空間に変換された画像データに対し、上述の像域情報を用いてACS処理を行う。ACS処理の詳細については後述する。
The
フィルタ処理部204は、デバイス非依存の色空間に変換された画像データに対し、その属性に応じたフィルタ処理を行う。例えば、文字領域についてはエッジ強調フィルタを用いた処理、文字領域以外の領域についてはスムージングフィルタを用いた処理を行なう。
The
下地飛ばし処理部205は、フィルタ処理されたスキャン画像データの下地を除去する下地飛ばし処理を行う。
The background
第2色変換処理部206は、デバイス非依存の色空間の画像データを、出力側デバイス(プリンタ)に依存する色空間(ここではCMYK色空間)の画像データに変換する。
The second color
階調補正処理部207は、1D−LUT を用いて、CMYK各色の階調特性を補正する。ここで1D−LUT とは、CMYKのそれぞれの色について入力階調値に対する出力階調値を規定した1次元のLUT(Look Up Table)のことである。
The gradation
中間調処理部208は、スクリーン処理や誤差拡散処理といった中間調処理(ハーフトーン処理)を行って、2値のCMYK画像データを生成する。
The
続いて、画像処理部105における処理の流れについて説明する。図3は、画像処理部105における処理の流れを示すフローチャートである。なお、この一連の処理は、以下に示す手順を記述したコンピュータ実行可能なプログラムをROMからRAM上に読み込んだ後に、CPU101によって該プログラムを実行することによって実施される。
Next, the flow of processing in the
ステップ301において、画像処理部105は、入力画像データを取得する。このときの入力画像データには、スキャナ部104で原稿を読み取って得られるスキャン画像データと、不図示のPC等から印刷指示と共に送られたプリンタ画像データの2種類がある。なお、本実施例におけるプリンタ画像データは、CMYK色空間の画像データであるものとする。
In
ステップ302において、画像処理部105は、取得した入力画像データの種類を判定する。取得した入力画像データがスキャン画像データであった場合は、当該画像データは像域分離処理部201に送られる(ステップ303に進む)。一方、取得した入力画像データがプリンタ画像であった場合は、当該画像データは階調補正処理部206に送られる(ステップ309へ進む)。
In
ステップ303において、像域分離処理部201は、像域分離処理を行ってスキャン画像から像域情報(本実施例では、ハイライト網点であるかどうかを画素毎に示す1bitのデータ)を生成する。
In step 303, the image area
ステップ304において、第1色変換処理部202は、スキャン画像におけるデバイス依存色空間(RGB)をデバイス非依存色空間(L*a*b*或いはLch)に変換する。
In step 304, the first color
ステップ305において、ACS処理部203は、デバイス非依存色空間に変換されたスキャン画像データに対し、像域情報を用いてACS処理を行う。
In
ステップ306において、フィルタ処理部204は、デバイス非依存色空間に変換されたスキャン画像データに対しフィルタ処理を行う。
In
ステップ307において、下地飛ばし処理部205は、フィルタ処理されたスキャン画像の下地を除去する。
In step 307, the background
ステップ308において、第2色変換処理部206は、下地が除去されたスキャン画像における色空間を、デバイス依存色空間(CMYK)に変換する。
In
ステップ309において、階調補正処理部207は、入力画像データとしてのプリンタ画像或いはステップ303以降の各種処理が施されたスキャン画像に対し、1D−LUTを用いてCMYK各色の階調特性を補正する。
In step 309, the gradation
ステップ310において、中間調処理部208は、所定の中間調処理を行って2値のCMYK画像データを生成する。
In step 310, the
以上が、画像処理部105における処理の流れである。生成された画像データはプリンタ部106等へ出力される。
The above is the processing flow in the
<像域分離処理>
次に、像域分離処理の詳細について説明する。図4は、本実施例に係る像域分離処理の流れを示すフローチャートである。
<Image area separation processing>
Next, details of the image area separation processing will be described. FIG. 4 is a flowchart showing the flow of image area separation processing according to the present embodiment.
ステップ401において、像域分離処理部201は、スキャン画像データから画素値を取得する。本実施例では、スキャン画像はRGB色空間の画像であるため、RGBの各チャンネルの画素値が取得される。
In step 401, the image area
ステップ402において、像域分離処理部201は、取得したスキャン画像の画素値から像域分離の判定用信号を生成する。例えば、取得されたRGB各チャンネルの画素値を用いて、(R+2×G+B)/4の演算を行い、256階調(8bit)のグレースケール画像を判定用信号として生成する。ここで、グレースケールのビット数などは任意である。また、例えばGチャンネルの画素値のみを使用するなど、その他の方法で判定用信号を生成しても構わない。
In
ステップ403において、像域分離処理部201は、処理対象とする注目画素を決定する。
In step 403, the image area
ステップ404において、像域分離処理部201は、決定された注目画素がハイライト網点領域の画素であるかどうかを判定する処理(ハイライト網点領域判定処理)を行なう。ハイライト網点領域判定処理の詳細については後述する。
In step 404, the image area
ステップ405において、像域分離処理部201は、ハイライト網点領域判定処理の判定結果に基づいて像域情報を生成する。生成された像域情報のデータは、メモリ102内のRAM等に保存される。
In
ステップ406において、像域分離処理部201は、まだ処理されていない画素があるかどうかを判定する。未処理の画素があればステップ403に戻って次の画素を注目画素に決定し、ステップ404及びステップ405の処理を繰り返す。
In
以上が、本実施例に係る像域分離処理の内容である。 The above is the content of the image area separation processing according to the present embodiment.
<ハイライト網点領域判定処理>
図5は、上述のステップ404におけるハイライト網点領域判定処理の流れを示すフローチャートである。図5の説明に入る前に、スキャナ部104の解像度が600dpiである場合における、判定対象となるパターンについて説明する。図6は、判定対象パターンの一例を示す表であり、1)ハイライト網点[150線]、2)ハイライト網点[誤差拡散]、3)不純物[大]、4)不純物[小]の4つのパターンについての特性が示されている。
<Highlight dot area determination processing>
FIG. 5 is a flowchart showing the highlight halftone dot region determination process in step 404 described above. Prior to the description of FIG. 5, a pattern to be determined when the resolution of the
ここで、1)及び2)の網点パターンはハイライトの網点領域として検出されるようにしつつ、3)及び4)の不純物パターンはハイライトの網点領域として検出されないようにしなければならない。一般に、紙等の記録媒体に含まれる不純物の大きさはハイライト部の網点と比較して大きいものが多く(図6の「ドット形状」欄を参照)、その一方でその数はハイライト部の網点と比較して少ない(図6の「孤立点数」欄を参照)といえる。本実施例では、このような不純物の特性に基づいて、各画素がハイライトの網点領域の画素かどうかを判定している。 Here, the halftone dot patterns 1) and 2) should be detected as highlight halftone dot areas, while the impurity patterns 3) and 4) should not be detected as highlight halftone dot areas. . In general, the size of impurities contained in a recording medium such as paper is often larger than the halftone dot of the highlight portion (see the “dot shape” column in FIG. 6), while the number of highlights is highlighted. It can be said that the number is smaller than the halftone dots (see the “number of isolated points” column in FIG. 6). In this embodiment, it is determined whether or not each pixel is a pixel in a highlight halftone dot region based on such impurity characteristics.
ステップ501において、像域分離処理部201は、ステップ402で生成された像域分離の判定用信号に対し二値化処理を行う。具体的には、像域分離の判定用信号の画素値と所定の閾値(Th_HiAmi1)とを比較し、画素値が閾値を超えているかどうかを判定することで2値の信号に変換する。この場合の閾値Th_HiAmi1は、特定の紙の白色度に基づいた任意の値とすればよく、例えば再生紙等で一般的に使われている白色度約50%の紙をカラースキャンした時の値の平均値とする。
In step 501, the image area
ステップ502において、像域分離処理部201は、二値化された値を用いて、2×2画素及び1×1画素の孤立点判定処理を行う。図7は、本ステップにおける孤立点判定を説明する図であり、(a)は2×2画素の孤立点判定、同(b)は1×1画素の孤立点判定を示している。2×2画素の孤立点の判定には、注目画素とその周辺画素(4×4画素)の画素値を用いたパターンマッチングを行う。図7の(a)において、領域Aは2×2画素の画素群からなる印刷される領域であり、領域Bは4×4画素の画素群から領域Aの画素を除いた印刷されない領域である。1×1画素の孤立点の判定には、注目画素とその周辺画素(3×3画素)の画素値を用いたパターンマッチングを行う。図7の(b)において、領域Aは印刷される領域(1画素)であり、領域Bは3×3画素の画素群から領域Aの画素を除いた印刷されない領域である。図7の(a)及び(b)における太線の矩形は注目画素を示している。本実施例では、孤立点として判定されるための条件として、領域Aの画素値は全て「1」であり、かつ、領域Bの画素値は全て「0」であることが与えられるものとする。ただし、網点のドットは濃度によって形状が変化するため、例えばパターンマッチングの条件に幅を持たせ、マッチングした結果に対して近似度などのレベルで判定するようにしてもよい。つまり、完全にパターンが一致しなくても、網点領域として判定できるようにすることが望ましい。そして、2×2画素の孤立点判定を行うことで、例えばハイライト部でスクリーン線数150線の網点領域と記録媒体内の2×2画素以上の大きい不純物との切り分けを行うことが可能となる。また、1×1画素の孤立点判定を行うことで、例えばハイライト部で誤差拡散法による網点領域と記録媒体内の2×2画素未満(1×1画素より大きい)の小さな不純物との切り分けを行うことが可能となる。
In
図8〜図10は、それぞれ異なる入力画像(ハイライト網点[150線]:図8(a)、不純物:図9(a)、ハイライト網点[誤差拡散]:図10(a))に対して、ハイライト網点領域判定処理を行なった場合の結果を示す図である。まず、2×2画素の孤立点判定を行った結果は、図8(b)、図9(b)、図10(b)のようになる。スクリーン線数が150線の原稿の場合は、図8(b)に示すように周期的に孤立点が検出される。そして、記録媒体内の不純物は、図9(b)に示すように2×2画素の比較的小さい不純物のみ孤立点として検出される。また、誤差拡散法によるハーフトーン処理された原稿の場合は、図10(b)に示すように孤立点は検出されない。次に、1×1画素の孤立点判定を行った結果は、図8(d)、図9(d)、図10(d)のようになる。スクリーン線数が150線の原稿の場合は、図8(d)に示すように孤立点が検出されない。そして、記録媒体内の不純物は、図9(d)に示すように最も小さい不純物のみ孤立点として検出される。また、誤差拡散法によるハーフトーン処理された原稿の場合は、図10(d)に示すように他の画素と連結されていない画素のみが孤立点として検出される。 8 to 10 show different input images (highlight halftone dot [150 lines]: FIG. 8A, impurities: FIG. 9A, highlight halftone dot [error diffusion]: FIG. 10A). FIG. 8 is a diagram showing a result when highlight dot area determination processing is performed. First, the result of the isolated point determination of 2 × 2 pixels is as shown in FIGS. 8B, 9B, and 10B. In the case of an original with 150 screen lines, isolated points are detected periodically as shown in FIG. As for the impurities in the recording medium, only relatively small impurities of 2 × 2 pixels are detected as isolated points as shown in FIG. 9B. Further, in the case of a document subjected to halftone processing by the error diffusion method, no isolated point is detected as shown in FIG. Next, the results of the 1 × 1 pixel isolated point determination are as shown in FIGS. 8D, 9D, and 10D. In the case of a document having 150 screen lines, no isolated point is detected as shown in FIG. As for the impurities in the recording medium, only the smallest impurities are detected as isolated points as shown in FIG. Further, in the case of a document subjected to halftone processing by the error diffusion method, only pixels that are not connected to other pixels are detected as isolated points as shown in FIG.
ステップ503において、像域分離処理部201は、ステップ502における各孤立点判定結果をそれぞれ積算処理(計数処理)して、所定の領域(積算領域)内の孤立点の総数をそれぞれ導出する。ここでは、所定の領域を16×16画素の領域とするが、その大きさは任意である。例えば2×2画素の孤立点については、網点のスクリーン線数に対応した孤立点数を検出できるような領域であればどのような大きさでも構わない。また、1×1画素の孤立点については、網点面積率を推定できるような領域であればどのような大きさでも構わない。
In
ステップ504において、像域分離処理部201は、ステップ503でカウントされた孤立点の総数と所定の閾値とを比較し、注目画素がハイライト部の網点領域の画素であるかどうかを、2×2画素の孤立点及び1×1画素の孤立点それぞれについて判定する。ここで、2×2画素の孤立点についての所定の閾値(Th_HiAmi2)は、ステップ503における積算領域内の、スクリーン線数が150線で表現できるハーフトーンセルの個数とする。本実施例では、積算領域は16×16画素の領域であり、当該領域内では15個の孤立点の検出が可能となるため、閾値Th_HiAmi2として「15」が設定されることになる。これにより、ステップ503で導出された2×2画素の孤立点の総数が15個であれば、注目画素はハイライト網点領域の画素であると判定されることになる。なお、閾値Th_HiAmi2の値は、ハイライト部の網点領域を判定できる値であればよく、上記以外の値でも構わない。同様に、1×1画素の孤立点についての所定の閾値(Th_HiAmi3)は、ステップ503における積算領域内の面積と判定したい網点面積率から導出される、所定の範囲の孤立点数とする。このように閾値Th_HiAmi3に幅を持たせるのは、以下の理由による。まず、上限値を設けるのは、例えば網点面積率20%のとき20×20画素内では80画素分の印刷領域があるが、誤差拡散法では連結画素が発生し孤立点数が80個にならない可能性があるためである。本実施例では、80個を大きく上回る場合には網点面積率が高いことから高濃度の高線数スクリーンの可能性がでるため、その上限値を80としている。そして、下限値を設けるのは、記録媒体に含まれる不純物の可能性を排除するためである。本実施例では、図6における不純物[小]を正確に識別することを考慮してその数を5個としている。もちろん、上記の上限値と下限値は一例であり、上記以外の範囲に設定しても構わない。
In step 504, the image area
2×2画素の孤立点について、スクリーン線数が150線の原稿の場合は、周期的に孤立点が検出されているためハイライト部の網点領域として判定される(図8(c)を参照)。一方、記録媒体内の不純物の場合は、検出される孤立点数が少ないため、ハイライト部の網点領域として判定されない(図9(c)を参照)。同様に、誤差拡散法によるハーフトーン処理された原稿の場合は、検出される孤立点がないため、ハイライト部の網点領域として判定されない(図10(c)を参照)。 For a 2 × 2 pixel isolated point, in the case of a document having a screen line number of 150 lines, an isolated point is periodically detected, so that it is determined as a halftone dot region of the highlight portion (FIG. 8C). reference). On the other hand, in the case of impurities in the recording medium, since the number of isolated points detected is small, it is not determined as a halftone dot region of the highlight portion (see FIG. 9C). Similarly, in the case of a document subjected to halftone processing by the error diffusion method, since there is no isolated point to be detected, it is not determined as a halftone dot region of a highlight portion (see FIG. 10C).
1×1画素の孤立点について、スクリーン線数が150線の原稿の場合は、孤立点が検出されないためハイライト部の網点領域として判定されない(図8(e)を参照)。一方、記録媒体内の不純物の場合は、小さい不純物が孤立点として検出されるもののその数が少ないため、ハイライト部の網点領域として判定されない(図9(e)を参照)。そして、誤差拡散法によるハーフトーン処理された原稿の場合は、規定の範囲内の数の孤立点が検出されるため、ハイライト部の網点領域として判定される(図10(e)を参照)。 For an isolated point of 1 × 1 pixel, if the document has a screen line number of 150 lines, an isolated point is not detected, so that it is not determined as a halftone dot region of a highlight portion (see FIG. 8E). On the other hand, in the case of impurities in the recording medium, although small impurities are detected as isolated points, the number thereof is small, so that it is not determined as a halftone dot region in the highlight portion (see FIG. 9E). Then, in the case of a document subjected to halftone processing by the error diffusion method, since a number of isolated points within a specified range are detected, it is determined as a halftone dot region of a highlight portion (see FIG. 10E). ).
ステップ505において、像域分離処理部201は、ステップ504における閾値判定の結果を用いて、注目画素がハイライト網点領域の画素かどうかを特定する。具体的には、2×2画素及び1×1画素のいずれかについて、ハイライト網点領域と判定されていれば、その注目画素をハイライト網点領域の画素として特定する。
In
以上が、ハイライト部網点領域判定処理の内容である。このような処理によって、例えばスクリーン線数150線の原稿や誤差拡散法でハーフトーン処理された原稿のパターンはハイライト網点領域と判定され、記録媒体内の不純物はハイライト網点領域ではないと判定されることになる。なお、ハイライト網点領域判定処理は、孤立点判定によって得られた孤立点の個数からハイライト部の網点領域を判定できるのであれば、どのような方法でも構わない。例えば、濃度、スクリーン線数、スクリーンの形状などを考慮した様々なパターンを用いてパターンマッチングを行ってもよい。また、本実施例ではパターンマッチングの入力値として画素値を二値化することで得た2値データを用いたが、フィルタ処理された値を二値化することで得られるエッジ情報を用いても構わない。 The above is the content of the highlight part halftone dot region determination process. By such a process, for example, a document pattern having a screen line number of 150 lines or a halftone-processed document pattern is determined as a highlight halftone area, and impurities in the recording medium are not a highlight halftone area. It will be determined. The highlight halftone dot region determination process may be any method as long as the halftone dot region of the highlight portion can be determined from the number of isolated points obtained by the isolated point determination. For example, pattern matching may be performed using various patterns in consideration of density, screen line number, screen shape, and the like. In this embodiment, binary data obtained by binarizing pixel values is used as an input value for pattern matching. However, edge information obtained by binarizing a filtered value is used. It doesn't matter.
<ACS処理>
次に、スキャンした原稿がカラー原稿かモノクロ原稿かを判定する処理(ACS処理)の詳細について説明する。図11は、ACS処理の流れを示すフローチャートである。このACS処理の結果に応じて、カラーモードの切り替えがなされる。
<ACS processing>
Next, details of processing (ACS processing) for determining whether a scanned document is a color document or a monochrome document will be described. FIG. 11 is a flowchart showing the flow of ACS processing. The color mode is switched according to the result of the ACS processing.
ステップ1101において、ACS処理部203は、上述の像域分離処理で生成された像域情報を用いて、有彩色画素判定処理を行なう。具体的には、像域情報に含まれる判定係数(各画素がハイライト網点領域の画素であるかどうかを表す信号に応じた係数)を用いて、画素毎に有彩色画素か無彩色画素であるかを判定する。図12は、本実施例に係る有彩色画素判定処理の詳細を示すフローチャートである。
In
ステップ1201において、ACS処理部203は、像域情報を取得する。
In step 1201, the
ステップ1202において、ACS処理部203は、前述のステップ304でデバイス非依存色空間に変換された画像データを、有彩色画素判定のための色空間に変換する。本実施例では、L*a*b*色空間に変換する。ただし、LCh、RGB等の色空間に変換しても構わない。
In step 1202, the
ステップ1203において、ACS処理部203は、処理対象とする注目画素を決定する。
In
ステップ1204において、ACS処理部203は、ステップ1201で取得した像域情報に基づいて、注目画素についての有彩色画素判定に用いる係数(閾値)を設定する。具体的には、注目画素がハイライト網点領域の画素であれば、有彩色画素判定に用いる係数を第1の有彩色画素判定係数(閾値Th_C1)に設定し、注目画素がハイライト部の網点領域の画素でなければ第2の有彩色画素判定係数(閾値Th_C2)に設定する。ここで、第1の有彩色画素判定係数と第2の有彩色画素判定係数とでは、第2の有彩色画素判定係数の方が、よりハイライト部の網点を有彩色画素と判定しやすい係数となっている。
In step 1204, the
ステップ1205において、ACS処理部203は、ステップ1204で設定された判定係数を用いて、注目画素が有彩色画素であるか無彩色画素であるかを判定する。図13(a)は第1の有彩色画素判定係数を用いた判定の様子、同(b)は第2の有彩色画素判定係数を用いた判定の様子をそれぞれ示している。図13の(a)及び(b)において、横軸は明度(L*)を示しており、縦軸は彩度(C*)を表している。この場合において、彩度C*は、次の式(1)によって求めることができる。
In step 1205, the
第1の有彩色画素判定係数(閾値Th_C1)を用いた判定では、ステップ1202で変換したL*a*b*値から上記式(1)によって彩度C*を求め、得られた彩度C*が閾値Th_C1以上であるかどうかで、有彩色画素か否かが決定される。すなわち、彩度C*が閾値Th_C1以上であれば有彩色画素と判定され、彩度C*が閾値Th_C1未満であれば無彩色画素と判定される。第2の有彩色画素判定係数(閾値Th_C2)を用いた判定も同様である。図13から明らかなように、第2の有彩色画素判定係数(閾値Th_C2)を用いた場合の方が、第1の有彩色画素判定係数(閾値Th_C1)を用いた場合よりも、有彩色画素であると判定される割合が高い。つまり、閾値Th_C2の場合は、閾値Th_C1の場合であれば無彩色と判定されるような低彩度の値でも有彩色と判定され得ることが分かる。なお、本実施例では、閾値Th_C1及び Th_C2は明度に依存しない一律の値としていたが、明度に応じて異なる値としても構わない。また、閾値Th_C1及び Th_C2を、色相毎に切り替えても構わない。 In the determination using the first chromatic color pixel determination coefficient (threshold Th_C1), the saturation C * is obtained from the L * a * b * value converted in step 1202 by the above equation (1), and the obtained saturation C Whether or not the pixel is a chromatic pixel is determined by whether or not * is greater than or equal to the threshold Th_C1. That is, if the saturation C * is greater than or equal to the threshold Th_C1, it is determined as a chromatic pixel, and if the saturation C * is less than the threshold Th_C1, it is determined as an achromatic pixel. The same applies to the determination using the second chromatic color pixel determination coefficient (threshold value Th_C2). As is apparent from FIG. 13, the chromatic color pixel is more effective when the second chromatic color pixel determination coefficient (threshold Th_C2) is used than when the first chromatic color pixel determination coefficient (threshold Th_C1) is used. A high percentage is determined. That is, in the case of the threshold value Th_C2, it can be seen that even if the threshold value Th_C1, the low chromaticity value that is determined as an achromatic color can be determined as a chromatic color. In the present embodiment, the threshold values Th_C1 and Th_C2 are uniform values that do not depend on the lightness, but may be different values depending on the lightness. Further, the threshold values Th_C1 and Th_C2 may be switched for each hue.
ステップ1206において、ACS処理部203は、ステップ1205における判定結果に基づいて、注目画素が有彩色画素であるのか無彩色画素であるのかを示すデータを像域情報に付加する。この場合のデータとしては、たとえば画素毎に有彩色画素であるかどうかを示す1bit(有彩色画素であれば「1」、無彩色画素であれば「0」)のデータとすればよい。
In step 1206, the
ステップ1207において、ACS処理部203は、まだ処理されていない画素があるかどうかを判定する。未処理の画素があればステップ1203に戻って次の画素を注目画素に決定し、ステップ1204〜ステップ1206の処理を繰り返す。
In step 1207, the
以上が、本実施例における有彩色画素判定処理の内容である。上述のとおり、原稿内のハイライト網点領域についてはそれ以外の領域に比べて有彩色画素と判定されやすくなっているので、ハイライト網点を有する原稿のACS判定の精度が向上する。 The above is the content of the chromatic color pixel determination process in the present embodiment. As described above, the highlight halftone dot area in the original is more easily determined as a chromatic pixel than the other areas, so that the accuracy of the ACS determination of the original having the highlight halftone is improved.
図11のフローチャートの説明に戻る。 Returning to the flowchart of FIG.
ステップ1102において、ACS処理部203は、所定の単位領域毎に有彩色画素と判定された画素の数を求める積算処理を行なう。ここでは、所定の単位領域を100×100画素の領域とする。なお、単位領域の大きさは任意であり、例えば10ポイントの文字をカラー原稿と判定できる大きさにしても構わないが、1つのハーフトーンセルの領域よりも大きな領域とする必要がある。
In step 1102, the
ステップ1103において、ACS処理部203は、ステップ1102で求めた有彩色画素数に基づいて、入力されたスキャン画像データに係る原稿がカラー原稿かどうかを判定する。具体的には、単位領域当たりの有彩色画素数が所定の閾値(Th_ACS)で与えられる数を超えていれば、カラー原稿であると判定する。ここで、閾値Th_ACSは、スキャナ部104のMTF等の特性によるハイライト網点への影響度を考慮して決められるものであり、本実施例では、単位領域内で表現できる網点面積率20%のハイライト網点の画素数とする。
In step 1103, the
ステップ1104において、ACS処理部203は、ステップ1103における判定結果に応じて、カラーモードを設定する。具体的には、カラー原稿であると判定された場合は、カラーモードをフルカラーに設定し、本処理を終了する。一方、カラー原稿ではない(モノクロ原稿である)と判定された場合は、カラーモードをモノクロに設定し、入力されたスキャン画像データをモノクロ変換して、本処理を終了する。
In step 1104, the
以上が、本実施例に係るACS処理の内容である。 The above is the content of the ACS processing according to the present embodiment.
本実施例によれば、記録媒体の品質に依存することのない高精度なACS判定が可能となる。 According to the present embodiment, it is possible to perform the ACS determination with high accuracy without depending on the quality of the recording medium.
実施例1では、パターンマッチングを用いてハイライト部の網点領域と記録媒体内の不純物とを切り分けていた。次に、記録媒体上の不純物の領域を抽出し、抽出された不純物領域については有彩色画素と判定しないようにする態様について、実施例2として説明する。なお、画像処理部105の内部構成や基本的な処理の流れ(図3)といった実施例1と共通する内容についてはその説明を省略し、以下では実施例1との差異点であるACS処理における有彩色画素判定処理を中心に説明するものとする。
In the first embodiment, the dot area of the highlight portion and the impurities in the recording medium are separated using pattern matching. Next, an embodiment in which an impurity region on a recording medium is extracted and the extracted impurity region is not determined as a chromatic pixel will be described as a second embodiment. Note that the description of the contents common to the first embodiment such as the internal configuration of the
図14は、本実施例に係る有彩色画素判定処理の詳細を示すフローチャートである。 FIG. 14 is a flowchart illustrating details of the chromatic color pixel determination processing according to the present embodiment.
ステップ1401において、ACS処理部203は、像域情報を取得する。本実施例において取得される像域情報には、ハイライト網点を特定する示すデータに加え、不純物を特定するデータも含まれる。不純物を特定するデータは、前述のハイライト網点領域判定処理における閾値判定(ステップ504)において、所定の閾値を満たさないと判定された2×2画素及び1×1画素の孤立点に対応する画素を特定可能な、例えば1bitのデータである。
In step 1401, the
ステップ1402において、ACS処理部203は、デバイス非依存色空間に変換されている画像データを、有彩色画素判定のための色空間に変換する。
In
ステップ1403において、ACS処理部203は、処理対象とする注目画素を決定する。
In step 1403, the
ここまでの各処理は、実施例1に係る図12のフローチャートのステップ1201〜ステップ1203にそれぞれ対応する。 Each process so far corresponds to step 1201 to step 1203 in the flowchart of FIG. 12 according to the first embodiment.
ステップ1404において、ACS処理部203は、注目画素が有彩色画素であるかどうかを、所定の判定係数に従って判定する。すなわち、実施例1と異なり、注目画素の属性に応じた判定係数の設定は行なわない。なお、本ステップにおける判定係数としては、ハイライト部の網点領域を有彩色画素と判定できるような値であればどのような値でも構わない。
In step 1404, the
ステップ1405において、ACS処理部203は、ステップ1204における判定結果及びステップ1401で取得した像域情報を参照し、注目画素が有彩色画素かつ不純物画素であるかどうかを判定する。注目画素が有彩色画素かつ不純物画素であった場合は、ステップ1406に進む。一方、それ以外の場合(注目画素が無彩色画素であった場合や不純物画素ではなかった場合)は、ステップ1407に進む。
In step 1405, the
ステップ1406において、ACS処理部203は、有彩色画素かつ不純物画素と判定された注目画素の属性を無彩色画素に変更する。
In
ステップ1907において、ACS処理部203は、ステップ1204における判定結果及びステップ1406における変更結果に基づいて、注目画素が有彩色画素であるのか無彩色画素であるのかを示すデータ(例えば1bit)を像域情報に付加する。
In step 1907, the
ステップ1408において、ACS処理部203は、まだ処理されていない画素があるかどうかを判定する。未処理の画素があればステップ1403に戻って次の画素を注目画素に決定し、ステップ1404〜ステップ1407の処理を繰り返す。
In step 1408, the
以上が、本実施例における有彩色画素判定処理の内容である。このような処理により、記録媒体から抽出された不純物領域についてはすべて無彩色画素として扱われる。 The above is the content of the chromatic color pixel determination process in the present embodiment. By such processing, all impurity regions extracted from the recording medium are treated as achromatic pixels.
本実施例によれば、記録媒体における不純物領域を特定し、当該特定された不純物領域については有彩色画素として扱わないようにしている。これにより、記録媒体に含まれる不純物に影響されないACS処理が可能となる。 According to the present embodiment, an impurity region in the recording medium is specified, and the specified impurity region is not handled as a chromatic color pixel. As a result, ACS processing that is not affected by impurities contained in the recording medium can be performed.
(その他の実施例)
本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施例の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other examples)
The present invention is also realized by executing the following processing. That is, software (program) for realizing the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.
Claims (7)
前記検出手段で検出された孤立点の数を、注目画素を含む所定の領域でカウントする計数手段と、
前記計数手段でカウントされた前記孤立点の数が第1の閾値を超えたかどうかを判定する判定手段と、
前記判定手段における判定結果に応じて、前記注目画素が有彩色か無彩色かを判定する際の第2の閾値を設定する設定手段と、
を有し、
前記計数手段でカウントされた前記孤立点の数が前記第1の閾値を超えたと前記判定手段で判定された場合に前記設定手段によって設定される前記第2の閾値は、前記計数手段でカウントされた前記孤立点の数が前記第1の閾値を超えなかったと前記判定手段で判定された場合に前記設定手段によって設定される前記第2の閾値よりも、注目画素が有彩色と判定されやすい閾値である
ことを特徴とする画像処理装置。 Detection means for detecting isolated points from image data;
Counting means for counting the number of isolated points detected by the detection means in a predetermined area including the target pixel;
Determining means for determining whether the number of isolated points counted by the counting means exceeds a first threshold;
Setting means for setting a second threshold value for determining whether the target pixel is a chromatic color or an achromatic color according to a determination result in the determination means;
Have
The second threshold set by the setting unit when the determination unit determines that the number of isolated points counted by the counting unit exceeds the first threshold is counted by the counting unit. A threshold value that makes it easier for the pixel of interest to be determined as a chromatic color than the second threshold value set by the setting means when the determination means determines that the number of isolated points has not exceeded the first threshold value. An image processing apparatus characterized by the above.
前記検出ステップで検出された孤立点の数を、注目画素を含む所定の領域でカウントする計数ステップと、
前記計数ステップでカウントされた前記孤立点の数が第1の閾値を超えたかどうかを判定する判定ステップと、
前記判定ステップにおける判定結果に応じて、前記注目画素が有彩色か無彩色かを判定する際の第2の閾値を設定する設定ステップと、
を有し、
前記計数ステップでカウントされた前記孤立点の数が前記第1の閾値を超えたと前記判定ステップで判定された場合に前記設定ステップで設定される前記第2の閾値は、前記計数ステップでカウントされた前記孤立点の数が前記第1の閾値を超えなかったと前記判定ステップで判定された場合に前記設定ステップで設定される前記第2の閾値よりも、注目画素が有彩色と判定されやすい閾値である
ことを特徴とする画像処理方法。 A detection step of detecting isolated points from the image data;
A counting step of counting the number of isolated points detected in the detection step in a predetermined area including the target pixel;
A determination step of determining whether the number of isolated points counted in the counting step exceeds a first threshold;
A setting step for setting a second threshold value when determining whether the pixel of interest is a chromatic color or an achromatic color according to a determination result in the determination step;
Have
When the determination step determines that the number of isolated points counted in the counting step exceeds the first threshold, the second threshold set in the setting step is counted in the counting step. Further, when the determination step determines that the number of isolated points has not exceeded the first threshold value, the threshold value at which the target pixel is more likely to be determined as a chromatic color than the second threshold value set in the setting step An image processing method characterized by the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014019478A JP2015146557A (en) | 2014-02-04 | 2014-02-04 | Image processing apparatus, image processing method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014019478A JP2015146557A (en) | 2014-02-04 | 2014-02-04 | Image processing apparatus, image processing method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2015146557A true JP2015146557A (en) | 2015-08-13 |
Family
ID=53890599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014019478A Pending JP2015146557A (en) | 2014-02-04 | 2014-02-04 | Image processing apparatus, image processing method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2015146557A (en) |
-
2014
- 2014-02-04 JP JP2014019478A patent/JP2015146557A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7227990B2 (en) | Color image processing device and color image processing method | |
US7903872B2 (en) | Image-processing apparatus and method, computer program, and storage medium | |
JP4700721B2 (en) | Image processing device | |
KR101172399B1 (en) | Image forming apparatus and image improvement method thereof | |
US10194050B2 (en) | Image processing apparatus, image processing method, and storage medium in which background removal is performed to remove a background included in an input image based on pixel values | |
EP2670125A1 (en) | Image processing device correcting color of border region between object and background in image | |
JP2007013551A (en) | Image processing apparatus and image processing method | |
US20170094098A1 (en) | Image forming apparatus, storage medium, and color conversion method | |
KR101756277B1 (en) | Image forming apparatus and method for processing image thereof | |
JP6923037B2 (en) | Image processing equipment, image processing methods and programs | |
US11503188B2 (en) | Image processing apparatus, control method for controlling image processing apparatus, and storage medium | |
JP2015015599A (en) | Image processing apparatus, image forming apparatus, image processing method, and program and recording medium of the same | |
JP4771428B2 (en) | Image processing apparatus, image processing method, program, and recording medium | |
US20170366707A1 (en) | Image Processing Apparatus and Image Processing Method That Ensure Improved Visibility of Character After Conversion into Monochrome Image Data, and Recording Medium Therefor | |
EP3331233B1 (en) | Image processing device | |
JP6486082B2 (en) | Image processing apparatus, image processing method, and program | |
JP6015698B2 (en) | Image processing apparatus and program executed by image processing apparatus | |
JP2015146557A (en) | Image processing apparatus, image processing method, and program | |
JP7077925B2 (en) | Image processing equipment, image processing methods, and programs | |
JP5090969B2 (en) | Image processing device | |
JP6350877B2 (en) | Image forming apparatus | |
JP6414710B2 (en) | Image processing device | |
JP2023112514A (en) | Image processing apparatus, method for controlling the same, and program | |
JP2018174419A (en) | Image processing apparatus and computer program | |
JP2017098826A (en) | Image processing apparatus, image forming apparatus, image processing method, and program |