2dcbfd97b154f3b8cf10076e3e21fc5eacd927de,test/augmenters/test_contrast.py,TestCLAHE,_test_many_images_rgb_to_lab_list,#Any#Any#,1500
Before Change
mock_cs.side_effect = side_effect_change_colorspace
mock_all_channel_clahe = mock.Mock()
mock_all_channel_clahe._augment_images.side_effect = \
side_effect_all_channel_clahe
clahe = iaa.CLAHE(
clip_limit=1,
tile_grid_size_px=3,
tile_grid_size_px_min=2,
from_colorspace=iaa.CSPACE_RGB,
to_colorspace=iaa.CSPACE_Lab)
clahe.all_channel_clahe = mock_all_channel_clahe
imgs_aug = clahe.augment_images(imgs)
assert isinstance(imgs_aug, list)
mock_all_channel_clahe = mock_all_channel_clahe._augment_images
assert mock_cs.call_count == (n_3d_imgs*2 if with_3d_images else 0)
assert mock_all_channel_clahe.call_count == 1
After Change
mock_cs.side_effect = side_effect_change_colorspace
mock_all_channel_clahe = ArgCopyingMagicMock()
mock_all_channel_clahe._augment_batch.side_effect = \
side_effect_all_channel_clahe
clahe = iaa.CLAHE(
clip_limit=1,
tile_grid_size_px=3,
tile_grid_size_px_min=2,
from_colorspace=iaa.CSPACE_RGB,
to_colorspace=iaa.CSPACE_Lab)
clahe.all_channel_clahe = mock_all_channel_clahe
imgs_aug = clahe.augment_images(imgs)
assert isinstance(imgs_aug, list)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 6
Instances
Project Name: aleju/imgaug
Commit Name: 2dcbfd97b154f3b8cf10076e3e21fc5eacd927de
Time: 2019-10-14
Author: kontakt@ajung.name
File Name: test/augmenters/test_contrast.py
Class Name: TestCLAHE
Method Name: _test_many_images_rgb_to_lab_list
Project Name: aleju/imgaug
Commit Name: 2dcbfd97b154f3b8cf10076e3e21fc5eacd927de
Time: 2019-10-14
Author: kontakt@ajung.name
File Name: test/augmenters/test_contrast.py
Class Name: TestCLAHE
Method Name: test_single_image_4d_rgb_to_lab
Project Name: aleju/imgaug
Commit Name: 2dcbfd97b154f3b8cf10076e3e21fc5eacd927de
Time: 2019-10-14
Author: kontakt@ajung.name
File Name: test/augmenters/test_contrast.py
Class Name: TestCLAHE
Method Name: _test_single_image_3d_rgb_to_x
Project Name: aleju/imgaug
Commit Name: 2dcbfd97b154f3b8cf10076e3e21fc5eacd927de
Time: 2019-10-14
Author: kontakt@ajung.name
File Name: test/augmenters/test_contrast.py
Class Name: TestCLAHE
Method Name: _test_many_images_rgb_to_lab_array
Project Name: aleju/imgaug
Commit Name: 2dcbfd97b154f3b8cf10076e3e21fc5eacd927de
Time: 2019-10-14
Author: kontakt@ajung.name
File Name: test/augmenters/test_contrast.py
Class Name: TestCLAHE
Method Name: test_single_image_5d_rgb_to_lab