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

Loading multidimensional image in lys #14

Closed
pr4deepr opened this issue Oct 6, 2023 · 4 comments
Closed

Loading multidimensional image in lys #14

pr4deepr opened this issue Oct 6, 2023 · 4 comments
Assignees
Labels
JOSS_Review The issues created by reviewers of JOSS journal

Comments

@pr4deepr
Copy link

pr4deepr commented Oct 6, 2023

Hi @lys-devel
When you say multidimensional data, I'm used to working with 3D or 4D microscopy image datasets.
For example, this data from scikit-image: https://scikit-image.org/docs/stable/api/skimage.data.html#skimage.data.cells3d

Could you add an example of how to load such an image and perhaps perform smoothing?

This is how I started in the proc.py:

from lys import *

from skimage import io, data
import numpy as np


def load_img():
    img = data.cells3d() #data is (60, 2, 256, 256) (Z,C,Y,X)
    print(img.shape)
    img = np.moveaxis(img, 0, 3)
    img = np.moveaxis(img, 0, 3) # make axes to (256,256,2,60)
    print(img.shape)
    return img

ALso, with visualization, how do I setup multicut to toggle or visualize both channels?
i.e., in the canvas I want to visualize XY, have a line graph or slider at bottom so I can scroll through Z.
Be able to look at C dimension index 0 and index 1.

Let me know if this isn't clear.

Cheers
Pradeep

openjournals/joss-reviews#5869

@lys-devel
Copy link
Owner

Thank you for the comment, @pr4deepr .

I added the example page in the document that shows how to visualize/smooth cells3d data.
I recommend you to check basic tutorial before reading the example above, if you have not read it.

Please let me know if you have any questions and comments regarding the cells3d example.

@pr4deepr
Copy link
Author

This is great. I had a brief look at the basic tutorial, but looking at your example page, I have a better idea of how to handle axes and importing data..

@lys-devel
Copy link
Owner

I'm happy to hear that you understand it better. Can I close this issue?

@pr4deepr
Copy link
Author

Oh yes, of course.. forgot to do that.. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JOSS_Review The issues created by reviewers of JOSS journal
Projects
None yet
Development

No branches or pull requests

2 participants