Posted by
bpavie on
Jun 15, 2015; 8:14am
URL: http://imagej.273.s1.nabble.com/TrakEM2-segmentation-with-polygon-ROI-not-working-Bug-tp5013118p5013161.html
Dear Albert,
According to Wayne Rasband who tested TrakEM2 in ImageJ 1.49s, 1.48, 1.47 and 1.46, it did not work in any of these earlier versions (I add this comment for the forum):
The problem with the polygon ROI tool in TrakEM2 does not seem to be due to an ImageJ API change in the last three years. I tried using the tool in ImageJ 1.49s, 1.48, 1.47 and 1.46 and it did not work in any of these earlier versions..
Best regards,
-wayne
So it may come from an earlier version of ImageJ of a regression in the TrakEM2 plugin (but I do not see any history of the class
https://github.com/trakem2/TrakEM2/blob/master/TrakEM2_/src/main/java/ini/trakem2/display/DisplayCanvas.java#L574 on github.
I will be happy to test on previous ImageJ version but I do not know how to install TrakEM2 on ImageJ without to use Fiji. It will be easier to test it on different ImageJ version than with Fiji, which to my knowledge do not offer to revert ImageJ version.
Best,
Benjamin
Dear Benjamin,
Very likely the ImageJ API changed and TrakEM2 was not adjusted to deal
with the change.
The issue is likely related to the mousePressed/mouseDragged/mouseReleased
functions of the ij.ImageCanvas, which the
ini.trakem2.display.DisplayCanvas implements:
https://github.com/trakem2/TrakEM2/blob/master/TrakEM2_/src/main/java/ini/trakem2/display/DisplayCanvas.java#L574If you'd like to have a look and provide a patch I'd be glad to apply it.
Thanks,
Albert
2015-06-11 9:04 GMT-04:00 bpavie <
[hidden email]>:
> Dear All,
>
> I watched the following video
>
http://www.ini.uzh.ch/~acardona/movies/arealist-create-and-edit.mp4> describing how to segment in TrakEM2 and at 43 sec, it demonstrates how to
> use polygon ROI tool to draw a ROI then use the FIT SPLINE option to get a
> perfect selection.
> Unfortunately, using the last FIJI version available (ImageJ 1.49t), it
> impossible to use the polygon ROI tool which is not working anymore. Using
> it will just draw a tiny yellow square as a first point and refuse to add a
> new one, getting stuck. You can't even unselect the ROI easily.
> I am not sure if it is due to an update of the plugin or of ImageJ.
> The tool is working fine outside of TrakEM2.
>
> Does anyone has a different experience or know how to solve this issue?
>
> Benjamin
>
>
>
>
> --
> View this message in context:
>
http://imagej.1557.x6.nabble.com/TrakEM2-segmentation-with-polygon-ROI-not-working-Bug-tp5013118.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
http://albert.rierol.nethttp://www.janelia.org/lab/cardona-labhttp://www.ini.uzh.ch/~acardona/--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html