
// Three images C, D and E, scaled between 0 and 255, are added to an single RGB image, 
// which is similar to the interactive ColorMix function in DM to combine any three images into RGB images


// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html


image GlobalSinoR = 255* (C-min(C))/(max(C)-min(C))
image GlobalSinoG = 255* (D-min(D))/(max(D)-min(D))
image GlobalSinoB = 255* (E-min(E))/(max(E)-min(E))

RGBImage EMColorMix = RGB (GlobalSinoR, GlobalSinoG, GlobalSinoB)
ShowImage(EMColorMix)