dcimg


Namedcimg JSON
Version 0.6.0.post1 PyPI version JSON
download
home_pagehttps://github.com/lens-biophotonics/dcimg
SummaryPython module to read Hamamatsu DCIMG files
upload_time2020-12-12 20:23:41
maintainer
docs_urlNone
authorGiacomo Mazzamuto
requires_python
licenseMIT
keywords dcimg image files hamamatsu
VCS
bugtrack_url
requirements numpy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # dcimg

This module provides the `DCIMGFile` class for accessing Hamamatsu DCIMG
files.

## Installation
```bash
pip install dcimg
```

## Documentation
The `DCIMGFile` class provides an interface for reading 3D Hamamatsu DCIMG
files.

Usage is pretty straightforward. First of all, create a `DCIMGFile` object:

```python
>>> my_file = DCIMGFile('input_file.dcimg')
>>> my_file
    <DCIMGFile shape=2450x2048x2048 dtype=<class 'numpy.uint16'> file_name=input_file.dcimg>
```
Image data can then be accessed using NumPy's basic indexing:

```python
>>> my_file[-10, :5, :5]
array([[101, 104, 100,  99,  89],
       [103, 102, 103,  99, 102],
       [101, 104,  99, 108,  98],
       [102, 111,  99, 111,  95],
       [103,  98,  99, 104, 106]], dtype=uint16)
```

Other convenience methods for accessing image data are: `zslice`, `zslice_idx`,
`frame` and `whole`.

`DCIMGFile` supports context managers:
```python
with DCIMGFile('input_file.dcimg') as f:
     a = f[800, ...]
```

For further details refer to:
https://lens-biophotonics.github.io/dcimg/



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lens-biophotonics/dcimg",
    "name": "dcimg",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "dcimg image files hamamatsu",
    "author": "Giacomo Mazzamuto",
    "author_email": "mazzamuto@lens.unifi.it",
    "download_url": "https://files.pythonhosted.org/packages/fc/77/be95224f25c8187764dc70520c2f6ad1b8650d4f5ea80aaa16d43e8763db/dcimg-0.6.0.post1.tar.gz",
    "platform": "",
    "description": "# dcimg\n\nThis module provides the `DCIMGFile` class for accessing Hamamatsu DCIMG\nfiles.\n\n## Installation\n```bash\npip install dcimg\n```\n\n## Documentation\nThe `DCIMGFile` class provides an interface for reading 3D Hamamatsu DCIMG\nfiles.\n\nUsage is pretty straightforward. First of all, create a `DCIMGFile` object:\n\n```python\n>>> my_file = DCIMGFile('input_file.dcimg')\n>>> my_file\n    <DCIMGFile shape=2450x2048x2048 dtype=<class 'numpy.uint16'> file_name=input_file.dcimg>\n```\nImage data can then be accessed using NumPy's basic indexing:\n\n```python\n>>> my_file[-10, :5, :5]\narray([[101, 104, 100,  99,  89],\n       [103, 102, 103,  99, 102],\n       [101, 104,  99, 108,  98],\n       [102, 111,  99, 111,  95],\n       [103,  98,  99, 104, 106]], dtype=uint16)\n```\n\nOther convenience methods for accessing image data are: `zslice`, `zslice_idx`,\n`frame` and `whole`.\n\n`DCIMGFile` supports context managers:\n```python\nwith DCIMGFile('input_file.dcimg') as f:\n     a = f[800, ...]\n```\n\nFor further details refer to:\nhttps://lens-biophotonics.github.io/dcimg/\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python module to read Hamamatsu DCIMG files",
    "version": "0.6.0.post1",
    "project_urls": {
        "Homepage": "https://github.com/lens-biophotonics/dcimg"
    },
    "split_keywords": [
        "dcimg",
        "image",
        "files",
        "hamamatsu"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b4e5a1ac11815ec15800a1a44e3387d2212a47a0b42901cca6524a08511a1610",
                "md5": "93c07c9ebcf37ee653d4b49559dcd07d",
                "sha256": "835fd033901df8c2c03cc1bc44c88c6fe08697c7d730c048094f68f9a104f498"
            },
            "downloads": -1,
            "filename": "dcimg-0.6.0.post1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "93c07c9ebcf37ee653d4b49559dcd07d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8335,
            "upload_time": "2020-12-12T20:23:40",
            "upload_time_iso_8601": "2020-12-12T20:23:40.492360Z",
            "url": "https://files.pythonhosted.org/packages/b4/e5/a1ac11815ec15800a1a44e3387d2212a47a0b42901cca6524a08511a1610/dcimg-0.6.0.post1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc77be95224f25c8187764dc70520c2f6ad1b8650d4f5ea80aaa16d43e8763db",
                "md5": "5fb295fa477aa39617b3117936d5feab",
                "sha256": "10274111137e0473e4dab6f723a21a33164f50a0a8ac0129ba8229ff98daa2d9"
            },
            "downloads": -1,
            "filename": "dcimg-0.6.0.post1.tar.gz",
            "has_sig": false,
            "md5_digest": "5fb295fa477aa39617b3117936d5feab",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7877,
            "upload_time": "2020-12-12T20:23:41",
            "upload_time_iso_8601": "2020-12-12T20:23:41.523366Z",
            "url": "https://files.pythonhosted.org/packages/fc/77/be95224f25c8187764dc70520c2f6ad1b8650d4f5ea80aaa16d43e8763db/dcimg-0.6.0.post1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-12-12 20:23:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lens-biophotonics",
    "github_project": "dcimg",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "numpy",
            "specs": [
                [
                    "==",
                    "1.19.4"
                ]
            ]
        }
    ],
    "lcname": "dcimg"
}
        
Elapsed time: 0.18756s