I have some trouble with the getprofile() instruction when i want to use it with a vertical profile. Only one value is stored in my array. I use : run(“Profile Plot Options…” vertical but the command seems to be ignored.
Have you an idea about my problem.
Welcome to the forum, @Spline!
In the user interface, you have to press Alt-K to get a vertical profile of a rectangular ROI. In the macro language, you can simulate the Alt key using:
See also this example macro: http://imagej.net/macros/GetProfileExample.txt
The macro recorder will also record this when pressing Alt-K:
setKeyDown("alt"); run("Plot Profile");