Posted by
CARL Philippe (LBP) on
Nov 09, 2019; 1:32pm
URL: http://imagej.273.s1.nabble.com/intensity-at-each-pixel-in-CSV-format-to-open-as-greyscale-image-in-imageJ-tp5022632p5022637.html
Dear Yongqiang,
For your question about having 200 images, you can have two choices.
So either create a stack of pictures (if think this is the best option) or alternatively create a picture for each of your file.
Please have as well a look to the answer of Stein.
I didn't know about the Import -> Text Image... feature he reported and the choice between creating a 8 or 32 bit depends whether you want to create a final picture where the values are only relative (8 Bit) or absolute (i.e. equal to your float input data for the 32 bit).
At last given that your request is very easy and quite fun, if you don't mind I could use it as prototypical example to teach my daughter how to program.
Thus in the case you want to acknowledge my proposal, just send me 2 of your .csv file and I will send you the needed macro (probably by tomorrow and for sure) before tuesday.
Take care and have a nice week-end.
My best regards,
Philippe
----- Mail original -----
De: "Yongqiang Chen" <
[hidden email]>
À: "imagej" <
[hidden email]>
Envoyé: Samedi 9 Novembre 2019 11:15:42
Objet: Re: intensity at each pixel in CSV format to open as greyscale image in imageJ
Dear Philippe,
Can the setPix(x,y) be used on a series of images? Because the x and y are two dimensional. If there are 200 images. I wonder that how to operate the setPix(x,y) in "z" direction.
Best Regards,
Yongqiang
-----Original Message-----
From: CARL Philippe (LBP) <
[hidden email]>
Sent: 08 November 2019 22:14
To:
[hidden email]
Subject: Re: intensity at each pixel in CSV format to open as greyscale image in imageJ
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--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html