April 2020
Intermediate to advanced
438 pages
12h 2m
English
Perform the following steps to compute different metrics using the mahotas and skimage library functions:
blackhole = mh.imread('images/blackhole.png') blackhole_gray = mh.colors.rgb2grey(blackhole).astype(np.uint8) t = 60 bin_blackhole = (blackhole_gray > t).astype(np.uint8)print(mh.euler(bin_blackhole))# 0.0
cms = mh.center_of_mass(bin_blackhole) print('Eccentricity ='
Read now
Unlock full access