Created
May 10, 2022 09:34
-
-
Save mutterer/fceb6fd047b9cccdabd4c7bab977611b to your computer and use it in GitHub Desktop.
a simplified IJ macro version of https://github.com/BIOP/ijp-LaRoMe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// a simplified IJ macro version of https://github.com/BIOP/ijp-LaRoMe | |
roiManager("reset"); | |
run("Duplicate...","title=temp"); | |
id=getImageID; | |
h=getHeight; | |
w=getWidth; | |
for (y=0;y<h;y++){ | |
for (x=0;x<w;x++){ | |
if (getPixel(x,y)>0) { | |
doWand(x,y); | |
roiManager("add"); | |
setColor(0); | |
fill(); | |
} | |
} | |
} | |
selectImage(id); | |
close(); | |
roiManager("show all"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment