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

do you plan to add 32bit image support? #47

Open
ronnkling opened this issue Jun 17, 2023 · 1 comment
Open

do you plan to add 32bit image support? #47

ronnkling opened this issue Jun 17, 2023 · 1 comment

Comments

@ronnkling
Copy link

I have a file (which I can send you ) that is a mix of 8,16 and 32 bit image. In the file loaded below image 0 is 8bit, image 1 is 32 and image 2 is 16

Your reader handles the 8 and 16 bit fine but I get the report error to github message
(base) PS E:\users\klingr\IDL_nih\readlif-0.6.5\readlif\testingLIFreader> python
Python 3.9.16 (main, Mar 8 2023, 10:39:24) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

from reader import LifFile
new = LifFile('Example_FLIM.lif')
im = new.get_image(0)
im.get_frame(z=0, t=0, c=0)
<PIL.Image.Image image mode=L size=512x512 at 0x2AD0E3AE0A0>
im = new.get_image(1)
im.get_frame(z=0, t=0, c=0)
Traceback (most recent call last):
File "", line 1, in
File "E:\users\klingr\IDL_nih\readlif-0.6.5\readlif\testingLIFreader\reader.py", line 380, in get_frame
return self._get_item(item_requested)
File "E:\users\klingr\IDL_nih\readlif-0.6.5\readlif\testingLIFreader\reader.py", line 182, in _get_item
raise ValueError("Unknown bit-depth, please submit a bug report"
ValueError: Unknown bit-depth, please submit a bug report on Github
im = new.get_image(2)

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