96e5c12dc5a3a082cbd52fb8164da31318e0201e,skimage/feature/_hog.py,,hog,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,53
Before Change
max_index_array = gradient.argmax(axis = 2)
for row_index, row in enumerate(max_index_array):
for col_index, value in enumerate(row):
gx[row_index][col_index] = channel_gradients[value][0][row_index][col_index]
gy[row_index][col_index] = channel_gradients[value][1][row_index][col_index]
else:
gx, gy = compute_image_gradients(image)
After Change
gradient_magnitude[:, :, dimension] = np.hypot(x_gradient[:, :, dimension], y_gradient[:, :, dimension])
max_index_array = gradient_magnitude.argmax(axis=2)
rr, cc = np.meshgrid(np.arange(image.shape[0]), np.arange(image.shape[1]))
gx = x_gradient[rr, cc, max_index_array]
gy = y_gradient[rr, cc, max_index_array]
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: scikit-image/scikit-image
Commit Name: 96e5c12dc5a3a082cbd52fb8164da31318e0201e
Time: 2017-11-14
Author: pradyumnanpk@gmail.com
File Name: skimage/feature/_hog.py
Class Name:
Method Name: hog
Project Name: cornellius-gp/gpytorch
Commit Name: 3879bcde8d42c619c96b6483dba14a76a8e5f00b
Time: 2019-09-29
Author: kaw293@cornell.edu
File Name: gpytorch/utils/grid.py
Class Name:
Method Name: create_data_from_grid
Project Name: dask/dask-image
Commit Name: aab843410171a11dfd721b1d9cc980bee4420427
Time: 2018-09-02
Author: jakirkham@gmail.com
File Name: dask_image/ndfourier/_utils.py
Class Name:
Method Name: _get_freq_grid