Number of bins in Entropy and Enhance_contrast for uint16
Stefan van der Walt
stefan at sun.ac.za
Wed Dec 10 05:10:40 EST 2014
Hi Pål
On 2014-12-10 12:05:19, Pål Gunnar Ellingsen <paalge at gmail.com> wrote:
> "Bitdepth of 15 may result in bad rank filter performance due to large
> number of bins".
> I'm wondering if it is possible to reduce the number of bins via an option?
> I've tried to find such a keyword in the documentation and source code, but
> I haven't been able to find it.
The easiest is to change the image dtype by using, e.g.,
from skimage import img_as_ubyte
image8 = img_as_ubyte(image16)
The algorithm should run much faster on image8 than on image16.
Regards
Stéfan
More information about the scikit-image
mailing list