large-image


Namelarge-image JSON
Version 1.30.5 PyPI version JSON
download
home_pagehttps://github.com/girder/large_image
SummaryPython modules to work with large, multiresolution images.
upload_time2024-12-12 14:38:23
maintainerNone
docs_urlNone
authorKitware, Inc.
requires_python>=3.8
licenseApache Software License 2.0
keywords large_image
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Large Image
===========

|build-status| |codecov-io| |license-badge| |doi-badge| |pypi-badge|

.. |build-status| image:: https://img.shields.io/circleci/build/github/girder/large_image.svg
    :target: https://circleci.com/gh/girder/large_image
    :alt: Build Status

.. |license-badge| image:: https://img.shields.io/badge/license-Apache%202-blue.svg
    :target: https://raw.githubusercontent.com/girder/large_image/master/LICENSE
    :alt: License

.. |codecov-io| image:: https://img.shields.io/codecov/c/github/girder/large_image.svg
   :target: https://codecov.io/github/girder/large_image?branch=master
   :alt: codecov.io

.. |doi-badge| image:: https://img.shields.io/badge/DOI-10.5281%2Fzenodo.4723355-blue.svg
   :target: https://zenodo.org/badge/latestdoi/45569214

.. |pypi-badge| image:: https://img.shields.io/pypi/v/large-image.svg?logo=python&logoColor=white
   :target: https://pypi.org/project/large-image/

*Python modules to work with large, multiresolution images.*

Large Image is developed and maintained by the Data & Analytics group at `Kitware, Inc. <https://kitware.com>`_ for processing large geospatial and medical images. This provides the backbone for several of our image analysis platforms including `Resonant GeoData <https://github.com/ResonantGeoData/ResonantGeoData>`_, `HistomicsUI <https://github.com/DigitalSlideArchive/HistomicsUI>`_, and `the Digital Slide Archive <https://digitalslidearchive.github.io/digital_slide_archive/>`_.


Highlights
----------

- Tile serving made easy
- Supports a wide variety of geospatial and medical image formats
- Convert to tiled Cloud Optimized (Geo)Tiffs (also known as pyramidal tiffs)
- Python methods for retiling or accessing regions of images efficiently
- Options for restyling tiles, such as dynamically applying color and band transform


Installation
------------

In addition to installing the base ``large-image`` package, you'll need at least one tile source which corresponds to your target file format(s) (a ``large-image-source-xxx`` package).   You can install everything from the main project with one of these commands:

Pip
~~~

Install common tile sources on linux, OSX, or Windows::

    pip install large-image[common]

Install all tile sources on linux::

    pip install large-image[all] --find-links https://girder.github.io/large_image_wheels

When using large-image with an instance of `Girder`_, install all tile sources and all Girder plugins on linux::

    pip install large-image[all] girder-large-image-annotation[tasks] --find-links https://girder.github.io/large_image_wheels


Conda
~~~~~

Conda makes dependency management a bit easier if not on Linux. The base module, converter module, and two of the source modules are available on conda-forge. You can install the following::

    conda install -c conda-forge large-image
    conda install -c conda-forge large-image-source-gdal
    conda install -c conda-forge large-image-source-tiff
    conda install -c conda-forge large-image-converter


Docker Image
~~~~~~~~~~~~

Included in this repository’s packages is a pre-built Docker image that has all
of the dependencies to read any supported image format.

This is particularly useful if you do not want to install some of the heavier
dependencies like GDAL on your system or want a dedicated and isolated
environment for working with large images.

To use, pull the image and run it by mounting a local volume where the
imagery is stored::

    docker pull ghcr.io/girder/large_image:latest
    docker run -v /path/to/images:/opt/images ghcr.io/girder/large_image:latest


Modules
-------

Large Image consists of several Python modules designed to work together.  These include:

- ``large-image``: The core module.

  You can specify extras_require of the name of any tile source included with this repository.  For instance, you can do ``pip install large-image[tiff]``.  There are additional extras_require options:

  - ``sources``: all of the tile sources in the repository, a specific source name (e.g., ``tiff``)

  - ``memcached``: use memcached for tile caching

  - ``converter``: include the converter module

  - ``colormaps``: use matplotlib for named color palettes used in styles

  - ``tiledoutput``: support for emitting large regions as tiled tiffs

  - ``performance``: include optional modules that can improve performance

  - ``common``: all of the tile sources and above packages that will install directly from pypi without other external libraries on linux, OSX, and Windows.

  - ``all``: for all of the above

- ``large-image-converter``: A utility for using pyvips and other libraries to convert images into pyramidal tiff files that can be read efficiently by large_image.
  You can specify extras_require of ``jp2k`` to include modules to allow output to JPEG2000 compression, ``sources`` to include all sources, ``stats`` to include modules to allow computing compression noise statistics, ``geospatial`` to include support for converting geospatial sources, or ``all`` for all of the optional extras_require.

- Tile sources:

  - ``large-image-source-bioformats``: A tile source for reading any file handled by the Java Bioformats library.

  - ``large-image-source-deepzoom``: A tile source for reading Deepzoom tiles.

  - ``large-image-source-dicom``: A tile source for reading DICOM Whole Slide Images (WSI).

  - ``large-image-source-gdal``: A tile source for reading geotiff files via GDAL.  This handles source data with more complex transforms than the mapnik tile source.

  - ``large-image-source-mapnik``: A tile source for reading geotiff and netcdf files via Mapnik and GDAL.  This handles more vector issues than the gdal tile source.

  - ``large-image-source-multi``: A tile source for compositing other tile sources into a single multi-frame source.

  - ``large-image-source-nd2``: A tile source for reading nd2 (NIS Element) images.

  - ``large-image-source-ometiff``: A tile source using the tiff library that can handle most multi-frame OMETiff files that are compliant with the specification.

  - ``large-image-source-openjpeg``: A tile source using the Glymur library to read jp2 (JPEG 2000) files.

  - ``large-image-source-openslide``: A tile source using the OpenSlide library.  This works with svs, ndpi, Mirax, tiff, vms, and other file formats.

  - ``large-image-source-pil``: A tile source for small images via the Python Imaging Library (Pillow). By default, the maximum size is 4096, but the maximum size can be configured.

  - ``large-image-source-tiff``: A tile source for reading pyramidal tiff files in common compression formats.

  - ``large-image-source-tifffile``: A tile source using the tifffile library that can handle a wide variety of tiff-like files.

  - ``large-image-source-vips``: A tile source for reading any files handled by libvips.  This also can be used for writing tiled images from numpy arrays (up to 4 dimensions).

  - ``large-image-source-zarr``: A tile source using the zarr library that can handle OME-Zarr (OME-NGFF) files as well as some other zarr files. This can also be used for writing N-dimensional tiled images from numpy arrays. Written images can be saved as any supported format.

  - ``large-image-source-test``: A tile source that generates test tiles, including a simple fractal pattern.  Useful for testing extreme zoom levels.

  - ``large-image-source-dummy``: A tile source that does nothing. This is an absolutely minimal implementation of a tile source used for testing. If you want to create a custom tile source, start with this implementation.


As a `Girder`_ plugin, ``large-image`` adds end points to access all of the image formats it can read both to get metadata and to act as a tile server.
In the Girder UI, ``large-image`` shows images on item pages, and can show thumbnails in item lists when browsing folders.
There is also cache management to balance memory use and speed of response in Girder when ``large-image`` is used as a tile server.

Most tile sources can be used with Girder Large Image.  You can specify an extras_require of ``girder`` to install the following packages:

  - ``girder-large-image``: Large Image as a Girder 3.x plugin.
    You can install ``large-image[tasks]`` to install a Girder Worker task that can convert otherwise unreadable images to pyramidal tiff files.

  - ``girder-large-image-annotation``: Adds models to the Girder database for supporting annotating large images.  These annotations can be rendered on images. Annotations can include polygons, points, image overlays, and other types. Each annotation can have a label and metadata.

  - ``large-image-tasks``: A utility for running the converter via Girder Worker.
    You can specify an extras_require of ``girder`` to include modules needed to work with the Girder remote worker or ``worker`` to include modules needed on the remote side of the Girder remote worker.  If neither is specified, some conversion tasks can be run using Girder local jobs.



.. _Girder: https://girder.readthedocs.io/en/latest/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/girder/large_image",
    "name": "large-image",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "large_image",
    "author": "Kitware, Inc.",
    "author_email": "kitware@kitware.com",
    "download_url": "https://files.pythonhosted.org/packages/55/13/26ff91b0945d3f416730a2b8c0d8c3babbe9b18b3d9aabcc8723b93cdfff/large_image-1.30.5.tar.gz",
    "platform": null,
    "description": "Large Image\n===========\n\n|build-status| |codecov-io| |license-badge| |doi-badge| |pypi-badge|\n\n.. |build-status| image:: https://img.shields.io/circleci/build/github/girder/large_image.svg\n    :target: https://circleci.com/gh/girder/large_image\n    :alt: Build Status\n\n.. |license-badge| image:: https://img.shields.io/badge/license-Apache%202-blue.svg\n    :target: https://raw.githubusercontent.com/girder/large_image/master/LICENSE\n    :alt: License\n\n.. |codecov-io| image:: https://img.shields.io/codecov/c/github/girder/large_image.svg\n   :target: https://codecov.io/github/girder/large_image?branch=master\n   :alt: codecov.io\n\n.. |doi-badge| image:: https://img.shields.io/badge/DOI-10.5281%2Fzenodo.4723355-blue.svg\n   :target: https://zenodo.org/badge/latestdoi/45569214\n\n.. |pypi-badge| image:: https://img.shields.io/pypi/v/large-image.svg?logo=python&logoColor=white\n   :target: https://pypi.org/project/large-image/\n\n*Python modules to work with large, multiresolution images.*\n\nLarge Image is developed and maintained by the Data & Analytics group at `Kitware, Inc. <https://kitware.com>`_ for processing large geospatial and medical images. This provides the backbone for several of our image analysis platforms including `Resonant GeoData <https://github.com/ResonantGeoData/ResonantGeoData>`_, `HistomicsUI <https://github.com/DigitalSlideArchive/HistomicsUI>`_, and `the Digital Slide Archive <https://digitalslidearchive.github.io/digital_slide_archive/>`_.\n\n\nHighlights\n----------\n\n- Tile serving made easy\n- Supports a wide variety of geospatial and medical image formats\n- Convert to tiled Cloud Optimized (Geo)Tiffs (also known as pyramidal tiffs)\n- Python methods for retiling or accessing regions of images efficiently\n- Options for restyling tiles, such as dynamically applying color and band transform\n\n\nInstallation\n------------\n\nIn addition to installing the base ``large-image`` package, you'll need at least one tile source which corresponds to your target file format(s) (a ``large-image-source-xxx`` package).   You can install everything from the main project with one of these commands:\n\nPip\n~~~\n\nInstall common tile sources on linux, OSX, or Windows::\n\n    pip install large-image[common]\n\nInstall all tile sources on linux::\n\n    pip install large-image[all] --find-links https://girder.github.io/large_image_wheels\n\nWhen using large-image with an instance of `Girder`_, install all tile sources and all Girder plugins on linux::\n\n    pip install large-image[all] girder-large-image-annotation[tasks] --find-links https://girder.github.io/large_image_wheels\n\n\nConda\n~~~~~\n\nConda makes dependency management a bit easier if not on Linux. The base module, converter module, and two of the source modules are available on conda-forge. You can install the following::\n\n    conda install -c conda-forge large-image\n    conda install -c conda-forge large-image-source-gdal\n    conda install -c conda-forge large-image-source-tiff\n    conda install -c conda-forge large-image-converter\n\n\nDocker Image\n~~~~~~~~~~~~\n\nIncluded in this repository\u2019s packages is a pre-built Docker image that has all\nof the dependencies to read any supported image format.\n\nThis is particularly useful if you do not want to install some of the heavier\ndependencies like GDAL on your system or want a dedicated and isolated\nenvironment for working with large images.\n\nTo use, pull the image and run it by mounting a local volume where the\nimagery is stored::\n\n    docker pull ghcr.io/girder/large_image:latest\n    docker run -v /path/to/images:/opt/images ghcr.io/girder/large_image:latest\n\n\nModules\n-------\n\nLarge Image consists of several Python modules designed to work together.  These include:\n\n- ``large-image``: The core module.\n\n  You can specify extras_require of the name of any tile source included with this repository.  For instance, you can do ``pip install large-image[tiff]``.  There are additional extras_require options:\n\n  - ``sources``: all of the tile sources in the repository, a specific source name (e.g., ``tiff``)\n\n  - ``memcached``: use memcached for tile caching\n\n  - ``converter``: include the converter module\n\n  - ``colormaps``: use matplotlib for named color palettes used in styles\n\n  - ``tiledoutput``: support for emitting large regions as tiled tiffs\n\n  - ``performance``: include optional modules that can improve performance\n\n  - ``common``: all of the tile sources and above packages that will install directly from pypi without other external libraries on linux, OSX, and Windows.\n\n  - ``all``: for all of the above\n\n- ``large-image-converter``: A utility for using pyvips and other libraries to convert images into pyramidal tiff files that can be read efficiently by large_image.\n  You can specify extras_require of ``jp2k`` to include modules to allow output to JPEG2000 compression, ``sources`` to include all sources, ``stats`` to include modules to allow computing compression noise statistics, ``geospatial`` to include support for converting geospatial sources, or ``all`` for all of the optional extras_require.\n\n- Tile sources:\n\n  - ``large-image-source-bioformats``: A tile source for reading any file handled by the Java Bioformats library.\n\n  - ``large-image-source-deepzoom``: A tile source for reading Deepzoom tiles.\n\n  - ``large-image-source-dicom``: A tile source for reading DICOM Whole Slide Images (WSI).\n\n  - ``large-image-source-gdal``: A tile source for reading geotiff files via GDAL.  This handles source data with more complex transforms than the mapnik tile source.\n\n  - ``large-image-source-mapnik``: A tile source for reading geotiff and netcdf files via Mapnik and GDAL.  This handles more vector issues than the gdal tile source.\n\n  - ``large-image-source-multi``: A tile source for compositing other tile sources into a single multi-frame source.\n\n  - ``large-image-source-nd2``: A tile source for reading nd2 (NIS Element) images.\n\n  - ``large-image-source-ometiff``: A tile source using the tiff library that can handle most multi-frame OMETiff files that are compliant with the specification.\n\n  - ``large-image-source-openjpeg``: A tile source using the Glymur library to read jp2 (JPEG 2000) files.\n\n  - ``large-image-source-openslide``: A tile source using the OpenSlide library.  This works with svs, ndpi, Mirax, tiff, vms, and other file formats.\n\n  - ``large-image-source-pil``: A tile source for small images via the Python Imaging Library (Pillow). By default, the maximum size is 4096, but the maximum size can be configured.\n\n  - ``large-image-source-tiff``: A tile source for reading pyramidal tiff files in common compression formats.\n\n  - ``large-image-source-tifffile``: A tile source using the tifffile library that can handle a wide variety of tiff-like files.\n\n  - ``large-image-source-vips``: A tile source for reading any files handled by libvips.  This also can be used for writing tiled images from numpy arrays (up to 4 dimensions).\n\n  - ``large-image-source-zarr``: A tile source using the zarr library that can handle OME-Zarr (OME-NGFF) files as well as some other zarr files. This can also be used for writing N-dimensional tiled images from numpy arrays. Written images can be saved as any supported format.\n\n  - ``large-image-source-test``: A tile source that generates test tiles, including a simple fractal pattern.  Useful for testing extreme zoom levels.\n\n  - ``large-image-source-dummy``: A tile source that does nothing. This is an absolutely minimal implementation of a tile source used for testing. If you want to create a custom tile source, start with this implementation.\n\n\nAs a `Girder`_ plugin, ``large-image`` adds end points to access all of the image formats it can read both to get metadata and to act as a tile server.\nIn the Girder UI, ``large-image`` shows images on item pages, and can show thumbnails in item lists when browsing folders.\nThere is also cache management to balance memory use and speed of response in Girder when ``large-image`` is used as a tile server.\n\nMost tile sources can be used with Girder Large Image.  You can specify an extras_require of ``girder`` to install the following packages:\n\n  - ``girder-large-image``: Large Image as a Girder 3.x plugin.\n    You can install ``large-image[tasks]`` to install a Girder Worker task that can convert otherwise unreadable images to pyramidal tiff files.\n\n  - ``girder-large-image-annotation``: Adds models to the Girder database for supporting annotating large images.  These annotations can be rendered on images. Annotations can include polygons, points, image overlays, and other types. Each annotation can have a label and metadata.\n\n  - ``large-image-tasks``: A utility for running the converter via Girder Worker.\n    You can specify an extras_require of ``girder`` to include modules needed to work with the Girder remote worker or ``worker`` to include modules needed on the remote side of the Girder remote worker.  If neither is specified, some conversion tasks can be run using Girder local jobs.\n\n\n\n.. _Girder: https://girder.readthedocs.io/en/latest/\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Python modules to work with large, multiresolution images.",
    "version": "1.30.5",
    "project_urls": {
        "Homepage": "https://github.com/girder/large_image"
    },
    "split_keywords": [
        "large_image"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b15cf55d20073e28aad66c48045084ae57b19da49576e0c580900ed50dd701f0",
                "md5": "746c4b3c945eb31c1e96fcf36eb44d16",
                "sha256": "c879500c47c780183c2e6285fe4e0c83ce04ce217cac109696c3d5802b2e2119"
            },
            "downloads": -1,
            "filename": "large_image-1.30.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "746c4b3c945eb31c1e96fcf36eb44d16",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 99780,
            "upload_time": "2024-12-12T14:38:18",
            "upload_time_iso_8601": "2024-12-12T14:38:18.941932Z",
            "url": "https://files.pythonhosted.org/packages/b1/5c/f55d20073e28aad66c48045084ae57b19da49576e0c580900ed50dd701f0/large_image-1.30.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "551326ff91b0945d3f416730a2b8c0d8c3babbe9b18b3d9aabcc8723b93cdfff",
                "md5": "4fa023b6488051ba327af3ea032c6645",
                "sha256": "bc7dd4541ee8f5c314e90d377aa3aee61a8262d733596f943510a02a3656e138"
            },
            "downloads": -1,
            "filename": "large_image-1.30.5.tar.gz",
            "has_sig": false,
            "md5_digest": "4fa023b6488051ba327af3ea032c6645",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 260890,
            "upload_time": "2024-12-12T14:38:23",
            "upload_time_iso_8601": "2024-12-12T14:38:23.076114Z",
            "url": "https://files.pythonhosted.org/packages/55/13/26ff91b0945d3f416730a2b8c0d8c3babbe9b18b3d9aabcc8723b93cdfff/large_image-1.30.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-12 14:38:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "girder",
    "github_project": "large_image",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "circle": true,
    "tox": true,
    "lcname": "large-image"
}
        
Elapsed time: 0.90002s