Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to find local minima for watershed in OpenCV ?

Watershed has 3 steps

  • find gradient map
  • locate local minima
  • grow seed from minima

Matlab does all this automatically. Not so sure which part OpenCV does. But how do I find local minima from a gradient map for watershed ? minMaxLoc finds the global.