CPC H04N 23/698 (2023.01) [G06T 3/40 (2013.01); G06T 19/006 (2013.01)] | 18 Claims |
1. A spherical image processing method, comprising:
obtaining a spherical image and determining a sphere center of the spherical image;
determining a viewpoint of a user when the user views the spherical image, wherein the viewpoint is located at any point, other than the sphere center, in a sphere space surrounded by the spherical image;
determining a pixel expansion region and a pixel shrinkage region on the spherical image based on the sphere center and the viewpoint; and
performing an image processing operation on the spherical image, wherein the image processing operation comprises a pixel expansion processing operation on an image in the pixel expansion region, and a pixel shrinkage processing operation on an image in the pixel shrinkage region, wherein the pixel expansion processing operation comprises increasing a quantity of image pixels in the pixel expansion region, and wherein the pixel shrinkage processing operation comprises reducing a quantity of image pixels in the pixel shrinkage region,
wherein the determining of the pixel expansion region and the pixel shrinkage region comprise:
determining, based on an offset of the viewpoint relative to the sphere center, first pixels that are on the spherical image and whose distances from the viewpoint are equal to r; and
determining the pixel expansion region and the pixel shrinkage region using a circle connecting the first pixels as a boundary, wherein a region comprising a pixel whose distance from the viewpoint is less than r is used as the pixel expansion region, and a region comprising a pixel whose distance from the viewpoint is greater than r is used as the pixel shrinkage region.
|