rullino
    Preparing search index...

    Variable adaptiveThresholdConst

    adaptiveThreshold: MultipassFilter<
        {
            invert: {
                default: false;
                description: "Swap black and white.";
                label: "Invert";
                type: "bool";
            };
            offset: {
                default: 0.02;
                description: "A pixel turns white when it is brighter than its local average minus this value. Raise it for more white; lower it to remove speckles.";
                label: "Offset C";
                max: 0.5;
                min: -0.5;
                step: 0.005;
                type: "float";
            };
            sigma: {
                default: 8;
                description: "How far around each pixel the local average reaches. Larger values suit bigger shapes.";
                label: "Neighbourhood σ (px)";
                max: 50;
                min: 0.5;
                step: 0.1;
                type: "float";
                unit: "px";
            };
        },
    > = ...

    Adaptive (local) threshold, as OpenCV's ADAPTIVE_THRESH_GAUSSIAN_C: a pixel is white when its perceptual luminance exceeds the Gaussian-weighted local mean minus offset. Works under uneven lighting where a single global threshold cannot. Alpha kept.