Dataset Viewer (First 5GB)
Auto-converted to Parquet
npz
dict
__key__
stringlengths
19
32
__url__
stringclasses
1 value
{"hologram":[[0.0005079564294259432,0.0005809205386127515,0.00017126568369769309,0.00031981146949890(...TRUNCATED)
./sample_00000_circle
"hf://datasets/gokhankocmarli/inline-digital-holography@835f3dc04ac471e6917710e3dd727c4c08ccb799/dat(...TRUNCATED)
{"hologram":[[0.000021878955018451653,0.00008272063587147732,0.00011497810039605881,0.00004591958209(...TRUNCATED)
./sample_00001_rectangle_checker
"hf://datasets/gokhankocmarli/inline-digital-holography@835f3dc04ac471e6917710e3dd727c4c08ccb799/dat(...TRUNCATED)
{"hologram":[[0.00007132054750400294,0.00025291917574740875,0.0003855325884906009,0.0002906499341655(...TRUNCATED)
./sample_00002_circle_checker
"hf://datasets/gokhankocmarli/inline-digital-holography@835f3dc04ac471e6917710e3dd727c4c08ccb799/dat(...TRUNCATED)
{"hologram":[[0.0007763106419901076,0.00027075374361682793,0.0013775201581474126,0.00014985428979762(...TRUNCATED)
./sample_00003_circle
"hf://datasets/gokhankocmarli/inline-digital-holography@835f3dc04ac471e6917710e3dd727c4c08ccb799/dat(...TRUNCATED)
{"hologram":[[0.0040829421707805355,0.003950068631718551,0.005902248414430623,0.0001991306501924534,(...TRUNCATED)
./sample_00004_ring
"hf://datasets/gokhankocmarli/inline-digital-holography@835f3dc04ac471e6917710e3dd727c4c08ccb799/dat(...TRUNCATED)
{"hologram":[[0.00004007889337153922,8.028553713675155e-6,0.000021372828421750484,0.0000221168598750(...TRUNCATED)
./sample_00005_rectangle
"hf://datasets/gokhankocmarli/inline-digital-holography@835f3dc04ac471e6917710e3dd727c4c08ccb799/dat(...TRUNCATED)
{"hologram":[[0.00013397233201580222,0.00004943832656805481,0.00018097521696466986,0.000082062698367(...TRUNCATED)
./sample_00006_rectangle_checker
"hf://datasets/gokhankocmarli/inline-digital-holography@835f3dc04ac471e6917710e3dd727c4c08ccb799/dat(...TRUNCATED)
{"hologram":[[0.000340260804370347,0.0005582256873117767,0.00034333791280115306,0.000399158591042803(...TRUNCATED)
./sample_00007_rectangle_checker
"hf://datasets/gokhankocmarli/inline-digital-holography@835f3dc04ac471e6917710e3dd727c4c08ccb799/dat(...TRUNCATED)
{"hologram":[[0.0008457934466535647,0.000586861807063078,0.0002654059034340436,0.001103472156861609,(...TRUNCATED)
./sample_00008_ellipse_checker
"hf://datasets/gokhankocmarli/inline-digital-holography@835f3dc04ac471e6917710e3dd727c4c08ccb799/dat(...TRUNCATED)
{"hologram":[[0.003939270998237159,0.002664249237183587,0.0028741158686880993,0.0007788983516663037,(...TRUNCATED)
./sample_00009_ring
"hf://datasets/gokhankocmarli/inline-digital-holography@835f3dc04ac471e6917710e3dd727c4c08ccb799/dat(...TRUNCATED)
End of preview. Expand in Data Studio

Dataset Card for Synthetic Inline Holographical Images

This dataset provides synthetic image triplets representing inline holographical imaging in a simulated environment. Each data sample consists of:

  1. An object-domain image (the ground-truth object or amplitude pattern),
  2. Its corresponding forward-propagated hologram (the inline holographic pattern at the sensor plane),
  3. The numerically reconstructed image (via back-propagation or angular spectrum method).

The dataset is intended to facilitate research in computational imaging, holographic reconstruction, phase retrieval, and machine learning-based hologram analysis.

It is primarily used in conjunction with the open-source project Hologen, which provides simulation and learning tools for inline holography.

Example Data


Dataset Details

The Synthetic Inline Holographical Images dataset contains triplets of images generated from numerically simulated optical propagation.
The synthetic nature of the data enables large-scale, controllable experiments without the need for physical holographic recording setups.
This makes the dataset especially suitable for deep learning research in holographic imaging, where paired data (object ↔ hologram ↔ reconstruction) are rarely available.

Simulation Settings

One can reproduce the results using the HoloGen Toolkit with following simulation settings.

Parameter Description Value
Simulation seed Random number generator's seed 42
Object height Height of both object and sensor plane 256 pixels
Object width Width of both object and sensor plane 256 pixels
Pixel pitch Physical spacing between adjacent pixels 4.65e-6 meters
Illumination wavelength Monochromatic light wavelength 532e-9 meters
Propagation distance Distance between object and sensor planes 0.02 meters

The data does not contain any noise or aberration.


Uses

The dataset is designed for:

  • Training and evaluating neural networks that reconstruct objects from inline holograms.
  • Developing models for phase retrieval, complex field estimation, and denoising.
  • Exploring signal transformation relationships between object and propagation domains.
  • Benchmarking holographic forward and inverse modelling algorithms.

This dataset is not suitable for:

  • Real-world holography generalisation studies without domain adaptation.
  • Tasks requiring physical measurements or phase-accurate calibration data.
  • Medical, biometric, or personal data analysis (no human-related content is included).

Dataset Structure

Each data point contains a NPZ file which holds three images:

  • object – Grayscale object-domain amplitude or intensity image.
  • hologram – Forward-propagated inline hologram (synthetic sensor-plane recording).
  • reconstruction – Numerically reconstructed image from the hologram.

Example:

import numpy as np
from pathlib import Path

# Path to the NPZ file
npz_file = Path("sample_09018_rectangle_checker.npz")

# Load the NPZ file
with np.load(npz_file) as data:
    object_img = data["object"]
    hologram_img = data["hologram"]
    reconstruction_img = data["reconstruction"]

The shapes included in the dataset as follows:

  • circle: min_radius=0.08, max_radius=0.18
  • rectangle: min_scale=0.1, max_scale=0.35
  • ring: min_radius=0.12, max_radius=0.25, min_thickness=0.1, max_thickness=0.3
  • circle_checker: min_radius=0.1, max_radius=0.2, checker_size=16
  • rectangle_checker: min_scale=0.1, max_scale=0.35, checker_size=16
  • ellipse_checker: min_radius_y=0.1, max_radius_y=0.35, min_radius_x=0.1, max_radius_x=0.35, checker_size=16,

Image dimensions and bit depth are consistent across domains.


Dataset Creation

Curation Rationale

Inline holography involves recording the interference pattern between an object wave and a reference wave. However, collecting large, labelled datasets in laboratory conditions is impractical due to optical setup complexity and noise factors. This dataset provides a synthetic, physically consistent alternative that mimics realistic propagation physics using scalar diffraction models.

Source Data

Data Collection and Processing

Images were generated using numerical wave propagation based on the Huygens–Fresnel principle or Angular Spectrum Method (ASM), as implemented in the Hologen framework. Objects were synthetically generated using shape primitives, textures, and random amplitude patterns. Each object was propagated through a simulated inline holography setup to produce hologram and reconstruction pairs.

Who are the source data producers?

  • All data were generated algorithmically by Gökhan Koçmarlı using simulation code in Hologen.
  • No external or third-party datasets were used.

Annotations

No manual annotations are included. Each triplet is automatically labelled by filename correspondence.

Annotation process

Not applicable (fully synthetic, self-labelled data).

Who are the annotators?

All data is generated programmatically.

Personal and Sensitive Information

This dataset contains no personal, identifiable, or sensitive information.
All images are synthetic and algorithmically generated.


Bias, Risks, and Limitations

  • As the dataset is fully synthetic, it lacks real-world optical aberrations, noise, and coherence effects that occur in experimental holography.
  • Models trained purely on this dataset may require fine-tuning on physical hologram data to generalise effectively.
  • The dataset assumes ideal optical parameters (e.g., monochromatic light, planar sensor).

Recommendations

Users should consider:

  • Augmenting with noise or real holograms for domain adaptation.
  • Interpreting reconstruction metrics (e.g., PSNR, SSIM) relative to synthetic references.
  • Avoiding conclusions about physical accuracy without experimental validation.

Citation

BibTeX:

@dataset{kochmarla2025synthetic_inline_holographical_images,
  author       = {Gökhan Koçmarlı},
  title        = {Synthetic Inline Holographical Images},
  year         = {2025},
  url          = {https://huggingface.co/datasets/electricalgorithm/nline-digital-holography},
  note         = {Synthetic dataset for inline holography simulation and reconstruction.}
}
Downloads last month
39