Method: Vips::Image#linear

Defined in:
lib/vips8/methods.rb

#linear(a, b, opts = {}) ⇒ Vips::Image

Calculate (a * in + b).

Parameters:

  • a (Array<Double>)

    Multiply by this

  • b (Array<Double>)

    Add this

  • opts (Hash) (defaults to: {})

    Set of options

Options Hash (opts):

  • :uchar (Boolean)

    Output should be uchar

Returns:

[View source]

# File 'lib/vips8/methods.rb', line 90