JP2021013100A - Image processing device, image processing method, and program - Google Patents

Image processing device, image processing method, and program Download PDF

Info

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
Application number
JP2019126398A
Other languages
Japanese (ja)
Other versions
JP7339794B2 (en
Inventor
祐人 梶原
Yuto Kajiwara
祐人 梶原
裕充 山口
Hiromitsu Yamaguchi
裕充 山口
後藤 文孝
Fumitaka Goto
文孝 後藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2019126398A priority Critical patent/JP7339794B2/en
Publication of JP2021013100A publication Critical patent/JP2021013100A/en
Application granted granted Critical
Publication of JP7339794B2 publication Critical patent/JP7339794B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To satisfactorily determine a metallic luster region for read data on a document regardless of a paper type of the document.SOLUTION: An image processing device includes: first acquisition means for acquiring first image data obtained by irradiating a document with light and reading reflected light of a diffuse reflection component; second acquisition means for acquiring second image data obtained by irradiating the document with light and reading reflected light incorporated with a specular reflection component; setting means for setting a threshold value for color information based on information related to the paper type of the document; and determination means for determining whether a pixel included in the image data of the document is a metallic color based on the result of comparison between the difference in color information between the first image data and the second image data and a threshold value set by the setting means.SELECTED DRAWING: Figure 6

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では金属色の領域は乱反射させて正反射成分の反射光を取り入れた状態の反射光を読み取ることで得られる画像を用いることで良好な色で読み取ることが可能となる。 Patent Document 1 proposes a method for reading a metallic color with a good color when a metallic color having a very high gloss such as gold or silver is recorded in the original document. In this method, an image obtained by reading the reflected light of the diffused reflection component and an image obtained by reading the reflected light in a state where the reflected light of the positive reflection component is incorporated by diffusely reflecting the reflected light from the original document. Whether or not it is a metallic gloss region is determined by the difference for each color component. A metallic color with very high gloss has a large amount of specular reflection components and a significantly small amount of diffuse reflection components, so that an image obtained by a general image reader becomes darker than the visual impression. However, in Patent Document 1, the metallic color region can be read in a good color by using an image obtained by diffusely reflecting and reading the reflected light in a state where the reflected light of the specular reflection component is taken in.

特許第4024737号公報Japanese Patent No. 4024737

しかしながら、金色や銀色等の金属色が記録されている原稿の紙種によっては、読み取りの結果、金属色ではない色が記録されている領域を金属色であると誤判定してしまうことがある。特許文献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 Patent Document 1, the difference between the color components of the two images is taken by utilizing the fact that the reflected light of the specular reflection component of the metallic color is large and the reflected light of the diffuse reflection component is small, and the judgment is made by comparing with the threshold value. ing. However, in the case of a paper type with high reflectance such as glossy paper, even if the color is not metallic, the reflected light of the positive reflection component increases due to the reflection by the paper even if it is not as strong as the metallic color, and the reflected light of the diffuse reflection component increases. Will be less. In this case, even in the area where a color other than the metallic color is recorded, it is erroneously determined to be the metallic color.

そこで、本発明は、当該原稿の読み取りデータに対し、金属光沢領域の判定を良好に行うことを目的とする。 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.

本発明に係る読取装置の概観斜視図。Overview perspective view of the reading device according to the present invention. 本発明に係る原稿の読み取り動作を説明するための図。The figure for demonstrating the reading operation of the document which concerns on this invention. 本発明に係る読取装置の内部構成の例を示す図。The figure which shows the example of the internal structure of the reading apparatus which concerns on this invention. 本発明に係る読取装置における画像処理のフローチャート。The flowchart of image processing in the reading apparatus which concerns on this invention. 第1の実施形態に係る読取動作のフローチャート。The flowchart of the reading operation which concerns on 1st Embodiment. 第1の実施形態に係る金属光沢領域判定のフローチャート。The flowchart of the metallic luster region determination which concerns on 1st Embodiment. 画像読取時の光の反射を説明するための図。The figure for demonstrating the reflection of light at the time of image reading. 第1の実施形態に係る読み取り画像生成のフローチャート。The flowchart of the reading image generation which concerns on 1st Embodiment. 第2の実施形態に係る金属光沢領域判定のフローチャート。The flowchart of the metallic luster region determination which concerns on 2nd Embodiment. 第3の実施形態に係る金属光沢領域判定のフローチャート。The flowchart of the metallic luster region determination which concerns on 3rd Embodiment. 第4の実施形態に係る読み取り画像生成のフローチャート。The flowchart of the reading image generation which concerns on 4th Embodiment. 第4の実施形態に係る3次元の色補正テーブルを説明するための図。The figure for demonstrating the three-dimensional color correction table which concerns on 4th Embodiment. 第4の実施形態に係る四面体補間を説明するための図。The figure for demonstrating tetrahedral interpolation which concerns on 4th Embodiment. 本発明を適用可能な複写装置の内部構成の例を示す図。The figure which shows the example of the internal structure of the copying apparatus to which this invention is applied. 本発明の一実施形態に係る閾値設定を説明するための図。The figure for demonstrating the threshold setting which concerns on one Embodiment of this invention.

以下、添付図面を参照して本発明の実施形態を詳しく説明する。尚、以下の実施形態は特許請求の範囲に係る本発明を限定するものでなく、また本実施形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。なお、同一の構成要素には同一の参照番号を付して、説明を省略する。 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 reading device 100 applicable as an image processing device according to the present embodiment. Here, as the reading device 100, a so-called flatbed type scanner will be described as an example. As shown in FIG. 1, the scanning device 100 includes a document base cover 101 for holding a set document, a document table 102 for placing a document, and a document scanning unit 103 for scanning a set document. When the user places the document on the platen 102, closes the platen cover 101, and presses the scanner button key 104, the document scanning unit 103 starts scanning the document. Buttons are assigned to the scanner button keys 104 according to the reading mode, and the user presses the buttons according to the mode to be used. The scanning device 100 according to the present embodiment can read a document in which a metal color such as gold or silver is recorded, a color scan mode in which the document can be read in color, a monochrome scan mode in which the document can be read in monochrome. It has a metallic scan mode that can be used. In this embodiment, a color other than the metallic color is referred to as a non-metallic color. In the present embodiment, the metallic scan mode will be described, and the color scan mode and the monochrome scan mode will be omitted.

図2は、読取装置100による原稿を読み取る動作を表した図である。原稿読取ユニット103はモーター(不図示)により駆動される。例えば、原稿読取ユニット103は、所定方向に沿ったラインセンサにて構成され、その所定方向に直交する方向にモーター(不図示)により駆動されつつ、原稿に対する読み取りを行う。原稿読取ユニット103内に設置されている光源201から原稿に照射され、原稿から反射された拡散反射成分の光をロッドレンズアレイ202に通し、反射信号を検出するセンサー203により読み取る。 FIG. 2 is a diagram showing an operation of reading a document by the reading device 100. The document reading unit 103 is driven by a motor (not shown). For example, the document reading unit 103 is composed of a line sensor along a predetermined direction, and reads a document while being driven by a motor (not shown) in a direction orthogonal to the predetermined direction. The light source 201 installed in the document reading unit 103 irradiates the document, and the light of the diffuse reflection component reflected from the document is passed through the rod lens array 202 and read by the sensor 203 that detects the reflected signal.

図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 reading device 100. The CPU 301 controls the operation of the reading device 100. The ROM 302 is a non-volatile storage area, and stores various programs for executing the control of the CPU 301 and the operations of other parts. For example, a program corresponding to the processing in the flowchart of various processing according to the present invention described later is stored in the ROM 302. The CPU 301 realizes various processes by reading and executing the program stored in the ROM 302. Further, the ROM 302 stores various values, tables, and data used for image processing such as shading correction described later.

スキャンユニット303は、原稿から画像を読み取り、取得した読み取り信号値(赤(R)、緑(G)および青(B)のアナログ輝度データ)をAD変換によりデジタル化して出力する。画像処理部304は、AD変換によりデジタル化された読み取り信号値の補正、画像の符号化などの画像処理を行う。画像処理の際、データの一時的な格納が必要となる場合は、RAM308が使用される。オペレーションユニット305は、スキャナボタンキー(不図示)を備え、キーの押下状態を検出し、各部に各キーに対応する指示を送信する。ドライブユニット306は、スキャンユニット303を動作させるため、モーター制御するドライバ回路などを含む。PCインタフェース307はPC(Personal Computer)などの外部装置とのインタフェースであり、読取装置100はPCインタフェース307を介して外部装置とのデータ転送を行う。外部装置へのデータ転送の際にバッファが必要となる場合は、RAM308が使用される。 The scan unit 303 reads an image from the original, digitizes the acquired read signal values (analog luminance data of red (R), green (G), and blue (B)) by AD conversion, and outputs the data. The image processing unit 304 performs image processing such as correction of the read signal value digitized by AD conversion and image coding. RAM 308 is used when data needs to be temporarily stored during image processing. The operation unit 305 includes a scanner button key (not shown), detects a key press state, and transmits an instruction corresponding to each key to each unit. The drive unit 306 includes a driver circuit that controls a motor in order to operate the scan unit 303. The PC interface 307 is an interface with an external device such as a PC (Personal Computer), and the reading device 100 transfers data with the external device via the PC interface 307. RAM 308 is used when a buffer is required for data transfer to an external device.

[処理フロー]
図4は、本実施形態係る読取装置100の画像処理部304で実行される画像処理のフローチャートである。
[Processing flow]
FIG. 4 is a flowchart of image processing executed by the image processing unit 304 of the reading device 100 according to the present embodiment.

S401にて、画像処理部304は、スキャンユニット303で読み取られ、AD変換された画像データに対し、シェーディング補正を行う。シェーディング補正は、予め用意された白基準と黒基準をセンサー203にて読み取り、センサー203の撮像素子毎の読み取り値から、補正を行いスキャンユニット303における撮像素子のばらつきを補正する処理である。 In S401, the image processing unit 304 performs shading correction on the image data read by the scan unit 303 and AD-converted. The shading correction is a process of reading the white reference and the black reference prepared in advance by the sensor 203, correcting the reading value of each image sensor of the sensor 203, and correcting the variation of the image sensor in the scan unit 303.

S402にて、画像処理部304は、シェーディング補正後の画像データに対し、ガンマ補正を行う。ガンマ補正は、読取装置100で得られた画像の輝度値が自然な値となるように輝度値を補正する処理であり、ROM302に予め保持しているガンマ値テーブル(不図示)を用いて行うことができる。 In S402, the image processing unit 304 performs gamma correction on the image data after shading correction. The gamma correction is a process of correcting the brightness value so that the brightness value of the image obtained by the reading device 100 becomes a natural value, and is performed using a gamma value table (not shown) previously stored in the ROM 302. be able to.

なお、上記シェーディング補正とガンマ補正は、それぞれ本実施形態における読み取り動作を行う度に実行される。以下、説明上の便宜のために、図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 scan unit 303 and the image processing unit 304 according to the program stored in the ROM 302. In the present embodiment, the processing flow is started when the button key corresponding to the metallic scan mode of the scanner button keys 104 included in the reading device 100 is pressed.

S501にて、CPU301は、通常スキャンとして、原稿台102に設置された原稿の読み取りを、スキャンユニット303に実行させる。本ステップの読み取りの目的は、原稿の拡散反射成分の反射光による画像の取得である。 In S501, the CPU 301 causes the scan unit 303 to read the document installed on the platen 102 as a normal scan. The purpose of reading in this step is to acquire an image by the reflected light of the diffuse reflection component of the document.

S502にて、CPU301は、乱反射スキャンとして、原稿台102に設置された原稿の読み取りを、スキャンユニット303に実行させる。本ステップの読み取りの目的は、原稿の正反射成分の反射光を取り入れた状態の反射光による画像の取得である。なお、正反射成分の反射光を取り入れるためには原稿台102と原稿の間に透明性が高く、光を乱反射させる部材を用いる必要がある。本実施形態においては薄いポリプロピレン製のシートを置いて読み取りを行うことで正反射成分の反射光を取り入れることとする。例えば、乱反射スキャン時において、読取装置100がモータ(不図示)を駆動することで、原稿読取ユニット103と原稿の間にシート(不図示)を設置するような構成であってもよい。または、ユーザーにシートを原稿台102上に設置させてもよい。 In S502, the CPU 301 causes the scan unit 303 to read the document installed on the platen 102 as a diffuse reflection scan. The purpose of reading in this step is to acquire an image by the reflected light in a state where the reflected light of the specular reflection component of the original is taken in. In order to take in the reflected light of the specular reflection component, it is necessary to use a member having high transparency between the platen 102 and the original and diffusely reflecting the light. In the present embodiment, the reflected light of the specular reflection component is taken in by placing a thin polypropylene sheet and reading it. For example, during diffuse reflection scanning, the reading device 100 may drive a motor (not shown) to install a sheet (not shown) between the document reading unit 103 and the document. Alternatively, the user may be allowed to place the sheet on the platen 102.

S503にて、画像処理部304は、S501で読み取られた画像を用いてS504で使用する閾値を設定する。本実施形態では、画像から原稿の表面平滑度を決定することにより、適した閾値を設定する。まず、画像における紙白領域を特定するために、画像を所定数の区画に分割し、区画毎の平均信号値を算出し、算出した平均信号値に基づいて紙白区画を判定する。 In S503, the image processing unit 304 sets the threshold value to be used in S504 using the image read in S501. In the present embodiment, an appropriate threshold value is set by determining the surface smoothness of the original from the image. First, in order to specify the white area in the image, the image is divided into a predetermined number of sections, the average signal value for each section is calculated, and the white area is determined based on the calculated average signal value.

次に、判定された紙白区画から紙面の表面状態を読み取り、表面粗さや表面形状などに基づいて表面平滑度を決定する。具体的には、表面凹凸の深さを表面粗さ、表面凹凸の周期を表面形状の特徴とし、これらの特徴に着目して表面平滑度を決定する。例えば、半光沢紙と光沢紙を比較すると、半光沢紙は表面凹凸が深くて凹凸の周期が低い特徴がある。この特徴に基づき、紙白区画内の輝度差を算出することで凹凸深度の推定を行う。また、紙白区画を二値化し、その変化回数で凹凸周期の検知を行う。これにより求められた凹凸深度と凹凸周期により、表面平滑度を決定する。なお、原稿の表面平滑度を決定する方法としては他にもランレングスを利用した凹凸周期の検知や、ヒストグラムによる凹凸深度の推定を行う方法を用いてもよい。 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 ROM 302. When the surface smoothness is high (that is, it corresponds to glossy paper), the threshold value Th_L1 is set. On the other hand, when the surface smoothness is low (that is, it corresponds to semi-glossy paper), the threshold value Th_L2 is set. The higher the surface smoothness of the original, the stronger the reflected light of the specular reflection component than the reflected light of the diffuse reflection component, so the threshold value needs to be increased. That is, it is assumed that the threshold value Th_L1 and the threshold value Th_L2 are set higher than the threshold value Th_L1 (Th_L1> Th_L2).

なお、紙白区画の判定の結果、紙白区画がない場合は区画毎の平均信号値が一番明るい区画を紙白に近い区画として選択することで処理を行ってよい。また、全面が金属光沢領域の場合、全ての区画が同じように暗くなってしまうが、この場合は表面平滑度を決定せず、低い閾値を設定してよい。本実施形態の場合、閾値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 image processing unit 304 performs a determination process of determining whether or not it is a metallic luster region from the image read by the normal scan in S501 and the image read by the diffuse reflection scan in S502. The determination process is performed on a pixel-by-pixel basis, and determination is made by comparing pixels at the same coordinates in two images. Details of the determination method will be described later with reference to FIG.

S505にて、画像処理部304は、S504で判定された結果を基に読み取り画像を生成する。生成方法の詳細は、図8を用いて後述する。 In S505, the image processing unit 304 generates a read image based on the result determined in S504. Details of the generation method will be described later with reference to FIG.

(金属光沢領域判定処理)
以下、図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()は、複数の引数の値のうちの最小値を出力する関数である。

Figure 2021013100
・・・式(1)
本実施形態において、画像の所定の位置を原点(0,0)とし、その座標の画素から順に着目画素として処理を行うものとする。 In S601, the image processing unit 304 sets the signal values (R, G, B) of the pixels (pixels of interest) at the coordinates (X, Y) of the normal scan image acquired in S501 and the diffused reflection scan image acquired in S502. ) Is converted to lightness. In this embodiment, the lightness L of the HLS color space is used as a method of converting the RGB signal value into the lightness which is one of the color information as shown in the following formula (1). The brightness is not limited to this, and may be converted into the brightness of the HSV color space or the Lab color space. In the equation (1), the function MAX () is a function that outputs the maximum value among the values of a plurality of arguments. Further, the function MIN () is a function that outputs the minimum value among the values of a plurality of arguments.
Figure 2021013100
... 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 image processing unit 304 compares the signal values of the two images converted into brightness in S601. FIG. 7A is a diagram showing how the light emitted from the light source 201 is reflected in the metallic luster region recorded on the glossy paper. When the position where the light is irradiated is a metallic luster region, the reflected light of the specular reflection component is very large, and the reflected light of the diffuse reflection component is remarkably small. Here, the amount of reflected light is conceptually shown by the length of the arrow.

図7(b)は、光沢紙に記録された非金属光沢領域において、光源201から照射された光が反射する様子を示す図である。光が照射された位置が非金属光沢領域である場合、正反射成分の反射光が金属光沢領域よりも少なく、拡散反射成分の反射光が金属光沢領域よりも多くなる。このことから、正反射成分の反射光を取り入れた乱反射スキャンの読み取り画像と通常スキャンの読み取り画像の明度差は、非金属光沢領域よりも金属光沢領域の方が大きくなる。従って、乱反射スキャンと通常スキャンの明度で差分をとり、S503で設定した閾値よりも明度差が大きい場合(S602にてYES)S603へ進む。一方、閾値よりも乱反射スキャンと通常スキャンの明度差が、S503で設定した閾値よりも小さい場合(S602にてNO)S604へ進む。 FIG. 7B is a diagram showing how the light emitted from the light source 201 is reflected in the non-metallic luster region recorded on the glossy paper. When the position where the light is irradiated is a non-metallic luster region, the reflected light of the positive reflection component is less than that of the metallic luster region, and the reflected light of the diffuse reflection component is larger than that of the metallic luster region. From this, the difference in brightness between the scanned image of the diffuse reflection scan incorporating the reflected light of the specular reflection component and the scanned image of the normal scan is larger in the metallic luster region than in the non-metallic luster region. Therefore, a difference is taken between the brightness of the diffuse reflection scan and the normal scan, and when the difference in brightness is larger than the threshold value set in S503 (YES in S602), the process proceeds to S603. On the other hand, when the difference in brightness between the diffuse reflection scan and the normal scan is smaller than the threshold value (NO in S602), the process proceeds to S604.

本実施形態では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 light source 201 is reflected in the metallic luster region recorded on the semi-glossy paper. Further, FIG. 7D is a diagram showing how the light emitted from the light source 201 is reflected in the non-metallic luster region recorded on the semi-glossy paper. As described above, since the semi-glossy paper has irregularities on the surface of the paper as compared with the glossy paper, the reflected light is diffused, and the difference between the reflected light of the normal reflection component and the reflected light of the diffuse reflection component is small.

閾値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 image processing unit 304 determines that the corresponding pixel (X, Y) is a metallic luster region. Then, the process proceeds to S605.

S604にて、画像処理部304は、該当画素(X、Y)を非金属光沢領域であると判定する。そして、S605へ進む。 In S604, the image processing unit 304 determines that the corresponding pixel (X, Y) is a non-metallic luster region. Then, the process proceeds to S605.

S605にて、画像処理部304は、全ての画素について処理が終了したか否かの判定を実行する。全ての画素に対して処理が終了していない場合(S605にてNO)S601に戻り、未処理の画素を対象として処理を繰り返す。ここでは、画素の座標値であるX、Yの値を更新することで、未処理の画素に対する処理が繰り返される。全ての画素に対する処理が完了した場合(S605にてYES)本処理フローを終了する。 In S605, the image processing unit 304 executes a determination as to whether or not the processing has been completed for all the pixels. When the processing is not completed for all the pixels (NO in S605), the process returns to S601 and the processing is repeated for the unprocessed pixels. Here, by updating the X and Y values, which are the coordinate values of the pixels, the processing for the unprocessed pixels is repeated. When the processing for all pixels is completed (YES in S605), this processing flow ends.

(読み取り画像生成処理)
以下、図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 image processing unit 304 determines whether or not the pixel of the coordinates (X, Y) in the image is a metallic luster region based on the determination result of the metallic luster region determination processing described with reference to FIG. To judge. In the case of a metallic luster region, the process proceeds to S802 (YES in S801), and in the case of a non-metallic luster region, the process proceeds to S803 (NO in S801). Here, as in the process of FIG. 6, it is assumed that a predetermined position of the image is set as the origin (0, 0), and the process is performed as the pixel of interest in order from the pixel at that coordinate.

S802にて、画像処理部304は、金属光沢領域であると判定された画素(X、Y)に対し、S502における乱反射スキャンによって得られた画像の信号値(R、G、B)を読み取り画像(画素値)として生成する。そして、S804へ進む。 In S802, the image processing unit 304 reads the signal values (R, G, B) of the image obtained by the diffuse reflection scan in S502 with respect to the pixels (X, Y) determined to be in the metallic luster region. Generated as (pixel value). Then, the process proceeds to S804.

S803にて、画像処理部304は、非金属光沢領域であると判定された画素(X、Y)に対し、S501における通常スキャンによって得られた画像の信号値(R、G、B)を読み取り画像(画素値)として生成する。そして、S804へ進む。 In S803, the image processing unit 304 reads the signal values (R, G, B) of the image obtained by the normal scan in S501 for the pixels (X, Y) determined to be in the non-metallic luster region. Generated as an image (pixel value). Then, the process proceeds to S804.

S804にて、画像処理部304は、全ての画素について処理が終了したか否かの判定を実行する。全ての画素に対して処理が終了していない場合(S804にてNO)S801に戻り、未処理の画素を対象として処理を繰り返す。ここでは、画素の座標値であるX、Yの値を更新することで、未処理の画素に対する処理が繰り返される。全ての画素に対する処理が完了した場合(S804にてNO)本処理フローを終了する。 In S804, the image processing unit 304 executes a determination as to whether or not the processing has been completed for all the pixels. When the processing is not completed for all the pixels (NO in S804), the process returns to S801, and the processing is repeated for the unprocessed pixels. Here, by updating the X and Y values, which are the coordinate values of the pixels, the processing for the unprocessed pixels is repeated. When the processing for all pixels is completed (NO in S804), this processing flow ends.

以上、本実施形態により、原稿の紙種に関わらず、当該原稿の読み取り画像内の領域に対して金属光沢領域か否かを良好な判定をすることが可能となる。特に、平滑度(紙種に関連する情報)に基づいて異なる閾値が設定される。これにより、異なる紙種に対しても良好な領域判定を行うことが可能となる。更に、金属光沢領域の判定結果に応じて画像の生成(画素値の選択)を行うことで好適な画像をユーザーに提供することができる。更には金属光沢領域の判定結果を属性データとして画像に保存しておくことで、画像を表示する際にエフェクトを加えるなどして金属色であることをわかるようにすることも可能になる。 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 platen 102 and the document is used. ing. However, the device configuration may be such that the reflected light of the specular reflection component is directly read without using a member. Specifically, by preparing the rod lens array 202 and the sensor 203 not only in the diffuse reflection direction of the light emitted from the light source 201 in the document reading unit 103 but also in the specular reflection direction, the specular reflection component can be obtained. It becomes possible to acquire an image by reflected light.

<第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 image processing unit 304 sets a threshold value to be used in the metallic luster region determination process (S504) using the image read in S501. In the first embodiment, the brightness threshold value is set from a plurality of threshold values previously held in the ROM 302 by determining the surface smoothness of the document from the image. On the other hand, in the second embodiment, the threshold values of lightness and saturation are set. Similar to the brightness, the saturation threshold is set higher when the surface smoothness of the document is higher. That is, in the thresholds Th_S1 and Th_S2 for saturation, the threshold Th_S1 set when the surface smoothness is high and the threshold Th_S2 set when the smoothness is low set the threshold Th_S1 to a higher value (Th_S1> Th_S2). ..

(金属光沢領域判定処理)
以下、本実施形態に係る金属光沢領域判定の詳細を記述する。図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 image processing unit 304 converts the signal values (R, G, B) of the pixels of the coordinates (X, Y) of the two images into brightness. The processing content in this step may be the same as S601 in FIG. 6 of the first embodiment.

S902にて、画像処理部304は、2つの画像の明度の比較を行う。本工程における処理内容は、第1の実施形態の図6のS602と同様であってよい。乱反射スキャンと通常スキャンの明度の差分が、図5のS503で設定した閾値よりも大きい場合(S902にてYES)S903へ進む。一方、閾値よりも乱反射スキャンと通常スキャンの明度差が、図5のS503で設定した閾値よりも小さい場合(S902にてNO)S906へ進む。 In S902, the image processing unit 304 compares the brightness of the two images. The processing content in this step may be the same as in S602 of FIG. 6 of the first embodiment. When the difference in brightness between the diffuse reflection scan and the normal scan is larger than the threshold value set in S503 of FIG. 5 (YES in S902), the process proceeds to S903. On the other hand, when the difference in brightness between the diffused reflection scan and the normal scan is smaller than the threshold value set in S503 of FIG. 5 (NO in S902), the process proceeds to S906.

S903にて、画像処理部304は、図5のS501で取得した通常スキャンの画像とS502で取得した乱反射スキャンの画像の座標(X、Y)の画素の信号値(R、G、B)を彩度に変換する。本実施形態では、RGB信号値を彩度に変換する方法として下記の式(2)に示すようにHLS色空間の彩度Sを用いる。なお、これに限定するものではなく、HSV色空間の彩度やLab色空間のabを利用して彩度に変換したものを用いてもよい。式(2)において関数MAX()は、複数の引数の値のうちの最大値を出力する関数である。また、関数MIN()は、複数の引数の値のうちの最小値を出力する関数である。

Figure 2021013100
・・・式(2)
本実施形態において、画像の所定の位置を原点(0,0)とし、その座標の画素から順に着目画素として処理を行うものとする。 In S903, the image processing unit 304 sets the signal values (R, G, B) of the pixels of the coordinates (X, Y) of the normal scan image acquired in S501 of FIG. 5 and the diffused reflection scan image acquired in S502. Convert to saturation. In this embodiment, the saturation S of the HLS color space is used as a method of converting the RGB signal value into the saturation as shown in the following equation (2). It should be noted that the present invention is not limited to this, and those converted into saturation by using the saturation of the HSV color space or the ab of the Lab color space may be used. In the equation (2), the function MAX () is a function that outputs the maximum value among the values of a plurality of arguments. Further, the function MIN () is a function that outputs the minimum value among the values of a plurality of arguments.
Figure 2021013100
... 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 image processing unit 304 compares the signal values of the two images (the image obtained by the normal scan and the image obtained by the diffuse reflection scan) converted into saturation in S903. A detailed explanation is added below. In S902, it is determined whether or not it is a metallic luster region by comparing the brightness. However, only by comparing the brightness, there is a possibility that an erroneous determination is made when a low-brightness color such as blue is recorded on high-gloss paper.

図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 image processing unit 304 determines that the corresponding pixel (X, Y) is a metallic luster region. Then, the process proceeds to S907.

S906にて、画像処理部304は、該当画素(X、Y)を非金属光沢領域であると判定する。そして、S907へ進む。 In S906, the image processing unit 304 determines that the corresponding pixel (X, Y) is a non-metallic luster region. Then, the process proceeds to S907.

S907にて、画像処理部304は、全ての画素について処理が終了したか否かの判定を実行する。全ての画素に対して処理が終了していない場合(S907にてNO)S901に戻り、未処理の画素を対象として処理を繰り返す。ここでは、画素の座標値であるX、Yの値を更新することで、未処理の画素に対する処理が繰り返される。全ての画素に対する処理が完了した場合(S907にてYES)本処理フローを終了する。 In S907, the image processing unit 304 executes a determination as to whether or not the processing has been completed for all the pixels. When the processing is not completed for all the pixels (NO in S907), the process returns to S901, and the processing is repeated for the unprocessed pixels. Here, by updating the X and Y values, which are the coordinate values of the pixels, the processing for the unprocessed pixels is repeated. When the processing for all pixels is completed (YES in S907), this processing flow ends.

以上、本実施形態では明度の観点で金属光沢領域であると判定された領域の中から更に彩度の低下で閾値を設けて彩度低下の値が大きいものを非金属光沢領域であるとして追加の判定を行っている。従って、本実施形態により、第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 image processing unit 304 sets a threshold value to be used in the metallic luster determination process (S504) using the image read in S501. On the other hand, in the third embodiment, the saturation threshold value is set from a plurality of threshold values previously held in the ROM 302 by determining the surface smoothness of the document from the image. Similar to the second embodiment, the threshold Th_S1 set when the smoothness is high and the threshold Th_S2 set when the surface smoothness is low are set to higher values (Th_S1> Th_S2).

(金属光沢領域判定処理)
以下、本実施形態に係る金属光沢領域判定の詳細を記述する。図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 image processing unit 304 converts the signal values (R, G, B) of the pixels of the coordinates (X, Y) of the two images into saturation. The processing content in this step may be the same as S903 in FIG. 9 of the second embodiment.

S1002にて、画像処理部304は、S1001で彩度に変換された2つの画像(通常スキャンによる画像、および、乱反射スキャンによる画像)の信号値の比較を行う。以下に詳細な説明を加える。第2の実施形態でも述べたように、非金属光沢領域における正反射成分の反射光は紙による反射のため、色材の色味があまり乗らず、光源の光をそのまま反射することになる。また、金属光沢領域における正反射成分の反射光は金属色による反射のため、金属色の色そのものを反射することになる。更に金属光沢領域における拡散反射成分の反射光は強度が弱く、暗くなるために黒に近い色になってしまう。つまり、拡散反射成分の反射光と正反射成分の反射光で比較すると金属光沢領域は正反射成分の彩度が高くなる。従って、乱反射スキャンと通常スキャンの彩度で差分をとり、S503で設定した閾値よりも彩度差が大きく、乱反射スキャンの方が鮮やかな場合(S1002にてYES)S1003へ進む。一方、閾値よりも乱反射スキャンと通常スキャンの彩度差が小さい場合(S1002にてNO)S1004へ進む。 In S1002, the image processing unit 304 compares the signal values of the two images (the image by the normal scan and the image by the diffuse reflection scan) converted into saturation in S1001. A detailed explanation is added below. As described in the second embodiment, the reflected light of the specular reflection component in the non-metallic luster region is reflected by the paper, so that the tint of the coloring material is not so much applied and the light of the light source is reflected as it is. Further, since the reflected light of the specular reflection component in the metallic luster region is reflected by the metallic color, the metallic color itself is reflected. Further, the reflected light of the diffuse reflection component in the metallic luster region has a weak intensity and becomes dark, so that the color becomes close to black. That is, when the reflected light of the diffuse reflection component and the reflected light of the specular reflection component are compared, the saturation of the specular reflection component is high in the metallic gloss region. Therefore, when the difference is taken between the saturation of the diffused reflection scan and the normal scan, the saturation difference is larger than the threshold value set in S503, and the diffused reflection scan is more vivid (YES in S1002), the process proceeds to S1003. On the other hand, when the saturation difference between the diffuse reflection scan and the normal scan is smaller than the threshold value (NO in S1002), the process proceeds to S1004.

S1003にて、画像処理部304は、該当画素(X、Y)を金属光沢領域であると判定する。そして、S1005へ進む。 In S1003, the image processing unit 304 determines that the corresponding pixel (X, Y) is a metallic luster region. Then, the process proceeds to S1005.

S1004にて、画像処理部304は、該当画素(X、Y)を非金属光沢領域であると判定する。そして、S1005へ進む。 In S1004, the image processing unit 304 determines that the corresponding pixel (X, Y) is a non-metallic luster region. Then, the process proceeds to S1005.

S1005にて、画像処理部304は、全ての画素について処理が終了したか否かの判定を実行する。全ての画素に対して処理が終了していない場合(S1005にてNO)S1001に戻り、未処理の画素を対象として処理を繰り返す。ここでは、画素の座標値であるX、Yの値を更新することで、未処理の画素に対する処理が繰り返される。全ての画素に対する処理が完了した場合(S1005にてYES)本処理フローを終了する。 In S1005, the image processing unit 304 executes a determination as to whether or not the processing is completed for all the pixels. When the processing is not completed for all the pixels (NO in S1005), the process returns to S1001 and the processing is repeated for the unprocessed pixels. Here, by updating the X and Y values, which are the coordinate values of the pixels, the processing for the unprocessed pixels is repeated. When the processing for all pixels is completed (YES in S1005), this processing flow ends.

以上、本実施形態では彩度の観点でのみ金属光沢領域の判定を行う。つまり、銀色のような無彩色の金属色に関しては、正反射成分の反射光も無彩色のままであるため正しく判定できない。しかし、本実施形態では、第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 image processing unit 304 determines whether or not the pixel at the coordinates (X, Y) in the image is a metallic luster region based on the determination result of the metallic luster region determination processing. If it is a metallic luster region, the process proceeds to S1102 (YES in S1101), and if it is a non-metallic luster region, the process proceeds to S1103 (NO in S1101). The processing content here may be the same as in S801 of FIG.

S1102およびS1103にて、画像処理部304は、画素(X,Y)に対し、領域の判定結果に応じて、通常スキャンによって得られた画像の信号値(R、G、B)の色変換処理を行う。色変換はマトリクスなどの演算で行うことも可能であるが、本実施形態においては判定結果に応じた柔軟な色変換を行うため、3次元の色補正テーブルを利用する。以下に詳細な説明を加える。 In S1102 and S1103, the image processing unit 304 performs color conversion processing of the signal values (R, G, B) of the image obtained by the normal scan for the pixels (X, Y) according to the determination result of the area. I do. The color conversion can be performed by an operation such as a matrix, but in the present embodiment, a three-dimensional color correction table is used in order to perform flexible color conversion according to the determination result. A detailed explanation is added below.

各画素に対して入力される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)が求められる。

Figure 2021013100
・・・式(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.
Figure 2021013100
... 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 image processing unit 304 performs color conversion processing of the signal values (R, G, B) of the image obtained by the normal scan on the pixels (X, Y) determined to be in the metallic luster region. Do. In S1102, a color correction table suitable for a metallic luster region is used. The color correction table for the metallic luster region may be created so that when the RGB values of the normal scan image of the metallic luster region are color-converted, the converted RGB values are close to the visual impression. Specifically, a document on which metallic luster patches of various colors are recorded is prepared, and the signal value of an image obtained by normally scanning the document is prepared as an input RGB value. Then, the color measurement value obtained by measuring the color of the original with the reflected light including the specular reflection component using a colorimeter such as an integrating sphere is converted into the sRGB value, which is one of the standards in the monitor display. Is prepared as the RGB value after color conversion. Since the reflected light of the diffuse reflection component is remarkably small in the metallic luster region as described above, the colorimetric measurement including the reflected light of the specular reflection component brings the impression closer to the appearance. By using the input RGB value and the RGB value after color conversion as a combination and using a known method such as a pseudo inverse matrix, it is possible to create a color correction table suitable for a metallic luster region. After this process, the process proceeds to S1104.

S1103にて、画像処理部304は、非金属光沢領域であると判定された画素(X、Y)に対し、通常スキャンによって得られた画像の信号値(R、G、B)の色変換処理を行う。S1103では、非金属光沢領域に適した色補正テーブルを用いる。非金属光沢領域用の色補正テーブルは、非金属光沢領域の通常スキャン画像のRGB値を色変換した際に変換後のRGB値が見た目の印象に近くなるように作成すればよい。具体的には様々な色の非金属光沢色パッチが記録されている原稿を用意し、その原稿を通常スキャンした画像の信号値を入力RGB値として用意する。そして、積分球等の測色器を用いて正反射成分を含まない反射光によって原稿を測色して得られる測色値を、モニター表示における標準の1つとなっているsRGB値に変換した値を色変換後のRGB値として用意する。非金属光沢領域はこれまで述べてきたように、正反射成分の反射光を含めてしまうと紙による反射の影響を受けて記録されている色材の色を評価できなくなってしまうため、正反射成分の反射光を含まない測色を行うことによって見た目の印象に近くする。上記入力RGB値と色変換後のRGB値を組み合わせとして用いて、擬似逆行列等の公知の手法を用いることで非金属光沢領域に適した色補正テーブルを作成することが可能となる。本処理の後、S1104へ進む。 In S1103, the image processing unit 304 performs color conversion processing of signal values (R, G, B) of the image obtained by normal scanning for the pixels (X, Y) determined to be in the non-metallic luster region. I do. In S1103, a color correction table suitable for a non-metallic luster region is used. The color correction table for the non-metallic luster region may be created so that when the RGB values of the normal scan image in the non-metallic luster region are color-converted, the converted RGB values are close to the visual impression. Specifically, a document on which non-metallic luster patches of various colors are recorded is prepared, and the signal value of an image obtained by normally scanning the document is prepared as an input RGB value. Then, the color measurement value obtained by measuring the color of the original with the reflected light containing no specular reflection component using a colorimeter such as an integrating sphere is converted into the sRGB value, which is one of the standards in the monitor display. Is prepared as the RGB value after color conversion. As described above, if the non-metallic luster region includes the reflected light of the specular reflection component, the color of the recorded color material cannot be evaluated due to the influence of the reflection by the paper, so the specular reflection By performing color measurement that does not include the reflected light of the components, the impression is close to the appearance. By using the input RGB value and the RGB value after color conversion as a combination and using a known method such as a pseudo inverse matrix, it is possible to create a color correction table suitable for a non-metallic luster region. After this process, the process proceeds to S1104.

S1104にて、画像処理部304は、全ての画素について処理が終了したか否かの判定を実行する。全ての画素に対して処理が終了していない場合(S1104にてYES)S1101に戻り、未処理の画素を対象として処理を繰り返す。ここでは、画素の座標値であるX、Yの値を更新することで、未処理の画素に対する処理が繰り返される。全ての画素に対する処理が完了した場合(S1104にてNO)本処理フローを終了する。 In S1104, the image processing unit 304 executes a determination as to whether or not the processing has been completed for all the pixels. When the processing is not completed for all the pixels (YES in S1104), the process returns to S1101 and the processing is repeated for the unprocessed pixels. Here, by updating the X and Y values, which are the coordinate values of the pixels, the processing for the unprocessed pixels is repeated. When the processing for all pixels is completed (NO in S1104), this processing flow ends.

上記のように、本実施形態では乱反射スキャンによって得られた画像を金属光沢領域か否かの判定には用いるが、読み取り画像の生成には利用していない。本実施形態において、乱反射スキャンは、光を乱反射させる部材として薄いポリプロピレン製のシート(不図示)を原稿台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 platen 102 and the document as a member for diffusely reflecting light. Therefore, the image obtained by the diffuse reflection scan is slightly out of focus, and a blurred image is acquired. In the present embodiment, since the scanned image is generated only by the normally scanned image, it is possible to generate an image in a state without blur.

以上、本実施形態により、第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 display 1401 for displaying and operating the scanned image and a print unit 1402 for recording the image. By providing the display 1401, the user can set the threshold value by himself / herself in the threshold value setting performed in S503. Other configurations correspond to the configurations shown in FIG.

図15は、ユーザーが閾値を設定する様子を示した図である。ディスプレイ1401には、通常スキャンと乱反射スキャンの差分の二値化結果を示す画面1501を表示し、ユーザーは画面1501の下部に表示されているスライドバー1502を動かすことで二値化に用いる閾値を自由に変えることができる。また、表示されている二値化結果もユーザーが操作した閾値に応じて変えることにより、ユーザーは結果を見ながら閾値の調整ができるため、読み取った画像に対して最適な閾値を設定することが可能になる。そして、複写装置は、受け付けたユーザー操作に基づいて、閾値の設定および画像生成処理を行う。 FIG. 15 is a diagram showing how the user sets the threshold value. The display 1401 displays a screen 1501 showing the binarization result of the difference between the normal scan and the diffuse reflection scan, and the user moves the slide bar 1502 displayed at the bottom of the screen 1501 to set the threshold value used for the binarization. You can change it freely. In addition, by changing the displayed binarization result according to the threshold value operated by the user, the user can adjust the threshold value while looking at the result, so that the optimum threshold value can be set for the read image. It will be possible. Then, the copying apparatus sets the threshold value and performs the image generation process based on the received user operation.

また、複写装置では好適な読み取り画像に対してプリントユニット1402を用いることでユーザーの見た目の印象に近い色で記録ができる。更には、特色の色材として銀色を搭載している複写装置であれば、金属光沢領域と判定された領域に銀色を用いることで金属光沢色の複写も可能になる。例えば、金属光沢領域と判定された金色の場合であれば銀色の色材を先に記録媒体に記録し、その後に黄色の色材を記録するように制御を行うことで金色の複写が可能になる。 Further, in the copying apparatus, by using the print unit 1402 for a suitable read image, it is possible to record in a color close to the impression of the user's appearance. Further, if the copying apparatus is equipped with silver as a special color material, it is possible to copy the metallic luster color by using silver in the region determined to be the metallic luster region. For example, in the case of gold color determined to be a metallic luster region, gold color copying is possible by first recording the silver color material on the recording medium and then controlling to record the yellow color material. Become.

本発明は上述の実施形態の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)

原稿に光を照射し、拡散反射成分の反射光の読み取りによって得られる第1の画像データを取得する第1の取得手段と、
前記原稿に光を照射し、正反射成分の反射光を取り入れた状態の反射光の読み取りによって得られる第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に記載の画像処理装置。 The image processing apparatus according to claim 1, wherein the color information includes at least one of lightness and saturation. 前記判定手段は、前記第2の画像データの明度が前記第1の画像データの明度よりも高く、かつ、前記明度の差分が前記設定手段にて設定された明度に対する閾値を超える画素を、金属色として判定することを特徴とする請求項2に記載の画像処理装置。 The determination means metallizes pixels in which the brightness of the second image data is higher than the brightness of the first image data and the difference in brightness exceeds the threshold value for the brightness set by the setting means. The image processing apparatus according to claim 2, wherein the image processing apparatus is determined as a color. 前記判定手段は、前記第2の画像データの明度が前記第1の画像データの明度よりも高く、かつ、前記明度の差分が前記設定手段にて設定された明度に対する閾値を超える画素であって、前記第1の画像データの彩度が前記第2の画像データの彩度よりも高く、かつ、前記彩度の差分が前記設定手段にて設定された前記彩度に対する閾値を超える画素を、非金属色として判定することを特徴とする請求項2に記載の画像処理装置。 The determination means is a pixel in which the brightness of the second image data is higher than the brightness of the first image data and the difference in brightness exceeds the threshold value for the brightness set by the setting means. A pixel in which the saturation of the first image data is higher than the saturation of the second image data and the difference in saturation exceeds the threshold value for the saturation set by the setting means. The image processing apparatus according to claim 2, wherein the image processing apparatus is determined as a non-metallic color. 前記判定手段は、前記第2の画像データの彩度が前記第1の画像データの彩度よりも高く、かつ、前記彩度の差分が前記設定手段にて設定された彩度に対する閾値を超える画素を、金属色として判定することを特徴とする請求項2に記載の画像処理装置。 In the determination means, the saturation of the second image data is higher than the saturation of the first image data, and the difference in saturation exceeds the threshold value for the saturation set by the setting means. The image processing apparatus according to claim 2, wherein the pixels are determined as a metallic color. 前記設定手段は、
前記第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の画像データに含まれる紙白区画における表面凹凸の深さおよび周期に基づいて、前記原稿の表面平滑度を判定することを特徴とする請求項6に記載の画像処理装置。 The image according to claim 6, wherein the setting means determines the surface smoothness of the original document based on the depth and period of the surface unevenness in the white paper section included in the first image data. 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.
前記判定手段により金属色と判定された画素に対しては前記第2の画像データによる画素値を選択し、非金属色と判定された画素に対しては前記第1の画像データによる画素値を選択することにより、前記原稿の画像データを生成する画像生成手段を更に有することを特徴とする請求項1乃至8のいずれか一項に記載の画像処理装置。 The pixel value based on the second image data is selected for the pixel determined to be metallic by the determination means, and the pixel value based on the first image data is selected for the pixel determined to be non-metallic color. The image processing apparatus according to any one of claims 1 to 8, further comprising an image generation means for generating image data of the manuscript by selecting the image processing apparatus. 前記判定手段により金属色と判定された画素と非金属色と判定された画素で異なる色補正テーブルを用いた色変換処理を前記第1の画像データに対して行うことにより、前記原稿の画像データを生成する画像生成手段を更に有することを特徴とする請求項1乃至8のいずれか一項に記載の画像処理装置。 The image data of the original is obtained by performing a color conversion process on the first image data using different color correction tables for the pixels determined to be metallic and the pixels determined to be non-metallic by the determination means. The image processing apparatus according to any one of claims 1 to 8, further comprising an image generating means for generating the image. 金属色と判定された画素に用いる色補正テーブルは、正反射成分を含めた反射光によって測色した測色値を用いて作成され、
非金属色と判定された画素に用いる色補正テーブルは、正反射成分を含まない反射光によって測色した測色値を用いて作成されることを特徴とする請求項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.
原稿に光を照射し、拡散反射成分の反射光の読み取りによって得られる第1の画像データを取得する第1の取得工程と、
前記原稿に光を照射し、正反射成分の反射光を取り入れた状態の反射光の読み取りによって得られる第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.
JP2019126398A 2019-07-05 2019-07-05 Image processing device, image processing method, and program Active JP7339794B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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