instamatic-dev / instamatic

Python program for automated electron diffraction data collection
https://instamatic.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
57 stars 25 forks source link

Brightness changed to changing the display range #1

Closed asdfdsa closed 6 years ago

asdfdsa commented 7 years ago

Have not tested it yet---But changed the 'brightness' to display range to have the image scaled better. Many users are complaining the live window does not show as good contrast as SoPhy.

11800 is a imaginary number but it should refer to the max intensity from the timepix image array.

stefsmeets commented 7 years ago

Better use np.clip for this, as the indexing will be slow and this operation will be performed very often.