How can increase a binary image in size by padding ?
조회 수: 12 (최근 30일)
이전 댓글 표시
I want to pad some zeros at every side of an binary image to make it an image of larger size.
댓글 수: 0
채택된 답변
Ameer Hamza
2020년 12월 31일
편집: Ameer Hamza
2020년 12월 31일
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)
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!