Find local maxima in grayscale image using OpenCV

前端 未结 10 2324
暗喜
暗喜 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:25

    The first question to answer would be what is "local" in your opinion. The answer may well be a square window (say 3x3 or 5x5) or circular window of a certain radius. You can then scan over the entire image with the window centered at each pixel and pick the highest value in the window.

    See this for how to access pixel values in OpenCV.

提交回复
热议问题