channel_mix

mipylib.imagelib.filter.channel_mix(src, b_g=0, r_b=0, g_r=0, to_r=0, to_g=0, to_b=0)

A filter which allows the red, green and blue channels of an image to be mixed into each other.

Parameters:
  • src – (image) Source image.

  • b_g – (float) Blue and green.

  • r_b – (float) Red and blue.

  • g_r – (float) Green and red.

  • to_r – (float) Mix into red.

  • to_g – (float) Mix into green.

  • to_b – (float) Mix into blue.

Returns:

Destination image.