JP4513580B2 - Image processing program and digital camera - Google Patents

Image processing program and digital camera Download PDF

Info

Publication number
JP4513580B2
JP4513580B2 JP2005010594A JP2005010594A JP4513580B2 JP 4513580 B2 JP4513580 B2 JP 4513580B2 JP 2005010594 A JP2005010594 A JP 2005010594A JP 2005010594 A JP2005010594 A JP 2005010594A JP 4513580 B2 JP4513580 B2 JP 4513580B2
Authority
JP
Japan
Prior art keywords
distance
image
angle
points
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2005010594A
Other languages
Japanese (ja)
Other versions
JP2006203347A (en
Inventor
友久 蓮見
啓太 木村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2005010594A priority Critical patent/JP4513580B2/en
Publication of JP2006203347A publication Critical patent/JP2006203347A/en
Application granted granted Critical
Publication of JP4513580B2 publication Critical patent/JP4513580B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)

Description

本発明は、画像データを編集する画像処理プログラム、および画像処理プログラムを搭載したデジタルカメラに関する。   The present invention relates to an image processing program for editing image data and a digital camera equipped with the image processing program.

次のようなカメラが特許文献1によって知られている。このカメラでは、被写体の大きさと角度をファインダ内に表示する。   The following camera is known from Patent Document 1. This camera displays the size and angle of the subject in the viewfinder.

特開平4−326004号公報JP-A-4-326004

しかしながら、従来のカメラによれば、ファインダ内に存在する被写体の角度を検出するための振れ角センサをカメラに搭載しなければならず、さらに撮像者が被写体に対してカメラを向けて、ファインダ内に被写体が映っているときしか角度を表示できないという問題が生じていた。   However, according to the conventional camera, the camera must be equipped with a deflection angle sensor for detecting the angle of the subject existing in the viewfinder, and the photographer points the camera toward the subject and There has been a problem that the angle can be displayed only when the subject is shown on the screen.

請求項1に記載の発明は、コンピュータによって実行するための画像処理プログラムであって、撮影光学系による被写体像を撮像素子によって撮影した撮影画像をモニタに表示する画像表示処理と、前記モニタに表示された撮影画像において2点を指定する指定処理と、前記指定された撮像画像上の2点をそれぞれ前記撮像素子上の第1の位置と第2の位置とに変換して、前記撮像素子上の第1の位置情報と第2の位置情報とを求める変換処理と、前記撮影光学系の焦点距離と前記被写体の撮影距離とによって決まる前記撮影光学系の後側節点と前記撮像素子との相対的な位置を示す相対位置情報を取得する取得処理と、前記撮影光学系の後側節点及び前記第1の位置を結ぶ第1の直線と前記撮影光学系の後側節点及び前記第2の位置を結ぶ第2の直線とのなす角度を、前記取得処理によって取得した前記相対位置情報と前記第1の位置情報と前記第2の位置情報とに基づき算出する角度算出処理と、前記角度算出処理によって算出された角度を、前記撮影光学系から見た、前記指定された2点に対応する実空間上の2点間の角度として表示する角度表示処理とを有することを特徴とする。
The invention described in claim 1 is an image processing program to be executed by a computer, an image display process for displaying on a monitor a captured image obtained by capturing an image of a subject by an imaging optical system , and a display on the monitor A designation process for designating two points in the captured image , and converting the two points on the designated captured image into a first position and a second position on the image sensor, respectively, on the image sensor The first position information and the second position information, and the relative relationship between the image sensor and the rear node of the imaging optical system determined by the focal length of the imaging optical system and the imaging distance of the subject. Acquisition processing for acquiring relative position information indicating a specific position, a rear node of the photographing optical system and a first straight line connecting the first position, a rear node of the photographing optical system, and the second position Tie An angle between two straight lines, the said relative position information and the first positional information and the second position information and angle calculation process of calculating on the basis of acquired by the acquisition process, calculated by the angle calculation process And an angle display process for displaying the angle as an angle between two points on the real space corresponding to the two specified points as viewed from the photographing optical system .

本発明によれば、モニタに表示した画像上で使用者によって指定された2点間の実空間上における撮影レンズから見た角度を算出してモニタに表示するようにした。これによって、角度を算出するための振れ角センサを別途搭載しなくても実空間上における撮影レンズから見た2点間の角度を算出することができる。また、撮像後の画像を用いて角度を算出するため、被写体に対してカメラが向けられていないときでも撮影レンズから見た2点間の角度を算出して使用者に提示することができる。   According to the present invention, the angle seen from the photographing lens in the real space between two points designated by the user on the image displayed on the monitor is calculated and displayed on the monitor. This makes it possible to calculate the angle between two points as viewed from the photographic lens in real space without separately mounting a deflection angle sensor for calculating the angle. Further, since the angle is calculated using the image after imaging, the angle between the two points viewed from the photographing lens can be calculated and presented to the user even when the camera is not directed toward the subject.

図1は、本実施の形態における画像処理装置の一実施の形態の構成を示すブロック図である。画像処理装置100は、例えばパソコンが用いられ、使用者によって操作されるマウス101と、後述する画像処理の対象となるデジタルカメラ等で撮像された画像データ、および画像処理プログラムを保存するHDD102と、画像処理プログラムを実行するための作業エリアとなるメモリ103と、画像処理プログラムを実行するCPU104と、HDD102に格納された画像データ、および画像処理プログラムによって表示される各種データを表示するためのモニタ105とを備えている。   FIG. 1 is a block diagram showing a configuration of an embodiment of an image processing apparatus according to the present embodiment. The image processing apparatus 100 includes, for example, a mouse 101 that is operated by a user using a personal computer, an HDD 102 that stores image data captured by a digital camera or the like that is an object of image processing, which will be described later, and an image processing program. A memory 103 as a work area for executing the image processing program, a CPU 104 for executing the image processing program, image data stored in the HDD 102, and a monitor 105 for displaying various data displayed by the image processing program And has.

本実施の形態における画像処理装置100では、使用者によって撮像された画像内における任意の2点間の撮影レンズから見た角度を算出してモニタ105に表示する。これによって使用者は、例えば、画像内に2つの異なる被写体が存在する場合に、これらの2つの被写体上でそれぞれ1点ずつを指定することによって、この2点間の画像内における撮影レンズから見た角度を知ることができる。このように画像内における任意の2点間の撮影レンズから見た角度を算出するために、使用者はマウス101を操作しHDD102に格納された画像の中から、任意の2点間の撮影レンズから見た角度を算出したい画像を選択してモニタ105に表示する。そして、この表示した対象画像に対して次のように処理を行う。   In the image processing apparatus 100 according to the present embodiment, an angle viewed from the photographing lens between any two points in the image captured by the user is calculated and displayed on the monitor 105. Thus, for example, when there are two different subjects in the image, the user designates one point on each of the two subjects, so that the user can see from the photographing lens in the image between the two points. Can know the angle. Thus, in order to calculate the angle seen from the photographing lens between any two points in the image, the user operates the mouse 101 and the photographing lens between any two points from the image stored in the HDD 102. Then, an image for which the angle viewed from is to be calculated is selected and displayed on the monitor 105. Then, the following processing is performed on the displayed target image.

まず、使用者はマウス101を操作してモニタ105に表示された対象画像上で角度を算出したい任意の2点を指定する。本実施の形態の画像処理装置100では、使用者がモニタ105に表示された画像上の任意の位置でマウス101をクリックすることによって、そのクリック位置を点として指定することができ、画像上の任意の2ヶ所でマウス101をクリックすることによって、対象画像上に角度を算出したい任意の2点を指定することができる。   First, the user operates the mouse 101 to designate two arbitrary points whose angles are to be calculated on the target image displayed on the monitor 105. In the image processing apparatus 100 according to the present embodiment, when the user clicks the mouse 101 at an arbitrary position on the image displayed on the monitor 105, the click position can be designated as a point. By clicking the mouse 101 at two arbitrary positions, two arbitrary points whose angles are to be calculated can be designated on the target image.

使用者によって対象画像上に2点が指定されると、次のように処理を実行し、後述する式(1)〜(13)によって2点間の角度を算出する。まず、使用者によって対象画像上に指定された2点の位置は、当該対象画像を撮像したデジタルカメラの撮像素子上の位置に変換される。これによって、使用者によって対象画像上で指定された2点は、例えば図2に示すように、撮像素子2b上の位置A´およびB´に変換される。   When two points are designated on the target image by the user, processing is executed as follows, and an angle between the two points is calculated by equations (1) to (13) described later. First, the positions of the two points designated on the target image by the user are converted into positions on the image sensor of the digital camera that captured the target image. As a result, the two points designated on the target image by the user are converted into positions A ′ and B ′ on the image sensor 2b, for example, as shown in FIG.

なお、図2においては、デジタルカメラのレンズ2aの前側節点Nから前側節点Nを被写体の位置に変換した点Oまでの距離、すなわち前側節点Nから被写体までの距離はlである。また、レンズ2aの後側節点N´から後側節点N´を撮像素子上の位置に変換した点O´までの距離、すなわち後側節点N´から撮像素子2bまでの距離がl´である。そして、∠ANB=ω、∠A´N´B´=ω´であり、ω=ω´の関係が成り立つ。したがって、撮像素子上における2点間の撮影レンズから見た角度を算出することによって、対象画像内で指定された2点間の実空間上における撮影レンズから見た角度を求めることができる。   In FIG. 2, the distance from the front node N of the lens 2a of the digital camera to the point O obtained by converting the front node N into the subject position, that is, the distance from the front node N to the subject is l. The distance from the rear node N ′ of the lens 2a to the point O ′ obtained by converting the rear node N ′ into a position on the image sensor, that is, the distance from the rear node N ′ to the image sensor 2b is l ′. . Then, ∠ANB = ω and ∠A′N′B ′ = ω ′, and the relationship of ω = ω ′ is established. Therefore, by calculating the angle seen from the photographic lens between two points on the image sensor, the angle seen from the photographic lens in the real space between the two points designated in the target image can be obtained.

ここで、レンズ2aの前側節点Nから被写体までの距離はl、および後側節点N´から撮像素子2bまでの距離l´は、レンズ2aの型式ごとに異なり、撮影距離および焦点距離に基づいて算出可能である。ここで、撮影距離は、対象画像の撮影時にデジタルカメラによって焦点距離などの撮影データとともに計測され、対象画像の画像データ内に記憶されている。デジタルカメラのレンズ2aの型式に対応する撮影距離および焦点距離と、距離lおよびl´との対応表をあらかじめHDD102に記憶しておき、当該対応表に基づいて距離lおよびl´を算出する。   Here, the distance from the front node N of the lens 2a to the subject is l, and the distance l ′ from the rear node N ′ to the image sensor 2b differs depending on the type of the lens 2a, and is based on the photographing distance and the focal length. It can be calculated. Here, the shooting distance is measured together with shooting data such as a focal length by the digital camera at the time of shooting the target image, and is stored in the image data of the target image. A correspondence table of the shooting distance and focal length corresponding to the model of the lens 2a of the digital camera and the distances l and l 'is stored in the HDD 102 in advance, and the distances l and l' are calculated based on the correspondence table.

図3は、図2における撮像素子2b側を拡大して、撮像素子2b上の位置に変換された2点A´およびB´の位置関係を明確に示した図である。図3において、レンズ2aの後側節点N´から2点A´およびB´まで距離をそれぞれlaおよびlbとする。また、点O´から点A´までの水平方向の距離を示す点をA´x、垂直方向の距離を示す点をA´yとし、点O´から点B´までの水平方向の距離を示す点をB´x、垂直方向の距離を示す点をB´yとする。   FIG. 3 is a diagram clearly showing the positional relationship between two points A ′ and B ′ converted into positions on the image sensor 2b by enlarging the image sensor 2b side in FIG. In FIG. 3, the distances from the rear node N ′ of the lens 2a to the two points A ′ and B ′ are denoted by la and lb, respectively. A point indicating the horizontal distance from the point O ′ to the point A ′ is A′x, a point indicating the vertical distance is A′y, and the horizontal distance from the point O ′ to the point B ′ is A point to be indicated is B′x, and a point indicating a vertical distance is B′y.

図4は、上述した図3を上方、すなわち矢印3aの方向から見た図である。この図4においては、点O´と点A´x間の長さをax、点O´と点B´x間の長さをbx、後側節点N´と点A´x間の長さをlah、後側節点N´と点B´x間の長さをlbhとする。このとき、∠A´xN´B´x、すなわち撮像素子上の位置に変換した2点A´およびB´の水平角度をωhとすると、この水平角度ωhは余弦定理により次式(1)および(2)によって算出される。
(ax+bx) = lah+lbh−2・lah・lbh・cosωh ・・・(1)
ωh = cos−1((lah+lbh−(ax+bx))/(2・lah・lbh)) ・・・(2)
FIG. 4 is a view of FIG. 3 described above as viewed from above, that is, from the direction of the arrow 3a. In FIG. 4, the length between the point O ′ and the point A′x is ax, the length between the point O ′ and the point B′x is bx, and the length between the rear side node N ′ and the point A′x. Is lah, and the length between the rear node N ′ and the point B′x is lbh. At this time, ∠A′xN′B′x, that is, if the horizontal angle of the two points A ′ and B ′ converted into positions on the image sensor is ωh, the horizontal angle ωh is expressed by the following equation (1) and Calculated by (2).
(Ax + bx) 2 = lah 2 + lbh 2 −2 · lah · lbh · cosωh (1)
ωh = cos -1 ((lah 2 + lbh 2 - (ax + bx) 2) / (2 · lah · lbh)) ··· (2)

なお、式(2)においてlahおよびlbhは、次式(3)および(4)により算出可能である。すなわち、∠N´O´A´x、および∠N´O´B´xがそれぞれ直角なので、三平方の定理により次式(3)および(4)が成り立つ。
lah =l ´+ax ・・・(3)
lbh = l´+bx ・・・(4)
In formula (2), lah and lbh can be calculated by the following formulas (3) and (4). That is, since ∠N′O′A′x and ∠N′O′B′x are at right angles, the following equations (3) and (4) are established by the three-square theorem.
lah 2 = l ′ 2 + ax 2 (3)
lbh 2 = l ′ 2 + bx 2 (4)

図5は、上述した図3を側方、すなわち矢印3bの方向から見た図である。この図5においては、点O´と点A´y間の長さをay、点O´と点B´y間の長さをby、後側節点N´と点A´y間の長さをlav、後側節点N´と点B´y間の長さをlbvとする。このとき、∠A´yN´B´y、すなわち撮像素子上の位置に変換した2点A´およびB´の垂直角度をωvとすると、この垂直角度をωvは余弦定理により次式(5)および(6)によって算出される。
(ay+by) = lav+lbv−2・lav・lbv・cosωv ・・・(5)
ωv = cos−1((lav+lbv−(ay+by))/(2・lav・lbv)) ・・・(6)
FIG. 5 is a view of FIG. 3 as seen from the side, that is, from the direction of the arrow 3b. In FIG. 5, the length between the point O ′ and the point A′y is ay, the length between the point O ′ and the point B′y is by, and the length between the rear node N ′ and the point A′y. Is lav, and the length between the rear node N ′ and the point B′y is lbv. At this time, ∠A′yN′B′y, that is, if the vertical angle of the two points A ′ and B ′ converted into positions on the image sensor is ωv, the vertical angle ωv is expressed by the following equation (5) according to the cosine theorem. And (6).
(Ay + by) 2 = lav 2 + lbv 2 −2 · lav · lbv · cos ωv (5)
ωv = cos −1 ((lav 2 + lbv 2 − (ay + by) 2 ) / (2 · lav · lbv)) (6)

なお、式(6)においてlavおよびlbvは、次式(7)および(8)により算出可能である。すなわち、∠N´O´A´y、および∠N´O´B´yはそれぞれ直角なので、三平方の定理により次式(7)および(8)が成り立つ。
lav = l´+ay ・・・(7)
lbv = l´+by ・・・(8)
In equation (6), lav and lbv can be calculated by the following equations (7) and (8). That is, since ∠N′O′A′y and ∠N′O′B′y are at right angles, the following equations (7) and (8) are established by the three-square theorem.
lav 2 = l ′ 2 + ay 2 (7)
lbv 2 = l ′ 2 + by 2 (8)

そして、図3におけるA´B´間の角度ωは、A´B´間の距離をdとすると次式(9)および(10)によって算出される。
= la+lb−2・la・lb・cosω ・・・(9)
ω = cos−1((la+lb−d)/(2・la・lb)) ・・・(10)
The angle ω between A′B ′ in FIG. 3 is calculated by the following equations (9) and (10), where d is the distance between A′B ′.
d 2 = la 2 + lb 2 −2 · la · lb · cos ω (9)
ω = cos −1 ((la 2 + lb 2 −d 2 ) / (2 · la · lb)) (10)

なお、式(10)においてdは、次式(11)により算出可能である。
= (ax+bx)+(ay+by)・・・(11)
また、laおよびlbは、次式(12)および(13)により算出可能である。すなわち図3において、∠N´A´xA´、および∠N´B´xB´はそれぞれ直角であることから、式(3)および(4)により、次式(12)および(13)が成り立つ。
la = lah+ay=l´+ax+ay ・・・(12)
lb = lbh+by=l´+bx+by ・・・(13)
In Expression (10), d can be calculated by the following Expression (11).
d 2 = (ax + bx) 2 + (ay + by) 2 (11)
Moreover, la and lb can be calculated by the following equations (12) and (13). That is, in FIG. 3, ∠N′A′xA ′ and ∠N′B′xB ′ are at right angles, and therefore, the following equations (12) and (13) are established by equations (3) and (4). .
la 2 = lah 2 + ay 2 = l ′ 2 + ax 2 + ay 2 (12)
lb 2 = lbh 2 + by 2 = l ′ 2 + bx 2 + by 2 (13)

上述した式(2)、(6)、および(10)で算出したA´B´の間の水平角度をωh、垂直角度をωv、および角度ωを、使用者が指定した2点AB間の水平角度、垂直角度、および角度として、図6に示すようにモニタ105上に出力する。これによって、使用者は対象画像上に指定した2点AB間の撮影レンズから見た水平角度、垂直角度、および角度を把握することができる。   The horizontal angle between A′B ′ calculated in the above formulas (2), (6), and (10) is ωh, the vertical angle is ωv, and the angle ω is between two points AB specified by the user. As a horizontal angle, a vertical angle, and an angle, it outputs on the monitor 105 as shown in FIG. Thus, the user can grasp the horizontal angle, the vertical angle, and the angle as viewed from the photographing lens between the two points AB designated on the target image.

本実施の形態における画像処理装置100では、さらに使用者によって指定した2点AB間の距離Dの表示が指示された場合に、2点AB間の距離Dを算出して使用者に提示することができる。上述した図2において、2点AB間の距離Dは、式(11)で算出した撮像素子上におけるA´B´間の距離dを、l/l´倍することによって算出可能である。すなわち次式(14)によって算出できる。
D = d・l/l´ ・・・(14)
In the image processing apparatus 100 according to the present embodiment, when the display of the distance D between the two points AB designated by the user is further instructed, the distance D between the two points AB is calculated and presented to the user. Can do. In FIG. 2 described above, the distance D between the two points AB can be calculated by multiplying the distance d between A′B ′ on the image sensor calculated by Expression (11) by 1 / l ′. That is, it can be calculated by the following equation (14).
D = d · l / l ′ (14)

また、このときの2点AB間の水平距離Dh、および垂直距離Dvは次式(15)および(16)によって算出できる。
Dh = (ax+bx)・l/l´ ・・・(15)
Dv = (ay+by)・l/l´ ・・・(16)
Further, the horizontal distance Dh and the vertical distance Dv between the two points AB at this time can be calculated by the following equations (15) and (16).
Dh = (ax + bx) · l / l ′ (15)
Dv = (ay + by) · l / l ′ (16)

そして、式(14)〜(16)で算出した距離lにおける2点AB間の距離D、水平距離Dh、および垂直距離Dvを、図6に示した角度の表示に加えて、図7に示すようにモニタ105上に出力する。これによって、使用者は対象画像上に指定した2点AB間の撮影レンズから見た水平角度、垂直角度、および角度と共に、距離lにおける2点AB間の距離D、水平距離Dh、および垂直距離Dvを把握することができる。   Then, in addition to the angle display shown in FIG. 6, the distance D between the two points AB, the horizontal distance Dh, and the vertical distance Dv at the distance l calculated by the equations (14) to (16) are shown in FIG. As shown in FIG. Thus, the user can see the distance D between the two points AB at the distance l, the horizontal distance Dh, and the vertical distance together with the horizontal angle, the vertical angle, and the angle as viewed from the photographing lens between the two points AB designated on the target image. Dv can be grasped.

図8は、本実施の形態における画像処理装置100で実行される画像処理プログラムの処理を示すフローチャートである。なお、この画像処理プログラムは、使用者によってマウス101を介して画像処理の開始が指示されると起動し、CPU104によって実行される。ステップS10において、使用者によって上述したようにマウス101が操作され、対象画像が選択されたか否かを判断する。使用者によって対象画像が選択されたと判断した場合には、ステップS20へ進む。 FIG. 8 is a flowchart showing the processing of the image processing program executed by the image processing apparatus 100 in the present embodiment. The image processing program is activated when the user gives an instruction to start image processing via the mouse 101 and is executed by the CPU 104 . In step S10, it is determined whether or not the user has operated the mouse 101 as described above to select a target image. If it is determined that the target image has been selected by the user, the process proceeds to step S20.

ステップS20では、使用者によってモニタ105上で、マウス101のクリック操作によって、対象画像上に2点が指定されたか否かを判断する。使用者によって対象画像上に2点が指定されたと判断した場合には、ステップS30へ進む。ステップS30では、上述したように式(1)〜(13)によって、2点AB間の撮影レンズから見た水平角度ωh、垂直角度ωv、および角度ωを算出してステップS40へ進む。ステップS40では、使用者によって、さらに指定した2点AB間の距離の表示も指示されたか否かを判断する。 In step S20, it is determined whether or not two points are designated on the target image by a click operation of the mouse 101 on the monitor 105 by the user. If it is determined that two points are designated on the target image by the user, the process proceeds to step S30. In step S30, as described above, the horizontal angle ωh, the vertical angle ωv, and the angle ω viewed from the photographing lens between the two points AB are calculated by the equations (1) to (13), and the process proceeds to step S40. In step S40, it is determined whether or not the user has also instructed display of the distance between the two designated points AB.

使用者によって2点AB間の距離の表示が指示されないと判断した場合には、ステップS60へ進み、算出した2点AB間の撮影レンズから見た水平角度ωh、垂直角度ωv、および角度ωを図6に示すようにモニタ105上に表示する。一方、使用者によって2点AB間の距離の表示が指示されたと判断した場合には、ステップS50へ進む。ステップS50では、上述したように式(14)〜(16)によって2点AB間の距離D、水平距離Dh、および垂直距離Dvを算出してステップS60へ進み、距離lにおける2点AB間の距離D、水平距離Dh、および垂直距離Dvを図7に示すようにモニタ105上に表示する。その後、処理を終了する。   When it is determined that the display of the distance between the two points AB is not instructed by the user, the process proceeds to step S60, and the calculated horizontal angle ωh, vertical angle ωv, and angle ω viewed from the photographing lens between the two points AB are determined. As shown in FIG. 6, it is displayed on the monitor 105. On the other hand, if it is determined by the user that the display of the distance between the two points AB has been instructed, the process proceeds to step S50. In step S50, as described above, the distance D between the two points AB, the horizontal distance Dh, and the vertical distance Dv are calculated by the equations (14) to (16), and the process proceeds to step S60. The distance D, horizontal distance Dh, and vertical distance Dv are displayed on the monitor 105 as shown in FIG. Thereafter, the process ends.

以上説明した本実施の形態によれば、以下のような作用効果を得ることができる。
(1)使用者によって対象画像上で指定された2点の位置を撮像素子上の位置に変換し、撮像素子上の2点間の撮影レンズから見た角度を算出して、実空間上の2点間の撮影レンズから見た角度として使用者に提示するようにした。これによって使用者は対象画像上に2点を指定するだけで、実空間上の2点間の撮影レンズから見た角度を把握することができる。
(2)撮像素子上の2点の撮影レンズから見た角度を余弦定理や三平方の定理を用いて算出して、実空間上の2点間の撮影レンズから見た角度を得るようにした。これによって、対象画像の撮像時に角度を測定する必要はなく、デジタルカメラに角度測定用の機器を搭載する必要がない。
(3)対象画像データ内に含まれる被写体までの距離に基づいて、当該被写体までの距離における2点間の距離を算出して使用者に提示するようにした。これによって使用者は2点間の撮影レンズから見た角度と共に2点間の距離も把握することができる。
According to the present embodiment described above, the following operational effects can be obtained.
(1) The position of two points designated on the target image by the user is converted into a position on the image sensor, and an angle seen from the photographing lens between the two points on the image sensor is calculated, and the real space is calculated. The angle viewed from the photographic lens between two points is presented to the user. Thus, the user can grasp the angle seen from the photographing lens between two points in the real space only by specifying two points on the target image.
(2) The angle seen from the photographic lens at two points on the image sensor was calculated using the cosine theorem or the three-square theorem to obtain the angle seen from the photographic lens between two points in real space. . Thus, it is not necessary to measure the angle when capturing the target image, and it is not necessary to mount an angle measuring device on the digital camera.
(3) Based on the distance to the subject included in the target image data, the distance between the two points in the distance to the subject is calculated and presented to the user. Thus, the user can grasp the distance between the two points as well as the angle viewed from the photographing lens between the two points.

―変形例―
なお、上述した実施の形態の画像処理装置は、以下のように変形することもできる。
(1)上述した実施の形態では、使用者によって指定された2点間の撮影レンズから見た角度を算出する例について説明した。しかしこれに限定されず、例えば画像の中央に位置する点(中心点)を設定し、画像全体、すなわち画像上の全画素における中心点からの撮影レンズから見た角度を算出する。そして、中心点から水平方向、および垂直方向にそれぞれ所定角度おき、例えば10度おきに同一角度となる画素上を通る直線を描画する。これによって、図9に示すように、画像の中心9aから10度間隔でグリッド線を描画することができ、使用者が画像内における被写体の位置関係を把握しやすくなる。
-Modification-
The image processing apparatus according to the above-described embodiment can be modified as follows.
(1) In the above-described embodiment, the example in which the angle viewed from the photographing lens between two points designated by the user has been described. However, the present invention is not limited to this. For example, a point (center point) located at the center of the image is set, and the angle viewed from the photographing lens from the center point of the entire image, that is, all pixels on the image is calculated. Then, straight lines passing through the pixels having the same angle are drawn every predetermined angle, for example, every 10 degrees, in the horizontal direction and the vertical direction from the center point. As a result, as shown in FIG. 9, grid lines can be drawn at intervals of 10 degrees from the center 9a of the image, and the user can easily grasp the positional relationship of the subject in the image.

(2)上述した実施の形態では、使用者によって指定された2点間の撮影レンズから見た角度を算出して、算出した角度をモニタに表示して使用者に提示する例について説明した。しかしこれに限定されず、画像処理装置100に地図データを搭載し、例えば、指定された2点のうち、いずれか1点の位置に存在する被写体の地図上の名称を指定すると、その点と他方の1点との撮影レンズから見た角度を算出する。そして、算出した角度に基づいてあらかじめ名称を指定した点と、他方の点との地図上における位置関係を把握して、他方の点の名称を地図データから読み込んで画像上に表示する。これによって、画像内に名称が分からない被写体が存在する場合でも、一部の被写体の名称が分かっていれば、名称が分からない被写体の名称を把握することができる。 (2) In the above-described embodiment, an example has been described in which the angle viewed from the photographic lens between two points designated by the user is calculated, and the calculated angle is displayed on the monitor and presented to the user. However, the present invention is not limited to this, and map data is mounted on the image processing apparatus 100. For example, when a name on a map of a subject existing at any one of two designated points is designated, The angle seen from the taking lens with respect to the other one point is calculated. Then, the positional relationship on the map between the point whose name is specified in advance based on the calculated angle and the other point is grasped, and the name of the other point is read from the map data and displayed on the image. Thus, even when there is a subject whose name is unknown in the image, if the names of some subjects are known, the name of the subject whose name is unknown can be grasped.

(3)上述した実施の形態では、画像処理装置100としてパソコンを用い、パソコン上で画像処理プログラムを実行する例について説明したが、これに限定されず、デジタルカメラ上で上述した画像処理プログラムを実行してもよい。この場合、デジタルカメラに搭載したモニタ上に対象画像を表示し、使用者はデジタルカメラに搭載したタッチパネルなどの入力装置を操作してモニタ上に表示した対象画像上に2点を指定する。 (3) In the embodiment described above, an example in which a personal computer is used as the image processing apparatus 100 and the image processing program is executed on the personal computer has been described. However, the present invention is not limited to this, and the image processing program described above on the digital camera is executed. May be executed. In this case, the target image is displayed on the monitor mounted on the digital camera, and the user operates the input device such as a touch panel mounted on the digital camera to designate two points on the target image displayed on the monitor.

なお、本発明の特徴的な機能を損なわない限り、本発明は、上述した実施の形態における構成に何ら限定されない。   Note that the present invention is not limited to the configurations in the above-described embodiments as long as the characteristic functions of the present invention are not impaired.

特許請求の範囲の構成要素と実施の形態との対応関係について説明する。HDD102は記憶手段に、CPU104は実行手段に相当する。なお、この対応は一例であり、実施の形態の構成によって対応関係は異なるものである。   The correspondence between the constituent elements of the claims and the embodiment will be described. The HDD 102 corresponds to storage means, and the CPU 104 corresponds to execution means. This correspondence is an example, and the correspondence is different depending on the configuration of the embodiment.

本実施の形態における画像処理装置の一実施の形態の構成を示すブロック図である。It is a block diagram which shows the structure of one Embodiment of the image processing apparatus in this Embodiment. 使用者によって対象画像上に指定された2点の位置を撮像素子上の位置に変換した場合の具体例を示す図である。It is a figure which shows the specific example at the time of converting the position of 2 points | pieces designated on the target image by the user into the position on an image pick-up element. 図2における撮像素子2b側を拡大して、撮像素子2b上の位置に変換された2点A´およびB´の位置関係を明確に示した図である。FIG. 3 is a diagram clearly showing the positional relationship between two points A ′ and B ′ converted into a position on the image sensor 2 b by enlarging the image sensor 2 b side in FIG. 2. 図3を上方、すなわち矢印3aの方向から見た図である。It is the figure which looked at FIG. 3 from the upper direction, ie, the direction of the arrow 3a. 図3を側方、すなわち矢印3bの方向から見た図である。It is the figure which looked at FIG. 3 from the side, ie, the direction of the arrow 3b. 算出した2点AB間の水平角度ωh、垂直角度ωv、および角度ωの表示例を示す図である。It is a figure which shows the example of a display of horizontal angle (omega) h, vertical angle (omega) v, and angle (omega) between 2 points | pieces calculated. 算出した角度、および距離lにおける2点AB間の距離D、水平距離Dh、垂直距離Dvの表示例を示す図である。It is a figure which shows the example of a display of the calculated angle, the distance D between two points AB in the distance l, the horizontal distance Dh, and the vertical distance Dv. 本実施の形態における画像処理装置100で実行される画像処理プログラムの処理を示すフローチャート図である。It is a flowchart figure which shows the process of the image processing program performed with the image processing apparatus 100 in this Embodiment. 変形例におけるグリッド表示の具体例を示す図である。It is a figure which shows the specific example of the grid display in a modification.

符号の説明Explanation of symbols

100 画像処理装置
101 マウス
102 HDD
103 メモリ
104 CPU
105 モニタ
100 image processing apparatus 101 mouse 102 HDD
103 memory 104 CPU
105 Monitor

Claims (6)

コンピュータによって実行するための画像処理プログラムであって、
撮影光学系による被写体像を撮像素子によって撮影した撮影画像をモニタに表示する画像表示処理と、
前記モニタに表示された撮影画像において2点を指定する指定処理と、
前記指定された撮像画像上の2点をそれぞれ前記撮像素子上の第1の位置と第2の位置とに変換して、前記撮像素子上の第1の位置情報と第2の位置情報とを求める変換処理と、
前記撮影光学系の焦点距離と前記被写体の撮影距離とによって決まる前記撮影光学系の後側節点と前記撮像素子との相対的な位置を示す相対位置情報を取得する取得処理と、
前記撮影光学系の後側節点及び前記第1の位置を結ぶ第1の直線と前記撮影光学系の後側節点及び前記第2の位置を結ぶ第2の直線とのなす角度を、前記取得処理によって取得した前記相対位置情報と前記第1の位置情報と前記第2の位置情報とに基づき算出する角度算出処理と、
前記角度算出処理によって算出された角度を、前記撮影光学系から見た、前記指定された2点に対応する実空間上の2点間の角度として表示する角度表示処理とを有することを特徴とする画像処理プログラム。
An image processing program for execution by a computer,
Image display processing for displaying on a monitor a photographed image obtained by photographing an object image by a photographing optical system , and
A designation process for designating two points in the captured image displayed on the monitor;
The two points on the designated captured image are respectively converted into a first position and a second position on the image sensor, and the first position information and the second position information on the image sensor are obtained. Conversion process
An acquisition process for acquiring relative position information indicating a relative position between a rear node of the imaging optical system determined by a focal length of the imaging optical system and an imaging distance of the subject and the imaging element;
An angle formed by a first straight line connecting the rear node of the photographing optical system and the first position and a second straight line connecting the rear node of the photographing optical system and the second position is acquired. An angle calculation process for calculating based on the relative position information, the first position information, and the second position information acquired by
The angle calculated by said angle calculation process, the viewed from the photographing optical system, and characterized in that it has an angle display processing for displaying as the angle between two points on the real space corresponding to the two points where the specified An image processing program.
請求項1に記載の画像処理プログラムにおいて、
前記第1の位置情報及び前記第2の位置情報は、前記撮像素子上に定めたxy直交座標における座標位置を含み、
前記相対位置情報は、前記撮影光学系の後側節点と前記撮像素子との距離であり、
前記角度算出処理は、前記第1の直線と前記第2の直線とのなす角度を、前記取得処理によって取得した前記距離と前記第1の位置に関する座標位置情報と前記第2の位置に関する座標位置情報とに基づき算出することを特徴とする画像処理プログラム。
In the image processing program according to claim 1,
The first position information and the second position information include coordinate positions in xy orthogonal coordinates determined on the image sensor,
The relative position information is a distance between a rear node of the photographing optical system and the image sensor,
In the angle calculation process, the angle formed by the first straight line and the second straight line is obtained by the distance obtained by the obtaining process, the coordinate position information regarding the first position, and the coordinate position regarding the second position. An image processing program that is calculated based on information .
請求項1または2に記載の画像処理プログラムにおいて、
前記実空間上の2点間の距離を、前記相対位置情報と前記撮影距離と前記第1の位置情報と前記第2の位置情報とに基づき算出する距離算出処理と、
前記距離算出処理によって算出された前記実空間上の2点間の距離を表示する距離表示処理とを更に有することを特徴とする画像処理プログラム。
The image processing program according to claim 1 or 2,
A distance calculation process for calculating a distance between two points in the real space based on the relative position information, the shooting distance, the first position information, and the second position information ;
An image processing program , further comprising: a distance display process for displaying a distance between two points in the real space calculated by the distance calculation process .
請求項に記載の画像処理プログラムにおいて、
前記相対位置情報は、前記撮影光学系の後側節点と前記撮像素子との距離であり、
前記距離算出処理は、前記第1の位置情報と前記第2の位置情報とに基づき前記撮像素子上の前記第1の位置と前記第2の位置との距離を算出する第1の処理と、
第1の処理によって算出された前記距離と前記取得処理によって取得した前記距離と前記撮影距離とに基づき前記実空間上の2点間の距離を算出する第2の処理とを有することを特徴とする画像処理プログラム。
The image processing program according to claim 3 .
The relative position information is a distance between a rear node of the photographing optical system and the image sensor,
The distance calculation process includes a first process for calculating a distance between the first position and the second position on the image sensor based on the first position information and the second position information;
And a second process for calculating a distance between two points in the real space based on the distance calculated by the first process, the distance acquired by the acquisition process, and the shooting distance. An image processing program.
請求項1〜のいずれかに記載の画像処理プログラムにおいて、
前記モニタに表示した画像の中心点と、画像全体に設定した複数の点との間の撮影レンズから見た角度を算出し、前記中心点から水平方向、および垂直方向にそれぞれ所定角度おきに同一角度となる点上を通る直線を描画して、画像上にグリッド線を表示するグリッド線表示処理をさらに有することを特徴とする画像処理プログラム
In the image processing program according to any one of claims 1 to 4 ,
The angle seen from the photographing lens between the center point of the image displayed on the monitor and a plurality of points set for the entire image is calculated, and the same from the center point in the horizontal direction and the vertical direction at every predetermined angle. An image processing program characterized by further comprising a grid line display process for drawing a straight line passing over a point serving as an angle and displaying a grid line on the image .
請求項1〜5のいずれか一項に記載の画像処理プログラムを記憶する記憶手段と、Storage means for storing the image processing program according to any one of claims 1 to 5,
前記記憶手段に記憶した画像処理プログラムを実行する実行手段と、  Execution means for executing the image processing program stored in the storage means;
請求項1〜5に記載のモニタとを備えることを特徴とするデジタルカメラ。  A digital camera comprising the monitor according to claim 1.
JP2005010594A 2005-01-18 2005-01-18 Image processing program and digital camera Active JP4513580B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005010594A JP4513580B2 (en) 2005-01-18 2005-01-18 Image processing program and digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005010594A JP4513580B2 (en) 2005-01-18 2005-01-18 Image processing program and digital camera

Publications (2)

Publication Number Publication Date
JP2006203347A JP2006203347A (en) 2006-08-03
JP4513580B2 true JP4513580B2 (en) 2010-07-28

Family

ID=36960979

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005010594A Active JP4513580B2 (en) 2005-01-18 2005-01-18 Image processing program and digital camera

Country Status (1)

Country Link
JP (1) JP4513580B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5789982B2 (en) * 2010-12-29 2015-10-07 株式会社ニコン Imaging direction determining program and display device
JP7461766B2 (en) * 2020-03-24 2024-04-04 大成建設株式会社 Monitoring system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001124544A (en) * 1999-10-25 2001-05-11 Asahi Optical Co Ltd Distance-measuring device
JP2004205884A (en) * 2002-12-26 2004-07-22 Sony Corp Imaging apparatus and method, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001124544A (en) * 1999-10-25 2001-05-11 Asahi Optical Co Ltd Distance-measuring device
JP2004205884A (en) * 2002-12-26 2004-07-22 Sony Corp Imaging apparatus and method, and program

Also Published As

Publication number Publication date
JP2006203347A (en) 2006-08-03

Similar Documents

Publication Publication Date Title
JP6412474B2 (en) Crack width measurement system
JP2006003132A (en) Three-dimensional surveying apparatus and electronic storage medium
JP2007072537A (en) 360-degree image photographing device
JP2017151026A (en) Three-dimensional information acquiring device, three-dimensional information acquiring method, and program
JP2008309680A (en) Track displacement measuring system
JP2006003280A (en) Photographing device and photographing method
JP4764896B2 (en) Camera calibration apparatus, camera calibration method, camera calibration program, and recording medium recording the program
JP6714110B2 (en) Position measuring device and position measuring method
JP4513580B2 (en) Image processing program and digital camera
JP2008076405A (en) Three-dimensional surveying apparatus and electronic storage medium
JP2013170831A (en) Strain measuring device and strain measuring method
JP2004260778A (en) Digital camera, control method and program
WO2019093449A1 (en) Measurement value reading system, measurement value reading device, and measurement value reading method
JP2013231607A (en) Calibration tool display device, calibration tool display method, calibration device, calibration method, calibration system and program
JP2004085553A (en) Surveying system
JP2006010312A (en) Imaging device
JP2008014857A (en) Device, method, and program for acquiring coordinate for inspection of printed board
CN114979616A (en) Display method, information processing apparatus, and recording medium
JP4135934B2 (en) Electronics
JP2002344963A (en) Photographing information attaching device
JP2009222446A (en) Distance measuring device and its program
JP2021071839A (en) Program for construction site recording
JP2007322368A (en) Distance measuring method and device
WO2024190674A1 (en) Information processing method, information processing device, and information processing program
JP2007299219A (en) Method of calibrating distortion in photography image

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080117

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100105

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100308

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20100308

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100503

R150 Certificate of patent or registration of utility model

Ref document number: 4513580

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130521

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130521

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130521

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140521

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250