Demosaic polarized image
I have a polarized image which consists of 90, 45, 0, and 135 filters in a 2x2 grid. I'd like to demosaic this image into a 4-channel linearly interpolated full-resolution image. What is a simple and fast approach to accomplishing this?
Survey of Demosaicking Methods for Polarization Filter Array Images
A less than ideal approach is to create the half-resolution 4-channel image and then use
cv::resize()
withcv::INTER_LINEAR
to resize to full resolution.