JP2015008449A - Image adjustment device - Google Patents

Image adjustment device Download PDF

Info

Publication number
JP2015008449A
JP2015008449A JP2013240962A JP2013240962A JP2015008449A JP 2015008449 A JP2015008449 A JP 2015008449A JP 2013240962 A JP2013240962 A JP 2013240962A JP 2013240962 A JP2013240962 A JP 2013240962A JP 2015008449 A JP2015008449 A JP 2015008449A
Authority
JP
Japan
Prior art keywords
color
image
reference image
target area
surrounding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2013240962A
Other languages
Japanese (ja)
Other versions
JP6287102B2 (en
Inventor
山合 敏文
Toshifumi Yamaai
敏文 山合
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2013240962A priority Critical patent/JP6287102B2/en
Publication of JP2015008449A publication Critical patent/JP2015008449A/en
Application granted granted Critical
Publication of JP6287102B2 publication Critical patent/JP6287102B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image adjustment device which allows for enhancement in the color balance of an image as a whole, while suppressing the influence of the contrast effect of color.SOLUTION: An image adjustment device includes an ambient color extraction unit 20 for extracting a representative color of the surrounding area of a target area selected in an input image as an ambient color, a reference image extraction unit 23 for extracting at least one reference image from a database 22, storing therein a plurality of reference images associated previously with a target area and an ambient color, on such extraction conditions that the reference image is associated with an ambient color similar to the ambient color extracted by the ambient color extraction unit 20, a reference image selection unit 24 for selecting one reference image among the reference images extracted by the reference image extraction unit 23, and a color tone changing unit 25 for changing the color tone in the target area of an input image to the color tone in the target area of a reference image selected by the reference image selection unit 24 for each color component.

Description

本発明は、画像の中で選択された対象領域の色調を調整する画像調整装置に関する。   The present invention relates to an image adjustment device that adjusts the color tone of a target area selected in an image.

従来、この種の画像調整装置としては、所望とする色階調を有する目標画像の選択を受け付けると共に、表示装置に表示された表示画像における領域の指定を受け付け、指定された領域に対して、所望とする領域の色階調を目標画像の色階調に変更するものが知られている(例えば、特許文献1参照)。   Conventionally, as this type of image adjustment apparatus, while accepting selection of a target image having a desired color gradation, it accepts designation of a region in a display image displayed on a display device, and for a designated region, A device that changes the color gradation of a desired region to the color gradation of a target image is known (for example, see Patent Document 1).

この構成により、従来の画像調整装置は、人物の顔などの画像中の特定の領域を所望の色および階調に変更することができるようにしていた。   With this configuration, the conventional image adjustment apparatus can change a specific area in an image such as a human face to a desired color and gradation.

しかしながら、このような従来の画像調整装置は、表示画像に表された人物と同一人物の画像を目標画像として検索するため、例えば、目標画像における背景の色調が表示画像のものと異なる場合には、画像全体としての色のバランスを悪くしてしまうことがあるといった課題があった。   However, since such a conventional image adjustment device searches for an image of the same person as the person represented in the display image as the target image, for example, when the background color tone in the target image is different from that of the display image There is a problem that the color balance of the entire image may be deteriorated.

また、従来の画像調整装置は、いわゆる色の対比効果の影響で、周囲の色の違いによって、同じ値の成分からなる色であっても異なる色に見られてしまったり、視覚的に期待通りの色とならなかったりすることがあるといった課題があった。   In addition, the conventional image adjustment device is affected by the so-called color contrast effect, and even if it is a color composed of components of the same value due to the difference in surrounding colors, it may be seen in different colors or as expected visually. There was a problem that it might not be the color of.

本発明は、上述したような課題を解決するためになされたもので、画像全体としての色のバランスを向上させるとともに、色の対比効果の影響を抑制することができる画像調整装置を提供することを目的とする。   The present invention has been made in order to solve the above-described problems, and provides an image adjustment apparatus capable of improving the color balance of the entire image and suppressing the influence of the color contrast effect. With the goal.

上述した課題を解決し、目的を達成するために、本発明の画像調整装置は、入力画像の中で選択された対象領域の色調を変更する画像調整装置であって、前記対象領域の周囲領域の代表色を周囲色として抽出する周囲色抽出部と、前記対象領域を設定した又は前記対象領域と前記周囲色とを対応付けした、複数の参照画像が格納されたデータベースと、前記データベースから少なくとも1つの参照画像の選択を受け付ける参照画像選択部と、前記入力画像の対象領域における色調を前記参照画像選択部によって選択された参照画像の対象領域における色調に色成分毎に変更する色調変更部と、を備え、前記参照画像選択部は、前記データベースに格納された前記対象領域と前記周囲色とを対応付けした前記複数の参照画像から、前記周囲色に類似した周囲色が対応付けられていることを条件として、少なくとも1つの参照画像を一次選択したうえで、その一次選択された参照画像の中から1つの参照画像を選択する、構成を有している。   In order to solve the above-described problems and achieve the object, an image adjustment apparatus of the present invention is an image adjustment apparatus that changes the color tone of a target area selected in an input image, and is an area surrounding the target area. A surrounding color extracting unit that extracts the representative color of the image as a surrounding color, a database in which the target area is set or the target area and the surrounding color are associated with each other, and at least from the database A reference image selection unit that accepts selection of one reference image; and a color tone changing unit that changes the color tone in the target area of the input image for each color component to the color tone in the target area of the reference image selected by the reference image selection unit; The reference image selection unit converts the target region stored in the database and the surrounding color into the surrounding color from the plurality of reference images. A configuration is provided in which at least one reference image is primarily selected on the condition that similar surrounding colors are associated with each other, and then one reference image is selected from the primarily selected reference images. Yes.

本発明は、画像全体としての色のバランスを向上させるとともに、色の対比効果の影響を抑制することができる画像調整装置を提供することができる。   The present invention can provide an image adjusting apparatus that can improve the color balance of the entire image and suppress the influence of the color contrast effect.

本発明の第1の実施の形態に係る画像調整装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the image adjustment apparatus which concerns on the 1st Embodiment of this invention. 本発明の第1の実施の形態に係る画像調整装置の機能ブロック図である。It is a functional block diagram of the image adjustment apparatus which concerns on the 1st Embodiment of this invention. 本発明の第1の実施の形態に係る画像調整装置によって参照される参照画の例を示す概念図である。It is a conceptual diagram which shows the example of the reference image referred by the image adjustment apparatus which concerns on the 1st Embodiment of this invention. 本発明の第1の実施の形態に係る画像調整装置の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of the image adjustment apparatus which concerns on the 1st Embodiment of this invention. 本発明の第2の実施の形態に係る画像調整装置の機能ブロック図である。It is a functional block diagram of the image adjustment apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第3の実施の形態に係る画像調整装置の機能ブロック図である。It is a functional block diagram of the image adjustment apparatus which concerns on the 3rd Embodiment of this invention. 本発明の第3の実施の形態に係る画像調整装置によって参照される参照画の例を示し、(A)は全体画像の概念図、(B)は参照画像の抽出範囲の一例の概念図、(C)は参照画像の概念図、(D)は参照画像の他例の概念図、(E)は参照画像の変形例の概念図である。The example of the reference image referred by the image adjustment apparatus which concerns on the 3rd Embodiment of this invention is shown, (A) is a conceptual diagram of an entire image, (B) is a conceptual diagram of an example of the extraction range of a reference image, (C) is a conceptual diagram of a reference image, (D) is a conceptual diagram of another example of the reference image, and (E) is a conceptual diagram of a modification of the reference image. 本発明の第3の実施の形態に係る画像調整装置の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of the image adjustment apparatus which concerns on the 3rd Embodiment of this invention.

以下、本発明に係る画像調整装置の実施の形態について、図面を用いて説明する。   Embodiments of an image adjustment apparatus according to the present invention will be described below with reference to the drawings.

(第1の実施の形態)
図1に示すように、本発明の実施の形態に係る画像調整装置1は、CPU(Central Processing Unit)2と、RAM(Random Access Memory)3と、ROM(Read Only Memory)4と、ハードディスク装置5と、表示装置6と、入力装置7と、入出力モジュール8と、通信モジュール9とを備えたコンピュータ装置によって構成されている。
(First embodiment)
As shown in FIG. 1, an image adjustment apparatus 1 according to an embodiment of the present invention includes a CPU (Central Processing Unit) 2, a RAM (Random Access Memory) 3, a ROM (Read Only Memory) 4, and a hard disk device. 5, a display device 6, an input device 7, an input / output module 8, and a communication module 9.

表示装置6は、例えば、液晶ディスプレイによって構成される。入力装置7は、液晶ディスプレイ上に設けられたタッチパネル等のポインティングデバイスやキーボード装置によって構成される。   The display device 6 is configured by a liquid crystal display, for example. The input device 7 is configured by a pointing device such as a touch panel provided on a liquid crystal display or a keyboard device.

入出力モジュール8は、スキャナ装置や撮影装置等の外部機器10が通信可能に接続できるようになっている。通信モジュール9は、インターネット等のネットワーク11を介して外部装置12と通信可能に接続できるようになっている。   The input / output module 8 can be communicably connected to an external device 10 such as a scanner device or a photographing device. The communication module 9 can be communicably connected to an external device 12 via a network 11 such as the Internet.

CPU2は、ROM4およびハードディスク装置5に記憶されたプログラムをRAM3の一部に読み込み、RAM3に読み込んだプログラムをRAM3の他の一部を作業領域として実行するようになっている。   The CPU 2 reads a program stored in the ROM 4 and the hard disk device 5 into a part of the RAM 3 and executes the program read into the RAM 3 using another part of the RAM 3 as a work area.

ROM4およびハードディスク装置5には、当該コンピュータ装置を画像調整装置1として機能させるためのプログラムが記憶されている。すなわち、当該プログラムを実行するCPU2により、当該コンピュータ装置は、画像調整装置1として機能する。   The ROM 4 and the hard disk device 5 store a program for causing the computer device to function as the image adjustment device 1. In other words, the computer device functions as the image adjustment device 1 by the CPU 2 that executes the program.

画像調整装置1は、例えば、ハードディスク装置5に格納された画像のうち、入力装置7によって選択された入力画像を対象として、入力画像の中で入力装置7によって選択された対象領域の色調を変更するようになっている。なお、本発明において、「色調」とは、画像中の領域における「色相」、「明度」、「彩度」のバランスのことをいう。   For example, the image adjustment device 1 changes the color tone of the target area selected by the input device 7 in the input image for the input image selected by the input device 7 among the images stored in the hard disk device 5. It is supposed to be. In the present invention, “color tone” means a balance of “hue”, “lightness”, and “saturation” in a region in an image.

図2に示すように、画像調整装置1は、周囲色抽出部20と、対象色抽出部21と、データベース22と、参照画像抽出部23と、参照画像選択部24と、色調変更部25とを備えている。周囲色抽出部20は、CPU2によって構成され、入力画像の中で入力装置7によって選択された対象領域の周囲領域の代表色を周囲色として抽出するようになっている。   As shown in FIG. 2, the image adjustment apparatus 1 includes an ambient color extraction unit 20, a target color extraction unit 21, a database 22, a reference image extraction unit 23, a reference image selection unit 24, and a color tone change unit 25. It has. The surrounding color extracting unit 20 is configured by the CPU 2 and extracts a representative color of the surrounding area of the target area selected by the input device 7 from the input image as the surrounding color.

本実施の形態において、周囲色抽出部20は、入力装置7によって選択された領域をそのまま対象領域として特定するようになっている。ここで、周囲色抽出部20は、入力装置7によって選択された領域または画素をパラメータとした、公知のエッジ検出アルゴリズムに基づいて対象領域を特定するようにしてもよい。   In the present embodiment, the surrounding color extraction unit 20 specifies the area selected by the input device 7 as the target area as it is. Here, the surrounding color extraction unit 20 may specify the target region based on a known edge detection algorithm using the region or pixel selected by the input device 7 as a parameter.

周囲色抽出部20は、対象領域の境界線に対して法線方向に距離Dだけ離れた境界線で囲われた入力画像内の領域のうち、対象領域を除いた領域を周囲領域として特定するようになっている。   The surrounding color extraction unit 20 identifies a region excluding the target region as a surrounding region among the regions in the input image surrounded by the boundary line that is separated from the boundary line of the target region by the distance D in the normal direction. It is like that.

本実施の形態において、周囲色抽出部20は、入力画像のサイズSに対して、予め実験的に定められた定数X1を除することによって距離D(=S/X1)を算出するようになっている。   In the present embodiment, the ambient color extraction unit 20 calculates the distance D (= S / X1) by dividing the constant S1 determined experimentally in advance from the size S of the input image. ing.

周囲色抽出部20は、入力画像の面積の平方根を入力画像のサイズSとして算出するようになっている。ここで、周囲色抽出部20は、入力画像の縦と横とのうち長いほうの1/4を入力画像のサイズSとして算出するようにしてもよい。   The surrounding color extraction unit 20 calculates the square root of the area of the input image as the size S of the input image. Here, the surrounding color extraction unit 20 may calculate the longer one-fourth of the length and width of the input image as the size S of the input image.

なお、周囲色抽出部20は、対象領域のサイズSrに対して、予め実験的に定められた定数X2を除することによって距離D(=Sr/X2)を算出するようにしてもよい。この場合には、周囲色抽出部20は、対象領域の面積の平方根を入力画像のサイズSrとして算出するように構成される。ここで、周囲色抽出部20は、対象領域に外接する矩形の縦と横とのうち大きいほうの1/4を対象領域のサイズSrとして算出するようにしてもよい。   Note that the ambient color extraction unit 20 may calculate the distance D (= Sr / X2) by dividing a constant X2 experimentally determined in advance with respect to the size Sr of the target region. In this case, the surrounding color extraction unit 20 is configured to calculate the square root of the area of the target region as the size Sr of the input image. Here, the surrounding color extraction unit 20 may calculate the larger one-fourth of the vertical and horizontal dimensions of the rectangle circumscribing the target area as the size Sr of the target area.

このように、周囲色抽出部20が対象領域のサイズSrに応じて周囲領域のサイズを大きくとることにより、対象領域と周囲領域との面積比が大きくなることが抑制されるため、いわゆる色の対比効果の影響がより抑制される。   As described above, since the surrounding color extraction unit 20 increases the size of the surrounding area in accordance with the size Sr of the target area, an increase in the area ratio between the target area and the surrounding area is suppressed. The influence of the contrast effect is further suppressed.

周囲色抽出部20は、周囲領域を特定すると、周囲領域内の各画素の色を色成分空間にマッピングし、クラスタリングを行うようになっている。本実施の形態において、周囲色抽出部20は、周囲領域内の各画素の色をRGB色空間にマッピングし、公知のK-means
法を用いて3つのクラスタにクラスタリングを行うようになっている。
When the surrounding area is specified, the surrounding color extracting unit 20 performs clustering by mapping the color of each pixel in the surrounding area to the color component space. In the present embodiment, the surrounding color extraction unit 20 maps the color of each pixel in the surrounding area to the RGB color space, and a known K-means
Clustering is performed on three clusters using the method.

なお、周囲色抽出部20は、周囲領域内の各画素の色をRGB色空間に代えて、Lab色空間、CMY色空間、HSV色空間、および、HLS色空間等の他の色空間にマッピングしてもよい。また、周囲色抽出部20は、K-means法に代えて、最小平均分散法等の他
のクラスタリング法を用いてクラスタリングを行うようにしてもよい。
The surrounding color extraction unit 20 maps the color of each pixel in the surrounding area to another color space such as a Lab color space, a CMY color space, an HSV color space, and an HLS color space instead of the RGB color space. May be. The surrounding color extraction unit 20 may perform clustering using another clustering method such as a minimum average dispersion method instead of the K-means method.

周囲色抽出部20は、クラスタリングが完了すると、画素数が最も多いクラスタの平均色を周囲領域の代表色、すなわち、周囲色として抽出するようになっている。   When the clustering is completed, the surrounding color extraction unit 20 extracts the average color of the cluster having the largest number of pixels as the representative color of the surrounding area, that is, the surrounding color.

対象色抽出部21は、CPU2によって構成され、入力画像の対象領域の代表色を対象色として抽出するようになっている。具体的には、対象色抽出部21は、周囲色抽出部20と同様に、対象領域内の各画素の色を色成分空間にマッピングし、クラスタリングを行い、画素数が最も多いクラスタの平均色を対象領域の代表色、すなわち、対象色として抽出するようになっている。   The target color extraction unit 21 is configured by the CPU 2 and extracts a representative color of the target area of the input image as a target color. Specifically, similar to the surrounding color extraction unit 20, the target color extraction unit 21 maps the color of each pixel in the target region to the color component space, performs clustering, and averages the clusters having the largest number of pixels. Are extracted as the representative color of the target region, that is, the target color.

データベース22は、ハードディスク装置5によって構成され、データベース22には、複数の参照画像が格納されている。参照画像としては、背景画像の色調が多彩であり、視覚的に全体の色調のバランスがとれている模範的なものが選別されている。例えば、参照画像としては、背景画像に対する人肌の色調が良好に表されているものが選別されている。   The database 22 is configured by the hard disk device 5, and the database 22 stores a plurality of reference images. As the reference image, exemplary images having various color tones in the background image and visually balanced in the overall color tone are selected. For example, as the reference image, an image in which the color tone of the human skin with respect to the background image is well expressed is selected.

データベース22には、各参照画像に対応して、対象領域、周囲色および対象色が予め特定されて対応付けられている。なお、各参照画像に対して、複数の対象領域が予め特定されて対応付けられていてもよい。この場合には、各対象領域に対して対象色が予め特定されて対応付けられる。   In the database 22, the target area, the surrounding color, and the target color are specified in advance and associated with each reference image. Note that a plurality of target regions may be specified in advance and associated with each reference image. In this case, a target color is specified in advance and associated with each target region.

例えば、図3に示す参照画像においては、「空」、「山」、「顔」、「服」および「木」をそれぞれ表す対象領域が対応付けられている。「空」を表す対象領域に対しては、対象色として、(R,G,B)=(204,255,255)が対応付けられ、周囲色として(R,G,B)=(51,202,255)が対応付けられている。   For example, in the reference image shown in FIG. 3, target areas representing “sky”, “mountain”, “face”, “clothes”, and “tree” are associated with each other. The target area representing “sky” is associated with (R, G, B) = (204, 255, 255) as the target color and (R, G, B) = (51, 202, 255).

また、「山」を表す対象領域に対しては、対象色として、(R,G,B)=(51,202,255)が対応付けられ、周囲色として(R,G,B)=(204,255,255)が対応付けられている。   For the target area representing “mountain”, (R, G, B) = (51, 202, 255) is associated as the target color, and (R, G, B) = ( 204, 255, 255).

また、「顔」を表す対象領域に対しては、対象色として、(R,G,B)=(255,204,153)が対応付けられ、周囲色として(R,G,B)=(255,153,0)が対応付けられている。   For the target area representing “face”, (R, G, B) = (255, 204, 153) is associated as the target color, and (R, G, B) = ( 255, 153, 0).

また、「服」を表す対象領域に対しては、対象色として、(R,G,B)=(255,153,0)が対応付けられ、周囲色として(R,G,B)=(255,204,153)が対応付けられている。   In addition, the target region representing “clothes” is associated with (R, G, B) = (255, 153, 0) as the target color and (R, G, B) = ( 255, 204, 153).

また、「木」を表す対象領域に対しては、対象色として、(R,G,B)=(0,128,0)が対応付けられ、周囲色として(R,G,B)=(204,255,255)が対応付けられている。   In addition, the target area representing “tree” is associated with (R, G, B) = (0, 128, 0) as the target color and (R, G, B) = ( 204, 255, 255).

なお、各対象色に対して、複数の周囲色が予め特定されて対応付けられていてもよい。   A plurality of surrounding colors may be specified in advance and associated with each target color.

図2において、参照画像抽出部23は、CPU2によって構成され、周囲色抽出部20によって抽出された周囲色に類似した周囲色が対応付けられていること、および、対象色抽出部21によって抽出された対象色に類似した対象色が対応付けられていることを抽出条件として、データベース22から少なくとも1つの参照画像を抽出するようになっている。   In FIG. 2, the reference image extraction unit 23 is configured by the CPU 2, and the reference color extraction unit 21 extracts that the surrounding colors similar to the surrounding colors extracted by the surrounding color extraction unit 20 are associated with each other. At least one reference image is extracted from the database 22 with an extraction condition that a target color similar to the target color is associated.

例えば、参照画像抽出部23は、周囲色抽出部20によって抽出された周囲色(Ri,Gi,Bi)と、データベース22に格納された各参照画像に対応付けられた周囲色(Rn,Gn,Bn)との間のRGB色空間における距離dを以下に示す式に基づいて算出するようになっている。   For example, the reference image extraction unit 23 and the surrounding colors (Ri, Gi, Bi) extracted by the surrounding color extraction unit 20 and the surrounding colors (Rn, Gn, The distance d in the RGB color space with respect to Bn) is calculated based on the following formula.

ここで、距離dは、周囲色の類似度を比較するために用いる値であるため、参照画像抽出部23は、周囲色評価値Ec(=d2)を算出するようにしてもよい。周囲色評価値Ecを算出する方が演算負荷が軽くなるため、以下の説明において、参照画像抽出部23は、周囲色評価値Ecを算出するものとする。 Here, since the distance d is a value used for comparing the similarities of surrounding colors, the reference image extraction unit 23 may calculate the surrounding color evaluation value Ec (= d2). Since the calculation load becomes lighter when the surrounding color evaluation value Ec is calculated, in the following description, the reference image extraction unit 23 calculates the surrounding color evaluation value Ec.

また、参照画像抽出部23は、周囲色と同様に、対象色抽出部21によって抽出された対象色と、データベース22に格納された各参照画像に対応付けられた対象色との間の対象色評価値Etを算出するようになっている。   Further, the reference image extraction unit 23, similarly to the surrounding colors, has a target color between the target color extracted by the target color extraction unit 21 and the target color associated with each reference image stored in the database 22. An evaluation value Et is calculated.

参照画像抽出部23は、予め定められた重みwcが付けられた周囲色評価値Ecと予め定められた重みwtが付けられた対象色評価値Etとの和を評価値E(=wc×Ec+wt×Et)として、評価値Eが小さい順に予め定められた数の参照画像をデータベース22から抽出するようになっている。   The reference image extraction unit 23 evaluates the sum of the surrounding color evaluation value Ec with a predetermined weight wc and the target color evaluation value Et with a predetermined weight wt as an evaluation value E (= wc × Ec + wt). × Et), a predetermined number of reference images are extracted from the database 22 in ascending order of the evaluation value E.

ここで、wcは、wtに対して大きめに定められている。なお、参照画像抽出部23は、評価値Eが小さい順に予め定められた数の参照画像をデータベース22から抽出するのに代えて、評価値Eが予め定められた値以下の参照画像をデータベース22から抽出するようにしてもよい。   Here, wc is set larger than wt. Note that the reference image extraction unit 23 extracts reference images whose evaluation value E is equal to or smaller than the predetermined value instead of extracting a predetermined number of reference images from the database 22 in ascending order of the evaluation value E. You may make it extract from.

また、参照画像の対象色に複数の周囲色が対応付けられている場合には、参照画像抽出部23は、最も小さな周囲色評価値Ecを選択するようになっている。なお、参照画像の対象色に複数の周囲色が対応付けられている場合には、参照画像抽出部23は、複数の周囲色から得られる周囲色評価値Ecの平均値を参照画像の周囲色評価値Ecとしてもよい。   Further, when a plurality of surrounding colors are associated with the target color of the reference image, the reference image extracting unit 23 selects the smallest surrounding color evaluation value Ec. When a plurality of surrounding colors are associated with the target color of the reference image, the reference image extracting unit 23 uses the average value of the surrounding color evaluation values Ec obtained from the plurality of surrounding colors as the surrounding color of the reference image. It is good also as evaluation value Ec.

また、参照画像の対象色に複数の周囲色が対応付けられている場合には、参照画像抽出部23は、各周囲色が参照画像の周囲領域に占める面積比率と、当該周囲色から得られる周囲色評価値Ecとを乗じて得られる値の平均値を参照画像の周囲色評価値Ecとしてもよい。   When a plurality of surrounding colors are associated with the target color of the reference image, the reference image extracting unit 23 obtains the area ratio of each surrounding color in the surrounding area of the reference image and the surrounding color. The average value obtained by multiplying the surrounding color evaluation value Ec may be used as the surrounding color evaluation value Ec of the reference image.

参照画像選択部24は、CPU2と、入力装置7とによって構成され、参照画像抽出部23によって抽出された参照画像の中から1つの参照画像が選択されるようになっている。   The reference image selection unit 24 includes the CPU 2 and the input device 7, and one reference image is selected from the reference images extracted by the reference image extraction unit 23.

本実施の形態において、参照画像選択部24は、参照画像抽出部23によって抽出された参照画像を表示装置6に表示させるようになっている。参照画像選択部24は、参照画像のなかで対象領域が識別できるように、対象領域を破線で囲む等の画像処理を施して、表示装置6に表示させるようにしてもよい。   In the present embodiment, the reference image selection unit 24 displays the reference image extracted by the reference image extraction unit 23 on the display device 6. The reference image selection unit 24 may display the target area on the display device 6 by performing image processing such as surrounding the target area with a broken line so that the target area can be identified in the reference image.

参照画像選択部24は、参照画像抽出部23によって抽出された参照画像から入力装置7を介して選択された1つの参照画像を選択するようになっている。なお、参照画像抽出部23によって抽出された参照画像が1つの場合には、参照画像選択部24は、当該参照画像を表示装置6に表示させることなく、当該参照画像を選択するようになっている。   The reference image selection unit 24 selects one reference image selected via the input device 7 from the reference images extracted by the reference image extraction unit 23. When there is one reference image extracted by the reference image extraction unit 23, the reference image selection unit 24 selects the reference image without causing the display device 6 to display the reference image. Yes.

色調変更部25は、CPU2によって構成され、入力画像の対象領域における色調を参照画像選択部24によって選択された参照画像の対象領域における色調に色成分毎に変更するようになっている。   The color tone changing unit 25 is configured by the CPU 2 and changes the color tone in the target region of the input image to the color tone in the target region of the reference image selected by the reference image selecting unit 24 for each color component.

色調変更部25は、参照画像選択部24によって選択された参照画像の対象領域における色成分毎のレベルの平均値と分散とを算出し、入力画像の対象領域における色成分毎のレベルの平均値と分散とが、算出した平均値と分散となるように、入力画像の対象領域における各画素の色を色成分毎に変更するようになっている。   The color tone changing unit 25 calculates the average value and the variance of the level for each color component in the target area of the reference image selected by the reference image selection unit 24, and the average value of the level for each color component in the target area of the input image The color of each pixel in the target area of the input image is changed for each color component so that the calculated average value and the variance are the same.

例えば、色調変更部25は、非特許文献1に開示されたような公知の技術を適用することによって、入力画像の対象領域における色調を色成分毎に変更するようにしてもよい。   For example, the color tone changing unit 25 may change the color tone in the target area of the input image for each color component by applying a known technique as disclosed in Non-Patent Document 1.

以上のように構成された画像調整装置1の動作について図4を参照して説明する。   The operation of the image adjustment apparatus 1 configured as described above will be described with reference to FIG.

まず、入力画像の対象領域とその周囲領域とが周囲色抽出部20によって特定される(ステップS1)。次いで、入力画像の対象領域の周囲領域の代表色である周囲色が周囲色抽出部20によって抽出される(ステップS2、周囲色抽出ステップ)。   First, the target area of the input image and its surrounding area are specified by the surrounding color extracting unit 20 (step S1). Next, a surrounding color that is a representative color of the surrounding area of the target area of the input image is extracted by the surrounding color extracting unit 20 (step S2, surrounding color extracting step).

また、入力画像の対象領域の代表色である対象色が対象色抽出部21によって抽出される(ステップS3、対象色抽出ステップ)。次いで、ステップS2およびS3で抽出された周囲色および対象色に基づいて、データベース22から少なくとも1つの参照画像が参照画像抽出部23によって抽出される(ステップS4、参照画像抽出ステップ)。   Further, the target color that is the representative color of the target area of the input image is extracted by the target color extraction unit 21 (step S3, target color extraction step). Next, at least one reference image is extracted from the database 22 by the reference image extraction unit 23 based on the surrounding color and the target color extracted in steps S2 and S3 (step S4, reference image extraction step).

次いで、参照画像抽出部23によって抽出された参照画像の中から1つの参照画像が参照画像選択部24によって選択される(ステップS5、参照画像選択ステップ)。次いで、入力画像の対象領域における色調が、参照画像選択部24によって選択された参照画像の対象領域における色調となるように色調変更部25によって色成分毎に変更される(ステップS6、色調変更ステップ)。   Next, one reference image is selected by the reference image selection unit 24 from the reference images extracted by the reference image extraction unit 23 (step S5, reference image selection step). Next, the color tone changing unit 25 changes the color tone in the target area of the input image for each color component so as to be the color tone in the target area of the reference image selected by the reference image selection unit 24 (step S6, color tone changing step). ).

このように、対象領域における色調が変更された入力画像は、CPU2によって表示装置6に表示され、入力装置7を介した指示により、ハードディスク装置5に記憶されたり、入出力モジュール8または通信モジュール9を介して外部機器10または外部装置12に送信されたりする。   In this way, the input image whose color tone has been changed in the target area is displayed on the display device 6 by the CPU 2, and is stored in the hard disk device 5 according to an instruction via the input device 7, or the input / output module 8 or the communication module 9. Or transmitted to the external device 10 or the external device 12.

以上に説明したように、本実施の形態は、入力画像の対象領域だけでなく、対象領域の周囲領域が類似した参照画像を基にして、入力画像の対象領域の色調を調整するため、画像全体としての色のバランスを向上させるとともに、色の対比効果の影響を抑制することができる。   As described above, this embodiment adjusts the color tone of the target area of the input image based on the reference image similar to the target area of the target area as well as the target area of the input image. The overall color balance can be improved and the influence of the color contrast effect can be suppressed.

(第2の実施の形態)
本実施の形態は、ハードディスク装置5に記憶されたプログラムを変更することにより実現される。すなわち、本実施の形態のハードウェア構成は、図1を参照して説明した本発明の第1の実施の画像調整装置1と同一である。
(Second Embodiment)
The present embodiment is realized by changing a program stored in the hard disk device 5. That is, the hardware configuration of the present embodiment is the same as that of the image adjustment apparatus 1 of the first embodiment of the present invention described with reference to FIG.

なお、本実施の形態においては、本発明の第1の実施の形態に係る画像調整装置1と同様な構成要件には、同一の符号を付し、相違点について説明する。   In the present embodiment, the same components as those in the image adjustment apparatus 1 according to the first embodiment of the present invention are denoted by the same reference numerals, and different points will be described.

図5に示すように、本実施の形態に係る画像調整装置30は、周囲色抽出部20と、対象色抽出部21と、データベース22と、参照画像抽出部23と、参照画像選択部24と、色調変更部25とに加えて、対象物判別部31を備えている。   As shown in FIG. 5, the image adjustment device 30 according to the present embodiment includes an ambient color extraction unit 20, a target color extraction unit 21, a database 22, a reference image extraction unit 23, and a reference image selection unit 24. In addition to the color tone changing unit 25, an object determining unit 31 is provided.

本実施の形態において、データベース22には、各参照画像に対応して、対象領域、周囲色および対象色に加えて、対象領域に表された対象物が予め特定されて対応付けられている。   In the present embodiment, in the database 22, in addition to the target area, the surrounding color, and the target color, the target object represented in the target area is specified and associated in advance in correspondence with each reference image.

対象物判別部31は、CPU2によって構成され、入力画像の対象領域に表された対象物を判別するようになっている。画像に表された物体を判別する技術については、例えば、非特許文献2に開示されているため、詳細な説明を省く。   The object discriminating unit 31 is configured by the CPU 2 and discriminates the object represented in the target area of the input image. Since the technique for discriminating the object represented in the image is disclosed in Non-Patent Document 2, for example, detailed description is omitted.

本発明の第2の実施の形態において、参照画像抽出部23は、参照画像の対象領域に表された対象物と、対象物判別部31によって判別された対象物とが同一であるか否か、より詳細には、色彩的に同一分類であるか否かを判断するようになっている。参照画像抽出部23は、この判断結果を用いてデータベース22から参照画像を抽出するときに、抽出する参照画像を絞り込むようになっている。   In the second embodiment of the present invention, the reference image extraction unit 23 determines whether or not the object represented in the target area of the reference image and the object determined by the object determination unit 31 are the same. More specifically, it is determined whether or not the color classification is the same. The reference image extraction unit 23 narrows down the reference images to be extracted when the reference image is extracted from the database 22 using the determination result.

以上のように構成された画像調整装置30の動作については、図4を参照して説明した本発明の第1の実施の形態に係る画像調整装置1の動作に基づいて、容易に想到できるため、その説明を省略する。   The operation of the image adjustment device 30 configured as described above can be easily conceived based on the operation of the image adjustment device 1 according to the first embodiment of the present invention described with reference to FIG. The description is omitted.

以上に説明したように、本実施の形態は、本発明の第1の実施の形態と同様な効果が得られる。また、本実施の形態は、参照画像の対象領域に表された対象物と、対象物判別部31によって判別された対象物とが同一であるか否か、より詳細には、色彩的に同一分類であるか否かを判断し、この判断結果を用いてデータベース22から参照画像を抽出するときに、抽出する参照画像を絞り込むため、より最適かつ高速に参照画像を抽出することができる。   As described above, the present embodiment can obtain the same effects as those of the first embodiment of the present invention. Further, in the present embodiment, whether or not the object represented in the target area of the reference image is the same as the object determined by the object determination unit 31, more specifically, the same color. When it is determined whether or not the image is classified and the reference image is extracted from the database 22 using the determination result, the reference image to be extracted is narrowed down, so that the reference image can be extracted more optimally and at high speed.

なお、本発明は、上述した実施の形態に限定されず、本発明の技術思想の範囲内において、本発明の実施の形態の中で示唆した以外にも、本発明の実施の形態は、適宜変更され得ることは明らかである。   The present invention is not limited to the above-described embodiment, and within the scope of the technical idea of the present invention, the embodiment of the present invention may be appropriately selected other than suggested in the embodiment of the present invention. Obviously, it can be changed.

例えば、本発明の実施の形態において、入力画像は、ハードディスク装置5に格納されているものとして説明したが、本発明においては、入出力モジュール8または通信モジュール9を介して外部機器10または外部装置12から入力されたものでもよい。   For example, in the embodiment of the present invention, the input image has been described as being stored in the hard disk device 5, but in the present invention, the external device 10 or the external device via the input / output module 8 or the communication module 9 is described. 12 may be input.

また、本発明の実施の形態において、参照画像を格納するデータベース22は、ハードディスク装置5によって構成されているものとして説明したが、本発明においては、入出力モジュール8または通信モジュール9を介して接続された外部機器10または外部装置12によって構成してもよい。   In the embodiment of the present invention, the database 22 for storing the reference image has been described as being configured by the hard disk device 5, but in the present invention, it is connected via the input / output module 8 or the communication module 9. The external device 10 or the external device 12 may be configured.

このようにデータベース22を外部機器10または外部装置12によって構成することにより、画像調整装置1毎に複数の参照画像を格納する必要がなくなる。したがって、複数の画像調整装置1が設けられたシステムにおいては、参照画像の追加や変更等のデータベース22のメンテナンスにかかるコストが低減する。   By configuring the database 22 with the external device 10 or the external device 12 in this way, it is not necessary to store a plurality of reference images for each image adjustment device 1. Therefore, in a system provided with a plurality of image adjustment apparatuses 1, the cost for maintenance of the database 22 such as addition or change of a reference image is reduced.

また、本発明の実施の形態において、色調変更部25は、参照画像選択部24によって選択された参照画像の対象領域における色成分毎のレベルの平均値と分散とを算出するものとして説明した。   Further, in the embodiment of the present invention, the color tone changing unit 25 has been described as calculating the average value and the variance of the level for each color component in the target area of the reference image selected by the reference image selecting unit 24.

これに対し、データベース22に格納された各参照画像の対象領域における色成分毎のレベルの平均値と分散とを予め算出しておき、データベース22において各参照画像の対象領域に対して、平均値と分散とを対応付けておくようにしてもよい。   On the other hand, the average value and the variance of the level for each color component in the target area of each reference image stored in the database 22 are calculated in advance, and the average value is calculated for the target area of each reference image in the database 22. And variance may be associated with each other.

この場合には、色調変更部25は、参照画像選択部24によって選択された参照画像の対象領域における色成分毎のレベルの平均値と分散とを算出するのに代えて、参照画像選択部24によって選択された参照画像の対象領域における色成分毎のレベルの平均値と分散とをデータベース22から取得するように構成する。   In this case, the color tone changing unit 25 instead of calculating the average value and the variance of the level for each color component in the target region of the reference image selected by the reference image selecting unit 24, instead of calculating the reference image selecting unit 24. The average value and the variance of the level for each color component in the target area of the reference image selected by the above are acquired from the database 22.

(第3の実施の形態)
本実施の形態は、ハードディスク装置5に記憶されたプログラムを変更することにより実現される。すなわち、本実施の形態のハードウェア構成は、図1を参照して説明した本発明の第1の実施の画像調整装置1と同一である。
(Third embodiment)
The present embodiment is realized by changing a program stored in the hard disk device 5. That is, the hardware configuration of the present embodiment is the same as that of the image adjustment apparatus 1 of the first embodiment of the present invention described with reference to FIG.

なお、本実施の形態においては、本発明の第1の実施の形態に係る画像調整装置1と同様な構成要件には、同一の符号を付し、相違点について説明する。   In the present embodiment, the same components as those in the image adjustment apparatus 1 according to the first embodiment of the present invention are denoted by the same reference numerals, and different points will be described.

図6に示すように、本実施の形態に係る画像調整装置40は、周囲色抽出部20と、対象色抽出部21と、データベース22と、参照画像表示部43と、参照画像選択部24と、色調変更部25と、を備えている。   As shown in FIG. 6, the image adjustment device 40 according to the present embodiment includes an ambient color extraction unit 20, a target color extraction unit 21, a database 22, a reference image display unit 43, and a reference image selection unit 24. And a color tone changing unit 25.

データベース22は、ハードディスク装置5によって構成され、データベース22には、複数の参照画像が格納されている。   The database 22 is configured by the hard disk device 5, and the database 22 stores a plurality of reference images.

参照画像には、対象物の色調のバリエーションが多彩に選別されている。本実施の形態では、対象物の色諧調のバリエーションが良好なものが適切である。   In the reference image, a variety of color variations of the object are selected. In the present embodiment, it is appropriate that the variation of the color tone of the object is good.

したがって、データベース22には、各参照画像に対して、対象領域と対象色が予め特定されて対応付けられている。なお、各参照画像に対して、複数の対象領域が予め特定されて対応付けられていてもよい。この場合には、各対象領域に対して対象色が予め特定されて対応付けられる。なお、このデータベース22では参照画像の周囲色については問わない。   Therefore, the target area and the target color are specified in advance and associated with each reference image in the database 22. Note that a plurality of target regions may be specified in advance and associated with each reference image. In this case, a target color is specified in advance and associated with each target region. In the database 22, the surrounding color of the reference image does not matter.

ここで、図3の場合で説明すると、顔の領域が平均色(R,G,B)=(255,204,153)となっている。このときに、入力画像が人間の顔である場合、その周囲色(代表値)が、(R,G,B)=(32,24,22)であったとする。   Here, in the case of FIG. 3, the face area has an average color (R, G, B) = (255, 204, 153). At this time, if the input image is a human face, the surrounding color (representative value) is assumed to be (R, G, B) = (32, 24, 22).

この場合、参照画像表示部43は、図7(A)の人体写真の顔の部分を参照画像とするのであれば、CPU2は、表示装置6に、図7(B)に示すように、髪の毛等の周囲を含む形で顔の周辺部分を抜き出して表示するのではなく、図7(C)に示すように、顔のみを入力画像として表示するとともにその対象領域の周囲を対象物である顔の周囲色で埋めて表示をする。   In this case, if the reference image display unit 43 uses the face portion of the human body photograph in FIG. 7A as a reference image, the CPU 2 sends the hair to the display device 6 as shown in FIG. 7B. The peripheral part of the face is not extracted and displayed in a form including the periphery of the face, but only the face is displayed as an input image as shown in FIG. It is filled with the surrounding color and displayed.

これをすることで、周囲色と顔との関係において髪の毛等が介在することなく、入力画像の対象物の周囲色に近似される状態で参照画像の対象物の色を確認することができるため、参照画像の色調が正しく入力画像に転写できたときに、対比効果の影響が少なく入力画像の全体としてのイメージと合わせることができる。   By doing this, the color of the target object in the reference image can be confirmed in a state that approximates the peripheral color of the target object in the input image without intervention of hair or the like in the relationship between the peripheral color and the face. When the color tone of the reference image can be correctly transferred to the input image, the effect of the contrast effect is small and the input image can be matched with the entire image.

このため、本実施の形態では、参照画像表示部43でデータベース22から抽出された参照画像によって入力装置7を介して抽出された1つの参照画像を選択するようになっている。なお、参照画像表示部43によって選択された参照画像が1つの場合には、参照画像選択部24は、当該参照画像を表示装置6に表示させることなく、当該参照画像を自動的に選択するようになっている。   For this reason, in this embodiment, one reference image extracted via the input device 7 by the reference image extracted from the database 22 by the reference image display unit 43 is selected. When there is one reference image selected by the reference image display unit 43, the reference image selection unit 24 automatically selects the reference image without causing the display device 6 to display the reference image. It has become.

色調変更部25は、CPU2によって構成され、入力画像の対象領域における色調を参照画像選択部24によって選択された参照画像の対象領域における色調に色成分毎に変更するようになっている。   The color tone changing unit 25 is configured by the CPU 2 and changes the color tone in the target region of the input image to the color tone in the target region of the reference image selected by the reference image selecting unit 24 for each color component.

色調変更部25は、参照画像選択部24によって選択された参照画像の対象領域における色成分毎のレベルの平均値と分散とを算出し、入力画像の対象領域における色成分毎のレベルの平均値と分散とが、算出した平均値と分散となるように、入力画像の対象領域における各画素の色を色成分毎に変更するようになっている。   The color tone changing unit 25 calculates the average value and the variance of the level for each color component in the target area of the reference image selected by the reference image selection unit 24, and the average value of the level for each color component in the target area of the input image The color of each pixel in the target area of the input image is changed for each color component so that the calculated average value and the variance are the same.

例えば、色調変更部25は、非特許文献1に開示されたような公知の技術を適用することによって、入力画像の対象領域における色調を色成分毎に変更するようにしてもよい。 以上のように構成された画像調整装置1の動作について図5を参照して説明する。   For example, the color tone changing unit 25 may change the color tone in the target area of the input image for each color component by applying a known technique as disclosed in Non-Patent Document 1. The operation of the image adjustment apparatus 1 configured as described above will be described with reference to FIG.

まず、入力画像の対象領域とその周囲領域とが周囲色抽出部20によって特定される。次いで、入力画像の対象領域の周囲領域の代表色である周囲色が周囲色抽出部20によって抽出される。   First, the target color of the input image and its surrounding area are specified by the surrounding color extraction unit 20. Next, a surrounding color that is a representative color of the surrounding area of the target area of the input image is extracted by the surrounding color extracting unit 20.

また、入力画像の対象領域の代表色である対象色が対象色抽出部21によって抽出される。次いで、抽出された周囲色および対象色に基づいて、データベース22から参照画像が複数抽出され、参照画像表示部43によって表示される。このときに表示装置6に表示する参照画像は、図7(C)に示すように、対象領域の外側を入力画像の周囲色の色で埋めたもので表示する。   Further, the target color that is the representative color of the target area of the input image is extracted by the target color extraction unit 21. Next, based on the extracted surrounding color and target color, a plurality of reference images are extracted from the database 22 and displayed by the reference image display unit 43. As shown in FIG. 7C, the reference image displayed on the display device 6 at this time is displayed by filling the outside of the target region with the surrounding color of the input image.

参照画像のデータベース22から関連する画像を抽出する際には、対象領域のカテゴリーを分けてもよいが、全ての中から好みのものを選ぶという形態も可能である。   When extracting related images from the reference image database 22, the categories of target regions may be divided, but it is also possible to select a favorite one from all of them.

例えば、1つの参照画像に複数の対象物が入っている場合は、参照画像を選択するステップと、その参照画像の中にある複数の対称の中からさらに一つの対象を選択するというステップが含まれていても良い。   For example, when a plurality of objects are included in one reference image, a step of selecting a reference image and a step of selecting one more object from a plurality of symmetry in the reference image are included. It may be.

さらに、上述したように、入力画像の周囲色を(128,128,128)とするとともに、図7(D)に示すように、眉毛・目・口といったように、ひと肌ではない顔の色部分をさらに抜き出して抜出穴とし、その抜出穴も周囲色で埋めてもよい。これにより、対象領域の選択時に、対象領域の範囲を正確に知ることができる。なお、抜出穴を形成した場合に、その抜出穴を周囲色ではなく、図7(E)に示すように、人の手といったオリジナルコンテンツを表示するような表示も可能である。   Further, as described above, the surrounding color of the input image is set to (128, 128, 128), and as shown in FIG. 7D, the color portion of the face that is not human skin, such as eyebrows, eyes, and mouth. May be further extracted to form an extraction hole, and the extraction hole may be filled with a surrounding color. Thereby, it is possible to accurately know the range of the target area when selecting the target area. When the extraction hole is formed, it is also possible to display the original content such as a human hand as shown in FIG. 7E instead of the surrounding color.

いずれの場合においても、入力画像の比較という点においてはどちらにもメリットがあるので、これらは表示を切り替えることで対応するといった応用も考えられる。   In either case, since both have advantages in terms of comparison of input images, an application in which these are dealt with by switching the display is also conceivable.

以上のように構成された画像調整装置1の動作について図8を参照して説明する。   The operation of the image adjustment apparatus 1 configured as described above will be described with reference to FIG.

まず、入力画像の対象領域とその周囲領域とが周囲色抽出部20によって特定される(ステップS1)。   First, the target area of the input image and its surrounding area are specified by the surrounding color extracting unit 20 (step S1).

次いで、入力画像の対象領域の周囲領域の代表色である周囲色が周囲色抽出部20によって抽出される(ステップS2、周囲色抽出ステップ)。   Next, a surrounding color that is a representative color of the surrounding area of the target area of the input image is extracted by the surrounding color extracting unit 20 (step S2, surrounding color extracting step).

また、入力画像の対象領域の代表色である対象色が対象色抽出部21によって抽出される(ステップS3、対象色抽出ステップ)。   Further, the target color that is the representative color of the target area of the input image is extracted by the target color extraction unit 21 (step S3, target color extraction step).

次いで、ステップS2およびS3で抽出された周囲色および対象色に基づいて、データベース22から対象となる少なくとも1つの参照画像が参照画像表示部43によって抽出され(ステップS14、参照画像抽出ステップ)、その参照画像の対象物の外側の色が参照画像表示部43によって周囲色に置き換えられたうえで表示装置に表示される(ステップS15、参照画像表示ステップ)。   Next, based on the ambient color and the target color extracted in steps S2 and S3, at least one reference image to be targeted is extracted from the database 22 by the reference image display unit 43 (step S14, reference image extraction step). The color outside the object of the reference image is replaced with the surrounding color by the reference image display unit 43 and then displayed on the display device (step S15, reference image display step).

次いで、参照画像表示部43によって抽出された参照画像の中から1つの参照画像が参照画像選択部24によって選択される(ステップS16,参照画像選択ステップ)。   Next, one reference image is selected by the reference image selection unit 24 from the reference images extracted by the reference image display unit 43 (step S16, reference image selection step).

次いで、入力画像の対象領域における色調が、参照画像選択部24によって選択された参照画像の対象領域における色調となるように色調変更部25によって色成分毎に変更される(ステップS6、色調変更ステップ)。   Next, the color tone changing unit 25 changes the color tone in the target area of the input image for each color component so as to be the color tone in the target area of the reference image selected by the reference image selection unit 24 (step S6, color tone changing step). ).

このように、対象領域における色調が変更された入力画像は、CPU2によって表示装置6に表示され、入力装置7を介した指示により、ハードディスク装置5に記憶されたり、入出力モジュール8または通信モジュール9を介して外部機器10または外部装置12に送信されたりする。   In this way, the input image whose color tone has been changed in the target area is displayed on the display device 6 by the CPU 2, and is stored in the hard disk device 5 according to an instruction via the input device 7, or the input / output module 8 or the communication module 9. Or transmitted to the external device 10 or the external device 12.

以上に説明したように、本実施の形態は、入力画像の対象領域だけでなく、対象領域の周囲領域が類似した参照画像を基にして、入力画像の対象領域の色調を調整するため、画像全体としての色のバランスを向上させるとともに、色の対比効果の影響を抑制することができる。   As described above, this embodiment adjusts the color tone of the target area of the input image based on the reference image similar to the target area of the target area as well as the target area of the input image. The overall color balance can be improved and the influence of the color contrast effect can be suppressed.

ところで、本発明の実施の形態においては、CPU2によって実行されるプログラムが、ROM4およびハードディスク装置5に記憶されているものとしているが、これに限定されるものではない。   By the way, in the embodiment of the present invention, the program executed by the CPU 2 is stored in the ROM 4 and the hard disk device 5, but the present invention is not limited to this.

すなわち、本発明の各実施の形態で実行されるプログラムを、インストール可能な形式または実行可能な形式のファイルでCD−ROM、フレキシブルディスク、CD−R、DVD(Digital Versatile Disc)等のコンピュータで読み取り可能な記録媒体に記録してコンピュータプログラムプロダクトとして提供してもよい。   That is, the program executed in each embodiment of the present invention is read by a computer such as a CD-ROM, a flexible disk, a CD-R, and a DVD (Digital Versatile Disc) as a file in an installable or executable format. It may be recorded on a possible recording medium and provided as a computer program product.

また、本発明の各実施の形態で実行されるプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。また、本発明の各実施の形態で実行されるプログラムをインターネット等のネットワーク経由で提供または配布するように構成してもよい。   The program executed in each embodiment of the present invention may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. Further, the program executed in each embodiment of the present invention may be configured to be provided or distributed via a network such as the Internet.

1、30 画像調整装置
20 周囲色抽出部
21 対象色抽出部
22 データベース
23 参照画像抽出部
24 参照画像選択部
25 色調変更部
31 対象物判別部
DESCRIPTION OF SYMBOLS 1, 30 Image adjustment apparatus 20 Ambient color extraction part 21 Target color extraction part 22 Database 23 Reference image extraction part 24 Reference image selection part 25 Color tone change part 31 Target object discrimination | determination part

特許第4421761号公報Japanese Patent No. 4421176

田中豪、外2名、「色相ヒストグラムを用いたデジタルカラー画像 間の色転写法」、第24回ファジィシステムシンポジウム、2008年12月、 pp.95−96Go Tanaka and two others, “Color Transfer Method between Digital Color Images Using Hue Histogram”, 24th Fuzzy System Symposium, December 2008, pp. 95-96 柳井啓司、「一般物体認識の現状と今後」、情報処理学会論文誌「 コンピュータビジョンとイメージメディア」、Vol.48、2007年11月Keiji Yanai, “Current Status and Future of General Object Recognition”, IPSJ Journal “Computer Vision and Image Media”, Vol. 48, November 2007

Claims (13)

入力画像の中で選択された対象領域の色調を変更する画像調整装置であって、
前記対象領域の周囲領域の代表色を周囲色として抽出する周囲色抽出部と、
前記対象領域を設定した又は前記対象領域と前記周囲色とを対応付けした、複数の参照画像が格納されたデータベースと、
前記データベースから少なくとも1つの参照画像の選択を受け付ける参照画像選択部と、
前記入力画像の対象領域における色調を前記参照画像選択部によって選択された参照画像の対象領域における色調に色成分毎に変更する色調変更部と、を備え、
前記参照画像選択部は、前記データベースに格納された前記対象領域と前記周囲色とを対応付けした前記複数の参照画像から、前記周囲色に類似した周囲色が対応付けられていることを条件として、少なくとも1つの参照画像を一次選択したうえで、その一次選択された参照画像の中から1つの参照画像を選択する
ことを特徴とする画像調整装置。
An image adjustment device that changes a color tone of a target area selected in an input image,
A surrounding color extraction unit that extracts a representative color of the surrounding area of the target area as a surrounding color;
A database storing a plurality of reference images in which the target area is set or the target area is associated with the surrounding color;
A reference image selection unit for receiving selection of at least one reference image from the database;
A color tone changing unit that changes the color tone in the target area of the input image to the color tone in the target area of the reference image selected by the reference image selection unit for each color component;
The reference image selection unit is provided on the condition that a surrounding color similar to the surrounding color is associated from the plurality of reference images in which the target region stored in the database is associated with the surrounding color. An image adjusting apparatus characterized by first selecting at least one reference image and then selecting one reference image from the primarily selected reference images.
前記周囲色抽出部は、前記入力画像の対象領域のサイズが大きいほど、前記周囲領域のサイズを大きくとることを特徴とする請求項1に記載の画像調整装置。   The image adjustment apparatus according to claim 1, wherein the surrounding color extraction unit increases the size of the surrounding area as the size of the target area of the input image increases. 前記入力画像の対象領域の代表色を対象色として抽出する対象色抽出部と、
前記対象色抽出部によって抽出された対象色に類似した対象色が対応付けられていることを抽出条件として、少なくとも1つの参照画像を抽出する参照画像抽出部と、を備え、
前記データベースに格納された参照画像は、前記対象色が更に予め対応付けられ、
前記参照画像選択部は、前記参照画像抽出部によって抽出された参照画像の中から1つの参照画像を二次選択することを特徴とする請求項1または請求項2に記載の画像調整装置。
A target color extraction unit that extracts a representative color of a target region of the input image as a target color;
A reference image extraction unit that extracts at least one reference image on the condition that a target color similar to the target color extracted by the target color extraction unit is associated,
The reference image stored in the database is further associated with the target color in advance,
The image adjustment apparatus according to claim 1, wherein the reference image selection unit secondarily selects one reference image from the reference images extracted by the reference image extraction unit.
前記入力画像の対象領域に表された対象物を判別する対象物判別部と、
前記対象物判別部によって判別された対象物が対応付けられていることを抽出条件として、少なくとも1つの参照画像を抽出する参照画像抽出部と、を備え、
前記データベースに格納された参照画像は、前記対象物が更に予め対応付けられ、
前記参照画像選択部は、前記参照画像抽出部によって抽出された参照画像の中から1つの参照画像を二次選択することを特徴とする請求項1乃至請求項3の何れかに記載の画像調整装置。
An object discriminating unit for discriminating an object represented in the target area of the input image;
A reference image extraction unit that extracts at least one reference image with an extraction condition that the object determined by the object determination unit is associated,
The reference image stored in the database is further associated with the object in advance,
The image adjustment according to any one of claims 1 to 3, wherein the reference image selection unit secondarily selects one reference image from the reference images extracted by the reference image extraction unit. apparatus.
入力画像の中で選択された対象領域の色調を変更する画像調整装置であって、
前記対象領域の周囲領域の代表色を周囲色として抽出する周囲色抽出部と、
前記対象領域を設定した又は前記対象領域と前記周囲色とを対応付けした、複数の参照画像が格納されたデータベースと、
前記データベースから少なくとも1つの参照画像の選択を受け付ける参照画像選択部と、
前記入力画像の対象領域における色調を前記参照画像選択部によって選択された参照画像の対象領域における色調に色成分毎に変更する色調変更部と、を備え、
前記参照画像選択部は、前記データベースに格納された前記対象領域を設定した前記複数の参照画像から、前記対象領域の外側を前記抽出した入力画像の周囲色又は類似色で塗りつぶした少なくとも1つの参照画像を表示部に表示してユーザーの選択を求める
ことを特徴とする画像調整装置。
An image adjustment device that changes a color tone of a target area selected in an input image,
A surrounding color extraction unit that extracts a representative color of the surrounding area of the target area as a surrounding color;
A database storing a plurality of reference images in which the target area is set or the target area is associated with the surrounding color;
A reference image selection unit for receiving selection of at least one reference image from the database;
A color tone changing unit that changes the color tone in the target area of the input image to the color tone in the target area of the reference image selected by the reference image selection unit for each color component;
The reference image selection unit includes at least one reference in which the outside of the target area is filled with a peripheral color or a similar color of the extracted input image from the plurality of reference images in which the target area is stored in the database. An image adjustment apparatus that displays an image on a display unit and requests a user's selection.
入力画像の中で選択された対象領域の色調を変更する画像調整装置が実行する画像調整方法であって、
前記対象領域の周囲領域の代表色を周囲色として抽出する周囲色抽出ステップと、
前記対象領域を設定した又は前記対象領域と前記周囲色とを対応付けした、複数の参照画像が格納されたデータベースから少なくとも1つの参照画像の選択を受け付ける参照画像選択ステップと、
前記入力画像の対象領域における色調を前記参照画像選択部によって選択された参照画像の対象領域における色調に色成分毎に変更する色調変更ステップと、を備え、
前記参照画像選択ステップでは、前記データベースに格納された前記対象領域と前記周囲色とを対応付けした前記複数の参照画像から、前記周囲色に類似した周囲色が対応付けられていることを条件として、少なくとも1つの参照画像を一次選択したうえで、その一次選択された参照画像の中から1つの参照画像を選択する
ことを特徴とする画像調整方法。
An image adjustment method executed by an image adjustment apparatus that changes a color tone of a target area selected in an input image,
A surrounding color extracting step of extracting a representative color of the surrounding area of the target area as a surrounding color;
A reference image selection step for accepting selection of at least one reference image from a database in which a plurality of reference images are stored in which the target region is set or the target region is associated with the surrounding color;
A color tone changing step for changing the color tone in the target area of the input image to the color tone in the target area of the reference image selected by the reference image selection unit for each color component, and
In the reference image selection step, on the condition that a surrounding color similar to the surrounding color is associated from the plurality of reference images in which the target region stored in the database is associated with the surrounding color. An image adjustment method comprising: first selecting at least one reference image and selecting one reference image from the primarily selected reference images.
前記周囲色抽出ステップでは、前記入力画像の対象領域のサイズが大きいほど、前記周囲領域のサイズを大きくとることを特徴とする請求項6に記載の画像調整方法。   The image adjustment method according to claim 6, wherein, in the surrounding color extraction step, the size of the surrounding area is increased as the size of the target area of the input image is increased. 前記入力画像の対象領域の代表色を対象色として抽出する対象色抽出ステップを含み、
前記データベースに格納された参照画像は、前記対象色が更に予め対応付けられ、
前記参照画像選択ステップでは、前記対象色抽出ステップで抽出された対象色に類似した対象色が対応付けられていることを更に選択条件として、少なくとも1つの参照画像を二次選択することを特徴とする請求項6又は請求項7に記載の画像調整方法。
A target color extracting step of extracting a representative color of a target area of the input image as a target color;
The reference image stored in the database is further associated with the target color in advance,
In the reference image selection step, at least one reference image is secondarily selected on the condition that a target color similar to the target color extracted in the target color extraction step is associated. The image adjusting method according to claim 6 or 7.
前記入力画像の対象領域に表された対象物を判別する対象物判別ステップを含み、
前記データベースに格納された参照画像は、前記対象物が更に予め対応付けられ、
前記参照画像選択ステップでは、前記対象物判別ステップで判別された対象物が対応付けられていることを更に選択条件として、少なくとも1つの参照画像を二次選択することを特徴とする請求項6乃至請求項8の何れか1の請求項に記載の画像調整方法。
An object determination step of determining an object represented in the target area of the input image;
The reference image stored in the database is further associated with the object in advance,
The at least one reference image is secondarily selected in the reference image selection step, with the selection condition that the objects determined in the object determination step are associated with each other. The image adjustment method according to claim 8.
入力画像の中で選択された対象領域の色調を変更する画像調整装置を構成するコンピュータに実行させる画像調整プログラムであって、
前記対象領域の周囲領域の代表色を周囲色として抽出する周囲色抽出部と、
前記対象領域を設定した又は前記対象領域と前記周囲色とを対応付けした、複数の参照画像が格納されたデータベースから少なくとも1つの参照画像の選択を受け付ける参照画像選択ステップと、
前記入力画像の対象領域における色調を前記参照画像選択部によって選択された参照画像の対象領域における色調に色成分毎に変更する色調変更ステップと、を備え、
前記参照画像選択部は、前記データベースに格納された前記対象領域を設定した前記複数の参照画像から、前記対象領域の外側を前記抽出した入力画像の周囲色又は類似色で塗りつぶした少なくとも1つの参照画像を表示部に表示してユーザーの選択を求める
ことを特徴とする画像調整方法。
An image adjustment program to be executed by a computer constituting an image adjustment apparatus that changes the color tone of a target area selected in an input image,
A surrounding color extraction unit that extracts a representative color of the surrounding area of the target area as a surrounding color;
A reference image selection step for accepting selection of at least one reference image from a database in which a plurality of reference images are stored in which the target region is set or the target region is associated with the surrounding color;
A color tone changing step for changing the color tone in the target area of the input image to the color tone in the target area of the reference image selected by the reference image selection unit for each color component, and
The reference image selection unit includes at least one reference in which the outside of the target area is filled with a peripheral color or a similar color of the extracted input image from the plurality of reference images in which the target area is stored in the database. An image adjustment method comprising: displaying an image on a display unit and requesting a user's selection.
入力画像の中で選択された対象領域の色調を変更する画像調整装置を構成するコンピュータに実行させる画像調整プログラムであって、
前記対象領域の周囲領域の代表色を周囲色として抽出する周囲色抽出ステップと、
前記対象領域を設定した又は前記対象領域と前記周囲色とを対応付けした、複数の参照画像が格納されたデータベースから少なくとも1つの参照画像の選択を受け付ける参照画像選択ステップと、
前記入力画像の対象領域における色調を前記参照画像選択部によって選択された参照画像の対象領域における色調に色成分毎に変更する色調変更ステップと、を備え、
前記参照画像選択ステップでは、前記データベースに格納された前記対象領域と前記周囲色とを対応付けした前記複数の参照画像から、前記周囲色に類似した周囲色が対応付けられていることを条件として、少なくとも1つの参照画像を一次選択したうえで、その一次選択された参照画像の中から1つの参照画像を選択すること
を含む画像調整プログラム。
An image adjustment program to be executed by a computer constituting an image adjustment apparatus that changes the color tone of a target area selected in an input image,
A surrounding color extracting step of extracting a representative color of the surrounding area of the target area as a surrounding color;
A reference image selection step for accepting selection of at least one reference image from a database in which a plurality of reference images are stored in which the target region is set or the target region is associated with the surrounding color;
A color tone changing step for changing the color tone in the target area of the input image to the color tone in the target area of the reference image selected by the reference image selection unit for each color component, and
In the reference image selection step, on the condition that a surrounding color similar to the surrounding color is associated from the plurality of reference images in which the target region stored in the database is associated with the surrounding color. An image adjustment program comprising: first selecting at least one reference image and selecting one reference image from the primarily selected reference images.
入力画像の中で選択された対象領域の色調を変更する画像調整装置を構成するコンピュータに実行させる画像調整プログラムであって、
前記対象領域の周囲領域の代表色を周囲色として抽出する周囲色抽出部と、
前記対象領域を設定した又は前記対象領域と前記周囲色とを対応付けした、複数の参照画像が格納されたデータベースから少なくとも1つの参照画像の選択を受け付ける参照画像選択ステップと、
前記入力画像の対象領域における色調を前記参照画像選択部によって選択された参照画像の対象領域における色調に色成分毎に変更する色調変更ステップと、を備え、
前記参照画像選択部は、前記データベースに格納された前記対象領域を設定した前記複数の参照画像から、前記対象領域の外側を前記抽出した入力画像の周囲色又は類似色で塗りつぶした少なくとも1つの参照画像を表示部に表示してユーザーの選択を求めること
を含む画像調整プログラム。
An image adjustment program to be executed by a computer constituting an image adjustment apparatus that changes the color tone of a target area selected in an input image,
A surrounding color extraction unit that extracts a representative color of the surrounding area of the target area as a surrounding color;
A reference image selection step for accepting selection of at least one reference image from a database in which a plurality of reference images are stored in which the target region is set or the target region is associated with the surrounding color;
A color tone changing step for changing the color tone in the target area of the input image to the color tone in the target area of the reference image selected by the reference image selection unit for each color component, and
The reference image selection unit includes at least one reference in which the outside of the target area is filled with a peripheral color or a similar color of the extracted input image from the plurality of reference images in which the target area is stored in the database. An image adjustment program that includes displaying an image on the display and prompting the user for selection.
請求項11又は請求項12に記載の画像調整プログラムがコンピュータに読み取り可能に記録された記録媒体。   A recording medium on which the image adjustment program according to claim 11 or 12 is recorded so as to be readable by a computer.
JP2013240962A 2013-05-31 2013-11-21 Image adjustment device Expired - Fee Related JP6287102B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013240962A JP6287102B2 (en) 2013-05-31 2013-11-21 Image adjustment device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2013115056 2013-05-31
JP2013115056 2013-05-31
JP2013240962A JP6287102B2 (en) 2013-05-31 2013-11-21 Image adjustment device

Publications (2)

Publication Number Publication Date
JP2015008449A true JP2015008449A (en) 2015-01-15
JP6287102B2 JP6287102B2 (en) 2018-03-07

Family

ID=52338452

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013240962A Expired - Fee Related JP6287102B2 (en) 2013-05-31 2013-11-21 Image adjustment device

Country Status (1)

Country Link
JP (1) JP6287102B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111968605A (en) * 2020-08-28 2020-11-20 维沃移动通信有限公司 Exposure adjusting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010012399A1 (en) * 2000-02-03 2001-08-09 Daisetsu Tohyama Color image processing apparatus capable of reproducing colors with high-fidelity visually
JP2007189339A (en) * 2006-01-11 2007-07-26 Fujifilm Corp Image processor, processing method and program
JP2008263597A (en) * 2007-03-16 2008-10-30 Nikon Corp Image processing apparatus, imaging apparatus and image processing program
JP2012003324A (en) * 2010-06-14 2012-01-05 Nikon Corp Image processing system, imaging apparatus, image processing program and memory medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010012399A1 (en) * 2000-02-03 2001-08-09 Daisetsu Tohyama Color image processing apparatus capable of reproducing colors with high-fidelity visually
JP2007189339A (en) * 2006-01-11 2007-07-26 Fujifilm Corp Image processor, processing method and program
JP2008263597A (en) * 2007-03-16 2008-10-30 Nikon Corp Image processing apparatus, imaging apparatus and image processing program
JP2012003324A (en) * 2010-06-14 2012-01-05 Nikon Corp Image processing system, imaging apparatus, image processing program and memory medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111968605A (en) * 2020-08-28 2020-11-20 维沃移动通信有限公司 Exposure adjusting method and device

Also Published As

Publication number Publication date
JP6287102B2 (en) 2018-03-07

Similar Documents

Publication Publication Date Title
KR102411237B1 (en) Face image processing system, face image processing method and face image processing program
US20150227819A1 (en) Image processing method and apparatus using trained dictionary
US9734585B2 (en) Image processing apparatus, image processing method, and storage medium for determining whether a target pixel is a character
US8400523B2 (en) White balance method and white balance device
CN112328345B (en) Method, apparatus, electronic device and readable storage medium for determining theme colors
KR20160103097A (en) Image processing apparatus, image processing system, image processing method, and recording medium
EP3068123A1 (en) Image generator and image generation method
CN110537362B (en) Color processing program, color processing method, color sensation inspection system, output system, color sensation correction image processing system, and color sensation simulation image processing system
KR102094507B1 (en) Method of generating hierarchical saliency images detection with selective refinement, Computer readable storage medium of recording the method and an saliency image generationg device
JP2011065604A (en) Image processing method and image processor
JP6287102B2 (en) Image adjustment device
JP5824423B2 (en) Illumination light color estimation device, illumination light color estimation method, and illumination light color estimation program
JP2013141200A (en) Image processor, program, image processing method, and imaging apparatus
KR102160247B1 (en) Electronic apparatus and Method for controlling the electronic apparatus thereof
US10140731B2 (en) Image processing apparatus, image processing method, and storage medium
JP6091400B2 (en) Image processing device
US10026152B2 (en) Image processing apparatus for providing visibility of an image while maintaining color in a natural state
JP6631360B2 (en) Image processing apparatus and image processing method
JP4515964B2 (en) Image correction apparatus and method, and image correction program
JP2006031682A (en) Lookup table creation device, method and program
KR20150091717A (en) Method and apparatus for interpolating color signal of image and medium record of
JP6292061B2 (en) Information processing apparatus and program
JP6361169B2 (en) Image processing apparatus and image processing program
JP6150576B2 (en) Image processing apparatus and control method thereof
JP2006146290A (en) Image correction device and method, and image correction program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161108

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170731

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170905

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171106

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171114

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171222

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180122

R151 Written notification of patent or utility model registration

Ref document number: 6287102

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees