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

[Duplicate] [Bug] Increment z jumps in channels #51

Closed
phigjm opened this issue Jan 12, 2024 · 1 comment
Closed

[Duplicate] [Bug] Increment z jumps in channels #51

phigjm opened this issue Jan 12, 2024 · 1 comment

Comments

@phigjm
Copy link

phigjm commented Jan 12, 2024

I experienced a starting mapping for the get Frame function.

executing this code:

new = LifFile(file)
for img in new.get_iter_image():
    slice1 = img.get_frame(z=1,t=0, c=0)
    slice2 = img.get_frame(z=imgContaine.channels,t=0,c=0)

slice1 is z=0, c=1 instead of z=1. and
slice2 is z=1, c=0.

I could fixed that behavior with this method:

def get_frame(imgContaine, z,c):
    i= imgContaine.channels*z+c
    z = i%imgContaine.nz
    c = i//imgContaine.nz
    return imgContaine.get_frame(z=z,t=0, c=c)

My images are recorded by Leica Microsystems LAS AS - TCS SP5.
I am on readlif Version 0.6.5 installed via pip in a venv.
ImageJ does open my images correct.

@phigjm phigjm closed this as completed Jan 12, 2024
@phigjm
Copy link
Author

phigjm commented Jan 12, 2024

Duplicate to Issue

@phigjm phigjm changed the title [Bug] Increment z jumps in channels [Dupplicate] [Bug] Increment z jumps in channels Jan 20, 2024
@phigjm phigjm changed the title [Dupplicate] [Bug] Increment z jumps in channels [Duplicate] [Bug] Increment z jumps in channels Jan 20, 2024
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

1 participant