How to implement the H-maxima transform in OpenCV that is present in Matlab?

The link to the Matlab function is:

might be nothing but a simple threshold and masking operation.

they don’t demonstrate anything relating to maxima at all.

from the sample inputs and outputs in that documentation, I can’t fathom how exactly that thing is supposed to behave.

you should contact methworks and ask them to specify and examplify this function better.

imo, slightly better explained here