Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ternaus committed Jan 29, 2025
1 parent 21bebb0 commit 7a6bfbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion albumentations/augmentations/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -2716,7 +2716,7 @@ def apply_linear_illumination(img: np.ndarray, intensity: float, angle: float) -

# Add channel dimension if needed
if img.ndim == NUM_MULTI_CHANNEL_DIMENSIONS:
gradient = np.repeat(gradient[..., None], img.shape[2], axis=2)
gradient = cv2.merge([gradient] * img.shape[2])

return albucore.multiply_by_array(img, gradient)

Expand Down

0 comments on commit 7a6bfbc

Please sign in to comment.