Login  Register

Re: intensity at each pixel in CSV format to open as greyscale image in imageJ

Posted by CARL Philippe (LBP) on Nov 08, 2019; 10:14pm
URL: http://imagej.273.s1.nabble.com/intensity-at-each-pixel-in-CSV-format-to-open-as-greyscale-image-in-imageJ-tp5022632p5022634.html

Dear Kumar,
What you are looking for can easily be done by means of a small macro.
I would create a 309 x 826 pixels 8 bit picture setting by means of the setPixel method the lowest of your value to 0 and the highest to 255.
And to open the .csv file use File.openAsString on which result you apply the split method to extract the data for each pixel.
My best regards,
Philippe


Philippe CARL
Laboratoire de Bioimagerie et Pathologies
UMR 7021 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 41 84

----- Mail original -----
De: "kumard" <[hidden email]>
À: "imagej" <[hidden email]>
Envoyé: Vendredi 8 Novembre 2019 22:25:05
Objet: intensity at each pixel in CSV format to open as greyscale image in imageJ

I have Optical coherence tomography (OCT) scan data in the form of intensity
value for each pixel in an array of 309 x 826. I want to convert that data
in the form of a greyscale image (min intensity: -22.3516 and Max intensity:
52.6367), say <0 dark grey but 0-10, 10-20,30-40 and >40 in the order of
lighter grey to white and quantify each increase in the form of % and
pixels. Thanks in advance for answering and helping out.



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html