pyFAI icon indicating copy to clipboard operation
pyFAI copied to clipboard

Geometric mask for moving detector

Open picca opened this issue 7 years ago • 6 comments

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

picca avatar Jan 24 '18 07:01 picca

This looks complicated ...

kif avatar Jan 25 '18 20:01 kif

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?

vallsv avatar Jan 26 '18 09:01 vallsv

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

kif avatar Jan 26 '18 10:01 kif

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 ;-)

vallsv avatar Jan 26 '18 12:01 vallsv

Thomas is working on vectorial polygons for masking ... this might help

kif avatar Apr 12 '18 09:04 kif

It could be an interesting generic tool.

vallsv avatar Apr 16 '18 06:04 vallsv