Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A macro to rename roi labels (remove filename prefix) in an ImageJ results table. Script from [stackoverflow hint](
macro "Rename Labels in Results Table" {
for (i=0; i<nResults; i++) {
oldLabel = getResultLabel(i);
delimiter = indexOf(oldLabel, ":");
newLabel = substring(oldLabel, delimiter+1);
setResult("Label", i, newLabel);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment