{ "info": { "author": "Filip Kokosinski", "author_email": "filip.kokosinski@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Healthcare Industry", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython" ], "description": "# tomograph - paramterized computer tomography simulator\n\n[![Build Status](https://travis-ci.com/fkokosinski/tomograph.svg?token=KqDQHrZxZ4q79UZ1qZJw&branch=master)](https://travis-ci.com/fkokosinski/tomograph) [![codecov](https://codecov.io/gh/fkokosinski/tomograph/branch/master/graph/badge.svg?token=SogoLYXs8u)](https://codecov.io/gh/fkokosinski/tomograph)\n\n`tomograph` is a parametrized computer tomography simulator, which can be run as\na standalone script or included as a module in your Python programs. It\nimplements both Radon and reverse Radon transforms. It currently models two\ntypes of beam projections: cone and parallel.\n\n## Dependencies\nCurrently `tomograph` requires:\n- Click (`click`)\n- tqdm (`tqdm`)\n- NumPy (`numpy`)\n- Image Processing SciKit (`scikit-image`)\n\nTheir respective required versions can be seen in `requirements.txt` file.\n\n## Installation\nSimply run:\n\n pip install tomograph\n\nTomograph supports Python 3.5, Python 3.6 and Python 3.7.\n\n## Usage\n`tomograph` can be used directly through command-line interface or as a Python\nmodule:\n\n### Commandline\nUsing command-line interface:\n\n tomograph --model cone --detectors 256 --angle 150 --rotations 512 image.jpg\n\nAll command-line arguments can be seen by running:\n\n tomograph --help\n\n### Module\nExample script that does Radon transform using cone beam model:\n\n from skimage.io import imsave\n from tomograph.model import ConeTomograph\n\n # variables\n path = 'image.jpg'\n detectors = 256\n angle = 180\n rotations = 512\n\n # one scan per rotation\n step = 360 / rotations\n\n # perform Radon transform\n tomograph = ConeTomograph(path, detectors, angle)\n sinogram = []\n for i in range(rotations):\n tomograph.rotate(step) # rotate tomograph\n scan = tomograph.scan() # do the scan\n sinogram.append(scan)\n\n imsave('radon.bmp', np.array(sinogram).T)\n\n## Live demonstration\n| Beam lines | Radon transform | reverse Radon transform |\n|-----------------------------|-----------------------------------|---------------------------------------------|\n| ![beam lines](res/scan.gif) | ![radon transform](res/radon.gif) | ![reverse radon transform](res/reverse.gif) |", "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/fkokosinski/tomograph", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "tomograph", "package_url": "https://pypi.org/project/tomograph/", "platform": "", "project_url": "https://pypi.org/project/tomograph/", "project_urls": { "Homepage": "https://github.com/fkokosinski/tomograph" }, "release_url": "https://pypi.org/project/tomograph/0.1/", "requires_dist": null, "requires_python": "", "summary": "Parametrized computer tomography simulator", "version": "0.1" }, "last_serial": 5009361, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "406f9479a698a471eed4abf976c0c3f7", "sha256": "d808058a4da236488a398d7a6fc36b34e5cfe54e7960057cb9a9c66bccd09393" }, "downloads": -1, "filename": "tomograph-0.1.tar.gz", "has_sig": false, "md5_digest": "406f9479a698a471eed4abf976c0c3f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4737, "upload_time": "2019-03-31T13:00:07", "url": "https://files.pythonhosted.org/packages/62/89/f2ffb04a53905af2da2d9dd198d225f32f4f9fdf6f5b5a66329d1073ef2c/tomograph-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "406f9479a698a471eed4abf976c0c3f7", "sha256": "d808058a4da236488a398d7a6fc36b34e5cfe54e7960057cb9a9c66bccd09393" }, "downloads": -1, "filename": "tomograph-0.1.tar.gz", "has_sig": false, "md5_digest": "406f9479a698a471eed4abf976c0c3f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4737, "upload_time": "2019-03-31T13:00:07", "url": "https://files.pythonhosted.org/packages/62/89/f2ffb04a53905af2da2d9dd198d225f32f4f9fdf6f5b5a66329d1073ef2c/tomograph-0.1.tar.gz" } ] }