Login  Register

Re: How to use "makePolygon"?

Posted by Gluender-3 on Jun 22, 2009; 12:13pm
URL: http://imagej.273.s1.nabble.com/How-to-use-makePolygon-tp3692059p3692060.html

Could you please be more specific as to what doesn't work for you?

>Hi!
>
>I'm trying to programmatically select a Roi as a
>ploygon. I started recording a macro and I got
>the following:
>
>//setTool(2);
>makePolygon(175,20,106,161,264,227,348,78,201,103,231,31);
>
>But when I try to use "makePolygon()" at my code, it doesn't work.
>I'm not sure at all about the method because the number of arguments can vary.

The macro function manual tells us:
--------------------------
makePolygon(x1, y1, x2, y2, x3, y3, ...)
Creates a polygonal selection. At least three
coordinate pairs must be specified, but not more
than 200. As an example,
makePolygon(20,48,59,13,101,40,75,77,38,70)
creates a polygon selection with five sides.
--------------------------

>Any idea?
>
>Sincerelly,
>Juanjo.
>
>--
>Juanjo Vega ([hidden email])
>
>Unidad de Biocomputación. Laboratorio B-13.
>Centro Nacional de Biotecnología. CNB-CSIC.
>C\ Darwin, 3. Campus de Cantoblanco.
>Universidad Autónoma de Madrid.
>28049, Madrid, Spain.

Best
--

                   Herbie

          ------------------------
          <http://www.gluender.de>