-
Notifications
You must be signed in to change notification settings - Fork 652
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
nibabel.filebasedimages.ImageFileError #5
Comments
Please give details about your input file format. I am also using BRATS but there are images of extension |
Hey @build2create, I just uploaded preprocess.py with my preprocessing methods in it.
You need to have N4BiasFieldCorrection from ANTs installed in order to make it work. As a general note, the '.mha' files can be converted using SimpleITK. |
@build2create I am using background to denote the image pixels that are not a part of the brain. The foreground is the opposite of the background. I save these images because the original files have a lot of extra padding around them. Reducing this extra padding makes running them through CNN slightly less memory intensive. |
@ellisdg Done. That worked like a charm. Thanks. But now I am getting a new error in line 64 of |
I won't be able to look into it until tomorrow or Monday. If you figure out
what is going wrong before then, could you submit a pull request that fixes
the issue?
…On Apr 8, 2017 12:12 PM, "build2create" ***@***.***> wrote:
@ellisdg <https://github.com/ellisdg> Please reply
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIKZkykS4sbCebC88Uc47EdgRf8TCiKVks5rt7_7gaJpZM4M2sp4>
.
|
@ellisdg Did you figure out the problem? I am still stuck. |
@build2create I believe that issue should be fixed now. |
Thanks a lot it worked! |
I am also using BRATS dataset containing the images in mha format. Will that not work? I saw in your readme that you have used BRATS 2015 dataset. The folders inside my ./data for a particular patient looks something like this
The content inside the folder lloks like this
I even tried to zip the mha file and then give it as input but no help.
I tried this in
normalize.py
background_path = os.path.join(subject_folder, subject_folder.split("/")[-1]+str(".mha.gz"))
Please let me know what is the correct way to give input of images. Also what is foreground and background in your context? I mean we are using 4 modalities T1,T2, T1c and FLAIR and of course ground truth. I cannot understand background or foreground in this context.
PS I am using latest code updated 13 hours ago
The text was updated successfully, but these errors were encountered: