資源描述:
《谷歌街景原理課件.ppt》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、谷歌街景原理CreatingCustomPanoramasEachStreetViewpanoramaisanimageorsetofimagesthatprovidesafull360degreeviewfromasinglelocation.The?StreetViewPanoramaobjectusesimagesthatconformtotheequirectangular(PlateCarrée)projection.Suchaprojectioncontains360degreesofho
2、rizontalview(afullwrap-around)and180degreesofverticalview(fromstraightuptostraightdown).Thesefieldsofviewresultinanimagewithanaspectratioof2:1.Afullwrap-aroundpanoramaisshownbelow.每一個谷歌街景(StreetView)全景照片其實是一張或一組提供了從一個地點360度全景視角的照片。街景全景照片是用了遵循“等矩形投影”(equ
3、irectangular(PlateCarrée)projection)的圖片。這樣的一個投影包括了一個360度的水平視野(完整地繞一周)和一個180度的垂直視野(從正上方到正下方)。這樣的視野(fieldsofview)形成了一張寬高比為2:1的圖片。一張完整的環(huán)繞一周的全景照片Panoramaimagesaregenerallyobtainedbytakingmultiplephotosfromonepositionandstitchingthemtogetherusingpanoramasoft
4、ware.Suchimagesshouldshareasingle"camera"locus,fromwhicheachofthepanoramaimagesaretaken.Theresulting360degreepanoramacanthendefineaprojectiononaspherewiththeimagewrappedtothetwo-dimensionalsurfaceofthesphere.全景照片通常是通過從一個位置拍多張照片并用全景圖片軟件將它們拼接在一起制作而成的。要拍攝這
5、一組全景照片應當讓相機安放在一個固定的點上。這樣產(chǎn)生的360度全景照片就可以定義成是一個包裹在球體二維表面上的投影。360度全景照片在球體二維表面上的投影Treatingthepanoramaasaprojectiononaspherewitharectilinearcoordinatesystemisadvantageouswhendividinguptheimageintorectilineartiles,andservingimagesbasedoncomputedtilecoordinates
6、.把全景圖當成是在球體上的投影,并用一個直角坐標系來描述。當需要把圖片分割成直角瓦片,并通過計算瓦片坐標提供相對應的圖片時,這樣做是很有好處的。CreatingCustomPanoramaTilesStreetViewalsosupportsdifferentlevelsofimagedetailthroughtheuseofazoomcontrol,whichallowsyoutozoominandoutfromthedefaultview.Generally,StreetViewprovidesf
7、ivelevelsofzoomresolutionforanygivenpanoramaimage.Ifyouweretorelyonasinglepanoramaimagetoserveallzoomlevels,suchanimagewouldeithernecessarilybequitelargeandsignificantlyslowdownyourapplication,orbeofsuchpoorresolutionathigherzoomlevelsthatyouwouldservea
8、poorlypixellatedimage.Luckily,however,wecanuseasimilardesignpatternusedtoserveGoogle'smaptilesatdifferentzoomlevelstoprovideappropriateresolutionimageryforpanoramasateachzoomlevel.谷歌街景也支持不同級別的圖片細節(jié)。這樣就允許你從默認視野進行縮放控制。通常來說,谷歌街景為每一處全