Re: Freehand ROI not 'closing'
Posted by Jim Cant on Mar 15, 2007; 3:31pm
URL: http://imagej.273.s1.nabble.com/Freehand-ROI-not-closing-tp3700066p3700067.html
Solved this. For the curious, here's the answer.
An ROI gets 'closed' when drawn only if isArea() returns true. This is so for Roi type FREEROI but not for FREELINE.
When Roi is created with a call to 'createNewRoi()' it decides what type to create by looking at the selected tool in the Toolbar object.
This works fine if one is using the ImageJ front end but pretty convoluted when using the package as a toolkit. (Mostly because none of the information I discovered is in the JavaDoc).
jim
<quote author='Jim Cant'>
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.
<snip>