threshold¶
pixels included or excluded based on brightness
$ pierogis threshold ./input.jpg -u 150 -l 20
By default, pixels with brightness outside of the thresholds provided become “included”,
and pixels within the thresholds become “excluded” (greater than lower, but less than upper).
This can be flipped by providing the --inner
flag.
By default, included means replaced with white, excluded with black.
sort uses this under the hood.
arg |
description |
default |
valid |
---|---|---|---|
|
pixels with intensity below this value are sorted |
|
|
|
pixels with intensity above this value are sorted |
|
|
|
if provided, pixels between the threshold values are included in the sort |
|
flag |
|
hex color to substitute for white |
|
|
|
hex color to substitute for black |
|
|
See: ThresholdFilling
, Threshold