[go: up one dir, main page]

Skip to content
vvjc2018 edited this page Nov 13, 2019 · 1 revision

Welcome to the mahotas wiki! mahotas.erode(np.array([[0,0,0,1,1,1],[0,0,0,1,1,1],[0,0,0,1,1,1],], dtype=np.bool)) array([[False, False, False, False, True, True], [False, False, False, False, True, True], [False, False, False, False, True, True]], dtype=bool)

mahotas.dilate(np.array([[0,0,0,1,1,1],[0,0,0,1,1,1],[0,0,0,1,1,1],], dtype=np.bool)) array([[False, False, True, True, True, True], [False, False, True, True, True, True], [False, False, True, True, True, True]], dtype=bool) mahotas.dilate(np.array([[0,0,0,1,1,1],[0,0,0,1,1,1],[0,0,0,1,1,1],], dtype=np.int32)) array([[1, 1, 2, 2, 2, 2], [1, 1, 2, 2, 2, 2], [1, 1, 2, 2, 2, 2]], dtype=int32) mahotas.erode(np.array([[0,0,0,1,1,1],[0,0,0,1,1,1],[0,0,0,1,1,1],], dtype=np.int32)) array([[-1, -1, -1, -1, 0, 0], [-1, -1, -1, -1, 0, 0], [-1, -1, -1, -1, 0, 0]], dtype=int32) mahotas.version '0.9.7'

Clone this wiki locally