At present there isn't a program to
compute the affine transform needed for such a transformation as you describe. I plan to work on one, and that's one reason 3dWarp was written (the other reason was for the changes to 3dTagalign, which were needed by the MEG group here). But I'm not there yet.
bob cox