Borrar filtros
Borrar filtros

Image zero Padding row, column

2 visualizaciones (últimos 30 días)
MD RESHAD UL HOQUE
MD RESHAD UL HOQUE el 9 de Nov. de 2017
Respondida: KSSV el 9 de Nov. de 2017
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?

Respuesta aceptada

KSSV
KSSV el 9 de Nov. de 2017
I = rand(1102,1290) ;
iwant = zeros(1108,1300) ;
iwant(1:1102,1:1290) = I ;

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by