I wonder if there is a way to select and close windows that are opened by plugins and are not recognized by selectWindow command. For example when I use the Directionality (built-in) plugin it opens a histogram window and a table, that I want to close after extracting their output.
The following code does not work (using non relevant blobs image, but just for illustration):
run("Directionality", "method=[Local gradient orientation] nbins=90 histogram=-90");
selectWindow("Directionality for blobs (using Local gradient orientation)");
and gives an error of:
No window with the title ""Directionality for blobs (using Local gradient orientation)" found
anyway to overcome this within a macro written in ImageJ macro language ?