Step size issue in image line profile
maniraj
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
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.
April 24, 2015 at 06:57 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
April 24, 2015 at 09:27 am - Permalink
April 25, 2015 at 09:41 am - Permalink
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.
May 11, 2015 at 08:42 am - Permalink
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.
May 11, 2015 at 09:34 am - Permalink
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.
May 12, 2015 at 06:55 am - Permalink
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.
May 12, 2015 at 10:37 am - Permalink
It exactly does what I was looking for.
May 12, 2015 at 01:09 pm - Permalink