Non-rigid summing of gated PET via optical flow