CPC G06T 7/37 (2017.01) [G06T 3/40 (2013.01); G06T 5/50 (2013.01); G06T 2207/20081 (2013.01); G06T 2207/20221 (2013.01)] | 14 Claims |
1. An image processing method, applied in an electronic device having at least two photographing units, comprising:
acquiring a first image by a first photographing unit;
acquiring a second image by a second photographing unit;
registering a first region in the first image and the second image to obtain a registration result, wherein the first region and the second image correspond to the same field of view; and
fusing the first region and the second image according to the registration result to obtain a fusion image;
wherein the at least two photographing units are either lens or camera;
wherein registering the first region in the first image and the second image to obtain the registration result comprises:
shrinking the first region and the second image according to a predetermined ratio to obtain a first shrunken image and a second shrunken image;
processing the first shrunken image and the second shrunken image by using a preset method to obtain a first result image and a second result image;
magnifying the first result image and the second result image according to the predetermined ratio to obtain a first magnified image and a second magnified image; and
processing the first magnified image and the second magnified image by using a first registration method to obtain the registration result.
|