Suppose I have two input images. One only contains three colors such as green, red, and blue as labels. Another image that needs to be edited based on the colors in the first image. So, for instance, wherever the label image is red, I'd like function A to happen on the original image.
To do this, I would like to create a lookup that gets a color as input and outputs a function to be executed on the original image.
What's the best way to go about this?