A newer version of Max is available. Click here to access the latest version of the documentation

jit.sobel Reference

Sobel and Prewitt gradient edge detector

jit.sobel

Description

jit.sobel provides two different kinds of edge detection algorithms.

Examples

Discussion

Both implemented edge detection modes 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

matrix inputs:1, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
out n/a 1 1 1 1 1 char long float32 float64

More about Matrix Operators

The Jitter MOP

MOP Arguments

MOP Attributes

MOP Messages

Attributes

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.)

Common Box Attributes

See Also

Name Description
Working with Video in Jitter Working with Video in Jitter
jit.brass
jit.qt.effect
jit.robcross
Tutorial 25: Tracking the Position of a Color in a Movie Tutorial 25: Tracking the Position of a Color in a Movie