Clear Filters
Clear Filters

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

1 view (last 30 days)
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!)

Accepted Answer

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

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!