--- license: cc0-1.0 pretty_name: imaged Fourier ptychography data task_categories: - image-to-image tags: - fourier-ptychography - computational-imaging - microscopy - raw-bayer - usaf-1951 - raspberry-pi size_categories: - 1K-[-]`. `usaf-g7` and `usaf-g9` are two different USAF 1951 targets whose finest group is 7 or 9. ## Layout ```text / ├── info.json # manifest: optics, Bayer layout, per-capture LED position and exposure └── captures/*.npy # one 2-D raw Bayer frame per capture, shape (height, width) ``` The full `info.json` schema is documented in [`INFO_JSON_SCHEMA.md`](https://github.com/rspcunningham/imaged/blob/main/INFO_JSON_SCHEMA.md). In short, all lengths are in metres and exposures in seconds. LED positions are relative to the sample centre, with +z pointing from the sample to the LED array. Dark captures have no LED position and match the `(channel, exposure)` pairs of the illuminated ones. Free-form study details (sample, camera, gain, notes) live in `info.json` → `metadata`. ## Usage Download one study (about 450 MB) and reconstruct it with `imaged`: ```bash hf download rspcunningham/imaged-data --repo-type dataset \ --include "20260728-122052-usaf-g9/*" --local-dir datasets ``` ```python from imaged import PtychStudy study = PtychStudy.load("datasets/20260728-122052-usaf-g9", dark_subtraction="average_all") study.captures # [illumination, H, W] demosaiced, dark-subtracted, exposure-normalised study.illumination_kx # per-capture illumination spatial frequencies ``` ## Known issues - `20240709-005435-usaf-g7` frames are float32 in [0, 1] and appear to be normalised per image at acquisition, so relative brightness between LEDs is not preserved. Its `captured_at` timestamps are synthetic. - `20240709-005435-malaria-carolina-9` has no recorded acquisition date; its timestamps were copied from the USAF study of the same era. - The 2026 studies use the measured numerical aperture of 0.15 instead of the 0.18 the acquisition software recorded, except `20261007-174946-usaf-g9-30um-defocus`, which still carries 0.18. ## License Released under [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/): no rights reserved. Attribution is appreciated but not required.