You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we can emulate the behaviour of bwperim with:
from skimage.measure import find_contours, grid_points_in_poly
C = find_contours((I > 128).astype('uint8'), 0.5)
si = np.argmax([a.shape[0] for a in C])
G = grid_points_in_poly(I.shape, C[si])
And this way delete a dependency on the code from which we only use one function for the moment. Off course, if we see the need to use mahotas again, we should reconsider to use it.
The text was updated successfully, but these errors were encountered:
dipaco
changed the title
About manhotas dependency
About mahotas dependency
Feb 2, 2017
I think we can emulate the behaviour of bwperim with:
from skimage.measure import find_contours, grid_points_in_poly
C = find_contours((I > 128).astype('uint8'), 0.5)
si = np.argmax([a.shape[0] for a in C])
G = grid_points_in_poly(I.shape, C[si])
And this way delete a dependency on the code from which we only use one function for the moment. Off course, if we see the need to use mahotas again, we should reconsider to use it.
The text was updated successfully, but these errors were encountered: