JP2013223048A - Image processing apparatus and method thereof - Google Patents

Image processing apparatus and method thereof Download PDF

Info

Publication number
JP2013223048A
JP2013223048A JP2012092477A JP2012092477A JP2013223048A JP 2013223048 A JP2013223048 A JP 2013223048A JP 2012092477 A JP2012092477 A JP 2012092477A JP 2012092477 A JP2012092477 A JP 2012092477A JP 2013223048 A JP2013223048 A JP 2013223048A
Authority
JP
Japan
Prior art keywords
color
data
correction
chart
patches
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
JP2012092477A
Other languages
Japanese (ja)
Other versions
JP6000611B2 (en
Inventor
Atsushi Totsuka
篤史 戸塚
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 JP2012092477A priority Critical patent/JP6000611B2/en
Publication of JP2013223048A publication Critical patent/JP2013223048A/en
Application granted granted Critical
Publication of JP6000611B2 publication Critical patent/JP6000611B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To allow for shading correction of plural color patches included in imaging data obtained by photographing a color chart once.SOLUTION: A data input and output unit 101 obtains the imaging data obtained by photographing a color chart which includes both plural color patches of different colors and plural correction patches. A background data generation unit 104 generates background data from image data on the correction patches included in the imaging data. An image data correction unit 105 performs the shading correction of the imaging data using the background data.

Description

本発明は、画像出力デバイスの色特性を取得する画像処理に関する。   The present invention relates to image processing for obtaining color characteristics of an image output device.

パーソナルコンピュータの普及に伴い、ディジタルカメラ、カラースキャナなどの画像入力デバイスによって画像を取得し、当該画像をLCDなどの画像表示デバイスに表示したりプリンタなどの画像出力デバイスによって印刷することが容易になった。このような状況により、画像入力デバイス、画像表示デバイス、画像出力デバイスの再現色を管理するカラーマネージメント技術(以下、CMS)が必須になった。   Accompanying the widespread use of personal computers, it is easier to acquire images using image input devices such as digital cameras and color scanners, and display the images on image display devices such as LCDs and print them using image output devices such as printers. It was. Under such circumstances, color management technology (hereinafter referred to as CMS) for managing the reproduction colors of image input devices, image display devices, and image output devices has become essential.

各デバイスの色再現を管理するには、観察条件下でデバイスの色再現特性を予め取得する必要がある。色再現特性は、デバイスに入力する色信号(例えばsRGB値)と、デバイスが表現する色(例えばCIE三刺激値XYZ、以下、XYZ値)の関係を表す。デバイスのXYZ値は、一般に、デバイスが表示または出力する多数の色票をデバイスに接触して測定する接触型の測定器により一つずつ測定して取得する。   In order to manage the color reproduction of each device, it is necessary to obtain in advance the color reproduction characteristics of the device under observation conditions. The color reproduction characteristic represents a relationship between a color signal (for example, sRGB value) input to the device and a color (for example, CIE tristimulus value XYZ, hereinafter, XYZ value) represented by the device. In general, the XYZ values of a device are obtained by measuring one by one with a contact-type measuring instrument that measures a number of color charts displayed or output by the device in contact with the device.

より簡易にデバイスのXYZ値を取得する方法として、ディジタルカメラなどの撮像装置を用いる方法がある。撮像装置を用いる場合、例えば、測定対象のデバイスが出力したカラーチャートを撮影し、その撮像データが表す各色票のRGB値をXYZ値に変換する。図1によりカラーチャートの一例を示す。カラーチャートには、例えば、RGB値それぞれを均等に9スライスした計93=729色分の色票が配置される。 As a method for acquiring the XYZ values of the device more simply, there is a method using an imaging device such as a digital camera. When using an imaging device, for example, a color chart output by a device to be measured is photographed, and the RGB values of each color chart represented by the imaging data are converted into XYZ values. FIG. 1 shows an example of a color chart. In the color chart, for example, color charts for a total of 9 3 = 729 colors obtained by equally slicing RGB values into 9 slices are arranged.

撮像装置を用いてデバイスのXYZ値を取得する方法によれば、図1に示すようなカラーチャートに配置された複数の色票のXYZ値を、一度の撮影によって取得することができる。しかし、一般的な照明環境下における非接触型の撮像装置を用いた撮影では、撮影時に、カラーチャートを照明する光のむら(以下、照明むら)がある。また、カラーチャートには、それを出力したデバイスに依存する「面内むら」と呼ばれる色むらがある。これらむら(以下、シェーディング)の影響を低減するには、カラーチャートの撮像データにシェーディング補正を施す必要がある。   According to the method of acquiring the XYZ values of the device using the imaging apparatus, the XYZ values of a plurality of color charts arranged on the color chart as shown in FIG. 1 can be acquired by one shooting. However, in shooting using a non-contact imaging device under a general lighting environment, there is uneven light (hereinafter referred to as uneven illumination) that illuminates the color chart during shooting. The color chart also has color unevenness called “in-plane unevenness” that depends on the device that outputs it. In order to reduce the influence of these unevenness (hereinafter, shading), it is necessary to perform shading correction on the image data of the color chart.

特許文献1は、カラーチャートの撮影時と同一の照明環境下でシェーディング補正用のチャート(均一な白色面をもつチャート、以下、補正用チャート)を撮影する。そして、補正用チャートの撮像データからシェーディング補正係数を算出し、当該係数によってカラーチャートの撮像データをシェーディング補正する。   Patent Document 1 photographs a chart for shading correction (a chart having a uniform white surface, hereinafter referred to as a correction chart) under the same illumination environment as when photographing a color chart. Then, a shading correction coefficient is calculated from the imaging data of the correction chart, and the imaging data of the color chart is subjected to shading correction using the coefficient.

特許文献1の方法によれば、複雑なシェーディングについても、正確な補正が期待される。しかし、シェーディング補正のために少なくとも二回の撮影と、二つの撮像データが必要になる。さらに、二回の撮影時の光源とチャートの間の幾何条件が同一であることが前提であり、位置合わせなどの幾何条件の厳密な設定により、幾何条件の差を吸収する仕組みが必要になる。   According to the method of Patent Document 1, accurate correction is expected even for complex shading. However, at least twice photographing and two imaging data are required for shading correction. Furthermore, it is premised that the geometric conditions between the light source and the chart at the time of the two shootings are the same, and a mechanism for absorbing the difference in the geometric conditions is required by strict setting of the geometric conditions such as alignment. .

また、特許文献2は、グレイスケールチャートの周囲の枠(余白部)から代表点を検出し、検出した点の撮像データから補正係数を算出し、水平方向および垂直方向のシェーディング補正を行う技術を開示する。特許文献2が開示する技術によれば、カラーチャートの全域で水平方向または垂直方向に一様なシェーディングが発生している場合は、補正用チャートなどを撮影することなく、高精度な補正結果を期待することができる。ただし、このようなシェーディングが発生するケースは稀であり、このようなケースに該当しない場合も多々ある。例えばカラーチャートの全域で水平方向および/または垂直方向に非一様なシェーディングが発生している複雑なシェーディングを、チャートの周囲の僅かな余白部から得た補正係数で補正することはできない。   Patent Document 2 discloses a technique for detecting a representative point from a frame (margin) around a gray scale chart, calculating a correction coefficient from imaging data of the detected point, and performing shading correction in the horizontal direction and the vertical direction. Disclose. According to the technique disclosed in Patent Document 2, when uniform shading occurs in the horizontal direction or the vertical direction over the entire area of the color chart, a highly accurate correction result can be obtained without taking a correction chart or the like. You can expect. However, such shading occurs rarely and often does not fall under such a case. For example, complex shading in which non-uniform shading occurs in the horizontal direction and / or vertical direction over the entire area of the color chart cannot be corrected with a correction coefficient obtained from a slight margin around the chart.

特開2007-081580号公報JP 2007-081580 A 特開2003-234922号公報JP 2003-234922 A

本発明は、カラーチャートを一度撮影した撮像データに含まれる複数のカラーパッチによるシェーディング補正を可能にすることを目的とする。   An object of the present invention is to enable shading correction using a plurality of color patches included in imaging data obtained by photographing a color chart once.

本発明は、前記の目的を達成する一手段として、以下の構成を備える。   The present invention has the following configuration as one means for achieving the above object.

本発明にかかる画像処理は、色が異なる複数のカラーパッチと複数の補正用パッチとが混在するカラーチャートを撮影した撮像データを入力し、前記撮像データに含まれる前記複数の補正用パッチの画像データから背景データを生成し、前記背景データを使用して、前記撮像データをシェーディング補正することを特徴とする。   The image processing according to the present invention inputs imaging data obtained by photographing a color chart in which a plurality of color patches having different colors and a plurality of correction patches are mixed, and images of the plurality of correction patches included in the imaging data. Background data is generated from data, and the imaging data is subjected to shading correction using the background data.

本発明によれば、カラーチャートを一度撮影した撮像データに含まれる複数のカラーパッチによるシェーディング補正が可能になる。例えば、カラーチャートの全域で水平方向および/または垂直方向に非一様な複雑なシェーディングが発生している場合でも、複数のカラーパッチによるシェーディング補正が可能になる。   According to the present invention, it is possible to perform shading correction using a plurality of color patches included in imaging data obtained by photographing a color chart once. For example, even when non-uniform complex shading occurs in the horizontal direction and / or the vertical direction throughout the entire color chart, shading correction using a plurality of color patches can be performed.

カラーチャートの一例を示す図。The figure which shows an example of a color chart. 実施例の画像処理装置の構成例を示すブロック図。1 is a block diagram illustrating a configuration example of an image processing apparatus according to an embodiment. 制御部が実行する処理を説明するフローチャート。The flowchart explaining the process which a control part performs. カラーチャート作成用のUIおよびシェーディング補正用のUIの一例を示す図。The figure which shows an example of UI for color chart preparation, and UI for shading correction | amendment. カラーパッチ情報の一例を示す図。The figure which shows an example of color patch information. カラーチャートの一例を示す図。The figure which shows an example of a color chart. 撮像データと背景データの一例を示す図。The figure which shows an example of imaging data and background data. 背景データ生成部の処理を説明するフローチャート。The flowchart explaining the process of a background data generation part. 実施例2の画像処理装置の構成例を示すブロック図。FIG. 3 is a block diagram illustrating a configuration example of an image processing apparatus according to a second embodiment. 制御部が実行する処理を説明するフローチャート。The flowchart explaining the process which a control part performs. 異なる複数の位置にカラーチャートを配置した例を示す図。The figure which shows the example which has arrange | positioned the color chart in several different positions. 実施例3のカラーチャートの作成用のUIの一例を示す図。10 is a diagram illustrating an example of a UI for creating a color chart according to Embodiment 3. FIG. 配置パターン部の各ボタンに登録された補正用パッチの配置パターンの一例を示す図。The figure which shows an example of the arrangement pattern of the correction | amendment patch registered into each button of an arrangement pattern part.

以下、本発明にかかる実施例の画像処理を図面を参照して詳細に説明する。   Hereinafter, image processing according to an embodiment of the present invention will be described in detail with reference to the drawings.

[装置の構成]
図2のブロック図により実施例の画像処理装置の構成例を示す。
[Device configuration]
A block diagram of FIG. 2 shows a configuration example of the image processing apparatus of the embodiment.

画像処理装置11には、所定のインタフェイスを介して、液晶モニタ(LCD)などの出力装置12、および、ディジタルカメラなどの撮像装置13が接続される。出力装置12はカラーチャートを表示(出力)し、撮像装置13は当該カラーチャートを撮像する。画像処理装置11は、撮像装置13から取得したカラーチャートの撮像データによりシェーディング補正を行う。なお、ここでは出力装置12がモニタの例を説明するが、プリンタなど他の出力デバイスでもよい。   An output device 12 such as a liquid crystal monitor (LCD) and an imaging device 13 such as a digital camera are connected to the image processing device 11 via a predetermined interface. The output device 12 displays (outputs) the color chart, and the imaging device 13 captures the color chart. The image processing device 11 performs shading correction using the color chart image data acquired from the image capturing device 13. Here, an example in which the output device 12 is a monitor will be described, but other output devices such as a printer may be used.

なお、本実施例における「シェーディング」は、前述したように、カラーチャートを照明する光のむら(以下、照明むら)、カラーチャートを出力するデバイスに依存する、所謂「面内むら」の総称である。つまり、画像処理装置11は、シェーディングの影響を低減するために、カラーチャートの撮像データにシェーディング補正を施す。   Note that “shading” in the present embodiment is a generic term for so-called “in-plane unevenness” that depends on the unevenness of light that illuminates the color chart (hereinafter referred to as unevenness of illumination) and the device that outputs the color chart, as described above. . That is, the image processing apparatus 11 performs shading correction on the image data of the color chart in order to reduce the influence of shading.

データ入出力部101は、画像処理装置11と出力装置12および撮像装置13などの入出力デバイスを接続するUSB (Universal Serial Bus)やIEEE1394などシリアルバスインタフェイスである。チャート生成部102は、出力装置12が形成するカラーチャートのチャートデータを生成し、生成したチャートデータをデータ入出力部101を介して出力装置12に供給する。なお、チャートデータは、記憶部106、または、図示しないメディアやサーバ装置などから取得してもよい。   The data input / output unit 101 is a serial bus interface such as USB (Universal Serial Bus) or IEEE1394 that connects the image processing apparatus 11 and input / output devices such as the output apparatus 12 and the imaging apparatus 13. The chart generation unit 102 generates chart data of the color chart formed by the output device 12, and supplies the generated chart data to the output device 12 via the data input / output unit 101. Note that the chart data may be acquired from the storage unit 106 or a media or server device (not shown).

指示入力部103は、図示しないモニタにユーザインタフェイス(UI)を表示し、図示しないキーボード、マウス、タッチパネルなどを操作するユーザの指示入力を受け付ける。背景データ生成部104は、撮像装置13が撮影したカラーチャートの撮像データから背景データを生成する。画像データ補正部105は、撮像装置13が撮影したカラーチャートの撮像データにシェーディング補正を施し、記憶部106の所定領域に格納する。制御部107は、画像処理装置11の上記構成の動作を制御する。   The instruction input unit 103 displays a user interface (UI) on a monitor (not shown), and receives an instruction input from a user who operates a keyboard, a mouse, a touch panel, etc. (not shown). The background data generation unit 104 generates background data from the color chart image data captured by the image capturing device 13. The image data correction unit 105 performs shading correction on the imaging data of the color chart captured by the imaging device 13, and stores the correction data in a predetermined area of the storage unit 106. The control unit 107 controls the operation of the above configuration of the image processing apparatus 11.

[処理]
図3のフローチャートにより制御部107が実行する処理を説明する。
[processing]
Processing executed by the control unit 107 will be described with reference to the flowchart of FIG.

ユーザからデバイスXYZ値の取得が指示されると、制御部107は、指示入力部103を制御して、カラーチャート作成用のUIを表示し、カラーチャート作成用のパラメータを取得する(S11)。   When the acquisition of device XYZ values is instructed by the user, the control unit 107 controls the instruction input unit 103 to display a color chart creation UI and acquire parameters for color chart creation (S11).

図4によりカラーチャート作成用のUIの一例を示す。ユーザは、カラーパッチ情報欄201により、出力装置12に出力させるカラーチャートのカラーパッチ情報が記録されたファイルを指定するか、参照ボタンを押して当該ファイルを選択する。図5によりカラーパッチ情報の一例を示す。カラーパッチ情報は、カラーパッチ数、および、パッチ番号に対応するカラーパッチごとのRGB値が記載されたデータファイルである。   FIG. 4 shows an example of a UI for creating a color chart. The user designates a file in which color patch information of the color chart to be output to the output device 12 is recorded in the color patch information column 201 or presses a browse button to select the file. FIG. 5 shows an example of color patch information. The color patch information is a data file in which the number of color patches and the RGB value for each color patch corresponding to the patch number are described.

次に、ユーザは、撮像データ欄202により、撮像データの保存先を指定するか、参照ボタンを押して当該保存先を選択する。なお、図には示さないが、チャート出力先欄を設けて、ユーザが生成されるチャートデータの保存先を指定するか、当該保存先を選択するようにして、チャートデータの再利用を可能にしてもよい。また、予め設定された保存先が選択されてもよい。カラーパッチ情報と保存先の設定が終了すると、ユーザはチャート作成/出力ボタン203を押す。   Next, the user designates a storage destination of the imaging data from the imaging data column 202 or presses a reference button to select the storage destination. Although not shown in the figure, a chart output destination field is provided so that the chart data can be reused by specifying the storage destination of the chart data generated by the user or selecting the storage destination. May be. In addition, a preset storage destination may be selected. When the setting of the color patch information and the storage destination is completed, the user presses the chart creation / output button 203.

チャート作成/出力ボタン203が押される(S12)と、制御部107は、チャート生成部102を制御して、ユーザが指示するファイルに記録されたカラーパッチ情報に基づきチャートデータを生成する(S13)。また、チャートデータの保存先が指定された場合は、生成したチャートデータを当該保存先に格納する。   When the chart creation / output button 203 is pressed (S12), the control unit 107 controls the chart generation unit 102 to generate chart data based on the color patch information recorded in the file designated by the user (S13). . Further, when the chart data storage destination is designated, the generated chart data is stored in the storage destination.

図6によりカラーチャートの一例を示す。チャート生成部102が生成するカラーチャートには、色が互いに異なるカラーパッチとシェーディング補正用のパッチ(以下、補正用パッチ)が混在する。図6の例は、カラーパッチと補正用パッチを交互に配置して、カラーパッチの周囲に少なくとも二つの補正パッチを配置したものである。補正パッチは、背景色(図6の例は白色)と同じ色の単一色のパッチである。   FIG. 6 shows an example of a color chart. In the color chart generated by the chart generation unit 102, color patches having different colors and shading correction patches (hereinafter, correction patches) are mixed. In the example of FIG. 6, color patches and correction patches are alternately arranged, and at least two correction patches are arranged around the color patches. The correction patch is a single color patch having the same color as the background color (white in the example of FIG. 6).

次に、制御部107は、データ入出力部101を介して、記憶部106に格納したチャートデータを出力装置12に出力する(S14)。出力装置12は入力されたチャートデータに対応するカラーチャートを表示する。制御部107は、データ入出力部101を介して撮像装置13を制御し、出力装置12が表示するカラーチャートを撮影し、その撮像データを取得し、取得した撮像データを指定された保存先に格納する(S15)。   Next, the control unit 107 outputs the chart data stored in the storage unit 106 to the output device 12 via the data input / output unit 101 (S14). The output device 12 displays a color chart corresponding to the input chart data. The control unit 107 controls the imaging device 13 via the data input / output unit 101, captures the color chart displayed by the output device 12, acquires the imaging data, and stores the acquired imaging data in the designated storage destination. Store (S15).

なお、ユーザが撮像装置13を直接操作してカラーチャートを撮影してもよいし、指示入力部103が提供するUIを操作することでカラーチャートを撮影することもできる。また、撮像装置13から取得される撮像データは、撮像装置13内のデモザイキングなどの現像処理によりRAWデータから例えばTIFF形式に変換された画像データであり、画素ごとにRGB各チャネルの値(RGB値)を有する。また、カラーチャートの撮影時、当該カラーチャートは、出力デバイスの色再現特性を測定したい観察環境下にあることは言うまでもない。   Note that the user may directly photograph the color chart by operating the imaging device 13, or the color chart can be photographed by operating the UI provided by the instruction input unit 103. Further, the imaging data acquired from the imaging device 13 is image data converted from RAW data into, for example, the TIFF format by development processing such as demosaicing in the imaging device 13, and the RGB channel values (RGB) for each pixel. Value). Needless to say, when photographing a color chart, the color chart is in an observation environment where it is desired to measure the color reproduction characteristics of the output device.

その後、ユーザからシェーディング補正が指示されると、制御部107は、指示入力部103を制御して、シェーディング補正用のUIを表示し、シェーディング補正用のパラメータを取得する(S16)。   Thereafter, when a shading correction is instructed by the user, the control unit 107 controls the instruction input unit 103 to display a shading correction UI and acquire a shading correction parameter (S16).

図4によりシェーディング補正用のUIの一例を示す。なお、図4にはカラーチャート作成用のUIとシェーディング補正用のUIを並置した例を示すが、互いに独立したUIでもよい。ユーザは、撮像データ欄204により、カラーチャートの撮像データを指定するか、参照ボタンを押して当該データを選択する。次に、ユーザは、シェーディング補正結果欄205により、シェーディング補正後の撮像データの保存先を指定するか、参照ボタンを押して当該保存先を選択する。補正前の撮像データと補正後の撮像データの保存先の設定が終了すると、ユーザは補正処理実行ボタン206を押す。   FIG. 4 shows an example of a shading correction UI. Although FIG. 4 shows an example in which a UI for color chart creation and a UI for shading correction are juxtaposed, UIs independent of each other may be used. The user designates the image data of the color chart in the image data field 204 or selects the data by pressing the reference button. Next, the user designates a storage destination of the imaging data after the shading correction by using the shading correction result field 205 or presses a reference button to select the storage destination. When the setting of the storage destination of the image data before correction and the image data after correction is completed, the user presses the correction processing execution button 206.

補正処理実行ボタン206が押される(S17)と、制御部107は、詳細は後述するが、背景データ生成部104を制御して、ユーザが指定するカラーチャートの撮像データから背景データを生成する(S18)。背景データは、カラーチャートの補正用パッチの色に基づき作成される。図7により撮像データと背景データの一例を示す。図7(a)はカラーチャートの撮像データであり、図7(b)は当該撮像データの補正用パッチの色から生成された背景データである。   When the correction process execution button 206 is pressed (S17), the control unit 107 controls the background data generation unit 104 to generate background data from the image data of the color chart specified by the user, as will be described in detail later (S17). S18). The background data is created based on the color of the correction patch of the color chart. FIG. 7 shows an example of imaging data and background data. FIG. 7A shows image data of a color chart, and FIG. 7B shows background data generated from the correction patch color of the image data.

背景データは、出力装置12のシェーディング具合を表し、このシェーディングを補正するために用いられる画像データである。具体的には、カラーチャートのうち、カラーパッチを除いた画像の画像データに基づき生成される画像データである。   The background data represents the degree of shading of the output device 12, and is image data used to correct this shading. Specifically, the image data is generated based on the image data of the image excluding the color patch in the color chart.

次に、制御部107は、画像データ補正部105を制御して、背景データに基づきカラーチャートの撮像データをシェーディング補正し(S19)、補正後の撮像データを指定された保存先に格納する(S20)。画像データ補正部105は、撮像データの各画素のRGB値それぞれについて次式を用いて補正後のRGB値を計算する。
Ry = Rx×Rmax/Rw
Gy = Gx×Gmax/Gw …(1)
By = Bx×Bmax/Bw
ここで、Rx、Gx、Bxは撮像データの画素値(補正前)、
Ry、Gy、Byは補正後の画素値。
Rw、Gw、Bwは撮像データの画素と同位置の背景データの画素の値、
Rmax、Gmax、Bmaxは背景データ上の最大値。
Next, the control unit 107 controls the image data correction unit 105 to perform shading correction of the color chart imaging data based on the background data (S19), and stores the corrected imaging data in the designated storage destination (S19). S20). The image data correction unit 105 calculates a corrected RGB value using the following equation for each RGB value of each pixel of the imaging data.
Ry = Rx × Rmax / Rw
Gy = Gx × Gmax / Gw (1)
By = Bx × Bmax / Bw
Here, Rx, Gx, Bx are the pixel values of the imaging data (before correction)
Ry, Gy, By are pixel values after correction.
Rw, Gw, and Bw are the values of the background data pixels at the same position as the pixels of the imaging data,
Rmax, Gmax, and Bmax are the maximum values on the background data.

なお、式(1)には最大値Rmax、Gmax、Bmaxを用いる例を示したが、次式のように、平均値Rave、Gave、Baveを用いてもよい。
Ry = Rx×Rave/Rw
Gy = Gx×Gave/Gw …(2)
By = Bx×Bave/Bw
Note that although the example using the maximum values Rmax, Gmax, and Bmax is shown in Equation (1), the average values Rave, Gave, and Bave may be used as in the following equations.
Ry = Rx × Rave / Rw
Gy = Gx × Gave / Gw… (2)
By = Bx × Bave / Bw

また、カラーパッチのシェーディング補正にはシェーディング補正係数を用いる。シェーディング補正係数は、式(1)におけるXmax/Xwまたは式(2)におけるXave/Xwに相当する(XはR、GまたはB)。従って、ステップS18において背景データを生成せずに、補間値であるXwをXmaxまたはXaveで除算した補正係数を算出し、ステップS19において式(1)または式(2)によりシェーディング補正を行ってもよい。その際、Xmaxには補正用パッチの最大値、Xaveには補正用パッチの平均値を使用する。   A shading correction coefficient is used for shading correction of the color patch. The shading correction coefficient corresponds to Xmax / Xw in equation (1) or Xave / Xw in equation (2) (X is R, G, or B). Therefore, it is possible to calculate a correction coefficient obtained by dividing the interpolation value Xw by Xmax or Xave without generating background data in step S18, and perform shading correction using equation (1) or equation (2) in step S19. Good. At that time, the maximum value of the correction patch is used for Xmax, and the average value of the correction patches is used for Xave.

●背景データ生成部
図8のフローチャートにより背景データ生成部104の処理(S18)を説明する。
Background Data Generation Unit The process (S18) of the background data generation unit 104 will be described with reference to the flowchart of FIG.

背景データ生成部104は、撮像データ内の補間対象領域を示す情報、つまりカラーパッチの数、補正用パッチの数、それらパッチの位置情報を取得する(S501)。なお、図6に示すようなカラーチャートであれば、カラーパッチ以外の背景および補正用パッチが白色であるため、所定の閾値を用いた二値化処理で、補間対象領域を示す情報を取得することが可能である。   The background data generation unit 104 acquires information indicating the interpolation target area in the imaging data, that is, the number of color patches, the number of correction patches, and position information of these patches (S501). In the case of a color chart as shown in FIG. 6, since the background and correction patches other than the color patch are white, information indicating the interpolation target region is acquired by binarization processing using a predetermined threshold. It is possible.

次に、背景データ生成部104は、補間対象のパッチ(以下、補間パッチ)の位置を決定する(S502)。例えば、撮像データが表す画像の右上から左下へのラスタ順に走査して、補正用パッチ以外のカラーパッチが存在する位置を補間パッチの位置に決定する。   Next, the background data generation unit 104 determines the position of a patch to be interpolated (hereinafter referred to as an interpolation patch) (S502). For example, scanning is performed in the raster order from the upper right to the lower left of the image represented by the imaging data, and the position where the color patch other than the correction patch exists is determined as the position of the interpolation patch.

次に、背景データ生成部104は、補間パッチを補間するための画素値(以下、補間値)を決定する(S503)。図6に示すカラーチャートであれば、補間パッチの上下左右に位置する少なくとも二つ、最大四つの補正用パッチのR値、G値およびB値それぞれの平均値(以下、RGB平均値)を取得して、それらRGB平均値を再度平均化したRGB値を補間値に用いる。なお、補間値の決定方法は、これに限定されず、異なる形態であもよい。   Next, the background data generation unit 104 determines a pixel value (hereinafter, an interpolation value) for interpolating the interpolation patch (S503). In the case of the color chart shown in FIG. 6, the average values (hereinafter referred to as RGB average values) of the R value, G value, and B value of at least two and up to four correction patches located at the top, bottom, left and right of the interpolation patch are obtained Then, an RGB value obtained by averaging the RGB average values again is used as an interpolation value. The method for determining the interpolation value is not limited to this, and may be a different form.

次に、背景データ生成部104は、決定した補間値により補間パッチの画素値を置き換える(S504)。そして、カラーパッチの数分、ステップS502からS504の処理を行ったか否かを判定し(S505)、処理が未了のカラーパッチがあれば処理をステップS502に戻す。また、すべての補間パッチの処理が終了すると背景データの生成処理を終了する。   Next, the background data generation unit 104 replaces the pixel value of the interpolation patch with the determined interpolation value (S504). Then, it is determined whether or not the processing of steps S502 to S504 has been performed for the number of color patches (S505), and if there are unfinished color patches, the processing returns to step S502. When all the interpolation patches have been processed, the background data generation process is terminated.

このように、カラーチャートの全域で水平方向および/または垂直方向に非一様な複雑なシェーディングが発生している場合でも、カラーチャートを一度撮影した撮像データに含まれる複数のカラーパッチ(色票)のシェーディング補正が可能になる。   In this way, even when non-uniform complex shading occurs horizontally and / or vertically in the entire area of the color chart, a plurality of color patches (color charts) included in the image data obtained by photographing the color chart once. ) Shading correction becomes possible.

以下、本発明にかかる実施例2の画像処理を説明する。なお、実施例2において、実施例1と略同様の構成については、同一符号を付して、その詳細説明を省略する。   The image processing according to the second embodiment of the present invention will be described below. Note that the same reference numerals in the second embodiment denote the same parts as in the first embodiment, and a detailed description thereof will be omitted.

実施例1では、補間パッチの周囲の補正用パッチから補間パッチの画素値を補間した背景データを使用してシェーディング補正を行う例を説明した。しかし、出力装置がモニタなどの場合、画素の欠落など、パッチ内に収まる局所的なシェーディングが発生する可能性がある。このような局所的なシェーディングがあると補間パッチの画素値を正確に補間することができず、不正確なシェーディング補正結果になる。   In the first embodiment, the example in which the shading correction is performed using the background data obtained by interpolating the pixel values of the interpolation patch from the correction patches around the interpolation patch has been described. However, when the output device is a monitor or the like, there is a possibility that local shading that falls within the patch, such as missing pixels, may occur. If there is such local shading, the pixel value of the interpolation patch cannot be accurately interpolated, resulting in an inaccurate shading correction result.

[装置の構成]
図9のブロック図により実施例2の画像処理装置の構成例を示す。実施例2の画像処理装置11は、実施例1の構成に加えて、良否判定部111と測色値変換部112を備える。良否判定部111は、各カラーパッチについて、シェーディング補正が正確に行われたか否かを判定する。測色値変換部112は、各カラーパッチのRGB値をXYZ値へ変換する。
[Device configuration]
A block diagram of FIG. 9 shows a configuration example of the image processing apparatus according to the second embodiment. The image processing apparatus 11 according to the second embodiment includes a pass / fail determination unit 111 and a colorimetric value conversion unit 112 in addition to the configuration of the first embodiment. The pass / fail determination unit 111 determines whether or not the shading correction is accurately performed for each color patch. The colorimetric value conversion unit 112 converts the RGB value of each color patch into an XYZ value.

[処理]
図10のフローチャートにより制御部107が実行する処理を説明する。
[processing]
Processing executed by the control unit 107 will be described with reference to the flowchart of FIG.

ステップS11からS18までの処理は実施例1とほぼ同様であるが、記憶部106に格納したチャートデータを出力装置12に出力する処理が実施例1のステップS14と異なる。つまり、制御部107は、データ入出力部101を介して、記憶部106に格納したチャートデータを出力装置12に出力する際に、当該カラーチャートが異なる複数の位置に配置されるチャートデータを出力する(S24)。   The processing from step S11 to S18 is almost the same as in the first embodiment, but the processing for outputting the chart data stored in the storage unit 106 to the output device 12 is different from that in step S14 in the first embodiment. That is, when outputting the chart data stored in the storage unit 106 to the output device 12 via the data input / output unit 101, the control unit 107 outputs the chart data arranged at a plurality of different positions in the color chart. (S24).

図11により異なる複数の位置にカラーチャートを配置した例を示す。なお、カラーチャートの数と位置は、例えば、ステップS11において、指示入力部103によりカラーチャートの数と配置をユーザが設定するためのUIを表示し、当該UIから取得すればよい。また、ステップS15において、複数の位置に配置された複数のカラーチャートを一括撮影した撮像データが入力される。   FIG. 11 shows an example in which color charts are arranged at a plurality of different positions. Note that the number and position of the color charts may be obtained from, for example, a UI for the user to set the number and arrangement of the color charts by the instruction input unit 103 in step S11. In step S15, imaging data obtained by collectively shooting a plurality of color charts arranged at a plurality of positions is input.

ステップS16からS18の処理は、撮像データが表す画像に含まれるカラーチャートの数分、カラーチャートごとに実行される。   The processing of steps S16 to S18 is executed for each color chart by the number of color charts included in the image represented by the imaging data.

次に、制御部107は、画像データ補正部105を制御して、背景データに基づき各カラーチャートの撮像データをシェーディング補正し、補正後の撮像データを記憶部106に格納する(S29)。   Next, the control unit 107 controls the image data correction unit 105 to perform shading correction of the imaging data of each color chart based on the background data, and stores the corrected imaging data in the storage unit 106 (S29).

次に、制御部107は、シェーディング補正後の撮像データから各カラーパッチのR値、G値およびB値それぞれの平均値(以下、RGB平均値)を取得して良否判定部111に供給する(S30)。例えば、四箇所に配置された同一のカラーチャートから取得し、シェーディング補正を行った撮像データの場合、カラーチャート内で配置が同じパッチ(以下、同色パッチ)が四つ存在し、同色パッチのRGB平均値が四つ得られる。   Next, the control unit 107 acquires average values (hereinafter referred to as RGB average values) of the R value, G value, and B value of each color patch from the imaging data after shading correction, and supplies the average values to the pass / fail determination unit 111 ( S30). For example, in the case of imaging data acquired from the same color chart arranged at four locations and subjected to shading correction, there are four patches with the same arrangement (hereinafter referred to as the same color patch) in the color chart, and RGB of the same color patch Four average values are obtained.

次に、制御部107は、良否判定部111により、各同色パッチについて取得した四つのRGB平均値から不適当なRGB平均値を除外し、XYZ値に変換するRGB平均値を決定する(S31)。   Next, the control unit 107 excludes an inappropriate RGB average value from the four RGB average values acquired for each same color patch by the pass / fail determination unit 111, and determines an RGB average value to be converted into an XYZ value (S31). .

同じ入力信号により形成される同色パッチのRGB平均値は、シェーディング補正後、同値になる筈である。しかし、局所的なシェーディングが発生すると、正確なシェーディング補正ができず、RGB平均値が異なる値になり得る。不適当なRGB平均値を除外するには、例えば、RGB値の和が最大および最小を示すRGB平均値を除去し、残るRGB平均値をXYZ値に変換すればよい。三箇所に配置されたカラーチャートを撮影した場合は不適当なRGB平均値を除外すると残るRGB平均値は一つであるが、四箇所以上に配置されたカラーチャートを撮影した場合は不適当なRGB平均値を除外するとRGB平均値が二つ以上残る。二つ以上のRGB平均値が残る場合、それらRGB平均値を再度平均化した値をXYZ値に変換する。   The RGB average value of the same color patch formed by the same input signal should be the same value after shading correction. However, when local shading occurs, accurate shading correction cannot be performed, and the RGB average value may be different. In order to exclude an inappropriate RGB average value, for example, an RGB average value whose sum of RGB values indicates the maximum and minimum values may be removed, and the remaining RGB average value may be converted into an XYZ value. When shooting color charts arranged at three locations, if the inappropriate RGB average value is excluded, the remaining RGB average value is one, but when shooting color charts arranged at four or more locations, it is inappropriate. Excluding the RGB average value leaves two or more RGB average values. When two or more RGB average values remain, a value obtained by averaging the RGB average values again is converted into an XYZ value.

なお、不適当なRGB平均値の影響を除外する方法は、上記に限らず、複数のRGB平均値を再度平均化する方法や、RGB値の和が中央値を示すRGB平均値を使用する方法などでもよい。   In addition, the method of excluding the influence of an inappropriate RGB average value is not limited to the above, a method of averaging a plurality of RGB average values again, or a method of using an RGB average value in which the sum of RGB values indicates a median value Etc.

次に、制御部107は、測色値変換部112によりRGB平均値からXYZ値を算出する(S32)。RGBからXYZへの変換には、例えば、下式の何れかを用いる。
┌ ┐ ┌ ┐
│Xp│ │Rp│
│Yp│= M1│Gp│ …(3)
│Zp│ │Bp│
└ ┘ └ ┘
┌ ┐
| Rp |
┌ ┐ | Gp |
|Xp| | Bp |
|Yp|= M2|Rp・Rp| …(4)
|Zp| |Gp・Gp|
└ ┘ |Bp・Bp|
| 1 |
└ ┘
┌ ┐
| Rp |
| Gp |
┌ ┐ | Bp |
|Xp| |Rp・Rp|
|Yp| =M3|Gp・Gp| …(5)
|Zp| |Bp・Bp|
└ ┘ |Rp・Gp|
|Rp・Bp|
|Gp・Bp|
| 1 |
└ ┘
ここで、(Rp, Gp, Bp)はパッチpのRGB平均値、
(Xp, Yp, Zp)はパッチpのXYZ三刺激値、
M1はRGB値を測色値に変換する3×3のマトリクス、
M2はRGB値を測色値に変換する3×7のマトリクス、
M3はRGB値を測色値に変換する3×10のマトリクス。
Next, the control unit 107 calculates an XYZ value from the RGB average value by the colorimetric value conversion unit 112 (S32). For example, one of the following formulas is used for conversion from RGB to XYZ.
┌ ┐ ┌ ┐
│Xp│ │Rp│
│Yp│ = M1│Gp│… (3)
│Zp│ │Bp│
└ ┘ └ ┘
┌ ┐
| Rp |
┌ ┐ | Gp |
| Xp | | Bp |
| Yp | = M2 | Rp ・ Rp | (4)
| Zp | | Gp ・ Gp |
└ ┘ | Bp ・ Bp |
| 1 |
└ ┘
┌ ┐
| Rp |
| Gp |
┌ ┐ | Bp |
| Xp | | Rp ・ Rp |
| Yp | = M3 | Gp ・ Gp |… (5)
| Zp | | Bp ・ Bp |
└ ┘ | Rp ・ Gp |
| Rp ・ Bp |
| Gp ・ Bp |
| 1 |
└ ┘
Where (Rp, Gp, Bp) is the RGB average value of patch p,
(Xp, Yp, Zp) is the XYZ tristimulus value of patch p,
M1 is a 3x3 matrix that converts RGB values into colorimetric values.
M2 is a 3x7 matrix that converts RGB values to colorimetric values.
M3 is a 3x10 matrix that converts RGB values into colorimetric values.

なお、式(3)から(5)における変換マトリクスM1からM3は記憶部106などに予め格納されている。また、マトリクスの次数は上記の三種類に限られる必要は無く、例えば3×20などのマトリクスでもよい。さらに、RGB値から変換される測色値は、XYZ値に限らず、例えばCIELab値やCIECAM02のJab値などのでもよい。   Note that the conversion matrices M1 to M3 in the equations (3) to (5) are stored in advance in the storage unit 106 or the like. Further, the order of the matrix need not be limited to the above three types, and may be a matrix of 3 × 20, for example. Furthermore, the colorimetric value converted from the RGB value is not limited to the XYZ value, and may be, for example, a CIELab value or a CIECAM02 Jab value.

次に、制御部107は、各カラーパッチのXYZ値をカラーチャートの測色データとして指定された保存先に格納する(S33)。なお、XYZ値とともに、XYZ値に変換する前のRGB値を保存先に格納してもよいし、あるいは、変換前のRGB値(不適当なRGB平均値の影響を除外したRGB値)を保存先に格納してもよい。   Next, the control unit 107 stores the XYZ values of each color patch in the storage destination specified as the colorimetric data of the color chart (S33). Note that RGB values before conversion to XYZ values may be stored in the save destination together with the XYZ values, or RGB values before conversion (RGB values excluding the influence of inappropriate RGB average values) are saved. It may be stored first.

このように、異なる位置に形成した複数のカラーチャートを撮影した撮像データを取得し、シェーディング補正した複数のカラーチャートの撮像データを用いて局所的なシェーディングの影響を除外する。従って、局所的なシェーディングの影響を除外した一つの撮像データまたは測色データを得ることができる。   In this manner, imaging data obtained by photographing a plurality of color charts formed at different positions is acquired, and the influence of local shading is excluded using the imaging data of the plurality of color charts subjected to shading correction. Therefore, one image data or colorimetric data excluding the influence of local shading can be obtained.

以下、本発明にかかる実施例3の画像処理を説明する。なお、実施例3において、実施例1、2と略同様の構成については、同一符号を付して、その詳細説明を省略する。   Hereinafter, image processing according to the third embodiment of the present invention will be described. Note that the same reference numerals in the third embodiment denote the same parts as in the first and second embodiments, and a detailed description thereof will be omitted.

図6や図11にカラーチャートの一例を示したが、カラーチャートはそれらに限られるわけではない。実施例3では、ユーザが、シェーディング補正に使用するカラーチャートをユーザがUIを使用して作成する例を説明する。なお、実施例3においては、UIを用いたチャート作成方法を説明するが、その他の処理は実施例1、2と同様である。   Although examples of color charts are shown in FIGS. 6 and 11, the color chart is not limited to them. In the third embodiment, an example in which the user creates a color chart used for shading correction using the UI will be described. In the third embodiment, a chart creation method using a UI will be described, but other processes are the same as those in the first and second embodiments.

図12により実施例3のカラーチャートの作成用のUIの一例を示す。図12に示す表示部1006は、形成されるカラーチャートを事前に目視確認するためのウィンドウである。つまり、表示部1006に表示されるカラーチャートは、チャート作成ボタン1005が押されるまで、入力パラメータの変更に伴い逐次更新される。   FIG. 12 shows an example of a UI for creating a color chart according to the third embodiment. A display unit 1006 shown in FIG. 12 is a window for visually confirming a color chart to be formed in advance. That is, the color chart displayed on the display unit 1006 is sequentially updated as the input parameters are changed until the chart creation button 1005 is pressed.

参照欄1001は、カラーパッチ情報が記録されたファイルを参照する際に当該ファイルを指定するために利用される。なお、カラーパッチ情報が記録されたファイルの形態は、図5を用いて説明したとおりである。入力部1002は、補正用パッチの色を指定するために利用される。つまり、ユーザは入力部1002にRGB値を入力して補正用パッチの色を指定する。   The reference field 1001 is used to specify a file when referring to a file in which color patch information is recorded. The format of the file in which the color patch information is recorded is as described with reference to FIG. The input unit 1002 is used to specify the color of the correction patch. That is, the user inputs RGB values to the input unit 1002 and specifies the color of the correction patch.

比率調整欄1003は、カラーパッチの数に対する補正用パッチの比率の調整に利用する。つまり、比率調整欄1003のスライダが例えば「1.0」に設定された場合、カラーパッチと同数の補正用パッチが配置される。ユーザは、シェーディング補正の高い精度が要求する場合、スライダを「1.0」に近付けて補正用パッチの数を増やす。また、出力装置が形成するカラーチャートのサイズが小さい場合、補正用パッチが多いとパッチサイズが小さくなり、色を精度よく検出できない可能性がある。その場合、ユーザはスライダを「0.3」に近付けて、補正用パッチの数を抑制する。なお、図11にはスライダによって設定可能な比率の範囲が「0.3」から「1.0」の例を示すが、この範囲に限られるわけではなく、シェーディング補正に充分な数の補正用パッチが得られる範囲であれば、任意の比率を設定してよい。   The ratio adjustment field 1003 is used to adjust the ratio of correction patches to the number of color patches. That is, when the slider of the ratio adjustment field 1003 is set to “1.0”, for example, the same number of correction patches as the color patches are arranged. When high accuracy of shading correction is required, the user moves the slider closer to “1.0” and increases the number of correction patches. In addition, when the size of the color chart formed by the output device is small, if there are many correction patches, the patch size becomes small, and there is a possibility that the color cannot be detected accurately. In that case, the user moves the slider closer to “0.3” and suppresses the number of correction patches. FIG. 11 shows an example in which the range of the ratio that can be set by the slider is “0.3” to “1.0”. However, the range is not limited to this range, and a sufficient number of correction patches for shading correction can be obtained. An arbitrary ratio may be set within the range.

同様に、上記実施例においては、補正用パッチがカラーパッチに隣接して、カラーチャートの周辺部で少なくとも二つ、中央部で四つ配置される例を示した。しかし、ユーザが要求するシェーディング補正の精度に応じて補正用パッチの配置条件を変更してもよい。例えば、高い精度が要求される場合は上記実施例と同様の補正用パッチの配置条件とし、高い精度が要求されない場合はカラーパッチを中心に縦横P×Qパッチの範囲内に少なくとも一つの補正用パッチを配置する配置条件にしてもよい。カラーパッチに隣接して補正用パッチが存在しな場合、補間パッチから最短位置にある補正パッチのRGB平均値を補間パッチのRGB平均値にする。   Similarly, in the above-described embodiment, an example in which at least two correction patches are arranged adjacent to the color patch and arranged at the periphery of the color chart and four at the center is shown. However, the arrangement condition of the correction patch may be changed according to the accuracy of the shading correction requested by the user. For example, when high accuracy is required, the correction patch placement conditions are the same as in the above embodiment, and when high accuracy is not required, at least one correction patch within the range of vertical and horizontal P × Q patches centering on the color patch. You may make it the arrangement conditions which arrange | position a patch. If there is no correction patch adjacent to the color patch, the RGB average value of the correction patch at the shortest position from the interpolation patch is set to the RGB average value of the interpolation patch.

また、図12に示すUIにおいて、補正用パッチの配置パターンを配置パターン欄1004の各ボタンに登録することが可能である。図13により配置パターン欄1004の各ボタンに登録された補正用パッチの配置パターンの一例を示す。図13(e)は上記の実施例で用いたようなカラーパッチと補正用パッチを交互に配置した配置パターンを示す。図13(a)(b)(c)(d)に示すような配置パターンなども可能である。また、図13(a)(b)(c)(d)(e)に示す配置パターンは規則的な周期(周期性)を有するが、図13(f)に一例を示すランダム配置パターンでもよい。また、シェーディングを表せる程度に補正用パッチが分散された配置であればよい。   In the UI shown in FIG. 12, the correction patch arrangement pattern can be registered in each button of the arrangement pattern column 1004. FIG. 13 shows an example of the correction patch arrangement pattern registered in each button of the arrangement pattern column 1004. FIG. 13 (e) shows an arrangement pattern in which color patches and correction patches as used in the above embodiment are alternately arranged. An arrangement pattern as shown in FIGS. 13A, 13B, 13C, and 13D is also possible. In addition, the arrangement pattern shown in FIGS. 13 (a) (b) (c) (d) (e) has a regular period (periodicity), but may be a random arrangement pattern as shown in FIG. 13 (f). . Further, it is sufficient that the correction patches are dispersed to such an extent that shading can be expressed.

各パラメータを設定した後、ユーザがチャート作成ボタン1005を押すと、ユーザが設定したパラメータに応じたカラーチャートのチャートデータが作成される。   When the user presses the chart creation button 1005 after setting each parameter, chart data of a color chart corresponding to the parameter set by the user is created.

さらに、例えば、ユーザが表示部1006に表示されたカラーチャート上の位置を指示することで補正用パッチを配置する位置を指示することも可能であるし、カラーパッチの間の余白距離を設定する入力欄をUIに設けてもよい。   Furthermore, for example, the user can specify the position where the correction patch is arranged by specifying the position on the color chart displayed on the display unit 1006, and can set the margin distance between the color patches. An input field may be provided in the UI.

[変形例]
●装置構成
上記の実施例では、画像処理装置11と撮像装置13とを別筐体として説明した。しかし、画像処理装置11は、撮像装置13内部に含まれるように、撮像装置13に組み込まれていてもよい。また、その際のチャートの生成は、UIを用いずに撮像装置13の撮影モードに従って行われてもよい。
[Modification]
Device Configuration In the above embodiment, the image processing device 11 and the imaging device 13 have been described as separate housings. However, the image processing device 11 may be incorporated in the imaging device 13 so as to be included in the imaging device 13. In addition, the generation of the chart at that time may be performed according to the shooting mode of the imaging device 13 without using the UI.

●チャート生成部
上記の実施例では、補正用パッチに一色を設定する例を説明したが、補正用パッチに複数の色を設定することもできる。例えば、補正用パッチに白色と黒色を設定し、背景データとして全白、全黒の二種類の背景データを作成する。そして、式(1)におけるRw、Gw、Bw、Rmax、Gmax、Bmaxとして、補正対象のカラーパッチの輝度値が低い場合は全黒の背景データを、輝度値が高い場合は全白の背景データのRGB値を用いる。このようにすれば、色に応じた照明むらの影響の違いを加味した高精度なシェーディング補正が可能になる。
Chart generation unit In the above embodiment, an example in which one color is set for the correction patch has been described. However, a plurality of colors may be set for the correction patch. For example, white and black are set for the correction patch, and two types of background data of all white and all black are created as background data. Then, Rw, Gw, Bw, Rmax, Gmax, and Bmax in Equation (1) are all black background data when the luminance value of the color patch to be corrected is low, and all white background data when the luminance value is high. RGB value of is used. This makes it possible to perform highly accurate shading correction that takes into account the difference in illumination unevenness depending on the color.

また、上記の実施例では、チャート生成部102によりチャートデータを生成する例を説明したが、記憶部106、記憶装置、メディアまたはサーバに保持された、予め作成されたチャートデータを利用する形態でもよい。   In the above-described embodiment, an example in which the chart data is generated by the chart generation unit 102 has been described. However, the chart data stored in the storage unit 106, the storage device, the medium, or the server may be used in a form that uses pre-created chart data. Good.

●背景データ生成部
背景データ生成部104による背景データの生成は、上記の方法に限らない。例えば、補間パッチごとに、その周辺の輝度パターンが類似する補正用パッチを画像の全域から探索し、最も類似する補正用パッチの画素値で補間してもよい。なお、背景データとは、補正係数を得るためのものであり、例えば式(1)におけるRmax/Rw、Gmax/Gw、Bmax/Bwが該当し、補正係数を得るには必ずしもTIFFなどの画像形式として保持する必要はない。
Background Data Generation Unit Background data generation by the background data generation unit 104 is not limited to the above method. For example, for each interpolation patch, a correction patch having a similar peripheral luminance pattern may be searched from the entire area of the image, and interpolation may be performed using the pixel value of the most similar correction patch. The background data is used to obtain a correction coefficient. For example, Rmax / Rw, Gmax / Gw, and Bmax / Bw in Equation (1) are applicable, and an image format such as TIFF is not necessarily used to obtain the correction coefficient. There is no need to keep as.

●画像データ補正部
画像データ補正部105によるシェーディング補正は、式(1)(2)に限定されない。例えば撮像データの各カラーパッチのRGB値から、当該カラーパッチの位置の背景データのRGB値を減算する方法でもよい。
Image Data Correction Unit Shading correction by the image data correction unit 105 is not limited to the equations (1) and (2). For example, the RGB value of the background data at the position of the color patch may be subtracted from the RGB value of each color patch of the imaging data.

[その他の実施例]
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステムあるいは装置のコンピュータ(又はCPUやMPU等)がプログラムを読み出して実行する処理である。
[Other Examples]
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.

Claims (12)

色が異なる複数のカラーパッチと複数の補正用パッチとが混在するカラーチャートを撮影した撮像データを入力する入力手段と、
前記撮像データに含まれる前記複数の補正用パッチの画像データから背景データを生成する背景データの生成手段と、
前記背景データを使用して、前記撮像データをシェーディング補正する補正手段とを有することを特徴とする画像処理装置。
Input means for inputting imaging data obtained by photographing a color chart in which a plurality of color patches having different colors and a plurality of correction patches are mixed;
Background data generating means for generating background data from image data of the plurality of correction patches included in the imaging data;
An image processing apparatus comprising: correction means for correcting shading of the imaged data using the background data.
前記カラーチャートには、前記複数のカラーパッチと前記複数の補正用パッチとが交互に配置されていることを特徴とする請求項1に記載された画像処理装置。   2. The image processing apparatus according to claim 1, wherein the plurality of color patches and the plurality of correction patches are alternately arranged on the color chart. 前記カラーチャートには、前記複数のカラーパッチと前記複数の補正用パッチとがランダムに配置されていることを特徴とする請求項1に記載された画像処理装置。   2. The image processing apparatus according to claim 1, wherein the plurality of color patches and the plurality of correction patches are randomly arranged on the color chart. さらに、前記カラーチャートを形成するためのチャートデータを生成し、前記チャートデータを、前記カラーチャートを形成する出力装置に出力するチャートデータの生成手段を有することを特徴とする請求項1から請求項3の何れか一項に記載された画像処理装置。   2. The apparatus according to claim 1, further comprising chart data generation means for generating chart data for forming the color chart and outputting the chart data to an output device for forming the color chart. 4. The image processing device according to any one of 3. さらに、前記カラーチャートが含む前記カラーパッチの数と前記補正用パッチの数の比率を入力する手段を有し、
前記チャートデータの生成手段は、前記比率に従い前記カラーパッチと前記補正用パッチとを配置したカラーチャートのチャートデータを生成することを特徴とする請求項4に記載された画像処理装置。
And a means for inputting a ratio between the number of the color patches included in the color chart and the number of the correction patches.
5. The image processing apparatus according to claim 4, wherein the chart data generation unit generates chart data of a color chart in which the color patch and the correction patch are arranged according to the ratio.
前記チャートデータの生成手段は、異なる複数の位置それぞれに前記カラーチャートを配置した画像を前記出力装置に形成させるチャートデータを出力することを特徴とする請求項4に記載された画像処理装置。   5. The image processing apparatus according to claim 4, wherein the chart data generation unit outputs chart data that causes the output apparatus to form an image in which the color chart is arranged at each of a plurality of different positions. 前記入力手段は前記複数のカラーチャートを一括撮影した撮像データを入力し、前記背景データの生成手段は前記複数のカラーチャートそれぞれの前記背景データを生成し、前記補正手段は前記複数のカラーチャートそれぞれの画像データに前記シェーディング補正を行い、
さらに、前記複数のカラーチャートの前記シェーディング補正後の画像データから一つの撮像データを生成する手段を有することを特徴とする請求項6に記載された画像処理装置。
The input means inputs imaging data obtained by collectively shooting the plurality of color charts, the background data generating means generates the background data for each of the plurality of color charts, and the correcting means is for each of the plurality of color charts. The shading correction is performed on the image data of
7. The image processing apparatus according to claim 6, further comprising means for generating one imaging data from the image data after the shading correction of the plurality of color charts.
前記複数の補正用パッチは、単一の色を有することを特徴とする請求項1から請求項7の何れか一項に記載された画像処理装置。   8. The image processing apparatus according to claim 1, wherein the plurality of correction patches have a single color. 前記背景データの生成手段は、前記カラーパッチが配置された位置に前記補正用パッチを配置した場合の当該補正用パッチの色を、当該位置の周囲の補正用パッチの色から補間して、前記背景データを生成することを特徴とする請求項1から請求項8の何れか一項に記載された画像処理装置。   The background data generation means interpolates the color of the correction patch when the correction patch is arranged at the position where the color patch is arranged from the color of the correction patch around the position, and 9. The image processing apparatus according to claim 1, wherein background image data is generated. 前記入力手段は、撮像装置から前記撮像データを入力することを特徴とする請求項1から請求項9の何れか一項に記載された画像処理装置。   10. The image processing apparatus according to claim 1, wherein the input unit inputs the imaging data from an imaging apparatus. 入力手段、背景データの生成手段、補正手段を有する画像処理装置の画像処理方法であって、
前記入力手段が、色が異なる複数のカラーパッチと複数の補正用パッチとが混在するカラーチャートを撮影した撮像データを入力し、
前記背景データの生成手段が、前記撮像データに含まれる前記複数の補正用パッチの画像データから背景データを生成し、
前記補正手段が、前記背景データを使用して、前記撮像データをシェーディング補正することを特徴とする画像処理方法。
An image processing method of an image processing apparatus having input means, background data generation means, and correction means,
The input means inputs imaging data obtained by photographing a color chart in which a plurality of color patches having different colors and a plurality of correction patches are mixed,
The background data generating means generates background data from image data of the plurality of correction patches included in the imaging data,
An image processing method, wherein the correction means performs shading correction on the imaging data using the background data.
コンピュータを請求項1から請求項10の何れか一項に記載された画像処理装置の各手段として機能させるためのプログラム。   11. A program for causing a computer to function as each unit of the image processing apparatus according to claim 1.
JP2012092477A 2012-04-13 2012-04-13 Image processing apparatus and method Active JP6000611B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012092477A JP6000611B2 (en) 2012-04-13 2012-04-13 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012092477A JP6000611B2 (en) 2012-04-13 2012-04-13 Image processing apparatus and method

Publications (2)

Publication Number Publication Date
JP2013223048A true JP2013223048A (en) 2013-10-28
JP6000611B2 JP6000611B2 (en) 2016-09-28

Family

ID=49593748

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012092477A Active JP6000611B2 (en) 2012-04-13 2012-04-13 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP6000611B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015207085A (en) * 2014-04-18 2015-11-19 富士通株式会社 Image processor, image processing method, and program
JP2020512737A (en) * 2017-03-17 2020-04-23 シロナ・デンタル・システムズ・ゲゼルシャフト・ミット・ベシュレンクテル・ハフツング Color reference for calibrating dental color cameras
JP2020188293A (en) * 2019-05-09 2020-11-19 株式会社リコー Image processing apparatus, image processing method, and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007259123A (en) * 2006-03-23 2007-10-04 Konica Minolta Business Technologies Inc Image reading apparatus, image processing method and computer-readable program
JP2011060270A (en) * 2009-08-10 2011-03-24 Canon Inc Printing system and method
JP2011145596A (en) * 2010-01-18 2011-07-28 Canon Inc Image forming apparatus and image quality correction method for the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007259123A (en) * 2006-03-23 2007-10-04 Konica Minolta Business Technologies Inc Image reading apparatus, image processing method and computer-readable program
JP2011060270A (en) * 2009-08-10 2011-03-24 Canon Inc Printing system and method
JP2011145596A (en) * 2010-01-18 2011-07-28 Canon Inc Image forming apparatus and image quality correction method for the same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015207085A (en) * 2014-04-18 2015-11-19 富士通株式会社 Image processor, image processing method, and program
JP2020512737A (en) * 2017-03-17 2020-04-23 シロナ・デンタル・システムズ・ゲゼルシャフト・ミット・ベシュレンクテル・ハフツング Color reference for calibrating dental color cameras
JP7092786B2 (en) 2017-03-17 2022-06-28 シロナ・デンタル・システムズ・ゲゼルシャフト・ミット・ベシュレンクテル・ハフツング Color reference for calibrating dental color cameras
JP2020188293A (en) * 2019-05-09 2020-11-19 株式会社リコー Image processing apparatus, image processing method, and program
JP7183942B2 (en) 2019-05-09 2022-12-06 株式会社リコー Image processing device, image processing method and program

Also Published As

Publication number Publication date
JP6000611B2 (en) 2016-09-28

Similar Documents

Publication Publication Date Title
US10735627B2 (en) Color conversion table creation apparatus and method, color conversion apparatus, and program
JP5733083B2 (en) Image processing apparatus and image processing system
US10015368B2 (en) Calibration system, calibration method, and image forming apparatus
JP6000611B2 (en) Image processing apparatus and method
JP2013123092A (en) Display controller and computer program
JP6172998B2 (en) Image processing apparatus and image processing method
JP2006237676A (en) Method and apparatus for image evaluation, and program
JP2013138407A (en) Image processor, image processing system, image processing method, program and storage medium
JP2017011443A (en) Image processing device, image forming device, image reading device and image processing method
EP3633967A1 (en) Image processing apparatus and image processing method
JP6350474B2 (en) Calibration system, calibration method, image forming apparatus, and calibration program
JP5664811B1 (en) Image adjustment apparatus, image forming apparatus, management apparatus, image adjustment system, and program
JP2013239917A (en) Color processing device and method thereof
JP5884362B2 (en) Image processing method, image reading apparatus, and image processing program
JP6350472B2 (en) Calibration system, calibration method, image forming apparatus, and calibration program
US9813592B2 (en) Image forming apparatus, storage medium, and color conversion method
JP6350473B2 (en) Calibration system, calibration method, image forming apparatus, and calibration program
JP7321885B2 (en) Image processing device, image processing method, and program
JP2018125649A (en) Computer program and image processing apparatus
JP2018146359A (en) Image forming device, control method thereof, and program
JP2010283665A (en) Image reading method and image reading system
JP2007280273A (en) Image evaluation apparatus, image evaluation method and program
JP6213739B2 (en) Calibration system
JP2005223708A (en) Inspection slip and data creation method for calibration
JP2013118439A (en) Image processing apparatus, image processing method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150406

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160308

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160422

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160520

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160713

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160831

R151 Written notification of patent or utility model registration

Ref document number: 6000611

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151