Regional maxima from python
Hello, Is it possible to compute the regional maxima of a grey scaled image (8bits or more) ?
thank you
jp
(opencv 244 build from source, python 2.7)
You'd have to do it by hand. You make a 2D filter which you slide across the image so that each pixel becomes 0 if it is not the maximum in the neighborhood and retains its value otherwise.
Asked: 2013-03-13 05:26:37 -0600
Seen: 1,455 times
Last updated: Mar 13 '13
there's minMaxLoc, but that's global (for the whole img or roi you apply it on)
what do you mean by 'regional' ?
There a definition in Castleman, K : http://bit.ly/13VyHL7
If you think of an image as a landscape, regional maxima yields the local tops. This not the max value of the image. I have browsing again the documentation but that morphological operator doesn't seem to be implemented.
thanks for clarifying.
and i'd think so, too - no such thing in the library