Skip to content

Commit 80c173a

Browse files
committed
added support for skippable filter/writer plugins
1 parent 62968b3 commit 80c173a

16 files changed

Lines changed: 63 additions & 28 deletions

plugins/change-grayscale.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Changes the pixel values of grayscale images either by a factor or by a fixed va
77

88
```
99
usage: change-grayscale [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
10-
[-N LOGGER_NAME] [--factor FACTOR]
10+
[-N LOGGER_NAME] [--skip] [--factor FACTOR]
1111
[--increment INCREMENT]
1212
1313
Changes the pixel values of grayscale images either by a factor or by a fixed
@@ -20,6 +20,8 @@ options:
2020
-N LOGGER_NAME, --logger_name LOGGER_NAME
2121
The custom name to use for the logger, uses the plugin
2222
name by default (default: None)
23+
--skip Disables the plugin, removing it from the pipeline.
24+
(default: False)
2325
--factor FACTOR The factor with which to scale the pixel values.
2426
(default: None)
2527
--increment INCREMENT

plugins/clip-grayscale.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Changes the grayscale values that fall below the minimum or go above the maximum
77

88
```
99
usage: clip-grayscale [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
10-
[-N LOGGER_NAME] [-m MIN_VALUE] [-r MIN_REPLACEMENT]
11-
[-M MAX_VALUE] [-R MAX_REPLACEMENT]
10+
[-N LOGGER_NAME] [--skip] [-m MIN_VALUE]
11+
[-r MIN_REPLACEMENT] [-M MAX_VALUE] [-R MAX_REPLACEMENT]
1212
1313
Changes the grayscale values that fall below the minimum or go above the
1414
maximum to the specified replacement values.
@@ -20,6 +20,8 @@ options:
2020
-N LOGGER_NAME, --logger_name LOGGER_NAME
2121
The custom name to use for the logger, uses the plugin
2222
name by default (default: None)
23+
--skip Disables the plugin, removing it from the pipeline.
24+
(default: False)
2325
-m MIN_VALUE, --min_value MIN_VALUE
2426
The smallest allowed grayscale pixel value. (default:
2527
0)

plugins/crop-to-label.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Crops an image to the bbox with the specified label.
77

88
```
99
usage: crop-to-label [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
10-
[-N LOGGER_NAME] -r REGION_LABEL [-k]
10+
[-N LOGGER_NAME] [--skip] -r REGION_LABEL [-k]
1111
1212
Crops an image to the bbox with the specified label.
1313
@@ -18,6 +18,8 @@ options:
1818
-N LOGGER_NAME, --logger_name LOGGER_NAME
1919
The custom name to use for the logger, uses the plugin
2020
name by default (default: None)
21+
--skip Disables the plugin, removing it from the pipeline.
22+
(default: False)
2123
-r REGION_LABEL, --region_label REGION_LABEL
2224
The label of the bbox to crop the image to. (default:
2325
None)

plugins/crop.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Crops images.
77

88
```
99
usage: crop [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [-N LOGGER_NAME]
10-
[-m {replace,add}] [--suffix SUFFIX] [-s SEED] [-a] [-T THRESHOLD]
11-
[-f FROM_PERCENT] [-t TO_PERCENT] [-u]
10+
[--skip] [-m {replace,add}] [--suffix SUFFIX] [-s SEED] [-a]
11+
[-T THRESHOLD] [-f FROM_PERCENT] [-t TO_PERCENT] [-u]
1212
1313
Crops images.
1414
@@ -19,6 +19,8 @@ options:
1919
-N LOGGER_NAME, --logger_name LOGGER_NAME
2020
The custom name to use for the logger, uses the plugin
2121
name by default (default: None)
22+
--skip Disables the plugin, removing it from the pipeline.
23+
(default: False)
2224
-m {replace,add}, --mode {replace,add}
2325
The image augmentation mode to use. (default: replace)
2426
--suffix SUFFIX The suffix to use for the file names in case of

plugins/enhance.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Enhances the image using the specified enhancement and factor.
77

88
```
99
usage: enhance [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [-N LOGGER_NAME]
10-
[-m {replace,add}] [--suffix SUFFIX] [-s SEED] [-a]
10+
[--skip] [-m {replace,add}] [--suffix SUFFIX] [-s SEED] [-a]
1111
[-T THRESHOLD] [-f FROM_FACTOR] [-t TO_FACTOR]
1212
[-e {color,contrast,brightness,sharpness}]
1313
@@ -20,6 +20,8 @@ options:
2020
-N LOGGER_NAME, --logger_name LOGGER_NAME
2121
The custom name to use for the logger, uses the plugin
2222
name by default (default: None)
23+
--skip Disables the plugin, removing it from the pipeline.
24+
(default: False)
2325
-m {replace,add}, --mode {replace,add}
2426
The image augmentation mode to use. (default: replace)
2527
--suffix SUFFIX The suffix to use for the file names in case of

plugins/find-contours.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ Detects blobs images and turns them into object detection polygons. In case of i
77

88
```
99
usage: find-contours [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
10-
[-N LOGGER_NAME] [-t MASK_THRESHOLD] [-n MASK_NTH]
11-
[-m VIEW_MARGIN] [-f {low,high}] [--label LABEL]
10+
[-N LOGGER_NAME] [--skip] [-t MASK_THRESHOLD]
11+
[-n MASK_NTH] [-m VIEW_MARGIN] [-f {low,high}]
12+
[--label LABEL]
1213
1314
Detects blobs images and turns them into object detection polygons. In case of
1415
image segmentation data, the annotations are analyzed, otherwise the base
@@ -21,6 +22,8 @@ options:
2122
-N LOGGER_NAME, --logger_name LOGGER_NAME
2223
The custom name to use for the logger, uses the plugin
2324
name by default (default: None)
25+
--skip Disables the plugin, removing it from the pipeline.
26+
(default: False)
2427
-t MASK_THRESHOLD, --mask_threshold MASK_THRESHOLD
2528
The (lower) probability threshold for mask values in
2629
order to be considered part of the object (0-1).

plugins/flip.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Flips images either left-to-right, up-to-down or both.
77

88
```
99
usage: flip [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [-N LOGGER_NAME]
10-
[-m {replace,add}] [--suffix SUFFIX] [-s SEED] [-a] [-T THRESHOLD]
11-
[-d {lr,ud,lrud}]
10+
[--skip] [-m {replace,add}] [--suffix SUFFIX] [-s SEED] [-a]
11+
[-T THRESHOLD] [-d {lr,ud,lrud}]
1212
1313
Flips images either left-to-right, up-to-down or both.
1414
@@ -19,6 +19,8 @@ options:
1919
-N LOGGER_NAME, --logger_name LOGGER_NAME
2020
The custom name to use for the logger, uses the plugin
2121
name by default (default: None)
22+
--skip Disables the plugin, removing it from the pipeline.
23+
(default: False)
2224
-m {replace,add}, --mode {replace,add}
2325
The image augmentation mode to use. (default: replace)
2426
--suffix SUFFIX The suffix to use for the file names in case of

plugins/gaussian-blur.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Applies gaussian blur to images.
77

88
```
99
usage: gaussian-blur [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
10-
[-N LOGGER_NAME] [-m {replace,add}] [--suffix SUFFIX]
11-
[-s SEED] [-a] [-T THRESHOLD] [-f FROM_SIGMA]
12-
[-t TO_SIGMA]
10+
[-N LOGGER_NAME] [--skip] [-m {replace,add}]
11+
[--suffix SUFFIX] [-s SEED] [-a] [-T THRESHOLD]
12+
[-f FROM_SIGMA] [-t TO_SIGMA]
1313
1414
Applies gaussian blur to images.
1515
@@ -20,6 +20,8 @@ options:
2020
-N LOGGER_NAME, --logger_name LOGGER_NAME
2121
The custom name to use for the logger, uses the plugin
2222
name by default (default: None)
23+
--skip Disables the plugin, removing it from the pipeline.
24+
(default: False)
2325
-m {replace,add}, --mode {replace,add}
2426
The image augmentation mode to use. (default: replace)
2527
--suffix SUFFIX The suffix to use for the file names in case of

plugins/hsl-grayscale.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Turns RGB images into fake grayscale ones by converting them to HSL and then usi
77

88
```
99
usage: hsl-grayscale [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
10-
[-N LOGGER_NAME] [-m {replace,add}] [--suffix SUFFIX]
11-
[-s SEED] [-a] [-T THRESHOLD] [-f FROM_FACTOR]
12-
[-t TO_FACTOR]
10+
[-N LOGGER_NAME] [--skip] [-m {replace,add}]
11+
[--suffix SUFFIX] [-s SEED] [-a] [-T THRESHOLD]
12+
[-f FROM_FACTOR] [-t TO_FACTOR]
1313
1414
Turns RGB images into fake grayscale ones by converting them to HSL and then
1515
using the L channel for all channels. The brightness can be influenced and
@@ -22,6 +22,8 @@ options:
2222
-N LOGGER_NAME, --logger_name LOGGER_NAME
2323
The custom name to use for the logger, uses the plugin
2424
name by default (default: None)
25+
--skip Disables the plugin, removing it from the pipeline.
26+
(default: False)
2527
-m {replace,add}, --mode {replace,add}
2628
The image augmentation mode to use. (default: replace)
2729
--suffix SUFFIX The suffix to use for the file names in case of

plugins/linear-contrast.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Applies linear contrast to images.
77

88
```
99
usage: linear-contrast [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
10-
[-N LOGGER_NAME] [-m {replace,add}] [--suffix SUFFIX]
11-
[-s SEED] [-a] [-T THRESHOLD] [-f FROM_ALPHA]
12-
[-t TO_ALPHA]
10+
[-N LOGGER_NAME] [--skip] [-m {replace,add}]
11+
[--suffix SUFFIX] [-s SEED] [-a] [-T THRESHOLD]
12+
[-f FROM_ALPHA] [-t TO_ALPHA]
1313
1414
Applies linear contrast to images.
1515
@@ -20,6 +20,8 @@ options:
2020
-N LOGGER_NAME, --logger_name LOGGER_NAME
2121
The custom name to use for the logger, uses the plugin
2222
name by default (default: None)
23+
--skip Disables the plugin, removing it from the pipeline.
24+
(default: False)
2325
-m {replace,add}, --mode {replace,add}
2426
The image augmentation mode to use. (default: replace)
2527
--suffix SUFFIX The suffix to use for the file names in case of

0 commit comments

Comments
 (0)