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

combine cellpose segmentation with tracking result into h5 file[FEATURE REQUEST] #409

Open
fabricesenger opened this issue Jul 16, 2024 · 2 comments

Comments

@fabricesenger
Copy link

Hello,

I use Btrack to track labeled images, segmentation from cellpose. To further use it with another software CellPlato , I would like to generate an h5 file wich retains the Btarck outpu AND the segmentaion layer, either trough napari or trough a notebook.
I think such a feature would be of great help not only for me.

Thank you in advance

Fabrice.

@quantumjot
Copy link
Owner

Hi Fabrice,

This should be pretty simple from a notebook, using the H5 file handler, something like this:

with btrack.io.HDF5FileHandler("/path/to/file.h5", "w") as hdf:
    hdf.write_segmentation(cellpose_segmentation_as_numpy_arr)
    hdf.write_tracks(btrack_tracks)

Let me know if you have any issues!

@fabricesenger
Copy link
Author

fabricesenger commented Jul 16, 2024 via email

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