Dear Wayne and dear Fred!

AFAIK "Image >> Transform >> Image to Results" shows the values contained in the RoI's bounding box, i.e. for e.g. a circular RoI, the result matrix doesn't show zeros or NaNs outside the circular region.

AFAIK, "Analyze >> Tools >> Save XY Coordinates..." saves the coordinates, not the values (intensities).

Best

Herbie

::::::::::::::::::::::::::::::::::::::::
Am 27.10.24 um 16:54 schrieb Fred Damen:
Analyze/Tools/Save XY Coordinates...
It would be nice if this opened a ResultsTable instead of / in addition to
saving to a .csv file.

Fred

On Sun, October 27, 2024 4:38 am, CARL Philippe (LBP) wrote:
Hi Patricia,
The following macro code will do the job :
                Roi.getContainedPoints(xpoints, ypoints)
                for(i = 0; i < xpoints.length; i++)
                {
                        setResult("x"                 , i, xpoints[i]);
                        setResult("y"                 , i, ypoints[i]);
                        setResult("intensity" , i, getPixel(xpoints[i], 
ypoints[i]));
                }
                updateResults();
Have a nice end of weekend.
Kindest 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 41

----- Mail original -----
De: "patricia obeid" <[email protected]>
À: "imagej" <[email protected]>
Envoyé: Dimanche 27 Octobre 2024 09:38:26
Objet: Intensity of each pixel

Hello,
I would like to know if it is possible to obtain a table with the
intensity of each pixel in a ROI.
If so, how can I do this?
Thank you for your help.
Best regards
Patricia


--
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

Reply via email to