wheja.blogg.se

Install pixel sorter
Install pixel sorter





install pixel sorter

Python3 -m pixelsort examples/image.jpg -i edges -t. Python3 -m pixelsort examples/image.jpg -i random -c 20 Sort on the minimum RGB value of a pixel (either the R, G or B). Sort by the saturation of a pixel according to a HSV representation. Sort by the hue of a pixel according to a HSV representation. Sort by the lightness of a pixel according to a HSV representation. Sort whole rows, only stopping at image borders. Must be the same size as the input image. Intevals defined by performing edge detection on the file specified by -f. Must be black and white, and the same size as the input image. Intervals taken from another specified input image. Intervals are waves of nearly uniform widths. Intervals defined by lightness thresholds only pixels with a lightness between the upper and lower thresholds are sorted. Performs an edge detection, which is used to define intervals. Interval widths can be scaled using clength. Distribution of widths is linear by default.

install pixel sorter

Choices include DEBUG, INFO, WARNING, ERROR, and CRITICAL. Level of logging statements made visible. Image used for masking parts of the image. Sorting function to use for sorting the pixels. Used in mode random and waves.Īngle at which you're pixel sorting in degrees. Used in threshold mode.Ĭharacteristic length for the random width generator. How bright must a pixel be to be considered as a 'border' for sorting? Takes values from 0-1. How dark must a pixel be to be considered as a 'border' for sorting? Takes values from 0-1. What percentage of intervals not to sort. Uses the current time for the file name by default. Tip: To replicate Kim Asendorf's original processing script, first sort vertically and then horizontally in threshold (default) mode: python3 -m pixelsort %PathToImage% -a 90Īs a package: > from pixelsort import pixelsortĬontrols how the intervals used for sorting are defined. Usageįrom the command line: pip install pixelsort

install pixel sorter

Should work in both Python 2 and 3, but Python 3 is recommended. Have a look at this post or /r/pixelsorting Dependencies







Install pixel sorter