Borrar filtros
Borrar filtros

What will happen if in imresize in the rows/columns is a floating point number.

1 visualización (últimos 30 días)
I was trying to understand what happens if in imresize the rows/columns is a floating point number. Eg: imresize(IM, [22.75, 22.75], 'bilinear')

Respuestas (1)

David Sanchez
David Sanchez el 6 de Jun. de 2013
Matlab will _round_the given values. In your case, 22.75 -> 23
imresize(IM, [22.75, 22.75], 'bilinear') %will be applied as
imresize(IM, [23, 23], 'bilinear')

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by