the usage of squeeze

8 visualizaciones (últimos 30 días)
tala
tala el 15 de Dic. de 2016
Editada: Guillaume el 15 de Dic. de 2016
hello i wanna know what does this command do. I_ij = double(squeeze(Image(i,j,:)))

Respuestas (1)

the cyclist
the cyclist el 15 de Dic. de 2016
Editada: the cyclist el 15 de Dic. de 2016
It removes singleton dimensions from an array.
For example, it will take a 7 x 1 x 300 array and "squeeze" it into a 7 x 300 array.
The full documentation is here.
  1 comentario
Guillaume
Guillaume el 15 de Dic. de 2016
Editada: Guillaume el 15 de Dic. de 2016
In this particular case, assuming that Image is an rgb image, it converts a 1 x 1 x 3 vector, into a 3 x 1 vector of RGB intensity at pixel (i,j)

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by