JP2012043004A - Light source direction specifying device and light source direction specifying program - Google Patents

Light source direction specifying device and light source direction specifying program Download PDF

Info

Publication number
JP2012043004A
JP2012043004A JP2010180995A JP2010180995A JP2012043004A JP 2012043004 A JP2012043004 A JP 2012043004A JP 2010180995 A JP2010180995 A JP 2010180995A JP 2010180995 A JP2010180995 A JP 2010180995A JP 2012043004 A JP2012043004 A JP 2012043004A
Authority
JP
Japan
Prior art keywords
light source
image
light
opening
source direction
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
JP2010180995A
Other languages
Japanese (ja)
Other versions
JP5510175B2 (en
JP2012043004A5 (en
Inventor
Yoshisuke Nakamura
善亮 中村
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2010180995A priority Critical patent/JP5510175B2/en
Publication of JP2012043004A publication Critical patent/JP2012043004A/en
Publication of JP2012043004A5 publication Critical patent/JP2012043004A5/ja
Application granted granted Critical
Publication of JP5510175B2 publication Critical patent/JP5510175B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To specify the direction of a light source with few components and a simple process.SOLUTION: A digital photo frame includes: a cylindrical lens hood to which light emitted from a light source 40 enters from an opening of one end and has a peripheral inner wall of the opening lit by the incident light; an image pickup apparatus 30 disposed at the other end side of the lens hood and capturing an image of the opening of the lens hood and the inner wall connected to the opening; and a light source direction specifying unit specifying a bright region R3 having brightness of a prescribed standard or more in the inner wall in a captured image 90c based on the captured image 90c captured by the image pickup apparatus 30 and specifying the direction of the light source 40 based on the specified bright region R3. Specifically, the direction of the light source 40 is specified based on relative coordinates of a point B3 of the bright region R3 to a central point P.

Description

本発明は、光源の方向を特定する光源方向特定装置及び光源方向特定プログラムに関する。   The present invention relates to a light source direction specifying device and a light source direction specifying program for specifying the direction of a light source.

例えば、光源の位置に応じて画像に陰影等を付加するために、光源の位置を推定する技術が求められている。光源の位置を推定する技術として、例えば、特許文献1に、照明空間内に配置された光源の位置を推定する光源位置推定装置において、光源と、キャリブレーションパターン及び立体物から成る校正器具とにより構成された照明空間の画像を入力し、照明空間画像に含まれるカメラキャリブレーションパターン画像からカメラパラメータを算出するカメラパラメータ算出手段と、このカメラパラメータを用いて、立体物の影における2次元の画像座標から3次元の世界座標を算出する影座標算出手段と、立体物の世界座標及びその影の世界座標に基づいて、光源の世界座標を推定する光源位置推定手段とを備える光源位置推定装置が開示されている。   For example, in order to add a shadow or the like to an image according to the position of the light source, a technique for estimating the position of the light source is required. As a technique for estimating the position of a light source, for example, in Patent Document 1, in a light source position estimation device that estimates the position of a light source arranged in an illumination space, a light source and a calibration tool composed of a calibration pattern and a three-dimensional object are used. A camera parameter calculation unit that inputs an image of the configured illumination space and calculates a camera parameter from a camera calibration pattern image included in the illumination space image, and a two-dimensional image in the shadow of the three-dimensional object using the camera parameter A light source position estimation device comprising shadow coordinate calculation means for calculating three-dimensional world coordinates from coordinates, and light source position estimation means for estimating world coordinates of a light source based on the world coordinates of a solid object and the world coordinates of the shadow. It is disclosed.

特開2008−107087号公報JP 2008-107087 A

しかしながら、特許文献1に開示された光源位置推定装置においては、光源から出射される光が当たる位置に、複数の立体物から成る構成器具が配置されていなければならず、光源の方向を特定する装置としての構成に制約があった。   However, in the light source position estimation device disclosed in Patent Document 1, a component tool composed of a plurality of three-dimensional objects must be arranged at a position where light emitted from the light source strikes, and the direction of the light source is specified. There were restrictions on the configuration of the device.

本発明は、かかる問題点に鑑みてなされたものであり、少ない構成部品で光源の方向を特定することを目的とする。   The present invention has been made in view of such a problem, and an object thereof is to specify the direction of a light source with a small number of components.

上記の課題を解決するために、本発明の第1の観点に係る光源方向特定装置は、
両端開口の孔を有し、光源から出射された光が一端の開口から前記孔の内部に入射し、入射した光によって、前記孔の内壁における、前記一端の開口の周囲が照らされる光導入部と、
前記光導入部の他端の開口側に配置され、前記光導入部の前記一端の開口及び前記一端の開口に繋がる前記内壁を撮像する撮像装置と、
前記撮像装置が撮像した第1の画像に基づいて、前記第1の画像の中の前記内壁における所定の基準以上の明るさを有する明領域を特定し、特定した前記明領域に基づいて前記光源の方向を特定する光源方向特定部と、
を備える。
In order to solve the above-described problem, a light source direction identification device according to the first aspect of the present invention includes:
A light introducing portion having a hole at both ends and light emitted from a light source is incident on the inside of the hole from an opening at one end, and the incident light illuminates the periphery of the opening at the one end on the inner wall of the hole When,
An imaging device that is disposed on the opening side of the other end of the light introducing portion and that images the inner wall connected to the opening of the one end and the opening of the one end of the light introducing portion;
Based on the first image captured by the imaging device, a bright area having a brightness equal to or higher than a predetermined reference in the inner wall in the first image is identified, and the light source is based on the identified bright area. A light source direction specifying part for specifying the direction of
Is provided.

また、本発明の第2の観点に係る光源方向特定プログラムは、
両端開口の孔を有し、光源から出射された光が一端の開口から前記孔の内部に入射し、入射した光によって、前記孔の内壁における、前記一端の開口の周囲が照らされる光導入部と、
前記光導入部の他端の開口側に配置され、前記光導入部の前記一端の開口及び前記一端の開口に繋がる前記内壁を撮像する撮像装置と、を備える装置を制御するコンピュータに、
前記撮像装置が撮像した第1の画像に基づいて、前記第1の画像の中の前記内壁における所定の基準以上の明るさを有する明領域を特定し、特定した前記明領域に基づいて前記光源の方向を特定する光源方向特定ステップ、
を行わせる。
Moreover, the light source direction specifying program according to the second aspect of the present invention includes:
A light introducing portion having a hole at both ends and light emitted from a light source is incident on the inside of the hole from an opening at one end, and the incident light illuminates the periphery of the opening at the one end on the inner wall of the hole When,
A computer that controls an apparatus including: an imaging device that is disposed on an opening side of the other end of the light introducing unit and that images the inner wall connected to the opening of the one end of the light introducing unit and the opening of the one end;
Based on the first image captured by the imaging device, a bright area having a brightness equal to or higher than a predetermined reference in the inner wall in the first image is identified, and the light source is based on the identified bright area. A light source direction specifying step for specifying the direction of
To do.

本発明によれば、少ない構成部品で光源の方向を特定することができる。   According to the present invention, the direction of the light source can be specified with a small number of components.

本発明の一実施形態に係るデジタルフォトフレームを示す斜視図である。1 is a perspective view showing a digital photo frame according to an embodiment of the present invention. 図1のデジタルフォトフレームにおける、撮像装置とレンズフードとを説明するための概略断面図である。It is a schematic sectional drawing for demonstrating an imaging device and a lens hood in the digital photo frame of FIG. デジタルフォトフレームの構成を説明するための図である。It is a figure for demonstrating the structure of a digital photo frame. デジタルフォトフレームのハードウェア構成を説明するための図である。It is a figure for demonstrating the hardware constitutions of a digital photo frame. (A)及び(B)は、図2における、撮像装置とレンズフードとを示す模式図である。(A) And (B) is a schematic diagram which shows an imaging device and a lens hood in FIG. (A)は、レンズフードの軸線に対して角度α1を成すように配置された光源の光出射状態を示す模式図である。(B)は、(A)に示された状態時に、撮像装置によって撮像された画像を示す模式図である。(C)は、レンズフードの軸線に対して角度α2を成すように配置された光源の光出射状態を示す模式図である。(D)は、(C)に示された状態時に、撮像装置によって撮像された画像を示す模式図である。(A) is a schematic diagram which shows the light emission state of the light source arrange | positioned so that the angle (alpha) 1 may be comprised with respect to the axis line of a lens hood. (B) is a schematic diagram illustrating an image captured by the imaging device in the state illustrated in (A). (C) is a schematic diagram showing a light emission state of a light source arranged so as to form an angle α2 with respect to the axis line of the lens hood. (D) is a schematic diagram illustrating an image captured by the imaging device in the state illustrated in (C). (A)は、図6(B)に示された画像を2値化した画像を示す図である。(B)は、図6(D)に示された画像を2値化した画像を示す図である。(A) is a figure which shows the image which binarized the image shown by FIG. 6 (B). FIG. 6B is a diagram illustrating an image obtained by binarizing the image illustrated in FIG. 光源が方位角β1の位置にある状態を説明するための模式図である。It is a schematic diagram for demonstrating the state which has a light source in the position of azimuth | direction angle (beta) 1. (A)は、方位角β2を成して配置された、光源と、撮像装置と、レンズフードとの関係を示す模式図である。(B)は、(A)に示された状態時に、撮像装置によって撮像された画像を示す模式図である。(C)は、(B)に示された画像を2値化した画像を示す図である。(A) is a schematic diagram which shows the relationship between the light source, imaging device, and lens hood which are arrange | positioned at azimuth | direction angle (beta) 2. (B) is a schematic diagram illustrating an image captured by the imaging device in the state illustrated in (A). (C) is a diagram showing an image obtained by binarizing the image shown in (B). 撮像装置によって撮像された画像を示す模式図である。It is a schematic diagram which shows the image imaged by the imaging device. デジタルフォトフレームが行う光源方向特定処理を説明するためのフローチャートである。It is a flowchart for demonstrating the light source direction specific process which a digital photo frame performs.

以下、本発明の一実施形態について添付の図面を参照して具体的に説明する。   Hereinafter, an embodiment of the present invention will be specifically described with reference to the accompanying drawings.

本実施形態に係るデジタルフォトフレーム(光源方向特定装置)10は、デジタルフォトフレーム10を照らす光源の方向等を特定し、特定した光源の方向等に応じて、モニタ20に表示する絵画調画像に陰影等(例えば、陰影及び光沢。陰影だけでもよい。)を付加する機能を備えるものとして以下に説明する。   The digital photo frame (light source direction specifying device) 10 according to the present embodiment specifies the direction of the light source that illuminates the digital photo frame 10, and displays the painting-like image displayed on the monitor 20 according to the specified direction of the light source. The following description will be given on the assumption that it has a function of adding shading or the like (for example, shading and gloss, or only shading).

本実施形態に係るデジタルフォトフレーム10は、図1及び図2に示すように、筐体100と、筐体100の表面100a側に露出するように、筐体100に組み込まれたモニタ(表示部)20と、モニタ20の上方の位置で筐体100に組み込まれた撮像装置30と、を備える。   As shown in FIGS. 1 and 2, the digital photo frame 10 according to the present embodiment includes a housing 100 and a monitor (display unit) incorporated in the housing 100 so as to be exposed on the surface 100 a side of the housing 100. ) 20 and the imaging device 30 incorporated in the housing 100 at a position above the monitor 20.

撮像装置30は、筐体100のモニタ20上方に形成された孔100b内に配置される。詳しくは後述するが、撮像装置30は、光源の方向等を特定する基礎となる画像を撮像するものである。撮像装置30の撮像方向は、筐体100の表面100a側に向いている(図2参照)。   The imaging device 30 is disposed in a hole 100 b formed above the monitor 20 of the housing 100. As will be described in detail later, the imaging device 30 captures an image serving as a basis for specifying the direction of the light source and the like. The imaging direction of the imaging device 30 is directed to the surface 100a side of the housing 100 (see FIG. 2).

また、筐体100の孔100b内には、その内壁328が撮像装置30から筐体100の表面100aに延びる両端開口の孔を有するレンズフード32(光導入部)が配置されている。本実施形態では、レンズフード32は、合成樹脂製等の円筒体によって構成されている。円筒体の内壁が前記の孔の内壁328を構成する。このレンズフード32の内壁328の色は、後述する処理において光源が発光する色を特定しやすくするために白色とすることが望ましい。レンズフード32の一端側の開口324は筐体100の表面100aに達し、他端側の開口326は撮像装置30のレンズを囲む。レンズフード32は、孔100b内に嵌め込まれることによって、筐体100に配設される。   In addition, a lens hood 32 (light introducing portion) having an opening at both ends whose inner wall 328 extends from the imaging device 30 to the surface 100 a of the housing 100 is disposed in the hole 100 b of the housing 100. In the present embodiment, the lens hood 32 is configured by a cylindrical body made of synthetic resin or the like. The inner wall of the cylindrical body constitutes the inner wall 328 of the hole. The color of the inner wall 328 of the lens hood 32 is desirably white in order to make it easier to specify the color emitted by the light source in the processing described later. The opening 324 on one end side of the lens hood 32 reaches the surface 100 a of the housing 100, and the opening 326 on the other end side surrounds the lens of the imaging device 30. The lens hood 32 is disposed in the housing 100 by being fitted into the hole 100b.

また、デジタルフォトフレーム10は、図3のように、絵画調変換部52と、光源方向特定部62と、光学処理部60と、を更に備える。なお、下記における説明で特に言及はしないが、各部が行う処理において、画像データのデータ形式は適宜変更(圧縮、伸長等)されるものとする。   Further, as shown in FIG. 3, the digital photo frame 10 further includes a painting tone conversion unit 52, a light source direction specifying unit 62, and an optical processing unit 60. Although not particularly mentioned in the following description, the data format of image data is appropriately changed (compressed, decompressed, etc.) in processing performed by each unit.

光源方向特定部62は、撮像装置30を制御し、撮像装置30に撮像を行わせ、撮像装置30が撮像した撮像画像を表す撮像画像データ(例えば、YUV(輝度色差)データ形式の画像データ)を取得する。光源方向特定部62は、取得した撮像画像データに基づいて、光源の方向等のデータを生成する。このようにして、光源方向特定部62は、撮像画像を取得し、取得した撮像画像に基づいて光源の方向等を特定する。   The light source direction specifying unit 62 controls the imaging device 30 to cause the imaging device 30 to perform imaging, and captured image data representing the captured image captured by the imaging device 30 (for example, image data in a YUV (luminance color difference) data format). To get. The light source direction specifying unit 62 generates data such as the direction of the light source based on the acquired captured image data. In this way, the light source direction specifying unit 62 acquires the captured image, and specifies the direction of the light source based on the acquired captured image.

絵画調変換部52は、後述の原画像を表す原画像データを取得し、取得した原画像データに対して、公知の画像変換処理を行い、前記原画像を絵画調(例えば、油絵風)に変換した絵画調変換画像を表す絵画調画像データを生成する。なお、ここでの絵画調画像データは、この画像の表面の凹凸形状(例えば、油絵の凹凸形状)等のデータである三次元データも含まれる(なお、この三次元データは、原画像データの原画像に対応させて、予め用意されたものであってもよい。)。このようにして、原画像が絵画調画像に変換される。   The painting style conversion unit 52 acquires original image data representing an original image described later, performs a known image conversion process on the acquired original image data, and converts the original image into a painting style (for example, oil painting style). Painting image data representing the converted painting image is generated. Note that the painting-like image data here also includes three-dimensional data that is data such as the concavo-convex shape of the surface of the image (for example, the concavo-convex shape of an oil painting) (note that this three-dimensional data is the original image data). It may be prepared in advance corresponding to the original image). In this way, the original image is converted into a painting-like image.

光学処理部60は、光源方向特定部62が生成した光源情報(光源の方向及び光源から出射される光の照度等についての情報)を取得するとともに、絵画調変換部52が生成した絵画調変換画像データを取得する。そして、取得したこれらデータ(特に、三次元データ)に基づいて、所定の公知の処理を行って、前記絵画調画像に陰影等を付加した陰影付き絵画調画像を表す陰影付き絵画調画像データを生成する。このようにして、光学処理部60は、光源方向特定部62が特定した光源方向の位置等に基づいて、絵画調変換部が変換した絵画調画像に陰影等を付加する。   The optical processing unit 60 acquires the light source information (information on the direction of the light source and the illuminance of light emitted from the light source) generated by the light source direction specifying unit 62 and the painting-like conversion generated by the painting-like conversion unit 52. Get image data. Then, based on the acquired data (particularly, three-dimensional data), predetermined known processing is performed, and shaded painting-like image data representing a shaded painting-like image obtained by adding a shadow or the like to the painting-like image is obtained. Generate. In this way, the optical processing unit 60 adds a shadow or the like to the painting-like image converted by the painting-like conversion unit based on the position in the light source direction specified by the light source direction specifying unit 62.

光学処理部60は、前記で生成した陰影付き絵画調画像データをモニタ20に供給する。モニタ20は、光学処理部60から供給された陰影付き絵画調画像データに基づいて、所定の動作をして、陰影付き絵画調画像データが表す陰影付き画像を表示する。このようにして、光学処理部60は、陰影付き絵画調画像データに基づいて、モニタ20に陰影付き画像を表示する。   The optical processing unit 60 supplies the shaded painting-like image data generated above to the monitor 20. The monitor 20 performs a predetermined operation based on the shaded painting-like image data supplied from the optical processing unit 60, and displays the shaded image represented by the shaded painting-like image data. In this way, the optical processing unit 60 displays the shaded image on the monitor 20 based on the shaded painting-like image data.

デジタルフォトフレーム10は、図4に示すように、そのハードウェア構成として、CPU(Central Processing Unit)64と、記憶部(格納部)66と、撮像装置30と、モニタ20と、システムバス70と、を備える。CPU64等は、適宜、システムバス70に接続される。   As shown in FIG. 4, the digital photo frame 10 includes a CPU (Central Processing Unit) 64, a storage unit (storage unit) 66, an imaging device 30, a monitor 20, and a system bus 70 as hardware configurations. . The CPU 64 and the like are connected to the system bus 70 as appropriate.

記憶部66は、CPU64が使用するデータ、プログラム等、及びCPU64が生成したデータ等を記憶する。記憶部66は、CPU64のメインメモリとして機能するRAM(Random Access Memory)や、補助記憶装置として機能するフラッシュメモリ、ハードディスク等の1以上の必要な組み合わせによって構成される。また、記憶部66は、例えば、図示しない読取・書込装置(例えば、カードスロット)等を介してデジタルフォトフレーム10に接続された外部記憶媒体(例えば、メモリーカード)を含んでもよい。つまり、記憶部66は、その少なくとも一部がデジタルフォトフレーム10の構成要素でなくてもよい。   The storage unit 66 stores data and programs used by the CPU 64, data generated by the CPU 64, and the like. The storage unit 66 includes one or more necessary combinations such as a RAM (Random Access Memory) that functions as a main memory of the CPU 64, a flash memory that functions as an auxiliary storage device, and a hard disk. The storage unit 66 may include an external storage medium (for example, a memory card) connected to the digital photo frame 10 via a reading / writing device (for example, a card slot) (not shown), for example. That is, at least a part of the storage unit 66 may not be a component of the digital photo frame 10.

CPU64は、記憶部66に記録されたプログラム(例えば、RAMに読み出される。)に従って、また、記憶部66に記録された各種のデータを用いて、デジタルフォトフレーム10の各構成要素を制御するとともに、後述の光源方向特定処理を行う。本実施形態では、絵画調変換部52と、光源方向特定部62と、光学処理部60と、は、それぞれ、前記プログラムに従って後述の光源方向特定処理を行うCPU64によって構成される。絵画調変換部52と光源方向特定部62と光学処理部60とは、それぞれ、その少なくとも一部が各種専用回路によって構成されてもよい。   The CPU 64 controls each component of the digital photo frame 10 according to a program recorded in the storage unit 66 (for example, read out to the RAM) and using various data recorded in the storage unit 66. Then, the light source direction specifying process described later is performed. In the present embodiment, the painting style conversion unit 52, the light source direction specifying unit 62, and the optical processing unit 60 are each configured by a CPU 64 that performs a light source direction specifying process described later according to the program. Each of the painting-like conversion unit 52, the light source direction specifying unit 62, and the optical processing unit 60 may be configured by various dedicated circuits.

撮像装置30は、撮像によって得られる画像を表す撮像信号を出力する撮像素子(CCD(Charge Coupled Device)イメージセンサ、CMOS(Complementary Metal Oxide Semiconductor)イメージセンサ等と、撮像素子が出力した撮像信号に基づいて、所定の処理を行い前記の撮像画像データを生成し、生成した撮像画像データを光源方向特定部62に供給する各種電子回路(AFE(Analog Front End)、DSP(Digital Signal Processor)等)と、から構成される。撮像装置30は、光源方向特定部62に制御され、撮像した撮像画像を表す撮像画像データを光源方向特定部62に供給する。なお、前記のDSPが行う処理等は光源方向特定部62が適宜行っても良い。この場合、光源方向特定部62には、AFE等で生成されたデータが撮像装置30から供給され、供給されたデータに対してDSPと同様の処理を行って、前記の撮像画像データを生成することによって、このデータを取得する。   The imaging device 30 is based on an imaging device (CCD (Charge Coupled Device) image sensor, CMOS (Complementary Metal Oxide Semiconductor) image sensor, etc.) that outputs an imaging signal representing an image obtained by imaging, and an imaging signal output by the imaging device. Various electronic circuits (AFE (Analog Front End), DSP (Digital Signal Processor), etc.) that perform predetermined processing to generate the captured image data and supply the generated captured image data to the light source direction specifying unit 62; The imaging device 30 is controlled by the light source direction specifying unit 62 and supplies captured image data representing the captured image to the light source direction specifying unit 62. The processing performed by the DSP is a light source. The direction specifying unit 62 may perform as appropriate, in which case, the light source direction specifying unit 62 is supplied with data generated by AFE or the like from the imaging device 30, and This data is acquired by performing the same processing as the DSP on the supplied data and generating the captured image data.

次に、光源方向特定部62によって光源の方向等を特定するための考え方及び光源方向特定部62が行う処理等について説明する。   Next, a concept for specifying the direction of the light source by the light source direction specifying unit 62 and processing performed by the light source direction specifying unit 62 will be described.

例えば、現実の絵画(特に油絵)は、平面上に顔料等による凹凸を持つ3次元物体である。絵画に光が照射されることで、当然、凹凸に陰影等が発生する。つまり、デジタルフォトフレーム10に対する光源の方向等を考慮して、デジタルフォトフレーム10に表示する絵画調画像に陰影等を付加する(光学的整合性を備えさせる)ことによって、この絵画調画像をより現実の絵画のようにすることができる。   For example, an actual painting (especially an oil painting) is a three-dimensional object having irregularities such as pigments on a plane. Naturally, shadows and the like are generated on the unevenness when the painting is irradiated with light. That is, in consideration of the direction of the light source with respect to the digital photo frame 10 and the like, by adding a shadow or the like to the painting-like image displayed on the digital photo frame 10 (providing optical consistency), the painting-like image is further improved. It can be like a real painting.

ここで、陰影等を付加するときには、現実の絵画の如く、デジタルフォトフレーム10に対する全方向の光源を特定する必要はない。なぜなら、絵画(デジタルフォトフレーム10)の裏面方向からの光源が絵画の表面の凹凸に形成される陰影等に与える影響は少なく、絵画の正面方向からの光源も、絵画の表面の凹凸に形成される陰影等に与える影響は少ないからである。   Here, when adding a shadow or the like, it is not necessary to specify an omnidirectional light source for the digital photo frame 10 as in an actual picture. This is because the light source from the back side of the painting (digital photo frame 10) has little influence on the shading formed on the uneven surface of the painting, and the light source from the front direction of the painting is also formed on the uneven surface of the painting. This is because it has little effect on shadows.

ここで、本実施形態によって特定される光源40(図6参照、光を出射する光源のうち、レンズフード32の内壁328を最も明るく照らす光を出射する光源)のデジタルフォトフレーム10に対する方向は、仰俯角α及び方位角βによって表されるものとする。ここでいう仰俯角αとは、レンズフード32の内壁328(断面円形)の軸線322(円形の中心を通る線)に対する光源40の光の出射方向に沿った線の傾き角であり(図6等を参照)、ここでいう方位角βとは、レンズフード32の一端側開口324から撮像装置30を見た場合の、基準線(例えば、開口324中心から上方に延びる線)に対する、開口324の中心と光源40とを結ぶ線分の傾き角である(図9等を参照)。   Here, the direction with respect to the digital photo frame 10 of the light source 40 specified by the present embodiment (see FIG. 6, among the light sources that emit light, the light source that emits light that illuminates the inner wall 328 of the lens hood 32 most brightly) It shall be represented by the elevation angle α and the azimuth angle β. Here, the elevation angle α is an inclination angle of a line along the light emission direction of the light source 40 with respect to the axis 322 (line passing through the center of the circle) of the inner wall 328 (circular section) of the lens hood 32 (FIG. 6). The azimuth angle β here refers to the opening 324 with respect to a reference line (for example, a line extending upward from the center of the opening 324) when the imaging device 30 is viewed from the one end opening 324 of the lens hood 32. Of the line connecting the center of the light source and the light source 40 (see FIG. 9 and the like).

本実施形態においては、前記の影響を考慮して、仰俯角αが45°より大きく、90°よりも小さい範囲にある、光源40の方向の特定を行うものとする。本実施形態では、光源40の方向等を特定した後に、その特定された方向に応じて絵画調画像に、更に現実的な絵画のようにみせるために陰影等を付加する処理が行うが、現実の絵画における顔料の付着による凹凸の斜面角(絵画の面方向に対する傾斜角)は45°を超えないものと想定する。このため、光源40の特定対象範囲を前記角度範囲に限定したのは、仰俯角αが45°よりも小さい範囲であると、絵画の表面には陰影等は生じず、また、仰俯角αが90°以上の大きい範囲であると、絵画の表面に光は届かないので、陰影等を付加する必要がないためである。この範囲に位置する光源40を特定できるように、撮像装置30及びレンズフード32は構成される。なお、想定する凹凸の斜面角等を異ならせる場合、又は、撮像装置30及びレンズフード32の構成等によっては、当然、上記の仰俯角αの角度以外の角度の方向にある光源40を特定してもよい。そして、このような特定を行うために、適宜、撮像装置30及びレンズフード32の構成(形状等)を変更できる。   In the present embodiment, the direction of the light source 40 in which the elevation angle α is in a range larger than 45 ° and smaller than 90 ° is specified in consideration of the above-described influence. In this embodiment, after specifying the direction of the light source 40 and the like, a process of adding a shadow or the like to the painting-like image to make it look like a more realistic painting is performed according to the specified direction. It is assumed that the slope angle (inclination angle with respect to the surface direction of the painting) due to the adhesion of the pigment in the painting does not exceed 45 °. For this reason, if the specific target range of the light source 40 is limited to the angle range, if the elevation angle α is a range smaller than 45 °, no shadow or the like occurs on the surface of the painting, and the elevation angle α is This is because if it is in a large range of 90 ° or more, light does not reach the surface of the painting, so there is no need to add a shadow or the like. The imaging device 30 and the lens hood 32 are configured so that the light source 40 located in this range can be specified. Note that the light source 40 in a direction other than the above-described elevation angle α is naturally specified depending on the assumed uneven slope angle or the like, or depending on the configuration of the imaging device 30 and the lens hood 32. May be. And in order to perform such specification, the structure (shape etc.) of the imaging device 30 and the lens hood 32 can be changed suitably.

撮像装置30は、画角σ1(特に、仰俯角の画角)を有する。図5(A)に示すように、レンズフード32の内径をφとしたときに、レンズフード32の内壁328において、レンズフード32の一端側の開口324(筐体100の表面100a)から撮像装置30に向かう方向の長さが前記φとなる位置が、画角σ1を構成する直線上に位置するように、撮像装置30及びレンズフード32は構成されている。また、図5(B)に示すように、撮像装置30がレンズフード32に遮られずに、レンズフード32の一端側の開口324を介して、外界を写すことができる最大の角度を外界視野角σ2とする。   The imaging device 30 has an angle of view σ1 (particularly an angle of view of the elevation angle). As shown in FIG. 5A, when the inner diameter of the lens hood 32 is φ, the imaging device from the opening 324 (the surface 100a of the housing 100) on the one end side of the lens hood 32 on the inner wall 328 of the lens hood 32. The imaging device 30 and the lens hood 32 are configured such that the position where the length in the direction toward 30 is φ is positioned on a straight line that forms the angle of view σ1. Further, as shown in FIG. 5B, the maximum angle at which the imaging device 30 can capture the outside world through the opening 324 on one end side of the lens hood 32 without being blocked by the lens hood 32 is set as the outside field visual field. The angle is σ2.

レンズフード32の一端側の開口324から撮像装置30に向かう方向の長さが前記φとなる位置が、画角σ1を構成する直線上に位置することで、仰俯角αが、例えば、45°以上の光源からの光は、内壁328における、画角σ1内の領域内に収まることになり、光源によって照らされる全領域が、撮像装置30によって撮像される。後述のように撮像画像が撮像した光源によって照らされる領域に基づいて、光源の方向は特定されるので、撮像画像に前記の全領域が写り込むことによって、光源の方向を特定出来ることになる。仰俯角αが、例えば、45°であるときが、撮像画像上で光源の方向を特定できる限界とすることが出来るので、上記の構成によって、撮像装置30と開口324とをぎりぎりまで近づけることができ、これによって、撮像画像における光源によって照らされる領域を大きくすることができ、光源の方向を特定する処理(例えば、後述の点Bの検出)を的確に行える。   The position where the length in the direction from the opening 324 on one end side of the lens hood 32 toward the imaging device 30 is φ is positioned on a straight line constituting the field angle σ1, so that the elevation angle α is 45 °, for example. The light from the above light source falls within the region within the angle of view σ1 on the inner wall 328, and the entire region illuminated by the light source is imaged by the imaging device 30. As will be described later, since the direction of the light source is specified based on the region illuminated by the light source captured by the captured image, the direction of the light source can be specified by including the entire region in the captured image. When the elevation angle α is 45 °, for example, it is possible to limit the direction of the light source on the captured image, so that the imaging device 30 and the opening 324 can be brought close to each other by the above configuration. Thus, the area illuminated by the light source in the captured image can be enlarged, and the process of specifying the direction of the light source (for example, detection of point B described later) can be performed accurately.

次に、仰俯角α1,α2の方向(説明の便宜上、方位角β=0であるものとする。)に光源40が配置されている状態を図6(A)及び図6(C)に示す。これらの状態のときに、撮像装置30によって撮像された画像(第1の画像)90(90a,90b)を図6(B)及び図6(D)に示す。また、図6(B),図6(D)の中央に示された円内の画像は、外界視野角σ2の範囲内である外界画像50(撮像装置30から、レンズフード32の一端側の開口324を介して撮影された、レンズフード32の外の画像)である。外界画像50の外側に示されているのは、レンズフード32の内壁328が写り込んだフード画像領域320である。フード画像領域320において、光源40から出射された光が届かない部分は黒く写り、光源40から出射された光が届く部分(被照射部)は白く写っている。なお、図6(B),図6(D)に示された撮像画像90a,90bにおいては、理解を容易にするために、後述する間接光源が無いものとしている。   Next, FIGS. 6A and 6C show a state in which the light source 40 is arranged in the directions of the elevation angles α1 and α2 (for convenience of explanation, the azimuth angle β = 0). . FIGS. 6B and 6D show images (first images) 90 (90a, 90b) captured by the imaging device 30 in these states. In addition, an image in a circle shown in the center of FIGS. 6B and 6D is an external image 50 that is within the range of the external field viewing angle σ2 (from the imaging device 30 on one end side of the lens hood 32). (Image taken outside the lens hood 32 through the opening 324). Shown on the outside of the external image 50 is a hood image region 320 in which the inner wall 328 of the lens hood 32 is reflected. In the hood image region 320, a portion where the light emitted from the light source 40 does not reach is shown in black, and a portion where the light emitted from the light source 40 reaches (irradiated portion) is shown in white. Note that the captured images 90a and 90b shown in FIGS. 6B and 6D do not have an indirect light source, which will be described later, in order to facilitate understanding.

図6(A),図6(C)に示すように、レンズフード32の内壁328における直接光源40に照らされた部分において、レンズフード32の一端から、レンズフード32の軸線方向と平行な方向に沿って、直接光源40に照らされた部分の縁までの最大の長さをL(L1,L2)とすると、言うまでも無く仰俯角α(α1,α2)はtan-1(φ/L)となる。つまり、光源方向特定部62は、最大長さLを求め、定数φ(既知の値)とともにこの数式に代入して、仰俯角αを特定する。詳細については後述するが、長さLの端点は、図6(B)及び図6(D)に示す撮像画像90a,90bにおいて、領域R01の縁のうち最も開口324の中心から最も離れた位置にある点に対応する。 As shown in FIGS. 6A and 6C, a direction parallel to the axial direction of the lens hood 32 from one end of the lens hood 32 in a portion of the inner wall 328 of the lens hood 32 that is directly illuminated by the light source 40. If the maximum length to the edge of the portion directly illuminated by the light source 40 is L (L1, L2), it goes without saying that the elevation angle α (α1, α2) is tan −1 (φ / L ) That is, the light source direction specifying unit 62 obtains the maximum length L and substitutes it in this equation together with the constant φ (known value) to specify the elevation angle α. Although the details will be described later, the end point of the length L is the position farthest from the center of the opening 324 among the edges of the region R01 in the captured images 90a and 90b shown in FIGS. 6B and 6D. Correspond to the points in

次に、長さLを実際に特定する方法について説明する。この長さLは、撮像装置30が撮像した撮像画像90に基づいて、光源方向特定部62が処理を行うことによって特定される。まず、光源方向特定部62は、撮像装置30から撮像画像90を取得し、撮像画像90について、図6(B)及び図6(D)に示された撮像画像90a,90bから外界画像50を除外し、画像処理対象をフード画像領域320に限定する。撮像画像90における外界画像50の範囲はレンズフード32の内径φ等に応じて予め特定されるため、光源方向特定部62は、撮像画像90を表す画像データ上で、該当部分の数値データを削除することで、撮影画像90から外界画像50を容易に削除できる。   Next, a method for actually specifying the length L will be described. The length L is specified by the light source direction specifying unit 62 performing processing based on the captured image 90 captured by the imaging device 30. First, the light source direction specifying unit 62 acquires a captured image 90 from the imaging device 30, and extracts the external image 50 from the captured images 90 a and 90 b shown in FIGS. 6B and 6D for the captured image 90. The image processing target is limited to the hood image region 320. Since the range of the external image 50 in the captured image 90 is specified in advance according to the inner diameter φ of the lens hood 32, the light source direction specifying unit 62 deletes the numerical data of the corresponding part on the image data representing the captured image 90. Thus, the external image 50 can be easily deleted from the captured image 90.

次に、光源方向特定部62は、図7(A)及び図7(B)に示すように、撮像画像90a,90bを2値化する。このとき、光源方向特定部62は、撮像画像における各画素の輝度値(なお、以下において、画素データから検出される明るさの度合いについては輝度と記載し、物体を照らす明るさの度合いについては照度と記載する)等の明るさの値(明るさ情報)についてのしきい値を用いて、具体的には、光源方向特定部62は、各画素について、輝度値等がしきい値以上の画素については白とし、輝度値等がしきい値未満の画素については黒として、撮像画像90a,90bを2値化する。この2値化処理によって生成された2値化画像(モノクロ画像)92a,92bでは、明領域R(R1,R2)が明確に他の領域と分けられる。ここで、明領域Rは、撮像画像90における領域R01,R02に相当する領域である。   Next, as shown in FIGS. 7A and 7B, the light source direction specifying unit 62 binarizes the captured images 90a and 90b. At this time, the light source direction specifying unit 62 describes the luminance value of each pixel in the captured image (hereinafter, the brightness level detected from the pixel data is described as brightness, and the brightness level illuminating the object is described below. Specifically, the light source direction specifying unit 62 uses a threshold value for brightness values (brightness information) such as illuminance) for each pixel. The captured images 90a and 90b are binarized with white for pixels and black for pixels whose luminance value is less than the threshold. In the binarized images (monochrome images) 92a and 92b generated by the binarization process, the bright region R (R1, R2) is clearly separated from other regions. Here, the bright region R is a region corresponding to the regions R01 and R02 in the captured image 90.

この明領域Rは、輝度値がしきい値以上の画素の集合であり、実空間のレンズフード32の内壁328において、所定以上の明るさ(照度)をもつ部分を撮影した画像領域である。本実施形態では、前記の所定以上の明るさをもつ部分を直接光源40からの光で直接照らされた部分であるものとして扱い、この部分を撮像した画像領域である、明領域Rを直接光源40からの光で直接照らされた部分を撮像した画像領域であるものとして扱う。上記しきい値は、明領域Rをこのような領域として扱える数値として予め設定されるものとする。   The bright region R is a set of pixels having a luminance value equal to or higher than a threshold value, and is an image region obtained by photographing a portion having brightness (illuminance) of a predetermined level or more on the inner wall 328 of the lens hood 32 in the real space. In the present embodiment, the portion having the above-described brightness is treated as a portion directly illuminated by the light from the light source 40, and the bright region R, which is an image region obtained by imaging this portion, is directly used as the light source. A portion directly illuminated by light from 40 is treated as an image area taken. The threshold value is set in advance as a numerical value that allows the bright region R to be handled as such a region.

次に、光源方向特定部62は、中心点Pから明領域Rの縁までの距離を所定の角度毎に求める。ここで、中心点Pは、開口324の中心であった位置と同一の位置にある。光源方向特定部62は、求められた距離のうち、最も長い距離である明領域Rの縁の点を点B(点B1,点B2,点B3)とし、画像上で、点Pを基準とした点Bの相対座標を検出する。ここで、光源40は、点Bと中心点Pとを通る直線上であり、中心点Pに対して点B側とは反対側に位置することとなる。   Next, the light source direction specifying unit 62 obtains the distance from the center point P to the edge of the bright region R for each predetermined angle. Here, the center point P is at the same position as the center of the opening 324. The light source direction specifying unit 62 uses the point of the edge of the bright region R, which is the longest distance among the obtained distances, as a point B (point B1, point B2, point B3), and uses the point P on the image as a reference. The relative coordinates of the point B are detected. Here, the light source 40 is on a straight line passing through the point B and the center point P, and is located on the opposite side to the point B side with respect to the center point P.

次に、光源方向特定部62は、検出された点Bから長さLを特定する。光源方向特定部62は、上記位置関係をもとにして、三角関数等を使用した式で、前記長さLを演算して長さLを特定してもよいが、撮像装置30のレンズの歪等による精度への影響を考慮し、予め作成され、記憶部66に記録されている、上記位置関係と長さLとが対応付けられているテーブルを参照してもよい。光源方向特定部62は、前記で検出した位置関係をもとにして、前記のテーブルを参照し、検出した位置関係に対応する長さLを取得することによって、長さLを特定する。このテーブルとしては、例えば、相対座標と長さLとの対応関係がマッピングされているLUT(ルックアップテーブル)がある。例えば、光源方向特定部62は、図7(A)に示された2値化画像92aにおける点B1の座標(0,Y1)をもとにして、LUTに参照することで、図6(A)に示された長さL1を特定する。また、図7(B)に示された2値化画像92bにおける点B2の座標(0,Y2)をもとにして、LUTを参照することで、図6(C)に示された長さL2を特定する。因みに、点B1と点B2とのY座標の大小関係は、図7に示すように、|Y1|<|Y2|であり、このときに求められる長さLの関係は、長さL1<長さL2となる。光源方向特定部62は、求められた長さLを、上記の式に代入することにより仰俯角αを特定する。また、光源方向特定部62は、上記位置関係又は長さLと仰俯角αとが対応付けられたテーブルを参照して、仰俯角αを特定するようにしてもよい。   Next, the light source direction specifying unit 62 specifies the length L from the detected point B. The light source direction specifying unit 62 may specify the length L by calculating the length L using an equation using a trigonometric function or the like based on the positional relationship. In consideration of the influence on accuracy due to distortion or the like, a table created in advance and recorded in the storage unit 66 in which the positional relationship and the length L are associated may be referred to. The light source direction specifying unit 62 specifies the length L by referring to the table based on the positional relationship detected above and acquiring the length L corresponding to the detected positional relationship. As this table, for example, there is an LUT (Look Up Table) in which the correspondence between the relative coordinates and the length L is mapped. For example, the light source direction specifying unit 62 refers to the LUT based on the coordinates (0, Y1) of the point B1 in the binarized image 92a shown in FIG. ) Is specified. Further, by referring to the LUT based on the coordinates (0, Y2) of the point B2 in the binarized image 92b shown in FIG. 7B, the length shown in FIG. L2 is specified. Incidentally, as shown in FIG. 7, the magnitude relationship of the Y coordinate between the point B1 and the point B2 is | Y1 | <| Y2 |, and the relationship of the length L obtained at this time is the length L1 <length. L2. The light source direction specifying unit 62 specifies the elevation angle α by substituting the obtained length L into the above formula. Further, the light source direction specifying unit 62 may specify the elevation angle α with reference to a table in which the positional relationship or the length L and the elevation angle α are associated with each other.

次に、図8及び図9を参照して、光源40の方位角βの特定方法を説明する。ここで、方位角βは、便宜上、図8及び図9(A)に示すように、撮像方向の逆側から撮像装置30を見た状態において、中心点Pから鉛直に延びる直線から時計回りに値が大きくなる角度とする。図6及び図7に示されている状態における光源40の方位角β1は、図8に示すように0°である。図9(A)〜(C)に、方位角β2の方向に配置された光源40、そのときの撮影画像(第1の画像)90c及び2値化画像92cを示す。図9(B)に示すように、撮像装置30による撮像画像90cは、右上に被照射部が延びている。光源方向特定部62は、この撮像画像90cを2値化した2値化画像92cから、図9(C)に示すように、相対座標(X3,Y3)の点B3を特定する。   Next, a method for specifying the azimuth angle β of the light source 40 will be described with reference to FIGS. 8 and 9. Here, for convenience, as shown in FIGS. 8 and 9A, the azimuth angle β is clockwise from a straight line extending vertically from the center point P when the imaging device 30 is viewed from the opposite side of the imaging direction. The angle at which the value increases. The azimuth angle β1 of the light source 40 in the state shown in FIGS. 6 and 7 is 0 ° as shown in FIG. 9A to 9C show the light source 40 arranged in the direction of the azimuth angle β2, the captured image (first image) 90c and the binarized image 92c at that time. As shown in FIG. 9B, in the captured image 90c by the imaging device 30, the irradiated portion extends to the upper right. The light source direction specifying unit 62 specifies a point B3 of relative coordinates (X3, Y3) from the binarized image 92c obtained by binarizing the captured image 90c as shown in FIG. 9C.

光源方向特定部62は、相対座標(X3,Y3)が特定されることにより、次の(1)〜(6)のいずれかの式で方位角βを特定する。
(1)点Bの座標が(0<X,0≦Y)のとき(即ち、図9(c)の2値化画像92cにおいて、中心点Pに対し点Bが第1象限にあるとき)、方位角β=|tan-1(Y/X)|+π/2
(2)点Bの座標が(X=0,0<Y)のとき(即ち、図9(c)の2値化画像92cにおいて、点BがY軸上の正の位置にあるとき)、方位角β=π
(3)点Bの座標が(X<0,0<Y)のとき(即ち、図9(c)の2値化画像92cにおいて、中心点Pに対し点Bが第2象限にあるとき)、方位角β=|tan-1(Y/X)|+π
(4)点Bの座標が(X=0,Y<0)のとき(即ち、図9(c)の2値化画像92cにおいて、点BがY軸上の負の位置にあるとき)、方位角β=0
(5)点Bの座標が(X<0,Y≦0)のとき(即ち、図9(c)の2値化画像92cにおいて、中心点Pに対し点Bが第3象限にあるとき)、方位角β=|tan-1(Y/X)|+3/2π
(6)点Bの座標が(0<X,Y<0)のとき(即ち、図9(c)の2値化画像92cにおいて、中心点Pに対し点Bが第4象限にあるとき)、方位角β=|tan-1(Y/X)|
また、光源方向特定部62は、中心点Pに対する点Bの相対座標と方位角βとが対応付けられ、予め作成されたLUTを参照して、方位角βを特定するようにしてもよい。
The light source direction specifying unit 62 specifies the azimuth angle β by any one of the following formulas (1) to (6) by specifying the relative coordinates (X3, Y3).
(1) When the coordinates of the point B are (0 <X, 0 ≦ Y) (that is, when the point B is in the first quadrant with respect to the center point P in the binarized image 92c in FIG. 9C). , Azimuth β = | tan -1 (Y / X) | + π / 2
(2) When the coordinates of the point B are (X = 0, 0 <Y) (that is, when the point B is at a positive position on the Y axis in the binarized image 92c in FIG. 9C). Azimuth β = π
(3) When the coordinates of the point B are (X <0, 0 <Y) (that is, when the point B is in the second quadrant with respect to the center point P in the binarized image 92c in FIG. 9C). , Azimuth β = | tan -1 (Y / X) | + π
(4) When the coordinates of the point B are (X = 0, Y <0) (that is, when the point B is in the negative position on the Y axis in the binarized image 92c in FIG. 9C). Azimuth β = 0
(5) When the coordinates of the point B are (X <0, Y ≦ 0) (that is, when the point B is in the third quadrant with respect to the center point P in the binarized image 92c in FIG. 9C). , Azimuth β = | tan -1 (Y / X) | + 3 / 2π
(6) When the coordinates of the point B are (0 <X, Y <0) (that is, when the point B is in the fourth quadrant with respect to the center point P in the binarized image 92c in FIG. 9C). , Azimuth β = | tan -1 (Y / X) |
Further, the light source direction specifying unit 62 may associate the relative coordinates of the point B with the center point P and the azimuth angle β, and specify the azimuth angle β with reference to a previously created LUT.

以上のように、光源方向特定部62は、光源40の仰俯角α及び方位角βを特定することで、光源40の方向を特定することができる。なお、光源方向特定部62は、仰俯角α及び方位角βに基づいて、所定の計算を行い、光源40の方向を別の方法で表す値(球座標系における値等)を算出等して、これによって、光源40の方向を特定してもよい。   As described above, the light source direction specifying unit 62 can specify the direction of the light source 40 by specifying the elevation angle α and the azimuth angle β of the light source 40. The light source direction specifying unit 62 performs a predetermined calculation based on the elevation angle α and the azimuth angle β, and calculates a value that represents the direction of the light source 40 by another method (such as a value in a spherical coordinate system). Thus, the direction of the light source 40 may be specified.

上記のようにして光源40の方向を特定したが、絵画調画像に、所定の濃淡を有する、陰影等を付加するには、光源方向特定部62によって、実環境における光源40の光による照度及び間接光源(最も明るい光を発する光源40以外の全ての光源)の環境光による照度を特定する必要があり、これらの相対照度を特定したうえで、この特定された相対照度に対応する濃度の陰影等を、光学処理部60によって絵画調画像に付加する必要がある。次に、図10を参照して、光源40の光及び間接光源(最も明るい光を発する光源40以外の全ての光源)の環境光によって照らされているフード画像領域320の相対照度を特定する方法について説明する。なお、図10は、図6(B)の撮像画像90aに環境光に照らされた部分が加えられた図である。   Although the direction of the light source 40 has been specified as described above, in order to add a shade or the like having a predetermined shade to a painting-like image, the light source direction specifying unit 62 causes the illuminance by the light of the light source 40 in the actual environment and It is necessary to specify the illuminance due to the ambient light of the indirect light source (all light sources other than the light source 40 that emits the brightest light). And the like need to be added to the picture-like image by the optical processing unit 60. Next, referring to FIG. 10, the relative illuminance of the hood image area 320 illuminated by the light of the light source 40 and the ambient light of the indirect light source (all light sources other than the light source 40 that emits the brightest light) is specified. Will be described. FIG. 10 is a diagram in which a portion illuminated by ambient light is added to the captured image 90a of FIG.

先ず、図10に示された撮像画像90dについて説明する。撮像画像90dにおいて、環境光に照らされている領域を灰色で示し領域R03とする。   First, the captured image 90d shown in FIG. 10 will be described. In the captured image 90d, the region illuminated by the ambient light is shown in gray and is defined as a region R03.

次に、2箇所の輝度の検出対象位置について説明する。まず、光源40の光によって照らされる部分における輝度の検出対象位置は、光源40によって照らされた領域R01のうち、開口324の中心から最も遠方に延びる被照射部の縁と開口324の中心とを結ぶ線分上の、開口324の外側近傍(所定の距離内)とする(図6(B)、図6(D)及び図10において点A1)。このように検出対象位置を設定した理由としては、開口324から入射する光は他の部分よりも開口324の外側近傍を広く照射し、且つ、この検出対象位置は、仰俯角αが45°より大きく、90°より小さい範囲のうちどの角度の光源40によっても、常に照らされる位置であるためである。   Next, two luminance detection target positions will be described. First, the detection target position of the luminance in the portion illuminated by the light of the light source 40 is the edge of the irradiated portion extending farthest from the center of the opening 324 and the center of the opening 324 in the region R01 illuminated by the light source 40. It is set to the vicinity outside the opening 324 (within a predetermined distance) on the connecting line segment (point A1 in FIGS. 6B, 6D, and 10). The reason for setting the detection target position in this way is that the light incident from the opening 324 irradiates the vicinity of the outside of the opening 324 more widely than the other portions, and the detection target position has an elevation angle α of 45 °. This is because the position is always illuminated by the light source 40 at any angle within a large range smaller than 90 °.

次に、図10に示す撮像画像90dにおいて、間接光源の環境光によって照らされる部分における輝度の検出対象位置について説明する。間接光源の環境光によって照らされる位置にある点として、点A1の輝度と比較するための輝度検出対象である点C1の輝度は、光源40によって照らされた位置にある点A1の輝度との比較対象であるため、光源40からの光による影響が少ない点である必要がある。このため、点C1は、点A1の位置に対して、開口324を中心として逆側に設定される。このようにすることで、方位角αが45°より大きく、90°よりも小さい範囲にある(つまり、レンズフードの内壁328における開口324の周囲を満遍なく照らす光を出射しない)光源40の影響は少ない。更に、点C1の位置は、間接光源によって照らされた領域R03のうち、開口324の中心から最も遠方に延びる被照射部の縁と開口324の中心とを結ぶ線分上の、開口324の外側近傍(所定の距離内)とする。このように検出対象位置を設定した理由としては、開口324から入射する光は他の部分よりも開口324の外側近傍を広く照射し、且つ、この検出対象位置は、仰俯角αが0°から90°より小さい範囲のうちどの角度の間接光源によっても、常に照らされる位置であるためである。   Next, in the captured image 90d shown in FIG. 10, the luminance detection target position in the portion illuminated by the ambient light of the indirect light source will be described. As a point at a position illuminated by the ambient light of the indirect light source, the luminance of the point C1 that is a luminance detection target for comparison with the luminance of the point A1 is compared with the luminance of the point A1 at the position illuminated by the light source 40. Since it is a target, it is necessary that the influence of light from the light source 40 is small. For this reason, the point C1 is set on the opposite side with respect to the position of the point A1 with the opening 324 as the center. By doing so, the influence of the light source 40 is such that the azimuth angle α is in a range larger than 45 ° and smaller than 90 ° (that is, light that uniformly illuminates the periphery of the opening 324 in the inner wall 328 of the lens hood is not emitted). Few. Further, the position of the point C1 is outside the opening 324 on the line segment connecting the edge of the irradiated portion extending farthest from the center of the opening 324 and the center of the opening 324 in the region R03 illuminated by the indirect light source. Near (within a predetermined distance). The reason for setting the detection target position in this way is that the light incident from the opening 324 irradiates the vicinity near the outside of the opening 324 more widely than the other portions, and the detection target position has an elevation angle α of 0 °. This is because the position is always illuminated by an indirect light source at any angle in a range smaller than 90 °.

次に、具体的な照度の特定方法について説明する。光源方向特定部62は、2値化画像92から算出した点Bの位置に、撮像画像90aにおいて対応する位置にある点A10を特定する。(ここで、2値化画像92に施された2値化処理のしきい値は、間接光源の環境光の輝度値よりも大きく、光源40の光の輝度値よりも小さい値とする。つまり、2値化画像92において、間接光源の環境光によって照らされている部位は、黒く写り、光源40の光によって照らされた部位は、白く写っている。このため、好適に点Bが特定される。)更に、点A10と開口324の中心とを結ぶ線分上にあり、開口50の中心に対し、点10と点対称の位置にある点C10を特定する。次に、光源方向特定部62は、点A10と開口324の中心とを結ぶ線分上にあり、開口324の外側近傍(所定の距離内)とする点A1とし、点C10と開口324の中心とを結ぶ線分上にあり、開口324の外側近傍(所定の距離内)とする点C1とする。光源方向特定部62は、撮像画像90において、光源40によって照らされた点A1における画素の輝度、及び間接光源により照らされた点C1における画素の輝度を検出し、これらの輝度を比較し、相対照度を特定する。光源方向特定部62は、特定された相対照度に応じて、光学処理部60によって絵画調画像に付加される陰影等の濃度を決定する。   Next, a specific method for specifying the illuminance will be described. The light source direction specifying unit 62 specifies a point A10 at a position corresponding to the position of the point B calculated from the binarized image 92 in the captured image 90a. (Here, the threshold value of the binarization process performed on the binarized image 92 is set to a value larger than the luminance value of the ambient light of the indirect light source and smaller than the luminance value of the light of the light source 40.) In the binarized image 92, the part illuminated by the ambient light of the indirect light source is shown in black, and the part illuminated by the light from the light source 40 is shown in white. Further, a point C10 that is on a line segment connecting the point A10 and the center of the opening 324 and is symmetrical with the point 10 with respect to the center of the opening 50 is specified. Next, the light source direction specifying part 62 is on a line segment connecting the point A10 and the center of the opening 324, and is set as a point A1 in the vicinity of the outside of the opening 324 (within a predetermined distance), and the center of the point C10 and the opening 324 Is a point C1 that is on the line segment connecting the two and near the outside of the opening 324 (within a predetermined distance). The light source direction specifying unit 62 detects the luminance of the pixel at the point A1 illuminated by the light source 40 and the luminance of the pixel at the point C1 illuminated by the indirect light source in the captured image 90, compares these luminances, Identify illuminance. The light source direction specifying unit 62 determines the density of a shadow or the like added to the painting-like image by the optical processing unit 60 according to the specified relative illuminance.

即ち、本実施形態では、上記処理によって、光源方向特定部62は、撮像画像90に基づいて、例えば、撮像画像90の明るさ情報(輝度値)から、明領域(R01、R02)内を照らす光の照度を特定し、撮像画像90に基づいて、内壁328において、直接光源40によって照らされている明領域外(例えば領域R03)を照らす光の照度を特定し、特定した明領域内外の光の照度に基づいて、直接光源40と間接光源との照度の比を特定する。   That is, in the present embodiment, the light source direction specifying unit 62 illuminates the bright area (R01, R02) from the brightness information (luminance value) of the captured image 90, for example, based on the captured image 90 by the above processing. Based on the captured image 90, the illuminance of light is specified, the illuminance of light that illuminates the outside of the bright area directly illuminated by the light source 40 (for example, the area R03) on the inner wall 328, and the light inside and outside the specified bright area is identified. Based on the illuminance, the illuminance ratio between the direct light source 40 and the indirect light source is specified.

なお、上記において、輝度の検出対象位置を、直接光源40の光に照らされる点A1及び環境光に照らされる点C1としたが、これに限定しない。例えば、直接光源40から出射される光に照らされる部分の、撮像画像90における輝度を検出するには明領域R01内であればよく、例えば、点A10と開口324の中心とを結ぶ線分上にあり、点10よりも開口324の中心側であればよい。更に、間接光源から出射される光に照らされる部分の、撮像画像90における輝度を検出するには領域R03内であればよく、例えば、点A10と開口324の中心とを結ぶ線分上にあり、開口50の中心に対し、点10と点対称の位置にある点C10を輝度を検出する対象としてもよい。   In the above description, the luminance detection target position is the point A1 that is directly illuminated by the light from the light source 40 and the point C1 that is illuminated by the ambient light, but is not limited thereto. For example, in order to detect the luminance in the captured image 90 of the portion directly illuminated by the light emitted from the light source 40, it may be within the bright region R01, for example, on the line segment connecting the point A10 and the center of the opening 324. It suffices if it is on the center side of the opening 324 from the point 10. Furthermore, in order to detect the luminance in the captured image 90 of the portion illuminated by the light emitted from the indirect light source, it may be within the region R03, for example, on a line segment connecting the point A10 and the center of the opening 324. The point C10 that is point-symmetric with the point 10 with respect to the center of the opening 50 may be a target for detecting the luminance.

また、例えば、点A1、点C1の近傍にある画素における輝度値に、大きなムラがあることがあり得るため、夫々所定の範囲における複数の点を検出対象とするようにして、得られた値を平均化した輝度に基づいて照度を特定するようにするとより好ましい。   In addition, for example, there may be large unevenness in the luminance values in the pixels in the vicinity of the points A1 and C1, and thus the values obtained by setting a plurality of points in a predetermined range as detection targets, respectively. More preferably, the illuminance is specified based on the averaged luminance.

次に、光源方向特定処理の詳細な一例を、図11を参照して説明する。この処理は、画像に陰影を付加することを目的として、ユーザによってなされるデジタルフォトフレーム10の図示しない操作部への操作等を契機として開始される。   Next, a detailed example of the light source direction specifying process will be described with reference to FIG. This process is started with the operation of a digital photo frame 10 performed by a user on an operation unit (not shown) for the purpose of adding a shadow to the image.

まず、光源方向特定部62の制御によって、撮像装置30がレンズフード32の内壁328を撮像する(ステップS101)。次に、光源方向特定部62は、撮像画像90を2値化する(ステップS102)。光源方向特定部62は、2値化画像92から点Bを検出する(ステップS103)。次に、光源方向特定部62は、点Bの座標を元にLUTより長さLを特定する(ステップS104)。次に、光源方向特定部62は、特定された長さLと内径φから仰俯角αを特定する(ステップS105)。光源方向特定部62は、点Bの中心点Pに対する相対座標から方位角βを特定する(ステップS106)。光源方向特定部62は、仰俯角α及び方位角βから光源40の方向を特定する(ステップS107)。次に、光源方向特定部62は、光源40によって照らされた被照射部のうち、2値化画像92における点Bに対応する位置にある撮像画像90における点A10と開口324の中心とを結ぶ線分上にあり、開口324の外側近傍に、点A1を設定し(ステップS108)、設定された点A1の輝度を検出する(ステップS109)。次に、光源方向特定部62は、開口50の中心に対し、点10と点対称の位置にある点C10と開口324の中心とを結ぶ線分上にあり、開口324の外側近傍に、点C1を設定し(ステップS110)、設定された点C1の輝度を検出する(ステップS111)。次に、光源方向特定部62は、点C1の輝度に対する点A1の相対的な輝度を算出する(ステップS112)。絵画調変換部52は、記憶部66に格納されている原画像に絵画調の処理を施し、3次元形状データを有する絵画調画像を作成する。光学処理部60は、点C1の輝度に対する点A1の輝度から相対照度を算出し、特定された光源40の方向及び絵画調画像の3次元データ等に基づき、所定の長さ、角度及び濃度の陰影等を絵画調画像に付加する(ステップS113)。   First, the imaging device 30 images the inner wall 328 of the lens hood 32 under the control of the light source direction specifying unit 62 (step S101). Next, the light source direction specifying unit 62 binarizes the captured image 90 (step S102). The light source direction specifying unit 62 detects the point B from the binarized image 92 (step S103). Next, the light source direction specifying unit 62 specifies the length L from the LUT based on the coordinates of the point B (step S104). Next, the light source direction specifying unit 62 specifies the elevation angle α from the specified length L and the inner diameter φ (step S105). The light source direction specifying unit 62 specifies the azimuth angle β from the relative coordinates of the point B with respect to the center point P (step S106). The light source direction specifying unit 62 specifies the direction of the light source 40 from the elevation angle α and the azimuth angle β (step S107). Next, the light source direction specifying unit 62 connects the point A10 in the captured image 90 at the position corresponding to the point B in the binarized image 92 and the center of the opening 324 among the irradiated parts illuminated by the light source 40. A point A1 is set on the line segment and in the vicinity of the outside of the opening 324 (step S108), and the brightness of the set point A1 is detected (step S109). Next, the light source direction specifying unit 62 is on a line segment connecting the point C10 that is point-symmetric with the point 10 and the center of the opening 324 with respect to the center of the opening 50. C1 is set (step S110), and the brightness of the set point C1 is detected (step S111). Next, the light source direction specifying unit 62 calculates the relative luminance of the point A1 with respect to the luminance of the point C1 (step S112). The painting-like conversion unit 52 performs a painting-like process on the original image stored in the storage unit 66 to create a painting-like image having three-dimensional shape data. The optical processing unit 60 calculates relative illuminance from the brightness of the point A1 with respect to the brightness of the point C1, and based on the specified direction of the light source 40 and the three-dimensional data of the painting-like image, the predetermined length, angle, and density. A shadow or the like is added to the picture-like image (step S113).

また、上記の光学処理部60に相当する、陰影等の付加に用いられるソフトウェアとして、レイトレーシングソフトのShade(登録商標)がある。この場合、光源方向特定部62が、ソフトウェアが要求するデータを、適宜、輝度の比、光源の方向等に基づいて生成(変換)することにより、ソフトウェアによって絵画調画像に陰影が付加される。   In addition, as software used for adding a shadow or the like corresponding to the optical processing unit 60, there is Ray Tracing Software Shade (registered trademark). In this case, the light source direction specifying unit 62 generates (converts) the data required by the software as appropriate based on the luminance ratio, the direction of the light source, and the like, so that the shadow is added to the painting-like image by the software.

上記のように、本実施形態に係るデジタルフォトフレーム10は、撮像装置30、レンズフード32からなる少ない部品構成から成り、簡単な処理で実環境の光源40の方向を特定できる。更に、特定された光源40の方向及び照度に応じた陰影等を絵画調画像に反映(付加)させることができる。   As described above, the digital photo frame 10 according to the present embodiment includes a small number of components including the imaging device 30 and the lens hood 32, and can identify the direction of the light source 40 in the real environment with a simple process. Furthermore, it is possible to reflect (add) a shadow or the like according to the specified direction and illuminance of the light source 40 in the picture-like image.

また、光源40の光と間接光源の環境光との相対照度に応じた濃度の陰影等を絵画調画像に付加することにより、光源40の光の照度に応じた濃度の陰影等を絵画調画像に付加するよりも、より実環境における明暗状態を反映した画像を生成することができる。   Further, by adding a shade or the like of the density according to the relative illuminance between the light of the light source 40 and the ambient light of the indirect light source to the picture-like image, the shade or the like of the density according to the light illuminance of the light source 40 is added to the picture-like image. It is possible to generate an image reflecting the light and dark state in the real environment rather than adding to the image.

なお、本実施形態光学計算は、OpenGL(登録商標)等のプログラミングインターフェースを使って演算してもよい。また、絵画調画像に、陰影の代わりに、光沢のみを付加させてもよい。   The optical calculation according to the present embodiment may be calculated using a programming interface such as OpenGL (registered trademark). Further, only the gloss may be added to the picture-like image instead of the shadow.

また、撮像装置に光源からの光を導入するものとして、レンズフードを備える構成について本実施形態において説明したが、本発明はこの構成に限定されない。つまり、光導入部は、撮像装置によって撮像される部分に光を導入できればよく、両端開口の孔を有し、光源から出射された光が一端の開口から前記孔の内部に入射し、入射した光によって、前記孔の内壁における、前記一端の開口の周囲が照らされる構成部品であればよい。例えば、光導入部は、レンズフード32が取り付けられていない筐体100であるとしてもよい。この場合、孔100bが前記の孔に該当する。   Moreover, although the structure provided with a lens hood was demonstrated in this embodiment as what introduces the light from a light source to an imaging device, this invention is not limited to this structure. In other words, the light introducing unit only needs to be able to introduce light into the part imaged by the imaging device, and has a hole with both ends opened, and light emitted from the light source is incident on the inside of the hole from one end opening. What is necessary is just a component in which the circumference | surroundings of the opening of the said one end in the inner wall of the said hole are illuminated by light. For example, the light introducing unit may be the casing 100 to which the lens hood 32 is not attached. In this case, the hole 100b corresponds to the hole.

上記実施形態に係るフォトフレームにおいては、光源方向を特定し、絵画調画像に陰影等を付加するものとして説明したが、3次元形状データを有する画像であれば、絵画調画像ではなくとも陰影等を付加することができ、本願発明は、3D−CAD画像、実写真を表す画像等にも適用可能である。   In the photo frame according to the above-described embodiment, it has been described that the light source direction is specified and a shadow or the like is added to the picture-like image. However, if the image has three-dimensional shape data, the shadow or the like may be used instead of the picture-like image. The present invention can also be applied to 3D-CAD images, images representing actual photographs, and the like.

なお、3次元形状データを画像から検出又は画像に設定可能な装置を備えるようにすることにより、撮像装置によって撮像された撮像画像のうちフード画像領域を除いた外界画像を、陰影等を付加する対象である原画像(又は絵画調画像の変換前の画像)として用いてもよい。   In addition, by providing a device that can detect or set the three-dimensional shape data from the image, a shadow or the like is added to the external image excluding the hood image region from the captured image captured by the imaging device. It may be used as an original image (or an image before conversion of a painting-like image) as a target.

更には、光源が移動するものである場合、連続的に画像を撮像し、撮像された画像を基に光源方向を特定することで、瞬時の光源方向に応じた陰影等を絵画調画像に付加することができる。つまり、移動する光源の方向に応じた陰影等をリアルタイムに絵画調画像に付加することができる。   Furthermore, when the light source is moving, images are continuously captured, and the direction of the light source is specified based on the captured image, thereby adding shading according to the instantaneous light source direction to the painting-like image. can do. That is, it is possible to add a shadow or the like according to the direction of the moving light source to the picture-like image in real time.

更に、本実施形態に係るデジタルフォトフレームにおいては、撮像装置及びレンズフードをモニタ20の上部に1箇所のみ備える構成を説明したが、その位置は任意であり、また、例えば、上下左右に複数備えるようにしてもよい。このようにすることで、複数の角度から撮像した複数の画像を基に3Dデータを取得することができる。更に、光源方向の特定精度を向上させることができる。   Furthermore, in the digital photo frame according to the present embodiment, the configuration in which the imaging device and the lens hood are provided at only one location on the upper portion of the monitor 20 has been described. You may do it. In this way, 3D data can be acquired based on a plurality of images taken from a plurality of angles. Furthermore, the accuracy of specifying the light source direction can be improved.

また、本実施形態に係るデジタルフォトフレームにおいては、絵画調の画像に陰影等を付加するために、光源方向を特定するとしたため、絵画の表面方向のみの光源方向を特定するものとしたが、本発明はこの構成に限定されない。例えば、特定された光源情報を絵画調画像以外のものに利用する場合等には、表裏面、両面の光源方向を特定するようにしてもよい。この場合、逆方向に向けられた撮像装置を2個設けるようにし、同様の処理を行うことで両面方向の光源方向を特定することができる。また、本実施形態においては、絵画の顔料の付着による凹凸の斜面角は45°を超えないものと想定し、絵画調の画像をよりリアルにするために、陰影等を付加することを前提としていた。このため、仰俯角αが45°より大きく、90°よりも小さい範囲にある、光源40の方向の特定を行うものとして説明したが、光源位置の推定のみに用いる場合等には、その範囲を制限しない。   In the digital photo frame according to the present embodiment, the light source direction is specified in order to add a shadow or the like to a picture-like image. Therefore, the light source direction only in the surface direction of the picture is specified. The invention is not limited to this configuration. For example, when the specified light source information is used for things other than painting-like images, the light source directions on the front and back surfaces and both surfaces may be specified. In this case, it is possible to specify the light source directions in the double-side direction by providing two imaging devices oriented in the opposite directions and performing the same processing. In the present embodiment, it is assumed that the slope angle of the unevenness due to the adhesion of the pigment of the painting does not exceed 45 °, and in order to make the painting-like image more realistic, it is assumed that a shadow or the like is added. It was. For this reason, the elevation angle α is described as specifying the direction of the light source 40 in a range that is larger than 45 ° and smaller than 90 °. Do not limit.

また、本実施形態においては、光源方向特定部が、光源から照射される光の輝度値等を取得し、取得した輝度値等に基づき光源の方向及び照度を特定する、として説明したが、更に、光の色データを検出するようにしてもよい。この場合、光源によって出射される光の色データは、本実施形態におけるレンズフード32の内壁328が白色であるため、この光の内壁328における照射部位を撮像画像から、検出可能である。例えば、光源方向特定部が、点A1の輝度及び点C1の輝度ともに色データを検出するようにしてもよい。この色データに基づき、光学処理部は、処理対象の画像において各光が当たると推定される部分の色素を調整することができる。更に、環境光の色と直接光源の光の色とが異なる場合であっても、より実環境に沿うように、処理対象の画像の色素を調整することができる。   Further, in the present embodiment, the light source direction specifying unit has been described as acquiring the luminance value and the like of the light emitted from the light source, and specifying the direction and illuminance of the light source based on the acquired luminance value and the like. The color data of light may be detected. In this case, the color data of the light emitted from the light source can detect the irradiated part of the light on the inner wall 328 from the captured image because the inner wall 328 of the lens hood 32 in the present embodiment is white. For example, the light source direction specifying unit may detect color data for both the luminance at the point A1 and the luminance at the point C1. Based on the color data, the optical processing unit can adjust the pigment of the portion estimated to be irradiated with each light in the image to be processed. Furthermore, even when the color of the ambient light is different from the color of the light of the direct light source, the pigment of the image to be processed can be adjusted so as to more closely match the actual environment.

更に、本実施形態に係るデジタルフォトフレームにおいては、特定された光源(光源の方向・照度)を、画像の陰影等を付加するために用いるものとして説明したが、どのように用いるかは任意である。例えば、特定された光源の方向の情報を、太陽電池の受光面の方向制御に用いるようにしてもよい。   Furthermore, in the digital photo frame according to the present embodiment, the specified light source (light source direction / illuminance) has been described as being used to add shading of an image, but how it is used is arbitrary. is there. For example, you may make it use the information of the direction of the identified light source for the direction control of the light-receiving surface of a solar cell.

また、本実施形態においては、デジタルフォトフレームを例として説明したが、デジタルカメラ、パソコン、ノートパソコン又はPDA(パーソナル・デジタル・アシスタント)等に用いるようにしてもよい。   In the present embodiment, a digital photo frame has been described as an example, but it may be used for a digital camera, a personal computer, a notebook personal computer, a PDA (personal digital assistant), or the like.

上記プログラムは、OS(Operation System)と協働してCPUに光源方向特定処理を行わせるものであってもよい。この場合、OSも記憶部に記録される。また、上記プログラムは、持ち運び可能な記憶媒体(例えば、CD−ROM(Compact Disk Read Only Memory)、DVD−ROM(Digital Versatile Disk Read Only Memory))に記録され、光源方向特定装置に供給(インストール)されてもよい。また、上記プログラムは、ネットワークを介して光源方向特定装置に供給されてもよい。これらの場合には、記憶部は、フラッシュメモリ等によって構成され、このフラッシュメモリに上記プログラムが記録される。   The program may cause the CPU to perform a light source direction specifying process in cooperation with an OS (Operation System). In this case, the OS is also recorded in the storage unit. The program is recorded on a portable storage medium (for example, CD-ROM (Compact Disk Read Only Memory), DVD-ROM (Digital Versatile Disk Read Only Memory)) and supplied (installed) to the light source direction specifying device. May be. The program may be supplied to the light source direction specifying device via a network. In these cases, the storage unit is configured by a flash memory or the like, and the program is recorded in the flash memory.

プログラムが記録された、フラッシュメモリ、又は、持ち運び可能な記憶媒体等は、コンピュータが読み取り可能なプログラム製品(プログラムを記憶したコンピュータが読み取り可能な記憶媒体)になる。プログラムは、機能の少なくとも一部が専用回路によって実現され光源方向特定装置を動作させるものであってもよい。つまり、光源方向特定装置は、全体として、光源方向特定処理を行うものであればよく、上記プログラムは、そのような光源方向特定装置を動作させるものであればよい。   A flash memory or a portable storage medium on which the program is recorded becomes a computer-readable program product (a storage medium readable by a computer storing the program). The program may be a program in which at least a part of the function is realized by a dedicated circuit to operate the light source direction specifying device. That is, the light source direction specifying device may be any device that performs a light source direction specifying process as a whole, and the above program only needs to operate such a light source direction specifying device.

10・・・デジタルフォトフレーム(光源方向特定装置)、20・・・モニタ(表示部)、30・・・撮像装置(撮像装置)、32・・・レンズフード(光導入部)、320・・・フード画像領域、322・・・軸線、324,326・・・開口、40・・・光源、50・・・外界画像、52・・・絵画調変換部、60・・・光学処理部、62・・・光源方向特定部、64・・・CPU、66・・・記憶部(格納部)、90(90a,90b,90c,90d)・・・撮像画像(第1の画像)、A1・・・点、B(B1,B2,B3)・・・点、C1・・・点、L(L1,L2,L3)・・・最大長さ、P・・・中心点、R(R1,R2,R3)・・・明領域、α(α1,α2)・・・仰俯角、β(β1,β2)・・・方位角 DESCRIPTION OF SYMBOLS 10 ... Digital photo frame (light source direction identification device), 20 ... Monitor (display unit), 30 ... Imaging device (imaging device), 32 ... Lens hood (light introduction unit), 320 Hood image area, 322... Axis, 324, 326... Aperture, 40... Light source, 50 .. external image, 52. ... Light source direction specifying part, 64 ... CPU, 66 ... Storage part (storage part), 90 (90a, 90b, 90c, 90d) ... Captured image (first image), A1. Point, B (B1, B2, B3) ... Point, C1 ... Point, L (L1, L2, L3) ... Maximum length, P ... Center point, R (R1, R2, R3) ... bright region, α (α1, α2) ... elevation angle, β (β1, β2) ... azimuth angle

Claims (7)

両端開口の孔を有し、光源から出射された光が一端の開口から前記孔の内部に入射し、入射した光によって、前記孔の内壁における、前記一端の開口の周囲が照らされる光導入部と、
前記光導入部の他端の開口側に配置され、前記光導入部の前記一端の開口及び前記一端の開口に繋がる前記内壁を撮像する撮像装置と、
前記撮像装置が撮像した第1の画像に基づいて、前記第1の画像の中の前記内壁における所定の基準以上の明るさを有する明領域を特定し、特定した前記明領域に基づいて前記光源の方向を特定する光源方向特定部と、
を備えることを特徴とする光源方向特定装置。
A light introducing portion having a hole at both ends and light emitted from a light source is incident on the inside of the hole from an opening at one end, and the incident light illuminates the periphery of the opening at the one end on the inner wall of the hole When,
An imaging device that is disposed on the opening side of the other end of the light introducing portion and that images the inner wall connected to the opening of the one end and the opening of the one end of the light introducing portion;
Based on the first image captured by the imaging device, a bright area having a brightness equal to or higher than a predetermined reference in the inner wall in the first image is identified, and the light source is based on the identified bright area. A light source direction specifying part for specifying the direction of
A light source direction identification device comprising:
前記光源方向特定部は、前記明領域における、前記一端の開口の中心から最も離れた位置にある点を特定し、特定した前記点の位置に基づいて前記光源の方向を特定する、
ことを特徴とする請求項1に記載の光源方向特定装置。
The light source direction specifying unit specifies a point at a position farthest from the center of the opening at the one end in the bright region, and specifies the direction of the light source based on the specified position of the point.
The light source direction specifying device according to claim 1.
前記光源方向特定部は、前記第1の画像に基づいて、前記明領域内を照らす光の照度及び/又は色を特定する、
ことを特徴とする請求項1又は2に記載の光源方向特定装置。
The light source direction specifying unit specifies the illuminance and / or color of light that illuminates the inside of the bright region based on the first image.
The light source direction identification device according to claim 1 or 2, characterized in that
前記光源方向特定部は、前記第1の画像に基づいて、前記明領域外を照らす光の照度及び/又は色を特定する、
ことを特徴とする請求項1又は2に記載の光源方向特定装置。
The light source direction specifying unit specifies the illuminance and / or color of light that illuminates outside the bright region based on the first image.
The light source direction identification device according to claim 1 or 2, characterized in that
前記光源方向特定部は、
前記第1の画像に基づいて、前記明領域内を照らす光の照度を特定し、
前記第1の画像に基づいて、前記明領域外を照らす光の照度を特定し、
特定した前記明領域内外の光の照度に基づいて、直接光源と間接光源との照度の比を特定する、
ことを特徴とする請求項1又は2に記載の光源方向特定装置。
The light source direction specifying unit is
Based on the first image, the illuminance of light illuminating the bright area is identified,
Based on the first image, identify the illuminance of light that illuminates outside the bright area,
Based on the illuminance of the light inside and outside the identified bright area, the illuminance ratio between the direct light source and the indirect light source is identified.
The light source direction identification device according to claim 1 or 2, characterized in that
第2の画像を取得し、前記光源特定部によって特定された、少なくとも前記光源の方向に応じて陰影及び/又は光沢を、取得した前記第2の画像に付加する画像処理を行う光学処理部、
を更に備えること特徴とする請求項1乃至5のいずれか1項に記載の光源方向特定装置。
An optical processing unit that acquires a second image and performs image processing that is specified by the light source specifying unit and adds a shadow and / or gloss to the acquired second image according to at least the direction of the light source;
The light source direction identification device according to claim 1, further comprising:
両端開口の孔を有し、光源から出射された光が一端の開口から前記孔の内部に入射し、入射した光によって、前記孔の内壁における、前記一端の開口の周囲が照らされる光導入部と、
前記光導入部の他端の開口側に配置され、前記光導入部の前記一端の開口及び前記一端の開口に繋がる前記内壁を撮像する撮像装置と、を備える装置を制御するコンピュータに、
前記撮像装置が撮像した第1の画像に基づいて、前記第1の画像の中の前記内壁における所定の基準以上の明るさを有する明領域を特定し、特定した前記明領域に基づいて前記光源の方向を特定する光源方向特定ステップ、
を行わせることを特徴とする光源方向特定プログラム。
A light introducing portion having a hole at both ends and light emitted from a light source is incident on the inside of the hole from an opening at one end, and the incident light illuminates the periphery of the opening at the one end on the inner wall of the hole When,
A computer that controls an apparatus including: an imaging device that is disposed on an opening side of the other end of the light introducing unit and that images the inner wall connected to the opening of the one end of the light introducing unit and the opening of the one end;
Based on the first image captured by the imaging device, a bright area having a brightness equal to or higher than a predetermined reference in the inner wall in the first image is identified, and the light source is based on the identified bright area. A light source direction specifying step for specifying the direction of
A light source direction specifying program characterized in that
JP2010180995A 2010-08-12 2010-08-12 Light source direction specifying device and light source direction specifying program Active JP5510175B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010180995A JP5510175B2 (en) 2010-08-12 2010-08-12 Light source direction specifying device and light source direction specifying program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010180995A JP5510175B2 (en) 2010-08-12 2010-08-12 Light source direction specifying device and light source direction specifying program

Publications (3)

Publication Number Publication Date
JP2012043004A true JP2012043004A (en) 2012-03-01
JP2012043004A5 JP2012043004A5 (en) 2013-09-19
JP5510175B2 JP5510175B2 (en) 2014-06-04

Family

ID=45899280

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010180995A Active JP5510175B2 (en) 2010-08-12 2010-08-12 Light source direction specifying device and light source direction specifying program

Country Status (1)

Country Link
JP (1) JP5510175B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6178938B1 (en) * 2017-02-06 2017-08-09 株式会社 アルステクネ Painting Appreciation Support System and Painting Appreciation Support Method
JP6708862B1 (en) * 2019-12-09 2020-06-10 株式会社 アルステクネ Image processing method, program, and image processing apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04115112A (en) * 1990-09-05 1992-04-16 Nippondenso Co Ltd Incident-light detecting sensor
JP2000235657A (en) * 1999-02-17 2000-08-29 Nippon Telegr & Teleph Corp <Ntt> Method and device for displaying picture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04115112A (en) * 1990-09-05 1992-04-16 Nippondenso Co Ltd Incident-light detecting sensor
JP2000235657A (en) * 1999-02-17 2000-08-29 Nippon Telegr & Teleph Corp <Ntt> Method and device for displaying picture

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6178938B1 (en) * 2017-02-06 2017-08-09 株式会社 アルステクネ Painting Appreciation Support System and Painting Appreciation Support Method
JP2018128502A (en) * 2017-02-06 2018-08-16 株式会社 アルステクネ Painting appreciation support system and painting appreciation support method
JP6708862B1 (en) * 2019-12-09 2020-06-10 株式会社 アルステクネ Image processing method, program, and image processing apparatus
WO2021117099A1 (en) * 2019-12-09 2021-06-17 株式会社アルステクネ Image processing method, program, and image processing device

Also Published As

Publication number Publication date
JP5510175B2 (en) 2014-06-04

Similar Documents

Publication Publication Date Title
US20130335535A1 (en) Digital 3d camera using periodic illumination
US20090297020A1 (en) Method and system for determining poses of semi-specular objects
JP6553624B2 (en) Measurement equipment and system
JPWO2016158856A1 (en) Imaging system, imaging apparatus, imaging method, and imaging program
US10664090B2 (en) Touch region projection onto touch-sensitive surface
US20160245641A1 (en) Projection transformations for depth estimation
US20230043020A1 (en) Image scanning device and image scanning method
CN110519485A (en) Image processing method, device, storage medium and electronic equipment
JP5799232B2 (en) Lighting control device
TW201512676A (en) Image analyzing system and method
JP5510175B2 (en) Light source direction specifying device and light source direction specifying program
US20190066366A1 (en) Methods and Apparatus for Decorating User Interface Elements with Environmental Lighting
JP6390163B2 (en) Information processing apparatus, information processing method, and program
US10168833B2 (en) Presentation of a digital image of an object
JP5506371B2 (en) Image processing apparatus, image processing method, and program
WO2019170688A1 (en) System for measuring skin pores
TWI480507B (en) Method and system for three-dimensional model reconstruction
JP6108383B2 (en) Piping position measuring system and piping position measuring method
JP5865092B2 (en) Image processing apparatus, image processing method, and program
WO2019198446A1 (en) Detection device, detection method, information processing device, and information processing program
JP2017161370A (en) Detector, detection system, detection method and detection program
JP6508617B2 (en) Image reading apparatus, image reading method and image reading program
US20130176399A1 (en) System and method for creating a three-dimensional image file
JP2020112981A (en) Detection device, information processing device, detection method, detection program, and detection system
CN110505393B (en) Image processing device and method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130809

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130809

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140213

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140310

R150 Certificate of patent or registration of utility model

Ref document number: 5510175

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150