Hi, we are writing a plugin for imagej which is related to a project for forensic Medicine.
Our program needs to take data from ROI’s measure button (inside ROI manager), which shows area for versatile wand tool and length for line tool. User can take these data but we need our program to take them automatically for easy use.
We cannot use macro as we will be computing some other information on the background.
Result table gives this following error:
java:465: error: cannot find symbol ResultsTable table =overlay.measure(overlayedImage);
Our code is as follows for this part :
RoiManager roimanager = new RoiManager(); Roi selectedroi = roimanager.getRoi(selectedIndex); Overlay overlay = selectedroi.getPrototypeOverlay(); ImagePlus overlayedImage = selectedroi.getImage(); ResultsTable table =overlay.measure(overlayedImage); float test = table.getColumn(1);
Is there another way to get measure data from ROI ? Or can we use resultstable for this operation ?