A method in an electronic device having an image sensor and a lens, comprising: receiving image data from the image sensor; obtaining roll-off values relating to the lens from a lens roll-off correction scenario table, wherein the lens roll-off values comprise a first lens roll-off value and a second lens roll-off value; identifying a plurality of regions of the image data using edge detection, wherein the plurality of regions comprises a first region and a second region, wherein the first and second lens roll-off value is associated with the first and second region, respectively; calculating brightness information of the image data, wherein the brightness information includes a first brightness measurement of the first region and a second brightness measurement of the second region; correcting at least the first lens roll-off value and the second lens roll-off value to be used in a lens roll-off correction operation based on the brightness information, wherein correcting at least the first and second lens roll-off value includes reducing at least the first and second lens roll-off value when a performance of the lens roll-off correction operation using at least the first and second lens roll-off value would increase a brightness value of a pixel above a brightness threshold, wherein the lens roll-off correction operation further comprises correcting the first lens roll-off value based on the first brightness measurement and the second lens roll-off value based on the second brightness measurement; and performing the lens roll-off correction operation on the image data using at least the first and second corrected lens roll-off value. receiving image data from the image sensor; obtaining roll-off values relating to the lens from a lens roll-off correction scenario table, wherein the lens roll-off values comprise a first lens roll-off value and a second lens roll-off value; identifying a plurality of regions of the image data using edge detection, wherein the plurality of regions comprises a first region and a second region, wherein the first and second lens roll-off value is associated with the first and second region, respectively; calculating brightness information of the image data, wherein the brightness information includes a first brightness measurement of the first region and a second brightness measurement of the second region; correcting at least the first lens roll-off value and the second lens roll-off value to be used in a lens roll-off correction operation based on the brightness information, wherein correcting at least the first and second lens roll-off value includes reducing at least the first and second lens roll-off value when a performance of the lens roll-off correction operation using at least the first and second lens roll-off value would increase a brightness value of a pixel above a brightness threshold, wherein the lens roll-off correction operation further comprises correcting the first lens roll-off value based on the first brightness measurement and the second lens roll-off value based on the second brightness measurement; and performing the lens roll-off correction operation on the image data using at least the first and second corrected lens roll-off value.