447f94818fce0e45ee008ab5ef3f5c93e3416dc3,pose/utils/transforms.py,,transform,#Any#Any#Any#Any#Any#Any#,88
Before Change
return t
def transform(pt, center, scale, rot, res, invert=False):
pt_ = torch.ones(3, 1)
pt_[0],pt_[1] = pt[0]-1,pt[1]-1
t = get_transform(center, scale, rot, res)
if invert:
After Change
if invert:
t = np.linalg.inv(t)
new_pt = np.array([pt[0], pt[1], 1.]).T
new_pt = np.dot(t, new_pt)
return new_pt[:2].astype(int)
def crop(img, center, scale, res, rot=0):
img = im_to_numpy(img)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: bearpaw/pytorch-pose
Commit Name: 447f94818fce0e45ee008ab5ef3f5c93e3416dc3
Time: 2017-05-25
Author: platero.yang@gmail.com
File Name: pose/utils/transforms.py
Class Name:
Method Name: transform
Project Name: nipy/dipy
Commit Name: ab81795ef9a23a0e8c49f94bf5b44b4fb153f869
Time: 2013-02-25
Author: mrbago@gmail.com
File Name: dipy/reconst/tests/test_shm.py
Class Name:
Method Name: test_real_sph_harm_mrtrix
Project Name: epfl-lts2/pygsp
Commit Name: dee5f87f870ea3807124a2308c4b6609b3bccdfd
Time: 2017-08-22
Author: michael.defferrard@epfl.ch
File Name: pygsp/tests/test_filters.py
Class Name: TestCase
Method Name: _test_methods
Project Name: bulik/ldsc
Commit Name: b88dfdcb8980135234f063d8c9d266865133008b
Time: 2015-01-22
Author: bbuliksullivan@gmail.com
File Name: ldscore/regressions.py
Class Name: LD_Score_Regression
Method Name: _prop