1. A method of image demosaicing comprising: receiving a digital mosaiced image; and calculating a demosaiced image from the received image using a trained machine learning system, the demosaiced image being in a linear light-space of a color image processing pipeline; wherein a linear light-space is a stage of a color image processing pipeline at which a digital image has been linear color-scaled and black-level adjusted but at which a color transform and Gamma correction have not been applied to the digital image.