My goal is to convert a raw image (black and white) to a color (RGB) image through different color interpolation. I don’t know my data is regular grid or non-regular data, since they are the raw images captured from image sensors. Then I want to demosaic these images through 1. nearest neighbor 2, bilinear 3, cubic algorithms.