macro script to save radial profile plot data?

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

macro script to save radial profile plot data?

beale
I am using ImageJ 1.46r on Windows XP.  I am a beginner with this program.

I want to create an ImageJ macro which takes the 2D-FFT of an image, and saves a CSV text file, or Excel file with the data of intensity vs spatial frequency, using the "Radial Profile" plugin acting on the 2D-FFT result. The below macro "almost" works, but the last line gives me an error because I can't save the graphical radial plot as a text file. Is there a way to do all this as one macro, without having to first manually click the "List" button in the "Radial Profile Plot" window to expose the X,Y plot values?

open("C:\\G\\Sample.jpg");
run("FFT");
run("Select All");
run("Radial Profile", "x=512 y=512 radius=512");
saveAs("Text", "C:\\G\\PlotValues.xls");

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html