Sie sind auf Seite 1von 1

im_bf_uneven = skimage.io.imread('HG104_bf_uneven_lighting.

tif')
im_bf_uneven = im_bf_uneven.astype(np.uint16)
fig, ax = plt.subplots(figsize=(12, 12))
ax.imshow(im_bf_uneven, cmap=plt.cm.gray)
ax.set_title('uneven illumination')
ax.imshow(im_bf_uneven, cmap=plt.cm.RdBu_r)
thresh_uneven = skimage.filters.threshold_otsu(im_bf_uneven)
ax.imshow(im_bf_uneven < thresh_uneven, cmap=plt.cm.gray)

Das könnte Ihnen auch gefallen