Difference between imresize & resizem
Mostrar comentarios más antiguos
Hello, I was wondering what's the difference between the matlab function imresize and resizem (if no reference matrix is used)?
I need to resize a large quantity of data matrices so that they all have an end size of 34x34 pixels. These data matrices are ocean chlorophyll concentration values, so i need the new data grids to be representative of the original data (some of the original matrices are larger and some are smaller than 34x34pix).
Answers are very much appreciated, David.
Respuestas (1)
Alex Taylor
el 21 de Mzo. de 2012
0 votos
David,
Both functions will perform the resize operation you are interested in. resizem is a Mapping Toolbox function. imresize is an Image Processing Toolbox function.
resizem returns double precision floating point output. imresize returns an output of the same datatype as the input.
The two functions use completely different codebases, so there are likely to be performance differences between them. Crude performance tests seem to indicate that imresize is significantly faster.
Hope that helps,
Alex.
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!