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.

回答(2 个)

John Petersen
John Petersen 2012-8-8
min(min(X))

Image Analyst
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);

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by