10-27-2023, 08:16 AM 
	
	
	
		You can do that with a CLUT (Color Lookup Table) which is a way to describe the mapping between input colors and output colors. Such a map should in theory be 16MPix, but you can in practice do with somewhat less  (64 values per channel is fairly common).
With the GMIC filter suite:
On the initial image:
	
	
	
With the GMIC filter suite:
On the initial image:
- You load the before/after images as layers in the same image
 
- In GMIC you use the Colors >  CLUT from After- Before layers to generate the CLUT (save to file)
 
- In GMIC you use Colors > Apply external CLUT and specify the saved CLUT image
 

 

 
