Patent attributes
Flare compensation includes obtaining a dark corner intensity differences profile between a first and a second image 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. The dark corner intensity differences profile is obtained for a luminance (Y) component. A flare profile is obtained using an intensity differences profile and the dark corner intensity differences profile. The intensity differences profile is obtained for the Y component along a stitch line between the first image and the second image. The flare profile of the Y component is converted to an RGB flare profile. The first image is modified based on the RGB flare profile to obtain a processed first image.