Code Monkey home page Code Monkey logo

dama-lab / multi-atlas-segmentation Goto Github PK

View Code? Open in Web Editor NEW
32.0 3.0 9.0 17.73 MB

Multi Atlas Segmentation and Morphometric analysis toolkit (MASMAT) for mouse brain MRI

Home Page: https://github.com/dancebean/multi-atlas-segmentation/blob/master/README.md

License: MIT License

Shell 90.33% MATLAB 1.40% Python 8.06% Objective-C 0.21%
mouse-brain-mri mri-images segmentation image-processing multi-atlas label-propagation label-fusion image-segmentation parcellation

multi-atlas-segmentation's People

Contributors

da-ma-dm avatar dancebean 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

Watchers

 avatar  avatar  avatar

multi-atlas-segmentation's Issues

mas_label_volume

I have an issue with running mas_label_volume function, for example,

mas_label_volume -l /Users/ned/Downloads/multi-atlas-segmentation-master/test1/input/targetlist.txt -s /Users/ned/Downloads/multi-atlas-segmentation-master/test1/output/label -v vol_csv -t label -a FVB_NCrl_in_vivo

This results following error. (not sure why).

Target list: input/targetlist.txt
Result directory: output/label
Volume file: vol_csv
Segmentation type: label
Atlas name: FVB_NCrl_in_vivo
[mas_label_volume] begin volume extraction...

Err: Parameter -Vl unknown or incomplete

Any Suggestions, please?

`mas_masking_batch` fails to find headers

Describe the bug
mas_masking_batch fails to find the header of the *.affine.nii.gz files. The files can be visualized correctly in fsleyes and I can access the header when opened in python using nibabel.

I did not encounter this problem when testing the same script on one of the atlas files, but it fails on my MRI volumes. While I understand there might be something wrong with my data, it would be very helpful if the script would raise a more informative error and tell me what the problem is. I tried tweaking the header, even replacing it entirely with the header from one of the template volumes (while keeping dim, pixdim, srow_* and affine matrix data), with no changes.


 [mas_masking_batch] run label fusion locally for target: O.nii.gz ... 

target_dir=/media/Olowoo/theoldstuff/DMM
target_id=O.nii.gz
result_dir=/media/Olowoo/theoldstuff/test
atlas_dir=/media/Olowoo/validation/atlases
atlas_name=atlases
[mas_masking_fusion] prepare 4D mask file /media/Olowoo/theoldstuff/test/mask/atlases/O.nii.gz.4D.nii.gz for label fusion ...
** ERROR (nifti_image_read): failed to find header file for '/media/Olowoo/theoldstuff/test/mask/atlases/O.nii.gz.mask.A0.affine.nii.gz'
* Error when reading the input image
[check_image_file] cannot find file (/media/Olowoo/theoldstuff/test/mask/O.nii.gz.mask.atlases.nii.gz)

 [mas_masking_fusion] fuse mapped mask from atlases for O.nii.gz
** ERROR (nifti_image_read): failed to find header file for '/media/Olowoo/theoldstuff/test/mask/atlases/O.nii.gz.4D.nii.gz'
* Error when reading the Label image: /media/Olowoo/theoldstuff/test/mask/atlases/O.nii.gz.4D.nii.gz
[check_image_file] cannot find file (/media/Olowoo/theoldstuff/test/mask/O.nii.gz.mask.atlases.nii.gz)
[mas_masking_fusion] (O.nii.gz) failed to generate mask file: /media/Olowoo/theoldstuff/test/mask/O.nii.gz.mask.atlases.nii.gz, skip quickcheck ...

Desktop (please complete the following information):

  • OS: Linux Mint 19.3 Cinnamon

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.