Skip to content

Instantly share code, notes, and snippets.

View ndefrancesco's full-sized avatar

Nicolás De Francesco ndefrancesco

View GitHub Profile
@mutterer
mutterer / Better_Wand_Tool.ijm
Last active January 4, 2024 17:42
Better Wand Tool
macro "Better Wand Tool - C000T0f10BT7f10WTff10T" {
if (!isOpen("ROI Manager")) run("ROI Manager...");
smoothness= call('ij.Prefs.get','bwt.selectSmoothness',3);
getCursorLoc(x, y, z, flags);
id=getImageID;
setBatchMode(1);
run("Select None");
run("Duplicate...","title=a");
run("Gaussian Blur...", "radius="+smoothness);
id2=getImageID;