フィルターのクリア

Calculating local minima locations adjacent to a local maxima

1 回表示 (過去 30 日間)
Naseer Khan
Naseer Khan 2016 年 9 月 16 日
編集済み: Naseer Khan 2016 年 9 月 16 日
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 Center および File ExchangeRead, Write, and Modify Image についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by