c6b8a28f10e865c8444e9e8ffb6eee5dbd428192,test/augmenters/test_blur.py,TestGaussianBlur,test_keypoints_dont_change,#TestGaussianBlur#,358
Before Change
def test_keypoints_dont_change(self):
// keypoints shouldnt be changed
keypoints = [ia.KeypointsOnImage([ia.Keypoint(x=0, y=0), ia.Keypoint(x=1, y=1),
ia.Keypoint(x=2, y=2)], shape=(3, 3, 1))]
aug = iaa.GaussianBlur(sigma=0.5)
aug_det = aug.to_deterministic()
observed = aug.augment_keypoints(keypoints)
expected = keypoints
assert keypoints_equal(observed, expected)
observed = aug_det.augment_keypoints(keypoints)
expected = keypoints
assert keypoints_equal(observed, expected)
def test_sigma_is_tuple(self):
After Change
assert (observed[0][outer_pixels[0], outer_pixels[1]] < 50).all()
def test_keypoints_dont_change(self):
kps = [ia.Keypoint(x=0, y=0), ia.Keypoint(x=1, y=1),
ia.Keypoint(x=2, y=2)]
kpsoi = [ia.KeypointsOnImage(kps, shape=(3, 3, 1))]
aug = iaa.GaussianBlur(sigma=0.5)
aug_det = aug.to_deterministic()
observed = aug.augment_keypoints(kpsoi)
expected = kpsoi
assert keypoints_equal(observed, expected)
observed = aug_det.augment_keypoints(kpsoi)
expected = kpsoi
assert keypoints_equal(observed, expected)
def test_sigma_is_tuple(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: aleju/imgaug
Commit Name: c6b8a28f10e865c8444e9e8ffb6eee5dbd428192
Time: 2019-08-25
Author: kontakt@ajung.name
File Name: test/augmenters/test_blur.py
Class Name: TestGaussianBlur
Method Name: test_keypoints_dont_change
Project Name: aleju/imgaug
Commit Name: c6b8a28f10e865c8444e9e8ffb6eee5dbd428192
Time: 2019-08-25
Author: kontakt@ajung.name
File Name: test/augmenters/test_blur.py
Class Name: TestAverageBlur
Method Name: test_keypoints_dont_change
Project Name: aleju/imgaug
Commit Name: c6b8a28f10e865c8444e9e8ffb6eee5dbd428192
Time: 2019-08-25
Author: kontakt@ajung.name
File Name: test/augmenters/test_blur.py
Class Name: TestMedianBlur
Method Name: test_keypoints_not_changed
Project Name: aleju/imgaug
Commit Name: c6b8a28f10e865c8444e9e8ffb6eee5dbd428192
Time: 2019-08-25
Author: kontakt@ajung.name
File Name: test/augmenters/test_blur.py
Class Name: TestGaussianBlur
Method Name: test_keypoints_dont_change