Asked by FIR
on 14 Sep 2012

I have images,where each image has sine wave ,now i want to find the maximum point of each positive peak and find the distance between them,please help

*No products are associated with this question.*

Answer by David Lieberman
on 14 Sep 2012

Accepted answer

If you have the image processing toolbox, define your axes, x and y, them display your image with say imagesc(x,y,img); Then,

Use imdistline(gca) to graphically measure the distance between any 2 points of interest to you.

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply Today
## 2 Comments

## Thomas (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/48181#comment_99373

If I understand you right, you want to extract the numerical value of the peak of sine wave, and the distance between the peaks from an image.. Can you please post the image as well?

## FIR (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/48181#comment_99379

Yes Binish you are correct i want to find the peaks of sine wave