Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Stream2 CBOR format and multiple threshold frames #65

Open
tguruswamy opened this issue Sep 23, 2024 · 1 comment
Open

Support Stream2 CBOR format and multiple threshold frames #65

tguruswamy opened this issue Sep 23, 2024 · 1 comment

Comments

@tguruswamy
Copy link
Contributor

(TODO)
Stream2 with compression is the only supported way to capture data at full speed with multiple photon energy thresholds enabled.

Data structure (CBOR) documentation is available here: https://github.com/dectris/documentation

@MarkRivers suggests handling multiple thresholds as an extra dimension in the NDArray. This is also how Dectris construct HDF files in FileWriter2 mode, saving as a 4-dimensional array (nimages * nthresholds * X * Y). This may require updates to viewer/analysis software to correctly interpret.

@MarkRivers
Copy link
Member

This may require updates to viewer/analysis software to correctly interpret.

If the ADEiger driver produces an NDArray of dimensions NX x NY x 2 then this can be sent to 2 ROI plugins. One selects the low threshold image and the other selects the high threshold image. These are sent to 2 separate PVA plugins. Viewers then don't need to be modified, they can chose which image to display by selecting which PVA plugin to connect to. If they want to display both images that would require changes.

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

No branches or pull requests

2 participants