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

MINC does not properly interpret NaN, Inf #82

Open
vfonov opened this issue Feb 27, 2017 · 0 comments
Open

MINC does not properly interpret NaN, Inf #82

vfonov opened this issue Feb 27, 2017 · 0 comments

Comments

@vfonov
Copy link
Member

vfonov commented Feb 27, 2017

test_nan.mnc is a 10x10x10 voxel volume with regular values except for the following:
4,4,3 : Inf
4,4,4 : -Inf
4,4,5: NaN

Running following snippets:

minccalc -express 'isnan(A[0])' test_nan.mnc test_nan_nan.mnc
mincstats -sum test_nan_nan.mnc

Produces 2

Running following snippets:

mincreshape -short test_nan.mnc test_nan_short.mnc
minccalc -express 'isnan(A[0])' test_nan_short.mnc test_nan_short_nan.mnc
mincstats -sum test_nan_short_nan.mnc

Produces 0

minccalc relies on voxel_loop to work with the volume.

test_nan.mnc.zip

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