Automating Cross-Section Analysis in built-in ImagePlots Panel

I am working with IgorPro and often need to analyze cross-sectional profiles from ImagePlots. The current interactive tool, "Image->LineProfile," is useful but not suited for automation. My manual process involves using the "SaveProfile" button, setting the output waveform, and then displaying the graph, which is time-consuming.

Do I need to create a new program using built-in IgorPro functions (such as ImageLineProfile or ImageTransform) to automate this process, or is there a way to command the GUI features of the LineProfile panel to achieve an automated workflow that is integrated with the GUI?

 

Yes, you can call ImageLineProfile directly after defining two waves and a width for the profile of interest. See:

DisplayHelpTopic "ImageLineProfile"

Is your profile a simple horizontal or vertical region-of-interest or more complicated? In the former case you may also want to have a look at my Image Profile project. It includes a function QProfile() which you can call from your code to create profiles. Note that I do not use ImageLineProfile here, but instead calculate the profile 'by hand'. You may also just copy the relevant code section for your own task, if you want. See the project and manual here:

https://www.wavemetrics.com/node/21549