I want to draw a roi and add to roiManager:
waitForUser("draw roi, then click me"); // then draw a polygon roiManager("add"); run("Measure");
When I draw a polygon roi, sometimes at the end the double click does not work well and the roi has not been closed, then I confirm the dialogue, then the roi was added. It seems that the roi is an broken roi, because the measured results is also strange:
Area: 0.000 (sometimes is 0.097, very small number) Mean: NaN Min: 1974 (I do not konw why the min is not 0) Max: 0
Is there a command to check if the roi is unfinished polygon?