question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeWarning: Files have different affine matrices

See original GitHub issue

🐛Bug

This is a warning in tests/data/test_image.py::TestImage::test_with_a_list_of_2d_paths.

@GFabien, you wrote that one. Could you please take a look?

To reproduce

$ pytest

TorchIO version

0.17.25.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
GFabiencommented, Aug 19, 2020

Sorry ^^’

1reaction
GFabiencommented, Aug 19, 2020

Well, I thought it’d be more user-friendly to think of the first axis as up->down and second as left->right, as in a numpy matrix.

OK I get it now. I think it does not matter for deep learning and it may probably be the role of a viewer to handle this kind of things.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source code for torchio.data.image
If the affine matrix is ``None``, an identity matrix will be used. ... new_affine): message = ( 'Files have different affine matrices.' f'\nMatrix...
Read more >
Docs 1.3.0. - Affine Registration in 3D - DIPY
This example explains how to compute an affine transformation to register two 3D volumes by maximization of their Mutual Information [Mattes03].
Read more >
NiBabel - Coordinate systems and affines - Nipy
The affine matrix as a transformation between spaces​​ We have voxel coordinates (in voxel space). We want to get scanner RAS+ coordinates corresponding...
Read more >
working-with-raster-data - GitHub Pages
Stack Multi Band Imagery¶. Some remote sensing datasets are stored with each band in a separate file. However, often you want to use...
Read more >
Affine Transforms - dirsig
An affine transform has two very specific properties: ... The following equations define the 4x4 matrix for translation in the various axes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found