Hi All,
I have a paticular issue that was hoping someone could help me with. It goes as follows:
- We have a custom java application using ImageJ2, graphically embeded within this is ImageJ’s main toolbars.
- We are using dataset and display window (from
uiService.defaultUI.createDisplayWindow()
) to create an image - The image comes from a camera. Each time a new image is availabe, we call
setPlane(0, theImage)
- When I draw an overlay (rectangle, oval, etc…) using the standard drawing tool, the overlay persists on the image despite the frequent
setPlane()
calls. - When I draw an overlay on the same image using
OverlayService.drawOverlay()
the overlay is drawn but there are two issues:- Firstly, the overlay disappears after the first call to
setPlane()
. I can calldrawOverlay()
each time I callsetPlane()
to make it “persist” but that involves creating a new overlay object on each new image. - Secondly, the overlay that is drawn using drawOverlay() just has a black outline and none of the graphical appearance (blue outline, yellow shading etc…) of an overlay that was drawn using the drawing tool.
- Firstly, the overlay disappears after the first call to
Is OverlayService.drawOverlay() fully implemented or is it supposed to act differently to using the overlay drawing tool?
Related post:
I would appreciate any advice on this or any possible work arounds
Thanks in advance,
Jacob