Simplify specifying colors

This commit is contained in:
Benjamin Loison 2024-04-18 01:16:41 +02:00
parent 29f3acc479
commit e2406071d4
No known key found for this signature in database

View File

@ -15,9 +15,8 @@ imagesFolderPathFileName = imagesFolderPath.replace('/', '_')
denoiser = 'bilateral'
raiseNotFlatFields = False
singleColorChannels = []
colors = singleColorChannels or Color
# `[Color.RED, Color.GREEN_RIGHT, ...]` or `Color`.
colors = Color
denoise = getattr(skimage.restoration, f'denoise_{denoiser}')