The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 3d multiple peaks
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

sonj

UK
Posts

Posted - 06/13/2004 :  12:51:17 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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..

Mike Buess

USA
3037 Posts

Posted - 06/13/2004 :  2:45:22 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

sonj

UK
Posts

Posted - 06/13/2004 :  2:58:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

sonj

UK
Posts

Posted - 06/13/2004 :  3:23:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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?
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 06/14/2004 :  08:10:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000