rullino
    Preparing search index...

    Variable gradientConst

    gradient: MultipassFilter<
        {
            method: {
                default: "sobel";
                description: "The kernel used. Sobel is the usual choice, Scharr is more accurate for diagonals, Prewitt is the simplest.";
                label: "Operator";
                options: { prewitt: "Prewitt"; scharr: "Scharr"; sobel: "Sobel" };
                type: "enum";
            };
            output: {
                default: "magnitude";
                description: "Magnitude shows edge strength in any direction; Horizontal and Vertical show signed change on mid grey.";
                label: "Output";
                options: {
                    horizontal: "Horizontal";
                    magnitude: "Magnitude";
                    vertical: "Vertical";
                };
                type: "enum";
            };
            strength: {
                default: 1;
                description: "Scales the result; raise it to see faint edges.";
                label: "Strength";
                max: 10;
                min: 0;
                step: 0.01;
                type: "float";
            };
        },
    > = ...

    Edge operator on the luminance gradient (sRGB-encoded units, like Canny): Sobel, Scharr or Prewitt. Horizontal / vertical show the signed derivative on mid grey (brighter to the right / downwards is above 0.5), magnitude shows √(gx² + gy²) on black. Both are slopes per pixel times strength. Alpha is kept.