|
I am trying to create a FreehandRoi on a image and the ROI is not closing (automatically connect the last point - where the mouse key was released - to the initial point.
I am doing this withing my own application and not using the ImageJ GUI.
I am able to draw the ROI just fine. When I release the key, the ImageCanvas.mouseReleased method gets called.
PolygonRoi.finishPolygon() and FreehandROI.handleMouseUp() get called.
When I go trace through calls when run from the ImageJ GUI, I see the same code path but the roi gets closed.
Is there something going on outside of the ImageCanvas.mouseReleased() method?
Is there some setup I'm omitting that needs to be done for the mouseRelased handler to work right?
I'd really appreciate some advice on this. I've spent more that a (loonnngg) day on this.
Thanks a lot,
jim
|