Coder Social home page Coder Social logo

Comments (3)

m-reuter avatar m-reuter commented on July 29, 2024

You would first need to convert the .img file to a nifti or mgz file. One way to do this is using mri_convert (from FreeSurfer, it is also part of our container, so you could change the --entrypoint or run interactively with bash).
mri_convert input.img output.mgz

from fastsurfer.

FahimFBA avatar FahimFBA commented on July 29, 2024

You would first need to convert the .img file to a nifti or mgz file. One way to do this is using mri_convert (from FreeSurfer, it is also part of our container, so you could change the --entrypoint or run interactively with bash). mri_convert input.img output.mgz

Thank you. It is kind of awkward as it didn't work earlier.

I found the issue that caused the error earlier. You must need to have the corresponding .hdr (Header) file to convert them using FreeSurfer. Earlier, I reorganized the dataset, and in the process, I deleted the header files without having any idea of their importance. Therefore, FreeSurfer, FSL, nibabel, simpleitk also failed to convert them.

If you have the corresponding .hdr files, then FreeSurfer can convert them into .mgz or .nii perfectly.

image

However, I managed to batch-process them nicely using Brainder.. Then I can easily incorporate them into FastSurfer.

I am also closing this issue keeping the comments as others might find them useful.

from fastsurfer.

dkuegler avatar dkuegler commented on July 29, 2024

Technically, Fastsurfer should be able to use any file format that is compatible with nibabel. We just always use mgz and nifty, so our official support is only for those two.

from fastsurfer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.