Find local maxima in grayscale image using OpenCV

前端 未结 10 2323
暗喜
暗喜 2020-11-30 04:44

Does anybody know how to find the local maxima in a grayscale IPL_DEPTH_8U image using OpenCV? HarrisCorner mentions something like that but I\'m actually not i

10条回答
  •  生来不讨喜
    2020-11-30 05:27

    To find more than just the global minimum and maximum try using this function from skimage:

    http://scikit-image.org/docs/dev/api/skimage.feature.html#skimage.feature.peak_local_max

    You can parameterize the minimum distance between peaks, too. And more. To find minima, use negated values (take care of the array type though, 255-image could do the trick).

提交回复
热议问题