brohan322
brohan322

Reputation: 368

SimpleITK: Rigidly transform image according to 4x4 matrix defined in numpy

I have an image that I have read using sitk.ReadImage and a 4x4 numpy array representing a rigid transform I would like to apply on the image. For the life of me, I cannot seem to figure out how to cast the numpy array to a transform object that is accepted by sitk when trying to perform sitk.Resample. Does anyone know how to do this?

Upvotes: 0

Views: 346

Answers (0)

Related Questions