Re: How to Apply the Otsu Threshold Excluding Zero Values
On 2014-09-26 08:03:24, vbubbly21@gmail.com wrote:
I want to use "skimage.filter.threshold_otsu(image, nbins=256)" module excluding the 0 values of my image while computing the threshold.
How about: skimage.filter.threshold_otsu(image[image != 0], nbins=256) Stéfan
Thank you Stéfan, it worked.
On Sat, Sep 27, 2014 at 12:15 AM, Stefan van der Walt
On 2014-09-26 08:03:24, vbubbly21@gmail.com wrote:
I want to use "skimage.filter.threshold_otsu(image, nbins=256)" module excluding the 0 values of my image while computing the threshold.
How about:
skimage.filter.threshold_otsu(image[image != 0], nbins=256)
Stéfan
-- You received this message because you are subscribed to the Google Groups "scikit-image" group. To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
participants (2)
-
Artur Bercik
-
Stefan van der Walt