a48261482ed4fa257219095120ab90012da615bb,pynets/registration/reg_utils.py,,match_target_vox_res,#Any#Any#Any#Any#,550
Before Change
img_file_res = "%s%s%s%s" % (out_dir, "/", os.path.basename(img_file).split(".nii.gz")[0],
"_res.nii.gz")
data2, affine2 = reslice(data, affine, zooms, new_zooms)
if abs(np.round(zooms[0],1)) != abs(np.round(zooms[1],1)) != abs(np.round(zooms[2],1)):
raise ValueError("ERROR: isotropic voxel resolutions not supported.")
img2 = nib.Nifti1Image(data2, affine=affine2, header=hdr)
img2 = normalize_xform(img2)
After Change
// 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)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: dPys/PyNets
Commit Name: a48261482ed4fa257219095120ab90012da615bb
Time: 2019-07-25
Author: dpisner@utexas.edu
File Name: pynets/registration/reg_utils.py
Class Name:
Method Name: match_target_vox_res
Project Name: scikit-learn-contrib/sklearn-pandas
Commit Name: 5ce407ce6c4bf6e9acc8466d47fc4e946f5f1bc8
Time: 2017-04-29
Author: dukebody@gmail.com
File Name: sklearn_pandas/categorical_imputer.py
Class Name: CategoricalImputer
Method Name: fit
Project Name: scikit-learn-contrib/DESlib
Commit Name: 61aff20b59879b64ad562c2faa5f85ad0ee75592
Time: 2018-01-13
Author: rafaelmenelau@gmail.com
File Name: pythonds/base.py
Class Name: DS
Method Name: _hardness_region_competence
Project Name: IndicoDataSolutions/finetune
Commit Name: 3d5e99eb2a6c8f21809725fc1dcd8fcc42256837
Time: 2020-01-10
Author: lily.zhang@indico.io
File Name: finetune/target_models/multi_label_classifier.py
Class Name: MultiLabelClassifier
Method Name: predict