è¿½è¨ 2017/2/15
huginã®ããã©ãçµåã¯ãã¾ãã¡ã ã£ãã®ã§ãImage Composite Editorã§ãsphereããæå®ãã¦ããã©ããæ¸ãåºãã¦ãããããã¤ã³ãã¨ãã§ç¸¦æ¨ªæ¯1:2ã®ãã£ã³ãã¹ã«è²¼ãä»ããæ¹æ³ã®æ¹ãããããããã¾ãããï¼æ°´å¹³ç·ãä¸å¤®ã«ãªãããã«è²¼ãä»ããã空ã¨å°é¢ãæ®å½±ãã¦ããªãå ´åã¯ä¸ä¸ã¯ç©ºç½ã«ãªãã¾ããï¼
ããã¼ã³ã§æ®å½±ããç»åãåæãã¦ã360°ããã©ãç»åããã©ã¦ã¶ã§è¡¨ç¤ºããæ¹æ³ãç´¹ä»ãã¾ãã
â»ããã¾ã§ã¯Microsoftã®Image Composite Editorã¨Photosynthã§åºæ¥ãã®ã§ãããæ®å¿µãªãã2017å¹´ã®2æã§Photosynthããµã¼ãã¹çµäºã¨ãªãã®ã§ããã®ä»£æ¿æ段ã§ã
ããã©ãç»åã®ä½æ
åçãåæãã¦ããã©ãç»åãä½æããããã«Huginã¨ããã½ãããå©ç¨ãã¾ãã
http://hugin.sourceforge.net/
ã¤ã³ã¹ãã¼ã«ãã¦ãèµ·åãããã¢ã·ã¹ã¿ã³ãã¡ãã¥ã¼ã«å¾ã£ã¦ä½æ¥ãããã ãã§ããããããã©ããä½æ...ãã®åã«ãå¥ã®ã¦ã¤ã³ãã¦ã®ã¡ãã¥ã¼ã«ããã¹ãããã£ã¼ã®ä½æã§ä»¥ä¸ã®ããã«è¨å®ãã¾ãã
- æå½±æ³ãEquirectangularï¼æ£è·åçå³æ³ï¼ã«ããã
- ç»è§ãæ°´å¹³æ¹åï¼360ãéç´æ¹åï¼180ã«ãã
- åãæãããã£ã³ãã¹ãµã¤ãºã«åããã
åºåãã¡ã¤ã«åã¯ãpanorama_fused.tifã¨ãã¦ããã¾ãã
ããã©ãç»åãã¿ã¤ã«å
åæããããã©ãç»åãã¿ã¤ã«åãã¾ãã
以ä¸ã®ããã°ã©ã ãä¿åãã¾ãã
https://github.com/mpetroff/pannellum/blob/master/utils/multires/generate.py
pythonã®ã³ã³ã½ã¼ã«ã§ã以ä¸ã®ããã«å®è¡ãã¾ãã
python generate.py -n "C:\Program Files\Hugin\bin\nona.exe" panorama_fused.tif
outputãã©ã«ãã«ã¿ã¤ã«åãããç»åãã§ãã¾ãã
htmlä½æ
ãã©ã¦ã¶ã§è¡¨ç¤ºããããã«ã以ä¸ã®ã©ã¤ãã©ãªã使ã£ã¦ãhtmlãä½æãã¾ãã
https://pannellum.org/
ãããªæãã§ãã
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ä»å°å¸ äºå浦ï¼2016å¹´3æ4æ¥ããã¼ã³ã«ããæ®å½±ï¼</title> <link rel="stylesheet" href="https://cdn.pannellum.org/2.3/pannellum.css"/> <script type="text/javascript" src="https://cdn.pannellum.org/2.3/pannellum.js"></script> <style> #panorama { width: 100%; height: 500px; } h1 { text-align:center; font-size:14pt; } </style> </head> <body> <H1>ä»å°å¸ äºå浦ï¼2016å¹´3æ4æ¥ããã¼ã³ã«ããæ®å½±ï¼</H1> <div id="panorama"></div> <script> pannellum.viewer('panorama', { "type": "multires", "multiRes": { "basePath": "output", "path": "/%l/%s%y_%x", "fallbackPath": "/fallback/%s", "extension": "jpg", "tileResolution": 512, "maxLevel": 4, "cubeResolution": 3176 }, "autoLoad": true, "compass": true, "northOffset": 0, "pitch": -17 }); </script> </body> </html>
ãã®é¨åã®è¨å®ã¯ãoutputãã©ã«ãã®config.jsonã«ããã®ã§ã³ããããã°OKã§ãã
"tileResolution": 512, "maxLevel": 4, "cubeResolution": 3176
ã§ãããã
http://www.ecoris.co.jp/introduction/drone/panorama.html
ãã¢ã¼ãã¼ã¸ã§ã³
http://www.ecoris.co.jp/introduction/drone/natori/panorama.html