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
view_img
always masks bg_img
with MNI mask
#3120
Comments
Thx for reporting. Can you provide a snippet of code (and possibly an image) to reproduce this ? Best, |
|
from messing around, it seems to be some kind of center-of-mass-like calculation which offsets the viewpoint. removing the |
Looking quickly at it, it seems to amount to the fact that |
right, I'll see if I can change that behavior; I do most of my analysis in subject-space. Seems strange to allow supplying of bg_img but resample automatically into MNI. Should also be emphasized again that this behavior goes away (i.e. plots correctly) when omitting the threshold argument |
@dbrennan44 nilearn/nilearn/plotting/html_stat_map.py Lines 535 to 536 in 78b0986
In addition, if you don't explicitely set nilearn/nilearn/plotting/html_stat_map.py Lines 444 to 447 in 78b0986
By setting I'm not sure to understand why the threshold would change this though. It is only used to select the cut slices here: nilearn/nilearn/plotting/html_stat_map.py Line 537 in 78b0986
|
|
view_img
always masks bg_img
with MNI mask
During core dev meeting yesterday it was decided that:
|
when plotting with view_img, it appears the bg image is being "masked" by a different brain (perhaps MNI?)
problem persists even when using same image as bg_image and plotted img
The text was updated successfully, but these errors were encountered: