MATLAB: How to correct shading of an image

correctiondigitaldigital image processingimageMATLABshadingshading correction

Hi there; i am new at image processing and specially in Matlab. in a homework our teacher asked us to correct shading of an image( like shading correction figure-2-29 of Image processing Book by Gonzales and Woods). but i didn't find any track to solve this problem in Google. I'll be glad of any help.

Best Answer

thanks for helpful link. i did it by dividing the main image with a shading pattern. without knowing how to get the shading pattern!!! is there a way to produce that shading pattern?