Import 2017-06-07 23:51:09: master b077f996

Author Committer Branch Timestamp Parent
lassoan lassoan master 2015-02-05 16:22:34 master 87073c17
Changeset

BUG: Fixed warning in vtkMRMLSliceLogicTest2_fixed.nrrd test

Warnings caused by the test code expecting a binary image and the reslice filter providing a stencil as mask:

125: vtkMRMLScalarVolumeDisplayNode::pipeline updated: 0.000349045 fps: 2864.96
125: ERROR: In /home/jchris/Projects/Slicer-2-SuperBuild-Debug/VTKv6/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx, line 810
125: vtkCompositeDataPipeline (0x2cadda0): Input for connection index 0 on input port index 0 for algorithm vtkImageCast(0x2cabb40) is of type vtkImageStencilData, but a vtkImageData is required.
125:
125: vtkMRMLScalarVolumeDisplayNode::window updated: 0.000169039 fps: 5915.8
125: ERROR: In /home/jchris/Projects/Slicer-2-SuperBuild-Debug/VTKv6/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx, line 810
125: vtkCompositeDataPipeline (0x2cadda0): Input for connection index 0 on input port index 0 for algorithm vtkImageCast(0x2cabb40) is of type vtkImageStencilData, but a vtkImageData is required.
125:
125: vtkMRMLScalarVolumeDisplayNode::threshold updated: 0.000144958 fps: 6898.53
125: ERROR: In /home/jchris/Projects/Slicer-2-SuperBuild-Debug/VTKv6/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx, line 810
125: vtkCompositeDataPipeline (0x2cadda0): Input for connection index 0 on input port index 0 for algorithm vtkImageCast(0x2cabb40) is of type vtkImageStencilData, but a vtkImageData is required.
125:
125: vtkMRMLScalarVolumeDisplayNode::alpha updated: 8.79765e-05 fps: 11366.7
1/1 Test 0000125: vtkMRMLSliceLogicTest2_fixed.nrrd ... Passed 0.99 sec

After the fix there are no warnings anymore.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23964 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Libs/MRML/Logic/Testing/Cxx/vtkMRMLSliceLogicTest2.cxx Diff File