medpy.io.header.Header.copy_to¶
-
Header.
copy_to
(sitkimage)[source]¶ Copy all stored meta information info to an sitk Image.
Note that only the spacing and the offset/origin information are guaranteed to be preserved, although the method also tries to copy other meta information such as DICOM tags.
Parameters: sitkimage : sitk.Image
the sitk Image object to which to copy the information
Returns: sitkimage : sitk.Image
the passed sitk Image object