Image zero Padding row, column

2 次查看(过去 30 天)
I have an image[1102 x 1290]. But I need to resize this image so that it will be [1108 x 1300] in shape. How can I do that with zero padding?

采纳的回答

KSSV
KSSV 2017-11-9
I = rand(1102,1290) ;
iwant = zeros(1108,1300) ;
iwant(1:1102,1:1290) = I ;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by