소스 뷰어
%%time

import matplotlib
import matplotlib.pyplot as plt

from skimage import data, color
from skimage.filters import try_all_threshold

#img = data.page() 
#mg = data.astronaut()
#img = data.camera()
#img = data.rocket()
img = data.coffee()
#img = plt.imread( 'messi5.jpg' )

if len(img.shape) > 2 : img = color.rgb2gray( img )

fig, ax = try_all_threshold(img, figsize=(10, 8),verbose=0)

plt.show()
No description has been provided for this image
Wall time: 801 ms