ImageJS
    Preparing search index...

    Type Alias GreyAlgorithmCallback

    GreyAlgorithmCallback: (
        red: number,
        green: number,
        blue: number,
        image: Image,
    ) => number

    Call back that converts the RGB channels to grey. It is clamped afterwards.

    Type declaration

      • (red: number, green: number, blue: number, image: Image): number
      • Parameters

        • red: number

          Value of the red channel.

        • green: number

          Value of the green channel.

        • blue: number

          Value of the blue channel.

        • image: Image

        Returns number

        Value of the grey channel.