



免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
谷歌街景原理原文:/apis/maps/documentation/javascript/services.html#StreetView翻译:任我骏驰(转载请注明出处,标明本文地址)创建自定义全景图(原理) (Creating Custom Panoramas)Each Street View panorama is an image or set of images that provides a full 360 degree view from a single location. TheStreetViewPanoramaobject uses images that conform to the equirectangular (Plate Carre) projection. Such a projection contains 360 degrees of horizontal view (a full wrap-around) and 180 degrees of vertical view (from straight up to straight down). These fields of view result in an image with an aspect ratio of 2:1. A full wrap-around panorama is shown below.每一个谷歌街景(Street View)全景照片其实是一张或一组提供了从一个地点360度全景视角的照片。街景全景照片是用了遵循“等矩形投影”(equirectangular (Plate Carre) projection)的图片。这样的一个投影包括了一个360度的水平视野(完整地绕一周)和一个180度的垂直视野(从正上方到正下方)。这样的视野(fields of view)形成了一张宽高比为2:1的图片。一张完整的环绕一周的全景照片如下图。Panorama images are generally obtained by taking multiple photos from one position and stitching them together using panorama software. (See WikipediasComparison of photo stitching applicationsfor more information.) Such images should share a single camera locus, from which each of the panorama images are taken. The resulting 360 degree panorama can then define a projection on a sphere with the image wrapped to the two-dimensional surface of the sphere.全景照片通常是通过从一个位置拍多张照片并用全景图片软件将它们拼接在一起制作而成的。(详情可以查看维基百科的比较照片拼接应用程序的文章。)要拍摄这一组全景照片应当让相机安放在一个固定的点上。这样产生的360度全景照片就可以定义成是一个包裹在球体二维表面上的投影。Treating the panorama as a projection on a sphere with a rectilinear coordinate system is advantageous when dividing up the image into rectilineartiles, and serving images based on computed tile coordinates.把全景图当成是在球体上的投影,并用一个直角坐标系来描述。当需要把图片分割成直角瓦片,并通过计算瓦片坐标提供相对应的图片时,这样做是很有好处的。创建自定义的全景图瓦片(Creating Custom Panorama Tiles)Street View also supports different levels of image detail through the use of a zoom control, which allows you to zoom in and out from the default view. Generally, Street View provides five levels of zoom resolution for any given panorama image. If you were to rely on a single panorama image to serve all zoom levels, such an image would either necessarily be quite large and significantly slow down your application, or be of such poor resolution at higher zoom levels that you would serve a poorly pixellated image. Luckily, however, we can use a similar design pattern used to serveGoogles map tilesat different zoom levels to provide appropriate resolution imagery for panoramas at each zoom level.谷歌街景也支持不同级别的图片细节。这样就允许你从默认视野进行缩放控制。通常来说,谷歌街景为每一处全景照片提供了5个级别的缩放分辨率。要是你想通过用单独一张全景图片就完成所有级别的缩放,这样的一张图片要么需要相当大,而这会明显让你的程序变慢;要么这图片的分辨率就很低,致使当放大时就变成了一个糟糕的马赛克图像。然而,幸运的是,我们可以用一种类似用在谷歌地图瓦片上的设计模式来为各个缩放级别的全景图片提供合适的分辨率图像。When aStreetViewPanoramafirst loads, by default it displays an image consisting of 25% (90 degrees of arc) of the horizontal breadth of the panorama at zoom level 1. This view corresponds roughly with a normal human field of view. Zooming out from this default view essentially provides a wider arc, while zooming in narrows the field of a view to a smaller arc. 当一个谷歌街景图像初次载入,默认情况下,它处在缩放等级1,这时显示了整张全景照片25%的水平宽度(90度的水平视野)。这个视野大致符合一个正常人的视野。从这个默认视野进行“缩小”本质上是提供一个更广的视角,而“放大”则是将视角压窄,视角变小。TheStreetViewPanoramaautomatically calculates the appropriate field of view for the selected zoom level, and then selects imagery most appropriate for that resolution by selecting a tile set that roughly matches the dimensions of the horizontal field of view. The following fields of view map to Street View zoom levels:谷歌街景全景图自动为所选择的缩放级别计算合适的视野,然后通过选择一系列大致匹配当前水平视野尺寸的对应的图像瓦片,来选择最适合该分辨率的图片。下面是视野与街景地图缩放级别的对照表:街景缩放级别Street View zoom level视野(角度)Field of View (degrees)01801 (默认级别)90245322.5411.25Note that the size of the image shown within Street View is entirely dependent on the screen size (width) of the Street View container. If you provide a wider container, the service will still provide the same field of view for any given zoom level, though it may select tiles more appropriate for that resolution instead.要注意,在街景中图片所显示的尺寸完全依赖于屏幕用来展示街景的容器的尺寸(宽度)。如果你用一个比原先更宽的容器来显示街景,服务将仍然提供在某个缩放等级下相同的视野,尽管它可能会换用更适合当前分辨率的一些图像瓦片。Because each panorama consists of an equirectangular projection, creating panorama tiles is relatively easy. As the projection provides an image with an aspect ratio of 2:1, tiles with 2:1 ratios are easier to use, though square tiles may provide better performance on square maps (since the field of view will be square).因为一个全景图片是由一个“等矩形投影”组成,这样创建全景图像瓦片就会相对简单。尽管正方形的图像瓦片可能会在正方形的地图上提供更好的表现(因为视野将是正方形),但因为投影的图像的长宽比为2:1,所以2:1比例的图像瓦片用起来就会更简单。For 2:1 tiles, a single image encompassing the entire panorama represents the entire panorama world (the base image) at zoom level 0, with each increasing zoom level offering 4zoomLeveltiles. (E.g. at zoom level 2, the entire panorama consists of 16 tiles.)Note:zoom levels in Street View tiling do not match directly to zoom levels as provided using the Street View control; instead the Street View control zoom levels select a Field of View (FoV), from which appropriate tiles are selected.用2:1比例的图像瓦片的情况下,一个单张环绕整个全景的图片就展现全部的全景“世界”(即源图片),这样的缩放级别(zoomLevel)为0级。随着缩放的增大,将需要4zoomLevel块图像瓦片。(例如,在2级,整张全景图就要由16块图像瓦片组成。)注意:在铺瓦片时用的缩放等级并不直接对应控制街景视野的缩放等级;而是街景通过哪些砖块适合被选择,来控制缩放
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 【正版授权】 ISO 21109:2025 EN Nicotine pouches - Test method for pH
- 【正版授权】 IEC 62841-4-3:2020+AMD1:2025 CSV EN Electric motor-operated hand-held tools,transportable tools and lawn and garden machinery - Safety - Part 4-3: Particular requirements f
- 【正版授权】 IEC/IEEE 65700-19-03:2025 RLV EN Bushings for DC application
- 【正版授权】 IEC 62053-22:2003 EN-D Electricity metering equipment (a.c.) - Particular Requirements - Part 22: Static meters for active energy (classes 0,2 S and 0,5 S)
- 校外消防知识培训课件
- 校园防踩踏安全知识培训课件
- java文件读写面试题及答案
- 北京财务知识培训行情课件
- 安徽速写考试题及答案
- 国家保密考试题及答案
- 2026年高考政治一轮复习:必修2《经济与社会》知识点背诵提纲
- 2025年急诊急救试题(附答案)
- 会所会议室管理制度
- 2025年北京市中考语文试卷(含答案与解析)
- 中科海光:2025年深算智能:海光DCU行业实战手册
- 2025年医师节临床知识竞赛题库
- 2025年中国中药废弃物的资源化利用行业市场调研分析及投资战略咨询报告
- 小儿川崎病护理查房
- 电力工程管理培训课件
- 乡村振兴农民培训课件
- 2025至2030年中国水利工程勘察设计行业市场全景评估及发展趋向研判报告
评论
0/150
提交评论