sort¶
sort pixels along an axis
$ pierogis sort ./input.jpg -l 50 -u 180 --inner -t 1
very chill.¶
Use Sort to sort a selection of contiguous pixels in order of their brightness.
The pixels to sort are selected using threshold.
-l and -u serve as lower and upper thresholds
where groups of pixels
with brightness outside of the thresholds are sorted.
Providing --inner sorts values between these thresholds.
Use -t, -a, --clockwise, resample-filter to describe the direction of the sort.
See rotate.
If only --lower-threshold is provided, --upper-threshold is set to 255.
If only --upper-threshold is provided, --lower-threshold is set to 0.
arg |
description |
default |
valid |
|---|---|---|---|
|
pixels with intensity <= this value are sorted |
|
|
|
pixels with intensity >= this value are sorted |
|
|
|
if provided, pixels between (inclusive) the threshold values are included in the sort |
|
|
|
number of clockwise turns from sorting bottom to top |
|
|
|
degrees to rotate through each turn |
|
|
|
if provided, |
|
flag |
|
a filter to be used with rotating |
|
|
See: SortFilling,
RotateFilling,
ThresholdFilling