Ask Your Question
0

Regional maxima from python

asked Mar 13 '13

jeanpat gravatar image

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)

Preview: (hide)

Comments

there's minMaxLoc, but that's global (for the whole img or roi you apply it on)

what do you mean by 'regional' ?

berak gravatar imageberak (Mar 13 '13)edit

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.

jeanpat gravatar imagejeanpat (Mar 13 '13)edit

thanks for clarifying.

and i'd think so, too - no such thing in the library

berak gravatar imageberak (Mar 13 '13)edit

1 answer

Sort by » oldest newest most voted
0

answered Mar 13 '13

awknaust gravatar image

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.

Preview: (hide)

Comments

Sounds like a kind of non-maxima suppression.

Guanta gravatar imageGuanta (Mar 13 '13)edit

Question Tools

Stats

Asked: Mar 13 '13

Seen: 1,457 times

Last updated: Mar 13 '13