Put some background pixel into top and bottom of a image

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일

0 개 추천

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??
The newly attached version also handles color and indexed images.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

질문:

2016년 10월 23일

댓글:

2016년 10월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by