Reading Leica .lif files in julia

Is there way how I can read in .lif files that are generated by Leica microscopes?

I doubts there’s a specific Julia package, I searched and couldn’t find it.

But you can call Python (or e.g. Java), and they have libraries to read the files.

There’s nothing wrong to use Python with Julia, like in this case, and I would recommend with PythonCall.jl (likely ideal, more so than with JavaCall.jl):

If you get it to work (and find it non-ideal), or not, then we can look a better solution. And if you get it to work, you can make a simple Julia wrapper for Python’s readlif. Likely it wraps C code, wrapping it directly would also be a possibility, and whatever works, the wrapper could be changed to pure Julia code if needed later (and that would likely be never).

1 Like