Exemple #1
0
 def print_headers(to_print):
     """Print nifti header metadata of one or multiple nifti images."""
     if not all(isinstance(n, NiftiImageData) for n in to_print):
         raise AssertionError()
     vec = SIRF.DataHandleVector()
     for n in to_print:
         vec.push_back(n.handle)
     try_calling(pyreg.cReg_NiftiImageData_print_headers(vec.handle))
Exemple #2
0
 def print_header(self):
     """Print nifti header metadata."""
     vec = SIRF.DataHandleVector()
     vec.push_back(self.handle)
     try_calling(pyreg.cReg_NiftiImageData_print_headers(vec.handle))