Effacer les filtres
Effacer les filtres

How does the function imresize(matrix, [length, width]) work to rescale a figure?

3 vues (au cours des 30 derniers jours)
Jenna
Jenna le 5 Juin 2013
I am trying to do binning of pixels in several images. I wanted to use this function, but I do not understand if it is working properly. To check the way the function works, I tried this: a = [1 2 3; 4 5 6; 1 2 3] and imresize(a, [2,2]) which gave me [2.4074 3.8426; 2.4074 3.8426]. I also tried b = [1 1 2 2; 1 1 2 2; 3 3 4 4; 3 3 4 4] and imresize(b, [2,2]) gave me [1.1992 2.0664; 2.9336 3.8008]. I really do not understand how matlab calculated these numbers.

Réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by