Skip to content

Commit afdf000

Browse files
committed
Merge remote changes
2 parents 7b52151 + a425741 commit afdf000

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

computer_vision/color_augmentation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ def gamma_correction(image: np.ndarray, gamma: float = 1.0) -> np.ndarray:
168168
raise ValueError("Gamma must be positive")
169169

170170
inv_gamma = 1.0 / gamma
171-
table = np.array(
172-
[((i / 255.0) ** inv_gamma) * 255 for i in range(256)]
173-
).astype(np.uint8)
171+
table = np.array([((i / 255.0) ** inv_gamma) * 255 for i in range(256)]).astype(
172+
np.uint8
173+
)
174174
return cv2.LUT(image, table)
175175

176176

@@ -310,4 +310,4 @@ def temperature_tint(
310310
if __name__ == "__main__":
311311
import doctest
312312

313-
doctest.testmod()
313+
doctest.testmod()

0 commit comments

Comments
 (0)