Login  Register

Re: How to get line width in a macro?

Posted by lechristophe on Apr 29, 2019; 12:27pm
URL: http://imagej.273.s1.nabble.com/How-to-get-line-width-in-a-macro-tp5022142p5022144.html

Hi Herbie,

Thanks for this, it worsk! To change the width of the polyline I use

roiManager("Set Line Width", width);

as these are ROIs stored in the ROI manager and it works.

Christophe

On Mon, 29 Apr 2019 at 14:02, Herbie <[hidden email]> wrote:

> Bonjour Christophe,
>
> what about "getValue("selection.width")"?
>
> However I'm not sure if it is possible to change the line width of a
> polyline selection. In fact I doubt it.
>
> Best
>
> Herbie
>
> ::::::::::::::::::::::::::::::::::::::::::::::::::
> Am 29.04.19 um 13:43 schrieb Christophe Leterrier:
> > Hi,
> >
> > In a macro I'm writing, I am iterating through the ROI manager to change
> > the width of polyline ROIs by a multiplicative factor. I can't find a way
> > to get the line width for the selected polyline ROI, I only find a
> built-in
> > macro function that sets the width. Is there a way to do this?
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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