MATLAB: Get more from the borders of binary image…

Image Processing Toolboxmorphological operations

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…

Best Answer

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