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

Help in understanding of this line in order to replicate this code into bash script #7

Open
yw7 opened this issue Oct 21, 2022 · 1 comment

Comments

@yw7
Copy link
Contributor

yw7 commented Oct 21, 2022

img.data[img.data>1.0]=0.0

Hello,

I'm trying to replicate this code into bash script using SCT Command-Line Tools.
I'll be very grateful for an explanation what is the purpose of this line.
I was wondering if the partial volume of the transformation can cause some values greater then 1 when dividing the sum of lesions masks by the sum of cord masks , and if so, will multiplying the lesion_mask by the cord_mask for each subject (here) could prevent it?

Thanks a lot

@jcohenadad
Copy link
Member

@charleygros would you be available to answer Yehuda's question by any chance?

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