-
Notifications
You must be signed in to change notification settings - Fork 65
V06 coordinate systems #492
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #492 +/- ##
==========================================
- Coverage 87.15% 87.12% -0.04%
==========================================
Files 13 13
Lines 1775 1817 +42
==========================================
+ Hits 1547 1583 +36
- Misses 228 234 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi @will-moore , just played a bit with this. The additional coordinate transformations (i.e., those under Do you envision a particular way how this could be organized? I could envision the following:
On the minus side, that would be a pretty massive breaking change to the API and would need some careful consideration. On the plus-side, it would introduce a relatively clean separation of transforms that go into |
|
Hi @will-moore , I think 6566d3c is a good addition to the API. I noticed that when I use the code for writing, I get this for the scale coordinate Transformations inside the {
"path": "0",
"coordinateTransformations": [
{
"type": "sequence",
"transformations": [
{
"type": "scale",
"scale": [
0.5,
0.391,
0.391
]
},
{
"type": "translation",
"translation": [
0.0,
0.0,
0.0
]
}
],
"input": "",
"output": "physical"
}
]
},which is an invalid value for This way, the ("default") coordinate transformations for the multiscales would always be calculated, if only for a default scale. using the scale as input for the transformations inside the Could send a PR with this to your work? edit: Here goes will-moore#2 |
Work in progress...
NB: This is on top of #476
To test:
Basic conversion
The generated image has
datasets.coordinateTransformationsofscaleandtranslatenested into asequencetransform with"output": "physical"and the axes are stored within acoordinateSystemnamed "physical".Then, to open with validator with RFC5 support from ome/ome-ngff-validator#48
Rotation
The script includes commented-out code for creating the rotation matrix using the
Affineclass fromnapari, but ifnapariisn't required for the code below as therotation_matrixis hard-coded.Then view this with will-moore/napari-ome-zarr#2 installed: