Step size issue in image line profile

My interest is to extract the row and column independently from 2D image for line profile analysis. For the same, I am using Image Processing>>Image Line Profile option. It works nice and has nearly all feature that I am looking for.

To make for compatible for my purpose, I am looking for an option to change the increment option of "position" from integer step of 1 (which appears to be default) to decimal value corresponding to step size of the respective scale. I had a look at .ipf file of Image line profile and could not locate where exactly to change. In other words, both for width and position, I would like to include integer that counts row and/or column number and extract the line profile corresponding to it.

Could some one who know about it help me where to start working in Image Line profile.ipf.

With thanks,
Maniraj
Hello Maniraj,

In general when you have a panel in an experiment and you want to find out the associated procedures, you start by showing the tools using cmd-T on the Mac or Ctrl-T on Windows. Next you double click on the control and you get to the control setting dialog where you can find all the settings and the name of the procedure function that gets called when you click in the control.

Remember that the Image Processing package consists of files in the WaveMetrics Procedures folder so you are not really supposed to edit them. Feel free to copy the relevant files to your own procedures and edit them there. Note also that the whole package is going to be removed from IP7 where it is built into the application.

A.G.
WaveMetrics, Inc.
To find the action procedure associated with a control, turn on the Draw Tools. Then you can right-click a control, and one of the items in the contextual menu will be Show xxx where xxx is the action procedure.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
Thank you all for your interest. I go through the code (appears bit confusing, still need some more time to understand !).
I have gone through my best. Since I am in basic level in programming, I exactly could not find things that I am looking for. I now only know that "width" is set to somehow by default to step size of 0.5 and "position" to 1. When I used to above suggestion, I am finding that it direct me to a function called "WMUpdatePositionAndWidth()". So, I am very much confused.

What I am looking for is to set increment value to custom value for both width and position. Please let me know if someone know about it. I thank you very much in advance for your interest.
Hello Maniraj,

I suggest that you put aside the Image Processing procedures and start by telling us exactly what you want to do. Also I recommend that you read the documentation for the ImageLineProfile operation.

A.G.
WaveMetrics, Inc.
Firstly, thanks for your reply. Herein, I am trying to explain more detailed way.

I found a "Image Processing" package in the "Analysis" menu. In the "Image" menu I activated the "Image Line Profile". With this tool, I could extract the line profile.

First, I plotted a image with x and y scale starting from 0 with step size of 1 (pixel number). Then, I used "Image Line Profile" tool to extract vertical and horizontal axis with different "position" and "width". In order to change the "position" and "width" values, I started using up/down arrow in control button. Here I noticed that when I click once upward arrow to increase the "width" value, number is increased by 0.5 from its previous value. Similarly when I click upward arrow to increase the "position" value, then value is increased by 1 from its previous value.

In pixel axis, when I like to scan whole horizontal axis then I click upward arrow in "position" button and consequently cursor moves at each column in image and display line profile. All is fine.

Now, the same image is scaled to actual values which is for example 6 as start value and 0.015 as step size. Now, when I want to scan the same horizontal axis by just clicking the incremental button, cursor jump by 1. This means if I have a scale ranging from 6 to 8. Then by mouse click, I could only scan 6, 7, 8 as position values. All intermediate values are accessible only by manually entering the values in the "position".

At this condition, I started looking for some option to change the increment option for "position", in such a way that when once upward arrow is clicked then position value should be increased by its step size of respective axis and not by just a number 1.

Similarly, I am looking for an option to increase the "width" value by step size of respective axis.

I hope it is clearly detailed. Please let me know if not.

Thanks again for your interest.
You can modify the code of the Image Processing Procedures but it is best if you work on your own copy and not change the original. In this case it seems that you want to change the increment of a setVariable control. To do that click on the Image Line Profile panel to bring it to the front. Then choose Show Tools from Graph Menu. With the tools visible double click on the setVariable and edit the increment field. When you do, you will find that the corresponding command is:
SetVariable width limits={0,inf,3}
Here I was changing the increment from 0.5 to 3. Clearly you can use this approach with both setVariable controls. Note however that executing this command will only affect the current line profile panel. The next time you create a line profile panel it would revert to default increments defined in the procedure file.

A.G.
WaveMetrics, Inc.
Thanks a lot for your time and interest.
It exactly does what I was looking for.