plug-in-sobel

Thorsten Schnier

Description

Specialized direction-dependent edge detection

Help

This plugin calculates the gradient with a sobel operator. The user can specify which direction to use. When both directions are used, the result is the RMS of the two gradients; if only one direction is used, the result either the absolut value of the gradient, or 127 + gradient (if the 'keep sign' switch is on). This way, information about the direction of the gradient is preserved. Resulting images are not autoscaled.


Type

unknown

Parameters

Type Name Description
PF_INT run-mode The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }
PF_IMAGE image Input image (unused)
PF_DRAWABLE drawable Input drawable
PF_INT horizontal Sobel in horizontal direction
PF_INT vertical Sobel in vertical direction
PF_INT keep-sign Keep sign of result (one direction only)

Return

None