Hi everyone,
Slicer: 4.13
My question might be stupid…
I am not understanding the behavior of these lines of code:
mathMultiply = vtk.vtkImageMathematics()
mathMultiply.RemoveAllInputs()
CT_before.SetAndObserveImageData(ctNode.GetImageData())
mathMultiply.SetInputData(ctNode.GetImageData())
mathMultiply.Modified()
mathMultiply.Update()
CT_after.SetAndObserveImageData(mathMultiply.GetOutput())
I was expecting that CT_before and CT_after to be exactly the same, but I’m having a shift in the voxel values. Any idea why?
Thank you in advance.