How do you write ntensities and pixel coordinates to a file?

1 次查看(过去 30 天)
Hi, I wrote the following code:
I = imread('example.PNG');
I = rgb2gray(I);
a = (I<100 & I>50);
imshow(a);
impixelinfo
but I want to write the pixel information from a to a file, but I don't know how to get matlab to output the coordinates.
Can someone help?
(I will be eternally grateful!)

采纳的回答

Image Analyst
Image Analyst 2015-2-2
How about
csvwrite(filename, I);

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by