97bcda32d46ac2c2d8f97f9fe44ef8cdc3253710,pynets/registration/reg_utils.py,,match_target_vox_res,#Any#Any#Any#Any#,554
Before Change
new_zooms = (2., 2., 2.)
if (abs(zooms[0]), abs(zooms[1]), abs(zooms[2])) != new_zooms:
img_file_res = "%s%s%s%s%s%s%s" % (out_dir, "/", os.path.basename(img_file).split(".nii")[0], "_res-",
vox_size, ".nii", os.path.basename(img_file).split(".nii")[1])
if overwrite is False and os.path.isfile(img_file_res):
img_file = img_file_res
pass
else:
print("Reslicing image " + img_file + " to " + vox_size + "...")
data2, affine2 = reslice(np.asarray(img.dataobj), img.affine, zooms, new_zooms)
nib.save(nib.Nifti1Image(data2, affine=affine2), img_file_res)
img_file = img_file_res
del data2
else:
img_file_nores = "%s%s%s%s%s%s%s" % (out_dir, "/", os.path.basename(img_file).split(".nii")[0], "_nores-",
vox_size, ".nii", os.path.basename(img_file).split(".nii")[1])
if overwrite is False and os.path.isfile(img_file_nores):
img_file = img_file_nores
After Change
img_file = img_file_res
pass
else:
print(f"Reslicing image {img_file} to {vox_size}...")
data2, affine2 = reslice(np.asarray(img.dataobj), img.affine, zooms, new_zooms)
nib.save(nib.Nifti1Image(data2, affine=affine2), img_file_res)
img_file = img_file_res
del data2
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: dPys/PyNets
Commit Name: 97bcda32d46ac2c2d8f97f9fe44ef8cdc3253710
Time: 2020-04-19
Author: dpisner@utexas.edu
File Name: pynets/registration/reg_utils.py
Class Name:
Method Name: match_target_vox_res
Project Name: deepchem/deepchem
Commit Name: 763f8721952e8042d6086b103deb2450334be4b3
Time: 2017-03-09
Author: lilleswing@gmail.com
File Name: deepchem/feat/nnscore_utils.py
Class Name:
Method Name: pdbqt_to_pdb
Project Name: dPys/PyNets
Commit Name: 97bcda32d46ac2c2d8f97f9fe44ef8cdc3253710
Time: 2020-04-19
Author: dpisner@utexas.edu
File Name: pynets/registration/reg_utils.py
Class Name:
Method Name: match_target_vox_res
Project Name: dPys/PyNets
Commit Name: 562ce1a98dd3131d1623dd1cee1cd07192b156a6
Time: 2019-08-14
Author: dpisner@utexas.edu
File Name: pynets/registration/reg_utils.py
Class Name:
Method Name: check_orient_and_dims