Patent attributes
Flare compensation includes receiving a first image and a second image; converting the first and the second images from an RGB domain to a YUV domain; obtaining an intensity differences profile along a stitch line between the first and the second images, where the intensity differences profile is obtained for the Y component; obtaining a dark corner intensity differences profile between the first and the second images based on a relative illumination of an area outside a first image circle of the first image and a second image circle of the second image, where the dark corner intensity differences profile is obtained for the Y component; obtaining a flare profile using the intensity differences profile and the dark corner intensity differences profile; converting the flare profile of the Y component to an RGB flare profile; and modifying one of the first or second images based on the RGB flare profile.