How to get XY from each pixel in selection?

export
roi
Tags: #<Tag:0x00007fa2fb41d980> #<Tag:0x00007fa2fb41d840>

#1

Hi, I’m looking for a way to get the pixels that belong to a selection. Basically I have a set of images that each will have 3 o less selections made. I need the pixel that belong to those selections. This is different than what save as > XY coordinates since that function provides the pixels from the boundaries of the (each point I’ve clicked to achieve that…) selection. If there is a way to just get the xy coordinates from all pixels belonging to the selection, that would be great. I need those exported to process using R.
There may be an obvious answer but I’ll admit I’m new to imagej
Thanks


#2

The Analyze>Tools>Save XY Coordinates command saves the XY coordinates and values of the pixels in the current selection.