필터 지우기
필터 지우기

figure an matrix by image

조회 수: 1 (최근 30일)
Fiboehh
Fiboehh 2011년 5월 9일
Hellow, i have reconstruct an image of 16x16 pixels and all the pixels are in a vector of 256 elements P(256) , is it necessary to change P to a dimension P(16,16) to show it in an image. I thought it would but i tried it and it gives a error. Hope for a positive answer :)

채택된 답변

Walter Roberson
Walter Roberson 2011년 5월 9일
image(reshape(P,16,16))
What error are you getting?
  댓글 수: 10
Matt Fig
Matt Fig 2011년 5월 22일
Exactly as I thought... Good enough!
Walter Roberson
Walter Roberson 2011년 5월 22일
Note that 512 does not have an integer square root. Fiboehh, what do you want to have happen if 512 is selected?

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by