Hi, YXDragon

On Fri, Sep 8, 2017, at 21:25, imagepy@sina.com wrote:
So I wrote h_minma/maxma and watershed myself (as a sub package of my project imagepy). My watershed now only support 2D, But the h_minma now is OK, works on nd. I had test one image:
       scikit-image's h_minma runs in 15s, and mine runs in 0.3s, 45times.

I tested on my machine and can confirm the slowness.  Would you be willing to help profile the code, to find out why it is so slow?

Best regards
Stéfan