how to fill up distorted images with proper pixels?
1 view (last 30 days)
Show older comments
I have a distorted image of an spine and i need to fiil up those portions with black pixels so that i can get a uniform image. But as the boundary portions are also absent in many parts , using imfill(image,'holes') does not fill up those parts. Please suggest me a way to restore the image.
I= imread('test1.jpg');
figure, imshow(I);
I=im2bw(I);
I=~I;
Ifill = imfill(I,'holes');
Iarea = bwareaopen(Ifill,500);
I have used this code so far.
0 Comments
Answers (1)
Image Analyst
on 9 Nov 2014
See my answer to your duplicate question: http://www.mathworks.com/matlabcentral/answers/161252-how-to-fill-the-broken-edges-of-an-image#answer_158296
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!