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

Linecut in multidim dataObject #299

Open
photoniker opened this issue Jul 1, 2024 · 1 comment
Open

Linecut in multidim dataObject #299

photoniker opened this issue Jul 1, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@photoniker
Copy link
Contributor

photoniker commented Jul 1, 2024

In a > 3dim dataObject the linecut in 2d plot do not show proper data for:
stack = dataObject.rand([4, 10, 240, 240]) plot2(stack[:, 0, :,:])

image

It works using the squeeze method of dataObject:
plot2(stack[:, 0, :, :].squeeze())

image

2d volume cut works:

image

@photoniker photoniker added the enhancement New feature or request label Jul 1, 2024
@photoniker photoniker added this to the v4.3.0 milestone Jul 1, 2024
@magro11
Copy link
Contributor

magro11 commented Sep 12, 2024

Steps todo:

**Case 1 (should already work):**✅
The dataObject has two dimensions: line cut displays a line through this plane, z-cut and volume cut are disabled

Case 2 (does only partially work):
If the dataObject has > 2 dimensions and only one dimension in the first n-2 dimensions is != 1: Use this single dimension to represent the z-direction of the image stack

Case 3 (does only partially work):
If the dataObject has > 2 dimensions and more than one dimension in the first n-2 dimensions has a size of != 1: Flatten all first n-2 dimensions and consider these first dimensions as one z-direction for the line cut, z-cut and volume cut.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants