{ "info": { "author": "Alexander Laurence", "author_email": "alexander.adamlaurence@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# NIfTI Image Converter (nii2png) for Python and Matlab\nRejoice OpenCV users, a lightweight neuroimaging .nii to .png converter that actually works. \n\nNow supports both Python3 and Matlab 2017b!\n\n1. Input 4D fMRI or 3D MRI NIfTI file (i.e. brain.nii)\n2. Rotate orientation of your image\n3. Automatically creates .png files for every single slice in every volume.\n4. Automatically renames your images with their slice and volume name (i.e. brain_t001_z001.png, etc)\n5. Automatically moves all your images into a chosen folder within your working directory.\n\nUnlike other tools out there, this just works.\n\n## Environment\n* Python 3.7 (or Matlab 2017b)\n\n# Matlab Usage\n1. Add your script to your path. And run it simply by typing this and hitting enter:\n```\nnii2png\n```\n2. Select your working directory.\n3. Select your NIfTI image.\n4. Rotate your image if you wish:\n```\n>> Would you like to rotate the orientation? (y/n)\n>> y\n>> OK. By 90\u00b0 180\u00b0 or 270\u00b0? \n>> 90\n```\n5. Let it run.\n6. Your png files are now in the png folder of your working directory.\n\n## Download nii2png for Matlab 2017b\nDownload Latest Build: [Download](https://raw.githubusercontent.com/alexlaurence/NIfTI-Image-Converter/master/nii2png.m)\n\nDownload Stable Release: [Download](https://github.com/alexlaurence/NIfTI-Image-Converter/releases)\n\n# Python Setup\n## Modules \n* scipy\n* shutil\n* os\n* nibabel\n* numpy\n\n## Basic Setup\n\nFor those without Python, Pip or the modules, simply open Terminal and type in the following commands and hit enter.\n\n1. Install Homebrew\n```\n/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n```\n2. Install Python 3\n```\nbrew install python3\n```\n3. Install pip\n```\nsudo easy_install pip\n```\n4. Install plugins\n\n```\npip install scipy\n\npip install shutil\n\npip install os\n\npip install nibabel\n\npip install numpy\n```\n\n## Download nii2png for Python\n\nDownload Latest Build: [Download](https://raw.githubusercontent.com/alexlaurence/NIfTI-Image-Converter/master/nii2png.py)\n\nDownload Stable Release: [Download](https://github.com/alexlaurence/NIfTI-Image-Converter/releases)\n\n## Permissions\n\nOn unix systems, Python scripts can be made executable using the following process:\n\n```\n$ chmod +x nii2png.py\n```\n\nOptional: You can also move `nii2png.py` into your bin directory, and it will be runnable from anywhere.\n\n\n## Python Usage \n\n1. Let's run the file and start converting images! Please ensure that your output folder ends with a slash to avoid errors.\n\n```\n$ python3 nii2png.py -i -o \n```\n\nor\n\n```\n$ python3 nii2png.py --input --ouput \n```\n\nTip: You can drag and drop the file/folder into the terminal window instead of typing the path\n\n2. Rotate the images if you wish\n\n```\n$ Would you like to rotate the orientation? (y/n) y\n$ OK. By 90\u00b0 180\u00b0 or 270\u00b0? 90\n```\n\n### Example\n\nwith change directory command\n\n```\n$ cd ~/images/\n$ python3 nii2png.py -i brain.nii -o png/\n```\n\nwith full paths\n\n```\n$ python3 /users/ernie/images/nii2png.py -i /users/ernie/images/brain.nii -o /users/ernie/images/png/\n```\n\nwith long options\n\n\n```\n$ python3 /users/ernie/images/nii2png.py --input /users/ernie/images/brain.nii --output /users/ernie/images/png/\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/alexlaurence/NIfTI-Image-Converter", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nii2png", "package_url": "https://pypi.org/project/nii2png/", "platform": "", "project_url": "https://pypi.org/project/nii2png/", "project_urls": { "Homepage": "https://github.com/alexlaurence/NIfTI-Image-Converter" }, "release_url": "https://pypi.org/project/nii2png/0.3.0/", "requires_dist": [ "scipy", "shutil", "nibabel", "numpy" ], "requires_python": "", "summary": "A lightweight neuroimaging .nii to .png converter", "version": "0.3.0" }, "last_serial": 5277233, "releases": { "0.2.7": [ { "comment_text": "", "digests": { "md5": "3a627eab99ff378e849fb7514c4cc962", "sha256": "820d0fabd2c5107f880dc4c74829dc3e7893c96a44b5a328a7a1b6f7422f0776" }, "downloads": -1, "filename": "nii2png-0.2.7-py3-none-any.whl", "has_sig": false, "md5_digest": "3a627eab99ff378e849fb7514c4cc962", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3217, "upload_time": "2019-05-13T00:00:55", "url": "https://files.pythonhosted.org/packages/ab/d9/2a0ceaaef6925a442ae4576065f52e0776af40ec81a5b1153a984dce9c0f/nii2png-0.2.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "90faf0cb56c607cdadfe476545df4f3d", "sha256": "2eda76134e594cd7cbc20bc4b465edcb04c9bc33220284cfcb316269011496ba" }, "downloads": -1, "filename": "nii2png-0.2.7.tar.gz", "has_sig": false, "md5_digest": "90faf0cb56c607cdadfe476545df4f3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2616, "upload_time": "2019-05-13T00:00:58", "url": "https://files.pythonhosted.org/packages/a4/5d/9813223a180a5b389cd04836253c3bb58027ff8048fcfa0f86196078af2f/nii2png-0.2.7.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "9adca18d9a33a904d2fb30d7263a18ed", "sha256": "8cc696922d16bca8ba7fd96a10175197346c591b8990607345a285d56811691e" }, "downloads": -1, "filename": "nii2png-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9adca18d9a33a904d2fb30d7263a18ed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7125, "upload_time": "2019-05-16T12:36:58", "url": "https://files.pythonhosted.org/packages/a4/76/e1142e1e3a40a52479c387f663505b7a758559df3d84c09ea4ec5002c5db/nii2png-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ec285c0e2be87cd1859ced3b2aa155f3", "sha256": "8e98011ee859a9db0ab0b2c57c3d4b0ef7919f2c823e45c5303fd304fc097afc" }, "downloads": -1, "filename": "nii2png-0.3.0.tar.gz", "has_sig": false, "md5_digest": "ec285c0e2be87cd1859ced3b2aa155f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4338, "upload_time": "2019-05-16T12:37:00", "url": "https://files.pythonhosted.org/packages/75/ef/f7cef458e3a52ca5ec9043ee83cb3bdfcd5c43e3f29f11a1b6e2b1845e1d/nii2png-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9adca18d9a33a904d2fb30d7263a18ed", "sha256": "8cc696922d16bca8ba7fd96a10175197346c591b8990607345a285d56811691e" }, "downloads": -1, "filename": "nii2png-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9adca18d9a33a904d2fb30d7263a18ed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7125, "upload_time": "2019-05-16T12:36:58", "url": "https://files.pythonhosted.org/packages/a4/76/e1142e1e3a40a52479c387f663505b7a758559df3d84c09ea4ec5002c5db/nii2png-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ec285c0e2be87cd1859ced3b2aa155f3", "sha256": "8e98011ee859a9db0ab0b2c57c3d4b0ef7919f2c823e45c5303fd304fc097afc" }, "downloads": -1, "filename": "nii2png-0.3.0.tar.gz", "has_sig": false, "md5_digest": "ec285c0e2be87cd1859ced3b2aa155f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4338, "upload_time": "2019-05-16T12:37:00", "url": "https://files.pythonhosted.org/packages/75/ef/f7cef458e3a52ca5ec9043ee83cb3bdfcd5c43e3f29f11a1b6e2b1845e1d/nii2png-0.3.0.tar.gz" } ] }