Convert to ubyte dtype explicitly for python 3

This commit is contained in:
Johannes Schönberger
2013-04-28 11:11:30 +02:00
parent 9b069335eb
commit 529d46a67b
5 changed files with 15 additions and 13 deletions
+4 -4
View File
@@ -18,12 +18,12 @@ The example compares the local threshold with the global threshold.
import matplotlib.pyplot as plt
from skimage import data
from skimage.morphology.selem import disk
import skimage.filter.rank as rank
from skimage.filter import threshold_otsu
from skimage.morphology import disk
from skimage.filter import threshold_otsu, rank
from skimage.util import img_as_ubyte
p8 = data.page()
p8 = img_as_ubyte(data.page())
radius = 10
selem = disk(radius)