Renaming an ROI causes exceptions to referencing it in a plugin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Renaming an ROI causes exceptions to referencing it in a plugin

Jarrett Burgess
I'm making a plugin that does some analysis on 3 ROIs on a few images.
Currently if I do not rename any of the ROIs, it works fine, but if I rename
one of the ROIS I get this: java.lang.IllegalArgumentException: "%Area1"
column not found, referencing this line in my plugin: areaFraction =
(float)measurements.getValue("%Area"+1,i);.  measurements is a ResultsTable
object, and before I renamed an ROI "%Area"+1 would reference the first roi
fine, no problems.  When I rename it I get the error.  How do I fix this? Is
it a bug?



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html