Filter löschen
Filter löschen

Put some background pixel into top and bottom of a image

1 Ansicht (letzte 30 Tage)
Malan Jayanka
Malan Jayanka am 23 Okt. 2016
Kommentiert: Image Analyst am 23 Okt. 2016

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??

Antworten (1)

Image Analyst
Image Analyst am 23 Okt. 2016
Expand the canvass with padarray(). Then use copy and paste, like my attached demo.
  2 Kommentare
Malan Jayanka
Malan Jayanka am 23 Okt. 2016
Bearbeitet: Malan Jayanka am 23 Okt. 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 am 23 Okt. 2016
The newly attached version also handles color and indexed images.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by