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

Axes order of numpy array #1184

Open
snownontrace opened this issue Aug 24, 2024 · 2 comments
Open

Axes order of numpy array #1184

snownontrace opened this issue Aug 24, 2024 · 2 comments

Comments

@snownontrace
Copy link

Hi Marco,

I noticed that vedo.Volume uses the xyz order instead of conventionally used zyx. For example, when loading an image with vedo.load(image), the array order is xyz, but the io.imread(image) from skimage and tifffile etc. returns zyx. I am swapping x and z for now, but it might be the best to use zyx order by default.

Thanks!
Shaohe

@marcomusy
Copy link
Owner

Hi! You are right and this is quite annoying.. vedo always assumes real world coordinates and I'm afraid it is too late to change convention on this one.. But I understand it can be a source of confusion.
I can add some documentation and maybe a keyword option , something like
Volume(..., assume_zyx=True)
is maybe helpful?

@snownontrace
Copy link
Author

Yes, that would be very helpful! If more vedo users process scientific image data, it might be worth making assume_zyx=True by default.

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