Convert Grayscale image to XYZ file..

조회 수: 5 (최근 30일)
George
George 2013년 4월 11일
답변: Image Analyst 2019년 4월 18일
How i can convert a GrayScale image to XYZ file ?

답변 (2개)

Image Analyst
Image Analyst 2013년 4월 11일
You have row, columns, and at every (row, column) (= (y, x)) location you have a gray level. What are you referring to as "Z"? What does your Z represent? Gray level? If so, then the image array is already what you want. Or were you looking to display the image with surf()?
  댓글 수: 6
George
George 2013년 6월 5일
편집: George 2013년 6월 5일
Look at variable editor-points 'X' it stop to 255 not at 358 and 'Y' it stop to 255 not at 537. That's my problem. Thanks
HOSUNG LEE
HOSUNG LEE 2019년 4월 18일
how can I get the Z coordinate form this code?

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


Image Analyst
Image Analyst 2019년 4월 18일
See my attached code. It produces a CSV text file with x,y,gray level.

카테고리

Help CenterFile Exchange에서 Modify Image Colors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by