필터 지우기
필터 지우기

the usage of squeeze

조회 수: 10 (최근 30일)
tala
tala 2016년 12월 15일
편집: Guillaume 2016년 12월 15일
hello i wanna know what does this command do. I_ij = double(squeeze(Image(i,j,:)))

답변 (1개)

the cyclist
the cyclist 2016년 12월 15일
편집: the cyclist 2016년 12월 15일
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
Guillaume
Guillaume 2016년 12월 15일
편집: Guillaume 2016년 12월 15일
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)

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by