Convert Grayscale image to XYZ file..

4 vues (au cours des 30 derniers jours)
George
George le 11 Avr 2013
How i can convert a GrayScale image to XYZ file ?

Réponses (2)

Image Analyst
Image Analyst le 11 Avr 2013
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 commentaires
George
George le 5 Juin 2013
Modifié(e) : George le 5 Juin 2013
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 le 18 Avr 2019
how can I get the Z coordinate form this code?

Connectez-vous pour commenter.


Image Analyst
Image Analyst le 18 Avr 2019
See my attached code. It produces a CSV text file with x,y,gray level.

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by