Skip to content

Conversation

@rwb27
Copy link
Collaborator

@rwb27 rwb27 commented Dec 5, 2024

This should be really useful for e.g. fast z stacking. It probably wants support in the Camera protocol in openflexure-microscope-server if it proves helpful

This should be really useful for e.g. fast z stacking.
@rwb27
Copy link
Collaborator Author

rwb27 commented Dec 5, 2024

I've tested this returns a valid PNG with the unit test. I have not yet checked the PNG looks good.

@rwb27
Copy link
Collaborator Author

rwb27 commented Dec 5, 2024

Testing over HTTP rather than an internal client fails, unless the default httpx timeout is increased (I used 20). I think I should come up with a solution that doesn't require serialising a multi megapixel floating point image to JSON.

@rwb27 rwb27 changed the title Added the ability to capture raw and process later Draft: Added the ability to capture raw and process later Dec 5, 2024
rwb27 added 2 commits December 6, 2024 03:01
Images can now be captured with a binary raw format, and
processed later to PNG.

TIFF export should be a simple addition.

Image processing is done based on defined parameters, retrieved via a property. Expensive steps (e.g. interpolating the white reference image) may be cached.
The `picamera2` package now gives extra arguments to
`PicameraStreamOutput.outputframe`.
I've added two additional optional arguments to fix this, in a
backwards-compatible way.
@rwb27
Copy link
Collaborator Author

rwb27 commented Dec 16, 2024

I've updated the Output class to account for a change in the picamera2 API and tested this. Good to merge.

@rwb27 rwb27 merged commit 38b6eec into main Dec 16, 2024
3 checks passed
@rwb27 rwb27 changed the title Draft: Added the ability to capture raw and process later Added the ability to capture raw and process later Dec 16, 2024
@rwb27 rwb27 deleted the process-from-raw-api branch December 16, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants