MATLAB: Background removal

image processingImage Processing Toolboximage segmentation

i have a pavement image with a crack. i would like to remove the background of that image.so that i can get a clear picture of the crack.I don't have the image of the pavement without crack.So,i cant use the subtract method to remove the background.Is there any other way to remove the background.can any one help me out.

Best Answer

You could just blur the heck out of it with conv2(). Or else use the image to model a perfectly smooth function, like a quadratic or something. I used polyfitn for this but John removed it from the File Exchange. Maybe you could try this instead: http://www.mathworks.com/matlabcentral/fileexchange/13719-2d-weighted-polynomial-fitting-and-evaluation
Related Question