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

Move InvalidPixelHandler from CameraCalibration to ImageProcessor? #2518

Open
maxnoe opened this issue Feb 26, 2024 · 2 comments
Open

Move InvalidPixelHandler from CameraCalibration to ImageProcessor? #2518

maxnoe opened this issue Feb 26, 2024 · 2 comments

Comments

@maxnoe
Copy link
Member

maxnoe commented Feb 26, 2024

Brought up in a discussion with @aleberti in this issue here: #2331

We added the InvalidPixelHandler as last step of CameraCalibrator when doing the dl0 → dl1 step.

That prevents applying it on input data that does not contain DL0 (e.g. DL1 images loaded with the HDF5EventSource or a custom source as is the case for the MAGIC plugin).

I think we could move the InvalidPixelHandler application from the CameraCalibrator to the ImageProcessor to enable applying it also on DL1 input.

@kosack what do you think?

@kosack
Copy link
Contributor

kosack commented Feb 27, 2024

Yes, it makes sense to have it in ImageProcessor, since that is generally where you want to avoid invalid pixels, so ok by me.

@maxnoe
Copy link
Member Author

maxnoe commented Apr 29, 2024

I tried to implement this today, but ran into some conceptual issues:

  • The broken pixels are per channel information
  • selected_gain_channel is only stored at dl0, not at dl1
  • The ImageProcessor currently works without needing dl0 information, it is purely dl1
  • Files containing only dl1 will not contain this information, do they currently contain the broken pixel monitoring data

These are the reasons, why the current InvalidPixelHandler is somewhat tied to the DL0 → DL1 step and is thus in CameraCalibrator.

Also: is_valid is currently a single bool, it should probably be a boolean mask for each pixel, same shape as image itself.

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