Lines Matching full:brightness
35 def _generate_test_image(self, brightness): argument
36 """Creates a Y plane array with pixel values of brightness.
39 brightness: float between [0.0, 1.0]
42 Y plane array with elements of value brightness
46 test_image.fill(brightness)
52 for brightness in self._BRIGHTNESS_CHECKS:
53 logging.debug('Testing validate_lighting with brightness %.1f',
54 brightness)
55 test_image = self._generate_test_image(brightness)
56 print(f'Testing brightness: {brightness}')
57 if brightness <= its_session_utils._VALIDATE_LIGHTING_THRESH:
63 test_image, 'unittest'), f'image value {brightness} should PASS')