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

crop_nodule function #11

Open
sarahchandran opened this issue Oct 11, 2021 · 1 comment
Open

crop_nodule function #11

sarahchandran opened this issue Oct 11, 2021 · 1 comment

Comments

@sarahchandran
Copy link

I am unable to find the function crop_nodule in View_output.ipynb.
The function crop_nodule is called in function crop_patch.

@jaeho3690
Copy link
Owner

hello, sorry for the really really late reply. I don't know why I didn't receive any notifications..
For your question, yes it seems that I have omitted the function when committing. As far as I remember, crop patch
is a function that accepts the center of mass coordinate as the index and slices KxK patch with the center coordinate corresponding to center of mass. It should be something like this

def crop_patch(center_coord, mask,K=80):

   mask[:, center_coord_y-40:  center_coord_y+40]

something like the above. Hope you get what I mean

Thanks

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

2 participants