StreetViewPanoramaobjectusesimagesthatconformtotheequirectangular(PlateCarrée)(afullwrap-around)and180degreesofverticalview(fromstraightuptostraightdown).Thesefieldsofviewresultinanimagewithanaspectratioof2:-(StreetView)全景照片其实是一张或一组提供了从一个地点360度全景视角的照片。街景全景照片是用了遵循“等矩形投影”(equirectangular(PlateCarrée)projection)的图片。这样的一个投影包括了一个360度的水平视野(完整地绕一周)和一个180度的垂直视野(从正上方到正下方)。这样的视野(fieldsofview)形成了一张宽高比为2:1的图片。"camera"locus,-。要拍摄这一组全景照片应当让相机安放在一个固定的点上。这样产生的360度全景照片就可以定义成是一个包裹在球体二维表面上的投影。360度全景照片在球体二维表面上的投影Treatingthepanoramaasaprojectiononaspherewitharectilinearcoordinatesystemisadvantageouswhendividinguptheimageintorectilinear tiles,,并用一个直角坐标系来描述。当需要把图片分割成直角瓦片,并通过计算瓦片坐标提供相对应的图片时,这样做是很有好处的。CreatingCustomPanoramaTilesStreetViewalsosupportsdifferentlevelsofimagedetailthroughtheuseofazoomcontrol,,,suchanimagewouldeithernecessarilybequitelargeandsignificantlyslowdownyourapplication,,however,wecanuseasimilardesignpatternusedtoserve Google'smaptiles 。这样就允许你从默认视野进行缩放控制。通常来说,谷歌街景为每一处全景照片提供了5个级别的缩放分辨率。要是你想通过
谷歌街景原理 来自淘豆网m.daumloan.com转载请标明出处.