1732173127ecce503d069300329727065e16e238,test/augmentables/test_lines.py,TestLineString,test_extract_from_image,#TestLineString#,679
Before Change
// weak antialiased=True test
ls = LineString([(1, 5), (8, 5)])
extract = ls.extract_from_image(img, size=3, antialiased=True)
assert extract.shape[0] > 3
assert extract.shape[1] > 10
assert extract.shape[2] == 3
// pad=False
After Change
// size=3, RGB image
ls = LineString([(1, 5), (8, 5)])
img_rgb = np.tile(img, (1, 1, 3))
img_rgb[..., 1] += 10
img_rgb[..., 2] += 20
extract = ls.extract_from_image(img_rgb, size=3, antialiased=False)
assert extract.shape == (3, 10, 3)
assert np.array_equal(extract, img_rgb[4:6+1, 0:10, :])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: aleju/imgaug
Commit Name: 1732173127ecce503d069300329727065e16e238
Time: 2019-04-06
Author: kontakt@ajung.name
File Name: test/augmentables/test_lines.py
Class Name: TestLineString
Method Name: test_extract_from_image
Project Name: scikit-learn-contrib/DESlib
Commit Name: 65cce49dcac95a195c1c3cb2283a4f4dbda981ec
Time: 2018-03-25
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_a_posteriori.py
Class Name:
Method Name: test_fit
Project Name: scikit-learn-contrib/DESlib
Commit Name: 65cce49dcac95a195c1c3cb2283a4f4dbda981ec
Time: 2018-03-25
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_a_priori.py
Class Name:
Method Name: test_fit