I asked the very same question a long time ago, and the response was:
Analyze>Tools>Save XY Coordinates...
And it saves the 'X, Y, Value' in columns, see attached. This is perfect
format for putting into spreadsheet programs for analysis. A ResultsTable
would allow for copy/paste.

Fred


X,Y,Value
127,52,-1.257
128,52,0.923
129,52,-0.941
130,52,-0.941
131,52,-0.202
132,52,0.374
133,52,0.178
134,52,0.288
135,52,-0.334
136,52,0.713

On Sun, October 27, 2024 11:09 am, Herbie wrote:
> 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
>

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

Reply via email to