array in macro functions

Posted by Csaba DÁVID on
URL: http://imagej.273.s1.nabble.com/array-in-macro-functions-tp5020111.html

Hi,i have coordinates of hundreds of irregularly shaped polygons that i want to draw on a single image. I do not have the polygons as ROIs, unfortunately. I want to usea list of coordinates from another software. I managed to import them in an array, but when i wanted to use makePolygon(coord); where coord is an array of all the coordinates of a polygon, i got the failure message: Numer or numeric function is required. When i wrote a list of coordinates one by one in the makePolygon function it worked well, but I do not have the time to write all the many thousand coordinates of many hundred polygons that way.
How can I use list of coordinates for making polygons?
Many thank in advance!Csaba

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