Calculating local minima locations adjacent to a local maxima

1 次查看(过去 30 天)
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?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Discrete Math 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by