Gray scale image from excel pixel files
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Emily Greulich
am 24 Feb. 2020
Kommentiert: Emily Greulich
am 24 Feb. 2020
Hi so I have a massive csv/excel (340x242) file with a pixel matrix. The values range from 0 to 7786 corresponding to intensity. I'm trying to get a grayscale image of the orginal picture (the pixels correlate to an ultrasound). Once I have the image I think have to filter it based on intensity, so if you have any advice on that it would be greatly appreciated- but I'm mainly just trying to focus on getting the orginal picture right now!! Right now I'm only getting a black and white image using imshow() right now. I've attached the image I'm currently getting.
Thanks in advance!!!
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 24 Feb. 2020
Try this
grayImage = uint16(csvread(filename));
imshow(grayImage, []);
If that doesn't work, try importdata(), readtable(), readmatrix(), or dlmread(). And attach your csv file so we can give you working code.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!