SlideShare a Scribd company logo
1 of 5
Download to read offline
1. โหลดนำไฟล์ภำพที่จะทำเข้ำมำยังโปรแกรม MATLAB
2. โหลดภำพ kidchakood.tif จำกไฟล์ DEM เข้ำมำ จะแสดงข้อมูลของรูปภำพที่จะใช้
3. imagesc คือ คำสั่งเรียกภำพขึ้นมำ ในที่นี้เรียกจำกไฟล์ DEM คือรูปภำพเขำเขำคิชกุฏ
4. เนื่องจำกภำพที่ได้มำยังไม่ชัด จึงใช้คำสั่ง imageschs เพื่อนให้เห็นเนินเขำชัดเจนขึ้น และใช้คำสั่ง gradient เพื่อทำให้
เฉดสีชัดเจนยิ่งขึ้น
5. คำสั่ง crop และกำหนด sizeของภำพ ให้ตัวแปร 3 ตัว คือ [Z,x,y] จะเป็นรูปภำพ 3 มิติ แปลงฐำนจำกรูปภำพให้เป็น
ตัวเลข และใช้คำสั่ง surf(x,y,double(Z)) เพื่อทำให้รูปเสมือนจริง
6. FD = FLOWobj(DEMf); --> DEMf คือ DEM ที่ผ่ำนกำร fillsinks มำแล้ว
A = flowacc(FD);
imageschs(DEM,dilate(sqrt(A),ones(5)),'colormap',flipud(copper));
แสดงพื้นผิว เส้นทำงกำรไหล ร่องระหว่ำงเขำ
สีดำ คือ พื้นระดับต่ำ
สีจำงๆ คือ พื้นที่ระดับสูง
บริเวณกลำงภำพเป็นลักษณะของหินอีคนี แตกตัวเป็นกำบแผ่น
7.กำรแบ่งลักษณะของลุ่มน้ำ ตำมทำงหลักธรณีวิทยำ
DB = drainagebasins(FD);
DB = shufflelabel(DB);
กำรโชว์แผ่นป้ ำย ในที่นี้คือ ตัวลขที่แสดงบนภำพ คือพื้นที่ของลุ่มน้ำต่ำงๆ

More Related Content

Viewers also liked

Los alimentos que combaten la celulitis
Los alimentos que combaten la celulitisLos alimentos que combaten la celulitis
Los alimentos que combaten la celulitisJosepotterr
 
GridCure SXSW Eco 2016 Panel Picker Distributed Energy Presentation
GridCure SXSW Eco 2016 Panel Picker Distributed Energy PresentationGridCure SXSW Eco 2016 Panel Picker Distributed Energy Presentation
GridCure SXSW Eco 2016 Panel Picker Distributed Energy PresentationEmily Basileo
 
Diplomarbeit_Christoph_Knappe
Diplomarbeit_Christoph_KnappeDiplomarbeit_Christoph_Knappe
Diplomarbeit_Christoph_KnappeChristoph Knappe
 
visual programming lecture 2
visual programming lecture 2visual programming lecture 2
visual programming lecture 2Donald G-hub
 
Recent changes service tax and cenvat creit - w.e.f 01.04.2016
Recent changes   service tax and cenvat creit - w.e.f  01.04.2016Recent changes   service tax and cenvat creit - w.e.f  01.04.2016
Recent changes service tax and cenvat creit - w.e.f 01.04.2016oswinfo
 
Harnessing Natural Resources For National Development: Solid Minerals As The ...
Harnessing Natural Resources For National Development: Solid Minerals As The ...Harnessing Natural Resources For National Development: Solid Minerals As The ...
Harnessing Natural Resources For National Development: Solid Minerals As The ...Above Whispers
 

Viewers also liked (14)

Week 9
Week 9Week 9
Week 9
 
Week 12
Week 12Week 12
Week 12
 
Los alimentos que combaten la celulitis
Los alimentos que combaten la celulitisLos alimentos que combaten la celulitis
Los alimentos que combaten la celulitis
 
GridCure SXSW Eco 2016 Panel Picker Distributed Energy Presentation
GridCure SXSW Eco 2016 Panel Picker Distributed Energy PresentationGridCure SXSW Eco 2016 Panel Picker Distributed Energy Presentation
GridCure SXSW Eco 2016 Panel Picker Distributed Energy Presentation
 
Asteroid mining
Asteroid miningAsteroid mining
Asteroid mining
 
See automation-engineers
See automation-engineersSee automation-engineers
See automation-engineers
 
M JYOTHSNA
M JYOTHSNAM JYOTHSNA
M JYOTHSNA
 
La historia del computador
La historia del computadorLa historia del computador
La historia del computador
 
Diplomarbeit_Christoph_Knappe
Diplomarbeit_Christoph_KnappeDiplomarbeit_Christoph_Knappe
Diplomarbeit_Christoph_Knappe
 
N ew zimbabwe
N ew zimbabwe N ew zimbabwe
N ew zimbabwe
 
visual programming lecture 2
visual programming lecture 2visual programming lecture 2
visual programming lecture 2
 
Recent changes service tax and cenvat creit - w.e.f 01.04.2016
Recent changes   service tax and cenvat creit - w.e.f  01.04.2016Recent changes   service tax and cenvat creit - w.e.f  01.04.2016
Recent changes service tax and cenvat creit - w.e.f 01.04.2016
 
Harnessing Natural Resources For National Development: Solid Minerals As The ...
Harnessing Natural Resources For National Development: Solid Minerals As The ...Harnessing Natural Resources For National Development: Solid Minerals As The ...
Harnessing Natural Resources For National Development: Solid Minerals As The ...
 
JYOTI SHARMA
JYOTI SHARMAJYOTI SHARMA
JYOTI SHARMA
 

Similar to Week 10

รายงานคอม
รายงานคอมรายงานคอม
รายงานคอมdekthai
 
รายงาน คอม
รายงาน คอมรายงาน คอม
รายงาน คอมNooLuck
 
รายงาน window
รายงาน windowรายงาน window
รายงาน windowNooLuck
 

Similar to Week 10 (6)

Matlab
MatlabMatlab
Matlab
 
Week13
Week13Week13
Week13
 
น้ำมน
น้ำมนน้ำมน
น้ำมน
 
รายงานคอม
รายงานคอมรายงานคอม
รายงานคอม
 
รายงาน คอม
รายงาน คอมรายงาน คอม
รายงาน คอม
 
รายงาน window
รายงาน windowรายงาน window
รายงาน window
 

Week 10

  • 1. 1. โหลดนำไฟล์ภำพที่จะทำเข้ำมำยังโปรแกรม MATLAB 2. โหลดภำพ kidchakood.tif จำกไฟล์ DEM เข้ำมำ จะแสดงข้อมูลของรูปภำพที่จะใช้
  • 2. 3. imagesc คือ คำสั่งเรียกภำพขึ้นมำ ในที่นี้เรียกจำกไฟล์ DEM คือรูปภำพเขำเขำคิชกุฏ 4. เนื่องจำกภำพที่ได้มำยังไม่ชัด จึงใช้คำสั่ง imageschs เพื่อนให้เห็นเนินเขำชัดเจนขึ้น และใช้คำสั่ง gradient เพื่อทำให้ เฉดสีชัดเจนยิ่งขึ้น
  • 3. 5. คำสั่ง crop และกำหนด sizeของภำพ ให้ตัวแปร 3 ตัว คือ [Z,x,y] จะเป็นรูปภำพ 3 มิติ แปลงฐำนจำกรูปภำพให้เป็น ตัวเลข และใช้คำสั่ง surf(x,y,double(Z)) เพื่อทำให้รูปเสมือนจริง
  • 4. 6. FD = FLOWobj(DEMf); --> DEMf คือ DEM ที่ผ่ำนกำร fillsinks มำแล้ว A = flowacc(FD); imageschs(DEM,dilate(sqrt(A),ones(5)),'colormap',flipud(copper)); แสดงพื้นผิว เส้นทำงกำรไหล ร่องระหว่ำงเขำ สีดำ คือ พื้นระดับต่ำ สีจำงๆ คือ พื้นที่ระดับสูง บริเวณกลำงภำพเป็นลักษณะของหินอีคนี แตกตัวเป็นกำบแผ่น
  • 5. 7.กำรแบ่งลักษณะของลุ่มน้ำ ตำมทำงหลักธรณีวิทยำ DB = drainagebasins(FD); DB = shufflelabel(DB); กำรโชว์แผ่นป้ ำย ในที่นี้คือ ตัวลขที่แสดงบนภำพ คือพื้นที่ของลุ่มน้ำต่ำงๆ