JP2021013100A - Image processing device, image processing method, and program - Google Patents
Image processing device, image processing method, and program Download PDFInfo
- Publication number
- JP2021013100A JP2021013100A JP2019126398A JP2019126398A JP2021013100A JP 2021013100 A JP2021013100 A JP 2021013100A JP 2019126398 A JP2019126398 A JP 2019126398A JP 2019126398 A JP2019126398 A JP 2019126398A JP 2021013100 A JP2021013100 A JP 2021013100A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- image
- color
- threshold value
- metallic
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 116
- 238000003672 processing method Methods 0.000 title claims description 3
- 230000001678 irradiating effect Effects 0.000 claims abstract description 9
- 238000000034 method Methods 0.000 claims description 79
- 238000012937 correction Methods 0.000 claims description 22
- 238000006243 chemical reaction Methods 0.000 claims description 16
- BQCADISMDOOEFD-UHFFFAOYSA-N Silver Chemical compound [Ag] BQCADISMDOOEFD-UHFFFAOYSA-N 0.000 claims description 10
- 229910052709 silver Inorganic materials 0.000 claims description 10
- 239000004332 silver Substances 0.000 claims description 10
- 239000000463 material Substances 0.000 claims description 9
- 239000003086 colorant Substances 0.000 claims description 4
- 238000004040 coloring Methods 0.000 claims description 4
- 239000002932 luster Substances 0.000 abstract description 97
- 229910052727 yttrium Inorganic materials 0.000 description 17
- 238000010586 diagram Methods 0.000 description 8
- 238000003705 background correction Methods 0.000 description 7
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 6
- 229910052737 gold Inorganic materials 0.000 description 6
- 239000010931 gold Substances 0.000 description 6
- 238000005259 measurement Methods 0.000 description 4
- 239000011159 matrix material Substances 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 239000004743 Polypropylene Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- -1 polypropylene Polymers 0.000 description 2
- 229920001155 polypropylene Polymers 0.000 description 2
- 230000003746 surface roughness Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 239000002184 metal Substances 0.000 description 1
- 229910052751 metal Inorganic materials 0.000 description 1
- 229910052755 nonmetal Inorganic materials 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
Images
Abstract
Description
本発明は、画像処理装置、画像処理方法、およびプログラムに関する。 The present invention relates to an image processing apparatus, an image processing method, and a program.
画像読取装置としては、イメージセンサを用いたイメージスキャナが知られている。画像の読み取りを行う場合、光源を原稿に照射し原稿からの反射光を読み取るが、原稿そのものの光沢性や平滑性の違いによる影響を受けにくくするために正反射成分の反射光ではなく拡散反射成分の反射光を読み取るのが一般的である。 As an image reading device, an image scanner using an image sensor is known. When scanning an image, the original is irradiated with a light source to read the reflected light from the original, but in order to make it less susceptible to the difference in gloss and smoothness of the original itself, it is diffusely reflected instead of the reflected light of the specular component. It is common to read the reflected light of the component.
特許文献1では原稿に金色や銀色等の光沢性が非常に高い金属色が記録されている際に金属色を良好な色で読み取るための方法が提案されている。この方法では拡散反射成分の反射光を読み取ることで得られる画像と、原稿からの反射光を乱反射させることで正反射成分の反射光を取り入れた状態の反射光を読み取ることで得られる画像との色成分毎の差分によって金属光沢領域か否かの判定をしている。光沢性の非常に高い金属色は正反射成分が非常に多く、拡散反射成分が著しく少なくなるため、一般的な画像読取装置で得られる画像は見た目の印象よりも暗くなってしまう。しかし、特許文献1では金属色の領域は乱反射させて正反射成分の反射光を取り入れた状態の反射光を読み取ることで得られる画像を用いることで良好な色で読み取ることが可能となる。
しかしながら、金色や銀色等の金属色が記録されている原稿の紙種によっては、読み取りの結果、金属色ではない色が記録されている領域を金属色であると誤判定してしまうことがある。特許文献1では金属色の正反射成分の反射光が多く、拡散反射成分の反射光が少ないことを利用して2つの画像の色成分毎の差分を取り、閾値と比較することで判定を行っている。しかし、光沢紙のような反射率の高い紙種の場合、金属色ではない色でも紙による反射によって金属色程の強度ではなくとも正反射成分の反射光は多くなり、拡散反射成分の反射光は少なくなる。この場合、金属色ではない色が記録されている領域でも金属色であると誤判定されてしまう。
However, depending on the paper type of the document on which a metallic color such as gold or silver is recorded, as a result of scanning, the area where a color other than the metallic color is recorded may be erroneously determined to be the metallic color. .. In
そこで、本発明は、当該原稿の読み取りデータに対し、金属光沢領域の判定を良好に行うことを目的とする。 Therefore, an object of the present invention is to satisfactorily determine the metallic luster region with respect to the read data of the original document.
上記課題を解決するために本願発明は以下の構成を有する。すなわち、画像処理装置であって、原稿に光を照射し、拡散反射成分の反射光の読み取りによって得られる第1の画像データを取得する第1の取得手段と、前記原稿に光を照射し、正反射成分の反射光を取り入れた状態の反射光の読み取りによって得られる第2の画像データを取得する第2の取得手段と、前記原稿の紙種に関連する情報に基づき、色情報に対する閾値を設定する設定手段と、前記第1の画像データと前記第2の画像データの色情報の差分と、前記設定手段にて設定された閾値との比較の結果に基づいて前記原稿の画像データに含まれる画素が金属色かを判定する判定手段と、を有する。 In order to solve the above problems, the present invention has the following configuration. That is, in the image processing apparatus, the first acquisition means for irradiating the document with light and acquiring the first image data obtained by reading the reflected light of the diffused reflection component, and the document with light. Based on the second acquisition means for acquiring the second image data obtained by reading the reflected light in the state of incorporating the reflected light of the positive reflection component and the information related to the paper type of the original, the threshold value for the color information is set. It is included in the image data of the manuscript based on the result of comparison between the setting means to be set, the difference between the color information of the first image data and the second image data, and the threshold value set by the setting means. It has a determination means for determining whether or not the pixel to be light is metallic.
本発明により、当該原稿の読み取りデータに対し、金属光沢領域の判定が良好なものとなる。 According to the present invention, the determination of the metallic luster region is good with respect to the scanned data of the original document.
以下、添付図面を参照して本発明の実施形態を詳しく説明する。尚、以下の実施形態は特許請求の範囲に係る本発明を限定するものでなく、また本実施形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。なお、同一の構成要素には同一の参照番号を付して、説明を省略する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the following embodiments do not limit the present invention according to the claims, and not all combinations of features described in the present embodiment are essential for the means for solving the present invention. .. The same components are given the same reference numbers, and the description thereof will be omitted.
<第1の実施形態>
[装置構成]
図1は、本実施形態に係る画像処理装置として適用可能な読取装置100の概観斜視図である。ここでは、読取装置100として、いわゆるフラットベッドタイプのスキャナを例に挙げて説明する。図1に示すように、読取装置100は、セットした原稿を押さえるための原稿台カバー101、原稿を置くための原稿台102、およびセットした原稿を読み取るための原稿読取ユニット103を含む。ユーザーが原稿台102の上に原稿を置き、原稿台カバー101を閉じ、スキャナボタンキー104を押下すると、原稿読取ユニット103は原稿の読み取りを開始する。スキャナボタンキー104は、読み取りモードによってそれぞれボタンが割り当てられており、ユーザーは使用したいモードに応じてボタンを押下する。本実施形態に係る読取装置100は、原稿をカラーで読み取ることができるカラースキャンモード、原稿をモノクロで読み取ることができるモノクロスキャンモード、金色や銀色等の金属色が記録された原稿を読み取ることができるメタリックスキャンモードを有する。なお、本実施形態では、金属色以外の色を非金属色と称する。本実施形態では、メタリックスキャンモードについて説明するものとし、カラースキャンモードおよびモノクロスキャンモードについては説明を省略する。
<First Embodiment>
[Device configuration]
FIG. 1 is an overview perspective view of a
図2は、読取装置100による原稿を読み取る動作を表した図である。原稿読取ユニット103はモーター(不図示)により駆動される。例えば、原稿読取ユニット103は、所定方向に沿ったラインセンサにて構成され、その所定方向に直交する方向にモーター(不図示)により駆動されつつ、原稿に対する読み取りを行う。原稿読取ユニット103内に設置されている光源201から原稿に照射され、原稿から反射された拡散反射成分の光をロッドレンズアレイ202に通し、反射信号を検出するセンサー203により読み取る。
FIG. 2 is a diagram showing an operation of reading a document by the
図3は、読取装置100の内部構成の例を示すブロック図である。CPU301は、読取装置100の動作を制御する。ROM302は、不揮発性の記憶領域であり、CPU301の制御および他の各部の動作を実行するための各種プログラムを格納している。例えば、後述する本願発明に係る各種処理のフローチャートにおける処理に対応するプログラムがROM302に格納されている。CPU301は、ROM302に格納されたプログラムを読み出して実行することにより、各種処理を実現する。また、ROM302には、後述のシェーディング補正などの画像処理に使用される様々な値、テーブルおよびデータが格納されている。
FIG. 3 is a block diagram showing an example of the internal configuration of the
スキャンユニット303は、原稿から画像を読み取り、取得した読み取り信号値(赤(R)、緑(G)および青(B)のアナログ輝度データ)をAD変換によりデジタル化して出力する。画像処理部304は、AD変換によりデジタル化された読み取り信号値の補正、画像の符号化などの画像処理を行う。画像処理の際、データの一時的な格納が必要となる場合は、RAM308が使用される。オペレーションユニット305は、スキャナボタンキー(不図示)を備え、キーの押下状態を検出し、各部に各キーに対応する指示を送信する。ドライブユニット306は、スキャンユニット303を動作させるため、モーター制御するドライバ回路などを含む。PCインタフェース307はPC(Personal Computer)などの外部装置とのインタフェースであり、読取装置100はPCインタフェース307を介して外部装置とのデータ転送を行う。外部装置へのデータ転送の際にバッファが必要となる場合は、RAM308が使用される。
The
[処理フロー]
図4は、本実施形態係る読取装置100の画像処理部304で実行される画像処理のフローチャートである。
[Processing flow]
FIG. 4 is a flowchart of image processing executed by the
S401にて、画像処理部304は、スキャンユニット303で読み取られ、AD変換された画像データに対し、シェーディング補正を行う。シェーディング補正は、予め用意された白基準と黒基準をセンサー203にて読み取り、センサー203の撮像素子毎の読み取り値から、補正を行いスキャンユニット303における撮像素子のばらつきを補正する処理である。
In S401, the
S402にて、画像処理部304は、シェーディング補正後の画像データに対し、ガンマ補正を行う。ガンマ補正は、読取装置100で得られた画像の輝度値が自然な値となるように輝度値を補正する処理であり、ROM302に予め保持しているガンマ値テーブル(不図示)を用いて行うことができる。
In S402, the
なお、上記シェーディング補正とガンマ補正は、それぞれ本実施形態における読み取り動作を行う度に実行される。以下、説明上の便宜のために、図5のフローチャートにおいては上記シェーディング補正およびガンマ補正の記載を省略する。また、シェーディング補正とガンマ補正は公知の方法を用いてよく、ここでの詳細な説明は省略する。 The shading correction and the gamma correction are executed each time the reading operation in the present embodiment is performed. Hereinafter, for convenience of explanation, the description of the shading correction and the gamma correction will be omitted in the flowchart of FIG. Further, a known method may be used for shading correction and gamma correction, and detailed description thereof will be omitted here.
(メタリックスキャンモードにおける読取動作)
図5は、本実施形態の特徴であるメタリックスキャンモードにおける読取動作を実行するためのフローチャートである。本処理において、金属光沢領域の判定および読み取り画像生成が行われる。金属光沢領域は金属色の画素から構成される領域を示し、非金属光沢領域は非金属色の画素から構成される領域を示すものとする。図5の処理フローは、ROM302に記憶されたプログラムに従って、スキャンユニット303と画像処理部304によって実行される。本実施形態では、読取装置100が備えるスキャナボタンキー104のうち、メタリックスキャンモードに対応するボタンキーが押下されたことに応じて、本処理フローが開始される。
(Reading operation in metallic scan mode)
FIG. 5 is a flowchart for executing the reading operation in the metallic scan mode, which is a feature of the present embodiment. In this process, the metallic luster region is determined and the scanned image is generated. The metallic luster region indicates a region composed of metallic color pixels, and the non-metallic luster region indicates an region composed of non-metallic color pixels. The processing flow of FIG. 5 is executed by the
S501にて、CPU301は、通常スキャンとして、原稿台102に設置された原稿の読み取りを、スキャンユニット303に実行させる。本ステップの読み取りの目的は、原稿の拡散反射成分の反射光による画像の取得である。
In S501, the
S502にて、CPU301は、乱反射スキャンとして、原稿台102に設置された原稿の読み取りを、スキャンユニット303に実行させる。本ステップの読み取りの目的は、原稿の正反射成分の反射光を取り入れた状態の反射光による画像の取得である。なお、正反射成分の反射光を取り入れるためには原稿台102と原稿の間に透明性が高く、光を乱反射させる部材を用いる必要がある。本実施形態においては薄いポリプロピレン製のシートを置いて読み取りを行うことで正反射成分の反射光を取り入れることとする。例えば、乱反射スキャン時において、読取装置100がモータ(不図示)を駆動することで、原稿読取ユニット103と原稿の間にシート(不図示)を設置するような構成であってもよい。または、ユーザーにシートを原稿台102上に設置させてもよい。
In S502, the
S503にて、画像処理部304は、S501で読み取られた画像を用いてS504で使用する閾値を設定する。本実施形態では、画像から原稿の表面平滑度を決定することにより、適した閾値を設定する。まず、画像における紙白領域を特定するために、画像を所定数の区画に分割し、区画毎の平均信号値を算出し、算出した平均信号値に基づいて紙白区画を判定する。
In S503, the
次に、判定された紙白区画から紙面の表面状態を読み取り、表面粗さや表面形状などに基づいて表面平滑度を決定する。具体的には、表面凹凸の深さを表面粗さ、表面凹凸の周期を表面形状の特徴とし、これらの特徴に着目して表面平滑度を決定する。例えば、半光沢紙と光沢紙を比較すると、半光沢紙は表面凹凸が深くて凹凸の周期が低い特徴がある。この特徴に基づき、紙白区画内の輝度差を算出することで凹凸深度の推定を行う。また、紙白区画を二値化し、その変化回数で凹凸周期の検知を行う。これにより求められた凹凸深度と凹凸周期により、表面平滑度を決定する。なお、原稿の表面平滑度を決定する方法としては他にもランレングスを利用した凹凸周期の検知や、ヒストグラムによる凹凸深度の推定を行う方法を用いてもよい。 Next, the surface state of the paper surface is read from the determined white paper section, and the surface smoothness is determined based on the surface roughness, the surface shape, and the like. Specifically, the depth of the surface unevenness is defined as the surface roughness, and the period of the surface unevenness is defined as the characteristic of the surface shape, and the surface smoothness is determined by paying attention to these characteristics. For example, comparing semi-glossy paper and glossy paper, semi-glossy paper is characterized by deep surface irregularities and a low irregularity cycle. Based on this feature, the unevenness depth is estimated by calculating the brightness difference in the white paper section. In addition, the white paper section is binarized, and the unevenness cycle is detected based on the number of changes. The surface smoothness is determined by the unevenness depth and the unevenness period obtained by this. As a method for determining the surface smoothness of the original, another method of detecting the unevenness period using the run length or estimating the unevenness depth by the histogram may be used.
決定された表面平滑度を基にROM302に予め保持している複数の閾値の中から設定を行う。表面平滑度が高い(すなわち、光沢紙に相当する)場合、閾値Th_L1に設定する。一方、表面平滑度が低い(すなわち、半光沢紙に相当する)場合、閾値Th_L2に設定する。原稿の表面平滑度が高い方が正反射成分の反射光が拡散反射成分の反射光に比べて強くなるため、閾値は高くする必要がある。つまり、閾値Th_L1と閾値Th_L2では閾値Th_L1の方が高い値を設定されていることとする(Th_L1>Th_L2)。
Based on the determined surface smoothness, a setting is made from a plurality of threshold values held in advance in the
なお、紙白区画の判定の結果、紙白区画がない場合は区画毎の平均信号値が一番明るい区画を紙白に近い区画として選択することで処理を行ってよい。また、全面が金属光沢領域の場合、全ての区画が同じように暗くなってしまうが、この場合は表面平滑度を決定せず、低い閾値を設定してよい。本実施形態の場合、閾値Th_L2を設定してよい。低い閾値を設定することで表面状態によらず、金属光沢領域を判定することが可能になる。 If there is no white paper section as a result of the determination of the white paper section, the process may be performed by selecting the section having the brightest average signal value for each section as the section close to the white paper. Further, when the entire surface is a metallic luster region, all the sections are similarly darkened. In this case, the surface smoothness may not be determined and a low threshold value may be set. In the case of this embodiment, the threshold value Th_L2 may be set. By setting a low threshold value, it becomes possible to determine the metallic luster region regardless of the surface condition.
S504にて、画像処理部304は、S501で通常スキャンにより読み取られた画像と、S502で乱反射スキャンにより読み取られた画像とから、金属光沢領域か否かの判定処理を行う。判定処理は画素単位で行われ、2つの画像の同じ座標の画素を比較することで判定される。判定方法の詳細は、図6を用いて後述する。
In S504, the
S505にて、画像処理部304は、S504で判定された結果を基に読み取り画像を生成する。生成方法の詳細は、図8を用いて後述する。
In S505, the
(金属光沢領域判定処理)
以下、図5のS504における金属光沢領域判定処理の詳細について説明する。図6は、本実施形態に係る金属光沢領域判定のフローチャートである。
(Metallic luster area judgment processing)
Hereinafter, details of the metallic luster region determination process in S504 of FIG. 5 will be described. FIG. 6 is a flowchart for determining the metallic luster region according to the present embodiment.
S601にて、画像処理部304は、S501で取得した通常スキャンの画像とS502で取得した乱反射スキャンの画像それぞれの座標(X、Y)の画素(着目画素)の信号値(R、G、B)を明度に変換する。本実施形態では、RGB信号値を色情報の1つである明度に変換する方法として下記の式(1)に示すようにHLS色空間の明度Lを用いる。なお、これに限定するものではなく、HSV色空間やLab色空間の明度に変換してもよい。式(1)において関数MAX()は、複数の引数の値のうちの最大値を出力する関数である。また、関数MIN()は、複数の引数の値のうちの最小値を出力する関数である。
・・・式(1)
本実施形態において、画像の所定の位置を原点(0,0)とし、その座標の画素から順に着目画素として処理を行うものとする。
In S601, the
... Equation (1)
In the present embodiment, a predetermined position of the image is set as the origin (0,0), and processing is performed as the pixel of interest in order from the pixel at that coordinate.
S602にて、画像処理部304は、S601で明度に変換された2つの画像の信号値の比較を行う。図7(a)は、光沢紙に記録された金属光沢領域において、光源201から照射された光が反射する様子を示す図である。光が照射された位置が金属光沢領域である場合、正反射成分の反射光が非常に多く、拡散反射成分の反射光が著しく少なくなる。ここでは反射光の量を、矢印の長さにて概念的に示している。
In S602, the
図7(b)は、光沢紙に記録された非金属光沢領域において、光源201から照射された光が反射する様子を示す図である。光が照射された位置が非金属光沢領域である場合、正反射成分の反射光が金属光沢領域よりも少なく、拡散反射成分の反射光が金属光沢領域よりも多くなる。このことから、正反射成分の反射光を取り入れた乱反射スキャンの読み取り画像と通常スキャンの読み取り画像の明度差は、非金属光沢領域よりも金属光沢領域の方が大きくなる。従って、乱反射スキャンと通常スキャンの明度で差分をとり、S503で設定した閾値よりも明度差が大きい場合(S602にてYES)S603へ進む。一方、閾値よりも乱反射スキャンと通常スキャンの明度差が、S503で設定した閾値よりも小さい場合(S602にてNO)S604へ進む。
FIG. 7B is a diagram showing how the light emitted from the
本実施形態ではS602で適用する閾値として、S503で設定した閾値を適用している。図7(c)は、半光沢紙に記録された金属光沢領域において、光源201から照射された光が反射する様子を示す図である。また、図7(d)は、半光沢紙に記録された非金属光沢領域において、光源201から照射された光が反射する様子を示す図である。上述したように、半光沢紙は光沢紙よりも紙の表面に凹凸があるため、反射光が拡散してしまい、正反射成分の反射光と拡散反射成分の反射光の差分が少ない。
In the present embodiment, the threshold value set in S503 is applied as the threshold value applied in S602. FIG. 7C is a diagram showing how the light emitted from the
閾値Th_L1は、図7(b)のような平滑度が高い領域が金属光沢領域と判定されないようにするため、比較的高い値が設定されている。一方、半光沢紙に閾値Th_L1を用いるとその値が高いため、図7(c)に示すような金属光沢領域を非金属光沢領域と誤判定してしまうことがある。従って、光沢紙のような平滑度の高い場合に適用する閾値Th_L1よりも、半光沢紙のような平滑度の低い場合に適用する閾値Th_L2の方が低い値になるように予め設定される。これにより、どちらの原稿に対しても良好な領域判定を行うことができる。 The threshold value Th_L1 is set to a relatively high value so that a region having high smoothness as shown in FIG. 7B is not determined as a metallic luster region. On the other hand, when the threshold value Th_L1 is used for the semi-glossy paper, the value is high, so that the metallic luster region as shown in FIG. 7C may be erroneously determined as the non-metallic luster region. Therefore, the threshold value Th_L2 applied when the smoothness is low such as semi-glossy paper is set to be lower than the threshold value Th_L1 applied when the smoothness is high such as glossy paper. As a result, good area determination can be performed for both documents.
S603にて、画像処理部304は、該当画素(X、Y)を金属光沢領域であると判定する。そして、S605へ進む。
In S603, the
S604にて、画像処理部304は、該当画素(X、Y)を非金属光沢領域であると判定する。そして、S605へ進む。
In S604, the
S605にて、画像処理部304は、全ての画素について処理が終了したか否かの判定を実行する。全ての画素に対して処理が終了していない場合(S605にてNO)S601に戻り、未処理の画素を対象として処理を繰り返す。ここでは、画素の座標値であるX、Yの値を更新することで、未処理の画素に対する処理が繰り返される。全ての画素に対する処理が完了した場合(S605にてYES)本処理フローを終了する。
In S605, the
(読み取り画像生成処理)
以下、図5のS505における読み取り画像生成処理の詳細について説明する。図8は、本実施形態に係る読み取り画像生成のフローチャートである。
(Read image generation process)
Hereinafter, the details of the scanned image generation process in S505 of FIG. 5 will be described. FIG. 8 is a flowchart of reading image generation according to the present embodiment.
S801にて、画像処理部304は、画像における座標(X,Y)の画素に対し、図6にて説明した金属光沢領域判定処理の判定結果に基づいて、当該画素が金属光沢領域か否かを判定する。金属光沢領域である場合には(S801にてYES)S802へ進み、非金属光沢領域である場合には(S801にてNO)S803へ進む。ここでは、図6の処理と同様、画像の所定の位置を原点(0,0)とし、その座標の画素から順に着目画素として処理を行うものとする。
In S801, the
S802にて、画像処理部304は、金属光沢領域であると判定された画素(X、Y)に対し、S502における乱反射スキャンによって得られた画像の信号値(R、G、B)を読み取り画像(画素値)として生成する。そして、S804へ進む。
In S802, the
S803にて、画像処理部304は、非金属光沢領域であると判定された画素(X、Y)に対し、S501における通常スキャンによって得られた画像の信号値(R、G、B)を読み取り画像(画素値)として生成する。そして、S804へ進む。
In S803, the
S804にて、画像処理部304は、全ての画素について処理が終了したか否かの判定を実行する。全ての画素に対して処理が終了していない場合(S804にてNO)S801に戻り、未処理の画素を対象として処理を繰り返す。ここでは、画素の座標値であるX、Yの値を更新することで、未処理の画素に対する処理が繰り返される。全ての画素に対する処理が完了した場合(S804にてNO)本処理フローを終了する。
In S804, the
以上、本実施形態により、原稿の紙種に関わらず、当該原稿の読み取り画像内の領域に対して金属光沢領域か否かを良好な判定をすることが可能となる。特に、平滑度(紙種に関連する情報)に基づいて異なる閾値が設定される。これにより、異なる紙種に対しても良好な領域判定を行うことが可能となる。更に、金属光沢領域の判定結果に応じて画像の生成(画素値の選択)を行うことで好適な画像をユーザーに提供することができる。更には金属光沢領域の判定結果を属性データとして画像に保存しておくことで、画像を表示する際にエフェクトを加えるなどして金属色であることをわかるようにすることも可能になる。 As described above, according to the present embodiment, it is possible to make a good determination as to whether or not the region in the scanned image of the original is a metallic luster region regardless of the paper type of the original. In particular, different thresholds are set based on smoothness (information related to paper type). This makes it possible to perform good region determination even for different paper types. Further, a suitable image can be provided to the user by generating an image (selecting a pixel value) according to the determination result of the metallic luster region. Furthermore, by saving the determination result of the metallic luster region as attribute data in the image, it is possible to make it known that the color is metallic by adding an effect when displaying the image.
なお、本実施形態においては原稿の紙種としては光沢紙と半光沢紙の2種類の例を用いて説明を行ったが、これは表面平滑性の異なる紙種の一例であり、本発明はこれに限るものではない。また、S503の閾値設定において表面平滑度によって更に細かく閾値を設定してもよい。閾値を細かく設定することでその平滑度に近い原稿を用いた際の判定精度をより高めることが可能となる。なお、紙種や紙の表面平滑性に応じた閾値は、予めテーブルなどにより定義されていてよい。 In the present embodiment, two types of paper, glossy paper and semi-glossy paper, have been used as the paper type of the original, but this is an example of paper types having different surface smoothness. It is not limited to this. Further, in the threshold value setting of S503, the threshold value may be set more finely depending on the surface smoothness. By setting the threshold value finely, it is possible to further improve the determination accuracy when using a document having a smoothness close to that. The threshold value according to the paper type and the surface smoothness of the paper may be defined in advance by a table or the like.
更に、本実施形態では、読み取った画像から原稿の表面平滑度を決定することで適した閾値の設定を行っているが(図5のS503)、ユーザーに原稿種を選択させてその情報を基に閾値を設定する形式にしてもよい。ユーザーがスキャンモードを選択する際に、光沢紙用のメタリックスキャンモードや半光沢紙用のメタリックスキャンモードを用意し、その中から選択させることでも同様の効果が得られる。 Further, in the present embodiment, an appropriate threshold value is set by determining the surface smoothness of the original from the scanned image (S503 in FIG. 5), but the user is allowed to select the original type and based on the information. The threshold value may be set to. When the user selects the scan mode, the same effect can be obtained by preparing a metallic scan mode for glossy paper or a metallic scan mode for semi-glossy paper and letting the user select from among them.
また、乱反射スキャン(図5のS502)時において、正反射成分の反射光を取り入れた状態の反射光による画像の取得を行うために、原稿台102と原稿の間に光を乱反射させる部材を用いている。しかし、部材を用いずに直接正反射成分の反射光を読み取るような装置構成にしてもよい。具体的には、原稿読取ユニット103内の光源201から原稿に照射した光の拡散反射方向だけでなく正反射方向にもロッドレンズアレイ202とセンサー203を用意しておくことで、正反射成分の反射光による画像の取得を行うことが可能になる。
Further, in order to acquire an image by the reflected light in a state where the reflected light of the specular reflection component is taken in during the diffuse reflection scan (S502 in FIG. 5), a member that diffusely reflects the light between the
<第2の実施形態>
以下、本願発明の第2の実施形態について説明する。なお、第1の実施形態と重複する構成については説明を省略し、差分となる構成について説明する。
<Second embodiment>
Hereinafter, a second embodiment of the present invention will be described. The configuration that overlaps with the first embodiment will be omitted, and the difference configuration will be described.
第1の実施形態では金属光沢領域の判定方法について、通常スキャンの画像と乱反射スキャンの画像の明度の比較を行うことで判定する方法の説明を行った。第2の実施形態では金属光沢領域の判定方法について、明度の比較に加えて、別の色情報である彩度の比較を行うことで判定する方法について説明する。 In the first embodiment, the method for determining the metallic luster region has been described by comparing the brightness of the image of the normal scan and the image of the diffused reflection scan. In the second embodiment, the method for determining the metallic luster region will be described by comparing the saturation, which is another color information, in addition to the comparison of the brightness.
第1の実施形態では、図5のS503の処理において、画像処理部304が、S501で読み取られた画像を用いて、金属光沢領域判定処理(S504)で使用する閾値を設定する。第1の実施形態では、画像から原稿の表面平滑度を決定することでROM302に予め保持している複数の閾値から明度の閾値を設定していた。これに対し、第2の実施形態では、明度と彩度の閾値の設定をする。彩度の閾値も明度と同様に、原稿の表面平滑度が高い方が高い閾値を設定する。つまり、彩度に対する閾値Th_S1、Th_S2において、表面平滑度が高い場合に設定する閾値Th_S1と平滑度が低い場合に設定する閾値Th_S2では、閾値Th_S1の方を高い値に設定する(Th_S1>Th_S2)。
In the first embodiment, in the process of S503 of FIG. 5, the
(金属光沢領域判定処理)
以下、本実施形態に係る金属光沢領域判定の詳細を記述する。図9は、本実施形態に係る金属光沢領域判定のフローチャートであり、図5のS504にて実施される処理である。
(Metallic luster area judgment processing)
Hereinafter, details of the determination of the metallic luster region according to the present embodiment will be described. FIG. 9 is a flowchart for determining the metallic luster region according to the present embodiment, and is the process performed in S504 of FIG.
S901にて、画像処理部304は、2つの画像の座標(X、Y)の画素の信号値(R、G、B)を明度に変換する。本工程における処理内容は、第1の実施形態の図6のS601と同様であってよい。
In S901, the
S902にて、画像処理部304は、2つの画像の明度の比較を行う。本工程における処理内容は、第1の実施形態の図6のS602と同様であってよい。乱反射スキャンと通常スキャンの明度の差分が、図5のS503で設定した閾値よりも大きい場合(S902にてYES)S903へ進む。一方、閾値よりも乱反射スキャンと通常スキャンの明度差が、図5のS503で設定した閾値よりも小さい場合(S902にてNO)S906へ進む。
In S902, the
S903にて、画像処理部304は、図5のS501で取得した通常スキャンの画像とS502で取得した乱反射スキャンの画像の座標(X、Y)の画素の信号値(R、G、B)を彩度に変換する。本実施形態では、RGB信号値を彩度に変換する方法として下記の式(2)に示すようにHLS色空間の彩度Sを用いる。なお、これに限定するものではなく、HSV色空間の彩度やLab色空間のabを利用して彩度に変換したものを用いてもよい。式(2)において関数MAX()は、複数の引数の値のうちの最大値を出力する関数である。また、関数MIN()は、複数の引数の値のうちの最小値を出力する関数である。
・・・式(2)
本実施形態において、画像の所定の位置を原点(0,0)とし、その座標の画素から順に着目画素として処理を行うものとする。
In S903, the
... Equation (2)
In the present embodiment, a predetermined position of the image is set as the origin (0,0), and processing is performed as the pixel of interest in order from the pixel at that coordinate.
S904にて、画像処理部304は、S903で彩度に変換された2つの画像(通常スキャンによる画像、および、乱反射スキャンによる画像)の信号値の比較を行う。以下に詳細な説明を加える。S902において明度の比較によっての金属光沢領域か否かの判定はされている。しかしながら、明度の比較だけでは高光沢な紙に青色等の明度の低い色が記録されている場合に誤判定がなされる可能性がある。
In S904, the
図7(b)に示したように、光沢紙に記録された非金属光沢領域である場合、正反射成分の反射光が図7(a)で示した金属光沢領域よりも少なく、拡散反射成分の反射光が金属光沢領域よりも多くなる。しかし、高光沢な紙の場合、正反射成分の反射光は非金属光沢領域であっても紙による反射によって十分に強いため、得られる画像の信号値としては十分に明るい数値になってしまう。更に拡散反射成分の反射光は、明度の低い青色等の色が記録されている場合は色材によって光が吸収されてしまうため、得られる画像の信号値が暗い数値になってしまう。その結果、光の反射の様子としては図7(a)と図7(b)のように差があるにも関わらず、得られた画像の明度の観点だけで差分をとると、近い数値となってしまい、誤判定がなされてしまうことがある。 As shown in FIG. 7 (b), in the case of a non-metallic luster region recorded on glossy paper, the reflected light of the positive reflection component is less than the metallic luster region shown in FIG. 7 (a), and the diffuse reflection component. The reflected light of is more than the metallic luster region. However, in the case of high-gloss paper, the reflected light of the specular reflection component is sufficiently strong due to the reflection by the paper even in the non-metallic gloss region, so that the signal value of the obtained image becomes a sufficiently bright value. Further, as for the reflected light of the diffuse reflection component, when a color such as blue having low brightness is recorded, the light is absorbed by the coloring material, so that the signal value of the obtained image becomes a dark numerical value. As a result, although there is a difference in the state of light reflection as shown in FIGS. 7 (a) and 7 (b), when the difference is taken only from the viewpoint of the brightness of the obtained image, the numerical value is close. In some cases, an erroneous judgment may be made.
そこで、本実施形態では、S902における明度の観点により金属光沢領域と判定された領域に対して、更にS904において彩度に基づく比較を行う。既に述べてきたように高光沢な紙を用いた場合における非金属光沢領域の正反射成分の反射光は、紙による正反射の影響で強くなってしまう。更に紙による正反射の影響であるため、正反射成分の反射光には色材の色味があまり乗らず、光源の光をそのまま反射することになる。つまり、乱反射スキャンによって得られる非金属光沢領域の画像は光源の色である白の影響を強く受けるため彩度が下がるということになる。一方、金属光沢領域は金属色による正反射のため、こちらは非金属光沢領域のような彩度の低下は少ない。例えば、金色であれば正反射の色味はそのまま黄色となる。従って、乱反射スキャンと通常スキャンの彩度で差分をとり、S503で設定した閾値よりも乱反射スキャンの彩度の低下が大きい場合(S904にてYES)S906へ進む。一方、閾値よりも乱反射スキャンの彩度の低下が小さい場合(S904にてNO)S905へ進む。 Therefore, in the present embodiment, the region determined to be the metallic luster region from the viewpoint of lightness in S902 is further compared based on the saturation in S904. As described above, the reflected light of the specular reflection component in the non-metallic gloss region when high-gloss paper is used becomes stronger due to the influence of the specular reflection by the paper. Further, because of the influence of the specular reflection by the paper, the color of the coloring material is not so much added to the reflected light of the specular reflection component, and the light of the light source is reflected as it is. That is, the image of the non-metallic luster region obtained by the diffuse reflection scan is strongly influenced by white, which is the color of the light source, and thus the saturation is reduced. On the other hand, since the metallic luster region is specularly reflected by the metallic color, there is little decrease in saturation as in the non-metallic luster region. For example, if it is gold, the color of specular reflection will be yellow as it is. Therefore, the difference is taken between the saturation of the diffused reflection scan and the normal scan, and when the decrease in the saturation of the diffused reflection scan is larger than the threshold value set in S503 (YES in S904), the process proceeds to S906. On the other hand, when the decrease in saturation of the diffuse reflection scan is smaller than the threshold value (NO in S904), the process proceeds to S905.
また、本実施形態においてもS904で適用する閾値は、S503で設定した閾値を用いている。第1の実施形態でも述べたように、半光沢紙のような表面平滑度が低い紙種は光沢紙よりも紙の表面に凹凸があるため、反射光が拡散してしまい、正反射成分の反射光と拡散反射成分の反射光の差分が少ない。従って、光沢紙のような表面平滑度の高い場合に適用する閾値Th_S1よりも半光沢紙のような表面平滑度の低い場合に適用する閾値Th_S2の方が低い値になるように予め設定しておくことにより、どちらの原稿に対しても良好な領域判定を行うことができる。 Further, also in this embodiment, the threshold value applied in S904 uses the threshold value set in S503. As described in the first embodiment, the paper type having a low surface smoothness such as semi-glossy paper has unevenness on the surface of the paper as compared with the glossy paper, so that the reflected light is diffused and the positive reflection component is present. The difference between the reflected light and the reflected light of the diffuse reflection component is small. Therefore, the threshold value Th_S2 applied when the surface smoothness is low such as semi-glossy paper is set in advance to be lower than the threshold value Th_S1 applied when the surface smoothness is high such as glossy paper. By setting it, a good area determination can be performed for both documents.
S905にて、画像処理部304は、該当画素(X、Y)を金属光沢領域であると判定する。そして、S907へ進む。
In S905, the
S906にて、画像処理部304は、該当画素(X、Y)を非金属光沢領域であると判定する。そして、S907へ進む。
In S906, the
S907にて、画像処理部304は、全ての画素について処理が終了したか否かの判定を実行する。全ての画素に対して処理が終了していない場合(S907にてNO)S901に戻り、未処理の画素を対象として処理を繰り返す。ここでは、画素の座標値であるX、Yの値を更新することで、未処理の画素に対する処理が繰り返される。全ての画素に対する処理が完了した場合(S907にてYES)本処理フローを終了する。
In S907, the
以上、本実施形態では明度の観点で金属光沢領域であると判定された領域の中から更に彩度の低下で閾値を設けて彩度低下の値が大きいものを非金属光沢領域であるとして追加の判定を行っている。従って、本実施形態により、第1の実施形態と比較して、金属光沢領域の判定の精度を向上させることができる。例えば、銀色のように元から彩度が低く、乱反射スキャンと通常スキャンの彩度が変わらないような領域においても金属光沢領域から除外してしまうことなく判定することが可能となる。 As described above, in the present embodiment, from the regions determined to be metallic luster regions from the viewpoint of lightness, those regions in which a threshold value is further set for the decrease in saturation and the value of the decrease in saturation is large are added as non-metallic luster regions. Is being judged. Therefore, according to this embodiment, the accuracy of determining the metallic luster region can be improved as compared with the first embodiment. For example, even in a region where the saturation is originally low such as silver and the saturation of the diffuse reflection scan and the normal scan do not change, it is possible to determine without excluding the region from the metallic luster region.
<第3の実施形態>
以下、本願発明の第3の実施形態について説明する。なお、上記実施形態と重複する構成については説明を省略し、差分となる構成について説明する。
<Third embodiment>
Hereinafter, a third embodiment of the present invention will be described. The configuration that overlaps with the above embodiment will be omitted, and the difference configuration will be described.
第1の実施形態では金属光沢領域の判定方法について、通常スキャンの画像と乱反射スキャンの画像の明度の比較を行うことで判定する方法の説明を行った。また、第2の実施形態では明度の比較に加えて彩度の比較を行うことで判定する方法の説明を行った。第3の実施形態では、金属光沢領域の判定方法について、彩度のみの比較を行うことで判定する方法を説明する。 In the first embodiment, the method for determining the metallic luster region has been described by comparing the brightness of the image of the normal scan and the image of the diffused reflection scan. Further, in the second embodiment, the method of determining by comparing the saturation in addition to the comparison of the lightness has been described. In the third embodiment, the method for determining the metallic luster region will be described by comparing only the saturation.
第1の実施形態では、図5のS503において、画像処理部304が、S501で読み取られた画像を用いて、金属光沢判定処理(S504)で使用する閾値を設定する。これに対し、第3の実施形態では、画像から原稿の表面平滑度を決定することでROM302に予め保持している複数の閾値から彩度の閾値を設定する。第2の実施形態と同様に、平滑度が高い場合に設定する閾値Th_S1と表面平滑度が低い場合に設定する閾値Th_S2では閾値Th_S1の方を高い値に設定する(Th_S1>Th_S2)。
In the first embodiment, in S503 of FIG. 5, the
(金属光沢領域判定処理)
以下、本実施形態に係る金属光沢領域判定の詳細を記述する。図10は、本実施形態に係る金属光沢領域判定のフローチャートであり、図5のS504にて実施される処理である。
(Metallic luster area judgment processing)
Hereinafter, details of the determination of the metallic luster region according to the present embodiment will be described. FIG. 10 is a flowchart for determining the metallic luster region according to the present embodiment, and is the process performed in S504 of FIG.
S1001にて、画像処理部304は、2つの画像の座標(X、Y)の画素の信号値(R、G、B)を彩度に変換する。本工程における処理内容は、第2の実施形態の図9のS903と同様であってよい。
In S1001, the
S1002にて、画像処理部304は、S1001で彩度に変換された2つの画像(通常スキャンによる画像、および、乱反射スキャンによる画像)の信号値の比較を行う。以下に詳細な説明を加える。第2の実施形態でも述べたように、非金属光沢領域における正反射成分の反射光は紙による反射のため、色材の色味があまり乗らず、光源の光をそのまま反射することになる。また、金属光沢領域における正反射成分の反射光は金属色による反射のため、金属色の色そのものを反射することになる。更に金属光沢領域における拡散反射成分の反射光は強度が弱く、暗くなるために黒に近い色になってしまう。つまり、拡散反射成分の反射光と正反射成分の反射光で比較すると金属光沢領域は正反射成分の彩度が高くなる。従って、乱反射スキャンと通常スキャンの彩度で差分をとり、S503で設定した閾値よりも彩度差が大きく、乱反射スキャンの方が鮮やかな場合(S1002にてYES)S1003へ進む。一方、閾値よりも乱反射スキャンと通常スキャンの彩度差が小さい場合(S1002にてNO)S1004へ進む。
In S1002, the
S1003にて、画像処理部304は、該当画素(X、Y)を金属光沢領域であると判定する。そして、S1005へ進む。
In S1003, the
S1004にて、画像処理部304は、該当画素(X、Y)を非金属光沢領域であると判定する。そして、S1005へ進む。
In S1004, the
S1005にて、画像処理部304は、全ての画素について処理が終了したか否かの判定を実行する。全ての画素に対して処理が終了していない場合(S1005にてNO)S1001に戻り、未処理の画素を対象として処理を繰り返す。ここでは、画素の座標値であるX、Yの値を更新することで、未処理の画素に対する処理が繰り返される。全ての画素に対する処理が完了した場合(S1005にてYES)本処理フローを終了する。
In S1005, the
以上、本実施形態では彩度の観点でのみ金属光沢領域の判定を行う。つまり、銀色のような無彩色の金属色に関しては、正反射成分の反射光も無彩色のままであるため正しく判定できない。しかし、本実施形態では、第1の実施形態で行った明度のみの金属光沢領域の判定では誤判定になるような色でも判定できるようになる。例えば、第2の実施形態で述べたような、高光沢な紙に青色等の明度の低い色が記録されている場合である。また、第2の実施形態のように比較処理を複数にしていないため、第2の実施形態と比較して、処理を高速にすることが可能となる。 As described above, in the present embodiment, the metallic luster region is determined only from the viewpoint of saturation. That is, with respect to an achromatic metallic color such as silver, the reflected light of the specular reflection component remains achromatic and cannot be correctly determined. However, in the present embodiment, it is possible to determine even a color that would be erroneously determined in the determination of the metallic luster region having only the lightness performed in the first embodiment. For example, as described in the second embodiment, a low-brightness color such as blue is recorded on high-gloss paper. Further, since the comparison processing is not performed in a plurality of ways as in the second embodiment, the processing speed can be increased as compared with the second embodiment.
なお、第1〜第3の実施形態にて述べた金属光沢領域の判定に関し、いずれの手法を用いるかをユーザーが選択できるような構成であってもよい。例えば、読取対象の原稿に応じて、メタリックスキャンモードの中から更に詳細なモードを選択できるような構成であってもよい。 It should be noted that the configuration may be such that the user can select which method is used for determining the metallic luster region described in the first to third embodiments. For example, a more detailed mode may be selected from the metallic scan modes according to the document to be read.
<第4の実施形態>
以下、本願発明の第4の実施形態について説明する。なお、上記実施形態と重複する構成については説明を省略し、差分となる構成について説明する。
<Fourth Embodiment>
Hereinafter, a fourth embodiment of the present invention will be described. The configuration that overlaps with the above embodiment will be omitted, and the difference configuration will be described.
第1の実施形態では読み取り画像の生成方法について、乱反射スキャンによって得られた画像と通常スキャンによって得られた画像の合成を行うことで生成する説明を行った。第4の実施形態では、読み取り画像の生成方法について、判定結果に基づいて適切な色変換処理を行うことで生成する方法を説明する。 In the first embodiment, the method of generating the scanned image has been described to be generated by synthesizing the image obtained by the diffuse reflection scan and the image obtained by the normal scan. In the fourth embodiment, the method of generating the scanned image will be described by performing an appropriate color conversion process based on the determination result.
(読み取り画像生成処理)
以下、本実施形態に係る読み取り画像生成の詳細を記述する。図11は、本実施形態に係る読み取り画像生成のフローチャートであり、図5のS505にて実施される処理である。
(Read image generation process)
The details of the scanned image generation according to the present embodiment will be described below. FIG. 11 is a flowchart for generating a read image according to the present embodiment, and is a process performed in S505 of FIG.
S1101にて、画像処理部304は、画像における座標(X,Y)の画素に対し、金属光沢領域判定処理の判定結果に基づいて、当該画素が金属光沢領域か否かを判定する。金属光沢領域である場合には(S1101にてYES)S1102へ進み、非金属光沢領域である場合には(S1101にてNO)S1103へ進む。ここでの処理内容は、図8のS801と同様であってよい。
In S1101, the
S1102およびS1103にて、画像処理部304は、画素(X,Y)に対し、領域の判定結果に応じて、通常スキャンによって得られた画像の信号値(R、G、B)の色変換処理を行う。色変換はマトリクスなどの演算で行うことも可能であるが、本実施形態においては判定結果に応じた柔軟な色変換を行うため、3次元の色補正テーブルを利用する。以下に詳細な説明を加える。
In S1102 and S1103, the
各画素に対して入力されるRGB値を各色8ビット(256階調)とした場合、全組み合わせを保持することは、データの容量の観点から現実的でないため、本実施形態では、色補正テーブルは所定の間隔で間引かれたものを使用する。図12は、本実施形態に係る色補正テーブルの一例を示す。本例では、各色256階調を17点のグリッド点とし、それに対応する色変換後のRGB値を記載したテーブルとする(17*17*17=4913グリッド点)。 When the RGB value input for each pixel is 8 bits (256 gradations) for each color, it is not realistic to hold all combinations from the viewpoint of data capacity. Therefore, in this embodiment, a color correction table is used. Uses those thinned out at predetermined intervals. FIG. 12 shows an example of a color correction table according to the present embodiment. In this example, each color has 256 gradations as 17 grid points, and a table in which the corresponding RGB values after color conversion are described (17 * 17 * 17 = 4913 grid points).
グリッド点間の値は、補間処理を利用して算出する。補間方法については幾つかの方法があるが、本実施形態では四面体補間を利用した処理を記載する。四面体補間法は、3次元空間の分割単位を四面体として、4つの格子点を用いる線形補間である。手順は、まず、図13(a)に示すような四面体への分割を行う。そして、ターゲットとなる点pが分割された四面体のうち、いずれに属するかを決定する。その四面体の4頂点をそれぞれp0、p1、p2、p3とし、図13(b)に示すように、さらに細かい小四面体に分割される。各点の変換値をそれぞれf(p0)、f(p1)、f(p2)、f(p3)とした場合、下記の式3により補間値f(p)が求められる。
・・・式(3)
ここで、w0、w1、w2、w3は、各頂点piと反対向位置の小四面体の体積比である。上記により、対象となるRGB値に対応した色変換後のRGB値を算出するが、階調性を考慮し、出力は8ビット以上でも構わない。なお、色補正テーブルは、S504で実行された判定結果に応じたテーブルを適用する。つまり、本実施形態では、金属光沢領域用の色補正テーブルと、非金属領域用の色補正テーブルが予め保持されているものとする。
The value between the grid points is calculated by using the interpolation process. There are several interpolation methods, but in the present embodiment, processing using tetrahedral interpolation will be described. The tetrahedral interpolation method is a linear interpolation using four grid points with the division unit of the three-dimensional space as a tetrahedron. The procedure first divides into a tetrahedron as shown in FIG. 13 (a). Then, it is determined which of the divided tetrahedrons the target point p belongs to. The four vertices of the tetrahedron are p0, p1, p2, and p3, respectively, and as shown in FIG. 13B, the tetrahedron is further divided into smaller tetrahedrons. When the conversion values of each point are f (p0), f (p1), f (p2), and f (p3), respectively, the interpolation value f (p) can be obtained by the following equation 3.
... Equation (3)
Here, w0, w1, w2, and w3 are volume ratios of the small tetrahedrons at positions opposite to each vertex pi. From the above, the RGB value after color conversion corresponding to the target RGB value is calculated, but the output may be 8 bits or more in consideration of gradation. As the color correction table, a table according to the determination result executed in S504 is applied. That is, in the present embodiment, it is assumed that the color correction table for the metallic luster region and the color correction table for the non-metal region are held in advance.
S1102にて、画像処理部304は、金属光沢領域であると判定された画素(X、Y)に対し、通常スキャンによって得られた画像の信号値(R、G、B)の色変換処理を行う。S1102では、金属光沢領域に適した色補正テーブルを用いる。金属光沢領域用の色補正テーブルは、金属光沢領域の通常スキャン画像のRGB値を色変換した際に変換後のRGB値が見た目の印象に近くなるように作成すればよい。具体的には、様々な色の金属光沢色パッチが記録されている原稿を用意し、その原稿を通常スキャンした画像の信号値を入力RGB値として用意する。そして、積分球等の測色器を用いて正反射成分を含めた反射光によって原稿を測色して得られる測色値を、モニター表示における標準の1つとなっているsRGB値に変換した値を色変換後のRGB値として用意する。金属光沢領域はこれまで述べてきたように拡散反射成分の反射光が著しく少ないため、正反射成分の反射光を含めた測色を行うことによって見た目の印象に近くする。上記入力RGB値と色変換後のRGB値を組み合わせとして用いて、擬似逆行列等の公知の手法を用いることで金属光沢領域に適した色補正テーブルを作成することが可能となる。本処理の後、S1104へ進む。
In S1102, the
S1103にて、画像処理部304は、非金属光沢領域であると判定された画素(X、Y)に対し、通常スキャンによって得られた画像の信号値(R、G、B)の色変換処理を行う。S1103では、非金属光沢領域に適した色補正テーブルを用いる。非金属光沢領域用の色補正テーブルは、非金属光沢領域の通常スキャン画像のRGB値を色変換した際に変換後のRGB値が見た目の印象に近くなるように作成すればよい。具体的には様々な色の非金属光沢色パッチが記録されている原稿を用意し、その原稿を通常スキャンした画像の信号値を入力RGB値として用意する。そして、積分球等の測色器を用いて正反射成分を含まない反射光によって原稿を測色して得られる測色値を、モニター表示における標準の1つとなっているsRGB値に変換した値を色変換後のRGB値として用意する。非金属光沢領域はこれまで述べてきたように、正反射成分の反射光を含めてしまうと紙による反射の影響を受けて記録されている色材の色を評価できなくなってしまうため、正反射成分の反射光を含まない測色を行うことによって見た目の印象に近くする。上記入力RGB値と色変換後のRGB値を組み合わせとして用いて、擬似逆行列等の公知の手法を用いることで非金属光沢領域に適した色補正テーブルを作成することが可能となる。本処理の後、S1104へ進む。
In S1103, the
S1104にて、画像処理部304は、全ての画素について処理が終了したか否かの判定を実行する。全ての画素に対して処理が終了していない場合(S1104にてYES)S1101に戻り、未処理の画素を対象として処理を繰り返す。ここでは、画素の座標値であるX、Yの値を更新することで、未処理の画素に対する処理が繰り返される。全ての画素に対する処理が完了した場合(S1104にてNO)本処理フローを終了する。
In S1104, the
上記のように、本実施形態では乱反射スキャンによって得られた画像を金属光沢領域か否かの判定には用いるが、読み取り画像の生成には利用していない。本実施形態において、乱反射スキャンは、光を乱反射させる部材として薄いポリプロピレン製のシート(不図示)を原稿台102と原稿の間に置いた状態で原稿の読み取りを行っている。従って、乱反射スキャンによって得られる画像はピントがわずかに合わず、ぼけのある画像が取得されてしまう。本実施形態では読み取り画像の生成は通常スキャンの画像のみを用いているため、ぼけのない状態の画像を生成することが可能となる。
As described above, in the present embodiment, the image obtained by the diffuse reflection scan is used for determining whether or not the image has a metallic luster region, but it is not used for generating the scanned image. In the present embodiment, the diffused reflection scan reads a document in a state where a thin polypropylene sheet (not shown) is placed between the
以上、本実施形態により、第1の実施形態と比較して、更に画像の品質を向上させることができる。 As described above, according to this embodiment, the quality of the image can be further improved as compared with the first embodiment.
<その他の実施形態>
上記実施形態では、読取装置の用途において、通常スキャンで読み取った画像から原稿の表面平滑度を決定することで閾値を設定した。そして、その閾値を用いて通常スキャンと乱反射スキャンの画像の差分と比較を行うことによって金属光沢領域の判定を行い、好適な読み取り画像が取得できる例を記載した。本発明は、読み取り機能を利用する他の用途にも適応可能である。例えば、上記のように読み取り処理と記録処理を組み合わせ、ユーザーへの利便性を提供している装置として、複写装置がある。複写装置においても、読み取り処理が実行されるため、本発明の適用は可能である。
<Other Embodiments>
In the above embodiment, in the application of the reading device, the threshold value is set by determining the surface smoothness of the original from the image read by the normal scan. Then, an example is described in which a suitable scanned image can be obtained by determining the metallic luster region by comparing the difference between the images of the normal scan and the diffused reflection scan using the threshold value. The present invention is also applicable to other applications utilizing the reading function. For example, as a device that combines reading processing and recording processing as described above to provide convenience to the user, there is a copying device. Since the reading process is also executed in the copying apparatus, the present invention can be applied.
図14は、本願発明を適用可能な複写装置の内部構成の例を示す図である。読取装置の構成に加えて、スキャンした画像を表示および操作するためのディスプレイ1401と画像を記録するプリントユニット1402を備える。ディスプレイ1401を備えることにより、S503で行っていた閾値設定において、ユーザー自ら設定することが可能になる。そのほかの構成については、図3に示した構成に対応するものとする。
FIG. 14 is a diagram showing an example of an internal configuration of a copying apparatus to which the present invention can be applied. In addition to the configuration of the reading device, it includes a
図15は、ユーザーが閾値を設定する様子を示した図である。ディスプレイ1401には、通常スキャンと乱反射スキャンの差分の二値化結果を示す画面1501を表示し、ユーザーは画面1501の下部に表示されているスライドバー1502を動かすことで二値化に用いる閾値を自由に変えることができる。また、表示されている二値化結果もユーザーが操作した閾値に応じて変えることにより、ユーザーは結果を見ながら閾値の調整ができるため、読み取った画像に対して最適な閾値を設定することが可能になる。そして、複写装置は、受け付けたユーザー操作に基づいて、閾値の設定および画像生成処理を行う。
FIG. 15 is a diagram showing how the user sets the threshold value. The
また、複写装置では好適な読み取り画像に対してプリントユニット1402を用いることでユーザーの見た目の印象に近い色で記録ができる。更には、特色の色材として銀色を搭載している複写装置であれば、金属光沢領域と判定された領域に銀色を用いることで金属光沢色の複写も可能になる。例えば、金属光沢領域と判定された金色の場合であれば銀色の色材を先に記録媒体に記録し、その後に黄色の色材を記録するように制御を行うことで金色の複写が可能になる。
Further, in the copying apparatus, by using the
本発明は上述の実施形態の1以上の機能を実現するプログラムをネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピューターにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. But it is feasible. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
発明は上記実施形態に制限されるものではなく、発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、発明の範囲を公にするために請求項を添付する。 The invention is not limited to the above embodiments, and various modifications and modifications can be made without departing from the spirit and scope of the invention. Therefore, a claim is attached to make the scope of the invention public.
100…読取装置、103…原稿読取ユニット、201…光源、203…センサー、301…CPU、303…スキャンユニット、304…画像処理部 100 ... Reader, 103 ... Document reading unit, 201 ... Light source, 203 ... Sensor, 301 ... CPU, 303 ... Scan unit, 304 ... Image processing unit
Claims (14)
前記原稿に光を照射し、正反射成分の反射光を取り入れた状態の反射光の読み取りによって得られる第2の画像データを取得する第2の取得手段と、
前記原稿の紙種に関連する情報に基づき、色情報に対する閾値を設定する設定手段と、
前記第1の画像データと前記第2の画像データの色情報の差分と、前記設定手段にて設定された閾値との比較の結果に基づいて前記原稿の画像データに含まれる画素が金属色かを判定する判定手段と、
を有することを特徴とする画像処理装置。 A first acquisition means for irradiating the original with light and acquiring the first image data obtained by reading the reflected light of the diffuse reflection component, and
A second acquisition means for acquiring the second image data obtained by irradiating the original with light and reading the reflected light in a state where the reflected light of the specular reflection component is incorporated.
A setting means for setting a threshold value for color information based on information related to the paper type of the manuscript, and
Whether the pixels included in the image data of the document are metallic based on the result of comparison between the difference between the color information of the first image data and the second image data and the threshold value set by the setting means. Judgment means to judge
An image processing device characterized by having.
前記第1の画像データを用いて、前記原稿の表面平滑度を判定し、
前記表面平滑度が高い場合は、前記表面平滑度が低い場合に比べて、前記色情報に対する閾値に高い値を設定することを特徴とする請求項1乃至5のいずれか一項に記載の画像処理装置。 The setting means is
Using the first image data, the surface smoothness of the original is determined.
The image according to any one of claims 1 to 5, wherein when the surface smoothness is high, a higher value is set for the threshold value for the color information as compared with the case where the surface smoothness is low. Processing equipment.
前記設定手段は、前記ユーザー操作に基づいて閾値を設定することを特徴とする請求項1乃至5のいずれか一項に記載の画像処理装置。 Further having a means for accepting a user operation regarding setting a threshold value for the color information,
The image processing apparatus according to any one of claims 1 to 5, wherein the setting means sets a threshold value based on the user operation.
非金属色と判定された画素に用いる色補正テーブルは、正反射成分を含まない反射光によって測色した測色値を用いて作成されることを特徴とする請求項10に記載の画像処理装置。 The color correction table used for the pixels determined to be metallic is created using the colorimetric values measured by the reflected light including the specular reflection component.
The image processing apparatus according to claim 10, wherein the color correction table used for the pixels determined to be non-metallic colors is created by using the colorimetric values measured by the reflected light containing no specular reflection component. ..
前記記録手段は、前記画像生成手段により生成された画像データにおいて、前記判定手段により金属色と判定された画素に対して、前記銀色の色材を用いて前記記録媒体に記録を行うことを特徴とする請求項9乃至11のいずれか一項に記載の画像処理装置。 Further having a recording means capable of recording on a recording medium using a silver coloring material,
The recording means is characterized in that, in the image data generated by the image generation means, the pixels determined to be metallic by the determination means are recorded on the recording medium using the silver color material. The image processing apparatus according to any one of claims 9 to 11.
前記原稿に光を照射し、正反射成分の反射光を取り入れた状態の反射光の読み取りによって得られる第2の画像データを取得する第2の取得工程と、
前記原稿の紙種に関連する情報に基づいて、色情報に対する閾値を設定する設定工程と、
前記第1の画像データと前記第2の画像データの色情報の差分と、前記設定工程にて設定された閾値との比較の結果に基づいて前記原稿の画像データに含まれる画素が金属色かを判定する判定工程と、
を有することを特徴とする画像処理方法。 The first acquisition step of irradiating the original with light and acquiring the first image data obtained by reading the reflected light of the diffuse reflection component, and
A second acquisition step of irradiating the original with light and acquiring a second image data obtained by reading the reflected light in a state where the reflected light of the specular reflection component is taken in, and a second acquisition step.
A setting process for setting a threshold value for color information based on information related to the paper type of the manuscript, and
Whether the pixels included in the image data of the original are metallic based on the result of comparison between the difference between the color information of the first image data and the second image data and the threshold value set in the setting step. Judgment process to determine
An image processing method characterized by having.
原稿に光を照射し、拡散反射成分の反射光の読み取りによって得られる第1の画像データを取得する第1の取得工程と、
前記原稿に光を照射し、正反射成分の反射光を取り入れた状態の反射光の読み取りによって得られる第2の画像データを取得する第2の取得工程と、
前記原稿の紙種に関連する情報に基づいて、色情報に対する閾値を設定する設定工程と、
前記第1の画像データと前記第2の画像データとの色情報の差分と、前記設定工程にて設定された閾値との比較の結果に基づいて前記原稿の画像データに含まれる画素が金属色かを判定する判定工程と、
を実行させるためのプログラム。 The first acquisition step of irradiating the original with light on the computer and acquiring the first image data obtained by reading the reflected light of the diffuse reflection component, and
A second acquisition step of irradiating the original with light and acquiring a second image data obtained by reading the reflected light in a state where the reflected light of the specular reflection component is taken in, and a second acquisition step.
A setting process for setting a threshold value for color information based on information related to the paper type of the manuscript, and
The pixels included in the image data of the original are metallic colors based on the result of comparison between the difference in color information between the first image data and the second image data and the threshold value set in the setting step. Judgment process to determine whether
A program to execute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019126398A JP7339794B2 (en) | 2019-07-05 | 2019-07-05 | Image processing device, image processing method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019126398A JP7339794B2 (en) | 2019-07-05 | 2019-07-05 | Image processing device, image processing method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021013100A true JP2021013100A (en) | 2021-02-04 |
JP7339794B2 JP7339794B2 (en) | 2023-09-06 |
Family
ID=74227870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019126398A Active JP7339794B2 (en) | 2019-07-05 | 2019-07-05 | Image processing device, image processing method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7339794B2 (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004042371A (en) * | 2002-07-10 | 2004-02-12 | Canon Inc | Method and program for determining recording medium, recording medium and recorder |
JP2005027110A (en) * | 2003-07-03 | 2005-01-27 | Sharp Corp | Image processor, image reader provided with the same, image forming device, image processing method, image processing program and recording medium |
JP2005101726A (en) * | 2003-09-22 | 2005-04-14 | Sharp Corp | Image processor, image reader, image forming apparatus, image processing method and program |
JP2010052225A (en) * | 2008-08-27 | 2010-03-11 | Seiko Epson Corp | Printing method and apparatus |
JP2012186515A (en) * | 2011-03-03 | 2012-09-27 | Ricoh Co Ltd | Image reading apparatus and image forming apparatus |
JP2013106083A (en) * | 2011-11-10 | 2013-05-30 | Canon Inc | Image processing apparatus, image processing method and program |
JP2017060090A (en) * | 2015-09-18 | 2017-03-23 | 富士ゼロックス株式会社 | Image data generation device, printer and image data generation program |
-
2019
- 2019-07-05 JP JP2019126398A patent/JP7339794B2/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004042371A (en) * | 2002-07-10 | 2004-02-12 | Canon Inc | Method and program for determining recording medium, recording medium and recorder |
JP2005027110A (en) * | 2003-07-03 | 2005-01-27 | Sharp Corp | Image processor, image reader provided with the same, image forming device, image processing method, image processing program and recording medium |
JP2005101726A (en) * | 2003-09-22 | 2005-04-14 | Sharp Corp | Image processor, image reader, image forming apparatus, image processing method and program |
JP2010052225A (en) * | 2008-08-27 | 2010-03-11 | Seiko Epson Corp | Printing method and apparatus |
JP2012186515A (en) * | 2011-03-03 | 2012-09-27 | Ricoh Co Ltd | Image reading apparatus and image forming apparatus |
JP2013106083A (en) * | 2011-11-10 | 2013-05-30 | Canon Inc | Image processing apparatus, image processing method and program |
JP2017060090A (en) * | 2015-09-18 | 2017-03-23 | 富士ゼロックス株式会社 | Image data generation device, printer and image data generation program |
Also Published As
Publication number | Publication date |
---|---|
JP7339794B2 (en) | 2023-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5772991B2 (en) | Electronics | |
US7006688B2 (en) | Histogram adjustment features for use in imaging technologies | |
JP6004481B2 (en) | Color image processing method, color image processing apparatus, and color image processing program | |
US7064864B2 (en) | Method and apparatus for compressing reproducible color gamut | |
JP2007081586A (en) | Image processing unit and image processing method, program thereof, and recording medium | |
JP3671616B2 (en) | Image processing device | |
JP6198521B2 (en) | Image processing apparatus, image processing method, and program | |
JP5608511B2 (en) | Image correction apparatus and image correction method | |
JP2019029826A (en) | Image processing apparatus, image processing method, and program | |
CN105637557B (en) | Image processing equipment, image processing system, image processing method and recording medium | |
KR20120019641A (en) | Image forming apparatus and method for processing image thereof | |
US20070183001A1 (en) | Image processing apparatus, image processing method, program and recording medium | |
JP4401955B2 (en) | Color processing apparatus and method | |
US20050073719A1 (en) | Color image processor | |
JP2022184133A (en) | Electronic watermark analyzing device and electronic watermark analyzing method | |
JP7339794B2 (en) | Image processing device, image processing method, and program | |
JP5185100B2 (en) | Image reading apparatus, multifunction printer apparatus, and image reading method | |
KR20090006715A (en) | Apparatus and method capable of calculating resolution | |
JP2003016443A (en) | Method, device, and chart image for image quality evaluation | |
JP5235551B2 (en) | Image processing apparatus and method | |
JP2011135320A (en) | Image processing method, image processing apparatus, and program | |
JP5222795B2 (en) | Image reading method and image reading system | |
JP2010004300A (en) | Image processing method, image processing apparatus, image processing program, and printer | |
US11695894B1 (en) | Automatic profile contour artifact detection | |
JP2009100304A (en) | Color processing device and method therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20210103 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210113 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220629 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230125 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230220 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230420 |
|
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: 20230728 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230825 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 7339794 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |