Hey guys I need help ,it's about image processing together with michelson interferometer
Mostra commenti meno recenti
well lets just make a long story short.i need to find the beta value out of an image like the one I uploaded ,the red color in the image follows the formula: 0.5*(1-cos((2*pi/lamdaR)*beta*(nR-nG)+x.*tan(deg2rad(1))));when:lamdaR=0.65;nG=1.5184;nR=1.5146;and x it's a known vector in length of the mean averages of the red color from the uploaded image.
well it isn't that short after all...thanks..!

10 Commenti
Star Strider
il 25 Ago 2014
I did my best to understand what you want to do, but I couldn’t get past ‘x it's a known vector in length of the mean averages of the red color from the uploaded image’ ?
Isolating the red channel is easy enough (thank you Image Analyst):
[B10,B10m] = imread('beta10','jpg');
B10R = B10(:,:,1); % Get red channel
but what then? (I know B10R should be cast as a double and subtracted from 255, but that’s as far as I can get.) I have no idea how that relates to the expression you posted.
Code something up to give us a clue as to what you want to do.
Sagi
il 26 Ago 2014
Modificato: Image Analyst
il 26 Ago 2014
Image Analyst
il 26 Ago 2014
You forgot to attach beta10.jpg - that causes delays in answers.
Star Strider
il 26 Ago 2014
It’s the image in the Question.
I’m not sure I’m any closer to understanding it, though.
Image Analyst
il 26 Ago 2014
Yes, but that's a screenshot or the whole figure. We can't use it with the axes in there - we need just the plain image itself.
Star Strider
il 26 Ago 2014
Good point.
I still wish I had some sort of reference for the equation and process in the code. My search turned up nothing. I can’t tell if it’s working if I don’t know what it’s supposed to do.
Sagi
il 26 Ago 2014
Star Strider
il 26 Ago 2014
Do you have a source (preferably a PDF of a paper, book excerpt or other detailed explanation) for the equation you are using? If So, could you attach it?
Sagi
il 26 Ago 2014
Star Strider
il 26 Ago 2014
It’s just easier to work from the original information rather than derived code, in the event there is an error in the code.
While I’m here though, why tan(deg2rad(1)) rather than simply tand(1)? If you’re calculating in degrees rather than radians, use the trigonometric degree functions (they all have a ‘d’ appended to their names, as tand here). They’re more accurate (and precise) than converting to radians and using the trigonometric radian functions.
Risposte (1)
Image Analyst
il 26 Ago 2014
0 voti
I assume you will take just one of those color channels and take a profile and then try to fit it to that complicated equation. Maybe the Curve Fitting Toolbox can do it. I'd maybe do it just numerically. Get the profile and loop over a bunch of beta's until the residual (sum of absolute values of differences between fit and actual) is minimum. Kind of a unclever, dumb, brute force numerical approach, but it should work. Maybe someone else will have a more clever curve fitting method that is more elegant and direct.
1 Commento
Sagi
il 26 Ago 2014
Categorie
Scopri di più su Image Arithmetic in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
