Prewitt(clip clip[, float min=0.0, float max, int planes=[0, 1, 2], float scale=1])¶
Creates an edge mask using the Prewitt operator.
Sobel(clip clip[, float min=0.0, float max, int planes=[0, 1, 2], float scale=1])¶
Creates an edge mask using the Sobel operator.
- Clip to process. It must have integer sample type and bit depth between 8 and 16, or float sample type and bit depth of 32. If there are any frames with other formats, an error will be returned.
- If an output pixel has a value less than or equal to this, it will be set to 0.
If an output pixel has a value greater than or equal to this, it will be set to the maximum value allowed by the frame’s bit depth or 1 if it’s float.
By default max will be 1 for float and the maximum value for integer.
Output pixels are compared with max first, then with min.
- Specifies which planes will be processed. Any unprocessed planes will be simply copied.
- Multiply all pixels by scale before outputting. This can be used to increase or decrease the intensity of edges in the output. The test against min and max is applied after this operation.