Translating Multi-Otsu Threshold from java

165 views
Skip to first unread message

Alexandre Fioravante de Siqueira

unread,
May 3, 2016, 11:47:00 AM5/3/16
to scikit-image
Hi everyone,
I was thinking about using multi-Otsu thresholding for some research. I am used to use the ImageJ available plugin, http://imagej.net/Multi_Otsu_Threshold.
Could you give me a hand on writing such a function which could do this for python? Maybe putting it into scikit-image. Or else, could you point me a better alternative?
Thank you very much!

Alex

Josh Warner

unread,
May 3, 2016, 7:34:38 PM5/3/16
to scikit-image
We do have Otsu, and I think it would be within the scope of scikit-image. 

I think I'd find use for this, personally, and depending on the implementation you may be able to reuse code from simple binary Otsu internally.

Seems reasonable - PR would be welcome!

Josh

Alexandre Fioravante de Siqueira

unread,
May 8, 2016, 11:20:31 AM5/8/16
to scikit-image
Hi Josh,
OK, I'm on it. I'll try to implement from the paper.

Alex

Alexandre Fioravante de Siqueira

unread,
May 9, 2016, 6:14:59 AM5/9/16
to scikit-image
Hi all,
the preliminary code is ready, but it could be improved a lot. For instance, there's a function named maxsigma() which has a lot of nested for loops.
Here is the code:
Thank you very much!
Kind regards,

Alex

Alexandre Fioravante de Siqueira

unread,
May 9, 2016, 1:06:46 PM5/9/16
to scikit-image

Alexandre Fioravante de Siqueira

unread,
Aug 11, 2016, 9:22:22 AM8/11/16
to scikit-image
Hi all,
I am having a bad time trying to correct the first version of this code.
The values from my function and Tosa's does not match. In my tests, my maxSigma is higher than his; I believe I am having a problem with the values returned from the histogram.
Could you give me a hand on that? This is the code so far:
Thanks for your time!
Kind regards,

Alex
Reply all
Reply to author
Forward
0 new messages