{"id":38547754,"url":"https://github.com/mikehugheskent/pyholoscope","last_synced_at":"2026-04-08T10:00:43.095Z","repository":{"id":110171568,"uuid":"382591728","full_name":"MikeHughesKent/PyHoloscope","owner":"MikeHughesKent","description":"Optimised python package for digital holographic microscopy, both inline and off-axis, with GPU support.","archived":false,"fork":false,"pushed_at":"2026-03-23T14:03:34.000Z","size":96126,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-24T04:26:11.170Z","etag":null,"topics":["gpu","holography","imaging","inline","microscopy","off-axis","optics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MikeHughesKent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-07-03T10:52:50.000Z","updated_at":"2026-03-23T14:00:50.000Z","dependencies_parsed_at":"2023-12-13T10:42:09.208Z","dependency_job_id":"d48bf455-7a23-46e5-8160-86284677dd21","html_url":"https://github.com/MikeHughesKent/PyHoloscope","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/MikeHughesKent/PyHoloscope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeHughesKent%2FPyHoloscope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeHughesKent%2FPyHoloscope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeHughesKent%2FPyHoloscope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeHughesKent%2FPyHoloscope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MikeHughesKent","download_url":"https://codeload.github.com/MikeHughesKent/PyHoloscope/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeHughesKent%2FPyHoloscope/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31549900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpu","holography","imaging","inline","microscopy","off-axis","optics"],"created_at":"2026-01-17T07:23:15.747Z","updated_at":"2026-04-08T10:00:43.087Z","avatar_url":"https://github.com/MikeHughesKent.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tests](https://github.com/MikeHughesKent/PyHoloscope/actions/workflows/tests.yml/badge.svg)](https://github.com/MikeHughesKent/PyHoloscope/actions/workflows/tests.yml)\n![Documentation Status](https://app.readthedocs.org/projects/pyholoscope/badge/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n![PyHoloscope Logo](/res/pyholoscope_logo_.png)\n# PyHoloscope: Fast Holographic Microscopy for Python\n\nPyHoloscope is a Python package for holographic microscopy, providing performant reconstruction of inline and off-axis holograms, as well as autofocus and phase visualisation.\n\nPyHoloscope is designed to be:\n* Fast (for Python) - optimised for CPU using Numpy, Scipy and Numba, with GPU support via CuPy\n* Easy to Use - a simple object-oriented API gives high performance without low-level tweaks\n* Suitable for Live Imaging - can be used as the back-end of holographic microscopy GUIs as well as for offline processing\n\nFull documentation is on [Read the docs](https://pyholoscope.readthedocs.io/en/latest/index.html). \n\n## Installation\n\n```\npip install pyholoscope\n```\n\n\n## Minimal Example\nTo numerically refocus an inline hologram:\n```\nimport pyholoscope as pyh\nhologram = pyh.load_image(holoFile)\nholo = pyh.Holo(\n    mode=pyh.INLINE,  # For inline holography\n    wavelength=630e-9,  # Light wavelength, m\n    pixel_size=1e-6,  # Hologram physical pixel size, m\n    depth=0.0130,  # Distance to refocus, m\n)\nrecon = holo.process(hologram)\n```\n\n## Live Demos and Examples\nYou can try PyHoloscope in your browser with these tutorials hosted on Binder:\n\n* Tutorial 01: Inline Holography [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/MikeHughesKent/PyHoloscope/HEAD?urlpath=%2Fdoc%2Ftree%2Fnotebooks%2Fnotebook01_inline_holography.ipynb)\n      \n* Tutorial 02: Off-Axis Holography [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/MikeHughesKent/PyHoloscope/HEAD?urlpath=%2Fdoc%2Ftree%2Fnotebooks%2Fnotebook02_off_axis_holography.ipynb)\n\n* Tutorial 03: Off-Axis Holography with Refocusing [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/MikeHughesKent/PyHoloscope/HEAD?urlpath=%2Fdoc%2Ftree%2Fnotebooks%2Fnotebook03_off_axis_holography_refocus.ipynb)\n\n* Tutorial 04: Auto-focusing [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/MikeHughesKent/PyHoloscope/HEAD?urlpath=%2Fdoc%2Ftree%2Fnotebooks%2Fnotebook04_auto_focus.ipynb)\n\nThere are more example scripts in the [examples folder](https://github.com/MikeHughesKent/PyHoloscope/tree/main/examples).\n\n## Contributions\nContributions to the package (new features, tests or documentation) are very welcome, please see the roadmap below and post in the discussion if you are working on something, or [get in touch](mailto:m.r.hughes@kent.ac.uk).\n\nDevelopment is co-ordinated by [Mike Hughes](https://research.kent.ac.uk/applied-optics/hughes/)' lab in the \n[Applied Optics Group](https://research.kent.ac.uk/applied-optics), Physics \u0026 Astronomy, University of Kent. \n\nIf you are interested in academic applications we are happy to help, post in the discussion. If you would like help using PyHoloscope for commercial purposes, consultancy is available, please contact [Mike Hughes](mailto:m.r.hughes@kent.ac.uk) in the first instance.\n\n## Features\n\n### General\n* Object-oriented interface\n* Choice of single or double precision\n* Support for CUDA compatible GPUs\n* Optional use of Numba JIT compiler\n* Supports non-square holograms\n\n### Off Axis Holography\n* Quantitative phase and amplitude recovery from off-axis hologram\n* Auto detect off-axis modulation frequency\n* Predict tilt angle from modulation frequency\n\n### Numerical Refocusing (Inline and Off-axis Holography)\n* Refocus holograms or complex fields using the angular spectrum method \n* Choice of cosine windows to reduce edge effects \n* Generate stack of images at different refocus depths\n* Apply focus metrics (Brenner, Sobel, Peak Intensity, DarkFocus, SobelVariance)\n* Auto focus whole image or ROI by optimising focus metric, through fast bounded search and (optionally) initial coarse search to narrow search range.\n* Generate LUT of propagators for faster auto-focus or repeated generation of focus stacks.\n\n### Phase Visualisation\n* Remove background phase \n* Remove phase tilt\n* Show phase relative to region of interest \n* Generate phase contrast image\n* Generate synthetic DIC image\n\n## Roadmap of Planned Developments (help welcome!)\n\n- [ ] Phase recovery for inline holography\n- [ ] Improved optimisation for speed/multiple back-ends\n- [ ] Support phase-shifting holography\n- [ ] Support coded aperture/multi-depth phase recovery\n- [ ] Support forward scattering and inference \n- [ ] Support particle tracking \n- [ ] Deep learning for focusing\n- [ ] Targeted support for edge computing (e.g. Raspberry Pi)\n\n## Requirements\n* Numpy\n* Scipy\n* PIL\n* OpenCV\n* Scikit-Image\n* Matplotlib\n* Numba (optional, for JIT acceleration)\n* CuPy (optional, for GPU)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikehugheskent%2Fpyholoscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikehugheskent%2Fpyholoscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikehugheskent%2Fpyholoscope/lists"}