Resample Scalar/Vector/DWI Volume produces weird results

I also tried doing it in the Python console, as described here but I also get strange results.

When I set those 4 parameters:

params["inputVolume"] = slicer.util.getFirstNodeByName("moving")
params["outputVolume"] = slicer.util.getFirstNodeByName("moving_2")
params["interpolationType"] = "linear"
params["outputImageSpacing"] = (1,1,1)

the resampling works.

When I add this parameter

params["outputImageOrigin"] = (0,0,0)

the resampling finishes, but the origin remains unchanged and those two messages appear around 25 times each:

[VTK] Input port 0 of algorithm vtkImageMapToWindowLevelColors (0x80bc240) has 0 connections but is not optional.
[VTK] Input port 0 of algorithm vtkImageThreshold (0x80a9230) has 0 connections but is not optional.


When I remove the origin parameter and set the direction:

params["directionMatrix"] = (1,0,0,0,1,0,0,0,1)

the resampling finishes, the direction matrix is set correctly, but the entire image is now filled with 0s and the same VTK message appear