Panorama rendering method, electronic device and storage medium
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorDa Qu
Life of this patent
Estimating the term…
Abstract
A panorama rendering method, an electronic device and a storage medium are provided, and relates to the field of panoramic technology. The method includes: segmenting a panoramic picture to obtain segmented panoramic tile pictures; determining a target tile picture under a current screen and a target spherical patch in a panoramic picture sphere model, according to the panoramic picture sphere model and the segmented panoramic tile pictures; and pelfonning drawing on the target spherical patch by using the target tile picture, to obtain a target scene. In this way, time consumption of panorama loading can be reduced and loading performance can be improved.
Claims14
A panorama rendering method, comprising:
- segmenting a panoramic picture to obtain segmented panoramic tile pictures;
- determining a target tile picture under a current screen and a target spherical patch in a panoramic picture sphere model, according to the panoramic picture sphere model and the segmented panoramic tile pictures;
- and
- performing drawing on the target spherical patch by using the target tile picture, to obtain a target scene,
- wherein the panoramic picture sphere model is a sphere composed of a plurality of spherical patches,
- wherein the segmenting the panoramic picture to obtain the segmented panoramic tile pictures, comprises:
- acquiring a reference size and a segmentation level of a single panoramic tile picture, wherein the segmentation level is a level describing a resolution of a picture;
- and
- segmenting the panoramic picture according to the reference size and the segmentation level, to obtain the segmented panoramic tile pictures.
An electronic device, comprising:
- at least one processor;
- and
- a memory communicatively connected with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, enable the at least one processor to perform operations of:
- segmenting a panoramic picture to obtain segmented panoramic tile pictures;
- determining a target tile picture under a current screen and a target spherical patch in a panoramic picture sphere model, according to the panoramic picture sphere model and the segmented panoramic tile pictures;
- and
- performing drawing on the target spherical patch by using the target tile picture, to obtain a target scene,
- wherein the panoramic picture sphere model is a sphere composed of a plurality of spherical patches,
- wherein the segmenting the panoramic picture to obtain the segmented panoramic tile pictures, comprises:
- acquiring a reference size and a segmentation level of a single panoramic tile picture, wherein the segmentation level is a level describing a resolution of a picture;
- and
- segmenting the panoramic picture according to the reference size and the segmentation level, to obtain the segmented panoramic tile pictures.
A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions, when executed by a computer, cause the computer to perform operations of:
- segmenting a panoramic picture to obtain segmented panoramic tile pictures;
- determining a target tile picture under a current screen and a target spherical patch in a panoramic picture sphere model, according to the panoramic picture sphere model and the segmented panoramic tile pictures;
- and
- performing drawing on the target spherical patch by using the target tile picture, to obtain a target scene,
- wherein the panoramic picture sphere model is a sphere composed of a plurality of spherical patches,
- wherein the segmenting the panoramic picture to obtain the segmented panoramic tile pictures, comprises:
- acquiring a reference size and a segmentation level of a single panoramic tile picture, wherein the segmentation level is a level describing a resolution of a picture;
- and
- segmenting the panoramic picture according to the reference size and the segmentation level, to obtain the segmented panoramic tile pictures.
Dependencies are inferred from the claim text.