フィルターのクリア

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)] ;
  1 件のコメント
sadiqa ilyas
sadiqa ilyas 2020 年 3 月 3 日
great

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by