{ "info": { "author": "Keji Li", "author_email": "mail@keji.li", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Programming Language :: Python :: 3" ], "description": "TiffReader, convenience wrapper for libtiff\n===========================================\n\nWhy?\n----\n\nCompared to PIL and some other tiff related projects, this package is\nmore for scientific imaging.\n\nFeatures exposed from libtiff:\n\n1. responds to\n\n 1. pixel bit depth\n 2. number of channels\n 3. compression scheme\n\n2. sequential and random access to frames in multi-frame tiff\n3. query length of multi-frame tiff\n\nOpen\n----\n\n.. code:: python\n\n from tiffreader import TiffReader\n tif = TiffReader.open(\"file_path.tif\")\n\nRandom Access\n-------------\n\n.. code:: python\n\n tif.seek(10)\n frame = tif.read_current() # gives a 2D numpy array\n\nis equivalent to\n\n.. code:: python\n\n frame = tif[10]\n\nSequential Access\n-----------------\n\nexample for an average image of the 10th to 20th frames:\n\n.. code:: python\n\n tif.seek(10)\n result = np.zeros(tif.shape, dtype=np.uint64)\n for frame in zip(tif, range(10)):\n result += frame\n result /= 10\n\nAdditionally\n------------\n\n.. code:: python\n\n from tiffreader import save_tiff\n array = np.array([[1, 2, 3, 4], [5, 6, 7, 8]], dtype=np.uint8)\n save_tiff(array, \"tif_path.tif\")\n\n.. code:: python\n\n tif.length # length of multi-frame tiff stack\n tif.shape # shape of one frame\n tiffinfo(\"tif_path.tif\", [\"width\", \"height\"]) # wraps tiffinfo to query for additional tags", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/Palpatineli/tiffreader/archive/0.1.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Palpatineli/tiffreader", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "tiffreader", "package_url": "https://pypi.org/project/tiffreader/", "platform": "", "project_url": "https://pypi.org/project/tiffreader/", "project_urls": { "Download": "https://github.com/Palpatineli/tiffreader/archive/0.1.1.tar.gz", "Homepage": "https://github.com/Palpatineli/tiffreader" }, "release_url": "https://pypi.org/project/tiffreader/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "convenience wrapper for libtiff", "version": "0.1.1" }, "last_serial": 4686221, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "d818c9ee31b8e5b62ff8a495023be1ad", "sha256": "742da4aabfeab2c4515f1abb442001f17d80bae3863ab9f2adedb7eee377ef14" }, "downloads": -1, "filename": "tiffreader-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d818c9ee31b8e5b62ff8a495023be1ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3728, "upload_time": "2019-01-11T16:38:11", "url": "https://files.pythonhosted.org/packages/9a/6c/61a7c528ccb9908a16d19171f0f34088e14c873811a37ab78f3c00686241/tiffreader-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d818c9ee31b8e5b62ff8a495023be1ad", "sha256": "742da4aabfeab2c4515f1abb442001f17d80bae3863ab9f2adedb7eee377ef14" }, "downloads": -1, "filename": "tiffreader-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d818c9ee31b8e5b62ff8a495023be1ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3728, "upload_time": "2019-01-11T16:38:11", "url": "https://files.pythonhosted.org/packages/9a/6c/61a7c528ccb9908a16d19171f0f34088e14c873811a37ab78f3c00686241/tiffreader-0.1.1.tar.gz" } ] }