# Interpolation of a gray scale image in matlab [closed]

I want to fill the black areas with the value of neighboring pixels. Kind of interpolation. Can any one suggest me how Can I do in matlab.

-

## closed as off topic by datageist♦Jul 5 '12 at 13:29

Questions on Signal Processing Stack Exchange are expected to relate to signal processing within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Duplicate on SO: stackoverflow.com/q/11338164/769220 – Chris Jul 5 '12 at 8:25
This is technically on-topic, but it's an exact duplicate of a question on SO that already has a better answer (by the same user), so I'm closing it here. It's also a little more oriented towards MATLAB programming than DSP concepts, so it's only borderline on-topic. – datageist Jul 5 '12 at 13:30

Try the imfill function, see http://www.mathworks.com/help/toolbox/images/ref/imfill.html