Using a linear model on raw pixel values