Open ctrueden opened 7 years ago
One reason we have not implemented this patching yet is because you can use overlays as a workaround. For example, the following code adds ROIs to an overlay, transfers the overlay to another image, and then measures the mean of each ROI in the overlay.
run("Blobs (25K)");
setAutoThreshold("Default");
run("Analyze Particles...", " show=Overlay");
Overlay.copy
newImage("Untitled", "8-bit ramp", 256, 254, 1);
Overlay.paste
for (i=0; i<Overlay.size; i++) {
Overlay.activateSelection(i);
List.setMeasurements;
mean = List.getValue("Mean");
print(i+" "+mean);
}
See this forum thread for details and discussion.
This issue has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/redirect-imagej-fiji-print-macro-to-console/47012/1
This issue has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/headless-roimanager-open-file-path/46561/2
The ROI Manager cannot work headless, since it extends
PlugInFrame
, and unlikeGenericDialog
, this library does not runtime patch it. We could do so.For example, any of the following macro calls:
will throw an exception like: