Replies: 2 comments 5 replies
-
Hi Dan, You'll want to take a look at the look up table LUT. The bytes are first parsed as unsigned integers (for speed), and then converted to the nonstandard float type via the LUT. The calculations in the code snippet you posted are for applying gamma to the intensities. The 1/2.4 gamma is pretty arbitrary as far as we can tell. Dillon |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes thats right - I had initially implemented the conversion this way OCT-Converter/oct_converter/readers/e2e.py Line 264 in 3063aa8 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, thank you for this incredibly useful contribution!
Going in to how the e2e tomogram data is parsed, the bitbucket explanation, talks about the data being an unsigned float with 6 bits for exponent and 10 bits for the mantissa.
However, the code here parses it as a 16-bit unsigned-int and then performs a somewhat weird mathematical manipulation to it -
From my small side-note calculation, this manipulation doesn't coincide with float structure -
Would be grateful for some clarification here :)
Thanks!
Dan
Beta Was this translation helpful? Give feedback.
All reactions