Code Monkey home page Code Monkey logo

nilabels's Introduction

NIPY

Neuroimaging tools for Python.

The aim of NIPY is to produce a platform-independent Python environment for the analysis of functional brain imaging data using an open development model.

In NIPY we aim to:

  1. Provide an open source, mixed language scientific programming environment suitable for rapid development.
  2. Create software components in this environment to make it easy to develop tools for MRI, EEG, PET and other modalities.
  3. Create and maintain a wide base of developers to contribute to this platform.
  4. To maintain and develop this framework as a single, easily installable bundle.

NIPY is the work of many people. We list the main authors in the file AUTHOR in the NIPY distribution, and other contributions in THANKS.

Website

Current information can always be found at the NIPY project website.

Mailing Lists

For questions on how to use nipy or on making code contributions, please see the neuroimaging mailing list:

https://mail.python.org/mailman/listinfo/neuroimaging

Please report bugs at github issues:

https://github.com/nipy/nipy/issues

You can see the list of current proposed changes at:

https://github.com/nipy/nipy/pulls

Code

You can find our sources and single-click downloads:

Tests

To run nipy's tests, you will need to install the pytest Python testing package:

pip install pytest

Then:

pytest nipy

You can run the doctests along with the other tests with:

pip install pytest-doctestplus

Then:

pytest --doctest-plus nipy

Installation

See the latest installation instructions.

License

We use the 3-clause BSD license; the full license is in the file LICENSE in the nipy distribution.

nilabels's People

Contributors

arokem avatar sebastianof avatar wyli avatar

Stargazers

 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  avatar  avatar  avatar

nilabels's Issues

Convert one multi-labeled segmentation file to individual slices '.stl' file

Hi there,

I am performing a vertebrae segmentation task and I've output multiple segmentation.nii.gz files. Each of the segmented niftis files contains different segments (segment 1,2,3...), corresponding different vertebraes labelled in the file.

My question is how to save the individual slices from each segmented nii.gz file using nilabels? Thank you in advance for your time and effort.

Consider refactoring NiLabel class

It's currently part of nilabel.main. Consider making it importable from nilabel directly. You may want to rename it as well, as currently it has the same name as the package itself. Maybe something like App.

Also, this class exposes the underlying "worker" objects, which goes against the rationale of the command design pattern:

Command decouples the object that invokes the operation from the one that knows how to perform it.

For instance to relabel, a call to nil.manipulate.relabel() is necessary, which means the caller needs to know the LabelsManipulate class interface. Instead, the "main" class should provide a relabel() method, which calls LabelsManipulate.relabel() (or any other implementation, should the implementation change in the future).

I would also recommend refraining from using short identifiers like NiL or nil (the second being more "dangerous"). Short identifiers are catchy, however prone to introducing compatibility issues, see for instance one of the problems created by the new async keyword introduced as part of Python 3.7

Standardise README section headers

I like the simplicity of the README file in general. I also like to introductory example. It looks helpful and gives a gist of what nilabel is doing.

I would however suggest using a more standardised layout in terms of the section headers. See for instance the section headers in the NiftyNet README.

Also, one general comment (which applies to bruker2nifti as well): "gift-SURG" should be spelled "GIFT-Surg"

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.