JP4513580B2 - Image processing program and digital camera - Google Patents
Image processing program and digital camera Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 claims description 30
- 230000003287 optical effect Effects 0.000 claims description 14
- 238000003384 imaging method Methods 0.000 claims description 9
- 238000006243 chemical reaction Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 4
- 241001290864 Schoenoplectus Species 0.000 description 3
- 239000000470 constituent Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000001771 impaired effect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
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.
しかしながら、従来のカメラによれば、ファインダ内に存在する被写体の角度を検出するための振れ角センサをカメラに搭載しなければならず、さらに撮像者が被写体に対してカメラを向けて、ファインダ内に被写体が映っているときしか角度を表示できないという問題が生じていた。 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
本実施の形態における画像処理装置100では、使用者によって撮像された画像内における任意の2点間の撮影レンズから見た角度を算出してモニタ105に表示する。これによって使用者は、例えば、画像内に2つの異なる被写体が存在する場合に、これらの2つの被写体上でそれぞれ1点ずつを指定することによって、この2点間の画像内における撮影レンズから見た角度を知ることができる。このように画像内における任意の2点間の撮影レンズから見た角度を算出するために、使用者はマウス101を操作しHDD102に格納された画像の中から、任意の2点間の撮影レンズから見た角度を算出したい画像を選択してモニタ105に表示する。そして、この表示した対象画像に対して次のように処理を行う。
In the
まず、使用者はマウス101を操作してモニタ105に表示された対象画像上で角度を算出したい任意の2点を指定する。本実施の形態の画像処理装置100では、使用者がモニタ105に表示された画像上の任意の位置でマウス101をクリックすることによって、そのクリック位置を点として指定することができ、画像上の任意の2ヶ所でマウス101をクリックすることによって、対象画像上に角度を算出したい任意の2点を指定することができる。
First, the user operates the
使用者によって対象画像上に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
なお、図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
ここで、レンズ2aの前側節点Nから被写体までの距離はl、および後側節点N´から撮像素子2bまでの距離l´は、レンズ2aの型式ごとに異なり、撮影距離および焦点距離に基づいて算出可能である。ここで、撮影距離は、対象画像の撮影時にデジタルカメラによって焦点距離などの撮影データとともに計測され、対象画像の画像データ内に記憶されている。デジタルカメラのレンズ2aの型式に対応する撮影距離および焦点距離と、距離lおよびl´との対応表をあらかじめHDD102に記憶しておき、当該対応表に基づいて距離lおよびl´を算出する。
Here, the distance from the front node N of the
図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
図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)2 = lah2+lbh2−2・lah・lbh・cosωh ・・・(1)
ωh = cos−1((lah2+lbh2−(ax+bx)2)/(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
(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)が成り立つ。
lah2 =l ´2+ax2 ・・・(3)
lbh2 = l´2+bx2 ・・・(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)2 = lav2+lbv2−2・lav・lbv・cosωv ・・・(5)
ωv = cos−1((lav2+lbv2−(ay+by)2)/(2・lav・lbv)) ・・・(6)
FIG. 5 is a view of FIG. 3 as seen from the side, that is, from the direction of the
(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)が成り立つ。
lav2 = l´2+ay2 ・・・(7)
lbv2 = l´2+by2 ・・・(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)によって算出される。
d2 = la2+lb2−2・la・lb・cosω ・・・(9)
ω = cos−1((la2+lb2−d2)/(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)により算出可能である。
d2 = (ax+bx)2+(ay+by)2・・・(11)
また、laおよびlbは、次式(12)および(13)により算出可能である。すなわち図3において、∠N´A´xA´、および∠N´B´xB´はそれぞれ直角であることから、式(3)および(4)により、次式(12)および(13)が成り立つ。
la2 = lah2+ay2=l´2+ax2+ay2 ・・・(12)
lb2 = lbh2+by2=l´2+bx2+by2 ・・・(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
本実施の形態における画像処理装置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
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
ステップ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
使用者によって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
以上説明した本実施の形態によれば、以下のような作用効果を得ることができる。
(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
(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
(3)上述した実施の形態では、画像処理装置100としてパソコンを用い、パソコン上で画像処理プログラムを実行する例について説明したが、これに限定されず、デジタルカメラ上で上述した画像処理プログラムを実行してもよい。この場合、デジタルカメラに搭載したモニタ上に対象画像を表示し、使用者はデジタルカメラに搭載したタッチパネルなどの入力装置を操作してモニタ上に表示した対象画像上に2点を指定する。
(3) In the embodiment described above, an example in which a personal computer is used as the
なお、本発明の特徴的な機能を損なわない限り、本発明は、上述した実施の形態における構成に何ら限定されない。 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
100 画像処理装置
101 マウス
102 HDD
103 メモリ
104 CPU
105 モニタ
100
103
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の位置情報及び前記第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 .
前記実空間上の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.
前記モニタに表示した画像の中心点と、画像全体に設定した複数の点との間の撮影レンズから見た角度を算出し、前記中心点から水平方向、および垂直方向にそれぞれ所定角度おきに同一角度となる点上を通る直線を描画して、画像上にグリッド線を表示するグリッド線表示処理をさらに有することを特徴とする画像処理プログラム。 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 .
前記記憶手段に記憶した画像処理プログラムを実行する実行手段と、 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.
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)
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)
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 |
-
2005
- 2005-01-18 JP JP2005010594A patent/JP4513580B2/en active Active
Patent Citations (2)
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 |