How to change the 1x 52176 vector into an image

조회 수: 3 (최근 30일)
ajith
ajith 2013년 11월 22일
답변: Bruno Pop-Stefanov 2013년 11월 22일
How to change the 1x 52176 vector into an image
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 11월 22일
What size of image are you expecting? The vector only has enough information stored in it to create an image that is at most 48 on one side and 1087 on the other. Is it perhaps a 16 x 1087 x 3 (i.e., RGB) image?

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

답변 (1개)

Bruno Pop-Stefanov
Bruno Pop-Stefanov 2013년 11월 22일
You can use reshape to transform your vector into a matrix. Then, you might have to cast it to a different data type if you want MATLAB to recognize it as an image (for example, type 'double' has real values from 0 to 1 and type 'uint8' has integer values from 0 to 255).

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by