Filter löschen
Filter löschen

Calculating local minima locations adjacent to a local maxima

1 Ansicht (letzte 30 Tage)
Naseer Khan
Naseer Khan am 16 Sep. 2016
Bearbeitet: Naseer Khan am 16 Sep. 2016
I m trying to find following points corresponding to local maximum.
For this I am writing a following code
url='https://i.ytimg.com/vi/9wnO8jQniS0/hqdefault.jpg';
Image=imread(url);
grayImage=rgb2gray(Image);
edgedImage=edge(grayImage,'sobel','vertical');
signal=sum(edgedImage,2);
plot(signal);
window=10;
h=gausswin(2*window+1)./window;
smSignal=filter(h,1,signal);
figure;plot(smSignal)
How would I find those points locations on x-axis? Also if I set some threshold like peaks with height greater than 40 only then how only those minpoint corresponding to peaks greater than 40 will be selected?

Antworten (0)

Kategorien

Mehr zu Read, Write, and Modify Image finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by