JP5957270B2 - Image processing apparatus and image processing program - Google Patents

Image processing apparatus and image processing program Download PDF

Info

Publication number
JP5957270B2
JP5957270B2 JP2012089312A JP2012089312A JP5957270B2 JP 5957270 B2 JP5957270 B2 JP 5957270B2 JP 2012089312 A JP2012089312 A JP 2012089312A JP 2012089312 A JP2012089312 A JP 2012089312A JP 5957270 B2 JP5957270 B2 JP 5957270B2
Authority
JP
Japan
Prior art keywords
image
harmony
color
image processing
coordinates
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.)
Active
Application number
JP2012089312A
Other languages
Japanese (ja)
Other versions
JP2013219591A (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.)
Nikon Systems Inc
Original Assignee
Nikon Systems 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 Nikon Systems Inc filed Critical Nikon Systems Inc
Priority to JP2012089312A priority Critical patent/JP5957270B2/en
Publication of JP2013219591A publication Critical patent/JP2013219591A/en
Application granted granted Critical
Publication of JP5957270B2 publication Critical patent/JP5957270B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

本発明は、画像処理装置および画像処理プログラムに関する。   The present invention relates to an image processing apparatus and an image processing program.

従来、部屋や画像などにおける色彩分布と人間の色認識に基づく心理状態とは密接に関係しており、その関係を客観的に測定する様々な技術が開発されている。   Conventionally, a color distribution in a room or an image is closely related to a psychological state based on human color recognition, and various techniques for objectively measuring the relationship have been developed.

例えば、撮像された画像の色データを用いて画像に分布する色を測色学的に計測し、色度図上にプロットすることにより、複数の色のグループに分解して色彩数および鮮やかさを算出し視覚的快適度を算出する技術がある(特許文献1など参照)。   For example, the color data of the imaged image is used to measure the colors distributed in the image, and plotted on a chromaticity diagram to be decomposed into a plurality of color groups and the number of colors and vividness There is a technique for calculating the visual comfort level by calculating (see Patent Document 1, etc.).

特開2005−283184号公報JP 2005-283184 A

ところで、人間の色認識に基づいた心理状態は、画像全体の色彩分布というよりはその画像を代表する幾つかの色の調和によって決まると考えられる。しかしながら、従来技術のように画像全体の色度図上の分布に基づいて算出される視覚的快適度では、実際の人間の色認識に基づいた心理状態と必ずしも一致しない場合がある。   By the way, it is considered that the psychological state based on human color recognition is determined by the harmony of several colors representing the image rather than the color distribution of the entire image. However, the visual comfort level calculated based on the distribution of the entire image on the chromaticity diagram as in the prior art may not always match the psychological state based on actual human color recognition.

上記従来技術が有する問題に鑑み、本発明の目的は、人間の色認識を考慮しつつ画像の色彩調和を評価することができる技術を提供することにある。   SUMMARY OF THE INVENTION In view of the above-described problems of the prior art, an object of the present invention is to provide a technique capable of evaluating the color harmony of an image in consideration of human color recognition.

発明を例示する画像処理装置の一態様は、画像を複数の画像領域に分割する画像分割部と、画像領域が有する色の色空間上の座標と、座標に対応する色調および色名とを求める演算部と、複数の画像領域のうち評価対象の対象領域として複数抽出し、抽出した複数の対象領域の座標に基づいて画像における色彩調和を評価する調和評価部と、座標、色調および色名に基づいて画像領域と隣接する画像領域とを結合する領域結合部とを有する。 An aspect of the image processing apparatus illustrating the present invention includes an image dividing unit that divides an image into a plurality of image regions , coordinates in a color space of colors of the image regions , and a color tone and a color name corresponding to the coordinates. A calculation unit to be obtained, a plurality of extraction target areas among a plurality of image areas, a harmony evaluation section for evaluating color harmony in an image based on the coordinates of the extracted plurality of target areas, coordinates, color tone, and color name that having a an area coupling unit coupling the image area adjacent to the image area on the basis of.

また、調和評価部は、複数の画像領域の大きさに基づいて、複数の対象領域を抽出してもよい。   The harmony evaluation unit may extract a plurality of target regions based on the sizes of the plurality of image regions.

また、調和評価部は、複数の対象領域における2つの対象領域の組み合わせそれぞれの調和関係を座標の相対的な位置関係に基づいて求め、画像における色彩調和を評価してもよい。   The harmony evaluation unit may evaluate the color harmony in the image by obtaining the harmony relation of each of the combinations of the two target areas in the plurality of target areas based on the relative positional relationship of the coordinates.

本発明を例示する画像処理装置の別の態様は、画像を複数の画像領域に分割する画像分割部と画像領域が有する色の色空間上の座標を求める演算部と、複数の画像領域のうち評価対象の対象領域として複数抽出し、複数の対象領域における2つの対象領域の組み合わせにおける座標の相対的な位置関係から、組み合わせの調和関係を、2つの対象領域間の色が同じである同一調和、類似している類似調和、または対比している対比調和として求めて、複数の対象領域における同一調和、類似調和および対比調和それぞれの頻度を算出し、画像における色彩調和を評価する調和評価部とを有する Another aspect of the image processing apparatus exemplifying the present invention includes an image dividing unit that divides an image into a plurality of image regions, a calculation unit that obtains coordinates in a color space of colors of the image regions, and a plurality of image regions. Among the target areas to be evaluated, a plurality of target areas are extracted, and from the relative positional relationship of the coordinates in the combination of the two target areas in the plurality of target areas , the harmony relationship of the combination is the same with the same color between the two target areas. Harmony evaluation unit that evaluates the color harmony in the image by calculating the frequency of the same harmony, similar harmony and contrast harmony in multiple target areas, as harmony, similar harmony, or contrasting harmony And have .

また、調和評価部は、同一調和、類似調和および対比調和の頻度Ri、RsおよびRcを下記式を用いて算出してもよい。   The harmony evaluation unit may calculate the frequencies Ri, Rs, and Rc of the same harmony, similar harmony, and contrast harmony using the following equations.

Figure 0005957270
Figure 0005957270

なお、Nは対象領域の数を示し、Ni、NsおよびNcは複数の対象領域において同一調和、類似調和および対比調和とされた組み合わせの数を示す。 Note that N indicates the number of target regions, and Ni, Ns, and Nc indicate the number of combinations that are the same harmony, similar harmony, and contrast harmony in a plurality of target regions.

本発明を例示する画像処理プログラムの一態様は、画像を読み込む入力手順、画像を複数の画像領域に分割する画像分割手順、画像領域が有する色の色空間上の座標と、座標に対応する色調および色名とを求める演算手順、複数の画像領域のうち評価対象の対象領域として複数抽出し、抽出した複数の対象領域の座標に基づいて画像における色彩調和を評価する調和評価手順、座標、色調および色名に基づいて画像領域と隣接する画像領域とを結合する領域結合手順、をコンピュータに実行させる。
また、調和評価手順は、複数の画像領域の大きさに基づいて、複数の対象領域を抽出してもよい。
An aspect of the image processing program illustrating the present invention includes an input procedure for reading an image, an image division procedure for dividing an image into a plurality of image areas , coordinates in a color space of colors of the image areas, and a color tone corresponding to the coordinates. and calculation procedure for determining a color name, a plurality of extracted as the target area to be evaluated among the plurality of image regions, harmony evaluation procedure for evaluating the color harmony in the image based on the coordinates of the extracted plurality of target areas, coordinates, color And a region combining procedure for combining the image region and the adjacent image region based on the color name .
The harmony evaluation procedure may extract a plurality of target areas based on the sizes of the plurality of image areas.

本発明によれば、人間の色認識を考慮しつつ画像の色彩調和を評価することができる。   According to the present invention, it is possible to evaluate the color harmony of an image in consideration of human color recognition.

本発明の一の実施形態に係るコンピュータの構成を示すブロック図1 is a block diagram showing a configuration of a computer according to an embodiment of the present invention. 一の実施形態に係るコンピュータによる画像処理を示すフローチャートThe flowchart which shows the image processing by the computer which concerns on one Embodiment Moon−Spencerモデルの一例を示す図The figure which shows an example of a Moon-Spencer model

図1は、本発明の一の実施形態に係る画像処理装置として動作するコンピュータ100の構成を示す。   FIG. 1 shows a configuration of a computer 100 that operates as an image processing apparatus according to an embodiment of the present invention.

本実施形態のコンピュータ100は、図1(a)に示すように、CPU10、記憶部20、入出力インタフェース(入出力I/F)30、バス40から構成され、CPU10、記憶部20、入出力I/F30は、バス40を介して情報伝達可能に接続される。また、コンピュータ100には、入出力I/F30を介して、画像処理の途中経過や処理結果を表示する出力装置50、ユーザからの入力を受け付ける入力装置60がそれぞれ接続される。出力装置50には、一般的な液晶モニタやプリンタなどを、入力装置60には、キーボードやマウスなどをそれぞれ適宜選択して使用することができる。   As shown in FIG. 1A, the computer 100 according to this embodiment includes a CPU 10, a storage unit 20, an input / output interface (input / output I / F) 30, and a bus 40. The CPU 10, the storage unit 20, and the input / output The I / F 30 is connected via the bus 40 so that information can be transmitted. The computer 100 is connected to an output device 50 for displaying the progress of image processing and processing results, and an input device 60 for receiving input from the user, via the input / output I / F 30. As the output device 50, a general liquid crystal monitor, a printer, or the like can be appropriately selected and used as the input device 60, such as a keyboard or a mouse.

CPU10は、記憶部20に記憶されている制御プログラムを実行し、コンピュータ100の各部を制御するマイクロプロセッサである。また、CPU10は、入力装置60を介して受け付けたユーザからの指示に基づいて、記憶部20に記憶されている画像処理プログラムを実行することにより、図1(b)に示すように、画像分割部11、演算部12、領域結合部13、調和評価部14として動作する。CPU10は、画像の処理結果を出力装置50に表示する。なお、画像分割部11、演算部12、領域結合部13、調和評価部14の動作については後ほど説明する。   The CPU 10 is a microprocessor that executes a control program stored in the storage unit 20 and controls each unit of the computer 100. Further, the CPU 10 executes the image processing program stored in the storage unit 20 on the basis of the instruction from the user received via the input device 60, thereby dividing the image as shown in FIG. The unit 11, the calculation unit 12, the region combination unit 13, and the harmony evaluation unit 14 operate. The CPU 10 displays the image processing result on the output device 50. The operations of the image dividing unit 11, the calculating unit 12, the region combining unit 13, and the harmony evaluation unit 14 will be described later.

記憶部20は、制御プログラムおよび画像処理プログラムとともに、処理対象の画像および後述する日本工業規格(JIS)の色に関するデータなどを記憶する。記憶部20に記憶されるプログラムや各種データは、バス40を介して、CPU10から適宜参照することができる。記憶部20には、一般的なハードディスク装置、光磁気ディスク装置などの記憶装置を選択して用いることができる。   The storage unit 20 stores an image to be processed and data relating to Japanese Industrial Standard (JIS) color, which will be described later, together with the control program and the image processing program. Programs and various data stored in the storage unit 20 can be referred to as appropriate from the CPU 10 via the bus 40. A storage device such as a general hard disk device or magneto-optical disk device can be selected and used for the storage unit 20.

次に、コンピュータ100による画像処理について、図2のフローチャートを参照しつつ説明する。なお、コンピュータ100が処理対象とする画像は、記憶部20に予め記憶されているとする。また、処理対象の画像は、静止画像であっても動画像のフレームであってもよい。   Next, image processing by the computer 100 will be described with reference to the flowchart of FIG. It is assumed that the image to be processed by the computer 100 is stored in the storage unit 20 in advance. The processing target image may be a still image or a moving image frame.

ユーザが、入力装置60を用いて、画像処理プログラムのコマンドを入力、またはそのプログラムのアイコンをダブルクリックすることにより、プログラムの起動命令を出す。CPU10は、その命令を入出力I/F30を通じて受け付け、記憶部20に記憶されている画像処理プログラムを実行する。CPU10は、ステップS101からの処理を開始する。   A user inputs an image processing program command using the input device 60 or double-clicks an icon of the program to issue a program start command. The CPU 10 receives the command through the input / output I / F 30 and executes the image processing program stored in the storage unit 20. CPU10 starts the process from step S101.

ステップS101:CPU10は、記憶部20に記憶されている処理対象の画像を読み込む。   Step S101: The CPU 10 reads an image to be processed stored in the storage unit 20.

ステップS102:CPU10の画像分割部11は、読み込んだ画像を公知の手法を用いて複数の画像領域に分割する。本実施形態では、公知の手法として、分割・統合(Split & Marge)法およびウォーターシェッド法を組み合わせて用い、画像分割部11は、画像のエッジや彩度などの特徴量に基づいて画像を分割するものとする。CPU10は、画像分割部11による分割結果を出力装置50に出力し表示させる。   Step S102: The image dividing unit 11 of the CPU 10 divides the read image into a plurality of image areas using a known method. In this embodiment, as a known method, a split and merge (Split & Marge) method and a watershed method are used in combination, and the image dividing unit 11 divides an image based on feature amounts such as image edge and saturation. It shall be. The CPU 10 outputs and displays the division result by the image dividing unit 11 on the output device 50.

ステップS103:CPU10の演算部12は、画像分割部11により分割された画像領域ごとに、マンセル表色系の座標である色彩値を求める。そのために、演算部12は、各画像領域における画素値の平均値をRGBの色成分ごとに求め取得する。演算部12は、例えば、次式(1)を用いて、上記RGBの平均値からXYZ表色系の三刺激値に変換する。   Step S103: The calculation unit 12 of the CPU 10 obtains a color value that is the coordinates of the Munsell color system for each image region divided by the image division unit 11. For this purpose, the calculation unit 12 obtains and acquires the average value of the pixel values in each image region for each of the RGB color components. For example, the calculation unit 12 converts the average value of RGB into tristimulus values of the XYZ color system using the following equation (1).

Figure 0005957270
Figure 0005957270

そして、演算部12は、それらのXYZ表色系の三刺激値をさらに次式(2)に適用してxyY表色系に変換し、記憶部20に記憶されたJISZ 8721「色の表示方法―三属性による表示」の付表1、2のデータに基づいて、各画像領域におけるマンセル表色系の色彩値(色相H、明度C、彩度V)を取得する。
x=X/(X+Y+Z) ・・・(2)
y=Y/(X+Y+Z)
ステップS104:演算部12は、上記マンセル表色系の色彩値と記憶部20に記憶されたJISZ 8102「物体色の色名」の付図1〜25のデータとに基づいて、各画像領域の系統色名を取得する。
Then, the calculation unit 12 further converts these XYZ color system tristimulus values to the following equation (2) to convert them into the xyY color system, and stores the JISZ 8721 “color display method” stored in the storage unit 20. The Munsell color system color values (hue H, lightness C, and saturation V) in each image area are acquired based on the data in Appendices 1 and 2 of “Display with three attributes”.
x = X / (X + Y + Z) (2)
y = Y / (X + Y + Z)
Step S104: Based on the color values of the Munsell color system and the data of FIGS. 1 to 25 of JISZ 8102 “Color name of object color” stored in the storage unit 20, the calculation unit 12 sets the system of each image region. Get the color name.

ステップS105:CPU10の領域結合部13は、画像分割部11により分割された画像領域を、色彩値および系統色名に基づいて画像領域を結合する。つまり、たとえ単色の被写体であっても、被写体自身の形状や光の具合により色が微妙に変化するために、人間の色認識では単色の被写体と認識できるとしても、ステップS102の画像分割部11は、異なる色と判定し複数の画像領域に分割してしまう。そのために、領域結合部13は、細分化された画像領域を人間の色認識と合わせるために再結合する。   Step S105: The region combining unit 13 of the CPU 10 combines the image regions divided by the image dividing unit 11 based on the color value and the system color name. In other words, even if the subject is a single color, the color slightly changes depending on the shape of the subject itself and the condition of the light. Are determined to be different colors and divided into a plurality of image areas. For this purpose, the region combination unit 13 recombines the segmented image regions in order to match human color recognition.

そこで、領域結合部13が、色彩値および系統色名に基づいて、どのように画像領域を結合するかについて簡単に説明する。系統色名は、色相H、明度C、彩度Vを形容する修飾語(以下、色調(トーン)と称す)と基本色名とからなる。例えば、色が海老茶(マンセル値は8R3/4.5)の場合、系統色名はdk−yR(暗い黄みの赤)と表され、dkが色調でyRが基本色名である。そして、本実施形態の領域結合部13は、色彩値、色調および基本色名に基づいて、隣接する画像領域間における色の類似の度合いを示す結合度を判定する。すなわち、隣接する画像領域iと画像領域jとの色調Tおよび基本色名Nが、Ti=Tj且つNi=Nj(ただし、無彩色の場合はTi=Tjのみ)の場合、領域結合部13は、画像領域iと画像領域jとの系統色名が同じであることから、「強い結合度」を有すると判定する。なお、Ti、NiおよびTj、Njは、画像領域iおよび画像領域jの色調および基本色名を示す。   Therefore, how the region combining unit 13 combines image regions based on the color value and the system color name will be briefly described. The system color name includes a modifier that describes hue H, lightness C, and saturation V (hereinafter referred to as “tone”) and a basic color name. For example, when the color is shrimp tea (Munsell value is 8R3 / 4.5), the system color name is represented as dk-yR (dark yellow red), dk is the color tone, and yR is the basic color name. Then, the area combination unit 13 according to the present embodiment determines the degree of combination indicating the degree of color similarity between adjacent image areas based on the color value, the color tone, and the basic color name. That is, when the color tone T and basic color name N between the adjacent image area i and image area j are Ti = Tj and Ni = Nj (however, only Ti = Tj in the case of an achromatic color), the area combination unit 13 Since the system color names of the image area i and the image area j are the same, it is determined that the image area i has the “strong coupling degree”. Ti, Ni, Tj, and Nj indicate the color tone and basic color name of the image area i and the image area j.

一方、領域結合部13は、画像領域iと画像領域jとにおける系統色名が有彩色で、Ni=Nj且つ色彩値が次式(3)の条件を満たす場合、画像領域iと画像領域jとは「中位の結合度」を有すると判定する。
Vi−dV<Vj<Vi+dV 且つ Ci−dC<Cj<Ci+dC ・・・(3)
あるいは、領域結合部13は、画像領域iと画像領域jとにおける系統色名が有彩色で、Ti=Tj且つ色彩値が次式(4)の条件を満たす場合、画像領域iと画像領域jとは「中位の結合度」を有すると判定する。
Hi−dH<Hj<Hi−dH ・・・(4)
なお、dV、dC、dHそれぞれは、本実施形態において、例えば、0.5,0.5,5.0にそれぞれ設定されるが、被写体の色分布などに応じて適宜設定されるのが好ましい。
On the other hand, when the system color name in the image area i and the image area j is a chromatic color, Ni = Nj, and the color value satisfies the condition of the following expression (3), the area combination unit 13 performs image area i and image area j. Is determined to have “medium degree of coupling”.
Vi-dV <Vj <Vi + dV and Ci-dC <Cj <Ci + dC (3)
Alternatively, when the system color name in the image area i and the image area j is a chromatic color, Ti = Tj, and the color value satisfies the condition of the following expression (4), the area combination unit 13 performs image area i and image area j. Is determined to have “medium degree of coupling”.
Hi-dH <Hj <Hi-dH (4)
In this embodiment, dV, dC, and dH are set to 0.5, 0.5, and 5.0, respectively, but are preferably set as appropriate according to the color distribution of the subject. .

そして、画像領域iと画像領域jとが「強い結合度」または「中位の結合度」のいずれにも該当しない場合、領域結合部13は、画像領域iと画像領域jとの色は異なるとして「弱い結合度」と判定する。   When the image area i and the image area j do not correspond to either “strong coupling degree” or “medium coupling degree”, the area coupling unit 13 has different colors between the image area i and the image area j. As “weak coupling degree”.

本実施形態の領域結合部13は、全ての画像領域について隣接する画像領域と「強い結合度」、「中位の結合度」または「弱い結合度」のいずれかを判定する。本実施形態の領域結合部13は、「強い結合度」または「中位の結合度」と判定された画像領域同士を結合する。これにより、同系色の画像領域をまとめることができる。   The region combining unit 13 according to the present embodiment determines any of “strong coupling degree”, “medium coupling degree”, and “weak coupling degree” with adjacent image areas for all image areas. The region combining unit 13 of the present embodiment combines image regions determined as “strong coupling degree” or “medium coupling degree”. Thereby, image areas of similar colors can be collected.

ステップS106:CPU10の調和評価部14は、複数の画像領域のうち代表する色を有する画像領域(評価対象の対象領域)として、面積が大きい上位3つの画像領域を抽出する。調和評価部14は、抽出した各対象領域の色彩値として、ステップS105で結合された画像領域のうち最大の面積を有した画像領域の色彩値とする。ただし、調和評価部14は、各対象領域の色彩値として、ステップS103と同様に、その対象領域の画素値を用いて算出し直してもよい。   Step S106: The harmony evaluation unit 14 of the CPU 10 extracts the top three image areas having a large area as image areas having a representative color among the plurality of image areas (target areas to be evaluated). The harmony evaluation unit 14 sets the color value of the image area having the largest area among the image areas combined in step S105 as the extracted color value of each target area. However, the harmony evaluation unit 14 may recalculate the color value of each target area using the pixel value of the target area, similarly to step S103.

ステップS107:調和評価部14は、抽出した3つの対象領域のうち2つの対象領域の組み合わせそれぞれについて、公知の色彩調和の評価手法を適用して調和関係を求め、処理対象の画像の色彩調和を評価する。   Step S107: The harmony evaluation unit 14 applies a known color harmony evaluation method for each combination of two target areas among the extracted three target areas to obtain a harmony relationship, and performs color harmony of the image to be processed. evaluate.

具体的に、調和評価部14は、各組み合わせの2つの対象領域における色彩値の差分(相対的な位置関係)を、公知の色彩調和の評価手法である、例えば、Moon−Spencerモデルに適用して、2つの対象領域間の色彩の調和関係を求める。図3は、Moon−Spencerモデルにおける色彩の調和関係の一例を示す。図3(a)は、2つの対象領域の色のうち一方の色を基準にした場合で色相差に応じて、同一調和、第一不明瞭、類似調和、第二不明瞭および対比調和の範囲の分布を示す。図3(b)は、2つの対象領域の色の彩度差および明度差に応じて、同一調和、第一不明瞭、類似調和、第二不明瞭および対比調和の範囲の分布を示す。なお、同一調和は2つの色が同じで調和し、類似調和は2つの色が類似して調和し、対比調和は2つの色が対比して調和していることを示す。一方、第一不明瞭および第二不明瞭は調和していないことを示す。   Specifically, the harmony evaluation unit 14 applies the difference (relative positional relationship) between the color values in the two target regions of each combination to a known color harmony evaluation method, for example, the Moon-Spencer model. Thus, the color harmony relationship between the two target areas is obtained. FIG. 3 shows an example of the color harmony relationship in the Moon-Spencer model. FIG. 3A shows the range of the same harmony, first unclearness, similar harmony, second unclearness and contrast harmony according to the hue difference when one color of two target regions is used as a reference. The distribution of. FIG. 3B shows the distribution of the same harmony, first unclearness, similar harmony, second unclearness and contrast harmony according to the color saturation difference and lightness difference of the two target regions. The same harmony indicates that two colors are the same and harmonize, the similar harmony indicates that the two colors are similar and harmonized, and the contrast harmony indicates that the two colors are contrasted and harmonized. On the other hand, the first ambiguity and the second ambiguity indicate that they are not in harmony.

本実施形態の調和評価部14は、3つの対象領域における各組み合わせの調和関係を、図3(a)の色相差に基づく場合と図3(b)の彩度差および明度差に基づく場合とについてそれぞれ求める。調和評価部14は、同一調和、類似調和または対比調和が求められた回数をNi、Ns、Ncとし、次式(5)を用いて同一調和、類似調和、対比調和の頻度Ri、Rs、Rcを算出する。   The harmony evaluation unit 14 of the present embodiment uses the case where the harmony relationship of each combination in the three target regions is based on the hue difference of FIG. 3A and the case of the saturation difference and brightness difference of FIG. Ask for each. The harmony evaluation unit 14 sets Ni, Ns, and Nc as the number of times the same harmony, similar harmony, or contrast harmony is obtained, and uses the following equation (5) to determine the frequencies Ri, Rs, Rc of the same harmony, similar harmony, and contrast harmony. Is calculated.

Figure 0005957270
Figure 0005957270

ここで、Nは対象領域の数を示し、本実施形態ではN=3である。 Here, N indicates the number of target regions, and N = 3 in the present embodiment.

そして、調和評価部14は、頻度Ri、RsおよびRcの値に基づいて、例えば、一番大きな頻度または50%以上の頻度の調和に基づいて、画像の色彩調和を評価する。一例として、調和評価部14は、類似調和の場合、類似する色で調和していることから、「画像は自然な調和」と評価したり、対比調和の場合、対比する色で調和することは自然界では少ないことから、「画像は人工的な調和」と評価したりする。その後、CPU10は一連の処理を終了する。   Then, the harmony evaluation unit 14 evaluates the color harmony of the image based on the values of the frequencies Ri, Rs, and Rc, for example, based on the highest frequency or the harmony of 50% or more. As an example, since the harmony evaluation unit 14 is in harmony with similar colors in the case of similar harmony, it is evaluated that “the image is natural harmony”, or in the case of contrast harmony, the harmony with the contrasting colors is not Because it is rare in nature, it is evaluated that “images are artificially harmonized”. Thereafter, the CPU 10 ends a series of processes.

このように、本実施形態では、画像を複数の画像領域に分割した後、その画像を代表する色を有する画像領域を、画像領域の大きさに基づいて評価対象の対象領域として抽出し、抽出された対象領域における色彩の調和関係に関する頻度を求めることにより、人間の色認識を考慮しつつ画像の色彩調和を評価することができる。   As described above, in this embodiment, after an image is divided into a plurality of image areas, an image area having a color representing the image is extracted as a target area to be evaluated based on the size of the image area, and extracted. By obtaining the frequency related to the color harmony relationship in the target area, it is possible to evaluate the color harmony of the image while considering human color recognition.

また、分割された画像領域を人間の色認識に合わせて画像領域を再結合することにより、より人間の色認識に近い画像の色彩調和の評価が可能となる。
《実施形態の補足事項》
・上記実施形態では、処理対象の画像が記憶部20に予め記憶されたが、本発明はこれに限定されず、例えば、入出力I/F30を介して、コンピュータ100とデジタルカメラやデジタルビデオカメラなどとをUSB(Universal Serial Bus)ケーブルなどで接続して、静止画像や動画像を直接読み込んでもよい。
In addition, by recombining the divided image regions in accordance with human color recognition, it is possible to evaluate the color harmony of the image closer to human color recognition.
<< Additional items of embodiment >>
In the above embodiment, the image to be processed is stored in the storage unit 20 in advance, but the present invention is not limited to this, and for example, the computer 100 and the digital camera or digital video camera via the input / output I / F 30 Or the like may be connected via a USB (Universal Serial Bus) cable or the like to directly read still images or moving images.

・上記実施形態では、コンピュータ100を画像処理装置として動作させたが、本発明はこれに限定されず、例えば、デジタルカメラなどを画像処理装置として動作させ、被写体の色彩調和を評価しながら画像を撮像してもよい。   In the above embodiment, the computer 100 is operated as an image processing apparatus. However, the present invention is not limited to this, and for example, a digital camera or the like is operated as an image processing apparatus to evaluate an image while evaluating the color harmony of a subject. You may image.

・上記実施形態では、画像分割部11は、分割・統合法およびウォーターシェッド法を組み合わせて画像分割を行ったが、本発明はこれに限定されず、他の手法を用いて画像分割してもよい。   In the above embodiment, the image dividing unit 11 performs image division by combining the division / integration method and the watershed method. However, the present invention is not limited to this, and the image may be divided using other methods. Good.

・上記実施形態では、演算部12は、各画像領域の色彩値および系統色名を求めるにあたり、JIS規格のデータを用いたが、本発明はこれに限定されず、他のデータを用いてもよい。   In the above embodiment, the calculation unit 12 uses JIS standard data to obtain the color value and the system color name of each image area. However, the present invention is not limited to this, and other data may be used. Good.

・上記実施形態では、隣接する画像領域間の結合の度合いを、「強い結合度」、「中位の結合度」、「弱い結合度」の3つに判定したが、本発明はこれに限定されない。例えば、「強い結合度」は、「中位の結合度」の条件である式(3)および式(4)において、dV、dC、dHの値が0の場合に相当することから、例えば、「強い結合度」と「中位の結合度」とは1つの結合度として扱ってもよい。   In the above embodiment, the degree of coupling between adjacent image regions is determined to be “strong coupling degree”, “medium coupling degree”, and “weak coupling degree”, but the present invention is not limited to this. Not. For example, “strong bond” corresponds to the case where the values of dV, dC, and dH are 0 in the expressions (3) and (4), which are the conditions for “medium bond,” The “strong coupling degree” and the “medium coupling degree” may be treated as one coupling degree.

・上記実施形態では、対象領域として、面積の大きさが上位3つの画像領域を抽出したが、本発明はこれ限定されず、4つ以上の画像領域を対象領域として抽出してもよい。   In the above embodiment, the top three image areas having the largest size are extracted as target areas. However, the present invention is not limited to this, and four or more image areas may be extracted as target areas.

また、抽出した対象領域のうち、少なくとも2つの対象領域の色が同一の場合には、それらを1つの対象領域として結合し、抽出された対象領域の色が互いに異なるようにすることが好ましい。   In addition, when the colors of at least two target areas among the extracted target areas are the same, it is preferable to combine them as one target area so that the colors of the extracted target areas are different from each other.

・上記実施形態では、調和評価部14は、Moon−Spencerモデルを適用して、対象領域における色彩調和を評価したが、本発明はこれに限定されず、他の公知の色彩調和の評価手法を用いてもよい。   In the above embodiment, the harmony evaluation unit 14 applied the Moon-Spencer model to evaluate the color harmony in the target area, but the present invention is not limited to this, and other known color harmony evaluation methods are used. It may be used.

以上の詳細な説明により、実施形態の特徴点および利点は明らかになるであろう。これは、特許請求の範囲が、その精神および権利範囲を逸脱しない範囲で前述のような実施形態の特徴点および利点にまで及ぶことを意図する。また、当該技術分野において通常の知識を有する者であれば、あらゆる改良および変更に容易に想到できるはずであり、発明性を有する実施形態の範囲を前述したものに限定する意図はなく、実施形態に開示された範囲に含まれる適当な改良物および均等物によることも可能である。   From the above detailed description, features and advantages of the embodiments will become apparent. It is intended that the scope of the claims extend to the features and advantages of the embodiments as described above without departing from the spirit and scope of the right. Further, any person having ordinary knowledge in the technical field should be able to easily come up with any improvements and modifications, and there is no intention to limit the scope of the embodiments having the invention to those described above. It is also possible to use appropriate improvements and equivalents within the scope disclosed in.

10…CPU、20…記憶部、30…入出力I/F、40…バス、50…出力装置、60…入力装置、100…コンピュータ DESCRIPTION OF SYMBOLS 10 ... CPU, 20 ... Memory | storage part, 30 ... Input-output I / F, 40 ... Bus, 50 ... Output device, 60 ... Input device, 100 ... Computer

Claims (7)

画像を複数の画像領域に分割する画像分割部と、
前記画像領域が有する色の色空間上の座標と、前記座標に対応する色調および色名とを求める演算部と、
前記複数の画像領域のうち評価対象の対象領域として複数抽出し、抽出した複数の前記対象領域の前記座標に基づいて前記画像における色彩調和を評価する調和評価部と、
前記座標、前記色調および前記色名に基づいて前記画像領域と隣接する画像領域とを結合する領域結合部とを有する画像処理装置。
An image dividing unit for dividing the image into a plurality of image regions;
A calculation unit for obtaining coordinates on the color space of the color of the image area, and a color tone and a color name corresponding to the coordinates ;
A harmony evaluation unit that extracts a plurality of target areas to be evaluated from the plurality of image areas, and evaluates color harmony in the image based on the coordinates of the extracted plurality of target areas;
The coordinates, the image processing apparatus to have a an area coupling unit for coupling the tone and image area adjacent to the image area on the basis of the color name.
請求項1に記載の画像処理装置において、
前記調和評価部は、前記複数の画像領域の大きさに基づいて、前記複数の対象領域を抽出す画像処理装置。
The image processing apparatus according to claim 1.
The harmonic evaluation unit, based on a size of the plurality of image areas, the image processing apparatus that to extract the plurality of target regions.
請求項1または請求項2に記載の画像処理装置において、
調和評価部は、前記複数の対象領域における2つの前記対象領域の組み合わせそれぞれの調和関係を前記座標の相対的な位置関係に基づいて求め、前記画像における色彩調和を評価する画像処理装置。
The image processing apparatus according to claim 1 or 2,
Before SL harmony evaluation unit is determined based on the harmonic relationships of the combination each of the two of the target region in the plurality of target regions on the relative positional relationship of the coordinates, the image processing apparatus for evaluating color harmony in the image.
画像を複数の画像領域に分割する画像分割部と
前記画像領域が有する色の色空間上の座標を求める演算部と、
前記複数の画像領域のうち評価対象の対象領域として複数抽出し、前記複数の対象領域における2つの前記対象領域の組み合わせにおける前記座標の相対的な位置関係から、前記組み合わせの調和関係を、前記2つの対象領域間の色が同じである同一調和、類似している類似調和、または対比している対比調和として求めて、前記複数の対象領域における前記同一調和、前記類似調和および前記対比調和それぞれの頻度を算出し、前記画像における色彩調和を評価する調和評価部とを有する画像処理装置。
An image dividing unit for dividing the image into a plurality of image regions ;
A calculation unit for obtaining coordinates on a color space of the color of the image area;
A plurality of the target regions to be evaluated are extracted from the plurality of image regions, and the harmonic relationship of the combination is determined from the relative positional relationship of the coordinates in the combination of the two target regions in the plurality of target regions. Obtaining the same harmony, similar similarity, or contrasting contrast in which the colors between the two target areas are the same, and calculating the same harmony, the similar harmony, and the contrasting harmony in the plurality of target areas, respectively. calculating a frequency, an image processing apparatus that have a harmony evaluation unit for evaluating the color harmony in the image.
請求項4に記載の画像処理装置において、
前記調和評価部は、前記同一調和、前記類似調和および前記対比調和の頻度Ri、RsおよびRcを下記式を用いて算出する画像処理装置。
Figure 0005957270
なお、Nは前記対象領域の数を示し、Ni、NsおよびNcは前記複数の対象領域において前記同一調和、前記類似調和および前記対比調和とされた前記組み合わせの数を示す。
The image processing apparatus according to claim 4.
The said harmony evaluation part is an image processing apparatus which calculates the frequency Ri, Rs, and Rc of the said same harmony, the said similar harmony, and the said contrast harmony using a following formula.
Figure 0005957270
Note that N indicates the number of the target areas, and Ni, Ns, and Nc indicate the number of the combinations that are the same harmony, the similar harmony, and the contrast harmony in the plurality of target areas.
画像を読み込む入力手順
前記画像を複数の画像領域に分割する画像分割手順、
前記画像領域が有する色の色空間上の座標と、前記座標に対応する色調および色名とを求める演算手順、
前記複数の画像領域のうち評価対象の対象領域として複数抽出し、抽出した複数の前記対象領域の前記座標に基づいて前記画像における色彩調和を評価する調和評価手順、
前記座標、前記色調および前記色名に基づいて前記画像領域と隣接する画像領域とを結合する領域結合手順、
をコンピュータに実行させる画像処理プログラム
Input procedure for loading images ,
An image division procedure for dividing the image into a plurality of image regions;
A calculation procedure for obtaining coordinates on a color space of the color of the image area, and a color tone and a color name corresponding to the coordinates;
A harmony evaluation procedure for extracting a plurality of target areas to be evaluated from the plurality of image areas, and evaluating color harmony in the image based on the coordinates of the extracted plurality of target areas,
A region combining procedure for combining the image region and an adjacent image region based on the coordinates, the color tone, and the color name;
An image processing program for causing a computer to execute .
請求項6に記載の画像処理プログラムにおいて
前記調和評価手順は、前記複数の画像領域の大きさに基づいて、前記複数の対象領域を抽出する画像処理プログラム。
The image processing program according to claim 6 ,
The harmony evaluation procedure is an image processing program that extracts the plurality of target regions based on the sizes of the plurality of image regions .
JP2012089312A 2012-04-10 2012-04-10 Image processing apparatus and image processing program Active JP5957270B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012089312A JP5957270B2 (en) 2012-04-10 2012-04-10 Image processing apparatus and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012089312A JP5957270B2 (en) 2012-04-10 2012-04-10 Image processing apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2013219591A JP2013219591A (en) 2013-10-24
JP5957270B2 true JP5957270B2 (en) 2016-08-10

Family

ID=49591232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012089312A Active JP5957270B2 (en) 2012-04-10 2012-04-10 Image processing apparatus and image processing program

Country Status (1)

Country Link
JP (1) JP5957270B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3130589B2 (en) * 1991-10-04 2001-01-31 日本電気株式会社 Color arrangement support method and apparatus
JP2002314825A (en) * 2001-04-09 2002-10-25 Sharp Corp Color adjustment device and method therefor
JP4295070B2 (en) * 2003-11-28 2009-07-15 京セラミタ株式会社 Design support system
US7536048B2 (en) * 2004-01-15 2009-05-19 Xerox Corporation Method and apparatus for automatically determining image foreground color
JP2012151572A (en) * 2011-01-17 2012-08-09 Casio Comput Co Ltd Image output device, image output method, and program

Also Published As

Publication number Publication date
JP2013219591A (en) 2013-10-24

Similar Documents

Publication Publication Date Title
US10068337B2 (en) Device and method for diagnosing thermal images
US20150009336A1 (en) Thermal imaging device and normative photographing method for thermal image
US20150042817A1 (en) Thermal imaging device and thermal image photographing method
JP2006305184A (en) Skin condition analyzing method, skin condition analyzer, skin condition analyzing program, and recording media where that program is recorded
US20170079599A1 (en) Moisture feeling evaluation device, moisture feeling evaluation method, and moisture feeling evaluation program
US8605973B2 (en) Graph cuts-based interactive segmentation of teeth in 3-D CT volumetric data
JP2014213065A (en) Skin dullness evaluation device, skin dullness evaluation method, and skin dullness evaluation program
JP2012085292A (en) Method and device for processing white balance of image
JP6485146B2 (en) Color conversion information generation apparatus and program
WO2018090450A1 (en) Uniformity measurement method and system for display screen
JP5903315B2 (en) Image processing apparatus and image processing program
US11798227B2 (en) Image processing apparatus and image processing method
JP2008271303A (en) Color processing method and apparatus
JP4146506B1 (en) Mosaic image generating apparatus, method and program
Kang et al. Dental plaque quantification using mean-shift-based image segmentation
JP5957270B2 (en) Image processing apparatus and image processing program
US20180116582A1 (en) Elasticity evaluation apparatus, elasticity evaluation method, and elasticity evaluation program
JP2009050035A (en) Image processing method, image processing system, and image processing program
JP2009069213A (en) Map dating determining device, map dating determination method and program
JP2007243987A (en) Image processing method, image processing system, and image processing program
JP4148114B2 (en) Image processing apparatus and processing method
JP7119974B2 (en) Medical image display device and medical image display system
CA2905061A1 (en) Disease diagnostic apparatus, image processing method in the same apparatus, and medium storing program associated with the same method
US20150023592A1 (en) Lifeform image analysis system, lifeform image analysis method, and lifeform image analysis program
JP6564660B2 (en) Calculation apparatus, calculation method, calculation system, and program

Legal Events

Date Code Title Description
A625 Written request for application examination (by other person)

Free format text: JAPANESE INTERMEDIATE CODE: A625

Effective date: 20150409

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160315

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160428

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160620

R150 Certificate of patent or registration of utility model

Ref document number: 5957270

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250