Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions imgaug/augmenters/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -2485,6 +2485,10 @@ def _transform_image_cv2(cls, image_hsv, hue, saturation):
# image_hsv[..., 1] = cv2.LUT(image_hsv[..., 1], table_saturation)

# code with using cache (at best maybe 10% faster for 64x64):
# if process is spawned cls._LUT_CACHE is None
if cls._LUT_CACHE is None:
cls._LUT_CACHE = cls._generate_lut_table()

table_hue = cls._LUT_CACHE[0]
table_saturation = cls._LUT_CACHE[1]
tables = [
Expand Down