필터 지우기
필터 지우기

reading pixels from an image

조회 수: 1 (최근 30일)
Mohanned Al Gharawi
Mohanned Al Gharawi 2018년 5월 4일
댓글: Mohanned Al Gharawi 2018년 5월 4일
I saved several images with extension fig, I need to read pixels in them, how can I do that?
  댓글 수: 2
KSSV
KSSV 2018년 5월 4일
What images? .fig is a matlab figure...you have data in hand you plotted them and saved as .fig. What exactly you want to do?
Mohanned Al Gharawi
Mohanned Al Gharawi 2018년 5월 4일
Thanks for replaying, I have a code which creates several images. I could read the pixels from them before I saved them, but when I saved them with extension fig and jpg I couldn't read the pixels from them. Is there any way that I could read the pixels from the these images? I uploaded two images. Thanks

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

채택된 답변

Image Analyst
Image Analyst 2018년 5월 4일
Don't save them as .fig files. Use imwrite() to save them as .PNG files. Otherwise you'll have to read in the figures with openfig() and then use getimage(), which is not as direct, plus .fig files are not readable by standard functions such as Photoshop or whatever.
  댓글 수: 1
Mohanned Al Gharawi
Mohanned Al Gharawi 2018년 5월 4일
Thank you so much it worked.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by