Difference between imresize & resizem
9 visualizaciones (últimos 30 días)
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.
0 comentarios
Respuestas (1)
Alex Taylor
el 21 de Mzo. de 2012
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.
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!