b9e5bdd6e23ee782268b7f36e68fe23dd3bba4c5,pynets/registration/reg_utils.py,,match_target_vox_res,#Any#Any#Any#Any#,546
Before Change
data2, affine2 = reslice(data, affine, zooms, new_zooms)
// Resize FOV if voxels were non-isotropic
scale_factor = np.array(zooms) / np.array(new_zooms)
affine2[:3, 3] = affine2[:3, 3].dot(np.diag(scale_factor/stats.mode(scale_factor)[0][0]))
img2 = nib.Nifti1Image(data2, affine=affine2)
img2 = normalize_xform(img2)
nib.save(img2, img_file_res)
After Change
nib.save(img2, img_file_res)
img_file = img_file_res
else:
img_file_nores = "%s%s%s%s" % (out_dir, "/", os.path.basename(img_file).split(".nii.gz")[0], "_nores.nii.gz")
img2 = normalize_xform(img)
nib.save(img2, img_file_nores)
img_file = img_file_nores
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: dPys/PyNets
Commit Name: b9e5bdd6e23ee782268b7f36e68fe23dd3bba4c5
Time: 2019-07-28
Author: dpisner@utexas.edu
File Name: pynets/registration/reg_utils.py
Class Name:
Method Name: match_target_vox_res
Project Name: dpressel/mead-baseline
Commit Name: 4b4946f40ef0f8c533f5473ec3756e639e57e5c5
Time: 2018-09-28
Author: dpressel@gmail.com
File Name: python/baseline/dy/dynety.py
Class Name:
Method Name: show_examples_dynet
Project Name: databricks/spark-deep-learning
Commit Name: aeff9c9e2c24ed09c093414a7b51ec9bd42f1e86
Time: 2017-12-19
Author: 33237569+tomasatdatabricks@users.noreply.github.com
File Name: python/tests/transformers/named_image_test.py
Class Name: NamedImageTransformerBaseTestCase
Method Name: setUpClass