how to find a local minima for a continuous waveform ?
조회 수: 3 (최근 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!