reading .roi files (outside ImageJ)
Posted by
Kenneth Sloan-2 on
Jan 28, 2019; 9:54pm
URL: http://imagej.273.s1.nabble.com/reading-roi-files-outside-ImageJ-tp5021725.html
I'm collaborating on a project. My collaborator has created many, many .roi files (each one containing a single PolygonRoi).
I can drag&drop the .roi file on FIJI, and use File->Save As->XY Coordinates to get a .txt file that I can read in a non-ImageJ
Java program.
But, this will be tedious. Is there a simple way to automate this?
a) first choice: is there a description of the .roi file format? Given sufficient documentation, I'm comfortable
writing code to read the .roi file directly
b) second choid: a SIMPLE macro that will read all of the .roi files in a directory and create .txt files containing the XY coordinates.
I'm a skilled Java progammer - but very much a novice at ImageJ macros. I expect that my major stumbling block would be
writing a macro to read in all of the .roi files, one at a time. I think I could save to .txt files just fine, once
I have the .roi file read in. [ I know this is trivial for many of you - have pity on me. ]
For scale - I anticipate approximately 60 .roi files. Not out of the question to simply do one at a time, by hand - but
(if it's simple) I'd rather let a macro do the iteration.
--
Kenneth Sloan
[hidden email]
Vision is the art of seeing what is invisible to others.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html