Multiply plot line and matrix image

조회 수: 3 (최근 30일)
Snapshot83
Snapshot83 2016년 3월 3일
댓글: Image Analyst 2016년 3월 3일
Goodevening to everybody,
I have an image that represents a spectral emission from a gas. So It means that I have an image with different "lines" in false color that represent the intensity of the emission of this gas. Now I know a theoretical curve that represent a "multilayer mirror", it means a sort of filter that permits to see only part of these bands and attenuate the others. So If I load correctly this plot and the image, I suppose that I can get a new image in which I can observe the attenuation of this effect.
My goal, so, is to multiply a plot line by an image in order to get a new image.
I simply load the image and the plot but without success.
I operated on this way:
A = importdata('C:\Users\Alfio\Dropbox\Stitch2.tif')
A =
cdata: [78x376 uint8]
colormap: [256x3 double]
>> B = importdata ('C:\Users\Alfio\Dropbox\MLM.xlsx')
B =
data: [315x2 double]
textdata: {'--' '--'}
colheaders: {'--' '--'}
>> C = A.*B
Undefined function 'times' for input arguments of type 'struct'.
I have Matlab2014 a version. Can anyone help me ?
Thanks in advance.
  댓글 수: 4
Guillaume
Guillaume 2016년 3월 3일
Yes, your explanation helps a lot. You want to filter a spectral image.
Attach the spectral image and the filter (I assume it's the excel file) to your question. That would help even more.
Also explain what the values in the filter represents. It would appear that it has two columns. What are columns 1 and 2 and what do the rows represent.
Image Analyst
Image Analyst 2016년 3월 3일
Don't make us work blind. After you read this, attach your image and any other diagrams that might help explain your problem better.

댓글을 달려면 로그인하십시오.

답변 (0개)

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by