All tests passed but those:
The following tests FAILED:
2538 - itkImageToVTKImageFilterTest (Failed)
2540 - itkVTKImageToImageFilterTest (Failed)
Trace shows very similar root causes for the failing tests:
Debug: Off
Modified Time: 237
Reference Count: 1
Registered Events: (none)
Information: 000001C5223E74D0
Data Released: False
Global Release Data: Off
UpdateTime: 192
Field Data:
Debug: Off
Modified Time: 147
Reference Count: 1
Registered Events: (none)
Number Of Arrays: 0
Number Of Components: 0
Number Of Tuples: 0
Number Of Points: 441
Number Of Cells: 400
Cell Data:
Debug: Off
Modified Time: 155
Reference Count: 1
Registered Events:
Registered Observers:
vtkObserver (000001C5223EB220)
Event: 33
EventName: ModifiedEvent
Command: 000001C52223C2E0
Priority: 0
Tag: 1
Number Of Arrays: 0
Number Of Components: 0
Number Of Tuples: 0
Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 1 1 1 )
Interpolate Flags: ( 1 1 1 1 1 0 0 1 1 1 1 )
Pass Through Flags: ( 1 1 1 1 1 1 1 1 1 1 1 )
Scalars: (none)
Vectors: (none)
Normals: (none)
TCoords: (none)
Tensors: (none)
GlobalIds: (none)
PedigreeIds: (none)
EdgeFlag: (none)
Tangents: (none)
RationalWeights: (none)
HigherOrderDegrees: (none)
Point Data:
Debug: Off
Modified Time: 191
Reference Count: 1
Registered Events:
Registered Observers:
vtkObserver (000001C5223EB5E0)
Event: 33
EventName: ModifiedEvent
Command: 000001C52223C2E0
Priority: 0
Tag: 1
Number Of Arrays: 1
Array 0 name = ImageScalars
Number Of Components: 1
Number Of Tuples: 441
Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 1 1 1 )
Interpolate Flags: ( 1 1 1 1 1 0 0 1 1 1 1 )
Pass Through Flags: ( 1 1 1 1 1 1 1 1 1 1 1 )
Scalars:
Debug: Off
Modified Time: 188
Reference Count: 1
Registered Events: (none)
Name: ImageScalars
Data type: double
Size: 441
MaxId: 440
NumberOfComponents: 1
Information: 0000000000000000
Name: ImageScalars
Number Of Components: 1
Number Of Tuples: 441
Size: 441
MaxId: 440
LookupTable: (none)
Vectors: (none)
Normals: (none)
TCoords: (none)
Tensors: (none)
GlobalIds: (none)
PedigreeIds: (none)
EdgeFlag: (none)
Tangents: (none)
RationalWeights: (none)
HigherOrderDegrees: (none)
Bounds:
Xmin,Xmax: (-0.1, 39.9)
Ymin,Ymax: (-12, -10)
Zmin,Zmax: (0, 0)
Compute Time: 238
Spacing: (0.1, 2, 0)
Origin: (-0.1, -10, 0)
Direction: (0, 1, 0, -1, 0, 0, 0, 0, 1)
Dimensions: (21, 21, 1)
Increments: (0, 0, 0)
Extent: (0, 20, 0, 20, 0, 0)
Image (000001C52242C820)
RTTI typeinfo: class itk::Image<double,2>
Reference Count: 1
Modified Time: 68
Debug: Off
Object Name:
Observers:
none
Source: (000001C52014EC40)
Source output name: Primary
Release Data: Off
Data Released: False
Global Release Data: Off
PipelineMTime: 59
UpdateMTime: 69
RealTimeStamp: 0 seconds
LargestPossibleRegion:
Dimension: 2
Index: [0, 0]
Size: [21, 21]
BufferedRegion:
Dimension: 2
Index: [0, 0]
Size: [21, 21]
RequestedRegion:
Dimension: 2
Index: [0, 0]
Size: [21, 21]
Spacing: [0.1, 2]
Origin: [-0.1, -10]
Direction:
0 1
-1 0
IndexToPointMatrix:
0 2
-0.1 0
PointToIndexMatrix:
0 -10
0.5 0
Inverse Direction:
0 -1
1 0
PixelContainer:
ImportImageContainer (000001C520168060)
RTTI typeinfo: class itk::ImportImageContainer<unsigned __int64,double>
Reference Count: 1
Modified Time: 67
Debug: Off
Object Name:
Observers:
none
Pointer: 000001C5224166E0
Container manages memory: false
Size: 441
Capacity: 441
Error: directions do not match for component (0,0).
If I remove Module_ItkVtkGlue from the build the testing is fine.
Any idea what’s wrong with the testing?
Exact ITK and VTK versions are respectively: 5.2.1 and 9.2.2
Also the failing code in tests is:
if VTK_MAJOR_VERSION >= 9 || (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 90)
for (int j = 0; j < dim; ++j)
{
if (input->GetDirection()[i][j] != output->GetDirectionMatrix()->GetData()[i * 3 + j])
{
std::cerr << "Error: directions do not match for component (" << i << "," << j << ")." << std::endl;
return EXIT_FAILURE;
}
}
#endif
CMakeCache.txt (200.9 KB)