Bug #1764
closedpixel counts not always proportional to the square of binning value
0%
Description
In leginon/calibrationclient.py, the calculation of dose in method pixel_totaldose_from_imagedata assumes that a pixel value should be divided by binning^2 in order to effectively "unbin" the pixel. This does not work in two cases:
1) Eagle camera through TIA: the gain of the camera appears to be different depending on the binning
2) Direct Electron: currently in de.py, we do binning in software using numextension.bin(), this is actually an average and not a sum.
Two possible solutions to think about:
1) standardize the meaning of binning in pyscope so that you always get what you expect: a sum of the pixels that you would have gotten if you did not bin. For Eagle, this means calibrating the artificial gain that is applied to the image and reversing it before returning the image. For DE, this means using a sum function instead of the bin function (which actually does average) or maybe DE12 is now capable of hardware binning and we just use that.
Updated by Jim Pulokas over 12 years ago
- Status changed from New to Merge
- Assignee changed from Jim Pulokas to Anchi Cheng
Two other revs were not linked to this.
Here are all revisions related to this: r16627, r16640, r16642, r16643, r16702
Updated by Jim Pulokas over 12 years ago
just implemented binned multiplier for Eagle camera in r16702 (edited the above update to include this revision as well)
Updated by Anchi Cheng over 12 years ago
- Category set to Leginon subsystem
- Status changed from Merge to In Test
- Target version set to Appion/Leginon 2.2.0
code reviewed
merge as r16703 all the revisions so far to branch 2.2
will test by running 2.2 in case we missed something in the merge
Updated by Sargis Dallakyan almost 7 years ago
- Status changed from In Test to Closed