Peaks from a Intensity Plot
3 views (last 30 days)
Show older comments
I would like to find peaks from a Noisy Intensity plot. I used a Gaussian Filter to minimise the noise, HSize=[5 5] and Sigma=2; now I would like to find the peaks from the image.
I would like to find only the prominent peaks, which would be three. How do I get it?
I used 'findpeaks' function with MaxPeakHeight, NPeaks, MaxPeakDistance etc. but I am not getting a satisfactory result. Pleas suggest me some other ways.
fileName=imread('Location of the File');
gFilter=imspecial('gaussian',[5 5],2);
gfileName=(fileName,gFilter);
for i=1:1:1024
[pks(:,i),locs(:,i)]=findpeaks(double(gfileName),'NPeaks',3,'MaxPeakHeight',20,'MinPeakDistance',80);
end
3 Comments
Walter Roberson
on 3 Jul 2015
Debmalya, we could generate random data and figure out how to analyze it, and tell you the program that worked for that data. Or you could share your data with us and we could possibly find a program that works for your data.
Or we could just move on to the next question, written by someone who helps us to help them.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!