필터 지우기
필터 지우기

How to pad zeros in an image

조회 수: 6 (최근 30일)
sadiqa ilyas
sadiqa ilyas 2020년 3월 3일
댓글: sadiqa ilyas 2020년 3월 3일
Hi If i have image of size 64*64 (one layer). I want to insert another column .The resulting image then would become 64*65.
red1=I(:,:,1)%I is the original image
b=zeros(64,1);
red=padarray(red1,b);
whats wrong with this.
I am not getting the desired result

채택된 답변

KSSV
KSSV 2020년 3월 3일
Let I be your 64*64 image.
iwant = [I zeros(64,1)] ;

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by