get more from the borders of binary image...

i obtained a binary image as shown in the first column.... i wanted to get more from the borders of image as shown in 2nd column... i used imdilate, but the edges i get is not smooth, how to get the edges more in shape as demonstrated in 2nd column...

 Accepted Answer

Use imresize() with the 'nearest' option, then crop. Figuring out where to crop to might be somewhat tricky.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!