เอกสารโครงการการขึ้นรูปโครงสร้าง 3 มิติ โดยใช้ภาพถ่าย 2 มิติ
เอกสารโครงการการขึ้นรูปโครงสร้าง 3 มิติ โดยใช้ภาพถ่าย 2 มิติ
COE2006-16
ก
3
2
ก !"#
$% 463040511-3
)$ก$* "+))$
$% 463040513-9
Title
By
ก
3
2
123456 ก7
ก
....................................................
. . 7<$ .$
12389 :;
ก
1. bbbbbbbbbbbbbb
. .74 %!7:7%9
2. bbbbbbbbbbbbbb
#0. .:-
-
4$6 ก
Abstract
% $i
% $i9"< )
% $i
44- 1 4f 1
1.1
$กก>
=
!#
1
1.2 7$d!"=%ก 1
1.3 ก 1
1.4 >#กf 2
1.5 #
4-76)=hc$ 2
44- 2 4no->
=7)$4-ก-7c 3
2.1 4no->
=
$กก .c 3
2.1.1 Laser Scan 3
2.1.1 Photogrammetry 4
2.2.7)$4-ก-7c 5
44- 3 กก> >
=%c$7> 3 9
3.1 ก)$กd6<
!7$d! 10
3.2 กf7:ก$7$d!2 3 14
3.3 ก2)!ก$8
c"/$7> 3 7$d! 14
44- 4 ก$e">ก>
=!"ก: 15
4.1. ก4f">ก 15
4.2. ก82c">ก 17
44- 5 $76ก4f">ก 18
5.1 กd6<
!7$d! 18
5.2 ก>%$7> 3 19
44- 6 4%!">
=c%>= 21
6.1. 4%!"กf 21
6.2. "+i
4- 8กf 21
6.3. c%>= 22
6.4. >748ก"=!ก>
=$e6h" 22
<#7ก 23
:!ก 28
)
<=@
1.1 DE=กกFE:;DG8E
8ก1.9"$7> 3 (3D Modeling) 7$d!) 82c7$.4$7h" #9c4fก
1.9")=c4fก"=:
7$7$d!ก682c!"ก:7$26 hc 4$
7- "/c
>
c7)1f64-hc%c"/%c 3 82c">ก 3 %fx)9" (26 3D MAX Maya
Lightwave "/c) %f
$ 7$d!4--75$ 5c -7c51h64 %ก7c$. ก
7$c7)4f8
cก7
8ก1.9"hc -ก4$.ก1.9"82c$77$2ก
7$
7$d!) 4-82c7$)=->ก h6
=ก$ %d01ก
674-- "=:)fก$
:=#9c)$4f)1hc->78ก01ก$e 4ก1.9"$7> 3 82c<d6 2
! 7$d! >
c782c79cc Digital Image Processing 8 3D Reconstruction
%c$7> 3 1. 8
c%d4fก1.9"7$d!4--9"65$ 5c hc6%=7ก>6fก
1. >
= %df$7> 3 4-hc h"82c8>%#
"/ก $41ก%c7$d!6g 4
ก>4 :- ก01 ก กก> #
<$ : ; 8
c "/ > 3 %d82c 8 ก- 9c
c
$>"
>กch6h"hc
1.3 1<;1
ก
ก-. 01ก>
=$e7*-ก74$.= %f
$ ก1.9"$7> 3
82c<d6 4$0
!4- $41กก
cd6<> )
2
1.4 F8กB;
4- 1.1 ==7
>
=>#กf
.
8 4-.> 6
=-ก"/ 2 %67 %67>ก4no->
=
$กก .c4-82c8ก
d6<>
=ก%c$7> 3 7$d! %674- 2 ก01ก7)$8c4-ก-7c 82c"/
>748ก$eก51-
=-$-.
%678
i6>
c74 Laser Scan $ก82c84!%
ก 51!"ก:8ก82c
->
=%f
$ 4-cก7>6f82ก$%9 >
===
6=
767$d!>
=
!"ก:h6hก
ก$กh"
4
2.1.2 Photogrammetry (Stereoscopy)
ก= !ก$2 3 7$d!82c
$กก4:f7:ก$)ก
<d6$.>6 2 <1.h"51d6)ก!4-6ก$ )!-7ก$8<)=d9ก= !%c%
%c$ %-
ก)ก)!$. ก
ch"$ 7$d! >6
=<"- %"/<4-h c)ก)!$. ก
c
6gก$ 4f8
6hc%c$%-
g%c 51ก$ก$%c
6-. )=%df7:82c
$กก4
:8
chcก$7$d!ก
8กd69")=%dc==ก$ (Coordinate) hc 3 == ==
ก$
ก
==ก$) (World Coordinate) )="/กcก$ f>
68-กf>
6
1
426 !
c
==ก$ก
cd6< )ก>%)ก7$d!))=4#6)!{ก$%
>
c7กก=4 h"$= 9" 4f8
cกก$<1. ก"/7%$$*=
76 ==ก$),
==ก$ก
cd6< >
===ก$<1. $>%8<4- 2.2
)ก<4- 2.2 = -)!{ก$%4- C 4-
%-77{ก$% f )ก<)= 76 Coordinate
ก>
=
%$. h6hc->ก67ก$ 51)=%d4f8
cก$ก>"
Coordinate Ow
51)):4->ก Xw ก6 ก
Xw c77ก t >
=4fก
! (Rotate) 82cก5
R $%ก4-1
Xc
Xc = Yc = R( Xw − t ) ____________________
1
Zc
5
):z= Coordinate ก
c )=):4- Zc >
= Xc $$.4-)! Xc )=d9ก
z
= 9"4- Uc 51 767%$$*==ก$)=7=
$กก%
-
c $>%8< 2.3 >
=%d
7%$$*)!Uc hc$%ก4-2
T
− fzc − fyc
Uc = , ,− f ____________________
2
Zc Zc
2.2 92=456;ก5691
#
7 )$ ก- 7ก$ ก%c > 3 ) ก<d6 - ก >
=- ก$ e 6
6 $76#
7)$4-ก-7c-$-.
F. Remondino A. Guarnieri >
= A.Voettorre (2005) hc%c"- 4- =
76ก%c$7
> 3 7*-ก Photogrammetry >
= Laser Scan $
=-6h"-. 7*- Photogrammetry
"/7*-4-hc$ ก4% >
c776"/7*-ก4-%=7ก >
=2dhc%f
$ ก4f 3D Reconstruction
)ก"/44-h65$ 5c !"ก:26 ก
cd69"%dก>
=
hc6 -964$7h"
7d1->
2$4-%d
5.hc %67c%- กf7:ก$7$d!)ก<)=4fhc2c 82c7
ก
ก4fก$ 7$d!4--8
i6261ก
%ก6%c )=h6%d4fก%c> $$ >46
! hc$26 7$ d!
xก #9c 4
)=c7$ ==d6<c 7 - ก4$. ก82c < 4-- 7
=-%9
fกg 6-#
67
>
=7>6f8ก"=7
#
51ก:-4-<-7
=-f)=4f8
cกf7:8
=-h6-464-7 $>%8<4- 2.4 %677*- Laser Scan
"/4
-4--7
!6%9 %d82chcก$ >
2$%f
$ ก%f7)
>
2$
6
%f
$ ก%c$7> 3 hc- 51-c-%df7:ก$hc7x7 >cc9
)=-)f7ก -
74-%9 >66hกx-!"ก:$.กhcก -%9 74$.)-ก ก7ก1.8ก
"=7
#
7: 7$d!$>%8<4- 2.5
<4- 2.5 ก ก7 7: $7> 3 4-ก)ก7*- Laser Scan
(a) (b)
7
h4
7$d!
ก
c Webcam
y
!
5
<4- 3.3 กd6<
!7$d!
3.1.1 1G กN3456
กE1Webcam
ก
c Webcam 4-82c"/ก
c $4 Logitech !6 QuickCam Pro 4000 4-6ก$
7#6 USB 1.1
2.0 >6ก:-4-)=d6< 1
cก5
(Megapixel)
)=c82cUSB 2.0 Hi-Speed 7
=-))=964- 640X480 pixel >
=%d)$
<
h
7hc 30 {674- >
=%d82chcก$ = "
$ก Windows 2000 >
=
Windows XP hc
12
;Q ; 131;13
%x""4-82c"/%x"" 4 Phase Sanyo denki 82c>$h{{ 2.5 V. 4-
2.1 Amp.
!hc 400 %x"6 %c#609ก
3 .7 7 2.5 .7 >ก 10
> %9%! 1.2 N-M (12kg-cm)
VCC %f
$ 6h{
-. +5 Volt
GND %f
$ 6ก$ ก7=
Port0 (P0.0-P0.7) >6
=%dกf
8
c"/hc4$.!>
=!
Port1 (P1.0) "/!%f
$ $ 6 Timer2
(P1.1) "/!4กก Timer2
(P1.5-1.7) %f
$ 26> ISP 4fก">c9
=
Port2 (P2.0-P2.7) >6
=%dกf
8
c"/hc4$.!>
=!
Port3 (P3.0-P3.7) >6
=%dกf
8
c"/hc4$.!>
=! >
=
ก)ก$. Port3 $-
64-ก82c0$-.
P3.0 82c"/!%f
$ ก%%> !ก (RxD)
P3.1 82c"/!%f
$ ก%%> !ก (TxD)
P3.2 82c"/!%$ii:$")ก<ก26 0
P3.3 82c"/!%$ii:$")ก<ก26 1
P3.4 "/!%f
$ $ 6 Timer0 (T0)
P3.5 "/!%f
$ $ 6 Timer0 (T1)
P3.6 82c"/%$ii: WR 8ก:-26ก$
677)f
<ก
P3.7 82c"/%$ii: RD 8ก:-26ก$
677)f
<ก
XTALL1 >
= XTALL2 "/%f
$ 6%
%c%$ii:ก8
cก$ =
RST -5ก4fh4
ALE/PROG "/4-7 !ก>
5 Port0 -ก82c
677)f<ก >
=$ $
%ก">กc9
8h4
EA/VPP "/%f
$
ก6
677)f<ก
<8$7
h4
PSEN "/4-82c8ก%6%$ii:c6
677)f
<ก
15
3.2 กB9Nก= 3 <M8919=G
$)กhc<d6>7
f>%
54-"ก
#77$d!8>6
=!>
c7 $.6
กfc9
>
f>%4-"ก
f 7:ก$ 3 . #77$d! "ก $. !"ก:
d6<$>%8< 3.8 )! A )="/)!4-
f>%
5ก=4 .#77$d! )! O "/)!
!
>4677$d!
#77$d!
D )!
!
X Optical Axis
α
O f θ
5
<4- 3.8 กf7:
ก$7$d!
C )!09ก
%ก
c f =={ก$%
D ==4)ก)!
!d1)!09ก
%
θ !4->%
54fก$ >ก Optical axis
8ก:--.ก* .#77$ d!89"ก$4ก= ก (R, θ ,Z) )=
=%4-%! )ก
ก$7$d!hc)กกd6<7$d! 8
! 51hc)กก
!7$d! )!09ก
)!
-7ก$
)ก<)= 76
X R sin θ
=
f D − R cos θ
16
$$.)=hc76
XD
R=
X cos θ + f sin θ
hc 6$ 0- R >
c 7 f h""=ก ก$ 6 0<d6 )=hc ก$2 $. 7 (Polar
coordinate) (R, θ ) 8%677%9 Z 7$d!%df7:hc)ก<4- 3.9
y Z
=
f D − R cos θ
f
Z =
y ( D − R cos θ )
R cos θ
y f
1 2
)ก<4- 4.3
1
c6>%<)กก
c Webcam
2
c6
>%<4-d6)กก
c >
=
3
c6>%#
ก"=7
%c7$d!4-f7hc
)ก<d67$d!51)=fh"%c"/$7> 3 6h"
4.2 ก
Fก
c8
cf7$d!4-cก1.9"7h7c >46
! )ก$.)1"~
>%
58
cz
h" 7$d! >
c7)1ก Initial $>%8<4- 4.5 (
1) ก4fก
c Webcam
)ก$.)1ก Auto (
2) กd6<$$ >
c7)1ก Build 3D Model (
3)
"~
c6= 3 >%%c 3 >
c7)1ก Build (<4-4.6
4) 9#
>6
กc กd6 <7$ d! 4-
=<>
c 7 4f hc
$ )กก Initial >
c 78
c ก Connent
(
5) >
c7
ก76)=
!7$d!47x
xก )ก$.)1ก
!h"40$.
(
7
8) ) %dก Build 3D Model hc
7
9#
d6<%x)
>
c7)1ก Disconnect (
6)
21
1
5
6
2
3 7 8
)ก<4- 5.1 "~">ก1.)= 2ก
c Webcam 4-6cก$ 796
8
cก Initial cก4fก
c 51)="ก
x<)กก
c8 Mode <
h
7
)ก$.ก Start Capture )="ก
<7$d!>
=%c7$d!4-"=7
#
hc)ก>%
54-z 7$d!$>%8<4- 5.2 >68
cกd6<"h"$$7ก Auto
d6<>
=
!7$d!h"cgก$) 7$d!
23
R O R O
(a) (b)
<4- 6.1 c)fก$7$d!4-%d%c> )f
hc
6. 2 g@D456<กB;
0%8ก%c$7> 3 )ก7$d!)(Reconstruction) $.8"+))! $$h6-7*-ก>
=
yก>6 ก
!67)$6ก
!6ก$กx)-7c8)>ก6ก$h" $7h"d17*-ก
4กx>ก6ก$h"c7 $h6-กกf
>74h7c662$ 4f8
cก7ก
f ก8
ก
>74
$76 .c 8
cกกc82"o $ -ก4$.กf7:4:0%
4-!6ก>
=5$ 5c -ก4$.c9
4-c
hc>c)=-ก >6กx$h62$) 4f8
cก01ก"/h"6
62c "/#
8
cfก8$.g
กh"c7
25
6. 3 1;
1F:
7ก
f ก4--968$.กก> $.= d6< กf7:ก$7$d!
ก%c.#78
cก$ $7> 3 7h"d1ก->
2$8กf7: >%< 3 >
=
%674-6ก$ #9c82c 4f8
cก)f"/4-c82c7
8ก$e6cก >
=ก>
6c9
82"o $4f8
cก4
8>6
=$.
62c
กh6-ก7
8ก$eกx)f"/64-
#9c )$ 4f )=c 4f ก$ e 6 6 6 7
>c > 6 ) =c $ $. 6 กh" )=c
):6 8
cก>
c7%x)7
c4-9 Build >> Build 4fกh ">ก4-$e )=hc HEX h{ ก
[1] Ahmed H. Eid, Sherif S. Rashad, and Aly A. Farag, Validation of 3-D Reconstruction from
Sequence of Images, University of Louisville, Louisville, USA, 2002
[2] F. Remondino, A. Guarnieri and A. Vettore, 3D Modeling of Close-Range objects:
Photogrammetry or Laser Scanning?, Institute of Geodesy and Photogrammetry ETH
Hönggerberg - Zurich, Switzerland and Cirgeo - Interdept. Research Center of
Geomatics University of Padua Italy, 2005
[3] Milan Sonka, Vaclav Hlavac, and Roger Boyle. Image Processing, Analysis, and Machine
Vision.2004: PWS Pub Co., USA
[4] Nassir Navab, 3D Computer Vision Two View Geometry, technische universität münchen,
January 2006. [Online]. Available form URL:
http://campar.in.tum.de/twiki/pub/Chair/TeachingWs05ComputerVision/3D_CV_WT_2005
_TwoView1.pdf
[5] Sergey Weinstein, 3-D Stereoscopic Reconstruction using Structured Light, Boston college,
2006
[6] Ye Lu, Jason Z. Zhang,Q. M. Jonathan Wu,and Ze-Nian Li, A Survey of Motion-Parallax-
Based 3-D Reconstruction Algorithms, IEEE TRANSACTIONS ON SYSTEMS, MAN, AND
CYBERNETICS, 2005
[7]
%4 >
= กn
>กc7:-, .yกกc7c%96
ก 3 3D Graphics, 5$5% --
)fก$, ก!4