CPC G06T 5/50 (2013.01) [H04N 23/45 (2023.01); H04N 23/62 (2023.01); H04N 23/632 (2023.01); H04N 23/635 (2023.01); H04N 23/69 (2023.01); H04N 23/698 (2023.01); H04N 23/951 (2023.01); G06T 2207/20221 (2013.01)] | 20 Claims |
1. An image fusion method, applicable to an electronic device, wherein the electronic device comprises a first camera, a second camera, and a third camera, a field of view of the first camera is greater than a field of view of the second camera, and a field of view of the third camera is greater than the field of view of the first camera, the method comprising:
detecting, by the electronic device, a first operation;
capturing, by the electronic device, a first image through the first camera, a second image through the second camera, and a third image through the third camera in response to the first operation, wherein a viewfinder coverage in which the first camera captures the first image is a first viewfinder coverage, a viewfinder coverage in which the second camera captures the second image is a second viewfinder coverage, a viewfinder coverage in which the third camera captures the third image is a third viewfinder coverage, the third viewfinder coverage is greater than the first viewfinder coverage, and the first viewfinder coverage is greater than the second viewfinder coverage;
processing, by the electronic device, the first image to obtain a fourth image, wherein the fourth image comprises a first region image, a resolution of the first region image in the fourth image is the same as a resolution of the second image, a viewfinder coverage of the first region image relative to the first camera is a fourth viewfinder coverage, the first viewfinder coverage comprises the fourth viewfinder coverage, and the fourth viewfinder coverage coincides with the second viewfinder coverage;
performing, by the electronic device, image fusion on the second image and the fourth image to obtain a fifth image;
processing, by the electronic device, the third image to obtain a sixth image, wherein the sixth image comprises a second region image, a resolution of the second region image in the sixth image is the same as a resolution of the fifth image, a viewfinder coverage of the second region image relative to the third camera is a fifth viewfinder coverage, the third viewfinder coverage comprises the fifth viewfinder coverage, and the fifth viewfinder coverage coincides with the first viewfinder coverage; and
performing, by the electronic device, image fusion on the fifth image and the sixth image to obtain a seventh image;
receiving, by the electronic device, a second operation, wherein the second operation is used for triggering the electronic device to display the seventh image; and
displaying, by the electronic device, a second interface in response to the second operation, wherein the second interface comprises the seventh image and a preset ratio option, and the preset ratio option is configured to set a zoom ratio of the seventh image; and
receiving, by the electronic device, a zoom ratio set by a user in the preset ratio option, and displaying the seventh image according to the zoom ratio set by the user.
|