How to interpolate a graph to find a point halfway from the max peak
Afficher commentaires plus anciens
Hi, I am wondering how to find a point halfway from the maximum point (thats pointing down the way) on the graph I created:
http://www.2shared.com/photo/pIak1Za9/graph1.html
It was made using the code
I = imread('f_000021.tif','TIFF'); imshow('f_000021.tif') x=[128 180]; y=[50 50]; improfile(I,x,y) plot(max)
There isn't many pixels plotted so I was wondering if I could pick a point in between a couple of pixels on that graph (half of the maximum value)?
Thanks, Graham
5 commentaires
Jan
le 24 Fév 2011
It is not getting clear to me: Do you have the values of the curve, or just the image? What is the result you want to achieve? You search the "point halfway from maximum point" to which other point?
Graham Boag
le 24 Fév 2011
Jan
le 24 Fév 2011
As far as I understand, the fact that you measure something in an image does not matter the question at all - correct? You have some values in a vector and search for the index, where the line crosses the half of the range - did I understand this correctly?
Graham Boag
le 24 Fév 2011
Jan
le 24 Fév 2011
No problem. Finding a solution is often a iterative process, which clears the question at first. If the question is absolutely and mathematically clear, the solution is usually found already.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Lighting, Transparency, and Shading dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!