Renaming an ROI causes exceptions to referencing it in a plugin
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?