3c5b5f6aa392a61025c8086ea4abf6f53983b397,featurex/tests/test_extractors.py,,test_sharpness_extractor,#,118
Before Change
pytest.importorskip("cv2")
image_dir = join(get_test_data_path(), "image")
stim = ImageStim(join(image_dir, "apple.jpg"))
val = stim.extract([SharpnessExtractor()])
sharpness = val.data["SharpnessExtractor"].data["sharpness"]
assert np.isclose(sharpness, 1.0)
def test_vibrance_extractor():
After Change
pytest.importorskip("cv2")
image_dir = join(get_test_data_path(), "image")
stim = ImageStim(join(image_dir, "apple.jpg"))
result = SharpnessExtractor().extract(stim).to_df()
sharpness = result["sharpness"][0]
assert np.isclose(sharpness, 1.0)
def test_vibrance_extractor():
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances
Project Name: tyarkoni/pliers
Commit Name: 3c5b5f6aa392a61025c8086ea4abf6f53983b397
Time: 2016-10-13
Author: tyarkoni@gmail.com
File Name: featurex/tests/test_extractors.py
Class Name:
Method Name: test_sharpness_extractor
Project Name: tyarkoni/pliers
Commit Name: 3c5b5f6aa392a61025c8086ea4abf6f53983b397
Time: 2016-10-13
Author: tyarkoni@gmail.com
File Name: featurex/tests/test_extractors.py
Class Name:
Method Name: test_vibrance_extractor
Project Name: tyarkoni/pliers
Commit Name: 3c5b5f6aa392a61025c8086ea4abf6f53983b397
Time: 2016-10-13
Author: tyarkoni@gmail.com
File Name: featurex/tests/test_extractors.py
Class Name:
Method Name: test_saliency_extractor
Project Name: tyarkoni/pliers
Commit Name: 3c5b5f6aa392a61025c8086ea4abf6f53983b397
Time: 2016-10-13
Author: tyarkoni@gmail.com
File Name: featurex/tests/test_extractors.py
Class Name:
Method Name: test_brightness_extractor