Macro Error Message from makeLine function - no more than 200 points

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

Macro Error Message from makeLine function - no more than 200 points

Aliciaddn
Hi all,

I am segmenting cells from microscopy images with a custom macro using
squassh.
I then record all the pixel coordinates of the cell contour and create an
ROI of the snake thanks to makeLine.
There is a linewidth of few pixels that I define also to by able to measure
fluorescence a bit inside my cell.

<http://imagej.1557.x6.nabble.com/file/t382224/Snake.png>

My macro is working fine when the contour of my cell is smaller than 200
points but above that threshold, I receive an error message saying:

<http://imagej.1557.x6.nabble.com/file/t382224/Macro_Error.bmp>

From what I searched, it's seems this limit of 200 points is applied in
makePolygon. But do you know if it's possible to change this limit of 200
points in makeLine ?

ps: I thought of splitting my line in two but I would like to avoid that
because I am then measuring local curvatures and it would make the work and
post-processing much more complicated.
I thought also to downsized the image but I really would like to avoid that
too not to loose resolution.

Thank you for your answers,

Best,
Alicia



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Macro Error Message from makeLine function - no more than 200 points

Wayne Rasband-2
> On Jan 31, 2019, at 10:36 AM, Aliciaddn <[hidden email]> wrote:
>
> Hi all,
>
> I am segmenting cells from microscopy images with a custom macro using
> squassh.
> I then record all the pixel coordinates of the cell contour and create an
> ROI of the snake thanks to makeLine.
> There is a linewidth of few pixels that I define also to by able to measure
> fluorescence a bit inside my cell.
>
> <http://imagej.1557.x6.nabble.com/file/t382224/Snake.png>
>
> My macro is working fine when the contour of my cell is smaller than 200
> points but above that threshold, I receive an error message saying:

The makeLine() macro function is the latest ImageJ daily build (1.52m3) is not limited to 200 points.

-wayne

> <http://imagej.1557.x6.nabble.com/file/t382224/Macro_Error.bmp>
>
> From what I searched, it's seems this limit of 200 points is applied in
> makePolygon. But do you know if it's possible to change this limit of 200
> points in makeLine ?
>
> ps: I thought of splitting my line in two but I would like to avoid that
> because I am then measuring local curvatures and it would make the work and
> post-processing much more complicated.
> I thought also to downsized the image but I really would like to avoid that
> too not to loose resolution.
>
> Thank you for your answers,
>
> Best,
> Alicia

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