jit.sobel Sobel and Prewitt gradient edge detector

The jit.sobel object offers two similar gradient edge detection implementations, Sobel and Prewitt. These edge detectors use 3x3 convolution kernels to compute a 2-dimensional spatial gradient of an incoming matrix, brightening features with "high spatial frequency" -- a large amount of change from cell to cell -- and darkening features with less change. The Sobel detector is fairly good at detecting edges in all directions, while the Prewitt is more biased toward edges running vertically and horizontally along the matrix frame.

Matrix Operator: in[1] out[1]
Name IOProc Planelink Typelink Dimlink Plane Dim Type
in n/a n/a n/a n/a n/a n/a n/a
out n/a yes yes yes all all char long float32 float64

Attributes:
Name Type Description
mode int The detection mode. (default = 0 (Sobel))
0 = Sobel
1 = Prewitt
thresh float The threshold below which matrix values are set to 0. (default = 0.)

Example:

See Also:
jit.brass, jit.qt.effect, jit.robcross