how to find a local minima for a continuous waveform ?
2 ビュー (過去 30 日間)
古いコメントを表示
I am working on image processing. I want to find the local minima of a particular area in an image.
Thank you in advance.
0 件のコメント
回答 (2 件)
John Petersen
2012 年 8 月 8 日
min(min(X))
2 件のコメント
John Petersen
2012 年 11 月 2 日
not if X is limited to the area of interest. but it does have to be rectangular-ish.
Image Analyst
2012 年 8 月 8 日
You can find local min using the imregionalmin() function to produce a binary image of where the local mins are.
binaryImage = imregionalmin(grayImage);
Use find() or regionprops() if you want the row and column coordinates.
[rows columns] = find(binaryImage);
Use indexing if you want to know what the values at those min locations are.
localMinGrayValues = grayImage(binaryImage);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!