Macro saving X Y coordinates not giving output

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Macro saving X Y coordinates not giving output

Giddy
Hello,

I have a large number of image files and am trying to automate the process of saving selected outlines as X Y coordinates.  The macro I am using seems to run without errors, but I am not seeing any output files appearing in the output directory.  Any help is greatly appreciated!

function action(input, output, filename) {
open(input + filename);
run("Versatile Wand", "value=95 color=1 gradient=50 eyedropper connectedness=4-connected x=775 y=400 do");
run("Interpolate", "interval=5 smooth adjust");
saveAs("XY Coordinates", output + filename);
close();
}
input = "C:\\input\";
output = "C:\\input\";

setBatchMode(true);
list = getFileList(input);
for (i = 0; i < list.length; i++)
        action(input, output, list[i]);
setBatchMode(false);