Re: Output boundary coordinates of particles

Posted by Michael Schmid on
URL: http://imagej.273.s1.nabble.com/Output-boundary-coordinates-of-particles-tp5011534p5011619.html

On Feb 9, 2015, at 23:24, xin fang wrote:
> Hello,
> I have a problem on particle analysis using ImageJ. I need to output the boundary coordinates of discrete particles (no overlap) on a 2D 8 or 16 bit gray scale image. The output format of boundaries needs to be clockwise or counterclockwise along the perimeter of each particle. I need the particle boundary output to construct a model for finite element modeling. Does any one know how to do that in ImageJ?
> Many thanks,Xinding

Hi Xinding,

that should be easy:

- Threshold the image

- Double click the Wand Tool and set the options to 4-connected or 8-connected, whatever you need.
  http://rsb.info.nih.gov/ij/docs/guide/146-Part-IV.html

- Click on the particle with the Wand tool

- Use the SelectionCoordinates ("List XY Coordinates") macro
  http://rsb.info.nih.gov/ij/macros/SelectionCoordinates.txt

You can modify the 'print' line of the macro as desired, e.g. omitting the first column 'i' or changing the separator characters to "," (comma) or "\t" (tab)

Michael

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