How can increase a binary image in size by padding ?
14 views (last 30 days)
Show older comments
Zara Khan on 31 Dec 2020
Commented: Ameer Hamza on 31 Dec 2020
I want to pad some zeros at every side of an binary image to make it an image of larger size.
Edited: Ameer Hamza on 31 Dec 2020
See padarray(): https://www.mathworks.com/help/images/ref/padarray.html
im = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/475268/img.png');
pad_size = 20;
im_new = padarray(im, [pad_size pad_size]);
More Answers (0)
Find more on Deblurring in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!