Skip to main content

Holography dataset generation toolkit

Project description

HoloGen: Synthetic Hologram Dataset Toolkit

The HoloGen toolkit generates paired object-domain images and their inline or off-axis holograms for machine learning workflows.

Features

  • Binary object-domain sample generation with diverse analytic shapes
  • Strategy-based hologram creation supporting inline and off-axis methods
  • Reconstruction pipeline for object-domain recovery from holograms
  • Dataset writer for NumPy bundles and preview imagery

Quickstart

  1. Create a virtual environment and install the package:
   python3 -m venv .venv
   source .venv/bin/activate
   pip install -r requirements.txt
   pip install -e .
  1. Generate a sample dataset:
   python scripts/generate_dataset.py

The default dataset is written to the dataset/ directory with both .npz tensors and PNG previews.

Configuration

Key parameters reside in scripts/generate_dataset.py. Adjust them to change:

  • Grid resolution and pixel pitch
  • Optical wavelength and propagation distance
  • Holography method (inline or off-axis)
  • Carrier parameters for off-axis holography

Licensing

Released under the MIT License. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hologen-0.1.0.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hologen-0.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file hologen-0.1.0.tar.gz.

File metadata

  • Download URL: hologen-0.1.0.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hologen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ee0d9fcb3b879ecdc90b4722975f106cd073e49a4793c5eefe54ffc4729e9c39
MD5 d621e32aac4933a70438647f27c09ec7
BLAKE2b-256 eb6e80f471081cf38ee2cf01e3b914f08589360498f5c9a8d0918a26eb240ff4

See more details on using hashes here.

Provenance

The following attestation bundles were made for hologen-0.1.0.tar.gz:

Publisher: python-publish.yml on electricalgorithm/hologen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hologen-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hologen-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hologen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b12b8104a17ed81c2aea167d62600d43868909e68d1fba6a5cde861eaa0476e
MD5 d45e6c378b6be931368c68b588d8e6fc
BLAKE2b-256 d81534ae1500d59103a1ee3d8bef1d179e4dfedec23067c3cc6f220efcb75f35

See more details on using hashes here.

Provenance

The following attestation bundles were made for hologen-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on electricalgorithm/hologen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page