JP6753145B2 - Image processing equipment, image processing methods, image processing systems and programs - Google Patents

Image processing equipment, image processing methods, image processing systems and programs Download PDF

Info

Publication number
JP6753145B2
JP6753145B2 JP2016108553A JP2016108553A JP6753145B2 JP 6753145 B2 JP6753145 B2 JP 6753145B2 JP 2016108553 A JP2016108553 A JP 2016108553A JP 2016108553 A JP2016108553 A JP 2016108553A JP 6753145 B2 JP6753145 B2 JP 6753145B2
Authority
JP
Japan
Prior art keywords
color
color data
image
data
conversion model
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.)
Expired - Fee Related
Application number
JP2016108553A
Other languages
Japanese (ja)
Other versions
JP2017216560A (en
Inventor
稔弘 岩渕
稔弘 岩渕
久保 昌彦
昌彦 久保
誠 藤尾
誠 藤尾
将司 森本
将司 森本
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2016108553A priority Critical patent/JP6753145B2/en
Priority to CN201610986758.6A priority patent/CN107454374B/en
Publication of JP2017216560A publication Critical patent/JP2017216560A/en
Application granted granted Critical
Publication of JP6753145B2 publication Critical patent/JP6753145B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

本発明は、画像処理装置、画像処理方法、画像処理システム、プログラムに関する。 The present invention relates to an image processing apparatus, an image processing method, an image processing system, and a program.

近年、デジタルカメラやスマートフォン、タブレット等の機器の普及によりデジタル画像を撮影・閲覧するユーザが増加している。このとき撮影を行なう環境は、照明光等の影響により様々であり、また撮影対象も様々である。そのため撮影後に撮影された画像がユーザの意図するようなものとならないことがあり、そのため撮影された画像の色味等を調整することが一般的に行われている。
また、同じ物品を撮影した条件でも、使用した複数のデジタルカメラの機種特性や、同一のデジタルカメラを用いたとしても、撮影環境が異なっている場合は色の再現が異なり、特定の条件で撮影した色に調整(例えば、一方の条件の画像を他方の条件の画像に調整)することもある。
In recent years, the number of users who shoot and browse digital images is increasing due to the spread of devices such as digital cameras, smartphones, and tablets. At this time, the shooting environment varies depending on the influence of the illumination light and the like, and the shooting target also varies. Therefore, the image taken after shooting may not be what the user intended, and therefore it is common practice to adjust the color tone and the like of the shot image.
In addition, even if the same item is photographed, the color reproduction will be different if the shooting environment is different, even if the model characteristics of multiple digital cameras used and the same digital camera are used, and the image will be photographed under specific conditions. The color may be adjusted (for example, the image of one condition is adjusted to the image of the other condition).

特許文献1には、画像を撮影したデジタルカメラのIDが付与された画像を入力し、入力した画像に対して色調整を行ない、そして、色調整を行なう前の元画像と色調整を行なった後の調整済画像との色の差分に基づいて補正用プロファイルを作成し、作成した補正用プロファイルをデジタルカメラのIDと関連付けて記憶し、その後、そのデジタルカメラのIDが付与された画像を入力したときに作成した補正用プロファイルを画像に添付し、印刷や表示の際にカラーマッチングを行なうことにより、任意の画像に対して補正用プロファイルを作成した際の色調整と同様の色調整を行なうことができる画像処理装置が記載されている。 In Patent Document 1, an image to which the ID of the digital camera that captured the image is given is input, color adjustment is performed on the input image, and color adjustment is performed with the original image before color adjustment. Create a correction profile based on the color difference from the later adjusted image, store the created correction profile in association with the digital camera ID, and then enter the image with the digital camera ID. By attaching the correction profile created at the time of creation to the image and performing color matching at the time of printing or display, the same color adjustment as when creating the correction profile for any image is performed. Image processing devices capable of this are described.

また特許文献2には、画像に対して任意の色調整を行なった調整済画像と色調整を行なう前の元画像との色の差分に基づいて作成された補正用プロファイルを画像と撮影したデジタルカメラのIDとを関連付けて記憶しておき、画像を入力したときに画像データに含まれるデジタルカメラのIDを用いて補正用プロファイルを検索し、検索された補正用プロファイルからユーザが選択したプロファイルを入力した画像に添付する画像処理装置が記載されている。 Further, in Patent Document 2, a correction profile created based on a color difference between an adjusted image in which an arbitrary color adjustment is performed on an image and an original image before color adjustment is captured as an image. The profile is stored in association with the camera ID, the correction profile is searched using the digital camera ID included in the image data when the image is input, and the profile selected by the user is selected from the searched correction profiles. An image processing device attached to the input image is described.

さらに特許文献3には、RGB信号あるいはCMY信号の入力をCIEXYZ信号に変換する変換ステップと、CIEXYZ信号をRGB信号あるいはCMY信号に戻す逆変換ステップとを備え、変換ステップにおいて用いられる行列は、有彩色ベクトルを無彩色ベクトルに平行な方向と垂直な方向とに分割した2つのベクトルに基づいて得られた互いに独立な第1の行列と第2の行列との和で与えられる色補正方法が記載されている。 Further, Patent Document 3 includes a conversion step of converting an input of an RGB signal or a CMY signal into a CIEXYZ signal, and an inverse conversion step of returning a CIEXYZ signal to an RGB signal or a CMY signal, and the matrix used in the conversion step is included. Describes the color correction method given by the sum of the first matrix and the second matrix, which are independent of each other, obtained based on two vectors obtained by dividing the coloring vector into a direction parallel to the achromatic vector and a direction perpendicular to the achromatic vector. Has been done.

特開2004−304537号公報Japanese Unexamined Patent Publication No. 2004-304537 特開2004−304539号公報Japanese Unexamined Patent Publication No. 2004-304539 特開平9−139855号公報Japanese Unexamined Patent Publication No. 9-139855

例えば、色見本のカラーパッチを撮影し、これを基に色調整を行なう従来の方法では、衣料品などの物品を撮影した場合、カラーパッチに用いられている色材と衣料品に用いられている色材との分光反射率等の色特性が異なるため、これに起因して色調整の精度が低下することがある。また色調整を行なう画像の数が多くなると、作業量が膨大になりやすい。さらに色調整を行なうユーザ(レタッチャー)の技量や感性の違いにより、色調整の結果にばらつきが生じやすい。
また、デジタルカメラの特性差や、環境の影響による差異によっても、衣料品などの物品を撮影した場合、カラーパッチに用いられている色材と衣料品に用いられている色材との分光反射率等の色特性が異なるため、これに起因して色調整の精度が低下し、撮影結果にバラつきが生じやすい。
本発明は、物品の色特性が異なったり、撮影条件が異なる場合であっても、色調整の精度が低下しにくい変換関係を作成できる画像処理装置等を提供することを目的とする。
For example, in the conventional method of photographing a color patch of a color sample and adjusting the color based on the color patch, when an article such as clothing is photographed, it is used for the color material and the clothing used for the color patch. Since the color characteristics such as the spectral reflectance are different from those of the existing color material, the accuracy of the color adjustment may be lowered due to this. Further, when the number of images for which color adjustment is performed increases, the amount of work tends to be enormous. Furthermore, the result of color adjustment tends to vary due to differences in the skill and sensitivity of the user (retoucher) who performs color adjustment.
In addition, when an article such as clothing is photographed due to differences in the characteristics of digital cameras and differences due to the influence of the environment, spectral reflection between the color material used for the color patch and the color material used for the clothing Since the color characteristics such as the reflectance are different, the accuracy of the color adjustment is lowered due to this, and the shooting result is liable to vary.
An object of the present invention is to provide an image processing apparatus or the like capable of creating a conversion relationship in which the accuracy of color adjustment does not easily decrease even when the color characteristics of articles are different or the shooting conditions are different.

請求項1に記載の発明は、色補正対象物を表す第1の画像の注目領域中の色データである複数の第1の色データと、当該第1の画像とは異なる第2の画像における当該注目領域に対応し、当該第1の色データと対となる複数の第2の色データとを抽出する色データ抽出部と、抽出した前記第1の色データと前記第2の色データとの関係を表す色変換モデルを作成する色変換モデル作成部と、前記色変換モデルを基に、前記第1の画像の色調整を再現する変換関係を作成する変換関係作成部と、を備え、前記色変換モデル作成部は、前記第1の色データと前記第2の色データとの関係が非線形の単調増加関数となるように前記色変換モデルを作成することを特徴とする画像処理装置である。
請求項に記載の発明は、色補正対象物を表す第1の画像の注目領域中の色データである複数の第1の色データと、当該第1の画像とは異なる第2の画像における当該注目領域に対応し、当該第1の色データと対となる複数の第2の色データとを抽出する色データ抽出部と、抽出した前記第1の色データと前記第2の色データとの関係を表す色変換モデルを作成する色変換モデル作成部と、前記色変換モデルを基に、前記第1の画像の色調整を再現する変換関係を作成する変換関係作成部と、を備え、前記色変換モデル作成部は、前記第1の色データと前記第2の色データとの対に対し重みを設定して前記色変換モデルを作成することを特徴とする画像処理装置である。
請求項に記載の発明は、前記色変換モデル作成部は、前記第1の色データと前記第2の色データとの関係が単調増加関数となるように前記重みを設定して前記色変換モデルを作成することを特徴とする請求項に記載の画像処理装置である。
請求項に記載の発明は、前記色変換モデル作成部は、前記注目領域の大きさに応じて前記重みを設定することを特徴とする請求項またはに記載の画像処理装置である。
請求項に記載の発明は、色補正対象物を表す第1の画像の注目領域中の色データである複数の第1の色データと、当該第1の画像とは異なる第2の画像における当該注目領域に対応し、当該第1の色データと対となる複数の第2の色データとを抽出する色データ抽出工程と、抽出した前記第1の色データと前記第2の色データとの関係を表す色変換モデルを作成する色変換モデル作成工程と、前記色変換モデルを基に、前記第1の画像の色調整を再現する変換関係を作成する変換関係作成工程と、を含み、前記色変換モデル作成工程は、前記第1の色データと前記第2の色データとの関係が非線形の単調増加関数となるように前記色変換モデルを作成するか、当該第1の色データと当該第2の色データとの対に対し重みを設定して当該色変換モデルを作成するか、の少なくとも一方である画像処理方法である。
請求項に記載の発明は、撮影対象を撮影する撮影装置と、前記撮影装置により撮影した第1の画像に対し色調整を行なう画像処理装置と、を備え、前記画像処理装置は、前記第1の画像の注目領域中の色データである複数の第1の色データと、当該第1の画像とは異なる第2の画像における当該注目領域に対応し、当該第1の色データと対となる複数の第2の色データとを抽出する色データ抽出部と、抽出した前記第1の色データと前記第2の色データとの関係を表す色変換モデルを作成する色変換モデル作成部と、前記色変換モデルを基に、前記第1の画像の色調整を再現する変換関係を作成する変換関係作成部と、を備え、前記色変換モデル作成部は、前記第1の色データと前記第2の色データとの関係が非線形の単調増加関数となるように前記色変換モデルを作成するか、当該第1の色データと当該第2の色データとの対に対し重みを設定して当該色変換モデルを作成するか、の少なくとも一方である画像処理システムである。
請求項に記載の発明は、コンピュータに、色補正対象物を表す第1の画像の注目領域中の色データである複数の第1の色データと、当該第1の画像とは異なる第2の画像における当該注目領域に対応し、当該第1の色データと対となる複数の第2の色データとを抽出する色データ抽出機能と、抽出した前記第1の色データと前記第2の色データとの関係を表す色変換モデルを作成する色変換モデル作成機能と、前記色変換モデルを基に、前記第1の画像の色調整を再現する変換関係を作成する変換関係作成機能と、を実現させ、前記色変換モデル作成機能は、前記第1の色データと前記第2の色データとの関係が非線形の単調増加関数となるように前記色変換モデルを作成するか、当該第1の色データと当該第2の色データとの対に対し重みを設定して当該色変換モデルを作成するか、の少なくとも一方であるプログラムである。
The invention according to claim 1 is a plurality of first color data which are color data in a region of interest of a first image representing a color correction target, and a second image different from the first image. A color data extraction unit that extracts a plurality of second color data paired with the first color data corresponding to the region of interest, and the extracted first color data and the second color data. A color conversion model creation unit that creates a color conversion model that expresses the relationship between the two, and a conversion relationship creation unit that creates a conversion relationship that reproduces the color adjustment of the first image based on the color conversion model. The color conversion model creating unit is an image processing apparatus characterized in that the color conversion model is created so that the relationship between the first color data and the second color data is a non-linear monotonic increase function. is there.
The invention according to claim 2 is a plurality of first color data which are color data in a region of interest of a first image representing a color correction target, and a second image different from the first image. A color data extraction unit that extracts a plurality of second color data paired with the first color data corresponding to the region of interest, and the extracted first color data and the second color data. A color conversion model creation unit that creates a color conversion model that expresses the relationship between the two, and a conversion relationship creation unit that creates a conversion relationship that reproduces the color adjustment of the first image based on the color conversion model. The color conversion model creating unit is an image processing apparatus characterized in that a weight is set for a pair of the first color data and the second color data to create the color conversion model.
In the invention according to claim 3 , the color conversion model creating unit sets the weight so that the relationship between the first color data and the second color data becomes a monotonically increasing function, and performs the color conversion. The image processing apparatus according to claim 2 , wherein a model is created.
According to a fourth aspect of the invention, the color transformation model creating section, an image processing apparatus according to claim 2 or 3, characterized in that setting the weighting according to the size of the region of interest.
The invention according to claim 5 is a plurality of first color data which are color data in a region of interest of a first image representing a color correction object, and a second image different from the first image. A color data extraction step of extracting a plurality of second color data paired with the first color data corresponding to the region of interest, and the extracted first color data and the second color data. A color conversion model creation step of creating a color conversion model representing the relationship of the above, and a conversion relationship creation step of creating a conversion relationship for reproducing the color adjustment of the first image based on the color conversion model are included. In the color conversion model creation step, the color conversion model is created so that the relationship between the first color data and the second color data is a non-linear monotonic increase function, or the first color data and the first color data are combined. It is an image processing method that creates the color conversion model by setting a weight for the pair with the second color data, or at least one of them.
The invention according to claim 6 includes a photographing device for photographing an imaged object and an image processing device for performing color adjustment on a first image photographed by the photographing device, and the image processing device is the first. Corresponding to a plurality of first color data which are color data in the attention region of one image and the attention region in a second image different from the first image, and paired with the first color data. A color data extraction unit that extracts a plurality of second color data, and a color conversion model creation unit that creates a color conversion model that represents the relationship between the extracted first color data and the second color data. A conversion relationship creating unit that creates a conversion relationship that reproduces the color adjustment of the first image based on the color conversion model, and the color conversion model creating unit includes the first color data and the above. Create the color conversion model so that the relationship with the second color data is a non-linear monotonic increase function, or set weights for the pair of the first color data and the second color data. An image processing system that creates or at least one of the color conversion models .
The invention according to claim 7 tells a computer that a plurality of first color data which are color data in a region of interest of a first image representing a color correction object and a second image different from the first image. A color data extraction function that extracts a plurality of second color data pairs with the first color data corresponding to the region of interest in the image, and the extracted first color data and the second color data. A color conversion model creation function that creates a color conversion model that represents the relationship with color data, and a conversion relationship creation function that creates a conversion relationship that reproduces the color adjustment of the first image based on the color conversion model. The color conversion model creation function creates the color conversion model so that the relationship between the first color data and the second color data is a non-linear monotonic increase function, or the first color conversion model is created. It is a program that creates the color conversion model by setting weights for the pair of the color data of the above and the second color data, or at least one of them.

請求項1の発明によれば、作成した変換関係を使用して色調整を行なう際に、階調段差が生じにくくなる。
請求項の発明によれば、より滑らかな特性を有する色変換モデルを作成することができる。
請求項の発明によれば、単調増加関数となる色変換モデルをより容易に作成することができる。
請求項の発明によれば、より重要な色に対し色調整の精度が向上する変換関係を作成することができる。
請求項の発明によれば、物品の色特性が異なったり、撮影条件が異なる場合であっても、色調整の精度が低下しにくい変換関係を作成できる画像処理方法を提供することができる。また、物品の色特性に合わせた変換関係を作成することができる。また、作成した変換関係を使用して色調整を行なう際に、階調段差が生じにくくなるか、より滑らかな特性を有する色変換モデルを作成することができるか、の少なくとも一方ができる。
請求項の発明によれば、撮影対象の色特性が異なったり、撮影条件が異なる場合であっても、色調整の精度が低下しにくい変換関係を作成できる画像処理システムが提供できる。また、物品の色特性に合わせた変換関係を作成することができる。また、作成した変換関係を使用して色調整を行なう際に、階調段差が生じにくくなるか、より滑らかな特性を有する色変換モデルを作成することができるか、の少なくとも一方ができる。
請求項の発明によれば、物品の色特性が異なったり、撮影条件が異なる場合であっても、色調整の精度が低下しにくい変換関係を作成することができる機能をコンピュータにより実現できる。また、物品の色特性に合わせた変換関係を作成することができる。また、作成した変換関係を使用して色調整を行なう際に、階調段差が生じにくくなるか、より滑らかな特性を有する色変換モデルを作成することができるか、の少なくとも一方ができる。
According to the invention of claim 1 , when the color adjustment is performed using the created conversion relationship, a gradation step is less likely to occur.
According to the invention of claim 2 , it is possible to create a color conversion model having smoother characteristics.
According to the invention of claim 3 , it is possible to more easily create a color conversion model that becomes a monotonically increasing function.
According to the invention of claim 4 , it is possible to create a conversion relationship in which the accuracy of color adjustment is improved for more important colors.
According to the fifth aspect of the present invention, it is possible to provide an image processing method capable of creating a conversion relationship in which the accuracy of color adjustment is less likely to decrease even when the color characteristics of articles are different or the shooting conditions are different. In addition, it is possible to create a conversion relationship that matches the color characteristics of the article. Further, when color adjustment is performed using the created conversion relationship, at least one of the two is less likely to occur and the color conversion model having smoother characteristics can be created.
According to the sixth aspect of the present invention, it is possible to provide an image processing system capable of creating a conversion relationship in which the accuracy of color adjustment is less likely to decrease even when the color characteristics of the object to be photographed are different or the imaging conditions are different. In addition, it is possible to create a conversion relationship that matches the color characteristics of the article. Further, when color adjustment is performed using the created conversion relationship, at least one of the two is less likely to occur and the color conversion model having smoother characteristics can be created.
According to the invention of claim 7 , even when the color characteristics of the articles are different or the shooting conditions are different, a function capable of creating a conversion relationship in which the accuracy of color adjustment is unlikely to decrease can be realized by a computer. In addition, it is possible to create a conversion relationship that matches the color characteristics of the article. Further, when color adjustment is performed using the created conversion relationship, at least one of the two is less likely to occur and the color conversion model having smoother characteristics can be created.

本実施の形態における画像処理システムの構成例を示す図である。It is a figure which shows the configuration example of the image processing system in this embodiment. 本実施の形態における画像処理装置の機能構成例を表すブロック図である。It is a block diagram which shows the functional structure example of the image processing apparatus in this embodiment. (a)〜(b)は、第1の色データと第2の色データとの対の例を示した図である。(A)-(b) is a figure which showed the example of the pair of the 1st color data and the 2nd color data. (a)は、色空間内を象限で区切り、区切られた象限から第1の色データと第2の色データとの対を抽出する場合を示した図である。(b)は、色空間内を色相で区切り、区切られた色領域から第1の色データと第2の色データとの対を抽出する場合を示した図である。(c)は、色域内を明度、彩度で区切り、区切られた色領域から第1の色データと第2の色データとの対を抽出する場合を示した図である。FIG. 1A is a diagram showing a case where the color space is divided into quadrants and a pair of the first color data and the second color data is extracted from the divided quadrants. FIG. (B) is a diagram showing a case where the color space is divided by hue and a pair of the first color data and the second color data is extracted from the divided color regions. FIG. 3C is a diagram showing a case where the color range is divided by lightness and saturation and a pair of the first color data and the second color data is extracted from the divided color areas. 小領域内の画素についてヒストグラムを作成した場合の例を示した図である。It is a figure which showed the example of the case where the histogram is created about the pixel in a small area. 異なる明度の色データを抽出する場合について示した図である。It is a figure which showed the case of extracting the color data of different brightness. 色変換モデルの一例について示した図である。It is a figure which showed an example of a color conversion model. (a)〜(b)は、第1の色データと第2の色データとの関係が単調増加関数になるように色変換モデルを作成した場合と、単調増加関数とならないように色変換モデルを作成した場合を比較した図である。(A) to (b) are a case where a color conversion model is created so that the relationship between the first color data and the second color data becomes a monotonous increase function, and a color conversion model so as not to have a monotonous increase function. It is a figure which compared the case where was created. 画像処理装置の動作について説明したフローチャートである。It is a flowchart explaining the operation of an image processing apparatus. 画像処理装置のハードウェア構成を示した図である。It is a figure which showed the hardware configuration of an image processing apparatus.

以下、添付図面を参照して、本発明の実施の形態について詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

<画像処理システム全体の説明>
図1は、本実施の形態における画像処理システム1の構成例を示す図である。
図示するように本実施の形態の画像処理システム1は、カメラ40により撮影した原画像に対し色調整を行なう画像処理装置10と、画像処理装置10により出力された画像データに基づき画像を表示する表示装置20と、画像処理装置10に対しユーザが種々の情報を入力するための入力装置30と、撮影対象Sを撮影し画像処理装置10で色調整するための画像データを生成するカメラ40とを備える。
<Explanation of the entire image processing system>
FIG. 1 is a diagram showing a configuration example of the image processing system 1 according to the present embodiment.
As shown in the figure, the image processing system 1 of the present embodiment displays an image based on the image processing device 10 that adjusts the color of the original image captured by the camera 40 and the image data output by the image processing device 10. A display device 20, an input device 30 for the user to input various information to the image processing device 10, and a camera 40 for photographing the image target S and generating image data for color adjustment by the image processing device 10. To be equipped.

画像処理装置10は、例えば、所謂汎用のパーソナルコンピュータ(PC)である。そして、画像処理装置10は、OS(Operating System)による管理下において、各種アプリケーションソフトウェアを動作させることで、色調整等が行われるようになっている。 The image processing device 10 is, for example, a so-called general-purpose personal computer (PC). Then, the image processing device 10 is designed to perform color adjustment and the like by operating various application software under the control of the OS (Operating System).

表示装置20は、表示画面21に画像を表示する。表示装置20は、例えばPC用の液晶ディスプレイ、液晶テレビあるいはプロジェクタなど、加法混色にて画像を表示する機能を備えたもので構成される。したがって、表示装置20における表示方式は、液晶方式に限定されるものではない。なお、図1に示す例では、表示装置20内に表示画面21が設けられているが、表示装置20として例えばプロジェクタを用いる場合、表示画面21は、表示装置20の外部に設けられたスクリーン等となる。 The display device 20 displays an image on the display screen 21. The display device 20 includes, for example, a liquid crystal display for a PC, a liquid crystal television, a projector, or the like, which has a function of displaying an image by additive color mixing. Therefore, the display method in the display device 20 is not limited to the liquid crystal method. In the example shown in FIG. 1, the display screen 21 is provided inside the display device 20, but when a projector is used as the display device 20, the display screen 21 is a screen or the like provided outside the display device 20. It becomes.

入力装置30は、キーボードやマウス等で構成される。入力装置30は、色調整を行なうためのアプリケーションソフトウェアの起動、終了や、詳しくは後述するが、色調整を行なう際に、ユーザが画像処理装置10に対し色調整を行なうための指示を入力するのに使用する。 The input device 30 is composed of a keyboard, a mouse, and the like. The input device 30 starts and ends application software for performing color adjustment, and as will be described in detail later, when performing color adjustment, the user inputs an instruction for performing color adjustment to the image processing device 10. Used for.

カメラ40は、撮影装置の一例であり、例えば、入射した光を収束する光学系と、光学系により収束された光を検出する撮像手段であるイメージセンサとを備える。
光学系は、単一のレンズまたは複数のレンズを組み合わせて構成される。光学系は、レンズの組み合わせおよびレンズ表面に施されたコーティング等により、各種の収差が除去されている。イメージセンサは、CCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)等の撮像素子を配列して構成される。
The camera 40 is an example of a photographing device, and includes, for example, an optical system that converges incident light and an image sensor that is an imaging means that detects the light converged by the optical system.
The optical system is composed of a single lens or a combination of a plurality of lenses. In the optical system, various aberrations are removed by the combination of lenses and the coating applied to the lens surface. The image sensor is configured by arranging image pickup elements such as CCD (Charge Coupled Device) and CMOS (Complementary Metal Oxide Semiconductor).

画像処理装置10および表示装置20は、DVI(Digital Visual Interface)を介して接続されている。なお、DVIに代えて、HDMI(登録商標)(High-Definition Multimedia Interface)やDisplayPort等を介して接続するようにしてもかまわない。
また画像処理装置10と入力装置30とは、例えば、USB(Universal Serial Bus)を介して接続されている。なお、USBに代えて、IEEE1394やRS−232C等を介して接続されていてもよい。
さらに画像処理装置10およびカメラ40とは、図示する例では、有線で接続されており、例えば、USB、IEEE1394、RS−232Cを介して接続されている。これにより有線によりカメラ40で撮影された画像の画像データが、画像処理装置10に送られる。ただしこれに限られるものではなく、無線LAN(Local Area Network)、ブルートゥース(Bluetooth)(登録商標)等の無線接続であってもよい。さらに画像処理装置10およびカメラ40とを接続せず、SDカード等のメモリカード等を介して画像データを画像処理装置10に受け渡してもよい。
The image processing device 10 and the display device 20 are connected via a DVI (Digital Visual Interface). In addition, instead of DVI, connection may be made via HDMI (registered trademark) (High-Definition Multimedia Interface), DisplayPort, or the like.
Further, the image processing device 10 and the input device 30 are connected via, for example, USB (Universal Serial Bus). In addition, instead of USB, it may be connected via IEEE1394, RS-232C or the like.
Further, the image processing device 10 and the camera 40 are connected by wire in the illustrated example, and are connected via, for example, USB, IEEE1394, RS-232C. As a result, the image data of the image taken by the camera 40 by wire is sent to the image processing device 10. However, the present invention is not limited to this, and a wireless connection such as a wireless LAN (Local Area Network) or Bluetooth (Bluetooth) (registered trademark) may be used. Further, the image data may be passed to the image processing device 10 via a memory card such as an SD card without connecting the image processing device 10 and the camera 40.

このような画像処理システム1において、まず最初にユーザが、カメラ40により撮影対象Sを撮影する。カメラ40により撮影した画像は、第1の画像としての原画像であり、この画像データは、画像処理装置10に送られる。そして表示装置20には、色処理を行なう前の画像である原画像が表示される。次にユーザが入力装置30を使用して、画像処理装置10に対し色調整を行なうための指示を入力すると、画像処理装置10により原画像に対し色調整がなされる。この色調整の結果は、例えば、表示装置20に表示される画像に反映され、第1の画像とは異なる第2の画像としての色調整後の画像が再描画されて表示装置20に表示される。この場合、ユーザは、表示装置20を見ながらインタラクティブに色調整を行なうことができ、より直感的に、またより容易に色調整の作業を行える。
また、第2の画像として、画像処理装置10による色調整後の画像の他、カメラ40とは機種特性が異なる、即ち撮影条件が異なる他のカメラによって撮影された他の画像としてもよい。この場合は、カメラ40で撮影した画像を第1の画像とし、撮影条件が異なるカメラで撮影された他の画像を第2の画像として見ることができる。
In such an image processing system 1, the user first photographs the image target S with the camera 40. The image taken by the camera 40 is an original image as a first image, and this image data is sent to the image processing device 10. Then, the display device 20 displays the original image which is an image before the color processing is performed. Next, when the user inputs an instruction for performing color adjustment to the image processing device 10 using the input device 30, the image processing device 10 performs color adjustment on the original image. The result of this color adjustment is reflected in, for example, an image displayed on the display device 20, and an image after color adjustment as a second image different from the first image is redrawn and displayed on the display device 20. To. In this case, the user can interactively perform the color adjustment while looking at the display device 20, and the color adjustment work can be performed more intuitively and more easily.
Further, as the second image, in addition to the image after color adjustment by the image processing device 10, another image may be taken by another camera having different model characteristics from the camera 40, that is, different shooting conditions. In this case, the image taken by the camera 40 can be seen as the first image, and the other images taken by the cameras with different shooting conditions can be seen as the second image.

また表示装置20では、色調整の結果を基に、原画像の色調整を行ない色調整後の画像とすることができる変換関係を作成する。この色調整は、例えば、第1の色データおよび第2の色データがRed(R)、Green(G)、Blue(B)からなるRGBデータであったとき、第1の色データを(R、G、B)、第2の色データを(R、G、B)とすると、(R、G、B)→(R、G、B)とする処理である。この変換関係を使用することで、先に行なった色調整と同様の色調整を再現することができる。この変換関係は、プロファイルとも呼ばれ、例えば、3次元LUT(Look up Table)として作成することができる。ただしこれに限られるものではない。例えば、変換関係は、R→R、G→G、B→Bとする1次元LUTであってもよい。また変換関係は、(R、G、B)→(R、G、B)とする多次元マトリクスであってもよい。この変換関係を作成する処理については後述する。 Further, the display device 20 creates a conversion relationship in which the color of the original image can be adjusted based on the result of the color adjustment to obtain the image after the color adjustment. In this color adjustment, for example, when the first color data and the second color data are RGB data including Red (R), Green (G), and Blue (B), the first color data is (R). a, G a, B a) , the second color data (R b, when G b, B b) to, (R a, G a, B a) → (R b, G b, B b) and It is a process to do. By using this conversion relationship, it is possible to reproduce the same color adjustment as the color adjustment performed earlier. This conversion relationship is also called a profile, and can be created as, for example, a three-dimensional LUT (Look up Table). However, it is not limited to this. For example, the conversion relationship, R aR b, may be a G aG b, 1-dimensional LUT to B aB b. The conversion relationship may be a multi-dimensional matrix to (R a, G a, B a) → (R b, G b, B b). The process of creating this conversion relationship will be described later.

なお本実施の形態における画像処理システム1は、図1の形態に限られるものではない。例えば、画像処理システム1としてタブレット端末を例示することができる。この場合、タブレット端末は、タッチパネルを備え、このタッチパネルにより画像の表示を行なうとともにタッチ等のユーザの指示が入力される。即ち、タッチパネルが、表示装置20および入力装置30として機能する。なおカメラ40としては、タブレット端末に内蔵されたカメラを用いることができる。また同様に表示装置20および入力装置30を統合した装置として、タッチモニタを用いることもできる。これは、上記表示装置20の表示画面21としてタッチパネルを使用したものである。この場合、画像処理装置10により出力された画像データに基づきタッチモニタに画像が表示される。そしてユーザは、このタッチモニタをタッチ等することで色調整を行なうための指示を入力する。 The image processing system 1 in the present embodiment is not limited to the embodiment shown in FIG. For example, a tablet terminal can be exemplified as the image processing system 1. In this case, the tablet terminal is provided with a touch panel, and the touch panel displays an image and inputs a user's instruction such as a touch. That is, the touch panel functions as the display device 20 and the input device 30. As the camera 40, a camera built in the tablet terminal can be used. Similarly, a touch monitor can be used as a device that integrates the display device 20 and the input device 30. This uses a touch panel as the display screen 21 of the display device 20. In this case, the image is displayed on the touch monitor based on the image data output by the image processing device 10. Then, the user inputs an instruction for performing color adjustment by touching the touch monitor or the like.

<画像処理装置の説明>
次に画像処理装置10について説明を行なう。
<Explanation of image processing device>
Next, the image processing device 10 will be described.

図2は、本実施の形態における画像処理装置10の機能構成例を表すブロック図である。なお図2では、画像処理装置10が有する種々の機能のうち本実施の形態に関係するものを選択して図示している。なお、本実施の形態では、第2の画像として、原画像に対し色調整がなされた色調整後の画像を用いた場合の例を示す。
図示するように本実施の形態の画像処理装置10は、画像データを取得する画像データ取得部11と、ユーザの指示を受け付けるユーザ指示受付部12と、画像の色調整を行なう色調整部13と、予め定められた画像データを抽出する色データ抽出部14と、色変換モデルを作成する色変換モデル作成部15と、変換関係を作成する変換関係作成部16と、出力部17とを備える。
FIG. 2 is a block diagram showing a functional configuration example of the image processing device 10 according to the present embodiment. Note that FIG. 2 shows a selection of various functions of the image processing apparatus 10 that are related to the present embodiment. In this embodiment, an example is shown in which a color-adjusted image obtained by adjusting the color of the original image is used as the second image.
As shown in the figure, the image processing device 10 of the present embodiment includes an image data acquisition unit 11 that acquires image data, a user instruction reception unit 12 that receives user instructions, and a color adjustment unit 13 that adjusts the color of an image. A color data extraction unit 14 for extracting predetermined image data, a color conversion model creation unit 15 for creating a color conversion model, a conversion relationship creation unit 16 for creating a conversion relationship, and an output unit 17 are provided.

画像データ取得部11は、色調整を行なう前の原画像の画像データを取得する。この画像データは、表示装置20で表示を行なうためのデータ形式となっており、例えば、前述のRGBデータである。なお画像データ取得部11は、他のデータ形式で画像データを取得し、これを色変換してRGBデータ等としてもよい。 The image data acquisition unit 11 acquires the image data of the original image before the color adjustment is performed. This image data is in a data format for displaying on the display device 20, and is, for example, the RGB data described above. The image data acquisition unit 11 may acquire image data in another data format and color-convert the image data to obtain RGB data or the like.

ユーザ指示受付部12は、入力装置30により入力された色調整に関するユーザによる指示を受け付ける。具体的には、ユーザ指示受付部12は、色調整を行なう画像中の領域を指定する指示をユーザ指示情報として受け付ける。またユーザ指示受付部12は、この領域に対する色調整の指示をユーザ指示情報として受け付ける。 The user instruction receiving unit 12 receives an instruction by the user regarding color adjustment input by the input device 30. Specifically, the user instruction receiving unit 12 receives an instruction for designating an area in the image for which color adjustment is performed as user instruction information. Further, the user instruction receiving unit 12 receives an instruction for color adjustment for this area as user instruction information.

色調整部13は、ユーザ指示受付部12が受け付けたユーザ指示情報を基に、原画像の画像データに対して色調整を行なう。ユーザは、例えば、選択した領域に対し、色相、彩度、輝度の調整を行なうことで色調整を行なう。 The color adjustment unit 13 adjusts the color of the image data of the original image based on the user instruction information received by the user instruction reception unit 12. The user adjusts the color of the selected area by adjusting the hue, saturation, and brightness, for example.

色データ抽出部14は、色補正対象物を表す原画像(第1の画像)の注目領域中の色データである複数の第1の色データと、原画像(第1の画像)とは異なる第2の画像における注目領域に対応し、第1の色データと対となる複数の第2の色データとを抽出する。ここでは、色データ抽出部14は、原画像の注目領域中の色データである複数の第1の色データと第1の色データに対し色調整を行なった後の複数の第2の色データとを抽出する。これは色データ抽出部14は、色補正対象物を表す原画像(第1の画像)の注目領域中の色データである複数の第1の色データと、原画像(第1の画像)に対し色調整を行なった後の画像である第2の画像の注目領域中で、第1の色データに対し色調整を行なった後の第2の色データとを抽出すると、言い換えることもできる。
ここで注目領域とは、色調整が必要な画像中の領域であり、例えば、画像が物品を販売するのに使用されるものであった場合には、その物品の表示領域である。つまり物品の色は、色再現をより厳密に行ない、実際の物品の色と画像として表示される物品の色とが合致することが要求される。そのため色調整を行なう領域の対象となりやすい。対して物品の背景の領域は、このような要求がされにくく、色調整を行なう領域の対象となりにくい。なお注目領域は、例えば、ユーザがユーザ指示情報として指定することができる。
この場合、色データ抽出部14は、物品が表示される領域における原画像の画像データである第1の色データと、同領域(同じ画素位置)における色調整後の画像データである第2の色データとを抽出する。このとき第1の色データと第2の色データとは対となり、1対1対応で抽出される。
The color data extraction unit 14 is different from the plurality of first color data, which is the color data in the region of interest of the original image (first image) representing the color correction target, and the original image (first image). A plurality of second color data paired with the first color data are extracted corresponding to the region of interest in the second image. Here, the color data extraction unit 14 performs a plurality of first color data, which is color data in the region of interest of the original image, and a plurality of second color data after color adjustment is performed on the first color data. And extract. This is because the color data extraction unit 14 uses a plurality of first color data, which is color data in the region of interest of the original image (first image) representing the color correction target, and the original image (first image). On the other hand, in the region of interest of the second image, which is the image after the color adjustment, the second color data after the color adjustment is extracted from the first color data can be paraphrased.
Here, the region of interest is an region in an image that requires color adjustment, and is, for example, a display region of the article if the image was used to sell the article. That is, the color of the article is required to reproduce the color more strictly and to match the color of the actual article with the color of the article displayed as an image. Therefore, it is likely to be the target of the area for color adjustment. On the other hand, the background area of the article is less likely to be requested in this way and is less likely to be the target of the area for color adjustment. The region of interest can be designated by the user as user instruction information, for example.
In this case, the color data extraction unit 14 has the first color data which is the image data of the original image in the area where the article is displayed and the second color data which is the image data after color adjustment in the same area (same pixel position). Extract with color data. At this time, the first color data and the second color data are paired and extracted in a one-to-one correspondence.

図3(a)〜(b)は、第1の色データと第2の色データとの対の例を示した図である。
ここで図3(a)は、色調整前の原画像とその画像データである第1の色データの例を示している。ここでは、原画像がブラウスの画像であり、その中の1〜5で示した小領域における色データをRGBa1〜RGBa5として示している。この場合、ブラウスは、青単色であり、RGBa1〜RGBa5は、何れも青色を表すRGBデータとなっている。
また図3(b)は、色調整後の画像とその画像データである第2の色データの例を示している。ここでは、そして図3(a)と同様の1〜5で示した小領域における色データをRGBb1〜RGBb5として示している。
3A to 3B are diagrams showing an example of a pair of the first color data and the second color data.
Here, FIG. 3A shows an example of the original image before color adjustment and the first color data which is the image data thereof. Here, the original image is an image of a blouse, and the color data in the small regions shown in 1 to 5 are shown as RGBa1 to RGBa5. In this case, the blouse is a single blue color, and RGBa1 to RGBa5 are all RGB data representing blue.
Further, FIG. 3B shows an example of the image after color adjustment and the second color data which is the image data thereof. Here, the color data in the small regions shown in 1 to 5 similar to FIG. 3A are shown as RGBb1 to RGBb5.

第1の色データと第2の色データとの対を抽出するには、例えば、以下の(1)〜(3)の方法を使用することができる。 In order to extract the pair of the first color data and the second color data, for example, the following methods (1) to (3) can be used.

(1)色空間内を象限や色相で区切り、区切られた色領域内で第1の色データと第2の色データとの対を抽出する。
図4(a)は、色空間内を象限で区切り、区切られた象限から第1の色データと第2の色データとの対を抽出する場合を示した図である。
図4(a)に示す例では、L色空間をa軸およびb軸で区切り、これによりL色空間を、第1象限〜第4象限の4つの象限で区切った例を示している。そしてここではこのうち第4象限にある4つの黒点で示した色データを抽出した場合を示している。この場合、区切られた色領域は4つの各象限であり、そのうち1つの色領域から色データを抽出している。
(1) The color space is divided by quadrants and hues, and a pair of the first color data and the second color data is extracted in the separated color area.
FIG. 4A is a diagram showing a case where the color space is divided into quadrants and a pair of the first color data and the second color data is extracted from the divided quadrants.
In the example shown in FIG. 4 (a), the L * a * b * color space is divided by the a * axis and the b * axis, whereby the L * a * b * color space is divided into 4 of the first to fourth quadrants. An example of dividing by two quadrants is shown. And here, the case where the color data indicated by the four black dots in the fourth quadrant is extracted is shown. In this case, the separated color regions are each of the four quadrants, and the color data is extracted from one of the color regions.

また図4(b)は、色空間内を色相で区切り、区切られた色領域から第1の色データと第2の色データとの対を抽出する場合を示した図である。なお図4(b)において点線内の領域が表示装置20の色域であるとする。
図4(b)に示す例では、L色空間を色相毎に領域1〜領域6の6つに区切った例を示している。そしてここではこのうち領域3と領域5にある5つの黒点で示した色データを抽出した場合を示している。この場合、区切られた色領域は6つであり、そのうち2つの色領域から色データを抽出している。即ち、複数の色領域から色データを抽出している。
Further, FIG. 4B is a diagram showing a case where the color space is divided by hue and a pair of the first color data and the second color data is extracted from the divided color regions. It is assumed that the area inside the dotted line in FIG. 4B is the color gamut of the display device 20.
In the example shown in FIG. 4 (b), an example in which the L * a * b * color space is divided into six regions 1 to 6 for each hue is shown. And here, the case where the color data indicated by the five black dots in the area 3 and the area 5 is extracted is shown. In this case, there are six separated color regions, and color data is extracted from two of the color regions. That is, color data is extracted from a plurality of color regions.

(2)色域内を明度、彩度で区切り、区切られた色領域内で第1の色データと第2の色データとの対を抽出する。
図4(c)は、色域内を明度、彩度で区切り、区切られた色領域から第1の色データと第2の色データとの対を抽出する場合を示した図である。なお図4(c)は、図4(b)を紙面に垂直に切った断面図であり、点線内の領域が表示装置20の色域であるとする。
図4(c)に示す例では、L色空間を明度、彩度毎に領域1〜領域4の4つに区切った例を示している。そしてここでは領域1〜領域4のそれぞれにある4つの黒点で示した色データを抽出した場合を示している。この場合、区切られた色領域は4つであり、全ての色領域から色データを抽出している。即ち、複数の色領域から色データを抽出している。なお図4(a)で説明を行なったように何れか1つの色領域から色データを抽出してもよい。
(2) The color range is divided by lightness and saturation, and a pair of the first color data and the second color data is extracted in the separated color area.
FIG. 4C is a diagram showing a case where the color range is divided by lightness and saturation and a pair of the first color data and the second color data is extracted from the divided color areas. Note that FIG. 4C is a cross-sectional view of FIG. 4B cut perpendicular to the paper surface, and it is assumed that the area inside the dotted line is the color gamut of the display device 20.
In the example shown in FIG. 4C, an example in which the L * a * b * color space is divided into four areas 1 to 4 for each lightness and saturation is shown. Here, the case where the color data indicated by the four black dots in each of the regions 1 to 4 is extracted is shown. In this case, there are four separated color regions, and color data is extracted from all the color regions. That is, color data is extracted from a plurality of color regions. Note that the color data may be extracted from any one of the color regions as described with reference to FIG. 4A.

(3)ユーザが指定した画像中の領域や色空間上の範囲内で第1の色データと第2の色データとの対を抽出する。
この場合、ユーザは、例えば、画像中の領域として、図3のブラウスの表示領域を指定する。また色空間上の青色の領域を指定する。
(3) A pair of the first color data and the second color data is extracted within the area in the image or the range on the color space specified by the user.
In this case, the user specifies, for example, the display area of the blouse of FIG. 3 as the area in the image. It also specifies the blue area on the color space.

また第1の色データと第2の色データとの対は、予め定められた小領域内で抽出することが好ましい。例えば、選択画素を中心としその周辺1画素を小領域とする。この場合、小領域は、3画素×3画素=9画素からなる。そしてこの9画素の平均値、最頻値、ヒストグラムのピークなどから、代表色を決定し、第1の色データおよび第2の色データとする。代表色を第1の色データおよび第2の色データとすることで、後述する変換関係を使用した色調整の際に色調整のばらつきが低減できる。 Further, it is preferable that the pair of the first color data and the second color data is extracted within a predetermined small area. For example, the selected pixel is centered and one pixel around it is set as a small area. In this case, the small area is composed of 3 pixels × 3 pixels = 9 pixels. Then, the representative color is determined from the average value, the mode value, the peak of the histogram, etc. of the 9 pixels, and is used as the first color data and the second color data. By setting the representative color as the first color data and the second color data, it is possible to reduce the variation in the color adjustment at the time of the color adjustment using the conversion relationship described later.

図5は、小領域内の画素についてヒストグラムを作成した場合の例を示した図である。
なお図で横軸は、RGBデータもしくはLデータを表し、縦軸は画素数(Countとして図示)を表す。
このとき図5の円内で示すようにヒストグラムのピークが複数あった場合は、1つの小領域の中から代表色として第1の色データおよび第2の色データを複数組決定してもよい。このとき代表色とする基準として、例えば、ピークをとる画素値を有する画素の画素数がこの小領域内の全画素数に対し20%以上のときとすることができる。
FIG. 5 is a diagram showing an example when a histogram is created for the pixels in the small area.
In the figure, the horizontal axis represents RGB data or L * a * b * data, and the vertical axis represents the number of pixels (shown as Count).
At this time, when there are a plurality of histogram peaks as shown in the circle of FIG. 5, a plurality of sets of the first color data and the second color data may be determined as representative colors from one small area. .. At this time, as a reference for the representative color, for example, the number of pixels of the pixel having the pixel value having a peak may be 20% or more of the total number of pixels in this small region.

また複数の色領域から色データを抽出する場合、互いに大きく異なる色相、彩度または明度の色データが抽出されることがある。
図6は、異なる明度の色データを抽出する場合について示した図である。
図示する例では、原画像が白色のブラウスと黒色のスカートを含む画像であり、その中の1〜8で示した小領域における色データを抽出する場合を示している。この場合、白色のブラウスからは1〜4で示した小領域から第1の色データと第2の色データとの対が抽出され、黒色のスカートからは5〜8で示した小領域から第1の色データと第2の色データとの対が抽出された場合を示す。即ち、互いに大きく異なる明度の色データが抽出されている。この場合、白色のブラウスの表示領域および黒色のスカートの表示領域の双方が注目領域であるためであり、双方から第1の色データと第2の色データとの対を抽出する必要があるためである。
When color data is extracted from a plurality of color regions, color data having a hue, saturation, or lightness that are significantly different from each other may be extracted.
FIG. 6 is a diagram showing a case where color data having different brightness is extracted.
In the illustrated example, the original image is an image including a white blouse and a black skirt, and the case where the color data in the small region shown by 1 to 8 in the original image is extracted is shown. In this case, the pair of the first color data and the second color data is extracted from the small area shown by 1 to 4 from the white blouse, and the pair from the small area shown by 5 to 8 is extracted from the black skirt. The case where the pair of the 1st color data and the 2nd color data is extracted is shown. That is, color data having greatly different brightness is extracted. In this case, both the display area of the white blouse and the display area of the black skirt are the areas of interest, and it is necessary to extract the pair of the first color data and the second color data from both. Is.

なおこの場合、注目領域の大きさ(面積、画素数、占有率)に応じて、抽出する色データの数を決定することが好ましい。図6の場合は、白色のブラウスと黒色のスカートの双方の注目領域の大きさは、ほぼ同じであるため、同数の色データを抽出している。即ち、抽出する色データの数は、それぞれの注目領域について1:1である。これが仮に白色のブラウスの注目領域と黒色のスカートの注目領域との面積が2:1だったときは、抽出する色データの数は、2:1とする。 In this case, it is preferable to determine the number of color data to be extracted according to the size of the region of interest (area, number of pixels, occupancy rate). In the case of FIG. 6, since the sizes of the areas of interest of both the white blouse and the black skirt are almost the same, the same number of color data are extracted. That is, the number of color data to be extracted is 1: 1 for each region of interest. If the area of interest of the white blouse and the area of interest of the black skirt are 2: 1, the number of color data to be extracted is 2: 1.

色変換モデル作成部15は、色データ抽出部14で抽出した第1の色データと第2の色データとの関係を表す色変換モデルを作成する。 The color conversion model creation unit 15 creates a color conversion model representing the relationship between the first color data and the second color data extracted by the color data extraction unit 14.

図7は、色変換モデルの一例について示した図である。
ここで横軸は、色調整前の色データである第1の色データを表し、縦軸は、色調整後の色データである第2の色データを表す。第1の色データおよび第2の色データは、RGBデータであり、図では、第1の色データは、RGBa、第2の色データは、RGBbとして図示している、
FIG. 7 is a diagram showing an example of a color conversion model.
Here, the horizontal axis represents the first color data which is the color data before the color adjustment, and the vertical axis represents the second color data which is the color data after the color adjustment. The first color data and the second color data are RGB data, and in the figure, the first color data is shown as RGBa, and the second color data is shown as RGBb.

そして黒丸は、色データ抽出部14で抽出された第1の色データと第2の色データとをプロットしたものであり、ここでは、色データ抽出部14で抽出された第1の色データと第2の色データとの対が、12個であったことを示している。 The black circle is a plot of the first color data and the second color data extracted by the color data extraction unit 14, and here, the first color data extracted by the color data extraction unit 14 and the first color data. It shows that there were 12 pairs with the second color data.

また実線は、第1の色データと第2の色データとの関係であり、色変換モデル作成部15で作成された色変換モデルを表す。即ち、色変換モデルは、第1の色データと第2の色データとの関係を表した関数であると言うこともできる。この関数をfとすると、RGBb=f(RGBa)と表すこともできる。この色変換モデルは、公知の方法で作成することができる。ただし、重み付け回帰モデルやニューラルネットワークなどの非線形特性に対するフィッティング性能が高い方法を使用することが好ましい。ただし、非線形特性に限定されず、Matrixモデルを使用した線形特性を用いてもよい。 The solid line is the relationship between the first color data and the second color data, and represents the color conversion model created by the color conversion model creation unit 15. That is, it can be said that the color conversion model is a function expressing the relationship between the first color data and the second color data. If this function is f, it can also be expressed as RGBb = f (RGBa). This color conversion model can be created by a known method. However, it is preferable to use a method having high fitting performance for non-linear characteristics such as a weighted regression model or a neural network. However, the characteristic is not limited to the non-linear characteristic, and the linear characteristic using the Property model may be used.

また色変換モデル作成部15は、第1の色データと第2の色データとの関係が非線形の単調増加関数となるように色変換モデルを作成することが好ましい。
図8(a)〜(b)は、第1の色データと第2の色データとの関係が単調増加関数になるように色変換モデルを作成した場合と、単調増加関数とならないように色変換モデルを作成した場合を比較した図である。
図中、実線で描かれた曲線は色変換モデルを表す。この色変換モデルのうち太線の方は、第1の色データと第2の色データとの関係が単調増加関数となるように色変換モデルを作成した場合であり、図7と同様の色変換モデルである。また細線の方は、第1の色データと第2の色データとの関係が単調増加関数とならないように色変換モデルを作成した場合である。なおここで単調増加関数とは、色変換モデルを表す実線の接線の傾きが0以上となることであり、傾きが0となる箇所があってもよい。即ち広義の単調増加関数である。
Further, it is preferable that the color conversion model creating unit 15 creates a color conversion model so that the relationship between the first color data and the second color data becomes a non-linear monotonic increase function.
8 (a) to 8 (b) show the case where the color conversion model is created so that the relationship between the first color data and the second color data becomes a monotonous increase function, and the case where the colors do not become a monotonous increase function. It is the figure which compared the case where the conversion model was created.
In the figure, the curve drawn by the solid line represents the color conversion model. The thick line in this color conversion model is a case where the color conversion model is created so that the relationship between the first color data and the second color data becomes a monotonically increasing function, and the same color conversion as in FIG. It is a model. The thin line is a case where the color conversion model is created so that the relationship between the first color data and the second color data does not become a monotonically increasing function. Here, the monotonous increase function means that the slope of the tangent line of the solid line representing the color conversion model is 0 or more, and there may be a place where the slope is 0. That is, it is a monotonous increasing function in a broad sense.

太線で示した色変換モデルは、接線の傾きが0未満(負)となる場合はなく、常に0以上である。
対して細線で示した色変換モデルは、接線の傾きが0未満(負)となる場合がある。即ちRGBaが増加するとRGBbが減少する箇所がある。この色変換モデルを使用して作成された変換関係を利用して色調整を行なうと、色調整後の画像に階調段差が生じることがある。第1の色データと第2の色データとの関係が単調増加関数になるように色変換モデルを作成すると階調段差が生じるのが低減でき、色調整のばらつきも低減できる。
In the color conversion model shown by the thick line, the slope of the tangent line is not less than 0 (negative) and is always 0 or more.
On the other hand, in the color conversion model shown by the thin line, the slope of the tangent line may be less than 0 (negative). That is, there is a place where RGBb decreases as RGBa increases. When color adjustment is performed using the conversion relationship created by using this color conversion model, a gradation step may occur in the image after color adjustment. If a color conversion model is created so that the relationship between the first color data and the second color data becomes a monotonically increasing function, it is possible to reduce the occurrence of gradation steps and reduce the variation in color adjustment.

色変換モデル作成部15が、太線で示したような色変換モデルを作成するには、例えば、Pr1、Pr2およびPr3として図示した第1の色データおよび第2の色データの対を除去することが考えられる。 In order for the color conversion model creation unit 15 to create a color conversion model as shown by a thick line, for example, the pair of the first color data and the second color data shown as Pr1, Pr2 and Pr3 is removed. Can be considered.

また色変換モデル作成部15は、第1の色データと第2の色データとの対に対し重みを設定して色変換モデルを作成するようにしてもよい。
この場合、色変換モデル作成部15は、第1の色データと第2の色データとの関係が単調増加関数となるように重みを設定して色変換モデルを作成することができる。つまりPr1やPr2として図示した第1の色データおよび第2の色データの対に対しては小さい重みを設定し、他は大きい重みを設定する。例えば、第1の色データと第2の色データとの対が、平均的な特性差方向との差分が大きい場合は、小さい重みを設定し、平均的な特性差方向との差分が小さい場合は、大きい重みを設定する。なおPr1、Pr2およびPr3として図示した第1の色データおよび第2の色データの対に対して重みを0とする設定としてもよい。この場合、これらを除去したのと同様の結果となる。
Further, the color conversion model creation unit 15 may create a color conversion model by setting weights for the pair of the first color data and the second color data.
In this case, the color conversion model creation unit 15 can create a color conversion model by setting weights so that the relationship between the first color data and the second color data becomes a monotonically increasing function. That is, a small weight is set for the pair of the first color data and the second color data shown as Pr1 and Pr2, and a large weight is set for the other pairs. For example, when the pair of the first color data and the second color data has a large difference from the average characteristic difference direction, a small weight is set and the difference from the average characteristic difference direction is small. Sets a large weight. The weight may be set to 0 for the pair of the first color data and the second color data shown as Pr1, Pr2, and Pr3. In this case, the result is the same as removing them.

なお重みの使用方法はこれに限られるものではない。例えば、色変換モデル作成部15は、注目領域の大きさに応じて重みを設定するようにしてもよい。
例えば、図6に示した例では、注目領域の大きさに応じて抽出する色データの数を決めていたが、それぞれの注目領域に対し抽出する色データの数は同数とし、注目領域の大きさに応じ、注目領域が大きいほど大きい重みを設定し、注目領域が小さいほど小さい重みを設定するようにしてもよい。仮に白色のブラウスの注目領域と黒色のスカートの注目領域との面積が2:1だったときは、重みについても2:1とする。
The usage of weights is not limited to this. For example, the color conversion model creation unit 15 may set the weight according to the size of the region of interest.
For example, in the example shown in FIG. 6, the number of color data to be extracted is determined according to the size of the region of interest, but the number of color data to be extracted is the same for each region of interest, and the size of the region of interest is large. Correspondingly, a larger weight may be set as the region of interest is larger, and a smaller weight may be set as the region of interest is smaller. If the area of interest of the white blouse and the area of interest of the black skirt are 2: 1, the weight is also 2: 1.

図2に戻り、変換関係作成部16は、色変換モデル作成部15で作成した色変換モデルを基に、原画像の色調整を再現する変換関係を作成する。この変換関係は、ユーザが原画像に対し行なった色調整の結果を再現するものとなる。つまり原画像に対しこの変換関係を使用して色調整を行なうと、ユーザが先に行なった色調整と同様の色調整を再び行ない、色調整後の画像とすることができる。 Returning to FIG. 2, the conversion relationship creation unit 16 creates a conversion relationship that reproduces the color adjustment of the original image based on the color conversion model created by the color conversion model creation unit 15. This conversion relationship reproduces the result of the color adjustment performed by the user on the original image. That is, when the color adjustment is performed on the original image using this conversion relationship, the same color adjustment as the color adjustment previously performed by the user can be performed again to obtain the image after the color adjustment.

変換関係が3次元LUTである場合は、R、G、Bのそれぞれについて代表となる画素値を選択する。例えば、R、G、Bのそれぞれのデータが8bitの階調で表される場合、画素値は0〜255の整数となるが、これを例えば、8分割する。そして8分割したそれぞれの画素値で表すことができるRGBデータを格子点とする(いわゆる9格子点)。この場合、格子点は、9=729個となる。そしてこの格子点のそれぞれについて、色変換モデルを基に第1の色データと第2の色データとの対応関係を算出する。この対応関係をLUT(Look Up Table)で表したものが3次元LUTである。その結果、3次元LUTは、各格子点毎に入力値(R、G、B)−出力値(R、G、B)の対応関係として記述される。 When the conversion relationship is a three-dimensional LUT, representative pixel values are selected for each of R, G, and B. For example, when each of the data of R, G, and B is represented by an 8-bit gradation, the pixel value is an integer of 0 to 255, and this is divided into, for example, eight. Then, RGB data that can be represented by each pixel value divided into 8 is used as a grid point (so-called 9 grid points). In this case, grid points is 9 3 = 729. Then, for each of the grid points, the correspondence relationship between the first color data and the second color data is calculated based on the color conversion model. A three-dimensional LUT expresses this correspondence by a LUT (Look Up Table). As a result, 3-dimensional LUT, the input values for each lattice point (R a, G a, B a) - the output value (R b, G b, B b) are described as the corresponding relationship.

このとき変換関係作成部16は、注目領域に含まれる色については色調整を行なうが、他の色については色調整を行なわない変換関係を作成することが好ましい。例えば、図3で示した画像の場合は、変換関係作成部16は、青の色領域に対しては色調整を行なうが、他の色については色調整を行なわない変換関係を作成する。また図6で示した画像の場合は、変換関係作成部16は、白と黒の色領域に対しては色調整を行なうが、他の色については色調整を行なわない変換関係を作成する。変換関係が3次元LUTである場合、この3次元LUTは、注目領域に含まれる色に近い格子点の入力値(R、G、B)と出力値(R、G、B)とは異なる値となるが、他の格子点の入力値(R、G、B)と出力値(R、G、B)とは同じ値となる。 At this time, it is preferable that the conversion relationship creating unit 16 creates a conversion relationship in which the color included in the region of interest is adjusted in color but the other colors are not adjusted in color. For example, in the case of the image shown in FIG. 3, the conversion relationship creating unit 16 creates a conversion relationship in which the blue color region is color-adjusted but the other colors are not color-adjusted. Further, in the case of the image shown in FIG. 6, the conversion relationship creating unit 16 creates a conversion relationship in which the white and black color regions are color-adjusted but the other colors are not color-adjusted. When the conversion relationship is three-dimensional LUT, the 3-dimensional LUT, the input values of the grid points close to the color included in the target area (R a, G a, B a) and the output value (R b, G b, B Although the value different from b), the input values of the other grid points (R a, G a, B a) and the output value (R b, G b, the same value and the B b).

出力部17は、色調整後の画像データや変換関係のデータを出力する。色調整後の画像データは、表示装置20に出力され、表示装置20では、この画像データに基づいた色調整後の画像が表示される。また変換関係のデータは、例えば、画像処理装置10に記憶され、この変換関係を用いて色調整を行なうことができる。また画像処理装置10とは異なる外部機器に対し出力され、この外部機器においてこの変換関係を用いて色調整を行なうことができる。 The output unit 17 outputs image data after color adjustment and conversion-related data. The image data after color adjustment is output to the display device 20, and the display device 20 displays the image after color adjustment based on the image data. Further, the conversion-related data is stored in, for example, the image processing device 10, and the color adjustment can be performed using this conversion-related data. Further, the image is output to an external device different from the image processing device 10, and the external device can perform color adjustment using this conversion relationship.

次に画像処理装置10の動作について説明する。
図9は、画像処理装置10の動作について説明したフローチャートである。なお以下に説明する画像処理装置10の動作は、画像処理装置10により行なわれる画像処理方法であると捉えることもできる。
まず画像データ取得部11が、原画像の画像データを取得する(ステップ101)。
原画像の画像データは、出力部17から表示装置20に対し出力される(ステップ102)。その結果、表示装置20の表示画面21に原画像が表示される。
Next, the operation of the image processing device 10 will be described.
FIG. 9 is a flowchart illustrating the operation of the image processing device 10. The operation of the image processing device 10 described below can also be regarded as an image processing method performed by the image processing device 10.
First, the image data acquisition unit 11 acquires the image data of the original image (step 101).
The image data of the original image is output from the output unit 17 to the display device 20 (step 102). As a result, the original image is displayed on the display screen 21 of the display device 20.

次にユーザ指示受付部12が、色調整を行なう画像中の領域や色調整の指示をユーザ指示情報として受け付ける(ステップ103)。
そして色調整部13が、ユーザ指示情報を基に、原画像の画像データに対して色調整を行なう(ステップ104)。
色調整後の画像データは、出力部17から表示装置20に対し出力される(ステップ105)。その結果、表示装置20の表示画面21に色調整後の画像が表示される。
Next, the user instruction receiving unit 12 receives the area in the image for which color adjustment is performed and the color adjustment instruction as user instruction information (step 103).
Then, the color adjustment unit 13 adjusts the color of the image data of the original image based on the user instruction information (step 104).
The color-adjusted image data is output from the output unit 17 to the display device 20 (step 105). As a result, the color-adjusted image is displayed on the display screen 21 of the display device 20.

次に色データ抽出部14が、原画像の注目領域中の色データである複数の第1の色データと第1の色データに対し色調整を行なった後の複数の第2の色データとを抽出する(ステップ106:色データ抽出工程)。これは図3〜図6で説明した方法で行なうことができる。 Next, the color data extraction unit 14 obtains a plurality of first color data which are color data in the region of interest of the original image and a plurality of second color data after color adjustment is performed on the first color data. (Step 106: color data extraction step). This can be done by the method described in FIGS. 3-6.

そして色変換モデル作成部15が、色データ抽出部14で抽出した第1の色データと第2の色データとの関係を非線形にて表す色変換モデルを作成する(ステップ107:色変換モデル作成工程)。これは、図7〜図8で説明した方法で行なうことができる。 Then, the color conversion model creation unit 15 creates a color conversion model that non-linearly represents the relationship between the first color data and the second color data extracted by the color data extraction unit 14 (step 107: color conversion model creation). Process). This can be done by the method described with reference to FIGS. 7-8.

さらに変換関係作成部16が、色変換モデル作成部15で作成した色変換モデルを基に、色調整部13で行なった原画像の色調整を再現する変換関係を作成する(ステップ108:変換関係作成工程)。これは、上述の通り、例えば、3次元LUTで作成される。
そして出力部17が、変換関係のデータを出力する(ステップ109)。
Further, the conversion relationship creation unit 16 creates a conversion relationship that reproduces the color adjustment of the original image performed by the color adjustment unit 13 based on the color conversion model created by the color conversion model creation unit 15 (step 108: conversion relationship). Creation process). It is created, for example, in a three-dimensional LUT, as described above.
Then, the output unit 17 outputs conversion-related data (step 109).

本実施の形態では、変換関係作成部16は、原画像に対し予め定められたグループ毎に変換関係を作成することが好ましい。
このグループは、物品の分光反射率等の色特性が同様になると予想されるもの毎に分けられる。
例えば、グループは、物品のカテゴリにより分けられる。具体的には、物品が、衣類、印刷物、家具、文房具であるかどうかや、色材の種類により分けられる。そして物品の色特性が同様となる物品については、同じ変換関係で色調整を行い、物品の色特性が異なる物品については、それぞれ異なる変換関係で色調整を行なう。これにより色調整の精度が向上する。また同様の理由によりグループを、物品の主要色、物品の柄により分けてもよい。さらにグループを、フラッシュの有無、照明光、露光、背景、撮影モード、カメラの種類(メーカー、型番など)等の撮影条件やカメラ40の設定条件により分けてもよい。またこのとき撮影条件として、例えば、物品が衣料品であったときに、人が着用しているか、マネキンが着用しているか、または置き撮り(テーブルの上に置いて撮影するなど)であるかなどの条件を加味してもよい。さらにグループは、色調整を行うユーザ(レタッチャー)により分けてよい。
In the present embodiment, it is preferable that the conversion relationship creating unit 16 creates a conversion relationship for each group predetermined for the original image.
This group is divided into those that are expected to have similar color characteristics such as spectral reflectance of articles.
For example, groups are divided into categories of goods. Specifically, the articles are classified according to whether they are clothing, printed matter, furniture, stationery, and the type of coloring material. Then, for articles having the same color characteristics of the articles, color adjustment is performed with the same conversion relationship, and for articles with different color characteristics of the articles, color adjustment is performed with different conversion relationships. This improves the accuracy of color adjustment. Further, for the same reason, the group may be divided according to the main color of the article and the pattern of the article. Further, the group may be further divided according to shooting conditions such as the presence / absence of a flash, illumination light, exposure, background, shooting mode, camera type (manufacturer, model number, etc.) and setting conditions of the camera 40. At this time, as the shooting conditions, for example, when the item is clothing, whether it is worn by a person, worn by a mannequin, or taken by placing it on a table (such as by placing it on a table). Conditions such as may be added. Further, the group may be divided according to the user (retoucher) who performs the color adjustment.

またこのとき変換関係作成部16は、予め定められたグループ毎に複数の原画像を使用して変換関係を作成することが好ましい。つまり複数の原画像を使用した色調整の結果が得られれば、グループ毎に種々の色に対応する変換関係を作成することができる。さらに同系色の色しかない原画像を使用した場合でも、この色について複数の色調整の結果が得られるため、色調整を行なう変換関係の精度が同様に向上する。 Further, at this time, it is preferable that the conversion relationship creation unit 16 creates a conversion relationship by using a plurality of original images for each predetermined group. That is, if the results of color adjustment using a plurality of original images are obtained, it is possible to create conversion relationships corresponding to various colors for each group. Further, even when an original image having only similar colors is used, a plurality of color adjustment results can be obtained for this color, so that the accuracy of the conversion relationship for performing the color adjustment is similarly improved.

また本実施の形態では、変換関係作成部16は、注目領域に含まれる色は色調整を行うが、他の色は色調整を行わない変換関係を作成する。これにより色調整の精度を向上させることができる。もし全ての色領域に対し色調整を行なう変換関係を作成した場合、色調整の精度が低下しやすくなる。本実施の形態では、従来の1種類の画像により変換関係を作成する場合に比較して色調整の精度が向上する。つまり従来は、1種類の画像により全ての色領域に対し色調整を行なう変換関係を作成していたため、これに比較して本実施の形態では、色調整の精度を向上させることができる。 Further, in the present embodiment, the conversion relationship creating unit 16 creates a conversion relationship in which the color included in the region of interest is color-adjusted, but the other colors are not color-adjusted. This makes it possible to improve the accuracy of color adjustment. If a conversion relationship for performing color adjustment for all color areas is created, the accuracy of color adjustment tends to decrease. In the present embodiment, the accuracy of color adjustment is improved as compared with the case where the conversion relationship is created by one type of conventional image. That is, conventionally, since a conversion relationship for performing color adjustment for all color regions with one type of image has been created, the accuracy of color adjustment can be improved in the present embodiment as compared with this.

このように本実施の形態では、グループ毎に作成された変換関係を用いることで、撮影対象の色特性が異なってもそれに合致するグループの変換関係を選択することで、より精度の高い色調整を行なうことができる。 As described above, in the present embodiment, by using the conversion relationship created for each group, even if the color characteristics of the object to be photographed are different, the conversion relationship of the group that matches the conversion relationship is selected to adjust the color with higher accuracy. Can be done.

またこの変換関係を予め用意し、用意された変換関係を使用することで、色調整を行なうユーザ(レタッチャー)の技量や感性の差による色調整の差も生じにくくなり、この点でも色調整の精度が向上する。 In addition, by preparing this conversion relationship in advance and using the prepared conversion relationship, it is difficult for differences in color adjustment due to differences in the skill and sensitivity of the user (retoucher) who performs color adjustment to occur, and in this respect as well, color adjustment Accuracy is improved.

なお上述した例では、原画像としてカメラ40により撮影された画像を用いたが、原画像については特に限られるものではない。例えば、原画像としてスキャナにより読み込んだ画像を使用してもよい。また市販されている画像データやインターネット等で配布されている画像データをそのまま原画像としてもよい。
また上述した例では、色特性として物品の分光反射率を例示したが、撮影等を行なう際に影響を及ぼす特性であれば、これに限られるものではない。例えば、物品表面の凹凸構造、光沢の有無、質感などが挙げられる。
In the above-mentioned example, an image taken by the camera 40 is used as the original image, but the original image is not particularly limited. For example, an image read by a scanner may be used as the original image. Further, commercially available image data or image data distributed on the Internet or the like may be used as the original image as it is.
Further, in the above-mentioned example, the spectral reflectance of the article is illustrated as a color characteristic, but the characteristic is not limited to this as long as it is a characteristic that affects when photographing or the like. For example, the uneven structure on the surface of the article, the presence or absence of gloss, the texture, and the like can be mentioned.

<画像処理装置のハードウェア構成例>
次に、画像処理装置10のハードウェア構成について説明する。
図10は、画像処理装置10のハードウェア構成を示した図である。
画像処理装置10は、上述したようにパーソナルコンピュータ等により実現される。そして図示するように、画像処理装置10は、演算手段であるCPU(Central Processing Unit)91と、記憶手段であるメインメモリ92、およびHDD(Hard Disk Drive)93とを備える。ここで、CPU91は、OS(Operating System)やアプリケーションソフトウェア等の各種プログラムを実行する。また、メインメモリ92は、各種プログラムやその実行に用いるデータ等を記憶する記憶領域であり、HDD93は、各種プログラムに対する入力データや各種プログラムからの出力データ等を記憶する記憶領域である。
さらに、画像処理装置10は、外部との通信を行なうための通信インターフェース(通信I/F)94を備える。
<Hardware configuration example of image processing device>
Next, the hardware configuration of the image processing device 10 will be described.
FIG. 10 is a diagram showing a hardware configuration of the image processing device 10.
The image processing device 10 is realized by a personal computer or the like as described above. As shown in the figure, the image processing device 10 includes a CPU (Central Processing Unit) 91 as a calculation means, a main memory 92 as a storage means, and an HDD (Hard Disk Drive) 93. Here, the CPU 91 executes various programs such as an OS (Operating System) and application software. The main memory 92 is a storage area for storing various programs and data used for executing the various programs, and the HDD 93 is a storage area for storing input data for various programs and output data from various programs.
Further, the image processing device 10 includes a communication interface (communication I / F) 94 for communicating with the outside.

<プログラムの説明>
ここで以上説明を行った本実施の形態における画像処理装置10が行なう処理は、例えば、アプリケーションソフトウェア等のプログラムとして用意される。
<Program description>
The processing performed by the image processing apparatus 10 according to the present embodiment described above is prepared as, for example, a program such as application software.

よって本実施の形態で画像処理装置10が行なう処理は、コンピュータに、色補正対象物を表す第1の画像の注目領域中の色データである複数の第1の色データと、第1の画像とは異なる第2の画像における注目領域に対応し、第1の色データと対となる複数の第2の色データとを抽出する色データ抽出機能と、抽出した第1の色データと第2の色データとの関係を表す色変換モデルを作成する色変換モデル作成機能と、色変換モデルを基に、第1の画像の色調整を再現する変換関係を作成する変換関係作成機能と、を実現させるプログラムとして捉えることができる。 Therefore, in the processing performed by the image processing apparatus 10 in the present embodiment, a plurality of first color data, which is color data in the region of interest of the first image representing the color correction target, and the first image are stored in the computer. A color data extraction function that extracts a plurality of second color data pairs with the first color data corresponding to a region of interest in a second image different from the above, and the extracted first color data and the second A color conversion model creation function that creates a color conversion model that represents the relationship with the color data of the first image, and a conversion relationship creation function that creates a conversion relationship that reproduces the color adjustment of the first image based on the color conversion model. It can be regarded as a program to be realized.

なお、本実施の形態を実現するプログラムは、通信手段により提供することはもちろん、CD−ROM等の記録媒体に格納して提供することも可能である。 The program that realizes the present embodiment can be provided not only by communication means but also by storing it in a recording medium such as a CD-ROM.

以上、本実施の形態について説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、種々の変更または改良を加えたものも、本発明の技術的範囲に含まれることは、特許請求の範囲の記載から明らかである。 Although the present embodiment has been described above, the technical scope of the present invention is not limited to the scope described in the above embodiment. It is clear from the description of the scope of claims that the above-described embodiment with various modifications or improvements is also included in the technical scope of the present invention.

1…画像処理システム、10…画像処理装置、11…画像データ取得部、12…ユーザ指示受付部、13…色調整部、14…色データ抽出部、15…色変換モデル作成部、16…変換関係作成部、17…出力部 1 ... Image processing system, 10 ... Image processing device, 11 ... Image data acquisition unit, 12 ... User instruction reception unit, 13 ... Color adjustment unit, 14 ... Color data extraction unit, 15 ... Color conversion model creation unit, 16 ... Conversion Relationship creation unit, 17 ... Output unit

Claims (7)

色補正対象物を表す第1の画像の注目領域中の色データである複数の第1の色データと、当該第1の画像とは異なる第2の画像における当該注目領域に対応し、当該第1の色データと対となる複数の第2の色データとを抽出する色データ抽出部と、
抽出した前記第1の色データと前記第2の色データとの関係を表す色変換モデルを作成する色変換モデル作成部と、
前記色変換モデルを基に、前記第1の画像の色調整を再現する変換関係を作成する変換関係作成部と、
を備え、
前記色変換モデル作成部は、前記第1の色データと前記第2の色データとの関係が非線形の単調増加関数となるように前記色変換モデルを作成することを特徴とする画像処理装置。
Corresponding to a plurality of first color data which are color data in the attention region of the first image representing the color correction target and the attention region in the second image different from the first image, the first A color data extraction unit that extracts one color data and a plurality of second color data pairs,
A color conversion model creation unit that creates a color conversion model that represents the relationship between the extracted first color data and the second color data, and
A conversion relationship creating unit that creates a conversion relationship that reproduces the color adjustment of the first image based on the color conversion model, and
With
The color conversion model creating unit is an image processing apparatus characterized in that the color conversion model is created so that the relationship between the first color data and the second color data is a non-linear monotonic increase function.
色補正対象物を表す第1の画像の注目領域中の色データである複数の第1の色データと、当該第1の画像とは異なる第2の画像における当該注目領域に対応し、当該第1の色データと対となる複数の第2の色データとを抽出する色データ抽出部と、
抽出した前記第1の色データと前記第2の色データとの関係を表す色変換モデルを作成する色変換モデル作成部と、
前記色変換モデルを基に、前記第1の画像の色調整を再現する変換関係を作成する変換関係作成部と、
を備え、
前記色変換モデル作成部は、前記第1の色データと前記第2の色データとの対に対し重みを設定して前記色変換モデルを作成することを特徴とする画像処理装置。
Corresponding to a plurality of first color data which are color data in the attention region of the first image representing the color correction target and the attention region in the second image different from the first image, the first A color data extraction unit that extracts one color data and a plurality of second color data pairs,
A color conversion model creation unit that creates a color conversion model that represents the relationship between the extracted first color data and the second color data, and
A conversion relationship creating unit that creates a conversion relationship that reproduces the color adjustment of the first image based on the color conversion model, and
With
The image processing device is characterized in that the color conversion model creating unit creates the color conversion model by setting weights for a pair of the first color data and the second color data.
前記色変換モデル作成部は、前記第1の色データと前記第2の色データとの関係が単調増加関数となるように前記重みを設定して前記色変換モデルを作成することを特徴とする請求項に記載の画像処理装置。 The color conversion model creating unit is characterized in that the color conversion model is created by setting the weights so that the relationship between the first color data and the second color data becomes a monotonically increasing function. The image processing apparatus according to claim 2 . 前記色変換モデル作成部は、前記注目領域の大きさに応じて前記重みを設定することを特徴とする請求項またはに記載の画像処理装置。 The image processing apparatus according to claim 2 or 3 , wherein the color conversion model creating unit sets the weight according to the size of the region of interest. 色補正対象物を表す第1の画像の注目領域中の色データである複数の第1の色データと、当該第1の画像とは異なる第2の画像における当該注目領域に対応し、当該第1の色データと対となる複数の第2の色データとを抽出する色データ抽出工程と、
抽出した前記第1の色データと前記第2の色データとの関係を表す色変換モデルを作成する色変換モデル作成工程と、
前記色変換モデルを基に、前記第1の画像の色調整を再現する変換関係を作成する変換関係作成工程と、
を含み、
前記色変換モデル作成工程は、前記第1の色データと前記第2の色データとの関係が非線形の単調増加関数となるように前記色変換モデルを作成するか、当該第1の色データと当該第2の色データとの対に対し重みを設定して当該色変換モデルを作成するか、の少なくとも一方である画像処理方法。
Corresponding to a plurality of first color data which are color data in the attention region of the first image representing the color correction target and the attention region in the second image different from the first image, the first A color data extraction step for extracting one color data and a plurality of second color data pairs,
A color conversion model creation step of creating a color conversion model representing the relationship between the extracted first color data and the second color data, and
A conversion relationship creation process for creating a conversion relationship that reproduces the color adjustment of the first image based on the color conversion model, and
Including
In the color conversion model creation step, the color conversion model is created so that the relationship between the first color data and the second color data is a non-linear monotonic increase function, or the first color data and the first color data are combined. An image processing method in which a weight is set for a pair with the second color data to create the color conversion model, or at least one of them .
撮影対象を撮影する撮影装置と、
前記撮影装置により撮影した第1の画像に対し色調整を行なう画像処理装置と、
を備え、
前記画像処理装置は、
前記第1の画像の注目領域中の色データである複数の第1の色データと、当該第1の画像とは異なる第2の画像における当該注目領域に対応し、当該第1の色データと対となる複数の第2の色データとを抽出する色データ抽出部と、
抽出した前記第1の色データと前記第2の色データとの関係を表す色変換モデルを作成する色変換モデル作成部と、
前記色変換モデルを基に、前記第1の画像の色調整を再現する変換関係を作成する変換関係作成部と、
を備え、
前記色変換モデル作成部は、前記第1の色データと前記第2の色データとの関係が非線形の単調増加関数となるように前記色変換モデルを作成するか、当該第1の色データと当該第2の色データとの対に対し重みを設定して当該色変換モデルを作成するか、の少なくとも一方である画像処理システム。
A shooting device that shoots the subject and
An image processing device that adjusts the color of the first image shot by the shooting device, and
With
The image processing device is
Corresponding to the plurality of first color data which is the color data in the attention region of the first image and the attention region in the second image different from the first image, the first color data A color data extraction unit that extracts a plurality of paired second color data,
A color conversion model creation unit that creates a color conversion model that represents the relationship between the extracted first color data and the second color data, and
A conversion relationship creating unit that creates a conversion relationship that reproduces the color adjustment of the first image based on the color conversion model, and
With
The color conversion model creating unit creates the color conversion model so that the relationship between the first color data and the second color data is a non-linear monotonic increase function, or the first color data and the first color data. An image processing system that creates the color conversion model by setting weights for a pair with the second color data, or at least one of them .
コンピュータに、
色補正対象物を表す第1の画像の注目領域中の色データである複数の第1の色データと、当該第1の画像とは異なる第2の画像における当該注目領域に対応し、当該第1の色データと対となる複数の第2の色データとを抽出する色データ抽出機能と、
抽出した前記第1の色データと前記第2の色データとの関係を表す色変換モデルを作成する色変換モデル作成機能と、
前記色変換モデルを基に、前記第1の画像の色調整を再現する変換関係を作成する変換関係作成機能と、
を実現させ、
前記色変換モデル作成機能は、前記第1の色データと前記第2の色データとの関係が非線形の単調増加関数となるように前記色変換モデルを作成するか、当該第1の色データと当該第2の色データとの対に対し重みを設定して当該色変換モデルを作成するか、の少なくとも一方であるプログラム。
On the computer
Corresponding to a plurality of first color data which are color data in the attention region of the first image representing the color correction target and the attention region in the second image different from the first image, the first A color data extraction function that extracts one color data and a plurality of second color data pairs,
A color conversion model creation function that creates a color conversion model that represents the relationship between the extracted first color data and the second color data, and
A conversion relationship creation function that creates a conversion relationship that reproduces the color adjustment of the first image based on the color conversion model, and
Realized,
The color conversion model creation function creates the color conversion model so that the relationship between the first color data and the second color data is a non-linear monotonic increase function, or the first color data and the first color data. A program that creates the color conversion model by setting weights for a pair with the second color data, or at least one of them .
JP2016108553A 2016-05-31 2016-05-31 Image processing equipment, image processing methods, image processing systems and programs Expired - Fee Related JP6753145B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2016108553A JP6753145B2 (en) 2016-05-31 2016-05-31 Image processing equipment, image processing methods, image processing systems and programs
CN201610986758.6A CN107454374B (en) 2016-05-31 2016-11-09 Image processing apparatus, image processing method, and image processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016108553A JP6753145B2 (en) 2016-05-31 2016-05-31 Image processing equipment, image processing methods, image processing systems and programs

Publications (2)

Publication Number Publication Date
JP2017216560A JP2017216560A (en) 2017-12-07
JP6753145B2 true JP6753145B2 (en) 2020-09-09

Family

ID=60486127

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016108553A Expired - Fee Related JP6753145B2 (en) 2016-05-31 2016-05-31 Image processing equipment, image processing methods, image processing systems and programs

Country Status (2)

Country Link
JP (1) JP6753145B2 (en)
CN (1) CN107454374B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021144574A (en) * 2020-03-13 2021-09-24 富士フイルムビジネスイノベーション株式会社 Image processing device and program
JP2021145271A (en) 2020-03-13 2021-09-24 富士フイルムビジネスイノベーション株式会社 Image processing device and program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4369151B2 (en) * 2003-03-31 2009-11-18 セイコーエプソン株式会社 Image processing apparatus, image processing method, and program used therefor
JP4804422B2 (en) * 2007-05-31 2011-11-02 オリンパス株式会社 Signal processing apparatus and signal processing program
JP6089491B2 (en) * 2011-11-30 2017-03-08 株式会社リコー Image processing apparatus, image processing system, image processing method, program, and storage medium
CN102590677A (en) * 2012-02-28 2012-07-18 浙江省电力试验研究院 Analyzing and processing method for test data of manual pollution flashover of insulator
JP6150779B2 (en) * 2013-11-15 2017-06-21 富士フイルム株式会社 Color conversion table creation device and method, and program
JP6140665B2 (en) * 2013-11-15 2017-05-31 富士フイルム株式会社 Color conversion table creation device and method, and program

Also Published As

Publication number Publication date
CN107454374B (en) 2021-10-15
JP2017216560A (en) 2017-12-07
CN107454374A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
JP5727109B2 (en) Spectral image processing
US10602026B2 (en) Image processing apparatus, image processing method, and non-transitory computer readable medium
CN107274351B (en) Image processing apparatus, image processing system, and image processing method
US9997133B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
WO2023016035A1 (en) Video processing method and apparatus, electronic device, and storage medium
CN109754375B (en) Image processing method, system, computer device, storage medium and terminal
JP2006203841A (en) Device for processing image, camera, device for outputting image, method for processing image, color-correction processing program and readable recording medium
WO2023016037A1 (en) Video processing method and apparatus, electronic device, and storage medium
CN111491149B (en) Real-time image matting method, device, equipment and storage medium based on high-definition video
JP6977483B2 (en) Image processing equipment, image processing methods, image processing systems and programs
JP2005210495A (en) Image processing apparatus, method, and program
JP6753145B2 (en) Image processing equipment, image processing methods, image processing systems and programs
JP2006033383A (en) Image processing apparatus and method thereof
JP6915483B2 (en) Image processing equipment, image processing systems and programs
JP6915482B2 (en) Image processing equipment, image processing systems and programs
JP6939455B2 (en) Image processing equipment, image processing methods, image processing systems and programs
WO2023016040A1 (en) Video processing method and apparatus, electronic device, and storage medium
JP2014007449A (en) Illumination light color estimation device, illumination light color estimation method, and illumination light color estimation program
US8922580B2 (en) Method and system to modify a color lookup table
CN108132935B (en) Image classification method and image display method
CN112995632A (en) Image white balance processing method and device, electronic equipment and storage medium
JP2016025635A (en) Image processing system and method of the same
JP2021089654A (en) Image processing apparatus, image processing method, and program
JP2004252372A (en) Video display system
JP2021144574A (en) Image processing device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200204

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200331

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200428

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200625

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200803

R150 Certificate of patent or registration of utility model

Ref document number: 6753145

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees