JP6797585B2 - Image processing device and its control method and program - Google Patents
Image processing device and its control method and program Download PDFInfo
- Publication number
- JP6797585B2 JP6797585B2 JP2016139139A JP2016139139A JP6797585B2 JP 6797585 B2 JP6797585 B2 JP 6797585B2 JP 2016139139 A JP2016139139 A JP 2016139139A JP 2016139139 A JP2016139139 A JP 2016139139A JP 6797585 B2 JP6797585 B2 JP 6797585B2
- Authority
- JP
- Japan
- Prior art keywords
- light source
- virtual light
- subject
- image
- respect
- 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
Links
Images
Landscapes
- Image Generation (AREA)
- Studio Devices (AREA)
- Processing Or Creating Images (AREA)
Description
本発明は、画像に任意の照明効果を与える、いわゆるリライティング処理を施す像処理装置並びにその制御方法及びプログラムに関する。 The present invention relates to an image processing apparatus that performs so-called rewriting processing that gives an arbitrary lighting effect to an image, and a control method and program thereof.
従来、撮影後の画像中の被写体に対して、仮想的な光源(以降、「仮想光源」と呼ぶ)からの光で照明した効果を与える画像処理、いわゆるリライティング処理が知られている。この処理は例えば、環境光によって生じる被写体の陰影が好ましくないときに、この陰影をより好ましい態様に補正することに利用される。 Conventionally, an image process that gives an effect of illuminating a subject in an image after shooting with light from a virtual light source (hereinafter referred to as a "virtual light source"), a so-called rewriting process, is known. This process is used, for example, to correct the shadow of a subject caused by ambient light in a more preferable manner when the shadow of the subject is not preferable.
好ましい陰影を得るには、仮想光源の位置及び方向等を調節する機能は必須であるが、ユーザが、その調節を直観的に行えるユーザインターフェースが望まれる。特許文献1には、被写体に対する光源の位置関係を示すために光源をアイコンで表示することが提案されている。光源のアイコンは、被写体を直接照射するように描写され、同時に被写体におけるリライティングの効果のプレビューが表示される。
In order to obtain a preferable shadow, a function of adjusting the position and direction of the virtual light source is indispensable, but a user interface that allows the user to intuitively adjust the position is desired.
特許文献1に記載の技術では、仮想光源のアイコンと被写体のプレビューを同一空間で表現している。このため、仮想光源と被写体プレビューをどちらも表示するためには、仮想光源が遠くなるほど被写体を小さく表示しないといけなくなる。また、仮想光源のアイコンを被写体の手前側に移動すると、アイコンが被写体を隠してしまい、プレビューが見づらくなってしまう。
In the technique described in
本発明は、このような不都合を解消し、被写体に対する仮想光源の方向及び距離などの位置関係を直観的に把握できる像処理装置並びにその制御方法及びプログラムを提示することを目的とする。 It is an object of the present invention to eliminate such inconveniences and to present an image processing device capable of intuitively grasping a positional relationship such as a direction and a distance of a virtual light source with respect to a subject, and a control method and a program thereof.
上記目的を達成するために、本発明に係る画像処理装置は、表示部に表示された画像のうち、指定された被写体に対する仮想光源の方向と、前記指定された被写体に対する前記仮想光源の距離とを変更する変更手段と、前記表示部に前記画像と共に、指定された被写体に対応する第1のアイテムと前記仮想光源に対応する第2のアイテムを含む、指定された被写体に対する前記仮想光源の方向を示す所定のアイテムを表示するように制御する表示制御手段と、前記所定のアイテムにおいて、前記第1のアイテムに対する前記第2のアイテムの位置を変更する第1の操作と、前記指定された被写体に対する前記仮想光源の距離を変更する第2の操作とを受け付ける受付手段と、を有する画像処理装置であって、前記受付手段が前記第1の操作と前記第2の操作を受け付けたことに応じて、前記指定された被写体に対する前記仮想光源の方向と、前記指定された被写体に対する前記仮想光源の距離とを共に前記変更手段がすることを特徴とする。 In order to achieve the above object, the image processing apparatus according to the present invention has the direction of the virtual light source with respect to the designated subject and the distance of the virtual light source with respect to the designated subject among the images displayed on the display unit. The direction of the virtual light source with respect to the specified subject, including the changing means for changing the above, the image, and the first item corresponding to the specified subject and the second item corresponding to the virtual light source on the display unit. A display control means for controlling the display of a predetermined item indicating the above, a first operation of changing the position of the second item with respect to the first item in the predetermined item, and the designated subject. An image processing device having a receiving means for receiving a second operation for changing the distance of the virtual light source with respect to the above, in response to the receiving means receiving the first operation and the second operation. Te, wherein the the direction of the virtual light source with respect to the designated object, both the changing unit and the distance of the virtual light source with respect to the designated subject to.
本発明によれば、主被写体に対する仮想光源の方向や距離などの位置関係を直観的に把握できるユーザインターフェースを実現できる。 According to the present invention, it is possible to realize a user interface that can intuitively grasp the positional relationship such as the direction and distance of the virtual light source with respect to the main subject.
以下、図面を参照して、本発明の実施例を詳細に説明する。 Hereinafter, examples of the present invention will be described in detail with reference to the drawings.
図1は、本発明に係る画像処理装置の一実施例の概略構成ブロック図を示す。 FIG. 1 shows a schematic block diagram of an embodiment of an image processing apparatus according to the present invention.
101は、画像処理装置100を構成する各モジュールを制御するCPUである。102は、プログラム及びパラメータを格納するROMである。ROM102には、画像処理装置100を制御するための、CPU101上で実行される制御プログラムが格納されている。
103は、ユーザによる操作、具体的には、仮想光源の位置及び距離の変更及び決定などを受け付ける操作部である。操作部103は、マウス及び十字キーなどのボタン並びにタッチパネルなどからなる。ここでは、操作部103としてタッチパネルを想定して説明する。
104は、各モジュールを接続するバスである。105は、メイン画像及びサブ画像等の種々のデータを一時記憶するDRAMである。メイン画像は、リライティング処理の対象となる画像である。サブ画像は、リライティング処理の際に、メイン画像に含まれる主被写体に対する仮想光源の位置と方向を示し、仮想光源の位置と方向を操作するための操作用画像または補助画像である。106は、各モジュールによるDRAM105へアクセスを仲介するメモリI/Fである。
108は、メイン画像に含まれる1または複数の被写体からリライティング処理の対象となる主被写体を検出または決定する主被写体検出手段である。主被写体を特定する方法には、例えば、顔検出で最も大きい顔を特定する方法、及び、ユーザによって操作部103から指定された範囲で被写体検出し、主被写体とする方法などがある。
109は、仮想光源の出力光をメイン画像に含まれる主被写体に照射することにより主被写体への陰影を生成するリライティングの画像処理を施すリライティング手段である。リライティング処理の前提として、対象の被写体の立体形状を知る必要があり、撮像時に3次元形状を計測し、撮像画像と一緒に画像処理装置100に入力する。3次元形状は例えば、撮影時にカメラと被写体との距離について画素ごとに取得した距離情報から決定する。他にも、ステレオカメラを使って距離画像を得る方法もある。
図9を参照して、リライティング処理の基本を説明する。被写体900の立体形状を推定し、所定の間隔で法線ベクトル901〜907を算出する。908は環境光ベクトルであり、909および910は仮想光源ベクトルである。仮想光源(仮想光源ベクトル909,910)が無い状態では、法線ベクトル901〜907と環境光ベクトル908の方向成分が180度に近いほど、被写体900は明るい。具体的には、法線ベクトル901周辺に比べて、法線ベクトル906周辺の領域が明るい状態である。仮想光源ベクトル909を用いてリライティング処理する場合、仮想光源ベクトル909と方向成分が180度に近い法線ベクトル905〜906周辺の領域が明るくなる。仮想光源ベクトル910を用いてリライティング処理する場合、仮想光源ベクトル910と方向成分が180度に近い法線ベクトル901〜902周辺の領域が明るくなる。
The basics of the rewriting process will be described with reference to FIG. The three-dimensional shape of the
110は、サブ画像(メイン画像に含まれる主被写体と仮想光源との位置・距離関係を操作するための補助画像)を作成するサブ画像作成手段(補助画像作成手段)である。サブ画像作成手段110の詳細な処理は後述する。 Reference numeral 110 denotes a sub-image creating means (auxiliary image creating means) for creating a sub-image (an auxiliary image for manipulating the positional / distance relationship between the main subject and the virtual light source included in the main image). The detailed processing of the sub-image creating means 110 will be described later.
111は、リライティング手段109によってリライティングを施されたメイン画像と、サブ画像作成手段110によって作成されたサブ画像を表示する表示部である。表示部111は、同一画面上にメイン画像とサブ画像を同時に表示しても良いし、別々の画面上に表示してもよい。後者の場合、表示部111は、2つの表示装置を有するか、コンピュータシステムのウインドウ表示システム上の2つの表示ウインドウを有する。
112は、メイン画像およびサブ画像を表示部111に出力する表示用インターフェース(I/F)である。
120は、リライティング処理の対象となる主被写体を含むメイン画像の画像データを格納する記録媒体である。記録媒体120には、主被写体の3次元形状データも記録されている。記録媒体120の代わりに、メイン画像と主被写体の3次元形状データを外部に提供する、ネットワーク上のサーバであってもよい。更には、ネットワークカメラと主被写体の3次元形状を計測する距離画像カメラから画像データと主被写体の3次元形状データを供給される構成であってもよい。
図2を参照して、メイン画像と、サブ画像作成手段110によって作成されるサブ画像、および仮想光源の位置と距離の変更方法について説明する。図2(a)は、メイン画像200を示しており、主被写体である人物201が写っている。図2(b)〜図2(e)はサブ画像202を示す。図2(b)および図2(c)は、仮想光源の位置を変更する操作方法を説明する図であり、スライド操作によって仮想光源の位置を変更する様子を示す。図2(d)および図2(e)は、主被写体から仮想光源までの距離を変更する操作方法を説明する図であり、ピンチ操作によって距離を変更する様子を示す。
A method of changing the position and distance of the main image, the sub-image created by the sub-image creating means 110, and the virtual light source will be described with reference to FIG. FIG. 2A shows the
図2(b)〜図2(e)において、203は、人物201に相当する位置を示す被写体オブジェクトである。本実施例では、被写体オブジェクト203として、人型の図柄を用いている。
In FIGS. 2 (b) to 2 (e), 203 is a subject object indicating a position corresponding to the
204は、人物201にリライティングの画像処理を施すための仮想光源の位置を示す仮想光源オブジェクトである。本実施例では、仮想光源オブジェクト204として、懐中電灯の図柄を用いることとし、懐中電灯の光を被写体オブジェクト203に向くように描画される。
205は、被写体オブジェクト203を中心に置き、被写体オブジェクト203から仮想光源オブジェクト204までの距離に相当する半径の球面である。球面205には、被写体オブジェクト203に対して手前側の経緯線が描画される。
206は、操作部103(タッチパネル)を使ったスライド操作によって仮想光源オブジェクト204の位置を変更しようとするユーザの手を示す。ここでは、ユーザは、サブ画像に表示される仮想光源オブジェクト204の位置を参照しながら、操作部103のスライド操作により仮想光源オブジェクト204の位置を変更する。207は、操作部103のピンチ操作によって、仮想光源オブジェクト204の主被写体までの距離を変更するユーザの手を示す。このように、本実施例では、仮想光源オブジェクト204に対するスライド操作により仮想光源の主被写体に対する位置または照明方向を調整し、ピンチイン・アウト操作により主被写体との距離を調整する。
図2に示す例では、図2(b)に示すように、操作部103において手206が仮想光源オブジェクト204を被写体オブジェクト203に対して右下から右上にスライド操作することによって、仮想光源の位置を変更する。サブ画像作成手段110は、仮想光源の移動前には、懐中電灯の光が被写体オブジェクト203の方向である左上を向くように描画する。サブ画像作成手段110は、仮想光源の移動中にも、仮想光源オブジェクト204の懐中電灯が被写体オブジェクト203の方向に徐々に向きを変えるように仮想光源オブジェクト204を描画する。被写体に対して右上の位置において、操作部103から手206を離すことによって仮想光源オブジェクト204の位置を決定すると、サブ画像作成手段110は、懐中電灯を左下を向いた状態にして仮想光源オブジェクト204の描画を停止する。
In the example shown in FIG. 2, as shown in FIG. 2B, the
図2(c)に示すように、操作部103において手206が球面205の範囲内から範囲外へ移動するようにスライド操作することによって、仮想光源を正面側から背面側にその位置を変更できる。サブ画像作成手段110は、仮想光源オブジェクト204を、球面205の経緯線の背後に、手前側にあるときよりも小さいサイズで、描画する。このような描画により、仮想光源が背面側に位置することを表現する。逆に、手206が球面205の範囲外から範囲内にスライド操作することで、逆に背後から手前側に仮想光源を移動させる。
As shown in FIG. 2C, the position of the virtual light source can be changed from the front side to the back side by sliding the
図2(d)に示すように手207の2本の指を広げた状態から、図2(e)に示すように手207の2本指を狭めた状態までピンチ操作を行うことで、仮想光源を被写体に近づかせる。ピンチ操作中、サブ画像作成手段110は、球面205を徐々に小さくなるように描画し、球面205の大きさの変化に連動して、仮想光源オブジェクト204を球面205に付着して移動するように、仮想光源オブジェクト204を描画する。
A virtual pinch operation is performed from the state in which the two fingers of the
距離が最も遠い無限遠になったときや、予め定めた最も近い距離になったときには、サブ画像作成手段110は、球面205を点滅させたり、その色を変更するなど、球面205の描画に特徴を付加することで、ユーザに通知する。
When the distance becomes the farthest infinity or the closest predetermined distance, the sub-image creating means 110 is characterized by drawing the
図3は、本実施例の動作フローチャートを示す。図3を参照して、本実施例の特徴的な動作を説明する。図3に示す動作を実現するプログラムがROM102に格納されている。CPU101は、そのプログラムをROM102から読み込み実行することで、図3に示す動作を実現する。
FIG. 3 shows an operation flowchart of this embodiment. The characteristic operation of this embodiment will be described with reference to FIG. A program that realizes the operation shown in FIG. 3 is stored in the
S301で、CPU101は、仮想光源の位置情報および距離情報にデフォルト値に設定し、リライティング手段109およびサブ画像作成手段110に出力する。デフォルト値は例えば、被写体の真正面など固定値としてもよいし、環境光による陰影を判定してお勧めの位置に設定しても良い。
In S301, the
S302で、CPU101は、主被写体検出手段108に主被写体を特定させる。主被写体検出手段108は、メモリI/F106を介してDRAM105から読み出したメイン画像200から主被写体を検出する。図2に示す例では、主被写体検出手段108は、人物201を主被写体として特定する。
In S302, the
S303で、CPU101は、リライティング手段109に指示して、仮想光源によるリライティング処理を実行させる。リライティング手段109は、CPU101から供給された仮想光源の位置情報および距離情報に基づいて仮想光源の位置を設定する。そして、リライティング手段109は、メモリI/F106を介してDRAM105からメイン画像200を読み出し、メイン画像200の人物201に対してリライティングの画像処理を施す。リライティング手段109は、リライティングを施されたメイン画像を、メモリI/F106を介してDRAM105に格納する。
In S303, the
S304で、CPU101は、サブ画像作成手段110にサブ画像を生成させる。サブ画像作成手段110は、CPU101からの仮想光源の位置情報および距離情報に基づいて仮想光源オブジェクト204及び球面205を描画することでサブ画像を作成する。そして、サブ画像作成手段110は、作成したサブ画像をメモリI/F106を介してDRAM105に格納する。
In S304, the
S305で、CPU101は、メイン画像とサブ画像を表示部111に表示する。すなわち、CPU101は、メモリI/F106を介してDRAM105からリライティング処理されたメイン画像200とサブ画像202を読み出し、表示用I/F112を介して表示部111に供給する。
In S305, the
S306で、CPU101は、ユーザによって仮想光源の位置や距離を変更する指示が操作部103から入力されたか否かを判定する。仮想光源の位置や距離が変更された場合、CPU101は、S308に進み、変更されない場合、CPU101は、S307に進む。
In S306, the
S307で、CPU101は、ユーザによって仮想光源の位置と距離を決定する指示が操作部103から入力されたか否かを判定する。仮想光源の位置と距離が決定された場合、CPU101は、図3に示す処理を終了し、位置または距離が決定されない場合は、S306に戻る。
In S307, the
S308で、CPU101は、ユーザによって操作部103から変更された仮想光源の位置や距離に基づいて仮想光源の位置情報および距離情報を取得し、リライティング手段109およびサブ画像作成手段110へ出力する。その後、CPU101は、S303に戻り、仮想光源の変更された位置・距離に基づきメイン画像とサブ画像を再作成する。
In S308, the
CPU101は、図3に示す処理で得られたリライティング処理結果を記録媒体120に記録するか、図示しないネットワークを介して外部に送信する。
The
図4は、サブ画像の別例を示す。図2では、主被写体に対する仮想光源の方向(照明方向)を懐中電灯の向きで表現したが、図4では、被写体オブジェクトを月をイメージする外観とし、仮想光源の方向をその満ち欠けで表現するようにした。すなわち、図4に示すサブ画像402では、主被写体に対する仮想光源オブジェクト404の方向に応じて、被写体オブジェクト403に影を描画するようにした。
FIG. 4 shows another example of the sub image. In FIG. 2, the direction of the virtual light source (illumination direction) with respect to the main subject is expressed by the direction of the flashlight, but in FIG. I made it. That is, in the sub-image 402 shown in FIG. 4, a shadow is drawn on the
図4(a)は、主被写体に対して仮想光源を手前側の右下から照射している状態のサブ画像402を示す。図4(b)は、主被写体に対して仮想光源を背後側の右上から照射している状態のサブ画像402を示す。図4(c)は、主被写体に対して仮想光源を右横から照射している状態のサブ画像402を示す。図4に示すように、月の満ち欠けと同様に、仮想光源オブジェクト404の方向から照明したときに被写体オブジェクト403に出来る陰影を描画する。
FIG. 4A shows a sub-image 402 in which a virtual light source is applied to the main subject from the lower right on the front side. FIG. 4B shows a sub-image 402 in which a virtual light source is applied to the main subject from the upper right on the back side. FIG. 4C shows a sub-image 402 in which a virtual light source is applied to the main subject from the right side. As shown in FIG. 4, a shadow formed on the
図5は、サブ画像の更に別の構成を示す。図5に示すサブ画像502では、仮想光源オブジェクト504によって主被写体(被写体オブジェクト503)が球面505に落とす影506を描画する。この影506の位置により、ユーザは、主被写体に対する仮想光源の方向を認識しやすくなる。
FIG. 5 shows yet another configuration of the sub-image. In the sub-image 502 shown in FIG. 5, a
図5(a)は、主被写体に対して仮想光源を手前側の右下から照射している状態のサブ画像502を示す。このとき、影506は、球面505の奥側に出来るので、球面505の経緯線の下に球面505に合わせて描画される。影506と手前側の経緯線の色が近い場合は、視認性を上げるために、影506の領域内における手前側の経緯線の色を反転させて描画しても良い。
FIG. 5A shows a sub-image 502 in a state where the main subject is irradiated with a virtual light source from the lower right on the front side. At this time, since the
図5(b)は、主被写体に対して仮想光源を背後側の右上から照射している状態のサブ画像502を示す。このとき、影506は球面505の手前側に出来るので、影506の領域内においては球面505の経緯線を消すようにして影506を描画する。また、図5(b)における影506は図5(a)のそれよりも手前側に位置するので、図5(a)よりも図5(b)の方が大きくなるように影506を描画する。
FIG. 5B shows a sub-image 502 in a state where the main subject is irradiated with a virtual light source from the upper right on the back side. At this time, since the
図5(c)は、主被写体に対して仮想光源を手前側の右横から照射している状態のサブ画像502を示す。このとき、影506は、球面505の手前側と奥側の両方に出来るので、影506の奥側に落ちた部分は経緯線の下に描画され、手前側に落ちた部分は経緯線を消すように描画される。
FIG. 5C shows a sub-image 502 in a state where the main subject is irradiated with a virtual light source from the right side on the front side. At this time, since the
図5(d)は、主被写体から仮想光源の距離が図5(a)よりも近いときのサブ画像502を示す。このとき、図5(a)よりも図5(d)の方が、球面505に対する影506を大きく描画する。この理由を図5(e)および図5(f)を用いて説明する。図5(e)は、主被写体から仮想光源までの距離が無限遠である場合を示す。この場合、仮想光源の光線の向きは平行になるので、被写体が落とす影は被写体と同じ大きさになる。一方、図5(f)は、主被写体から仮想光源までの距離が近い場合を示す。この場合、仮想光源の光線の向きは放射状になるので、被写体が落とす影は被写体の大きさよりも大きくなる。
FIG. 5D shows a sub-image 502 when the distance of the virtual light source from the main subject is closer than that of FIG. 5A. At this time, the
図5に示すサブ画像でも、図4に示す表示方法を併用しても良い。すなわち、被写体オブジェクト上で照明部分を明るく(非照明部分を暗く)表示しつつ、球面505上に影506を表示する。
The sub-image shown in FIG. 5 may also be used in combination with the display method shown in FIG. That is, the
図6は、サブ画像の第4の例を示す。図6に示すサブ画像602では、主被写体に対して仮想光源が近いほど、被写体オブジェクトを大きく描画し、仮想光源が遠いほど被写体オブジェクトを小さく描画する。 FIG. 6 shows a fourth example of the sub-image. In the sub-image 602 shown in FIG. 6, the closer the virtual light source is to the main subject, the larger the subject object is drawn, and the farther the virtual light source is, the smaller the subject object is drawn.
図6(a)は、主被写体に対する仮想光源の距離が近いときのサブ画像602を示す。図6(b)は、主被写体に対する仮想光源の距離が遠いときのサブ画像602を示す。図6(c)は、主被写体に対する仮想光源の距離が無限遠のときのサブ画像602を示す。 FIG. 6A shows a sub-image 602 when the distance of the virtual light source to the main subject is short. FIG. 6B shows a sub-image 602 when the virtual light source is far away from the main subject. FIG. 6C shows a sub-image 602 when the distance of the virtual light source to the main subject is infinity.
図6に示すように、仮想光源オブジェクト604が被写体オブジェクト603に近いほど、被写体オブジェクト603を大きく描画する。図6(c)に示すように、仮想光源オブジェクト604が被写体オブジェクト603から無限遠の距離にある場合、被写体オブジェクト603を点の形状で描画してもよい。
As shown in FIG. 6, the closer the virtual
図7は、サブ画像の第5の例を示す。図7に示すサブ画像702では、図2に示す仮想光源オブジェクト204と同様に蛍光灯式の仮想光源オブジェクト704を採用しつつ、その仮想光源オブジェクト704の大きさを主被写体との距離に応じて変更するようにした。
FIG. 7 shows a fifth example of the sub-image. In the sub-image 702 shown in FIG. 7, a fluorescent lamp type virtual
図7(a)は、主被写体に対して仮想光源の距離が近く、手前側の右下から照射している状態のサブ画像702を示す。図7(b)は、主被写体に対して仮想光源の距離が遠く、手前側の右下から照射している状態のサブ画像702を示す。 FIG. 7A shows a sub-image 702 in a state where the virtual light source is close to the main subject and is illuminated from the lower right on the front side. FIG. 7B shows a sub-image 702 in a state where the virtual light source is far from the main subject and is illuminated from the lower right on the front side.
図7に示すように、仮想光源オブジェクト704が被写体オブジェクト703に近いほど、仮想光源オブジェクト704を大きく描画する。
As shown in FIG. 7, the closer the virtual
図8は、サブ画像の第6の例を示す。図8に示すサブ画像802では、被写体オブジェクト803と仮想光源オブジェクト804との距離を数値で明示することで、主被写体と仮想光源との間の距離を認識しやすくする。807は、被写体オブジェクト803および仮想光源オブジェクト804を結ぶ矢印である。808は、距離を数値で示す吹き出しである。
FIG. 8 shows a sixth example of the sub-image. In the sub-image 802 shown in FIG. 8, the distance between the main subject and the virtual light source is easily recognized by clearly indicating the distance between the
図8(a)は、主被写体に対する仮想光源の距離が2.5mであり、手前側の右下から照射している状態のサブ画像802を示す。吹き出し808には、2.5mと表示される。
FIG. 8A shows a sub-image 802 in a state where the distance of the virtual light source to the main subject is 2.5 m and irradiation is performed from the lower right on the front side. The
図8(b)は、主被写体に対して仮想光源の距離が無限遠であり、手前側と背面側の境界における右上から照射している状態のサブ画像802を示す。吹き出し808には、無限遠を示す記号∞が表示される。
FIG. 8B shows a sub-image 802 in a state where the distance of the virtual light source is infinity with respect to the main subject and irradiation is performed from the upper right at the boundary between the front side and the back side. A symbol ∞ indicating infinity is displayed in the
図1では、機能を理解しやすいように、主被写体検出手段108、リライティング手段109及びサブ画像作成手段110をCPU101とは別の構成要素として記載した。しかし、主被写体検出手段108、リライティング手段109及びサブ画像作成手段110の機能の一部または全部をCPU101上で動作するプログラムにより実現できる。更には、主被写体検出手段108、リライティング手段109及びサブ画像作成手段110の機能の一部を専用の論理演算回路により実現しても良い。
In FIG. 1, the main
本発明の目的は、前述した実施例の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を装置に供給することによっても、達成される。このとき、供給された装置の制御部を含むコンピュータ(またはCPUやMPU)は、記憶媒体に格納されたプログラムコードを読み出し実行する。記憶媒体から読み出されたプログラムコード自体が、上述の実施例の機能を実現することになり、プログラムコード自体及びそのプログラムコードを記憶した記憶媒体は、本発明を構成することになる。 An object of the present invention is also achieved by supplying the device with a storage medium in which a program code of software that realizes the functions of the above-described embodiment is recorded. At this time, the computer (or CPU or MPU) including the control unit of the supplied device reads and executes the program code stored in the storage medium. The program code itself read from the storage medium realizes the functions of the above-described embodiment, and the program code itself and the storage medium storing the program code constitute the present invention.
プログラムコードを供給するための記憶媒体としては、例えば、磁気ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード又はROM等を用いることができる。 As the storage medium for supplying the program code, for example, a magnetic disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a non-volatile memory card or a ROM, or the like can be used.
上述のプログラムコードの指示に基づき、装置上で稼動しているOS(基本システムやオペレーティングシステム)などが処理の一部又は全部を行い、その処理によって前述した実施例の機能が実現される場合も含まれる。 In some cases, the OS (basic system or operating system) running on the device performs part or all of the processing based on the instructions in the above program code, and the processing realizes the functions of the above-described embodiment. included.
さらに、記憶媒体から読み出されたプログラムコードが、装置に挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれ、前述した実施形態の機能が実現される場合も含まれる。このとき、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部又は全部を行う。 Further, the case where the program code read from the storage medium is written in the memory provided in the function expansion board inserted in the device or the function expansion unit connected to the computer to realize the function of the above-described embodiment is also included. Is done. At this time, based on the instruction of the program code, the function expansion board, the CPU provided in the function expansion unit, or the like performs a part or all of the actual processing.
以上、本発明の好ましい実施例を説明したが、本発明は、これらの実施例に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。 Although preferable examples of the present invention have been described above, the present invention is not limited to these examples, and various modifications and modifications can be made within the scope of the gist thereof.
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
Claims (11)
前記表示部に前記画像と共に、指定された被写体に対応する第1のアイテムと前記仮想光源に対応する第2のアイテムを含む、指定された被写体に対する前記仮想光源の方向を示す所定のアイテムを表示するように制御する表示制御手段と、
前記所定のアイテムにおいて、前記第1のアイテムに対する前記第2のアイテムの位置を変更する第1の操作と、前記指定された被写体に対する前記仮想光源の距離を変更する第2の操作とを受け付ける受付手段と、を有する画像処理装置であって、
前記受付手段が前記第1の操作と前記第2の操作を受け付けたことに応じて、前記指定された被写体に対する前記仮想光源の方向と、前記指定された被写体に対する前記仮想光源の距離とを共に前記変更手段が変更することを特徴とする画像処理装置。 Among the images displayed on the display unit, a changing means for changing the direction of the virtual light source with respect to the specified subject and the distance of the virtual light source with respect to the specified subject.
A predetermined item indicating the direction of the virtual light source with respect to the specified subject, including the first item corresponding to the designated subject and the second item corresponding to the virtual light source, is displayed on the display unit together with the image. Display control means to control
A reception that accepts a first operation of changing the position of the second item with respect to the first item and a second operation of changing the distance of the virtual light source to the designated subject in the predetermined item. An image processing device having means and
In response to the reception means receiving the first operation and the second operation, both the direction of the virtual light source with respect to the designated subject and the distance of the virtual light source with respect to the designated subject are both set. An image processing apparatus characterized in that the changing means changes.
前記表示部に前記変更手段による前記仮想光源の方向の変更をするための画面を表示する際に、前記検出手段により検出された主被写体に対して前記仮想光源が所定の方向になるように設定をした状態で前記画面を表示するように制御する表示制御手段とを有することを特徴とする請求項1に記載の画像処理装置。 A detection means for detecting the main subject included in the image, and
When displaying a screen for changing the direction of the virtual light source by the changing means on the display unit, the virtual light source is set to be in a predetermined direction with respect to the main subject detected by the detecting means. The image processing apparatus according to claim 1, further comprising a display control means for controlling the display of the screen in the state of the above.
前記第2のアイテムは前記表示部上へのタッチ操作によって移動可能であることを特徴とする請求項4に記載の画像処理装置。 Further having a touch detecting means capable of detecting a touch operation on the display unit,
The image processing device according to claim 4, wherein the second item can be moved by a touch operation on the display unit.
前記表示部に前記画像と共に、指定された被写体に対応する第1のアイテムと前記仮想光源に対応する第2のアイテムを含む、指定された被写体に対する前記仮想光源の方向を示す所定のアイテムを表示するように制御する表示制御ステップと、
前記所定のアイテムにおいて、前記第1のアイテムに対する前記第2のアイテムの位置を変更する第1の操作と、前記指定された被写体に対する前記仮想光源の距離を変更する第2の操作とを受け付ける受付ステップと、を有する画像処理装置であって、
前記受付ステップにおいて前記第1の操作と前記第2の操作を受け付けたことに応じて、前記指定された被写体に対する前記仮想光源の方向と、前記指定された被写体に対する前記仮想光源の距離とを共に前記変更ステップにおいて変更することを特徴とする画像処理装置の制御方法。 Among the images displayed on the display unit, a change step for changing the direction of the virtual light source with respect to the specified subject and the distance of the virtual light source with respect to the specified subject, and
A predetermined item indicating the direction of the virtual light source with respect to the specified subject, including the first item corresponding to the designated subject and the second item corresponding to the virtual light source, is displayed on the display unit together with the image. Display control steps to control
Accepting a first operation of changing the position of the second item with respect to the first item and a second operation of changing the distance of the virtual light source to the designated subject in the predetermined item. An image processing device having steps and
In response to receiving the first operation and the second operation in the reception step, both the direction of the virtual light source with respect to the designated subject and the distance of the virtual light source with respect to the designated subject are both set. A control method for an image processing apparatus, which comprises changing in the change step .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016139139A JP6797585B2 (en) | 2016-07-14 | 2016-07-14 | Image processing device and its control method and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016139139A JP6797585B2 (en) | 2016-07-14 | 2016-07-14 | Image processing device and its control method and program |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2020192534A Division JP2021047876A (en) | 2020-11-19 | 2020-11-19 | Image processing device and its control method and program |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JP2018010496A JP2018010496A (en) | 2018-01-18 |
| JP2018010496A5 JP2018010496A5 (en) | 2019-09-26 |
| JP6797585B2 true JP6797585B2 (en) | 2020-12-09 |
Family
ID=60994382
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2016139139A Active JP6797585B2 (en) | 2016-07-14 | 2016-07-14 | Image processing device and its control method and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6797585B2 (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7207876B2 (en) * | 2018-06-27 | 2023-01-18 | キヤノン株式会社 | Image processing device, image processing method, and program |
| CN111541840B (en) * | 2019-02-06 | 2022-03-22 | 佳能株式会社 | Information processing apparatus, method and storage medium for determining illumination effect candidates |
| JP7433849B2 (en) * | 2019-11-13 | 2024-02-20 | キヤノン株式会社 | Information processing device, information processing method and program |
| JP7422457B2 (en) * | 2019-11-29 | 2024-01-26 | キヤノン株式会社 | Display control device and its control method |
| JP2021086586A (en) * | 2019-11-29 | 2021-06-03 | キヤノン株式会社 | Display control apparatus and control method thereof |
| JP7458756B2 (en) | 2019-11-29 | 2024-04-01 | キヤノン株式会社 | Display control device and its control method |
| JP7374739B2 (en) * | 2019-11-29 | 2023-11-07 | キヤノン株式会社 | Display control device and its control method |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006004158A (en) * | 2004-06-17 | 2006-01-05 | Olympus Corp | Image processing program, image processing method, image processor, and recording medium |
| JP2015119277A (en) * | 2013-12-17 | 2015-06-25 | オリンパスイメージング株式会社 | Display apparatus, display method, and display program |
| JP6646936B2 (en) * | 2014-03-31 | 2020-02-14 | キヤノン株式会社 | Image processing apparatus, control method thereof, and program |
-
2016
- 2016-07-14 JP JP2016139139A patent/JP6797585B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2018010496A (en) | 2018-01-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6797585B2 (en) | Image processing device and its control method and program | |
| KR102340934B1 (en) | Method and device to display background image | |
| US20250321650A1 (en) | Augmented reality eyewear 3d painting | |
| US11262835B2 (en) | Human-body-gesture-based region and volume selection for HMD | |
| JP6341755B2 (en) | Information processing apparatus, method, program, and recording medium | |
| JP5197777B2 (en) | Interface device, method, and program | |
| US9516214B2 (en) | Information processing device and information processing method | |
| AU2010366331B2 (en) | User interface, apparatus and method for gesture recognition | |
| JP2013069224A (en) | Motion recognition apparatus, motion recognition method, operation apparatus, electronic apparatus, and program | |
| US10958825B2 (en) | Electronic apparatus and method for controlling the same | |
| US9716828B2 (en) | Method for shooting image and electronic device thereof | |
| JP2017533602A (en) | Switching between electronic device cameras | |
| TWI485600B (en) | Pattern swapping method and multi-touch device thereof | |
| CN106815809B (en) | Picture processing method and device | |
| CN113853569A (en) | Head-mounted display | |
| JP6942445B2 (en) | Image processing device, its control method, program | |
| JP2020053720A (en) | Electronic device and area selection method | |
| KR101749070B1 (en) | Apparatus and method for assessing user interface | |
| JP6456551B1 (en) | OPTICAL DEVICE CONTROL DEVICE, OPTICAL DEVICE CONTROL METHOD, AND OPTICAL DEVICE CONTROL PROGRAM | |
| CN117224952A (en) | Display control method, display control device, storage medium and electronic equipment | |
| JP2009063685A (en) | Display method and projector | |
| JP6999822B2 (en) | Terminal device and control method of terminal device | |
| JP2021047876A (en) | Image processing device and its control method and program | |
| JP6632298B2 (en) | Information processing apparatus, information processing method and program | |
| KR102614026B1 (en) | Electronic device having a plurality of lens and controlling method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20180227 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190716 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190809 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200716 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200728 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200806 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200825 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20201008 |
|
| 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: 20201020 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20201118 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 6797585 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |