pyFAI
pyFAI copied to clipboard
Geometric mask for moving detector
Hello, I just put an idea here before forgetting about it.
Now that moving detectors are sort of integrated in pyFAI. It would be nice to have a GeometricMask type which can use the displacement of the detector in order to recompute a mask for a given detector position during the integration.
For example a shadows (beamstop).
This way you define the mask of the beamstop at a position of the detector and when you move the detector this mask is recomputed.
Cheers
Fred
This looks complicated ...
I think a good idea could be to have 2 concepts of masks.
- A mask for the detector (which is all the time the same, to mask pixels of the detector)
- A mask for the experiment (which only have to be set for few angle of your goniometer i guess, in most of the case it will be empty)
pyfai could take care of merging both instead of using one or the other.
In a second step, instead of a raster per angle for the experiment mask, it could be modelized globally by polygons with azim-radius as points. This structure will be a little tricky to manage at the calibration (then it is not for tomorrow) but it could solve your problem?
On Fri, 26 Jan 2018 09:41:10 +0000 (UTC) Valentin Valls [email protected] wrote:
In a second step, instead of a raster per angle for the experiment mask, it could be modelized globally by polygons with azim-radius as points. This structure will be a little tricky to manage at the calibration (then it is not for tomorrow) but it could solve your problem?
This really looks like a 3D modeling of the whole experimental setup ! Who volunteers to setup a big Eu-Project ?
-- Jérôme Kieffer tel +33 476 882 445
Hmm you are right, sounds much more difficult, as each angle have its own geometry... It's still doable if the center to not move too much ;-)
Thomas is working on vectorial polygons for masking ... this might help
It could be an interesting generic tool.