Skip to content

Commit a425741

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7b2282d commit a425741

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
@@ -166,9 +166,9 @@ def gamma_correction(image: np.ndarray, gamma: float = 1.0) -> np.ndarray:
166166
raise ValueError("Gamma must be positive")
167167

168168
inv_gamma = 1.0 / gamma
169-
table = np.array(
170-
[((i / 255.0) ** inv_gamma) * 255 for i in range(256)]
171-
).astype(np.uint8)
169+
table = np.array([((i / 255.0) ** inv_gamma) * 255 for i in range(256)]).astype(
170+
np.uint8
171+
)
172172
return cv2.LUT(image, table)
173173

174174

@@ -302,4 +302,4 @@ def temperature_tint(
302302
if __name__ == "__main__":
303303
import doctest
304304

305-
doctest.testmod()
305+
doctest.testmod()

0 commit comments

Comments
 (0)