DistortMetric
Returns a pixmap with each pixel randomly translated vertically and horizontally.
Syntax
-
DistortMetric(pm, x[, y])-
pmis a pixmap -
xandyare non-negative integers
-
Description
DistortMetric(pm, x, y) returns pm with each pixel randomly translated a maximum distance of x and y horizontally and vertically, respectively. If omitted, y defaults to x.
Specifically, each pixel is swapped with a pixel in its rectangular neighbourhood specified by the x and y.
Examples
DistortMetric(ExampleData("rabbit"), 10)

DistortMetric(ExampleData("rabbit"), 100)
