capacitor-plugin-scanbot-sdk
    Preparing search index...

    Class WhiteBlackPointFilter

    Maps image value channel so that all the pixels darker than the black point are set to 0, all the pixels brighter than the white point are set to 255, and the pixels in between are linearly scaled.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    _type: "WhiteBlackPointFilter"
    blackPoint: number

    Fraction of the value channel range that is set to 0. The value should be in the range from 0 to 1.

    Default is 0.0

    whitePoint: number

    Fraction of the value channel range that is not set to 255. The value should be in the range from 0 to 1.

    Default is 1.0

    Methods

    • Parameters

      Returns {
          _type?: "WhiteBlackPointFilter";
          blackPoint?: number;
          serialize?: (
              config?: ToJsonConfiguration,
          ) => { readonly _type?: "WhiteBlackPointFilter" | undefined; blackPoint?: number | undefined; whitePoint?: number | undefined; serialize?: ((config?: ToJsonConfiguration | undefined) => ...) | undefined; };
          whitePoint?: number;
      }

      • Optional Readonly_type?: "WhiteBlackPointFilter"
      • OptionalblackPoint?: number

        Fraction of the value channel range that is set to 0. The value should be in the range from 0 to 1.

        Default is 0.0

      • Optionalserialize?: (
            config?: ToJsonConfiguration,
        ) => { readonly _type?: "WhiteBlackPointFilter" | undefined; blackPoint?: number | undefined; whitePoint?: number | undefined; serialize?: ((config?: ToJsonConfiguration | undefined) => ...) | undefined; }
      • OptionalwhitePoint?: number

        Fraction of the value channel range that is not set to 255. The value should be in the range from 0 to 1.

        Default is 1.0