April 2020
Intermediate to advanced
438 pages
12h 2m
English
Perform the following steps to see the result of applying a few morphological image filters using mahotas library functions again:
fractal = mh.imread('images/mandelbrot.jpg')fractal_gray = mh.colors.rgb2grey(fractal).astype(np.uint8)t = mh.otsu(fractal_gray)bin_fractal = (fractal_gray > t).astype(np.uint8)
mh.border(bin_fractal, 0, 1)
Read now
Unlock full access