Examples analyze a digital image to determine an amount of high- frequencies corresponding to each pixel of the digital image based at least in part on gradients corresponding to a pixel neighborhood of each pixel. Examples analyze the digital image to determine a degree of randomness for each pixel based at least in part on the corresponding gradients. Examples generate an activity mask for the digital image based at least in part on the amount of high-frequencies and the degree of randomness corresponding to each pixel. Examples process the pixels of the digital image by performing gray component replacement to generate a color transformed image based at least in part on the activity mask.