Image processing method and apparatus
AssigneeHonor Device Co., Ltd.
InventorsChunping Jiang, Zhichao Liu
Life of this patent
Estimating the term…
Abstract
A method includes: obtaining a first main image from a first real image and obtaining a second main image from a second real image, where the first real image and the second real image are images obtained through rendering by the electronic device; performing motion vector calculation on the first main image and the second main image, to obtain a motion vector; warping an environment in a target main image and a moving object in the target main image based on the motion vector, to generate an environment in a predicted frame and a moving object in the predicted frame; and multiplexing image data of a shadow of the moving object in the target main image into the predicted frame, to generate a shadow of the moving object in the predicted frame.
Claims20
An image processing method, applied to an electronic device and comprising:
- obtaining a first main image from a first real image and obtaining a second main image from a second real image, wherein the first real image and the second real image are images obtained through rendering by the electronic device;
- performing motion vector calculation on the first main image and the second main image, to obtain a motion vector;
- warping an environment in a target main image and a moving object in the target main image based on the motion vector, to generate an environment in a predicted frame and a moving object in the predicted frame, wherein the target main image is a frame of main image in the first main image and the second main image;
- and
- multiplexing image data of a shadow of the moving object in the target main image into the predicted frame, to generate a shadow of the moving object in the predicted frame.
An electronic device, comprising:
- one or more processors and a memory, wherein
- he memory is configured to store computer program code, the computer program code comprises computer instructions, and when the one or more processors execute the computer instructions, the electronic device is enabled to perform, obtaining a first main image from a first real image and obtaining a second main image from a second real image, wherein the first real image and the second real image are images obtained through rendering by the electronic device;
- performing motion vector calculation on the first main image and the second main image, to obtain a motion vector;
- warping an environment in a target main image and a moving object in the target main image based on the motion vector, to generate an environment in a predicted frame and a moving object in the predicted frame, wherein the target main image is a frame of main image in the first main image and the second main image;
- and.
(canceled)
A computer-readable storage medium, configured to store a computer program, wherein when the computer program is executed, an electronic device is enabled to perform:
- obtaining a first main image from a first real image and obtaining a second main image from a second real image, wherein the first real image and the second real image are images obtained through rendering by the electronic device;
- performing motion vector calculation on the first main image and the second main image, to obtain a motion vector;
- warping an environment in a target main image and a moving object in the target main image based on the motion vector, to generate an environment in a predicted frame and a moving object in the predicted frame, wherein the target main image is a frame of main image in the first main image and the second main image;
- and
- multiplexing image data of a shadow of the moving object in the target main image into the predicted frame, to generate a shadow of the moving object in the predicted frame.
Dependencies are inferred from the claim text.