![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/475273/image.png)
How can increase a binary image in size by padding ?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Zara Khan
il 31 Dic 2020
Commentato: Ameer Hamza
il 31 Dic 2020
I want to pad some zeros at every side of an binary image to make it an image of larger size.
0 Commenti
Risposta accettata
Ameer Hamza
il 31 Dic 2020
Modificato: Ameer Hamza
il 31 Dic 2020
For example
im = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/475268/img.png');
pad_size = 20;
im_new = padarray(im, [pad_size pad_size]);
imshow(im_new)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/475273/image.png)
2 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!