Hello,
I’m trying to write a macro that utilizes the Analyze > Directionality plugin. After running the plugin, a (what appears to be a) javascript window pops up and displays generated statistics from the analysis. I want to extract the value of the “Direction (°)” and assign that value to a variable in my macro.
I have tried using “getResult” but the table doesn’t seem to be a normal FIJI Result table (aside from its irregular name). So the solution here didn’t seem relevant to me.
Does anyone know how to do this?
Below is the code that I am working with. The unsuccessful things that I have tried are commented out.
run("Z Project...", "projection=[Average Intensity]");
run("8-bit");
run("Directionality", "method=[Local gradient orientation] nbins=90 histogram=-90");
//IJ.renameResults("Directionality analysis for AVG_0096 (using Local gradient orientation)","Results");
//getResult("Direction (°)",1)