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

TruncateIntensity segfault #597

Closed
stnava opened this issue Apr 1, 2024 · 1 comment · Fixed by #598
Closed

TruncateIntensity segfault #597

stnava opened this issue Apr 1, 2024 · 1 comment · Fixed by #598

Comments

@stnava
Copy link
Member

stnava commented Apr 1, 2024

PPMI-41289-20151201-T1w-643386.nii.gz

on osx using an older antspy on linux using @cookpa latest GitHub release python 3.9.*

import ants
img=ants.image_read("PPMI-41289-20151201-T1w-643386.nii.gz")
ants.iMath(img,'TruncateIntensity',0.01,0.995)

gives Segmentation fault: 11

the image has the wrong physical space info but opens / loads ok in snap etc.

@cookpa
Copy link
Member

cookpa commented Apr 1, 2024

Reproducible on the command line

iMath 3 tmp.nii.gz TruncateIntensity PPMI-41289-20151201-T1w-643386.nii.gz 0.01 0.995
zsh: segmentation fault  iMath 3 tmp.nii.gz TruncateIntensity  0.01 0.995

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

Successfully merging a pull request may close this issue.

2 participants