Giter Site home page Giter Site logo

vanandrew / brainextractor Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 4.0 44 KB

A re-implementation of FSL's Brain Extraction Tool in Python

License: MIT License

Python 100.00%
brain-extraction fsl image-processing neuroimaging neuroscience python segmentation skull-stripping

brainextractor's People

Contributors

vanandrew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

brainextractor's Issues

Python stops unexpectedly

$ brainextractor pp01_mp2rage_whole_brain_t1_std_defaced.nii.gz 1.nii.gz
Initializing...
Parameters: bt=0.500000, d1=20.000000, d2=10.000000, rmin=3.330000, rmax=10.000000
tmin: 0.000000, t2: 0.000000, t: 312.700000, t98: 3127.000000, tmax: 3999.000000
Center-of-Mass: [115.63921706 142.84159284 172.89465062]
Head Radius: 161.157240
Median within Head Radius: 1692.000000
Initializing surface...
Brain extractor initialization complete!
Running surface deformation...
Segmentation fault: 11

Need help on using Longitudinal MRI image as input

Hi,

I am working on skull-stripping for brain scan. I have cross-sectional and longitudinal MRI brain scans data. When I use cross-sectional data, the brainextractor shows good result. However, the brainextractor shows bad in longitudinal data.

image image

When I start the brainextractor for longitudinal data, it shows UserWarning: The voxels in this image are non-isotropic! Brain extraction settings may not be valid!. So I view the pixdim in header, I get [-1. 1. 1. 2. 6.002 0. 0. 0. ].

What should I do for the python code when using brainextractor?

Thanks!

Array is too big error

Hello, thank you for a nice implementation. I found some bug/limitation on it.
With some images I am getting error.

[FD]   warnings.warn(
[FD] Traceback (most recent call last):
[FD]   File "/mnt/c/Users/h492884/PycharmProjects/slicer_MER/slicer_plugin/model/Resources/py/bet.py", line 13, in <module>
[FD]     bet.run()
[FD]   File "/home/user/slic_build/python-install/lib/python3.9/site-packages/brainextractor/main.py", line 287, in run
[FD]     self.step_of_deformation(
[FD] ValueError: array is too big; `arr.size * arr.dtype.itemsize` is larger than the maximum possible size.

Problem with running your code

image
Please explain why this error is coming and how to fix it. I am using Google Collab and after installing the brainextractor and cloning your github this error comes

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.