Patent Document ID: 9959484
Application ID: 15015785
Patent Status: 1

Claim One:
1. A method for generating an image filter, wherein the method is applied in an electronic device, and the method comprises: receiving, by the electronic device, a first image that is selected with a specific imaging effect desired for the image filter; generating, by the electronic device, a group of images corresponding to the first image, wherein the group of images comprises at least a second image of a common structure characteristic with the first image and the second image does not have the specific imaging effect and is selected from an image library; calculating, by the electronic device, a mapping relationship for transforming the group of images to the first image; and storing, in the electronic device, the mapping relationship to be used as the image filter to generate the specific imaging effect on other images, wherein generating, by the electronic device, the group of images corresponding to the first image comprises: calculating, by the electronic device, a first feature vector of the first image; obtaining, by the electronic device, a second feature vector of each sample image in the image library, the sample images in the image library being images without the specific imaging effect; comparing, by the electronic device, the first feature vector with each second feature vector to determine, from the sample images, at least the second image of the common structure characteristic with the first image; and forming, by the electronic device, the group of images including at least the second image.