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

git HEAD bug: register can't display mask file after it has been edited by Display #20

Open
gdevenyi opened this issue Feb 15, 2017 · 5 comments
Assignees

Comments

@gdevenyi
Copy link

Before:

> register file.mnc mask.mnc

Can see mask and file, standard register operation

Steps to reproduce

> Display file.mnc -label mask.mnc
*Edit mask in some way*
Save label as mask2.mnc
> register mask2.mnc file.mnc

Register shows a black space where the mask should be, no adjustment of intensity can make it show.

@gdevenyi
Copy link
Author

Also present in earlier versions.

@rdvincent rdvincent self-assigned this Feb 16, 2017
@rdvincent
Copy link
Member

@gdevenyi I have investigated this a little - with the mask file I am using, here's what happens. The original mask has the real range 0-1, but when Display saves a label image it sets the real range to the total number of labels possible in that image, so the range is changed to 0-255. What I see is that if I then load the mask file in register, it is possible to see the mask but only if I turn the uppermost intensity down to something close to one.

Arguably, Display should save labels using only the true range, so that a 0-1 image would be saved as a 0-1 image.

@zijdenbos
Copy link

zijdenbos commented Feb 22, 2017 via email

@rdvincent
Copy link
Member

Yes, I agree that this should be fixed. I'm looking into it.

rdvincent pushed a commit to BIC-MNI/Display that referenced this issue Feb 28, 2017
@rdvincent
Copy link
Member

@zijdenbos @gdevenyi See develop branch of Display, which should now resolve this issue.

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

3 participants