How to get line width in a macro?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get line width in a macro?

lechristophe
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
Reply | Threaded
Open this post in threaded view
|

Re: How to get line width in a macro?

Herbie
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
Reply | Threaded
Open this post in threaded view
|

Re: How to get line width in a macro?

lechristophe
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