Author |
Topic  |
|
GiftofGod
Germany
4 Posts |
Posted - 11/18/2021 : 08:39:06 AM
|
Origin Ver. and Service Release (Select Help-->About Origin): Operating System:
help with obtaining the matrix from an image e.g. a tif image document. |
|
snowli
USA
1407 Posts |
Posted - 11/18/2021 : 08:52:43 AM
|
Which version are you using?
Thanks, Snow |
 |
|
YimingChen
1636 Posts |
Posted - 11/18/2021 : 09:18:35 AM
|
You can go to menu Data -> Import From File -> Image to Matrix... To view the data in the matrix, you can select menu View -> Data Mode..
James |
 |
|
GiftofGod
Germany
4 Posts |
Posted - 11/18/2021 : 09:29:12 AM
|
quote: Originally posted by snowli
Which version are you using?
Thanks, Snow
I use OriginPro 2022 |
 |
|
GiftofGod
Germany
4 Posts |
Posted - 11/18/2021 : 09:48:48 AM
|
quote: Originally posted by YimingChen
You can go to menu Data -> Import From File -> Image to Matrix... To view the data in the matrix, you can select menu View -> Data Mode..
James
Thanks for your response. Kindly find attached the image.
I obtained the ROI from my initial image, got my matrix data, and made a profile plot also. I will like to manipulate my y-axis i.e. instead of the intensity distribution, I will like to obtain the center of mass. against the pixel value on the x-axis. |
 |
|
YimingChen
1636 Posts |
Posted - 11/18/2021 : 2:25:08 PM
|
You mean the peak position along y axis for each x value?
James |
Edited by - YimingChen on 11/18/2021 2:25:29 PM |
 |
|
GiftofGod
Germany
4 Posts |
Posted - 11/22/2021 : 02:27:26 AM
|
quote: Originally posted by YimingChen
You mean the peak position along y axis for each x value?
James
Yes |
 |
|
YimingChen
1636 Posts |
Posted - 11/22/2021 : 1:58:15 PM
|
I don't see a direct way, here is one possible solution. 1. Convert Matrix to Worksheet. With the matrix activated, select from menu Matrix:Convert to Worksheet.... Make the following settings and click OK. You should get the matrix data in the worksheet with X, Y values.

2. Calculate the peak position for each x. Click the column header name Comments and click the button Insert User Parameter in the mini toolbar. Enter the formula =table(This, col(A), max(This)) and click OK. The formula returns the peak position for the spectrum of each x value.

3. Plot it out. Copy the Peak Position vs X data, and Past Transpose to a new worksheet. Organize the data to plot.

James |
 |
|
|
Topic  |
|