how to find a local minima for a continuous waveform ?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
John Petersen
il 8 Ago 2012
min(min(X))
2 Commenti
John Petersen
il 2 Nov 2012
not if X is limited to the area of interest. but it does have to be rectangular-ish.
Image Analyst
il 8 Ago 2012
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 Commenti
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!