Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #492 +/- ##
==========================================
- Coverage 87.27% 87.26% -0.01%
==========================================
Files 13 13
Lines 1768 1846 +78
==========================================
+ Hits 1543 1611 +68
- Misses 225 235 +10 ☔ 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 |
As suggested in ome/ngff#311
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: