Put some background pixel into top and bottom of a image

1 次查看(过去 30 天)

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

回答(1 个)

Image Analyst
Image Analyst 2016-10-23
Expand the canvass with padarray(). Then use copy and paste, like my attached demo.
  2 个评论
Malan Jayanka
Malan Jayanka 2016-10-23
编辑:Malan Jayanka 2016-10-23
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??

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by