Skip to content

f_PixelRules

rasberry edited this page Jan 11, 2024 · 1 revision

PixelRules

Usage

 Average a set of pixels by following a minimaztion function
 -m (mode)                    Which mode to use (default StairCaseDescend)
 -n (number)                  Number of times to apply operation (default 1)
 -x (number)                  Maximum number of iterations - in case of infinite loops (default 100)
 --sampler (name)             Use given (registered) sampler (defaults to nearest pixel)
 --metric (name)              Use a (registered) distance metric (defaults to euclidean)

 Available Modes
 0. None
 1. StairCaseDescend          move towards smallest distance
 2. StairCaseAscend           move towards largest distance
 3. StairCaseClosest          move towards closest distance
 4. StairCaseFarthest         move towards farthest distance

Examples

cats cloud
Default PixelRules-cats-1 PixelRules-cloud-1
-m 2 PixelRules-cats-2 PixelRules-cloud-2
-m 3 PixelRules-cats-3 PixelRules-cloud-3
-n 10 PixelRules-cats-4 PixelRules-cloud-4