Skip to content

Instantly share code, notes, and snippets.

@romainGuiet
Created January 15, 2021 07:47
Show Gist options
  • Save romainGuiet/0700295baa0097986ac418e5b596fcec to your computer and use it in GitHub Desktop.
Save romainGuiet/0700295baa0097986ac418e5b596fcec to your computer and use it in GitHub Desktop.
For the review of the article (https://f1000research.com/articles/9-1380). A macro to test the option "disable smoothing" of the plugin "Process>Subtract Background..."
run("Close All");
run("Blobs (25K)");
img1 = getImageID();
run("Invert LUT");
run("32-bit");
rename("On_disableSmoothing");
run("Duplicate...", "title=Off_disableSmoothing");
img2 = getImageID();
selectImage(img1);
run("Subtract Background...", "rolling=50 disable");
run("Histogram", "bins=256 use x_min=-20 x_max=300 y_max=Auto");
selectImage(img2);
run("Subtract Background...", "rolling=50 ");
run("Histogram", "bins=256 use x_min=-20 x_max=300 y_max=Auto");
run("Tile");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment