Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About mahotas dependency #16

Open
dipaco opened this issue Feb 1, 2017 · 0 comments
Open

About mahotas dependency #16

dipaco opened this issue Feb 1, 2017 · 0 comments

Comments

@dipaco
Copy link
Owner

dipaco commented Feb 1, 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.

@dipaco dipaco changed the title About manhotas dependency About mahotas dependency Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant