Enable computing specific colors

For instance if have tested on one and do not want to waste its
computation.
This commit is contained in:
Benjamin Loison 2024-04-18 01:14:33 +02:00
parent 9365b58d1d
commit 29f3acc479
No known key found for this signature in database

View File

@ -15,9 +15,9 @@ imagesFolderPathFileName = imagesFolderPath.replace('/', '_')
denoiser = 'bilateral'
raiseNotFlatFields = False
singleColorChannel = Color.GREEN_RIGHT
singleColorChannels = []
colors = Color if singleColorChannel is None else [singleColorChannel]
colors = singleColorChannels or Color
denoise = getattr(skimage.restoration, f'denoise_{denoiser}')