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

Convert Amira transformations to MoBIE affine #112

Open
tischi opened this issue Jul 3, 2024 · 2 comments
Open

Convert Amira transformations to MoBIE affine #112

tischi opened this issue Jul 3, 2024 · 2 comments
Assignees

Comments

@tischi
Copy link
Contributor

tischi commented Jul 3, 2024

Hi @martinschorb ,

Are you aware of documentation that would explain how to convert transformations (including rotations) as they appear in Amira to affine transformations that can be used in MoBIE?

In fact, I found this code.

Do you think that would cover most use-cases?

@martinschorb
Copy link
Contributor

Hi,

this is a true pain, because the translations somehow are stored independently.
I wrote a TCL script to extract them during a running Amira session, because you cannot really export them.
AFAIR the pixel scaling can only be deferred from the data box size and the displayed bounding box size. That was a while ago, so I don´t really remember too much of it.
https://github.com/martinschorb/mobie_import/blob/master/tform_export.rc

Then here is a Python to convert them into BDV-style:
https://github.com/martinschorb/mobie_import/blob/master/amira2bdv.py

@martinschorb
Copy link
Contributor

If I can interpret that correctly, the script you found only converts the parameters from a manual transform in Amira. If you use some auto-alignments it would not be able to catch them.

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