how to increase the number of rows and columns of an image in Matlab?
Mostrar comentarios más antiguos
Hello,
I would like to increase the number of rows and columns of an image in Matlab since I have different images and they should have the same number of rows and columns for special application. I want to fill the new rows and columns with zero value. How can I do that?
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 25 de Nov. de 2011
0 votos
Another option is padarray() (in the Image Processing Toolbox) if you want the zeros evenly distributed around the border instead of just along the bottom and right edge. Or if you want to stretch or scale the image instead of padding it with zeros, you can use imresize().
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!