Skip to content
Snippets Groups Projects

[AGIPD][CORRECT] Add adjustable rounding threshold

Merged Egor Sobolev requested to merge feat/rounding-threshold into master

This add the setting to adjust rounding threshold. The 0.5 fraction is rounding down in standard rule, as int(v + 0.5) This allows to change the standard threshold and round as int(v + round_threshold).

The SPI community usually rounds the diffraction patterns to photons. But they used biased threshold, because the number of pixels decreases exponentially as the number of photons increases. This causes rounding errors to be unbalanced. Without this option they refuse to use our rounding and compression.

@schmidtp @ahmedk

Edited by Karim Ahmed

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading