Is it possible to subtract the baseline of a graph from the peak using the curvefitter toolbox?

5 vues (au cours des 30 derniers jours)
Hello,
I have an image (1024x1024) which shows a laser beam (I hope it is clear in the image) and a background, and it looks like this:
What I have done so far is, choose a specific column range, and calculate the average intensity of each row, and store it in a matrix (1024x1), to plot the average intensityalong the 1024 rows like this:
I have highlighted in red, the baseline, and the unhighlighted peak depicts the laser beam.
What I want to do is, create a separate fit for the baseline (constant) and subtract it from the entire plot, to calculate the average intensity under the entire area of the peak alone. Would that be possible using the curve fitter toolbox in MATLAB? If not, are there other ways to do it?
Best regards,
Akshay.

Réponse acceptée

Matt J
Matt J le 1 Mai 2024
Modifié(e) : Matt J le 1 Mai 2024
Yes, it would be possible, although for what you show it might be enough just to use polyfit.

Plus de réponses (0)

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by