Function getRegressionVariables

  • Compute the third order variables for the regression from an RGB color.

    Parameters

    • r: number

      Red component.

    • g: number

      Green component.

    • b: number

      Blue component.

    • maxValue: number

      Maximal acceptable value for the image to process.

    Returns number[]

    The variables for the multivariate linear regression.