Utility function for switching to the RGB color space and performing an operation on the channels.
The result of the function.
The function to apply to the RGB channels.