1. A method for generating high dynamic range (HDR)/wide color gamut (WCG) output from an image sensor, comprising: receiving a raw red, green, blue (RGB) image obtained by the image sensor; applying, by a processor, a plurality of color transform operations to the raw RGB image to generate a HDR/WCG image; and storing, by the processor, the HDR/WCG image in a memory.