Azzera filtri
Azzera filtri

Put some background pixel into top and bottom of a image

1 visualizzazione (ultimi 30 giorni)

I have a image like this and I want to put some background pixels to top and bottom of the image. How to do this??

Risposte (1)

Image Analyst
Image Analyst il 23 Ott 2016
Expand the canvass with padarray(). Then use copy and paste, like my attached demo.
  2 Commenti
Malan Jayanka
Malan Jayanka il 23 Ott 2016
Modificato: Malan Jayanka il 23 Ott 2016
Expand the canvass with padarray() mena this?
And also this code is work only for gray scale images??how to do this with RGB images??
Image Analyst
Image Analyst il 23 Ott 2016
The newly attached version also handles color and indexed images.

Accedi per commentare.

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by