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:
- Created 3 years ago
- Comments:22 (22 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry ^^’
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.