InsightSoftwareConsortium / InsightSoftwareConsortium/ITKVtkGlue
Errors with itk-vtkglue
- Dominant language
- C++
- Stars
- 15
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
### Description
Python errors when trying the reproduce itk-vtkglue examples,
### Steps to Reproduce
With python 3.6
1. pip install itk=5.0.1
2. pip install vtk=8.1.2
3. pip install itk-vtkglue=0.3.0
4. Run example in [official documentation](https://itk.org/ITKExamples/src/Bridge/VtkGlue/ConvertvtkImageDataToAnitkImage/Documentation.html)
### Expected behavior
No error
### Actual behavior
At line `vtkToItkFilter.Update()`:
>Traceback (most recent call last):
File "", line 1, in
RuntimeError: c:\p\ipp\standalone-build\itks\modules\bridge\vtk\include\itkVTKImageImport.hxx:265:
itk::ERROR: VTKImageToImageFilter(000001F64502C730): Cannot convert a VTK image to an ITK image of dimension 2 since the VTK image direction matrix element at (0,2) is not equal to 0.0:
I J K
X 4.24048e+175, 2.42715e-312, 4.24048e+175
Y 6.32576e-310, 4.24048e+175, 9.65104e-315
Z 4.24048e+175, 2.19481e-312, 9.08669e+223
This means that the K data axis has a X component in physical space, but the ITK image can only represent values along IJ projected
on XY.
### Reproducibility
Tried only on 1 machine
### Versions
python=3.6
itk=5.0.1
vtk=8.1.2
itk-vtkglue=0.3.0
### Environment
Windows 10, 64 bits
### Additional Information
Errors also with 3D images:
> RuntimeError: c:\p\ipp\standalone-build\itks\modules\bridge\vtk\include\itkVTKImageImport.hxx:282:
itk::ERROR: VTKImageToImageFilter(00000196F6218070): Input number of components is 0 but should be 1
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.