T O P I C R E V I E W |
sonj |
Posted - 06/13/2004 : 12:51:17 PM I have an image showing a set of vertical straight fringes. I can get the x and y coordinates along with the relative intensities of each pixel. I am able to plot these to show a 3d contour map of the relative intensities of each fringe. What I need is to be able to scan across the image row by row, picking out the peak intensities of each fringe. Then take this data to plot linear graphs of these peak values obtained for each row in the image, finally extracting the equation of each line to show that they are parallel. This would be possible by making a macro in excel but there is far too much data for it to cope with. Also, i'm a beginner in origin so go easy on me.. |
4 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 06/14/2004 : 08:10:43 AM There is no simple GUI solution of which I am aware so LabTalk or Origin C programming will be necessary. OriginC is much better at handling matrices and if you're comfortable with C programming I suggest you look into that first.
Mike Buess Origin WebRing Member |
sonj |
Posted - 06/13/2004 : 3:23:21 PM Right, your instructions worked well (but only for an image containing a single fringe). Would it be possible to use the same technique, for an image of 10 fringes? Perhaps seperating the transposed image into 10 regions and finding 10 maximums? .. or would I have to do them each seperately? |
sonj |
Posted - 06/13/2004 : 2:58:51 PM Origin 7 and yes, you've got it exactly right.
Thanks for the easy instructions, sounds great. Will give it a go, and thanks again!
Edited by - sonj on 06/13/2004 3:06:25 PM |
Mike Buess |
Posted - 06/13/2004 : 2:45:22 PM What is your Origin version?
...And just to make sure I understand your objective, you want to find the largest value in each matrix row and record that value (and probably the column number where it occurs)?
...If I stated your problem correctly and you have Origin 6.1 or later then there is a simple GUI solution.
1. Transpose the matrix. (Matrix->Transpose) 2. Convert to worksheet. (Edit->Convert to Matrix->Direct) 3. Select all worksheet columns. (Click in the upper left corner.) 4. Right click on worksheet and select Statistics on Columns.
This will create another worksheet with one row for each column in the previous worksheet. Maximum values will be in the Max column and corresponding indices will be in the IMax column.
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 06/13/2004 2:50:17 PM
Edited by - Mike Buess on 06/13/2004 3:02:25 PM |