Patent attributes
Flare compensation includes obtaining a first input frame, which includes lens flare, and a second input frame; obtaining a stitch line between the first input frame and the second input frame; obtaining, for the first input frame, a first intensity profile; obtaining, for the second input frame, a second intensity profile; obtaining an intensity differences profile; obtaining a first dark corner profile based on a first illumination of a first area outside a first image circle of the first input frame; obtaining a second dark corner profile based on a second illumination of a second area outside a second image circle of the second input frame; obtaining a dark corner difference profile; calculating a flare model; obtaining a flare mask; and correcting the first input frame by subtracting the flare mask from the first input frame.