diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-07-16 15:42:09 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-07-16 15:42:09 +0200 |
| commit | e4f9134b6e3279272ab9d487ebfb0b0c3689aa69 (patch) | |
| tree | e513f8dd791d99b6a9c07750878f613c778aa6ff | |
| parent | 34c9bbea23a1a61eaf866ae95f439e29d22ce242 (diff) | |
flags for hsl transform
| -rw-r--r-- | options/dataset_options.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/options/dataset_options.py b/options/dataset_options.py index bffd60c..8b638e0 100644 --- a/options/dataset_options.py +++ b/options/dataset_options.py @@ -274,6 +274,35 @@ class DatasetOptions(BaseOptions): help='convert image to grayscale first' ) + ### HSL + + self.parser.add_argument( + '--hsl', + action='store_true', + help='adjust HSL' + ) + + self.parser.add_argument( + '--hue', + default=0.0, + type=float, + help='hue rotation' + ) + + self.parser.add_argument( + '--saturation', + default=0.0, + type=float, + help='saturation' + ) + + self.parser.add_argument( + '--luminosity', + default=0.0, + type=float, + help='luminosity' + ) + ### CLAHE self.parser.add_argument( |
