How to pad zeros in an image

4 vues (au cours des 30 derniers jours)
sadiqa ilyas
sadiqa ilyas le 3 Mar 2020
Commenté : sadiqa ilyas le 3 Mar 2020
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

Réponse acceptée

KSSV
KSSV le 3 Mar 2020
Let I be your 64*64 image.
iwant = [I zeros(64,1)] ;
  1 commentaire
sadiqa ilyas
sadiqa ilyas le 3 Mar 2020
great

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by